configure revision c12babeb
166fe65f6Smrg#! /bin/sh
266fe65f6Smrg# Guess values for system-dependent variables and create Makefiles.
3c12babebSmrg# Generated by GNU Autoconf 2.71 for font-util 1.4.0.
466fe65f6Smrg#
5c12babebSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/font/util/-/issues>.
666fe65f6Smrg#
748af84faSmrg#
8bc77032bSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9bc77032bSmrg# Inc.
1048af84faSmrg#
1148af84faSmrg#
1266fe65f6Smrg# This configure script is free software; the Free Software Foundation
1366fe65f6Smrg# gives unlimited permission to copy, distribute and modify it.
1448af84faSmrg## -------------------- ##
1548af84faSmrg## M4sh Initialization. ##
1648af84faSmrg## -------------------- ##
1766fe65f6Smrg
1889d09728Smrg# Be more Bourne compatible
1989d09728SmrgDUALCASE=1; export DUALCASE # for MKS sh
20bc77032bSmrgas_nop=:
21bc77032bSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22bc77032bSmrgthen :
2366fe65f6Smrg  emulate sh
2466fe65f6Smrg  NULLCMD=:
2589d09728Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2666fe65f6Smrg  # is contrary to our usage.  Disable this feature.
2766fe65f6Smrg  alias -g '${1+"$@"}'='"$@"'
2889d09728Smrg  setopt NO_GLOB_SUBST
29bc77032bSmrgelse $as_nop
3048af84faSmrg  case `(set -o) 2>/dev/null` in #(
3148af84faSmrg  *posix*) :
3248af84faSmrg    set -o posix ;; #(
3348af84faSmrg  *) :
3448af84faSmrg     ;;
3589d09728Smrgesac
3666fe65f6Smrgfi
3766fe65f6Smrg
3889d09728Smrg
39bc77032bSmrg
40bc77032bSmrg# Reset variables that may have inherited troublesome values from
41bc77032bSmrg# the environment.
42bc77032bSmrg
43bc77032bSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
44bc77032bSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
45bc77032bSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
46bc77032bSmrg# Quoting is to prevent editors from complaining about space-tab.
4789d09728Smrgas_nl='
4889d09728Smrg'
4989d09728Smrgexport as_nl
50bc77032bSmrgIFS=" ""	$as_nl"
51bc77032bSmrg
52bc77032bSmrgPS1='$ '
53bc77032bSmrgPS2='> '
54bc77032bSmrgPS4='+ '
55bc77032bSmrg
56bc77032bSmrg# Ensure predictable behavior from utilities with locale-dependent output.
57bc77032bSmrgLC_ALL=C
58bc77032bSmrgexport LC_ALL
59bc77032bSmrgLANGUAGE=C
60bc77032bSmrgexport LANGUAGE
61bc77032bSmrg
62bc77032bSmrg# We cannot yet rely on "unset" to work, but we need these variables
63bc77032bSmrg# to be unset--not just set to an empty or harmless value--now, to
64bc77032bSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65bc77032bSmrg# also avoids known problems related to "unset" and subshell syntax
66bc77032bSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67bc77032bSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68bc77032bSmrgdo eval test \${$as_var+y} \
69bc77032bSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70bc77032bSmrgdone
71bc77032bSmrg
72bc77032bSmrg# Ensure that fds 0, 1, and 2 are open.
73bc77032bSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74bc77032bSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75bc77032bSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
7689d09728Smrg
7789d09728Smrg# The user is always right.
78bc77032bSmrgif ${PATH_SEPARATOR+false} :; then
7989d09728Smrg  PATH_SEPARATOR=:
8089d09728Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8189d09728Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8289d09728Smrg      PATH_SEPARATOR=';'
8389d09728Smrg  }
8466fe65f6Smrgfi
8566fe65f6Smrg
8666fe65f6Smrg
8789d09728Smrg# Find who we are.  Look in the path if we contain no directory separator.
8848af84faSmrgas_myself=
8948af84faSmrgcase $0 in #((
9089d09728Smrg  *[\\/]* ) as_myself=$0 ;;
9189d09728Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289d09728Smrgfor as_dir in $PATH
9389d09728Smrgdo
9489d09728Smrg  IFS=$as_save_IFS
95bc77032bSmrg  case $as_dir in #(((
96bc77032bSmrg    '') as_dir=./ ;;
97bc77032bSmrg    */) ;;
98bc77032bSmrg    *) as_dir=$as_dir/ ;;
99bc77032bSmrg  esac
100bc77032bSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10148af84faSmrg  done
10289d09728SmrgIFS=$as_save_IFS
10389d09728Smrg
10489d09728Smrg     ;;
10589d09728Smrgesac
10689d09728Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
10789d09728Smrg# in which case we are not to be found in the path.
10889d09728Smrgif test "x$as_myself" = x; then
10989d09728Smrg  as_myself=$0
11089d09728Smrgfi
11189d09728Smrgif test ! -f "$as_myself"; then
112bc77032bSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11348af84faSmrg  exit 1
11489d09728Smrgfi
11589d09728Smrg
11648af84faSmrg
117c6a6acfbSmrg# Use a proper internal environment variable to ensure we don't fall
118c6a6acfbSmrg  # into an infinite loop, continuously re-executing ourselves.
119c6a6acfbSmrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120c6a6acfbSmrg    _as_can_reexec=no; export _as_can_reexec;
121c6a6acfbSmrg    # We cannot yet assume a decent shell, so we have to provide a
122c6a6acfbSmrg# neutralization value for shells without unset; and this also
123c6a6acfbSmrg# works around shells that cannot unset nonexistent variables.
124c6a6acfbSmrg# Preserve -v and -x to the replacement shell.
125c6a6acfbSmrgBASH_ENV=/dev/null
126c6a6acfbSmrgENV=/dev/null
127c6a6acfbSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128c6a6acfbSmrgcase $- in # ((((
129c6a6acfbSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
130c6a6acfbSmrg  *v* ) as_opts=-v ;;
131c6a6acfbSmrg  *x* ) as_opts=-x ;;
132c6a6acfbSmrg  * ) as_opts= ;;
133c6a6acfbSmrgesac
134c6a6acfbSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135c6a6acfbSmrg# Admittedly, this is quite paranoid, since all the known shells bail
136c6a6acfbSmrg# out after a failed `exec'.
137bc77032bSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138bc77032bSmrgexit 255
139c6a6acfbSmrg  fi
140c6a6acfbSmrg  # We don't want this to propagate to other subprocesses.
141c6a6acfbSmrg          { _as_can_reexec=; unset _as_can_reexec;}
14248af84faSmrgif test "x$CONFIG_SHELL" = x; then
143bc77032bSmrg  as_bourne_compatible="as_nop=:
144bc77032bSmrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145bc77032bSmrgthen :
14648af84faSmrg  emulate sh
14748af84faSmrg  NULLCMD=:
14848af84faSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
14948af84faSmrg  # is contrary to our usage.  Disable this feature.
15048af84faSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
15148af84faSmrg  setopt NO_GLOB_SUBST
152bc77032bSmrgelse \$as_nop
15348af84faSmrg  case \`(set -o) 2>/dev/null\` in #(
15448af84faSmrg  *posix*) :
15548af84faSmrg    set -o posix ;; #(
15648af84faSmrg  *) :
15748af84faSmrg     ;;
15848af84faSmrgesac
15948af84faSmrgfi
16048af84faSmrg"
16148af84faSmrg  as_required="as_fn_return () { (exit \$1); }
16248af84faSmrgas_fn_success () { as_fn_return 0; }
16348af84faSmrgas_fn_failure () { as_fn_return 1; }
16448af84faSmrgas_fn_ret_success () { return 0; }
16548af84faSmrgas_fn_ret_failure () { return 1; }
16648af84faSmrg
16748af84faSmrgexitcode=0
16848af84faSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
16948af84faSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
17048af84faSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
17148af84faSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172bc77032bSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
173bc77032bSmrgthen :
17448af84faSmrg
175bc77032bSmrgelse \$as_nop
17648af84faSmrg  exitcode=1; echo positional parameters were not saved.
17748af84faSmrgfi
178c6a6acfbSmrgtest x\$exitcode = x0 || exit 1
179bc77032bSmrgblah=\$(echo \$(echo blah))
180bc77032bSmrgtest x\"\$blah\" = xblah || exit 1
181c6a6acfbSmrgtest -x / || exit 1"
18248af84faSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
18348af84faSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
18448af84faSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
18548af84faSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
18648af84faSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
187bc77032bSmrg  if (eval "$as_required") 2>/dev/null
188bc77032bSmrgthen :
18948af84faSmrg  as_have_required=yes
190bc77032bSmrgelse $as_nop
19148af84faSmrg  as_have_required=no
19248af84faSmrgfi
193bc77032bSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194bc77032bSmrgthen :
19548af84faSmrg
196bc77032bSmrgelse $as_nop
19748af84faSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19848af84faSmrgas_found=false
19948af84faSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20048af84faSmrgdo
20148af84faSmrg  IFS=$as_save_IFS
202bc77032bSmrg  case $as_dir in #(((
203bc77032bSmrg    '') as_dir=./ ;;
204bc77032bSmrg    */) ;;
205bc77032bSmrg    *) as_dir=$as_dir/ ;;
206bc77032bSmrg  esac
20748af84faSmrg  as_found=:
20848af84faSmrg  case $as_dir in #(
20948af84faSmrg	 /*)
21048af84faSmrg	   for as_base in sh bash ksh sh5; do
21148af84faSmrg	     # Try only shells that exist, to save several forks.
212bc77032bSmrg	     as_shell=$as_dir$as_base
21348af84faSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214bc77032bSmrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215bc77032bSmrgthen :
21648af84faSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
217bc77032bSmrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218bc77032bSmrgthen :
21948af84faSmrg  break 2
22048af84faSmrgfi
22148af84faSmrgfi
22248af84faSmrg	   done;;
22348af84faSmrg       esac
22448af84faSmrg  as_found=false
22548af84faSmrgdone
22648af84faSmrgIFS=$as_save_IFS
227bc77032bSmrgif $as_found
228bc77032bSmrgthen :
229bc77032bSmrg
230bc77032bSmrgelse $as_nop
231bc77032bSmrg  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232bc77032bSmrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233bc77032bSmrgthen :
234bc77032bSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
235bc77032bSmrgfi
236bc77032bSmrgfi
23748af84faSmrg
23848af84faSmrg
239bc77032bSmrg      if test "x$CONFIG_SHELL" != x
240bc77032bSmrgthen :
241c6a6acfbSmrg  export CONFIG_SHELL
242c6a6acfbSmrg             # We cannot yet assume a decent shell, so we have to provide a
243c6a6acfbSmrg# neutralization value for shells without unset; and this also
244c6a6acfbSmrg# works around shells that cannot unset nonexistent variables.
245c6a6acfbSmrg# Preserve -v and -x to the replacement shell.
246c6a6acfbSmrgBASH_ENV=/dev/null
247c6a6acfbSmrgENV=/dev/null
248c6a6acfbSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249c6a6acfbSmrgcase $- in # ((((
250c6a6acfbSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
251c6a6acfbSmrg  *v* ) as_opts=-v ;;
252c6a6acfbSmrg  *x* ) as_opts=-x ;;
253c6a6acfbSmrg  * ) as_opts= ;;
254c6a6acfbSmrgesac
255c6a6acfbSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256c6a6acfbSmrg# Admittedly, this is quite paranoid, since all the known shells bail
257c6a6acfbSmrg# out after a failed `exec'.
258bc77032bSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259c6a6acfbSmrgexit 255
26048af84faSmrgfi
26148af84faSmrg
262bc77032bSmrg    if test x$as_have_required = xno
263bc77032bSmrgthen :
264bc77032bSmrg  printf "%s\n" "$0: This script requires a shell more modern than all"
265bc77032bSmrg  printf "%s\n" "$0: the shells that I found on your system."
266bc77032bSmrg  if test ${ZSH_VERSION+y} ; then
267bc77032bSmrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268bc77032bSmrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
26948af84faSmrg  else
270bc77032bSmrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271c12babebSmrg$0: https://gitlab.freedesktop.org/xorg/font/util/-/issues
27248af84faSmrg$0: about your system, including any error possibly output
27348af84faSmrg$0: before this message. Then install a modern shell, or
27448af84faSmrg$0: manually run the script under such a shell if you do
27548af84faSmrg$0: have one."
27648af84faSmrg  fi
27748af84faSmrg  exit 1
27848af84faSmrgfi
27948af84faSmrgfi
28048af84faSmrgfi
28148af84faSmrgSHELL=${CONFIG_SHELL-/bin/sh}
28248af84faSmrgexport SHELL
28348af84faSmrg# Unset more variables known to interfere with behavior of common tools.
28448af84faSmrgCLICOLOR_FORCE= GREP_OPTIONS=
28548af84faSmrgunset CLICOLOR_FORCE GREP_OPTIONS
28648af84faSmrg
28748af84faSmrg## --------------------- ##
28848af84faSmrg## M4sh Shell Functions. ##
28948af84faSmrg## --------------------- ##
29048af84faSmrg# as_fn_unset VAR
29148af84faSmrg# ---------------
29248af84faSmrg# Portably unset VAR.
29348af84faSmrgas_fn_unset ()
29448af84faSmrg{
29548af84faSmrg  { eval $1=; unset $1;}
29648af84faSmrg}
29748af84faSmrgas_unset=as_fn_unset
29848af84faSmrg
299bc77032bSmrg
30048af84faSmrg# as_fn_set_status STATUS
30148af84faSmrg# -----------------------
30248af84faSmrg# Set $? to STATUS, without forking.
30348af84faSmrgas_fn_set_status ()
30448af84faSmrg{
30548af84faSmrg  return $1
30648af84faSmrg} # as_fn_set_status
30748af84faSmrg
30848af84faSmrg# as_fn_exit STATUS
30948af84faSmrg# -----------------
31048af84faSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31148af84faSmrgas_fn_exit ()
31248af84faSmrg{
31348af84faSmrg  set +e
31448af84faSmrg  as_fn_set_status $1
31548af84faSmrg  exit $1
31648af84faSmrg} # as_fn_exit
317bc77032bSmrg# as_fn_nop
318bc77032bSmrg# ---------
319bc77032bSmrg# Do nothing but, unlike ":", preserve the value of $?.
320bc77032bSmrgas_fn_nop ()
321bc77032bSmrg{
322bc77032bSmrg  return $?
323bc77032bSmrg}
324bc77032bSmrgas_nop=as_fn_nop
32548af84faSmrg
32648af84faSmrg# as_fn_mkdir_p
32748af84faSmrg# -------------
32848af84faSmrg# Create "$as_dir" as a directory, including parents if necessary.
32948af84faSmrgas_fn_mkdir_p ()
33048af84faSmrg{
33148af84faSmrg
33248af84faSmrg  case $as_dir in #(
33348af84faSmrg  -*) as_dir=./$as_dir;;
33448af84faSmrg  esac
33548af84faSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
33648af84faSmrg    as_dirs=
33748af84faSmrg    while :; do
33848af84faSmrg      case $as_dir in #(
339bc77032bSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34048af84faSmrg      *) as_qdir=$as_dir;;
34148af84faSmrg      esac
34248af84faSmrg      as_dirs="'$as_qdir' $as_dirs"
34348af84faSmrg      as_dir=`$as_dirname -- "$as_dir" ||
34448af84faSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34548af84faSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
34648af84faSmrg	 X"$as_dir" : 'X\(//\)$' \| \
34748af84faSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348bc77032bSmrgprintf "%s\n" X"$as_dir" |
34948af84faSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35048af84faSmrg	    s//\1/
35148af84faSmrg	    q
35248af84faSmrg	  }
35348af84faSmrg	  /^X\(\/\/\)[^/].*/{
35448af84faSmrg	    s//\1/
35548af84faSmrg	    q
35648af84faSmrg	  }
35748af84faSmrg	  /^X\(\/\/\)$/{
35848af84faSmrg	    s//\1/
35948af84faSmrg	    q
36048af84faSmrg	  }
36148af84faSmrg	  /^X\(\/\).*/{
36248af84faSmrg	    s//\1/
36348af84faSmrg	    q
36448af84faSmrg	  }
36548af84faSmrg	  s/.*/./; q'`
36648af84faSmrg      test -d "$as_dir" && break
36748af84faSmrg    done
36848af84faSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
36948af84faSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37048af84faSmrg
37148af84faSmrg
37248af84faSmrg} # as_fn_mkdir_p
373c6a6acfbSmrg
374c6a6acfbSmrg# as_fn_executable_p FILE
375c6a6acfbSmrg# -----------------------
376c6a6acfbSmrg# Test if FILE is an executable regular file.
377c6a6acfbSmrgas_fn_executable_p ()
378c6a6acfbSmrg{
379c6a6acfbSmrg  test -f "$1" && test -x "$1"
380c6a6acfbSmrg} # as_fn_executable_p
38148af84faSmrg# as_fn_append VAR VALUE
38248af84faSmrg# ----------------------
38348af84faSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
38448af84faSmrg# advantage of any shell optimizations that allow amortized linear growth over
38548af84faSmrg# repeated appends, instead of the typical quadratic growth present in naive
38648af84faSmrg# implementations.
387bc77032bSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388bc77032bSmrgthen :
38948af84faSmrg  eval 'as_fn_append ()
39048af84faSmrg  {
39148af84faSmrg    eval $1+=\$2
39248af84faSmrg  }'
393bc77032bSmrgelse $as_nop
39448af84faSmrg  as_fn_append ()
39548af84faSmrg  {
39648af84faSmrg    eval $1=\$$1\$2
39748af84faSmrg  }
39848af84faSmrgfi # as_fn_append
39948af84faSmrg
40048af84faSmrg# as_fn_arith ARG...
40148af84faSmrg# ------------------
40248af84faSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
40348af84faSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
40448af84faSmrg# must be portable across $(()) and expr.
405bc77032bSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406bc77032bSmrgthen :
40748af84faSmrg  eval 'as_fn_arith ()
40848af84faSmrg  {
40948af84faSmrg    as_val=$(( $* ))
41048af84faSmrg  }'
411bc77032bSmrgelse $as_nop
41248af84faSmrg  as_fn_arith ()
41348af84faSmrg  {
41448af84faSmrg    as_val=`expr "$@" || test $? -eq 1`
41548af84faSmrg  }
41648af84faSmrgfi # as_fn_arith
41748af84faSmrg
418bc77032bSmrg# as_fn_nop
419bc77032bSmrg# ---------
420bc77032bSmrg# Do nothing but, unlike ":", preserve the value of $?.
421bc77032bSmrgas_fn_nop ()
422bc77032bSmrg{
423bc77032bSmrg  return $?
424bc77032bSmrg}
425bc77032bSmrgas_nop=as_fn_nop
42648af84faSmrg
42748af84faSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
42848af84faSmrg# ----------------------------------------
42948af84faSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
43048af84faSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
43148af84faSmrg# script with STATUS, using 1 if that was 0.
43248af84faSmrgas_fn_error ()
43348af84faSmrg{
43448af84faSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
43548af84faSmrg  if test "$4"; then
43648af84faSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
43848af84faSmrg  fi
439bc77032bSmrg  printf "%s\n" "$as_me: error: $2" >&2
44048af84faSmrg  as_fn_exit $as_status
44148af84faSmrg} # as_fn_error
44248af84faSmrg
44389d09728Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
44489d09728Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
44566fe65f6Smrg  as_expr=expr
44666fe65f6Smrgelse
44766fe65f6Smrg  as_expr=false
44866fe65f6Smrgfi
44966fe65f6Smrg
45089d09728Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45166fe65f6Smrg  as_basename=basename
45266fe65f6Smrgelse
45366fe65f6Smrg  as_basename=false
45466fe65f6Smrgfi
45566fe65f6Smrg
45648af84faSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45748af84faSmrg  as_dirname=dirname
45848af84faSmrgelse
45948af84faSmrg  as_dirname=false
46048af84faSmrgfi
46166fe65f6Smrg
46289d09728Smrgas_me=`$as_basename -- "$0" ||
46366fe65f6Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46466fe65f6Smrg	 X"$0" : 'X\(//\)$' \| \
46589d09728Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466bc77032bSmrgprintf "%s\n" X/"$0" |
46789d09728Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
46889d09728Smrg	    s//\1/
46989d09728Smrg	    q
47089d09728Smrg	  }
47189d09728Smrg	  /^X\/\(\/\/\)$/{
47289d09728Smrg	    s//\1/
47389d09728Smrg	    q
47489d09728Smrg	  }
47589d09728Smrg	  /^X\/\(\/\).*/{
47689d09728Smrg	    s//\1/
47789d09728Smrg	    q
47889d09728Smrg	  }
47989d09728Smrg	  s/.*/./; q'`
48066fe65f6Smrg
48148af84faSmrg# Avoid depending upon Character Ranges.
48248af84faSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
48348af84faSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48448af84faSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
48548af84faSmrgas_cr_digits='0123456789'
48648af84faSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
48766fe65f6Smrg
48866fe65f6Smrg
48948af84faSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
49048af84faSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
49148af84faSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
49248af84faSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
49348af84faSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
49448af84faSmrg  sed -n '
49548af84faSmrg    p
49648af84faSmrg    /[$]LINENO/=
49748af84faSmrg  ' <$as_myself |
49848af84faSmrg    sed '
49948af84faSmrg      s/[$]LINENO.*/&-/
50048af84faSmrg      t lineno
50148af84faSmrg      b
50248af84faSmrg      :lineno
50348af84faSmrg      N
50448af84faSmrg      :loop
50548af84faSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
50648af84faSmrg      t loop
50748af84faSmrg      s/-\n.*//
50848af84faSmrg    ' >$as_me.lineno &&
50948af84faSmrg  chmod +x "$as_me.lineno" ||
510bc77032bSmrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
51166fe65f6Smrg
512c6a6acfbSmrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513c6a6acfbSmrg  # already done that, so ensure we don't try to do so again and fall
514c6a6acfbSmrg  # in an infinite loop.  This has already happened in practice.
515c6a6acfbSmrg  _as_can_reexec=no; export _as_can_reexec
51648af84faSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
51748af84faSmrg  # (the dirname of $[0] is not the place where we might find the
51848af84faSmrg  # original and so on.  Autoconf is especially sensitive to this).
51948af84faSmrg  . "./$as_me.lineno"
52048af84faSmrg  # Exit status is that of the last command.
52148af84faSmrg  exit
52266fe65f6Smrg}
52366fe65f6Smrg
524bc77032bSmrg
525bc77032bSmrg# Determine whether it's possible to make 'echo' print without a newline.
526bc77032bSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527bc77032bSmrg# for compatibility with existing Makefiles.
52848af84faSmrgECHO_C= ECHO_N= ECHO_T=
52948af84faSmrgcase `echo -n x` in #(((((
53048af84faSmrg-n*)
53148af84faSmrg  case `echo 'xy\c'` in
53248af84faSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
53348af84faSmrg  xy)  ECHO_C='\c';;
53448af84faSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
53548af84faSmrg       ECHO_T='	';;
53648af84faSmrg  esac;;
53748af84faSmrg*)
53848af84faSmrg  ECHO_N='-n';;
53948af84faSmrgesac
540a9274bcdSmrg
541bc77032bSmrg# For backward compatibility with old third-party macros, we provide
542bc77032bSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
543bc77032bSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544bc77032bSmrgas_echo='printf %s\n'
545bc77032bSmrgas_echo_n='printf %s'
546bc77032bSmrg
547bc77032bSmrg
54848af84faSmrgrm -f conf$$ conf$$.exe conf$$.file
54948af84faSmrgif test -d conf$$.dir; then
55048af84faSmrg  rm -f conf$$.dir/conf$$.file
55148af84faSmrgelse
55248af84faSmrg  rm -f conf$$.dir
55348af84faSmrg  mkdir conf$$.dir 2>/dev/null
55466fe65f6Smrgfi
55548af84faSmrgif (echo >conf$$.file) 2>/dev/null; then
55648af84faSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
55748af84faSmrg    as_ln_s='ln -s'
55848af84faSmrg    # ... but there are two gotchas:
55948af84faSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
56048af84faSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561c6a6acfbSmrg    # In both cases, we have to default to `cp -pR'.
56248af84faSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563c6a6acfbSmrg      as_ln_s='cp -pR'
56448af84faSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
56548af84faSmrg    as_ln_s=ln
56648af84faSmrg  else
567c6a6acfbSmrg    as_ln_s='cp -pR'
56848af84faSmrg  fi
56966fe65f6Smrgelse
570c6a6acfbSmrg  as_ln_s='cp -pR'
57166fe65f6Smrgfi
57248af84faSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
57348af84faSmrgrmdir conf$$.dir 2>/dev/null
57466fe65f6Smrg
57548af84faSmrgif mkdir -p . 2>/dev/null; then
57648af84faSmrg  as_mkdir_p='mkdir -p "$as_dir"'
57748af84faSmrgelse
57848af84faSmrg  test -d ./-p && rmdir ./-p
57948af84faSmrg  as_mkdir_p=false
580a9274bcdSmrgfi
581a9274bcdSmrg
582c6a6acfbSmrgas_test_x='test -x'
583c6a6acfbSmrgas_executable_p=as_fn_executable_p
58466fe65f6Smrg
58548af84faSmrg# Sed expression to map a string onto a valid CPP name.
58648af84faSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
58766fe65f6Smrg
58848af84faSmrg# Sed expression to map a string onto a valid variable name.
58948af84faSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
59066fe65f6Smrg
59166fe65f6Smrg
59248af84faSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
59348af84faSmrgexec 6>&1
594a9274bcdSmrg
595a9274bcdSmrg# Name of the host.
59648af84faSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597a9274bcdSmrg# so uname gets run too.
59866fe65f6Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
59966fe65f6Smrg
60066fe65f6Smrg#
60166fe65f6Smrg# Initializations.
60266fe65f6Smrg#
60366fe65f6Smrgac_default_prefix=/usr/local
60489d09728Smrgac_clean_files=
60566fe65f6Smrgac_config_libobj_dir=.
60689d09728SmrgLIBOBJS=
60766fe65f6Smrgcross_compiling=no
60866fe65f6Smrgsubdirs=
60966fe65f6SmrgMFLAGS=
61066fe65f6SmrgMAKEFLAGS=
61166fe65f6Smrg
61266fe65f6Smrg# Identity of this package.
61366fe65f6SmrgPACKAGE_NAME='font-util'
61466fe65f6SmrgPACKAGE_TARNAME='font-util'
615c12babebSmrgPACKAGE_VERSION='1.4.0'
616c12babebSmrgPACKAGE_STRING='font-util 1.4.0'
617c12babebSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/font/util/-/issues'
61848af84faSmrgPACKAGE_URL=''
61966fe65f6Smrg
620f931275dSmrgac_unique_file="Makefile.am"
62189d09728Smrg# Factoring default headers for most tests.
62289d09728Smrgac_includes_default="\
623bc77032bSmrg#include <stddef.h>
624bc77032bSmrg#ifdef HAVE_STDIO_H
625bc77032bSmrg# include <stdio.h>
62689d09728Smrg#endif
627bc77032bSmrg#ifdef HAVE_STDLIB_H
62889d09728Smrg# include <stdlib.h>
62989d09728Smrg#endif
63089d09728Smrg#ifdef HAVE_STRING_H
63189d09728Smrg# include <string.h>
63289d09728Smrg#endif
63389d09728Smrg#ifdef HAVE_INTTYPES_H
63489d09728Smrg# include <inttypes.h>
63589d09728Smrg#endif
63689d09728Smrg#ifdef HAVE_STDINT_H
63789d09728Smrg# include <stdint.h>
63889d09728Smrg#endif
639bc77032bSmrg#ifdef HAVE_STRINGS_H
640bc77032bSmrg# include <strings.h>
641bc77032bSmrg#endif
642bc77032bSmrg#ifdef HAVE_SYS_TYPES_H
643bc77032bSmrg# include <sys/types.h>
644bc77032bSmrg#endif
645bc77032bSmrg#ifdef HAVE_SYS_STAT_H
646bc77032bSmrg# include <sys/stat.h>
647bc77032bSmrg#endif
64889d09728Smrg#ifdef HAVE_UNISTD_H
64989d09728Smrg# include <unistd.h>
65089d09728Smrg#endif"
65189d09728Smrg
652bc77032bSmrgac_header_c_list=
653a9274bcdSmrgac_subst_vars='am__EXEEXT_FALSE
654a9274bcdSmrgam__EXEEXT_TRUE
655a9274bcdSmrgLTLIBOBJS
65689d09728SmrgLIBOBJS
657a9274bcdSmrgMAPDIR
658a9274bcdSmrgfontrootdir
65948af84faSmrgMAN_SUBSTS
66048af84faSmrgXORG_MAN_PAGE
66189d09728SmrgADMIN_MAN_DIR
66289d09728SmrgDRIVER_MAN_DIR
66389d09728SmrgMISC_MAN_DIR
66489d09728SmrgFILE_MAN_DIR
66589d09728SmrgLIB_MAN_DIR
66689d09728SmrgAPP_MAN_DIR
66789d09728SmrgADMIN_MAN_SUFFIX
66889d09728SmrgDRIVER_MAN_SUFFIX
66989d09728SmrgMISC_MAN_SUFFIX
67089d09728SmrgFILE_MAN_SUFFIX
67189d09728SmrgLIB_MAN_SUFFIX
67289d09728SmrgAPP_MAN_SUFFIX
67348af84faSmrgSED
67489d09728Smrghost_os
67589d09728Smrghost_vendor
67689d09728Smrghost_cpu
67789d09728Smrghost
67889d09728Smrgbuild_os
67989d09728Smrgbuild_vendor
68089d09728Smrgbuild_cpu
68189d09728Smrgbuild
68248af84faSmrgINSTALL_CMD
68338c51623SmrgPKG_CONFIG_LIBDIR
68438c51623SmrgPKG_CONFIG_PATH
68548af84faSmrgPKG_CONFIG
686a9274bcdSmrgCHANGELOG_CMD
687f931275dSmrgSTRICT_CFLAGS
68889d09728SmrgCWARNFLAGS
689f931275dSmrgBASE_CFLAGS
69089d09728Smrgam__fastdepCC_FALSE
69189d09728Smrgam__fastdepCC_TRUE
69289d09728SmrgCCDEPMODE
693c6a6acfbSmrgam__nodep
69489d09728SmrgAMDEPBACKSLASH
69589d09728SmrgAMDEP_FALSE
69689d09728SmrgAMDEP_TRUE
69789d09728Smrgam__include
69889d09728SmrgDEPDIR
69989d09728SmrgOBJEXT
70089d09728SmrgEXEEXT
70189d09728Smrgac_ct_CC
70289d09728SmrgCPPFLAGS
70389d09728SmrgLDFLAGS
70489d09728SmrgCFLAGS
70589d09728SmrgCC
706c6a6acfbSmrgAM_BACKSLASH
707c6a6acfbSmrgAM_DEFAULT_VERBOSITY
708c6a6acfbSmrgAM_DEFAULT_V
709c6a6acfbSmrgAM_V
710bc77032bSmrgCSCOPE
711bc77032bSmrgETAGS
712bc77032bSmrgCTAGS
71389d09728Smrgam__untar
71489d09728Smrgam__tar
71589d09728SmrgAMTAR
71689d09728Smrgam__leading_dot
71789d09728SmrgSET_MAKE
71889d09728SmrgAWK
71989d09728Smrgmkdir_p
72089d09728SmrgMKDIR_P
72189d09728SmrgINSTALL_STRIP_PROGRAM
72289d09728SmrgSTRIP
72389d09728Smrginstall_sh
72489d09728SmrgMAKEINFO
72589d09728SmrgAUTOHEADER
72689d09728SmrgAUTOMAKE
72789d09728SmrgAUTOCONF
72889d09728SmrgACLOCAL
72989d09728SmrgVERSION
73089d09728SmrgPACKAGE
73189d09728SmrgCYGPATH_W
73289d09728Smrgam__isrc
73389d09728SmrgINSTALL_DATA
73489d09728SmrgINSTALL_SCRIPT
73589d09728SmrgINSTALL_PROGRAM
73689d09728Smrgtarget_alias
73789d09728Smrghost_alias
73889d09728Smrgbuild_alias
73989d09728SmrgLIBS
74089d09728SmrgECHO_T
74189d09728SmrgECHO_N
74289d09728SmrgECHO_C
74389d09728SmrgDEFS
74489d09728Smrgmandir
74589d09728Smrglocaledir
74689d09728Smrglibdir
74789d09728Smrgpsdir
74889d09728Smrgpdfdir
74989d09728Smrgdvidir
75089d09728Smrghtmldir
75189d09728Smrginfodir
75289d09728Smrgdocdir
75389d09728Smrgoldincludedir
75489d09728Smrgincludedir
755bc77032bSmrgrunstatedir
75689d09728Smrglocalstatedir
75789d09728Smrgsharedstatedir
75889d09728Smrgsysconfdir
75989d09728Smrgdatadir
76089d09728Smrgdatarootdir
76189d09728Smrglibexecdir
76289d09728Smrgsbindir
76389d09728Smrgbindir
76489d09728Smrgprogram_transform_name
76589d09728Smrgprefix
76689d09728Smrgexec_prefix
76748af84faSmrgPACKAGE_URL
76889d09728SmrgPACKAGE_BUGREPORT
76989d09728SmrgPACKAGE_STRING
77089d09728SmrgPACKAGE_VERSION
77189d09728SmrgPACKAGE_TARNAME
77289d09728SmrgPACKAGE_NAME
77389d09728SmrgPATH_SEPARATOR
774bc77032bSmrgSHELL
775bc77032bSmrgam__quote'
77666fe65f6Smrgac_subst_files=''
77789d09728Smrgac_user_opts='
77889d09728Smrgenable_option_checking
779c6a6acfbSmrgenable_silent_rules
78089d09728Smrgenable_dependency_tracking
781f931275dSmrgenable_selective_werror
782a9274bcdSmrgenable_strict_compilation
783a9274bcdSmrgwith_fontrootdir
784a9274bcdSmrgwith_mapdir
78589d09728Smrg'
78689d09728Smrg      ac_precious_vars='build_alias
78789d09728Smrghost_alias
78889d09728Smrgtarget_alias
78989d09728SmrgCC
79089d09728SmrgCFLAGS
79189d09728SmrgLDFLAGS
79289d09728SmrgLIBS
79389d09728SmrgCPPFLAGS
79438c51623SmrgPKG_CONFIG
79538c51623SmrgPKG_CONFIG_PATH
79638c51623SmrgPKG_CONFIG_LIBDIR'
79789d09728Smrg
79866fe65f6Smrg
79966fe65f6Smrg# Initialize some variables set by options.
80066fe65f6Smrgac_init_help=
80166fe65f6Smrgac_init_version=false
80289d09728Smrgac_unrecognized_opts=
80389d09728Smrgac_unrecognized_sep=
80466fe65f6Smrg# The variables have the same names as the options, with
80566fe65f6Smrg# dashes changed to underlines.
80666fe65f6Smrgcache_file=/dev/null
80766fe65f6Smrgexec_prefix=NONE
80866fe65f6Smrgno_create=
80966fe65f6Smrgno_recursion=
81066fe65f6Smrgprefix=NONE
81166fe65f6Smrgprogram_prefix=NONE
81266fe65f6Smrgprogram_suffix=NONE
81366fe65f6Smrgprogram_transform_name=s,x,x,
81466fe65f6Smrgsilent=
81566fe65f6Smrgsite=
81666fe65f6Smrgsrcdir=
81766fe65f6Smrgverbose=
81866fe65f6Smrgx_includes=NONE
81966fe65f6Smrgx_libraries=NONE
82066fe65f6Smrg
82166fe65f6Smrg# Installation directory options.
82266fe65f6Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
82366fe65f6Smrg# and all the variables that are supposed to be based on exec_prefix
82466fe65f6Smrg# by default will actually change.
82566fe65f6Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
82689d09728Smrg# (The list follows the same order as the GNU Coding Standards.)
82766fe65f6Smrgbindir='${exec_prefix}/bin'
82866fe65f6Smrgsbindir='${exec_prefix}/sbin'
82966fe65f6Smrglibexecdir='${exec_prefix}/libexec'
83089d09728Smrgdatarootdir='${prefix}/share'
83189d09728Smrgdatadir='${datarootdir}'
83266fe65f6Smrgsysconfdir='${prefix}/etc'
83366fe65f6Smrgsharedstatedir='${prefix}/com'
83466fe65f6Smrglocalstatedir='${prefix}/var'
835bc77032bSmrgrunstatedir='${localstatedir}/run'
83666fe65f6Smrgincludedir='${prefix}/include'
83766fe65f6Smrgoldincludedir='/usr/include'
83889d09728Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
83989d09728Smrginfodir='${datarootdir}/info'
84089d09728Smrghtmldir='${docdir}'
84189d09728Smrgdvidir='${docdir}'
84289d09728Smrgpdfdir='${docdir}'
84389d09728Smrgpsdir='${docdir}'
84489d09728Smrglibdir='${exec_prefix}/lib'
84589d09728Smrglocaledir='${datarootdir}/locale'
84689d09728Smrgmandir='${datarootdir}/man'
84766fe65f6Smrg
84866fe65f6Smrgac_prev=
84989d09728Smrgac_dashdash=
85066fe65f6Smrgfor ac_option
85166fe65f6Smrgdo
85266fe65f6Smrg  # If the previous option needs an argument, assign it.
85366fe65f6Smrg  if test -n "$ac_prev"; then
85489d09728Smrg    eval $ac_prev=\$ac_option
85566fe65f6Smrg    ac_prev=
85666fe65f6Smrg    continue
85766fe65f6Smrg  fi
85866fe65f6Smrg
85989d09728Smrg  case $ac_option in
86048af84faSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
86148af84faSmrg  *=)   ac_optarg= ;;
86248af84faSmrg  *)    ac_optarg=yes ;;
86389d09728Smrg  esac
86466fe65f6Smrg
86589d09728Smrg  case $ac_dashdash$ac_option in
86689d09728Smrg  --)
86789d09728Smrg    ac_dashdash=yes ;;
86866fe65f6Smrg
86966fe65f6Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
87066fe65f6Smrg    ac_prev=bindir ;;
87166fe65f6Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87266fe65f6Smrg    bindir=$ac_optarg ;;
87366fe65f6Smrg
87466fe65f6Smrg  -build | --build | --buil | --bui | --bu)
87566fe65f6Smrg    ac_prev=build_alias ;;
87666fe65f6Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87766fe65f6Smrg    build_alias=$ac_optarg ;;
87866fe65f6Smrg
87966fe65f6Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
88066fe65f6Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88166fe65f6Smrg    ac_prev=cache_file ;;
88266fe65f6Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
88366fe65f6Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
88466fe65f6Smrg    cache_file=$ac_optarg ;;
88566fe65f6Smrg
88666fe65f6Smrg  --config-cache | -C)
88766fe65f6Smrg    cache_file=config.cache ;;
88866fe65f6Smrg
88989d09728Smrg  -datadir | --datadir | --datadi | --datad)
89066fe65f6Smrg    ac_prev=datadir ;;
89189d09728Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
89266fe65f6Smrg    datadir=$ac_optarg ;;
89366fe65f6Smrg
89489d09728Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
89589d09728Smrg  | --dataroo | --dataro | --datar)
89689d09728Smrg    ac_prev=datarootdir ;;
89789d09728Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
89889d09728Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
89989d09728Smrg    datarootdir=$ac_optarg ;;
90089d09728Smrg
90166fe65f6Smrg  -disable-* | --disable-*)
90289d09728Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
90366fe65f6Smrg    # Reject names that are not valid shell variable names.
90489d09728Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905bc77032bSmrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
90689d09728Smrg    ac_useropt_orig=$ac_useropt
907bc77032bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
90889d09728Smrg    case $ac_user_opts in
90989d09728Smrg      *"
91089d09728Smrg"enable_$ac_useropt"
91189d09728Smrg"*) ;;
91289d09728Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
91389d09728Smrg	 ac_unrecognized_sep=', ';;
91489d09728Smrg    esac
91589d09728Smrg    eval enable_$ac_useropt=no ;;
91689d09728Smrg
91789d09728Smrg  -docdir | --docdir | --docdi | --doc | --do)
91889d09728Smrg    ac_prev=docdir ;;
91989d09728Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
92089d09728Smrg    docdir=$ac_optarg ;;
92189d09728Smrg
92289d09728Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
92389d09728Smrg    ac_prev=dvidir ;;
92489d09728Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
92589d09728Smrg    dvidir=$ac_optarg ;;
92666fe65f6Smrg
92766fe65f6Smrg  -enable-* | --enable-*)
92889d09728Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
92966fe65f6Smrg    # Reject names that are not valid shell variable names.
93089d09728Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931bc77032bSmrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
93289d09728Smrg    ac_useropt_orig=$ac_useropt
933bc77032bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
93489d09728Smrg    case $ac_user_opts in
93589d09728Smrg      *"
93689d09728Smrg"enable_$ac_useropt"
93789d09728Smrg"*) ;;
93889d09728Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
93989d09728Smrg	 ac_unrecognized_sep=', ';;
94066fe65f6Smrg    esac
94189d09728Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
94266fe65f6Smrg
94366fe65f6Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
94466fe65f6Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
94566fe65f6Smrg  | --exec | --exe | --ex)
94666fe65f6Smrg    ac_prev=exec_prefix ;;
94766fe65f6Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
94866fe65f6Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
94966fe65f6Smrg  | --exec=* | --exe=* | --ex=*)
95066fe65f6Smrg    exec_prefix=$ac_optarg ;;
95166fe65f6Smrg
95266fe65f6Smrg  -gas | --gas | --ga | --g)
95366fe65f6Smrg    # Obsolete; use --with-gas.
95466fe65f6Smrg    with_gas=yes ;;
95566fe65f6Smrg
95666fe65f6Smrg  -help | --help | --hel | --he | -h)
95766fe65f6Smrg    ac_init_help=long ;;
95866fe65f6Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
95966fe65f6Smrg    ac_init_help=recursive ;;
96066fe65f6Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
96166fe65f6Smrg    ac_init_help=short ;;
96266fe65f6Smrg
96366fe65f6Smrg  -host | --host | --hos | --ho)
96466fe65f6Smrg    ac_prev=host_alias ;;
96566fe65f6Smrg  -host=* | --host=* | --hos=* | --ho=*)
96666fe65f6Smrg    host_alias=$ac_optarg ;;
96766fe65f6Smrg
96889d09728Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
96989d09728Smrg    ac_prev=htmldir ;;
97089d09728Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
97189d09728Smrg  | --ht=*)
97289d09728Smrg    htmldir=$ac_optarg ;;
97389d09728Smrg
97466fe65f6Smrg  -includedir | --includedir | --includedi | --included | --include \
97566fe65f6Smrg  | --includ | --inclu | --incl | --inc)
97666fe65f6Smrg    ac_prev=includedir ;;
97766fe65f6Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
97866fe65f6Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
97966fe65f6Smrg    includedir=$ac_optarg ;;
98066fe65f6Smrg
98166fe65f6Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
98266fe65f6Smrg    ac_prev=infodir ;;
98366fe65f6Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
98466fe65f6Smrg    infodir=$ac_optarg ;;
98566fe65f6Smrg
98666fe65f6Smrg  -libdir | --libdir | --libdi | --libd)
98766fe65f6Smrg    ac_prev=libdir ;;
98866fe65f6Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
98966fe65f6Smrg    libdir=$ac_optarg ;;
99066fe65f6Smrg
99166fe65f6Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
99266fe65f6Smrg  | --libexe | --libex | --libe)
99366fe65f6Smrg    ac_prev=libexecdir ;;
99466fe65f6Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
99566fe65f6Smrg  | --libexe=* | --libex=* | --libe=*)
99666fe65f6Smrg    libexecdir=$ac_optarg ;;
99766fe65f6Smrg
99889d09728Smrg  -localedir | --localedir | --localedi | --localed | --locale)
99989d09728Smrg    ac_prev=localedir ;;
100089d09728Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
100189d09728Smrg    localedir=$ac_optarg ;;
100289d09728Smrg
100366fe65f6Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
100489d09728Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
100566fe65f6Smrg    ac_prev=localstatedir ;;
100666fe65f6Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
100789d09728Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
100866fe65f6Smrg    localstatedir=$ac_optarg ;;
100966fe65f6Smrg
101066fe65f6Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
101166fe65f6Smrg    ac_prev=mandir ;;
101266fe65f6Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
101366fe65f6Smrg    mandir=$ac_optarg ;;
101466fe65f6Smrg
101566fe65f6Smrg  -nfp | --nfp | --nf)
101666fe65f6Smrg    # Obsolete; use --without-fp.
101766fe65f6Smrg    with_fp=no ;;
101866fe65f6Smrg
101966fe65f6Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
102066fe65f6Smrg  | --no-cr | --no-c | -n)
102166fe65f6Smrg    no_create=yes ;;
102266fe65f6Smrg
102366fe65f6Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
102466fe65f6Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
102566fe65f6Smrg    no_recursion=yes ;;
102666fe65f6Smrg
102766fe65f6Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
102866fe65f6Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
102966fe65f6Smrg  | --oldin | --oldi | --old | --ol | --o)
103066fe65f6Smrg    ac_prev=oldincludedir ;;
103166fe65f6Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
103266fe65f6Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
103366fe65f6Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
103466fe65f6Smrg    oldincludedir=$ac_optarg ;;
103566fe65f6Smrg
103666fe65f6Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
103766fe65f6Smrg    ac_prev=prefix ;;
103866fe65f6Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
103966fe65f6Smrg    prefix=$ac_optarg ;;
104066fe65f6Smrg
104166fe65f6Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
104266fe65f6Smrg  | --program-pre | --program-pr | --program-p)
104366fe65f6Smrg    ac_prev=program_prefix ;;
104466fe65f6Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
104566fe65f6Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
104666fe65f6Smrg    program_prefix=$ac_optarg ;;
104766fe65f6Smrg
104866fe65f6Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
104966fe65f6Smrg  | --program-suf | --program-su | --program-s)
105066fe65f6Smrg    ac_prev=program_suffix ;;
105166fe65f6Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
105266fe65f6Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
105366fe65f6Smrg    program_suffix=$ac_optarg ;;
105466fe65f6Smrg
105566fe65f6Smrg  -program-transform-name | --program-transform-name \
105666fe65f6Smrg  | --program-transform-nam | --program-transform-na \
105766fe65f6Smrg  | --program-transform-n | --program-transform- \
105866fe65f6Smrg  | --program-transform | --program-transfor \
105966fe65f6Smrg  | --program-transfo | --program-transf \
106066fe65f6Smrg  | --program-trans | --program-tran \
106166fe65f6Smrg  | --progr-tra | --program-tr | --program-t)
106266fe65f6Smrg    ac_prev=program_transform_name ;;
106366fe65f6Smrg  -program-transform-name=* | --program-transform-name=* \
106466fe65f6Smrg  | --program-transform-nam=* | --program-transform-na=* \
106566fe65f6Smrg  | --program-transform-n=* | --program-transform-=* \
106666fe65f6Smrg  | --program-transform=* | --program-transfor=* \
106766fe65f6Smrg  | --program-transfo=* | --program-transf=* \
106866fe65f6Smrg  | --program-trans=* | --program-tran=* \
106966fe65f6Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
107066fe65f6Smrg    program_transform_name=$ac_optarg ;;
107166fe65f6Smrg
107289d09728Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
107389d09728Smrg    ac_prev=pdfdir ;;
107489d09728Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
107589d09728Smrg    pdfdir=$ac_optarg ;;
107689d09728Smrg
107789d09728Smrg  -psdir | --psdir | --psdi | --psd | --ps)
107889d09728Smrg    ac_prev=psdir ;;
107989d09728Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
108089d09728Smrg    psdir=$ac_optarg ;;
108189d09728Smrg
108266fe65f6Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
108366fe65f6Smrg  | -silent | --silent | --silen | --sile | --sil)
108466fe65f6Smrg    silent=yes ;;
108566fe65f6Smrg
1086bc77032bSmrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
1087bc77032bSmrg  | --runstate | --runstat | --runsta | --runst | --runs \
1088bc77032bSmrg  | --run | --ru | --r)
1089bc77032bSmrg    ac_prev=runstatedir ;;
1090bc77032bSmrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091bc77032bSmrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092bc77032bSmrg  | --run=* | --ru=* | --r=*)
1093bc77032bSmrg    runstatedir=$ac_optarg ;;
1094bc77032bSmrg
109566fe65f6Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
109666fe65f6Smrg    ac_prev=sbindir ;;
109766fe65f6Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
109866fe65f6Smrg  | --sbi=* | --sb=*)
109966fe65f6Smrg    sbindir=$ac_optarg ;;
110066fe65f6Smrg
110166fe65f6Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
110266fe65f6Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
110366fe65f6Smrg  | --sharedst | --shareds | --shared | --share | --shar \
110466fe65f6Smrg  | --sha | --sh)
110566fe65f6Smrg    ac_prev=sharedstatedir ;;
110666fe65f6Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
110766fe65f6Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
110866fe65f6Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
110966fe65f6Smrg  | --sha=* | --sh=*)
111066fe65f6Smrg    sharedstatedir=$ac_optarg ;;
111166fe65f6Smrg
111266fe65f6Smrg  -site | --site | --sit)
111366fe65f6Smrg    ac_prev=site ;;
111466fe65f6Smrg  -site=* | --site=* | --sit=*)
111566fe65f6Smrg    site=$ac_optarg ;;
111666fe65f6Smrg
111766fe65f6Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
111866fe65f6Smrg    ac_prev=srcdir ;;
111966fe65f6Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
112066fe65f6Smrg    srcdir=$ac_optarg ;;
112166fe65f6Smrg
112266fe65f6Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
112366fe65f6Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
112466fe65f6Smrg    ac_prev=sysconfdir ;;
112566fe65f6Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
112666fe65f6Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
112766fe65f6Smrg    sysconfdir=$ac_optarg ;;
112866fe65f6Smrg
112966fe65f6Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
113066fe65f6Smrg    ac_prev=target_alias ;;
113166fe65f6Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
113266fe65f6Smrg    target_alias=$ac_optarg ;;
113366fe65f6Smrg
113466fe65f6Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
113566fe65f6Smrg    verbose=yes ;;
113666fe65f6Smrg
113766fe65f6Smrg  -version | --version | --versio | --versi | --vers | -V)
113866fe65f6Smrg    ac_init_version=: ;;
113966fe65f6Smrg
114066fe65f6Smrg  -with-* | --with-*)
114189d09728Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
114266fe65f6Smrg    # Reject names that are not valid shell variable names.
114389d09728Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144bc77032bSmrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
114589d09728Smrg    ac_useropt_orig=$ac_useropt
1146bc77032bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
114789d09728Smrg    case $ac_user_opts in
114889d09728Smrg      *"
114989d09728Smrg"with_$ac_useropt"
115089d09728Smrg"*) ;;
115189d09728Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
115289d09728Smrg	 ac_unrecognized_sep=', ';;
115366fe65f6Smrg    esac
115489d09728Smrg    eval with_$ac_useropt=\$ac_optarg ;;
115566fe65f6Smrg
115666fe65f6Smrg  -without-* | --without-*)
115789d09728Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
115866fe65f6Smrg    # Reject names that are not valid shell variable names.
115989d09728Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160bc77032bSmrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
116189d09728Smrg    ac_useropt_orig=$ac_useropt
1162bc77032bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
116389d09728Smrg    case $ac_user_opts in
116489d09728Smrg      *"
116589d09728Smrg"with_$ac_useropt"
116689d09728Smrg"*) ;;
116789d09728Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
116889d09728Smrg	 ac_unrecognized_sep=', ';;
116989d09728Smrg    esac
117089d09728Smrg    eval with_$ac_useropt=no ;;
117166fe65f6Smrg
117266fe65f6Smrg  --x)
117366fe65f6Smrg    # Obsolete; use --with-x.
117466fe65f6Smrg    with_x=yes ;;
117566fe65f6Smrg
117666fe65f6Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
117766fe65f6Smrg  | --x-incl | --x-inc | --x-in | --x-i)
117866fe65f6Smrg    ac_prev=x_includes ;;
117966fe65f6Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
118066fe65f6Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
118166fe65f6Smrg    x_includes=$ac_optarg ;;
118266fe65f6Smrg
118366fe65f6Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
118466fe65f6Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
118566fe65f6Smrg    ac_prev=x_libraries ;;
118666fe65f6Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
118766fe65f6Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
118866fe65f6Smrg    x_libraries=$ac_optarg ;;
118966fe65f6Smrg
119048af84faSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
119148af84faSmrgTry \`$0 --help' for more information"
119266fe65f6Smrg    ;;
119366fe65f6Smrg
119466fe65f6Smrg  *=*)
119566fe65f6Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
119666fe65f6Smrg    # Reject names that are not valid shell variable names.
119748af84faSmrg    case $ac_envvar in #(
119848af84faSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
119948af84faSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
120048af84faSmrg    esac
120189d09728Smrg    eval $ac_envvar=\$ac_optarg
120266fe65f6Smrg    export $ac_envvar ;;
120366fe65f6Smrg
120466fe65f6Smrg  *)
120566fe65f6Smrg    # FIXME: should be removed in autoconf 3.0.
1206bc77032bSmrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
120766fe65f6Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208bc77032bSmrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
120948af84faSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
121066fe65f6Smrg    ;;
121166fe65f6Smrg
121266fe65f6Smrg  esac
121366fe65f6Smrgdone
121466fe65f6Smrg
121566fe65f6Smrgif test -n "$ac_prev"; then
121666fe65f6Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
121748af84faSmrg  as_fn_error $? "missing argument to $ac_option"
121866fe65f6Smrgfi
121966fe65f6Smrg
122089d09728Smrgif test -n "$ac_unrecognized_opts"; then
122189d09728Smrg  case $enable_option_checking in
122289d09728Smrg    no) ;;
122348af84faSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224bc77032bSmrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
122566fe65f6Smrg  esac
122689d09728Smrgfi
122766fe65f6Smrg
122889d09728Smrg# Check all directory arguments for consistency.
122989d09728Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
123089d09728Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
123189d09728Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232bc77032bSmrg		libdir localedir mandir runstatedir
123366fe65f6Smrgdo
123489d09728Smrg  eval ac_val=\$$ac_var
123589d09728Smrg  # Remove trailing slashes.
123666fe65f6Smrg  case $ac_val in
123789d09728Smrg    */ )
123889d09728Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
123989d09728Smrg      eval $ac_var=\$ac_val;;
124066fe65f6Smrg  esac
124189d09728Smrg  # Be sure to have absolute directory names.
124289d09728Smrg  case $ac_val in
124389d09728Smrg    [\\/$]* | ?:[\\/]* )  continue;;
124489d09728Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
124589d09728Smrg  esac
124648af84faSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
124766fe65f6Smrgdone
124866fe65f6Smrg
124966fe65f6Smrg# There might be people who depend on the old broken behavior: `$host'
125066fe65f6Smrg# used to hold the argument of --host etc.
125166fe65f6Smrg# FIXME: To remove some day.
125266fe65f6Smrgbuild=$build_alias
125366fe65f6Smrghost=$host_alias
125466fe65f6Smrgtarget=$target_alias
125566fe65f6Smrg
125666fe65f6Smrg# FIXME: To remove some day.
125766fe65f6Smrgif test "x$host_alias" != x; then
125866fe65f6Smrg  if test "x$build_alias" = x; then
125966fe65f6Smrg    cross_compiling=maybe
126066fe65f6Smrg  elif test "x$build_alias" != "x$host_alias"; then
126166fe65f6Smrg    cross_compiling=yes
126266fe65f6Smrg  fi
126366fe65f6Smrgfi
126466fe65f6Smrg
126566fe65f6Smrgac_tool_prefix=
126666fe65f6Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
126766fe65f6Smrg
126866fe65f6Smrgtest "$silent" = yes && exec 6>/dev/null
126966fe65f6Smrg
127066fe65f6Smrg
127189d09728Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
127289d09728Smrgac_ls_di=`ls -di .` &&
127389d09728Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
127448af84faSmrg  as_fn_error $? "working directory cannot be determined"
127589d09728Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
127648af84faSmrg  as_fn_error $? "pwd does not report name of working directory"
127789d09728Smrg
127889d09728Smrg
127966fe65f6Smrg# Find the source files, if location was not specified.
128066fe65f6Smrgif test -z "$srcdir"; then
128166fe65f6Smrg  ac_srcdir_defaulted=yes
128289d09728Smrg  # Try the directory containing this script, then the parent directory.
128389d09728Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
128489d09728Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
128589d09728Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
128689d09728Smrg	 X"$as_myself" : 'X\(//\)$' \| \
128789d09728Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288bc77032bSmrgprintf "%s\n" X"$as_myself" |
128989d09728Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
129089d09728Smrg	    s//\1/
129189d09728Smrg	    q
129289d09728Smrg	  }
129389d09728Smrg	  /^X\(\/\/\)[^/].*/{
129489d09728Smrg	    s//\1/
129589d09728Smrg	    q
129689d09728Smrg	  }
129789d09728Smrg	  /^X\(\/\/\)$/{
129889d09728Smrg	    s//\1/
129989d09728Smrg	    q
130089d09728Smrg	  }
130189d09728Smrg	  /^X\(\/\).*/{
130289d09728Smrg	    s//\1/
130389d09728Smrg	    q
130489d09728Smrg	  }
130589d09728Smrg	  s/.*/./; q'`
130666fe65f6Smrg  srcdir=$ac_confdir
130789d09728Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
130866fe65f6Smrg    srcdir=..
130966fe65f6Smrg  fi
131066fe65f6Smrgelse
131166fe65f6Smrg  ac_srcdir_defaulted=no
131266fe65f6Smrgfi
131389d09728Smrgif test ! -r "$srcdir/$ac_unique_file"; then
131489d09728Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
131548af84faSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
131689d09728Smrgfi
131789d09728Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
131889d09728Smrgac_abs_confdir=`(
131948af84faSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
132089d09728Smrg	pwd)`
132189d09728Smrg# When building in place, set srcdir=.
132289d09728Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
132389d09728Smrg  srcdir=.
132489d09728Smrgfi
132589d09728Smrg# Remove unnecessary trailing slashes from srcdir.
132689d09728Smrg# Double slashes in file names in object file debugging info
132789d09728Smrg# mess up M-x gdb in Emacs.
132889d09728Smrgcase $srcdir in
132989d09728Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
133089d09728Smrgesac
133189d09728Smrgfor ac_var in $ac_precious_vars; do
133289d09728Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
133389d09728Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
133489d09728Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
133589d09728Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
133689d09728Smrgdone
133766fe65f6Smrg
133866fe65f6Smrg#
133966fe65f6Smrg# Report the --help message.
134066fe65f6Smrg#
134166fe65f6Smrgif test "$ac_init_help" = "long"; then
134266fe65f6Smrg  # Omit some internal or obsolete options to make the list less imposing.
134366fe65f6Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
134466fe65f6Smrg  cat <<_ACEOF
1345c12babebSmrg\`configure' configures font-util 1.4.0 to adapt to many kinds of systems.
134666fe65f6Smrg
134766fe65f6SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
134866fe65f6Smrg
134966fe65f6SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
135066fe65f6SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
135166fe65f6Smrg
135266fe65f6SmrgDefaults for the options are specified in brackets.
135366fe65f6Smrg
135466fe65f6SmrgConfiguration:
135566fe65f6Smrg  -h, --help              display this help and exit
135666fe65f6Smrg      --help=short        display options specific to this package
135766fe65f6Smrg      --help=recursive    display the short help of all the included packages
135866fe65f6Smrg  -V, --version           display version information and exit
135948af84faSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
136066fe65f6Smrg      --cache-file=FILE   cache test results in FILE [disabled]
136166fe65f6Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
136266fe65f6Smrg  -n, --no-create         do not create output files
136366fe65f6Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
136466fe65f6Smrg
136566fe65f6SmrgInstallation directories:
136666fe65f6Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
136789d09728Smrg                          [$ac_default_prefix]
136866fe65f6Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
136989d09728Smrg                          [PREFIX]
137066fe65f6Smrg
137166fe65f6SmrgBy default, \`make install' will install all the files in
137266fe65f6Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
137366fe65f6Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
137466fe65f6Smrgfor instance \`--prefix=\$HOME'.
137566fe65f6Smrg
137666fe65f6SmrgFor better control, use the options below.
137766fe65f6Smrg
137866fe65f6SmrgFine tuning of the installation directories:
137989d09728Smrg  --bindir=DIR            user executables [EPREFIX/bin]
138089d09728Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
138189d09728Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
138289d09728Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
138389d09728Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
138489d09728Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385bc77032bSmrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
138689d09728Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
138789d09728Smrg  --includedir=DIR        C header files [PREFIX/include]
138889d09728Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
138989d09728Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
139089d09728Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
139189d09728Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
139289d09728Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
139389d09728Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
139489d09728Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/font-util]
139589d09728Smrg  --htmldir=DIR           html documentation [DOCDIR]
139689d09728Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
139789d09728Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
139889d09728Smrg  --psdir=DIR             ps documentation [DOCDIR]
139966fe65f6Smrg_ACEOF
140066fe65f6Smrg
140166fe65f6Smrg  cat <<\_ACEOF
140266fe65f6Smrg
140366fe65f6SmrgProgram names:
140466fe65f6Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
140566fe65f6Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
140666fe65f6Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
140766fe65f6Smrg
140866fe65f6SmrgSystem types:
140966fe65f6Smrg  --build=BUILD     configure for building on BUILD [guessed]
141066fe65f6Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
141166fe65f6Smrg_ACEOF
141266fe65f6Smrgfi
141366fe65f6Smrg
141466fe65f6Smrgif test -n "$ac_init_help"; then
141566fe65f6Smrg  case $ac_init_help in
1416c12babebSmrg     short | recursive ) echo "Configuration of font-util 1.4.0:";;
141766fe65f6Smrg   esac
141866fe65f6Smrg  cat <<\_ACEOF
141966fe65f6Smrg
142066fe65f6SmrgOptional Features:
142189d09728Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
142266fe65f6Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
142366fe65f6Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424c6a6acfbSmrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
1425c6a6acfbSmrg  --disable-silent-rules  verbose build output (undo: "make V=0")
1426c6a6acfbSmrg  --enable-dependency-tracking
1427c6a6acfbSmrg                          do not reject slow dependency extractors
1428c6a6acfbSmrg  --disable-dependency-tracking
1429c6a6acfbSmrg                          speeds up one-time build
1430f931275dSmrg  --disable-selective-werror
1431f931275dSmrg                          Turn off selective compiler errors. (default:
1432f931275dSmrg                          enabled)
1433a9274bcdSmrg  --enable-strict-compilation
1434a9274bcdSmrg                          Enable all warnings from compiler and make them
1435a9274bcdSmrg                          errors (default: disabled)
143666fe65f6Smrg
143766fe65f6SmrgOptional Packages:
143866fe65f6Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
143966fe65f6Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1440a9274bcdSmrg  --with-fontrootdir=DIR  Path to parent of font subdirectories
1441a9274bcdSmrg                          [DATADIR/fonts/X11]
1442a9274bcdSmrg  --with-mapdir=DIR       Path to install font maps [FONTROOTDIR/util]
144366fe65f6Smrg
144466fe65f6SmrgSome influential environment variables:
144566fe65f6Smrg  CC          C compiler command
144666fe65f6Smrg  CFLAGS      C compiler flags
144766fe65f6Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
144866fe65f6Smrg              nonstandard directory <lib dir>
144989d09728Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
145048af84faSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
145189d09728Smrg              you have headers in a nonstandard directory <include dir>
145248af84faSmrg  PKG_CONFIG  path to pkg-config utility
145338c51623Smrg  PKG_CONFIG_PATH
145438c51623Smrg              directories to add to pkg-config's search path
145538c51623Smrg  PKG_CONFIG_LIBDIR
145638c51623Smrg              path overriding pkg-config's built-in search path
145766fe65f6Smrg
145866fe65f6SmrgUse these variables to override the choices made by `configure' or to help
145966fe65f6Smrgit to find libraries and programs with nonstandard names/locations.
146066fe65f6Smrg
1461c12babebSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/font/util/-/issues>.
146266fe65f6Smrg_ACEOF
146389d09728Smrgac_status=$?
146466fe65f6Smrgfi
146566fe65f6Smrg
146666fe65f6Smrgif test "$ac_init_help" = "recursive"; then
146766fe65f6Smrg  # If there are subdirs, report their specific --help.
146866fe65f6Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
146989d09728Smrg    test -d "$ac_dir" ||
147089d09728Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
147189d09728Smrg      continue
147266fe65f6Smrg    ac_builddir=.
147366fe65f6Smrg
147489d09728Smrgcase "$ac_dir" in
147589d09728Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
147689d09728Smrg*)
1477bc77032bSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
147889d09728Smrg  # A ".." for each directory in $ac_dir_suffix.
1479bc77032bSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
148089d09728Smrg  case $ac_top_builddir_sub in
148189d09728Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
148289d09728Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
148389d09728Smrg  esac ;;
148489d09728Smrgesac
148589d09728Smrgac_abs_top_builddir=$ac_pwd
148689d09728Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
148789d09728Smrg# for backward compatibility:
148889d09728Smrgac_top_builddir=$ac_top_build_prefix
148966fe65f6Smrg
149066fe65f6Smrgcase $srcdir in
149189d09728Smrg  .)  # We are building in place.
149266fe65f6Smrg    ac_srcdir=.
149389d09728Smrg    ac_top_srcdir=$ac_top_builddir_sub
149489d09728Smrg    ac_abs_top_srcdir=$ac_pwd ;;
149589d09728Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
149666fe65f6Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
149789d09728Smrg    ac_top_srcdir=$srcdir
149889d09728Smrg    ac_abs_top_srcdir=$srcdir ;;
149989d09728Smrg  *) # Relative name.
150089d09728Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
150189d09728Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
150289d09728Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
150366fe65f6Smrgesac
150489d09728Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
150589d09728Smrg
150689d09728Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1507bc77032bSmrg    # Check for configure.gnu first; this name is used for a wrapper for
1508bc77032bSmrg    # Metaconfig's "Configure" on case-insensitive file systems.
150989d09728Smrg    if test -f "$ac_srcdir/configure.gnu"; then
151089d09728Smrg      echo &&
151189d09728Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
151289d09728Smrg    elif test -f "$ac_srcdir/configure"; then
151389d09728Smrg      echo &&
151489d09728Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
151566fe65f6Smrg    else
1516bc77032bSmrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
151789d09728Smrg    fi || ac_status=$?
151889d09728Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
151966fe65f6Smrg  done
152066fe65f6Smrgfi
152166fe65f6Smrg
152289d09728Smrgtest -n "$ac_init_help" && exit $ac_status
152366fe65f6Smrgif $ac_init_version; then
152466fe65f6Smrg  cat <<\_ACEOF
1525c12babebSmrgfont-util configure 1.4.0
1526bc77032bSmrggenerated by GNU Autoconf 2.71
152766fe65f6Smrg
1528bc77032bSmrgCopyright (C) 2021 Free Software Foundation, Inc.
152966fe65f6SmrgThis configure script is free software; the Free Software Foundation
153066fe65f6Smrggives unlimited permission to copy, distribute and modify it.
153166fe65f6Smrg_ACEOF
153289d09728Smrg  exit
153366fe65f6Smrgfi
153466fe65f6Smrg
153548af84faSmrg## ------------------------ ##
153648af84faSmrg## Autoconf initialization. ##
153748af84faSmrg## ------------------------ ##
153866fe65f6Smrg
153948af84faSmrg# ac_fn_c_try_compile LINENO
154048af84faSmrg# --------------------------
154148af84faSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
154248af84faSmrgac_fn_c_try_compile ()
1543a9274bcdSmrg{
154448af84faSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545bc77032bSmrg  rm -f conftest.$ac_objext conftest.beam
154648af84faSmrg  if { { ac_try="$ac_compile"
154748af84faSmrgcase "(($ac_try" in
154848af84faSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
154948af84faSmrg  *) ac_try_echo=$ac_try;;
155048af84faSmrgesac
155148af84faSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
155348af84faSmrg  (eval "$ac_compile") 2>conftest.err
155448af84faSmrg  ac_status=$?
155548af84faSmrg  if test -s conftest.err; then
155648af84faSmrg    grep -v '^ *+' conftest.err >conftest.er1
155748af84faSmrg    cat conftest.er1 >&5
155848af84faSmrg    mv -f conftest.er1 conftest.err
155948af84faSmrg  fi
1560bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
156148af84faSmrg  test $ac_status = 0; } && {
156248af84faSmrg	 test -z "$ac_c_werror_flag" ||
156348af84faSmrg	 test ! -s conftest.err
1564bc77032bSmrg       } && test -s conftest.$ac_objext
1565bc77032bSmrgthen :
156648af84faSmrg  ac_retval=0
1567bc77032bSmrgelse $as_nop
1568bc77032bSmrg  printf "%s\n" "$as_me: failed program was:" >&5
156948af84faSmrgsed 's/^/| /' conftest.$ac_ext >&5
157089d09728Smrg
157148af84faSmrg	ac_retval=1
157248af84faSmrgfi
157348af84faSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
157448af84faSmrg  as_fn_set_status $ac_retval
157589d09728Smrg
157648af84faSmrg} # ac_fn_c_try_compile
157789d09728Smrg
1578bc77032bSmrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1579bc77032bSmrg# ------------------------------------------------------------------
158048af84faSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1581bc77032bSmrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1582bc77032bSmrgac_fn_check_decl ()
158348af84faSmrg{
158448af84faSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
158548af84faSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1586bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1587bc77032bSmrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
1588bc77032bSmrgif eval test \${$3+y}
1589bc77032bSmrgthen :
1590bc77032bSmrg  printf %s "(cached) " >&6
1591bc77032bSmrgelse $as_nop
159248af84faSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1593bc77032bSmrg  eval ac_save_FLAGS=\$$6
1594bc77032bSmrg  as_fn_append $6 " $5"
159548af84faSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
159648af84faSmrg/* end confdefs.h.  */
159748af84faSmrg$4
159848af84faSmrgint
1599bc77032bSmrgmain (void)
160048af84faSmrg{
160148af84faSmrg#ifndef $as_decl_name
160248af84faSmrg#ifdef __cplusplus
160348af84faSmrg  (void) $as_decl_use;
160448af84faSmrg#else
160548af84faSmrg  (void) $as_decl_name;
160648af84faSmrg#endif
160748af84faSmrg#endif
160848af84faSmrg
160948af84faSmrg  ;
161048af84faSmrg  return 0;
161148af84faSmrg}
161248af84faSmrg_ACEOF
1613bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
1614bc77032bSmrgthen :
161548af84faSmrg  eval "$3=yes"
1616bc77032bSmrgelse $as_nop
161748af84faSmrg  eval "$3=no"
161848af84faSmrgfi
1619bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1620bc77032bSmrg  eval $6=\$ac_save_FLAGS
162148af84faSmrg
162248af84faSmrgfi
1623bc77032bSmrgeval ac_res=\$$3
1624bc77032bSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1625bc77032bSmrgprintf "%s\n" "$ac_res" >&6; }
162648af84faSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
162748af84faSmrg
1628bc77032bSmrg} # ac_fn_check_decl
162948af84faSmrg
163048af84faSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
163148af84faSmrg# -------------------------------------------------------
163248af84faSmrg# Tests whether HEADER exists and can be compiled using the include files in
163348af84faSmrg# INCLUDES, setting the cache variable VAR accordingly.
163448af84faSmrgac_fn_c_check_header_compile ()
163548af84faSmrg{
163648af84faSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638bc77032bSmrgprintf %s "checking for $2... " >&6; }
1639bc77032bSmrgif eval test \${$3+y}
1640bc77032bSmrgthen :
1641bc77032bSmrg  printf %s "(cached) " >&6
1642bc77032bSmrgelse $as_nop
164348af84faSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
164448af84faSmrg/* end confdefs.h.  */
164548af84faSmrg$4
164648af84faSmrg#include <$2>
164748af84faSmrg_ACEOF
1648bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
1649bc77032bSmrgthen :
165048af84faSmrg  eval "$3=yes"
1651bc77032bSmrgelse $as_nop
165248af84faSmrg  eval "$3=no"
165348af84faSmrgfi
1654bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
165548af84faSmrgfi
165648af84faSmrgeval ac_res=\$$3
1657bc77032bSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658bc77032bSmrgprintf "%s\n" "$ac_res" >&6; }
165948af84faSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
166048af84faSmrg
166148af84faSmrg} # ac_fn_c_check_header_compile
1662f931275dSmrg
1663f931275dSmrg# ac_fn_c_try_link LINENO
1664f931275dSmrg# -----------------------
1665f931275dSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1666f931275dSmrgac_fn_c_try_link ()
1667f931275dSmrg{
1668f931275dSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669bc77032bSmrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1670f931275dSmrg  if { { ac_try="$ac_link"
1671f931275dSmrgcase "(($ac_try" in
1672f931275dSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673f931275dSmrg  *) ac_try_echo=$ac_try;;
1674f931275dSmrgesac
1675f931275dSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
1677f931275dSmrg  (eval "$ac_link") 2>conftest.err
1678f931275dSmrg  ac_status=$?
1679f931275dSmrg  if test -s conftest.err; then
1680f931275dSmrg    grep -v '^ *+' conftest.err >conftest.er1
1681f931275dSmrg    cat conftest.er1 >&5
1682f931275dSmrg    mv -f conftest.er1 conftest.err
1683f931275dSmrg  fi
1684bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685f931275dSmrg  test $ac_status = 0; } && {
1686f931275dSmrg	 test -z "$ac_c_werror_flag" ||
1687f931275dSmrg	 test ! -s conftest.err
1688f931275dSmrg       } && test -s conftest$ac_exeext && {
1689f931275dSmrg	 test "$cross_compiling" = yes ||
1690c6a6acfbSmrg	 test -x conftest$ac_exeext
1691bc77032bSmrg       }
1692bc77032bSmrgthen :
1693f931275dSmrg  ac_retval=0
1694bc77032bSmrgelse $as_nop
1695bc77032bSmrg  printf "%s\n" "$as_me: failed program was:" >&5
1696f931275dSmrgsed 's/^/| /' conftest.$ac_ext >&5
1697f931275dSmrg
1698f931275dSmrg	ac_retval=1
1699f931275dSmrgfi
1700f931275dSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701f931275dSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702f931275dSmrg  # interfere with the next link command; also delete a directory that is
1703f931275dSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
1704f931275dSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705f931275dSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706f931275dSmrg  as_fn_set_status $ac_retval
1707f931275dSmrg
1708f931275dSmrg} # ac_fn_c_try_link
1709bc77032bSmrgac_configure_args_raw=
1710bc77032bSmrgfor ac_arg
1711bc77032bSmrgdo
1712bc77032bSmrg  case $ac_arg in
1713bc77032bSmrg  *\'*)
1714bc77032bSmrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1715bc77032bSmrg  esac
1716bc77032bSmrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
1717bc77032bSmrgdone
1718bc77032bSmrg
1719bc77032bSmrgcase $ac_configure_args_raw in
1720bc77032bSmrg  *$as_nl*)
1721bc77032bSmrg    ac_safe_unquote= ;;
1722bc77032bSmrg  *)
1723bc77032bSmrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1724bc77032bSmrg    ac_unsafe_a="$ac_unsafe_z#~"
1725bc77032bSmrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1726bc77032bSmrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1727bc77032bSmrgesac
1728bc77032bSmrg
172948af84faSmrgcat >config.log <<_ACEOF
173048af84faSmrgThis file contains any messages produced by compilers while
173148af84faSmrgrunning configure, to aid debugging if configure makes a mistake.
173248af84faSmrg
1733c12babebSmrgIt was created by font-util $as_me 1.4.0, which was
1734bc77032bSmrggenerated by GNU Autoconf 2.71.  Invocation command line was
173548af84faSmrg
1736bc77032bSmrg  $ $0$ac_configure_args_raw
173748af84faSmrg
173848af84faSmrg_ACEOF
173948af84faSmrgexec 5>>config.log
174048af84faSmrg{
174148af84faSmrgcat <<_ASUNAME
174248af84faSmrg## --------- ##
174348af84faSmrg## Platform. ##
174448af84faSmrg## --------- ##
174548af84faSmrg
174648af84faSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
174748af84faSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
174848af84faSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
174948af84faSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
175048af84faSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
175148af84faSmrg
175248af84faSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
175348af84faSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
175448af84faSmrg
175548af84faSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
175648af84faSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
175748af84faSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
175848af84faSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
175948af84faSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
176048af84faSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
176148af84faSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
176248af84faSmrg
176348af84faSmrg_ASUNAME
176448af84faSmrg
176548af84faSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
176648af84faSmrgfor as_dir in $PATH
176748af84faSmrgdo
176889d09728Smrg  IFS=$as_save_IFS
1769bc77032bSmrg  case $as_dir in #(((
1770bc77032bSmrg    '') as_dir=./ ;;
1771bc77032bSmrg    */) ;;
1772bc77032bSmrg    *) as_dir=$as_dir/ ;;
1773bc77032bSmrg  esac
1774bc77032bSmrg    printf "%s\n" "PATH: $as_dir"
177548af84faSmrg  done
177689d09728SmrgIFS=$as_save_IFS
177789d09728Smrg
177889d09728Smrg} >&5
177989d09728Smrg
178089d09728Smrgcat >&5 <<_ACEOF
178166fe65f6Smrg
178266fe65f6Smrg
178366fe65f6Smrg## ----------- ##
178466fe65f6Smrg## Core tests. ##
178566fe65f6Smrg## ----------- ##
178666fe65f6Smrg
178766fe65f6Smrg_ACEOF
178866fe65f6Smrg
178966fe65f6Smrg
179066fe65f6Smrg# Keep a trace of the command line.
179166fe65f6Smrg# Strip out --no-create and --no-recursion so they do not pile up.
179266fe65f6Smrg# Strip out --silent because we don't want to record it for future runs.
179366fe65f6Smrg# Also quote any args containing shell meta-characters.
179466fe65f6Smrg# Make two passes to allow for proper duplicate-argument suppression.
179566fe65f6Smrgac_configure_args=
179666fe65f6Smrgac_configure_args0=
179766fe65f6Smrgac_configure_args1=
179866fe65f6Smrgac_must_keep_next=false
179966fe65f6Smrgfor ac_pass in 1 2
180066fe65f6Smrgdo
180166fe65f6Smrg  for ac_arg
180266fe65f6Smrg  do
180366fe65f6Smrg    case $ac_arg in
180466fe65f6Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
180566fe65f6Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
180666fe65f6Smrg    | -silent | --silent | --silen | --sile | --sil)
180766fe65f6Smrg      continue ;;
180889d09728Smrg    *\'*)
1809bc77032bSmrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
181066fe65f6Smrg    esac
181166fe65f6Smrg    case $ac_pass in
181248af84faSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
181366fe65f6Smrg    2)
181448af84faSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
181566fe65f6Smrg      if test $ac_must_keep_next = true; then
181666fe65f6Smrg	ac_must_keep_next=false # Got value, back to normal.
181766fe65f6Smrg      else
181866fe65f6Smrg	case $ac_arg in
181966fe65f6Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
182066fe65f6Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
182166fe65f6Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
182266fe65f6Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
182366fe65f6Smrg	    case "$ac_configure_args0 " in
182466fe65f6Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
182566fe65f6Smrg	    esac
182666fe65f6Smrg	    ;;
182766fe65f6Smrg	  -* ) ac_must_keep_next=true ;;
182866fe65f6Smrg	esac
182966fe65f6Smrg      fi
183048af84faSmrg      as_fn_append ac_configure_args " '$ac_arg'"
183166fe65f6Smrg      ;;
183266fe65f6Smrg    esac
183366fe65f6Smrg  done
183466fe65f6Smrgdone
183548af84faSmrg{ ac_configure_args0=; unset ac_configure_args0;}
183648af84faSmrg{ ac_configure_args1=; unset ac_configure_args1;}
183766fe65f6Smrg
183866fe65f6Smrg# When interrupted or exit'd, cleanup temporary files, and complete
183966fe65f6Smrg# config.log.  We remove comments because anyway the quotes in there
184066fe65f6Smrg# would cause problems or look ugly.
184189d09728Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
184289d09728Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
184366fe65f6Smrgtrap 'exit_status=$?
1844bc77032bSmrg  # Sanitize IFS.
1845bc77032bSmrg  IFS=" ""	$as_nl"
184666fe65f6Smrg  # Save into config.log some information that might help in debugging.
184766fe65f6Smrg  {
184866fe65f6Smrg    echo
184966fe65f6Smrg
1850bc77032bSmrg    printf "%s\n" "## ---------------- ##
185166fe65f6Smrg## Cache variables. ##
185248af84faSmrg## ---------------- ##"
185366fe65f6Smrg    echo
185466fe65f6Smrg    # The following way of writing the cache mishandles newlines in values,
185589d09728Smrg(
185689d09728Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
185789d09728Smrg    eval ac_val=\$$ac_var
185889d09728Smrg    case $ac_val in #(
185989d09728Smrg    *${as_nl}*)
186089d09728Smrg      case $ac_var in #(
1861bc77032bSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1862bc77032bSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
186389d09728Smrg      esac
186489d09728Smrg      case $ac_var in #(
186589d09728Smrg      _ | IFS | as_nl) ;; #(
186689d09728Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
186748af84faSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
186889d09728Smrg      esac ;;
186989d09728Smrg    esac
187089d09728Smrg  done
187166fe65f6Smrg  (set) 2>&1 |
187289d09728Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
187389d09728Smrg    *${as_nl}ac_space=\ *)
187466fe65f6Smrg      sed -n \
187589d09728Smrg	"s/'\''/'\''\\\\'\'''\''/g;
187689d09728Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
187789d09728Smrg      ;; #(
187866fe65f6Smrg    *)
187989d09728Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
188066fe65f6Smrg      ;;
188189d09728Smrg    esac |
188289d09728Smrg    sort
188389d09728Smrg)
188466fe65f6Smrg    echo
188566fe65f6Smrg
1886bc77032bSmrg    printf "%s\n" "## ----------------- ##
188766fe65f6Smrg## Output variables. ##
188848af84faSmrg## ----------------- ##"
188966fe65f6Smrg    echo
189066fe65f6Smrg    for ac_var in $ac_subst_vars
189166fe65f6Smrg    do
189289d09728Smrg      eval ac_val=\$$ac_var
189389d09728Smrg      case $ac_val in
1894bc77032bSmrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
189589d09728Smrg      esac
1896bc77032bSmrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
189766fe65f6Smrg    done | sort
189866fe65f6Smrg    echo
189966fe65f6Smrg
190066fe65f6Smrg    if test -n "$ac_subst_files"; then
1901bc77032bSmrg      printf "%s\n" "## ------------------- ##
190289d09728Smrg## File substitutions. ##
190348af84faSmrg## ------------------- ##"
190466fe65f6Smrg      echo
190566fe65f6Smrg      for ac_var in $ac_subst_files
190666fe65f6Smrg      do
190789d09728Smrg	eval ac_val=\$$ac_var
190889d09728Smrg	case $ac_val in
1909bc77032bSmrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
191089d09728Smrg	esac
1911bc77032bSmrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
191266fe65f6Smrg      done | sort
191366fe65f6Smrg      echo
191466fe65f6Smrg    fi
191566fe65f6Smrg
191666fe65f6Smrg    if test -s confdefs.h; then
1917bc77032bSmrg      printf "%s\n" "## ----------- ##
191866fe65f6Smrg## confdefs.h. ##
191948af84faSmrg## ----------- ##"
192066fe65f6Smrg      echo
192189d09728Smrg      cat confdefs.h
192266fe65f6Smrg      echo
192366fe65f6Smrg    fi
192466fe65f6Smrg    test "$ac_signal" != 0 &&
1925bc77032bSmrg      printf "%s\n" "$as_me: caught signal $ac_signal"
1926bc77032bSmrg    printf "%s\n" "$as_me: exit $exit_status"
192766fe65f6Smrg  } >&5
192889d09728Smrg  rm -f core *.core core.conftest.* &&
192989d09728Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
193066fe65f6Smrg    exit $exit_status
193189d09728Smrg' 0
193266fe65f6Smrgfor ac_signal in 1 2 13 15; do
193348af84faSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
193466fe65f6Smrgdone
193566fe65f6Smrgac_signal=0
193666fe65f6Smrg
193766fe65f6Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
193889d09728Smrgrm -f -r conftest* confdefs.h
193989d09728Smrg
1940bc77032bSmrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
194148af84faSmrg
194266fe65f6Smrg# Predefined preprocessor variables.
194366fe65f6Smrg
1944bc77032bSmrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
194566fe65f6Smrg
1946bc77032bSmrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
194766fe65f6Smrg
1948bc77032bSmrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
194966fe65f6Smrg
1950bc77032bSmrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
195166fe65f6Smrg
1952bc77032bSmrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
195389d09728Smrg
1954bc77032bSmrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
195548af84faSmrg
195666fe65f6Smrg
195766fe65f6Smrg# Let the site file select an alternate cache file if it wants to.
195889d09728Smrg# Prefer an explicitly selected file to automatically selected ones.
195989d09728Smrgif test -n "$CONFIG_SITE"; then
1960bc77032bSmrg  ac_site_files="$CONFIG_SITE"
196189d09728Smrgelif test "x$prefix" != xNONE; then
1962bc77032bSmrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
196389d09728Smrgelse
1964bc77032bSmrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
196566fe65f6Smrgfi
1966bc77032bSmrg
1967bc77032bSmrgfor ac_site_file in $ac_site_files
196889d09728Smrgdo
1969bc77032bSmrg  case $ac_site_file in #(
1970bc77032bSmrg  */*) :
1971bc77032bSmrg     ;; #(
1972bc77032bSmrg  *) :
1973bc77032bSmrg    ac_site_file=./$ac_site_file ;;
1974bc77032bSmrgesac
1975bc77032bSmrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1976bc77032bSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1977bc77032bSmrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
197866fe65f6Smrg    sed 's/^/| /' "$ac_site_file" >&5
197948af84faSmrg    . "$ac_site_file" \
1980bc77032bSmrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1981bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
198248af84faSmrgas_fn_error $? "failed to load site script $ac_site_file
198348af84faSmrgSee \`config.log' for more details" "$LINENO" 5; }
198466fe65f6Smrg  fi
198566fe65f6Smrgdone
198666fe65f6Smrg
198766fe65f6Smrgif test -r "$cache_file"; then
198848af84faSmrg  # Some versions of bash will fail to source /dev/null (special files
198948af84faSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
199048af84faSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1991bc77032bSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1992bc77032bSmrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
199366fe65f6Smrg    case $cache_file in
199489d09728Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
199589d09728Smrg      *)                      . "./$cache_file";;
199666fe65f6Smrg    esac
199766fe65f6Smrg  fi
199866fe65f6Smrgelse
1999bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2000bc77032bSmrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
200166fe65f6Smrg  >$cache_file
200266fe65f6Smrgfi
200366fe65f6Smrg
2004bc77032bSmrg# Test code for whether the C compiler supports C89 (global declarations)
2005bc77032bSmrgac_c_conftest_c89_globals='
2006bc77032bSmrg/* Does the compiler advertise C89 conformance?
2007bc77032bSmrg   Do not test the value of __STDC__, because some compilers set it to 0
2008bc77032bSmrg   while being otherwise adequately conformant. */
2009bc77032bSmrg#if !defined __STDC__
2010bc77032bSmrg# error "Compiler does not advertise C89 conformance"
2011bc77032bSmrg#endif
201266fe65f6Smrg
2013bc77032bSmrg#include <stddef.h>
2014bc77032bSmrg#include <stdarg.h>
2015bc77032bSmrgstruct stat;
2016bc77032bSmrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2017bc77032bSmrgstruct buf { int x; };
2018bc77032bSmrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
2019bc77032bSmrgstatic char *e (p, i)
2020bc77032bSmrg     char **p;
2021bc77032bSmrg     int i;
2022bc77032bSmrg{
2023bc77032bSmrg  return p[i];
2024bc77032bSmrg}
2025bc77032bSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2026bc77032bSmrg{
2027bc77032bSmrg  char *s;
2028bc77032bSmrg  va_list v;
2029bc77032bSmrg  va_start (v,p);
2030bc77032bSmrg  s = g (p, va_arg (v,int));
2031bc77032bSmrg  va_end (v);
2032bc77032bSmrg  return s;
2033bc77032bSmrg}
2034f931275dSmrg
2035bc77032bSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2036bc77032bSmrg   function prototypes and stuff, but not \xHH hex character constants.
2037bc77032bSmrg   These do not provoke an error unfortunately, instead are silently treated
2038bc77032bSmrg   as an "x".  The following induces an error, until -std is added to get
2039bc77032bSmrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2040bc77032bSmrg   array size at least.  It is necessary to write \x00 == 0 to get something
2041bc77032bSmrg   that is true only with -std.  */
2042bc77032bSmrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2043f931275dSmrg
2044bc77032bSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2045bc77032bSmrg   inside strings and character constants.  */
2046bc77032bSmrg#define FOO(x) '\''x'\''
2047bc77032bSmrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2048f931275dSmrg
2049bc77032bSmrgint test (int i, double x);
2050bc77032bSmrgstruct s1 {int (*f) (int a);};
2051bc77032bSmrgstruct s2 {int (*f) (double a);};
2052bc77032bSmrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2053bc77032bSmrg               int, int);'
205466fe65f6Smrg
2055bc77032bSmrg# Test code for whether the C compiler supports C89 (body of main).
2056bc77032bSmrgac_c_conftest_c89_main='
2057bc77032bSmrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2058bc77032bSmrg'
205989d09728Smrg
2060bc77032bSmrg# Test code for whether the C compiler supports C99 (global declarations)
2061bc77032bSmrgac_c_conftest_c99_globals='
2062bc77032bSmrg// Does the compiler advertise C99 conformance?
2063bc77032bSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2064bc77032bSmrg# error "Compiler does not advertise C99 conformance"
2065bc77032bSmrg#endif
206689d09728Smrg
2067bc77032bSmrg#include <stdbool.h>
2068bc77032bSmrgextern int puts (const char *);
2069bc77032bSmrgextern int printf (const char *, ...);
2070bc77032bSmrgextern int dprintf (int, const char *, ...);
2071bc77032bSmrgextern void *malloc (size_t);
207266fe65f6Smrg
2073bc77032bSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2074bc77032bSmrg// dprintf is used instead of fprintf to avoid needing to declare
2075bc77032bSmrg// FILE and stderr.
2076bc77032bSmrg#define debug(...) dprintf (2, __VA_ARGS__)
2077bc77032bSmrg#define showlist(...) puts (#__VA_ARGS__)
2078bc77032bSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2079bc77032bSmrgstatic void
2080bc77032bSmrgtest_varargs_macros (void)
2081bc77032bSmrg{
2082bc77032bSmrg  int x = 1234;
2083bc77032bSmrg  int y = 5678;
2084bc77032bSmrg  debug ("Flag");
2085bc77032bSmrg  debug ("X = %d\n", x);
2086bc77032bSmrg  showlist (The first, second, and third items.);
2087bc77032bSmrg  report (x>y, "x is %d but y is %d", x, y);
2088bc77032bSmrg}
2089bc77032bSmrg
2090bc77032bSmrg// Check long long types.
2091bc77032bSmrg#define BIG64 18446744073709551615ull
2092bc77032bSmrg#define BIG32 4294967295ul
2093bc77032bSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2094bc77032bSmrg#if !BIG_OK
2095bc77032bSmrg  #error "your preprocessor is broken"
2096bc77032bSmrg#endif
2097bc77032bSmrg#if BIG_OK
2098bc77032bSmrg#else
2099bc77032bSmrg  #error "your preprocessor is broken"
2100bc77032bSmrg#endif
2101bc77032bSmrgstatic long long int bignum = -9223372036854775807LL;
2102bc77032bSmrgstatic unsigned long long int ubignum = BIG64;
2103bc77032bSmrg
2104bc77032bSmrgstruct incomplete_array
2105bc77032bSmrg{
2106bc77032bSmrg  int datasize;
2107bc77032bSmrg  double data[];
2108bc77032bSmrg};
2109bc77032bSmrg
2110bc77032bSmrgstruct named_init {
2111bc77032bSmrg  int number;
2112bc77032bSmrg  const wchar_t *name;
2113bc77032bSmrg  double average;
2114bc77032bSmrg};
2115bc77032bSmrg
2116bc77032bSmrgtypedef const char *ccp;
2117bc77032bSmrg
2118bc77032bSmrgstatic inline int
2119bc77032bSmrgtest_restrict (ccp restrict text)
2120bc77032bSmrg{
2121bc77032bSmrg  // See if C++-style comments work.
2122bc77032bSmrg  // Iterate through items via the restricted pointer.
2123bc77032bSmrg  // Also check for declarations in for loops.
2124bc77032bSmrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2125bc77032bSmrg    continue;
2126bc77032bSmrg  return 0;
2127bc77032bSmrg}
2128bc77032bSmrg
2129bc77032bSmrg// Check varargs and va_copy.
2130bc77032bSmrgstatic bool
2131bc77032bSmrgtest_varargs (const char *format, ...)
2132bc77032bSmrg{
2133bc77032bSmrg  va_list args;
2134bc77032bSmrg  va_start (args, format);
2135bc77032bSmrg  va_list args_copy;
2136bc77032bSmrg  va_copy (args_copy, args);
2137bc77032bSmrg
2138bc77032bSmrg  const char *str = "";
2139bc77032bSmrg  int number = 0;
2140bc77032bSmrg  float fnumber = 0;
2141bc77032bSmrg
2142bc77032bSmrg  while (*format)
2143bc77032bSmrg    {
2144bc77032bSmrg      switch (*format++)
2145bc77032bSmrg	{
2146bc77032bSmrg	case '\''s'\'': // string
2147bc77032bSmrg	  str = va_arg (args_copy, const char *);
2148bc77032bSmrg	  break;
2149bc77032bSmrg	case '\''d'\'': // int
2150bc77032bSmrg	  number = va_arg (args_copy, int);
2151bc77032bSmrg	  break;
2152bc77032bSmrg	case '\''f'\'': // float
2153bc77032bSmrg	  fnumber = va_arg (args_copy, double);
2154bc77032bSmrg	  break;
2155bc77032bSmrg	default:
2156bc77032bSmrg	  break;
2157bc77032bSmrg	}
2158bc77032bSmrg    }
2159bc77032bSmrg  va_end (args_copy);
2160bc77032bSmrg  va_end (args);
2161bc77032bSmrg
2162bc77032bSmrg  return *str && number && fnumber;
2163bc77032bSmrg}
2164bc77032bSmrg'
2165bc77032bSmrg
2166bc77032bSmrg# Test code for whether the C compiler supports C99 (body of main).
2167bc77032bSmrgac_c_conftest_c99_main='
2168bc77032bSmrg  // Check bool.
2169bc77032bSmrg  _Bool success = false;
2170bc77032bSmrg  success |= (argc != 0);
2171bc77032bSmrg
2172bc77032bSmrg  // Check restrict.
2173bc77032bSmrg  if (test_restrict ("String literal") == 0)
2174bc77032bSmrg    success = true;
2175bc77032bSmrg  char *restrict newvar = "Another string";
2176bc77032bSmrg
2177bc77032bSmrg  // Check varargs.
2178bc77032bSmrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2179bc77032bSmrg  test_varargs_macros ();
2180bc77032bSmrg
2181bc77032bSmrg  // Check flexible array members.
2182bc77032bSmrg  struct incomplete_array *ia =
2183bc77032bSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2184bc77032bSmrg  ia->datasize = 10;
2185bc77032bSmrg  for (int i = 0; i < ia->datasize; ++i)
2186bc77032bSmrg    ia->data[i] = i * 1.234;
2187bc77032bSmrg
2188bc77032bSmrg  // Check named initializers.
2189bc77032bSmrg  struct named_init ni = {
2190bc77032bSmrg    .number = 34,
2191bc77032bSmrg    .name = L"Test wide string",
2192bc77032bSmrg    .average = 543.34343,
2193bc77032bSmrg  };
2194bc77032bSmrg
2195bc77032bSmrg  ni.number = 58;
2196bc77032bSmrg
2197bc77032bSmrg  int dynamic_array[ni.number];
2198bc77032bSmrg  dynamic_array[0] = argv[0][0];
2199bc77032bSmrg  dynamic_array[ni.number - 1] = 543;
2200bc77032bSmrg
2201bc77032bSmrg  // work around unused variable warnings
2202bc77032bSmrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2203bc77032bSmrg	 || dynamic_array[ni.number - 1] != 543);
2204bc77032bSmrg'
2205bc77032bSmrg
2206bc77032bSmrg# Test code for whether the C compiler supports C11 (global declarations)
2207bc77032bSmrgac_c_conftest_c11_globals='
2208bc77032bSmrg// Does the compiler advertise C11 conformance?
2209bc77032bSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2210bc77032bSmrg# error "Compiler does not advertise C11 conformance"
2211bc77032bSmrg#endif
2212bc77032bSmrg
2213bc77032bSmrg// Check _Alignas.
2214bc77032bSmrgchar _Alignas (double) aligned_as_double;
2215bc77032bSmrgchar _Alignas (0) no_special_alignment;
2216bc77032bSmrgextern char aligned_as_int;
2217bc77032bSmrgchar _Alignas (0) _Alignas (int) aligned_as_int;
2218bc77032bSmrg
2219bc77032bSmrg// Check _Alignof.
2220bc77032bSmrgenum
2221bc77032bSmrg{
2222bc77032bSmrg  int_alignment = _Alignof (int),
2223bc77032bSmrg  int_array_alignment = _Alignof (int[100]),
2224bc77032bSmrg  char_alignment = _Alignof (char)
2225bc77032bSmrg};
2226bc77032bSmrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2227bc77032bSmrg
2228bc77032bSmrg// Check _Noreturn.
2229bc77032bSmrgint _Noreturn does_not_return (void) { for (;;) continue; }
2230bc77032bSmrg
2231bc77032bSmrg// Check _Static_assert.
2232bc77032bSmrgstruct test_static_assert
2233bc77032bSmrg{
2234bc77032bSmrg  int x;
2235bc77032bSmrg  _Static_assert (sizeof (int) <= sizeof (long int),
2236bc77032bSmrg                  "_Static_assert does not work in struct");
2237bc77032bSmrg  long int y;
2238bc77032bSmrg};
2239bc77032bSmrg
2240bc77032bSmrg// Check UTF-8 literals.
2241bc77032bSmrg#define u8 syntax error!
2242bc77032bSmrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
2243bc77032bSmrg
2244bc77032bSmrg// Check duplicate typedefs.
2245bc77032bSmrgtypedef long *long_ptr;
2246bc77032bSmrgtypedef long int *long_ptr;
2247bc77032bSmrgtypedef long_ptr long_ptr;
2248bc77032bSmrg
2249bc77032bSmrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2250bc77032bSmrgstruct anonymous
2251bc77032bSmrg{
2252bc77032bSmrg  union {
2253bc77032bSmrg    struct { int i; int j; };
2254bc77032bSmrg    struct { int k; long int l; } w;
2255bc77032bSmrg  };
2256bc77032bSmrg  int m;
2257bc77032bSmrg} v1;
2258bc77032bSmrg'
2259bc77032bSmrg
2260bc77032bSmrg# Test code for whether the C compiler supports C11 (body of main).
2261bc77032bSmrgac_c_conftest_c11_main='
2262bc77032bSmrg  _Static_assert ((offsetof (struct anonymous, i)
2263bc77032bSmrg		   == offsetof (struct anonymous, w.k)),
2264bc77032bSmrg		  "Anonymous union alignment botch");
2265bc77032bSmrg  v1.i = 2;
2266bc77032bSmrg  v1.w.k = 5;
2267bc77032bSmrg  ok |= v1.i != 5;
2268bc77032bSmrg'
2269bc77032bSmrg
2270bc77032bSmrg# Test code for whether the C compiler supports C11 (complete).
2271bc77032bSmrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2272bc77032bSmrg${ac_c_conftest_c99_globals}
2273bc77032bSmrg${ac_c_conftest_c11_globals}
2274bc77032bSmrg
2275bc77032bSmrgint
2276bc77032bSmrgmain (int argc, char **argv)
2277bc77032bSmrg{
2278bc77032bSmrg  int ok = 0;
2279bc77032bSmrg  ${ac_c_conftest_c89_main}
2280bc77032bSmrg  ${ac_c_conftest_c99_main}
2281bc77032bSmrg  ${ac_c_conftest_c11_main}
2282bc77032bSmrg  return ok;
2283bc77032bSmrg}
2284bc77032bSmrg"
2285bc77032bSmrg
2286bc77032bSmrg# Test code for whether the C compiler supports C99 (complete).
2287bc77032bSmrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2288bc77032bSmrg${ac_c_conftest_c99_globals}
2289bc77032bSmrg
2290bc77032bSmrgint
2291bc77032bSmrgmain (int argc, char **argv)
2292bc77032bSmrg{
2293bc77032bSmrg  int ok = 0;
2294bc77032bSmrg  ${ac_c_conftest_c89_main}
2295bc77032bSmrg  ${ac_c_conftest_c99_main}
2296bc77032bSmrg  return ok;
2297bc77032bSmrg}
2298bc77032bSmrg"
2299bc77032bSmrg
2300bc77032bSmrg# Test code for whether the C compiler supports C89 (complete).
2301bc77032bSmrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2302bc77032bSmrg
2303bc77032bSmrgint
2304bc77032bSmrgmain (int argc, char **argv)
2305bc77032bSmrg{
2306bc77032bSmrg  int ok = 0;
2307bc77032bSmrg  ${ac_c_conftest_c89_main}
2308bc77032bSmrg  return ok;
2309bc77032bSmrg}
2310bc77032bSmrg"
2311bc77032bSmrg
2312bc77032bSmrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2313bc77032bSmrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2314bc77032bSmrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2315bc77032bSmrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2316bc77032bSmrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2317bc77032bSmrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2318bc77032bSmrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2319bc77032bSmrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2320bc77032bSmrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2321bc77032bSmrg
2322bc77032bSmrg# Auxiliary files required by this configure script.
2323bc77032bSmrgac_aux_files="config.guess config.sub compile missing install-sh"
2324bc77032bSmrg
2325bc77032bSmrg# Locations in which to look for auxiliary files.
2326bc77032bSmrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2327bc77032bSmrg
2328bc77032bSmrg# Search for a directory containing all of the required auxiliary files,
2329bc77032bSmrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2330bc77032bSmrg# If we don't find one directory that contains all the files we need,
2331bc77032bSmrg# we report the set of missing files from the *first* directory in
2332bc77032bSmrg# $ac_aux_dir_candidates and give up.
2333bc77032bSmrgac_missing_aux_files=""
2334bc77032bSmrgac_first_candidate=:
2335bc77032bSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2336bc77032bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337bc77032bSmrgas_found=false
2338bc77032bSmrgfor as_dir in $ac_aux_dir_candidates
2339bc77032bSmrgdo
2340bc77032bSmrg  IFS=$as_save_IFS
2341bc77032bSmrg  case $as_dir in #(((
2342bc77032bSmrg    '') as_dir=./ ;;
2343bc77032bSmrg    */) ;;
2344bc77032bSmrg    *) as_dir=$as_dir/ ;;
2345bc77032bSmrg  esac
2346bc77032bSmrg  as_found=:
2347bc77032bSmrg
2348bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2349bc77032bSmrg  ac_aux_dir_found=yes
2350bc77032bSmrg  ac_install_sh=
2351bc77032bSmrg  for ac_aux in $ac_aux_files
2352bc77032bSmrg  do
2353bc77032bSmrg    # As a special case, if "install-sh" is required, that requirement
2354bc77032bSmrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2355bc77032bSmrg    # and $ac_install_sh is set appropriately for whichever one is found.
2356bc77032bSmrg    if test x"$ac_aux" = x"install-sh"
2357bc77032bSmrg    then
2358bc77032bSmrg      if test -f "${as_dir}install-sh"; then
2359bc77032bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2360bc77032bSmrg        ac_install_sh="${as_dir}install-sh -c"
2361bc77032bSmrg      elif test -f "${as_dir}install.sh"; then
2362bc77032bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2363bc77032bSmrg        ac_install_sh="${as_dir}install.sh -c"
2364bc77032bSmrg      elif test -f "${as_dir}shtool"; then
2365bc77032bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2366bc77032bSmrg        ac_install_sh="${as_dir}shtool install -c"
2367bc77032bSmrg      else
2368bc77032bSmrg        ac_aux_dir_found=no
2369bc77032bSmrg        if $ac_first_candidate; then
2370bc77032bSmrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2371bc77032bSmrg        else
2372bc77032bSmrg          break
2373bc77032bSmrg        fi
2374bc77032bSmrg      fi
2375bc77032bSmrg    else
2376bc77032bSmrg      if test -f "${as_dir}${ac_aux}"; then
2377bc77032bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2378bc77032bSmrg      else
2379bc77032bSmrg        ac_aux_dir_found=no
2380bc77032bSmrg        if $ac_first_candidate; then
2381bc77032bSmrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2382bc77032bSmrg        else
2383bc77032bSmrg          break
2384bc77032bSmrg        fi
2385bc77032bSmrg      fi
2386bc77032bSmrg    fi
2387bc77032bSmrg  done
2388bc77032bSmrg  if test "$ac_aux_dir_found" = yes; then
2389bc77032bSmrg    ac_aux_dir="$as_dir"
2390bc77032bSmrg    break
2391bc77032bSmrg  fi
2392bc77032bSmrg  ac_first_candidate=false
2393bc77032bSmrg
2394bc77032bSmrg  as_found=false
2395bc77032bSmrgdone
2396bc77032bSmrgIFS=$as_save_IFS
2397bc77032bSmrgif $as_found
2398bc77032bSmrgthen :
2399bc77032bSmrg
2400bc77032bSmrgelse $as_nop
2401bc77032bSmrg  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2402bc77032bSmrgfi
2403bc77032bSmrg
2404bc77032bSmrg
2405bc77032bSmrg# These three variables are undocumented and unsupported,
2406bc77032bSmrg# and are intended to be withdrawn in a future Autoconf release.
2407bc77032bSmrg# They can cause serious problems if a builder's source tree is in a directory
2408bc77032bSmrg# whose full name contains unusual characters.
2409bc77032bSmrgif test -f "${ac_aux_dir}config.guess"; then
2410bc77032bSmrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2411bc77032bSmrgfi
2412bc77032bSmrgif test -f "${ac_aux_dir}config.sub"; then
2413bc77032bSmrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2414bc77032bSmrgfi
2415bc77032bSmrgif test -f "$ac_aux_dir/configure"; then
2416bc77032bSmrg  ac_configure="$SHELL ${ac_aux_dir}configure"
2417bc77032bSmrgfi
2418bc77032bSmrg
2419bc77032bSmrg# Check that the precious variables saved in the cache have kept the same
2420bc77032bSmrg# value.
2421bc77032bSmrgac_cache_corrupted=false
2422bc77032bSmrgfor ac_var in $ac_precious_vars; do
2423bc77032bSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2424bc77032bSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2425bc77032bSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2426bc77032bSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2427bc77032bSmrg  case $ac_old_set,$ac_new_set in
2428bc77032bSmrg    set,)
2429bc77032bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2430bc77032bSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2431bc77032bSmrg      ac_cache_corrupted=: ;;
2432bc77032bSmrg    ,set)
2433bc77032bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2434bc77032bSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2435bc77032bSmrg      ac_cache_corrupted=: ;;
2436bc77032bSmrg    ,);;
2437bc77032bSmrg    *)
2438bc77032bSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2439bc77032bSmrg	# differences in whitespace do not lead to failure.
2440bc77032bSmrg	ac_old_val_w=`echo x $ac_old_val`
2441bc77032bSmrg	ac_new_val_w=`echo x $ac_new_val`
2442bc77032bSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2443bc77032bSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2444bc77032bSmrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2445bc77032bSmrg	  ac_cache_corrupted=:
2446bc77032bSmrg	else
2447bc77032bSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2448bc77032bSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2449bc77032bSmrg	  eval $ac_var=\$ac_old_val
2450bc77032bSmrg	fi
2451bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2452bc77032bSmrgprintf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2453bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2454bc77032bSmrgprintf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2455bc77032bSmrg      fi;;
2456bc77032bSmrg  esac
2457bc77032bSmrg  # Pass precious variables to config.status.
2458bc77032bSmrg  if test "$ac_new_set" = set; then
2459bc77032bSmrg    case $ac_new_val in
2460bc77032bSmrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2461bc77032bSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2462bc77032bSmrg    esac
2463bc77032bSmrg    case " $ac_configure_args " in
2464bc77032bSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2465bc77032bSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2466bc77032bSmrg    esac
2467bc77032bSmrg  fi
2468bc77032bSmrgdone
2469bc77032bSmrgif $ac_cache_corrupted; then
2470bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2472bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2473bc77032bSmrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2474bc77032bSmrg  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2475bc77032bSmrg	    and start over" "$LINENO" 5
2476bc77032bSmrgfi
2477bc77032bSmrg## -------------------- ##
2478bc77032bSmrg## Main body of script. ##
2479bc77032bSmrg## -------------------- ##
2480bc77032bSmrg
2481bc77032bSmrgac_ext=c
2482bc77032bSmrgac_cpp='$CPP $CPPFLAGS'
2483bc77032bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484bc77032bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485bc77032bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2486bc77032bSmrg
2487bc77032bSmrg
2488bc77032bSmrg
2489bc77032bSmrgac_config_headers="$ac_config_headers config.h"
2490bc77032bSmrg
2491bc77032bSmrg
2492bc77032bSmrg# Initialize Automake
2493bc77032bSmrgam__api_version='1.16'
2494bc77032bSmrg
2495bc77032bSmrg
2496bc77032bSmrg
2497bc77032bSmrg  # Find a good install program.  We prefer a C program (faster),
2498bc77032bSmrg# so one script is as good as another.  But avoid the broken or
2499bc77032bSmrg# incompatible versions:
2500bc77032bSmrg# SysV /etc/install, /usr/sbin/install
2501bc77032bSmrg# SunOS /usr/etc/install
2502bc77032bSmrg# IRIX /sbin/install
2503bc77032bSmrg# AIX /bin/install
250466fe65f6Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
250566fe65f6Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
250666fe65f6Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
250766fe65f6Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
250866fe65f6Smrg# OS/2's system install, which has a completely different semantic
250966fe65f6Smrg# ./install, which can be erroneously created by make from ./install.sh.
251089d09728Smrg# Reject install programs that cannot install multiple files.
2511bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2512bc77032bSmrgprintf %s "checking for a BSD-compatible install... " >&6; }
251366fe65f6Smrgif test -z "$INSTALL"; then
2514bc77032bSmrgif test ${ac_cv_path_install+y}
2515bc77032bSmrgthen :
2516bc77032bSmrg  printf %s "(cached) " >&6
2517bc77032bSmrgelse $as_nop
251866fe65f6Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
251966fe65f6Smrgfor as_dir in $PATH
252066fe65f6Smrgdo
252166fe65f6Smrg  IFS=$as_save_IFS
2522bc77032bSmrg  case $as_dir in #(((
2523bc77032bSmrg    '') as_dir=./ ;;
2524bc77032bSmrg    */) ;;
2525bc77032bSmrg    *) as_dir=$as_dir/ ;;
2526bc77032bSmrg  esac
2527bc77032bSmrg    # Account for fact that we put trailing slashes in our PATH walk.
2528bc77032bSmrgcase $as_dir in #((
2529bc77032bSmrg  ./ | /[cC]/* | \
253066fe65f6Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
253148af84faSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
253266fe65f6Smrg  /usr/ucb/* ) ;;
253366fe65f6Smrg  *)
253466fe65f6Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
253566fe65f6Smrg    # Don't use installbsd from OSF since it installs stuff as root
253666fe65f6Smrg    # by default.
253766fe65f6Smrg    for ac_prog in ginstall scoinst install; do
253866fe65f6Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2539bc77032bSmrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
254066fe65f6Smrg	  if test $ac_prog = install &&
2541bc77032bSmrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
254266fe65f6Smrg	    # AIX install.  It has an incompatible calling convention.
254366fe65f6Smrg	    :
254466fe65f6Smrg	  elif test $ac_prog = install &&
2545bc77032bSmrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
254666fe65f6Smrg	    # program-specific install script used by HP pwplus--don't use.
254766fe65f6Smrg	    :
254866fe65f6Smrg	  else
254989d09728Smrg	    rm -rf conftest.one conftest.two conftest.dir
255089d09728Smrg	    echo one > conftest.one
255189d09728Smrg	    echo two > conftest.two
255289d09728Smrg	    mkdir conftest.dir
2553bc77032bSmrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
255489d09728Smrg	      test -s conftest.one && test -s conftest.two &&
255589d09728Smrg	      test -s conftest.dir/conftest.one &&
255689d09728Smrg	      test -s conftest.dir/conftest.two
255789d09728Smrg	    then
2558bc77032bSmrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
255989d09728Smrg	      break 3
256089d09728Smrg	    fi
256166fe65f6Smrg	  fi
256266fe65f6Smrg	fi
256366fe65f6Smrg      done
256466fe65f6Smrg    done
256566fe65f6Smrg    ;;
256666fe65f6Smrgesac
256766fe65f6Smrg
256848af84faSmrg  done
256989d09728SmrgIFS=$as_save_IFS
257089d09728Smrg
257189d09728Smrgrm -rf conftest.one conftest.two conftest.dir
257266fe65f6Smrg
257366fe65f6Smrgfi
2574bc77032bSmrg  if test ${ac_cv_path_install+y}; then
257566fe65f6Smrg    INSTALL=$ac_cv_path_install
257666fe65f6Smrg  else
257789d09728Smrg    # As a last resort, use the slow shell script.  Don't cache a
257889d09728Smrg    # value for INSTALL within a source directory, because that will
257966fe65f6Smrg    # break other packages using the cache if that directory is
258089d09728Smrg    # removed, or if the value is a relative name.
258166fe65f6Smrg    INSTALL=$ac_install_sh
258266fe65f6Smrg  fi
258366fe65f6Smrgfi
2584bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2585bc77032bSmrgprintf "%s\n" "$INSTALL" >&6; }
258666fe65f6Smrg
258766fe65f6Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
258866fe65f6Smrg# It thinks the first close brace ends the variable substitution.
258966fe65f6Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
259066fe65f6Smrg
259166fe65f6Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
259266fe65f6Smrg
259366fe65f6Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
259466fe65f6Smrg
2595bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2596bc77032bSmrgprintf %s "checking whether build environment is sane... " >&6; }
2597a9274bcdSmrg# Reject unsafe characters in $srcdir or the absolute working directory
2598a9274bcdSmrg# name.  Accept space and tab only in the latter.
2599a9274bcdSmrgam_lf='
2600a9274bcdSmrg'
2601a9274bcdSmrgcase `pwd` in
2602a9274bcdSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
260348af84faSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2604a9274bcdSmrgesac
2605a9274bcdSmrgcase $srcdir in
2606a9274bcdSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2607c6a6acfbSmrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2608a9274bcdSmrgesac
2609a9274bcdSmrg
2610c6a6acfbSmrg# Do 'set' in a subshell so we don't clobber the current shell's
261166fe65f6Smrg# arguments.  Must try -L first in case configure is actually a
261266fe65f6Smrg# symlink; some systems play weird games with the mod time of symlinks
261366fe65f6Smrg# (eg FreeBSD returns the mod time of the symlink's containing
261466fe65f6Smrg# directory).
261566fe65f6Smrgif (
2616c6a6acfbSmrg   am_has_slept=no
2617c6a6acfbSmrg   for am_try in 1 2; do
2618c6a6acfbSmrg     echo "timestamp, slept: $am_has_slept" > conftest.file
2619c6a6acfbSmrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2620c6a6acfbSmrg     if test "$*" = "X"; then
2621c6a6acfbSmrg	# -L didn't work.
2622c6a6acfbSmrg	set X `ls -t "$srcdir/configure" conftest.file`
2623c6a6acfbSmrg     fi
2624c6a6acfbSmrg     if test "$*" != "X $srcdir/configure conftest.file" \
2625c6a6acfbSmrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
2626c6a6acfbSmrg
2627c6a6acfbSmrg	# If neither matched, then we have a broken ls.  This can happen
2628c6a6acfbSmrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
2629c6a6acfbSmrg	# broken ls alias from the environment.  This has actually
2630c6a6acfbSmrg	# happened.  Such a system could not be considered "sane".
2631c6a6acfbSmrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2632c6a6acfbSmrg  alias in your environment" "$LINENO" 5
2633c6a6acfbSmrg     fi
2634c6a6acfbSmrg     if test "$2" = conftest.file || test $am_try -eq 2; then
2635c6a6acfbSmrg       break
2636c6a6acfbSmrg     fi
2637c6a6acfbSmrg     # Just in case.
2638c6a6acfbSmrg     sleep 1
2639c6a6acfbSmrg     am_has_slept=yes
2640c6a6acfbSmrg   done
264166fe65f6Smrg   test "$2" = conftest.file
264266fe65f6Smrg   )
264366fe65f6Smrgthen
264466fe65f6Smrg   # Ok.
264566fe65f6Smrg   :
264666fe65f6Smrgelse
264748af84faSmrg   as_fn_error $? "newly created file is older than distributed files!
264848af84faSmrgCheck your system clock" "$LINENO" 5
264966fe65f6Smrgfi
2650bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2651bc77032bSmrgprintf "%s\n" "yes" >&6; }
2652c6a6acfbSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and
2653c6a6acfbSmrg# generated files are strictly newer.
2654c6a6acfbSmrgam_sleep_pid=
2655c6a6acfbSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
2656c6a6acfbSmrg  ( sleep 1 ) &
2657c6a6acfbSmrg  am_sleep_pid=$!
2658c6a6acfbSmrgfi
2659c6a6acfbSmrg
2660c6a6acfbSmrgrm -f conftest.file
2661c6a6acfbSmrg
266266fe65f6Smrgtest "$program_prefix" != NONE &&
266389d09728Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
266466fe65f6Smrg# Use a double $ so make ignores it.
266566fe65f6Smrgtest "$program_suffix" != NONE &&
266689d09728Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
266789d09728Smrg# Double any \ or $.
266866fe65f6Smrg# By default was `s,x,x', remove it if useless.
266989d09728Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2670bc77032bSmrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2671bc77032bSmrg
267266fe65f6Smrg
2673c6a6acfbSmrg# Expand $ac_aux_dir to an absolute path.
2674c6a6acfbSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
267566fe65f6Smrg
2676bc77032bSmrg
2677bc77032bSmrg  if test x"${MISSING+set}" != xset; then
2678bc77032bSmrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
2679a9274bcdSmrgfi
268066fe65f6Smrg# Use eval to expand $SHELL
2681c6a6acfbSmrgif eval "$MISSING --is-lightweight"; then
2682c6a6acfbSmrg  am_missing_run="$MISSING "
268366fe65f6Smrgelse
268466fe65f6Smrg  am_missing_run=
2685bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2686bc77032bSmrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
268789d09728Smrgfi
268889d09728Smrg
2689c6a6acfbSmrgif test x"${install_sh+set}" != xset; then
2690a9274bcdSmrg  case $am_aux_dir in
2691a9274bcdSmrg  *\ * | *\	*)
2692a9274bcdSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2693a9274bcdSmrg  *)
2694a9274bcdSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2695a9274bcdSmrg  esac
2696a9274bcdSmrgfi
2697a9274bcdSmrg
2698c6a6acfbSmrg# Installed binaries are usually stripped using 'strip' when the user
2699c6a6acfbSmrg# run "make install-strip".  However 'strip' might not be the right
2700a9274bcdSmrg# tool to use in cross-compilation environments, therefore Automake
2701c6a6acfbSmrg# will honor the 'STRIP' environment variable to overrule this program.
2702a9274bcdSmrgif test "$cross_compiling" != no; then
2703a9274bcdSmrg  if test -n "$ac_tool_prefix"; then
2704a9274bcdSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2705a9274bcdSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2706bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
2708bc77032bSmrgif test ${ac_cv_prog_STRIP+y}
2709bc77032bSmrgthen :
2710bc77032bSmrg  printf %s "(cached) " >&6
2711bc77032bSmrgelse $as_nop
2712a9274bcdSmrg  if test -n "$STRIP"; then
2713a9274bcdSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2714a9274bcdSmrgelse
2715a9274bcdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716a9274bcdSmrgfor as_dir in $PATH
2717a9274bcdSmrgdo
2718a9274bcdSmrg  IFS=$as_save_IFS
2719bc77032bSmrg  case $as_dir in #(((
2720bc77032bSmrg    '') as_dir=./ ;;
2721bc77032bSmrg    */) ;;
2722bc77032bSmrg    *) as_dir=$as_dir/ ;;
2723bc77032bSmrg  esac
272448af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2725bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2726a9274bcdSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2727bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2728a9274bcdSmrg    break 2
2729a9274bcdSmrg  fi
2730a9274bcdSmrgdone
273148af84faSmrg  done
2732a9274bcdSmrgIFS=$as_save_IFS
2733a9274bcdSmrg
2734a9274bcdSmrgfi
2735a9274bcdSmrgfi
2736a9274bcdSmrgSTRIP=$ac_cv_prog_STRIP
2737a9274bcdSmrgif test -n "$STRIP"; then
2738bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2739bc77032bSmrgprintf "%s\n" "$STRIP" >&6; }
2740a9274bcdSmrgelse
2741bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742bc77032bSmrgprintf "%s\n" "no" >&6; }
2743a9274bcdSmrgfi
2744a9274bcdSmrg
2745a9274bcdSmrg
2746a9274bcdSmrgfi
2747a9274bcdSmrgif test -z "$ac_cv_prog_STRIP"; then
2748a9274bcdSmrg  ac_ct_STRIP=$STRIP
2749a9274bcdSmrg  # Extract the first word of "strip", so it can be a program name with args.
2750a9274bcdSmrgset dummy strip; ac_word=$2
2751bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
2753bc77032bSmrgif test ${ac_cv_prog_ac_ct_STRIP+y}
2754bc77032bSmrgthen :
2755bc77032bSmrg  printf %s "(cached) " >&6
2756bc77032bSmrgelse $as_nop
2757a9274bcdSmrg  if test -n "$ac_ct_STRIP"; then
2758a9274bcdSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2759a9274bcdSmrgelse
2760a9274bcdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761a9274bcdSmrgfor as_dir in $PATH
2762a9274bcdSmrgdo
2763a9274bcdSmrg  IFS=$as_save_IFS
2764bc77032bSmrg  case $as_dir in #(((
2765bc77032bSmrg    '') as_dir=./ ;;
2766bc77032bSmrg    */) ;;
2767bc77032bSmrg    *) as_dir=$as_dir/ ;;
2768bc77032bSmrg  esac
276948af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2770bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2771a9274bcdSmrg    ac_cv_prog_ac_ct_STRIP="strip"
2772bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2773a9274bcdSmrg    break 2
2774a9274bcdSmrg  fi
2775a9274bcdSmrgdone
277648af84faSmrg  done
2777a9274bcdSmrgIFS=$as_save_IFS
2778a9274bcdSmrg
2779a9274bcdSmrgfi
2780a9274bcdSmrgfi
2781a9274bcdSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2782a9274bcdSmrgif test -n "$ac_ct_STRIP"; then
2783bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2784bc77032bSmrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
2785a9274bcdSmrgelse
2786bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787bc77032bSmrgprintf "%s\n" "no" >&6; }
2788a9274bcdSmrgfi
2789a9274bcdSmrg
2790a9274bcdSmrg  if test "x$ac_ct_STRIP" = x; then
2791a9274bcdSmrg    STRIP=":"
2792a9274bcdSmrg  else
2793a9274bcdSmrg    case $cross_compiling:$ac_tool_warned in
2794a9274bcdSmrgyes:)
2795bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2796bc77032bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2797a9274bcdSmrgac_tool_warned=yes ;;
2798a9274bcdSmrgesac
2799a9274bcdSmrg    STRIP=$ac_ct_STRIP
2800a9274bcdSmrg  fi
2801a9274bcdSmrgelse
2802a9274bcdSmrg  STRIP="$ac_cv_prog_STRIP"
2803a9274bcdSmrgfi
2804a9274bcdSmrg
2805a9274bcdSmrgfi
2806a9274bcdSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2807a9274bcdSmrg
2808bc77032bSmrg
2809bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2810bc77032bSmrgprintf %s "checking for a race-free mkdir -p... " >&6; }
281189d09728Smrgif test -z "$MKDIR_P"; then
2812bc77032bSmrg  if test ${ac_cv_path_mkdir+y}
2813bc77032bSmrgthen :
2814bc77032bSmrg  printf %s "(cached) " >&6
2815bc77032bSmrgelse $as_nop
281689d09728Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
281789d09728Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
281889d09728Smrgdo
281989d09728Smrg  IFS=$as_save_IFS
2820bc77032bSmrg  case $as_dir in #(((
2821bc77032bSmrg    '') as_dir=./ ;;
2822bc77032bSmrg    */) ;;
2823bc77032bSmrg    *) as_dir=$as_dir/ ;;
2824bc77032bSmrg  esac
282548af84faSmrg    for ac_prog in mkdir gmkdir; do
282689d09728Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2827bc77032bSmrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2828bc77032bSmrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2829bc77032bSmrg	     'mkdir ('*'coreutils) '* | \
2830bc77032bSmrg	     'BusyBox '* | \
283189d09728Smrg	     'mkdir (fileutils) '4.1*)
2832bc77032bSmrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
283389d09728Smrg	       break 3;;
283489d09728Smrg	   esac
283589d09728Smrg	 done
283689d09728Smrg       done
283748af84faSmrg  done
283889d09728SmrgIFS=$as_save_IFS
283989d09728Smrg
284089d09728Smrgfi
284189d09728Smrg
284248af84faSmrg  test -d ./--version && rmdir ./--version
2843bc77032bSmrg  if test ${ac_cv_path_mkdir+y}; then
284489d09728Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
284566fe65f6Smrg  else
284689d09728Smrg    # As a last resort, use the slow shell script.  Don't cache a
284789d09728Smrg    # value for MKDIR_P within a source directory, because that will
284889d09728Smrg    # break other packages using the cache if that directory is
284989d09728Smrg    # removed, or if the value is a relative name.
285089d09728Smrg    MKDIR_P="$ac_install_sh -d"
285166fe65f6Smrg  fi
285266fe65f6Smrgfi
2853bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2854bc77032bSmrgprintf "%s\n" "$MKDIR_P" >&6; }
285589d09728Smrg
285666fe65f6Smrgfor ac_prog in gawk mawk nawk awk
285766fe65f6Smrgdo
285866fe65f6Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
285966fe65f6Smrgset dummy $ac_prog; ac_word=$2
2860bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
2862bc77032bSmrgif test ${ac_cv_prog_AWK+y}
2863bc77032bSmrgthen :
2864bc77032bSmrg  printf %s "(cached) " >&6
2865bc77032bSmrgelse $as_nop
286666fe65f6Smrg  if test -n "$AWK"; then
286766fe65f6Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
286866fe65f6Smrgelse
286966fe65f6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287066fe65f6Smrgfor as_dir in $PATH
287166fe65f6Smrgdo
287266fe65f6Smrg  IFS=$as_save_IFS
2873bc77032bSmrg  case $as_dir in #(((
2874bc77032bSmrg    '') as_dir=./ ;;
2875bc77032bSmrg    */) ;;
2876bc77032bSmrg    *) as_dir=$as_dir/ ;;
2877bc77032bSmrg  esac
287848af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2879bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
288066fe65f6Smrg    ac_cv_prog_AWK="$ac_prog"
2881bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
288266fe65f6Smrg    break 2
288366fe65f6Smrg  fi
288466fe65f6Smrgdone
288548af84faSmrg  done
288689d09728SmrgIFS=$as_save_IFS
288766fe65f6Smrg
288866fe65f6Smrgfi
288966fe65f6Smrgfi
289066fe65f6SmrgAWK=$ac_cv_prog_AWK
289166fe65f6Smrgif test -n "$AWK"; then
2892bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2893bc77032bSmrgprintf "%s\n" "$AWK" >&6; }
289466fe65f6Smrgelse
2895bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896bc77032bSmrgprintf "%s\n" "no" >&6; }
289766fe65f6Smrgfi
289866fe65f6Smrg
289989d09728Smrg
290066fe65f6Smrg  test -n "$AWK" && break
290166fe65f6Smrgdone
290266fe65f6Smrg
2903bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2904bc77032bSmrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
290589d09728Smrgset x ${MAKE-make}
2906bc77032bSmrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2907bc77032bSmrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
2908bc77032bSmrgthen :
2909bc77032bSmrg  printf %s "(cached) " >&6
2910bc77032bSmrgelse $as_nop
291166fe65f6Smrg  cat >conftest.make <<\_ACEOF
291289d09728SmrgSHELL = /bin/sh
291366fe65f6Smrgall:
291489d09728Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
291566fe65f6Smrg_ACEOF
291648af84faSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
291789d09728Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
291889d09728Smrg  *@@@%%%=?*=@@@%%%*)
291989d09728Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
292089d09728Smrg  *)
292189d09728Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
292289d09728Smrgesac
292366fe65f6Smrgrm -f conftest.make
292466fe65f6Smrgfi
292589d09728Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2926bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2927bc77032bSmrgprintf "%s\n" "yes" >&6; }
292866fe65f6Smrg  SET_MAKE=
292966fe65f6Smrgelse
2930bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931bc77032bSmrgprintf "%s\n" "no" >&6; }
293266fe65f6Smrg  SET_MAKE="MAKE=${MAKE-make}"
293366fe65f6Smrgfi
293466fe65f6Smrg
293566fe65f6Smrgrm -rf .tst 2>/dev/null
293666fe65f6Smrgmkdir .tst 2>/dev/null
293766fe65f6Smrgif test -d .tst; then
293866fe65f6Smrg  am__leading_dot=.
293966fe65f6Smrgelse
294066fe65f6Smrg  am__leading_dot=_
294166fe65f6Smrgfi
294266fe65f6Smrgrmdir .tst 2>/dev/null
294366fe65f6Smrg
2944c6a6acfbSmrg# Check whether --enable-silent-rules was given.
2945bc77032bSmrgif test ${enable_silent_rules+y}
2946bc77032bSmrgthen :
2947c6a6acfbSmrg  enableval=$enable_silent_rules;
2948c6a6acfbSmrgfi
2949c6a6acfbSmrg
2950c6a6acfbSmrgcase $enable_silent_rules in # (((
2951c6a6acfbSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
2952c6a6acfbSmrg   no) AM_DEFAULT_VERBOSITY=1;;
2953c6a6acfbSmrg    *) AM_DEFAULT_VERBOSITY=1;;
2954c6a6acfbSmrgesac
2955c6a6acfbSmrgam_make=${MAKE-make}
2956bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2957bc77032bSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
2958bc77032bSmrgif test ${am_cv_make_support_nested_variables+y}
2959bc77032bSmrgthen :
2960bc77032bSmrg  printf %s "(cached) " >&6
2961bc77032bSmrgelse $as_nop
2962bc77032bSmrg  if printf "%s\n" 'TRUE=$(BAR$(V))
2963c6a6acfbSmrgBAR0=false
2964c6a6acfbSmrgBAR1=true
2965c6a6acfbSmrgV=1
2966c6a6acfbSmrgam__doit:
2967c6a6acfbSmrg	@$(TRUE)
2968c6a6acfbSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2969c6a6acfbSmrg  am_cv_make_support_nested_variables=yes
2970c6a6acfbSmrgelse
2971c6a6acfbSmrg  am_cv_make_support_nested_variables=no
2972c6a6acfbSmrgfi
2973c6a6acfbSmrgfi
2974bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2975bc77032bSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2976c6a6acfbSmrgif test $am_cv_make_support_nested_variables = yes; then
2977c6a6acfbSmrg    AM_V='$(V)'
2978c6a6acfbSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2979c6a6acfbSmrgelse
2980c6a6acfbSmrg  AM_V=$AM_DEFAULT_VERBOSITY
2981c6a6acfbSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2982c6a6acfbSmrgfi
2983c6a6acfbSmrgAM_BACKSLASH='\'
2984c6a6acfbSmrg
298589d09728Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
298689d09728Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
298789d09728Smrg  # is not polluted with repeated "-I."
298889d09728Smrg  am__isrc=' -I$(srcdir)'
298989d09728Smrg  # test to see if srcdir already configured
299089d09728Smrg  if test -f $srcdir/config.status; then
299148af84faSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
299289d09728Smrg  fi
299366fe65f6Smrgfi
299466fe65f6Smrg
299566fe65f6Smrg# test whether we have cygpath
299666fe65f6Smrgif test -z "$CYGPATH_W"; then
299766fe65f6Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
299866fe65f6Smrg    CYGPATH_W='cygpath -w'
299966fe65f6Smrg  else
300066fe65f6Smrg    CYGPATH_W=echo
300166fe65f6Smrg  fi
300266fe65f6Smrgfi
300366fe65f6Smrg
300466fe65f6Smrg
300566fe65f6Smrg# Define the identity of the package.
300666fe65f6Smrg PACKAGE='font-util'
3007c12babebSmrg VERSION='1.4.0'
300866fe65f6Smrg
300966fe65f6Smrg
3010bc77032bSmrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
301166fe65f6Smrg
301266fe65f6Smrg
3013bc77032bSmrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
301466fe65f6Smrg
301566fe65f6Smrg# Some tools Automake needs.
301666fe65f6Smrg
301766fe65f6SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
301866fe65f6Smrg
301966fe65f6Smrg
302066fe65f6SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
302166fe65f6Smrg
302266fe65f6Smrg
302366fe65f6SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
302466fe65f6Smrg
302566fe65f6Smrg
302666fe65f6SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
302766fe65f6Smrg
302866fe65f6Smrg
302966fe65f6SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
303066fe65f6Smrg
3031c6a6acfbSmrg# For better backward compatibility.  To be removed once Automake 1.9.x
3032c6a6acfbSmrg# dies out for good.  For more background, see:
3033bc77032bSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3034bc77032bSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3035c6a6acfbSmrgmkdir_p='$(MKDIR_P)'
303666fe65f6Smrg
3037c6a6acfbSmrg# We need awk for the "check" target (and possibly the TAP driver).  The
3038c6a6acfbSmrg# system "awk" is bad on some platforms.
3039c6a6acfbSmrg# Always define AMTAR for backward compatibility.  Yes, it's still used
3040c6a6acfbSmrg# in the wild :-(  We should find a proper way to deprecate it ...
3041c6a6acfbSmrgAMTAR='$${TAR-tar}'
3042a9274bcdSmrg
3043a9274bcdSmrg
3044c6a6acfbSmrg# We'll loop over all known methods to create a tar archive until one works.
3045c6a6acfbSmrg_am_tools='gnutar  pax cpio none'
3046a9274bcdSmrg
3047c6a6acfbSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3048a9274bcdSmrg
3049a9274bcdSmrg
3050a9274bcdSmrg
3051a9274bcdSmrg
305266fe65f6Smrg
3053bc77032bSmrg# Variables for tags utilities; see am/tags.am
3054bc77032bSmrgif test -z "$CTAGS"; then
3055bc77032bSmrg  CTAGS=ctags
3056bc77032bSmrgfi
3057bc77032bSmrg
3058bc77032bSmrgif test -z "$ETAGS"; then
3059bc77032bSmrg  ETAGS=etags
3060bc77032bSmrgfi
3061bc77032bSmrg
3062bc77032bSmrgif test -z "$CSCOPE"; then
3063bc77032bSmrg  CSCOPE=cscope
3064bc77032bSmrgfi
3065bc77032bSmrg
3066bc77032bSmrg
306766fe65f6Smrg
3068c6a6acfbSmrg# POSIX will say in a future version that running "rm -f" with no argument
3069c6a6acfbSmrg# is OK; and we want to be able to make that assumption in our Makefile
3070c6a6acfbSmrg# recipes.  So use an aggressive probe to check that the usage we want is
3071c6a6acfbSmrg# actually supported "in the wild" to an acceptable degree.
3072c6a6acfbSmrg# See automake bug#10828.
3073c6a6acfbSmrg# To make any issue more visible, cause the running configure to be aborted
3074c6a6acfbSmrg# by default if the 'rm' program in use doesn't match our expectations; the
3075c6a6acfbSmrg# user can still override this though.
3076c6a6acfbSmrgif rm -f && rm -fr && rm -rf; then : OK; else
3077c6a6acfbSmrg  cat >&2 <<'END'
3078c6a6acfbSmrgOops!
3079c6a6acfbSmrg
3080c6a6acfbSmrgYour 'rm' program seems unable to run without file operands specified
3081c6a6acfbSmrgon the command line, even when the '-f' option is present.  This is contrary
3082c6a6acfbSmrgto the behaviour of most rm programs out there, and not conforming with
3083c6a6acfbSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3084c6a6acfbSmrg
3085c6a6acfbSmrgPlease tell bug-automake@gnu.org about your system, including the value
3086c6a6acfbSmrgof your $PATH and any error possibly output before this message.  This
3087c6a6acfbSmrgcan help us improve future automake versions.
3088c6a6acfbSmrg
3089c6a6acfbSmrgEND
3090c6a6acfbSmrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3091c6a6acfbSmrg    echo 'Configuration will proceed anyway, since you have set the' >&2
3092c6a6acfbSmrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3093c6a6acfbSmrg    echo >&2
3094c6a6acfbSmrg  else
3095c6a6acfbSmrg    cat >&2 <<'END'
3096c6a6acfbSmrgAborting the configuration process, to ensure you take notice of the issue.
3097c6a6acfbSmrg
3098c6a6acfbSmrgYou can download and install GNU coreutils to get an 'rm' implementation
3099bc77032bSmrgthat behaves properly: <https://www.gnu.org/software/coreutils/>.
3100c6a6acfbSmrg
3101c6a6acfbSmrgIf you want to complete the configuration process using your problematic
3102c6a6acfbSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3103c6a6acfbSmrgto "yes", and re-run configure.
310466fe65f6Smrg
3105c6a6acfbSmrgEND
3106c6a6acfbSmrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3107c6a6acfbSmrg  fi
3108c6a6acfbSmrgfi
310966fe65f6Smrg
311066fe65f6Smrg
311148af84faSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3112a9274bcdSmrg
3113a9274bcdSmrg
3114a9274bcdSmrg
3115a9274bcdSmrg
3116a9274bcdSmrg
3117a9274bcdSmrg
3118a9274bcdSmrg
3119a9274bcdSmrg
312089d09728Smrg
312189d09728Smrg
312289d09728Smrg
3123bc77032bSmrg
3124bc77032bSmrg
3125bc77032bSmrg
3126bc77032bSmrg
3127bc77032bSmrg
3128bc77032bSmrg
3129bc77032bSmrg
3130bc77032bSmrg
3131bc77032bSmrg
313289d09728SmrgDEPDIR="${am__leading_dot}deps"
313389d09728Smrg
313489d09728Smrgac_config_commands="$ac_config_commands depfiles"
313589d09728Smrg
3136bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3137bc77032bSmrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3138bc77032bSmrgcat > confinc.mk << 'END'
313989d09728Smrgam__doit:
3140bc77032bSmrg	@echo this is the am__doit target >confinc.out
314189d09728Smrg.PHONY: am__doit
314289d09728SmrgEND
314389d09728Smrgam__include="#"
314489d09728Smrgam__quote=
3145bc77032bSmrg# BSD make does it like this.
3146bc77032bSmrgecho '.include "confinc.mk" # ignored' > confmf.BSD
3147bc77032bSmrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3148bc77032bSmrgecho 'include confinc.mk # ignored' > confmf.GNU
3149bc77032bSmrg_am_result=no
3150bc77032bSmrgfor s in GNU BSD; do
3151bc77032bSmrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3152bc77032bSmrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3153bc77032bSmrg   ac_status=$?
3154bc77032bSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155bc77032bSmrg   (exit $ac_status); }
3156bc77032bSmrg  case $?:`cat confinc.out 2>/dev/null` in #(
3157bc77032bSmrg  '0:this is the am__doit target') :
3158bc77032bSmrg    case $s in #(
3159bc77032bSmrg  BSD) :
3160bc77032bSmrg    am__include='.include' am__quote='"' ;; #(
3161bc77032bSmrg  *) :
3162bc77032bSmrg    am__include='include' am__quote='' ;;
3163bc77032bSmrgesac ;; #(
3164bc77032bSmrg  *) :
3165a9274bcdSmrg     ;;
3166bc77032bSmrgesac
3167bc77032bSmrg  if test "$am__include" != "#"; then
3168bc77032bSmrg    _am_result="yes ($s style)"
3169bc77032bSmrg    break
3170bc77032bSmrg  fi
3171bc77032bSmrgdone
3172bc77032bSmrgrm -f confinc.* confmf.*
3173bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3174bc77032bSmrgprintf "%s\n" "${_am_result}" >&6; }
317589d09728Smrg
317689d09728Smrg# Check whether --enable-dependency-tracking was given.
3177bc77032bSmrgif test ${enable_dependency_tracking+y}
3178bc77032bSmrgthen :
317989d09728Smrg  enableval=$enable_dependency_tracking;
318089d09728Smrgfi
318189d09728Smrg
318289d09728Smrgif test "x$enable_dependency_tracking" != xno; then
318389d09728Smrg  am_depcomp="$ac_aux_dir/depcomp"
318489d09728Smrg  AMDEPBACKSLASH='\'
3185c6a6acfbSmrg  am__nodep='_no'
318689d09728Smrgfi
318789d09728Smrg if test "x$enable_dependency_tracking" != xno; then
318889d09728Smrg  AMDEP_TRUE=
318989d09728Smrg  AMDEP_FALSE='#'
319089d09728Smrgelse
319189d09728Smrg  AMDEP_TRUE='#'
319289d09728Smrg  AMDEP_FALSE=
319389d09728Smrgfi
319466fe65f6Smrg
319566fe65f6Smrg
319666fe65f6Smrgac_ext=c
319766fe65f6Smrgac_cpp='$CPP $CPPFLAGS'
319866fe65f6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319966fe65f6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
320066fe65f6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
320166fe65f6Smrgif test -n "$ac_tool_prefix"; then
320266fe65f6Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
320366fe65f6Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
3204bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3206bc77032bSmrgif test ${ac_cv_prog_CC+y}
3207bc77032bSmrgthen :
3208bc77032bSmrg  printf %s "(cached) " >&6
3209bc77032bSmrgelse $as_nop
321066fe65f6Smrg  if test -n "$CC"; then
321166fe65f6Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
321266fe65f6Smrgelse
321366fe65f6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
321466fe65f6Smrgfor as_dir in $PATH
321566fe65f6Smrgdo
321666fe65f6Smrg  IFS=$as_save_IFS
3217bc77032bSmrg  case $as_dir in #(((
3218bc77032bSmrg    '') as_dir=./ ;;
3219bc77032bSmrg    */) ;;
3220bc77032bSmrg    *) as_dir=$as_dir/ ;;
3221bc77032bSmrg  esac
322248af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3223bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
322466fe65f6Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3225bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
322666fe65f6Smrg    break 2
322766fe65f6Smrg  fi
322866fe65f6Smrgdone
322948af84faSmrg  done
323089d09728SmrgIFS=$as_save_IFS
323166fe65f6Smrg
323266fe65f6Smrgfi
323366fe65f6Smrgfi
323466fe65f6SmrgCC=$ac_cv_prog_CC
323566fe65f6Smrgif test -n "$CC"; then
3236bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3237bc77032bSmrgprintf "%s\n" "$CC" >&6; }
323866fe65f6Smrgelse
3239bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240bc77032bSmrgprintf "%s\n" "no" >&6; }
324166fe65f6Smrgfi
324266fe65f6Smrg
324389d09728Smrg
324466fe65f6Smrgfi
324566fe65f6Smrgif test -z "$ac_cv_prog_CC"; then
324666fe65f6Smrg  ac_ct_CC=$CC
324766fe65f6Smrg  # Extract the first word of "gcc", so it can be a program name with args.
324866fe65f6Smrgset dummy gcc; ac_word=$2
3249bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3251bc77032bSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3252bc77032bSmrgthen :
3253bc77032bSmrg  printf %s "(cached) " >&6
3254bc77032bSmrgelse $as_nop
325566fe65f6Smrg  if test -n "$ac_ct_CC"; then
325666fe65f6Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
325766fe65f6Smrgelse
325866fe65f6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
325966fe65f6Smrgfor as_dir in $PATH
326066fe65f6Smrgdo
326166fe65f6Smrg  IFS=$as_save_IFS
3262bc77032bSmrg  case $as_dir in #(((
3263bc77032bSmrg    '') as_dir=./ ;;
3264bc77032bSmrg    */) ;;
3265bc77032bSmrg    *) as_dir=$as_dir/ ;;
3266bc77032bSmrg  esac
326748af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3268bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
326966fe65f6Smrg    ac_cv_prog_ac_ct_CC="gcc"
3270bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
327166fe65f6Smrg    break 2
327266fe65f6Smrg  fi
327366fe65f6Smrgdone
327448af84faSmrg  done
327589d09728SmrgIFS=$as_save_IFS
327666fe65f6Smrg
327766fe65f6Smrgfi
327866fe65f6Smrgfi
327966fe65f6Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
328066fe65f6Smrgif test -n "$ac_ct_CC"; then
3281bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3282bc77032bSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
328366fe65f6Smrgelse
3284bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285bc77032bSmrgprintf "%s\n" "no" >&6; }
328666fe65f6Smrgfi
328766fe65f6Smrg
328889d09728Smrg  if test "x$ac_ct_CC" = x; then
328989d09728Smrg    CC=""
329089d09728Smrg  else
329189d09728Smrg    case $cross_compiling:$ac_tool_warned in
329289d09728Smrgyes:)
3293bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3294bc77032bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
329589d09728Smrgac_tool_warned=yes ;;
329689d09728Smrgesac
329789d09728Smrg    CC=$ac_ct_CC
329889d09728Smrg  fi
329966fe65f6Smrgelse
330066fe65f6Smrg  CC="$ac_cv_prog_CC"
330166fe65f6Smrgfi
330266fe65f6Smrg
330366fe65f6Smrgif test -z "$CC"; then
330489d09728Smrg          if test -n "$ac_tool_prefix"; then
330589d09728Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
330666fe65f6Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
3307bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3309bc77032bSmrgif test ${ac_cv_prog_CC+y}
3310bc77032bSmrgthen :
3311bc77032bSmrg  printf %s "(cached) " >&6
3312bc77032bSmrgelse $as_nop
331366fe65f6Smrg  if test -n "$CC"; then
331466fe65f6Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
331566fe65f6Smrgelse
331666fe65f6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
331766fe65f6Smrgfor as_dir in $PATH
331866fe65f6Smrgdo
331966fe65f6Smrg  IFS=$as_save_IFS
3320bc77032bSmrg  case $as_dir in #(((
3321bc77032bSmrg    '') as_dir=./ ;;
3322bc77032bSmrg    */) ;;
3323bc77032bSmrg    *) as_dir=$as_dir/ ;;
3324bc77032bSmrg  esac
332548af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3326bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
332766fe65f6Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
3328bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
332966fe65f6Smrg    break 2
333066fe65f6Smrg  fi
333166fe65f6Smrgdone
333248af84faSmrg  done
333389d09728SmrgIFS=$as_save_IFS
333466fe65f6Smrg
333566fe65f6Smrgfi
333666fe65f6Smrgfi
333766fe65f6SmrgCC=$ac_cv_prog_CC
333866fe65f6Smrgif test -n "$CC"; then
3339bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3340bc77032bSmrgprintf "%s\n" "$CC" >&6; }
334166fe65f6Smrgelse
3342bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343bc77032bSmrgprintf "%s\n" "no" >&6; }
334466fe65f6Smrgfi
334566fe65f6Smrg
334689d09728Smrg
334789d09728Smrg  fi
334866fe65f6Smrgfi
334989d09728Smrgif test -z "$CC"; then
335066fe65f6Smrg  # Extract the first word of "cc", so it can be a program name with args.
335166fe65f6Smrgset dummy cc; ac_word=$2
3352bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3354bc77032bSmrgif test ${ac_cv_prog_CC+y}
3355bc77032bSmrgthen :
3356bc77032bSmrg  printf %s "(cached) " >&6
3357bc77032bSmrgelse $as_nop
335889d09728Smrg  if test -n "$CC"; then
335989d09728Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
336066fe65f6Smrgelse
336189d09728Smrg  ac_prog_rejected=no
336266fe65f6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
336366fe65f6Smrgfor as_dir in $PATH
336466fe65f6Smrgdo
336566fe65f6Smrg  IFS=$as_save_IFS
3366bc77032bSmrg  case $as_dir in #(((
3367bc77032bSmrg    '') as_dir=./ ;;
3368bc77032bSmrg    */) ;;
3369bc77032bSmrg    *) as_dir=$as_dir/ ;;
3370bc77032bSmrg  esac
337148af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3372bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3373bc77032bSmrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
337489d09728Smrg       ac_prog_rejected=yes
337589d09728Smrg       continue
337689d09728Smrg     fi
337789d09728Smrg    ac_cv_prog_CC="cc"
3378bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
337966fe65f6Smrg    break 2
338066fe65f6Smrg  fi
338166fe65f6Smrgdone
338248af84faSmrg  done
338389d09728SmrgIFS=$as_save_IFS
338466fe65f6Smrg
338566fe65f6Smrgif test $ac_prog_rejected = yes; then
338666fe65f6Smrg  # We found a bogon in the path, so make sure we never use it.
338766fe65f6Smrg  set dummy $ac_cv_prog_CC
338866fe65f6Smrg  shift
338966fe65f6Smrg  if test $# != 0; then
339066fe65f6Smrg    # We chose a different compiler from the bogus one.
339166fe65f6Smrg    # However, it has the same basename, so the bogon will be chosen
339266fe65f6Smrg    # first if we set CC to just the basename; use the full file name.
339366fe65f6Smrg    shift
3394bc77032bSmrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
339566fe65f6Smrg  fi
339666fe65f6Smrgfi
339766fe65f6Smrgfi
339866fe65f6Smrgfi
339966fe65f6SmrgCC=$ac_cv_prog_CC
340066fe65f6Smrgif test -n "$CC"; then
3401bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402bc77032bSmrgprintf "%s\n" "$CC" >&6; }
340366fe65f6Smrgelse
3404bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405bc77032bSmrgprintf "%s\n" "no" >&6; }
340666fe65f6Smrgfi
340766fe65f6Smrg
340889d09728Smrg
340966fe65f6Smrgfi
341066fe65f6Smrgif test -z "$CC"; then
341166fe65f6Smrg  if test -n "$ac_tool_prefix"; then
341289d09728Smrg  for ac_prog in cl.exe
341366fe65f6Smrg  do
341466fe65f6Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
341566fe65f6Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3416bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3418bc77032bSmrgif test ${ac_cv_prog_CC+y}
3419bc77032bSmrgthen :
3420bc77032bSmrg  printf %s "(cached) " >&6
3421bc77032bSmrgelse $as_nop
342266fe65f6Smrg  if test -n "$CC"; then
342366fe65f6Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
342466fe65f6Smrgelse
342566fe65f6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
342666fe65f6Smrgfor as_dir in $PATH
342766fe65f6Smrgdo
342866fe65f6Smrg  IFS=$as_save_IFS
3429bc77032bSmrg  case $as_dir in #(((
3430bc77032bSmrg    '') as_dir=./ ;;
3431bc77032bSmrg    */) ;;
3432bc77032bSmrg    *) as_dir=$as_dir/ ;;
3433bc77032bSmrg  esac
343448af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3435bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
343666fe65f6Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3437bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
343866fe65f6Smrg    break 2
343966fe65f6Smrg  fi
344066fe65f6Smrgdone
344148af84faSmrg  done
344289d09728SmrgIFS=$as_save_IFS
344366fe65f6Smrg
344466fe65f6Smrgfi
344566fe65f6Smrgfi
344666fe65f6SmrgCC=$ac_cv_prog_CC
344766fe65f6Smrgif test -n "$CC"; then
3448bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449bc77032bSmrgprintf "%s\n" "$CC" >&6; }
345066fe65f6Smrgelse
3451bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452bc77032bSmrgprintf "%s\n" "no" >&6; }
345366fe65f6Smrgfi
345466fe65f6Smrg
345589d09728Smrg
345666fe65f6Smrg    test -n "$CC" && break
345766fe65f6Smrg  done
345866fe65f6Smrgfi
345966fe65f6Smrgif test -z "$CC"; then
346066fe65f6Smrg  ac_ct_CC=$CC
346189d09728Smrg  for ac_prog in cl.exe
346266fe65f6Smrgdo
346366fe65f6Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
346466fe65f6Smrgset dummy $ac_prog; ac_word=$2
3465bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3467bc77032bSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3468bc77032bSmrgthen :
3469bc77032bSmrg  printf %s "(cached) " >&6
3470bc77032bSmrgelse $as_nop
347166fe65f6Smrg  if test -n "$ac_ct_CC"; then
347266fe65f6Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
347366fe65f6Smrgelse
347466fe65f6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
347566fe65f6Smrgfor as_dir in $PATH
347666fe65f6Smrgdo
347766fe65f6Smrg  IFS=$as_save_IFS
3478bc77032bSmrg  case $as_dir in #(((
3479bc77032bSmrg    '') as_dir=./ ;;
3480bc77032bSmrg    */) ;;
3481bc77032bSmrg    *) as_dir=$as_dir/ ;;
3482bc77032bSmrg  esac
348348af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3484bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
348566fe65f6Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3486bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
348766fe65f6Smrg    break 2
348866fe65f6Smrg  fi
348966fe65f6Smrgdone
349048af84faSmrg  done
349189d09728SmrgIFS=$as_save_IFS
349266fe65f6Smrg
349366fe65f6Smrgfi
349466fe65f6Smrgfi
349566fe65f6Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
349666fe65f6Smrgif test -n "$ac_ct_CC"; then
3497bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3498bc77032bSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
349966fe65f6Smrgelse
3500bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501bc77032bSmrgprintf "%s\n" "no" >&6; }
350266fe65f6Smrgfi
350366fe65f6Smrg
350489d09728Smrg
350566fe65f6Smrg  test -n "$ac_ct_CC" && break
350666fe65f6Smrgdone
350766fe65f6Smrg
350889d09728Smrg  if test "x$ac_ct_CC" = x; then
350989d09728Smrg    CC=""
351089d09728Smrg  else
351189d09728Smrg    case $cross_compiling:$ac_tool_warned in
351289d09728Smrgyes:)
3513bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3514bc77032bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3515bc77032bSmrgac_tool_warned=yes ;;
3516bc77032bSmrgesac
3517bc77032bSmrg    CC=$ac_ct_CC
3518bc77032bSmrg  fi
3519bc77032bSmrgfi
3520bc77032bSmrg
3521bc77032bSmrgfi
3522bc77032bSmrgif test -z "$CC"; then
3523bc77032bSmrg  if test -n "$ac_tool_prefix"; then
3524bc77032bSmrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3525bc77032bSmrgset dummy ${ac_tool_prefix}clang; ac_word=$2
3526bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3528bc77032bSmrgif test ${ac_cv_prog_CC+y}
3529bc77032bSmrgthen :
3530bc77032bSmrg  printf %s "(cached) " >&6
3531bc77032bSmrgelse $as_nop
3532bc77032bSmrg  if test -n "$CC"; then
3533bc77032bSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3534bc77032bSmrgelse
3535bc77032bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536bc77032bSmrgfor as_dir in $PATH
3537bc77032bSmrgdo
3538bc77032bSmrg  IFS=$as_save_IFS
3539bc77032bSmrg  case $as_dir in #(((
3540bc77032bSmrg    '') as_dir=./ ;;
3541bc77032bSmrg    */) ;;
3542bc77032bSmrg    *) as_dir=$as_dir/ ;;
3543bc77032bSmrg  esac
3544bc77032bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3545bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3546bc77032bSmrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
3547bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3548bc77032bSmrg    break 2
3549bc77032bSmrg  fi
3550bc77032bSmrgdone
3551bc77032bSmrg  done
3552bc77032bSmrgIFS=$as_save_IFS
3553bc77032bSmrg
3554bc77032bSmrgfi
3555bc77032bSmrgfi
3556bc77032bSmrgCC=$ac_cv_prog_CC
3557bc77032bSmrgif test -n "$CC"; then
3558bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3559bc77032bSmrgprintf "%s\n" "$CC" >&6; }
3560bc77032bSmrgelse
3561bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562bc77032bSmrgprintf "%s\n" "no" >&6; }
3563bc77032bSmrgfi
3564bc77032bSmrg
3565bc77032bSmrg
3566bc77032bSmrgfi
3567bc77032bSmrgif test -z "$ac_cv_prog_CC"; then
3568bc77032bSmrg  ac_ct_CC=$CC
3569bc77032bSmrg  # Extract the first word of "clang", so it can be a program name with args.
3570bc77032bSmrgset dummy clang; ac_word=$2
3571bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3573bc77032bSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3574bc77032bSmrgthen :
3575bc77032bSmrg  printf %s "(cached) " >&6
3576bc77032bSmrgelse $as_nop
3577bc77032bSmrg  if test -n "$ac_ct_CC"; then
3578bc77032bSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3579bc77032bSmrgelse
3580bc77032bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581bc77032bSmrgfor as_dir in $PATH
3582bc77032bSmrgdo
3583bc77032bSmrg  IFS=$as_save_IFS
3584bc77032bSmrg  case $as_dir in #(((
3585bc77032bSmrg    '') as_dir=./ ;;
3586bc77032bSmrg    */) ;;
3587bc77032bSmrg    *) as_dir=$as_dir/ ;;
3588bc77032bSmrg  esac
3589bc77032bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3590bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3591bc77032bSmrg    ac_cv_prog_ac_ct_CC="clang"
3592bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3593bc77032bSmrg    break 2
3594bc77032bSmrg  fi
3595bc77032bSmrgdone
3596bc77032bSmrg  done
3597bc77032bSmrgIFS=$as_save_IFS
3598bc77032bSmrg
3599bc77032bSmrgfi
3600bc77032bSmrgfi
3601bc77032bSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3602bc77032bSmrgif test -n "$ac_ct_CC"; then
3603bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3604bc77032bSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
3605bc77032bSmrgelse
3606bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607bc77032bSmrgprintf "%s\n" "no" >&6; }
3608bc77032bSmrgfi
3609bc77032bSmrg
3610bc77032bSmrg  if test "x$ac_ct_CC" = x; then
3611bc77032bSmrg    CC=""
3612bc77032bSmrg  else
3613bc77032bSmrg    case $cross_compiling:$ac_tool_warned in
3614bc77032bSmrgyes:)
3615bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3616bc77032bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
361789d09728Smrgac_tool_warned=yes ;;
361889d09728Smrgesac
361989d09728Smrg    CC=$ac_ct_CC
362089d09728Smrg  fi
3621bc77032bSmrgelse
3622bc77032bSmrg  CC="$ac_cv_prog_CC"
362366fe65f6Smrgfi
362466fe65f6Smrg
362566fe65f6Smrgfi
362666fe65f6Smrg
362766fe65f6Smrg
3628bc77032bSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
363048af84faSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
363148af84faSmrgSee \`config.log' for more details" "$LINENO" 5; }
363266fe65f6Smrg
363366fe65f6Smrg# Provide some information about the compiler.
3634bc77032bSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
363589d09728Smrgset X $ac_compile
363689d09728Smrgac_compiler=$2
3637bc77032bSmrgfor ac_option in --version -v -V -qversion -version; do
363848af84faSmrg  { { ac_try="$ac_compiler $ac_option >&5"
3639a9274bcdSmrgcase "(($ac_try" in
3640a9274bcdSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641a9274bcdSmrg  *) ac_try_echo=$ac_try;;
3642a9274bcdSmrgesac
364348af84faSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
364548af84faSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3646a9274bcdSmrg  ac_status=$?
364748af84faSmrg  if test -s conftest.err; then
364848af84faSmrg    sed '10a\
364948af84faSmrg... rest of stderr output deleted ...
365048af84faSmrg         10q' conftest.err >conftest.er1
365148af84faSmrg    cat conftest.er1 >&5
365248af84faSmrg  fi
365348af84faSmrg  rm -f conftest.er1 conftest.err
3654bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
365548af84faSmrg  test $ac_status = 0; }
365648af84faSmrgdone
365766fe65f6Smrg
365848af84faSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
365966fe65f6Smrg/* end confdefs.h.  */
3660a9274bcdSmrg
366166fe65f6Smrgint
3662bc77032bSmrgmain (void)
366366fe65f6Smrg{
366466fe65f6Smrg
366566fe65f6Smrg  ;
366666fe65f6Smrg  return 0;
366766fe65f6Smrg}
366866fe65f6Smrg_ACEOF
366966fe65f6Smrgac_clean_files_save=$ac_clean_files
3670a9274bcdSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
367166fe65f6Smrg# Try to create an executable without -o first, disregard a.out.
367266fe65f6Smrg# It will help us diagnose broken compilers, and finding out an intuition
367366fe65f6Smrg# of exeext.
3674bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3675bc77032bSmrgprintf %s "checking whether the C compiler works... " >&6; }
3676bc77032bSmrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
367789d09728Smrg
367889d09728Smrg# The possible output files:
367989d09728Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
368089d09728Smrg
368189d09728Smrgac_rmfiles=
368289d09728Smrgfor ac_file in $ac_files
368389d09728Smrgdo
368489d09728Smrg  case $ac_file in
368589d09728Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
368689d09728Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
368789d09728Smrg  esac
368889d09728Smrgdone
368989d09728Smrgrm -f $ac_rmfiles
369089d09728Smrg
369148af84faSmrgif { { ac_try="$ac_link_default"
369289d09728Smrgcase "(($ac_try" in
369389d09728Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
369489d09728Smrg  *) ac_try_echo=$ac_try;;
369589d09728Smrgesac
369648af84faSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
369889d09728Smrg  (eval "$ac_link_default") 2>&5
369966fe65f6Smrg  ac_status=$?
3700bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701bc77032bSmrg  test $ac_status = 0; }
3702bc77032bSmrgthen :
370389d09728Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
370489d09728Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
370589d09728Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
370689d09728Smrg# so that the user can short-circuit this test for compilers unknown to
370789d09728Smrg# Autoconf.
370889d09728Smrgfor ac_file in $ac_files ''
370966fe65f6Smrgdo
371066fe65f6Smrg  test -f "$ac_file" || continue
371166fe65f6Smrg  case $ac_file in
371289d09728Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
371366fe65f6Smrg	;;
371466fe65f6Smrg    [ab].out )
371566fe65f6Smrg	# We found the default executable, but exeext='' is most
371666fe65f6Smrg	# certainly right.
371766fe65f6Smrg	break;;
371866fe65f6Smrg    *.* )
3719bc77032bSmrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
372089d09728Smrg	then :; else
372189d09728Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
372289d09728Smrg	fi
372389d09728Smrg	# We set ac_cv_exeext here because the later test for it is not
372489d09728Smrg	# safe: cross compilers may not add the suffix if given an `-o'
372589d09728Smrg	# argument, so we may need to know it at that point already.
372689d09728Smrg	# Even if this section looks crufty: it has the advantage of
372789d09728Smrg	# actually working.
372866fe65f6Smrg	break;;
372966fe65f6Smrg    * )
373066fe65f6Smrg	break;;
373166fe65f6Smrg  esac
373266fe65f6Smrgdone
373389d09728Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
373489d09728Smrg
3735bc77032bSmrgelse $as_nop
373689d09728Smrg  ac_file=''
373789d09728Smrgfi
3738bc77032bSmrgif test -z "$ac_file"
3739bc77032bSmrgthen :
3740bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741bc77032bSmrgprintf "%s\n" "no" >&6; }
3742bc77032bSmrgprintf "%s\n" "$as_me: failed program was:" >&5
374366fe65f6Smrgsed 's/^/| /' conftest.$ac_ext >&5
374466fe65f6Smrg
3745bc77032bSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
374748af84faSmrgas_fn_error 77 "C compiler cannot create executables
374848af84faSmrgSee \`config.log' for more details" "$LINENO" 5; }
3749bc77032bSmrgelse $as_nop
3750bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3751bc77032bSmrgprintf "%s\n" "yes" >&6; }
3752bc77032bSmrgfi
3753bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3754bc77032bSmrgprintf %s "checking for C compiler default output file name... " >&6; }
3755bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3756bc77032bSmrgprintf "%s\n" "$ac_file" >&6; }
375766fe65f6Smrgac_exeext=$ac_cv_exeext
375866fe65f6Smrg
3759a9274bcdSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
376066fe65f6Smrgac_clean_files=$ac_clean_files_save
3761bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3762bc77032bSmrgprintf %s "checking for suffix of executables... " >&6; }
376348af84faSmrgif { { ac_try="$ac_link"
376489d09728Smrgcase "(($ac_try" in
376589d09728Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
376689d09728Smrg  *) ac_try_echo=$ac_try;;
376789d09728Smrgesac
376848af84faSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
377089d09728Smrg  (eval "$ac_link") 2>&5
377166fe65f6Smrg  ac_status=$?
3772bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773bc77032bSmrg  test $ac_status = 0; }
3774bc77032bSmrgthen :
377566fe65f6Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
377666fe65f6Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
377766fe65f6Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
377866fe65f6Smrg# `rm'.
377966fe65f6Smrgfor ac_file in conftest.exe conftest conftest.*; do
378066fe65f6Smrg  test -f "$ac_file" || continue
378166fe65f6Smrg  case $ac_file in
378289d09728Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
378366fe65f6Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
378466fe65f6Smrg	  break;;
378566fe65f6Smrg    * ) break;;
378666fe65f6Smrg  esac
378766fe65f6Smrgdone
3788bc77032bSmrgelse $as_nop
3789bc77032bSmrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
379148af84faSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
379248af84faSmrgSee \`config.log' for more details" "$LINENO" 5; }
379366fe65f6Smrgfi
379448af84faSmrgrm -f conftest conftest$ac_cv_exeext
3795bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3796bc77032bSmrgprintf "%s\n" "$ac_cv_exeext" >&6; }
379766fe65f6Smrg
379866fe65f6Smrgrm -f conftest.$ac_ext
379966fe65f6SmrgEXEEXT=$ac_cv_exeext
380066fe65f6Smrgac_exeext=$EXEEXT
380148af84faSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
380266fe65f6Smrg/* end confdefs.h.  */
380348af84faSmrg#include <stdio.h>
380466fe65f6Smrgint
3805bc77032bSmrgmain (void)
380666fe65f6Smrg{
380748af84faSmrgFILE *f = fopen ("conftest.out", "w");
380848af84faSmrg return ferror (f) || fclose (f) != 0;
380966fe65f6Smrg
381066fe65f6Smrg  ;
381166fe65f6Smrg  return 0;
381266fe65f6Smrg}
381366fe65f6Smrg_ACEOF
381448af84faSmrgac_clean_files="$ac_clean_files conftest.out"
381548af84faSmrg# Check that the compiler produces executables we can run.  If not, either
381648af84faSmrg# the compiler is broken, or we cross compile.
3817bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3818bc77032bSmrgprintf %s "checking whether we are cross compiling... " >&6; }
381948af84faSmrgif test "$cross_compiling" != yes; then
382048af84faSmrg  { { ac_try="$ac_link"
382189d09728Smrgcase "(($ac_try" in
382289d09728Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
382389d09728Smrg  *) ac_try_echo=$ac_try;;
382489d09728Smrgesac
382548af84faSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
382748af84faSmrg  (eval "$ac_link") 2>&5
382866fe65f6Smrg  ac_status=$?
3829bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
383048af84faSmrg  test $ac_status = 0; }
383148af84faSmrg  if { ac_try='./conftest$ac_cv_exeext'
383248af84faSmrg  { { case "(($ac_try" in
383348af84faSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
383448af84faSmrg  *) ac_try_echo=$ac_try;;
383548af84faSmrgesac
383648af84faSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
383848af84faSmrg  (eval "$ac_try") 2>&5
383948af84faSmrg  ac_status=$?
3840bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
384148af84faSmrg  test $ac_status = 0; }; }; then
384248af84faSmrg    cross_compiling=no
384348af84faSmrg  else
384448af84faSmrg    if test "$cross_compiling" = maybe; then
384548af84faSmrg	cross_compiling=yes
384648af84faSmrg    else
3847bc77032bSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3848bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3849bc77032bSmrgas_fn_error 77 "cannot run C compiled programs.
385048af84faSmrgIf you meant to cross compile, use \`--host'.
385148af84faSmrgSee \`config.log' for more details" "$LINENO" 5; }
385248af84faSmrg    fi
385348af84faSmrg  fi
385466fe65f6Smrgfi
3855bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3856bc77032bSmrgprintf "%s\n" "$cross_compiling" >&6; }
385748af84faSmrg
385848af84faSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
385948af84faSmrgac_clean_files=$ac_clean_files_save
3860bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3861bc77032bSmrgprintf %s "checking for suffix of object files... " >&6; }
3862bc77032bSmrgif test ${ac_cv_objext+y}
3863bc77032bSmrgthen :
3864bc77032bSmrg  printf %s "(cached) " >&6
3865bc77032bSmrgelse $as_nop
386648af84faSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
386748af84faSmrg/* end confdefs.h.  */
386848af84faSmrg
386948af84faSmrgint
3870bc77032bSmrgmain (void)
387148af84faSmrg{
387248af84faSmrg
387348af84faSmrg  ;
387448af84faSmrg  return 0;
387548af84faSmrg}
387648af84faSmrg_ACEOF
387748af84faSmrgrm -f conftest.o conftest.obj
387848af84faSmrgif { { ac_try="$ac_compile"
387948af84faSmrgcase "(($ac_try" in
388048af84faSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
388148af84faSmrg  *) ac_try_echo=$ac_try;;
388248af84faSmrgesac
388348af84faSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3884bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
388548af84faSmrg  (eval "$ac_compile") 2>&5
388648af84faSmrg  ac_status=$?
3887bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3888bc77032bSmrg  test $ac_status = 0; }
3889bc77032bSmrgthen :
389048af84faSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
389148af84faSmrg  test -f "$ac_file" || continue;
389248af84faSmrg  case $ac_file in
389348af84faSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
389448af84faSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
389548af84faSmrg       break;;
389648af84faSmrg  esac
389748af84faSmrgdone
3898bc77032bSmrgelse $as_nop
3899bc77032bSmrg  printf "%s\n" "$as_me: failed program was:" >&5
390048af84faSmrgsed 's/^/| /' conftest.$ac_ext >&5
3901a9274bcdSmrg
3902bc77032bSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
390448af84faSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
390548af84faSmrgSee \`config.log' for more details" "$LINENO" 5; }
390648af84faSmrgfi
390766fe65f6Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
390866fe65f6Smrgfi
3909bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3910bc77032bSmrgprintf "%s\n" "$ac_cv_objext" >&6; }
391166fe65f6SmrgOBJEXT=$ac_cv_objext
391266fe65f6Smrgac_objext=$OBJEXT
3913bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3914bc77032bSmrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
3915bc77032bSmrgif test ${ac_cv_c_compiler_gnu+y}
3916bc77032bSmrgthen :
3917bc77032bSmrg  printf %s "(cached) " >&6
3918bc77032bSmrgelse $as_nop
391948af84faSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
392066fe65f6Smrg/* end confdefs.h.  */
392166fe65f6Smrg
392266fe65f6Smrgint
3923bc77032bSmrgmain (void)
392466fe65f6Smrg{
392566fe65f6Smrg#ifndef __GNUC__
392666fe65f6Smrg       choke me
392766fe65f6Smrg#endif
392866fe65f6Smrg
392966fe65f6Smrg  ;
393066fe65f6Smrg  return 0;
393166fe65f6Smrg}
393266fe65f6Smrg_ACEOF
3933bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
3934bc77032bSmrgthen :
393566fe65f6Smrg  ac_compiler_gnu=yes
3936bc77032bSmrgelse $as_nop
393748af84faSmrg  ac_compiler_gnu=no
393866fe65f6Smrgfi
3939bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
394066fe65f6Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
394166fe65f6Smrg
394266fe65f6Smrgfi
3943bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3944bc77032bSmrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3945bc77032bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3946bc77032bSmrg
394789d09728Smrgif test $ac_compiler_gnu = yes; then
394889d09728Smrg  GCC=yes
394989d09728Smrgelse
395089d09728Smrg  GCC=
395189d09728Smrgfi
3952bc77032bSmrgac_test_CFLAGS=${CFLAGS+y}
395366fe65f6Smrgac_save_CFLAGS=$CFLAGS
3954bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3955bc77032bSmrgprintf %s "checking whether $CC accepts -g... " >&6; }
3956bc77032bSmrgif test ${ac_cv_prog_cc_g+y}
3957bc77032bSmrgthen :
3958bc77032bSmrg  printf %s "(cached) " >&6
3959bc77032bSmrgelse $as_nop
396089d09728Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
396189d09728Smrg   ac_c_werror_flag=yes
396289d09728Smrg   ac_cv_prog_cc_g=no
396389d09728Smrg   CFLAGS="-g"
396448af84faSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
396566fe65f6Smrg/* end confdefs.h.  */
396666fe65f6Smrg
396766fe65f6Smrgint
3968bc77032bSmrgmain (void)
396966fe65f6Smrg{
397066fe65f6Smrg
397166fe65f6Smrg  ;
397266fe65f6Smrg  return 0;
397366fe65f6Smrg}
397466fe65f6Smrg_ACEOF
3975bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
3976bc77032bSmrgthen :
397766fe65f6Smrg  ac_cv_prog_cc_g=yes
3978bc77032bSmrgelse $as_nop
397948af84faSmrg  CFLAGS=""
398048af84faSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
398189d09728Smrg/* end confdefs.h.  */
398289d09728Smrg
398389d09728Smrgint
3984bc77032bSmrgmain (void)
398589d09728Smrg{
398689d09728Smrg
398789d09728Smrg  ;
398889d09728Smrg  return 0;
398989d09728Smrg}
399089d09728Smrg_ACEOF
3991bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
3992bc77032bSmrgthen :
3993a9274bcdSmrg
3994bc77032bSmrgelse $as_nop
399548af84faSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
399689d09728Smrg	 CFLAGS="-g"
399748af84faSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
399889d09728Smrg/* end confdefs.h.  */
399989d09728Smrg
400089d09728Smrgint
4001bc77032bSmrgmain (void)
400289d09728Smrg{
400389d09728Smrg
400489d09728Smrg  ;
400589d09728Smrg  return 0;
400689d09728Smrg}
400789d09728Smrg_ACEOF
4008bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
4009bc77032bSmrgthen :
401089d09728Smrg  ac_cv_prog_cc_g=yes
401166fe65f6Smrgfi
4012bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
401366fe65f6Smrgfi
4014bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
401589d09728Smrgfi
4016bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
401789d09728Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
401889d09728Smrgfi
4019bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4020bc77032bSmrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4021bc77032bSmrgif test $ac_test_CFLAGS; then
402266fe65f6Smrg  CFLAGS=$ac_save_CFLAGS
402366fe65f6Smrgelif test $ac_cv_prog_cc_g = yes; then
402466fe65f6Smrg  if test "$GCC" = yes; then
402566fe65f6Smrg    CFLAGS="-g -O2"
402666fe65f6Smrg  else
402766fe65f6Smrg    CFLAGS="-g"
402866fe65f6Smrg  fi
402966fe65f6Smrgelse
403066fe65f6Smrg  if test "$GCC" = yes; then
403166fe65f6Smrg    CFLAGS="-O2"
403266fe65f6Smrg  else
403366fe65f6Smrg    CFLAGS=
403466fe65f6Smrg  fi
403566fe65f6Smrgfi
4036bc77032bSmrgac_prog_cc_stdc=no
4037bc77032bSmrgif test x$ac_prog_cc_stdc = xno
4038bc77032bSmrgthen :
4039bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4040bc77032bSmrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
4041bc77032bSmrgif test ${ac_cv_prog_cc_c11+y}
4042bc77032bSmrgthen :
4043bc77032bSmrg  printf %s "(cached) " >&6
4044bc77032bSmrgelse $as_nop
4045bc77032bSmrg  ac_cv_prog_cc_c11=no
404666fe65f6Smrgac_save_CC=$CC
404748af84faSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
404866fe65f6Smrg/* end confdefs.h.  */
4049bc77032bSmrg$ac_c_conftest_c11_program
4050bc77032bSmrg_ACEOF
4051bc77032bSmrgfor ac_arg in '' -std=gnu11
4052bc77032bSmrgdo
4053bc77032bSmrg  CC="$ac_save_CC $ac_arg"
4054bc77032bSmrg  if ac_fn_c_try_compile "$LINENO"
4055bc77032bSmrgthen :
4056bc77032bSmrg  ac_cv_prog_cc_c11=$ac_arg
4057bc77032bSmrgfi
4058bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4059bc77032bSmrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
4060bc77032bSmrgdone
4061bc77032bSmrgrm -f conftest.$ac_ext
4062bc77032bSmrgCC=$ac_save_CC
4063bc77032bSmrgfi
406466fe65f6Smrg
4065bc77032bSmrgif test "x$ac_cv_prog_cc_c11" = xno
4066bc77032bSmrgthen :
4067bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4068bc77032bSmrgprintf "%s\n" "unsupported" >&6; }
4069bc77032bSmrgelse $as_nop
4070bc77032bSmrg  if test "x$ac_cv_prog_cc_c11" = x
4071bc77032bSmrgthen :
4072bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4073bc77032bSmrgprintf "%s\n" "none needed" >&6; }
4074bc77032bSmrgelse $as_nop
4075bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4076bc77032bSmrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4077bc77032bSmrg     CC="$CC $ac_cv_prog_cc_c11"
4078bc77032bSmrgfi
4079bc77032bSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4080bc77032bSmrg  ac_prog_cc_stdc=c11
4081bc77032bSmrgfi
4082bc77032bSmrgfi
4083bc77032bSmrgif test x$ac_prog_cc_stdc = xno
4084bc77032bSmrgthen :
4085bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4086bc77032bSmrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
4087bc77032bSmrgif test ${ac_cv_prog_cc_c99+y}
4088bc77032bSmrgthen :
4089bc77032bSmrg  printf %s "(cached) " >&6
4090bc77032bSmrgelse $as_nop
4091bc77032bSmrg  ac_cv_prog_cc_c99=no
4092bc77032bSmrgac_save_CC=$CC
4093bc77032bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094bc77032bSmrg/* end confdefs.h.  */
4095bc77032bSmrg$ac_c_conftest_c99_program
4096bc77032bSmrg_ACEOF
4097bc77032bSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4098bc77032bSmrgdo
4099bc77032bSmrg  CC="$ac_save_CC $ac_arg"
4100bc77032bSmrg  if ac_fn_c_try_compile "$LINENO"
4101bc77032bSmrgthen :
4102bc77032bSmrg  ac_cv_prog_cc_c99=$ac_arg
4103bc77032bSmrgfi
4104bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4105bc77032bSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4106bc77032bSmrgdone
4107bc77032bSmrgrm -f conftest.$ac_ext
4108bc77032bSmrgCC=$ac_save_CC
4109bc77032bSmrgfi
411089d09728Smrg
4111bc77032bSmrgif test "x$ac_cv_prog_cc_c99" = xno
4112bc77032bSmrgthen :
4113bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4114bc77032bSmrgprintf "%s\n" "unsupported" >&6; }
4115bc77032bSmrgelse $as_nop
4116bc77032bSmrg  if test "x$ac_cv_prog_cc_c99" = x
4117bc77032bSmrgthen :
4118bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4119bc77032bSmrgprintf "%s\n" "none needed" >&6; }
4120bc77032bSmrgelse $as_nop
4121bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4122bc77032bSmrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4123bc77032bSmrg     CC="$CC $ac_cv_prog_cc_c99"
4124bc77032bSmrgfi
4125bc77032bSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4126bc77032bSmrg  ac_prog_cc_stdc=c99
4127bc77032bSmrgfi
4128bc77032bSmrgfi
4129bc77032bSmrgif test x$ac_prog_cc_stdc = xno
4130bc77032bSmrgthen :
4131bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4132bc77032bSmrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
4133bc77032bSmrgif test ${ac_cv_prog_cc_c89+y}
4134bc77032bSmrgthen :
4135bc77032bSmrg  printf %s "(cached) " >&6
4136bc77032bSmrgelse $as_nop
4137bc77032bSmrg  ac_cv_prog_cc_c89=no
4138bc77032bSmrgac_save_CC=$CC
4139bc77032bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140bc77032bSmrg/* end confdefs.h.  */
4141bc77032bSmrg$ac_c_conftest_c89_program
414266fe65f6Smrg_ACEOF
4143bc77032bSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
414466fe65f6Smrgdo
414566fe65f6Smrg  CC="$ac_save_CC $ac_arg"
4146bc77032bSmrg  if ac_fn_c_try_compile "$LINENO"
4147bc77032bSmrgthen :
414889d09728Smrg  ac_cv_prog_cc_c89=$ac_arg
414966fe65f6Smrgfi
4150bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
415189d09728Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
415266fe65f6Smrgdone
415389d09728Smrgrm -f conftest.$ac_ext
415466fe65f6SmrgCC=$ac_save_CC
415566fe65f6Smrgfi
415666fe65f6Smrg
4157bc77032bSmrgif test "x$ac_cv_prog_cc_c89" = xno
4158bc77032bSmrgthen :
4159bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4160bc77032bSmrgprintf "%s\n" "unsupported" >&6; }
4161bc77032bSmrgelse $as_nop
4162bc77032bSmrg  if test "x$ac_cv_prog_cc_c89" = x
4163bc77032bSmrgthen :
4164bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4165bc77032bSmrgprintf "%s\n" "none needed" >&6; }
4166bc77032bSmrgelse $as_nop
4167bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4168bc77032bSmrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4169bc77032bSmrg     CC="$CC $ac_cv_prog_cc_c89"
4170bc77032bSmrgfi
4171bc77032bSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4172bc77032bSmrg  ac_prog_cc_stdc=c89
4173bc77032bSmrgfi
417448af84faSmrgfi
417566fe65f6Smrg
417666fe65f6Smrgac_ext=c
417766fe65f6Smrgac_cpp='$CPP $CPPFLAGS'
417866fe65f6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
417966fe65f6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
418066fe65f6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
418166fe65f6Smrg
4182bc77032bSmrg
4183bc77032bSmrg  ac_ext=c
4184c6a6acfbSmrgac_cpp='$CPP $CPPFLAGS'
4185c6a6acfbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186c6a6acfbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187c6a6acfbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4188bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4189bc77032bSmrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
4190bc77032bSmrgif test ${am_cv_prog_cc_c_o+y}
4191bc77032bSmrgthen :
4192bc77032bSmrg  printf %s "(cached) " >&6
4193bc77032bSmrgelse $as_nop
4194c6a6acfbSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195c6a6acfbSmrg/* end confdefs.h.  */
4196c6a6acfbSmrg
4197c6a6acfbSmrgint
4198bc77032bSmrgmain (void)
4199c6a6acfbSmrg{
4200c6a6acfbSmrg
4201c6a6acfbSmrg  ;
4202c6a6acfbSmrg  return 0;
4203c6a6acfbSmrg}
4204c6a6acfbSmrg_ACEOF
4205c6a6acfbSmrg  # Make sure it works both with $CC and with simple cc.
4206c6a6acfbSmrg  # Following AC_PROG_CC_C_O, we do the test twice because some
4207c6a6acfbSmrg  # compilers refuse to overwrite an existing .o file with -o,
4208c6a6acfbSmrg  # though they will create one.
4209c6a6acfbSmrg  am_cv_prog_cc_c_o=yes
4210c6a6acfbSmrg  for am_i in 1 2; do
4211c6a6acfbSmrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4212c6a6acfbSmrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4213c6a6acfbSmrg   ac_status=$?
4214c6a6acfbSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215c6a6acfbSmrg   (exit $ac_status); } \
4216c6a6acfbSmrg         && test -f conftest2.$ac_objext; then
4217c6a6acfbSmrg      : OK
4218c6a6acfbSmrg    else
4219c6a6acfbSmrg      am_cv_prog_cc_c_o=no
4220c6a6acfbSmrg      break
4221c6a6acfbSmrg    fi
4222c6a6acfbSmrg  done
4223c6a6acfbSmrg  rm -f core conftest*
4224c6a6acfbSmrg  unset am_i
4225c6a6acfbSmrgfi
4226bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4227bc77032bSmrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4228c6a6acfbSmrgif test "$am_cv_prog_cc_c_o" != yes; then
4229c6a6acfbSmrg   # Losing compiler, so override with the script.
4230c6a6acfbSmrg   # FIXME: It is wrong to rewrite CC.
4231c6a6acfbSmrg   # But if we don't then we get into trouble of one sort or another.
4232c6a6acfbSmrg   # A longer-term fix would be to have automake use am__CC in this case,
4233c6a6acfbSmrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4234c6a6acfbSmrg   CC="$am_aux_dir/compile $CC"
4235c6a6acfbSmrgfi
4236c6a6acfbSmrgac_ext=c
4237c6a6acfbSmrgac_cpp='$CPP $CPPFLAGS'
4238c6a6acfbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239c6a6acfbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240c6a6acfbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4241c6a6acfbSmrg
4242c6a6acfbSmrg
424366fe65f6Smrgdepcc="$CC"   am_compiler_list=
424466fe65f6Smrg
4245bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4246bc77032bSmrgprintf %s "checking dependency style of $depcc... " >&6; }
4247bc77032bSmrgif test ${am_cv_CC_dependencies_compiler_type+y}
4248bc77032bSmrgthen :
4249bc77032bSmrg  printf %s "(cached) " >&6
4250bc77032bSmrgelse $as_nop
425166fe65f6Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
425266fe65f6Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
425366fe65f6Smrg  # making bogus files that we don't know about and never remove.  For
425466fe65f6Smrg  # instance it was reported that on HP-UX the gcc test will end up
4255c6a6acfbSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
4256c6a6acfbSmrg  # in D".
4257c6a6acfbSmrg  rm -rf conftest.dir
425866fe65f6Smrg  mkdir conftest.dir
425966fe65f6Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
426066fe65f6Smrg  # using a relative directory.
426166fe65f6Smrg  cp "$am_depcomp" conftest.dir
426266fe65f6Smrg  cd conftest.dir
426366fe65f6Smrg  # We will build objects and dependencies in a subdirectory because
426466fe65f6Smrg  # it helps to detect inapplicable dependency modes.  For instance
426566fe65f6Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
426666fe65f6Smrg  # side effect of compilation, but ICC will put the dependencies in
426766fe65f6Smrg  # the current directory while Tru64 will put them in the object
426866fe65f6Smrg  # directory.
426966fe65f6Smrg  mkdir sub
427066fe65f6Smrg
427166fe65f6Smrg  am_cv_CC_dependencies_compiler_type=none
427266fe65f6Smrg  if test "$am_compiler_list" = ""; then
427366fe65f6Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
427466fe65f6Smrg  fi
4275a9274bcdSmrg  am__universal=false
4276a9274bcdSmrg  case " $depcc " in #(
4277a9274bcdSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4278a9274bcdSmrg     esac
4279a9274bcdSmrg
428066fe65f6Smrg  for depmode in $am_compiler_list; do
428166fe65f6Smrg    # Setup a source with many dependencies, because some compilers
428266fe65f6Smrg    # like to wrap large dependency lists on column 80 (with \), and
428366fe65f6Smrg    # we should not choose a depcomp mode which is confused by this.
428466fe65f6Smrg    #
428566fe65f6Smrg    # We need to recreate these files for each test, as the compiler may
428666fe65f6Smrg    # overwrite some of them when testing with obscure command lines.
428766fe65f6Smrg    # This happens at least with the AIX C compiler.
428866fe65f6Smrg    : > sub/conftest.c
428966fe65f6Smrg    for i in 1 2 3 4 5 6; do
429066fe65f6Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4291c6a6acfbSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4292c6a6acfbSmrg      # Solaris 10 /bin/sh.
4293c6a6acfbSmrg      echo '/* dummy */' > sub/conftst$i.h
429466fe65f6Smrg    done
429566fe65f6Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
429666fe65f6Smrg
4297c6a6acfbSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4298a9274bcdSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
4299c6a6acfbSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
4300c6a6acfbSmrg    # versions had trouble with output in subdirs.
4301a9274bcdSmrg    am__obj=sub/conftest.${OBJEXT-o}
4302a9274bcdSmrg    am__minus_obj="-o $am__obj"
430366fe65f6Smrg    case $depmode in
4304a9274bcdSmrg    gcc)
4305a9274bcdSmrg      # This depmode causes a compiler race in universal mode.
4306a9274bcdSmrg      test "$am__universal" = false || continue
4307a9274bcdSmrg      ;;
430866fe65f6Smrg    nosideeffect)
4309c6a6acfbSmrg      # After this tag, mechanisms are not by side-effect, so they'll
4310c6a6acfbSmrg      # only be used when explicitly requested.
431166fe65f6Smrg      if test "x$enable_dependency_tracking" = xyes; then
431266fe65f6Smrg	continue
431366fe65f6Smrg      else
431466fe65f6Smrg	break
431566fe65f6Smrg      fi
431666fe65f6Smrg      ;;
4317c6a6acfbSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4318c6a6acfbSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
4319a9274bcdSmrg      # not run yet.  These depmodes are late enough in the game, and
4320a9274bcdSmrg      # so weak that their functioning should not be impacted.
4321a9274bcdSmrg      am__obj=conftest.${OBJEXT-o}
4322a9274bcdSmrg      am__minus_obj=
4323a9274bcdSmrg      ;;
432466fe65f6Smrg    none) break ;;
432566fe65f6Smrg    esac
432666fe65f6Smrg    if depmode=$depmode \
4327a9274bcdSmrg       source=sub/conftest.c object=$am__obj \
4328bc77032bSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4329bc77032bSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4330bc77032bSmrg         >/dev/null 2>conftest.err &&
4331bc77032bSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4332bc77032bSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4333bc77032bSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4334bc77032bSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4335bc77032bSmrg      # icc doesn't choke on unknown options, it will just issue warnings
4336bc77032bSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
4337bc77032bSmrg      # that says an option was ignored or not supported.
4338bc77032bSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
4339bc77032bSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
4340bc77032bSmrg      # The diagnosis changed in icc 8.0:
4341bc77032bSmrg      #   icc: Command line remark: option '-MP' not supported
4342bc77032bSmrg      if (grep 'ignoring option' conftest.err ||
4343bc77032bSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4344bc77032bSmrg        am_cv_CC_dependencies_compiler_type=$depmode
4345bc77032bSmrg        break
4346bc77032bSmrg      fi
434789d09728Smrg    fi
434889d09728Smrg  done
434989d09728Smrg
4350bc77032bSmrg  cd ..
4351bc77032bSmrg  rm -rf conftest.dir
435289d09728Smrgelse
4353bc77032bSmrg  am_cv_CC_dependencies_compiler_type=none
435489d09728Smrgfi
435589d09728Smrg
435689d09728Smrgfi
4357bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4358bc77032bSmrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4359bc77032bSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
436089d09728Smrg
4361bc77032bSmrg if
4362bc77032bSmrg  test "x$enable_dependency_tracking" != xno \
4363bc77032bSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4364bc77032bSmrg  am__fastdepCC_TRUE=
4365bc77032bSmrg  am__fastdepCC_FALSE='#'
436689d09728Smrgelse
4367bc77032bSmrg  am__fastdepCC_TRUE='#'
4368bc77032bSmrg  am__fastdepCC_FALSE=
436989d09728Smrgfi
437089d09728Smrg
437189d09728Smrg
437289d09728Smrg
4373bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4374bc77032bSmrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4375bc77032bSmrgif test ${ac_cv_c_undeclared_builtin_options+y}
4376bc77032bSmrgthen :
4377bc77032bSmrg  printf %s "(cached) " >&6
4378bc77032bSmrgelse $as_nop
4379bc77032bSmrg  ac_save_CFLAGS=$CFLAGS
4380bc77032bSmrg   ac_cv_c_undeclared_builtin_options='cannot detect'
4381bc77032bSmrg   for ac_arg in '' -fno-builtin; do
4382bc77032bSmrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
4383bc77032bSmrg     # This test program should *not* compile successfully.
4384bc77032bSmrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
438589d09728Smrg/* end confdefs.h.  */
438689d09728Smrg
438789d09728Smrgint
4388bc77032bSmrgmain (void)
438989d09728Smrg{
4390bc77032bSmrg(void) strchr;
439189d09728Smrg  ;
439289d09728Smrg  return 0;
439389d09728Smrg}
439489d09728Smrg_ACEOF
4395bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
4396bc77032bSmrgthen :
4397a9274bcdSmrg
4398bc77032bSmrgelse $as_nop
4399bc77032bSmrg  # This test program should compile successfully.
4400bc77032bSmrg        # No library function is consistently available on
4401bc77032bSmrg        # freestanding implementations, so test against a dummy
4402bc77032bSmrg        # declaration.  Include always-available headers on the
4403bc77032bSmrg        # off chance that they somehow elicit warnings.
4404bc77032bSmrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405a9274bcdSmrg/* end confdefs.h.  */
4406bc77032bSmrg#include <float.h>
4407bc77032bSmrg#include <limits.h>
4408bc77032bSmrg#include <stdarg.h>
4409bc77032bSmrg#include <stddef.h>
4410bc77032bSmrgextern void ac_decl (int, char *);
4411a9274bcdSmrg
4412a9274bcdSmrgint
4413bc77032bSmrgmain (void)
4414a9274bcdSmrg{
4415bc77032bSmrg(void) ac_decl (0, (char *) 0);
4416bc77032bSmrg  (void) ac_decl;
4417bc77032bSmrg
4418bc77032bSmrg  ;
4419a9274bcdSmrg  return 0;
4420a9274bcdSmrg}
4421a9274bcdSmrg_ACEOF
4422bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
4423bc77032bSmrgthen :
4424bc77032bSmrg  if test x"$ac_arg" = x
4425bc77032bSmrgthen :
4426bc77032bSmrg  ac_cv_c_undeclared_builtin_options='none needed'
4427bc77032bSmrgelse $as_nop
4428bc77032bSmrg  ac_cv_c_undeclared_builtin_options=$ac_arg
4429a9274bcdSmrgfi
4430bc77032bSmrg          break
4431a9274bcdSmrgfi
4432bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4433a9274bcdSmrgfi
4434bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4435bc77032bSmrg    done
4436bc77032bSmrg    CFLAGS=$ac_save_CFLAGS
4437bc77032bSmrg
4438bc77032bSmrgfi
4439bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4440bc77032bSmrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4441bc77032bSmrg  case $ac_cv_c_undeclared_builtin_options in #(
4442bc77032bSmrg  'cannot detect') :
4443bc77032bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4444bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4445bc77032bSmrgas_fn_error $? "cannot make $CC report undeclared builtins
4446bc77032bSmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #(
4447bc77032bSmrg  'none needed') :
4448bc77032bSmrg    ac_c_undeclared_builtin_options='' ;; #(
4449bc77032bSmrg  *) :
4450bc77032bSmrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4451bc77032bSmrgesac
4452a9274bcdSmrg
4453bc77032bSmrgac_header= ac_cache=
4454bc77032bSmrgfor ac_item in $ac_header_c_list
4455bc77032bSmrgdo
4456bc77032bSmrg  if test $ac_cache; then
4457bc77032bSmrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4458bc77032bSmrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4459bc77032bSmrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4460bc77032bSmrg    fi
4461bc77032bSmrg    ac_header= ac_cache=
4462bc77032bSmrg  elif test $ac_header; then
4463bc77032bSmrg    ac_cache=$ac_item
4464bc77032bSmrg  else
4465bc77032bSmrg    ac_header=$ac_item
4466bc77032bSmrg  fi
4467bc77032bSmrgdone
4468a9274bcdSmrg
4469a9274bcdSmrg
4470a9274bcdSmrg
4471a9274bcdSmrg
4472a9274bcdSmrg
4473a9274bcdSmrg
4474a9274bcdSmrg
4475a9274bcdSmrg
4476bc77032bSmrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4477bc77032bSmrgthen :
4478bc77032bSmrg
4479bc77032bSmrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4480bc77032bSmrg
4481bc77032bSmrgfi
4482bc77032bSmrg
4483bc77032bSmrg
4484c6a6acfbSmrg
4485c6a6acfbSmrg
4486bc77032bSmrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4487bc77032bSmrgif test "x$ac_cv_have_decl___clang__" = xyes
4488bc77032bSmrgthen :
4489f931275dSmrg  CLANGCC="yes"
4490bc77032bSmrgelse $as_nop
4491f931275dSmrg  CLANGCC="no"
4492f931275dSmrgfi
4493bc77032bSmrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4494bc77032bSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4495bc77032bSmrgthen :
4496f931275dSmrg  INTELCC="yes"
4497bc77032bSmrgelse $as_nop
4498f931275dSmrg  INTELCC="no"
4499f931275dSmrgfi
4500bc77032bSmrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4501bc77032bSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4502bc77032bSmrgthen :
4503f931275dSmrg  SUNCC="yes"
4504bc77032bSmrgelse $as_nop
4505f931275dSmrg  SUNCC="no"
4506f931275dSmrgfi
4507f931275dSmrg
4508f931275dSmrg
4509f931275dSmrg
4510f931275dSmrg
451138c51623Smrg
451238c51623Smrg
451338c51623Smrg
451438c51623Smrg
451548af84faSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
451648af84faSmrg	if test -n "$ac_tool_prefix"; then
451748af84faSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
451848af84faSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4519bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
4521bc77032bSmrgif test ${ac_cv_path_PKG_CONFIG+y}
4522bc77032bSmrgthen :
4523bc77032bSmrg  printf %s "(cached) " >&6
4524bc77032bSmrgelse $as_nop
452548af84faSmrg  case $PKG_CONFIG in
452648af84faSmrg  [\\/]* | ?:[\\/]*)
452748af84faSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
452848af84faSmrg  ;;
452948af84faSmrg  *)
453048af84faSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
453148af84faSmrgfor as_dir in $PATH
4532a9274bcdSmrgdo
453348af84faSmrg  IFS=$as_save_IFS
4534bc77032bSmrg  case $as_dir in #(((
4535bc77032bSmrg    '') as_dir=./ ;;
4536bc77032bSmrg    */) ;;
4537bc77032bSmrg    *) as_dir=$as_dir/ ;;
4538bc77032bSmrg  esac
453948af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4540bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4541bc77032bSmrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4542bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
454348af84faSmrg    break 2
454448af84faSmrg  fi
454548af84faSmrgdone
454648af84faSmrg  done
454748af84faSmrgIFS=$as_save_IFS
454848af84faSmrg
454948af84faSmrg  ;;
4550a9274bcdSmrgesac
455148af84faSmrgfi
455248af84faSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
455348af84faSmrgif test -n "$PKG_CONFIG"; then
4554bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4555bc77032bSmrgprintf "%s\n" "$PKG_CONFIG" >&6; }
4556a9274bcdSmrgelse
4557bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558bc77032bSmrgprintf "%s\n" "no" >&6; }
4559a9274bcdSmrgfi
4560a9274bcdSmrg
4561a9274bcdSmrg
4562a9274bcdSmrgfi
456348af84faSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
456448af84faSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
456548af84faSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
456648af84faSmrgset dummy pkg-config; ac_word=$2
4567bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
4569bc77032bSmrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4570bc77032bSmrgthen :
4571bc77032bSmrg  printf %s "(cached) " >&6
4572bc77032bSmrgelse $as_nop
457348af84faSmrg  case $ac_pt_PKG_CONFIG in
457448af84faSmrg  [\\/]* | ?:[\\/]*)
457548af84faSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
457648af84faSmrg  ;;
4577a9274bcdSmrg  *)
457848af84faSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
457948af84faSmrgfor as_dir in $PATH
458048af84faSmrgdo
458148af84faSmrg  IFS=$as_save_IFS
4582bc77032bSmrg  case $as_dir in #(((
4583bc77032bSmrg    '') as_dir=./ ;;
4584bc77032bSmrg    */) ;;
4585bc77032bSmrg    *) as_dir=$as_dir/ ;;
4586bc77032bSmrg  esac
458748af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4588bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4589bc77032bSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4590bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
459148af84faSmrg    break 2
459248af84faSmrg  fi
459348af84faSmrgdone
459448af84faSmrg  done
459548af84faSmrgIFS=$as_save_IFS
459648af84faSmrg
459748af84faSmrg  ;;
4598a9274bcdSmrgesac
459948af84faSmrgfi
460048af84faSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
460148af84faSmrgif test -n "$ac_pt_PKG_CONFIG"; then
4602bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4603bc77032bSmrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
460448af84faSmrgelse
4605bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606bc77032bSmrgprintf "%s\n" "no" >&6; }
460748af84faSmrgfi
4608a9274bcdSmrg
460948af84faSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
461048af84faSmrg    PKG_CONFIG=""
461148af84faSmrg  else
461248af84faSmrg    case $cross_compiling:$ac_tool_warned in
461348af84faSmrgyes:)
4614bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4615bc77032bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
461648af84faSmrgac_tool_warned=yes ;;
461748af84faSmrgesac
461848af84faSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
461948af84faSmrg  fi
462048af84faSmrgelse
462148af84faSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
462248af84faSmrgfi
4623a9274bcdSmrg
462448af84faSmrgfi
462548af84faSmrgif test -n "$PKG_CONFIG"; then
462648af84faSmrg	_pkg_min_version=0.9.0
4627bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4628bc77032bSmrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
462948af84faSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4630bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4631bc77032bSmrgprintf "%s\n" "yes" >&6; }
463248af84faSmrg	else
4633bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634bc77032bSmrgprintf "%s\n" "no" >&6; }
463548af84faSmrg		PKG_CONFIG=""
463648af84faSmrg	fi
463748af84faSmrgfi
4638a9274bcdSmrg
4639bc77032bSmrg
4640bc77032bSmrg  # Make sure we can run config.sub.
4641bc77032bSmrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4642bc77032bSmrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4643bc77032bSmrg
4644bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4645bc77032bSmrgprintf %s "checking build system type... " >&6; }
4646bc77032bSmrgif test ${ac_cv_build+y}
4647bc77032bSmrgthen :
4648bc77032bSmrg  printf %s "(cached) " >&6
4649bc77032bSmrgelse $as_nop
4650a9274bcdSmrg  ac_build_alias=$build_alias
4651a9274bcdSmrgtest "x$ac_build_alias" = x &&
4652bc77032bSmrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4653a9274bcdSmrgtest "x$ac_build_alias" = x &&
465448af84faSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4655bc77032bSmrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4656bc77032bSmrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4657a9274bcdSmrg
4658a9274bcdSmrgfi
4659bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4660bc77032bSmrgprintf "%s\n" "$ac_cv_build" >&6; }
4661a9274bcdSmrgcase $ac_cv_build in
4662a9274bcdSmrg*-*-*) ;;
466348af84faSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4664a9274bcdSmrgesac
4665a9274bcdSmrgbuild=$ac_cv_build
4666a9274bcdSmrgac_save_IFS=$IFS; IFS='-'
4667a9274bcdSmrgset x $ac_cv_build
4668a9274bcdSmrgshift
4669a9274bcdSmrgbuild_cpu=$1
4670a9274bcdSmrgbuild_vendor=$2
4671a9274bcdSmrgshift; shift
4672a9274bcdSmrg# Remember, the first character of IFS is used to create $*,
4673a9274bcdSmrg# except with old shells:
4674a9274bcdSmrgbuild_os=$*
4675a9274bcdSmrgIFS=$ac_save_IFS
4676a9274bcdSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4677a9274bcdSmrg
4678a9274bcdSmrg
4679bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4680bc77032bSmrgprintf %s "checking host system type... " >&6; }
4681bc77032bSmrgif test ${ac_cv_host+y}
4682bc77032bSmrgthen :
4683bc77032bSmrg  printf %s "(cached) " >&6
4684bc77032bSmrgelse $as_nop
4685a9274bcdSmrg  if test "x$host_alias" = x; then
4686a9274bcdSmrg  ac_cv_host=$ac_cv_build
4687a9274bcdSmrgelse
4688bc77032bSmrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4689bc77032bSmrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4690a9274bcdSmrgfi
4691a9274bcdSmrg
4692a9274bcdSmrgfi
4693bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4694bc77032bSmrgprintf "%s\n" "$ac_cv_host" >&6; }
4695a9274bcdSmrgcase $ac_cv_host in
4696a9274bcdSmrg*-*-*) ;;
469748af84faSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4698a9274bcdSmrgesac
4699a9274bcdSmrghost=$ac_cv_host
4700a9274bcdSmrgac_save_IFS=$IFS; IFS='-'
4701a9274bcdSmrgset x $ac_cv_host
4702a9274bcdSmrgshift
4703a9274bcdSmrghost_cpu=$1
4704a9274bcdSmrghost_vendor=$2
4705a9274bcdSmrgshift; shift
4706a9274bcdSmrg# Remember, the first character of IFS is used to create $*,
4707a9274bcdSmrg# except with old shells:
4708a9274bcdSmrghost_os=$*
4709a9274bcdSmrgIFS=$ac_save_IFS
4710a9274bcdSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4711a9274bcdSmrg
4712a9274bcdSmrg
4713bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4714bc77032bSmrgprintf %s "checking for a sed that does not truncate output... " >&6; }
4715bc77032bSmrgif test ${ac_cv_path_SED+y}
4716bc77032bSmrgthen :
4717bc77032bSmrg  printf %s "(cached) " >&6
4718bc77032bSmrgelse $as_nop
471948af84faSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
472048af84faSmrg     for ac_i in 1 2 3 4 5 6 7; do
472148af84faSmrg       ac_script="$ac_script$as_nl$ac_script"
472248af84faSmrg     done
472348af84faSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
472448af84faSmrg     { ac_script=; unset ac_script;}
472548af84faSmrg     if test -z "$SED"; then
472648af84faSmrg  ac_path_SED_found=false
472748af84faSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
472848af84faSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
472948af84faSmrgfor as_dir in $PATH
473048af84faSmrgdo
473148af84faSmrg  IFS=$as_save_IFS
4732bc77032bSmrg  case $as_dir in #(((
4733bc77032bSmrg    '') as_dir=./ ;;
4734bc77032bSmrg    */) ;;
4735bc77032bSmrg    *) as_dir=$as_dir/ ;;
4736bc77032bSmrg  esac
4737bc77032bSmrg    for ac_prog in sed gsed
4738bc77032bSmrg   do
473948af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4740bc77032bSmrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4741c6a6acfbSmrg      as_fn_executable_p "$ac_path_SED" || continue
474248af84faSmrg# Check for GNU ac_path_SED and select it if it is found.
474348af84faSmrg  # Check for GNU $ac_path_SED
474448af84faSmrgcase `"$ac_path_SED" --version 2>&1` in
474548af84faSmrg*GNU*)
474648af84faSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
474748af84faSmrg*)
474848af84faSmrg  ac_count=0
4749bc77032bSmrg  printf %s 0123456789 >"conftest.in"
475048af84faSmrg  while :
475148af84faSmrg  do
475248af84faSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
475348af84faSmrg    mv "conftest.tmp" "conftest.in"
475448af84faSmrg    cp "conftest.in" "conftest.nl"
4755bc77032bSmrg    printf "%s\n" '' >> "conftest.nl"
475648af84faSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
475748af84faSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
475848af84faSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
475948af84faSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
476048af84faSmrg      # Best one so far, save it but keep looking for a better one
476148af84faSmrg      ac_cv_path_SED="$ac_path_SED"
476248af84faSmrg      ac_path_SED_max=$ac_count
476348af84faSmrg    fi
476448af84faSmrg    # 10*(2^10) chars as input seems more than enough
476548af84faSmrg    test $ac_count -gt 10 && break
476648af84faSmrg  done
476748af84faSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4768a9274bcdSmrgesac
4769a9274bcdSmrg
477048af84faSmrg      $ac_path_SED_found && break 3
477148af84faSmrg    done
477248af84faSmrg  done
477348af84faSmrg  done
477448af84faSmrgIFS=$as_save_IFS
477548af84faSmrg  if test -z "$ac_cv_path_SED"; then
477648af84faSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
477748af84faSmrg  fi
4778a9274bcdSmrgelse
477948af84faSmrg  ac_cv_path_SED=$SED
4780a9274bcdSmrgfi
4781a9274bcdSmrg
4782a9274bcdSmrgfi
4783bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4784bc77032bSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
478548af84faSmrg SED="$ac_cv_path_SED"
478648af84faSmrg  rm -f conftest.sed
4787a9274bcdSmrg
4788a9274bcdSmrg
4789a9274bcdSmrg
4790a9274bcdSmrg
4791a9274bcdSmrg
4792f931275dSmrg
4793f931275dSmrg# Check whether --enable-selective-werror was given.
4794bc77032bSmrgif test ${enable_selective_werror+y}
4795bc77032bSmrgthen :
4796f931275dSmrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4797bc77032bSmrgelse $as_nop
4798f931275dSmrg  SELECTIVE_WERROR=yes
4799a9274bcdSmrgfi
4800a9274bcdSmrg
4801f931275dSmrg
4802c6a6acfbSmrg
4803c6a6acfbSmrg
4804c6a6acfbSmrg
4805f931275dSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
4806f931275dSmrgif test "x$SUNCC" = "xyes"; then
4807f931275dSmrg    BASE_CFLAGS="-v"
4808f931275dSmrgelse
4809f931275dSmrg    BASE_CFLAGS=""
481048af84faSmrgfi
481148af84faSmrg
4812f931275dSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
481348af84faSmrg
481448af84faSmrg
481548af84faSmrg
4816a9274bcdSmrg
481789d09728Smrg
4818c6a6acfbSmrg
4819c6a6acfbSmrg
4820c6a6acfbSmrg
4821c6a6acfbSmrg
4822c6a6acfbSmrg
4823c6a6acfbSmrg
4824c6a6acfbSmrg
4825c6a6acfbSmrg
4826f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
482789d09728Smrg
4828c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4829f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4830bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4831bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4832bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
4833bc77032bSmrgthen :
4834bc77032bSmrg  printf %s "(cached) " >&6
4835bc77032bSmrgelse $as_nop
4836f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837f931275dSmrg/* end confdefs.h.  */
4838f931275dSmrgint i;
4839f931275dSmrg_ACEOF
4840bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
4841bc77032bSmrgthen :
4842f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
4843bc77032bSmrgelse $as_nop
4844f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4845f931275dSmrgfi
4846bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4847f931275dSmrgfi
4848bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4849bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4850c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4851f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
485289d09728Smrgfi
485389d09728Smrg
4854c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4855c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4856f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4857a9274bcdSmrg	fi
4858f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4859bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4860bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4861bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4862bc77032bSmrgthen :
4863bc77032bSmrg  printf %s "(cached) " >&6
4864bc77032bSmrgelse $as_nop
4865f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866f931275dSmrg/* end confdefs.h.  */
4867f931275dSmrgint i;
4868f931275dSmrg_ACEOF
4869bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
4870bc77032bSmrgthen :
4871f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4872bc77032bSmrgelse $as_nop
4873f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4874f931275dSmrgfi
4875bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4876f931275dSmrgfi
4877bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4878bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4879c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4880f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
488189d09728Smrgfi
488289d09728Smrg
4883f931275dSmrgfound="no"
4884a9274bcdSmrg
4885f931275dSmrg	if test $found = "no" ; then
4886c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4887f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4888f931275dSmrg		fi
488989d09728Smrg
4890c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4891f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4892f931275dSmrg		fi
4893a9274bcdSmrg
4894f931275dSmrg		CFLAGS="$CFLAGS -Wall"
489589d09728Smrg
4896bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4897bc77032bSmrgprintf %s "checking if $CC supports -Wall... " >&6; }
4898c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wall
4899bc77032bSmrg		if eval test \${$cacheid+y}
4900bc77032bSmrgthen :
4901bc77032bSmrg  printf %s "(cached) " >&6
4902bc77032bSmrgelse $as_nop
4903f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904f931275dSmrg/* end confdefs.h.  */
4905f931275dSmrgint i;
4906f931275dSmrgint
4907bc77032bSmrgmain (void)
4908f931275dSmrg{
4909a9274bcdSmrg
4910f931275dSmrg  ;
4911f931275dSmrg  return 0;
4912f931275dSmrg}
4913a9274bcdSmrg_ACEOF
4914bc77032bSmrgif ac_fn_c_try_link "$LINENO"
4915bc77032bSmrgthen :
4916c6a6acfbSmrg  eval $cacheid=yes
4917bc77032bSmrgelse $as_nop
4918c6a6acfbSmrg  eval $cacheid=no
4919f931275dSmrgfi
4920bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
4921f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
4922f931275dSmrgfi
4923a9274bcdSmrg
4924a9274bcdSmrg
4925f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
4926a9274bcdSmrg
4927c6a6acfbSmrg		eval supported=\$$cacheid
4928bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4929bc77032bSmrgprintf "%s\n" "$supported" >&6; }
4930f931275dSmrg		if test "$supported" = "yes" ; then
4931f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4932f931275dSmrg			found="yes"
4933f931275dSmrg		fi
4934f931275dSmrg	fi
493548af84faSmrg
493648af84faSmrg
493748af84faSmrg
4938a9274bcdSmrg
4939a9274bcdSmrg
4940a9274bcdSmrg
4941a9274bcdSmrg
4942c6a6acfbSmrg
4943c6a6acfbSmrg
4944c6a6acfbSmrg
4945c6a6acfbSmrg
4946c6a6acfbSmrg
4947c6a6acfbSmrg
4948c6a6acfbSmrg
4949c6a6acfbSmrg
4950f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
4951a9274bcdSmrg
4952c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4953f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4954bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4955bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4956bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
4957bc77032bSmrgthen :
4958bc77032bSmrg  printf %s "(cached) " >&6
4959bc77032bSmrgelse $as_nop
4960f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961f931275dSmrg/* end confdefs.h.  */
4962f931275dSmrgint i;
4963f931275dSmrg_ACEOF
4964bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
4965bc77032bSmrgthen :
4966f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
4967bc77032bSmrgelse $as_nop
4968f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
496989d09728Smrgfi
4970bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
497189d09728Smrgfi
4972bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4973bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4974c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4975f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
497689d09728Smrgfi
497789d09728Smrg
4978c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4979c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4980f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4981f931275dSmrg	fi
4982f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4983bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4984bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4985bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4986bc77032bSmrgthen :
4987bc77032bSmrg  printf %s "(cached) " >&6
4988bc77032bSmrgelse $as_nop
4989f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990f931275dSmrg/* end confdefs.h.  */
4991f931275dSmrgint i;
4992f931275dSmrg_ACEOF
4993bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
4994bc77032bSmrgthen :
4995f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4996bc77032bSmrgelse $as_nop
4997f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4998a9274bcdSmrgfi
4999bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5000a9274bcdSmrgfi
5001bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5002bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5003c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5004f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
500589d09728Smrgfi
500689d09728Smrg
5007f931275dSmrgfound="no"
500889d09728Smrg
5009f931275dSmrg	if test $found = "no" ; then
5010c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5011f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5012f931275dSmrg		fi
5013f931275dSmrg
5014c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5015f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5016f931275dSmrg		fi
5017f931275dSmrg
5018f931275dSmrg		CFLAGS="$CFLAGS -Wpointer-arith"
5019f931275dSmrg
5020bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5021bc77032bSmrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5022c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
5023bc77032bSmrg		if eval test \${$cacheid+y}
5024bc77032bSmrgthen :
5025bc77032bSmrg  printf %s "(cached) " >&6
5026bc77032bSmrgelse $as_nop
5027f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028f931275dSmrg/* end confdefs.h.  */
5029f931275dSmrgint i;
5030f931275dSmrgint
5031bc77032bSmrgmain (void)
5032f931275dSmrg{
5033f931275dSmrg
5034f931275dSmrg  ;
5035f931275dSmrg  return 0;
5036f931275dSmrg}
5037f931275dSmrg_ACEOF
5038bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5039bc77032bSmrgthen :
5040c6a6acfbSmrg  eval $cacheid=yes
5041bc77032bSmrgelse $as_nop
5042c6a6acfbSmrg  eval $cacheid=no
5043a9274bcdSmrgfi
5044bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5045f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
504689d09728Smrgfi
504789d09728Smrg
504889d09728Smrg
5049f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
505089d09728Smrg
5051c6a6acfbSmrg		eval supported=\$$cacheid
5052bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5053bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5054f931275dSmrg		if test "$supported" = "yes" ; then
5055f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5056f931275dSmrg			found="yes"
5057f931275dSmrg		fi
5058f931275dSmrg	fi
505989d09728Smrg
506089d09728Smrg
506189d09728Smrg
5062a9274bcdSmrg
5063a9274bcdSmrg
5064a9274bcdSmrg
5065a9274bcdSmrg
5066c6a6acfbSmrg
5067c6a6acfbSmrg
5068c6a6acfbSmrg
5069c6a6acfbSmrg
5070c6a6acfbSmrg
5071c6a6acfbSmrg
5072c6a6acfbSmrg
5073c6a6acfbSmrg
5074f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5075a9274bcdSmrg
5076c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5077f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5078bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5079bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5080bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5081bc77032bSmrgthen :
5082bc77032bSmrg  printf %s "(cached) " >&6
5083bc77032bSmrgelse $as_nop
5084f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085f931275dSmrg/* end confdefs.h.  */
5086f931275dSmrgint i;
5087f931275dSmrg_ACEOF
5088bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5089bc77032bSmrgthen :
5090f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5091bc77032bSmrgelse $as_nop
5092f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5093f931275dSmrgfi
5094bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5095f931275dSmrgfi
5096bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5097bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5098c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5099f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5100f931275dSmrgfi
5101a9274bcdSmrg
5102c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5103c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5104f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5105f931275dSmrg	fi
5106f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5107bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5108bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5109bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5110bc77032bSmrgthen :
5111bc77032bSmrg  printf %s "(cached) " >&6
5112bc77032bSmrgelse $as_nop
5113f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114f931275dSmrg/* end confdefs.h.  */
5115f931275dSmrgint i;
5116f931275dSmrg_ACEOF
5117bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5118bc77032bSmrgthen :
5119f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5120bc77032bSmrgelse $as_nop
5121f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5122f931275dSmrgfi
5123bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5124f931275dSmrgfi
5125bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5126bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5127c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5128f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5129f931275dSmrgfi
5130a9274bcdSmrg
5131f931275dSmrgfound="no"
5132a9274bcdSmrg
5133f931275dSmrg	if test $found = "no" ; then
5134c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5135f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5136f931275dSmrg		fi
513789d09728Smrg
5138c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5139f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5140f931275dSmrg		fi
514148af84faSmrg
5142c6a6acfbSmrg		CFLAGS="$CFLAGS -Wmissing-declarations"
514348af84faSmrg
5144bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5145bc77032bSmrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5146c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5147bc77032bSmrg		if eval test \${$cacheid+y}
5148bc77032bSmrgthen :
5149bc77032bSmrg  printf %s "(cached) " >&6
5150bc77032bSmrgelse $as_nop
5151f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152f931275dSmrg/* end confdefs.h.  */
5153f931275dSmrgint i;
5154f931275dSmrgint
5155bc77032bSmrgmain (void)
5156f931275dSmrg{
515748af84faSmrg
5158f931275dSmrg  ;
5159f931275dSmrg  return 0;
5160f931275dSmrg}
5161f931275dSmrg_ACEOF
5162bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5163bc77032bSmrgthen :
5164c6a6acfbSmrg  eval $cacheid=yes
5165bc77032bSmrgelse $as_nop
5166c6a6acfbSmrg  eval $cacheid=no
5167f931275dSmrgfi
5168bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5169f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
517048af84faSmrgfi
517148af84faSmrg
517248af84faSmrg
5173f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
517489d09728Smrg
5175c6a6acfbSmrg		eval supported=\$$cacheid
5176bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5177bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5178f931275dSmrg		if test "$supported" = "yes" ; then
5179c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5180f931275dSmrg			found="yes"
5181f931275dSmrg		fi
5182f931275dSmrg	fi
518389d09728Smrg
5184f931275dSmrg
5185f931275dSmrg
5186f931275dSmrg
5187f931275dSmrg
5188f931275dSmrg
5189f931275dSmrg
5190c6a6acfbSmrg
5191c6a6acfbSmrg
5192c6a6acfbSmrg
5193c6a6acfbSmrg
5194c6a6acfbSmrg
5195c6a6acfbSmrg
5196c6a6acfbSmrg
5197c6a6acfbSmrg
5198f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5199f931275dSmrg
5200c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5201f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5202bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5203bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5204bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5205bc77032bSmrgthen :
5206bc77032bSmrg  printf %s "(cached) " >&6
5207bc77032bSmrgelse $as_nop
5208f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209f931275dSmrg/* end confdefs.h.  */
5210f931275dSmrgint i;
5211f931275dSmrg_ACEOF
5212bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5213bc77032bSmrgthen :
5214f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5215bc77032bSmrgelse $as_nop
5216f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
521789d09728Smrgfi
5218bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
521989d09728Smrgfi
5220bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5221bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5222c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5223f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
522489d09728Smrgfi
522589d09728Smrg
5226c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5227c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5228f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5229f931275dSmrg	fi
5230f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5231bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5232bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5233bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5234bc77032bSmrgthen :
5235bc77032bSmrg  printf %s "(cached) " >&6
5236bc77032bSmrgelse $as_nop
5237f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238f931275dSmrg/* end confdefs.h.  */
5239f931275dSmrgint i;
5240f931275dSmrg_ACEOF
5241bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5242bc77032bSmrgthen :
5243f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5244bc77032bSmrgelse $as_nop
5245f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
524689d09728Smrgfi
5247bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
524889d09728Smrgfi
5249bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5250bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5251c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5252f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
525389d09728Smrgfi
525489d09728Smrg
5255f931275dSmrgfound="no"
525689d09728Smrg
5257f931275dSmrg	if test $found = "no" ; then
5258c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5259f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5260f931275dSmrg		fi
5261f931275dSmrg
5262c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5263f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5264f931275dSmrg		fi
5265f931275dSmrg
5266c6a6acfbSmrg		CFLAGS="$CFLAGS -Wformat=2"
5267f931275dSmrg
5268bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5269bc77032bSmrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
5270c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wformat_2
5271bc77032bSmrg		if eval test \${$cacheid+y}
5272bc77032bSmrgthen :
5273bc77032bSmrg  printf %s "(cached) " >&6
5274bc77032bSmrgelse $as_nop
5275f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276f931275dSmrg/* end confdefs.h.  */
5277f931275dSmrgint i;
5278f931275dSmrgint
5279bc77032bSmrgmain (void)
5280f931275dSmrg{
528189d09728Smrg
5282f931275dSmrg  ;
5283f931275dSmrg  return 0;
5284f931275dSmrg}
5285f931275dSmrg_ACEOF
5286bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5287bc77032bSmrgthen :
5288c6a6acfbSmrg  eval $cacheid=yes
5289bc77032bSmrgelse $as_nop
5290c6a6acfbSmrg  eval $cacheid=no
5291f931275dSmrgfi
5292bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5293f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
529489d09728Smrgfi
529589d09728Smrg
529689d09728Smrg
5297f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5298f931275dSmrg
5299c6a6acfbSmrg		eval supported=\$$cacheid
5300bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5301bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5302f931275dSmrg		if test "$supported" = "yes" ; then
5303c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5304c6a6acfbSmrg			found="yes"
5305c6a6acfbSmrg		fi
5306c6a6acfbSmrg	fi
5307c6a6acfbSmrg
5308c6a6acfbSmrg	if test $found = "no" ; then
5309c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5310c6a6acfbSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5311c6a6acfbSmrg		fi
5312c6a6acfbSmrg
5313c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5314c6a6acfbSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5315c6a6acfbSmrg		fi
5316c6a6acfbSmrg
5317c6a6acfbSmrg		CFLAGS="$CFLAGS -Wformat"
5318c6a6acfbSmrg
5319bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5320bc77032bSmrgprintf %s "checking if $CC supports -Wformat... " >&6; }
5321c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wformat
5322bc77032bSmrg		if eval test \${$cacheid+y}
5323bc77032bSmrgthen :
5324bc77032bSmrg  printf %s "(cached) " >&6
5325bc77032bSmrgelse $as_nop
5326c6a6acfbSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327c6a6acfbSmrg/* end confdefs.h.  */
5328c6a6acfbSmrgint i;
5329c6a6acfbSmrgint
5330bc77032bSmrgmain (void)
5331c6a6acfbSmrg{
5332c6a6acfbSmrg
5333c6a6acfbSmrg  ;
5334c6a6acfbSmrg  return 0;
5335c6a6acfbSmrg}
5336c6a6acfbSmrg_ACEOF
5337bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5338bc77032bSmrgthen :
5339c6a6acfbSmrg  eval $cacheid=yes
5340bc77032bSmrgelse $as_nop
5341c6a6acfbSmrg  eval $cacheid=no
5342c6a6acfbSmrgfi
5343bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5344c6a6acfbSmrg    conftest$ac_exeext conftest.$ac_ext
5345c6a6acfbSmrgfi
5346c6a6acfbSmrg
5347c6a6acfbSmrg
5348c6a6acfbSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5349c6a6acfbSmrg
5350c6a6acfbSmrg		eval supported=\$$cacheid
5351bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5352bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5353c6a6acfbSmrg		if test "$supported" = "yes" ; then
5354c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5355f931275dSmrg			found="yes"
5356f931275dSmrg		fi
5357f931275dSmrg	fi
5358f931275dSmrg
5359f931275dSmrg
5360f931275dSmrg
5361f931275dSmrg
5362f931275dSmrg
5363f931275dSmrg
5364f931275dSmrg
5365c6a6acfbSmrg
5366c6a6acfbSmrg
5367c6a6acfbSmrg
5368c6a6acfbSmrg
5369c6a6acfbSmrg
5370c6a6acfbSmrg
5371c6a6acfbSmrg
5372c6a6acfbSmrg
5373c6a6acfbSmrg
5374c6a6acfbSmrg
5375f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5376f931275dSmrg
5377c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5378f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5379bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5380bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5381bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5382bc77032bSmrgthen :
5383bc77032bSmrg  printf %s "(cached) " >&6
5384bc77032bSmrgelse $as_nop
5385f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386f931275dSmrg/* end confdefs.h.  */
5387f931275dSmrgint i;
5388f931275dSmrg_ACEOF
5389bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5390bc77032bSmrgthen :
5391f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5392bc77032bSmrgelse $as_nop
5393f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
539489d09728Smrgfi
5395bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
539689d09728Smrgfi
5397bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5398bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5399c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5400f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
540189d09728Smrgfi
540289d09728Smrg
5403c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5404c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5405f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5406f931275dSmrg	fi
5407f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5408bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5409bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5410bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5411bc77032bSmrgthen :
5412bc77032bSmrg  printf %s "(cached) " >&6
5413bc77032bSmrgelse $as_nop
5414f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415f931275dSmrg/* end confdefs.h.  */
5416f931275dSmrgint i;
5417f931275dSmrg_ACEOF
5418bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5419bc77032bSmrgthen :
5420f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5421bc77032bSmrgelse $as_nop
5422f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5423f931275dSmrgfi
5424bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5425f931275dSmrgfi
5426bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5427bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5428c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5429f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5430f931275dSmrgfi
5431f931275dSmrg
5432f931275dSmrgfound="no"
5433f931275dSmrg
5434f931275dSmrg	if test $found = "no" ; then
5435c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5436f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5437f931275dSmrg		fi
5438f931275dSmrg
5439c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5440f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5441f931275dSmrg		fi
5442f931275dSmrg
5443c6a6acfbSmrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
5444f931275dSmrg
5445bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5446bc77032bSmrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5447c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5448bc77032bSmrg		if eval test \${$cacheid+y}
5449bc77032bSmrgthen :
5450bc77032bSmrg  printf %s "(cached) " >&6
5451bc77032bSmrgelse $as_nop
5452f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453f931275dSmrg/* end confdefs.h.  */
5454f931275dSmrgint i;
5455f931275dSmrgint
5456bc77032bSmrgmain (void)
5457f931275dSmrg{
5458f931275dSmrg
5459f931275dSmrg  ;
5460f931275dSmrg  return 0;
5461f931275dSmrg}
5462f931275dSmrg_ACEOF
5463bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5464bc77032bSmrgthen :
5465c6a6acfbSmrg  eval $cacheid=yes
5466bc77032bSmrgelse $as_nop
5467c6a6acfbSmrg  eval $cacheid=no
5468f931275dSmrgfi
5469bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5470f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
5471f931275dSmrgfi
5472f931275dSmrg
5473f931275dSmrg
5474f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5475f931275dSmrg
5476c6a6acfbSmrg		eval supported=\$$cacheid
5477bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5478bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5479f931275dSmrg		if test "$supported" = "yes" ; then
5480c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5481f931275dSmrg			found="yes"
5482f931275dSmrg		fi
5483f931275dSmrg	fi
5484f931275dSmrg
5485f931275dSmrg
5486f931275dSmrg
5487f931275dSmrg
5488f931275dSmrg
5489f931275dSmrg
5490f931275dSmrg
5491c6a6acfbSmrg
5492c6a6acfbSmrg
5493c6a6acfbSmrg
5494c6a6acfbSmrg
5495c6a6acfbSmrg
5496c6a6acfbSmrg
5497c6a6acfbSmrg
5498c6a6acfbSmrg
5499f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5500f931275dSmrg
5501c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5502f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5503bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5504bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5505bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5506bc77032bSmrgthen :
5507bc77032bSmrg  printf %s "(cached) " >&6
5508bc77032bSmrgelse $as_nop
5509f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510f931275dSmrg/* end confdefs.h.  */
5511f931275dSmrgint i;
5512f931275dSmrg_ACEOF
5513bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5514bc77032bSmrgthen :
5515f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5516bc77032bSmrgelse $as_nop
5517f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5518f931275dSmrgfi
5519bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5520f931275dSmrgfi
5521bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5522bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5523c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5524f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5525f931275dSmrgfi
5526f931275dSmrg
5527c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5528c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5529f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5530f931275dSmrg	fi
5531f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5532bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5533bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5534bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5535bc77032bSmrgthen :
5536bc77032bSmrg  printf %s "(cached) " >&6
5537bc77032bSmrgelse $as_nop
5538f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539f931275dSmrg/* end confdefs.h.  */
5540f931275dSmrgint i;
5541f931275dSmrg_ACEOF
5542bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5543bc77032bSmrgthen :
5544f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5545bc77032bSmrgelse $as_nop
5546f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5547f931275dSmrgfi
5548bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5549f931275dSmrgfi
5550bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5551bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5552c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5553f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5554f931275dSmrgfi
5555f931275dSmrg
5556f931275dSmrgfound="no"
5557f931275dSmrg
5558f931275dSmrg	if test $found = "no" ; then
5559c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5560f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5561f931275dSmrg		fi
5562f931275dSmrg
5563c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5564f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5565f931275dSmrg		fi
5566f931275dSmrg
5567c6a6acfbSmrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
5568f931275dSmrg
5569bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5570bc77032bSmrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5571c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5572bc77032bSmrg		if eval test \${$cacheid+y}
5573bc77032bSmrgthen :
5574bc77032bSmrg  printf %s "(cached) " >&6
5575bc77032bSmrgelse $as_nop
5576f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577f931275dSmrg/* end confdefs.h.  */
5578f931275dSmrgint i;
5579f931275dSmrgint
5580bc77032bSmrgmain (void)
5581f931275dSmrg{
5582f931275dSmrg
5583f931275dSmrg  ;
5584f931275dSmrg  return 0;
5585f931275dSmrg}
5586f931275dSmrg_ACEOF
5587bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5588bc77032bSmrgthen :
5589c6a6acfbSmrg  eval $cacheid=yes
5590bc77032bSmrgelse $as_nop
5591c6a6acfbSmrg  eval $cacheid=no
5592f931275dSmrgfi
5593bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5594f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
5595f931275dSmrgfi
5596f931275dSmrg
5597f931275dSmrg
5598f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5599f931275dSmrg
5600c6a6acfbSmrg		eval supported=\$$cacheid
5601bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5602bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5603f931275dSmrg		if test "$supported" = "yes" ; then
5604c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5605f931275dSmrg			found="yes"
5606f931275dSmrg		fi
5607f931275dSmrg	fi
5608f931275dSmrg
5609f931275dSmrg
5610f931275dSmrg
5611f931275dSmrg
5612f931275dSmrg
5613f931275dSmrg
5614f931275dSmrg
5615c6a6acfbSmrg
5616c6a6acfbSmrg
5617c6a6acfbSmrg
5618c6a6acfbSmrg
5619c6a6acfbSmrg
5620c6a6acfbSmrg
5621c6a6acfbSmrg
5622c6a6acfbSmrg
5623f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5624f931275dSmrg
5625c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5626f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5627bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5628bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5629bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5630bc77032bSmrgthen :
5631bc77032bSmrg  printf %s "(cached) " >&6
5632bc77032bSmrgelse $as_nop
5633f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634f931275dSmrg/* end confdefs.h.  */
5635f931275dSmrgint i;
5636f931275dSmrg_ACEOF
5637bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5638bc77032bSmrgthen :
5639f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5640bc77032bSmrgelse $as_nop
5641f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5642f931275dSmrgfi
5643bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5644f931275dSmrgfi
5645bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5646bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5647c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5648f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5649f931275dSmrgfi
5650f931275dSmrg
5651c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5652c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5653f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5654f931275dSmrg	fi
5655f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5656bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5657bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5658bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5659bc77032bSmrgthen :
5660bc77032bSmrg  printf %s "(cached) " >&6
5661bc77032bSmrgelse $as_nop
5662f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663f931275dSmrg/* end confdefs.h.  */
5664f931275dSmrgint i;
5665f931275dSmrg_ACEOF
5666bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5667bc77032bSmrgthen :
5668f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5669bc77032bSmrgelse $as_nop
5670f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5671f931275dSmrgfi
5672bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5673f931275dSmrgfi
5674bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5675bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5676c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5677f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5678f931275dSmrgfi
5679f931275dSmrg
5680f931275dSmrgfound="no"
5681f931275dSmrg
5682f931275dSmrg	if test $found = "no" ; then
5683c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5684f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5685f931275dSmrg		fi
5686f931275dSmrg
5687c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5688f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5689f931275dSmrg		fi
5690f931275dSmrg
5691c6a6acfbSmrg		CFLAGS="$CFLAGS -Wnested-externs"
5692f931275dSmrg
5693bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5694bc77032bSmrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
5695c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wnested_externs
5696bc77032bSmrg		if eval test \${$cacheid+y}
5697bc77032bSmrgthen :
5698bc77032bSmrg  printf %s "(cached) " >&6
5699bc77032bSmrgelse $as_nop
5700f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701f931275dSmrg/* end confdefs.h.  */
5702f931275dSmrgint i;
5703f931275dSmrgint
5704bc77032bSmrgmain (void)
5705f931275dSmrg{
5706f931275dSmrg
5707f931275dSmrg  ;
5708f931275dSmrg  return 0;
5709f931275dSmrg}
5710f931275dSmrg_ACEOF
5711bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5712bc77032bSmrgthen :
5713c6a6acfbSmrg  eval $cacheid=yes
5714bc77032bSmrgelse $as_nop
5715c6a6acfbSmrg  eval $cacheid=no
5716f931275dSmrgfi
5717bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5718f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
5719f931275dSmrgfi
5720f931275dSmrg
5721f931275dSmrg
5722f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5723f931275dSmrg
5724c6a6acfbSmrg		eval supported=\$$cacheid
5725bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5726bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5727f931275dSmrg		if test "$supported" = "yes" ; then
5728c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5729f931275dSmrg			found="yes"
5730f931275dSmrg		fi
5731f931275dSmrg	fi
5732f931275dSmrg
5733f931275dSmrg
5734f931275dSmrg
5735f931275dSmrg
5736f931275dSmrg
5737f931275dSmrg
5738f931275dSmrg
5739c6a6acfbSmrg
5740c6a6acfbSmrg
5741c6a6acfbSmrg
5742c6a6acfbSmrg
5743c6a6acfbSmrg
5744c6a6acfbSmrg
5745c6a6acfbSmrg
5746c6a6acfbSmrg
5747f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5748f931275dSmrg
5749c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5750f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5751bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5752bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5753bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5754bc77032bSmrgthen :
5755bc77032bSmrg  printf %s "(cached) " >&6
5756bc77032bSmrgelse $as_nop
5757f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758f931275dSmrg/* end confdefs.h.  */
5759f931275dSmrgint i;
5760f931275dSmrg_ACEOF
5761bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5762bc77032bSmrgthen :
5763f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5764bc77032bSmrgelse $as_nop
5765f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5766f931275dSmrgfi
5767bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5768f931275dSmrgfi
5769bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5770bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5771c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5772f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5773f931275dSmrgfi
5774f931275dSmrg
5775c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5776c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5777f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5778f931275dSmrg	fi
5779f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5780bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5781bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5782bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5783bc77032bSmrgthen :
5784bc77032bSmrg  printf %s "(cached) " >&6
5785bc77032bSmrgelse $as_nop
5786f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787f931275dSmrg/* end confdefs.h.  */
5788f931275dSmrgint i;
5789f931275dSmrg_ACEOF
5790bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5791bc77032bSmrgthen :
5792f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5793bc77032bSmrgelse $as_nop
5794f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5795f931275dSmrgfi
5796bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5797f931275dSmrgfi
5798bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5799bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5800c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5801f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5802f931275dSmrgfi
5803f931275dSmrg
5804f931275dSmrgfound="no"
5805f931275dSmrg
5806f931275dSmrg	if test $found = "no" ; then
5807c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5808f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5809f931275dSmrg		fi
5810f931275dSmrg
5811c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5812f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5813f931275dSmrg		fi
5814f931275dSmrg
5815c6a6acfbSmrg		CFLAGS="$CFLAGS -Wbad-function-cast"
5816f931275dSmrg
5817bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5818bc77032bSmrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5819c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5820bc77032bSmrg		if eval test \${$cacheid+y}
5821bc77032bSmrgthen :
5822bc77032bSmrg  printf %s "(cached) " >&6
5823bc77032bSmrgelse $as_nop
5824f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825f931275dSmrg/* end confdefs.h.  */
5826f931275dSmrgint i;
5827f931275dSmrgint
5828bc77032bSmrgmain (void)
5829f931275dSmrg{
5830f931275dSmrg
5831f931275dSmrg  ;
5832f931275dSmrg  return 0;
5833f931275dSmrg}
5834f931275dSmrg_ACEOF
5835bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5836bc77032bSmrgthen :
5837c6a6acfbSmrg  eval $cacheid=yes
5838bc77032bSmrgelse $as_nop
5839c6a6acfbSmrg  eval $cacheid=no
5840f931275dSmrgfi
5841bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5842f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
5843f931275dSmrgfi
5844f931275dSmrg
5845f931275dSmrg
5846f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5847f931275dSmrg
5848c6a6acfbSmrg		eval supported=\$$cacheid
5849bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5850bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5851f931275dSmrg		if test "$supported" = "yes" ; then
5852c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5853f931275dSmrg			found="yes"
5854f931275dSmrg		fi
5855f931275dSmrg	fi
5856f931275dSmrg
5857f931275dSmrg
5858f931275dSmrg
5859f931275dSmrg
5860f931275dSmrg
5861f931275dSmrg
5862f931275dSmrg
5863f931275dSmrg
5864f931275dSmrg
5865f931275dSmrg
5866f931275dSmrg
5867f931275dSmrg
5868f931275dSmrg
5869f931275dSmrg
5870f931275dSmrg
5871f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5872f931275dSmrg
5873c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5874f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5875bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5876bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5877bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5878bc77032bSmrgthen :
5879bc77032bSmrg  printf %s "(cached) " >&6
5880bc77032bSmrgelse $as_nop
5881f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882f931275dSmrg/* end confdefs.h.  */
5883f931275dSmrgint i;
5884f931275dSmrg_ACEOF
5885bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5886bc77032bSmrgthen :
5887f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5888bc77032bSmrgelse $as_nop
5889f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5890f931275dSmrgfi
5891bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5892f931275dSmrgfi
5893bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5894bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5895c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5896f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5897f931275dSmrgfi
5898f931275dSmrg
5899c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5900c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5901f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5902f931275dSmrg	fi
5903f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5904bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5905bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5906bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5907bc77032bSmrgthen :
5908bc77032bSmrg  printf %s "(cached) " >&6
5909bc77032bSmrgelse $as_nop
5910f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911f931275dSmrg/* end confdefs.h.  */
5912f931275dSmrgint i;
5913f931275dSmrg_ACEOF
5914bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5915bc77032bSmrgthen :
5916f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5917bc77032bSmrgelse $as_nop
5918f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5919f931275dSmrgfi
5920bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5921f931275dSmrgfi
5922bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5923bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5924c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5925f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5926f931275dSmrgfi
5927f931275dSmrg
5928f931275dSmrgfound="no"
5929f931275dSmrg
5930f931275dSmrg	if test $found = "no" ; then
5931c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5932f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5933f931275dSmrg		fi
5934f931275dSmrg
5935c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5936f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5937f931275dSmrg		fi
5938f931275dSmrg
5939f931275dSmrg		CFLAGS="$CFLAGS -Wold-style-definition"
5940f931275dSmrg
5941bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5942bc77032bSmrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5943c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
5944bc77032bSmrg		if eval test \${$cacheid+y}
5945bc77032bSmrgthen :
5946bc77032bSmrg  printf %s "(cached) " >&6
5947bc77032bSmrgelse $as_nop
5948f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949f931275dSmrg/* end confdefs.h.  */
5950f931275dSmrgint i;
5951f931275dSmrgint
5952bc77032bSmrgmain (void)
5953f931275dSmrg{
5954f931275dSmrg
5955f931275dSmrg  ;
5956f931275dSmrg  return 0;
5957f931275dSmrg}
5958f931275dSmrg_ACEOF
5959bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5960bc77032bSmrgthen :
5961c6a6acfbSmrg  eval $cacheid=yes
5962bc77032bSmrgelse $as_nop
5963c6a6acfbSmrg  eval $cacheid=no
5964f931275dSmrgfi
5965bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5966f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
5967f931275dSmrgfi
5968f931275dSmrg
5969f931275dSmrg
5970f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5971f931275dSmrg
5972c6a6acfbSmrg		eval supported=\$$cacheid
5973bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5974bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5975f931275dSmrg		if test "$supported" = "yes" ; then
5976f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5977f931275dSmrg			found="yes"
5978f931275dSmrg		fi
5979f931275dSmrg	fi
5980f931275dSmrg
5981c6a6acfbSmrg	if test $found = "no" ; then
5982c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5983c6a6acfbSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5984c6a6acfbSmrg		fi
5985c6a6acfbSmrg
5986c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5987c6a6acfbSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5988c6a6acfbSmrg		fi
5989c6a6acfbSmrg
5990c6a6acfbSmrg		CFLAGS="$CFLAGS -fd"
5991c6a6acfbSmrg
5992bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5993bc77032bSmrgprintf %s "checking if $CC supports -fd... " >&6; }
5994c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__fd
5995bc77032bSmrg		if eval test \${$cacheid+y}
5996bc77032bSmrgthen :
5997bc77032bSmrg  printf %s "(cached) " >&6
5998bc77032bSmrgelse $as_nop
5999c6a6acfbSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000c6a6acfbSmrg/* end confdefs.h.  */
6001c6a6acfbSmrgint i;
6002c6a6acfbSmrgint
6003bc77032bSmrgmain (void)
6004c6a6acfbSmrg{
6005c6a6acfbSmrg
6006c6a6acfbSmrg  ;
6007c6a6acfbSmrg  return 0;
6008c6a6acfbSmrg}
6009c6a6acfbSmrg_ACEOF
6010bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6011bc77032bSmrgthen :
6012c6a6acfbSmrg  eval $cacheid=yes
6013bc77032bSmrgelse $as_nop
6014c6a6acfbSmrg  eval $cacheid=no
6015c6a6acfbSmrgfi
6016bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6017c6a6acfbSmrg    conftest$ac_exeext conftest.$ac_ext
6018c6a6acfbSmrgfi
6019c6a6acfbSmrg
6020c6a6acfbSmrg
6021c6a6acfbSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6022c6a6acfbSmrg
6023c6a6acfbSmrg		eval supported=\$$cacheid
6024bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6025bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6026c6a6acfbSmrg		if test "$supported" = "yes" ; then
6027c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
6028c6a6acfbSmrg			found="yes"
6029c6a6acfbSmrg		fi
6030c6a6acfbSmrg	fi
6031c6a6acfbSmrg
6032c6a6acfbSmrg
6033c6a6acfbSmrg
6034c6a6acfbSmrg
6035c6a6acfbSmrg
6036c6a6acfbSmrg
6037c6a6acfbSmrg
6038c6a6acfbSmrg
6039c6a6acfbSmrg
6040f931275dSmrg
6041f931275dSmrg
6042f931275dSmrg
6043f931275dSmrg
6044f931275dSmrg
6045f931275dSmrg
6046f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6047f931275dSmrg
6048c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6049f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6050bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6051bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6052bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6053bc77032bSmrgthen :
6054bc77032bSmrg  printf %s "(cached) " >&6
6055bc77032bSmrgelse $as_nop
6056f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057f931275dSmrg/* end confdefs.h.  */
6058f931275dSmrgint i;
6059f931275dSmrg_ACEOF
6060bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6061bc77032bSmrgthen :
6062f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6063bc77032bSmrgelse $as_nop
6064f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6065f931275dSmrgfi
6066bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6067f931275dSmrgfi
6068bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6069bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6070c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6071f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6072f931275dSmrgfi
6073f931275dSmrg
6074c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6075c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6076f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6077f931275dSmrg	fi
6078f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6079bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6080bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6081bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6082bc77032bSmrgthen :
6083bc77032bSmrg  printf %s "(cached) " >&6
6084bc77032bSmrgelse $as_nop
6085f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086f931275dSmrg/* end confdefs.h.  */
6087f931275dSmrgint i;
6088f931275dSmrg_ACEOF
6089bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6090bc77032bSmrgthen :
6091f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6092bc77032bSmrgelse $as_nop
6093f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6094f931275dSmrgfi
6095bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6096f931275dSmrgfi
6097bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6098bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6099c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6100f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6101f931275dSmrgfi
6102f931275dSmrg
6103f931275dSmrgfound="no"
6104f931275dSmrg
6105f931275dSmrg	if test $found = "no" ; then
6106c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6107f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6108f931275dSmrg		fi
6109f931275dSmrg
6110c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6111f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6112f931275dSmrg		fi
6113f931275dSmrg
6114f931275dSmrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6115f931275dSmrg
6116bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6117bc77032bSmrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6118c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6119bc77032bSmrg		if eval test \${$cacheid+y}
6120bc77032bSmrgthen :
6121bc77032bSmrg  printf %s "(cached) " >&6
6122bc77032bSmrgelse $as_nop
6123f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124f931275dSmrg/* end confdefs.h.  */
6125f931275dSmrgint i;
6126f931275dSmrgint
6127bc77032bSmrgmain (void)
6128f931275dSmrg{
6129f931275dSmrg
6130f931275dSmrg  ;
6131f931275dSmrg  return 0;
6132f931275dSmrg}
6133f931275dSmrg_ACEOF
6134bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6135bc77032bSmrgthen :
6136c6a6acfbSmrg  eval $cacheid=yes
6137bc77032bSmrgelse $as_nop
6138c6a6acfbSmrg  eval $cacheid=no
6139f931275dSmrgfi
6140bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6141f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
6142f931275dSmrgfi
6143f931275dSmrg
6144f931275dSmrg
6145f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6146f931275dSmrg
6147c6a6acfbSmrg		eval supported=\$$cacheid
6148bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6149bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6150f931275dSmrg		if test "$supported" = "yes" ; then
6151f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6152f931275dSmrg			found="yes"
6153f931275dSmrg		fi
6154f931275dSmrg	fi
6155f931275dSmrg
6156f931275dSmrg
6157f931275dSmrg
6158c6a6acfbSmrg
6159c6a6acfbSmrg
6160f931275dSmrg# This chunk adds additional warnings that could catch undesired effects.
6161f931275dSmrg
6162f931275dSmrg
6163f931275dSmrg
6164f931275dSmrg
6165f931275dSmrg
6166c6a6acfbSmrg
6167c6a6acfbSmrg
6168c6a6acfbSmrg
6169c6a6acfbSmrg
6170c6a6acfbSmrg
6171c6a6acfbSmrg
6172c6a6acfbSmrg
6173c6a6acfbSmrg
6174f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6175f931275dSmrg
6176c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6177f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6178bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6179bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6180bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6181bc77032bSmrgthen :
6182bc77032bSmrg  printf %s "(cached) " >&6
6183bc77032bSmrgelse $as_nop
6184f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185f931275dSmrg/* end confdefs.h.  */
6186f931275dSmrgint i;
6187f931275dSmrg_ACEOF
6188bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6189bc77032bSmrgthen :
6190f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6191bc77032bSmrgelse $as_nop
6192f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6193f931275dSmrgfi
6194bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6195f931275dSmrgfi
6196bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6197bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6198c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6199f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6200f931275dSmrgfi
6201f931275dSmrg
6202c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6203c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6204f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6205f931275dSmrg	fi
6206f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6207bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6208bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6209bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6210bc77032bSmrgthen :
6211bc77032bSmrg  printf %s "(cached) " >&6
6212bc77032bSmrgelse $as_nop
6213f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214f931275dSmrg/* end confdefs.h.  */
6215f931275dSmrgint i;
6216f931275dSmrg_ACEOF
6217bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6218bc77032bSmrgthen :
6219f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6220bc77032bSmrgelse $as_nop
6221f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6222f931275dSmrgfi
6223bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6224f931275dSmrgfi
6225bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6226bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6227c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6228f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6229f931275dSmrgfi
6230f931275dSmrg
6231f931275dSmrgfound="no"
6232f931275dSmrg
6233f931275dSmrg	if test $found = "no" ; then
6234c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6235f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6236f931275dSmrg		fi
6237f931275dSmrg
6238c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6239f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6240f931275dSmrg		fi
6241f931275dSmrg
6242f931275dSmrg		CFLAGS="$CFLAGS -Wunused"
6243f931275dSmrg
6244bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6245bc77032bSmrgprintf %s "checking if $CC supports -Wunused... " >&6; }
6246c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wunused
6247bc77032bSmrg		if eval test \${$cacheid+y}
6248bc77032bSmrgthen :
6249bc77032bSmrg  printf %s "(cached) " >&6
6250bc77032bSmrgelse $as_nop
6251f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252f931275dSmrg/* end confdefs.h.  */
6253f931275dSmrgint i;
6254f931275dSmrgint
6255bc77032bSmrgmain (void)
6256f931275dSmrg{
6257f931275dSmrg
6258f931275dSmrg  ;
6259f931275dSmrg  return 0;
6260f931275dSmrg}
6261f931275dSmrg_ACEOF
6262bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6263bc77032bSmrgthen :
6264c6a6acfbSmrg  eval $cacheid=yes
6265bc77032bSmrgelse $as_nop
6266c6a6acfbSmrg  eval $cacheid=no
6267f931275dSmrgfi
6268bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6269f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
6270f931275dSmrgfi
6271f931275dSmrg
6272f931275dSmrg
6273f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6274f931275dSmrg
6275c6a6acfbSmrg		eval supported=\$$cacheid
6276bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6277bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6278f931275dSmrg		if test "$supported" = "yes" ; then
6279f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6280f931275dSmrg			found="yes"
6281f931275dSmrg		fi
6282f931275dSmrg	fi
6283f931275dSmrg
6284f931275dSmrg
6285f931275dSmrg
6286f931275dSmrg
6287f931275dSmrg
6288f931275dSmrg
6289f931275dSmrg
6290c6a6acfbSmrg
6291c6a6acfbSmrg
6292c6a6acfbSmrg
6293c6a6acfbSmrg
6294c6a6acfbSmrg
6295c6a6acfbSmrg
6296c6a6acfbSmrg
6297c6a6acfbSmrg
6298f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6299f931275dSmrg
6300c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6301f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6302bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6303bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6304bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6305bc77032bSmrgthen :
6306bc77032bSmrg  printf %s "(cached) " >&6
6307bc77032bSmrgelse $as_nop
6308f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309f931275dSmrg/* end confdefs.h.  */
6310f931275dSmrgint i;
6311f931275dSmrg_ACEOF
6312bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6313bc77032bSmrgthen :
6314f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6315bc77032bSmrgelse $as_nop
6316f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6317f931275dSmrgfi
6318bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6319f931275dSmrgfi
6320bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6321bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6322c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6323f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6324f931275dSmrgfi
6325f931275dSmrg
6326c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6327c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6328f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6329f931275dSmrg	fi
6330f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6331bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6332bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6333bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6334bc77032bSmrgthen :
6335bc77032bSmrg  printf %s "(cached) " >&6
6336bc77032bSmrgelse $as_nop
6337f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338f931275dSmrg/* end confdefs.h.  */
6339f931275dSmrgint i;
6340f931275dSmrg_ACEOF
6341bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6342bc77032bSmrgthen :
6343f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6344bc77032bSmrgelse $as_nop
6345f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6346f931275dSmrgfi
6347bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6348f931275dSmrgfi
6349bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6350bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6351c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6352f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6353f931275dSmrgfi
6354f931275dSmrg
6355f931275dSmrgfound="no"
6356f931275dSmrg
6357f931275dSmrg	if test $found = "no" ; then
6358c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6359f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6360f931275dSmrg		fi
6361f931275dSmrg
6362c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6363f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6364f931275dSmrg		fi
6365f931275dSmrg
6366f931275dSmrg		CFLAGS="$CFLAGS -Wuninitialized"
6367f931275dSmrg
6368bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6369bc77032bSmrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
6370c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wuninitialized
6371bc77032bSmrg		if eval test \${$cacheid+y}
6372bc77032bSmrgthen :
6373bc77032bSmrg  printf %s "(cached) " >&6
6374bc77032bSmrgelse $as_nop
6375f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376f931275dSmrg/* end confdefs.h.  */
6377f931275dSmrgint i;
6378f931275dSmrgint
6379bc77032bSmrgmain (void)
6380f931275dSmrg{
6381f931275dSmrg
6382f931275dSmrg  ;
6383f931275dSmrg  return 0;
6384f931275dSmrg}
6385f931275dSmrg_ACEOF
6386bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6387bc77032bSmrgthen :
6388c6a6acfbSmrg  eval $cacheid=yes
6389bc77032bSmrgelse $as_nop
6390c6a6acfbSmrg  eval $cacheid=no
6391f931275dSmrgfi
6392bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6393f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
6394f931275dSmrgfi
6395f931275dSmrg
6396f931275dSmrg
6397f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6398f931275dSmrg
6399c6a6acfbSmrg		eval supported=\$$cacheid
6400bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6401bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6402f931275dSmrg		if test "$supported" = "yes" ; then
6403f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6404f931275dSmrg			found="yes"
6405f931275dSmrg		fi
6406f931275dSmrg	fi
6407f931275dSmrg
6408f931275dSmrg
6409f931275dSmrg
6410f931275dSmrg
6411f931275dSmrg
6412f931275dSmrg
6413f931275dSmrg
6414c6a6acfbSmrg
6415c6a6acfbSmrg
6416c6a6acfbSmrg
6417c6a6acfbSmrg
6418c6a6acfbSmrg
6419c6a6acfbSmrg
6420c6a6acfbSmrg
6421c6a6acfbSmrg
6422f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6423f931275dSmrg
6424c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6425f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6426bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6427bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6428bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6429bc77032bSmrgthen :
6430bc77032bSmrg  printf %s "(cached) " >&6
6431bc77032bSmrgelse $as_nop
6432f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433f931275dSmrg/* end confdefs.h.  */
6434f931275dSmrgint i;
6435f931275dSmrg_ACEOF
6436bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6437bc77032bSmrgthen :
6438f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6439bc77032bSmrgelse $as_nop
6440f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6441f931275dSmrgfi
6442bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6443f931275dSmrgfi
6444bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6445bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6446c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6447f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6448f931275dSmrgfi
6449f931275dSmrg
6450c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6451c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6452f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6453f931275dSmrg	fi
6454f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6455bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6456bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6457bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6458bc77032bSmrgthen :
6459bc77032bSmrg  printf %s "(cached) " >&6
6460bc77032bSmrgelse $as_nop
6461f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462f931275dSmrg/* end confdefs.h.  */
6463f931275dSmrgint i;
6464f931275dSmrg_ACEOF
6465bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6466bc77032bSmrgthen :
6467f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6468bc77032bSmrgelse $as_nop
6469f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6470f931275dSmrgfi
6471bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6472f931275dSmrgfi
6473bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6474bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6475c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6476f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6477f931275dSmrgfi
6478f931275dSmrg
6479f931275dSmrgfound="no"
6480f931275dSmrg
6481f931275dSmrg	if test $found = "no" ; then
6482c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6483f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6484f931275dSmrg		fi
6485f931275dSmrg
6486c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6487f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6488f931275dSmrg		fi
6489f931275dSmrg
6490f931275dSmrg		CFLAGS="$CFLAGS -Wshadow"
6491f931275dSmrg
6492bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6493bc77032bSmrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
6494c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wshadow
6495bc77032bSmrg		if eval test \${$cacheid+y}
6496bc77032bSmrgthen :
6497bc77032bSmrg  printf %s "(cached) " >&6
6498bc77032bSmrgelse $as_nop
6499f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500f931275dSmrg/* end confdefs.h.  */
6501f931275dSmrgint i;
6502f931275dSmrgint
6503bc77032bSmrgmain (void)
6504f931275dSmrg{
6505f931275dSmrg
6506f931275dSmrg  ;
6507f931275dSmrg  return 0;
6508f931275dSmrg}
6509f931275dSmrg_ACEOF
6510bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6511bc77032bSmrgthen :
6512c6a6acfbSmrg  eval $cacheid=yes
6513bc77032bSmrgelse $as_nop
6514c6a6acfbSmrg  eval $cacheid=no
6515f931275dSmrgfi
6516bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6517f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
6518f931275dSmrgfi
6519f931275dSmrg
6520f931275dSmrg
6521f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6522f931275dSmrg
6523c6a6acfbSmrg		eval supported=\$$cacheid
6524bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6525bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6526f931275dSmrg		if test "$supported" = "yes" ; then
6527f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6528f931275dSmrg			found="yes"
6529f931275dSmrg		fi
6530f931275dSmrg	fi
6531f931275dSmrg
6532f931275dSmrg
6533f931275dSmrg
6534f931275dSmrg
6535f931275dSmrg
6536f931275dSmrg
6537f931275dSmrg
6538c6a6acfbSmrg
6539c6a6acfbSmrg
6540c6a6acfbSmrg
6541c6a6acfbSmrg
6542c6a6acfbSmrg
6543c6a6acfbSmrg
6544c6a6acfbSmrg
6545c6a6acfbSmrg
6546f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6547f931275dSmrg
6548c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6549f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6550bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6551bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6552bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6553bc77032bSmrgthen :
6554bc77032bSmrg  printf %s "(cached) " >&6
6555bc77032bSmrgelse $as_nop
6556f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557f931275dSmrg/* end confdefs.h.  */
6558f931275dSmrgint i;
6559f931275dSmrg_ACEOF
6560bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6561bc77032bSmrgthen :
6562f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6563bc77032bSmrgelse $as_nop
6564f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6565f931275dSmrgfi
6566bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6567f931275dSmrgfi
6568bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6569bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6570c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6571f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6572f931275dSmrgfi
6573f931275dSmrg
6574c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6575c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6576f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6577f931275dSmrg	fi
6578f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6579bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6580bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6581bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6582bc77032bSmrgthen :
6583bc77032bSmrg  printf %s "(cached) " >&6
6584bc77032bSmrgelse $as_nop
6585f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586f931275dSmrg/* end confdefs.h.  */
6587f931275dSmrgint i;
6588f931275dSmrg_ACEOF
6589bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6590bc77032bSmrgthen :
6591f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6592bc77032bSmrgelse $as_nop
6593f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6594f931275dSmrgfi
6595bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6596f931275dSmrgfi
6597bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6598bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6599c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6600f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6601f931275dSmrgfi
6602f931275dSmrg
6603f931275dSmrgfound="no"
6604f931275dSmrg
6605f931275dSmrg	if test $found = "no" ; then
6606c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6607f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6608f931275dSmrg		fi
6609f931275dSmrg
6610c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6611f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6612f931275dSmrg		fi
6613f931275dSmrg
6614c6a6acfbSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
6615f931275dSmrg
6616bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6617bc77032bSmrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6618c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6619bc77032bSmrg		if eval test \${$cacheid+y}
6620bc77032bSmrgthen :
6621bc77032bSmrg  printf %s "(cached) " >&6
6622bc77032bSmrgelse $as_nop
6623f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624f931275dSmrg/* end confdefs.h.  */
6625f931275dSmrgint i;
6626f931275dSmrgint
6627bc77032bSmrgmain (void)
6628f931275dSmrg{
6629f931275dSmrg
6630f931275dSmrg  ;
6631f931275dSmrg  return 0;
6632f931275dSmrg}
6633f931275dSmrg_ACEOF
6634bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6635bc77032bSmrgthen :
6636c6a6acfbSmrg  eval $cacheid=yes
6637bc77032bSmrgelse $as_nop
6638c6a6acfbSmrg  eval $cacheid=no
6639f931275dSmrgfi
6640bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6641f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
6642f931275dSmrgfi
6643f931275dSmrg
6644f931275dSmrg
6645f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6646f931275dSmrg
6647c6a6acfbSmrg		eval supported=\$$cacheid
6648bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6649bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6650f931275dSmrg		if test "$supported" = "yes" ; then
6651c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6652f931275dSmrg			found="yes"
6653f931275dSmrg		fi
6654f931275dSmrg	fi
6655f931275dSmrg
6656f931275dSmrg
6657f931275dSmrg
6658f931275dSmrg
6659f931275dSmrg
6660f931275dSmrg
6661f931275dSmrg
6662c6a6acfbSmrg
6663c6a6acfbSmrg
6664c6a6acfbSmrg
6665c6a6acfbSmrg
6666c6a6acfbSmrg
6667c6a6acfbSmrg
6668c6a6acfbSmrg
6669c6a6acfbSmrg
6670f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6671f931275dSmrg
6672c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6673f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6674bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6675bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6676bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6677bc77032bSmrgthen :
6678bc77032bSmrg  printf %s "(cached) " >&6
6679bc77032bSmrgelse $as_nop
6680f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681f931275dSmrg/* end confdefs.h.  */
6682f931275dSmrgint i;
6683f931275dSmrg_ACEOF
6684bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6685bc77032bSmrgthen :
6686f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6687bc77032bSmrgelse $as_nop
6688f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6689f931275dSmrgfi
6690bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6691f931275dSmrgfi
6692bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6693bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6694c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6695f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6696f931275dSmrgfi
6697f931275dSmrg
6698c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6699c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6700f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6701f931275dSmrg	fi
6702f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6703bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6704bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6705bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6706bc77032bSmrgthen :
6707bc77032bSmrg  printf %s "(cached) " >&6
6708bc77032bSmrgelse $as_nop
6709f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710f931275dSmrg/* end confdefs.h.  */
6711f931275dSmrgint i;
6712f931275dSmrg_ACEOF
6713bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6714bc77032bSmrgthen :
6715f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6716bc77032bSmrgelse $as_nop
6717f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6718f931275dSmrgfi
6719bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6720f931275dSmrgfi
6721bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6722bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6723c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6724f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6725f931275dSmrgfi
6726f931275dSmrg
6727f931275dSmrgfound="no"
6728f931275dSmrg
6729f931275dSmrg	if test $found = "no" ; then
6730c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6731f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6732f931275dSmrg		fi
6733f931275dSmrg
6734c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6735f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6736f931275dSmrg		fi
6737f931275dSmrg
6738c6a6acfbSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6739f931275dSmrg
6740bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6741bc77032bSmrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6742c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6743bc77032bSmrg		if eval test \${$cacheid+y}
6744bc77032bSmrgthen :
6745bc77032bSmrg  printf %s "(cached) " >&6
6746bc77032bSmrgelse $as_nop
6747f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748f931275dSmrg/* end confdefs.h.  */
6749f931275dSmrgint i;
6750f931275dSmrgint
6751bc77032bSmrgmain (void)
6752f931275dSmrg{
6753f931275dSmrg
6754f931275dSmrg  ;
6755f931275dSmrg  return 0;
6756f931275dSmrg}
6757f931275dSmrg_ACEOF
6758bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6759bc77032bSmrgthen :
6760c6a6acfbSmrg  eval $cacheid=yes
6761bc77032bSmrgelse $as_nop
6762c6a6acfbSmrg  eval $cacheid=no
6763f931275dSmrgfi
6764bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6765f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
6766f931275dSmrgfi
6767f931275dSmrg
6768f931275dSmrg
6769f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6770f931275dSmrg
6771c6a6acfbSmrg		eval supported=\$$cacheid
6772bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6773bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6774f931275dSmrg		if test "$supported" = "yes" ; then
6775c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6776f931275dSmrg			found="yes"
6777f931275dSmrg		fi
6778f931275dSmrg	fi
6779f931275dSmrg
6780f931275dSmrg
6781f931275dSmrg
6782f931275dSmrg
6783f931275dSmrg
6784f931275dSmrg
6785f931275dSmrg
6786c6a6acfbSmrg
6787c6a6acfbSmrg
6788c6a6acfbSmrg
6789c6a6acfbSmrg
6790c6a6acfbSmrg
6791c6a6acfbSmrg
6792c6a6acfbSmrg
6793c6a6acfbSmrg
6794f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6795f931275dSmrg
6796c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6797f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6798bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6799bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6800bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6801bc77032bSmrgthen :
6802bc77032bSmrg  printf %s "(cached) " >&6
6803bc77032bSmrgelse $as_nop
6804f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805f931275dSmrg/* end confdefs.h.  */
6806f931275dSmrgint i;
6807f931275dSmrg_ACEOF
6808bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6809bc77032bSmrgthen :
6810f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6811bc77032bSmrgelse $as_nop
6812f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6813f931275dSmrgfi
6814bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6815f931275dSmrgfi
6816bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6817bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6818c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6819f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6820f931275dSmrgfi
6821f931275dSmrg
6822c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6823c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6824f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6825f931275dSmrg	fi
6826f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6827bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6828bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6829bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6830bc77032bSmrgthen :
6831bc77032bSmrg  printf %s "(cached) " >&6
6832bc77032bSmrgelse $as_nop
6833f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834f931275dSmrg/* end confdefs.h.  */
6835f931275dSmrgint i;
6836f931275dSmrg_ACEOF
6837bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6838bc77032bSmrgthen :
6839f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6840bc77032bSmrgelse $as_nop
6841f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6842f931275dSmrgfi
6843bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6844f931275dSmrgfi
6845bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6846bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6847c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6848f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6849f931275dSmrgfi
6850f931275dSmrg
6851f931275dSmrgfound="no"
6852f931275dSmrg
6853f931275dSmrg	if test $found = "no" ; then
6854c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6855f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6856f931275dSmrg		fi
6857f931275dSmrg
6858c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6859f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6860f931275dSmrg		fi
6861f931275dSmrg
6862c6a6acfbSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
6863f931275dSmrg
6864bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6865bc77032bSmrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6866c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
6867bc77032bSmrg		if eval test \${$cacheid+y}
6868bc77032bSmrgthen :
6869bc77032bSmrg  printf %s "(cached) " >&6
6870bc77032bSmrgelse $as_nop
6871f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872f931275dSmrg/* end confdefs.h.  */
6873f931275dSmrgint i;
6874f931275dSmrgint
6875bc77032bSmrgmain (void)
6876f931275dSmrg{
6877f931275dSmrg
6878f931275dSmrg  ;
6879f931275dSmrg  return 0;
6880f931275dSmrg}
6881f931275dSmrg_ACEOF
6882bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6883bc77032bSmrgthen :
6884c6a6acfbSmrg  eval $cacheid=yes
6885bc77032bSmrgelse $as_nop
6886c6a6acfbSmrg  eval $cacheid=no
6887f931275dSmrgfi
6888bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6889f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
6890f931275dSmrgfi
6891f931275dSmrg
6892f931275dSmrg
6893f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6894f931275dSmrg
6895c6a6acfbSmrg		eval supported=\$$cacheid
6896bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6897bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6898f931275dSmrg		if test "$supported" = "yes" ; then
6899c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6900f931275dSmrg			found="yes"
6901f931275dSmrg		fi
6902f931275dSmrg	fi
6903f931275dSmrg
6904f931275dSmrg
6905f931275dSmrg
6906f931275dSmrg
6907f931275dSmrg
6908f931275dSmrg
6909f931275dSmrg
6910c6a6acfbSmrg
6911c6a6acfbSmrg
6912c6a6acfbSmrg
6913c6a6acfbSmrg
6914c6a6acfbSmrg
6915c6a6acfbSmrg
6916c6a6acfbSmrg
6917c6a6acfbSmrg
6918f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6919f931275dSmrg
6920c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6921f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6922bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6923bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6924bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6925bc77032bSmrgthen :
6926bc77032bSmrg  printf %s "(cached) " >&6
6927bc77032bSmrgelse $as_nop
6928f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929f931275dSmrg/* end confdefs.h.  */
6930f931275dSmrgint i;
6931f931275dSmrg_ACEOF
6932bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6933bc77032bSmrgthen :
6934f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6935bc77032bSmrgelse $as_nop
6936f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6937f931275dSmrgfi
6938bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6939f931275dSmrgfi
6940bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6941bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6942c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6943f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6944f931275dSmrgfi
6945f931275dSmrg
6946c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6947c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6948f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6949f931275dSmrg	fi
6950f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6951bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6952bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6953bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6954bc77032bSmrgthen :
6955bc77032bSmrg  printf %s "(cached) " >&6
6956bc77032bSmrgelse $as_nop
6957f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958f931275dSmrg/* end confdefs.h.  */
6959f931275dSmrgint i;
6960f931275dSmrg_ACEOF
6961bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6962bc77032bSmrgthen :
6963f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6964bc77032bSmrgelse $as_nop
6965f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6966f931275dSmrgfi
6967bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6968f931275dSmrgfi
6969bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6970bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6971c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6972f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6973f931275dSmrgfi
6974f931275dSmrg
6975f931275dSmrgfound="no"
6976f931275dSmrg
6977f931275dSmrg	if test $found = "no" ; then
6978c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6979f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6980f931275dSmrg		fi
6981f931275dSmrg
6982c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6983f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6984f931275dSmrg		fi
6985f931275dSmrg
6986c6a6acfbSmrg		CFLAGS="$CFLAGS -Wlogical-op"
6987f931275dSmrg
6988bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6989bc77032bSmrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
6990c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wlogical_op
6991bc77032bSmrg		if eval test \${$cacheid+y}
6992bc77032bSmrgthen :
6993bc77032bSmrg  printf %s "(cached) " >&6
6994bc77032bSmrgelse $as_nop
6995f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996f931275dSmrg/* end confdefs.h.  */
6997f931275dSmrgint i;
6998f931275dSmrgint
6999bc77032bSmrgmain (void)
7000f931275dSmrg{
7001f931275dSmrg
7002f931275dSmrg  ;
7003f931275dSmrg  return 0;
7004f931275dSmrg}
7005f931275dSmrg_ACEOF
7006bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7007bc77032bSmrgthen :
7008c6a6acfbSmrg  eval $cacheid=yes
7009bc77032bSmrgelse $as_nop
7010c6a6acfbSmrg  eval $cacheid=no
7011f931275dSmrgfi
7012bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7013f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7014f931275dSmrgfi
7015f931275dSmrg
7016f931275dSmrg
7017f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7018f931275dSmrg
7019c6a6acfbSmrg		eval supported=\$$cacheid
7020bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7021bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7022f931275dSmrg		if test "$supported" = "yes" ; then
7023c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7024f931275dSmrg			found="yes"
7025f931275dSmrg		fi
7026f931275dSmrg	fi
7027f931275dSmrg
7028f931275dSmrg
7029f931275dSmrg
7030f931275dSmrg# These are currently disabled because they are noisy.  They will be enabled
7031f931275dSmrg# in the future once the codebase is sufficiently modernized to silence
7032f931275dSmrg# them.  For now, I don't want them to drown out the other warnings.
7033c6a6acfbSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7034c6a6acfbSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7035c6a6acfbSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7036f931275dSmrg
7037c12babebSmrg# Turn some warnings into errors, so we don't accidentally get successful builds
7038f931275dSmrg# when there are problems that should be fixed.
7039f931275dSmrg
7040f931275dSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
7041f931275dSmrg
7042f931275dSmrg
7043f931275dSmrg
7044f931275dSmrg
7045f931275dSmrg
7046c6a6acfbSmrg
7047c6a6acfbSmrg
7048c6a6acfbSmrg
7049c6a6acfbSmrg
7050c6a6acfbSmrg
7051c6a6acfbSmrg
7052c6a6acfbSmrg
7053c6a6acfbSmrg
7054f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7055f931275dSmrg
7056c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7057f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7058bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7059bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7060bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7061bc77032bSmrgthen :
7062bc77032bSmrg  printf %s "(cached) " >&6
7063bc77032bSmrgelse $as_nop
7064f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065f931275dSmrg/* end confdefs.h.  */
7066f931275dSmrgint i;
7067f931275dSmrg_ACEOF
7068bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7069bc77032bSmrgthen :
7070f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7071bc77032bSmrgelse $as_nop
7072f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7073f931275dSmrgfi
7074bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7075f931275dSmrgfi
7076bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7077bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7078c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7079f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7080f931275dSmrgfi
7081f931275dSmrg
7082c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7083c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7084f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7085f931275dSmrg	fi
7086f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7087bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7088bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7089bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7090bc77032bSmrgthen :
7091bc77032bSmrg  printf %s "(cached) " >&6
7092bc77032bSmrgelse $as_nop
7093f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094f931275dSmrg/* end confdefs.h.  */
7095f931275dSmrgint i;
7096f931275dSmrg_ACEOF
7097bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7098bc77032bSmrgthen :
7099f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7100bc77032bSmrgelse $as_nop
7101f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7102f931275dSmrgfi
7103bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7104f931275dSmrgfi
7105bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7106bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7107c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7108f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7109f931275dSmrgfi
7110f931275dSmrg
7111f931275dSmrgfound="no"
7112f931275dSmrg
7113f931275dSmrg	if test $found = "no" ; then
7114c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7115f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7116f931275dSmrg		fi
7117f931275dSmrg
7118c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7119f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7120f931275dSmrg		fi
7121f931275dSmrg
7122f931275dSmrg		CFLAGS="$CFLAGS -Werror=implicit"
7123f931275dSmrg
7124bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7125bc77032bSmrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
7126c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_implicit
7127bc77032bSmrg		if eval test \${$cacheid+y}
7128bc77032bSmrgthen :
7129bc77032bSmrg  printf %s "(cached) " >&6
7130bc77032bSmrgelse $as_nop
7131f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132f931275dSmrg/* end confdefs.h.  */
7133f931275dSmrgint i;
7134f931275dSmrgint
7135bc77032bSmrgmain (void)
7136f931275dSmrg{
7137f931275dSmrg
7138f931275dSmrg  ;
7139f931275dSmrg  return 0;
7140f931275dSmrg}
7141f931275dSmrg_ACEOF
7142bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7143bc77032bSmrgthen :
7144c6a6acfbSmrg  eval $cacheid=yes
7145bc77032bSmrgelse $as_nop
7146c6a6acfbSmrg  eval $cacheid=no
7147f931275dSmrgfi
7148bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7149f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7150f931275dSmrgfi
7151f931275dSmrg
7152f931275dSmrg
7153f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7154f931275dSmrg
7155c6a6acfbSmrg		eval supported=\$$cacheid
7156bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7157bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7158f931275dSmrg		if test "$supported" = "yes" ; then
7159f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7160f931275dSmrg			found="yes"
7161f931275dSmrg		fi
7162f931275dSmrg	fi
7163f931275dSmrg
7164f931275dSmrg	if test $found = "no" ; then
7165c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7166f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7167f931275dSmrg		fi
7168f931275dSmrg
7169c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7170f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7171f931275dSmrg		fi
7172f931275dSmrg
7173f931275dSmrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7174f931275dSmrg
7175bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7176bc77032bSmrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7177c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7178bc77032bSmrg		if eval test \${$cacheid+y}
7179bc77032bSmrgthen :
7180bc77032bSmrg  printf %s "(cached) " >&6
7181bc77032bSmrgelse $as_nop
7182f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183f931275dSmrg/* end confdefs.h.  */
7184f931275dSmrgint i;
7185f931275dSmrgint
7186bc77032bSmrgmain (void)
7187f931275dSmrg{
7188f931275dSmrg
7189f931275dSmrg  ;
7190f931275dSmrg  return 0;
7191f931275dSmrg}
7192f931275dSmrg_ACEOF
7193bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7194bc77032bSmrgthen :
7195c6a6acfbSmrg  eval $cacheid=yes
7196bc77032bSmrgelse $as_nop
7197c6a6acfbSmrg  eval $cacheid=no
7198f931275dSmrgfi
7199bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7200f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7201f931275dSmrgfi
7202f931275dSmrg
7203f931275dSmrg
7204f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7205f931275dSmrg
7206c6a6acfbSmrg		eval supported=\$$cacheid
7207bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7208bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7209f931275dSmrg		if test "$supported" = "yes" ; then
7210f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7211f931275dSmrg			found="yes"
7212f931275dSmrg		fi
7213f931275dSmrg	fi
7214f931275dSmrg
7215f931275dSmrg
7216f931275dSmrg
7217f931275dSmrg
7218f931275dSmrg
7219f931275dSmrg
7220f931275dSmrg
7221c6a6acfbSmrg
7222c6a6acfbSmrg
7223c6a6acfbSmrg
7224c6a6acfbSmrg
7225c6a6acfbSmrg
7226c6a6acfbSmrg
7227c6a6acfbSmrg
7228c6a6acfbSmrg
7229f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7230f931275dSmrg
7231c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7232f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7233bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7234bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7235bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7236bc77032bSmrgthen :
7237bc77032bSmrg  printf %s "(cached) " >&6
7238bc77032bSmrgelse $as_nop
7239f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240f931275dSmrg/* end confdefs.h.  */
7241f931275dSmrgint i;
7242f931275dSmrg_ACEOF
7243bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7244bc77032bSmrgthen :
7245f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7246bc77032bSmrgelse $as_nop
7247f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7248f931275dSmrgfi
7249bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7250f931275dSmrgfi
7251bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7252bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7253c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7254f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7255f931275dSmrgfi
7256f931275dSmrg
7257c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7258c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7259f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7260f931275dSmrg	fi
7261f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7262bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7263bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7264bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7265bc77032bSmrgthen :
7266bc77032bSmrg  printf %s "(cached) " >&6
7267bc77032bSmrgelse $as_nop
7268f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269f931275dSmrg/* end confdefs.h.  */
7270f931275dSmrgint i;
7271f931275dSmrg_ACEOF
7272bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7273bc77032bSmrgthen :
7274f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7275bc77032bSmrgelse $as_nop
7276f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7277f931275dSmrgfi
7278bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7279f931275dSmrgfi
7280bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7281bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7282c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7283f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7284f931275dSmrgfi
7285f931275dSmrg
7286f931275dSmrgfound="no"
7287f931275dSmrg
7288f931275dSmrg	if test $found = "no" ; then
7289c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7290f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7291f931275dSmrg		fi
7292f931275dSmrg
7293c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7294f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7295f931275dSmrg		fi
7296f931275dSmrg
7297f931275dSmrg		CFLAGS="$CFLAGS -Werror=nonnull"
7298f931275dSmrg
7299bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7300bc77032bSmrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7301c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
7302bc77032bSmrg		if eval test \${$cacheid+y}
7303bc77032bSmrgthen :
7304bc77032bSmrg  printf %s "(cached) " >&6
7305bc77032bSmrgelse $as_nop
7306f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307f931275dSmrg/* end confdefs.h.  */
7308f931275dSmrgint i;
7309f931275dSmrgint
7310bc77032bSmrgmain (void)
7311f931275dSmrg{
7312f931275dSmrg
7313f931275dSmrg  ;
7314f931275dSmrg  return 0;
7315f931275dSmrg}
7316f931275dSmrg_ACEOF
7317bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7318bc77032bSmrgthen :
7319c6a6acfbSmrg  eval $cacheid=yes
7320bc77032bSmrgelse $as_nop
7321c6a6acfbSmrg  eval $cacheid=no
7322f931275dSmrgfi
7323bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7324f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7325f931275dSmrgfi
7326f931275dSmrg
7327f931275dSmrg
7328f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7329f931275dSmrg
7330c6a6acfbSmrg		eval supported=\$$cacheid
7331bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7332bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7333f931275dSmrg		if test "$supported" = "yes" ; then
7334f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7335f931275dSmrg			found="yes"
7336f931275dSmrg		fi
7337f931275dSmrg	fi
7338f931275dSmrg
7339f931275dSmrg
7340f931275dSmrg
7341f931275dSmrg
7342f931275dSmrg
7343f931275dSmrg
7344f931275dSmrg
7345c6a6acfbSmrg
7346c6a6acfbSmrg
7347c6a6acfbSmrg
7348c6a6acfbSmrg
7349c6a6acfbSmrg
7350c6a6acfbSmrg
7351c6a6acfbSmrg
7352c6a6acfbSmrg
7353f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7354f931275dSmrg
7355c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7356f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7357bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7358bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7359bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7360bc77032bSmrgthen :
7361bc77032bSmrg  printf %s "(cached) " >&6
7362bc77032bSmrgelse $as_nop
7363f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364f931275dSmrg/* end confdefs.h.  */
7365f931275dSmrgint i;
7366f931275dSmrg_ACEOF
7367bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7368bc77032bSmrgthen :
7369f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7370bc77032bSmrgelse $as_nop
7371f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7372f931275dSmrgfi
7373bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7374f931275dSmrgfi
7375bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7376bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7377c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7378f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7379f931275dSmrgfi
7380f931275dSmrg
7381c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7382c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7383f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7384f931275dSmrg	fi
7385f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7386bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7387bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7388bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7389bc77032bSmrgthen :
7390bc77032bSmrg  printf %s "(cached) " >&6
7391bc77032bSmrgelse $as_nop
7392f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393f931275dSmrg/* end confdefs.h.  */
7394f931275dSmrgint i;
7395f931275dSmrg_ACEOF
7396bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7397bc77032bSmrgthen :
7398f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7399bc77032bSmrgelse $as_nop
7400f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7401f931275dSmrgfi
7402bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7403f931275dSmrgfi
7404bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7405bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7406c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7407f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7408f931275dSmrgfi
7409f931275dSmrg
7410f931275dSmrgfound="no"
7411f931275dSmrg
7412f931275dSmrg	if test $found = "no" ; then
7413c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7414f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7415f931275dSmrg		fi
7416f931275dSmrg
7417c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7418f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7419f931275dSmrg		fi
7420f931275dSmrg
7421f931275dSmrg		CFLAGS="$CFLAGS -Werror=init-self"
7422f931275dSmrg
7423bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7424bc77032bSmrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
7425c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_init_self
7426bc77032bSmrg		if eval test \${$cacheid+y}
7427bc77032bSmrgthen :
7428bc77032bSmrg  printf %s "(cached) " >&6
7429bc77032bSmrgelse $as_nop
7430f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431f931275dSmrg/* end confdefs.h.  */
7432f931275dSmrgint i;
7433f931275dSmrgint
7434bc77032bSmrgmain (void)
7435f931275dSmrg{
7436f931275dSmrg
7437f931275dSmrg  ;
7438f931275dSmrg  return 0;
7439f931275dSmrg}
7440f931275dSmrg_ACEOF
7441bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7442bc77032bSmrgthen :
7443c6a6acfbSmrg  eval $cacheid=yes
7444bc77032bSmrgelse $as_nop
7445c6a6acfbSmrg  eval $cacheid=no
7446f931275dSmrgfi
7447bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7448f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7449f931275dSmrgfi
7450f931275dSmrg
7451f931275dSmrg
7452f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7453f931275dSmrg
7454c6a6acfbSmrg		eval supported=\$$cacheid
7455bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7456bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7457f931275dSmrg		if test "$supported" = "yes" ; then
7458f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7459f931275dSmrg			found="yes"
7460f931275dSmrg		fi
7461f931275dSmrg	fi
7462f931275dSmrg
7463f931275dSmrg
7464f931275dSmrg
7465f931275dSmrg
7466f931275dSmrg
7467f931275dSmrg
7468f931275dSmrg
7469c6a6acfbSmrg
7470c6a6acfbSmrg
7471c6a6acfbSmrg
7472c6a6acfbSmrg
7473c6a6acfbSmrg
7474c6a6acfbSmrg
7475c6a6acfbSmrg
7476c6a6acfbSmrg
7477f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7478f931275dSmrg
7479c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7480f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7481bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7482bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7483bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7484bc77032bSmrgthen :
7485bc77032bSmrg  printf %s "(cached) " >&6
7486bc77032bSmrgelse $as_nop
7487f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488f931275dSmrg/* end confdefs.h.  */
7489f931275dSmrgint i;
7490f931275dSmrg_ACEOF
7491bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7492bc77032bSmrgthen :
7493f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7494bc77032bSmrgelse $as_nop
7495f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7496f931275dSmrgfi
7497bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7498f931275dSmrgfi
7499bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7500bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7501c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7502f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7503f931275dSmrgfi
7504f931275dSmrg
7505c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7506c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7507f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7508f931275dSmrg	fi
7509f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7510bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7511bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7512bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7513bc77032bSmrgthen :
7514bc77032bSmrg  printf %s "(cached) " >&6
7515bc77032bSmrgelse $as_nop
7516f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517f931275dSmrg/* end confdefs.h.  */
7518f931275dSmrgint i;
7519f931275dSmrg_ACEOF
7520bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7521bc77032bSmrgthen :
7522f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7523bc77032bSmrgelse $as_nop
7524f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7525f931275dSmrgfi
7526bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7527f931275dSmrgfi
7528bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7529bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7530c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7531f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7532f931275dSmrgfi
7533f931275dSmrg
7534f931275dSmrgfound="no"
7535f931275dSmrg
7536f931275dSmrg	if test $found = "no" ; then
7537c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7538f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7539f931275dSmrg		fi
7540f931275dSmrg
7541c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7542f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7543f931275dSmrg		fi
7544f931275dSmrg
7545f931275dSmrg		CFLAGS="$CFLAGS -Werror=main"
7546f931275dSmrg
7547bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7548bc77032bSmrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
7549c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_main
7550bc77032bSmrg		if eval test \${$cacheid+y}
7551bc77032bSmrgthen :
7552bc77032bSmrg  printf %s "(cached) " >&6
7553bc77032bSmrgelse $as_nop
7554f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555f931275dSmrg/* end confdefs.h.  */
7556f931275dSmrgint i;
7557f931275dSmrgint
7558bc77032bSmrgmain (void)
7559f931275dSmrg{
7560f931275dSmrg
7561f931275dSmrg  ;
7562f931275dSmrg  return 0;
7563f931275dSmrg}
7564f931275dSmrg_ACEOF
7565bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7566bc77032bSmrgthen :
7567c6a6acfbSmrg  eval $cacheid=yes
7568bc77032bSmrgelse $as_nop
7569c6a6acfbSmrg  eval $cacheid=no
7570f931275dSmrgfi
7571bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7572f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7573f931275dSmrgfi
7574f931275dSmrg
7575f931275dSmrg
7576f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7577f931275dSmrg
7578c6a6acfbSmrg		eval supported=\$$cacheid
7579bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7580bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7581f931275dSmrg		if test "$supported" = "yes" ; then
7582f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7583f931275dSmrg			found="yes"
7584f931275dSmrg		fi
7585f931275dSmrg	fi
7586f931275dSmrg
7587f931275dSmrg
7588f931275dSmrg
7589f931275dSmrg
7590f931275dSmrg
7591f931275dSmrg
7592f931275dSmrg
7593c6a6acfbSmrg
7594c6a6acfbSmrg
7595c6a6acfbSmrg
7596c6a6acfbSmrg
7597c6a6acfbSmrg
7598c6a6acfbSmrg
7599c6a6acfbSmrg
7600c6a6acfbSmrg
7601f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7602f931275dSmrg
7603c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7604f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7605bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7606bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7607bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7608bc77032bSmrgthen :
7609bc77032bSmrg  printf %s "(cached) " >&6
7610bc77032bSmrgelse $as_nop
7611f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612f931275dSmrg/* end confdefs.h.  */
7613f931275dSmrgint i;
7614f931275dSmrg_ACEOF
7615bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7616bc77032bSmrgthen :
7617f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7618bc77032bSmrgelse $as_nop
7619f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7620f931275dSmrgfi
7621bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7622f931275dSmrgfi
7623bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7624bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7625c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7626f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7627f931275dSmrgfi
7628f931275dSmrg
7629c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7630c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7631f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7632f931275dSmrg	fi
7633f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7634bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7635bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7636bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7637bc77032bSmrgthen :
7638bc77032bSmrg  printf %s "(cached) " >&6
7639bc77032bSmrgelse $as_nop
7640f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641f931275dSmrg/* end confdefs.h.  */
7642f931275dSmrgint i;
7643f931275dSmrg_ACEOF
7644bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7645bc77032bSmrgthen :
7646f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7647bc77032bSmrgelse $as_nop
7648f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7649f931275dSmrgfi
7650bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7651f931275dSmrgfi
7652bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7653bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7654c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7655f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7656f931275dSmrgfi
7657f931275dSmrg
7658f931275dSmrgfound="no"
7659f931275dSmrg
7660f931275dSmrg	if test $found = "no" ; then
7661c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7662f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7663f931275dSmrg		fi
7664f931275dSmrg
7665c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7666f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7667f931275dSmrg		fi
7668f931275dSmrg
7669f931275dSmrg		CFLAGS="$CFLAGS -Werror=missing-braces"
7670f931275dSmrg
7671bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7672bc77032bSmrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7673c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7674bc77032bSmrg		if eval test \${$cacheid+y}
7675bc77032bSmrgthen :
7676bc77032bSmrg  printf %s "(cached) " >&6
7677bc77032bSmrgelse $as_nop
7678f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679f931275dSmrg/* end confdefs.h.  */
7680f931275dSmrgint i;
7681f931275dSmrgint
7682bc77032bSmrgmain (void)
7683f931275dSmrg{
7684f931275dSmrg
7685f931275dSmrg  ;
7686f931275dSmrg  return 0;
7687f931275dSmrg}
7688f931275dSmrg_ACEOF
7689bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7690bc77032bSmrgthen :
7691c6a6acfbSmrg  eval $cacheid=yes
7692bc77032bSmrgelse $as_nop
7693c6a6acfbSmrg  eval $cacheid=no
7694f931275dSmrgfi
7695bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7696f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7697f931275dSmrgfi
7698f931275dSmrg
7699f931275dSmrg
7700f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7701f931275dSmrg
7702c6a6acfbSmrg		eval supported=\$$cacheid
7703bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7704bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7705f931275dSmrg		if test "$supported" = "yes" ; then
7706f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7707f931275dSmrg			found="yes"
7708f931275dSmrg		fi
7709f931275dSmrg	fi
7710f931275dSmrg
7711f931275dSmrg
7712f931275dSmrg
7713f931275dSmrg
7714f931275dSmrg
7715f931275dSmrg
7716f931275dSmrg
7717c6a6acfbSmrg
7718c6a6acfbSmrg
7719c6a6acfbSmrg
7720c6a6acfbSmrg
7721c6a6acfbSmrg
7722c6a6acfbSmrg
7723c6a6acfbSmrg
7724c6a6acfbSmrg
7725f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7726f931275dSmrg
7727c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7728f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7729bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7730bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7731bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7732bc77032bSmrgthen :
7733bc77032bSmrg  printf %s "(cached) " >&6
7734bc77032bSmrgelse $as_nop
7735f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736f931275dSmrg/* end confdefs.h.  */
7737f931275dSmrgint i;
7738f931275dSmrg_ACEOF
7739bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7740bc77032bSmrgthen :
7741f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7742bc77032bSmrgelse $as_nop
7743f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7744f931275dSmrgfi
7745bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7746f931275dSmrgfi
7747bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7748bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7749c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7750f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7751f931275dSmrgfi
7752f931275dSmrg
7753c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7754c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7755f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7756f931275dSmrg	fi
7757f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7758bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7759bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7760bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7761bc77032bSmrgthen :
7762bc77032bSmrg  printf %s "(cached) " >&6
7763bc77032bSmrgelse $as_nop
7764f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765f931275dSmrg/* end confdefs.h.  */
7766f931275dSmrgint i;
7767f931275dSmrg_ACEOF
7768bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7769bc77032bSmrgthen :
7770f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7771bc77032bSmrgelse $as_nop
7772f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7773f931275dSmrgfi
7774bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7775f931275dSmrgfi
7776bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7777bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7778c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7779f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7780f931275dSmrgfi
7781f931275dSmrg
7782f931275dSmrgfound="no"
7783f931275dSmrg
7784f931275dSmrg	if test $found = "no" ; then
7785c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7786f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7787f931275dSmrg		fi
7788f931275dSmrg
7789c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7790f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7791f931275dSmrg		fi
7792f931275dSmrg
7793f931275dSmrg		CFLAGS="$CFLAGS -Werror=sequence-point"
7794f931275dSmrg
7795bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7796bc77032bSmrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7797c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7798bc77032bSmrg		if eval test \${$cacheid+y}
7799bc77032bSmrgthen :
7800bc77032bSmrg  printf %s "(cached) " >&6
7801bc77032bSmrgelse $as_nop
7802f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803f931275dSmrg/* end confdefs.h.  */
7804f931275dSmrgint i;
7805f931275dSmrgint
7806bc77032bSmrgmain (void)
7807f931275dSmrg{
7808f931275dSmrg
7809f931275dSmrg  ;
7810f931275dSmrg  return 0;
7811f931275dSmrg}
7812f931275dSmrg_ACEOF
7813bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7814bc77032bSmrgthen :
7815c6a6acfbSmrg  eval $cacheid=yes
7816bc77032bSmrgelse $as_nop
7817c6a6acfbSmrg  eval $cacheid=no
7818f931275dSmrgfi
7819bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7820f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7821f931275dSmrgfi
7822f931275dSmrg
7823f931275dSmrg
7824f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7825f931275dSmrg
7826c6a6acfbSmrg		eval supported=\$$cacheid
7827bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7828bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7829f931275dSmrg		if test "$supported" = "yes" ; then
7830f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7831f931275dSmrg			found="yes"
7832f931275dSmrg		fi
7833f931275dSmrg	fi
7834f931275dSmrg
7835f931275dSmrg
7836f931275dSmrg
7837f931275dSmrg
7838f931275dSmrg
7839f931275dSmrg
7840f931275dSmrg
7841c6a6acfbSmrg
7842c6a6acfbSmrg
7843c6a6acfbSmrg
7844c6a6acfbSmrg
7845c6a6acfbSmrg
7846c6a6acfbSmrg
7847c6a6acfbSmrg
7848c6a6acfbSmrg
7849f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7850f931275dSmrg
7851c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7852f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7853bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7854bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7855bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7856bc77032bSmrgthen :
7857bc77032bSmrg  printf %s "(cached) " >&6
7858bc77032bSmrgelse $as_nop
7859f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860f931275dSmrg/* end confdefs.h.  */
7861f931275dSmrgint i;
7862f931275dSmrg_ACEOF
7863bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7864bc77032bSmrgthen :
7865f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7866bc77032bSmrgelse $as_nop
7867f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7868f931275dSmrgfi
7869bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7870f931275dSmrgfi
7871bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7872bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7873c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7874f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7875f931275dSmrgfi
7876f931275dSmrg
7877c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7878c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7879f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7880f931275dSmrg	fi
7881f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7882bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7883bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7884bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7885bc77032bSmrgthen :
7886bc77032bSmrg  printf %s "(cached) " >&6
7887bc77032bSmrgelse $as_nop
7888f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889f931275dSmrg/* end confdefs.h.  */
7890f931275dSmrgint i;
7891f931275dSmrg_ACEOF
7892bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7893bc77032bSmrgthen :
7894f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7895bc77032bSmrgelse $as_nop
7896f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7897f931275dSmrgfi
7898bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7899f931275dSmrgfi
7900bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7901bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7902c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7903f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7904f931275dSmrgfi
7905f931275dSmrg
7906f931275dSmrgfound="no"
7907f931275dSmrg
7908f931275dSmrg	if test $found = "no" ; then
7909c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7910f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7911f931275dSmrg		fi
7912f931275dSmrg
7913c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7914f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7915f931275dSmrg		fi
7916f931275dSmrg
7917f931275dSmrg		CFLAGS="$CFLAGS -Werror=return-type"
7918f931275dSmrg
7919bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7920bc77032bSmrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
7921c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_return_type
7922bc77032bSmrg		if eval test \${$cacheid+y}
7923bc77032bSmrgthen :
7924bc77032bSmrg  printf %s "(cached) " >&6
7925bc77032bSmrgelse $as_nop
7926f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927f931275dSmrg/* end confdefs.h.  */
7928f931275dSmrgint i;
7929f931275dSmrgint
7930bc77032bSmrgmain (void)
7931f931275dSmrg{
7932f931275dSmrg
7933f931275dSmrg  ;
7934f931275dSmrg  return 0;
7935f931275dSmrg}
7936f931275dSmrg_ACEOF
7937bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7938bc77032bSmrgthen :
7939c6a6acfbSmrg  eval $cacheid=yes
7940bc77032bSmrgelse $as_nop
7941c6a6acfbSmrg  eval $cacheid=no
7942f931275dSmrgfi
7943bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7944f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7945f931275dSmrgfi
7946f931275dSmrg
7947f931275dSmrg
7948f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7949f931275dSmrg
7950c6a6acfbSmrg		eval supported=\$$cacheid
7951bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7952bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7953f931275dSmrg		if test "$supported" = "yes" ; then
7954f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7955f931275dSmrg			found="yes"
7956f931275dSmrg		fi
7957f931275dSmrg	fi
7958f931275dSmrg
7959f931275dSmrg	if test $found = "no" ; then
7960c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7961f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962f931275dSmrg		fi
7963f931275dSmrg
7964c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7965f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7966f931275dSmrg		fi
7967f931275dSmrg
7968f931275dSmrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7969f931275dSmrg
7970bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7971bc77032bSmrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7972c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7973bc77032bSmrg		if eval test \${$cacheid+y}
7974bc77032bSmrgthen :
7975bc77032bSmrg  printf %s "(cached) " >&6
7976bc77032bSmrgelse $as_nop
7977f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978f931275dSmrg/* end confdefs.h.  */
7979f931275dSmrgint i;
7980f931275dSmrgint
7981bc77032bSmrgmain (void)
7982f931275dSmrg{
7983f931275dSmrg
7984f931275dSmrg  ;
7985f931275dSmrg  return 0;
7986f931275dSmrg}
7987f931275dSmrg_ACEOF
7988bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7989bc77032bSmrgthen :
7990c6a6acfbSmrg  eval $cacheid=yes
7991bc77032bSmrgelse $as_nop
7992c6a6acfbSmrg  eval $cacheid=no
7993f931275dSmrgfi
7994bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7995f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7996f931275dSmrgfi
7997f931275dSmrg
7998f931275dSmrg
7999f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8000f931275dSmrg
8001c6a6acfbSmrg		eval supported=\$$cacheid
8002bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8003bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8004f931275dSmrg		if test "$supported" = "yes" ; then
8005f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8006f931275dSmrg			found="yes"
8007f931275dSmrg		fi
8008f931275dSmrg	fi
8009f931275dSmrg
8010f931275dSmrg
8011f931275dSmrg
8012f931275dSmrg
8013f931275dSmrg
8014f931275dSmrg
8015f931275dSmrg
8016c6a6acfbSmrg
8017c6a6acfbSmrg
8018c6a6acfbSmrg
8019c6a6acfbSmrg
8020c6a6acfbSmrg
8021c6a6acfbSmrg
8022c6a6acfbSmrg
8023c6a6acfbSmrg
8024f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8025f931275dSmrg
8026c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8027f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8028bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8029bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8030bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8031bc77032bSmrgthen :
8032bc77032bSmrg  printf %s "(cached) " >&6
8033bc77032bSmrgelse $as_nop
8034f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035f931275dSmrg/* end confdefs.h.  */
8036f931275dSmrgint i;
8037f931275dSmrg_ACEOF
8038bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8039bc77032bSmrgthen :
8040f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8041bc77032bSmrgelse $as_nop
8042f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8043f931275dSmrgfi
8044bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8045f931275dSmrgfi
8046bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8047bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8048c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8049f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8050f931275dSmrgfi
8051f931275dSmrg
8052c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8053c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8054f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8055f931275dSmrg	fi
8056f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8057bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8058bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8059bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8060bc77032bSmrgthen :
8061bc77032bSmrg  printf %s "(cached) " >&6
8062bc77032bSmrgelse $as_nop
8063f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064f931275dSmrg/* end confdefs.h.  */
8065f931275dSmrgint i;
8066f931275dSmrg_ACEOF
8067bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8068bc77032bSmrgthen :
8069f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8070bc77032bSmrgelse $as_nop
8071f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8072f931275dSmrgfi
8073bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8074f931275dSmrgfi
8075bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8076bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8077c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8078f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8079f931275dSmrgfi
8080f931275dSmrg
8081f931275dSmrgfound="no"
8082f931275dSmrg
8083f931275dSmrg	if test $found = "no" ; then
8084c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8085f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8086f931275dSmrg		fi
8087f931275dSmrg
8088c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8089f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8090f931275dSmrg		fi
8091f931275dSmrg
8092f931275dSmrg		CFLAGS="$CFLAGS -Werror=trigraphs"
8093f931275dSmrg
8094bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8095bc77032bSmrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8096c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8097bc77032bSmrg		if eval test \${$cacheid+y}
8098bc77032bSmrgthen :
8099bc77032bSmrg  printf %s "(cached) " >&6
8100bc77032bSmrgelse $as_nop
8101f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102f931275dSmrg/* end confdefs.h.  */
8103f931275dSmrgint i;
8104f931275dSmrgint
8105bc77032bSmrgmain (void)
8106f931275dSmrg{
8107f931275dSmrg
8108f931275dSmrg  ;
8109f931275dSmrg  return 0;
8110f931275dSmrg}
8111f931275dSmrg_ACEOF
8112bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8113bc77032bSmrgthen :
8114c6a6acfbSmrg  eval $cacheid=yes
8115bc77032bSmrgelse $as_nop
8116c6a6acfbSmrg  eval $cacheid=no
8117f931275dSmrgfi
8118bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8119f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8120f931275dSmrgfi
8121f931275dSmrg
8122f931275dSmrg
8123f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8124f931275dSmrg
8125c6a6acfbSmrg		eval supported=\$$cacheid
8126bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8127bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8128f931275dSmrg		if test "$supported" = "yes" ; then
8129f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8130f931275dSmrg			found="yes"
8131f931275dSmrg		fi
8132f931275dSmrg	fi
8133f931275dSmrg
8134f931275dSmrg
8135f931275dSmrg
8136f931275dSmrg
8137f931275dSmrg
8138f931275dSmrg
8139f931275dSmrg
8140c6a6acfbSmrg
8141c6a6acfbSmrg
8142c6a6acfbSmrg
8143c6a6acfbSmrg
8144c6a6acfbSmrg
8145c6a6acfbSmrg
8146c6a6acfbSmrg
8147c6a6acfbSmrg
8148f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8149f931275dSmrg
8150c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8151f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8152bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8153bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8154bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8155bc77032bSmrgthen :
8156bc77032bSmrg  printf %s "(cached) " >&6
8157bc77032bSmrgelse $as_nop
8158f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159f931275dSmrg/* end confdefs.h.  */
8160f931275dSmrgint i;
8161f931275dSmrg_ACEOF
8162bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8163bc77032bSmrgthen :
8164f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8165bc77032bSmrgelse $as_nop
8166f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8167f931275dSmrgfi
8168bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8169f931275dSmrgfi
8170bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8171bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8172c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8173f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8174f931275dSmrgfi
8175f931275dSmrg
8176c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8177c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8178f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8179f931275dSmrg	fi
8180f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8181bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8182bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8183bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8184bc77032bSmrgthen :
8185bc77032bSmrg  printf %s "(cached) " >&6
8186bc77032bSmrgelse $as_nop
8187f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188f931275dSmrg/* end confdefs.h.  */
8189f931275dSmrgint i;
8190f931275dSmrg_ACEOF
8191bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8192bc77032bSmrgthen :
8193f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8194bc77032bSmrgelse $as_nop
8195f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8196f931275dSmrgfi
8197bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8198f931275dSmrgfi
8199bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8200bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8201c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8202f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8203f931275dSmrgfi
8204f931275dSmrg
8205f931275dSmrgfound="no"
8206f931275dSmrg
8207f931275dSmrg	if test $found = "no" ; then
8208c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8209f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8210f931275dSmrg		fi
8211f931275dSmrg
8212c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8213f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8214f931275dSmrg		fi
8215f931275dSmrg
8216f931275dSmrg		CFLAGS="$CFLAGS -Werror=array-bounds"
8217f931275dSmrg
8218bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8219bc77032bSmrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8220c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8221bc77032bSmrg		if eval test \${$cacheid+y}
8222bc77032bSmrgthen :
8223bc77032bSmrg  printf %s "(cached) " >&6
8224bc77032bSmrgelse $as_nop
8225f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226f931275dSmrg/* end confdefs.h.  */
8227f931275dSmrgint i;
8228f931275dSmrgint
8229bc77032bSmrgmain (void)
8230f931275dSmrg{
8231f931275dSmrg
8232f931275dSmrg  ;
8233f931275dSmrg  return 0;
8234f931275dSmrg}
8235f931275dSmrg_ACEOF
8236bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8237bc77032bSmrgthen :
8238c6a6acfbSmrg  eval $cacheid=yes
8239bc77032bSmrgelse $as_nop
8240c6a6acfbSmrg  eval $cacheid=no
8241f931275dSmrgfi
8242bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8243f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8244f931275dSmrgfi
8245f931275dSmrg
8246f931275dSmrg
8247f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8248f931275dSmrg
8249c6a6acfbSmrg		eval supported=\$$cacheid
8250bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8251bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8252f931275dSmrg		if test "$supported" = "yes" ; then
8253f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8254f931275dSmrg			found="yes"
8255f931275dSmrg		fi
8256f931275dSmrg	fi
8257f931275dSmrg
8258f931275dSmrg
8259f931275dSmrg
8260f931275dSmrg
8261f931275dSmrg
8262f931275dSmrg
8263f931275dSmrg
8264c6a6acfbSmrg
8265c6a6acfbSmrg
8266c6a6acfbSmrg
8267c6a6acfbSmrg
8268c6a6acfbSmrg
8269c6a6acfbSmrg
8270c6a6acfbSmrg
8271c6a6acfbSmrg
8272f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8273f931275dSmrg
8274c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8275f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8276bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8277bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8278bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8279bc77032bSmrgthen :
8280bc77032bSmrg  printf %s "(cached) " >&6
8281bc77032bSmrgelse $as_nop
8282f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283f931275dSmrg/* end confdefs.h.  */
8284f931275dSmrgint i;
8285f931275dSmrg_ACEOF
8286bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8287bc77032bSmrgthen :
8288f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8289bc77032bSmrgelse $as_nop
8290f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8291f931275dSmrgfi
8292bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8293f931275dSmrgfi
8294bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8295bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8296c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8297f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8298f931275dSmrgfi
8299f931275dSmrg
8300c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8301c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8302f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8303f931275dSmrg	fi
8304f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8305bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8306bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8307bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8308bc77032bSmrgthen :
8309bc77032bSmrg  printf %s "(cached) " >&6
8310bc77032bSmrgelse $as_nop
8311f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312f931275dSmrg/* end confdefs.h.  */
8313f931275dSmrgint i;
8314f931275dSmrg_ACEOF
8315bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8316bc77032bSmrgthen :
8317f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8318bc77032bSmrgelse $as_nop
8319f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8320f931275dSmrgfi
8321bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8322f931275dSmrgfi
8323bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8324bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8325c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8326f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8327f931275dSmrgfi
8328f931275dSmrg
8329f931275dSmrgfound="no"
8330f931275dSmrg
8331f931275dSmrg	if test $found = "no" ; then
8332c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8333f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8334f931275dSmrg		fi
8335f931275dSmrg
8336c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8337f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8338f931275dSmrg		fi
8339f931275dSmrg
8340f931275dSmrg		CFLAGS="$CFLAGS -Werror=write-strings"
8341f931275dSmrg
8342bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8343bc77032bSmrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8344c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
8345bc77032bSmrg		if eval test \${$cacheid+y}
8346bc77032bSmrgthen :
8347bc77032bSmrg  printf %s "(cached) " >&6
8348bc77032bSmrgelse $as_nop
8349f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350f931275dSmrg/* end confdefs.h.  */
8351f931275dSmrgint i;
8352f931275dSmrgint
8353bc77032bSmrgmain (void)
8354f931275dSmrg{
8355f931275dSmrg
8356f931275dSmrg  ;
8357f931275dSmrg  return 0;
8358f931275dSmrg}
8359f931275dSmrg_ACEOF
8360bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8361bc77032bSmrgthen :
8362c6a6acfbSmrg  eval $cacheid=yes
8363bc77032bSmrgelse $as_nop
8364c6a6acfbSmrg  eval $cacheid=no
8365f931275dSmrgfi
8366bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8367f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8368f931275dSmrgfi
8369f931275dSmrg
8370f931275dSmrg
8371f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8372f931275dSmrg
8373c6a6acfbSmrg		eval supported=\$$cacheid
8374bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8375bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8376f931275dSmrg		if test "$supported" = "yes" ; then
8377f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8378f931275dSmrg			found="yes"
8379f931275dSmrg		fi
8380f931275dSmrg	fi
8381f931275dSmrg
8382f931275dSmrg
8383f931275dSmrg
8384f931275dSmrg
8385f931275dSmrg
8386f931275dSmrg
8387f931275dSmrg
8388c6a6acfbSmrg
8389c6a6acfbSmrg
8390c6a6acfbSmrg
8391c6a6acfbSmrg
8392c6a6acfbSmrg
8393c6a6acfbSmrg
8394c6a6acfbSmrg
8395c6a6acfbSmrg
8396f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8397f931275dSmrg
8398c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8399f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8400bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8401bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8402bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8403bc77032bSmrgthen :
8404bc77032bSmrg  printf %s "(cached) " >&6
8405bc77032bSmrgelse $as_nop
8406f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407f931275dSmrg/* end confdefs.h.  */
8408f931275dSmrgint i;
8409f931275dSmrg_ACEOF
8410bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8411bc77032bSmrgthen :
8412f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8413bc77032bSmrgelse $as_nop
8414f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8415f931275dSmrgfi
8416bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8417f931275dSmrgfi
8418bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8419bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8420c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8421f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8422f931275dSmrgfi
8423f931275dSmrg
8424c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8425c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8426f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8427f931275dSmrg	fi
8428f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8429bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8430bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8431bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8432bc77032bSmrgthen :
8433bc77032bSmrg  printf %s "(cached) " >&6
8434bc77032bSmrgelse $as_nop
8435f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436f931275dSmrg/* end confdefs.h.  */
8437f931275dSmrgint i;
8438f931275dSmrg_ACEOF
8439bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8440bc77032bSmrgthen :
8441f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8442bc77032bSmrgelse $as_nop
8443f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8444f931275dSmrgfi
8445bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8446f931275dSmrgfi
8447bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8448bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8449c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8450f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8451f931275dSmrgfi
8452f931275dSmrg
8453f931275dSmrgfound="no"
8454f931275dSmrg
8455f931275dSmrg	if test $found = "no" ; then
8456c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8457f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8458f931275dSmrg		fi
8459f931275dSmrg
8460c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8461f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8462f931275dSmrg		fi
8463f931275dSmrg
8464f931275dSmrg		CFLAGS="$CFLAGS -Werror=address"
8465f931275dSmrg
8466bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8467bc77032bSmrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
8468c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_address
8469bc77032bSmrg		if eval test \${$cacheid+y}
8470bc77032bSmrgthen :
8471bc77032bSmrg  printf %s "(cached) " >&6
8472bc77032bSmrgelse $as_nop
8473f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474f931275dSmrg/* end confdefs.h.  */
8475f931275dSmrgint i;
8476f931275dSmrgint
8477bc77032bSmrgmain (void)
8478f931275dSmrg{
8479f931275dSmrg
8480f931275dSmrg  ;
8481f931275dSmrg  return 0;
8482f931275dSmrg}
8483f931275dSmrg_ACEOF
8484bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8485bc77032bSmrgthen :
8486c6a6acfbSmrg  eval $cacheid=yes
8487bc77032bSmrgelse $as_nop
8488c6a6acfbSmrg  eval $cacheid=no
8489f931275dSmrgfi
8490bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8491f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8492f931275dSmrgfi
8493f931275dSmrg
8494f931275dSmrg
8495f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8496f931275dSmrg
8497c6a6acfbSmrg		eval supported=\$$cacheid
8498bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8499bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8500f931275dSmrg		if test "$supported" = "yes" ; then
8501f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8502f931275dSmrg			found="yes"
8503f931275dSmrg		fi
8504f931275dSmrg	fi
8505f931275dSmrg
8506f931275dSmrg
8507f931275dSmrg
8508f931275dSmrg
8509f931275dSmrg
8510f931275dSmrg
8511f931275dSmrg
8512c6a6acfbSmrg
8513c6a6acfbSmrg
8514c6a6acfbSmrg
8515c6a6acfbSmrg
8516c6a6acfbSmrg
8517c6a6acfbSmrg
8518c6a6acfbSmrg
8519c6a6acfbSmrg
8520f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8521f931275dSmrg
8522c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8523f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8524bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8525bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8526bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8527bc77032bSmrgthen :
8528bc77032bSmrg  printf %s "(cached) " >&6
8529bc77032bSmrgelse $as_nop
8530f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531f931275dSmrg/* end confdefs.h.  */
8532f931275dSmrgint i;
8533f931275dSmrg_ACEOF
8534bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8535bc77032bSmrgthen :
8536f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8537bc77032bSmrgelse $as_nop
8538f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8539f931275dSmrgfi
8540bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8541f931275dSmrgfi
8542bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8543bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8544c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8545f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8546f931275dSmrgfi
8547f931275dSmrg
8548c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8549c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8550f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8551f931275dSmrg	fi
8552f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8553bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8554bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8555bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8556bc77032bSmrgthen :
8557bc77032bSmrg  printf %s "(cached) " >&6
8558bc77032bSmrgelse $as_nop
8559f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560f931275dSmrg/* end confdefs.h.  */
8561f931275dSmrgint i;
8562f931275dSmrg_ACEOF
8563bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8564bc77032bSmrgthen :
8565f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8566bc77032bSmrgelse $as_nop
8567f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8568f931275dSmrgfi
8569bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8570f931275dSmrgfi
8571bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8572bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8573c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8574f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8575f931275dSmrgfi
8576f931275dSmrg
8577f931275dSmrgfound="no"
8578f931275dSmrg
8579f931275dSmrg	if test $found = "no" ; then
8580c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8581f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8582f931275dSmrg		fi
8583f931275dSmrg
8584c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8585f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8586f931275dSmrg		fi
8587f931275dSmrg
8588f931275dSmrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8589f931275dSmrg
8590bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8591bc77032bSmrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8592c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8593bc77032bSmrg		if eval test \${$cacheid+y}
8594bc77032bSmrgthen :
8595bc77032bSmrg  printf %s "(cached) " >&6
8596bc77032bSmrgelse $as_nop
8597f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598f931275dSmrg/* end confdefs.h.  */
8599f931275dSmrgint i;
8600f931275dSmrgint
8601bc77032bSmrgmain (void)
8602f931275dSmrg{
8603f931275dSmrg
8604f931275dSmrg  ;
8605f931275dSmrg  return 0;
8606f931275dSmrg}
8607f931275dSmrg_ACEOF
8608bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8609bc77032bSmrgthen :
8610c6a6acfbSmrg  eval $cacheid=yes
8611bc77032bSmrgelse $as_nop
8612c6a6acfbSmrg  eval $cacheid=no
8613f931275dSmrgfi
8614bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8615f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8616f931275dSmrgfi
8617f931275dSmrg
8618f931275dSmrg
8619f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8620f931275dSmrg
8621c6a6acfbSmrg		eval supported=\$$cacheid
8622bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8623bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8624f931275dSmrg		if test "$supported" = "yes" ; then
8625f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8626f931275dSmrg			found="yes"
8627f931275dSmrg		fi
8628f931275dSmrg	fi
8629f931275dSmrg
8630f931275dSmrg	if test $found = "no" ; then
8631c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8632f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633f931275dSmrg		fi
8634f931275dSmrg
8635c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8636f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8637f931275dSmrg		fi
8638f931275dSmrg
8639f931275dSmrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8640f931275dSmrg
8641bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8642bc77032bSmrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8643c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8644bc77032bSmrg		if eval test \${$cacheid+y}
8645bc77032bSmrgthen :
8646bc77032bSmrg  printf %s "(cached) " >&6
8647bc77032bSmrgelse $as_nop
8648f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649f931275dSmrg/* end confdefs.h.  */
8650f931275dSmrgint i;
8651f931275dSmrgint
8652bc77032bSmrgmain (void)
8653f931275dSmrg{
8654f931275dSmrg
8655f931275dSmrg  ;
8656f931275dSmrg  return 0;
8657f931275dSmrg}
8658f931275dSmrg_ACEOF
8659bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8660bc77032bSmrgthen :
8661c6a6acfbSmrg  eval $cacheid=yes
8662bc77032bSmrgelse $as_nop
8663c6a6acfbSmrg  eval $cacheid=no
8664f931275dSmrgfi
8665bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8666f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8667f931275dSmrgfi
8668f931275dSmrg
8669f931275dSmrg
8670f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8671f931275dSmrg
8672c6a6acfbSmrg		eval supported=\$$cacheid
8673bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8674bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8675f931275dSmrg		if test "$supported" = "yes" ; then
8676f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8677f931275dSmrg			found="yes"
8678f931275dSmrg		fi
8679f931275dSmrg	fi
8680f931275dSmrg
8681f931275dSmrg
8682f931275dSmrg
8683f931275dSmrg
8684f931275dSmrg
8685f931275dSmrg
8686f931275dSmrg
8687c6a6acfbSmrg
8688c6a6acfbSmrg
8689c6a6acfbSmrg
8690c6a6acfbSmrg
8691c6a6acfbSmrg
8692c6a6acfbSmrg
8693c6a6acfbSmrg
8694c6a6acfbSmrg
8695f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8696f931275dSmrg
8697c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8698f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8699bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8700bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8701bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8702bc77032bSmrgthen :
8703bc77032bSmrg  printf %s "(cached) " >&6
8704bc77032bSmrgelse $as_nop
8705f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706f931275dSmrg/* end confdefs.h.  */
8707f931275dSmrgint i;
8708f931275dSmrg_ACEOF
8709bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8710bc77032bSmrgthen :
8711f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8712bc77032bSmrgelse $as_nop
8713f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8714f931275dSmrgfi
8715bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8716f931275dSmrgfi
8717bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8718bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8719c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8720f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8721f931275dSmrgfi
8722f931275dSmrg
8723c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8724c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8725f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726f931275dSmrg	fi
8727f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8728bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8729bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8730bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8731bc77032bSmrgthen :
8732bc77032bSmrg  printf %s "(cached) " >&6
8733bc77032bSmrgelse $as_nop
8734f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735f931275dSmrg/* end confdefs.h.  */
8736f931275dSmrgint i;
8737f931275dSmrg_ACEOF
8738bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8739bc77032bSmrgthen :
8740f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8741bc77032bSmrgelse $as_nop
8742f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8743f931275dSmrgfi
8744bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8745f931275dSmrgfi
8746bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8747bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8748c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8749f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8750f931275dSmrgfi
8751f931275dSmrg
8752f931275dSmrgfound="no"
8753f931275dSmrg
8754f931275dSmrg	if test $found = "no" ; then
8755c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8756f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8757f931275dSmrg		fi
8758f931275dSmrg
8759c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8760f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8761f931275dSmrg		fi
8762f931275dSmrg
8763f931275dSmrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8764f931275dSmrg
8765bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8766bc77032bSmrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8767c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8768bc77032bSmrg		if eval test \${$cacheid+y}
8769bc77032bSmrgthen :
8770bc77032bSmrg  printf %s "(cached) " >&6
8771bc77032bSmrgelse $as_nop
8772f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773f931275dSmrg/* end confdefs.h.  */
8774f931275dSmrgint i;
8775f931275dSmrgint
8776bc77032bSmrgmain (void)
8777f931275dSmrg{
8778f931275dSmrg
8779f931275dSmrg  ;
8780f931275dSmrg  return 0;
8781f931275dSmrg}
8782f931275dSmrg_ACEOF
8783bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8784bc77032bSmrgthen :
8785c6a6acfbSmrg  eval $cacheid=yes
8786bc77032bSmrgelse $as_nop
8787c6a6acfbSmrg  eval $cacheid=no
8788f931275dSmrgfi
8789bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8790f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8791f931275dSmrgfi
8792f931275dSmrg
8793f931275dSmrg
8794f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8795f931275dSmrg
8796c6a6acfbSmrg		eval supported=\$$cacheid
8797bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8798bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8799f931275dSmrg		if test "$supported" = "yes" ; then
8800f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8801f931275dSmrg			found="yes"
8802f931275dSmrg		fi
8803f931275dSmrg	fi
8804f931275dSmrg
8805f931275dSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8806f931275dSmrgelse
8807bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8808bc77032bSmrgprintf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8809f931275dSmrg
8810f931275dSmrg
8811f931275dSmrg
8812f931275dSmrg
8813f931275dSmrg
8814c6a6acfbSmrg
8815c6a6acfbSmrg
8816c6a6acfbSmrg
8817c6a6acfbSmrg
8818c6a6acfbSmrg
8819c6a6acfbSmrg
8820c6a6acfbSmrg
8821c6a6acfbSmrg
8822f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8823f931275dSmrg
8824c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8825f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8827bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8828bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8829bc77032bSmrgthen :
8830bc77032bSmrg  printf %s "(cached) " >&6
8831bc77032bSmrgelse $as_nop
8832f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833f931275dSmrg/* end confdefs.h.  */
8834f931275dSmrgint i;
8835f931275dSmrg_ACEOF
8836bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8837bc77032bSmrgthen :
8838f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8839bc77032bSmrgelse $as_nop
8840f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8841f931275dSmrgfi
8842bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8843f931275dSmrgfi
8844bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8845bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8846c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8847f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8848f931275dSmrgfi
8849f931275dSmrg
8850c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8851c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8852f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8853f931275dSmrg	fi
8854f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8855bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8856bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8857bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8858bc77032bSmrgthen :
8859bc77032bSmrg  printf %s "(cached) " >&6
8860bc77032bSmrgelse $as_nop
8861f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862f931275dSmrg/* end confdefs.h.  */
8863f931275dSmrgint i;
8864f931275dSmrg_ACEOF
8865bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8866bc77032bSmrgthen :
8867f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8868bc77032bSmrgelse $as_nop
8869f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8870f931275dSmrgfi
8871bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8872f931275dSmrgfi
8873bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8874bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8875c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8876f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8877f931275dSmrgfi
8878f931275dSmrg
8879f931275dSmrgfound="no"
8880f931275dSmrg
8881f931275dSmrg	if test $found = "no" ; then
8882c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8883f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8884f931275dSmrg		fi
8885f931275dSmrg
8886c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8887f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8888f931275dSmrg		fi
8889f931275dSmrg
8890f931275dSmrg		CFLAGS="$CFLAGS -Wimplicit"
8891f931275dSmrg
8892bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8893bc77032bSmrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
8894c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wimplicit
8895bc77032bSmrg		if eval test \${$cacheid+y}
8896bc77032bSmrgthen :
8897bc77032bSmrg  printf %s "(cached) " >&6
8898bc77032bSmrgelse $as_nop
8899f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900f931275dSmrg/* end confdefs.h.  */
8901f931275dSmrgint i;
8902f931275dSmrgint
8903bc77032bSmrgmain (void)
8904f931275dSmrg{
8905f931275dSmrg
8906f931275dSmrg  ;
8907f931275dSmrg  return 0;
8908f931275dSmrg}
8909f931275dSmrg_ACEOF
8910bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8911bc77032bSmrgthen :
8912c6a6acfbSmrg  eval $cacheid=yes
8913bc77032bSmrgelse $as_nop
8914c6a6acfbSmrg  eval $cacheid=no
8915f931275dSmrgfi
8916bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8917f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8918f931275dSmrgfi
8919f931275dSmrg
8920f931275dSmrg
8921f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8922f931275dSmrg
8923c6a6acfbSmrg		eval supported=\$$cacheid
8924bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8925bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8926f931275dSmrg		if test "$supported" = "yes" ; then
8927f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8928f931275dSmrg			found="yes"
8929f931275dSmrg		fi
8930f931275dSmrg	fi
8931f931275dSmrg
8932f931275dSmrg
8933f931275dSmrg
8934f931275dSmrg
8935f931275dSmrg
8936f931275dSmrg
8937f931275dSmrg
8938c6a6acfbSmrg
8939c6a6acfbSmrg
8940c6a6acfbSmrg
8941c6a6acfbSmrg
8942c6a6acfbSmrg
8943c6a6acfbSmrg
8944c6a6acfbSmrg
8945c6a6acfbSmrg
8946f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8947f931275dSmrg
8948c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8949f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8950bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8951bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8952bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8953bc77032bSmrgthen :
8954bc77032bSmrg  printf %s "(cached) " >&6
8955bc77032bSmrgelse $as_nop
8956f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957f931275dSmrg/* end confdefs.h.  */
8958f931275dSmrgint i;
8959f931275dSmrg_ACEOF
8960bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8961bc77032bSmrgthen :
8962f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8963bc77032bSmrgelse $as_nop
8964f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8965f931275dSmrgfi
8966bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8967f931275dSmrgfi
8968bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8969bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8970c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8971f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8972f931275dSmrgfi
8973f931275dSmrg
8974c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8975c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8976f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8977f931275dSmrg	fi
8978f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8979bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8980bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8981bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8982bc77032bSmrgthen :
8983bc77032bSmrg  printf %s "(cached) " >&6
8984bc77032bSmrgelse $as_nop
8985f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986f931275dSmrg/* end confdefs.h.  */
8987f931275dSmrgint i;
8988f931275dSmrg_ACEOF
8989bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8990bc77032bSmrgthen :
8991f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8992bc77032bSmrgelse $as_nop
8993f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8994f931275dSmrgfi
8995bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8996f931275dSmrgfi
8997bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8998bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8999c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9000f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9001f931275dSmrgfi
9002f931275dSmrg
9003f931275dSmrgfound="no"
9004f931275dSmrg
9005f931275dSmrg	if test $found = "no" ; then
9006c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9007f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9008f931275dSmrg		fi
9009f931275dSmrg
9010c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9011f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9012f931275dSmrg		fi
9013f931275dSmrg
9014f931275dSmrg		CFLAGS="$CFLAGS -Wnonnull"
9015f931275dSmrg
9016bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9017bc77032bSmrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
9018c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wnonnull
9019bc77032bSmrg		if eval test \${$cacheid+y}
9020bc77032bSmrgthen :
9021bc77032bSmrg  printf %s "(cached) " >&6
9022bc77032bSmrgelse $as_nop
9023f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024f931275dSmrg/* end confdefs.h.  */
9025f931275dSmrgint i;
9026f931275dSmrgint
9027bc77032bSmrgmain (void)
9028f931275dSmrg{
9029f931275dSmrg
9030f931275dSmrg  ;
9031f931275dSmrg  return 0;
9032f931275dSmrg}
9033f931275dSmrg_ACEOF
9034bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9035bc77032bSmrgthen :
9036c6a6acfbSmrg  eval $cacheid=yes
9037bc77032bSmrgelse $as_nop
9038c6a6acfbSmrg  eval $cacheid=no
9039f931275dSmrgfi
9040bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9041f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9042f931275dSmrgfi
9043f931275dSmrg
9044f931275dSmrg
9045f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9046f931275dSmrg
9047c6a6acfbSmrg		eval supported=\$$cacheid
9048bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9049bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9050f931275dSmrg		if test "$supported" = "yes" ; then
9051f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9052f931275dSmrg			found="yes"
9053f931275dSmrg		fi
9054f931275dSmrg	fi
9055f931275dSmrg
9056f931275dSmrg
9057f931275dSmrg
9058f931275dSmrg
9059f931275dSmrg
9060f931275dSmrg
9061f931275dSmrg
9062c6a6acfbSmrg
9063c6a6acfbSmrg
9064c6a6acfbSmrg
9065c6a6acfbSmrg
9066c6a6acfbSmrg
9067c6a6acfbSmrg
9068c6a6acfbSmrg
9069c6a6acfbSmrg
9070f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9071f931275dSmrg
9072c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9073f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9074bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9075bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9076bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9077bc77032bSmrgthen :
9078bc77032bSmrg  printf %s "(cached) " >&6
9079bc77032bSmrgelse $as_nop
9080f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081f931275dSmrg/* end confdefs.h.  */
9082f931275dSmrgint i;
9083f931275dSmrg_ACEOF
9084bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9085bc77032bSmrgthen :
9086f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9087bc77032bSmrgelse $as_nop
9088f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9089f931275dSmrgfi
9090bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9091f931275dSmrgfi
9092bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9093bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9094c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9095f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9096f931275dSmrgfi
9097f931275dSmrg
9098c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9099c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9100f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9101f931275dSmrg	fi
9102f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9103bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9104bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9105bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9106bc77032bSmrgthen :
9107bc77032bSmrg  printf %s "(cached) " >&6
9108bc77032bSmrgelse $as_nop
9109f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110f931275dSmrg/* end confdefs.h.  */
9111f931275dSmrgint i;
9112f931275dSmrg_ACEOF
9113bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9114bc77032bSmrgthen :
9115f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9116bc77032bSmrgelse $as_nop
9117f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9118f931275dSmrgfi
9119bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9120f931275dSmrgfi
9121bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9122bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9123c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9124f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9125f931275dSmrgfi
9126f931275dSmrg
9127f931275dSmrgfound="no"
9128f931275dSmrg
9129f931275dSmrg	if test $found = "no" ; then
9130c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9131f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132f931275dSmrg		fi
9133f931275dSmrg
9134c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9135f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9136f931275dSmrg		fi
9137f931275dSmrg
9138f931275dSmrg		CFLAGS="$CFLAGS -Winit-self"
9139f931275dSmrg
9140bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9141bc77032bSmrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
9142c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Winit_self
9143bc77032bSmrg		if eval test \${$cacheid+y}
9144bc77032bSmrgthen :
9145bc77032bSmrg  printf %s "(cached) " >&6
9146bc77032bSmrgelse $as_nop
9147f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9148f931275dSmrg/* end confdefs.h.  */
9149f931275dSmrgint i;
9150f931275dSmrgint
9151bc77032bSmrgmain (void)
9152f931275dSmrg{
9153f931275dSmrg
9154f931275dSmrg  ;
9155f931275dSmrg  return 0;
9156f931275dSmrg}
9157f931275dSmrg_ACEOF
9158bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9159bc77032bSmrgthen :
9160c6a6acfbSmrg  eval $cacheid=yes
9161bc77032bSmrgelse $as_nop
9162c6a6acfbSmrg  eval $cacheid=no
9163f931275dSmrgfi
9164bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9165f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9166f931275dSmrgfi
9167f931275dSmrg
9168f931275dSmrg
9169f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9170f931275dSmrg
9171c6a6acfbSmrg		eval supported=\$$cacheid
9172bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9173bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9174f931275dSmrg		if test "$supported" = "yes" ; then
9175f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9176f931275dSmrg			found="yes"
9177f931275dSmrg		fi
9178f931275dSmrg	fi
9179f931275dSmrg
9180f931275dSmrg
9181f931275dSmrg
9182f931275dSmrg
9183f931275dSmrg
9184f931275dSmrg
9185f931275dSmrg
9186c6a6acfbSmrg
9187c6a6acfbSmrg
9188c6a6acfbSmrg
9189c6a6acfbSmrg
9190c6a6acfbSmrg
9191c6a6acfbSmrg
9192c6a6acfbSmrg
9193c6a6acfbSmrg
9194f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9195f931275dSmrg
9196c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9197f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9198bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9199bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9200bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9201bc77032bSmrgthen :
9202bc77032bSmrg  printf %s "(cached) " >&6
9203bc77032bSmrgelse $as_nop
9204f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205f931275dSmrg/* end confdefs.h.  */
9206f931275dSmrgint i;
9207f931275dSmrg_ACEOF
9208bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9209bc77032bSmrgthen :
9210f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9211bc77032bSmrgelse $as_nop
9212f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9213f931275dSmrgfi
9214bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9215f931275dSmrgfi
9216bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9217bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9218c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9219f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9220f931275dSmrgfi
9221f931275dSmrg
9222c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9223c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9224f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9225f931275dSmrg	fi
9226f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9227bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9228bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9229bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9230bc77032bSmrgthen :
9231bc77032bSmrg  printf %s "(cached) " >&6
9232bc77032bSmrgelse $as_nop
9233f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234f931275dSmrg/* end confdefs.h.  */
9235f931275dSmrgint i;
9236f931275dSmrg_ACEOF
9237bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9238bc77032bSmrgthen :
9239f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9240bc77032bSmrgelse $as_nop
9241f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9242f931275dSmrgfi
9243bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9244f931275dSmrgfi
9245bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9246bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9247c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9248f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9249f931275dSmrgfi
9250f931275dSmrg
9251f931275dSmrgfound="no"
9252f931275dSmrg
9253f931275dSmrg	if test $found = "no" ; then
9254c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9255f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9256f931275dSmrg		fi
9257f931275dSmrg
9258c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9259f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9260f931275dSmrg		fi
9261f931275dSmrg
9262f931275dSmrg		CFLAGS="$CFLAGS -Wmain"
9263f931275dSmrg
9264bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9265bc77032bSmrgprintf %s "checking if $CC supports -Wmain... " >&6; }
9266c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wmain
9267bc77032bSmrg		if eval test \${$cacheid+y}
9268bc77032bSmrgthen :
9269bc77032bSmrg  printf %s "(cached) " >&6
9270bc77032bSmrgelse $as_nop
9271f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272f931275dSmrg/* end confdefs.h.  */
9273f931275dSmrgint i;
9274f931275dSmrgint
9275bc77032bSmrgmain (void)
9276f931275dSmrg{
9277f931275dSmrg
9278f931275dSmrg  ;
9279f931275dSmrg  return 0;
9280f931275dSmrg}
9281f931275dSmrg_ACEOF
9282bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9283bc77032bSmrgthen :
9284c6a6acfbSmrg  eval $cacheid=yes
9285bc77032bSmrgelse $as_nop
9286c6a6acfbSmrg  eval $cacheid=no
9287f931275dSmrgfi
9288bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9289f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9290f931275dSmrgfi
9291f931275dSmrg
9292f931275dSmrg
9293f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9294f931275dSmrg
9295c6a6acfbSmrg		eval supported=\$$cacheid
9296bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9297bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9298f931275dSmrg		if test "$supported" = "yes" ; then
9299f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9300f931275dSmrg			found="yes"
9301f931275dSmrg		fi
9302f931275dSmrg	fi
9303f931275dSmrg
9304f931275dSmrg
9305f931275dSmrg
9306f931275dSmrg
9307f931275dSmrg
9308f931275dSmrg
9309f931275dSmrg
9310c6a6acfbSmrg
9311c6a6acfbSmrg
9312c6a6acfbSmrg
9313c6a6acfbSmrg
9314c6a6acfbSmrg
9315c6a6acfbSmrg
9316c6a6acfbSmrg
9317c6a6acfbSmrg
9318f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9319f931275dSmrg
9320c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9321f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9322bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9323bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9324bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9325bc77032bSmrgthen :
9326bc77032bSmrg  printf %s "(cached) " >&6
9327bc77032bSmrgelse $as_nop
9328f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329f931275dSmrg/* end confdefs.h.  */
9330f931275dSmrgint i;
9331f931275dSmrg_ACEOF
9332bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9333bc77032bSmrgthen :
9334f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9335bc77032bSmrgelse $as_nop
9336f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9337f931275dSmrgfi
9338bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9339f931275dSmrgfi
9340bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9341bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9342c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9343f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9344f931275dSmrgfi
9345f931275dSmrg
9346c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9347c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9348f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9349f931275dSmrg	fi
9350f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9351bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9352bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9353bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9354bc77032bSmrgthen :
9355bc77032bSmrg  printf %s "(cached) " >&6
9356bc77032bSmrgelse $as_nop
9357f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358f931275dSmrg/* end confdefs.h.  */
9359f931275dSmrgint i;
9360f931275dSmrg_ACEOF
9361bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9362bc77032bSmrgthen :
9363f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9364bc77032bSmrgelse $as_nop
9365f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9366f931275dSmrgfi
9367bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9368f931275dSmrgfi
9369bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9370bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9371c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9372f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9373f931275dSmrgfi
9374f931275dSmrg
9375f931275dSmrgfound="no"
9376f931275dSmrg
9377f931275dSmrg	if test $found = "no" ; then
9378c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9379f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9380f931275dSmrg		fi
9381f931275dSmrg
9382c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9383f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9384f931275dSmrg		fi
9385f931275dSmrg
9386f931275dSmrg		CFLAGS="$CFLAGS -Wmissing-braces"
9387f931275dSmrg
9388bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9389bc77032bSmrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9390c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
9391bc77032bSmrg		if eval test \${$cacheid+y}
9392bc77032bSmrgthen :
9393bc77032bSmrg  printf %s "(cached) " >&6
9394bc77032bSmrgelse $as_nop
9395f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396f931275dSmrg/* end confdefs.h.  */
9397f931275dSmrgint i;
9398f931275dSmrgint
9399bc77032bSmrgmain (void)
9400f931275dSmrg{
9401f931275dSmrg
9402f931275dSmrg  ;
9403f931275dSmrg  return 0;
9404f931275dSmrg}
9405f931275dSmrg_ACEOF
9406bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9407bc77032bSmrgthen :
9408c6a6acfbSmrg  eval $cacheid=yes
9409bc77032bSmrgelse $as_nop
9410c6a6acfbSmrg  eval $cacheid=no
9411f931275dSmrgfi
9412bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9413f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9414f931275dSmrgfi
9415f931275dSmrg
9416f931275dSmrg
9417f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9418f931275dSmrg
9419c6a6acfbSmrg		eval supported=\$$cacheid
9420bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9421bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9422f931275dSmrg		if test "$supported" = "yes" ; then
9423f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9424f931275dSmrg			found="yes"
9425f931275dSmrg		fi
9426f931275dSmrg	fi
9427f931275dSmrg
9428f931275dSmrg
9429f931275dSmrg
9430f931275dSmrg
9431f931275dSmrg
9432f931275dSmrg
9433f931275dSmrg
9434c6a6acfbSmrg
9435c6a6acfbSmrg
9436c6a6acfbSmrg
9437c6a6acfbSmrg
9438c6a6acfbSmrg
9439c6a6acfbSmrg
9440c6a6acfbSmrg
9441c6a6acfbSmrg
9442f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9443f931275dSmrg
9444c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9445f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9446bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9447bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9448bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9449bc77032bSmrgthen :
9450bc77032bSmrg  printf %s "(cached) " >&6
9451bc77032bSmrgelse $as_nop
9452f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453f931275dSmrg/* end confdefs.h.  */
9454f931275dSmrgint i;
9455f931275dSmrg_ACEOF
9456bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9457bc77032bSmrgthen :
9458f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9459bc77032bSmrgelse $as_nop
9460f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9461f931275dSmrgfi
9462bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9463f931275dSmrgfi
9464bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9465bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9466c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9467f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9468f931275dSmrgfi
9469f931275dSmrg
9470c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9471c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9472f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9473f931275dSmrg	fi
9474f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9475bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9476bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9477bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9478bc77032bSmrgthen :
9479bc77032bSmrg  printf %s "(cached) " >&6
9480bc77032bSmrgelse $as_nop
9481f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482f931275dSmrg/* end confdefs.h.  */
9483f931275dSmrgint i;
9484f931275dSmrg_ACEOF
9485bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9486bc77032bSmrgthen :
9487f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9488bc77032bSmrgelse $as_nop
9489f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9490f931275dSmrgfi
9491bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9492f931275dSmrgfi
9493bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9494bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9495c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9496f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9497f931275dSmrgfi
9498f931275dSmrg
9499f931275dSmrgfound="no"
9500f931275dSmrg
9501f931275dSmrg	if test $found = "no" ; then
9502c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9503f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9504f931275dSmrg		fi
9505f931275dSmrg
9506c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9507f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9508f931275dSmrg		fi
9509f931275dSmrg
9510f931275dSmrg		CFLAGS="$CFLAGS -Wsequence-point"
9511f931275dSmrg
9512bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9513bc77032bSmrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
9514c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wsequence_point
9515bc77032bSmrg		if eval test \${$cacheid+y}
9516bc77032bSmrgthen :
9517bc77032bSmrg  printf %s "(cached) " >&6
9518bc77032bSmrgelse $as_nop
9519f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520f931275dSmrg/* end confdefs.h.  */
9521f931275dSmrgint i;
9522f931275dSmrgint
9523bc77032bSmrgmain (void)
9524f931275dSmrg{
9525f931275dSmrg
9526f931275dSmrg  ;
9527f931275dSmrg  return 0;
9528f931275dSmrg}
9529f931275dSmrg_ACEOF
9530bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9531bc77032bSmrgthen :
9532c6a6acfbSmrg  eval $cacheid=yes
9533bc77032bSmrgelse $as_nop
9534c6a6acfbSmrg  eval $cacheid=no
9535f931275dSmrgfi
9536bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9537f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9538f931275dSmrgfi
9539f931275dSmrg
9540f931275dSmrg
9541f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9542f931275dSmrg
9543c6a6acfbSmrg		eval supported=\$$cacheid
9544bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9545bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9546f931275dSmrg		if test "$supported" = "yes" ; then
9547f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9548f931275dSmrg			found="yes"
9549f931275dSmrg		fi
9550f931275dSmrg	fi
9551f931275dSmrg
9552f931275dSmrg
9553f931275dSmrg
9554f931275dSmrg
9555f931275dSmrg
9556f931275dSmrg
9557f931275dSmrg
9558c6a6acfbSmrg
9559c6a6acfbSmrg
9560c6a6acfbSmrg
9561c6a6acfbSmrg
9562c6a6acfbSmrg
9563c6a6acfbSmrg
9564c6a6acfbSmrg
9565c6a6acfbSmrg
9566f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9567f931275dSmrg
9568c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9569f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9570bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9571bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9572bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9573bc77032bSmrgthen :
9574bc77032bSmrg  printf %s "(cached) " >&6
9575bc77032bSmrgelse $as_nop
9576f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577f931275dSmrg/* end confdefs.h.  */
9578f931275dSmrgint i;
9579f931275dSmrg_ACEOF
9580bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9581bc77032bSmrgthen :
9582f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9583bc77032bSmrgelse $as_nop
9584f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9585f931275dSmrgfi
9586bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9587f931275dSmrgfi
9588bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9589bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9590c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9591f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9592f931275dSmrgfi
9593f931275dSmrg
9594c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9595c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9596f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9597f931275dSmrg	fi
9598f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9599bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9600bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9601bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9602bc77032bSmrgthen :
9603bc77032bSmrg  printf %s "(cached) " >&6
9604bc77032bSmrgelse $as_nop
9605f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606f931275dSmrg/* end confdefs.h.  */
9607f931275dSmrgint i;
9608f931275dSmrg_ACEOF
9609bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9610bc77032bSmrgthen :
9611f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9612bc77032bSmrgelse $as_nop
9613f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9614f931275dSmrgfi
9615bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9616f931275dSmrgfi
9617bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9618bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9619c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9620f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9621f931275dSmrgfi
9622f931275dSmrg
9623f931275dSmrgfound="no"
9624f931275dSmrg
9625f931275dSmrg	if test $found = "no" ; then
9626c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9627f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9628f931275dSmrg		fi
9629f931275dSmrg
9630c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9631f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9632f931275dSmrg		fi
9633f931275dSmrg
9634f931275dSmrg		CFLAGS="$CFLAGS -Wreturn-type"
9635f931275dSmrg
9636bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9637bc77032bSmrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
9638c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wreturn_type
9639bc77032bSmrg		if eval test \${$cacheid+y}
9640bc77032bSmrgthen :
9641bc77032bSmrg  printf %s "(cached) " >&6
9642bc77032bSmrgelse $as_nop
9643f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644f931275dSmrg/* end confdefs.h.  */
9645f931275dSmrgint i;
9646f931275dSmrgint
9647bc77032bSmrgmain (void)
9648f931275dSmrg{
9649f931275dSmrg
9650f931275dSmrg  ;
9651f931275dSmrg  return 0;
9652f931275dSmrg}
9653f931275dSmrg_ACEOF
9654bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9655bc77032bSmrgthen :
9656c6a6acfbSmrg  eval $cacheid=yes
9657bc77032bSmrgelse $as_nop
9658c6a6acfbSmrg  eval $cacheid=no
9659f931275dSmrgfi
9660bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9661f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9662f931275dSmrgfi
9663f931275dSmrg
9664f931275dSmrg
9665f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9666f931275dSmrg
9667c6a6acfbSmrg		eval supported=\$$cacheid
9668bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9669bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9670f931275dSmrg		if test "$supported" = "yes" ; then
9671f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9672f931275dSmrg			found="yes"
9673f931275dSmrg		fi
9674f931275dSmrg	fi
9675f931275dSmrg
9676f931275dSmrg
9677f931275dSmrg
9678f931275dSmrg
9679f931275dSmrg
9680f931275dSmrg
9681f931275dSmrg
9682c6a6acfbSmrg
9683c6a6acfbSmrg
9684c6a6acfbSmrg
9685c6a6acfbSmrg
9686c6a6acfbSmrg
9687c6a6acfbSmrg
9688c6a6acfbSmrg
9689c6a6acfbSmrg
9690f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9691f931275dSmrg
9692c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9693f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9694bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9695bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9696bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9697bc77032bSmrgthen :
9698bc77032bSmrg  printf %s "(cached) " >&6
9699bc77032bSmrgelse $as_nop
9700f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701f931275dSmrg/* end confdefs.h.  */
9702f931275dSmrgint i;
9703f931275dSmrg_ACEOF
9704bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9705bc77032bSmrgthen :
9706f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9707bc77032bSmrgelse $as_nop
9708f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9709f931275dSmrgfi
9710bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9711f931275dSmrgfi
9712bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9713bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9714c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9715f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9716f931275dSmrgfi
9717f931275dSmrg
9718c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9719c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9720f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9721f931275dSmrg	fi
9722f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9723bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9724bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9725bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9726bc77032bSmrgthen :
9727bc77032bSmrg  printf %s "(cached) " >&6
9728bc77032bSmrgelse $as_nop
9729f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730f931275dSmrg/* end confdefs.h.  */
9731f931275dSmrgint i;
9732f931275dSmrg_ACEOF
9733bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9734bc77032bSmrgthen :
9735f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9736bc77032bSmrgelse $as_nop
9737f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9738f931275dSmrgfi
9739bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9740f931275dSmrgfi
9741bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9742bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9743c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9744f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9745f931275dSmrgfi
9746f931275dSmrg
9747f931275dSmrgfound="no"
9748f931275dSmrg
9749f931275dSmrg	if test $found = "no" ; then
9750c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9751f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9752f931275dSmrg		fi
9753f931275dSmrg
9754c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9755f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9756f931275dSmrg		fi
9757f931275dSmrg
9758f931275dSmrg		CFLAGS="$CFLAGS -Wtrigraphs"
9759f931275dSmrg
9760bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9761bc77032bSmrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9762c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
9763bc77032bSmrg		if eval test \${$cacheid+y}
9764bc77032bSmrgthen :
9765bc77032bSmrg  printf %s "(cached) " >&6
9766bc77032bSmrgelse $as_nop
9767f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768f931275dSmrg/* end confdefs.h.  */
9769f931275dSmrgint i;
9770f931275dSmrgint
9771bc77032bSmrgmain (void)
9772f931275dSmrg{
9773f931275dSmrg
9774f931275dSmrg  ;
9775f931275dSmrg  return 0;
9776f931275dSmrg}
9777f931275dSmrg_ACEOF
9778bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9779bc77032bSmrgthen :
9780c6a6acfbSmrg  eval $cacheid=yes
9781bc77032bSmrgelse $as_nop
9782c6a6acfbSmrg  eval $cacheid=no
9783f931275dSmrgfi
9784bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9785f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9786f931275dSmrgfi
9787f931275dSmrg
9788f931275dSmrg
9789f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9790f931275dSmrg
9791c6a6acfbSmrg		eval supported=\$$cacheid
9792bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9793bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9794f931275dSmrg		if test "$supported" = "yes" ; then
9795f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9796f931275dSmrg			found="yes"
9797f931275dSmrg		fi
9798f931275dSmrg	fi
9799f931275dSmrg
9800f931275dSmrg
9801f931275dSmrg
9802f931275dSmrg
9803f931275dSmrg
9804f931275dSmrg
9805f931275dSmrg
9806c6a6acfbSmrg
9807c6a6acfbSmrg
9808c6a6acfbSmrg
9809c6a6acfbSmrg
9810c6a6acfbSmrg
9811c6a6acfbSmrg
9812c6a6acfbSmrg
9813c6a6acfbSmrg
9814f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9815f931275dSmrg
9816c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9817f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9818bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9819bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9820bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9821bc77032bSmrgthen :
9822bc77032bSmrg  printf %s "(cached) " >&6
9823bc77032bSmrgelse $as_nop
9824f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825f931275dSmrg/* end confdefs.h.  */
9826f931275dSmrgint i;
9827f931275dSmrg_ACEOF
9828bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9829bc77032bSmrgthen :
9830f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9831bc77032bSmrgelse $as_nop
9832f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9833f931275dSmrgfi
9834bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9835f931275dSmrgfi
9836bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9837bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9838c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9839f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9840f931275dSmrgfi
9841f931275dSmrg
9842c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9843c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9844f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9845f931275dSmrg	fi
9846f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9847bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9848bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9849bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9850bc77032bSmrgthen :
9851bc77032bSmrg  printf %s "(cached) " >&6
9852bc77032bSmrgelse $as_nop
9853f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854f931275dSmrg/* end confdefs.h.  */
9855f931275dSmrgint i;
9856f931275dSmrg_ACEOF
9857bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9858bc77032bSmrgthen :
9859f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9860bc77032bSmrgelse $as_nop
9861f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9862f931275dSmrgfi
9863bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9864f931275dSmrgfi
9865bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9866bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9867c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9868f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9869f931275dSmrgfi
9870f931275dSmrg
9871f931275dSmrgfound="no"
9872f931275dSmrg
9873f931275dSmrg	if test $found = "no" ; then
9874c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9875f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9876f931275dSmrg		fi
9877f931275dSmrg
9878c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9879f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9880f931275dSmrg		fi
9881f931275dSmrg
9882f931275dSmrg		CFLAGS="$CFLAGS -Warray-bounds"
9883f931275dSmrg
9884bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9885bc77032bSmrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
9886c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Warray_bounds
9887bc77032bSmrg		if eval test \${$cacheid+y}
9888bc77032bSmrgthen :
9889bc77032bSmrg  printf %s "(cached) " >&6
9890bc77032bSmrgelse $as_nop
9891f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892f931275dSmrg/* end confdefs.h.  */
9893f931275dSmrgint i;
9894f931275dSmrgint
9895bc77032bSmrgmain (void)
9896f931275dSmrg{
9897f931275dSmrg
9898f931275dSmrg  ;
9899f931275dSmrg  return 0;
9900f931275dSmrg}
9901f931275dSmrg_ACEOF
9902bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9903bc77032bSmrgthen :
9904c6a6acfbSmrg  eval $cacheid=yes
9905bc77032bSmrgelse $as_nop
9906c6a6acfbSmrg  eval $cacheid=no
9907f931275dSmrgfi
9908bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9909f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9910f931275dSmrgfi
9911f931275dSmrg
9912f931275dSmrg
9913f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9914f931275dSmrg
9915c6a6acfbSmrg		eval supported=\$$cacheid
9916bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9917bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9918f931275dSmrg		if test "$supported" = "yes" ; then
9919f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9920f931275dSmrg			found="yes"
9921f931275dSmrg		fi
9922f931275dSmrg	fi
9923f931275dSmrg
9924f931275dSmrg
9925f931275dSmrg
9926f931275dSmrg
9927f931275dSmrg
9928f931275dSmrg
9929f931275dSmrg
9930c6a6acfbSmrg
9931c6a6acfbSmrg
9932c6a6acfbSmrg
9933c6a6acfbSmrg
9934c6a6acfbSmrg
9935c6a6acfbSmrg
9936c6a6acfbSmrg
9937c6a6acfbSmrg
9938f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9939f931275dSmrg
9940c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9941f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9942bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9943bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9944bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9945bc77032bSmrgthen :
9946bc77032bSmrg  printf %s "(cached) " >&6
9947bc77032bSmrgelse $as_nop
9948f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949f931275dSmrg/* end confdefs.h.  */
9950f931275dSmrgint i;
9951f931275dSmrg_ACEOF
9952bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9953bc77032bSmrgthen :
9954f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9955bc77032bSmrgelse $as_nop
9956f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9957f931275dSmrgfi
9958bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9959f931275dSmrgfi
9960bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9961bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9962c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9963f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9964f931275dSmrgfi
9965f931275dSmrg
9966c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9967c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9968f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9969f931275dSmrg	fi
9970f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9971bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9972bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9973bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9974bc77032bSmrgthen :
9975bc77032bSmrg  printf %s "(cached) " >&6
9976bc77032bSmrgelse $as_nop
9977f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978f931275dSmrg/* end confdefs.h.  */
9979f931275dSmrgint i;
9980f931275dSmrg_ACEOF
9981bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9982bc77032bSmrgthen :
9983f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9984bc77032bSmrgelse $as_nop
9985f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9986f931275dSmrgfi
9987bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9988f931275dSmrgfi
9989bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9990bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9991c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9992f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9993f931275dSmrgfi
9994f931275dSmrg
9995f931275dSmrgfound="no"
9996f931275dSmrg
9997f931275dSmrg	if test $found = "no" ; then
9998c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9999f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10000f931275dSmrg		fi
10001f931275dSmrg
10002c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10003f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10004f931275dSmrg		fi
10005f931275dSmrg
10006f931275dSmrg		CFLAGS="$CFLAGS -Wwrite-strings"
10007f931275dSmrg
10008bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10009bc77032bSmrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10010c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
10011bc77032bSmrg		if eval test \${$cacheid+y}
10012bc77032bSmrgthen :
10013bc77032bSmrg  printf %s "(cached) " >&6
10014bc77032bSmrgelse $as_nop
10015f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016f931275dSmrg/* end confdefs.h.  */
10017f931275dSmrgint i;
10018f931275dSmrgint
10019bc77032bSmrgmain (void)
10020f931275dSmrg{
10021f931275dSmrg
10022f931275dSmrg  ;
10023f931275dSmrg  return 0;
10024f931275dSmrg}
10025f931275dSmrg_ACEOF
10026bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10027bc77032bSmrgthen :
10028c6a6acfbSmrg  eval $cacheid=yes
10029bc77032bSmrgelse $as_nop
10030c6a6acfbSmrg  eval $cacheid=no
10031f931275dSmrgfi
10032bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10033f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
10034f931275dSmrgfi
10035f931275dSmrg
10036f931275dSmrg
10037f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10038f931275dSmrg
10039c6a6acfbSmrg		eval supported=\$$cacheid
10040bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10041bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10042f931275dSmrg		if test "$supported" = "yes" ; then
10043f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10044f931275dSmrg			found="yes"
10045f931275dSmrg		fi
10046f931275dSmrg	fi
10047f931275dSmrg
10048f931275dSmrg
10049f931275dSmrg
10050f931275dSmrg
10051f931275dSmrg
10052f931275dSmrg
10053f931275dSmrg
10054c6a6acfbSmrg
10055c6a6acfbSmrg
10056c6a6acfbSmrg
10057c6a6acfbSmrg
10058c6a6acfbSmrg
10059c6a6acfbSmrg
10060c6a6acfbSmrg
10061c6a6acfbSmrg
10062f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10063f931275dSmrg
10064c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10065f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10066bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10067bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10068bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10069bc77032bSmrgthen :
10070bc77032bSmrg  printf %s "(cached) " >&6
10071bc77032bSmrgelse $as_nop
10072f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073f931275dSmrg/* end confdefs.h.  */
10074f931275dSmrgint i;
10075f931275dSmrg_ACEOF
10076bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10077bc77032bSmrgthen :
10078f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10079bc77032bSmrgelse $as_nop
10080f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10081f931275dSmrgfi
10082bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10083f931275dSmrgfi
10084bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10085bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10086c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10087f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10088f931275dSmrgfi
1008989d09728Smrg
10090c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10091c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10092f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10093f931275dSmrg	fi
10094f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10095bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10096bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10097bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10098bc77032bSmrgthen :
10099bc77032bSmrg  printf %s "(cached) " >&6
10100bc77032bSmrgelse $as_nop
10101f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102f931275dSmrg/* end confdefs.h.  */
10103f931275dSmrgint i;
10104f931275dSmrg_ACEOF
10105bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10106bc77032bSmrgthen :
10107f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10108bc77032bSmrgelse $as_nop
10109f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
1011089d09728Smrgfi
10111bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1011289d09728Smrgfi
10113bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10114bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10115c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10116f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10117f931275dSmrgfi
10118f931275dSmrg
10119f931275dSmrgfound="no"
10120f931275dSmrg
10121f931275dSmrg	if test $found = "no" ; then
10122c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10123f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10124f931275dSmrg		fi
10125f931275dSmrg
10126c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10127f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10128f931275dSmrg		fi
10129f931275dSmrg
10130f931275dSmrg		CFLAGS="$CFLAGS -Waddress"
10131f931275dSmrg
10132bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10133bc77032bSmrgprintf %s "checking if $CC supports -Waddress... " >&6; }
10134c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Waddress
10135bc77032bSmrg		if eval test \${$cacheid+y}
10136bc77032bSmrgthen :
10137bc77032bSmrg  printf %s "(cached) " >&6
10138bc77032bSmrgelse $as_nop
10139f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10140f931275dSmrg/* end confdefs.h.  */
10141f931275dSmrgint i;
10142f931275dSmrgint
10143bc77032bSmrgmain (void)
10144f931275dSmrg{
10145f931275dSmrg
10146f931275dSmrg  ;
10147f931275dSmrg  return 0;
10148f931275dSmrg}
10149f931275dSmrg_ACEOF
10150bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10151bc77032bSmrgthen :
10152c6a6acfbSmrg  eval $cacheid=yes
10153bc77032bSmrgelse $as_nop
10154c6a6acfbSmrg  eval $cacheid=no
10155f931275dSmrgfi
10156bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10157f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
1015889d09728Smrgfi
1015989d09728Smrg
1016089d09728Smrg
10161f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10162f931275dSmrg
10163c6a6acfbSmrg		eval supported=\$$cacheid
10164bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10165bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10166f931275dSmrg		if test "$supported" = "yes" ; then
10167f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10168f931275dSmrg			found="yes"
10169f931275dSmrg		fi
10170f931275dSmrg	fi
10171f931275dSmrg
10172f931275dSmrg
10173f931275dSmrg
10174f931275dSmrg
10175f931275dSmrg
10176f931275dSmrg
10177f931275dSmrg
10178c6a6acfbSmrg
10179c6a6acfbSmrg
10180c6a6acfbSmrg
10181c6a6acfbSmrg
10182c6a6acfbSmrg
10183c6a6acfbSmrg
10184c6a6acfbSmrg
10185c6a6acfbSmrg
10186f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10187f931275dSmrg
10188c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10189f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10190bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10191bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10192bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10193bc77032bSmrgthen :
10194bc77032bSmrg  printf %s "(cached) " >&6
10195bc77032bSmrgelse $as_nop
10196f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197f931275dSmrg/* end confdefs.h.  */
10198f931275dSmrgint i;
10199f931275dSmrg_ACEOF
10200bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10201bc77032bSmrgthen :
10202f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10203bc77032bSmrgelse $as_nop
10204f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
1020589d09728Smrgfi
10206bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10207f931275dSmrgfi
10208bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10209bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10210c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10211f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10212f931275dSmrgfi
10213f931275dSmrg
10214c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10215c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10216f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10217f931275dSmrg	fi
10218f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10219bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10220bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10221bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10222bc77032bSmrgthen :
10223bc77032bSmrg  printf %s "(cached) " >&6
10224bc77032bSmrgelse $as_nop
10225f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226f931275dSmrg/* end confdefs.h.  */
10227f931275dSmrgint i;
10228f931275dSmrg_ACEOF
10229bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10230bc77032bSmrgthen :
10231f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10232bc77032bSmrgelse $as_nop
10233f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10234f931275dSmrgfi
10235bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10236f931275dSmrgfi
10237bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10238bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10239c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10240f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10241f931275dSmrgfi
10242f931275dSmrg
10243f931275dSmrgfound="no"
10244f931275dSmrg
10245f931275dSmrg	if test $found = "no" ; then
10246c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10247f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10248f931275dSmrg		fi
10249f931275dSmrg
10250c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10251f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10252f931275dSmrg		fi
10253f931275dSmrg
10254f931275dSmrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10255f931275dSmrg
10256bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10257bc77032bSmrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10258c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10259bc77032bSmrg		if eval test \${$cacheid+y}
10260bc77032bSmrgthen :
10261bc77032bSmrg  printf %s "(cached) " >&6
10262bc77032bSmrgelse $as_nop
10263f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264f931275dSmrg/* end confdefs.h.  */
10265f931275dSmrgint i;
10266f931275dSmrgint
10267bc77032bSmrgmain (void)
10268f931275dSmrg{
1026989d09728Smrg
10270f931275dSmrg  ;
10271f931275dSmrg  return 0;
10272f931275dSmrg}
10273f931275dSmrg_ACEOF
10274bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10275bc77032bSmrgthen :
10276c6a6acfbSmrg  eval $cacheid=yes
10277bc77032bSmrgelse $as_nop
10278c6a6acfbSmrg  eval $cacheid=no
1027989d09728Smrgfi
10280bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10281f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
1028289d09728Smrgfi
10283f931275dSmrg
10284f931275dSmrg
10285f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10286f931275dSmrg
10287c6a6acfbSmrg		eval supported=\$$cacheid
10288bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10289bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10290f931275dSmrg		if test "$supported" = "yes" ; then
10291f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10292f931275dSmrg			found="yes"
10293f931275dSmrg		fi
10294f931275dSmrg	fi
10295f931275dSmrg
10296f931275dSmrg
10297f931275dSmrg
10298f931275dSmrg
10299f931275dSmrg
10300f931275dSmrg
10301f931275dSmrg
10302c6a6acfbSmrg
10303c6a6acfbSmrg
10304c6a6acfbSmrg
10305c6a6acfbSmrg
10306c6a6acfbSmrg
10307c6a6acfbSmrg
10308c6a6acfbSmrg
10309c6a6acfbSmrg
10310f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10311f931275dSmrg
10312c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10313f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10314bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10315bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10316bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10317bc77032bSmrgthen :
10318bc77032bSmrg  printf %s "(cached) " >&6
10319bc77032bSmrgelse $as_nop
10320f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321f931275dSmrg/* end confdefs.h.  */
10322f931275dSmrgint i;
10323f931275dSmrg_ACEOF
10324bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10325bc77032bSmrgthen :
10326f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10327bc77032bSmrgelse $as_nop
10328f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10329f931275dSmrgfi
10330bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10331f931275dSmrgfi
10332bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10333bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10334c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10335f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
1033689d09728Smrgfi
1033789d09728Smrg
10338c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10339c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10340f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10341f931275dSmrg	fi
10342f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10343bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10344bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10345bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10346bc77032bSmrgthen :
10347bc77032bSmrg  printf %s "(cached) " >&6
10348bc77032bSmrgelse $as_nop
10349f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350f931275dSmrg/* end confdefs.h.  */
10351f931275dSmrgint i;
10352f931275dSmrg_ACEOF
10353bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10354bc77032bSmrgthen :
10355f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10356bc77032bSmrgelse $as_nop
10357f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10358f931275dSmrgfi
10359bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10360f931275dSmrgfi
10361bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10362bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10363c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10364f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10365f931275dSmrgfi
10366f931275dSmrg
10367f931275dSmrgfound="no"
10368f931275dSmrg
10369f931275dSmrg	if test $found = "no" ; then
10370c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10371f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10372f931275dSmrg		fi
10373f931275dSmrg
10374c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10375f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10376f931275dSmrg		fi
10377f931275dSmrg
10378f931275dSmrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10379f931275dSmrg
10380bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10381bc77032bSmrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10382c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10383bc77032bSmrg		if eval test \${$cacheid+y}
10384bc77032bSmrgthen :
10385bc77032bSmrg  printf %s "(cached) " >&6
10386bc77032bSmrgelse $as_nop
10387f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388f931275dSmrg/* end confdefs.h.  */
10389f931275dSmrgint i;
10390f931275dSmrgint
10391bc77032bSmrgmain (void)
10392f931275dSmrg{
10393f931275dSmrg
10394f931275dSmrg  ;
10395f931275dSmrg  return 0;
10396f931275dSmrg}
10397f931275dSmrg_ACEOF
10398bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10399bc77032bSmrgthen :
10400c6a6acfbSmrg  eval $cacheid=yes
10401bc77032bSmrgelse $as_nop
10402c6a6acfbSmrg  eval $cacheid=no
10403f931275dSmrgfi
10404bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10405f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
10406f931275dSmrgfi
10407f931275dSmrg
10408f931275dSmrg
10409f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10410f931275dSmrg
10411c6a6acfbSmrg		eval supported=\$$cacheid
10412bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10413bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10414f931275dSmrg		if test "$supported" = "yes" ; then
10415f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10416f931275dSmrg			found="yes"
10417f931275dSmrg		fi
10418f931275dSmrg	fi
1041989d09728Smrg
1042089d09728Smrg
1042189d09728Smrgfi
1042289d09728Smrg
10423f931275dSmrg
10424f931275dSmrg
10425f931275dSmrg
10426f931275dSmrg
10427f931275dSmrg
10428c6a6acfbSmrg
10429c6a6acfbSmrg		CWARNFLAGS="$BASE_CFLAGS"
10430c6a6acfbSmrg		if  test "x$GCC" = xyes ; then
10431c6a6acfbSmrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10432c6a6acfbSmrg		fi
10433c6a6acfbSmrg
10434c6a6acfbSmrg
1043589d09728Smrg
1043689d09728Smrg
1043789d09728Smrg
1043889d09728Smrg
10439f931275dSmrg
10440f931275dSmrg
10441f931275dSmrg# Check whether --enable-strict-compilation was given.
10442bc77032bSmrgif test ${enable_strict_compilation+y}
10443bc77032bSmrgthen :
10444f931275dSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10445bc77032bSmrgelse $as_nop
10446f931275dSmrg  STRICT_COMPILE=no
10447f931275dSmrgfi
10448f931275dSmrg
10449f931275dSmrg
10450c6a6acfbSmrg
10451c6a6acfbSmrg
10452c6a6acfbSmrg
10453c6a6acfbSmrg
10454f931275dSmrgSTRICT_CFLAGS=""
10455f931275dSmrg
10456f931275dSmrg
10457f931275dSmrg
10458f931275dSmrg
10459f931275dSmrg
10460c6a6acfbSmrg
10461c6a6acfbSmrg
10462c6a6acfbSmrg
10463c6a6acfbSmrg
10464c6a6acfbSmrg
10465c6a6acfbSmrg
10466c6a6acfbSmrg
10467c6a6acfbSmrg
10468f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10469f931275dSmrg
10470c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10471f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10472bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10473bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10474bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10475bc77032bSmrgthen :
10476bc77032bSmrg  printf %s "(cached) " >&6
10477bc77032bSmrgelse $as_nop
10478f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479f931275dSmrg/* end confdefs.h.  */
10480f931275dSmrgint i;
10481f931275dSmrg_ACEOF
10482bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10483bc77032bSmrgthen :
10484f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10485bc77032bSmrgelse $as_nop
10486f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10487f931275dSmrgfi
10488bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10489f931275dSmrgfi
10490bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10491bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10492c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10493f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10494f931275dSmrgfi
10495f931275dSmrg
10496c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10497c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10498f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10499f931275dSmrg	fi
10500f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10501bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10502bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10503bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10504bc77032bSmrgthen :
10505bc77032bSmrg  printf %s "(cached) " >&6
10506bc77032bSmrgelse $as_nop
1050748af84faSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1050889d09728Smrg/* end confdefs.h.  */
10509f931275dSmrgint i;
1051089d09728Smrg_ACEOF
10511bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10512bc77032bSmrgthen :
10513f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10514bc77032bSmrgelse $as_nop
10515f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
1051689d09728Smrgfi
10517bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1051889d09728Smrgfi
10519bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10520bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10521c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10522f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
1052389d09728Smrgfi
10524f931275dSmrg
10525f931275dSmrgfound="no"
10526f931275dSmrg
10527f931275dSmrg	if test $found = "no" ; then
10528c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10529f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10530f931275dSmrg		fi
10531f931275dSmrg
10532c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10533f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10534f931275dSmrg		fi
10535f931275dSmrg
10536f931275dSmrg		CFLAGS="$CFLAGS -pedantic"
10537f931275dSmrg
10538bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10539bc77032bSmrgprintf %s "checking if $CC supports -pedantic... " >&6; }
10540c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__pedantic
10541bc77032bSmrg		if eval test \${$cacheid+y}
10542bc77032bSmrgthen :
10543bc77032bSmrg  printf %s "(cached) " >&6
10544bc77032bSmrgelse $as_nop
10545f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1054689d09728Smrg/* end confdefs.h.  */
10547f931275dSmrgint i;
1054889d09728Smrgint
10549bc77032bSmrgmain (void)
1055089d09728Smrg{
1055189d09728Smrg
1055289d09728Smrg  ;
1055389d09728Smrg  return 0;
1055489d09728Smrg}
1055589d09728Smrg_ACEOF
10556bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10557bc77032bSmrgthen :
10558c6a6acfbSmrg  eval $cacheid=yes
10559bc77032bSmrgelse $as_nop
10560c6a6acfbSmrg  eval $cacheid=no
10561f931275dSmrgfi
10562bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10563f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
10564f931275dSmrgfi
10565f931275dSmrg
10566f931275dSmrg
10567f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10568f931275dSmrg
10569c6a6acfbSmrg		eval supported=\$$cacheid
10570bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10571bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10572f931275dSmrg		if test "$supported" = "yes" ; then
10573f931275dSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10574f931275dSmrg			found="yes"
10575f931275dSmrg		fi
10576f931275dSmrg	fi
10577f931275dSmrg
10578f931275dSmrg
10579f931275dSmrg
10580f931275dSmrg
10581f931275dSmrg
10582f931275dSmrg
10583f931275dSmrg
10584c6a6acfbSmrg
10585c6a6acfbSmrg
10586c6a6acfbSmrg
10587c6a6acfbSmrg
10588c6a6acfbSmrg
10589c6a6acfbSmrg
10590c6a6acfbSmrg
10591c6a6acfbSmrg
10592f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10593f931275dSmrg
10594c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10595f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10596bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10597bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10598bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10599bc77032bSmrgthen :
10600bc77032bSmrg  printf %s "(cached) " >&6
10601bc77032bSmrgelse $as_nop
10602f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603f931275dSmrg/* end confdefs.h.  */
10604f931275dSmrgint i;
10605f931275dSmrg_ACEOF
10606bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10607bc77032bSmrgthen :
10608f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10609bc77032bSmrgelse $as_nop
10610f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10611f931275dSmrgfi
10612bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10613f931275dSmrgfi
10614bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10615bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10616c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10617f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10618f931275dSmrgfi
10619f931275dSmrg
10620c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10621c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10622f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10623f931275dSmrg	fi
10624f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10625bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10626bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10627bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10628bc77032bSmrgthen :
10629bc77032bSmrg  printf %s "(cached) " >&6
10630bc77032bSmrgelse $as_nop
10631f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1063289d09728Smrg/* end confdefs.h.  */
10633f931275dSmrgint i;
10634f931275dSmrg_ACEOF
10635bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10636bc77032bSmrgthen :
10637f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10638bc77032bSmrgelse $as_nop
10639f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10640f931275dSmrgfi
10641bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10642f931275dSmrgfi
10643bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10644bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10645c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10646f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10647f931275dSmrgfi
10648f931275dSmrg
10649f931275dSmrgfound="no"
10650f931275dSmrg
10651f931275dSmrg	if test $found = "no" ; then
10652c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10653f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10654f931275dSmrg		fi
1065589d09728Smrg
10656c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10657f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10658f931275dSmrg		fi
10659f931275dSmrg
10660f931275dSmrg		CFLAGS="$CFLAGS -Werror"
10661f931275dSmrg
10662bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10663bc77032bSmrgprintf %s "checking if $CC supports -Werror... " >&6; }
10664c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror
10665bc77032bSmrg		if eval test \${$cacheid+y}
10666bc77032bSmrgthen :
10667bc77032bSmrg  printf %s "(cached) " >&6
10668bc77032bSmrgelse $as_nop
10669f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670f931275dSmrg/* end confdefs.h.  */
10671f931275dSmrgint i;
1067289d09728Smrgint
10673bc77032bSmrgmain (void)
1067489d09728Smrg{
1067589d09728Smrg
1067689d09728Smrg  ;
1067789d09728Smrg  return 0;
1067889d09728Smrg}
1067989d09728Smrg_ACEOF
10680bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10681bc77032bSmrgthen :
10682c6a6acfbSmrg  eval $cacheid=yes
10683bc77032bSmrgelse $as_nop
10684c6a6acfbSmrg  eval $cacheid=no
10685f931275dSmrgfi
10686bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10687f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
10688f931275dSmrgfi
10689f931275dSmrg
10690f931275dSmrg
10691f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10692a9274bcdSmrg
10693c6a6acfbSmrg		eval supported=\$$cacheid
10694bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10695bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10696f931275dSmrg		if test "$supported" = "yes" ; then
10697f931275dSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10698f931275dSmrg			found="yes"
10699f931275dSmrg		fi
10700f931275dSmrg	fi
10701f931275dSmrg
10702f931275dSmrg	if test $found = "no" ; then
10703c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10704f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10705f931275dSmrg		fi
10706f931275dSmrg
10707c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10708f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10709f931275dSmrg		fi
10710f931275dSmrg
10711f931275dSmrg		CFLAGS="$CFLAGS -errwarn"
10712f931275dSmrg
10713bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10714bc77032bSmrgprintf %s "checking if $CC supports -errwarn... " >&6; }
10715c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__errwarn
10716bc77032bSmrg		if eval test \${$cacheid+y}
10717bc77032bSmrgthen :
10718bc77032bSmrg  printf %s "(cached) " >&6
10719bc77032bSmrgelse $as_nop
10720f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1072189d09728Smrg/* end confdefs.h.  */
10722f931275dSmrgint i;
1072389d09728Smrgint
10724bc77032bSmrgmain (void)
1072589d09728Smrg{
1072689d09728Smrg
1072789d09728Smrg  ;
1072889d09728Smrg  return 0;
1072989d09728Smrg}
1073089d09728Smrg_ACEOF
10731bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10732bc77032bSmrgthen :
10733c6a6acfbSmrg  eval $cacheid=yes
10734bc77032bSmrgelse $as_nop
10735c6a6acfbSmrg  eval $cacheid=no
10736f931275dSmrgfi
10737bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10738f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
10739f931275dSmrgfi
10740f931275dSmrg
10741f931275dSmrg
10742f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10743f931275dSmrg
10744c6a6acfbSmrg		eval supported=\$$cacheid
10745bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10746bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10747f931275dSmrg		if test "$supported" = "yes" ; then
10748f931275dSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10749f931275dSmrg			found="yes"
10750f931275dSmrg		fi
10751f931275dSmrg	fi
10752f931275dSmrg
10753f931275dSmrg
10754f931275dSmrg
10755f931275dSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10756f931275dSmrg# activate it with -Werror, so we add it here explicitly.
10757f931275dSmrg
10758f931275dSmrg
10759f931275dSmrg
10760f931275dSmrg
10761f931275dSmrg
10762c6a6acfbSmrg
10763c6a6acfbSmrg
10764c6a6acfbSmrg
10765c6a6acfbSmrg
10766c6a6acfbSmrg
10767c6a6acfbSmrg
10768c6a6acfbSmrg
10769c6a6acfbSmrg
10770f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10771f931275dSmrg
10772c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10773f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10774bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10775bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10776bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10777bc77032bSmrgthen :
10778bc77032bSmrg  printf %s "(cached) " >&6
10779bc77032bSmrgelse $as_nop
10780f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781f931275dSmrg/* end confdefs.h.  */
10782f931275dSmrgint i;
10783f931275dSmrg_ACEOF
10784bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10785bc77032bSmrgthen :
10786f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10787bc77032bSmrgelse $as_nop
10788f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
1078989d09728Smrgfi
10790bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1079189d09728Smrgfi
10792bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10793bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10794c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10795f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10796f931275dSmrgfi
10797f931275dSmrg
10798c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10799c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10800f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10801f931275dSmrg	fi
10802f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10803bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10804bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10805bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10806bc77032bSmrgthen :
10807bc77032bSmrg  printf %s "(cached) " >&6
10808bc77032bSmrgelse $as_nop
10809f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810f931275dSmrg/* end confdefs.h.  */
10811f931275dSmrgint i;
10812f931275dSmrg_ACEOF
10813bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10814bc77032bSmrgthen :
10815f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10816bc77032bSmrgelse $as_nop
10817f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
1081889d09728Smrgfi
10819bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1082089d09728Smrgfi
10821bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10822bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10823c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10824f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
1082589d09728Smrgfi
10826f931275dSmrg
10827f931275dSmrgfound="no"
10828f931275dSmrg
10829f931275dSmrg	if test $found = "no" ; then
10830c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10831f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10832f931275dSmrg		fi
10833f931275dSmrg
10834c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10835f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10836f931275dSmrg		fi
10837f931275dSmrg
10838f931275dSmrg		CFLAGS="$CFLAGS -Werror=attributes"
10839f931275dSmrg
10840bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10841bc77032bSmrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
10842c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_attributes
10843bc77032bSmrg		if eval test \${$cacheid+y}
10844bc77032bSmrgthen :
10845bc77032bSmrg  printf %s "(cached) " >&6
10846bc77032bSmrgelse $as_nop
10847f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1084889d09728Smrg/* end confdefs.h.  */
10849f931275dSmrgint i;
10850f931275dSmrgint
10851bc77032bSmrgmain (void)
1085289d09728Smrg{
10853f931275dSmrg
10854f931275dSmrg  ;
10855f931275dSmrg  return 0;
1085689d09728Smrg}
10857f931275dSmrg_ACEOF
10858bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10859bc77032bSmrgthen :
10860c6a6acfbSmrg  eval $cacheid=yes
10861bc77032bSmrgelse $as_nop
10862c6a6acfbSmrg  eval $cacheid=no
10863f931275dSmrgfi
10864bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10865f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
10866f931275dSmrgfi
10867f931275dSmrg
10868f931275dSmrg
10869f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10870f931275dSmrg
10871c6a6acfbSmrg		eval supported=\$$cacheid
10872bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10873bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10874f931275dSmrg		if test "$supported" = "yes" ; then
10875f931275dSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10876f931275dSmrg			found="yes"
10877f931275dSmrg		fi
10878f931275dSmrg	fi
10879f931275dSmrg
10880f931275dSmrg
10881f931275dSmrg
10882f931275dSmrgif test "x$STRICT_COMPILE" = "xyes"; then
10883f931275dSmrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10884f931275dSmrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10885f931275dSmrgfi
10886f931275dSmrg
10887f931275dSmrg
10888f931275dSmrg
10889f931275dSmrg
10890f931275dSmrg
10891f931275dSmrg
10892c12babebSmrg
10893c12babebSmrg
10894f931275dSmrgcat >>confdefs.h <<_ACEOF
10895f931275dSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10896f931275dSmrg_ACEOF
10897f931275dSmrg
10898f931275dSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10899f931275dSmrg	if test "x$PVM" = "x"; then
10900f931275dSmrg		PVM="0"
10901f931275dSmrg	fi
10902f931275dSmrg
10903bc77032bSmrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10904f931275dSmrg
10905f931275dSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10906f931275dSmrg	if test "x$PVP" = "x"; then
10907f931275dSmrg		PVP="0"
10908f931275dSmrg	fi
10909f931275dSmrg
10910bc77032bSmrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10911f931275dSmrg
10912f931275dSmrg
10913f931275dSmrg
10914bc77032bSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10915f931275dSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10916bc77032bSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10917bc77032bSmrgtouch \$(top_srcdir)/ChangeLog; \
10918bc77032bSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10919f931275dSmrg
10920f931275dSmrg
10921f931275dSmrg
10922f931275dSmrg
10923f931275dSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10924f931275dSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10925f931275dSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10926bc77032bSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10927bc77032bSmrgtouch \$(top_srcdir)/INSTALL; \
10928bc77032bSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10929bc77032bSmrg
10930f931275dSmrg
10931f931275dSmrg
10932f931275dSmrg
10933f931275dSmrg
10934f931275dSmrg
10935bc77032bSmrgcase $host_os in
10936bc77032bSmrg    solaris*)
10937bc77032bSmrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10938bc77032bSmrg        # check for a man page file found in later versions that use
10939bc77032bSmrg        # traditional section numbers instead
10940bc77032bSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10941bc77032bSmrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10942bc77032bSmrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10943bc77032bSmrgthen :
10944bc77032bSmrg  printf %s "(cached) " >&6
10945bc77032bSmrgelse $as_nop
10946bc77032bSmrg  test "$cross_compiling" = yes &&
10947bc77032bSmrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10948bc77032bSmrgif test -r "/usr/share/man/man7/attributes.7"; then
10949bc77032bSmrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
10950bc77032bSmrgelse
10951bc77032bSmrg  ac_cv_file__usr_share_man_man7_attributes_7=no
10952bc77032bSmrgfi
10953bc77032bSmrgfi
10954bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10955bc77032bSmrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10956bc77032bSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10957bc77032bSmrgthen :
10958bc77032bSmrg  SYSV_MAN_SECTIONS=false
10959bc77032bSmrgelse $as_nop
10960bc77032bSmrg  SYSV_MAN_SECTIONS=true
10961bc77032bSmrgfi
10962bc77032bSmrg
10963bc77032bSmrg        ;;
10964bc77032bSmrg    *) SYSV_MAN_SECTIONS=false ;;
10965bc77032bSmrgesac
1096689d09728Smrg
10967f931275dSmrgif test x$APP_MAN_SUFFIX = x    ; then
10968f931275dSmrg    APP_MAN_SUFFIX=1
10969f931275dSmrgfi
10970f931275dSmrgif test x$APP_MAN_DIR = x    ; then
10971f931275dSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10972f931275dSmrgfi
1097389d09728Smrg
10974f931275dSmrgif test x$LIB_MAN_SUFFIX = x    ; then
10975f931275dSmrg    LIB_MAN_SUFFIX=3
10976f931275dSmrgfi
10977f931275dSmrgif test x$LIB_MAN_DIR = x    ; then
10978f931275dSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10979f931275dSmrgfi
1098089d09728Smrg
10981f931275dSmrgif test x$FILE_MAN_SUFFIX = x    ; then
10982bc77032bSmrg    case $SYSV_MAN_SECTIONS in
10983bc77032bSmrg	true)				FILE_MAN_SUFFIX=4  ;;
1098438c51623Smrg	*)				FILE_MAN_SUFFIX=5  ;;
10985f931275dSmrg    esac
10986f931275dSmrgfi
10987f931275dSmrgif test x$FILE_MAN_DIR = x    ; then
10988f931275dSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
1098989d09728Smrgfi
1099089d09728Smrg
10991f931275dSmrgif test x$MISC_MAN_SUFFIX = x    ; then
10992bc77032bSmrg    case $SYSV_MAN_SECTIONS in
10993bc77032bSmrg	true)				MISC_MAN_SUFFIX=5  ;;
1099438c51623Smrg	*)				MISC_MAN_SUFFIX=7  ;;
10995f931275dSmrg    esac
10996f931275dSmrgfi
10997f931275dSmrgif test x$MISC_MAN_DIR = x    ; then
10998f931275dSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
1099989d09728Smrgfi
1100089d09728Smrg
11001f931275dSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
11002bc77032bSmrg    case $SYSV_MAN_SECTIONS in
11003bc77032bSmrg	true)				DRIVER_MAN_SUFFIX=7  ;;
1100438c51623Smrg	*)				DRIVER_MAN_SUFFIX=4  ;;
11005f931275dSmrg    esac
11006f931275dSmrgfi
11007f931275dSmrgif test x$DRIVER_MAN_DIR = x    ; then
11008f931275dSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1100948af84faSmrgfi
1101089d09728Smrg
11011f931275dSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
11012bc77032bSmrg    case $SYSV_MAN_SECTIONS in
11013bc77032bSmrg	true)				ADMIN_MAN_SUFFIX=1m ;;
1101438c51623Smrg	*)				ADMIN_MAN_SUFFIX=8  ;;
11015f931275dSmrg    esac
11016f931275dSmrgfi
11017f931275dSmrgif test x$ADMIN_MAN_DIR = x    ; then
11018f931275dSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11019f931275dSmrgfi
1102089d09728Smrg
1102189d09728Smrg
1102289d09728Smrg
11023a9274bcdSmrg
1102466fe65f6Smrg
1102566fe65f6Smrg
1102648af84faSmrg
1102789d09728Smrg
11028f931275dSmrg
11029f931275dSmrg
11030f931275dSmrg
11031f931275dSmrg
11032f931275dSmrg
11033f931275dSmrg
11034f931275dSmrg
11035f931275dSmrgXORG_MAN_PAGE="X Version 11"
11036f931275dSmrg
11037f931275dSmrgMAN_SUBSTS="\
11038f931275dSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11039f931275dSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11040f931275dSmrg	-e 's|__xservername__|Xorg|g' \
11041f931275dSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
11042f931275dSmrg	-e 's|__projectroot__|\$(prefix)|g' \
11043f931275dSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11044f931275dSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11045f931275dSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11046f931275dSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11047f931275dSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11048f931275dSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11049f931275dSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11050f931275dSmrg
11051f931275dSmrg
11052f931275dSmrg
11053f931275dSmrg# Check whether --enable-silent-rules was given.
11054bc77032bSmrgif test ${enable_silent_rules+y}
11055bc77032bSmrgthen :
11056f931275dSmrg  enableval=$enable_silent_rules;
1105748af84faSmrgfi
1105889d09728Smrg
11059c6a6acfbSmrgcase $enable_silent_rules in # (((
11060c6a6acfbSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
11061c6a6acfbSmrg   no) AM_DEFAULT_VERBOSITY=1;;
11062c6a6acfbSmrg    *) AM_DEFAULT_VERBOSITY=0;;
11063f931275dSmrgesac
11064c6a6acfbSmrgam_make=${MAKE-make}
11065bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11066bc77032bSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
11067bc77032bSmrgif test ${am_cv_make_support_nested_variables+y}
11068bc77032bSmrgthen :
11069bc77032bSmrg  printf %s "(cached) " >&6
11070bc77032bSmrgelse $as_nop
11071bc77032bSmrg  if printf "%s\n" 'TRUE=$(BAR$(V))
11072c6a6acfbSmrgBAR0=false
11073c6a6acfbSmrgBAR1=true
11074c6a6acfbSmrgV=1
11075c6a6acfbSmrgam__doit:
11076c6a6acfbSmrg	@$(TRUE)
11077c6a6acfbSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11078c6a6acfbSmrg  am_cv_make_support_nested_variables=yes
11079c6a6acfbSmrgelse
11080c6a6acfbSmrg  am_cv_make_support_nested_variables=no
11081c6a6acfbSmrgfi
11082c6a6acfbSmrgfi
11083bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11084bc77032bSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11085c6a6acfbSmrgif test $am_cv_make_support_nested_variables = yes; then
11086c6a6acfbSmrg    AM_V='$(V)'
11087c6a6acfbSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11088c6a6acfbSmrgelse
11089c6a6acfbSmrg  AM_V=$AM_DEFAULT_VERBOSITY
11090c6a6acfbSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11091c6a6acfbSmrgfi
11092f931275dSmrgAM_BACKSLASH='\'
1109389d09728Smrg
1109489d09728Smrg
1109566fe65f6Smrg
11096c12babebSmrg
11097bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
11098bc77032bSmrgprintf %s "checking for root directory for font files... " >&6; }
11099a9274bcdSmrgfontrootdir='${datadir}/fonts/X11'
1110089d09728Smrg
11101a9274bcdSmrg# Check whether --with-fontrootdir was given.
11102bc77032bSmrgif test ${with_fontrootdir+y}
11103bc77032bSmrgthen :
11104a9274bcdSmrg  withval=$with_fontrootdir; fontrootdir="${withval}"
11105a9274bcdSmrgfi
1110689d09728Smrg
1110789d09728Smrg
11108bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${fontrootdir}" >&5
11109bc77032bSmrgprintf "%s\n" "${fontrootdir}" >&6; }
1111089d09728Smrg
11111a9274bcdSmrgmapdir='${fontrootdir}/util'
1111289d09728Smrg
11113a9274bcdSmrg# Check whether --with-mapdir was given.
11114bc77032bSmrgif test ${with_mapdir+y}
11115bc77032bSmrgthen :
11116a9274bcdSmrg  withval=$with_mapdir; mapdir="${withval}"
11117a9274bcdSmrgfi
11118a9274bcdSmrg
11119a9274bcdSmrgMAPDIR="$mapdir"
1112089d09728Smrg
1112189d09728Smrg
1112248af84faSmrgac_config_files="$ac_config_files Makefile man/Makefile fontutil.m4 fontutil.pc"
1112348af84faSmrg
1112466fe65f6Smrg
1112566fe65f6Smrgcat >confcache <<\_ACEOF
1112666fe65f6Smrg# This file is a shell script that caches the results of configure
1112766fe65f6Smrg# tests run on this system so they can be shared between configure
1112866fe65f6Smrg# scripts and configure runs, see configure's option --config-cache.
1112966fe65f6Smrg# It is not useful on other systems.  If it contains results you don't
1113066fe65f6Smrg# want to keep, you may remove or edit it.
1113166fe65f6Smrg#
1113266fe65f6Smrg# config.status only pays attention to the cache file if you give it
1113366fe65f6Smrg# the --recheck option to rerun configure.
1113466fe65f6Smrg#
1113566fe65f6Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
1113666fe65f6Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
1113766fe65f6Smrg# following values.
1113866fe65f6Smrg
1113966fe65f6Smrg_ACEOF
1114066fe65f6Smrg
1114166fe65f6Smrg# The following way of writing the cache mishandles newlines in values,
1114266fe65f6Smrg# but we know of no workaround that is simple, portable, and efficient.
1114389d09728Smrg# So, we kill variables containing newlines.
1114466fe65f6Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
1114566fe65f6Smrg# and sets the high bit in the cache file unless we assign to the vars.
1114689d09728Smrg(
1114789d09728Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1114889d09728Smrg    eval ac_val=\$$ac_var
1114989d09728Smrg    case $ac_val in #(
1115089d09728Smrg    *${as_nl}*)
1115189d09728Smrg      case $ac_var in #(
11152bc77032bSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11153bc77032bSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1115489d09728Smrg      esac
1115589d09728Smrg      case $ac_var in #(
1115689d09728Smrg      _ | IFS | as_nl) ;; #(
1115789d09728Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1115848af84faSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
1115989d09728Smrg      esac ;;
1116089d09728Smrg    esac
1116189d09728Smrg  done
1116289d09728Smrg
1116366fe65f6Smrg  (set) 2>&1 |
1116489d09728Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
1116589d09728Smrg    *${as_nl}ac_space=\ *)
1116648af84faSmrg      # `set' does not quote correctly, so add quotes: double-quote
1116748af84faSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
1116866fe65f6Smrg      sed -n \
1116966fe65f6Smrg	"s/'/'\\\\''/g;
1117066fe65f6Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1117189d09728Smrg      ;; #(
1117266fe65f6Smrg    *)
1117366fe65f6Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
1117489d09728Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1117566fe65f6Smrg      ;;
1117689d09728Smrg    esac |
1117789d09728Smrg    sort
1117889d09728Smrg) |
1117966fe65f6Smrg  sed '
1118089d09728Smrg     /^ac_cv_env_/b end
1118166fe65f6Smrg     t clear
1118289d09728Smrg     :clear
11183bc77032bSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1118466fe65f6Smrg     t end
1118589d09728Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1118689d09728Smrg     :end' >>confcache
1118789d09728Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1118889d09728Smrg  if test -w "$cache_file"; then
1118948af84faSmrg    if test "x$cache_file" != "x/dev/null"; then
11190bc77032bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11191bc77032bSmrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1119248af84faSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
1119348af84faSmrg	cat confcache >"$cache_file"
1119448af84faSmrg      else
1119548af84faSmrg        case $cache_file in #(
1119648af84faSmrg        */* | ?:*)
1119748af84faSmrg	  mv -f confcache "$cache_file"$$ &&
1119848af84faSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
1119948af84faSmrg        *)
1120048af84faSmrg	  mv -f confcache "$cache_file" ;;
1120148af84faSmrg	esac
1120248af84faSmrg      fi
1120348af84faSmrg    fi
1120466fe65f6Smrg  else
11205bc77032bSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11206bc77032bSmrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1120766fe65f6Smrg  fi
1120866fe65f6Smrgfi
1120966fe65f6Smrgrm -f confcache
1121066fe65f6Smrg
1121166fe65f6Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
1121266fe65f6Smrg# Let make expand exec_prefix.
1121366fe65f6Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1121466fe65f6Smrg
1121566fe65f6SmrgDEFS=-DHAVE_CONFIG_H
1121666fe65f6Smrg
1121766fe65f6Smrgac_libobjs=
1121866fe65f6Smrgac_ltlibobjs=
1121948af84faSmrgU=
1122066fe65f6Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1122166fe65f6Smrg  # 1. Remove the extension, and $U if already installed.
1122289d09728Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11223bc77032bSmrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1122489d09728Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
1122589d09728Smrg  #    will be set to the directory where LIBOBJS objects are built.
1122648af84faSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1122748af84faSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1122866fe65f6Smrgdone
1122966fe65f6SmrgLIBOBJS=$ac_libobjs
1123066fe65f6Smrg
1123166fe65f6SmrgLTLIBOBJS=$ac_ltlibobjs
1123266fe65f6Smrg
1123366fe65f6Smrg
11234bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11235bc77032bSmrgprintf %s "checking that generated files are newer than configure... " >&6; }
11236c6a6acfbSmrg   if test -n "$am_sleep_pid"; then
11237c6a6acfbSmrg     # Hide warnings about reused PIDs.
11238c6a6acfbSmrg     wait $am_sleep_pid 2>/dev/null
11239c6a6acfbSmrg   fi
11240bc77032bSmrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11241bc77032bSmrgprintf "%s\n" "done" >&6; }
11242a9274bcdSmrg if test -n "$EXEEXT"; then
11243a9274bcdSmrg  am__EXEEXT_TRUE=
11244a9274bcdSmrg  am__EXEEXT_FALSE='#'
11245a9274bcdSmrgelse
11246a9274bcdSmrg  am__EXEEXT_TRUE='#'
11247a9274bcdSmrg  am__EXEEXT_FALSE=
11248a9274bcdSmrgfi
11249a9274bcdSmrg
1125066fe65f6Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1125148af84faSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
1125248af84faSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1125389d09728Smrgfi
1125489d09728Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1125548af84faSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1125648af84faSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1125766fe65f6Smrgfi
1125866fe65f6Smrg
1125948af84faSmrg: "${CONFIG_STATUS=./config.status}"
1126089d09728Smrgac_write_fail=0
1126166fe65f6Smrgac_clean_files_save=$ac_clean_files
1126266fe65f6Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
11263bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11264bc77032bSmrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1126548af84faSmrgas_write_fail=0
1126648af84faSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1126766fe65f6Smrg#! $SHELL
1126866fe65f6Smrg# Generated by $as_me.
1126966fe65f6Smrg# Run this file to recreate the current configuration.
1127066fe65f6Smrg# Compiler output produced by configure, useful for debugging
1127166fe65f6Smrg# configure, is in config.log if it exists.
1127266fe65f6Smrg
1127366fe65f6Smrgdebug=false
1127466fe65f6Smrgac_cs_recheck=false
1127566fe65f6Smrgac_cs_silent=false
11276a9274bcdSmrg
1127748af84faSmrgSHELL=\${CONFIG_SHELL-$SHELL}
1127848af84faSmrgexport SHELL
1127948af84faSmrg_ASEOF
1128048af84faSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
1128148af84faSmrg## -------------------- ##
1128248af84faSmrg## M4sh Initialization. ##
1128348af84faSmrg## -------------------- ##
1128489d09728Smrg
1128589d09728Smrg# Be more Bourne compatible
1128689d09728SmrgDUALCASE=1; export DUALCASE # for MKS sh
11287bc77032bSmrgas_nop=:
11288bc77032bSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11289bc77032bSmrgthen :
1129066fe65f6Smrg  emulate sh
1129166fe65f6Smrg  NULLCMD=:
1129289d09728Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1129366fe65f6Smrg  # is contrary to our usage.  Disable this feature.
1129466fe65f6Smrg  alias -g '${1+"$@"}'='"$@"'
1129589d09728Smrg  setopt NO_GLOB_SUBST
11296bc77032bSmrgelse $as_nop
1129748af84faSmrg  case `(set -o) 2>/dev/null` in #(
1129848af84faSmrg  *posix*) :
1129948af84faSmrg    set -o posix ;; #(
1130048af84faSmrg  *) :
1130148af84faSmrg     ;;
1130289d09728Smrgesac
1130366fe65f6Smrgfi
1130466fe65f6Smrg
1130589d09728Smrg
11306bc77032bSmrg
11307bc77032bSmrg# Reset variables that may have inherited troublesome values from
11308bc77032bSmrg# the environment.
11309bc77032bSmrg
11310bc77032bSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
11311bc77032bSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
11312bc77032bSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
11313bc77032bSmrg# Quoting is to prevent editors from complaining about space-tab.
1131489d09728Smrgas_nl='
1131589d09728Smrg'
1131689d09728Smrgexport as_nl
11317bc77032bSmrgIFS=" ""	$as_nl"
11318bc77032bSmrg
11319bc77032bSmrgPS1='$ '
11320bc77032bSmrgPS2='> '
11321bc77032bSmrgPS4='+ '
11322bc77032bSmrg
11323bc77032bSmrg# Ensure predictable behavior from utilities with locale-dependent output.
11324bc77032bSmrgLC_ALL=C
11325bc77032bSmrgexport LC_ALL
11326bc77032bSmrgLANGUAGE=C
11327bc77032bSmrgexport LANGUAGE
11328bc77032bSmrg
11329bc77032bSmrg# We cannot yet rely on "unset" to work, but we need these variables
11330bc77032bSmrg# to be unset--not just set to an empty or harmless value--now, to
11331bc77032bSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11332bc77032bSmrg# also avoids known problems related to "unset" and subshell syntax
11333bc77032bSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11334bc77032bSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11335bc77032bSmrgdo eval test \${$as_var+y} \
11336bc77032bSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11337bc77032bSmrgdone
11338bc77032bSmrg
11339bc77032bSmrg# Ensure that fds 0, 1, and 2 are open.
11340bc77032bSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11341bc77032bSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11342bc77032bSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
1134389d09728Smrg
1134489d09728Smrg# The user is always right.
11345bc77032bSmrgif ${PATH_SEPARATOR+false} :; then
1134689d09728Smrg  PATH_SEPARATOR=:
1134789d09728Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
1134889d09728Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
1134989d09728Smrg      PATH_SEPARATOR=';'
1135089d09728Smrg  }
1135166fe65f6Smrgfi
1135266fe65f6Smrg
1135366fe65f6Smrg
1135489d09728Smrg# Find who we are.  Look in the path if we contain no directory separator.
1135548af84faSmrgas_myself=
1135648af84faSmrgcase $0 in #((
1135789d09728Smrg  *[\\/]* ) as_myself=$0 ;;
1135889d09728Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1135989d09728Smrgfor as_dir in $PATH
1136089d09728Smrgdo
1136189d09728Smrg  IFS=$as_save_IFS
11362bc77032bSmrg  case $as_dir in #(((
11363bc77032bSmrg    '') as_dir=./ ;;
11364bc77032bSmrg    */) ;;
11365bc77032bSmrg    *) as_dir=$as_dir/ ;;
11366bc77032bSmrg  esac
11367bc77032bSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1136848af84faSmrg  done
1136989d09728SmrgIFS=$as_save_IFS
1137089d09728Smrg
1137189d09728Smrg     ;;
1137289d09728Smrgesac
1137389d09728Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1137489d09728Smrg# in which case we are not to be found in the path.
1137589d09728Smrgif test "x$as_myself" = x; then
1137689d09728Smrg  as_myself=$0
1137789d09728Smrgfi
1137889d09728Smrgif test ! -f "$as_myself"; then
11379bc77032bSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1138048af84faSmrg  exit 1
1138189d09728Smrgfi
1138289d09728Smrg
1138348af84faSmrg
1138448af84faSmrg
1138548af84faSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
1138648af84faSmrg# ----------------------------------------
1138748af84faSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
1138848af84faSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1138948af84faSmrg# script with STATUS, using 1 if that was 0.
1139048af84faSmrgas_fn_error ()
1139148af84faSmrg{
1139248af84faSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
1139348af84faSmrg  if test "$4"; then
1139448af84faSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11395bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1139648af84faSmrg  fi
11397bc77032bSmrg  printf "%s\n" "$as_me: error: $2" >&2
1139848af84faSmrg  as_fn_exit $as_status
1139948af84faSmrg} # as_fn_error
1140048af84faSmrg
1140148af84faSmrg
11402bc77032bSmrg
1140348af84faSmrg# as_fn_set_status STATUS
1140448af84faSmrg# -----------------------
1140548af84faSmrg# Set $? to STATUS, without forking.
1140648af84faSmrgas_fn_set_status ()
1140748af84faSmrg{
1140848af84faSmrg  return $1
1140948af84faSmrg} # as_fn_set_status
1141048af84faSmrg
1141148af84faSmrg# as_fn_exit STATUS
1141248af84faSmrg# -----------------
1141348af84faSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
1141448af84faSmrgas_fn_exit ()
1141548af84faSmrg{
1141648af84faSmrg  set +e
1141748af84faSmrg  as_fn_set_status $1
1141848af84faSmrg  exit $1
1141948af84faSmrg} # as_fn_exit
1142048af84faSmrg
1142148af84faSmrg# as_fn_unset VAR
1142248af84faSmrg# ---------------
1142348af84faSmrg# Portably unset VAR.
1142448af84faSmrgas_fn_unset ()
1142548af84faSmrg{
1142648af84faSmrg  { eval $1=; unset $1;}
1142748af84faSmrg}
1142848af84faSmrgas_unset=as_fn_unset
11429bc77032bSmrg
1143048af84faSmrg# as_fn_append VAR VALUE
1143148af84faSmrg# ----------------------
1143248af84faSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
1143348af84faSmrg# advantage of any shell optimizations that allow amortized linear growth over
1143448af84faSmrg# repeated appends, instead of the typical quadratic growth present in naive
1143548af84faSmrg# implementations.
11436bc77032bSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11437bc77032bSmrgthen :
1143848af84faSmrg  eval 'as_fn_append ()
1143948af84faSmrg  {
1144048af84faSmrg    eval $1+=\$2
1144148af84faSmrg  }'
11442bc77032bSmrgelse $as_nop
1144348af84faSmrg  as_fn_append ()
1144448af84faSmrg  {
1144548af84faSmrg    eval $1=\$$1\$2
1144648af84faSmrg  }
1144748af84faSmrgfi # as_fn_append
1144848af84faSmrg
1144948af84faSmrg# as_fn_arith ARG...
1145048af84faSmrg# ------------------
1145148af84faSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
1145248af84faSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
1145348af84faSmrg# must be portable across $(()) and expr.
11454bc77032bSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11455bc77032bSmrgthen :
1145648af84faSmrg  eval 'as_fn_arith ()
1145748af84faSmrg  {
1145848af84faSmrg    as_val=$(( $* ))
1145948af84faSmrg  }'
11460bc77032bSmrgelse $as_nop
1146148af84faSmrg  as_fn_arith ()
1146248af84faSmrg  {
1146348af84faSmrg    as_val=`expr "$@" || test $? -eq 1`
1146448af84faSmrg  }
1146548af84faSmrgfi # as_fn_arith
1146648af84faSmrg
1146748af84faSmrg
1146889d09728Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
1146989d09728Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1147066fe65f6Smrg  as_expr=expr
1147166fe65f6Smrgelse
1147266fe65f6Smrg  as_expr=false
1147366fe65f6Smrgfi
1147466fe65f6Smrg
1147589d09728Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1147666fe65f6Smrg  as_basename=basename
1147766fe65f6Smrgelse
1147866fe65f6Smrg  as_basename=false
1147966fe65f6Smrgfi
1148066fe65f6Smrg
1148148af84faSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
1148248af84faSmrg  as_dirname=dirname
1148348af84faSmrgelse
1148448af84faSmrg  as_dirname=false
1148548af84faSmrgfi
1148666fe65f6Smrg
1148789d09728Smrgas_me=`$as_basename -- "$0" ||
1148866fe65f6Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1148966fe65f6Smrg	 X"$0" : 'X\(//\)$' \| \
1149089d09728Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11491bc77032bSmrgprintf "%s\n" X/"$0" |
1149289d09728Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1149389d09728Smrg	    s//\1/
1149489d09728Smrg	    q
1149589d09728Smrg	  }
1149689d09728Smrg	  /^X\/\(\/\/\)$/{
1149789d09728Smrg	    s//\1/
1149889d09728Smrg	    q
1149989d09728Smrg	  }
1150089d09728Smrg	  /^X\/\(\/\).*/{
1150189d09728Smrg	    s//\1/
1150289d09728Smrg	    q
1150389d09728Smrg	  }
1150489d09728Smrg	  s/.*/./; q'`
1150566fe65f6Smrg
1150648af84faSmrg# Avoid depending upon Character Ranges.
1150748af84faSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
1150848af84faSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1150948af84faSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
1151048af84faSmrgas_cr_digits='0123456789'
1151148af84faSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
1151266fe65f6Smrg
11513bc77032bSmrg
11514bc77032bSmrg# Determine whether it's possible to make 'echo' print without a newline.
11515bc77032bSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11516bc77032bSmrg# for compatibility with existing Makefiles.
1151789d09728SmrgECHO_C= ECHO_N= ECHO_T=
1151848af84faSmrgcase `echo -n x` in #(((((
1151989d09728Smrg-n*)
1152048af84faSmrg  case `echo 'xy\c'` in
1152189d09728Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
1152248af84faSmrg  xy)  ECHO_C='\c';;
1152348af84faSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
1152448af84faSmrg       ECHO_T='	';;
1152589d09728Smrg  esac;;
1152689d09728Smrg*)
1152789d09728Smrg  ECHO_N='-n';;
1152866fe65f6Smrgesac
1152966fe65f6Smrg
11530bc77032bSmrg# For backward compatibility with old third-party macros, we provide
11531bc77032bSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
11532bc77032bSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11533bc77032bSmrgas_echo='printf %s\n'
11534bc77032bSmrgas_echo_n='printf %s'
11535bc77032bSmrg
1153689d09728Smrgrm -f conf$$ conf$$.exe conf$$.file
1153789d09728Smrgif test -d conf$$.dir; then
1153889d09728Smrg  rm -f conf$$.dir/conf$$.file
1153966fe65f6Smrgelse
1154089d09728Smrg  rm -f conf$$.dir
1154189d09728Smrg  mkdir conf$$.dir 2>/dev/null
1154266fe65f6Smrgfi
1154389d09728Smrgif (echo >conf$$.file) 2>/dev/null; then
1154489d09728Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
1154566fe65f6Smrg    as_ln_s='ln -s'
1154689d09728Smrg    # ... but there are two gotchas:
1154789d09728Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1154889d09728Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11549c6a6acfbSmrg    # In both cases, we have to default to `cp -pR'.
1155089d09728Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11551c6a6acfbSmrg      as_ln_s='cp -pR'
1155289d09728Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
1155389d09728Smrg    as_ln_s=ln
1155489d09728Smrg  else
11555c6a6acfbSmrg    as_ln_s='cp -pR'
1155666fe65f6Smrg  fi
1155766fe65f6Smrgelse
11558c6a6acfbSmrg  as_ln_s='cp -pR'
1155966fe65f6Smrgfi
1156089d09728Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1156189d09728Smrgrmdir conf$$.dir 2>/dev/null
1156289d09728Smrg
1156348af84faSmrg
1156448af84faSmrg# as_fn_mkdir_p
1156548af84faSmrg# -------------
1156648af84faSmrg# Create "$as_dir" as a directory, including parents if necessary.
1156748af84faSmrgas_fn_mkdir_p ()
1156848af84faSmrg{
1156948af84faSmrg
1157048af84faSmrg  case $as_dir in #(
1157148af84faSmrg  -*) as_dir=./$as_dir;;
1157248af84faSmrg  esac
1157348af84faSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
1157448af84faSmrg    as_dirs=
1157548af84faSmrg    while :; do
1157648af84faSmrg      case $as_dir in #(
11577bc77032bSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1157848af84faSmrg      *) as_qdir=$as_dir;;
1157948af84faSmrg      esac
1158048af84faSmrg      as_dirs="'$as_qdir' $as_dirs"
1158148af84faSmrg      as_dir=`$as_dirname -- "$as_dir" ||
1158248af84faSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1158348af84faSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
1158448af84faSmrg	 X"$as_dir" : 'X\(//\)$' \| \
1158548af84faSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11586bc77032bSmrgprintf "%s\n" X"$as_dir" |
1158748af84faSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1158848af84faSmrg	    s//\1/
1158948af84faSmrg	    q
1159048af84faSmrg	  }
1159148af84faSmrg	  /^X\(\/\/\)[^/].*/{
1159248af84faSmrg	    s//\1/
1159348af84faSmrg	    q
1159448af84faSmrg	  }
1159548af84faSmrg	  /^X\(\/\/\)$/{
1159648af84faSmrg	    s//\1/
1159748af84faSmrg	    q
1159848af84faSmrg	  }
1159948af84faSmrg	  /^X\(\/\).*/{
1160048af84faSmrg	    s//\1/
1160148af84faSmrg	    q
1160248af84faSmrg	  }
1160348af84faSmrg	  s/.*/./; q'`
1160448af84faSmrg      test -d "$as_dir" && break
1160548af84faSmrg    done
1160648af84faSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
1160748af84faSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1160848af84faSmrg
1160948af84faSmrg
1161048af84faSmrg} # as_fn_mkdir_p
1161166fe65f6Smrgif mkdir -p . 2>/dev/null; then
1161248af84faSmrg  as_mkdir_p='mkdir -p "$as_dir"'
1161366fe65f6Smrgelse
1161466fe65f6Smrg  test -d ./-p && rmdir ./-p
1161566fe65f6Smrg  as_mkdir_p=false
1161666fe65f6Smrgfi
1161766fe65f6Smrg
11618c6a6acfbSmrg
11619c6a6acfbSmrg# as_fn_executable_p FILE
11620c6a6acfbSmrg# -----------------------
11621c6a6acfbSmrg# Test if FILE is an executable regular file.
11622c6a6acfbSmrgas_fn_executable_p ()
11623c6a6acfbSmrg{
11624c6a6acfbSmrg  test -f "$1" && test -x "$1"
11625c6a6acfbSmrg} # as_fn_executable_p
11626c6a6acfbSmrgas_test_x='test -x'
11627c6a6acfbSmrgas_executable_p=as_fn_executable_p
1162866fe65f6Smrg
1162966fe65f6Smrg# Sed expression to map a string onto a valid CPP name.
1163066fe65f6Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1163166fe65f6Smrg
1163266fe65f6Smrg# Sed expression to map a string onto a valid variable name.
1163366fe65f6Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1163466fe65f6Smrg
1163566fe65f6Smrg
1163666fe65f6Smrgexec 6>&1
1163748af84faSmrg## ----------------------------------- ##
1163848af84faSmrg## Main body of $CONFIG_STATUS script. ##
1163948af84faSmrg## ----------------------------------- ##
1164048af84faSmrg_ASEOF
1164148af84faSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1164289d09728Smrg
1164348af84faSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1164448af84faSmrg# Save the log message, to keep $0 and so on meaningful, and to
1164566fe65f6Smrg# report actual input values of CONFIG_FILES etc. instead of their
1164689d09728Smrg# values after options handling.
1164789d09728Smrgac_log="
11648c12babebSmrgThis file was extended by font-util $as_me 1.4.0, which was
11649bc77032bSmrggenerated by GNU Autoconf 2.71.  Invocation command line was
1165066fe65f6Smrg
1165166fe65f6Smrg  CONFIG_FILES    = $CONFIG_FILES
1165266fe65f6Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
1165366fe65f6Smrg  CONFIG_LINKS    = $CONFIG_LINKS
1165466fe65f6Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
1165566fe65f6Smrg  $ $0 $@
1165666fe65f6Smrg
1165789d09728Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
1165889d09728Smrg"
1165989d09728Smrg
1166066fe65f6Smrg_ACEOF
1166166fe65f6Smrg
1166289d09728Smrgcase $ac_config_files in *"
1166389d09728Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
1166489d09728Smrgesac
1166566fe65f6Smrg
1166689d09728Smrgcase $ac_config_headers in *"
1166789d09728Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
1166889d09728Smrgesac
1166966fe65f6Smrg
1167066fe65f6Smrg
1167189d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1167289d09728Smrg# Files that config.status was made for.
1167389d09728Smrgconfig_files="$ac_config_files"
1167489d09728Smrgconfig_headers="$ac_config_headers"
1167589d09728Smrgconfig_commands="$ac_config_commands"
1167666fe65f6Smrg
1167789d09728Smrg_ACEOF
1167866fe65f6Smrg
1167989d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1168066fe65f6Smrgac_cs_usage="\
1168148af84faSmrg\`$as_me' instantiates files and other configuration actions
1168248af84faSmrgfrom templates according to the current configuration.  Unless the files
1168348af84faSmrgand actions are specified as TAGs, all are instantiated by default.
1168466fe65f6Smrg
1168548af84faSmrgUsage: $0 [OPTION]... [TAG]...
1168666fe65f6Smrg
1168766fe65f6Smrg  -h, --help       print this help, then exit
1168889d09728Smrg  -V, --version    print version number and configuration settings, then exit
1168948af84faSmrg      --config     print configuration, then exit
1169089d09728Smrg  -q, --quiet, --silent
1169189d09728Smrg                   do not print progress messages
1169266fe65f6Smrg  -d, --debug      don't remove temporary files
1169366fe65f6Smrg      --recheck    update $as_me by reconfiguring in the same conditions
1169489d09728Smrg      --file=FILE[:TEMPLATE]
1169589d09728Smrg                   instantiate the configuration file FILE
1169689d09728Smrg      --header=FILE[:TEMPLATE]
1169789d09728Smrg                   instantiate the configuration header FILE
1169866fe65f6Smrg
1169966fe65f6SmrgConfiguration files:
1170066fe65f6Smrg$config_files
1170166fe65f6Smrg
1170266fe65f6SmrgConfiguration headers:
1170366fe65f6Smrg$config_headers
1170466fe65f6Smrg
1170566fe65f6SmrgConfiguration commands:
1170666fe65f6Smrg$config_commands
1170766fe65f6Smrg
11708c12babebSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/font/util/-/issues>."
1170966fe65f6Smrg
1171089d09728Smrg_ACEOF
11711bc77032bSmrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11712bc77032bSmrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1171389d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11714bc77032bSmrgac_cs_config='$ac_cs_config_escaped'
1171566fe65f6Smrgac_cs_version="\\
11716c12babebSmrgfont-util config.status 1.4.0
11717bc77032bSmrgconfigured by $0, generated by GNU Autoconf 2.71,
1171848af84faSmrg  with options \\"\$ac_cs_config\\"
1171966fe65f6Smrg
11720bc77032bSmrgCopyright (C) 2021 Free Software Foundation, Inc.
1172166fe65f6SmrgThis config.status script is free software; the Free Software Foundation
1172266fe65f6Smrggives unlimited permission to copy, distribute and modify it."
1172389d09728Smrg
1172489d09728Smrgac_pwd='$ac_pwd'
1172589d09728Smrgsrcdir='$srcdir'
1172689d09728SmrgINSTALL='$INSTALL'
1172789d09728SmrgMKDIR_P='$MKDIR_P'
1172889d09728SmrgAWK='$AWK'
1172989d09728Smrgtest -n "\$AWK" || AWK=awk
1173066fe65f6Smrg_ACEOF
1173166fe65f6Smrg
1173289d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1173389d09728Smrg# The default lists apply if the user does not specify any file.
1173466fe65f6Smrgac_need_defaults=:
1173566fe65f6Smrgwhile test $# != 0
1173666fe65f6Smrgdo
1173766fe65f6Smrg  case $1 in
1173848af84faSmrg  --*=?*)
1173989d09728Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1174089d09728Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1174166fe65f6Smrg    ac_shift=:
1174266fe65f6Smrg    ;;
1174348af84faSmrg  --*=)
1174448af84faSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1174548af84faSmrg    ac_optarg=
1174648af84faSmrg    ac_shift=:
1174748af84faSmrg    ;;
1174889d09728Smrg  *)
1174966fe65f6Smrg    ac_option=$1
1175066fe65f6Smrg    ac_optarg=$2
1175166fe65f6Smrg    ac_shift=shift
1175266fe65f6Smrg    ;;
1175366fe65f6Smrg  esac
1175466fe65f6Smrg
1175566fe65f6Smrg  case $ac_option in
1175666fe65f6Smrg  # Handling of the options.
1175766fe65f6Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1175866fe65f6Smrg    ac_cs_recheck=: ;;
1175989d09728Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11760bc77032bSmrg    printf "%s\n" "$ac_cs_version"; exit ;;
1176148af84faSmrg  --config | --confi | --conf | --con | --co | --c )
11762bc77032bSmrg    printf "%s\n" "$ac_cs_config"; exit ;;
1176389d09728Smrg  --debug | --debu | --deb | --de | --d | -d )
1176466fe65f6Smrg    debug=: ;;
1176566fe65f6Smrg  --file | --fil | --fi | --f )
1176666fe65f6Smrg    $ac_shift
1176789d09728Smrg    case $ac_optarg in
11768bc77032bSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1176948af84faSmrg    '') as_fn_error $? "missing file argument" ;;
1177089d09728Smrg    esac
1177148af84faSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
1177266fe65f6Smrg    ac_need_defaults=false;;
1177366fe65f6Smrg  --header | --heade | --head | --hea )
1177466fe65f6Smrg    $ac_shift
1177589d09728Smrg    case $ac_optarg in
11776bc77032bSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1177789d09728Smrg    esac
1177848af84faSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1177966fe65f6Smrg    ac_need_defaults=false;;
1178089d09728Smrg  --he | --h)
1178189d09728Smrg    # Conflict between --help and --header
1178248af84faSmrg    as_fn_error $? "ambiguous option: \`$1'
1178348af84faSmrgTry \`$0 --help' for more information.";;
1178489d09728Smrg  --help | --hel | -h )
11785bc77032bSmrg    printf "%s\n" "$ac_cs_usage"; exit ;;
1178666fe65f6Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178766fe65f6Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
1178866fe65f6Smrg    ac_cs_silent=: ;;
1178966fe65f6Smrg
1179066fe65f6Smrg  # This is an error.
1179148af84faSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
1179248af84faSmrgTry \`$0 --help' for more information." ;;
1179366fe65f6Smrg
1179448af84faSmrg  *) as_fn_append ac_config_targets " $1"
1179589d09728Smrg     ac_need_defaults=false ;;
1179666fe65f6Smrg
1179766fe65f6Smrg  esac
1179866fe65f6Smrg  shift
1179966fe65f6Smrgdone
1180066fe65f6Smrg
1180166fe65f6Smrgac_configure_extra_args=
1180266fe65f6Smrg
1180366fe65f6Smrgif $ac_cs_silent; then
1180466fe65f6Smrg  exec 6>/dev/null
1180566fe65f6Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
1180666fe65f6Smrgfi
1180766fe65f6Smrg
1180866fe65f6Smrg_ACEOF
1180989d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1181066fe65f6Smrgif \$ac_cs_recheck; then
11811c6a6acfbSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1181289d09728Smrg  shift
11813bc77032bSmrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1181489d09728Smrg  CONFIG_SHELL='$SHELL'
1181589d09728Smrg  export CONFIG_SHELL
1181689d09728Smrg  exec "\$@"
1181766fe65f6Smrgfi
1181866fe65f6Smrg
1181966fe65f6Smrg_ACEOF
1182089d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1182189d09728Smrgexec 5>>config.log
1182289d09728Smrg{
1182389d09728Smrg  echo
1182489d09728Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1182589d09728Smrg## Running $as_me. ##
1182689d09728Smrg_ASBOX
11827bc77032bSmrg  printf "%s\n" "$ac_log"
1182889d09728Smrg} >&5
1182966fe65f6Smrg
1183089d09728Smrg_ACEOF
1183189d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1183266fe65f6Smrg#
1183389d09728Smrg# INIT-COMMANDS
1183466fe65f6Smrg#
11835bc77032bSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1183666fe65f6Smrg
1183766fe65f6Smrg_ACEOF
1183866fe65f6Smrg
1183989d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1184066fe65f6Smrg
1184189d09728Smrg# Handling of arguments.
1184266fe65f6Smrgfor ac_config_target in $ac_config_targets
1184366fe65f6Smrgdo
1184489d09728Smrg  case $ac_config_target in
1184589d09728Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1184689d09728Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1184789d09728Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1184848af84faSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11849a9274bcdSmrg    "fontutil.m4") CONFIG_FILES="$CONFIG_FILES fontutil.m4" ;;
1185089d09728Smrg    "fontutil.pc") CONFIG_FILES="$CONFIG_FILES fontutil.pc" ;;
1185189d09728Smrg
1185248af84faSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1185366fe65f6Smrg  esac
1185466fe65f6Smrgdone
1185566fe65f6Smrg
1185689d09728Smrg
1185766fe65f6Smrg# If the user did not use the arguments to specify the items to instantiate,
1185866fe65f6Smrg# then the envvar interface is used.  Set only those that are not.
1185966fe65f6Smrg# We use the long form for the default assignment because of an extremely
1186066fe65f6Smrg# bizarre bug on SunOS 4.1.3.
1186166fe65f6Smrgif $ac_need_defaults; then
11862bc77032bSmrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11863bc77032bSmrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11864bc77032bSmrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1186566fe65f6Smrgfi
1186666fe65f6Smrg
1186766fe65f6Smrg# Have a temporary directory for convenience.  Make it in the build tree
1186889d09728Smrg# simply because there is no reason against having it here, and in addition,
1186966fe65f6Smrg# creating and moving files from /tmp can sometimes cause problems.
1187089d09728Smrg# Hook for its removal unless debugging.
1187189d09728Smrg# Note that there is a small window in which the directory will not be cleaned:
1187289d09728Smrg# after its creation but before its name has been assigned to `$tmp'.
1187366fe65f6Smrg$debug ||
1187466fe65f6Smrg{
1187548af84faSmrg  tmp= ac_tmp=
1187689d09728Smrg  trap 'exit_status=$?
1187748af84faSmrg  : "${ac_tmp:=$tmp}"
1187848af84faSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1187989d09728Smrg' 0
1188048af84faSmrg  trap 'as_fn_exit 1' 1 2 13 15
1188166fe65f6Smrg}
1188266fe65f6Smrg# Create a (secure) tmp directory for tmp files.
1188366fe65f6Smrg
1188466fe65f6Smrg{
1188589d09728Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1188648af84faSmrg  test -d "$tmp"
1188766fe65f6Smrg}  ||
1188866fe65f6Smrg{
1188989d09728Smrg  tmp=./conf$$-$RANDOM
1189089d09728Smrg  (umask 077 && mkdir "$tmp")
1189148af84faSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1189248af84faSmrgac_tmp=$tmp
1189389d09728Smrg
1189489d09728Smrg# Set up the scripts for CONFIG_FILES section.
1189589d09728Smrg# No need to generate them if there are no CONFIG_FILES.
1189689d09728Smrg# This happens for instance with `./config.status config.h'.
1189789d09728Smrgif test -n "$CONFIG_FILES"; then
1189889d09728Smrg
1189989d09728Smrg
1190048af84faSmrgac_cr=`echo X | tr X '\015'`
1190148af84faSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
1190248af84faSmrg# But we know of no other shell where ac_cr would be empty at this
1190348af84faSmrg# point, so we can use a bashism as a fallback.
1190448af84faSmrgif test "x$ac_cr" = x; then
1190548af84faSmrg  eval ac_cr=\$\'\\r\'
1190648af84faSmrgfi
1190789d09728Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
1190889d09728Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11909a9274bcdSmrg  ac_cs_awk_cr='\\r'
1191089d09728Smrgelse
1191189d09728Smrg  ac_cs_awk_cr=$ac_cr
1191289d09728Smrgfi
1191389d09728Smrg
1191448af84faSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1191589d09728Smrg_ACEOF
1191689d09728Smrg
1191789d09728Smrg
1191866fe65f6Smrg{
1191989d09728Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
1192089d09728Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
1192189d09728Smrg  echo "_ACEOF"
1192289d09728Smrg} >conf$$subs.sh ||
1192348af84faSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1192448af84faSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1192589d09728Smrgac_delim='%!_!# '
1192689d09728Smrgfor ac_last_try in false false false false false :; do
1192789d09728Smrg  . ./conf$$subs.sh ||
1192848af84faSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1192989d09728Smrg
1193089d09728Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
1193189d09728Smrg  if test $ac_delim_n = $ac_delim_num; then
1193289d09728Smrg    break
1193389d09728Smrg  elif $ac_last_try; then
1193448af84faSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1193589d09728Smrg  else
1193689d09728Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1193789d09728Smrg  fi
1193889d09728Smrgdone
1193989d09728Smrgrm -f conf$$subs.sh
1194066fe65f6Smrg
1194189d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1194248af84faSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1194366fe65f6Smrg_ACEOF
1194489d09728Smrgsed -n '
1194589d09728Smrgh
1194689d09728Smrgs/^/S["/; s/!.*/"]=/
1194789d09728Smrgp
1194889d09728Smrgg
1194989d09728Smrgs/^[^!]*!//
1195089d09728Smrg:repl
1195189d09728Smrgt repl
1195289d09728Smrgs/'"$ac_delim"'$//
1195389d09728Smrgt delim
1195489d09728Smrg:nl
1195589d09728Smrgh
1195648af84faSmrgs/\(.\{148\}\)..*/\1/
1195789d09728Smrgt more1
1195889d09728Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
1195989d09728Smrgp
1196089d09728Smrgn
1196189d09728Smrgb repl
1196289d09728Smrg:more1
1196389d09728Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1196489d09728Smrgp
1196589d09728Smrgg
1196689d09728Smrgs/.\{148\}//
1196789d09728Smrgt nl
1196889d09728Smrg:delim
1196989d09728Smrgh
1197048af84faSmrgs/\(.\{148\}\)..*/\1/
1197189d09728Smrgt more2
1197289d09728Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
1197389d09728Smrgp
1197489d09728Smrgb
1197589d09728Smrg:more2
1197689d09728Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1197789d09728Smrgp
1197889d09728Smrgg
1197989d09728Smrgs/.\{148\}//
1198089d09728Smrgt delim
1198189d09728Smrg' <conf$$subs.awk | sed '
1198289d09728Smrg/^[^""]/{
1198389d09728Smrg  N
1198489d09728Smrg  s/\n//
1198589d09728Smrg}
1198689d09728Smrg' >>$CONFIG_STATUS || ac_write_fail=1
1198789d09728Smrgrm -f conf$$subs.awk
1198889d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1198989d09728Smrg_ACAWK
1199048af84faSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1199189d09728Smrg  for (key in S) S_is_set[key] = 1
1199289d09728Smrg  FS = ""
1199366fe65f6Smrg
1199489d09728Smrg}
1199589d09728Smrg{
1199689d09728Smrg  line = $ 0
1199789d09728Smrg  nfields = split(line, field, "@")
1199889d09728Smrg  substed = 0
1199989d09728Smrg  len = length(field[1])
1200089d09728Smrg  for (i = 2; i < nfields; i++) {
1200189d09728Smrg    key = field[i]
1200289d09728Smrg    keylen = length(key)
1200389d09728Smrg    if (S_is_set[key]) {
1200489d09728Smrg      value = S[key]
1200589d09728Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
1200689d09728Smrg      len += length(value) + length(field[++i])
1200789d09728Smrg      substed = 1
1200889d09728Smrg    } else
1200989d09728Smrg      len += 1 + keylen
1201089d09728Smrg  }
1201189d09728Smrg
1201289d09728Smrg  print line
1201389d09728Smrg}
1201466fe65f6Smrg
1201589d09728Smrg_ACAWK
1201689d09728Smrg_ACEOF
1201789d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1201889d09728Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
1201989d09728Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1202089d09728Smrgelse
1202189d09728Smrg  cat
1202248af84faSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1202348af84faSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1202489d09728Smrg_ACEOF
1202589d09728Smrg
1202648af84faSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
1202748af84faSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1202889d09728Smrg# trailing colons and then remove the whole line if VPATH becomes empty
1202989d09728Smrg# (actually we leave an empty line to preserve line numbers).
1203089d09728Smrgif test "x$srcdir" = x.; then
1203148af84faSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
1203248af84faSmrgh
1203348af84faSmrgs///
1203448af84faSmrgs/^/:/
1203548af84faSmrgs/[	 ]*$/:/
1203648af84faSmrgs/:\$(srcdir):/:/g
1203748af84faSmrgs/:\${srcdir}:/:/g
1203848af84faSmrgs/:@srcdir@:/:/g
1203948af84faSmrgs/^:*//
1204089d09728Smrgs/:*$//
1204148af84faSmrgx
1204248af84faSmrgs/\(=[	 ]*\).*/\1/
1204348af84faSmrgG
1204448af84faSmrgs/\n//
1204589d09728Smrgs/^[^=]*=[	 ]*$//
1204689d09728Smrg}'
1204789d09728Smrgfi
1204866fe65f6Smrg
1204989d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1205089d09728Smrgfi # test -n "$CONFIG_FILES"
1205166fe65f6Smrg
1205289d09728Smrg# Set up the scripts for CONFIG_HEADERS section.
1205389d09728Smrg# No need to generate them if there are no CONFIG_HEADERS.
1205489d09728Smrg# This happens for instance with `./config.status Makefile'.
1205589d09728Smrgif test -n "$CONFIG_HEADERS"; then
1205648af84faSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1205789d09728SmrgBEGIN {
1205866fe65f6Smrg_ACEOF
1205966fe65f6Smrg
1206089d09728Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
1206189d09728Smrg# here-document in config.status, that substitutes the proper values into
1206289d09728Smrg# config.h.in to produce config.h.
1206389d09728Smrg
1206489d09728Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
1206589d09728Smrg# handling of long lines.
1206689d09728Smrgac_delim='%!_!# '
1206789d09728Smrgfor ac_last_try in false false :; do
1206848af84faSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
1206948af84faSmrg  if test -z "$ac_tt"; then
1207089d09728Smrg    break
1207189d09728Smrg  elif $ac_last_try; then
1207248af84faSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1207389d09728Smrg  else
1207489d09728Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1207566fe65f6Smrg  fi
1207689d09728Smrgdone
1207766fe65f6Smrg
1207889d09728Smrg# For the awk script, D is an array of macro values keyed by name,
1207989d09728Smrg# likewise P contains macro parameters if any.  Preserve backslash
1208089d09728Smrg# newline sequences.
1208189d09728Smrg
1208289d09728Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
1208389d09728Smrgsed -n '
1208489d09728Smrgs/.\{148\}/&'"$ac_delim"'/g
1208589d09728Smrgt rset
1208689d09728Smrg:rset
1208789d09728Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
1208889d09728Smrgt def
1208989d09728Smrgd
1209089d09728Smrg:def
1209189d09728Smrgs/\\$//
1209289d09728Smrgt bsnl
1209389d09728Smrgs/["\\]/\\&/g
1209489d09728Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1209589d09728SmrgD["\1"]=" \3"/p
1209689d09728Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
1209789d09728Smrgd
1209889d09728Smrg:bsnl
1209989d09728Smrgs/["\\]/\\&/g
1210089d09728Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1210189d09728SmrgD["\1"]=" \3\\\\\\n"\\/p
1210289d09728Smrgt cont
1210389d09728Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
1210489d09728Smrgt cont
1210589d09728Smrgd
1210689d09728Smrg:cont
1210789d09728Smrgn
1210889d09728Smrgs/.\{148\}/&'"$ac_delim"'/g
1210989d09728Smrgt clear
1211089d09728Smrg:clear
1211189d09728Smrgs/\\$//
1211289d09728Smrgt bsnlc
1211389d09728Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
1211489d09728Smrgd
1211589d09728Smrg:bsnlc
1211689d09728Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
1211789d09728Smrgb cont
1211889d09728Smrg' <confdefs.h | sed '
1211989d09728Smrgs/'"$ac_delim"'/"\\\
1212089d09728Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
1212189d09728Smrg
1212289d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1212389d09728Smrg  for (key in D) D_is_set[key] = 1
1212489d09728Smrg  FS = ""
1212589d09728Smrg}
1212689d09728Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
1212789d09728Smrg  line = \$ 0
1212889d09728Smrg  split(line, arg, " ")
1212989d09728Smrg  if (arg[1] == "#") {
1213089d09728Smrg    defundef = arg[2]
1213189d09728Smrg    mac1 = arg[3]
1213289d09728Smrg  } else {
1213389d09728Smrg    defundef = substr(arg[1], 2)
1213489d09728Smrg    mac1 = arg[2]
1213589d09728Smrg  }
1213689d09728Smrg  split(mac1, mac2, "(") #)
1213789d09728Smrg  macro = mac2[1]
1213889d09728Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
1213989d09728Smrg  if (D_is_set[macro]) {
1214089d09728Smrg    # Preserve the white space surrounding the "#".
1214189d09728Smrg    print prefix "define", macro P[macro] D[macro]
1214289d09728Smrg    next
1214389d09728Smrg  } else {
1214489d09728Smrg    # Replace #undef with comments.  This is necessary, for example,
1214589d09728Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
1214689d09728Smrg    # on some systems where configure will not decide to define it.
1214789d09728Smrg    if (defundef == "undef") {
1214889d09728Smrg      print "/*", prefix defundef, macro, "*/"
1214989d09728Smrg      next
1215089d09728Smrg    }
1215189d09728Smrg  }
1215289d09728Smrg}
1215389d09728Smrg{ print }
1215489d09728Smrg_ACAWK
1215566fe65f6Smrg_ACEOF
1215689d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1215748af84faSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1215889d09728Smrgfi # test -n "$CONFIG_HEADERS"
1215989d09728Smrg
1216089d09728Smrg
1216189d09728Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
1216289d09728Smrgshift
1216389d09728Smrgfor ac_tag
1216489d09728Smrgdo
1216589d09728Smrg  case $ac_tag in
1216689d09728Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
1216789d09728Smrg  esac
1216889d09728Smrg  case $ac_mode$ac_tag in
1216989d09728Smrg  :[FHL]*:*);;
1217048af84faSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1217189d09728Smrg  :[FH]-) ac_tag=-:-;;
1217289d09728Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1217389d09728Smrg  esac
1217489d09728Smrg  ac_save_IFS=$IFS
1217589d09728Smrg  IFS=:
1217689d09728Smrg  set x $ac_tag
1217789d09728Smrg  IFS=$ac_save_IFS
1217889d09728Smrg  shift
1217989d09728Smrg  ac_file=$1
1218089d09728Smrg  shift
1218189d09728Smrg
1218289d09728Smrg  case $ac_mode in
1218389d09728Smrg  :L) ac_source=$1;;
1218489d09728Smrg  :[FH])
1218589d09728Smrg    ac_file_inputs=
1218689d09728Smrg    for ac_f
1218789d09728Smrg    do
1218889d09728Smrg      case $ac_f in
1218948af84faSmrg      -) ac_f="$ac_tmp/stdin";;
1219089d09728Smrg      *) # Look for the file first in the build tree, then in the source tree
1219189d09728Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
1219289d09728Smrg	 # because $ac_f cannot contain `:'.
1219389d09728Smrg	 test -f "$ac_f" ||
1219489d09728Smrg	   case $ac_f in
1219589d09728Smrg	   [\\/$]*) false;;
1219689d09728Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1219789d09728Smrg	   esac ||
1219848af84faSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1219989d09728Smrg      esac
12200bc77032bSmrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1220148af84faSmrg      as_fn_append ac_file_inputs " '$ac_f'"
1220289d09728Smrg    done
1220389d09728Smrg
1220489d09728Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
1220589d09728Smrg    # use $as_me), people would be surprised to read:
1220689d09728Smrg    #    /* config.h.  Generated by config.status.  */
1220789d09728Smrg    configure_input='Generated from '`
12208bc77032bSmrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1220989d09728Smrg	`' by configure.'
1221089d09728Smrg    if test x"$ac_file" != x-; then
1221189d09728Smrg      configure_input="$ac_file.  $configure_input"
12212bc77032bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12213bc77032bSmrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
1221489d09728Smrg    fi
1221589d09728Smrg    # Neutralize special characters interpreted by sed in replacement strings.
1221689d09728Smrg    case $configure_input in #(
1221789d09728Smrg    *\&* | *\|* | *\\* )
12218bc77032bSmrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1221989d09728Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
1222089d09728Smrg    *) ac_sed_conf_input=$configure_input;;
1222189d09728Smrg    esac
1222289d09728Smrg
1222389d09728Smrg    case $ac_tag in
1222448af84faSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
1222548af84faSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1222689d09728Smrg    esac
1222789d09728Smrg    ;;
1222866fe65f6Smrg  esac
1222966fe65f6Smrg
1223089d09728Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
1223166fe65f6Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223266fe65f6Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
1223366fe65f6Smrg	 X"$ac_file" : 'X\(//\)$' \| \
1223489d09728Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12235bc77032bSmrgprintf "%s\n" X"$ac_file" |
1223689d09728Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223789d09728Smrg	    s//\1/
1223889d09728Smrg	    q
1223989d09728Smrg	  }
1224089d09728Smrg	  /^X\(\/\/\)[^/].*/{
1224189d09728Smrg	    s//\1/
1224289d09728Smrg	    q
1224389d09728Smrg	  }
1224489d09728Smrg	  /^X\(\/\/\)$/{
1224589d09728Smrg	    s//\1/
1224689d09728Smrg	    q
1224789d09728Smrg	  }
1224889d09728Smrg	  /^X\(\/\).*/{
1224989d09728Smrg	    s//\1/
1225089d09728Smrg	    q
1225189d09728Smrg	  }
1225289d09728Smrg	  s/.*/./; q'`
1225348af84faSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
1225466fe65f6Smrg  ac_builddir=.
1225566fe65f6Smrg
1225689d09728Smrgcase "$ac_dir" in
1225789d09728Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1225889d09728Smrg*)
12259bc77032bSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1226089d09728Smrg  # A ".." for each directory in $ac_dir_suffix.
12261bc77032bSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1226289d09728Smrg  case $ac_top_builddir_sub in
1226389d09728Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1226489d09728Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1226589d09728Smrg  esac ;;
1226689d09728Smrgesac
1226789d09728Smrgac_abs_top_builddir=$ac_pwd
1226889d09728Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1226989d09728Smrg# for backward compatibility:
1227089d09728Smrgac_top_builddir=$ac_top_build_prefix
1227166fe65f6Smrg
1227266fe65f6Smrgcase $srcdir in
1227389d09728Smrg  .)  # We are building in place.
1227466fe65f6Smrg    ac_srcdir=.
1227589d09728Smrg    ac_top_srcdir=$ac_top_builddir_sub
1227689d09728Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1227789d09728Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1227866fe65f6Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1227989d09728Smrg    ac_top_srcdir=$srcdir
1228089d09728Smrg    ac_abs_top_srcdir=$srcdir ;;
1228189d09728Smrg  *) # Relative name.
1228289d09728Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1228389d09728Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1228489d09728Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1228566fe65f6Smrgesac
1228689d09728Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1228766fe65f6Smrg
1228866fe65f6Smrg
1228989d09728Smrg  case $ac_mode in
1229089d09728Smrg  :F)
1229189d09728Smrg  #
1229289d09728Smrg  # CONFIG_FILE
1229389d09728Smrg  #
1229466fe65f6Smrg
1229566fe65f6Smrg  case $INSTALL in
1229666fe65f6Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1229789d09728Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1229889d09728Smrg  esac
1229989d09728Smrg  ac_MKDIR_P=$MKDIR_P
1230089d09728Smrg  case $MKDIR_P in
1230189d09728Smrg  [\\/$]* | ?:[\\/]* ) ;;
1230289d09728Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1230366fe65f6Smrg  esac
1230489d09728Smrg_ACEOF
1230566fe65f6Smrg
1230689d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1230789d09728Smrg# If the template does not know about datarootdir, expand it.
1230889d09728Smrg# FIXME: This hack should be removed a few years after 2.60.
1230989d09728Smrgac_datarootdir_hack=; ac_datarootdir_seen=
1231089d09728Smrgac_sed_dataroot='
1231189d09728Smrg/datarootdir/ {
1231289d09728Smrg  p
1231389d09728Smrg  q
1231489d09728Smrg}
1231589d09728Smrg/@datadir@/p
1231689d09728Smrg/@docdir@/p
1231789d09728Smrg/@infodir@/p
1231889d09728Smrg/@localedir@/p
1231948af84faSmrg/@mandir@/p'
1232089d09728Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1232189d09728Smrg*datarootdir*) ac_datarootdir_seen=yes;;
1232289d09728Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12323bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12324bc77032bSmrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1232589d09728Smrg_ACEOF
1232689d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1232789d09728Smrg  ac_datarootdir_hack='
1232889d09728Smrg  s&@datadir@&$datadir&g
1232989d09728Smrg  s&@docdir@&$docdir&g
1233089d09728Smrg  s&@infodir@&$infodir&g
1233189d09728Smrg  s&@localedir@&$localedir&g
1233289d09728Smrg  s&@mandir@&$mandir&g
1233348af84faSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
1233489d09728Smrgesac
1233566fe65f6Smrg_ACEOF
1233689d09728Smrg
1233789d09728Smrg# Neutralize VPATH when `$srcdir' = `.'.
1233889d09728Smrg# Shell code in configure.ac might set extrasub.
1233989d09728Smrg# FIXME: do we really want to maintain this feature?
1234089d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1234189d09728Smrgac_sed_extra="$ac_vpsub
1234266fe65f6Smrg$extrasub
1234366fe65f6Smrg_ACEOF
1234489d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1234566fe65f6Smrg:t
1234666fe65f6Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1234789d09728Smrgs|@configure_input@|$ac_sed_conf_input|;t t
1234889d09728Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
1234989d09728Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
1235089d09728Smrgs&@srcdir@&$ac_srcdir&;t t
1235189d09728Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
1235289d09728Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
1235389d09728Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
1235489d09728Smrgs&@builddir@&$ac_builddir&;t t
1235589d09728Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
1235689d09728Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1235789d09728Smrgs&@INSTALL@&$ac_INSTALL&;t t
1235889d09728Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
1235989d09728Smrg$ac_datarootdir_hack
1236089d09728Smrg"
1236148af84faSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
1236248af84faSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1236389d09728Smrg
1236489d09728Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1236548af84faSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1236648af84faSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
1236748af84faSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12368bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1236948af84faSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
12370bc77032bSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1237148af84faSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
1237289d09728Smrg
1237348af84faSmrg  rm -f "$ac_tmp/stdin"
1237466fe65f6Smrg  case $ac_file in
1237548af84faSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
1237648af84faSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1237789d09728Smrg  esac \
1237848af84faSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1237989d09728Smrg ;;
1238089d09728Smrg  :H)
1238189d09728Smrg  #
1238289d09728Smrg  # CONFIG_HEADER
1238389d09728Smrg  #
1238466fe65f6Smrg  if test x"$ac_file" != x-; then
1238589d09728Smrg    {
12386bc77032bSmrg      printf "%s\n" "/* $configure_input  */" >&1 \
1238748af84faSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1238848af84faSmrg    } >"$ac_tmp/config.h" \
1238948af84faSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1239048af84faSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12391bc77032bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12392bc77032bSmrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1239366fe65f6Smrg    else
1239489d09728Smrg      rm -f "$ac_file"
1239548af84faSmrg      mv "$ac_tmp/config.h" "$ac_file" \
1239648af84faSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1239766fe65f6Smrg    fi
1239866fe65f6Smrg  else
12399bc77032bSmrg    printf "%s\n" "/* $configure_input  */" >&1 \
1240048af84faSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1240148af84faSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
1240266fe65f6Smrg  fi
1240389d09728Smrg# Compute "$ac_file"'s index in $config_headers.
1240489d09728Smrg_am_arg="$ac_file"
1240566fe65f6Smrg_am_stamp_count=1
1240666fe65f6Smrgfor _am_header in $config_headers :; do
1240766fe65f6Smrg  case $_am_header in
1240889d09728Smrg    $_am_arg | $_am_arg:* )
1240966fe65f6Smrg      break ;;
1241066fe65f6Smrg    * )
1241166fe65f6Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1241266fe65f6Smrg  esac
1241366fe65f6Smrgdone
1241489d09728Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
1241589d09728Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241689d09728Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
1241789d09728Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
1241889d09728Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12419bc77032bSmrgprintf "%s\n" X"$_am_arg" |
1242089d09728Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242189d09728Smrg	    s//\1/
1242289d09728Smrg	    q
1242389d09728Smrg	  }
1242489d09728Smrg	  /^X\(\/\/\)[^/].*/{
1242589d09728Smrg	    s//\1/
1242689d09728Smrg	    q
1242789d09728Smrg	  }
1242889d09728Smrg	  /^X\(\/\/\)$/{
1242989d09728Smrg	    s//\1/
1243089d09728Smrg	    q
1243189d09728Smrg	  }
1243289d09728Smrg	  /^X\(\/\).*/{
1243389d09728Smrg	    s//\1/
1243489d09728Smrg	    q
1243589d09728Smrg	  }
1243689d09728Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
1243789d09728Smrg ;;
1243866fe65f6Smrg
12439bc77032bSmrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12440bc77032bSmrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
1244189d09728Smrg ;;
1244289d09728Smrg  esac
1244366fe65f6Smrg
1244466fe65f6Smrg
1244589d09728Smrg  case $ac_file$ac_mode in
12446a9274bcdSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12447c6a6acfbSmrg  # Older Autoconf quotes --file arguments for eval, but not when files
12448a9274bcdSmrg  # are listed without --file.  Let's play safe and only enable the eval
12449a9274bcdSmrg  # if we detect the quoting.
12450bc77032bSmrg  # TODO: see whether this extra hack can be removed once we start
12451bc77032bSmrg  # requiring Autoconf 2.70 or later.
12452bc77032bSmrg  case $CONFIG_FILES in #(
12453bc77032bSmrg  *\'*) :
12454bc77032bSmrg    eval set x "$CONFIG_FILES" ;; #(
12455bc77032bSmrg  *) :
12456bc77032bSmrg    set x $CONFIG_FILES ;; #(
12457bc77032bSmrg  *) :
12458bc77032bSmrg     ;;
12459bc77032bSmrgesac
12460a9274bcdSmrg  shift
12461bc77032bSmrg  # Used to flag and report bootstrapping failures.
12462bc77032bSmrg  am_rc=0
12463bc77032bSmrg  for am_mf
12464a9274bcdSmrg  do
12465a9274bcdSmrg    # Strip MF so we end up with the name of the file.
12466bc77032bSmrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12467bc77032bSmrg    # Check whether this is an Automake generated Makefile which includes
12468bc77032bSmrg    # dependency-tracking related rules and includes.
12469bc77032bSmrg    # Grep'ing the whole file directly is not great: AIX grep has a line
12470a9274bcdSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
12471bc77032bSmrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12472bc77032bSmrg      || continue
12473bc77032bSmrg    am_dirpart=`$as_dirname -- "$am_mf" ||
12474bc77032bSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12475bc77032bSmrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
12476bc77032bSmrg	 X"$am_mf" : 'X\(//\)$' \| \
12477bc77032bSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12478bc77032bSmrgprintf "%s\n" X"$am_mf" |
1247989d09728Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248089d09728Smrg	    s//\1/
1248189d09728Smrg	    q
1248289d09728Smrg	  }
1248389d09728Smrg	  /^X\(\/\/\)[^/].*/{
1248489d09728Smrg	    s//\1/
1248589d09728Smrg	    q
1248689d09728Smrg	  }
1248789d09728Smrg	  /^X\(\/\/\)$/{
1248889d09728Smrg	    s//\1/
1248989d09728Smrg	    q
1249089d09728Smrg	  }
1249189d09728Smrg	  /^X\(\/\).*/{
1249289d09728Smrg	    s//\1/
1249389d09728Smrg	    q
1249489d09728Smrg	  }
1249589d09728Smrg	  s/.*/./; q'`
12496bc77032bSmrg    am_filepart=`$as_basename -- "$am_mf" ||
12497bc77032bSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12498bc77032bSmrg	 X"$am_mf" : 'X\(//\)$' \| \
12499bc77032bSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12500bc77032bSmrgprintf "%s\n" X/"$am_mf" |
12501bc77032bSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1250289d09728Smrg	    s//\1/
1250389d09728Smrg	    q
1250489d09728Smrg	  }
12505bc77032bSmrg	  /^X\/\(\/\/\)$/{
1250689d09728Smrg	    s//\1/
1250789d09728Smrg	    q
1250889d09728Smrg	  }
12509bc77032bSmrg	  /^X\/\(\/\).*/{
1251089d09728Smrg	    s//\1/
1251189d09728Smrg	    q
1251289d09728Smrg	  }
1251389d09728Smrg	  s/.*/./; q'`
12514bc77032bSmrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12515bc77032bSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
12516bc77032bSmrg        | $MAKE -f - am--depfiles" >&5
12517bc77032bSmrg   (cd "$am_dirpart" \
12518bc77032bSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
12519bc77032bSmrg        | $MAKE -f - am--depfiles) >&5 2>&5
12520bc77032bSmrg   ac_status=$?
12521bc77032bSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522bc77032bSmrg   (exit $ac_status); } || am_rc=$?
1252366fe65f6Smrg  done
12524bc77032bSmrg  if test $am_rc -ne 0; then
12525bc77032bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12526bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12527bc77032bSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
12528bc77032bSmrg    for automatic dependency tracking.  If GNU make was not used, consider
12529bc77032bSmrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
12530bc77032bSmrg    necessary).  You can also try re-running configure with the
12531bc77032bSmrg    '--disable-dependency-tracking' option to at least be able to build
12532bc77032bSmrg    the package (albeit without support for automatic dependency tracking).
12533bc77032bSmrgSee \`config.log' for more details" "$LINENO" 5; }
12534bc77032bSmrg  fi
12535bc77032bSmrg  { am_dirpart=; unset am_dirpart;}
12536bc77032bSmrg  { am_filepart=; unset am_filepart;}
12537bc77032bSmrg  { am_mf=; unset am_mf;}
12538bc77032bSmrg  { am_rc=; unset am_rc;}
12539bc77032bSmrg  rm -f conftest-deps.mk
12540a9274bcdSmrg}
1254166fe65f6Smrg ;;
1254289d09728Smrg
1254366fe65f6Smrg  esac
1254489d09728Smrgdone # for ac_tag
1254566fe65f6Smrg
1254666fe65f6Smrg
1254748af84faSmrgas_fn_exit 0
1254866fe65f6Smrg_ACEOF
1254966fe65f6Smrgac_clean_files=$ac_clean_files_save
1255066fe65f6Smrg
1255189d09728Smrgtest $ac_write_fail = 0 ||
1255248af84faSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1255389d09728Smrg
1255466fe65f6Smrg
1255566fe65f6Smrg# configure is writing to config.log, and then calls config.status.
1255666fe65f6Smrg# config.status does its own redirection, appending to config.log.
1255766fe65f6Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
1255866fe65f6Smrg# by configure, so config.status won't be able to write to it; its
1255966fe65f6Smrg# output is simply discarded.  So we exec the FD to /dev/null,
1256066fe65f6Smrg# effectively closing config.log, so it can be properly (re)opened and
1256166fe65f6Smrg# appended to by config.status.  When coming back to configure, we
1256266fe65f6Smrg# need to make the FD available again.
1256366fe65f6Smrgif test "$no_create" != yes; then
1256466fe65f6Smrg  ac_cs_success=:
1256566fe65f6Smrg  ac_config_status_args=
1256666fe65f6Smrg  test "$silent" = yes &&
1256766fe65f6Smrg    ac_config_status_args="$ac_config_status_args --quiet"
1256866fe65f6Smrg  exec 5>/dev/null
1256966fe65f6Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1257066fe65f6Smrg  exec 5>>config.log
1257166fe65f6Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1257266fe65f6Smrg  # would make configure fail if this is the last instruction.
1257348af84faSmrg  $ac_cs_success || as_fn_exit 1
1257489d09728Smrgfi
1257589d09728Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12576bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12577bc77032bSmrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1257866fe65f6Smrgfi
1257966fe65f6Smrg
12580bc77032bSmrg
12581