configure revision 01395c31
192bb16f8Smrg#! /bin/sh
292bb16f8Smrg# Guess values for system-dependent variables and create Makefiles.
301395c31Smrg# Generated by GNU Autoconf 2.69 for encodings 1.0.5.
492bb16f8Smrg#
501395c31Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/font/encodings/issues>.
692bb16f8Smrg#
7de7ed6e8Smrg#
801395c31Smrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9de7ed6e8Smrg#
10de7ed6e8Smrg#
1192bb16f8Smrg# This configure script is free software; the Free Software Foundation
1292bb16f8Smrg# gives unlimited permission to copy, distribute and modify it.
13de7ed6e8Smrg## -------------------- ##
14de7ed6e8Smrg## M4sh Initialization. ##
15de7ed6e8Smrg## -------------------- ##
1692bb16f8Smrg
178255a313Smrg# Be more Bourne compatible
188255a313SmrgDUALCASE=1; export DUALCASE # for MKS sh
19de7ed6e8Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2092bb16f8Smrg  emulate sh
2192bb16f8Smrg  NULLCMD=:
228255a313Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2392bb16f8Smrg  # is contrary to our usage.  Disable this feature.
2492bb16f8Smrg  alias -g '${1+"$@"}'='"$@"'
2592bb16f8Smrg  setopt NO_GLOB_SUBST
2692bb16f8Smrgelse
27de7ed6e8Smrg  case `(set -o) 2>/dev/null` in #(
28de7ed6e8Smrg  *posix*) :
29de7ed6e8Smrg    set -o posix ;; #(
30de7ed6e8Smrg  *) :
31de7ed6e8Smrg     ;;
328255a313Smrgesac
3392bb16f8Smrgfi
348255a313Smrg
358255a313Smrg
368255a313Smrgas_nl='
378255a313Smrg'
388255a313Smrgexport as_nl
398255a313Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
408255a313Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
418255a313Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
428255a313Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43de7ed6e8Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
44de7ed6e8Smrg# but without wasting forks for bash or zsh.
45de7ed6e8Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
46de7ed6e8Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47de7ed6e8Smrg  as_echo='print -r --'
48de7ed6e8Smrg  as_echo_n='print -rn --'
49de7ed6e8Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
508255a313Smrg  as_echo='printf %s\n'
518255a313Smrg  as_echo_n='printf %s'
528255a313Smrgelse
538255a313Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
548255a313Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
558255a313Smrg    as_echo_n='/usr/ucb/echo -n'
5692bb16f8Smrg  else
578255a313Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
588255a313Smrg    as_echo_n_body='eval
598255a313Smrg      arg=$1;
60de7ed6e8Smrg      case $arg in #(
618255a313Smrg      *"$as_nl"*)
628255a313Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
638255a313Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
648255a313Smrg      esac;
658255a313Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
668255a313Smrg    '
678255a313Smrg    export as_echo_n_body
688255a313Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
6992bb16f8Smrg  fi
708255a313Smrg  export as_echo_body
718255a313Smrg  as_echo='sh -c $as_echo_body as_echo'
728255a313Smrgfi
738255a313Smrg
748255a313Smrg# The user is always right.
758255a313Smrgif test "${PATH_SEPARATOR+set}" != set; then
768255a313Smrg  PATH_SEPARATOR=:
778255a313Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
788255a313Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
798255a313Smrg      PATH_SEPARATOR=';'
808255a313Smrg  }
8192bb16f8Smrgfi
8292bb16f8Smrg
8392bb16f8Smrg
8492bb16f8Smrg# IFS
8592bb16f8Smrg# We need space, tab and new line, in precisely that order.  Quoting is
8692bb16f8Smrg# there to prevent editors from complaining about space-tab.
8792bb16f8Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8892bb16f8Smrg# splitting by setting IFS to empty value.)
8992bb16f8SmrgIFS=" ""	$as_nl"
9092bb16f8Smrg
9192bb16f8Smrg# Find who we are.  Look in the path if we contain no directory separator.
92de7ed6e8Smrgas_myself=
93de7ed6e8Smrgcase $0 in #((
9492bb16f8Smrg  *[\\/]* ) as_myself=$0 ;;
9592bb16f8Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692bb16f8Smrgfor as_dir in $PATH
9792bb16f8Smrgdo
9892bb16f8Smrg  IFS=$as_save_IFS
9992bb16f8Smrg  test -z "$as_dir" && as_dir=.
100de7ed6e8Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101de7ed6e8Smrg  done
10292bb16f8SmrgIFS=$as_save_IFS
10392bb16f8Smrg
10492bb16f8Smrg     ;;
10592bb16f8Smrgesac
10692bb16f8Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
10792bb16f8Smrg# in which case we are not to be found in the path.
10892bb16f8Smrgif test "x$as_myself" = x; then
10992bb16f8Smrg  as_myself=$0
11092bb16f8Smrgfi
11192bb16f8Smrgif test ! -f "$as_myself"; then
1128255a313Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113de7ed6e8Smrg  exit 1
11492bb16f8Smrgfi
11592bb16f8Smrg
116de7ed6e8Smrg# Unset variables that we do not need and which cause bugs (e.g. in
117de7ed6e8Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118de7ed6e8Smrg# suppresses any "Segmentation fault" message there.  '((' could
119de7ed6e8Smrg# trigger a bug in pdksh 5.2.14.
120de7ed6e8Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
121de7ed6e8Smrgdo eval test x\${$as_var+set} = xset \
122de7ed6e8Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12392bb16f8Smrgdone
12492bb16f8SmrgPS1='$ '
12592bb16f8SmrgPS2='> '
12692bb16f8SmrgPS4='+ '
12792bb16f8Smrg
12892bb16f8Smrg# NLS nuisances.
1298255a313SmrgLC_ALL=C
1308255a313Smrgexport LC_ALL
1318255a313SmrgLANGUAGE=C
1328255a313Smrgexport LANGUAGE
13392bb16f8Smrg
134de7ed6e8Smrg# CDPATH.
135de7ed6e8Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136de7ed6e8Smrg
13701395c31Smrg# Use a proper internal environment variable to ensure we don't fall
13801395c31Smrg  # into an infinite loop, continuously re-executing ourselves.
13901395c31Smrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
14001395c31Smrg    _as_can_reexec=no; export _as_can_reexec;
14101395c31Smrg    # We cannot yet assume a decent shell, so we have to provide a
14201395c31Smrg# neutralization value for shells without unset; and this also
14301395c31Smrg# works around shells that cannot unset nonexistent variables.
14401395c31Smrg# Preserve -v and -x to the replacement shell.
14501395c31SmrgBASH_ENV=/dev/null
14601395c31SmrgENV=/dev/null
14701395c31Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
14801395c31Smrgcase $- in # ((((
14901395c31Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
15001395c31Smrg  *v* ) as_opts=-v ;;
15101395c31Smrg  *x* ) as_opts=-x ;;
15201395c31Smrg  * ) as_opts= ;;
15301395c31Smrgesac
15401395c31Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
15501395c31Smrg# Admittedly, this is quite paranoid, since all the known shells bail
15601395c31Smrg# out after a failed `exec'.
15701395c31Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
15801395c31Smrgas_fn_exit 255
15901395c31Smrg  fi
16001395c31Smrg  # We don't want this to propagate to other subprocesses.
16101395c31Smrg          { _as_can_reexec=; unset _as_can_reexec;}
162de7ed6e8Smrgif test "x$CONFIG_SHELL" = x; then
163de7ed6e8Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164de7ed6e8Smrg  emulate sh
165de7ed6e8Smrg  NULLCMD=:
166de7ed6e8Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167de7ed6e8Smrg  # is contrary to our usage.  Disable this feature.
168de7ed6e8Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169de7ed6e8Smrg  setopt NO_GLOB_SUBST
170de7ed6e8Smrgelse
171de7ed6e8Smrg  case \`(set -o) 2>/dev/null\` in #(
172de7ed6e8Smrg  *posix*) :
173de7ed6e8Smrg    set -o posix ;; #(
174de7ed6e8Smrg  *) :
175de7ed6e8Smrg     ;;
176de7ed6e8Smrgesac
177de7ed6e8Smrgfi
178de7ed6e8Smrg"
179de7ed6e8Smrg  as_required="as_fn_return () { (exit \$1); }
180de7ed6e8Smrgas_fn_success () { as_fn_return 0; }
181de7ed6e8Smrgas_fn_failure () { as_fn_return 1; }
182de7ed6e8Smrgas_fn_ret_success () { return 0; }
183de7ed6e8Smrgas_fn_ret_failure () { return 1; }
184de7ed6e8Smrg
185de7ed6e8Smrgexitcode=0
186de7ed6e8Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
187de7ed6e8Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188de7ed6e8Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189de7ed6e8Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190de7ed6e8Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191de7ed6e8Smrg
192de7ed6e8Smrgelse
193de7ed6e8Smrg  exitcode=1; echo positional parameters were not saved.
194de7ed6e8Smrgfi
19501395c31Smrgtest x\$exitcode = x0 || exit 1
19601395c31Smrgtest -x / || exit 1"
197de7ed6e8Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198de7ed6e8Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199de7ed6e8Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200de7ed6e8Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201de7ed6e8Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
202de7ed6e8Smrg  if (eval "$as_required") 2>/dev/null; then :
203de7ed6e8Smrg  as_have_required=yes
204de7ed6e8Smrgelse
205de7ed6e8Smrg  as_have_required=no
206de7ed6e8Smrgfi
207de7ed6e8Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208de7ed6e8Smrg
209de7ed6e8Smrgelse
210de7ed6e8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211de7ed6e8Smrgas_found=false
212de7ed6e8Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213de7ed6e8Smrgdo
214de7ed6e8Smrg  IFS=$as_save_IFS
215de7ed6e8Smrg  test -z "$as_dir" && as_dir=.
216de7ed6e8Smrg  as_found=:
217de7ed6e8Smrg  case $as_dir in #(
218de7ed6e8Smrg	 /*)
219de7ed6e8Smrg	   for as_base in sh bash ksh sh5; do
220de7ed6e8Smrg	     # Try only shells that exist, to save several forks.
221de7ed6e8Smrg	     as_shell=$as_dir/$as_base
222de7ed6e8Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223de7ed6e8Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224de7ed6e8Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
225de7ed6e8Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226de7ed6e8Smrg  break 2
227de7ed6e8Smrgfi
228de7ed6e8Smrgfi
229de7ed6e8Smrg	   done;;
230de7ed6e8Smrg       esac
231de7ed6e8Smrg  as_found=false
232de7ed6e8Smrgdone
233de7ed6e8Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234de7ed6e8Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235de7ed6e8Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
236de7ed6e8Smrgfi; }
237de7ed6e8SmrgIFS=$as_save_IFS
238de7ed6e8Smrg
239de7ed6e8Smrg
240de7ed6e8Smrg      if test "x$CONFIG_SHELL" != x; then :
24101395c31Smrg  export CONFIG_SHELL
24201395c31Smrg             # We cannot yet assume a decent shell, so we have to provide a
24301395c31Smrg# neutralization value for shells without unset; and this also
24401395c31Smrg# works around shells that cannot unset nonexistent variables.
24501395c31Smrg# Preserve -v and -x to the replacement shell.
24601395c31SmrgBASH_ENV=/dev/null
24701395c31SmrgENV=/dev/null
24801395c31Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
24901395c31Smrgcase $- in # ((((
25001395c31Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
25101395c31Smrg  *v* ) as_opts=-v ;;
25201395c31Smrg  *x* ) as_opts=-x ;;
25301395c31Smrg  * ) as_opts= ;;
25401395c31Smrgesac
25501395c31Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
25601395c31Smrg# Admittedly, this is quite paranoid, since all the known shells bail
25701395c31Smrg# out after a failed `exec'.
25801395c31Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
25901395c31Smrgexit 255
260de7ed6e8Smrgfi
261de7ed6e8Smrg
262de7ed6e8Smrg    if test x$as_have_required = xno; then :
263de7ed6e8Smrg  $as_echo "$0: This script requires a shell more modern than all"
264de7ed6e8Smrg  $as_echo "$0: the shells that I found on your system."
265de7ed6e8Smrg  if test x${ZSH_VERSION+set} = xset ; then
266de7ed6e8Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267de7ed6e8Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268de7ed6e8Smrg  else
269de7ed6e8Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
27001395c31Smrg$0: https://gitlab.freedesktop.org/xorg/font/encodings/issues
271de7ed6e8Smrg$0: about your system, including any error possibly output
272de7ed6e8Smrg$0: before this message. Then install a modern shell, or
273de7ed6e8Smrg$0: manually run the script under such a shell if you do
274de7ed6e8Smrg$0: have one."
275de7ed6e8Smrg  fi
276de7ed6e8Smrg  exit 1
277de7ed6e8Smrgfi
278de7ed6e8Smrgfi
279de7ed6e8Smrgfi
280de7ed6e8SmrgSHELL=${CONFIG_SHELL-/bin/sh}
281de7ed6e8Smrgexport SHELL
282de7ed6e8Smrg# Unset more variables known to interfere with behavior of common tools.
283de7ed6e8SmrgCLICOLOR_FORCE= GREP_OPTIONS=
284de7ed6e8Smrgunset CLICOLOR_FORCE GREP_OPTIONS
285de7ed6e8Smrg
286de7ed6e8Smrg## --------------------- ##
287de7ed6e8Smrg## M4sh Shell Functions. ##
288de7ed6e8Smrg## --------------------- ##
289de7ed6e8Smrg# as_fn_unset VAR
290de7ed6e8Smrg# ---------------
291de7ed6e8Smrg# Portably unset VAR.
292de7ed6e8Smrgas_fn_unset ()
293de7ed6e8Smrg{
294de7ed6e8Smrg  { eval $1=; unset $1;}
295de7ed6e8Smrg}
296de7ed6e8Smrgas_unset=as_fn_unset
297de7ed6e8Smrg
298de7ed6e8Smrg# as_fn_set_status STATUS
299de7ed6e8Smrg# -----------------------
300de7ed6e8Smrg# Set $? to STATUS, without forking.
301de7ed6e8Smrgas_fn_set_status ()
302de7ed6e8Smrg{
303de7ed6e8Smrg  return $1
304de7ed6e8Smrg} # as_fn_set_status
305de7ed6e8Smrg
306de7ed6e8Smrg# as_fn_exit STATUS
307de7ed6e8Smrg# -----------------
308de7ed6e8Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309de7ed6e8Smrgas_fn_exit ()
310de7ed6e8Smrg{
311de7ed6e8Smrg  set +e
312de7ed6e8Smrg  as_fn_set_status $1
313de7ed6e8Smrg  exit $1
314de7ed6e8Smrg} # as_fn_exit
315de7ed6e8Smrg
316de7ed6e8Smrg# as_fn_mkdir_p
317de7ed6e8Smrg# -------------
318de7ed6e8Smrg# Create "$as_dir" as a directory, including parents if necessary.
319de7ed6e8Smrgas_fn_mkdir_p ()
320de7ed6e8Smrg{
321de7ed6e8Smrg
322de7ed6e8Smrg  case $as_dir in #(
323de7ed6e8Smrg  -*) as_dir=./$as_dir;;
324de7ed6e8Smrg  esac
325de7ed6e8Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
326de7ed6e8Smrg    as_dirs=
327de7ed6e8Smrg    while :; do
328de7ed6e8Smrg      case $as_dir in #(
329de7ed6e8Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330de7ed6e8Smrg      *) as_qdir=$as_dir;;
331de7ed6e8Smrg      esac
332de7ed6e8Smrg      as_dirs="'$as_qdir' $as_dirs"
333de7ed6e8Smrg      as_dir=`$as_dirname -- "$as_dir" ||
334de7ed6e8Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335de7ed6e8Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
336de7ed6e8Smrg	 X"$as_dir" : 'X\(//\)$' \| \
337de7ed6e8Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338de7ed6e8Smrg$as_echo X"$as_dir" |
339de7ed6e8Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340de7ed6e8Smrg	    s//\1/
341de7ed6e8Smrg	    q
342de7ed6e8Smrg	  }
343de7ed6e8Smrg	  /^X\(\/\/\)[^/].*/{
344de7ed6e8Smrg	    s//\1/
345de7ed6e8Smrg	    q
346de7ed6e8Smrg	  }
347de7ed6e8Smrg	  /^X\(\/\/\)$/{
348de7ed6e8Smrg	    s//\1/
349de7ed6e8Smrg	    q
350de7ed6e8Smrg	  }
351de7ed6e8Smrg	  /^X\(\/\).*/{
352de7ed6e8Smrg	    s//\1/
353de7ed6e8Smrg	    q
354de7ed6e8Smrg	  }
355de7ed6e8Smrg	  s/.*/./; q'`
356de7ed6e8Smrg      test -d "$as_dir" && break
357de7ed6e8Smrg    done
358de7ed6e8Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
359de7ed6e8Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360de7ed6e8Smrg
361de7ed6e8Smrg
362de7ed6e8Smrg} # as_fn_mkdir_p
36301395c31Smrg
36401395c31Smrg# as_fn_executable_p FILE
36501395c31Smrg# -----------------------
36601395c31Smrg# Test if FILE is an executable regular file.
36701395c31Smrgas_fn_executable_p ()
36801395c31Smrg{
36901395c31Smrg  test -f "$1" && test -x "$1"
37001395c31Smrg} # as_fn_executable_p
371de7ed6e8Smrg# as_fn_append VAR VALUE
372de7ed6e8Smrg# ----------------------
373de7ed6e8Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
374de7ed6e8Smrg# advantage of any shell optimizations that allow amortized linear growth over
375de7ed6e8Smrg# repeated appends, instead of the typical quadratic growth present in naive
376de7ed6e8Smrg# implementations.
377de7ed6e8Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378de7ed6e8Smrg  eval 'as_fn_append ()
379de7ed6e8Smrg  {
380de7ed6e8Smrg    eval $1+=\$2
381de7ed6e8Smrg  }'
382de7ed6e8Smrgelse
383de7ed6e8Smrg  as_fn_append ()
384de7ed6e8Smrg  {
385de7ed6e8Smrg    eval $1=\$$1\$2
386de7ed6e8Smrg  }
387de7ed6e8Smrgfi # as_fn_append
388de7ed6e8Smrg
389de7ed6e8Smrg# as_fn_arith ARG...
390de7ed6e8Smrg# ------------------
391de7ed6e8Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
392de7ed6e8Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
393de7ed6e8Smrg# must be portable across $(()) and expr.
394de7ed6e8Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395de7ed6e8Smrg  eval 'as_fn_arith ()
396de7ed6e8Smrg  {
397de7ed6e8Smrg    as_val=$(( $* ))
398de7ed6e8Smrg  }'
399de7ed6e8Smrgelse
400de7ed6e8Smrg  as_fn_arith ()
401de7ed6e8Smrg  {
402de7ed6e8Smrg    as_val=`expr "$@" || test $? -eq 1`
403de7ed6e8Smrg  }
404de7ed6e8Smrgfi # as_fn_arith
405de7ed6e8Smrg
406de7ed6e8Smrg
407de7ed6e8Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
408de7ed6e8Smrg# ----------------------------------------
409de7ed6e8Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410de7ed6e8Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411de7ed6e8Smrg# script with STATUS, using 1 if that was 0.
412de7ed6e8Smrgas_fn_error ()
413de7ed6e8Smrg{
414de7ed6e8Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
415de7ed6e8Smrg  if test "$4"; then
416de7ed6e8Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417de7ed6e8Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418de7ed6e8Smrg  fi
419de7ed6e8Smrg  $as_echo "$as_me: error: $2" >&2
420de7ed6e8Smrg  as_fn_exit $as_status
421de7ed6e8Smrg} # as_fn_error
422de7ed6e8Smrg
42392bb16f8Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
42492bb16f8Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
42592bb16f8Smrg  as_expr=expr
42692bb16f8Smrgelse
42792bb16f8Smrg  as_expr=false
42892bb16f8Smrgfi
42992bb16f8Smrg
43092bb16f8Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43192bb16f8Smrg  as_basename=basename
43292bb16f8Smrgelse
43392bb16f8Smrg  as_basename=false
43492bb16f8Smrgfi
43592bb16f8Smrg
436de7ed6e8Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437de7ed6e8Smrg  as_dirname=dirname
438de7ed6e8Smrgelse
439de7ed6e8Smrg  as_dirname=false
440de7ed6e8Smrgfi
44192bb16f8Smrg
44292bb16f8Smrgas_me=`$as_basename -- "$0" ||
44392bb16f8Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44492bb16f8Smrg	 X"$0" : 'X\(//\)$' \| \
44592bb16f8Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4468255a313Smrg$as_echo X/"$0" |
44792bb16f8Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
44892bb16f8Smrg	    s//\1/
44992bb16f8Smrg	    q
45092bb16f8Smrg	  }
45192bb16f8Smrg	  /^X\/\(\/\/\)$/{
45292bb16f8Smrg	    s//\1/
45392bb16f8Smrg	    q
45492bb16f8Smrg	  }
45592bb16f8Smrg	  /^X\/\(\/\).*/{
45692bb16f8Smrg	    s//\1/
45792bb16f8Smrg	    q
45892bb16f8Smrg	  }
45992bb16f8Smrg	  s/.*/./; q'`
46092bb16f8Smrg
461de7ed6e8Smrg# Avoid depending upon Character Ranges.
462de7ed6e8Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
463de7ed6e8Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464de7ed6e8Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
465de7ed6e8Smrgas_cr_digits='0123456789'
466de7ed6e8Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
46792bb16f8Smrg
46892bb16f8Smrg
469de7ed6e8Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470de7ed6e8Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471de7ed6e8Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472de7ed6e8Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473de7ed6e8Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474de7ed6e8Smrg  sed -n '
475de7ed6e8Smrg    p
476de7ed6e8Smrg    /[$]LINENO/=
477de7ed6e8Smrg  ' <$as_myself |
478de7ed6e8Smrg    sed '
479de7ed6e8Smrg      s/[$]LINENO.*/&-/
480de7ed6e8Smrg      t lineno
481de7ed6e8Smrg      b
482de7ed6e8Smrg      :lineno
483de7ed6e8Smrg      N
484de7ed6e8Smrg      :loop
485de7ed6e8Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486de7ed6e8Smrg      t loop
487de7ed6e8Smrg      s/-\n.*//
488de7ed6e8Smrg    ' >$as_me.lineno &&
489de7ed6e8Smrg  chmod +x "$as_me.lineno" ||
490de7ed6e8Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
49192bb16f8Smrg
49201395c31Smrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
49301395c31Smrg  # already done that, so ensure we don't try to do so again and fall
49401395c31Smrg  # in an infinite loop.  This has already happened in practice.
49501395c31Smrg  _as_can_reexec=no; export _as_can_reexec
496de7ed6e8Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
497de7ed6e8Smrg  # (the dirname of $[0] is not the place where we might find the
498de7ed6e8Smrg  # original and so on.  Autoconf is especially sensitive to this).
499de7ed6e8Smrg  . "./$as_me.lineno"
500de7ed6e8Smrg  # Exit status is that of the last command.
501de7ed6e8Smrg  exit
50292bb16f8Smrg}
50392bb16f8Smrg
504de7ed6e8SmrgECHO_C= ECHO_N= ECHO_T=
505de7ed6e8Smrgcase `echo -n x` in #(((((
506de7ed6e8Smrg-n*)
507de7ed6e8Smrg  case `echo 'xy\c'` in
508de7ed6e8Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509de7ed6e8Smrg  xy)  ECHO_C='\c';;
510de7ed6e8Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511de7ed6e8Smrg       ECHO_T='	';;
512de7ed6e8Smrg  esac;;
513de7ed6e8Smrg*)
514de7ed6e8Smrg  ECHO_N='-n';;
515de7ed6e8Smrgesac
51692bb16f8Smrg
517de7ed6e8Smrgrm -f conf$$ conf$$.exe conf$$.file
518de7ed6e8Smrgif test -d conf$$.dir; then
519de7ed6e8Smrg  rm -f conf$$.dir/conf$$.file
520de7ed6e8Smrgelse
521de7ed6e8Smrg  rm -f conf$$.dir
522de7ed6e8Smrg  mkdir conf$$.dir 2>/dev/null
52392bb16f8Smrgfi
524de7ed6e8Smrgif (echo >conf$$.file) 2>/dev/null; then
525de7ed6e8Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
526de7ed6e8Smrg    as_ln_s='ln -s'
527de7ed6e8Smrg    # ... but there are two gotchas:
528de7ed6e8Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529de7ed6e8Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53001395c31Smrg    # In both cases, we have to default to `cp -pR'.
531de7ed6e8Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53201395c31Smrg      as_ln_s='cp -pR'
533de7ed6e8Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
534de7ed6e8Smrg    as_ln_s=ln
535de7ed6e8Smrg  else
53601395c31Smrg    as_ln_s='cp -pR'
537de7ed6e8Smrg  fi
53892bb16f8Smrgelse
53901395c31Smrg  as_ln_s='cp -pR'
54092bb16f8Smrgfi
541de7ed6e8Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542de7ed6e8Smrgrmdir conf$$.dir 2>/dev/null
54392bb16f8Smrg
544de7ed6e8Smrgif mkdir -p . 2>/dev/null; then
545de7ed6e8Smrg  as_mkdir_p='mkdir -p "$as_dir"'
546de7ed6e8Smrgelse
547de7ed6e8Smrg  test -d ./-p && rmdir ./-p
548de7ed6e8Smrg  as_mkdir_p=false
54992bb16f8Smrgfi
55092bb16f8Smrg
55101395c31Smrgas_test_x='test -x'
55201395c31Smrgas_executable_p=as_fn_executable_p
55392bb16f8Smrg
554de7ed6e8Smrg# Sed expression to map a string onto a valid CPP name.
555de7ed6e8Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
55692bb16f8Smrg
557de7ed6e8Smrg# Sed expression to map a string onto a valid variable name.
558de7ed6e8Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
55992bb16f8Smrg
56092bb16f8Smrg
561de7ed6e8Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
562de7ed6e8Smrgexec 6>&1
56392bb16f8Smrg
56492bb16f8Smrg# Name of the host.
565de7ed6e8Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
56692bb16f8Smrg# so uname gets run too.
56792bb16f8Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
56892bb16f8Smrg
56992bb16f8Smrg#
57092bb16f8Smrg# Initializations.
57192bb16f8Smrg#
57292bb16f8Smrgac_default_prefix=/usr/local
57392bb16f8Smrgac_clean_files=
57492bb16f8Smrgac_config_libobj_dir=.
57592bb16f8SmrgLIBOBJS=
57692bb16f8Smrgcross_compiling=no
57792bb16f8Smrgsubdirs=
57892bb16f8SmrgMFLAGS=
57992bb16f8SmrgMAKEFLAGS=
58092bb16f8Smrg
58192bb16f8Smrg# Identity of this package.
58292bb16f8SmrgPACKAGE_NAME='encodings'
58392bb16f8SmrgPACKAGE_TARNAME='encodings'
58401395c31SmrgPACKAGE_VERSION='1.0.5'
58501395c31SmrgPACKAGE_STRING='encodings 1.0.5'
58601395c31SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/font/encodings/issues'
587de7ed6e8SmrgPACKAGE_URL=''
58892bb16f8Smrg
5898255a313Smrg# Factoring default headers for most tests.
5908255a313Smrgac_includes_default="\
5918255a313Smrg#include <stdio.h>
5928255a313Smrg#ifdef HAVE_SYS_TYPES_H
5938255a313Smrg# include <sys/types.h>
5948255a313Smrg#endif
5958255a313Smrg#ifdef HAVE_SYS_STAT_H
5968255a313Smrg# include <sys/stat.h>
5978255a313Smrg#endif
5988255a313Smrg#ifdef STDC_HEADERS
5998255a313Smrg# include <stdlib.h>
6008255a313Smrg# include <stddef.h>
6018255a313Smrg#else
6028255a313Smrg# ifdef HAVE_STDLIB_H
6038255a313Smrg#  include <stdlib.h>
6048255a313Smrg# endif
6058255a313Smrg#endif
6068255a313Smrg#ifdef HAVE_STRING_H
6078255a313Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6088255a313Smrg#  include <memory.h>
6098255a313Smrg# endif
6108255a313Smrg# include <string.h>
6118255a313Smrg#endif
6128255a313Smrg#ifdef HAVE_STRINGS_H
6138255a313Smrg# include <strings.h>
6148255a313Smrg#endif
6158255a313Smrg#ifdef HAVE_INTTYPES_H
6168255a313Smrg# include <inttypes.h>
6178255a313Smrg#endif
6188255a313Smrg#ifdef HAVE_STDINT_H
6198255a313Smrg# include <stdint.h>
6208255a313Smrg#endif
6218255a313Smrg#ifdef HAVE_UNISTD_H
6228255a313Smrg# include <unistd.h>
6238255a313Smrg#endif"
6248255a313Smrg
6258255a313Smrgac_subst_vars='am__EXEEXT_FALSE
6268255a313Smrgam__EXEEXT_TRUE
6278255a313SmrgLTLIBOBJS
62892bb16f8SmrgLIBOBJS
6298255a313SmrgENCODINGSDIR
6308255a313SmrgFONTROOTDIR
6318255a313SmrgGZIP
6328255a313SmrgGZIP_LARGE_FALSE
6338255a313SmrgGZIP_LARGE_TRUE
6348255a313SmrgGZIP_SMALL_FALSE
6358255a313SmrgGZIP_SMALL_TRUE
6368255a313SmrgMKFONTSCALE
637de7ed6e8SmrgMAN_SUBSTS
638de7ed6e8SmrgXORG_MAN_PAGE
6398255a313SmrgADMIN_MAN_DIR
6408255a313SmrgDRIVER_MAN_DIR
6418255a313SmrgMISC_MAN_DIR
6428255a313SmrgFILE_MAN_DIR
6438255a313SmrgLIB_MAN_DIR
6448255a313SmrgAPP_MAN_DIR
6458255a313SmrgADMIN_MAN_SUFFIX
6468255a313SmrgDRIVER_MAN_SUFFIX
6478255a313SmrgMISC_MAN_SUFFIX
6488255a313SmrgFILE_MAN_SUFFIX
6498255a313SmrgLIB_MAN_SUFFIX
6508255a313SmrgAPP_MAN_SUFFIX
651de7ed6e8SmrgSED
6528255a313Smrghost_os
6538255a313Smrghost_vendor
6548255a313Smrghost_cpu
6558255a313Smrghost
6568255a313Smrgbuild_os
6578255a313Smrgbuild_vendor
6588255a313Smrgbuild_cpu
6598255a313Smrgbuild
660de7ed6e8SmrgINSTALL_CMD
66101395c31SmrgPKG_CONFIG_LIBDIR
66201395c31SmrgPKG_CONFIG_PATH
663de7ed6e8SmrgPKG_CONFIG
6648255a313SmrgCHANGELOG_CMD
66501395c31SmrgSTRICT_CFLAGS
6668255a313SmrgCWARNFLAGS
66701395c31SmrgBASE_CFLAGS
6688255a313SmrgEGREP
6698255a313SmrgGREP
6708255a313SmrgCPP
6718255a313Smrgam__fastdepCC_FALSE
6728255a313Smrgam__fastdepCC_TRUE
6738255a313SmrgCCDEPMODE
67401395c31Smrgam__nodep
6758255a313SmrgAMDEPBACKSLASH
6768255a313SmrgAMDEP_FALSE
6778255a313SmrgAMDEP_TRUE
6788255a313Smrgam__include
6798255a313SmrgDEPDIR
6808255a313SmrgOBJEXT
6818255a313SmrgEXEEXT
6828255a313Smrgac_ct_CC
6838255a313SmrgCPPFLAGS
6848255a313SmrgLDFLAGS
6858255a313SmrgCFLAGS
6868255a313SmrgCC
68701395c31SmrgAM_BACKSLASH
68801395c31SmrgAM_DEFAULT_VERBOSITY
68901395c31SmrgAM_DEFAULT_V
69001395c31SmrgAM_V
6918255a313Smrgam__untar
6928255a313Smrgam__tar
6938255a313SmrgAMTAR
6948255a313Smrgam__leading_dot
6958255a313SmrgSET_MAKE
6968255a313SmrgAWK
6978255a313Smrgmkdir_p
6988255a313SmrgMKDIR_P
6998255a313SmrgINSTALL_STRIP_PROGRAM
7008255a313SmrgSTRIP
7018255a313Smrginstall_sh
7028255a313SmrgMAKEINFO
7038255a313SmrgAUTOHEADER
7048255a313SmrgAUTOMAKE
7058255a313SmrgAUTOCONF
7068255a313SmrgACLOCAL
7078255a313SmrgVERSION
7088255a313SmrgPACKAGE
7098255a313SmrgCYGPATH_W
7108255a313Smrgam__isrc
7118255a313SmrgINSTALL_DATA
7128255a313SmrgINSTALL_SCRIPT
7138255a313SmrgINSTALL_PROGRAM
7148255a313Smrgtarget_alias
7158255a313Smrghost_alias
7168255a313Smrgbuild_alias
7178255a313SmrgLIBS
7188255a313SmrgECHO_T
7198255a313SmrgECHO_N
7208255a313SmrgECHO_C
7218255a313SmrgDEFS
7228255a313Smrgmandir
7238255a313Smrglocaledir
7248255a313Smrglibdir
7258255a313Smrgpsdir
7268255a313Smrgpdfdir
7278255a313Smrgdvidir
7288255a313Smrghtmldir
7298255a313Smrginfodir
7308255a313Smrgdocdir
7318255a313Smrgoldincludedir
7328255a313Smrgincludedir
7338255a313Smrglocalstatedir
7348255a313Smrgsharedstatedir
7358255a313Smrgsysconfdir
7368255a313Smrgdatadir
7378255a313Smrgdatarootdir
7388255a313Smrglibexecdir
7398255a313Smrgsbindir
7408255a313Smrgbindir
7418255a313Smrgprogram_transform_name
7428255a313Smrgprefix
7438255a313Smrgexec_prefix
744de7ed6e8SmrgPACKAGE_URL
7458255a313SmrgPACKAGE_BUGREPORT
7468255a313SmrgPACKAGE_STRING
7478255a313SmrgPACKAGE_VERSION
7488255a313SmrgPACKAGE_TARNAME
7498255a313SmrgPACKAGE_NAME
7508255a313SmrgPATH_SEPARATOR
75101395c31SmrgSHELL
75201395c31Smrgam__quote'
75392bb16f8Smrgac_subst_files=''
7548255a313Smrgac_user_opts='
7558255a313Smrgenable_option_checking
75601395c31Smrgenable_silent_rules
7578255a313Smrgenable_dependency_tracking
75801395c31Smrgenable_selective_werror
7598255a313Smrgenable_strict_compilation
7608255a313Smrgenable_gzip_small_encodings
7618255a313Smrgenable_gzip_large_encodings
7628255a313Smrgwith_fontrootdir
7638255a313Smrgwith_encodingsdir
7648255a313Smrg'
76592bb16f8Smrg      ac_precious_vars='build_alias
76692bb16f8Smrghost_alias
7678255a313Smrgtarget_alias
7688255a313SmrgCC
7698255a313SmrgCFLAGS
7708255a313SmrgLDFLAGS
7718255a313SmrgLIBS
7728255a313SmrgCPPFLAGS
7738255a313SmrgCPP
77401395c31SmrgPKG_CONFIG
77501395c31SmrgPKG_CONFIG_PATH
77601395c31SmrgPKG_CONFIG_LIBDIR'
77792bb16f8Smrg
77892bb16f8Smrg
77992bb16f8Smrg# Initialize some variables set by options.
78092bb16f8Smrgac_init_help=
78192bb16f8Smrgac_init_version=false
7828255a313Smrgac_unrecognized_opts=
7838255a313Smrgac_unrecognized_sep=
78492bb16f8Smrg# The variables have the same names as the options, with
78592bb16f8Smrg# dashes changed to underlines.
78692bb16f8Smrgcache_file=/dev/null
78792bb16f8Smrgexec_prefix=NONE
78892bb16f8Smrgno_create=
78992bb16f8Smrgno_recursion=
79092bb16f8Smrgprefix=NONE
79192bb16f8Smrgprogram_prefix=NONE
79292bb16f8Smrgprogram_suffix=NONE
79392bb16f8Smrgprogram_transform_name=s,x,x,
79492bb16f8Smrgsilent=
79592bb16f8Smrgsite=
79692bb16f8Smrgsrcdir=
79792bb16f8Smrgverbose=
79892bb16f8Smrgx_includes=NONE
79992bb16f8Smrgx_libraries=NONE
80092bb16f8Smrg
80192bb16f8Smrg# Installation directory options.
80292bb16f8Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
80392bb16f8Smrg# and all the variables that are supposed to be based on exec_prefix
80492bb16f8Smrg# by default will actually change.
80592bb16f8Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
80692bb16f8Smrg# (The list follows the same order as the GNU Coding Standards.)
80792bb16f8Smrgbindir='${exec_prefix}/bin'
80892bb16f8Smrgsbindir='${exec_prefix}/sbin'
80992bb16f8Smrglibexecdir='${exec_prefix}/libexec'
81092bb16f8Smrgdatarootdir='${prefix}/share'
81192bb16f8Smrgdatadir='${datarootdir}'
81292bb16f8Smrgsysconfdir='${prefix}/etc'
81392bb16f8Smrgsharedstatedir='${prefix}/com'
81492bb16f8Smrglocalstatedir='${prefix}/var'
81592bb16f8Smrgincludedir='${prefix}/include'
81692bb16f8Smrgoldincludedir='/usr/include'
81792bb16f8Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81892bb16f8Smrginfodir='${datarootdir}/info'
81992bb16f8Smrghtmldir='${docdir}'
82092bb16f8Smrgdvidir='${docdir}'
82192bb16f8Smrgpdfdir='${docdir}'
82292bb16f8Smrgpsdir='${docdir}'
82392bb16f8Smrglibdir='${exec_prefix}/lib'
82492bb16f8Smrglocaledir='${datarootdir}/locale'
82592bb16f8Smrgmandir='${datarootdir}/man'
82692bb16f8Smrg
82792bb16f8Smrgac_prev=
82892bb16f8Smrgac_dashdash=
82992bb16f8Smrgfor ac_option
83092bb16f8Smrgdo
83192bb16f8Smrg  # If the previous option needs an argument, assign it.
83292bb16f8Smrg  if test -n "$ac_prev"; then
83392bb16f8Smrg    eval $ac_prev=\$ac_option
83492bb16f8Smrg    ac_prev=
83592bb16f8Smrg    continue
83692bb16f8Smrg  fi
83792bb16f8Smrg
83892bb16f8Smrg  case $ac_option in
839de7ed6e8Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840de7ed6e8Smrg  *=)   ac_optarg= ;;
841de7ed6e8Smrg  *)    ac_optarg=yes ;;
84292bb16f8Smrg  esac
84392bb16f8Smrg
84492bb16f8Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
84592bb16f8Smrg
84692bb16f8Smrg  case $ac_dashdash$ac_option in
84792bb16f8Smrg  --)
84892bb16f8Smrg    ac_dashdash=yes ;;
84992bb16f8Smrg
85092bb16f8Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
85192bb16f8Smrg    ac_prev=bindir ;;
85292bb16f8Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85392bb16f8Smrg    bindir=$ac_optarg ;;
85492bb16f8Smrg
85592bb16f8Smrg  -build | --build | --buil | --bui | --bu)
85692bb16f8Smrg    ac_prev=build_alias ;;
85792bb16f8Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85892bb16f8Smrg    build_alias=$ac_optarg ;;
85992bb16f8Smrg
86092bb16f8Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
86192bb16f8Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
86292bb16f8Smrg    ac_prev=cache_file ;;
86392bb16f8Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
86492bb16f8Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
86592bb16f8Smrg    cache_file=$ac_optarg ;;
86692bb16f8Smrg
86792bb16f8Smrg  --config-cache | -C)
86892bb16f8Smrg    cache_file=config.cache ;;
86992bb16f8Smrg
87092bb16f8Smrg  -datadir | --datadir | --datadi | --datad)
87192bb16f8Smrg    ac_prev=datadir ;;
87292bb16f8Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
87392bb16f8Smrg    datadir=$ac_optarg ;;
87492bb16f8Smrg
87592bb16f8Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
87692bb16f8Smrg  | --dataroo | --dataro | --datar)
87792bb16f8Smrg    ac_prev=datarootdir ;;
87892bb16f8Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
87992bb16f8Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
88092bb16f8Smrg    datarootdir=$ac_optarg ;;
88192bb16f8Smrg
88292bb16f8Smrg  -disable-* | --disable-*)
8838255a313Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
88492bb16f8Smrg    # Reject names that are not valid shell variable names.
8858255a313Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886de7ed6e8Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
8878255a313Smrg    ac_useropt_orig=$ac_useropt
8888255a313Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8898255a313Smrg    case $ac_user_opts in
8908255a313Smrg      *"
8918255a313Smrg"enable_$ac_useropt"
8928255a313Smrg"*) ;;
8938255a313Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8948255a313Smrg	 ac_unrecognized_sep=', ';;
8958255a313Smrg    esac
8968255a313Smrg    eval enable_$ac_useropt=no ;;
89792bb16f8Smrg
89892bb16f8Smrg  -docdir | --docdir | --docdi | --doc | --do)
89992bb16f8Smrg    ac_prev=docdir ;;
90092bb16f8Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
90192bb16f8Smrg    docdir=$ac_optarg ;;
90292bb16f8Smrg
90392bb16f8Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
90492bb16f8Smrg    ac_prev=dvidir ;;
90592bb16f8Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
90692bb16f8Smrg    dvidir=$ac_optarg ;;
90792bb16f8Smrg
90892bb16f8Smrg  -enable-* | --enable-*)
9098255a313Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
91092bb16f8Smrg    # Reject names that are not valid shell variable names.
9118255a313Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912de7ed6e8Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
9138255a313Smrg    ac_useropt_orig=$ac_useropt
9148255a313Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9158255a313Smrg    case $ac_user_opts in
9168255a313Smrg      *"
9178255a313Smrg"enable_$ac_useropt"
9188255a313Smrg"*) ;;
9198255a313Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9208255a313Smrg	 ac_unrecognized_sep=', ';;
9218255a313Smrg    esac
9228255a313Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
92392bb16f8Smrg
92492bb16f8Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
92592bb16f8Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
92692bb16f8Smrg  | --exec | --exe | --ex)
92792bb16f8Smrg    ac_prev=exec_prefix ;;
92892bb16f8Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
92992bb16f8Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
93092bb16f8Smrg  | --exec=* | --exe=* | --ex=*)
93192bb16f8Smrg    exec_prefix=$ac_optarg ;;
93292bb16f8Smrg
93392bb16f8Smrg  -gas | --gas | --ga | --g)
93492bb16f8Smrg    # Obsolete; use --with-gas.
93592bb16f8Smrg    with_gas=yes ;;
93692bb16f8Smrg
93792bb16f8Smrg  -help | --help | --hel | --he | -h)
93892bb16f8Smrg    ac_init_help=long ;;
93992bb16f8Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
94092bb16f8Smrg    ac_init_help=recursive ;;
94192bb16f8Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
94292bb16f8Smrg    ac_init_help=short ;;
94392bb16f8Smrg
94492bb16f8Smrg  -host | --host | --hos | --ho)
94592bb16f8Smrg    ac_prev=host_alias ;;
94692bb16f8Smrg  -host=* | --host=* | --hos=* | --ho=*)
94792bb16f8Smrg    host_alias=$ac_optarg ;;
94892bb16f8Smrg
94992bb16f8Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
95092bb16f8Smrg    ac_prev=htmldir ;;
95192bb16f8Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
95292bb16f8Smrg  | --ht=*)
95392bb16f8Smrg    htmldir=$ac_optarg ;;
95492bb16f8Smrg
95592bb16f8Smrg  -includedir | --includedir | --includedi | --included | --include \
95692bb16f8Smrg  | --includ | --inclu | --incl | --inc)
95792bb16f8Smrg    ac_prev=includedir ;;
95892bb16f8Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
95992bb16f8Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
96092bb16f8Smrg    includedir=$ac_optarg ;;
96192bb16f8Smrg
96292bb16f8Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
96392bb16f8Smrg    ac_prev=infodir ;;
96492bb16f8Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
96592bb16f8Smrg    infodir=$ac_optarg ;;
96692bb16f8Smrg
96792bb16f8Smrg  -libdir | --libdir | --libdi | --libd)
96892bb16f8Smrg    ac_prev=libdir ;;
96992bb16f8Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
97092bb16f8Smrg    libdir=$ac_optarg ;;
97192bb16f8Smrg
97292bb16f8Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
97392bb16f8Smrg  | --libexe | --libex | --libe)
97492bb16f8Smrg    ac_prev=libexecdir ;;
97592bb16f8Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
97692bb16f8Smrg  | --libexe=* | --libex=* | --libe=*)
97792bb16f8Smrg    libexecdir=$ac_optarg ;;
97892bb16f8Smrg
97992bb16f8Smrg  -localedir | --localedir | --localedi | --localed | --locale)
98092bb16f8Smrg    ac_prev=localedir ;;
98192bb16f8Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
98292bb16f8Smrg    localedir=$ac_optarg ;;
98392bb16f8Smrg
98492bb16f8Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
98592bb16f8Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
98692bb16f8Smrg    ac_prev=localstatedir ;;
98792bb16f8Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
98892bb16f8Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
98992bb16f8Smrg    localstatedir=$ac_optarg ;;
99092bb16f8Smrg
99192bb16f8Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
99292bb16f8Smrg    ac_prev=mandir ;;
99392bb16f8Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
99492bb16f8Smrg    mandir=$ac_optarg ;;
99592bb16f8Smrg
99692bb16f8Smrg  -nfp | --nfp | --nf)
99792bb16f8Smrg    # Obsolete; use --without-fp.
99892bb16f8Smrg    with_fp=no ;;
99992bb16f8Smrg
100092bb16f8Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
100192bb16f8Smrg  | --no-cr | --no-c | -n)
100292bb16f8Smrg    no_create=yes ;;
100392bb16f8Smrg
100492bb16f8Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
100592bb16f8Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
100692bb16f8Smrg    no_recursion=yes ;;
100792bb16f8Smrg
100892bb16f8Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
100992bb16f8Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
101092bb16f8Smrg  | --oldin | --oldi | --old | --ol | --o)
101192bb16f8Smrg    ac_prev=oldincludedir ;;
101292bb16f8Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
101392bb16f8Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
101492bb16f8Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
101592bb16f8Smrg    oldincludedir=$ac_optarg ;;
101692bb16f8Smrg
101792bb16f8Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
101892bb16f8Smrg    ac_prev=prefix ;;
101992bb16f8Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
102092bb16f8Smrg    prefix=$ac_optarg ;;
102192bb16f8Smrg
102292bb16f8Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
102392bb16f8Smrg  | --program-pre | --program-pr | --program-p)
102492bb16f8Smrg    ac_prev=program_prefix ;;
102592bb16f8Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
102692bb16f8Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
102792bb16f8Smrg    program_prefix=$ac_optarg ;;
102892bb16f8Smrg
102992bb16f8Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
103092bb16f8Smrg  | --program-suf | --program-su | --program-s)
103192bb16f8Smrg    ac_prev=program_suffix ;;
103292bb16f8Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
103392bb16f8Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
103492bb16f8Smrg    program_suffix=$ac_optarg ;;
103592bb16f8Smrg
103692bb16f8Smrg  -program-transform-name | --program-transform-name \
103792bb16f8Smrg  | --program-transform-nam | --program-transform-na \
103892bb16f8Smrg  | --program-transform-n | --program-transform- \
103992bb16f8Smrg  | --program-transform | --program-transfor \
104092bb16f8Smrg  | --program-transfo | --program-transf \
104192bb16f8Smrg  | --program-trans | --program-tran \
104292bb16f8Smrg  | --progr-tra | --program-tr | --program-t)
104392bb16f8Smrg    ac_prev=program_transform_name ;;
104492bb16f8Smrg  -program-transform-name=* | --program-transform-name=* \
104592bb16f8Smrg  | --program-transform-nam=* | --program-transform-na=* \
104692bb16f8Smrg  | --program-transform-n=* | --program-transform-=* \
104792bb16f8Smrg  | --program-transform=* | --program-transfor=* \
104892bb16f8Smrg  | --program-transfo=* | --program-transf=* \
104992bb16f8Smrg  | --program-trans=* | --program-tran=* \
105092bb16f8Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
105192bb16f8Smrg    program_transform_name=$ac_optarg ;;
105292bb16f8Smrg
105392bb16f8Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
105492bb16f8Smrg    ac_prev=pdfdir ;;
105592bb16f8Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
105692bb16f8Smrg    pdfdir=$ac_optarg ;;
105792bb16f8Smrg
105892bb16f8Smrg  -psdir | --psdir | --psdi | --psd | --ps)
105992bb16f8Smrg    ac_prev=psdir ;;
106092bb16f8Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
106192bb16f8Smrg    psdir=$ac_optarg ;;
106292bb16f8Smrg
106392bb16f8Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
106492bb16f8Smrg  | -silent | --silent | --silen | --sile | --sil)
106592bb16f8Smrg    silent=yes ;;
106692bb16f8Smrg
106792bb16f8Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
106892bb16f8Smrg    ac_prev=sbindir ;;
106992bb16f8Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
107092bb16f8Smrg  | --sbi=* | --sb=*)
107192bb16f8Smrg    sbindir=$ac_optarg ;;
107292bb16f8Smrg
107392bb16f8Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
107492bb16f8Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
107592bb16f8Smrg  | --sharedst | --shareds | --shared | --share | --shar \
107692bb16f8Smrg  | --sha | --sh)
107792bb16f8Smrg    ac_prev=sharedstatedir ;;
107892bb16f8Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
107992bb16f8Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
108092bb16f8Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
108192bb16f8Smrg  | --sha=* | --sh=*)
108292bb16f8Smrg    sharedstatedir=$ac_optarg ;;
108392bb16f8Smrg
108492bb16f8Smrg  -site | --site | --sit)
108592bb16f8Smrg    ac_prev=site ;;
108692bb16f8Smrg  -site=* | --site=* | --sit=*)
108792bb16f8Smrg    site=$ac_optarg ;;
108892bb16f8Smrg
108992bb16f8Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
109092bb16f8Smrg    ac_prev=srcdir ;;
109192bb16f8Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
109292bb16f8Smrg    srcdir=$ac_optarg ;;
109392bb16f8Smrg
109492bb16f8Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
109592bb16f8Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
109692bb16f8Smrg    ac_prev=sysconfdir ;;
109792bb16f8Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
109892bb16f8Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
109992bb16f8Smrg    sysconfdir=$ac_optarg ;;
110092bb16f8Smrg
110192bb16f8Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
110292bb16f8Smrg    ac_prev=target_alias ;;
110392bb16f8Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
110492bb16f8Smrg    target_alias=$ac_optarg ;;
110592bb16f8Smrg
110692bb16f8Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
110792bb16f8Smrg    verbose=yes ;;
110892bb16f8Smrg
110992bb16f8Smrg  -version | --version | --versio | --versi | --vers | -V)
111092bb16f8Smrg    ac_init_version=: ;;
111192bb16f8Smrg
111292bb16f8Smrg  -with-* | --with-*)
11138255a313Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
111492bb16f8Smrg    # Reject names that are not valid shell variable names.
11158255a313Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116de7ed6e8Smrg      as_fn_error $? "invalid package name: $ac_useropt"
11178255a313Smrg    ac_useropt_orig=$ac_useropt
11188255a313Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11198255a313Smrg    case $ac_user_opts in
11208255a313Smrg      *"
11218255a313Smrg"with_$ac_useropt"
11228255a313Smrg"*) ;;
11238255a313Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11248255a313Smrg	 ac_unrecognized_sep=', ';;
11258255a313Smrg    esac
11268255a313Smrg    eval with_$ac_useropt=\$ac_optarg ;;
112792bb16f8Smrg
112892bb16f8Smrg  -without-* | --without-*)
11298255a313Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
113092bb16f8Smrg    # Reject names that are not valid shell variable names.
11318255a313Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132de7ed6e8Smrg      as_fn_error $? "invalid package name: $ac_useropt"
11338255a313Smrg    ac_useropt_orig=$ac_useropt
11348255a313Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11358255a313Smrg    case $ac_user_opts in
11368255a313Smrg      *"
11378255a313Smrg"with_$ac_useropt"
11388255a313Smrg"*) ;;
11398255a313Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11408255a313Smrg	 ac_unrecognized_sep=', ';;
11418255a313Smrg    esac
11428255a313Smrg    eval with_$ac_useropt=no ;;
114392bb16f8Smrg
114492bb16f8Smrg  --x)
114592bb16f8Smrg    # Obsolete; use --with-x.
114692bb16f8Smrg    with_x=yes ;;
114792bb16f8Smrg
114892bb16f8Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
114992bb16f8Smrg  | --x-incl | --x-inc | --x-in | --x-i)
115092bb16f8Smrg    ac_prev=x_includes ;;
115192bb16f8Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
115292bb16f8Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
115392bb16f8Smrg    x_includes=$ac_optarg ;;
115492bb16f8Smrg
115592bb16f8Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
115692bb16f8Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
115792bb16f8Smrg    ac_prev=x_libraries ;;
115892bb16f8Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
115992bb16f8Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
116092bb16f8Smrg    x_libraries=$ac_optarg ;;
116192bb16f8Smrg
1162de7ed6e8Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163de7ed6e8SmrgTry \`$0 --help' for more information"
116492bb16f8Smrg    ;;
116592bb16f8Smrg
116692bb16f8Smrg  *=*)
116792bb16f8Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
116892bb16f8Smrg    # Reject names that are not valid shell variable names.
1169de7ed6e8Smrg    case $ac_envvar in #(
1170de7ed6e8Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1171de7ed6e8Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172de7ed6e8Smrg    esac
117392bb16f8Smrg    eval $ac_envvar=\$ac_optarg
117492bb16f8Smrg    export $ac_envvar ;;
117592bb16f8Smrg
117692bb16f8Smrg  *)
117792bb16f8Smrg    # FIXME: should be removed in autoconf 3.0.
11788255a313Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
117992bb16f8Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11808255a313Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181de7ed6e8Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
118292bb16f8Smrg    ;;
118392bb16f8Smrg
118492bb16f8Smrg  esac
118592bb16f8Smrgdone
118692bb16f8Smrg
118792bb16f8Smrgif test -n "$ac_prev"; then
118892bb16f8Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189de7ed6e8Smrg  as_fn_error $? "missing argument to $ac_option"
119092bb16f8Smrgfi
119192bb16f8Smrg
11928255a313Smrgif test -n "$ac_unrecognized_opts"; then
11938255a313Smrg  case $enable_option_checking in
11948255a313Smrg    no) ;;
1195de7ed6e8Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11968255a313Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11978255a313Smrg  esac
11988255a313Smrgfi
11998255a313Smrg
12008255a313Smrg# Check all directory arguments for consistency.
120192bb16f8Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
120292bb16f8Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
120392bb16f8Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
120492bb16f8Smrg		libdir localedir mandir
120592bb16f8Smrgdo
120692bb16f8Smrg  eval ac_val=\$$ac_var
12078255a313Smrg  # Remove trailing slashes.
12088255a313Smrg  case $ac_val in
12098255a313Smrg    */ )
12108255a313Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
12118255a313Smrg      eval $ac_var=\$ac_val;;
12128255a313Smrg  esac
12138255a313Smrg  # Be sure to have absolute directory names.
121492bb16f8Smrg  case $ac_val in
121592bb16f8Smrg    [\\/$]* | ?:[\\/]* )  continue;;
121692bb16f8Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
121792bb16f8Smrg  esac
1218de7ed6e8Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
121992bb16f8Smrgdone
122092bb16f8Smrg
122192bb16f8Smrg# There might be people who depend on the old broken behavior: `$host'
122292bb16f8Smrg# used to hold the argument of --host etc.
122392bb16f8Smrg# FIXME: To remove some day.
122492bb16f8Smrgbuild=$build_alias
122592bb16f8Smrghost=$host_alias
122692bb16f8Smrgtarget=$target_alias
122792bb16f8Smrg
122892bb16f8Smrg# FIXME: To remove some day.
122992bb16f8Smrgif test "x$host_alias" != x; then
123092bb16f8Smrg  if test "x$build_alias" = x; then
123192bb16f8Smrg    cross_compiling=maybe
123292bb16f8Smrg  elif test "x$build_alias" != "x$host_alias"; then
123392bb16f8Smrg    cross_compiling=yes
123492bb16f8Smrg  fi
123592bb16f8Smrgfi
123692bb16f8Smrg
123792bb16f8Smrgac_tool_prefix=
123892bb16f8Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
123992bb16f8Smrg
124092bb16f8Smrgtest "$silent" = yes && exec 6>/dev/null
124192bb16f8Smrg
124292bb16f8Smrg
124392bb16f8Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
124492bb16f8Smrgac_ls_di=`ls -di .` &&
124592bb16f8Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246de7ed6e8Smrg  as_fn_error $? "working directory cannot be determined"
124792bb16f8Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248de7ed6e8Smrg  as_fn_error $? "pwd does not report name of working directory"
124992bb16f8Smrg
125092bb16f8Smrg
125192bb16f8Smrg# Find the source files, if location was not specified.
125292bb16f8Smrgif test -z "$srcdir"; then
125392bb16f8Smrg  ac_srcdir_defaulted=yes
125492bb16f8Smrg  # Try the directory containing this script, then the parent directory.
12558255a313Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12568255a313Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12578255a313Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12588255a313Smrg	 X"$as_myself" : 'X\(//\)$' \| \
12598255a313Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12608255a313Smrg$as_echo X"$as_myself" |
126192bb16f8Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
126292bb16f8Smrg	    s//\1/
126392bb16f8Smrg	    q
126492bb16f8Smrg	  }
126592bb16f8Smrg	  /^X\(\/\/\)[^/].*/{
126692bb16f8Smrg	    s//\1/
126792bb16f8Smrg	    q
126892bb16f8Smrg	  }
126992bb16f8Smrg	  /^X\(\/\/\)$/{
127092bb16f8Smrg	    s//\1/
127192bb16f8Smrg	    q
127292bb16f8Smrg	  }
127392bb16f8Smrg	  /^X\(\/\).*/{
127492bb16f8Smrg	    s//\1/
127592bb16f8Smrg	    q
127692bb16f8Smrg	  }
127792bb16f8Smrg	  s/.*/./; q'`
127892bb16f8Smrg  srcdir=$ac_confdir
127992bb16f8Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
128092bb16f8Smrg    srcdir=..
128192bb16f8Smrg  fi
128292bb16f8Smrgelse
128392bb16f8Smrg  ac_srcdir_defaulted=no
128492bb16f8Smrgfi
128592bb16f8Smrgif test ! -r "$srcdir/$ac_unique_file"; then
128692bb16f8Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287de7ed6e8Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
128892bb16f8Smrgfi
128992bb16f8Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
129092bb16f8Smrgac_abs_confdir=`(
1291de7ed6e8Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
129292bb16f8Smrg	pwd)`
129392bb16f8Smrg# When building in place, set srcdir=.
129492bb16f8Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
129592bb16f8Smrg  srcdir=.
129692bb16f8Smrgfi
129792bb16f8Smrg# Remove unnecessary trailing slashes from srcdir.
129892bb16f8Smrg# Double slashes in file names in object file debugging info
129992bb16f8Smrg# mess up M-x gdb in Emacs.
130092bb16f8Smrgcase $srcdir in
130192bb16f8Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
130292bb16f8Smrgesac
130392bb16f8Smrgfor ac_var in $ac_precious_vars; do
130492bb16f8Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
130592bb16f8Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
130692bb16f8Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
130792bb16f8Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
130892bb16f8Smrgdone
130992bb16f8Smrg
131092bb16f8Smrg#
131192bb16f8Smrg# Report the --help message.
131292bb16f8Smrg#
131392bb16f8Smrgif test "$ac_init_help" = "long"; then
131492bb16f8Smrg  # Omit some internal or obsolete options to make the list less imposing.
131592bb16f8Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
131692bb16f8Smrg  cat <<_ACEOF
131701395c31Smrg\`configure' configures encodings 1.0.5 to adapt to many kinds of systems.
131892bb16f8Smrg
131992bb16f8SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
132092bb16f8Smrg
132192bb16f8SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
132292bb16f8SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
132392bb16f8Smrg
132492bb16f8SmrgDefaults for the options are specified in brackets.
132592bb16f8Smrg
132692bb16f8SmrgConfiguration:
132792bb16f8Smrg  -h, --help              display this help and exit
132892bb16f8Smrg      --help=short        display options specific to this package
132992bb16f8Smrg      --help=recursive    display the short help of all the included packages
133092bb16f8Smrg  -V, --version           display version information and exit
1331de7ed6e8Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
133292bb16f8Smrg      --cache-file=FILE   cache test results in FILE [disabled]
133392bb16f8Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
133492bb16f8Smrg  -n, --no-create         do not create output files
133592bb16f8Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
133692bb16f8Smrg
133792bb16f8SmrgInstallation directories:
133892bb16f8Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13398255a313Smrg                          [$ac_default_prefix]
134092bb16f8Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13418255a313Smrg                          [PREFIX]
134292bb16f8Smrg
134392bb16f8SmrgBy default, \`make install' will install all the files in
134492bb16f8Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
134592bb16f8Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
134692bb16f8Smrgfor instance \`--prefix=\$HOME'.
134792bb16f8Smrg
134892bb16f8SmrgFor better control, use the options below.
134992bb16f8Smrg
135092bb16f8SmrgFine tuning of the installation directories:
13518255a313Smrg  --bindir=DIR            user executables [EPREFIX/bin]
13528255a313Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13538255a313Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13548255a313Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13558255a313Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13568255a313Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13578255a313Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13588255a313Smrg  --includedir=DIR        C header files [PREFIX/include]
13598255a313Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13608255a313Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13618255a313Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13628255a313Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13638255a313Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13648255a313Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13658255a313Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/encodings]
13668255a313Smrg  --htmldir=DIR           html documentation [DOCDIR]
13678255a313Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
13688255a313Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13698255a313Smrg  --psdir=DIR             ps documentation [DOCDIR]
137092bb16f8Smrg_ACEOF
137192bb16f8Smrg
137292bb16f8Smrg  cat <<\_ACEOF
137392bb16f8Smrg
137492bb16f8SmrgProgram names:
137592bb16f8Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
137692bb16f8Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
137792bb16f8Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
13788255a313Smrg
13798255a313SmrgSystem types:
13808255a313Smrg  --build=BUILD     configure for building on BUILD [guessed]
13818255a313Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
138292bb16f8Smrg_ACEOF
138392bb16f8Smrgfi
138492bb16f8Smrg
138592bb16f8Smrgif test -n "$ac_init_help"; then
138692bb16f8Smrg  case $ac_init_help in
138701395c31Smrg     short | recursive ) echo "Configuration of encodings 1.0.5:";;
138892bb16f8Smrg   esac
138992bb16f8Smrg  cat <<\_ACEOF
139092bb16f8Smrg
139192bb16f8SmrgOptional Features:
13928255a313Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
139392bb16f8Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
139492bb16f8Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
139501395c31Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
139601395c31Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
139701395c31Smrg  --enable-dependency-tracking
139801395c31Smrg                          do not reject slow dependency extractors
139901395c31Smrg  --disable-dependency-tracking
140001395c31Smrg                          speeds up one-time build
140101395c31Smrg  --disable-selective-werror
140201395c31Smrg                          Turn off selective compiler errors. (default:
140301395c31Smrg                          enabled)
14048255a313Smrg  --enable-strict-compilation
14058255a313Smrg                          Enable all warnings from compiler and make them
14068255a313Smrg                          errors (default: disabled)
140792bb16f8Smrg  --disable-gzip-small-encodings
140892bb16f8Smrg                          Disable compression of small encoding files
140992bb16f8Smrg  --disable-gzip-large-encodings
141092bb16f8Smrg                          Disable compression of large encoding files
141192bb16f8Smrg
141292bb16f8SmrgOptional Packages:
141392bb16f8Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
141492bb16f8Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14158255a313Smrg  --with-fontrootdir=DIR  Path to root directory for font files
14168255a313Smrg  --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings]
14178255a313Smrg
14188255a313SmrgSome influential environment variables:
14198255a313Smrg  CC          C compiler command
14208255a313Smrg  CFLAGS      C compiler flags
14218255a313Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14228255a313Smrg              nonstandard directory <lib dir>
14238255a313Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1424de7ed6e8Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14258255a313Smrg              you have headers in a nonstandard directory <include dir>
14268255a313Smrg  CPP         C preprocessor
14278255a313Smrg  PKG_CONFIG  path to pkg-config utility
142801395c31Smrg  PKG_CONFIG_PATH
142901395c31Smrg              directories to add to pkg-config's search path
143001395c31Smrg  PKG_CONFIG_LIBDIR
143101395c31Smrg              path overriding pkg-config's built-in search path
14328255a313Smrg
14338255a313SmrgUse these variables to override the choices made by `configure' or to help
14348255a313Smrgit to find libraries and programs with nonstandard names/locations.
143592bb16f8Smrg
143601395c31SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/font/encodings/issues>.
143792bb16f8Smrg_ACEOF
143892bb16f8Smrgac_status=$?
143992bb16f8Smrgfi
144092bb16f8Smrg
144192bb16f8Smrgif test "$ac_init_help" = "recursive"; then
144292bb16f8Smrg  # If there are subdirs, report their specific --help.
144392bb16f8Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14448255a313Smrg    test -d "$ac_dir" ||
14458255a313Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14468255a313Smrg      continue
144792bb16f8Smrg    ac_builddir=.
144892bb16f8Smrg
144992bb16f8Smrgcase "$ac_dir" in
145092bb16f8Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
145192bb16f8Smrg*)
14528255a313Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
145392bb16f8Smrg  # A ".." for each directory in $ac_dir_suffix.
14548255a313Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
145592bb16f8Smrg  case $ac_top_builddir_sub in
145692bb16f8Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
145792bb16f8Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
145892bb16f8Smrg  esac ;;
145992bb16f8Smrgesac
146092bb16f8Smrgac_abs_top_builddir=$ac_pwd
146192bb16f8Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
146292bb16f8Smrg# for backward compatibility:
146392bb16f8Smrgac_top_builddir=$ac_top_build_prefix
146492bb16f8Smrg
146592bb16f8Smrgcase $srcdir in
146692bb16f8Smrg  .)  # We are building in place.
146792bb16f8Smrg    ac_srcdir=.
146892bb16f8Smrg    ac_top_srcdir=$ac_top_builddir_sub
146992bb16f8Smrg    ac_abs_top_srcdir=$ac_pwd ;;
147092bb16f8Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
147192bb16f8Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
147292bb16f8Smrg    ac_top_srcdir=$srcdir
147392bb16f8Smrg    ac_abs_top_srcdir=$srcdir ;;
147492bb16f8Smrg  *) # Relative name.
147592bb16f8Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
147692bb16f8Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
147792bb16f8Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
147892bb16f8Smrgesac
147992bb16f8Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
148092bb16f8Smrg
148192bb16f8Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
148292bb16f8Smrg    # Check for guested configure.
148392bb16f8Smrg    if test -f "$ac_srcdir/configure.gnu"; then
148492bb16f8Smrg      echo &&
148592bb16f8Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
148692bb16f8Smrg    elif test -f "$ac_srcdir/configure"; then
148792bb16f8Smrg      echo &&
148892bb16f8Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
148992bb16f8Smrg    else
14908255a313Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
149192bb16f8Smrg    fi || ac_status=$?
149292bb16f8Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
149392bb16f8Smrg  done
149492bb16f8Smrgfi
149592bb16f8Smrg
149692bb16f8Smrgtest -n "$ac_init_help" && exit $ac_status
149792bb16f8Smrgif $ac_init_version; then
149892bb16f8Smrg  cat <<\_ACEOF
149901395c31Smrgencodings configure 1.0.5
150001395c31Smrggenerated by GNU Autoconf 2.69
150192bb16f8Smrg
150201395c31SmrgCopyright (C) 2012 Free Software Foundation, Inc.
150392bb16f8SmrgThis configure script is free software; the Free Software Foundation
150492bb16f8Smrggives unlimited permission to copy, distribute and modify it.
150592bb16f8Smrg_ACEOF
150692bb16f8Smrg  exit
150792bb16f8Smrgfi
150892bb16f8Smrg
1509de7ed6e8Smrg## ------------------------ ##
1510de7ed6e8Smrg## Autoconf initialization. ##
1511de7ed6e8Smrg## ------------------------ ##
151292bb16f8Smrg
1513de7ed6e8Smrg# ac_fn_c_try_compile LINENO
1514de7ed6e8Smrg# --------------------------
1515de7ed6e8Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1516de7ed6e8Smrgac_fn_c_try_compile ()
151792bb16f8Smrg{
1518de7ed6e8Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519de7ed6e8Smrg  rm -f conftest.$ac_objext
1520de7ed6e8Smrg  if { { ac_try="$ac_compile"
1521de7ed6e8Smrgcase "(($ac_try" in
1522de7ed6e8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523de7ed6e8Smrg  *) ac_try_echo=$ac_try;;
1524de7ed6e8Smrgesac
1525de7ed6e8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526de7ed6e8Smrg$as_echo "$ac_try_echo"; } >&5
1527de7ed6e8Smrg  (eval "$ac_compile") 2>conftest.err
1528de7ed6e8Smrg  ac_status=$?
1529de7ed6e8Smrg  if test -s conftest.err; then
1530de7ed6e8Smrg    grep -v '^ *+' conftest.err >conftest.er1
1531de7ed6e8Smrg    cat conftest.er1 >&5
1532de7ed6e8Smrg    mv -f conftest.er1 conftest.err
1533de7ed6e8Smrg  fi
1534de7ed6e8Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535de7ed6e8Smrg  test $ac_status = 0; } && {
1536de7ed6e8Smrg	 test -z "$ac_c_werror_flag" ||
1537de7ed6e8Smrg	 test ! -s conftest.err
1538de7ed6e8Smrg       } && test -s conftest.$ac_objext; then :
1539de7ed6e8Smrg  ac_retval=0
1540de7ed6e8Smrgelse
1541de7ed6e8Smrg  $as_echo "$as_me: failed program was:" >&5
1542de7ed6e8Smrgsed 's/^/| /' conftest.$ac_ext >&5
154392bb16f8Smrg
1544de7ed6e8Smrg	ac_retval=1
1545de7ed6e8Smrgfi
1546de7ed6e8Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1547de7ed6e8Smrg  as_fn_set_status $ac_retval
154892bb16f8Smrg
1549de7ed6e8Smrg} # ac_fn_c_try_compile
155092bb16f8Smrg
1551de7ed6e8Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1552de7ed6e8Smrg# ---------------------------------------------
1553de7ed6e8Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1554de7ed6e8Smrg# accordingly.
1555de7ed6e8Smrgac_fn_c_check_decl ()
1556de7ed6e8Smrg{
1557de7ed6e8Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558de7ed6e8Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1559de7ed6e8Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1560de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1561de7ed6e8Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1562de7ed6e8Smrgif eval \${$3+:} false; then :
1563de7ed6e8Smrg  $as_echo_n "(cached) " >&6
1564de7ed6e8Smrgelse
1565de7ed6e8Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1566de7ed6e8Smrg/* end confdefs.h.  */
1567de7ed6e8Smrg$4
1568de7ed6e8Smrgint
1569de7ed6e8Smrgmain ()
1570de7ed6e8Smrg{
1571de7ed6e8Smrg#ifndef $as_decl_name
1572de7ed6e8Smrg#ifdef __cplusplus
1573de7ed6e8Smrg  (void) $as_decl_use;
1574de7ed6e8Smrg#else
1575de7ed6e8Smrg  (void) $as_decl_name;
1576de7ed6e8Smrg#endif
1577de7ed6e8Smrg#endif
1578de7ed6e8Smrg
1579de7ed6e8Smrg  ;
1580de7ed6e8Smrg  return 0;
1581de7ed6e8Smrg}
1582de7ed6e8Smrg_ACEOF
1583de7ed6e8Smrgif ac_fn_c_try_compile "$LINENO"; then :
1584de7ed6e8Smrg  eval "$3=yes"
1585de7ed6e8Smrgelse
1586de7ed6e8Smrg  eval "$3=no"
1587de7ed6e8Smrgfi
1588de7ed6e8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1589de7ed6e8Smrgfi
1590de7ed6e8Smrgeval ac_res=\$$3
1591de7ed6e8Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592de7ed6e8Smrg$as_echo "$ac_res" >&6; }
1593de7ed6e8Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594de7ed6e8Smrg
1595de7ed6e8Smrg} # ac_fn_c_check_decl
1596de7ed6e8Smrg
1597de7ed6e8Smrg# ac_fn_c_try_cpp LINENO
1598de7ed6e8Smrg# ----------------------
1599de7ed6e8Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600de7ed6e8Smrgac_fn_c_try_cpp ()
1601de7ed6e8Smrg{
1602de7ed6e8Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603de7ed6e8Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1604de7ed6e8Smrgcase "(($ac_try" in
1605de7ed6e8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606de7ed6e8Smrg  *) ac_try_echo=$ac_try;;
1607de7ed6e8Smrgesac
1608de7ed6e8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609de7ed6e8Smrg$as_echo "$ac_try_echo"; } >&5
1610de7ed6e8Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1611de7ed6e8Smrg  ac_status=$?
1612de7ed6e8Smrg  if test -s conftest.err; then
1613de7ed6e8Smrg    grep -v '^ *+' conftest.err >conftest.er1
1614de7ed6e8Smrg    cat conftest.er1 >&5
1615de7ed6e8Smrg    mv -f conftest.er1 conftest.err
1616de7ed6e8Smrg  fi
1617de7ed6e8Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618de7ed6e8Smrg  test $ac_status = 0; } > conftest.i && {
1619de7ed6e8Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1620de7ed6e8Smrg	 test ! -s conftest.err
1621de7ed6e8Smrg       }; then :
1622de7ed6e8Smrg  ac_retval=0
1623de7ed6e8Smrgelse
1624de7ed6e8Smrg  $as_echo "$as_me: failed program was:" >&5
1625de7ed6e8Smrgsed 's/^/| /' conftest.$ac_ext >&5
1626de7ed6e8Smrg
1627de7ed6e8Smrg    ac_retval=1
1628de7ed6e8Smrgfi
1629de7ed6e8Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630de7ed6e8Smrg  as_fn_set_status $ac_retval
1631de7ed6e8Smrg
1632de7ed6e8Smrg} # ac_fn_c_try_cpp
1633de7ed6e8Smrg
1634de7ed6e8Smrg# ac_fn_c_try_run LINENO
1635de7ed6e8Smrg# ----------------------
1636de7ed6e8Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1637de7ed6e8Smrg# that executables *can* be run.
1638de7ed6e8Smrgac_fn_c_try_run ()
1639de7ed6e8Smrg{
1640de7ed6e8Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641de7ed6e8Smrg  if { { ac_try="$ac_link"
1642de7ed6e8Smrgcase "(($ac_try" in
1643de7ed6e8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644de7ed6e8Smrg  *) ac_try_echo=$ac_try;;
1645de7ed6e8Smrgesac
1646de7ed6e8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647de7ed6e8Smrg$as_echo "$ac_try_echo"; } >&5
1648de7ed6e8Smrg  (eval "$ac_link") 2>&5
1649de7ed6e8Smrg  ac_status=$?
1650de7ed6e8Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651de7ed6e8Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1652de7ed6e8Smrg  { { case "(($ac_try" in
1653de7ed6e8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654de7ed6e8Smrg  *) ac_try_echo=$ac_try;;
1655de7ed6e8Smrgesac
1656de7ed6e8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657de7ed6e8Smrg$as_echo "$ac_try_echo"; } >&5
1658de7ed6e8Smrg  (eval "$ac_try") 2>&5
1659de7ed6e8Smrg  ac_status=$?
1660de7ed6e8Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661de7ed6e8Smrg  test $ac_status = 0; }; }; then :
1662de7ed6e8Smrg  ac_retval=0
1663de7ed6e8Smrgelse
1664de7ed6e8Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1665de7ed6e8Smrg       $as_echo "$as_me: failed program was:" >&5
1666de7ed6e8Smrgsed 's/^/| /' conftest.$ac_ext >&5
1667de7ed6e8Smrg
1668de7ed6e8Smrg       ac_retval=$ac_status
1669de7ed6e8Smrgfi
1670de7ed6e8Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671de7ed6e8Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672de7ed6e8Smrg  as_fn_set_status $ac_retval
1673de7ed6e8Smrg
1674de7ed6e8Smrg} # ac_fn_c_try_run
1675de7ed6e8Smrg
1676de7ed6e8Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677de7ed6e8Smrg# -------------------------------------------------------
1678de7ed6e8Smrg# Tests whether HEADER exists and can be compiled using the include files in
1679de7ed6e8Smrg# INCLUDES, setting the cache variable VAR accordingly.
1680de7ed6e8Smrgac_fn_c_check_header_compile ()
1681de7ed6e8Smrg{
1682de7ed6e8Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684de7ed6e8Smrg$as_echo_n "checking for $2... " >&6; }
1685de7ed6e8Smrgif eval \${$3+:} false; then :
1686de7ed6e8Smrg  $as_echo_n "(cached) " >&6
1687de7ed6e8Smrgelse
1688de7ed6e8Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689de7ed6e8Smrg/* end confdefs.h.  */
1690de7ed6e8Smrg$4
1691de7ed6e8Smrg#include <$2>
1692de7ed6e8Smrg_ACEOF
1693de7ed6e8Smrgif ac_fn_c_try_compile "$LINENO"; then :
1694de7ed6e8Smrg  eval "$3=yes"
1695de7ed6e8Smrgelse
1696de7ed6e8Smrg  eval "$3=no"
1697de7ed6e8Smrgfi
1698de7ed6e8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699de7ed6e8Smrgfi
1700de7ed6e8Smrgeval ac_res=\$$3
1701de7ed6e8Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702de7ed6e8Smrg$as_echo "$ac_res" >&6; }
1703de7ed6e8Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704de7ed6e8Smrg
1705de7ed6e8Smrg} # ac_fn_c_check_header_compile
170601395c31Smrg
170701395c31Smrg# ac_fn_c_try_link LINENO
170801395c31Smrg# -----------------------
170901395c31Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
171001395c31Smrgac_fn_c_try_link ()
171101395c31Smrg{
171201395c31Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
171301395c31Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
171401395c31Smrg  if { { ac_try="$ac_link"
171501395c31Smrgcase "(($ac_try" in
171601395c31Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
171701395c31Smrg  *) ac_try_echo=$ac_try;;
171801395c31Smrgesac
171901395c31Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
172001395c31Smrg$as_echo "$ac_try_echo"; } >&5
172101395c31Smrg  (eval "$ac_link") 2>conftest.err
172201395c31Smrg  ac_status=$?
172301395c31Smrg  if test -s conftest.err; then
172401395c31Smrg    grep -v '^ *+' conftest.err >conftest.er1
172501395c31Smrg    cat conftest.er1 >&5
172601395c31Smrg    mv -f conftest.er1 conftest.err
172701395c31Smrg  fi
172801395c31Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
172901395c31Smrg  test $ac_status = 0; } && {
173001395c31Smrg	 test -z "$ac_c_werror_flag" ||
173101395c31Smrg	 test ! -s conftest.err
173201395c31Smrg       } && test -s conftest$ac_exeext && {
173301395c31Smrg	 test "$cross_compiling" = yes ||
173401395c31Smrg	 test -x conftest$ac_exeext
173501395c31Smrg       }; then :
173601395c31Smrg  ac_retval=0
173701395c31Smrgelse
173801395c31Smrg  $as_echo "$as_me: failed program was:" >&5
173901395c31Smrgsed 's/^/| /' conftest.$ac_ext >&5
174001395c31Smrg
174101395c31Smrg	ac_retval=1
174201395c31Smrgfi
174301395c31Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
174401395c31Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
174501395c31Smrg  # interfere with the next link command; also delete a directory that is
174601395c31Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
174701395c31Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
174801395c31Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
174901395c31Smrg  as_fn_set_status $ac_retval
175001395c31Smrg
175101395c31Smrg} # ac_fn_c_try_link
1752de7ed6e8Smrgcat >config.log <<_ACEOF
1753de7ed6e8SmrgThis file contains any messages produced by compilers while
1754de7ed6e8Smrgrunning configure, to aid debugging if configure makes a mistake.
1755de7ed6e8Smrg
175601395c31SmrgIt was created by encodings $as_me 1.0.5, which was
175701395c31Smrggenerated by GNU Autoconf 2.69.  Invocation command line was
1758de7ed6e8Smrg
1759de7ed6e8Smrg  $ $0 $@
1760de7ed6e8Smrg
1761de7ed6e8Smrg_ACEOF
1762de7ed6e8Smrgexec 5>>config.log
1763de7ed6e8Smrg{
1764de7ed6e8Smrgcat <<_ASUNAME
1765de7ed6e8Smrg## --------- ##
1766de7ed6e8Smrg## Platform. ##
1767de7ed6e8Smrg## --------- ##
1768de7ed6e8Smrg
1769de7ed6e8Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1770de7ed6e8Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1771de7ed6e8Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1772de7ed6e8Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1773de7ed6e8Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1774de7ed6e8Smrg
1775de7ed6e8Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1776de7ed6e8Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1777de7ed6e8Smrg
1778de7ed6e8Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1779de7ed6e8Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1780de7ed6e8Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1781de7ed6e8Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1782de7ed6e8Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1783de7ed6e8Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1784de7ed6e8Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1785de7ed6e8Smrg
1786de7ed6e8Smrg_ASUNAME
1787de7ed6e8Smrg
1788de7ed6e8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789de7ed6e8Smrgfor as_dir in $PATH
179092bb16f8Smrgdo
179192bb16f8Smrg  IFS=$as_save_IFS
179292bb16f8Smrg  test -z "$as_dir" && as_dir=.
1793de7ed6e8Smrg    $as_echo "PATH: $as_dir"
1794de7ed6e8Smrg  done
179592bb16f8SmrgIFS=$as_save_IFS
179692bb16f8Smrg
179792bb16f8Smrg} >&5
179892bb16f8Smrg
179992bb16f8Smrgcat >&5 <<_ACEOF
180092bb16f8Smrg
180192bb16f8Smrg
180292bb16f8Smrg## ----------- ##
180392bb16f8Smrg## Core tests. ##
180492bb16f8Smrg## ----------- ##
180592bb16f8Smrg
180692bb16f8Smrg_ACEOF
180792bb16f8Smrg
180892bb16f8Smrg
180992bb16f8Smrg# Keep a trace of the command line.
181092bb16f8Smrg# Strip out --no-create and --no-recursion so they do not pile up.
181192bb16f8Smrg# Strip out --silent because we don't want to record it for future runs.
181292bb16f8Smrg# Also quote any args containing shell meta-characters.
181392bb16f8Smrg# Make two passes to allow for proper duplicate-argument suppression.
181492bb16f8Smrgac_configure_args=
181592bb16f8Smrgac_configure_args0=
181692bb16f8Smrgac_configure_args1=
181792bb16f8Smrgac_must_keep_next=false
181892bb16f8Smrgfor ac_pass in 1 2
181992bb16f8Smrgdo
182092bb16f8Smrg  for ac_arg
182192bb16f8Smrg  do
182292bb16f8Smrg    case $ac_arg in
182392bb16f8Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
182492bb16f8Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
182592bb16f8Smrg    | -silent | --silent | --silen | --sile | --sil)
182692bb16f8Smrg      continue ;;
182792bb16f8Smrg    *\'*)
18288255a313Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
182992bb16f8Smrg    esac
183092bb16f8Smrg    case $ac_pass in
1831de7ed6e8Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
183292bb16f8Smrg    2)
1833de7ed6e8Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
183492bb16f8Smrg      if test $ac_must_keep_next = true; then
183592bb16f8Smrg	ac_must_keep_next=false # Got value, back to normal.
183692bb16f8Smrg      else
183792bb16f8Smrg	case $ac_arg in
183892bb16f8Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
183992bb16f8Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
184092bb16f8Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
184192bb16f8Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
184292bb16f8Smrg	    case "$ac_configure_args0 " in
184392bb16f8Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
184492bb16f8Smrg	    esac
184592bb16f8Smrg	    ;;
184692bb16f8Smrg	  -* ) ac_must_keep_next=true ;;
184792bb16f8Smrg	esac
184892bb16f8Smrg      fi
1849de7ed6e8Smrg      as_fn_append ac_configure_args " '$ac_arg'"
185092bb16f8Smrg      ;;
185192bb16f8Smrg    esac
185292bb16f8Smrg  done
185392bb16f8Smrgdone
1854de7ed6e8Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1855de7ed6e8Smrg{ ac_configure_args1=; unset ac_configure_args1;}
185692bb16f8Smrg
185792bb16f8Smrg# When interrupted or exit'd, cleanup temporary files, and complete
185892bb16f8Smrg# config.log.  We remove comments because anyway the quotes in there
185992bb16f8Smrg# would cause problems or look ugly.
186092bb16f8Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
186192bb16f8Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
186292bb16f8Smrgtrap 'exit_status=$?
186392bb16f8Smrg  # Save into config.log some information that might help in debugging.
186492bb16f8Smrg  {
186592bb16f8Smrg    echo
186692bb16f8Smrg
1867de7ed6e8Smrg    $as_echo "## ---------------- ##
186892bb16f8Smrg## Cache variables. ##
1869de7ed6e8Smrg## ---------------- ##"
187092bb16f8Smrg    echo
187192bb16f8Smrg    # The following way of writing the cache mishandles newlines in values,
187292bb16f8Smrg(
187392bb16f8Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
187492bb16f8Smrg    eval ac_val=\$$ac_var
187592bb16f8Smrg    case $ac_val in #(
187692bb16f8Smrg    *${as_nl}*)
187792bb16f8Smrg      case $ac_var in #(
1878de7ed6e8Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18798255a313Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
188092bb16f8Smrg      esac
188192bb16f8Smrg      case $ac_var in #(
188292bb16f8Smrg      _ | IFS | as_nl) ;; #(
18838255a313Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1884de7ed6e8Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
188592bb16f8Smrg      esac ;;
188692bb16f8Smrg    esac
188792bb16f8Smrg  done
188892bb16f8Smrg  (set) 2>&1 |
188992bb16f8Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
189092bb16f8Smrg    *${as_nl}ac_space=\ *)
189192bb16f8Smrg      sed -n \
189292bb16f8Smrg	"s/'\''/'\''\\\\'\'''\''/g;
189392bb16f8Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
189492bb16f8Smrg      ;; #(
189592bb16f8Smrg    *)
189692bb16f8Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
189792bb16f8Smrg      ;;
189892bb16f8Smrg    esac |
189992bb16f8Smrg    sort
190092bb16f8Smrg)
190192bb16f8Smrg    echo
190292bb16f8Smrg
1903de7ed6e8Smrg    $as_echo "## ----------------- ##
190492bb16f8Smrg## Output variables. ##
1905de7ed6e8Smrg## ----------------- ##"
190692bb16f8Smrg    echo
190792bb16f8Smrg    for ac_var in $ac_subst_vars
190892bb16f8Smrg    do
190992bb16f8Smrg      eval ac_val=\$$ac_var
191092bb16f8Smrg      case $ac_val in
19118255a313Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
191292bb16f8Smrg      esac
19138255a313Smrg      $as_echo "$ac_var='\''$ac_val'\''"
191492bb16f8Smrg    done | sort
191592bb16f8Smrg    echo
191692bb16f8Smrg
191792bb16f8Smrg    if test -n "$ac_subst_files"; then
1918de7ed6e8Smrg      $as_echo "## ------------------- ##
191992bb16f8Smrg## File substitutions. ##
1920de7ed6e8Smrg## ------------------- ##"
192192bb16f8Smrg      echo
192292bb16f8Smrg      for ac_var in $ac_subst_files
192392bb16f8Smrg      do
192492bb16f8Smrg	eval ac_val=\$$ac_var
192592bb16f8Smrg	case $ac_val in
19268255a313Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
192792bb16f8Smrg	esac
19288255a313Smrg	$as_echo "$ac_var='\''$ac_val'\''"
192992bb16f8Smrg      done | sort
193092bb16f8Smrg      echo
193192bb16f8Smrg    fi
193292bb16f8Smrg
193392bb16f8Smrg    if test -s confdefs.h; then
1934de7ed6e8Smrg      $as_echo "## ----------- ##
193592bb16f8Smrg## confdefs.h. ##
1936de7ed6e8Smrg## ----------- ##"
193792bb16f8Smrg      echo
193892bb16f8Smrg      cat confdefs.h
193992bb16f8Smrg      echo
194092bb16f8Smrg    fi
194192bb16f8Smrg    test "$ac_signal" != 0 &&
19428255a313Smrg      $as_echo "$as_me: caught signal $ac_signal"
19438255a313Smrg    $as_echo "$as_me: exit $exit_status"
194492bb16f8Smrg  } >&5
194592bb16f8Smrg  rm -f core *.core core.conftest.* &&
194692bb16f8Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
194792bb16f8Smrg    exit $exit_status
194892bb16f8Smrg' 0
194992bb16f8Smrgfor ac_signal in 1 2 13 15; do
1950de7ed6e8Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
195192bb16f8Smrgdone
195292bb16f8Smrgac_signal=0
195392bb16f8Smrg
195492bb16f8Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
195592bb16f8Smrgrm -f -r conftest* confdefs.h
195692bb16f8Smrg
1957de7ed6e8Smrg$as_echo "/* confdefs.h */" > confdefs.h
1958de7ed6e8Smrg
195992bb16f8Smrg# Predefined preprocessor variables.
196092bb16f8Smrg
196192bb16f8Smrgcat >>confdefs.h <<_ACEOF
196292bb16f8Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
196392bb16f8Smrg_ACEOF
196492bb16f8Smrg
196592bb16f8Smrgcat >>confdefs.h <<_ACEOF
196692bb16f8Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
196792bb16f8Smrg_ACEOF
196892bb16f8Smrg
196992bb16f8Smrgcat >>confdefs.h <<_ACEOF
197092bb16f8Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
197192bb16f8Smrg_ACEOF
197292bb16f8Smrg
197392bb16f8Smrgcat >>confdefs.h <<_ACEOF
197492bb16f8Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
197592bb16f8Smrg_ACEOF
197692bb16f8Smrg
197792bb16f8Smrgcat >>confdefs.h <<_ACEOF
197892bb16f8Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
197992bb16f8Smrg_ACEOF
198092bb16f8Smrg
1981de7ed6e8Smrgcat >>confdefs.h <<_ACEOF
1982de7ed6e8Smrg#define PACKAGE_URL "$PACKAGE_URL"
1983de7ed6e8Smrg_ACEOF
1984de7ed6e8Smrg
198592bb16f8Smrg
198692bb16f8Smrg# Let the site file select an alternate cache file if it wants to.
19878255a313Smrg# Prefer an explicitly selected file to automatically selected ones.
19888255a313Smrgac_site_file1=NONE
19898255a313Smrgac_site_file2=NONE
199092bb16f8Smrgif test -n "$CONFIG_SITE"; then
1991de7ed6e8Smrg  # We do not want a PATH search for config.site.
1992de7ed6e8Smrg  case $CONFIG_SITE in #((
1993de7ed6e8Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
1994de7ed6e8Smrg    */*) ac_site_file1=$CONFIG_SITE;;
1995de7ed6e8Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
1996de7ed6e8Smrg  esac
199792bb16f8Smrgelif test "x$prefix" != xNONE; then
19988255a313Smrg  ac_site_file1=$prefix/share/config.site
19998255a313Smrg  ac_site_file2=$prefix/etc/config.site
200092bb16f8Smrgelse
20018255a313Smrg  ac_site_file1=$ac_default_prefix/share/config.site
20028255a313Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
200392bb16f8Smrgfi
20048255a313Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
200592bb16f8Smrgdo
20068255a313Smrg  test "x$ac_site_file" = xNONE && continue
2007de7ed6e8Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2008de7ed6e8Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
20098255a313Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
201092bb16f8Smrg    sed 's/^/| /' "$ac_site_file" >&5
2011de7ed6e8Smrg    . "$ac_site_file" \
2012de7ed6e8Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2013de7ed6e8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2014de7ed6e8Smrgas_fn_error $? "failed to load site script $ac_site_file
2015de7ed6e8SmrgSee \`config.log' for more details" "$LINENO" 5; }
201692bb16f8Smrg  fi
201792bb16f8Smrgdone
201892bb16f8Smrg
201992bb16f8Smrgif test -r "$cache_file"; then
2020de7ed6e8Smrg  # Some versions of bash will fail to source /dev/null (special files
2021de7ed6e8Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2022de7ed6e8Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2023de7ed6e8Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
20248255a313Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
202592bb16f8Smrg    case $cache_file in
202692bb16f8Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
202792bb16f8Smrg      *)                      . "./$cache_file";;
202892bb16f8Smrg    esac
202992bb16f8Smrg  fi
203092bb16f8Smrgelse
2031de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
20328255a313Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
203392bb16f8Smrg  >$cache_file
203492bb16f8Smrgfi
203592bb16f8Smrg
203692bb16f8Smrg# Check that the precious variables saved in the cache have kept the same
203792bb16f8Smrg# value.
203892bb16f8Smrgac_cache_corrupted=false
203992bb16f8Smrgfor ac_var in $ac_precious_vars; do
204092bb16f8Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
204192bb16f8Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
204292bb16f8Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
204392bb16f8Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
204492bb16f8Smrg  case $ac_old_set,$ac_new_set in
204592bb16f8Smrg    set,)
2046de7ed6e8Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
20478255a313Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
204892bb16f8Smrg      ac_cache_corrupted=: ;;
204992bb16f8Smrg    ,set)
2050de7ed6e8Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
20518255a313Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
205292bb16f8Smrg      ac_cache_corrupted=: ;;
205392bb16f8Smrg    ,);;
205492bb16f8Smrg    *)
205592bb16f8Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
20568255a313Smrg	# differences in whitespace do not lead to failure.
20578255a313Smrg	ac_old_val_w=`echo x $ac_old_val`
20588255a313Smrg	ac_new_val_w=`echo x $ac_new_val`
20598255a313Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2060de7ed6e8Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
20618255a313Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
20628255a313Smrg	  ac_cache_corrupted=:
20638255a313Smrg	else
2064de7ed6e8Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
20658255a313Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
20668255a313Smrg	  eval $ac_var=\$ac_old_val
20678255a313Smrg	fi
2068de7ed6e8Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
20698255a313Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2070de7ed6e8Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
20718255a313Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
207292bb16f8Smrg      fi;;
207392bb16f8Smrg  esac
207492bb16f8Smrg  # Pass precious variables to config.status.
207592bb16f8Smrg  if test "$ac_new_set" = set; then
207692bb16f8Smrg    case $ac_new_val in
20778255a313Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
207892bb16f8Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
207992bb16f8Smrg    esac
208092bb16f8Smrg    case " $ac_configure_args " in
208192bb16f8Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2082de7ed6e8Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
208392bb16f8Smrg    esac
208492bb16f8Smrg  fi
208592bb16f8Smrgdone
208692bb16f8Smrgif $ac_cache_corrupted; then
2087de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20888255a313Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
20908255a313Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2091de7ed6e8Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
209292bb16f8Smrgfi
2093de7ed6e8Smrg## -------------------- ##
2094de7ed6e8Smrg## Main body of script. ##
2095de7ed6e8Smrg## -------------------- ##
209692bb16f8Smrg
209792bb16f8Smrgac_ext=c
209892bb16f8Smrgac_cpp='$CPP $CPPFLAGS'
209992bb16f8Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
210092bb16f8Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
210192bb16f8Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
210292bb16f8Smrg
210392bb16f8Smrg
210401395c31Smrgam__api_version='1.16'
21058255a313Smrg
210692bb16f8Smrgac_aux_dir=
210792bb16f8Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
210892bb16f8Smrg  if test -f "$ac_dir/install-sh"; then
210992bb16f8Smrg    ac_aux_dir=$ac_dir
211092bb16f8Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
211192bb16f8Smrg    break
211292bb16f8Smrg  elif test -f "$ac_dir/install.sh"; then
211392bb16f8Smrg    ac_aux_dir=$ac_dir
211492bb16f8Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
211592bb16f8Smrg    break
211692bb16f8Smrg  elif test -f "$ac_dir/shtool"; then
211792bb16f8Smrg    ac_aux_dir=$ac_dir
211892bb16f8Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
211992bb16f8Smrg    break
212092bb16f8Smrg  fi
212192bb16f8Smrgdone
212292bb16f8Smrgif test -z "$ac_aux_dir"; then
2123de7ed6e8Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
212492bb16f8Smrgfi
212592bb16f8Smrg
212692bb16f8Smrg# These three variables are undocumented and unsupported,
212792bb16f8Smrg# and are intended to be withdrawn in a future Autoconf release.
212892bb16f8Smrg# They can cause serious problems if a builder's source tree is in a directory
212992bb16f8Smrg# whose full name contains unusual characters.
213092bb16f8Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
213192bb16f8Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
213292bb16f8Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
213392bb16f8Smrg
213492bb16f8Smrg
213592bb16f8Smrg# Find a good install program.  We prefer a C program (faster),
213692bb16f8Smrg# so one script is as good as another.  But avoid the broken or
213792bb16f8Smrg# incompatible versions:
213892bb16f8Smrg# SysV /etc/install, /usr/sbin/install
213992bb16f8Smrg# SunOS /usr/etc/install
214092bb16f8Smrg# IRIX /sbin/install
214192bb16f8Smrg# AIX /bin/install
214292bb16f8Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
214392bb16f8Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
214492bb16f8Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
214592bb16f8Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
214692bb16f8Smrg# OS/2's system install, which has a completely different semantic
214792bb16f8Smrg# ./install, which can be erroneously created by make from ./install.sh.
21488255a313Smrg# Reject install programs that cannot install multiple files.
2149de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
21508255a313Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
215192bb16f8Smrgif test -z "$INSTALL"; then
2152de7ed6e8Smrgif ${ac_cv_path_install+:} false; then :
21538255a313Smrg  $as_echo_n "(cached) " >&6
215492bb16f8Smrgelse
215592bb16f8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
215692bb16f8Smrgfor as_dir in $PATH
215792bb16f8Smrgdo
215892bb16f8Smrg  IFS=$as_save_IFS
215992bb16f8Smrg  test -z "$as_dir" && as_dir=.
2160de7ed6e8Smrg    # Account for people who put trailing slashes in PATH elements.
2161de7ed6e8Smrgcase $as_dir/ in #((
2162de7ed6e8Smrg  ./ | .// | /[cC]/* | \
216392bb16f8Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2164de7ed6e8Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
216592bb16f8Smrg  /usr/ucb/* ) ;;
216692bb16f8Smrg  *)
216792bb16f8Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
216892bb16f8Smrg    # Don't use installbsd from OSF since it installs stuff as root
216992bb16f8Smrg    # by default.
217092bb16f8Smrg    for ac_prog in ginstall scoinst install; do
217192bb16f8Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
217201395c31Smrg	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
217392bb16f8Smrg	  if test $ac_prog = install &&
217492bb16f8Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
217592bb16f8Smrg	    # AIX install.  It has an incompatible calling convention.
217692bb16f8Smrg	    :
217792bb16f8Smrg	  elif test $ac_prog = install &&
217892bb16f8Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
217992bb16f8Smrg	    # program-specific install script used by HP pwplus--don't use.
218092bb16f8Smrg	    :
218192bb16f8Smrg	  else
21828255a313Smrg	    rm -rf conftest.one conftest.two conftest.dir
21838255a313Smrg	    echo one > conftest.one
21848255a313Smrg	    echo two > conftest.two
21858255a313Smrg	    mkdir conftest.dir
21868255a313Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
21878255a313Smrg	      test -s conftest.one && test -s conftest.two &&
21888255a313Smrg	      test -s conftest.dir/conftest.one &&
21898255a313Smrg	      test -s conftest.dir/conftest.two
21908255a313Smrg	    then
21918255a313Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
21928255a313Smrg	      break 3
21938255a313Smrg	    fi
219492bb16f8Smrg	  fi
219592bb16f8Smrg	fi
219692bb16f8Smrg      done
219792bb16f8Smrg    done
219892bb16f8Smrg    ;;
219992bb16f8Smrgesac
22008255a313Smrg
2201de7ed6e8Smrg  done
220292bb16f8SmrgIFS=$as_save_IFS
220392bb16f8Smrg
22048255a313Smrgrm -rf conftest.one conftest.two conftest.dir
220592bb16f8Smrg
220692bb16f8Smrgfi
220792bb16f8Smrg  if test "${ac_cv_path_install+set}" = set; then
220892bb16f8Smrg    INSTALL=$ac_cv_path_install
220992bb16f8Smrg  else
221092bb16f8Smrg    # As a last resort, use the slow shell script.  Don't cache a
221192bb16f8Smrg    # value for INSTALL within a source directory, because that will
221292bb16f8Smrg    # break other packages using the cache if that directory is
221392bb16f8Smrg    # removed, or if the value is a relative name.
221492bb16f8Smrg    INSTALL=$ac_install_sh
221592bb16f8Smrg  fi
221692bb16f8Smrgfi
2217de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
22188255a313Smrg$as_echo "$INSTALL" >&6; }
221992bb16f8Smrg
222092bb16f8Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
222192bb16f8Smrg# It thinks the first close brace ends the variable substitution.
222292bb16f8Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
222392bb16f8Smrg
222492bb16f8Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
222592bb16f8Smrg
222692bb16f8Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
222792bb16f8Smrg
2228de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
22298255a313Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
22308255a313Smrg# Reject unsafe characters in $srcdir or the absolute working directory
22318255a313Smrg# name.  Accept space and tab only in the latter.
22328255a313Smrgam_lf='
22338255a313Smrg'
22348255a313Smrgcase `pwd` in
22358255a313Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2236de7ed6e8Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
22378255a313Smrgesac
22388255a313Smrgcase $srcdir in
22398255a313Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
224001395c31Smrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
22418255a313Smrgesac
22428255a313Smrg
224301395c31Smrg# Do 'set' in a subshell so we don't clobber the current shell's
224492bb16f8Smrg# arguments.  Must try -L first in case configure is actually a
224592bb16f8Smrg# symlink; some systems play weird games with the mod time of symlinks
224692bb16f8Smrg# (eg FreeBSD returns the mod time of the symlink's containing
224792bb16f8Smrg# directory).
224892bb16f8Smrgif (
224901395c31Smrg   am_has_slept=no
225001395c31Smrg   for am_try in 1 2; do
225101395c31Smrg     echo "timestamp, slept: $am_has_slept" > conftest.file
225201395c31Smrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
225301395c31Smrg     if test "$*" = "X"; then
225401395c31Smrg	# -L didn't work.
225501395c31Smrg	set X `ls -t "$srcdir/configure" conftest.file`
225601395c31Smrg     fi
225701395c31Smrg     if test "$*" != "X $srcdir/configure conftest.file" \
225801395c31Smrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
225901395c31Smrg
226001395c31Smrg	# If neither matched, then we have a broken ls.  This can happen
226101395c31Smrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
226201395c31Smrg	# broken ls alias from the environment.  This has actually
226301395c31Smrg	# happened.  Such a system could not be considered "sane".
226401395c31Smrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
226501395c31Smrg  alias in your environment" "$LINENO" 5
226601395c31Smrg     fi
226701395c31Smrg     if test "$2" = conftest.file || test $am_try -eq 2; then
226801395c31Smrg       break
226901395c31Smrg     fi
227001395c31Smrg     # Just in case.
227101395c31Smrg     sleep 1
227201395c31Smrg     am_has_slept=yes
227301395c31Smrg   done
227492bb16f8Smrg   test "$2" = conftest.file
227592bb16f8Smrg   )
227692bb16f8Smrgthen
227792bb16f8Smrg   # Ok.
227892bb16f8Smrg   :
227992bb16f8Smrgelse
2280de7ed6e8Smrg   as_fn_error $? "newly created file is older than distributed files!
2281de7ed6e8SmrgCheck your system clock" "$LINENO" 5
228292bb16f8Smrgfi
2283de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22848255a313Smrg$as_echo "yes" >&6; }
228501395c31Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and
228601395c31Smrg# generated files are strictly newer.
228701395c31Smrgam_sleep_pid=
228801395c31Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
228901395c31Smrg  ( sleep 1 ) &
229001395c31Smrg  am_sleep_pid=$!
229101395c31Smrgfi
229201395c31Smrg
229301395c31Smrgrm -f conftest.file
229401395c31Smrg
229592bb16f8Smrgtest "$program_prefix" != NONE &&
229692bb16f8Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
229792bb16f8Smrg# Use a double $ so make ignores it.
229892bb16f8Smrgtest "$program_suffix" != NONE &&
229992bb16f8Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
23008255a313Smrg# Double any \ or $.
230192bb16f8Smrg# By default was `s,x,x', remove it if useless.
23028255a313Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
23038255a313Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
230492bb16f8Smrg
230501395c31Smrg# Expand $ac_aux_dir to an absolute path.
230601395c31Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
230792bb16f8Smrg
23088255a313Smrgif test x"${MISSING+set}" != xset; then
23098255a313Smrg  case $am_aux_dir in
23108255a313Smrg  *\ * | *\	*)
23118255a313Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
23128255a313Smrg  *)
23138255a313Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
23148255a313Smrg  esac
23158255a313Smrgfi
231692bb16f8Smrg# Use eval to expand $SHELL
231701395c31Smrgif eval "$MISSING --is-lightweight"; then
231801395c31Smrg  am_missing_run="$MISSING "
231992bb16f8Smrgelse
232092bb16f8Smrg  am_missing_run=
232101395c31Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
232201395c31Smrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
232392bb16f8Smrgfi
232492bb16f8Smrg
232501395c31Smrgif test x"${install_sh+set}" != xset; then
23268255a313Smrg  case $am_aux_dir in
23278255a313Smrg  *\ * | *\	*)
23288255a313Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
23298255a313Smrg  *)
23308255a313Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
23318255a313Smrg  esac
23328255a313Smrgfi
23338255a313Smrg
233401395c31Smrg# Installed binaries are usually stripped using 'strip' when the user
233501395c31Smrg# run "make install-strip".  However 'strip' might not be the right
23368255a313Smrg# tool to use in cross-compilation environments, therefore Automake
233701395c31Smrg# will honor the 'STRIP' environment variable to overrule this program.
23388255a313Smrgif test "$cross_compiling" != no; then
23398255a313Smrg  if test -n "$ac_tool_prefix"; then
23408255a313Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
23418255a313Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2342de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23438255a313Smrg$as_echo_n "checking for $ac_word... " >&6; }
2344de7ed6e8Smrgif ${ac_cv_prog_STRIP+:} false; then :
23458255a313Smrg  $as_echo_n "(cached) " >&6
234692bb16f8Smrgelse
23478255a313Smrg  if test -n "$STRIP"; then
23488255a313Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
234992bb16f8Smrgelse
235092bb16f8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
235192bb16f8Smrgfor as_dir in $PATH
235292bb16f8Smrgdo
235392bb16f8Smrg  IFS=$as_save_IFS
235492bb16f8Smrg  test -z "$as_dir" && as_dir=.
2355de7ed6e8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
235601395c31Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23578255a313Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2358de7ed6e8Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
235992bb16f8Smrg    break 2
236092bb16f8Smrg  fi
236192bb16f8Smrgdone
2362de7ed6e8Smrg  done
236392bb16f8SmrgIFS=$as_save_IFS
236492bb16f8Smrg
236592bb16f8Smrgfi
236692bb16f8Smrgfi
23678255a313SmrgSTRIP=$ac_cv_prog_STRIP
23688255a313Smrgif test -n "$STRIP"; then
2369de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
23708255a313Smrg$as_echo "$STRIP" >&6; }
237192bb16f8Smrgelse
2372de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23738255a313Smrg$as_echo "no" >&6; }
237492bb16f8Smrgfi
237592bb16f8Smrg
237692bb16f8Smrg
23778255a313Smrgfi
23788255a313Smrgif test -z "$ac_cv_prog_STRIP"; then
23798255a313Smrg  ac_ct_STRIP=$STRIP
23808255a313Smrg  # Extract the first word of "strip", so it can be a program name with args.
23818255a313Smrgset dummy strip; ac_word=$2
2382de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23838255a313Smrg$as_echo_n "checking for $ac_word... " >&6; }
2384de7ed6e8Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
23858255a313Smrg  $as_echo_n "(cached) " >&6
23868255a313Smrgelse
23878255a313Smrg  if test -n "$ac_ct_STRIP"; then
23888255a313Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
23898255a313Smrgelse
23908255a313Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23918255a313Smrgfor as_dir in $PATH
23928255a313Smrgdo
23938255a313Smrg  IFS=$as_save_IFS
23948255a313Smrg  test -z "$as_dir" && as_dir=.
2395de7ed6e8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
239601395c31Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23978255a313Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2398de7ed6e8Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23998255a313Smrg    break 2
24008255a313Smrg  fi
24018255a313Smrgdone
2402de7ed6e8Smrg  done
24038255a313SmrgIFS=$as_save_IFS
240492bb16f8Smrg
24058255a313Smrgfi
24068255a313Smrgfi
24078255a313Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
24088255a313Smrgif test -n "$ac_ct_STRIP"; then
2409de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
24108255a313Smrg$as_echo "$ac_ct_STRIP" >&6; }
24118255a313Smrgelse
2412de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24138255a313Smrg$as_echo "no" >&6; }
24148255a313Smrgfi
24158255a313Smrg
24168255a313Smrg  if test "x$ac_ct_STRIP" = x; then
24178255a313Smrg    STRIP=":"
24188255a313Smrg  else
24198255a313Smrg    case $cross_compiling:$ac_tool_warned in
24208255a313Smrgyes:)
2421de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24228255a313Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24238255a313Smrgac_tool_warned=yes ;;
24248255a313Smrgesac
24258255a313Smrg    STRIP=$ac_ct_STRIP
24268255a313Smrg  fi
24278255a313Smrgelse
24288255a313Smrg  STRIP="$ac_cv_prog_STRIP"
24298255a313Smrgfi
24308255a313Smrg
24318255a313Smrgfi
24328255a313SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
24338255a313Smrg
2434de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
24358255a313Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
24368255a313Smrgif test -z "$MKDIR_P"; then
2437de7ed6e8Smrg  if ${ac_cv_path_mkdir+:} false; then :
24388255a313Smrg  $as_echo_n "(cached) " >&6
24398255a313Smrgelse
24408255a313Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24418255a313Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
24428255a313Smrgdo
24438255a313Smrg  IFS=$as_save_IFS
24448255a313Smrg  test -z "$as_dir" && as_dir=.
2445de7ed6e8Smrg    for ac_prog in mkdir gmkdir; do
24468255a313Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
244701395c31Smrg	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
24488255a313Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
24498255a313Smrg	     'mkdir (GNU coreutils) '* | \
24508255a313Smrg	     'mkdir (coreutils) '* | \
24518255a313Smrg	     'mkdir (fileutils) '4.1*)
24528255a313Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
24538255a313Smrg	       break 3;;
24548255a313Smrg	   esac
24558255a313Smrg	 done
24568255a313Smrg       done
2457de7ed6e8Smrg  done
24588255a313SmrgIFS=$as_save_IFS
24598255a313Smrg
24608255a313Smrgfi
24618255a313Smrg
2462de7ed6e8Smrg  test -d ./--version && rmdir ./--version
24638255a313Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
24648255a313Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
24658255a313Smrg  else
24668255a313Smrg    # As a last resort, use the slow shell script.  Don't cache a
24678255a313Smrg    # value for MKDIR_P within a source directory, because that will
24688255a313Smrg    # break other packages using the cache if that directory is
24698255a313Smrg    # removed, or if the value is a relative name.
24708255a313Smrg    MKDIR_P="$ac_install_sh -d"
24718255a313Smrg  fi
24728255a313Smrgfi
2473de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
24748255a313Smrg$as_echo "$MKDIR_P" >&6; }
24758255a313Smrg
24768255a313Smrgfor ac_prog in gawk mawk nawk awk
24778255a313Smrgdo
24788255a313Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
24798255a313Smrgset dummy $ac_prog; ac_word=$2
2480de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24818255a313Smrg$as_echo_n "checking for $ac_word... " >&6; }
2482de7ed6e8Smrgif ${ac_cv_prog_AWK+:} false; then :
24838255a313Smrg  $as_echo_n "(cached) " >&6
24848255a313Smrgelse
24858255a313Smrg  if test -n "$AWK"; then
24868255a313Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
24878255a313Smrgelse
24888255a313Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24898255a313Smrgfor as_dir in $PATH
24908255a313Smrgdo
24918255a313Smrg  IFS=$as_save_IFS
24928255a313Smrg  test -z "$as_dir" && as_dir=.
2493de7ed6e8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
249401395c31Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24958255a313Smrg    ac_cv_prog_AWK="$ac_prog"
2496de7ed6e8Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24978255a313Smrg    break 2
24988255a313Smrg  fi
24998255a313Smrgdone
2500de7ed6e8Smrg  done
25018255a313SmrgIFS=$as_save_IFS
25028255a313Smrg
25038255a313Smrgfi
25048255a313Smrgfi
25058255a313SmrgAWK=$ac_cv_prog_AWK
25068255a313Smrgif test -n "$AWK"; then
2507de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25088255a313Smrg$as_echo "$AWK" >&6; }
25098255a313Smrgelse
2510de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25118255a313Smrg$as_echo "no" >&6; }
25128255a313Smrgfi
25138255a313Smrg
25148255a313Smrg
25158255a313Smrg  test -n "$AWK" && break
25168255a313Smrgdone
25178255a313Smrg
2518de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
25198255a313Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
25208255a313Smrgset x ${MAKE-make}
25218255a313Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2522de7ed6e8Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
25238255a313Smrg  $as_echo_n "(cached) " >&6
252492bb16f8Smrgelse
252592bb16f8Smrg  cat >conftest.make <<\_ACEOF
252692bb16f8SmrgSHELL = /bin/sh
252792bb16f8Smrgall:
252892bb16f8Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
252992bb16f8Smrg_ACEOF
2530de7ed6e8Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
253192bb16f8Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
253292bb16f8Smrg  *@@@%%%=?*=@@@%%%*)
253392bb16f8Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
253492bb16f8Smrg  *)
253592bb16f8Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
253692bb16f8Smrgesac
253792bb16f8Smrgrm -f conftest.make
253892bb16f8Smrgfi
253992bb16f8Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2540de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25418255a313Smrg$as_echo "yes" >&6; }
254292bb16f8Smrg  SET_MAKE=
254392bb16f8Smrgelse
2544de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25458255a313Smrg$as_echo "no" >&6; }
254692bb16f8Smrg  SET_MAKE="MAKE=${MAKE-make}"
254792bb16f8Smrgfi
254892bb16f8Smrg
254992bb16f8Smrgrm -rf .tst 2>/dev/null
255092bb16f8Smrgmkdir .tst 2>/dev/null
255192bb16f8Smrgif test -d .tst; then
255292bb16f8Smrg  am__leading_dot=.
255392bb16f8Smrgelse
255492bb16f8Smrg  am__leading_dot=_
255592bb16f8Smrgfi
255692bb16f8Smrgrmdir .tst 2>/dev/null
255792bb16f8Smrg
255801395c31Smrg# Check whether --enable-silent-rules was given.
255901395c31Smrgif test "${enable_silent_rules+set}" = set; then :
256001395c31Smrg  enableval=$enable_silent_rules;
256101395c31Smrgfi
256201395c31Smrg
256301395c31Smrgcase $enable_silent_rules in # (((
256401395c31Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
256501395c31Smrg   no) AM_DEFAULT_VERBOSITY=1;;
256601395c31Smrg    *) AM_DEFAULT_VERBOSITY=1;;
256701395c31Smrgesac
256801395c31Smrgam_make=${MAKE-make}
256901395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
257001395c31Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
257101395c31Smrgif ${am_cv_make_support_nested_variables+:} false; then :
257201395c31Smrg  $as_echo_n "(cached) " >&6
257301395c31Smrgelse
257401395c31Smrg  if $as_echo 'TRUE=$(BAR$(V))
257501395c31SmrgBAR0=false
257601395c31SmrgBAR1=true
257701395c31SmrgV=1
257801395c31Smrgam__doit:
257901395c31Smrg	@$(TRUE)
258001395c31Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
258101395c31Smrg  am_cv_make_support_nested_variables=yes
258201395c31Smrgelse
258301395c31Smrg  am_cv_make_support_nested_variables=no
258401395c31Smrgfi
258501395c31Smrgfi
258601395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
258701395c31Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
258801395c31Smrgif test $am_cv_make_support_nested_variables = yes; then
258901395c31Smrg    AM_V='$(V)'
259001395c31Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
259101395c31Smrgelse
259201395c31Smrg  AM_V=$AM_DEFAULT_VERBOSITY
259301395c31Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
259401395c31Smrgfi
259501395c31SmrgAM_BACKSLASH='\'
259601395c31Smrg
25978255a313Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
25988255a313Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
25998255a313Smrg  # is not polluted with repeated "-I."
26008255a313Smrg  am__isrc=' -I$(srcdir)'
26018255a313Smrg  # test to see if srcdir already configured
26028255a313Smrg  if test -f $srcdir/config.status; then
2603de7ed6e8Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
26048255a313Smrg  fi
260592bb16f8Smrgfi
260692bb16f8Smrg
260792bb16f8Smrg# test whether we have cygpath
260892bb16f8Smrgif test -z "$CYGPATH_W"; then
260992bb16f8Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
261092bb16f8Smrg    CYGPATH_W='cygpath -w'
261192bb16f8Smrg  else
261292bb16f8Smrg    CYGPATH_W=echo
261392bb16f8Smrg  fi
261492bb16f8Smrgfi
261592bb16f8Smrg
261692bb16f8Smrg
261792bb16f8Smrg# Define the identity of the package.
261892bb16f8Smrg PACKAGE='encodings'
261901395c31Smrg VERSION='1.0.5'
262092bb16f8Smrg
262192bb16f8Smrg
262292bb16f8Smrgcat >>confdefs.h <<_ACEOF
262392bb16f8Smrg#define PACKAGE "$PACKAGE"
262492bb16f8Smrg_ACEOF
262592bb16f8Smrg
262692bb16f8Smrg
262792bb16f8Smrgcat >>confdefs.h <<_ACEOF
262892bb16f8Smrg#define VERSION "$VERSION"
262992bb16f8Smrg_ACEOF
263092bb16f8Smrg
263192bb16f8Smrg# Some tools Automake needs.
263292bb16f8Smrg
263392bb16f8SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
263492bb16f8Smrg
263592bb16f8Smrg
263692bb16f8SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
263792bb16f8Smrg
263892bb16f8Smrg
263992bb16f8SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
264092bb16f8Smrg
264192bb16f8Smrg
264292bb16f8SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
264392bb16f8Smrg
264492bb16f8Smrg
264592bb16f8SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
264692bb16f8Smrg
264701395c31Smrg# For better backward compatibility.  To be removed once Automake 1.9.x
264801395c31Smrg# dies out for good.  For more background, see:
264901395c31Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
265001395c31Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
265101395c31Smrgmkdir_p='$(MKDIR_P)'
265292bb16f8Smrg
265301395c31Smrg# We need awk for the "check" target (and possibly the TAP driver).  The
265401395c31Smrg# system "awk" is bad on some platforms.
265501395c31Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
265601395c31Smrg# in the wild :-(  We should find a proper way to deprecate it ...
265701395c31SmrgAMTAR='$${TAR-tar}'
26588255a313Smrg
26598255a313Smrg
266001395c31Smrg# We'll loop over all known methods to create a tar archive until one works.
266101395c31Smrg_am_tools='gnutar  pax cpio none'
26628255a313Smrg
266301395c31Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
26648255a313Smrg
26658255a313Smrg
26668255a313Smrg
26678255a313Smrg
2668de7ed6e8Smrg
2669de7ed6e8Smrg
267001395c31Smrg# POSIX will say in a future version that running "rm -f" with no argument
267101395c31Smrg# is OK; and we want to be able to make that assumption in our Makefile
267201395c31Smrg# recipes.  So use an aggressive probe to check that the usage we want is
267301395c31Smrg# actually supported "in the wild" to an acceptable degree.
267401395c31Smrg# See automake bug#10828.
267501395c31Smrg# To make any issue more visible, cause the running configure to be aborted
267601395c31Smrg# by default if the 'rm' program in use doesn't match our expectations; the
267701395c31Smrg# user can still override this though.
267801395c31Smrgif rm -f && rm -fr && rm -rf; then : OK; else
267901395c31Smrg  cat >&2 <<'END'
268001395c31SmrgOops!
268101395c31Smrg
268201395c31SmrgYour 'rm' program seems unable to run without file operands specified
268301395c31Smrgon the command line, even when the '-f' option is present.  This is contrary
268401395c31Smrgto the behaviour of most rm programs out there, and not conforming with
268501395c31Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
268601395c31Smrg
268701395c31SmrgPlease tell bug-automake@gnu.org about your system, including the value
268801395c31Smrgof your $PATH and any error possibly output before this message.  This
268901395c31Smrgcan help us improve future automake versions.
269001395c31Smrg
269101395c31SmrgEND
269201395c31Smrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
269301395c31Smrg    echo 'Configuration will proceed anyway, since you have set the' >&2
269401395c31Smrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
269501395c31Smrg    echo >&2
269601395c31Smrg  else
269701395c31Smrg    cat >&2 <<'END'
269801395c31SmrgAborting the configuration process, to ensure you take notice of the issue.
269901395c31Smrg
270001395c31SmrgYou can download and install GNU coreutils to get an 'rm' implementation
270101395c31Smrgthat behaves properly: <https://www.gnu.org/software/coreutils/>.
270201395c31Smrg
270301395c31SmrgIf you want to complete the configuration process using your problematic
270401395c31Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
270501395c31Smrgto "yes", and re-run configure.
2706de7ed6e8Smrg
270701395c31SmrgEND
270801395c31Smrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
270901395c31Smrg  fi
271001395c31Smrgfi
2711de7ed6e8Smrg
2712de7ed6e8Smrg
27138255a313Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS
27148255a313Smrg
27158255a313Smrg
27168255a313Smrg
27178255a313Smrg
27188255a313Smrg
27198255a313Smrg
27208255a313Smrg
27218255a313Smrg
27228255a313Smrg
27238255a313Smrg
27248255a313Smrg
27258255a313SmrgDEPDIR="${am__leading_dot}deps"
27268255a313Smrg
27278255a313Smrgac_config_commands="$ac_config_commands depfiles"
27288255a313Smrg
272901395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
273001395c31Smrg$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
273101395c31Smrgcat > confinc.mk << 'END'
27328255a313Smrgam__doit:
273301395c31Smrg	@echo this is the am__doit target >confinc.out
27348255a313Smrg.PHONY: am__doit
27358255a313SmrgEND
27368255a313Smrgam__include="#"
27378255a313Smrgam__quote=
273801395c31Smrg# BSD make does it like this.
273901395c31Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD
274001395c31Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
274101395c31Smrgecho 'include confinc.mk # ignored' > confmf.GNU
274201395c31Smrg_am_result=no
274301395c31Smrgfor s in GNU BSD; do
274401395c31Smrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
274501395c31Smrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
274601395c31Smrg   ac_status=$?
274701395c31Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
274801395c31Smrg   (exit $ac_status); }
274901395c31Smrg  case $?:`cat confinc.out 2>/dev/null` in #(
275001395c31Smrg  '0:this is the am__doit target') :
275101395c31Smrg    case $s in #(
275201395c31Smrg  BSD) :
275301395c31Smrg    am__include='.include' am__quote='"' ;; #(
275401395c31Smrg  *) :
275501395c31Smrg    am__include='include' am__quote='' ;;
275601395c31Smrgesac ;; #(
275701395c31Smrg  *) :
27588255a313Smrg     ;;
275901395c31Smrgesac
276001395c31Smrg  if test "$am__include" != "#"; then
276101395c31Smrg    _am_result="yes ($s style)"
276201395c31Smrg    break
276301395c31Smrg  fi
276401395c31Smrgdone
276501395c31Smrgrm -f confinc.* confmf.*
276601395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
276701395c31Smrg$as_echo "${_am_result}" >&6; }
27688255a313Smrg
27698255a313Smrg# Check whether --enable-dependency-tracking was given.
2770de7ed6e8Smrgif test "${enable_dependency_tracking+set}" = set; then :
27718255a313Smrg  enableval=$enable_dependency_tracking;
27728255a313Smrgfi
27738255a313Smrg
27748255a313Smrgif test "x$enable_dependency_tracking" != xno; then
27758255a313Smrg  am_depcomp="$ac_aux_dir/depcomp"
27768255a313Smrg  AMDEPBACKSLASH='\'
277701395c31Smrg  am__nodep='_no'
27788255a313Smrgfi
27798255a313Smrg if test "x$enable_dependency_tracking" != xno; then
27808255a313Smrg  AMDEP_TRUE=
27818255a313Smrg  AMDEP_FALSE='#'
278292bb16f8Smrgelse
27838255a313Smrg  AMDEP_TRUE='#'
27848255a313Smrg  AMDEP_FALSE=
27858255a313Smrgfi
27868255a313Smrg
27878255a313Smrg
27888255a313Smrgac_ext=c
27898255a313Smrgac_cpp='$CPP $CPPFLAGS'
27908255a313Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27918255a313Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27928255a313Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
27938255a313Smrgif test -n "$ac_tool_prefix"; then
27948255a313Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
27958255a313Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2796de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27978255a313Smrg$as_echo_n "checking for $ac_word... " >&6; }
2798de7ed6e8Smrgif ${ac_cv_prog_CC+:} false; then :
27998255a313Smrg  $as_echo_n "(cached) " >&6
28008255a313Smrgelse
28018255a313Smrg  if test -n "$CC"; then
28028255a313Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
280392bb16f8Smrgelse
280492bb16f8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
280592bb16f8Smrgfor as_dir in $PATH
280692bb16f8Smrgdo
280792bb16f8Smrg  IFS=$as_save_IFS
280892bb16f8Smrg  test -z "$as_dir" && as_dir=.
2809de7ed6e8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
281001395c31Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28118255a313Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2812de7ed6e8Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
281392bb16f8Smrg    break 2
281492bb16f8Smrg  fi
281592bb16f8Smrgdone
2816de7ed6e8Smrg  done
281792bb16f8SmrgIFS=$as_save_IFS
281892bb16f8Smrg
281992bb16f8Smrgfi
282092bb16f8Smrgfi
28218255a313SmrgCC=$ac_cv_prog_CC
28228255a313Smrgif test -n "$CC"; then
2823de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28248255a313Smrg$as_echo "$CC" >&6; }
282592bb16f8Smrgelse
2826de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28278255a313Smrg$as_echo "no" >&6; }
282892bb16f8Smrgfi
282992bb16f8Smrg
283092bb16f8Smrg
283192bb16f8Smrgfi
28328255a313Smrgif test -z "$ac_cv_prog_CC"; then
28338255a313Smrg  ac_ct_CC=$CC
28348255a313Smrg  # Extract the first word of "gcc", so it can be a program name with args.
28358255a313Smrgset dummy gcc; ac_word=$2
2836de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28378255a313Smrg$as_echo_n "checking for $ac_word... " >&6; }
2838de7ed6e8Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
28398255a313Smrg  $as_echo_n "(cached) " >&6
284092bb16f8Smrgelse
28418255a313Smrg  if test -n "$ac_ct_CC"; then
28428255a313Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
284392bb16f8Smrgelse
284492bb16f8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
284592bb16f8Smrgfor as_dir in $PATH
284692bb16f8Smrgdo
284792bb16f8Smrg  IFS=$as_save_IFS
284892bb16f8Smrg  test -z "$as_dir" && as_dir=.
2849de7ed6e8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
285001395c31Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28518255a313Smrg    ac_cv_prog_ac_ct_CC="gcc"
2852de7ed6e8Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
285392bb16f8Smrg    break 2
285492bb16f8Smrg  fi
285592bb16f8Smrgdone
2856de7ed6e8Smrg  done
285792bb16f8SmrgIFS=$as_save_IFS
285892bb16f8Smrg
285992bb16f8Smrgfi
286092bb16f8Smrgfi
28618255a313Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
28628255a313Smrgif test -n "$ac_ct_CC"; then
2863de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
28648255a313Smrg$as_echo "$ac_ct_CC" >&6; }
286592bb16f8Smrgelse
2866de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28678255a313Smrg$as_echo "no" >&6; }
286892bb16f8Smrgfi
286992bb16f8Smrg
28708255a313Smrg  if test "x$ac_ct_CC" = x; then
28718255a313Smrg    CC=""
287292bb16f8Smrg  else
287392bb16f8Smrg    case $cross_compiling:$ac_tool_warned in
287492bb16f8Smrgyes:)
2875de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28768255a313Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
287792bb16f8Smrgac_tool_warned=yes ;;
287892bb16f8Smrgesac
28798255a313Smrg    CC=$ac_ct_CC
288092bb16f8Smrg  fi
288192bb16f8Smrgelse
28828255a313Smrg  CC="$ac_cv_prog_CC"
288392bb16f8Smrgfi
288492bb16f8Smrg
28858255a313Smrgif test -z "$CC"; then
28868255a313Smrg          if test -n "$ac_tool_prefix"; then
28878255a313Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
28888255a313Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2889de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28908255a313Smrg$as_echo_n "checking for $ac_word... " >&6; }
2891de7ed6e8Smrgif ${ac_cv_prog_CC+:} false; then :
28928255a313Smrg  $as_echo_n "(cached) " >&6
28938255a313Smrgelse
28948255a313Smrg  if test -n "$CC"; then
28958255a313Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
28968255a313Smrgelse
28978255a313Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28988255a313Smrgfor as_dir in $PATH
28998255a313Smrgdo
29008255a313Smrg  IFS=$as_save_IFS
29018255a313Smrg  test -z "$as_dir" && as_dir=.
2902de7ed6e8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
290301395c31Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29048255a313Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2905de7ed6e8Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29068255a313Smrg    break 2
29078255a313Smrg  fi
29088255a313Smrgdone
2909de7ed6e8Smrg  done
29108255a313SmrgIFS=$as_save_IFS
29118255a313Smrg
29128255a313Smrgfi
29138255a313Smrgfi
29148255a313SmrgCC=$ac_cv_prog_CC
29158255a313Smrgif test -n "$CC"; then
2916de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29178255a313Smrg$as_echo "$CC" >&6; }
29188255a313Smrgelse
2919de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29208255a313Smrg$as_echo "no" >&6; }
292192bb16f8Smrgfi
292292bb16f8Smrg
292392bb16f8Smrg
29248255a313Smrg  fi
29258255a313Smrgfi
29268255a313Smrgif test -z "$CC"; then
29278255a313Smrg  # Extract the first word of "cc", so it can be a program name with args.
29288255a313Smrgset dummy cc; ac_word=$2
2929de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29308255a313Smrg$as_echo_n "checking for $ac_word... " >&6; }
2931de7ed6e8Smrgif ${ac_cv_prog_CC+:} false; then :
29328255a313Smrg  $as_echo_n "(cached) " >&6
29338255a313Smrgelse
29348255a313Smrg  if test -n "$CC"; then
29358255a313Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
29368255a313Smrgelse
29378255a313Smrg  ac_prog_rejected=no
29388255a313Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29398255a313Smrgfor as_dir in $PATH
29408255a313Smrgdo
29418255a313Smrg  IFS=$as_save_IFS
29428255a313Smrg  test -z "$as_dir" && as_dir=.
2943de7ed6e8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
294401395c31Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29458255a313Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
29468255a313Smrg       ac_prog_rejected=yes
29478255a313Smrg       continue
29488255a313Smrg     fi
29498255a313Smrg    ac_cv_prog_CC="cc"
2950de7ed6e8Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29518255a313Smrg    break 2
29528255a313Smrg  fi
29538255a313Smrgdone
2954de7ed6e8Smrg  done
29558255a313SmrgIFS=$as_save_IFS
29568255a313Smrg
29578255a313Smrgif test $ac_prog_rejected = yes; then
29588255a313Smrg  # We found a bogon in the path, so make sure we never use it.
29598255a313Smrg  set dummy $ac_cv_prog_CC
29608255a313Smrg  shift
29618255a313Smrg  if test $# != 0; then
29628255a313Smrg    # We chose a different compiler from the bogus one.
29638255a313Smrg    # However, it has the same basename, so the bogon will be chosen
29648255a313Smrg    # first if we set CC to just the basename; use the full file name.
29658255a313Smrg    shift
29668255a313Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
29678255a313Smrg  fi
29688255a313Smrgfi
29698255a313Smrgfi
29708255a313Smrgfi
29718255a313SmrgCC=$ac_cv_prog_CC
29728255a313Smrgif test -n "$CC"; then
2973de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29748255a313Smrg$as_echo "$CC" >&6; }
29758255a313Smrgelse
2976de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29778255a313Smrg$as_echo "no" >&6; }
29788255a313Smrgfi
29798255a313Smrg
29808255a313Smrg
29818255a313Smrgfi
29828255a313Smrgif test -z "$CC"; then
29838255a313Smrg  if test -n "$ac_tool_prefix"; then
29848255a313Smrg  for ac_prog in cl.exe
29858255a313Smrg  do
29868255a313Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29878255a313Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2988de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29898255a313Smrg$as_echo_n "checking for $ac_word... " >&6; }
2990de7ed6e8Smrgif ${ac_cv_prog_CC+:} false; then :
29918255a313Smrg  $as_echo_n "(cached) " >&6
29928255a313Smrgelse
29938255a313Smrg  if test -n "$CC"; then
29948255a313Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
29958255a313Smrgelse
29968255a313Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29978255a313Smrgfor as_dir in $PATH
29988255a313Smrgdo
29998255a313Smrg  IFS=$as_save_IFS
30008255a313Smrg  test -z "$as_dir" && as_dir=.
3001de7ed6e8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
300201395c31Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30038255a313Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3004de7ed6e8Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30058255a313Smrg    break 2
30068255a313Smrg  fi
30078255a313Smrgdone
3008de7ed6e8Smrg  done
30098255a313SmrgIFS=$as_save_IFS
30108255a313Smrg
30118255a313Smrgfi
30128255a313Smrgfi
30138255a313SmrgCC=$ac_cv_prog_CC
30148255a313Smrgif test -n "$CC"; then
3015de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
30168255a313Smrg$as_echo "$CC" >&6; }
30178255a313Smrgelse
3018de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30198255a313Smrg$as_echo "no" >&6; }
30208255a313Smrgfi
30218255a313Smrg
30228255a313Smrg
30238255a313Smrg    test -n "$CC" && break
30248255a313Smrg  done
30258255a313Smrgfi
30268255a313Smrgif test -z "$CC"; then
30278255a313Smrg  ac_ct_CC=$CC
30288255a313Smrg  for ac_prog in cl.exe
30298255a313Smrgdo
30308255a313Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
30318255a313Smrgset dummy $ac_prog; ac_word=$2
3032de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30338255a313Smrg$as_echo_n "checking for $ac_word... " >&6; }
3034de7ed6e8Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
30358255a313Smrg  $as_echo_n "(cached) " >&6
30368255a313Smrgelse
30378255a313Smrg  if test -n "$ac_ct_CC"; then
30388255a313Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30398255a313Smrgelse
30408255a313Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30418255a313Smrgfor as_dir in $PATH
30428255a313Smrgdo
30438255a313Smrg  IFS=$as_save_IFS
30448255a313Smrg  test -z "$as_dir" && as_dir=.
3045de7ed6e8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
304601395c31Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30478255a313Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3048de7ed6e8Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30498255a313Smrg    break 2
30508255a313Smrg  fi
30518255a313Smrgdone
3052de7ed6e8Smrg  done
30538255a313SmrgIFS=$as_save_IFS
30548255a313Smrg
30558255a313Smrgfi
30568255a313Smrgfi
30578255a313Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
30588255a313Smrgif test -n "$ac_ct_CC"; then
3059de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
30608255a313Smrg$as_echo "$ac_ct_CC" >&6; }
30618255a313Smrgelse
3062de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30638255a313Smrg$as_echo "no" >&6; }
30648255a313Smrgfi
30658255a313Smrg
30668255a313Smrg
30678255a313Smrg  test -n "$ac_ct_CC" && break
30688255a313Smrgdone
30698255a313Smrg
30708255a313Smrg  if test "x$ac_ct_CC" = x; then
30718255a313Smrg    CC=""
30728255a313Smrg  else
30738255a313Smrg    case $cross_compiling:$ac_tool_warned in
30748255a313Smrgyes:)
3075de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30768255a313Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30778255a313Smrgac_tool_warned=yes ;;
30788255a313Smrgesac
30798255a313Smrg    CC=$ac_ct_CC
30808255a313Smrg  fi
30818255a313Smrgfi
30828255a313Smrg
30838255a313Smrgfi
30848255a313Smrg
30858255a313Smrg
3086de7ed6e8Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30878255a313Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088de7ed6e8Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
3089de7ed6e8SmrgSee \`config.log' for more details" "$LINENO" 5; }
30908255a313Smrg
30918255a313Smrg# Provide some information about the compiler.
3092de7ed6e8Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
30938255a313Smrgset X $ac_compile
30948255a313Smrgac_compiler=$2
3095de7ed6e8Smrgfor ac_option in --version -v -V -qversion; do
3096de7ed6e8Smrg  { { ac_try="$ac_compiler $ac_option >&5"
30978255a313Smrgcase "(($ac_try" in
30988255a313Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30998255a313Smrg  *) ac_try_echo=$ac_try;;
31008255a313Smrgesac
3101de7ed6e8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102de7ed6e8Smrg$as_echo "$ac_try_echo"; } >&5
3103de7ed6e8Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
31048255a313Smrg  ac_status=$?
3105de7ed6e8Smrg  if test -s conftest.err; then
3106de7ed6e8Smrg    sed '10a\
3107de7ed6e8Smrg... rest of stderr output deleted ...
3108de7ed6e8Smrg         10q' conftest.err >conftest.er1
3109de7ed6e8Smrg    cat conftest.er1 >&5
3110de7ed6e8Smrg  fi
3111de7ed6e8Smrg  rm -f conftest.er1 conftest.err
3112de7ed6e8Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113de7ed6e8Smrg  test $ac_status = 0; }
3114de7ed6e8Smrgdone
31158255a313Smrg
3116de7ed6e8Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
31178255a313Smrg/* end confdefs.h.  */
31188255a313Smrg
31198255a313Smrgint
31208255a313Smrgmain ()
31218255a313Smrg{
31228255a313Smrg
31238255a313Smrg  ;
31248255a313Smrg  return 0;
31258255a313Smrg}
31268255a313Smrg_ACEOF
31278255a313Smrgac_clean_files_save=$ac_clean_files
31288255a313Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
31298255a313Smrg# Try to create an executable without -o first, disregard a.out.
31308255a313Smrg# It will help us diagnose broken compilers, and finding out an intuition
31318255a313Smrg# of exeext.
3132de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3133de7ed6e8Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
31348255a313Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
31358255a313Smrg
31368255a313Smrg# The possible output files:
31378255a313Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
31388255a313Smrg
31398255a313Smrgac_rmfiles=
31408255a313Smrgfor ac_file in $ac_files
31418255a313Smrgdo
31428255a313Smrg  case $ac_file in
31438255a313Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
31448255a313Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
31458255a313Smrg  esac
31468255a313Smrgdone
31478255a313Smrgrm -f $ac_rmfiles
31488255a313Smrg
3149de7ed6e8Smrgif { { ac_try="$ac_link_default"
31508255a313Smrgcase "(($ac_try" in
31518255a313Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528255a313Smrg  *) ac_try_echo=$ac_try;;
31538255a313Smrgesac
3154de7ed6e8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155de7ed6e8Smrg$as_echo "$ac_try_echo"; } >&5
31568255a313Smrg  (eval "$ac_link_default") 2>&5
31578255a313Smrg  ac_status=$?
3158de7ed6e8Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159de7ed6e8Smrg  test $ac_status = 0; }; then :
31608255a313Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
31618255a313Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
31628255a313Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
31638255a313Smrg# so that the user can short-circuit this test for compilers unknown to
31648255a313Smrg# Autoconf.
31658255a313Smrgfor ac_file in $ac_files ''
31668255a313Smrgdo
31678255a313Smrg  test -f "$ac_file" || continue
31688255a313Smrg  case $ac_file in
31698255a313Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
31708255a313Smrg	;;
31718255a313Smrg    [ab].out )
31728255a313Smrg	# We found the default executable, but exeext='' is most
31738255a313Smrg	# certainly right.
31748255a313Smrg	break;;
31758255a313Smrg    *.* )
3176de7ed6e8Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
31778255a313Smrg	then :; else
31788255a313Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31798255a313Smrg	fi
31808255a313Smrg	# We set ac_cv_exeext here because the later test for it is not
31818255a313Smrg	# safe: cross compilers may not add the suffix if given an `-o'
31828255a313Smrg	# argument, so we may need to know it at that point already.
31838255a313Smrg	# Even if this section looks crufty: it has the advantage of
31848255a313Smrg	# actually working.
31858255a313Smrg	break;;
31868255a313Smrg    * )
31878255a313Smrg	break;;
31888255a313Smrg  esac
31898255a313Smrgdone
31908255a313Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
31918255a313Smrg
31928255a313Smrgelse
31938255a313Smrg  ac_file=''
31948255a313Smrgfi
3195de7ed6e8Smrgif test -z "$ac_file"; then :
3196de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197de7ed6e8Smrg$as_echo "no" >&6; }
3198de7ed6e8Smrg$as_echo "$as_me: failed program was:" >&5
31998255a313Smrgsed 's/^/| /' conftest.$ac_ext >&5
32008255a313Smrg
3201de7ed6e8Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32028255a313Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203de7ed6e8Smrgas_fn_error 77 "C compiler cannot create executables
3204de7ed6e8SmrgSee \`config.log' for more details" "$LINENO" 5; }
3205de7ed6e8Smrgelse
3206de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207de7ed6e8Smrg$as_echo "yes" >&6; }
32088255a313Smrgfi
3209de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3210de7ed6e8Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3211de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3212de7ed6e8Smrg$as_echo "$ac_file" >&6; }
32138255a313Smrgac_exeext=$ac_cv_exeext
32148255a313Smrg
32158255a313Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
32168255a313Smrgac_clean_files=$ac_clean_files_save
3217de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
32188255a313Smrg$as_echo_n "checking for suffix of executables... " >&6; }
3219de7ed6e8Smrgif { { ac_try="$ac_link"
32208255a313Smrgcase "(($ac_try" in
32218255a313Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228255a313Smrg  *) ac_try_echo=$ac_try;;
32238255a313Smrgesac
3224de7ed6e8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225de7ed6e8Smrg$as_echo "$ac_try_echo"; } >&5
32268255a313Smrg  (eval "$ac_link") 2>&5
32278255a313Smrg  ac_status=$?
3228de7ed6e8Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229de7ed6e8Smrg  test $ac_status = 0; }; then :
32308255a313Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
32318255a313Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
32328255a313Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
32338255a313Smrg# `rm'.
32348255a313Smrgfor ac_file in conftest.exe conftest conftest.*; do
32358255a313Smrg  test -f "$ac_file" || continue
32368255a313Smrg  case $ac_file in
32378255a313Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
32388255a313Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
32398255a313Smrg	  break;;
32408255a313Smrg    * ) break;;
32418255a313Smrg  esac
32428255a313Smrgdone
32438255a313Smrgelse
3244de7ed6e8Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32458255a313Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246de7ed6e8Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3247de7ed6e8SmrgSee \`config.log' for more details" "$LINENO" 5; }
32488255a313Smrgfi
3249de7ed6e8Smrgrm -f conftest conftest$ac_cv_exeext
3250de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
32518255a313Smrg$as_echo "$ac_cv_exeext" >&6; }
32528255a313Smrg
32538255a313Smrgrm -f conftest.$ac_ext
32548255a313SmrgEXEEXT=$ac_cv_exeext
32558255a313Smrgac_exeext=$EXEEXT
3256de7ed6e8Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
32578255a313Smrg/* end confdefs.h.  */
3258de7ed6e8Smrg#include <stdio.h>
32598255a313Smrgint
32608255a313Smrgmain ()
32618255a313Smrg{
3262de7ed6e8SmrgFILE *f = fopen ("conftest.out", "w");
3263de7ed6e8Smrg return ferror (f) || fclose (f) != 0;
32648255a313Smrg
32658255a313Smrg  ;
32668255a313Smrg  return 0;
32678255a313Smrg}
32688255a313Smrg_ACEOF
3269de7ed6e8Smrgac_clean_files="$ac_clean_files conftest.out"
3270de7ed6e8Smrg# Check that the compiler produces executables we can run.  If not, either
3271de7ed6e8Smrg# the compiler is broken, or we cross compile.
3272de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3273de7ed6e8Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3274de7ed6e8Smrgif test "$cross_compiling" != yes; then
3275de7ed6e8Smrg  { { ac_try="$ac_link"
32768255a313Smrgcase "(($ac_try" in
32778255a313Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32788255a313Smrg  *) ac_try_echo=$ac_try;;
32798255a313Smrgesac
3280de7ed6e8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281de7ed6e8Smrg$as_echo "$ac_try_echo"; } >&5
3282de7ed6e8Smrg  (eval "$ac_link") 2>&5
32838255a313Smrg  ac_status=$?
3284de7ed6e8Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285de7ed6e8Smrg  test $ac_status = 0; }
3286de7ed6e8Smrg  if { ac_try='./conftest$ac_cv_exeext'
3287de7ed6e8Smrg  { { case "(($ac_try" in
3288de7ed6e8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289de7ed6e8Smrg  *) ac_try_echo=$ac_try;;
3290de7ed6e8Smrgesac
3291de7ed6e8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292de7ed6e8Smrg$as_echo "$ac_try_echo"; } >&5
3293de7ed6e8Smrg  (eval "$ac_try") 2>&5
3294de7ed6e8Smrg  ac_status=$?
3295de7ed6e8Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296de7ed6e8Smrg  test $ac_status = 0; }; }; then
3297de7ed6e8Smrg    cross_compiling=no
3298de7ed6e8Smrg  else
3299de7ed6e8Smrg    if test "$cross_compiling" = maybe; then
3300de7ed6e8Smrg	cross_compiling=yes
3301de7ed6e8Smrg    else
3302de7ed6e8Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303de7ed6e8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304de7ed6e8Smrgas_fn_error $? "cannot run C compiled programs.
3305de7ed6e8SmrgIf you meant to cross compile, use \`--host'.
3306de7ed6e8SmrgSee \`config.log' for more details" "$LINENO" 5; }
3307de7ed6e8Smrg    fi
3308de7ed6e8Smrg  fi
3309de7ed6e8Smrgfi
3310de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3311de7ed6e8Smrg$as_echo "$cross_compiling" >&6; }
3312de7ed6e8Smrg
3313de7ed6e8Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3314de7ed6e8Smrgac_clean_files=$ac_clean_files_save
3315de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3316de7ed6e8Smrg$as_echo_n "checking for suffix of object files... " >&6; }
3317de7ed6e8Smrgif ${ac_cv_objext+:} false; then :
3318de7ed6e8Smrg  $as_echo_n "(cached) " >&6
3319de7ed6e8Smrgelse
3320de7ed6e8Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321de7ed6e8Smrg/* end confdefs.h.  */
3322de7ed6e8Smrg
3323de7ed6e8Smrgint
3324de7ed6e8Smrgmain ()
3325de7ed6e8Smrg{
3326de7ed6e8Smrg
3327de7ed6e8Smrg  ;
3328de7ed6e8Smrg  return 0;
3329de7ed6e8Smrg}
3330de7ed6e8Smrg_ACEOF
3331de7ed6e8Smrgrm -f conftest.o conftest.obj
3332de7ed6e8Smrgif { { ac_try="$ac_compile"
3333de7ed6e8Smrgcase "(($ac_try" in
3334de7ed6e8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335de7ed6e8Smrg  *) ac_try_echo=$ac_try;;
3336de7ed6e8Smrgesac
3337de7ed6e8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338de7ed6e8Smrg$as_echo "$ac_try_echo"; } >&5
3339de7ed6e8Smrg  (eval "$ac_compile") 2>&5
3340de7ed6e8Smrg  ac_status=$?
3341de7ed6e8Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342de7ed6e8Smrg  test $ac_status = 0; }; then :
3343de7ed6e8Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3344de7ed6e8Smrg  test -f "$ac_file" || continue;
3345de7ed6e8Smrg  case $ac_file in
33468255a313Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
33478255a313Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
33488255a313Smrg       break;;
33498255a313Smrg  esac
33508255a313Smrgdone
33518255a313Smrgelse
33528255a313Smrg  $as_echo "$as_me: failed program was:" >&5
33538255a313Smrgsed 's/^/| /' conftest.$ac_ext >&5
33548255a313Smrg
3355de7ed6e8Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33568255a313Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357de7ed6e8Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3358de7ed6e8SmrgSee \`config.log' for more details" "$LINENO" 5; }
33598255a313Smrgfi
33608255a313Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
33618255a313Smrgfi
3362de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
33638255a313Smrg$as_echo "$ac_cv_objext" >&6; }
33648255a313SmrgOBJEXT=$ac_cv_objext
33658255a313Smrgac_objext=$OBJEXT
3366de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
33678255a313Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3368de7ed6e8Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
33698255a313Smrg  $as_echo_n "(cached) " >&6
33708255a313Smrgelse
3371de7ed6e8Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33728255a313Smrg/* end confdefs.h.  */
33738255a313Smrg
33748255a313Smrgint
33758255a313Smrgmain ()
33768255a313Smrg{
33778255a313Smrg#ifndef __GNUC__
33788255a313Smrg       choke me
33798255a313Smrg#endif
33808255a313Smrg
33818255a313Smrg  ;
33828255a313Smrg  return 0;
33838255a313Smrg}
33848255a313Smrg_ACEOF
3385de7ed6e8Smrgif ac_fn_c_try_compile "$LINENO"; then :
33868255a313Smrg  ac_compiler_gnu=yes
33878255a313Smrgelse
3388de7ed6e8Smrg  ac_compiler_gnu=no
33898255a313Smrgfi
33908255a313Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33918255a313Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
33928255a313Smrg
33938255a313Smrgfi
3394de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
33958255a313Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
33968255a313Smrgif test $ac_compiler_gnu = yes; then
33978255a313Smrg  GCC=yes
33988255a313Smrgelse
33998255a313Smrg  GCC=
34008255a313Smrgfi
34018255a313Smrgac_test_CFLAGS=${CFLAGS+set}
34028255a313Smrgac_save_CFLAGS=$CFLAGS
3403de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
34048255a313Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3405de7ed6e8Smrgif ${ac_cv_prog_cc_g+:} false; then :
34068255a313Smrg  $as_echo_n "(cached) " >&6
34078255a313Smrgelse
34088255a313Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
34098255a313Smrg   ac_c_werror_flag=yes
34108255a313Smrg   ac_cv_prog_cc_g=no
34118255a313Smrg   CFLAGS="-g"
3412de7ed6e8Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34138255a313Smrg/* end confdefs.h.  */
34148255a313Smrg
34158255a313Smrgint
34168255a313Smrgmain ()
34178255a313Smrg{
34188255a313Smrg
34198255a313Smrg  ;
34208255a313Smrg  return 0;
34218255a313Smrg}
34228255a313Smrg_ACEOF
3423de7ed6e8Smrgif ac_fn_c_try_compile "$LINENO"; then :
34248255a313Smrg  ac_cv_prog_cc_g=yes
34258255a313Smrgelse
3426de7ed6e8Smrg  CFLAGS=""
3427de7ed6e8Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34288255a313Smrg/* end confdefs.h.  */
34298255a313Smrg
34308255a313Smrgint
34318255a313Smrgmain ()
34328255a313Smrg{
34338255a313Smrg
34348255a313Smrg  ;
34358255a313Smrg  return 0;
34368255a313Smrg}
34378255a313Smrg_ACEOF
3438de7ed6e8Smrgif ac_fn_c_try_compile "$LINENO"; then :
34398255a313Smrg
3440de7ed6e8Smrgelse
3441de7ed6e8Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
34428255a313Smrg	 CFLAGS="-g"
3443de7ed6e8Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34448255a313Smrg/* end confdefs.h.  */
34458255a313Smrg
34468255a313Smrgint
34478255a313Smrgmain ()
34488255a313Smrg{
34498255a313Smrg
34508255a313Smrg  ;
34518255a313Smrg  return 0;
34528255a313Smrg}
34538255a313Smrg_ACEOF
3454de7ed6e8Smrgif ac_fn_c_try_compile "$LINENO"; then :
34558255a313Smrg  ac_cv_prog_cc_g=yes
34568255a313Smrgfi
34578255a313Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34588255a313Smrgfi
34598255a313Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34608255a313Smrgfi
34618255a313Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34628255a313Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
34638255a313Smrgfi
3464de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
34658255a313Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
34668255a313Smrgif test "$ac_test_CFLAGS" = set; then
34678255a313Smrg  CFLAGS=$ac_save_CFLAGS
34688255a313Smrgelif test $ac_cv_prog_cc_g = yes; then
34698255a313Smrg  if test "$GCC" = yes; then
34708255a313Smrg    CFLAGS="-g -O2"
34718255a313Smrg  else
34728255a313Smrg    CFLAGS="-g"
34738255a313Smrg  fi
34748255a313Smrgelse
34758255a313Smrg  if test "$GCC" = yes; then
34768255a313Smrg    CFLAGS="-O2"
34778255a313Smrg  else
34788255a313Smrg    CFLAGS=
34798255a313Smrg  fi
34808255a313Smrgfi
3481de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
34828255a313Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3483de7ed6e8Smrgif ${ac_cv_prog_cc_c89+:} false; then :
34848255a313Smrg  $as_echo_n "(cached) " >&6
34858255a313Smrgelse
34868255a313Smrg  ac_cv_prog_cc_c89=no
34878255a313Smrgac_save_CC=$CC
3488de7ed6e8Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
34898255a313Smrg/* end confdefs.h.  */
34908255a313Smrg#include <stdarg.h>
34918255a313Smrg#include <stdio.h>
349201395c31Smrgstruct stat;
34938255a313Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
34948255a313Smrgstruct buf { int x; };
34958255a313SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
34968255a313Smrgstatic char *e (p, i)
34978255a313Smrg     char **p;
34988255a313Smrg     int i;
34998255a313Smrg{
35008255a313Smrg  return p[i];
35018255a313Smrg}
35028255a313Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
35038255a313Smrg{
35048255a313Smrg  char *s;
35058255a313Smrg  va_list v;
35068255a313Smrg  va_start (v,p);
35078255a313Smrg  s = g (p, va_arg (v,int));
35088255a313Smrg  va_end (v);
35098255a313Smrg  return s;
35108255a313Smrg}
35118255a313Smrg
35128255a313Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
35138255a313Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
35148255a313Smrg   These don't provoke an error unfortunately, instead are silently treated
35158255a313Smrg   as 'x'.  The following induces an error, until -std is added to get
35168255a313Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
35178255a313Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
35188255a313Smrg   that's true only with -std.  */
35198255a313Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
35208255a313Smrg
35218255a313Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
35228255a313Smrg   inside strings and character constants.  */
35238255a313Smrg#define FOO(x) 'x'
35248255a313Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
35258255a313Smrg
35268255a313Smrgint test (int i, double x);
35278255a313Smrgstruct s1 {int (*f) (int a);};
35288255a313Smrgstruct s2 {int (*f) (double a);};
35298255a313Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
35308255a313Smrgint argc;
35318255a313Smrgchar **argv;
35328255a313Smrgint
35338255a313Smrgmain ()
35348255a313Smrg{
35358255a313Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
35368255a313Smrg  ;
35378255a313Smrg  return 0;
35388255a313Smrg}
35398255a313Smrg_ACEOF
35408255a313Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
35418255a313Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
35428255a313Smrgdo
35438255a313Smrg  CC="$ac_save_CC $ac_arg"
3544de7ed6e8Smrg  if ac_fn_c_try_compile "$LINENO"; then :
35458255a313Smrg  ac_cv_prog_cc_c89=$ac_arg
35468255a313Smrgfi
35478255a313Smrgrm -f core conftest.err conftest.$ac_objext
35488255a313Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
35498255a313Smrgdone
35508255a313Smrgrm -f conftest.$ac_ext
35518255a313SmrgCC=$ac_save_CC
35528255a313Smrg
35538255a313Smrgfi
35548255a313Smrg# AC_CACHE_VAL
35558255a313Smrgcase "x$ac_cv_prog_cc_c89" in
35568255a313Smrg  x)
3557de7ed6e8Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
35588255a313Smrg$as_echo "none needed" >&6; } ;;
35598255a313Smrg  xno)
3560de7ed6e8Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
35618255a313Smrg$as_echo "unsupported" >&6; } ;;
35628255a313Smrg  *)
35638255a313Smrg    CC="$CC $ac_cv_prog_cc_c89"
3564de7ed6e8Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
35658255a313Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
35668255a313Smrgesac
3567de7ed6e8Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
35688255a313Smrg
3569de7ed6e8Smrgfi
35708255a313Smrg
35718255a313Smrgac_ext=c
35728255a313Smrgac_cpp='$CPP $CPPFLAGS'
35738255a313Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35748255a313Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35758255a313Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
35768255a313Smrg
357701395c31Smrgac_ext=c
357801395c31Smrgac_cpp='$CPP $CPPFLAGS'
357901395c31Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
358001395c31Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
358101395c31Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
358201395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
358301395c31Smrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
358401395c31Smrgif ${am_cv_prog_cc_c_o+:} false; then :
358501395c31Smrg  $as_echo_n "(cached) " >&6
358601395c31Smrgelse
358701395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
358801395c31Smrg/* end confdefs.h.  */
358901395c31Smrg
359001395c31Smrgint
359101395c31Smrgmain ()
359201395c31Smrg{
359301395c31Smrg
359401395c31Smrg  ;
359501395c31Smrg  return 0;
359601395c31Smrg}
359701395c31Smrg_ACEOF
359801395c31Smrg  # Make sure it works both with $CC and with simple cc.
359901395c31Smrg  # Following AC_PROG_CC_C_O, we do the test twice because some
360001395c31Smrg  # compilers refuse to overwrite an existing .o file with -o,
360101395c31Smrg  # though they will create one.
360201395c31Smrg  am_cv_prog_cc_c_o=yes
360301395c31Smrg  for am_i in 1 2; do
360401395c31Smrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
360501395c31Smrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
360601395c31Smrg   ac_status=$?
360701395c31Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
360801395c31Smrg   (exit $ac_status); } \
360901395c31Smrg         && test -f conftest2.$ac_objext; then
361001395c31Smrg      : OK
361101395c31Smrg    else
361201395c31Smrg      am_cv_prog_cc_c_o=no
361301395c31Smrg      break
361401395c31Smrg    fi
361501395c31Smrg  done
361601395c31Smrg  rm -f core conftest*
361701395c31Smrg  unset am_i
361801395c31Smrgfi
361901395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
362001395c31Smrg$as_echo "$am_cv_prog_cc_c_o" >&6; }
362101395c31Smrgif test "$am_cv_prog_cc_c_o" != yes; then
362201395c31Smrg   # Losing compiler, so override with the script.
362301395c31Smrg   # FIXME: It is wrong to rewrite CC.
362401395c31Smrg   # But if we don't then we get into trouble of one sort or another.
362501395c31Smrg   # A longer-term fix would be to have automake use am__CC in this case,
362601395c31Smrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
362701395c31Smrg   CC="$am_aux_dir/compile $CC"
362801395c31Smrgfi
362901395c31Smrgac_ext=c
363001395c31Smrgac_cpp='$CPP $CPPFLAGS'
363101395c31Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
363201395c31Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
363301395c31Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
363401395c31Smrg
363501395c31Smrg
36368255a313Smrgdepcc="$CC"   am_compiler_list=
36378255a313Smrg
3638de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
36398255a313Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3640de7ed6e8Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
36418255a313Smrg  $as_echo_n "(cached) " >&6
36428255a313Smrgelse
36438255a313Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
36448255a313Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
36458255a313Smrg  # making bogus files that we don't know about and never remove.  For
36468255a313Smrg  # instance it was reported that on HP-UX the gcc test will end up
364701395c31Smrg  # making a dummy file named 'D' -- because '-MD' means "put the output
364801395c31Smrg  # in D".
364901395c31Smrg  rm -rf conftest.dir
36508255a313Smrg  mkdir conftest.dir
36518255a313Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
36528255a313Smrg  # using a relative directory.
36538255a313Smrg  cp "$am_depcomp" conftest.dir
36548255a313Smrg  cd conftest.dir
36558255a313Smrg  # We will build objects and dependencies in a subdirectory because
36568255a313Smrg  # it helps to detect inapplicable dependency modes.  For instance
36578255a313Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
36588255a313Smrg  # side effect of compilation, but ICC will put the dependencies in
36598255a313Smrg  # the current directory while Tru64 will put them in the object
36608255a313Smrg  # directory.
36618255a313Smrg  mkdir sub
36628255a313Smrg
36638255a313Smrg  am_cv_CC_dependencies_compiler_type=none
36648255a313Smrg  if test "$am_compiler_list" = ""; then
36658255a313Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
36668255a313Smrg  fi
36678255a313Smrg  am__universal=false
36688255a313Smrg  case " $depcc " in #(
36698255a313Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
36708255a313Smrg     esac
36718255a313Smrg
36728255a313Smrg  for depmode in $am_compiler_list; do
36738255a313Smrg    # Setup a source with many dependencies, because some compilers
36748255a313Smrg    # like to wrap large dependency lists on column 80 (with \), and
36758255a313Smrg    # we should not choose a depcomp mode which is confused by this.
36768255a313Smrg    #
36778255a313Smrg    # We need to recreate these files for each test, as the compiler may
36788255a313Smrg    # overwrite some of them when testing with obscure command lines.
36798255a313Smrg    # This happens at least with the AIX C compiler.
36808255a313Smrg    : > sub/conftest.c
36818255a313Smrg    for i in 1 2 3 4 5 6; do
36828255a313Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
368301395c31Smrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
368401395c31Smrg      # Solaris 10 /bin/sh.
368501395c31Smrg      echo '/* dummy */' > sub/conftst$i.h
36868255a313Smrg    done
36878255a313Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
36888255a313Smrg
368901395c31Smrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
36908255a313Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
369101395c31Smrg    # handle '-M -o', and we need to detect this.  Also, some Intel
369201395c31Smrg    # versions had trouble with output in subdirs.
36938255a313Smrg    am__obj=sub/conftest.${OBJEXT-o}
36948255a313Smrg    am__minus_obj="-o $am__obj"
36958255a313Smrg    case $depmode in
36968255a313Smrg    gcc)
36978255a313Smrg      # This depmode causes a compiler race in universal mode.
36988255a313Smrg      test "$am__universal" = false || continue
36998255a313Smrg      ;;
37008255a313Smrg    nosideeffect)
370101395c31Smrg      # After this tag, mechanisms are not by side-effect, so they'll
370201395c31Smrg      # only be used when explicitly requested.
37038255a313Smrg      if test "x$enable_dependency_tracking" = xyes; then
37048255a313Smrg	continue
37058255a313Smrg      else
37068255a313Smrg	break
37078255a313Smrg      fi
37088255a313Smrg      ;;
370901395c31Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
371001395c31Smrg      # This compiler won't grok '-c -o', but also, the minuso test has
37118255a313Smrg      # not run yet.  These depmodes are late enough in the game, and
37128255a313Smrg      # so weak that their functioning should not be impacted.
37138255a313Smrg      am__obj=conftest.${OBJEXT-o}
37148255a313Smrg      am__minus_obj=
37158255a313Smrg      ;;
37168255a313Smrg    none) break ;;
37178255a313Smrg    esac
37188255a313Smrg    if depmode=$depmode \
37198255a313Smrg       source=sub/conftest.c object=$am__obj \
37208255a313Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
37218255a313Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
37228255a313Smrg         >/dev/null 2>conftest.err &&
37238255a313Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
37248255a313Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
37258255a313Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
37268255a313Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
37278255a313Smrg      # icc doesn't choke on unknown options, it will just issue warnings
37288255a313Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
37298255a313Smrg      # that says an option was ignored or not supported.
37308255a313Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
37318255a313Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
37328255a313Smrg      # The diagnosis changed in icc 8.0:
37338255a313Smrg      #   icc: Command line remark: option '-MP' not supported
37348255a313Smrg      if (grep 'ignoring option' conftest.err ||
37358255a313Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
37368255a313Smrg        am_cv_CC_dependencies_compiler_type=$depmode
37378255a313Smrg        break
37388255a313Smrg      fi
37398255a313Smrg    fi
37408255a313Smrg  done
37418255a313Smrg
37428255a313Smrg  cd ..
37438255a313Smrg  rm -rf conftest.dir
37448255a313Smrgelse
37458255a313Smrg  am_cv_CC_dependencies_compiler_type=none
37468255a313Smrgfi
37478255a313Smrg
37488255a313Smrgfi
3749de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
37508255a313Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
37518255a313SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
37528255a313Smrg
37538255a313Smrg if
37548255a313Smrg  test "x$enable_dependency_tracking" != xno \
37558255a313Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
37568255a313Smrg  am__fastdepCC_TRUE=
37578255a313Smrg  am__fastdepCC_FALSE='#'
37588255a313Smrgelse
37598255a313Smrg  am__fastdepCC_TRUE='#'
37608255a313Smrg  am__fastdepCC_FALSE=
37618255a313Smrgfi
37628255a313Smrg
37638255a313Smrg
3764de7ed6e8Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3765de7ed6e8Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3766de7ed6e8Smrgif ${ac_cv_prog_cc_c99+:} false; then :
37678255a313Smrg  $as_echo_n "(cached) " >&6
37688255a313Smrgelse
3769de7ed6e8Smrg  ac_cv_prog_cc_c99=no
3770de7ed6e8Smrgac_save_CC=$CC
3771de7ed6e8Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
37728255a313Smrg/* end confdefs.h.  */
3773de7ed6e8Smrg#include <stdarg.h>
3774de7ed6e8Smrg#include <stdbool.h>
3775de7ed6e8Smrg#include <stdlib.h>
3776de7ed6e8Smrg#include <wchar.h>
3777de7ed6e8Smrg#include <stdio.h>
3778de7ed6e8Smrg
3779de7ed6e8Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3780de7ed6e8Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
3781de7ed6e8Smrg#define showlist(...) puts (#__VA_ARGS__)
3782de7ed6e8Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3783de7ed6e8Smrgstatic void
3784de7ed6e8Smrgtest_varargs_macros (void)
3785de7ed6e8Smrg{
3786de7ed6e8Smrg  int x = 1234;
3787de7ed6e8Smrg  int y = 5678;
3788de7ed6e8Smrg  debug ("Flag");
3789de7ed6e8Smrg  debug ("X = %d\n", x);
3790de7ed6e8Smrg  showlist (The first, second, and third items.);
3791de7ed6e8Smrg  report (x>y, "x is %d but y is %d", x, y);
3792de7ed6e8Smrg}
3793de7ed6e8Smrg
3794de7ed6e8Smrg// Check long long types.
3795de7ed6e8Smrg#define BIG64 18446744073709551615ull
3796de7ed6e8Smrg#define BIG32 4294967295ul
3797de7ed6e8Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3798de7ed6e8Smrg#if !BIG_OK
3799de7ed6e8Smrg  your preprocessor is broken;
3800de7ed6e8Smrg#endif
3801de7ed6e8Smrg#if BIG_OK
38028255a313Smrg#else
3803de7ed6e8Smrg  your preprocessor is broken;
38048255a313Smrg#endif
3805de7ed6e8Smrgstatic long long int bignum = -9223372036854775807LL;
3806de7ed6e8Smrgstatic unsigned long long int ubignum = BIG64;
38078255a313Smrg
3808de7ed6e8Smrgstruct incomplete_array
3809de7ed6e8Smrg{
3810de7ed6e8Smrg  int datasize;
3811de7ed6e8Smrg  double data[];
3812de7ed6e8Smrg};
38138255a313Smrg
3814de7ed6e8Smrgstruct named_init {
3815de7ed6e8Smrg  int number;
3816de7ed6e8Smrg  const wchar_t *name;
3817de7ed6e8Smrg  double average;
3818de7ed6e8Smrg};
38198255a313Smrg
3820de7ed6e8Smrgtypedef const char *ccp;
38218255a313Smrg
3822de7ed6e8Smrgstatic inline int
3823de7ed6e8Smrgtest_restrict (ccp restrict text)
3824de7ed6e8Smrg{
3825de7ed6e8Smrg  // See if C++-style comments work.
3826de7ed6e8Smrg  // Iterate through items via the restricted pointer.
3827de7ed6e8Smrg  // Also check for declarations in for loops.
3828de7ed6e8Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3829de7ed6e8Smrg    continue;
3830de7ed6e8Smrg  return 0;
3831de7ed6e8Smrg}
38328255a313Smrg
3833de7ed6e8Smrg// Check varargs and va_copy.
3834de7ed6e8Smrgstatic void
3835de7ed6e8Smrgtest_varargs (const char *format, ...)
3836de7ed6e8Smrg{
3837de7ed6e8Smrg  va_list args;
3838de7ed6e8Smrg  va_start (args, format);
3839de7ed6e8Smrg  va_list args_copy;
3840de7ed6e8Smrg  va_copy (args_copy, args);
38418255a313Smrg
3842de7ed6e8Smrg  const char *str;
3843de7ed6e8Smrg  int number;
3844de7ed6e8Smrg  float fnumber;
38458255a313Smrg
3846de7ed6e8Smrg  while (*format)
3847de7ed6e8Smrg    {
3848de7ed6e8Smrg      switch (*format++)
3849de7ed6e8Smrg	{
3850de7ed6e8Smrg	case 's': // string
3851de7ed6e8Smrg	  str = va_arg (args_copy, const char *);
3852de7ed6e8Smrg	  break;
3853de7ed6e8Smrg	case 'd': // int
3854de7ed6e8Smrg	  number = va_arg (args_copy, int);
3855de7ed6e8Smrg	  break;
3856de7ed6e8Smrg	case 'f': // float
3857de7ed6e8Smrg	  fnumber = va_arg (args_copy, double);
3858de7ed6e8Smrg	  break;
3859de7ed6e8Smrg	default:
3860de7ed6e8Smrg	  break;
3861de7ed6e8Smrg	}
3862de7ed6e8Smrg    }
3863de7ed6e8Smrg  va_end (args_copy);
3864de7ed6e8Smrg  va_end (args);
3865de7ed6e8Smrg}
3866de7ed6e8Smrg
3867de7ed6e8Smrgint
3868de7ed6e8Smrgmain ()
3869de7ed6e8Smrg{
3870de7ed6e8Smrg
3871de7ed6e8Smrg  // Check bool.
3872de7ed6e8Smrg  _Bool success = false;
3873de7ed6e8Smrg
3874de7ed6e8Smrg  // Check restrict.
3875de7ed6e8Smrg  if (test_restrict ("String literal") == 0)
3876de7ed6e8Smrg    success = true;
3877de7ed6e8Smrg  char *restrict newvar = "Another string";
3878de7ed6e8Smrg
3879de7ed6e8Smrg  // Check varargs.
3880de7ed6e8Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
3881de7ed6e8Smrg  test_varargs_macros ();
3882de7ed6e8Smrg
3883de7ed6e8Smrg  // Check flexible array members.
3884de7ed6e8Smrg  struct incomplete_array *ia =
3885de7ed6e8Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3886de7ed6e8Smrg  ia->datasize = 10;
3887de7ed6e8Smrg  for (int i = 0; i < ia->datasize; ++i)
3888de7ed6e8Smrg    ia->data[i] = i * 1.234;
3889de7ed6e8Smrg
3890de7ed6e8Smrg  // Check named initializers.
3891de7ed6e8Smrg  struct named_init ni = {
3892de7ed6e8Smrg    .number = 34,
3893de7ed6e8Smrg    .name = L"Test wide string",
3894de7ed6e8Smrg    .average = 543.34343,
3895de7ed6e8Smrg  };
3896de7ed6e8Smrg
3897de7ed6e8Smrg  ni.number = 58;
3898de7ed6e8Smrg
3899de7ed6e8Smrg  int dynamic_array[ni.number];
3900de7ed6e8Smrg  dynamic_array[ni.number - 1] = 543;
3901de7ed6e8Smrg
3902de7ed6e8Smrg  // work around unused variable warnings
3903de7ed6e8Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3904de7ed6e8Smrg	  || dynamic_array[ni.number - 1] != 543);
3905de7ed6e8Smrg
3906de7ed6e8Smrg  ;
3907de7ed6e8Smrg  return 0;
3908de7ed6e8Smrg}
3909de7ed6e8Smrg_ACEOF
391001395c31Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3911de7ed6e8Smrgdo
3912de7ed6e8Smrg  CC="$ac_save_CC $ac_arg"
3913de7ed6e8Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3914de7ed6e8Smrg  ac_cv_prog_cc_c99=$ac_arg
3915de7ed6e8Smrgfi
3916de7ed6e8Smrgrm -f core conftest.err conftest.$ac_objext
3917de7ed6e8Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3918de7ed6e8Smrgdone
3919de7ed6e8Smrgrm -f conftest.$ac_ext
3920de7ed6e8SmrgCC=$ac_save_CC
3921de7ed6e8Smrg
3922de7ed6e8Smrgfi
3923de7ed6e8Smrg# AC_CACHE_VAL
3924de7ed6e8Smrgcase "x$ac_cv_prog_cc_c99" in
3925de7ed6e8Smrg  x)
3926de7ed6e8Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3927de7ed6e8Smrg$as_echo "none needed" >&6; } ;;
3928de7ed6e8Smrg  xno)
3929de7ed6e8Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3930de7ed6e8Smrg$as_echo "unsupported" >&6; } ;;
3931de7ed6e8Smrg  *)
3932de7ed6e8Smrg    CC="$CC $ac_cv_prog_cc_c99"
3933de7ed6e8Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3934de7ed6e8Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3935de7ed6e8Smrgesac
3936de7ed6e8Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
3937de7ed6e8Smrg
3938de7ed6e8Smrgfi
3939de7ed6e8Smrg
3940de7ed6e8Smrg
3941de7ed6e8Smrg
3942de7ed6e8Smrgac_ext=c
3943de7ed6e8Smrgac_cpp='$CPP $CPPFLAGS'
3944de7ed6e8Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945de7ed6e8Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946de7ed6e8Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3947de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3948de7ed6e8Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3949de7ed6e8Smrg# On Suns, sometimes $CPP names a directory.
3950de7ed6e8Smrgif test -n "$CPP" && test -d "$CPP"; then
3951de7ed6e8Smrg  CPP=
3952de7ed6e8Smrgfi
3953de7ed6e8Smrgif test -z "$CPP"; then
3954de7ed6e8Smrg  if ${ac_cv_prog_CPP+:} false; then :
3955de7ed6e8Smrg  $as_echo_n "(cached) " >&6
3956de7ed6e8Smrgelse
3957de7ed6e8Smrg      # Double quotes because CPP needs to be expanded
3958de7ed6e8Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3959de7ed6e8Smrg    do
3960de7ed6e8Smrg      ac_preproc_ok=false
39618255a313Smrgfor ac_c_preproc_warn_flag in '' yes
39628255a313Smrgdo
39638255a313Smrg  # Use a header file that comes with gcc, so configuring glibc
39648255a313Smrg  # with a fresh cross-compiler works.
39658255a313Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39668255a313Smrg  # <limits.h> exists even on freestanding compilers.
39678255a313Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
39688255a313Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3969de7ed6e8Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39708255a313Smrg/* end confdefs.h.  */
39718255a313Smrg#ifdef __STDC__
39728255a313Smrg# include <limits.h>
39738255a313Smrg#else
39748255a313Smrg# include <assert.h>
39758255a313Smrg#endif
39768255a313Smrg		     Syntax error
39778255a313Smrg_ACEOF
3978de7ed6e8Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39798255a313Smrg
3980de7ed6e8Smrgelse
39818255a313Smrg  # Broken: fails on valid input.
39828255a313Smrgcontinue
39838255a313Smrgfi
3984de7ed6e8Smrgrm -f conftest.err conftest.i conftest.$ac_ext
39858255a313Smrg
39868255a313Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
39878255a313Smrg  # can be detected and how.
3988de7ed6e8Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39898255a313Smrg/* end confdefs.h.  */
39908255a313Smrg#include <ac_nonexistent.h>
39918255a313Smrg_ACEOF
3992de7ed6e8Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39938255a313Smrg  # Broken: success on invalid input.
39948255a313Smrgcontinue
39958255a313Smrgelse
39968255a313Smrg  # Passes both tests.
39978255a313Smrgac_preproc_ok=:
39988255a313Smrgbreak
39998255a313Smrgfi
4000de7ed6e8Smrgrm -f conftest.err conftest.i conftest.$ac_ext
4001de7ed6e8Smrg
4002de7ed6e8Smrgdone
4003de7ed6e8Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4004de7ed6e8Smrgrm -f conftest.i conftest.err conftest.$ac_ext
4005de7ed6e8Smrgif $ac_preproc_ok; then :
4006de7ed6e8Smrg  break
4007de7ed6e8Smrgfi
4008de7ed6e8Smrg
4009de7ed6e8Smrg    done
4010de7ed6e8Smrg    ac_cv_prog_CPP=$CPP
4011de7ed6e8Smrg
4012de7ed6e8Smrgfi
4013de7ed6e8Smrg  CPP=$ac_cv_prog_CPP
4014de7ed6e8Smrgelse
4015de7ed6e8Smrg  ac_cv_prog_CPP=$CPP
4016de7ed6e8Smrgfi
4017de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4018de7ed6e8Smrg$as_echo "$CPP" >&6; }
4019de7ed6e8Smrgac_preproc_ok=false
4020de7ed6e8Smrgfor ac_c_preproc_warn_flag in '' yes
4021de7ed6e8Smrgdo
4022de7ed6e8Smrg  # Use a header file that comes with gcc, so configuring glibc
4023de7ed6e8Smrg  # with a fresh cross-compiler works.
4024de7ed6e8Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4025de7ed6e8Smrg  # <limits.h> exists even on freestanding compilers.
4026de7ed6e8Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
4027de7ed6e8Smrg  # not just through cpp. "Syntax error" is here to catch this case.
4028de7ed6e8Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029de7ed6e8Smrg/* end confdefs.h.  */
4030de7ed6e8Smrg#ifdef __STDC__
4031de7ed6e8Smrg# include <limits.h>
4032de7ed6e8Smrg#else
4033de7ed6e8Smrg# include <assert.h>
4034de7ed6e8Smrg#endif
4035de7ed6e8Smrg		     Syntax error
4036de7ed6e8Smrg_ACEOF
4037de7ed6e8Smrgif ac_fn_c_try_cpp "$LINENO"; then :
4038de7ed6e8Smrg
4039de7ed6e8Smrgelse
4040de7ed6e8Smrg  # Broken: fails on valid input.
4041de7ed6e8Smrgcontinue
4042de7ed6e8Smrgfi
4043de7ed6e8Smrgrm -f conftest.err conftest.i conftest.$ac_ext
40448255a313Smrg
4045de7ed6e8Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
4046de7ed6e8Smrg  # can be detected and how.
4047de7ed6e8Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048de7ed6e8Smrg/* end confdefs.h.  */
4049de7ed6e8Smrg#include <ac_nonexistent.h>
4050de7ed6e8Smrg_ACEOF
4051de7ed6e8Smrgif ac_fn_c_try_cpp "$LINENO"; then :
4052de7ed6e8Smrg  # Broken: success on invalid input.
4053de7ed6e8Smrgcontinue
4054de7ed6e8Smrgelse
4055de7ed6e8Smrg  # Passes both tests.
4056de7ed6e8Smrgac_preproc_ok=:
4057de7ed6e8Smrgbreak
4058de7ed6e8Smrgfi
4059de7ed6e8Smrgrm -f conftest.err conftest.i conftest.$ac_ext
40608255a313Smrg
40618255a313Smrgdone
40628255a313Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4063de7ed6e8Smrgrm -f conftest.i conftest.err conftest.$ac_ext
4064de7ed6e8Smrgif $ac_preproc_ok; then :
4065de7ed6e8Smrg
40668255a313Smrgelse
4067de7ed6e8Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40688255a313Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4069de7ed6e8Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4070de7ed6e8SmrgSee \`config.log' for more details" "$LINENO" 5; }
40718255a313Smrgfi
40728255a313Smrg
40738255a313Smrgac_ext=c
40748255a313Smrgac_cpp='$CPP $CPPFLAGS'
40758255a313Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40768255a313Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40778255a313Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
40788255a313Smrg
40798255a313Smrg
4080de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
40818255a313Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4082de7ed6e8Smrgif ${ac_cv_path_GREP+:} false; then :
40838255a313Smrg  $as_echo_n "(cached) " >&6
40848255a313Smrgelse
40858255a313Smrg  if test -z "$GREP"; then
40868255a313Smrg  ac_path_GREP_found=false
40878255a313Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
40888255a313Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40898255a313Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
40908255a313Smrgdo
40918255a313Smrg  IFS=$as_save_IFS
40928255a313Smrg  test -z "$as_dir" && as_dir=.
4093de7ed6e8Smrg    for ac_prog in grep ggrep; do
40948255a313Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
40958255a313Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
409601395c31Smrg      as_fn_executable_p "$ac_path_GREP" || continue
40978255a313Smrg# Check for GNU ac_path_GREP and select it if it is found.
40988255a313Smrg  # Check for GNU $ac_path_GREP
40998255a313Smrgcase `"$ac_path_GREP" --version 2>&1` in
41008255a313Smrg*GNU*)
41018255a313Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
41028255a313Smrg*)
41038255a313Smrg  ac_count=0
41048255a313Smrg  $as_echo_n 0123456789 >"conftest.in"
41058255a313Smrg  while :
41068255a313Smrg  do
41078255a313Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
41088255a313Smrg    mv "conftest.tmp" "conftest.in"
41098255a313Smrg    cp "conftest.in" "conftest.nl"
41108255a313Smrg    $as_echo 'GREP' >> "conftest.nl"
41118255a313Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
41128255a313Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113de7ed6e8Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
41148255a313Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
41158255a313Smrg      # Best one so far, save it but keep looking for a better one
41168255a313Smrg      ac_cv_path_GREP="$ac_path_GREP"
41178255a313Smrg      ac_path_GREP_max=$ac_count
41188255a313Smrg    fi
41198255a313Smrg    # 10*(2^10) chars as input seems more than enough
41208255a313Smrg    test $ac_count -gt 10 && break
41218255a313Smrg  done
41228255a313Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
41238255a313Smrgesac
41248255a313Smrg
41258255a313Smrg      $ac_path_GREP_found && break 3
41268255a313Smrg    done
41278255a313Smrg  done
4128de7ed6e8Smrg  done
41298255a313SmrgIFS=$as_save_IFS
41308255a313Smrg  if test -z "$ac_cv_path_GREP"; then
4131de7ed6e8Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
41328255a313Smrg  fi
41338255a313Smrgelse
41348255a313Smrg  ac_cv_path_GREP=$GREP
41358255a313Smrgfi
41368255a313Smrg
41378255a313Smrgfi
4138de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
41398255a313Smrg$as_echo "$ac_cv_path_GREP" >&6; }
41408255a313Smrg GREP="$ac_cv_path_GREP"
41418255a313Smrg
41428255a313Smrg
4143de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
41448255a313Smrg$as_echo_n "checking for egrep... " >&6; }
4145de7ed6e8Smrgif ${ac_cv_path_EGREP+:} false; then :
41468255a313Smrg  $as_echo_n "(cached) " >&6
41478255a313Smrgelse
41488255a313Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
41498255a313Smrg   then ac_cv_path_EGREP="$GREP -E"
41508255a313Smrg   else
41518255a313Smrg     if test -z "$EGREP"; then
41528255a313Smrg  ac_path_EGREP_found=false
41538255a313Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
41548255a313Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41558255a313Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
41568255a313Smrgdo
41578255a313Smrg  IFS=$as_save_IFS
41588255a313Smrg  test -z "$as_dir" && as_dir=.
4159de7ed6e8Smrg    for ac_prog in egrep; do
41608255a313Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
41618255a313Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
416201395c31Smrg      as_fn_executable_p "$ac_path_EGREP" || continue
41638255a313Smrg# Check for GNU ac_path_EGREP and select it if it is found.
41648255a313Smrg  # Check for GNU $ac_path_EGREP
41658255a313Smrgcase `"$ac_path_EGREP" --version 2>&1` in
41668255a313Smrg*GNU*)
41678255a313Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
41688255a313Smrg*)
41698255a313Smrg  ac_count=0
41708255a313Smrg  $as_echo_n 0123456789 >"conftest.in"
41718255a313Smrg  while :
41728255a313Smrg  do
41738255a313Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
41748255a313Smrg    mv "conftest.tmp" "conftest.in"
41758255a313Smrg    cp "conftest.in" "conftest.nl"
41768255a313Smrg    $as_echo 'EGREP' >> "conftest.nl"
41778255a313Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
41788255a313Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4179de7ed6e8Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
41808255a313Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
41818255a313Smrg      # Best one so far, save it but keep looking for a better one
41828255a313Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
41838255a313Smrg      ac_path_EGREP_max=$ac_count
41848255a313Smrg    fi
41858255a313Smrg    # 10*(2^10) chars as input seems more than enough
41868255a313Smrg    test $ac_count -gt 10 && break
41878255a313Smrg  done
41888255a313Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
41898255a313Smrgesac
41908255a313Smrg
41918255a313Smrg      $ac_path_EGREP_found && break 3
41928255a313Smrg    done
41938255a313Smrg  done
4194de7ed6e8Smrg  done
41958255a313SmrgIFS=$as_save_IFS
41968255a313Smrg  if test -z "$ac_cv_path_EGREP"; then
4197de7ed6e8Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
41988255a313Smrg  fi
41998255a313Smrgelse
42008255a313Smrg  ac_cv_path_EGREP=$EGREP
42018255a313Smrgfi
42028255a313Smrg
42038255a313Smrg   fi
42048255a313Smrgfi
4205de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
42068255a313Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
42078255a313Smrg EGREP="$ac_cv_path_EGREP"
42088255a313Smrg
42098255a313Smrg
4210de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
42118255a313Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
4212de7ed6e8Smrgif ${ac_cv_header_stdc+:} false; then :
42138255a313Smrg  $as_echo_n "(cached) " >&6
42148255a313Smrgelse
4215de7ed6e8Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42168255a313Smrg/* end confdefs.h.  */
42178255a313Smrg#include <stdlib.h>
42188255a313Smrg#include <stdarg.h>
42198255a313Smrg#include <string.h>
42208255a313Smrg#include <float.h>
42218255a313Smrg
42228255a313Smrgint
42238255a313Smrgmain ()
42248255a313Smrg{
42258255a313Smrg
42268255a313Smrg  ;
42278255a313Smrg  return 0;
42288255a313Smrg}
42298255a313Smrg_ACEOF
4230de7ed6e8Smrgif ac_fn_c_try_compile "$LINENO"; then :
42318255a313Smrg  ac_cv_header_stdc=yes
42328255a313Smrgelse
4233de7ed6e8Smrg  ac_cv_header_stdc=no
42348255a313Smrgfi
42358255a313Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42368255a313Smrg
42378255a313Smrgif test $ac_cv_header_stdc = yes; then
42388255a313Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4239de7ed6e8Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42408255a313Smrg/* end confdefs.h.  */
42418255a313Smrg#include <string.h>
42428255a313Smrg
42438255a313Smrg_ACEOF
42448255a313Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4245de7ed6e8Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
4246de7ed6e8Smrg
42478255a313Smrgelse
42488255a313Smrg  ac_cv_header_stdc=no
42498255a313Smrgfi
42508255a313Smrgrm -f conftest*
42518255a313Smrg
42528255a313Smrgfi
42538255a313Smrg
42548255a313Smrgif test $ac_cv_header_stdc = yes; then
42558255a313Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4256de7ed6e8Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42578255a313Smrg/* end confdefs.h.  */
42588255a313Smrg#include <stdlib.h>
42598255a313Smrg
42608255a313Smrg_ACEOF
42618255a313Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4262de7ed6e8Smrg  $EGREP "free" >/dev/null 2>&1; then :
4263de7ed6e8Smrg
42648255a313Smrgelse
42658255a313Smrg  ac_cv_header_stdc=no
42668255a313Smrgfi
42678255a313Smrgrm -f conftest*
42688255a313Smrg
42698255a313Smrgfi
42708255a313Smrg
42718255a313Smrgif test $ac_cv_header_stdc = yes; then
42728255a313Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4273de7ed6e8Smrg  if test "$cross_compiling" = yes; then :
42748255a313Smrg  :
42758255a313Smrgelse
4276de7ed6e8Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42778255a313Smrg/* end confdefs.h.  */
42788255a313Smrg#include <ctype.h>
42798255a313Smrg#include <stdlib.h>
42808255a313Smrg#if ((' ' & 0x0FF) == 0x020)
42818255a313Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
42828255a313Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
42838255a313Smrg#else
42848255a313Smrg# define ISLOWER(c) \
42858255a313Smrg		   (('a' <= (c) && (c) <= 'i') \
42868255a313Smrg		     || ('j' <= (c) && (c) <= 'r') \
42878255a313Smrg		     || ('s' <= (c) && (c) <= 'z'))
42888255a313Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
42898255a313Smrg#endif
42908255a313Smrg
42918255a313Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
42928255a313Smrgint
42938255a313Smrgmain ()
42948255a313Smrg{
42958255a313Smrg  int i;
42968255a313Smrg  for (i = 0; i < 256; i++)
42978255a313Smrg    if (XOR (islower (i), ISLOWER (i))
42988255a313Smrg	|| toupper (i) != TOUPPER (i))
42998255a313Smrg      return 2;
43008255a313Smrg  return 0;
43018255a313Smrg}
43028255a313Smrg_ACEOF
4303de7ed6e8Smrgif ac_fn_c_try_run "$LINENO"; then :
43048255a313Smrg
4305de7ed6e8Smrgelse
4306de7ed6e8Smrg  ac_cv_header_stdc=no
43078255a313Smrgfi
4308de7ed6e8Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4309de7ed6e8Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
43108255a313Smrgfi
43118255a313Smrg
43128255a313Smrgfi
43138255a313Smrgfi
4314de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
43158255a313Smrg$as_echo "$ac_cv_header_stdc" >&6; }
43168255a313Smrgif test $ac_cv_header_stdc = yes; then
43178255a313Smrg
4318de7ed6e8Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
43198255a313Smrg
43208255a313Smrgfi
43218255a313Smrg
43228255a313Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4323de7ed6e8Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4324de7ed6e8Smrg		  inttypes.h stdint.h unistd.h
4325de7ed6e8Smrgdo :
4326de7ed6e8Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4327de7ed6e8Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4328de7ed6e8Smrg"
4329de7ed6e8Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4330de7ed6e8Smrg  cat >>confdefs.h <<_ACEOF
4331de7ed6e8Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4332de7ed6e8Smrg_ACEOF
43338255a313Smrg
4334de7ed6e8Smrgfi
43358255a313Smrg
4336de7ed6e8Smrgdone
43378255a313Smrg
43388255a313Smrg
43398255a313Smrg
43408255a313Smrg
434101395c31Smrg
434201395c31Smrg
434301395c31Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
434401395c31Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
434501395c31Smrg  CLANGCC="yes"
434601395c31Smrgelse
434701395c31Smrg  CLANGCC="no"
434801395c31Smrgfi
434901395c31Smrg
435001395c31Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
435101395c31Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
435201395c31Smrg  INTELCC="yes"
435301395c31Smrgelse
435401395c31Smrg  INTELCC="no"
435501395c31Smrgfi
435601395c31Smrg
435701395c31Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
435801395c31Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
435901395c31Smrg  SUNCC="yes"
436001395c31Smrgelse
436101395c31Smrg  SUNCC="no"
436201395c31Smrgfi
436301395c31Smrg
436401395c31Smrg
436501395c31Smrg
436601395c31Smrg
436701395c31Smrg
436801395c31Smrg
436901395c31Smrg
437001395c31Smrg
437101395c31Smrg
4372de7ed6e8Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4373de7ed6e8Smrg	if test -n "$ac_tool_prefix"; then
4374de7ed6e8Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4375de7ed6e8Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4376de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377de7ed6e8Smrg$as_echo_n "checking for $ac_word... " >&6; }
4378de7ed6e8Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
43798255a313Smrg  $as_echo_n "(cached) " >&6
43808255a313Smrgelse
4381de7ed6e8Smrg  case $PKG_CONFIG in
4382de7ed6e8Smrg  [\\/]* | ?:[\\/]*)
4383de7ed6e8Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4384de7ed6e8Smrg  ;;
4385de7ed6e8Smrg  *)
4386de7ed6e8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387de7ed6e8Smrgfor as_dir in $PATH
4388de7ed6e8Smrgdo
4389de7ed6e8Smrg  IFS=$as_save_IFS
4390de7ed6e8Smrg  test -z "$as_dir" && as_dir=.
4391de7ed6e8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
439201395c31Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393de7ed6e8Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4394de7ed6e8Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395de7ed6e8Smrg    break 2
4396de7ed6e8Smrg  fi
4397de7ed6e8Smrgdone
4398de7ed6e8Smrg  done
4399de7ed6e8SmrgIFS=$as_save_IFS
44008255a313Smrg
4401de7ed6e8Smrg  ;;
4402de7ed6e8Smrgesac
44038255a313Smrgfi
4404de7ed6e8SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4405de7ed6e8Smrgif test -n "$PKG_CONFIG"; then
4406de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4407de7ed6e8Smrg$as_echo "$PKG_CONFIG" >&6; }
4408de7ed6e8Smrgelse
4409de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410de7ed6e8Smrg$as_echo "no" >&6; }
44118255a313Smrgfi
44128255a313Smrg
44138255a313Smrg
4414de7ed6e8Smrgfi
4415de7ed6e8Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4416de7ed6e8Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4417de7ed6e8Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4418de7ed6e8Smrgset dummy pkg-config; ac_word=$2
4419de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4420de7ed6e8Smrg$as_echo_n "checking for $ac_word... " >&6; }
4421de7ed6e8Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
44228255a313Smrg  $as_echo_n "(cached) " >&6
44238255a313Smrgelse
4424de7ed6e8Smrg  case $ac_pt_PKG_CONFIG in
4425de7ed6e8Smrg  [\\/]* | ?:[\\/]*)
4426de7ed6e8Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4427de7ed6e8Smrg  ;;
4428de7ed6e8Smrg  *)
4429de7ed6e8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430de7ed6e8Smrgfor as_dir in $PATH
44318255a313Smrgdo
4432de7ed6e8Smrg  IFS=$as_save_IFS
4433de7ed6e8Smrg  test -z "$as_dir" && as_dir=.
4434de7ed6e8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
443501395c31Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436de7ed6e8Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4437de7ed6e8Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438de7ed6e8Smrg    break 2
4439de7ed6e8Smrg  fi
4440de7ed6e8Smrgdone
4441de7ed6e8Smrg  done
4442de7ed6e8SmrgIFS=$as_save_IFS
4443de7ed6e8Smrg
4444de7ed6e8Smrg  ;;
44458255a313Smrgesac
4446de7ed6e8Smrgfi
4447de7ed6e8Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4448de7ed6e8Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4449de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4450de7ed6e8Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
44518255a313Smrgelse
4452de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453de7ed6e8Smrg$as_echo "no" >&6; }
44548255a313Smrgfi
44558255a313Smrg
4456de7ed6e8Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4457de7ed6e8Smrg    PKG_CONFIG=""
4458de7ed6e8Smrg  else
4459de7ed6e8Smrg    case $cross_compiling:$ac_tool_warned in
4460de7ed6e8Smrgyes:)
4461de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4462de7ed6e8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463de7ed6e8Smrgac_tool_warned=yes ;;
44648255a313Smrgesac
4465de7ed6e8Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4466de7ed6e8Smrg  fi
4467de7ed6e8Smrgelse
4468de7ed6e8Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4469de7ed6e8Smrgfi
44708255a313Smrg
4471de7ed6e8Smrgfi
4472de7ed6e8Smrgif test -n "$PKG_CONFIG"; then
4473de7ed6e8Smrg	_pkg_min_version=0.9.0
4474de7ed6e8Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4475de7ed6e8Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4476de7ed6e8Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4477de7ed6e8Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4478de7ed6e8Smrg$as_echo "yes" >&6; }
4479de7ed6e8Smrg	else
4480de7ed6e8Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481de7ed6e8Smrg$as_echo "no" >&6; }
4482de7ed6e8Smrg		PKG_CONFIG=""
4483de7ed6e8Smrg	fi
4484de7ed6e8Smrgfi
44858255a313Smrg# Make sure we can run config.sub.
44868255a313Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4487de7ed6e8Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
44888255a313Smrg
4489de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
44908255a313Smrg$as_echo_n "checking build system type... " >&6; }
4491de7ed6e8Smrgif ${ac_cv_build+:} false; then :
44928255a313Smrg  $as_echo_n "(cached) " >&6
44938255a313Smrgelse
44948255a313Smrg  ac_build_alias=$build_alias
44958255a313Smrgtest "x$ac_build_alias" = x &&
44968255a313Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
44978255a313Smrgtest "x$ac_build_alias" = x &&
4498de7ed6e8Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
44998255a313Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4500de7ed6e8Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
45018255a313Smrg
45028255a313Smrgfi
4503de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
45048255a313Smrg$as_echo "$ac_cv_build" >&6; }
45058255a313Smrgcase $ac_cv_build in
45068255a313Smrg*-*-*) ;;
4507de7ed6e8Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
45088255a313Smrgesac
45098255a313Smrgbuild=$ac_cv_build
45108255a313Smrgac_save_IFS=$IFS; IFS='-'
45118255a313Smrgset x $ac_cv_build
45128255a313Smrgshift
45138255a313Smrgbuild_cpu=$1
45148255a313Smrgbuild_vendor=$2
45158255a313Smrgshift; shift
45168255a313Smrg# Remember, the first character of IFS is used to create $*,
45178255a313Smrg# except with old shells:
45188255a313Smrgbuild_os=$*
45198255a313SmrgIFS=$ac_save_IFS
45208255a313Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
45218255a313Smrg
45228255a313Smrg
4523de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
45248255a313Smrg$as_echo_n "checking host system type... " >&6; }
4525de7ed6e8Smrgif ${ac_cv_host+:} false; then :
45268255a313Smrg  $as_echo_n "(cached) " >&6
45278255a313Smrgelse
45288255a313Smrg  if test "x$host_alias" = x; then
45298255a313Smrg  ac_cv_host=$ac_cv_build
45308255a313Smrgelse
45318255a313Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4532de7ed6e8Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
45338255a313Smrgfi
45348255a313Smrg
45358255a313Smrgfi
4536de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
45378255a313Smrg$as_echo "$ac_cv_host" >&6; }
45388255a313Smrgcase $ac_cv_host in
45398255a313Smrg*-*-*) ;;
4540de7ed6e8Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
45418255a313Smrgesac
45428255a313Smrghost=$ac_cv_host
45438255a313Smrgac_save_IFS=$IFS; IFS='-'
45448255a313Smrgset x $ac_cv_host
45458255a313Smrgshift
45468255a313Smrghost_cpu=$1
45478255a313Smrghost_vendor=$2
45488255a313Smrgshift; shift
45498255a313Smrg# Remember, the first character of IFS is used to create $*,
45508255a313Smrg# except with old shells:
45518255a313Smrghost_os=$*
45528255a313SmrgIFS=$ac_save_IFS
45538255a313Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
45548255a313Smrg
45558255a313Smrg
4556de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4557de7ed6e8Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4558de7ed6e8Smrgif ${ac_cv_path_SED+:} false; then :
4559de7ed6e8Smrg  $as_echo_n "(cached) " >&6
4560de7ed6e8Smrgelse
4561de7ed6e8Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4562de7ed6e8Smrg     for ac_i in 1 2 3 4 5 6 7; do
4563de7ed6e8Smrg       ac_script="$ac_script$as_nl$ac_script"
4564de7ed6e8Smrg     done
4565de7ed6e8Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4566de7ed6e8Smrg     { ac_script=; unset ac_script;}
4567de7ed6e8Smrg     if test -z "$SED"; then
4568de7ed6e8Smrg  ac_path_SED_found=false
4569de7ed6e8Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4570de7ed6e8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571de7ed6e8Smrgfor as_dir in $PATH
4572de7ed6e8Smrgdo
4573de7ed6e8Smrg  IFS=$as_save_IFS
4574de7ed6e8Smrg  test -z "$as_dir" && as_dir=.
4575de7ed6e8Smrg    for ac_prog in sed gsed; do
4576de7ed6e8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4577de7ed6e8Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
457801395c31Smrg      as_fn_executable_p "$ac_path_SED" || continue
4579de7ed6e8Smrg# Check for GNU ac_path_SED and select it if it is found.
4580de7ed6e8Smrg  # Check for GNU $ac_path_SED
4581de7ed6e8Smrgcase `"$ac_path_SED" --version 2>&1` in
4582de7ed6e8Smrg*GNU*)
4583de7ed6e8Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4584de7ed6e8Smrg*)
4585de7ed6e8Smrg  ac_count=0
4586de7ed6e8Smrg  $as_echo_n 0123456789 >"conftest.in"
4587de7ed6e8Smrg  while :
4588de7ed6e8Smrg  do
4589de7ed6e8Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4590de7ed6e8Smrg    mv "conftest.tmp" "conftest.in"
4591de7ed6e8Smrg    cp "conftest.in" "conftest.nl"
4592de7ed6e8Smrg    $as_echo '' >> "conftest.nl"
4593de7ed6e8Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4594de7ed6e8Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4595de7ed6e8Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4596de7ed6e8Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4597de7ed6e8Smrg      # Best one so far, save it but keep looking for a better one
4598de7ed6e8Smrg      ac_cv_path_SED="$ac_path_SED"
4599de7ed6e8Smrg      ac_path_SED_max=$ac_count
4600de7ed6e8Smrg    fi
4601de7ed6e8Smrg    # 10*(2^10) chars as input seems more than enough
4602de7ed6e8Smrg    test $ac_count -gt 10 && break
4603de7ed6e8Smrg  done
4604de7ed6e8Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4605de7ed6e8Smrgesac
4606de7ed6e8Smrg
4607de7ed6e8Smrg      $ac_path_SED_found && break 3
4608de7ed6e8Smrg    done
4609de7ed6e8Smrg  done
4610de7ed6e8Smrg  done
4611de7ed6e8SmrgIFS=$as_save_IFS
4612de7ed6e8Smrg  if test -z "$ac_cv_path_SED"; then
4613de7ed6e8Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4614de7ed6e8Smrg  fi
4615de7ed6e8Smrgelse
4616de7ed6e8Smrg  ac_cv_path_SED=$SED
4617de7ed6e8Smrgfi
4618de7ed6e8Smrg
4619de7ed6e8Smrgfi
4620de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4621de7ed6e8Smrg$as_echo "$ac_cv_path_SED" >&6; }
4622de7ed6e8Smrg SED="$ac_cv_path_SED"
4623de7ed6e8Smrg  rm -f conftest.sed
4624de7ed6e8Smrg
4625de7ed6e8Smrg
46268255a313Smrg
46278255a313Smrg
46288255a313Smrg
462901395c31Smrg
463001395c31Smrg# Check whether --enable-selective-werror was given.
463101395c31Smrgif test "${enable_selective_werror+set}" = set; then :
463201395c31Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4633de7ed6e8Smrgelse
463401395c31Smrg  SELECTIVE_WERROR=yes
4635de7ed6e8Smrgfi
46368255a313Smrg
463701395c31Smrg
463801395c31Smrg
463901395c31Smrg
464001395c31Smrg
464101395c31Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
464201395c31Smrgif test "x$SUNCC" = "xyes"; then
464301395c31Smrg    BASE_CFLAGS="-v"
464401395c31Smrgelse
464501395c31Smrg    BASE_CFLAGS=""
4646de7ed6e8Smrgfi
46478255a313Smrg
464801395c31Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
46498255a313Smrg
46508255a313Smrg
46518255a313Smrg
46528255a313Smrg
46538255a313Smrg
46548255a313Smrg
46558255a313Smrg
465601395c31Smrg
465701395c31Smrg
465801395c31Smrg
465901395c31Smrg
466001395c31Smrg
466101395c31Smrg
466201395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
466301395c31Smrg
466401395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
466501395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
466601395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
466701395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
466801395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
466901395c31Smrg  $as_echo_n "(cached) " >&6
46708255a313Smrgelse
467101395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
467201395c31Smrg/* end confdefs.h.  */
467301395c31Smrgint i;
467401395c31Smrg_ACEOF
467501395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
467601395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
467701395c31Smrgelse
467801395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
467901395c31Smrgfi
468001395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
468101395c31Smrgfi
468201395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
468301395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
468401395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
468501395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
46868255a313Smrgfi
46878255a313Smrg
468801395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
468901395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
469001395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
46918255a313Smrg	fi
469201395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
469301395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
469401395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
469501395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
469601395c31Smrg  $as_echo_n "(cached) " >&6
469701395c31Smrgelse
469801395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
469901395c31Smrg/* end confdefs.h.  */
470001395c31Smrgint i;
470101395c31Smrg_ACEOF
470201395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
470301395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
470401395c31Smrgelse
470501395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
470601395c31Smrgfi
470701395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
470801395c31Smrgfi
470901395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
471001395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
471101395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
471201395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
47138255a313Smrgfi
47148255a313Smrg
471501395c31Smrgfound="no"
47168255a313Smrg
471701395c31Smrg	if test $found = "no" ; then
471801395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
471901395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
472001395c31Smrg		fi
47218255a313Smrg
472201395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
472301395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
472401395c31Smrg		fi
47258255a313Smrg
472601395c31Smrg		CFLAGS="$CFLAGS -Wall"
47278255a313Smrg
472801395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
472901395c31Smrg$as_echo_n "checking if $CC supports -Wall... " >&6; }
473001395c31Smrg		cacheid=xorg_cv_cc_flag__Wall
473101395c31Smrg		if eval \${$cacheid+:} false; then :
473201395c31Smrg  $as_echo_n "(cached) " >&6
473301395c31Smrgelse
473401395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
473501395c31Smrg/* end confdefs.h.  */
473601395c31Smrgint i;
473701395c31Smrgint
473801395c31Smrgmain ()
473901395c31Smrg{
47408255a313Smrg
474101395c31Smrg  ;
474201395c31Smrg  return 0;
474301395c31Smrg}
47448255a313Smrg_ACEOF
474501395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
474601395c31Smrg  eval $cacheid=yes
474701395c31Smrgelse
474801395c31Smrg  eval $cacheid=no
474901395c31Smrgfi
475001395c31Smrgrm -f core conftest.err conftest.$ac_objext \
475101395c31Smrg    conftest$ac_exeext conftest.$ac_ext
475201395c31Smrgfi
47538255a313Smrg
475401395c31Smrg
475501395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
475601395c31Smrg
475701395c31Smrg		eval supported=\$$cacheid
475801395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
475901395c31Smrg$as_echo "$supported" >&6; }
476001395c31Smrg		if test "$supported" = "yes" ; then
476101395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
476201395c31Smrg			found="yes"
476301395c31Smrg		fi
47648255a313Smrg	fi
47658255a313Smrg
47668255a313Smrg
47678255a313Smrg
47688255a313Smrg
47698255a313Smrg
4770de7ed6e8Smrg
4771de7ed6e8Smrg
4772de7ed6e8Smrg
4773de7ed6e8Smrg
47748255a313Smrg
47758255a313Smrg
47768255a313Smrg
47778255a313Smrg
47788255a313Smrg
477901395c31Smrg
478001395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
478101395c31Smrg
478201395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
478301395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
478401395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
478501395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
478601395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
478701395c31Smrg  $as_echo_n "(cached) " >&6
478801395c31Smrgelse
478901395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
479001395c31Smrg/* end confdefs.h.  */
479101395c31Smrgint i;
479201395c31Smrg_ACEOF
479301395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
479401395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
479501395c31Smrgelse
479601395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
479701395c31Smrgfi
479801395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
479901395c31Smrgfi
480001395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
480101395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
480201395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
480301395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
480401395c31Smrgfi
480501395c31Smrg
480601395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
480701395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
480801395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
480901395c31Smrg	fi
481001395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
481101395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
481201395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
481301395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
481401395c31Smrg  $as_echo_n "(cached) " >&6
481501395c31Smrgelse
481601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
481701395c31Smrg/* end confdefs.h.  */
481801395c31Smrgint i;
481901395c31Smrg_ACEOF
482001395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
482101395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
482201395c31Smrgelse
482301395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
482401395c31Smrgfi
482501395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
482601395c31Smrgfi
482701395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
482801395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
482901395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
483001395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
483101395c31Smrgfi
483201395c31Smrg
483301395c31Smrgfound="no"
483401395c31Smrg
483501395c31Smrg	if test $found = "no" ; then
483601395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
483701395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
483801395c31Smrg		fi
483901395c31Smrg
484001395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
484101395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
484201395c31Smrg		fi
484301395c31Smrg
484401395c31Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
484501395c31Smrg
484601395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
484701395c31Smrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
484801395c31Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
484901395c31Smrg		if eval \${$cacheid+:} false; then :
485001395c31Smrg  $as_echo_n "(cached) " >&6
485101395c31Smrgelse
485201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
485301395c31Smrg/* end confdefs.h.  */
485401395c31Smrgint i;
485501395c31Smrgint
485601395c31Smrgmain ()
485701395c31Smrg{
485801395c31Smrg
485901395c31Smrg  ;
486001395c31Smrg  return 0;
486101395c31Smrg}
486201395c31Smrg_ACEOF
486301395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
486401395c31Smrg  eval $cacheid=yes
486501395c31Smrgelse
486601395c31Smrg  eval $cacheid=no
486701395c31Smrgfi
486801395c31Smrgrm -f core conftest.err conftest.$ac_objext \
486901395c31Smrg    conftest$ac_exeext conftest.$ac_ext
487001395c31Smrgfi
487101395c31Smrg
487201395c31Smrg
487301395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
487401395c31Smrg
487501395c31Smrg		eval supported=\$$cacheid
487601395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
487701395c31Smrg$as_echo "$supported" >&6; }
487801395c31Smrg		if test "$supported" = "yes" ; then
487901395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
488001395c31Smrg			found="yes"
488101395c31Smrg		fi
488201395c31Smrg	fi
488301395c31Smrg
488401395c31Smrg
488501395c31Smrg
488601395c31Smrg
488701395c31Smrg
488801395c31Smrg
488901395c31Smrg
489001395c31Smrg
489101395c31Smrg
489201395c31Smrg
489301395c31Smrg
489401395c31Smrg
489501395c31Smrg
489601395c31Smrg
489701395c31Smrg
489801395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
489901395c31Smrg
490001395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
490101395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
490201395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
490301395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
490401395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
490501395c31Smrg  $as_echo_n "(cached) " >&6
490601395c31Smrgelse
490701395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
490801395c31Smrg/* end confdefs.h.  */
490901395c31Smrgint i;
491001395c31Smrg_ACEOF
491101395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
491201395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
491301395c31Smrgelse
491401395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
491501395c31Smrgfi
491601395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
491701395c31Smrgfi
491801395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
491901395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
492001395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
492101395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
492201395c31Smrgfi
492301395c31Smrg
492401395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
492501395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
492601395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
492701395c31Smrg	fi
492801395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
492901395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
493001395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
493101395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
493201395c31Smrg  $as_echo_n "(cached) " >&6
493301395c31Smrgelse
493401395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
493501395c31Smrg/* end confdefs.h.  */
493601395c31Smrgint i;
493701395c31Smrg_ACEOF
493801395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
493901395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
494001395c31Smrgelse
494101395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
494201395c31Smrgfi
494301395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
494401395c31Smrgfi
494501395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
494601395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
494701395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
494801395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
494901395c31Smrgfi
495001395c31Smrg
495101395c31Smrgfound="no"
495201395c31Smrg
495301395c31Smrg	if test $found = "no" ; then
495401395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
495501395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
495601395c31Smrg		fi
495701395c31Smrg
495801395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
495901395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
496001395c31Smrg		fi
496101395c31Smrg
496201395c31Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
496301395c31Smrg
496401395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
496501395c31Smrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
496601395c31Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
496701395c31Smrg		if eval \${$cacheid+:} false; then :
496801395c31Smrg  $as_echo_n "(cached) " >&6
496901395c31Smrgelse
497001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
497101395c31Smrg/* end confdefs.h.  */
497201395c31Smrgint i;
497301395c31Smrgint
497401395c31Smrgmain ()
497501395c31Smrg{
497601395c31Smrg
497701395c31Smrg  ;
497801395c31Smrg  return 0;
497901395c31Smrg}
498001395c31Smrg_ACEOF
498101395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
498201395c31Smrg  eval $cacheid=yes
498301395c31Smrgelse
498401395c31Smrg  eval $cacheid=no
498501395c31Smrgfi
498601395c31Smrgrm -f core conftest.err conftest.$ac_objext \
498701395c31Smrg    conftest$ac_exeext conftest.$ac_ext
498801395c31Smrgfi
498901395c31Smrg
499001395c31Smrg
499101395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
499201395c31Smrg
499301395c31Smrg		eval supported=\$$cacheid
499401395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
499501395c31Smrg$as_echo "$supported" >&6; }
499601395c31Smrg		if test "$supported" = "yes" ; then
499701395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
499801395c31Smrg			found="yes"
499901395c31Smrg		fi
500001395c31Smrg	fi
500101395c31Smrg
500201395c31Smrg
500301395c31Smrg
500401395c31Smrg
500501395c31Smrg
500601395c31Smrg
500701395c31Smrg
500801395c31Smrg
500901395c31Smrg
501001395c31Smrg
501101395c31Smrg
501201395c31Smrg
501301395c31Smrg
501401395c31Smrg
501501395c31Smrg
501601395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
501701395c31Smrg
501801395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
501901395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
502001395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
502101395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
502201395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
502301395c31Smrg  $as_echo_n "(cached) " >&6
502401395c31Smrgelse
502501395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
502601395c31Smrg/* end confdefs.h.  */
502701395c31Smrgint i;
502801395c31Smrg_ACEOF
502901395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
503001395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
503101395c31Smrgelse
503201395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
503301395c31Smrgfi
503401395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
503501395c31Smrgfi
503601395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
503701395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
503801395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
503901395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
504001395c31Smrgfi
504101395c31Smrg
504201395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
504301395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
504401395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
504501395c31Smrg	fi
504601395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
504701395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
504801395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
504901395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
505001395c31Smrg  $as_echo_n "(cached) " >&6
505101395c31Smrgelse
505201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
505301395c31Smrg/* end confdefs.h.  */
505401395c31Smrgint i;
505501395c31Smrg_ACEOF
505601395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
505701395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
505801395c31Smrgelse
505901395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
506001395c31Smrgfi
506101395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
506201395c31Smrgfi
506301395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
506401395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
506501395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
506601395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
506701395c31Smrgfi
506801395c31Smrg
506901395c31Smrgfound="no"
507001395c31Smrg
507101395c31Smrg	if test $found = "no" ; then
507201395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
507301395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
507401395c31Smrg		fi
507501395c31Smrg
507601395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
507701395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
507801395c31Smrg		fi
507901395c31Smrg
508001395c31Smrg		CFLAGS="$CFLAGS -Wformat=2"
508101395c31Smrg
508201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
508301395c31Smrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
508401395c31Smrg		cacheid=xorg_cv_cc_flag__Wformat_2
508501395c31Smrg		if eval \${$cacheid+:} false; then :
508601395c31Smrg  $as_echo_n "(cached) " >&6
508701395c31Smrgelse
508801395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
508901395c31Smrg/* end confdefs.h.  */
509001395c31Smrgint i;
509101395c31Smrgint
509201395c31Smrgmain ()
509301395c31Smrg{
509401395c31Smrg
509501395c31Smrg  ;
509601395c31Smrg  return 0;
509701395c31Smrg}
509801395c31Smrg_ACEOF
509901395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
510001395c31Smrg  eval $cacheid=yes
510101395c31Smrgelse
510201395c31Smrg  eval $cacheid=no
510301395c31Smrgfi
510401395c31Smrgrm -f core conftest.err conftest.$ac_objext \
510501395c31Smrg    conftest$ac_exeext conftest.$ac_ext
510601395c31Smrgfi
510701395c31Smrg
510801395c31Smrg
510901395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
511001395c31Smrg
511101395c31Smrg		eval supported=\$$cacheid
511201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
511301395c31Smrg$as_echo "$supported" >&6; }
511401395c31Smrg		if test "$supported" = "yes" ; then
511501395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
511601395c31Smrg			found="yes"
511701395c31Smrg		fi
511801395c31Smrg	fi
511901395c31Smrg
512001395c31Smrg	if test $found = "no" ; then
512101395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
512201395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
512301395c31Smrg		fi
512401395c31Smrg
512501395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
512601395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
512701395c31Smrg		fi
512801395c31Smrg
512901395c31Smrg		CFLAGS="$CFLAGS -Wformat"
513001395c31Smrg
513101395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
513201395c31Smrg$as_echo_n "checking if $CC supports -Wformat... " >&6; }
513301395c31Smrg		cacheid=xorg_cv_cc_flag__Wformat
513401395c31Smrg		if eval \${$cacheid+:} false; then :
513501395c31Smrg  $as_echo_n "(cached) " >&6
513601395c31Smrgelse
513701395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
513801395c31Smrg/* end confdefs.h.  */
513901395c31Smrgint i;
514001395c31Smrgint
514101395c31Smrgmain ()
514201395c31Smrg{
514301395c31Smrg
514401395c31Smrg  ;
514501395c31Smrg  return 0;
514601395c31Smrg}
514701395c31Smrg_ACEOF
514801395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
514901395c31Smrg  eval $cacheid=yes
515001395c31Smrgelse
515101395c31Smrg  eval $cacheid=no
515201395c31Smrgfi
515301395c31Smrgrm -f core conftest.err conftest.$ac_objext \
515401395c31Smrg    conftest$ac_exeext conftest.$ac_ext
515501395c31Smrgfi
515601395c31Smrg
515701395c31Smrg
515801395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
515901395c31Smrg
516001395c31Smrg		eval supported=\$$cacheid
516101395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
516201395c31Smrg$as_echo "$supported" >&6; }
516301395c31Smrg		if test "$supported" = "yes" ; then
516401395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
516501395c31Smrg			found="yes"
516601395c31Smrg		fi
516701395c31Smrg	fi
516801395c31Smrg
516901395c31Smrg
517001395c31Smrg
517101395c31Smrg
517201395c31Smrg
517301395c31Smrg
517401395c31Smrg
517501395c31Smrg
517601395c31Smrg
517701395c31Smrg
517801395c31Smrg
517901395c31Smrg
518001395c31Smrg
518101395c31Smrg
518201395c31Smrg
518301395c31Smrg
518401395c31Smrg
518501395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
518601395c31Smrg
518701395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
518801395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
518901395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
519001395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
519101395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
519201395c31Smrg  $as_echo_n "(cached) " >&6
519301395c31Smrgelse
519401395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
519501395c31Smrg/* end confdefs.h.  */
519601395c31Smrgint i;
519701395c31Smrg_ACEOF
519801395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
519901395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
520001395c31Smrgelse
520101395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
520201395c31Smrgfi
520301395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
520401395c31Smrgfi
520501395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
520601395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
520701395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
520801395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
520901395c31Smrgfi
521001395c31Smrg
521101395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
521201395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
521301395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
521401395c31Smrg	fi
521501395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
521601395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
521701395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
521801395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
521901395c31Smrg  $as_echo_n "(cached) " >&6
522001395c31Smrgelse
522101395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
522201395c31Smrg/* end confdefs.h.  */
522301395c31Smrgint i;
522401395c31Smrg_ACEOF
522501395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
522601395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
522701395c31Smrgelse
522801395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
522901395c31Smrgfi
523001395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
523101395c31Smrgfi
523201395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
523301395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
523401395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
523501395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
523601395c31Smrgfi
523701395c31Smrg
523801395c31Smrgfound="no"
523901395c31Smrg
524001395c31Smrg	if test $found = "no" ; then
524101395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
524201395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
524301395c31Smrg		fi
524401395c31Smrg
524501395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
524601395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
524701395c31Smrg		fi
524801395c31Smrg
524901395c31Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
525001395c31Smrg
525101395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
525201395c31Smrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
525301395c31Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
525401395c31Smrg		if eval \${$cacheid+:} false; then :
525501395c31Smrg  $as_echo_n "(cached) " >&6
525601395c31Smrgelse
525701395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
525801395c31Smrg/* end confdefs.h.  */
525901395c31Smrgint i;
526001395c31Smrgint
526101395c31Smrgmain ()
526201395c31Smrg{
526301395c31Smrg
526401395c31Smrg  ;
526501395c31Smrg  return 0;
526601395c31Smrg}
526701395c31Smrg_ACEOF
526801395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
526901395c31Smrg  eval $cacheid=yes
527001395c31Smrgelse
527101395c31Smrg  eval $cacheid=no
527201395c31Smrgfi
527301395c31Smrgrm -f core conftest.err conftest.$ac_objext \
527401395c31Smrg    conftest$ac_exeext conftest.$ac_ext
527501395c31Smrgfi
527601395c31Smrg
527701395c31Smrg
527801395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
527901395c31Smrg
528001395c31Smrg		eval supported=\$$cacheid
528101395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
528201395c31Smrg$as_echo "$supported" >&6; }
528301395c31Smrg		if test "$supported" = "yes" ; then
528401395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
528501395c31Smrg			found="yes"
528601395c31Smrg		fi
528701395c31Smrg	fi
528801395c31Smrg
528901395c31Smrg
529001395c31Smrg
529101395c31Smrg
529201395c31Smrg
529301395c31Smrg
529401395c31Smrg
529501395c31Smrg
529601395c31Smrg
529701395c31Smrg
529801395c31Smrg
529901395c31Smrg
530001395c31Smrg
530101395c31Smrg
530201395c31Smrg
530301395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
530401395c31Smrg
530501395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
530601395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
530701395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
530801395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
530901395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
531001395c31Smrg  $as_echo_n "(cached) " >&6
531101395c31Smrgelse
531201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
531301395c31Smrg/* end confdefs.h.  */
531401395c31Smrgint i;
531501395c31Smrg_ACEOF
531601395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
531701395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
531801395c31Smrgelse
531901395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
532001395c31Smrgfi
532101395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
532201395c31Smrgfi
532301395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
532401395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
532501395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
532601395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
532701395c31Smrgfi
532801395c31Smrg
532901395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
533001395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
533101395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
533201395c31Smrg	fi
533301395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
533401395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
533501395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
533601395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
533701395c31Smrg  $as_echo_n "(cached) " >&6
533801395c31Smrgelse
533901395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
534001395c31Smrg/* end confdefs.h.  */
534101395c31Smrgint i;
534201395c31Smrg_ACEOF
534301395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
534401395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
534501395c31Smrgelse
534601395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
534701395c31Smrgfi
534801395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
534901395c31Smrgfi
535001395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
535101395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
535201395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
535301395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
535401395c31Smrgfi
535501395c31Smrg
535601395c31Smrgfound="no"
535701395c31Smrg
535801395c31Smrg	if test $found = "no" ; then
535901395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
536001395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
536101395c31Smrg		fi
536201395c31Smrg
536301395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
536401395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
536501395c31Smrg		fi
536601395c31Smrg
536701395c31Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
536801395c31Smrg
536901395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
537001395c31Smrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
537101395c31Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
537201395c31Smrg		if eval \${$cacheid+:} false; then :
537301395c31Smrg  $as_echo_n "(cached) " >&6
537401395c31Smrgelse
537501395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
537601395c31Smrg/* end confdefs.h.  */
537701395c31Smrgint i;
537801395c31Smrgint
537901395c31Smrgmain ()
538001395c31Smrg{
538101395c31Smrg
538201395c31Smrg  ;
538301395c31Smrg  return 0;
538401395c31Smrg}
538501395c31Smrg_ACEOF
538601395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
538701395c31Smrg  eval $cacheid=yes
538801395c31Smrgelse
538901395c31Smrg  eval $cacheid=no
539001395c31Smrgfi
539101395c31Smrgrm -f core conftest.err conftest.$ac_objext \
539201395c31Smrg    conftest$ac_exeext conftest.$ac_ext
539301395c31Smrgfi
539401395c31Smrg
539501395c31Smrg
539601395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
539701395c31Smrg
539801395c31Smrg		eval supported=\$$cacheid
539901395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
540001395c31Smrg$as_echo "$supported" >&6; }
540101395c31Smrg		if test "$supported" = "yes" ; then
540201395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
540301395c31Smrg			found="yes"
540401395c31Smrg		fi
540501395c31Smrg	fi
540601395c31Smrg
540701395c31Smrg
540801395c31Smrg
540901395c31Smrg
541001395c31Smrg
541101395c31Smrg
541201395c31Smrg
541301395c31Smrg
541401395c31Smrg
541501395c31Smrg
541601395c31Smrg
541701395c31Smrg
541801395c31Smrg
541901395c31Smrg
542001395c31Smrg
542101395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
542201395c31Smrg
542301395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
542401395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
542501395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
542601395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
542701395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
542801395c31Smrg  $as_echo_n "(cached) " >&6
542901395c31Smrgelse
543001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
543101395c31Smrg/* end confdefs.h.  */
543201395c31Smrgint i;
543301395c31Smrg_ACEOF
543401395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
543501395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
543601395c31Smrgelse
543701395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
543801395c31Smrgfi
543901395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
544001395c31Smrgfi
544101395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
544201395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
544301395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
544401395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
544501395c31Smrgfi
544601395c31Smrg
544701395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
544801395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
544901395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
545001395c31Smrg	fi
545101395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
545201395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
545301395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
545401395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
545501395c31Smrg  $as_echo_n "(cached) " >&6
545601395c31Smrgelse
545701395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
545801395c31Smrg/* end confdefs.h.  */
545901395c31Smrgint i;
546001395c31Smrg_ACEOF
546101395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
546201395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
546301395c31Smrgelse
546401395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
546501395c31Smrgfi
546601395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
546701395c31Smrgfi
546801395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
546901395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
547001395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
547101395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
547201395c31Smrgfi
547301395c31Smrg
547401395c31Smrgfound="no"
547501395c31Smrg
547601395c31Smrg	if test $found = "no" ; then
547701395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
547801395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
547901395c31Smrg		fi
548001395c31Smrg
548101395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
548201395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
548301395c31Smrg		fi
548401395c31Smrg
548501395c31Smrg		CFLAGS="$CFLAGS -Wnested-externs"
548601395c31Smrg
548701395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
548801395c31Smrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
548901395c31Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
549001395c31Smrg		if eval \${$cacheid+:} false; then :
549101395c31Smrg  $as_echo_n "(cached) " >&6
549201395c31Smrgelse
549301395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
549401395c31Smrg/* end confdefs.h.  */
549501395c31Smrgint i;
549601395c31Smrgint
549701395c31Smrgmain ()
549801395c31Smrg{
549901395c31Smrg
550001395c31Smrg  ;
550101395c31Smrg  return 0;
550201395c31Smrg}
550301395c31Smrg_ACEOF
550401395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
550501395c31Smrg  eval $cacheid=yes
550601395c31Smrgelse
550701395c31Smrg  eval $cacheid=no
550801395c31Smrgfi
550901395c31Smrgrm -f core conftest.err conftest.$ac_objext \
551001395c31Smrg    conftest$ac_exeext conftest.$ac_ext
551101395c31Smrgfi
551201395c31Smrg
551301395c31Smrg
551401395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
551501395c31Smrg
551601395c31Smrg		eval supported=\$$cacheid
551701395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
551801395c31Smrg$as_echo "$supported" >&6; }
551901395c31Smrg		if test "$supported" = "yes" ; then
552001395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
552101395c31Smrg			found="yes"
552201395c31Smrg		fi
552301395c31Smrg	fi
552401395c31Smrg
552501395c31Smrg
552601395c31Smrg
552701395c31Smrg
552801395c31Smrg
552901395c31Smrg
553001395c31Smrg
553101395c31Smrg
553201395c31Smrg
553301395c31Smrg
553401395c31Smrg
553501395c31Smrg
553601395c31Smrg
553701395c31Smrg
553801395c31Smrg
553901395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
554001395c31Smrg
554101395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
554201395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
554301395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
554401395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
554501395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
554601395c31Smrg  $as_echo_n "(cached) " >&6
554701395c31Smrgelse
554801395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
554901395c31Smrg/* end confdefs.h.  */
555001395c31Smrgint i;
555101395c31Smrg_ACEOF
555201395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
555301395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
555401395c31Smrgelse
555501395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
555601395c31Smrgfi
555701395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
555801395c31Smrgfi
555901395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
556001395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
556101395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
556201395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
556301395c31Smrgfi
556401395c31Smrg
556501395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
556601395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
556701395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
556801395c31Smrg	fi
556901395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
557001395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
557101395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
557201395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
557301395c31Smrg  $as_echo_n "(cached) " >&6
557401395c31Smrgelse
557501395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
557601395c31Smrg/* end confdefs.h.  */
557701395c31Smrgint i;
557801395c31Smrg_ACEOF
557901395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
558001395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
558101395c31Smrgelse
558201395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
558301395c31Smrgfi
558401395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
558501395c31Smrgfi
558601395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
558701395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
558801395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
558901395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
559001395c31Smrgfi
559101395c31Smrg
559201395c31Smrgfound="no"
559301395c31Smrg
559401395c31Smrg	if test $found = "no" ; then
559501395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
559601395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
559701395c31Smrg		fi
559801395c31Smrg
559901395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
560001395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
560101395c31Smrg		fi
560201395c31Smrg
560301395c31Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
560401395c31Smrg
560501395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
560601395c31Smrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
560701395c31Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
560801395c31Smrg		if eval \${$cacheid+:} false; then :
560901395c31Smrg  $as_echo_n "(cached) " >&6
561001395c31Smrgelse
561101395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
561201395c31Smrg/* end confdefs.h.  */
561301395c31Smrgint i;
561401395c31Smrgint
561501395c31Smrgmain ()
561601395c31Smrg{
561701395c31Smrg
561801395c31Smrg  ;
561901395c31Smrg  return 0;
562001395c31Smrg}
562101395c31Smrg_ACEOF
562201395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
562301395c31Smrg  eval $cacheid=yes
562401395c31Smrgelse
562501395c31Smrg  eval $cacheid=no
562601395c31Smrgfi
562701395c31Smrgrm -f core conftest.err conftest.$ac_objext \
562801395c31Smrg    conftest$ac_exeext conftest.$ac_ext
562901395c31Smrgfi
563001395c31Smrg
563101395c31Smrg
563201395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
563301395c31Smrg
563401395c31Smrg		eval supported=\$$cacheid
563501395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
563601395c31Smrg$as_echo "$supported" >&6; }
563701395c31Smrg		if test "$supported" = "yes" ; then
563801395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
563901395c31Smrg			found="yes"
564001395c31Smrg		fi
564101395c31Smrg	fi
564201395c31Smrg
564301395c31Smrg
564401395c31Smrg
564501395c31Smrg
564601395c31Smrg
564701395c31Smrg
564801395c31Smrg
564901395c31Smrg
565001395c31Smrg
565101395c31Smrg
565201395c31Smrg
565301395c31Smrg
565401395c31Smrg
565501395c31Smrg
565601395c31Smrg
565701395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
565801395c31Smrg
565901395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
566001395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
566101395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
566201395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
566301395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
566401395c31Smrg  $as_echo_n "(cached) " >&6
566501395c31Smrgelse
566601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
566701395c31Smrg/* end confdefs.h.  */
566801395c31Smrgint i;
566901395c31Smrg_ACEOF
567001395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
567101395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
567201395c31Smrgelse
567301395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
567401395c31Smrgfi
567501395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
567601395c31Smrgfi
567701395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
567801395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
567901395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
568001395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
568101395c31Smrgfi
568201395c31Smrg
568301395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
568401395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
568501395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
568601395c31Smrg	fi
568701395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
568801395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
568901395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
569001395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
569101395c31Smrg  $as_echo_n "(cached) " >&6
569201395c31Smrgelse
569301395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
569401395c31Smrg/* end confdefs.h.  */
569501395c31Smrgint i;
569601395c31Smrg_ACEOF
569701395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
569801395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
569901395c31Smrgelse
570001395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
570101395c31Smrgfi
570201395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
570301395c31Smrgfi
570401395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
570501395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
570601395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
570701395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
570801395c31Smrgfi
570901395c31Smrg
571001395c31Smrgfound="no"
571101395c31Smrg
571201395c31Smrg	if test $found = "no" ; then
571301395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
571401395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
571501395c31Smrg		fi
571601395c31Smrg
571701395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
571801395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
571901395c31Smrg		fi
572001395c31Smrg
572101395c31Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
572201395c31Smrg
572301395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
572401395c31Smrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
572501395c31Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
572601395c31Smrg		if eval \${$cacheid+:} false; then :
572701395c31Smrg  $as_echo_n "(cached) " >&6
572801395c31Smrgelse
572901395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
573001395c31Smrg/* end confdefs.h.  */
573101395c31Smrgint i;
573201395c31Smrgint
573301395c31Smrgmain ()
573401395c31Smrg{
573501395c31Smrg
573601395c31Smrg  ;
573701395c31Smrg  return 0;
573801395c31Smrg}
573901395c31Smrg_ACEOF
574001395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
574101395c31Smrg  eval $cacheid=yes
574201395c31Smrgelse
574301395c31Smrg  eval $cacheid=no
574401395c31Smrgfi
574501395c31Smrgrm -f core conftest.err conftest.$ac_objext \
574601395c31Smrg    conftest$ac_exeext conftest.$ac_ext
574701395c31Smrgfi
574801395c31Smrg
574901395c31Smrg
575001395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
575101395c31Smrg
575201395c31Smrg		eval supported=\$$cacheid
575301395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
575401395c31Smrg$as_echo "$supported" >&6; }
575501395c31Smrg		if test "$supported" = "yes" ; then
575601395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
575701395c31Smrg			found="yes"
575801395c31Smrg		fi
575901395c31Smrg	fi
576001395c31Smrg
576101395c31Smrg	if test $found = "no" ; then
576201395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
576301395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
576401395c31Smrg		fi
576501395c31Smrg
576601395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
576701395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
576801395c31Smrg		fi
576901395c31Smrg
577001395c31Smrg		CFLAGS="$CFLAGS -fd"
577101395c31Smrg
577201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
577301395c31Smrg$as_echo_n "checking if $CC supports -fd... " >&6; }
577401395c31Smrg		cacheid=xorg_cv_cc_flag__fd
577501395c31Smrg		if eval \${$cacheid+:} false; then :
577601395c31Smrg  $as_echo_n "(cached) " >&6
577701395c31Smrgelse
577801395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
577901395c31Smrg/* end confdefs.h.  */
578001395c31Smrgint i;
578101395c31Smrgint
578201395c31Smrgmain ()
578301395c31Smrg{
578401395c31Smrg
578501395c31Smrg  ;
578601395c31Smrg  return 0;
578701395c31Smrg}
578801395c31Smrg_ACEOF
578901395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
579001395c31Smrg  eval $cacheid=yes
579101395c31Smrgelse
579201395c31Smrg  eval $cacheid=no
579301395c31Smrgfi
579401395c31Smrgrm -f core conftest.err conftest.$ac_objext \
579501395c31Smrg    conftest$ac_exeext conftest.$ac_ext
579601395c31Smrgfi
579701395c31Smrg
579801395c31Smrg
579901395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
580001395c31Smrg
580101395c31Smrg		eval supported=\$$cacheid
580201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
580301395c31Smrg$as_echo "$supported" >&6; }
580401395c31Smrg		if test "$supported" = "yes" ; then
580501395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
580601395c31Smrg			found="yes"
580701395c31Smrg		fi
580801395c31Smrg	fi
580901395c31Smrg
581001395c31Smrg
581101395c31Smrg
581201395c31Smrg
581301395c31Smrg
581401395c31Smrg
581501395c31Smrg
581601395c31Smrg
581701395c31Smrg
581801395c31Smrg
581901395c31Smrg
582001395c31Smrg
582101395c31Smrg
582201395c31Smrg
582301395c31Smrg
582401395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
582501395c31Smrg
582601395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
582701395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
582801395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
582901395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
583001395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
583101395c31Smrg  $as_echo_n "(cached) " >&6
583201395c31Smrgelse
583301395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
583401395c31Smrg/* end confdefs.h.  */
583501395c31Smrgint i;
583601395c31Smrg_ACEOF
583701395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
583801395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
583901395c31Smrgelse
584001395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
584101395c31Smrgfi
584201395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
584301395c31Smrgfi
584401395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
584501395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
584601395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
584701395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
584801395c31Smrgfi
584901395c31Smrg
585001395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
585101395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
585201395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
585301395c31Smrg	fi
585401395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
585501395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
585601395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
585701395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
585801395c31Smrg  $as_echo_n "(cached) " >&6
585901395c31Smrgelse
586001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
586101395c31Smrg/* end confdefs.h.  */
586201395c31Smrgint i;
586301395c31Smrg_ACEOF
586401395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
586501395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
586601395c31Smrgelse
586701395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
586801395c31Smrgfi
586901395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
587001395c31Smrgfi
587101395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
587201395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
587301395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
587401395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
587501395c31Smrgfi
587601395c31Smrg
587701395c31Smrgfound="no"
587801395c31Smrg
587901395c31Smrg	if test $found = "no" ; then
588001395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
588101395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
588201395c31Smrg		fi
588301395c31Smrg
588401395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
588501395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
588601395c31Smrg		fi
588701395c31Smrg
588801395c31Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
588901395c31Smrg
589001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
589101395c31Smrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
589201395c31Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
589301395c31Smrg		if eval \${$cacheid+:} false; then :
589401395c31Smrg  $as_echo_n "(cached) " >&6
589501395c31Smrgelse
589601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
589701395c31Smrg/* end confdefs.h.  */
589801395c31Smrgint i;
589901395c31Smrgint
590001395c31Smrgmain ()
590101395c31Smrg{
590201395c31Smrg
590301395c31Smrg  ;
590401395c31Smrg  return 0;
590501395c31Smrg}
590601395c31Smrg_ACEOF
590701395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
590801395c31Smrg  eval $cacheid=yes
590901395c31Smrgelse
591001395c31Smrg  eval $cacheid=no
591101395c31Smrgfi
591201395c31Smrgrm -f core conftest.err conftest.$ac_objext \
591301395c31Smrg    conftest$ac_exeext conftest.$ac_ext
591401395c31Smrgfi
591501395c31Smrg
591601395c31Smrg
591701395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
591801395c31Smrg
591901395c31Smrg		eval supported=\$$cacheid
592001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
592101395c31Smrg$as_echo "$supported" >&6; }
592201395c31Smrg		if test "$supported" = "yes" ; then
592301395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
592401395c31Smrg			found="yes"
592501395c31Smrg		fi
592601395c31Smrg	fi
592701395c31Smrg
592801395c31Smrg
592901395c31Smrg
593001395c31Smrg
593101395c31Smrg
593201395c31Smrg# This chunk adds additional warnings that could catch undesired effects.
593301395c31Smrg
593401395c31Smrg
593501395c31Smrg
593601395c31Smrg
593701395c31Smrg
593801395c31Smrg
593901395c31Smrg
594001395c31Smrg
594101395c31Smrg
594201395c31Smrg
594301395c31Smrg
594401395c31Smrg
594501395c31Smrg
594601395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
594701395c31Smrg
594801395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
594901395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
595001395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
595101395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
595201395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
595301395c31Smrg  $as_echo_n "(cached) " >&6
595401395c31Smrgelse
595501395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
595601395c31Smrg/* end confdefs.h.  */
595701395c31Smrgint i;
595801395c31Smrg_ACEOF
595901395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
596001395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
596101395c31Smrgelse
596201395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
596301395c31Smrgfi
596401395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
596501395c31Smrgfi
596601395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
596701395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
596801395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
596901395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
597001395c31Smrgfi
597101395c31Smrg
597201395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
597301395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
597401395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
597501395c31Smrg	fi
597601395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
597701395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
597801395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
597901395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
598001395c31Smrg  $as_echo_n "(cached) " >&6
598101395c31Smrgelse
598201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
598301395c31Smrg/* end confdefs.h.  */
598401395c31Smrgint i;
598501395c31Smrg_ACEOF
598601395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
598701395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
598801395c31Smrgelse
598901395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
599001395c31Smrgfi
599101395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
599201395c31Smrgfi
599301395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
599401395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
599501395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
599601395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
599701395c31Smrgfi
599801395c31Smrg
599901395c31Smrgfound="no"
600001395c31Smrg
600101395c31Smrg	if test $found = "no" ; then
600201395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
600301395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
600401395c31Smrg		fi
600501395c31Smrg
600601395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
600701395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
600801395c31Smrg		fi
600901395c31Smrg
601001395c31Smrg		CFLAGS="$CFLAGS -Wunused"
601101395c31Smrg
601201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
601301395c31Smrg$as_echo_n "checking if $CC supports -Wunused... " >&6; }
601401395c31Smrg		cacheid=xorg_cv_cc_flag__Wunused
601501395c31Smrg		if eval \${$cacheid+:} false; then :
601601395c31Smrg  $as_echo_n "(cached) " >&6
601701395c31Smrgelse
601801395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
601901395c31Smrg/* end confdefs.h.  */
602001395c31Smrgint i;
602101395c31Smrgint
602201395c31Smrgmain ()
602301395c31Smrg{
602401395c31Smrg
602501395c31Smrg  ;
602601395c31Smrg  return 0;
602701395c31Smrg}
602801395c31Smrg_ACEOF
602901395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
603001395c31Smrg  eval $cacheid=yes
603101395c31Smrgelse
603201395c31Smrg  eval $cacheid=no
603301395c31Smrgfi
603401395c31Smrgrm -f core conftest.err conftest.$ac_objext \
603501395c31Smrg    conftest$ac_exeext conftest.$ac_ext
603601395c31Smrgfi
603701395c31Smrg
603801395c31Smrg
603901395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
604001395c31Smrg
604101395c31Smrg		eval supported=\$$cacheid
604201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
604301395c31Smrg$as_echo "$supported" >&6; }
604401395c31Smrg		if test "$supported" = "yes" ; then
604501395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
604601395c31Smrg			found="yes"
604701395c31Smrg		fi
604801395c31Smrg	fi
604901395c31Smrg
605001395c31Smrg
605101395c31Smrg
605201395c31Smrg
605301395c31Smrg
605401395c31Smrg
605501395c31Smrg
605601395c31Smrg
605701395c31Smrg
605801395c31Smrg
605901395c31Smrg
606001395c31Smrg
606101395c31Smrg
606201395c31Smrg
606301395c31Smrg
606401395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
606501395c31Smrg
606601395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
606701395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
606801395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
606901395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
607001395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
607101395c31Smrg  $as_echo_n "(cached) " >&6
607201395c31Smrgelse
607301395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
607401395c31Smrg/* end confdefs.h.  */
607501395c31Smrgint i;
607601395c31Smrg_ACEOF
607701395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
607801395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
607901395c31Smrgelse
608001395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
608101395c31Smrgfi
608201395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
608301395c31Smrgfi
608401395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
608501395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
608601395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
608701395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
608801395c31Smrgfi
608901395c31Smrg
609001395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
609101395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
609201395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
609301395c31Smrg	fi
609401395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
609501395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
609601395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
609701395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
609801395c31Smrg  $as_echo_n "(cached) " >&6
609901395c31Smrgelse
610001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
610101395c31Smrg/* end confdefs.h.  */
610201395c31Smrgint i;
610301395c31Smrg_ACEOF
610401395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
610501395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
610601395c31Smrgelse
610701395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
610801395c31Smrgfi
610901395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
611001395c31Smrgfi
611101395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
611201395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
611301395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
611401395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
611501395c31Smrgfi
611601395c31Smrg
611701395c31Smrgfound="no"
611801395c31Smrg
611901395c31Smrg	if test $found = "no" ; then
612001395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
612101395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
612201395c31Smrg		fi
612301395c31Smrg
612401395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
612501395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
612601395c31Smrg		fi
612701395c31Smrg
612801395c31Smrg		CFLAGS="$CFLAGS -Wuninitialized"
612901395c31Smrg
613001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
613101395c31Smrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
613201395c31Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
613301395c31Smrg		if eval \${$cacheid+:} false; then :
613401395c31Smrg  $as_echo_n "(cached) " >&6
613501395c31Smrgelse
613601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
613701395c31Smrg/* end confdefs.h.  */
613801395c31Smrgint i;
613901395c31Smrgint
614001395c31Smrgmain ()
614101395c31Smrg{
614201395c31Smrg
614301395c31Smrg  ;
614401395c31Smrg  return 0;
614501395c31Smrg}
614601395c31Smrg_ACEOF
614701395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
614801395c31Smrg  eval $cacheid=yes
614901395c31Smrgelse
615001395c31Smrg  eval $cacheid=no
615101395c31Smrgfi
615201395c31Smrgrm -f core conftest.err conftest.$ac_objext \
615301395c31Smrg    conftest$ac_exeext conftest.$ac_ext
615401395c31Smrgfi
615501395c31Smrg
615601395c31Smrg
615701395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
615801395c31Smrg
615901395c31Smrg		eval supported=\$$cacheid
616001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
616101395c31Smrg$as_echo "$supported" >&6; }
616201395c31Smrg		if test "$supported" = "yes" ; then
616301395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
616401395c31Smrg			found="yes"
616501395c31Smrg		fi
616601395c31Smrg	fi
616701395c31Smrg
616801395c31Smrg
616901395c31Smrg
617001395c31Smrg
617101395c31Smrg
617201395c31Smrg
617301395c31Smrg
617401395c31Smrg
617501395c31Smrg
617601395c31Smrg
617701395c31Smrg
617801395c31Smrg
617901395c31Smrg
618001395c31Smrg
618101395c31Smrg
618201395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
618301395c31Smrg
618401395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
618501395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
618601395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
618701395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
618801395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
618901395c31Smrg  $as_echo_n "(cached) " >&6
619001395c31Smrgelse
619101395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
619201395c31Smrg/* end confdefs.h.  */
619301395c31Smrgint i;
619401395c31Smrg_ACEOF
619501395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
619601395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
619701395c31Smrgelse
619801395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
619901395c31Smrgfi
620001395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
620101395c31Smrgfi
620201395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
620301395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
620401395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
620501395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
620601395c31Smrgfi
620701395c31Smrg
620801395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
620901395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
621001395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
621101395c31Smrg	fi
621201395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
621301395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
621401395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
621501395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
621601395c31Smrg  $as_echo_n "(cached) " >&6
621701395c31Smrgelse
621801395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
621901395c31Smrg/* end confdefs.h.  */
622001395c31Smrgint i;
622101395c31Smrg_ACEOF
622201395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
622301395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
622401395c31Smrgelse
622501395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
622601395c31Smrgfi
622701395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
622801395c31Smrgfi
622901395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
623001395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
623101395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
623201395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
623301395c31Smrgfi
623401395c31Smrg
623501395c31Smrgfound="no"
623601395c31Smrg
623701395c31Smrg	if test $found = "no" ; then
623801395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
623901395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
624001395c31Smrg		fi
624101395c31Smrg
624201395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
624301395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
624401395c31Smrg		fi
624501395c31Smrg
624601395c31Smrg		CFLAGS="$CFLAGS -Wshadow"
624701395c31Smrg
624801395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
624901395c31Smrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
625001395c31Smrg		cacheid=xorg_cv_cc_flag__Wshadow
625101395c31Smrg		if eval \${$cacheid+:} false; then :
625201395c31Smrg  $as_echo_n "(cached) " >&6
625301395c31Smrgelse
625401395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
625501395c31Smrg/* end confdefs.h.  */
625601395c31Smrgint i;
625701395c31Smrgint
625801395c31Smrgmain ()
625901395c31Smrg{
626001395c31Smrg
626101395c31Smrg  ;
626201395c31Smrg  return 0;
626301395c31Smrg}
626401395c31Smrg_ACEOF
626501395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
626601395c31Smrg  eval $cacheid=yes
626701395c31Smrgelse
626801395c31Smrg  eval $cacheid=no
626901395c31Smrgfi
627001395c31Smrgrm -f core conftest.err conftest.$ac_objext \
627101395c31Smrg    conftest$ac_exeext conftest.$ac_ext
627201395c31Smrgfi
627301395c31Smrg
627401395c31Smrg
627501395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
627601395c31Smrg
627701395c31Smrg		eval supported=\$$cacheid
627801395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
627901395c31Smrg$as_echo "$supported" >&6; }
628001395c31Smrg		if test "$supported" = "yes" ; then
628101395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
628201395c31Smrg			found="yes"
628301395c31Smrg		fi
628401395c31Smrg	fi
628501395c31Smrg
628601395c31Smrg
628701395c31Smrg
628801395c31Smrg
628901395c31Smrg
629001395c31Smrg
629101395c31Smrg
629201395c31Smrg
629301395c31Smrg
629401395c31Smrg
629501395c31Smrg
629601395c31Smrg
629701395c31Smrg
629801395c31Smrg
629901395c31Smrg
630001395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
630101395c31Smrg
630201395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
630301395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
630401395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
630501395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
630601395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
630701395c31Smrg  $as_echo_n "(cached) " >&6
630801395c31Smrgelse
630901395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
631001395c31Smrg/* end confdefs.h.  */
631101395c31Smrgint i;
631201395c31Smrg_ACEOF
631301395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
631401395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
631501395c31Smrgelse
631601395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
631701395c31Smrgfi
631801395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
631901395c31Smrgfi
632001395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
632101395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
632201395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
632301395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
632401395c31Smrgfi
632501395c31Smrg
632601395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
632701395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
632801395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
632901395c31Smrg	fi
633001395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
633101395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
633201395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
633301395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
633401395c31Smrg  $as_echo_n "(cached) " >&6
633501395c31Smrgelse
633601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
633701395c31Smrg/* end confdefs.h.  */
633801395c31Smrgint i;
633901395c31Smrg_ACEOF
634001395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
634101395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
634201395c31Smrgelse
634301395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
634401395c31Smrgfi
634501395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
634601395c31Smrgfi
634701395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
634801395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
634901395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
635001395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
635101395c31Smrgfi
635201395c31Smrg
635301395c31Smrgfound="no"
635401395c31Smrg
635501395c31Smrg	if test $found = "no" ; then
635601395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
635701395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
635801395c31Smrg		fi
635901395c31Smrg
636001395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
636101395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
636201395c31Smrg		fi
636301395c31Smrg
636401395c31Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
636501395c31Smrg
636601395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
636701395c31Smrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
636801395c31Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
636901395c31Smrg		if eval \${$cacheid+:} false; then :
637001395c31Smrg  $as_echo_n "(cached) " >&6
637101395c31Smrgelse
637201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
637301395c31Smrg/* end confdefs.h.  */
637401395c31Smrgint i;
637501395c31Smrgint
637601395c31Smrgmain ()
637701395c31Smrg{
637801395c31Smrg
637901395c31Smrg  ;
638001395c31Smrg  return 0;
638101395c31Smrg}
638201395c31Smrg_ACEOF
638301395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
638401395c31Smrg  eval $cacheid=yes
638501395c31Smrgelse
638601395c31Smrg  eval $cacheid=no
638701395c31Smrgfi
638801395c31Smrgrm -f core conftest.err conftest.$ac_objext \
638901395c31Smrg    conftest$ac_exeext conftest.$ac_ext
639001395c31Smrgfi
639101395c31Smrg
639201395c31Smrg
639301395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
639401395c31Smrg
639501395c31Smrg		eval supported=\$$cacheid
639601395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
639701395c31Smrg$as_echo "$supported" >&6; }
639801395c31Smrg		if test "$supported" = "yes" ; then
639901395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
640001395c31Smrg			found="yes"
640101395c31Smrg		fi
640201395c31Smrg	fi
640301395c31Smrg
640401395c31Smrg
640501395c31Smrg
640601395c31Smrg
640701395c31Smrg
640801395c31Smrg
640901395c31Smrg
641001395c31Smrg
641101395c31Smrg
641201395c31Smrg
641301395c31Smrg
641401395c31Smrg
641501395c31Smrg
641601395c31Smrg
641701395c31Smrg
641801395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
641901395c31Smrg
642001395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
642101395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
642201395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
642301395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
642401395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
642501395c31Smrg  $as_echo_n "(cached) " >&6
642601395c31Smrgelse
642701395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
642801395c31Smrg/* end confdefs.h.  */
642901395c31Smrgint i;
643001395c31Smrg_ACEOF
643101395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
643201395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
643301395c31Smrgelse
643401395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
643501395c31Smrgfi
643601395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
643701395c31Smrgfi
643801395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
643901395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
644001395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
644101395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
644201395c31Smrgfi
644301395c31Smrg
644401395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
644501395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
644601395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
644701395c31Smrg	fi
644801395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
644901395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
645001395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
645101395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
645201395c31Smrg  $as_echo_n "(cached) " >&6
645301395c31Smrgelse
645401395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
645501395c31Smrg/* end confdefs.h.  */
645601395c31Smrgint i;
645701395c31Smrg_ACEOF
645801395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
645901395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
646001395c31Smrgelse
646101395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
646201395c31Smrgfi
646301395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
646401395c31Smrgfi
646501395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
646601395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
646701395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
646801395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
646901395c31Smrgfi
647001395c31Smrg
647101395c31Smrgfound="no"
647201395c31Smrg
647301395c31Smrg	if test $found = "no" ; then
647401395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
647501395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
647601395c31Smrg		fi
647701395c31Smrg
647801395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
647901395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
648001395c31Smrg		fi
648101395c31Smrg
648201395c31Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
648301395c31Smrg
648401395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
648501395c31Smrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
648601395c31Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
648701395c31Smrg		if eval \${$cacheid+:} false; then :
648801395c31Smrg  $as_echo_n "(cached) " >&6
648901395c31Smrgelse
649001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
649101395c31Smrg/* end confdefs.h.  */
649201395c31Smrgint i;
649301395c31Smrgint
649401395c31Smrgmain ()
649501395c31Smrg{
649601395c31Smrg
649701395c31Smrg  ;
649801395c31Smrg  return 0;
649901395c31Smrg}
650001395c31Smrg_ACEOF
650101395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
650201395c31Smrg  eval $cacheid=yes
650301395c31Smrgelse
650401395c31Smrg  eval $cacheid=no
650501395c31Smrgfi
650601395c31Smrgrm -f core conftest.err conftest.$ac_objext \
650701395c31Smrg    conftest$ac_exeext conftest.$ac_ext
650801395c31Smrgfi
650901395c31Smrg
651001395c31Smrg
651101395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
651201395c31Smrg
651301395c31Smrg		eval supported=\$$cacheid
651401395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
651501395c31Smrg$as_echo "$supported" >&6; }
651601395c31Smrg		if test "$supported" = "yes" ; then
651701395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
651801395c31Smrg			found="yes"
651901395c31Smrg		fi
652001395c31Smrg	fi
652101395c31Smrg
652201395c31Smrg
652301395c31Smrg
652401395c31Smrg
652501395c31Smrg
652601395c31Smrg
652701395c31Smrg
652801395c31Smrg
652901395c31Smrg
653001395c31Smrg
653101395c31Smrg
653201395c31Smrg
653301395c31Smrg
653401395c31Smrg
653501395c31Smrg
653601395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
653701395c31Smrg
653801395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
653901395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
654001395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
654101395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
654201395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
654301395c31Smrg  $as_echo_n "(cached) " >&6
654401395c31Smrgelse
654501395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
654601395c31Smrg/* end confdefs.h.  */
654701395c31Smrgint i;
654801395c31Smrg_ACEOF
654901395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
655001395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
655101395c31Smrgelse
655201395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
655301395c31Smrgfi
655401395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
655501395c31Smrgfi
655601395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
655701395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
655801395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
655901395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
656001395c31Smrgfi
656101395c31Smrg
656201395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
656301395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
656401395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
656501395c31Smrg	fi
656601395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
656701395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
656801395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
656901395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
657001395c31Smrg  $as_echo_n "(cached) " >&6
657101395c31Smrgelse
657201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
657301395c31Smrg/* end confdefs.h.  */
657401395c31Smrgint i;
657501395c31Smrg_ACEOF
657601395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
657701395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
657801395c31Smrgelse
657901395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
658001395c31Smrgfi
658101395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
658201395c31Smrgfi
658301395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
658401395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
658501395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
658601395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
658701395c31Smrgfi
658801395c31Smrg
658901395c31Smrgfound="no"
659001395c31Smrg
659101395c31Smrg	if test $found = "no" ; then
659201395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
659301395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
659401395c31Smrg		fi
659501395c31Smrg
659601395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
659701395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
659801395c31Smrg		fi
659901395c31Smrg
660001395c31Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
660101395c31Smrg
660201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
660301395c31Smrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
660401395c31Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
660501395c31Smrg		if eval \${$cacheid+:} false; then :
660601395c31Smrg  $as_echo_n "(cached) " >&6
660701395c31Smrgelse
660801395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
660901395c31Smrg/* end confdefs.h.  */
661001395c31Smrgint i;
661101395c31Smrgint
661201395c31Smrgmain ()
661301395c31Smrg{
661401395c31Smrg
661501395c31Smrg  ;
661601395c31Smrg  return 0;
661701395c31Smrg}
661801395c31Smrg_ACEOF
661901395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
662001395c31Smrg  eval $cacheid=yes
662101395c31Smrgelse
662201395c31Smrg  eval $cacheid=no
662301395c31Smrgfi
662401395c31Smrgrm -f core conftest.err conftest.$ac_objext \
662501395c31Smrg    conftest$ac_exeext conftest.$ac_ext
662601395c31Smrgfi
662701395c31Smrg
662801395c31Smrg
662901395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
663001395c31Smrg
663101395c31Smrg		eval supported=\$$cacheid
663201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
663301395c31Smrg$as_echo "$supported" >&6; }
663401395c31Smrg		if test "$supported" = "yes" ; then
663501395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
663601395c31Smrg			found="yes"
663701395c31Smrg		fi
663801395c31Smrg	fi
663901395c31Smrg
664001395c31Smrg
664101395c31Smrg
664201395c31Smrg
664301395c31Smrg
664401395c31Smrg
664501395c31Smrg
664601395c31Smrg
664701395c31Smrg
664801395c31Smrg
664901395c31Smrg
665001395c31Smrg
665101395c31Smrg
665201395c31Smrg
665301395c31Smrg
665401395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
665501395c31Smrg
665601395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
665701395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
665801395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
665901395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
666001395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
666101395c31Smrg  $as_echo_n "(cached) " >&6
666201395c31Smrgelse
666301395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
666401395c31Smrg/* end confdefs.h.  */
666501395c31Smrgint i;
666601395c31Smrg_ACEOF
666701395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
666801395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
666901395c31Smrgelse
667001395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
667101395c31Smrgfi
667201395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
667301395c31Smrgfi
667401395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
667501395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
667601395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
667701395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
667801395c31Smrgfi
667901395c31Smrg
668001395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
668101395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
668201395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
668301395c31Smrg	fi
668401395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
668501395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
668601395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
668701395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
668801395c31Smrg  $as_echo_n "(cached) " >&6
668901395c31Smrgelse
669001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
669101395c31Smrg/* end confdefs.h.  */
669201395c31Smrgint i;
669301395c31Smrg_ACEOF
669401395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
669501395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
669601395c31Smrgelse
669701395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
669801395c31Smrgfi
669901395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
670001395c31Smrgfi
670101395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
670201395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
670301395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
670401395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
670501395c31Smrgfi
670601395c31Smrg
670701395c31Smrgfound="no"
670801395c31Smrg
670901395c31Smrg	if test $found = "no" ; then
671001395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
671101395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
671201395c31Smrg		fi
671301395c31Smrg
671401395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
671501395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
671601395c31Smrg		fi
671701395c31Smrg
671801395c31Smrg		CFLAGS="$CFLAGS -Wlogical-op"
671901395c31Smrg
672001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
672101395c31Smrg$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
672201395c31Smrg		cacheid=xorg_cv_cc_flag__Wlogical_op
672301395c31Smrg		if eval \${$cacheid+:} false; then :
672401395c31Smrg  $as_echo_n "(cached) " >&6
672501395c31Smrgelse
672601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
672701395c31Smrg/* end confdefs.h.  */
672801395c31Smrgint i;
672901395c31Smrgint
673001395c31Smrgmain ()
673101395c31Smrg{
673201395c31Smrg
673301395c31Smrg  ;
673401395c31Smrg  return 0;
673501395c31Smrg}
673601395c31Smrg_ACEOF
673701395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
673801395c31Smrg  eval $cacheid=yes
673901395c31Smrgelse
674001395c31Smrg  eval $cacheid=no
674101395c31Smrgfi
674201395c31Smrgrm -f core conftest.err conftest.$ac_objext \
674301395c31Smrg    conftest$ac_exeext conftest.$ac_ext
674401395c31Smrgfi
674501395c31Smrg
674601395c31Smrg
674701395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
674801395c31Smrg
674901395c31Smrg		eval supported=\$$cacheid
675001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
675101395c31Smrg$as_echo "$supported" >&6; }
675201395c31Smrg		if test "$supported" = "yes" ; then
675301395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
675401395c31Smrg			found="yes"
675501395c31Smrg		fi
675601395c31Smrg	fi
675701395c31Smrg
675801395c31Smrg
675901395c31Smrg
676001395c31Smrg# These are currently disabled because they are noisy.  They will be enabled
676101395c31Smrg# in the future once the codebase is sufficiently modernized to silence
676201395c31Smrg# them.  For now, I don't want them to drown out the other warnings.
676301395c31Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
676401395c31Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
676501395c31Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
676601395c31Smrg
676701395c31Smrg# Turn some warnings into errors, so we don't accidently get successful builds
676801395c31Smrg# when there are problems that should be fixed.
676901395c31Smrg
677001395c31Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
677101395c31Smrg
677201395c31Smrg
677301395c31Smrg
677401395c31Smrg
677501395c31Smrg
677601395c31Smrg
677701395c31Smrg
677801395c31Smrg
677901395c31Smrg
678001395c31Smrg
678101395c31Smrg
678201395c31Smrg
678301395c31Smrg
678401395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
678501395c31Smrg
678601395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
678701395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
678801395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
678901395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
679001395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
679101395c31Smrg  $as_echo_n "(cached) " >&6
679201395c31Smrgelse
679301395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
679401395c31Smrg/* end confdefs.h.  */
679501395c31Smrgint i;
679601395c31Smrg_ACEOF
679701395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
679801395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
679901395c31Smrgelse
680001395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
680101395c31Smrgfi
680201395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
680301395c31Smrgfi
680401395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
680501395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
680601395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
680701395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
680801395c31Smrgfi
680901395c31Smrg
681001395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
681101395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
681201395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
681301395c31Smrg	fi
681401395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
681501395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
681601395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
681701395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
681801395c31Smrg  $as_echo_n "(cached) " >&6
681901395c31Smrgelse
682001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
682101395c31Smrg/* end confdefs.h.  */
682201395c31Smrgint i;
682301395c31Smrg_ACEOF
682401395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
682501395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
682601395c31Smrgelse
682701395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
682801395c31Smrgfi
682901395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
683001395c31Smrgfi
683101395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
683201395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
683301395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
683401395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
683501395c31Smrgfi
683601395c31Smrg
683701395c31Smrgfound="no"
683801395c31Smrg
683901395c31Smrg	if test $found = "no" ; then
684001395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
684101395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
684201395c31Smrg		fi
684301395c31Smrg
684401395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
684501395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
684601395c31Smrg		fi
684701395c31Smrg
684801395c31Smrg		CFLAGS="$CFLAGS -Werror=implicit"
684901395c31Smrg
685001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
685101395c31Smrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
685201395c31Smrg		cacheid=xorg_cv_cc_flag__Werror_implicit
685301395c31Smrg		if eval \${$cacheid+:} false; then :
685401395c31Smrg  $as_echo_n "(cached) " >&6
685501395c31Smrgelse
685601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
685701395c31Smrg/* end confdefs.h.  */
685801395c31Smrgint i;
685901395c31Smrgint
686001395c31Smrgmain ()
686101395c31Smrg{
686201395c31Smrg
686301395c31Smrg  ;
686401395c31Smrg  return 0;
686501395c31Smrg}
686601395c31Smrg_ACEOF
686701395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
686801395c31Smrg  eval $cacheid=yes
686901395c31Smrgelse
687001395c31Smrg  eval $cacheid=no
687101395c31Smrgfi
687201395c31Smrgrm -f core conftest.err conftest.$ac_objext \
687301395c31Smrg    conftest$ac_exeext conftest.$ac_ext
687401395c31Smrgfi
687501395c31Smrg
687601395c31Smrg
687701395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
687801395c31Smrg
687901395c31Smrg		eval supported=\$$cacheid
688001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
688101395c31Smrg$as_echo "$supported" >&6; }
688201395c31Smrg		if test "$supported" = "yes" ; then
688301395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
688401395c31Smrg			found="yes"
688501395c31Smrg		fi
688601395c31Smrg	fi
688701395c31Smrg
688801395c31Smrg	if test $found = "no" ; then
688901395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
689001395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
689101395c31Smrg		fi
689201395c31Smrg
689301395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
689401395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
689501395c31Smrg		fi
689601395c31Smrg
689701395c31Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
689801395c31Smrg
689901395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
690001395c31Smrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
690101395c31Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
690201395c31Smrg		if eval \${$cacheid+:} false; then :
690301395c31Smrg  $as_echo_n "(cached) " >&6
690401395c31Smrgelse
690501395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
690601395c31Smrg/* end confdefs.h.  */
690701395c31Smrgint i;
690801395c31Smrgint
690901395c31Smrgmain ()
691001395c31Smrg{
691101395c31Smrg
691201395c31Smrg  ;
691301395c31Smrg  return 0;
691401395c31Smrg}
691501395c31Smrg_ACEOF
691601395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
691701395c31Smrg  eval $cacheid=yes
691801395c31Smrgelse
691901395c31Smrg  eval $cacheid=no
692001395c31Smrgfi
692101395c31Smrgrm -f core conftest.err conftest.$ac_objext \
692201395c31Smrg    conftest$ac_exeext conftest.$ac_ext
692301395c31Smrgfi
692401395c31Smrg
692501395c31Smrg
692601395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
692701395c31Smrg
692801395c31Smrg		eval supported=\$$cacheid
692901395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
693001395c31Smrg$as_echo "$supported" >&6; }
693101395c31Smrg		if test "$supported" = "yes" ; then
693201395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
693301395c31Smrg			found="yes"
693401395c31Smrg		fi
693501395c31Smrg	fi
693601395c31Smrg
693701395c31Smrg
693801395c31Smrg
693901395c31Smrg
694001395c31Smrg
694101395c31Smrg
694201395c31Smrg
694301395c31Smrg
694401395c31Smrg
694501395c31Smrg
694601395c31Smrg
694701395c31Smrg
694801395c31Smrg
694901395c31Smrg
695001395c31Smrg
695101395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
695201395c31Smrg
695301395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
695401395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
695501395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
695601395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
695701395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
695801395c31Smrg  $as_echo_n "(cached) " >&6
695901395c31Smrgelse
696001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
696101395c31Smrg/* end confdefs.h.  */
696201395c31Smrgint i;
696301395c31Smrg_ACEOF
696401395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
696501395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
696601395c31Smrgelse
696701395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
696801395c31Smrgfi
696901395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
697001395c31Smrgfi
697101395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
697201395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
697301395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
697401395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
697501395c31Smrgfi
697601395c31Smrg
697701395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
697801395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
697901395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
698001395c31Smrg	fi
698101395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
698201395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
698301395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
698401395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
698501395c31Smrg  $as_echo_n "(cached) " >&6
698601395c31Smrgelse
698701395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
698801395c31Smrg/* end confdefs.h.  */
698901395c31Smrgint i;
699001395c31Smrg_ACEOF
699101395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
699201395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
699301395c31Smrgelse
699401395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
699501395c31Smrgfi
699601395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
699701395c31Smrgfi
699801395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
699901395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
700001395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
700101395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
700201395c31Smrgfi
700301395c31Smrg
700401395c31Smrgfound="no"
700501395c31Smrg
700601395c31Smrg	if test $found = "no" ; then
700701395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
700801395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
700901395c31Smrg		fi
701001395c31Smrg
701101395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
701201395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
701301395c31Smrg		fi
701401395c31Smrg
701501395c31Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
701601395c31Smrg
701701395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
701801395c31Smrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
701901395c31Smrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
702001395c31Smrg		if eval \${$cacheid+:} false; then :
702101395c31Smrg  $as_echo_n "(cached) " >&6
702201395c31Smrgelse
702301395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
702401395c31Smrg/* end confdefs.h.  */
702501395c31Smrgint i;
702601395c31Smrgint
702701395c31Smrgmain ()
702801395c31Smrg{
702901395c31Smrg
703001395c31Smrg  ;
703101395c31Smrg  return 0;
703201395c31Smrg}
703301395c31Smrg_ACEOF
703401395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
703501395c31Smrg  eval $cacheid=yes
703601395c31Smrgelse
703701395c31Smrg  eval $cacheid=no
703801395c31Smrgfi
703901395c31Smrgrm -f core conftest.err conftest.$ac_objext \
704001395c31Smrg    conftest$ac_exeext conftest.$ac_ext
704101395c31Smrgfi
704201395c31Smrg
704301395c31Smrg
704401395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
704501395c31Smrg
704601395c31Smrg		eval supported=\$$cacheid
704701395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
704801395c31Smrg$as_echo "$supported" >&6; }
704901395c31Smrg		if test "$supported" = "yes" ; then
705001395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
705101395c31Smrg			found="yes"
705201395c31Smrg		fi
705301395c31Smrg	fi
705401395c31Smrg
705501395c31Smrg
705601395c31Smrg
705701395c31Smrg
705801395c31Smrg
705901395c31Smrg
706001395c31Smrg
706101395c31Smrg
706201395c31Smrg
706301395c31Smrg
706401395c31Smrg
706501395c31Smrg
706601395c31Smrg
706701395c31Smrg
706801395c31Smrg
706901395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
707001395c31Smrg
707101395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
707201395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
707301395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
707401395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
707501395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
707601395c31Smrg  $as_echo_n "(cached) " >&6
707701395c31Smrgelse
707801395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
707901395c31Smrg/* end confdefs.h.  */
708001395c31Smrgint i;
708101395c31Smrg_ACEOF
708201395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
708301395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
708401395c31Smrgelse
708501395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
708601395c31Smrgfi
708701395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
708801395c31Smrgfi
708901395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
709001395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
709101395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
709201395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
709301395c31Smrgfi
709401395c31Smrg
709501395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
709601395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
709701395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
709801395c31Smrg	fi
709901395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
710001395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
710101395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
710201395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
710301395c31Smrg  $as_echo_n "(cached) " >&6
710401395c31Smrgelse
710501395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
710601395c31Smrg/* end confdefs.h.  */
710701395c31Smrgint i;
710801395c31Smrg_ACEOF
710901395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
711001395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
711101395c31Smrgelse
711201395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
711301395c31Smrgfi
711401395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
711501395c31Smrgfi
711601395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
711701395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
711801395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
711901395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
712001395c31Smrgfi
712101395c31Smrg
712201395c31Smrgfound="no"
712301395c31Smrg
712401395c31Smrg	if test $found = "no" ; then
712501395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
712601395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
712701395c31Smrg		fi
712801395c31Smrg
712901395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
713001395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
713101395c31Smrg		fi
713201395c31Smrg
713301395c31Smrg		CFLAGS="$CFLAGS -Werror=init-self"
713401395c31Smrg
713501395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
713601395c31Smrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
713701395c31Smrg		cacheid=xorg_cv_cc_flag__Werror_init_self
713801395c31Smrg		if eval \${$cacheid+:} false; then :
713901395c31Smrg  $as_echo_n "(cached) " >&6
714001395c31Smrgelse
714101395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
714201395c31Smrg/* end confdefs.h.  */
714301395c31Smrgint i;
714401395c31Smrgint
714501395c31Smrgmain ()
714601395c31Smrg{
714701395c31Smrg
714801395c31Smrg  ;
714901395c31Smrg  return 0;
715001395c31Smrg}
715101395c31Smrg_ACEOF
715201395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
715301395c31Smrg  eval $cacheid=yes
715401395c31Smrgelse
715501395c31Smrg  eval $cacheid=no
715601395c31Smrgfi
715701395c31Smrgrm -f core conftest.err conftest.$ac_objext \
715801395c31Smrg    conftest$ac_exeext conftest.$ac_ext
715901395c31Smrgfi
716001395c31Smrg
716101395c31Smrg
716201395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
716301395c31Smrg
716401395c31Smrg		eval supported=\$$cacheid
716501395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
716601395c31Smrg$as_echo "$supported" >&6; }
716701395c31Smrg		if test "$supported" = "yes" ; then
716801395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
716901395c31Smrg			found="yes"
717001395c31Smrg		fi
717101395c31Smrg	fi
717201395c31Smrg
717301395c31Smrg
717401395c31Smrg
717501395c31Smrg
717601395c31Smrg
717701395c31Smrg
717801395c31Smrg
717901395c31Smrg
718001395c31Smrg
718101395c31Smrg
718201395c31Smrg
718301395c31Smrg
718401395c31Smrg
718501395c31Smrg
718601395c31Smrg
718701395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
718801395c31Smrg
718901395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
719001395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
719101395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
719201395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
719301395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
719401395c31Smrg  $as_echo_n "(cached) " >&6
719501395c31Smrgelse
719601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
719701395c31Smrg/* end confdefs.h.  */
719801395c31Smrgint i;
719901395c31Smrg_ACEOF
720001395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
720101395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
720201395c31Smrgelse
720301395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
720401395c31Smrgfi
720501395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
720601395c31Smrgfi
720701395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
720801395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
720901395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
721001395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
721101395c31Smrgfi
721201395c31Smrg
721301395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
721401395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
721501395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
721601395c31Smrg	fi
721701395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
721801395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
721901395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
722001395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
722101395c31Smrg  $as_echo_n "(cached) " >&6
722201395c31Smrgelse
722301395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
722401395c31Smrg/* end confdefs.h.  */
722501395c31Smrgint i;
722601395c31Smrg_ACEOF
722701395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
722801395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
722901395c31Smrgelse
723001395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
723101395c31Smrgfi
723201395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
723301395c31Smrgfi
723401395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
723501395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
723601395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
723701395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
723801395c31Smrgfi
723901395c31Smrg
724001395c31Smrgfound="no"
724101395c31Smrg
724201395c31Smrg	if test $found = "no" ; then
724301395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
724401395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
724501395c31Smrg		fi
724601395c31Smrg
724701395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
724801395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
724901395c31Smrg		fi
725001395c31Smrg
725101395c31Smrg		CFLAGS="$CFLAGS -Werror=main"
725201395c31Smrg
725301395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
725401395c31Smrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
725501395c31Smrg		cacheid=xorg_cv_cc_flag__Werror_main
725601395c31Smrg		if eval \${$cacheid+:} false; then :
725701395c31Smrg  $as_echo_n "(cached) " >&6
725801395c31Smrgelse
725901395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
726001395c31Smrg/* end confdefs.h.  */
726101395c31Smrgint i;
726201395c31Smrgint
726301395c31Smrgmain ()
726401395c31Smrg{
726501395c31Smrg
726601395c31Smrg  ;
726701395c31Smrg  return 0;
726801395c31Smrg}
726901395c31Smrg_ACEOF
727001395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
727101395c31Smrg  eval $cacheid=yes
727201395c31Smrgelse
727301395c31Smrg  eval $cacheid=no
727401395c31Smrgfi
727501395c31Smrgrm -f core conftest.err conftest.$ac_objext \
727601395c31Smrg    conftest$ac_exeext conftest.$ac_ext
727701395c31Smrgfi
727801395c31Smrg
727901395c31Smrg
728001395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
728101395c31Smrg
728201395c31Smrg		eval supported=\$$cacheid
728301395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
728401395c31Smrg$as_echo "$supported" >&6; }
728501395c31Smrg		if test "$supported" = "yes" ; then
728601395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
728701395c31Smrg			found="yes"
728801395c31Smrg		fi
728901395c31Smrg	fi
729001395c31Smrg
729101395c31Smrg
729201395c31Smrg
729301395c31Smrg
729401395c31Smrg
729501395c31Smrg
729601395c31Smrg
729701395c31Smrg
729801395c31Smrg
729901395c31Smrg
730001395c31Smrg
730101395c31Smrg
730201395c31Smrg
730301395c31Smrg
730401395c31Smrg
730501395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
730601395c31Smrg
730701395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
730801395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
730901395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
731001395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
731101395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
731201395c31Smrg  $as_echo_n "(cached) " >&6
731301395c31Smrgelse
731401395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
731501395c31Smrg/* end confdefs.h.  */
731601395c31Smrgint i;
731701395c31Smrg_ACEOF
731801395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
731901395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
732001395c31Smrgelse
732101395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
732201395c31Smrgfi
732301395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
732401395c31Smrgfi
732501395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
732601395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
732701395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
732801395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
732901395c31Smrgfi
733001395c31Smrg
733101395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
733201395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
733301395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
733401395c31Smrg	fi
733501395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
733601395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
733701395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
733801395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
733901395c31Smrg  $as_echo_n "(cached) " >&6
734001395c31Smrgelse
734101395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
734201395c31Smrg/* end confdefs.h.  */
734301395c31Smrgint i;
734401395c31Smrg_ACEOF
734501395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
734601395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
734701395c31Smrgelse
734801395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
734901395c31Smrgfi
735001395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
735101395c31Smrgfi
735201395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
735301395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
735401395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
735501395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
735601395c31Smrgfi
735701395c31Smrg
735801395c31Smrgfound="no"
735901395c31Smrg
736001395c31Smrg	if test $found = "no" ; then
736101395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
736201395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
736301395c31Smrg		fi
736401395c31Smrg
736501395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
736601395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
736701395c31Smrg		fi
736801395c31Smrg
736901395c31Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
737001395c31Smrg
737101395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
737201395c31Smrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
737301395c31Smrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
737401395c31Smrg		if eval \${$cacheid+:} false; then :
737501395c31Smrg  $as_echo_n "(cached) " >&6
737601395c31Smrgelse
737701395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
737801395c31Smrg/* end confdefs.h.  */
737901395c31Smrgint i;
738001395c31Smrgint
738101395c31Smrgmain ()
738201395c31Smrg{
738301395c31Smrg
738401395c31Smrg  ;
738501395c31Smrg  return 0;
738601395c31Smrg}
738701395c31Smrg_ACEOF
738801395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
738901395c31Smrg  eval $cacheid=yes
739001395c31Smrgelse
739101395c31Smrg  eval $cacheid=no
739201395c31Smrgfi
739301395c31Smrgrm -f core conftest.err conftest.$ac_objext \
739401395c31Smrg    conftest$ac_exeext conftest.$ac_ext
739501395c31Smrgfi
739601395c31Smrg
739701395c31Smrg
739801395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
739901395c31Smrg
740001395c31Smrg		eval supported=\$$cacheid
740101395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
740201395c31Smrg$as_echo "$supported" >&6; }
740301395c31Smrg		if test "$supported" = "yes" ; then
740401395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
740501395c31Smrg			found="yes"
740601395c31Smrg		fi
740701395c31Smrg	fi
740801395c31Smrg
740901395c31Smrg
741001395c31Smrg
741101395c31Smrg
741201395c31Smrg
741301395c31Smrg
741401395c31Smrg
741501395c31Smrg
741601395c31Smrg
741701395c31Smrg
741801395c31Smrg
741901395c31Smrg
742001395c31Smrg
742101395c31Smrg
742201395c31Smrg
742301395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
742401395c31Smrg
742501395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
742601395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
742701395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
742801395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
742901395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
743001395c31Smrg  $as_echo_n "(cached) " >&6
743101395c31Smrgelse
743201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
743301395c31Smrg/* end confdefs.h.  */
743401395c31Smrgint i;
743501395c31Smrg_ACEOF
743601395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
743701395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
743801395c31Smrgelse
743901395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
744001395c31Smrgfi
744101395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
744201395c31Smrgfi
744301395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
744401395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
744501395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
744601395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
744701395c31Smrgfi
744801395c31Smrg
744901395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
745001395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
745101395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
745201395c31Smrg	fi
745301395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
745401395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
745501395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
745601395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
745701395c31Smrg  $as_echo_n "(cached) " >&6
745801395c31Smrgelse
745901395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
746001395c31Smrg/* end confdefs.h.  */
746101395c31Smrgint i;
746201395c31Smrg_ACEOF
746301395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
746401395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
746501395c31Smrgelse
746601395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
746701395c31Smrgfi
746801395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
746901395c31Smrgfi
747001395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
747101395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
747201395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
747301395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
747401395c31Smrgfi
747501395c31Smrg
747601395c31Smrgfound="no"
747701395c31Smrg
747801395c31Smrg	if test $found = "no" ; then
747901395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
748001395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
748101395c31Smrg		fi
748201395c31Smrg
748301395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
748401395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
748501395c31Smrg		fi
748601395c31Smrg
748701395c31Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
748801395c31Smrg
748901395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
749001395c31Smrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
749101395c31Smrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
749201395c31Smrg		if eval \${$cacheid+:} false; then :
749301395c31Smrg  $as_echo_n "(cached) " >&6
749401395c31Smrgelse
749501395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
749601395c31Smrg/* end confdefs.h.  */
749701395c31Smrgint i;
749801395c31Smrgint
749901395c31Smrgmain ()
750001395c31Smrg{
750101395c31Smrg
750201395c31Smrg  ;
750301395c31Smrg  return 0;
750401395c31Smrg}
750501395c31Smrg_ACEOF
750601395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
750701395c31Smrg  eval $cacheid=yes
750801395c31Smrgelse
750901395c31Smrg  eval $cacheid=no
751001395c31Smrgfi
751101395c31Smrgrm -f core conftest.err conftest.$ac_objext \
751201395c31Smrg    conftest$ac_exeext conftest.$ac_ext
751301395c31Smrgfi
751401395c31Smrg
751501395c31Smrg
751601395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
751701395c31Smrg
751801395c31Smrg		eval supported=\$$cacheid
751901395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
752001395c31Smrg$as_echo "$supported" >&6; }
752101395c31Smrg		if test "$supported" = "yes" ; then
752201395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
752301395c31Smrg			found="yes"
752401395c31Smrg		fi
752501395c31Smrg	fi
752601395c31Smrg
752701395c31Smrg
752801395c31Smrg
752901395c31Smrg
753001395c31Smrg
753101395c31Smrg
753201395c31Smrg
753301395c31Smrg
753401395c31Smrg
753501395c31Smrg
753601395c31Smrg
753701395c31Smrg
753801395c31Smrg
753901395c31Smrg
754001395c31Smrg
754101395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
754201395c31Smrg
754301395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
754401395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
754501395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
754601395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
754701395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
754801395c31Smrg  $as_echo_n "(cached) " >&6
754901395c31Smrgelse
755001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
755101395c31Smrg/* end confdefs.h.  */
755201395c31Smrgint i;
755301395c31Smrg_ACEOF
755401395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
755501395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
755601395c31Smrgelse
755701395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
755801395c31Smrgfi
755901395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
756001395c31Smrgfi
756101395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
756201395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
756301395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
756401395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
756501395c31Smrgfi
756601395c31Smrg
756701395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
756801395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
756901395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
757001395c31Smrg	fi
757101395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
757201395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
757301395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
757401395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
757501395c31Smrg  $as_echo_n "(cached) " >&6
757601395c31Smrgelse
757701395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
757801395c31Smrg/* end confdefs.h.  */
757901395c31Smrgint i;
758001395c31Smrg_ACEOF
758101395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
758201395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
758301395c31Smrgelse
758401395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
758501395c31Smrgfi
758601395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
758701395c31Smrgfi
758801395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
758901395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
759001395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
759101395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
759201395c31Smrgfi
759301395c31Smrg
759401395c31Smrgfound="no"
759501395c31Smrg
759601395c31Smrg	if test $found = "no" ; then
759701395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
759801395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
759901395c31Smrg		fi
760001395c31Smrg
760101395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
760201395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
760301395c31Smrg		fi
760401395c31Smrg
760501395c31Smrg		CFLAGS="$CFLAGS -Werror=return-type"
760601395c31Smrg
760701395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
760801395c31Smrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
760901395c31Smrg		cacheid=xorg_cv_cc_flag__Werror_return_type
761001395c31Smrg		if eval \${$cacheid+:} false; then :
761101395c31Smrg  $as_echo_n "(cached) " >&6
761201395c31Smrgelse
761301395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
761401395c31Smrg/* end confdefs.h.  */
761501395c31Smrgint i;
761601395c31Smrgint
761701395c31Smrgmain ()
761801395c31Smrg{
761901395c31Smrg
762001395c31Smrg  ;
762101395c31Smrg  return 0;
762201395c31Smrg}
762301395c31Smrg_ACEOF
762401395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
762501395c31Smrg  eval $cacheid=yes
762601395c31Smrgelse
762701395c31Smrg  eval $cacheid=no
762801395c31Smrgfi
762901395c31Smrgrm -f core conftest.err conftest.$ac_objext \
763001395c31Smrg    conftest$ac_exeext conftest.$ac_ext
763101395c31Smrgfi
763201395c31Smrg
763301395c31Smrg
763401395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
763501395c31Smrg
763601395c31Smrg		eval supported=\$$cacheid
763701395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
763801395c31Smrg$as_echo "$supported" >&6; }
763901395c31Smrg		if test "$supported" = "yes" ; then
764001395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
764101395c31Smrg			found="yes"
764201395c31Smrg		fi
764301395c31Smrg	fi
764401395c31Smrg
764501395c31Smrg	if test $found = "no" ; then
764601395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
764701395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
764801395c31Smrg		fi
764901395c31Smrg
765001395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
765101395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
765201395c31Smrg		fi
765301395c31Smrg
765401395c31Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
765501395c31Smrg
765601395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
765701395c31Smrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
765801395c31Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
765901395c31Smrg		if eval \${$cacheid+:} false; then :
766001395c31Smrg  $as_echo_n "(cached) " >&6
766101395c31Smrgelse
766201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
766301395c31Smrg/* end confdefs.h.  */
766401395c31Smrgint i;
766501395c31Smrgint
766601395c31Smrgmain ()
766701395c31Smrg{
766801395c31Smrg
766901395c31Smrg  ;
767001395c31Smrg  return 0;
767101395c31Smrg}
767201395c31Smrg_ACEOF
767301395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
767401395c31Smrg  eval $cacheid=yes
767501395c31Smrgelse
767601395c31Smrg  eval $cacheid=no
767701395c31Smrgfi
767801395c31Smrgrm -f core conftest.err conftest.$ac_objext \
767901395c31Smrg    conftest$ac_exeext conftest.$ac_ext
768001395c31Smrgfi
768101395c31Smrg
768201395c31Smrg
768301395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
768401395c31Smrg
768501395c31Smrg		eval supported=\$$cacheid
768601395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
768701395c31Smrg$as_echo "$supported" >&6; }
768801395c31Smrg		if test "$supported" = "yes" ; then
768901395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
769001395c31Smrg			found="yes"
769101395c31Smrg		fi
769201395c31Smrg	fi
769301395c31Smrg
769401395c31Smrg
769501395c31Smrg
769601395c31Smrg
769701395c31Smrg
769801395c31Smrg
769901395c31Smrg
770001395c31Smrg
770101395c31Smrg
770201395c31Smrg
770301395c31Smrg
770401395c31Smrg
770501395c31Smrg
770601395c31Smrg
770701395c31Smrg
770801395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
770901395c31Smrg
771001395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
771101395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
771201395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
771301395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
771401395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
771501395c31Smrg  $as_echo_n "(cached) " >&6
771601395c31Smrgelse
771701395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
771801395c31Smrg/* end confdefs.h.  */
771901395c31Smrgint i;
772001395c31Smrg_ACEOF
772101395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
772201395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
772301395c31Smrgelse
772401395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
772501395c31Smrgfi
772601395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
772701395c31Smrgfi
772801395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
772901395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
773001395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
773101395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
773201395c31Smrgfi
773301395c31Smrg
773401395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
773501395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
773601395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
773701395c31Smrg	fi
773801395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
773901395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
774001395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
774101395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
774201395c31Smrg  $as_echo_n "(cached) " >&6
774301395c31Smrgelse
774401395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
774501395c31Smrg/* end confdefs.h.  */
774601395c31Smrgint i;
774701395c31Smrg_ACEOF
774801395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
774901395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
775001395c31Smrgelse
775101395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
775201395c31Smrgfi
775301395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
775401395c31Smrgfi
775501395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
775601395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
775701395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
775801395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
775901395c31Smrgfi
776001395c31Smrg
776101395c31Smrgfound="no"
776201395c31Smrg
776301395c31Smrg	if test $found = "no" ; then
776401395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
776501395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
776601395c31Smrg		fi
776701395c31Smrg
776801395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
776901395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
777001395c31Smrg		fi
777101395c31Smrg
777201395c31Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
777301395c31Smrg
777401395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
777501395c31Smrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
777601395c31Smrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
777701395c31Smrg		if eval \${$cacheid+:} false; then :
777801395c31Smrg  $as_echo_n "(cached) " >&6
777901395c31Smrgelse
778001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
778101395c31Smrg/* end confdefs.h.  */
778201395c31Smrgint i;
778301395c31Smrgint
778401395c31Smrgmain ()
778501395c31Smrg{
778601395c31Smrg
778701395c31Smrg  ;
778801395c31Smrg  return 0;
778901395c31Smrg}
779001395c31Smrg_ACEOF
779101395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
779201395c31Smrg  eval $cacheid=yes
779301395c31Smrgelse
779401395c31Smrg  eval $cacheid=no
779501395c31Smrgfi
779601395c31Smrgrm -f core conftest.err conftest.$ac_objext \
779701395c31Smrg    conftest$ac_exeext conftest.$ac_ext
779801395c31Smrgfi
779901395c31Smrg
780001395c31Smrg
780101395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
780201395c31Smrg
780301395c31Smrg		eval supported=\$$cacheid
780401395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
780501395c31Smrg$as_echo "$supported" >&6; }
780601395c31Smrg		if test "$supported" = "yes" ; then
780701395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
780801395c31Smrg			found="yes"
780901395c31Smrg		fi
781001395c31Smrg	fi
781101395c31Smrg
781201395c31Smrg
781301395c31Smrg
781401395c31Smrg
781501395c31Smrg
781601395c31Smrg
781701395c31Smrg
781801395c31Smrg
781901395c31Smrg
782001395c31Smrg
782101395c31Smrg
782201395c31Smrg
782301395c31Smrg
782401395c31Smrg
782501395c31Smrg
782601395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
782701395c31Smrg
782801395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
782901395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
783001395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
783101395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
783201395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
783301395c31Smrg  $as_echo_n "(cached) " >&6
783401395c31Smrgelse
783501395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783601395c31Smrg/* end confdefs.h.  */
783701395c31Smrgint i;
783801395c31Smrg_ACEOF
783901395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
784001395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
784101395c31Smrgelse
784201395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
784301395c31Smrgfi
784401395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
784501395c31Smrgfi
784601395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
784701395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
784801395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
784901395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
785001395c31Smrgfi
785101395c31Smrg
785201395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
785301395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
785401395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
785501395c31Smrg	fi
785601395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
785701395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
785801395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
785901395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
786001395c31Smrg  $as_echo_n "(cached) " >&6
786101395c31Smrgelse
786201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
786301395c31Smrg/* end confdefs.h.  */
786401395c31Smrgint i;
786501395c31Smrg_ACEOF
786601395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
786701395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
786801395c31Smrgelse
786901395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
787001395c31Smrgfi
787101395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
787201395c31Smrgfi
787301395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
787401395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
787501395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
787601395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
787701395c31Smrgfi
787801395c31Smrg
787901395c31Smrgfound="no"
788001395c31Smrg
788101395c31Smrg	if test $found = "no" ; then
788201395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
788301395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
788401395c31Smrg		fi
788501395c31Smrg
788601395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
788701395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
788801395c31Smrg		fi
788901395c31Smrg
789001395c31Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
789101395c31Smrg
789201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
789301395c31Smrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
789401395c31Smrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
789501395c31Smrg		if eval \${$cacheid+:} false; then :
789601395c31Smrg  $as_echo_n "(cached) " >&6
789701395c31Smrgelse
789801395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
789901395c31Smrg/* end confdefs.h.  */
790001395c31Smrgint i;
790101395c31Smrgint
790201395c31Smrgmain ()
790301395c31Smrg{
790401395c31Smrg
790501395c31Smrg  ;
790601395c31Smrg  return 0;
790701395c31Smrg}
790801395c31Smrg_ACEOF
790901395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
791001395c31Smrg  eval $cacheid=yes
791101395c31Smrgelse
791201395c31Smrg  eval $cacheid=no
791301395c31Smrgfi
791401395c31Smrgrm -f core conftest.err conftest.$ac_objext \
791501395c31Smrg    conftest$ac_exeext conftest.$ac_ext
791601395c31Smrgfi
791701395c31Smrg
791801395c31Smrg
791901395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
792001395c31Smrg
792101395c31Smrg		eval supported=\$$cacheid
792201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
792301395c31Smrg$as_echo "$supported" >&6; }
792401395c31Smrg		if test "$supported" = "yes" ; then
792501395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
792601395c31Smrg			found="yes"
792701395c31Smrg		fi
792801395c31Smrg	fi
792901395c31Smrg
793001395c31Smrg
793101395c31Smrg
793201395c31Smrg
793301395c31Smrg
793401395c31Smrg
793501395c31Smrg
793601395c31Smrg
793701395c31Smrg
793801395c31Smrg
793901395c31Smrg
794001395c31Smrg
794101395c31Smrg
794201395c31Smrg
794301395c31Smrg
794401395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
794501395c31Smrg
794601395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
794701395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
794801395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
794901395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
795001395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
795101395c31Smrg  $as_echo_n "(cached) " >&6
795201395c31Smrgelse
795301395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
795401395c31Smrg/* end confdefs.h.  */
795501395c31Smrgint i;
795601395c31Smrg_ACEOF
795701395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
795801395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
795901395c31Smrgelse
796001395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
796101395c31Smrgfi
796201395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
796301395c31Smrgfi
796401395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
796501395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
796601395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
796701395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
796801395c31Smrgfi
796901395c31Smrg
797001395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
797101395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
797201395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
797301395c31Smrg	fi
797401395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
797501395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
797601395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
797701395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
797801395c31Smrg  $as_echo_n "(cached) " >&6
797901395c31Smrgelse
798001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
798101395c31Smrg/* end confdefs.h.  */
798201395c31Smrgint i;
798301395c31Smrg_ACEOF
798401395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
798501395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
798601395c31Smrgelse
798701395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
798801395c31Smrgfi
798901395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
799001395c31Smrgfi
799101395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
799201395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
799301395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
799401395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
799501395c31Smrgfi
799601395c31Smrg
799701395c31Smrgfound="no"
799801395c31Smrg
799901395c31Smrg	if test $found = "no" ; then
800001395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
800101395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
800201395c31Smrg		fi
800301395c31Smrg
800401395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
800501395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
800601395c31Smrg		fi
800701395c31Smrg
800801395c31Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
800901395c31Smrg
801001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
801101395c31Smrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
801201395c31Smrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
801301395c31Smrg		if eval \${$cacheid+:} false; then :
801401395c31Smrg  $as_echo_n "(cached) " >&6
801501395c31Smrgelse
801601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
801701395c31Smrg/* end confdefs.h.  */
801801395c31Smrgint i;
801901395c31Smrgint
802001395c31Smrgmain ()
802101395c31Smrg{
802201395c31Smrg
802301395c31Smrg  ;
802401395c31Smrg  return 0;
802501395c31Smrg}
802601395c31Smrg_ACEOF
802701395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
802801395c31Smrg  eval $cacheid=yes
802901395c31Smrgelse
803001395c31Smrg  eval $cacheid=no
803101395c31Smrgfi
803201395c31Smrgrm -f core conftest.err conftest.$ac_objext \
803301395c31Smrg    conftest$ac_exeext conftest.$ac_ext
803401395c31Smrgfi
803501395c31Smrg
803601395c31Smrg
803701395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
803801395c31Smrg
803901395c31Smrg		eval supported=\$$cacheid
804001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
804101395c31Smrg$as_echo "$supported" >&6; }
804201395c31Smrg		if test "$supported" = "yes" ; then
804301395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
804401395c31Smrg			found="yes"
804501395c31Smrg		fi
804601395c31Smrg	fi
804701395c31Smrg
804801395c31Smrg
804901395c31Smrg
805001395c31Smrg
805101395c31Smrg
805201395c31Smrg
805301395c31Smrg
805401395c31Smrg
805501395c31Smrg
805601395c31Smrg
805701395c31Smrg
805801395c31Smrg
805901395c31Smrg
806001395c31Smrg
806101395c31Smrg
806201395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
806301395c31Smrg
806401395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
806501395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
806601395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
806701395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
806801395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
806901395c31Smrg  $as_echo_n "(cached) " >&6
807001395c31Smrgelse
807101395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
807201395c31Smrg/* end confdefs.h.  */
807301395c31Smrgint i;
807401395c31Smrg_ACEOF
807501395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
807601395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
807701395c31Smrgelse
807801395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
807901395c31Smrgfi
808001395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
808101395c31Smrgfi
808201395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
808301395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
808401395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
808501395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
808601395c31Smrgfi
808701395c31Smrg
808801395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
808901395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
809001395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
809101395c31Smrg	fi
809201395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
809301395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
809401395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
809501395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
809601395c31Smrg  $as_echo_n "(cached) " >&6
809701395c31Smrgelse
809801395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
809901395c31Smrg/* end confdefs.h.  */
810001395c31Smrgint i;
810101395c31Smrg_ACEOF
810201395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
810301395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
810401395c31Smrgelse
810501395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
810601395c31Smrgfi
810701395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
810801395c31Smrgfi
810901395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
811001395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
811101395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
811201395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
811301395c31Smrgfi
811401395c31Smrg
811501395c31Smrgfound="no"
811601395c31Smrg
811701395c31Smrg	if test $found = "no" ; then
811801395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
811901395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
812001395c31Smrg		fi
812101395c31Smrg
812201395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
812301395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
812401395c31Smrg		fi
812501395c31Smrg
812601395c31Smrg		CFLAGS="$CFLAGS -Werror=address"
812701395c31Smrg
812801395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
812901395c31Smrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
813001395c31Smrg		cacheid=xorg_cv_cc_flag__Werror_address
813101395c31Smrg		if eval \${$cacheid+:} false; then :
813201395c31Smrg  $as_echo_n "(cached) " >&6
813301395c31Smrgelse
813401395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
813501395c31Smrg/* end confdefs.h.  */
813601395c31Smrgint i;
813701395c31Smrgint
813801395c31Smrgmain ()
813901395c31Smrg{
814001395c31Smrg
814101395c31Smrg  ;
814201395c31Smrg  return 0;
814301395c31Smrg}
814401395c31Smrg_ACEOF
814501395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
814601395c31Smrg  eval $cacheid=yes
814701395c31Smrgelse
814801395c31Smrg  eval $cacheid=no
814901395c31Smrgfi
815001395c31Smrgrm -f core conftest.err conftest.$ac_objext \
815101395c31Smrg    conftest$ac_exeext conftest.$ac_ext
815201395c31Smrgfi
815301395c31Smrg
815401395c31Smrg
815501395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
815601395c31Smrg
815701395c31Smrg		eval supported=\$$cacheid
815801395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
815901395c31Smrg$as_echo "$supported" >&6; }
816001395c31Smrg		if test "$supported" = "yes" ; then
816101395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
816201395c31Smrg			found="yes"
816301395c31Smrg		fi
816401395c31Smrg	fi
816501395c31Smrg
816601395c31Smrg
816701395c31Smrg
816801395c31Smrg
816901395c31Smrg
817001395c31Smrg
817101395c31Smrg
817201395c31Smrg
817301395c31Smrg
817401395c31Smrg
817501395c31Smrg
817601395c31Smrg
817701395c31Smrg
817801395c31Smrg
817901395c31Smrg
818001395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
818101395c31Smrg
818201395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
818301395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
818401395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
818501395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
818601395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
818701395c31Smrg  $as_echo_n "(cached) " >&6
818801395c31Smrgelse
818901395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
819001395c31Smrg/* end confdefs.h.  */
819101395c31Smrgint i;
819201395c31Smrg_ACEOF
819301395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
819401395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
819501395c31Smrgelse
819601395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
819701395c31Smrgfi
819801395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
819901395c31Smrgfi
820001395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
820101395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
820201395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
820301395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
820401395c31Smrgfi
820501395c31Smrg
820601395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
820701395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
820801395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
820901395c31Smrg	fi
821001395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
821101395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
821201395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
821301395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
821401395c31Smrg  $as_echo_n "(cached) " >&6
821501395c31Smrgelse
821601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
821701395c31Smrg/* end confdefs.h.  */
821801395c31Smrgint i;
821901395c31Smrg_ACEOF
822001395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
822101395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
822201395c31Smrgelse
822301395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
822401395c31Smrgfi
822501395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
822601395c31Smrgfi
822701395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
822801395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
822901395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
823001395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
823101395c31Smrgfi
823201395c31Smrg
823301395c31Smrgfound="no"
823401395c31Smrg
823501395c31Smrg	if test $found = "no" ; then
823601395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
823701395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
823801395c31Smrg		fi
823901395c31Smrg
824001395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
824101395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
824201395c31Smrg		fi
824301395c31Smrg
824401395c31Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
824501395c31Smrg
824601395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
824701395c31Smrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
824801395c31Smrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
824901395c31Smrg		if eval \${$cacheid+:} false; then :
825001395c31Smrg  $as_echo_n "(cached) " >&6
825101395c31Smrgelse
825201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
825301395c31Smrg/* end confdefs.h.  */
825401395c31Smrgint i;
825501395c31Smrgint
825601395c31Smrgmain ()
825701395c31Smrg{
825801395c31Smrg
825901395c31Smrg  ;
826001395c31Smrg  return 0;
826101395c31Smrg}
826201395c31Smrg_ACEOF
826301395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
826401395c31Smrg  eval $cacheid=yes
826501395c31Smrgelse
826601395c31Smrg  eval $cacheid=no
826701395c31Smrgfi
826801395c31Smrgrm -f core conftest.err conftest.$ac_objext \
826901395c31Smrg    conftest$ac_exeext conftest.$ac_ext
827001395c31Smrgfi
827101395c31Smrg
827201395c31Smrg
827301395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
827401395c31Smrg
827501395c31Smrg		eval supported=\$$cacheid
827601395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
827701395c31Smrg$as_echo "$supported" >&6; }
827801395c31Smrg		if test "$supported" = "yes" ; then
827901395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
828001395c31Smrg			found="yes"
828101395c31Smrg		fi
828201395c31Smrg	fi
828301395c31Smrg
828401395c31Smrg	if test $found = "no" ; then
828501395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
828601395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
828701395c31Smrg		fi
828801395c31Smrg
828901395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
829001395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
829101395c31Smrg		fi
829201395c31Smrg
829301395c31Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
829401395c31Smrg
829501395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
829601395c31Smrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
829701395c31Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
829801395c31Smrg		if eval \${$cacheid+:} false; then :
829901395c31Smrg  $as_echo_n "(cached) " >&6
830001395c31Smrgelse
830101395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
830201395c31Smrg/* end confdefs.h.  */
830301395c31Smrgint i;
830401395c31Smrgint
830501395c31Smrgmain ()
830601395c31Smrg{
830701395c31Smrg
830801395c31Smrg  ;
830901395c31Smrg  return 0;
831001395c31Smrg}
831101395c31Smrg_ACEOF
831201395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
831301395c31Smrg  eval $cacheid=yes
831401395c31Smrgelse
831501395c31Smrg  eval $cacheid=no
831601395c31Smrgfi
831701395c31Smrgrm -f core conftest.err conftest.$ac_objext \
831801395c31Smrg    conftest$ac_exeext conftest.$ac_ext
831901395c31Smrgfi
832001395c31Smrg
832101395c31Smrg
832201395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
832301395c31Smrg
832401395c31Smrg		eval supported=\$$cacheid
832501395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
832601395c31Smrg$as_echo "$supported" >&6; }
832701395c31Smrg		if test "$supported" = "yes" ; then
832801395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
832901395c31Smrg			found="yes"
833001395c31Smrg		fi
833101395c31Smrg	fi
833201395c31Smrg
833301395c31Smrg
833401395c31Smrg
833501395c31Smrg
833601395c31Smrg
833701395c31Smrg
833801395c31Smrg
833901395c31Smrg
834001395c31Smrg
834101395c31Smrg
834201395c31Smrg
834301395c31Smrg
834401395c31Smrg
834501395c31Smrg
834601395c31Smrg
834701395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
834801395c31Smrg
834901395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
835001395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
835101395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
835201395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
835301395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
835401395c31Smrg  $as_echo_n "(cached) " >&6
835501395c31Smrgelse
835601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
835701395c31Smrg/* end confdefs.h.  */
835801395c31Smrgint i;
835901395c31Smrg_ACEOF
836001395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
836101395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
836201395c31Smrgelse
836301395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
836401395c31Smrgfi
836501395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
836601395c31Smrgfi
836701395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
836801395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
836901395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
837001395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
837101395c31Smrgfi
837201395c31Smrg
837301395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
837401395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
837501395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
837601395c31Smrg	fi
837701395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
837801395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
837901395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
838001395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
838101395c31Smrg  $as_echo_n "(cached) " >&6
838201395c31Smrgelse
838301395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
838401395c31Smrg/* end confdefs.h.  */
838501395c31Smrgint i;
838601395c31Smrg_ACEOF
838701395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
838801395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
838901395c31Smrgelse
839001395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
839101395c31Smrgfi
839201395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
839301395c31Smrgfi
839401395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
839501395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
839601395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
839701395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
839801395c31Smrgfi
839901395c31Smrg
840001395c31Smrgfound="no"
840101395c31Smrg
840201395c31Smrg	if test $found = "no" ; then
840301395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
840401395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
840501395c31Smrg		fi
840601395c31Smrg
840701395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
840801395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
840901395c31Smrg		fi
841001395c31Smrg
841101395c31Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
841201395c31Smrg
841301395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
841401395c31Smrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
841501395c31Smrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
841601395c31Smrg		if eval \${$cacheid+:} false; then :
841701395c31Smrg  $as_echo_n "(cached) " >&6
841801395c31Smrgelse
841901395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
842001395c31Smrg/* end confdefs.h.  */
842101395c31Smrgint i;
842201395c31Smrgint
842301395c31Smrgmain ()
842401395c31Smrg{
842501395c31Smrg
842601395c31Smrg  ;
842701395c31Smrg  return 0;
842801395c31Smrg}
842901395c31Smrg_ACEOF
843001395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
843101395c31Smrg  eval $cacheid=yes
843201395c31Smrgelse
843301395c31Smrg  eval $cacheid=no
843401395c31Smrgfi
843501395c31Smrgrm -f core conftest.err conftest.$ac_objext \
843601395c31Smrg    conftest$ac_exeext conftest.$ac_ext
843701395c31Smrgfi
843801395c31Smrg
843901395c31Smrg
844001395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
844101395c31Smrg
844201395c31Smrg		eval supported=\$$cacheid
844301395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
844401395c31Smrg$as_echo "$supported" >&6; }
844501395c31Smrg		if test "$supported" = "yes" ; then
844601395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
844701395c31Smrg			found="yes"
844801395c31Smrg		fi
844901395c31Smrg	fi
845001395c31Smrg
845101395c31Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
845201395c31Smrgelse
845301395c31Smrg{ $as_echo "$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
845401395c31Smrg$as_echo "$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;}
845501395c31Smrg
845601395c31Smrg
845701395c31Smrg
845801395c31Smrg
845901395c31Smrg
846001395c31Smrg
846101395c31Smrg
846201395c31Smrg
846301395c31Smrg
846401395c31Smrg
846501395c31Smrg
846601395c31Smrg
846701395c31Smrg
846801395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
846901395c31Smrg
847001395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
847101395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
847201395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
847301395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
847401395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
847501395c31Smrg  $as_echo_n "(cached) " >&6
847601395c31Smrgelse
847701395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
847801395c31Smrg/* end confdefs.h.  */
847901395c31Smrgint i;
848001395c31Smrg_ACEOF
848101395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
848201395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
848301395c31Smrgelse
848401395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
848501395c31Smrgfi
848601395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
848701395c31Smrgfi
848801395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
848901395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
849001395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
849101395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
849201395c31Smrgfi
849301395c31Smrg
849401395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
849501395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
849601395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
849701395c31Smrg	fi
849801395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
849901395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
850001395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
850101395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
850201395c31Smrg  $as_echo_n "(cached) " >&6
850301395c31Smrgelse
850401395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
850501395c31Smrg/* end confdefs.h.  */
850601395c31Smrgint i;
850701395c31Smrg_ACEOF
850801395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
850901395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
851001395c31Smrgelse
851101395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
851201395c31Smrgfi
851301395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
851401395c31Smrgfi
851501395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
851601395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
851701395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
851801395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
851901395c31Smrgfi
852001395c31Smrg
852101395c31Smrgfound="no"
852201395c31Smrg
852301395c31Smrg	if test $found = "no" ; then
852401395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
852501395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
852601395c31Smrg		fi
852701395c31Smrg
852801395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
852901395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
853001395c31Smrg		fi
853101395c31Smrg
853201395c31Smrg		CFLAGS="$CFLAGS -Wimplicit"
853301395c31Smrg
853401395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
853501395c31Smrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
853601395c31Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
853701395c31Smrg		if eval \${$cacheid+:} false; then :
853801395c31Smrg  $as_echo_n "(cached) " >&6
853901395c31Smrgelse
854001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
854101395c31Smrg/* end confdefs.h.  */
854201395c31Smrgint i;
854301395c31Smrgint
854401395c31Smrgmain ()
854501395c31Smrg{
854601395c31Smrg
854701395c31Smrg  ;
854801395c31Smrg  return 0;
854901395c31Smrg}
855001395c31Smrg_ACEOF
855101395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
855201395c31Smrg  eval $cacheid=yes
855301395c31Smrgelse
855401395c31Smrg  eval $cacheid=no
855501395c31Smrgfi
855601395c31Smrgrm -f core conftest.err conftest.$ac_objext \
855701395c31Smrg    conftest$ac_exeext conftest.$ac_ext
855801395c31Smrgfi
855901395c31Smrg
856001395c31Smrg
856101395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
856201395c31Smrg
856301395c31Smrg		eval supported=\$$cacheid
856401395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
856501395c31Smrg$as_echo "$supported" >&6; }
856601395c31Smrg		if test "$supported" = "yes" ; then
856701395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
856801395c31Smrg			found="yes"
856901395c31Smrg		fi
857001395c31Smrg	fi
857101395c31Smrg
857201395c31Smrg
857301395c31Smrg
857401395c31Smrg
857501395c31Smrg
857601395c31Smrg
857701395c31Smrg
857801395c31Smrg
857901395c31Smrg
858001395c31Smrg
858101395c31Smrg
858201395c31Smrg
858301395c31Smrg
858401395c31Smrg
858501395c31Smrg
858601395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
858701395c31Smrg
858801395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
858901395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
859001395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
859101395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
859201395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
859301395c31Smrg  $as_echo_n "(cached) " >&6
859401395c31Smrgelse
859501395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
859601395c31Smrg/* end confdefs.h.  */
859701395c31Smrgint i;
859801395c31Smrg_ACEOF
859901395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
860001395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
860101395c31Smrgelse
860201395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
860301395c31Smrgfi
860401395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
860501395c31Smrgfi
860601395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
860701395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
860801395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
860901395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
861001395c31Smrgfi
861101395c31Smrg
861201395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
861301395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
861401395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
861501395c31Smrg	fi
861601395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
861701395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
861801395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
861901395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
862001395c31Smrg  $as_echo_n "(cached) " >&6
862101395c31Smrgelse
862201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
862301395c31Smrg/* end confdefs.h.  */
862401395c31Smrgint i;
862501395c31Smrg_ACEOF
862601395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
862701395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
862801395c31Smrgelse
862901395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
863001395c31Smrgfi
863101395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
863201395c31Smrgfi
863301395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
863401395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
863501395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
863601395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
863701395c31Smrgfi
863801395c31Smrg
863901395c31Smrgfound="no"
864001395c31Smrg
864101395c31Smrg	if test $found = "no" ; then
864201395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
864301395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
864401395c31Smrg		fi
864501395c31Smrg
864601395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
864701395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
864801395c31Smrg		fi
864901395c31Smrg
865001395c31Smrg		CFLAGS="$CFLAGS -Wnonnull"
865101395c31Smrg
865201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
865301395c31Smrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
865401395c31Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
865501395c31Smrg		if eval \${$cacheid+:} false; then :
865601395c31Smrg  $as_echo_n "(cached) " >&6
865701395c31Smrgelse
865801395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
865901395c31Smrg/* end confdefs.h.  */
866001395c31Smrgint i;
866101395c31Smrgint
866201395c31Smrgmain ()
866301395c31Smrg{
866401395c31Smrg
866501395c31Smrg  ;
866601395c31Smrg  return 0;
866701395c31Smrg}
866801395c31Smrg_ACEOF
866901395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
867001395c31Smrg  eval $cacheid=yes
867101395c31Smrgelse
867201395c31Smrg  eval $cacheid=no
867301395c31Smrgfi
867401395c31Smrgrm -f core conftest.err conftest.$ac_objext \
867501395c31Smrg    conftest$ac_exeext conftest.$ac_ext
867601395c31Smrgfi
867701395c31Smrg
867801395c31Smrg
867901395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
868001395c31Smrg
868101395c31Smrg		eval supported=\$$cacheid
868201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
868301395c31Smrg$as_echo "$supported" >&6; }
868401395c31Smrg		if test "$supported" = "yes" ; then
868501395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
868601395c31Smrg			found="yes"
868701395c31Smrg		fi
868801395c31Smrg	fi
868901395c31Smrg
869001395c31Smrg
869101395c31Smrg
869201395c31Smrg
869301395c31Smrg
869401395c31Smrg
869501395c31Smrg
869601395c31Smrg
869701395c31Smrg
869801395c31Smrg
869901395c31Smrg
870001395c31Smrg
870101395c31Smrg
870201395c31Smrg
870301395c31Smrg
870401395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
870501395c31Smrg
870601395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
870701395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
870801395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
870901395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
871001395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
871101395c31Smrg  $as_echo_n "(cached) " >&6
871201395c31Smrgelse
871301395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
871401395c31Smrg/* end confdefs.h.  */
871501395c31Smrgint i;
871601395c31Smrg_ACEOF
871701395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
871801395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
871901395c31Smrgelse
872001395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
872101395c31Smrgfi
872201395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
872301395c31Smrgfi
872401395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
872501395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
872601395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
872701395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
872801395c31Smrgfi
872901395c31Smrg
873001395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
873101395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
873201395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
873301395c31Smrg	fi
873401395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
873501395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
873601395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
873701395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
873801395c31Smrg  $as_echo_n "(cached) " >&6
873901395c31Smrgelse
874001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
874101395c31Smrg/* end confdefs.h.  */
874201395c31Smrgint i;
874301395c31Smrg_ACEOF
874401395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
874501395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
874601395c31Smrgelse
874701395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
874801395c31Smrgfi
874901395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
875001395c31Smrgfi
875101395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
875201395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
875301395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
875401395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
875501395c31Smrgfi
875601395c31Smrg
875701395c31Smrgfound="no"
875801395c31Smrg
875901395c31Smrg	if test $found = "no" ; then
876001395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
876101395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
876201395c31Smrg		fi
876301395c31Smrg
876401395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
876501395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
876601395c31Smrg		fi
876701395c31Smrg
876801395c31Smrg		CFLAGS="$CFLAGS -Winit-self"
876901395c31Smrg
877001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
877101395c31Smrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
877201395c31Smrg		cacheid=xorg_cv_cc_flag__Winit_self
877301395c31Smrg		if eval \${$cacheid+:} false; then :
877401395c31Smrg  $as_echo_n "(cached) " >&6
877501395c31Smrgelse
877601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
877701395c31Smrg/* end confdefs.h.  */
877801395c31Smrgint i;
877901395c31Smrgint
878001395c31Smrgmain ()
878101395c31Smrg{
878201395c31Smrg
878301395c31Smrg  ;
878401395c31Smrg  return 0;
878501395c31Smrg}
878601395c31Smrg_ACEOF
878701395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
878801395c31Smrg  eval $cacheid=yes
878901395c31Smrgelse
879001395c31Smrg  eval $cacheid=no
879101395c31Smrgfi
879201395c31Smrgrm -f core conftest.err conftest.$ac_objext \
879301395c31Smrg    conftest$ac_exeext conftest.$ac_ext
879401395c31Smrgfi
879501395c31Smrg
879601395c31Smrg
879701395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
879801395c31Smrg
879901395c31Smrg		eval supported=\$$cacheid
880001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
880101395c31Smrg$as_echo "$supported" >&6; }
880201395c31Smrg		if test "$supported" = "yes" ; then
880301395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
880401395c31Smrg			found="yes"
880501395c31Smrg		fi
880601395c31Smrg	fi
880701395c31Smrg
880801395c31Smrg
880901395c31Smrg
881001395c31Smrg
881101395c31Smrg
881201395c31Smrg
881301395c31Smrg
881401395c31Smrg
881501395c31Smrg
881601395c31Smrg
881701395c31Smrg
881801395c31Smrg
881901395c31Smrg
882001395c31Smrg
882101395c31Smrg
882201395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
882301395c31Smrg
882401395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
882501395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
882601395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
882701395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
882801395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
882901395c31Smrg  $as_echo_n "(cached) " >&6
883001395c31Smrgelse
883101395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
883201395c31Smrg/* end confdefs.h.  */
883301395c31Smrgint i;
883401395c31Smrg_ACEOF
883501395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
883601395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
883701395c31Smrgelse
883801395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
883901395c31Smrgfi
884001395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
884101395c31Smrgfi
884201395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
884301395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
884401395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
884501395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
884601395c31Smrgfi
884701395c31Smrg
884801395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
884901395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
885001395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
885101395c31Smrg	fi
885201395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
885301395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
885401395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
885501395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
885601395c31Smrg  $as_echo_n "(cached) " >&6
885701395c31Smrgelse
885801395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
885901395c31Smrg/* end confdefs.h.  */
886001395c31Smrgint i;
886101395c31Smrg_ACEOF
886201395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
886301395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
886401395c31Smrgelse
886501395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
886601395c31Smrgfi
886701395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
886801395c31Smrgfi
886901395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
887001395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
887101395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
887201395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
887301395c31Smrgfi
887401395c31Smrg
887501395c31Smrgfound="no"
887601395c31Smrg
887701395c31Smrg	if test $found = "no" ; then
887801395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
887901395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
888001395c31Smrg		fi
888101395c31Smrg
888201395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
888301395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
888401395c31Smrg		fi
888501395c31Smrg
888601395c31Smrg		CFLAGS="$CFLAGS -Wmain"
888701395c31Smrg
888801395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
888901395c31Smrg$as_echo_n "checking if $CC supports -Wmain... " >&6; }
889001395c31Smrg		cacheid=xorg_cv_cc_flag__Wmain
889101395c31Smrg		if eval \${$cacheid+:} false; then :
889201395c31Smrg  $as_echo_n "(cached) " >&6
889301395c31Smrgelse
889401395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
889501395c31Smrg/* end confdefs.h.  */
889601395c31Smrgint i;
889701395c31Smrgint
889801395c31Smrgmain ()
889901395c31Smrg{
890001395c31Smrg
890101395c31Smrg  ;
890201395c31Smrg  return 0;
890301395c31Smrg}
890401395c31Smrg_ACEOF
890501395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
890601395c31Smrg  eval $cacheid=yes
890701395c31Smrgelse
890801395c31Smrg  eval $cacheid=no
890901395c31Smrgfi
891001395c31Smrgrm -f core conftest.err conftest.$ac_objext \
891101395c31Smrg    conftest$ac_exeext conftest.$ac_ext
891201395c31Smrgfi
891301395c31Smrg
891401395c31Smrg
891501395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
891601395c31Smrg
891701395c31Smrg		eval supported=\$$cacheid
891801395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
891901395c31Smrg$as_echo "$supported" >&6; }
892001395c31Smrg		if test "$supported" = "yes" ; then
892101395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
892201395c31Smrg			found="yes"
892301395c31Smrg		fi
892401395c31Smrg	fi
892501395c31Smrg
892601395c31Smrg
892701395c31Smrg
892801395c31Smrg
892901395c31Smrg
893001395c31Smrg
893101395c31Smrg
893201395c31Smrg
893301395c31Smrg
893401395c31Smrg
893501395c31Smrg
893601395c31Smrg
893701395c31Smrg
893801395c31Smrg
893901395c31Smrg
894001395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
894101395c31Smrg
894201395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
894301395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
894401395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
894501395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
894601395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
894701395c31Smrg  $as_echo_n "(cached) " >&6
894801395c31Smrgelse
894901395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
895001395c31Smrg/* end confdefs.h.  */
895101395c31Smrgint i;
895201395c31Smrg_ACEOF
895301395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
895401395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
895501395c31Smrgelse
895601395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
895701395c31Smrgfi
895801395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
895901395c31Smrgfi
896001395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
896101395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
896201395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
896301395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
896401395c31Smrgfi
896501395c31Smrg
896601395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
896701395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
896801395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
896901395c31Smrg	fi
897001395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
897101395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
897201395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
897301395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
897401395c31Smrg  $as_echo_n "(cached) " >&6
897501395c31Smrgelse
897601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
897701395c31Smrg/* end confdefs.h.  */
897801395c31Smrgint i;
897901395c31Smrg_ACEOF
898001395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
898101395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
898201395c31Smrgelse
898301395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
898401395c31Smrgfi
898501395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
898601395c31Smrgfi
898701395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
898801395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
898901395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
899001395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
899101395c31Smrgfi
899201395c31Smrg
899301395c31Smrgfound="no"
899401395c31Smrg
899501395c31Smrg	if test $found = "no" ; then
899601395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
899701395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
899801395c31Smrg		fi
899901395c31Smrg
900001395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
900101395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
900201395c31Smrg		fi
900301395c31Smrg
900401395c31Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
900501395c31Smrg
900601395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
900701395c31Smrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
900801395c31Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
900901395c31Smrg		if eval \${$cacheid+:} false; then :
901001395c31Smrg  $as_echo_n "(cached) " >&6
901101395c31Smrgelse
901201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
901301395c31Smrg/* end confdefs.h.  */
901401395c31Smrgint i;
901501395c31Smrgint
901601395c31Smrgmain ()
901701395c31Smrg{
901801395c31Smrg
901901395c31Smrg  ;
902001395c31Smrg  return 0;
902101395c31Smrg}
902201395c31Smrg_ACEOF
902301395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
902401395c31Smrg  eval $cacheid=yes
902501395c31Smrgelse
902601395c31Smrg  eval $cacheid=no
902701395c31Smrgfi
902801395c31Smrgrm -f core conftest.err conftest.$ac_objext \
902901395c31Smrg    conftest$ac_exeext conftest.$ac_ext
903001395c31Smrgfi
903101395c31Smrg
903201395c31Smrg
903301395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
903401395c31Smrg
903501395c31Smrg		eval supported=\$$cacheid
903601395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
903701395c31Smrg$as_echo "$supported" >&6; }
903801395c31Smrg		if test "$supported" = "yes" ; then
903901395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
904001395c31Smrg			found="yes"
904101395c31Smrg		fi
904201395c31Smrg	fi
904301395c31Smrg
904401395c31Smrg
904501395c31Smrg
904601395c31Smrg
904701395c31Smrg
904801395c31Smrg
904901395c31Smrg
905001395c31Smrg
905101395c31Smrg
905201395c31Smrg
905301395c31Smrg
905401395c31Smrg
905501395c31Smrg
905601395c31Smrg
905701395c31Smrg
905801395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
905901395c31Smrg
906001395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
906101395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
906201395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
906301395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
906401395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
906501395c31Smrg  $as_echo_n "(cached) " >&6
906601395c31Smrgelse
906701395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
906801395c31Smrg/* end confdefs.h.  */
906901395c31Smrgint i;
907001395c31Smrg_ACEOF
907101395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
907201395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
907301395c31Smrgelse
907401395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
907501395c31Smrgfi
907601395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
907701395c31Smrgfi
907801395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
907901395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
908001395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
908101395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
908201395c31Smrgfi
908301395c31Smrg
908401395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
908501395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
908601395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
908701395c31Smrg	fi
908801395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
908901395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
909001395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
909101395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
909201395c31Smrg  $as_echo_n "(cached) " >&6
909301395c31Smrgelse
909401395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
909501395c31Smrg/* end confdefs.h.  */
909601395c31Smrgint i;
909701395c31Smrg_ACEOF
909801395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
909901395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
910001395c31Smrgelse
910101395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
910201395c31Smrgfi
910301395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
910401395c31Smrgfi
910501395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
910601395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
910701395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
910801395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
910901395c31Smrgfi
911001395c31Smrg
911101395c31Smrgfound="no"
911201395c31Smrg
911301395c31Smrg	if test $found = "no" ; then
911401395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
911501395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
911601395c31Smrg		fi
911701395c31Smrg
911801395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
911901395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
912001395c31Smrg		fi
912101395c31Smrg
912201395c31Smrg		CFLAGS="$CFLAGS -Wsequence-point"
912301395c31Smrg
912401395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
912501395c31Smrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
912601395c31Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
912701395c31Smrg		if eval \${$cacheid+:} false; then :
912801395c31Smrg  $as_echo_n "(cached) " >&6
912901395c31Smrgelse
913001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
913101395c31Smrg/* end confdefs.h.  */
913201395c31Smrgint i;
913301395c31Smrgint
913401395c31Smrgmain ()
913501395c31Smrg{
913601395c31Smrg
913701395c31Smrg  ;
913801395c31Smrg  return 0;
913901395c31Smrg}
914001395c31Smrg_ACEOF
914101395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
914201395c31Smrg  eval $cacheid=yes
914301395c31Smrgelse
914401395c31Smrg  eval $cacheid=no
914501395c31Smrgfi
914601395c31Smrgrm -f core conftest.err conftest.$ac_objext \
914701395c31Smrg    conftest$ac_exeext conftest.$ac_ext
914801395c31Smrgfi
914901395c31Smrg
915001395c31Smrg
915101395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
915201395c31Smrg
915301395c31Smrg		eval supported=\$$cacheid
915401395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
915501395c31Smrg$as_echo "$supported" >&6; }
915601395c31Smrg		if test "$supported" = "yes" ; then
915701395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
915801395c31Smrg			found="yes"
915901395c31Smrg		fi
916001395c31Smrg	fi
916101395c31Smrg
916201395c31Smrg
916301395c31Smrg
916401395c31Smrg
916501395c31Smrg
916601395c31Smrg
916701395c31Smrg
916801395c31Smrg
916901395c31Smrg
917001395c31Smrg
917101395c31Smrg
917201395c31Smrg
917301395c31Smrg
917401395c31Smrg
917501395c31Smrg
917601395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
917701395c31Smrg
917801395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
917901395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
918001395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
918101395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
918201395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
918301395c31Smrg  $as_echo_n "(cached) " >&6
918401395c31Smrgelse
918501395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
918601395c31Smrg/* end confdefs.h.  */
918701395c31Smrgint i;
918801395c31Smrg_ACEOF
918901395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
919001395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
919101395c31Smrgelse
919201395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
919301395c31Smrgfi
919401395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
919501395c31Smrgfi
919601395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
919701395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
919801395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
919901395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
920001395c31Smrgfi
920101395c31Smrg
920201395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
920301395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
920401395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
920501395c31Smrg	fi
920601395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
920701395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
920801395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
920901395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
921001395c31Smrg  $as_echo_n "(cached) " >&6
921101395c31Smrgelse
921201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
921301395c31Smrg/* end confdefs.h.  */
921401395c31Smrgint i;
921501395c31Smrg_ACEOF
921601395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
921701395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
921801395c31Smrgelse
921901395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
922001395c31Smrgfi
922101395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
922201395c31Smrgfi
922301395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
922401395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
922501395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
922601395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
922701395c31Smrgfi
922801395c31Smrg
922901395c31Smrgfound="no"
923001395c31Smrg
923101395c31Smrg	if test $found = "no" ; then
923201395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
923301395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
923401395c31Smrg		fi
923501395c31Smrg
923601395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
923701395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
923801395c31Smrg		fi
923901395c31Smrg
924001395c31Smrg		CFLAGS="$CFLAGS -Wreturn-type"
924101395c31Smrg
924201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
924301395c31Smrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
924401395c31Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
924501395c31Smrg		if eval \${$cacheid+:} false; then :
924601395c31Smrg  $as_echo_n "(cached) " >&6
924701395c31Smrgelse
924801395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
924901395c31Smrg/* end confdefs.h.  */
925001395c31Smrgint i;
925101395c31Smrgint
925201395c31Smrgmain ()
925301395c31Smrg{
925401395c31Smrg
925501395c31Smrg  ;
925601395c31Smrg  return 0;
925701395c31Smrg}
925801395c31Smrg_ACEOF
925901395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
926001395c31Smrg  eval $cacheid=yes
926101395c31Smrgelse
926201395c31Smrg  eval $cacheid=no
926301395c31Smrgfi
926401395c31Smrgrm -f core conftest.err conftest.$ac_objext \
926501395c31Smrg    conftest$ac_exeext conftest.$ac_ext
926601395c31Smrgfi
926701395c31Smrg
926801395c31Smrg
926901395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
927001395c31Smrg
927101395c31Smrg		eval supported=\$$cacheid
927201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
927301395c31Smrg$as_echo "$supported" >&6; }
927401395c31Smrg		if test "$supported" = "yes" ; then
927501395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
927601395c31Smrg			found="yes"
927701395c31Smrg		fi
927801395c31Smrg	fi
927901395c31Smrg
928001395c31Smrg
928101395c31Smrg
928201395c31Smrg
928301395c31Smrg
928401395c31Smrg
928501395c31Smrg
928601395c31Smrg
928701395c31Smrg
928801395c31Smrg
928901395c31Smrg
929001395c31Smrg
929101395c31Smrg
929201395c31Smrg
929301395c31Smrg
929401395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
929501395c31Smrg
929601395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
929701395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
929801395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
929901395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
930001395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
930101395c31Smrg  $as_echo_n "(cached) " >&6
930201395c31Smrgelse
930301395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
930401395c31Smrg/* end confdefs.h.  */
930501395c31Smrgint i;
930601395c31Smrg_ACEOF
930701395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
930801395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
930901395c31Smrgelse
931001395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
931101395c31Smrgfi
931201395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
931301395c31Smrgfi
931401395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
931501395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
931601395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
931701395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
931801395c31Smrgfi
931901395c31Smrg
932001395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
932101395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
932201395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
932301395c31Smrg	fi
932401395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
932501395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
932601395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
932701395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
932801395c31Smrg  $as_echo_n "(cached) " >&6
932901395c31Smrgelse
933001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
933101395c31Smrg/* end confdefs.h.  */
933201395c31Smrgint i;
933301395c31Smrg_ACEOF
933401395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
933501395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
933601395c31Smrgelse
933701395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
933801395c31Smrgfi
933901395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
934001395c31Smrgfi
934101395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
934201395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
934301395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
934401395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
934501395c31Smrgfi
934601395c31Smrg
934701395c31Smrgfound="no"
934801395c31Smrg
934901395c31Smrg	if test $found = "no" ; then
935001395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
935101395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
935201395c31Smrg		fi
935301395c31Smrg
935401395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
935501395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
935601395c31Smrg		fi
935701395c31Smrg
935801395c31Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
935901395c31Smrg
936001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
936101395c31Smrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
936201395c31Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
936301395c31Smrg		if eval \${$cacheid+:} false; then :
936401395c31Smrg  $as_echo_n "(cached) " >&6
936501395c31Smrgelse
936601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
936701395c31Smrg/* end confdefs.h.  */
936801395c31Smrgint i;
936901395c31Smrgint
937001395c31Smrgmain ()
937101395c31Smrg{
937201395c31Smrg
937301395c31Smrg  ;
937401395c31Smrg  return 0;
937501395c31Smrg}
937601395c31Smrg_ACEOF
937701395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
937801395c31Smrg  eval $cacheid=yes
937901395c31Smrgelse
938001395c31Smrg  eval $cacheid=no
938101395c31Smrgfi
938201395c31Smrgrm -f core conftest.err conftest.$ac_objext \
938301395c31Smrg    conftest$ac_exeext conftest.$ac_ext
938401395c31Smrgfi
938501395c31Smrg
938601395c31Smrg
938701395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
938801395c31Smrg
938901395c31Smrg		eval supported=\$$cacheid
939001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
939101395c31Smrg$as_echo "$supported" >&6; }
939201395c31Smrg		if test "$supported" = "yes" ; then
939301395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
939401395c31Smrg			found="yes"
939501395c31Smrg		fi
939601395c31Smrg	fi
939701395c31Smrg
939801395c31Smrg
939901395c31Smrg
940001395c31Smrg
940101395c31Smrg
940201395c31Smrg
940301395c31Smrg
940401395c31Smrg
940501395c31Smrg
940601395c31Smrg
940701395c31Smrg
940801395c31Smrg
940901395c31Smrg
941001395c31Smrg
941101395c31Smrg
941201395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
941301395c31Smrg
941401395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
941501395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
941601395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
941701395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
941801395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
941901395c31Smrg  $as_echo_n "(cached) " >&6
942001395c31Smrgelse
942101395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
942201395c31Smrg/* end confdefs.h.  */
942301395c31Smrgint i;
942401395c31Smrg_ACEOF
942501395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
942601395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
942701395c31Smrgelse
942801395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
942901395c31Smrgfi
943001395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
943101395c31Smrgfi
943201395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
943301395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
943401395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
943501395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
943601395c31Smrgfi
943701395c31Smrg
943801395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
943901395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
944001395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
944101395c31Smrg	fi
944201395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
944301395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
944401395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
944501395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
944601395c31Smrg  $as_echo_n "(cached) " >&6
944701395c31Smrgelse
944801395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944901395c31Smrg/* end confdefs.h.  */
945001395c31Smrgint i;
945101395c31Smrg_ACEOF
945201395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
945301395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
945401395c31Smrgelse
945501395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
945601395c31Smrgfi
945701395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
945801395c31Smrgfi
945901395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
946001395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
946101395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
946201395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
946301395c31Smrgfi
946401395c31Smrg
946501395c31Smrgfound="no"
946601395c31Smrg
946701395c31Smrg	if test $found = "no" ; then
946801395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
946901395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
947001395c31Smrg		fi
947101395c31Smrg
947201395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
947301395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
947401395c31Smrg		fi
947501395c31Smrg
947601395c31Smrg		CFLAGS="$CFLAGS -Warray-bounds"
947701395c31Smrg
947801395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
947901395c31Smrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
948001395c31Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
948101395c31Smrg		if eval \${$cacheid+:} false; then :
948201395c31Smrg  $as_echo_n "(cached) " >&6
948301395c31Smrgelse
948401395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
948501395c31Smrg/* end confdefs.h.  */
948601395c31Smrgint i;
948701395c31Smrgint
948801395c31Smrgmain ()
948901395c31Smrg{
949001395c31Smrg
949101395c31Smrg  ;
949201395c31Smrg  return 0;
949301395c31Smrg}
949401395c31Smrg_ACEOF
949501395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
949601395c31Smrg  eval $cacheid=yes
949701395c31Smrgelse
949801395c31Smrg  eval $cacheid=no
949901395c31Smrgfi
950001395c31Smrgrm -f core conftest.err conftest.$ac_objext \
950101395c31Smrg    conftest$ac_exeext conftest.$ac_ext
950201395c31Smrgfi
950301395c31Smrg
950401395c31Smrg
950501395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
950601395c31Smrg
950701395c31Smrg		eval supported=\$$cacheid
950801395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
950901395c31Smrg$as_echo "$supported" >&6; }
951001395c31Smrg		if test "$supported" = "yes" ; then
951101395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
951201395c31Smrg			found="yes"
951301395c31Smrg		fi
951401395c31Smrg	fi
951501395c31Smrg
951601395c31Smrg
951701395c31Smrg
951801395c31Smrg
951901395c31Smrg
952001395c31Smrg
952101395c31Smrg
952201395c31Smrg
952301395c31Smrg
952401395c31Smrg
952501395c31Smrg
952601395c31Smrg
952701395c31Smrg
952801395c31Smrg
952901395c31Smrg
953001395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
953101395c31Smrg
953201395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
953301395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
953401395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
953501395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
953601395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
953701395c31Smrg  $as_echo_n "(cached) " >&6
953801395c31Smrgelse
953901395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
954001395c31Smrg/* end confdefs.h.  */
954101395c31Smrgint i;
954201395c31Smrg_ACEOF
954301395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
954401395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
954501395c31Smrgelse
954601395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
954701395c31Smrgfi
954801395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
954901395c31Smrgfi
955001395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
955101395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
955201395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
955301395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
955401395c31Smrgfi
955501395c31Smrg
955601395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
955701395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
955801395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
955901395c31Smrg	fi
956001395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
956101395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
956201395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
956301395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
956401395c31Smrg  $as_echo_n "(cached) " >&6
956501395c31Smrgelse
956601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
956701395c31Smrg/* end confdefs.h.  */
956801395c31Smrgint i;
956901395c31Smrg_ACEOF
957001395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
957101395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
957201395c31Smrgelse
957301395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
957401395c31Smrgfi
957501395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
957601395c31Smrgfi
957701395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
957801395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
957901395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
958001395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
958101395c31Smrgfi
958201395c31Smrg
958301395c31Smrgfound="no"
958401395c31Smrg
958501395c31Smrg	if test $found = "no" ; then
958601395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
958701395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
958801395c31Smrg		fi
958901395c31Smrg
959001395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
959101395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
959201395c31Smrg		fi
959301395c31Smrg
959401395c31Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
959501395c31Smrg
959601395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
959701395c31Smrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
959801395c31Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
959901395c31Smrg		if eval \${$cacheid+:} false; then :
960001395c31Smrg  $as_echo_n "(cached) " >&6
960101395c31Smrgelse
960201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
960301395c31Smrg/* end confdefs.h.  */
960401395c31Smrgint i;
960501395c31Smrgint
960601395c31Smrgmain ()
960701395c31Smrg{
960801395c31Smrg
960901395c31Smrg  ;
961001395c31Smrg  return 0;
961101395c31Smrg}
961201395c31Smrg_ACEOF
961301395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
961401395c31Smrg  eval $cacheid=yes
961501395c31Smrgelse
961601395c31Smrg  eval $cacheid=no
961701395c31Smrgfi
961801395c31Smrgrm -f core conftest.err conftest.$ac_objext \
961901395c31Smrg    conftest$ac_exeext conftest.$ac_ext
962001395c31Smrgfi
962101395c31Smrg
962201395c31Smrg
962301395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
962401395c31Smrg
962501395c31Smrg		eval supported=\$$cacheid
962601395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
962701395c31Smrg$as_echo "$supported" >&6; }
962801395c31Smrg		if test "$supported" = "yes" ; then
962901395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
963001395c31Smrg			found="yes"
963101395c31Smrg		fi
963201395c31Smrg	fi
963301395c31Smrg
963401395c31Smrg
963501395c31Smrg
963601395c31Smrg
963701395c31Smrg
963801395c31Smrg
963901395c31Smrg
964001395c31Smrg
964101395c31Smrg
964201395c31Smrg
964301395c31Smrg
964401395c31Smrg
964501395c31Smrg
964601395c31Smrg
964701395c31Smrg
964801395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
964901395c31Smrg
965001395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
965101395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
965201395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
965301395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
965401395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
965501395c31Smrg  $as_echo_n "(cached) " >&6
965601395c31Smrgelse
965701395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
965801395c31Smrg/* end confdefs.h.  */
965901395c31Smrgint i;
966001395c31Smrg_ACEOF
966101395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
966201395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
966301395c31Smrgelse
966401395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
966501395c31Smrgfi
966601395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
966701395c31Smrgfi
966801395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
966901395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
967001395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
967101395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
967201395c31Smrgfi
967301395c31Smrg
967401395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
967501395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
967601395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
967701395c31Smrg	fi
967801395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
967901395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
968001395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
968101395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
968201395c31Smrg  $as_echo_n "(cached) " >&6
968301395c31Smrgelse
968401395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
968501395c31Smrg/* end confdefs.h.  */
968601395c31Smrgint i;
968701395c31Smrg_ACEOF
968801395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
968901395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
969001395c31Smrgelse
969101395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
969201395c31Smrgfi
969301395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
969401395c31Smrgfi
969501395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
969601395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
969701395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
969801395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
969901395c31Smrgfi
970001395c31Smrg
970101395c31Smrgfound="no"
970201395c31Smrg
970301395c31Smrg	if test $found = "no" ; then
970401395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
970501395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
970601395c31Smrg		fi
970701395c31Smrg
970801395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
970901395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
971001395c31Smrg		fi
971101395c31Smrg
971201395c31Smrg		CFLAGS="$CFLAGS -Waddress"
971301395c31Smrg
971401395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
971501395c31Smrg$as_echo_n "checking if $CC supports -Waddress... " >&6; }
971601395c31Smrg		cacheid=xorg_cv_cc_flag__Waddress
971701395c31Smrg		if eval \${$cacheid+:} false; then :
971801395c31Smrg  $as_echo_n "(cached) " >&6
971901395c31Smrgelse
972001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
972101395c31Smrg/* end confdefs.h.  */
972201395c31Smrgint i;
972301395c31Smrgint
972401395c31Smrgmain ()
972501395c31Smrg{
972601395c31Smrg
972701395c31Smrg  ;
972801395c31Smrg  return 0;
972901395c31Smrg}
973001395c31Smrg_ACEOF
973101395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
973201395c31Smrg  eval $cacheid=yes
973301395c31Smrgelse
973401395c31Smrg  eval $cacheid=no
973501395c31Smrgfi
973601395c31Smrgrm -f core conftest.err conftest.$ac_objext \
973701395c31Smrg    conftest$ac_exeext conftest.$ac_ext
973801395c31Smrgfi
973901395c31Smrg
974001395c31Smrg
974101395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
974201395c31Smrg
974301395c31Smrg		eval supported=\$$cacheid
974401395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
974501395c31Smrg$as_echo "$supported" >&6; }
974601395c31Smrg		if test "$supported" = "yes" ; then
974701395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
974801395c31Smrg			found="yes"
974901395c31Smrg		fi
975001395c31Smrg	fi
975101395c31Smrg
975201395c31Smrg
975301395c31Smrg
975401395c31Smrg
975501395c31Smrg
975601395c31Smrg
975701395c31Smrg
975801395c31Smrg
975901395c31Smrg
976001395c31Smrg
976101395c31Smrg
976201395c31Smrg
976301395c31Smrg
976401395c31Smrg
976501395c31Smrg
976601395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
976701395c31Smrg
976801395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
976901395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
977001395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
977101395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
977201395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
977301395c31Smrg  $as_echo_n "(cached) " >&6
977401395c31Smrgelse
977501395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
977601395c31Smrg/* end confdefs.h.  */
977701395c31Smrgint i;
977801395c31Smrg_ACEOF
977901395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
978001395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
978101395c31Smrgelse
978201395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
978301395c31Smrgfi
978401395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
978501395c31Smrgfi
978601395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
978701395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
978801395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
978901395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
979001395c31Smrgfi
979101395c31Smrg
979201395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
979301395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
979401395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
979501395c31Smrg	fi
979601395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
979701395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
979801395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
979901395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
980001395c31Smrg  $as_echo_n "(cached) " >&6
980101395c31Smrgelse
980201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
980301395c31Smrg/* end confdefs.h.  */
980401395c31Smrgint i;
980501395c31Smrg_ACEOF
980601395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
980701395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
980801395c31Smrgelse
980901395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
981001395c31Smrgfi
981101395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
981201395c31Smrgfi
981301395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
981401395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
981501395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
981601395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
981701395c31Smrgfi
981801395c31Smrg
981901395c31Smrgfound="no"
982001395c31Smrg
982101395c31Smrg	if test $found = "no" ; then
982201395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
982301395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
982401395c31Smrg		fi
982501395c31Smrg
982601395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
982701395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
982801395c31Smrg		fi
982901395c31Smrg
983001395c31Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
983101395c31Smrg
983201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
983301395c31Smrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
983401395c31Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
983501395c31Smrg		if eval \${$cacheid+:} false; then :
983601395c31Smrg  $as_echo_n "(cached) " >&6
983701395c31Smrgelse
983801395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
983901395c31Smrg/* end confdefs.h.  */
984001395c31Smrgint i;
984101395c31Smrgint
984201395c31Smrgmain ()
984301395c31Smrg{
984401395c31Smrg
984501395c31Smrg  ;
984601395c31Smrg  return 0;
984701395c31Smrg}
984801395c31Smrg_ACEOF
984901395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
985001395c31Smrg  eval $cacheid=yes
985101395c31Smrgelse
985201395c31Smrg  eval $cacheid=no
985301395c31Smrgfi
985401395c31Smrgrm -f core conftest.err conftest.$ac_objext \
985501395c31Smrg    conftest$ac_exeext conftest.$ac_ext
985601395c31Smrgfi
985701395c31Smrg
985801395c31Smrg
985901395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
986001395c31Smrg
986101395c31Smrg		eval supported=\$$cacheid
986201395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
986301395c31Smrg$as_echo "$supported" >&6; }
986401395c31Smrg		if test "$supported" = "yes" ; then
986501395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
986601395c31Smrg			found="yes"
986701395c31Smrg		fi
986801395c31Smrg	fi
986901395c31Smrg
987001395c31Smrg
987101395c31Smrg
987201395c31Smrg
987301395c31Smrg
987401395c31Smrg
987501395c31Smrg
987601395c31Smrg
987701395c31Smrg
987801395c31Smrg
987901395c31Smrg
988001395c31Smrg
988101395c31Smrg
988201395c31Smrg
988301395c31Smrg
988401395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
988501395c31Smrg
988601395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
988701395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
988801395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
988901395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
989001395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
989101395c31Smrg  $as_echo_n "(cached) " >&6
989201395c31Smrgelse
989301395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
989401395c31Smrg/* end confdefs.h.  */
989501395c31Smrgint i;
989601395c31Smrg_ACEOF
989701395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
989801395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
989901395c31Smrgelse
990001395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
990101395c31Smrgfi
990201395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
990301395c31Smrgfi
990401395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
990501395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
990601395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
990701395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
990801395c31Smrgfi
990901395c31Smrg
991001395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
991101395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
991201395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
991301395c31Smrg	fi
991401395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
991501395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
991601395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
991701395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
991801395c31Smrg  $as_echo_n "(cached) " >&6
991901395c31Smrgelse
992001395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
992101395c31Smrg/* end confdefs.h.  */
992201395c31Smrgint i;
992301395c31Smrg_ACEOF
992401395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
992501395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
992601395c31Smrgelse
992701395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
992801395c31Smrgfi
992901395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
993001395c31Smrgfi
993101395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
993201395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
993301395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
993401395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
993501395c31Smrgfi
993601395c31Smrg
993701395c31Smrgfound="no"
993801395c31Smrg
993901395c31Smrg	if test $found = "no" ; then
994001395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
994101395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
994201395c31Smrg		fi
994301395c31Smrg
994401395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
994501395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
994601395c31Smrg		fi
994701395c31Smrg
994801395c31Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
994901395c31Smrg
995001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
995101395c31Smrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
995201395c31Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
995301395c31Smrg		if eval \${$cacheid+:} false; then :
995401395c31Smrg  $as_echo_n "(cached) " >&6
995501395c31Smrgelse
995601395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
995701395c31Smrg/* end confdefs.h.  */
995801395c31Smrgint i;
995901395c31Smrgint
996001395c31Smrgmain ()
996101395c31Smrg{
996201395c31Smrg
996301395c31Smrg  ;
996401395c31Smrg  return 0;
996501395c31Smrg}
996601395c31Smrg_ACEOF
996701395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
996801395c31Smrg  eval $cacheid=yes
996901395c31Smrgelse
997001395c31Smrg  eval $cacheid=no
997101395c31Smrgfi
997201395c31Smrgrm -f core conftest.err conftest.$ac_objext \
997301395c31Smrg    conftest$ac_exeext conftest.$ac_ext
997401395c31Smrgfi
997501395c31Smrg
997601395c31Smrg
997701395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
997801395c31Smrg
997901395c31Smrg		eval supported=\$$cacheid
998001395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
998101395c31Smrg$as_echo "$supported" >&6; }
998201395c31Smrg		if test "$supported" = "yes" ; then
998301395c31Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
998401395c31Smrg			found="yes"
998501395c31Smrg		fi
998601395c31Smrg	fi
998701395c31Smrg
998801395c31Smrg
998901395c31Smrgfi
999001395c31Smrg
999101395c31Smrg
999201395c31Smrg
999301395c31Smrg
999401395c31Smrg
999501395c31Smrg
999601395c31Smrg
999701395c31Smrg		CWARNFLAGS="$BASE_CFLAGS"
999801395c31Smrg		if  test "x$GCC" = xyes ; then
999901395c31Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
1000001395c31Smrg		fi
1000101395c31Smrg
1000201395c31Smrg
1000301395c31Smrg
1000401395c31Smrg
1000501395c31Smrg
1000601395c31Smrg
1000701395c31Smrg
1000801395c31Smrg
1000901395c31Smrg# Check whether --enable-strict-compilation was given.
1001001395c31Smrgif test "${enable_strict_compilation+set}" = set; then :
1001101395c31Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
1001201395c31Smrgelse
1001301395c31Smrg  STRICT_COMPILE=no
1001401395c31Smrgfi
1001501395c31Smrg
1001601395c31Smrg
1001701395c31Smrg
1001801395c31Smrg
1001901395c31Smrg
1002001395c31Smrg
1002101395c31SmrgSTRICT_CFLAGS=""
1002201395c31Smrg
1002301395c31Smrg
1002401395c31Smrg
1002501395c31Smrg
1002601395c31Smrg
1002701395c31Smrg
1002801395c31Smrg
1002901395c31Smrg
1003001395c31Smrg
1003101395c31Smrg
1003201395c31Smrg
1003301395c31Smrg
1003401395c31Smrg
1003501395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1003601395c31Smrg
1003701395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1003801395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1003901395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1004001395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1004101395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1004201395c31Smrg  $as_echo_n "(cached) " >&6
1004301395c31Smrgelse
1004401395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1004501395c31Smrg/* end confdefs.h.  */
1004601395c31Smrgint i;
1004701395c31Smrg_ACEOF
1004801395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
1004901395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1005001395c31Smrgelse
1005101395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1005201395c31Smrgfi
1005301395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1005401395c31Smrgfi
1005501395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1005601395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1005701395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1005801395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1005901395c31Smrgfi
1006001395c31Smrg
1006101395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1006201395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1006301395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1006401395c31Smrg	fi
1006501395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1006601395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1006701395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1006801395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1006901395c31Smrg  $as_echo_n "(cached) " >&6
1007001395c31Smrgelse
1007101395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1007201395c31Smrg/* end confdefs.h.  */
1007301395c31Smrgint i;
1007401395c31Smrg_ACEOF
1007501395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
1007601395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1007701395c31Smrgelse
1007801395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1007901395c31Smrgfi
1008001395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1008101395c31Smrgfi
1008201395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1008301395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1008401395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1008501395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1008601395c31Smrgfi
1008701395c31Smrg
1008801395c31Smrgfound="no"
1008901395c31Smrg
1009001395c31Smrg	if test $found = "no" ; then
1009101395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1009201395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1009301395c31Smrg		fi
1009401395c31Smrg
1009501395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1009601395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1009701395c31Smrg		fi
1009801395c31Smrg
1009901395c31Smrg		CFLAGS="$CFLAGS -pedantic"
1010001395c31Smrg
1010101395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
1010201395c31Smrg$as_echo_n "checking if $CC supports -pedantic... " >&6; }
1010301395c31Smrg		cacheid=xorg_cv_cc_flag__pedantic
1010401395c31Smrg		if eval \${$cacheid+:} false; then :
1010501395c31Smrg  $as_echo_n "(cached) " >&6
1010601395c31Smrgelse
1010701395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1010801395c31Smrg/* end confdefs.h.  */
1010901395c31Smrgint i;
1011001395c31Smrgint
1011101395c31Smrgmain ()
1011201395c31Smrg{
1011301395c31Smrg
1011401395c31Smrg  ;
1011501395c31Smrg  return 0;
1011601395c31Smrg}
1011701395c31Smrg_ACEOF
1011801395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
1011901395c31Smrg  eval $cacheid=yes
1012001395c31Smrgelse
1012101395c31Smrg  eval $cacheid=no
1012201395c31Smrgfi
1012301395c31Smrgrm -f core conftest.err conftest.$ac_objext \
1012401395c31Smrg    conftest$ac_exeext conftest.$ac_ext
1012501395c31Smrgfi
1012601395c31Smrg
1012701395c31Smrg
1012801395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1012901395c31Smrg
1013001395c31Smrg		eval supported=\$$cacheid
1013101395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1013201395c31Smrg$as_echo "$supported" >&6; }
1013301395c31Smrg		if test "$supported" = "yes" ; then
1013401395c31Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
1013501395c31Smrg			found="yes"
1013601395c31Smrg		fi
1013701395c31Smrg	fi
1013801395c31Smrg
1013901395c31Smrg
1014001395c31Smrg
1014101395c31Smrg
1014201395c31Smrg
1014301395c31Smrg
1014401395c31Smrg
1014501395c31Smrg
1014601395c31Smrg
1014701395c31Smrg
1014801395c31Smrg
1014901395c31Smrg
1015001395c31Smrg
1015101395c31Smrg
1015201395c31Smrg
1015301395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1015401395c31Smrg
1015501395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1015601395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1015701395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1015801395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1015901395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1016001395c31Smrg  $as_echo_n "(cached) " >&6
1016101395c31Smrgelse
1016201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1016301395c31Smrg/* end confdefs.h.  */
1016401395c31Smrgint i;
1016501395c31Smrg_ACEOF
1016601395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
1016701395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1016801395c31Smrgelse
1016901395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1017001395c31Smrgfi
1017101395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1017201395c31Smrgfi
1017301395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1017401395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1017501395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1017601395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1017701395c31Smrgfi
1017801395c31Smrg
1017901395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1018001395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1018101395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1018201395c31Smrg	fi
1018301395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1018401395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1018501395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1018601395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1018701395c31Smrg  $as_echo_n "(cached) " >&6
1018801395c31Smrgelse
1018901395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1019001395c31Smrg/* end confdefs.h.  */
1019101395c31Smrgint i;
1019201395c31Smrg_ACEOF
1019301395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
1019401395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1019501395c31Smrgelse
1019601395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1019701395c31Smrgfi
1019801395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1019901395c31Smrgfi
1020001395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1020101395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1020201395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1020301395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1020401395c31Smrgfi
1020501395c31Smrg
1020601395c31Smrgfound="no"
1020701395c31Smrg
1020801395c31Smrg	if test $found = "no" ; then
1020901395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1021001395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1021101395c31Smrg		fi
1021201395c31Smrg
1021301395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1021401395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1021501395c31Smrg		fi
1021601395c31Smrg
1021701395c31Smrg		CFLAGS="$CFLAGS -Werror"
1021801395c31Smrg
1021901395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
1022001395c31Smrg$as_echo_n "checking if $CC supports -Werror... " >&6; }
1022101395c31Smrg		cacheid=xorg_cv_cc_flag__Werror
1022201395c31Smrg		if eval \${$cacheid+:} false; then :
1022301395c31Smrg  $as_echo_n "(cached) " >&6
1022401395c31Smrgelse
1022501395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1022601395c31Smrg/* end confdefs.h.  */
1022701395c31Smrgint i;
1022801395c31Smrgint
1022901395c31Smrgmain ()
1023001395c31Smrg{
1023101395c31Smrg
1023201395c31Smrg  ;
1023301395c31Smrg  return 0;
1023401395c31Smrg}
1023501395c31Smrg_ACEOF
1023601395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
1023701395c31Smrg  eval $cacheid=yes
1023801395c31Smrgelse
1023901395c31Smrg  eval $cacheid=no
1024001395c31Smrgfi
1024101395c31Smrgrm -f core conftest.err conftest.$ac_objext \
1024201395c31Smrg    conftest$ac_exeext conftest.$ac_ext
1024301395c31Smrgfi
1024401395c31Smrg
1024501395c31Smrg
1024601395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1024701395c31Smrg
1024801395c31Smrg		eval supported=\$$cacheid
1024901395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1025001395c31Smrg$as_echo "$supported" >&6; }
1025101395c31Smrg		if test "$supported" = "yes" ; then
1025201395c31Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
1025301395c31Smrg			found="yes"
1025401395c31Smrg		fi
1025501395c31Smrg	fi
1025601395c31Smrg
1025701395c31Smrg	if test $found = "no" ; then
1025801395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1025901395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1026001395c31Smrg		fi
1026101395c31Smrg
1026201395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1026301395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1026401395c31Smrg		fi
1026501395c31Smrg
1026601395c31Smrg		CFLAGS="$CFLAGS -errwarn"
1026701395c31Smrg
1026801395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
1026901395c31Smrg$as_echo_n "checking if $CC supports -errwarn... " >&6; }
1027001395c31Smrg		cacheid=xorg_cv_cc_flag__errwarn
1027101395c31Smrg		if eval \${$cacheid+:} false; then :
1027201395c31Smrg  $as_echo_n "(cached) " >&6
1027301395c31Smrgelse
1027401395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1027501395c31Smrg/* end confdefs.h.  */
1027601395c31Smrgint i;
1027701395c31Smrgint
1027801395c31Smrgmain ()
1027901395c31Smrg{
1028001395c31Smrg
1028101395c31Smrg  ;
1028201395c31Smrg  return 0;
1028301395c31Smrg}
1028401395c31Smrg_ACEOF
1028501395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
1028601395c31Smrg  eval $cacheid=yes
1028701395c31Smrgelse
1028801395c31Smrg  eval $cacheid=no
1028901395c31Smrgfi
1029001395c31Smrgrm -f core conftest.err conftest.$ac_objext \
1029101395c31Smrg    conftest$ac_exeext conftest.$ac_ext
1029201395c31Smrgfi
1029301395c31Smrg
1029401395c31Smrg
1029501395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1029601395c31Smrg
1029701395c31Smrg		eval supported=\$$cacheid
1029801395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1029901395c31Smrg$as_echo "$supported" >&6; }
1030001395c31Smrg		if test "$supported" = "yes" ; then
1030101395c31Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
1030201395c31Smrg			found="yes"
1030301395c31Smrg		fi
1030401395c31Smrg	fi
1030501395c31Smrg
1030601395c31Smrg
1030701395c31Smrg
1030801395c31Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
1030901395c31Smrg# activate it with -Werror, so we add it here explicitly.
1031001395c31Smrg
1031101395c31Smrg
1031201395c31Smrg
1031301395c31Smrg
1031401395c31Smrg
1031501395c31Smrg
1031601395c31Smrg
1031701395c31Smrg
1031801395c31Smrg
1031901395c31Smrg
1032001395c31Smrg
1032101395c31Smrg
1032201395c31Smrg
1032301395c31Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1032401395c31Smrg
1032501395c31Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1032601395c31Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1032701395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1032801395c31Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1032901395c31Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1033001395c31Smrg  $as_echo_n "(cached) " >&6
1033101395c31Smrgelse
1033201395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1033301395c31Smrg/* end confdefs.h.  */
1033401395c31Smrgint i;
1033501395c31Smrg_ACEOF
1033601395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
1033701395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1033801395c31Smrgelse
1033901395c31Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1034001395c31Smrgfi
1034101395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1034201395c31Smrgfi
1034301395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1034401395c31Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1034501395c31Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1034601395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1034701395c31Smrgfi
1034801395c31Smrg
1034901395c31Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1035001395c31Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1035101395c31Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1035201395c31Smrg	fi
1035301395c31Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1035401395c31Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1035501395c31Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1035601395c31Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1035701395c31Smrg  $as_echo_n "(cached) " >&6
1035801395c31Smrgelse
1035901395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1036001395c31Smrg/* end confdefs.h.  */
1036101395c31Smrgint i;
1036201395c31Smrg_ACEOF
1036301395c31Smrgif ac_fn_c_try_compile "$LINENO"; then :
1036401395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1036501395c31Smrgelse
1036601395c31Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1036701395c31Smrgfi
1036801395c31Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1036901395c31Smrgfi
1037001395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1037101395c31Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1037201395c31Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1037301395c31Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1037401395c31Smrgfi
1037501395c31Smrg
1037601395c31Smrgfound="no"
1037701395c31Smrg
1037801395c31Smrg	if test $found = "no" ; then
1037901395c31Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1038001395c31Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1038101395c31Smrg		fi
1038201395c31Smrg
1038301395c31Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1038401395c31Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1038501395c31Smrg		fi
1038601395c31Smrg
1038701395c31Smrg		CFLAGS="$CFLAGS -Werror=attributes"
1038801395c31Smrg
1038901395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
1039001395c31Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
1039101395c31Smrg		cacheid=xorg_cv_cc_flag__Werror_attributes
1039201395c31Smrg		if eval \${$cacheid+:} false; then :
1039301395c31Smrg  $as_echo_n "(cached) " >&6
1039401395c31Smrgelse
1039501395c31Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1039601395c31Smrg/* end confdefs.h.  */
1039701395c31Smrgint i;
1039801395c31Smrgint
1039901395c31Smrgmain ()
1040001395c31Smrg{
1040101395c31Smrg
1040201395c31Smrg  ;
1040301395c31Smrg  return 0;
1040401395c31Smrg}
1040501395c31Smrg_ACEOF
1040601395c31Smrgif ac_fn_c_try_link "$LINENO"; then :
1040701395c31Smrg  eval $cacheid=yes
1040801395c31Smrgelse
1040901395c31Smrg  eval $cacheid=no
1041001395c31Smrgfi
1041101395c31Smrgrm -f core conftest.err conftest.$ac_objext \
1041201395c31Smrg    conftest$ac_exeext conftest.$ac_ext
1041301395c31Smrgfi
1041401395c31Smrg
1041501395c31Smrg
1041601395c31Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1041701395c31Smrg
1041801395c31Smrg		eval supported=\$$cacheid
1041901395c31Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1042001395c31Smrg$as_echo "$supported" >&6; }
1042101395c31Smrg		if test "$supported" = "yes" ; then
1042201395c31Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
1042301395c31Smrg			found="yes"
1042401395c31Smrg		fi
1042501395c31Smrg	fi
1042601395c31Smrg
1042701395c31Smrg
1042801395c31Smrg
1042901395c31Smrgif test "x$STRICT_COMPILE" = "xyes"; then
1043001395c31Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
1043101395c31Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
1043201395c31Smrgfi
1043301395c31Smrg
1043401395c31Smrg
1043501395c31Smrg
1043601395c31Smrg
1043701395c31Smrg
1043801395c31Smrg
1043901395c31Smrgcat >>confdefs.h <<_ACEOF
1044001395c31Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
1044101395c31Smrg_ACEOF
1044201395c31Smrg
1044301395c31Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
1044401395c31Smrg	if test "x$PVM" = "x"; then
1044501395c31Smrg		PVM="0"
1044601395c31Smrg	fi
1044701395c31Smrg
1044801395c31Smrgcat >>confdefs.h <<_ACEOF
1044901395c31Smrg#define PACKAGE_VERSION_MINOR $PVM
1045001395c31Smrg_ACEOF
1045101395c31Smrg
1045201395c31Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
1045301395c31Smrg	if test "x$PVP" = "x"; then
1045401395c31Smrg		PVP="0"
1045501395c31Smrg	fi
1045601395c31Smrg
1045701395c31Smrgcat >>confdefs.h <<_ACEOF
1045801395c31Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
1045901395c31Smrg_ACEOF
1046001395c31Smrg
1046101395c31Smrg
1046201395c31Smrg
1046301395c31SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
1046401395c31Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
1046501395c31Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
1046601395c31Smrgtouch \$(top_srcdir)/ChangeLog; \
1046701395c31Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
1046801395c31Smrg
1046901395c31Smrg
1047001395c31Smrg
1047101395c31Smrg
1047201395c31Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
1047301395c31SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
1047401395c31Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
1047501395c31Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
1047601395c31Smrgtouch \$(top_srcdir)/INSTALL; \
1047701395c31Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
1047801395c31Smrg
1047901395c31Smrg
1048001395c31Smrg
1048101395c31Smrg
1048201395c31Smrg
1048301395c31Smrg
1048401395c31Smrgcase $host_os in
1048501395c31Smrg    solaris*)
1048601395c31Smrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
1048701395c31Smrg        # check for a man page file found in later versions that use
1048801395c31Smrg        # traditional section numbers instead
1048901395c31Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
1049001395c31Smrg$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
1049101395c31Smrgif ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
1049201395c31Smrg  $as_echo_n "(cached) " >&6
1049301395c31Smrgelse
1049401395c31Smrg  test "$cross_compiling" = yes &&
1049501395c31Smrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
1049601395c31Smrgif test -r "/usr/share/man/man7/attributes.7"; then
1049701395c31Smrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
1049801395c31Smrgelse
1049901395c31Smrg  ac_cv_file__usr_share_man_man7_attributes_7=no
1050001395c31Smrgfi
1050101395c31Smrgfi
1050201395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
1050301395c31Smrg$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
1050401395c31Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
1050501395c31Smrg  SYSV_MAN_SECTIONS=false
1050601395c31Smrgelse
1050701395c31Smrg  SYSV_MAN_SECTIONS=true
1050801395c31Smrgfi
1050901395c31Smrg
1051001395c31Smrg        ;;
1051101395c31Smrg    *) SYSV_MAN_SECTIONS=false ;;
1051201395c31Smrgesac
1051301395c31Smrg
1051401395c31Smrgif test x$APP_MAN_SUFFIX = x    ; then
1051501395c31Smrg    APP_MAN_SUFFIX=1
1051601395c31Smrgfi
105178255a313Smrgif test x$APP_MAN_DIR = x    ; then
105188255a313Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
105198255a313Smrgfi
105208255a313Smrg
105218255a313Smrgif test x$LIB_MAN_SUFFIX = x    ; then
105228255a313Smrg    LIB_MAN_SUFFIX=3
105238255a313Smrgfi
105248255a313Smrgif test x$LIB_MAN_DIR = x    ; then
105258255a313Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
105268255a313Smrgfi
105278255a313Smrg
105288255a313Smrgif test x$FILE_MAN_SUFFIX = x    ; then
1052901395c31Smrg    case $SYSV_MAN_SECTIONS in
1053001395c31Smrg	true)				FILE_MAN_SUFFIX=4  ;;
1053101395c31Smrg	*)				FILE_MAN_SUFFIX=5  ;;
105328255a313Smrg    esac
105338255a313Smrgfi
105348255a313Smrgif test x$FILE_MAN_DIR = x    ; then
105358255a313Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
105368255a313Smrgfi
105378255a313Smrg
105388255a313Smrgif test x$MISC_MAN_SUFFIX = x    ; then
1053901395c31Smrg    case $SYSV_MAN_SECTIONS in
1054001395c31Smrg	true)				MISC_MAN_SUFFIX=5  ;;
1054101395c31Smrg	*)				MISC_MAN_SUFFIX=7  ;;
105428255a313Smrg    esac
105438255a313Smrgfi
105448255a313Smrgif test x$MISC_MAN_DIR = x    ; then
105458255a313Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
105468255a313Smrgfi
105478255a313Smrg
105488255a313Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
1054901395c31Smrg    case $SYSV_MAN_SECTIONS in
1055001395c31Smrg	true)				DRIVER_MAN_SUFFIX=7  ;;
1055101395c31Smrg	*)				DRIVER_MAN_SUFFIX=4  ;;
105528255a313Smrg    esac
105538255a313Smrgfi
105548255a313Smrgif test x$DRIVER_MAN_DIR = x    ; then
105558255a313Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
105568255a313Smrgfi
105578255a313Smrg
105588255a313Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
1055901395c31Smrg    case $SYSV_MAN_SECTIONS in
1056001395c31Smrg	true)				ADMIN_MAN_SUFFIX=1m ;;
1056101395c31Smrg	*)				ADMIN_MAN_SUFFIX=8  ;;
105628255a313Smrg    esac
105638255a313Smrgfi
105648255a313Smrgif test x$ADMIN_MAN_DIR = x    ; then
105658255a313Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
105668255a313Smrgfi
105678255a313Smrg
105688255a313Smrg
105698255a313Smrg
105708255a313Smrg
105718255a313Smrg
105728255a313Smrg
105738255a313Smrg
105748255a313Smrg
105758255a313Smrg
105768255a313Smrg
105778255a313Smrg
105788255a313Smrg
105798255a313Smrg
105808255a313Smrg
105818255a313Smrg
10582de7ed6e8SmrgXORG_MAN_PAGE="X Version 11"
105838255a313Smrg
10584de7ed6e8SmrgMAN_SUBSTS="\
10585de7ed6e8Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10586de7ed6e8Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10587de7ed6e8Smrg	-e 's|__xservername__|Xorg|g' \
10588de7ed6e8Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
10589de7ed6e8Smrg	-e 's|__projectroot__|\$(prefix)|g' \
10590de7ed6e8Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10591de7ed6e8Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10592de7ed6e8Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10593de7ed6e8Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10594de7ed6e8Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10595de7ed6e8Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10596de7ed6e8Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
105978255a313Smrg
105988255a313Smrg
105998255a313Smrg
10600de7ed6e8Smrg# Check whether --enable-silent-rules was given.
10601de7ed6e8Smrgif test "${enable_silent_rules+set}" = set; then :
10602de7ed6e8Smrg  enableval=$enable_silent_rules;
106038255a313Smrgfi
106048255a313Smrg
1060501395c31Smrgcase $enable_silent_rules in # (((
1060601395c31Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
1060701395c31Smrg   no) AM_DEFAULT_VERBOSITY=1;;
1060801395c31Smrg    *) AM_DEFAULT_VERBOSITY=0;;
10609de7ed6e8Smrgesac
1061001395c31Smrgam_make=${MAKE-make}
1061101395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
1061201395c31Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
1061301395c31Smrgif ${am_cv_make_support_nested_variables+:} false; then :
1061401395c31Smrg  $as_echo_n "(cached) " >&6
1061501395c31Smrgelse
1061601395c31Smrg  if $as_echo 'TRUE=$(BAR$(V))
1061701395c31SmrgBAR0=false
1061801395c31SmrgBAR1=true
1061901395c31SmrgV=1
1062001395c31Smrgam__doit:
1062101395c31Smrg	@$(TRUE)
1062201395c31Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
1062301395c31Smrg  am_cv_make_support_nested_variables=yes
1062401395c31Smrgelse
1062501395c31Smrg  am_cv_make_support_nested_variables=no
1062601395c31Smrgfi
1062701395c31Smrgfi
1062801395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
1062901395c31Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
1063001395c31Smrgif test $am_cv_make_support_nested_variables = yes; then
1063101395c31Smrg    AM_V='$(V)'
1063201395c31Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1063301395c31Smrgelse
1063401395c31Smrg  AM_V=$AM_DEFAULT_VERBOSITY
1063501395c31Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1063601395c31Smrgfi
10637de7ed6e8SmrgAM_BACKSLASH='\'
106388255a313Smrg
106398255a313Smrg
106408255a313Smrg
106418255a313Smrg
10642de7ed6e8Smrg
10643de7ed6e8Smrg# Require X.Org's font util macros 1.2 or later
106448255a313Smrg
106458255a313Smrg
1064692bb16f8Smrg
1064792bb16f8Smrg
1064892bb16f8Smrg
1064992bb16f8Smrg
1065092bb16f8Smrg
1065192bb16f8Smrg
1065292bb16f8Smrg
1065392bb16f8Smrg
1065492bb16f8Smrg
1065592bb16f8Smrg
1065692bb16f8Smrg# mkfontscale
1065792bb16f8Smrg
106588255a313Smrg	# Extract the first word of "mkfontscale", so it can be a program name with args.
1065992bb16f8Smrgset dummy mkfontscale; ac_word=$2
10660de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
106618255a313Smrg$as_echo_n "checking for $ac_word... " >&6; }
10662de7ed6e8Smrgif ${ac_cv_path_MKFONTSCALE+:} false; then :
106638255a313Smrg  $as_echo_n "(cached) " >&6
1066492bb16f8Smrgelse
1066592bb16f8Smrg  case $MKFONTSCALE in
1066692bb16f8Smrg  [\\/]* | ?:[\\/]*)
1066792bb16f8Smrg  ac_cv_path_MKFONTSCALE="$MKFONTSCALE" # Let the user override the test with a path.
1066892bb16f8Smrg  ;;
1066992bb16f8Smrg  *)
1067092bb16f8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1067192bb16f8Smrgfor as_dir in $PATH
1067292bb16f8Smrgdo
1067392bb16f8Smrg  IFS=$as_save_IFS
1067492bb16f8Smrg  test -z "$as_dir" && as_dir=.
10675de7ed6e8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
1067601395c31Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1067792bb16f8Smrg    ac_cv_path_MKFONTSCALE="$as_dir/$ac_word$ac_exec_ext"
10678de7ed6e8Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1067992bb16f8Smrg    break 2
1068092bb16f8Smrg  fi
1068192bb16f8Smrgdone
10682de7ed6e8Smrg  done
1068392bb16f8SmrgIFS=$as_save_IFS
1068492bb16f8Smrg
1068592bb16f8Smrg  ;;
1068692bb16f8Smrgesac
1068792bb16f8Smrgfi
1068892bb16f8SmrgMKFONTSCALE=$ac_cv_path_MKFONTSCALE
1068992bb16f8Smrgif test -n "$MKFONTSCALE"; then
10690de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKFONTSCALE" >&5
106918255a313Smrg$as_echo "$MKFONTSCALE" >&6; }
1069292bb16f8Smrgelse
10693de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
106948255a313Smrg$as_echo "no" >&6; }
1069592bb16f8Smrgfi
1069692bb16f8Smrg
1069792bb16f8Smrg
10698de7ed6e8Smrg	if test x"$MKFONTSCALE" = x; then
10699de7ed6e8Smrg		as_fn_error $? "mkfontscale is required to build $PACKAGE_NAME." "$LINENO" 5
107008255a313Smrg	fi
107018255a313Smrg
1070292bb16f8Smrg
1070392bb16f8Smrg# Choose whether or not to compress encodings - default is to compress all
1070492bb16f8Smrg
10705de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if small encodings should be compressed" >&5
107068255a313Smrg$as_echo_n "checking if small encodings should be compressed... " >&6; }
1070792bb16f8Smrg# Check whether --enable-gzip-small-encodings was given.
10708de7ed6e8Smrgif test "${enable_gzip_small_encodings+set}" = set; then :
1070992bb16f8Smrg  enableval=$enable_gzip_small_encodings; GZIP_SMALL="$enableval"
1071092bb16f8Smrgelse
1071192bb16f8Smrg  GZIP_SMALL="yes"
1071292bb16f8Smrgfi
1071392bb16f8Smrg
107148255a313Smrg if test x$GZIP_SMALL = xyes; then
1071592bb16f8Smrg  GZIP_SMALL_TRUE=
1071692bb16f8Smrg  GZIP_SMALL_FALSE='#'
1071792bb16f8Smrgelse
1071892bb16f8Smrg  GZIP_SMALL_TRUE='#'
1071992bb16f8Smrg  GZIP_SMALL_FALSE=
1072092bb16f8Smrgfi
1072192bb16f8Smrg
10722de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GZIP_SMALL}" >&5
107238255a313Smrg$as_echo "${GZIP_SMALL}" >&6; }
1072492bb16f8Smrg
10725de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if large encodings should be compressed" >&5
107268255a313Smrg$as_echo_n "checking if large encodings should be compressed... " >&6; }
1072792bb16f8Smrg# Check whether --enable-gzip-large-encodings was given.
10728de7ed6e8Smrgif test "${enable_gzip_large_encodings+set}" = set; then :
1072992bb16f8Smrg  enableval=$enable_gzip_large_encodings; GZIP_LARGE="$enableval"
1073092bb16f8Smrgelse
1073192bb16f8Smrg  GZIP_LARGE="yes"
1073292bb16f8Smrgfi
1073392bb16f8Smrg
107348255a313Smrg if test x$GZIP_LARGE = xyes; then
1073592bb16f8Smrg  GZIP_LARGE_TRUE=
1073692bb16f8Smrg  GZIP_LARGE_FALSE='#'
1073792bb16f8Smrgelse
1073892bb16f8Smrg  GZIP_LARGE_TRUE='#'
1073992bb16f8Smrg  GZIP_LARGE_FALSE=
1074092bb16f8Smrgfi
1074192bb16f8Smrg
10742de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GZIP_LARGE}" >&5
107438255a313Smrg$as_echo "${GZIP_LARGE}" >&6; }
1074492bb16f8Smrg
1074592bb16f8Smrg# gzip
1074692bb16f8Smrg
1074792bb16f8Smrgif test x$GZIP_SMALL = xyes -o x$GZIP_LARGE = xyes ; then
1074892bb16f8Smrg    # Extract the first word of "gzip", so it can be a program name with args.
1074992bb16f8Smrgset dummy gzip; ac_word=$2
10750de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
107518255a313Smrg$as_echo_n "checking for $ac_word... " >&6; }
10752de7ed6e8Smrgif ${ac_cv_path_GZIP+:} false; then :
107538255a313Smrg  $as_echo_n "(cached) " >&6
1075492bb16f8Smrgelse
1075592bb16f8Smrg  case $GZIP in
1075692bb16f8Smrg  [\\/]* | ?:[\\/]*)
1075792bb16f8Smrg  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
1075892bb16f8Smrg  ;;
1075992bb16f8Smrg  *)
1076092bb16f8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1076192bb16f8Smrgfor as_dir in $PATH
1076292bb16f8Smrgdo
1076392bb16f8Smrg  IFS=$as_save_IFS
1076492bb16f8Smrg  test -z "$as_dir" && as_dir=.
10765de7ed6e8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
1076601395c31Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1076792bb16f8Smrg    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
10768de7ed6e8Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
107698255a313Smrg    break 2
107708255a313Smrg  fi
107718255a313Smrgdone
10772de7ed6e8Smrg  done
107738255a313SmrgIFS=$as_save_IFS
1077492bb16f8Smrg
10775de7ed6e8Smrg  ;;
107768255a313Smrgesac
10777de7ed6e8Smrgfi
10778de7ed6e8SmrgGZIP=$ac_cv_path_GZIP
10779de7ed6e8Smrgif test -n "$GZIP"; then
10780de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
10781de7ed6e8Smrg$as_echo "$GZIP" >&6; }
1078292bb16f8Smrgelse
10783de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784de7ed6e8Smrg$as_echo "no" >&6; }
1078592bb16f8Smrgfi
1078692bb16f8Smrg
107878255a313Smrg
10788de7ed6e8Smrg    if [ -z $GZIP ]; then
10789de7ed6e8Smrg	as_fn_error $? "gzip is needed to compress font encodings" "$LINENO" 5
10790de7ed6e8Smrg    fi
107918255a313Smrgfi
107928255a313Smrg
107938255a313Smrg
107948255a313Smrg
10795de7ed6e8Smrg
10796de7ed6e8Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
107978255a313Smrg$as_echo_n "checking for root directory for font files... " >&6; }
107988255a313Smrg
107998255a313Smrg# Check whether --with-fontrootdir was given.
10800de7ed6e8Smrgif test "${with_fontrootdir+set}" = set; then :
108018255a313Smrg  withval=$with_fontrootdir; FONTROOTDIR="$withval"
108028255a313Smrgfi
108038255a313Smrg
108048255a313Smrg	# if --with-fontrootdir not specified...
108058255a313Smrg	if test "x${FONTROOTDIR}" = "x"; then
108068255a313Smrg		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
108078255a313Smrg	fi
108088255a313Smrg	# ...and if pkg-config didn't find fontdir in fontutil.pc...
108098255a313Smrg	if test "x${FONTROOTDIR}" = "x"; then
108108255a313Smrg		FONTROOTDIR="${datadir}/fonts/X11"
1081192bb16f8Smrg	fi
1081292bb16f8Smrg
10813de7ed6e8Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
108148255a313Smrg$as_echo "${FONTROOTDIR}" >&6; }
108158255a313Smrg
108168255a313Smrg
108178255a313Smrg
108188255a313Smrg
10819de7ed6e8Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5
108208255a313Smrg$as_echo_n "checking for directory for encodings files... " >&6; }
108218255a313Smrg
108228255a313Smrg# Check whether --with-encodingsdir was given.
10823de7ed6e8Smrgif test "${with_encodingsdir+set}" = set; then :
108248255a313Smrg  withval=$with_encodingsdir; ENCODINGSDIR="${withval}"
108258255a313Smrgelse
108268255a313Smrg  ENCODINGSDIR='${FONTROOTDIR}/encodings'
108278255a313Smrgfi
108288255a313Smrg
108298255a313Smrg
10830de7ed6e8Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5
108318255a313Smrg$as_echo "${ENCODINGSDIR}" >&6; }
108328255a313Smrg
1083392bb16f8Smrg
1083492bb16f8Smrgac_config_files="$ac_config_files Makefile large/Makefile"
1083592bb16f8Smrg
1083692bb16f8Smrgcat >confcache <<\_ACEOF
1083792bb16f8Smrg# This file is a shell script that caches the results of configure
1083892bb16f8Smrg# tests run on this system so they can be shared between configure
1083992bb16f8Smrg# scripts and configure runs, see configure's option --config-cache.
1084092bb16f8Smrg# It is not useful on other systems.  If it contains results you don't
1084192bb16f8Smrg# want to keep, you may remove or edit it.
1084292bb16f8Smrg#
1084392bb16f8Smrg# config.status only pays attention to the cache file if you give it
1084492bb16f8Smrg# the --recheck option to rerun configure.
1084592bb16f8Smrg#
1084692bb16f8Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
1084792bb16f8Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
1084892bb16f8Smrg# following values.
1084992bb16f8Smrg
1085092bb16f8Smrg_ACEOF
1085192bb16f8Smrg
1085292bb16f8Smrg# The following way of writing the cache mishandles newlines in values,
1085392bb16f8Smrg# but we know of no workaround that is simple, portable, and efficient.
1085492bb16f8Smrg# So, we kill variables containing newlines.
1085592bb16f8Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
1085692bb16f8Smrg# and sets the high bit in the cache file unless we assign to the vars.
1085792bb16f8Smrg(
1085892bb16f8Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1085992bb16f8Smrg    eval ac_val=\$$ac_var
1086092bb16f8Smrg    case $ac_val in #(
1086192bb16f8Smrg    *${as_nl}*)
1086292bb16f8Smrg      case $ac_var in #(
10863de7ed6e8Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
108648255a313Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1086592bb16f8Smrg      esac
1086692bb16f8Smrg      case $ac_var in #(
1086792bb16f8Smrg      _ | IFS | as_nl) ;; #(
108688255a313Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10869de7ed6e8Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1087092bb16f8Smrg      esac ;;
1087192bb16f8Smrg    esac
1087292bb16f8Smrg  done
1087392bb16f8Smrg
1087492bb16f8Smrg  (set) 2>&1 |
1087592bb16f8Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
1087692bb16f8Smrg    *${as_nl}ac_space=\ *)
10877de7ed6e8Smrg      # `set' does not quote correctly, so add quotes: double-quote
10878de7ed6e8Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
1087992bb16f8Smrg      sed -n \
1088092bb16f8Smrg	"s/'/'\\\\''/g;
1088192bb16f8Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1088292bb16f8Smrg      ;; #(
1088392bb16f8Smrg    *)
1088492bb16f8Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
1088592bb16f8Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1088692bb16f8Smrg      ;;
1088792bb16f8Smrg    esac |
1088892bb16f8Smrg    sort
1088992bb16f8Smrg) |
1089092bb16f8Smrg  sed '
1089192bb16f8Smrg     /^ac_cv_env_/b end
1089292bb16f8Smrg     t clear
1089392bb16f8Smrg     :clear
1089492bb16f8Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1089592bb16f8Smrg     t end
1089692bb16f8Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1089792bb16f8Smrg     :end' >>confcache
1089892bb16f8Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1089992bb16f8Smrg  if test -w "$cache_file"; then
10900de7ed6e8Smrg    if test "x$cache_file" != "x/dev/null"; then
10901de7ed6e8Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
109028255a313Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
10903de7ed6e8Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
10904de7ed6e8Smrg	cat confcache >"$cache_file"
10905de7ed6e8Smrg      else
10906de7ed6e8Smrg        case $cache_file in #(
10907de7ed6e8Smrg        */* | ?:*)
10908de7ed6e8Smrg	  mv -f confcache "$cache_file"$$ &&
10909de7ed6e8Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10910de7ed6e8Smrg        *)
10911de7ed6e8Smrg	  mv -f confcache "$cache_file" ;;
10912de7ed6e8Smrg	esac
10913de7ed6e8Smrg      fi
10914de7ed6e8Smrg    fi
1091592bb16f8Smrg  else
10916de7ed6e8Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
109178255a313Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1091892bb16f8Smrg  fi
1091992bb16f8Smrgfi
1092092bb16f8Smrgrm -f confcache
1092192bb16f8Smrg
1092292bb16f8Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
1092392bb16f8Smrg# Let make expand exec_prefix.
1092492bb16f8Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1092592bb16f8Smrg
1092692bb16f8Smrg# Transform confdefs.h into DEFS.
1092792bb16f8Smrg# Protect against shell expansion while executing Makefile rules.
1092892bb16f8Smrg# Protect against Makefile macro expansion.
1092992bb16f8Smrg#
1093092bb16f8Smrg# If the first sed substitution is executed (which looks for macros that
1093192bb16f8Smrg# take arguments), then branch to the quote section.  Otherwise,
1093292bb16f8Smrg# look for a macro that doesn't take arguments.
1093392bb16f8Smrgac_script='
109348255a313Smrg:mline
109358255a313Smrg/\\$/{
109368255a313Smrg N
109378255a313Smrg s,\\\n,,
109388255a313Smrg b mline
109398255a313Smrg}
1094092bb16f8Smrgt clear
1094192bb16f8Smrg:clear
1094292bb16f8Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
1094392bb16f8Smrgt quote
1094492bb16f8Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
1094592bb16f8Smrgt quote
1094692bb16f8Smrgb any
1094792bb16f8Smrg:quote
1094892bb16f8Smrgs/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
1094992bb16f8Smrgs/\[/\\&/g
1095092bb16f8Smrgs/\]/\\&/g
1095192bb16f8Smrgs/\$/$$/g
1095292bb16f8SmrgH
1095392bb16f8Smrg:any
1095492bb16f8Smrg${
1095592bb16f8Smrg	g
1095692bb16f8Smrg	s/^\n//
1095792bb16f8Smrg	s/\n/ /g
1095892bb16f8Smrg	p
1095992bb16f8Smrg}
1096092bb16f8Smrg'
1096192bb16f8SmrgDEFS=`sed -n "$ac_script" confdefs.h`
1096292bb16f8Smrg
1096392bb16f8Smrg
1096492bb16f8Smrgac_libobjs=
1096592bb16f8Smrgac_ltlibobjs=
10966de7ed6e8SmrgU=
1096792bb16f8Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1096892bb16f8Smrg  # 1. Remove the extension, and $U if already installed.
1096992bb16f8Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
109708255a313Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1097192bb16f8Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
1097292bb16f8Smrg  #    will be set to the directory where LIBOBJS objects are built.
10973de7ed6e8Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10974de7ed6e8Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1097592bb16f8Smrgdone
1097692bb16f8SmrgLIBOBJS=$ac_libobjs
1097792bb16f8Smrg
1097892bb16f8SmrgLTLIBOBJS=$ac_ltlibobjs
1097992bb16f8Smrg
1098092bb16f8Smrg
1098101395c31Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
1098201395c31Smrg$as_echo_n "checking that generated files are newer than configure... " >&6; }
1098301395c31Smrg   if test -n "$am_sleep_pid"; then
1098401395c31Smrg     # Hide warnings about reused PIDs.
1098501395c31Smrg     wait $am_sleep_pid 2>/dev/null
1098601395c31Smrg   fi
1098701395c31Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
1098801395c31Smrg$as_echo "done" >&6; }
109898255a313Smrg if test -n "$EXEEXT"; then
109908255a313Smrg  am__EXEEXT_TRUE=
109918255a313Smrg  am__EXEEXT_FALSE='#'
109928255a313Smrgelse
109938255a313Smrg  am__EXEEXT_TRUE='#'
109948255a313Smrg  am__EXEEXT_FALSE=
109958255a313Smrgfi
109968255a313Smrg
109978255a313Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10998de7ed6e8Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
10999de7ed6e8SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
110008255a313Smrgfi
110018255a313Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11002de7ed6e8Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11003de7ed6e8SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
110048255a313Smrgfi
1100592bb16f8Smrgif test -z "${GZIP_SMALL_TRUE}" && test -z "${GZIP_SMALL_FALSE}"; then
11006de7ed6e8Smrg  as_fn_error $? "conditional \"GZIP_SMALL\" was never defined.
11007de7ed6e8SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1100892bb16f8Smrgfi
1100992bb16f8Smrgif test -z "${GZIP_LARGE_TRUE}" && test -z "${GZIP_LARGE_FALSE}"; then
11010de7ed6e8Smrg  as_fn_error $? "conditional \"GZIP_LARGE\" was never defined.
11011de7ed6e8SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1101292bb16f8Smrgfi
1101392bb16f8Smrg
11014de7ed6e8Smrg: "${CONFIG_STATUS=./config.status}"
110158255a313Smrgac_write_fail=0
1101692bb16f8Smrgac_clean_files_save=$ac_clean_files
1101792bb16f8Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
11018de7ed6e8Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
110198255a313Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11020de7ed6e8Smrgas_write_fail=0
11021de7ed6e8Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1102292bb16f8Smrg#! $SHELL
1102392bb16f8Smrg# Generated by $as_me.
1102492bb16f8Smrg# Run this file to recreate the current configuration.
1102592bb16f8Smrg# Compiler output produced by configure, useful for debugging
1102692bb16f8Smrg# configure, is in config.log if it exists.
1102792bb16f8Smrg
1102892bb16f8Smrgdebug=false
1102992bb16f8Smrgac_cs_recheck=false
1103092bb16f8Smrgac_cs_silent=false
1103192bb16f8Smrg
11032de7ed6e8SmrgSHELL=\${CONFIG_SHELL-$SHELL}
11033de7ed6e8Smrgexport SHELL
11034de7ed6e8Smrg_ASEOF
11035de7ed6e8Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11036de7ed6e8Smrg## -------------------- ##
11037de7ed6e8Smrg## M4sh Initialization. ##
11038de7ed6e8Smrg## -------------------- ##
1103992bb16f8Smrg
110408255a313Smrg# Be more Bourne compatible
110418255a313SmrgDUALCASE=1; export DUALCASE # for MKS sh
11042de7ed6e8Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1104392bb16f8Smrg  emulate sh
1104492bb16f8Smrg  NULLCMD=:
110458255a313Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1104692bb16f8Smrg  # is contrary to our usage.  Disable this feature.
1104792bb16f8Smrg  alias -g '${1+"$@"}'='"$@"'
1104892bb16f8Smrg  setopt NO_GLOB_SUBST
1104992bb16f8Smrgelse
11050de7ed6e8Smrg  case `(set -o) 2>/dev/null` in #(
11051de7ed6e8Smrg  *posix*) :
11052de7ed6e8Smrg    set -o posix ;; #(
11053de7ed6e8Smrg  *) :
11054de7ed6e8Smrg     ;;
110558255a313Smrgesac
1105692bb16f8Smrgfi
110578255a313Smrg
110588255a313Smrg
110598255a313Smrgas_nl='
110608255a313Smrg'
110618255a313Smrgexport as_nl
110628255a313Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
110638255a313Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
110648255a313Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
110658255a313Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11066de7ed6e8Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
11067de7ed6e8Smrg# but without wasting forks for bash or zsh.
11068de7ed6e8Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
11069de7ed6e8Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11070de7ed6e8Smrg  as_echo='print -r --'
11071de7ed6e8Smrg  as_echo_n='print -rn --'
11072de7ed6e8Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
110738255a313Smrg  as_echo='printf %s\n'
110748255a313Smrg  as_echo_n='printf %s'
110758255a313Smrgelse
110768255a313Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
110778255a313Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
110788255a313Smrg    as_echo_n='/usr/ucb/echo -n'
1107992bb16f8Smrg  else
110808255a313Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
110818255a313Smrg    as_echo_n_body='eval
110828255a313Smrg      arg=$1;
11083de7ed6e8Smrg      case $arg in #(
110848255a313Smrg      *"$as_nl"*)
110858255a313Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
110868255a313Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
110878255a313Smrg      esac;
110888255a313Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
110898255a313Smrg    '
110908255a313Smrg    export as_echo_n_body
110918255a313Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
1109292bb16f8Smrg  fi
110938255a313Smrg  export as_echo_body
110948255a313Smrg  as_echo='sh -c $as_echo_body as_echo'
110958255a313Smrgfi
110968255a313Smrg
110978255a313Smrg# The user is always right.
110988255a313Smrgif test "${PATH_SEPARATOR+set}" != set; then
110998255a313Smrg  PATH_SEPARATOR=:
111008255a313Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
111018255a313Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
111028255a313Smrg      PATH_SEPARATOR=';'
111038255a313Smrg  }
1110492bb16f8Smrgfi
1110592bb16f8Smrg
1110692bb16f8Smrg
1110792bb16f8Smrg# IFS
1110892bb16f8Smrg# We need space, tab and new line, in precisely that order.  Quoting is
1110992bb16f8Smrg# there to prevent editors from complaining about space-tab.
1111092bb16f8Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
1111192bb16f8Smrg# splitting by setting IFS to empty value.)
1111292bb16f8SmrgIFS=" ""	$as_nl"
1111392bb16f8Smrg
1111492bb16f8Smrg# Find who we are.  Look in the path if we contain no directory separator.
11115de7ed6e8Smrgas_myself=
11116de7ed6e8Smrgcase $0 in #((
1111792bb16f8Smrg  *[\\/]* ) as_myself=$0 ;;
1111892bb16f8Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1111992bb16f8Smrgfor as_dir in $PATH
1112092bb16f8Smrgdo
1112192bb16f8Smrg  IFS=$as_save_IFS
1112292bb16f8Smrg  test -z "$as_dir" && as_dir=.
11123de7ed6e8Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11124de7ed6e8Smrg  done
1112592bb16f8SmrgIFS=$as_save_IFS
1112692bb16f8Smrg
1112792bb16f8Smrg     ;;
1112892bb16f8Smrgesac
1112992bb16f8Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1113092bb16f8Smrg# in which case we are not to be found in the path.
1113192bb16f8Smrgif test "x$as_myself" = x; then
1113292bb16f8Smrg  as_myself=$0
1113392bb16f8Smrgfi
1113492bb16f8Smrgif test ! -f "$as_myself"; then
111358255a313Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11136de7ed6e8Smrg  exit 1
1113792bb16f8Smrgfi
1113892bb16f8Smrg
11139de7ed6e8Smrg# Unset variables that we do not need and which cause bugs (e.g. in
11140de7ed6e8Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11141de7ed6e8Smrg# suppresses any "Segmentation fault" message there.  '((' could
11142de7ed6e8Smrg# trigger a bug in pdksh 5.2.14.
11143de7ed6e8Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
11144de7ed6e8Smrgdo eval test x\${$as_var+set} = xset \
11145de7ed6e8Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1114692bb16f8Smrgdone
1114792bb16f8SmrgPS1='$ '
1114892bb16f8SmrgPS2='> '
1114992bb16f8SmrgPS4='+ '
1115092bb16f8Smrg
1115192bb16f8Smrg# NLS nuisances.
111528255a313SmrgLC_ALL=C
111538255a313Smrgexport LC_ALL
111548255a313SmrgLANGUAGE=C
111558255a313Smrgexport LANGUAGE
1115692bb16f8Smrg
11157de7ed6e8Smrg# CDPATH.
11158de7ed6e8Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11159de7ed6e8Smrg
11160de7ed6e8Smrg
11161de7ed6e8Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
11162de7ed6e8Smrg# ----------------------------------------
11163de7ed6e8Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11164de7ed6e8Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11165de7ed6e8Smrg# script with STATUS, using 1 if that was 0.
11166de7ed6e8Smrgas_fn_error ()
11167de7ed6e8Smrg{
11168de7ed6e8Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
11169de7ed6e8Smrg  if test "$4"; then
11170de7ed6e8Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11171de7ed6e8Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11172de7ed6e8Smrg  fi
11173de7ed6e8Smrg  $as_echo "$as_me: error: $2" >&2
11174de7ed6e8Smrg  as_fn_exit $as_status
11175de7ed6e8Smrg} # as_fn_error
11176de7ed6e8Smrg
11177de7ed6e8Smrg
11178de7ed6e8Smrg# as_fn_set_status STATUS
11179de7ed6e8Smrg# -----------------------
11180de7ed6e8Smrg# Set $? to STATUS, without forking.
11181de7ed6e8Smrgas_fn_set_status ()
11182de7ed6e8Smrg{
11183de7ed6e8Smrg  return $1
11184de7ed6e8Smrg} # as_fn_set_status
11185de7ed6e8Smrg
11186de7ed6e8Smrg# as_fn_exit STATUS
11187de7ed6e8Smrg# -----------------
11188de7ed6e8Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11189de7ed6e8Smrgas_fn_exit ()
11190de7ed6e8Smrg{
11191de7ed6e8Smrg  set +e
11192de7ed6e8Smrg  as_fn_set_status $1
11193de7ed6e8Smrg  exit $1
11194de7ed6e8Smrg} # as_fn_exit
11195de7ed6e8Smrg
11196de7ed6e8Smrg# as_fn_unset VAR
11197de7ed6e8Smrg# ---------------
11198de7ed6e8Smrg# Portably unset VAR.
11199de7ed6e8Smrgas_fn_unset ()
11200de7ed6e8Smrg{
11201de7ed6e8Smrg  { eval $1=; unset $1;}
11202de7ed6e8Smrg}
11203de7ed6e8Smrgas_unset=as_fn_unset
11204de7ed6e8Smrg# as_fn_append VAR VALUE
11205de7ed6e8Smrg# ----------------------
11206de7ed6e8Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
11207de7ed6e8Smrg# advantage of any shell optimizations that allow amortized linear growth over
11208de7ed6e8Smrg# repeated appends, instead of the typical quadratic growth present in naive
11209de7ed6e8Smrg# implementations.
11210de7ed6e8Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11211de7ed6e8Smrg  eval 'as_fn_append ()
11212de7ed6e8Smrg  {
11213de7ed6e8Smrg    eval $1+=\$2
11214de7ed6e8Smrg  }'
11215de7ed6e8Smrgelse
11216de7ed6e8Smrg  as_fn_append ()
11217de7ed6e8Smrg  {
11218de7ed6e8Smrg    eval $1=\$$1\$2
11219de7ed6e8Smrg  }
11220de7ed6e8Smrgfi # as_fn_append
11221de7ed6e8Smrg
11222de7ed6e8Smrg# as_fn_arith ARG...
11223de7ed6e8Smrg# ------------------
11224de7ed6e8Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
11225de7ed6e8Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
11226de7ed6e8Smrg# must be portable across $(()) and expr.
11227de7ed6e8Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11228de7ed6e8Smrg  eval 'as_fn_arith ()
11229de7ed6e8Smrg  {
11230de7ed6e8Smrg    as_val=$(( $* ))
11231de7ed6e8Smrg  }'
11232de7ed6e8Smrgelse
11233de7ed6e8Smrg  as_fn_arith ()
11234de7ed6e8Smrg  {
11235de7ed6e8Smrg    as_val=`expr "$@" || test $? -eq 1`
11236de7ed6e8Smrg  }
11237de7ed6e8Smrgfi # as_fn_arith
11238de7ed6e8Smrg
11239de7ed6e8Smrg
1124092bb16f8Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
1124192bb16f8Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1124292bb16f8Smrg  as_expr=expr
1124392bb16f8Smrgelse
1124492bb16f8Smrg  as_expr=false
1124592bb16f8Smrgfi
1124692bb16f8Smrg
1124792bb16f8Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1124892bb16f8Smrg  as_basename=basename
1124992bb16f8Smrgelse
1125092bb16f8Smrg  as_basename=false
1125192bb16f8Smrgfi
1125292bb16f8Smrg
11253de7ed6e8Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11254de7ed6e8Smrg  as_dirname=dirname
11255de7ed6e8Smrgelse
11256de7ed6e8Smrg  as_dirname=false
11257de7ed6e8Smrgfi
1125892bb16f8Smrg
1125992bb16f8Smrgas_me=`$as_basename -- "$0" ||
1126092bb16f8Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1126192bb16f8Smrg	 X"$0" : 'X\(//\)$' \| \
1126292bb16f8Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
112638255a313Smrg$as_echo X/"$0" |
1126492bb16f8Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1126592bb16f8Smrg	    s//\1/
1126692bb16f8Smrg	    q
1126792bb16f8Smrg	  }
1126892bb16f8Smrg	  /^X\/\(\/\/\)$/{
1126992bb16f8Smrg	    s//\1/
1127092bb16f8Smrg	    q
1127192bb16f8Smrg	  }
1127292bb16f8Smrg	  /^X\/\(\/\).*/{
1127392bb16f8Smrg	    s//\1/
1127492bb16f8Smrg	    q
1127592bb16f8Smrg	  }
1127692bb16f8Smrg	  s/.*/./; q'`
1127792bb16f8Smrg
11278de7ed6e8Smrg# Avoid depending upon Character Ranges.
11279de7ed6e8Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
11280de7ed6e8Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11281de7ed6e8Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
11282de7ed6e8Smrgas_cr_digits='0123456789'
11283de7ed6e8Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
1128492bb16f8Smrg
1128592bb16f8SmrgECHO_C= ECHO_N= ECHO_T=
11286de7ed6e8Smrgcase `echo -n x` in #(((((
1128792bb16f8Smrg-n*)
11288de7ed6e8Smrg  case `echo 'xy\c'` in
1128992bb16f8Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11290de7ed6e8Smrg  xy)  ECHO_C='\c';;
11291de7ed6e8Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11292de7ed6e8Smrg       ECHO_T='	';;
1129392bb16f8Smrg  esac;;
1129492bb16f8Smrg*)
1129592bb16f8Smrg  ECHO_N='-n';;
1129692bb16f8Smrgesac
1129792bb16f8Smrg
1129892bb16f8Smrgrm -f conf$$ conf$$.exe conf$$.file
1129992bb16f8Smrgif test -d conf$$.dir; then
1130092bb16f8Smrg  rm -f conf$$.dir/conf$$.file
1130192bb16f8Smrgelse
1130292bb16f8Smrg  rm -f conf$$.dir
113038255a313Smrg  mkdir conf$$.dir 2>/dev/null
113048255a313Smrgfi
113058255a313Smrgif (echo >conf$$.file) 2>/dev/null; then
113068255a313Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
113078255a313Smrg    as_ln_s='ln -s'
113088255a313Smrg    # ... but there are two gotchas:
113098255a313Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
113108255a313Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1131101395c31Smrg    # In both cases, we have to default to `cp -pR'.
113128255a313Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1131301395c31Smrg      as_ln_s='cp -pR'
113148255a313Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
113158255a313Smrg    as_ln_s=ln
113168255a313Smrg  else
1131701395c31Smrg    as_ln_s='cp -pR'
113188255a313Smrg  fi
1131992bb16f8Smrgelse
1132001395c31Smrg  as_ln_s='cp -pR'
1132192bb16f8Smrgfi
1132292bb16f8Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1132392bb16f8Smrgrmdir conf$$.dir 2>/dev/null
1132492bb16f8Smrg
11325de7ed6e8Smrg
11326de7ed6e8Smrg# as_fn_mkdir_p
11327de7ed6e8Smrg# -------------
11328de7ed6e8Smrg# Create "$as_dir" as a directory, including parents if necessary.
11329de7ed6e8Smrgas_fn_mkdir_p ()
11330de7ed6e8Smrg{
11331de7ed6e8Smrg
11332de7ed6e8Smrg  case $as_dir in #(
11333de7ed6e8Smrg  -*) as_dir=./$as_dir;;
11334de7ed6e8Smrg  esac
11335de7ed6e8Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
11336de7ed6e8Smrg    as_dirs=
11337de7ed6e8Smrg    while :; do
11338de7ed6e8Smrg      case $as_dir in #(
11339de7ed6e8Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11340de7ed6e8Smrg      *) as_qdir=$as_dir;;
11341de7ed6e8Smrg      esac
11342de7ed6e8Smrg      as_dirs="'$as_qdir' $as_dirs"
11343de7ed6e8Smrg      as_dir=`$as_dirname -- "$as_dir" ||
11344de7ed6e8Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11345de7ed6e8Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
11346de7ed6e8Smrg	 X"$as_dir" : 'X\(//\)$' \| \
11347de7ed6e8Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11348de7ed6e8Smrg$as_echo X"$as_dir" |
11349de7ed6e8Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11350de7ed6e8Smrg	    s//\1/
11351de7ed6e8Smrg	    q
11352de7ed6e8Smrg	  }
11353de7ed6e8Smrg	  /^X\(\/\/\)[^/].*/{
11354de7ed6e8Smrg	    s//\1/
11355de7ed6e8Smrg	    q
11356de7ed6e8Smrg	  }
11357de7ed6e8Smrg	  /^X\(\/\/\)$/{
11358de7ed6e8Smrg	    s//\1/
11359de7ed6e8Smrg	    q
11360de7ed6e8Smrg	  }
11361de7ed6e8Smrg	  /^X\(\/\).*/{
11362de7ed6e8Smrg	    s//\1/
11363de7ed6e8Smrg	    q
11364de7ed6e8Smrg	  }
11365de7ed6e8Smrg	  s/.*/./; q'`
11366de7ed6e8Smrg      test -d "$as_dir" && break
11367de7ed6e8Smrg    done
11368de7ed6e8Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
11369de7ed6e8Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11370de7ed6e8Smrg
11371de7ed6e8Smrg
11372de7ed6e8Smrg} # as_fn_mkdir_p
1137392bb16f8Smrgif mkdir -p . 2>/dev/null; then
11374de7ed6e8Smrg  as_mkdir_p='mkdir -p "$as_dir"'
1137592bb16f8Smrgelse
1137692bb16f8Smrg  test -d ./-p && rmdir ./-p
1137792bb16f8Smrg  as_mkdir_p=false
1137892bb16f8Smrgfi
1137992bb16f8Smrg
1138001395c31Smrg
1138101395c31Smrg# as_fn_executable_p FILE
1138201395c31Smrg# -----------------------
1138301395c31Smrg# Test if FILE is an executable regular file.
1138401395c31Smrgas_fn_executable_p ()
1138501395c31Smrg{
1138601395c31Smrg  test -f "$1" && test -x "$1"
1138701395c31Smrg} # as_fn_executable_p
1138801395c31Smrgas_test_x='test -x'
1138901395c31Smrgas_executable_p=as_fn_executable_p
1139092bb16f8Smrg
1139192bb16f8Smrg# Sed expression to map a string onto a valid CPP name.
1139292bb16f8Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1139392bb16f8Smrg
1139492bb16f8Smrg# Sed expression to map a string onto a valid variable name.
1139592bb16f8Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1139692bb16f8Smrg
1139792bb16f8Smrg
1139892bb16f8Smrgexec 6>&1
11399de7ed6e8Smrg## ----------------------------------- ##
11400de7ed6e8Smrg## Main body of $CONFIG_STATUS script. ##
11401de7ed6e8Smrg## ----------------------------------- ##
11402de7ed6e8Smrg_ASEOF
11403de7ed6e8Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1140492bb16f8Smrg
11405de7ed6e8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11406de7ed6e8Smrg# Save the log message, to keep $0 and so on meaningful, and to
1140792bb16f8Smrg# report actual input values of CONFIG_FILES etc. instead of their
1140892bb16f8Smrg# values after options handling.
1140992bb16f8Smrgac_log="
1141001395c31SmrgThis file was extended by encodings $as_me 1.0.5, which was
1141101395c31Smrggenerated by GNU Autoconf 2.69.  Invocation command line was
1141292bb16f8Smrg
1141392bb16f8Smrg  CONFIG_FILES    = $CONFIG_FILES
1141492bb16f8Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
1141592bb16f8Smrg  CONFIG_LINKS    = $CONFIG_LINKS
1141692bb16f8Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
1141792bb16f8Smrg  $ $0 $@
1141892bb16f8Smrg
1141992bb16f8Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
1142092bb16f8Smrg"
1142192bb16f8Smrg
1142292bb16f8Smrg_ACEOF
1142392bb16f8Smrg
114248255a313Smrgcase $ac_config_files in *"
114258255a313Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
114268255a313Smrgesac
114278255a313Smrg
114288255a313Smrg
114298255a313Smrg
114308255a313Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1143192bb16f8Smrg# Files that config.status was made for.
1143292bb16f8Smrgconfig_files="$ac_config_files"
114338255a313Smrgconfig_commands="$ac_config_commands"
1143492bb16f8Smrg
1143592bb16f8Smrg_ACEOF
1143692bb16f8Smrg
114378255a313Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1143892bb16f8Smrgac_cs_usage="\
11439de7ed6e8Smrg\`$as_me' instantiates files and other configuration actions
11440de7ed6e8Smrgfrom templates according to the current configuration.  Unless the files
11441de7ed6e8Smrgand actions are specified as TAGs, all are instantiated by default.
1144292bb16f8Smrg
11443de7ed6e8SmrgUsage: $0 [OPTION]... [TAG]...
1144492bb16f8Smrg
1144592bb16f8Smrg  -h, --help       print this help, then exit
114468255a313Smrg  -V, --version    print version number and configuration settings, then exit
11447de7ed6e8Smrg      --config     print configuration, then exit
114488255a313Smrg  -q, --quiet, --silent
114498255a313Smrg                   do not print progress messages
1145092bb16f8Smrg  -d, --debug      don't remove temporary files
1145192bb16f8Smrg      --recheck    update $as_me by reconfiguring in the same conditions
114528255a313Smrg      --file=FILE[:TEMPLATE]
114538255a313Smrg                   instantiate the configuration file FILE
1145492bb16f8Smrg
1145592bb16f8SmrgConfiguration files:
1145692bb16f8Smrg$config_files
1145792bb16f8Smrg
114588255a313SmrgConfiguration commands:
114598255a313Smrg$config_commands
114608255a313Smrg
1146101395c31SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/font/encodings/issues>."
1146292bb16f8Smrg
1146392bb16f8Smrg_ACEOF
114648255a313Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11465de7ed6e8Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1146692bb16f8Smrgac_cs_version="\\
1146701395c31Smrgencodings config.status 1.0.5
1146801395c31Smrgconfigured by $0, generated by GNU Autoconf 2.69,
11469de7ed6e8Smrg  with options \\"\$ac_cs_config\\"
1147092bb16f8Smrg
1147101395c31SmrgCopyright (C) 2012 Free Software Foundation, Inc.
1147292bb16f8SmrgThis config.status script is free software; the Free Software Foundation
1147392bb16f8Smrggives unlimited permission to copy, distribute and modify it."
1147492bb16f8Smrg
1147592bb16f8Smrgac_pwd='$ac_pwd'
1147692bb16f8Smrgsrcdir='$srcdir'
1147792bb16f8SmrgINSTALL='$INSTALL'
114788255a313SmrgMKDIR_P='$MKDIR_P'
114798255a313SmrgAWK='$AWK'
114808255a313Smrgtest -n "\$AWK" || AWK=awk
1148192bb16f8Smrg_ACEOF
1148292bb16f8Smrg
114838255a313Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
114848255a313Smrg# The default lists apply if the user does not specify any file.
1148592bb16f8Smrgac_need_defaults=:
1148692bb16f8Smrgwhile test $# != 0
1148792bb16f8Smrgdo
1148892bb16f8Smrg  case $1 in
11489de7ed6e8Smrg  --*=?*)
1149092bb16f8Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1149192bb16f8Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1149292bb16f8Smrg    ac_shift=:
1149392bb16f8Smrg    ;;
11494de7ed6e8Smrg  --*=)
11495de7ed6e8Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11496de7ed6e8Smrg    ac_optarg=
11497de7ed6e8Smrg    ac_shift=:
11498de7ed6e8Smrg    ;;
1149992bb16f8Smrg  *)
1150092bb16f8Smrg    ac_option=$1
1150192bb16f8Smrg    ac_optarg=$2
1150292bb16f8Smrg    ac_shift=shift
1150392bb16f8Smrg    ;;
1150492bb16f8Smrg  esac
1150592bb16f8Smrg
1150692bb16f8Smrg  case $ac_option in
1150792bb16f8Smrg  # Handling of the options.
1150892bb16f8Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1150992bb16f8Smrg    ac_cs_recheck=: ;;
1151092bb16f8Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
115118255a313Smrg    $as_echo "$ac_cs_version"; exit ;;
11512de7ed6e8Smrg  --config | --confi | --conf | --con | --co | --c )
11513de7ed6e8Smrg    $as_echo "$ac_cs_config"; exit ;;
1151492bb16f8Smrg  --debug | --debu | --deb | --de | --d | -d )
1151592bb16f8Smrg    debug=: ;;
1151692bb16f8Smrg  --file | --fil | --fi | --f )
1151792bb16f8Smrg    $ac_shift
115188255a313Smrg    case $ac_optarg in
115198255a313Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11520de7ed6e8Smrg    '') as_fn_error $? "missing file argument" ;;
115218255a313Smrg    esac
11522de7ed6e8Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
1152392bb16f8Smrg    ac_need_defaults=false;;
1152492bb16f8Smrg  --he | --h |  --help | --hel | -h )
115258255a313Smrg    $as_echo "$ac_cs_usage"; exit ;;
1152692bb16f8Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152792bb16f8Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
1152892bb16f8Smrg    ac_cs_silent=: ;;
1152992bb16f8Smrg
1153092bb16f8Smrg  # This is an error.
11531de7ed6e8Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
11532de7ed6e8SmrgTry \`$0 --help' for more information." ;;
1153392bb16f8Smrg
11534de7ed6e8Smrg  *) as_fn_append ac_config_targets " $1"
1153592bb16f8Smrg     ac_need_defaults=false ;;
1153692bb16f8Smrg
1153792bb16f8Smrg  esac
1153892bb16f8Smrg  shift
1153992bb16f8Smrgdone
1154092bb16f8Smrg
1154192bb16f8Smrgac_configure_extra_args=
1154292bb16f8Smrg
1154392bb16f8Smrgif $ac_cs_silent; then
1154492bb16f8Smrg  exec 6>/dev/null
1154592bb16f8Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
1154692bb16f8Smrgfi
1154792bb16f8Smrg
1154892bb16f8Smrg_ACEOF
115498255a313Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1155092bb16f8Smrgif \$ac_cs_recheck; then
1155101395c31Smrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
115528255a313Smrg  shift
115538255a313Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
115548255a313Smrg  CONFIG_SHELL='$SHELL'
1155592bb16f8Smrg  export CONFIG_SHELL
115568255a313Smrg  exec "\$@"
1155792bb16f8Smrgfi
1155892bb16f8Smrg
1155992bb16f8Smrg_ACEOF
115608255a313Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1156192bb16f8Smrgexec 5>>config.log
1156292bb16f8Smrg{
1156392bb16f8Smrg  echo
1156492bb16f8Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1156592bb16f8Smrg## Running $as_me. ##
1156692bb16f8Smrg_ASBOX
115678255a313Smrg  $as_echo "$ac_log"
1156892bb16f8Smrg} >&5
1156992bb16f8Smrg
1157092bb16f8Smrg_ACEOF
115718255a313Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
115728255a313Smrg#
115738255a313Smrg# INIT-COMMANDS
115748255a313Smrg#
1157501395c31SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
115768255a313Smrg
1157792bb16f8Smrg_ACEOF
1157892bb16f8Smrg
115798255a313Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1158092bb16f8Smrg
1158192bb16f8Smrg# Handling of arguments.
1158292bb16f8Smrgfor ac_config_target in $ac_config_targets
1158392bb16f8Smrgdo
1158492bb16f8Smrg  case $ac_config_target in
115858255a313Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1158692bb16f8Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1158792bb16f8Smrg    "large/Makefile") CONFIG_FILES="$CONFIG_FILES large/Makefile" ;;
1158892bb16f8Smrg
11589de7ed6e8Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1159092bb16f8Smrg  esac
1159192bb16f8Smrgdone
1159292bb16f8Smrg
1159392bb16f8Smrg
1159492bb16f8Smrg# If the user did not use the arguments to specify the items to instantiate,
1159592bb16f8Smrg# then the envvar interface is used.  Set only those that are not.
1159692bb16f8Smrg# We use the long form for the default assignment because of an extremely
1159792bb16f8Smrg# bizarre bug on SunOS 4.1.3.
1159892bb16f8Smrgif $ac_need_defaults; then
1159992bb16f8Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
116008255a313Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1160192bb16f8Smrgfi
1160292bb16f8Smrg
1160392bb16f8Smrg# Have a temporary directory for convenience.  Make it in the build tree
1160492bb16f8Smrg# simply because there is no reason against having it here, and in addition,
1160592bb16f8Smrg# creating and moving files from /tmp can sometimes cause problems.
1160692bb16f8Smrg# Hook for its removal unless debugging.
1160792bb16f8Smrg# Note that there is a small window in which the directory will not be cleaned:
1160892bb16f8Smrg# after its creation but before its name has been assigned to `$tmp'.
1160992bb16f8Smrg$debug ||
1161092bb16f8Smrg{
11611de7ed6e8Smrg  tmp= ac_tmp=
1161292bb16f8Smrg  trap 'exit_status=$?
11613de7ed6e8Smrg  : "${ac_tmp:=$tmp}"
11614de7ed6e8Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1161592bb16f8Smrg' 0
11616de7ed6e8Smrg  trap 'as_fn_exit 1' 1 2 13 15
1161792bb16f8Smrg}
1161892bb16f8Smrg# Create a (secure) tmp directory for tmp files.
1161992bb16f8Smrg
1162092bb16f8Smrg{
1162192bb16f8Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11622de7ed6e8Smrg  test -d "$tmp"
1162392bb16f8Smrg}  ||
1162492bb16f8Smrg{
1162592bb16f8Smrg  tmp=./conf$$-$RANDOM
1162692bb16f8Smrg  (umask 077 && mkdir "$tmp")
11627de7ed6e8Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11628de7ed6e8Smrgac_tmp=$tmp
1162992bb16f8Smrg
116308255a313Smrg# Set up the scripts for CONFIG_FILES section.
116318255a313Smrg# No need to generate them if there are no CONFIG_FILES.
116328255a313Smrg# This happens for instance with `./config.status config.h'.
1163392bb16f8Smrgif test -n "$CONFIG_FILES"; then
1163492bb16f8Smrg
1163592bb16f8Smrg
11636de7ed6e8Smrgac_cr=`echo X | tr X '\015'`
11637de7ed6e8Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
11638de7ed6e8Smrg# But we know of no other shell where ac_cr would be empty at this
11639de7ed6e8Smrg# point, so we can use a bashism as a fallback.
11640de7ed6e8Smrgif test "x$ac_cr" = x; then
11641de7ed6e8Smrg  eval ac_cr=\$\'\\r\'
11642de7ed6e8Smrgfi
116438255a313Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
116448255a313Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
116458255a313Smrg  ac_cs_awk_cr='\\r'
116468255a313Smrgelse
116478255a313Smrg  ac_cs_awk_cr=$ac_cr
116488255a313Smrgfi
116498255a313Smrg
11650de7ed6e8Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
116518255a313Smrg_ACEOF
1165292bb16f8Smrg
1165392bb16f8Smrg
116548255a313Smrg{
116558255a313Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
116568255a313Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
116578255a313Smrg  echo "_ACEOF"
116588255a313Smrg} >conf$$subs.sh ||
11659de7ed6e8Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11660de7ed6e8Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1166192bb16f8Smrgac_delim='%!_!# '
1166292bb16f8Smrgfor ac_last_try in false false false false false :; do
116638255a313Smrg  . ./conf$$subs.sh ||
11664de7ed6e8Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
116658255a313Smrg
116668255a313Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
116678255a313Smrg  if test $ac_delim_n = $ac_delim_num; then
1166892bb16f8Smrg    break
1166992bb16f8Smrg  elif $ac_last_try; then
11670de7ed6e8Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1167192bb16f8Smrg  else
1167292bb16f8Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1167392bb16f8Smrg  fi
1167492bb16f8Smrgdone
116758255a313Smrgrm -f conf$$subs.sh
1167692bb16f8Smrg
116778255a313Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11678de7ed6e8Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
116798255a313Smrg_ACEOF
116808255a313Smrgsed -n '
116818255a313Smrgh
116828255a313Smrgs/^/S["/; s/!.*/"]=/
116838255a313Smrgp
116848255a313Smrgg
116858255a313Smrgs/^[^!]*!//
116868255a313Smrg:repl
116878255a313Smrgt repl
116888255a313Smrgs/'"$ac_delim"'$//
116898255a313Smrgt delim
116908255a313Smrg:nl
116918255a313Smrgh
11692de7ed6e8Smrgs/\(.\{148\}\)..*/\1/
116938255a313Smrgt more1
116948255a313Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
116958255a313Smrgp
116968255a313Smrgn
116978255a313Smrgb repl
116988255a313Smrg:more1
116998255a313Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
117008255a313Smrgp
117018255a313Smrgg
117028255a313Smrgs/.\{148\}//
117038255a313Smrgt nl
117048255a313Smrg:delim
117058255a313Smrgh
11706de7ed6e8Smrgs/\(.\{148\}\)..*/\1/
117078255a313Smrgt more2
117088255a313Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
117098255a313Smrgp
117108255a313Smrgb
117118255a313Smrg:more2
117128255a313Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
117138255a313Smrgp
117148255a313Smrgg
117158255a313Smrgs/.\{148\}//
117168255a313Smrgt delim
117178255a313Smrg' <conf$$subs.awk | sed '
117188255a313Smrg/^[^""]/{
117198255a313Smrg  N
117208255a313Smrg  s/\n//
117218255a313Smrg}
117228255a313Smrg' >>$CONFIG_STATUS || ac_write_fail=1
117238255a313Smrgrm -f conf$$subs.awk
117248255a313Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
117258255a313Smrg_ACAWK
11726de7ed6e8Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
117278255a313Smrg  for (key in S) S_is_set[key] = 1
117288255a313Smrg  FS = ""
117298255a313Smrg
117308255a313Smrg}
117318255a313Smrg{
117328255a313Smrg  line = $ 0
117338255a313Smrg  nfields = split(line, field, "@")
117348255a313Smrg  substed = 0
117358255a313Smrg  len = length(field[1])
117368255a313Smrg  for (i = 2; i < nfields; i++) {
117378255a313Smrg    key = field[i]
117388255a313Smrg    keylen = length(key)
117398255a313Smrg    if (S_is_set[key]) {
117408255a313Smrg      value = S[key]
117418255a313Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
117428255a313Smrg      len += length(value) + length(field[++i])
117438255a313Smrg      substed = 1
117448255a313Smrg    } else
117458255a313Smrg      len += 1 + keylen
117468255a313Smrg  }
117478255a313Smrg
117488255a313Smrg  print line
117498255a313Smrg}
1175092bb16f8Smrg
117518255a313Smrg_ACAWK
1175292bb16f8Smrg_ACEOF
117538255a313Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
117548255a313Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
117558255a313Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
117568255a313Smrgelse
117578255a313Smrg  cat
11758de7ed6e8Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11759de7ed6e8Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1176092bb16f8Smrg_ACEOF
1176192bb16f8Smrg
11762de7ed6e8Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11763de7ed6e8Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1176492bb16f8Smrg# trailing colons and then remove the whole line if VPATH becomes empty
1176592bb16f8Smrg# (actually we leave an empty line to preserve line numbers).
1176692bb16f8Smrgif test "x$srcdir" = x.; then
11767de7ed6e8Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11768de7ed6e8Smrgh
11769de7ed6e8Smrgs///
11770de7ed6e8Smrgs/^/:/
11771de7ed6e8Smrgs/[	 ]*$/:/
11772de7ed6e8Smrgs/:\$(srcdir):/:/g
11773de7ed6e8Smrgs/:\${srcdir}:/:/g
11774de7ed6e8Smrgs/:@srcdir@:/:/g
11775de7ed6e8Smrgs/^:*//
1177692bb16f8Smrgs/:*$//
11777de7ed6e8Smrgx
11778de7ed6e8Smrgs/\(=[	 ]*\).*/\1/
11779de7ed6e8SmrgG
11780de7ed6e8Smrgs/\n//
1178192bb16f8Smrgs/^[^=]*=[	 ]*$//
1178292bb16f8Smrg}'
1178392bb16f8Smrgfi
1178492bb16f8Smrg
117858255a313Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1178692bb16f8Smrgfi # test -n "$CONFIG_FILES"
1178792bb16f8Smrg
1178892bb16f8Smrg
117898255a313Smrgeval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
117908255a313Smrgshift
117918255a313Smrgfor ac_tag
1179292bb16f8Smrgdo
1179392bb16f8Smrg  case $ac_tag in
1179492bb16f8Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
1179592bb16f8Smrg  esac
1179692bb16f8Smrg  case $ac_mode$ac_tag in
1179792bb16f8Smrg  :[FHL]*:*);;
11798de7ed6e8Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1179992bb16f8Smrg  :[FH]-) ac_tag=-:-;;
1180092bb16f8Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1180192bb16f8Smrg  esac
1180292bb16f8Smrg  ac_save_IFS=$IFS
1180392bb16f8Smrg  IFS=:
1180492bb16f8Smrg  set x $ac_tag
1180592bb16f8Smrg  IFS=$ac_save_IFS
1180692bb16f8Smrg  shift
1180792bb16f8Smrg  ac_file=$1
1180892bb16f8Smrg  shift
1180992bb16f8Smrg
1181092bb16f8Smrg  case $ac_mode in
1181192bb16f8Smrg  :L) ac_source=$1;;
1181292bb16f8Smrg  :[FH])
1181392bb16f8Smrg    ac_file_inputs=
1181492bb16f8Smrg    for ac_f
1181592bb16f8Smrg    do
1181692bb16f8Smrg      case $ac_f in
11817de7ed6e8Smrg      -) ac_f="$ac_tmp/stdin";;
1181892bb16f8Smrg      *) # Look for the file first in the build tree, then in the source tree
1181992bb16f8Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
1182092bb16f8Smrg	 # because $ac_f cannot contain `:'.
1182192bb16f8Smrg	 test -f "$ac_f" ||
1182292bb16f8Smrg	   case $ac_f in
1182392bb16f8Smrg	   [\\/$]*) false;;
1182492bb16f8Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1182592bb16f8Smrg	   esac ||
11826de7ed6e8Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1182792bb16f8Smrg      esac
118288255a313Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11829de7ed6e8Smrg      as_fn_append ac_file_inputs " '$ac_f'"
1183092bb16f8Smrg    done
1183192bb16f8Smrg
1183292bb16f8Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
1183392bb16f8Smrg    # use $as_me), people would be surprised to read:
1183492bb16f8Smrg    #    /* config.h.  Generated by config.status.  */
118358255a313Smrg    configure_input='Generated from '`
118368255a313Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
118378255a313Smrg	`' by configure.'
1183892bb16f8Smrg    if test x"$ac_file" != x-; then
1183992bb16f8Smrg      configure_input="$ac_file.  $configure_input"
11840de7ed6e8Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
118418255a313Smrg$as_echo "$as_me: creating $ac_file" >&6;}
1184292bb16f8Smrg    fi
118438255a313Smrg    # Neutralize special characters interpreted by sed in replacement strings.
118448255a313Smrg    case $configure_input in #(
118458255a313Smrg    *\&* | *\|* | *\\* )
118468255a313Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
118478255a313Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
118488255a313Smrg    *) ac_sed_conf_input=$configure_input;;
118498255a313Smrg    esac
1185092bb16f8Smrg
1185192bb16f8Smrg    case $ac_tag in
11852de7ed6e8Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11853de7ed6e8Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1185492bb16f8Smrg    esac
1185592bb16f8Smrg    ;;
1185692bb16f8Smrg  esac
1185792bb16f8Smrg
1185892bb16f8Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
1185992bb16f8Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1186092bb16f8Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
1186192bb16f8Smrg	 X"$ac_file" : 'X\(//\)$' \| \
1186292bb16f8Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
118638255a313Smrg$as_echo X"$ac_file" |
1186492bb16f8Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186592bb16f8Smrg	    s//\1/
1186692bb16f8Smrg	    q
1186792bb16f8Smrg	  }
1186892bb16f8Smrg	  /^X\(\/\/\)[^/].*/{
1186992bb16f8Smrg	    s//\1/
1187092bb16f8Smrg	    q
1187192bb16f8Smrg	  }
1187292bb16f8Smrg	  /^X\(\/\/\)$/{
1187392bb16f8Smrg	    s//\1/
1187492bb16f8Smrg	    q
1187592bb16f8Smrg	  }
1187692bb16f8Smrg	  /^X\(\/\).*/{
1187792bb16f8Smrg	    s//\1/
1187892bb16f8Smrg	    q
1187992bb16f8Smrg	  }
1188092bb16f8Smrg	  s/.*/./; q'`
11881de7ed6e8Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
1188292bb16f8Smrg  ac_builddir=.
1188392bb16f8Smrg
1188492bb16f8Smrgcase "$ac_dir" in
1188592bb16f8Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1188692bb16f8Smrg*)
118878255a313Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1188892bb16f8Smrg  # A ".." for each directory in $ac_dir_suffix.
118898255a313Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1189092bb16f8Smrg  case $ac_top_builddir_sub in
1189192bb16f8Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1189292bb16f8Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1189392bb16f8Smrg  esac ;;
1189492bb16f8Smrgesac
1189592bb16f8Smrgac_abs_top_builddir=$ac_pwd
1189692bb16f8Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1189792bb16f8Smrg# for backward compatibility:
1189892bb16f8Smrgac_top_builddir=$ac_top_build_prefix
1189992bb16f8Smrg
1190092bb16f8Smrgcase $srcdir in
1190192bb16f8Smrg  .)  # We are building in place.
1190292bb16f8Smrg    ac_srcdir=.
1190392bb16f8Smrg    ac_top_srcdir=$ac_top_builddir_sub
1190492bb16f8Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1190592bb16f8Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1190692bb16f8Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1190792bb16f8Smrg    ac_top_srcdir=$srcdir
1190892bb16f8Smrg    ac_abs_top_srcdir=$srcdir ;;
1190992bb16f8Smrg  *) # Relative name.
1191092bb16f8Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1191192bb16f8Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1191292bb16f8Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1191392bb16f8Smrgesac
1191492bb16f8Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1191592bb16f8Smrg
1191692bb16f8Smrg
1191792bb16f8Smrg  case $ac_mode in
1191892bb16f8Smrg  :F)
1191992bb16f8Smrg  #
1192092bb16f8Smrg  # CONFIG_FILE
1192192bb16f8Smrg  #
1192292bb16f8Smrg
1192392bb16f8Smrg  case $INSTALL in
1192492bb16f8Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1192592bb16f8Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1192692bb16f8Smrg  esac
119278255a313Smrg  ac_MKDIR_P=$MKDIR_P
119288255a313Smrg  case $MKDIR_P in
119298255a313Smrg  [\\/$]* | ?:[\\/]* ) ;;
119308255a313Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
119318255a313Smrg  esac
1193292bb16f8Smrg_ACEOF
1193392bb16f8Smrg
119348255a313Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1193592bb16f8Smrg# If the template does not know about datarootdir, expand it.
1193692bb16f8Smrg# FIXME: This hack should be removed a few years after 2.60.
1193792bb16f8Smrgac_datarootdir_hack=; ac_datarootdir_seen=
119388255a313Smrgac_sed_dataroot='
119398255a313Smrg/datarootdir/ {
1194092bb16f8Smrg  p
1194192bb16f8Smrg  q
1194292bb16f8Smrg}
1194392bb16f8Smrg/@datadir@/p
1194492bb16f8Smrg/@docdir@/p
1194592bb16f8Smrg/@infodir@/p
1194692bb16f8Smrg/@localedir@/p
11947de7ed6e8Smrg/@mandir@/p'
119488255a313Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1194992bb16f8Smrg*datarootdir*) ac_datarootdir_seen=yes;;
1195092bb16f8Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11951de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
119528255a313Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1195392bb16f8Smrg_ACEOF
119548255a313Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1195592bb16f8Smrg  ac_datarootdir_hack='
1195692bb16f8Smrg  s&@datadir@&$datadir&g
1195792bb16f8Smrg  s&@docdir@&$docdir&g
1195892bb16f8Smrg  s&@infodir@&$infodir&g
1195992bb16f8Smrg  s&@localedir@&$localedir&g
1196092bb16f8Smrg  s&@mandir@&$mandir&g
11961de7ed6e8Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
1196292bb16f8Smrgesac
1196392bb16f8Smrg_ACEOF
1196492bb16f8Smrg
1196592bb16f8Smrg# Neutralize VPATH when `$srcdir' = `.'.
1196692bb16f8Smrg# Shell code in configure.ac might set extrasub.
1196792bb16f8Smrg# FIXME: do we really want to maintain this feature?
119688255a313Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
119698255a313Smrgac_sed_extra="$ac_vpsub
1197092bb16f8Smrg$extrasub
1197192bb16f8Smrg_ACEOF
119728255a313Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1197392bb16f8Smrg:t
1197492bb16f8Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
119758255a313Smrgs|@configure_input@|$ac_sed_conf_input|;t t
1197692bb16f8Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
119778255a313Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
1197892bb16f8Smrgs&@srcdir@&$ac_srcdir&;t t
1197992bb16f8Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
1198092bb16f8Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
1198192bb16f8Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
1198292bb16f8Smrgs&@builddir@&$ac_builddir&;t t
1198392bb16f8Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
1198492bb16f8Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1198592bb16f8Smrgs&@INSTALL@&$ac_INSTALL&;t t
119868255a313Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
1198792bb16f8Smrg$ac_datarootdir_hack
119888255a313Smrg"
11989de7ed6e8Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11990de7ed6e8Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1199192bb16f8Smrg
1199292bb16f8Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11993de7ed6e8Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11994de7ed6e8Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11995de7ed6e8Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11996de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11997de7ed6e8Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
119988255a313Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11999de7ed6e8Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
1200092bb16f8Smrg
12001de7ed6e8Smrg  rm -f "$ac_tmp/stdin"
1200292bb16f8Smrg  case $ac_file in
12003de7ed6e8Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12004de7ed6e8Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
120058255a313Smrg  esac \
12006de7ed6e8Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1200792bb16f8Smrg ;;
1200892bb16f8Smrg
1200992bb16f8Smrg
12010de7ed6e8Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
120118255a313Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
120128255a313Smrg ;;
120138255a313Smrg  esac
120148255a313Smrg
1201592bb16f8Smrg
120168255a313Smrg  case $ac_file$ac_mode in
120178255a313Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1201801395c31Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
120198255a313Smrg  # are listed without --file.  Let's play safe and only enable the eval
120208255a313Smrg  # if we detect the quoting.
1202101395c31Smrg  # TODO: see whether this extra hack can be removed once we start
1202201395c31Smrg  # requiring Autoconf 2.70 or later.
1202301395c31Smrg  case $CONFIG_FILES in #(
1202401395c31Smrg  *\'*) :
1202501395c31Smrg    eval set x "$CONFIG_FILES" ;; #(
1202601395c31Smrg  *) :
1202701395c31Smrg    set x $CONFIG_FILES ;; #(
1202801395c31Smrg  *) :
1202901395c31Smrg     ;;
1203001395c31Smrgesac
120318255a313Smrg  shift
1203201395c31Smrg  # Used to flag and report bootstrapping failures.
1203301395c31Smrg  am_rc=0
1203401395c31Smrg  for am_mf
120358255a313Smrg  do
120368255a313Smrg    # Strip MF so we end up with the name of the file.
1203701395c31Smrg    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
1203801395c31Smrg    # Check whether this is an Automake generated Makefile which includes
1203901395c31Smrg    # dependency-tracking related rules and includes.
1204001395c31Smrg    # Grep'ing the whole file directly is not great: AIX grep has a line
120418255a313Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
1204201395c31Smrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
1204301395c31Smrg      || continue
1204401395c31Smrg    am_dirpart=`$as_dirname -- "$am_mf" ||
1204501395c31Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1204601395c31Smrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
1204701395c31Smrg	 X"$am_mf" : 'X\(//\)$' \| \
1204801395c31Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1204901395c31Smrg$as_echo X"$am_mf" |
120508255a313Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
120518255a313Smrg	    s//\1/
120528255a313Smrg	    q
120538255a313Smrg	  }
120548255a313Smrg	  /^X\(\/\/\)[^/].*/{
120558255a313Smrg	    s//\1/
120568255a313Smrg	    q
120578255a313Smrg	  }
120588255a313Smrg	  /^X\(\/\/\)$/{
120598255a313Smrg	    s//\1/
120608255a313Smrg	    q
120618255a313Smrg	  }
120628255a313Smrg	  /^X\(\/\).*/{
120638255a313Smrg	    s//\1/
120648255a313Smrg	    q
120658255a313Smrg	  }
120668255a313Smrg	  s/.*/./; q'`
1206701395c31Smrg    am_filepart=`$as_basename -- "$am_mf" ||
1206801395c31Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
1206901395c31Smrg	 X"$am_mf" : 'X\(//\)$' \| \
1207001395c31Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1207101395c31Smrg$as_echo X/"$am_mf" |
1207201395c31Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
120738255a313Smrg	    s//\1/
120748255a313Smrg	    q
120758255a313Smrg	  }
1207601395c31Smrg	  /^X\/\(\/\/\)$/{
120778255a313Smrg	    s//\1/
120788255a313Smrg	    q
120798255a313Smrg	  }
1208001395c31Smrg	  /^X\/\(\/\).*/{
120818255a313Smrg	    s//\1/
120828255a313Smrg	    q
120838255a313Smrg	  }
120848255a313Smrg	  s/.*/./; q'`
1208501395c31Smrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
1208601395c31Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
1208701395c31Smrg        | $MAKE -f - am--depfiles" >&5
1208801395c31Smrg   (cd "$am_dirpart" \
1208901395c31Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
1209001395c31Smrg        | $MAKE -f - am--depfiles) >&5 2>&5
1209101395c31Smrg   ac_status=$?
1209201395c31Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1209301395c31Smrg   (exit $ac_status); } || am_rc=$?
120948255a313Smrg  done
1209501395c31Smrg  if test $am_rc -ne 0; then
1209601395c31Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1209701395c31Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1209801395c31Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
1209901395c31Smrg    for automatic dependency tracking.  Try re-running configure with the
1210001395c31Smrg    '--disable-dependency-tracking' option to at least be able to build
1210101395c31Smrg    the package (albeit without support for automatic dependency tracking).
1210201395c31SmrgSee \`config.log' for more details" "$LINENO" 5; }
1210301395c31Smrg  fi
1210401395c31Smrg  { am_dirpart=; unset am_dirpart;}
1210501395c31Smrg  { am_filepart=; unset am_filepart;}
1210601395c31Smrg  { am_mf=; unset am_mf;}
1210701395c31Smrg  { am_rc=; unset am_rc;}
1210801395c31Smrg  rm -f conftest-deps.mk
121098255a313Smrg}
121108255a313Smrg ;;
1211192bb16f8Smrg
121128255a313Smrg  esac
1211392bb16f8Smrgdone # for ac_tag
1211492bb16f8Smrg
1211592bb16f8Smrg
12116de7ed6e8Smrgas_fn_exit 0
1211792bb16f8Smrg_ACEOF
1211892bb16f8Smrgac_clean_files=$ac_clean_files_save
1211992bb16f8Smrg
121208255a313Smrgtest $ac_write_fail = 0 ||
12121de7ed6e8Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
121228255a313Smrg
1212392bb16f8Smrg
1212492bb16f8Smrg# configure is writing to config.log, and then calls config.status.
1212592bb16f8Smrg# config.status does its own redirection, appending to config.log.
1212692bb16f8Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
1212792bb16f8Smrg# by configure, so config.status won't be able to write to it; its
1212892bb16f8Smrg# output is simply discarded.  So we exec the FD to /dev/null,
1212992bb16f8Smrg# effectively closing config.log, so it can be properly (re)opened and
1213092bb16f8Smrg# appended to by config.status.  When coming back to configure, we
1213192bb16f8Smrg# need to make the FD available again.
1213292bb16f8Smrgif test "$no_create" != yes; then
1213392bb16f8Smrg  ac_cs_success=:
1213492bb16f8Smrg  ac_config_status_args=
1213592bb16f8Smrg  test "$silent" = yes &&
1213692bb16f8Smrg    ac_config_status_args="$ac_config_status_args --quiet"
1213792bb16f8Smrg  exec 5>/dev/null
1213892bb16f8Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1213992bb16f8Smrg  exec 5>>config.log
1214092bb16f8Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1214192bb16f8Smrg  # would make configure fail if this is the last instruction.
12142de7ed6e8Smrg  $ac_cs_success || as_fn_exit 1
1214392bb16f8Smrgfi
121448255a313Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12145de7ed6e8Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
121468255a313Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
121478255a313Smrgfi
1214892bb16f8Smrg
12149