configure revision 1e42c052
13da7aff1Smrg#! /bin/sh
23da7aff1Smrg# Guess values for system-dependent variables and create Makefiles.
31e42c052Smrg# Generated by GNU Autoconf 2.72 for xlogo 1.0.7.
43da7aff1Smrg#
53a99fc18Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues>.
63da7aff1Smrg#
7e531b1a7Smrg#
81e42c052Smrg# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
93a99fc18Smrg# Inc.
10e531b1a7Smrg#
11e531b1a7Smrg#
123da7aff1Smrg# This configure script is free software; the Free Software Foundation
133da7aff1Smrg# gives unlimited permission to copy, distribute and modify it.
14e531b1a7Smrg## -------------------- ##
15e531b1a7Smrg## M4sh Initialization. ##
16e531b1a7Smrg## -------------------- ##
173da7aff1Smrg
18e531b1a7Smrg# Be more Bourne compatible
19e531b1a7SmrgDUALCASE=1; export DUALCASE # for MKS sh
203a99fc18Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
213a99fc18Smrgthen :
223da7aff1Smrg  emulate sh
233da7aff1Smrg  NULLCMD=:
24e531b1a7Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
253da7aff1Smrg  # is contrary to our usage.  Disable this feature.
263da7aff1Smrg  alias -g '${1+"$@"}'='"$@"'
27e531b1a7Smrg  setopt NO_GLOB_SUBST
281e42c052Smrgelse case e in #(
291e42c052Smrg  e) case `(set -o) 2>/dev/null` in #(
30e531b1a7Smrg  *posix*) :
31e531b1a7Smrg    set -o posix ;; #(
32e531b1a7Smrg  *) :
33e531b1a7Smrg     ;;
341e42c052Smrgesac ;;
35e531b1a7Smrgesac
363da7aff1Smrgfi
373da7aff1Smrg
38e531b1a7Smrg
393a99fc18Smrg
403a99fc18Smrg# Reset variables that may have inherited troublesome values from
413a99fc18Smrg# the environment.
423a99fc18Smrg
433a99fc18Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
443a99fc18Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
453a99fc18Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
463a99fc18Smrg# Quoting is to prevent editors from complaining about space-tab.
47e531b1a7Smrgas_nl='
48e531b1a7Smrg'
49e531b1a7Smrgexport as_nl
503a99fc18SmrgIFS=" ""	$as_nl"
513a99fc18Smrg
523a99fc18SmrgPS1='$ '
533a99fc18SmrgPS2='> '
543a99fc18SmrgPS4='+ '
553a99fc18Smrg
563a99fc18Smrg# Ensure predictable behavior from utilities with locale-dependent output.
573a99fc18SmrgLC_ALL=C
583a99fc18Smrgexport LC_ALL
593a99fc18SmrgLANGUAGE=C
603a99fc18Smrgexport LANGUAGE
613a99fc18Smrg
623a99fc18Smrg# We cannot yet rely on "unset" to work, but we need these variables
633a99fc18Smrg# to be unset--not just set to an empty or harmless value--now, to
643a99fc18Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
653a99fc18Smrg# also avoids known problems related to "unset" and subshell syntax
663a99fc18Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
673a99fc18Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
683a99fc18Smrgdo eval test \${$as_var+y} \
693a99fc18Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
703a99fc18Smrgdone
713a99fc18Smrg
723a99fc18Smrg# Ensure that fds 0, 1, and 2 are open.
733a99fc18Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
743a99fc18Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
753a99fc18Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76e531b1a7Smrg
77e531b1a7Smrg# The user is always right.
783a99fc18Smrgif ${PATH_SEPARATOR+false} :; then
79e531b1a7Smrg  PATH_SEPARATOR=:
80e531b1a7Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81e531b1a7Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82e531b1a7Smrg      PATH_SEPARATOR=';'
83e531b1a7Smrg  }
843da7aff1Smrgfi
853da7aff1Smrg
863da7aff1Smrg
87e531b1a7Smrg# Find who we are.  Look in the path if we contain no directory separator.
88f9d592e5Smrgas_myself=
89e531b1a7Smrgcase $0 in #((
90e531b1a7Smrg  *[\\/]* ) as_myself=$0 ;;
91e531b1a7Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92e531b1a7Smrgfor as_dir in $PATH
93e531b1a7Smrgdo
94e531b1a7Smrg  IFS=$as_save_IFS
953a99fc18Smrg  case $as_dir in #(((
963a99fc18Smrg    '') as_dir=./ ;;
973a99fc18Smrg    */) ;;
983a99fc18Smrg    *) as_dir=$as_dir/ ;;
993a99fc18Smrg  esac
1003a99fc18Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101e531b1a7Smrg  done
102e531b1a7SmrgIFS=$as_save_IFS
103e531b1a7Smrg
104e531b1a7Smrg     ;;
105e531b1a7Smrgesac
1061e42c052Smrg# We did not find ourselves, most probably we were run as 'sh COMMAND'
107e531b1a7Smrg# in which case we are not to be found in the path.
108e531b1a7Smrgif test "x$as_myself" = x; then
109e531b1a7Smrg  as_myself=$0
110e531b1a7Smrgfi
111e531b1a7Smrgif test ! -f "$as_myself"; then
1123a99fc18Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113e531b1a7Smrg  exit 1
114e531b1a7Smrgfi
115e531b1a7Smrg
116e531b1a7Smrg
1173e999d35Smrg# Use a proper internal environment variable to ensure we don't fall
1183e999d35Smrg  # into an infinite loop, continuously re-executing ourselves.
1193e999d35Smrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
1203e999d35Smrg    _as_can_reexec=no; export _as_can_reexec;
1213e999d35Smrg    # We cannot yet assume a decent shell, so we have to provide a
1223e999d35Smrg# neutralization value for shells without unset; and this also
1233e999d35Smrg# works around shells that cannot unset nonexistent variables.
1243e999d35Smrg# Preserve -v and -x to the replacement shell.
1253e999d35SmrgBASH_ENV=/dev/null
1263e999d35SmrgENV=/dev/null
1273e999d35Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1283e999d35Smrgcase $- in # ((((
1293e999d35Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
1303e999d35Smrg  *v* ) as_opts=-v ;;
1313e999d35Smrg  *x* ) as_opts=-x ;;
1323e999d35Smrg  * ) as_opts= ;;
1333e999d35Smrgesac
1343e999d35Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1353e999d35Smrg# Admittedly, this is quite paranoid, since all the known shells bail
1361e42c052Smrg# out after a failed 'exec'.
1373a99fc18Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
1383a99fc18Smrgexit 255
1393e999d35Smrg  fi
1403e999d35Smrg  # We don't want this to propagate to other subprocesses.
1413e999d35Smrg          { _as_can_reexec=; unset _as_can_reexec;}
142e531b1a7Smrgif test "x$CONFIG_SHELL" = x; then
1431e42c052Smrg  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
1443a99fc18Smrgthen :
145e531b1a7Smrg  emulate sh
146e531b1a7Smrg  NULLCMD=:
147e531b1a7Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148e531b1a7Smrg  # is contrary to our usage.  Disable this feature.
149e531b1a7Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150e531b1a7Smrg  setopt NO_GLOB_SUBST
1511e42c052Smrgelse case e in #(
1521e42c052Smrg  e) case \`(set -o) 2>/dev/null\` in #(
153e531b1a7Smrg  *posix*) :
154e531b1a7Smrg    set -o posix ;; #(
155e531b1a7Smrg  *) :
156e531b1a7Smrg     ;;
1571e42c052Smrgesac ;;
158e531b1a7Smrgesac
159e531b1a7Smrgfi
160e531b1a7Smrg"
161e531b1a7Smrg  as_required="as_fn_return () { (exit \$1); }
162e531b1a7Smrgas_fn_success () { as_fn_return 0; }
163e531b1a7Smrgas_fn_failure () { as_fn_return 1; }
164e531b1a7Smrgas_fn_ret_success () { return 0; }
165e531b1a7Smrgas_fn_ret_failure () { return 1; }
166e531b1a7Smrg
167e531b1a7Smrgexitcode=0
168e531b1a7Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
169e531b1a7Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170e531b1a7Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171e531b1a7Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1723a99fc18Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
1733a99fc18Smrgthen :
174e531b1a7Smrg
1751e42c052Smrgelse case e in #(
1761e42c052Smrg  e) exitcode=1; echo positional parameters were not saved. ;;
1771e42c052Smrgesac
178e531b1a7Smrgfi
1793e999d35Smrgtest x\$exitcode = x0 || exit 1
1803a99fc18Smrgblah=\$(echo \$(echo blah))
1813a99fc18Smrgtest x\"\$blah\" = xblah || exit 1
1823e999d35Smrgtest -x / || exit 1"
183e531b1a7Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184e531b1a7Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185e531b1a7Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186e531b1a7Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187e531b1a7Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
1883a99fc18Smrg  if (eval "$as_required") 2>/dev/null
1893a99fc18Smrgthen :
190e531b1a7Smrg  as_have_required=yes
1911e42c052Smrgelse case e in #(
1921e42c052Smrg  e) as_have_required=no ;;
1931e42c052Smrgesac
194e531b1a7Smrgfi
1953a99fc18Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
1963a99fc18Smrgthen :
197e531b1a7Smrg
1981e42c052Smrgelse case e in #(
1991e42c052Smrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200e531b1a7Smrgas_found=false
201e531b1a7Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2023da7aff1Smrgdo
203e531b1a7Smrg  IFS=$as_save_IFS
2043a99fc18Smrg  case $as_dir in #(((
2053a99fc18Smrg    '') as_dir=./ ;;
2063a99fc18Smrg    */) ;;
2073a99fc18Smrg    *) as_dir=$as_dir/ ;;
2083a99fc18Smrg  esac
209e531b1a7Smrg  as_found=:
210e531b1a7Smrg  case $as_dir in #(
211e531b1a7Smrg	 /*)
212e531b1a7Smrg	   for as_base in sh bash ksh sh5; do
213e531b1a7Smrg	     # Try only shells that exist, to save several forks.
2143a99fc18Smrg	     as_shell=$as_dir$as_base
215e531b1a7Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2163a99fc18Smrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
2173a99fc18Smrgthen :
218e531b1a7Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2193a99fc18Smrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
2203a99fc18Smrgthen :
221e531b1a7Smrg  break 2
222e531b1a7Smrgfi
223e531b1a7Smrgfi
224e531b1a7Smrg	   done;;
225e531b1a7Smrg       esac
226e531b1a7Smrg  as_found=false
227e531b1a7Smrgdone
228e531b1a7SmrgIFS=$as_save_IFS
2293a99fc18Smrgif $as_found
2303a99fc18Smrgthen :
2313a99fc18Smrg
2321e42c052Smrgelse case e in #(
2331e42c052Smrg  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2343a99fc18Smrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
2353a99fc18Smrgthen :
2363a99fc18Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2371e42c052Smrgfi ;;
2381e42c052Smrgesac
2393a99fc18Smrgfi
240e531b1a7Smrg
241e531b1a7Smrg
2423a99fc18Smrg      if test "x$CONFIG_SHELL" != x
2433a99fc18Smrgthen :
2443e999d35Smrg  export CONFIG_SHELL
2453e999d35Smrg             # We cannot yet assume a decent shell, so we have to provide a
2463e999d35Smrg# neutralization value for shells without unset; and this also
2473e999d35Smrg# works around shells that cannot unset nonexistent variables.
2483e999d35Smrg# Preserve -v and -x to the replacement shell.
2493e999d35SmrgBASH_ENV=/dev/null
2503e999d35SmrgENV=/dev/null
2513e999d35Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2523e999d35Smrgcase $- in # ((((
2533e999d35Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
2543e999d35Smrg  *v* ) as_opts=-v ;;
2553e999d35Smrg  *x* ) as_opts=-x ;;
2563e999d35Smrg  * ) as_opts= ;;
2573e999d35Smrgesac
2583e999d35Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
2593e999d35Smrg# Admittedly, this is quite paranoid, since all the known shells bail
2601e42c052Smrg# out after a failed 'exec'.
2613a99fc18Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
2623e999d35Smrgexit 255
263e531b1a7Smrgfi
264e531b1a7Smrg
2653a99fc18Smrg    if test x$as_have_required = xno
2663a99fc18Smrgthen :
2673a99fc18Smrg  printf "%s\n" "$0: This script requires a shell more modern than all"
2683a99fc18Smrg  printf "%s\n" "$0: the shells that I found on your system."
2693a99fc18Smrg  if test ${ZSH_VERSION+y} ; then
2703a99fc18Smrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2713a99fc18Smrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
2723da7aff1Smrg  else
2733a99fc18Smrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
2743a99fc18Smrg$0: https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues
275e531b1a7Smrg$0: about your system, including any error possibly output
276e531b1a7Smrg$0: before this message. Then install a modern shell, or
277e531b1a7Smrg$0: manually run the script under such a shell if you do
278e531b1a7Smrg$0: have one."
2793da7aff1Smrg  fi
280e531b1a7Smrg  exit 1
2811e42c052Smrgfi ;;
2821e42c052Smrgesac
283e531b1a7Smrgfi
284e531b1a7Smrgfi
285e531b1a7SmrgSHELL=${CONFIG_SHELL-/bin/sh}
286e531b1a7Smrgexport SHELL
287e531b1a7Smrg# Unset more variables known to interfere with behavior of common tools.
288e531b1a7SmrgCLICOLOR_FORCE= GREP_OPTIONS=
289e531b1a7Smrgunset CLICOLOR_FORCE GREP_OPTIONS
290e531b1a7Smrg
291e531b1a7Smrg## --------------------- ##
292e531b1a7Smrg## M4sh Shell Functions. ##
293e531b1a7Smrg## --------------------- ##
294e531b1a7Smrg# as_fn_unset VAR
295e531b1a7Smrg# ---------------
296e531b1a7Smrg# Portably unset VAR.
297e531b1a7Smrgas_fn_unset ()
298e531b1a7Smrg{
299e531b1a7Smrg  { eval $1=; unset $1;}
300e531b1a7Smrg}
301e531b1a7Smrgas_unset=as_fn_unset
302e531b1a7Smrg
3033a99fc18Smrg
304e531b1a7Smrg# as_fn_set_status STATUS
305e531b1a7Smrg# -----------------------
306e531b1a7Smrg# Set $? to STATUS, without forking.
307e531b1a7Smrgas_fn_set_status ()
308e531b1a7Smrg{
309e531b1a7Smrg  return $1
310e531b1a7Smrg} # as_fn_set_status
311e531b1a7Smrg
312e531b1a7Smrg# as_fn_exit STATUS
313e531b1a7Smrg# -----------------
314e531b1a7Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315e531b1a7Smrgas_fn_exit ()
316e531b1a7Smrg{
317e531b1a7Smrg  set +e
318e531b1a7Smrg  as_fn_set_status $1
319e531b1a7Smrg  exit $1
320e531b1a7Smrg} # as_fn_exit
321e531b1a7Smrg
322e531b1a7Smrg# as_fn_mkdir_p
323e531b1a7Smrg# -------------
324e531b1a7Smrg# Create "$as_dir" as a directory, including parents if necessary.
325e531b1a7Smrgas_fn_mkdir_p ()
326e531b1a7Smrg{
327e531b1a7Smrg
328e531b1a7Smrg  case $as_dir in #(
329e531b1a7Smrg  -*) as_dir=./$as_dir;;
330e531b1a7Smrg  esac
331e531b1a7Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
332e531b1a7Smrg    as_dirs=
333e531b1a7Smrg    while :; do
334e531b1a7Smrg      case $as_dir in #(
3353a99fc18Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336e531b1a7Smrg      *) as_qdir=$as_dir;;
337e531b1a7Smrg      esac
338e531b1a7Smrg      as_dirs="'$as_qdir' $as_dirs"
339e531b1a7Smrg      as_dir=`$as_dirname -- "$as_dir" ||
340e531b1a7Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341e531b1a7Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
342e531b1a7Smrg	 X"$as_dir" : 'X\(//\)$' \| \
343e531b1a7Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3443a99fc18Smrgprintf "%s\n" X"$as_dir" |
345e531b1a7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346e531b1a7Smrg	    s//\1/
347e531b1a7Smrg	    q
348e531b1a7Smrg	  }
349e531b1a7Smrg	  /^X\(\/\/\)[^/].*/{
350e531b1a7Smrg	    s//\1/
351e531b1a7Smrg	    q
352e531b1a7Smrg	  }
353e531b1a7Smrg	  /^X\(\/\/\)$/{
354e531b1a7Smrg	    s//\1/
355e531b1a7Smrg	    q
356e531b1a7Smrg	  }
357e531b1a7Smrg	  /^X\(\/\).*/{
358e531b1a7Smrg	    s//\1/
359e531b1a7Smrg	    q
360e531b1a7Smrg	  }
361e531b1a7Smrg	  s/.*/./; q'`
362e531b1a7Smrg      test -d "$as_dir" && break
363e531b1a7Smrg    done
364e531b1a7Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
365f9d592e5Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366e531b1a7Smrg
367e531b1a7Smrg
368e531b1a7Smrg} # as_fn_mkdir_p
3693e999d35Smrg
3703e999d35Smrg# as_fn_executable_p FILE
3713e999d35Smrg# -----------------------
3723e999d35Smrg# Test if FILE is an executable regular file.
3733e999d35Smrgas_fn_executable_p ()
3743e999d35Smrg{
3753e999d35Smrg  test -f "$1" && test -x "$1"
3763e999d35Smrg} # as_fn_executable_p
377e531b1a7Smrg# as_fn_append VAR VALUE
378e531b1a7Smrg# ----------------------
379e531b1a7Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
380e531b1a7Smrg# advantage of any shell optimizations that allow amortized linear growth over
381e531b1a7Smrg# repeated appends, instead of the typical quadratic growth present in naive
382e531b1a7Smrg# implementations.
3833a99fc18Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
3843a99fc18Smrgthen :
385e531b1a7Smrg  eval 'as_fn_append ()
386e531b1a7Smrg  {
387e531b1a7Smrg    eval $1+=\$2
388e531b1a7Smrg  }'
3891e42c052Smrgelse case e in #(
3901e42c052Smrg  e) as_fn_append ()
391e531b1a7Smrg  {
392e531b1a7Smrg    eval $1=\$$1\$2
3931e42c052Smrg  } ;;
3941e42c052Smrgesac
395e531b1a7Smrgfi # as_fn_append
396e531b1a7Smrg
397e531b1a7Smrg# as_fn_arith ARG...
398e531b1a7Smrg# ------------------
399e531b1a7Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
400e531b1a7Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
401e531b1a7Smrg# must be portable across $(()) and expr.
4023a99fc18Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4033a99fc18Smrgthen :
404e531b1a7Smrg  eval 'as_fn_arith ()
405e531b1a7Smrg  {
406e531b1a7Smrg    as_val=$(( $* ))
407e531b1a7Smrg  }'
4081e42c052Smrgelse case e in #(
4091e42c052Smrg  e) as_fn_arith ()
410e531b1a7Smrg  {
411e531b1a7Smrg    as_val=`expr "$@" || test $? -eq 1`
4121e42c052Smrg  } ;;
4131e42c052Smrgesac
414e531b1a7Smrgfi # as_fn_arith
415e531b1a7Smrg
4163da7aff1Smrg
417f9d592e5Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
418f9d592e5Smrg# ----------------------------------------
419e531b1a7Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420e531b1a7Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421f9d592e5Smrg# script with STATUS, using 1 if that was 0.
422e531b1a7Smrgas_fn_error ()
423e531b1a7Smrg{
424f9d592e5Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
425f9d592e5Smrg  if test "$4"; then
426f9d592e5Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4273a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428e531b1a7Smrg  fi
4293a99fc18Smrg  printf "%s\n" "$as_me: error: $2" >&2
430e531b1a7Smrg  as_fn_exit $as_status
431e531b1a7Smrg} # as_fn_error
432e531b1a7Smrg
433e531b1a7Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
434e531b1a7Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4353da7aff1Smrg  as_expr=expr
4363da7aff1Smrgelse
4373da7aff1Smrg  as_expr=false
4383da7aff1Smrgfi
4393da7aff1Smrg
440e531b1a7Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4413da7aff1Smrg  as_basename=basename
4423da7aff1Smrgelse
4433da7aff1Smrg  as_basename=false
4443da7aff1Smrgfi
4453da7aff1Smrg
446e531b1a7Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447e531b1a7Smrg  as_dirname=dirname
448e531b1a7Smrgelse
449e531b1a7Smrg  as_dirname=false
450e531b1a7Smrgfi
4513da7aff1Smrg
452e531b1a7Smrgas_me=`$as_basename -- "$0" ||
4533da7aff1Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4543da7aff1Smrg	 X"$0" : 'X\(//\)$' \| \
455e531b1a7Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4563a99fc18Smrgprintf "%s\n" X/"$0" |
457e531b1a7Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
458e531b1a7Smrg	    s//\1/
459e531b1a7Smrg	    q
460e531b1a7Smrg	  }
461e531b1a7Smrg	  /^X\/\(\/\/\)$/{
462e531b1a7Smrg	    s//\1/
463e531b1a7Smrg	    q
464e531b1a7Smrg	  }
465e531b1a7Smrg	  /^X\/\(\/\).*/{
466e531b1a7Smrg	    s//\1/
467e531b1a7Smrg	    q
468e531b1a7Smrg	  }
469e531b1a7Smrg	  s/.*/./; q'`
4703da7aff1Smrg
4713da7aff1Smrg# Avoid depending upon Character Ranges.
4723da7aff1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4733da7aff1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4743da7aff1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4753da7aff1Smrgas_cr_digits='0123456789'
4763da7aff1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4773da7aff1Smrg
4783da7aff1Smrg
479e531b1a7Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
480e531b1a7Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
481e531b1a7Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482e531b1a7Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483e531b1a7Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
484e531b1a7Smrg  sed -n '
485e531b1a7Smrg    p
486e531b1a7Smrg    /[$]LINENO/=
487e531b1a7Smrg  ' <$as_myself |
4883da7aff1Smrg    sed '
4891e42c052Smrg      t clear
4901e42c052Smrg      :clear
491e531b1a7Smrg      s/[$]LINENO.*/&-/
492e531b1a7Smrg      t lineno
493e531b1a7Smrg      b
494e531b1a7Smrg      :lineno
4953da7aff1Smrg      N
496e531b1a7Smrg      :loop
497e531b1a7Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4983da7aff1Smrg      t loop
499e531b1a7Smrg      s/-\n.*//
5003da7aff1Smrg    ' >$as_me.lineno &&
501e531b1a7Smrg  chmod +x "$as_me.lineno" ||
5023a99fc18Smrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5033da7aff1Smrg
5043e999d35Smrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
5053e999d35Smrg  # already done that, so ensure we don't try to do so again and fall
5063e999d35Smrg  # in an infinite loop.  This has already happened in practice.
5073e999d35Smrg  _as_can_reexec=no; export _as_can_reexec
5083da7aff1Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
5093da7aff1Smrg  # (the dirname of $[0] is not the place where we might find the
510e531b1a7Smrg  # original and so on.  Autoconf is especially sensitive to this).
511e531b1a7Smrg  . "./$as_me.lineno"
5123da7aff1Smrg  # Exit status is that of the last command.
5133da7aff1Smrg  exit
5143da7aff1Smrg}
5153da7aff1Smrg
5163a99fc18Smrg
5173a99fc18Smrg# Determine whether it's possible to make 'echo' print without a newline.
5183a99fc18Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5193a99fc18Smrg# for compatibility with existing Makefiles.
520e531b1a7SmrgECHO_C= ECHO_N= ECHO_T=
521e531b1a7Smrgcase `echo -n x` in #(((((
522e531b1a7Smrg-n*)
523e531b1a7Smrg  case `echo 'xy\c'` in
524e531b1a7Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
525e531b1a7Smrg  xy)  ECHO_C='\c';;
526e531b1a7Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
527e531b1a7Smrg       ECHO_T='	';;
528e531b1a7Smrg  esac;;
529e531b1a7Smrg*)
530e531b1a7Smrg  ECHO_N='-n';;
5313da7aff1Smrgesac
5323da7aff1Smrg
5333a99fc18Smrg# For backward compatibility with old third-party macros, we provide
5343a99fc18Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
5353a99fc18Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5363a99fc18Smrgas_echo='printf %s\n'
5373a99fc18Smrgas_echo_n='printf %s'
5383a99fc18Smrg
539e531b1a7Smrgrm -f conf$$ conf$$.exe conf$$.file
540e531b1a7Smrgif test -d conf$$.dir; then
541e531b1a7Smrg  rm -f conf$$.dir/conf$$.file
5423da7aff1Smrgelse
543e531b1a7Smrg  rm -f conf$$.dir
544e531b1a7Smrg  mkdir conf$$.dir 2>/dev/null
5453da7aff1Smrgfi
546e531b1a7Smrgif (echo >conf$$.file) 2>/dev/null; then
547e531b1a7Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5483da7aff1Smrg    as_ln_s='ln -s'
549e531b1a7Smrg    # ... but there are two gotchas:
5501e42c052Smrg    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
5511e42c052Smrg    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
5521e42c052Smrg    # In both cases, we have to default to 'cp -pR'.
553e531b1a7Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5543e999d35Smrg      as_ln_s='cp -pR'
555e531b1a7Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
556e531b1a7Smrg    as_ln_s=ln
557e531b1a7Smrg  else
5583e999d35Smrg    as_ln_s='cp -pR'
5593da7aff1Smrg  fi
5603da7aff1Smrgelse
5613e999d35Smrg  as_ln_s='cp -pR'
5623da7aff1Smrgfi
563e531b1a7Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564e531b1a7Smrgrmdir conf$$.dir 2>/dev/null
5653da7aff1Smrg
5663da7aff1Smrgif mkdir -p . 2>/dev/null; then
567e531b1a7Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5683da7aff1Smrgelse
5693da7aff1Smrg  test -d ./-p && rmdir ./-p
5703da7aff1Smrg  as_mkdir_p=false
5713da7aff1Smrgfi
5723da7aff1Smrg
5733e999d35Smrgas_test_x='test -x'
5743e999d35Smrgas_executable_p=as_fn_executable_p
5753da7aff1Smrg
5763da7aff1Smrg# Sed expression to map a string onto a valid CPP name.
5771e42c052Smrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5781e42c052Smrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
5793da7aff1Smrg
5803da7aff1Smrg# Sed expression to map a string onto a valid variable name.
5811e42c052Smrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5821e42c052Smrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated
5833da7aff1Smrg
5843da7aff1Smrg
585e531b1a7Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
586e531b1a7Smrgexec 6>&1
5873da7aff1Smrg
5883da7aff1Smrg# Name of the host.
589f9d592e5Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5903da7aff1Smrg# so uname gets run too.
5913da7aff1Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5923da7aff1Smrg
5933da7aff1Smrg#
5943da7aff1Smrg# Initializations.
5953da7aff1Smrg#
5963da7aff1Smrgac_default_prefix=/usr/local
597e531b1a7Smrgac_clean_files=
5983da7aff1Smrgac_config_libobj_dir=.
599e531b1a7SmrgLIBOBJS=
6003da7aff1Smrgcross_compiling=no
6013da7aff1Smrgsubdirs=
6023da7aff1SmrgMFLAGS=
6033da7aff1SmrgMAKEFLAGS=
6043da7aff1Smrg
6053da7aff1Smrg# Identity of this package.
6063da7aff1SmrgPACKAGE_NAME='xlogo'
6073da7aff1SmrgPACKAGE_TARNAME='xlogo'
6081e42c052SmrgPACKAGE_VERSION='1.0.7'
6091e42c052SmrgPACKAGE_STRING='xlogo 1.0.7'
6103a99fc18SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues'
611e531b1a7SmrgPACKAGE_URL=''
6123da7aff1Smrg
6133e999d35Smrgac_unique_file="Makefile.am"
614e531b1a7Smrg# Factoring default headers for most tests.
615e531b1a7Smrgac_includes_default="\
6163a99fc18Smrg#include <stddef.h>
6173a99fc18Smrg#ifdef HAVE_STDIO_H
6183a99fc18Smrg# include <stdio.h>
619e531b1a7Smrg#endif
6203a99fc18Smrg#ifdef HAVE_STDLIB_H
621e531b1a7Smrg# include <stdlib.h>
622e531b1a7Smrg#endif
623e531b1a7Smrg#ifdef HAVE_STRING_H
624e531b1a7Smrg# include <string.h>
625e531b1a7Smrg#endif
626e531b1a7Smrg#ifdef HAVE_INTTYPES_H
627e531b1a7Smrg# include <inttypes.h>
628e531b1a7Smrg#endif
629e531b1a7Smrg#ifdef HAVE_STDINT_H
630e531b1a7Smrg# include <stdint.h>
631e531b1a7Smrg#endif
6323a99fc18Smrg#ifdef HAVE_STRINGS_H
6333a99fc18Smrg# include <strings.h>
6343a99fc18Smrg#endif
6353a99fc18Smrg#ifdef HAVE_SYS_TYPES_H
6363a99fc18Smrg# include <sys/types.h>
6373a99fc18Smrg#endif
6383a99fc18Smrg#ifdef HAVE_SYS_STAT_H
6393a99fc18Smrg# include <sys/stat.h>
6403a99fc18Smrg#endif
641e531b1a7Smrg#ifdef HAVE_UNISTD_H
642e531b1a7Smrg# include <unistd.h>
643e531b1a7Smrg#endif"
644e531b1a7Smrg
6453a99fc18Smrgac_header_c_list=
646e531b1a7Smrgac_subst_vars='am__EXEEXT_FALSE
647e531b1a7Smrgam__EXEEXT_TRUE
648e531b1a7SmrgLTLIBOBJS
649e531b1a7SmrgLIBOBJS
650e531b1a7Smrgappdefaultdir
651e531b1a7SmrgAPPDEFS_LIBS
652e531b1a7SmrgAPPDEFS_CFLAGS
653e531b1a7SmrgXLOGO_LIBS
654e531b1a7SmrgXLOGO_CFLAGS
6553fe82118SmrgUSE_RENDER_FALSE
6563fe82118SmrgUSE_RENDER_TRUE
657f9d592e5SmrgMAN_SUBSTS
658f9d592e5SmrgXORG_MAN_PAGE
659e531b1a7SmrgADMIN_MAN_DIR
660e531b1a7SmrgDRIVER_MAN_DIR
661e531b1a7SmrgMISC_MAN_DIR
662e531b1a7SmrgFILE_MAN_DIR
663e531b1a7SmrgLIB_MAN_DIR
664e531b1a7SmrgAPP_MAN_DIR
665e531b1a7SmrgADMIN_MAN_SUFFIX
666e531b1a7SmrgDRIVER_MAN_SUFFIX
667e531b1a7SmrgMISC_MAN_SUFFIX
668e531b1a7SmrgFILE_MAN_SUFFIX
669e531b1a7SmrgLIB_MAN_SUFFIX
670e531b1a7SmrgAPP_MAN_SUFFIX
671f9d592e5SmrgSED
672e531b1a7Smrghost_os
673e531b1a7Smrghost_vendor
674e531b1a7Smrghost_cpu
675e531b1a7Smrghost
676e531b1a7Smrgbuild_os
677e531b1a7Smrgbuild_vendor
678e531b1a7Smrgbuild_cpu
679e531b1a7Smrgbuild
680e531b1a7SmrgINSTALL_CMD
6813e999d35SmrgPKG_CONFIG_LIBDIR
6823e999d35SmrgPKG_CONFIG_PATH
683e531b1a7SmrgPKG_CONFIG
684e531b1a7SmrgCHANGELOG_CMD
6853fe82118SmrgSTRICT_CFLAGS
686e531b1a7SmrgCWARNFLAGS
6873fe82118SmrgBASE_CFLAGS
688e531b1a7Smrgam__fastdepCC_FALSE
689e531b1a7Smrgam__fastdepCC_TRUE
690e531b1a7SmrgCCDEPMODE
6913e999d35Smrgam__nodep
692e531b1a7SmrgAMDEPBACKSLASH
693e531b1a7SmrgAMDEP_FALSE
694e531b1a7SmrgAMDEP_TRUE
695e531b1a7Smrgam__include
696e531b1a7SmrgDEPDIR
697e531b1a7SmrgOBJEXT
698e531b1a7SmrgEXEEXT
699e531b1a7Smrgac_ct_CC
700e531b1a7SmrgCPPFLAGS
701e531b1a7SmrgLDFLAGS
702e531b1a7SmrgCFLAGS
703e531b1a7SmrgCC
7041e42c052Smrgam__xargs_n
7051e42c052Smrgam__rm_f_notfound
7063e999d35SmrgAM_BACKSLASH
7073e999d35SmrgAM_DEFAULT_VERBOSITY
7083e999d35SmrgAM_DEFAULT_V
7093e999d35SmrgAM_V
7103a99fc18SmrgCSCOPE
7113a99fc18SmrgETAGS
7123a99fc18SmrgCTAGS
713e531b1a7Smrgam__untar
714e531b1a7Smrgam__tar
715e531b1a7SmrgAMTAR
716e531b1a7Smrgam__leading_dot
717e531b1a7SmrgSET_MAKE
718e531b1a7SmrgAWK
719e531b1a7Smrgmkdir_p
720e531b1a7SmrgMKDIR_P
721e531b1a7SmrgINSTALL_STRIP_PROGRAM
722e531b1a7SmrgSTRIP
723e531b1a7Smrginstall_sh
724e531b1a7SmrgMAKEINFO
725e531b1a7SmrgAUTOHEADER
726e531b1a7SmrgAUTOMAKE
727e531b1a7SmrgAUTOCONF
728e531b1a7SmrgACLOCAL
729e531b1a7SmrgVERSION
730e531b1a7SmrgPACKAGE
731e531b1a7SmrgCYGPATH_W
732e531b1a7Smrgam__isrc
733e531b1a7SmrgINSTALL_DATA
734e531b1a7SmrgINSTALL_SCRIPT
735e531b1a7SmrgINSTALL_PROGRAM
736e531b1a7Smrgtarget_alias
737e531b1a7Smrghost_alias
738e531b1a7Smrgbuild_alias
739e531b1a7SmrgLIBS
740e531b1a7SmrgECHO_T
741e531b1a7SmrgECHO_N
742e531b1a7SmrgECHO_C
743e531b1a7SmrgDEFS
744e531b1a7Smrgmandir
745e531b1a7Smrglocaledir
746e531b1a7Smrglibdir
747e531b1a7Smrgpsdir
748e531b1a7Smrgpdfdir
749e531b1a7Smrgdvidir
750e531b1a7Smrghtmldir
751e531b1a7Smrginfodir
752e531b1a7Smrgdocdir
753e531b1a7Smrgoldincludedir
754e531b1a7Smrgincludedir
7553a99fc18Smrgrunstatedir
756e531b1a7Smrglocalstatedir
757e531b1a7Smrgsharedstatedir
758e531b1a7Smrgsysconfdir
759e531b1a7Smrgdatadir
760e531b1a7Smrgdatarootdir
761e531b1a7Smrglibexecdir
762e531b1a7Smrgsbindir
763e531b1a7Smrgbindir
764e531b1a7Smrgprogram_transform_name
765e531b1a7Smrgprefix
766e531b1a7Smrgexec_prefix
767e531b1a7SmrgPACKAGE_URL
768e531b1a7SmrgPACKAGE_BUGREPORT
769e531b1a7SmrgPACKAGE_STRING
770e531b1a7SmrgPACKAGE_VERSION
771e531b1a7SmrgPACKAGE_TARNAME
772e531b1a7SmrgPACKAGE_NAME
773e531b1a7SmrgPATH_SEPARATOR
7743a99fc18SmrgSHELL
7753a99fc18Smrgam__quote'
7763da7aff1Smrgac_subst_files=''
777e531b1a7Smrgac_user_opts='
778e531b1a7Smrgenable_option_checking
7793e999d35Smrgenable_silent_rules
780e531b1a7Smrgenable_dependency_tracking
7813fe82118Smrgenable_selective_werror
782e531b1a7Smrgenable_strict_compilation
783e531b1a7Smrgwith_render
7843a99fc18Smrgwith_xkb
785e531b1a7Smrgwith_appdefaultdir
786e531b1a7Smrg'
787e531b1a7Smrg      ac_precious_vars='build_alias
788e531b1a7Smrghost_alias
789e531b1a7Smrgtarget_alias
790e531b1a7SmrgCC
791e531b1a7SmrgCFLAGS
792e531b1a7SmrgLDFLAGS
793e531b1a7SmrgLIBS
794e531b1a7SmrgCPPFLAGS
795e531b1a7SmrgPKG_CONFIG
7963e999d35SmrgPKG_CONFIG_PATH
7973e999d35SmrgPKG_CONFIG_LIBDIR
798e531b1a7SmrgXLOGO_CFLAGS
799e531b1a7SmrgXLOGO_LIBS
800e531b1a7SmrgAPPDEFS_CFLAGS
801e531b1a7SmrgAPPDEFS_LIBS'
802e531b1a7Smrg
8033da7aff1Smrg
8043da7aff1Smrg# Initialize some variables set by options.
8053da7aff1Smrgac_init_help=
8063da7aff1Smrgac_init_version=false
807e531b1a7Smrgac_unrecognized_opts=
808e531b1a7Smrgac_unrecognized_sep=
8093da7aff1Smrg# The variables have the same names as the options, with
8103da7aff1Smrg# dashes changed to underlines.
8113da7aff1Smrgcache_file=/dev/null
8123da7aff1Smrgexec_prefix=NONE
8133da7aff1Smrgno_create=
8143da7aff1Smrgno_recursion=
8153da7aff1Smrgprefix=NONE
8163da7aff1Smrgprogram_prefix=NONE
8173da7aff1Smrgprogram_suffix=NONE
8183da7aff1Smrgprogram_transform_name=s,x,x,
8193da7aff1Smrgsilent=
8203da7aff1Smrgsite=
8213da7aff1Smrgsrcdir=
8223da7aff1Smrgverbose=
8233da7aff1Smrgx_includes=NONE
8243da7aff1Smrgx_libraries=NONE
8253da7aff1Smrg
8263da7aff1Smrg# Installation directory options.
8273da7aff1Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8283da7aff1Smrg# and all the variables that are supposed to be based on exec_prefix
8293da7aff1Smrg# by default will actually change.
8303da7aff1Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
831e531b1a7Smrg# (The list follows the same order as the GNU Coding Standards.)
8323da7aff1Smrgbindir='${exec_prefix}/bin'
8333da7aff1Smrgsbindir='${exec_prefix}/sbin'
8343da7aff1Smrglibexecdir='${exec_prefix}/libexec'
835e531b1a7Smrgdatarootdir='${prefix}/share'
836e531b1a7Smrgdatadir='${datarootdir}'
8373da7aff1Smrgsysconfdir='${prefix}/etc'
8383da7aff1Smrgsharedstatedir='${prefix}/com'
8393da7aff1Smrglocalstatedir='${prefix}/var'
8403a99fc18Smrgrunstatedir='${localstatedir}/run'
8413da7aff1Smrgincludedir='${prefix}/include'
8423da7aff1Smrgoldincludedir='/usr/include'
843e531b1a7Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844e531b1a7Smrginfodir='${datarootdir}/info'
845e531b1a7Smrghtmldir='${docdir}'
846e531b1a7Smrgdvidir='${docdir}'
847e531b1a7Smrgpdfdir='${docdir}'
848e531b1a7Smrgpsdir='${docdir}'
849e531b1a7Smrglibdir='${exec_prefix}/lib'
850e531b1a7Smrglocaledir='${datarootdir}/locale'
851e531b1a7Smrgmandir='${datarootdir}/man'
8523da7aff1Smrg
8533da7aff1Smrgac_prev=
854e531b1a7Smrgac_dashdash=
8553da7aff1Smrgfor ac_option
8563da7aff1Smrgdo
8573da7aff1Smrg  # If the previous option needs an argument, assign it.
8583da7aff1Smrg  if test -n "$ac_prev"; then
859e531b1a7Smrg    eval $ac_prev=\$ac_option
8603da7aff1Smrg    ac_prev=
8613da7aff1Smrg    continue
8623da7aff1Smrg  fi
8633da7aff1Smrg
864e531b1a7Smrg  case $ac_option in
865f9d592e5Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866f9d592e5Smrg  *=)   ac_optarg= ;;
867f9d592e5Smrg  *)    ac_optarg=yes ;;
868e531b1a7Smrg  esac
8693da7aff1Smrg
870e531b1a7Smrg  case $ac_dashdash$ac_option in
871e531b1a7Smrg  --)
872e531b1a7Smrg    ac_dashdash=yes ;;
8733da7aff1Smrg
8743da7aff1Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8753da7aff1Smrg    ac_prev=bindir ;;
8763da7aff1Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8773da7aff1Smrg    bindir=$ac_optarg ;;
8783da7aff1Smrg
8793da7aff1Smrg  -build | --build | --buil | --bui | --bu)
8803da7aff1Smrg    ac_prev=build_alias ;;
8813da7aff1Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8823da7aff1Smrg    build_alias=$ac_optarg ;;
8833da7aff1Smrg
8843da7aff1Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8853da7aff1Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8863da7aff1Smrg    ac_prev=cache_file ;;
8873da7aff1Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8883da7aff1Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8893da7aff1Smrg    cache_file=$ac_optarg ;;
8903da7aff1Smrg
8913da7aff1Smrg  --config-cache | -C)
8923da7aff1Smrg    cache_file=config.cache ;;
8933da7aff1Smrg
894e531b1a7Smrg  -datadir | --datadir | --datadi | --datad)
8953da7aff1Smrg    ac_prev=datadir ;;
896e531b1a7Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8973da7aff1Smrg    datadir=$ac_optarg ;;
8983da7aff1Smrg
899e531b1a7Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900e531b1a7Smrg  | --dataroo | --dataro | --datar)
901e531b1a7Smrg    ac_prev=datarootdir ;;
902e531b1a7Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903e531b1a7Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904e531b1a7Smrg    datarootdir=$ac_optarg ;;
905e531b1a7Smrg
9063da7aff1Smrg  -disable-* | --disable-*)
907e531b1a7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
9083da7aff1Smrg    # Reject names that are not valid shell variable names.
909e531b1a7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9101e42c052Smrg      as_fn_error $? "invalid feature name: '$ac_useropt'"
911e531b1a7Smrg    ac_useropt_orig=$ac_useropt
9123a99fc18Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
913e531b1a7Smrg    case $ac_user_opts in
914e531b1a7Smrg      *"
915e531b1a7Smrg"enable_$ac_useropt"
916e531b1a7Smrg"*) ;;
917e531b1a7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918e531b1a7Smrg	 ac_unrecognized_sep=', ';;
919e531b1a7Smrg    esac
920e531b1a7Smrg    eval enable_$ac_useropt=no ;;
921e531b1a7Smrg
922e531b1a7Smrg  -docdir | --docdir | --docdi | --doc | --do)
923e531b1a7Smrg    ac_prev=docdir ;;
924e531b1a7Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925e531b1a7Smrg    docdir=$ac_optarg ;;
926e531b1a7Smrg
927e531b1a7Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928e531b1a7Smrg    ac_prev=dvidir ;;
929e531b1a7Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930e531b1a7Smrg    dvidir=$ac_optarg ;;
9313da7aff1Smrg
9323da7aff1Smrg  -enable-* | --enable-*)
933e531b1a7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9343da7aff1Smrg    # Reject names that are not valid shell variable names.
935e531b1a7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9361e42c052Smrg      as_fn_error $? "invalid feature name: '$ac_useropt'"
937e531b1a7Smrg    ac_useropt_orig=$ac_useropt
9383a99fc18Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
939e531b1a7Smrg    case $ac_user_opts in
940e531b1a7Smrg      *"
941e531b1a7Smrg"enable_$ac_useropt"
942e531b1a7Smrg"*) ;;
943e531b1a7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944e531b1a7Smrg	 ac_unrecognized_sep=', ';;
9453da7aff1Smrg    esac
946e531b1a7Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
9473da7aff1Smrg
9483da7aff1Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9493da7aff1Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9503da7aff1Smrg  | --exec | --exe | --ex)
9513da7aff1Smrg    ac_prev=exec_prefix ;;
9523da7aff1Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9533da7aff1Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9543da7aff1Smrg  | --exec=* | --exe=* | --ex=*)
9553da7aff1Smrg    exec_prefix=$ac_optarg ;;
9563da7aff1Smrg
9573da7aff1Smrg  -gas | --gas | --ga | --g)
9583da7aff1Smrg    # Obsolete; use --with-gas.
9593da7aff1Smrg    with_gas=yes ;;
9603da7aff1Smrg
9613da7aff1Smrg  -help | --help | --hel | --he | -h)
9623da7aff1Smrg    ac_init_help=long ;;
9633da7aff1Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9643da7aff1Smrg    ac_init_help=recursive ;;
9653da7aff1Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9663da7aff1Smrg    ac_init_help=short ;;
9673da7aff1Smrg
9683da7aff1Smrg  -host | --host | --hos | --ho)
9693da7aff1Smrg    ac_prev=host_alias ;;
9703da7aff1Smrg  -host=* | --host=* | --hos=* | --ho=*)
9713da7aff1Smrg    host_alias=$ac_optarg ;;
9723da7aff1Smrg
973e531b1a7Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974e531b1a7Smrg    ac_prev=htmldir ;;
975e531b1a7Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976e531b1a7Smrg  | --ht=*)
977e531b1a7Smrg    htmldir=$ac_optarg ;;
978e531b1a7Smrg
9793da7aff1Smrg  -includedir | --includedir | --includedi | --included | --include \
9803da7aff1Smrg  | --includ | --inclu | --incl | --inc)
9813da7aff1Smrg    ac_prev=includedir ;;
9823da7aff1Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9833da7aff1Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9843da7aff1Smrg    includedir=$ac_optarg ;;
9853da7aff1Smrg
9863da7aff1Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9873da7aff1Smrg    ac_prev=infodir ;;
9883da7aff1Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9893da7aff1Smrg    infodir=$ac_optarg ;;
9903da7aff1Smrg
9913da7aff1Smrg  -libdir | --libdir | --libdi | --libd)
9923da7aff1Smrg    ac_prev=libdir ;;
9933da7aff1Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9943da7aff1Smrg    libdir=$ac_optarg ;;
9953da7aff1Smrg
9963da7aff1Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9973da7aff1Smrg  | --libexe | --libex | --libe)
9983da7aff1Smrg    ac_prev=libexecdir ;;
9993da7aff1Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
10003da7aff1Smrg  | --libexe=* | --libex=* | --libe=*)
10013da7aff1Smrg    libexecdir=$ac_optarg ;;
10023da7aff1Smrg
1003e531b1a7Smrg  -localedir | --localedir | --localedi | --localed | --locale)
1004e531b1a7Smrg    ac_prev=localedir ;;
1005e531b1a7Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006e531b1a7Smrg    localedir=$ac_optarg ;;
1007e531b1a7Smrg
10083da7aff1Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
1009e531b1a7Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
10103da7aff1Smrg    ac_prev=localstatedir ;;
10113da7aff1Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012e531b1a7Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
10133da7aff1Smrg    localstatedir=$ac_optarg ;;
10143da7aff1Smrg
10153da7aff1Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
10163da7aff1Smrg    ac_prev=mandir ;;
10173da7aff1Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
10183da7aff1Smrg    mandir=$ac_optarg ;;
10193da7aff1Smrg
10203da7aff1Smrg  -nfp | --nfp | --nf)
10213da7aff1Smrg    # Obsolete; use --without-fp.
10223da7aff1Smrg    with_fp=no ;;
10233da7aff1Smrg
10243da7aff1Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
10253da7aff1Smrg  | --no-cr | --no-c | -n)
10263da7aff1Smrg    no_create=yes ;;
10273da7aff1Smrg
10283da7aff1Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10293da7aff1Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10303da7aff1Smrg    no_recursion=yes ;;
10313da7aff1Smrg
10323da7aff1Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10333da7aff1Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10343da7aff1Smrg  | --oldin | --oldi | --old | --ol | --o)
10353da7aff1Smrg    ac_prev=oldincludedir ;;
10363da7aff1Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10373da7aff1Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10383da7aff1Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10393da7aff1Smrg    oldincludedir=$ac_optarg ;;
10403da7aff1Smrg
10413da7aff1Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10423da7aff1Smrg    ac_prev=prefix ;;
10433da7aff1Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10443da7aff1Smrg    prefix=$ac_optarg ;;
10453da7aff1Smrg
10463da7aff1Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10473da7aff1Smrg  | --program-pre | --program-pr | --program-p)
10483da7aff1Smrg    ac_prev=program_prefix ;;
10493da7aff1Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10503da7aff1Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10513da7aff1Smrg    program_prefix=$ac_optarg ;;
10523da7aff1Smrg
10533da7aff1Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10543da7aff1Smrg  | --program-suf | --program-su | --program-s)
10553da7aff1Smrg    ac_prev=program_suffix ;;
10563da7aff1Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10573da7aff1Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10583da7aff1Smrg    program_suffix=$ac_optarg ;;
10593da7aff1Smrg
10603da7aff1Smrg  -program-transform-name | --program-transform-name \
10613da7aff1Smrg  | --program-transform-nam | --program-transform-na \
10623da7aff1Smrg  | --program-transform-n | --program-transform- \
10633da7aff1Smrg  | --program-transform | --program-transfor \
10643da7aff1Smrg  | --program-transfo | --program-transf \
10653da7aff1Smrg  | --program-trans | --program-tran \
10663da7aff1Smrg  | --progr-tra | --program-tr | --program-t)
10673da7aff1Smrg    ac_prev=program_transform_name ;;
10683da7aff1Smrg  -program-transform-name=* | --program-transform-name=* \
10693da7aff1Smrg  | --program-transform-nam=* | --program-transform-na=* \
10703da7aff1Smrg  | --program-transform-n=* | --program-transform-=* \
10713da7aff1Smrg  | --program-transform=* | --program-transfor=* \
10723da7aff1Smrg  | --program-transfo=* | --program-transf=* \
10733da7aff1Smrg  | --program-trans=* | --program-tran=* \
10743da7aff1Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10753da7aff1Smrg    program_transform_name=$ac_optarg ;;
10763da7aff1Smrg
1077e531b1a7Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078e531b1a7Smrg    ac_prev=pdfdir ;;
1079e531b1a7Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080e531b1a7Smrg    pdfdir=$ac_optarg ;;
1081e531b1a7Smrg
1082e531b1a7Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1083e531b1a7Smrg    ac_prev=psdir ;;
1084e531b1a7Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085e531b1a7Smrg    psdir=$ac_optarg ;;
1086e531b1a7Smrg
10873da7aff1Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10883da7aff1Smrg  | -silent | --silent | --silen | --sile | --sil)
10893da7aff1Smrg    silent=yes ;;
10903da7aff1Smrg
10913a99fc18Smrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
10923a99fc18Smrg  | --runstate | --runstat | --runsta | --runst | --runs \
10933a99fc18Smrg  | --run | --ru | --r)
10943a99fc18Smrg    ac_prev=runstatedir ;;
10953a99fc18Smrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
10963a99fc18Smrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
10973a99fc18Smrg  | --run=* | --ru=* | --r=*)
10983a99fc18Smrg    runstatedir=$ac_optarg ;;
10993a99fc18Smrg
11003da7aff1Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11013da7aff1Smrg    ac_prev=sbindir ;;
11023da7aff1Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
11033da7aff1Smrg  | --sbi=* | --sb=*)
11043da7aff1Smrg    sbindir=$ac_optarg ;;
11053da7aff1Smrg
11063da7aff1Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
11073da7aff1Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
11083da7aff1Smrg  | --sharedst | --shareds | --shared | --share | --shar \
11093da7aff1Smrg  | --sha | --sh)
11103da7aff1Smrg    ac_prev=sharedstatedir ;;
11113da7aff1Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
11123da7aff1Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
11133da7aff1Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
11143da7aff1Smrg  | --sha=* | --sh=*)
11153da7aff1Smrg    sharedstatedir=$ac_optarg ;;
11163da7aff1Smrg
11173da7aff1Smrg  -site | --site | --sit)
11183da7aff1Smrg    ac_prev=site ;;
11193da7aff1Smrg  -site=* | --site=* | --sit=*)
11203da7aff1Smrg    site=$ac_optarg ;;
11213da7aff1Smrg
11223da7aff1Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11233da7aff1Smrg    ac_prev=srcdir ;;
11243da7aff1Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11253da7aff1Smrg    srcdir=$ac_optarg ;;
11263da7aff1Smrg
11273da7aff1Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
11283da7aff1Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
11293da7aff1Smrg    ac_prev=sysconfdir ;;
11303da7aff1Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
11313da7aff1Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
11323da7aff1Smrg    sysconfdir=$ac_optarg ;;
11333da7aff1Smrg
11343da7aff1Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11353da7aff1Smrg    ac_prev=target_alias ;;
11363da7aff1Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11373da7aff1Smrg    target_alias=$ac_optarg ;;
11383da7aff1Smrg
11393da7aff1Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11403da7aff1Smrg    verbose=yes ;;
11413da7aff1Smrg
11423da7aff1Smrg  -version | --version | --versio | --versi | --vers | -V)
11433da7aff1Smrg    ac_init_version=: ;;
11443da7aff1Smrg
11453da7aff1Smrg  -with-* | --with-*)
1146e531b1a7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11473da7aff1Smrg    # Reject names that are not valid shell variable names.
1148e531b1a7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11491e42c052Smrg      as_fn_error $? "invalid package name: '$ac_useropt'"
1150e531b1a7Smrg    ac_useropt_orig=$ac_useropt
11513a99fc18Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1152e531b1a7Smrg    case $ac_user_opts in
1153e531b1a7Smrg      *"
1154e531b1a7Smrg"with_$ac_useropt"
1155e531b1a7Smrg"*) ;;
1156e531b1a7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157e531b1a7Smrg	 ac_unrecognized_sep=', ';;
11583da7aff1Smrg    esac
1159e531b1a7Smrg    eval with_$ac_useropt=\$ac_optarg ;;
11603da7aff1Smrg
11613da7aff1Smrg  -without-* | --without-*)
1162e531b1a7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11633da7aff1Smrg    # Reject names that are not valid shell variable names.
1164e531b1a7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11651e42c052Smrg      as_fn_error $? "invalid package name: '$ac_useropt'"
1166e531b1a7Smrg    ac_useropt_orig=$ac_useropt
11673a99fc18Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1168e531b1a7Smrg    case $ac_user_opts in
1169e531b1a7Smrg      *"
1170e531b1a7Smrg"with_$ac_useropt"
1171e531b1a7Smrg"*) ;;
1172e531b1a7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173e531b1a7Smrg	 ac_unrecognized_sep=', ';;
1174e531b1a7Smrg    esac
1175e531b1a7Smrg    eval with_$ac_useropt=no ;;
11763da7aff1Smrg
11773da7aff1Smrg  --x)
11783da7aff1Smrg    # Obsolete; use --with-x.
11793da7aff1Smrg    with_x=yes ;;
11803da7aff1Smrg
11813da7aff1Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11823da7aff1Smrg  | --x-incl | --x-inc | --x-in | --x-i)
11833da7aff1Smrg    ac_prev=x_includes ;;
11843da7aff1Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11853da7aff1Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11863da7aff1Smrg    x_includes=$ac_optarg ;;
11873da7aff1Smrg
11883da7aff1Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11893da7aff1Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11903da7aff1Smrg    ac_prev=x_libraries ;;
11913da7aff1Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11923da7aff1Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11933da7aff1Smrg    x_libraries=$ac_optarg ;;
11943da7aff1Smrg
11951e42c052Smrg  -*) as_fn_error $? "unrecognized option: '$ac_option'
11961e42c052SmrgTry '$0 --help' for more information"
11973da7aff1Smrg    ;;
11983da7aff1Smrg
11993da7aff1Smrg  *=*)
12003da7aff1Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
12013da7aff1Smrg    # Reject names that are not valid shell variable names.
1202e531b1a7Smrg    case $ac_envvar in #(
1203e531b1a7Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
12041e42c052Smrg      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1205e531b1a7Smrg    esac
1206e531b1a7Smrg    eval $ac_envvar=\$ac_optarg
12073da7aff1Smrg    export $ac_envvar ;;
12083da7aff1Smrg
12093da7aff1Smrg  *)
12103da7aff1Smrg    # FIXME: should be removed in autoconf 3.0.
12113a99fc18Smrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
12123da7aff1Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
12133a99fc18Smrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1214f9d592e5Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12153da7aff1Smrg    ;;
12163da7aff1Smrg
12173da7aff1Smrg  esac
12183da7aff1Smrgdone
12193da7aff1Smrg
12203da7aff1Smrgif test -n "$ac_prev"; then
12213da7aff1Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222f9d592e5Smrg  as_fn_error $? "missing argument to $ac_option"
12233da7aff1Smrgfi
12243da7aff1Smrg
1225e531b1a7Smrgif test -n "$ac_unrecognized_opts"; then
1226e531b1a7Smrg  case $enable_option_checking in
1227e531b1a7Smrg    no) ;;
1228f9d592e5Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
12293a99fc18Smrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12303da7aff1Smrg  esac
1231e531b1a7Smrgfi
12323da7aff1Smrg
1233e531b1a7Smrg# Check all directory arguments for consistency.
1234e531b1a7Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235e531b1a7Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1236e531b1a7Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
12373a99fc18Smrg		libdir localedir mandir runstatedir
12383da7aff1Smrgdo
1239e531b1a7Smrg  eval ac_val=\$$ac_var
1240e531b1a7Smrg  # Remove trailing slashes.
1241e531b1a7Smrg  case $ac_val in
1242e531b1a7Smrg    */ )
1243e531b1a7Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244e531b1a7Smrg      eval $ac_var=\$ac_val;;
1245e531b1a7Smrg  esac
1246e531b1a7Smrg  # Be sure to have absolute directory names.
12473da7aff1Smrg  case $ac_val in
1248e531b1a7Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1249e531b1a7Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12503da7aff1Smrg  esac
1251f9d592e5Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
12523da7aff1Smrgdone
12533da7aff1Smrg
12541e42c052Smrg# There might be people who depend on the old broken behavior: '$host'
12553da7aff1Smrg# used to hold the argument of --host etc.
12563da7aff1Smrg# FIXME: To remove some day.
12573da7aff1Smrgbuild=$build_alias
12583da7aff1Smrghost=$host_alias
12593da7aff1Smrgtarget=$target_alias
12603da7aff1Smrg
12613da7aff1Smrg# FIXME: To remove some day.
12623da7aff1Smrgif test "x$host_alias" != x; then
12633da7aff1Smrg  if test "x$build_alias" = x; then
12643da7aff1Smrg    cross_compiling=maybe
12653da7aff1Smrg  elif test "x$build_alias" != "x$host_alias"; then
12663da7aff1Smrg    cross_compiling=yes
12673da7aff1Smrg  fi
12683da7aff1Smrgfi
12693da7aff1Smrg
12703da7aff1Smrgac_tool_prefix=
12713da7aff1Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12723da7aff1Smrg
12733da7aff1Smrgtest "$silent" = yes && exec 6>/dev/null
12743da7aff1Smrg
12753da7aff1Smrg
1276e531b1a7Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1277e531b1a7Smrgac_ls_di=`ls -di .` &&
1278e531b1a7Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279f9d592e5Smrg  as_fn_error $? "working directory cannot be determined"
1280e531b1a7Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281f9d592e5Smrg  as_fn_error $? "pwd does not report name of working directory"
1282e531b1a7Smrg
1283e531b1a7Smrg
12843da7aff1Smrg# Find the source files, if location was not specified.
12853da7aff1Smrgif test -z "$srcdir"; then
12863da7aff1Smrg  ac_srcdir_defaulted=yes
1287e531b1a7Smrg  # Try the directory containing this script, then the parent directory.
1288e531b1a7Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1289e531b1a7Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290e531b1a7Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1291e531b1a7Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1292e531b1a7Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12933a99fc18Smrgprintf "%s\n" X"$as_myself" |
1294e531b1a7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295e531b1a7Smrg	    s//\1/
1296e531b1a7Smrg	    q
1297e531b1a7Smrg	  }
1298e531b1a7Smrg	  /^X\(\/\/\)[^/].*/{
1299e531b1a7Smrg	    s//\1/
1300e531b1a7Smrg	    q
1301e531b1a7Smrg	  }
1302e531b1a7Smrg	  /^X\(\/\/\)$/{
1303e531b1a7Smrg	    s//\1/
1304e531b1a7Smrg	    q
1305e531b1a7Smrg	  }
1306e531b1a7Smrg	  /^X\(\/\).*/{
1307e531b1a7Smrg	    s//\1/
1308e531b1a7Smrg	    q
1309e531b1a7Smrg	  }
1310e531b1a7Smrg	  s/.*/./; q'`
13113da7aff1Smrg  srcdir=$ac_confdir
1312e531b1a7Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
13133da7aff1Smrg    srcdir=..
13143da7aff1Smrg  fi
13153da7aff1Smrgelse
13163da7aff1Smrg  ac_srcdir_defaulted=no
13173da7aff1Smrgfi
1318e531b1a7Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1319e531b1a7Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320f9d592e5Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1321e531b1a7Smrgfi
13221e42c052Smrgac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1323e531b1a7Smrgac_abs_confdir=`(
1324f9d592e5Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325e531b1a7Smrg	pwd)`
1326e531b1a7Smrg# When building in place, set srcdir=.
1327e531b1a7Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1328e531b1a7Smrg  srcdir=.
1329e531b1a7Smrgfi
1330e531b1a7Smrg# Remove unnecessary trailing slashes from srcdir.
1331e531b1a7Smrg# Double slashes in file names in object file debugging info
1332e531b1a7Smrg# mess up M-x gdb in Emacs.
1333e531b1a7Smrgcase $srcdir in
1334e531b1a7Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335e531b1a7Smrgesac
1336e531b1a7Smrgfor ac_var in $ac_precious_vars; do
1337e531b1a7Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338e531b1a7Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1339e531b1a7Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340e531b1a7Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341e531b1a7Smrgdone
13423da7aff1Smrg
13433da7aff1Smrg#
13443da7aff1Smrg# Report the --help message.
13453da7aff1Smrg#
13463da7aff1Smrgif test "$ac_init_help" = "long"; then
13473da7aff1Smrg  # Omit some internal or obsolete options to make the list less imposing.
13483da7aff1Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
13493da7aff1Smrg  cat <<_ACEOF
13501e42c052Smrg'configure' configures xlogo 1.0.7 to adapt to many kinds of systems.
13513da7aff1Smrg
13523da7aff1SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13533da7aff1Smrg
13543da7aff1SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13553da7aff1SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13563da7aff1Smrg
13573da7aff1SmrgDefaults for the options are specified in brackets.
13583da7aff1Smrg
13593da7aff1SmrgConfiguration:
13603da7aff1Smrg  -h, --help              display this help and exit
13613da7aff1Smrg      --help=short        display options specific to this package
13623da7aff1Smrg      --help=recursive    display the short help of all the included packages
13633da7aff1Smrg  -V, --version           display version information and exit
13641e42c052Smrg  -q, --quiet, --silent   do not print 'checking ...' messages
13653da7aff1Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13661e42c052Smrg  -C, --config-cache      alias for '--cache-file=config.cache'
13673da7aff1Smrg  -n, --no-create         do not create output files
13681e42c052Smrg      --srcdir=DIR        find the sources in DIR [configure dir or '..']
13693da7aff1Smrg
13703da7aff1SmrgInstallation directories:
13713da7aff1Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1372e531b1a7Smrg                          [$ac_default_prefix]
13733da7aff1Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1374e531b1a7Smrg                          [PREFIX]
13753da7aff1Smrg
13761e42c052SmrgBy default, 'make install' will install all the files in
13771e42c052Smrg'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
13781e42c052Smrgan installation prefix other than '$ac_default_prefix' using '--prefix',
13791e42c052Smrgfor instance '--prefix=\$HOME'.
13803da7aff1Smrg
13813da7aff1SmrgFor better control, use the options below.
13823da7aff1Smrg
13833da7aff1SmrgFine tuning of the installation directories:
1384e531b1a7Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1385e531b1a7Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1386e531b1a7Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1387e531b1a7Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1388e531b1a7Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1389e531b1a7Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13903a99fc18Smrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1391e531b1a7Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1392e531b1a7Smrg  --includedir=DIR        C header files [PREFIX/include]
1393e531b1a7Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1394e531b1a7Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1395e531b1a7Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1396e531b1a7Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1397e531b1a7Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1398e531b1a7Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1399e531b1a7Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xlogo]
1400e531b1a7Smrg  --htmldir=DIR           html documentation [DOCDIR]
1401e531b1a7Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1402e531b1a7Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1403e531b1a7Smrg  --psdir=DIR             ps documentation [DOCDIR]
14043da7aff1Smrg_ACEOF
14053da7aff1Smrg
14063da7aff1Smrg  cat <<\_ACEOF
14073da7aff1Smrg
14083da7aff1SmrgProgram names:
14093da7aff1Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
14103da7aff1Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
14113da7aff1Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
14123da7aff1Smrg
14133da7aff1SmrgSystem types:
14143da7aff1Smrg  --build=BUILD     configure for building on BUILD [guessed]
14153da7aff1Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
14163da7aff1Smrg_ACEOF
14173da7aff1Smrgfi
14183da7aff1Smrg
14193da7aff1Smrgif test -n "$ac_init_help"; then
14203da7aff1Smrg  case $ac_init_help in
14211e42c052Smrg     short | recursive ) echo "Configuration of xlogo 1.0.7:";;
14223da7aff1Smrg   esac
14233da7aff1Smrg  cat <<\_ACEOF
14243da7aff1Smrg
14253da7aff1SmrgOptional Features:
1426e531b1a7Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
14273da7aff1Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
14283da7aff1Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14293e999d35Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
14303e999d35Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
14313e999d35Smrg  --enable-dependency-tracking
14323e999d35Smrg                          do not reject slow dependency extractors
14333e999d35Smrg  --disable-dependency-tracking
14343e999d35Smrg                          speeds up one-time build
14353fe82118Smrg  --disable-selective-werror
14363fe82118Smrg                          Turn off selective compiler errors. (default:
14373fe82118Smrg                          enabled)
1438e531b1a7Smrg  --enable-strict-compilation
1439e531b1a7Smrg                          Enable all warnings from compiler and make them
1440e531b1a7Smrg                          errors (default: disabled)
14413da7aff1Smrg
14423da7aff1SmrgOptional Packages:
14433da7aff1Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
14443da7aff1Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14453a99fc18Smrg  --with-render           Use Xrender & Xft2 to draw logo
14463a99fc18Smrg  --with-xkb              Use XKB to sound bells
1447e531b1a7Smrg  --with-appdefaultdir=<pathname>
1448e531b1a7Smrg                          specify directory for app-defaults files (default is
1449e531b1a7Smrg                          autodetected)
14503da7aff1Smrg
14513da7aff1SmrgSome influential environment variables:
14523da7aff1Smrg  CC          C compiler command
14533da7aff1Smrg  CFLAGS      C compiler flags
14543da7aff1Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14553da7aff1Smrg              nonstandard directory <lib dir>
1456e531b1a7Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1457e531b1a7Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458e531b1a7Smrg              you have headers in a nonstandard directory <include dir>
14593da7aff1Smrg  PKG_CONFIG  path to pkg-config utility
14603e999d35Smrg  PKG_CONFIG_PATH
14613e999d35Smrg              directories to add to pkg-config's search path
14623e999d35Smrg  PKG_CONFIG_LIBDIR
14633e999d35Smrg              path overriding pkg-config's built-in search path
1464e531b1a7Smrg  XLOGO_CFLAGS
1465e531b1a7Smrg              C compiler flags for XLOGO, overriding pkg-config
1466e531b1a7Smrg  XLOGO_LIBS  linker flags for XLOGO, overriding pkg-config
14673da7aff1Smrg  APPDEFS_CFLAGS
14683da7aff1Smrg              C compiler flags for APPDEFS, overriding pkg-config
14693da7aff1Smrg  APPDEFS_LIBS
14703da7aff1Smrg              linker flags for APPDEFS, overriding pkg-config
14713da7aff1Smrg
14721e42c052SmrgUse these variables to override the choices made by 'configure' or to help
14733da7aff1Smrgit to find libraries and programs with nonstandard names/locations.
14743da7aff1Smrg
14753a99fc18SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues>.
14763da7aff1Smrg_ACEOF
1477e531b1a7Smrgac_status=$?
14783da7aff1Smrgfi
14793da7aff1Smrg
14803da7aff1Smrgif test "$ac_init_help" = "recursive"; then
14813da7aff1Smrg  # If there are subdirs, report their specific --help.
14823da7aff1Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483e531b1a7Smrg    test -d "$ac_dir" ||
1484e531b1a7Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485e531b1a7Smrg      continue
14863da7aff1Smrg    ac_builddir=.
14873da7aff1Smrg
1488e531b1a7Smrgcase "$ac_dir" in
1489e531b1a7Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490e531b1a7Smrg*)
14913a99fc18Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1492e531b1a7Smrg  # A ".." for each directory in $ac_dir_suffix.
14933a99fc18Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494e531b1a7Smrg  case $ac_top_builddir_sub in
1495e531b1a7Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496e531b1a7Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497e531b1a7Smrg  esac ;;
1498e531b1a7Smrgesac
1499e531b1a7Smrgac_abs_top_builddir=$ac_pwd
1500e531b1a7Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1501e531b1a7Smrg# for backward compatibility:
1502e531b1a7Smrgac_top_builddir=$ac_top_build_prefix
15033da7aff1Smrg
15043da7aff1Smrgcase $srcdir in
1505e531b1a7Smrg  .)  # We are building in place.
15063da7aff1Smrg    ac_srcdir=.
1507e531b1a7Smrg    ac_top_srcdir=$ac_top_builddir_sub
1508e531b1a7Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1509e531b1a7Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
15103da7aff1Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1511e531b1a7Smrg    ac_top_srcdir=$srcdir
1512e531b1a7Smrg    ac_abs_top_srcdir=$srcdir ;;
1513e531b1a7Smrg  *) # Relative name.
1514e531b1a7Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515e531b1a7Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1516e531b1a7Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15173da7aff1Smrgesac
1518e531b1a7Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519e531b1a7Smrg
1520e531b1a7Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
15213a99fc18Smrg    # Check for configure.gnu first; this name is used for a wrapper for
15223a99fc18Smrg    # Metaconfig's "Configure" on case-insensitive file systems.
1523e531b1a7Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1524e531b1a7Smrg      echo &&
1525e531b1a7Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526e531b1a7Smrg    elif test -f "$ac_srcdir/configure"; then
1527e531b1a7Smrg      echo &&
1528e531b1a7Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
15293da7aff1Smrg    else
15303a99fc18Smrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531e531b1a7Smrg    fi || ac_status=$?
1532e531b1a7Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
15333da7aff1Smrg  done
15343da7aff1Smrgfi
15353da7aff1Smrg
1536e531b1a7Smrgtest -n "$ac_init_help" && exit $ac_status
15373da7aff1Smrgif $ac_init_version; then
15383da7aff1Smrg  cat <<\_ACEOF
15391e42c052Smrgxlogo configure 1.0.7
15401e42c052Smrggenerated by GNU Autoconf 2.72
15413da7aff1Smrg
15421e42c052SmrgCopyright (C) 2023 Free Software Foundation, Inc.
15433da7aff1SmrgThis configure script is free software; the Free Software Foundation
15443da7aff1Smrggives unlimited permission to copy, distribute and modify it.
15453da7aff1Smrg_ACEOF
1546e531b1a7Smrg  exit
15473da7aff1Smrgfi
15483da7aff1Smrg
1549e531b1a7Smrg## ------------------------ ##
1550e531b1a7Smrg## Autoconf initialization. ##
1551e531b1a7Smrg## ------------------------ ##
15523da7aff1Smrg
1553e531b1a7Smrg# ac_fn_c_try_compile LINENO
1554e531b1a7Smrg# --------------------------
1555e531b1a7Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1556e531b1a7Smrgac_fn_c_try_compile ()
15573da7aff1Smrg{
1558e531b1a7Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15593a99fc18Smrg  rm -f conftest.$ac_objext conftest.beam
1560e531b1a7Smrg  if { { ac_try="$ac_compile"
1561e531b1a7Smrgcase "(($ac_try" in
1562e531b1a7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563e531b1a7Smrg  *) ac_try_echo=$ac_try;;
1564e531b1a7Smrgesac
1565e531b1a7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15663a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
1567e531b1a7Smrg  (eval "$ac_compile") 2>conftest.err
1568e531b1a7Smrg  ac_status=$?
1569e531b1a7Smrg  if test -s conftest.err; then
1570e531b1a7Smrg    grep -v '^ *+' conftest.err >conftest.er1
1571e531b1a7Smrg    cat conftest.er1 >&5
1572e531b1a7Smrg    mv -f conftest.er1 conftest.err
1573e531b1a7Smrg  fi
15743a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575e531b1a7Smrg  test $ac_status = 0; } && {
1576e531b1a7Smrg	 test -z "$ac_c_werror_flag" ||
1577e531b1a7Smrg	 test ! -s conftest.err
15783a99fc18Smrg       } && test -s conftest.$ac_objext
15793a99fc18Smrgthen :
1580e531b1a7Smrg  ac_retval=0
15811e42c052Smrgelse case e in #(
15821e42c052Smrg  e) printf "%s\n" "$as_me: failed program was:" >&5
1583e531b1a7Smrgsed 's/^/| /' conftest.$ac_ext >&5
15843da7aff1Smrg
15851e42c052Smrg	ac_retval=1 ;;
15861e42c052Smrgesac
1587e531b1a7Smrgfi
1588f9d592e5Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589e531b1a7Smrg  as_fn_set_status $ac_retval
15903da7aff1Smrg
1591e531b1a7Smrg} # ac_fn_c_try_compile
15923da7aff1Smrg
15933a99fc18Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
15943a99fc18Smrg# ------------------------------------------------------------------
1595f9d592e5Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
15963a99fc18Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
15973a99fc18Smrgac_fn_check_decl ()
1598e531b1a7Smrg{
1599e531b1a7Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600f9d592e5Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
16013a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
16023a99fc18Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
16033a99fc18Smrgif eval test \${$3+y}
16043a99fc18Smrgthen :
16053a99fc18Smrg  printf %s "(cached) " >&6
16061e42c052Smrgelse case e in #(
16071e42c052Smrg  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
16083a99fc18Smrg  eval ac_save_FLAGS=\$$6
16093a99fc18Smrg  as_fn_append $6 " $5"
1610e531b1a7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611e531b1a7Smrg/* end confdefs.h.  */
1612e531b1a7Smrg$4
1613e531b1a7Smrgint
16143a99fc18Smrgmain (void)
1615e531b1a7Smrg{
1616f9d592e5Smrg#ifndef $as_decl_name
1617f9d592e5Smrg#ifdef __cplusplus
1618f9d592e5Smrg  (void) $as_decl_use;
1619f9d592e5Smrg#else
1620f9d592e5Smrg  (void) $as_decl_name;
1621f9d592e5Smrg#endif
1622e531b1a7Smrg#endif
16233da7aff1Smrg
1624e531b1a7Smrg  ;
1625e531b1a7Smrg  return 0;
1626e531b1a7Smrg}
1627e531b1a7Smrg_ACEOF
16283a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
16293a99fc18Smrgthen :
1630e531b1a7Smrg  eval "$3=yes"
16311e42c052Smrgelse case e in #(
16321e42c052Smrg  e) eval "$3=no" ;;
16331e42c052Smrgesac
1634e531b1a7Smrgfi
16353a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16363a99fc18Smrg  eval $6=\$ac_save_FLAGS
16371e42c052Smrg ;;
16381e42c052Smrgesac
1639e531b1a7Smrgfi
16403a99fc18Smrgeval ac_res=\$$3
16413a99fc18Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16423a99fc18Smrgprintf "%s\n" "$ac_res" >&6; }
1643f9d592e5Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644e531b1a7Smrg
16453a99fc18Smrg} # ac_fn_check_decl
1646e531b1a7Smrg
1647e531b1a7Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648e531b1a7Smrg# -------------------------------------------------------
1649e531b1a7Smrg# Tests whether HEADER exists and can be compiled using the include files in
1650e531b1a7Smrg# INCLUDES, setting the cache variable VAR accordingly.
1651e531b1a7Smrgac_fn_c_check_header_compile ()
1652e531b1a7Smrg{
1653e531b1a7Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16543a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16553a99fc18Smrgprintf %s "checking for $2... " >&6; }
16563a99fc18Smrgif eval test \${$3+y}
16573a99fc18Smrgthen :
16583a99fc18Smrg  printf %s "(cached) " >&6
16591e42c052Smrgelse case e in #(
16601e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661e531b1a7Smrg/* end confdefs.h.  */
1662e531b1a7Smrg$4
1663e531b1a7Smrg#include <$2>
1664e531b1a7Smrg_ACEOF
16653a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
16663a99fc18Smrgthen :
1667e531b1a7Smrg  eval "$3=yes"
16681e42c052Smrgelse case e in #(
16691e42c052Smrg  e) eval "$3=no" ;;
16701e42c052Smrgesac
1671e531b1a7Smrgfi
16721e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16731e42c052Smrgesac
1674e531b1a7Smrgfi
1675e531b1a7Smrgeval ac_res=\$$3
16763a99fc18Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16773a99fc18Smrgprintf "%s\n" "$ac_res" >&6; }
1678f9d592e5Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679e531b1a7Smrg
1680e531b1a7Smrg} # ac_fn_c_check_header_compile
16813fe82118Smrg
16823fe82118Smrg# ac_fn_c_try_link LINENO
16833fe82118Smrg# -----------------------
16843fe82118Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
16853fe82118Smrgac_fn_c_try_link ()
16863fe82118Smrg{
16873fe82118Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16883a99fc18Smrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
16893fe82118Smrg  if { { ac_try="$ac_link"
16903fe82118Smrgcase "(($ac_try" in
16913fe82118Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923fe82118Smrg  *) ac_try_echo=$ac_try;;
16933fe82118Smrgesac
16943fe82118Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16953a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
16963fe82118Smrg  (eval "$ac_link") 2>conftest.err
16973fe82118Smrg  ac_status=$?
16983fe82118Smrg  if test -s conftest.err; then
16993fe82118Smrg    grep -v '^ *+' conftest.err >conftest.er1
17003fe82118Smrg    cat conftest.er1 >&5
17013fe82118Smrg    mv -f conftest.er1 conftest.err
17023fe82118Smrg  fi
17033a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17043fe82118Smrg  test $ac_status = 0; } && {
17053fe82118Smrg	 test -z "$ac_c_werror_flag" ||
17063fe82118Smrg	 test ! -s conftest.err
17073fe82118Smrg       } && test -s conftest$ac_exeext && {
17083fe82118Smrg	 test "$cross_compiling" = yes ||
17093e999d35Smrg	 test -x conftest$ac_exeext
17103a99fc18Smrg       }
17113a99fc18Smrgthen :
17123fe82118Smrg  ac_retval=0
17131e42c052Smrgelse case e in #(
17141e42c052Smrg  e) printf "%s\n" "$as_me: failed program was:" >&5
17153fe82118Smrgsed 's/^/| /' conftest.$ac_ext >&5
17163fe82118Smrg
17171e42c052Smrg	ac_retval=1 ;;
17181e42c052Smrgesac
17193fe82118Smrgfi
17203fe82118Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
17213fe82118Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
17223fe82118Smrg  # interfere with the next link command; also delete a directory that is
17233fe82118Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
17243fe82118Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17253fe82118Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17263fe82118Smrg  as_fn_set_status $ac_retval
17273fe82118Smrg
17283fe82118Smrg} # ac_fn_c_try_link
17291e42c052Smrg
17301e42c052Smrg# ac_fn_c_check_func LINENO FUNC VAR
17311e42c052Smrg# ----------------------------------
17321e42c052Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
17331e42c052Smrgac_fn_c_check_func ()
17341e42c052Smrg{
17351e42c052Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17361e42c052Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17371e42c052Smrgprintf %s "checking for $2... " >&6; }
17381e42c052Smrgif eval test \${$3+y}
17391e42c052Smrgthen :
17401e42c052Smrg  printf %s "(cached) " >&6
17411e42c052Smrgelse case e in #(
17421e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431e42c052Smrg/* end confdefs.h.  */
17441e42c052Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
17451e42c052Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17461e42c052Smrg#define $2 innocuous_$2
17471e42c052Smrg
17481e42c052Smrg/* System header to define __stub macros and hopefully few prototypes,
17491e42c052Smrg   which can conflict with char $2 (void); below.  */
17501e42c052Smrg
17511e42c052Smrg#include <limits.h>
17521e42c052Smrg#undef $2
17531e42c052Smrg
17541e42c052Smrg/* Override any GCC internal prototype to avoid an error.
17551e42c052Smrg   Use char because int might match the return type of a GCC
17561e42c052Smrg   builtin and then its argument prototype would still apply.  */
17571e42c052Smrg#ifdef __cplusplus
17581e42c052Smrgextern "C"
17591e42c052Smrg#endif
17601e42c052Smrgchar $2 (void);
17611e42c052Smrg/* The GNU C library defines this for functions which it implements
17621e42c052Smrg    to always fail with ENOSYS.  Some functions are actually named
17631e42c052Smrg    something starting with __ and the normal name is an alias.  */
17641e42c052Smrg#if defined __stub_$2 || defined __stub___$2
17651e42c052Smrgchoke me
17661e42c052Smrg#endif
17671e42c052Smrg
17681e42c052Smrgint
17691e42c052Smrgmain (void)
17701e42c052Smrg{
17711e42c052Smrgreturn $2 ();
17721e42c052Smrg  ;
17731e42c052Smrg  return 0;
17741e42c052Smrg}
17751e42c052Smrg_ACEOF
17761e42c052Smrgif ac_fn_c_try_link "$LINENO"
17771e42c052Smrgthen :
17781e42c052Smrg  eval "$3=yes"
17791e42c052Smrgelse case e in #(
17801e42c052Smrg  e) eval "$3=no" ;;
17811e42c052Smrgesac
17821e42c052Smrgfi
17831e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
17841e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
17851e42c052Smrgesac
17861e42c052Smrgfi
17871e42c052Smrgeval ac_res=\$$3
17881e42c052Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17891e42c052Smrgprintf "%s\n" "$ac_res" >&6; }
17901e42c052Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17911e42c052Smrg
17921e42c052Smrg} # ac_fn_c_check_func
17933a99fc18Smrgac_configure_args_raw=
17943a99fc18Smrgfor ac_arg
17953a99fc18Smrgdo
17963a99fc18Smrg  case $ac_arg in
17973a99fc18Smrg  *\'*)
17983a99fc18Smrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17993a99fc18Smrg  esac
18003a99fc18Smrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
18013a99fc18Smrgdone
18023a99fc18Smrg
18033a99fc18Smrgcase $ac_configure_args_raw in
18043a99fc18Smrg  *$as_nl*)
18053a99fc18Smrg    ac_safe_unquote= ;;
18063a99fc18Smrg  *)
18073a99fc18Smrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
18083a99fc18Smrg    ac_unsafe_a="$ac_unsafe_z#~"
18093a99fc18Smrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
18103a99fc18Smrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
18113a99fc18Smrgesac
18123a99fc18Smrg
1813e531b1a7Smrgcat >config.log <<_ACEOF
1814e531b1a7SmrgThis file contains any messages produced by compilers while
1815e531b1a7Smrgrunning configure, to aid debugging if configure makes a mistake.
1816e531b1a7Smrg
18171e42c052SmrgIt was created by xlogo $as_me 1.0.7, which was
18181e42c052Smrggenerated by GNU Autoconf 2.72.  Invocation command line was
1819e531b1a7Smrg
18203a99fc18Smrg  $ $0$ac_configure_args_raw
1821e531b1a7Smrg
1822e531b1a7Smrg_ACEOF
1823e531b1a7Smrgexec 5>>config.log
1824e531b1a7Smrg{
1825e531b1a7Smrgcat <<_ASUNAME
1826e531b1a7Smrg## --------- ##
1827e531b1a7Smrg## Platform. ##
1828e531b1a7Smrg## --------- ##
1829e531b1a7Smrg
1830e531b1a7Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1831e531b1a7Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1832e531b1a7Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1833e531b1a7Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1834e531b1a7Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1835e531b1a7Smrg
1836e531b1a7Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1837e531b1a7Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1838e531b1a7Smrg
1839e531b1a7Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1840e531b1a7Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1841e531b1a7Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1842e531b1a7Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1843e531b1a7Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1844e531b1a7Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1845e531b1a7Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1846e531b1a7Smrg
1847e531b1a7Smrg_ASUNAME
1848e531b1a7Smrg
1849e531b1a7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850e531b1a7Smrgfor as_dir in $PATH
18513da7aff1Smrgdo
18523da7aff1Smrg  IFS=$as_save_IFS
18533a99fc18Smrg  case $as_dir in #(((
18543a99fc18Smrg    '') as_dir=./ ;;
18553a99fc18Smrg    */) ;;
18563a99fc18Smrg    *) as_dir=$as_dir/ ;;
18573a99fc18Smrg  esac
18583a99fc18Smrg    printf "%s\n" "PATH: $as_dir"
1859e531b1a7Smrg  done
1860e531b1a7SmrgIFS=$as_save_IFS
18613da7aff1Smrg
18623da7aff1Smrg} >&5
18633da7aff1Smrg
18643da7aff1Smrgcat >&5 <<_ACEOF
18653da7aff1Smrg
18663da7aff1Smrg
18673da7aff1Smrg## ----------- ##
18683da7aff1Smrg## Core tests. ##
18693da7aff1Smrg## ----------- ##
18703da7aff1Smrg
18713da7aff1Smrg_ACEOF
18723da7aff1Smrg
18733da7aff1Smrg
18743da7aff1Smrg# Keep a trace of the command line.
18753da7aff1Smrg# Strip out --no-create and --no-recursion so they do not pile up.
18763da7aff1Smrg# Strip out --silent because we don't want to record it for future runs.
18773da7aff1Smrg# Also quote any args containing shell meta-characters.
18783da7aff1Smrg# Make two passes to allow for proper duplicate-argument suppression.
18793da7aff1Smrgac_configure_args=
18803da7aff1Smrgac_configure_args0=
18813da7aff1Smrgac_configure_args1=
18823da7aff1Smrgac_must_keep_next=false
18833da7aff1Smrgfor ac_pass in 1 2
18843da7aff1Smrgdo
18853da7aff1Smrg  for ac_arg
18863da7aff1Smrg  do
18873da7aff1Smrg    case $ac_arg in
18883da7aff1Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
18893da7aff1Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18903da7aff1Smrg    | -silent | --silent | --silen | --sile | --sil)
18913da7aff1Smrg      continue ;;
1892e531b1a7Smrg    *\'*)
18933a99fc18Smrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18943da7aff1Smrg    esac
18953da7aff1Smrg    case $ac_pass in
1896e531b1a7Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
18973da7aff1Smrg    2)
1898e531b1a7Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
18993da7aff1Smrg      if test $ac_must_keep_next = true; then
19003da7aff1Smrg	ac_must_keep_next=false # Got value, back to normal.
19013da7aff1Smrg      else
19023da7aff1Smrg	case $ac_arg in
19033da7aff1Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
19043da7aff1Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
19053da7aff1Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
19063da7aff1Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
19073da7aff1Smrg	    case "$ac_configure_args0 " in
19083da7aff1Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
19093da7aff1Smrg	    esac
19103da7aff1Smrg	    ;;
19113da7aff1Smrg	  -* ) ac_must_keep_next=true ;;
19123da7aff1Smrg	esac
19133da7aff1Smrg      fi
1914e531b1a7Smrg      as_fn_append ac_configure_args " '$ac_arg'"
19153da7aff1Smrg      ;;
19163da7aff1Smrg    esac
19173da7aff1Smrg  done
19183da7aff1Smrgdone
1919e531b1a7Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1920e531b1a7Smrg{ ac_configure_args1=; unset ac_configure_args1;}
19213da7aff1Smrg
19223da7aff1Smrg# When interrupted or exit'd, cleanup temporary files, and complete
19233da7aff1Smrg# config.log.  We remove comments because anyway the quotes in there
19243da7aff1Smrg# would cause problems or look ugly.
1925e531b1a7Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1926e531b1a7Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
19273da7aff1Smrgtrap 'exit_status=$?
19283a99fc18Smrg  # Sanitize IFS.
19293a99fc18Smrg  IFS=" ""	$as_nl"
19303da7aff1Smrg  # Save into config.log some information that might help in debugging.
19313da7aff1Smrg  {
19323da7aff1Smrg    echo
19333da7aff1Smrg
19343a99fc18Smrg    printf "%s\n" "## ---------------- ##
19353da7aff1Smrg## Cache variables. ##
1936f9d592e5Smrg## ---------------- ##"
19373da7aff1Smrg    echo
19383da7aff1Smrg    # The following way of writing the cache mishandles newlines in values,
1939e531b1a7Smrg(
1940e531b1a7Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1941e531b1a7Smrg    eval ac_val=\$$ac_var
1942e531b1a7Smrg    case $ac_val in #(
1943e531b1a7Smrg    *${as_nl}*)
1944e531b1a7Smrg      case $ac_var in #(
19453a99fc18Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19463a99fc18Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1947e531b1a7Smrg      esac
1948e531b1a7Smrg      case $ac_var in #(
1949e531b1a7Smrg      _ | IFS | as_nl) ;; #(
1950e531b1a7Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1951e531b1a7Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1952e531b1a7Smrg      esac ;;
1953e531b1a7Smrg    esac
1954e531b1a7Smrg  done
19553da7aff1Smrg  (set) 2>&1 |
1956e531b1a7Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1957e531b1a7Smrg    *${as_nl}ac_space=\ *)
19583da7aff1Smrg      sed -n \
1959e531b1a7Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1960e531b1a7Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1961e531b1a7Smrg      ;; #(
19623da7aff1Smrg    *)
1963e531b1a7Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19643da7aff1Smrg      ;;
1965e531b1a7Smrg    esac |
1966e531b1a7Smrg    sort
1967e531b1a7Smrg)
19683da7aff1Smrg    echo
19693da7aff1Smrg
19703a99fc18Smrg    printf "%s\n" "## ----------------- ##
19713da7aff1Smrg## Output variables. ##
1972f9d592e5Smrg## ----------------- ##"
19733da7aff1Smrg    echo
19743da7aff1Smrg    for ac_var in $ac_subst_vars
19753da7aff1Smrg    do
1976e531b1a7Smrg      eval ac_val=\$$ac_var
1977e531b1a7Smrg      case $ac_val in
19783a99fc18Smrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979e531b1a7Smrg      esac
19803a99fc18Smrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
19813da7aff1Smrg    done | sort
19823da7aff1Smrg    echo
19833da7aff1Smrg
19843da7aff1Smrg    if test -n "$ac_subst_files"; then
19853a99fc18Smrg      printf "%s\n" "## ------------------- ##
1986e531b1a7Smrg## File substitutions. ##
1987f9d592e5Smrg## ------------------- ##"
19883da7aff1Smrg      echo
19893da7aff1Smrg      for ac_var in $ac_subst_files
19903da7aff1Smrg      do
1991e531b1a7Smrg	eval ac_val=\$$ac_var
1992e531b1a7Smrg	case $ac_val in
19933a99fc18Smrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994e531b1a7Smrg	esac
19953a99fc18Smrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
19963da7aff1Smrg      done | sort
19973da7aff1Smrg      echo
19983da7aff1Smrg    fi
19993da7aff1Smrg
20003da7aff1Smrg    if test -s confdefs.h; then
20013a99fc18Smrg      printf "%s\n" "## ----------- ##
20023da7aff1Smrg## confdefs.h. ##
2003f9d592e5Smrg## ----------- ##"
20043da7aff1Smrg      echo
2005e531b1a7Smrg      cat confdefs.h
20063da7aff1Smrg      echo
20073da7aff1Smrg    fi
20083da7aff1Smrg    test "$ac_signal" != 0 &&
20093a99fc18Smrg      printf "%s\n" "$as_me: caught signal $ac_signal"
20103a99fc18Smrg    printf "%s\n" "$as_me: exit $exit_status"
20113da7aff1Smrg  } >&5
2012e531b1a7Smrg  rm -f core *.core core.conftest.* &&
2013e531b1a7Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
20143da7aff1Smrg    exit $exit_status
2015e531b1a7Smrg' 0
20163da7aff1Smrgfor ac_signal in 1 2 13 15; do
2017e531b1a7Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
20183da7aff1Smrgdone
20193da7aff1Smrgac_signal=0
20203da7aff1Smrg
20213da7aff1Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2022e531b1a7Smrgrm -f -r conftest* confdefs.h
2023e531b1a7Smrg
20243a99fc18Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
20253da7aff1Smrg
20263da7aff1Smrg# Predefined preprocessor variables.
20273da7aff1Smrg
20283a99fc18Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
20293da7aff1Smrg
20303a99fc18Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
20313da7aff1Smrg
20323a99fc18Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
20333da7aff1Smrg
20343a99fc18Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
20353da7aff1Smrg
20363a99fc18Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
20373da7aff1Smrg
20383a99fc18Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2039e531b1a7Smrg
20403da7aff1Smrg
20413da7aff1Smrg# Let the site file select an alternate cache file if it wants to.
2042e531b1a7Smrg# Prefer an explicitly selected file to automatically selected ones.
2043e531b1a7Smrgif test -n "$CONFIG_SITE"; then
20443a99fc18Smrg  ac_site_files="$CONFIG_SITE"
2045e531b1a7Smrgelif test "x$prefix" != xNONE; then
20463a99fc18Smrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2047e531b1a7Smrgelse
20483a99fc18Smrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2049e531b1a7Smrgfi
20503a99fc18Smrg
20513a99fc18Smrgfor ac_site_file in $ac_site_files
2052e531b1a7Smrgdo
20533a99fc18Smrg  case $ac_site_file in #(
20543a99fc18Smrg  */*) :
20553a99fc18Smrg     ;; #(
20563a99fc18Smrg  *) :
20573a99fc18Smrg    ac_site_file=./$ac_site_file ;;
20583a99fc18Smrgesac
20593a99fc18Smrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
20603a99fc18Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
20613a99fc18Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
20623da7aff1Smrg    sed 's/^/| /' "$ac_site_file" >&5
2063f9d592e5Smrg    . "$ac_site_file" \
20641e42c052Smrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20651e42c052Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2066f9d592e5Smrgas_fn_error $? "failed to load site script $ac_site_file
20671e42c052SmrgSee 'config.log' for more details" "$LINENO" 5; }
20683da7aff1Smrg  fi
20693da7aff1Smrgdone
20703da7aff1Smrg
20713da7aff1Smrgif test -r "$cache_file"; then
2072e531b1a7Smrg  # Some versions of bash will fail to source /dev/null (special files
2073e531b1a7Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2074e531b1a7Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
20753a99fc18Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
20763a99fc18Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
20773da7aff1Smrg    case $cache_file in
2078e531b1a7Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2079e531b1a7Smrg      *)                      . "./$cache_file";;
20803da7aff1Smrg    esac
20813da7aff1Smrg  fi
20823da7aff1Smrgelse
20833a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
20843a99fc18Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
20853da7aff1Smrg  >$cache_file
20863da7aff1Smrgfi
20873da7aff1Smrg
20883a99fc18Smrg# Test code for whether the C compiler supports C89 (global declarations)
20893a99fc18Smrgac_c_conftest_c89_globals='
20903a99fc18Smrg/* Does the compiler advertise C89 conformance?
20913a99fc18Smrg   Do not test the value of __STDC__, because some compilers set it to 0
20923a99fc18Smrg   while being otherwise adequately conformant. */
20933a99fc18Smrg#if !defined __STDC__
20943a99fc18Smrg# error "Compiler does not advertise C89 conformance"
20953a99fc18Smrg#endif
20963da7aff1Smrg
20973a99fc18Smrg#include <stddef.h>
20983a99fc18Smrg#include <stdarg.h>
20993a99fc18Smrgstruct stat;
21003a99fc18Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
21013a99fc18Smrgstruct buf { int x; };
21023a99fc18Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
21031e42c052Smrgstatic char *e (char **p, int i)
21043a99fc18Smrg{
21053a99fc18Smrg  return p[i];
21063a99fc18Smrg}
21073a99fc18Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
21083a99fc18Smrg{
21093a99fc18Smrg  char *s;
21103a99fc18Smrg  va_list v;
21113a99fc18Smrg  va_start (v,p);
21123a99fc18Smrg  s = g (p, va_arg (v,int));
21133a99fc18Smrg  va_end (v);
21143a99fc18Smrg  return s;
21153a99fc18Smrg}
21163e999d35Smrg
21171e42c052Smrg/* C89 style stringification. */
21181e42c052Smrg#define noexpand_stringify(a) #a
21191e42c052Smrgconst char *stringified = noexpand_stringify(arbitrary+token=sequence);
21201e42c052Smrg
21211e42c052Smrg/* C89 style token pasting.  Exercises some of the corner cases that
21221e42c052Smrg   e.g. old MSVC gets wrong, but not very hard. */
21231e42c052Smrg#define noexpand_concat(a,b) a##b
21241e42c052Smrg#define expand_concat(a,b) noexpand_concat(a,b)
21251e42c052Smrgextern int vA;
21261e42c052Smrgextern int vbee;
21271e42c052Smrg#define aye A
21281e42c052Smrg#define bee B
21291e42c052Smrgint *pvA = &expand_concat(v,aye);
21301e42c052Smrgint *pvbee = &noexpand_concat(v,bee);
21311e42c052Smrg
21323a99fc18Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
21333a99fc18Smrg   function prototypes and stuff, but not \xHH hex character constants.
21343a99fc18Smrg   These do not provoke an error unfortunately, instead are silently treated
21353a99fc18Smrg   as an "x".  The following induces an error, until -std is added to get
21363a99fc18Smrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
21373a99fc18Smrg   array size at least.  It is necessary to write \x00 == 0 to get something
21383a99fc18Smrg   that is true only with -std.  */
21393a99fc18Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
21403e999d35Smrg
21413a99fc18Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
21423a99fc18Smrg   inside strings and character constants.  */
21433a99fc18Smrg#define FOO(x) '\''x'\''
21443a99fc18Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
21453e999d35Smrg
21463a99fc18Smrgint test (int i, double x);
21473a99fc18Smrgstruct s1 {int (*f) (int a);};
21483a99fc18Smrgstruct s2 {int (*f) (double a);};
21493a99fc18Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
21503a99fc18Smrg               int, int);'
21513da7aff1Smrg
21523a99fc18Smrg# Test code for whether the C compiler supports C89 (body of main).
21533a99fc18Smrgac_c_conftest_c89_main='
21543a99fc18Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
21553a99fc18Smrg'
2156e531b1a7Smrg
21573a99fc18Smrg# Test code for whether the C compiler supports C99 (global declarations)
21583a99fc18Smrgac_c_conftest_c99_globals='
21591e42c052Smrg/* Does the compiler advertise C99 conformance? */
21603a99fc18Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
21613a99fc18Smrg# error "Compiler does not advertise C99 conformance"
21623a99fc18Smrg#endif
2163e531b1a7Smrg
21641e42c052Smrg// See if C++-style comments work.
21651e42c052Smrg
21663a99fc18Smrg#include <stdbool.h>
21673a99fc18Smrgextern int puts (const char *);
21683a99fc18Smrgextern int printf (const char *, ...);
21693a99fc18Smrgextern int dprintf (int, const char *, ...);
21703a99fc18Smrgextern void *malloc (size_t);
21711e42c052Smrgextern void free (void *);
21723da7aff1Smrg
21733a99fc18Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
21743a99fc18Smrg// dprintf is used instead of fprintf to avoid needing to declare
21753a99fc18Smrg// FILE and stderr.
21763a99fc18Smrg#define debug(...) dprintf (2, __VA_ARGS__)
21773a99fc18Smrg#define showlist(...) puts (#__VA_ARGS__)
21783a99fc18Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
21793a99fc18Smrgstatic void
21803a99fc18Smrgtest_varargs_macros (void)
21813a99fc18Smrg{
21823a99fc18Smrg  int x = 1234;
21833a99fc18Smrg  int y = 5678;
21843a99fc18Smrg  debug ("Flag");
21853a99fc18Smrg  debug ("X = %d\n", x);
21863a99fc18Smrg  showlist (The first, second, and third items.);
21873a99fc18Smrg  report (x>y, "x is %d but y is %d", x, y);
21883a99fc18Smrg}
21893a99fc18Smrg
21903a99fc18Smrg// Check long long types.
21913a99fc18Smrg#define BIG64 18446744073709551615ull
21923a99fc18Smrg#define BIG32 4294967295ul
21933a99fc18Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
21943a99fc18Smrg#if !BIG_OK
21953a99fc18Smrg  #error "your preprocessor is broken"
21963a99fc18Smrg#endif
21973a99fc18Smrg#if BIG_OK
21983a99fc18Smrg#else
21993a99fc18Smrg  #error "your preprocessor is broken"
22003a99fc18Smrg#endif
22013a99fc18Smrgstatic long long int bignum = -9223372036854775807LL;
22023a99fc18Smrgstatic unsigned long long int ubignum = BIG64;
22033a99fc18Smrg
22043a99fc18Smrgstruct incomplete_array
22053a99fc18Smrg{
22063a99fc18Smrg  int datasize;
22073a99fc18Smrg  double data[];
22083a99fc18Smrg};
22093a99fc18Smrg
22103a99fc18Smrgstruct named_init {
22113a99fc18Smrg  int number;
22123a99fc18Smrg  const wchar_t *name;
22133a99fc18Smrg  double average;
22143a99fc18Smrg};
22153a99fc18Smrg
22163a99fc18Smrgtypedef const char *ccp;
22173a99fc18Smrg
22183a99fc18Smrgstatic inline int
22193a99fc18Smrgtest_restrict (ccp restrict text)
22203a99fc18Smrg{
22213a99fc18Smrg  // Iterate through items via the restricted pointer.
22223a99fc18Smrg  // Also check for declarations in for loops.
22233a99fc18Smrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
22243a99fc18Smrg    continue;
22253a99fc18Smrg  return 0;
22263a99fc18Smrg}
22273a99fc18Smrg
22283a99fc18Smrg// Check varargs and va_copy.
22293a99fc18Smrgstatic bool
22303a99fc18Smrgtest_varargs (const char *format, ...)
22313a99fc18Smrg{
22323a99fc18Smrg  va_list args;
22333a99fc18Smrg  va_start (args, format);
22343a99fc18Smrg  va_list args_copy;
22353a99fc18Smrg  va_copy (args_copy, args);
22363a99fc18Smrg
22373a99fc18Smrg  const char *str = "";
22383a99fc18Smrg  int number = 0;
22393a99fc18Smrg  float fnumber = 0;
22403a99fc18Smrg
22413a99fc18Smrg  while (*format)
22423a99fc18Smrg    {
22433a99fc18Smrg      switch (*format++)
22443a99fc18Smrg	{
22453a99fc18Smrg	case '\''s'\'': // string
22463a99fc18Smrg	  str = va_arg (args_copy, const char *);
22473a99fc18Smrg	  break;
22483a99fc18Smrg	case '\''d'\'': // int
22493a99fc18Smrg	  number = va_arg (args_copy, int);
22503a99fc18Smrg	  break;
22513a99fc18Smrg	case '\''f'\'': // float
22523a99fc18Smrg	  fnumber = va_arg (args_copy, double);
22533a99fc18Smrg	  break;
22543a99fc18Smrg	default:
22553a99fc18Smrg	  break;
22563a99fc18Smrg	}
22573a99fc18Smrg    }
22583a99fc18Smrg  va_end (args_copy);
22593a99fc18Smrg  va_end (args);
22603a99fc18Smrg
22613a99fc18Smrg  return *str && number && fnumber;
22623a99fc18Smrg}
22633a99fc18Smrg'
22643a99fc18Smrg
22653a99fc18Smrg# Test code for whether the C compiler supports C99 (body of main).
22663a99fc18Smrgac_c_conftest_c99_main='
22673a99fc18Smrg  // Check bool.
22683a99fc18Smrg  _Bool success = false;
22693a99fc18Smrg  success |= (argc != 0);
22703a99fc18Smrg
22713a99fc18Smrg  // Check restrict.
22723a99fc18Smrg  if (test_restrict ("String literal") == 0)
22733a99fc18Smrg    success = true;
22743a99fc18Smrg  char *restrict newvar = "Another string";
22753a99fc18Smrg
22763a99fc18Smrg  // Check varargs.
22773a99fc18Smrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
22783a99fc18Smrg  test_varargs_macros ();
22793a99fc18Smrg
22803a99fc18Smrg  // Check flexible array members.
22813a99fc18Smrg  struct incomplete_array *ia =
22823a99fc18Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
22833a99fc18Smrg  ia->datasize = 10;
22843a99fc18Smrg  for (int i = 0; i < ia->datasize; ++i)
22853a99fc18Smrg    ia->data[i] = i * 1.234;
22861e42c052Smrg  // Work around memory leak warnings.
22871e42c052Smrg  free (ia);
22883a99fc18Smrg
22893a99fc18Smrg  // Check named initializers.
22903a99fc18Smrg  struct named_init ni = {
22913a99fc18Smrg    .number = 34,
22923a99fc18Smrg    .name = L"Test wide string",
22933a99fc18Smrg    .average = 543.34343,
22943a99fc18Smrg  };
22953a99fc18Smrg
22963a99fc18Smrg  ni.number = 58;
22973a99fc18Smrg
22983a99fc18Smrg  int dynamic_array[ni.number];
22993a99fc18Smrg  dynamic_array[0] = argv[0][0];
23003a99fc18Smrg  dynamic_array[ni.number - 1] = 543;
23013a99fc18Smrg
23023a99fc18Smrg  // work around unused variable warnings
23033a99fc18Smrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
23043a99fc18Smrg	 || dynamic_array[ni.number - 1] != 543);
23053a99fc18Smrg'
23063a99fc18Smrg
23073a99fc18Smrg# Test code for whether the C compiler supports C11 (global declarations)
23083a99fc18Smrgac_c_conftest_c11_globals='
23091e42c052Smrg/* Does the compiler advertise C11 conformance? */
23103a99fc18Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
23113a99fc18Smrg# error "Compiler does not advertise C11 conformance"
23123a99fc18Smrg#endif
23133a99fc18Smrg
23143a99fc18Smrg// Check _Alignas.
23153a99fc18Smrgchar _Alignas (double) aligned_as_double;
23163a99fc18Smrgchar _Alignas (0) no_special_alignment;
23173a99fc18Smrgextern char aligned_as_int;
23183a99fc18Smrgchar _Alignas (0) _Alignas (int) aligned_as_int;
23193a99fc18Smrg
23203a99fc18Smrg// Check _Alignof.
23213a99fc18Smrgenum
23223a99fc18Smrg{
23233a99fc18Smrg  int_alignment = _Alignof (int),
23243a99fc18Smrg  int_array_alignment = _Alignof (int[100]),
23253a99fc18Smrg  char_alignment = _Alignof (char)
23263a99fc18Smrg};
23273a99fc18Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
23283a99fc18Smrg
23293a99fc18Smrg// Check _Noreturn.
23303a99fc18Smrgint _Noreturn does_not_return (void) { for (;;) continue; }
23313a99fc18Smrg
23323a99fc18Smrg// Check _Static_assert.
23333a99fc18Smrgstruct test_static_assert
23343a99fc18Smrg{
23353a99fc18Smrg  int x;
23363a99fc18Smrg  _Static_assert (sizeof (int) <= sizeof (long int),
23373a99fc18Smrg                  "_Static_assert does not work in struct");
23383a99fc18Smrg  long int y;
23393a99fc18Smrg};
23403a99fc18Smrg
23413a99fc18Smrg// Check UTF-8 literals.
23423a99fc18Smrg#define u8 syntax error!
23433a99fc18Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
23443a99fc18Smrg
23453a99fc18Smrg// Check duplicate typedefs.
23463a99fc18Smrgtypedef long *long_ptr;
23473a99fc18Smrgtypedef long int *long_ptr;
23483a99fc18Smrgtypedef long_ptr long_ptr;
23493a99fc18Smrg
23503a99fc18Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
23513a99fc18Smrgstruct anonymous
23523a99fc18Smrg{
23533a99fc18Smrg  union {
23543a99fc18Smrg    struct { int i; int j; };
23553a99fc18Smrg    struct { int k; long int l; } w;
23563a99fc18Smrg  };
23573a99fc18Smrg  int m;
23583a99fc18Smrg} v1;
23593a99fc18Smrg'
23603a99fc18Smrg
23613a99fc18Smrg# Test code for whether the C compiler supports C11 (body of main).
23623a99fc18Smrgac_c_conftest_c11_main='
23633a99fc18Smrg  _Static_assert ((offsetof (struct anonymous, i)
23643a99fc18Smrg		   == offsetof (struct anonymous, w.k)),
23653a99fc18Smrg		  "Anonymous union alignment botch");
23663a99fc18Smrg  v1.i = 2;
23673a99fc18Smrg  v1.w.k = 5;
23683a99fc18Smrg  ok |= v1.i != 5;
23693a99fc18Smrg'
23703a99fc18Smrg
23713a99fc18Smrg# Test code for whether the C compiler supports C11 (complete).
23723a99fc18Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
23733a99fc18Smrg${ac_c_conftest_c99_globals}
23743a99fc18Smrg${ac_c_conftest_c11_globals}
23753a99fc18Smrg
23763a99fc18Smrgint
23773a99fc18Smrgmain (int argc, char **argv)
23783a99fc18Smrg{
23793a99fc18Smrg  int ok = 0;
23803a99fc18Smrg  ${ac_c_conftest_c89_main}
23813a99fc18Smrg  ${ac_c_conftest_c99_main}
23823a99fc18Smrg  ${ac_c_conftest_c11_main}
23833a99fc18Smrg  return ok;
23843a99fc18Smrg}
23853a99fc18Smrg"
23863a99fc18Smrg
23873a99fc18Smrg# Test code for whether the C compiler supports C99 (complete).
23883a99fc18Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
23893a99fc18Smrg${ac_c_conftest_c99_globals}
23903a99fc18Smrg
23913a99fc18Smrgint
23923a99fc18Smrgmain (int argc, char **argv)
23933a99fc18Smrg{
23943a99fc18Smrg  int ok = 0;
23953a99fc18Smrg  ${ac_c_conftest_c89_main}
23963a99fc18Smrg  ${ac_c_conftest_c99_main}
23973a99fc18Smrg  return ok;
23983a99fc18Smrg}
23993a99fc18Smrg"
24003a99fc18Smrg
24013a99fc18Smrg# Test code for whether the C compiler supports C89 (complete).
24023a99fc18Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
24033a99fc18Smrg
24043a99fc18Smrgint
24053a99fc18Smrgmain (int argc, char **argv)
24063a99fc18Smrg{
24073a99fc18Smrg  int ok = 0;
24083a99fc18Smrg  ${ac_c_conftest_c89_main}
24093a99fc18Smrg  return ok;
24103a99fc18Smrg}
24113a99fc18Smrg"
24123a99fc18Smrg
24133a99fc18Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
24143a99fc18Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
24153a99fc18Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
24163a99fc18Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
24173a99fc18Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
24183a99fc18Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
24193a99fc18Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
24203a99fc18Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
24213a99fc18Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
24223a99fc18Smrg
24233a99fc18Smrg# Auxiliary files required by this configure script.
24243a99fc18Smrgac_aux_files="config.guess config.sub compile missing install-sh"
24253a99fc18Smrg
24263a99fc18Smrg# Locations in which to look for auxiliary files.
24273a99fc18Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
24283a99fc18Smrg
24293a99fc18Smrg# Search for a directory containing all of the required auxiliary files,
24303a99fc18Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
24313a99fc18Smrg# If we don't find one directory that contains all the files we need,
24323a99fc18Smrg# we report the set of missing files from the *first* directory in
24333a99fc18Smrg# $ac_aux_dir_candidates and give up.
24343a99fc18Smrgac_missing_aux_files=""
24353a99fc18Smrgac_first_candidate=:
24363a99fc18Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
24373a99fc18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24383a99fc18Smrgas_found=false
24393a99fc18Smrgfor as_dir in $ac_aux_dir_candidates
24403a99fc18Smrgdo
24413a99fc18Smrg  IFS=$as_save_IFS
24423a99fc18Smrg  case $as_dir in #(((
24433a99fc18Smrg    '') as_dir=./ ;;
24443a99fc18Smrg    */) ;;
24453a99fc18Smrg    *) as_dir=$as_dir/ ;;
24463a99fc18Smrg  esac
24473a99fc18Smrg  as_found=:
24483a99fc18Smrg
24493a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
24503a99fc18Smrg  ac_aux_dir_found=yes
24513a99fc18Smrg  ac_install_sh=
24523a99fc18Smrg  for ac_aux in $ac_aux_files
24533a99fc18Smrg  do
24543a99fc18Smrg    # As a special case, if "install-sh" is required, that requirement
24553a99fc18Smrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
24563a99fc18Smrg    # and $ac_install_sh is set appropriately for whichever one is found.
24573a99fc18Smrg    if test x"$ac_aux" = x"install-sh"
24583a99fc18Smrg    then
24593a99fc18Smrg      if test -f "${as_dir}install-sh"; then
24603a99fc18Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
24613a99fc18Smrg        ac_install_sh="${as_dir}install-sh -c"
24623a99fc18Smrg      elif test -f "${as_dir}install.sh"; then
24633a99fc18Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
24643a99fc18Smrg        ac_install_sh="${as_dir}install.sh -c"
24653a99fc18Smrg      elif test -f "${as_dir}shtool"; then
24663a99fc18Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
24673a99fc18Smrg        ac_install_sh="${as_dir}shtool install -c"
24683a99fc18Smrg      else
24693a99fc18Smrg        ac_aux_dir_found=no
24703a99fc18Smrg        if $ac_first_candidate; then
24713a99fc18Smrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
24723a99fc18Smrg        else
24733a99fc18Smrg          break
24743a99fc18Smrg        fi
24753a99fc18Smrg      fi
24763a99fc18Smrg    else
24773a99fc18Smrg      if test -f "${as_dir}${ac_aux}"; then
24783a99fc18Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
24793a99fc18Smrg      else
24803a99fc18Smrg        ac_aux_dir_found=no
24813a99fc18Smrg        if $ac_first_candidate; then
24823a99fc18Smrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
24833a99fc18Smrg        else
24843a99fc18Smrg          break
24853a99fc18Smrg        fi
24863a99fc18Smrg      fi
24873a99fc18Smrg    fi
24883a99fc18Smrg  done
24893a99fc18Smrg  if test "$ac_aux_dir_found" = yes; then
24903a99fc18Smrg    ac_aux_dir="$as_dir"
24913a99fc18Smrg    break
24923a99fc18Smrg  fi
24933a99fc18Smrg  ac_first_candidate=false
24943a99fc18Smrg
24953a99fc18Smrg  as_found=false
24963a99fc18Smrgdone
24973a99fc18SmrgIFS=$as_save_IFS
24983a99fc18Smrgif $as_found
24993a99fc18Smrgthen :
25003a99fc18Smrg
25011e42c052Smrgelse case e in #(
25021e42c052Smrg  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
25031e42c052Smrgesac
25043a99fc18Smrgfi
25053a99fc18Smrg
25063a99fc18Smrg
25073a99fc18Smrg# These three variables are undocumented and unsupported,
25083a99fc18Smrg# and are intended to be withdrawn in a future Autoconf release.
25093a99fc18Smrg# They can cause serious problems if a builder's source tree is in a directory
25103a99fc18Smrg# whose full name contains unusual characters.
25113a99fc18Smrgif test -f "${ac_aux_dir}config.guess"; then
25123a99fc18Smrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
25133a99fc18Smrgfi
25143a99fc18Smrgif test -f "${ac_aux_dir}config.sub"; then
25153a99fc18Smrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
25163a99fc18Smrgfi
25173a99fc18Smrgif test -f "$ac_aux_dir/configure"; then
25183a99fc18Smrg  ac_configure="$SHELL ${ac_aux_dir}configure"
25193a99fc18Smrgfi
25203a99fc18Smrg
25213a99fc18Smrg# Check that the precious variables saved in the cache have kept the same
25223a99fc18Smrg# value.
25233a99fc18Smrgac_cache_corrupted=false
25243a99fc18Smrgfor ac_var in $ac_precious_vars; do
25253a99fc18Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
25263a99fc18Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
25273a99fc18Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
25283a99fc18Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
25293a99fc18Smrg  case $ac_old_set,$ac_new_set in
25303a99fc18Smrg    set,)
25311e42c052Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
25321e42c052Smrgprintf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
25333a99fc18Smrg      ac_cache_corrupted=: ;;
25343a99fc18Smrg    ,set)
25351e42c052Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
25361e42c052Smrgprintf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
25373a99fc18Smrg      ac_cache_corrupted=: ;;
25383a99fc18Smrg    ,);;
25393a99fc18Smrg    *)
25403a99fc18Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
25413a99fc18Smrg	# differences in whitespace do not lead to failure.
25423a99fc18Smrg	ac_old_val_w=`echo x $ac_old_val`
25433a99fc18Smrg	ac_new_val_w=`echo x $ac_new_val`
25443a99fc18Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
25451e42c052Smrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
25461e42c052Smrgprintf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
25473a99fc18Smrg	  ac_cache_corrupted=:
25483a99fc18Smrg	else
25491e42c052Smrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
25501e42c052Smrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
25513a99fc18Smrg	  eval $ac_var=\$ac_old_val
25523a99fc18Smrg	fi
25531e42c052Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
25541e42c052Smrgprintf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
25551e42c052Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
25561e42c052Smrgprintf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
25573a99fc18Smrg      fi;;
25583a99fc18Smrg  esac
25593a99fc18Smrg  # Pass precious variables to config.status.
25603a99fc18Smrg  if test "$ac_new_set" = set; then
25613a99fc18Smrg    case $ac_new_val in
25623a99fc18Smrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
25633a99fc18Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
25643a99fc18Smrg    esac
25653a99fc18Smrg    case " $ac_configure_args " in
25663a99fc18Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
25673a99fc18Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
25683a99fc18Smrg    esac
25693a99fc18Smrg  fi
25703a99fc18Smrgdone
25713a99fc18Smrgif $ac_cache_corrupted; then
25721e42c052Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25731e42c052Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25743a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
25753a99fc18Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
25761e42c052Smrg  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
25773a99fc18Smrg	    and start over" "$LINENO" 5
25783a99fc18Smrgfi
25793a99fc18Smrg## -------------------- ##
25803a99fc18Smrg## Main body of script. ##
25813a99fc18Smrg## -------------------- ##
25823a99fc18Smrg
25833a99fc18Smrgac_ext=c
25843a99fc18Smrgac_cpp='$CPP $CPPFLAGS'
25853a99fc18Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25863a99fc18Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25873a99fc18Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
25883a99fc18Smrg
25893a99fc18Smrg
25903a99fc18Smrg
25913a99fc18Smrgac_config_headers="$ac_config_headers config.h"
25923a99fc18Smrg
25933a99fc18Smrg
25943a99fc18Smrg# Initialize Automake
25951e42c052Smrgam__api_version='1.17'
25963a99fc18Smrg
25973a99fc18Smrg
25983a99fc18Smrg
25993a99fc18Smrg  # Find a good install program.  We prefer a C program (faster),
26003a99fc18Smrg# so one script is as good as another.  But avoid the broken or
26013a99fc18Smrg# incompatible versions:
26023a99fc18Smrg# SysV /etc/install, /usr/sbin/install
26033a99fc18Smrg# SunOS /usr/etc/install
26043a99fc18Smrg# IRIX /sbin/install
26053a99fc18Smrg# AIX /bin/install
26063da7aff1Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
26073da7aff1Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
26083da7aff1Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
26093da7aff1Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
26103da7aff1Smrg# OS/2's system install, which has a completely different semantic
26113da7aff1Smrg# ./install, which can be erroneously created by make from ./install.sh.
2612e531b1a7Smrg# Reject install programs that cannot install multiple files.
26133a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
26143a99fc18Smrgprintf %s "checking for a BSD-compatible install... " >&6; }
26153da7aff1Smrgif test -z "$INSTALL"; then
26163a99fc18Smrgif test ${ac_cv_path_install+y}
26173a99fc18Smrgthen :
26183a99fc18Smrg  printf %s "(cached) " >&6
26191e42c052Smrgelse case e in #(
26201e42c052Smrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26213da7aff1Smrgfor as_dir in $PATH
26223da7aff1Smrgdo
26233da7aff1Smrg  IFS=$as_save_IFS
26243a99fc18Smrg  case $as_dir in #(((
26253a99fc18Smrg    '') as_dir=./ ;;
26263a99fc18Smrg    */) ;;
26273a99fc18Smrg    *) as_dir=$as_dir/ ;;
26283a99fc18Smrg  esac
26293a99fc18Smrg    # Account for fact that we put trailing slashes in our PATH walk.
26303a99fc18Smrgcase $as_dir in #((
26313a99fc18Smrg  ./ | /[cC]/* | \
26323da7aff1Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2633e531b1a7Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
26343da7aff1Smrg  /usr/ucb/* ) ;;
26353da7aff1Smrg  *)
26363da7aff1Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
26373da7aff1Smrg    # Don't use installbsd from OSF since it installs stuff as root
26383da7aff1Smrg    # by default.
26393da7aff1Smrg    for ac_prog in ginstall scoinst install; do
26403da7aff1Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
26413a99fc18Smrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
26423da7aff1Smrg	  if test $ac_prog = install &&
26433a99fc18Smrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
26443da7aff1Smrg	    # AIX install.  It has an incompatible calling convention.
26453da7aff1Smrg	    :
26463da7aff1Smrg	  elif test $ac_prog = install &&
26473a99fc18Smrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
26483da7aff1Smrg	    # program-specific install script used by HP pwplus--don't use.
26493da7aff1Smrg	    :
26503da7aff1Smrg	  else
2651e531b1a7Smrg	    rm -rf conftest.one conftest.two conftest.dir
2652e531b1a7Smrg	    echo one > conftest.one
2653e531b1a7Smrg	    echo two > conftest.two
2654e531b1a7Smrg	    mkdir conftest.dir
26553a99fc18Smrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2656e531b1a7Smrg	      test -s conftest.one && test -s conftest.two &&
2657e531b1a7Smrg	      test -s conftest.dir/conftest.one &&
2658e531b1a7Smrg	      test -s conftest.dir/conftest.two
2659e531b1a7Smrg	    then
26603a99fc18Smrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2661e531b1a7Smrg	      break 3
2662e531b1a7Smrg	    fi
26633da7aff1Smrg	  fi
26643da7aff1Smrg	fi
26653da7aff1Smrg      done
26663da7aff1Smrg    done
26673da7aff1Smrg    ;;
26683da7aff1Smrgesac
26693da7aff1Smrg
2670e531b1a7Smrg  done
2671e531b1a7SmrgIFS=$as_save_IFS
2672e531b1a7Smrg
2673e531b1a7Smrgrm -rf conftest.one conftest.two conftest.dir
26741e42c052Smrg ;;
26751e42c052Smrgesac
26763da7aff1Smrgfi
26773a99fc18Smrg  if test ${ac_cv_path_install+y}; then
26783da7aff1Smrg    INSTALL=$ac_cv_path_install
26793da7aff1Smrg  else
2680e531b1a7Smrg    # As a last resort, use the slow shell script.  Don't cache a
2681e531b1a7Smrg    # value for INSTALL within a source directory, because that will
26823da7aff1Smrg    # break other packages using the cache if that directory is
2683e531b1a7Smrg    # removed, or if the value is a relative name.
26843da7aff1Smrg    INSTALL=$ac_install_sh
26853da7aff1Smrg  fi
26863da7aff1Smrgfi
26873a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
26883a99fc18Smrgprintf "%s\n" "$INSTALL" >&6; }
26893da7aff1Smrg
26903da7aff1Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
26913da7aff1Smrg# It thinks the first close brace ends the variable substitution.
26923da7aff1Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
26933da7aff1Smrg
26943da7aff1Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
26953da7aff1Smrg
26963da7aff1Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
26973da7aff1Smrg
26981e42c052Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
26991e42c052Smrgprintf %s "checking whether sleep supports fractional seconds... " >&6; }
27001e42c052Smrgif test ${am_cv_sleep_fractional_seconds+y}
27011e42c052Smrgthen :
27021e42c052Smrg  printf %s "(cached) " >&6
27031e42c052Smrgelse case e in #(
27041e42c052Smrg  e) if sleep 0.001 2>/dev/null
27051e42c052Smrgthen :
27061e42c052Smrg  am_cv_sleep_fractional_seconds=yes
27071e42c052Smrgelse case e in #(
27081e42c052Smrg  e) am_cv_sleep_fractional_seconds=no ;;
27091e42c052Smrgesac
27101e42c052Smrgfi
27111e42c052Smrg ;;
27121e42c052Smrgesac
27131e42c052Smrgfi
27141e42c052Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
27151e42c052Smrgprintf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
27161e42c052Smrg
27171e42c052Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
27181e42c052Smrgprintf %s "checking filesystem timestamp resolution... " >&6; }
27191e42c052Smrgif test ${am_cv_filesystem_timestamp_resolution+y}
27201e42c052Smrgthen :
27211e42c052Smrg  printf %s "(cached) " >&6
27221e42c052Smrgelse case e in #(
27231e42c052Smrg  e) # Default to the worst case.
27241e42c052Smrgam_cv_filesystem_timestamp_resolution=2
27251e42c052Smrg
27261e42c052Smrg# Only try to go finer than 1 sec if sleep can do it.
27271e42c052Smrg# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
27281e42c052Smrg# - 1 sec is not much of a win compared to 2 sec, and
27291e42c052Smrg# - it takes 2 seconds to perform the test whether 1 sec works.
27301e42c052Smrg#
27311e42c052Smrg# Instead, just use the default 2s on platforms that have 1s resolution,
27321e42c052Smrg# accept the extra 1s delay when using $sleep in the Automake tests, in
27331e42c052Smrg# exchange for not incurring the 2s delay for running the test for all
27341e42c052Smrg# packages.
27351e42c052Smrg#
27361e42c052Smrgam_try_resolutions=
27371e42c052Smrgif test "$am_cv_sleep_fractional_seconds" = yes; then
27381e42c052Smrg  # Even a millisecond often causes a bunch of false positives,
27391e42c052Smrg  # so just try a hundredth of a second. The time saved between .001 and
27401e42c052Smrg  # .01 is not terribly consequential.
27411e42c052Smrg  am_try_resolutions="0.01 0.1 $am_try_resolutions"
27421e42c052Smrgfi
27431e42c052Smrg
27441e42c052Smrg# In order to catch current-generation FAT out, we must *modify* files
27451e42c052Smrg# that already exist; the *creation* timestamp is finer.  Use names
27461e42c052Smrg# that make ls -t sort them differently when they have equal
27471e42c052Smrg# timestamps than when they have distinct timestamps, keeping
27481e42c052Smrg# in mind that ls -t prints the *newest* file first.
27491e42c052Smrgrm -f conftest.ts?
27501e42c052Smrg: > conftest.ts1
27511e42c052Smrg: > conftest.ts2
27521e42c052Smrg: > conftest.ts3
27531e42c052Smrg
27541e42c052Smrg# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
27551e42c052Smrg# clobber the current shell's arguments. (Outer-level square brackets
27561e42c052Smrg# are removed by m4; they're present so that m4 does not expand
27571e42c052Smrg# <dollar><star>; be careful, easy to get confused.)
27581e42c052Smrgif (
27591e42c052Smrg     set X `ls -t conftest.ts[12]` &&
27601e42c052Smrg     {
27611e42c052Smrg       test "$*" != "X conftest.ts1 conftest.ts2" ||
27621e42c052Smrg       test "$*" != "X conftest.ts2 conftest.ts1";
27631e42c052Smrg     }
27641e42c052Smrg); then :; else
27651e42c052Smrg  # If neither matched, then we have a broken ls.  This can happen
27661e42c052Smrg  # if, for instance, CONFIG_SHELL is bash and it inherits a
27671e42c052Smrg  # broken ls alias from the environment.  This has actually
27681e42c052Smrg  # happened.  Such a system could not be considered "sane".
27691e42c052Smrg  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
27701e42c052Smrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27711e42c052Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27721e42c052Smrgas_fn_error $? "ls -t produces unexpected output.
27731e42c052SmrgMake sure there is not a broken ls alias in your environment.
27741e42c052SmrgSee 'config.log' for more details" "$LINENO" 5; }
27751e42c052Smrgfi
27761e42c052Smrg
27771e42c052Smrgfor am_try_res in $am_try_resolutions; do
27781e42c052Smrg  # Any one fine-grained sleep might happen to cross the boundary
27791e42c052Smrg  # between two values of a coarser actual resolution, but if we do
27801e42c052Smrg  # two fine-grained sleeps in a row, at least one of them will fall
27811e42c052Smrg  # entirely within a coarse interval.
27821e42c052Smrg  echo alpha > conftest.ts1
27831e42c052Smrg  sleep $am_try_res
27841e42c052Smrg  echo beta > conftest.ts2
27851e42c052Smrg  sleep $am_try_res
27861e42c052Smrg  echo gamma > conftest.ts3
27871e42c052Smrg
27881e42c052Smrg  # We assume that 'ls -t' will make use of high-resolution
27891e42c052Smrg  # timestamps if the operating system supports them at all.
27901e42c052Smrg  if (set X `ls -t conftest.ts?` &&
27911e42c052Smrg      test "$2" = conftest.ts3 &&
27921e42c052Smrg      test "$3" = conftest.ts2 &&
27931e42c052Smrg      test "$4" = conftest.ts1); then
27941e42c052Smrg    #
27951e42c052Smrg    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
27961e42c052Smrg    # because we don't need to test make.
27971e42c052Smrg    make_ok=true
27981e42c052Smrg    if test $am_try_res != 1; then
27991e42c052Smrg      # But if we've succeeded so far with a subsecond resolution, we
28001e42c052Smrg      # have one more thing to check: make. It can happen that
28011e42c052Smrg      # everything else supports the subsecond mtimes, but make doesn't;
28021e42c052Smrg      # notably on macOS, which ships make 3.81 from 2006 (the last one
28031e42c052Smrg      # released under GPLv2). https://bugs.gnu.org/68808
28041e42c052Smrg      #
28051e42c052Smrg      # We test $MAKE if it is defined in the environment, else "make".
28061e42c052Smrg      # It might get overridden later, but our hope is that in practice
28071e42c052Smrg      # it does not matter: it is the system "make" which is (by far)
28081e42c052Smrg      # the most likely to be broken, whereas if the user overrides it,
28091e42c052Smrg      # probably they did so with a better, or at least not worse, make.
28101e42c052Smrg      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
28111e42c052Smrg      #
28121e42c052Smrg      # Create a Makefile (real tab character here):
28131e42c052Smrg      rm -f conftest.mk
28141e42c052Smrg      echo 'conftest.ts1: conftest.ts2' >conftest.mk
28151e42c052Smrg      echo '	touch conftest.ts2' >>conftest.mk
28161e42c052Smrg      #
28171e42c052Smrg      # Now, running
28181e42c052Smrg      #   touch conftest.ts1; touch conftest.ts2; make
28191e42c052Smrg      # should touch ts1 because ts2 is newer. This could happen by luck,
28201e42c052Smrg      # but most often, it will fail if make's support is insufficient. So
28211e42c052Smrg      # test for several consecutive successes.
28221e42c052Smrg      #
28231e42c052Smrg      # (We reuse conftest.ts[12] because we still want to modify existing
28241e42c052Smrg      # files, not create new ones, per above.)
28251e42c052Smrg      n=0
28261e42c052Smrg      make=${MAKE-make}
28271e42c052Smrg      until test $n -eq 3; do
28281e42c052Smrg        echo one > conftest.ts1
28291e42c052Smrg        sleep $am_try_res
28301e42c052Smrg        echo two > conftest.ts2 # ts2 should now be newer than ts1
28311e42c052Smrg        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
28321e42c052Smrg          make_ok=false
28331e42c052Smrg          break # out of $n loop
28341e42c052Smrg        fi
28351e42c052Smrg        n=`expr $n + 1`
28361e42c052Smrg      done
28371e42c052Smrg    fi
28381e42c052Smrg    #
28391e42c052Smrg    if $make_ok; then
28401e42c052Smrg      # Everything we know to check worked out, so call this resolution good.
28411e42c052Smrg      am_cv_filesystem_timestamp_resolution=$am_try_res
28421e42c052Smrg      break # out of $am_try_res loop
28431e42c052Smrg    fi
28441e42c052Smrg    # Otherwise, we'll go on to check the next resolution.
28451e42c052Smrg  fi
28461e42c052Smrgdone
28471e42c052Smrgrm -f conftest.ts?
28481e42c052Smrg# (end _am_filesystem_timestamp_resolution)
28491e42c052Smrg ;;
28501e42c052Smrgesac
28511e42c052Smrgfi
28521e42c052Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
28531e42c052Smrgprintf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
28541e42c052Smrg
28551e42c052Smrg# This check should not be cached, as it may vary across builds of
28561e42c052Smrg# different projects.
28573a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
28583a99fc18Smrgprintf %s "checking whether build environment is sane... " >&6; }
2859e531b1a7Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2860e531b1a7Smrg# name.  Accept space and tab only in the latter.
2861e531b1a7Smrgam_lf='
2862e531b1a7Smrg'
2863e531b1a7Smrgcase `pwd` in
2864e531b1a7Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2865f9d592e5Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2866e531b1a7Smrgesac
2867e531b1a7Smrgcase $srcdir in
2868e531b1a7Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
28693e999d35Smrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2870e531b1a7Smrgesac
2871e531b1a7Smrg
28723e999d35Smrg# Do 'set' in a subshell so we don't clobber the current shell's
28733da7aff1Smrg# arguments.  Must try -L first in case configure is actually a
28743da7aff1Smrg# symlink; some systems play weird games with the mod time of symlinks
28753da7aff1Smrg# (eg FreeBSD returns the mod time of the symlink's containing
28763da7aff1Smrg# directory).
28771e42c052Smrgam_build_env_is_sane=no
28781e42c052Smrgam_has_slept=no
28791e42c052Smrgrm -f conftest.file
28801e42c052Smrgfor am_try in 1 2; do
28811e42c052Smrg  echo "timestamp, slept: $am_has_slept" > conftest.file
28821e42c052Smrg  if (
28831e42c052Smrg    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
28841e42c052Smrg    if test "$*" = "X"; then
28851e42c052Smrg      # -L didn't work.
28861e42c052Smrg      set X `ls -t "$srcdir/configure" conftest.file`
28871e42c052Smrg    fi
28881e42c052Smrg    test "$2" = conftest.file
28891e42c052Smrg  ); then
28901e42c052Smrg    am_build_env_is_sane=yes
28911e42c052Smrg    break
28921e42c052Smrg  fi
28931e42c052Smrg  # Just in case.
28941e42c052Smrg  sleep "$am_cv_filesystem_timestamp_resolution"
28951e42c052Smrg  am_has_slept=yes
28961e42c052Smrgdone
28971e42c052Smrg
28981e42c052Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
28991e42c052Smrgprintf "%s\n" "$am_build_env_is_sane" >&6; }
29001e42c052Smrgif test "$am_build_env_is_sane" = no; then
29011e42c052Smrg  as_fn_error $? "newly created file is older than distributed files!
2902e531b1a7SmrgCheck your system clock" "$LINENO" 5
29033da7aff1Smrgfi
29041e42c052Smrg
29053e999d35Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and
29063e999d35Smrg# generated files are strictly newer.
29073e999d35Smrgam_sleep_pid=
29081e42c052Smrgif test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
29091e42c052Smrgthen :
29101e42c052Smrg
29111e42c052Smrgelse case e in #(
29121e42c052Smrg  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
29133e999d35Smrg  am_sleep_pid=$!
29141e42c052Smrg ;;
29151e42c052Smrgesac
29163e999d35Smrgfi
29173e999d35Smrg
29183e999d35Smrgrm -f conftest.file
29193e999d35Smrg
29203da7aff1Smrgtest "$program_prefix" != NONE &&
2921e531b1a7Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
29223da7aff1Smrg# Use a double $ so make ignores it.
29233da7aff1Smrgtest "$program_suffix" != NONE &&
2924e531b1a7Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2925e531b1a7Smrg# Double any \ or $.
29261e42c052Smrg# By default was 's,x,x', remove it if useless.
2927e531b1a7Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
29283a99fc18Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
29293a99fc18Smrg
29303da7aff1Smrg
29313e999d35Smrg# Expand $ac_aux_dir to an absolute path.
29323e999d35Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
29333da7aff1Smrg
29343a99fc18Smrg
29353a99fc18Smrg  if test x"${MISSING+set}" != xset; then
29363a99fc18Smrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
2937e531b1a7Smrgfi
29383da7aff1Smrg# Use eval to expand $SHELL
29393e999d35Smrgif eval "$MISSING --is-lightweight"; then
29403e999d35Smrg  am_missing_run="$MISSING "
29413da7aff1Smrgelse
29423da7aff1Smrg  am_missing_run=
29433a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
29443a99fc18Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2945e531b1a7Smrgfi
2946e531b1a7Smrg
29473e999d35Smrgif test x"${install_sh+set}" != xset; then
2948e531b1a7Smrg  case $am_aux_dir in
2949e531b1a7Smrg  *\ * | *\	*)
2950e531b1a7Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2951e531b1a7Smrg  *)
2952e531b1a7Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2953e531b1a7Smrg  esac
2954e531b1a7Smrgfi
2955e531b1a7Smrg
29563e999d35Smrg# Installed binaries are usually stripped using 'strip' when the user
29573e999d35Smrg# run "make install-strip".  However 'strip' might not be the right
2958e531b1a7Smrg# tool to use in cross-compilation environments, therefore Automake
29593e999d35Smrg# will honor the 'STRIP' environment variable to overrule this program.
2960e531b1a7Smrgif test "$cross_compiling" != no; then
2961e531b1a7Smrg  if test -n "$ac_tool_prefix"; then
2962e531b1a7Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2963e531b1a7Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
29643a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29653a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
29663a99fc18Smrgif test ${ac_cv_prog_STRIP+y}
29673a99fc18Smrgthen :
29683a99fc18Smrg  printf %s "(cached) " >&6
29691e42c052Smrgelse case e in #(
29701e42c052Smrg  e) if test -n "$STRIP"; then
2971e531b1a7Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2972e531b1a7Smrgelse
2973e531b1a7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974e531b1a7Smrgfor as_dir in $PATH
2975e531b1a7Smrgdo
2976e531b1a7Smrg  IFS=$as_save_IFS
29773a99fc18Smrg  case $as_dir in #(((
29783a99fc18Smrg    '') as_dir=./ ;;
29793a99fc18Smrg    */) ;;
29803a99fc18Smrg    *) as_dir=$as_dir/ ;;
29813a99fc18Smrg  esac
2982e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
29833a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2984e531b1a7Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
29853a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2986e531b1a7Smrg    break 2
2987e531b1a7Smrg  fi
2988e531b1a7Smrgdone
2989e531b1a7Smrg  done
2990e531b1a7SmrgIFS=$as_save_IFS
2991e531b1a7Smrg
29921e42c052Smrgfi ;;
29931e42c052Smrgesac
2994e531b1a7Smrgfi
2995e531b1a7SmrgSTRIP=$ac_cv_prog_STRIP
2996e531b1a7Smrgif test -n "$STRIP"; then
29973a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
29983a99fc18Smrgprintf "%s\n" "$STRIP" >&6; }
2999e531b1a7Smrgelse
30003a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30013a99fc18Smrgprintf "%s\n" "no" >&6; }
3002e531b1a7Smrgfi
3003e531b1a7Smrg
3004e531b1a7Smrg
3005e531b1a7Smrgfi
3006e531b1a7Smrgif test -z "$ac_cv_prog_STRIP"; then
3007e531b1a7Smrg  ac_ct_STRIP=$STRIP
3008e531b1a7Smrg  # Extract the first word of "strip", so it can be a program name with args.
3009e531b1a7Smrgset dummy strip; ac_word=$2
30103a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30113a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
30123a99fc18Smrgif test ${ac_cv_prog_ac_ct_STRIP+y}
30133a99fc18Smrgthen :
30143a99fc18Smrg  printf %s "(cached) " >&6
30151e42c052Smrgelse case e in #(
30161e42c052Smrg  e) if test -n "$ac_ct_STRIP"; then
3017e531b1a7Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3018e531b1a7Smrgelse
3019e531b1a7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020e531b1a7Smrgfor as_dir in $PATH
3021e531b1a7Smrgdo
3022e531b1a7Smrg  IFS=$as_save_IFS
30233a99fc18Smrg  case $as_dir in #(((
30243a99fc18Smrg    '') as_dir=./ ;;
30253a99fc18Smrg    */) ;;
30263a99fc18Smrg    *) as_dir=$as_dir/ ;;
30273a99fc18Smrg  esac
3028e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
30293a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3030e531b1a7Smrg    ac_cv_prog_ac_ct_STRIP="strip"
30313a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3032e531b1a7Smrg    break 2
3033e531b1a7Smrg  fi
3034e531b1a7Smrgdone
3035e531b1a7Smrg  done
3036e531b1a7SmrgIFS=$as_save_IFS
3037e531b1a7Smrg
30381e42c052Smrgfi ;;
30391e42c052Smrgesac
30403da7aff1Smrgfi
3041e531b1a7Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3042e531b1a7Smrgif test -n "$ac_ct_STRIP"; then
30433a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
30443a99fc18Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
3045e531b1a7Smrgelse
30463a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30473a99fc18Smrgprintf "%s\n" "no" >&6; }
3048e531b1a7Smrgfi
3049e531b1a7Smrg
3050e531b1a7Smrg  if test "x$ac_ct_STRIP" = x; then
3051e531b1a7Smrg    STRIP=":"
3052e531b1a7Smrg  else
3053e531b1a7Smrg    case $cross_compiling:$ac_tool_warned in
3054e531b1a7Smrgyes:)
30553a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30563a99fc18Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3057e531b1a7Smrgac_tool_warned=yes ;;
3058e531b1a7Smrgesac
3059e531b1a7Smrg    STRIP=$ac_ct_STRIP
3060e531b1a7Smrg  fi
3061e531b1a7Smrgelse
3062e531b1a7Smrg  STRIP="$ac_cv_prog_STRIP"
3063e531b1a7Smrgfi
3064e531b1a7Smrg
3065e531b1a7Smrgfi
3066e531b1a7SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3067e531b1a7Smrg
30683a99fc18Smrg
30693a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
30703a99fc18Smrgprintf %s "checking for a race-free mkdir -p... " >&6; }
3071e531b1a7Smrgif test -z "$MKDIR_P"; then
30723a99fc18Smrg  if test ${ac_cv_path_mkdir+y}
30733a99fc18Smrgthen :
30743a99fc18Smrg  printf %s "(cached) " >&6
30751e42c052Smrgelse case e in #(
30761e42c052Smrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077e531b1a7Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3078e531b1a7Smrgdo
3079e531b1a7Smrg  IFS=$as_save_IFS
30803a99fc18Smrg  case $as_dir in #(((
30813a99fc18Smrg    '') as_dir=./ ;;
30823a99fc18Smrg    */) ;;
30833a99fc18Smrg    *) as_dir=$as_dir/ ;;
30843a99fc18Smrg  esac
3085e531b1a7Smrg    for ac_prog in mkdir gmkdir; do
3086e531b1a7Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
30873a99fc18Smrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
30883a99fc18Smrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
30893a99fc18Smrg	     'mkdir ('*'coreutils) '* | \
30901e42c052Smrg	     *'BusyBox '* | \
3091e531b1a7Smrg	     'mkdir (fileutils) '4.1*)
30923a99fc18Smrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3093e531b1a7Smrg	       break 3;;
3094e531b1a7Smrg	   esac
3095e531b1a7Smrg	 done
3096e531b1a7Smrg       done
3097e531b1a7Smrg  done
3098e531b1a7SmrgIFS=$as_save_IFS
30991e42c052Smrg ;;
31001e42c052Smrgesac
3101e531b1a7Smrgfi
3102e531b1a7Smrg
3103e531b1a7Smrg  test -d ./--version && rmdir ./--version
31043a99fc18Smrg  if test ${ac_cv_path_mkdir+y}; then
3105e531b1a7Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
3106e531b1a7Smrg  else
31071e42c052Smrg    # As a last resort, use plain mkdir -p,
31081e42c052Smrg    # in the hope it doesn't have the bugs of ancient mkdir.
31091e42c052Smrg    MKDIR_P='mkdir -p'
3110e531b1a7Smrg  fi
3111e531b1a7Smrgfi
31123a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
31133a99fc18Smrgprintf "%s\n" "$MKDIR_P" >&6; }
3114e531b1a7Smrg
31153da7aff1Smrgfor ac_prog in gawk mawk nawk awk
31163da7aff1Smrgdo
31173da7aff1Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
31183da7aff1Smrgset dummy $ac_prog; ac_word=$2
31193a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31203a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
31213a99fc18Smrgif test ${ac_cv_prog_AWK+y}
31223a99fc18Smrgthen :
31233a99fc18Smrg  printf %s "(cached) " >&6
31241e42c052Smrgelse case e in #(
31251e42c052Smrg  e) if test -n "$AWK"; then
31263da7aff1Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
31273da7aff1Smrgelse
31283da7aff1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31293da7aff1Smrgfor as_dir in $PATH
31303da7aff1Smrgdo
31313da7aff1Smrg  IFS=$as_save_IFS
31323a99fc18Smrg  case $as_dir in #(((
31333a99fc18Smrg    '') as_dir=./ ;;
31343a99fc18Smrg    */) ;;
31353a99fc18Smrg    *) as_dir=$as_dir/ ;;
31363a99fc18Smrg  esac
3137e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
31383a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31393da7aff1Smrg    ac_cv_prog_AWK="$ac_prog"
31403a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31413da7aff1Smrg    break 2
31423da7aff1Smrg  fi
31433da7aff1Smrgdone
3144e531b1a7Smrg  done
3145e531b1a7SmrgIFS=$as_save_IFS
31463da7aff1Smrg
31471e42c052Smrgfi ;;
31481e42c052Smrgesac
31493da7aff1Smrgfi
31503da7aff1SmrgAWK=$ac_cv_prog_AWK
31513da7aff1Smrgif test -n "$AWK"; then
31523a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
31533a99fc18Smrgprintf "%s\n" "$AWK" >&6; }
31543da7aff1Smrgelse
31553a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31563a99fc18Smrgprintf "%s\n" "no" >&6; }
31573da7aff1Smrgfi
31583da7aff1Smrg
3159e531b1a7Smrg
31603da7aff1Smrg  test -n "$AWK" && break
31613da7aff1Smrgdone
31623da7aff1Smrg
31633a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
31643a99fc18Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3165e531b1a7Smrgset x ${MAKE-make}
31663a99fc18Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
31673a99fc18Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
31683a99fc18Smrgthen :
31693a99fc18Smrg  printf %s "(cached) " >&6
31701e42c052Smrgelse case e in #(
31711e42c052Smrg  e) cat >conftest.make <<\_ACEOF
3172e531b1a7SmrgSHELL = /bin/sh
31733da7aff1Smrgall:
3174e531b1a7Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
31753da7aff1Smrg_ACEOF
3176f9d592e5Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3177e531b1a7Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
3178e531b1a7Smrg  *@@@%%%=?*=@@@%%%*)
3179e531b1a7Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
3180e531b1a7Smrg  *)
3181e531b1a7Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
3182e531b1a7Smrgesac
31831e42c052Smrgrm -f conftest.make ;;
31841e42c052Smrgesac
31853da7aff1Smrgfi
3186e531b1a7Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
31873a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31883a99fc18Smrgprintf "%s\n" "yes" >&6; }
31893da7aff1Smrg  SET_MAKE=
31903da7aff1Smrgelse
31913a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31923a99fc18Smrgprintf "%s\n" "no" >&6; }
31933da7aff1Smrg  SET_MAKE="MAKE=${MAKE-make}"
31943da7aff1Smrgfi
31953da7aff1Smrg
31963da7aff1Smrgrm -rf .tst 2>/dev/null
31973da7aff1Smrgmkdir .tst 2>/dev/null
31983da7aff1Smrgif test -d .tst; then
31993da7aff1Smrg  am__leading_dot=.
32003da7aff1Smrgelse
32013da7aff1Smrg  am__leading_dot=_
32023da7aff1Smrgfi
32033da7aff1Smrgrmdir .tst 2>/dev/null
32043da7aff1Smrg
32051e42c052SmrgAM_DEFAULT_VERBOSITY=1
32063e999d35Smrg# Check whether --enable-silent-rules was given.
32073a99fc18Smrgif test ${enable_silent_rules+y}
32083a99fc18Smrgthen :
32093e999d35Smrg  enableval=$enable_silent_rules;
32103e999d35Smrgfi
32113e999d35Smrg
32123e999d35Smrgam_make=${MAKE-make}
32133a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
32143a99fc18Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
32153a99fc18Smrgif test ${am_cv_make_support_nested_variables+y}
32163a99fc18Smrgthen :
32173a99fc18Smrg  printf %s "(cached) " >&6
32181e42c052Smrgelse case e in #(
32191e42c052Smrg  e) if printf "%s\n" 'TRUE=$(BAR$(V))
32203e999d35SmrgBAR0=false
32213e999d35SmrgBAR1=true
32223e999d35SmrgV=1
32233e999d35Smrgam__doit:
32243e999d35Smrg	@$(TRUE)
32253e999d35Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
32263e999d35Smrg  am_cv_make_support_nested_variables=yes
32273e999d35Smrgelse
32283e999d35Smrg  am_cv_make_support_nested_variables=no
32291e42c052Smrgfi ;;
32301e42c052Smrgesac
32313e999d35Smrgfi
32323a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
32333a99fc18Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
32343e999d35SmrgAM_BACKSLASH='\'
32353e999d35Smrg
32361e42c052Smrgam__rm_f_notfound=
32371e42c052Smrgif (rm -f && rm -fr && rm -rf) 2>/dev/null
32381e42c052Smrgthen :
32391e42c052Smrg
32401e42c052Smrgelse case e in #(
32411e42c052Smrg  e) am__rm_f_notfound='""' ;;
32421e42c052Smrgesac
32431e42c052Smrgfi
32441e42c052Smrg
32451e42c052Smrg
32461e42c052Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
32471e42c052Smrgprintf %s "checking xargs -n works... " >&6; }
32481e42c052Smrgif test ${am_cv_xargs_n_works+y}
32491e42c052Smrgthen :
32501e42c052Smrg  printf %s "(cached) " >&6
32511e42c052Smrgelse case e in #(
32521e42c052Smrg  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
32531e42c052Smrg3"
32541e42c052Smrgthen :
32551e42c052Smrg  am_cv_xargs_n_works=yes
32561e42c052Smrgelse case e in #(
32571e42c052Smrg  e) am_cv_xargs_n_works=no ;;
32581e42c052Smrgesac
32591e42c052Smrgfi ;;
32601e42c052Smrgesac
32611e42c052Smrgfi
32621e42c052Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
32631e42c052Smrgprintf "%s\n" "$am_cv_xargs_n_works" >&6; }
32641e42c052Smrgif test "$am_cv_xargs_n_works" = yes
32651e42c052Smrgthen :
32661e42c052Smrg  am__xargs_n='xargs -n'
32671e42c052Smrgelse case e in #(
32681e42c052Smrg  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
32691e42c052Smrg ;;
32701e42c052Smrgesac
32711e42c052Smrgfi
32721e42c052Smrg
3273e531b1a7Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
3274e531b1a7Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3275e531b1a7Smrg  # is not polluted with repeated "-I."
3276e531b1a7Smrg  am__isrc=' -I$(srcdir)'
3277e531b1a7Smrg  # test to see if srcdir already configured
3278e531b1a7Smrg  if test -f $srcdir/config.status; then
3279f9d592e5Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3280e531b1a7Smrg  fi
32813da7aff1Smrgfi
32823da7aff1Smrg
32833da7aff1Smrg# test whether we have cygpath
32843da7aff1Smrgif test -z "$CYGPATH_W"; then
32853da7aff1Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
32863da7aff1Smrg    CYGPATH_W='cygpath -w'
32873da7aff1Smrg  else
32883da7aff1Smrg    CYGPATH_W=echo
32893da7aff1Smrg  fi
32903da7aff1Smrgfi
32913da7aff1Smrg
32923da7aff1Smrg
32933da7aff1Smrg# Define the identity of the package.
32943da7aff1Smrg PACKAGE='xlogo'
32951e42c052Smrg VERSION='1.0.7'
32963da7aff1Smrg
32973da7aff1Smrg
32983a99fc18Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
32993da7aff1Smrg
33003da7aff1Smrg
33013a99fc18Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
33023da7aff1Smrg
33033da7aff1Smrg# Some tools Automake needs.
33043da7aff1Smrg
33053da7aff1SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
33063da7aff1Smrg
33073da7aff1Smrg
33083da7aff1SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33093da7aff1Smrg
33103da7aff1Smrg
33113da7aff1SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
33123da7aff1Smrg
33133da7aff1Smrg
33143da7aff1SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
33153da7aff1Smrg
33163da7aff1Smrg
33173da7aff1SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
33183da7aff1Smrg
33193e999d35Smrg# For better backward compatibility.  To be removed once Automake 1.9.x
33203e999d35Smrg# dies out for good.  For more background, see:
33213a99fc18Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
33223a99fc18Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
33233e999d35Smrgmkdir_p='$(MKDIR_P)'
33243da7aff1Smrg
33253e999d35Smrg# We need awk for the "check" target (and possibly the TAP driver).  The
33263e999d35Smrg# system "awk" is bad on some platforms.
33273e999d35Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
33283e999d35Smrg# in the wild :-(  We should find a proper way to deprecate it ...
33293e999d35SmrgAMTAR='$${TAR-tar}'
33303da7aff1Smrg
33313da7aff1Smrg
33323e999d35Smrg# We'll loop over all known methods to create a tar archive until one works.
33333e999d35Smrg_am_tools='gnutar  pax cpio none'
3334e531b1a7Smrg
33353e999d35Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3336e531b1a7Smrg
3337e531b1a7Smrg
3338e531b1a7Smrg
3339e531b1a7Smrg
3340e531b1a7Smrg
33413a99fc18Smrg# Variables for tags utilities; see am/tags.am
33423a99fc18Smrgif test -z "$CTAGS"; then
33433a99fc18Smrg  CTAGS=ctags
33443a99fc18Smrgfi
33453a99fc18Smrg
33463a99fc18Smrgif test -z "$ETAGS"; then
33473a99fc18Smrg  ETAGS=etags
33483a99fc18Smrgfi
33493a99fc18Smrg
33503a99fc18Smrgif test -z "$CSCOPE"; then
33513a99fc18Smrg  CSCOPE=cscope
33523a99fc18Smrgfi
33533a99fc18Smrg
33543a99fc18Smrg
33553da7aff1Smrg
33563e999d35Smrg
33573e999d35Smrg
33583e999d35Smrg
33593da7aff1Smrg
33603da7aff1Smrg
3361f9d592e5Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
33623da7aff1Smrg
33633da7aff1Smrg
33643da7aff1Smrg
33653da7aff1Smrg
33663da7aff1Smrg
33673da7aff1Smrg
3368e531b1a7Smrg
3369e531b1a7Smrg
3370e531b1a7Smrg
3371e531b1a7Smrg
3372e531b1a7Smrg
33733a99fc18Smrg
33743a99fc18Smrg
33753a99fc18Smrg
33763a99fc18Smrg
33773a99fc18Smrg
33783a99fc18Smrg
33793a99fc18Smrg
33803a99fc18Smrg
33813a99fc18Smrg
3382e531b1a7SmrgDEPDIR="${am__leading_dot}deps"
3383e531b1a7Smrg
3384e531b1a7Smrgac_config_commands="$ac_config_commands depfiles"
3385e531b1a7Smrg
33863a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
33873a99fc18Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
33883a99fc18Smrgcat > confinc.mk << 'END'
3389e531b1a7Smrgam__doit:
33903a99fc18Smrg	@echo this is the am__doit target >confinc.out
3391e531b1a7Smrg.PHONY: am__doit
3392e531b1a7SmrgEND
3393e531b1a7Smrgam__include="#"
3394e531b1a7Smrgam__quote=
33953a99fc18Smrg# BSD make does it like this.
33963a99fc18Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD
33973a99fc18Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
33983a99fc18Smrgecho 'include confinc.mk # ignored' > confmf.GNU
33993a99fc18Smrg_am_result=no
34003a99fc18Smrgfor s in GNU BSD; do
34013a99fc18Smrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
34023a99fc18Smrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
34033a99fc18Smrg   ac_status=$?
34043a99fc18Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053a99fc18Smrg   (exit $ac_status); }
34063a99fc18Smrg  case $?:`cat confinc.out 2>/dev/null` in #(
34073a99fc18Smrg  '0:this is the am__doit target') :
34083a99fc18Smrg    case $s in #(
34093a99fc18Smrg  BSD) :
34103a99fc18Smrg    am__include='.include' am__quote='"' ;; #(
34113a99fc18Smrg  *) :
34123a99fc18Smrg    am__include='include' am__quote='' ;;
34133a99fc18Smrgesac ;; #(
34143a99fc18Smrg  *) :
3415e531b1a7Smrg     ;;
34163a99fc18Smrgesac
34173a99fc18Smrg  if test "$am__include" != "#"; then
34183a99fc18Smrg    _am_result="yes ($s style)"
34193a99fc18Smrg    break
34203a99fc18Smrg  fi
34213a99fc18Smrgdone
34223a99fc18Smrgrm -f confinc.* confmf.*
34233a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
34243a99fc18Smrgprintf "%s\n" "${_am_result}" >&6; }
34253da7aff1Smrg
3426e531b1a7Smrg# Check whether --enable-dependency-tracking was given.
34273a99fc18Smrgif test ${enable_dependency_tracking+y}
34283a99fc18Smrgthen :
3429e531b1a7Smrg  enableval=$enable_dependency_tracking;
3430e531b1a7Smrgfi
34313da7aff1Smrg
3432e531b1a7Smrgif test "x$enable_dependency_tracking" != xno; then
3433e531b1a7Smrg  am_depcomp="$ac_aux_dir/depcomp"
3434e531b1a7Smrg  AMDEPBACKSLASH='\'
34353e999d35Smrg  am__nodep='_no'
3436e531b1a7Smrgfi
3437e531b1a7Smrg if test "x$enable_dependency_tracking" != xno; then
3438e531b1a7Smrg  AMDEP_TRUE=
3439e531b1a7Smrg  AMDEP_FALSE='#'
3440e531b1a7Smrgelse
3441e531b1a7Smrg  AMDEP_TRUE='#'
3442e531b1a7Smrg  AMDEP_FALSE=
3443e531b1a7Smrgfi
34443da7aff1Smrg
34453da7aff1Smrg
34463da7aff1Smrgac_ext=c
34473da7aff1Smrgac_cpp='$CPP $CPPFLAGS'
34483da7aff1Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34493da7aff1Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34503da7aff1Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
34513da7aff1Smrgif test -n "$ac_tool_prefix"; then
34523da7aff1Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
34533da7aff1Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
34543a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34553a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
34563a99fc18Smrgif test ${ac_cv_prog_CC+y}
34573a99fc18Smrgthen :
34583a99fc18Smrg  printf %s "(cached) " >&6
34591e42c052Smrgelse case e in #(
34601e42c052Smrg  e) if test -n "$CC"; then
34613da7aff1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
34623da7aff1Smrgelse
34633da7aff1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34643da7aff1Smrgfor as_dir in $PATH
34653da7aff1Smrgdo
34663da7aff1Smrg  IFS=$as_save_IFS
34673a99fc18Smrg  case $as_dir in #(((
34683a99fc18Smrg    '') as_dir=./ ;;
34693a99fc18Smrg    */) ;;
34703a99fc18Smrg    *) as_dir=$as_dir/ ;;
34713a99fc18Smrg  esac
3472e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
34733a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
34743da7aff1Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
34753a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
34763da7aff1Smrg    break 2
34773da7aff1Smrg  fi
34783da7aff1Smrgdone
3479e531b1a7Smrg  done
3480e531b1a7SmrgIFS=$as_save_IFS
34813da7aff1Smrg
34821e42c052Smrgfi ;;
34831e42c052Smrgesac
34843da7aff1Smrgfi
34853da7aff1SmrgCC=$ac_cv_prog_CC
34863da7aff1Smrgif test -n "$CC"; then
34873a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
34883a99fc18Smrgprintf "%s\n" "$CC" >&6; }
34893da7aff1Smrgelse
34903a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34913a99fc18Smrgprintf "%s\n" "no" >&6; }
34923da7aff1Smrgfi
34933da7aff1Smrg
3494e531b1a7Smrg
34953da7aff1Smrgfi
34963da7aff1Smrgif test -z "$ac_cv_prog_CC"; then
34973da7aff1Smrg  ac_ct_CC=$CC
34983da7aff1Smrg  # Extract the first word of "gcc", so it can be a program name with args.
34993da7aff1Smrgset dummy gcc; ac_word=$2
35003a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35013a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
35023a99fc18Smrgif test ${ac_cv_prog_ac_ct_CC+y}
35033a99fc18Smrgthen :
35043a99fc18Smrg  printf %s "(cached) " >&6
35051e42c052Smrgelse case e in #(
35061e42c052Smrg  e) if test -n "$ac_ct_CC"; then
35073da7aff1Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35083da7aff1Smrgelse
35093da7aff1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35103da7aff1Smrgfor as_dir in $PATH
35113da7aff1Smrgdo
35123da7aff1Smrg  IFS=$as_save_IFS
35133a99fc18Smrg  case $as_dir in #(((
35143a99fc18Smrg    '') as_dir=./ ;;
35153a99fc18Smrg    */) ;;
35163a99fc18Smrg    *) as_dir=$as_dir/ ;;
35173a99fc18Smrg  esac
3518e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
35193a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
35203da7aff1Smrg    ac_cv_prog_ac_ct_CC="gcc"
35213a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
35223da7aff1Smrg    break 2
35233da7aff1Smrg  fi
35243da7aff1Smrgdone
3525e531b1a7Smrg  done
3526e531b1a7SmrgIFS=$as_save_IFS
35273da7aff1Smrg
35281e42c052Smrgfi ;;
35291e42c052Smrgesac
35303da7aff1Smrgfi
35313da7aff1Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
35323da7aff1Smrgif test -n "$ac_ct_CC"; then
35333a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
35343a99fc18Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
35353da7aff1Smrgelse
35363a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35373a99fc18Smrgprintf "%s\n" "no" >&6; }
35383da7aff1Smrgfi
35393da7aff1Smrg
3540e531b1a7Smrg  if test "x$ac_ct_CC" = x; then
3541e531b1a7Smrg    CC=""
3542e531b1a7Smrg  else
3543e531b1a7Smrg    case $cross_compiling:$ac_tool_warned in
3544e531b1a7Smrgyes:)
35453a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
35463a99fc18Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3547e531b1a7Smrgac_tool_warned=yes ;;
3548e531b1a7Smrgesac
3549e531b1a7Smrg    CC=$ac_ct_CC
3550e531b1a7Smrg  fi
35513da7aff1Smrgelse
35523da7aff1Smrg  CC="$ac_cv_prog_CC"
35533da7aff1Smrgfi
35543da7aff1Smrg
35553da7aff1Smrgif test -z "$CC"; then
3556e531b1a7Smrg          if test -n "$ac_tool_prefix"; then
3557e531b1a7Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
35583da7aff1Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
35593a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35603a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
35613a99fc18Smrgif test ${ac_cv_prog_CC+y}
35623a99fc18Smrgthen :
35633a99fc18Smrg  printf %s "(cached) " >&6
35641e42c052Smrgelse case e in #(
35651e42c052Smrg  e) if test -n "$CC"; then
35663da7aff1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
35673da7aff1Smrgelse
35683da7aff1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35693da7aff1Smrgfor as_dir in $PATH
35703da7aff1Smrgdo
35713da7aff1Smrg  IFS=$as_save_IFS
35723a99fc18Smrg  case $as_dir in #(((
35733a99fc18Smrg    '') as_dir=./ ;;
35743a99fc18Smrg    */) ;;
35753a99fc18Smrg    *) as_dir=$as_dir/ ;;
35763a99fc18Smrg  esac
3577e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
35783a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
35793da7aff1Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
35803a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
35813da7aff1Smrg    break 2
35823da7aff1Smrg  fi
35833da7aff1Smrgdone
3584e531b1a7Smrg  done
3585e531b1a7SmrgIFS=$as_save_IFS
35863da7aff1Smrg
35871e42c052Smrgfi ;;
35881e42c052Smrgesac
35893da7aff1Smrgfi
35903da7aff1SmrgCC=$ac_cv_prog_CC
35913da7aff1Smrgif test -n "$CC"; then
35923a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
35933a99fc18Smrgprintf "%s\n" "$CC" >&6; }
35943da7aff1Smrgelse
35953a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35963a99fc18Smrgprintf "%s\n" "no" >&6; }
35973da7aff1Smrgfi
35983da7aff1Smrg
35993da7aff1Smrg
3600e531b1a7Smrg  fi
36013da7aff1Smrgfi
36023da7aff1Smrgif test -z "$CC"; then
36033da7aff1Smrg  # Extract the first word of "cc", so it can be a program name with args.
36043da7aff1Smrgset dummy cc; ac_word=$2
36053a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36063a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
36073a99fc18Smrgif test ${ac_cv_prog_CC+y}
36083a99fc18Smrgthen :
36093a99fc18Smrg  printf %s "(cached) " >&6
36101e42c052Smrgelse case e in #(
36111e42c052Smrg  e) if test -n "$CC"; then
36123da7aff1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
36133da7aff1Smrgelse
36143da7aff1Smrg  ac_prog_rejected=no
36153da7aff1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36163da7aff1Smrgfor as_dir in $PATH
36173da7aff1Smrgdo
36183da7aff1Smrg  IFS=$as_save_IFS
36193a99fc18Smrg  case $as_dir in #(((
36203a99fc18Smrg    '') as_dir=./ ;;
36213a99fc18Smrg    */) ;;
36223a99fc18Smrg    *) as_dir=$as_dir/ ;;
36233a99fc18Smrg  esac
3624e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
36253a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36263a99fc18Smrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
36273da7aff1Smrg       ac_prog_rejected=yes
36283da7aff1Smrg       continue
36293da7aff1Smrg     fi
36303da7aff1Smrg    ac_cv_prog_CC="cc"
36313a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36323da7aff1Smrg    break 2
36333da7aff1Smrg  fi
36343da7aff1Smrgdone
3635e531b1a7Smrg  done
3636e531b1a7SmrgIFS=$as_save_IFS
36373da7aff1Smrg
36383da7aff1Smrgif test $ac_prog_rejected = yes; then
36393da7aff1Smrg  # We found a bogon in the path, so make sure we never use it.
36403da7aff1Smrg  set dummy $ac_cv_prog_CC
36413da7aff1Smrg  shift
36423da7aff1Smrg  if test $# != 0; then
36433da7aff1Smrg    # We chose a different compiler from the bogus one.
36443da7aff1Smrg    # However, it has the same basename, so the bogon will be chosen
36453da7aff1Smrg    # first if we set CC to just the basename; use the full file name.
36463da7aff1Smrg    shift
36473a99fc18Smrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
36483da7aff1Smrg  fi
36493da7aff1Smrgfi
36501e42c052Smrgfi ;;
36511e42c052Smrgesac
36523da7aff1Smrgfi
36533da7aff1SmrgCC=$ac_cv_prog_CC
36543da7aff1Smrgif test -n "$CC"; then
36553a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
36563a99fc18Smrgprintf "%s\n" "$CC" >&6; }
36573da7aff1Smrgelse
36583a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36593a99fc18Smrgprintf "%s\n" "no" >&6; }
36603da7aff1Smrgfi
36613da7aff1Smrg
3662e531b1a7Smrg
36633da7aff1Smrgfi
36643da7aff1Smrgif test -z "$CC"; then
36653da7aff1Smrg  if test -n "$ac_tool_prefix"; then
3666e531b1a7Smrg  for ac_prog in cl.exe
36673da7aff1Smrg  do
36683da7aff1Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36693da7aff1Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
36703a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36713a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
36723a99fc18Smrgif test ${ac_cv_prog_CC+y}
36733a99fc18Smrgthen :
36743a99fc18Smrg  printf %s "(cached) " >&6
36751e42c052Smrgelse case e in #(
36761e42c052Smrg  e) if test -n "$CC"; then
36773da7aff1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
36783da7aff1Smrgelse
36793da7aff1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36803da7aff1Smrgfor as_dir in $PATH
36813da7aff1Smrgdo
36823da7aff1Smrg  IFS=$as_save_IFS
36833a99fc18Smrg  case $as_dir in #(((
36843a99fc18Smrg    '') as_dir=./ ;;
36853a99fc18Smrg    */) ;;
36863a99fc18Smrg    *) as_dir=$as_dir/ ;;
36873a99fc18Smrg  esac
3688e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
36893a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36903da7aff1Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
36913a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36923da7aff1Smrg    break 2
36933da7aff1Smrg  fi
36943da7aff1Smrgdone
3695e531b1a7Smrg  done
3696e531b1a7SmrgIFS=$as_save_IFS
36973da7aff1Smrg
36981e42c052Smrgfi ;;
36991e42c052Smrgesac
37003da7aff1Smrgfi
37013da7aff1SmrgCC=$ac_cv_prog_CC
37023da7aff1Smrgif test -n "$CC"; then
37033a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
37043a99fc18Smrgprintf "%s\n" "$CC" >&6; }
37053da7aff1Smrgelse
37063a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37073a99fc18Smrgprintf "%s\n" "no" >&6; }
37083da7aff1Smrgfi
37093da7aff1Smrg
3710e531b1a7Smrg
37113da7aff1Smrg    test -n "$CC" && break
37123da7aff1Smrg  done
37133da7aff1Smrgfi
37143da7aff1Smrgif test -z "$CC"; then
37153da7aff1Smrg  ac_ct_CC=$CC
3716e531b1a7Smrg  for ac_prog in cl.exe
37173da7aff1Smrgdo
37183da7aff1Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
37193da7aff1Smrgset dummy $ac_prog; ac_word=$2
37203a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37213a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
37223a99fc18Smrgif test ${ac_cv_prog_ac_ct_CC+y}
37233a99fc18Smrgthen :
37243a99fc18Smrg  printf %s "(cached) " >&6
37251e42c052Smrgelse case e in #(
37261e42c052Smrg  e) if test -n "$ac_ct_CC"; then
37273da7aff1Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
37283da7aff1Smrgelse
37293da7aff1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37303da7aff1Smrgfor as_dir in $PATH
37313da7aff1Smrgdo
37323da7aff1Smrg  IFS=$as_save_IFS
37333a99fc18Smrg  case $as_dir in #(((
37343a99fc18Smrg    '') as_dir=./ ;;
37353a99fc18Smrg    */) ;;
37363a99fc18Smrg    *) as_dir=$as_dir/ ;;
37373a99fc18Smrg  esac
3738e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
37393a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37403da7aff1Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
37413a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37423da7aff1Smrg    break 2
37433da7aff1Smrg  fi
37443da7aff1Smrgdone
3745e531b1a7Smrg  done
3746e531b1a7SmrgIFS=$as_save_IFS
37473da7aff1Smrg
37481e42c052Smrgfi ;;
37491e42c052Smrgesac
37503da7aff1Smrgfi
37513da7aff1Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
37523da7aff1Smrgif test -n "$ac_ct_CC"; then
37533a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
37543a99fc18Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
37553da7aff1Smrgelse
37563a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37573a99fc18Smrgprintf "%s\n" "no" >&6; }
37583da7aff1Smrgfi
37593da7aff1Smrg
3760e531b1a7Smrg
37613da7aff1Smrg  test -n "$ac_ct_CC" && break
37623da7aff1Smrgdone
37633da7aff1Smrg
3764e531b1a7Smrg  if test "x$ac_ct_CC" = x; then
3765e531b1a7Smrg    CC=""
3766e531b1a7Smrg  else
3767e531b1a7Smrg    case $cross_compiling:$ac_tool_warned in
3768e531b1a7Smrgyes:)
37693a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37703a99fc18Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37713a99fc18Smrgac_tool_warned=yes ;;
37723a99fc18Smrgesac
37733a99fc18Smrg    CC=$ac_ct_CC
37743a99fc18Smrg  fi
37753a99fc18Smrgfi
37763a99fc18Smrg
37773a99fc18Smrgfi
37783a99fc18Smrgif test -z "$CC"; then
37793a99fc18Smrg  if test -n "$ac_tool_prefix"; then
37803a99fc18Smrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
37813a99fc18Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2
37823a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37833a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
37843a99fc18Smrgif test ${ac_cv_prog_CC+y}
37853a99fc18Smrgthen :
37863a99fc18Smrg  printf %s "(cached) " >&6
37871e42c052Smrgelse case e in #(
37881e42c052Smrg  e) if test -n "$CC"; then
37893a99fc18Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
37903a99fc18Smrgelse
37913a99fc18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37923a99fc18Smrgfor as_dir in $PATH
37933a99fc18Smrgdo
37943a99fc18Smrg  IFS=$as_save_IFS
37953a99fc18Smrg  case $as_dir in #(((
37963a99fc18Smrg    '') as_dir=./ ;;
37973a99fc18Smrg    */) ;;
37983a99fc18Smrg    *) as_dir=$as_dir/ ;;
37993a99fc18Smrg  esac
38003a99fc18Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
38013a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38023a99fc18Smrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
38033a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38043a99fc18Smrg    break 2
38053a99fc18Smrg  fi
38063a99fc18Smrgdone
38073a99fc18Smrg  done
38083a99fc18SmrgIFS=$as_save_IFS
38093a99fc18Smrg
38101e42c052Smrgfi ;;
38111e42c052Smrgesac
38123a99fc18Smrgfi
38133a99fc18SmrgCC=$ac_cv_prog_CC
38143a99fc18Smrgif test -n "$CC"; then
38153a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
38163a99fc18Smrgprintf "%s\n" "$CC" >&6; }
38173a99fc18Smrgelse
38183a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38193a99fc18Smrgprintf "%s\n" "no" >&6; }
38203a99fc18Smrgfi
38213a99fc18Smrg
38223a99fc18Smrg
38233a99fc18Smrgfi
38243a99fc18Smrgif test -z "$ac_cv_prog_CC"; then
38253a99fc18Smrg  ac_ct_CC=$CC
38263a99fc18Smrg  # Extract the first word of "clang", so it can be a program name with args.
38273a99fc18Smrgset dummy clang; ac_word=$2
38283a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38293a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
38303a99fc18Smrgif test ${ac_cv_prog_ac_ct_CC+y}
38313a99fc18Smrgthen :
38323a99fc18Smrg  printf %s "(cached) " >&6
38331e42c052Smrgelse case e in #(
38341e42c052Smrg  e) if test -n "$ac_ct_CC"; then
38353a99fc18Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
38363a99fc18Smrgelse
38373a99fc18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38383a99fc18Smrgfor as_dir in $PATH
38393a99fc18Smrgdo
38403a99fc18Smrg  IFS=$as_save_IFS
38413a99fc18Smrg  case $as_dir in #(((
38423a99fc18Smrg    '') as_dir=./ ;;
38433a99fc18Smrg    */) ;;
38443a99fc18Smrg    *) as_dir=$as_dir/ ;;
38453a99fc18Smrg  esac
38463a99fc18Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
38473a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38483a99fc18Smrg    ac_cv_prog_ac_ct_CC="clang"
38493a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38503a99fc18Smrg    break 2
38513a99fc18Smrg  fi
38523a99fc18Smrgdone
38533a99fc18Smrg  done
38543a99fc18SmrgIFS=$as_save_IFS
38553a99fc18Smrg
38561e42c052Smrgfi ;;
38571e42c052Smrgesac
38583a99fc18Smrgfi
38593a99fc18Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
38603a99fc18Smrgif test -n "$ac_ct_CC"; then
38613a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
38623a99fc18Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
38633a99fc18Smrgelse
38643a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38653a99fc18Smrgprintf "%s\n" "no" >&6; }
38663a99fc18Smrgfi
38673a99fc18Smrg
38683a99fc18Smrg  if test "x$ac_ct_CC" = x; then
38693a99fc18Smrg    CC=""
38703a99fc18Smrg  else
38713a99fc18Smrg    case $cross_compiling:$ac_tool_warned in
38723a99fc18Smrgyes:)
38733a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38743a99fc18Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3875e531b1a7Smrgac_tool_warned=yes ;;
3876e531b1a7Smrgesac
3877e531b1a7Smrg    CC=$ac_ct_CC
3878e531b1a7Smrg  fi
38793a99fc18Smrgelse
38803a99fc18Smrg  CC="$ac_cv_prog_CC"
38813da7aff1Smrgfi
38823da7aff1Smrg
38833da7aff1Smrgfi
38843da7aff1Smrg
38853da7aff1Smrg
38861e42c052Smrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
38871e42c052Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3888f9d592e5Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
38891e42c052SmrgSee 'config.log' for more details" "$LINENO" 5; }
38903da7aff1Smrg
38913da7aff1Smrg# Provide some information about the compiler.
38923a99fc18Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3893e531b1a7Smrgset X $ac_compile
3894e531b1a7Smrgac_compiler=$2
38953a99fc18Smrgfor ac_option in --version -v -V -qversion -version; do
3896e531b1a7Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3897e531b1a7Smrgcase "(($ac_try" in
3898e531b1a7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899e531b1a7Smrg  *) ac_try_echo=$ac_try;;
3900e531b1a7Smrgesac
3901e531b1a7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
39023a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3903e531b1a7Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
39043da7aff1Smrg  ac_status=$?
3905e531b1a7Smrg  if test -s conftest.err; then
3906e531b1a7Smrg    sed '10a\
3907e531b1a7Smrg... rest of stderr output deleted ...
3908e531b1a7Smrg         10q' conftest.err >conftest.er1
3909e531b1a7Smrg    cat conftest.er1 >&5
3910e531b1a7Smrg  fi
3911e531b1a7Smrg  rm -f conftest.er1 conftest.err
39123a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913e531b1a7Smrg  test $ac_status = 0; }
3914e531b1a7Smrgdone
39153da7aff1Smrg
3916e531b1a7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
39173da7aff1Smrg/* end confdefs.h.  */
39183da7aff1Smrg
39193da7aff1Smrgint
39203a99fc18Smrgmain (void)
39213da7aff1Smrg{
39223da7aff1Smrg
39233da7aff1Smrg  ;
39243da7aff1Smrg  return 0;
39253da7aff1Smrg}
39263da7aff1Smrg_ACEOF
39273da7aff1Smrgac_clean_files_save=$ac_clean_files
3928e531b1a7Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
39293da7aff1Smrg# Try to create an executable without -o first, disregard a.out.
39303da7aff1Smrg# It will help us diagnose broken compilers, and finding out an intuition
39313da7aff1Smrg# of exeext.
39323a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
39333a99fc18Smrgprintf %s "checking whether the C compiler works... " >&6; }
39343a99fc18Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3935e531b1a7Smrg
3936e531b1a7Smrg# The possible output files:
3937e531b1a7Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3938e531b1a7Smrg
3939e531b1a7Smrgac_rmfiles=
3940e531b1a7Smrgfor ac_file in $ac_files
3941e531b1a7Smrgdo
3942e531b1a7Smrg  case $ac_file in
3943e531b1a7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3944e531b1a7Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3945e531b1a7Smrg  esac
3946e531b1a7Smrgdone
3947e531b1a7Smrgrm -f $ac_rmfiles
3948e531b1a7Smrg
3949e531b1a7Smrgif { { ac_try="$ac_link_default"
3950e531b1a7Smrgcase "(($ac_try" in
3951e531b1a7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952e531b1a7Smrg  *) ac_try_echo=$ac_try;;
3953e531b1a7Smrgesac
3954e531b1a7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
39553a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3956e531b1a7Smrg  (eval "$ac_link_default") 2>&5
39573da7aff1Smrg  ac_status=$?
39583a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39593a99fc18Smrg  test $ac_status = 0; }
39603a99fc18Smrgthen :
39611e42c052Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
39621e42c052Smrg# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3963e531b1a7Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3964e531b1a7Smrg# so that the user can short-circuit this test for compilers unknown to
3965e531b1a7Smrg# Autoconf.
3966e531b1a7Smrgfor ac_file in $ac_files ''
39673da7aff1Smrgdo
39683da7aff1Smrg  test -f "$ac_file" || continue
39693da7aff1Smrg  case $ac_file in
3970e531b1a7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
39713da7aff1Smrg	;;
39723da7aff1Smrg    [ab].out )
39733da7aff1Smrg	# We found the default executable, but exeext='' is most
39743da7aff1Smrg	# certainly right.
39753da7aff1Smrg	break;;
39763da7aff1Smrg    *.* )
39773a99fc18Smrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3978e531b1a7Smrg	then :; else
3979e531b1a7Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3980e531b1a7Smrg	fi
3981e531b1a7Smrg	# We set ac_cv_exeext here because the later test for it is not
39821e42c052Smrg	# safe: cross compilers may not add the suffix if given an '-o'
3983e531b1a7Smrg	# argument, so we may need to know it at that point already.
3984e531b1a7Smrg	# Even if this section looks crufty: it has the advantage of
3985e531b1a7Smrg	# actually working.
39863da7aff1Smrg	break;;
39873da7aff1Smrg    * )
39883da7aff1Smrg	break;;
39893da7aff1Smrg  esac
39903da7aff1Smrgdone
3991e531b1a7Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3992e531b1a7Smrg
39931e42c052Smrgelse case e in #(
39941e42c052Smrg  e) ac_file='' ;;
39951e42c052Smrgesac
3996e531b1a7Smrgfi
39973a99fc18Smrgif test -z "$ac_file"
39983a99fc18Smrgthen :
39993a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40003a99fc18Smrgprintf "%s\n" "no" >&6; }
40013a99fc18Smrgprintf "%s\n" "$as_me: failed program was:" >&5
40023da7aff1Smrgsed 's/^/| /' conftest.$ac_ext >&5
40033da7aff1Smrg
40041e42c052Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
40051e42c052Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4006f9d592e5Smrgas_fn_error 77 "C compiler cannot create executables
40071e42c052SmrgSee 'config.log' for more details" "$LINENO" 5; }
40081e42c052Smrgelse case e in #(
40091e42c052Smrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40101e42c052Smrgprintf "%s\n" "yes" >&6; } ;;
40111e42c052Smrgesac
40123a99fc18Smrgfi
40133a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
40143a99fc18Smrgprintf %s "checking for C compiler default output file name... " >&6; }
40153a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
40163a99fc18Smrgprintf "%s\n" "$ac_file" >&6; }
40173da7aff1Smrgac_exeext=$ac_cv_exeext
40183da7aff1Smrg
4019e531b1a7Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
40203da7aff1Smrgac_clean_files=$ac_clean_files_save
40213a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
40223a99fc18Smrgprintf %s "checking for suffix of executables... " >&6; }
4023e531b1a7Smrgif { { ac_try="$ac_link"
4024e531b1a7Smrgcase "(($ac_try" in
4025e531b1a7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026e531b1a7Smrg  *) ac_try_echo=$ac_try;;
4027e531b1a7Smrgesac
4028e531b1a7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
40293a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
4030e531b1a7Smrg  (eval "$ac_link") 2>&5
40313da7aff1Smrg  ac_status=$?
40323a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40333a99fc18Smrg  test $ac_status = 0; }
40343a99fc18Smrgthen :
40351e42c052Smrg  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
40361e42c052Smrg# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
40371e42c052Smrg# work properly (i.e., refer to 'conftest.exe'), while it won't with
40381e42c052Smrg# 'rm'.
40393da7aff1Smrgfor ac_file in conftest.exe conftest conftest.*; do
40403da7aff1Smrg  test -f "$ac_file" || continue
40413da7aff1Smrg  case $ac_file in
4042e531b1a7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
40433da7aff1Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
40443da7aff1Smrg	  break;;
40453da7aff1Smrg    * ) break;;
40463da7aff1Smrg  esac
40473da7aff1Smrgdone
40481e42c052Smrgelse case e in #(
40491e42c052Smrg  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
40501e42c052Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4051f9d592e5Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
40521e42c052SmrgSee 'config.log' for more details" "$LINENO" 5; } ;;
40531e42c052Smrgesac
40543da7aff1Smrgfi
4055e531b1a7Smrgrm -f conftest conftest$ac_cv_exeext
40563a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
40573a99fc18Smrgprintf "%s\n" "$ac_cv_exeext" >&6; }
40583da7aff1Smrg
40593da7aff1Smrgrm -f conftest.$ac_ext
40603da7aff1SmrgEXEEXT=$ac_cv_exeext
40613da7aff1Smrgac_exeext=$EXEEXT
4062e531b1a7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063e531b1a7Smrg/* end confdefs.h.  */
4064e531b1a7Smrg#include <stdio.h>
4065e531b1a7Smrgint
40663a99fc18Smrgmain (void)
4067e531b1a7Smrg{
4068e531b1a7SmrgFILE *f = fopen ("conftest.out", "w");
40691e42c052Smrg if (!f)
40701e42c052Smrg  return 1;
4071e531b1a7Smrg return ferror (f) || fclose (f) != 0;
4072e531b1a7Smrg
4073e531b1a7Smrg  ;
4074e531b1a7Smrg  return 0;
4075e531b1a7Smrg}
40763da7aff1Smrg_ACEOF
4077e531b1a7Smrgac_clean_files="$ac_clean_files conftest.out"
4078e531b1a7Smrg# Check that the compiler produces executables we can run.  If not, either
4079e531b1a7Smrg# the compiler is broken, or we cross compile.
40803a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
40813a99fc18Smrgprintf %s "checking whether we are cross compiling... " >&6; }
4082e531b1a7Smrgif test "$cross_compiling" != yes; then
4083e531b1a7Smrg  { { ac_try="$ac_link"
4084e531b1a7Smrgcase "(($ac_try" in
4085e531b1a7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086e531b1a7Smrg  *) ac_try_echo=$ac_try;;
4087e531b1a7Smrgesac
4088e531b1a7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
40893a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
4090e531b1a7Smrg  (eval "$ac_link") 2>&5
4091e531b1a7Smrg  ac_status=$?
40923a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093e531b1a7Smrg  test $ac_status = 0; }
4094e531b1a7Smrg  if { ac_try='./conftest$ac_cv_exeext'
4095e531b1a7Smrg  { { case "(($ac_try" in
4096e531b1a7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097e531b1a7Smrg  *) ac_try_echo=$ac_try;;
4098e531b1a7Smrgesac
4099e531b1a7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
41003a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
4101e531b1a7Smrg  (eval "$ac_try") 2>&5
4102e531b1a7Smrg  ac_status=$?
41033a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104e531b1a7Smrg  test $ac_status = 0; }; }; then
4105e531b1a7Smrg    cross_compiling=no
4106e531b1a7Smrg  else
4107e531b1a7Smrg    if test "$cross_compiling" = maybe; then
4108e531b1a7Smrg	cross_compiling=yes
4109e531b1a7Smrg    else
41101e42c052Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
41111e42c052Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
41123a99fc18Smrgas_fn_error 77 "cannot run C compiled programs.
41131e42c052SmrgIf you meant to cross compile, use '--host'.
41141e42c052SmrgSee 'config.log' for more details" "$LINENO" 5; }
4115e531b1a7Smrg    fi
4116e531b1a7Smrg  fi
4117e531b1a7Smrgfi
41183a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
41193a99fc18Smrgprintf "%s\n" "$cross_compiling" >&6; }
4120e531b1a7Smrg
41211e42c052Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext \
41221e42c052Smrg  conftest.o conftest.obj conftest.out
4123e531b1a7Smrgac_clean_files=$ac_clean_files_save
41243a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
41253a99fc18Smrgprintf %s "checking for suffix of object files... " >&6; }
41263a99fc18Smrgif test ${ac_cv_objext+y}
41273a99fc18Smrgthen :
41283a99fc18Smrg  printf %s "(cached) " >&6
41291e42c052Smrgelse case e in #(
41301e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41313da7aff1Smrg/* end confdefs.h.  */
41323da7aff1Smrg
41333da7aff1Smrgint
41343a99fc18Smrgmain (void)
41353da7aff1Smrg{
41363da7aff1Smrg
41373da7aff1Smrg  ;
41383da7aff1Smrg  return 0;
41393da7aff1Smrg}
41403da7aff1Smrg_ACEOF
41413da7aff1Smrgrm -f conftest.o conftest.obj
4142e531b1a7Smrgif { { ac_try="$ac_compile"
4143e531b1a7Smrgcase "(($ac_try" in
4144e531b1a7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145e531b1a7Smrg  *) ac_try_echo=$ac_try;;
4146e531b1a7Smrgesac
4147e531b1a7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
41483a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
4149e531b1a7Smrg  (eval "$ac_compile") 2>&5
41503da7aff1Smrg  ac_status=$?
41513a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41523a99fc18Smrg  test $ac_status = 0; }
41533a99fc18Smrgthen :
4154e531b1a7Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
4155e531b1a7Smrg  test -f "$ac_file" || continue;
41563da7aff1Smrg  case $ac_file in
4157e531b1a7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
41583da7aff1Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
41593da7aff1Smrg       break;;
41603da7aff1Smrg  esac
41613da7aff1Smrgdone
41621e42c052Smrgelse case e in #(
41631e42c052Smrg  e) printf "%s\n" "$as_me: failed program was:" >&5
41643da7aff1Smrgsed 's/^/| /' conftest.$ac_ext >&5
41653da7aff1Smrg
41661e42c052Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
41671e42c052Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4168f9d592e5Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
41691e42c052SmrgSee 'config.log' for more details" "$LINENO" 5; } ;;
41701e42c052Smrgesac
41713da7aff1Smrgfi
41721e42c052Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
41731e42c052Smrgesac
41743da7aff1Smrgfi
41753a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
41763a99fc18Smrgprintf "%s\n" "$ac_cv_objext" >&6; }
41773da7aff1SmrgOBJEXT=$ac_cv_objext
41783da7aff1Smrgac_objext=$OBJEXT
41793a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
41803a99fc18Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
41813a99fc18Smrgif test ${ac_cv_c_compiler_gnu+y}
41823a99fc18Smrgthen :
41833a99fc18Smrg  printf %s "(cached) " >&6
41841e42c052Smrgelse case e in #(
41851e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41863da7aff1Smrg/* end confdefs.h.  */
41873da7aff1Smrg
41883da7aff1Smrgint
41893a99fc18Smrgmain (void)
41903da7aff1Smrg{
41913da7aff1Smrg#ifndef __GNUC__
41923da7aff1Smrg       choke me
41933da7aff1Smrg#endif
41943da7aff1Smrg
41953da7aff1Smrg  ;
41963da7aff1Smrg  return 0;
41973da7aff1Smrg}
41983da7aff1Smrg_ACEOF
41993a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
42003a99fc18Smrgthen :
42013da7aff1Smrg  ac_compiler_gnu=yes
42021e42c052Smrgelse case e in #(
42031e42c052Smrg  e) ac_compiler_gnu=no ;;
42041e42c052Smrgesac
42053da7aff1Smrgfi
42063a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42073da7aff1Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
42081e42c052Smrg ;;
42091e42c052Smrgesac
42103da7aff1Smrgfi
42113a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
42123a99fc18Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
42133a99fc18Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
42143a99fc18Smrg
4215e531b1a7Smrgif test $ac_compiler_gnu = yes; then
4216e531b1a7Smrg  GCC=yes
4217e531b1a7Smrgelse
4218e531b1a7Smrg  GCC=
4219e531b1a7Smrgfi
42203a99fc18Smrgac_test_CFLAGS=${CFLAGS+y}
42213da7aff1Smrgac_save_CFLAGS=$CFLAGS
42223a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
42233a99fc18Smrgprintf %s "checking whether $CC accepts -g... " >&6; }
42243a99fc18Smrgif test ${ac_cv_prog_cc_g+y}
42253a99fc18Smrgthen :
42263a99fc18Smrg  printf %s "(cached) " >&6
42271e42c052Smrgelse case e in #(
42281e42c052Smrg  e) ac_save_c_werror_flag=$ac_c_werror_flag
4229e531b1a7Smrg   ac_c_werror_flag=yes
4230e531b1a7Smrg   ac_cv_prog_cc_g=no
4231e531b1a7Smrg   CFLAGS="-g"
4232e531b1a7Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42333da7aff1Smrg/* end confdefs.h.  */
42343da7aff1Smrg
42353da7aff1Smrgint
42363a99fc18Smrgmain (void)
42373da7aff1Smrg{
42383da7aff1Smrg
42393da7aff1Smrg  ;
42403da7aff1Smrg  return 0;
42413da7aff1Smrg}
42423da7aff1Smrg_ACEOF
42433a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
42443a99fc18Smrgthen :
42453da7aff1Smrg  ac_cv_prog_cc_g=yes
42461e42c052Smrgelse case e in #(
42471e42c052Smrg  e) CFLAGS=""
4248e531b1a7Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249e531b1a7Smrg/* end confdefs.h.  */
4250e531b1a7Smrg
4251e531b1a7Smrgint
42523a99fc18Smrgmain (void)
4253e531b1a7Smrg{
4254e531b1a7Smrg
4255e531b1a7Smrg  ;
4256e531b1a7Smrg  return 0;
4257e531b1a7Smrg}
4258e531b1a7Smrg_ACEOF
42593a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
42603a99fc18Smrgthen :
4261e531b1a7Smrg
42621e42c052Smrgelse case e in #(
42631e42c052Smrg  e) ac_c_werror_flag=$ac_save_c_werror_flag
4264e531b1a7Smrg	 CFLAGS="-g"
4265e531b1a7Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266e531b1a7Smrg/* end confdefs.h.  */
4267e531b1a7Smrg
4268e531b1a7Smrgint
42693a99fc18Smrgmain (void)
4270e531b1a7Smrg{
42713da7aff1Smrg
4272e531b1a7Smrg  ;
4273e531b1a7Smrg  return 0;
4274e531b1a7Smrg}
4275e531b1a7Smrg_ACEOF
42763a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
42773a99fc18Smrgthen :
4278e531b1a7Smrg  ac_cv_prog_cc_g=yes
4279e531b1a7Smrgfi
42801e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
42811e42c052Smrgesac
42823da7aff1Smrgfi
42831e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
42841e42c052Smrgesac
42853da7aff1Smrgfi
42863a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42871e42c052Smrg   ac_c_werror_flag=$ac_save_c_werror_flag ;;
42881e42c052Smrgesac
4289e531b1a7Smrgfi
42903a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
42913a99fc18Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
42923a99fc18Smrgif test $ac_test_CFLAGS; then
42933da7aff1Smrg  CFLAGS=$ac_save_CFLAGS
42943da7aff1Smrgelif test $ac_cv_prog_cc_g = yes; then
42953da7aff1Smrg  if test "$GCC" = yes; then
42963da7aff1Smrg    CFLAGS="-g -O2"
42973da7aff1Smrg  else
42983da7aff1Smrg    CFLAGS="-g"
42993da7aff1Smrg  fi
43003da7aff1Smrgelse
43013da7aff1Smrg  if test "$GCC" = yes; then
43023da7aff1Smrg    CFLAGS="-O2"
43033da7aff1Smrg  else
43043da7aff1Smrg    CFLAGS=
43053da7aff1Smrg  fi
43063da7aff1Smrgfi
43073a99fc18Smrgac_prog_cc_stdc=no
43083a99fc18Smrgif test x$ac_prog_cc_stdc = xno
43093a99fc18Smrgthen :
43103a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
43113a99fc18Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
43123a99fc18Smrgif test ${ac_cv_prog_cc_c11+y}
43133a99fc18Smrgthen :
43143a99fc18Smrg  printf %s "(cached) " >&6
43151e42c052Smrgelse case e in #(
43161e42c052Smrg  e) ac_cv_prog_cc_c11=no
43173da7aff1Smrgac_save_CC=$CC
4318e531b1a7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
43193da7aff1Smrg/* end confdefs.h.  */
43203a99fc18Smrg$ac_c_conftest_c11_program
43213a99fc18Smrg_ACEOF
43223a99fc18Smrgfor ac_arg in '' -std=gnu11
43233a99fc18Smrgdo
43243a99fc18Smrg  CC="$ac_save_CC $ac_arg"
43253a99fc18Smrg  if ac_fn_c_try_compile "$LINENO"
43263a99fc18Smrgthen :
43273a99fc18Smrg  ac_cv_prog_cc_c11=$ac_arg
43283a99fc18Smrgfi
43293a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
43303a99fc18Smrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
43313a99fc18Smrgdone
43323a99fc18Smrgrm -f conftest.$ac_ext
43331e42c052SmrgCC=$ac_save_CC ;;
43341e42c052Smrgesac
43353a99fc18Smrgfi
43363da7aff1Smrg
43373a99fc18Smrgif test "x$ac_cv_prog_cc_c11" = xno
43383a99fc18Smrgthen :
43393a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
43403a99fc18Smrgprintf "%s\n" "unsupported" >&6; }
43411e42c052Smrgelse case e in #(
43421e42c052Smrg  e) if test "x$ac_cv_prog_cc_c11" = x
43433a99fc18Smrgthen :
43443a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
43453a99fc18Smrgprintf "%s\n" "none needed" >&6; }
43461e42c052Smrgelse case e in #(
43471e42c052Smrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
43483a99fc18Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
43491e42c052Smrg     CC="$CC $ac_cv_prog_cc_c11" ;;
43501e42c052Smrgesac
43513a99fc18Smrgfi
43523a99fc18Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
43531e42c052Smrg  ac_prog_cc_stdc=c11 ;;
43541e42c052Smrgesac
43553a99fc18Smrgfi
43563a99fc18Smrgfi
43573a99fc18Smrgif test x$ac_prog_cc_stdc = xno
43583a99fc18Smrgthen :
43593a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
43603a99fc18Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
43613a99fc18Smrgif test ${ac_cv_prog_cc_c99+y}
43623a99fc18Smrgthen :
43633a99fc18Smrg  printf %s "(cached) " >&6
43641e42c052Smrgelse case e in #(
43651e42c052Smrg  e) ac_cv_prog_cc_c99=no
43663a99fc18Smrgac_save_CC=$CC
43673a99fc18Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
43683a99fc18Smrg/* end confdefs.h.  */
43693a99fc18Smrg$ac_c_conftest_c99_program
43703a99fc18Smrg_ACEOF
43713a99fc18Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
43723a99fc18Smrgdo
43733a99fc18Smrg  CC="$ac_save_CC $ac_arg"
43743a99fc18Smrg  if ac_fn_c_try_compile "$LINENO"
43753a99fc18Smrgthen :
43763a99fc18Smrg  ac_cv_prog_cc_c99=$ac_arg
43773a99fc18Smrgfi
43783a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
43793a99fc18Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
43803a99fc18Smrgdone
43813a99fc18Smrgrm -f conftest.$ac_ext
43821e42c052SmrgCC=$ac_save_CC ;;
43831e42c052Smrgesac
43843a99fc18Smrgfi
4385e531b1a7Smrg
43863a99fc18Smrgif test "x$ac_cv_prog_cc_c99" = xno
43873a99fc18Smrgthen :
43883a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
43893a99fc18Smrgprintf "%s\n" "unsupported" >&6; }
43901e42c052Smrgelse case e in #(
43911e42c052Smrg  e) if test "x$ac_cv_prog_cc_c99" = x
43923a99fc18Smrgthen :
43933a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
43943a99fc18Smrgprintf "%s\n" "none needed" >&6; }
43951e42c052Smrgelse case e in #(
43961e42c052Smrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
43973a99fc18Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
43981e42c052Smrg     CC="$CC $ac_cv_prog_cc_c99" ;;
43991e42c052Smrgesac
44003a99fc18Smrgfi
44013a99fc18Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
44021e42c052Smrg  ac_prog_cc_stdc=c99 ;;
44031e42c052Smrgesac
44043a99fc18Smrgfi
44053a99fc18Smrgfi
44063a99fc18Smrgif test x$ac_prog_cc_stdc = xno
44073a99fc18Smrgthen :
44083a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
44093a99fc18Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
44103a99fc18Smrgif test ${ac_cv_prog_cc_c89+y}
44113a99fc18Smrgthen :
44123a99fc18Smrg  printf %s "(cached) " >&6
44131e42c052Smrgelse case e in #(
44141e42c052Smrg  e) ac_cv_prog_cc_c89=no
44153a99fc18Smrgac_save_CC=$CC
44163a99fc18Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
44173a99fc18Smrg/* end confdefs.h.  */
44183a99fc18Smrg$ac_c_conftest_c89_program
44193da7aff1Smrg_ACEOF
44203a99fc18Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
44213da7aff1Smrgdo
44223da7aff1Smrg  CC="$ac_save_CC $ac_arg"
44233a99fc18Smrg  if ac_fn_c_try_compile "$LINENO"
44243a99fc18Smrgthen :
4425e531b1a7Smrg  ac_cv_prog_cc_c89=$ac_arg
44263da7aff1Smrgfi
44273a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4428e531b1a7Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
44293da7aff1Smrgdone
4430e531b1a7Smrgrm -f conftest.$ac_ext
44311e42c052SmrgCC=$ac_save_CC ;;
44321e42c052Smrgesac
44333da7aff1Smrgfi
44343da7aff1Smrg
44353a99fc18Smrgif test "x$ac_cv_prog_cc_c89" = xno
44363a99fc18Smrgthen :
44373a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
44383a99fc18Smrgprintf "%s\n" "unsupported" >&6; }
44391e42c052Smrgelse case e in #(
44401e42c052Smrg  e) if test "x$ac_cv_prog_cc_c89" = x
44413a99fc18Smrgthen :
44423a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
44433a99fc18Smrgprintf "%s\n" "none needed" >&6; }
44441e42c052Smrgelse case e in #(
44451e42c052Smrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
44463a99fc18Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
44471e42c052Smrg     CC="$CC $ac_cv_prog_cc_c89" ;;
44481e42c052Smrgesac
44493a99fc18Smrgfi
44503a99fc18Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
44511e42c052Smrg  ac_prog_cc_stdc=c89 ;;
44521e42c052Smrgesac
44533a99fc18Smrgfi
44543da7aff1Smrgfi
44553da7aff1Smrg
44563da7aff1Smrgac_ext=c
44573da7aff1Smrgac_cpp='$CPP $CPPFLAGS'
44583da7aff1Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44593da7aff1Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44603da7aff1Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
44613da7aff1Smrg
44623a99fc18Smrg
44633a99fc18Smrg  ac_ext=c
44643e999d35Smrgac_cpp='$CPP $CPPFLAGS'
44653e999d35Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44663e999d35Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44673e999d35Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
44683a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
44693a99fc18Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
44703a99fc18Smrgif test ${am_cv_prog_cc_c_o+y}
44713a99fc18Smrgthen :
44723a99fc18Smrg  printf %s "(cached) " >&6
44731e42c052Smrgelse case e in #(
44741e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44753e999d35Smrg/* end confdefs.h.  */
44763e999d35Smrg
44773e999d35Smrgint
44783a99fc18Smrgmain (void)
44793e999d35Smrg{
44803e999d35Smrg
44813e999d35Smrg  ;
44823e999d35Smrg  return 0;
44833e999d35Smrg}
44843e999d35Smrg_ACEOF
44853e999d35Smrg  # Make sure it works both with $CC and with simple cc.
44863e999d35Smrg  # Following AC_PROG_CC_C_O, we do the test twice because some
44873e999d35Smrg  # compilers refuse to overwrite an existing .o file with -o,
44883e999d35Smrg  # though they will create one.
44893e999d35Smrg  am_cv_prog_cc_c_o=yes
44903e999d35Smrg  for am_i in 1 2; do
44913e999d35Smrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
44923e999d35Smrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
44933e999d35Smrg   ac_status=$?
44943e999d35Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44953e999d35Smrg   (exit $ac_status); } \
44963e999d35Smrg         && test -f conftest2.$ac_objext; then
44973e999d35Smrg      : OK
44983e999d35Smrg    else
44993e999d35Smrg      am_cv_prog_cc_c_o=no
45003e999d35Smrg      break
45013e999d35Smrg    fi
45023e999d35Smrg  done
45033e999d35Smrg  rm -f core conftest*
45041e42c052Smrg  unset am_i ;;
45051e42c052Smrgesac
45063e999d35Smrgfi
45073a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
45083a99fc18Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
45093e999d35Smrgif test "$am_cv_prog_cc_c_o" != yes; then
45103e999d35Smrg   # Losing compiler, so override with the script.
45113e999d35Smrg   # FIXME: It is wrong to rewrite CC.
45123e999d35Smrg   # But if we don't then we get into trouble of one sort or another.
45133e999d35Smrg   # A longer-term fix would be to have automake use am__CC in this case,
45143e999d35Smrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
45153e999d35Smrg   CC="$am_aux_dir/compile $CC"
45163e999d35Smrgfi
45173e999d35Smrgac_ext=c
45183e999d35Smrgac_cpp='$CPP $CPPFLAGS'
45193e999d35Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45203e999d35Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45213e999d35Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
45223e999d35Smrg
45233e999d35Smrg
45243da7aff1Smrgdepcc="$CC"   am_compiler_list=
45253da7aff1Smrg
45263a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
45273a99fc18Smrgprintf %s "checking dependency style of $depcc... " >&6; }
45283a99fc18Smrgif test ${am_cv_CC_dependencies_compiler_type+y}
45293a99fc18Smrgthen :
45303a99fc18Smrg  printf %s "(cached) " >&6
45311e42c052Smrgelse case e in #(
45321e42c052Smrg  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
45333da7aff1Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
45343da7aff1Smrg  # making bogus files that we don't know about and never remove.  For
45353da7aff1Smrg  # instance it was reported that on HP-UX the gcc test will end up
45363e999d35Smrg  # making a dummy file named 'D' -- because '-MD' means "put the output
45373e999d35Smrg  # in D".
45383e999d35Smrg  rm -rf conftest.dir
45393da7aff1Smrg  mkdir conftest.dir
45403da7aff1Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
45413da7aff1Smrg  # using a relative directory.
45423da7aff1Smrg  cp "$am_depcomp" conftest.dir
45433da7aff1Smrg  cd conftest.dir
45443da7aff1Smrg  # We will build objects and dependencies in a subdirectory because
45453da7aff1Smrg  # it helps to detect inapplicable dependency modes.  For instance
45463da7aff1Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
45473da7aff1Smrg  # side effect of compilation, but ICC will put the dependencies in
45483da7aff1Smrg  # the current directory while Tru64 will put them in the object
45493da7aff1Smrg  # directory.
45503da7aff1Smrg  mkdir sub
45513da7aff1Smrg
45523da7aff1Smrg  am_cv_CC_dependencies_compiler_type=none
45533da7aff1Smrg  if test "$am_compiler_list" = ""; then
45543da7aff1Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
45553da7aff1Smrg  fi
4556e531b1a7Smrg  am__universal=false
4557e531b1a7Smrg  case " $depcc " in #(
4558e531b1a7Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4559e531b1a7Smrg     esac
4560e531b1a7Smrg
45613da7aff1Smrg  for depmode in $am_compiler_list; do
45623da7aff1Smrg    # Setup a source with many dependencies, because some compilers
45633da7aff1Smrg    # like to wrap large dependency lists on column 80 (with \), and
45643da7aff1Smrg    # we should not choose a depcomp mode which is confused by this.
45653da7aff1Smrg    #
45663da7aff1Smrg    # We need to recreate these files for each test, as the compiler may
45673da7aff1Smrg    # overwrite some of them when testing with obscure command lines.
45683da7aff1Smrg    # This happens at least with the AIX C compiler.
45693da7aff1Smrg    : > sub/conftest.c
45703da7aff1Smrg    for i in 1 2 3 4 5 6; do
45713da7aff1Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
45723e999d35Smrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
45733e999d35Smrg      # Solaris 10 /bin/sh.
45743e999d35Smrg      echo '/* dummy */' > sub/conftst$i.h
45753da7aff1Smrg    done
45763da7aff1Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
45773da7aff1Smrg
45783e999d35Smrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4579e531b1a7Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
45803e999d35Smrg    # handle '-M -o', and we need to detect this.  Also, some Intel
45813e999d35Smrg    # versions had trouble with output in subdirs.
4582e531b1a7Smrg    am__obj=sub/conftest.${OBJEXT-o}
4583e531b1a7Smrg    am__minus_obj="-o $am__obj"
45843da7aff1Smrg    case $depmode in
4585e531b1a7Smrg    gcc)
4586e531b1a7Smrg      # This depmode causes a compiler race in universal mode.
4587e531b1a7Smrg      test "$am__universal" = false || continue
4588e531b1a7Smrg      ;;
45893da7aff1Smrg    nosideeffect)
45903e999d35Smrg      # After this tag, mechanisms are not by side-effect, so they'll
45913e999d35Smrg      # only be used when explicitly requested.
45923da7aff1Smrg      if test "x$enable_dependency_tracking" = xyes; then
45933da7aff1Smrg	continue
45943da7aff1Smrg      else
45953da7aff1Smrg	break
45963da7aff1Smrg      fi
45973da7aff1Smrg      ;;
45983e999d35Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
45993e999d35Smrg      # This compiler won't grok '-c -o', but also, the minuso test has
4600e531b1a7Smrg      # not run yet.  These depmodes are late enough in the game, and
4601e531b1a7Smrg      # so weak that their functioning should not be impacted.
4602e531b1a7Smrg      am__obj=conftest.${OBJEXT-o}
4603e531b1a7Smrg      am__minus_obj=
4604e531b1a7Smrg      ;;
46053da7aff1Smrg    none) break ;;
46063da7aff1Smrg    esac
46073da7aff1Smrg    if depmode=$depmode \
4608e531b1a7Smrg       source=sub/conftest.c object=$am__obj \
46093da7aff1Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4610e531b1a7Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
46113da7aff1Smrg         >/dev/null 2>conftest.err &&
4612e531b1a7Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
46133da7aff1Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4614e531b1a7Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
46153da7aff1Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
46163da7aff1Smrg      # icc doesn't choke on unknown options, it will just issue warnings
4617e531b1a7Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
4618e531b1a7Smrg      # that says an option was ignored or not supported.
46191e42c052Smrg      # When given -MP, icc 7.0 and 7.1 complain thus:
4620e531b1a7Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
4621e531b1a7Smrg      # The diagnosis changed in icc 8.0:
4622e531b1a7Smrg      #   icc: Command line remark: option '-MP' not supported
4623e531b1a7Smrg      if (grep 'ignoring option' conftest.err ||
4624e531b1a7Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
46253da7aff1Smrg        am_cv_CC_dependencies_compiler_type=$depmode
46263da7aff1Smrg        break
46273da7aff1Smrg      fi
46283da7aff1Smrg    fi
46293da7aff1Smrg  done
46303da7aff1Smrg
46313da7aff1Smrg  cd ..
46323da7aff1Smrg  rm -rf conftest.dir
46333da7aff1Smrgelse
46343da7aff1Smrg  am_cv_CC_dependencies_compiler_type=none
46353da7aff1Smrgfi
46361e42c052Smrg ;;
46371e42c052Smrgesac
46383da7aff1Smrgfi
46393a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
46403a99fc18Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
46413da7aff1SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
46423da7aff1Smrg
4643e531b1a7Smrg if
46443da7aff1Smrg  test "x$enable_dependency_tracking" != xno \
46453da7aff1Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
46463da7aff1Smrg  am__fastdepCC_TRUE=
46473da7aff1Smrg  am__fastdepCC_FALSE='#'
46483da7aff1Smrgelse
46493da7aff1Smrg  am__fastdepCC_TRUE='#'
46503da7aff1Smrg  am__fastdepCC_FALSE=
46513da7aff1Smrgfi
46523da7aff1Smrg
46533da7aff1Smrg
46543a99fc18Smrg
46553a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
46563a99fc18Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
46573a99fc18Smrgif test ${ac_cv_c_undeclared_builtin_options+y}
46583a99fc18Smrgthen :
46593a99fc18Smrg  printf %s "(cached) " >&6
46601e42c052Smrgelse case e in #(
46611e42c052Smrg  e) ac_save_CFLAGS=$CFLAGS
46623a99fc18Smrg   ac_cv_c_undeclared_builtin_options='cannot detect'
46633a99fc18Smrg   for ac_arg in '' -fno-builtin; do
46643a99fc18Smrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
46653a99fc18Smrg     # This test program should *not* compile successfully.
46663a99fc18Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667f9d592e5Smrg/* end confdefs.h.  */
4668f9d592e5Smrg
46693a99fc18Smrgint
46703a99fc18Smrgmain (void)
4671f9d592e5Smrg{
46723a99fc18Smrg(void) strchr;
46733a99fc18Smrg  ;
46743a99fc18Smrg  return 0;
4675f9d592e5Smrg}
46763a99fc18Smrg_ACEOF
46773a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
46783a99fc18Smrgthen :
4679f9d592e5Smrg
46801e42c052Smrgelse case e in #(
46811e42c052Smrg  e) # This test program should compile successfully.
46823a99fc18Smrg        # No library function is consistently available on
46833a99fc18Smrg        # freestanding implementations, so test against a dummy
46843a99fc18Smrg        # declaration.  Include always-available headers on the
46853a99fc18Smrg        # off chance that they somehow elicit warnings.
46863a99fc18Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46873a99fc18Smrg/* end confdefs.h.  */
46883a99fc18Smrg#include <float.h>
46893a99fc18Smrg#include <limits.h>
46903a99fc18Smrg#include <stdarg.h>
46913a99fc18Smrg#include <stddef.h>
46923a99fc18Smrgextern void ac_decl (int, char *);
4693f9d592e5Smrg
46943a99fc18Smrgint
46953a99fc18Smrgmain (void)
4696f9d592e5Smrg{
46973a99fc18Smrg(void) ac_decl (0, (char *) 0);
46983a99fc18Smrg  (void) ac_decl;
4699f9d592e5Smrg
4700f9d592e5Smrg  ;
4701f9d592e5Smrg  return 0;
47023a99fc18Smrg}
47033a99fc18Smrg_ACEOF
47043a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
47053a99fc18Smrgthen :
47063a99fc18Smrg  if test x"$ac_arg" = x
47073a99fc18Smrgthen :
47083a99fc18Smrg  ac_cv_c_undeclared_builtin_options='none needed'
47091e42c052Smrgelse case e in #(
47101e42c052Smrg  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
47111e42c052Smrgesac
4712e531b1a7Smrgfi
47133a99fc18Smrg          break
4714e531b1a7Smrgfi
47151e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
47161e42c052Smrgesac
4717e531b1a7Smrgfi
47183a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
47193a99fc18Smrg    done
47203a99fc18Smrg    CFLAGS=$ac_save_CFLAGS
47211e42c052Smrg   ;;
47221e42c052Smrgesac
47233a99fc18Smrgfi
47243a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
47253a99fc18Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
47263a99fc18Smrg  case $ac_cv_c_undeclared_builtin_options in #(
47273a99fc18Smrg  'cannot detect') :
47281e42c052Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
47291e42c052Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
47303a99fc18Smrgas_fn_error $? "cannot make $CC report undeclared builtins
47311e42c052SmrgSee 'config.log' for more details" "$LINENO" 5; } ;; #(
47323a99fc18Smrg  'none needed') :
47333a99fc18Smrg    ac_c_undeclared_builtin_options='' ;; #(
47343a99fc18Smrg  *) :
47353a99fc18Smrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
47363a99fc18Smrgesac
4737e531b1a7Smrg
47383a99fc18Smrgac_header= ac_cache=
47393a99fc18Smrgfor ac_item in $ac_header_c_list
47403a99fc18Smrgdo
47413a99fc18Smrg  if test $ac_cache; then
47423a99fc18Smrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
47433a99fc18Smrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
47443a99fc18Smrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
47453a99fc18Smrg    fi
47463a99fc18Smrg    ac_header= ac_cache=
47473a99fc18Smrg  elif test $ac_header; then
47483a99fc18Smrg    ac_cache=$ac_item
47493a99fc18Smrg  else
47503a99fc18Smrg    ac_header=$ac_item
47513a99fc18Smrg  fi
47523a99fc18Smrgdone
4753e531b1a7Smrg
4754e531b1a7Smrg
4755e531b1a7Smrg
4756e531b1a7Smrg
4757e531b1a7Smrg
4758e531b1a7Smrg
4759f9d592e5Smrg
4760f9d592e5Smrg
47613a99fc18Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
47623a99fc18Smrgthen :
47633fe82118Smrg
47643a99fc18Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
47653fe82118Smrg
47663a99fc18Smrgfi
47673a99fc18Smrg
47683a99fc18Smrg
47693a99fc18Smrg
47703a99fc18Smrg
47713a99fc18Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
47723a99fc18Smrgif test "x$ac_cv_have_decl___clang__" = xyes
47733a99fc18Smrgthen :
47743fe82118Smrg  CLANGCC="yes"
47751e42c052Smrgelse case e in #(
47761e42c052Smrg  e) CLANGCC="no" ;;
47771e42c052Smrgesac
47783fe82118Smrgfi
47793a99fc18Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
47803a99fc18Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
47813a99fc18Smrgthen :
47823fe82118Smrg  INTELCC="yes"
47831e42c052Smrgelse case e in #(
47841e42c052Smrg  e) INTELCC="no" ;;
47851e42c052Smrgesac
47863fe82118Smrgfi
47873a99fc18Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
47883a99fc18Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
47893a99fc18Smrgthen :
47903fe82118Smrg  SUNCC="yes"
47911e42c052Smrgelse case e in #(
47921e42c052Smrg  e) SUNCC="no" ;;
47931e42c052Smrgesac
47943fe82118Smrgfi
47953fe82118Smrg
47963fe82118Smrg
47973fe82118Smrg
47983fe82118Smrg
47993e999d35Smrg
48003e999d35Smrg
48013e999d35Smrg
48023e999d35Smrg
4803f9d592e5Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4804f9d592e5Smrg	if test -n "$ac_tool_prefix"; then
4805f9d592e5Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4806f9d592e5Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
48073a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48083a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
48093a99fc18Smrgif test ${ac_cv_path_PKG_CONFIG+y}
48103a99fc18Smrgthen :
48113a99fc18Smrg  printf %s "(cached) " >&6
48121e42c052Smrgelse case e in #(
48131e42c052Smrg  e) case $PKG_CONFIG in
4814f9d592e5Smrg  [\\/]* | ?:[\\/]*)
4815f9d592e5Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4816f9d592e5Smrg  ;;
4817f9d592e5Smrg  *)
4818f9d592e5Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819f9d592e5Smrgfor as_dir in $PATH
4820f9d592e5Smrgdo
4821f9d592e5Smrg  IFS=$as_save_IFS
48223a99fc18Smrg  case $as_dir in #(((
48233a99fc18Smrg    '') as_dir=./ ;;
48243a99fc18Smrg    */) ;;
48253a99fc18Smrg    *) as_dir=$as_dir/ ;;
48263a99fc18Smrg  esac
4827f9d592e5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
48283a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
48293a99fc18Smrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
48303a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4831f9d592e5Smrg    break 2
4832f9d592e5Smrg  fi
4833f9d592e5Smrgdone
4834f9d592e5Smrg  done
4835f9d592e5SmrgIFS=$as_save_IFS
4836e531b1a7Smrg
4837e531b1a7Smrg  ;;
48381e42c052Smrgesac ;;
4839e531b1a7Smrgesac
4840e531b1a7Smrgfi
4841e531b1a7SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4842e531b1a7Smrgif test -n "$PKG_CONFIG"; then
48433a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
48443a99fc18Smrgprintf "%s\n" "$PKG_CONFIG" >&6; }
4845e531b1a7Smrgelse
48463a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
48473a99fc18Smrgprintf "%s\n" "no" >&6; }
4848e531b1a7Smrgfi
4849e531b1a7Smrg
4850e531b1a7Smrg
4851e531b1a7Smrgfi
4852e531b1a7Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4853e531b1a7Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4854e531b1a7Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4855e531b1a7Smrgset dummy pkg-config; ac_word=$2
48563a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48573a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
48583a99fc18Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
48593a99fc18Smrgthen :
48603a99fc18Smrg  printf %s "(cached) " >&6
48611e42c052Smrgelse case e in #(
48621e42c052Smrg  e) case $ac_pt_PKG_CONFIG in
4863e531b1a7Smrg  [\\/]* | ?:[\\/]*)
4864e531b1a7Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4865e531b1a7Smrg  ;;
4866e531b1a7Smrg  *)
4867e531b1a7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868e531b1a7Smrgfor as_dir in $PATH
4869e531b1a7Smrgdo
4870e531b1a7Smrg  IFS=$as_save_IFS
48713a99fc18Smrg  case $as_dir in #(((
48723a99fc18Smrg    '') as_dir=./ ;;
48733a99fc18Smrg    */) ;;
48743a99fc18Smrg    *) as_dir=$as_dir/ ;;
48753a99fc18Smrg  esac
4876e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
48773a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
48783a99fc18Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
48793a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4880e531b1a7Smrg    break 2
4881e531b1a7Smrg  fi
4882e531b1a7Smrgdone
4883e531b1a7Smrg  done
4884e531b1a7SmrgIFS=$as_save_IFS
4885e531b1a7Smrg
4886e531b1a7Smrg  ;;
48871e42c052Smrgesac ;;
4888e531b1a7Smrgesac
4889e531b1a7Smrgfi
4890e531b1a7Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
48913da7aff1Smrgif test -n "$ac_pt_PKG_CONFIG"; then
48923a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
48933a99fc18Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
48943da7aff1Smrgelse
48953a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
48963a99fc18Smrgprintf "%s\n" "no" >&6; }
48973da7aff1Smrgfi
48983da7aff1Smrg
4899e531b1a7Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4900e531b1a7Smrg    PKG_CONFIG=""
4901e531b1a7Smrg  else
4902e531b1a7Smrg    case $cross_compiling:$ac_tool_warned in
4903e531b1a7Smrgyes:)
49043a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
49053a99fc18Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906e531b1a7Smrgac_tool_warned=yes ;;
4907e531b1a7Smrgesac
4908e531b1a7Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4909e531b1a7Smrg  fi
49103da7aff1Smrgelse
49113da7aff1Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
49123da7aff1Smrgfi
49133da7aff1Smrg
49143da7aff1Smrgfi
49153da7aff1Smrgif test -n "$PKG_CONFIG"; then
49163da7aff1Smrg	_pkg_min_version=0.9.0
49173a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
49183a99fc18Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
49193da7aff1Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
49203a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49213a99fc18Smrgprintf "%s\n" "yes" >&6; }
49223da7aff1Smrg	else
49233a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
49243a99fc18Smrgprintf "%s\n" "no" >&6; }
49253da7aff1Smrg		PKG_CONFIG=""
49263da7aff1Smrg	fi
49273da7aff1Smrgfi
4928e531b1a7Smrg
49293a99fc18Smrg
49303a99fc18Smrg  # Make sure we can run config.sub.
49313a99fc18Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
49323a99fc18Smrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
49333a99fc18Smrg
49343a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
49353a99fc18Smrgprintf %s "checking build system type... " >&6; }
49363a99fc18Smrgif test ${ac_cv_build+y}
49373a99fc18Smrgthen :
49383a99fc18Smrg  printf %s "(cached) " >&6
49391e42c052Smrgelse case e in #(
49401e42c052Smrg  e) ac_build_alias=$build_alias
4941e531b1a7Smrgtest "x$ac_build_alias" = x &&
49423a99fc18Smrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4943e531b1a7Smrgtest "x$ac_build_alias" = x &&
4944f9d592e5Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
49453a99fc18Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
49463a99fc18Smrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
49471e42c052Smrg ;;
49481e42c052Smrgesac
4949e531b1a7Smrgfi
49503a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
49513a99fc18Smrgprintf "%s\n" "$ac_cv_build" >&6; }
4952e531b1a7Smrgcase $ac_cv_build in
4953e531b1a7Smrg*-*-*) ;;
4954f9d592e5Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4955e531b1a7Smrgesac
4956e531b1a7Smrgbuild=$ac_cv_build
4957e531b1a7Smrgac_save_IFS=$IFS; IFS='-'
4958e531b1a7Smrgset x $ac_cv_build
4959e531b1a7Smrgshift
4960e531b1a7Smrgbuild_cpu=$1
4961e531b1a7Smrgbuild_vendor=$2
4962e531b1a7Smrgshift; shift
4963e531b1a7Smrg# Remember, the first character of IFS is used to create $*,
4964e531b1a7Smrg# except with old shells:
4965e531b1a7Smrgbuild_os=$*
4966e531b1a7SmrgIFS=$ac_save_IFS
4967e531b1a7Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4968e531b1a7Smrg
49693da7aff1Smrg
49703a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
49713a99fc18Smrgprintf %s "checking host system type... " >&6; }
49723a99fc18Smrgif test ${ac_cv_host+y}
49733a99fc18Smrgthen :
49743a99fc18Smrg  printf %s "(cached) " >&6
49751e42c052Smrgelse case e in #(
49761e42c052Smrg  e) if test "x$host_alias" = x; then
4977e531b1a7Smrg  ac_cv_host=$ac_cv_build
4978e531b1a7Smrgelse
49793a99fc18Smrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
49803a99fc18Smrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4981e531b1a7Smrgfi
49821e42c052Smrg ;;
49831e42c052Smrgesac
4984e531b1a7Smrgfi
49853a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
49863a99fc18Smrgprintf "%s\n" "$ac_cv_host" >&6; }
4987e531b1a7Smrgcase $ac_cv_host in
4988e531b1a7Smrg*-*-*) ;;
4989f9d592e5Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4990e531b1a7Smrgesac
4991e531b1a7Smrghost=$ac_cv_host
4992e531b1a7Smrgac_save_IFS=$IFS; IFS='-'
4993e531b1a7Smrgset x $ac_cv_host
4994e531b1a7Smrgshift
4995e531b1a7Smrghost_cpu=$1
4996e531b1a7Smrghost_vendor=$2
4997e531b1a7Smrgshift; shift
4998e531b1a7Smrg# Remember, the first character of IFS is used to create $*,
4999e531b1a7Smrg# except with old shells:
5000e531b1a7Smrghost_os=$*
5001e531b1a7SmrgIFS=$ac_save_IFS
5002e531b1a7Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
50033da7aff1Smrg
50043da7aff1Smrg
50053a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
50063a99fc18Smrgprintf %s "checking for a sed that does not truncate output... " >&6; }
50073a99fc18Smrgif test ${ac_cv_path_SED+y}
50083a99fc18Smrgthen :
50093a99fc18Smrg  printf %s "(cached) " >&6
50101e42c052Smrgelse case e in #(
50111e42c052Smrg  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5012f9d592e5Smrg     for ac_i in 1 2 3 4 5 6 7; do
5013f9d592e5Smrg       ac_script="$ac_script$as_nl$ac_script"
5014f9d592e5Smrg     done
5015f9d592e5Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5016f9d592e5Smrg     { ac_script=; unset ac_script;}
5017f9d592e5Smrg     if test -z "$SED"; then
5018f9d592e5Smrg  ac_path_SED_found=false
5019f9d592e5Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
5020f9d592e5Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021f9d592e5Smrgfor as_dir in $PATH
5022f9d592e5Smrgdo
5023f9d592e5Smrg  IFS=$as_save_IFS
50243a99fc18Smrg  case $as_dir in #(((
50253a99fc18Smrg    '') as_dir=./ ;;
50263a99fc18Smrg    */) ;;
50273a99fc18Smrg    *) as_dir=$as_dir/ ;;
50283a99fc18Smrg  esac
50293a99fc18Smrg    for ac_prog in sed gsed
50303a99fc18Smrg   do
5031f9d592e5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
50323a99fc18Smrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
50333e999d35Smrg      as_fn_executable_p "$ac_path_SED" || continue
5034f9d592e5Smrg# Check for GNU ac_path_SED and select it if it is found.
5035f9d592e5Smrg  # Check for GNU $ac_path_SED
50361e42c052Smrgcase `"$ac_path_SED" --version 2>&1` in #(
5037f9d592e5Smrg*GNU*)
5038f9d592e5Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
50391e42c052Smrg#(
5040f9d592e5Smrg*)
5041f9d592e5Smrg  ac_count=0
50423a99fc18Smrg  printf %s 0123456789 >"conftest.in"
5043f9d592e5Smrg  while :
5044f9d592e5Smrg  do
5045f9d592e5Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
5046f9d592e5Smrg    mv "conftest.tmp" "conftest.in"
5047f9d592e5Smrg    cp "conftest.in" "conftest.nl"
50483a99fc18Smrg    printf "%s\n" '' >> "conftest.nl"
5049f9d592e5Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5050f9d592e5Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5051f9d592e5Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
5052f9d592e5Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
5053f9d592e5Smrg      # Best one so far, save it but keep looking for a better one
5054f9d592e5Smrg      ac_cv_path_SED="$ac_path_SED"
5055f9d592e5Smrg      ac_path_SED_max=$ac_count
5056f9d592e5Smrg    fi
5057f9d592e5Smrg    # 10*(2^10) chars as input seems more than enough
5058f9d592e5Smrg    test $ac_count -gt 10 && break
5059f9d592e5Smrg  done
5060f9d592e5Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5061f9d592e5Smrgesac
5062f9d592e5Smrg
5063f9d592e5Smrg      $ac_path_SED_found && break 3
5064f9d592e5Smrg    done
5065f9d592e5Smrg  done
5066f9d592e5Smrg  done
5067f9d592e5SmrgIFS=$as_save_IFS
5068f9d592e5Smrg  if test -z "$ac_cv_path_SED"; then
5069f9d592e5Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5070f9d592e5Smrg  fi
5071f9d592e5Smrgelse
5072f9d592e5Smrg  ac_cv_path_SED=$SED
5073f9d592e5Smrgfi
50741e42c052Smrg ;;
50751e42c052Smrgesac
5076f9d592e5Smrgfi
50773a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
50783a99fc18Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
5079f9d592e5Smrg SED="$ac_cv_path_SED"
5080f9d592e5Smrg  rm -f conftest.sed
5081f9d592e5Smrg
5082f9d592e5Smrg
5083e531b1a7Smrg
5084e531b1a7Smrg
5085e531b1a7Smrg
50863fe82118Smrg
50873fe82118Smrg# Check whether --enable-selective-werror was given.
50883a99fc18Smrgif test ${enable_selective_werror+y}
50893a99fc18Smrgthen :
50903fe82118Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
50911e42c052Smrgelse case e in #(
50921e42c052Smrg  e) SELECTIVE_WERROR=yes ;;
50931e42c052Smrgesac
50943da7aff1Smrgfi
5095e531b1a7Smrg
50963fe82118Smrg
50973fe82118Smrg
50983fe82118Smrg
50993fe82118Smrg
51003fe82118Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
51013fe82118Smrgif test "x$SUNCC" = "xyes"; then
51023fe82118Smrg    BASE_CFLAGS="-v"
51033fe82118Smrgelse
51043fe82118Smrg    BASE_CFLAGS=""
5105e531b1a7Smrgfi
5106e531b1a7Smrg
51073fe82118Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5108e531b1a7Smrg
5109e531b1a7Smrg
5110e531b1a7Smrg
5111e531b1a7Smrg
5112e531b1a7Smrg
5113e531b1a7Smrg
5114e531b1a7Smrg
51153fe82118Smrg
51163fe82118Smrg
51173fe82118Smrg
51183fe82118Smrg
51193fe82118Smrg
51203fe82118Smrg
51213fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
51223fe82118Smrg
51233fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
51243fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51253a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
51263a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
51273a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
51283a99fc18Smrgthen :
51293a99fc18Smrg  printf %s "(cached) " >&6
51301e42c052Smrgelse case e in #(
51311e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51323fe82118Smrg/* end confdefs.h.  */
51333fe82118Smrgint i;
51343fe82118Smrg_ACEOF
51353a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
51363a99fc18Smrgthen :
51373fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
51381e42c052Smrgelse case e in #(
51391e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
51401e42c052Smrgesac
51413fe82118Smrgfi
51421e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
51431e42c052Smrgesac
51443fe82118Smrgfi
51453a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
51463a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
51473fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
51483fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5149e531b1a7Smrgfi
5150e531b1a7Smrg
51513fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
51523fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51533fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5154e531b1a7Smrg	fi
51553fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
51563a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
51573a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
51583a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
51593a99fc18Smrgthen :
51603a99fc18Smrg  printf %s "(cached) " >&6
51611e42c052Smrgelse case e in #(
51621e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51633fe82118Smrg/* end confdefs.h.  */
51643fe82118Smrgint i;
51653fe82118Smrg_ACEOF
51663a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
51673a99fc18Smrgthen :
51683fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
51691e42c052Smrgelse case e in #(
51701e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
51711e42c052Smrgesac
51723fe82118Smrgfi
51731e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
51741e42c052Smrgesac
51753fe82118Smrgfi
51763a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
51773a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
51783fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
51793fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5180e531b1a7Smrgfi
5181e531b1a7Smrg
51823fe82118Smrgfound="no"
5183e531b1a7Smrg
51843fe82118Smrg	if test $found = "no" ; then
51853e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51863fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51873fe82118Smrg		fi
5188e531b1a7Smrg
51893e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
51903fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
51913fe82118Smrg		fi
5192e531b1a7Smrg
51933fe82118Smrg		CFLAGS="$CFLAGS -Wall"
5194e531b1a7Smrg
51953a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
51963a99fc18Smrgprintf %s "checking if $CC supports -Wall... " >&6; }
51973fe82118Smrg		cacheid=xorg_cv_cc_flag__Wall
51983a99fc18Smrg		if eval test \${$cacheid+y}
51993a99fc18Smrgthen :
52003a99fc18Smrg  printf %s "(cached) " >&6
52011e42c052Smrgelse case e in #(
52021e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52033fe82118Smrg/* end confdefs.h.  */
52043fe82118Smrgint i;
52053fe82118Smrgint
52063a99fc18Smrgmain (void)
52073fe82118Smrg{
5208e531b1a7Smrg
52093fe82118Smrg  ;
52103fe82118Smrg  return 0;
52113fe82118Smrg}
5212e531b1a7Smrg_ACEOF
52133a99fc18Smrgif ac_fn_c_try_link "$LINENO"
52143a99fc18Smrgthen :
52153fe82118Smrg  eval $cacheid=yes
52161e42c052Smrgelse case e in #(
52171e42c052Smrg  e) eval $cacheid=no ;;
52181e42c052Smrgesac
52193fe82118Smrgfi
52203a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
52211e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
52221e42c052Smrgesac
52233fe82118Smrgfi
5224e531b1a7Smrg
52253fe82118Smrg
52263fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
52273fe82118Smrg
52283fe82118Smrg		eval supported=\$$cacheid
52293a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
52303a99fc18Smrgprintf "%s\n" "$supported" >&6; }
52313fe82118Smrg		if test "$supported" = "yes" ; then
52323fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
52333fe82118Smrg			found="yes"
52343fe82118Smrg		fi
5235e531b1a7Smrg	fi
5236e531b1a7Smrg
5237e531b1a7Smrg
5238e531b1a7Smrg
5239e531b1a7Smrg
52403da7aff1Smrg
52413da7aff1Smrg
52423da7aff1Smrg
52433da7aff1Smrg
52443da7aff1Smrg
52453da7aff1Smrg
52463da7aff1Smrg
52473da7aff1Smrg
52483da7aff1Smrg
52493da7aff1Smrg
5250e531b1a7Smrg
52513fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
52523da7aff1Smrg
52533fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
52543fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52553a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
52563a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
52573a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
52583a99fc18Smrgthen :
52593a99fc18Smrg  printf %s "(cached) " >&6
52601e42c052Smrgelse case e in #(
52611e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52623fe82118Smrg/* end confdefs.h.  */
52633fe82118Smrgint i;
52643fe82118Smrg_ACEOF
52653a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
52663a99fc18Smrgthen :
52673fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
52681e42c052Smrgelse case e in #(
52691e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
52701e42c052Smrgesac
5271f9d592e5Smrgfi
52721e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
52731e42c052Smrgesac
5274f9d592e5Smrgfi
52753a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
52763a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
52773fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
52783fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5279f9d592e5Smrgfi
5280e531b1a7Smrg
52813fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
52823fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
52833fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52843fe82118Smrg	fi
52853fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
52863a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
52873a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
52883a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
52893a99fc18Smrgthen :
52903a99fc18Smrg  printf %s "(cached) " >&6
52911e42c052Smrgelse case e in #(
52921e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52933fe82118Smrg/* end confdefs.h.  */
52943fe82118Smrgint i;
52953fe82118Smrg_ACEOF
52963a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
52973a99fc18Smrgthen :
52983fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
52991e42c052Smrgelse case e in #(
53001e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
53011e42c052Smrgesac
53023da7aff1Smrgfi
53031e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
53041e42c052Smrgesac
53053da7aff1Smrgfi
53063a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
53073a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
53083fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
53093fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
53103da7aff1Smrgfi
53113da7aff1Smrg
53123fe82118Smrgfound="no"
53133da7aff1Smrg
53143fe82118Smrg	if test $found = "no" ; then
53153e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
53163fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53173fe82118Smrg		fi
53183da7aff1Smrg
53193e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
53203fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
53213fe82118Smrg		fi
53223da7aff1Smrg
53233fe82118Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
53243da7aff1Smrg
53253a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
53263a99fc18Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
53273fe82118Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
53283a99fc18Smrg		if eval test \${$cacheid+y}
53293a99fc18Smrgthen :
53303a99fc18Smrg  printf %s "(cached) " >&6
53311e42c052Smrgelse case e in #(
53321e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53333fe82118Smrg/* end confdefs.h.  */
53343fe82118Smrgint i;
53353fe82118Smrgint
53363a99fc18Smrgmain (void)
53373fe82118Smrg{
53383da7aff1Smrg
53393fe82118Smrg  ;
53403fe82118Smrg  return 0;
53413fe82118Smrg}
53423fe82118Smrg_ACEOF
53433a99fc18Smrgif ac_fn_c_try_link "$LINENO"
53443a99fc18Smrgthen :
53453fe82118Smrg  eval $cacheid=yes
53461e42c052Smrgelse case e in #(
53471e42c052Smrg  e) eval $cacheid=no ;;
53481e42c052Smrgesac
53493fe82118Smrgfi
53503a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
53511e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
53521e42c052Smrgesac
53533fe82118Smrgfi
53543da7aff1Smrg
53553da7aff1Smrg
53563fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
53573da7aff1Smrg
53583fe82118Smrg		eval supported=\$$cacheid
53593a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
53603a99fc18Smrgprintf "%s\n" "$supported" >&6; }
53613fe82118Smrg		if test "$supported" = "yes" ; then
53623fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
53633fe82118Smrg			found="yes"
53643fe82118Smrg		fi
53653fe82118Smrg	fi
53663da7aff1Smrg
53673da7aff1Smrg
5368e531b1a7Smrg
53693da7aff1Smrg
53703da7aff1Smrg
53713da7aff1Smrg
53723da7aff1Smrg
53733da7aff1Smrg
53743da7aff1Smrg
53753da7aff1Smrg
53763da7aff1Smrg
53773da7aff1Smrg
5378f9d592e5Smrg
5379f9d592e5Smrg
5380f9d592e5Smrg
53813fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5382f9d592e5Smrg
53833fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
53843fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53853a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
53863a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
53873a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
53883a99fc18Smrgthen :
53893a99fc18Smrg  printf %s "(cached) " >&6
53901e42c052Smrgelse case e in #(
53911e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53923fe82118Smrg/* end confdefs.h.  */
53933fe82118Smrgint i;
53943fe82118Smrg_ACEOF
53953a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
53963a99fc18Smrgthen :
53973fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
53981e42c052Smrgelse case e in #(
53991e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
54001e42c052Smrgesac
54013fe82118Smrgfi
54021e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
54031e42c052Smrgesac
54043fe82118Smrgfi
54053a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
54063a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
54073fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
54083fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
54093fe82118Smrgfi
54103fe82118Smrg
54113fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
54123fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54133fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54143fe82118Smrg	fi
54153fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
54163a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
54173a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
54183a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
54193a99fc18Smrgthen :
54203a99fc18Smrg  printf %s "(cached) " >&6
54211e42c052Smrgelse case e in #(
54221e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54233fe82118Smrg/* end confdefs.h.  */
54243fe82118Smrgint i;
54253fe82118Smrg_ACEOF
54263a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
54273a99fc18Smrgthen :
54283fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
54291e42c052Smrgelse case e in #(
54301e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
54311e42c052Smrgesac
54323fe82118Smrgfi
54331e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
54341e42c052Smrgesac
54353fe82118Smrgfi
54363a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
54373a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
54383fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
54393fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
54403fe82118Smrgfi
54413fe82118Smrg
54423fe82118Smrgfound="no"
54433fe82118Smrg
54443fe82118Smrg	if test $found = "no" ; then
54453e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54463fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54473fe82118Smrg		fi
54483fe82118Smrg
54493e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
54503fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
54513fe82118Smrg		fi
54523fe82118Smrg
54533fe82118Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
54543fe82118Smrg
54553a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
54563a99fc18Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
54573fe82118Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
54583a99fc18Smrg		if eval test \${$cacheid+y}
54593a99fc18Smrgthen :
54603a99fc18Smrg  printf %s "(cached) " >&6
54611e42c052Smrgelse case e in #(
54621e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54633fe82118Smrg/* end confdefs.h.  */
54643fe82118Smrgint i;
54653fe82118Smrgint
54663a99fc18Smrgmain (void)
54673fe82118Smrg{
54683fe82118Smrg
54693fe82118Smrg  ;
54703fe82118Smrg  return 0;
54713fe82118Smrg}
54723fe82118Smrg_ACEOF
54733a99fc18Smrgif ac_fn_c_try_link "$LINENO"
54743a99fc18Smrgthen :
54753fe82118Smrg  eval $cacheid=yes
54761e42c052Smrgelse case e in #(
54771e42c052Smrg  e) eval $cacheid=no ;;
54781e42c052Smrgesac
54793fe82118Smrgfi
54803a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
54811e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
54821e42c052Smrgesac
54833fe82118Smrgfi
54843fe82118Smrg
54853fe82118Smrg
54863fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
54873fe82118Smrg
54883fe82118Smrg		eval supported=\$$cacheid
54893a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
54903a99fc18Smrgprintf "%s\n" "$supported" >&6; }
54913fe82118Smrg		if test "$supported" = "yes" ; then
54923fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
54933fe82118Smrg			found="yes"
54943fe82118Smrg		fi
54953fe82118Smrg	fi
54963fe82118Smrg
54973fe82118Smrg
54983fe82118Smrg
54993fe82118Smrg
55003fe82118Smrg
55013fe82118Smrg
55023fe82118Smrg
55033fe82118Smrg
55043fe82118Smrg
55053fe82118Smrg
55063fe82118Smrg
55073fe82118Smrg
55083fe82118Smrg
55093fe82118Smrg
55103fe82118Smrg
55113fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
55123fe82118Smrg
55133fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
55143fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55153a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
55163a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
55173a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
55183a99fc18Smrgthen :
55193a99fc18Smrg  printf %s "(cached) " >&6
55201e42c052Smrgelse case e in #(
55211e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55223fe82118Smrg/* end confdefs.h.  */
55233fe82118Smrgint i;
55243fe82118Smrg_ACEOF
55253a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
55263a99fc18Smrgthen :
55273fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
55281e42c052Smrgelse case e in #(
55291e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
55301e42c052Smrgesac
55313fe82118Smrgfi
55321e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
55331e42c052Smrgesac
55343fe82118Smrgfi
55353a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
55363a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
55373fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
55383fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
55393fe82118Smrgfi
55403fe82118Smrg
55413fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
55423fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55433fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55443fe82118Smrg	fi
55453fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55463a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
55473a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
55483a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
55493a99fc18Smrgthen :
55503a99fc18Smrg  printf %s "(cached) " >&6
55511e42c052Smrgelse case e in #(
55521e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55533fe82118Smrg/* end confdefs.h.  */
55543fe82118Smrgint i;
55553fe82118Smrg_ACEOF
55563a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
55573a99fc18Smrgthen :
55583fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
55591e42c052Smrgelse case e in #(
55601e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
55611e42c052Smrgesac
55623fe82118Smrgfi
55631e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
55641e42c052Smrgesac
55653fe82118Smrgfi
55663a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
55673a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
55683fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
55693fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
55703fe82118Smrgfi
55713fe82118Smrg
55723fe82118Smrgfound="no"
55733fe82118Smrg
55743fe82118Smrg	if test $found = "no" ; then
55753e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55763fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55773fe82118Smrg		fi
55783fe82118Smrg
55793e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
55803fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55813fe82118Smrg		fi
55823fe82118Smrg
55833fe82118Smrg		CFLAGS="$CFLAGS -Wformat=2"
55843fe82118Smrg
55853a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
55863a99fc18Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
55873e999d35Smrg		cacheid=xorg_cv_cc_flag__Wformat_2
55883a99fc18Smrg		if eval test \${$cacheid+y}
55893a99fc18Smrgthen :
55903a99fc18Smrg  printf %s "(cached) " >&6
55911e42c052Smrgelse case e in #(
55921e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55933fe82118Smrg/* end confdefs.h.  */
55943fe82118Smrgint i;
55953fe82118Smrgint
55963a99fc18Smrgmain (void)
55973fe82118Smrg{
55983fe82118Smrg
55993fe82118Smrg  ;
56003fe82118Smrg  return 0;
56013fe82118Smrg}
56023fe82118Smrg_ACEOF
56033a99fc18Smrgif ac_fn_c_try_link "$LINENO"
56043a99fc18Smrgthen :
56053fe82118Smrg  eval $cacheid=yes
56061e42c052Smrgelse case e in #(
56071e42c052Smrg  e) eval $cacheid=no ;;
56081e42c052Smrgesac
56093fe82118Smrgfi
56103a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
56111e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
56121e42c052Smrgesac
56133fe82118Smrgfi
56143fe82118Smrg
56153fe82118Smrg
56163fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
56173fe82118Smrg
56183fe82118Smrg		eval supported=\$$cacheid
56193a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
56203a99fc18Smrgprintf "%s\n" "$supported" >&6; }
56213fe82118Smrg		if test "$supported" = "yes" ; then
56223fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
56233fe82118Smrg			found="yes"
56243fe82118Smrg		fi
56253fe82118Smrg	fi
56263fe82118Smrg
56273fe82118Smrg	if test $found = "no" ; then
56283e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
56293fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56303fe82118Smrg		fi
56313fe82118Smrg
56323e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
56333fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
56343fe82118Smrg		fi
56353fe82118Smrg
56363fe82118Smrg		CFLAGS="$CFLAGS -Wformat"
56373fe82118Smrg
56383a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
56393a99fc18Smrgprintf %s "checking if $CC supports -Wformat... " >&6; }
56403fe82118Smrg		cacheid=xorg_cv_cc_flag__Wformat
56413a99fc18Smrg		if eval test \${$cacheid+y}
56423a99fc18Smrgthen :
56433a99fc18Smrg  printf %s "(cached) " >&6
56441e42c052Smrgelse case e in #(
56451e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56463fe82118Smrg/* end confdefs.h.  */
56473fe82118Smrgint i;
56483fe82118Smrgint
56493a99fc18Smrgmain (void)
56503fe82118Smrg{
56513fe82118Smrg
56523fe82118Smrg  ;
56533fe82118Smrg  return 0;
56543fe82118Smrg}
56553fe82118Smrg_ACEOF
56563a99fc18Smrgif ac_fn_c_try_link "$LINENO"
56573a99fc18Smrgthen :
56583fe82118Smrg  eval $cacheid=yes
56591e42c052Smrgelse case e in #(
56601e42c052Smrg  e) eval $cacheid=no ;;
56611e42c052Smrgesac
56623fe82118Smrgfi
56633a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
56641e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
56651e42c052Smrgesac
56663fe82118Smrgfi
56673fe82118Smrg
56683fe82118Smrg
56693fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
56703fe82118Smrg
56713fe82118Smrg		eval supported=\$$cacheid
56723a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
56733a99fc18Smrgprintf "%s\n" "$supported" >&6; }
56743fe82118Smrg		if test "$supported" = "yes" ; then
56753fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
56763fe82118Smrg			found="yes"
56773fe82118Smrg		fi
56783fe82118Smrg	fi
56793fe82118Smrg
56803fe82118Smrg
56813fe82118Smrg
56823fe82118Smrg
56833fe82118Smrg
56843fe82118Smrg
56853fe82118Smrg
56863fe82118Smrg
56873fe82118Smrg
56883fe82118Smrg
56893fe82118Smrg
56903fe82118Smrg
56913fe82118Smrg
56923fe82118Smrg
56933fe82118Smrg
56943fe82118Smrg
56953fe82118Smrg
56963fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
56973fe82118Smrg
56983fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
56993fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57003a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
57013a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
57023a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
57033a99fc18Smrgthen :
57043a99fc18Smrg  printf %s "(cached) " >&6
57051e42c052Smrgelse case e in #(
57061e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57073fe82118Smrg/* end confdefs.h.  */
57083fe82118Smrgint i;
57093fe82118Smrg_ACEOF
57103a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
57113a99fc18Smrgthen :
57123fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
57131e42c052Smrgelse case e in #(
57141e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
57151e42c052Smrgesac
57163fe82118Smrgfi
57171e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
57181e42c052Smrgesac
57193fe82118Smrgfi
57203a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
57213a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
57223fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
57233fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
57243fe82118Smrgfi
57253fe82118Smrg
57263fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
57273fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57283fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57293fe82118Smrg	fi
57303fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57313a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
57323a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
57333a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
57343a99fc18Smrgthen :
57353a99fc18Smrg  printf %s "(cached) " >&6
57361e42c052Smrgelse case e in #(
57371e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57383fe82118Smrg/* end confdefs.h.  */
57393fe82118Smrgint i;
57403fe82118Smrg_ACEOF
57413a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
57423a99fc18Smrgthen :
57433fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
57441e42c052Smrgelse case e in #(
57451e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
57461e42c052Smrgesac
57473fe82118Smrgfi
57481e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
57491e42c052Smrgesac
57503fe82118Smrgfi
57513a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
57523a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
57533fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
57543fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
57553fe82118Smrgfi
57563fe82118Smrg
57573fe82118Smrgfound="no"
57583fe82118Smrg
57593fe82118Smrg	if test $found = "no" ; then
57603e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57613fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57623fe82118Smrg		fi
57633fe82118Smrg
57643e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
57653fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57663fe82118Smrg		fi
57673fe82118Smrg
57683fe82118Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
57693fe82118Smrg
57703a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
57713a99fc18Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
57723fe82118Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
57733a99fc18Smrg		if eval test \${$cacheid+y}
57743a99fc18Smrgthen :
57753a99fc18Smrg  printf %s "(cached) " >&6
57761e42c052Smrgelse case e in #(
57771e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57783fe82118Smrg/* end confdefs.h.  */
57793fe82118Smrgint i;
57803fe82118Smrgint
57813a99fc18Smrgmain (void)
57823fe82118Smrg{
57833fe82118Smrg
57843fe82118Smrg  ;
57853fe82118Smrg  return 0;
57863fe82118Smrg}
57873fe82118Smrg_ACEOF
57883a99fc18Smrgif ac_fn_c_try_link "$LINENO"
57893a99fc18Smrgthen :
57903fe82118Smrg  eval $cacheid=yes
57911e42c052Smrgelse case e in #(
57921e42c052Smrg  e) eval $cacheid=no ;;
57931e42c052Smrgesac
57943fe82118Smrgfi
57953a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
57961e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
57971e42c052Smrgesac
57983fe82118Smrgfi
57993fe82118Smrg
58003fe82118Smrg
58013fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
58023fe82118Smrg
58033fe82118Smrg		eval supported=\$$cacheid
58043a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
58053a99fc18Smrgprintf "%s\n" "$supported" >&6; }
58063fe82118Smrg		if test "$supported" = "yes" ; then
58073fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
58083fe82118Smrg			found="yes"
58093fe82118Smrg		fi
58103fe82118Smrg	fi
58113fe82118Smrg
58123fe82118Smrg
58133fe82118Smrg
58143fe82118Smrg
58153fe82118Smrg
58163fe82118Smrg
58173fe82118Smrg
58183fe82118Smrg
58193fe82118Smrg
58203fe82118Smrg
58213fe82118Smrg
58223fe82118Smrg
58233fe82118Smrg
58243fe82118Smrg
58253fe82118Smrg
58263fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
58273fe82118Smrg
58283fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
58293fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58303a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
58313a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
58323a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
58333a99fc18Smrgthen :
58343a99fc18Smrg  printf %s "(cached) " >&6
58351e42c052Smrgelse case e in #(
58361e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58373fe82118Smrg/* end confdefs.h.  */
58383fe82118Smrgint i;
58393fe82118Smrg_ACEOF
58403a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
58413a99fc18Smrgthen :
58423fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
58431e42c052Smrgelse case e in #(
58441e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
58451e42c052Smrgesac
58463fe82118Smrgfi
58471e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
58481e42c052Smrgesac
58493fe82118Smrgfi
58503a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
58513a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
58523fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
58533fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
58543fe82118Smrgfi
58553fe82118Smrg
58563fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
58573fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
58583fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58593fe82118Smrg	fi
58603fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
58613a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
58623a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
58633a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
58643a99fc18Smrgthen :
58653a99fc18Smrg  printf %s "(cached) " >&6
58661e42c052Smrgelse case e in #(
58671e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58683fe82118Smrg/* end confdefs.h.  */
58693fe82118Smrgint i;
58703fe82118Smrg_ACEOF
58713a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
58723a99fc18Smrgthen :
58733fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
58741e42c052Smrgelse case e in #(
58751e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
58761e42c052Smrgesac
58773fe82118Smrgfi
58781e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
58791e42c052Smrgesac
58803fe82118Smrgfi
58813a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
58823a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
58833fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
58843fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
58853fe82118Smrgfi
58863fe82118Smrg
58873fe82118Smrgfound="no"
58883fe82118Smrg
58893fe82118Smrg	if test $found = "no" ; then
58903e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
58913fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58923fe82118Smrg		fi
58933fe82118Smrg
58943e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
58953fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
58963fe82118Smrg		fi
58973fe82118Smrg
58983fe82118Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
58993fe82118Smrg
59003a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
59013a99fc18Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
59023fe82118Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
59033a99fc18Smrg		if eval test \${$cacheid+y}
59043a99fc18Smrgthen :
59053a99fc18Smrg  printf %s "(cached) " >&6
59061e42c052Smrgelse case e in #(
59071e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59083fe82118Smrg/* end confdefs.h.  */
59093fe82118Smrgint i;
59103fe82118Smrgint
59113a99fc18Smrgmain (void)
59123fe82118Smrg{
59133fe82118Smrg
59143fe82118Smrg  ;
59153fe82118Smrg  return 0;
59163fe82118Smrg}
59173fe82118Smrg_ACEOF
59183a99fc18Smrgif ac_fn_c_try_link "$LINENO"
59193a99fc18Smrgthen :
59203fe82118Smrg  eval $cacheid=yes
59211e42c052Smrgelse case e in #(
59221e42c052Smrg  e) eval $cacheid=no ;;
59231e42c052Smrgesac
59243fe82118Smrgfi
59253a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
59261e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
59271e42c052Smrgesac
59283fe82118Smrgfi
59293fe82118Smrg
59303fe82118Smrg
59313fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
59323fe82118Smrg
59333fe82118Smrg		eval supported=\$$cacheid
59343a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
59353a99fc18Smrgprintf "%s\n" "$supported" >&6; }
59363fe82118Smrg		if test "$supported" = "yes" ; then
59373fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
59383fe82118Smrg			found="yes"
59393fe82118Smrg		fi
59403fe82118Smrg	fi
59413fe82118Smrg
59423fe82118Smrg
59433fe82118Smrg
59443fe82118Smrg
59453fe82118Smrg
59463fe82118Smrg
59473fe82118Smrg
59483fe82118Smrg
59493fe82118Smrg
59503fe82118Smrg
59513fe82118Smrg
59523fe82118Smrg
59533fe82118Smrg
59543fe82118Smrg
59553fe82118Smrg
59563fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
59573fe82118Smrg
59583fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
59593fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59603a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
59613a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
59623a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
59633a99fc18Smrgthen :
59643a99fc18Smrg  printf %s "(cached) " >&6
59651e42c052Smrgelse case e in #(
59661e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59673fe82118Smrg/* end confdefs.h.  */
59683fe82118Smrgint i;
59693fe82118Smrg_ACEOF
59703a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
59713a99fc18Smrgthen :
59723fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
59731e42c052Smrgelse case e in #(
59741e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
59751e42c052Smrgesac
59763fe82118Smrgfi
59771e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
59781e42c052Smrgesac
59793fe82118Smrgfi
59803a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
59813a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
59823fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
59833fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
59843fe82118Smrgfi
59853fe82118Smrg
59863fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
59873fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
59883fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59893fe82118Smrg	fi
59903fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59913a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
59923a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
59933a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
59943a99fc18Smrgthen :
59953a99fc18Smrg  printf %s "(cached) " >&6
59961e42c052Smrgelse case e in #(
59971e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59983fe82118Smrg/* end confdefs.h.  */
59993fe82118Smrgint i;
60003fe82118Smrg_ACEOF
60013a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
60023a99fc18Smrgthen :
60033fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
60041e42c052Smrgelse case e in #(
60051e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
60061e42c052Smrgesac
60073fe82118Smrgfi
60081e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
60091e42c052Smrgesac
60103fe82118Smrgfi
60113a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
60123a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
60133fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
60143fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
60153fe82118Smrgfi
60163fe82118Smrg
60173fe82118Smrgfound="no"
60183fe82118Smrg
60193fe82118Smrg	if test $found = "no" ; then
60203e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60213fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60223fe82118Smrg		fi
60233fe82118Smrg
60243e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
60253fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60263fe82118Smrg		fi
60273fe82118Smrg
60283fe82118Smrg		CFLAGS="$CFLAGS -Wnested-externs"
60293fe82118Smrg
60303a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
60313a99fc18Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
60323fe82118Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
60333a99fc18Smrg		if eval test \${$cacheid+y}
60343a99fc18Smrgthen :
60353a99fc18Smrg  printf %s "(cached) " >&6
60361e42c052Smrgelse case e in #(
60371e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60383fe82118Smrg/* end confdefs.h.  */
60393fe82118Smrgint i;
60403fe82118Smrgint
60413a99fc18Smrgmain (void)
60423fe82118Smrg{
60433fe82118Smrg
60443fe82118Smrg  ;
60453fe82118Smrg  return 0;
60463fe82118Smrg}
60473fe82118Smrg_ACEOF
60483a99fc18Smrgif ac_fn_c_try_link "$LINENO"
60493a99fc18Smrgthen :
60503fe82118Smrg  eval $cacheid=yes
60511e42c052Smrgelse case e in #(
60521e42c052Smrg  e) eval $cacheid=no ;;
60531e42c052Smrgesac
60543fe82118Smrgfi
60553a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
60561e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
60571e42c052Smrgesac
60583fe82118Smrgfi
60593fe82118Smrg
60603fe82118Smrg
60613fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
60623fe82118Smrg
60633fe82118Smrg		eval supported=\$$cacheid
60643a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
60653a99fc18Smrgprintf "%s\n" "$supported" >&6; }
60663fe82118Smrg		if test "$supported" = "yes" ; then
60673fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
60683fe82118Smrg			found="yes"
60693fe82118Smrg		fi
60703fe82118Smrg	fi
60713fe82118Smrg
60723fe82118Smrg
60733fe82118Smrg
60743fe82118Smrg
60753fe82118Smrg
60763fe82118Smrg
60773fe82118Smrg
60783fe82118Smrg
60793fe82118Smrg
60803fe82118Smrg
60813fe82118Smrg
60823fe82118Smrg
60833fe82118Smrg
60843fe82118Smrg
60853fe82118Smrg
60863fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
60873fe82118Smrg
60883fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
60893fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60903a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
60913a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
60923a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
60933a99fc18Smrgthen :
60943a99fc18Smrg  printf %s "(cached) " >&6
60951e42c052Smrgelse case e in #(
60961e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60973fe82118Smrg/* end confdefs.h.  */
60983fe82118Smrgint i;
60993fe82118Smrg_ACEOF
61003a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
61013a99fc18Smrgthen :
61023fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
61031e42c052Smrgelse case e in #(
61041e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
61051e42c052Smrgesac
61063fe82118Smrgfi
61071e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
61081e42c052Smrgesac
61093fe82118Smrgfi
61103a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
61113a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
61123fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
61133fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
61143fe82118Smrgfi
61153fe82118Smrg
61163fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
61173fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
61183fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61193fe82118Smrg	fi
61203fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
61213a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
61223a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
61233a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
61243a99fc18Smrgthen :
61253a99fc18Smrg  printf %s "(cached) " >&6
61261e42c052Smrgelse case e in #(
61271e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61283fe82118Smrg/* end confdefs.h.  */
61293fe82118Smrgint i;
61303fe82118Smrg_ACEOF
61313a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
61323a99fc18Smrgthen :
61333fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
61341e42c052Smrgelse case e in #(
61351e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
61361e42c052Smrgesac
61373fe82118Smrgfi
61381e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
61391e42c052Smrgesac
61403fe82118Smrgfi
61413a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
61423a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
61433fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
61443fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
61453fe82118Smrgfi
61463fe82118Smrg
61473fe82118Smrgfound="no"
61483fe82118Smrg
61493fe82118Smrg	if test $found = "no" ; then
61503e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
61513fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61523fe82118Smrg		fi
61533fe82118Smrg
61543e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
61553fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
61563fe82118Smrg		fi
61573fe82118Smrg
61583fe82118Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
61593fe82118Smrg
61603a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
61613a99fc18Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
61623fe82118Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
61633a99fc18Smrg		if eval test \${$cacheid+y}
61643a99fc18Smrgthen :
61653a99fc18Smrg  printf %s "(cached) " >&6
61661e42c052Smrgelse case e in #(
61671e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61683fe82118Smrg/* end confdefs.h.  */
61693fe82118Smrgint i;
61703fe82118Smrgint
61713a99fc18Smrgmain (void)
61723fe82118Smrg{
61733fe82118Smrg
61743fe82118Smrg  ;
61753fe82118Smrg  return 0;
61763fe82118Smrg}
61773fe82118Smrg_ACEOF
61783a99fc18Smrgif ac_fn_c_try_link "$LINENO"
61793a99fc18Smrgthen :
61803fe82118Smrg  eval $cacheid=yes
61811e42c052Smrgelse case e in #(
61821e42c052Smrg  e) eval $cacheid=no ;;
61831e42c052Smrgesac
61843fe82118Smrgfi
61853a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
61861e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
61871e42c052Smrgesac
61883fe82118Smrgfi
61893fe82118Smrg
61903fe82118Smrg
61913fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
61923fe82118Smrg
61933fe82118Smrg		eval supported=\$$cacheid
61943a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
61953a99fc18Smrgprintf "%s\n" "$supported" >&6; }
61963fe82118Smrg		if test "$supported" = "yes" ; then
61973fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
61983fe82118Smrg			found="yes"
61993fe82118Smrg		fi
62003fe82118Smrg	fi
62013fe82118Smrg
62023fe82118Smrg
62033fe82118Smrg
62043fe82118Smrg
62053fe82118Smrg
62063fe82118Smrg
62073fe82118Smrg
62083fe82118Smrg
62093fe82118Smrg
62103fe82118Smrg
62113fe82118Smrg
62123fe82118Smrg
62133fe82118Smrg
62143fe82118Smrg
62153fe82118Smrg
62163fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
62173fe82118Smrg
62183fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
62193fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62203a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
62213a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
62223a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
62233a99fc18Smrgthen :
62243a99fc18Smrg  printf %s "(cached) " >&6
62251e42c052Smrgelse case e in #(
62261e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62273fe82118Smrg/* end confdefs.h.  */
62283fe82118Smrgint i;
62293fe82118Smrg_ACEOF
62303a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
62313a99fc18Smrgthen :
62323fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
62331e42c052Smrgelse case e in #(
62341e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
62351e42c052Smrgesac
62363fe82118Smrgfi
62371e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
62381e42c052Smrgesac
62393fe82118Smrgfi
62403a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
62413a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
62423fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
62433fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
62443fe82118Smrgfi
62453fe82118Smrg
62463fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
62473fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62483fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62493fe82118Smrg	fi
62503fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62513a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
62523a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
62533a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
62543a99fc18Smrgthen :
62553a99fc18Smrg  printf %s "(cached) " >&6
62561e42c052Smrgelse case e in #(
62571e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62583fe82118Smrg/* end confdefs.h.  */
62593fe82118Smrgint i;
62603fe82118Smrg_ACEOF
62613a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
62623a99fc18Smrgthen :
62633fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
62641e42c052Smrgelse case e in #(
62651e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
62661e42c052Smrgesac
62673fe82118Smrgfi
62681e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
62691e42c052Smrgesac
62703fe82118Smrgfi
62713a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
62723a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
62733fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
62743fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
62753fe82118Smrgfi
62763fe82118Smrg
62773fe82118Smrgfound="no"
62783fe82118Smrg
62793fe82118Smrg	if test $found = "no" ; then
62803e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62813fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62823fe82118Smrg		fi
62833fe82118Smrg
62843e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
62853fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62863fe82118Smrg		fi
62873fe82118Smrg
62883fe82118Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
62893fe82118Smrg
62903a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
62913a99fc18Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
62923fe82118Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
62933a99fc18Smrg		if eval test \${$cacheid+y}
62943a99fc18Smrgthen :
62953a99fc18Smrg  printf %s "(cached) " >&6
62961e42c052Smrgelse case e in #(
62971e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62983fe82118Smrg/* end confdefs.h.  */
62993fe82118Smrgint i;
63003fe82118Smrgint
63013a99fc18Smrgmain (void)
63023fe82118Smrg{
63033fe82118Smrg
63043fe82118Smrg  ;
63053fe82118Smrg  return 0;
63063fe82118Smrg}
63073fe82118Smrg_ACEOF
63083a99fc18Smrgif ac_fn_c_try_link "$LINENO"
63093a99fc18Smrgthen :
63103fe82118Smrg  eval $cacheid=yes
63111e42c052Smrgelse case e in #(
63121e42c052Smrg  e) eval $cacheid=no ;;
63131e42c052Smrgesac
63143fe82118Smrgfi
63153a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
63161e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
63171e42c052Smrgesac
63183fe82118Smrgfi
63193fe82118Smrg
63203fe82118Smrg
63213fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
63223fe82118Smrg
63233fe82118Smrg		eval supported=\$$cacheid
63243a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
63253a99fc18Smrgprintf "%s\n" "$supported" >&6; }
63263fe82118Smrg		if test "$supported" = "yes" ; then
63273fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
63283fe82118Smrg			found="yes"
63293fe82118Smrg		fi
63303fe82118Smrg	fi
63313fe82118Smrg
63323e999d35Smrg	if test $found = "no" ; then
63333e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
63343e999d35Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63353e999d35Smrg		fi
63363e999d35Smrg
63373e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
63383e999d35Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
63393e999d35Smrg		fi
63403e999d35Smrg
63413e999d35Smrg		CFLAGS="$CFLAGS -fd"
63423e999d35Smrg
63433a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
63443a99fc18Smrgprintf %s "checking if $CC supports -fd... " >&6; }
63453e999d35Smrg		cacheid=xorg_cv_cc_flag__fd
63463a99fc18Smrg		if eval test \${$cacheid+y}
63473a99fc18Smrgthen :
63483a99fc18Smrg  printf %s "(cached) " >&6
63491e42c052Smrgelse case e in #(
63501e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63513e999d35Smrg/* end confdefs.h.  */
63523e999d35Smrgint i;
63533e999d35Smrgint
63543a99fc18Smrgmain (void)
63553e999d35Smrg{
63563e999d35Smrg
63573e999d35Smrg  ;
63583e999d35Smrg  return 0;
63593e999d35Smrg}
63603e999d35Smrg_ACEOF
63613a99fc18Smrgif ac_fn_c_try_link "$LINENO"
63623a99fc18Smrgthen :
63633e999d35Smrg  eval $cacheid=yes
63641e42c052Smrgelse case e in #(
63651e42c052Smrg  e) eval $cacheid=no ;;
63661e42c052Smrgesac
63673e999d35Smrgfi
63683a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
63691e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
63701e42c052Smrgesac
63713e999d35Smrgfi
63723e999d35Smrg
63733e999d35Smrg
63743e999d35Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
63753e999d35Smrg
63763e999d35Smrg		eval supported=\$$cacheid
63773a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
63783a99fc18Smrgprintf "%s\n" "$supported" >&6; }
63793e999d35Smrg		if test "$supported" = "yes" ; then
63803e999d35Smrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
63813e999d35Smrg			found="yes"
63823e999d35Smrg		fi
63833e999d35Smrg	fi
63843e999d35Smrg
63853fe82118Smrg
63863fe82118Smrg
63873fe82118Smrg
63883fe82118Smrg
63893fe82118Smrg# This chunk adds additional warnings that could catch undesired effects.
63903fe82118Smrg
63913fe82118Smrg
63923fe82118Smrg
63933fe82118Smrg
63943fe82118Smrg
63953fe82118Smrg
63963fe82118Smrg
63973fe82118Smrg
63983fe82118Smrg
63993fe82118Smrg
64003fe82118Smrg
64013fe82118Smrg
64023fe82118Smrg
64033fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
64043fe82118Smrg
64053fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
64063fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64073a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
64083a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
64093a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
64103a99fc18Smrgthen :
64113a99fc18Smrg  printf %s "(cached) " >&6
64121e42c052Smrgelse case e in #(
64131e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64143fe82118Smrg/* end confdefs.h.  */
64153fe82118Smrgint i;
64163fe82118Smrg_ACEOF
64173a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
64183a99fc18Smrgthen :
64193fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
64201e42c052Smrgelse case e in #(
64211e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
64221e42c052Smrgesac
64233fe82118Smrgfi
64241e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
64251e42c052Smrgesac
64263fe82118Smrgfi
64273a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
64283a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
64293fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
64303fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
64313fe82118Smrgfi
64323fe82118Smrg
64333fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
64343fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
64353fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64363fe82118Smrg	fi
64373fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
64383a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
64393a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
64403a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
64413a99fc18Smrgthen :
64423a99fc18Smrg  printf %s "(cached) " >&6
64431e42c052Smrgelse case e in #(
64441e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64453fe82118Smrg/* end confdefs.h.  */
64463fe82118Smrgint i;
64473fe82118Smrg_ACEOF
64483a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
64493a99fc18Smrgthen :
64503fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
64511e42c052Smrgelse case e in #(
64521e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
64531e42c052Smrgesac
64543fe82118Smrgfi
64551e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
64561e42c052Smrgesac
64573fe82118Smrgfi
64583a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
64593a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
64603fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
64613fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
64623fe82118Smrgfi
64633fe82118Smrg
64643fe82118Smrgfound="no"
64653fe82118Smrg
64663fe82118Smrg	if test $found = "no" ; then
64673e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
64683fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64693fe82118Smrg		fi
64703fe82118Smrg
64713e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
64723fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
64733fe82118Smrg		fi
64743fe82118Smrg
64753fe82118Smrg		CFLAGS="$CFLAGS -Wunused"
64763fe82118Smrg
64773a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
64783a99fc18Smrgprintf %s "checking if $CC supports -Wunused... " >&6; }
64793fe82118Smrg		cacheid=xorg_cv_cc_flag__Wunused
64803a99fc18Smrg		if eval test \${$cacheid+y}
64813a99fc18Smrgthen :
64823a99fc18Smrg  printf %s "(cached) " >&6
64831e42c052Smrgelse case e in #(
64841e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64853fe82118Smrg/* end confdefs.h.  */
64863fe82118Smrgint i;
64873fe82118Smrgint
64883a99fc18Smrgmain (void)
64893fe82118Smrg{
64903fe82118Smrg
64913fe82118Smrg  ;
64923fe82118Smrg  return 0;
64933fe82118Smrg}
64943fe82118Smrg_ACEOF
64953a99fc18Smrgif ac_fn_c_try_link "$LINENO"
64963a99fc18Smrgthen :
64973fe82118Smrg  eval $cacheid=yes
64981e42c052Smrgelse case e in #(
64991e42c052Smrg  e) eval $cacheid=no ;;
65001e42c052Smrgesac
65013fe82118Smrgfi
65023a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
65031e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
65041e42c052Smrgesac
65053fe82118Smrgfi
65063fe82118Smrg
65073fe82118Smrg
65083fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
65093fe82118Smrg
65103fe82118Smrg		eval supported=\$$cacheid
65113a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
65123a99fc18Smrgprintf "%s\n" "$supported" >&6; }
65133fe82118Smrg		if test "$supported" = "yes" ; then
65143fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
65153fe82118Smrg			found="yes"
65163fe82118Smrg		fi
65173fe82118Smrg	fi
65183fe82118Smrg
65193fe82118Smrg
65203fe82118Smrg
65213fe82118Smrg
65223fe82118Smrg
65233fe82118Smrg
65243fe82118Smrg
65253fe82118Smrg
65263fe82118Smrg
65273fe82118Smrg
65283fe82118Smrg
65293fe82118Smrg
65303fe82118Smrg
65313fe82118Smrg
65323fe82118Smrg
65333fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
65343fe82118Smrg
65353fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
65363fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65373a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
65383a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
65393a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
65403a99fc18Smrgthen :
65413a99fc18Smrg  printf %s "(cached) " >&6
65421e42c052Smrgelse case e in #(
65431e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65443fe82118Smrg/* end confdefs.h.  */
65453fe82118Smrgint i;
65463fe82118Smrg_ACEOF
65473a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
65483a99fc18Smrgthen :
65493fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
65501e42c052Smrgelse case e in #(
65511e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
65521e42c052Smrgesac
65533fe82118Smrgfi
65541e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
65551e42c052Smrgesac
65563fe82118Smrgfi
65573a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
65583a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
65593fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
65603fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
65613fe82118Smrgfi
65623fe82118Smrg
65633fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
65643fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65653fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65663fe82118Smrg	fi
65673fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65683a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
65693a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
65703a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
65713a99fc18Smrgthen :
65723a99fc18Smrg  printf %s "(cached) " >&6
65731e42c052Smrgelse case e in #(
65741e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65753fe82118Smrg/* end confdefs.h.  */
65763fe82118Smrgint i;
65773fe82118Smrg_ACEOF
65783a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
65793a99fc18Smrgthen :
65803fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
65811e42c052Smrgelse case e in #(
65821e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
65831e42c052Smrgesac
65843fe82118Smrgfi
65851e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
65861e42c052Smrgesac
65873fe82118Smrgfi
65883a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
65893a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
65903fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
65913fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
65923fe82118Smrgfi
65933fe82118Smrg
65943fe82118Smrgfound="no"
65953fe82118Smrg
65963fe82118Smrg	if test $found = "no" ; then
65973e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65983fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65993fe82118Smrg		fi
66003fe82118Smrg
66013e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
66023fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66033fe82118Smrg		fi
66043fe82118Smrg
66053fe82118Smrg		CFLAGS="$CFLAGS -Wuninitialized"
66063fe82118Smrg
66073a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
66083a99fc18Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
66093fe82118Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
66103a99fc18Smrg		if eval test \${$cacheid+y}
66113a99fc18Smrgthen :
66123a99fc18Smrg  printf %s "(cached) " >&6
66131e42c052Smrgelse case e in #(
66141e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66153fe82118Smrg/* end confdefs.h.  */
66163fe82118Smrgint i;
66173fe82118Smrgint
66183a99fc18Smrgmain (void)
66193fe82118Smrg{
66203fe82118Smrg
66213fe82118Smrg  ;
66223fe82118Smrg  return 0;
66233fe82118Smrg}
66243fe82118Smrg_ACEOF
66253a99fc18Smrgif ac_fn_c_try_link "$LINENO"
66263a99fc18Smrgthen :
66273fe82118Smrg  eval $cacheid=yes
66281e42c052Smrgelse case e in #(
66291e42c052Smrg  e) eval $cacheid=no ;;
66301e42c052Smrgesac
66313fe82118Smrgfi
66323a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
66331e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
66341e42c052Smrgesac
66353fe82118Smrgfi
66363fe82118Smrg
66373fe82118Smrg
66383fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
66393fe82118Smrg
66403fe82118Smrg		eval supported=\$$cacheid
66413a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
66423a99fc18Smrgprintf "%s\n" "$supported" >&6; }
66433fe82118Smrg		if test "$supported" = "yes" ; then
66443fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
66453fe82118Smrg			found="yes"
66463fe82118Smrg		fi
66473fe82118Smrg	fi
66483fe82118Smrg
66493fe82118Smrg
66503fe82118Smrg
66513fe82118Smrg
66523fe82118Smrg
66533fe82118Smrg
66543fe82118Smrg
66553fe82118Smrg
66563fe82118Smrg
66573fe82118Smrg
66583fe82118Smrg
66593fe82118Smrg
66603fe82118Smrg
66613fe82118Smrg
66623fe82118Smrg
66633fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
66643fe82118Smrg
66653fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
66663fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66673a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
66683a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
66693a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
66703a99fc18Smrgthen :
66713a99fc18Smrg  printf %s "(cached) " >&6
66721e42c052Smrgelse case e in #(
66731e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66743fe82118Smrg/* end confdefs.h.  */
66753fe82118Smrgint i;
66763fe82118Smrg_ACEOF
66773a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
66783a99fc18Smrgthen :
66793fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
66801e42c052Smrgelse case e in #(
66811e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
66821e42c052Smrgesac
66833fe82118Smrgfi
66841e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
66851e42c052Smrgesac
66863fe82118Smrgfi
66873a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
66883a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
66893fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
66903fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
66913fe82118Smrgfi
66923fe82118Smrg
66933fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
66943fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66953fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66963fe82118Smrg	fi
66973fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66983a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
66993a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
67003a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
67013a99fc18Smrgthen :
67023a99fc18Smrg  printf %s "(cached) " >&6
67031e42c052Smrgelse case e in #(
67041e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67053fe82118Smrg/* end confdefs.h.  */
67063fe82118Smrgint i;
67073fe82118Smrg_ACEOF
67083a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
67093a99fc18Smrgthen :
67103fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
67111e42c052Smrgelse case e in #(
67121e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
67131e42c052Smrgesac
67143fe82118Smrgfi
67151e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
67161e42c052Smrgesac
67173fe82118Smrgfi
67183a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
67193a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
67203fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
67213fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
67223fe82118Smrgfi
67233fe82118Smrg
67243fe82118Smrgfound="no"
67253fe82118Smrg
67263fe82118Smrg	if test $found = "no" ; then
67273e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67283fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67293fe82118Smrg		fi
67303fe82118Smrg
67313e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
67323fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
67333fe82118Smrg		fi
67343fe82118Smrg
67353fe82118Smrg		CFLAGS="$CFLAGS -Wshadow"
67363fe82118Smrg
67373a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
67383a99fc18Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
67393fe82118Smrg		cacheid=xorg_cv_cc_flag__Wshadow
67403a99fc18Smrg		if eval test \${$cacheid+y}
67413a99fc18Smrgthen :
67423a99fc18Smrg  printf %s "(cached) " >&6
67431e42c052Smrgelse case e in #(
67441e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67453fe82118Smrg/* end confdefs.h.  */
67463fe82118Smrgint i;
67473fe82118Smrgint
67483a99fc18Smrgmain (void)
67493fe82118Smrg{
67503fe82118Smrg
67513fe82118Smrg  ;
67523fe82118Smrg  return 0;
67533fe82118Smrg}
67543fe82118Smrg_ACEOF
67553a99fc18Smrgif ac_fn_c_try_link "$LINENO"
67563a99fc18Smrgthen :
67573fe82118Smrg  eval $cacheid=yes
67581e42c052Smrgelse case e in #(
67591e42c052Smrg  e) eval $cacheid=no ;;
67601e42c052Smrgesac
67613fe82118Smrgfi
67623a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
67631e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
67641e42c052Smrgesac
67653fe82118Smrgfi
67663fe82118Smrg
67673fe82118Smrg
67683fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
67693fe82118Smrg
67703fe82118Smrg		eval supported=\$$cacheid
67713a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
67723a99fc18Smrgprintf "%s\n" "$supported" >&6; }
67733fe82118Smrg		if test "$supported" = "yes" ; then
67743fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
67753fe82118Smrg			found="yes"
67763fe82118Smrg		fi
67773fe82118Smrg	fi
67783fe82118Smrg
67793fe82118Smrg
67803fe82118Smrg
67813fe82118Smrg
67823fe82118Smrg
67833fe82118Smrg
67843fe82118Smrg
67853fe82118Smrg
67863fe82118Smrg
67873fe82118Smrg
67883fe82118Smrg
67893fe82118Smrg
67903fe82118Smrg
67913fe82118Smrg
67923fe82118Smrg
67933fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
67943fe82118Smrg
67953fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
67963fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67973a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
67983a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
67993a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
68003a99fc18Smrgthen :
68013a99fc18Smrg  printf %s "(cached) " >&6
68021e42c052Smrgelse case e in #(
68031e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68043fe82118Smrg/* end confdefs.h.  */
68053fe82118Smrgint i;
68063fe82118Smrg_ACEOF
68073a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
68083a99fc18Smrgthen :
68093fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
68101e42c052Smrgelse case e in #(
68111e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
68121e42c052Smrgesac
68133fe82118Smrgfi
68141e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
68151e42c052Smrgesac
68163fe82118Smrgfi
68173a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
68183a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
68193fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
68203fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
68213fe82118Smrgfi
68223fe82118Smrg
68233fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
68243fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
68253fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68263fe82118Smrg	fi
68273fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
68283a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
68293a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
68303a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
68313a99fc18Smrgthen :
68323a99fc18Smrg  printf %s "(cached) " >&6
68331e42c052Smrgelse case e in #(
68341e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68353fe82118Smrg/* end confdefs.h.  */
68363fe82118Smrgint i;
68373fe82118Smrg_ACEOF
68383a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
68393a99fc18Smrgthen :
68403fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
68411e42c052Smrgelse case e in #(
68421e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
68431e42c052Smrgesac
68443fe82118Smrgfi
68451e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
68461e42c052Smrgesac
68473fe82118Smrgfi
68483a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
68493a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
68503fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
68513fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
68523fe82118Smrgfi
68533fe82118Smrg
68543fe82118Smrgfound="no"
68553fe82118Smrg
68563fe82118Smrg	if test $found = "no" ; then
68573e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
68583fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68593fe82118Smrg		fi
68603fe82118Smrg
68613e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
68623fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
68633fe82118Smrg		fi
68643fe82118Smrg
68653e999d35Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
68663fe82118Smrg
68673a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
68683a99fc18Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
68693e999d35Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
68703a99fc18Smrg		if eval test \${$cacheid+y}
68713a99fc18Smrgthen :
68723a99fc18Smrg  printf %s "(cached) " >&6
68731e42c052Smrgelse case e in #(
68741e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68753fe82118Smrg/* end confdefs.h.  */
68763fe82118Smrgint i;
68773fe82118Smrgint
68783a99fc18Smrgmain (void)
68793fe82118Smrg{
68803fe82118Smrg
68813fe82118Smrg  ;
68823fe82118Smrg  return 0;
68833fe82118Smrg}
68843fe82118Smrg_ACEOF
68853a99fc18Smrgif ac_fn_c_try_link "$LINENO"
68863a99fc18Smrgthen :
68873fe82118Smrg  eval $cacheid=yes
68881e42c052Smrgelse case e in #(
68891e42c052Smrg  e) eval $cacheid=no ;;
68901e42c052Smrgesac
68913fe82118Smrgfi
68923a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
68931e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
68941e42c052Smrgesac
68953fe82118Smrgfi
68963fe82118Smrg
68973fe82118Smrg
68983fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
68993fe82118Smrg
69003fe82118Smrg		eval supported=\$$cacheid
69013a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
69023a99fc18Smrgprintf "%s\n" "$supported" >&6; }
69033fe82118Smrg		if test "$supported" = "yes" ; then
69043e999d35Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
69053fe82118Smrg			found="yes"
69063fe82118Smrg		fi
69073fe82118Smrg	fi
69083fe82118Smrg
69093fe82118Smrg
69103fe82118Smrg
69113fe82118Smrg
69123fe82118Smrg
69133fe82118Smrg
69143fe82118Smrg
69153fe82118Smrg
69163fe82118Smrg
69173fe82118Smrg
69183fe82118Smrg
69193fe82118Smrg
69203fe82118Smrg
69213fe82118Smrg
69223fe82118Smrg
69233fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
69243fe82118Smrg
69253fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
69263fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69273a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
69283a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
69293a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
69303a99fc18Smrgthen :
69313a99fc18Smrg  printf %s "(cached) " >&6
69321e42c052Smrgelse case e in #(
69331e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69343fe82118Smrg/* end confdefs.h.  */
69353fe82118Smrgint i;
69363fe82118Smrg_ACEOF
69373a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
69383a99fc18Smrgthen :
69393fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
69401e42c052Smrgelse case e in #(
69411e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
69421e42c052Smrgesac
69433fe82118Smrgfi
69441e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
69451e42c052Smrgesac
69463fe82118Smrgfi
69473a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
69483a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
69493fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
69503fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
69513fe82118Smrgfi
69523fe82118Smrg
69533fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
69543fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69553fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69563fe82118Smrg	fi
69573fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
69583a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
69593a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
69603a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
69613a99fc18Smrgthen :
69623a99fc18Smrg  printf %s "(cached) " >&6
69631e42c052Smrgelse case e in #(
69641e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69653fe82118Smrg/* end confdefs.h.  */
69663fe82118Smrgint i;
69673fe82118Smrg_ACEOF
69683a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
69693a99fc18Smrgthen :
69703fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
69711e42c052Smrgelse case e in #(
69721e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
69731e42c052Smrgesac
69743fe82118Smrgfi
69751e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
69761e42c052Smrgesac
69773fe82118Smrgfi
69783a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
69793a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
69803fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
69813fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
69823fe82118Smrgfi
69833fe82118Smrg
69843fe82118Smrgfound="no"
69853fe82118Smrg
69863fe82118Smrg	if test $found = "no" ; then
69873e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69883fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69893fe82118Smrg		fi
69903fe82118Smrg
69913e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
69923fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
69933fe82118Smrg		fi
69943fe82118Smrg
69953e999d35Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
69963fe82118Smrg
69973a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
69983a99fc18Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
69993e999d35Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
70003a99fc18Smrg		if eval test \${$cacheid+y}
70013a99fc18Smrgthen :
70023a99fc18Smrg  printf %s "(cached) " >&6
70031e42c052Smrgelse case e in #(
70041e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70053fe82118Smrg/* end confdefs.h.  */
70063fe82118Smrgint i;
70073fe82118Smrgint
70083a99fc18Smrgmain (void)
70093fe82118Smrg{
70103fe82118Smrg
70113fe82118Smrg  ;
70123fe82118Smrg  return 0;
70133fe82118Smrg}
70143fe82118Smrg_ACEOF
70153a99fc18Smrgif ac_fn_c_try_link "$LINENO"
70163a99fc18Smrgthen :
70173fe82118Smrg  eval $cacheid=yes
70181e42c052Smrgelse case e in #(
70191e42c052Smrg  e) eval $cacheid=no ;;
70201e42c052Smrgesac
70213fe82118Smrgfi
70223a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
70231e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
70241e42c052Smrgesac
70253fe82118Smrgfi
70263fe82118Smrg
70273fe82118Smrg
70283fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
70293fe82118Smrg
70303fe82118Smrg		eval supported=\$$cacheid
70313a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
70323a99fc18Smrgprintf "%s\n" "$supported" >&6; }
70333fe82118Smrg		if test "$supported" = "yes" ; then
70343e999d35Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
70353fe82118Smrg			found="yes"
70363fe82118Smrg		fi
70373fe82118Smrg	fi
70383fe82118Smrg
70393fe82118Smrg
70403fe82118Smrg
70413fe82118Smrg
70423fe82118Smrg
70433fe82118Smrg
70443fe82118Smrg
70453fe82118Smrg
70463fe82118Smrg
70473fe82118Smrg
70483fe82118Smrg
70493fe82118Smrg
70503fe82118Smrg
70513fe82118Smrg
70523fe82118Smrg
70533fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
70543fe82118Smrg
70553fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
70563fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70573a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
70583a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
70593a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
70603a99fc18Smrgthen :
70613a99fc18Smrg  printf %s "(cached) " >&6
70621e42c052Smrgelse case e in #(
70631e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70643fe82118Smrg/* end confdefs.h.  */
70653fe82118Smrgint i;
70663fe82118Smrg_ACEOF
70673a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
70683a99fc18Smrgthen :
70693fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
70701e42c052Smrgelse case e in #(
70711e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
70721e42c052Smrgesac
70733fe82118Smrgfi
70741e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
70751e42c052Smrgesac
70763fe82118Smrgfi
70773a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
70783a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
70793fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
70803fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
70813fe82118Smrgfi
70823fe82118Smrg
70833fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
70843fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
70853fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70863fe82118Smrg	fi
70873fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
70883a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
70893a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
70903a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
70913a99fc18Smrgthen :
70923a99fc18Smrg  printf %s "(cached) " >&6
70931e42c052Smrgelse case e in #(
70941e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70953fe82118Smrg/* end confdefs.h.  */
70963fe82118Smrgint i;
70973fe82118Smrg_ACEOF
70983a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
70993a99fc18Smrgthen :
71003fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
71011e42c052Smrgelse case e in #(
71021e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
71031e42c052Smrgesac
71043fe82118Smrgfi
71051e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
71061e42c052Smrgesac
71073fe82118Smrgfi
71083a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
71093a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
71103fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
71113fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
71123fe82118Smrgfi
71133fe82118Smrg
71143fe82118Smrgfound="no"
71153fe82118Smrg
71163fe82118Smrg	if test $found = "no" ; then
71173e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71183fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71193fe82118Smrg		fi
71203fe82118Smrg
71213e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
71223fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71233fe82118Smrg		fi
71243fe82118Smrg
71253e999d35Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
71263fe82118Smrg
71273a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
71283a99fc18Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
71293e999d35Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
71303a99fc18Smrg		if eval test \${$cacheid+y}
71313a99fc18Smrgthen :
71323a99fc18Smrg  printf %s "(cached) " >&6
71331e42c052Smrgelse case e in #(
71341e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71353fe82118Smrg/* end confdefs.h.  */
71363fe82118Smrgint i;
71373fe82118Smrgint
71383a99fc18Smrgmain (void)
71393fe82118Smrg{
71403fe82118Smrg
71413fe82118Smrg  ;
71423fe82118Smrg  return 0;
71433fe82118Smrg}
71443fe82118Smrg_ACEOF
71453a99fc18Smrgif ac_fn_c_try_link "$LINENO"
71463a99fc18Smrgthen :
71473fe82118Smrg  eval $cacheid=yes
71481e42c052Smrgelse case e in #(
71491e42c052Smrg  e) eval $cacheid=no ;;
71501e42c052Smrgesac
71513fe82118Smrgfi
71523a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
71531e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
71541e42c052Smrgesac
71553fe82118Smrgfi
71563fe82118Smrg
71573fe82118Smrg
71583fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
71593fe82118Smrg
71603fe82118Smrg		eval supported=\$$cacheid
71613a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
71623a99fc18Smrgprintf "%s\n" "$supported" >&6; }
71633fe82118Smrg		if test "$supported" = "yes" ; then
71643e999d35Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
71653fe82118Smrg			found="yes"
71663fe82118Smrg		fi
71673fe82118Smrg	fi
71683fe82118Smrg
71693fe82118Smrg
71703fe82118Smrg
71713fe82118Smrg
71723fe82118Smrg
71733fe82118Smrg
71743fe82118Smrg
71753fe82118Smrg
71763fe82118Smrg
71773fe82118Smrg
71783fe82118Smrg
71793fe82118Smrg
71803fe82118Smrg
71813fe82118Smrg
71823fe82118Smrg
71833fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
71843fe82118Smrg
71853fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
71863fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71873a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
71883a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
71893a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
71903a99fc18Smrgthen :
71913a99fc18Smrg  printf %s "(cached) " >&6
71921e42c052Smrgelse case e in #(
71931e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71943fe82118Smrg/* end confdefs.h.  */
71953fe82118Smrgint i;
71963fe82118Smrg_ACEOF
71973a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
71983a99fc18Smrgthen :
71993fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
72001e42c052Smrgelse case e in #(
72011e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
72021e42c052Smrgesac
72033fe82118Smrgfi
72041e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
72051e42c052Smrgesac
72063fe82118Smrgfi
72073a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
72083a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
72093fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
72103fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
72113fe82118Smrgfi
72123fe82118Smrg
72133fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
72143fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
72153fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72163fe82118Smrg	fi
72173fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
72183a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
72193a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
72203a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
72213a99fc18Smrgthen :
72223a99fc18Smrg  printf %s "(cached) " >&6
72231e42c052Smrgelse case e in #(
72241e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72253fe82118Smrg/* end confdefs.h.  */
72263fe82118Smrgint i;
72273fe82118Smrg_ACEOF
72283a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
72293a99fc18Smrgthen :
72303fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
72311e42c052Smrgelse case e in #(
72321e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
72331e42c052Smrgesac
72343fe82118Smrgfi
72351e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
72361e42c052Smrgesac
72373fe82118Smrgfi
72383a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
72393a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
72403fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
72413fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
72423fe82118Smrgfi
72433fe82118Smrg
72443fe82118Smrgfound="no"
72453fe82118Smrg
72463fe82118Smrg	if test $found = "no" ; then
72473e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
72483fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72493fe82118Smrg		fi
72503fe82118Smrg
72513e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
72523fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
72533fe82118Smrg		fi
72543fe82118Smrg
72553e999d35Smrg		CFLAGS="$CFLAGS -Wlogical-op"
72563fe82118Smrg
72573a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
72583a99fc18Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
72593e999d35Smrg		cacheid=xorg_cv_cc_flag__Wlogical_op
72603a99fc18Smrg		if eval test \${$cacheid+y}
72613a99fc18Smrgthen :
72623a99fc18Smrg  printf %s "(cached) " >&6
72631e42c052Smrgelse case e in #(
72641e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72653fe82118Smrg/* end confdefs.h.  */
72663fe82118Smrgint i;
72673fe82118Smrgint
72683a99fc18Smrgmain (void)
72693fe82118Smrg{
72703fe82118Smrg
72713fe82118Smrg  ;
72723fe82118Smrg  return 0;
72733fe82118Smrg}
72743fe82118Smrg_ACEOF
72753a99fc18Smrgif ac_fn_c_try_link "$LINENO"
72763a99fc18Smrgthen :
72773fe82118Smrg  eval $cacheid=yes
72781e42c052Smrgelse case e in #(
72791e42c052Smrg  e) eval $cacheid=no ;;
72801e42c052Smrgesac
72813fe82118Smrgfi
72823a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
72831e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
72841e42c052Smrgesac
72853fe82118Smrgfi
72863fe82118Smrg
72873fe82118Smrg
72883fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
72893fe82118Smrg
72903fe82118Smrg		eval supported=\$$cacheid
72913a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
72923a99fc18Smrgprintf "%s\n" "$supported" >&6; }
72933fe82118Smrg		if test "$supported" = "yes" ; then
72943e999d35Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
72953fe82118Smrg			found="yes"
72963fe82118Smrg		fi
72973fe82118Smrg	fi
72983fe82118Smrg
72993fe82118Smrg
73003fe82118Smrg
73013fe82118Smrg# These are currently disabled because they are noisy.  They will be enabled
73023fe82118Smrg# in the future once the codebase is sufficiently modernized to silence
73033fe82118Smrg# them.  For now, I don't want them to drown out the other warnings.
73043fe82118Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
73053fe82118Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
73063e999d35Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
73073fe82118Smrg
73081e42c052Smrg# Turn some warnings into errors, so we don't accidentally get successful builds
73093fe82118Smrg# when there are problems that should be fixed.
73103fe82118Smrg
73113fe82118Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
73123fe82118Smrg
73133fe82118Smrg
73143fe82118Smrg
73153fe82118Smrg
73163fe82118Smrg
73173fe82118Smrg
73183fe82118Smrg
73193fe82118Smrg
73203fe82118Smrg
73213fe82118Smrg
73223fe82118Smrg
73233fe82118Smrg
73243fe82118Smrg
73253fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
73263fe82118Smrg
73273fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
73283fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73293a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
73303a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
73313a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
73323a99fc18Smrgthen :
73333a99fc18Smrg  printf %s "(cached) " >&6
73341e42c052Smrgelse case e in #(
73351e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73363fe82118Smrg/* end confdefs.h.  */
73373fe82118Smrgint i;
73383fe82118Smrg_ACEOF
73393a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
73403a99fc18Smrgthen :
73413fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
73421e42c052Smrgelse case e in #(
73431e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
73441e42c052Smrgesac
73453fe82118Smrgfi
73461e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
73471e42c052Smrgesac
73483fe82118Smrgfi
73493a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
73503a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
73513fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
73523fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
73533fe82118Smrgfi
73543fe82118Smrg
73553fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
73563fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73573fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73583fe82118Smrg	fi
73593fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73603a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
73613a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
73623a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
73633a99fc18Smrgthen :
73643a99fc18Smrg  printf %s "(cached) " >&6
73651e42c052Smrgelse case e in #(
73661e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73673fe82118Smrg/* end confdefs.h.  */
73683fe82118Smrgint i;
73693fe82118Smrg_ACEOF
73703a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
73713a99fc18Smrgthen :
73723fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
73731e42c052Smrgelse case e in #(
73741e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
73751e42c052Smrgesac
73763fe82118Smrgfi
73771e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
73781e42c052Smrgesac
73793fe82118Smrgfi
73803a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
73813a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
73823fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
73833fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
73843fe82118Smrgfi
73853fe82118Smrg
73863fe82118Smrgfound="no"
73873fe82118Smrg
73883fe82118Smrg	if test $found = "no" ; then
73893e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73903fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73913fe82118Smrg		fi
73923fe82118Smrg
73933e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
73943fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73953fe82118Smrg		fi
73963fe82118Smrg
73973fe82118Smrg		CFLAGS="$CFLAGS -Werror=implicit"
73983fe82118Smrg
73993a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
74003a99fc18Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
74013e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_implicit
74023a99fc18Smrg		if eval test \${$cacheid+y}
74033a99fc18Smrgthen :
74043a99fc18Smrg  printf %s "(cached) " >&6
74051e42c052Smrgelse case e in #(
74061e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74073fe82118Smrg/* end confdefs.h.  */
74083fe82118Smrgint i;
74093fe82118Smrgint
74103a99fc18Smrgmain (void)
74113fe82118Smrg{
74123fe82118Smrg
74133fe82118Smrg  ;
74143fe82118Smrg  return 0;
74153fe82118Smrg}
74163fe82118Smrg_ACEOF
74173a99fc18Smrgif ac_fn_c_try_link "$LINENO"
74183a99fc18Smrgthen :
74193fe82118Smrg  eval $cacheid=yes
74201e42c052Smrgelse case e in #(
74211e42c052Smrg  e) eval $cacheid=no ;;
74221e42c052Smrgesac
74233fe82118Smrgfi
74243a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
74251e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
74261e42c052Smrgesac
74273fe82118Smrgfi
74283fe82118Smrg
74293fe82118Smrg
74303fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
74313fe82118Smrg
74323fe82118Smrg		eval supported=\$$cacheid
74333a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
74343a99fc18Smrgprintf "%s\n" "$supported" >&6; }
74353fe82118Smrg		if test "$supported" = "yes" ; then
74363fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
74373fe82118Smrg			found="yes"
74383fe82118Smrg		fi
74393fe82118Smrg	fi
74403fe82118Smrg
74413fe82118Smrg	if test $found = "no" ; then
74423e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74433fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74443fe82118Smrg		fi
74453fe82118Smrg
74463e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
74473fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
74483fe82118Smrg		fi
74493fe82118Smrg
74503fe82118Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
74513fe82118Smrg
74523a99fc18Smrg		{ 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
74533a99fc18Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
74543e999d35Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
74553a99fc18Smrg		if eval test \${$cacheid+y}
74563a99fc18Smrgthen :
74573a99fc18Smrg  printf %s "(cached) " >&6
74581e42c052Smrgelse case e in #(
74591e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74603fe82118Smrg/* end confdefs.h.  */
74613fe82118Smrgint i;
74623fe82118Smrgint
74633a99fc18Smrgmain (void)
74643fe82118Smrg{
74653fe82118Smrg
74663fe82118Smrg  ;
74673fe82118Smrg  return 0;
74683fe82118Smrg}
74693fe82118Smrg_ACEOF
74703a99fc18Smrgif ac_fn_c_try_link "$LINENO"
74713a99fc18Smrgthen :
74723fe82118Smrg  eval $cacheid=yes
74731e42c052Smrgelse case e in #(
74741e42c052Smrg  e) eval $cacheid=no ;;
74751e42c052Smrgesac
74763fe82118Smrgfi
74773a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
74781e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
74791e42c052Smrgesac
74803fe82118Smrgfi
74813fe82118Smrg
74823fe82118Smrg
74833fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
74843fe82118Smrg
74853fe82118Smrg		eval supported=\$$cacheid
74863a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
74873a99fc18Smrgprintf "%s\n" "$supported" >&6; }
74883fe82118Smrg		if test "$supported" = "yes" ; then
74893fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
74903fe82118Smrg			found="yes"
74913fe82118Smrg		fi
74923fe82118Smrg	fi
74933fe82118Smrg
74943fe82118Smrg
74953fe82118Smrg
74963fe82118Smrg
74973fe82118Smrg
74983fe82118Smrg
74993fe82118Smrg
75003fe82118Smrg
75013fe82118Smrg
75023fe82118Smrg
75033fe82118Smrg
75043fe82118Smrg
75053fe82118Smrg
75063fe82118Smrg
75073fe82118Smrg
75083fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
75093fe82118Smrg
75103fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
75113fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75123a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
75133a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
75143a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
75153a99fc18Smrgthen :
75163a99fc18Smrg  printf %s "(cached) " >&6
75171e42c052Smrgelse case e in #(
75181e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75193fe82118Smrg/* end confdefs.h.  */
75203fe82118Smrgint i;
75213fe82118Smrg_ACEOF
75223a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
75233a99fc18Smrgthen :
75243fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
75251e42c052Smrgelse case e in #(
75261e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
75271e42c052Smrgesac
75283fe82118Smrgfi
75291e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
75301e42c052Smrgesac
75313fe82118Smrgfi
75323a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
75333a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
75343fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
75353fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
75363fe82118Smrgfi
75373fe82118Smrg
75383fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
75393fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75403fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75413fe82118Smrg	fi
75423fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75433a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
75443a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
75453a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
75463a99fc18Smrgthen :
75473a99fc18Smrg  printf %s "(cached) " >&6
75481e42c052Smrgelse case e in #(
75491e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75503fe82118Smrg/* end confdefs.h.  */
75513fe82118Smrgint i;
75523fe82118Smrg_ACEOF
75533a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
75543a99fc18Smrgthen :
75553fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
75561e42c052Smrgelse case e in #(
75571e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
75581e42c052Smrgesac
75593fe82118Smrgfi
75601e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
75611e42c052Smrgesac
75623fe82118Smrgfi
75633a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
75643a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
75653fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
75663fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
75673fe82118Smrgfi
75683fe82118Smrg
75693fe82118Smrgfound="no"
75703fe82118Smrg
75713fe82118Smrg	if test $found = "no" ; then
75723e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75733fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75743fe82118Smrg		fi
75753fe82118Smrg
75763e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
75773fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75783fe82118Smrg		fi
75793fe82118Smrg
75803fe82118Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
75813fe82118Smrg
75823a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
75833a99fc18Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
75843e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
75853a99fc18Smrg		if eval test \${$cacheid+y}
75863a99fc18Smrgthen :
75873a99fc18Smrg  printf %s "(cached) " >&6
75881e42c052Smrgelse case e in #(
75891e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75903fe82118Smrg/* end confdefs.h.  */
75913fe82118Smrgint i;
75923fe82118Smrgint
75933a99fc18Smrgmain (void)
75943fe82118Smrg{
75953fe82118Smrg
75963fe82118Smrg  ;
75973fe82118Smrg  return 0;
75983fe82118Smrg}
75993fe82118Smrg_ACEOF
76003a99fc18Smrgif ac_fn_c_try_link "$LINENO"
76013a99fc18Smrgthen :
76023fe82118Smrg  eval $cacheid=yes
76031e42c052Smrgelse case e in #(
76041e42c052Smrg  e) eval $cacheid=no ;;
76051e42c052Smrgesac
76063fe82118Smrgfi
76073a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
76081e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
76091e42c052Smrgesac
76103fe82118Smrgfi
76113fe82118Smrg
76123fe82118Smrg
76133fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
76143fe82118Smrg
76153fe82118Smrg		eval supported=\$$cacheid
76163a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
76173a99fc18Smrgprintf "%s\n" "$supported" >&6; }
76183fe82118Smrg		if test "$supported" = "yes" ; then
76193fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
76203fe82118Smrg			found="yes"
76213fe82118Smrg		fi
76223fe82118Smrg	fi
76233fe82118Smrg
76243fe82118Smrg
76253fe82118Smrg
76263fe82118Smrg
76273fe82118Smrg
76283fe82118Smrg
76293fe82118Smrg
76303fe82118Smrg
76313fe82118Smrg
76323fe82118Smrg
76333fe82118Smrg
76343fe82118Smrg
76353fe82118Smrg
76363fe82118Smrg
76373fe82118Smrg
76383fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
76393fe82118Smrg
76403fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
76413fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76423a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
76433a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
76443a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
76453a99fc18Smrgthen :
76463a99fc18Smrg  printf %s "(cached) " >&6
76471e42c052Smrgelse case e in #(
76481e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76493fe82118Smrg/* end confdefs.h.  */
76503fe82118Smrgint i;
76513fe82118Smrg_ACEOF
76523a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
76533a99fc18Smrgthen :
76543fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
76551e42c052Smrgelse case e in #(
76561e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
76571e42c052Smrgesac
76583fe82118Smrgfi
76591e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
76601e42c052Smrgesac
76613fe82118Smrgfi
76623a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
76633a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
76643fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
76653fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
76663fe82118Smrgfi
76673fe82118Smrg
76683fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
76693fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
76703fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76713fe82118Smrg	fi
76723fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
76733a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
76743a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
76753a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
76763a99fc18Smrgthen :
76773a99fc18Smrg  printf %s "(cached) " >&6
76781e42c052Smrgelse case e in #(
76791e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76803fe82118Smrg/* end confdefs.h.  */
76813fe82118Smrgint i;
76823fe82118Smrg_ACEOF
76833a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
76843a99fc18Smrgthen :
76853fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
76861e42c052Smrgelse case e in #(
76871e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
76881e42c052Smrgesac
76893fe82118Smrgfi
76901e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
76911e42c052Smrgesac
76923fe82118Smrgfi
76933a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
76943a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
76953fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
76963fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
76973fe82118Smrgfi
76983fe82118Smrg
76993fe82118Smrgfound="no"
77003fe82118Smrg
77013fe82118Smrg	if test $found = "no" ; then
77023e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
77033fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77043fe82118Smrg		fi
77053fe82118Smrg
77063e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
77073fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
77083fe82118Smrg		fi
77093fe82118Smrg
77103fe82118Smrg		CFLAGS="$CFLAGS -Werror=init-self"
77113fe82118Smrg
77123a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
77133a99fc18Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
77143e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_init_self
77153a99fc18Smrg		if eval test \${$cacheid+y}
77163a99fc18Smrgthen :
77173a99fc18Smrg  printf %s "(cached) " >&6
77181e42c052Smrgelse case e in #(
77191e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77203fe82118Smrg/* end confdefs.h.  */
77213fe82118Smrgint i;
77223fe82118Smrgint
77233a99fc18Smrgmain (void)
77243fe82118Smrg{
77253fe82118Smrg
77263fe82118Smrg  ;
77273fe82118Smrg  return 0;
77283fe82118Smrg}
77293fe82118Smrg_ACEOF
77303a99fc18Smrgif ac_fn_c_try_link "$LINENO"
77313a99fc18Smrgthen :
77323fe82118Smrg  eval $cacheid=yes
77331e42c052Smrgelse case e in #(
77341e42c052Smrg  e) eval $cacheid=no ;;
77351e42c052Smrgesac
77363fe82118Smrgfi
77373a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
77381e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
77391e42c052Smrgesac
77403fe82118Smrgfi
77413fe82118Smrg
77423fe82118Smrg
77433fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
77443fe82118Smrg
77453fe82118Smrg		eval supported=\$$cacheid
77463a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
77473a99fc18Smrgprintf "%s\n" "$supported" >&6; }
77483fe82118Smrg		if test "$supported" = "yes" ; then
77493fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
77503fe82118Smrg			found="yes"
77513fe82118Smrg		fi
77523fe82118Smrg	fi
77533fe82118Smrg
77543fe82118Smrg
77553fe82118Smrg
77563fe82118Smrg
77573fe82118Smrg
77583fe82118Smrg
77593fe82118Smrg
77603fe82118Smrg
77613fe82118Smrg
77623fe82118Smrg
77633fe82118Smrg
77643fe82118Smrg
77653fe82118Smrg
77663fe82118Smrg
77673fe82118Smrg
77683fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
77693fe82118Smrg
77703fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
77713fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77723a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
77733a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
77743a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
77753a99fc18Smrgthen :
77763a99fc18Smrg  printf %s "(cached) " >&6
77771e42c052Smrgelse case e in #(
77781e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77793fe82118Smrg/* end confdefs.h.  */
77803fe82118Smrgint i;
77813fe82118Smrg_ACEOF
77823a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
77833a99fc18Smrgthen :
77843fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
77851e42c052Smrgelse case e in #(
77861e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
77871e42c052Smrgesac
77883fe82118Smrgfi
77891e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
77901e42c052Smrgesac
77913fe82118Smrgfi
77923a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
77933a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
77943fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
77953fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
77963fe82118Smrgfi
77973fe82118Smrg
77983fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
77993fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78003fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78013fe82118Smrg	fi
78023fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
78033a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
78043a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
78053a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
78063a99fc18Smrgthen :
78073a99fc18Smrg  printf %s "(cached) " >&6
78081e42c052Smrgelse case e in #(
78091e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78103fe82118Smrg/* end confdefs.h.  */
78113fe82118Smrgint i;
78123fe82118Smrg_ACEOF
78133a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
78143a99fc18Smrgthen :
78153fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
78161e42c052Smrgelse case e in #(
78171e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
78181e42c052Smrgesac
78193fe82118Smrgfi
78201e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
78211e42c052Smrgesac
78223fe82118Smrgfi
78233a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
78243a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
78253fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
78263fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
78273fe82118Smrgfi
78283fe82118Smrg
78293fe82118Smrgfound="no"
78303fe82118Smrg
78313fe82118Smrg	if test $found = "no" ; then
78323e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78333fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78343fe82118Smrg		fi
78353fe82118Smrg
78363e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
78373fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
78383fe82118Smrg		fi
78393fe82118Smrg
78403fe82118Smrg		CFLAGS="$CFLAGS -Werror=main"
78413fe82118Smrg
78423a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
78433a99fc18Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
78443e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_main
78453a99fc18Smrg		if eval test \${$cacheid+y}
78463a99fc18Smrgthen :
78473a99fc18Smrg  printf %s "(cached) " >&6
78481e42c052Smrgelse case e in #(
78491e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78503fe82118Smrg/* end confdefs.h.  */
78513fe82118Smrgint i;
78523fe82118Smrgint
78533a99fc18Smrgmain (void)
78543fe82118Smrg{
78553fe82118Smrg
78563fe82118Smrg  ;
78573fe82118Smrg  return 0;
78583fe82118Smrg}
78593fe82118Smrg_ACEOF
78603a99fc18Smrgif ac_fn_c_try_link "$LINENO"
78613a99fc18Smrgthen :
78623fe82118Smrg  eval $cacheid=yes
78631e42c052Smrgelse case e in #(
78641e42c052Smrg  e) eval $cacheid=no ;;
78651e42c052Smrgesac
78663fe82118Smrgfi
78673a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
78681e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
78691e42c052Smrgesac
78703fe82118Smrgfi
78713fe82118Smrg
78723fe82118Smrg
78733fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
78743fe82118Smrg
78753fe82118Smrg		eval supported=\$$cacheid
78763a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
78773a99fc18Smrgprintf "%s\n" "$supported" >&6; }
78783fe82118Smrg		if test "$supported" = "yes" ; then
78793fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
78803fe82118Smrg			found="yes"
78813fe82118Smrg		fi
78823fe82118Smrg	fi
78833fe82118Smrg
78843fe82118Smrg
78853fe82118Smrg
78863fe82118Smrg
78873fe82118Smrg
78883fe82118Smrg
78893fe82118Smrg
78903fe82118Smrg
78913fe82118Smrg
78923fe82118Smrg
78933fe82118Smrg
78943fe82118Smrg
78953fe82118Smrg
78963fe82118Smrg
78973fe82118Smrg
78983fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
78993fe82118Smrg
79003fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
79013fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79023a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
79033a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
79043a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
79053a99fc18Smrgthen :
79063a99fc18Smrg  printf %s "(cached) " >&6
79071e42c052Smrgelse case e in #(
79081e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79093fe82118Smrg/* end confdefs.h.  */
79103fe82118Smrgint i;
79113fe82118Smrg_ACEOF
79123a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
79133a99fc18Smrgthen :
79143fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
79151e42c052Smrgelse case e in #(
79161e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
79171e42c052Smrgesac
79183fe82118Smrgfi
79191e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
79201e42c052Smrgesac
79213fe82118Smrgfi
79223a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
79233a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
79243fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
79253fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
79263fe82118Smrgfi
79273fe82118Smrg
79283fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
79293fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79303fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79313fe82118Smrg	fi
79323fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79333a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
79343a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
79353a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
79363a99fc18Smrgthen :
79373a99fc18Smrg  printf %s "(cached) " >&6
79381e42c052Smrgelse case e in #(
79391e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79403fe82118Smrg/* end confdefs.h.  */
79413fe82118Smrgint i;
79423fe82118Smrg_ACEOF
79433a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
79443a99fc18Smrgthen :
79453fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
79461e42c052Smrgelse case e in #(
79471e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
79481e42c052Smrgesac
79493fe82118Smrgfi
79501e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
79511e42c052Smrgesac
79523fe82118Smrgfi
79533a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
79543a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
79553fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
79563fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
79573fe82118Smrgfi
79583fe82118Smrg
79593fe82118Smrgfound="no"
79603fe82118Smrg
79613fe82118Smrg	if test $found = "no" ; then
79623e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79633fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79643fe82118Smrg		fi
79653fe82118Smrg
79663e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
79673fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79683fe82118Smrg		fi
79693fe82118Smrg
79703fe82118Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
79713fe82118Smrg
79723a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
79733a99fc18Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
79743e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
79753a99fc18Smrg		if eval test \${$cacheid+y}
79763a99fc18Smrgthen :
79773a99fc18Smrg  printf %s "(cached) " >&6
79781e42c052Smrgelse case e in #(
79791e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79803fe82118Smrg/* end confdefs.h.  */
79813fe82118Smrgint i;
79823fe82118Smrgint
79833a99fc18Smrgmain (void)
79843fe82118Smrg{
79853fe82118Smrg
79863fe82118Smrg  ;
79873fe82118Smrg  return 0;
79883fe82118Smrg}
79893fe82118Smrg_ACEOF
79903a99fc18Smrgif ac_fn_c_try_link "$LINENO"
79913a99fc18Smrgthen :
79923fe82118Smrg  eval $cacheid=yes
79931e42c052Smrgelse case e in #(
79941e42c052Smrg  e) eval $cacheid=no ;;
79951e42c052Smrgesac
79963fe82118Smrgfi
79973a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
79981e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
79991e42c052Smrgesac
80003fe82118Smrgfi
80013fe82118Smrg
80023fe82118Smrg
80033fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
80043fe82118Smrg
80053fe82118Smrg		eval supported=\$$cacheid
80063a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
80073a99fc18Smrgprintf "%s\n" "$supported" >&6; }
80083fe82118Smrg		if test "$supported" = "yes" ; then
80093fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
80103fe82118Smrg			found="yes"
80113fe82118Smrg		fi
80123fe82118Smrg	fi
80133fe82118Smrg
80143fe82118Smrg
80153fe82118Smrg
80163fe82118Smrg
80173fe82118Smrg
80183fe82118Smrg
80193fe82118Smrg
80203fe82118Smrg
80213fe82118Smrg
80223fe82118Smrg
80233fe82118Smrg
80243fe82118Smrg
80253fe82118Smrg
80263fe82118Smrg
80273fe82118Smrg
80283fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
80293fe82118Smrg
80303fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
80313fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80323a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
80333a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
80343a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
80353a99fc18Smrgthen :
80363a99fc18Smrg  printf %s "(cached) " >&6
80371e42c052Smrgelse case e in #(
80381e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80393fe82118Smrg/* end confdefs.h.  */
80403fe82118Smrgint i;
80413fe82118Smrg_ACEOF
80423a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
80433a99fc18Smrgthen :
80443fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
80451e42c052Smrgelse case e in #(
80461e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
80471e42c052Smrgesac
80483fe82118Smrgfi
80491e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
80501e42c052Smrgesac
80513fe82118Smrgfi
80523a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
80533a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
80543fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
80553fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
80563fe82118Smrgfi
80573fe82118Smrg
80583fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
80593fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
80603fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80613fe82118Smrg	fi
80623fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
80633a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
80643a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
80653a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
80663a99fc18Smrgthen :
80673a99fc18Smrg  printf %s "(cached) " >&6
80681e42c052Smrgelse case e in #(
80691e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80703fe82118Smrg/* end confdefs.h.  */
80713fe82118Smrgint i;
80723fe82118Smrg_ACEOF
80733a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
80743a99fc18Smrgthen :
80753fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
80761e42c052Smrgelse case e in #(
80771e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
80781e42c052Smrgesac
80793fe82118Smrgfi
80801e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
80811e42c052Smrgesac
80823fe82118Smrgfi
80833a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
80843a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
80853fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
80863fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
80873fe82118Smrgfi
80883fe82118Smrg
80893fe82118Smrgfound="no"
80903fe82118Smrg
80913fe82118Smrg	if test $found = "no" ; then
80923e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
80933fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80943fe82118Smrg		fi
80953fe82118Smrg
80963e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
80973fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
80983fe82118Smrg		fi
80993fe82118Smrg
81003fe82118Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
81013fe82118Smrg
81023a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
81033a99fc18Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
81043e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
81053a99fc18Smrg		if eval test \${$cacheid+y}
81063a99fc18Smrgthen :
81073a99fc18Smrg  printf %s "(cached) " >&6
81081e42c052Smrgelse case e in #(
81091e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81103fe82118Smrg/* end confdefs.h.  */
81113fe82118Smrgint i;
81123fe82118Smrgint
81133a99fc18Smrgmain (void)
81143fe82118Smrg{
81153fe82118Smrg
81163fe82118Smrg  ;
81173fe82118Smrg  return 0;
81183fe82118Smrg}
81193fe82118Smrg_ACEOF
81203a99fc18Smrgif ac_fn_c_try_link "$LINENO"
81213a99fc18Smrgthen :
81223fe82118Smrg  eval $cacheid=yes
81231e42c052Smrgelse case e in #(
81241e42c052Smrg  e) eval $cacheid=no ;;
81251e42c052Smrgesac
81263fe82118Smrgfi
81273a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
81281e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
81291e42c052Smrgesac
81303fe82118Smrgfi
81313fe82118Smrg
81323fe82118Smrg
81333fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
81343fe82118Smrg
81353fe82118Smrg		eval supported=\$$cacheid
81363a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
81373a99fc18Smrgprintf "%s\n" "$supported" >&6; }
81383fe82118Smrg		if test "$supported" = "yes" ; then
81393fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
81403fe82118Smrg			found="yes"
81413fe82118Smrg		fi
81423fe82118Smrg	fi
81433fe82118Smrg
81443fe82118Smrg
81453fe82118Smrg
81463fe82118Smrg
81473fe82118Smrg
81483fe82118Smrg
81493fe82118Smrg
81503fe82118Smrg
81513fe82118Smrg
81523fe82118Smrg
81533fe82118Smrg
81543fe82118Smrg
81553fe82118Smrg
81563fe82118Smrg
81573fe82118Smrg
81583fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
81593fe82118Smrg
81603fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
81613fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81623a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
81633a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
81643a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
81653a99fc18Smrgthen :
81663a99fc18Smrg  printf %s "(cached) " >&6
81671e42c052Smrgelse case e in #(
81681e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81693fe82118Smrg/* end confdefs.h.  */
81703fe82118Smrgint i;
81713fe82118Smrg_ACEOF
81723a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
81733a99fc18Smrgthen :
81743fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
81751e42c052Smrgelse case e in #(
81761e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
81771e42c052Smrgesac
81783fe82118Smrgfi
81791e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
81801e42c052Smrgesac
81813fe82118Smrgfi
81823a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
81833a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
81843fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
81853fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
81863fe82118Smrgfi
81873fe82118Smrg
81883fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
81893fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81903fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81913fe82118Smrg	fi
81923fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
81933a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
81943a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
81953a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
81963a99fc18Smrgthen :
81973a99fc18Smrg  printf %s "(cached) " >&6
81981e42c052Smrgelse case e in #(
81991e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82003fe82118Smrg/* end confdefs.h.  */
82013fe82118Smrgint i;
82023fe82118Smrg_ACEOF
82033a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
82043a99fc18Smrgthen :
82053fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
82061e42c052Smrgelse case e in #(
82071e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
82081e42c052Smrgesac
82093fe82118Smrgfi
82101e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
82111e42c052Smrgesac
82123fe82118Smrgfi
82133a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
82143a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
82153fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
82163fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
82173fe82118Smrgfi
82183fe82118Smrg
82193fe82118Smrgfound="no"
82203fe82118Smrg
82213fe82118Smrg	if test $found = "no" ; then
82223e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
82233fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82243fe82118Smrg		fi
82253fe82118Smrg
82263e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
82273fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
82283fe82118Smrg		fi
82293fe82118Smrg
82303fe82118Smrg		CFLAGS="$CFLAGS -Werror=return-type"
82313fe82118Smrg
82323a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
82333a99fc18Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
82343e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_return_type
82353a99fc18Smrg		if eval test \${$cacheid+y}
82363a99fc18Smrgthen :
82373a99fc18Smrg  printf %s "(cached) " >&6
82381e42c052Smrgelse case e in #(
82391e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82403fe82118Smrg/* end confdefs.h.  */
82413fe82118Smrgint i;
82423fe82118Smrgint
82433a99fc18Smrgmain (void)
82443fe82118Smrg{
82453fe82118Smrg
82463fe82118Smrg  ;
82473fe82118Smrg  return 0;
82483fe82118Smrg}
82493fe82118Smrg_ACEOF
82503a99fc18Smrgif ac_fn_c_try_link "$LINENO"
82513a99fc18Smrgthen :
82523fe82118Smrg  eval $cacheid=yes
82531e42c052Smrgelse case e in #(
82541e42c052Smrg  e) eval $cacheid=no ;;
82551e42c052Smrgesac
82563fe82118Smrgfi
82573a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
82581e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
82591e42c052Smrgesac
82603fe82118Smrgfi
82613fe82118Smrg
82623fe82118Smrg
82633fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
82643fe82118Smrg
82653fe82118Smrg		eval supported=\$$cacheid
82663a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
82673a99fc18Smrgprintf "%s\n" "$supported" >&6; }
82683fe82118Smrg		if test "$supported" = "yes" ; then
82693fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
82703fe82118Smrg			found="yes"
82713fe82118Smrg		fi
82723fe82118Smrg	fi
82733fe82118Smrg
82743fe82118Smrg	if test $found = "no" ; then
82753e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
82763fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82773fe82118Smrg		fi
82783fe82118Smrg
82793e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
82803fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
82813fe82118Smrg		fi
82823fe82118Smrg
82833fe82118Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
82843fe82118Smrg
82853a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
82863a99fc18Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
82873e999d35Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
82883a99fc18Smrg		if eval test \${$cacheid+y}
82893a99fc18Smrgthen :
82903a99fc18Smrg  printf %s "(cached) " >&6
82911e42c052Smrgelse case e in #(
82921e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82933fe82118Smrg/* end confdefs.h.  */
82943fe82118Smrgint i;
82953fe82118Smrgint
82963a99fc18Smrgmain (void)
82973fe82118Smrg{
82983fe82118Smrg
82993fe82118Smrg  ;
83003fe82118Smrg  return 0;
83013fe82118Smrg}
83023fe82118Smrg_ACEOF
83033a99fc18Smrgif ac_fn_c_try_link "$LINENO"
83043a99fc18Smrgthen :
83053fe82118Smrg  eval $cacheid=yes
83061e42c052Smrgelse case e in #(
83071e42c052Smrg  e) eval $cacheid=no ;;
83081e42c052Smrgesac
83093fe82118Smrgfi
83103a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
83111e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
83121e42c052Smrgesac
83133fe82118Smrgfi
83143fe82118Smrg
83153fe82118Smrg
83163fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
83173fe82118Smrg
83183fe82118Smrg		eval supported=\$$cacheid
83193a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
83203a99fc18Smrgprintf "%s\n" "$supported" >&6; }
83213fe82118Smrg		if test "$supported" = "yes" ; then
83223fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
83233fe82118Smrg			found="yes"
83243fe82118Smrg		fi
83253fe82118Smrg	fi
83263fe82118Smrg
83273fe82118Smrg
83283fe82118Smrg
83293fe82118Smrg
83303fe82118Smrg
83313fe82118Smrg
83323fe82118Smrg
83333fe82118Smrg
83343fe82118Smrg
83353fe82118Smrg
83363fe82118Smrg
83373fe82118Smrg
83383fe82118Smrg
83393fe82118Smrg
83403fe82118Smrg
83413fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
83423fe82118Smrg
83433fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
83443fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83453a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
83463a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
83473a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
83483a99fc18Smrgthen :
83493a99fc18Smrg  printf %s "(cached) " >&6
83501e42c052Smrgelse case e in #(
83511e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83523fe82118Smrg/* end confdefs.h.  */
83533fe82118Smrgint i;
83543fe82118Smrg_ACEOF
83553a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
83563a99fc18Smrgthen :
83573fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
83581e42c052Smrgelse case e in #(
83591e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
83601e42c052Smrgesac
83613fe82118Smrgfi
83621e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
83631e42c052Smrgesac
83643fe82118Smrgfi
83653a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
83663a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
83673fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
83683fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
83693fe82118Smrgfi
83703fe82118Smrg
83713fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
83723fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83733fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83743fe82118Smrg	fi
83753fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83763a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
83773a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
83783a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
83793a99fc18Smrgthen :
83803a99fc18Smrg  printf %s "(cached) " >&6
83811e42c052Smrgelse case e in #(
83821e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83833fe82118Smrg/* end confdefs.h.  */
83843fe82118Smrgint i;
83853fe82118Smrg_ACEOF
83863a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
83873a99fc18Smrgthen :
83883fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
83891e42c052Smrgelse case e in #(
83901e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
83911e42c052Smrgesac
83923fe82118Smrgfi
83931e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
83941e42c052Smrgesac
83953fe82118Smrgfi
83963a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
83973a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
83983fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
83993fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
84003fe82118Smrgfi
84013fe82118Smrg
84023fe82118Smrgfound="no"
84033fe82118Smrg
84043fe82118Smrg	if test $found = "no" ; then
84053e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84063fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84073fe82118Smrg		fi
84083fe82118Smrg
84093e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
84103fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84113fe82118Smrg		fi
84123fe82118Smrg
84133fe82118Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
84143fe82118Smrg
84153a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
84163a99fc18Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
84173e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
84183a99fc18Smrg		if eval test \${$cacheid+y}
84193a99fc18Smrgthen :
84203a99fc18Smrg  printf %s "(cached) " >&6
84211e42c052Smrgelse case e in #(
84221e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84233fe82118Smrg/* end confdefs.h.  */
84243fe82118Smrgint i;
84253fe82118Smrgint
84263a99fc18Smrgmain (void)
84273fe82118Smrg{
84283fe82118Smrg
84293fe82118Smrg  ;
84303fe82118Smrg  return 0;
84313fe82118Smrg}
84323fe82118Smrg_ACEOF
84333a99fc18Smrgif ac_fn_c_try_link "$LINENO"
84343a99fc18Smrgthen :
84353fe82118Smrg  eval $cacheid=yes
84361e42c052Smrgelse case e in #(
84371e42c052Smrg  e) eval $cacheid=no ;;
84381e42c052Smrgesac
84393fe82118Smrgfi
84403a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
84411e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
84421e42c052Smrgesac
84433fe82118Smrgfi
84443fe82118Smrg
84453fe82118Smrg
84463fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
84473fe82118Smrg
84483fe82118Smrg		eval supported=\$$cacheid
84493a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
84503a99fc18Smrgprintf "%s\n" "$supported" >&6; }
84513fe82118Smrg		if test "$supported" = "yes" ; then
84523fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
84533fe82118Smrg			found="yes"
84543fe82118Smrg		fi
84553fe82118Smrg	fi
84563fe82118Smrg
84573fe82118Smrg
84583fe82118Smrg
84593fe82118Smrg
84603fe82118Smrg
84613fe82118Smrg
84623fe82118Smrg
84633fe82118Smrg
84643fe82118Smrg
84653fe82118Smrg
84663fe82118Smrg
84673fe82118Smrg
84683fe82118Smrg
84693fe82118Smrg
84703fe82118Smrg
84713fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
84723fe82118Smrg
84733fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
84743fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84753a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
84763a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
84773a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
84783a99fc18Smrgthen :
84793a99fc18Smrg  printf %s "(cached) " >&6
84801e42c052Smrgelse case e in #(
84811e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84823fe82118Smrg/* end confdefs.h.  */
84833fe82118Smrgint i;
84843fe82118Smrg_ACEOF
84853a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
84863a99fc18Smrgthen :
84873fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
84881e42c052Smrgelse case e in #(
84891e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
84901e42c052Smrgesac
84913fe82118Smrgfi
84921e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
84931e42c052Smrgesac
84943fe82118Smrgfi
84953a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
84963a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
84973fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
84983fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
84993fe82118Smrgfi
85003fe82118Smrg
85013fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
85023fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85033fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85043fe82118Smrg	fi
85053fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
85063a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
85073a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
85083a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
85093a99fc18Smrgthen :
85103a99fc18Smrg  printf %s "(cached) " >&6
85111e42c052Smrgelse case e in #(
85121e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85133fe82118Smrg/* end confdefs.h.  */
85143fe82118Smrgint i;
85153fe82118Smrg_ACEOF
85163a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
85173a99fc18Smrgthen :
85183fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
85191e42c052Smrgelse case e in #(
85201e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
85211e42c052Smrgesac
85223fe82118Smrgfi
85231e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
85241e42c052Smrgesac
85253fe82118Smrgfi
85263a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
85273a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
85283fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
85293fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
85303fe82118Smrgfi
85313fe82118Smrg
85323fe82118Smrgfound="no"
85333fe82118Smrg
85343fe82118Smrg	if test $found = "no" ; then
85353e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85363fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85373fe82118Smrg		fi
85383fe82118Smrg
85393e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
85403fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
85413fe82118Smrg		fi
85423fe82118Smrg
85433fe82118Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
85443fe82118Smrg
85453a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
85463a99fc18Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
85473e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
85483a99fc18Smrg		if eval test \${$cacheid+y}
85493a99fc18Smrgthen :
85503a99fc18Smrg  printf %s "(cached) " >&6
85511e42c052Smrgelse case e in #(
85521e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85533fe82118Smrg/* end confdefs.h.  */
85543fe82118Smrgint i;
85553fe82118Smrgint
85563a99fc18Smrgmain (void)
85573fe82118Smrg{
85583fe82118Smrg
85593fe82118Smrg  ;
85603fe82118Smrg  return 0;
85613fe82118Smrg}
85623fe82118Smrg_ACEOF
85633a99fc18Smrgif ac_fn_c_try_link "$LINENO"
85643a99fc18Smrgthen :
85653fe82118Smrg  eval $cacheid=yes
85661e42c052Smrgelse case e in #(
85671e42c052Smrg  e) eval $cacheid=no ;;
85681e42c052Smrgesac
85693fe82118Smrgfi
85703a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
85711e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
85721e42c052Smrgesac
85733fe82118Smrgfi
85743fe82118Smrg
85753fe82118Smrg
85763fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
85773fe82118Smrg
85783fe82118Smrg		eval supported=\$$cacheid
85793a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
85803a99fc18Smrgprintf "%s\n" "$supported" >&6; }
85813fe82118Smrg		if test "$supported" = "yes" ; then
85823fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
85833fe82118Smrg			found="yes"
85843fe82118Smrg		fi
85853fe82118Smrg	fi
85863fe82118Smrg
85873fe82118Smrg
85883fe82118Smrg
85893fe82118Smrg
85903fe82118Smrg
85913fe82118Smrg
85923fe82118Smrg
85933fe82118Smrg
85943fe82118Smrg
85953fe82118Smrg
85963fe82118Smrg
85973fe82118Smrg
85983fe82118Smrg
85993fe82118Smrg
86003fe82118Smrg
86013fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
86023fe82118Smrg
86033fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
86043fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86053a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
86063a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
86073a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
86083a99fc18Smrgthen :
86093a99fc18Smrg  printf %s "(cached) " >&6
86101e42c052Smrgelse case e in #(
86111e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86123fe82118Smrg/* end confdefs.h.  */
86133fe82118Smrgint i;
86143fe82118Smrg_ACEOF
86153a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
86163a99fc18Smrgthen :
86173fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
86181e42c052Smrgelse case e in #(
86191e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
86201e42c052Smrgesac
86213fe82118Smrgfi
86221e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
86231e42c052Smrgesac
86243fe82118Smrgfi
86253a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
86263a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
86273fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
86283fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
86293fe82118Smrgfi
86303fe82118Smrg
86313fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
86323fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
86333fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86343fe82118Smrg	fi
86353fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
86363a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
86373a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
86383a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
86393a99fc18Smrgthen :
86403a99fc18Smrg  printf %s "(cached) " >&6
86411e42c052Smrgelse case e in #(
86421e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86433fe82118Smrg/* end confdefs.h.  */
86443fe82118Smrgint i;
86453fe82118Smrg_ACEOF
86463a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
86473a99fc18Smrgthen :
86483fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
86491e42c052Smrgelse case e in #(
86501e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
86511e42c052Smrgesac
86523fe82118Smrgfi
86531e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
86541e42c052Smrgesac
86553fe82118Smrgfi
86563a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
86573a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
86583fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
86593fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
86603fe82118Smrgfi
86613fe82118Smrg
86623fe82118Smrgfound="no"
86633fe82118Smrg
86643fe82118Smrg	if test $found = "no" ; then
86653e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
86663fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86673fe82118Smrg		fi
86683fe82118Smrg
86693e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
86703fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
86713fe82118Smrg		fi
86723fe82118Smrg
86733fe82118Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
86743fe82118Smrg
86753a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
86763a99fc18Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
86773e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
86783a99fc18Smrg		if eval test \${$cacheid+y}
86793a99fc18Smrgthen :
86803a99fc18Smrg  printf %s "(cached) " >&6
86811e42c052Smrgelse case e in #(
86821e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86833fe82118Smrg/* end confdefs.h.  */
86843fe82118Smrgint i;
86853fe82118Smrgint
86863a99fc18Smrgmain (void)
86873fe82118Smrg{
86883fe82118Smrg
86893fe82118Smrg  ;
86903fe82118Smrg  return 0;
86913fe82118Smrg}
86923fe82118Smrg_ACEOF
86933a99fc18Smrgif ac_fn_c_try_link "$LINENO"
86943a99fc18Smrgthen :
86953fe82118Smrg  eval $cacheid=yes
86961e42c052Smrgelse case e in #(
86971e42c052Smrg  e) eval $cacheid=no ;;
86981e42c052Smrgesac
86993fe82118Smrgfi
87003a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
87011e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
87021e42c052Smrgesac
87033fe82118Smrgfi
87043fe82118Smrg
87053fe82118Smrg
87063fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
87073fe82118Smrg
87083fe82118Smrg		eval supported=\$$cacheid
87093a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
87103a99fc18Smrgprintf "%s\n" "$supported" >&6; }
87113fe82118Smrg		if test "$supported" = "yes" ; then
87123fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
87133fe82118Smrg			found="yes"
87143fe82118Smrg		fi
87153fe82118Smrg	fi
87163fe82118Smrg
87173fe82118Smrg
87183fe82118Smrg
87193fe82118Smrg
87203fe82118Smrg
87213fe82118Smrg
87223fe82118Smrg
87233fe82118Smrg
87243fe82118Smrg
87253fe82118Smrg
87263fe82118Smrg
87273fe82118Smrg
87283fe82118Smrg
87293fe82118Smrg
87303fe82118Smrg
87313fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
87323fe82118Smrg
87333fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
87343fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87353a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
87363a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
87373a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
87383a99fc18Smrgthen :
87393a99fc18Smrg  printf %s "(cached) " >&6
87401e42c052Smrgelse case e in #(
87411e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87423fe82118Smrg/* end confdefs.h.  */
87433fe82118Smrgint i;
87443fe82118Smrg_ACEOF
87453a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
87463a99fc18Smrgthen :
87473fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
87481e42c052Smrgelse case e in #(
87491e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
87501e42c052Smrgesac
87513fe82118Smrgfi
87521e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
87531e42c052Smrgesac
87543fe82118Smrgfi
87553a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
87563a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
87573fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
87583fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
87593fe82118Smrgfi
87603fe82118Smrg
87613fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
87623fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87633fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87643fe82118Smrg	fi
87653fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
87663a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
87673a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
87683a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
87693a99fc18Smrgthen :
87703a99fc18Smrg  printf %s "(cached) " >&6
87711e42c052Smrgelse case e in #(
87721e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87733fe82118Smrg/* end confdefs.h.  */
87743fe82118Smrgint i;
87753fe82118Smrg_ACEOF
87763a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
87773a99fc18Smrgthen :
87783fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
87791e42c052Smrgelse case e in #(
87801e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
87811e42c052Smrgesac
87823fe82118Smrgfi
87831e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
87841e42c052Smrgesac
87853fe82118Smrgfi
87863a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
87873a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
87883fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
87893fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
87903fe82118Smrgfi
87913fe82118Smrg
87923fe82118Smrgfound="no"
87933fe82118Smrg
87943fe82118Smrg	if test $found = "no" ; then
87953e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87963fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87973fe82118Smrg		fi
87983fe82118Smrg
87993e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
88003fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
88013fe82118Smrg		fi
88023fe82118Smrg
88033fe82118Smrg		CFLAGS="$CFLAGS -Werror=address"
88043fe82118Smrg
88053a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
88063a99fc18Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
88073e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_address
88083a99fc18Smrg		if eval test \${$cacheid+y}
88093a99fc18Smrgthen :
88103a99fc18Smrg  printf %s "(cached) " >&6
88111e42c052Smrgelse case e in #(
88121e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88133fe82118Smrg/* end confdefs.h.  */
88143fe82118Smrgint i;
88153fe82118Smrgint
88163a99fc18Smrgmain (void)
88173fe82118Smrg{
88183fe82118Smrg
88193fe82118Smrg  ;
88203fe82118Smrg  return 0;
88213fe82118Smrg}
88223fe82118Smrg_ACEOF
88233a99fc18Smrgif ac_fn_c_try_link "$LINENO"
88243a99fc18Smrgthen :
88253fe82118Smrg  eval $cacheid=yes
88261e42c052Smrgelse case e in #(
88271e42c052Smrg  e) eval $cacheid=no ;;
88281e42c052Smrgesac
88293fe82118Smrgfi
88303a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
88311e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
88321e42c052Smrgesac
88333fe82118Smrgfi
88343fe82118Smrg
88353fe82118Smrg
88363fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
88373fe82118Smrg
88383fe82118Smrg		eval supported=\$$cacheid
88393a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
88403a99fc18Smrgprintf "%s\n" "$supported" >&6; }
88413fe82118Smrg		if test "$supported" = "yes" ; then
88423fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
88433fe82118Smrg			found="yes"
88443fe82118Smrg		fi
88453fe82118Smrg	fi
88463fe82118Smrg
88473fe82118Smrg
88483fe82118Smrg
88493fe82118Smrg
88503fe82118Smrg
88513fe82118Smrg
88523fe82118Smrg
88533fe82118Smrg
88543fe82118Smrg
88553fe82118Smrg
88563fe82118Smrg
88573fe82118Smrg
88583fe82118Smrg
88593fe82118Smrg
88603fe82118Smrg
88613fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
88623fe82118Smrg
88633fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
88643fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88653a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
88663a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
88673a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
88683a99fc18Smrgthen :
88693a99fc18Smrg  printf %s "(cached) " >&6
88701e42c052Smrgelse case e in #(
88711e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88723fe82118Smrg/* end confdefs.h.  */
88733fe82118Smrgint i;
88743fe82118Smrg_ACEOF
88753a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
88763a99fc18Smrgthen :
88773fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
88781e42c052Smrgelse case e in #(
88791e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
88801e42c052Smrgesac
88813fe82118Smrgfi
88821e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
88831e42c052Smrgesac
88843fe82118Smrgfi
88853a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
88863a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
88873fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
88883fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
88893fe82118Smrgfi
88903fe82118Smrg
88913fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
88923fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
88933fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88943fe82118Smrg	fi
88953fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
88963a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
88973a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
88983a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
88993a99fc18Smrgthen :
89003a99fc18Smrg  printf %s "(cached) " >&6
89011e42c052Smrgelse case e in #(
89021e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89033fe82118Smrg/* end confdefs.h.  */
89043fe82118Smrgint i;
89053fe82118Smrg_ACEOF
89063a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
89073a99fc18Smrgthen :
89083fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
89091e42c052Smrgelse case e in #(
89101e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
89111e42c052Smrgesac
89123fe82118Smrgfi
89131e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
89141e42c052Smrgesac
89153fe82118Smrgfi
89163a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
89173a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
89183fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
89193fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
89203fe82118Smrgfi
89213fe82118Smrg
89223fe82118Smrgfound="no"
89233fe82118Smrg
89243fe82118Smrg	if test $found = "no" ; then
89253e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89263fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89273fe82118Smrg		fi
89283fe82118Smrg
89293e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
89303fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89313fe82118Smrg		fi
89323fe82118Smrg
89333fe82118Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
89343fe82118Smrg
89353a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
89363a99fc18Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
89373e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
89383a99fc18Smrg		if eval test \${$cacheid+y}
89393a99fc18Smrgthen :
89403a99fc18Smrg  printf %s "(cached) " >&6
89411e42c052Smrgelse case e in #(
89421e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89433fe82118Smrg/* end confdefs.h.  */
89443fe82118Smrgint i;
89453fe82118Smrgint
89463a99fc18Smrgmain (void)
89473fe82118Smrg{
89483fe82118Smrg
89493fe82118Smrg  ;
89503fe82118Smrg  return 0;
89513fe82118Smrg}
89523fe82118Smrg_ACEOF
89533a99fc18Smrgif ac_fn_c_try_link "$LINENO"
89543a99fc18Smrgthen :
89553fe82118Smrg  eval $cacheid=yes
89561e42c052Smrgelse case e in #(
89571e42c052Smrg  e) eval $cacheid=no ;;
89581e42c052Smrgesac
89593fe82118Smrgfi
89603a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
89611e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
89621e42c052Smrgesac
89633fe82118Smrgfi
89643fe82118Smrg
89653fe82118Smrg
89663fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
89673fe82118Smrg
89683fe82118Smrg		eval supported=\$$cacheid
89693a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
89703a99fc18Smrgprintf "%s\n" "$supported" >&6; }
89713fe82118Smrg		if test "$supported" = "yes" ; then
89723fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
89733fe82118Smrg			found="yes"
89743fe82118Smrg		fi
89753fe82118Smrg	fi
89763fe82118Smrg
89773fe82118Smrg	if test $found = "no" ; then
89783e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89793fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89803fe82118Smrg		fi
89813fe82118Smrg
89823e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
89833fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89843fe82118Smrg		fi
89853fe82118Smrg
89863fe82118Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
89873fe82118Smrg
89883a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
89893a99fc18Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
89903e999d35Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
89913a99fc18Smrg		if eval test \${$cacheid+y}
89923a99fc18Smrgthen :
89933a99fc18Smrg  printf %s "(cached) " >&6
89941e42c052Smrgelse case e in #(
89951e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89963fe82118Smrg/* end confdefs.h.  */
89973fe82118Smrgint i;
89983fe82118Smrgint
89993a99fc18Smrgmain (void)
90003fe82118Smrg{
90013fe82118Smrg
90023fe82118Smrg  ;
90033fe82118Smrg  return 0;
90043fe82118Smrg}
90053fe82118Smrg_ACEOF
90063a99fc18Smrgif ac_fn_c_try_link "$LINENO"
90073a99fc18Smrgthen :
90083fe82118Smrg  eval $cacheid=yes
90091e42c052Smrgelse case e in #(
90101e42c052Smrg  e) eval $cacheid=no ;;
90111e42c052Smrgesac
90123fe82118Smrgfi
90133a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
90141e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
90151e42c052Smrgesac
90163fe82118Smrgfi
90173fe82118Smrg
90183fe82118Smrg
90193fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
90203fe82118Smrg
90213fe82118Smrg		eval supported=\$$cacheid
90223a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
90233a99fc18Smrgprintf "%s\n" "$supported" >&6; }
90243fe82118Smrg		if test "$supported" = "yes" ; then
90253fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
90263fe82118Smrg			found="yes"
90273fe82118Smrg		fi
90283fe82118Smrg	fi
90293fe82118Smrg
90303fe82118Smrg
90313fe82118Smrg
90323fe82118Smrg
90333fe82118Smrg
90343fe82118Smrg
90353fe82118Smrg
90363fe82118Smrg
90373fe82118Smrg
90383fe82118Smrg
90393fe82118Smrg
90403fe82118Smrg
90413fe82118Smrg
90423fe82118Smrg
90433fe82118Smrg
90443fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
90453fe82118Smrg
90463fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
90473fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90483a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
90493a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
90503a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
90513a99fc18Smrgthen :
90523a99fc18Smrg  printf %s "(cached) " >&6
90531e42c052Smrgelse case e in #(
90541e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90553fe82118Smrg/* end confdefs.h.  */
90563fe82118Smrgint i;
90573fe82118Smrg_ACEOF
90583a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
90593a99fc18Smrgthen :
90603fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
90611e42c052Smrgelse case e in #(
90621e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
90631e42c052Smrgesac
90643fe82118Smrgfi
90651e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
90661e42c052Smrgesac
90673fe82118Smrgfi
90683a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
90693a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
90703fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
90713fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
90723fe82118Smrgfi
90733fe82118Smrg
90743fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
90753fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
90763fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90773fe82118Smrg	fi
90783fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
90793a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
90803a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
90813a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
90823a99fc18Smrgthen :
90833a99fc18Smrg  printf %s "(cached) " >&6
90841e42c052Smrgelse case e in #(
90851e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90863fe82118Smrg/* end confdefs.h.  */
90873fe82118Smrgint i;
90883fe82118Smrg_ACEOF
90893a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
90903a99fc18Smrgthen :
90913fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
90921e42c052Smrgelse case e in #(
90931e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
90941e42c052Smrgesac
90953fe82118Smrgfi
90961e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
90971e42c052Smrgesac
90983fe82118Smrgfi
90993a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
91003a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
91013fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
91023fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
91033fe82118Smrgfi
91043fe82118Smrg
91053fe82118Smrgfound="no"
91063fe82118Smrg
91073fe82118Smrg	if test $found = "no" ; then
91083e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91093fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91103fe82118Smrg		fi
91113fe82118Smrg
91123e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
91133fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
91143fe82118Smrg		fi
91153fe82118Smrg
91163fe82118Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
91173fe82118Smrg
91183a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
91193a99fc18Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
91203e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
91213a99fc18Smrg		if eval test \${$cacheid+y}
91223a99fc18Smrgthen :
91233a99fc18Smrg  printf %s "(cached) " >&6
91241e42c052Smrgelse case e in #(
91251e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91263fe82118Smrg/* end confdefs.h.  */
91273fe82118Smrgint i;
91283fe82118Smrgint
91293a99fc18Smrgmain (void)
91303fe82118Smrg{
91313fe82118Smrg
91323fe82118Smrg  ;
91333fe82118Smrg  return 0;
91343fe82118Smrg}
91353fe82118Smrg_ACEOF
91363a99fc18Smrgif ac_fn_c_try_link "$LINENO"
91373a99fc18Smrgthen :
91383fe82118Smrg  eval $cacheid=yes
91391e42c052Smrgelse case e in #(
91401e42c052Smrg  e) eval $cacheid=no ;;
91411e42c052Smrgesac
91423fe82118Smrgfi
91433a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
91441e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
91451e42c052Smrgesac
91463fe82118Smrgfi
91473fe82118Smrg
91483fe82118Smrg
91493fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
91503fe82118Smrg
91513fe82118Smrg		eval supported=\$$cacheid
91523a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
91533a99fc18Smrgprintf "%s\n" "$supported" >&6; }
91543fe82118Smrg		if test "$supported" = "yes" ; then
91553fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
91563fe82118Smrg			found="yes"
91573fe82118Smrg		fi
91583fe82118Smrg	fi
91593fe82118Smrg
91603fe82118Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
91613fe82118Smrgelse
91623a99fc18Smrg{ 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
91633a99fc18Smrgprintf "%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;}
91643fe82118Smrg
91653fe82118Smrg
91663fe82118Smrg
91673fe82118Smrg
91683fe82118Smrg
91693fe82118Smrg
91703fe82118Smrg
91713fe82118Smrg
91723fe82118Smrg
91733fe82118Smrg
91743fe82118Smrg
91753fe82118Smrg
91763fe82118Smrg
91773fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
91783fe82118Smrg
91793fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
91803fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91813a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
91823a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
91833a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
91843a99fc18Smrgthen :
91853a99fc18Smrg  printf %s "(cached) " >&6
91861e42c052Smrgelse case e in #(
91871e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91883fe82118Smrg/* end confdefs.h.  */
91893fe82118Smrgint i;
91903fe82118Smrg_ACEOF
91913a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
91923a99fc18Smrgthen :
91933fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
91941e42c052Smrgelse case e in #(
91951e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
91961e42c052Smrgesac
91973fe82118Smrgfi
91981e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
91991e42c052Smrgesac
92003fe82118Smrgfi
92013a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
92023a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
92033fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
92043fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
92053fe82118Smrgfi
92063fe82118Smrg
92073fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
92083fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92093fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92103fe82118Smrg	fi
92113fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
92123a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
92133a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
92143a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
92153a99fc18Smrgthen :
92163a99fc18Smrg  printf %s "(cached) " >&6
92171e42c052Smrgelse case e in #(
92181e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92193fe82118Smrg/* end confdefs.h.  */
92203fe82118Smrgint i;
92213fe82118Smrg_ACEOF
92223a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
92233a99fc18Smrgthen :
92243fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
92251e42c052Smrgelse case e in #(
92261e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
92271e42c052Smrgesac
92283fe82118Smrgfi
92291e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
92301e42c052Smrgesac
92313fe82118Smrgfi
92323a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
92333a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
92343fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
92353fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
92363fe82118Smrgfi
92373fe82118Smrg
92383fe82118Smrgfound="no"
92393fe82118Smrg
92403fe82118Smrg	if test $found = "no" ; then
92413e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92423fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92433fe82118Smrg		fi
92443fe82118Smrg
92453e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
92463fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
92473fe82118Smrg		fi
92483fe82118Smrg
92493fe82118Smrg		CFLAGS="$CFLAGS -Wimplicit"
92503fe82118Smrg
92513a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
92523a99fc18Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
92533fe82118Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
92543a99fc18Smrg		if eval test \${$cacheid+y}
92553a99fc18Smrgthen :
92563a99fc18Smrg  printf %s "(cached) " >&6
92571e42c052Smrgelse case e in #(
92581e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92593fe82118Smrg/* end confdefs.h.  */
92603fe82118Smrgint i;
92613fe82118Smrgint
92623a99fc18Smrgmain (void)
92633fe82118Smrg{
92643fe82118Smrg
92653fe82118Smrg  ;
92663fe82118Smrg  return 0;
92673fe82118Smrg}
92683fe82118Smrg_ACEOF
92693a99fc18Smrgif ac_fn_c_try_link "$LINENO"
92703a99fc18Smrgthen :
92713fe82118Smrg  eval $cacheid=yes
92721e42c052Smrgelse case e in #(
92731e42c052Smrg  e) eval $cacheid=no ;;
92741e42c052Smrgesac
92753fe82118Smrgfi
92763a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
92771e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
92781e42c052Smrgesac
92793fe82118Smrgfi
92803fe82118Smrg
92813fe82118Smrg
92823fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
92833fe82118Smrg
92843fe82118Smrg		eval supported=\$$cacheid
92853a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
92863a99fc18Smrgprintf "%s\n" "$supported" >&6; }
92873fe82118Smrg		if test "$supported" = "yes" ; then
92883fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
92893fe82118Smrg			found="yes"
92903fe82118Smrg		fi
92913fe82118Smrg	fi
92923fe82118Smrg
92933fe82118Smrg
92943fe82118Smrg
92953fe82118Smrg
92963fe82118Smrg
92973fe82118Smrg
92983fe82118Smrg
92993fe82118Smrg
93003fe82118Smrg
93013fe82118Smrg
93023fe82118Smrg
93033fe82118Smrg
93043fe82118Smrg
93053fe82118Smrg
93063fe82118Smrg
93073fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
93083fe82118Smrg
93093fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
93103fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93113a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
93123a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
93133a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
93143a99fc18Smrgthen :
93153a99fc18Smrg  printf %s "(cached) " >&6
93161e42c052Smrgelse case e in #(
93171e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93183fe82118Smrg/* end confdefs.h.  */
93193fe82118Smrgint i;
93203fe82118Smrg_ACEOF
93213a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
93223a99fc18Smrgthen :
93233fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
93241e42c052Smrgelse case e in #(
93251e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
93261e42c052Smrgesac
93273fe82118Smrgfi
93281e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
93291e42c052Smrgesac
93303fe82118Smrgfi
93313a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
93323a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
93333fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
93343fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
93353fe82118Smrgfi
93363fe82118Smrg
93373fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
93383fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
93393fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93403fe82118Smrg	fi
93413fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
93423a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
93433a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
93443a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
93453a99fc18Smrgthen :
93463a99fc18Smrg  printf %s "(cached) " >&6
93471e42c052Smrgelse case e in #(
93481e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93493fe82118Smrg/* end confdefs.h.  */
93503fe82118Smrgint i;
93513fe82118Smrg_ACEOF
93523a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
93533a99fc18Smrgthen :
93543fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
93551e42c052Smrgelse case e in #(
93561e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
93571e42c052Smrgesac
93583fe82118Smrgfi
93591e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
93601e42c052Smrgesac
93613fe82118Smrgfi
93623a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
93633a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
93643fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
93653fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
93663fe82118Smrgfi
93673fe82118Smrg
93683fe82118Smrgfound="no"
93693fe82118Smrg
93703fe82118Smrg	if test $found = "no" ; then
93713e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
93723fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93733fe82118Smrg		fi
93743fe82118Smrg
93753e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
93763fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
93773fe82118Smrg		fi
93783fe82118Smrg
93793fe82118Smrg		CFLAGS="$CFLAGS -Wnonnull"
93803fe82118Smrg
93813a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
93823a99fc18Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
93833fe82118Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
93843a99fc18Smrg		if eval test \${$cacheid+y}
93853a99fc18Smrgthen :
93863a99fc18Smrg  printf %s "(cached) " >&6
93871e42c052Smrgelse case e in #(
93881e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93893fe82118Smrg/* end confdefs.h.  */
93903fe82118Smrgint i;
93913fe82118Smrgint
93923a99fc18Smrgmain (void)
93933fe82118Smrg{
93943fe82118Smrg
93953fe82118Smrg  ;
93963fe82118Smrg  return 0;
93973fe82118Smrg}
93983fe82118Smrg_ACEOF
93993a99fc18Smrgif ac_fn_c_try_link "$LINENO"
94003a99fc18Smrgthen :
94013fe82118Smrg  eval $cacheid=yes
94021e42c052Smrgelse case e in #(
94031e42c052Smrg  e) eval $cacheid=no ;;
94041e42c052Smrgesac
94053fe82118Smrgfi
94063a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
94071e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
94081e42c052Smrgesac
94093fe82118Smrgfi
94103fe82118Smrg
94113fe82118Smrg
94123fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
94133fe82118Smrg
94143fe82118Smrg		eval supported=\$$cacheid
94153a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
94163a99fc18Smrgprintf "%s\n" "$supported" >&6; }
94173fe82118Smrg		if test "$supported" = "yes" ; then
94183fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
94193fe82118Smrg			found="yes"
94203fe82118Smrg		fi
94213fe82118Smrg	fi
94223fe82118Smrg
94233fe82118Smrg
94243fe82118Smrg
94253fe82118Smrg
94263fe82118Smrg
94273fe82118Smrg
94283fe82118Smrg
94293fe82118Smrg
94303fe82118Smrg
94313fe82118Smrg
94323fe82118Smrg
94333fe82118Smrg
94343fe82118Smrg
94353fe82118Smrg
94363fe82118Smrg
94373fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
94383fe82118Smrg
94393fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
94403fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94413a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
94423a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
94433a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
94443a99fc18Smrgthen :
94453a99fc18Smrg  printf %s "(cached) " >&6
94461e42c052Smrgelse case e in #(
94471e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94483fe82118Smrg/* end confdefs.h.  */
94493fe82118Smrgint i;
94503fe82118Smrg_ACEOF
94513a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
94523a99fc18Smrgthen :
94533fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
94541e42c052Smrgelse case e in #(
94551e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
94561e42c052Smrgesac
94573fe82118Smrgfi
94581e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
94591e42c052Smrgesac
94603fe82118Smrgfi
94613a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
94623a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
94633fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
94643fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
94653fe82118Smrgfi
94663fe82118Smrg
94673fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
94683fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
94693fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94703fe82118Smrg	fi
94713fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
94723a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
94733a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
94743a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
94753a99fc18Smrgthen :
94763a99fc18Smrg  printf %s "(cached) " >&6
94771e42c052Smrgelse case e in #(
94781e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94793fe82118Smrg/* end confdefs.h.  */
94803fe82118Smrgint i;
94813fe82118Smrg_ACEOF
94823a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
94833a99fc18Smrgthen :
94843fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
94851e42c052Smrgelse case e in #(
94861e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
94871e42c052Smrgesac
94883fe82118Smrgfi
94891e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
94901e42c052Smrgesac
94913fe82118Smrgfi
94923a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
94933a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
94943fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
94953fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
94963fe82118Smrgfi
94973fe82118Smrg
94983fe82118Smrgfound="no"
94993fe82118Smrg
95003fe82118Smrg	if test $found = "no" ; then
95013e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
95023fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95033fe82118Smrg		fi
95043fe82118Smrg
95053e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
95063fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
95073fe82118Smrg		fi
95083fe82118Smrg
95093fe82118Smrg		CFLAGS="$CFLAGS -Winit-self"
95103fe82118Smrg
95113a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
95123a99fc18Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
95133fe82118Smrg		cacheid=xorg_cv_cc_flag__Winit_self
95143a99fc18Smrg		if eval test \${$cacheid+y}
95153a99fc18Smrgthen :
95163a99fc18Smrg  printf %s "(cached) " >&6
95171e42c052Smrgelse case e in #(
95181e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95193fe82118Smrg/* end confdefs.h.  */
95203fe82118Smrgint i;
95213fe82118Smrgint
95223a99fc18Smrgmain (void)
95233fe82118Smrg{
95243fe82118Smrg
95253fe82118Smrg  ;
95263fe82118Smrg  return 0;
95273fe82118Smrg}
95283fe82118Smrg_ACEOF
95293a99fc18Smrgif ac_fn_c_try_link "$LINENO"
95303a99fc18Smrgthen :
95313fe82118Smrg  eval $cacheid=yes
95321e42c052Smrgelse case e in #(
95331e42c052Smrg  e) eval $cacheid=no ;;
95341e42c052Smrgesac
95353fe82118Smrgfi
95363a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
95371e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
95381e42c052Smrgesac
95393fe82118Smrgfi
95403fe82118Smrg
95413fe82118Smrg
95423fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
95433fe82118Smrg
95443fe82118Smrg		eval supported=\$$cacheid
95453a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
95463a99fc18Smrgprintf "%s\n" "$supported" >&6; }
95473fe82118Smrg		if test "$supported" = "yes" ; then
95483fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
95493fe82118Smrg			found="yes"
95503fe82118Smrg		fi
95513fe82118Smrg	fi
95523fe82118Smrg
95533fe82118Smrg
95543fe82118Smrg
95553fe82118Smrg
95563fe82118Smrg
95573fe82118Smrg
95583fe82118Smrg
95593fe82118Smrg
95603fe82118Smrg
95613fe82118Smrg
95623fe82118Smrg
95633fe82118Smrg
95643fe82118Smrg
95653fe82118Smrg
95663fe82118Smrg
95673fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
95683fe82118Smrg
95693fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
95703fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95713a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
95723a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
95733a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
95743a99fc18Smrgthen :
95753a99fc18Smrg  printf %s "(cached) " >&6
95761e42c052Smrgelse case e in #(
95771e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95783fe82118Smrg/* end confdefs.h.  */
95793fe82118Smrgint i;
95803fe82118Smrg_ACEOF
95813a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
95823a99fc18Smrgthen :
95833fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
95841e42c052Smrgelse case e in #(
95851e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
95861e42c052Smrgesac
95873fe82118Smrgfi
95881e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
95891e42c052Smrgesac
95903fe82118Smrgfi
95913a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
95923a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
95933fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
95943fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
95953fe82118Smrgfi
95963fe82118Smrg
95973fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
95983fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
95993fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96003fe82118Smrg	fi
96013fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96023a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
96033a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
96043a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
96053a99fc18Smrgthen :
96063a99fc18Smrg  printf %s "(cached) " >&6
96071e42c052Smrgelse case e in #(
96081e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96093fe82118Smrg/* end confdefs.h.  */
96103fe82118Smrgint i;
96113fe82118Smrg_ACEOF
96123a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
96133a99fc18Smrgthen :
96143fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
96151e42c052Smrgelse case e in #(
96161e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
96171e42c052Smrgesac
96183fe82118Smrgfi
96191e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
96201e42c052Smrgesac
96213fe82118Smrgfi
96223a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
96233a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
96243fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
96253fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
96263fe82118Smrgfi
96273fe82118Smrg
96283fe82118Smrgfound="no"
96293fe82118Smrg
96303fe82118Smrg	if test $found = "no" ; then
96313e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96323fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96333fe82118Smrg		fi
96343fe82118Smrg
96353e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
96363fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96373fe82118Smrg		fi
96383fe82118Smrg
96393fe82118Smrg		CFLAGS="$CFLAGS -Wmain"
96403fe82118Smrg
96413a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
96423a99fc18Smrgprintf %s "checking if $CC supports -Wmain... " >&6; }
96433fe82118Smrg		cacheid=xorg_cv_cc_flag__Wmain
96443a99fc18Smrg		if eval test \${$cacheid+y}
96453a99fc18Smrgthen :
96463a99fc18Smrg  printf %s "(cached) " >&6
96471e42c052Smrgelse case e in #(
96481e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96493fe82118Smrg/* end confdefs.h.  */
96503fe82118Smrgint i;
96513fe82118Smrgint
96523a99fc18Smrgmain (void)
96533fe82118Smrg{
96543fe82118Smrg
96553fe82118Smrg  ;
96563fe82118Smrg  return 0;
96573fe82118Smrg}
96583fe82118Smrg_ACEOF
96593a99fc18Smrgif ac_fn_c_try_link "$LINENO"
96603a99fc18Smrgthen :
96613fe82118Smrg  eval $cacheid=yes
96621e42c052Smrgelse case e in #(
96631e42c052Smrg  e) eval $cacheid=no ;;
96641e42c052Smrgesac
96653fe82118Smrgfi
96663a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
96671e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
96681e42c052Smrgesac
96693fe82118Smrgfi
96703fe82118Smrg
96713fe82118Smrg
96723fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
96733fe82118Smrg
96743fe82118Smrg		eval supported=\$$cacheid
96753a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
96763a99fc18Smrgprintf "%s\n" "$supported" >&6; }
96773fe82118Smrg		if test "$supported" = "yes" ; then
96783fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
96793fe82118Smrg			found="yes"
96803fe82118Smrg		fi
96813fe82118Smrg	fi
96823fe82118Smrg
96833fe82118Smrg
96843fe82118Smrg
96853fe82118Smrg
96863fe82118Smrg
96873fe82118Smrg
96883fe82118Smrg
96893fe82118Smrg
96903fe82118Smrg
96913fe82118Smrg
96923fe82118Smrg
96933fe82118Smrg
96943fe82118Smrg
96953fe82118Smrg
96963fe82118Smrg
96973fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
96983fe82118Smrg
96993fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
97003fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97013a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
97023a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
97033a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
97043a99fc18Smrgthen :
97053a99fc18Smrg  printf %s "(cached) " >&6
97061e42c052Smrgelse case e in #(
97071e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97083fe82118Smrg/* end confdefs.h.  */
97093fe82118Smrgint i;
97103fe82118Smrg_ACEOF
97113a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
97123a99fc18Smrgthen :
97133fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
97141e42c052Smrgelse case e in #(
97151e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
97161e42c052Smrgesac
97173fe82118Smrgfi
97181e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
97191e42c052Smrgesac
97203fe82118Smrgfi
97213a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
97223a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
97233fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
97243fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
97253fe82118Smrgfi
97263fe82118Smrg
97273fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
97283fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
97293fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97303fe82118Smrg	fi
97313fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
97323a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
97333a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
97343a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
97353a99fc18Smrgthen :
97363a99fc18Smrg  printf %s "(cached) " >&6
97371e42c052Smrgelse case e in #(
97381e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97393fe82118Smrg/* end confdefs.h.  */
97403fe82118Smrgint i;
97413fe82118Smrg_ACEOF
97423a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
97433a99fc18Smrgthen :
97443fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
97451e42c052Smrgelse case e in #(
97461e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
97471e42c052Smrgesac
97483fe82118Smrgfi
97491e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
97501e42c052Smrgesac
97513fe82118Smrgfi
97523a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
97533a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
97543fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
97553fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
97563fe82118Smrgfi
97573fe82118Smrg
97583fe82118Smrgfound="no"
97593fe82118Smrg
97603fe82118Smrg	if test $found = "no" ; then
97613e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
97623fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97633fe82118Smrg		fi
97643fe82118Smrg
97653e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
97663fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
97673fe82118Smrg		fi
97683fe82118Smrg
97693fe82118Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
97703fe82118Smrg
97713a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
97723a99fc18Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
97733fe82118Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
97743a99fc18Smrg		if eval test \${$cacheid+y}
97753a99fc18Smrgthen :
97763a99fc18Smrg  printf %s "(cached) " >&6
97771e42c052Smrgelse case e in #(
97781e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97793fe82118Smrg/* end confdefs.h.  */
97803fe82118Smrgint i;
97813fe82118Smrgint
97823a99fc18Smrgmain (void)
97833fe82118Smrg{
97843fe82118Smrg
97853fe82118Smrg  ;
97863fe82118Smrg  return 0;
97873fe82118Smrg}
97883fe82118Smrg_ACEOF
97893a99fc18Smrgif ac_fn_c_try_link "$LINENO"
97903a99fc18Smrgthen :
97913fe82118Smrg  eval $cacheid=yes
97921e42c052Smrgelse case e in #(
97931e42c052Smrg  e) eval $cacheid=no ;;
97941e42c052Smrgesac
97953fe82118Smrgfi
97963a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
97971e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
97981e42c052Smrgesac
97993fe82118Smrgfi
98003fe82118Smrg
98013fe82118Smrg
98023fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
98033fe82118Smrg
98043fe82118Smrg		eval supported=\$$cacheid
98053a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
98063a99fc18Smrgprintf "%s\n" "$supported" >&6; }
98073fe82118Smrg		if test "$supported" = "yes" ; then
98083fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
98093fe82118Smrg			found="yes"
98103fe82118Smrg		fi
98113fe82118Smrg	fi
98123fe82118Smrg
98133fe82118Smrg
98143fe82118Smrg
98153fe82118Smrg
98163fe82118Smrg
98173fe82118Smrg
98183fe82118Smrg
98193fe82118Smrg
98203fe82118Smrg
98213fe82118Smrg
98223fe82118Smrg
98233fe82118Smrg
98243fe82118Smrg
98253fe82118Smrg
98263fe82118Smrg
98273fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
98283fe82118Smrg
98293fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
98303fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98313a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
98323a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
98333a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
98343a99fc18Smrgthen :
98353a99fc18Smrg  printf %s "(cached) " >&6
98361e42c052Smrgelse case e in #(
98371e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98383fe82118Smrg/* end confdefs.h.  */
98393fe82118Smrgint i;
98403fe82118Smrg_ACEOF
98413a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
98423a99fc18Smrgthen :
98433fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
98441e42c052Smrgelse case e in #(
98451e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
98461e42c052Smrgesac
98473fe82118Smrgfi
98481e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
98491e42c052Smrgesac
98503fe82118Smrgfi
98513a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
98523a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
98533fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
98543fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
98553fe82118Smrgfi
98563fe82118Smrg
98573fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
98583fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
98593fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98603fe82118Smrg	fi
98613fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
98623a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
98633a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
98643a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
98653a99fc18Smrgthen :
98663a99fc18Smrg  printf %s "(cached) " >&6
98671e42c052Smrgelse case e in #(
98681e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98693fe82118Smrg/* end confdefs.h.  */
98703fe82118Smrgint i;
98713fe82118Smrg_ACEOF
98723a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
98733a99fc18Smrgthen :
98743fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
98751e42c052Smrgelse case e in #(
98761e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
98771e42c052Smrgesac
98783fe82118Smrgfi
98791e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
98801e42c052Smrgesac
98813fe82118Smrgfi
98823a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
98833a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
98843fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
98853fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
98863fe82118Smrgfi
98873fe82118Smrg
98883fe82118Smrgfound="no"
98893fe82118Smrg
98903fe82118Smrg	if test $found = "no" ; then
98913e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
98923fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98933fe82118Smrg		fi
98943fe82118Smrg
98953e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
98963fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
98973fe82118Smrg		fi
98983fe82118Smrg
98993fe82118Smrg		CFLAGS="$CFLAGS -Wsequence-point"
99003fe82118Smrg
99013a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
99023a99fc18Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
99033fe82118Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
99043a99fc18Smrg		if eval test \${$cacheid+y}
99053a99fc18Smrgthen :
99063a99fc18Smrg  printf %s "(cached) " >&6
99071e42c052Smrgelse case e in #(
99081e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99093fe82118Smrg/* end confdefs.h.  */
99103fe82118Smrgint i;
99113fe82118Smrgint
99123a99fc18Smrgmain (void)
99133fe82118Smrg{
99143fe82118Smrg
99153fe82118Smrg  ;
99163fe82118Smrg  return 0;
99173fe82118Smrg}
99183fe82118Smrg_ACEOF
99193a99fc18Smrgif ac_fn_c_try_link "$LINENO"
99203a99fc18Smrgthen :
99213fe82118Smrg  eval $cacheid=yes
99221e42c052Smrgelse case e in #(
99231e42c052Smrg  e) eval $cacheid=no ;;
99241e42c052Smrgesac
99253fe82118Smrgfi
99263a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
99271e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
99281e42c052Smrgesac
99293fe82118Smrgfi
99303fe82118Smrg
99313fe82118Smrg
99323fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
99333fe82118Smrg
99343fe82118Smrg		eval supported=\$$cacheid
99353a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
99363a99fc18Smrgprintf "%s\n" "$supported" >&6; }
99373fe82118Smrg		if test "$supported" = "yes" ; then
99383fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
99393fe82118Smrg			found="yes"
99403fe82118Smrg		fi
99413fe82118Smrg	fi
99423fe82118Smrg
99433fe82118Smrg
99443fe82118Smrg
99453fe82118Smrg
99463fe82118Smrg
99473fe82118Smrg
99483fe82118Smrg
99493fe82118Smrg
99503fe82118Smrg
99513fe82118Smrg
99523fe82118Smrg
99533fe82118Smrg
99543fe82118Smrg
99553fe82118Smrg
99563fe82118Smrg
99573fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
99583fe82118Smrg
99593fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
99603fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99613a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
99623a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
99633a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
99643a99fc18Smrgthen :
99653a99fc18Smrg  printf %s "(cached) " >&6
99661e42c052Smrgelse case e in #(
99671e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99683fe82118Smrg/* end confdefs.h.  */
99693fe82118Smrgint i;
99703fe82118Smrg_ACEOF
99713a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
99723a99fc18Smrgthen :
99733fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
99741e42c052Smrgelse case e in #(
99751e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
99761e42c052Smrgesac
99773fe82118Smrgfi
99781e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
99791e42c052Smrgesac
99803fe82118Smrgfi
99813a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
99823a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
99833fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
99843fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
99853fe82118Smrgfi
99863fe82118Smrg
99873fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
99883fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
99893fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99903fe82118Smrg	fi
99913fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
99923a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
99933a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
99943a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
99953a99fc18Smrgthen :
99963a99fc18Smrg  printf %s "(cached) " >&6
99971e42c052Smrgelse case e in #(
99981e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99993fe82118Smrg/* end confdefs.h.  */
100003fe82118Smrgint i;
100013fe82118Smrg_ACEOF
100023a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
100033a99fc18Smrgthen :
100043fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
100051e42c052Smrgelse case e in #(
100061e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
100071e42c052Smrgesac
100083fe82118Smrgfi
100091e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
100101e42c052Smrgesac
100113fe82118Smrgfi
100123a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
100133a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
100143fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
100153fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
100163fe82118Smrgfi
100173fe82118Smrg
100183fe82118Smrgfound="no"
100193fe82118Smrg
100203fe82118Smrg	if test $found = "no" ; then
100213e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
100223fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100233fe82118Smrg		fi
100243fe82118Smrg
100253e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
100263fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
100273fe82118Smrg		fi
100283fe82118Smrg
100293fe82118Smrg		CFLAGS="$CFLAGS -Wreturn-type"
100303fe82118Smrg
100313a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
100323a99fc18Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
100333fe82118Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
100343a99fc18Smrg		if eval test \${$cacheid+y}
100353a99fc18Smrgthen :
100363a99fc18Smrg  printf %s "(cached) " >&6
100371e42c052Smrgelse case e in #(
100381e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100393fe82118Smrg/* end confdefs.h.  */
100403fe82118Smrgint i;
100413fe82118Smrgint
100423a99fc18Smrgmain (void)
100433fe82118Smrg{
100443fe82118Smrg
100453fe82118Smrg  ;
100463fe82118Smrg  return 0;
100473fe82118Smrg}
100483fe82118Smrg_ACEOF
100493a99fc18Smrgif ac_fn_c_try_link "$LINENO"
100503a99fc18Smrgthen :
100513fe82118Smrg  eval $cacheid=yes
100521e42c052Smrgelse case e in #(
100531e42c052Smrg  e) eval $cacheid=no ;;
100541e42c052Smrgesac
100553fe82118Smrgfi
100563a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
100571e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
100581e42c052Smrgesac
100593fe82118Smrgfi
100603fe82118Smrg
100613fe82118Smrg
100623fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
100633fe82118Smrg
100643fe82118Smrg		eval supported=\$$cacheid
100653a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
100663a99fc18Smrgprintf "%s\n" "$supported" >&6; }
100673fe82118Smrg		if test "$supported" = "yes" ; then
100683fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
100693fe82118Smrg			found="yes"
100703fe82118Smrg		fi
100713fe82118Smrg	fi
100723fe82118Smrg
100733fe82118Smrg
100743fe82118Smrg
100753fe82118Smrg
100763fe82118Smrg
100773fe82118Smrg
100783fe82118Smrg
100793fe82118Smrg
100803fe82118Smrg
100813fe82118Smrg
100823fe82118Smrg
100833fe82118Smrg
100843fe82118Smrg
100853fe82118Smrg
100863fe82118Smrg
100873fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
100883fe82118Smrg
100893fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
100903fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100913a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
100923a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
100933a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
100943a99fc18Smrgthen :
100953a99fc18Smrg  printf %s "(cached) " >&6
100961e42c052Smrgelse case e in #(
100971e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100983fe82118Smrg/* end confdefs.h.  */
100993fe82118Smrgint i;
101003fe82118Smrg_ACEOF
101013a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
101023a99fc18Smrgthen :
101033fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
101041e42c052Smrgelse case e in #(
101051e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
101061e42c052Smrgesac
101073fe82118Smrgfi
101081e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
101091e42c052Smrgesac
101103fe82118Smrgfi
101113a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
101123a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
101133fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
101143fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
101153fe82118Smrgfi
101163fe82118Smrg
101173fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
101183fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101193fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101203fe82118Smrg	fi
101213fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
101223a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
101233a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
101243a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
101253a99fc18Smrgthen :
101263a99fc18Smrg  printf %s "(cached) " >&6
101271e42c052Smrgelse case e in #(
101281e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101293fe82118Smrg/* end confdefs.h.  */
101303fe82118Smrgint i;
101313fe82118Smrg_ACEOF
101323a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
101333a99fc18Smrgthen :
101343fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
101351e42c052Smrgelse case e in #(
101361e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
101371e42c052Smrgesac
101383fe82118Smrgfi
101391e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
101401e42c052Smrgesac
101413fe82118Smrgfi
101423a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
101433a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
101443fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
101453fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
101463fe82118Smrgfi
101473fe82118Smrg
101483fe82118Smrgfound="no"
101493fe82118Smrg
101503fe82118Smrg	if test $found = "no" ; then
101513e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101523fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101533fe82118Smrg		fi
101543fe82118Smrg
101553e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
101563fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
101573fe82118Smrg		fi
101583fe82118Smrg
101593fe82118Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
101603fe82118Smrg
101613a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
101623a99fc18Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
101633fe82118Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
101643a99fc18Smrg		if eval test \${$cacheid+y}
101653a99fc18Smrgthen :
101663a99fc18Smrg  printf %s "(cached) " >&6
101671e42c052Smrgelse case e in #(
101681e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101693fe82118Smrg/* end confdefs.h.  */
101703fe82118Smrgint i;
101713fe82118Smrgint
101723a99fc18Smrgmain (void)
101733fe82118Smrg{
101743fe82118Smrg
101753fe82118Smrg  ;
101763fe82118Smrg  return 0;
101773fe82118Smrg}
101783fe82118Smrg_ACEOF
101793a99fc18Smrgif ac_fn_c_try_link "$LINENO"
101803a99fc18Smrgthen :
101813fe82118Smrg  eval $cacheid=yes
101821e42c052Smrgelse case e in #(
101831e42c052Smrg  e) eval $cacheid=no ;;
101841e42c052Smrgesac
101853fe82118Smrgfi
101863a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
101871e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
101881e42c052Smrgesac
101893fe82118Smrgfi
101903fe82118Smrg
101913fe82118Smrg
101923fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
101933fe82118Smrg
101943fe82118Smrg		eval supported=\$$cacheid
101953a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
101963a99fc18Smrgprintf "%s\n" "$supported" >&6; }
101973fe82118Smrg		if test "$supported" = "yes" ; then
101983fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
101993fe82118Smrg			found="yes"
102003fe82118Smrg		fi
102013fe82118Smrg	fi
102023fe82118Smrg
102033fe82118Smrg
102043fe82118Smrg
102053fe82118Smrg
102063fe82118Smrg
102073fe82118Smrg
102083fe82118Smrg
102093fe82118Smrg
102103fe82118Smrg
102113fe82118Smrg
102123fe82118Smrg
102133fe82118Smrg
102143fe82118Smrg
102153fe82118Smrg
102163fe82118Smrg
102173fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
102183fe82118Smrg
102193fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
102203fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102213a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
102223a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
102233a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
102243a99fc18Smrgthen :
102253a99fc18Smrg  printf %s "(cached) " >&6
102261e42c052Smrgelse case e in #(
102271e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102283fe82118Smrg/* end confdefs.h.  */
102293fe82118Smrgint i;
102303fe82118Smrg_ACEOF
102313a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
102323a99fc18Smrgthen :
102333fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
102341e42c052Smrgelse case e in #(
102351e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
102361e42c052Smrgesac
102373fe82118Smrgfi
102381e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
102391e42c052Smrgesac
102403fe82118Smrgfi
102413a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
102423a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
102433fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
102443fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
102453fe82118Smrgfi
102463fe82118Smrg
102473fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
102483fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
102493fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102503fe82118Smrg	fi
102513fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
102523a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
102533a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
102543a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
102553a99fc18Smrgthen :
102563a99fc18Smrg  printf %s "(cached) " >&6
102571e42c052Smrgelse case e in #(
102581e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102593fe82118Smrg/* end confdefs.h.  */
102603fe82118Smrgint i;
102613fe82118Smrg_ACEOF
102623a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
102633a99fc18Smrgthen :
102643fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
102651e42c052Smrgelse case e in #(
102661e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
102671e42c052Smrgesac
102683fe82118Smrgfi
102691e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
102701e42c052Smrgesac
102713fe82118Smrgfi
102723a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
102733a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
102743fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
102753fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
102763fe82118Smrgfi
102773fe82118Smrg
102783fe82118Smrgfound="no"
102793fe82118Smrg
102803fe82118Smrg	if test $found = "no" ; then
102813e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
102823fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102833fe82118Smrg		fi
102843fe82118Smrg
102853e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
102863fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
102873fe82118Smrg		fi
102883fe82118Smrg
102893fe82118Smrg		CFLAGS="$CFLAGS -Warray-bounds"
102903fe82118Smrg
102913a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
102923a99fc18Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
102933fe82118Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
102943a99fc18Smrg		if eval test \${$cacheid+y}
102953a99fc18Smrgthen :
102963a99fc18Smrg  printf %s "(cached) " >&6
102971e42c052Smrgelse case e in #(
102981e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102993fe82118Smrg/* end confdefs.h.  */
103003fe82118Smrgint i;
103013fe82118Smrgint
103023a99fc18Smrgmain (void)
103033fe82118Smrg{
103043fe82118Smrg
103053fe82118Smrg  ;
103063fe82118Smrg  return 0;
103073fe82118Smrg}
103083fe82118Smrg_ACEOF
103093a99fc18Smrgif ac_fn_c_try_link "$LINENO"
103103a99fc18Smrgthen :
103113fe82118Smrg  eval $cacheid=yes
103121e42c052Smrgelse case e in #(
103131e42c052Smrg  e) eval $cacheid=no ;;
103141e42c052Smrgesac
103153fe82118Smrgfi
103163a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
103171e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
103181e42c052Smrgesac
103193fe82118Smrgfi
103203fe82118Smrg
103213fe82118Smrg
103223fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
103233fe82118Smrg
103243fe82118Smrg		eval supported=\$$cacheid
103253a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
103263a99fc18Smrgprintf "%s\n" "$supported" >&6; }
103273fe82118Smrg		if test "$supported" = "yes" ; then
103283fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
103293fe82118Smrg			found="yes"
103303fe82118Smrg		fi
103313fe82118Smrg	fi
103323fe82118Smrg
103333fe82118Smrg
103343fe82118Smrg
103353fe82118Smrg
103363fe82118Smrg
103373fe82118Smrg
103383fe82118Smrg
103393fe82118Smrg
103403fe82118Smrg
103413fe82118Smrg
103423fe82118Smrg
103433fe82118Smrg
103443fe82118Smrg
103453fe82118Smrg
103463fe82118Smrg
103473fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
103483fe82118Smrg
103493fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
103503fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103513a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
103523a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
103533a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
103543a99fc18Smrgthen :
103553a99fc18Smrg  printf %s "(cached) " >&6
103561e42c052Smrgelse case e in #(
103571e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103583fe82118Smrg/* end confdefs.h.  */
103593fe82118Smrgint i;
103603fe82118Smrg_ACEOF
103613a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
103623a99fc18Smrgthen :
103633fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
103641e42c052Smrgelse case e in #(
103651e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
103661e42c052Smrgesac
103673fe82118Smrgfi
103681e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
103691e42c052Smrgesac
103703fe82118Smrgfi
103713a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
103723a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
103733fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
103743fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
103753fe82118Smrgfi
103763fe82118Smrg
103773fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
103783fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
103793fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103803fe82118Smrg	fi
103813fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
103823a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
103833a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
103843a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
103853a99fc18Smrgthen :
103863a99fc18Smrg  printf %s "(cached) " >&6
103871e42c052Smrgelse case e in #(
103881e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103893fe82118Smrg/* end confdefs.h.  */
103903fe82118Smrgint i;
103913fe82118Smrg_ACEOF
103923a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
103933a99fc18Smrgthen :
103943fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
103951e42c052Smrgelse case e in #(
103961e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
103971e42c052Smrgesac
103983fe82118Smrgfi
103991e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
104001e42c052Smrgesac
104013fe82118Smrgfi
104023a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
104033a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
104043fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
104053fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
104063fe82118Smrgfi
104073fe82118Smrg
104083fe82118Smrgfound="no"
104093fe82118Smrg
104103fe82118Smrg	if test $found = "no" ; then
104113e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
104123fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
104133fe82118Smrg		fi
104143fe82118Smrg
104153e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
104163fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
104173fe82118Smrg		fi
104183fe82118Smrg
104193fe82118Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
104203fe82118Smrg
104213a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
104223a99fc18Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
104233fe82118Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
104243a99fc18Smrg		if eval test \${$cacheid+y}
104253a99fc18Smrgthen :
104263a99fc18Smrg  printf %s "(cached) " >&6
104271e42c052Smrgelse case e in #(
104281e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104293fe82118Smrg/* end confdefs.h.  */
104303fe82118Smrgint i;
104313fe82118Smrgint
104323a99fc18Smrgmain (void)
104333fe82118Smrg{
104343fe82118Smrg
104353fe82118Smrg  ;
104363fe82118Smrg  return 0;
104373fe82118Smrg}
104383fe82118Smrg_ACEOF
104393a99fc18Smrgif ac_fn_c_try_link "$LINENO"
104403a99fc18Smrgthen :
104413fe82118Smrg  eval $cacheid=yes
104421e42c052Smrgelse case e in #(
104431e42c052Smrg  e) eval $cacheid=no ;;
104441e42c052Smrgesac
104453fe82118Smrgfi
104463a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
104471e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
104481e42c052Smrgesac
104493fe82118Smrgfi
104503fe82118Smrg
104513fe82118Smrg
104523fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
104533fe82118Smrg
104543fe82118Smrg		eval supported=\$$cacheid
104553a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
104563a99fc18Smrgprintf "%s\n" "$supported" >&6; }
104573fe82118Smrg		if test "$supported" = "yes" ; then
104583fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
104593fe82118Smrg			found="yes"
104603fe82118Smrg		fi
104613fe82118Smrg	fi
104623fe82118Smrg
104633fe82118Smrg
104643fe82118Smrg
104653fe82118Smrg
104663fe82118Smrg
104673fe82118Smrg
104683fe82118Smrg
104693fe82118Smrg
104703fe82118Smrg
104713fe82118Smrg
104723fe82118Smrg
104733fe82118Smrg
104743fe82118Smrg
104753fe82118Smrg
104763fe82118Smrg
104773fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
104783fe82118Smrg
104793fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
104803fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
104813a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
104823a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
104833a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
104843a99fc18Smrgthen :
104853a99fc18Smrg  printf %s "(cached) " >&6
104861e42c052Smrgelse case e in #(
104871e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104883fe82118Smrg/* end confdefs.h.  */
104893fe82118Smrgint i;
104903fe82118Smrg_ACEOF
104913a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
104923a99fc18Smrgthen :
104933fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
104941e42c052Smrgelse case e in #(
104951e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
104961e42c052Smrgesac
104973fe82118Smrgfi
104981e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
104991e42c052Smrgesac
105003fe82118Smrgfi
105013a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
105023a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
105033fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
105043fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
105053fe82118Smrgfi
105063fe82118Smrg
105073fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
105083fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
105093fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
105103fe82118Smrg	fi
105113fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
105123a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
105133a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
105143a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
105153a99fc18Smrgthen :
105163a99fc18Smrg  printf %s "(cached) " >&6
105171e42c052Smrgelse case e in #(
105181e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105193fe82118Smrg/* end confdefs.h.  */
105203fe82118Smrgint i;
105213fe82118Smrg_ACEOF
105223a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
105233a99fc18Smrgthen :
105243fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
105251e42c052Smrgelse case e in #(
105261e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
105271e42c052Smrgesac
105283fe82118Smrgfi
105291e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
105301e42c052Smrgesac
105313fe82118Smrgfi
105323a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
105333a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
105343fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
105353fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
105363fe82118Smrgfi
105373fe82118Smrg
105383fe82118Smrgfound="no"
105393fe82118Smrg
105403fe82118Smrg	if test $found = "no" ; then
105413e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
105423fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
105433fe82118Smrg		fi
105443fe82118Smrg
105453e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
105463fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
105473fe82118Smrg		fi
105483fe82118Smrg
105493fe82118Smrg		CFLAGS="$CFLAGS -Waddress"
105503fe82118Smrg
105513a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
105523a99fc18Smrgprintf %s "checking if $CC supports -Waddress... " >&6; }
105533fe82118Smrg		cacheid=xorg_cv_cc_flag__Waddress
105543a99fc18Smrg		if eval test \${$cacheid+y}
105553a99fc18Smrgthen :
105563a99fc18Smrg  printf %s "(cached) " >&6
105571e42c052Smrgelse case e in #(
105581e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105593fe82118Smrg/* end confdefs.h.  */
105603fe82118Smrgint i;
105613fe82118Smrgint
105623a99fc18Smrgmain (void)
105633fe82118Smrg{
105643fe82118Smrg
105653fe82118Smrg  ;
105663fe82118Smrg  return 0;
105673fe82118Smrg}
105683fe82118Smrg_ACEOF
105693a99fc18Smrgif ac_fn_c_try_link "$LINENO"
105703a99fc18Smrgthen :
105713fe82118Smrg  eval $cacheid=yes
105721e42c052Smrgelse case e in #(
105731e42c052Smrg  e) eval $cacheid=no ;;
105741e42c052Smrgesac
105753fe82118Smrgfi
105763a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
105771e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
105781e42c052Smrgesac
105793fe82118Smrgfi
105803fe82118Smrg
105813fe82118Smrg
105823fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
105833fe82118Smrg
105843fe82118Smrg		eval supported=\$$cacheid
105853a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
105863a99fc18Smrgprintf "%s\n" "$supported" >&6; }
105873fe82118Smrg		if test "$supported" = "yes" ; then
105883fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
105893fe82118Smrg			found="yes"
105903fe82118Smrg		fi
105913fe82118Smrg	fi
105923fe82118Smrg
105933fe82118Smrg
105943fe82118Smrg
105953fe82118Smrg
105963fe82118Smrg
105973fe82118Smrg
105983fe82118Smrg
105993fe82118Smrg
106003fe82118Smrg
106013fe82118Smrg
106023fe82118Smrg
106033fe82118Smrg
106043fe82118Smrg
106053fe82118Smrg
106063fe82118Smrg
106073fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
106083fe82118Smrg
106093fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
106103fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106113a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
106123a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
106133a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
106143a99fc18Smrgthen :
106153a99fc18Smrg  printf %s "(cached) " >&6
106161e42c052Smrgelse case e in #(
106171e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106183fe82118Smrg/* end confdefs.h.  */
106193fe82118Smrgint i;
106203fe82118Smrg_ACEOF
106213a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
106223a99fc18Smrgthen :
106233fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
106241e42c052Smrgelse case e in #(
106251e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
106261e42c052Smrgesac
106273fe82118Smrgfi
106281e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
106291e42c052Smrgesac
106303fe82118Smrgfi
106313a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
106323a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
106333fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
106343fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
106353fe82118Smrgfi
106363fe82118Smrg
106373fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
106383fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
106393fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106403fe82118Smrg	fi
106413fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
106423a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
106433a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
106443a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
106453a99fc18Smrgthen :
106463a99fc18Smrg  printf %s "(cached) " >&6
106471e42c052Smrgelse case e in #(
106481e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106493fe82118Smrg/* end confdefs.h.  */
106503fe82118Smrgint i;
106513fe82118Smrg_ACEOF
106523a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
106533a99fc18Smrgthen :
106543fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
106551e42c052Smrgelse case e in #(
106561e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
106571e42c052Smrgesac
106583fe82118Smrgfi
106591e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
106601e42c052Smrgesac
106613fe82118Smrgfi
106623a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
106633a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
106643fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
106653fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
106663fe82118Smrgfi
106673fe82118Smrg
106683fe82118Smrgfound="no"
106693fe82118Smrg
106703fe82118Smrg	if test $found = "no" ; then
106713e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
106723fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106733fe82118Smrg		fi
106743fe82118Smrg
106753e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
106763fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
106773fe82118Smrg		fi
106783fe82118Smrg
106793fe82118Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
106803fe82118Smrg
106813a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
106823a99fc18Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
106833fe82118Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
106843a99fc18Smrg		if eval test \${$cacheid+y}
106853a99fc18Smrgthen :
106863a99fc18Smrg  printf %s "(cached) " >&6
106871e42c052Smrgelse case e in #(
106881e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106893fe82118Smrg/* end confdefs.h.  */
106903fe82118Smrgint i;
106913fe82118Smrgint
106923a99fc18Smrgmain (void)
106933fe82118Smrg{
106943fe82118Smrg
106953fe82118Smrg  ;
106963fe82118Smrg  return 0;
106973fe82118Smrg}
106983fe82118Smrg_ACEOF
106993a99fc18Smrgif ac_fn_c_try_link "$LINENO"
107003a99fc18Smrgthen :
107013fe82118Smrg  eval $cacheid=yes
107021e42c052Smrgelse case e in #(
107031e42c052Smrg  e) eval $cacheid=no ;;
107041e42c052Smrgesac
107053fe82118Smrgfi
107063a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
107071e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
107081e42c052Smrgesac
107093fe82118Smrgfi
107103fe82118Smrg
107113fe82118Smrg
107123fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
107133fe82118Smrg
107143fe82118Smrg		eval supported=\$$cacheid
107153a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
107163a99fc18Smrgprintf "%s\n" "$supported" >&6; }
107173fe82118Smrg		if test "$supported" = "yes" ; then
107183fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
107193fe82118Smrg			found="yes"
107203fe82118Smrg		fi
107213fe82118Smrg	fi
107223fe82118Smrg
107233fe82118Smrg
107243fe82118Smrg
107253fe82118Smrg
107263fe82118Smrg
107273fe82118Smrg
107283fe82118Smrg
107293fe82118Smrg
107303fe82118Smrg
107313fe82118Smrg
107323fe82118Smrg
107333fe82118Smrg
107343fe82118Smrg
107353fe82118Smrg
107363fe82118Smrg
107373fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
107383fe82118Smrg
107393fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
107403fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
107413a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
107423a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
107433a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
107443a99fc18Smrgthen :
107453a99fc18Smrg  printf %s "(cached) " >&6
107461e42c052Smrgelse case e in #(
107471e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107483fe82118Smrg/* end confdefs.h.  */
107493fe82118Smrgint i;
107503fe82118Smrg_ACEOF
107513a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
107523a99fc18Smrgthen :
107533fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
107541e42c052Smrgelse case e in #(
107551e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
107561e42c052Smrgesac
107573fe82118Smrgfi
107581e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
107591e42c052Smrgesac
107603fe82118Smrgfi
107613a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
107623a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
107633fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
107643fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
107653fe82118Smrgfi
107663fe82118Smrg
107673fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
107683fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
107693fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
107703fe82118Smrg	fi
107713fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
107723a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
107733a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
107743a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
107753a99fc18Smrgthen :
107763a99fc18Smrg  printf %s "(cached) " >&6
107771e42c052Smrgelse case e in #(
107781e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107793fe82118Smrg/* end confdefs.h.  */
107803fe82118Smrgint i;
107813fe82118Smrg_ACEOF
107823a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
107833a99fc18Smrgthen :
107843fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
107851e42c052Smrgelse case e in #(
107861e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
107871e42c052Smrgesac
107883fe82118Smrgfi
107891e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
107901e42c052Smrgesac
107913fe82118Smrgfi
107923a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
107933a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
107943fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
107953fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
107963fe82118Smrgfi
107973fe82118Smrg
107983fe82118Smrgfound="no"
107993fe82118Smrg
108003fe82118Smrg	if test $found = "no" ; then
108013e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
108023fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
108033fe82118Smrg		fi
108043fe82118Smrg
108053e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
108063fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
108073fe82118Smrg		fi
108083fe82118Smrg
108093fe82118Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
108103fe82118Smrg
108113a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
108123a99fc18Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
108133fe82118Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
108143a99fc18Smrg		if eval test \${$cacheid+y}
108153a99fc18Smrgthen :
108163a99fc18Smrg  printf %s "(cached) " >&6
108171e42c052Smrgelse case e in #(
108181e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108193fe82118Smrg/* end confdefs.h.  */
108203fe82118Smrgint i;
108213fe82118Smrgint
108223a99fc18Smrgmain (void)
108233fe82118Smrg{
108243fe82118Smrg
108253fe82118Smrg  ;
108263fe82118Smrg  return 0;
108273fe82118Smrg}
108283fe82118Smrg_ACEOF
108293a99fc18Smrgif ac_fn_c_try_link "$LINENO"
108303a99fc18Smrgthen :
108313fe82118Smrg  eval $cacheid=yes
108321e42c052Smrgelse case e in #(
108331e42c052Smrg  e) eval $cacheid=no ;;
108341e42c052Smrgesac
108353fe82118Smrgfi
108363a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
108371e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
108381e42c052Smrgesac
108393fe82118Smrgfi
108403fe82118Smrg
108413fe82118Smrg
108423fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
108433fe82118Smrg
108443fe82118Smrg		eval supported=\$$cacheid
108453a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
108463a99fc18Smrgprintf "%s\n" "$supported" >&6; }
108473fe82118Smrg		if test "$supported" = "yes" ; then
108483fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
108493fe82118Smrg			found="yes"
108503fe82118Smrg		fi
108513fe82118Smrg	fi
108523fe82118Smrg
108533fe82118Smrg
108543fe82118Smrgfi
108553fe82118Smrg
108563fe82118Smrg
108573fe82118Smrg
108583fe82118Smrg
108593fe82118Smrg
108603fe82118Smrg
108613fe82118Smrg
108623fe82118Smrg		CWARNFLAGS="$BASE_CFLAGS"
108633fe82118Smrg		if  test "x$GCC" = xyes ; then
108643fe82118Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
108653fe82118Smrg		fi
108663fe82118Smrg
108673fe82118Smrg
108683fe82118Smrg
108693fe82118Smrg
108703fe82118Smrg
108713fe82118Smrg
108723fe82118Smrg
108733fe82118Smrg
108743fe82118Smrg# Check whether --enable-strict-compilation was given.
108753a99fc18Smrgif test ${enable_strict_compilation+y}
108763a99fc18Smrgthen :
108773fe82118Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
108781e42c052Smrgelse case e in #(
108791e42c052Smrg  e) STRICT_COMPILE=no ;;
108801e42c052Smrgesac
108813fe82118Smrgfi
108823fe82118Smrg
108833fe82118Smrg
108843fe82118Smrg
108853fe82118Smrg
108863fe82118Smrg
108873fe82118Smrg
108883fe82118SmrgSTRICT_CFLAGS=""
108893fe82118Smrg
108903fe82118Smrg
108913fe82118Smrg
108923fe82118Smrg
108933fe82118Smrg
108943fe82118Smrg
108953fe82118Smrg
108963fe82118Smrg
108973fe82118Smrg
108983fe82118Smrg
108993fe82118Smrg
109003fe82118Smrg
109013fe82118Smrg
109023fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
109033fe82118Smrg
109043fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
109053fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
109063a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
109073a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
109083a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
109093a99fc18Smrgthen :
109103a99fc18Smrg  printf %s "(cached) " >&6
109111e42c052Smrgelse case e in #(
109121e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109133fe82118Smrg/* end confdefs.h.  */
109143fe82118Smrgint i;
109153fe82118Smrg_ACEOF
109163a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
109173a99fc18Smrgthen :
109183fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
109191e42c052Smrgelse case e in #(
109201e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
109211e42c052Smrgesac
109223fe82118Smrgfi
109231e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
109241e42c052Smrgesac
109253fe82118Smrgfi
109263a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
109273a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
109283fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
109293fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
109303fe82118Smrgfi
109313fe82118Smrg
109323fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
109333fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
109343fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
109353fe82118Smrg	fi
109363fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
109373a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
109383a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
109393a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
109403a99fc18Smrgthen :
109413a99fc18Smrg  printf %s "(cached) " >&6
109421e42c052Smrgelse case e in #(
109431e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109443fe82118Smrg/* end confdefs.h.  */
109453fe82118Smrgint i;
109463fe82118Smrg_ACEOF
109473a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
109483a99fc18Smrgthen :
109493fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
109501e42c052Smrgelse case e in #(
109511e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
109521e42c052Smrgesac
109533fe82118Smrgfi
109541e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
109551e42c052Smrgesac
109563fe82118Smrgfi
109573a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
109583a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
109593fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
109603fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
109613fe82118Smrgfi
109623fe82118Smrg
109633fe82118Smrgfound="no"
109643fe82118Smrg
109653fe82118Smrg	if test $found = "no" ; then
109663e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
109673fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
109683fe82118Smrg		fi
109693fe82118Smrg
109703e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
109713fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
109723fe82118Smrg		fi
109733fe82118Smrg
109743fe82118Smrg		CFLAGS="$CFLAGS -pedantic"
109753fe82118Smrg
109763a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
109773a99fc18Smrgprintf %s "checking if $CC supports -pedantic... " >&6; }
109783fe82118Smrg		cacheid=xorg_cv_cc_flag__pedantic
109793a99fc18Smrg		if eval test \${$cacheid+y}
109803a99fc18Smrgthen :
109813a99fc18Smrg  printf %s "(cached) " >&6
109821e42c052Smrgelse case e in #(
109831e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109843fe82118Smrg/* end confdefs.h.  */
109853fe82118Smrgint i;
109863fe82118Smrgint
109873a99fc18Smrgmain (void)
109883fe82118Smrg{
109893fe82118Smrg
109903fe82118Smrg  ;
109913fe82118Smrg  return 0;
109923fe82118Smrg}
109933fe82118Smrg_ACEOF
109943a99fc18Smrgif ac_fn_c_try_link "$LINENO"
109953a99fc18Smrgthen :
109963fe82118Smrg  eval $cacheid=yes
109971e42c052Smrgelse case e in #(
109981e42c052Smrg  e) eval $cacheid=no ;;
109991e42c052Smrgesac
110003fe82118Smrgfi
110013a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
110021e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
110031e42c052Smrgesac
110043fe82118Smrgfi
110053fe82118Smrg
110063fe82118Smrg
110073fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
110083fe82118Smrg
110093fe82118Smrg		eval supported=\$$cacheid
110103a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
110113a99fc18Smrgprintf "%s\n" "$supported" >&6; }
110123fe82118Smrg		if test "$supported" = "yes" ; then
110133fe82118Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
110143fe82118Smrg			found="yes"
110153fe82118Smrg		fi
110163fe82118Smrg	fi
110173fe82118Smrg
110183fe82118Smrg
110193fe82118Smrg
110203fe82118Smrg
110213fe82118Smrg
110223fe82118Smrg
110233fe82118Smrg
110243fe82118Smrg
110253fe82118Smrg
110263fe82118Smrg
110273fe82118Smrg
110283fe82118Smrg
110293fe82118Smrg
110303fe82118Smrg
110313fe82118Smrg
110323fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
110333fe82118Smrg
110343fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
110353fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
110363a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
110373a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
110383a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
110393a99fc18Smrgthen :
110403a99fc18Smrg  printf %s "(cached) " >&6
110411e42c052Smrgelse case e in #(
110421e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
110433fe82118Smrg/* end confdefs.h.  */
110443fe82118Smrgint i;
110453fe82118Smrg_ACEOF
110463a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
110473a99fc18Smrgthen :
110483fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
110491e42c052Smrgelse case e in #(
110501e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
110511e42c052Smrgesac
110523fe82118Smrgfi
110531e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
110541e42c052Smrgesac
110553fe82118Smrgfi
110563a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
110573a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
110583fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
110593fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
110603fe82118Smrgfi
110613fe82118Smrg
110623fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
110633fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
110643fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
110653fe82118Smrg	fi
110663fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
110673a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
110683a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
110693a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
110703a99fc18Smrgthen :
110713a99fc18Smrg  printf %s "(cached) " >&6
110721e42c052Smrgelse case e in #(
110731e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
110743fe82118Smrg/* end confdefs.h.  */
110753fe82118Smrgint i;
110763fe82118Smrg_ACEOF
110773a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
110783a99fc18Smrgthen :
110793fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
110801e42c052Smrgelse case e in #(
110811e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
110821e42c052Smrgesac
110833fe82118Smrgfi
110841e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
110851e42c052Smrgesac
110863fe82118Smrgfi
110873a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
110883a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
110893fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
110903fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
110913fe82118Smrgfi
110923fe82118Smrg
110933fe82118Smrgfound="no"
110943fe82118Smrg
110953fe82118Smrg	if test $found = "no" ; then
110963e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
110973fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
110983fe82118Smrg		fi
110993fe82118Smrg
111003e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
111013fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
111023fe82118Smrg		fi
111033fe82118Smrg
111043fe82118Smrg		CFLAGS="$CFLAGS -Werror"
111053fe82118Smrg
111063a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
111073a99fc18Smrgprintf %s "checking if $CC supports -Werror... " >&6; }
111083fe82118Smrg		cacheid=xorg_cv_cc_flag__Werror
111093a99fc18Smrg		if eval test \${$cacheid+y}
111103a99fc18Smrgthen :
111113a99fc18Smrg  printf %s "(cached) " >&6
111121e42c052Smrgelse case e in #(
111131e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
111143fe82118Smrg/* end confdefs.h.  */
111153fe82118Smrgint i;
111163fe82118Smrgint
111173a99fc18Smrgmain (void)
111183fe82118Smrg{
111193fe82118Smrg
111203fe82118Smrg  ;
111213fe82118Smrg  return 0;
111223fe82118Smrg}
111233fe82118Smrg_ACEOF
111243a99fc18Smrgif ac_fn_c_try_link "$LINENO"
111253a99fc18Smrgthen :
111263fe82118Smrg  eval $cacheid=yes
111271e42c052Smrgelse case e in #(
111281e42c052Smrg  e) eval $cacheid=no ;;
111291e42c052Smrgesac
111303fe82118Smrgfi
111313a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
111321e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
111331e42c052Smrgesac
111343fe82118Smrgfi
111353fe82118Smrg
111363fe82118Smrg
111373fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
111383fe82118Smrg
111393fe82118Smrg		eval supported=\$$cacheid
111403a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
111413a99fc18Smrgprintf "%s\n" "$supported" >&6; }
111423fe82118Smrg		if test "$supported" = "yes" ; then
111433fe82118Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
111443fe82118Smrg			found="yes"
111453fe82118Smrg		fi
111463fe82118Smrg	fi
111473fe82118Smrg
111483fe82118Smrg	if test $found = "no" ; then
111493e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
111503fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
111513fe82118Smrg		fi
111523fe82118Smrg
111533e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
111543fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
111553fe82118Smrg		fi
111563fe82118Smrg
111573fe82118Smrg		CFLAGS="$CFLAGS -errwarn"
111583fe82118Smrg
111593a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
111603a99fc18Smrgprintf %s "checking if $CC supports -errwarn... " >&6; }
111613fe82118Smrg		cacheid=xorg_cv_cc_flag__errwarn
111623a99fc18Smrg		if eval test \${$cacheid+y}
111633a99fc18Smrgthen :
111643a99fc18Smrg  printf %s "(cached) " >&6
111651e42c052Smrgelse case e in #(
111661e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
111673fe82118Smrg/* end confdefs.h.  */
111683fe82118Smrgint i;
111693fe82118Smrgint
111703a99fc18Smrgmain (void)
111713fe82118Smrg{
111723fe82118Smrg
111733fe82118Smrg  ;
111743fe82118Smrg  return 0;
111753fe82118Smrg}
111763fe82118Smrg_ACEOF
111773a99fc18Smrgif ac_fn_c_try_link "$LINENO"
111783a99fc18Smrgthen :
111793fe82118Smrg  eval $cacheid=yes
111801e42c052Smrgelse case e in #(
111811e42c052Smrg  e) eval $cacheid=no ;;
111821e42c052Smrgesac
111833fe82118Smrgfi
111843a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
111851e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
111861e42c052Smrgesac
111873fe82118Smrgfi
111883fe82118Smrg
111893fe82118Smrg
111903fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
111913fe82118Smrg
111923fe82118Smrg		eval supported=\$$cacheid
111933a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
111943a99fc18Smrgprintf "%s\n" "$supported" >&6; }
111953fe82118Smrg		if test "$supported" = "yes" ; then
111963fe82118Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
111973fe82118Smrg			found="yes"
111983fe82118Smrg		fi
111993fe82118Smrg	fi
112003fe82118Smrg
112013fe82118Smrg
112023fe82118Smrg
112033fe82118Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
112043fe82118Smrg# activate it with -Werror, so we add it here explicitly.
112053fe82118Smrg
112063fe82118Smrg
112073fe82118Smrg
112083fe82118Smrg
112093fe82118Smrg
112103fe82118Smrg
112113fe82118Smrg
112123fe82118Smrg
112133fe82118Smrg
112143fe82118Smrg
112153fe82118Smrg
112163fe82118Smrg
112173fe82118Smrg
112183fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
112193fe82118Smrg
112203fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
112213fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
112223a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
112233a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
112243a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
112253a99fc18Smrgthen :
112263a99fc18Smrg  printf %s "(cached) " >&6
112271e42c052Smrgelse case e in #(
112281e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
112293fe82118Smrg/* end confdefs.h.  */
112303fe82118Smrgint i;
112313fe82118Smrg_ACEOF
112323a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
112333a99fc18Smrgthen :
112343fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
112351e42c052Smrgelse case e in #(
112361e42c052Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
112371e42c052Smrgesac
112383fe82118Smrgfi
112391e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
112401e42c052Smrgesac
112413fe82118Smrgfi
112423a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
112433a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
112443fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
112453fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
112463fe82118Smrgfi
112473fe82118Smrg
112483fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
112493fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
112503fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
112513fe82118Smrg	fi
112523fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
112533a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
112543a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
112553a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
112563a99fc18Smrgthen :
112573a99fc18Smrg  printf %s "(cached) " >&6
112581e42c052Smrgelse case e in #(
112591e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
112603fe82118Smrg/* end confdefs.h.  */
112613fe82118Smrgint i;
112623fe82118Smrg_ACEOF
112633a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
112643a99fc18Smrgthen :
112653fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
112661e42c052Smrgelse case e in #(
112671e42c052Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
112681e42c052Smrgesac
112693fe82118Smrgfi
112701e42c052Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
112711e42c052Smrgesac
112723fe82118Smrgfi
112733a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
112743a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
112753fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
112763fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
112773fe82118Smrgfi
112783fe82118Smrg
112793fe82118Smrgfound="no"
112803fe82118Smrg
112813fe82118Smrg	if test $found = "no" ; then
112823e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
112833fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
112843fe82118Smrg		fi
112853fe82118Smrg
112863e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
112873fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
112883fe82118Smrg		fi
112893fe82118Smrg
112903fe82118Smrg		CFLAGS="$CFLAGS -Werror=attributes"
112913fe82118Smrg
112923a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
112933a99fc18Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
112943e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_attributes
112953a99fc18Smrg		if eval test \${$cacheid+y}
112963a99fc18Smrgthen :
112973a99fc18Smrg  printf %s "(cached) " >&6
112981e42c052Smrgelse case e in #(
112991e42c052Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
113003fe82118Smrg/* end confdefs.h.  */
113013fe82118Smrgint i;
113023fe82118Smrgint
113033a99fc18Smrgmain (void)
113043fe82118Smrg{
113053fe82118Smrg
113063fe82118Smrg  ;
113073fe82118Smrg  return 0;
113083fe82118Smrg}
113093fe82118Smrg_ACEOF
113103a99fc18Smrgif ac_fn_c_try_link "$LINENO"
113113a99fc18Smrgthen :
113123fe82118Smrg  eval $cacheid=yes
113131e42c052Smrgelse case e in #(
113141e42c052Smrg  e) eval $cacheid=no ;;
113151e42c052Smrgesac
113163fe82118Smrgfi
113173a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
113181e42c052Smrg    conftest$ac_exeext conftest.$ac_ext ;;
113191e42c052Smrgesac
113203fe82118Smrgfi
113213fe82118Smrg
113223fe82118Smrg
113233fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
113243fe82118Smrg
113253fe82118Smrg		eval supported=\$$cacheid
113263a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
113273a99fc18Smrgprintf "%s\n" "$supported" >&6; }
113283fe82118Smrg		if test "$supported" = "yes" ; then
113293fe82118Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
113303fe82118Smrg			found="yes"
113313fe82118Smrg		fi
113323fe82118Smrg	fi
113333fe82118Smrg
113343fe82118Smrg
113353fe82118Smrg
113363fe82118Smrgif test "x$STRICT_COMPILE" = "xyes"; then
113373fe82118Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
113383fe82118Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
113393fe82118Smrgfi
113403fe82118Smrg
113413fe82118Smrg
113423fe82118Smrg
113433fe82118Smrg
113443fe82118Smrg
113453fe82118Smrg
113461e42c052Smrg
113471e42c052Smrg
113483fe82118Smrgcat >>confdefs.h <<_ACEOF
113493fe82118Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
113503fe82118Smrg_ACEOF
113513fe82118Smrg
113523fe82118Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
113533fe82118Smrg	if test "x$PVM" = "x"; then
113543fe82118Smrg		PVM="0"
113553fe82118Smrg	fi
113563fe82118Smrg
113573a99fc18Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
113583fe82118Smrg
113593fe82118Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
113603fe82118Smrg	if test "x$PVP" = "x"; then
113613fe82118Smrg		PVP="0"
113623fe82118Smrg	fi
113633fe82118Smrg
113643a99fc18Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
113653fe82118Smrg
113663fe82118Smrg
113673fe82118Smrg
113683a99fc18SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
113693fe82118Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
113703a99fc18Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
113713a99fc18Smrgtouch \$(top_srcdir)/ChangeLog; \
113723a99fc18Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
113733fe82118Smrg
113743fe82118Smrg
113753fe82118Smrg
113763fe82118Smrg
113773fe82118Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
113783fe82118SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
113793fe82118Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
113803a99fc18Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
113813a99fc18Smrgtouch \$(top_srcdir)/INSTALL; \
113823a99fc18Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
113833a99fc18Smrg
113843fe82118Smrg
113853fe82118Smrg
113863fe82118Smrg
113873fe82118Smrg
113883fe82118Smrg
113893a99fc18Smrgcase $host_os in
113903a99fc18Smrg    solaris*)
113913a99fc18Smrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
113923a99fc18Smrg        # check for a man page file found in later versions that use
113933a99fc18Smrg        # traditional section numbers instead
113943a99fc18Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
113953a99fc18Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
113963a99fc18Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
113973a99fc18Smrgthen :
113983a99fc18Smrg  printf %s "(cached) " >&6
113991e42c052Smrgelse case e in #(
114001e42c052Smrg  e) test "$cross_compiling" = yes &&
114013a99fc18Smrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
114023a99fc18Smrgif test -r "/usr/share/man/man7/attributes.7"; then
114033a99fc18Smrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
114043a99fc18Smrgelse
114053a99fc18Smrg  ac_cv_file__usr_share_man_man7_attributes_7=no
114061e42c052Smrgfi ;;
114071e42c052Smrgesac
114083a99fc18Smrgfi
114093a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
114103a99fc18Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
114113a99fc18Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
114123a99fc18Smrgthen :
114133a99fc18Smrg  SYSV_MAN_SECTIONS=false
114141e42c052Smrgelse case e in #(
114151e42c052Smrg  e) SYSV_MAN_SECTIONS=true ;;
114161e42c052Smrgesac
114173a99fc18Smrgfi
114183a99fc18Smrg
114193a99fc18Smrg        ;;
114203a99fc18Smrg    *) SYSV_MAN_SECTIONS=false ;;
114213a99fc18Smrgesac
114223fe82118Smrg
114233fe82118Smrgif test x$APP_MAN_SUFFIX = x    ; then
114243fe82118Smrg    APP_MAN_SUFFIX=1
114253fe82118Smrgfi
114263fe82118Smrgif test x$APP_MAN_DIR = x    ; then
114273fe82118Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
114283fe82118Smrgfi
114293fe82118Smrg
114303fe82118Smrgif test x$LIB_MAN_SUFFIX = x    ; then
114313fe82118Smrg    LIB_MAN_SUFFIX=3
114323fe82118Smrgfi
114333fe82118Smrgif test x$LIB_MAN_DIR = x    ; then
114343fe82118Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
114353fe82118Smrgfi
114363fe82118Smrg
114373fe82118Smrgif test x$FILE_MAN_SUFFIX = x    ; then
114383a99fc18Smrg    case $SYSV_MAN_SECTIONS in
114393a99fc18Smrg	true)				FILE_MAN_SUFFIX=4  ;;
114403e999d35Smrg	*)				FILE_MAN_SUFFIX=5  ;;
114413fe82118Smrg    esac
114423fe82118Smrgfi
114433fe82118Smrgif test x$FILE_MAN_DIR = x    ; then
114443fe82118Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
114453fe82118Smrgfi
114463fe82118Smrg
114473fe82118Smrgif test x$MISC_MAN_SUFFIX = x    ; then
114483a99fc18Smrg    case $SYSV_MAN_SECTIONS in
114493a99fc18Smrg	true)				MISC_MAN_SUFFIX=5  ;;
114503e999d35Smrg	*)				MISC_MAN_SUFFIX=7  ;;
114513fe82118Smrg    esac
114523fe82118Smrgfi
114533fe82118Smrgif test x$MISC_MAN_DIR = x    ; then
114543fe82118Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
114553fe82118Smrgfi
114563fe82118Smrg
114573fe82118Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
114583a99fc18Smrg    case $SYSV_MAN_SECTIONS in
114593a99fc18Smrg	true)				DRIVER_MAN_SUFFIX=7  ;;
114603e999d35Smrg	*)				DRIVER_MAN_SUFFIX=4  ;;
114613fe82118Smrg    esac
114623fe82118Smrgfi
114633fe82118Smrgif test x$DRIVER_MAN_DIR = x    ; then
114643fe82118Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
114653fe82118Smrgfi
114663fe82118Smrg
114673fe82118Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
114683a99fc18Smrg    case $SYSV_MAN_SECTIONS in
114693a99fc18Smrg	true)				ADMIN_MAN_SUFFIX=1m ;;
114703e999d35Smrg	*)				ADMIN_MAN_SUFFIX=8  ;;
114713fe82118Smrg    esac
114723fe82118Smrgfi
114733fe82118Smrgif test x$ADMIN_MAN_DIR = x    ; then
114743fe82118Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
114753fe82118Smrgfi
114763fe82118Smrg
114773fe82118Smrg
114783fe82118Smrg
114793fe82118Smrg
114803fe82118Smrg
114813fe82118Smrg
114823fe82118Smrg
114833fe82118Smrg
114843fe82118Smrg
114853fe82118Smrg
114863fe82118Smrg
114873fe82118Smrg
114883fe82118Smrg
114893fe82118Smrg
114903fe82118Smrg
114913fe82118SmrgXORG_MAN_PAGE="X Version 11"
114923fe82118Smrg
114933fe82118SmrgMAN_SUBSTS="\
114943fe82118Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
114953fe82118Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
114963fe82118Smrg	-e 's|__xservername__|Xorg|g' \
114973fe82118Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
114983fe82118Smrg	-e 's|__projectroot__|\$(prefix)|g' \
114993fe82118Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
115003fe82118Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
115013fe82118Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
115023fe82118Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
115033fe82118Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
115043fe82118Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
115053fe82118Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
115063fe82118Smrg
115073fe82118Smrg
115083fe82118Smrg
115093fe82118Smrg
115101e42c052SmrgAM_DEFAULT_VERBOSITY=0
115111e42c052Smrg
115121e42c052Smrg
115131e42c052Smrg
115141e42c052Smrg# Checks for library functions.
115151e42c052Smrgac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
115161e42c052Smrgif test "x$ac_cv_func_strlcat" = xyes
115173a99fc18Smrgthen :
115181e42c052Smrg  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
115191e42c052Smrg
115203e999d35Smrgfi
115211e42c052Smrgac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
115221e42c052Smrgif test "x$ac_cv_func_strlcpy" = xyes
115231e42c052Smrgthen :
115241e42c052Smrg  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
115253fe82118Smrg
115261e42c052Smrgfi
115273fe82118Smrg
115283fe82118Smrg
115293fe82118Smrg# Base set of required pkg-config packages
115301e42c052SmrgXLOGO_DEPS="sm xaw7 xmu xt >= 1.0 xext x11 xproto >= 7.0.22"
115313fe82118Smrg
115323a99fc18Smrg# Ensure pkg-config is initialized, since first call to macros is conditional
115333a99fc18Smrg
115343a99fc18Smrg
115353a99fc18Smrg
115363a99fc18Smrg
115373a99fc18Smrg
115383a99fc18Smrg
115393a99fc18Smrg
115403a99fc18Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
115413a99fc18Smrg	if test -n "$ac_tool_prefix"; then
115423a99fc18Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
115433a99fc18Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
115443a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
115453a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
115463a99fc18Smrgif test ${ac_cv_path_PKG_CONFIG+y}
115473a99fc18Smrgthen :
115483a99fc18Smrg  printf %s "(cached) " >&6
115491e42c052Smrgelse case e in #(
115501e42c052Smrg  e) case $PKG_CONFIG in
115513a99fc18Smrg  [\\/]* | ?:[\\/]*)
115523a99fc18Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
115533a99fc18Smrg  ;;
115543a99fc18Smrg  *)
115553a99fc18Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115563a99fc18Smrgfor as_dir in $PATH
115573a99fc18Smrgdo
115583a99fc18Smrg  IFS=$as_save_IFS
115593a99fc18Smrg  case $as_dir in #(((
115603a99fc18Smrg    '') as_dir=./ ;;
115613a99fc18Smrg    */) ;;
115623a99fc18Smrg    *) as_dir=$as_dir/ ;;
115633a99fc18Smrg  esac
115643a99fc18Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
115653a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
115663a99fc18Smrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
115673a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
115683a99fc18Smrg    break 2
115693a99fc18Smrg  fi
115703a99fc18Smrgdone
115713a99fc18Smrg  done
115723a99fc18SmrgIFS=$as_save_IFS
115733a99fc18Smrg
115743a99fc18Smrg  ;;
115751e42c052Smrgesac ;;
115763a99fc18Smrgesac
115773a99fc18Smrgfi
115783a99fc18SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
115793a99fc18Smrgif test -n "$PKG_CONFIG"; then
115803a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
115813a99fc18Smrgprintf "%s\n" "$PKG_CONFIG" >&6; }
115823a99fc18Smrgelse
115833a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
115843a99fc18Smrgprintf "%s\n" "no" >&6; }
115853a99fc18Smrgfi
115863a99fc18Smrg
115873a99fc18Smrg
115883a99fc18Smrgfi
115893a99fc18Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
115903a99fc18Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
115913a99fc18Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
115923a99fc18Smrgset dummy pkg-config; ac_word=$2
115933a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
115943a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
115953a99fc18Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
115963a99fc18Smrgthen :
115973a99fc18Smrg  printf %s "(cached) " >&6
115981e42c052Smrgelse case e in #(
115991e42c052Smrg  e) case $ac_pt_PKG_CONFIG in
116003a99fc18Smrg  [\\/]* | ?:[\\/]*)
116013a99fc18Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
116023a99fc18Smrg  ;;
116033a99fc18Smrg  *)
116043a99fc18Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116053a99fc18Smrgfor as_dir in $PATH
116063a99fc18Smrgdo
116073a99fc18Smrg  IFS=$as_save_IFS
116083a99fc18Smrg  case $as_dir in #(((
116093a99fc18Smrg    '') as_dir=./ ;;
116103a99fc18Smrg    */) ;;
116113a99fc18Smrg    *) as_dir=$as_dir/ ;;
116123a99fc18Smrg  esac
116133a99fc18Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
116143a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
116153a99fc18Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
116163a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
116173a99fc18Smrg    break 2
116183a99fc18Smrg  fi
116193a99fc18Smrgdone
116203a99fc18Smrg  done
116213a99fc18SmrgIFS=$as_save_IFS
116223a99fc18Smrg
116233a99fc18Smrg  ;;
116241e42c052Smrgesac ;;
116253a99fc18Smrgesac
116263a99fc18Smrgfi
116273a99fc18Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
116283a99fc18Smrgif test -n "$ac_pt_PKG_CONFIG"; then
116293a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
116303a99fc18Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
116313a99fc18Smrgelse
116323a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
116333a99fc18Smrgprintf "%s\n" "no" >&6; }
116343a99fc18Smrgfi
116353a99fc18Smrg
116363a99fc18Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
116373a99fc18Smrg    PKG_CONFIG=""
116383a99fc18Smrg  else
116393a99fc18Smrg    case $cross_compiling:$ac_tool_warned in
116403a99fc18Smrgyes:)
116413a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
116423a99fc18Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
116433a99fc18Smrgac_tool_warned=yes ;;
116443a99fc18Smrgesac
116453a99fc18Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
116463a99fc18Smrg  fi
116473a99fc18Smrgelse
116483a99fc18Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
116493a99fc18Smrgfi
116503a99fc18Smrg
116513a99fc18Smrgfi
116523a99fc18Smrgif test -n "$PKG_CONFIG"; then
116533a99fc18Smrg	_pkg_min_version=0.9.0
116543a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
116553a99fc18Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
116563a99fc18Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
116573a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
116583a99fc18Smrgprintf "%s\n" "yes" >&6; }
116593a99fc18Smrg	else
116603a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
116613a99fc18Smrgprintf "%s\n" "no" >&6; }
116623a99fc18Smrg		PKG_CONFIG=""
116633a99fc18Smrg	fi
116643a99fc18Smrgfi
116653fe82118Smrg
116663a99fc18Smrg# Use render & xft2 to draw logo?
116673a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use render & xft2 to draw logo" >&5
116683a99fc18Smrgprintf %s "checking whether to use render & xft2 to draw logo... " >&6; }
116693fe82118Smrg
116703fe82118Smrg# Check whether --with-render was given.
116713a99fc18Smrgif test ${with_render+y}
116723a99fc18Smrgthen :
116733fe82118Smrg  withval=$with_render; USE_RENDER="$withval"
116741e42c052Smrgelse case e in #(
116751e42c052Smrg  e) USE_RENDER="try" ;;
116761e42c052Smrgesac
116773da7aff1Smrgfi
116783da7aff1Smrg
116793da7aff1Smrg
11680f9d592e5Smrgif test "x$USE_RENDER" = "xtry" ; then
11681f9d592e5Smrg	if test -n "$PKG_CONFIG" && \
116823a99fc18Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
11683f9d592e5Smrg  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
11684f9d592e5Smrg  ac_status=$?
116853a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11686f9d592e5Smrg  test $ac_status = 0; }; then
11687f9d592e5Smrg  USE_RENDER="yes"
11688f9d592e5Smrgelse
11689f9d592e5Smrg  USE_RENDER="no"
11690f9d592e5Smrgfi
11691f9d592e5Smrgfi
116923a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_RENDER" >&5
116933a99fc18Smrgprintf "%s\n" "$USE_RENDER" >&6; }
116943da7aff1Smrg
11695f9d592e5Smrgif test "x$USE_RENDER" = "xyes" ; then
11696f9d592e5Smrg	XLOGO_DEPS="xft xrender $XLOGO_DEPS"
11697f9d592e5Smrg
11698f9d592e5Smrg
116993a99fc18Smrgprintf "%s\n" "#define XRENDER 1" >>confdefs.h
117003da7aff1Smrg
117013da7aff1Smrgfi
117023fe82118Smrg if test "x$USE_RENDER" = "xyes"; then
117033fe82118Smrg  USE_RENDER_TRUE=
117043fe82118Smrg  USE_RENDER_FALSE='#'
117053fe82118Smrgelse
117063fe82118Smrg  USE_RENDER_TRUE='#'
117073fe82118Smrg  USE_RENDER_FALSE=
117083fe82118Smrgfi
117093fe82118Smrg
117103da7aff1Smrg
117113a99fc18Smrg# Use XKB to ring the bell?
117123a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use XkbStdBell" >&5
117133a99fc18Smrgprintf %s "checking whether to use XkbStdBell... " >&6; }
117143a99fc18Smrg
117153a99fc18Smrg# Check whether --with-xkb was given.
117163a99fc18Smrgif test ${with_xkb+y}
117173a99fc18Smrgthen :
117183a99fc18Smrg  withval=$with_xkb; USE_XKB="$withval"
117191e42c052Smrgelse case e in #(
117201e42c052Smrg  e) USE_XKB="try" ;;
117211e42c052Smrgesac
117223a99fc18Smrgfi
117233a99fc18Smrg
117243a99fc18Smrg
117253a99fc18Smrgif test "x$USE_XKB" = "xtry" ; then
117263a99fc18Smrg	if test -n "$PKG_CONFIG" && \
117273a99fc18Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
117283a99fc18Smrg  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
117293a99fc18Smrg  ac_status=$?
117303a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
117313a99fc18Smrg  test $ac_status = 0; }; then
117323a99fc18Smrg  USE_XKB="yes"
117333a99fc18Smrgelse
117343a99fc18Smrg  USE_XKB="no"
117353a99fc18Smrgfi
117363a99fc18Smrgfi
117373a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_XKB" >&5
117383a99fc18Smrgprintf "%s\n" "$USE_XKB" >&6; }
117393a99fc18Smrg
117403a99fc18Smrgif test "x$USE_XKB" = "xyes" ; then
117413a99fc18Smrg	XLOGO_DEPS="xkbfile $XLOGO_DEPS"
117423a99fc18Smrg
117433a99fc18Smrg
117443a99fc18Smrgprintf "%s\n" "#define XKB 1" >>confdefs.h
117453a99fc18Smrg
117463a99fc18Smrgfi
117473a99fc18Smrg
117483da7aff1Smrg
117493da7aff1Smrgpkg_failed=no
117503a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLOGO" >&5
117513a99fc18Smrgprintf %s "checking for XLOGO... " >&6; }
11752e531b1a7Smrg
11753f9d592e5Smrgif test -n "$XLOGO_CFLAGS"; then
11754f9d592e5Smrg    pkg_cv_XLOGO_CFLAGS="$XLOGO_CFLAGS"
11755e531b1a7Smrg elif test -n "$PKG_CONFIG"; then
11756e531b1a7Smrg    if test -n "$PKG_CONFIG" && \
117573a99fc18Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XLOGO_DEPS\""; } >&5
11758f9d592e5Smrg  ($PKG_CONFIG --exists --print-errors "$XLOGO_DEPS") 2>&5
117593da7aff1Smrg  ac_status=$?
117603a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11761e531b1a7Smrg  test $ac_status = 0; }; then
11762f9d592e5Smrg  pkg_cv_XLOGO_CFLAGS=`$PKG_CONFIG --cflags "$XLOGO_DEPS" 2>/dev/null`
117633e999d35Smrg		      test "x$?" != "x0" && pkg_failed=yes
117643da7aff1Smrgelse
117653da7aff1Smrg  pkg_failed=yes
117663da7aff1Smrgfi
11767e531b1a7Smrg else
11768e531b1a7Smrg    pkg_failed=untried
117693da7aff1Smrgfi
11770f9d592e5Smrgif test -n "$XLOGO_LIBS"; then
11771f9d592e5Smrg    pkg_cv_XLOGO_LIBS="$XLOGO_LIBS"
11772e531b1a7Smrg elif test -n "$PKG_CONFIG"; then
11773e531b1a7Smrg    if test -n "$PKG_CONFIG" && \
117743a99fc18Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XLOGO_DEPS\""; } >&5
11775f9d592e5Smrg  ($PKG_CONFIG --exists --print-errors "$XLOGO_DEPS") 2>&5
117763da7aff1Smrg  ac_status=$?
117773a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11778e531b1a7Smrg  test $ac_status = 0; }; then
11779f9d592e5Smrg  pkg_cv_XLOGO_LIBS=`$PKG_CONFIG --libs "$XLOGO_DEPS" 2>/dev/null`
117803e999d35Smrg		      test "x$?" != "x0" && pkg_failed=yes
117813da7aff1Smrgelse
117823da7aff1Smrg  pkg_failed=yes
117833da7aff1Smrgfi
11784e531b1a7Smrg else
11785e531b1a7Smrg    pkg_failed=untried
117863da7aff1Smrgfi
117873da7aff1Smrg
117883da7aff1Smrg
117893da7aff1Smrg
117903da7aff1Smrgif test $pkg_failed = yes; then
117913a99fc18Smrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
117923a99fc18Smrgprintf "%s\n" "no" >&6; }
117933da7aff1Smrg
117943da7aff1Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
117953da7aff1Smrg        _pkg_short_errors_supported=yes
117963da7aff1Smrgelse
117973da7aff1Smrg        _pkg_short_errors_supported=no
117983da7aff1Smrgfi
117993da7aff1Smrg        if test $_pkg_short_errors_supported = yes; then
118003e999d35Smrg	        XLOGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1`
118013da7aff1Smrg        else
118023e999d35Smrg	        XLOGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1`
118033da7aff1Smrg        fi
118043da7aff1Smrg	# Put the nasty error message in config.log where it belongs
11805f9d592e5Smrg	echo "$XLOGO_PKG_ERRORS" >&5
118063da7aff1Smrg
11807f9d592e5Smrg	as_fn_error $? "Package requirements ($XLOGO_DEPS) were not met:
118083da7aff1Smrg
11809f9d592e5Smrg$XLOGO_PKG_ERRORS
118103da7aff1Smrg
118113da7aff1SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
118123da7aff1Smrginstalled software in a non-standard prefix.
118133da7aff1Smrg
11814f9d592e5SmrgAlternatively, you may set the environment variables XLOGO_CFLAGS
11815f9d592e5Smrgand XLOGO_LIBS to avoid the need to call pkg-config.
118163e999d35SmrgSee the pkg-config man page for more details." "$LINENO" 5
118173da7aff1Smrgelif test $pkg_failed = untried; then
118183a99fc18Smrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
118193a99fc18Smrgprintf "%s\n" "no" >&6; }
118201e42c052Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
118211e42c052Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11822f9d592e5Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
118233da7aff1Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
118243da7aff1Smrgpath to pkg-config.
118253da7aff1Smrg
11826f9d592e5SmrgAlternatively, you may set the environment variables XLOGO_CFLAGS
11827f9d592e5Smrgand XLOGO_LIBS to avoid the need to call pkg-config.
118283da7aff1SmrgSee the pkg-config man page for more details.
118293da7aff1Smrg
11830e531b1a7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
118311e42c052SmrgSee 'config.log' for more details" "$LINENO" 5; }
118323da7aff1Smrgelse
11833f9d592e5Smrg	XLOGO_CFLAGS=$pkg_cv_XLOGO_CFLAGS
11834f9d592e5Smrg	XLOGO_LIBS=$pkg_cv_XLOGO_LIBS
118353a99fc18Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
118363a99fc18Smrgprintf "%s\n" "yes" >&6; }
118373e999d35Smrg
118383da7aff1Smrgfi
118393da7aff1Smrg
118403da7aff1Smrg
11841e531b1a7Smrgpkg_failed=no
118423a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
118433a99fc18Smrgprintf %s "checking for APPDEFS... " >&6; }
11844e531b1a7Smrg
11845e531b1a7Smrgif test -n "$APPDEFS_CFLAGS"; then
11846e531b1a7Smrg    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11847e531b1a7Smrg elif test -n "$PKG_CONFIG"; then
11848e531b1a7Smrg    if test -n "$PKG_CONFIG" && \
118493a99fc18Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
118503da7aff1Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
118513da7aff1Smrg  ac_status=$?
118523a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11853e531b1a7Smrg  test $ac_status = 0; }; then
118543da7aff1Smrg  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
118553e999d35Smrg		      test "x$?" != "x0" && pkg_failed=yes
118563da7aff1Smrgelse
118573da7aff1Smrg  pkg_failed=yes
118583da7aff1Smrgfi
11859e531b1a7Smrg else
11860e531b1a7Smrg    pkg_failed=untried
118613da7aff1Smrgfi
11862e531b1a7Smrgif test -n "$APPDEFS_LIBS"; then
11863e531b1a7Smrg    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11864e531b1a7Smrg elif test -n "$PKG_CONFIG"; then
11865e531b1a7Smrg    if test -n "$PKG_CONFIG" && \
118663a99fc18Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
118673da7aff1Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
118683da7aff1Smrg  ac_status=$?
118693a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11870e531b1a7Smrg  test $ac_status = 0; }; then
118713da7aff1Smrg  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
118723e999d35Smrg		      test "x$?" != "x0" && pkg_failed=yes
118733da7aff1Smrgelse
118743da7aff1Smrg  pkg_failed=yes
118753da7aff1Smrgfi
11876e531b1a7Smrg else
11877e531b1a7Smrg    pkg_failed=untried
118783da7aff1Smrgfi
118793da7aff1Smrg
118803da7aff1Smrg
118813da7aff1Smrg
118823da7aff1Smrgif test $pkg_failed = yes; then
118833a99fc18Smrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
118843a99fc18Smrgprintf "%s\n" "no" >&6; }
118853da7aff1Smrg
118863da7aff1Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
118873da7aff1Smrg        _pkg_short_errors_supported=yes
118883da7aff1Smrgelse
118893da7aff1Smrg        _pkg_short_errors_supported=no
118903da7aff1Smrgfi
118913da7aff1Smrg        if test $_pkg_short_errors_supported = yes; then
118923e999d35Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
118933da7aff1Smrg        else
118943e999d35Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
118953da7aff1Smrg        fi
118963da7aff1Smrg	# Put the nasty error message in config.log where it belongs
118973da7aff1Smrg	echo "$APPDEFS_PKG_ERRORS" >&5
118983da7aff1Smrg
11899f9d592e5Smrg	as_fn_error $? "Package requirements (xt) were not met:
119003da7aff1Smrg
119013da7aff1Smrg$APPDEFS_PKG_ERRORS
119023da7aff1Smrg
119033da7aff1SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
119043da7aff1Smrginstalled software in a non-standard prefix.
119053da7aff1Smrg
119063da7aff1SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
119073da7aff1Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
119083e999d35SmrgSee the pkg-config man page for more details." "$LINENO" 5
119093da7aff1Smrgelif test $pkg_failed = untried; then
119103a99fc18Smrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
119113a99fc18Smrgprintf "%s\n" "no" >&6; }
119121e42c052Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
119131e42c052Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11914f9d592e5Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
119153da7aff1Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
119163da7aff1Smrgpath to pkg-config.
119173da7aff1Smrg
119183da7aff1SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
119193da7aff1Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
119203da7aff1SmrgSee the pkg-config man page for more details.
119213da7aff1Smrg
11922e531b1a7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
119231e42c052SmrgSee 'config.log' for more details" "$LINENO" 5; }
119243da7aff1Smrgelse
119253da7aff1Smrg	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
119263da7aff1Smrg	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
119273a99fc18Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
119283a99fc18Smrgprintf "%s\n" "yes" >&6; }
119293e999d35Smrg
119303da7aff1Smrgfi
11931f9d592e5Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
119323da7aff1Smrg
11933e531b1a7Smrg# Check whether --with-appdefaultdir was given.
119343a99fc18Smrgif test ${with_appdefaultdir+y}
119353a99fc18Smrgthen :
11936e531b1a7Smrg  withval=$with_appdefaultdir; appdefaultdir="$withval"
119371e42c052Smrgelse case e in #(
119381e42c052Smrg  e) appdefaultdir="${xt_appdefaultdir}" ;;
119391e42c052Smrgesac
119403da7aff1Smrgfi
119413da7aff1Smrg
119423da7aff1Smrg
119433da7aff1Smrg
119443fe82118Smrgac_config_files="$ac_config_files Makefile man/Makefile"
119453da7aff1Smrg
119463da7aff1Smrgcat >confcache <<\_ACEOF
119473da7aff1Smrg# This file is a shell script that caches the results of configure
119483da7aff1Smrg# tests run on this system so they can be shared between configure
119493da7aff1Smrg# scripts and configure runs, see configure's option --config-cache.
119503da7aff1Smrg# It is not useful on other systems.  If it contains results you don't
119513da7aff1Smrg# want to keep, you may remove or edit it.
119523da7aff1Smrg#
119533da7aff1Smrg# config.status only pays attention to the cache file if you give it
119543da7aff1Smrg# the --recheck option to rerun configure.
119553da7aff1Smrg#
119561e42c052Smrg# 'ac_cv_env_foo' variables (set or unset) will be overridden when
119571e42c052Smrg# loading this file, other *unset* 'ac_cv_foo' will be assigned the
119583da7aff1Smrg# following values.
119593da7aff1Smrg
119603da7aff1Smrg_ACEOF
119613da7aff1Smrg
119623da7aff1Smrg# The following way of writing the cache mishandles newlines in values,
119633da7aff1Smrg# but we know of no workaround that is simple, portable, and efficient.
11964e531b1a7Smrg# So, we kill variables containing newlines.
119653da7aff1Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
119663da7aff1Smrg# and sets the high bit in the cache file unless we assign to the vars.
11967e531b1a7Smrg(
11968e531b1a7Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11969e531b1a7Smrg    eval ac_val=\$$ac_var
11970e531b1a7Smrg    case $ac_val in #(
11971e531b1a7Smrg    *${as_nl}*)
11972e531b1a7Smrg      case $ac_var in #(
119733a99fc18Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
119743a99fc18Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11975e531b1a7Smrg      esac
11976e531b1a7Smrg      case $ac_var in #(
11977e531b1a7Smrg      _ | IFS | as_nl) ;; #(
11978e531b1a7Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11979e531b1a7Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
11980e531b1a7Smrg      esac ;;
11981e531b1a7Smrg    esac
11982e531b1a7Smrg  done
11983e531b1a7Smrg
119843da7aff1Smrg  (set) 2>&1 |
11985e531b1a7Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11986e531b1a7Smrg    *${as_nl}ac_space=\ *)
119871e42c052Smrg      # 'set' does not quote correctly, so add quotes: double-quote
11988e531b1a7Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
119893da7aff1Smrg      sed -n \
119903da7aff1Smrg	"s/'/'\\\\''/g;
119913da7aff1Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11992e531b1a7Smrg      ;; #(
119933da7aff1Smrg    *)
119941e42c052Smrg      # 'set' quotes correctly as required by POSIX, so do not add quotes.
11995e531b1a7Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
119963da7aff1Smrg      ;;
11997e531b1a7Smrg    esac |
11998e531b1a7Smrg    sort
11999e531b1a7Smrg) |
120003da7aff1Smrg  sed '
12001e531b1a7Smrg     /^ac_cv_env_/b end
120023da7aff1Smrg     t clear
12003e531b1a7Smrg     :clear
120043a99fc18Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
120053da7aff1Smrg     t end
12006e531b1a7Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12007e531b1a7Smrg     :end' >>confcache
12008e531b1a7Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12009e531b1a7Smrg  if test -w "$cache_file"; then
12010f9d592e5Smrg    if test "x$cache_file" != "x/dev/null"; then
120113a99fc18Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
120123a99fc18Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12013f9d592e5Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
12014f9d592e5Smrg	cat confcache >"$cache_file"
12015f9d592e5Smrg      else
12016f9d592e5Smrg        case $cache_file in #(
12017f9d592e5Smrg        */* | ?:*)
12018f9d592e5Smrg	  mv -f confcache "$cache_file"$$ &&
12019f9d592e5Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12020f9d592e5Smrg        *)
12021f9d592e5Smrg	  mv -f confcache "$cache_file" ;;
12022f9d592e5Smrg	esac
12023f9d592e5Smrg      fi
12024f9d592e5Smrg    fi
120253da7aff1Smrg  else
120263a99fc18Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
120273a99fc18Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
120283da7aff1Smrg  fi
120293da7aff1Smrgfi
120303da7aff1Smrgrm -f confcache
120313da7aff1Smrg
120323da7aff1Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
120333da7aff1Smrg# Let make expand exec_prefix.
120343da7aff1Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
120353da7aff1Smrg
120363da7aff1SmrgDEFS=-DHAVE_CONFIG_H
120373da7aff1Smrg
120383da7aff1Smrgac_libobjs=
120393da7aff1Smrgac_ltlibobjs=
12040f9d592e5SmrgU=
120413da7aff1Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
120423da7aff1Smrg  # 1. Remove the extension, and $U if already installed.
12043e531b1a7Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
120443a99fc18Smrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12045e531b1a7Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12046e531b1a7Smrg  #    will be set to the directory where LIBOBJS objects are built.
12047e531b1a7Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12048e531b1a7Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
120493da7aff1Smrgdone
120503da7aff1SmrgLIBOBJS=$ac_libobjs
120513da7aff1Smrg
120523da7aff1SmrgLTLIBOBJS=$ac_ltlibobjs
120533da7aff1Smrg
120543da7aff1Smrg
120553a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
120563a99fc18Smrgprintf %s "checking that generated files are newer than configure... " >&6; }
120573e999d35Smrg   if test -n "$am_sleep_pid"; then
120583e999d35Smrg     # Hide warnings about reused PIDs.
120593e999d35Smrg     wait $am_sleep_pid 2>/dev/null
120603e999d35Smrg   fi
120613a99fc18Smrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
120623a99fc18Smrgprintf "%s\n" "done" >&6; }
120631e42c052Smrgcase $enable_silent_rules in # (((
120641e42c052Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
120651e42c052Smrg   no) AM_DEFAULT_VERBOSITY=1;;
120661e42c052Smrgesac
120671e42c052Smrgif test $am_cv_make_support_nested_variables = yes; then
120681e42c052Smrg    AM_V='$(V)'
120691e42c052Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
120701e42c052Smrgelse
120711e42c052Smrg  AM_V=$AM_DEFAULT_VERBOSITY
120721e42c052Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
120731e42c052Smrgfi
120741e42c052Smrg
12075e531b1a7Smrg if test -n "$EXEEXT"; then
12076e531b1a7Smrg  am__EXEEXT_TRUE=
12077e531b1a7Smrg  am__EXEEXT_FALSE='#'
12078e531b1a7Smrgelse
12079e531b1a7Smrg  am__EXEEXT_TRUE='#'
12080e531b1a7Smrg  am__EXEEXT_FALSE=
12081e531b1a7Smrgfi
12082e531b1a7Smrg
120833da7aff1Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12084f9d592e5Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
12085e531b1a7SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
120863da7aff1Smrgfi
12087e531b1a7Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12088f9d592e5Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12089e531b1a7SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
120903da7aff1Smrgfi
120913fe82118Smrgif test -z "${USE_RENDER_TRUE}" && test -z "${USE_RENDER_FALSE}"; then
120923fe82118Smrg  as_fn_error $? "conditional \"USE_RENDER\" was never defined.
120933fe82118SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
120943fe82118Smrgfi
120953da7aff1Smrg
12096f9d592e5Smrg: "${CONFIG_STATUS=./config.status}"
12097e531b1a7Smrgac_write_fail=0
120983da7aff1Smrgac_clean_files_save=$ac_clean_files
120993da7aff1Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
121003a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
121013a99fc18Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12102e531b1a7Smrgas_write_fail=0
12103e531b1a7Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
121043da7aff1Smrg#! $SHELL
121053da7aff1Smrg# Generated by $as_me.
121063da7aff1Smrg# Run this file to recreate the current configuration.
121073da7aff1Smrg# Compiler output produced by configure, useful for debugging
121083da7aff1Smrg# configure, is in config.log if it exists.
121093da7aff1Smrg
121103da7aff1Smrgdebug=false
121113da7aff1Smrgac_cs_recheck=false
121123da7aff1Smrgac_cs_silent=false
121133da7aff1Smrg
12114e531b1a7SmrgSHELL=\${CONFIG_SHELL-$SHELL}
12115e531b1a7Smrgexport SHELL
12116e531b1a7Smrg_ASEOF
12117e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12118e531b1a7Smrg## -------------------- ##
12119e531b1a7Smrg## M4sh Initialization. ##
12120e531b1a7Smrg## -------------------- ##
12121e531b1a7Smrg
12122e531b1a7Smrg# Be more Bourne compatible
12123e531b1a7SmrgDUALCASE=1; export DUALCASE # for MKS sh
121243a99fc18Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
121253a99fc18Smrgthen :
121263da7aff1Smrg  emulate sh
121273da7aff1Smrg  NULLCMD=:
12128e531b1a7Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
121293da7aff1Smrg  # is contrary to our usage.  Disable this feature.
121303da7aff1Smrg  alias -g '${1+"$@"}'='"$@"'
12131e531b1a7Smrg  setopt NO_GLOB_SUBST
121321e42c052Smrgelse case e in #(
121331e42c052Smrg  e) case `(set -o) 2>/dev/null` in #(
12134e531b1a7Smrg  *posix*) :
12135e531b1a7Smrg    set -o posix ;; #(
12136e531b1a7Smrg  *) :
12137e531b1a7Smrg     ;;
121381e42c052Smrgesac ;;
12139e531b1a7Smrgesac
121403da7aff1Smrgfi
121413da7aff1Smrg
12142e531b1a7Smrg
121433a99fc18Smrg
121443a99fc18Smrg# Reset variables that may have inherited troublesome values from
121453a99fc18Smrg# the environment.
121463a99fc18Smrg
121473a99fc18Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
121483a99fc18Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
121493a99fc18Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
121503a99fc18Smrg# Quoting is to prevent editors from complaining about space-tab.
12151e531b1a7Smrgas_nl='
12152e531b1a7Smrg'
12153e531b1a7Smrgexport as_nl
121543a99fc18SmrgIFS=" ""	$as_nl"
121553a99fc18Smrg
121563a99fc18SmrgPS1='$ '
121573a99fc18SmrgPS2='> '
121583a99fc18SmrgPS4='+ '
121593a99fc18Smrg
121603a99fc18Smrg# Ensure predictable behavior from utilities with locale-dependent output.
121613a99fc18SmrgLC_ALL=C
121623a99fc18Smrgexport LC_ALL
121633a99fc18SmrgLANGUAGE=C
121643a99fc18Smrgexport LANGUAGE
121653a99fc18Smrg
121663a99fc18Smrg# We cannot yet rely on "unset" to work, but we need these variables
121673a99fc18Smrg# to be unset--not just set to an empty or harmless value--now, to
121683a99fc18Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
121693a99fc18Smrg# also avoids known problems related to "unset" and subshell syntax
121703a99fc18Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
121713a99fc18Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
121723a99fc18Smrgdo eval test \${$as_var+y} \
121733a99fc18Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121743a99fc18Smrgdone
121753a99fc18Smrg
121763a99fc18Smrg# Ensure that fds 0, 1, and 2 are open.
121773a99fc18Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
121783a99fc18Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
121793a99fc18Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
121803da7aff1Smrg
12181e531b1a7Smrg# The user is always right.
121823a99fc18Smrgif ${PATH_SEPARATOR+false} :; then
12183e531b1a7Smrg  PATH_SEPARATOR=:
12184e531b1a7Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12185e531b1a7Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12186e531b1a7Smrg      PATH_SEPARATOR=';'
12187e531b1a7Smrg  }
12188e531b1a7Smrgfi
12189e531b1a7Smrg
12190e531b1a7Smrg
12191e531b1a7Smrg# Find who we are.  Look in the path if we contain no directory separator.
12192f9d592e5Smrgas_myself=
12193e531b1a7Smrgcase $0 in #((
12194e531b1a7Smrg  *[\\/]* ) as_myself=$0 ;;
12195e531b1a7Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196e531b1a7Smrgfor as_dir in $PATH
12197e531b1a7Smrgdo
12198e531b1a7Smrg  IFS=$as_save_IFS
121993a99fc18Smrg  case $as_dir in #(((
122003a99fc18Smrg    '') as_dir=./ ;;
122013a99fc18Smrg    */) ;;
122023a99fc18Smrg    *) as_dir=$as_dir/ ;;
122033a99fc18Smrg  esac
122043a99fc18Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12205e531b1a7Smrg  done
12206e531b1a7SmrgIFS=$as_save_IFS
122073da7aff1Smrg
12208e531b1a7Smrg     ;;
12209e531b1a7Smrgesac
122101e42c052Smrg# We did not find ourselves, most probably we were run as 'sh COMMAND'
12211e531b1a7Smrg# in which case we are not to be found in the path.
12212e531b1a7Smrgif test "x$as_myself" = x; then
12213e531b1a7Smrg  as_myself=$0
12214e531b1a7Smrgfi
12215e531b1a7Smrgif test ! -f "$as_myself"; then
122163a99fc18Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12217e531b1a7Smrg  exit 1
12218e531b1a7Smrgfi
12219e531b1a7Smrg
12220e531b1a7Smrg
12221e531b1a7Smrg
12222f9d592e5Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
12223f9d592e5Smrg# ----------------------------------------
12224e531b1a7Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12225e531b1a7Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12226f9d592e5Smrg# script with STATUS, using 1 if that was 0.
12227e531b1a7Smrgas_fn_error ()
12228e531b1a7Smrg{
12229f9d592e5Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
12230f9d592e5Smrg  if test "$4"; then
12231f9d592e5Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
122323a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
122333da7aff1Smrg  fi
122343a99fc18Smrg  printf "%s\n" "$as_me: error: $2" >&2
12235e531b1a7Smrg  as_fn_exit $as_status
12236e531b1a7Smrg} # as_fn_error
12237e531b1a7Smrg
12238e531b1a7Smrg
12239e531b1a7Smrg# as_fn_set_status STATUS
12240e531b1a7Smrg# -----------------------
12241e531b1a7Smrg# Set $? to STATUS, without forking.
12242e531b1a7Smrgas_fn_set_status ()
12243e531b1a7Smrg{
12244e531b1a7Smrg  return $1
12245e531b1a7Smrg} # as_fn_set_status
122463da7aff1Smrg
12247e531b1a7Smrg# as_fn_exit STATUS
12248e531b1a7Smrg# -----------------
12249e531b1a7Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12250e531b1a7Smrgas_fn_exit ()
12251e531b1a7Smrg{
12252e531b1a7Smrg  set +e
12253e531b1a7Smrg  as_fn_set_status $1
12254e531b1a7Smrg  exit $1
12255e531b1a7Smrg} # as_fn_exit
12256e531b1a7Smrg
12257e531b1a7Smrg# as_fn_unset VAR
12258e531b1a7Smrg# ---------------
12259e531b1a7Smrg# Portably unset VAR.
12260e531b1a7Smrgas_fn_unset ()
12261e531b1a7Smrg{
12262e531b1a7Smrg  { eval $1=; unset $1;}
12263e531b1a7Smrg}
12264e531b1a7Smrgas_unset=as_fn_unset
122653a99fc18Smrg
12266e531b1a7Smrg# as_fn_append VAR VALUE
12267e531b1a7Smrg# ----------------------
12268e531b1a7Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
12269e531b1a7Smrg# advantage of any shell optimizations that allow amortized linear growth over
12270e531b1a7Smrg# repeated appends, instead of the typical quadratic growth present in naive
12271e531b1a7Smrg# implementations.
122723a99fc18Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
122733a99fc18Smrgthen :
12274e531b1a7Smrg  eval 'as_fn_append ()
12275e531b1a7Smrg  {
12276e531b1a7Smrg    eval $1+=\$2
12277e531b1a7Smrg  }'
122781e42c052Smrgelse case e in #(
122791e42c052Smrg  e) as_fn_append ()
12280e531b1a7Smrg  {
12281e531b1a7Smrg    eval $1=\$$1\$2
122821e42c052Smrg  } ;;
122831e42c052Smrgesac
12284e531b1a7Smrgfi # as_fn_append
12285e531b1a7Smrg
12286e531b1a7Smrg# as_fn_arith ARG...
12287e531b1a7Smrg# ------------------
12288e531b1a7Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
12289e531b1a7Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
12290e531b1a7Smrg# must be portable across $(()) and expr.
122913a99fc18Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
122923a99fc18Smrgthen :
12293e531b1a7Smrg  eval 'as_fn_arith ()
12294e531b1a7Smrg  {
12295e531b1a7Smrg    as_val=$(( $* ))
12296e531b1a7Smrg  }'
122971e42c052Smrgelse case e in #(
122981e42c052Smrg  e) as_fn_arith ()
12299e531b1a7Smrg  {
12300e531b1a7Smrg    as_val=`expr "$@" || test $? -eq 1`
123011e42c052Smrg  } ;;
123021e42c052Smrgesac
12303e531b1a7Smrgfi # as_fn_arith
12304e531b1a7Smrg
12305e531b1a7Smrg
12306e531b1a7Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
12307e531b1a7Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
123083da7aff1Smrg  as_expr=expr
123093da7aff1Smrgelse
123103da7aff1Smrg  as_expr=false
123113da7aff1Smrgfi
123123da7aff1Smrg
12313e531b1a7Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123143da7aff1Smrg  as_basename=basename
123153da7aff1Smrgelse
123163da7aff1Smrg  as_basename=false
123173da7aff1Smrgfi
123183da7aff1Smrg
12319e531b1a7Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12320e531b1a7Smrg  as_dirname=dirname
12321e531b1a7Smrgelse
12322e531b1a7Smrg  as_dirname=false
12323e531b1a7Smrgfi
123243da7aff1Smrg
12325e531b1a7Smrgas_me=`$as_basename -- "$0" ||
123263da7aff1Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
123273da7aff1Smrg	 X"$0" : 'X\(//\)$' \| \
12328e531b1a7Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
123293a99fc18Smrgprintf "%s\n" X/"$0" |
12330e531b1a7Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
12331e531b1a7Smrg	    s//\1/
12332e531b1a7Smrg	    q
12333e531b1a7Smrg	  }
12334e531b1a7Smrg	  /^X\/\(\/\/\)$/{
12335e531b1a7Smrg	    s//\1/
12336e531b1a7Smrg	    q
12337e531b1a7Smrg	  }
12338e531b1a7Smrg	  /^X\/\(\/\).*/{
12339e531b1a7Smrg	    s//\1/
12340e531b1a7Smrg	    q
12341e531b1a7Smrg	  }
12342e531b1a7Smrg	  s/.*/./; q'`
123433da7aff1Smrg
123443da7aff1Smrg# Avoid depending upon Character Ranges.
123453da7aff1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
123463da7aff1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
123473da7aff1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
123483da7aff1Smrgas_cr_digits='0123456789'
123493da7aff1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
123503da7aff1Smrg
123513a99fc18Smrg
123523a99fc18Smrg# Determine whether it's possible to make 'echo' print without a newline.
123533a99fc18Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
123543a99fc18Smrg# for compatibility with existing Makefiles.
12355e531b1a7SmrgECHO_C= ECHO_N= ECHO_T=
12356e531b1a7Smrgcase `echo -n x` in #(((((
12357e531b1a7Smrg-n*)
12358e531b1a7Smrg  case `echo 'xy\c'` in
12359e531b1a7Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12360e531b1a7Smrg  xy)  ECHO_C='\c';;
12361e531b1a7Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12362e531b1a7Smrg       ECHO_T='	';;
12363e531b1a7Smrg  esac;;
12364e531b1a7Smrg*)
12365e531b1a7Smrg  ECHO_N='-n';;
123663da7aff1Smrgesac
123673da7aff1Smrg
123683a99fc18Smrg# For backward compatibility with old third-party macros, we provide
123693a99fc18Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
123703a99fc18Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
123713a99fc18Smrgas_echo='printf %s\n'
123723a99fc18Smrgas_echo_n='printf %s'
123733a99fc18Smrg
12374e531b1a7Smrgrm -f conf$$ conf$$.exe conf$$.file
12375e531b1a7Smrgif test -d conf$$.dir; then
12376e531b1a7Smrg  rm -f conf$$.dir/conf$$.file
123773da7aff1Smrgelse
12378e531b1a7Smrg  rm -f conf$$.dir
12379e531b1a7Smrg  mkdir conf$$.dir 2>/dev/null
123803da7aff1Smrgfi
12381e531b1a7Smrgif (echo >conf$$.file) 2>/dev/null; then
12382e531b1a7Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
123833da7aff1Smrg    as_ln_s='ln -s'
12384e531b1a7Smrg    # ... but there are two gotchas:
123851e42c052Smrg    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
123861e42c052Smrg    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
123871e42c052Smrg    # In both cases, we have to default to 'cp -pR'.
12388e531b1a7Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
123893e999d35Smrg      as_ln_s='cp -pR'
12390e531b1a7Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
12391e531b1a7Smrg    as_ln_s=ln
12392e531b1a7Smrg  else
123933e999d35Smrg    as_ln_s='cp -pR'
123943da7aff1Smrg  fi
123953da7aff1Smrgelse
123963e999d35Smrg  as_ln_s='cp -pR'
123973da7aff1Smrgfi
12398e531b1a7Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12399e531b1a7Smrgrmdir conf$$.dir 2>/dev/null
12400e531b1a7Smrg
124013da7aff1Smrg
12402e531b1a7Smrg# as_fn_mkdir_p
12403e531b1a7Smrg# -------------
12404e531b1a7Smrg# Create "$as_dir" as a directory, including parents if necessary.
12405e531b1a7Smrgas_fn_mkdir_p ()
12406e531b1a7Smrg{
12407e531b1a7Smrg
12408e531b1a7Smrg  case $as_dir in #(
12409e531b1a7Smrg  -*) as_dir=./$as_dir;;
12410e531b1a7Smrg  esac
12411e531b1a7Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
12412e531b1a7Smrg    as_dirs=
12413e531b1a7Smrg    while :; do
12414e531b1a7Smrg      case $as_dir in #(
124153a99fc18Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12416e531b1a7Smrg      *) as_qdir=$as_dir;;
12417e531b1a7Smrg      esac
12418e531b1a7Smrg      as_dirs="'$as_qdir' $as_dirs"
12419e531b1a7Smrg      as_dir=`$as_dirname -- "$as_dir" ||
12420e531b1a7Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12421e531b1a7Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
12422e531b1a7Smrg	 X"$as_dir" : 'X\(//\)$' \| \
12423e531b1a7Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
124243a99fc18Smrgprintf "%s\n" X"$as_dir" |
12425e531b1a7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12426e531b1a7Smrg	    s//\1/
12427e531b1a7Smrg	    q
12428e531b1a7Smrg	  }
12429e531b1a7Smrg	  /^X\(\/\/\)[^/].*/{
12430e531b1a7Smrg	    s//\1/
12431e531b1a7Smrg	    q
12432e531b1a7Smrg	  }
12433e531b1a7Smrg	  /^X\(\/\/\)$/{
12434e531b1a7Smrg	    s//\1/
12435e531b1a7Smrg	    q
12436e531b1a7Smrg	  }
12437e531b1a7Smrg	  /^X\(\/\).*/{
12438e531b1a7Smrg	    s//\1/
12439e531b1a7Smrg	    q
12440e531b1a7Smrg	  }
12441e531b1a7Smrg	  s/.*/./; q'`
12442e531b1a7Smrg      test -d "$as_dir" && break
12443e531b1a7Smrg    done
12444e531b1a7Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
12445f9d592e5Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12446e531b1a7Smrg
12447e531b1a7Smrg
12448e531b1a7Smrg} # as_fn_mkdir_p
124493da7aff1Smrgif mkdir -p . 2>/dev/null; then
12450e531b1a7Smrg  as_mkdir_p='mkdir -p "$as_dir"'
124513da7aff1Smrgelse
124523da7aff1Smrg  test -d ./-p && rmdir ./-p
124533da7aff1Smrg  as_mkdir_p=false
124543da7aff1Smrgfi
124553da7aff1Smrg
124563e999d35Smrg
124573e999d35Smrg# as_fn_executable_p FILE
124583e999d35Smrg# -----------------------
124593e999d35Smrg# Test if FILE is an executable regular file.
124603e999d35Smrgas_fn_executable_p ()
124613e999d35Smrg{
124623e999d35Smrg  test -f "$1" && test -x "$1"
124633e999d35Smrg} # as_fn_executable_p
124643e999d35Smrgas_test_x='test -x'
124653e999d35Smrgas_executable_p=as_fn_executable_p
124663da7aff1Smrg
124673da7aff1Smrg# Sed expression to map a string onto a valid CPP name.
124681e42c052Smrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
124691e42c052Smrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
124703da7aff1Smrg
124713da7aff1Smrg# Sed expression to map a string onto a valid variable name.
124721e42c052Smrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
124731e42c052Smrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated
124743da7aff1Smrg
124753da7aff1Smrg
124763da7aff1Smrgexec 6>&1
12477e531b1a7Smrg## ----------------------------------- ##
12478e531b1a7Smrg## Main body of $CONFIG_STATUS script. ##
12479e531b1a7Smrg## ----------------------------------- ##
12480e531b1a7Smrg_ASEOF
12481e531b1a7Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12482e531b1a7Smrg
12483e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12484e531b1a7Smrg# Save the log message, to keep $0 and so on meaningful, and to
124853da7aff1Smrg# report actual input values of CONFIG_FILES etc. instead of their
12486e531b1a7Smrg# values after options handling.
12487e531b1a7Smrgac_log="
124881e42c052SmrgThis file was extended by xlogo $as_me 1.0.7, which was
124891e42c052Smrggenerated by GNU Autoconf 2.72.  Invocation command line was
124903da7aff1Smrg
124913da7aff1Smrg  CONFIG_FILES    = $CONFIG_FILES
124923da7aff1Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
124933da7aff1Smrg  CONFIG_LINKS    = $CONFIG_LINKS
124943da7aff1Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
124953da7aff1Smrg  $ $0 $@
124963da7aff1Smrg
12497e531b1a7Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
12498e531b1a7Smrg"
12499e531b1a7Smrg
125003da7aff1Smrg_ACEOF
125013da7aff1Smrg
12502e531b1a7Smrgcase $ac_config_files in *"
12503e531b1a7Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
12504e531b1a7Smrgesac
125053da7aff1Smrg
12506e531b1a7Smrgcase $ac_config_headers in *"
12507e531b1a7Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12508e531b1a7Smrgesac
125093da7aff1Smrg
125103da7aff1Smrg
12511e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12512e531b1a7Smrg# Files that config.status was made for.
12513e531b1a7Smrgconfig_files="$ac_config_files"
12514e531b1a7Smrgconfig_headers="$ac_config_headers"
12515e531b1a7Smrgconfig_commands="$ac_config_commands"
125163da7aff1Smrg
12517e531b1a7Smrg_ACEOF
125183da7aff1Smrg
12519e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
125203da7aff1Smrgac_cs_usage="\
125211e42c052Smrg'$as_me' instantiates files and other configuration actions
12522e531b1a7Smrgfrom templates according to the current configuration.  Unless the files
12523e531b1a7Smrgand actions are specified as TAGs, all are instantiated by default.
125243da7aff1Smrg
12525e531b1a7SmrgUsage: $0 [OPTION]... [TAG]...
125263da7aff1Smrg
125273da7aff1Smrg  -h, --help       print this help, then exit
12528e531b1a7Smrg  -V, --version    print version number and configuration settings, then exit
12529e531b1a7Smrg      --config     print configuration, then exit
12530e531b1a7Smrg  -q, --quiet, --silent
12531e531b1a7Smrg                   do not print progress messages
125323da7aff1Smrg  -d, --debug      don't remove temporary files
125333da7aff1Smrg      --recheck    update $as_me by reconfiguring in the same conditions
12534e531b1a7Smrg      --file=FILE[:TEMPLATE]
12535e531b1a7Smrg                   instantiate the configuration file FILE
12536e531b1a7Smrg      --header=FILE[:TEMPLATE]
12537e531b1a7Smrg                   instantiate the configuration header FILE
125383da7aff1Smrg
125393da7aff1SmrgConfiguration files:
125403da7aff1Smrg$config_files
125413da7aff1Smrg
125423da7aff1SmrgConfiguration headers:
125433da7aff1Smrg$config_headers
125443da7aff1Smrg
125453da7aff1SmrgConfiguration commands:
125463da7aff1Smrg$config_commands
125473da7aff1Smrg
125483a99fc18SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues>."
125493da7aff1Smrg
12550e531b1a7Smrg_ACEOF
125513a99fc18Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
125523a99fc18Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12553e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
125543a99fc18Smrgac_cs_config='$ac_cs_config_escaped'
125553da7aff1Smrgac_cs_version="\\
125561e42c052Smrgxlogo config.status 1.0.7
125571e42c052Smrgconfigured by $0, generated by GNU Autoconf 2.72,
12558e531b1a7Smrg  with options \\"\$ac_cs_config\\"
125593da7aff1Smrg
125601e42c052SmrgCopyright (C) 2023 Free Software Foundation, Inc.
125613da7aff1SmrgThis config.status script is free software; the Free Software Foundation
125623da7aff1Smrggives unlimited permission to copy, distribute and modify it."
12563e531b1a7Smrg
12564e531b1a7Smrgac_pwd='$ac_pwd'
12565e531b1a7Smrgsrcdir='$srcdir'
12566e531b1a7SmrgINSTALL='$INSTALL'
12567e531b1a7SmrgMKDIR_P='$MKDIR_P'
12568e531b1a7SmrgAWK='$AWK'
12569e531b1a7Smrgtest -n "\$AWK" || AWK=awk
125703da7aff1Smrg_ACEOF
125713da7aff1Smrg
12572e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12573e531b1a7Smrg# The default lists apply if the user does not specify any file.
125743da7aff1Smrgac_need_defaults=:
125753da7aff1Smrgwhile test $# != 0
125763da7aff1Smrgdo
125773da7aff1Smrg  case $1 in
12578f9d592e5Smrg  --*=?*)
12579e531b1a7Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12580e531b1a7Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
125813da7aff1Smrg    ac_shift=:
125823da7aff1Smrg    ;;
12583f9d592e5Smrg  --*=)
12584f9d592e5Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12585f9d592e5Smrg    ac_optarg=
12586f9d592e5Smrg    ac_shift=:
12587f9d592e5Smrg    ;;
12588e531b1a7Smrg  *)
125893da7aff1Smrg    ac_option=$1
125903da7aff1Smrg    ac_optarg=$2
125913da7aff1Smrg    ac_shift=shift
125923da7aff1Smrg    ;;
125933da7aff1Smrg  esac
125943da7aff1Smrg
125953da7aff1Smrg  case $ac_option in
125963da7aff1Smrg  # Handling of the options.
125973da7aff1Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
125983da7aff1Smrg    ac_cs_recheck=: ;;
12599e531b1a7Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
126003a99fc18Smrg    printf "%s\n" "$ac_cs_version"; exit ;;
12601e531b1a7Smrg  --config | --confi | --conf | --con | --co | --c )
126023a99fc18Smrg    printf "%s\n" "$ac_cs_config"; exit ;;
12603e531b1a7Smrg  --debug | --debu | --deb | --de | --d | -d )
126043da7aff1Smrg    debug=: ;;
126053da7aff1Smrg  --file | --fil | --fi | --f )
126063da7aff1Smrg    $ac_shift
12607e531b1a7Smrg    case $ac_optarg in
126083a99fc18Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12609f9d592e5Smrg    '') as_fn_error $? "missing file argument" ;;
12610e531b1a7Smrg    esac
12611e531b1a7Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
126123da7aff1Smrg    ac_need_defaults=false;;
126133da7aff1Smrg  --header | --heade | --head | --hea )
126143da7aff1Smrg    $ac_shift
12615e531b1a7Smrg    case $ac_optarg in
126163a99fc18Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12617e531b1a7Smrg    esac
12618e531b1a7Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
126193da7aff1Smrg    ac_need_defaults=false;;
12620e531b1a7Smrg  --he | --h)
12621e531b1a7Smrg    # Conflict between --help and --header
126221e42c052Smrg    as_fn_error $? "ambiguous option: '$1'
126231e42c052SmrgTry '$0 --help' for more information.";;
12624e531b1a7Smrg  --help | --hel | -h )
126253a99fc18Smrg    printf "%s\n" "$ac_cs_usage"; exit ;;
126263da7aff1Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
126273da7aff1Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
126283da7aff1Smrg    ac_cs_silent=: ;;
126293da7aff1Smrg
126303da7aff1Smrg  # This is an error.
126311e42c052Smrg  -*) as_fn_error $? "unrecognized option: '$1'
126321e42c052SmrgTry '$0 --help' for more information." ;;
126333da7aff1Smrg
12634e531b1a7Smrg  *) as_fn_append ac_config_targets " $1"
12635e531b1a7Smrg     ac_need_defaults=false ;;
126363da7aff1Smrg
126373da7aff1Smrg  esac
126383da7aff1Smrg  shift
126393da7aff1Smrgdone
126403da7aff1Smrg
126413da7aff1Smrgac_configure_extra_args=
126423da7aff1Smrg
126433da7aff1Smrgif $ac_cs_silent; then
126443da7aff1Smrg  exec 6>/dev/null
126453da7aff1Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
126463da7aff1Smrgfi
126473da7aff1Smrg
126483da7aff1Smrg_ACEOF
12649e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
126503da7aff1Smrgif \$ac_cs_recheck; then
126513e999d35Smrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12652e531b1a7Smrg  shift
126533a99fc18Smrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12654e531b1a7Smrg  CONFIG_SHELL='$SHELL'
12655e531b1a7Smrg  export CONFIG_SHELL
12656e531b1a7Smrg  exec "\$@"
126573da7aff1Smrgfi
126583da7aff1Smrg
126593da7aff1Smrg_ACEOF
12660e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12661e531b1a7Smrgexec 5>>config.log
12662e531b1a7Smrg{
12663e531b1a7Smrg  echo
12664e531b1a7Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12665e531b1a7Smrg## Running $as_me. ##
12666e531b1a7Smrg_ASBOX
126673a99fc18Smrg  printf "%s\n" "$ac_log"
12668e531b1a7Smrg} >&5
126693da7aff1Smrg
12670e531b1a7Smrg_ACEOF
12671e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
126723da7aff1Smrg#
12673e531b1a7Smrg# INIT-COMMANDS
126743da7aff1Smrg#
126753a99fc18SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
126763da7aff1Smrg
126773da7aff1Smrg_ACEOF
126783da7aff1Smrg
12679e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
126803da7aff1Smrg
12681e531b1a7Smrg# Handling of arguments.
126823da7aff1Smrgfor ac_config_target in $ac_config_targets
126833da7aff1Smrgdo
12684e531b1a7Smrg  case $ac_config_target in
12685e531b1a7Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
126863e999d35Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12687e531b1a7Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
126883fe82118Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12689e531b1a7Smrg
126901e42c052Smrg  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
126913da7aff1Smrg  esac
126923da7aff1Smrgdone
126933da7aff1Smrg
12694e531b1a7Smrg
126953da7aff1Smrg# If the user did not use the arguments to specify the items to instantiate,
126963da7aff1Smrg# then the envvar interface is used.  Set only those that are not.
126973da7aff1Smrg# We use the long form for the default assignment because of an extremely
126983da7aff1Smrg# bizarre bug on SunOS 4.1.3.
126993da7aff1Smrgif $ac_need_defaults; then
127003a99fc18Smrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
127013a99fc18Smrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
127023a99fc18Smrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
127033da7aff1Smrgfi
127043da7aff1Smrg
127053da7aff1Smrg# Have a temporary directory for convenience.  Make it in the build tree
12706e531b1a7Smrg# simply because there is no reason against having it here, and in addition,
127073da7aff1Smrg# creating and moving files from /tmp can sometimes cause problems.
12708e531b1a7Smrg# Hook for its removal unless debugging.
12709e531b1a7Smrg# Note that there is a small window in which the directory will not be cleaned:
127101e42c052Smrg# after its creation but before its name has been assigned to '$tmp'.
127113da7aff1Smrg$debug ||
127123da7aff1Smrg{
12713f9d592e5Smrg  tmp= ac_tmp=
12714e531b1a7Smrg  trap 'exit_status=$?
12715f9d592e5Smrg  : "${ac_tmp:=$tmp}"
12716f9d592e5Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12717e531b1a7Smrg' 0
12718e531b1a7Smrg  trap 'as_fn_exit 1' 1 2 13 15
127193da7aff1Smrg}
127203da7aff1Smrg# Create a (secure) tmp directory for tmp files.
127213da7aff1Smrg
127223da7aff1Smrg{
12723e531b1a7Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12724f9d592e5Smrg  test -d "$tmp"
127253da7aff1Smrg}  ||
127263da7aff1Smrg{
12727e531b1a7Smrg  tmp=./conf$$-$RANDOM
12728e531b1a7Smrg  (umask 077 && mkdir "$tmp")
12729f9d592e5Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12730f9d592e5Smrgac_tmp=$tmp
12731e531b1a7Smrg
12732e531b1a7Smrg# Set up the scripts for CONFIG_FILES section.
12733e531b1a7Smrg# No need to generate them if there are no CONFIG_FILES.
127341e42c052Smrg# This happens for instance with './config.status config.h'.
12735e531b1a7Smrgif test -n "$CONFIG_FILES"; then
12736e531b1a7Smrg
12737e531b1a7Smrg
12738e531b1a7Smrgac_cr=`echo X | tr X '\015'`
12739e531b1a7Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
12740e531b1a7Smrg# But we know of no other shell where ac_cr would be empty at this
12741e531b1a7Smrg# point, so we can use a bashism as a fallback.
12742e531b1a7Smrgif test "x$ac_cr" = x; then
12743e531b1a7Smrg  eval ac_cr=\$\'\\r\'
12744e531b1a7Smrgfi
12745e531b1a7Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12746e531b1a7Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12747f9d592e5Smrg  ac_cs_awk_cr='\\r'
12748e531b1a7Smrgelse
12749e531b1a7Smrg  ac_cs_awk_cr=$ac_cr
12750e531b1a7Smrgfi
12751e531b1a7Smrg
12752f9d592e5Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12753e531b1a7Smrg_ACEOF
12754e531b1a7Smrg
12755e531b1a7Smrg
127563da7aff1Smrg{
12757e531b1a7Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
12758e531b1a7Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12759e531b1a7Smrg  echo "_ACEOF"
12760e531b1a7Smrg} >conf$$subs.sh ||
12761f9d592e5Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12762f9d592e5Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12763e531b1a7Smrgac_delim='%!_!# '
12764e531b1a7Smrgfor ac_last_try in false false false false false :; do
12765e531b1a7Smrg  . ./conf$$subs.sh ||
12766f9d592e5Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12767e531b1a7Smrg
12768e531b1a7Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12769e531b1a7Smrg  if test $ac_delim_n = $ac_delim_num; then
12770e531b1a7Smrg    break
12771e531b1a7Smrg  elif $ac_last_try; then
12772f9d592e5Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12773e531b1a7Smrg  else
12774e531b1a7Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12775e531b1a7Smrg  fi
12776e531b1a7Smrgdone
12777e531b1a7Smrgrm -f conf$$subs.sh
127783da7aff1Smrg
12779e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12780f9d592e5Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
127813da7aff1Smrg_ACEOF
12782e531b1a7Smrgsed -n '
12783e531b1a7Smrgh
12784e531b1a7Smrgs/^/S["/; s/!.*/"]=/
12785e531b1a7Smrgp
12786e531b1a7Smrgg
12787e531b1a7Smrgs/^[^!]*!//
12788e531b1a7Smrg:repl
12789e531b1a7Smrgt repl
12790e531b1a7Smrgs/'"$ac_delim"'$//
12791e531b1a7Smrgt delim
12792e531b1a7Smrg:nl
12793e531b1a7Smrgh
12794e531b1a7Smrgs/\(.\{148\}\)..*/\1/
12795e531b1a7Smrgt more1
12796e531b1a7Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12797e531b1a7Smrgp
12798e531b1a7Smrgn
12799e531b1a7Smrgb repl
12800e531b1a7Smrg:more1
12801e531b1a7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12802e531b1a7Smrgp
12803e531b1a7Smrgg
12804e531b1a7Smrgs/.\{148\}//
12805e531b1a7Smrgt nl
12806e531b1a7Smrg:delim
12807e531b1a7Smrgh
12808e531b1a7Smrgs/\(.\{148\}\)..*/\1/
12809e531b1a7Smrgt more2
12810e531b1a7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
12811e531b1a7Smrgp
12812e531b1a7Smrgb
12813e531b1a7Smrg:more2
12814e531b1a7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12815e531b1a7Smrgp
12816e531b1a7Smrgg
12817e531b1a7Smrgs/.\{148\}//
12818e531b1a7Smrgt delim
12819e531b1a7Smrg' <conf$$subs.awk | sed '
12820e531b1a7Smrg/^[^""]/{
12821e531b1a7Smrg  N
12822e531b1a7Smrg  s/\n//
12823e531b1a7Smrg}
12824e531b1a7Smrg' >>$CONFIG_STATUS || ac_write_fail=1
12825e531b1a7Smrgrm -f conf$$subs.awk
12826e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12827e531b1a7Smrg_ACAWK
12828f9d592e5Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12829e531b1a7Smrg  for (key in S) S_is_set[key] = 1
12830e531b1a7Smrg  FS = ""
128313da7aff1Smrg
12832e531b1a7Smrg}
12833e531b1a7Smrg{
12834e531b1a7Smrg  line = $ 0
12835e531b1a7Smrg  nfields = split(line, field, "@")
12836e531b1a7Smrg  substed = 0
12837e531b1a7Smrg  len = length(field[1])
12838e531b1a7Smrg  for (i = 2; i < nfields; i++) {
12839e531b1a7Smrg    key = field[i]
12840e531b1a7Smrg    keylen = length(key)
12841e531b1a7Smrg    if (S_is_set[key]) {
12842e531b1a7Smrg      value = S[key]
12843e531b1a7Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12844e531b1a7Smrg      len += length(value) + length(field[++i])
12845e531b1a7Smrg      substed = 1
12846e531b1a7Smrg    } else
12847e531b1a7Smrg      len += 1 + keylen
12848e531b1a7Smrg  }
12849e531b1a7Smrg
12850e531b1a7Smrg  print line
12851e531b1a7Smrg}
128523da7aff1Smrg
12853e531b1a7Smrg_ACAWK
12854e531b1a7Smrg_ACEOF
12855e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12856e531b1a7Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12857e531b1a7Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12858e531b1a7Smrgelse
12859e531b1a7Smrg  cat
12860f9d592e5Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12861f9d592e5Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12862e531b1a7Smrg_ACEOF
12863e531b1a7Smrg
12864f9d592e5Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12865f9d592e5Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12866e531b1a7Smrg# trailing colons and then remove the whole line if VPATH becomes empty
12867e531b1a7Smrg# (actually we leave an empty line to preserve line numbers).
12868e531b1a7Smrgif test "x$srcdir" = x.; then
12869f9d592e5Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12870f9d592e5Smrgh
12871f9d592e5Smrgs///
12872f9d592e5Smrgs/^/:/
12873f9d592e5Smrgs/[	 ]*$/:/
12874f9d592e5Smrgs/:\$(srcdir):/:/g
12875f9d592e5Smrgs/:\${srcdir}:/:/g
12876f9d592e5Smrgs/:@srcdir@:/:/g
12877f9d592e5Smrgs/^:*//
12878e531b1a7Smrgs/:*$//
12879f9d592e5Smrgx
12880f9d592e5Smrgs/\(=[	 ]*\).*/\1/
12881f9d592e5SmrgG
12882f9d592e5Smrgs/\n//
12883e531b1a7Smrgs/^[^=]*=[	 ]*$//
12884e531b1a7Smrg}'
12885e531b1a7Smrgfi
128863da7aff1Smrg
12887e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12888e531b1a7Smrgfi # test -n "$CONFIG_FILES"
128893da7aff1Smrg
12890e531b1a7Smrg# Set up the scripts for CONFIG_HEADERS section.
12891e531b1a7Smrg# No need to generate them if there are no CONFIG_HEADERS.
128921e42c052Smrg# This happens for instance with './config.status Makefile'.
12893e531b1a7Smrgif test -n "$CONFIG_HEADERS"; then
12894f9d592e5Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12895e531b1a7SmrgBEGIN {
128963da7aff1Smrg_ACEOF
128973da7aff1Smrg
128981e42c052Smrg# Transform confdefs.h into an awk script 'defines.awk', embedded as
12899e531b1a7Smrg# here-document in config.status, that substitutes the proper values into
12900e531b1a7Smrg# config.h.in to produce config.h.
12901e531b1a7Smrg
12902e531b1a7Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
12903e531b1a7Smrg# handling of long lines.
12904e531b1a7Smrgac_delim='%!_!# '
12905e531b1a7Smrgfor ac_last_try in false false :; do
12906f9d592e5Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12907f9d592e5Smrg  if test -z "$ac_tt"; then
12908e531b1a7Smrg    break
12909e531b1a7Smrg  elif $ac_last_try; then
12910f9d592e5Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12911e531b1a7Smrg  else
12912e531b1a7Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
129133da7aff1Smrg  fi
12914e531b1a7Smrgdone
129153da7aff1Smrg
12916e531b1a7Smrg# For the awk script, D is an array of macro values keyed by name,
12917e531b1a7Smrg# likewise P contains macro parameters if any.  Preserve backslash
12918e531b1a7Smrg# newline sequences.
12919e531b1a7Smrg
12920e531b1a7Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12921e531b1a7Smrgsed -n '
12922e531b1a7Smrgs/.\{148\}/&'"$ac_delim"'/g
12923e531b1a7Smrgt rset
12924e531b1a7Smrg:rset
12925e531b1a7Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12926e531b1a7Smrgt def
12927e531b1a7Smrgd
12928e531b1a7Smrg:def
12929e531b1a7Smrgs/\\$//
12930e531b1a7Smrgt bsnl
12931e531b1a7Smrgs/["\\]/\\&/g
12932e531b1a7Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12933e531b1a7SmrgD["\1"]=" \3"/p
12934e531b1a7Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12935e531b1a7Smrgd
12936e531b1a7Smrg:bsnl
12937e531b1a7Smrgs/["\\]/\\&/g
12938e531b1a7Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12939e531b1a7SmrgD["\1"]=" \3\\\\\\n"\\/p
12940e531b1a7Smrgt cont
12941e531b1a7Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12942e531b1a7Smrgt cont
12943e531b1a7Smrgd
12944e531b1a7Smrg:cont
12945e531b1a7Smrgn
12946e531b1a7Smrgs/.\{148\}/&'"$ac_delim"'/g
12947e531b1a7Smrgt clear
12948e531b1a7Smrg:clear
12949e531b1a7Smrgs/\\$//
12950e531b1a7Smrgt bsnlc
12951e531b1a7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
12952e531b1a7Smrgd
12953e531b1a7Smrg:bsnlc
12954e531b1a7Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12955e531b1a7Smrgb cont
12956e531b1a7Smrg' <confdefs.h | sed '
12957e531b1a7Smrgs/'"$ac_delim"'/"\\\
12958e531b1a7Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
12959e531b1a7Smrg
12960e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12961e531b1a7Smrg  for (key in D) D_is_set[key] = 1
12962e531b1a7Smrg  FS = ""
12963e531b1a7Smrg}
12964e531b1a7Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12965e531b1a7Smrg  line = \$ 0
12966e531b1a7Smrg  split(line, arg, " ")
12967e531b1a7Smrg  if (arg[1] == "#") {
12968e531b1a7Smrg    defundef = arg[2]
12969e531b1a7Smrg    mac1 = arg[3]
12970e531b1a7Smrg  } else {
12971e531b1a7Smrg    defundef = substr(arg[1], 2)
12972e531b1a7Smrg    mac1 = arg[2]
12973e531b1a7Smrg  }
12974e531b1a7Smrg  split(mac1, mac2, "(") #)
12975e531b1a7Smrg  macro = mac2[1]
12976e531b1a7Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
12977e531b1a7Smrg  if (D_is_set[macro]) {
12978e531b1a7Smrg    # Preserve the white space surrounding the "#".
12979e531b1a7Smrg    print prefix "define", macro P[macro] D[macro]
12980e531b1a7Smrg    next
12981e531b1a7Smrg  } else {
12982e531b1a7Smrg    # Replace #undef with comments.  This is necessary, for example,
12983e531b1a7Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
12984e531b1a7Smrg    # on some systems where configure will not decide to define it.
12985e531b1a7Smrg    if (defundef == "undef") {
12986e531b1a7Smrg      print "/*", prefix defundef, macro, "*/"
12987e531b1a7Smrg      next
12988e531b1a7Smrg    }
12989e531b1a7Smrg  }
12990e531b1a7Smrg}
12991e531b1a7Smrg{ print }
12992e531b1a7Smrg_ACAWK
129933da7aff1Smrg_ACEOF
12994e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12995f9d592e5Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12996e531b1a7Smrgfi # test -n "$CONFIG_HEADERS"
12997e531b1a7Smrg
12998e531b1a7Smrg
12999e531b1a7Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13000e531b1a7Smrgshift
13001e531b1a7Smrgfor ac_tag
13002e531b1a7Smrgdo
13003e531b1a7Smrg  case $ac_tag in
13004e531b1a7Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
13005e531b1a7Smrg  esac
13006e531b1a7Smrg  case $ac_mode$ac_tag in
13007e531b1a7Smrg  :[FHL]*:*);;
130081e42c052Smrg  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13009e531b1a7Smrg  :[FH]-) ac_tag=-:-;;
13010e531b1a7Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13011e531b1a7Smrg  esac
13012e531b1a7Smrg  ac_save_IFS=$IFS
13013e531b1a7Smrg  IFS=:
13014e531b1a7Smrg  set x $ac_tag
13015e531b1a7Smrg  IFS=$ac_save_IFS
13016e531b1a7Smrg  shift
13017e531b1a7Smrg  ac_file=$1
13018e531b1a7Smrg  shift
13019e531b1a7Smrg
13020e531b1a7Smrg  case $ac_mode in
13021e531b1a7Smrg  :L) ac_source=$1;;
13022e531b1a7Smrg  :[FH])
13023e531b1a7Smrg    ac_file_inputs=
13024e531b1a7Smrg    for ac_f
13025e531b1a7Smrg    do
13026e531b1a7Smrg      case $ac_f in
13027f9d592e5Smrg      -) ac_f="$ac_tmp/stdin";;
13028e531b1a7Smrg      *) # Look for the file first in the build tree, then in the source tree
13029e531b1a7Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
130301e42c052Smrg	 # because $ac_f cannot contain ':'.
13031e531b1a7Smrg	 test -f "$ac_f" ||
13032e531b1a7Smrg	   case $ac_f in
13033e531b1a7Smrg	   [\\/$]*) false;;
13034e531b1a7Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13035e531b1a7Smrg	   esac ||
130361e42c052Smrg	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13037e531b1a7Smrg      esac
130383a99fc18Smrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13039e531b1a7Smrg      as_fn_append ac_file_inputs " '$ac_f'"
13040e531b1a7Smrg    done
13041e531b1a7Smrg
130421e42c052Smrg    # Let's still pretend it is 'configure' which instantiates (i.e., don't
13043e531b1a7Smrg    # use $as_me), people would be surprised to read:
13044e531b1a7Smrg    #    /* config.h.  Generated by config.status.  */
13045e531b1a7Smrg    configure_input='Generated from '`
130463a99fc18Smrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13047e531b1a7Smrg	`' by configure.'
13048e531b1a7Smrg    if test x"$ac_file" != x-; then
13049e531b1a7Smrg      configure_input="$ac_file.  $configure_input"
130503a99fc18Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
130513a99fc18Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
13052e531b1a7Smrg    fi
13053e531b1a7Smrg    # Neutralize special characters interpreted by sed in replacement strings.
13054e531b1a7Smrg    case $configure_input in #(
13055e531b1a7Smrg    *\&* | *\|* | *\\* )
130563a99fc18Smrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13057e531b1a7Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13058e531b1a7Smrg    *) ac_sed_conf_input=$configure_input;;
13059e531b1a7Smrg    esac
13060e531b1a7Smrg
13061e531b1a7Smrg    case $ac_tag in
13062f9d592e5Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13063f9d592e5Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13064e531b1a7Smrg    esac
13065e531b1a7Smrg    ;;
130663da7aff1Smrg  esac
130673da7aff1Smrg
13068e531b1a7Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
130693da7aff1Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
130703da7aff1Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
130713da7aff1Smrg	 X"$ac_file" : 'X\(//\)$' \| \
13072e531b1a7Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
130733a99fc18Smrgprintf "%s\n" X"$ac_file" |
13074e531b1a7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13075e531b1a7Smrg	    s//\1/
13076e531b1a7Smrg	    q
13077e531b1a7Smrg	  }
13078e531b1a7Smrg	  /^X\(\/\/\)[^/].*/{
13079e531b1a7Smrg	    s//\1/
13080e531b1a7Smrg	    q
13081e531b1a7Smrg	  }
13082e531b1a7Smrg	  /^X\(\/\/\)$/{
13083e531b1a7Smrg	    s//\1/
13084e531b1a7Smrg	    q
13085e531b1a7Smrg	  }
13086e531b1a7Smrg	  /^X\(\/\).*/{
13087e531b1a7Smrg	    s//\1/
13088e531b1a7Smrg	    q
13089e531b1a7Smrg	  }
13090e531b1a7Smrg	  s/.*/./; q'`
13091e531b1a7Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
130923da7aff1Smrg  ac_builddir=.
130933da7aff1Smrg
13094e531b1a7Smrgcase "$ac_dir" in
13095e531b1a7Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13096e531b1a7Smrg*)
130973a99fc18Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13098e531b1a7Smrg  # A ".." for each directory in $ac_dir_suffix.
130993a99fc18Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13100e531b1a7Smrg  case $ac_top_builddir_sub in
13101e531b1a7Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13102e531b1a7Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13103e531b1a7Smrg  esac ;;
13104e531b1a7Smrgesac
13105e531b1a7Smrgac_abs_top_builddir=$ac_pwd
13106e531b1a7Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
13107e531b1a7Smrg# for backward compatibility:
13108e531b1a7Smrgac_top_builddir=$ac_top_build_prefix
131093da7aff1Smrg
131103da7aff1Smrgcase $srcdir in
13111e531b1a7Smrg  .)  # We are building in place.
131123da7aff1Smrg    ac_srcdir=.
13113e531b1a7Smrg    ac_top_srcdir=$ac_top_builddir_sub
13114e531b1a7Smrg    ac_abs_top_srcdir=$ac_pwd ;;
13115e531b1a7Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
131163da7aff1Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
13117e531b1a7Smrg    ac_top_srcdir=$srcdir
13118e531b1a7Smrg    ac_abs_top_srcdir=$srcdir ;;
13119e531b1a7Smrg  *) # Relative name.
13120e531b1a7Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13121e531b1a7Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
13122e531b1a7Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
131233da7aff1Smrgesac
13124e531b1a7Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
131253da7aff1Smrg
131263da7aff1Smrg
13127e531b1a7Smrg  case $ac_mode in
13128e531b1a7Smrg  :F)
13129e531b1a7Smrg  #
13130e531b1a7Smrg  # CONFIG_FILE
13131e531b1a7Smrg  #
131323da7aff1Smrg
131333da7aff1Smrg  case $INSTALL in
131343da7aff1Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13135e531b1a7Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13136e531b1a7Smrg  esac
13137e531b1a7Smrg  ac_MKDIR_P=$MKDIR_P
13138e531b1a7Smrg  case $MKDIR_P in
13139e531b1a7Smrg  [\\/$]* | ?:[\\/]* ) ;;
13140e531b1a7Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
131413da7aff1Smrg  esac
13142e531b1a7Smrg_ACEOF
131433da7aff1Smrg
13144e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13145e531b1a7Smrg# If the template does not know about datarootdir, expand it.
13146e531b1a7Smrg# FIXME: This hack should be removed a few years after 2.60.
13147e531b1a7Smrgac_datarootdir_hack=; ac_datarootdir_seen=
13148e531b1a7Smrgac_sed_dataroot='
13149e531b1a7Smrg/datarootdir/ {
13150e531b1a7Smrg  p
13151e531b1a7Smrg  q
13152e531b1a7Smrg}
13153e531b1a7Smrg/@datadir@/p
13154e531b1a7Smrg/@docdir@/p
13155e531b1a7Smrg/@infodir@/p
13156e531b1a7Smrg/@localedir@/p
13157e531b1a7Smrg/@mandir@/p'
13158e531b1a7Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13159e531b1a7Smrg*datarootdir*) ac_datarootdir_seen=yes;;
13160e531b1a7Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
131613a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
131623a99fc18Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13163e531b1a7Smrg_ACEOF
13164e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13165e531b1a7Smrg  ac_datarootdir_hack='
13166e531b1a7Smrg  s&@datadir@&$datadir&g
13167e531b1a7Smrg  s&@docdir@&$docdir&g
13168e531b1a7Smrg  s&@infodir@&$infodir&g
13169e531b1a7Smrg  s&@localedir@&$localedir&g
13170e531b1a7Smrg  s&@mandir@&$mandir&g
13171e531b1a7Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
13172e531b1a7Smrgesac
131733da7aff1Smrg_ACEOF
13174e531b1a7Smrg
131751e42c052Smrg# Neutralize VPATH when '$srcdir' = '.'.
13176e531b1a7Smrg# Shell code in configure.ac might set extrasub.
13177e531b1a7Smrg# FIXME: do we really want to maintain this feature?
13178e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13179e531b1a7Smrgac_sed_extra="$ac_vpsub
131803da7aff1Smrg$extrasub
131813da7aff1Smrg_ACEOF
13182e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
131833da7aff1Smrg:t
131843da7aff1Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13185e531b1a7Smrgs|@configure_input@|$ac_sed_conf_input|;t t
13186e531b1a7Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
13187e531b1a7Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
13188e531b1a7Smrgs&@srcdir@&$ac_srcdir&;t t
13189e531b1a7Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
13190e531b1a7Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
13191e531b1a7Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13192e531b1a7Smrgs&@builddir@&$ac_builddir&;t t
13193e531b1a7Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
13194e531b1a7Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13195e531b1a7Smrgs&@INSTALL@&$ac_INSTALL&;t t
13196e531b1a7Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
13197e531b1a7Smrg$ac_datarootdir_hack
13198e531b1a7Smrg"
13199f9d592e5Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13200f9d592e5Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13201e531b1a7Smrg
13202e531b1a7Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13203f9d592e5Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13204f9d592e5Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13205f9d592e5Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
132061e42c052Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13207f9d592e5Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
132081e42c052Smrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13209f9d592e5Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
13210e531b1a7Smrg
13211f9d592e5Smrg  rm -f "$ac_tmp/stdin"
132123da7aff1Smrg  case $ac_file in
13213f9d592e5Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13214f9d592e5Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13215e531b1a7Smrg  esac \
13216f9d592e5Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13217e531b1a7Smrg ;;
13218e531b1a7Smrg  :H)
13219e531b1a7Smrg  #
13220e531b1a7Smrg  # CONFIG_HEADER
13221e531b1a7Smrg  #
132223da7aff1Smrg  if test x"$ac_file" != x-; then
13223e531b1a7Smrg    {
132243a99fc18Smrg      printf "%s\n" "/* $configure_input  */" >&1 \
13225f9d592e5Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13226f9d592e5Smrg    } >"$ac_tmp/config.h" \
13227f9d592e5Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13228f9d592e5Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
132293a99fc18Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
132303a99fc18Smrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
132313da7aff1Smrg    else
13232e531b1a7Smrg      rm -f "$ac_file"
13233f9d592e5Smrg      mv "$ac_tmp/config.h" "$ac_file" \
13234f9d592e5Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
132353da7aff1Smrg    fi
132363da7aff1Smrg  else
132373a99fc18Smrg    printf "%s\n" "/* $configure_input  */" >&1 \
13238f9d592e5Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13239f9d592e5Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
132403da7aff1Smrg  fi
13241e531b1a7Smrg# Compute "$ac_file"'s index in $config_headers.
13242e531b1a7Smrg_am_arg="$ac_file"
132433da7aff1Smrg_am_stamp_count=1
132443da7aff1Smrgfor _am_header in $config_headers :; do
132453da7aff1Smrg  case $_am_header in
13246e531b1a7Smrg    $_am_arg | $_am_arg:* )
132473da7aff1Smrg      break ;;
132483da7aff1Smrg    * )
132493da7aff1Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
132503da7aff1Smrg  esac
132513da7aff1Smrgdone
13252e531b1a7Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13253e531b1a7Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13254e531b1a7Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13255e531b1a7Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
13256e531b1a7Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
132573a99fc18Smrgprintf "%s\n" X"$_am_arg" |
13258e531b1a7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13259e531b1a7Smrg	    s//\1/
13260e531b1a7Smrg	    q
13261e531b1a7Smrg	  }
13262e531b1a7Smrg	  /^X\(\/\/\)[^/].*/{
13263e531b1a7Smrg	    s//\1/
13264e531b1a7Smrg	    q
13265e531b1a7Smrg	  }
13266e531b1a7Smrg	  /^X\(\/\/\)$/{
13267e531b1a7Smrg	    s//\1/
13268e531b1a7Smrg	    q
13269e531b1a7Smrg	  }
13270e531b1a7Smrg	  /^X\(\/\).*/{
13271e531b1a7Smrg	    s//\1/
13272e531b1a7Smrg	    q
13273e531b1a7Smrg	  }
13274e531b1a7Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
13275e531b1a7Smrg ;;
132763da7aff1Smrg
132773a99fc18Smrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
132783a99fc18Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13279e531b1a7Smrg ;;
13280e531b1a7Smrg  esac
132813da7aff1Smrg
132823da7aff1Smrg
13283e531b1a7Smrg  case $ac_file$ac_mode in
13284e531b1a7Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
132853e999d35Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
13286e531b1a7Smrg  # are listed without --file.  Let's play safe and only enable the eval
13287e531b1a7Smrg  # if we detect the quoting.
132883a99fc18Smrg  # TODO: see whether this extra hack can be removed once we start
132893a99fc18Smrg  # requiring Autoconf 2.70 or later.
132903a99fc18Smrg  case $CONFIG_FILES in #(
132913a99fc18Smrg  *\'*) :
132923a99fc18Smrg    eval set x "$CONFIG_FILES" ;; #(
132933a99fc18Smrg  *) :
132943a99fc18Smrg    set x $CONFIG_FILES ;; #(
132953a99fc18Smrg  *) :
132963a99fc18Smrg     ;;
132973a99fc18Smrgesac
13298e531b1a7Smrg  shift
132993a99fc18Smrg  # Used to flag and report bootstrapping failures.
133003a99fc18Smrg  am_rc=0
133013a99fc18Smrg  for am_mf
13302e531b1a7Smrg  do
13303e531b1a7Smrg    # Strip MF so we end up with the name of the file.
133043a99fc18Smrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
133053a99fc18Smrg    # Check whether this is an Automake generated Makefile which includes
133063a99fc18Smrg    # dependency-tracking related rules and includes.
133073a99fc18Smrg    # Grep'ing the whole file directly is not great: AIX grep has a line
13308e531b1a7Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
133093a99fc18Smrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
133103a99fc18Smrg      || continue
133113a99fc18Smrg    am_dirpart=`$as_dirname -- "$am_mf" ||
133123a99fc18Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
133133a99fc18Smrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
133143a99fc18Smrg	 X"$am_mf" : 'X\(//\)$' \| \
133153a99fc18Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
133163a99fc18Smrgprintf "%s\n" X"$am_mf" |
13317e531b1a7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13318e531b1a7Smrg	    s//\1/
13319e531b1a7Smrg	    q
13320e531b1a7Smrg	  }
13321e531b1a7Smrg	  /^X\(\/\/\)[^/].*/{
13322e531b1a7Smrg	    s//\1/
13323e531b1a7Smrg	    q
13324e531b1a7Smrg	  }
13325e531b1a7Smrg	  /^X\(\/\/\)$/{
13326e531b1a7Smrg	    s//\1/
13327e531b1a7Smrg	    q
13328e531b1a7Smrg	  }
13329e531b1a7Smrg	  /^X\(\/\).*/{
13330e531b1a7Smrg	    s//\1/
13331e531b1a7Smrg	    q
13332e531b1a7Smrg	  }
13333e531b1a7Smrg	  s/.*/./; q'`
133343a99fc18Smrg    am_filepart=`$as_basename -- "$am_mf" ||
133353a99fc18Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
133363a99fc18Smrg	 X"$am_mf" : 'X\(//\)$' \| \
133373a99fc18Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
133383a99fc18Smrgprintf "%s\n" X/"$am_mf" |
133393a99fc18Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
13340e531b1a7Smrg	    s//\1/
13341e531b1a7Smrg	    q
13342e531b1a7Smrg	  }
133433a99fc18Smrg	  /^X\/\(\/\/\)$/{
13344e531b1a7Smrg	    s//\1/
13345e531b1a7Smrg	    q
13346e531b1a7Smrg	  }
133473a99fc18Smrg	  /^X\/\(\/\).*/{
13348e531b1a7Smrg	    s//\1/
13349e531b1a7Smrg	    q
13350e531b1a7Smrg	  }
13351e531b1a7Smrg	  s/.*/./; q'`
133523a99fc18Smrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
133533a99fc18Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
133543a99fc18Smrg        | $MAKE -f - am--depfiles" >&5
133553a99fc18Smrg   (cd "$am_dirpart" \
133563a99fc18Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
133573a99fc18Smrg        | $MAKE -f - am--depfiles) >&5 2>&5
133583a99fc18Smrg   ac_status=$?
133593a99fc18Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
133603a99fc18Smrg   (exit $ac_status); } || am_rc=$?
133613da7aff1Smrg  done
133623a99fc18Smrg  if test $am_rc -ne 0; then
133631e42c052Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
133641e42c052Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
133653a99fc18Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
133663a99fc18Smrg    for automatic dependency tracking.  If GNU make was not used, consider
133673a99fc18Smrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
133683a99fc18Smrg    necessary).  You can also try re-running configure with the
133693a99fc18Smrg    '--disable-dependency-tracking' option to at least be able to build
133703a99fc18Smrg    the package (albeit without support for automatic dependency tracking).
133711e42c052SmrgSee 'config.log' for more details" "$LINENO" 5; }
133723a99fc18Smrg  fi
133733a99fc18Smrg  { am_dirpart=; unset am_dirpart;}
133743a99fc18Smrg  { am_filepart=; unset am_filepart;}
133753a99fc18Smrg  { am_mf=; unset am_mf;}
133763a99fc18Smrg  { am_rc=; unset am_rc;}
133773a99fc18Smrg  rm -f conftest-deps.mk
13378e531b1a7Smrg}
133793da7aff1Smrg ;;
13380e531b1a7Smrg
133813da7aff1Smrg  esac
13382e531b1a7Smrgdone # for ac_tag
133833da7aff1Smrg
133843da7aff1Smrg
13385e531b1a7Smrgas_fn_exit 0
133863da7aff1Smrg_ACEOF
133873da7aff1Smrgac_clean_files=$ac_clean_files_save
133883da7aff1Smrg
13389e531b1a7Smrgtest $ac_write_fail = 0 ||
13390f9d592e5Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13391e531b1a7Smrg
133923da7aff1Smrg
133933da7aff1Smrg# configure is writing to config.log, and then calls config.status.
133943da7aff1Smrg# config.status does its own redirection, appending to config.log.
133953da7aff1Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
133963da7aff1Smrg# by configure, so config.status won't be able to write to it; its
133973da7aff1Smrg# output is simply discarded.  So we exec the FD to /dev/null,
133983da7aff1Smrg# effectively closing config.log, so it can be properly (re)opened and
133993da7aff1Smrg# appended to by config.status.  When coming back to configure, we
134003da7aff1Smrg# need to make the FD available again.
134013da7aff1Smrgif test "$no_create" != yes; then
134023da7aff1Smrg  ac_cs_success=:
134033da7aff1Smrg  ac_config_status_args=
134043da7aff1Smrg  test "$silent" = yes &&
134053da7aff1Smrg    ac_config_status_args="$ac_config_status_args --quiet"
134063da7aff1Smrg  exec 5>/dev/null
134073da7aff1Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
134083da7aff1Smrg  exec 5>>config.log
134093da7aff1Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
134103da7aff1Smrg  # would make configure fail if this is the last instruction.
13411f9d592e5Smrg  $ac_cs_success || as_fn_exit 1
13412e531b1a7Smrgfi
13413e531b1a7Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
134143a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
134153a99fc18Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
134163da7aff1Smrgfi
134173da7aff1Smrg
134183a99fc18Smrg
13419