configure revision 94a251fd
1e6232409Smrg#! /bin/sh
2e6232409Smrg# Guess values for system-dependent variables and create Makefiles.
394a251fdSmrg# Generated by GNU Autoconf 2.68 for xlsfonts 1.0.4.
4e6232409Smrg#
5e6232409Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6e6232409Smrg#
78fff3f40Smrg#
8e6232409Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
994a251fdSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
1094a251fdSmrg# Foundation, Inc.
118fff3f40Smrg#
128fff3f40Smrg#
13e6232409Smrg# This configure script is free software; the Free Software Foundation
14e6232409Smrg# gives unlimited permission to copy, distribute and modify it.
158fff3f40Smrg## -------------------- ##
168fff3f40Smrg## M4sh Initialization. ##
178fff3f40Smrg## -------------------- ##
18e6232409Smrg
198fff3f40Smrg# Be more Bourne compatible
208fff3f40SmrgDUALCASE=1; export DUALCASE # for MKS sh
218fff3f40Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22e6232409Smrg  emulate sh
23e6232409Smrg  NULLCMD=:
248fff3f40Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25e6232409Smrg  # is contrary to our usage.  Disable this feature.
26e6232409Smrg  alias -g '${1+"$@"}'='"$@"'
27e6232409Smrg  setopt NO_GLOB_SUBST
28e6232409Smrgelse
298fff3f40Smrg  case `(set -o) 2>/dev/null` in #(
308fff3f40Smrg  *posix*) :
318fff3f40Smrg    set -o posix ;; #(
328fff3f40Smrg  *) :
338fff3f40Smrg     ;;
348fff3f40Smrgesac
35e6232409Smrgfi
36e6232409Smrg
37e6232409Smrg
388fff3f40Smrgas_nl='
398fff3f40Smrg'
408fff3f40Smrgexport as_nl
418fff3f40Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
428fff3f40Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
438fff3f40Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
448fff3f40Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
458fff3f40Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
468fff3f40Smrg# but without wasting forks for bash or zsh.
478fff3f40Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
488fff3f40Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
498fff3f40Smrg  as_echo='print -r --'
508fff3f40Smrg  as_echo_n='print -rn --'
518fff3f40Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
528fff3f40Smrg  as_echo='printf %s\n'
538fff3f40Smrg  as_echo_n='printf %s'
548fff3f40Smrgelse
558fff3f40Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
568fff3f40Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
578fff3f40Smrg    as_echo_n='/usr/ucb/echo -n'
58e6232409Smrg  else
598fff3f40Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
608fff3f40Smrg    as_echo_n_body='eval
618fff3f40Smrg      arg=$1;
628fff3f40Smrg      case $arg in #(
638fff3f40Smrg      *"$as_nl"*)
648fff3f40Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
658fff3f40Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
668fff3f40Smrg      esac;
678fff3f40Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
688fff3f40Smrg    '
698fff3f40Smrg    export as_echo_n_body
708fff3f40Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71e6232409Smrg  fi
728fff3f40Smrg  export as_echo_body
738fff3f40Smrg  as_echo='sh -c $as_echo_body as_echo'
74e6232409Smrgfi
75e6232409Smrg
768fff3f40Smrg# The user is always right.
778fff3f40Smrgif test "${PATH_SEPARATOR+set}" != set; then
788fff3f40Smrg  PATH_SEPARATOR=:
798fff3f40Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
808fff3f40Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
818fff3f40Smrg      PATH_SEPARATOR=';'
828fff3f40Smrg  }
83e6232409Smrgfi
84e6232409Smrg
85e6232409Smrg
86e6232409Smrg# IFS
87e6232409Smrg# We need space, tab and new line, in precisely that order.  Quoting is
88e6232409Smrg# there to prevent editors from complaining about space-tab.
89e6232409Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90e6232409Smrg# splitting by setting IFS to empty value.)
91e6232409SmrgIFS=" ""	$as_nl"
92e6232409Smrg
93e6232409Smrg# Find who we are.  Look in the path if we contain no directory separator.
9494a251fdSmrgas_myself=
958fff3f40Smrgcase $0 in #((
96e6232409Smrg  *[\\/]* ) as_myself=$0 ;;
97e6232409Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98e6232409Smrgfor as_dir in $PATH
99e6232409Smrgdo
100e6232409Smrg  IFS=$as_save_IFS
101e6232409Smrg  test -z "$as_dir" && as_dir=.
1028fff3f40Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1038fff3f40Smrg  done
104e6232409SmrgIFS=$as_save_IFS
105e6232409Smrg
106e6232409Smrg     ;;
107e6232409Smrgesac
108e6232409Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109e6232409Smrg# in which case we are not to be found in the path.
110e6232409Smrgif test "x$as_myself" = x; then
111e6232409Smrg  as_myself=$0
112e6232409Smrgfi
113e6232409Smrgif test ! -f "$as_myself"; then
1148fff3f40Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1158fff3f40Smrg  exit 1
116e6232409Smrgfi
117e6232409Smrg
1188fff3f40Smrg# Unset variables that we do not need and which cause bugs (e.g. in
1198fff3f40Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1208fff3f40Smrg# suppresses any "Segmentation fault" message there.  '((' could
1218fff3f40Smrg# trigger a bug in pdksh 5.2.14.
1228fff3f40Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1238fff3f40Smrgdo eval test x\${$as_var+set} = xset \
1248fff3f40Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125e6232409Smrgdone
126e6232409SmrgPS1='$ '
127e6232409SmrgPS2='> '
128e6232409SmrgPS4='+ '
129e6232409Smrg
130e6232409Smrg# NLS nuisances.
1318fff3f40SmrgLC_ALL=C
1328fff3f40Smrgexport LC_ALL
1338fff3f40SmrgLANGUAGE=C
1348fff3f40Smrgexport LANGUAGE
135e6232409Smrg
136e6232409Smrg# CDPATH.
1378fff3f40Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138e6232409Smrg
139e6232409Smrgif test "x$CONFIG_SHELL" = x; then
1408fff3f40Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1418fff3f40Smrg  emulate sh
1428fff3f40Smrg  NULLCMD=:
1438fff3f40Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1448fff3f40Smrg  # is contrary to our usage.  Disable this feature.
1458fff3f40Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1468fff3f40Smrg  setopt NO_GLOB_SUBST
147e6232409Smrgelse
1488fff3f40Smrg  case \`(set -o) 2>/dev/null\` in #(
1498fff3f40Smrg  *posix*) :
1508fff3f40Smrg    set -o posix ;; #(
1518fff3f40Smrg  *) :
1528fff3f40Smrg     ;;
1538fff3f40Smrgesac
154e6232409Smrgfi
1558fff3f40Smrg"
1568fff3f40Smrg  as_required="as_fn_return () { (exit \$1); }
1578fff3f40Smrgas_fn_success () { as_fn_return 0; }
1588fff3f40Smrgas_fn_failure () { as_fn_return 1; }
1598fff3f40Smrgas_fn_ret_success () { return 0; }
1608fff3f40Smrgas_fn_ret_failure () { return 1; }
161e6232409Smrg
162e6232409Smrgexitcode=0
1638fff3f40Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1648fff3f40Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1658fff3f40Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1668fff3f40Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1678fff3f40Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168e6232409Smrg
169e6232409Smrgelse
1708fff3f40Smrg  exitcode=1; echo positional parameters were not saved.
1718fff3f40Smrgfi
1728fff3f40Smrgtest x\$exitcode = x0 || exit 1"
1738fff3f40Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1748fff3f40Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1758fff3f40Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1768fff3f40Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1778fff3f40Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
1788fff3f40Smrg  if (eval "$as_required") 2>/dev/null; then :
1798fff3f40Smrg  as_have_required=yes
180e6232409Smrgelse
1818fff3f40Smrg  as_have_required=no
182e6232409Smrgfi
1838fff3f40Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184e6232409Smrg
185e6232409Smrgelse
1868fff3f40Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878fff3f40Smrgas_found=false
1888fff3f40Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189e6232409Smrgdo
190e6232409Smrg  IFS=$as_save_IFS
191e6232409Smrg  test -z "$as_dir" && as_dir=.
1928fff3f40Smrg  as_found=:
1938fff3f40Smrg  case $as_dir in #(
194e6232409Smrg	 /*)
195e6232409Smrg	   for as_base in sh bash ksh sh5; do
1968fff3f40Smrg	     # Try only shells that exist, to save several forks.
1978fff3f40Smrg	     as_shell=$as_dir/$as_base
1988fff3f40Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1998fff3f40Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2008fff3f40Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2018fff3f40Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2028fff3f40Smrg  break 2
2038fff3f40Smrgfi
2048fff3f40Smrgfi
205e6232409Smrg	   done;;
206e6232409Smrg       esac
2078fff3f40Smrg  as_found=false
208e6232409Smrgdone
2098fff3f40Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2108fff3f40Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2118fff3f40Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2128fff3f40Smrgfi; }
213e6232409SmrgIFS=$as_save_IFS
214e6232409Smrg
215e6232409Smrg
2168fff3f40Smrg      if test "x$CONFIG_SHELL" != x; then :
2178fff3f40Smrg  # We cannot yet assume a decent shell, so we have to provide a
2188fff3f40Smrg	# neutralization value for shells without unset; and this also
2198fff3f40Smrg	# works around shells that cannot unset nonexistent variables.
22094a251fdSmrg	# Preserve -v and -x to the replacement shell.
2218fff3f40Smrg	BASH_ENV=/dev/null
2228fff3f40Smrg	ENV=/dev/null
2238fff3f40Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2248fff3f40Smrg	export CONFIG_SHELL
22594a251fdSmrg	case $- in # ((((
22694a251fdSmrg	  *v*x* | *x*v* ) as_opts=-vx ;;
22794a251fdSmrg	  *v* ) as_opts=-v ;;
22894a251fdSmrg	  *x* ) as_opts=-x ;;
22994a251fdSmrg	  * ) as_opts= ;;
23094a251fdSmrg	esac
23194a251fdSmrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232e6232409Smrgfi
233e6232409Smrg
2348fff3f40Smrg    if test x$as_have_required = xno; then :
2358fff3f40Smrg  $as_echo "$0: This script requires a shell more modern than all"
2368fff3f40Smrg  $as_echo "$0: the shells that I found on your system."
2378fff3f40Smrg  if test x${ZSH_VERSION+set} = xset ; then
2388fff3f40Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2398fff3f40Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2408fff3f40Smrg  else
2418fff3f40Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2428fff3f40Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2438fff3f40Smrg$0: about your system, including any error possibly output
2448fff3f40Smrg$0: before this message. Then install a modern shell, or
2458fff3f40Smrg$0: manually run the script under such a shell if you do
2468fff3f40Smrg$0: have one."
2478fff3f40Smrg  fi
2488fff3f40Smrg  exit 1
249e6232409Smrgfi
2508fff3f40Smrgfi
2518fff3f40Smrgfi
2528fff3f40SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2538fff3f40Smrgexport SHELL
2548fff3f40Smrg# Unset more variables known to interfere with behavior of common tools.
2558fff3f40SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2568fff3f40Smrgunset CLICOLOR_FORCE GREP_OPTIONS
257e6232409Smrg
2588fff3f40Smrg## --------------------- ##
2598fff3f40Smrg## M4sh Shell Functions. ##
2608fff3f40Smrg## --------------------- ##
2618fff3f40Smrg# as_fn_unset VAR
2628fff3f40Smrg# ---------------
2638fff3f40Smrg# Portably unset VAR.
2648fff3f40Smrgas_fn_unset ()
2658fff3f40Smrg{
2668fff3f40Smrg  { eval $1=; unset $1;}
267e6232409Smrg}
2688fff3f40Smrgas_unset=as_fn_unset
269e6232409Smrg
2708fff3f40Smrg# as_fn_set_status STATUS
2718fff3f40Smrg# -----------------------
2728fff3f40Smrg# Set $? to STATUS, without forking.
2738fff3f40Smrgas_fn_set_status ()
2748fff3f40Smrg{
2758fff3f40Smrg  return $1
2768fff3f40Smrg} # as_fn_set_status
277e6232409Smrg
2788fff3f40Smrg# as_fn_exit STATUS
2798fff3f40Smrg# -----------------
2808fff3f40Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2818fff3f40Smrgas_fn_exit ()
2828fff3f40Smrg{
2838fff3f40Smrg  set +e
2848fff3f40Smrg  as_fn_set_status $1
2858fff3f40Smrg  exit $1
2868fff3f40Smrg} # as_fn_exit
2878fff3f40Smrg
2888fff3f40Smrg# as_fn_mkdir_p
2898fff3f40Smrg# -------------
2908fff3f40Smrg# Create "$as_dir" as a directory, including parents if necessary.
2918fff3f40Smrgas_fn_mkdir_p ()
2928fff3f40Smrg{
293e6232409Smrg
2948fff3f40Smrg  case $as_dir in #(
2958fff3f40Smrg  -*) as_dir=./$as_dir;;
2968fff3f40Smrg  esac
2978fff3f40Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
2988fff3f40Smrg    as_dirs=
2998fff3f40Smrg    while :; do
3008fff3f40Smrg      case $as_dir in #(
3018fff3f40Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3028fff3f40Smrg      *) as_qdir=$as_dir;;
3038fff3f40Smrg      esac
3048fff3f40Smrg      as_dirs="'$as_qdir' $as_dirs"
3058fff3f40Smrg      as_dir=`$as_dirname -- "$as_dir" ||
3068fff3f40Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3078fff3f40Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3088fff3f40Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3098fff3f40Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3108fff3f40Smrg$as_echo X"$as_dir" |
3118fff3f40Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3128fff3f40Smrg	    s//\1/
3138fff3f40Smrg	    q
3148fff3f40Smrg	  }
3158fff3f40Smrg	  /^X\(\/\/\)[^/].*/{
3168fff3f40Smrg	    s//\1/
3178fff3f40Smrg	    q
3188fff3f40Smrg	  }
3198fff3f40Smrg	  /^X\(\/\/\)$/{
3208fff3f40Smrg	    s//\1/
3218fff3f40Smrg	    q
3228fff3f40Smrg	  }
3238fff3f40Smrg	  /^X\(\/\).*/{
3248fff3f40Smrg	    s//\1/
3258fff3f40Smrg	    q
3268fff3f40Smrg	  }
3278fff3f40Smrg	  s/.*/./; q'`
3288fff3f40Smrg      test -d "$as_dir" && break
3298fff3f40Smrg    done
3308fff3f40Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
33194a251fdSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3328fff3f40Smrg
3338fff3f40Smrg
3348fff3f40Smrg} # as_fn_mkdir_p
3358fff3f40Smrg# as_fn_append VAR VALUE
3368fff3f40Smrg# ----------------------
3378fff3f40Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3388fff3f40Smrg# advantage of any shell optimizations that allow amortized linear growth over
3398fff3f40Smrg# repeated appends, instead of the typical quadratic growth present in naive
3408fff3f40Smrg# implementations.
3418fff3f40Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3428fff3f40Smrg  eval 'as_fn_append ()
3438fff3f40Smrg  {
3448fff3f40Smrg    eval $1+=\$2
3458fff3f40Smrg  }'
346e6232409Smrgelse
3478fff3f40Smrg  as_fn_append ()
3488fff3f40Smrg  {
3498fff3f40Smrg    eval $1=\$$1\$2
3508fff3f40Smrg  }
3518fff3f40Smrgfi # as_fn_append
3528fff3f40Smrg
3538fff3f40Smrg# as_fn_arith ARG...
3548fff3f40Smrg# ------------------
3558fff3f40Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
3568fff3f40Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
3578fff3f40Smrg# must be portable across $(()) and expr.
3588fff3f40Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3598fff3f40Smrg  eval 'as_fn_arith ()
3608fff3f40Smrg  {
3618fff3f40Smrg    as_val=$(( $* ))
3628fff3f40Smrg  }'
363e6232409Smrgelse
3648fff3f40Smrg  as_fn_arith ()
3658fff3f40Smrg  {
3668fff3f40Smrg    as_val=`expr "$@" || test $? -eq 1`
3678fff3f40Smrg  }
3688fff3f40Smrgfi # as_fn_arith
369e6232409Smrg
370e6232409Smrg
37194a251fdSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
37294a251fdSmrg# ----------------------------------------
3738fff3f40Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3748fff3f40Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37594a251fdSmrg# script with STATUS, using 1 if that was 0.
3768fff3f40Smrgas_fn_error ()
3778fff3f40Smrg{
37894a251fdSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
37994a251fdSmrg  if test "$4"; then
38094a251fdSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
38194a251fdSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3828fff3f40Smrg  fi
38394a251fdSmrg  $as_echo "$as_me: error: $2" >&2
3848fff3f40Smrg  as_fn_exit $as_status
3858fff3f40Smrg} # as_fn_error
386e6232409Smrg
3878fff3f40Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
3888fff3f40Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3898fff3f40Smrg  as_expr=expr
390e6232409Smrgelse
3918fff3f40Smrg  as_expr=false
392e6232409Smrgfi
393e6232409Smrg
3948fff3f40Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3958fff3f40Smrg  as_basename=basename
396e6232409Smrgelse
3978fff3f40Smrg  as_basename=false
398e6232409Smrgfi
399e6232409Smrg
4008fff3f40Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4018fff3f40Smrg  as_dirname=dirname
402e6232409Smrgelse
4038fff3f40Smrg  as_dirname=false
404e6232409Smrgfi
405e6232409Smrg
4068fff3f40Smrgas_me=`$as_basename -- "$0" ||
4078fff3f40Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4088fff3f40Smrg	 X"$0" : 'X\(//\)$' \| \
4098fff3f40Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4108fff3f40Smrg$as_echo X/"$0" |
4118fff3f40Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4128fff3f40Smrg	    s//\1/
4138fff3f40Smrg	    q
4148fff3f40Smrg	  }
4158fff3f40Smrg	  /^X\/\(\/\/\)$/{
4168fff3f40Smrg	    s//\1/
4178fff3f40Smrg	    q
4188fff3f40Smrg	  }
4198fff3f40Smrg	  /^X\/\(\/\).*/{
4208fff3f40Smrg	    s//\1/
4218fff3f40Smrg	    q
4228fff3f40Smrg	  }
4238fff3f40Smrg	  s/.*/./; q'`
424e6232409Smrg
4258fff3f40Smrg# Avoid depending upon Character Ranges.
4268fff3f40Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4278fff3f40Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4288fff3f40Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4298fff3f40Smrgas_cr_digits='0123456789'
4308fff3f40Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
431e6232409Smrg
432e6232409Smrg
4338fff3f40Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4348fff3f40Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4358fff3f40Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4368fff3f40Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4378fff3f40Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438e6232409Smrg  sed -n '
439e6232409Smrg    p
440e6232409Smrg    /[$]LINENO/=
441e6232409Smrg  ' <$as_myself |
442e6232409Smrg    sed '
443e6232409Smrg      s/[$]LINENO.*/&-/
444e6232409Smrg      t lineno
445e6232409Smrg      b
446e6232409Smrg      :lineno
447e6232409Smrg      N
448e6232409Smrg      :loop
449e6232409Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450e6232409Smrg      t loop
451e6232409Smrg      s/-\n.*//
452e6232409Smrg    ' >$as_me.lineno &&
453e6232409Smrg  chmod +x "$as_me.lineno" ||
4548fff3f40Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455e6232409Smrg
456e6232409Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
457e6232409Smrg  # (the dirname of $[0] is not the place where we might find the
458e6232409Smrg  # original and so on.  Autoconf is especially sensitive to this).
459e6232409Smrg  . "./$as_me.lineno"
460e6232409Smrg  # Exit status is that of the last command.
461e6232409Smrg  exit
462e6232409Smrg}
463e6232409Smrg
464e6232409SmrgECHO_C= ECHO_N= ECHO_T=
4658fff3f40Smrgcase `echo -n x` in #(((((
466e6232409Smrg-n*)
4678fff3f40Smrg  case `echo 'xy\c'` in
468e6232409Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4698fff3f40Smrg  xy)  ECHO_C='\c';;
4708fff3f40Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4718fff3f40Smrg       ECHO_T='	';;
472e6232409Smrg  esac;;
473e6232409Smrg*)
474e6232409Smrg  ECHO_N='-n';;
475e6232409Smrgesac
476e6232409Smrg
477e6232409Smrgrm -f conf$$ conf$$.exe conf$$.file
478e6232409Smrgif test -d conf$$.dir; then
479e6232409Smrg  rm -f conf$$.dir/conf$$.file
480e6232409Smrgelse
481e6232409Smrg  rm -f conf$$.dir
4828fff3f40Smrg  mkdir conf$$.dir 2>/dev/null
4838fff3f40Smrgfi
4848fff3f40Smrgif (echo >conf$$.file) 2>/dev/null; then
4858fff3f40Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
4868fff3f40Smrg    as_ln_s='ln -s'
4878fff3f40Smrg    # ... but there are two gotchas:
4888fff3f40Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4898fff3f40Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4908fff3f40Smrg    # In both cases, we have to default to `cp -p'.
4918fff3f40Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4928fff3f40Smrg      as_ln_s='cp -p'
4938fff3f40Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
4948fff3f40Smrg    as_ln_s=ln
4958fff3f40Smrg  else
496e6232409Smrg    as_ln_s='cp -p'
4978fff3f40Smrg  fi
498e6232409Smrgelse
499e6232409Smrg  as_ln_s='cp -p'
500e6232409Smrgfi
501e6232409Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502e6232409Smrgrmdir conf$$.dir 2>/dev/null
503e6232409Smrg
504e6232409Smrgif mkdir -p . 2>/dev/null; then
5058fff3f40Smrg  as_mkdir_p='mkdir -p "$as_dir"'
506e6232409Smrgelse
507e6232409Smrg  test -d ./-p && rmdir ./-p
508e6232409Smrg  as_mkdir_p=false
509e6232409Smrgfi
510e6232409Smrg
5118fff3f40Smrgif test -x / >/dev/null 2>&1; then
5128fff3f40Smrg  as_test_x='test -x'
513e6232409Smrgelse
5148fff3f40Smrg  if ls -dL / >/dev/null 2>&1; then
5158fff3f40Smrg    as_ls_L_option=L
5168fff3f40Smrg  else
5178fff3f40Smrg    as_ls_L_option=
5188fff3f40Smrg  fi
5198fff3f40Smrg  as_test_x='
5208fff3f40Smrg    eval sh -c '\''
5218fff3f40Smrg      if test -d "$1"; then
5228fff3f40Smrg	test -d "$1/.";
5238fff3f40Smrg      else
5248fff3f40Smrg	case $1 in #(
5258fff3f40Smrg	-*)set "./$1";;
5268fff3f40Smrg	esac;
5278fff3f40Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5288fff3f40Smrg	???[sx]*):;;*)false;;esac;fi
5298fff3f40Smrg    '\'' sh
5308fff3f40Smrg  '
531e6232409Smrgfi
5328fff3f40Smrgas_executable_p=$as_test_x
533e6232409Smrg
534e6232409Smrg# Sed expression to map a string onto a valid CPP name.
535e6232409Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536e6232409Smrg
537e6232409Smrg# Sed expression to map a string onto a valid variable name.
538e6232409Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539e6232409Smrg
540e6232409Smrg
5418fff3f40Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5428fff3f40Smrgexec 6>&1
543e6232409Smrg
544e6232409Smrg# Name of the host.
54594a251fdSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546e6232409Smrg# so uname gets run too.
547e6232409Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548e6232409Smrg
549e6232409Smrg#
550e6232409Smrg# Initializations.
551e6232409Smrg#
552e6232409Smrgac_default_prefix=/usr/local
553e6232409Smrgac_clean_files=
554e6232409Smrgac_config_libobj_dir=.
555e6232409SmrgLIBOBJS=
556e6232409Smrgcross_compiling=no
557e6232409Smrgsubdirs=
558e6232409SmrgMFLAGS=
559e6232409SmrgMAKEFLAGS=
560e6232409Smrg
561e6232409Smrg# Identity of this package.
562e6232409SmrgPACKAGE_NAME='xlsfonts'
563e6232409SmrgPACKAGE_TARNAME='xlsfonts'
56494a251fdSmrgPACKAGE_VERSION='1.0.4'
56594a251fdSmrgPACKAGE_STRING='xlsfonts 1.0.4'
566e6232409SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
5678fff3f40SmrgPACKAGE_URL=''
568e6232409Smrg
5698fff3f40Smrg# Factoring default headers for most tests.
5708fff3f40Smrgac_includes_default="\
5718fff3f40Smrg#include <stdio.h>
5728fff3f40Smrg#ifdef HAVE_SYS_TYPES_H
5738fff3f40Smrg# include <sys/types.h>
5748fff3f40Smrg#endif
5758fff3f40Smrg#ifdef HAVE_SYS_STAT_H
5768fff3f40Smrg# include <sys/stat.h>
5778fff3f40Smrg#endif
5788fff3f40Smrg#ifdef STDC_HEADERS
5798fff3f40Smrg# include <stdlib.h>
5808fff3f40Smrg# include <stddef.h>
5818fff3f40Smrg#else
5828fff3f40Smrg# ifdef HAVE_STDLIB_H
5838fff3f40Smrg#  include <stdlib.h>
5848fff3f40Smrg# endif
5858fff3f40Smrg#endif
5868fff3f40Smrg#ifdef HAVE_STRING_H
5878fff3f40Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5888fff3f40Smrg#  include <memory.h>
5898fff3f40Smrg# endif
5908fff3f40Smrg# include <string.h>
5918fff3f40Smrg#endif
5928fff3f40Smrg#ifdef HAVE_STRINGS_H
5938fff3f40Smrg# include <strings.h>
5948fff3f40Smrg#endif
5958fff3f40Smrg#ifdef HAVE_INTTYPES_H
5968fff3f40Smrg# include <inttypes.h>
5978fff3f40Smrg#endif
5988fff3f40Smrg#ifdef HAVE_STDINT_H
5998fff3f40Smrg# include <stdint.h>
6008fff3f40Smrg#endif
6018fff3f40Smrg#ifdef HAVE_UNISTD_H
6028fff3f40Smrg# include <unistd.h>
6038fff3f40Smrg#endif"
6048fff3f40Smrg
6058fff3f40Smrgac_subst_vars='am__EXEEXT_FALSE
6068fff3f40Smrgam__EXEEXT_TRUE
6078fff3f40SmrgLTLIBOBJS
6088fff3f40SmrgLIBOBJS
609e6232409SmrgXLSFONTS_LIBS
6108fff3f40SmrgXLSFONTS_CFLAGS
6118fff3f40SmrgAM_BACKSLASH
6128fff3f40SmrgAM_DEFAULT_VERBOSITY
61394a251fdSmrgMAN_SUBSTS
61494a251fdSmrgXORG_MAN_PAGE
615e6232409SmrgADMIN_MAN_DIR
6168fff3f40SmrgDRIVER_MAN_DIR
6178fff3f40SmrgMISC_MAN_DIR
6188fff3f40SmrgFILE_MAN_DIR
6198fff3f40SmrgLIB_MAN_DIR
6208fff3f40SmrgAPP_MAN_DIR
6218fff3f40SmrgADMIN_MAN_SUFFIX
6228fff3f40SmrgDRIVER_MAN_SUFFIX
6238fff3f40SmrgMISC_MAN_SUFFIX
6248fff3f40SmrgFILE_MAN_SUFFIX
6258fff3f40SmrgLIB_MAN_SUFFIX
6268fff3f40SmrgAPP_MAN_SUFFIX
62794a251fdSmrgSED
6288fff3f40Smrghost_os
6298fff3f40Smrghost_vendor
6308fff3f40Smrghost_cpu
6318fff3f40Smrghost
6328fff3f40Smrgbuild_os
6338fff3f40Smrgbuild_vendor
6348fff3f40Smrgbuild_cpu
6358fff3f40Smrgbuild
6368fff3f40SmrgINSTALL_CMD
6378fff3f40SmrgPKG_CONFIG
6388fff3f40SmrgCHANGELOG_CMD
63994a251fdSmrgSTRICT_CFLAGS
6408fff3f40SmrgCWARNFLAGS
64194a251fdSmrgBASE_CFLAGS
6428fff3f40SmrgEGREP
6438fff3f40SmrgGREP
6448fff3f40SmrgCPP
6458fff3f40Smrgam__fastdepCC_FALSE
6468fff3f40Smrgam__fastdepCC_TRUE
6478fff3f40SmrgCCDEPMODE
64894a251fdSmrgam__nodep
6498fff3f40SmrgAMDEPBACKSLASH
6508fff3f40SmrgAMDEP_FALSE
6518fff3f40SmrgAMDEP_TRUE
6528fff3f40Smrgam__quote
6538fff3f40Smrgam__include
6548fff3f40SmrgDEPDIR
6558fff3f40SmrgOBJEXT
6568fff3f40SmrgEXEEXT
6578fff3f40Smrgac_ct_CC
6588fff3f40SmrgCPPFLAGS
6598fff3f40SmrgLDFLAGS
6608fff3f40SmrgCFLAGS
6618fff3f40SmrgCC
6628fff3f40SmrgMAINT
6638fff3f40SmrgMAINTAINER_MODE_FALSE
6648fff3f40SmrgMAINTAINER_MODE_TRUE
6658fff3f40Smrgam__untar
6668fff3f40Smrgam__tar
6678fff3f40SmrgAMTAR
6688fff3f40Smrgam__leading_dot
6698fff3f40SmrgSET_MAKE
6708fff3f40SmrgAWK
6718fff3f40Smrgmkdir_p
6728fff3f40SmrgMKDIR_P
6738fff3f40SmrgINSTALL_STRIP_PROGRAM
6748fff3f40SmrgSTRIP
6758fff3f40Smrginstall_sh
6768fff3f40SmrgMAKEINFO
6778fff3f40SmrgAUTOHEADER
6788fff3f40SmrgAUTOMAKE
6798fff3f40SmrgAUTOCONF
6808fff3f40SmrgACLOCAL
6818fff3f40SmrgVERSION
6828fff3f40SmrgPACKAGE
6838fff3f40SmrgCYGPATH_W
6848fff3f40Smrgam__isrc
6858fff3f40SmrgINSTALL_DATA
6868fff3f40SmrgINSTALL_SCRIPT
6878fff3f40SmrgINSTALL_PROGRAM
6888fff3f40Smrgtarget_alias
6898fff3f40Smrghost_alias
6908fff3f40Smrgbuild_alias
6918fff3f40SmrgLIBS
6928fff3f40SmrgECHO_T
6938fff3f40SmrgECHO_N
6948fff3f40SmrgECHO_C
6958fff3f40SmrgDEFS
6968fff3f40Smrgmandir
6978fff3f40Smrglocaledir
6988fff3f40Smrglibdir
6998fff3f40Smrgpsdir
7008fff3f40Smrgpdfdir
7018fff3f40Smrgdvidir
7028fff3f40Smrghtmldir
7038fff3f40Smrginfodir
7048fff3f40Smrgdocdir
7058fff3f40Smrgoldincludedir
7068fff3f40Smrgincludedir
7078fff3f40Smrglocalstatedir
7088fff3f40Smrgsharedstatedir
7098fff3f40Smrgsysconfdir
7108fff3f40Smrgdatadir
7118fff3f40Smrgdatarootdir
7128fff3f40Smrglibexecdir
7138fff3f40Smrgsbindir
7148fff3f40Smrgbindir
7158fff3f40Smrgprogram_transform_name
7168fff3f40Smrgprefix
7178fff3f40Smrgexec_prefix
7188fff3f40SmrgPACKAGE_URL
7198fff3f40SmrgPACKAGE_BUGREPORT
7208fff3f40SmrgPACKAGE_STRING
7218fff3f40SmrgPACKAGE_VERSION
7228fff3f40SmrgPACKAGE_TARNAME
7238fff3f40SmrgPACKAGE_NAME
7248fff3f40SmrgPATH_SEPARATOR
7258fff3f40SmrgSHELL'
726e6232409Smrgac_subst_files=''
7278fff3f40Smrgac_user_opts='
7288fff3f40Smrgenable_option_checking
7298fff3f40Smrgenable_maintainer_mode
7308fff3f40Smrgenable_dependency_tracking
73194a251fdSmrgenable_selective_werror
7328fff3f40Smrgenable_strict_compilation
7338fff3f40Smrgenable_silent_rules
7348fff3f40Smrg'
735e6232409Smrg      ac_precious_vars='build_alias
736e6232409Smrghost_alias
737e6232409Smrgtarget_alias
738e6232409SmrgCC
739e6232409SmrgCFLAGS
740e6232409SmrgLDFLAGS
7418fff3f40SmrgLIBS
742e6232409SmrgCPPFLAGS
7438fff3f40SmrgCPP
744e6232409SmrgPKG_CONFIG
745e6232409SmrgXLSFONTS_CFLAGS
746e6232409SmrgXLSFONTS_LIBS'
747e6232409Smrg
748e6232409Smrg
749e6232409Smrg# Initialize some variables set by options.
750e6232409Smrgac_init_help=
751e6232409Smrgac_init_version=false
7528fff3f40Smrgac_unrecognized_opts=
7538fff3f40Smrgac_unrecognized_sep=
754e6232409Smrg# The variables have the same names as the options, with
755e6232409Smrg# dashes changed to underlines.
756e6232409Smrgcache_file=/dev/null
757e6232409Smrgexec_prefix=NONE
758e6232409Smrgno_create=
759e6232409Smrgno_recursion=
760e6232409Smrgprefix=NONE
761e6232409Smrgprogram_prefix=NONE
762e6232409Smrgprogram_suffix=NONE
763e6232409Smrgprogram_transform_name=s,x,x,
764e6232409Smrgsilent=
765e6232409Smrgsite=
766e6232409Smrgsrcdir=
767e6232409Smrgverbose=
768e6232409Smrgx_includes=NONE
769e6232409Smrgx_libraries=NONE
770e6232409Smrg
771e6232409Smrg# Installation directory options.
772e6232409Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
773e6232409Smrg# and all the variables that are supposed to be based on exec_prefix
774e6232409Smrg# by default will actually change.
775e6232409Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
776e6232409Smrg# (The list follows the same order as the GNU Coding Standards.)
777e6232409Smrgbindir='${exec_prefix}/bin'
778e6232409Smrgsbindir='${exec_prefix}/sbin'
779e6232409Smrglibexecdir='${exec_prefix}/libexec'
780e6232409Smrgdatarootdir='${prefix}/share'
781e6232409Smrgdatadir='${datarootdir}'
782e6232409Smrgsysconfdir='${prefix}/etc'
783e6232409Smrgsharedstatedir='${prefix}/com'
784e6232409Smrglocalstatedir='${prefix}/var'
785e6232409Smrgincludedir='${prefix}/include'
786e6232409Smrgoldincludedir='/usr/include'
787e6232409Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788e6232409Smrginfodir='${datarootdir}/info'
789e6232409Smrghtmldir='${docdir}'
790e6232409Smrgdvidir='${docdir}'
791e6232409Smrgpdfdir='${docdir}'
792e6232409Smrgpsdir='${docdir}'
793e6232409Smrglibdir='${exec_prefix}/lib'
794e6232409Smrglocaledir='${datarootdir}/locale'
795e6232409Smrgmandir='${datarootdir}/man'
796e6232409Smrg
797e6232409Smrgac_prev=
798e6232409Smrgac_dashdash=
799e6232409Smrgfor ac_option
800e6232409Smrgdo
801e6232409Smrg  # If the previous option needs an argument, assign it.
802e6232409Smrg  if test -n "$ac_prev"; then
803e6232409Smrg    eval $ac_prev=\$ac_option
804e6232409Smrg    ac_prev=
805e6232409Smrg    continue
806e6232409Smrg  fi
807e6232409Smrg
808e6232409Smrg  case $ac_option in
80994a251fdSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
81094a251fdSmrg  *=)   ac_optarg= ;;
81194a251fdSmrg  *)    ac_optarg=yes ;;
812e6232409Smrg  esac
813e6232409Smrg
814e6232409Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
815e6232409Smrg
816e6232409Smrg  case $ac_dashdash$ac_option in
817e6232409Smrg  --)
818e6232409Smrg    ac_dashdash=yes ;;
819e6232409Smrg
820e6232409Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
821e6232409Smrg    ac_prev=bindir ;;
822e6232409Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823e6232409Smrg    bindir=$ac_optarg ;;
824e6232409Smrg
825e6232409Smrg  -build | --build | --buil | --bui | --bu)
826e6232409Smrg    ac_prev=build_alias ;;
827e6232409Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828e6232409Smrg    build_alias=$ac_optarg ;;
829e6232409Smrg
830e6232409Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
831e6232409Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832e6232409Smrg    ac_prev=cache_file ;;
833e6232409Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834e6232409Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835e6232409Smrg    cache_file=$ac_optarg ;;
836e6232409Smrg
837e6232409Smrg  --config-cache | -C)
838e6232409Smrg    cache_file=config.cache ;;
839e6232409Smrg
840e6232409Smrg  -datadir | --datadir | --datadi | --datad)
841e6232409Smrg    ac_prev=datadir ;;
842e6232409Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
843e6232409Smrg    datadir=$ac_optarg ;;
844e6232409Smrg
845e6232409Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846e6232409Smrg  | --dataroo | --dataro | --datar)
847e6232409Smrg    ac_prev=datarootdir ;;
848e6232409Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849e6232409Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850e6232409Smrg    datarootdir=$ac_optarg ;;
851e6232409Smrg
852e6232409Smrg  -disable-* | --disable-*)
8538fff3f40Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854e6232409Smrg    # Reject names that are not valid shell variable names.
8558fff3f40Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
85694a251fdSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
8578fff3f40Smrg    ac_useropt_orig=$ac_useropt
8588fff3f40Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8598fff3f40Smrg    case $ac_user_opts in
8608fff3f40Smrg      *"
8618fff3f40Smrg"enable_$ac_useropt"
8628fff3f40Smrg"*) ;;
8638fff3f40Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8648fff3f40Smrg	 ac_unrecognized_sep=', ';;
8658fff3f40Smrg    esac
8668fff3f40Smrg    eval enable_$ac_useropt=no ;;
867e6232409Smrg
868e6232409Smrg  -docdir | --docdir | --docdi | --doc | --do)
869e6232409Smrg    ac_prev=docdir ;;
870e6232409Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871e6232409Smrg    docdir=$ac_optarg ;;
872e6232409Smrg
873e6232409Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874e6232409Smrg    ac_prev=dvidir ;;
875e6232409Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876e6232409Smrg    dvidir=$ac_optarg ;;
877e6232409Smrg
878e6232409Smrg  -enable-* | --enable-*)
8798fff3f40Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880e6232409Smrg    # Reject names that are not valid shell variable names.
8818fff3f40Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
88294a251fdSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
8838fff3f40Smrg    ac_useropt_orig=$ac_useropt
8848fff3f40Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8858fff3f40Smrg    case $ac_user_opts in
8868fff3f40Smrg      *"
8878fff3f40Smrg"enable_$ac_useropt"
8888fff3f40Smrg"*) ;;
8898fff3f40Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
8908fff3f40Smrg	 ac_unrecognized_sep=', ';;
8918fff3f40Smrg    esac
8928fff3f40Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
893e6232409Smrg
894e6232409Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895e6232409Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896e6232409Smrg  | --exec | --exe | --ex)
897e6232409Smrg    ac_prev=exec_prefix ;;
898e6232409Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899e6232409Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900e6232409Smrg  | --exec=* | --exe=* | --ex=*)
901e6232409Smrg    exec_prefix=$ac_optarg ;;
902e6232409Smrg
903e6232409Smrg  -gas | --gas | --ga | --g)
904e6232409Smrg    # Obsolete; use --with-gas.
905e6232409Smrg    with_gas=yes ;;
906e6232409Smrg
907e6232409Smrg  -help | --help | --hel | --he | -h)
908e6232409Smrg    ac_init_help=long ;;
909e6232409Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
910e6232409Smrg    ac_init_help=recursive ;;
911e6232409Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
912e6232409Smrg    ac_init_help=short ;;
913e6232409Smrg
914e6232409Smrg  -host | --host | --hos | --ho)
915e6232409Smrg    ac_prev=host_alias ;;
916e6232409Smrg  -host=* | --host=* | --hos=* | --ho=*)
917e6232409Smrg    host_alias=$ac_optarg ;;
918e6232409Smrg
919e6232409Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920e6232409Smrg    ac_prev=htmldir ;;
921e6232409Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922e6232409Smrg  | --ht=*)
923e6232409Smrg    htmldir=$ac_optarg ;;
924e6232409Smrg
925e6232409Smrg  -includedir | --includedir | --includedi | --included | --include \
926e6232409Smrg  | --includ | --inclu | --incl | --inc)
927e6232409Smrg    ac_prev=includedir ;;
928e6232409Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929e6232409Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
930e6232409Smrg    includedir=$ac_optarg ;;
931e6232409Smrg
932e6232409Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
933e6232409Smrg    ac_prev=infodir ;;
934e6232409Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935e6232409Smrg    infodir=$ac_optarg ;;
936e6232409Smrg
937e6232409Smrg  -libdir | --libdir | --libdi | --libd)
938e6232409Smrg    ac_prev=libdir ;;
939e6232409Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
940e6232409Smrg    libdir=$ac_optarg ;;
941e6232409Smrg
942e6232409Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943e6232409Smrg  | --libexe | --libex | --libe)
944e6232409Smrg    ac_prev=libexecdir ;;
945e6232409Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946e6232409Smrg  | --libexe=* | --libex=* | --libe=*)
947e6232409Smrg    libexecdir=$ac_optarg ;;
948e6232409Smrg
949e6232409Smrg  -localedir | --localedir | --localedi | --localed | --locale)
950e6232409Smrg    ac_prev=localedir ;;
951e6232409Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952e6232409Smrg    localedir=$ac_optarg ;;
953e6232409Smrg
954e6232409Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
955e6232409Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
956e6232409Smrg    ac_prev=localstatedir ;;
957e6232409Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958e6232409Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959e6232409Smrg    localstatedir=$ac_optarg ;;
960e6232409Smrg
961e6232409Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962e6232409Smrg    ac_prev=mandir ;;
963e6232409Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964e6232409Smrg    mandir=$ac_optarg ;;
965e6232409Smrg
966e6232409Smrg  -nfp | --nfp | --nf)
967e6232409Smrg    # Obsolete; use --without-fp.
968e6232409Smrg    with_fp=no ;;
969e6232409Smrg
970e6232409Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971e6232409Smrg  | --no-cr | --no-c | -n)
972e6232409Smrg    no_create=yes ;;
973e6232409Smrg
974e6232409Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975e6232409Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
976e6232409Smrg    no_recursion=yes ;;
977e6232409Smrg
978e6232409Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979e6232409Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980e6232409Smrg  | --oldin | --oldi | --old | --ol | --o)
981e6232409Smrg    ac_prev=oldincludedir ;;
982e6232409Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983e6232409Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984e6232409Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985e6232409Smrg    oldincludedir=$ac_optarg ;;
986e6232409Smrg
987e6232409Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988e6232409Smrg    ac_prev=prefix ;;
989e6232409Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
990e6232409Smrg    prefix=$ac_optarg ;;
991e6232409Smrg
992e6232409Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
993e6232409Smrg  | --program-pre | --program-pr | --program-p)
994e6232409Smrg    ac_prev=program_prefix ;;
995e6232409Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
996e6232409Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997e6232409Smrg    program_prefix=$ac_optarg ;;
998e6232409Smrg
999e6232409Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000e6232409Smrg  | --program-suf | --program-su | --program-s)
1001e6232409Smrg    ac_prev=program_suffix ;;
1002e6232409Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003e6232409Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004e6232409Smrg    program_suffix=$ac_optarg ;;
1005e6232409Smrg
1006e6232409Smrg  -program-transform-name | --program-transform-name \
1007e6232409Smrg  | --program-transform-nam | --program-transform-na \
1008e6232409Smrg  | --program-transform-n | --program-transform- \
1009e6232409Smrg  | --program-transform | --program-transfor \
1010e6232409Smrg  | --program-transfo | --program-transf \
1011e6232409Smrg  | --program-trans | --program-tran \
1012e6232409Smrg  | --progr-tra | --program-tr | --program-t)
1013e6232409Smrg    ac_prev=program_transform_name ;;
1014e6232409Smrg  -program-transform-name=* | --program-transform-name=* \
1015e6232409Smrg  | --program-transform-nam=* | --program-transform-na=* \
1016e6232409Smrg  | --program-transform-n=* | --program-transform-=* \
1017e6232409Smrg  | --program-transform=* | --program-transfor=* \
1018e6232409Smrg  | --program-transfo=* | --program-transf=* \
1019e6232409Smrg  | --program-trans=* | --program-tran=* \
1020e6232409Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1021e6232409Smrg    program_transform_name=$ac_optarg ;;
1022e6232409Smrg
1023e6232409Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024e6232409Smrg    ac_prev=pdfdir ;;
1025e6232409Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026e6232409Smrg    pdfdir=$ac_optarg ;;
1027e6232409Smrg
1028e6232409Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1029e6232409Smrg    ac_prev=psdir ;;
1030e6232409Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1031e6232409Smrg    psdir=$ac_optarg ;;
1032e6232409Smrg
1033e6232409Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034e6232409Smrg  | -silent | --silent | --silen | --sile | --sil)
1035e6232409Smrg    silent=yes ;;
1036e6232409Smrg
1037e6232409Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038e6232409Smrg    ac_prev=sbindir ;;
1039e6232409Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040e6232409Smrg  | --sbi=* | --sb=*)
1041e6232409Smrg    sbindir=$ac_optarg ;;
1042e6232409Smrg
1043e6232409Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044e6232409Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045e6232409Smrg  | --sharedst | --shareds | --shared | --share | --shar \
1046e6232409Smrg  | --sha | --sh)
1047e6232409Smrg    ac_prev=sharedstatedir ;;
1048e6232409Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049e6232409Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050e6232409Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051e6232409Smrg  | --sha=* | --sh=*)
1052e6232409Smrg    sharedstatedir=$ac_optarg ;;
1053e6232409Smrg
1054e6232409Smrg  -site | --site | --sit)
1055e6232409Smrg    ac_prev=site ;;
1056e6232409Smrg  -site=* | --site=* | --sit=*)
1057e6232409Smrg    site=$ac_optarg ;;
1058e6232409Smrg
1059e6232409Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060e6232409Smrg    ac_prev=srcdir ;;
1061e6232409Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062e6232409Smrg    srcdir=$ac_optarg ;;
1063e6232409Smrg
1064e6232409Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065e6232409Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
1066e6232409Smrg    ac_prev=sysconfdir ;;
1067e6232409Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068e6232409Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069e6232409Smrg    sysconfdir=$ac_optarg ;;
1070e6232409Smrg
1071e6232409Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1072e6232409Smrg    ac_prev=target_alias ;;
1073e6232409Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074e6232409Smrg    target_alias=$ac_optarg ;;
1075e6232409Smrg
1076e6232409Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077e6232409Smrg    verbose=yes ;;
1078e6232409Smrg
1079e6232409Smrg  -version | --version | --versio | --versi | --vers | -V)
1080e6232409Smrg    ac_init_version=: ;;
1081e6232409Smrg
1082e6232409Smrg  -with-* | --with-*)
10838fff3f40Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084e6232409Smrg    # Reject names that are not valid shell variable names.
10858fff3f40Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
108694a251fdSmrg      as_fn_error $? "invalid package name: $ac_useropt"
10878fff3f40Smrg    ac_useropt_orig=$ac_useropt
10888fff3f40Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10898fff3f40Smrg    case $ac_user_opts in
10908fff3f40Smrg      *"
10918fff3f40Smrg"with_$ac_useropt"
10928fff3f40Smrg"*) ;;
10938fff3f40Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
10948fff3f40Smrg	 ac_unrecognized_sep=', ';;
10958fff3f40Smrg    esac
10968fff3f40Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1097e6232409Smrg
1098e6232409Smrg  -without-* | --without-*)
10998fff3f40Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100e6232409Smrg    # Reject names that are not valid shell variable names.
11018fff3f40Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
110294a251fdSmrg      as_fn_error $? "invalid package name: $ac_useropt"
11038fff3f40Smrg    ac_useropt_orig=$ac_useropt
11048fff3f40Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11058fff3f40Smrg    case $ac_user_opts in
11068fff3f40Smrg      *"
11078fff3f40Smrg"with_$ac_useropt"
11088fff3f40Smrg"*) ;;
11098fff3f40Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11108fff3f40Smrg	 ac_unrecognized_sep=', ';;
11118fff3f40Smrg    esac
11128fff3f40Smrg    eval with_$ac_useropt=no ;;
1113e6232409Smrg
1114e6232409Smrg  --x)
1115e6232409Smrg    # Obsolete; use --with-x.
1116e6232409Smrg    with_x=yes ;;
1117e6232409Smrg
1118e6232409Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119e6232409Smrg  | --x-incl | --x-inc | --x-in | --x-i)
1120e6232409Smrg    ac_prev=x_includes ;;
1121e6232409Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122e6232409Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123e6232409Smrg    x_includes=$ac_optarg ;;
1124e6232409Smrg
1125e6232409Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126e6232409Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127e6232409Smrg    ac_prev=x_libraries ;;
1128e6232409Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129e6232409Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130e6232409Smrg    x_libraries=$ac_optarg ;;
1131e6232409Smrg
113294a251fdSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
113394a251fdSmrgTry \`$0 --help' for more information"
1134e6232409Smrg    ;;
1135e6232409Smrg
1136e6232409Smrg  *=*)
1137e6232409Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138e6232409Smrg    # Reject names that are not valid shell variable names.
11398fff3f40Smrg    case $ac_envvar in #(
11408fff3f40Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
114194a251fdSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
11428fff3f40Smrg    esac
1143e6232409Smrg    eval $ac_envvar=\$ac_optarg
1144e6232409Smrg    export $ac_envvar ;;
1145e6232409Smrg
1146e6232409Smrg  *)
1147e6232409Smrg    # FIXME: should be removed in autoconf 3.0.
11488fff3f40Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149e6232409Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11508fff3f40Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
115194a251fdSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1152e6232409Smrg    ;;
1153e6232409Smrg
1154e6232409Smrg  esac
1155e6232409Smrgdone
1156e6232409Smrg
1157e6232409Smrgif test -n "$ac_prev"; then
1158e6232409Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
115994a251fdSmrg  as_fn_error $? "missing argument to $ac_option"
1160e6232409Smrgfi
1161e6232409Smrg
11628fff3f40Smrgif test -n "$ac_unrecognized_opts"; then
11638fff3f40Smrg  case $enable_option_checking in
11648fff3f40Smrg    no) ;;
116594a251fdSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11668fff3f40Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11678fff3f40Smrg  esac
11688fff3f40Smrgfi
11698fff3f40Smrg
11708fff3f40Smrg# Check all directory arguments for consistency.
1171e6232409Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172e6232409Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1173e6232409Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174e6232409Smrg		libdir localedir mandir
1175e6232409Smrgdo
1176e6232409Smrg  eval ac_val=\$$ac_var
11778fff3f40Smrg  # Remove trailing slashes.
11788fff3f40Smrg  case $ac_val in
11798fff3f40Smrg    */ )
11808fff3f40Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
11818fff3f40Smrg      eval $ac_var=\$ac_val;;
11828fff3f40Smrg  esac
11838fff3f40Smrg  # Be sure to have absolute directory names.
1184e6232409Smrg  case $ac_val in
1185e6232409Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1186e6232409Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187e6232409Smrg  esac
118894a251fdSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1189e6232409Smrgdone
1190e6232409Smrg
1191e6232409Smrg# There might be people who depend on the old broken behavior: `$host'
1192e6232409Smrg# used to hold the argument of --host etc.
1193e6232409Smrg# FIXME: To remove some day.
1194e6232409Smrgbuild=$build_alias
1195e6232409Smrghost=$host_alias
1196e6232409Smrgtarget=$target_alias
1197e6232409Smrg
1198e6232409Smrg# FIXME: To remove some day.
1199e6232409Smrgif test "x$host_alias" != x; then
1200e6232409Smrg  if test "x$build_alias" = x; then
1201e6232409Smrg    cross_compiling=maybe
120294a251fdSmrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
120394a251fdSmrg    If a cross compiler is detected then cross compile mode will be used" >&2
1204e6232409Smrg  elif test "x$build_alias" != "x$host_alias"; then
1205e6232409Smrg    cross_compiling=yes
1206e6232409Smrg  fi
1207e6232409Smrgfi
1208e6232409Smrg
1209e6232409Smrgac_tool_prefix=
1210e6232409Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1211e6232409Smrg
1212e6232409Smrgtest "$silent" = yes && exec 6>/dev/null
1213e6232409Smrg
1214e6232409Smrg
1215e6232409Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1216e6232409Smrgac_ls_di=`ls -di .` &&
1217e6232409Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
121894a251fdSmrg  as_fn_error $? "working directory cannot be determined"
1219e6232409Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
122094a251fdSmrg  as_fn_error $? "pwd does not report name of working directory"
1221e6232409Smrg
1222e6232409Smrg
1223e6232409Smrg# Find the source files, if location was not specified.
1224e6232409Smrgif test -z "$srcdir"; then
1225e6232409Smrg  ac_srcdir_defaulted=yes
1226e6232409Smrg  # Try the directory containing this script, then the parent directory.
12278fff3f40Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12288fff3f40Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12298fff3f40Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12308fff3f40Smrg	 X"$as_myself" : 'X\(//\)$' \| \
12318fff3f40Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12328fff3f40Smrg$as_echo X"$as_myself" |
1233e6232409Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234e6232409Smrg	    s//\1/
1235e6232409Smrg	    q
1236e6232409Smrg	  }
1237e6232409Smrg	  /^X\(\/\/\)[^/].*/{
1238e6232409Smrg	    s//\1/
1239e6232409Smrg	    q
1240e6232409Smrg	  }
1241e6232409Smrg	  /^X\(\/\/\)$/{
1242e6232409Smrg	    s//\1/
1243e6232409Smrg	    q
1244e6232409Smrg	  }
1245e6232409Smrg	  /^X\(\/\).*/{
1246e6232409Smrg	    s//\1/
1247e6232409Smrg	    q
1248e6232409Smrg	  }
1249e6232409Smrg	  s/.*/./; q'`
1250e6232409Smrg  srcdir=$ac_confdir
1251e6232409Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
1252e6232409Smrg    srcdir=..
1253e6232409Smrg  fi
1254e6232409Smrgelse
1255e6232409Smrg  ac_srcdir_defaulted=no
1256e6232409Smrgfi
1257e6232409Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1258e6232409Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
125994a251fdSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1260e6232409Smrgfi
1261e6232409Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262e6232409Smrgac_abs_confdir=`(
126394a251fdSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1264e6232409Smrg	pwd)`
1265e6232409Smrg# When building in place, set srcdir=.
1266e6232409Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1267e6232409Smrg  srcdir=.
1268e6232409Smrgfi
1269e6232409Smrg# Remove unnecessary trailing slashes from srcdir.
1270e6232409Smrg# Double slashes in file names in object file debugging info
1271e6232409Smrg# mess up M-x gdb in Emacs.
1272e6232409Smrgcase $srcdir in
1273e6232409Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274e6232409Smrgesac
1275e6232409Smrgfor ac_var in $ac_precious_vars; do
1276e6232409Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277e6232409Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1278e6232409Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279e6232409Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280e6232409Smrgdone
1281e6232409Smrg
1282e6232409Smrg#
1283e6232409Smrg# Report the --help message.
1284e6232409Smrg#
1285e6232409Smrgif test "$ac_init_help" = "long"; then
1286e6232409Smrg  # Omit some internal or obsolete options to make the list less imposing.
1287e6232409Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
1288e6232409Smrg  cat <<_ACEOF
128994a251fdSmrg\`configure' configures xlsfonts 1.0.4 to adapt to many kinds of systems.
1290e6232409Smrg
1291e6232409SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1292e6232409Smrg
1293e6232409SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1294e6232409SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1295e6232409Smrg
1296e6232409SmrgDefaults for the options are specified in brackets.
1297e6232409Smrg
1298e6232409SmrgConfiguration:
1299e6232409Smrg  -h, --help              display this help and exit
1300e6232409Smrg      --help=short        display options specific to this package
1301e6232409Smrg      --help=recursive    display the short help of all the included packages
1302e6232409Smrg  -V, --version           display version information and exit
130394a251fdSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
1304e6232409Smrg      --cache-file=FILE   cache test results in FILE [disabled]
1305e6232409Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1306e6232409Smrg  -n, --no-create         do not create output files
1307e6232409Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1308e6232409Smrg
1309e6232409SmrgInstallation directories:
1310e6232409Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13118fff3f40Smrg                          [$ac_default_prefix]
1312e6232409Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13138fff3f40Smrg                          [PREFIX]
1314e6232409Smrg
1315e6232409SmrgBy default, \`make install' will install all the files in
1316e6232409Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1317e6232409Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318e6232409Smrgfor instance \`--prefix=\$HOME'.
1319e6232409Smrg
1320e6232409SmrgFor better control, use the options below.
1321e6232409Smrg
1322e6232409SmrgFine tuning of the installation directories:
13238fff3f40Smrg  --bindir=DIR            user executables [EPREFIX/bin]
13248fff3f40Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13258fff3f40Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13268fff3f40Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13278fff3f40Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13288fff3f40Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13298fff3f40Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13308fff3f40Smrg  --includedir=DIR        C header files [PREFIX/include]
13318fff3f40Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13328fff3f40Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13338fff3f40Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13348fff3f40Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13358fff3f40Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13368fff3f40Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13378fff3f40Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xlsfonts]
13388fff3f40Smrg  --htmldir=DIR           html documentation [DOCDIR]
13398fff3f40Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
13408fff3f40Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13418fff3f40Smrg  --psdir=DIR             ps documentation [DOCDIR]
1342e6232409Smrg_ACEOF
1343e6232409Smrg
1344e6232409Smrg  cat <<\_ACEOF
1345e6232409Smrg
1346e6232409SmrgProgram names:
1347e6232409Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1348e6232409Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1349e6232409Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1350e6232409Smrg
1351e6232409SmrgSystem types:
1352e6232409Smrg  --build=BUILD     configure for building on BUILD [guessed]
1353e6232409Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1354e6232409Smrg_ACEOF
1355e6232409Smrgfi
1356e6232409Smrg
1357e6232409Smrgif test -n "$ac_init_help"; then
1358e6232409Smrg  case $ac_init_help in
135994a251fdSmrg     short | recursive ) echo "Configuration of xlsfonts 1.0.4:";;
1360e6232409Smrg   esac
1361e6232409Smrg  cat <<\_ACEOF
1362e6232409Smrg
1363e6232409SmrgOptional Features:
13648fff3f40Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1365e6232409Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1366e6232409Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1367e6232409Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1368e6232409Smrg			  (and sometimes confusing) to the casual installer
1369e6232409Smrg  --disable-dependency-tracking  speeds up one-time build
1370e6232409Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
137194a251fdSmrg  --disable-selective-werror
137294a251fdSmrg                          Turn off selective compiler errors. (default:
137394a251fdSmrg                          enabled)
13748fff3f40Smrg  --enable-strict-compilation
13758fff3f40Smrg                          Enable all warnings from compiler and make them
13768fff3f40Smrg                          errors (default: disabled)
13778fff3f40Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
13788fff3f40Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1379e6232409Smrg
1380e6232409SmrgSome influential environment variables:
1381e6232409Smrg  CC          C compiler command
1382e6232409Smrg  CFLAGS      C compiler flags
1383e6232409Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1384e6232409Smrg              nonstandard directory <lib dir>
13858fff3f40Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
13868fff3f40Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1387e6232409Smrg              you have headers in a nonstandard directory <include dir>
13888fff3f40Smrg  CPP         C preprocessor
1389e6232409Smrg  PKG_CONFIG  path to pkg-config utility
1390e6232409Smrg  XLSFONTS_CFLAGS
1391e6232409Smrg              C compiler flags for XLSFONTS, overriding pkg-config
1392e6232409Smrg  XLSFONTS_LIBS
1393e6232409Smrg              linker flags for XLSFONTS, overriding pkg-config
1394e6232409Smrg
1395e6232409SmrgUse these variables to override the choices made by `configure' or to help
1396e6232409Smrgit to find libraries and programs with nonstandard names/locations.
1397e6232409Smrg
1398e6232409SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1399e6232409Smrg_ACEOF
1400e6232409Smrgac_status=$?
1401e6232409Smrgfi
1402e6232409Smrg
1403e6232409Smrgif test "$ac_init_help" = "recursive"; then
1404e6232409Smrg  # If there are subdirs, report their specific --help.
1405e6232409Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14068fff3f40Smrg    test -d "$ac_dir" ||
14078fff3f40Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14088fff3f40Smrg      continue
1409e6232409Smrg    ac_builddir=.
1410e6232409Smrg
1411e6232409Smrgcase "$ac_dir" in
1412e6232409Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413e6232409Smrg*)
14148fff3f40Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1415e6232409Smrg  # A ".." for each directory in $ac_dir_suffix.
14168fff3f40Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1417e6232409Smrg  case $ac_top_builddir_sub in
1418e6232409Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419e6232409Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420e6232409Smrg  esac ;;
1421e6232409Smrgesac
1422e6232409Smrgac_abs_top_builddir=$ac_pwd
1423e6232409Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1424e6232409Smrg# for backward compatibility:
1425e6232409Smrgac_top_builddir=$ac_top_build_prefix
1426e6232409Smrg
1427e6232409Smrgcase $srcdir in
1428e6232409Smrg  .)  # We are building in place.
1429e6232409Smrg    ac_srcdir=.
1430e6232409Smrg    ac_top_srcdir=$ac_top_builddir_sub
1431e6232409Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1432e6232409Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1433e6232409Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1434e6232409Smrg    ac_top_srcdir=$srcdir
1435e6232409Smrg    ac_abs_top_srcdir=$srcdir ;;
1436e6232409Smrg  *) # Relative name.
1437e6232409Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438e6232409Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1439e6232409Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440e6232409Smrgesac
1441e6232409Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442e6232409Smrg
1443e6232409Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1444e6232409Smrg    # Check for guested configure.
1445e6232409Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1446e6232409Smrg      echo &&
1447e6232409Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448e6232409Smrg    elif test -f "$ac_srcdir/configure"; then
1449e6232409Smrg      echo &&
1450e6232409Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
1451e6232409Smrg    else
14528fff3f40Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1453e6232409Smrg    fi || ac_status=$?
1454e6232409Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
1455e6232409Smrg  done
1456e6232409Smrgfi
1457e6232409Smrg
1458e6232409Smrgtest -n "$ac_init_help" && exit $ac_status
1459e6232409Smrgif $ac_init_version; then
1460e6232409Smrg  cat <<\_ACEOF
146194a251fdSmrgxlsfonts configure 1.0.4
146294a251fdSmrggenerated by GNU Autoconf 2.68
1463e6232409Smrg
146494a251fdSmrgCopyright (C) 2010 Free Software Foundation, Inc.
1465e6232409SmrgThis configure script is free software; the Free Software Foundation
1466e6232409Smrggives unlimited permission to copy, distribute and modify it.
1467e6232409Smrg_ACEOF
1468e6232409Smrg  exit
1469e6232409Smrgfi
1470e6232409Smrg
14718fff3f40Smrg## ------------------------ ##
14728fff3f40Smrg## Autoconf initialization. ##
14738fff3f40Smrg## ------------------------ ##
1474e6232409Smrg
14758fff3f40Smrg# ac_fn_c_try_compile LINENO
14768fff3f40Smrg# --------------------------
14778fff3f40Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
14788fff3f40Smrgac_fn_c_try_compile ()
1479e6232409Smrg{
14808fff3f40Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14818fff3f40Smrg  rm -f conftest.$ac_objext
14828fff3f40Smrg  if { { ac_try="$ac_compile"
14838fff3f40Smrgcase "(($ac_try" in
14848fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858fff3f40Smrg  *) ac_try_echo=$ac_try;;
14868fff3f40Smrgesac
14878fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14888fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
14898fff3f40Smrg  (eval "$ac_compile") 2>conftest.err
14908fff3f40Smrg  ac_status=$?
14918fff3f40Smrg  if test -s conftest.err; then
14928fff3f40Smrg    grep -v '^ *+' conftest.err >conftest.er1
14938fff3f40Smrg    cat conftest.er1 >&5
14948fff3f40Smrg    mv -f conftest.er1 conftest.err
14958fff3f40Smrg  fi
14968fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14978fff3f40Smrg  test $ac_status = 0; } && {
14988fff3f40Smrg	 test -z "$ac_c_werror_flag" ||
14998fff3f40Smrg	 test ! -s conftest.err
15008fff3f40Smrg       } && test -s conftest.$ac_objext; then :
15018fff3f40Smrg  ac_retval=0
15028fff3f40Smrgelse
15038fff3f40Smrg  $as_echo "$as_me: failed program was:" >&5
15048fff3f40Smrgsed 's/^/| /' conftest.$ac_ext >&5
15058fff3f40Smrg
15068fff3f40Smrg	ac_retval=1
15078fff3f40Smrgfi
150894a251fdSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15098fff3f40Smrg  as_fn_set_status $ac_retval
15108fff3f40Smrg
15118fff3f40Smrg} # ac_fn_c_try_compile
15128fff3f40Smrg
151394a251fdSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
151494a251fdSmrg# ---------------------------------------------
151594a251fdSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
151694a251fdSmrg# accordingly.
15178fff3f40Smrgac_fn_c_check_decl ()
15188fff3f40Smrg{
15198fff3f40Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
152094a251fdSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
152194a251fdSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
152294a251fdSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
152394a251fdSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
152494a251fdSmrgif eval \${$3+:} false; then :
15258fff3f40Smrg  $as_echo_n "(cached) " >&6
15268fff3f40Smrgelse
15278fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288fff3f40Smrg/* end confdefs.h.  */
15298fff3f40Smrg$4
15308fff3f40Smrgint
15318fff3f40Smrgmain ()
15328fff3f40Smrg{
153394a251fdSmrg#ifndef $as_decl_name
153494a251fdSmrg#ifdef __cplusplus
153594a251fdSmrg  (void) $as_decl_use;
153694a251fdSmrg#else
153794a251fdSmrg  (void) $as_decl_name;
153894a251fdSmrg#endif
15398fff3f40Smrg#endif
15408fff3f40Smrg
15418fff3f40Smrg  ;
15428fff3f40Smrg  return 0;
15438fff3f40Smrg}
15448fff3f40Smrg_ACEOF
15458fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
15468fff3f40Smrg  eval "$3=yes"
15478fff3f40Smrgelse
15488fff3f40Smrg  eval "$3=no"
15498fff3f40Smrgfi
15508fff3f40Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15518fff3f40Smrgfi
15528fff3f40Smrgeval ac_res=\$$3
15538fff3f40Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15548fff3f40Smrg$as_echo "$ac_res" >&6; }
155594a251fdSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15568fff3f40Smrg
15578fff3f40Smrg} # ac_fn_c_check_decl
15588fff3f40Smrg
15598fff3f40Smrg# ac_fn_c_try_cpp LINENO
15608fff3f40Smrg# ----------------------
15618fff3f40Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
15628fff3f40Smrgac_fn_c_try_cpp ()
15638fff3f40Smrg{
15648fff3f40Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15658fff3f40Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
15668fff3f40Smrgcase "(($ac_try" in
15678fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688fff3f40Smrg  *) ac_try_echo=$ac_try;;
15698fff3f40Smrgesac
15708fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15718fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
15728fff3f40Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
15738fff3f40Smrg  ac_status=$?
15748fff3f40Smrg  if test -s conftest.err; then
15758fff3f40Smrg    grep -v '^ *+' conftest.err >conftest.er1
15768fff3f40Smrg    cat conftest.er1 >&5
15778fff3f40Smrg    mv -f conftest.er1 conftest.err
15788fff3f40Smrg  fi
15798fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
158094a251fdSmrg  test $ac_status = 0; } > conftest.i && {
15818fff3f40Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15828fff3f40Smrg	 test ! -s conftest.err
15838fff3f40Smrg       }; then :
15848fff3f40Smrg  ac_retval=0
15858fff3f40Smrgelse
15868fff3f40Smrg  $as_echo "$as_me: failed program was:" >&5
15878fff3f40Smrgsed 's/^/| /' conftest.$ac_ext >&5
15888fff3f40Smrg
15898fff3f40Smrg    ac_retval=1
15908fff3f40Smrgfi
159194a251fdSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15928fff3f40Smrg  as_fn_set_status $ac_retval
15938fff3f40Smrg
15948fff3f40Smrg} # ac_fn_c_try_cpp
15958fff3f40Smrg
15968fff3f40Smrg# ac_fn_c_try_run LINENO
15978fff3f40Smrg# ----------------------
15988fff3f40Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
15998fff3f40Smrg# that executables *can* be run.
16008fff3f40Smrgac_fn_c_try_run ()
16018fff3f40Smrg{
16028fff3f40Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16038fff3f40Smrg  if { { ac_try="$ac_link"
16048fff3f40Smrgcase "(($ac_try" in
16058fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068fff3f40Smrg  *) ac_try_echo=$ac_try;;
16078fff3f40Smrgesac
16088fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16098fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
16108fff3f40Smrg  (eval "$ac_link") 2>&5
16118fff3f40Smrg  ac_status=$?
16128fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16138fff3f40Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
16148fff3f40Smrg  { { case "(($ac_try" in
16158fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168fff3f40Smrg  *) ac_try_echo=$ac_try;;
16178fff3f40Smrgesac
16188fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16198fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
16208fff3f40Smrg  (eval "$ac_try") 2>&5
16218fff3f40Smrg  ac_status=$?
16228fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16238fff3f40Smrg  test $ac_status = 0; }; }; then :
16248fff3f40Smrg  ac_retval=0
16258fff3f40Smrgelse
16268fff3f40Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
16278fff3f40Smrg       $as_echo "$as_me: failed program was:" >&5
16288fff3f40Smrgsed 's/^/| /' conftest.$ac_ext >&5
16298fff3f40Smrg
16308fff3f40Smrg       ac_retval=$ac_status
16318fff3f40Smrgfi
16328fff3f40Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
163394a251fdSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16348fff3f40Smrg  as_fn_set_status $ac_retval
16358fff3f40Smrg
16368fff3f40Smrg} # ac_fn_c_try_run
16378fff3f40Smrg
16388fff3f40Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16398fff3f40Smrg# -------------------------------------------------------
16408fff3f40Smrg# Tests whether HEADER exists and can be compiled using the include files in
16418fff3f40Smrg# INCLUDES, setting the cache variable VAR accordingly.
16428fff3f40Smrgac_fn_c_check_header_compile ()
16438fff3f40Smrg{
16448fff3f40Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16458fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16468fff3f40Smrg$as_echo_n "checking for $2... " >&6; }
164794a251fdSmrgif eval \${$3+:} false; then :
16488fff3f40Smrg  $as_echo_n "(cached) " >&6
16498fff3f40Smrgelse
16508fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518fff3f40Smrg/* end confdefs.h.  */
16528fff3f40Smrg$4
16538fff3f40Smrg#include <$2>
16548fff3f40Smrg_ACEOF
16558fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
16568fff3f40Smrg  eval "$3=yes"
16578fff3f40Smrgelse
16588fff3f40Smrg  eval "$3=no"
16598fff3f40Smrgfi
16608fff3f40Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618fff3f40Smrgfi
16628fff3f40Smrgeval ac_res=\$$3
16638fff3f40Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16648fff3f40Smrg$as_echo "$ac_res" >&6; }
166594a251fdSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16668fff3f40Smrg
16678fff3f40Smrg} # ac_fn_c_check_header_compile
166894a251fdSmrg
166994a251fdSmrg# ac_fn_c_try_link LINENO
167094a251fdSmrg# -----------------------
167194a251fdSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
167294a251fdSmrgac_fn_c_try_link ()
167394a251fdSmrg{
167494a251fdSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
167594a251fdSmrg  rm -f conftest.$ac_objext conftest$ac_exeext
167694a251fdSmrg  if { { ac_try="$ac_link"
167794a251fdSmrgcase "(($ac_try" in
167894a251fdSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
167994a251fdSmrg  *) ac_try_echo=$ac_try;;
168094a251fdSmrgesac
168194a251fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
168294a251fdSmrg$as_echo "$ac_try_echo"; } >&5
168394a251fdSmrg  (eval "$ac_link") 2>conftest.err
168494a251fdSmrg  ac_status=$?
168594a251fdSmrg  if test -s conftest.err; then
168694a251fdSmrg    grep -v '^ *+' conftest.err >conftest.er1
168794a251fdSmrg    cat conftest.er1 >&5
168894a251fdSmrg    mv -f conftest.er1 conftest.err
168994a251fdSmrg  fi
169094a251fdSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
169194a251fdSmrg  test $ac_status = 0; } && {
169294a251fdSmrg	 test -z "$ac_c_werror_flag" ||
169394a251fdSmrg	 test ! -s conftest.err
169494a251fdSmrg       } && test -s conftest$ac_exeext && {
169594a251fdSmrg	 test "$cross_compiling" = yes ||
169694a251fdSmrg	 $as_test_x conftest$ac_exeext
169794a251fdSmrg       }; then :
169894a251fdSmrg  ac_retval=0
169994a251fdSmrgelse
170094a251fdSmrg  $as_echo "$as_me: failed program was:" >&5
170194a251fdSmrgsed 's/^/| /' conftest.$ac_ext >&5
170294a251fdSmrg
170394a251fdSmrg	ac_retval=1
170494a251fdSmrgfi
170594a251fdSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
170694a251fdSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
170794a251fdSmrg  # interfere with the next link command; also delete a directory that is
170894a251fdSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
170994a251fdSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
171094a251fdSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
171194a251fdSmrg  as_fn_set_status $ac_retval
171294a251fdSmrg
171394a251fdSmrg} # ac_fn_c_try_link
17148fff3f40Smrgcat >config.log <<_ACEOF
17158fff3f40SmrgThis file contains any messages produced by compilers while
17168fff3f40Smrgrunning configure, to aid debugging if configure makes a mistake.
17178fff3f40Smrg
171894a251fdSmrgIt was created by xlsfonts $as_me 1.0.4, which was
171994a251fdSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
17208fff3f40Smrg
17218fff3f40Smrg  $ $0 $@
17228fff3f40Smrg
17238fff3f40Smrg_ACEOF
17248fff3f40Smrgexec 5>>config.log
17258fff3f40Smrg{
17268fff3f40Smrgcat <<_ASUNAME
17278fff3f40Smrg## --------- ##
17288fff3f40Smrg## Platform. ##
17298fff3f40Smrg## --------- ##
17308fff3f40Smrg
17318fff3f40Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
17328fff3f40Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
17338fff3f40Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
17348fff3f40Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
17358fff3f40Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1736e6232409Smrg
1737e6232409Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1738e6232409Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1739e6232409Smrg
1740e6232409Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1741e6232409Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1742e6232409Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1743e6232409Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1744e6232409Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1745e6232409Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1746e6232409Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1747e6232409Smrg
1748e6232409Smrg_ASUNAME
1749e6232409Smrg
1750e6232409Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751e6232409Smrgfor as_dir in $PATH
1752e6232409Smrgdo
1753e6232409Smrg  IFS=$as_save_IFS
1754e6232409Smrg  test -z "$as_dir" && as_dir=.
17558fff3f40Smrg    $as_echo "PATH: $as_dir"
17568fff3f40Smrg  done
1757e6232409SmrgIFS=$as_save_IFS
1758e6232409Smrg
1759e6232409Smrg} >&5
1760e6232409Smrg
1761e6232409Smrgcat >&5 <<_ACEOF
1762e6232409Smrg
1763e6232409Smrg
1764e6232409Smrg## ----------- ##
1765e6232409Smrg## Core tests. ##
1766e6232409Smrg## ----------- ##
1767e6232409Smrg
1768e6232409Smrg_ACEOF
1769e6232409Smrg
1770e6232409Smrg
1771e6232409Smrg# Keep a trace of the command line.
1772e6232409Smrg# Strip out --no-create and --no-recursion so they do not pile up.
1773e6232409Smrg# Strip out --silent because we don't want to record it for future runs.
1774e6232409Smrg# Also quote any args containing shell meta-characters.
1775e6232409Smrg# Make two passes to allow for proper duplicate-argument suppression.
1776e6232409Smrgac_configure_args=
1777e6232409Smrgac_configure_args0=
1778e6232409Smrgac_configure_args1=
1779e6232409Smrgac_must_keep_next=false
1780e6232409Smrgfor ac_pass in 1 2
1781e6232409Smrgdo
1782e6232409Smrg  for ac_arg
1783e6232409Smrg  do
1784e6232409Smrg    case $ac_arg in
1785e6232409Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1786e6232409Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1787e6232409Smrg    | -silent | --silent | --silen | --sile | --sil)
1788e6232409Smrg      continue ;;
1789e6232409Smrg    *\'*)
17908fff3f40Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1791e6232409Smrg    esac
1792e6232409Smrg    case $ac_pass in
17938fff3f40Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1794e6232409Smrg    2)
17958fff3f40Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1796e6232409Smrg      if test $ac_must_keep_next = true; then
1797e6232409Smrg	ac_must_keep_next=false # Got value, back to normal.
1798e6232409Smrg      else
1799e6232409Smrg	case $ac_arg in
1800e6232409Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1801e6232409Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1802e6232409Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1803e6232409Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1804e6232409Smrg	    case "$ac_configure_args0 " in
1805e6232409Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1806e6232409Smrg	    esac
1807e6232409Smrg	    ;;
1808e6232409Smrg	  -* ) ac_must_keep_next=true ;;
1809e6232409Smrg	esac
1810e6232409Smrg      fi
18118fff3f40Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1812e6232409Smrg      ;;
1813e6232409Smrg    esac
1814e6232409Smrg  done
1815e6232409Smrgdone
18168fff3f40Smrg{ ac_configure_args0=; unset ac_configure_args0;}
18178fff3f40Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1818e6232409Smrg
1819e6232409Smrg# When interrupted or exit'd, cleanup temporary files, and complete
1820e6232409Smrg# config.log.  We remove comments because anyway the quotes in there
1821e6232409Smrg# would cause problems or look ugly.
1822e6232409Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1823e6232409Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1824e6232409Smrgtrap 'exit_status=$?
1825e6232409Smrg  # Save into config.log some information that might help in debugging.
1826e6232409Smrg  {
1827e6232409Smrg    echo
1828e6232409Smrg
182994a251fdSmrg    $as_echo "## ---------------- ##
1830e6232409Smrg## Cache variables. ##
183194a251fdSmrg## ---------------- ##"
1832e6232409Smrg    echo
1833e6232409Smrg    # The following way of writing the cache mishandles newlines in values,
1834e6232409Smrg(
1835e6232409Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1836e6232409Smrg    eval ac_val=\$$ac_var
1837e6232409Smrg    case $ac_val in #(
1838e6232409Smrg    *${as_nl}*)
1839e6232409Smrg      case $ac_var in #(
18408fff3f40Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18418fff3f40Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1842e6232409Smrg      esac
1843e6232409Smrg      case $ac_var in #(
1844e6232409Smrg      _ | IFS | as_nl) ;; #(
18458fff3f40Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18468fff3f40Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1847e6232409Smrg      esac ;;
1848e6232409Smrg    esac
1849e6232409Smrg  done
1850e6232409Smrg  (set) 2>&1 |
1851e6232409Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1852e6232409Smrg    *${as_nl}ac_space=\ *)
1853e6232409Smrg      sed -n \
1854e6232409Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1855e6232409Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1856e6232409Smrg      ;; #(
1857e6232409Smrg    *)
1858e6232409Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1859e6232409Smrg      ;;
1860e6232409Smrg    esac |
1861e6232409Smrg    sort
1862e6232409Smrg)
1863e6232409Smrg    echo
1864e6232409Smrg
186594a251fdSmrg    $as_echo "## ----------------- ##
1866e6232409Smrg## Output variables. ##
186794a251fdSmrg## ----------------- ##"
1868e6232409Smrg    echo
1869e6232409Smrg    for ac_var in $ac_subst_vars
1870e6232409Smrg    do
1871e6232409Smrg      eval ac_val=\$$ac_var
1872e6232409Smrg      case $ac_val in
18738fff3f40Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1874e6232409Smrg      esac
18758fff3f40Smrg      $as_echo "$ac_var='\''$ac_val'\''"
1876e6232409Smrg    done | sort
1877e6232409Smrg    echo
1878e6232409Smrg
1879e6232409Smrg    if test -n "$ac_subst_files"; then
188094a251fdSmrg      $as_echo "## ------------------- ##
1881e6232409Smrg## File substitutions. ##
188294a251fdSmrg## ------------------- ##"
1883e6232409Smrg      echo
1884e6232409Smrg      for ac_var in $ac_subst_files
1885e6232409Smrg      do
1886e6232409Smrg	eval ac_val=\$$ac_var
1887e6232409Smrg	case $ac_val in
18888fff3f40Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1889e6232409Smrg	esac
18908fff3f40Smrg	$as_echo "$ac_var='\''$ac_val'\''"
1891e6232409Smrg      done | sort
1892e6232409Smrg      echo
1893e6232409Smrg    fi
1894e6232409Smrg
1895e6232409Smrg    if test -s confdefs.h; then
189694a251fdSmrg      $as_echo "## ----------- ##
1897e6232409Smrg## confdefs.h. ##
189894a251fdSmrg## ----------- ##"
1899e6232409Smrg      echo
1900e6232409Smrg      cat confdefs.h
1901e6232409Smrg      echo
1902e6232409Smrg    fi
1903e6232409Smrg    test "$ac_signal" != 0 &&
19048fff3f40Smrg      $as_echo "$as_me: caught signal $ac_signal"
19058fff3f40Smrg    $as_echo "$as_me: exit $exit_status"
1906e6232409Smrg  } >&5
1907e6232409Smrg  rm -f core *.core core.conftest.* &&
1908e6232409Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1909e6232409Smrg    exit $exit_status
1910e6232409Smrg' 0
1911e6232409Smrgfor ac_signal in 1 2 13 15; do
19128fff3f40Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1913e6232409Smrgdone
1914e6232409Smrgac_signal=0
1915e6232409Smrg
1916e6232409Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1917e6232409Smrgrm -f -r conftest* confdefs.h
1918e6232409Smrg
19198fff3f40Smrg$as_echo "/* confdefs.h */" > confdefs.h
19208fff3f40Smrg
1921e6232409Smrg# Predefined preprocessor variables.
1922e6232409Smrg
1923e6232409Smrgcat >>confdefs.h <<_ACEOF
1924e6232409Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
1925e6232409Smrg_ACEOF
1926e6232409Smrg
1927e6232409Smrgcat >>confdefs.h <<_ACEOF
1928e6232409Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1929e6232409Smrg_ACEOF
1930e6232409Smrg
1931e6232409Smrgcat >>confdefs.h <<_ACEOF
1932e6232409Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
1933e6232409Smrg_ACEOF
1934e6232409Smrg
1935e6232409Smrgcat >>confdefs.h <<_ACEOF
1936e6232409Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
1937e6232409Smrg_ACEOF
1938e6232409Smrg
1939e6232409Smrgcat >>confdefs.h <<_ACEOF
1940e6232409Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1941e6232409Smrg_ACEOF
1942e6232409Smrg
19438fff3f40Smrgcat >>confdefs.h <<_ACEOF
19448fff3f40Smrg#define PACKAGE_URL "$PACKAGE_URL"
19458fff3f40Smrg_ACEOF
19468fff3f40Smrg
1947e6232409Smrg
1948e6232409Smrg# Let the site file select an alternate cache file if it wants to.
19498fff3f40Smrg# Prefer an explicitly selected file to automatically selected ones.
19508fff3f40Smrgac_site_file1=NONE
19518fff3f40Smrgac_site_file2=NONE
1952e6232409Smrgif test -n "$CONFIG_SITE"; then
195394a251fdSmrg  # We do not want a PATH search for config.site.
195494a251fdSmrg  case $CONFIG_SITE in #((
195594a251fdSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
195694a251fdSmrg    */*) ac_site_file1=$CONFIG_SITE;;
195794a251fdSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
195894a251fdSmrg  esac
1959e6232409Smrgelif test "x$prefix" != xNONE; then
19608fff3f40Smrg  ac_site_file1=$prefix/share/config.site
19618fff3f40Smrg  ac_site_file2=$prefix/etc/config.site
1962e6232409Smrgelse
19638fff3f40Smrg  ac_site_file1=$ac_default_prefix/share/config.site
19648fff3f40Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
1965e6232409Smrgfi
19668fff3f40Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
1967e6232409Smrgdo
19688fff3f40Smrg  test "x$ac_site_file" = xNONE && continue
19698fff3f40Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
19708fff3f40Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
19718fff3f40Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1972e6232409Smrg    sed 's/^/| /' "$ac_site_file" >&5
197394a251fdSmrg    . "$ac_site_file" \
197494a251fdSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
197594a251fdSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
197694a251fdSmrgas_fn_error $? "failed to load site script $ac_site_file
197794a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
1978e6232409Smrg  fi
1979e6232409Smrgdone
1980e6232409Smrg
1981e6232409Smrgif test -r "$cache_file"; then
19828fff3f40Smrg  # Some versions of bash will fail to source /dev/null (special files
19838fff3f40Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
19848fff3f40Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
19858fff3f40Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
19868fff3f40Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
1987e6232409Smrg    case $cache_file in
1988e6232409Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1989e6232409Smrg      *)                      . "./$cache_file";;
1990e6232409Smrg    esac
1991e6232409Smrg  fi
1992e6232409Smrgelse
19938fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
19948fff3f40Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
1995e6232409Smrg  >$cache_file
1996e6232409Smrgfi
1997e6232409Smrg
1998e6232409Smrg# Check that the precious variables saved in the cache have kept the same
1999e6232409Smrg# value.
2000e6232409Smrgac_cache_corrupted=false
2001e6232409Smrgfor ac_var in $ac_precious_vars; do
2002e6232409Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2003e6232409Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
2004e6232409Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2005e6232409Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
2006e6232409Smrg  case $ac_old_set,$ac_new_set in
2007e6232409Smrg    set,)
20088fff3f40Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
20098fff3f40Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2010e6232409Smrg      ac_cache_corrupted=: ;;
2011e6232409Smrg    ,set)
20128fff3f40Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
20138fff3f40Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2014e6232409Smrg      ac_cache_corrupted=: ;;
2015e6232409Smrg    ,);;
2016e6232409Smrg    *)
2017e6232409Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
20188fff3f40Smrg	# differences in whitespace do not lead to failure.
20198fff3f40Smrg	ac_old_val_w=`echo x $ac_old_val`
20208fff3f40Smrg	ac_new_val_w=`echo x $ac_new_val`
20218fff3f40Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
20228fff3f40Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
20238fff3f40Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
20248fff3f40Smrg	  ac_cache_corrupted=:
20258fff3f40Smrg	else
20268fff3f40Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
20278fff3f40Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
20288fff3f40Smrg	  eval $ac_var=\$ac_old_val
20298fff3f40Smrg	fi
20308fff3f40Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
20318fff3f40Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
20328fff3f40Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
20338fff3f40Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2034e6232409Smrg      fi;;
2035e6232409Smrg  esac
2036e6232409Smrg  # Pass precious variables to config.status.
2037e6232409Smrg  if test "$ac_new_set" = set; then
2038e6232409Smrg    case $ac_new_val in
20398fff3f40Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2040e6232409Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
2041e6232409Smrg    esac
2042e6232409Smrg    case " $ac_configure_args " in
2043e6232409Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
20448fff3f40Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2045e6232409Smrg    esac
2046e6232409Smrg  fi
2047e6232409Smrgdone
2048e6232409Smrgif $ac_cache_corrupted; then
20498fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20508fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20518fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
20528fff3f40Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
205394a251fdSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2054e6232409Smrgfi
20558fff3f40Smrg## -------------------- ##
20568fff3f40Smrg## Main body of script. ##
20578fff3f40Smrg## -------------------- ##
2058e6232409Smrg
2059e6232409Smrgac_ext=c
2060e6232409Smrgac_cpp='$CPP $CPPFLAGS'
2061e6232409Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062e6232409Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063e6232409Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2064e6232409Smrg
2065e6232409Smrg
20668fff3f40Smrgam__api_version='1.11'
20678fff3f40Smrg
2068e6232409Smrgac_aux_dir=
2069e6232409Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
207094a251fdSmrg  if test -f "$ac_dir/install-sh"; then
207194a251fdSmrg    ac_aux_dir=$ac_dir
207294a251fdSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
207394a251fdSmrg    break
207494a251fdSmrg  elif test -f "$ac_dir/install.sh"; then
207594a251fdSmrg    ac_aux_dir=$ac_dir
207694a251fdSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
207794a251fdSmrg    break
207894a251fdSmrg  elif test -f "$ac_dir/shtool"; then
207994a251fdSmrg    ac_aux_dir=$ac_dir
208094a251fdSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
208194a251fdSmrg    break
208294a251fdSmrg  fi
2083e6232409Smrgdone
2084e6232409Smrgif test -z "$ac_aux_dir"; then
208594a251fdSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2086e6232409Smrgfi
2087e6232409Smrg
2088e6232409Smrg# These three variables are undocumented and unsupported,
2089e6232409Smrg# and are intended to be withdrawn in a future Autoconf release.
2090e6232409Smrg# They can cause serious problems if a builder's source tree is in a directory
2091e6232409Smrg# whose full name contains unusual characters.
2092e6232409Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2093e6232409Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2094e6232409Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2095e6232409Smrg
2096e6232409Smrg
2097e6232409Smrg# Find a good install program.  We prefer a C program (faster),
2098e6232409Smrg# so one script is as good as another.  But avoid the broken or
2099e6232409Smrg# incompatible versions:
2100e6232409Smrg# SysV /etc/install, /usr/sbin/install
2101e6232409Smrg# SunOS /usr/etc/install
2102e6232409Smrg# IRIX /sbin/install
2103e6232409Smrg# AIX /bin/install
2104e6232409Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2105e6232409Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2106e6232409Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2107e6232409Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2108e6232409Smrg# OS/2's system install, which has a completely different semantic
2109e6232409Smrg# ./install, which can be erroneously created by make from ./install.sh.
21108fff3f40Smrg# Reject install programs that cannot install multiple files.
21118fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
21128fff3f40Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2113e6232409Smrgif test -z "$INSTALL"; then
211494a251fdSmrgif ${ac_cv_path_install+:} false; then :
21158fff3f40Smrg  $as_echo_n "(cached) " >&6
2116e6232409Smrgelse
2117e6232409Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118e6232409Smrgfor as_dir in $PATH
2119e6232409Smrgdo
2120e6232409Smrg  IFS=$as_save_IFS
2121e6232409Smrg  test -z "$as_dir" && as_dir=.
21228fff3f40Smrg    # Account for people who put trailing slashes in PATH elements.
21238fff3f40Smrgcase $as_dir/ in #((
21248fff3f40Smrg  ./ | .// | /[cC]/* | \
2125e6232409Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
21268fff3f40Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2127e6232409Smrg  /usr/ucb/* ) ;;
2128e6232409Smrg  *)
2129e6232409Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2130e6232409Smrg    # Don't use installbsd from OSF since it installs stuff as root
2131e6232409Smrg    # by default.
2132e6232409Smrg    for ac_prog in ginstall scoinst install; do
2133e6232409Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
21348fff3f40Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2135e6232409Smrg	  if test $ac_prog = install &&
2136e6232409Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2137e6232409Smrg	    # AIX install.  It has an incompatible calling convention.
2138e6232409Smrg	    :
2139e6232409Smrg	  elif test $ac_prog = install &&
2140e6232409Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2141e6232409Smrg	    # program-specific install script used by HP pwplus--don't use.
2142e6232409Smrg	    :
2143e6232409Smrg	  else
21448fff3f40Smrg	    rm -rf conftest.one conftest.two conftest.dir
21458fff3f40Smrg	    echo one > conftest.one
21468fff3f40Smrg	    echo two > conftest.two
21478fff3f40Smrg	    mkdir conftest.dir
21488fff3f40Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
21498fff3f40Smrg	      test -s conftest.one && test -s conftest.two &&
21508fff3f40Smrg	      test -s conftest.dir/conftest.one &&
21518fff3f40Smrg	      test -s conftest.dir/conftest.two
21528fff3f40Smrg	    then
21538fff3f40Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
21548fff3f40Smrg	      break 3
21558fff3f40Smrg	    fi
2156e6232409Smrg	  fi
2157e6232409Smrg	fi
2158e6232409Smrg      done
2159e6232409Smrg    done
2160e6232409Smrg    ;;
2161e6232409Smrgesac
21628fff3f40Smrg
21638fff3f40Smrg  done
2164e6232409SmrgIFS=$as_save_IFS
2165e6232409Smrg
21668fff3f40Smrgrm -rf conftest.one conftest.two conftest.dir
2167e6232409Smrg
2168e6232409Smrgfi
2169e6232409Smrg  if test "${ac_cv_path_install+set}" = set; then
2170e6232409Smrg    INSTALL=$ac_cv_path_install
2171e6232409Smrg  else
2172e6232409Smrg    # As a last resort, use the slow shell script.  Don't cache a
2173e6232409Smrg    # value for INSTALL within a source directory, because that will
2174e6232409Smrg    # break other packages using the cache if that directory is
2175e6232409Smrg    # removed, or if the value is a relative name.
2176e6232409Smrg    INSTALL=$ac_install_sh
2177e6232409Smrg  fi
2178e6232409Smrgfi
21798fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
21808fff3f40Smrg$as_echo "$INSTALL" >&6; }
2181e6232409Smrg
2182e6232409Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2183e6232409Smrg# It thinks the first close brace ends the variable substitution.
2184e6232409Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2185e6232409Smrg
2186e6232409Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2187e6232409Smrg
2188e6232409Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2189e6232409Smrg
21908fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
21918fff3f40Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
2192e6232409Smrg# Just in case
2193e6232409Smrgsleep 1
2194e6232409Smrgecho timestamp > conftest.file
21958fff3f40Smrg# Reject unsafe characters in $srcdir or the absolute working directory
21968fff3f40Smrg# name.  Accept space and tab only in the latter.
21978fff3f40Smrgam_lf='
21988fff3f40Smrg'
21998fff3f40Smrgcase `pwd` in
22008fff3f40Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
220194a251fdSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
22028fff3f40Smrgesac
22038fff3f40Smrgcase $srcdir in
22048fff3f40Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
220594a251fdSmrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
22068fff3f40Smrgesac
22078fff3f40Smrg
2208e6232409Smrg# Do `set' in a subshell so we don't clobber the current shell's
2209e6232409Smrg# arguments.  Must try -L first in case configure is actually a
2210e6232409Smrg# symlink; some systems play weird games with the mod time of symlinks
2211e6232409Smrg# (eg FreeBSD returns the mod time of the symlink's containing
2212e6232409Smrg# directory).
2213e6232409Smrgif (
22148fff3f40Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2215e6232409Smrg   if test "$*" = "X"; then
2216e6232409Smrg      # -L didn't work.
22178fff3f40Smrg      set X `ls -t "$srcdir/configure" conftest.file`
2218e6232409Smrg   fi
2219e6232409Smrg   rm -f conftest.file
2220e6232409Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
2221e6232409Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2222e6232409Smrg
22238fff3f40Smrg      # If neither matched, then we have a broken ls.  This can happen
22248fff3f40Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
22258fff3f40Smrg      # broken ls alias from the environment.  This has actually
22268fff3f40Smrg      # happened.  Such a system could not be considered "sane".
222794a251fdSmrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
22288fff3f40Smrgalias in your environment" "$LINENO" 5
22298fff3f40Smrg   fi
22308fff3f40Smrg
22318fff3f40Smrg   test "$2" = conftest.file
22328fff3f40Smrg   )
22338fff3f40Smrgthen
22348fff3f40Smrg   # Ok.
22358fff3f40Smrg   :
22368fff3f40Smrgelse
223794a251fdSmrg   as_fn_error $? "newly created file is older than distributed files!
22388fff3f40SmrgCheck your system clock" "$LINENO" 5
22398fff3f40Smrgfi
22408fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22418fff3f40Smrg$as_echo "yes" >&6; }
22428fff3f40Smrgtest "$program_prefix" != NONE &&
22438fff3f40Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
22448fff3f40Smrg# Use a double $ so make ignores it.
22458fff3f40Smrgtest "$program_suffix" != NONE &&
22468fff3f40Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
22478fff3f40Smrg# Double any \ or $.
22488fff3f40Smrg# By default was `s,x,x', remove it if useless.
22498fff3f40Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
22508fff3f40Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
22518fff3f40Smrg
22528fff3f40Smrg# expand $ac_aux_dir to an absolute path
22538fff3f40Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
22548fff3f40Smrg
22558fff3f40Smrgif test x"${MISSING+set}" != xset; then
22568fff3f40Smrg  case $am_aux_dir in
22578fff3f40Smrg  *\ * | *\	*)
22588fff3f40Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
22598fff3f40Smrg  *)
22608fff3f40Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
22618fff3f40Smrg  esac
22628fff3f40Smrgfi
22638fff3f40Smrg# Use eval to expand $SHELL
22648fff3f40Smrgif eval "$MISSING --run true"; then
22658fff3f40Smrg  am_missing_run="$MISSING --run "
22668fff3f40Smrgelse
22678fff3f40Smrg  am_missing_run=
22688fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
22698fff3f40Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
22708fff3f40Smrgfi
22718fff3f40Smrg
22728fff3f40Smrgif test x"${install_sh}" != xset; then
22738fff3f40Smrg  case $am_aux_dir in
22748fff3f40Smrg  *\ * | *\	*)
22758fff3f40Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
22768fff3f40Smrg  *)
22778fff3f40Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
22788fff3f40Smrg  esac
22798fff3f40Smrgfi
22808fff3f40Smrg
22818fff3f40Smrg# Installed binaries are usually stripped using `strip' when the user
22828fff3f40Smrg# run `make install-strip'.  However `strip' might not be the right
22838fff3f40Smrg# tool to use in cross-compilation environments, therefore Automake
22848fff3f40Smrg# will honor the `STRIP' environment variable to overrule this program.
22858fff3f40Smrgif test "$cross_compiling" != no; then
22868fff3f40Smrg  if test -n "$ac_tool_prefix"; then
22878fff3f40Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
22888fff3f40Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
22898fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22908fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
229194a251fdSmrgif ${ac_cv_prog_STRIP+:} false; then :
22928fff3f40Smrg  $as_echo_n "(cached) " >&6
22938fff3f40Smrgelse
22948fff3f40Smrg  if test -n "$STRIP"; then
22958fff3f40Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
22968fff3f40Smrgelse
22978fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22988fff3f40Smrgfor as_dir in $PATH
22998fff3f40Smrgdo
23008fff3f40Smrg  IFS=$as_save_IFS
23018fff3f40Smrg  test -z "$as_dir" && as_dir=.
23028fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
23038fff3f40Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23048fff3f40Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
23058fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23068fff3f40Smrg    break 2
23078fff3f40Smrg  fi
23088fff3f40Smrgdone
23098fff3f40Smrg  done
23108fff3f40SmrgIFS=$as_save_IFS
23118fff3f40Smrg
23128fff3f40Smrgfi
23138fff3f40Smrgfi
23148fff3f40SmrgSTRIP=$ac_cv_prog_STRIP
23158fff3f40Smrgif test -n "$STRIP"; then
23168fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
23178fff3f40Smrg$as_echo "$STRIP" >&6; }
23188fff3f40Smrgelse
23198fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23208fff3f40Smrg$as_echo "no" >&6; }
23218fff3f40Smrgfi
23228fff3f40Smrg
23238fff3f40Smrg
23248fff3f40Smrgfi
23258fff3f40Smrgif test -z "$ac_cv_prog_STRIP"; then
23268fff3f40Smrg  ac_ct_STRIP=$STRIP
23278fff3f40Smrg  # Extract the first word of "strip", so it can be a program name with args.
23288fff3f40Smrgset dummy strip; ac_word=$2
23298fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23308fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
233194a251fdSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
23328fff3f40Smrg  $as_echo_n "(cached) " >&6
23338fff3f40Smrgelse
23348fff3f40Smrg  if test -n "$ac_ct_STRIP"; then
23358fff3f40Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
23368fff3f40Smrgelse
23378fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23388fff3f40Smrgfor as_dir in $PATH
23398fff3f40Smrgdo
23408fff3f40Smrg  IFS=$as_save_IFS
23418fff3f40Smrg  test -z "$as_dir" && as_dir=.
23428fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
23438fff3f40Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23448fff3f40Smrg    ac_cv_prog_ac_ct_STRIP="strip"
23458fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23468fff3f40Smrg    break 2
23478fff3f40Smrg  fi
23488fff3f40Smrgdone
23498fff3f40Smrg  done
23508fff3f40SmrgIFS=$as_save_IFS
23518fff3f40Smrg
23528fff3f40Smrgfi
23538fff3f40Smrgfi
23548fff3f40Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
23558fff3f40Smrgif test -n "$ac_ct_STRIP"; then
23568fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
23578fff3f40Smrg$as_echo "$ac_ct_STRIP" >&6; }
23588fff3f40Smrgelse
23598fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23608fff3f40Smrg$as_echo "no" >&6; }
23618fff3f40Smrgfi
23628fff3f40Smrg
23638fff3f40Smrg  if test "x$ac_ct_STRIP" = x; then
23648fff3f40Smrg    STRIP=":"
23658fff3f40Smrg  else
23668fff3f40Smrg    case $cross_compiling:$ac_tool_warned in
23678fff3f40Smrgyes:)
23688fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23698fff3f40Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23708fff3f40Smrgac_tool_warned=yes ;;
23718fff3f40Smrgesac
23728fff3f40Smrg    STRIP=$ac_ct_STRIP
23738fff3f40Smrg  fi
23748fff3f40Smrgelse
23758fff3f40Smrg  STRIP="$ac_cv_prog_STRIP"
23768fff3f40Smrgfi
23778fff3f40Smrg
23788fff3f40Smrgfi
23798fff3f40SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
23808fff3f40Smrg
23818fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
23828fff3f40Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
23838fff3f40Smrgif test -z "$MKDIR_P"; then
238494a251fdSmrg  if ${ac_cv_path_mkdir+:} false; then :
23858fff3f40Smrg  $as_echo_n "(cached) " >&6
23868fff3f40Smrgelse
23878fff3f40Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23888fff3f40Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
23898fff3f40Smrgdo
23908fff3f40Smrg  IFS=$as_save_IFS
23918fff3f40Smrg  test -z "$as_dir" && as_dir=.
23928fff3f40Smrg    for ac_prog in mkdir gmkdir; do
23938fff3f40Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
23948fff3f40Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
23958fff3f40Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
23968fff3f40Smrg	     'mkdir (GNU coreutils) '* | \
23978fff3f40Smrg	     'mkdir (coreutils) '* | \
23988fff3f40Smrg	     'mkdir (fileutils) '4.1*)
23998fff3f40Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
24008fff3f40Smrg	       break 3;;
24018fff3f40Smrg	   esac
24028fff3f40Smrg	 done
24038fff3f40Smrg       done
24048fff3f40Smrg  done
24058fff3f40SmrgIFS=$as_save_IFS
24068fff3f40Smrg
24078fff3f40Smrgfi
24088fff3f40Smrg
24098fff3f40Smrg  test -d ./--version && rmdir ./--version
24108fff3f40Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
24118fff3f40Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
24128fff3f40Smrg  else
24138fff3f40Smrg    # As a last resort, use the slow shell script.  Don't cache a
24148fff3f40Smrg    # value for MKDIR_P within a source directory, because that will
24158fff3f40Smrg    # break other packages using the cache if that directory is
24168fff3f40Smrg    # removed, or if the value is a relative name.
24178fff3f40Smrg    MKDIR_P="$ac_install_sh -d"
24188fff3f40Smrg  fi
24198fff3f40Smrgfi
24208fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
24218fff3f40Smrg$as_echo "$MKDIR_P" >&6; }
24228fff3f40Smrg
24238fff3f40Smrgmkdir_p="$MKDIR_P"
24248fff3f40Smrgcase $mkdir_p in
24258fff3f40Smrg  [\\/$]* | ?:[\\/]*) ;;
24268fff3f40Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
24278fff3f40Smrgesac
24288fff3f40Smrg
24298fff3f40Smrgfor ac_prog in gawk mawk nawk awk
24308fff3f40Smrgdo
24318fff3f40Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
24328fff3f40Smrgset dummy $ac_prog; ac_word=$2
24338fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24348fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
243594a251fdSmrgif ${ac_cv_prog_AWK+:} false; then :
24368fff3f40Smrg  $as_echo_n "(cached) " >&6
24378fff3f40Smrgelse
24388fff3f40Smrg  if test -n "$AWK"; then
24398fff3f40Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
24408fff3f40Smrgelse
24418fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24428fff3f40Smrgfor as_dir in $PATH
24438fff3f40Smrgdo
24448fff3f40Smrg  IFS=$as_save_IFS
24458fff3f40Smrg  test -z "$as_dir" && as_dir=.
24468fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
24478fff3f40Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24488fff3f40Smrg    ac_cv_prog_AWK="$ac_prog"
24498fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24508fff3f40Smrg    break 2
24518fff3f40Smrg  fi
24528fff3f40Smrgdone
24538fff3f40Smrg  done
24548fff3f40SmrgIFS=$as_save_IFS
24558fff3f40Smrg
24568fff3f40Smrgfi
24578fff3f40Smrgfi
24588fff3f40SmrgAWK=$ac_cv_prog_AWK
24598fff3f40Smrgif test -n "$AWK"; then
24608fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
24618fff3f40Smrg$as_echo "$AWK" >&6; }
24628fff3f40Smrgelse
24638fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24648fff3f40Smrg$as_echo "no" >&6; }
24658fff3f40Smrgfi
24668fff3f40Smrg
24678fff3f40Smrg
24688fff3f40Smrg  test -n "$AWK" && break
24698fff3f40Smrgdone
24708fff3f40Smrg
24718fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
24728fff3f40Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
24738fff3f40Smrgset x ${MAKE-make}
24748fff3f40Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
247594a251fdSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
24768fff3f40Smrg  $as_echo_n "(cached) " >&6
24778fff3f40Smrgelse
24788fff3f40Smrg  cat >conftest.make <<\_ACEOF
24798fff3f40SmrgSHELL = /bin/sh
24808fff3f40Smrgall:
24818fff3f40Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
24828fff3f40Smrg_ACEOF
248394a251fdSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24848fff3f40Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
24858fff3f40Smrg  *@@@%%%=?*=@@@%%%*)
24868fff3f40Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
24878fff3f40Smrg  *)
24888fff3f40Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
24898fff3f40Smrgesac
24908fff3f40Smrgrm -f conftest.make
24918fff3f40Smrgfi
24928fff3f40Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
24938fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24948fff3f40Smrg$as_echo "yes" >&6; }
24958fff3f40Smrg  SET_MAKE=
24968fff3f40Smrgelse
24978fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24988fff3f40Smrg$as_echo "no" >&6; }
24998fff3f40Smrg  SET_MAKE="MAKE=${MAKE-make}"
25008fff3f40Smrgfi
25018fff3f40Smrg
25028fff3f40Smrgrm -rf .tst 2>/dev/null
25038fff3f40Smrgmkdir .tst 2>/dev/null
25048fff3f40Smrgif test -d .tst; then
25058fff3f40Smrg  am__leading_dot=.
25068fff3f40Smrgelse
25078fff3f40Smrg  am__leading_dot=_
25088fff3f40Smrgfi
25098fff3f40Smrgrmdir .tst 2>/dev/null
25108fff3f40Smrg
25118fff3f40Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
25128fff3f40Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
25138fff3f40Smrg  # is not polluted with repeated "-I."
25148fff3f40Smrg  am__isrc=' -I$(srcdir)'
25158fff3f40Smrg  # test to see if srcdir already configured
25168fff3f40Smrg  if test -f $srcdir/config.status; then
251794a251fdSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
25188fff3f40Smrg  fi
25198fff3f40Smrgfi
25208fff3f40Smrg
25218fff3f40Smrg# test whether we have cygpath
25228fff3f40Smrgif test -z "$CYGPATH_W"; then
25238fff3f40Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
25248fff3f40Smrg    CYGPATH_W='cygpath -w'
25258fff3f40Smrg  else
25268fff3f40Smrg    CYGPATH_W=echo
25278fff3f40Smrg  fi
25288fff3f40Smrgfi
25298fff3f40Smrg
25308fff3f40Smrg
25318fff3f40Smrg# Define the identity of the package.
25328fff3f40Smrg PACKAGE='xlsfonts'
253394a251fdSmrg VERSION='1.0.4'
25348fff3f40Smrg
25358fff3f40Smrg
25368fff3f40Smrgcat >>confdefs.h <<_ACEOF
25378fff3f40Smrg#define PACKAGE "$PACKAGE"
25388fff3f40Smrg_ACEOF
25398fff3f40Smrg
25408fff3f40Smrg
25418fff3f40Smrgcat >>confdefs.h <<_ACEOF
25428fff3f40Smrg#define VERSION "$VERSION"
25438fff3f40Smrg_ACEOF
25448fff3f40Smrg
25458fff3f40Smrg# Some tools Automake needs.
25468fff3f40Smrg
25478fff3f40SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
25488fff3f40Smrg
25498fff3f40Smrg
25508fff3f40SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
25518fff3f40Smrg
25528fff3f40Smrg
25538fff3f40SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
25548fff3f40Smrg
25558fff3f40Smrg
25568fff3f40SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
25578fff3f40Smrg
25588fff3f40Smrg
25598fff3f40SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
25608fff3f40Smrg
25618fff3f40Smrg# We need awk for the "check" target.  The system "awk" is bad on
25628fff3f40Smrg# some platforms.
25638fff3f40Smrg# Always define AMTAR for backward compatibility.
25648fff3f40Smrg
25658fff3f40SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
25668fff3f40Smrg
25678fff3f40Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
25688fff3f40Smrg
25698fff3f40Smrg
25708fff3f40Smrg
25718fff3f40Smrg
25728fff3f40Smrg
25738fff3f40Smrg
25748fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25758fff3f40Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25768fff3f40Smrg    # Check whether --enable-maintainer-mode was given.
25778fff3f40Smrgif test "${enable_maintainer_mode+set}" = set; then :
25788fff3f40Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25798fff3f40Smrgelse
25808fff3f40Smrg  USE_MAINTAINER_MODE=no
25818fff3f40Smrgfi
25828fff3f40Smrg
25838fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
25848fff3f40Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
25858fff3f40Smrg   if test $USE_MAINTAINER_MODE = yes; then
25868fff3f40Smrg  MAINTAINER_MODE_TRUE=
25878fff3f40Smrg  MAINTAINER_MODE_FALSE='#'
25888fff3f40Smrgelse
25898fff3f40Smrg  MAINTAINER_MODE_TRUE='#'
25908fff3f40Smrg  MAINTAINER_MODE_FALSE=
25918fff3f40Smrgfi
25928fff3f40Smrg
25938fff3f40Smrg  MAINT=$MAINTAINER_MODE_TRUE
25948fff3f40Smrg
25958fff3f40Smrg
25968fff3f40Smrg
259794a251fdSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
25988fff3f40Smrg
25998fff3f40Smrg
26008fff3f40Smrg
26018fff3f40Smrg
26028fff3f40Smrg
26038fff3f40Smrg
26048fff3f40Smrg
26058fff3f40Smrg
26068fff3f40Smrg
26078fff3f40Smrg
26088fff3f40Smrg
26098fff3f40SmrgDEPDIR="${am__leading_dot}deps"
26108fff3f40Smrg
26118fff3f40Smrgac_config_commands="$ac_config_commands depfiles"
26128fff3f40Smrg
26138fff3f40Smrg
26148fff3f40Smrgam_make=${MAKE-make}
26158fff3f40Smrgcat > confinc << 'END'
26168fff3f40Smrgam__doit:
26178fff3f40Smrg	@echo this is the am__doit target
26188fff3f40Smrg.PHONY: am__doit
26198fff3f40SmrgEND
26208fff3f40Smrg# If we don't find an include directive, just comment out the code.
26218fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
26228fff3f40Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
26238fff3f40Smrgam__include="#"
26248fff3f40Smrgam__quote=
26258fff3f40Smrg_am_result=none
26268fff3f40Smrg# First try GNU make style include.
26278fff3f40Smrgecho "include confinc" > confmf
26288fff3f40Smrg# Ignore all kinds of additional output from `make'.
26298fff3f40Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
26308fff3f40Smrg*the\ am__doit\ target*)
26318fff3f40Smrg  am__include=include
26328fff3f40Smrg  am__quote=
26338fff3f40Smrg  _am_result=GNU
26348fff3f40Smrg  ;;
26358fff3f40Smrgesac
26368fff3f40Smrg# Now try BSD make style include.
26378fff3f40Smrgif test "$am__include" = "#"; then
26388fff3f40Smrg   echo '.include "confinc"' > confmf
26398fff3f40Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
26408fff3f40Smrg   *the\ am__doit\ target*)
26418fff3f40Smrg     am__include=.include
26428fff3f40Smrg     am__quote="\""
26438fff3f40Smrg     _am_result=BSD
26448fff3f40Smrg     ;;
26458fff3f40Smrg   esac
26468fff3f40Smrgfi
26478fff3f40Smrg
26488fff3f40Smrg
26498fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
26508fff3f40Smrg$as_echo "$_am_result" >&6; }
26518fff3f40Smrgrm -f confinc confmf
26528fff3f40Smrg
26538fff3f40Smrg# Check whether --enable-dependency-tracking was given.
26548fff3f40Smrgif test "${enable_dependency_tracking+set}" = set; then :
26558fff3f40Smrg  enableval=$enable_dependency_tracking;
26568fff3f40Smrgfi
26578fff3f40Smrg
26588fff3f40Smrgif test "x$enable_dependency_tracking" != xno; then
26598fff3f40Smrg  am_depcomp="$ac_aux_dir/depcomp"
26608fff3f40Smrg  AMDEPBACKSLASH='\'
266194a251fdSmrg  am__nodep='_no'
26628fff3f40Smrgfi
26638fff3f40Smrg if test "x$enable_dependency_tracking" != xno; then
26648fff3f40Smrg  AMDEP_TRUE=
26658fff3f40Smrg  AMDEP_FALSE='#'
26668fff3f40Smrgelse
26678fff3f40Smrg  AMDEP_TRUE='#'
26688fff3f40Smrg  AMDEP_FALSE=
26698fff3f40Smrgfi
26708fff3f40Smrg
26718fff3f40Smrg
26728fff3f40Smrgac_ext=c
26738fff3f40Smrgac_cpp='$CPP $CPPFLAGS'
26748fff3f40Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26758fff3f40Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26768fff3f40Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
26778fff3f40Smrgif test -n "$ac_tool_prefix"; then
26788fff3f40Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
26798fff3f40Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
26808fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26818fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
268294a251fdSmrgif ${ac_cv_prog_CC+:} false; then :
26838fff3f40Smrg  $as_echo_n "(cached) " >&6
26848fff3f40Smrgelse
26858fff3f40Smrg  if test -n "$CC"; then
26868fff3f40Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
26878fff3f40Smrgelse
26888fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26898fff3f40Smrgfor as_dir in $PATH
26908fff3f40Smrgdo
26918fff3f40Smrg  IFS=$as_save_IFS
26928fff3f40Smrg  test -z "$as_dir" && as_dir=.
26938fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
26948fff3f40Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26958fff3f40Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
26968fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26978fff3f40Smrg    break 2
26988fff3f40Smrg  fi
26998fff3f40Smrgdone
27008fff3f40Smrg  done
27018fff3f40SmrgIFS=$as_save_IFS
27028fff3f40Smrg
27038fff3f40Smrgfi
27048fff3f40Smrgfi
27058fff3f40SmrgCC=$ac_cv_prog_CC
27068fff3f40Smrgif test -n "$CC"; then
27078fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
27088fff3f40Smrg$as_echo "$CC" >&6; }
27098fff3f40Smrgelse
27108fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27118fff3f40Smrg$as_echo "no" >&6; }
27128fff3f40Smrgfi
27138fff3f40Smrg
27148fff3f40Smrg
27158fff3f40Smrgfi
27168fff3f40Smrgif test -z "$ac_cv_prog_CC"; then
27178fff3f40Smrg  ac_ct_CC=$CC
27188fff3f40Smrg  # Extract the first word of "gcc", so it can be a program name with args.
27198fff3f40Smrgset dummy gcc; ac_word=$2
27208fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27218fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
272294a251fdSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
27238fff3f40Smrg  $as_echo_n "(cached) " >&6
27248fff3f40Smrgelse
27258fff3f40Smrg  if test -n "$ac_ct_CC"; then
27268fff3f40Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
27278fff3f40Smrgelse
27288fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27298fff3f40Smrgfor as_dir in $PATH
27308fff3f40Smrgdo
27318fff3f40Smrg  IFS=$as_save_IFS
27328fff3f40Smrg  test -z "$as_dir" && as_dir=.
27338fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
27348fff3f40Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27358fff3f40Smrg    ac_cv_prog_ac_ct_CC="gcc"
27368fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27378fff3f40Smrg    break 2
27388fff3f40Smrg  fi
27398fff3f40Smrgdone
27408fff3f40Smrg  done
27418fff3f40SmrgIFS=$as_save_IFS
27428fff3f40Smrg
27438fff3f40Smrgfi
27448fff3f40Smrgfi
27458fff3f40Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
27468fff3f40Smrgif test -n "$ac_ct_CC"; then
27478fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
27488fff3f40Smrg$as_echo "$ac_ct_CC" >&6; }
27498fff3f40Smrgelse
27508fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27518fff3f40Smrg$as_echo "no" >&6; }
27528fff3f40Smrgfi
27538fff3f40Smrg
27548fff3f40Smrg  if test "x$ac_ct_CC" = x; then
27558fff3f40Smrg    CC=""
27568fff3f40Smrg  else
27578fff3f40Smrg    case $cross_compiling:$ac_tool_warned in
27588fff3f40Smrgyes:)
27598fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27608fff3f40Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27618fff3f40Smrgac_tool_warned=yes ;;
27628fff3f40Smrgesac
27638fff3f40Smrg    CC=$ac_ct_CC
27648fff3f40Smrg  fi
27658fff3f40Smrgelse
27668fff3f40Smrg  CC="$ac_cv_prog_CC"
27678fff3f40Smrgfi
27688fff3f40Smrg
27698fff3f40Smrgif test -z "$CC"; then
27708fff3f40Smrg          if test -n "$ac_tool_prefix"; then
27718fff3f40Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
27728fff3f40Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
27738fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27748fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
277594a251fdSmrgif ${ac_cv_prog_CC+:} false; then :
27768fff3f40Smrg  $as_echo_n "(cached) " >&6
27778fff3f40Smrgelse
27788fff3f40Smrg  if test -n "$CC"; then
27798fff3f40Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
27808fff3f40Smrgelse
27818fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27828fff3f40Smrgfor as_dir in $PATH
27838fff3f40Smrgdo
27848fff3f40Smrg  IFS=$as_save_IFS
27858fff3f40Smrg  test -z "$as_dir" && as_dir=.
27868fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
27878fff3f40Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27888fff3f40Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
27898fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27908fff3f40Smrg    break 2
27918fff3f40Smrg  fi
27928fff3f40Smrgdone
27938fff3f40Smrg  done
27948fff3f40SmrgIFS=$as_save_IFS
27958fff3f40Smrg
27968fff3f40Smrgfi
27978fff3f40Smrgfi
27988fff3f40SmrgCC=$ac_cv_prog_CC
27998fff3f40Smrgif test -n "$CC"; then
28008fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28018fff3f40Smrg$as_echo "$CC" >&6; }
28028fff3f40Smrgelse
28038fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28048fff3f40Smrg$as_echo "no" >&6; }
28058fff3f40Smrgfi
28068fff3f40Smrg
28078fff3f40Smrg
28088fff3f40Smrg  fi
28098fff3f40Smrgfi
28108fff3f40Smrgif test -z "$CC"; then
28118fff3f40Smrg  # Extract the first word of "cc", so it can be a program name with args.
28128fff3f40Smrgset dummy cc; ac_word=$2
28138fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28148fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
281594a251fdSmrgif ${ac_cv_prog_CC+:} false; then :
28168fff3f40Smrg  $as_echo_n "(cached) " >&6
28178fff3f40Smrgelse
28188fff3f40Smrg  if test -n "$CC"; then
28198fff3f40Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
28208fff3f40Smrgelse
28218fff3f40Smrg  ac_prog_rejected=no
28228fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28238fff3f40Smrgfor as_dir in $PATH
28248fff3f40Smrgdo
28258fff3f40Smrg  IFS=$as_save_IFS
28268fff3f40Smrg  test -z "$as_dir" && as_dir=.
28278fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
28288fff3f40Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28298fff3f40Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
28308fff3f40Smrg       ac_prog_rejected=yes
28318fff3f40Smrg       continue
28328fff3f40Smrg     fi
28338fff3f40Smrg    ac_cv_prog_CC="cc"
28348fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28358fff3f40Smrg    break 2
28368fff3f40Smrg  fi
28378fff3f40Smrgdone
28388fff3f40Smrg  done
28398fff3f40SmrgIFS=$as_save_IFS
28408fff3f40Smrg
28418fff3f40Smrgif test $ac_prog_rejected = yes; then
28428fff3f40Smrg  # We found a bogon in the path, so make sure we never use it.
28438fff3f40Smrg  set dummy $ac_cv_prog_CC
28448fff3f40Smrg  shift
28458fff3f40Smrg  if test $# != 0; then
28468fff3f40Smrg    # We chose a different compiler from the bogus one.
28478fff3f40Smrg    # However, it has the same basename, so the bogon will be chosen
28488fff3f40Smrg    # first if we set CC to just the basename; use the full file name.
28498fff3f40Smrg    shift
28508fff3f40Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
28518fff3f40Smrg  fi
28528fff3f40Smrgfi
28538fff3f40Smrgfi
28548fff3f40Smrgfi
28558fff3f40SmrgCC=$ac_cv_prog_CC
28568fff3f40Smrgif test -n "$CC"; then
28578fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28588fff3f40Smrg$as_echo "$CC" >&6; }
28598fff3f40Smrgelse
28608fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28618fff3f40Smrg$as_echo "no" >&6; }
28628fff3f40Smrgfi
28638fff3f40Smrg
28648fff3f40Smrg
28658fff3f40Smrgfi
28668fff3f40Smrgif test -z "$CC"; then
28678fff3f40Smrg  if test -n "$ac_tool_prefix"; then
28688fff3f40Smrg  for ac_prog in cl.exe
28698fff3f40Smrg  do
28708fff3f40Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28718fff3f40Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
28728fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28738fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
287494a251fdSmrgif ${ac_cv_prog_CC+:} false; then :
28758fff3f40Smrg  $as_echo_n "(cached) " >&6
28768fff3f40Smrgelse
28778fff3f40Smrg  if test -n "$CC"; then
28788fff3f40Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
28798fff3f40Smrgelse
28808fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28818fff3f40Smrgfor as_dir in $PATH
28828fff3f40Smrgdo
28838fff3f40Smrg  IFS=$as_save_IFS
28848fff3f40Smrg  test -z "$as_dir" && as_dir=.
28858fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
28868fff3f40Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28878fff3f40Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
28888fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28898fff3f40Smrg    break 2
28908fff3f40Smrg  fi
28918fff3f40Smrgdone
28928fff3f40Smrg  done
28938fff3f40SmrgIFS=$as_save_IFS
28948fff3f40Smrg
28958fff3f40Smrgfi
28968fff3f40Smrgfi
28978fff3f40SmrgCC=$ac_cv_prog_CC
28988fff3f40Smrgif test -n "$CC"; then
28998fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29008fff3f40Smrg$as_echo "$CC" >&6; }
29018fff3f40Smrgelse
29028fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29038fff3f40Smrg$as_echo "no" >&6; }
29048fff3f40Smrgfi
29058fff3f40Smrg
29068fff3f40Smrg
29078fff3f40Smrg    test -n "$CC" && break
29088fff3f40Smrg  done
29098fff3f40Smrgfi
29108fff3f40Smrgif test -z "$CC"; then
29118fff3f40Smrg  ac_ct_CC=$CC
29128fff3f40Smrg  for ac_prog in cl.exe
29138fff3f40Smrgdo
29148fff3f40Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
29158fff3f40Smrgset dummy $ac_prog; ac_word=$2
29168fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29178fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
291894a251fdSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
29198fff3f40Smrg  $as_echo_n "(cached) " >&6
29208fff3f40Smrgelse
29218fff3f40Smrg  if test -n "$ac_ct_CC"; then
29228fff3f40Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
29238fff3f40Smrgelse
29248fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29258fff3f40Smrgfor as_dir in $PATH
29268fff3f40Smrgdo
29278fff3f40Smrg  IFS=$as_save_IFS
29288fff3f40Smrg  test -z "$as_dir" && as_dir=.
29298fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
29308fff3f40Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29318fff3f40Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
29328fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29338fff3f40Smrg    break 2
29348fff3f40Smrg  fi
29358fff3f40Smrgdone
29368fff3f40Smrg  done
29378fff3f40SmrgIFS=$as_save_IFS
29388fff3f40Smrg
29398fff3f40Smrgfi
29408fff3f40Smrgfi
29418fff3f40Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
29428fff3f40Smrgif test -n "$ac_ct_CC"; then
29438fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
29448fff3f40Smrg$as_echo "$ac_ct_CC" >&6; }
29458fff3f40Smrgelse
29468fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29478fff3f40Smrg$as_echo "no" >&6; }
29488fff3f40Smrgfi
29498fff3f40Smrg
29508fff3f40Smrg
29518fff3f40Smrg  test -n "$ac_ct_CC" && break
29528fff3f40Smrgdone
29538fff3f40Smrg
29548fff3f40Smrg  if test "x$ac_ct_CC" = x; then
29558fff3f40Smrg    CC=""
29568fff3f40Smrg  else
29578fff3f40Smrg    case $cross_compiling:$ac_tool_warned in
29588fff3f40Smrgyes:)
29598fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29608fff3f40Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29618fff3f40Smrgac_tool_warned=yes ;;
29628fff3f40Smrgesac
29638fff3f40Smrg    CC=$ac_ct_CC
29648fff3f40Smrg  fi
29658fff3f40Smrgfi
29668fff3f40Smrg
29678fff3f40Smrgfi
29688fff3f40Smrg
29698fff3f40Smrg
29708fff3f40Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29718fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
297294a251fdSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
297394a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
29748fff3f40Smrg
29758fff3f40Smrg# Provide some information about the compiler.
29768fff3f40Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
29778fff3f40Smrgset X $ac_compile
29788fff3f40Smrgac_compiler=$2
29798fff3f40Smrgfor ac_option in --version -v -V -qversion; do
29808fff3f40Smrg  { { ac_try="$ac_compiler $ac_option >&5"
29818fff3f40Smrgcase "(($ac_try" in
29828fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838fff3f40Smrg  *) ac_try_echo=$ac_try;;
29848fff3f40Smrgesac
29858fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29868fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
29878fff3f40Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
29888fff3f40Smrg  ac_status=$?
29898fff3f40Smrg  if test -s conftest.err; then
29908fff3f40Smrg    sed '10a\
29918fff3f40Smrg... rest of stderr output deleted ...
29928fff3f40Smrg         10q' conftest.err >conftest.er1
29938fff3f40Smrg    cat conftest.er1 >&5
29948fff3f40Smrg  fi
29958fff3f40Smrg  rm -f conftest.er1 conftest.err
29968fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29978fff3f40Smrg  test $ac_status = 0; }
29988fff3f40Smrgdone
29998fff3f40Smrg
30008fff3f40Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
30018fff3f40Smrg/* end confdefs.h.  */
30028fff3f40Smrg
30038fff3f40Smrgint
30048fff3f40Smrgmain ()
30058fff3f40Smrg{
30068fff3f40Smrg
30078fff3f40Smrg  ;
30088fff3f40Smrg  return 0;
30098fff3f40Smrg}
30108fff3f40Smrg_ACEOF
30118fff3f40Smrgac_clean_files_save=$ac_clean_files
30128fff3f40Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
30138fff3f40Smrg# Try to create an executable without -o first, disregard a.out.
30148fff3f40Smrg# It will help us diagnose broken compilers, and finding out an intuition
30158fff3f40Smrg# of exeext.
30168fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
30178fff3f40Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
30188fff3f40Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
30198fff3f40Smrg
30208fff3f40Smrg# The possible output files:
30218fff3f40Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
30228fff3f40Smrg
30238fff3f40Smrgac_rmfiles=
30248fff3f40Smrgfor ac_file in $ac_files
30258fff3f40Smrgdo
30268fff3f40Smrg  case $ac_file in
30278fff3f40Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
30288fff3f40Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
30298fff3f40Smrg  esac
30308fff3f40Smrgdone
30318fff3f40Smrgrm -f $ac_rmfiles
30328fff3f40Smrg
30338fff3f40Smrgif { { ac_try="$ac_link_default"
30348fff3f40Smrgcase "(($ac_try" in
30358fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30368fff3f40Smrg  *) ac_try_echo=$ac_try;;
30378fff3f40Smrgesac
30388fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30398fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
30408fff3f40Smrg  (eval "$ac_link_default") 2>&5
30418fff3f40Smrg  ac_status=$?
30428fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30438fff3f40Smrg  test $ac_status = 0; }; then :
30448fff3f40Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
30458fff3f40Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
30468fff3f40Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
30478fff3f40Smrg# so that the user can short-circuit this test for compilers unknown to
30488fff3f40Smrg# Autoconf.
30498fff3f40Smrgfor ac_file in $ac_files ''
30508fff3f40Smrgdo
30518fff3f40Smrg  test -f "$ac_file" || continue
30528fff3f40Smrg  case $ac_file in
30538fff3f40Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
30548fff3f40Smrg	;;
30558fff3f40Smrg    [ab].out )
30568fff3f40Smrg	# We found the default executable, but exeext='' is most
30578fff3f40Smrg	# certainly right.
30588fff3f40Smrg	break;;
30598fff3f40Smrg    *.* )
30608fff3f40Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
30618fff3f40Smrg	then :; else
30628fff3f40Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
30638fff3f40Smrg	fi
30648fff3f40Smrg	# We set ac_cv_exeext here because the later test for it is not
30658fff3f40Smrg	# safe: cross compilers may not add the suffix if given an `-o'
30668fff3f40Smrg	# argument, so we may need to know it at that point already.
30678fff3f40Smrg	# Even if this section looks crufty: it has the advantage of
30688fff3f40Smrg	# actually working.
30698fff3f40Smrg	break;;
30708fff3f40Smrg    * )
30718fff3f40Smrg	break;;
30728fff3f40Smrg  esac
30738fff3f40Smrgdone
30748fff3f40Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
30758fff3f40Smrg
30768fff3f40Smrgelse
30778fff3f40Smrg  ac_file=''
30788fff3f40Smrgfi
30798fff3f40Smrgif test -z "$ac_file"; then :
30808fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30818fff3f40Smrg$as_echo "no" >&6; }
30828fff3f40Smrg$as_echo "$as_me: failed program was:" >&5
30838fff3f40Smrgsed 's/^/| /' conftest.$ac_ext >&5
30848fff3f40Smrg
30858fff3f40Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30868fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
308794a251fdSmrgas_fn_error 77 "C compiler cannot create executables
308894a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
30898fff3f40Smrgelse
30908fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30918fff3f40Smrg$as_echo "yes" >&6; }
30928fff3f40Smrgfi
30938fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
30948fff3f40Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
30958fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
30968fff3f40Smrg$as_echo "$ac_file" >&6; }
30978fff3f40Smrgac_exeext=$ac_cv_exeext
30988fff3f40Smrg
30998fff3f40Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
31008fff3f40Smrgac_clean_files=$ac_clean_files_save
31018fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
31028fff3f40Smrg$as_echo_n "checking for suffix of executables... " >&6; }
31038fff3f40Smrgif { { ac_try="$ac_link"
31048fff3f40Smrgcase "(($ac_try" in
31058fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31068fff3f40Smrg  *) ac_try_echo=$ac_try;;
31078fff3f40Smrgesac
31088fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31098fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
31108fff3f40Smrg  (eval "$ac_link") 2>&5
31118fff3f40Smrg  ac_status=$?
31128fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31138fff3f40Smrg  test $ac_status = 0; }; then :
31148fff3f40Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
31158fff3f40Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
31168fff3f40Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
31178fff3f40Smrg# `rm'.
31188fff3f40Smrgfor ac_file in conftest.exe conftest conftest.*; do
31198fff3f40Smrg  test -f "$ac_file" || continue
31208fff3f40Smrg  case $ac_file in
31218fff3f40Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
31228fff3f40Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31238fff3f40Smrg	  break;;
31248fff3f40Smrg    * ) break;;
31258fff3f40Smrg  esac
31268fff3f40Smrgdone
31278fff3f40Smrgelse
31288fff3f40Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31298fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
313094a251fdSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
313194a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
31328fff3f40Smrgfi
31338fff3f40Smrgrm -f conftest conftest$ac_cv_exeext
31348fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
31358fff3f40Smrg$as_echo "$ac_cv_exeext" >&6; }
31368fff3f40Smrg
31378fff3f40Smrgrm -f conftest.$ac_ext
31388fff3f40SmrgEXEEXT=$ac_cv_exeext
31398fff3f40Smrgac_exeext=$EXEEXT
31408fff3f40Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
31418fff3f40Smrg/* end confdefs.h.  */
31428fff3f40Smrg#include <stdio.h>
31438fff3f40Smrgint
31448fff3f40Smrgmain ()
31458fff3f40Smrg{
31468fff3f40SmrgFILE *f = fopen ("conftest.out", "w");
31478fff3f40Smrg return ferror (f) || fclose (f) != 0;
31488fff3f40Smrg
31498fff3f40Smrg  ;
31508fff3f40Smrg  return 0;
31518fff3f40Smrg}
31528fff3f40Smrg_ACEOF
31538fff3f40Smrgac_clean_files="$ac_clean_files conftest.out"
31548fff3f40Smrg# Check that the compiler produces executables we can run.  If not, either
31558fff3f40Smrg# the compiler is broken, or we cross compile.
31568fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
31578fff3f40Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
31588fff3f40Smrgif test "$cross_compiling" != yes; then
31598fff3f40Smrg  { { ac_try="$ac_link"
31608fff3f40Smrgcase "(($ac_try" in
31618fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31628fff3f40Smrg  *) ac_try_echo=$ac_try;;
31638fff3f40Smrgesac
31648fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31658fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
31668fff3f40Smrg  (eval "$ac_link") 2>&5
31678fff3f40Smrg  ac_status=$?
31688fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31698fff3f40Smrg  test $ac_status = 0; }
31708fff3f40Smrg  if { ac_try='./conftest$ac_cv_exeext'
31718fff3f40Smrg  { { case "(($ac_try" in
31728fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31738fff3f40Smrg  *) ac_try_echo=$ac_try;;
31748fff3f40Smrgesac
31758fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31768fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
31778fff3f40Smrg  (eval "$ac_try") 2>&5
31788fff3f40Smrg  ac_status=$?
31798fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31808fff3f40Smrg  test $ac_status = 0; }; }; then
31818fff3f40Smrg    cross_compiling=no
31828fff3f40Smrg  else
31838fff3f40Smrg    if test "$cross_compiling" = maybe; then
31848fff3f40Smrg	cross_compiling=yes
31858fff3f40Smrg    else
31868fff3f40Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31878fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
318894a251fdSmrgas_fn_error $? "cannot run C compiled programs.
31898fff3f40SmrgIf you meant to cross compile, use \`--host'.
319094a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
31918fff3f40Smrg    fi
31928fff3f40Smrg  fi
31938fff3f40Smrgfi
31948fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
31958fff3f40Smrg$as_echo "$cross_compiling" >&6; }
31968fff3f40Smrg
31978fff3f40Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
31988fff3f40Smrgac_clean_files=$ac_clean_files_save
31998fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
32008fff3f40Smrg$as_echo_n "checking for suffix of object files... " >&6; }
320194a251fdSmrgif ${ac_cv_objext+:} false; then :
32028fff3f40Smrg  $as_echo_n "(cached) " >&6
32038fff3f40Smrgelse
32048fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32058fff3f40Smrg/* end confdefs.h.  */
32068fff3f40Smrg
32078fff3f40Smrgint
32088fff3f40Smrgmain ()
32098fff3f40Smrg{
32108fff3f40Smrg
32118fff3f40Smrg  ;
32128fff3f40Smrg  return 0;
32138fff3f40Smrg}
32148fff3f40Smrg_ACEOF
32158fff3f40Smrgrm -f conftest.o conftest.obj
32168fff3f40Smrgif { { ac_try="$ac_compile"
32178fff3f40Smrgcase "(($ac_try" in
32188fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32198fff3f40Smrg  *) ac_try_echo=$ac_try;;
32208fff3f40Smrgesac
32218fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32228fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
32238fff3f40Smrg  (eval "$ac_compile") 2>&5
32248fff3f40Smrg  ac_status=$?
32258fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32268fff3f40Smrg  test $ac_status = 0; }; then :
32278fff3f40Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
32288fff3f40Smrg  test -f "$ac_file" || continue;
32298fff3f40Smrg  case $ac_file in
32308fff3f40Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
32318fff3f40Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
32328fff3f40Smrg       break;;
32338fff3f40Smrg  esac
32348fff3f40Smrgdone
32358fff3f40Smrgelse
32368fff3f40Smrg  $as_echo "$as_me: failed program was:" >&5
32378fff3f40Smrgsed 's/^/| /' conftest.$ac_ext >&5
32388fff3f40Smrg
32398fff3f40Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32408fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
324194a251fdSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
324294a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
32438fff3f40Smrgfi
32448fff3f40Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
32458fff3f40Smrgfi
32468fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
32478fff3f40Smrg$as_echo "$ac_cv_objext" >&6; }
32488fff3f40SmrgOBJEXT=$ac_cv_objext
32498fff3f40Smrgac_objext=$OBJEXT
32508fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
32518fff3f40Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
325294a251fdSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
32538fff3f40Smrg  $as_echo_n "(cached) " >&6
32548fff3f40Smrgelse
32558fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32568fff3f40Smrg/* end confdefs.h.  */
32578fff3f40Smrg
32588fff3f40Smrgint
32598fff3f40Smrgmain ()
32608fff3f40Smrg{
32618fff3f40Smrg#ifndef __GNUC__
32628fff3f40Smrg       choke me
32638fff3f40Smrg#endif
32648fff3f40Smrg
32658fff3f40Smrg  ;
32668fff3f40Smrg  return 0;
32678fff3f40Smrg}
32688fff3f40Smrg_ACEOF
32698fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
32708fff3f40Smrg  ac_compiler_gnu=yes
32718fff3f40Smrgelse
32728fff3f40Smrg  ac_compiler_gnu=no
32738fff3f40Smrgfi
32748fff3f40Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32758fff3f40Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
32768fff3f40Smrg
32778fff3f40Smrgfi
32788fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
32798fff3f40Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
32808fff3f40Smrgif test $ac_compiler_gnu = yes; then
32818fff3f40Smrg  GCC=yes
32828fff3f40Smrgelse
32838fff3f40Smrg  GCC=
32848fff3f40Smrgfi
32858fff3f40Smrgac_test_CFLAGS=${CFLAGS+set}
32868fff3f40Smrgac_save_CFLAGS=$CFLAGS
32878fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
32888fff3f40Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
328994a251fdSmrgif ${ac_cv_prog_cc_g+:} false; then :
32908fff3f40Smrg  $as_echo_n "(cached) " >&6
32918fff3f40Smrgelse
32928fff3f40Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
32938fff3f40Smrg   ac_c_werror_flag=yes
32948fff3f40Smrg   ac_cv_prog_cc_g=no
32958fff3f40Smrg   CFLAGS="-g"
32968fff3f40Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32978fff3f40Smrg/* end confdefs.h.  */
32988fff3f40Smrg
32998fff3f40Smrgint
33008fff3f40Smrgmain ()
33018fff3f40Smrg{
33028fff3f40Smrg
33038fff3f40Smrg  ;
33048fff3f40Smrg  return 0;
33058fff3f40Smrg}
33068fff3f40Smrg_ACEOF
33078fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
33088fff3f40Smrg  ac_cv_prog_cc_g=yes
33098fff3f40Smrgelse
33108fff3f40Smrg  CFLAGS=""
33118fff3f40Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33128fff3f40Smrg/* end confdefs.h.  */
33138fff3f40Smrg
33148fff3f40Smrgint
33158fff3f40Smrgmain ()
33168fff3f40Smrg{
33178fff3f40Smrg
33188fff3f40Smrg  ;
33198fff3f40Smrg  return 0;
33208fff3f40Smrg}
33218fff3f40Smrg_ACEOF
33228fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
33238fff3f40Smrg
33248fff3f40Smrgelse
33258fff3f40Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
33268fff3f40Smrg	 CFLAGS="-g"
33278fff3f40Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33288fff3f40Smrg/* end confdefs.h.  */
33298fff3f40Smrg
33308fff3f40Smrgint
33318fff3f40Smrgmain ()
33328fff3f40Smrg{
33338fff3f40Smrg
33348fff3f40Smrg  ;
33358fff3f40Smrg  return 0;
33368fff3f40Smrg}
33378fff3f40Smrg_ACEOF
33388fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
33398fff3f40Smrg  ac_cv_prog_cc_g=yes
33408fff3f40Smrgfi
33418fff3f40Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33428fff3f40Smrgfi
33438fff3f40Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33448fff3f40Smrgfi
33458fff3f40Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33468fff3f40Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
33478fff3f40Smrgfi
33488fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
33498fff3f40Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
33508fff3f40Smrgif test "$ac_test_CFLAGS" = set; then
33518fff3f40Smrg  CFLAGS=$ac_save_CFLAGS
33528fff3f40Smrgelif test $ac_cv_prog_cc_g = yes; then
33538fff3f40Smrg  if test "$GCC" = yes; then
33548fff3f40Smrg    CFLAGS="-g -O2"
33558fff3f40Smrg  else
33568fff3f40Smrg    CFLAGS="-g"
33578fff3f40Smrg  fi
33588fff3f40Smrgelse
33598fff3f40Smrg  if test "$GCC" = yes; then
33608fff3f40Smrg    CFLAGS="-O2"
33618fff3f40Smrg  else
33628fff3f40Smrg    CFLAGS=
33638fff3f40Smrg  fi
33648fff3f40Smrgfi
33658fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
33668fff3f40Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
336794a251fdSmrgif ${ac_cv_prog_cc_c89+:} false; then :
33688fff3f40Smrg  $as_echo_n "(cached) " >&6
33698fff3f40Smrgelse
33708fff3f40Smrg  ac_cv_prog_cc_c89=no
33718fff3f40Smrgac_save_CC=$CC
33728fff3f40Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
33738fff3f40Smrg/* end confdefs.h.  */
33748fff3f40Smrg#include <stdarg.h>
33758fff3f40Smrg#include <stdio.h>
33768fff3f40Smrg#include <sys/types.h>
33778fff3f40Smrg#include <sys/stat.h>
33788fff3f40Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
33798fff3f40Smrgstruct buf { int x; };
33808fff3f40SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
33818fff3f40Smrgstatic char *e (p, i)
33828fff3f40Smrg     char **p;
33838fff3f40Smrg     int i;
33848fff3f40Smrg{
33858fff3f40Smrg  return p[i];
33868fff3f40Smrg}
33878fff3f40Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
33888fff3f40Smrg{
33898fff3f40Smrg  char *s;
33908fff3f40Smrg  va_list v;
33918fff3f40Smrg  va_start (v,p);
33928fff3f40Smrg  s = g (p, va_arg (v,int));
33938fff3f40Smrg  va_end (v);
33948fff3f40Smrg  return s;
33958fff3f40Smrg}
33968fff3f40Smrg
33978fff3f40Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
33988fff3f40Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
33998fff3f40Smrg   These don't provoke an error unfortunately, instead are silently treated
34008fff3f40Smrg   as 'x'.  The following induces an error, until -std is added to get
34018fff3f40Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
34028fff3f40Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
34038fff3f40Smrg   that's true only with -std.  */
34048fff3f40Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
34058fff3f40Smrg
34068fff3f40Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
34078fff3f40Smrg   inside strings and character constants.  */
34088fff3f40Smrg#define FOO(x) 'x'
34098fff3f40Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
34108fff3f40Smrg
34118fff3f40Smrgint test (int i, double x);
34128fff3f40Smrgstruct s1 {int (*f) (int a);};
34138fff3f40Smrgstruct s2 {int (*f) (double a);};
34148fff3f40Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
34158fff3f40Smrgint argc;
34168fff3f40Smrgchar **argv;
34178fff3f40Smrgint
34188fff3f40Smrgmain ()
34198fff3f40Smrg{
34208fff3f40Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
34218fff3f40Smrg  ;
34228fff3f40Smrg  return 0;
34238fff3f40Smrg}
34248fff3f40Smrg_ACEOF
34258fff3f40Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
34268fff3f40Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
34278fff3f40Smrgdo
34288fff3f40Smrg  CC="$ac_save_CC $ac_arg"
34298fff3f40Smrg  if ac_fn_c_try_compile "$LINENO"; then :
34308fff3f40Smrg  ac_cv_prog_cc_c89=$ac_arg
34318fff3f40Smrgfi
34328fff3f40Smrgrm -f core conftest.err conftest.$ac_objext
34338fff3f40Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
34348fff3f40Smrgdone
34358fff3f40Smrgrm -f conftest.$ac_ext
34368fff3f40SmrgCC=$ac_save_CC
34378fff3f40Smrg
34388fff3f40Smrgfi
34398fff3f40Smrg# AC_CACHE_VAL
34408fff3f40Smrgcase "x$ac_cv_prog_cc_c89" in
34418fff3f40Smrg  x)
34428fff3f40Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
34438fff3f40Smrg$as_echo "none needed" >&6; } ;;
34448fff3f40Smrg  xno)
34458fff3f40Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
34468fff3f40Smrg$as_echo "unsupported" >&6; } ;;
34478fff3f40Smrg  *)
34488fff3f40Smrg    CC="$CC $ac_cv_prog_cc_c89"
34498fff3f40Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
34508fff3f40Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
34518fff3f40Smrgesac
34528fff3f40Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
34538fff3f40Smrg
34548fff3f40Smrgfi
34558fff3f40Smrg
34568fff3f40Smrgac_ext=c
34578fff3f40Smrgac_cpp='$CPP $CPPFLAGS'
34588fff3f40Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34598fff3f40Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34608fff3f40Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
34618fff3f40Smrg
34628fff3f40Smrgdepcc="$CC"   am_compiler_list=
34638fff3f40Smrg
34648fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
34658fff3f40Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
346694a251fdSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
34678fff3f40Smrg  $as_echo_n "(cached) " >&6
34688fff3f40Smrgelse
34698fff3f40Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
34708fff3f40Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
34718fff3f40Smrg  # making bogus files that we don't know about and never remove.  For
34728fff3f40Smrg  # instance it was reported that on HP-UX the gcc test will end up
34738fff3f40Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
34748fff3f40Smrg  # in D'.
347594a251fdSmrg  rm -rf conftest.dir
34768fff3f40Smrg  mkdir conftest.dir
34778fff3f40Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
34788fff3f40Smrg  # using a relative directory.
34798fff3f40Smrg  cp "$am_depcomp" conftest.dir
34808fff3f40Smrg  cd conftest.dir
34818fff3f40Smrg  # We will build objects and dependencies in a subdirectory because
34828fff3f40Smrg  # it helps to detect inapplicable dependency modes.  For instance
34838fff3f40Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
34848fff3f40Smrg  # side effect of compilation, but ICC will put the dependencies in
34858fff3f40Smrg  # the current directory while Tru64 will put them in the object
34868fff3f40Smrg  # directory.
34878fff3f40Smrg  mkdir sub
34888fff3f40Smrg
34898fff3f40Smrg  am_cv_CC_dependencies_compiler_type=none
34908fff3f40Smrg  if test "$am_compiler_list" = ""; then
34918fff3f40Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
34928fff3f40Smrg  fi
34938fff3f40Smrg  am__universal=false
34948fff3f40Smrg  case " $depcc " in #(
34958fff3f40Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
34968fff3f40Smrg     esac
34978fff3f40Smrg
34988fff3f40Smrg  for depmode in $am_compiler_list; do
34998fff3f40Smrg    # Setup a source with many dependencies, because some compilers
35008fff3f40Smrg    # like to wrap large dependency lists on column 80 (with \), and
35018fff3f40Smrg    # we should not choose a depcomp mode which is confused by this.
35028fff3f40Smrg    #
35038fff3f40Smrg    # We need to recreate these files for each test, as the compiler may
35048fff3f40Smrg    # overwrite some of them when testing with obscure command lines.
35058fff3f40Smrg    # This happens at least with the AIX C compiler.
35068fff3f40Smrg    : > sub/conftest.c
35078fff3f40Smrg    for i in 1 2 3 4 5 6; do
35088fff3f40Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
35098fff3f40Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
35108fff3f40Smrg      # Solaris 8's {/usr,}/bin/sh.
35118fff3f40Smrg      touch sub/conftst$i.h
35128fff3f40Smrg    done
35138fff3f40Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
35148fff3f40Smrg
35158fff3f40Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
35168fff3f40Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
35178fff3f40Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
35188fff3f40Smrg    # versions had trouble with output in subdirs
35198fff3f40Smrg    am__obj=sub/conftest.${OBJEXT-o}
35208fff3f40Smrg    am__minus_obj="-o $am__obj"
35218fff3f40Smrg    case $depmode in
35228fff3f40Smrg    gcc)
35238fff3f40Smrg      # This depmode causes a compiler race in universal mode.
35248fff3f40Smrg      test "$am__universal" = false || continue
35258fff3f40Smrg      ;;
35268fff3f40Smrg    nosideeffect)
35278fff3f40Smrg      # after this tag, mechanisms are not by side-effect, so they'll
35288fff3f40Smrg      # only be used when explicitly requested
35298fff3f40Smrg      if test "x$enable_dependency_tracking" = xyes; then
35308fff3f40Smrg	continue
35318fff3f40Smrg      else
35328fff3f40Smrg	break
35338fff3f40Smrg      fi
35348fff3f40Smrg      ;;
353594a251fdSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
35368fff3f40Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
35378fff3f40Smrg      # not run yet.  These depmodes are late enough in the game, and
35388fff3f40Smrg      # so weak that their functioning should not be impacted.
35398fff3f40Smrg      am__obj=conftest.${OBJEXT-o}
35408fff3f40Smrg      am__minus_obj=
35418fff3f40Smrg      ;;
35428fff3f40Smrg    none) break ;;
35438fff3f40Smrg    esac
35448fff3f40Smrg    if depmode=$depmode \
35458fff3f40Smrg       source=sub/conftest.c object=$am__obj \
35468fff3f40Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
35478fff3f40Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
35488fff3f40Smrg         >/dev/null 2>conftest.err &&
35498fff3f40Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
35508fff3f40Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
35518fff3f40Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
35528fff3f40Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
35538fff3f40Smrg      # icc doesn't choke on unknown options, it will just issue warnings
35548fff3f40Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
35558fff3f40Smrg      # that says an option was ignored or not supported.
35568fff3f40Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
35578fff3f40Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
35588fff3f40Smrg      # The diagnosis changed in icc 8.0:
35598fff3f40Smrg      #   icc: Command line remark: option '-MP' not supported
35608fff3f40Smrg      if (grep 'ignoring option' conftest.err ||
35618fff3f40Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
35628fff3f40Smrg        am_cv_CC_dependencies_compiler_type=$depmode
35638fff3f40Smrg        break
35648fff3f40Smrg      fi
35658fff3f40Smrg    fi
35668fff3f40Smrg  done
35678fff3f40Smrg
35688fff3f40Smrg  cd ..
35698fff3f40Smrg  rm -rf conftest.dir
35708fff3f40Smrgelse
35718fff3f40Smrg  am_cv_CC_dependencies_compiler_type=none
35728fff3f40Smrgfi
35738fff3f40Smrg
35748fff3f40Smrgfi
35758fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
35768fff3f40Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
35778fff3f40SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
35788fff3f40Smrg
35798fff3f40Smrg if
35808fff3f40Smrg  test "x$enable_dependency_tracking" != xno \
35818fff3f40Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
35828fff3f40Smrg  am__fastdepCC_TRUE=
35838fff3f40Smrg  am__fastdepCC_FALSE='#'
35848fff3f40Smrgelse
35858fff3f40Smrg  am__fastdepCC_TRUE='#'
35868fff3f40Smrg  am__fastdepCC_FALSE=
35878fff3f40Smrgfi
35888fff3f40Smrg
35898fff3f40Smrg
359094a251fdSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
359194a251fdSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
359294a251fdSmrgif ${ac_cv_prog_cc_c99+:} false; then :
359394a251fdSmrg  $as_echo_n "(cached) " >&6
359494a251fdSmrgelse
359594a251fdSmrg  ac_cv_prog_cc_c99=no
359694a251fdSmrgac_save_CC=$CC
359794a251fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
359894a251fdSmrg/* end confdefs.h.  */
359994a251fdSmrg#include <stdarg.h>
360094a251fdSmrg#include <stdbool.h>
360194a251fdSmrg#include <stdlib.h>
360294a251fdSmrg#include <wchar.h>
360394a251fdSmrg#include <stdio.h>
360494a251fdSmrg
360594a251fdSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
360694a251fdSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
360794a251fdSmrg#define showlist(...) puts (#__VA_ARGS__)
360894a251fdSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
360994a251fdSmrgstatic void
361094a251fdSmrgtest_varargs_macros (void)
361194a251fdSmrg{
361294a251fdSmrg  int x = 1234;
361394a251fdSmrg  int y = 5678;
361494a251fdSmrg  debug ("Flag");
361594a251fdSmrg  debug ("X = %d\n", x);
361694a251fdSmrg  showlist (The first, second, and third items.);
361794a251fdSmrg  report (x>y, "x is %d but y is %d", x, y);
361894a251fdSmrg}
361994a251fdSmrg
362094a251fdSmrg// Check long long types.
362194a251fdSmrg#define BIG64 18446744073709551615ull
362294a251fdSmrg#define BIG32 4294967295ul
362394a251fdSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
362494a251fdSmrg#if !BIG_OK
362594a251fdSmrg  your preprocessor is broken;
362694a251fdSmrg#endif
362794a251fdSmrg#if BIG_OK
362894a251fdSmrg#else
362994a251fdSmrg  your preprocessor is broken;
363094a251fdSmrg#endif
363194a251fdSmrgstatic long long int bignum = -9223372036854775807LL;
363294a251fdSmrgstatic unsigned long long int ubignum = BIG64;
363394a251fdSmrg
363494a251fdSmrgstruct incomplete_array
363594a251fdSmrg{
363694a251fdSmrg  int datasize;
363794a251fdSmrg  double data[];
363894a251fdSmrg};
363994a251fdSmrg
364094a251fdSmrgstruct named_init {
364194a251fdSmrg  int number;
364294a251fdSmrg  const wchar_t *name;
364394a251fdSmrg  double average;
364494a251fdSmrg};
364594a251fdSmrg
364694a251fdSmrgtypedef const char *ccp;
364794a251fdSmrg
364894a251fdSmrgstatic inline int
364994a251fdSmrgtest_restrict (ccp restrict text)
365094a251fdSmrg{
365194a251fdSmrg  // See if C++-style comments work.
365294a251fdSmrg  // Iterate through items via the restricted pointer.
365394a251fdSmrg  // Also check for declarations in for loops.
365494a251fdSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
365594a251fdSmrg    continue;
365694a251fdSmrg  return 0;
365794a251fdSmrg}
365894a251fdSmrg
365994a251fdSmrg// Check varargs and va_copy.
366094a251fdSmrgstatic void
366194a251fdSmrgtest_varargs (const char *format, ...)
366294a251fdSmrg{
366394a251fdSmrg  va_list args;
366494a251fdSmrg  va_start (args, format);
366594a251fdSmrg  va_list args_copy;
366694a251fdSmrg  va_copy (args_copy, args);
366794a251fdSmrg
366894a251fdSmrg  const char *str;
366994a251fdSmrg  int number;
367094a251fdSmrg  float fnumber;
367194a251fdSmrg
367294a251fdSmrg  while (*format)
367394a251fdSmrg    {
367494a251fdSmrg      switch (*format++)
367594a251fdSmrg	{
367694a251fdSmrg	case 's': // string
367794a251fdSmrg	  str = va_arg (args_copy, const char *);
367894a251fdSmrg	  break;
367994a251fdSmrg	case 'd': // int
368094a251fdSmrg	  number = va_arg (args_copy, int);
368194a251fdSmrg	  break;
368294a251fdSmrg	case 'f': // float
368394a251fdSmrg	  fnumber = va_arg (args_copy, double);
368494a251fdSmrg	  break;
368594a251fdSmrg	default:
368694a251fdSmrg	  break;
368794a251fdSmrg	}
368894a251fdSmrg    }
368994a251fdSmrg  va_end (args_copy);
369094a251fdSmrg  va_end (args);
369194a251fdSmrg}
369294a251fdSmrg
369394a251fdSmrgint
369494a251fdSmrgmain ()
369594a251fdSmrg{
369694a251fdSmrg
369794a251fdSmrg  // Check bool.
369894a251fdSmrg  _Bool success = false;
369994a251fdSmrg
370094a251fdSmrg  // Check restrict.
370194a251fdSmrg  if (test_restrict ("String literal") == 0)
370294a251fdSmrg    success = true;
370394a251fdSmrg  char *restrict newvar = "Another string";
370494a251fdSmrg
370594a251fdSmrg  // Check varargs.
370694a251fdSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
370794a251fdSmrg  test_varargs_macros ();
370894a251fdSmrg
370994a251fdSmrg  // Check flexible array members.
371094a251fdSmrg  struct incomplete_array *ia =
371194a251fdSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
371294a251fdSmrg  ia->datasize = 10;
371394a251fdSmrg  for (int i = 0; i < ia->datasize; ++i)
371494a251fdSmrg    ia->data[i] = i * 1.234;
371594a251fdSmrg
371694a251fdSmrg  // Check named initializers.
371794a251fdSmrg  struct named_init ni = {
371894a251fdSmrg    .number = 34,
371994a251fdSmrg    .name = L"Test wide string",
372094a251fdSmrg    .average = 543.34343,
372194a251fdSmrg  };
372294a251fdSmrg
372394a251fdSmrg  ni.number = 58;
372494a251fdSmrg
372594a251fdSmrg  int dynamic_array[ni.number];
372694a251fdSmrg  dynamic_array[ni.number - 1] = 543;
372794a251fdSmrg
372894a251fdSmrg  // work around unused variable warnings
372994a251fdSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
373094a251fdSmrg	  || dynamic_array[ni.number - 1] != 543);
373194a251fdSmrg
373294a251fdSmrg  ;
373394a251fdSmrg  return 0;
373494a251fdSmrg}
373594a251fdSmrg_ACEOF
373694a251fdSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
373794a251fdSmrgdo
373894a251fdSmrg  CC="$ac_save_CC $ac_arg"
373994a251fdSmrg  if ac_fn_c_try_compile "$LINENO"; then :
374094a251fdSmrg  ac_cv_prog_cc_c99=$ac_arg
374194a251fdSmrgfi
374294a251fdSmrgrm -f core conftest.err conftest.$ac_objext
374394a251fdSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
374494a251fdSmrgdone
374594a251fdSmrgrm -f conftest.$ac_ext
374694a251fdSmrgCC=$ac_save_CC
374794a251fdSmrg
374894a251fdSmrgfi
374994a251fdSmrg# AC_CACHE_VAL
375094a251fdSmrgcase "x$ac_cv_prog_cc_c99" in
375194a251fdSmrg  x)
375294a251fdSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
375394a251fdSmrg$as_echo "none needed" >&6; } ;;
375494a251fdSmrg  xno)
375594a251fdSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
375694a251fdSmrg$as_echo "unsupported" >&6; } ;;
375794a251fdSmrg  *)
375894a251fdSmrg    CC="$CC $ac_cv_prog_cc_c99"
375994a251fdSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
376094a251fdSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
376194a251fdSmrgesac
376294a251fdSmrgif test "x$ac_cv_prog_cc_c99" != xno; then :
376394a251fdSmrg
376494a251fdSmrgfi
376594a251fdSmrg
376694a251fdSmrg
37678fff3f40Smrg
37688fff3f40Smrgac_ext=c
37698fff3f40Smrgac_cpp='$CPP $CPPFLAGS'
37708fff3f40Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37718fff3f40Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37728fff3f40Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
37738fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
37748fff3f40Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
37758fff3f40Smrg# On Suns, sometimes $CPP names a directory.
37768fff3f40Smrgif test -n "$CPP" && test -d "$CPP"; then
37778fff3f40Smrg  CPP=
37788fff3f40Smrgfi
37798fff3f40Smrgif test -z "$CPP"; then
378094a251fdSmrg  if ${ac_cv_prog_CPP+:} false; then :
37818fff3f40Smrg  $as_echo_n "(cached) " >&6
37828fff3f40Smrgelse
37838fff3f40Smrg      # Double quotes because CPP needs to be expanded
37848fff3f40Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
37858fff3f40Smrg    do
37868fff3f40Smrg      ac_preproc_ok=false
37878fff3f40Smrgfor ac_c_preproc_warn_flag in '' yes
37888fff3f40Smrgdo
37898fff3f40Smrg  # Use a header file that comes with gcc, so configuring glibc
37908fff3f40Smrg  # with a fresh cross-compiler works.
37918fff3f40Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37928fff3f40Smrg  # <limits.h> exists even on freestanding compilers.
37938fff3f40Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
37948fff3f40Smrg  # not just through cpp. "Syntax error" is here to catch this case.
37958fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37968fff3f40Smrg/* end confdefs.h.  */
37978fff3f40Smrg#ifdef __STDC__
37988fff3f40Smrg# include <limits.h>
37998fff3f40Smrg#else
38008fff3f40Smrg# include <assert.h>
38018fff3f40Smrg#endif
38028fff3f40Smrg		     Syntax error
38038fff3f40Smrg_ACEOF
38048fff3f40Smrgif ac_fn_c_try_cpp "$LINENO"; then :
38058fff3f40Smrg
38068fff3f40Smrgelse
38078fff3f40Smrg  # Broken: fails on valid input.
38088fff3f40Smrgcontinue
38098fff3f40Smrgfi
381094a251fdSmrgrm -f conftest.err conftest.i conftest.$ac_ext
38118fff3f40Smrg
38128fff3f40Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
38138fff3f40Smrg  # can be detected and how.
38148fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38158fff3f40Smrg/* end confdefs.h.  */
38168fff3f40Smrg#include <ac_nonexistent.h>
38178fff3f40Smrg_ACEOF
38188fff3f40Smrgif ac_fn_c_try_cpp "$LINENO"; then :
38198fff3f40Smrg  # Broken: success on invalid input.
38208fff3f40Smrgcontinue
38218fff3f40Smrgelse
38228fff3f40Smrg  # Passes both tests.
38238fff3f40Smrgac_preproc_ok=:
38248fff3f40Smrgbreak
38258fff3f40Smrgfi
382694a251fdSmrgrm -f conftest.err conftest.i conftest.$ac_ext
38278fff3f40Smrg
38288fff3f40Smrgdone
38298fff3f40Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
383094a251fdSmrgrm -f conftest.i conftest.err conftest.$ac_ext
38318fff3f40Smrgif $ac_preproc_ok; then :
38328fff3f40Smrg  break
38338fff3f40Smrgfi
38348fff3f40Smrg
38358fff3f40Smrg    done
38368fff3f40Smrg    ac_cv_prog_CPP=$CPP
38378fff3f40Smrg
38388fff3f40Smrgfi
38398fff3f40Smrg  CPP=$ac_cv_prog_CPP
38408fff3f40Smrgelse
38418fff3f40Smrg  ac_cv_prog_CPP=$CPP
38428fff3f40Smrgfi
38438fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
38448fff3f40Smrg$as_echo "$CPP" >&6; }
38458fff3f40Smrgac_preproc_ok=false
38468fff3f40Smrgfor ac_c_preproc_warn_flag in '' yes
38478fff3f40Smrgdo
38488fff3f40Smrg  # Use a header file that comes with gcc, so configuring glibc
38498fff3f40Smrg  # with a fresh cross-compiler works.
38508fff3f40Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38518fff3f40Smrg  # <limits.h> exists even on freestanding compilers.
38528fff3f40Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
38538fff3f40Smrg  # not just through cpp. "Syntax error" is here to catch this case.
38548fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38558fff3f40Smrg/* end confdefs.h.  */
38568fff3f40Smrg#ifdef __STDC__
38578fff3f40Smrg# include <limits.h>
38588fff3f40Smrg#else
38598fff3f40Smrg# include <assert.h>
38608fff3f40Smrg#endif
38618fff3f40Smrg		     Syntax error
38628fff3f40Smrg_ACEOF
38638fff3f40Smrgif ac_fn_c_try_cpp "$LINENO"; then :
38648fff3f40Smrg
38658fff3f40Smrgelse
38668fff3f40Smrg  # Broken: fails on valid input.
38678fff3f40Smrgcontinue
38688fff3f40Smrgfi
386994a251fdSmrgrm -f conftest.err conftest.i conftest.$ac_ext
38708fff3f40Smrg
38718fff3f40Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
38728fff3f40Smrg  # can be detected and how.
38738fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38748fff3f40Smrg/* end confdefs.h.  */
38758fff3f40Smrg#include <ac_nonexistent.h>
38768fff3f40Smrg_ACEOF
38778fff3f40Smrgif ac_fn_c_try_cpp "$LINENO"; then :
38788fff3f40Smrg  # Broken: success on invalid input.
38798fff3f40Smrgcontinue
38808fff3f40Smrgelse
38818fff3f40Smrg  # Passes both tests.
38828fff3f40Smrgac_preproc_ok=:
38838fff3f40Smrgbreak
38848fff3f40Smrgfi
388594a251fdSmrgrm -f conftest.err conftest.i conftest.$ac_ext
38868fff3f40Smrg
38878fff3f40Smrgdone
38888fff3f40Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
388994a251fdSmrgrm -f conftest.i conftest.err conftest.$ac_ext
38908fff3f40Smrgif $ac_preproc_ok; then :
38918fff3f40Smrg
38928fff3f40Smrgelse
38938fff3f40Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38948fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
389594a251fdSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
389694a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
38978fff3f40Smrgfi
38988fff3f40Smrg
38998fff3f40Smrgac_ext=c
39008fff3f40Smrgac_cpp='$CPP $CPPFLAGS'
39018fff3f40Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39028fff3f40Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39038fff3f40Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
39048fff3f40Smrg
39058fff3f40Smrg
39068fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
39078fff3f40Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
390894a251fdSmrgif ${ac_cv_path_GREP+:} false; then :
39098fff3f40Smrg  $as_echo_n "(cached) " >&6
39108fff3f40Smrgelse
39118fff3f40Smrg  if test -z "$GREP"; then
39128fff3f40Smrg  ac_path_GREP_found=false
39138fff3f40Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
39148fff3f40Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39158fff3f40Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
39168fff3f40Smrgdo
39178fff3f40Smrg  IFS=$as_save_IFS
39188fff3f40Smrg  test -z "$as_dir" && as_dir=.
39198fff3f40Smrg    for ac_prog in grep ggrep; do
39208fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
39218fff3f40Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
39228fff3f40Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
39238fff3f40Smrg# Check for GNU ac_path_GREP and select it if it is found.
39248fff3f40Smrg  # Check for GNU $ac_path_GREP
39258fff3f40Smrgcase `"$ac_path_GREP" --version 2>&1` in
39268fff3f40Smrg*GNU*)
39278fff3f40Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
39288fff3f40Smrg*)
39298fff3f40Smrg  ac_count=0
39308fff3f40Smrg  $as_echo_n 0123456789 >"conftest.in"
39318fff3f40Smrg  while :
39328fff3f40Smrg  do
39338fff3f40Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
39348fff3f40Smrg    mv "conftest.tmp" "conftest.in"
39358fff3f40Smrg    cp "conftest.in" "conftest.nl"
39368fff3f40Smrg    $as_echo 'GREP' >> "conftest.nl"
39378fff3f40Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
39388fff3f40Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
39398fff3f40Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
39408fff3f40Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
39418fff3f40Smrg      # Best one so far, save it but keep looking for a better one
39428fff3f40Smrg      ac_cv_path_GREP="$ac_path_GREP"
39438fff3f40Smrg      ac_path_GREP_max=$ac_count
39448fff3f40Smrg    fi
39458fff3f40Smrg    # 10*(2^10) chars as input seems more than enough
39468fff3f40Smrg    test $ac_count -gt 10 && break
39478fff3f40Smrg  done
39488fff3f40Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
39498fff3f40Smrgesac
39508fff3f40Smrg
39518fff3f40Smrg      $ac_path_GREP_found && break 3
39528fff3f40Smrg    done
39538fff3f40Smrg  done
39548fff3f40Smrg  done
39558fff3f40SmrgIFS=$as_save_IFS
39568fff3f40Smrg  if test -z "$ac_cv_path_GREP"; then
395794a251fdSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
39588fff3f40Smrg  fi
39598fff3f40Smrgelse
39608fff3f40Smrg  ac_cv_path_GREP=$GREP
39618fff3f40Smrgfi
39628fff3f40Smrg
39638fff3f40Smrgfi
39648fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
39658fff3f40Smrg$as_echo "$ac_cv_path_GREP" >&6; }
39668fff3f40Smrg GREP="$ac_cv_path_GREP"
39678fff3f40Smrg
39688fff3f40Smrg
39698fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
39708fff3f40Smrg$as_echo_n "checking for egrep... " >&6; }
397194a251fdSmrgif ${ac_cv_path_EGREP+:} false; then :
39728fff3f40Smrg  $as_echo_n "(cached) " >&6
39738fff3f40Smrgelse
39748fff3f40Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
39758fff3f40Smrg   then ac_cv_path_EGREP="$GREP -E"
39768fff3f40Smrg   else
39778fff3f40Smrg     if test -z "$EGREP"; then
39788fff3f40Smrg  ac_path_EGREP_found=false
39798fff3f40Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
39808fff3f40Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39818fff3f40Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
39828fff3f40Smrgdo
39838fff3f40Smrg  IFS=$as_save_IFS
39848fff3f40Smrg  test -z "$as_dir" && as_dir=.
39858fff3f40Smrg    for ac_prog in egrep; do
39868fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
39878fff3f40Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
39888fff3f40Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
39898fff3f40Smrg# Check for GNU ac_path_EGREP and select it if it is found.
39908fff3f40Smrg  # Check for GNU $ac_path_EGREP
39918fff3f40Smrgcase `"$ac_path_EGREP" --version 2>&1` in
39928fff3f40Smrg*GNU*)
39938fff3f40Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
39948fff3f40Smrg*)
39958fff3f40Smrg  ac_count=0
39968fff3f40Smrg  $as_echo_n 0123456789 >"conftest.in"
39978fff3f40Smrg  while :
39988fff3f40Smrg  do
39998fff3f40Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
40008fff3f40Smrg    mv "conftest.tmp" "conftest.in"
40018fff3f40Smrg    cp "conftest.in" "conftest.nl"
40028fff3f40Smrg    $as_echo 'EGREP' >> "conftest.nl"
40038fff3f40Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
40048fff3f40Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40058fff3f40Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
40068fff3f40Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
40078fff3f40Smrg      # Best one so far, save it but keep looking for a better one
40088fff3f40Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
40098fff3f40Smrg      ac_path_EGREP_max=$ac_count
40108fff3f40Smrg    fi
40118fff3f40Smrg    # 10*(2^10) chars as input seems more than enough
40128fff3f40Smrg    test $ac_count -gt 10 && break
40138fff3f40Smrg  done
40148fff3f40Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
40158fff3f40Smrgesac
40168fff3f40Smrg
40178fff3f40Smrg      $ac_path_EGREP_found && break 3
40188fff3f40Smrg    done
40198fff3f40Smrg  done
40208fff3f40Smrg  done
40218fff3f40SmrgIFS=$as_save_IFS
40228fff3f40Smrg  if test -z "$ac_cv_path_EGREP"; then
402394a251fdSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
40248fff3f40Smrg  fi
40258fff3f40Smrgelse
40268fff3f40Smrg  ac_cv_path_EGREP=$EGREP
40278fff3f40Smrgfi
40288fff3f40Smrg
40298fff3f40Smrg   fi
40308fff3f40Smrgfi
40318fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
40328fff3f40Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
40338fff3f40Smrg EGREP="$ac_cv_path_EGREP"
40348fff3f40Smrg
40358fff3f40Smrg
40368fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
40378fff3f40Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
403894a251fdSmrgif ${ac_cv_header_stdc+:} false; then :
40398fff3f40Smrg  $as_echo_n "(cached) " >&6
40408fff3f40Smrgelse
40418fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40428fff3f40Smrg/* end confdefs.h.  */
40438fff3f40Smrg#include <stdlib.h>
40448fff3f40Smrg#include <stdarg.h>
40458fff3f40Smrg#include <string.h>
40468fff3f40Smrg#include <float.h>
40478fff3f40Smrg
40488fff3f40Smrgint
40498fff3f40Smrgmain ()
40508fff3f40Smrg{
40518fff3f40Smrg
40528fff3f40Smrg  ;
40538fff3f40Smrg  return 0;
40548fff3f40Smrg}
40558fff3f40Smrg_ACEOF
40568fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
40578fff3f40Smrg  ac_cv_header_stdc=yes
40588fff3f40Smrgelse
40598fff3f40Smrg  ac_cv_header_stdc=no
40608fff3f40Smrgfi
40618fff3f40Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40628fff3f40Smrg
40638fff3f40Smrgif test $ac_cv_header_stdc = yes; then
40648fff3f40Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
40658fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40668fff3f40Smrg/* end confdefs.h.  */
40678fff3f40Smrg#include <string.h>
40688fff3f40Smrg
40698fff3f40Smrg_ACEOF
40708fff3f40Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40718fff3f40Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
40728fff3f40Smrg
40738fff3f40Smrgelse
40748fff3f40Smrg  ac_cv_header_stdc=no
40758fff3f40Smrgfi
40768fff3f40Smrgrm -f conftest*
40778fff3f40Smrg
40788fff3f40Smrgfi
40798fff3f40Smrg
40808fff3f40Smrgif test $ac_cv_header_stdc = yes; then
40818fff3f40Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
40828fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40838fff3f40Smrg/* end confdefs.h.  */
40848fff3f40Smrg#include <stdlib.h>
40858fff3f40Smrg
40868fff3f40Smrg_ACEOF
40878fff3f40Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40888fff3f40Smrg  $EGREP "free" >/dev/null 2>&1; then :
40898fff3f40Smrg
40908fff3f40Smrgelse
40918fff3f40Smrg  ac_cv_header_stdc=no
40928fff3f40Smrgfi
40938fff3f40Smrgrm -f conftest*
40948fff3f40Smrg
40958fff3f40Smrgfi
40968fff3f40Smrg
40978fff3f40Smrgif test $ac_cv_header_stdc = yes; then
40988fff3f40Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
40998fff3f40Smrg  if test "$cross_compiling" = yes; then :
41008fff3f40Smrg  :
41018fff3f40Smrgelse
41028fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41038fff3f40Smrg/* end confdefs.h.  */
41048fff3f40Smrg#include <ctype.h>
41058fff3f40Smrg#include <stdlib.h>
41068fff3f40Smrg#if ((' ' & 0x0FF) == 0x020)
41078fff3f40Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
41088fff3f40Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
41098fff3f40Smrg#else
41108fff3f40Smrg# define ISLOWER(c) \
41118fff3f40Smrg		   (('a' <= (c) && (c) <= 'i') \
41128fff3f40Smrg		     || ('j' <= (c) && (c) <= 'r') \
41138fff3f40Smrg		     || ('s' <= (c) && (c) <= 'z'))
41148fff3f40Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
41158fff3f40Smrg#endif
41168fff3f40Smrg
41178fff3f40Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
41188fff3f40Smrgint
41198fff3f40Smrgmain ()
41208fff3f40Smrg{
41218fff3f40Smrg  int i;
41228fff3f40Smrg  for (i = 0; i < 256; i++)
41238fff3f40Smrg    if (XOR (islower (i), ISLOWER (i))
41248fff3f40Smrg	|| toupper (i) != TOUPPER (i))
41258fff3f40Smrg      return 2;
41268fff3f40Smrg  return 0;
41278fff3f40Smrg}
41288fff3f40Smrg_ACEOF
41298fff3f40Smrgif ac_fn_c_try_run "$LINENO"; then :
41308fff3f40Smrg
41318fff3f40Smrgelse
41328fff3f40Smrg  ac_cv_header_stdc=no
41338fff3f40Smrgfi
41348fff3f40Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41358fff3f40Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
41368fff3f40Smrgfi
41378fff3f40Smrg
41388fff3f40Smrgfi
41398fff3f40Smrgfi
41408fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
41418fff3f40Smrg$as_echo "$ac_cv_header_stdc" >&6; }
41428fff3f40Smrgif test $ac_cv_header_stdc = yes; then
41438fff3f40Smrg
41448fff3f40Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
41458fff3f40Smrg
41468fff3f40Smrgfi
41478fff3f40Smrg
41488fff3f40Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
41498fff3f40Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
41508fff3f40Smrg		  inttypes.h stdint.h unistd.h
41518fff3f40Smrgdo :
41528fff3f40Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41538fff3f40Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
41548fff3f40Smrg"
415594a251fdSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41568fff3f40Smrg  cat >>confdefs.h <<_ACEOF
41578fff3f40Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41588fff3f40Smrg_ACEOF
41598fff3f40Smrg
41608fff3f40Smrgfi
41618fff3f40Smrg
41628fff3f40Smrgdone
41638fff3f40Smrg
41648fff3f40Smrg
41658fff3f40Smrg
41668fff3f40Smrg
41678fff3f40Smrg
41688fff3f40Smrg
416994a251fdSmrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
417094a251fdSmrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
417194a251fdSmrg  CLANGCC="yes"
417294a251fdSmrgelse
417394a251fdSmrg  CLANGCC="no"
41748fff3f40Smrgfi
41758fff3f40Smrg
417694a251fdSmrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
417794a251fdSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
417894a251fdSmrg  INTELCC="yes"
417994a251fdSmrgelse
418094a251fdSmrg  INTELCC="no"
41818fff3f40Smrgfi
41828fff3f40Smrg
418394a251fdSmrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
418494a251fdSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
418594a251fdSmrg  SUNCC="yes"
418694a251fdSmrgelse
418794a251fdSmrg  SUNCC="no"
41888fff3f40Smrgfi
41898fff3f40Smrg
41908fff3f40Smrg
41918fff3f40Smrg
41928fff3f40Smrg
41938fff3f40Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
41948fff3f40Smrg	if test -n "$ac_tool_prefix"; then
41958fff3f40Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
41968fff3f40Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
41978fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41988fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
419994a251fdSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
42008fff3f40Smrg  $as_echo_n "(cached) " >&6
42018fff3f40Smrgelse
42028fff3f40Smrg  case $PKG_CONFIG in
42038fff3f40Smrg  [\\/]* | ?:[\\/]*)
42048fff3f40Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42058fff3f40Smrg  ;;
42068fff3f40Smrg  *)
42078fff3f40Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42088fff3f40Smrgfor as_dir in $PATH
42098fff3f40Smrgdo
42108fff3f40Smrg  IFS=$as_save_IFS
42118fff3f40Smrg  test -z "$as_dir" && as_dir=.
42128fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
42138fff3f40Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42148fff3f40Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42158fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42168fff3f40Smrg    break 2
42178fff3f40Smrg  fi
42188fff3f40Smrgdone
42198fff3f40Smrg  done
42208fff3f40SmrgIFS=$as_save_IFS
42218fff3f40Smrg
42228fff3f40Smrg  ;;
42238fff3f40Smrgesac
42248fff3f40Smrgfi
42258fff3f40SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
42268fff3f40Smrgif test -n "$PKG_CONFIG"; then
42278fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
42288fff3f40Smrg$as_echo "$PKG_CONFIG" >&6; }
42298fff3f40Smrgelse
42308fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42318fff3f40Smrg$as_echo "no" >&6; }
42328fff3f40Smrgfi
42338fff3f40Smrg
42348fff3f40Smrg
42358fff3f40Smrgfi
42368fff3f40Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
42378fff3f40Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
42388fff3f40Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
42398fff3f40Smrgset dummy pkg-config; ac_word=$2
42408fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
42418fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
424294a251fdSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
42438fff3f40Smrg  $as_echo_n "(cached) " >&6
42448fff3f40Smrgelse
42458fff3f40Smrg  case $ac_pt_PKG_CONFIG in
42468fff3f40Smrg  [\\/]* | ?:[\\/]*)
42478fff3f40Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42488fff3f40Smrg  ;;
42498fff3f40Smrg  *)
42508fff3f40Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42518fff3f40Smrgfor as_dir in $PATH
42528fff3f40Smrgdo
42538fff3f40Smrg  IFS=$as_save_IFS
42548fff3f40Smrg  test -z "$as_dir" && as_dir=.
42558fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
42568fff3f40Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42578fff3f40Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42588fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42598fff3f40Smrg    break 2
42608fff3f40Smrg  fi
42618fff3f40Smrgdone
42628fff3f40Smrg  done
42638fff3f40SmrgIFS=$as_save_IFS
42648fff3f40Smrg
42658fff3f40Smrg  ;;
42668fff3f40Smrgesac
42678fff3f40Smrgfi
42688fff3f40Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42698fff3f40Smrgif test -n "$ac_pt_PKG_CONFIG"; then
42708fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
42718fff3f40Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
42728fff3f40Smrgelse
42738fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42748fff3f40Smrg$as_echo "no" >&6; }
42758fff3f40Smrgfi
42768fff3f40Smrg
42778fff3f40Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
42788fff3f40Smrg    PKG_CONFIG=""
42798fff3f40Smrg  else
42808fff3f40Smrg    case $cross_compiling:$ac_tool_warned in
42818fff3f40Smrgyes:)
42828fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
42838fff3f40Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
42848fff3f40Smrgac_tool_warned=yes ;;
42858fff3f40Smrgesac
42868fff3f40Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
42878fff3f40Smrg  fi
42888fff3f40Smrgelse
42898fff3f40Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42908fff3f40Smrgfi
42918fff3f40Smrg
42928fff3f40Smrgfi
42938fff3f40Smrgif test -n "$PKG_CONFIG"; then
42948fff3f40Smrg	_pkg_min_version=0.9.0
42958fff3f40Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
42968fff3f40Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
42978fff3f40Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42988fff3f40Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42998fff3f40Smrg$as_echo "yes" >&6; }
43008fff3f40Smrg	else
43018fff3f40Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43028fff3f40Smrg$as_echo "no" >&6; }
43038fff3f40Smrg		PKG_CONFIG=""
43048fff3f40Smrg	fi
430594a251fdSmrg
43068fff3f40Smrgfi
43078fff3f40Smrg# Make sure we can run config.sub.
43088fff3f40Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
430994a251fdSmrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
43108fff3f40Smrg
43118fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
43128fff3f40Smrg$as_echo_n "checking build system type... " >&6; }
431394a251fdSmrgif ${ac_cv_build+:} false; then :
43148fff3f40Smrg  $as_echo_n "(cached) " >&6
43158fff3f40Smrgelse
43168fff3f40Smrg  ac_build_alias=$build_alias
43178fff3f40Smrgtest "x$ac_build_alias" = x &&
43188fff3f40Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
43198fff3f40Smrgtest "x$ac_build_alias" = x &&
432094a251fdSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
43218fff3f40Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
432294a251fdSmrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
43238fff3f40Smrg
43248fff3f40Smrgfi
43258fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
43268fff3f40Smrg$as_echo "$ac_cv_build" >&6; }
43278fff3f40Smrgcase $ac_cv_build in
43288fff3f40Smrg*-*-*) ;;
432994a251fdSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
43308fff3f40Smrgesac
43318fff3f40Smrgbuild=$ac_cv_build
43328fff3f40Smrgac_save_IFS=$IFS; IFS='-'
43338fff3f40Smrgset x $ac_cv_build
43348fff3f40Smrgshift
43358fff3f40Smrgbuild_cpu=$1
43368fff3f40Smrgbuild_vendor=$2
43378fff3f40Smrgshift; shift
43388fff3f40Smrg# Remember, the first character of IFS is used to create $*,
43398fff3f40Smrg# except with old shells:
43408fff3f40Smrgbuild_os=$*
43418fff3f40SmrgIFS=$ac_save_IFS
43428fff3f40Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
43438fff3f40Smrg
43448fff3f40Smrg
43458fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
43468fff3f40Smrg$as_echo_n "checking host system type... " >&6; }
434794a251fdSmrgif ${ac_cv_host+:} false; then :
43488fff3f40Smrg  $as_echo_n "(cached) " >&6
43498fff3f40Smrgelse
43508fff3f40Smrg  if test "x$host_alias" = x; then
43518fff3f40Smrg  ac_cv_host=$ac_cv_build
43528fff3f40Smrgelse
43538fff3f40Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
435494a251fdSmrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
43558fff3f40Smrgfi
43568fff3f40Smrg
43578fff3f40Smrgfi
43588fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
43598fff3f40Smrg$as_echo "$ac_cv_host" >&6; }
43608fff3f40Smrgcase $ac_cv_host in
43618fff3f40Smrg*-*-*) ;;
436294a251fdSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
43638fff3f40Smrgesac
43648fff3f40Smrghost=$ac_cv_host
43658fff3f40Smrgac_save_IFS=$IFS; IFS='-'
43668fff3f40Smrgset x $ac_cv_host
43678fff3f40Smrgshift
43688fff3f40Smrghost_cpu=$1
43698fff3f40Smrghost_vendor=$2
43708fff3f40Smrgshift; shift
43718fff3f40Smrg# Remember, the first character of IFS is used to create $*,
43728fff3f40Smrg# except with old shells:
43738fff3f40Smrghost_os=$*
43748fff3f40SmrgIFS=$ac_save_IFS
43758fff3f40Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
43768fff3f40Smrg
4377e6232409Smrg
437894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
437994a251fdSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
438094a251fdSmrgif ${ac_cv_path_SED+:} false; then :
438194a251fdSmrg  $as_echo_n "(cached) " >&6
4382e6232409Smrgelse
438394a251fdSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
438494a251fdSmrg     for ac_i in 1 2 3 4 5 6 7; do
438594a251fdSmrg       ac_script="$ac_script$as_nl$ac_script"
438694a251fdSmrg     done
438794a251fdSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
438894a251fdSmrg     { ac_script=; unset ac_script;}
438994a251fdSmrg     if test -z "$SED"; then
439094a251fdSmrg  ac_path_SED_found=false
439194a251fdSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
439294a251fdSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
439394a251fdSmrgfor as_dir in $PATH
439494a251fdSmrgdo
439594a251fdSmrg  IFS=$as_save_IFS
439694a251fdSmrg  test -z "$as_dir" && as_dir=.
439794a251fdSmrg    for ac_prog in sed gsed; do
439894a251fdSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
439994a251fdSmrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
440094a251fdSmrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
440194a251fdSmrg# Check for GNU ac_path_SED and select it if it is found.
440294a251fdSmrg  # Check for GNU $ac_path_SED
440394a251fdSmrgcase `"$ac_path_SED" --version 2>&1` in
440494a251fdSmrg*GNU*)
440594a251fdSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
440694a251fdSmrg*)
440794a251fdSmrg  ac_count=0
440894a251fdSmrg  $as_echo_n 0123456789 >"conftest.in"
440994a251fdSmrg  while :
441094a251fdSmrg  do
441194a251fdSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
441294a251fdSmrg    mv "conftest.tmp" "conftest.in"
441394a251fdSmrg    cp "conftest.in" "conftest.nl"
441494a251fdSmrg    $as_echo '' >> "conftest.nl"
441594a251fdSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
441694a251fdSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
441794a251fdSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
441894a251fdSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
441994a251fdSmrg      # Best one so far, save it but keep looking for a better one
442094a251fdSmrg      ac_cv_path_SED="$ac_path_SED"
442194a251fdSmrg      ac_path_SED_max=$ac_count
442294a251fdSmrg    fi
442394a251fdSmrg    # 10*(2^10) chars as input seems more than enough
442494a251fdSmrg    test $ac_count -gt 10 && break
442594a251fdSmrg  done
442694a251fdSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
442794a251fdSmrgesac
442894a251fdSmrg
442994a251fdSmrg      $ac_path_SED_found && break 3
443094a251fdSmrg    done
443194a251fdSmrg  done
443294a251fdSmrg  done
443394a251fdSmrgIFS=$as_save_IFS
443494a251fdSmrg  if test -z "$ac_cv_path_SED"; then
443594a251fdSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
443694a251fdSmrg  fi
4437e6232409Smrgelse
443894a251fdSmrg  ac_cv_path_SED=$SED
4439e6232409Smrgfi
44408fff3f40Smrg
4441e6232409Smrgfi
444294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
444394a251fdSmrg$as_echo "$ac_cv_path_SED" >&6; }
444494a251fdSmrg SED="$ac_cv_path_SED"
444594a251fdSmrg  rm -f conftest.sed
4446e6232409Smrg
4447e6232409Smrg
4448e6232409Smrg
44498fff3f40Smrg
44508fff3f40Smrg
44518fff3f40Smrg
445294a251fdSmrg# Check whether --enable-selective-werror was given.
445394a251fdSmrgif test "${enable_selective_werror+set}" = set; then :
445494a251fdSmrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4455e6232409Smrgelse
445694a251fdSmrg  SELECTIVE_WERROR=yes
4457e6232409Smrgfi
4458e6232409Smrg
4459e6232409Smrg
4460e6232409Smrg
4461e6232409Smrg
4462e6232409Smrg
446394a251fdSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
446494a251fdSmrgif test "x$SUNCC" = "xyes"; then
446594a251fdSmrg    BASE_CFLAGS="-v"
44668fff3f40Smrgelse
446794a251fdSmrg    BASE_CFLAGS=""
44688fff3f40Smrgfi
44698fff3f40Smrg
447094a251fdSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4471e6232409Smrg
4472e6232409Smrg
4473e6232409Smrg
4474e6232409Smrg
4475e6232409Smrg
4476e6232409Smrg
4477e6232409Smrg
4478e6232409Smrg
4479e6232409Smrg
4480e6232409Smrg
4481e6232409Smrg
4482e6232409Smrg
4483e6232409Smrg
448494a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
44858fff3f40Smrg
448694a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
448794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
448894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
448994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
449094a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
449194a251fdSmrg  $as_echo_n "(cached) " >&6
449294a251fdSmrgelse
449394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
449494a251fdSmrg/* end confdefs.h.  */
449594a251fdSmrgint i;
449694a251fdSmrg_ACEOF
449794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
449894a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
449994a251fdSmrgelse
450094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4501e6232409Smrgfi
450294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45038fff3f40Smrgfi
450494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
450594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
450694a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
450794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4508e6232409Smrgfi
4509e6232409Smrg
451094a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
451194a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
451294a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
451394a251fdSmrg	fi
451494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
451594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
451694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
451794a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
451894a251fdSmrg  $as_echo_n "(cached) " >&6
451994a251fdSmrgelse
452094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
452194a251fdSmrg/* end confdefs.h.  */
452294a251fdSmrgint i;
452394a251fdSmrg_ACEOF
452494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
452594a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
452694a251fdSmrgelse
452794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4528e6232409Smrgfi
452994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45308fff3f40Smrgfi
453194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
453294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
453394a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
453494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4535e6232409Smrgfi
4536e6232409Smrg
453794a251fdSmrgfound="no"
4538e6232409Smrg
453994a251fdSmrg	if test $found = "no" ; then
454094a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
454194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
454294a251fdSmrg		fi
4543e6232409Smrg
454494a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
454594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
454694a251fdSmrg		fi
4547e6232409Smrg
454894a251fdSmrg		CFLAGS="$CFLAGS -Wall"
4549e6232409Smrg
455094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
455194a251fdSmrg$as_echo_n "checking if $CC supports -Wall... " >&6; }
455294a251fdSmrg		cacheid=xorg_cv_cc_flag__Wall
455394a251fdSmrg		if eval \${$cacheid+:} false; then :
455494a251fdSmrg  $as_echo_n "(cached) " >&6
455594a251fdSmrgelse
455694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
455794a251fdSmrg/* end confdefs.h.  */
455894a251fdSmrgint i;
455994a251fdSmrgint
456094a251fdSmrgmain ()
456194a251fdSmrg{
4562e6232409Smrg
456394a251fdSmrg  ;
456494a251fdSmrg  return 0;
456594a251fdSmrg}
456694a251fdSmrg_ACEOF
456794a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
456894a251fdSmrg  eval $cacheid=yes
456994a251fdSmrgelse
457094a251fdSmrg  eval $cacheid=no
457194a251fdSmrgfi
457294a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
457394a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
457494a251fdSmrgfi
4575e6232409Smrg
4576e6232409Smrg
457794a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
4578e6232409Smrg
457994a251fdSmrg		eval supported=\$$cacheid
458094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
458194a251fdSmrg$as_echo "$supported" >&6; }
458294a251fdSmrg		if test "$supported" = "yes" ; then
458394a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
458494a251fdSmrg			found="yes"
458594a251fdSmrg		fi
458694a251fdSmrg	fi
4587e6232409Smrg
4588e6232409Smrg
4589e6232409Smrg
4590e6232409Smrg
45918fff3f40Smrg
45928fff3f40Smrg
45938fff3f40Smrg
45948fff3f40Smrg
4595e6232409Smrg
4596e6232409Smrg
4597e6232409Smrg
4598e6232409Smrg
4599e6232409Smrg
4600e6232409Smrg
460194a251fdSmrg
460294a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
460394a251fdSmrg
460494a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
460594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
460694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
460794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
460894a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
46098fff3f40Smrg  $as_echo_n "(cached) " >&6
4610e6232409Smrgelse
461194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
461294a251fdSmrg/* end confdefs.h.  */
461394a251fdSmrgint i;
461494a251fdSmrg_ACEOF
461594a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
461694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
4617e6232409Smrgelse
461894a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4619e6232409Smrgfi
462094a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621e6232409Smrgfi
462294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
462394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
462494a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
462594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4626e6232409Smrgfi
4627e6232409Smrg
462894a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
462994a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
463094a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
463194a251fdSmrg	fi
463294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
463394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
463494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
463594a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
46368fff3f40Smrg  $as_echo_n "(cached) " >&6
4637e6232409Smrgelse
463894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
463994a251fdSmrg/* end confdefs.h.  */
464094a251fdSmrgint i;
464194a251fdSmrg_ACEOF
464294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
464394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4644e6232409Smrgelse
464594a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4646e6232409Smrgfi
464794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648e6232409Smrgfi
464994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
465094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
465194a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
465294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4653e6232409Smrgfi
4654e6232409Smrg
465594a251fdSmrgfound="no"
465694a251fdSmrg
465794a251fdSmrg	if test $found = "no" ; then
465894a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
465994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
466094a251fdSmrg		fi
466194a251fdSmrg
466294a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
466394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
466494a251fdSmrg		fi
466594a251fdSmrg
466694a251fdSmrg		CFLAGS="$CFLAGS -Wpointer-arith"
466794a251fdSmrg
466894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
466994a251fdSmrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
467094a251fdSmrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
467194a251fdSmrg		if eval \${$cacheid+:} false; then :
467294a251fdSmrg  $as_echo_n "(cached) " >&6
4673e6232409Smrgelse
467494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
467594a251fdSmrg/* end confdefs.h.  */
467694a251fdSmrgint i;
467794a251fdSmrgint
467894a251fdSmrgmain ()
467994a251fdSmrg{
468094a251fdSmrg
468194a251fdSmrg  ;
468294a251fdSmrg  return 0;
468394a251fdSmrg}
468494a251fdSmrg_ACEOF
468594a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
468694a251fdSmrg  eval $cacheid=yes
468794a251fdSmrgelse
468894a251fdSmrg  eval $cacheid=no
468994a251fdSmrgfi
469094a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
469194a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
4692e6232409Smrgfi
4693e6232409Smrg
469494a251fdSmrg
469594a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
469694a251fdSmrg
469794a251fdSmrg		eval supported=\$$cacheid
469894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
469994a251fdSmrg$as_echo "$supported" >&6; }
470094a251fdSmrg		if test "$supported" = "yes" ; then
470194a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
470294a251fdSmrg			found="yes"
470394a251fdSmrg		fi
470494a251fdSmrg	fi
470594a251fdSmrg
470694a251fdSmrg
470794a251fdSmrg
470894a251fdSmrg
470994a251fdSmrg
471094a251fdSmrg
471194a251fdSmrg
471294a251fdSmrg
471394a251fdSmrg
471494a251fdSmrg
471594a251fdSmrg
471694a251fdSmrg
471794a251fdSmrg
471894a251fdSmrg
471994a251fdSmrg
472094a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
472194a251fdSmrg
472294a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
472394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
472494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
472594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
472694a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
47278fff3f40Smrg  $as_echo_n "(cached) " >&6
4728e6232409Smrgelse
472994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
473094a251fdSmrg/* end confdefs.h.  */
473194a251fdSmrgint i;
473294a251fdSmrg_ACEOF
473394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
473494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
4735e6232409Smrgelse
473694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4737e6232409Smrgfi
473894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739e6232409Smrgfi
474094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
474194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
474294a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
474394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
474494a251fdSmrgfi
474594a251fdSmrg
474694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
474794a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
474894a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
474994a251fdSmrg	fi
475094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
475194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
475294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
475394a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
475494a251fdSmrg  $as_echo_n "(cached) " >&6
4755e6232409Smrgelse
475694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
475794a251fdSmrg/* end confdefs.h.  */
475894a251fdSmrgint i;
475994a251fdSmrg_ACEOF
476094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
476194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
476294a251fdSmrgelse
476394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
476494a251fdSmrgfi
476594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
476694a251fdSmrgfi
476794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
476894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
476994a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
477094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4771e6232409Smrgfi
4772e6232409Smrg
477394a251fdSmrgfound="no"
4774e6232409Smrg
477594a251fdSmrg	if test $found = "no" ; then
477694a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
477794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
477894a251fdSmrg		fi
477994a251fdSmrg
478094a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
478194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
478294a251fdSmrg		fi
478394a251fdSmrg
478494a251fdSmrg		CFLAGS="$CFLAGS -Wmissing-declarations"
478594a251fdSmrg
478694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
478794a251fdSmrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
478894a251fdSmrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
478994a251fdSmrg		if eval \${$cacheid+:} false; then :
47908fff3f40Smrg  $as_echo_n "(cached) " >&6
4791e6232409Smrgelse
479294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
479394a251fdSmrg/* end confdefs.h.  */
479494a251fdSmrgint i;
479594a251fdSmrgint
479694a251fdSmrgmain ()
479794a251fdSmrg{
4798e6232409Smrg
479994a251fdSmrg  ;
480094a251fdSmrg  return 0;
480194a251fdSmrg}
480294a251fdSmrg_ACEOF
480394a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
480494a251fdSmrg  eval $cacheid=yes
480594a251fdSmrgelse
480694a251fdSmrg  eval $cacheid=no
480794a251fdSmrgfi
480894a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
480994a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
481094a251fdSmrgfi
481194a251fdSmrg
481294a251fdSmrg
481394a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
481494a251fdSmrg
481594a251fdSmrg		eval supported=\$$cacheid
481694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
481794a251fdSmrg$as_echo "$supported" >&6; }
481894a251fdSmrg		if test "$supported" = "yes" ; then
481994a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
482094a251fdSmrg			found="yes"
482194a251fdSmrg		fi
482294a251fdSmrg	fi
482394a251fdSmrg
482494a251fdSmrg
482594a251fdSmrg
482694a251fdSmrg
482794a251fdSmrg
482894a251fdSmrg
482994a251fdSmrg
483094a251fdSmrg
483194a251fdSmrg
483294a251fdSmrg
483394a251fdSmrg
483494a251fdSmrg
483594a251fdSmrg
483694a251fdSmrg
483794a251fdSmrg
483894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
483994a251fdSmrg
484094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
484194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
484294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
484394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
484494a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
484594a251fdSmrg  $as_echo_n "(cached) " >&6
484694a251fdSmrgelse
484794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
484894a251fdSmrg/* end confdefs.h.  */
484994a251fdSmrgint i;
485094a251fdSmrg_ACEOF
485194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
485294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
485394a251fdSmrgelse
485494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4855e6232409Smrgfi
485694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857e6232409Smrgfi
485894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
485994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
486094a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
486194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4862e6232409Smrgfi
486394a251fdSmrg
486494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
486594a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
486694a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
486794a251fdSmrg	fi
486894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
486994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
487094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
487194a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
487294a251fdSmrg  $as_echo_n "(cached) " >&6
4873e6232409Smrgelse
487494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
487594a251fdSmrg/* end confdefs.h.  */
487694a251fdSmrgint i;
487794a251fdSmrg_ACEOF
487894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
487994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
488094a251fdSmrgelse
488194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
488294a251fdSmrgfi
488394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
488494a251fdSmrgfi
488594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
488694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
488794a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
488894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4889e6232409Smrgfi
4890e6232409Smrg
489194a251fdSmrgfound="no"
4892e6232409Smrg
489394a251fdSmrg	if test $found = "no" ; then
489494a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
489594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
489694a251fdSmrg		fi
489794a251fdSmrg
489894a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
489994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
490094a251fdSmrg		fi
490194a251fdSmrg
490294a251fdSmrg		CFLAGS="$CFLAGS -Wformat=2"
490394a251fdSmrg
490494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
490594a251fdSmrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
490694a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
490794a251fdSmrg		if eval \${$cacheid+:} false; then :
49088fff3f40Smrg  $as_echo_n "(cached) " >&6
4909e6232409Smrgelse
491094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
491194a251fdSmrg/* end confdefs.h.  */
491294a251fdSmrgint i;
491394a251fdSmrgint
491494a251fdSmrgmain ()
491594a251fdSmrg{
4916e6232409Smrg
491794a251fdSmrg  ;
491894a251fdSmrg  return 0;
491994a251fdSmrg}
492094a251fdSmrg_ACEOF
492194a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
492294a251fdSmrg  eval $cacheid=yes
492394a251fdSmrgelse
492494a251fdSmrg  eval $cacheid=no
4925e6232409Smrgfi
492694a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
492794a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
4928e6232409Smrgfi
492994a251fdSmrg
493094a251fdSmrg
493194a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
493294a251fdSmrg
493394a251fdSmrg		eval supported=\$$cacheid
493494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
493594a251fdSmrg$as_echo "$supported" >&6; }
493694a251fdSmrg		if test "$supported" = "yes" ; then
493794a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
493894a251fdSmrg			found="yes"
493994a251fdSmrg		fi
494094a251fdSmrg	fi
494194a251fdSmrg
494294a251fdSmrg	if test $found = "no" ; then
494394a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
494494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
494594a251fdSmrg		fi
494694a251fdSmrg
494794a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
494894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
494994a251fdSmrg		fi
495094a251fdSmrg
495194a251fdSmrg		CFLAGS="$CFLAGS -Wformat"
495294a251fdSmrg
495394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
495494a251fdSmrg$as_echo_n "checking if $CC supports -Wformat... " >&6; }
495594a251fdSmrg		cacheid=xorg_cv_cc_flag__Wformat
495694a251fdSmrg		if eval \${$cacheid+:} false; then :
495794a251fdSmrg  $as_echo_n "(cached) " >&6
4958e6232409Smrgelse
495994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
496094a251fdSmrg/* end confdefs.h.  */
496194a251fdSmrgint i;
496294a251fdSmrgint
496394a251fdSmrgmain ()
496494a251fdSmrg{
496594a251fdSmrg
496694a251fdSmrg  ;
496794a251fdSmrg  return 0;
496894a251fdSmrg}
496994a251fdSmrg_ACEOF
497094a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
497194a251fdSmrg  eval $cacheid=yes
497294a251fdSmrgelse
497394a251fdSmrg  eval $cacheid=no
497494a251fdSmrgfi
497594a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
497694a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
4977e6232409Smrgfi
4978e6232409Smrg
4979e6232409Smrg
498094a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
498194a251fdSmrg
498294a251fdSmrg		eval supported=\$$cacheid
498394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
498494a251fdSmrg$as_echo "$supported" >&6; }
498594a251fdSmrg		if test "$supported" = "yes" ; then
498694a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
498794a251fdSmrg			found="yes"
498894a251fdSmrg		fi
498994a251fdSmrg	fi
499094a251fdSmrg
499194a251fdSmrg
499294a251fdSmrg
499394a251fdSmrg
499494a251fdSmrg
499594a251fdSmrg
499694a251fdSmrg
499794a251fdSmrg
499894a251fdSmrg
499994a251fdSmrg
500094a251fdSmrg
500194a251fdSmrg
500294a251fdSmrg
500394a251fdSmrg
500494a251fdSmrg
500594a251fdSmrg
500694a251fdSmrg
500794a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
500894a251fdSmrg
500994a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
501094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
501194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
501294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
501394a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
50148fff3f40Smrg  $as_echo_n "(cached) " >&6
5015e6232409Smrgelse
501694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
501794a251fdSmrg/* end confdefs.h.  */
501894a251fdSmrgint i;
501994a251fdSmrg_ACEOF
502094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
502194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5022e6232409Smrgelse
502394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5024e6232409Smrgfi
502594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026e6232409Smrgfi
502794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
502894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
502994a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
503094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
503194a251fdSmrgfi
503294a251fdSmrg
503394a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
503494a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
503594a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
503694a251fdSmrg	fi
503794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
503894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
503994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
504094a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
504194a251fdSmrg  $as_echo_n "(cached) " >&6
5042e6232409Smrgelse
504394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
504494a251fdSmrg/* end confdefs.h.  */
504594a251fdSmrgint i;
504694a251fdSmrg_ACEOF
504794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
504894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
504994a251fdSmrgelse
505094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
505194a251fdSmrgfi
505294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
505394a251fdSmrgfi
505494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
505594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
505694a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
505794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5058e6232409Smrgfi
5059e6232409Smrg
506094a251fdSmrgfound="no"
5061e6232409Smrg
506294a251fdSmrg	if test $found = "no" ; then
506394a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
506494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
506594a251fdSmrg		fi
5066e6232409Smrg
506794a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
506894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
506994a251fdSmrg		fi
507094a251fdSmrg
507194a251fdSmrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
507294a251fdSmrg
507394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
507494a251fdSmrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
507594a251fdSmrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
507694a251fdSmrg		if eval \${$cacheid+:} false; then :
507794a251fdSmrg  $as_echo_n "(cached) " >&6
507894a251fdSmrgelse
507994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
508094a251fdSmrg/* end confdefs.h.  */
508194a251fdSmrgint i;
508294a251fdSmrgint
508394a251fdSmrgmain ()
508494a251fdSmrg{
5085e6232409Smrg
508694a251fdSmrg  ;
508794a251fdSmrg  return 0;
508894a251fdSmrg}
508994a251fdSmrg_ACEOF
509094a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
509194a251fdSmrg  eval $cacheid=yes
509294a251fdSmrgelse
509394a251fdSmrg  eval $cacheid=no
509494a251fdSmrgfi
509594a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
509694a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
5097e6232409Smrgfi
5098e6232409Smrg
5099e6232409Smrg
510094a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5101e6232409Smrg
510294a251fdSmrg		eval supported=\$$cacheid
510394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
510494a251fdSmrg$as_echo "$supported" >&6; }
510594a251fdSmrg		if test "$supported" = "yes" ; then
510694a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
510794a251fdSmrg			found="yes"
510894a251fdSmrg		fi
510994a251fdSmrg	fi
511094a251fdSmrg
511194a251fdSmrg
511294a251fdSmrg
511394a251fdSmrg
511494a251fdSmrg
511594a251fdSmrg
511694a251fdSmrg
511794a251fdSmrg
511894a251fdSmrg
511994a251fdSmrg
512094a251fdSmrg
512194a251fdSmrg
512294a251fdSmrg
512394a251fdSmrg
512494a251fdSmrg
512594a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
512694a251fdSmrg
512794a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
512894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
512994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
513094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
513194a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
513294a251fdSmrg  $as_echo_n "(cached) " >&6
513394a251fdSmrgelse
513494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
513594a251fdSmrg/* end confdefs.h.  */
513694a251fdSmrgint i;
513794a251fdSmrg_ACEOF
513894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
513994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
514094a251fdSmrgelse
514194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
514294a251fdSmrgfi
514394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
514494a251fdSmrgfi
514594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
514694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
514794a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
514894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
514994a251fdSmrgfi
515094a251fdSmrg
515194a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
515294a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
515394a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
515494a251fdSmrg	fi
515594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
515694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
515794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
515894a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
515994a251fdSmrg  $as_echo_n "(cached) " >&6
516094a251fdSmrgelse
516194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
516294a251fdSmrg/* end confdefs.h.  */
516394a251fdSmrgint i;
516494a251fdSmrg_ACEOF
516594a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
516694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
516794a251fdSmrgelse
516894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
516994a251fdSmrgfi
517094a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
517194a251fdSmrgfi
517294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
517394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
517494a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
517594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
517694a251fdSmrgfi
517794a251fdSmrg
517894a251fdSmrgfound="no"
517994a251fdSmrg
518094a251fdSmrg	if test $found = "no" ; then
518194a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
518294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
518394a251fdSmrg		fi
518494a251fdSmrg
518594a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
518694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
518794a251fdSmrg		fi
518894a251fdSmrg
518994a251fdSmrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
519094a251fdSmrg
519194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
519294a251fdSmrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
519394a251fdSmrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
519494a251fdSmrg		if eval \${$cacheid+:} false; then :
519594a251fdSmrg  $as_echo_n "(cached) " >&6
519694a251fdSmrgelse
519794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
519894a251fdSmrg/* end confdefs.h.  */
519994a251fdSmrgint i;
520094a251fdSmrgint
520194a251fdSmrgmain ()
520294a251fdSmrg{
520394a251fdSmrg
520494a251fdSmrg  ;
520594a251fdSmrg  return 0;
520694a251fdSmrg}
520794a251fdSmrg_ACEOF
520894a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
520994a251fdSmrg  eval $cacheid=yes
521094a251fdSmrgelse
521194a251fdSmrg  eval $cacheid=no
521294a251fdSmrgfi
521394a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
521494a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
521594a251fdSmrgfi
521694a251fdSmrg
521794a251fdSmrg
521894a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
521994a251fdSmrg
522094a251fdSmrg		eval supported=\$$cacheid
522194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
522294a251fdSmrg$as_echo "$supported" >&6; }
522394a251fdSmrg		if test "$supported" = "yes" ; then
522494a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
522594a251fdSmrg			found="yes"
522694a251fdSmrg		fi
522794a251fdSmrg	fi
522894a251fdSmrg
522994a251fdSmrg
523094a251fdSmrg
523194a251fdSmrg
523294a251fdSmrg
523394a251fdSmrg
523494a251fdSmrg
523594a251fdSmrg
523694a251fdSmrg
523794a251fdSmrg
523894a251fdSmrg
523994a251fdSmrg
524094a251fdSmrg
524194a251fdSmrg
524294a251fdSmrg
524394a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
524494a251fdSmrg
524594a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
524694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
524794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
524894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
524994a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
525094a251fdSmrg  $as_echo_n "(cached) " >&6
525194a251fdSmrgelse
525294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
525394a251fdSmrg/* end confdefs.h.  */
525494a251fdSmrgint i;
525594a251fdSmrg_ACEOF
525694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
525794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
525894a251fdSmrgelse
525994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
526094a251fdSmrgfi
526194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
526294a251fdSmrgfi
526394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
526494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
526594a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
526694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
526794a251fdSmrgfi
526894a251fdSmrg
526994a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
527094a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
527194a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
527294a251fdSmrg	fi
527394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
527494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
527594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
527694a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
527794a251fdSmrg  $as_echo_n "(cached) " >&6
527894a251fdSmrgelse
527994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
528094a251fdSmrg/* end confdefs.h.  */
528194a251fdSmrgint i;
528294a251fdSmrg_ACEOF
528394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
528494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
528594a251fdSmrgelse
528694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
528794a251fdSmrgfi
528894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
528994a251fdSmrgfi
529094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
529194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
529294a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
529394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
529494a251fdSmrgfi
529594a251fdSmrg
529694a251fdSmrgfound="no"
529794a251fdSmrg
529894a251fdSmrg	if test $found = "no" ; then
529994a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
530094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
530194a251fdSmrg		fi
530294a251fdSmrg
530394a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
530494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
530594a251fdSmrg		fi
530694a251fdSmrg
530794a251fdSmrg		CFLAGS="$CFLAGS -Wnested-externs"
530894a251fdSmrg
530994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
531094a251fdSmrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
531194a251fdSmrg		cacheid=xorg_cv_cc_flag__Wnested_externs
531294a251fdSmrg		if eval \${$cacheid+:} false; then :
531394a251fdSmrg  $as_echo_n "(cached) " >&6
531494a251fdSmrgelse
531594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
531694a251fdSmrg/* end confdefs.h.  */
531794a251fdSmrgint i;
531894a251fdSmrgint
531994a251fdSmrgmain ()
532094a251fdSmrg{
532194a251fdSmrg
532294a251fdSmrg  ;
532394a251fdSmrg  return 0;
532494a251fdSmrg}
532594a251fdSmrg_ACEOF
532694a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
532794a251fdSmrg  eval $cacheid=yes
532894a251fdSmrgelse
532994a251fdSmrg  eval $cacheid=no
533094a251fdSmrgfi
533194a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
533294a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
533394a251fdSmrgfi
533494a251fdSmrg
533594a251fdSmrg
533694a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
533794a251fdSmrg
533894a251fdSmrg		eval supported=\$$cacheid
533994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
534094a251fdSmrg$as_echo "$supported" >&6; }
534194a251fdSmrg		if test "$supported" = "yes" ; then
534294a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
534394a251fdSmrg			found="yes"
534494a251fdSmrg		fi
534594a251fdSmrg	fi
534694a251fdSmrg
534794a251fdSmrg
534894a251fdSmrg
534994a251fdSmrg
535094a251fdSmrg
535194a251fdSmrg
535294a251fdSmrg
535394a251fdSmrg
535494a251fdSmrg
535594a251fdSmrg
535694a251fdSmrg
535794a251fdSmrg
535894a251fdSmrg
535994a251fdSmrg
536094a251fdSmrg
536194a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
536294a251fdSmrg
536394a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
536494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
536594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
536694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
536794a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
536894a251fdSmrg  $as_echo_n "(cached) " >&6
536994a251fdSmrgelse
537094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
537194a251fdSmrg/* end confdefs.h.  */
537294a251fdSmrgint i;
537394a251fdSmrg_ACEOF
537494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
537594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
537694a251fdSmrgelse
537794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
537894a251fdSmrgfi
537994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
538094a251fdSmrgfi
538194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
538294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
538394a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
538494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
538594a251fdSmrgfi
538694a251fdSmrg
538794a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
538894a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
538994a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
539094a251fdSmrg	fi
539194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
539294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
539394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
539494a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
539594a251fdSmrg  $as_echo_n "(cached) " >&6
539694a251fdSmrgelse
539794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
539894a251fdSmrg/* end confdefs.h.  */
539994a251fdSmrgint i;
540094a251fdSmrg_ACEOF
540194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
540294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
540394a251fdSmrgelse
540494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
540594a251fdSmrgfi
540694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
540794a251fdSmrgfi
540894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
540994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
541094a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
541194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
541294a251fdSmrgfi
541394a251fdSmrg
541494a251fdSmrgfound="no"
541594a251fdSmrg
541694a251fdSmrg	if test $found = "no" ; then
541794a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
541894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
541994a251fdSmrg		fi
542094a251fdSmrg
542194a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
542294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
542394a251fdSmrg		fi
542494a251fdSmrg
542594a251fdSmrg		CFLAGS="$CFLAGS -Wbad-function-cast"
542694a251fdSmrg
542794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
542894a251fdSmrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
542994a251fdSmrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
543094a251fdSmrg		if eval \${$cacheid+:} false; then :
543194a251fdSmrg  $as_echo_n "(cached) " >&6
543294a251fdSmrgelse
543394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
543494a251fdSmrg/* end confdefs.h.  */
543594a251fdSmrgint i;
543694a251fdSmrgint
543794a251fdSmrgmain ()
543894a251fdSmrg{
543994a251fdSmrg
544094a251fdSmrg  ;
544194a251fdSmrg  return 0;
544294a251fdSmrg}
544394a251fdSmrg_ACEOF
544494a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
544594a251fdSmrg  eval $cacheid=yes
544694a251fdSmrgelse
544794a251fdSmrg  eval $cacheid=no
544894a251fdSmrgfi
544994a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
545094a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
545194a251fdSmrgfi
545294a251fdSmrg
545394a251fdSmrg
545494a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
545594a251fdSmrg
545694a251fdSmrg		eval supported=\$$cacheid
545794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
545894a251fdSmrg$as_echo "$supported" >&6; }
545994a251fdSmrg		if test "$supported" = "yes" ; then
546094a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
546194a251fdSmrg			found="yes"
546294a251fdSmrg		fi
546394a251fdSmrg	fi
546494a251fdSmrg
546594a251fdSmrg
546694a251fdSmrg
546794a251fdSmrg
546894a251fdSmrg
546994a251fdSmrg
547094a251fdSmrg
547194a251fdSmrg
547294a251fdSmrg
547394a251fdSmrg
547494a251fdSmrg
547594a251fdSmrg
547694a251fdSmrg
547794a251fdSmrg
547894a251fdSmrg
547994a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
548094a251fdSmrg
548194a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
548294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
548394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
548494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
548594a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
548694a251fdSmrg  $as_echo_n "(cached) " >&6
548794a251fdSmrgelse
548894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
548994a251fdSmrg/* end confdefs.h.  */
549094a251fdSmrgint i;
549194a251fdSmrg_ACEOF
549294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
549394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
549494a251fdSmrgelse
549594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
549694a251fdSmrgfi
549794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
549894a251fdSmrgfi
549994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
550094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
550194a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
550294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
550394a251fdSmrgfi
550494a251fdSmrg
550594a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
550694a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
550794a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
550894a251fdSmrg	fi
550994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
551094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
551194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
551294a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
551394a251fdSmrg  $as_echo_n "(cached) " >&6
551494a251fdSmrgelse
551594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
551694a251fdSmrg/* end confdefs.h.  */
551794a251fdSmrgint i;
551894a251fdSmrg_ACEOF
551994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
552094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
552194a251fdSmrgelse
552294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
552394a251fdSmrgfi
552494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
552594a251fdSmrgfi
552694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
552794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
552894a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
552994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
553094a251fdSmrgfi
553194a251fdSmrg
553294a251fdSmrgfound="no"
553394a251fdSmrg
553494a251fdSmrg	if test $found = "no" ; then
553594a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
553694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
553794a251fdSmrg		fi
553894a251fdSmrg
553994a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
554094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
554194a251fdSmrg		fi
554294a251fdSmrg
554394a251fdSmrg		CFLAGS="$CFLAGS -Wold-style-definition"
554494a251fdSmrg
554594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
554694a251fdSmrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
554794a251fdSmrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
554894a251fdSmrg		if eval \${$cacheid+:} false; then :
554994a251fdSmrg  $as_echo_n "(cached) " >&6
555094a251fdSmrgelse
555194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
555294a251fdSmrg/* end confdefs.h.  */
555394a251fdSmrgint i;
555494a251fdSmrgint
555594a251fdSmrgmain ()
555694a251fdSmrg{
555794a251fdSmrg
555894a251fdSmrg  ;
555994a251fdSmrg  return 0;
556094a251fdSmrg}
556194a251fdSmrg_ACEOF
556294a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
556394a251fdSmrg  eval $cacheid=yes
556494a251fdSmrgelse
556594a251fdSmrg  eval $cacheid=no
556694a251fdSmrgfi
556794a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
556894a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
556994a251fdSmrgfi
557094a251fdSmrg
557194a251fdSmrg
557294a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
557394a251fdSmrg
557494a251fdSmrg		eval supported=\$$cacheid
557594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
557694a251fdSmrg$as_echo "$supported" >&6; }
557794a251fdSmrg		if test "$supported" = "yes" ; then
557894a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
557994a251fdSmrg			found="yes"
558094a251fdSmrg		fi
558194a251fdSmrg	fi
558294a251fdSmrg
558394a251fdSmrg
558494a251fdSmrg
558594a251fdSmrg
558694a251fdSmrg
558794a251fdSmrg
558894a251fdSmrg
558994a251fdSmrg
559094a251fdSmrg
559194a251fdSmrg
559294a251fdSmrg
559394a251fdSmrg
559494a251fdSmrg
559594a251fdSmrg
559694a251fdSmrg
559794a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
559894a251fdSmrg
559994a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
560094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
560194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
560294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
560394a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
560494a251fdSmrg  $as_echo_n "(cached) " >&6
560594a251fdSmrgelse
560694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
560794a251fdSmrg/* end confdefs.h.  */
560894a251fdSmrgint i;
560994a251fdSmrg_ACEOF
561094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
561194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
561294a251fdSmrgelse
561394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
561494a251fdSmrgfi
561594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
561694a251fdSmrgfi
561794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
561894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
561994a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
562094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
562194a251fdSmrgfi
562294a251fdSmrg
562394a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
562494a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
562594a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
562694a251fdSmrg	fi
562794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
562894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
562994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
563094a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
563194a251fdSmrg  $as_echo_n "(cached) " >&6
563294a251fdSmrgelse
563394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
563494a251fdSmrg/* end confdefs.h.  */
563594a251fdSmrgint i;
563694a251fdSmrg_ACEOF
563794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
563894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
563994a251fdSmrgelse
564094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
564194a251fdSmrgfi
564294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
564394a251fdSmrgfi
564494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
564594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
564694a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
564794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
564894a251fdSmrgfi
564994a251fdSmrg
565094a251fdSmrgfound="no"
565194a251fdSmrg
565294a251fdSmrg	if test $found = "no" ; then
565394a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
565494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
565594a251fdSmrg		fi
565694a251fdSmrg
565794a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
565894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
565994a251fdSmrg		fi
566094a251fdSmrg
566194a251fdSmrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
566294a251fdSmrg
566394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
566494a251fdSmrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
566594a251fdSmrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
566694a251fdSmrg		if eval \${$cacheid+:} false; then :
566794a251fdSmrg  $as_echo_n "(cached) " >&6
566894a251fdSmrgelse
566994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
567094a251fdSmrg/* end confdefs.h.  */
567194a251fdSmrgint i;
567294a251fdSmrgint
567394a251fdSmrgmain ()
567494a251fdSmrg{
567594a251fdSmrg
567694a251fdSmrg  ;
567794a251fdSmrg  return 0;
567894a251fdSmrg}
567994a251fdSmrg_ACEOF
568094a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
568194a251fdSmrg  eval $cacheid=yes
568294a251fdSmrgelse
568394a251fdSmrg  eval $cacheid=no
568494a251fdSmrgfi
568594a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
568694a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
568794a251fdSmrgfi
568894a251fdSmrg
568994a251fdSmrg
569094a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
569194a251fdSmrg
569294a251fdSmrg		eval supported=\$$cacheid
569394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
569494a251fdSmrg$as_echo "$supported" >&6; }
569594a251fdSmrg		if test "$supported" = "yes" ; then
569694a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
569794a251fdSmrg			found="yes"
569894a251fdSmrg		fi
569994a251fdSmrg	fi
570094a251fdSmrg
570194a251fdSmrg
570294a251fdSmrg
570394a251fdSmrg
570494a251fdSmrg
570594a251fdSmrg# This chunk adds additional warnings that could catch undesired effects.
570694a251fdSmrg
570794a251fdSmrg
570894a251fdSmrg
570994a251fdSmrg
571094a251fdSmrg
571194a251fdSmrg
571294a251fdSmrg
571394a251fdSmrg
571494a251fdSmrg
571594a251fdSmrg
571694a251fdSmrg
571794a251fdSmrg
571894a251fdSmrg
571994a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
572094a251fdSmrg
572194a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
572294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
572394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
572494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
572594a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
572694a251fdSmrg  $as_echo_n "(cached) " >&6
572794a251fdSmrgelse
572894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
572994a251fdSmrg/* end confdefs.h.  */
573094a251fdSmrgint i;
573194a251fdSmrg_ACEOF
573294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
573394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
573494a251fdSmrgelse
573594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
573694a251fdSmrgfi
573794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
573894a251fdSmrgfi
573994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
574094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
574194a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
574294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
574394a251fdSmrgfi
574494a251fdSmrg
574594a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
574694a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
574794a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
574894a251fdSmrg	fi
574994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
575094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
575194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
575294a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
575394a251fdSmrg  $as_echo_n "(cached) " >&6
575494a251fdSmrgelse
575594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
575694a251fdSmrg/* end confdefs.h.  */
575794a251fdSmrgint i;
575894a251fdSmrg_ACEOF
575994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
576094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
576194a251fdSmrgelse
576294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
576394a251fdSmrgfi
576494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
576594a251fdSmrgfi
576694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
576794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
576894a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
576994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
577094a251fdSmrgfi
577194a251fdSmrg
577294a251fdSmrgfound="no"
577394a251fdSmrg
577494a251fdSmrg	if test $found = "no" ; then
577594a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
577694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
577794a251fdSmrg		fi
577894a251fdSmrg
577994a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
578094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
578194a251fdSmrg		fi
578294a251fdSmrg
578394a251fdSmrg		CFLAGS="$CFLAGS -Wunused"
578494a251fdSmrg
578594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
578694a251fdSmrg$as_echo_n "checking if $CC supports -Wunused... " >&6; }
578794a251fdSmrg		cacheid=xorg_cv_cc_flag__Wunused
578894a251fdSmrg		if eval \${$cacheid+:} false; then :
578994a251fdSmrg  $as_echo_n "(cached) " >&6
579094a251fdSmrgelse
579194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
579294a251fdSmrg/* end confdefs.h.  */
579394a251fdSmrgint i;
579494a251fdSmrgint
579594a251fdSmrgmain ()
579694a251fdSmrg{
579794a251fdSmrg
579894a251fdSmrg  ;
579994a251fdSmrg  return 0;
580094a251fdSmrg}
580194a251fdSmrg_ACEOF
580294a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
580394a251fdSmrg  eval $cacheid=yes
580494a251fdSmrgelse
580594a251fdSmrg  eval $cacheid=no
580694a251fdSmrgfi
580794a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
580894a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
580994a251fdSmrgfi
581094a251fdSmrg
581194a251fdSmrg
581294a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
581394a251fdSmrg
581494a251fdSmrg		eval supported=\$$cacheid
581594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
581694a251fdSmrg$as_echo "$supported" >&6; }
581794a251fdSmrg		if test "$supported" = "yes" ; then
581894a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
581994a251fdSmrg			found="yes"
582094a251fdSmrg		fi
582194a251fdSmrg	fi
582294a251fdSmrg
582394a251fdSmrg
582494a251fdSmrg
582594a251fdSmrg
582694a251fdSmrg
582794a251fdSmrg
582894a251fdSmrg
582994a251fdSmrg
583094a251fdSmrg
583194a251fdSmrg
583294a251fdSmrg
583394a251fdSmrg
583494a251fdSmrg
583594a251fdSmrg
583694a251fdSmrg
583794a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
583894a251fdSmrg
583994a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
584094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
584194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
584294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
584394a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
584494a251fdSmrg  $as_echo_n "(cached) " >&6
584594a251fdSmrgelse
584694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
584794a251fdSmrg/* end confdefs.h.  */
584894a251fdSmrgint i;
584994a251fdSmrg_ACEOF
585094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
585194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
585294a251fdSmrgelse
585394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
585494a251fdSmrgfi
585594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
585694a251fdSmrgfi
585794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
585894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
585994a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
586094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
586194a251fdSmrgfi
586294a251fdSmrg
586394a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
586494a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
586594a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
586694a251fdSmrg	fi
586794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
586894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
586994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
587094a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
587194a251fdSmrg  $as_echo_n "(cached) " >&6
587294a251fdSmrgelse
587394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
587494a251fdSmrg/* end confdefs.h.  */
587594a251fdSmrgint i;
587694a251fdSmrg_ACEOF
587794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
587894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
587994a251fdSmrgelse
588094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
588194a251fdSmrgfi
588294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
588394a251fdSmrgfi
588494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
588594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
588694a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
588794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
588894a251fdSmrgfi
588994a251fdSmrg
589094a251fdSmrgfound="no"
589194a251fdSmrg
589294a251fdSmrg	if test $found = "no" ; then
589394a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
589494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
589594a251fdSmrg		fi
589694a251fdSmrg
589794a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
589894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
589994a251fdSmrg		fi
590094a251fdSmrg
590194a251fdSmrg		CFLAGS="$CFLAGS -Wuninitialized"
590294a251fdSmrg
590394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
590494a251fdSmrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
590594a251fdSmrg		cacheid=xorg_cv_cc_flag__Wuninitialized
590694a251fdSmrg		if eval \${$cacheid+:} false; then :
590794a251fdSmrg  $as_echo_n "(cached) " >&6
590894a251fdSmrgelse
590994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
591094a251fdSmrg/* end confdefs.h.  */
591194a251fdSmrgint i;
591294a251fdSmrgint
591394a251fdSmrgmain ()
591494a251fdSmrg{
591594a251fdSmrg
591694a251fdSmrg  ;
591794a251fdSmrg  return 0;
591894a251fdSmrg}
591994a251fdSmrg_ACEOF
592094a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
592194a251fdSmrg  eval $cacheid=yes
592294a251fdSmrgelse
592394a251fdSmrg  eval $cacheid=no
592494a251fdSmrgfi
592594a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
592694a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
592794a251fdSmrgfi
592894a251fdSmrg
592994a251fdSmrg
593094a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
593194a251fdSmrg
593294a251fdSmrg		eval supported=\$$cacheid
593394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
593494a251fdSmrg$as_echo "$supported" >&6; }
593594a251fdSmrg		if test "$supported" = "yes" ; then
593694a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
593794a251fdSmrg			found="yes"
593894a251fdSmrg		fi
593994a251fdSmrg	fi
594094a251fdSmrg
594194a251fdSmrg
594294a251fdSmrg
594394a251fdSmrg
594494a251fdSmrg
594594a251fdSmrg
594694a251fdSmrg
594794a251fdSmrg
594894a251fdSmrg
594994a251fdSmrg
595094a251fdSmrg
595194a251fdSmrg
595294a251fdSmrg
595394a251fdSmrg
595494a251fdSmrg
595594a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
595694a251fdSmrg
595794a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
595894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
595994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
596094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
596194a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
596294a251fdSmrg  $as_echo_n "(cached) " >&6
596394a251fdSmrgelse
596494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
596594a251fdSmrg/* end confdefs.h.  */
596694a251fdSmrgint i;
596794a251fdSmrg_ACEOF
596894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
596994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
597094a251fdSmrgelse
597194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
597294a251fdSmrgfi
597394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
597494a251fdSmrgfi
597594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
597694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
597794a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
597894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
597994a251fdSmrgfi
598094a251fdSmrg
598194a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
598294a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
598394a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
598494a251fdSmrg	fi
598594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
598694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
598794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
598894a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
598994a251fdSmrg  $as_echo_n "(cached) " >&6
599094a251fdSmrgelse
599194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
599294a251fdSmrg/* end confdefs.h.  */
599394a251fdSmrgint i;
599494a251fdSmrg_ACEOF
599594a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
599694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
599794a251fdSmrgelse
599894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
599994a251fdSmrgfi
600094a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
600194a251fdSmrgfi
600294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
600394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
600494a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
600594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
600694a251fdSmrgfi
600794a251fdSmrg
600894a251fdSmrgfound="no"
600994a251fdSmrg
601094a251fdSmrg	if test $found = "no" ; then
601194a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
601294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
601394a251fdSmrg		fi
601494a251fdSmrg
601594a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
601694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
601794a251fdSmrg		fi
601894a251fdSmrg
601994a251fdSmrg		CFLAGS="$CFLAGS -Wshadow"
602094a251fdSmrg
602194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
602294a251fdSmrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
602394a251fdSmrg		cacheid=xorg_cv_cc_flag__Wshadow
602494a251fdSmrg		if eval \${$cacheid+:} false; then :
602594a251fdSmrg  $as_echo_n "(cached) " >&6
602694a251fdSmrgelse
602794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
602894a251fdSmrg/* end confdefs.h.  */
602994a251fdSmrgint i;
603094a251fdSmrgint
603194a251fdSmrgmain ()
603294a251fdSmrg{
603394a251fdSmrg
603494a251fdSmrg  ;
603594a251fdSmrg  return 0;
603694a251fdSmrg}
603794a251fdSmrg_ACEOF
603894a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
603994a251fdSmrg  eval $cacheid=yes
604094a251fdSmrgelse
604194a251fdSmrg  eval $cacheid=no
604294a251fdSmrgfi
604394a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
604494a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
604594a251fdSmrgfi
604694a251fdSmrg
604794a251fdSmrg
604894a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
604994a251fdSmrg
605094a251fdSmrg		eval supported=\$$cacheid
605194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
605294a251fdSmrg$as_echo "$supported" >&6; }
605394a251fdSmrg		if test "$supported" = "yes" ; then
605494a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
605594a251fdSmrg			found="yes"
605694a251fdSmrg		fi
605794a251fdSmrg	fi
605894a251fdSmrg
605994a251fdSmrg
606094a251fdSmrg
606194a251fdSmrg
606294a251fdSmrg
606394a251fdSmrg
606494a251fdSmrg
606594a251fdSmrg
606694a251fdSmrg
606794a251fdSmrg
606894a251fdSmrg
606994a251fdSmrg
607094a251fdSmrg
607194a251fdSmrg
607294a251fdSmrg
607394a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
607494a251fdSmrg
607594a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
607694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
607794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
607894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
607994a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
608094a251fdSmrg  $as_echo_n "(cached) " >&6
608194a251fdSmrgelse
608294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
608394a251fdSmrg/* end confdefs.h.  */
608494a251fdSmrgint i;
608594a251fdSmrg_ACEOF
608694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
608794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
608894a251fdSmrgelse
608994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
609094a251fdSmrgfi
609194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
609294a251fdSmrgfi
609394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
609494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
609594a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
609694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
609794a251fdSmrgfi
609894a251fdSmrg
609994a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
610094a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
610194a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
610294a251fdSmrg	fi
610394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
610494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
610594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
610694a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
610794a251fdSmrg  $as_echo_n "(cached) " >&6
610894a251fdSmrgelse
610994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
611094a251fdSmrg/* end confdefs.h.  */
611194a251fdSmrgint i;
611294a251fdSmrg_ACEOF
611394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
611494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
611594a251fdSmrgelse
611694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
611794a251fdSmrgfi
611894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
611994a251fdSmrgfi
612094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
612194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
612294a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
612394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
612494a251fdSmrgfi
612594a251fdSmrg
612694a251fdSmrgfound="no"
612794a251fdSmrg
612894a251fdSmrg	if test $found = "no" ; then
612994a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
613094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
613194a251fdSmrg		fi
613294a251fdSmrg
613394a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
613494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
613594a251fdSmrg		fi
613694a251fdSmrg
613794a251fdSmrg		CFLAGS="$CFLAGS -Wcast-qual"
613894a251fdSmrg
613994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
614094a251fdSmrg$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
614194a251fdSmrg		cacheid=xorg_cv_cc_flag__Wcast_qual
614294a251fdSmrg		if eval \${$cacheid+:} false; then :
614394a251fdSmrg  $as_echo_n "(cached) " >&6
614494a251fdSmrgelse
614594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
614694a251fdSmrg/* end confdefs.h.  */
614794a251fdSmrgint i;
614894a251fdSmrgint
614994a251fdSmrgmain ()
615094a251fdSmrg{
615194a251fdSmrg
615294a251fdSmrg  ;
615394a251fdSmrg  return 0;
615494a251fdSmrg}
615594a251fdSmrg_ACEOF
615694a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
615794a251fdSmrg  eval $cacheid=yes
615894a251fdSmrgelse
615994a251fdSmrg  eval $cacheid=no
616094a251fdSmrgfi
616194a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
616294a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
616394a251fdSmrgfi
616494a251fdSmrg
616594a251fdSmrg
616694a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
616794a251fdSmrg
616894a251fdSmrg		eval supported=\$$cacheid
616994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
617094a251fdSmrg$as_echo "$supported" >&6; }
617194a251fdSmrg		if test "$supported" = "yes" ; then
617294a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
617394a251fdSmrg			found="yes"
617494a251fdSmrg		fi
617594a251fdSmrg	fi
617694a251fdSmrg
617794a251fdSmrg
617894a251fdSmrg
617994a251fdSmrg
618094a251fdSmrg
618194a251fdSmrg
618294a251fdSmrg
618394a251fdSmrg
618494a251fdSmrg
618594a251fdSmrg
618694a251fdSmrg
618794a251fdSmrg
618894a251fdSmrg
618994a251fdSmrg
619094a251fdSmrg
619194a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
619294a251fdSmrg
619394a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
619494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
619594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
619694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
619794a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
619894a251fdSmrg  $as_echo_n "(cached) " >&6
619994a251fdSmrgelse
620094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
620194a251fdSmrg/* end confdefs.h.  */
620294a251fdSmrgint i;
620394a251fdSmrg_ACEOF
620494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
620594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
620694a251fdSmrgelse
620794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
620894a251fdSmrgfi
620994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
621094a251fdSmrgfi
621194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
621294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
621394a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
621494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
621594a251fdSmrgfi
621694a251fdSmrg
621794a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
621894a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
621994a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
622094a251fdSmrg	fi
622194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
622294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
622394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
622494a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
622594a251fdSmrg  $as_echo_n "(cached) " >&6
622694a251fdSmrgelse
622794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622894a251fdSmrg/* end confdefs.h.  */
622994a251fdSmrgint i;
623094a251fdSmrg_ACEOF
623194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
623294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
623394a251fdSmrgelse
623494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
623594a251fdSmrgfi
623694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
623794a251fdSmrgfi
623894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
623994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
624094a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
624194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
624294a251fdSmrgfi
624394a251fdSmrg
624494a251fdSmrgfound="no"
624594a251fdSmrg
624694a251fdSmrg	if test $found = "no" ; then
624794a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
624894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
624994a251fdSmrg		fi
625094a251fdSmrg
625194a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
625294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
625394a251fdSmrg		fi
625494a251fdSmrg
625594a251fdSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
625694a251fdSmrg
625794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
625894a251fdSmrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
625994a251fdSmrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
626094a251fdSmrg		if eval \${$cacheid+:} false; then :
626194a251fdSmrg  $as_echo_n "(cached) " >&6
626294a251fdSmrgelse
626394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
626494a251fdSmrg/* end confdefs.h.  */
626594a251fdSmrgint i;
626694a251fdSmrgint
626794a251fdSmrgmain ()
626894a251fdSmrg{
626994a251fdSmrg
627094a251fdSmrg  ;
627194a251fdSmrg  return 0;
627294a251fdSmrg}
627394a251fdSmrg_ACEOF
627494a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
627594a251fdSmrg  eval $cacheid=yes
627694a251fdSmrgelse
627794a251fdSmrg  eval $cacheid=no
627894a251fdSmrgfi
627994a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
628094a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
628194a251fdSmrgfi
628294a251fdSmrg
628394a251fdSmrg
628494a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
628594a251fdSmrg
628694a251fdSmrg		eval supported=\$$cacheid
628794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
628894a251fdSmrg$as_echo "$supported" >&6; }
628994a251fdSmrg		if test "$supported" = "yes" ; then
629094a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
629194a251fdSmrg			found="yes"
629294a251fdSmrg		fi
629394a251fdSmrg	fi
629494a251fdSmrg
629594a251fdSmrg
629694a251fdSmrg
629794a251fdSmrg
629894a251fdSmrg
629994a251fdSmrg
630094a251fdSmrg
630194a251fdSmrg
630294a251fdSmrg
630394a251fdSmrg
630494a251fdSmrg
630594a251fdSmrg
630694a251fdSmrg
630794a251fdSmrg
630894a251fdSmrg
630994a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
631094a251fdSmrg
631194a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
631294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
631394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
631494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
631594a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
631694a251fdSmrg  $as_echo_n "(cached) " >&6
631794a251fdSmrgelse
631894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
631994a251fdSmrg/* end confdefs.h.  */
632094a251fdSmrgint i;
632194a251fdSmrg_ACEOF
632294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
632394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
632494a251fdSmrgelse
632594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
632694a251fdSmrgfi
632794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
632894a251fdSmrgfi
632994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
633094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
633194a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
633294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
633394a251fdSmrgfi
633494a251fdSmrg
633594a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
633694a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
633794a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
633894a251fdSmrg	fi
633994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
634094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
634194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
634294a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
634394a251fdSmrg  $as_echo_n "(cached) " >&6
634494a251fdSmrgelse
634594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
634694a251fdSmrg/* end confdefs.h.  */
634794a251fdSmrgint i;
634894a251fdSmrg_ACEOF
634994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
635094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
635194a251fdSmrgelse
635294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
635394a251fdSmrgfi
635494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
635594a251fdSmrgfi
635694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
635794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
635894a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
635994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
636094a251fdSmrgfi
636194a251fdSmrg
636294a251fdSmrgfound="no"
636394a251fdSmrg
636494a251fdSmrg	if test $found = "no" ; then
636594a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
636694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
636794a251fdSmrg		fi
636894a251fdSmrg
636994a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
637094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
637194a251fdSmrg		fi
637294a251fdSmrg
637394a251fdSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
637494a251fdSmrg
637594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
637694a251fdSmrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
637794a251fdSmrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
637894a251fdSmrg		if eval \${$cacheid+:} false; then :
637994a251fdSmrg  $as_echo_n "(cached) " >&6
638094a251fdSmrgelse
638194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
638294a251fdSmrg/* end confdefs.h.  */
638394a251fdSmrgint i;
638494a251fdSmrgint
638594a251fdSmrgmain ()
638694a251fdSmrg{
638794a251fdSmrg
638894a251fdSmrg  ;
638994a251fdSmrg  return 0;
639094a251fdSmrg}
639194a251fdSmrg_ACEOF
639294a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
639394a251fdSmrg  eval $cacheid=yes
639494a251fdSmrgelse
639594a251fdSmrg  eval $cacheid=no
639694a251fdSmrgfi
639794a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
639894a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
639994a251fdSmrgfi
640094a251fdSmrg
640194a251fdSmrg
640294a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
640394a251fdSmrg
640494a251fdSmrg		eval supported=\$$cacheid
640594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
640694a251fdSmrg$as_echo "$supported" >&6; }
640794a251fdSmrg		if test "$supported" = "yes" ; then
640894a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
640994a251fdSmrg			found="yes"
641094a251fdSmrg		fi
641194a251fdSmrg	fi
641294a251fdSmrg
641394a251fdSmrg
641494a251fdSmrg
641594a251fdSmrg
641694a251fdSmrg
641794a251fdSmrg
641894a251fdSmrg
641994a251fdSmrg
642094a251fdSmrg
642194a251fdSmrg
642294a251fdSmrg
642394a251fdSmrg
642494a251fdSmrg
642594a251fdSmrg
642694a251fdSmrg
642794a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
642894a251fdSmrg
642994a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
643094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
643194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
643294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
643394a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
643494a251fdSmrg  $as_echo_n "(cached) " >&6
643594a251fdSmrgelse
643694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
643794a251fdSmrg/* end confdefs.h.  */
643894a251fdSmrgint i;
643994a251fdSmrg_ACEOF
644094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
644194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
644294a251fdSmrgelse
644394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
644494a251fdSmrgfi
644594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
644694a251fdSmrgfi
644794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
644894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
644994a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
645094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
645194a251fdSmrgfi
645294a251fdSmrg
645394a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
645494a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
645594a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
645694a251fdSmrg	fi
645794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
645894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
645994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
646094a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
646194a251fdSmrg  $as_echo_n "(cached) " >&6
646294a251fdSmrgelse
646394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
646494a251fdSmrg/* end confdefs.h.  */
646594a251fdSmrgint i;
646694a251fdSmrg_ACEOF
646794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
646894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
646994a251fdSmrgelse
647094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
647194a251fdSmrgfi
647294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
647394a251fdSmrgfi
647494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
647594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
647694a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
647794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
647894a251fdSmrgfi
647994a251fdSmrg
648094a251fdSmrgfound="no"
648194a251fdSmrg
648294a251fdSmrg	if test $found = "no" ; then
648394a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
648494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
648594a251fdSmrg		fi
648694a251fdSmrg
648794a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
648894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
648994a251fdSmrg		fi
649094a251fdSmrg
649194a251fdSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
649294a251fdSmrg
649394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
649494a251fdSmrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
649594a251fdSmrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
649694a251fdSmrg		if eval \${$cacheid+:} false; then :
649794a251fdSmrg  $as_echo_n "(cached) " >&6
649894a251fdSmrgelse
649994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
650094a251fdSmrg/* end confdefs.h.  */
650194a251fdSmrgint i;
650294a251fdSmrgint
650394a251fdSmrgmain ()
650494a251fdSmrg{
650594a251fdSmrg
650694a251fdSmrg  ;
650794a251fdSmrg  return 0;
650894a251fdSmrg}
650994a251fdSmrg_ACEOF
651094a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
651194a251fdSmrg  eval $cacheid=yes
651294a251fdSmrgelse
651394a251fdSmrg  eval $cacheid=no
651494a251fdSmrgfi
651594a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
651694a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
651794a251fdSmrgfi
651894a251fdSmrg
651994a251fdSmrg
652094a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
652194a251fdSmrg
652294a251fdSmrg		eval supported=\$$cacheid
652394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
652494a251fdSmrg$as_echo "$supported" >&6; }
652594a251fdSmrg		if test "$supported" = "yes" ; then
652694a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
652794a251fdSmrg			found="yes"
652894a251fdSmrg		fi
652994a251fdSmrg	fi
653094a251fdSmrg
653194a251fdSmrg
653294a251fdSmrg
653394a251fdSmrg# These are currently disabled because they are noisy.  They will be enabled
653494a251fdSmrg# in the future once the codebase is sufficiently modernized to silence
653594a251fdSmrg# them.  For now, I don't want them to drown out the other warnings.
653694a251fdSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
653794a251fdSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
653894a251fdSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
653994a251fdSmrg
654094a251fdSmrg# Turn some warnings into errors, so we don't accidently get successful builds
654194a251fdSmrg# when there are problems that should be fixed.
654294a251fdSmrg
654394a251fdSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
654494a251fdSmrg
654594a251fdSmrg
654694a251fdSmrg
654794a251fdSmrg
654894a251fdSmrg
654994a251fdSmrg
655094a251fdSmrg
655194a251fdSmrg
655294a251fdSmrg
655394a251fdSmrg
655494a251fdSmrg
655594a251fdSmrg
655694a251fdSmrg
655794a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
655894a251fdSmrg
655994a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
656094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
656194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
656294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
656394a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
656494a251fdSmrg  $as_echo_n "(cached) " >&6
656594a251fdSmrgelse
656694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
656794a251fdSmrg/* end confdefs.h.  */
656894a251fdSmrgint i;
656994a251fdSmrg_ACEOF
657094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
657194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
657294a251fdSmrgelse
657394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
657494a251fdSmrgfi
657594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
657694a251fdSmrgfi
657794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
657894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
657994a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
658094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
658194a251fdSmrgfi
658294a251fdSmrg
658394a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
658494a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
658594a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
658694a251fdSmrg	fi
658794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
658894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
658994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
659094a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
659194a251fdSmrg  $as_echo_n "(cached) " >&6
659294a251fdSmrgelse
659394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
659494a251fdSmrg/* end confdefs.h.  */
659594a251fdSmrgint i;
659694a251fdSmrg_ACEOF
659794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
659894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
659994a251fdSmrgelse
660094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
660194a251fdSmrgfi
660294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
660394a251fdSmrgfi
660494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
660594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
660694a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
660794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
660894a251fdSmrgfi
660994a251fdSmrg
661094a251fdSmrgfound="no"
661194a251fdSmrg
661294a251fdSmrg	if test $found = "no" ; then
661394a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
661494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
661594a251fdSmrg		fi
661694a251fdSmrg
661794a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
661894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
661994a251fdSmrg		fi
662094a251fdSmrg
662194a251fdSmrg		CFLAGS="$CFLAGS -Werror=implicit"
662294a251fdSmrg
662394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
662494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
662594a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
662694a251fdSmrg		if eval \${$cacheid+:} false; then :
662794a251fdSmrg  $as_echo_n "(cached) " >&6
662894a251fdSmrgelse
662994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
663094a251fdSmrg/* end confdefs.h.  */
663194a251fdSmrgint i;
663294a251fdSmrgint
663394a251fdSmrgmain ()
663494a251fdSmrg{
663594a251fdSmrg
663694a251fdSmrg  ;
663794a251fdSmrg  return 0;
663894a251fdSmrg}
663994a251fdSmrg_ACEOF
664094a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
664194a251fdSmrg  eval $cacheid=yes
664294a251fdSmrgelse
664394a251fdSmrg  eval $cacheid=no
664494a251fdSmrgfi
664594a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
664694a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
664794a251fdSmrgfi
664894a251fdSmrg
664994a251fdSmrg
665094a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
665194a251fdSmrg
665294a251fdSmrg		eval supported=\$$cacheid
665394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
665494a251fdSmrg$as_echo "$supported" >&6; }
665594a251fdSmrg		if test "$supported" = "yes" ; then
665694a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
665794a251fdSmrg			found="yes"
665894a251fdSmrg		fi
665994a251fdSmrg	fi
666094a251fdSmrg
666194a251fdSmrg	if test $found = "no" ; then
666294a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
666394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
666494a251fdSmrg		fi
666594a251fdSmrg
666694a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
666794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
666894a251fdSmrg		fi
666994a251fdSmrg
667094a251fdSmrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
667194a251fdSmrg
667294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
667394a251fdSmrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
667494a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
667594a251fdSmrg		if eval \${$cacheid+:} false; then :
667694a251fdSmrg  $as_echo_n "(cached) " >&6
667794a251fdSmrgelse
667894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
667994a251fdSmrg/* end confdefs.h.  */
668094a251fdSmrgint i;
668194a251fdSmrgint
668294a251fdSmrgmain ()
668394a251fdSmrg{
668494a251fdSmrg
668594a251fdSmrg  ;
668694a251fdSmrg  return 0;
668794a251fdSmrg}
668894a251fdSmrg_ACEOF
668994a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
669094a251fdSmrg  eval $cacheid=yes
669194a251fdSmrgelse
669294a251fdSmrg  eval $cacheid=no
669394a251fdSmrgfi
669494a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
669594a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
669694a251fdSmrgfi
669794a251fdSmrg
669894a251fdSmrg
669994a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
670094a251fdSmrg
670194a251fdSmrg		eval supported=\$$cacheid
670294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
670394a251fdSmrg$as_echo "$supported" >&6; }
670494a251fdSmrg		if test "$supported" = "yes" ; then
670594a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
670694a251fdSmrg			found="yes"
670794a251fdSmrg		fi
670894a251fdSmrg	fi
670994a251fdSmrg
671094a251fdSmrg
671194a251fdSmrg
671294a251fdSmrg
671394a251fdSmrg
671494a251fdSmrg
671594a251fdSmrg
671694a251fdSmrg
671794a251fdSmrg
671894a251fdSmrg
671994a251fdSmrg
672094a251fdSmrg
672194a251fdSmrg
672294a251fdSmrg
672394a251fdSmrg
672494a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
672594a251fdSmrg
672694a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
672794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
672894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
672994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
673094a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
673194a251fdSmrg  $as_echo_n "(cached) " >&6
673294a251fdSmrgelse
673394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
673494a251fdSmrg/* end confdefs.h.  */
673594a251fdSmrgint i;
673694a251fdSmrg_ACEOF
673794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
673894a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
673994a251fdSmrgelse
674094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
674194a251fdSmrgfi
674294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
674394a251fdSmrgfi
674494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
674594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
674694a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
674794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
674894a251fdSmrgfi
674994a251fdSmrg
675094a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
675194a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
675294a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
675394a251fdSmrg	fi
675494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
675594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
675694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
675794a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
675894a251fdSmrg  $as_echo_n "(cached) " >&6
675994a251fdSmrgelse
676094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
676194a251fdSmrg/* end confdefs.h.  */
676294a251fdSmrgint i;
676394a251fdSmrg_ACEOF
676494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
676594a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
676694a251fdSmrgelse
676794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
676894a251fdSmrgfi
676994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
677094a251fdSmrgfi
677194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
677294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
677394a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
677494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
677594a251fdSmrgfi
677694a251fdSmrg
677794a251fdSmrgfound="no"
677894a251fdSmrg
677994a251fdSmrg	if test $found = "no" ; then
678094a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
678194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
678294a251fdSmrg		fi
678394a251fdSmrg
678494a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
678594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
678694a251fdSmrg		fi
678794a251fdSmrg
678894a251fdSmrg		CFLAGS="$CFLAGS -Werror=nonnull"
678994a251fdSmrg
679094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
679194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
679294a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
679394a251fdSmrg		if eval \${$cacheid+:} false; then :
679494a251fdSmrg  $as_echo_n "(cached) " >&6
679594a251fdSmrgelse
679694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
679794a251fdSmrg/* end confdefs.h.  */
679894a251fdSmrgint i;
679994a251fdSmrgint
680094a251fdSmrgmain ()
680194a251fdSmrg{
680294a251fdSmrg
680394a251fdSmrg  ;
680494a251fdSmrg  return 0;
680594a251fdSmrg}
680694a251fdSmrg_ACEOF
680794a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
680894a251fdSmrg  eval $cacheid=yes
680994a251fdSmrgelse
681094a251fdSmrg  eval $cacheid=no
681194a251fdSmrgfi
681294a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
681394a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
681494a251fdSmrgfi
681594a251fdSmrg
681694a251fdSmrg
681794a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
681894a251fdSmrg
681994a251fdSmrg		eval supported=\$$cacheid
682094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
682194a251fdSmrg$as_echo "$supported" >&6; }
682294a251fdSmrg		if test "$supported" = "yes" ; then
682394a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
682494a251fdSmrg			found="yes"
682594a251fdSmrg		fi
682694a251fdSmrg	fi
682794a251fdSmrg
682894a251fdSmrg
682994a251fdSmrg
683094a251fdSmrg
683194a251fdSmrg
683294a251fdSmrg
683394a251fdSmrg
683494a251fdSmrg
683594a251fdSmrg
683694a251fdSmrg
683794a251fdSmrg
683894a251fdSmrg
683994a251fdSmrg
684094a251fdSmrg
684194a251fdSmrg
684294a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
684394a251fdSmrg
684494a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
684594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
684694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
684794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
684894a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
684994a251fdSmrg  $as_echo_n "(cached) " >&6
685094a251fdSmrgelse
685194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
685294a251fdSmrg/* end confdefs.h.  */
685394a251fdSmrgint i;
685494a251fdSmrg_ACEOF
685594a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
685694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
685794a251fdSmrgelse
685894a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
685994a251fdSmrgfi
686094a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
686194a251fdSmrgfi
686294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
686394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
686494a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
686594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
686694a251fdSmrgfi
686794a251fdSmrg
686894a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
686994a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
687094a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
687194a251fdSmrg	fi
687294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
687394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
687494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
687594a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
687694a251fdSmrg  $as_echo_n "(cached) " >&6
687794a251fdSmrgelse
687894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
687994a251fdSmrg/* end confdefs.h.  */
688094a251fdSmrgint i;
688194a251fdSmrg_ACEOF
688294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
688394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
688494a251fdSmrgelse
688594a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
688694a251fdSmrgfi
688794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
688894a251fdSmrgfi
688994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
689094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
689194a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
689294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
689394a251fdSmrgfi
689494a251fdSmrg
689594a251fdSmrgfound="no"
689694a251fdSmrg
689794a251fdSmrg	if test $found = "no" ; then
689894a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
689994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
690094a251fdSmrg		fi
690194a251fdSmrg
690294a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
690394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
690494a251fdSmrg		fi
690594a251fdSmrg
690694a251fdSmrg		CFLAGS="$CFLAGS -Werror=init-self"
690794a251fdSmrg
690894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
690994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
691094a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
691194a251fdSmrg		if eval \${$cacheid+:} false; then :
691294a251fdSmrg  $as_echo_n "(cached) " >&6
691394a251fdSmrgelse
691494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
691594a251fdSmrg/* end confdefs.h.  */
691694a251fdSmrgint i;
691794a251fdSmrgint
691894a251fdSmrgmain ()
691994a251fdSmrg{
692094a251fdSmrg
692194a251fdSmrg  ;
692294a251fdSmrg  return 0;
692394a251fdSmrg}
692494a251fdSmrg_ACEOF
692594a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
692694a251fdSmrg  eval $cacheid=yes
692794a251fdSmrgelse
692894a251fdSmrg  eval $cacheid=no
692994a251fdSmrgfi
693094a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
693194a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
693294a251fdSmrgfi
693394a251fdSmrg
693494a251fdSmrg
693594a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
693694a251fdSmrg
693794a251fdSmrg		eval supported=\$$cacheid
693894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
693994a251fdSmrg$as_echo "$supported" >&6; }
694094a251fdSmrg		if test "$supported" = "yes" ; then
694194a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
694294a251fdSmrg			found="yes"
694394a251fdSmrg		fi
694494a251fdSmrg	fi
694594a251fdSmrg
694694a251fdSmrg
694794a251fdSmrg
694894a251fdSmrg
694994a251fdSmrg
695094a251fdSmrg
695194a251fdSmrg
695294a251fdSmrg
695394a251fdSmrg
695494a251fdSmrg
695594a251fdSmrg
695694a251fdSmrg
695794a251fdSmrg
695894a251fdSmrg
695994a251fdSmrg
696094a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
696194a251fdSmrg
696294a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
696394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
696494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
696594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
696694a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
696794a251fdSmrg  $as_echo_n "(cached) " >&6
696894a251fdSmrgelse
696994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
697094a251fdSmrg/* end confdefs.h.  */
697194a251fdSmrgint i;
697294a251fdSmrg_ACEOF
697394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
697494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
697594a251fdSmrgelse
697694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
697794a251fdSmrgfi
697894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
697994a251fdSmrgfi
698094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
698194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
698294a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
698394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
698494a251fdSmrgfi
698594a251fdSmrg
698694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
698794a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
698894a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
698994a251fdSmrg	fi
699094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
699194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
699294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
699394a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
699494a251fdSmrg  $as_echo_n "(cached) " >&6
699594a251fdSmrgelse
699694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
699794a251fdSmrg/* end confdefs.h.  */
699894a251fdSmrgint i;
699994a251fdSmrg_ACEOF
700094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
700194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
700294a251fdSmrgelse
700394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
700494a251fdSmrgfi
700594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
700694a251fdSmrgfi
700794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
700894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
700994a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
701094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
701194a251fdSmrgfi
701294a251fdSmrg
701394a251fdSmrgfound="no"
701494a251fdSmrg
701594a251fdSmrg	if test $found = "no" ; then
701694a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
701794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
701894a251fdSmrg		fi
701994a251fdSmrg
702094a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
702194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
702294a251fdSmrg		fi
702394a251fdSmrg
702494a251fdSmrg		CFLAGS="$CFLAGS -Werror=main"
702594a251fdSmrg
702694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
702794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
702894a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
702994a251fdSmrg		if eval \${$cacheid+:} false; then :
703094a251fdSmrg  $as_echo_n "(cached) " >&6
703194a251fdSmrgelse
703294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
703394a251fdSmrg/* end confdefs.h.  */
703494a251fdSmrgint i;
703594a251fdSmrgint
703694a251fdSmrgmain ()
703794a251fdSmrg{
703894a251fdSmrg
703994a251fdSmrg  ;
704094a251fdSmrg  return 0;
704194a251fdSmrg}
704294a251fdSmrg_ACEOF
704394a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
704494a251fdSmrg  eval $cacheid=yes
704594a251fdSmrgelse
704694a251fdSmrg  eval $cacheid=no
704794a251fdSmrgfi
704894a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
704994a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
705094a251fdSmrgfi
705194a251fdSmrg
705294a251fdSmrg
705394a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
705494a251fdSmrg
705594a251fdSmrg		eval supported=\$$cacheid
705694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
705794a251fdSmrg$as_echo "$supported" >&6; }
705894a251fdSmrg		if test "$supported" = "yes" ; then
705994a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
706094a251fdSmrg			found="yes"
706194a251fdSmrg		fi
706294a251fdSmrg	fi
706394a251fdSmrg
706494a251fdSmrg
706594a251fdSmrg
706694a251fdSmrg
706794a251fdSmrg
706894a251fdSmrg
706994a251fdSmrg
707094a251fdSmrg
707194a251fdSmrg
707294a251fdSmrg
707394a251fdSmrg
707494a251fdSmrg
707594a251fdSmrg
707694a251fdSmrg
707794a251fdSmrg
707894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
707994a251fdSmrg
708094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
708194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
708294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
708394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
708494a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
708594a251fdSmrg  $as_echo_n "(cached) " >&6
708694a251fdSmrgelse
708794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
708894a251fdSmrg/* end confdefs.h.  */
708994a251fdSmrgint i;
709094a251fdSmrg_ACEOF
709194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
709294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
709394a251fdSmrgelse
709494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
709594a251fdSmrgfi
709694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
709794a251fdSmrgfi
709894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
709994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
710094a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
710194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
710294a251fdSmrgfi
710394a251fdSmrg
710494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
710594a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
710694a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
710794a251fdSmrg	fi
710894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
710994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
711094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
711194a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
711294a251fdSmrg  $as_echo_n "(cached) " >&6
711394a251fdSmrgelse
711494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
711594a251fdSmrg/* end confdefs.h.  */
711694a251fdSmrgint i;
711794a251fdSmrg_ACEOF
711894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
711994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
712094a251fdSmrgelse
712194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
712294a251fdSmrgfi
712394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
712494a251fdSmrgfi
712594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
712694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
712794a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
712894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
712994a251fdSmrgfi
713094a251fdSmrg
713194a251fdSmrgfound="no"
713294a251fdSmrg
713394a251fdSmrg	if test $found = "no" ; then
713494a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
713594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
713694a251fdSmrg		fi
713794a251fdSmrg
713894a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
713994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
714094a251fdSmrg		fi
714194a251fdSmrg
714294a251fdSmrg		CFLAGS="$CFLAGS -Werror=missing-braces"
714394a251fdSmrg
714494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
714594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
714694a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
714794a251fdSmrg		if eval \${$cacheid+:} false; then :
714894a251fdSmrg  $as_echo_n "(cached) " >&6
714994a251fdSmrgelse
715094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
715194a251fdSmrg/* end confdefs.h.  */
715294a251fdSmrgint i;
715394a251fdSmrgint
715494a251fdSmrgmain ()
715594a251fdSmrg{
715694a251fdSmrg
715794a251fdSmrg  ;
715894a251fdSmrg  return 0;
715994a251fdSmrg}
716094a251fdSmrg_ACEOF
716194a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
716294a251fdSmrg  eval $cacheid=yes
716394a251fdSmrgelse
716494a251fdSmrg  eval $cacheid=no
716594a251fdSmrgfi
716694a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
716794a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
716894a251fdSmrgfi
716994a251fdSmrg
717094a251fdSmrg
717194a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
717294a251fdSmrg
717394a251fdSmrg		eval supported=\$$cacheid
717494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
717594a251fdSmrg$as_echo "$supported" >&6; }
717694a251fdSmrg		if test "$supported" = "yes" ; then
717794a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
717894a251fdSmrg			found="yes"
717994a251fdSmrg		fi
718094a251fdSmrg	fi
718194a251fdSmrg
718294a251fdSmrg
718394a251fdSmrg
718494a251fdSmrg
718594a251fdSmrg
718694a251fdSmrg
718794a251fdSmrg
718894a251fdSmrg
718994a251fdSmrg
719094a251fdSmrg
719194a251fdSmrg
719294a251fdSmrg
719394a251fdSmrg
719494a251fdSmrg
719594a251fdSmrg
719694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
719794a251fdSmrg
719894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
719994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
720094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
720194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
720294a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
720394a251fdSmrg  $as_echo_n "(cached) " >&6
720494a251fdSmrgelse
720594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
720694a251fdSmrg/* end confdefs.h.  */
720794a251fdSmrgint i;
720894a251fdSmrg_ACEOF
720994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
721094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
721194a251fdSmrgelse
721294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
721394a251fdSmrgfi
721494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
721594a251fdSmrgfi
721694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
721794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
721894a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
721994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
722094a251fdSmrgfi
722194a251fdSmrg
722294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
722394a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
722494a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
722594a251fdSmrg	fi
722694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
722794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
722894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
722994a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
723094a251fdSmrg  $as_echo_n "(cached) " >&6
723194a251fdSmrgelse
723294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
723394a251fdSmrg/* end confdefs.h.  */
723494a251fdSmrgint i;
723594a251fdSmrg_ACEOF
723694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
723794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
723894a251fdSmrgelse
723994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
724094a251fdSmrgfi
724194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
724294a251fdSmrgfi
724394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
724494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
724594a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
724694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
724794a251fdSmrgfi
724894a251fdSmrg
724994a251fdSmrgfound="no"
725094a251fdSmrg
725194a251fdSmrg	if test $found = "no" ; then
725294a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
725394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
725494a251fdSmrg		fi
725594a251fdSmrg
725694a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
725794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
725894a251fdSmrg		fi
725994a251fdSmrg
726094a251fdSmrg		CFLAGS="$CFLAGS -Werror=sequence-point"
726194a251fdSmrg
726294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
726394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
726494a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
726594a251fdSmrg		if eval \${$cacheid+:} false; then :
726694a251fdSmrg  $as_echo_n "(cached) " >&6
726794a251fdSmrgelse
726894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
726994a251fdSmrg/* end confdefs.h.  */
727094a251fdSmrgint i;
727194a251fdSmrgint
727294a251fdSmrgmain ()
727394a251fdSmrg{
727494a251fdSmrg
727594a251fdSmrg  ;
727694a251fdSmrg  return 0;
727794a251fdSmrg}
727894a251fdSmrg_ACEOF
727994a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
728094a251fdSmrg  eval $cacheid=yes
728194a251fdSmrgelse
728294a251fdSmrg  eval $cacheid=no
728394a251fdSmrgfi
728494a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
728594a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
728694a251fdSmrgfi
728794a251fdSmrg
728894a251fdSmrg
728994a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
729094a251fdSmrg
729194a251fdSmrg		eval supported=\$$cacheid
729294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
729394a251fdSmrg$as_echo "$supported" >&6; }
729494a251fdSmrg		if test "$supported" = "yes" ; then
729594a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
729694a251fdSmrg			found="yes"
729794a251fdSmrg		fi
729894a251fdSmrg	fi
729994a251fdSmrg
730094a251fdSmrg
730194a251fdSmrg
730294a251fdSmrg
730394a251fdSmrg
730494a251fdSmrg
730594a251fdSmrg
730694a251fdSmrg
730794a251fdSmrg
730894a251fdSmrg
730994a251fdSmrg
731094a251fdSmrg
731194a251fdSmrg
731294a251fdSmrg
731394a251fdSmrg
731494a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
731594a251fdSmrg
731694a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
731794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
731894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
731994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
732094a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
732194a251fdSmrg  $as_echo_n "(cached) " >&6
732294a251fdSmrgelse
732394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
732494a251fdSmrg/* end confdefs.h.  */
732594a251fdSmrgint i;
732694a251fdSmrg_ACEOF
732794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
732894a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
732994a251fdSmrgelse
733094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
733194a251fdSmrgfi
733294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
733394a251fdSmrgfi
733494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
733594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
733694a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
733794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
733894a251fdSmrgfi
733994a251fdSmrg
734094a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
734194a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
734294a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
734394a251fdSmrg	fi
734494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
734594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
734694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
734794a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
734894a251fdSmrg  $as_echo_n "(cached) " >&6
734994a251fdSmrgelse
735094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
735194a251fdSmrg/* end confdefs.h.  */
735294a251fdSmrgint i;
735394a251fdSmrg_ACEOF
735494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
735594a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
735694a251fdSmrgelse
735794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
735894a251fdSmrgfi
735994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
736094a251fdSmrgfi
736194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
736294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
736394a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
736494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
736594a251fdSmrgfi
736694a251fdSmrg
736794a251fdSmrgfound="no"
736894a251fdSmrg
736994a251fdSmrg	if test $found = "no" ; then
737094a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
737194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
737294a251fdSmrg		fi
737394a251fdSmrg
737494a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
737594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
737694a251fdSmrg		fi
737794a251fdSmrg
737894a251fdSmrg		CFLAGS="$CFLAGS -Werror=return-type"
737994a251fdSmrg
738094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
738194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
738294a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
738394a251fdSmrg		if eval \${$cacheid+:} false; then :
738494a251fdSmrg  $as_echo_n "(cached) " >&6
738594a251fdSmrgelse
738694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
738794a251fdSmrg/* end confdefs.h.  */
738894a251fdSmrgint i;
738994a251fdSmrgint
739094a251fdSmrgmain ()
739194a251fdSmrg{
739294a251fdSmrg
739394a251fdSmrg  ;
739494a251fdSmrg  return 0;
739594a251fdSmrg}
739694a251fdSmrg_ACEOF
739794a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
739894a251fdSmrg  eval $cacheid=yes
739994a251fdSmrgelse
740094a251fdSmrg  eval $cacheid=no
740194a251fdSmrgfi
740294a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
740394a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
740494a251fdSmrgfi
740594a251fdSmrg
740694a251fdSmrg
740794a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
740894a251fdSmrg
740994a251fdSmrg		eval supported=\$$cacheid
741094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
741194a251fdSmrg$as_echo "$supported" >&6; }
741294a251fdSmrg		if test "$supported" = "yes" ; then
741394a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
741494a251fdSmrg			found="yes"
741594a251fdSmrg		fi
741694a251fdSmrg	fi
741794a251fdSmrg
741894a251fdSmrg	if test $found = "no" ; then
741994a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
742094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
742194a251fdSmrg		fi
742294a251fdSmrg
742394a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
742494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
742594a251fdSmrg		fi
742694a251fdSmrg
742794a251fdSmrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
742894a251fdSmrg
742994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
743094a251fdSmrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
743194a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
743294a251fdSmrg		if eval \${$cacheid+:} false; then :
743394a251fdSmrg  $as_echo_n "(cached) " >&6
743494a251fdSmrgelse
743594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
743694a251fdSmrg/* end confdefs.h.  */
743794a251fdSmrgint i;
743894a251fdSmrgint
743994a251fdSmrgmain ()
744094a251fdSmrg{
744194a251fdSmrg
744294a251fdSmrg  ;
744394a251fdSmrg  return 0;
744494a251fdSmrg}
744594a251fdSmrg_ACEOF
744694a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
744794a251fdSmrg  eval $cacheid=yes
744894a251fdSmrgelse
744994a251fdSmrg  eval $cacheid=no
745094a251fdSmrgfi
745194a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
745294a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
745394a251fdSmrgfi
745494a251fdSmrg
745594a251fdSmrg
745694a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
745794a251fdSmrg
745894a251fdSmrg		eval supported=\$$cacheid
745994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
746094a251fdSmrg$as_echo "$supported" >&6; }
746194a251fdSmrg		if test "$supported" = "yes" ; then
746294a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
746394a251fdSmrg			found="yes"
746494a251fdSmrg		fi
746594a251fdSmrg	fi
746694a251fdSmrg
746794a251fdSmrg
746894a251fdSmrg
746994a251fdSmrg
747094a251fdSmrg
747194a251fdSmrg
747294a251fdSmrg
747394a251fdSmrg
747494a251fdSmrg
747594a251fdSmrg
747694a251fdSmrg
747794a251fdSmrg
747894a251fdSmrg
747994a251fdSmrg
748094a251fdSmrg
748194a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
748294a251fdSmrg
748394a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
748494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
748594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
748694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
748794a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
748894a251fdSmrg  $as_echo_n "(cached) " >&6
748994a251fdSmrgelse
749094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
749194a251fdSmrg/* end confdefs.h.  */
749294a251fdSmrgint i;
749394a251fdSmrg_ACEOF
749494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
749594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
749694a251fdSmrgelse
749794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
749894a251fdSmrgfi
749994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
750094a251fdSmrgfi
750194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
750294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
750394a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
750494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
750594a251fdSmrgfi
750694a251fdSmrg
750794a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
750894a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
750994a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
751094a251fdSmrg	fi
751194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
751294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
751394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
751494a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
751594a251fdSmrg  $as_echo_n "(cached) " >&6
751694a251fdSmrgelse
751794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
751894a251fdSmrg/* end confdefs.h.  */
751994a251fdSmrgint i;
752094a251fdSmrg_ACEOF
752194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
752294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
752394a251fdSmrgelse
752494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
752594a251fdSmrgfi
752694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
752794a251fdSmrgfi
752894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
752994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
753094a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
753194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
753294a251fdSmrgfi
753394a251fdSmrg
753494a251fdSmrgfound="no"
753594a251fdSmrg
753694a251fdSmrg	if test $found = "no" ; then
753794a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
753894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
753994a251fdSmrg		fi
754094a251fdSmrg
754194a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
754294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
754394a251fdSmrg		fi
754494a251fdSmrg
754594a251fdSmrg		CFLAGS="$CFLAGS -Werror=trigraphs"
754694a251fdSmrg
754794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
754894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
754994a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
755094a251fdSmrg		if eval \${$cacheid+:} false; then :
755194a251fdSmrg  $as_echo_n "(cached) " >&6
755294a251fdSmrgelse
755394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
755494a251fdSmrg/* end confdefs.h.  */
755594a251fdSmrgint i;
755694a251fdSmrgint
755794a251fdSmrgmain ()
755894a251fdSmrg{
755994a251fdSmrg
756094a251fdSmrg  ;
756194a251fdSmrg  return 0;
756294a251fdSmrg}
756394a251fdSmrg_ACEOF
756494a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
756594a251fdSmrg  eval $cacheid=yes
756694a251fdSmrgelse
756794a251fdSmrg  eval $cacheid=no
756894a251fdSmrgfi
756994a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
757094a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
757194a251fdSmrgfi
757294a251fdSmrg
757394a251fdSmrg
757494a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
757594a251fdSmrg
757694a251fdSmrg		eval supported=\$$cacheid
757794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
757894a251fdSmrg$as_echo "$supported" >&6; }
757994a251fdSmrg		if test "$supported" = "yes" ; then
758094a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
758194a251fdSmrg			found="yes"
758294a251fdSmrg		fi
758394a251fdSmrg	fi
758494a251fdSmrg
758594a251fdSmrg
758694a251fdSmrg
758794a251fdSmrg
758894a251fdSmrg
758994a251fdSmrg
759094a251fdSmrg
759194a251fdSmrg
759294a251fdSmrg
759394a251fdSmrg
759494a251fdSmrg
759594a251fdSmrg
759694a251fdSmrg
759794a251fdSmrg
759894a251fdSmrg
759994a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
760094a251fdSmrg
760194a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
760294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
760394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
760494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
760594a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
760694a251fdSmrg  $as_echo_n "(cached) " >&6
760794a251fdSmrgelse
760894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
760994a251fdSmrg/* end confdefs.h.  */
761094a251fdSmrgint i;
761194a251fdSmrg_ACEOF
761294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
761394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
761494a251fdSmrgelse
761594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
761694a251fdSmrgfi
761794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
761894a251fdSmrgfi
761994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
762094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
762194a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
762294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
762394a251fdSmrgfi
762494a251fdSmrg
762594a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
762694a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
762794a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
762894a251fdSmrg	fi
762994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
763094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
763194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
763294a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
763394a251fdSmrg  $as_echo_n "(cached) " >&6
763494a251fdSmrgelse
763594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
763694a251fdSmrg/* end confdefs.h.  */
763794a251fdSmrgint i;
763894a251fdSmrg_ACEOF
763994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
764094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
764194a251fdSmrgelse
764294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
764394a251fdSmrgfi
764494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
764594a251fdSmrgfi
764694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
764794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
764894a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
764994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
765094a251fdSmrgfi
765194a251fdSmrg
765294a251fdSmrgfound="no"
765394a251fdSmrg
765494a251fdSmrg	if test $found = "no" ; then
765594a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
765694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
765794a251fdSmrg		fi
765894a251fdSmrg
765994a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
766094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
766194a251fdSmrg		fi
766294a251fdSmrg
766394a251fdSmrg		CFLAGS="$CFLAGS -Werror=array-bounds"
766494a251fdSmrg
766594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
766694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
766794a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
766894a251fdSmrg		if eval \${$cacheid+:} false; then :
766994a251fdSmrg  $as_echo_n "(cached) " >&6
767094a251fdSmrgelse
767194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
767294a251fdSmrg/* end confdefs.h.  */
767394a251fdSmrgint i;
767494a251fdSmrgint
767594a251fdSmrgmain ()
767694a251fdSmrg{
767794a251fdSmrg
767894a251fdSmrg  ;
767994a251fdSmrg  return 0;
768094a251fdSmrg}
768194a251fdSmrg_ACEOF
768294a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
768394a251fdSmrg  eval $cacheid=yes
768494a251fdSmrgelse
768594a251fdSmrg  eval $cacheid=no
768694a251fdSmrgfi
768794a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
768894a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
768994a251fdSmrgfi
769094a251fdSmrg
769194a251fdSmrg
769294a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
769394a251fdSmrg
769494a251fdSmrg		eval supported=\$$cacheid
769594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
769694a251fdSmrg$as_echo "$supported" >&6; }
769794a251fdSmrg		if test "$supported" = "yes" ; then
769894a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
769994a251fdSmrg			found="yes"
770094a251fdSmrg		fi
770194a251fdSmrg	fi
770294a251fdSmrg
770394a251fdSmrg
770494a251fdSmrg
770594a251fdSmrg
770694a251fdSmrg
770794a251fdSmrg
770894a251fdSmrg
770994a251fdSmrg
771094a251fdSmrg
771194a251fdSmrg
771294a251fdSmrg
771394a251fdSmrg
771494a251fdSmrg
771594a251fdSmrg
771694a251fdSmrg
771794a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
771894a251fdSmrg
771994a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
772094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
772194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
772294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
772394a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
772494a251fdSmrg  $as_echo_n "(cached) " >&6
772594a251fdSmrgelse
772694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
772794a251fdSmrg/* end confdefs.h.  */
772894a251fdSmrgint i;
772994a251fdSmrg_ACEOF
773094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
773194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
773294a251fdSmrgelse
773394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
773494a251fdSmrgfi
773594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
773694a251fdSmrgfi
773794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
773894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
773994a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
774094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
774194a251fdSmrgfi
774294a251fdSmrg
774394a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
774494a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
774594a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
774694a251fdSmrg	fi
774794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
774894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
774994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
775094a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
775194a251fdSmrg  $as_echo_n "(cached) " >&6
775294a251fdSmrgelse
775394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
775494a251fdSmrg/* end confdefs.h.  */
775594a251fdSmrgint i;
775694a251fdSmrg_ACEOF
775794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
775894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
775994a251fdSmrgelse
776094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
776194a251fdSmrgfi
776294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
776394a251fdSmrgfi
776494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
776594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
776694a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
776794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
776894a251fdSmrgfi
776994a251fdSmrg
777094a251fdSmrgfound="no"
777194a251fdSmrg
777294a251fdSmrg	if test $found = "no" ; then
777394a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
777494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
777594a251fdSmrg		fi
777694a251fdSmrg
777794a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
777894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
777994a251fdSmrg		fi
778094a251fdSmrg
778194a251fdSmrg		CFLAGS="$CFLAGS -Werror=write-strings"
778294a251fdSmrg
778394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
778494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
778594a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
778694a251fdSmrg		if eval \${$cacheid+:} false; then :
778794a251fdSmrg  $as_echo_n "(cached) " >&6
778894a251fdSmrgelse
778994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
779094a251fdSmrg/* end confdefs.h.  */
779194a251fdSmrgint i;
779294a251fdSmrgint
779394a251fdSmrgmain ()
779494a251fdSmrg{
779594a251fdSmrg
779694a251fdSmrg  ;
779794a251fdSmrg  return 0;
779894a251fdSmrg}
779994a251fdSmrg_ACEOF
780094a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
780194a251fdSmrg  eval $cacheid=yes
780294a251fdSmrgelse
780394a251fdSmrg  eval $cacheid=no
780494a251fdSmrgfi
780594a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
780694a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
780794a251fdSmrgfi
780894a251fdSmrg
780994a251fdSmrg
781094a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
781194a251fdSmrg
781294a251fdSmrg		eval supported=\$$cacheid
781394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
781494a251fdSmrg$as_echo "$supported" >&6; }
781594a251fdSmrg		if test "$supported" = "yes" ; then
781694a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
781794a251fdSmrg			found="yes"
781894a251fdSmrg		fi
781994a251fdSmrg	fi
782094a251fdSmrg
782194a251fdSmrg
782294a251fdSmrg
782394a251fdSmrg
782494a251fdSmrg
782594a251fdSmrg
782694a251fdSmrg
782794a251fdSmrg
782894a251fdSmrg
782994a251fdSmrg
783094a251fdSmrg
783194a251fdSmrg
783294a251fdSmrg
783394a251fdSmrg
783494a251fdSmrg
783594a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
783694a251fdSmrg
783794a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
783894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
783994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
784094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
784194a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
784294a251fdSmrg  $as_echo_n "(cached) " >&6
784394a251fdSmrgelse
784494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
784594a251fdSmrg/* end confdefs.h.  */
784694a251fdSmrgint i;
784794a251fdSmrg_ACEOF
784894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
784994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
785094a251fdSmrgelse
785194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
785294a251fdSmrgfi
785394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
785494a251fdSmrgfi
785594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
785694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
785794a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
785894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
785994a251fdSmrgfi
786094a251fdSmrg
786194a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
786294a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
786394a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
786494a251fdSmrg	fi
786594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
786694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
786794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
786894a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
786994a251fdSmrg  $as_echo_n "(cached) " >&6
787094a251fdSmrgelse
787194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
787294a251fdSmrg/* end confdefs.h.  */
787394a251fdSmrgint i;
787494a251fdSmrg_ACEOF
787594a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
787694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
787794a251fdSmrgelse
787894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
787994a251fdSmrgfi
788094a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
788194a251fdSmrgfi
788294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
788394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
788494a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
788594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
788694a251fdSmrgfi
788794a251fdSmrg
788894a251fdSmrgfound="no"
788994a251fdSmrg
789094a251fdSmrg	if test $found = "no" ; then
789194a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
789294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
789394a251fdSmrg		fi
789494a251fdSmrg
789594a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
789694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
789794a251fdSmrg		fi
789894a251fdSmrg
789994a251fdSmrg		CFLAGS="$CFLAGS -Werror=address"
790094a251fdSmrg
790194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
790294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
790394a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
790494a251fdSmrg		if eval \${$cacheid+:} false; then :
790594a251fdSmrg  $as_echo_n "(cached) " >&6
790694a251fdSmrgelse
790794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
790894a251fdSmrg/* end confdefs.h.  */
790994a251fdSmrgint i;
791094a251fdSmrgint
791194a251fdSmrgmain ()
791294a251fdSmrg{
791394a251fdSmrg
791494a251fdSmrg  ;
791594a251fdSmrg  return 0;
791694a251fdSmrg}
791794a251fdSmrg_ACEOF
791894a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
791994a251fdSmrg  eval $cacheid=yes
792094a251fdSmrgelse
792194a251fdSmrg  eval $cacheid=no
792294a251fdSmrgfi
792394a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
792494a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
792594a251fdSmrgfi
792694a251fdSmrg
792794a251fdSmrg
792894a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
792994a251fdSmrg
793094a251fdSmrg		eval supported=\$$cacheid
793194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
793294a251fdSmrg$as_echo "$supported" >&6; }
793394a251fdSmrg		if test "$supported" = "yes" ; then
793494a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
793594a251fdSmrg			found="yes"
793694a251fdSmrg		fi
793794a251fdSmrg	fi
793894a251fdSmrg
793994a251fdSmrg
794094a251fdSmrg
794194a251fdSmrg
794294a251fdSmrg
794394a251fdSmrg
794494a251fdSmrg
794594a251fdSmrg
794694a251fdSmrg
794794a251fdSmrg
794894a251fdSmrg
794994a251fdSmrg
795094a251fdSmrg
795194a251fdSmrg
795294a251fdSmrg
795394a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
795494a251fdSmrg
795594a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
795694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
795794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
795894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
795994a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
796094a251fdSmrg  $as_echo_n "(cached) " >&6
796194a251fdSmrgelse
796294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
796394a251fdSmrg/* end confdefs.h.  */
796494a251fdSmrgint i;
796594a251fdSmrg_ACEOF
796694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
796794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
796894a251fdSmrgelse
796994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
797094a251fdSmrgfi
797194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
797294a251fdSmrgfi
797394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
797494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
797594a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
797694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
797794a251fdSmrgfi
797894a251fdSmrg
797994a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
798094a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
798194a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
798294a251fdSmrg	fi
798394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
798494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
798594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
798694a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
798794a251fdSmrg  $as_echo_n "(cached) " >&6
798894a251fdSmrgelse
798994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
799094a251fdSmrg/* end confdefs.h.  */
799194a251fdSmrgint i;
799294a251fdSmrg_ACEOF
799394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
799494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
799594a251fdSmrgelse
799694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
799794a251fdSmrgfi
799894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
799994a251fdSmrgfi
800094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
800194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
800294a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
800394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
800494a251fdSmrgfi
800594a251fdSmrg
800694a251fdSmrgfound="no"
800794a251fdSmrg
800894a251fdSmrg	if test $found = "no" ; then
800994a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
801094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
801194a251fdSmrg		fi
801294a251fdSmrg
801394a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
801494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
801594a251fdSmrg		fi
801694a251fdSmrg
801794a251fdSmrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
801894a251fdSmrg
801994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
802094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
802194a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
802294a251fdSmrg		if eval \${$cacheid+:} false; then :
802394a251fdSmrg  $as_echo_n "(cached) " >&6
802494a251fdSmrgelse
802594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
802694a251fdSmrg/* end confdefs.h.  */
802794a251fdSmrgint i;
802894a251fdSmrgint
802994a251fdSmrgmain ()
803094a251fdSmrg{
803194a251fdSmrg
803294a251fdSmrg  ;
803394a251fdSmrg  return 0;
803494a251fdSmrg}
803594a251fdSmrg_ACEOF
803694a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
803794a251fdSmrg  eval $cacheid=yes
803894a251fdSmrgelse
803994a251fdSmrg  eval $cacheid=no
804094a251fdSmrgfi
804194a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
804294a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
804394a251fdSmrgfi
804494a251fdSmrg
804594a251fdSmrg
804694a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
804794a251fdSmrg
804894a251fdSmrg		eval supported=\$$cacheid
804994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
805094a251fdSmrg$as_echo "$supported" >&6; }
805194a251fdSmrg		if test "$supported" = "yes" ; then
805294a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
805394a251fdSmrg			found="yes"
805494a251fdSmrg		fi
805594a251fdSmrg	fi
805694a251fdSmrg
805794a251fdSmrg	if test $found = "no" ; then
805894a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
805994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
806094a251fdSmrg		fi
806194a251fdSmrg
806294a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
806394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
806494a251fdSmrg		fi
806594a251fdSmrg
806694a251fdSmrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
806794a251fdSmrg
806894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
806994a251fdSmrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
807094a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
807194a251fdSmrg		if eval \${$cacheid+:} false; then :
807294a251fdSmrg  $as_echo_n "(cached) " >&6
807394a251fdSmrgelse
807494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
807594a251fdSmrg/* end confdefs.h.  */
807694a251fdSmrgint i;
807794a251fdSmrgint
807894a251fdSmrgmain ()
807994a251fdSmrg{
808094a251fdSmrg
808194a251fdSmrg  ;
808294a251fdSmrg  return 0;
808394a251fdSmrg}
808494a251fdSmrg_ACEOF
808594a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
808694a251fdSmrg  eval $cacheid=yes
808794a251fdSmrgelse
808894a251fdSmrg  eval $cacheid=no
808994a251fdSmrgfi
809094a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
809194a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
809294a251fdSmrgfi
809394a251fdSmrg
809494a251fdSmrg
809594a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
809694a251fdSmrg
809794a251fdSmrg		eval supported=\$$cacheid
809894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
809994a251fdSmrg$as_echo "$supported" >&6; }
810094a251fdSmrg		if test "$supported" = "yes" ; then
810194a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
810294a251fdSmrg			found="yes"
810394a251fdSmrg		fi
810494a251fdSmrg	fi
810594a251fdSmrg
810694a251fdSmrg
810794a251fdSmrg
810894a251fdSmrg
810994a251fdSmrg
811094a251fdSmrg
811194a251fdSmrg
811294a251fdSmrg
811394a251fdSmrg
811494a251fdSmrg
811594a251fdSmrg
811694a251fdSmrg
811794a251fdSmrg
811894a251fdSmrg
811994a251fdSmrg
812094a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
812194a251fdSmrg
812294a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
812394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
812494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
812594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
812694a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
812794a251fdSmrg  $as_echo_n "(cached) " >&6
812894a251fdSmrgelse
812994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
813094a251fdSmrg/* end confdefs.h.  */
813194a251fdSmrgint i;
813294a251fdSmrg_ACEOF
813394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
813494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
813594a251fdSmrgelse
813694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
813794a251fdSmrgfi
813894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
813994a251fdSmrgfi
814094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
814194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
814294a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
814394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
814494a251fdSmrgfi
814594a251fdSmrg
814694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
814794a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
814894a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
814994a251fdSmrg	fi
815094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
815194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
815294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
815394a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
815494a251fdSmrg  $as_echo_n "(cached) " >&6
815594a251fdSmrgelse
815694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
815794a251fdSmrg/* end confdefs.h.  */
815894a251fdSmrgint i;
815994a251fdSmrg_ACEOF
816094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
816194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
816294a251fdSmrgelse
816394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
816494a251fdSmrgfi
816594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
816694a251fdSmrgfi
816794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
816894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
816994a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
817094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
817194a251fdSmrgfi
817294a251fdSmrg
817394a251fdSmrgfound="no"
817494a251fdSmrg
817594a251fdSmrg	if test $found = "no" ; then
817694a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
817794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
817894a251fdSmrg		fi
817994a251fdSmrg
818094a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
818194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
818294a251fdSmrg		fi
818394a251fdSmrg
818494a251fdSmrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
818594a251fdSmrg
818694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
818794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
818894a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
818994a251fdSmrg		if eval \${$cacheid+:} false; then :
819094a251fdSmrg  $as_echo_n "(cached) " >&6
819194a251fdSmrgelse
819294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
819394a251fdSmrg/* end confdefs.h.  */
819494a251fdSmrgint i;
819594a251fdSmrgint
819694a251fdSmrgmain ()
819794a251fdSmrg{
819894a251fdSmrg
819994a251fdSmrg  ;
820094a251fdSmrg  return 0;
820194a251fdSmrg}
820294a251fdSmrg_ACEOF
820394a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
820494a251fdSmrg  eval $cacheid=yes
820594a251fdSmrgelse
820694a251fdSmrg  eval $cacheid=no
820794a251fdSmrgfi
820894a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
820994a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
821094a251fdSmrgfi
821194a251fdSmrg
821294a251fdSmrg
821394a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
821494a251fdSmrg
821594a251fdSmrg		eval supported=\$$cacheid
821694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
821794a251fdSmrg$as_echo "$supported" >&6; }
821894a251fdSmrg		if test "$supported" = "yes" ; then
821994a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
822094a251fdSmrg			found="yes"
822194a251fdSmrg		fi
822294a251fdSmrg	fi
822394a251fdSmrg
822494a251fdSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
822594a251fdSmrgelse
822694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
822794a251fdSmrg$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
822894a251fdSmrg
822994a251fdSmrg
823094a251fdSmrg
823194a251fdSmrg
823294a251fdSmrg
823394a251fdSmrg
823494a251fdSmrg
823594a251fdSmrg
823694a251fdSmrg
823794a251fdSmrg
823894a251fdSmrg
823994a251fdSmrg
824094a251fdSmrg
824194a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
824294a251fdSmrg
824394a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
824494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
824594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
824694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
824794a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
824894a251fdSmrg  $as_echo_n "(cached) " >&6
824994a251fdSmrgelse
825094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
825194a251fdSmrg/* end confdefs.h.  */
825294a251fdSmrgint i;
825394a251fdSmrg_ACEOF
825494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
825594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
825694a251fdSmrgelse
825794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
825894a251fdSmrgfi
825994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
826094a251fdSmrgfi
826194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
826294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
826394a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
826494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
826594a251fdSmrgfi
826694a251fdSmrg
826794a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
826894a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
826994a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
827094a251fdSmrg	fi
827194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
827294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
827394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
827494a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
827594a251fdSmrg  $as_echo_n "(cached) " >&6
827694a251fdSmrgelse
827794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
827894a251fdSmrg/* end confdefs.h.  */
827994a251fdSmrgint i;
828094a251fdSmrg_ACEOF
828194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
828294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
828394a251fdSmrgelse
828494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
828594a251fdSmrgfi
828694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
828794a251fdSmrgfi
828894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
828994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
829094a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
829194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
829294a251fdSmrgfi
829394a251fdSmrg
829494a251fdSmrgfound="no"
829594a251fdSmrg
829694a251fdSmrg	if test $found = "no" ; then
829794a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
829894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
829994a251fdSmrg		fi
830094a251fdSmrg
830194a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
830294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
830394a251fdSmrg		fi
830494a251fdSmrg
830594a251fdSmrg		CFLAGS="$CFLAGS -Wimplicit"
830694a251fdSmrg
830794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
830894a251fdSmrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
830994a251fdSmrg		cacheid=xorg_cv_cc_flag__Wimplicit
831094a251fdSmrg		if eval \${$cacheid+:} false; then :
831194a251fdSmrg  $as_echo_n "(cached) " >&6
831294a251fdSmrgelse
831394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
831494a251fdSmrg/* end confdefs.h.  */
831594a251fdSmrgint i;
831694a251fdSmrgint
831794a251fdSmrgmain ()
831894a251fdSmrg{
831994a251fdSmrg
832094a251fdSmrg  ;
832194a251fdSmrg  return 0;
832294a251fdSmrg}
832394a251fdSmrg_ACEOF
832494a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
832594a251fdSmrg  eval $cacheid=yes
832694a251fdSmrgelse
832794a251fdSmrg  eval $cacheid=no
832894a251fdSmrgfi
832994a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
833094a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
833194a251fdSmrgfi
833294a251fdSmrg
833394a251fdSmrg
833494a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
833594a251fdSmrg
833694a251fdSmrg		eval supported=\$$cacheid
833794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
833894a251fdSmrg$as_echo "$supported" >&6; }
833994a251fdSmrg		if test "$supported" = "yes" ; then
834094a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
834194a251fdSmrg			found="yes"
834294a251fdSmrg		fi
834394a251fdSmrg	fi
834494a251fdSmrg
834594a251fdSmrg
834694a251fdSmrg
834794a251fdSmrg
834894a251fdSmrg
834994a251fdSmrg
835094a251fdSmrg
835194a251fdSmrg
835294a251fdSmrg
835394a251fdSmrg
835494a251fdSmrg
835594a251fdSmrg
835694a251fdSmrg
835794a251fdSmrg
835894a251fdSmrg
835994a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
836094a251fdSmrg
836194a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
836294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
836394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
836494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
836594a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
836694a251fdSmrg  $as_echo_n "(cached) " >&6
836794a251fdSmrgelse
836894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
836994a251fdSmrg/* end confdefs.h.  */
837094a251fdSmrgint i;
837194a251fdSmrg_ACEOF
837294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
837394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
837494a251fdSmrgelse
837594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
837694a251fdSmrgfi
837794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
837894a251fdSmrgfi
837994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
838094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
838194a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
838294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
838394a251fdSmrgfi
838494a251fdSmrg
838594a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
838694a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
838794a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
838894a251fdSmrg	fi
838994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
839094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
839194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
839294a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
839394a251fdSmrg  $as_echo_n "(cached) " >&6
839494a251fdSmrgelse
839594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
839694a251fdSmrg/* end confdefs.h.  */
839794a251fdSmrgint i;
839894a251fdSmrg_ACEOF
839994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
840094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
840194a251fdSmrgelse
840294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
840394a251fdSmrgfi
840494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
840594a251fdSmrgfi
840694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
840794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
840894a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
840994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
841094a251fdSmrgfi
841194a251fdSmrg
841294a251fdSmrgfound="no"
841394a251fdSmrg
841494a251fdSmrg	if test $found = "no" ; then
841594a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
841694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
841794a251fdSmrg		fi
841894a251fdSmrg
841994a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
842094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
842194a251fdSmrg		fi
842294a251fdSmrg
842394a251fdSmrg		CFLAGS="$CFLAGS -Wnonnull"
842494a251fdSmrg
842594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
842694a251fdSmrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
842794a251fdSmrg		cacheid=xorg_cv_cc_flag__Wnonnull
842894a251fdSmrg		if eval \${$cacheid+:} false; then :
842994a251fdSmrg  $as_echo_n "(cached) " >&6
843094a251fdSmrgelse
843194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
843294a251fdSmrg/* end confdefs.h.  */
843394a251fdSmrgint i;
843494a251fdSmrgint
843594a251fdSmrgmain ()
843694a251fdSmrg{
843794a251fdSmrg
843894a251fdSmrg  ;
843994a251fdSmrg  return 0;
844094a251fdSmrg}
844194a251fdSmrg_ACEOF
844294a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
844394a251fdSmrg  eval $cacheid=yes
844494a251fdSmrgelse
844594a251fdSmrg  eval $cacheid=no
844694a251fdSmrgfi
844794a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
844894a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
844994a251fdSmrgfi
845094a251fdSmrg
845194a251fdSmrg
845294a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
845394a251fdSmrg
845494a251fdSmrg		eval supported=\$$cacheid
845594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
845694a251fdSmrg$as_echo "$supported" >&6; }
845794a251fdSmrg		if test "$supported" = "yes" ; then
845894a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
845994a251fdSmrg			found="yes"
846094a251fdSmrg		fi
846194a251fdSmrg	fi
846294a251fdSmrg
846394a251fdSmrg
846494a251fdSmrg
846594a251fdSmrg
846694a251fdSmrg
846794a251fdSmrg
846894a251fdSmrg
846994a251fdSmrg
847094a251fdSmrg
847194a251fdSmrg
847294a251fdSmrg
847394a251fdSmrg
847494a251fdSmrg
847594a251fdSmrg
847694a251fdSmrg
847794a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
847894a251fdSmrg
847994a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
848094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
848194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
848294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
848394a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
848494a251fdSmrg  $as_echo_n "(cached) " >&6
848594a251fdSmrgelse
848694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
848794a251fdSmrg/* end confdefs.h.  */
848894a251fdSmrgint i;
848994a251fdSmrg_ACEOF
849094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
849194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
849294a251fdSmrgelse
849394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
849494a251fdSmrgfi
849594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
849694a251fdSmrgfi
849794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
849894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
849994a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
850094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
850194a251fdSmrgfi
850294a251fdSmrg
850394a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
850494a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
850594a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
850694a251fdSmrg	fi
850794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
850894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
850994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
851094a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
851194a251fdSmrg  $as_echo_n "(cached) " >&6
851294a251fdSmrgelse
851394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
851494a251fdSmrg/* end confdefs.h.  */
851594a251fdSmrgint i;
851694a251fdSmrg_ACEOF
851794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
851894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
851994a251fdSmrgelse
852094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
852194a251fdSmrgfi
852294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
852394a251fdSmrgfi
852494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
852594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
852694a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
852794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
852894a251fdSmrgfi
852994a251fdSmrg
853094a251fdSmrgfound="no"
853194a251fdSmrg
853294a251fdSmrg	if test $found = "no" ; then
853394a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
853494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
853594a251fdSmrg		fi
853694a251fdSmrg
853794a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
853894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
853994a251fdSmrg		fi
854094a251fdSmrg
854194a251fdSmrg		CFLAGS="$CFLAGS -Winit-self"
854294a251fdSmrg
854394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
854494a251fdSmrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
854594a251fdSmrg		cacheid=xorg_cv_cc_flag__Winit_self
854694a251fdSmrg		if eval \${$cacheid+:} false; then :
854794a251fdSmrg  $as_echo_n "(cached) " >&6
854894a251fdSmrgelse
854994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
855094a251fdSmrg/* end confdefs.h.  */
855194a251fdSmrgint i;
855294a251fdSmrgint
855394a251fdSmrgmain ()
855494a251fdSmrg{
855594a251fdSmrg
855694a251fdSmrg  ;
855794a251fdSmrg  return 0;
855894a251fdSmrg}
855994a251fdSmrg_ACEOF
856094a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
856194a251fdSmrg  eval $cacheid=yes
856294a251fdSmrgelse
856394a251fdSmrg  eval $cacheid=no
856494a251fdSmrgfi
856594a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
856694a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
856794a251fdSmrgfi
856894a251fdSmrg
856994a251fdSmrg
857094a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
857194a251fdSmrg
857294a251fdSmrg		eval supported=\$$cacheid
857394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
857494a251fdSmrg$as_echo "$supported" >&6; }
857594a251fdSmrg		if test "$supported" = "yes" ; then
857694a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
857794a251fdSmrg			found="yes"
857894a251fdSmrg		fi
857994a251fdSmrg	fi
858094a251fdSmrg
858194a251fdSmrg
858294a251fdSmrg
858394a251fdSmrg
858494a251fdSmrg
858594a251fdSmrg
858694a251fdSmrg
858794a251fdSmrg
858894a251fdSmrg
858994a251fdSmrg
859094a251fdSmrg
859194a251fdSmrg
859294a251fdSmrg
859394a251fdSmrg
859494a251fdSmrg
859594a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
859694a251fdSmrg
859794a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
859894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
859994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
860094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
860194a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
860294a251fdSmrg  $as_echo_n "(cached) " >&6
860394a251fdSmrgelse
860494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
860594a251fdSmrg/* end confdefs.h.  */
860694a251fdSmrgint i;
860794a251fdSmrg_ACEOF
860894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
860994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
861094a251fdSmrgelse
861194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
861294a251fdSmrgfi
861394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
861494a251fdSmrgfi
861594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
861694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
861794a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
861894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
861994a251fdSmrgfi
862094a251fdSmrg
862194a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
862294a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
862394a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
862494a251fdSmrg	fi
862594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
862694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
862794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
862894a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
862994a251fdSmrg  $as_echo_n "(cached) " >&6
863094a251fdSmrgelse
863194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
863294a251fdSmrg/* end confdefs.h.  */
863394a251fdSmrgint i;
863494a251fdSmrg_ACEOF
863594a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
863694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
863794a251fdSmrgelse
863894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
863994a251fdSmrgfi
864094a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
864194a251fdSmrgfi
864294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
864394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
864494a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
864594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
864694a251fdSmrgfi
864794a251fdSmrg
864894a251fdSmrgfound="no"
864994a251fdSmrg
865094a251fdSmrg	if test $found = "no" ; then
865194a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
865294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
865394a251fdSmrg		fi
865494a251fdSmrg
865594a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
865694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
865794a251fdSmrg		fi
865894a251fdSmrg
865994a251fdSmrg		CFLAGS="$CFLAGS -Wmain"
866094a251fdSmrg
866194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
866294a251fdSmrg$as_echo_n "checking if $CC supports -Wmain... " >&6; }
866394a251fdSmrg		cacheid=xorg_cv_cc_flag__Wmain
866494a251fdSmrg		if eval \${$cacheid+:} false; then :
866594a251fdSmrg  $as_echo_n "(cached) " >&6
866694a251fdSmrgelse
866794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
866894a251fdSmrg/* end confdefs.h.  */
866994a251fdSmrgint i;
867094a251fdSmrgint
867194a251fdSmrgmain ()
867294a251fdSmrg{
867394a251fdSmrg
867494a251fdSmrg  ;
867594a251fdSmrg  return 0;
867694a251fdSmrg}
867794a251fdSmrg_ACEOF
867894a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
867994a251fdSmrg  eval $cacheid=yes
868094a251fdSmrgelse
868194a251fdSmrg  eval $cacheid=no
868294a251fdSmrgfi
868394a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
868494a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
868594a251fdSmrgfi
868694a251fdSmrg
868794a251fdSmrg
868894a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
868994a251fdSmrg
869094a251fdSmrg		eval supported=\$$cacheid
869194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
869294a251fdSmrg$as_echo "$supported" >&6; }
869394a251fdSmrg		if test "$supported" = "yes" ; then
869494a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
869594a251fdSmrg			found="yes"
869694a251fdSmrg		fi
869794a251fdSmrg	fi
869894a251fdSmrg
869994a251fdSmrg
870094a251fdSmrg
870194a251fdSmrg
870294a251fdSmrg
870394a251fdSmrg
870494a251fdSmrg
870594a251fdSmrg
870694a251fdSmrg
870794a251fdSmrg
870894a251fdSmrg
870994a251fdSmrg
871094a251fdSmrg
871194a251fdSmrg
871294a251fdSmrg
871394a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
871494a251fdSmrg
871594a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
871694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
871794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
871894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
871994a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
872094a251fdSmrg  $as_echo_n "(cached) " >&6
872194a251fdSmrgelse
872294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
872394a251fdSmrg/* end confdefs.h.  */
872494a251fdSmrgint i;
872594a251fdSmrg_ACEOF
872694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
872794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
872894a251fdSmrgelse
872994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
873094a251fdSmrgfi
873194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
873294a251fdSmrgfi
873394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
873494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
873594a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
873694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
873794a251fdSmrgfi
873894a251fdSmrg
873994a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
874094a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
874194a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
874294a251fdSmrg	fi
874394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
874494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
874594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
874694a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
874794a251fdSmrg  $as_echo_n "(cached) " >&6
874894a251fdSmrgelse
874994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
875094a251fdSmrg/* end confdefs.h.  */
875194a251fdSmrgint i;
875294a251fdSmrg_ACEOF
875394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
875494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
875594a251fdSmrgelse
875694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
875794a251fdSmrgfi
875894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
875994a251fdSmrgfi
876094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
876194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
876294a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
876394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
876494a251fdSmrgfi
876594a251fdSmrg
876694a251fdSmrgfound="no"
876794a251fdSmrg
876894a251fdSmrg	if test $found = "no" ; then
876994a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
877094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
877194a251fdSmrg		fi
877294a251fdSmrg
877394a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
877494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
877594a251fdSmrg		fi
877694a251fdSmrg
877794a251fdSmrg		CFLAGS="$CFLAGS -Wmissing-braces"
877894a251fdSmrg
877994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
878094a251fdSmrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
878194a251fdSmrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
878294a251fdSmrg		if eval \${$cacheid+:} false; then :
878394a251fdSmrg  $as_echo_n "(cached) " >&6
878494a251fdSmrgelse
878594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
878694a251fdSmrg/* end confdefs.h.  */
878794a251fdSmrgint i;
878894a251fdSmrgint
878994a251fdSmrgmain ()
879094a251fdSmrg{
879194a251fdSmrg
879294a251fdSmrg  ;
879394a251fdSmrg  return 0;
879494a251fdSmrg}
879594a251fdSmrg_ACEOF
879694a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
879794a251fdSmrg  eval $cacheid=yes
879894a251fdSmrgelse
879994a251fdSmrg  eval $cacheid=no
880094a251fdSmrgfi
880194a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
880294a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
880394a251fdSmrgfi
880494a251fdSmrg
880594a251fdSmrg
880694a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
880794a251fdSmrg
880894a251fdSmrg		eval supported=\$$cacheid
880994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
881094a251fdSmrg$as_echo "$supported" >&6; }
881194a251fdSmrg		if test "$supported" = "yes" ; then
881294a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
881394a251fdSmrg			found="yes"
881494a251fdSmrg		fi
881594a251fdSmrg	fi
881694a251fdSmrg
881794a251fdSmrg
881894a251fdSmrg
881994a251fdSmrg
882094a251fdSmrg
882194a251fdSmrg
882294a251fdSmrg
882394a251fdSmrg
882494a251fdSmrg
882594a251fdSmrg
882694a251fdSmrg
882794a251fdSmrg
882894a251fdSmrg
882994a251fdSmrg
883094a251fdSmrg
883194a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
883294a251fdSmrg
883394a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
883494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
883594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
883694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
883794a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
883894a251fdSmrg  $as_echo_n "(cached) " >&6
883994a251fdSmrgelse
884094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
884194a251fdSmrg/* end confdefs.h.  */
884294a251fdSmrgint i;
884394a251fdSmrg_ACEOF
884494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
884594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
884694a251fdSmrgelse
884794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
884894a251fdSmrgfi
884994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
885094a251fdSmrgfi
885194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
885294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
885394a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
885494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
885594a251fdSmrgfi
885694a251fdSmrg
885794a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
885894a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
885994a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
886094a251fdSmrg	fi
886194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
886294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
886394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
886494a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
886594a251fdSmrg  $as_echo_n "(cached) " >&6
886694a251fdSmrgelse
886794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
886894a251fdSmrg/* end confdefs.h.  */
886994a251fdSmrgint i;
887094a251fdSmrg_ACEOF
887194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
887294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
887394a251fdSmrgelse
887494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
887594a251fdSmrgfi
887694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
887794a251fdSmrgfi
887894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
887994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
888094a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
888194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
888294a251fdSmrgfi
888394a251fdSmrg
888494a251fdSmrgfound="no"
888594a251fdSmrg
888694a251fdSmrg	if test $found = "no" ; then
888794a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
888894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
888994a251fdSmrg		fi
889094a251fdSmrg
889194a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
889294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
889394a251fdSmrg		fi
889494a251fdSmrg
889594a251fdSmrg		CFLAGS="$CFLAGS -Wsequence-point"
889694a251fdSmrg
889794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
889894a251fdSmrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
889994a251fdSmrg		cacheid=xorg_cv_cc_flag__Wsequence_point
890094a251fdSmrg		if eval \${$cacheid+:} false; then :
890194a251fdSmrg  $as_echo_n "(cached) " >&6
890294a251fdSmrgelse
890394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
890494a251fdSmrg/* end confdefs.h.  */
890594a251fdSmrgint i;
890694a251fdSmrgint
890794a251fdSmrgmain ()
890894a251fdSmrg{
890994a251fdSmrg
891094a251fdSmrg  ;
891194a251fdSmrg  return 0;
891294a251fdSmrg}
891394a251fdSmrg_ACEOF
891494a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
891594a251fdSmrg  eval $cacheid=yes
891694a251fdSmrgelse
891794a251fdSmrg  eval $cacheid=no
891894a251fdSmrgfi
891994a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
892094a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
892194a251fdSmrgfi
892294a251fdSmrg
892394a251fdSmrg
892494a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
892594a251fdSmrg
892694a251fdSmrg		eval supported=\$$cacheid
892794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
892894a251fdSmrg$as_echo "$supported" >&6; }
892994a251fdSmrg		if test "$supported" = "yes" ; then
893094a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
893194a251fdSmrg			found="yes"
893294a251fdSmrg		fi
893394a251fdSmrg	fi
893494a251fdSmrg
893594a251fdSmrg
893694a251fdSmrg
893794a251fdSmrg
893894a251fdSmrg
893994a251fdSmrg
894094a251fdSmrg
894194a251fdSmrg
894294a251fdSmrg
894394a251fdSmrg
894494a251fdSmrg
894594a251fdSmrg
894694a251fdSmrg
894794a251fdSmrg
894894a251fdSmrg
894994a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
895094a251fdSmrg
895194a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
895294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
895394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
895494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
895594a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
895694a251fdSmrg  $as_echo_n "(cached) " >&6
895794a251fdSmrgelse
895894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
895994a251fdSmrg/* end confdefs.h.  */
896094a251fdSmrgint i;
896194a251fdSmrg_ACEOF
896294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
896394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
896494a251fdSmrgelse
896594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
896694a251fdSmrgfi
896794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
896894a251fdSmrgfi
896994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
897094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
897194a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
897294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
897394a251fdSmrgfi
897494a251fdSmrg
897594a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
897694a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
897794a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
897894a251fdSmrg	fi
897994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
898094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
898194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
898294a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
898394a251fdSmrg  $as_echo_n "(cached) " >&6
898494a251fdSmrgelse
898594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
898694a251fdSmrg/* end confdefs.h.  */
898794a251fdSmrgint i;
898894a251fdSmrg_ACEOF
898994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
899094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
899194a251fdSmrgelse
899294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
899394a251fdSmrgfi
899494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
899594a251fdSmrgfi
899694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
899794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
899894a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
899994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
900094a251fdSmrgfi
900194a251fdSmrg
900294a251fdSmrgfound="no"
900394a251fdSmrg
900494a251fdSmrg	if test $found = "no" ; then
900594a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
900694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
900794a251fdSmrg		fi
900894a251fdSmrg
900994a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
901094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
901194a251fdSmrg		fi
901294a251fdSmrg
901394a251fdSmrg		CFLAGS="$CFLAGS -Wreturn-type"
901494a251fdSmrg
901594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
901694a251fdSmrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
901794a251fdSmrg		cacheid=xorg_cv_cc_flag__Wreturn_type
901894a251fdSmrg		if eval \${$cacheid+:} false; then :
901994a251fdSmrg  $as_echo_n "(cached) " >&6
902094a251fdSmrgelse
902194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
902294a251fdSmrg/* end confdefs.h.  */
902394a251fdSmrgint i;
902494a251fdSmrgint
902594a251fdSmrgmain ()
902694a251fdSmrg{
902794a251fdSmrg
902894a251fdSmrg  ;
902994a251fdSmrg  return 0;
903094a251fdSmrg}
903194a251fdSmrg_ACEOF
903294a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
903394a251fdSmrg  eval $cacheid=yes
903494a251fdSmrgelse
903594a251fdSmrg  eval $cacheid=no
903694a251fdSmrgfi
903794a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
903894a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
903994a251fdSmrgfi
904094a251fdSmrg
904194a251fdSmrg
904294a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
904394a251fdSmrg
904494a251fdSmrg		eval supported=\$$cacheid
904594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
904694a251fdSmrg$as_echo "$supported" >&6; }
904794a251fdSmrg		if test "$supported" = "yes" ; then
904894a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
904994a251fdSmrg			found="yes"
905094a251fdSmrg		fi
905194a251fdSmrg	fi
905294a251fdSmrg
905394a251fdSmrg
905494a251fdSmrg
905594a251fdSmrg
905694a251fdSmrg
905794a251fdSmrg
905894a251fdSmrg
905994a251fdSmrg
906094a251fdSmrg
906194a251fdSmrg
906294a251fdSmrg
906394a251fdSmrg
906494a251fdSmrg
906594a251fdSmrg
906694a251fdSmrg
906794a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
906894a251fdSmrg
906994a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
907094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
907194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
907294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
907394a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
907494a251fdSmrg  $as_echo_n "(cached) " >&6
907594a251fdSmrgelse
907694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
907794a251fdSmrg/* end confdefs.h.  */
907894a251fdSmrgint i;
907994a251fdSmrg_ACEOF
908094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
908194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
908294a251fdSmrgelse
908394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
908494a251fdSmrgfi
908594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
908694a251fdSmrgfi
908794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
908894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
908994a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
909094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
909194a251fdSmrgfi
909294a251fdSmrg
909394a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
909494a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
909594a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
909694a251fdSmrg	fi
909794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
909894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
909994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
910094a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
910194a251fdSmrg  $as_echo_n "(cached) " >&6
910294a251fdSmrgelse
910394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
910494a251fdSmrg/* end confdefs.h.  */
910594a251fdSmrgint i;
910694a251fdSmrg_ACEOF
910794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
910894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
910994a251fdSmrgelse
911094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
911194a251fdSmrgfi
911294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
911394a251fdSmrgfi
911494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
911594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
911694a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
911794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
911894a251fdSmrgfi
911994a251fdSmrg
912094a251fdSmrgfound="no"
912194a251fdSmrg
912294a251fdSmrg	if test $found = "no" ; then
912394a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
912494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
912594a251fdSmrg		fi
912694a251fdSmrg
912794a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
912894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
912994a251fdSmrg		fi
913094a251fdSmrg
913194a251fdSmrg		CFLAGS="$CFLAGS -Wtrigraphs"
913294a251fdSmrg
913394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
913494a251fdSmrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
913594a251fdSmrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
913694a251fdSmrg		if eval \${$cacheid+:} false; then :
913794a251fdSmrg  $as_echo_n "(cached) " >&6
913894a251fdSmrgelse
913994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
914094a251fdSmrg/* end confdefs.h.  */
914194a251fdSmrgint i;
914294a251fdSmrgint
914394a251fdSmrgmain ()
914494a251fdSmrg{
914594a251fdSmrg
914694a251fdSmrg  ;
914794a251fdSmrg  return 0;
914894a251fdSmrg}
914994a251fdSmrg_ACEOF
915094a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
915194a251fdSmrg  eval $cacheid=yes
915294a251fdSmrgelse
915394a251fdSmrg  eval $cacheid=no
915494a251fdSmrgfi
915594a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
915694a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
915794a251fdSmrgfi
915894a251fdSmrg
915994a251fdSmrg
916094a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
916194a251fdSmrg
916294a251fdSmrg		eval supported=\$$cacheid
916394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
916494a251fdSmrg$as_echo "$supported" >&6; }
916594a251fdSmrg		if test "$supported" = "yes" ; then
916694a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
916794a251fdSmrg			found="yes"
916894a251fdSmrg		fi
916994a251fdSmrg	fi
917094a251fdSmrg
917194a251fdSmrg
917294a251fdSmrg
917394a251fdSmrg
917494a251fdSmrg
917594a251fdSmrg
917694a251fdSmrg
917794a251fdSmrg
917894a251fdSmrg
917994a251fdSmrg
918094a251fdSmrg
918194a251fdSmrg
918294a251fdSmrg
918394a251fdSmrg
918494a251fdSmrg
918594a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
918694a251fdSmrg
918794a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
918894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
918994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
919094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
919194a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
919294a251fdSmrg  $as_echo_n "(cached) " >&6
919394a251fdSmrgelse
919494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
919594a251fdSmrg/* end confdefs.h.  */
919694a251fdSmrgint i;
919794a251fdSmrg_ACEOF
919894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
919994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
920094a251fdSmrgelse
920194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
920294a251fdSmrgfi
920394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
920494a251fdSmrgfi
920594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
920694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
920794a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
920894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
920994a251fdSmrgfi
921094a251fdSmrg
921194a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
921294a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
921394a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
921494a251fdSmrg	fi
921594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
921694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
921794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
921894a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
921994a251fdSmrg  $as_echo_n "(cached) " >&6
922094a251fdSmrgelse
922194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
922294a251fdSmrg/* end confdefs.h.  */
922394a251fdSmrgint i;
922494a251fdSmrg_ACEOF
922594a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
922694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
922794a251fdSmrgelse
922894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
922994a251fdSmrgfi
923094a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
923194a251fdSmrgfi
923294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
923394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
923494a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
923594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
923694a251fdSmrgfi
923794a251fdSmrg
923894a251fdSmrgfound="no"
923994a251fdSmrg
924094a251fdSmrg	if test $found = "no" ; then
924194a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
924294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
924394a251fdSmrg		fi
924494a251fdSmrg
924594a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
924694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
924794a251fdSmrg		fi
924894a251fdSmrg
924994a251fdSmrg		CFLAGS="$CFLAGS -Warray-bounds"
925094a251fdSmrg
925194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
925294a251fdSmrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
925394a251fdSmrg		cacheid=xorg_cv_cc_flag__Warray_bounds
925494a251fdSmrg		if eval \${$cacheid+:} false; then :
925594a251fdSmrg  $as_echo_n "(cached) " >&6
925694a251fdSmrgelse
925794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
925894a251fdSmrg/* end confdefs.h.  */
925994a251fdSmrgint i;
926094a251fdSmrgint
926194a251fdSmrgmain ()
926294a251fdSmrg{
926394a251fdSmrg
926494a251fdSmrg  ;
926594a251fdSmrg  return 0;
926694a251fdSmrg}
926794a251fdSmrg_ACEOF
926894a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
926994a251fdSmrg  eval $cacheid=yes
927094a251fdSmrgelse
927194a251fdSmrg  eval $cacheid=no
927294a251fdSmrgfi
927394a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
927494a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
927594a251fdSmrgfi
927694a251fdSmrg
927794a251fdSmrg
927894a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
927994a251fdSmrg
928094a251fdSmrg		eval supported=\$$cacheid
928194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
928294a251fdSmrg$as_echo "$supported" >&6; }
928394a251fdSmrg		if test "$supported" = "yes" ; then
928494a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
928594a251fdSmrg			found="yes"
928694a251fdSmrg		fi
928794a251fdSmrg	fi
928894a251fdSmrg
928994a251fdSmrg
929094a251fdSmrg
929194a251fdSmrg
929294a251fdSmrg
929394a251fdSmrg
929494a251fdSmrg
929594a251fdSmrg
929694a251fdSmrg
929794a251fdSmrg
929894a251fdSmrg
929994a251fdSmrg
930094a251fdSmrg
930194a251fdSmrg
930294a251fdSmrg
930394a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
930494a251fdSmrg
930594a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
930694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
930794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
930894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
930994a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
931094a251fdSmrg  $as_echo_n "(cached) " >&6
931194a251fdSmrgelse
931294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
931394a251fdSmrg/* end confdefs.h.  */
931494a251fdSmrgint i;
931594a251fdSmrg_ACEOF
931694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
931794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
931894a251fdSmrgelse
931994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
932094a251fdSmrgfi
932194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
932294a251fdSmrgfi
932394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
932494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
932594a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
932694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
932794a251fdSmrgfi
932894a251fdSmrg
932994a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
933094a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
933194a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
933294a251fdSmrg	fi
933394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
933494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
933594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
933694a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
933794a251fdSmrg  $as_echo_n "(cached) " >&6
933894a251fdSmrgelse
933994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
934094a251fdSmrg/* end confdefs.h.  */
934194a251fdSmrgint i;
934294a251fdSmrg_ACEOF
934394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
934494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
934594a251fdSmrgelse
934694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
934794a251fdSmrgfi
934894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
934994a251fdSmrgfi
935094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
935194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
935294a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
935394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
935494a251fdSmrgfi
935594a251fdSmrg
935694a251fdSmrgfound="no"
935794a251fdSmrg
935894a251fdSmrg	if test $found = "no" ; then
935994a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
936094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
936194a251fdSmrg		fi
936294a251fdSmrg
936394a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
936494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
936594a251fdSmrg		fi
936694a251fdSmrg
936794a251fdSmrg		CFLAGS="$CFLAGS -Wwrite-strings"
936894a251fdSmrg
936994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
937094a251fdSmrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
937194a251fdSmrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
937294a251fdSmrg		if eval \${$cacheid+:} false; then :
937394a251fdSmrg  $as_echo_n "(cached) " >&6
937494a251fdSmrgelse
937594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
937694a251fdSmrg/* end confdefs.h.  */
937794a251fdSmrgint i;
937894a251fdSmrgint
937994a251fdSmrgmain ()
938094a251fdSmrg{
938194a251fdSmrg
938294a251fdSmrg  ;
938394a251fdSmrg  return 0;
938494a251fdSmrg}
938594a251fdSmrg_ACEOF
938694a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
938794a251fdSmrg  eval $cacheid=yes
938894a251fdSmrgelse
938994a251fdSmrg  eval $cacheid=no
939094a251fdSmrgfi
939194a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
939294a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
939394a251fdSmrgfi
939494a251fdSmrg
939594a251fdSmrg
939694a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
939794a251fdSmrg
939894a251fdSmrg		eval supported=\$$cacheid
939994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
940094a251fdSmrg$as_echo "$supported" >&6; }
940194a251fdSmrg		if test "$supported" = "yes" ; then
940294a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
940394a251fdSmrg			found="yes"
940494a251fdSmrg		fi
940594a251fdSmrg	fi
940694a251fdSmrg
940794a251fdSmrg
940894a251fdSmrg
940994a251fdSmrg
941094a251fdSmrg
941194a251fdSmrg
941294a251fdSmrg
941394a251fdSmrg
941494a251fdSmrg
941594a251fdSmrg
941694a251fdSmrg
941794a251fdSmrg
941894a251fdSmrg
941994a251fdSmrg
942094a251fdSmrg
942194a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
942294a251fdSmrg
942394a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
942494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
942594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
942694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
942794a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
942894a251fdSmrg  $as_echo_n "(cached) " >&6
942994a251fdSmrgelse
943094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
943194a251fdSmrg/* end confdefs.h.  */
943294a251fdSmrgint i;
943394a251fdSmrg_ACEOF
943494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
943594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
943694a251fdSmrgelse
943794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
943894a251fdSmrgfi
943994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
944094a251fdSmrgfi
944194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
944294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
944394a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
944494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
944594a251fdSmrgfi
944694a251fdSmrg
944794a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
944894a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
944994a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
945094a251fdSmrg	fi
945194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
945294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
945394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
945494a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
945594a251fdSmrg  $as_echo_n "(cached) " >&6
945694a251fdSmrgelse
945794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
945894a251fdSmrg/* end confdefs.h.  */
945994a251fdSmrgint i;
946094a251fdSmrg_ACEOF
946194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
946294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
946394a251fdSmrgelse
946494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
946594a251fdSmrgfi
946694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
946794a251fdSmrgfi
946894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
946994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
947094a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
947194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
947294a251fdSmrgfi
947394a251fdSmrg
947494a251fdSmrgfound="no"
947594a251fdSmrg
947694a251fdSmrg	if test $found = "no" ; then
947794a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
947894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
947994a251fdSmrg		fi
948094a251fdSmrg
948194a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
948294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
948394a251fdSmrg		fi
948494a251fdSmrg
948594a251fdSmrg		CFLAGS="$CFLAGS -Waddress"
948694a251fdSmrg
948794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
948894a251fdSmrg$as_echo_n "checking if $CC supports -Waddress... " >&6; }
948994a251fdSmrg		cacheid=xorg_cv_cc_flag__Waddress
949094a251fdSmrg		if eval \${$cacheid+:} false; then :
949194a251fdSmrg  $as_echo_n "(cached) " >&6
949294a251fdSmrgelse
949394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
949494a251fdSmrg/* end confdefs.h.  */
949594a251fdSmrgint i;
949694a251fdSmrgint
949794a251fdSmrgmain ()
949894a251fdSmrg{
949994a251fdSmrg
950094a251fdSmrg  ;
950194a251fdSmrg  return 0;
950294a251fdSmrg}
950394a251fdSmrg_ACEOF
950494a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
950594a251fdSmrg  eval $cacheid=yes
950694a251fdSmrgelse
950794a251fdSmrg  eval $cacheid=no
950894a251fdSmrgfi
950994a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
951094a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
951194a251fdSmrgfi
951294a251fdSmrg
951394a251fdSmrg
951494a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
951594a251fdSmrg
951694a251fdSmrg		eval supported=\$$cacheid
951794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
951894a251fdSmrg$as_echo "$supported" >&6; }
951994a251fdSmrg		if test "$supported" = "yes" ; then
952094a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
952194a251fdSmrg			found="yes"
952294a251fdSmrg		fi
952394a251fdSmrg	fi
952494a251fdSmrg
952594a251fdSmrg
952694a251fdSmrg
952794a251fdSmrg
952894a251fdSmrg
952994a251fdSmrg
953094a251fdSmrg
953194a251fdSmrg
953294a251fdSmrg
953394a251fdSmrg
953494a251fdSmrg
953594a251fdSmrg
953694a251fdSmrg
953794a251fdSmrg
953894a251fdSmrg
953994a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
954094a251fdSmrg
954194a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
954294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
954394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
954494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
954594a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
954694a251fdSmrg  $as_echo_n "(cached) " >&6
954794a251fdSmrgelse
954894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
954994a251fdSmrg/* end confdefs.h.  */
955094a251fdSmrgint i;
955194a251fdSmrg_ACEOF
955294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
955394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
955494a251fdSmrgelse
955594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
955694a251fdSmrgfi
955794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
955894a251fdSmrgfi
955994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
956094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
956194a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
956294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
956394a251fdSmrgfi
956494a251fdSmrg
956594a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
956694a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
956794a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
956894a251fdSmrg	fi
956994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
957094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
957194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
957294a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
957394a251fdSmrg  $as_echo_n "(cached) " >&6
957494a251fdSmrgelse
957594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
957694a251fdSmrg/* end confdefs.h.  */
957794a251fdSmrgint i;
957894a251fdSmrg_ACEOF
957994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
958094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
958194a251fdSmrgelse
958294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
958394a251fdSmrgfi
958494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
958594a251fdSmrgfi
958694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
958794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
958894a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
958994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
959094a251fdSmrgfi
959194a251fdSmrg
959294a251fdSmrgfound="no"
959394a251fdSmrg
959494a251fdSmrg	if test $found = "no" ; then
959594a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
959694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
959794a251fdSmrg		fi
959894a251fdSmrg
959994a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
960094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
960194a251fdSmrg		fi
960294a251fdSmrg
960394a251fdSmrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
960494a251fdSmrg
960594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
960694a251fdSmrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
960794a251fdSmrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
960894a251fdSmrg		if eval \${$cacheid+:} false; then :
960994a251fdSmrg  $as_echo_n "(cached) " >&6
961094a251fdSmrgelse
961194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
961294a251fdSmrg/* end confdefs.h.  */
961394a251fdSmrgint i;
961494a251fdSmrgint
961594a251fdSmrgmain ()
961694a251fdSmrg{
961794a251fdSmrg
961894a251fdSmrg  ;
961994a251fdSmrg  return 0;
962094a251fdSmrg}
962194a251fdSmrg_ACEOF
962294a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
962394a251fdSmrg  eval $cacheid=yes
962494a251fdSmrgelse
962594a251fdSmrg  eval $cacheid=no
962694a251fdSmrgfi
962794a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
962894a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
962994a251fdSmrgfi
963094a251fdSmrg
963194a251fdSmrg
963294a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
963394a251fdSmrg
963494a251fdSmrg		eval supported=\$$cacheid
963594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
963694a251fdSmrg$as_echo "$supported" >&6; }
963794a251fdSmrg		if test "$supported" = "yes" ; then
963894a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
963994a251fdSmrg			found="yes"
964094a251fdSmrg		fi
964194a251fdSmrg	fi
964294a251fdSmrg
964394a251fdSmrg
964494a251fdSmrg
964594a251fdSmrg
964694a251fdSmrg
964794a251fdSmrg
964894a251fdSmrg
964994a251fdSmrg
965094a251fdSmrg
965194a251fdSmrg
965294a251fdSmrg
965394a251fdSmrg
965494a251fdSmrg
965594a251fdSmrg
965694a251fdSmrg
965794a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
965894a251fdSmrg
965994a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
966094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
966194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
966294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
966394a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
966494a251fdSmrg  $as_echo_n "(cached) " >&6
966594a251fdSmrgelse
966694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
966794a251fdSmrg/* end confdefs.h.  */
966894a251fdSmrgint i;
966994a251fdSmrg_ACEOF
967094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
967194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
967294a251fdSmrgelse
967394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
967494a251fdSmrgfi
967594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
967694a251fdSmrgfi
967794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
967894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
967994a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
968094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
968194a251fdSmrgfi
968294a251fdSmrg
968394a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
968494a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
968594a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
968694a251fdSmrg	fi
968794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
968894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
968994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
969094a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
969194a251fdSmrg  $as_echo_n "(cached) " >&6
969294a251fdSmrgelse
969394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
969494a251fdSmrg/* end confdefs.h.  */
969594a251fdSmrgint i;
969694a251fdSmrg_ACEOF
969794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
969894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
969994a251fdSmrgelse
970094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
970194a251fdSmrgfi
970294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
970394a251fdSmrgfi
970494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
970594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
970694a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
970794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
970894a251fdSmrgfi
970994a251fdSmrg
971094a251fdSmrgfound="no"
971194a251fdSmrg
971294a251fdSmrg	if test $found = "no" ; then
971394a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
971494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
971594a251fdSmrg		fi
971694a251fdSmrg
971794a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
971894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
971994a251fdSmrg		fi
972094a251fdSmrg
972194a251fdSmrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
972294a251fdSmrg
972394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
972494a251fdSmrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
972594a251fdSmrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
972694a251fdSmrg		if eval \${$cacheid+:} false; then :
972794a251fdSmrg  $as_echo_n "(cached) " >&6
972894a251fdSmrgelse
972994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
973094a251fdSmrg/* end confdefs.h.  */
973194a251fdSmrgint i;
973294a251fdSmrgint
973394a251fdSmrgmain ()
973494a251fdSmrg{
973594a251fdSmrg
973694a251fdSmrg  ;
973794a251fdSmrg  return 0;
973894a251fdSmrg}
973994a251fdSmrg_ACEOF
974094a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
974194a251fdSmrg  eval $cacheid=yes
974294a251fdSmrgelse
974394a251fdSmrg  eval $cacheid=no
974494a251fdSmrgfi
974594a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
974694a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
974794a251fdSmrgfi
974894a251fdSmrg
974994a251fdSmrg
975094a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
975194a251fdSmrg
975294a251fdSmrg		eval supported=\$$cacheid
975394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
975494a251fdSmrg$as_echo "$supported" >&6; }
975594a251fdSmrg		if test "$supported" = "yes" ; then
975694a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
975794a251fdSmrg			found="yes"
975894a251fdSmrg		fi
975994a251fdSmrg	fi
976094a251fdSmrg
976194a251fdSmrg
976294a251fdSmrgfi
976394a251fdSmrg
976494a251fdSmrg
976594a251fdSmrg
976694a251fdSmrg
976794a251fdSmrg
976894a251fdSmrg
976994a251fdSmrg
977094a251fdSmrg		CWARNFLAGS="$BASE_CFLAGS"
977194a251fdSmrg		if  test "x$GCC" = xyes ; then
977294a251fdSmrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
977394a251fdSmrg		fi
977494a251fdSmrg
977594a251fdSmrg
977694a251fdSmrg
977794a251fdSmrg
977894a251fdSmrg
977994a251fdSmrg
978094a251fdSmrg
978194a251fdSmrg
978294a251fdSmrg# Check whether --enable-strict-compilation was given.
978394a251fdSmrgif test "${enable_strict_compilation+set}" = set; then :
978494a251fdSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
978594a251fdSmrgelse
978694a251fdSmrg  STRICT_COMPILE=no
978794a251fdSmrgfi
978894a251fdSmrg
978994a251fdSmrg
979094a251fdSmrg
979194a251fdSmrg
979294a251fdSmrg
979394a251fdSmrg
979494a251fdSmrgSTRICT_CFLAGS=""
979594a251fdSmrg
979694a251fdSmrg
979794a251fdSmrg
979894a251fdSmrg
979994a251fdSmrg
980094a251fdSmrg
980194a251fdSmrg
980294a251fdSmrg
980394a251fdSmrg
980494a251fdSmrg
980594a251fdSmrg
980694a251fdSmrg
980794a251fdSmrg
980894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
980994a251fdSmrg
981094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
981194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
981294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
981394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
981494a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
981594a251fdSmrg  $as_echo_n "(cached) " >&6
981694a251fdSmrgelse
981794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
981894a251fdSmrg/* end confdefs.h.  */
981994a251fdSmrgint i;
982094a251fdSmrg_ACEOF
982194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
982294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
982394a251fdSmrgelse
982494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
982594a251fdSmrgfi
982694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
982794a251fdSmrgfi
982894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
982994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
983094a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
983194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
983294a251fdSmrgfi
983394a251fdSmrg
983494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
983594a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
983694a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
983794a251fdSmrg	fi
983894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
983994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
984094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
984194a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
984294a251fdSmrg  $as_echo_n "(cached) " >&6
984394a251fdSmrgelse
984494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
984594a251fdSmrg/* end confdefs.h.  */
984694a251fdSmrgint i;
984794a251fdSmrg_ACEOF
984894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
984994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
985094a251fdSmrgelse
985194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
985294a251fdSmrgfi
985394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
985494a251fdSmrgfi
985594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
985694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
985794a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
985894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
985994a251fdSmrgfi
986094a251fdSmrg
986194a251fdSmrgfound="no"
9862e6232409Smrg
986394a251fdSmrg	if test $found = "no" ; then
986494a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
986594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
986694a251fdSmrg		fi
986794a251fdSmrg
986894a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
986994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
987094a251fdSmrg		fi
987194a251fdSmrg
987294a251fdSmrg		CFLAGS="$CFLAGS -pedantic"
987394a251fdSmrg
987494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
987594a251fdSmrg$as_echo_n "checking if $CC supports -pedantic... " >&6; }
987694a251fdSmrg		cacheid=xorg_cv_cc_flag__pedantic
987794a251fdSmrg		if eval \${$cacheid+:} false; then :
98788fff3f40Smrg  $as_echo_n "(cached) " >&6
9879e6232409Smrgelse
98808fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881e6232409Smrg/* end confdefs.h.  */
988294a251fdSmrgint i;
9883e6232409Smrgint
9884e6232409Smrgmain ()
9885e6232409Smrg{
9886e6232409Smrg
9887e6232409Smrg  ;
9888e6232409Smrg  return 0;
9889e6232409Smrg}
9890e6232409Smrg_ACEOF
989194a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
989294a251fdSmrg  eval $cacheid=yes
989394a251fdSmrgelse
989494a251fdSmrg  eval $cacheid=no
989594a251fdSmrgfi
989694a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
989794a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
989894a251fdSmrgfi
989994a251fdSmrg
990094a251fdSmrg
990194a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
990294a251fdSmrg
990394a251fdSmrg		eval supported=\$$cacheid
990494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
990594a251fdSmrg$as_echo "$supported" >&6; }
990694a251fdSmrg		if test "$supported" = "yes" ; then
990794a251fdSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
990894a251fdSmrg			found="yes"
990994a251fdSmrg		fi
991094a251fdSmrg	fi
991194a251fdSmrg
991294a251fdSmrg
991394a251fdSmrg
991494a251fdSmrg
991594a251fdSmrg
991694a251fdSmrg
991794a251fdSmrg
991894a251fdSmrg
991994a251fdSmrg
992094a251fdSmrg
992194a251fdSmrg
992294a251fdSmrg
992394a251fdSmrg
992494a251fdSmrg
992594a251fdSmrg
992694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
992794a251fdSmrg
992894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
992994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
993094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
993194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
993294a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
993394a251fdSmrg  $as_echo_n "(cached) " >&6
993494a251fdSmrgelse
993594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
993694a251fdSmrg/* end confdefs.h.  */
993794a251fdSmrgint i;
993894a251fdSmrg_ACEOF
99398fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
994094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9941e6232409Smrgelse
994294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9943e6232409Smrgfi
9944e6232409Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9945e6232409Smrgfi
994694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
994794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
994894a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
994994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
99508fff3f40Smrgfi
995194a251fdSmrg
995294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
995394a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
995494a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
995594a251fdSmrg	fi
995694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
995794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
995894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
995994a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
99608fff3f40Smrg  $as_echo_n "(cached) " >&6
9961e6232409Smrgelse
996294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963e6232409Smrg/* end confdefs.h.  */
996494a251fdSmrgint i;
9965e6232409Smrg_ACEOF
99668fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
996794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9968e6232409Smrgelse
996994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
997094a251fdSmrgfi
997194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
997294a251fdSmrgfi
997394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
997494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
997594a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
997694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
997794a251fdSmrgfi
997894a251fdSmrg
997994a251fdSmrgfound="no"
9980e6232409Smrg
998194a251fdSmrg	if test $found = "no" ; then
998294a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
998394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
998494a251fdSmrg		fi
998594a251fdSmrg
998694a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
998794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
998894a251fdSmrg		fi
998994a251fdSmrg
999094a251fdSmrg		CFLAGS="$CFLAGS -Werror"
999194a251fdSmrg
999294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
999394a251fdSmrg$as_echo_n "checking if $CC supports -Werror... " >&6; }
999494a251fdSmrg		cacheid=xorg_cv_cc_flag__Werror
999594a251fdSmrg		if eval \${$cacheid+:} false; then :
999694a251fdSmrg  $as_echo_n "(cached) " >&6
999794a251fdSmrgelse
999894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
999994a251fdSmrg/* end confdefs.h.  */
1000094a251fdSmrgint i;
10001e6232409Smrgint
10002e6232409Smrgmain ()
10003e6232409Smrg{
10004e6232409Smrg
10005e6232409Smrg  ;
100068fff3f40Smrg  return 0;
100078fff3f40Smrg}
100088fff3f40Smrg_ACEOF
1000994a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
1001094a251fdSmrg  eval $cacheid=yes
1001194a251fdSmrgelse
1001294a251fdSmrg  eval $cacheid=no
1001394a251fdSmrgfi
1001494a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
1001594a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
1001694a251fdSmrgfi
1001794a251fdSmrg
100188fff3f40Smrg
1001994a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
1002094a251fdSmrg
1002194a251fdSmrg		eval supported=\$$cacheid
1002294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1002394a251fdSmrg$as_echo "$supported" >&6; }
1002494a251fdSmrg		if test "$supported" = "yes" ; then
1002594a251fdSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
1002694a251fdSmrg			found="yes"
1002794a251fdSmrg		fi
1002894a251fdSmrg	fi
1002994a251fdSmrg
1003094a251fdSmrg	if test $found = "no" ; then
1003194a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1003294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1003394a251fdSmrg		fi
1003494a251fdSmrg
1003594a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1003694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1003794a251fdSmrg		fi
1003894a251fdSmrg
1003994a251fdSmrg		CFLAGS="$CFLAGS -errwarn"
1004094a251fdSmrg
1004194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
1004294a251fdSmrg$as_echo_n "checking if $CC supports -errwarn... " >&6; }
1004394a251fdSmrg		cacheid=xorg_cv_cc_flag__errwarn
1004494a251fdSmrg		if eval \${$cacheid+:} false; then :
1004594a251fdSmrg  $as_echo_n "(cached) " >&6
10046e6232409Smrgelse
1004794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100488fff3f40Smrg/* end confdefs.h.  */
1004994a251fdSmrgint i;
100508fff3f40Smrgint
100518fff3f40Smrgmain ()
100528fff3f40Smrg{
10053e6232409Smrg
100548fff3f40Smrg  ;
100558fff3f40Smrg  return 0;
100568fff3f40Smrg}
100578fff3f40Smrg_ACEOF
1005894a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
1005994a251fdSmrg  eval $cacheid=yes
1006094a251fdSmrgelse
1006194a251fdSmrg  eval $cacheid=no
1006294a251fdSmrgfi
1006394a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
1006494a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
1006594a251fdSmrgfi
1006694a251fdSmrg
1006794a251fdSmrg
1006894a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
1006994a251fdSmrg
1007094a251fdSmrg		eval supported=\$$cacheid
1007194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1007294a251fdSmrg$as_echo "$supported" >&6; }
1007394a251fdSmrg		if test "$supported" = "yes" ; then
1007494a251fdSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
1007594a251fdSmrg			found="yes"
1007694a251fdSmrg		fi
1007794a251fdSmrg	fi
1007894a251fdSmrg
1007994a251fdSmrg
1008094a251fdSmrg
1008194a251fdSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
1008294a251fdSmrg# activate it with -Werror, so we add it here explicitly.
1008394a251fdSmrg
1008494a251fdSmrg
1008594a251fdSmrg
1008694a251fdSmrg
1008794a251fdSmrg
1008894a251fdSmrg
1008994a251fdSmrg
1009094a251fdSmrg
1009194a251fdSmrg
1009294a251fdSmrg
1009394a251fdSmrg
1009494a251fdSmrg
1009594a251fdSmrg
1009694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
1009794a251fdSmrg
1009894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1009994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1010094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1010194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1010294a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1010394a251fdSmrg  $as_echo_n "(cached) " >&6
1010494a251fdSmrgelse
1010594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1010694a251fdSmrg/* end confdefs.h.  */
1010794a251fdSmrgint i;
1010894a251fdSmrg_ACEOF
101098fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
1011094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1011194a251fdSmrgelse
1011294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10113e6232409Smrgfi
10114e6232409Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10115e6232409Smrgfi
1011694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1011794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1011894a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1011994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
1012094a251fdSmrgfi
1012194a251fdSmrg
1012294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1012394a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1012494a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1012594a251fdSmrg	fi
1012694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1012794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1012894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1012994a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1013094a251fdSmrg  $as_echo_n "(cached) " >&6
1013194a251fdSmrgelse
1013294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1013394a251fdSmrg/* end confdefs.h.  */
1013494a251fdSmrgint i;
1013594a251fdSmrg_ACEOF
1013694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
1013794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1013894a251fdSmrgelse
1013994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10140e6232409Smrgfi
10141e6232409Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10142e6232409Smrgfi
1014394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1014494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1014594a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1014694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10147e6232409Smrgfi
1014894a251fdSmrg
1014994a251fdSmrgfound="no"
1015094a251fdSmrg
1015194a251fdSmrg	if test $found = "no" ; then
1015294a251fdSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1015394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1015494a251fdSmrg		fi
1015594a251fdSmrg
1015694a251fdSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1015794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1015894a251fdSmrg		fi
1015994a251fdSmrg
1016094a251fdSmrg		CFLAGS="$CFLAGS -Werror=attributes"
1016194a251fdSmrg
1016294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
1016394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
1016494a251fdSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
1016594a251fdSmrg		if eval \${$cacheid+:} false; then :
101668fff3f40Smrg  $as_echo_n "(cached) " >&6
10167e6232409Smrgelse
1016894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169e6232409Smrg/* end confdefs.h.  */
1017094a251fdSmrgint i;
1017194a251fdSmrgint
1017294a251fdSmrgmain ()
10173e6232409Smrg{
1017494a251fdSmrg
1017594a251fdSmrg  ;
1017694a251fdSmrg  return 0;
10177e6232409Smrg}
1017894a251fdSmrg_ACEOF
1017994a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
1018094a251fdSmrg  eval $cacheid=yes
1018194a251fdSmrgelse
1018294a251fdSmrg  eval $cacheid=no
1018394a251fdSmrgfi
1018494a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
1018594a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
1018694a251fdSmrgfi
1018794a251fdSmrg
1018894a251fdSmrg
1018994a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
1019094a251fdSmrg
1019194a251fdSmrg		eval supported=\$$cacheid
1019294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1019394a251fdSmrg$as_echo "$supported" >&6; }
1019494a251fdSmrg		if test "$supported" = "yes" ; then
1019594a251fdSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
1019694a251fdSmrg			found="yes"
1019794a251fdSmrg		fi
1019894a251fdSmrg	fi
1019994a251fdSmrg
1020094a251fdSmrg
1020194a251fdSmrg
1020294a251fdSmrgif test "x$STRICT_COMPILE" = "xyes"; then
1020394a251fdSmrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
1020494a251fdSmrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
1020594a251fdSmrgfi
1020694a251fdSmrg
1020794a251fdSmrg
1020894a251fdSmrg
1020994a251fdSmrg
1021094a251fdSmrg
1021194a251fdSmrg
1021294a251fdSmrgcat >>confdefs.h <<_ACEOF
1021394a251fdSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
1021494a251fdSmrg_ACEOF
1021594a251fdSmrg
1021694a251fdSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
1021794a251fdSmrg	if test "x$PVM" = "x"; then
1021894a251fdSmrg		PVM="0"
1021994a251fdSmrg	fi
1022094a251fdSmrg
1022194a251fdSmrgcat >>confdefs.h <<_ACEOF
1022294a251fdSmrg#define PACKAGE_VERSION_MINOR $PVM
1022394a251fdSmrg_ACEOF
1022494a251fdSmrg
1022594a251fdSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
1022694a251fdSmrg	if test "x$PVP" = "x"; then
1022794a251fdSmrg		PVP="0"
1022894a251fdSmrg	fi
1022994a251fdSmrg
1023094a251fdSmrgcat >>confdefs.h <<_ACEOF
1023194a251fdSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
1023294a251fdSmrg_ACEOF
1023394a251fdSmrg
1023494a251fdSmrg
1023594a251fdSmrg
1023694a251fdSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
1023794a251fdSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
1023894a251fdSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
1023994a251fdSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
1024094a251fdSmrg
1024194a251fdSmrg
1024294a251fdSmrg
1024394a251fdSmrg
1024494a251fdSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
1024594a251fdSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
1024694a251fdSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
1024794a251fdSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
1024894a251fdSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
1024994a251fdSmrg
1025094a251fdSmrg
1025194a251fdSmrg
1025294a251fdSmrg
1025394a251fdSmrg
10254e6232409Smrg
1025594a251fdSmrgif test x$APP_MAN_SUFFIX = x    ; then
1025694a251fdSmrg    APP_MAN_SUFFIX=1
1025794a251fdSmrgfi
1025894a251fdSmrgif test x$APP_MAN_DIR = x    ; then
1025994a251fdSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
1026094a251fdSmrgfi
10261e6232409Smrg
1026294a251fdSmrgif test x$LIB_MAN_SUFFIX = x    ; then
1026394a251fdSmrg    LIB_MAN_SUFFIX=3
1026494a251fdSmrgfi
1026594a251fdSmrgif test x$LIB_MAN_DIR = x    ; then
1026694a251fdSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
1026794a251fdSmrgfi
10268e6232409Smrg
1026994a251fdSmrgif test x$FILE_MAN_SUFFIX = x    ; then
1027094a251fdSmrg    case $host_os in
1027194a251fdSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
1027294a251fdSmrg	*)		FILE_MAN_SUFFIX=5  ;;
1027394a251fdSmrg    esac
1027494a251fdSmrgfi
1027594a251fdSmrgif test x$FILE_MAN_DIR = x    ; then
1027694a251fdSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10277e6232409Smrgfi
10278e6232409Smrg
1027994a251fdSmrgif test x$MISC_MAN_SUFFIX = x    ; then
1028094a251fdSmrg    case $host_os in
1028194a251fdSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
1028294a251fdSmrg	*)		MISC_MAN_SUFFIX=7  ;;
1028394a251fdSmrg    esac
1028494a251fdSmrgfi
1028594a251fdSmrgif test x$MISC_MAN_DIR = x    ; then
1028694a251fdSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10287e6232409Smrgfi
10288e6232409Smrg
1028994a251fdSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
1029094a251fdSmrg    case $host_os in
1029194a251fdSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
1029294a251fdSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
1029394a251fdSmrg    esac
1029494a251fdSmrgfi
1029594a251fdSmrgif test x$DRIVER_MAN_DIR = x    ; then
1029694a251fdSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
102978fff3f40Smrgfi
10298e6232409Smrg
1029994a251fdSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
1030094a251fdSmrg    case $host_os in
1030194a251fdSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
1030294a251fdSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
1030394a251fdSmrg    esac
1030494a251fdSmrgfi
1030594a251fdSmrgif test x$ADMIN_MAN_DIR = x    ; then
1030694a251fdSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
1030794a251fdSmrgfi
10308e6232409Smrg
10309e6232409Smrg
10310e6232409Smrg
103118fff3f40Smrg
10312e6232409Smrg
10313e6232409Smrg
10314e6232409Smrg
10315e6232409Smrg
1031694a251fdSmrg
1031794a251fdSmrg
1031894a251fdSmrg
1031994a251fdSmrg
1032094a251fdSmrg
1032194a251fdSmrg
1032294a251fdSmrg
1032394a251fdSmrgXORG_MAN_PAGE="X Version 11"
1032494a251fdSmrg
1032594a251fdSmrgMAN_SUBSTS="\
1032694a251fdSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1032794a251fdSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1032894a251fdSmrg	-e 's|__xservername__|Xorg|g' \
1032994a251fdSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
1033094a251fdSmrg	-e 's|__projectroot__|\$(prefix)|g' \
1033194a251fdSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
1033294a251fdSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
1033394a251fdSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
1033494a251fdSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
1033594a251fdSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
1033694a251fdSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
1033794a251fdSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
1033894a251fdSmrg
1033994a251fdSmrg
1034094a251fdSmrg
1034194a251fdSmrg# Check whether --enable-silent-rules was given.
1034294a251fdSmrgif test "${enable_silent_rules+set}" = set; then :
1034394a251fdSmrg  enableval=$enable_silent_rules;
10344e6232409Smrgfi
10345e6232409Smrg
1034694a251fdSmrgcase $enable_silent_rules in
1034794a251fdSmrgyes) AM_DEFAULT_VERBOSITY=0;;
1034894a251fdSmrgno)  AM_DEFAULT_VERBOSITY=1;;
1034994a251fdSmrg*)   AM_DEFAULT_VERBOSITY=0;;
1035094a251fdSmrgesac
1035194a251fdSmrgAM_BACKSLASH='\'
1035294a251fdSmrg
10353e6232409Smrg
103548fff3f40Smrg
1035594a251fdSmrgac_config_headers="$ac_config_headers config.h"
103568fff3f40Smrg
103578fff3f40Smrg
103588fff3f40Smrg# Checks for pkg-config packages
103598fff3f40Smrg
103608fff3f40Smrgpkg_failed=no
103618fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLSFONTS" >&5
103628fff3f40Smrg$as_echo_n "checking for XLSFONTS... " >&6; }
103638fff3f40Smrg
103648fff3f40Smrgif test -n "$XLSFONTS_CFLAGS"; then
103658fff3f40Smrg    pkg_cv_XLSFONTS_CFLAGS="$XLSFONTS_CFLAGS"
103668fff3f40Smrg elif test -n "$PKG_CONFIG"; then
103678fff3f40Smrg    if test -n "$PKG_CONFIG" && \
1036894a251fdSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
1036994a251fdSmrg  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
10370e6232409Smrg  ac_status=$?
103718fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
103728fff3f40Smrg  test $ac_status = 0; }; then
1037394a251fdSmrg  pkg_cv_XLSFONTS_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
10374e6232409Smrgelse
10375e6232409Smrg  pkg_failed=yes
10376e6232409Smrgfi
103778fff3f40Smrg else
103788fff3f40Smrg    pkg_failed=untried
10379e6232409Smrgfi
103808fff3f40Smrgif test -n "$XLSFONTS_LIBS"; then
103818fff3f40Smrg    pkg_cv_XLSFONTS_LIBS="$XLSFONTS_LIBS"
103828fff3f40Smrg elif test -n "$PKG_CONFIG"; then
103838fff3f40Smrg    if test -n "$PKG_CONFIG" && \
1038494a251fdSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
1038594a251fdSmrg  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
10386e6232409Smrg  ac_status=$?
103878fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
103888fff3f40Smrg  test $ac_status = 0; }; then
1038994a251fdSmrg  pkg_cv_XLSFONTS_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
10390e6232409Smrgelse
10391e6232409Smrg  pkg_failed=yes
10392e6232409Smrgfi
103938fff3f40Smrg else
103948fff3f40Smrg    pkg_failed=untried
10395e6232409Smrgfi
10396e6232409Smrg
103978fff3f40Smrg
103988fff3f40Smrg
10399e6232409Smrgif test $pkg_failed = yes; then
104008fff3f40Smrg
104018fff3f40Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
104028fff3f40Smrg        _pkg_short_errors_supported=yes
104038fff3f40Smrgelse
104048fff3f40Smrg        _pkg_short_errors_supported=no
104058fff3f40Smrgfi
104068fff3f40Smrg        if test $_pkg_short_errors_supported = yes; then
1040794a251fdSmrg	        XLSFONTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xproto >= 7.0.17" 2>&1`
104088fff3f40Smrg        else
1040994a251fdSmrg	        XLSFONTS_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xproto >= 7.0.17" 2>&1`
104108fff3f40Smrg        fi
10411e6232409Smrg	# Put the nasty error message in config.log where it belongs
104128fff3f40Smrg	echo "$XLSFONTS_PKG_ERRORS" >&5
10413e6232409Smrg
1041494a251fdSmrg	as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
104158fff3f40Smrg
104168fff3f40Smrg$XLSFONTS_PKG_ERRORS
10417e6232409Smrg
10418e6232409SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
10419e6232409Smrginstalled software in a non-standard prefix.
10420e6232409Smrg
104218fff3f40SmrgAlternatively, you may set the environment variables XLSFONTS_CFLAGS
104228fff3f40Smrgand XLSFONTS_LIBS to avoid the need to call pkg-config.
1042394a251fdSmrgSee the pkg-config man page for more details.
1042494a251fdSmrg" "$LINENO" 5
10425e6232409Smrgelif test $pkg_failed = untried; then
104268fff3f40Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
104278fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1042894a251fdSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10429e6232409Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
10430e6232409Smrgpath to pkg-config.
10431e6232409Smrg
104328fff3f40SmrgAlternatively, you may set the environment variables XLSFONTS_CFLAGS
104338fff3f40Smrgand XLSFONTS_LIBS to avoid the need to call pkg-config.
104348fff3f40SmrgSee the pkg-config man page for more details.
10435e6232409Smrg
104368fff3f40SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
1043794a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
10438e6232409Smrgelse
10439e6232409Smrg	XLSFONTS_CFLAGS=$pkg_cv_XLSFONTS_CFLAGS
10440e6232409Smrg	XLSFONTS_LIBS=$pkg_cv_XLSFONTS_LIBS
104418fff3f40Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
104428fff3f40Smrg$as_echo "yes" >&6; }
1044394a251fdSmrg	:
10444e6232409Smrgfi
10445e6232409Smrg
1044694a251fdSmrgac_config_files="$ac_config_files Makefile man/Makefile"
10447e6232409Smrg
10448e6232409Smrgcat >confcache <<\_ACEOF
10449e6232409Smrg# This file is a shell script that caches the results of configure
10450e6232409Smrg# tests run on this system so they can be shared between configure
10451e6232409Smrg# scripts and configure runs, see configure's option --config-cache.
10452e6232409Smrg# It is not useful on other systems.  If it contains results you don't
10453e6232409Smrg# want to keep, you may remove or edit it.
10454e6232409Smrg#
10455e6232409Smrg# config.status only pays attention to the cache file if you give it
10456e6232409Smrg# the --recheck option to rerun configure.
10457e6232409Smrg#
10458e6232409Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
10459e6232409Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
10460e6232409Smrg# following values.
10461e6232409Smrg
10462e6232409Smrg_ACEOF
10463e6232409Smrg
10464e6232409Smrg# The following way of writing the cache mishandles newlines in values,
10465e6232409Smrg# but we know of no workaround that is simple, portable, and efficient.
10466e6232409Smrg# So, we kill variables containing newlines.
10467e6232409Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
10468e6232409Smrg# and sets the high bit in the cache file unless we assign to the vars.
10469e6232409Smrg(
10470e6232409Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10471e6232409Smrg    eval ac_val=\$$ac_var
10472e6232409Smrg    case $ac_val in #(
10473e6232409Smrg    *${as_nl}*)
10474e6232409Smrg      case $ac_var in #(
104758fff3f40Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
104768fff3f40Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10477e6232409Smrg      esac
10478e6232409Smrg      case $ac_var in #(
10479e6232409Smrg      _ | IFS | as_nl) ;; #(
104808fff3f40Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
104818fff3f40Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
10482e6232409Smrg      esac ;;
10483e6232409Smrg    esac
10484e6232409Smrg  done
10485e6232409Smrg
10486e6232409Smrg  (set) 2>&1 |
10487e6232409Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10488e6232409Smrg    *${as_nl}ac_space=\ *)
104898fff3f40Smrg      # `set' does not quote correctly, so add quotes: double-quote
104908fff3f40Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
10491e6232409Smrg      sed -n \
10492e6232409Smrg	"s/'/'\\\\''/g;
10493e6232409Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10494e6232409Smrg      ;; #(
10495e6232409Smrg    *)
10496e6232409Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
10497e6232409Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10498e6232409Smrg      ;;
10499e6232409Smrg    esac |
10500e6232409Smrg    sort
10501e6232409Smrg) |
10502e6232409Smrg  sed '
10503e6232409Smrg     /^ac_cv_env_/b end
10504e6232409Smrg     t clear
10505e6232409Smrg     :clear
10506e6232409Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10507e6232409Smrg     t end
10508e6232409Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10509e6232409Smrg     :end' >>confcache
10510e6232409Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10511e6232409Smrg  if test -w "$cache_file"; then
1051294a251fdSmrg    if test "x$cache_file" != "x/dev/null"; then
105138fff3f40Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
105148fff3f40Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
1051594a251fdSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
1051694a251fdSmrg	cat confcache >"$cache_file"
1051794a251fdSmrg      else
1051894a251fdSmrg        case $cache_file in #(
1051994a251fdSmrg        */* | ?:*)
1052094a251fdSmrg	  mv -f confcache "$cache_file"$$ &&
1052194a251fdSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
1052294a251fdSmrg        *)
1052394a251fdSmrg	  mv -f confcache "$cache_file" ;;
1052494a251fdSmrg	esac
1052594a251fdSmrg      fi
1052694a251fdSmrg    fi
10527e6232409Smrg  else
105288fff3f40Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
105298fff3f40Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10530e6232409Smrg  fi
10531e6232409Smrgfi
10532e6232409Smrgrm -f confcache
10533e6232409Smrg
10534e6232409Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
10535e6232409Smrg# Let make expand exec_prefix.
10536e6232409Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10537e6232409Smrg
10538e6232409SmrgDEFS=-DHAVE_CONFIG_H
10539e6232409Smrg
10540e6232409Smrgac_libobjs=
10541e6232409Smrgac_ltlibobjs=
1054294a251fdSmrgU=
10543e6232409Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10544e6232409Smrg  # 1. Remove the extension, and $U if already installed.
10545e6232409Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
105468fff3f40Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10547e6232409Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10548e6232409Smrg  #    will be set to the directory where LIBOBJS objects are built.
105498fff3f40Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
105508fff3f40Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10551e6232409Smrgdone
10552e6232409SmrgLIBOBJS=$ac_libobjs
10553e6232409Smrg
10554e6232409SmrgLTLIBOBJS=$ac_ltlibobjs
10555e6232409Smrg
10556e6232409Smrg
105578fff3f40Smrg if test -n "$EXEEXT"; then
105588fff3f40Smrg  am__EXEEXT_TRUE=
105598fff3f40Smrg  am__EXEEXT_FALSE='#'
105608fff3f40Smrgelse
105618fff3f40Smrg  am__EXEEXT_TRUE='#'
105628fff3f40Smrg  am__EXEEXT_FALSE=
105638fff3f40Smrgfi
105648fff3f40Smrg
10565e6232409Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
1056694a251fdSmrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
105678fff3f40SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
10568e6232409Smrgfi
10569e6232409Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1057094a251fdSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
105718fff3f40SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
10572e6232409Smrgfi
10573e6232409Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1057494a251fdSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
105758fff3f40SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
10576e6232409Smrgfi
10577e6232409Smrg
1057894a251fdSmrg: "${CONFIG_STATUS=./config.status}"
105798fff3f40Smrgac_write_fail=0
10580e6232409Smrgac_clean_files_save=$ac_clean_files
10581e6232409Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
105828fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
105838fff3f40Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
105848fff3f40Smrgas_write_fail=0
105858fff3f40Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10586e6232409Smrg#! $SHELL
10587e6232409Smrg# Generated by $as_me.
10588e6232409Smrg# Run this file to recreate the current configuration.
10589e6232409Smrg# Compiler output produced by configure, useful for debugging
10590e6232409Smrg# configure, is in config.log if it exists.
10591e6232409Smrg
10592e6232409Smrgdebug=false
10593e6232409Smrgac_cs_recheck=false
10594e6232409Smrgac_cs_silent=false
10595e6232409Smrg
105968fff3f40SmrgSHELL=\${CONFIG_SHELL-$SHELL}
105978fff3f40Smrgexport SHELL
105988fff3f40Smrg_ASEOF
105998fff3f40Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
106008fff3f40Smrg## -------------------- ##
106018fff3f40Smrg## M4sh Initialization. ##
106028fff3f40Smrg## -------------------- ##
10603e6232409Smrg
106048fff3f40Smrg# Be more Bourne compatible
106058fff3f40SmrgDUALCASE=1; export DUALCASE # for MKS sh
106068fff3f40Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10607e6232409Smrg  emulate sh
10608e6232409Smrg  NULLCMD=:
106098fff3f40Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10610e6232409Smrg  # is contrary to our usage.  Disable this feature.
10611e6232409Smrg  alias -g '${1+"$@"}'='"$@"'
10612e6232409Smrg  setopt NO_GLOB_SUBST
10613e6232409Smrgelse
106148fff3f40Smrg  case `(set -o) 2>/dev/null` in #(
106158fff3f40Smrg  *posix*) :
106168fff3f40Smrg    set -o posix ;; #(
106178fff3f40Smrg  *) :
106188fff3f40Smrg     ;;
106198fff3f40Smrgesac
10620e6232409Smrgfi
10621e6232409Smrg
10622e6232409Smrg
106238fff3f40Smrgas_nl='
106248fff3f40Smrg'
106258fff3f40Smrgexport as_nl
106268fff3f40Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
106278fff3f40Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
106288fff3f40Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
106298fff3f40Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
106308fff3f40Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
106318fff3f40Smrg# but without wasting forks for bash or zsh.
106328fff3f40Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
106338fff3f40Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
106348fff3f40Smrg  as_echo='print -r --'
106358fff3f40Smrg  as_echo_n='print -rn --'
106368fff3f40Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
106378fff3f40Smrg  as_echo='printf %s\n'
106388fff3f40Smrg  as_echo_n='printf %s'
106398fff3f40Smrgelse
106408fff3f40Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
106418fff3f40Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
106428fff3f40Smrg    as_echo_n='/usr/ucb/echo -n'
10643e6232409Smrg  else
106448fff3f40Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
106458fff3f40Smrg    as_echo_n_body='eval
106468fff3f40Smrg      arg=$1;
106478fff3f40Smrg      case $arg in #(
106488fff3f40Smrg      *"$as_nl"*)
106498fff3f40Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
106508fff3f40Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
106518fff3f40Smrg      esac;
106528fff3f40Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
106538fff3f40Smrg    '
106548fff3f40Smrg    export as_echo_n_body
106558fff3f40Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
10656e6232409Smrg  fi
106578fff3f40Smrg  export as_echo_body
106588fff3f40Smrg  as_echo='sh -c $as_echo_body as_echo'
10659e6232409Smrgfi
10660e6232409Smrg
106618fff3f40Smrg# The user is always right.
106628fff3f40Smrgif test "${PATH_SEPARATOR+set}" != set; then
106638fff3f40Smrg  PATH_SEPARATOR=:
106648fff3f40Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
106658fff3f40Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
106668fff3f40Smrg      PATH_SEPARATOR=';'
106678fff3f40Smrg  }
10668e6232409Smrgfi
10669e6232409Smrg
10670e6232409Smrg
10671e6232409Smrg# IFS
10672e6232409Smrg# We need space, tab and new line, in precisely that order.  Quoting is
10673e6232409Smrg# there to prevent editors from complaining about space-tab.
10674e6232409Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10675e6232409Smrg# splitting by setting IFS to empty value.)
10676e6232409SmrgIFS=" ""	$as_nl"
10677e6232409Smrg
10678e6232409Smrg# Find who we are.  Look in the path if we contain no directory separator.
1067994a251fdSmrgas_myself=
106808fff3f40Smrgcase $0 in #((
10681e6232409Smrg  *[\\/]* ) as_myself=$0 ;;
10682e6232409Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683e6232409Smrgfor as_dir in $PATH
10684e6232409Smrgdo
10685e6232409Smrg  IFS=$as_save_IFS
10686e6232409Smrg  test -z "$as_dir" && as_dir=.
106878fff3f40Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106888fff3f40Smrg  done
10689e6232409SmrgIFS=$as_save_IFS
10690e6232409Smrg
10691e6232409Smrg     ;;
10692e6232409Smrgesac
10693e6232409Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
10694e6232409Smrg# in which case we are not to be found in the path.
10695e6232409Smrgif test "x$as_myself" = x; then
10696e6232409Smrg  as_myself=$0
10697e6232409Smrgfi
10698e6232409Smrgif test ! -f "$as_myself"; then
106998fff3f40Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
107008fff3f40Smrg  exit 1
10701e6232409Smrgfi
10702e6232409Smrg
107038fff3f40Smrg# Unset variables that we do not need and which cause bugs (e.g. in
107048fff3f40Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
107058fff3f40Smrg# suppresses any "Segmentation fault" message there.  '((' could
107068fff3f40Smrg# trigger a bug in pdksh 5.2.14.
107078fff3f40Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
107088fff3f40Smrgdo eval test x\${$as_var+set} = xset \
107098fff3f40Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10710e6232409Smrgdone
10711e6232409SmrgPS1='$ '
10712e6232409SmrgPS2='> '
10713e6232409SmrgPS4='+ '
10714e6232409Smrg
10715e6232409Smrg# NLS nuisances.
107168fff3f40SmrgLC_ALL=C
107178fff3f40Smrgexport LC_ALL
107188fff3f40SmrgLANGUAGE=C
107198fff3f40Smrgexport LANGUAGE
107208fff3f40Smrg
107218fff3f40Smrg# CDPATH.
107228fff3f40Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
107238fff3f40Smrg
107248fff3f40Smrg
1072594a251fdSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
1072694a251fdSmrg# ----------------------------------------
107278fff3f40Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
107288fff3f40Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1072994a251fdSmrg# script with STATUS, using 1 if that was 0.
107308fff3f40Smrgas_fn_error ()
107318fff3f40Smrg{
1073294a251fdSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
1073394a251fdSmrg  if test "$4"; then
1073494a251fdSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1073594a251fdSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10736e6232409Smrg  fi
1073794a251fdSmrg  $as_echo "$as_me: error: $2" >&2
107388fff3f40Smrg  as_fn_exit $as_status
107398fff3f40Smrg} # as_fn_error
107408fff3f40Smrg
107418fff3f40Smrg
107428fff3f40Smrg# as_fn_set_status STATUS
107438fff3f40Smrg# -----------------------
107448fff3f40Smrg# Set $? to STATUS, without forking.
107458fff3f40Smrgas_fn_set_status ()
107468fff3f40Smrg{
107478fff3f40Smrg  return $1
107488fff3f40Smrg} # as_fn_set_status
107498fff3f40Smrg
107508fff3f40Smrg# as_fn_exit STATUS
107518fff3f40Smrg# -----------------
107528fff3f40Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
107538fff3f40Smrgas_fn_exit ()
107548fff3f40Smrg{
107558fff3f40Smrg  set +e
107568fff3f40Smrg  as_fn_set_status $1
107578fff3f40Smrg  exit $1
107588fff3f40Smrg} # as_fn_exit
107598fff3f40Smrg
107608fff3f40Smrg# as_fn_unset VAR
107618fff3f40Smrg# ---------------
107628fff3f40Smrg# Portably unset VAR.
107638fff3f40Smrgas_fn_unset ()
107648fff3f40Smrg{
107658fff3f40Smrg  { eval $1=; unset $1;}
107668fff3f40Smrg}
107678fff3f40Smrgas_unset=as_fn_unset
107688fff3f40Smrg# as_fn_append VAR VALUE
107698fff3f40Smrg# ----------------------
107708fff3f40Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
107718fff3f40Smrg# advantage of any shell optimizations that allow amortized linear growth over
107728fff3f40Smrg# repeated appends, instead of the typical quadratic growth present in naive
107738fff3f40Smrg# implementations.
107748fff3f40Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
107758fff3f40Smrg  eval 'as_fn_append ()
107768fff3f40Smrg  {
107778fff3f40Smrg    eval $1+=\$2
107788fff3f40Smrg  }'
107798fff3f40Smrgelse
107808fff3f40Smrg  as_fn_append ()
107818fff3f40Smrg  {
107828fff3f40Smrg    eval $1=\$$1\$2
107838fff3f40Smrg  }
107848fff3f40Smrgfi # as_fn_append
107858fff3f40Smrg
107868fff3f40Smrg# as_fn_arith ARG...
107878fff3f40Smrg# ------------------
107888fff3f40Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
107898fff3f40Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
107908fff3f40Smrg# must be portable across $(()) and expr.
107918fff3f40Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
107928fff3f40Smrg  eval 'as_fn_arith ()
107938fff3f40Smrg  {
107948fff3f40Smrg    as_val=$(( $* ))
107958fff3f40Smrg  }'
107968fff3f40Smrgelse
107978fff3f40Smrg  as_fn_arith ()
107988fff3f40Smrg  {
107998fff3f40Smrg    as_val=`expr "$@" || test $? -eq 1`
108008fff3f40Smrg  }
108018fff3f40Smrgfi # as_fn_arith
108028fff3f40Smrg
10803e6232409Smrg
10804e6232409Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
10805e6232409Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10806e6232409Smrg  as_expr=expr
10807e6232409Smrgelse
10808e6232409Smrg  as_expr=false
10809e6232409Smrgfi
10810e6232409Smrg
10811e6232409Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10812e6232409Smrg  as_basename=basename
10813e6232409Smrgelse
10814e6232409Smrg  as_basename=false
10815e6232409Smrgfi
10816e6232409Smrg
108178fff3f40Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
108188fff3f40Smrg  as_dirname=dirname
108198fff3f40Smrgelse
108208fff3f40Smrg  as_dirname=false
108218fff3f40Smrgfi
108228fff3f40Smrg
10823e6232409Smrgas_me=`$as_basename -- "$0" ||
10824e6232409Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10825e6232409Smrg	 X"$0" : 'X\(//\)$' \| \
10826e6232409Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
108278fff3f40Smrg$as_echo X/"$0" |
10828e6232409Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
10829e6232409Smrg	    s//\1/
10830e6232409Smrg	    q
10831e6232409Smrg	  }
10832e6232409Smrg	  /^X\/\(\/\/\)$/{
10833e6232409Smrg	    s//\1/
10834e6232409Smrg	    q
10835e6232409Smrg	  }
10836e6232409Smrg	  /^X\/\(\/\).*/{
10837e6232409Smrg	    s//\1/
10838e6232409Smrg	    q
10839e6232409Smrg	  }
10840e6232409Smrg	  s/.*/./; q'`
10841e6232409Smrg
108428fff3f40Smrg# Avoid depending upon Character Ranges.
108438fff3f40Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
108448fff3f40Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
108458fff3f40Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
108468fff3f40Smrgas_cr_digits='0123456789'
108478fff3f40Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
10848e6232409Smrg
10849e6232409SmrgECHO_C= ECHO_N= ECHO_T=
108508fff3f40Smrgcase `echo -n x` in #(((((
10851e6232409Smrg-n*)
108528fff3f40Smrg  case `echo 'xy\c'` in
10853e6232409Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
108548fff3f40Smrg  xy)  ECHO_C='\c';;
108558fff3f40Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
108568fff3f40Smrg       ECHO_T='	';;
10857e6232409Smrg  esac;;
10858e6232409Smrg*)
10859e6232409Smrg  ECHO_N='-n';;
10860e6232409Smrgesac
10861e6232409Smrg
10862e6232409Smrgrm -f conf$$ conf$$.exe conf$$.file
10863e6232409Smrgif test -d conf$$.dir; then
10864e6232409Smrg  rm -f conf$$.dir/conf$$.file
10865e6232409Smrgelse
10866e6232409Smrg  rm -f conf$$.dir
108678fff3f40Smrg  mkdir conf$$.dir 2>/dev/null
108688fff3f40Smrgfi
108698fff3f40Smrgif (echo >conf$$.file) 2>/dev/null; then
108708fff3f40Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
108718fff3f40Smrg    as_ln_s='ln -s'
108728fff3f40Smrg    # ... but there are two gotchas:
108738fff3f40Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
108748fff3f40Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
108758fff3f40Smrg    # In both cases, we have to default to `cp -p'.
108768fff3f40Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
108778fff3f40Smrg      as_ln_s='cp -p'
108788fff3f40Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
108798fff3f40Smrg    as_ln_s=ln
108808fff3f40Smrg  else
10881e6232409Smrg    as_ln_s='cp -p'
108828fff3f40Smrg  fi
10883e6232409Smrgelse
10884e6232409Smrg  as_ln_s='cp -p'
10885e6232409Smrgfi
10886e6232409Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10887e6232409Smrgrmdir conf$$.dir 2>/dev/null
10888e6232409Smrg
108898fff3f40Smrg
108908fff3f40Smrg# as_fn_mkdir_p
108918fff3f40Smrg# -------------
108928fff3f40Smrg# Create "$as_dir" as a directory, including parents if necessary.
108938fff3f40Smrgas_fn_mkdir_p ()
108948fff3f40Smrg{
108958fff3f40Smrg
108968fff3f40Smrg  case $as_dir in #(
108978fff3f40Smrg  -*) as_dir=./$as_dir;;
108988fff3f40Smrg  esac
108998fff3f40Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
109008fff3f40Smrg    as_dirs=
109018fff3f40Smrg    while :; do
109028fff3f40Smrg      case $as_dir in #(
109038fff3f40Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
109048fff3f40Smrg      *) as_qdir=$as_dir;;
109058fff3f40Smrg      esac
109068fff3f40Smrg      as_dirs="'$as_qdir' $as_dirs"
109078fff3f40Smrg      as_dir=`$as_dirname -- "$as_dir" ||
109088fff3f40Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
109098fff3f40Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
109108fff3f40Smrg	 X"$as_dir" : 'X\(//\)$' \| \
109118fff3f40Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
109128fff3f40Smrg$as_echo X"$as_dir" |
109138fff3f40Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
109148fff3f40Smrg	    s//\1/
109158fff3f40Smrg	    q
109168fff3f40Smrg	  }
109178fff3f40Smrg	  /^X\(\/\/\)[^/].*/{
109188fff3f40Smrg	    s//\1/
109198fff3f40Smrg	    q
109208fff3f40Smrg	  }
109218fff3f40Smrg	  /^X\(\/\/\)$/{
109228fff3f40Smrg	    s//\1/
109238fff3f40Smrg	    q
109248fff3f40Smrg	  }
109258fff3f40Smrg	  /^X\(\/\).*/{
109268fff3f40Smrg	    s//\1/
109278fff3f40Smrg	    q
109288fff3f40Smrg	  }
109298fff3f40Smrg	  s/.*/./; q'`
109308fff3f40Smrg      test -d "$as_dir" && break
109318fff3f40Smrg    done
109328fff3f40Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
1093394a251fdSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
109348fff3f40Smrg
109358fff3f40Smrg
109368fff3f40Smrg} # as_fn_mkdir_p
10937e6232409Smrgif mkdir -p . 2>/dev/null; then
109388fff3f40Smrg  as_mkdir_p='mkdir -p "$as_dir"'
10939e6232409Smrgelse
10940e6232409Smrg  test -d ./-p && rmdir ./-p
10941e6232409Smrg  as_mkdir_p=false
10942e6232409Smrgfi
10943e6232409Smrg
109448fff3f40Smrgif test -x / >/dev/null 2>&1; then
109458fff3f40Smrg  as_test_x='test -x'
10946e6232409Smrgelse
109478fff3f40Smrg  if ls -dL / >/dev/null 2>&1; then
109488fff3f40Smrg    as_ls_L_option=L
109498fff3f40Smrg  else
109508fff3f40Smrg    as_ls_L_option=
109518fff3f40Smrg  fi
109528fff3f40Smrg  as_test_x='
109538fff3f40Smrg    eval sh -c '\''
109548fff3f40Smrg      if test -d "$1"; then
109558fff3f40Smrg	test -d "$1/.";
109568fff3f40Smrg      else
109578fff3f40Smrg	case $1 in #(
109588fff3f40Smrg	-*)set "./$1";;
109598fff3f40Smrg	esac;
109608fff3f40Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
109618fff3f40Smrg	???[sx]*):;;*)false;;esac;fi
109628fff3f40Smrg    '\'' sh
109638fff3f40Smrg  '
10964e6232409Smrgfi
109658fff3f40Smrgas_executable_p=$as_test_x
10966e6232409Smrg
10967e6232409Smrg# Sed expression to map a string onto a valid CPP name.
10968e6232409Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10969e6232409Smrg
10970e6232409Smrg# Sed expression to map a string onto a valid variable name.
10971e6232409Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10972e6232409Smrg
10973e6232409Smrg
10974e6232409Smrgexec 6>&1
109758fff3f40Smrg## ----------------------------------- ##
109768fff3f40Smrg## Main body of $CONFIG_STATUS script. ##
109778fff3f40Smrg## ----------------------------------- ##
109788fff3f40Smrg_ASEOF
109798fff3f40Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10980e6232409Smrg
109818fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
109828fff3f40Smrg# Save the log message, to keep $0 and so on meaningful, and to
10983e6232409Smrg# report actual input values of CONFIG_FILES etc. instead of their
10984e6232409Smrg# values after options handling.
10985e6232409Smrgac_log="
1098694a251fdSmrgThis file was extended by xlsfonts $as_me 1.0.4, which was
1098794a251fdSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
10988e6232409Smrg
10989e6232409Smrg  CONFIG_FILES    = $CONFIG_FILES
10990e6232409Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
10991e6232409Smrg  CONFIG_LINKS    = $CONFIG_LINKS
10992e6232409Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
10993e6232409Smrg  $ $0 $@
10994e6232409Smrg
10995e6232409Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
10996e6232409Smrg"
10997e6232409Smrg
10998e6232409Smrg_ACEOF
10999e6232409Smrg
110008fff3f40Smrgcase $ac_config_files in *"
110018fff3f40Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
110028fff3f40Smrgesac
110038fff3f40Smrg
110048fff3f40Smrgcase $ac_config_headers in *"
110058fff3f40Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
110068fff3f40Smrgesac
110078fff3f40Smrg
110088fff3f40Smrg
110098fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11010e6232409Smrg# Files that config.status was made for.
11011e6232409Smrgconfig_files="$ac_config_files"
11012e6232409Smrgconfig_headers="$ac_config_headers"
11013e6232409Smrgconfig_commands="$ac_config_commands"
11014e6232409Smrg
11015e6232409Smrg_ACEOF
11016e6232409Smrg
110178fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11018e6232409Smrgac_cs_usage="\
110198fff3f40Smrg\`$as_me' instantiates files and other configuration actions
110208fff3f40Smrgfrom templates according to the current configuration.  Unless the files
110218fff3f40Smrgand actions are specified as TAGs, all are instantiated by default.
11022e6232409Smrg
110238fff3f40SmrgUsage: $0 [OPTION]... [TAG]...
11024e6232409Smrg
11025e6232409Smrg  -h, --help       print this help, then exit
110268fff3f40Smrg  -V, --version    print version number and configuration settings, then exit
110278fff3f40Smrg      --config     print configuration, then exit
110288fff3f40Smrg  -q, --quiet, --silent
110298fff3f40Smrg                   do not print progress messages
11030e6232409Smrg  -d, --debug      don't remove temporary files
11031e6232409Smrg      --recheck    update $as_me by reconfiguring in the same conditions
110328fff3f40Smrg      --file=FILE[:TEMPLATE]
110338fff3f40Smrg                   instantiate the configuration file FILE
110348fff3f40Smrg      --header=FILE[:TEMPLATE]
110358fff3f40Smrg                   instantiate the configuration header FILE
11036e6232409Smrg
11037e6232409SmrgConfiguration files:
11038e6232409Smrg$config_files
11039e6232409Smrg
11040e6232409SmrgConfiguration headers:
11041e6232409Smrg$config_headers
11042e6232409Smrg
11043e6232409SmrgConfiguration commands:
11044e6232409Smrg$config_commands
11045e6232409Smrg
110468fff3f40SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11047e6232409Smrg
11048e6232409Smrg_ACEOF
110498fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
110508fff3f40Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11051e6232409Smrgac_cs_version="\\
1105294a251fdSmrgxlsfonts config.status 1.0.4
1105394a251fdSmrgconfigured by $0, generated by GNU Autoconf 2.68,
110548fff3f40Smrg  with options \\"\$ac_cs_config\\"
11055e6232409Smrg
1105694a251fdSmrgCopyright (C) 2010 Free Software Foundation, Inc.
11057e6232409SmrgThis config.status script is free software; the Free Software Foundation
11058e6232409Smrggives unlimited permission to copy, distribute and modify it."
11059e6232409Smrg
11060e6232409Smrgac_pwd='$ac_pwd'
11061e6232409Smrgsrcdir='$srcdir'
11062e6232409SmrgINSTALL='$INSTALL'
110638fff3f40SmrgMKDIR_P='$MKDIR_P'
110648fff3f40SmrgAWK='$AWK'
110658fff3f40Smrgtest -n "\$AWK" || AWK=awk
11066e6232409Smrg_ACEOF
11067e6232409Smrg
110688fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
110698fff3f40Smrg# The default lists apply if the user does not specify any file.
11070e6232409Smrgac_need_defaults=:
11071e6232409Smrgwhile test $# != 0
11072e6232409Smrgdo
11073e6232409Smrg  case $1 in
1107494a251fdSmrg  --*=?*)
11075e6232409Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11076e6232409Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11077e6232409Smrg    ac_shift=:
11078e6232409Smrg    ;;
1107994a251fdSmrg  --*=)
1108094a251fdSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1108194a251fdSmrg    ac_optarg=
1108294a251fdSmrg    ac_shift=:
1108394a251fdSmrg    ;;
11084e6232409Smrg  *)
11085e6232409Smrg    ac_option=$1
11086e6232409Smrg    ac_optarg=$2
11087e6232409Smrg    ac_shift=shift
11088e6232409Smrg    ;;
11089e6232409Smrg  esac
11090e6232409Smrg
11091e6232409Smrg  case $ac_option in
11092e6232409Smrg  # Handling of the options.
11093e6232409Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11094e6232409Smrg    ac_cs_recheck=: ;;
11095e6232409Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
110968fff3f40Smrg    $as_echo "$ac_cs_version"; exit ;;
110978fff3f40Smrg  --config | --confi | --conf | --con | --co | --c )
110988fff3f40Smrg    $as_echo "$ac_cs_config"; exit ;;
11099e6232409Smrg  --debug | --debu | --deb | --de | --d | -d )
11100e6232409Smrg    debug=: ;;
11101e6232409Smrg  --file | --fil | --fi | --f )
11102e6232409Smrg    $ac_shift
111038fff3f40Smrg    case $ac_optarg in
111048fff3f40Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1110594a251fdSmrg    '') as_fn_error $? "missing file argument" ;;
111068fff3f40Smrg    esac
111078fff3f40Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
11108e6232409Smrg    ac_need_defaults=false;;
11109e6232409Smrg  --header | --heade | --head | --hea )
11110e6232409Smrg    $ac_shift
111118fff3f40Smrg    case $ac_optarg in
111128fff3f40Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
111138fff3f40Smrg    esac
111148fff3f40Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11115e6232409Smrg    ac_need_defaults=false;;
11116e6232409Smrg  --he | --h)
11117e6232409Smrg    # Conflict between --help and --header
1111894a251fdSmrg    as_fn_error $? "ambiguous option: \`$1'
111198fff3f40SmrgTry \`$0 --help' for more information.";;
11120e6232409Smrg  --help | --hel | -h )
111218fff3f40Smrg    $as_echo "$ac_cs_usage"; exit ;;
11122e6232409Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11123e6232409Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11124e6232409Smrg    ac_cs_silent=: ;;
11125e6232409Smrg
11126e6232409Smrg  # This is an error.
1112794a251fdSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
111288fff3f40SmrgTry \`$0 --help' for more information." ;;
11129e6232409Smrg
111308fff3f40Smrg  *) as_fn_append ac_config_targets " $1"
11131e6232409Smrg     ac_need_defaults=false ;;
11132e6232409Smrg
11133e6232409Smrg  esac
11134e6232409Smrg  shift
11135e6232409Smrgdone
11136e6232409Smrg
11137e6232409Smrgac_configure_extra_args=
11138e6232409Smrg
11139e6232409Smrgif $ac_cs_silent; then
11140e6232409Smrg  exec 6>/dev/null
11141e6232409Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
11142e6232409Smrgfi
11143e6232409Smrg
11144e6232409Smrg_ACEOF
111458fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11146e6232409Smrgif \$ac_cs_recheck; then
111478fff3f40Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
111488fff3f40Smrg  shift
111498fff3f40Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
111508fff3f40Smrg  CONFIG_SHELL='$SHELL'
11151e6232409Smrg  export CONFIG_SHELL
111528fff3f40Smrg  exec "\$@"
11153e6232409Smrgfi
11154e6232409Smrg
11155e6232409Smrg_ACEOF
111568fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11157e6232409Smrgexec 5>>config.log
11158e6232409Smrg{
11159e6232409Smrg  echo
11160e6232409Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11161e6232409Smrg## Running $as_me. ##
11162e6232409Smrg_ASBOX
111638fff3f40Smrg  $as_echo "$ac_log"
11164e6232409Smrg} >&5
11165e6232409Smrg
11166e6232409Smrg_ACEOF
111678fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11168e6232409Smrg#
11169e6232409Smrg# INIT-COMMANDS
11170e6232409Smrg#
11171e6232409SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11172e6232409Smrg
11173e6232409Smrg_ACEOF
11174e6232409Smrg
111758fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11176e6232409Smrg
11177e6232409Smrg# Handling of arguments.
11178e6232409Smrgfor ac_config_target in $ac_config_targets
11179e6232409Smrgdo
11180e6232409Smrg  case $ac_config_target in
11181e6232409Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
111828fff3f40Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11183e6232409Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1118494a251fdSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11185e6232409Smrg
1118694a251fdSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11187e6232409Smrg  esac
11188e6232409Smrgdone
11189e6232409Smrg
11190e6232409Smrg
11191e6232409Smrg# If the user did not use the arguments to specify the items to instantiate,
11192e6232409Smrg# then the envvar interface is used.  Set only those that are not.
11193e6232409Smrg# We use the long form for the default assignment because of an extremely
11194e6232409Smrg# bizarre bug on SunOS 4.1.3.
11195e6232409Smrgif $ac_need_defaults; then
11196e6232409Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11197e6232409Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11198e6232409Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11199e6232409Smrgfi
11200e6232409Smrg
11201e6232409Smrg# Have a temporary directory for convenience.  Make it in the build tree
11202e6232409Smrg# simply because there is no reason against having it here, and in addition,
11203e6232409Smrg# creating and moving files from /tmp can sometimes cause problems.
11204e6232409Smrg# Hook for its removal unless debugging.
11205e6232409Smrg# Note that there is a small window in which the directory will not be cleaned:
11206e6232409Smrg# after its creation but before its name has been assigned to `$tmp'.
11207e6232409Smrg$debug ||
11208e6232409Smrg{
1120994a251fdSmrg  tmp= ac_tmp=
11210e6232409Smrg  trap 'exit_status=$?
1121194a251fdSmrg  : "${ac_tmp:=$tmp}"
1121294a251fdSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11213e6232409Smrg' 0
112148fff3f40Smrg  trap 'as_fn_exit 1' 1 2 13 15
11215e6232409Smrg}
11216e6232409Smrg# Create a (secure) tmp directory for tmp files.
11217e6232409Smrg
11218e6232409Smrg{
11219e6232409Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1122094a251fdSmrg  test -d "$tmp"
11221e6232409Smrg}  ||
11222e6232409Smrg{
11223e6232409Smrg  tmp=./conf$$-$RANDOM
11224e6232409Smrg  (umask 077 && mkdir "$tmp")
1122594a251fdSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1122694a251fdSmrgac_tmp=$tmp
11227e6232409Smrg
112288fff3f40Smrg# Set up the scripts for CONFIG_FILES section.
112298fff3f40Smrg# No need to generate them if there are no CONFIG_FILES.
112308fff3f40Smrg# This happens for instance with `./config.status config.h'.
11231e6232409Smrgif test -n "$CONFIG_FILES"; then
11232e6232409Smrg
11233e6232409Smrg
112348fff3f40Smrgac_cr=`echo X | tr X '\015'`
112358fff3f40Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
112368fff3f40Smrg# But we know of no other shell where ac_cr would be empty at this
112378fff3f40Smrg# point, so we can use a bashism as a fallback.
112388fff3f40Smrgif test "x$ac_cr" = x; then
112398fff3f40Smrg  eval ac_cr=\$\'\\r\'
112408fff3f40Smrgfi
112418fff3f40Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
112428fff3f40Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1124394a251fdSmrg  ac_cs_awk_cr='\\r'
112448fff3f40Smrgelse
112458fff3f40Smrg  ac_cs_awk_cr=$ac_cr
11246e6232409Smrgfi
11247e6232409Smrg
1124894a251fdSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11249e6232409Smrg_ACEOF
11250e6232409Smrg
11251e6232409Smrg
112528fff3f40Smrg{
112538fff3f40Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
112548fff3f40Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
112558fff3f40Smrg  echo "_ACEOF"
112568fff3f40Smrg} >conf$$subs.sh ||
1125794a251fdSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1125894a251fdSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11259e6232409Smrgac_delim='%!_!# '
11260e6232409Smrgfor ac_last_try in false false false false false :; do
112618fff3f40Smrg  . ./conf$$subs.sh ||
1126294a251fdSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11263e6232409Smrg
112648fff3f40Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
112658fff3f40Smrg  if test $ac_delim_n = $ac_delim_num; then
11266e6232409Smrg    break
11267e6232409Smrg  elif $ac_last_try; then
1126894a251fdSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11269e6232409Smrg  else
11270e6232409Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11271e6232409Smrg  fi
11272e6232409Smrgdone
112738fff3f40Smrgrm -f conf$$subs.sh
11274e6232409Smrg
112758fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1127694a251fdSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
112778fff3f40Smrg_ACEOF
112788fff3f40Smrgsed -n '
112798fff3f40Smrgh
112808fff3f40Smrgs/^/S["/; s/!.*/"]=/
112818fff3f40Smrgp
112828fff3f40Smrgg
112838fff3f40Smrgs/^[^!]*!//
112848fff3f40Smrg:repl
112858fff3f40Smrgt repl
112868fff3f40Smrgs/'"$ac_delim"'$//
112878fff3f40Smrgt delim
112888fff3f40Smrg:nl
112898fff3f40Smrgh
112908fff3f40Smrgs/\(.\{148\}\)..*/\1/
112918fff3f40Smrgt more1
112928fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
112938fff3f40Smrgp
112948fff3f40Smrgn
112958fff3f40Smrgb repl
112968fff3f40Smrg:more1
112978fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
112988fff3f40Smrgp
112998fff3f40Smrgg
113008fff3f40Smrgs/.\{148\}//
113018fff3f40Smrgt nl
113028fff3f40Smrg:delim
113038fff3f40Smrgh
113048fff3f40Smrgs/\(.\{148\}\)..*/\1/
113058fff3f40Smrgt more2
113068fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
113078fff3f40Smrgp
113088fff3f40Smrgb
113098fff3f40Smrg:more2
113108fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
113118fff3f40Smrgp
113128fff3f40Smrgg
113138fff3f40Smrgs/.\{148\}//
113148fff3f40Smrgt delim
113158fff3f40Smrg' <conf$$subs.awk | sed '
113168fff3f40Smrg/^[^""]/{
113178fff3f40Smrg  N
113188fff3f40Smrg  s/\n//
113198fff3f40Smrg}
113208fff3f40Smrg' >>$CONFIG_STATUS || ac_write_fail=1
113218fff3f40Smrgrm -f conf$$subs.awk
113228fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
113238fff3f40Smrg_ACAWK
1132494a251fdSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
113258fff3f40Smrg  for (key in S) S_is_set[key] = 1
113268fff3f40Smrg  FS = ""
113278fff3f40Smrg
113288fff3f40Smrg}
113298fff3f40Smrg{
113308fff3f40Smrg  line = $ 0
113318fff3f40Smrg  nfields = split(line, field, "@")
113328fff3f40Smrg  substed = 0
113338fff3f40Smrg  len = length(field[1])
113348fff3f40Smrg  for (i = 2; i < nfields; i++) {
113358fff3f40Smrg    key = field[i]
113368fff3f40Smrg    keylen = length(key)
113378fff3f40Smrg    if (S_is_set[key]) {
113388fff3f40Smrg      value = S[key]
113398fff3f40Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
113408fff3f40Smrg      len += length(value) + length(field[++i])
113418fff3f40Smrg      substed = 1
113428fff3f40Smrg    } else
113438fff3f40Smrg      len += 1 + keylen
113448fff3f40Smrg  }
113458fff3f40Smrg
113468fff3f40Smrg  print line
113478fff3f40Smrg}
11348e6232409Smrg
113498fff3f40Smrg_ACAWK
11350e6232409Smrg_ACEOF
113518fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
113528fff3f40Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
113538fff3f40Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
113548fff3f40Smrgelse
113558fff3f40Smrg  cat
1135694a251fdSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1135794a251fdSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11358e6232409Smrg_ACEOF
11359e6232409Smrg
1136094a251fdSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
1136194a251fdSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11362e6232409Smrg# trailing colons and then remove the whole line if VPATH becomes empty
11363e6232409Smrg# (actually we leave an empty line to preserve line numbers).
11364e6232409Smrgif test "x$srcdir" = x.; then
1136594a251fdSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
1136694a251fdSmrgh
1136794a251fdSmrgs///
1136894a251fdSmrgs/^/:/
1136994a251fdSmrgs/[	 ]*$/:/
1137094a251fdSmrgs/:\$(srcdir):/:/g
1137194a251fdSmrgs/:\${srcdir}:/:/g
1137294a251fdSmrgs/:@srcdir@:/:/g
1137394a251fdSmrgs/^:*//
11374e6232409Smrgs/:*$//
1137594a251fdSmrgx
1137694a251fdSmrgs/\(=[	 ]*\).*/\1/
1137794a251fdSmrgG
1137894a251fdSmrgs/\n//
11379e6232409Smrgs/^[^=]*=[	 ]*$//
11380e6232409Smrg}'
11381e6232409Smrgfi
11382e6232409Smrg
113838fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11384e6232409Smrgfi # test -n "$CONFIG_FILES"
11385e6232409Smrg
113868fff3f40Smrg# Set up the scripts for CONFIG_HEADERS section.
113878fff3f40Smrg# No need to generate them if there are no CONFIG_HEADERS.
113888fff3f40Smrg# This happens for instance with `./config.status Makefile'.
113898fff3f40Smrgif test -n "$CONFIG_HEADERS"; then
1139094a251fdSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
113918fff3f40SmrgBEGIN {
113928fff3f40Smrg_ACEOF
113938fff3f40Smrg
113948fff3f40Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
113958fff3f40Smrg# here-document in config.status, that substitutes the proper values into
113968fff3f40Smrg# config.h.in to produce config.h.
113978fff3f40Smrg
113988fff3f40Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
113998fff3f40Smrg# handling of long lines.
114008fff3f40Smrgac_delim='%!_!# '
114018fff3f40Smrgfor ac_last_try in false false :; do
1140294a251fdSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
1140394a251fdSmrg  if test -z "$ac_tt"; then
114048fff3f40Smrg    break
114058fff3f40Smrg  elif $ac_last_try; then
1140694a251fdSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
114078fff3f40Smrg  else
114088fff3f40Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
114098fff3f40Smrg  fi
114108fff3f40Smrgdone
114118fff3f40Smrg
114128fff3f40Smrg# For the awk script, D is an array of macro values keyed by name,
114138fff3f40Smrg# likewise P contains macro parameters if any.  Preserve backslash
114148fff3f40Smrg# newline sequences.
114158fff3f40Smrg
114168fff3f40Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
114178fff3f40Smrgsed -n '
114188fff3f40Smrgs/.\{148\}/&'"$ac_delim"'/g
114198fff3f40Smrgt rset
114208fff3f40Smrg:rset
114218fff3f40Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
114228fff3f40Smrgt def
114238fff3f40Smrgd
114248fff3f40Smrg:def
114258fff3f40Smrgs/\\$//
114268fff3f40Smrgt bsnl
114278fff3f40Smrgs/["\\]/\\&/g
114288fff3f40Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
114298fff3f40SmrgD["\1"]=" \3"/p
114308fff3f40Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
114318fff3f40Smrgd
114328fff3f40Smrg:bsnl
114338fff3f40Smrgs/["\\]/\\&/g
114348fff3f40Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
114358fff3f40SmrgD["\1"]=" \3\\\\\\n"\\/p
114368fff3f40Smrgt cont
114378fff3f40Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
114388fff3f40Smrgt cont
114398fff3f40Smrgd
114408fff3f40Smrg:cont
114418fff3f40Smrgn
114428fff3f40Smrgs/.\{148\}/&'"$ac_delim"'/g
114438fff3f40Smrgt clear
114448fff3f40Smrg:clear
114458fff3f40Smrgs/\\$//
114468fff3f40Smrgt bsnlc
114478fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
114488fff3f40Smrgd
114498fff3f40Smrg:bsnlc
114508fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
114518fff3f40Smrgb cont
114528fff3f40Smrg' <confdefs.h | sed '
114538fff3f40Smrgs/'"$ac_delim"'/"\\\
114548fff3f40Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
114558fff3f40Smrg
114568fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
114578fff3f40Smrg  for (key in D) D_is_set[key] = 1
114588fff3f40Smrg  FS = ""
114598fff3f40Smrg}
114608fff3f40Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
114618fff3f40Smrg  line = \$ 0
114628fff3f40Smrg  split(line, arg, " ")
114638fff3f40Smrg  if (arg[1] == "#") {
114648fff3f40Smrg    defundef = arg[2]
114658fff3f40Smrg    mac1 = arg[3]
114668fff3f40Smrg  } else {
114678fff3f40Smrg    defundef = substr(arg[1], 2)
114688fff3f40Smrg    mac1 = arg[2]
114698fff3f40Smrg  }
114708fff3f40Smrg  split(mac1, mac2, "(") #)
114718fff3f40Smrg  macro = mac2[1]
114728fff3f40Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
114738fff3f40Smrg  if (D_is_set[macro]) {
114748fff3f40Smrg    # Preserve the white space surrounding the "#".
114758fff3f40Smrg    print prefix "define", macro P[macro] D[macro]
114768fff3f40Smrg    next
114778fff3f40Smrg  } else {
114788fff3f40Smrg    # Replace #undef with comments.  This is necessary, for example,
114798fff3f40Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
114808fff3f40Smrg    # on some systems where configure will not decide to define it.
114818fff3f40Smrg    if (defundef == "undef") {
114828fff3f40Smrg      print "/*", prefix defundef, macro, "*/"
114838fff3f40Smrg      next
114848fff3f40Smrg    }
114858fff3f40Smrg  }
114868fff3f40Smrg}
114878fff3f40Smrg{ print }
114888fff3f40Smrg_ACAWK
114898fff3f40Smrg_ACEOF
114908fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1149194a251fdSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
114928fff3f40Smrgfi # test -n "$CONFIG_HEADERS"
114938fff3f40Smrg
11494e6232409Smrg
114958fff3f40Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
114968fff3f40Smrgshift
114978fff3f40Smrgfor ac_tag
11498e6232409Smrgdo
11499e6232409Smrg  case $ac_tag in
11500e6232409Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
11501e6232409Smrg  esac
11502e6232409Smrg  case $ac_mode$ac_tag in
11503e6232409Smrg  :[FHL]*:*);;
1150494a251fdSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11505e6232409Smrg  :[FH]-) ac_tag=-:-;;
11506e6232409Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11507e6232409Smrg  esac
11508e6232409Smrg  ac_save_IFS=$IFS
11509e6232409Smrg  IFS=:
11510e6232409Smrg  set x $ac_tag
11511e6232409Smrg  IFS=$ac_save_IFS
11512e6232409Smrg  shift
11513e6232409Smrg  ac_file=$1
11514e6232409Smrg  shift
11515e6232409Smrg
11516e6232409Smrg  case $ac_mode in
11517e6232409Smrg  :L) ac_source=$1;;
11518e6232409Smrg  :[FH])
11519e6232409Smrg    ac_file_inputs=
11520e6232409Smrg    for ac_f
11521e6232409Smrg    do
11522e6232409Smrg      case $ac_f in
1152394a251fdSmrg      -) ac_f="$ac_tmp/stdin";;
11524e6232409Smrg      *) # Look for the file first in the build tree, then in the source tree
11525e6232409Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11526e6232409Smrg	 # because $ac_f cannot contain `:'.
11527e6232409Smrg	 test -f "$ac_f" ||
11528e6232409Smrg	   case $ac_f in
11529e6232409Smrg	   [\\/$]*) false;;
11530e6232409Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11531e6232409Smrg	   esac ||
1153294a251fdSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11533e6232409Smrg      esac
115348fff3f40Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
115358fff3f40Smrg      as_fn_append ac_file_inputs " '$ac_f'"
11536e6232409Smrg    done
11537e6232409Smrg
11538e6232409Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
11539e6232409Smrg    # use $as_me), people would be surprised to read:
11540e6232409Smrg    #    /* config.h.  Generated by config.status.  */
115418fff3f40Smrg    configure_input='Generated from '`
115428fff3f40Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
115438fff3f40Smrg	`' by configure.'
11544e6232409Smrg    if test x"$ac_file" != x-; then
11545e6232409Smrg      configure_input="$ac_file.  $configure_input"
115468fff3f40Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
115478fff3f40Smrg$as_echo "$as_me: creating $ac_file" >&6;}
11548e6232409Smrg    fi
115498fff3f40Smrg    # Neutralize special characters interpreted by sed in replacement strings.
115508fff3f40Smrg    case $configure_input in #(
115518fff3f40Smrg    *\&* | *\|* | *\\* )
115528fff3f40Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
115538fff3f40Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
115548fff3f40Smrg    *) ac_sed_conf_input=$configure_input;;
115558fff3f40Smrg    esac
11556e6232409Smrg
11557e6232409Smrg    case $ac_tag in
1155894a251fdSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
1155994a251fdSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11560e6232409Smrg    esac
11561e6232409Smrg    ;;
11562e6232409Smrg  esac
11563e6232409Smrg
11564e6232409Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
11565e6232409Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11566e6232409Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
11567e6232409Smrg	 X"$ac_file" : 'X\(//\)$' \| \
11568e6232409Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
115698fff3f40Smrg$as_echo X"$ac_file" |
11570e6232409Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11571e6232409Smrg	    s//\1/
11572e6232409Smrg	    q
11573e6232409Smrg	  }
11574e6232409Smrg	  /^X\(\/\/\)[^/].*/{
11575e6232409Smrg	    s//\1/
11576e6232409Smrg	    q
11577e6232409Smrg	  }
11578e6232409Smrg	  /^X\(\/\/\)$/{
11579e6232409Smrg	    s//\1/
11580e6232409Smrg	    q
11581e6232409Smrg	  }
11582e6232409Smrg	  /^X\(\/\).*/{
11583e6232409Smrg	    s//\1/
11584e6232409Smrg	    q
11585e6232409Smrg	  }
11586e6232409Smrg	  s/.*/./; q'`
115878fff3f40Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
11588e6232409Smrg  ac_builddir=.
11589e6232409Smrg
11590e6232409Smrgcase "$ac_dir" in
11591e6232409Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11592e6232409Smrg*)
115938fff3f40Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11594e6232409Smrg  # A ".." for each directory in $ac_dir_suffix.
115958fff3f40Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11596e6232409Smrg  case $ac_top_builddir_sub in
11597e6232409Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11598e6232409Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11599e6232409Smrg  esac ;;
11600e6232409Smrgesac
11601e6232409Smrgac_abs_top_builddir=$ac_pwd
11602e6232409Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
11603e6232409Smrg# for backward compatibility:
11604e6232409Smrgac_top_builddir=$ac_top_build_prefix
11605e6232409Smrg
11606e6232409Smrgcase $srcdir in
11607e6232409Smrg  .)  # We are building in place.
11608e6232409Smrg    ac_srcdir=.
11609e6232409Smrg    ac_top_srcdir=$ac_top_builddir_sub
11610e6232409Smrg    ac_abs_top_srcdir=$ac_pwd ;;
11611e6232409Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
11612e6232409Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
11613e6232409Smrg    ac_top_srcdir=$srcdir
11614e6232409Smrg    ac_abs_top_srcdir=$srcdir ;;
11615e6232409Smrg  *) # Relative name.
11616e6232409Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11617e6232409Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
11618e6232409Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11619e6232409Smrgesac
11620e6232409Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11621e6232409Smrg
11622e6232409Smrg
11623e6232409Smrg  case $ac_mode in
11624e6232409Smrg  :F)
11625e6232409Smrg  #
11626e6232409Smrg  # CONFIG_FILE
11627e6232409Smrg  #
11628e6232409Smrg
11629e6232409Smrg  case $INSTALL in
11630e6232409Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11631e6232409Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11632e6232409Smrg  esac
116338fff3f40Smrg  ac_MKDIR_P=$MKDIR_P
116348fff3f40Smrg  case $MKDIR_P in
116358fff3f40Smrg  [\\/$]* | ?:[\\/]* ) ;;
116368fff3f40Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
116378fff3f40Smrg  esac
11638e6232409Smrg_ACEOF
11639e6232409Smrg
116408fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11641e6232409Smrg# If the template does not know about datarootdir, expand it.
11642e6232409Smrg# FIXME: This hack should be removed a few years after 2.60.
11643e6232409Smrgac_datarootdir_hack=; ac_datarootdir_seen=
116448fff3f40Smrgac_sed_dataroot='
116458fff3f40Smrg/datarootdir/ {
11646e6232409Smrg  p
11647e6232409Smrg  q
11648e6232409Smrg}
11649e6232409Smrg/@datadir@/p
11650e6232409Smrg/@docdir@/p
11651e6232409Smrg/@infodir@/p
11652e6232409Smrg/@localedir@/p
116538fff3f40Smrg/@mandir@/p'
116548fff3f40Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11655e6232409Smrg*datarootdir*) ac_datarootdir_seen=yes;;
11656e6232409Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
116578fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
116588fff3f40Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11659e6232409Smrg_ACEOF
116608fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11661e6232409Smrg  ac_datarootdir_hack='
11662e6232409Smrg  s&@datadir@&$datadir&g
11663e6232409Smrg  s&@docdir@&$docdir&g
11664e6232409Smrg  s&@infodir@&$infodir&g
11665e6232409Smrg  s&@localedir@&$localedir&g
11666e6232409Smrg  s&@mandir@&$mandir&g
116678fff3f40Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
11668e6232409Smrgesac
11669e6232409Smrg_ACEOF
11670e6232409Smrg
11671e6232409Smrg# Neutralize VPATH when `$srcdir' = `.'.
11672e6232409Smrg# Shell code in configure.ac might set extrasub.
11673e6232409Smrg# FIXME: do we really want to maintain this feature?
116748fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
116758fff3f40Smrgac_sed_extra="$ac_vpsub
11676e6232409Smrg$extrasub
11677e6232409Smrg_ACEOF
116788fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11679e6232409Smrg:t
11680e6232409Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
116818fff3f40Smrgs|@configure_input@|$ac_sed_conf_input|;t t
11682e6232409Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
116838fff3f40Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
11684e6232409Smrgs&@srcdir@&$ac_srcdir&;t t
11685e6232409Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
11686e6232409Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
11687e6232409Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11688e6232409Smrgs&@builddir@&$ac_builddir&;t t
11689e6232409Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
11690e6232409Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11691e6232409Smrgs&@INSTALL@&$ac_INSTALL&;t t
116928fff3f40Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
11693e6232409Smrg$ac_datarootdir_hack
116948fff3f40Smrg"
1169594a251fdSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
1169694a251fdSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11697e6232409Smrg
11698e6232409Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1169994a251fdSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1170094a251fdSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
1170194a251fdSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
117028fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1170394a251fdSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
117048fff3f40Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1170594a251fdSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
11706e6232409Smrg
1170794a251fdSmrg  rm -f "$ac_tmp/stdin"
11708e6232409Smrg  case $ac_file in
1170994a251fdSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
1171094a251fdSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
117118fff3f40Smrg  esac \
1171294a251fdSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11713e6232409Smrg ;;
11714e6232409Smrg  :H)
11715e6232409Smrg  #
11716e6232409Smrg  # CONFIG_HEADER
11717e6232409Smrg  #
11718e6232409Smrg  if test x"$ac_file" != x-; then
117198fff3f40Smrg    {
117208fff3f40Smrg      $as_echo "/* $configure_input  */" \
1172194a251fdSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1172294a251fdSmrg    } >"$ac_tmp/config.h" \
1172394a251fdSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1172494a251fdSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
117258fff3f40Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
117268fff3f40Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
11727e6232409Smrg    else
117288fff3f40Smrg      rm -f "$ac_file"
1172994a251fdSmrg      mv "$ac_tmp/config.h" "$ac_file" \
1173094a251fdSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11731e6232409Smrg    fi
11732e6232409Smrg  else
117338fff3f40Smrg    $as_echo "/* $configure_input  */" \
1173494a251fdSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1173594a251fdSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
11736e6232409Smrg  fi
117378fff3f40Smrg# Compute "$ac_file"'s index in $config_headers.
117388fff3f40Smrg_am_arg="$ac_file"
11739e6232409Smrg_am_stamp_count=1
11740e6232409Smrgfor _am_header in $config_headers :; do
11741e6232409Smrg  case $_am_header in
117428fff3f40Smrg    $_am_arg | $_am_arg:* )
11743e6232409Smrg      break ;;
11744e6232409Smrg    * )
11745e6232409Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11746e6232409Smrg  esac
11747e6232409Smrgdone
117488fff3f40Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
117498fff3f40Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
117508fff3f40Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
117518fff3f40Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
117528fff3f40Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
117538fff3f40Smrg$as_echo X"$_am_arg" |
11754e6232409Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11755e6232409Smrg	    s//\1/
11756e6232409Smrg	    q
11757e6232409Smrg	  }
11758e6232409Smrg	  /^X\(\/\/\)[^/].*/{
11759e6232409Smrg	    s//\1/
11760e6232409Smrg	    q
11761e6232409Smrg	  }
11762e6232409Smrg	  /^X\(\/\/\)$/{
11763e6232409Smrg	    s//\1/
11764e6232409Smrg	    q
11765e6232409Smrg	  }
11766e6232409Smrg	  /^X\(\/\).*/{
11767e6232409Smrg	    s//\1/
11768e6232409Smrg	    q
11769e6232409Smrg	  }
11770e6232409Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
11771e6232409Smrg ;;
11772e6232409Smrg
117738fff3f40Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
117748fff3f40Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
11775e6232409Smrg ;;
11776e6232409Smrg  esac
11777e6232409Smrg
11778e6232409Smrg
11779e6232409Smrg  case $ac_file$ac_mode in
117808fff3f40Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
117818fff3f40Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
117828fff3f40Smrg  # are listed without --file.  Let's play safe and only enable the eval
117838fff3f40Smrg  # if we detect the quoting.
117848fff3f40Smrg  case $CONFIG_FILES in
117858fff3f40Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
117868fff3f40Smrg  *)   set x $CONFIG_FILES ;;
117878fff3f40Smrg  esac
117888fff3f40Smrg  shift
117898fff3f40Smrg  for mf
117908fff3f40Smrg  do
117918fff3f40Smrg    # Strip MF so we end up with the name of the file.
117928fff3f40Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
117938fff3f40Smrg    # Check whether this is an Automake generated Makefile or not.
117948fff3f40Smrg    # We used to match only the files named `Makefile.in', but
117958fff3f40Smrg    # some people rename them; so instead we look at the file content.
117968fff3f40Smrg    # Grep'ing the first line is not enough: some people post-process
117978fff3f40Smrg    # each Makefile.in and add a new line on top of each file to say so.
117988fff3f40Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
117998fff3f40Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
118008fff3f40Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
118018fff3f40Smrg      dirpart=`$as_dirname -- "$mf" ||
11802e6232409Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11803e6232409Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
11804e6232409Smrg	 X"$mf" : 'X\(//\)$' \| \
11805e6232409Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
118068fff3f40Smrg$as_echo X"$mf" |
11807e6232409Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11808e6232409Smrg	    s//\1/
11809e6232409Smrg	    q
11810e6232409Smrg	  }
11811e6232409Smrg	  /^X\(\/\/\)[^/].*/{
11812e6232409Smrg	    s//\1/
11813e6232409Smrg	    q
11814e6232409Smrg	  }
11815e6232409Smrg	  /^X\(\/\/\)$/{
11816e6232409Smrg	    s//\1/
11817e6232409Smrg	    q
11818e6232409Smrg	  }
11819e6232409Smrg	  /^X\(\/\).*/{
11820e6232409Smrg	    s//\1/
11821e6232409Smrg	    q
11822e6232409Smrg	  }
11823e6232409Smrg	  s/.*/./; q'`
118248fff3f40Smrg    else
118258fff3f40Smrg      continue
118268fff3f40Smrg    fi
118278fff3f40Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
118288fff3f40Smrg    # from the Makefile without running `make'.
118298fff3f40Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
118308fff3f40Smrg    test -z "$DEPDIR" && continue
118318fff3f40Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
118328fff3f40Smrg    test -z "am__include" && continue
118338fff3f40Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
118348fff3f40Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
118358fff3f40Smrg    U=`sed -n 's/^U = //p' < "$mf"`
118368fff3f40Smrg    # Find all dependency output files, they are included files with
118378fff3f40Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
118388fff3f40Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
118398fff3f40Smrg    # expansion.
118408fff3f40Smrg    for file in `sed -n "
118418fff3f40Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
118428fff3f40Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
118438fff3f40Smrg      # Make sure the directory exists.
118448fff3f40Smrg      test -f "$dirpart/$file" && continue
118458fff3f40Smrg      fdir=`$as_dirname -- "$file" ||
11846e6232409Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11847e6232409Smrg	 X"$file" : 'X\(//\)[^/]' \| \
11848e6232409Smrg	 X"$file" : 'X\(//\)$' \| \
11849e6232409Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
118508fff3f40Smrg$as_echo X"$file" |
11851e6232409Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11852e6232409Smrg	    s//\1/
11853e6232409Smrg	    q
11854e6232409Smrg	  }
11855e6232409Smrg	  /^X\(\/\/\)[^/].*/{
11856e6232409Smrg	    s//\1/
11857e6232409Smrg	    q
11858e6232409Smrg	  }
11859e6232409Smrg	  /^X\(\/\/\)$/{
11860e6232409Smrg	    s//\1/
11861e6232409Smrg	    q
11862e6232409Smrg	  }
11863e6232409Smrg	  /^X\(\/\).*/{
11864e6232409Smrg	    s//\1/
11865e6232409Smrg	    q
11866e6232409Smrg	  }
11867e6232409Smrg	  s/.*/./; q'`
118688fff3f40Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
118698fff3f40Smrg      # echo "creating $dirpart/$file"
118708fff3f40Smrg      echo '# dummy' > "$dirpart/$file"
11871e6232409Smrg    done
11872e6232409Smrg  done
118738fff3f40Smrg}
11874e6232409Smrg ;;
11875e6232409Smrg
11876e6232409Smrg  esac
11877e6232409Smrgdone # for ac_tag
11878e6232409Smrg
11879e6232409Smrg
118808fff3f40Smrgas_fn_exit 0
11881e6232409Smrg_ACEOF
11882e6232409Smrgac_clean_files=$ac_clean_files_save
11883e6232409Smrg
118848fff3f40Smrgtest $ac_write_fail = 0 ||
1188594a251fdSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
118868fff3f40Smrg
11887e6232409Smrg
11888e6232409Smrg# configure is writing to config.log, and then calls config.status.
11889e6232409Smrg# config.status does its own redirection, appending to config.log.
11890e6232409Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
11891e6232409Smrg# by configure, so config.status won't be able to write to it; its
11892e6232409Smrg# output is simply discarded.  So we exec the FD to /dev/null,
11893e6232409Smrg# effectively closing config.log, so it can be properly (re)opened and
11894e6232409Smrg# appended to by config.status.  When coming back to configure, we
11895e6232409Smrg# need to make the FD available again.
11896e6232409Smrgif test "$no_create" != yes; then
11897e6232409Smrg  ac_cs_success=:
11898e6232409Smrg  ac_config_status_args=
11899e6232409Smrg  test "$silent" = yes &&
11900e6232409Smrg    ac_config_status_args="$ac_config_status_args --quiet"
11901e6232409Smrg  exec 5>/dev/null
11902e6232409Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11903e6232409Smrg  exec 5>>config.log
11904e6232409Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11905e6232409Smrg  # would make configure fail if this is the last instruction.
1190694a251fdSmrg  $ac_cs_success || as_fn_exit 1
119078fff3f40Smrgfi
119088fff3f40Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
119098fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
119108fff3f40Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11911e6232409Smrgfi
11912e6232409Smrg
11913