configure revision 40a76396
1a0195d5fSmrg#! /bin/sh
2a0195d5fSmrg# Guess values for system-dependent variables and create Makefiles.
340a76396Smrg# Generated by GNU Autoconf 2.68 for xset 1.2.3.
4a0195d5fSmrg#
5a0195d5fSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6a0195d5fSmrg#
76f5dd5c2Smrg#
8a0195d5fSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
92ab73d9fSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
102ab73d9fSmrg# Foundation, Inc.
116f5dd5c2Smrg#
126f5dd5c2Smrg#
13a0195d5fSmrg# This configure script is free software; the Free Software Foundation
14a0195d5fSmrg# gives unlimited permission to copy, distribute and modify it.
156f5dd5c2Smrg## -------------------- ##
166f5dd5c2Smrg## M4sh Initialization. ##
176f5dd5c2Smrg## -------------------- ##
18a0195d5fSmrg
19a0195d5fSmrg# Be more Bourne compatible
20a0195d5fSmrgDUALCASE=1; export DUALCASE # for MKS sh
216f5dd5c2Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22a0195d5fSmrg  emulate sh
23a0195d5fSmrg  NULLCMD=:
246600fe5bSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25a0195d5fSmrg  # is contrary to our usage.  Disable this feature.
26a0195d5fSmrg  alias -g '${1+"$@"}'='"$@"'
27a0195d5fSmrg  setopt NO_GLOB_SUBST
28a0195d5fSmrgelse
296f5dd5c2Smrg  case `(set -o) 2>/dev/null` in #(
306f5dd5c2Smrg  *posix*) :
316f5dd5c2Smrg    set -o posix ;; #(
326f5dd5c2Smrg  *) :
336f5dd5c2Smrg     ;;
34a0195d5fSmrgesac
35a0195d5fSmrgfi
36a0195d5fSmrg
37a0195d5fSmrg
386600fe5bSmrgas_nl='
396600fe5bSmrg'
406600fe5bSmrgexport as_nl
416600fe5bSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
426600fe5bSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
436600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
446600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
456f5dd5c2Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
466f5dd5c2Smrg# but without wasting forks for bash or zsh.
476f5dd5c2Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
486f5dd5c2Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
496f5dd5c2Smrg  as_echo='print -r --'
506f5dd5c2Smrg  as_echo_n='print -rn --'
516f5dd5c2Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
526600fe5bSmrg  as_echo='printf %s\n'
536600fe5bSmrg  as_echo_n='printf %s'
546600fe5bSmrgelse
556600fe5bSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
566600fe5bSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
576600fe5bSmrg    as_echo_n='/usr/ucb/echo -n'
58a0195d5fSmrg  else
596600fe5bSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
606600fe5bSmrg    as_echo_n_body='eval
616600fe5bSmrg      arg=$1;
626f5dd5c2Smrg      case $arg in #(
636600fe5bSmrg      *"$as_nl"*)
646600fe5bSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
656600fe5bSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
666600fe5bSmrg      esac;
676600fe5bSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
686600fe5bSmrg    '
696600fe5bSmrg    export as_echo_n_body
706600fe5bSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71a0195d5fSmrg  fi
726600fe5bSmrg  export as_echo_body
736600fe5bSmrg  as_echo='sh -c $as_echo_body as_echo'
746600fe5bSmrgfi
756600fe5bSmrg
766600fe5bSmrg# The user is always right.
776600fe5bSmrgif test "${PATH_SEPARATOR+set}" != set; then
786600fe5bSmrg  PATH_SEPARATOR=:
796600fe5bSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
806600fe5bSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
816600fe5bSmrg      PATH_SEPARATOR=';'
826600fe5bSmrg  }
83a0195d5fSmrgfi
84a0195d5fSmrg
85a0195d5fSmrg
86a0195d5fSmrg# IFS
87a0195d5fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
88a0195d5fSmrg# there to prevent editors from complaining about space-tab.
89a0195d5fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90a0195d5fSmrg# splitting by setting IFS to empty value.)
91a0195d5fSmrgIFS=" ""	$as_nl"
92a0195d5fSmrg
93a0195d5fSmrg# Find who we are.  Look in the path if we contain no directory separator.
942ab73d9fSmrgas_myself=
956f5dd5c2Smrgcase $0 in #((
96a0195d5fSmrg  *[\\/]* ) as_myself=$0 ;;
97a0195d5fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98a0195d5fSmrgfor as_dir in $PATH
99a0195d5fSmrgdo
100a0195d5fSmrg  IFS=$as_save_IFS
101a0195d5fSmrg  test -z "$as_dir" && as_dir=.
1026f5dd5c2Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1036f5dd5c2Smrg  done
104a0195d5fSmrgIFS=$as_save_IFS
105a0195d5fSmrg
106a0195d5fSmrg     ;;
107a0195d5fSmrgesac
108a0195d5fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109a0195d5fSmrg# in which case we are not to be found in the path.
110a0195d5fSmrgif test "x$as_myself" = x; then
111a0195d5fSmrg  as_myself=$0
112a0195d5fSmrgfi
113a0195d5fSmrgif test ! -f "$as_myself"; then
1146600fe5bSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1156f5dd5c2Smrg  exit 1
116a0195d5fSmrgfi
117a0195d5fSmrg
1186f5dd5c2Smrg# Unset variables that we do not need and which cause bugs (e.g. in
1196f5dd5c2Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1206f5dd5c2Smrg# suppresses any "Segmentation fault" message there.  '((' could
1216f5dd5c2Smrg# trigger a bug in pdksh 5.2.14.
1226f5dd5c2Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1236f5dd5c2Smrgdo eval test x\${$as_var+set} = xset \
1246f5dd5c2Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125a0195d5fSmrgdone
126a0195d5fSmrgPS1='$ '
127a0195d5fSmrgPS2='> '
128a0195d5fSmrgPS4='+ '
129a0195d5fSmrg
130a0195d5fSmrg# NLS nuisances.
1316600fe5bSmrgLC_ALL=C
1326600fe5bSmrgexport LC_ALL
1336600fe5bSmrgLANGUAGE=C
1346600fe5bSmrgexport LANGUAGE
135a0195d5fSmrg
1366f5dd5c2Smrg# CDPATH.
1376f5dd5c2Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1386f5dd5c2Smrg
1396f5dd5c2Smrgif test "x$CONFIG_SHELL" = x; then
1406f5dd5c2Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1416f5dd5c2Smrg  emulate sh
1426f5dd5c2Smrg  NULLCMD=:
1436f5dd5c2Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1446f5dd5c2Smrg  # is contrary to our usage.  Disable this feature.
1456f5dd5c2Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1466f5dd5c2Smrg  setopt NO_GLOB_SUBST
1476f5dd5c2Smrgelse
1486f5dd5c2Smrg  case \`(set -o) 2>/dev/null\` in #(
1496f5dd5c2Smrg  *posix*) :
1506f5dd5c2Smrg    set -o posix ;; #(
1516f5dd5c2Smrg  *) :
1526f5dd5c2Smrg     ;;
1536f5dd5c2Smrgesac
1546f5dd5c2Smrgfi
1556f5dd5c2Smrg"
1566f5dd5c2Smrg  as_required="as_fn_return () { (exit \$1); }
1576f5dd5c2Smrgas_fn_success () { as_fn_return 0; }
1586f5dd5c2Smrgas_fn_failure () { as_fn_return 1; }
1596f5dd5c2Smrgas_fn_ret_success () { return 0; }
1606f5dd5c2Smrgas_fn_ret_failure () { return 1; }
1616f5dd5c2Smrg
1626f5dd5c2Smrgexitcode=0
1636f5dd5c2Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1646f5dd5c2Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1656f5dd5c2Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1666f5dd5c2Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1676f5dd5c2Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1686f5dd5c2Smrg
1696f5dd5c2Smrgelse
1706f5dd5c2Smrg  exitcode=1; echo positional parameters were not saved.
1716f5dd5c2Smrgfi
1726f5dd5c2Smrgtest x\$exitcode = x0 || exit 1"
1736f5dd5c2Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1746f5dd5c2Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1756f5dd5c2Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1766f5dd5c2Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1776f5dd5c2Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
1786f5dd5c2Smrg  if (eval "$as_required") 2>/dev/null; then :
1796f5dd5c2Smrg  as_have_required=yes
1806f5dd5c2Smrgelse
1816f5dd5c2Smrg  as_have_required=no
1826f5dd5c2Smrgfi
1836f5dd5c2Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1846f5dd5c2Smrg
1856f5dd5c2Smrgelse
1866f5dd5c2Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876f5dd5c2Smrgas_found=false
1886f5dd5c2Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1896f5dd5c2Smrgdo
1906f5dd5c2Smrg  IFS=$as_save_IFS
1916f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
1926f5dd5c2Smrg  as_found=:
1936f5dd5c2Smrg  case $as_dir in #(
1946f5dd5c2Smrg	 /*)
1956f5dd5c2Smrg	   for as_base in sh bash ksh sh5; do
1966f5dd5c2Smrg	     # Try only shells that exist, to save several forks.
1976f5dd5c2Smrg	     as_shell=$as_dir/$as_base
1986f5dd5c2Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1996f5dd5c2Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2006f5dd5c2Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2016f5dd5c2Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2026f5dd5c2Smrg  break 2
2036f5dd5c2Smrgfi
2046f5dd5c2Smrgfi
2056f5dd5c2Smrg	   done;;
2066f5dd5c2Smrg       esac
2076f5dd5c2Smrg  as_found=false
2086f5dd5c2Smrgdone
2096f5dd5c2Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2106f5dd5c2Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2116f5dd5c2Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2126f5dd5c2Smrgfi; }
2136f5dd5c2SmrgIFS=$as_save_IFS
2146f5dd5c2Smrg
2156f5dd5c2Smrg
2166f5dd5c2Smrg      if test "x$CONFIG_SHELL" != x; then :
2176f5dd5c2Smrg  # We cannot yet assume a decent shell, so we have to provide a
2186f5dd5c2Smrg	# neutralization value for shells without unset; and this also
2196f5dd5c2Smrg	# works around shells that cannot unset nonexistent variables.
2202ab73d9fSmrg	# Preserve -v and -x to the replacement shell.
2216f5dd5c2Smrg	BASH_ENV=/dev/null
2226f5dd5c2Smrg	ENV=/dev/null
2236f5dd5c2Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2246f5dd5c2Smrg	export CONFIG_SHELL
2252ab73d9fSmrg	case $- in # ((((
2262ab73d9fSmrg	  *v*x* | *x*v* ) as_opts=-vx ;;
2272ab73d9fSmrg	  *v* ) as_opts=-v ;;
2282ab73d9fSmrg	  *x* ) as_opts=-x ;;
2292ab73d9fSmrg	  * ) as_opts= ;;
2302ab73d9fSmrg	esac
2312ab73d9fSmrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
2326f5dd5c2Smrgfi
2336f5dd5c2Smrg
2346f5dd5c2Smrg    if test x$as_have_required = xno; then :
2356f5dd5c2Smrg  $as_echo "$0: This script requires a shell more modern than all"
2366f5dd5c2Smrg  $as_echo "$0: the shells that I found on your system."
2376f5dd5c2Smrg  if test x${ZSH_VERSION+set} = xset ; then
2386f5dd5c2Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2396f5dd5c2Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2406f5dd5c2Smrg  else
2416f5dd5c2Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2426f5dd5c2Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2436f5dd5c2Smrg$0: about your system, including any error possibly output
2446f5dd5c2Smrg$0: before this message. Then install a modern shell, or
2456f5dd5c2Smrg$0: manually run the script under such a shell if you do
2466f5dd5c2Smrg$0: have one."
2476f5dd5c2Smrg  fi
2486f5dd5c2Smrg  exit 1
2496f5dd5c2Smrgfi
2506f5dd5c2Smrgfi
2516f5dd5c2Smrgfi
2526f5dd5c2SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2536f5dd5c2Smrgexport SHELL
2546f5dd5c2Smrg# Unset more variables known to interfere with behavior of common tools.
2556f5dd5c2SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2566f5dd5c2Smrgunset CLICOLOR_FORCE GREP_OPTIONS
2576f5dd5c2Smrg
2586f5dd5c2Smrg## --------------------- ##
2596f5dd5c2Smrg## M4sh Shell Functions. ##
2606f5dd5c2Smrg## --------------------- ##
2616f5dd5c2Smrg# as_fn_unset VAR
2626f5dd5c2Smrg# ---------------
2636f5dd5c2Smrg# Portably unset VAR.
2646f5dd5c2Smrgas_fn_unset ()
2656f5dd5c2Smrg{
2666f5dd5c2Smrg  { eval $1=; unset $1;}
2676f5dd5c2Smrg}
2686f5dd5c2Smrgas_unset=as_fn_unset
2696f5dd5c2Smrg
2706f5dd5c2Smrg# as_fn_set_status STATUS
2716f5dd5c2Smrg# -----------------------
2726f5dd5c2Smrg# Set $? to STATUS, without forking.
2736f5dd5c2Smrgas_fn_set_status ()
2746f5dd5c2Smrg{
2756f5dd5c2Smrg  return $1
2766f5dd5c2Smrg} # as_fn_set_status
2776f5dd5c2Smrg
2786f5dd5c2Smrg# as_fn_exit STATUS
2796f5dd5c2Smrg# -----------------
2806f5dd5c2Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2816f5dd5c2Smrgas_fn_exit ()
2826f5dd5c2Smrg{
2836f5dd5c2Smrg  set +e
2846f5dd5c2Smrg  as_fn_set_status $1
2856f5dd5c2Smrg  exit $1
2866f5dd5c2Smrg} # as_fn_exit
2876f5dd5c2Smrg
2886f5dd5c2Smrg# as_fn_mkdir_p
2896f5dd5c2Smrg# -------------
2906f5dd5c2Smrg# Create "$as_dir" as a directory, including parents if necessary.
2916f5dd5c2Smrgas_fn_mkdir_p ()
2926f5dd5c2Smrg{
2936f5dd5c2Smrg
2946f5dd5c2Smrg  case $as_dir in #(
2956f5dd5c2Smrg  -*) as_dir=./$as_dir;;
2966f5dd5c2Smrg  esac
2976f5dd5c2Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
2986f5dd5c2Smrg    as_dirs=
2996f5dd5c2Smrg    while :; do
3006f5dd5c2Smrg      case $as_dir in #(
3016f5dd5c2Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3026f5dd5c2Smrg      *) as_qdir=$as_dir;;
3036f5dd5c2Smrg      esac
3046f5dd5c2Smrg      as_dirs="'$as_qdir' $as_dirs"
3056f5dd5c2Smrg      as_dir=`$as_dirname -- "$as_dir" ||
3066f5dd5c2Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3076f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3086f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3096f5dd5c2Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3106f5dd5c2Smrg$as_echo X"$as_dir" |
3116f5dd5c2Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3126f5dd5c2Smrg	    s//\1/
3136f5dd5c2Smrg	    q
3146f5dd5c2Smrg	  }
3156f5dd5c2Smrg	  /^X\(\/\/\)[^/].*/{
3166f5dd5c2Smrg	    s//\1/
3176f5dd5c2Smrg	    q
3186f5dd5c2Smrg	  }
3196f5dd5c2Smrg	  /^X\(\/\/\)$/{
3206f5dd5c2Smrg	    s//\1/
3216f5dd5c2Smrg	    q
3226f5dd5c2Smrg	  }
3236f5dd5c2Smrg	  /^X\(\/\).*/{
3246f5dd5c2Smrg	    s//\1/
3256f5dd5c2Smrg	    q
3266f5dd5c2Smrg	  }
3276f5dd5c2Smrg	  s/.*/./; q'`
3286f5dd5c2Smrg      test -d "$as_dir" && break
3296f5dd5c2Smrg    done
3306f5dd5c2Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3312ab73d9fSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3326f5dd5c2Smrg
3336f5dd5c2Smrg
3346f5dd5c2Smrg} # as_fn_mkdir_p
3356f5dd5c2Smrg# as_fn_append VAR VALUE
3366f5dd5c2Smrg# ----------------------
3376f5dd5c2Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3386f5dd5c2Smrg# advantage of any shell optimizations that allow amortized linear growth over
3396f5dd5c2Smrg# repeated appends, instead of the typical quadratic growth present in naive
3406f5dd5c2Smrg# implementations.
3416f5dd5c2Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3426f5dd5c2Smrg  eval 'as_fn_append ()
3436f5dd5c2Smrg  {
3446f5dd5c2Smrg    eval $1+=\$2
3456f5dd5c2Smrg  }'
3466f5dd5c2Smrgelse
3476f5dd5c2Smrg  as_fn_append ()
3486f5dd5c2Smrg  {
3496f5dd5c2Smrg    eval $1=\$$1\$2
3506f5dd5c2Smrg  }
3516f5dd5c2Smrgfi # as_fn_append
3526f5dd5c2Smrg
3536f5dd5c2Smrg# as_fn_arith ARG...
3546f5dd5c2Smrg# ------------------
3556f5dd5c2Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
3566f5dd5c2Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
3576f5dd5c2Smrg# must be portable across $(()) and expr.
3586f5dd5c2Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3596f5dd5c2Smrg  eval 'as_fn_arith ()
3606f5dd5c2Smrg  {
3616f5dd5c2Smrg    as_val=$(( $* ))
3626f5dd5c2Smrg  }'
3636f5dd5c2Smrgelse
3646f5dd5c2Smrg  as_fn_arith ()
3656f5dd5c2Smrg  {
3666f5dd5c2Smrg    as_val=`expr "$@" || test $? -eq 1`
3676f5dd5c2Smrg  }
3686f5dd5c2Smrgfi # as_fn_arith
3696f5dd5c2Smrg
3706f5dd5c2Smrg
3712ab73d9fSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
3722ab73d9fSmrg# ----------------------------------------
3736f5dd5c2Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3746f5dd5c2Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3752ab73d9fSmrg# script with STATUS, using 1 if that was 0.
3766f5dd5c2Smrgas_fn_error ()
3776f5dd5c2Smrg{
3782ab73d9fSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
3792ab73d9fSmrg  if test "$4"; then
3802ab73d9fSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3812ab73d9fSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3826f5dd5c2Smrg  fi
3832ab73d9fSmrg  $as_echo "$as_me: error: $2" >&2
3846f5dd5c2Smrg  as_fn_exit $as_status
3856f5dd5c2Smrg} # as_fn_error
3866f5dd5c2Smrg
387a0195d5fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
388a0195d5fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389a0195d5fSmrg  as_expr=expr
390a0195d5fSmrgelse
391a0195d5fSmrg  as_expr=false
392a0195d5fSmrgfi
393a0195d5fSmrg
394a0195d5fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395a0195d5fSmrg  as_basename=basename
396a0195d5fSmrgelse
397a0195d5fSmrg  as_basename=false
398a0195d5fSmrgfi
399a0195d5fSmrg
4006f5dd5c2Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4016f5dd5c2Smrg  as_dirname=dirname
4026f5dd5c2Smrgelse
4036f5dd5c2Smrg  as_dirname=false
4046f5dd5c2Smrgfi
405a0195d5fSmrg
406a0195d5fSmrgas_me=`$as_basename -- "$0" ||
407a0195d5fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408a0195d5fSmrg	 X"$0" : 'X\(//\)$' \| \
409a0195d5fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4106600fe5bSmrg$as_echo X/"$0" |
411a0195d5fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
412a0195d5fSmrg	    s//\1/
413a0195d5fSmrg	    q
414a0195d5fSmrg	  }
415a0195d5fSmrg	  /^X\/\(\/\/\)$/{
416a0195d5fSmrg	    s//\1/
417a0195d5fSmrg	    q
418a0195d5fSmrg	  }
419a0195d5fSmrg	  /^X\/\(\/\).*/{
420a0195d5fSmrg	    s//\1/
421a0195d5fSmrg	    q
422a0195d5fSmrg	  }
423a0195d5fSmrg	  s/.*/./; q'`
424a0195d5fSmrg
4256f5dd5c2Smrg# Avoid depending upon Character Ranges.
4266f5dd5c2Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4276f5dd5c2Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4286f5dd5c2Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4296f5dd5c2Smrgas_cr_digits='0123456789'
4306f5dd5c2Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
431a0195d5fSmrg
432a0195d5fSmrg
4336f5dd5c2Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4346f5dd5c2Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4356f5dd5c2Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4366f5dd5c2Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4376f5dd5c2Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4386f5dd5c2Smrg  sed -n '
4396f5dd5c2Smrg    p
4406f5dd5c2Smrg    /[$]LINENO/=
4416f5dd5c2Smrg  ' <$as_myself |
4426f5dd5c2Smrg    sed '
4436f5dd5c2Smrg      s/[$]LINENO.*/&-/
4446f5dd5c2Smrg      t lineno
4456f5dd5c2Smrg      b
4466f5dd5c2Smrg      :lineno
4476f5dd5c2Smrg      N
4486f5dd5c2Smrg      :loop
4496f5dd5c2Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4506f5dd5c2Smrg      t loop
4516f5dd5c2Smrg      s/-\n.*//
4526f5dd5c2Smrg    ' >$as_me.lineno &&
4536f5dd5c2Smrg  chmod +x "$as_me.lineno" ||
4546f5dd5c2Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455a0195d5fSmrg
4566f5dd5c2Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
4576f5dd5c2Smrg  # (the dirname of $[0] is not the place where we might find the
4586f5dd5c2Smrg  # original and so on.  Autoconf is especially sensitive to this).
4596f5dd5c2Smrg  . "./$as_me.lineno"
4606f5dd5c2Smrg  # Exit status is that of the last command.
4616f5dd5c2Smrg  exit
462a0195d5fSmrg}
463a0195d5fSmrg
4646f5dd5c2SmrgECHO_C= ECHO_N= ECHO_T=
4656f5dd5c2Smrgcase `echo -n x` in #(((((
4666f5dd5c2Smrg-n*)
4676f5dd5c2Smrg  case `echo 'xy\c'` in
4686f5dd5c2Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4696f5dd5c2Smrg  xy)  ECHO_C='\c';;
4706f5dd5c2Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4716f5dd5c2Smrg       ECHO_T='	';;
4726f5dd5c2Smrg  esac;;
4736f5dd5c2Smrg*)
4746f5dd5c2Smrg  ECHO_N='-n';;
4756f5dd5c2Smrgesac
476a0195d5fSmrg
4776f5dd5c2Smrgrm -f conf$$ conf$$.exe conf$$.file
4786f5dd5c2Smrgif test -d conf$$.dir; then
4796f5dd5c2Smrg  rm -f conf$$.dir/conf$$.file
4806f5dd5c2Smrgelse
4816f5dd5c2Smrg  rm -f conf$$.dir
4826f5dd5c2Smrg  mkdir conf$$.dir 2>/dev/null
483a0195d5fSmrgfi
4846f5dd5c2Smrgif (echo >conf$$.file) 2>/dev/null; then
4856f5dd5c2Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
4866f5dd5c2Smrg    as_ln_s='ln -s'
4876f5dd5c2Smrg    # ... but there are two gotchas:
4886f5dd5c2Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4896f5dd5c2Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4906f5dd5c2Smrg    # In both cases, we have to default to `cp -p'.
4916f5dd5c2Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4926f5dd5c2Smrg      as_ln_s='cp -p'
4936f5dd5c2Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
4946f5dd5c2Smrg    as_ln_s=ln
4956f5dd5c2Smrg  else
4966f5dd5c2Smrg    as_ln_s='cp -p'
4976f5dd5c2Smrg  fi
498a0195d5fSmrgelse
4996f5dd5c2Smrg  as_ln_s='cp -p'
500a0195d5fSmrgfi
5016f5dd5c2Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5026f5dd5c2Smrgrmdir conf$$.dir 2>/dev/null
503a0195d5fSmrg
5046f5dd5c2Smrgif mkdir -p . 2>/dev/null; then
5056f5dd5c2Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5066f5dd5c2Smrgelse
5076f5dd5c2Smrg  test -d ./-p && rmdir ./-p
5086f5dd5c2Smrg  as_mkdir_p=false
509a0195d5fSmrgfi
510a0195d5fSmrg
5116f5dd5c2Smrgif test -x / >/dev/null 2>&1; then
5126f5dd5c2Smrg  as_test_x='test -x'
513a0195d5fSmrgelse
5146f5dd5c2Smrg  if ls -dL / >/dev/null 2>&1; then
5156f5dd5c2Smrg    as_ls_L_option=L
5166f5dd5c2Smrg  else
5176f5dd5c2Smrg    as_ls_L_option=
5186f5dd5c2Smrg  fi
5196f5dd5c2Smrg  as_test_x='
5206f5dd5c2Smrg    eval sh -c '\''
5216f5dd5c2Smrg      if test -d "$1"; then
5226f5dd5c2Smrg	test -d "$1/.";
5236f5dd5c2Smrg      else
5246f5dd5c2Smrg	case $1 in #(
5256f5dd5c2Smrg	-*)set "./$1";;
5266f5dd5c2Smrg	esac;
5276f5dd5c2Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5286f5dd5c2Smrg	???[sx]*):;;*)false;;esac;fi
5296f5dd5c2Smrg    '\'' sh
5306f5dd5c2Smrg  '
531a0195d5fSmrgfi
5326f5dd5c2Smrgas_executable_p=$as_test_x
533a0195d5fSmrg
5346f5dd5c2Smrg# Sed expression to map a string onto a valid CPP name.
5356f5dd5c2Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536a0195d5fSmrg
5376f5dd5c2Smrg# Sed expression to map a string onto a valid variable name.
5386f5dd5c2Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539a0195d5fSmrg
540a0195d5fSmrg
5416f5dd5c2Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5426f5dd5c2Smrgexec 6>&1
543a0195d5fSmrg
544a0195d5fSmrg# Name of the host.
5452ab73d9fSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546a0195d5fSmrg# so uname gets run too.
547a0195d5fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548a0195d5fSmrg
549a0195d5fSmrg#
550a0195d5fSmrg# Initializations.
551a0195d5fSmrg#
552a0195d5fSmrgac_default_prefix=/usr/local
553a0195d5fSmrgac_clean_files=
554a0195d5fSmrgac_config_libobj_dir=.
555a0195d5fSmrgLIBOBJS=
556a0195d5fSmrgcross_compiling=no
557a0195d5fSmrgsubdirs=
558a0195d5fSmrgMFLAGS=
559a0195d5fSmrgMAKEFLAGS=
560a0195d5fSmrg
561a0195d5fSmrg# Identity of this package.
562a0195d5fSmrgPACKAGE_NAME='xset'
563a0195d5fSmrgPACKAGE_TARNAME='xset'
56440a76396SmrgPACKAGE_VERSION='1.2.3'
56540a76396SmrgPACKAGE_STRING='xset 1.2.3'
566a0195d5fSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
5676f5dd5c2SmrgPACKAGE_URL=''
568a0195d5fSmrg
5692ab73d9fSmrgac_unique_file="Makefile.am"
5706600fe5bSmrg# Factoring default headers for most tests.
5716600fe5bSmrgac_includes_default="\
5726600fe5bSmrg#include <stdio.h>
5736600fe5bSmrg#ifdef HAVE_SYS_TYPES_H
5746600fe5bSmrg# include <sys/types.h>
5756600fe5bSmrg#endif
5766600fe5bSmrg#ifdef HAVE_SYS_STAT_H
5776600fe5bSmrg# include <sys/stat.h>
5786600fe5bSmrg#endif
5796600fe5bSmrg#ifdef STDC_HEADERS
5806600fe5bSmrg# include <stdlib.h>
5816600fe5bSmrg# include <stddef.h>
5826600fe5bSmrg#else
5836600fe5bSmrg# ifdef HAVE_STDLIB_H
5846600fe5bSmrg#  include <stdlib.h>
5856600fe5bSmrg# endif
5866600fe5bSmrg#endif
5876600fe5bSmrg#ifdef HAVE_STRING_H
5886600fe5bSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5896600fe5bSmrg#  include <memory.h>
5906600fe5bSmrg# endif
5916600fe5bSmrg# include <string.h>
5926600fe5bSmrg#endif
5936600fe5bSmrg#ifdef HAVE_STRINGS_H
5946600fe5bSmrg# include <strings.h>
5956600fe5bSmrg#endif
5966600fe5bSmrg#ifdef HAVE_INTTYPES_H
5976600fe5bSmrg# include <inttypes.h>
5986600fe5bSmrg#endif
5996600fe5bSmrg#ifdef HAVE_STDINT_H
6006600fe5bSmrg# include <stdint.h>
6016600fe5bSmrg#endif
6026600fe5bSmrg#ifdef HAVE_UNISTD_H
6036600fe5bSmrg# include <unistd.h>
6046600fe5bSmrg#endif"
6056600fe5bSmrg
6066600fe5bSmrgac_subst_vars='am__EXEEXT_FALSE
6076600fe5bSmrgam__EXEEXT_TRUE
6086600fe5bSmrgLTLIBOBJS
6096600fe5bSmrgLIBOBJS
6106600fe5bSmrgSET_FONTCACHE_LIBS
6116600fe5bSmrgSET_FONTCACHE_CFLAGS
6126600fe5bSmrgSET_XF86MISC_LIBS
6136600fe5bSmrgSET_XF86MISC_CFLAGS
6146600fe5bSmrgSET_XKB_LIBS
6156600fe5bSmrgSET_XKB_CFLAGS
6166600fe5bSmrgSET_XEXT_LIBS
6176600fe5bSmrgSET_XEXT_CFLAGS
6186600fe5bSmrgSET_X11_LIBS
6196600fe5bSmrgSET_X11_CFLAGS
6206600fe5bSmrgXSET_LIBS
6216600fe5bSmrgXSET_CFLAGS
6226f5dd5c2SmrgMAN_SUBSTS
6236f5dd5c2SmrgXORG_MAN_PAGE
624a0195d5fSmrgADMIN_MAN_DIR
6256600fe5bSmrgDRIVER_MAN_DIR
6266600fe5bSmrgMISC_MAN_DIR
6276600fe5bSmrgFILE_MAN_DIR
6286600fe5bSmrgLIB_MAN_DIR
6296600fe5bSmrgAPP_MAN_DIR
6306600fe5bSmrgADMIN_MAN_SUFFIX
6316600fe5bSmrgDRIVER_MAN_SUFFIX
6326600fe5bSmrgMISC_MAN_SUFFIX
6336600fe5bSmrgFILE_MAN_SUFFIX
6346600fe5bSmrgLIB_MAN_SUFFIX
6356600fe5bSmrgAPP_MAN_SUFFIX
6366f5dd5c2SmrgSED
6376600fe5bSmrghost_os
6386600fe5bSmrghost_vendor
6396600fe5bSmrghost_cpu
6406600fe5bSmrghost
6416600fe5bSmrgbuild_os
6426600fe5bSmrgbuild_vendor
6436600fe5bSmrgbuild_cpu
6446600fe5bSmrgbuild
6456f5dd5c2SmrgINSTALL_CMD
6466f5dd5c2SmrgPKG_CONFIG
6476600fe5bSmrgCHANGELOG_CMD
648ff6cf368SmrgSTRICT_CFLAGS
6496600fe5bSmrgCWARNFLAGS
65040a76396SmrgBASE_CFLAGS
65140a76396SmrgMAINT
65240a76396SmrgMAINTAINER_MODE_FALSE
65340a76396SmrgMAINTAINER_MODE_TRUE
65440a76396SmrgAM_BACKSLASH
65540a76396SmrgAM_DEFAULT_VERBOSITY
65640a76396SmrgAM_DEFAULT_V
65740a76396SmrgAM_V
6586600fe5bSmrgam__fastdepCC_FALSE
6596600fe5bSmrgam__fastdepCC_TRUE
6606600fe5bSmrgCCDEPMODE
66140a76396Smrgam__nodep
6626600fe5bSmrgAMDEPBACKSLASH
6636600fe5bSmrgAMDEP_FALSE
6646600fe5bSmrgAMDEP_TRUE
6656600fe5bSmrgam__quote
6666600fe5bSmrgam__include
6676600fe5bSmrgDEPDIR
6686600fe5bSmrgam__untar
6696600fe5bSmrgam__tar
6706600fe5bSmrgAMTAR
6716600fe5bSmrgam__leading_dot
6726600fe5bSmrgSET_MAKE
6736600fe5bSmrgAWK
6746600fe5bSmrgmkdir_p
6756600fe5bSmrgMKDIR_P
6766600fe5bSmrgINSTALL_STRIP_PROGRAM
6776600fe5bSmrgSTRIP
6786600fe5bSmrginstall_sh
6796600fe5bSmrgMAKEINFO
6806600fe5bSmrgAUTOHEADER
6816600fe5bSmrgAUTOMAKE
6826600fe5bSmrgAUTOCONF
6836600fe5bSmrgACLOCAL
6846600fe5bSmrgVERSION
6856600fe5bSmrgPACKAGE
6866600fe5bSmrgCYGPATH_W
6876600fe5bSmrgam__isrc
6886600fe5bSmrgINSTALL_DATA
6896600fe5bSmrgINSTALL_SCRIPT
6906600fe5bSmrgINSTALL_PROGRAM
69140a76396SmrgEGREP
69240a76396SmrgGREP
69340a76396SmrgCPP
69440a76396SmrgOBJEXT
69540a76396SmrgEXEEXT
69640a76396Smrgac_ct_CC
69740a76396SmrgCPPFLAGS
69840a76396SmrgLDFLAGS
69940a76396SmrgCFLAGS
70040a76396SmrgCC
7016600fe5bSmrgtarget_alias
7026600fe5bSmrghost_alias
7036600fe5bSmrgbuild_alias
7046600fe5bSmrgLIBS
7056600fe5bSmrgECHO_T
7066600fe5bSmrgECHO_N
7076600fe5bSmrgECHO_C
7086600fe5bSmrgDEFS
7096600fe5bSmrgmandir
7106600fe5bSmrglocaledir
7116600fe5bSmrglibdir
7126600fe5bSmrgpsdir
7136600fe5bSmrgpdfdir
7146600fe5bSmrgdvidir
7156600fe5bSmrghtmldir
7166600fe5bSmrginfodir
7176600fe5bSmrgdocdir
7186600fe5bSmrgoldincludedir
7196600fe5bSmrgincludedir
7206600fe5bSmrglocalstatedir
7216600fe5bSmrgsharedstatedir
7226600fe5bSmrgsysconfdir
7236600fe5bSmrgdatadir
7246600fe5bSmrgdatarootdir
7256600fe5bSmrglibexecdir
7266600fe5bSmrgsbindir
7276600fe5bSmrgbindir
7286600fe5bSmrgprogram_transform_name
7296600fe5bSmrgprefix
7306600fe5bSmrgexec_prefix
7316f5dd5c2SmrgPACKAGE_URL
7326600fe5bSmrgPACKAGE_BUGREPORT
7336600fe5bSmrgPACKAGE_STRING
7346600fe5bSmrgPACKAGE_VERSION
7356600fe5bSmrgPACKAGE_TARNAME
7366600fe5bSmrgPACKAGE_NAME
7376600fe5bSmrgPATH_SEPARATOR
7386600fe5bSmrgSHELL'
739a0195d5fSmrgac_subst_files=''
7406600fe5bSmrgac_user_opts='
7416600fe5bSmrgenable_option_checking
7426600fe5bSmrgenable_dependency_tracking
7436f5dd5c2Smrgenable_silent_rules
74440a76396Smrgenable_maintainer_mode
74540a76396Smrgenable_selective_werror
74640a76396Smrgenable_strict_compilation
7476f5dd5c2Smrgwith_xf86misc
7486f5dd5c2Smrgwith_fontcache
7496600fe5bSmrg'
750a0195d5fSmrg      ac_precious_vars='build_alias
751a0195d5fSmrghost_alias
752a0195d5fSmrgtarget_alias
753a0195d5fSmrgCC
754a0195d5fSmrgCFLAGS
755a0195d5fSmrgLDFLAGS
756a0195d5fSmrgLIBS
757a0195d5fSmrgCPPFLAGS
7586600fe5bSmrgCPP
759a0195d5fSmrgPKG_CONFIG
760a0195d5fSmrgXSET_CFLAGS
761a0195d5fSmrgXSET_LIBS
762a0195d5fSmrgSET_X11_CFLAGS
763a0195d5fSmrgSET_X11_LIBS
764a0195d5fSmrgSET_XEXT_CFLAGS
765a0195d5fSmrgSET_XEXT_LIBS
766a0195d5fSmrgSET_XKB_CFLAGS
767a0195d5fSmrgSET_XKB_LIBS
768a0195d5fSmrgSET_XF86MISC_CFLAGS
769a0195d5fSmrgSET_XF86MISC_LIBS
770a0195d5fSmrgSET_FONTCACHE_CFLAGS
7716f5dd5c2SmrgSET_FONTCACHE_LIBS'
772a0195d5fSmrg
773a0195d5fSmrg
774a0195d5fSmrg# Initialize some variables set by options.
775a0195d5fSmrgac_init_help=
776a0195d5fSmrgac_init_version=false
7776600fe5bSmrgac_unrecognized_opts=
7786600fe5bSmrgac_unrecognized_sep=
779a0195d5fSmrg# The variables have the same names as the options, with
780a0195d5fSmrg# dashes changed to underlines.
781a0195d5fSmrgcache_file=/dev/null
782a0195d5fSmrgexec_prefix=NONE
783a0195d5fSmrgno_create=
784a0195d5fSmrgno_recursion=
785a0195d5fSmrgprefix=NONE
786a0195d5fSmrgprogram_prefix=NONE
787a0195d5fSmrgprogram_suffix=NONE
788a0195d5fSmrgprogram_transform_name=s,x,x,
789a0195d5fSmrgsilent=
790a0195d5fSmrgsite=
791a0195d5fSmrgsrcdir=
792a0195d5fSmrgverbose=
793a0195d5fSmrgx_includes=NONE
794a0195d5fSmrgx_libraries=NONE
795a0195d5fSmrg
796a0195d5fSmrg# Installation directory options.
797a0195d5fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
798a0195d5fSmrg# and all the variables that are supposed to be based on exec_prefix
799a0195d5fSmrg# by default will actually change.
800a0195d5fSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
801a0195d5fSmrg# (The list follows the same order as the GNU Coding Standards.)
802a0195d5fSmrgbindir='${exec_prefix}/bin'
803a0195d5fSmrgsbindir='${exec_prefix}/sbin'
804a0195d5fSmrglibexecdir='${exec_prefix}/libexec'
805a0195d5fSmrgdatarootdir='${prefix}/share'
806a0195d5fSmrgdatadir='${datarootdir}'
807a0195d5fSmrgsysconfdir='${prefix}/etc'
808a0195d5fSmrgsharedstatedir='${prefix}/com'
809a0195d5fSmrglocalstatedir='${prefix}/var'
810a0195d5fSmrgincludedir='${prefix}/include'
811a0195d5fSmrgoldincludedir='/usr/include'
812a0195d5fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
813a0195d5fSmrginfodir='${datarootdir}/info'
814a0195d5fSmrghtmldir='${docdir}'
815a0195d5fSmrgdvidir='${docdir}'
816a0195d5fSmrgpdfdir='${docdir}'
817a0195d5fSmrgpsdir='${docdir}'
818a0195d5fSmrglibdir='${exec_prefix}/lib'
819a0195d5fSmrglocaledir='${datarootdir}/locale'
820a0195d5fSmrgmandir='${datarootdir}/man'
821a0195d5fSmrg
822a0195d5fSmrgac_prev=
823a0195d5fSmrgac_dashdash=
824a0195d5fSmrgfor ac_option
825a0195d5fSmrgdo
826a0195d5fSmrg  # If the previous option needs an argument, assign it.
827a0195d5fSmrg  if test -n "$ac_prev"; then
828a0195d5fSmrg    eval $ac_prev=\$ac_option
829a0195d5fSmrg    ac_prev=
830a0195d5fSmrg    continue
831a0195d5fSmrg  fi
832a0195d5fSmrg
833a0195d5fSmrg  case $ac_option in
8342ab73d9fSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8352ab73d9fSmrg  *=)   ac_optarg= ;;
8362ab73d9fSmrg  *)    ac_optarg=yes ;;
837a0195d5fSmrg  esac
838a0195d5fSmrg
839a0195d5fSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
840a0195d5fSmrg
841a0195d5fSmrg  case $ac_dashdash$ac_option in
842a0195d5fSmrg  --)
843a0195d5fSmrg    ac_dashdash=yes ;;
844a0195d5fSmrg
845a0195d5fSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
846a0195d5fSmrg    ac_prev=bindir ;;
847a0195d5fSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848a0195d5fSmrg    bindir=$ac_optarg ;;
849a0195d5fSmrg
850a0195d5fSmrg  -build | --build | --buil | --bui | --bu)
851a0195d5fSmrg    ac_prev=build_alias ;;
852a0195d5fSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
853a0195d5fSmrg    build_alias=$ac_optarg ;;
854a0195d5fSmrg
855a0195d5fSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
856a0195d5fSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
857a0195d5fSmrg    ac_prev=cache_file ;;
858a0195d5fSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
859a0195d5fSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
860a0195d5fSmrg    cache_file=$ac_optarg ;;
861a0195d5fSmrg
862a0195d5fSmrg  --config-cache | -C)
863a0195d5fSmrg    cache_file=config.cache ;;
864a0195d5fSmrg
865a0195d5fSmrg  -datadir | --datadir | --datadi | --datad)
866a0195d5fSmrg    ac_prev=datadir ;;
867a0195d5fSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
868a0195d5fSmrg    datadir=$ac_optarg ;;
869a0195d5fSmrg
870a0195d5fSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
871a0195d5fSmrg  | --dataroo | --dataro | --datar)
872a0195d5fSmrg    ac_prev=datarootdir ;;
873a0195d5fSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
874a0195d5fSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
875a0195d5fSmrg    datarootdir=$ac_optarg ;;
876a0195d5fSmrg
877a0195d5fSmrg  -disable-* | --disable-*)
8786600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
879a0195d5fSmrg    # Reject names that are not valid shell variable names.
8806600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8812ab73d9fSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
8826600fe5bSmrg    ac_useropt_orig=$ac_useropt
8836600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8846600fe5bSmrg    case $ac_user_opts in
8856600fe5bSmrg      *"
8866600fe5bSmrg"enable_$ac_useropt"
8876600fe5bSmrg"*) ;;
8886600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8896600fe5bSmrg	 ac_unrecognized_sep=', ';;
8906600fe5bSmrg    esac
8916600fe5bSmrg    eval enable_$ac_useropt=no ;;
892a0195d5fSmrg
893a0195d5fSmrg  -docdir | --docdir | --docdi | --doc | --do)
894a0195d5fSmrg    ac_prev=docdir ;;
895a0195d5fSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896a0195d5fSmrg    docdir=$ac_optarg ;;
897a0195d5fSmrg
898a0195d5fSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899a0195d5fSmrg    ac_prev=dvidir ;;
900a0195d5fSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901a0195d5fSmrg    dvidir=$ac_optarg ;;
902a0195d5fSmrg
903a0195d5fSmrg  -enable-* | --enable-*)
9046600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905a0195d5fSmrg    # Reject names that are not valid shell variable names.
9066600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9072ab73d9fSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
9086600fe5bSmrg    ac_useropt_orig=$ac_useropt
9096600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9106600fe5bSmrg    case $ac_user_opts in
9116600fe5bSmrg      *"
9126600fe5bSmrg"enable_$ac_useropt"
9136600fe5bSmrg"*) ;;
9146600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9156600fe5bSmrg	 ac_unrecognized_sep=', ';;
9166600fe5bSmrg    esac
9176600fe5bSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
918a0195d5fSmrg
919a0195d5fSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920a0195d5fSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921a0195d5fSmrg  | --exec | --exe | --ex)
922a0195d5fSmrg    ac_prev=exec_prefix ;;
923a0195d5fSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924a0195d5fSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925a0195d5fSmrg  | --exec=* | --exe=* | --ex=*)
926a0195d5fSmrg    exec_prefix=$ac_optarg ;;
927a0195d5fSmrg
928a0195d5fSmrg  -gas | --gas | --ga | --g)
929a0195d5fSmrg    # Obsolete; use --with-gas.
930a0195d5fSmrg    with_gas=yes ;;
931a0195d5fSmrg
932a0195d5fSmrg  -help | --help | --hel | --he | -h)
933a0195d5fSmrg    ac_init_help=long ;;
934a0195d5fSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935a0195d5fSmrg    ac_init_help=recursive ;;
936a0195d5fSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937a0195d5fSmrg    ac_init_help=short ;;
938a0195d5fSmrg
939a0195d5fSmrg  -host | --host | --hos | --ho)
940a0195d5fSmrg    ac_prev=host_alias ;;
941a0195d5fSmrg  -host=* | --host=* | --hos=* | --ho=*)
942a0195d5fSmrg    host_alias=$ac_optarg ;;
943a0195d5fSmrg
944a0195d5fSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945a0195d5fSmrg    ac_prev=htmldir ;;
946a0195d5fSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947a0195d5fSmrg  | --ht=*)
948a0195d5fSmrg    htmldir=$ac_optarg ;;
949a0195d5fSmrg
950a0195d5fSmrg  -includedir | --includedir | --includedi | --included | --include \
951a0195d5fSmrg  | --includ | --inclu | --incl | --inc)
952a0195d5fSmrg    ac_prev=includedir ;;
953a0195d5fSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954a0195d5fSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
955a0195d5fSmrg    includedir=$ac_optarg ;;
956a0195d5fSmrg
957a0195d5fSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
958a0195d5fSmrg    ac_prev=infodir ;;
959a0195d5fSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960a0195d5fSmrg    infodir=$ac_optarg ;;
961a0195d5fSmrg
962a0195d5fSmrg  -libdir | --libdir | --libdi | --libd)
963a0195d5fSmrg    ac_prev=libdir ;;
964a0195d5fSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
965a0195d5fSmrg    libdir=$ac_optarg ;;
966a0195d5fSmrg
967a0195d5fSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968a0195d5fSmrg  | --libexe | --libex | --libe)
969a0195d5fSmrg    ac_prev=libexecdir ;;
970a0195d5fSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971a0195d5fSmrg  | --libexe=* | --libex=* | --libe=*)
972a0195d5fSmrg    libexecdir=$ac_optarg ;;
973a0195d5fSmrg
974a0195d5fSmrg  -localedir | --localedir | --localedi | --localed | --locale)
975a0195d5fSmrg    ac_prev=localedir ;;
976a0195d5fSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977a0195d5fSmrg    localedir=$ac_optarg ;;
978a0195d5fSmrg
979a0195d5fSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
980a0195d5fSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
981a0195d5fSmrg    ac_prev=localstatedir ;;
982a0195d5fSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983a0195d5fSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984a0195d5fSmrg    localstatedir=$ac_optarg ;;
985a0195d5fSmrg
986a0195d5fSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987a0195d5fSmrg    ac_prev=mandir ;;
988a0195d5fSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989a0195d5fSmrg    mandir=$ac_optarg ;;
990a0195d5fSmrg
991a0195d5fSmrg  -nfp | --nfp | --nf)
992a0195d5fSmrg    # Obsolete; use --without-fp.
993a0195d5fSmrg    with_fp=no ;;
994a0195d5fSmrg
995a0195d5fSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996a0195d5fSmrg  | --no-cr | --no-c | -n)
997a0195d5fSmrg    no_create=yes ;;
998a0195d5fSmrg
999a0195d5fSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000a0195d5fSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001a0195d5fSmrg    no_recursion=yes ;;
1002a0195d5fSmrg
1003a0195d5fSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004a0195d5fSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005a0195d5fSmrg  | --oldin | --oldi | --old | --ol | --o)
1006a0195d5fSmrg    ac_prev=oldincludedir ;;
1007a0195d5fSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008a0195d5fSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009a0195d5fSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010a0195d5fSmrg    oldincludedir=$ac_optarg ;;
1011a0195d5fSmrg
1012a0195d5fSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013a0195d5fSmrg    ac_prev=prefix ;;
1014a0195d5fSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015a0195d5fSmrg    prefix=$ac_optarg ;;
1016a0195d5fSmrg
1017a0195d5fSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018a0195d5fSmrg  | --program-pre | --program-pr | --program-p)
1019a0195d5fSmrg    ac_prev=program_prefix ;;
1020a0195d5fSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021a0195d5fSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022a0195d5fSmrg    program_prefix=$ac_optarg ;;
1023a0195d5fSmrg
1024a0195d5fSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025a0195d5fSmrg  | --program-suf | --program-su | --program-s)
1026a0195d5fSmrg    ac_prev=program_suffix ;;
1027a0195d5fSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028a0195d5fSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029a0195d5fSmrg    program_suffix=$ac_optarg ;;
1030a0195d5fSmrg
1031a0195d5fSmrg  -program-transform-name | --program-transform-name \
1032a0195d5fSmrg  | --program-transform-nam | --program-transform-na \
1033a0195d5fSmrg  | --program-transform-n | --program-transform- \
1034a0195d5fSmrg  | --program-transform | --program-transfor \
1035a0195d5fSmrg  | --program-transfo | --program-transf \
1036a0195d5fSmrg  | --program-trans | --program-tran \
1037a0195d5fSmrg  | --progr-tra | --program-tr | --program-t)
1038a0195d5fSmrg    ac_prev=program_transform_name ;;
1039a0195d5fSmrg  -program-transform-name=* | --program-transform-name=* \
1040a0195d5fSmrg  | --program-transform-nam=* | --program-transform-na=* \
1041a0195d5fSmrg  | --program-transform-n=* | --program-transform-=* \
1042a0195d5fSmrg  | --program-transform=* | --program-transfor=* \
1043a0195d5fSmrg  | --program-transfo=* | --program-transf=* \
1044a0195d5fSmrg  | --program-trans=* | --program-tran=* \
1045a0195d5fSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1046a0195d5fSmrg    program_transform_name=$ac_optarg ;;
1047a0195d5fSmrg
1048a0195d5fSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049a0195d5fSmrg    ac_prev=pdfdir ;;
1050a0195d5fSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051a0195d5fSmrg    pdfdir=$ac_optarg ;;
1052a0195d5fSmrg
1053a0195d5fSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1054a0195d5fSmrg    ac_prev=psdir ;;
1055a0195d5fSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056a0195d5fSmrg    psdir=$ac_optarg ;;
1057a0195d5fSmrg
1058a0195d5fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059a0195d5fSmrg  | -silent | --silent | --silen | --sile | --sil)
1060a0195d5fSmrg    silent=yes ;;
1061a0195d5fSmrg
1062a0195d5fSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063a0195d5fSmrg    ac_prev=sbindir ;;
1064a0195d5fSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065a0195d5fSmrg  | --sbi=* | --sb=*)
1066a0195d5fSmrg    sbindir=$ac_optarg ;;
1067a0195d5fSmrg
1068a0195d5fSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069a0195d5fSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070a0195d5fSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1071a0195d5fSmrg  | --sha | --sh)
1072a0195d5fSmrg    ac_prev=sharedstatedir ;;
1073a0195d5fSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074a0195d5fSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075a0195d5fSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076a0195d5fSmrg  | --sha=* | --sh=*)
1077a0195d5fSmrg    sharedstatedir=$ac_optarg ;;
1078a0195d5fSmrg
1079a0195d5fSmrg  -site | --site | --sit)
1080a0195d5fSmrg    ac_prev=site ;;
1081a0195d5fSmrg  -site=* | --site=* | --sit=*)
1082a0195d5fSmrg    site=$ac_optarg ;;
1083a0195d5fSmrg
1084a0195d5fSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085a0195d5fSmrg    ac_prev=srcdir ;;
1086a0195d5fSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087a0195d5fSmrg    srcdir=$ac_optarg ;;
1088a0195d5fSmrg
1089a0195d5fSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090a0195d5fSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1091a0195d5fSmrg    ac_prev=sysconfdir ;;
1092a0195d5fSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093a0195d5fSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094a0195d5fSmrg    sysconfdir=$ac_optarg ;;
1095a0195d5fSmrg
1096a0195d5fSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1097a0195d5fSmrg    ac_prev=target_alias ;;
1098a0195d5fSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099a0195d5fSmrg    target_alias=$ac_optarg ;;
1100a0195d5fSmrg
1101a0195d5fSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102a0195d5fSmrg    verbose=yes ;;
1103a0195d5fSmrg
1104a0195d5fSmrg  -version | --version | --versio | --versi | --vers | -V)
1105a0195d5fSmrg    ac_init_version=: ;;
1106a0195d5fSmrg
1107a0195d5fSmrg  -with-* | --with-*)
11086600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109a0195d5fSmrg    # Reject names that are not valid shell variable names.
11106600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11112ab73d9fSmrg      as_fn_error $? "invalid package name: $ac_useropt"
11126600fe5bSmrg    ac_useropt_orig=$ac_useropt
11136600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11146600fe5bSmrg    case $ac_user_opts in
11156600fe5bSmrg      *"
11166600fe5bSmrg"with_$ac_useropt"
11176600fe5bSmrg"*) ;;
11186600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11196600fe5bSmrg	 ac_unrecognized_sep=', ';;
11206600fe5bSmrg    esac
11216600fe5bSmrg    eval with_$ac_useropt=\$ac_optarg ;;
1122a0195d5fSmrg
1123a0195d5fSmrg  -without-* | --without-*)
11246600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125a0195d5fSmrg    # Reject names that are not valid shell variable names.
11266600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11272ab73d9fSmrg      as_fn_error $? "invalid package name: $ac_useropt"
11286600fe5bSmrg    ac_useropt_orig=$ac_useropt
11296600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11306600fe5bSmrg    case $ac_user_opts in
11316600fe5bSmrg      *"
11326600fe5bSmrg"with_$ac_useropt"
11336600fe5bSmrg"*) ;;
11346600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11356600fe5bSmrg	 ac_unrecognized_sep=', ';;
11366600fe5bSmrg    esac
11376600fe5bSmrg    eval with_$ac_useropt=no ;;
1138a0195d5fSmrg
1139a0195d5fSmrg  --x)
1140a0195d5fSmrg    # Obsolete; use --with-x.
1141a0195d5fSmrg    with_x=yes ;;
1142a0195d5fSmrg
1143a0195d5fSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144a0195d5fSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1145a0195d5fSmrg    ac_prev=x_includes ;;
1146a0195d5fSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147a0195d5fSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148a0195d5fSmrg    x_includes=$ac_optarg ;;
1149a0195d5fSmrg
1150a0195d5fSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151a0195d5fSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152a0195d5fSmrg    ac_prev=x_libraries ;;
1153a0195d5fSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154a0195d5fSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155a0195d5fSmrg    x_libraries=$ac_optarg ;;
1156a0195d5fSmrg
11572ab73d9fSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11582ab73d9fSmrgTry \`$0 --help' for more information"
1159a0195d5fSmrg    ;;
1160a0195d5fSmrg
1161a0195d5fSmrg  *=*)
1162a0195d5fSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163a0195d5fSmrg    # Reject names that are not valid shell variable names.
11646f5dd5c2Smrg    case $ac_envvar in #(
11656f5dd5c2Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11662ab73d9fSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
11676f5dd5c2Smrg    esac
1168a0195d5fSmrg    eval $ac_envvar=\$ac_optarg
1169a0195d5fSmrg    export $ac_envvar ;;
1170a0195d5fSmrg
1171a0195d5fSmrg  *)
1172a0195d5fSmrg    # FIXME: should be removed in autoconf 3.0.
11736600fe5bSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174a0195d5fSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11756600fe5bSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11762ab73d9fSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1177a0195d5fSmrg    ;;
1178a0195d5fSmrg
1179a0195d5fSmrg  esac
1180a0195d5fSmrgdone
1181a0195d5fSmrg
1182a0195d5fSmrgif test -n "$ac_prev"; then
1183a0195d5fSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11842ab73d9fSmrg  as_fn_error $? "missing argument to $ac_option"
1185a0195d5fSmrgfi
1186a0195d5fSmrg
11876600fe5bSmrgif test -n "$ac_unrecognized_opts"; then
11886600fe5bSmrg  case $enable_option_checking in
11896600fe5bSmrg    no) ;;
11902ab73d9fSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11916600fe5bSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11926600fe5bSmrg  esac
11936600fe5bSmrgfi
11946600fe5bSmrg
11956600fe5bSmrg# Check all directory arguments for consistency.
11966600fe5bSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11976600fe5bSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1198a0195d5fSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1199a0195d5fSmrg		libdir localedir mandir
1200a0195d5fSmrgdo
1201a0195d5fSmrg  eval ac_val=\$$ac_var
12026600fe5bSmrg  # Remove trailing slashes.
12036600fe5bSmrg  case $ac_val in
12046600fe5bSmrg    */ )
12056600fe5bSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
12066600fe5bSmrg      eval $ac_var=\$ac_val;;
12076600fe5bSmrg  esac
12086600fe5bSmrg  # Be sure to have absolute directory names.
1209a0195d5fSmrg  case $ac_val in
1210a0195d5fSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1211a0195d5fSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212a0195d5fSmrg  esac
12132ab73d9fSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1214a0195d5fSmrgdone
1215a0195d5fSmrg
1216a0195d5fSmrg# There might be people who depend on the old broken behavior: `$host'
1217a0195d5fSmrg# used to hold the argument of --host etc.
1218a0195d5fSmrg# FIXME: To remove some day.
1219a0195d5fSmrgbuild=$build_alias
1220a0195d5fSmrghost=$host_alias
1221a0195d5fSmrgtarget=$target_alias
1222a0195d5fSmrg
1223a0195d5fSmrg# FIXME: To remove some day.
1224a0195d5fSmrgif test "x$host_alias" != x; then
1225a0195d5fSmrg  if test "x$build_alias" = x; then
1226a0195d5fSmrg    cross_compiling=maybe
12272ab73d9fSmrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
12282ab73d9fSmrg    If a cross compiler is detected then cross compile mode will be used" >&2
1229a0195d5fSmrg  elif test "x$build_alias" != "x$host_alias"; then
1230a0195d5fSmrg    cross_compiling=yes
1231a0195d5fSmrg  fi
1232a0195d5fSmrgfi
1233a0195d5fSmrg
1234a0195d5fSmrgac_tool_prefix=
1235a0195d5fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1236a0195d5fSmrg
1237a0195d5fSmrgtest "$silent" = yes && exec 6>/dev/null
1238a0195d5fSmrg
1239a0195d5fSmrg
1240a0195d5fSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1241a0195d5fSmrgac_ls_di=`ls -di .` &&
1242a0195d5fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12432ab73d9fSmrg  as_fn_error $? "working directory cannot be determined"
1244a0195d5fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12452ab73d9fSmrg  as_fn_error $? "pwd does not report name of working directory"
1246a0195d5fSmrg
1247a0195d5fSmrg
1248a0195d5fSmrg# Find the source files, if location was not specified.
1249a0195d5fSmrgif test -z "$srcdir"; then
1250a0195d5fSmrg  ac_srcdir_defaulted=yes
1251a0195d5fSmrg  # Try the directory containing this script, then the parent directory.
12526600fe5bSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12536600fe5bSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12546600fe5bSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12556600fe5bSmrg	 X"$as_myself" : 'X\(//\)$' \| \
12566600fe5bSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12576600fe5bSmrg$as_echo X"$as_myself" |
1258a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259a0195d5fSmrg	    s//\1/
1260a0195d5fSmrg	    q
1261a0195d5fSmrg	  }
1262a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
1263a0195d5fSmrg	    s//\1/
1264a0195d5fSmrg	    q
1265a0195d5fSmrg	  }
1266a0195d5fSmrg	  /^X\(\/\/\)$/{
1267a0195d5fSmrg	    s//\1/
1268a0195d5fSmrg	    q
1269a0195d5fSmrg	  }
1270a0195d5fSmrg	  /^X\(\/\).*/{
1271a0195d5fSmrg	    s//\1/
1272a0195d5fSmrg	    q
1273a0195d5fSmrg	  }
1274a0195d5fSmrg	  s/.*/./; q'`
1275a0195d5fSmrg  srcdir=$ac_confdir
1276a0195d5fSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
1277a0195d5fSmrg    srcdir=..
1278a0195d5fSmrg  fi
1279a0195d5fSmrgelse
1280a0195d5fSmrg  ac_srcdir_defaulted=no
1281a0195d5fSmrgfi
1282a0195d5fSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1283a0195d5fSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12842ab73d9fSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1285a0195d5fSmrgfi
1286a0195d5fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287a0195d5fSmrgac_abs_confdir=`(
12882ab73d9fSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1289a0195d5fSmrg	pwd)`
1290a0195d5fSmrg# When building in place, set srcdir=.
1291a0195d5fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1292a0195d5fSmrg  srcdir=.
1293a0195d5fSmrgfi
1294a0195d5fSmrg# Remove unnecessary trailing slashes from srcdir.
1295a0195d5fSmrg# Double slashes in file names in object file debugging info
1296a0195d5fSmrg# mess up M-x gdb in Emacs.
1297a0195d5fSmrgcase $srcdir in
1298a0195d5fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299a0195d5fSmrgesac
1300a0195d5fSmrgfor ac_var in $ac_precious_vars; do
1301a0195d5fSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302a0195d5fSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1303a0195d5fSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304a0195d5fSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305a0195d5fSmrgdone
1306a0195d5fSmrg
1307a0195d5fSmrg#
1308a0195d5fSmrg# Report the --help message.
1309a0195d5fSmrg#
1310a0195d5fSmrgif test "$ac_init_help" = "long"; then
1311a0195d5fSmrg  # Omit some internal or obsolete options to make the list less imposing.
1312a0195d5fSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1313a0195d5fSmrg  cat <<_ACEOF
131440a76396Smrg\`configure' configures xset 1.2.3 to adapt to many kinds of systems.
1315a0195d5fSmrg
1316a0195d5fSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1317a0195d5fSmrg
1318a0195d5fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1319a0195d5fSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1320a0195d5fSmrg
1321a0195d5fSmrgDefaults for the options are specified in brackets.
1322a0195d5fSmrg
1323a0195d5fSmrgConfiguration:
1324a0195d5fSmrg  -h, --help              display this help and exit
1325a0195d5fSmrg      --help=short        display options specific to this package
1326a0195d5fSmrg      --help=recursive    display the short help of all the included packages
1327a0195d5fSmrg  -V, --version           display version information and exit
13282ab73d9fSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
1329a0195d5fSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1330a0195d5fSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1331a0195d5fSmrg  -n, --no-create         do not create output files
1332a0195d5fSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1333a0195d5fSmrg
1334a0195d5fSmrgInstallation directories:
1335a0195d5fSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13366600fe5bSmrg                          [$ac_default_prefix]
1337a0195d5fSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13386600fe5bSmrg                          [PREFIX]
1339a0195d5fSmrg
1340a0195d5fSmrgBy default, \`make install' will install all the files in
1341a0195d5fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1342a0195d5fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343a0195d5fSmrgfor instance \`--prefix=\$HOME'.
1344a0195d5fSmrg
1345a0195d5fSmrgFor better control, use the options below.
1346a0195d5fSmrg
1347a0195d5fSmrgFine tuning of the installation directories:
13486600fe5bSmrg  --bindir=DIR            user executables [EPREFIX/bin]
13496600fe5bSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13506600fe5bSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13516600fe5bSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13526600fe5bSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13536600fe5bSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13546600fe5bSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13556600fe5bSmrg  --includedir=DIR        C header files [PREFIX/include]
13566600fe5bSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13576600fe5bSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13586600fe5bSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13596600fe5bSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13606600fe5bSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13616600fe5bSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13626600fe5bSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xset]
13636600fe5bSmrg  --htmldir=DIR           html documentation [DOCDIR]
13646600fe5bSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
13656600fe5bSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13666600fe5bSmrg  --psdir=DIR             ps documentation [DOCDIR]
1367a0195d5fSmrg_ACEOF
1368a0195d5fSmrg
1369a0195d5fSmrg  cat <<\_ACEOF
1370a0195d5fSmrg
1371a0195d5fSmrgProgram names:
1372a0195d5fSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1373a0195d5fSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1374a0195d5fSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1375a0195d5fSmrg
1376a0195d5fSmrgSystem types:
1377a0195d5fSmrg  --build=BUILD     configure for building on BUILD [guessed]
1378a0195d5fSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379a0195d5fSmrg_ACEOF
1380a0195d5fSmrgfi
1381a0195d5fSmrg
1382a0195d5fSmrgif test -n "$ac_init_help"; then
1383a0195d5fSmrg  case $ac_init_help in
138440a76396Smrg     short | recursive ) echo "Configuration of xset 1.2.3:";;
1385a0195d5fSmrg   esac
1386a0195d5fSmrg  cat <<\_ACEOF
1387a0195d5fSmrg
1388a0195d5fSmrgOptional Features:
13896600fe5bSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
1390a0195d5fSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1391a0195d5fSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
139240a76396Smrg  --enable-dependency-tracking
139340a76396Smrg                          do not reject slow dependency extractors
139440a76396Smrg  --disable-dependency-tracking
139540a76396Smrg                          speeds up one-time build
139640a76396Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
139740a76396Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
139840a76396Smrg  --enable-maintainer-mode
139940a76396Smrg                          enable make rules and dependencies not useful (and
140040a76396Smrg                          sometimes confusing) to the casual installer
140140a76396Smrg  --disable-selective-werror
140240a76396Smrg                          Turn off selective compiler errors. (default:
140340a76396Smrg                          enabled)
14046600fe5bSmrg  --enable-strict-compilation
14056600fe5bSmrg                          Enable all warnings from compiler and make them
14066600fe5bSmrg                          errors (default: disabled)
1407a0195d5fSmrg
1408a0195d5fSmrgOptional Packages:
1409a0195d5fSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1410a0195d5fSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14116f5dd5c2Smrg  --without-xf86misc      Disable xf86misc support.
14126f5dd5c2Smrg  --without-fontcache     Disable fontcache support.
1413a0195d5fSmrg
1414a0195d5fSmrgSome influential environment variables:
1415a0195d5fSmrg  CC          C compiler command
1416a0195d5fSmrg  CFLAGS      C compiler flags
1417a0195d5fSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1418a0195d5fSmrg              nonstandard directory <lib dir>
1419a0195d5fSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14206f5dd5c2Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1421a0195d5fSmrg              you have headers in a nonstandard directory <include dir>
14226600fe5bSmrg  CPP         C preprocessor
1423a0195d5fSmrg  PKG_CONFIG  path to pkg-config utility
1424a0195d5fSmrg  XSET_CFLAGS C compiler flags for XSET, overriding pkg-config
1425a0195d5fSmrg  XSET_LIBS   linker flags for XSET, overriding pkg-config
1426a0195d5fSmrg  SET_X11_CFLAGS
1427a0195d5fSmrg              C compiler flags for SET_X11, overriding pkg-config
1428a0195d5fSmrg  SET_X11_LIBS
1429a0195d5fSmrg              linker flags for SET_X11, overriding pkg-config
1430a0195d5fSmrg  SET_XEXT_CFLAGS
1431a0195d5fSmrg              C compiler flags for SET_XEXT, overriding pkg-config
1432a0195d5fSmrg  SET_XEXT_LIBS
1433a0195d5fSmrg              linker flags for SET_XEXT, overriding pkg-config
1434a0195d5fSmrg  SET_XKB_CFLAGS
1435a0195d5fSmrg              C compiler flags for SET_XKB, overriding pkg-config
1436a0195d5fSmrg  SET_XKB_LIBS
1437a0195d5fSmrg              linker flags for SET_XKB, overriding pkg-config
1438a0195d5fSmrg  SET_XF86MISC_CFLAGS
1439a0195d5fSmrg              C compiler flags for SET_XF86MISC, overriding pkg-config
1440a0195d5fSmrg  SET_XF86MISC_LIBS
1441a0195d5fSmrg              linker flags for SET_XF86MISC, overriding pkg-config
1442a0195d5fSmrg  SET_FONTCACHE_CFLAGS
1443a0195d5fSmrg              C compiler flags for SET_FONTCACHE, overriding pkg-config
1444a0195d5fSmrg  SET_FONTCACHE_LIBS
1445a0195d5fSmrg              linker flags for SET_FONTCACHE, overriding pkg-config
1446a0195d5fSmrg
1447a0195d5fSmrgUse these variables to override the choices made by `configure' or to help
1448a0195d5fSmrgit to find libraries and programs with nonstandard names/locations.
1449a0195d5fSmrg
1450a0195d5fSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1451a0195d5fSmrg_ACEOF
1452a0195d5fSmrgac_status=$?
1453a0195d5fSmrgfi
1454a0195d5fSmrg
1455a0195d5fSmrgif test "$ac_init_help" = "recursive"; then
1456a0195d5fSmrg  # If there are subdirs, report their specific --help.
1457a0195d5fSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14586600fe5bSmrg    test -d "$ac_dir" ||
14596600fe5bSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14606600fe5bSmrg      continue
1461a0195d5fSmrg    ac_builddir=.
1462a0195d5fSmrg
1463a0195d5fSmrgcase "$ac_dir" in
1464a0195d5fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465a0195d5fSmrg*)
14666600fe5bSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467a0195d5fSmrg  # A ".." for each directory in $ac_dir_suffix.
14686600fe5bSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469a0195d5fSmrg  case $ac_top_builddir_sub in
1470a0195d5fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471a0195d5fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472a0195d5fSmrg  esac ;;
1473a0195d5fSmrgesac
1474a0195d5fSmrgac_abs_top_builddir=$ac_pwd
1475a0195d5fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1476a0195d5fSmrg# for backward compatibility:
1477a0195d5fSmrgac_top_builddir=$ac_top_build_prefix
1478a0195d5fSmrg
1479a0195d5fSmrgcase $srcdir in
1480a0195d5fSmrg  .)  # We are building in place.
1481a0195d5fSmrg    ac_srcdir=.
1482a0195d5fSmrg    ac_top_srcdir=$ac_top_builddir_sub
1483a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1484a0195d5fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1485a0195d5fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
1486a0195d5fSmrg    ac_top_srcdir=$srcdir
1487a0195d5fSmrg    ac_abs_top_srcdir=$srcdir ;;
1488a0195d5fSmrg  *) # Relative name.
1489a0195d5fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490a0195d5fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1491a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492a0195d5fSmrgesac
1493a0195d5fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494a0195d5fSmrg
1495a0195d5fSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
1496a0195d5fSmrg    # Check for guested configure.
1497a0195d5fSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1498a0195d5fSmrg      echo &&
1499a0195d5fSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500a0195d5fSmrg    elif test -f "$ac_srcdir/configure"; then
1501a0195d5fSmrg      echo &&
1502a0195d5fSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
1503a0195d5fSmrg    else
15046600fe5bSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505a0195d5fSmrg    fi || ac_status=$?
1506a0195d5fSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
1507a0195d5fSmrg  done
1508a0195d5fSmrgfi
1509a0195d5fSmrg
1510a0195d5fSmrgtest -n "$ac_init_help" && exit $ac_status
1511a0195d5fSmrgif $ac_init_version; then
1512a0195d5fSmrg  cat <<\_ACEOF
151340a76396Smrgxset configure 1.2.3
15142ab73d9fSmrggenerated by GNU Autoconf 2.68
1515a0195d5fSmrg
15162ab73d9fSmrgCopyright (C) 2010 Free Software Foundation, Inc.
1517a0195d5fSmrgThis configure script is free software; the Free Software Foundation
1518a0195d5fSmrggives unlimited permission to copy, distribute and modify it.
1519a0195d5fSmrg_ACEOF
1520a0195d5fSmrg  exit
1521a0195d5fSmrgfi
1522a0195d5fSmrg
15236f5dd5c2Smrg## ------------------------ ##
15246f5dd5c2Smrg## Autoconf initialization. ##
15256f5dd5c2Smrg## ------------------------ ##
1526a0195d5fSmrg
15276f5dd5c2Smrg# ac_fn_c_try_compile LINENO
15286f5dd5c2Smrg# --------------------------
15296f5dd5c2Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
15306f5dd5c2Smrgac_fn_c_try_compile ()
1531a0195d5fSmrg{
15326f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15336f5dd5c2Smrg  rm -f conftest.$ac_objext
15346f5dd5c2Smrg  if { { ac_try="$ac_compile"
15356f5dd5c2Smrgcase "(($ac_try" in
15366f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
15386f5dd5c2Smrgesac
15396f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15406f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
15416f5dd5c2Smrg  (eval "$ac_compile") 2>conftest.err
15426f5dd5c2Smrg  ac_status=$?
15436f5dd5c2Smrg  if test -s conftest.err; then
15446f5dd5c2Smrg    grep -v '^ *+' conftest.err >conftest.er1
15456f5dd5c2Smrg    cat conftest.er1 >&5
15466f5dd5c2Smrg    mv -f conftest.er1 conftest.err
15476f5dd5c2Smrg  fi
15486f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15496f5dd5c2Smrg  test $ac_status = 0; } && {
15506f5dd5c2Smrg	 test -z "$ac_c_werror_flag" ||
15516f5dd5c2Smrg	 test ! -s conftest.err
15526f5dd5c2Smrg       } && test -s conftest.$ac_objext; then :
15536f5dd5c2Smrg  ac_retval=0
15546f5dd5c2Smrgelse
15556f5dd5c2Smrg  $as_echo "$as_me: failed program was:" >&5
15566f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
1557a0195d5fSmrg
15586f5dd5c2Smrg	ac_retval=1
15596f5dd5c2Smrgfi
15602ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15616f5dd5c2Smrg  as_fn_set_status $ac_retval
1562a0195d5fSmrg
15636f5dd5c2Smrg} # ac_fn_c_try_compile
15646f5dd5c2Smrg
15656f5dd5c2Smrg# ac_fn_c_try_cpp LINENO
15666f5dd5c2Smrg# ----------------------
15676f5dd5c2Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
15686f5dd5c2Smrgac_fn_c_try_cpp ()
15696f5dd5c2Smrg{
15706f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15716f5dd5c2Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
15726f5dd5c2Smrgcase "(($ac_try" in
15736f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
15756f5dd5c2Smrgesac
15766f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15776f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
15786f5dd5c2Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
15796f5dd5c2Smrg  ac_status=$?
15806f5dd5c2Smrg  if test -s conftest.err; then
15816f5dd5c2Smrg    grep -v '^ *+' conftest.err >conftest.er1
15826f5dd5c2Smrg    cat conftest.er1 >&5
15836f5dd5c2Smrg    mv -f conftest.er1 conftest.err
15846f5dd5c2Smrg  fi
15856f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15862ab73d9fSmrg  test $ac_status = 0; } > conftest.i && {
15876f5dd5c2Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15886f5dd5c2Smrg	 test ! -s conftest.err
15896f5dd5c2Smrg       }; then :
15906f5dd5c2Smrg  ac_retval=0
15916f5dd5c2Smrgelse
15926f5dd5c2Smrg  $as_echo "$as_me: failed program was:" >&5
15936f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
15946f5dd5c2Smrg
15956f5dd5c2Smrg    ac_retval=1
15966f5dd5c2Smrgfi
15972ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15986f5dd5c2Smrg  as_fn_set_status $ac_retval
15996f5dd5c2Smrg
16006f5dd5c2Smrg} # ac_fn_c_try_cpp
16016f5dd5c2Smrg
160240a76396Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
160340a76396Smrg# -------------------------------------------------------
160440a76396Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using
160540a76396Smrg# the include files in INCLUDES and setting the cache variable VAR
160640a76396Smrg# accordingly.
160740a76396Smrgac_fn_c_check_header_mongrel ()
160840a76396Smrg{
160940a76396Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
161040a76396Smrg  if eval \${$3+:} false; then :
161140a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
161240a76396Smrg$as_echo_n "checking for $2... " >&6; }
161340a76396Smrgif eval \${$3+:} false; then :
161440a76396Smrg  $as_echo_n "(cached) " >&6
161540a76396Smrgfi
161640a76396Smrgeval ac_res=\$$3
161740a76396Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
161840a76396Smrg$as_echo "$ac_res" >&6; }
161940a76396Smrgelse
162040a76396Smrg  # Is the header compilable?
162140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
162240a76396Smrg$as_echo_n "checking $2 usability... " >&6; }
162340a76396Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
162440a76396Smrg/* end confdefs.h.  */
162540a76396Smrg$4
162640a76396Smrg#include <$2>
162740a76396Smrg_ACEOF
162840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
162940a76396Smrg  ac_header_compiler=yes
163040a76396Smrgelse
163140a76396Smrg  ac_header_compiler=no
163240a76396Smrgfi
163340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
163440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
163540a76396Smrg$as_echo "$ac_header_compiler" >&6; }
163640a76396Smrg
163740a76396Smrg# Is the header present?
163840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
163940a76396Smrg$as_echo_n "checking $2 presence... " >&6; }
164040a76396Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
164140a76396Smrg/* end confdefs.h.  */
164240a76396Smrg#include <$2>
164340a76396Smrg_ACEOF
164440a76396Smrgif ac_fn_c_try_cpp "$LINENO"; then :
164540a76396Smrg  ac_header_preproc=yes
164640a76396Smrgelse
164740a76396Smrg  ac_header_preproc=no
164840a76396Smrgfi
164940a76396Smrgrm -f conftest.err conftest.i conftest.$ac_ext
165040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
165140a76396Smrg$as_echo "$ac_header_preproc" >&6; }
165240a76396Smrg
165340a76396Smrg# So?  What about this header?
165440a76396Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
165540a76396Smrg  yes:no: )
165640a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
165740a76396Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
165840a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
165940a76396Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
166040a76396Smrg    ;;
166140a76396Smrg  no:yes:* )
166240a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
166340a76396Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
166440a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
166540a76396Smrg$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
166640a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
166740a76396Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
166840a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
166940a76396Smrg$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
167040a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
167140a76396Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
167240a76396Smrg( $as_echo "## ---------------------------------------------------------------------- ##
167340a76396Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
167440a76396Smrg## ---------------------------------------------------------------------- ##"
167540a76396Smrg     ) | sed "s/^/$as_me: WARNING:     /" >&2
167640a76396Smrg    ;;
167740a76396Smrgesac
167840a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
167940a76396Smrg$as_echo_n "checking for $2... " >&6; }
168040a76396Smrgif eval \${$3+:} false; then :
168140a76396Smrg  $as_echo_n "(cached) " >&6
168240a76396Smrgelse
168340a76396Smrg  eval "$3=\$ac_header_compiler"
168440a76396Smrgfi
168540a76396Smrgeval ac_res=\$$3
168640a76396Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
168740a76396Smrg$as_echo "$ac_res" >&6; }
168840a76396Smrgfi
168940a76396Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
169040a76396Smrg
169140a76396Smrg} # ac_fn_c_check_header_mongrel
169240a76396Smrg
16936f5dd5c2Smrg# ac_fn_c_try_run LINENO
16946f5dd5c2Smrg# ----------------------
16956f5dd5c2Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
16966f5dd5c2Smrg# that executables *can* be run.
16976f5dd5c2Smrgac_fn_c_try_run ()
16986f5dd5c2Smrg{
16996f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17006f5dd5c2Smrg  if { { ac_try="$ac_link"
17016f5dd5c2Smrgcase "(($ac_try" in
17026f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
17046f5dd5c2Smrgesac
17056f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17066f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
17076f5dd5c2Smrg  (eval "$ac_link") 2>&5
17086f5dd5c2Smrg  ac_status=$?
17096f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17106f5dd5c2Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
17116f5dd5c2Smrg  { { case "(($ac_try" in
17126f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
17146f5dd5c2Smrgesac
17156f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17166f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
17176f5dd5c2Smrg  (eval "$ac_try") 2>&5
17186f5dd5c2Smrg  ac_status=$?
17196f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17206f5dd5c2Smrg  test $ac_status = 0; }; }; then :
17216f5dd5c2Smrg  ac_retval=0
17226f5dd5c2Smrgelse
17236f5dd5c2Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
17246f5dd5c2Smrg       $as_echo "$as_me: failed program was:" >&5
17256f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
17266f5dd5c2Smrg
17276f5dd5c2Smrg       ac_retval=$ac_status
17286f5dd5c2Smrgfi
17296f5dd5c2Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17302ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17316f5dd5c2Smrg  as_fn_set_status $ac_retval
17326f5dd5c2Smrg
17336f5dd5c2Smrg} # ac_fn_c_try_run
17346f5dd5c2Smrg
17356f5dd5c2Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
17366f5dd5c2Smrg# -------------------------------------------------------
17376f5dd5c2Smrg# Tests whether HEADER exists and can be compiled using the include files in
17386f5dd5c2Smrg# INCLUDES, setting the cache variable VAR accordingly.
17396f5dd5c2Smrgac_fn_c_check_header_compile ()
17406f5dd5c2Smrg{
17416f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17426f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17436f5dd5c2Smrg$as_echo_n "checking for $2... " >&6; }
17442ab73d9fSmrgif eval \${$3+:} false; then :
17456f5dd5c2Smrg  $as_echo_n "(cached) " >&6
17466f5dd5c2Smrgelse
17476f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486f5dd5c2Smrg/* end confdefs.h.  */
17496f5dd5c2Smrg$4
17506f5dd5c2Smrg#include <$2>
17516f5dd5c2Smrg_ACEOF
17526f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
17536f5dd5c2Smrg  eval "$3=yes"
17546f5dd5c2Smrgelse
17556f5dd5c2Smrg  eval "$3=no"
17566f5dd5c2Smrgfi
17576f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17586f5dd5c2Smrgfi
17596f5dd5c2Smrgeval ac_res=\$$3
17606f5dd5c2Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17616f5dd5c2Smrg$as_echo "$ac_res" >&6; }
17622ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17636f5dd5c2Smrg
17646f5dd5c2Smrg} # ac_fn_c_check_header_compile
17656f5dd5c2Smrg
176640a76396Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
176740a76396Smrg# ---------------------------------------------
176840a76396Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
176940a76396Smrg# accordingly.
177040a76396Smrgac_fn_c_check_decl ()
177140a76396Smrg{
177240a76396Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
177340a76396Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
177440a76396Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
177540a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
177640a76396Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
177740a76396Smrgif eval \${$3+:} false; then :
177840a76396Smrg  $as_echo_n "(cached) " >&6
177940a76396Smrgelse
178040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
178140a76396Smrg/* end confdefs.h.  */
178240a76396Smrg$4
178340a76396Smrgint
178440a76396Smrgmain ()
178540a76396Smrg{
178640a76396Smrg#ifndef $as_decl_name
178740a76396Smrg#ifdef __cplusplus
178840a76396Smrg  (void) $as_decl_use;
178940a76396Smrg#else
179040a76396Smrg  (void) $as_decl_name;
179140a76396Smrg#endif
179240a76396Smrg#endif
179340a76396Smrg
179440a76396Smrg  ;
179540a76396Smrg  return 0;
179640a76396Smrg}
179740a76396Smrg_ACEOF
179840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
179940a76396Smrg  eval "$3=yes"
180040a76396Smrgelse
180140a76396Smrg  eval "$3=no"
180240a76396Smrgfi
180340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
180440a76396Smrgfi
180540a76396Smrgeval ac_res=\$$3
180640a76396Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
180740a76396Smrg$as_echo "$ac_res" >&6; }
180840a76396Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
180940a76396Smrg
181040a76396Smrg} # ac_fn_c_check_decl
181140a76396Smrg
18126f5dd5c2Smrg# ac_fn_c_try_link LINENO
18136f5dd5c2Smrg# -----------------------
18146f5dd5c2Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
18156f5dd5c2Smrgac_fn_c_try_link ()
18166f5dd5c2Smrg{
18176f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18186f5dd5c2Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
18196f5dd5c2Smrg  if { { ac_try="$ac_link"
18206f5dd5c2Smrgcase "(($ac_try" in
18216f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
18236f5dd5c2Smrgesac
18246f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18256f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
18266f5dd5c2Smrg  (eval "$ac_link") 2>conftest.err
18276f5dd5c2Smrg  ac_status=$?
18286f5dd5c2Smrg  if test -s conftest.err; then
18296f5dd5c2Smrg    grep -v '^ *+' conftest.err >conftest.er1
18306f5dd5c2Smrg    cat conftest.er1 >&5
18316f5dd5c2Smrg    mv -f conftest.er1 conftest.err
18326f5dd5c2Smrg  fi
18336f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18346f5dd5c2Smrg  test $ac_status = 0; } && {
18356f5dd5c2Smrg	 test -z "$ac_c_werror_flag" ||
18366f5dd5c2Smrg	 test ! -s conftest.err
18376f5dd5c2Smrg       } && test -s conftest$ac_exeext && {
18386f5dd5c2Smrg	 test "$cross_compiling" = yes ||
18396f5dd5c2Smrg	 $as_test_x conftest$ac_exeext
18406f5dd5c2Smrg       }; then :
18416f5dd5c2Smrg  ac_retval=0
18426f5dd5c2Smrgelse
18436f5dd5c2Smrg  $as_echo "$as_me: failed program was:" >&5
18446f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
18456f5dd5c2Smrg
18466f5dd5c2Smrg	ac_retval=1
18476f5dd5c2Smrgfi
18486f5dd5c2Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
18496f5dd5c2Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
18506f5dd5c2Smrg  # interfere with the next link command; also delete a directory that is
18516f5dd5c2Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
18526f5dd5c2Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
18532ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18546f5dd5c2Smrg  as_fn_set_status $ac_retval
18556f5dd5c2Smrg
18566f5dd5c2Smrg} # ac_fn_c_try_link
18576f5dd5c2Smrg
18586f5dd5c2Smrg# ac_fn_c_check_func LINENO FUNC VAR
18596f5dd5c2Smrg# ----------------------------------
18606f5dd5c2Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
18616f5dd5c2Smrgac_fn_c_check_func ()
18626f5dd5c2Smrg{
18636f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18646f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18656f5dd5c2Smrg$as_echo_n "checking for $2... " >&6; }
18662ab73d9fSmrgif eval \${$3+:} false; then :
18676f5dd5c2Smrg  $as_echo_n "(cached) " >&6
18686f5dd5c2Smrgelse
18696f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18706f5dd5c2Smrg/* end confdefs.h.  */
18716f5dd5c2Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
18726f5dd5c2Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18736f5dd5c2Smrg#define $2 innocuous_$2
18746f5dd5c2Smrg
18756f5dd5c2Smrg/* System header to define __stub macros and hopefully few prototypes,
18766f5dd5c2Smrg    which can conflict with char $2 (); below.
18776f5dd5c2Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18786f5dd5c2Smrg    <limits.h> exists even on freestanding compilers.  */
18796f5dd5c2Smrg
18806f5dd5c2Smrg#ifdef __STDC__
18816f5dd5c2Smrg# include <limits.h>
18826f5dd5c2Smrg#else
18836f5dd5c2Smrg# include <assert.h>
18846f5dd5c2Smrg#endif
18856f5dd5c2Smrg
18866f5dd5c2Smrg#undef $2
18876f5dd5c2Smrg
18886f5dd5c2Smrg/* Override any GCC internal prototype to avoid an error.
18896f5dd5c2Smrg   Use char because int might match the return type of a GCC
18906f5dd5c2Smrg   builtin and then its argument prototype would still apply.  */
18916f5dd5c2Smrg#ifdef __cplusplus
18926f5dd5c2Smrgextern "C"
18936f5dd5c2Smrg#endif
18946f5dd5c2Smrgchar $2 ();
18956f5dd5c2Smrg/* The GNU C library defines this for functions which it implements
18966f5dd5c2Smrg    to always fail with ENOSYS.  Some functions are actually named
18976f5dd5c2Smrg    something starting with __ and the normal name is an alias.  */
18986f5dd5c2Smrg#if defined __stub_$2 || defined __stub___$2
18996f5dd5c2Smrgchoke me
19006f5dd5c2Smrg#endif
19016f5dd5c2Smrg
19026f5dd5c2Smrgint
19036f5dd5c2Smrgmain ()
19046f5dd5c2Smrg{
19056f5dd5c2Smrgreturn $2 ();
19066f5dd5c2Smrg  ;
19076f5dd5c2Smrg  return 0;
19086f5dd5c2Smrg}
19096f5dd5c2Smrg_ACEOF
19106f5dd5c2Smrgif ac_fn_c_try_link "$LINENO"; then :
19116f5dd5c2Smrg  eval "$3=yes"
19126f5dd5c2Smrgelse
19136f5dd5c2Smrg  eval "$3=no"
19146f5dd5c2Smrgfi
19156f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext \
19166f5dd5c2Smrg    conftest$ac_exeext conftest.$ac_ext
19176f5dd5c2Smrgfi
19186f5dd5c2Smrgeval ac_res=\$$3
19196f5dd5c2Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19206f5dd5c2Smrg$as_echo "$ac_res" >&6; }
19212ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19226f5dd5c2Smrg
19236f5dd5c2Smrg} # ac_fn_c_check_func
19246f5dd5c2Smrgcat >config.log <<_ACEOF
19256f5dd5c2SmrgThis file contains any messages produced by compilers while
19266f5dd5c2Smrgrunning configure, to aid debugging if configure makes a mistake.
19276f5dd5c2Smrg
192840a76396SmrgIt was created by xset $as_me 1.2.3, which was
19292ab73d9fSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
19306f5dd5c2Smrg
19316f5dd5c2Smrg  $ $0 $@
19326f5dd5c2Smrg
19336f5dd5c2Smrg_ACEOF
19346f5dd5c2Smrgexec 5>>config.log
19356f5dd5c2Smrg{
19366f5dd5c2Smrgcat <<_ASUNAME
19376f5dd5c2Smrg## --------- ##
19386f5dd5c2Smrg## Platform. ##
19396f5dd5c2Smrg## --------- ##
19406f5dd5c2Smrg
19416f5dd5c2Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
19426f5dd5c2Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
19436f5dd5c2Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
19446f5dd5c2Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
19456f5dd5c2Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
19466f5dd5c2Smrg
19476f5dd5c2Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
19486f5dd5c2Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
19496f5dd5c2Smrg
19506f5dd5c2Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
19516f5dd5c2Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
19526f5dd5c2Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
19536f5dd5c2Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
19546f5dd5c2Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
19556f5dd5c2Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
19566f5dd5c2Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
19576f5dd5c2Smrg
19586f5dd5c2Smrg_ASUNAME
1959a0195d5fSmrg
1960a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961a0195d5fSmrgfor as_dir in $PATH
1962a0195d5fSmrgdo
1963a0195d5fSmrg  IFS=$as_save_IFS
1964a0195d5fSmrg  test -z "$as_dir" && as_dir=.
19656f5dd5c2Smrg    $as_echo "PATH: $as_dir"
19666f5dd5c2Smrg  done
1967a0195d5fSmrgIFS=$as_save_IFS
1968a0195d5fSmrg
1969a0195d5fSmrg} >&5
1970a0195d5fSmrg
1971a0195d5fSmrgcat >&5 <<_ACEOF
1972a0195d5fSmrg
1973a0195d5fSmrg
1974a0195d5fSmrg## ----------- ##
1975a0195d5fSmrg## Core tests. ##
1976a0195d5fSmrg## ----------- ##
1977a0195d5fSmrg
1978a0195d5fSmrg_ACEOF
1979a0195d5fSmrg
1980a0195d5fSmrg
1981a0195d5fSmrg# Keep a trace of the command line.
1982a0195d5fSmrg# Strip out --no-create and --no-recursion so they do not pile up.
1983a0195d5fSmrg# Strip out --silent because we don't want to record it for future runs.
1984a0195d5fSmrg# Also quote any args containing shell meta-characters.
1985a0195d5fSmrg# Make two passes to allow for proper duplicate-argument suppression.
1986a0195d5fSmrgac_configure_args=
1987a0195d5fSmrgac_configure_args0=
1988a0195d5fSmrgac_configure_args1=
1989a0195d5fSmrgac_must_keep_next=false
1990a0195d5fSmrgfor ac_pass in 1 2
1991a0195d5fSmrgdo
1992a0195d5fSmrg  for ac_arg
1993a0195d5fSmrg  do
1994a0195d5fSmrg    case $ac_arg in
1995a0195d5fSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1996a0195d5fSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1997a0195d5fSmrg    | -silent | --silent | --silen | --sile | --sil)
1998a0195d5fSmrg      continue ;;
1999a0195d5fSmrg    *\'*)
20006600fe5bSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2001a0195d5fSmrg    esac
2002a0195d5fSmrg    case $ac_pass in
20036f5dd5c2Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2004a0195d5fSmrg    2)
20056f5dd5c2Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
2006a0195d5fSmrg      if test $ac_must_keep_next = true; then
2007a0195d5fSmrg	ac_must_keep_next=false # Got value, back to normal.
2008a0195d5fSmrg      else
2009a0195d5fSmrg	case $ac_arg in
2010a0195d5fSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
2011a0195d5fSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2012a0195d5fSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2013a0195d5fSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
2014a0195d5fSmrg	    case "$ac_configure_args0 " in
2015a0195d5fSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2016a0195d5fSmrg	    esac
2017a0195d5fSmrg	    ;;
2018a0195d5fSmrg	  -* ) ac_must_keep_next=true ;;
2019a0195d5fSmrg	esac
2020a0195d5fSmrg      fi
20216f5dd5c2Smrg      as_fn_append ac_configure_args " '$ac_arg'"
2022a0195d5fSmrg      ;;
2023a0195d5fSmrg    esac
2024a0195d5fSmrg  done
2025a0195d5fSmrgdone
20266f5dd5c2Smrg{ ac_configure_args0=; unset ac_configure_args0;}
20276f5dd5c2Smrg{ ac_configure_args1=; unset ac_configure_args1;}
2028a0195d5fSmrg
2029a0195d5fSmrg# When interrupted or exit'd, cleanup temporary files, and complete
2030a0195d5fSmrg# config.log.  We remove comments because anyway the quotes in there
2031a0195d5fSmrg# would cause problems or look ugly.
2032a0195d5fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
2033a0195d5fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2034a0195d5fSmrgtrap 'exit_status=$?
2035a0195d5fSmrg  # Save into config.log some information that might help in debugging.
2036a0195d5fSmrg  {
2037a0195d5fSmrg    echo
2038a0195d5fSmrg
20392ab73d9fSmrg    $as_echo "## ---------------- ##
2040a0195d5fSmrg## Cache variables. ##
20412ab73d9fSmrg## ---------------- ##"
2042a0195d5fSmrg    echo
2043a0195d5fSmrg    # The following way of writing the cache mishandles newlines in values,
2044a0195d5fSmrg(
2045a0195d5fSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2046a0195d5fSmrg    eval ac_val=\$$ac_var
2047a0195d5fSmrg    case $ac_val in #(
2048a0195d5fSmrg    *${as_nl}*)
2049a0195d5fSmrg      case $ac_var in #(
20506f5dd5c2Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20516600fe5bSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2052a0195d5fSmrg      esac
2053a0195d5fSmrg      case $ac_var in #(
2054a0195d5fSmrg      _ | IFS | as_nl) ;; #(
20556600fe5bSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20566f5dd5c2Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
2057a0195d5fSmrg      esac ;;
2058a0195d5fSmrg    esac
2059a0195d5fSmrg  done
2060a0195d5fSmrg  (set) 2>&1 |
2061a0195d5fSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2062a0195d5fSmrg    *${as_nl}ac_space=\ *)
2063a0195d5fSmrg      sed -n \
2064a0195d5fSmrg	"s/'\''/'\''\\\\'\'''\''/g;
2065a0195d5fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2066a0195d5fSmrg      ;; #(
2067a0195d5fSmrg    *)
2068a0195d5fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2069a0195d5fSmrg      ;;
2070a0195d5fSmrg    esac |
2071a0195d5fSmrg    sort
2072a0195d5fSmrg)
2073a0195d5fSmrg    echo
2074a0195d5fSmrg
20752ab73d9fSmrg    $as_echo "## ----------------- ##
2076a0195d5fSmrg## Output variables. ##
20772ab73d9fSmrg## ----------------- ##"
2078a0195d5fSmrg    echo
2079a0195d5fSmrg    for ac_var in $ac_subst_vars
2080a0195d5fSmrg    do
2081a0195d5fSmrg      eval ac_val=\$$ac_var
2082a0195d5fSmrg      case $ac_val in
20836600fe5bSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084a0195d5fSmrg      esac
20856600fe5bSmrg      $as_echo "$ac_var='\''$ac_val'\''"
2086a0195d5fSmrg    done | sort
2087a0195d5fSmrg    echo
2088a0195d5fSmrg
2089a0195d5fSmrg    if test -n "$ac_subst_files"; then
20902ab73d9fSmrg      $as_echo "## ------------------- ##
2091a0195d5fSmrg## File substitutions. ##
20922ab73d9fSmrg## ------------------- ##"
2093a0195d5fSmrg      echo
2094a0195d5fSmrg      for ac_var in $ac_subst_files
2095a0195d5fSmrg      do
2096a0195d5fSmrg	eval ac_val=\$$ac_var
2097a0195d5fSmrg	case $ac_val in
20986600fe5bSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099a0195d5fSmrg	esac
21006600fe5bSmrg	$as_echo "$ac_var='\''$ac_val'\''"
2101a0195d5fSmrg      done | sort
2102a0195d5fSmrg      echo
2103a0195d5fSmrg    fi
2104a0195d5fSmrg
2105a0195d5fSmrg    if test -s confdefs.h; then
21062ab73d9fSmrg      $as_echo "## ----------- ##
2107a0195d5fSmrg## confdefs.h. ##
21082ab73d9fSmrg## ----------- ##"
2109a0195d5fSmrg      echo
2110a0195d5fSmrg      cat confdefs.h
2111a0195d5fSmrg      echo
2112a0195d5fSmrg    fi
2113a0195d5fSmrg    test "$ac_signal" != 0 &&
21146600fe5bSmrg      $as_echo "$as_me: caught signal $ac_signal"
21156600fe5bSmrg    $as_echo "$as_me: exit $exit_status"
2116a0195d5fSmrg  } >&5
2117a0195d5fSmrg  rm -f core *.core core.conftest.* &&
2118a0195d5fSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2119a0195d5fSmrg    exit $exit_status
2120a0195d5fSmrg' 0
2121a0195d5fSmrgfor ac_signal in 1 2 13 15; do
21226f5dd5c2Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2123a0195d5fSmrgdone
2124a0195d5fSmrgac_signal=0
2125a0195d5fSmrg
2126a0195d5fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2127a0195d5fSmrgrm -f -r conftest* confdefs.h
2128a0195d5fSmrg
21296f5dd5c2Smrg$as_echo "/* confdefs.h */" > confdefs.h
21306f5dd5c2Smrg
2131a0195d5fSmrg# Predefined preprocessor variables.
2132a0195d5fSmrg
2133a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2134a0195d5fSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
2135a0195d5fSmrg_ACEOF
2136a0195d5fSmrg
2137a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2138a0195d5fSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2139a0195d5fSmrg_ACEOF
2140a0195d5fSmrg
2141a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2142a0195d5fSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
2143a0195d5fSmrg_ACEOF
2144a0195d5fSmrg
2145a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2146a0195d5fSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
2147a0195d5fSmrg_ACEOF
2148a0195d5fSmrg
2149a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2150a0195d5fSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2151a0195d5fSmrg_ACEOF
2152a0195d5fSmrg
21536f5dd5c2Smrgcat >>confdefs.h <<_ACEOF
21546f5dd5c2Smrg#define PACKAGE_URL "$PACKAGE_URL"
21556f5dd5c2Smrg_ACEOF
21566f5dd5c2Smrg
2157a0195d5fSmrg
2158a0195d5fSmrg# Let the site file select an alternate cache file if it wants to.
21596600fe5bSmrg# Prefer an explicitly selected file to automatically selected ones.
21606600fe5bSmrgac_site_file1=NONE
21616600fe5bSmrgac_site_file2=NONE
2162a0195d5fSmrgif test -n "$CONFIG_SITE"; then
21632ab73d9fSmrg  # We do not want a PATH search for config.site.
21642ab73d9fSmrg  case $CONFIG_SITE in #((
21652ab73d9fSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
21662ab73d9fSmrg    */*) ac_site_file1=$CONFIG_SITE;;
21672ab73d9fSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
21682ab73d9fSmrg  esac
2169a0195d5fSmrgelif test "x$prefix" != xNONE; then
21706600fe5bSmrg  ac_site_file1=$prefix/share/config.site
21716600fe5bSmrg  ac_site_file2=$prefix/etc/config.site
2172a0195d5fSmrgelse
21736600fe5bSmrg  ac_site_file1=$ac_default_prefix/share/config.site
21746600fe5bSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
2175a0195d5fSmrgfi
21766600fe5bSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2177a0195d5fSmrgdo
21786600fe5bSmrg  test "x$ac_site_file" = xNONE && continue
21796f5dd5c2Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
21806f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
21816600fe5bSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2182a0195d5fSmrg    sed 's/^/| /' "$ac_site_file" >&5
21832ab73d9fSmrg    . "$ac_site_file" \
21842ab73d9fSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21852ab73d9fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21862ab73d9fSmrgas_fn_error $? "failed to load site script $ac_site_file
21872ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
2188a0195d5fSmrg  fi
2189a0195d5fSmrgdone
2190a0195d5fSmrg
2191a0195d5fSmrgif test -r "$cache_file"; then
21926f5dd5c2Smrg  # Some versions of bash will fail to source /dev/null (special files
21936f5dd5c2Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
21946f5dd5c2Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
21956f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
21966600fe5bSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2197a0195d5fSmrg    case $cache_file in
2198a0195d5fSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199a0195d5fSmrg      *)                      . "./$cache_file";;
2200a0195d5fSmrg    esac
2201a0195d5fSmrg  fi
2202a0195d5fSmrgelse
22036f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
22046600fe5bSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2205a0195d5fSmrg  >$cache_file
2206a0195d5fSmrgfi
2207a0195d5fSmrg
2208a0195d5fSmrg# Check that the precious variables saved in the cache have kept the same
2209a0195d5fSmrg# value.
2210a0195d5fSmrgac_cache_corrupted=false
2211a0195d5fSmrgfor ac_var in $ac_precious_vars; do
2212a0195d5fSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213a0195d5fSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2214a0195d5fSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215a0195d5fSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2216a0195d5fSmrg  case $ac_old_set,$ac_new_set in
2217a0195d5fSmrg    set,)
22186f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
22196600fe5bSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2220a0195d5fSmrg      ac_cache_corrupted=: ;;
2221a0195d5fSmrg    ,set)
22226f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
22236600fe5bSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2224a0195d5fSmrg      ac_cache_corrupted=: ;;
2225a0195d5fSmrg    ,);;
2226a0195d5fSmrg    *)
2227a0195d5fSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
22286600fe5bSmrg	# differences in whitespace do not lead to failure.
22296600fe5bSmrg	ac_old_val_w=`echo x $ac_old_val`
22306600fe5bSmrg	ac_new_val_w=`echo x $ac_new_val`
22316600fe5bSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
22326f5dd5c2Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
22336600fe5bSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
22346600fe5bSmrg	  ac_cache_corrupted=:
22356600fe5bSmrg	else
22366f5dd5c2Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
22376600fe5bSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
22386600fe5bSmrg	  eval $ac_var=\$ac_old_val
22396600fe5bSmrg	fi
22406f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
22416600fe5bSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
22426f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
22436600fe5bSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2244a0195d5fSmrg      fi;;
2245a0195d5fSmrg  esac
2246a0195d5fSmrg  # Pass precious variables to config.status.
2247a0195d5fSmrg  if test "$ac_new_set" = set; then
2248a0195d5fSmrg    case $ac_new_val in
22496600fe5bSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2250a0195d5fSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2251a0195d5fSmrg    esac
2252a0195d5fSmrg    case " $ac_configure_args " in
2253a0195d5fSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
22546f5dd5c2Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2255a0195d5fSmrg    esac
2256a0195d5fSmrg  fi
2257a0195d5fSmrgdone
2258a0195d5fSmrgif $ac_cache_corrupted; then
22596f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22606600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22616f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
22626600fe5bSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22632ab73d9fSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2264a0195d5fSmrgfi
22656f5dd5c2Smrg## -------------------- ##
22666f5dd5c2Smrg## Main body of script. ##
22676f5dd5c2Smrg## -------------------- ##
2268a0195d5fSmrg
2269a0195d5fSmrgac_ext=c
2270a0195d5fSmrgac_cpp='$CPP $CPPFLAGS'
2271a0195d5fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272a0195d5fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273a0195d5fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2274a0195d5fSmrg
2275a0195d5fSmrg
22762ab73d9fSmrg
22772ab73d9fSmrgac_config_headers="$ac_config_headers config.h"
22782ab73d9fSmrg
227940a76396Smrg# expand $ac_aux_dir to an absolute path
228040a76396Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
22812ab73d9fSmrg
228240a76396Smrgac_ext=c
228340a76396Smrgac_cpp='$CPP $CPPFLAGS'
228440a76396Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
228540a76396Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
228640a76396Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
228740a76396Smrgif test -n "$ac_tool_prefix"; then
228840a76396Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
228940a76396Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
229040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
229140a76396Smrg$as_echo_n "checking for $ac_word... " >&6; }
229240a76396Smrgif ${ac_cv_prog_CC+:} false; then :
22936600fe5bSmrg  $as_echo_n "(cached) " >&6
2294a0195d5fSmrgelse
229540a76396Smrg  if test -n "$CC"; then
229640a76396Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
229740a76396Smrgelse
229840a76396Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22996600fe5bSmrgfor as_dir in $PATH
23006600fe5bSmrgdo
23016600fe5bSmrg  IFS=$as_save_IFS
23026600fe5bSmrg  test -z "$as_dir" && as_dir=.
23036f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
23046600fe5bSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
230540a76396Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
23066f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23076600fe5bSmrg    break 2
23086600fe5bSmrg  fi
23096600fe5bSmrgdone
23106f5dd5c2Smrg  done
23116600fe5bSmrgIFS=$as_save_IFS
23126600fe5bSmrg
23136600fe5bSmrgfi
23146600fe5bSmrgfi
231540a76396SmrgCC=$ac_cv_prog_CC
231640a76396Smrgif test -n "$CC"; then
231740a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
231840a76396Smrg$as_echo "$CC" >&6; }
23196600fe5bSmrgelse
23206f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23216600fe5bSmrg$as_echo "no" >&6; }
23226600fe5bSmrgfi
23236600fe5bSmrg
23246600fe5bSmrg
23256600fe5bSmrgfi
232640a76396Smrgif test -z "$ac_cv_prog_CC"; then
232740a76396Smrg  ac_ct_CC=$CC
232840a76396Smrg  # Extract the first word of "gcc", so it can be a program name with args.
232940a76396Smrgset dummy gcc; ac_word=$2
23306f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23316600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
233240a76396Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
23336600fe5bSmrg  $as_echo_n "(cached) " >&6
23346600fe5bSmrgelse
233540a76396Smrg  if test -n "$ac_ct_CC"; then
233640a76396Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
23376600fe5bSmrgelse
23386600fe5bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23396600fe5bSmrgfor as_dir in $PATH
23406600fe5bSmrgdo
23416600fe5bSmrg  IFS=$as_save_IFS
23426600fe5bSmrg  test -z "$as_dir" && as_dir=.
23436f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
23446600fe5bSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
234540a76396Smrg    ac_cv_prog_ac_ct_CC="gcc"
23466f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23476600fe5bSmrg    break 2
23486600fe5bSmrg  fi
23496600fe5bSmrgdone
23506f5dd5c2Smrg  done
23516600fe5bSmrgIFS=$as_save_IFS
23526600fe5bSmrg
23536600fe5bSmrgfi
23546600fe5bSmrgfi
235540a76396Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
235640a76396Smrgif test -n "$ac_ct_CC"; then
235740a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
235840a76396Smrg$as_echo "$ac_ct_CC" >&6; }
23596600fe5bSmrgelse
23606f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23616600fe5bSmrg$as_echo "no" >&6; }
23626600fe5bSmrgfi
23636600fe5bSmrg
236440a76396Smrg  if test "x$ac_ct_CC" = x; then
236540a76396Smrg    CC=""
23666600fe5bSmrg  else
23676600fe5bSmrg    case $cross_compiling:$ac_tool_warned in
23686600fe5bSmrgyes:)
23696f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23706600fe5bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23716600fe5bSmrgac_tool_warned=yes ;;
23726600fe5bSmrgesac
237340a76396Smrg    CC=$ac_ct_CC
23746600fe5bSmrg  fi
23756600fe5bSmrgelse
237640a76396Smrg  CC="$ac_cv_prog_CC"
2377a0195d5fSmrgfi
2378a0195d5fSmrg
237940a76396Smrgif test -z "$CC"; then
238040a76396Smrg          if test -n "$ac_tool_prefix"; then
238140a76396Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
238240a76396Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
23836f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23846600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
238540a76396Smrgif ${ac_cv_prog_CC+:} false; then :
23866600fe5bSmrg  $as_echo_n "(cached) " >&6
2387a0195d5fSmrgelse
238840a76396Smrg  if test -n "$CC"; then
238940a76396Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2390a0195d5fSmrgelse
2391a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392a0195d5fSmrgfor as_dir in $PATH
2393a0195d5fSmrgdo
2394a0195d5fSmrg  IFS=$as_save_IFS
2395a0195d5fSmrg  test -z "$as_dir" && as_dir=.
23966f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2397a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
239840a76396Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
23996f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2400a0195d5fSmrg    break 2
2401a0195d5fSmrg  fi
2402a0195d5fSmrgdone
24036f5dd5c2Smrg  done
2404a0195d5fSmrgIFS=$as_save_IFS
2405a0195d5fSmrg
2406a0195d5fSmrgfi
2407a0195d5fSmrgfi
240840a76396SmrgCC=$ac_cv_prog_CC
240940a76396Smrgif test -n "$CC"; then
241040a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
241140a76396Smrg$as_echo "$CC" >&6; }
2412a0195d5fSmrgelse
24136f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24146600fe5bSmrg$as_echo "no" >&6; }
2415a0195d5fSmrgfi
2416a0195d5fSmrg
2417a0195d5fSmrg
241840a76396Smrg  fi
2419a0195d5fSmrgfi
242040a76396Smrgif test -z "$CC"; then
242140a76396Smrg  # Extract the first word of "cc", so it can be a program name with args.
242240a76396Smrgset dummy cc; ac_word=$2
242340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
242440a76396Smrg$as_echo_n "checking for $ac_word... " >&6; }
242540a76396Smrgif ${ac_cv_prog_CC+:} false; then :
242640a76396Smrg  $as_echo_n "(cached) " >&6
2427a0195d5fSmrgelse
242840a76396Smrg  if test -n "$CC"; then
242940a76396Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2430a0195d5fSmrgelse
243140a76396Smrg  ac_prog_rejected=no
243240a76396Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243340a76396Smrgfor as_dir in $PATH
243440a76396Smrgdo
243540a76396Smrg  IFS=$as_save_IFS
243640a76396Smrg  test -z "$as_dir" && as_dir=.
243740a76396Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
243840a76396Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
243940a76396Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
244040a76396Smrg       ac_prog_rejected=yes
244140a76396Smrg       continue
244240a76396Smrg     fi
244340a76396Smrg    ac_cv_prog_CC="cc"
244440a76396Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
244540a76396Smrg    break 2
2446a0195d5fSmrg  fi
244740a76396Smrgdone
244840a76396Smrg  done
244940a76396SmrgIFS=$as_save_IFS
2450a0195d5fSmrg
245140a76396Smrgif test $ac_prog_rejected = yes; then
245240a76396Smrg  # We found a bogon in the path, so make sure we never use it.
245340a76396Smrg  set dummy $ac_cv_prog_CC
245440a76396Smrg  shift
245540a76396Smrg  if test $# != 0; then
245640a76396Smrg    # We chose a different compiler from the bogus one.
245740a76396Smrg    # However, it has the same basename, so the bogon will be chosen
245840a76396Smrg    # first if we set CC to just the basename; use the full file name.
245940a76396Smrg    shift
246040a76396Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2461a0195d5fSmrg  fi
2462a0195d5fSmrgfi
24636f5dd5c2Smrgfi
24646f5dd5c2Smrgfi
246540a76396SmrgCC=$ac_cv_prog_CC
246640a76396Smrgif test -n "$CC"; then
246740a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
246840a76396Smrg$as_echo "$CC" >&6; }
24696f5dd5c2Smrgelse
247040a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
247140a76396Smrg$as_echo "no" >&6; }
24726f5dd5c2Smrgfi
24736f5dd5c2Smrg
24746f5dd5c2Smrg
247540a76396Smrgfi
247640a76396Smrgif test -z "$CC"; then
247740a76396Smrg  if test -n "$ac_tool_prefix"; then
247840a76396Smrg  for ac_prog in cl.exe
247940a76396Smrg  do
248040a76396Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
248140a76396Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
24826f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24836f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
24842ab73d9fSmrgif ${ac_cv_prog_CC+:} false; then :
24856f5dd5c2Smrg  $as_echo_n "(cached) " >&6
24866f5dd5c2Smrgelse
24876f5dd5c2Smrg  if test -n "$CC"; then
24886f5dd5c2Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
24896f5dd5c2Smrgelse
24906f5dd5c2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24916f5dd5c2Smrgfor as_dir in $PATH
24926f5dd5c2Smrgdo
24936f5dd5c2Smrg  IFS=$as_save_IFS
24946f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
24956f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
24966f5dd5c2Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
249740a76396Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
24986f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24996f5dd5c2Smrg    break 2
25006f5dd5c2Smrg  fi
25016f5dd5c2Smrgdone
25026f5dd5c2Smrg  done
25036f5dd5c2SmrgIFS=$as_save_IFS
25046f5dd5c2Smrg
25056f5dd5c2Smrgfi
25066f5dd5c2Smrgfi
25076f5dd5c2SmrgCC=$ac_cv_prog_CC
25086f5dd5c2Smrgif test -n "$CC"; then
25096f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
25106f5dd5c2Smrg$as_echo "$CC" >&6; }
25116f5dd5c2Smrgelse
25126f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25136f5dd5c2Smrg$as_echo "no" >&6; }
25146f5dd5c2Smrgfi
25156f5dd5c2Smrg
25166f5dd5c2Smrg
251740a76396Smrg    test -n "$CC" && break
251840a76396Smrg  done
25196f5dd5c2Smrgfi
252040a76396Smrgif test -z "$CC"; then
2521a0195d5fSmrg  ac_ct_CC=$CC
252240a76396Smrg  for ac_prog in cl.exe
252340a76396Smrgdo
252440a76396Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
252540a76396Smrgset dummy $ac_prog; ac_word=$2
25266f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25276600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
25282ab73d9fSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
25296600fe5bSmrg  $as_echo_n "(cached) " >&6
2530a0195d5fSmrgelse
2531a0195d5fSmrg  if test -n "$ac_ct_CC"; then
2532a0195d5fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2533a0195d5fSmrgelse
2534a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535a0195d5fSmrgfor as_dir in $PATH
2536a0195d5fSmrgdo
2537a0195d5fSmrg  IFS=$as_save_IFS
2538a0195d5fSmrg  test -z "$as_dir" && as_dir=.
25396f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2540a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
254140a76396Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
25426f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2543a0195d5fSmrg    break 2
2544a0195d5fSmrg  fi
2545a0195d5fSmrgdone
25466f5dd5c2Smrg  done
2547a0195d5fSmrgIFS=$as_save_IFS
2548a0195d5fSmrg
2549a0195d5fSmrgfi
2550a0195d5fSmrgfi
2551a0195d5fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2552a0195d5fSmrgif test -n "$ac_ct_CC"; then
25536f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
25546600fe5bSmrg$as_echo "$ac_ct_CC" >&6; }
2555a0195d5fSmrgelse
25566f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25576600fe5bSmrg$as_echo "no" >&6; }
2558a0195d5fSmrgfi
2559a0195d5fSmrg
2560a0195d5fSmrg
2561a0195d5fSmrg  test -n "$ac_ct_CC" && break
2562a0195d5fSmrgdone
2563a0195d5fSmrg
2564a0195d5fSmrg  if test "x$ac_ct_CC" = x; then
2565a0195d5fSmrg    CC=""
2566a0195d5fSmrg  else
2567a0195d5fSmrg    case $cross_compiling:$ac_tool_warned in
2568a0195d5fSmrgyes:)
25696f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25706600fe5bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2571a0195d5fSmrgac_tool_warned=yes ;;
2572a0195d5fSmrgesac
2573a0195d5fSmrg    CC=$ac_ct_CC
2574a0195d5fSmrg  fi
2575a0195d5fSmrgfi
2576a0195d5fSmrg
2577a0195d5fSmrgfi
2578a0195d5fSmrg
2579a0195d5fSmrg
25806f5dd5c2Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25816600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25822ab73d9fSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
25832ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
2584a0195d5fSmrg
2585a0195d5fSmrg# Provide some information about the compiler.
25866f5dd5c2Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
25876600fe5bSmrgset X $ac_compile
25886600fe5bSmrgac_compiler=$2
25896f5dd5c2Smrgfor ac_option in --version -v -V -qversion; do
25906f5dd5c2Smrg  { { ac_try="$ac_compiler $ac_option >&5"
2591a0195d5fSmrgcase "(($ac_try" in
2592a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593a0195d5fSmrg  *) ac_try_echo=$ac_try;;
2594a0195d5fSmrgesac
25956f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25966f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
25976f5dd5c2Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2598a0195d5fSmrg  ac_status=$?
25996f5dd5c2Smrg  if test -s conftest.err; then
26006f5dd5c2Smrg    sed '10a\
26016f5dd5c2Smrg... rest of stderr output deleted ...
26026f5dd5c2Smrg         10q' conftest.err >conftest.er1
26036f5dd5c2Smrg    cat conftest.er1 >&5
26046f5dd5c2Smrg  fi
26056f5dd5c2Smrg  rm -f conftest.er1 conftest.err
26066f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26076f5dd5c2Smrg  test $ac_status = 0; }
26086f5dd5c2Smrgdone
2609a0195d5fSmrg
26106f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611a0195d5fSmrg/* end confdefs.h.  */
2612a0195d5fSmrg
2613a0195d5fSmrgint
2614a0195d5fSmrgmain ()
2615a0195d5fSmrg{
2616a0195d5fSmrg
2617a0195d5fSmrg  ;
2618a0195d5fSmrg  return 0;
2619a0195d5fSmrg}
2620a0195d5fSmrg_ACEOF
2621a0195d5fSmrgac_clean_files_save=$ac_clean_files
26226600fe5bSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2623a0195d5fSmrg# Try to create an executable without -o first, disregard a.out.
2624a0195d5fSmrg# It will help us diagnose broken compilers, and finding out an intuition
2625a0195d5fSmrg# of exeext.
26266f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
26276f5dd5c2Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
26286600fe5bSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
26296600fe5bSmrg
26306600fe5bSmrg# The possible output files:
26316600fe5bSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
26326600fe5bSmrg
2633a0195d5fSmrgac_rmfiles=
2634a0195d5fSmrgfor ac_file in $ac_files
2635a0195d5fSmrgdo
2636a0195d5fSmrg  case $ac_file in
26376600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2638a0195d5fSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2639a0195d5fSmrg  esac
2640a0195d5fSmrgdone
2641a0195d5fSmrgrm -f $ac_rmfiles
2642a0195d5fSmrg
26436f5dd5c2Smrgif { { ac_try="$ac_link_default"
2644a0195d5fSmrgcase "(($ac_try" in
2645a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646a0195d5fSmrg  *) ac_try_echo=$ac_try;;
2647a0195d5fSmrgesac
26486f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26496f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
2650a0195d5fSmrg  (eval "$ac_link_default") 2>&5
2651a0195d5fSmrg  ac_status=$?
26526f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26536f5dd5c2Smrg  test $ac_status = 0; }; then :
2654a0195d5fSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2655a0195d5fSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2656a0195d5fSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2657a0195d5fSmrg# so that the user can short-circuit this test for compilers unknown to
2658a0195d5fSmrg# Autoconf.
2659a0195d5fSmrgfor ac_file in $ac_files ''
2660a0195d5fSmrgdo
2661a0195d5fSmrg  test -f "$ac_file" || continue
2662a0195d5fSmrg  case $ac_file in
26636600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2664a0195d5fSmrg	;;
2665a0195d5fSmrg    [ab].out )
2666a0195d5fSmrg	# We found the default executable, but exeext='' is most
2667a0195d5fSmrg	# certainly right.
2668a0195d5fSmrg	break;;
2669a0195d5fSmrg    *.* )
26706f5dd5c2Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2671a0195d5fSmrg	then :; else
2672a0195d5fSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2673a0195d5fSmrg	fi
2674a0195d5fSmrg	# We set ac_cv_exeext here because the later test for it is not
2675a0195d5fSmrg	# safe: cross compilers may not add the suffix if given an `-o'
2676a0195d5fSmrg	# argument, so we may need to know it at that point already.
2677a0195d5fSmrg	# Even if this section looks crufty: it has the advantage of
2678a0195d5fSmrg	# actually working.
2679a0195d5fSmrg	break;;
2680a0195d5fSmrg    * )
2681a0195d5fSmrg	break;;
2682a0195d5fSmrg  esac
2683a0195d5fSmrgdone
2684a0195d5fSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
2685a0195d5fSmrg
2686a0195d5fSmrgelse
2687a0195d5fSmrg  ac_file=''
2688a0195d5fSmrgfi
26896f5dd5c2Smrgif test -z "$ac_file"; then :
26906f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26916f5dd5c2Smrg$as_echo "no" >&6; }
26926f5dd5c2Smrg$as_echo "$as_me: failed program was:" >&5
2693a0195d5fSmrgsed 's/^/| /' conftest.$ac_ext >&5
2694a0195d5fSmrg
26956f5dd5c2Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26966600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26972ab73d9fSmrgas_fn_error 77 "C compiler cannot create executables
26982ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
26996f5dd5c2Smrgelse
27006f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27016f5dd5c2Smrg$as_echo "yes" >&6; }
2702a0195d5fSmrgfi
27036f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
27046f5dd5c2Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
27056f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
27066f5dd5c2Smrg$as_echo "$ac_file" >&6; }
2707a0195d5fSmrgac_exeext=$ac_cv_exeext
2708a0195d5fSmrg
27096600fe5bSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2710a0195d5fSmrgac_clean_files=$ac_clean_files_save
27116f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
27126600fe5bSmrg$as_echo_n "checking for suffix of executables... " >&6; }
27136f5dd5c2Smrgif { { ac_try="$ac_link"
2714a0195d5fSmrgcase "(($ac_try" in
2715a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716a0195d5fSmrg  *) ac_try_echo=$ac_try;;
2717a0195d5fSmrgesac
27186f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27196f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
2720a0195d5fSmrg  (eval "$ac_link") 2>&5
2721a0195d5fSmrg  ac_status=$?
27226f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27236f5dd5c2Smrg  test $ac_status = 0; }; then :
2724a0195d5fSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2725a0195d5fSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2726a0195d5fSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
2727a0195d5fSmrg# `rm'.
2728a0195d5fSmrgfor ac_file in conftest.exe conftest conftest.*; do
2729a0195d5fSmrg  test -f "$ac_file" || continue
2730a0195d5fSmrg  case $ac_file in
27316600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2732a0195d5fSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2733a0195d5fSmrg	  break;;
2734a0195d5fSmrg    * ) break;;
2735a0195d5fSmrg  esac
2736a0195d5fSmrgdone
2737a0195d5fSmrgelse
27386f5dd5c2Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27396600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27402ab73d9fSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
27412ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
2742a0195d5fSmrgfi
27436f5dd5c2Smrgrm -f conftest conftest$ac_cv_exeext
27446f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
27456600fe5bSmrg$as_echo "$ac_cv_exeext" >&6; }
2746a0195d5fSmrg
2747a0195d5fSmrgrm -f conftest.$ac_ext
2748a0195d5fSmrgEXEEXT=$ac_cv_exeext
2749a0195d5fSmrgac_exeext=$EXEEXT
27506f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
27516f5dd5c2Smrg/* end confdefs.h.  */
27526f5dd5c2Smrg#include <stdio.h>
27536f5dd5c2Smrgint
27546f5dd5c2Smrgmain ()
27556f5dd5c2Smrg{
27566f5dd5c2SmrgFILE *f = fopen ("conftest.out", "w");
27576f5dd5c2Smrg return ferror (f) || fclose (f) != 0;
27586f5dd5c2Smrg
27596f5dd5c2Smrg  ;
27606f5dd5c2Smrg  return 0;
27616f5dd5c2Smrg}
27626f5dd5c2Smrg_ACEOF
27636f5dd5c2Smrgac_clean_files="$ac_clean_files conftest.out"
27646f5dd5c2Smrg# Check that the compiler produces executables we can run.  If not, either
27656f5dd5c2Smrg# the compiler is broken, or we cross compile.
27666f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
27676f5dd5c2Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
27686f5dd5c2Smrgif test "$cross_compiling" != yes; then
27696f5dd5c2Smrg  { { ac_try="$ac_link"
27706f5dd5c2Smrgcase "(($ac_try" in
27716f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27726f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
27736f5dd5c2Smrgesac
27746f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27756f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
27766f5dd5c2Smrg  (eval "$ac_link") 2>&5
27776f5dd5c2Smrg  ac_status=$?
27786f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27796f5dd5c2Smrg  test $ac_status = 0; }
27806f5dd5c2Smrg  if { ac_try='./conftest$ac_cv_exeext'
27816f5dd5c2Smrg  { { case "(($ac_try" in
27826f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27836f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
27846f5dd5c2Smrgesac
27856f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27866f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
27876f5dd5c2Smrg  (eval "$ac_try") 2>&5
27886f5dd5c2Smrg  ac_status=$?
27896f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27906f5dd5c2Smrg  test $ac_status = 0; }; }; then
27916f5dd5c2Smrg    cross_compiling=no
27926f5dd5c2Smrg  else
27936f5dd5c2Smrg    if test "$cross_compiling" = maybe; then
27946f5dd5c2Smrg	cross_compiling=yes
27956f5dd5c2Smrg    else
27966f5dd5c2Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27976f5dd5c2Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27982ab73d9fSmrgas_fn_error $? "cannot run C compiled programs.
27996f5dd5c2SmrgIf you meant to cross compile, use \`--host'.
28002ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
28016f5dd5c2Smrg    fi
28026f5dd5c2Smrg  fi
28036f5dd5c2Smrgfi
28046f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
28056f5dd5c2Smrg$as_echo "$cross_compiling" >&6; }
28066f5dd5c2Smrg
28076f5dd5c2Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
28086f5dd5c2Smrgac_clean_files=$ac_clean_files_save
28096f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
28106600fe5bSmrg$as_echo_n "checking for suffix of object files... " >&6; }
28112ab73d9fSmrgif ${ac_cv_objext+:} false; then :
28126600fe5bSmrg  $as_echo_n "(cached) " >&6
2813a0195d5fSmrgelse
28146f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815a0195d5fSmrg/* end confdefs.h.  */
2816a0195d5fSmrg
2817a0195d5fSmrgint
2818a0195d5fSmrgmain ()
2819a0195d5fSmrg{
2820a0195d5fSmrg
2821a0195d5fSmrg  ;
2822a0195d5fSmrg  return 0;
2823a0195d5fSmrg}
2824a0195d5fSmrg_ACEOF
2825a0195d5fSmrgrm -f conftest.o conftest.obj
28266f5dd5c2Smrgif { { ac_try="$ac_compile"
2827a0195d5fSmrgcase "(($ac_try" in
2828a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829a0195d5fSmrg  *) ac_try_echo=$ac_try;;
2830a0195d5fSmrgesac
28316f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28326f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
2833a0195d5fSmrg  (eval "$ac_compile") 2>&5
2834a0195d5fSmrg  ac_status=$?
28356f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28366f5dd5c2Smrg  test $ac_status = 0; }; then :
2837a0195d5fSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
2838a0195d5fSmrg  test -f "$ac_file" || continue;
2839a0195d5fSmrg  case $ac_file in
28406600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2841a0195d5fSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2842a0195d5fSmrg       break;;
2843a0195d5fSmrg  esac
2844a0195d5fSmrgdone
2845a0195d5fSmrgelse
28466600fe5bSmrg  $as_echo "$as_me: failed program was:" >&5
2847a0195d5fSmrgsed 's/^/| /' conftest.$ac_ext >&5
2848a0195d5fSmrg
28496f5dd5c2Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28506600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28512ab73d9fSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
28522ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
2853a0195d5fSmrgfi
2854a0195d5fSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
2855a0195d5fSmrgfi
28566f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
28576600fe5bSmrg$as_echo "$ac_cv_objext" >&6; }
2858a0195d5fSmrgOBJEXT=$ac_cv_objext
2859a0195d5fSmrgac_objext=$OBJEXT
28606f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
28616600fe5bSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
28622ab73d9fSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
28636600fe5bSmrg  $as_echo_n "(cached) " >&6
2864a0195d5fSmrgelse
28656f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866a0195d5fSmrg/* end confdefs.h.  */
2867a0195d5fSmrg
2868a0195d5fSmrgint
2869a0195d5fSmrgmain ()
2870a0195d5fSmrg{
2871a0195d5fSmrg#ifndef __GNUC__
2872a0195d5fSmrg       choke me
2873a0195d5fSmrg#endif
2874a0195d5fSmrg
2875a0195d5fSmrg  ;
2876a0195d5fSmrg  return 0;
2877a0195d5fSmrg}
2878a0195d5fSmrg_ACEOF
28796f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
2880a0195d5fSmrg  ac_compiler_gnu=yes
2881a0195d5fSmrgelse
28826f5dd5c2Smrg  ac_compiler_gnu=no
2883a0195d5fSmrgfi
2884a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885a0195d5fSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
2886a0195d5fSmrg
2887a0195d5fSmrgfi
28886f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
28896600fe5bSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
28906600fe5bSmrgif test $ac_compiler_gnu = yes; then
28916600fe5bSmrg  GCC=yes
28926600fe5bSmrgelse
28936600fe5bSmrg  GCC=
28946600fe5bSmrgfi
2895a0195d5fSmrgac_test_CFLAGS=${CFLAGS+set}
2896a0195d5fSmrgac_save_CFLAGS=$CFLAGS
28976f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
28986600fe5bSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
28992ab73d9fSmrgif ${ac_cv_prog_cc_g+:} false; then :
29006600fe5bSmrg  $as_echo_n "(cached) " >&6
2901a0195d5fSmrgelse
2902a0195d5fSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
2903a0195d5fSmrg   ac_c_werror_flag=yes
2904a0195d5fSmrg   ac_cv_prog_cc_g=no
2905a0195d5fSmrg   CFLAGS="-g"
29066f5dd5c2Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907a0195d5fSmrg/* end confdefs.h.  */
2908a0195d5fSmrg
2909a0195d5fSmrgint
2910a0195d5fSmrgmain ()
2911a0195d5fSmrg{
2912a0195d5fSmrg
2913a0195d5fSmrg  ;
2914a0195d5fSmrg  return 0;
2915a0195d5fSmrg}
2916a0195d5fSmrg_ACEOF
29176f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
2918a0195d5fSmrg  ac_cv_prog_cc_g=yes
2919a0195d5fSmrgelse
29206f5dd5c2Smrg  CFLAGS=""
29216f5dd5c2Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922a0195d5fSmrg/* end confdefs.h.  */
2923a0195d5fSmrg
2924a0195d5fSmrgint
2925a0195d5fSmrgmain ()
2926a0195d5fSmrg{
2927a0195d5fSmrg
2928a0195d5fSmrg  ;
2929a0195d5fSmrg  return 0;
2930a0195d5fSmrg}
2931a0195d5fSmrg_ACEOF
29326f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
2933a0195d5fSmrg
29346f5dd5c2Smrgelse
29356f5dd5c2Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
2936a0195d5fSmrg	 CFLAGS="-g"
29376f5dd5c2Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938a0195d5fSmrg/* end confdefs.h.  */
2939a0195d5fSmrg
2940a0195d5fSmrgint
2941a0195d5fSmrgmain ()
2942a0195d5fSmrg{
2943a0195d5fSmrg
2944a0195d5fSmrg  ;
2945a0195d5fSmrg  return 0;
2946a0195d5fSmrg}
2947a0195d5fSmrg_ACEOF
29486f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
2949a0195d5fSmrg  ac_cv_prog_cc_g=yes
2950a0195d5fSmrgfi
2951a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2952a0195d5fSmrgfi
2953a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954a0195d5fSmrgfi
2955a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956a0195d5fSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
2957a0195d5fSmrgfi
29586f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
29596600fe5bSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
2960a0195d5fSmrgif test "$ac_test_CFLAGS" = set; then
2961a0195d5fSmrg  CFLAGS=$ac_save_CFLAGS
2962a0195d5fSmrgelif test $ac_cv_prog_cc_g = yes; then
2963a0195d5fSmrg  if test "$GCC" = yes; then
2964a0195d5fSmrg    CFLAGS="-g -O2"
2965a0195d5fSmrg  else
2966a0195d5fSmrg    CFLAGS="-g"
2967a0195d5fSmrg  fi
2968a0195d5fSmrgelse
2969a0195d5fSmrg  if test "$GCC" = yes; then
2970a0195d5fSmrg    CFLAGS="-O2"
2971a0195d5fSmrg  else
2972a0195d5fSmrg    CFLAGS=
2973a0195d5fSmrg  fi
2974a0195d5fSmrgfi
29756f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
29766600fe5bSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
29772ab73d9fSmrgif ${ac_cv_prog_cc_c89+:} false; then :
29786600fe5bSmrg  $as_echo_n "(cached) " >&6
2979a0195d5fSmrgelse
2980a0195d5fSmrg  ac_cv_prog_cc_c89=no
2981a0195d5fSmrgac_save_CC=$CC
29826f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983a0195d5fSmrg/* end confdefs.h.  */
2984a0195d5fSmrg#include <stdarg.h>
2985a0195d5fSmrg#include <stdio.h>
2986a0195d5fSmrg#include <sys/types.h>
2987a0195d5fSmrg#include <sys/stat.h>
2988a0195d5fSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2989a0195d5fSmrgstruct buf { int x; };
2990a0195d5fSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
2991a0195d5fSmrgstatic char *e (p, i)
2992a0195d5fSmrg     char **p;
2993a0195d5fSmrg     int i;
2994a0195d5fSmrg{
2995a0195d5fSmrg  return p[i];
2996a0195d5fSmrg}
2997a0195d5fSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2998a0195d5fSmrg{
2999a0195d5fSmrg  char *s;
3000a0195d5fSmrg  va_list v;
3001a0195d5fSmrg  va_start (v,p);
3002a0195d5fSmrg  s = g (p, va_arg (v,int));
3003a0195d5fSmrg  va_end (v);
3004a0195d5fSmrg  return s;
3005a0195d5fSmrg}
3006a0195d5fSmrg
3007a0195d5fSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3008a0195d5fSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
3009a0195d5fSmrg   These don't provoke an error unfortunately, instead are silently treated
3010a0195d5fSmrg   as 'x'.  The following induces an error, until -std is added to get
3011a0195d5fSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3012a0195d5fSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
3013a0195d5fSmrg   that's true only with -std.  */
3014a0195d5fSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3015a0195d5fSmrg
3016a0195d5fSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3017a0195d5fSmrg   inside strings and character constants.  */
3018a0195d5fSmrg#define FOO(x) 'x'
3019a0195d5fSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3020a0195d5fSmrg
3021a0195d5fSmrgint test (int i, double x);
3022a0195d5fSmrgstruct s1 {int (*f) (int a);};
3023a0195d5fSmrgstruct s2 {int (*f) (double a);};
3024a0195d5fSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3025a0195d5fSmrgint argc;
3026a0195d5fSmrgchar **argv;
3027a0195d5fSmrgint
3028a0195d5fSmrgmain ()
3029a0195d5fSmrg{
3030a0195d5fSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3031a0195d5fSmrg  ;
3032a0195d5fSmrg  return 0;
3033a0195d5fSmrg}
3034a0195d5fSmrg_ACEOF
3035a0195d5fSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3036a0195d5fSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3037a0195d5fSmrgdo
3038a0195d5fSmrg  CC="$ac_save_CC $ac_arg"
30396f5dd5c2Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3040a0195d5fSmrg  ac_cv_prog_cc_c89=$ac_arg
3041a0195d5fSmrgfi
3042a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext
3043a0195d5fSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3044a0195d5fSmrgdone
3045a0195d5fSmrgrm -f conftest.$ac_ext
3046a0195d5fSmrgCC=$ac_save_CC
3047a0195d5fSmrg
3048a0195d5fSmrgfi
3049a0195d5fSmrg# AC_CACHE_VAL
3050a0195d5fSmrgcase "x$ac_cv_prog_cc_c89" in
3051a0195d5fSmrg  x)
30526f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
30536600fe5bSmrg$as_echo "none needed" >&6; } ;;
3054a0195d5fSmrg  xno)
30556f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
30566600fe5bSmrg$as_echo "unsupported" >&6; } ;;
3057a0195d5fSmrg  *)
3058a0195d5fSmrg    CC="$CC $ac_cv_prog_cc_c89"
30596f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
30606600fe5bSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3061a0195d5fSmrgesac
30626f5dd5c2Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3063a0195d5fSmrg
30646f5dd5c2Smrgfi
3065a0195d5fSmrg
3066a0195d5fSmrgac_ext=c
3067a0195d5fSmrgac_cpp='$CPP $CPPFLAGS'
3068a0195d5fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3069a0195d5fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3070a0195d5fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3071a0195d5fSmrg
307240a76396Smrgac_ext=c
307340a76396Smrgac_cpp='$CPP $CPPFLAGS'
307440a76396Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
307540a76396Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
307640a76396Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
307740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
307840a76396Smrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
307940a76396Smrgif ${am_cv_prog_cc_c_o+:} false; then :
30806600fe5bSmrg  $as_echo_n "(cached) " >&6
3081a0195d5fSmrgelse
308240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
308340a76396Smrg/* end confdefs.h.  */
30846600fe5bSmrg
308540a76396Smrgint
308640a76396Smrgmain ()
308740a76396Smrg{
30886f5dd5c2Smrg
30896f5dd5c2Smrg  ;
30906f5dd5c2Smrg  return 0;
30916f5dd5c2Smrg}
30926f5dd5c2Smrg_ACEOF
309340a76396Smrg  # Make sure it works both with $CC and with simple cc.
309440a76396Smrg  # Following AC_PROG_CC_C_O, we do the test twice because some
309540a76396Smrg  # compilers refuse to overwrite an existing .o file with -o,
309640a76396Smrg  # though they will create one.
309740a76396Smrg  am_cv_prog_cc_c_o=yes
309840a76396Smrg  for am_i in 1 2; do
309940a76396Smrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
310040a76396Smrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
310140a76396Smrg   ac_status=$?
310240a76396Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
310340a76396Smrg   (exit $ac_status); } \
310440a76396Smrg         && test -f conftest2.$ac_objext; then
310540a76396Smrg      : OK
310640a76396Smrg    else
310740a76396Smrg      am_cv_prog_cc_c_o=no
310840a76396Smrg      break
310940a76396Smrg    fi
311040a76396Smrg  done
311140a76396Smrg  rm -f core conftest*
311240a76396Smrg  unset am_i
311340a76396Smrgfi
311440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
311540a76396Smrg$as_echo "$am_cv_prog_cc_c_o" >&6; }
311640a76396Smrgif test "$am_cv_prog_cc_c_o" != yes; then
311740a76396Smrg   # Losing compiler, so override with the script.
311840a76396Smrg   # FIXME: It is wrong to rewrite CC.
311940a76396Smrg   # But if we don't then we get into trouble of one sort or another.
312040a76396Smrg   # A longer-term fix would be to have automake use am__CC in this case,
312140a76396Smrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
312240a76396Smrg   CC="$am_aux_dir/compile $CC"
31236f5dd5c2Smrgfi
312440a76396Smrgac_ext=c
312540a76396Smrgac_cpp='$CPP $CPPFLAGS'
312640a76396Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
312740a76396Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
312840a76396Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
31296f5dd5c2Smrg
31306f5dd5c2Smrg
31316f5dd5c2Smrg
31326f5dd5c2Smrgac_ext=c
31336f5dd5c2Smrgac_cpp='$CPP $CPPFLAGS'
31346f5dd5c2Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31356f5dd5c2Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31366f5dd5c2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
31376f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
31386f5dd5c2Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
31396f5dd5c2Smrg# On Suns, sometimes $CPP names a directory.
31406f5dd5c2Smrgif test -n "$CPP" && test -d "$CPP"; then
31416f5dd5c2Smrg  CPP=
31426f5dd5c2Smrgfi
31436f5dd5c2Smrgif test -z "$CPP"; then
31442ab73d9fSmrg  if ${ac_cv_prog_CPP+:} false; then :
31456f5dd5c2Smrg  $as_echo_n "(cached) " >&6
31466600fe5bSmrgelse
31476f5dd5c2Smrg      # Double quotes because CPP needs to be expanded
31486f5dd5c2Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
31496f5dd5c2Smrg    do
31506f5dd5c2Smrg      ac_preproc_ok=false
31516f5dd5c2Smrgfor ac_c_preproc_warn_flag in '' yes
31526f5dd5c2Smrgdo
31536f5dd5c2Smrg  # Use a header file that comes with gcc, so configuring glibc
31546f5dd5c2Smrg  # with a fresh cross-compiler works.
31556f5dd5c2Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31566f5dd5c2Smrg  # <limits.h> exists even on freestanding compilers.
31576f5dd5c2Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
31586f5dd5c2Smrg  # not just through cpp. "Syntax error" is here to catch this case.
31596f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31606f5dd5c2Smrg/* end confdefs.h.  */
31616f5dd5c2Smrg#ifdef __STDC__
31626f5dd5c2Smrg# include <limits.h>
31636f5dd5c2Smrg#else
31646f5dd5c2Smrg# include <assert.h>
31656f5dd5c2Smrg#endif
31666f5dd5c2Smrg		     Syntax error
31676f5dd5c2Smrg_ACEOF
31686f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
31696600fe5bSmrg
31706f5dd5c2Smrgelse
31716600fe5bSmrg  # Broken: fails on valid input.
31726600fe5bSmrgcontinue
31736600fe5bSmrgfi
31742ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
31756600fe5bSmrg
31766600fe5bSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
31776600fe5bSmrg  # can be detected and how.
31786f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31796600fe5bSmrg/* end confdefs.h.  */
31806600fe5bSmrg#include <ac_nonexistent.h>
31816600fe5bSmrg_ACEOF
31826f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
31836600fe5bSmrg  # Broken: success on invalid input.
31846600fe5bSmrgcontinue
31856600fe5bSmrgelse
31866600fe5bSmrg  # Passes both tests.
31876600fe5bSmrgac_preproc_ok=:
31886600fe5bSmrgbreak
31896600fe5bSmrgfi
31902ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
31916600fe5bSmrg
31926600fe5bSmrgdone
31936600fe5bSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
31942ab73d9fSmrgrm -f conftest.i conftest.err conftest.$ac_ext
31956f5dd5c2Smrgif $ac_preproc_ok; then :
31966600fe5bSmrg  break
31976600fe5bSmrgfi
31986600fe5bSmrg
31996600fe5bSmrg    done
32006600fe5bSmrg    ac_cv_prog_CPP=$CPP
32016600fe5bSmrg
32026600fe5bSmrgfi
32036600fe5bSmrg  CPP=$ac_cv_prog_CPP
32046600fe5bSmrgelse
32056600fe5bSmrg  ac_cv_prog_CPP=$CPP
32066600fe5bSmrgfi
32076f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
32086600fe5bSmrg$as_echo "$CPP" >&6; }
32096600fe5bSmrgac_preproc_ok=false
32106600fe5bSmrgfor ac_c_preproc_warn_flag in '' yes
32116600fe5bSmrgdo
32126600fe5bSmrg  # Use a header file that comes with gcc, so configuring glibc
32136600fe5bSmrg  # with a fresh cross-compiler works.
32146600fe5bSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32156600fe5bSmrg  # <limits.h> exists even on freestanding compilers.
32166600fe5bSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
32176600fe5bSmrg  # not just through cpp. "Syntax error" is here to catch this case.
32186f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32196600fe5bSmrg/* end confdefs.h.  */
32206600fe5bSmrg#ifdef __STDC__
32216600fe5bSmrg# include <limits.h>
32226600fe5bSmrg#else
32236600fe5bSmrg# include <assert.h>
32246600fe5bSmrg#endif
32256600fe5bSmrg		     Syntax error
32266600fe5bSmrg_ACEOF
32276f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
32286600fe5bSmrg
32296f5dd5c2Smrgelse
32306600fe5bSmrg  # Broken: fails on valid input.
32316600fe5bSmrgcontinue
32326600fe5bSmrgfi
32332ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
32346600fe5bSmrg
32356600fe5bSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
32366600fe5bSmrg  # can be detected and how.
32376f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32386600fe5bSmrg/* end confdefs.h.  */
32396600fe5bSmrg#include <ac_nonexistent.h>
32406600fe5bSmrg_ACEOF
32416f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
32426600fe5bSmrg  # Broken: success on invalid input.
32436600fe5bSmrgcontinue
32446600fe5bSmrgelse
32456600fe5bSmrg  # Passes both tests.
32466600fe5bSmrgac_preproc_ok=:
32476600fe5bSmrgbreak
32486600fe5bSmrgfi
32492ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
32506600fe5bSmrg
32516600fe5bSmrgdone
32526600fe5bSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
32532ab73d9fSmrgrm -f conftest.i conftest.err conftest.$ac_ext
32546f5dd5c2Smrgif $ac_preproc_ok; then :
32556f5dd5c2Smrg
32566600fe5bSmrgelse
32576f5dd5c2Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32586600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32592ab73d9fSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
32602ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
32616600fe5bSmrgfi
32626600fe5bSmrg
32636600fe5bSmrgac_ext=c
32646600fe5bSmrgac_cpp='$CPP $CPPFLAGS'
32656600fe5bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32666600fe5bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32676600fe5bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
32686600fe5bSmrg
32696600fe5bSmrg
32706f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
32716600fe5bSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
32722ab73d9fSmrgif ${ac_cv_path_GREP+:} false; then :
32736600fe5bSmrg  $as_echo_n "(cached) " >&6
32746600fe5bSmrgelse
32756600fe5bSmrg  if test -z "$GREP"; then
32766600fe5bSmrg  ac_path_GREP_found=false
32776600fe5bSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
32786600fe5bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32796600fe5bSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
32806600fe5bSmrgdo
32816600fe5bSmrg  IFS=$as_save_IFS
32826600fe5bSmrg  test -z "$as_dir" && as_dir=.
32836f5dd5c2Smrg    for ac_prog in grep ggrep; do
32846600fe5bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
32856600fe5bSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
32866600fe5bSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
32876600fe5bSmrg# Check for GNU ac_path_GREP and select it if it is found.
32886600fe5bSmrg  # Check for GNU $ac_path_GREP
32896600fe5bSmrgcase `"$ac_path_GREP" --version 2>&1` in
32906600fe5bSmrg*GNU*)
32916600fe5bSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
32926600fe5bSmrg*)
32936600fe5bSmrg  ac_count=0
32946600fe5bSmrg  $as_echo_n 0123456789 >"conftest.in"
32956600fe5bSmrg  while :
32966600fe5bSmrg  do
32976600fe5bSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
32986600fe5bSmrg    mv "conftest.tmp" "conftest.in"
32996600fe5bSmrg    cp "conftest.in" "conftest.nl"
33006600fe5bSmrg    $as_echo 'GREP' >> "conftest.nl"
33016600fe5bSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
33026600fe5bSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
33036f5dd5c2Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
33046600fe5bSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
33056600fe5bSmrg      # Best one so far, save it but keep looking for a better one
33066600fe5bSmrg      ac_cv_path_GREP="$ac_path_GREP"
33076600fe5bSmrg      ac_path_GREP_max=$ac_count
33086600fe5bSmrg    fi
33096600fe5bSmrg    # 10*(2^10) chars as input seems more than enough
33106600fe5bSmrg    test $ac_count -gt 10 && break
33116600fe5bSmrg  done
33126600fe5bSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
33136600fe5bSmrgesac
33146600fe5bSmrg
33156600fe5bSmrg      $ac_path_GREP_found && break 3
33166600fe5bSmrg    done
33176600fe5bSmrg  done
33186f5dd5c2Smrg  done
33196600fe5bSmrgIFS=$as_save_IFS
33206600fe5bSmrg  if test -z "$ac_cv_path_GREP"; then
33212ab73d9fSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
33226600fe5bSmrg  fi
33236600fe5bSmrgelse
33246600fe5bSmrg  ac_cv_path_GREP=$GREP
33256600fe5bSmrgfi
33266600fe5bSmrg
33276600fe5bSmrgfi
33286f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
33296600fe5bSmrg$as_echo "$ac_cv_path_GREP" >&6; }
33306600fe5bSmrg GREP="$ac_cv_path_GREP"
33316600fe5bSmrg
33326600fe5bSmrg
33336f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
33346600fe5bSmrg$as_echo_n "checking for egrep... " >&6; }
33352ab73d9fSmrgif ${ac_cv_path_EGREP+:} false; then :
33366600fe5bSmrg  $as_echo_n "(cached) " >&6
33376600fe5bSmrgelse
33386600fe5bSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
33396600fe5bSmrg   then ac_cv_path_EGREP="$GREP -E"
33406600fe5bSmrg   else
33416600fe5bSmrg     if test -z "$EGREP"; then
33426600fe5bSmrg  ac_path_EGREP_found=false
33436600fe5bSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
33446600fe5bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33456600fe5bSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
33466600fe5bSmrgdo
33476600fe5bSmrg  IFS=$as_save_IFS
33486600fe5bSmrg  test -z "$as_dir" && as_dir=.
33496f5dd5c2Smrg    for ac_prog in egrep; do
33506600fe5bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
33516600fe5bSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
33526600fe5bSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
33536600fe5bSmrg# Check for GNU ac_path_EGREP and select it if it is found.
33546600fe5bSmrg  # Check for GNU $ac_path_EGREP
33556600fe5bSmrgcase `"$ac_path_EGREP" --version 2>&1` in
33566600fe5bSmrg*GNU*)
33576600fe5bSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
33586600fe5bSmrg*)
33596600fe5bSmrg  ac_count=0
33606600fe5bSmrg  $as_echo_n 0123456789 >"conftest.in"
33616600fe5bSmrg  while :
33626600fe5bSmrg  do
33636600fe5bSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
33646600fe5bSmrg    mv "conftest.tmp" "conftest.in"
33656600fe5bSmrg    cp "conftest.in" "conftest.nl"
33666600fe5bSmrg    $as_echo 'EGREP' >> "conftest.nl"
33676600fe5bSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
33686600fe5bSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
33696f5dd5c2Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
33706600fe5bSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
33716600fe5bSmrg      # Best one so far, save it but keep looking for a better one
33726600fe5bSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
33736600fe5bSmrg      ac_path_EGREP_max=$ac_count
33746600fe5bSmrg    fi
33756600fe5bSmrg    # 10*(2^10) chars as input seems more than enough
33766600fe5bSmrg    test $ac_count -gt 10 && break
33776600fe5bSmrg  done
33786600fe5bSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
33796600fe5bSmrgesac
33806600fe5bSmrg
33816600fe5bSmrg      $ac_path_EGREP_found && break 3
33826600fe5bSmrg    done
33836600fe5bSmrg  done
33846f5dd5c2Smrg  done
33856600fe5bSmrgIFS=$as_save_IFS
33866600fe5bSmrg  if test -z "$ac_cv_path_EGREP"; then
33872ab73d9fSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
33886600fe5bSmrg  fi
33896600fe5bSmrgelse
33906600fe5bSmrg  ac_cv_path_EGREP=$EGREP
33916600fe5bSmrgfi
33926600fe5bSmrg
33936600fe5bSmrg   fi
33946600fe5bSmrgfi
33956f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
33966600fe5bSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
33976600fe5bSmrg EGREP="$ac_cv_path_EGREP"
33986600fe5bSmrg
33996600fe5bSmrg
34006f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
34016600fe5bSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
34022ab73d9fSmrgif ${ac_cv_header_stdc+:} false; then :
34036600fe5bSmrg  $as_echo_n "(cached) " >&6
34046600fe5bSmrgelse
34056f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34066600fe5bSmrg/* end confdefs.h.  */
34076600fe5bSmrg#include <stdlib.h>
34086600fe5bSmrg#include <stdarg.h>
34096600fe5bSmrg#include <string.h>
34106600fe5bSmrg#include <float.h>
34116600fe5bSmrg
34126600fe5bSmrgint
34136600fe5bSmrgmain ()
34146600fe5bSmrg{
34156600fe5bSmrg
34166600fe5bSmrg  ;
34176600fe5bSmrg  return 0;
34186600fe5bSmrg}
34196600fe5bSmrg_ACEOF
34206f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
34216600fe5bSmrg  ac_cv_header_stdc=yes
34226600fe5bSmrgelse
34236f5dd5c2Smrg  ac_cv_header_stdc=no
34246600fe5bSmrgfi
34256600fe5bSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34266600fe5bSmrg
34276600fe5bSmrgif test $ac_cv_header_stdc = yes; then
34286600fe5bSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
34296f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34306600fe5bSmrg/* end confdefs.h.  */
34316600fe5bSmrg#include <string.h>
34326600fe5bSmrg
34336600fe5bSmrg_ACEOF
34346600fe5bSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34356f5dd5c2Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
34366f5dd5c2Smrg
34376600fe5bSmrgelse
34386600fe5bSmrg  ac_cv_header_stdc=no
34396600fe5bSmrgfi
34406600fe5bSmrgrm -f conftest*
34416600fe5bSmrg
34426600fe5bSmrgfi
34436600fe5bSmrg
34446600fe5bSmrgif test $ac_cv_header_stdc = yes; then
34456600fe5bSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
34466f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34476600fe5bSmrg/* end confdefs.h.  */
34486600fe5bSmrg#include <stdlib.h>
34496600fe5bSmrg
34506600fe5bSmrg_ACEOF
34516600fe5bSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34526f5dd5c2Smrg  $EGREP "free" >/dev/null 2>&1; then :
34536f5dd5c2Smrg
34546600fe5bSmrgelse
34556600fe5bSmrg  ac_cv_header_stdc=no
34566600fe5bSmrgfi
34576600fe5bSmrgrm -f conftest*
34586600fe5bSmrg
34596600fe5bSmrgfi
34606600fe5bSmrg
34616600fe5bSmrgif test $ac_cv_header_stdc = yes; then
34626600fe5bSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
34636f5dd5c2Smrg  if test "$cross_compiling" = yes; then :
34646600fe5bSmrg  :
34656600fe5bSmrgelse
34666f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34676600fe5bSmrg/* end confdefs.h.  */
34686600fe5bSmrg#include <ctype.h>
34696600fe5bSmrg#include <stdlib.h>
34706600fe5bSmrg#if ((' ' & 0x0FF) == 0x020)
34716600fe5bSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
34726600fe5bSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
34736600fe5bSmrg#else
34746600fe5bSmrg# define ISLOWER(c) \
34756600fe5bSmrg		   (('a' <= (c) && (c) <= 'i') \
34766600fe5bSmrg		     || ('j' <= (c) && (c) <= 'r') \
34776600fe5bSmrg		     || ('s' <= (c) && (c) <= 'z'))
34786600fe5bSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
34796600fe5bSmrg#endif
34806600fe5bSmrg
34816600fe5bSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
34826600fe5bSmrgint
34836600fe5bSmrgmain ()
34846600fe5bSmrg{
34856600fe5bSmrg  int i;
34866600fe5bSmrg  for (i = 0; i < 256; i++)
34876600fe5bSmrg    if (XOR (islower (i), ISLOWER (i))
34886600fe5bSmrg	|| toupper (i) != TOUPPER (i))
34896600fe5bSmrg      return 2;
34906600fe5bSmrg  return 0;
34916600fe5bSmrg}
34926600fe5bSmrg_ACEOF
34936f5dd5c2Smrgif ac_fn_c_try_run "$LINENO"; then :
34946600fe5bSmrg
34956f5dd5c2Smrgelse
34966f5dd5c2Smrg  ac_cv_header_stdc=no
34976600fe5bSmrgfi
34986f5dd5c2Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34996f5dd5c2Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
35006600fe5bSmrgfi
35016600fe5bSmrg
35026600fe5bSmrgfi
35036600fe5bSmrgfi
35046f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
35056600fe5bSmrg$as_echo "$ac_cv_header_stdc" >&6; }
35066600fe5bSmrgif test $ac_cv_header_stdc = yes; then
35076600fe5bSmrg
35086f5dd5c2Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
35096600fe5bSmrg
35106600fe5bSmrgfi
35116600fe5bSmrg
35126600fe5bSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
35136600fe5bSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
35146600fe5bSmrg		  inttypes.h stdint.h unistd.h
35156f5dd5c2Smrgdo :
35166f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35176f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
35186f5dd5c2Smrg"
35192ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35206600fe5bSmrg  cat >>confdefs.h <<_ACEOF
35216600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35226600fe5bSmrg_ACEOF
35236600fe5bSmrg
35246600fe5bSmrgfi
35256600fe5bSmrg
35266600fe5bSmrgdone
35276600fe5bSmrg
35286600fe5bSmrg
35296f5dd5c2Smrg
353040a76396Smrg  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
353140a76396Smrgif test "x$ac_cv_header_minix_config_h" = xyes; then :
353240a76396Smrg  MINIX=yes
3533ff6cf368Smrgelse
353440a76396Smrg  MINIX=
3535ff6cf368Smrgfi
3536ff6cf368Smrg
3537ff6cf368Smrg
353840a76396Smrg  if test "$MINIX" = yes; then
3539ff6cf368Smrg
354040a76396Smrg$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3541ff6cf368Smrg
3542ff6cf368Smrg
354340a76396Smrg$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3544ff6cf368Smrg
354540a76396Smrg
354640a76396Smrg$as_echo "#define _MINIX 1" >>confdefs.h
354740a76396Smrg
354840a76396Smrg  fi
354940a76396Smrg
355040a76396Smrg
355140a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
355240a76396Smrg$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
355340a76396Smrgif ${ac_cv_safe_to_define___extensions__+:} false; then :
355440a76396Smrg  $as_echo_n "(cached) " >&6
355540a76396Smrgelse
355640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
355740a76396Smrg/* end confdefs.h.  */
355840a76396Smrg
355940a76396Smrg#	  define __EXTENSIONS__ 1
356040a76396Smrg	  $ac_includes_default
356140a76396Smrgint
356240a76396Smrgmain ()
356340a76396Smrg{
356440a76396Smrg
356540a76396Smrg  ;
356640a76396Smrg  return 0;
356740a76396Smrg}
356840a76396Smrg_ACEOF
356940a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
357040a76396Smrg  ac_cv_safe_to_define___extensions__=yes
357140a76396Smrgelse
357240a76396Smrg  ac_cv_safe_to_define___extensions__=no
357340a76396Smrgfi
357440a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
357540a76396Smrgfi
357640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
357740a76396Smrg$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
357840a76396Smrg  test $ac_cv_safe_to_define___extensions__ = yes &&
357940a76396Smrg    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
358040a76396Smrg
358140a76396Smrg  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
358240a76396Smrg
358340a76396Smrg  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
358440a76396Smrg
358540a76396Smrg  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
358640a76396Smrg
358740a76396Smrg  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
358840a76396Smrg
358940a76396Smrg
359040a76396Smrg
359140a76396Smrg# Initialize Automake
359240a76396Smrgam__api_version='1.14'
359340a76396Smrg
359440a76396Smrgac_aux_dir=
359540a76396Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
359640a76396Smrg  if test -f "$ac_dir/install-sh"; then
359740a76396Smrg    ac_aux_dir=$ac_dir
359840a76396Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
359940a76396Smrg    break
360040a76396Smrg  elif test -f "$ac_dir/install.sh"; then
360140a76396Smrg    ac_aux_dir=$ac_dir
360240a76396Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
360340a76396Smrg    break
360440a76396Smrg  elif test -f "$ac_dir/shtool"; then
360540a76396Smrg    ac_aux_dir=$ac_dir
360640a76396Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
360740a76396Smrg    break
360840a76396Smrg  fi
360940a76396Smrgdone
361040a76396Smrgif test -z "$ac_aux_dir"; then
361140a76396Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
361240a76396Smrgfi
361340a76396Smrg
361440a76396Smrg# These three variables are undocumented and unsupported,
361540a76396Smrg# and are intended to be withdrawn in a future Autoconf release.
361640a76396Smrg# They can cause serious problems if a builder's source tree is in a directory
361740a76396Smrg# whose full name contains unusual characters.
361840a76396Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
361940a76396Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
362040a76396Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
362140a76396Smrg
362240a76396Smrg
362340a76396Smrg# Find a good install program.  We prefer a C program (faster),
362440a76396Smrg# so one script is as good as another.  But avoid the broken or
362540a76396Smrg# incompatible versions:
362640a76396Smrg# SysV /etc/install, /usr/sbin/install
362740a76396Smrg# SunOS /usr/etc/install
362840a76396Smrg# IRIX /sbin/install
362940a76396Smrg# AIX /bin/install
363040a76396Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
363140a76396Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
363240a76396Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
363340a76396Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
363440a76396Smrg# OS/2's system install, which has a completely different semantic
363540a76396Smrg# ./install, which can be erroneously created by make from ./install.sh.
363640a76396Smrg# Reject install programs that cannot install multiple files.
363740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
363840a76396Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
363940a76396Smrgif test -z "$INSTALL"; then
364040a76396Smrgif ${ac_cv_path_install+:} false; then :
36416600fe5bSmrg  $as_echo_n "(cached) " >&6
36426600fe5bSmrgelse
36436f5dd5c2Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36446f5dd5c2Smrgfor as_dir in $PATH
36456600fe5bSmrgdo
36466f5dd5c2Smrg  IFS=$as_save_IFS
36476f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
364840a76396Smrg    # Account for people who put trailing slashes in PATH elements.
364940a76396Smrgcase $as_dir/ in #((
365040a76396Smrg  ./ | .// | /[cC]/* | \
365140a76396Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
365240a76396Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
365340a76396Smrg  /usr/ucb/* ) ;;
365440a76396Smrg  *)
365540a76396Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
365640a76396Smrg    # Don't use installbsd from OSF since it installs stuff as root
365740a76396Smrg    # by default.
365840a76396Smrg    for ac_prog in ginstall scoinst install; do
365940a76396Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
366040a76396Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
366140a76396Smrg	  if test $ac_prog = install &&
366240a76396Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
366340a76396Smrg	    # AIX install.  It has an incompatible calling convention.
366440a76396Smrg	    :
366540a76396Smrg	  elif test $ac_prog = install &&
366640a76396Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
366740a76396Smrg	    # program-specific install script used by HP pwplus--don't use.
366840a76396Smrg	    :
366940a76396Smrg	  else
367040a76396Smrg	    rm -rf conftest.one conftest.two conftest.dir
367140a76396Smrg	    echo one > conftest.one
367240a76396Smrg	    echo two > conftest.two
367340a76396Smrg	    mkdir conftest.dir
367440a76396Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
367540a76396Smrg	      test -s conftest.one && test -s conftest.two &&
367640a76396Smrg	      test -s conftest.dir/conftest.one &&
367740a76396Smrg	      test -s conftest.dir/conftest.two
367840a76396Smrg	    then
367940a76396Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
368040a76396Smrg	      break 3
368140a76396Smrg	    fi
368240a76396Smrg	  fi
368340a76396Smrg	fi
368440a76396Smrg      done
368540a76396Smrg    done
368640a76396Smrg    ;;
368740a76396Smrgesac
368840a76396Smrg
36896f5dd5c2Smrg  done
36906f5dd5c2SmrgIFS=$as_save_IFS
36916f5dd5c2Smrg
369240a76396Smrgrm -rf conftest.one conftest.two conftest.dir
369340a76396Smrg
36946f5dd5c2Smrgfi
369540a76396Smrg  if test "${ac_cv_path_install+set}" = set; then
369640a76396Smrg    INSTALL=$ac_cv_path_install
369740a76396Smrg  else
369840a76396Smrg    # As a last resort, use the slow shell script.  Don't cache a
369940a76396Smrg    # value for INSTALL within a source directory, because that will
370040a76396Smrg    # break other packages using the cache if that directory is
370140a76396Smrg    # removed, or if the value is a relative name.
370240a76396Smrg    INSTALL=$ac_install_sh
370340a76396Smrg  fi
370440a76396Smrgfi
370540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
370640a76396Smrg$as_echo "$INSTALL" >&6; }
370740a76396Smrg
370840a76396Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
370940a76396Smrg# It thinks the first close brace ends the variable substitution.
371040a76396Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
371140a76396Smrg
371240a76396Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
371340a76396Smrg
371440a76396Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
371540a76396Smrg
371640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
371740a76396Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
371840a76396Smrg# Reject unsafe characters in $srcdir or the absolute working directory
371940a76396Smrg# name.  Accept space and tab only in the latter.
372040a76396Smrgam_lf='
372140a76396Smrg'
372240a76396Smrgcase `pwd` in
372340a76396Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
372440a76396Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
372540a76396Smrgesac
372640a76396Smrgcase $srcdir in
372740a76396Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
372840a76396Smrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
372940a76396Smrgesac
373040a76396Smrg
373140a76396Smrg# Do 'set' in a subshell so we don't clobber the current shell's
373240a76396Smrg# arguments.  Must try -L first in case configure is actually a
373340a76396Smrg# symlink; some systems play weird games with the mod time of symlinks
373440a76396Smrg# (eg FreeBSD returns the mod time of the symlink's containing
373540a76396Smrg# directory).
373640a76396Smrgif (
373740a76396Smrg   am_has_slept=no
373840a76396Smrg   for am_try in 1 2; do
373940a76396Smrg     echo "timestamp, slept: $am_has_slept" > conftest.file
374040a76396Smrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
374140a76396Smrg     if test "$*" = "X"; then
374240a76396Smrg	# -L didn't work.
374340a76396Smrg	set X `ls -t "$srcdir/configure" conftest.file`
374440a76396Smrg     fi
374540a76396Smrg     if test "$*" != "X $srcdir/configure conftest.file" \
374640a76396Smrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
374740a76396Smrg
374840a76396Smrg	# If neither matched, then we have a broken ls.  This can happen
374940a76396Smrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
375040a76396Smrg	# broken ls alias from the environment.  This has actually
375140a76396Smrg	# happened.  Such a system could not be considered "sane".
375240a76396Smrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
375340a76396Smrg  alias in your environment" "$LINENO" 5
375440a76396Smrg     fi
375540a76396Smrg     if test "$2" = conftest.file || test $am_try -eq 2; then
375640a76396Smrg       break
375740a76396Smrg     fi
375840a76396Smrg     # Just in case.
375940a76396Smrg     sleep 1
376040a76396Smrg     am_has_slept=yes
376140a76396Smrg   done
376240a76396Smrg   test "$2" = conftest.file
376340a76396Smrg   )
376440a76396Smrgthen
376540a76396Smrg   # Ok.
376640a76396Smrg   :
37676600fe5bSmrgelse
376840a76396Smrg   as_fn_error $? "newly created file is older than distributed files!
376940a76396SmrgCheck your system clock" "$LINENO" 5
37706600fe5bSmrgfi
377140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
377240a76396Smrg$as_echo "yes" >&6; }
377340a76396Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and
377440a76396Smrg# generated files are strictly newer.
377540a76396Smrgam_sleep_pid=
377640a76396Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
377740a76396Smrg  ( sleep 1 ) &
377840a76396Smrg  am_sleep_pid=$!
377940a76396Smrgfi
378040a76396Smrg
378140a76396Smrgrm -f conftest.file
37826600fe5bSmrg
378340a76396Smrgtest "$program_prefix" != NONE &&
378440a76396Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
378540a76396Smrg# Use a double $ so make ignores it.
378640a76396Smrgtest "$program_suffix" != NONE &&
378740a76396Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
378840a76396Smrg# Double any \ or $.
378940a76396Smrg# By default was `s,x,x', remove it if useless.
379040a76396Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
379140a76396Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
37926600fe5bSmrg
379340a76396Smrgif test x"${MISSING+set}" != xset; then
379440a76396Smrg  case $am_aux_dir in
379540a76396Smrg  *\ * | *\	*)
379640a76396Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
379740a76396Smrg  *)
379840a76396Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
379940a76396Smrg  esac
38006600fe5bSmrgfi
380140a76396Smrg# Use eval to expand $SHELL
380240a76396Smrgif eval "$MISSING --is-lightweight"; then
380340a76396Smrg  am_missing_run="$MISSING "
380440a76396Smrgelse
380540a76396Smrg  am_missing_run=
380640a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
380740a76396Smrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
380840a76396Smrgfi
380940a76396Smrg
381040a76396Smrgif test x"${install_sh}" != xset; then
381140a76396Smrg  case $am_aux_dir in
381240a76396Smrg  *\ * | *\	*)
381340a76396Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
381440a76396Smrg  *)
381540a76396Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
381640a76396Smrg  esac
381740a76396Smrgfi
381840a76396Smrg
381940a76396Smrg# Installed binaries are usually stripped using 'strip' when the user
382040a76396Smrg# run "make install-strip".  However 'strip' might not be the right
382140a76396Smrg# tool to use in cross-compilation environments, therefore Automake
382240a76396Smrg# will honor the 'STRIP' environment variable to overrule this program.
382340a76396Smrgif test "$cross_compiling" != no; then
382440a76396Smrg  if test -n "$ac_tool_prefix"; then
382540a76396Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
382640a76396Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
38276f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38286f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
382940a76396Smrgif ${ac_cv_prog_STRIP+:} false; then :
38306f5dd5c2Smrg  $as_echo_n "(cached) " >&6
38316f5dd5c2Smrgelse
383240a76396Smrg  if test -n "$STRIP"; then
383340a76396Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
383440a76396Smrgelse
383540a76396Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38366f5dd5c2Smrgfor as_dir in $PATH
38376f5dd5c2Smrgdo
38386f5dd5c2Smrg  IFS=$as_save_IFS
38396f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
38406f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
38416f5dd5c2Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
384240a76396Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38436f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38446f5dd5c2Smrg    break 2
38456f5dd5c2Smrg  fi
38466f5dd5c2Smrgdone
38476f5dd5c2Smrg  done
38486f5dd5c2SmrgIFS=$as_save_IFS
38496f5dd5c2Smrg
38506f5dd5c2Smrgfi
385140a76396Smrgfi
385240a76396SmrgSTRIP=$ac_cv_prog_STRIP
385340a76396Smrgif test -n "$STRIP"; then
385440a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
385540a76396Smrg$as_echo "$STRIP" >&6; }
38566f5dd5c2Smrgelse
38576f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38586f5dd5c2Smrg$as_echo "no" >&6; }
38596f5dd5c2Smrgfi
38606600fe5bSmrg
386140a76396Smrg
386240a76396Smrgfi
386340a76396Smrgif test -z "$ac_cv_prog_STRIP"; then
386440a76396Smrg  ac_ct_STRIP=$STRIP
386540a76396Smrg  # Extract the first word of "strip", so it can be a program name with args.
386640a76396Smrgset dummy strip; ac_word=$2
386740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
386840a76396Smrg$as_echo_n "checking for $ac_word... " >&6; }
386940a76396Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
387040a76396Smrg  $as_echo_n "(cached) " >&6
387140a76396Smrgelse
387240a76396Smrg  if test -n "$ac_ct_STRIP"; then
387340a76396Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
387440a76396Smrgelse
387540a76396Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
387640a76396Smrgfor as_dir in $PATH
387740a76396Smrgdo
387840a76396Smrg  IFS=$as_save_IFS
387940a76396Smrg  test -z "$as_dir" && as_dir=.
388040a76396Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
388140a76396Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
388240a76396Smrg    ac_cv_prog_ac_ct_STRIP="strip"
388340a76396Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
388440a76396Smrg    break 2
388540a76396Smrg  fi
388640a76396Smrgdone
388740a76396Smrg  done
388840a76396SmrgIFS=$as_save_IFS
388940a76396Smrg
389040a76396Smrgfi
389140a76396Smrgfi
389240a76396Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
389340a76396Smrgif test -n "$ac_ct_STRIP"; then
389440a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
389540a76396Smrg$as_echo "$ac_ct_STRIP" >&6; }
389640a76396Smrgelse
389740a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
389840a76396Smrg$as_echo "no" >&6; }
389940a76396Smrgfi
390040a76396Smrg
390140a76396Smrg  if test "x$ac_ct_STRIP" = x; then
390240a76396Smrg    STRIP=":"
39036f5dd5c2Smrg  else
39046f5dd5c2Smrg    case $cross_compiling:$ac_tool_warned in
39056f5dd5c2Smrgyes:)
39066f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39076f5dd5c2Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39086f5dd5c2Smrgac_tool_warned=yes ;;
39096f5dd5c2Smrgesac
391040a76396Smrg    STRIP=$ac_ct_STRIP
39116f5dd5c2Smrg  fi
39126f5dd5c2Smrgelse
391340a76396Smrg  STRIP="$ac_cv_prog_STRIP"
39146f5dd5c2Smrgfi
39156600fe5bSmrg
39166f5dd5c2Smrgfi
391740a76396SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
391840a76396Smrg
391940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
392040a76396Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
392140a76396Smrgif test -z "$MKDIR_P"; then
392240a76396Smrg  if ${ac_cv_path_mkdir+:} false; then :
392340a76396Smrg  $as_echo_n "(cached) " >&6
392440a76396Smrgelse
392540a76396Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
392640a76396Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
392740a76396Smrgdo
392840a76396Smrg  IFS=$as_save_IFS
392940a76396Smrg  test -z "$as_dir" && as_dir=.
393040a76396Smrg    for ac_prog in mkdir gmkdir; do
393140a76396Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
393240a76396Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
393340a76396Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
393440a76396Smrg	     'mkdir (GNU coreutils) '* | \
393540a76396Smrg	     'mkdir (coreutils) '* | \
393640a76396Smrg	     'mkdir (fileutils) '4.1*)
393740a76396Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
393840a76396Smrg	       break 3;;
393940a76396Smrg	   esac
394040a76396Smrg	 done
394140a76396Smrg       done
394240a76396Smrg  done
394340a76396SmrgIFS=$as_save_IFS
394440a76396Smrg
394540a76396Smrgfi
394640a76396Smrg
394740a76396Smrg  test -d ./--version && rmdir ./--version
394840a76396Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
394940a76396Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
395040a76396Smrg  else
395140a76396Smrg    # As a last resort, use the slow shell script.  Don't cache a
395240a76396Smrg    # value for MKDIR_P within a source directory, because that will
395340a76396Smrg    # break other packages using the cache if that directory is
395440a76396Smrg    # removed, or if the value is a relative name.
395540a76396Smrg    MKDIR_P="$ac_install_sh -d"
395640a76396Smrg  fi
395740a76396Smrgfi
395840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
395940a76396Smrg$as_echo "$MKDIR_P" >&6; }
396040a76396Smrg
396140a76396Smrgfor ac_prog in gawk mawk nawk awk
396240a76396Smrgdo
396340a76396Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
396440a76396Smrgset dummy $ac_prog; ac_word=$2
396540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
396640a76396Smrg$as_echo_n "checking for $ac_word... " >&6; }
396740a76396Smrgif ${ac_cv_prog_AWK+:} false; then :
396840a76396Smrg  $as_echo_n "(cached) " >&6
396940a76396Smrgelse
397040a76396Smrg  if test -n "$AWK"; then
397140a76396Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
397240a76396Smrgelse
397340a76396Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
397440a76396Smrgfor as_dir in $PATH
397540a76396Smrgdo
397640a76396Smrg  IFS=$as_save_IFS
397740a76396Smrg  test -z "$as_dir" && as_dir=.
397840a76396Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
397940a76396Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
398040a76396Smrg    ac_cv_prog_AWK="$ac_prog"
398140a76396Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
398240a76396Smrg    break 2
398340a76396Smrg  fi
398440a76396Smrgdone
398540a76396Smrg  done
398640a76396SmrgIFS=$as_save_IFS
398740a76396Smrg
398840a76396Smrgfi
398940a76396Smrgfi
399040a76396SmrgAWK=$ac_cv_prog_AWK
399140a76396Smrgif test -n "$AWK"; then
399240a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
399340a76396Smrg$as_echo "$AWK" >&6; }
399440a76396Smrgelse
399540a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
399640a76396Smrg$as_echo "no" >&6; }
399740a76396Smrgfi
399840a76396Smrg
399940a76396Smrg
400040a76396Smrg  test -n "$AWK" && break
400140a76396Smrgdone
400240a76396Smrg
400340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
400440a76396Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
400540a76396Smrgset x ${MAKE-make}
400640a76396Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
400740a76396Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
400840a76396Smrg  $as_echo_n "(cached) " >&6
400940a76396Smrgelse
401040a76396Smrg  cat >conftest.make <<\_ACEOF
401140a76396SmrgSHELL = /bin/sh
401240a76396Smrgall:
401340a76396Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
401440a76396Smrg_ACEOF
401540a76396Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
401640a76396Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
401740a76396Smrg  *@@@%%%=?*=@@@%%%*)
401840a76396Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
401940a76396Smrg  *)
402040a76396Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
402140a76396Smrgesac
402240a76396Smrgrm -f conftest.make
402340a76396Smrgfi
402440a76396Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
402540a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40266f5dd5c2Smrg$as_echo "yes" >&6; }
402740a76396Smrg  SET_MAKE=
402840a76396Smrgelse
402940a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40306f5dd5c2Smrg$as_echo "no" >&6; }
403140a76396Smrg  SET_MAKE="MAKE=${MAKE-make}"
403240a76396Smrgfi
403340a76396Smrg
403440a76396Smrgrm -rf .tst 2>/dev/null
403540a76396Smrgmkdir .tst 2>/dev/null
403640a76396Smrgif test -d .tst; then
403740a76396Smrg  am__leading_dot=.
403840a76396Smrgelse
403940a76396Smrg  am__leading_dot=_
404040a76396Smrgfi
404140a76396Smrgrmdir .tst 2>/dev/null
404240a76396Smrg
404340a76396SmrgDEPDIR="${am__leading_dot}deps"
404440a76396Smrg
404540a76396Smrgac_config_commands="$ac_config_commands depfiles"
404640a76396Smrg
404740a76396Smrg
404840a76396Smrgam_make=${MAKE-make}
404940a76396Smrgcat > confinc << 'END'
405040a76396Smrgam__doit:
405140a76396Smrg	@echo this is the am__doit target
405240a76396Smrg.PHONY: am__doit
405340a76396SmrgEND
405440a76396Smrg# If we don't find an include directive, just comment out the code.
405540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
405640a76396Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
405740a76396Smrgam__include="#"
405840a76396Smrgam__quote=
405940a76396Smrg_am_result=none
406040a76396Smrg# First try GNU make style include.
406140a76396Smrgecho "include confinc" > confmf
406240a76396Smrg# Ignore all kinds of additional output from 'make'.
406340a76396Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
406440a76396Smrg*the\ am__doit\ target*)
406540a76396Smrg  am__include=include
406640a76396Smrg  am__quote=
406740a76396Smrg  _am_result=GNU
406840a76396Smrg  ;;
406940a76396Smrgesac
407040a76396Smrg# Now try BSD make style include.
407140a76396Smrgif test "$am__include" = "#"; then
407240a76396Smrg   echo '.include "confinc"' > confmf
407340a76396Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
407440a76396Smrg   *the\ am__doit\ target*)
407540a76396Smrg     am__include=.include
407640a76396Smrg     am__quote="\""
407740a76396Smrg     _am_result=BSD
407840a76396Smrg     ;;
407940a76396Smrg   esac
408040a76396Smrgfi
408140a76396Smrg
408240a76396Smrg
408340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
408440a76396Smrg$as_echo "$_am_result" >&6; }
408540a76396Smrgrm -f confinc confmf
408640a76396Smrg
408740a76396Smrg# Check whether --enable-dependency-tracking was given.
408840a76396Smrgif test "${enable_dependency_tracking+set}" = set; then :
408940a76396Smrg  enableval=$enable_dependency_tracking;
409040a76396Smrgfi
409140a76396Smrg
409240a76396Smrgif test "x$enable_dependency_tracking" != xno; then
409340a76396Smrg  am_depcomp="$ac_aux_dir/depcomp"
409440a76396Smrg  AMDEPBACKSLASH='\'
409540a76396Smrg  am__nodep='_no'
409640a76396Smrgfi
409740a76396Smrg if test "x$enable_dependency_tracking" != xno; then
409840a76396Smrg  AMDEP_TRUE=
409940a76396Smrg  AMDEP_FALSE='#'
410040a76396Smrgelse
410140a76396Smrg  AMDEP_TRUE='#'
410240a76396Smrg  AMDEP_FALSE=
410340a76396Smrgfi
410440a76396Smrg
410540a76396Smrg
410640a76396Smrg# Check whether --enable-silent-rules was given.
410740a76396Smrgif test "${enable_silent_rules+set}" = set; then :
410840a76396Smrg  enableval=$enable_silent_rules;
410940a76396Smrgfi
41106600fe5bSmrg
411140a76396Smrgcase $enable_silent_rules in # (((
411240a76396Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
411340a76396Smrg   no) AM_DEFAULT_VERBOSITY=1;;
411440a76396Smrg    *) AM_DEFAULT_VERBOSITY=1;;
411540a76396Smrgesac
411640a76396Smrgam_make=${MAKE-make}
411740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
411840a76396Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
411940a76396Smrgif ${am_cv_make_support_nested_variables+:} false; then :
412040a76396Smrg  $as_echo_n "(cached) " >&6
412140a76396Smrgelse
412240a76396Smrg  if $as_echo 'TRUE=$(BAR$(V))
412340a76396SmrgBAR0=false
412440a76396SmrgBAR1=true
412540a76396SmrgV=1
412640a76396Smrgam__doit:
412740a76396Smrg	@$(TRUE)
412840a76396Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
412940a76396Smrg  am_cv_make_support_nested_variables=yes
413040a76396Smrgelse
413140a76396Smrg  am_cv_make_support_nested_variables=no
413240a76396Smrgfi
413340a76396Smrgfi
413440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
413540a76396Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
413640a76396Smrgif test $am_cv_make_support_nested_variables = yes; then
413740a76396Smrg    AM_V='$(V)'
413840a76396Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
413940a76396Smrgelse
414040a76396Smrg  AM_V=$AM_DEFAULT_VERBOSITY
414140a76396Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
414240a76396Smrgfi
414340a76396SmrgAM_BACKSLASH='\'
414440a76396Smrg
414540a76396Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
414640a76396Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
414740a76396Smrg  # is not polluted with repeated "-I."
414840a76396Smrg  am__isrc=' -I$(srcdir)'
414940a76396Smrg  # test to see if srcdir already configured
415040a76396Smrg  if test -f $srcdir/config.status; then
415140a76396Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
415240a76396Smrg  fi
415340a76396Smrgfi
415440a76396Smrg
415540a76396Smrg# test whether we have cygpath
415640a76396Smrgif test -z "$CYGPATH_W"; then
415740a76396Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
415840a76396Smrg    CYGPATH_W='cygpath -w'
415940a76396Smrg  else
416040a76396Smrg    CYGPATH_W=echo
416140a76396Smrg  fi
416240a76396Smrgfi
416340a76396Smrg
416440a76396Smrg
416540a76396Smrg# Define the identity of the package.
416640a76396Smrg PACKAGE='xset'
416740a76396Smrg VERSION='1.2.3'
416840a76396Smrg
416940a76396Smrg
417040a76396Smrgcat >>confdefs.h <<_ACEOF
417140a76396Smrg#define PACKAGE "$PACKAGE"
417240a76396Smrg_ACEOF
417340a76396Smrg
417440a76396Smrg
417540a76396Smrgcat >>confdefs.h <<_ACEOF
417640a76396Smrg#define VERSION "$VERSION"
417740a76396Smrg_ACEOF
417840a76396Smrg
417940a76396Smrg# Some tools Automake needs.
418040a76396Smrg
418140a76396SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
418240a76396Smrg
418340a76396Smrg
418440a76396SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
418540a76396Smrg
418640a76396Smrg
418740a76396SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
418840a76396Smrg
418940a76396Smrg
419040a76396SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
419140a76396Smrg
419240a76396Smrg
419340a76396SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
419440a76396Smrg
419540a76396Smrg# For better backward compatibility.  To be removed once Automake 1.9.x
419640a76396Smrg# dies out for good.  For more background, see:
419740a76396Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
419840a76396Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
419940a76396Smrgmkdir_p='$(MKDIR_P)'
420040a76396Smrg
420140a76396Smrg# We need awk for the "check" target.  The system "awk" is bad on
420240a76396Smrg# some platforms.
420340a76396Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
420440a76396Smrg# in the wild :-(  We should find a proper way to deprecate it ...
420540a76396SmrgAMTAR='$${TAR-tar}'
420640a76396Smrg
420740a76396Smrg
420840a76396Smrg# We'll loop over all known methods to create a tar archive until one works.
420940a76396Smrg_am_tools='gnutar  pax cpio none'
421040a76396Smrg
421140a76396Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
421240a76396Smrg
421340a76396Smrg
421440a76396Smrg
421540a76396Smrg
421640a76396Smrg
421740a76396Smrgdepcc="$CC"   am_compiler_list=
421840a76396Smrg
421940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
422040a76396Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
422140a76396Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
422240a76396Smrg  $as_echo_n "(cached) " >&6
422340a76396Smrgelse
422440a76396Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
422540a76396Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
422640a76396Smrg  # making bogus files that we don't know about and never remove.  For
422740a76396Smrg  # instance it was reported that on HP-UX the gcc test will end up
422840a76396Smrg  # making a dummy file named 'D' -- because '-MD' means "put the output
422940a76396Smrg  # in D".
423040a76396Smrg  rm -rf conftest.dir
423140a76396Smrg  mkdir conftest.dir
423240a76396Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
423340a76396Smrg  # using a relative directory.
423440a76396Smrg  cp "$am_depcomp" conftest.dir
423540a76396Smrg  cd conftest.dir
423640a76396Smrg  # We will build objects and dependencies in a subdirectory because
423740a76396Smrg  # it helps to detect inapplicable dependency modes.  For instance
423840a76396Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
423940a76396Smrg  # side effect of compilation, but ICC will put the dependencies in
424040a76396Smrg  # the current directory while Tru64 will put them in the object
424140a76396Smrg  # directory.
424240a76396Smrg  mkdir sub
424340a76396Smrg
424440a76396Smrg  am_cv_CC_dependencies_compiler_type=none
424540a76396Smrg  if test "$am_compiler_list" = ""; then
424640a76396Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
424740a76396Smrg  fi
424840a76396Smrg  am__universal=false
424940a76396Smrg  case " $depcc " in #(
425040a76396Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
425140a76396Smrg     esac
425240a76396Smrg
425340a76396Smrg  for depmode in $am_compiler_list; do
425440a76396Smrg    # Setup a source with many dependencies, because some compilers
425540a76396Smrg    # like to wrap large dependency lists on column 80 (with \), and
425640a76396Smrg    # we should not choose a depcomp mode which is confused by this.
425740a76396Smrg    #
425840a76396Smrg    # We need to recreate these files for each test, as the compiler may
425940a76396Smrg    # overwrite some of them when testing with obscure command lines.
426040a76396Smrg    # This happens at least with the AIX C compiler.
426140a76396Smrg    : > sub/conftest.c
426240a76396Smrg    for i in 1 2 3 4 5 6; do
426340a76396Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
426440a76396Smrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
426540a76396Smrg      # Solaris 10 /bin/sh.
426640a76396Smrg      echo '/* dummy */' > sub/conftst$i.h
426740a76396Smrg    done
426840a76396Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
426940a76396Smrg
427040a76396Smrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
427140a76396Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
427240a76396Smrg    # handle '-M -o', and we need to detect this.  Also, some Intel
427340a76396Smrg    # versions had trouble with output in subdirs.
427440a76396Smrg    am__obj=sub/conftest.${OBJEXT-o}
427540a76396Smrg    am__minus_obj="-o $am__obj"
427640a76396Smrg    case $depmode in
427740a76396Smrg    gcc)
427840a76396Smrg      # This depmode causes a compiler race in universal mode.
427940a76396Smrg      test "$am__universal" = false || continue
428040a76396Smrg      ;;
428140a76396Smrg    nosideeffect)
428240a76396Smrg      # After this tag, mechanisms are not by side-effect, so they'll
428340a76396Smrg      # only be used when explicitly requested.
428440a76396Smrg      if test "x$enable_dependency_tracking" = xyes; then
428540a76396Smrg	continue
428640a76396Smrg      else
428740a76396Smrg	break
428840a76396Smrg      fi
428940a76396Smrg      ;;
429040a76396Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
429140a76396Smrg      # This compiler won't grok '-c -o', but also, the minuso test has
429240a76396Smrg      # not run yet.  These depmodes are late enough in the game, and
429340a76396Smrg      # so weak that their functioning should not be impacted.
429440a76396Smrg      am__obj=conftest.${OBJEXT-o}
429540a76396Smrg      am__minus_obj=
429640a76396Smrg      ;;
429740a76396Smrg    none) break ;;
429840a76396Smrg    esac
429940a76396Smrg    if depmode=$depmode \
430040a76396Smrg       source=sub/conftest.c object=$am__obj \
430140a76396Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
430240a76396Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
430340a76396Smrg         >/dev/null 2>conftest.err &&
430440a76396Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
430540a76396Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
430640a76396Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
430740a76396Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
430840a76396Smrg      # icc doesn't choke on unknown options, it will just issue warnings
430940a76396Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
431040a76396Smrg      # that says an option was ignored or not supported.
431140a76396Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
431240a76396Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
431340a76396Smrg      # The diagnosis changed in icc 8.0:
431440a76396Smrg      #   icc: Command line remark: option '-MP' not supported
431540a76396Smrg      if (grep 'ignoring option' conftest.err ||
431640a76396Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
431740a76396Smrg        am_cv_CC_dependencies_compiler_type=$depmode
431840a76396Smrg        break
431940a76396Smrg      fi
432040a76396Smrg    fi
432140a76396Smrg  done
432240a76396Smrg
432340a76396Smrg  cd ..
432440a76396Smrg  rm -rf conftest.dir
432540a76396Smrgelse
432640a76396Smrg  am_cv_CC_dependencies_compiler_type=none
432740a76396Smrgfi
432840a76396Smrg
432940a76396Smrgfi
433040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
433140a76396Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
433240a76396SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
433340a76396Smrg
433440a76396Smrg if
433540a76396Smrg  test "x$enable_dependency_tracking" != xno \
433640a76396Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
433740a76396Smrg  am__fastdepCC_TRUE=
433840a76396Smrg  am__fastdepCC_FALSE='#'
433940a76396Smrgelse
434040a76396Smrg  am__fastdepCC_TRUE='#'
434140a76396Smrg  am__fastdepCC_FALSE=
434240a76396Smrgfi
434340a76396Smrg
434440a76396Smrg
434540a76396Smrg
434640a76396Smrg# POSIX will say in a future version that running "rm -f" with no argument
434740a76396Smrg# is OK; and we want to be able to make that assumption in our Makefile
434840a76396Smrg# recipes.  So use an aggressive probe to check that the usage we want is
434940a76396Smrg# actually supported "in the wild" to an acceptable degree.
435040a76396Smrg# See automake bug#10828.
435140a76396Smrg# To make any issue more visible, cause the running configure to be aborted
435240a76396Smrg# by default if the 'rm' program in use doesn't match our expectations; the
435340a76396Smrg# user can still override this though.
435440a76396Smrgif rm -f && rm -fr && rm -rf; then : OK; else
435540a76396Smrg  cat >&2 <<'END'
435640a76396SmrgOops!
435740a76396Smrg
435840a76396SmrgYour 'rm' program seems unable to run without file operands specified
435940a76396Smrgon the command line, even when the '-f' option is present.  This is contrary
436040a76396Smrgto the behaviour of most rm programs out there, and not conforming with
436140a76396Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
436240a76396Smrg
436340a76396SmrgPlease tell bug-automake@gnu.org about your system, including the value
436440a76396Smrgof your $PATH and any error possibly output before this message.  This
436540a76396Smrgcan help us improve future automake versions.
436640a76396Smrg
436740a76396SmrgEND
436840a76396Smrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
436940a76396Smrg    echo 'Configuration will proceed anyway, since you have set the' >&2
437040a76396Smrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
437140a76396Smrg    echo >&2
437240a76396Smrg  else
437340a76396Smrg    cat >&2 <<'END'
437440a76396SmrgAborting the configuration process, to ensure you take notice of the issue.
437540a76396Smrg
437640a76396SmrgYou can download and install GNU coreutils to get an 'rm' implementation
437740a76396Smrgthat behaves properly: <http://www.gnu.org/software/coreutils/>.
437840a76396Smrg
437940a76396SmrgIf you want to complete the configuration process using your problematic
438040a76396Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
438140a76396Smrgto "yes", and re-run configure.
438240a76396Smrg
438340a76396SmrgEND
438440a76396Smrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
438540a76396Smrg  fi
438640a76396Smrgfi
438740a76396Smrg
438840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
438940a76396Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
439040a76396Smrg    # Check whether --enable-maintainer-mode was given.
439140a76396Smrgif test "${enable_maintainer_mode+set}" = set; then :
439240a76396Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
439340a76396Smrgelse
439440a76396Smrg  USE_MAINTAINER_MODE=no
439540a76396Smrgfi
439640a76396Smrg
439740a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
439840a76396Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
439940a76396Smrg   if test $USE_MAINTAINER_MODE = yes; then
440040a76396Smrg  MAINTAINER_MODE_TRUE=
440140a76396Smrg  MAINTAINER_MODE_FALSE='#'
440240a76396Smrgelse
440340a76396Smrg  MAINTAINER_MODE_TRUE='#'
440440a76396Smrg  MAINTAINER_MODE_FALSE=
440540a76396Smrgfi
440640a76396Smrg
440740a76396Smrg  MAINT=$MAINTAINER_MODE_TRUE
440840a76396Smrg
440940a76396Smrg
441040a76396Smrg
441140a76396Smrg# Require xorg-macros: XORG_MANPAGE_SECTIONS
441240a76396Smrg
441340a76396Smrg
441440a76396Smrg
441540a76396Smrg
441640a76396Smrg
441740a76396Smrg
441840a76396Smrg
441940a76396Smrg
442040a76396Smrg
442140a76396Smrg
442240a76396Smrg
442340a76396Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
442440a76396Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
442540a76396Smrgif ${ac_cv_prog_cc_c99+:} false; then :
442640a76396Smrg  $as_echo_n "(cached) " >&6
442740a76396Smrgelse
442840a76396Smrg  ac_cv_prog_cc_c99=no
442940a76396Smrgac_save_CC=$CC
443040a76396Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
443140a76396Smrg/* end confdefs.h.  */
443240a76396Smrg#include <stdarg.h>
443340a76396Smrg#include <stdbool.h>
443440a76396Smrg#include <stdlib.h>
443540a76396Smrg#include <wchar.h>
443640a76396Smrg#include <stdio.h>
443740a76396Smrg
443840a76396Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
443940a76396Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
444040a76396Smrg#define showlist(...) puts (#__VA_ARGS__)
444140a76396Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
444240a76396Smrgstatic void
444340a76396Smrgtest_varargs_macros (void)
444440a76396Smrg{
444540a76396Smrg  int x = 1234;
444640a76396Smrg  int y = 5678;
444740a76396Smrg  debug ("Flag");
444840a76396Smrg  debug ("X = %d\n", x);
444940a76396Smrg  showlist (The first, second, and third items.);
445040a76396Smrg  report (x>y, "x is %d but y is %d", x, y);
445140a76396Smrg}
445240a76396Smrg
445340a76396Smrg// Check long long types.
445440a76396Smrg#define BIG64 18446744073709551615ull
445540a76396Smrg#define BIG32 4294967295ul
445640a76396Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
445740a76396Smrg#if !BIG_OK
445840a76396Smrg  your preprocessor is broken;
445940a76396Smrg#endif
446040a76396Smrg#if BIG_OK
446140a76396Smrg#else
446240a76396Smrg  your preprocessor is broken;
446340a76396Smrg#endif
446440a76396Smrgstatic long long int bignum = -9223372036854775807LL;
446540a76396Smrgstatic unsigned long long int ubignum = BIG64;
446640a76396Smrg
446740a76396Smrgstruct incomplete_array
446840a76396Smrg{
446940a76396Smrg  int datasize;
447040a76396Smrg  double data[];
447140a76396Smrg};
447240a76396Smrg
447340a76396Smrgstruct named_init {
447440a76396Smrg  int number;
447540a76396Smrg  const wchar_t *name;
447640a76396Smrg  double average;
447740a76396Smrg};
447840a76396Smrg
447940a76396Smrgtypedef const char *ccp;
448040a76396Smrg
448140a76396Smrgstatic inline int
448240a76396Smrgtest_restrict (ccp restrict text)
448340a76396Smrg{
448440a76396Smrg  // See if C++-style comments work.
448540a76396Smrg  // Iterate through items via the restricted pointer.
448640a76396Smrg  // Also check for declarations in for loops.
448740a76396Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
448840a76396Smrg    continue;
448940a76396Smrg  return 0;
449040a76396Smrg}
449140a76396Smrg
449240a76396Smrg// Check varargs and va_copy.
449340a76396Smrgstatic void
449440a76396Smrgtest_varargs (const char *format, ...)
449540a76396Smrg{
449640a76396Smrg  va_list args;
449740a76396Smrg  va_start (args, format);
449840a76396Smrg  va_list args_copy;
449940a76396Smrg  va_copy (args_copy, args);
450040a76396Smrg
450140a76396Smrg  const char *str;
450240a76396Smrg  int number;
450340a76396Smrg  float fnumber;
450440a76396Smrg
450540a76396Smrg  while (*format)
450640a76396Smrg    {
450740a76396Smrg      switch (*format++)
450840a76396Smrg	{
450940a76396Smrg	case 's': // string
451040a76396Smrg	  str = va_arg (args_copy, const char *);
451140a76396Smrg	  break;
451240a76396Smrg	case 'd': // int
451340a76396Smrg	  number = va_arg (args_copy, int);
451440a76396Smrg	  break;
451540a76396Smrg	case 'f': // float
451640a76396Smrg	  fnumber = va_arg (args_copy, double);
451740a76396Smrg	  break;
451840a76396Smrg	default:
451940a76396Smrg	  break;
452040a76396Smrg	}
452140a76396Smrg    }
452240a76396Smrg  va_end (args_copy);
452340a76396Smrg  va_end (args);
452440a76396Smrg}
452540a76396Smrg
452640a76396Smrgint
452740a76396Smrgmain ()
452840a76396Smrg{
452940a76396Smrg
453040a76396Smrg  // Check bool.
453140a76396Smrg  _Bool success = false;
453240a76396Smrg
453340a76396Smrg  // Check restrict.
453440a76396Smrg  if (test_restrict ("String literal") == 0)
453540a76396Smrg    success = true;
453640a76396Smrg  char *restrict newvar = "Another string";
453740a76396Smrg
453840a76396Smrg  // Check varargs.
453940a76396Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
454040a76396Smrg  test_varargs_macros ();
454140a76396Smrg
454240a76396Smrg  // Check flexible array members.
454340a76396Smrg  struct incomplete_array *ia =
454440a76396Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
454540a76396Smrg  ia->datasize = 10;
454640a76396Smrg  for (int i = 0; i < ia->datasize; ++i)
454740a76396Smrg    ia->data[i] = i * 1.234;
454840a76396Smrg
454940a76396Smrg  // Check named initializers.
455040a76396Smrg  struct named_init ni = {
455140a76396Smrg    .number = 34,
455240a76396Smrg    .name = L"Test wide string",
455340a76396Smrg    .average = 543.34343,
455440a76396Smrg  };
455540a76396Smrg
455640a76396Smrg  ni.number = 58;
455740a76396Smrg
455840a76396Smrg  int dynamic_array[ni.number];
455940a76396Smrg  dynamic_array[ni.number - 1] = 543;
456040a76396Smrg
456140a76396Smrg  // work around unused variable warnings
456240a76396Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
456340a76396Smrg	  || dynamic_array[ni.number - 1] != 543);
456440a76396Smrg
456540a76396Smrg  ;
456640a76396Smrg  return 0;
456740a76396Smrg}
456840a76396Smrg_ACEOF
456940a76396Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
457040a76396Smrgdo
457140a76396Smrg  CC="$ac_save_CC $ac_arg"
457240a76396Smrg  if ac_fn_c_try_compile "$LINENO"; then :
457340a76396Smrg  ac_cv_prog_cc_c99=$ac_arg
457440a76396Smrgfi
457540a76396Smrgrm -f core conftest.err conftest.$ac_objext
457640a76396Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
457740a76396Smrgdone
457840a76396Smrgrm -f conftest.$ac_ext
457940a76396SmrgCC=$ac_save_CC
458040a76396Smrg
458140a76396Smrgfi
458240a76396Smrg# AC_CACHE_VAL
458340a76396Smrgcase "x$ac_cv_prog_cc_c99" in
458440a76396Smrg  x)
458540a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
458640a76396Smrg$as_echo "none needed" >&6; } ;;
458740a76396Smrg  xno)
458840a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
458940a76396Smrg$as_echo "unsupported" >&6; } ;;
459040a76396Smrg  *)
459140a76396Smrg    CC="$CC $ac_cv_prog_cc_c99"
459240a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
459340a76396Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
459440a76396Smrgesac
459540a76396Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
459640a76396Smrg
459740a76396Smrgfi
459840a76396Smrg
459940a76396Smrg
460040a76396Smrg
460140a76396Smrg
460240a76396Smrg
460340a76396Smrg
460440a76396Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
460540a76396Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
460640a76396Smrg  CLANGCC="yes"
460740a76396Smrgelse
460840a76396Smrg  CLANGCC="no"
460940a76396Smrgfi
461040a76396Smrg
461140a76396Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
461240a76396Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
461340a76396Smrg  INTELCC="yes"
461440a76396Smrgelse
461540a76396Smrg  INTELCC="no"
461640a76396Smrgfi
461740a76396Smrg
461840a76396Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
461940a76396Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
462040a76396Smrg  SUNCC="yes"
462140a76396Smrgelse
462240a76396Smrg  SUNCC="no"
462340a76396Smrgfi
462440a76396Smrg
462540a76396Smrg
462640a76396Smrg
462740a76396Smrg
462840a76396Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
462940a76396Smrg	if test -n "$ac_tool_prefix"; then
463040a76396Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
463140a76396Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
463240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
463340a76396Smrg$as_echo_n "checking for $ac_word... " >&6; }
463440a76396Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
463540a76396Smrg  $as_echo_n "(cached) " >&6
463640a76396Smrgelse
463740a76396Smrg  case $PKG_CONFIG in
463840a76396Smrg  [\\/]* | ?:[\\/]*)
463940a76396Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
464040a76396Smrg  ;;
464140a76396Smrg  *)
464240a76396Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
464340a76396Smrgfor as_dir in $PATH
464440a76396Smrgdo
464540a76396Smrg  IFS=$as_save_IFS
464640a76396Smrg  test -z "$as_dir" && as_dir=.
464740a76396Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
464840a76396Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
464940a76396Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
465040a76396Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
465140a76396Smrg    break 2
465240a76396Smrg  fi
465340a76396Smrgdone
465440a76396Smrg  done
465540a76396SmrgIFS=$as_save_IFS
465640a76396Smrg
465740a76396Smrg  ;;
465840a76396Smrgesac
465940a76396Smrgfi
466040a76396SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
466140a76396Smrgif test -n "$PKG_CONFIG"; then
466240a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
466340a76396Smrg$as_echo "$PKG_CONFIG" >&6; }
466440a76396Smrgelse
466540a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
466640a76396Smrg$as_echo "no" >&6; }
466740a76396Smrgfi
466840a76396Smrg
466940a76396Smrg
467040a76396Smrgfi
467140a76396Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
467240a76396Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
467340a76396Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
467440a76396Smrgset dummy pkg-config; ac_word=$2
467540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
467640a76396Smrg$as_echo_n "checking for $ac_word... " >&6; }
467740a76396Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
467840a76396Smrg  $as_echo_n "(cached) " >&6
467940a76396Smrgelse
468040a76396Smrg  case $ac_pt_PKG_CONFIG in
468140a76396Smrg  [\\/]* | ?:[\\/]*)
468240a76396Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
468340a76396Smrg  ;;
468440a76396Smrg  *)
468540a76396Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
468640a76396Smrgfor as_dir in $PATH
468740a76396Smrgdo
468840a76396Smrg  IFS=$as_save_IFS
468940a76396Smrg  test -z "$as_dir" && as_dir=.
469040a76396Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
469140a76396Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
469240a76396Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
469340a76396Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
469440a76396Smrg    break 2
469540a76396Smrg  fi
469640a76396Smrgdone
469740a76396Smrg  done
469840a76396SmrgIFS=$as_save_IFS
469940a76396Smrg
470040a76396Smrg  ;;
470140a76396Smrgesac
470240a76396Smrgfi
470340a76396Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
470440a76396Smrgif test -n "$ac_pt_PKG_CONFIG"; then
470540a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
470640a76396Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
470740a76396Smrgelse
470840a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
470940a76396Smrg$as_echo "no" >&6; }
471040a76396Smrgfi
471140a76396Smrg
471240a76396Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
471340a76396Smrg    PKG_CONFIG=""
471440a76396Smrg  else
471540a76396Smrg    case $cross_compiling:$ac_tool_warned in
471640a76396Smrgyes:)
471740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
471840a76396Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
471940a76396Smrgac_tool_warned=yes ;;
472040a76396Smrgesac
472140a76396Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
472240a76396Smrg  fi
472340a76396Smrgelse
472440a76396Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
472540a76396Smrgfi
472640a76396Smrg
472740a76396Smrgfi
472840a76396Smrgif test -n "$PKG_CONFIG"; then
472940a76396Smrg	_pkg_min_version=0.9.0
473040a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
473140a76396Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
473240a76396Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
473340a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
473440a76396Smrg$as_echo "yes" >&6; }
473540a76396Smrg	else
473640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
473740a76396Smrg$as_echo "no" >&6; }
473840a76396Smrg		PKG_CONFIG=""
473940a76396Smrg	fi
474040a76396Smrg
474140a76396Smrgfi
474240a76396Smrg# Make sure we can run config.sub.
474340a76396Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
474440a76396Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
474540a76396Smrg
474640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
474740a76396Smrg$as_echo_n "checking build system type... " >&6; }
474840a76396Smrgif ${ac_cv_build+:} false; then :
474940a76396Smrg  $as_echo_n "(cached) " >&6
475040a76396Smrgelse
475140a76396Smrg  ac_build_alias=$build_alias
475240a76396Smrgtest "x$ac_build_alias" = x &&
475340a76396Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
475440a76396Smrgtest "x$ac_build_alias" = x &&
475540a76396Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
475640a76396Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
475740a76396Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
475840a76396Smrg
475940a76396Smrgfi
476040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
476140a76396Smrg$as_echo "$ac_cv_build" >&6; }
476240a76396Smrgcase $ac_cv_build in
476340a76396Smrg*-*-*) ;;
476440a76396Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
476540a76396Smrgesac
476640a76396Smrgbuild=$ac_cv_build
476740a76396Smrgac_save_IFS=$IFS; IFS='-'
476840a76396Smrgset x $ac_cv_build
476940a76396Smrgshift
477040a76396Smrgbuild_cpu=$1
477140a76396Smrgbuild_vendor=$2
477240a76396Smrgshift; shift
477340a76396Smrg# Remember, the first character of IFS is used to create $*,
477440a76396Smrg# except with old shells:
477540a76396Smrgbuild_os=$*
477640a76396SmrgIFS=$ac_save_IFS
477740a76396Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
477840a76396Smrg
477940a76396Smrg
478040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
478140a76396Smrg$as_echo_n "checking host system type... " >&6; }
478240a76396Smrgif ${ac_cv_host+:} false; then :
478340a76396Smrg  $as_echo_n "(cached) " >&6
478440a76396Smrgelse
478540a76396Smrg  if test "x$host_alias" = x; then
478640a76396Smrg  ac_cv_host=$ac_cv_build
478740a76396Smrgelse
478840a76396Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
478940a76396Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
479040a76396Smrgfi
479140a76396Smrg
479240a76396Smrgfi
479340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
479440a76396Smrg$as_echo "$ac_cv_host" >&6; }
479540a76396Smrgcase $ac_cv_host in
479640a76396Smrg*-*-*) ;;
479740a76396Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
479840a76396Smrgesac
479940a76396Smrghost=$ac_cv_host
480040a76396Smrgac_save_IFS=$IFS; IFS='-'
480140a76396Smrgset x $ac_cv_host
480240a76396Smrgshift
480340a76396Smrghost_cpu=$1
480440a76396Smrghost_vendor=$2
480540a76396Smrgshift; shift
480640a76396Smrg# Remember, the first character of IFS is used to create $*,
480740a76396Smrg# except with old shells:
480840a76396Smrghost_os=$*
480940a76396SmrgIFS=$ac_save_IFS
481040a76396Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
481140a76396Smrg
481240a76396Smrg
481340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
481440a76396Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
481540a76396Smrgif ${ac_cv_path_SED+:} false; then :
481640a76396Smrg  $as_echo_n "(cached) " >&6
481740a76396Smrgelse
481840a76396Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
481940a76396Smrg     for ac_i in 1 2 3 4 5 6 7; do
482040a76396Smrg       ac_script="$ac_script$as_nl$ac_script"
482140a76396Smrg     done
482240a76396Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
482340a76396Smrg     { ac_script=; unset ac_script;}
482440a76396Smrg     if test -z "$SED"; then
482540a76396Smrg  ac_path_SED_found=false
482640a76396Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
482740a76396Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
482840a76396Smrgfor as_dir in $PATH
482940a76396Smrgdo
483040a76396Smrg  IFS=$as_save_IFS
483140a76396Smrg  test -z "$as_dir" && as_dir=.
483240a76396Smrg    for ac_prog in sed gsed; do
483340a76396Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
483440a76396Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
483540a76396Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
483640a76396Smrg# Check for GNU ac_path_SED and select it if it is found.
483740a76396Smrg  # Check for GNU $ac_path_SED
483840a76396Smrgcase `"$ac_path_SED" --version 2>&1` in
483940a76396Smrg*GNU*)
484040a76396Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
484140a76396Smrg*)
484240a76396Smrg  ac_count=0
484340a76396Smrg  $as_echo_n 0123456789 >"conftest.in"
484440a76396Smrg  while :
484540a76396Smrg  do
484640a76396Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
484740a76396Smrg    mv "conftest.tmp" "conftest.in"
484840a76396Smrg    cp "conftest.in" "conftest.nl"
484940a76396Smrg    $as_echo '' >> "conftest.nl"
485040a76396Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
485140a76396Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
485240a76396Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
485340a76396Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
485440a76396Smrg      # Best one so far, save it but keep looking for a better one
485540a76396Smrg      ac_cv_path_SED="$ac_path_SED"
485640a76396Smrg      ac_path_SED_max=$ac_count
485740a76396Smrg    fi
485840a76396Smrg    # 10*(2^10) chars as input seems more than enough
485940a76396Smrg    test $ac_count -gt 10 && break
486040a76396Smrg  done
486140a76396Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
486240a76396Smrgesac
486340a76396Smrg
486440a76396Smrg      $ac_path_SED_found && break 3
486540a76396Smrg    done
486640a76396Smrg  done
486740a76396Smrg  done
486840a76396SmrgIFS=$as_save_IFS
486940a76396Smrg  if test -z "$ac_cv_path_SED"; then
487040a76396Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
487140a76396Smrg  fi
487240a76396Smrgelse
487340a76396Smrg  ac_cv_path_SED=$SED
487440a76396Smrgfi
487540a76396Smrg
487640a76396Smrgfi
487740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
487840a76396Smrg$as_echo "$ac_cv_path_SED" >&6; }
487940a76396Smrg SED="$ac_cv_path_SED"
488040a76396Smrg  rm -f conftest.sed
488140a76396Smrg
488240a76396Smrg
488340a76396Smrg
488440a76396Smrg
488540a76396Smrg
488640a76396Smrg
488740a76396Smrg# Check whether --enable-selective-werror was given.
488840a76396Smrgif test "${enable_selective_werror+set}" = set; then :
488940a76396Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
489040a76396Smrgelse
489140a76396Smrg  SELECTIVE_WERROR=yes
489240a76396Smrgfi
489340a76396Smrg
489440a76396Smrg
489540a76396Smrg
489640a76396Smrg
489740a76396Smrg
489840a76396Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
489940a76396Smrgif test "x$SUNCC" = "xyes"; then
490040a76396Smrg    BASE_CFLAGS="-v"
490140a76396Smrgelse
490240a76396Smrg    BASE_CFLAGS=""
490340a76396Smrgfi
490440a76396Smrg
490540a76396Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
490640a76396Smrg
490740a76396Smrg
490840a76396Smrg
490940a76396Smrg
491040a76396Smrg
491140a76396Smrg
491240a76396Smrg
491340a76396Smrg
491440a76396Smrg
491540a76396Smrg
491640a76396Smrg
491740a76396Smrg
491840a76396Smrg
491940a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
492040a76396Smrg
492140a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
492240a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
492340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
492440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
492540a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
492640a76396Smrg  $as_echo_n "(cached) " >&6
492740a76396Smrgelse
492840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
492940a76396Smrg/* end confdefs.h.  */
493040a76396Smrgint i;
493140a76396Smrg_ACEOF
493240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
493340a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
493440a76396Smrgelse
493540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
493640a76396Smrgfi
493740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
493840a76396Smrgfi
493940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
494040a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
494140a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
494240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
494340a76396Smrgfi
494440a76396Smrg
494540a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
494640a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
494740a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
494840a76396Smrg	fi
494940a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
495040a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
495140a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
495240a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
495340a76396Smrg  $as_echo_n "(cached) " >&6
495440a76396Smrgelse
495540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
495640a76396Smrg/* end confdefs.h.  */
495740a76396Smrgint i;
495840a76396Smrg_ACEOF
495940a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
496040a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
496140a76396Smrgelse
496240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
496340a76396Smrgfi
496440a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
496540a76396Smrgfi
496640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
496740a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
496840a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
496940a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
497040a76396Smrgfi
497140a76396Smrg
497240a76396Smrgfound="no"
497340a76396Smrg
497440a76396Smrg	if test $found = "no" ; then
497540a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
497640a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
497740a76396Smrg		fi
497840a76396Smrg
497940a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
498040a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
498140a76396Smrg		fi
498240a76396Smrg
498340a76396Smrg		CFLAGS="$CFLAGS -Wall"
498440a76396Smrg
498540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
498640a76396Smrg$as_echo_n "checking if $CC supports -Wall... " >&6; }
498740a76396Smrg		cacheid=xorg_cv_cc_flag__Wall
498840a76396Smrg		if eval \${$cacheid+:} false; then :
498940a76396Smrg  $as_echo_n "(cached) " >&6
499040a76396Smrgelse
499140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
499240a76396Smrg/* end confdefs.h.  */
499340a76396Smrgint i;
499440a76396Smrgint
499540a76396Smrgmain ()
499640a76396Smrg{
499740a76396Smrg
499840a76396Smrg  ;
499940a76396Smrg  return 0;
500040a76396Smrg}
500140a76396Smrg_ACEOF
500240a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
500340a76396Smrg  eval $cacheid=yes
500440a76396Smrgelse
500540a76396Smrg  eval $cacheid=no
500640a76396Smrgfi
500740a76396Smrgrm -f core conftest.err conftest.$ac_objext \
500840a76396Smrg    conftest$ac_exeext conftest.$ac_ext
500940a76396Smrgfi
501040a76396Smrg
501140a76396Smrg
501240a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
501340a76396Smrg
501440a76396Smrg		eval supported=\$$cacheid
501540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
501640a76396Smrg$as_echo "$supported" >&6; }
501740a76396Smrg		if test "$supported" = "yes" ; then
501840a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
501940a76396Smrg			found="yes"
502040a76396Smrg		fi
502140a76396Smrg	fi
502240a76396Smrg
502340a76396Smrg
502440a76396Smrg
502540a76396Smrg
502640a76396Smrg
502740a76396Smrg
502840a76396Smrg
502940a76396Smrg
503040a76396Smrg
503140a76396Smrg
503240a76396Smrg
503340a76396Smrg
503440a76396Smrg
503540a76396Smrg
503640a76396Smrg
503740a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
503840a76396Smrg
503940a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
504040a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
504140a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
504240a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
504340a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
504440a76396Smrg  $as_echo_n "(cached) " >&6
504540a76396Smrgelse
504640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
504740a76396Smrg/* end confdefs.h.  */
504840a76396Smrgint i;
504940a76396Smrg_ACEOF
505040a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
505140a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
505240a76396Smrgelse
505340a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
505440a76396Smrgfi
505540a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
505640a76396Smrgfi
505740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
505840a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
505940a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
506040a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
506140a76396Smrgfi
506240a76396Smrg
506340a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
506440a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
506540a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
506640a76396Smrg	fi
506740a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
506840a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
506940a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
507040a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
507140a76396Smrg  $as_echo_n "(cached) " >&6
507240a76396Smrgelse
507340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
507440a76396Smrg/* end confdefs.h.  */
507540a76396Smrgint i;
507640a76396Smrg_ACEOF
507740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
507840a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
507940a76396Smrgelse
508040a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
508140a76396Smrgfi
508240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
508340a76396Smrgfi
508440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
508540a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
508640a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
508740a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
508840a76396Smrgfi
508940a76396Smrg
509040a76396Smrgfound="no"
509140a76396Smrg
509240a76396Smrg	if test $found = "no" ; then
509340a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
509440a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
509540a76396Smrg		fi
509640a76396Smrg
509740a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
509840a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
509940a76396Smrg		fi
510040a76396Smrg
510140a76396Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
510240a76396Smrg
510340a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
510440a76396Smrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
510540a76396Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
510640a76396Smrg		if eval \${$cacheid+:} false; then :
510740a76396Smrg  $as_echo_n "(cached) " >&6
510840a76396Smrgelse
510940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
511040a76396Smrg/* end confdefs.h.  */
511140a76396Smrgint i;
511240a76396Smrgint
511340a76396Smrgmain ()
511440a76396Smrg{
511540a76396Smrg
511640a76396Smrg  ;
511740a76396Smrg  return 0;
511840a76396Smrg}
511940a76396Smrg_ACEOF
512040a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
512140a76396Smrg  eval $cacheid=yes
512240a76396Smrgelse
512340a76396Smrg  eval $cacheid=no
512440a76396Smrgfi
512540a76396Smrgrm -f core conftest.err conftest.$ac_objext \
512640a76396Smrg    conftest$ac_exeext conftest.$ac_ext
512740a76396Smrgfi
512840a76396Smrg
512940a76396Smrg
513040a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
513140a76396Smrg
513240a76396Smrg		eval supported=\$$cacheid
513340a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
513440a76396Smrg$as_echo "$supported" >&6; }
513540a76396Smrg		if test "$supported" = "yes" ; then
513640a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
513740a76396Smrg			found="yes"
513840a76396Smrg		fi
513940a76396Smrg	fi
514040a76396Smrg
514140a76396Smrg
514240a76396Smrg
514340a76396Smrg
514440a76396Smrg
514540a76396Smrg
514640a76396Smrg
514740a76396Smrg
514840a76396Smrg
514940a76396Smrg
515040a76396Smrg
515140a76396Smrg
515240a76396Smrg
515340a76396Smrg
515440a76396Smrg
515540a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
515640a76396Smrg
515740a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
515840a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
515940a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
516040a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
516140a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
516240a76396Smrg  $as_echo_n "(cached) " >&6
516340a76396Smrgelse
516440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
516540a76396Smrg/* end confdefs.h.  */
516640a76396Smrgint i;
516740a76396Smrg_ACEOF
516840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
516940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
517040a76396Smrgelse
517140a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
517240a76396Smrgfi
517340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
517440a76396Smrgfi
517540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
517640a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
517740a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
517840a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
517940a76396Smrgfi
518040a76396Smrg
518140a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
518240a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
518340a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
518440a76396Smrg	fi
518540a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
518640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
518740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
518840a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
518940a76396Smrg  $as_echo_n "(cached) " >&6
519040a76396Smrgelse
519140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
519240a76396Smrg/* end confdefs.h.  */
519340a76396Smrgint i;
519440a76396Smrg_ACEOF
519540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
519640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
519740a76396Smrgelse
519840a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
519940a76396Smrgfi
520040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
520140a76396Smrgfi
520240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
520340a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
520440a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
520540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
520640a76396Smrgfi
520740a76396Smrg
520840a76396Smrgfound="no"
520940a76396Smrg
521040a76396Smrg	if test $found = "no" ; then
521140a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
521240a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
521340a76396Smrg		fi
521440a76396Smrg
521540a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
521640a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
521740a76396Smrg		fi
521840a76396Smrg
521940a76396Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
522040a76396Smrg
522140a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
522240a76396Smrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
522340a76396Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
522440a76396Smrg		if eval \${$cacheid+:} false; then :
522540a76396Smrg  $as_echo_n "(cached) " >&6
522640a76396Smrgelse
522740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
522840a76396Smrg/* end confdefs.h.  */
522940a76396Smrgint i;
523040a76396Smrgint
523140a76396Smrgmain ()
523240a76396Smrg{
523340a76396Smrg
523440a76396Smrg  ;
523540a76396Smrg  return 0;
523640a76396Smrg}
523740a76396Smrg_ACEOF
523840a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
523940a76396Smrg  eval $cacheid=yes
524040a76396Smrgelse
524140a76396Smrg  eval $cacheid=no
524240a76396Smrgfi
524340a76396Smrgrm -f core conftest.err conftest.$ac_objext \
524440a76396Smrg    conftest$ac_exeext conftest.$ac_ext
524540a76396Smrgfi
524640a76396Smrg
524740a76396Smrg
524840a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
524940a76396Smrg
525040a76396Smrg		eval supported=\$$cacheid
525140a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
525240a76396Smrg$as_echo "$supported" >&6; }
525340a76396Smrg		if test "$supported" = "yes" ; then
525440a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
525540a76396Smrg			found="yes"
525640a76396Smrg		fi
525740a76396Smrg	fi
525840a76396Smrg
525940a76396Smrg
526040a76396Smrg
526140a76396Smrg
526240a76396Smrg
526340a76396Smrg
526440a76396Smrg
526540a76396Smrg
526640a76396Smrg
526740a76396Smrg
526840a76396Smrg
526940a76396Smrg
527040a76396Smrg
527140a76396Smrg
527240a76396Smrg
527340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
527440a76396Smrg
527540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
527640a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
527740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
527840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
527940a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
528040a76396Smrg  $as_echo_n "(cached) " >&6
528140a76396Smrgelse
528240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
528340a76396Smrg/* end confdefs.h.  */
528440a76396Smrgint i;
528540a76396Smrg_ACEOF
528640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
528740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
528840a76396Smrgelse
528940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
529040a76396Smrgfi
529140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
529240a76396Smrgfi
529340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
529440a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
529540a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
529640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
529740a76396Smrgfi
529840a76396Smrg
529940a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
530040a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
530140a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
530240a76396Smrg	fi
530340a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
530440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
530540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
530640a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
530740a76396Smrg  $as_echo_n "(cached) " >&6
530840a76396Smrgelse
530940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
531040a76396Smrg/* end confdefs.h.  */
531140a76396Smrgint i;
531240a76396Smrg_ACEOF
531340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
531440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
531540a76396Smrgelse
531640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
531740a76396Smrgfi
531840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
531940a76396Smrgfi
532040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
532140a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
532240a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
532340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
532440a76396Smrgfi
532540a76396Smrg
532640a76396Smrgfound="no"
532740a76396Smrg
532840a76396Smrg	if test $found = "no" ; then
532940a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
533040a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
533140a76396Smrg		fi
533240a76396Smrg
533340a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
533440a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
533540a76396Smrg		fi
533640a76396Smrg
533740a76396Smrg		CFLAGS="$CFLAGS -Wformat=2"
533840a76396Smrg
533940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
534040a76396Smrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
534140a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
534240a76396Smrg		if eval \${$cacheid+:} false; then :
534340a76396Smrg  $as_echo_n "(cached) " >&6
534440a76396Smrgelse
534540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
534640a76396Smrg/* end confdefs.h.  */
534740a76396Smrgint i;
534840a76396Smrgint
534940a76396Smrgmain ()
535040a76396Smrg{
535140a76396Smrg
535240a76396Smrg  ;
535340a76396Smrg  return 0;
535440a76396Smrg}
535540a76396Smrg_ACEOF
535640a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
535740a76396Smrg  eval $cacheid=yes
535840a76396Smrgelse
535940a76396Smrg  eval $cacheid=no
536040a76396Smrgfi
536140a76396Smrgrm -f core conftest.err conftest.$ac_objext \
536240a76396Smrg    conftest$ac_exeext conftest.$ac_ext
536340a76396Smrgfi
536440a76396Smrg
536540a76396Smrg
536640a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
536740a76396Smrg
536840a76396Smrg		eval supported=\$$cacheid
536940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
537040a76396Smrg$as_echo "$supported" >&6; }
537140a76396Smrg		if test "$supported" = "yes" ; then
537240a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
537340a76396Smrg			found="yes"
537440a76396Smrg		fi
537540a76396Smrg	fi
537640a76396Smrg
537740a76396Smrg	if test $found = "no" ; then
537840a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
537940a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
538040a76396Smrg		fi
538140a76396Smrg
538240a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
538340a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
538440a76396Smrg		fi
538540a76396Smrg
538640a76396Smrg		CFLAGS="$CFLAGS -Wformat"
538740a76396Smrg
538840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
538940a76396Smrg$as_echo_n "checking if $CC supports -Wformat... " >&6; }
539040a76396Smrg		cacheid=xorg_cv_cc_flag__Wformat
539140a76396Smrg		if eval \${$cacheid+:} false; then :
539240a76396Smrg  $as_echo_n "(cached) " >&6
539340a76396Smrgelse
539440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
539540a76396Smrg/* end confdefs.h.  */
539640a76396Smrgint i;
539740a76396Smrgint
539840a76396Smrgmain ()
539940a76396Smrg{
540040a76396Smrg
540140a76396Smrg  ;
540240a76396Smrg  return 0;
540340a76396Smrg}
540440a76396Smrg_ACEOF
540540a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
540640a76396Smrg  eval $cacheid=yes
540740a76396Smrgelse
540840a76396Smrg  eval $cacheid=no
540940a76396Smrgfi
541040a76396Smrgrm -f core conftest.err conftest.$ac_objext \
541140a76396Smrg    conftest$ac_exeext conftest.$ac_ext
541240a76396Smrgfi
541340a76396Smrg
541440a76396Smrg
541540a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
541640a76396Smrg
541740a76396Smrg		eval supported=\$$cacheid
541840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
541940a76396Smrg$as_echo "$supported" >&6; }
542040a76396Smrg		if test "$supported" = "yes" ; then
542140a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
542240a76396Smrg			found="yes"
542340a76396Smrg		fi
542440a76396Smrg	fi
542540a76396Smrg
542640a76396Smrg
542740a76396Smrg
542840a76396Smrg
542940a76396Smrg
543040a76396Smrg
543140a76396Smrg
543240a76396Smrg
543340a76396Smrg
543440a76396Smrg
543540a76396Smrg
543640a76396Smrg
543740a76396Smrg
543840a76396Smrg
543940a76396Smrg
544040a76396Smrg
544140a76396Smrg
544240a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
544340a76396Smrg
544440a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
544540a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
544640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
544740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
544840a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
544940a76396Smrg  $as_echo_n "(cached) " >&6
545040a76396Smrgelse
545140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
545240a76396Smrg/* end confdefs.h.  */
545340a76396Smrgint i;
545440a76396Smrg_ACEOF
545540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
545640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
545740a76396Smrgelse
545840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
545940a76396Smrgfi
546040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
546140a76396Smrgfi
546240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
546340a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
546440a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
546540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
546640a76396Smrgfi
546740a76396Smrg
546840a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
546940a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
547040a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
547140a76396Smrg	fi
547240a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
547340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
547440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
547540a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
547640a76396Smrg  $as_echo_n "(cached) " >&6
547740a76396Smrgelse
547840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
547940a76396Smrg/* end confdefs.h.  */
548040a76396Smrgint i;
548140a76396Smrg_ACEOF
548240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
548340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
548440a76396Smrgelse
548540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
548640a76396Smrgfi
548740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
548840a76396Smrgfi
548940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
549040a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
549140a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
549240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
549340a76396Smrgfi
549440a76396Smrg
549540a76396Smrgfound="no"
549640a76396Smrg
549740a76396Smrg	if test $found = "no" ; then
549840a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
549940a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
550040a76396Smrg		fi
550140a76396Smrg
550240a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
550340a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
550440a76396Smrg		fi
550540a76396Smrg
550640a76396Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
550740a76396Smrg
550840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
550940a76396Smrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
551040a76396Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
551140a76396Smrg		if eval \${$cacheid+:} false; then :
551240a76396Smrg  $as_echo_n "(cached) " >&6
551340a76396Smrgelse
551440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
551540a76396Smrg/* end confdefs.h.  */
551640a76396Smrgint i;
551740a76396Smrgint
551840a76396Smrgmain ()
551940a76396Smrg{
552040a76396Smrg
552140a76396Smrg  ;
552240a76396Smrg  return 0;
552340a76396Smrg}
552440a76396Smrg_ACEOF
552540a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
552640a76396Smrg  eval $cacheid=yes
552740a76396Smrgelse
552840a76396Smrg  eval $cacheid=no
552940a76396Smrgfi
553040a76396Smrgrm -f core conftest.err conftest.$ac_objext \
553140a76396Smrg    conftest$ac_exeext conftest.$ac_ext
553240a76396Smrgfi
553340a76396Smrg
553440a76396Smrg
553540a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
553640a76396Smrg
553740a76396Smrg		eval supported=\$$cacheid
553840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
553940a76396Smrg$as_echo "$supported" >&6; }
554040a76396Smrg		if test "$supported" = "yes" ; then
554140a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
554240a76396Smrg			found="yes"
554340a76396Smrg		fi
554440a76396Smrg	fi
554540a76396Smrg
554640a76396Smrg
554740a76396Smrg
554840a76396Smrg
554940a76396Smrg
555040a76396Smrg
555140a76396Smrg
555240a76396Smrg
555340a76396Smrg
555440a76396Smrg
555540a76396Smrg
555640a76396Smrg
555740a76396Smrg
555840a76396Smrg
555940a76396Smrg
556040a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
556140a76396Smrg
556240a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
556340a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
556440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
556540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
556640a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
556740a76396Smrg  $as_echo_n "(cached) " >&6
556840a76396Smrgelse
556940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
557040a76396Smrg/* end confdefs.h.  */
557140a76396Smrgint i;
557240a76396Smrg_ACEOF
557340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
557440a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
557540a76396Smrgelse
557640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
557740a76396Smrgfi
557840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
557940a76396Smrgfi
558040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
558140a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
558240a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
558340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
558440a76396Smrgfi
558540a76396Smrg
558640a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
558740a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
558840a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
558940a76396Smrg	fi
559040a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
559140a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
559240a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
559340a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
559440a76396Smrg  $as_echo_n "(cached) " >&6
559540a76396Smrgelse
559640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
559740a76396Smrg/* end confdefs.h.  */
559840a76396Smrgint i;
559940a76396Smrg_ACEOF
560040a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
560140a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
560240a76396Smrgelse
560340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
560440a76396Smrgfi
560540a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
560640a76396Smrgfi
560740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
560840a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
560940a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
561040a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
561140a76396Smrgfi
561240a76396Smrg
561340a76396Smrgfound="no"
561440a76396Smrg
561540a76396Smrg	if test $found = "no" ; then
561640a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
561740a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
561840a76396Smrg		fi
561940a76396Smrg
562040a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
562140a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
562240a76396Smrg		fi
562340a76396Smrg
562440a76396Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
562540a76396Smrg
562640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
562740a76396Smrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
562840a76396Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
562940a76396Smrg		if eval \${$cacheid+:} false; then :
563040a76396Smrg  $as_echo_n "(cached) " >&6
563140a76396Smrgelse
563240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
563340a76396Smrg/* end confdefs.h.  */
563440a76396Smrgint i;
563540a76396Smrgint
563640a76396Smrgmain ()
563740a76396Smrg{
563840a76396Smrg
563940a76396Smrg  ;
564040a76396Smrg  return 0;
564140a76396Smrg}
564240a76396Smrg_ACEOF
564340a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
564440a76396Smrg  eval $cacheid=yes
564540a76396Smrgelse
564640a76396Smrg  eval $cacheid=no
564740a76396Smrgfi
564840a76396Smrgrm -f core conftest.err conftest.$ac_objext \
564940a76396Smrg    conftest$ac_exeext conftest.$ac_ext
565040a76396Smrgfi
565140a76396Smrg
565240a76396Smrg
565340a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
565440a76396Smrg
565540a76396Smrg		eval supported=\$$cacheid
565640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
565740a76396Smrg$as_echo "$supported" >&6; }
565840a76396Smrg		if test "$supported" = "yes" ; then
565940a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
566040a76396Smrg			found="yes"
566140a76396Smrg		fi
566240a76396Smrg	fi
566340a76396Smrg
566440a76396Smrg
566540a76396Smrg
566640a76396Smrg
566740a76396Smrg
566840a76396Smrg
566940a76396Smrg
567040a76396Smrg
567140a76396Smrg
567240a76396Smrg
567340a76396Smrg
567440a76396Smrg
567540a76396Smrg
567640a76396Smrg
567740a76396Smrg
567840a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
567940a76396Smrg
568040a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
568140a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
568240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
568340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
568440a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
568540a76396Smrg  $as_echo_n "(cached) " >&6
568640a76396Smrgelse
568740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
568840a76396Smrg/* end confdefs.h.  */
568940a76396Smrgint i;
569040a76396Smrg_ACEOF
569140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
569240a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
569340a76396Smrgelse
569440a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
569540a76396Smrgfi
569640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
569740a76396Smrgfi
569840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
569940a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
570040a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
570140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
570240a76396Smrgfi
570340a76396Smrg
570440a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
570540a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
570640a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
570740a76396Smrg	fi
570840a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
570940a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
571040a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
571140a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
571240a76396Smrg  $as_echo_n "(cached) " >&6
571340a76396Smrgelse
571440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
571540a76396Smrg/* end confdefs.h.  */
571640a76396Smrgint i;
571740a76396Smrg_ACEOF
571840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
571940a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
572040a76396Smrgelse
572140a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
572240a76396Smrgfi
572340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
572440a76396Smrgfi
572540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
572640a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
572740a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
572840a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
572940a76396Smrgfi
573040a76396Smrg
573140a76396Smrgfound="no"
573240a76396Smrg
573340a76396Smrg	if test $found = "no" ; then
573440a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
573540a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
573640a76396Smrg		fi
573740a76396Smrg
573840a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
573940a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
574040a76396Smrg		fi
574140a76396Smrg
574240a76396Smrg		CFLAGS="$CFLAGS -Wnested-externs"
574340a76396Smrg
574440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
574540a76396Smrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
574640a76396Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
574740a76396Smrg		if eval \${$cacheid+:} false; then :
574840a76396Smrg  $as_echo_n "(cached) " >&6
574940a76396Smrgelse
575040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
575140a76396Smrg/* end confdefs.h.  */
575240a76396Smrgint i;
575340a76396Smrgint
575440a76396Smrgmain ()
575540a76396Smrg{
575640a76396Smrg
575740a76396Smrg  ;
575840a76396Smrg  return 0;
575940a76396Smrg}
576040a76396Smrg_ACEOF
576140a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
576240a76396Smrg  eval $cacheid=yes
576340a76396Smrgelse
576440a76396Smrg  eval $cacheid=no
576540a76396Smrgfi
576640a76396Smrgrm -f core conftest.err conftest.$ac_objext \
576740a76396Smrg    conftest$ac_exeext conftest.$ac_ext
576840a76396Smrgfi
576940a76396Smrg
577040a76396Smrg
577140a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
577240a76396Smrg
577340a76396Smrg		eval supported=\$$cacheid
577440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
577540a76396Smrg$as_echo "$supported" >&6; }
577640a76396Smrg		if test "$supported" = "yes" ; then
577740a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
577840a76396Smrg			found="yes"
577940a76396Smrg		fi
578040a76396Smrg	fi
578140a76396Smrg
578240a76396Smrg
578340a76396Smrg
578440a76396Smrg
578540a76396Smrg
578640a76396Smrg
578740a76396Smrg
578840a76396Smrg
578940a76396Smrg
579040a76396Smrg
579140a76396Smrg
579240a76396Smrg
579340a76396Smrg
579440a76396Smrg
579540a76396Smrg
579640a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
579740a76396Smrg
579840a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
579940a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
580040a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
580140a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
580240a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
580340a76396Smrg  $as_echo_n "(cached) " >&6
580440a76396Smrgelse
580540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
580640a76396Smrg/* end confdefs.h.  */
580740a76396Smrgint i;
580840a76396Smrg_ACEOF
580940a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
581040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
581140a76396Smrgelse
581240a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
581340a76396Smrgfi
581440a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
581540a76396Smrgfi
581640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
581740a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
581840a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
581940a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
582040a76396Smrgfi
582140a76396Smrg
582240a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
582340a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
582440a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
582540a76396Smrg	fi
582640a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
582740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
582840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
582940a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
583040a76396Smrg  $as_echo_n "(cached) " >&6
583140a76396Smrgelse
583240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
583340a76396Smrg/* end confdefs.h.  */
583440a76396Smrgint i;
583540a76396Smrg_ACEOF
583640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
583740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
583840a76396Smrgelse
583940a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
584040a76396Smrgfi
584140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
584240a76396Smrgfi
584340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
584440a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
584540a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
584640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
584740a76396Smrgfi
584840a76396Smrg
584940a76396Smrgfound="no"
585040a76396Smrg
585140a76396Smrg	if test $found = "no" ; then
585240a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
585340a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
585440a76396Smrg		fi
585540a76396Smrg
585640a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
585740a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
585840a76396Smrg		fi
585940a76396Smrg
586040a76396Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
586140a76396Smrg
586240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
586340a76396Smrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
586440a76396Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
586540a76396Smrg		if eval \${$cacheid+:} false; then :
586640a76396Smrg  $as_echo_n "(cached) " >&6
586740a76396Smrgelse
586840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
586940a76396Smrg/* end confdefs.h.  */
587040a76396Smrgint i;
587140a76396Smrgint
587240a76396Smrgmain ()
587340a76396Smrg{
587440a76396Smrg
587540a76396Smrg  ;
587640a76396Smrg  return 0;
587740a76396Smrg}
587840a76396Smrg_ACEOF
587940a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
588040a76396Smrg  eval $cacheid=yes
588140a76396Smrgelse
588240a76396Smrg  eval $cacheid=no
588340a76396Smrgfi
588440a76396Smrgrm -f core conftest.err conftest.$ac_objext \
588540a76396Smrg    conftest$ac_exeext conftest.$ac_ext
588640a76396Smrgfi
588740a76396Smrg
588840a76396Smrg
588940a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
589040a76396Smrg
589140a76396Smrg		eval supported=\$$cacheid
589240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
589340a76396Smrg$as_echo "$supported" >&6; }
589440a76396Smrg		if test "$supported" = "yes" ; then
589540a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
589640a76396Smrg			found="yes"
589740a76396Smrg		fi
589840a76396Smrg	fi
589940a76396Smrg
590040a76396Smrg
590140a76396Smrg
590240a76396Smrg
590340a76396Smrg
590440a76396Smrg
590540a76396Smrg
590640a76396Smrg
590740a76396Smrg
590840a76396Smrg
590940a76396Smrg
591040a76396Smrg
591140a76396Smrg
591240a76396Smrg
591340a76396Smrg
591440a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
591540a76396Smrg
591640a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
591740a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
591840a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
591940a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
592040a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
592140a76396Smrg  $as_echo_n "(cached) " >&6
592240a76396Smrgelse
592340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
592440a76396Smrg/* end confdefs.h.  */
592540a76396Smrgint i;
592640a76396Smrg_ACEOF
592740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
592840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
592940a76396Smrgelse
593040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
593140a76396Smrgfi
593240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
593340a76396Smrgfi
593440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
593540a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
593640a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
593740a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
593840a76396Smrgfi
593940a76396Smrg
594040a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
594140a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
594240a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
594340a76396Smrg	fi
594440a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
594540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
594640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
594740a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
594840a76396Smrg  $as_echo_n "(cached) " >&6
594940a76396Smrgelse
595040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
595140a76396Smrg/* end confdefs.h.  */
595240a76396Smrgint i;
595340a76396Smrg_ACEOF
595440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
595540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
595640a76396Smrgelse
595740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
595840a76396Smrgfi
595940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
596040a76396Smrgfi
596140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
596240a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
596340a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
596440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
596540a76396Smrgfi
596640a76396Smrg
596740a76396Smrgfound="no"
596840a76396Smrg
596940a76396Smrg	if test $found = "no" ; then
597040a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
597140a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
597240a76396Smrg		fi
597340a76396Smrg
597440a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
597540a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
597640a76396Smrg		fi
597740a76396Smrg
597840a76396Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
597940a76396Smrg
598040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
598140a76396Smrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
598240a76396Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
598340a76396Smrg		if eval \${$cacheid+:} false; then :
598440a76396Smrg  $as_echo_n "(cached) " >&6
598540a76396Smrgelse
598640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
598740a76396Smrg/* end confdefs.h.  */
598840a76396Smrgint i;
598940a76396Smrgint
599040a76396Smrgmain ()
599140a76396Smrg{
599240a76396Smrg
599340a76396Smrg  ;
599440a76396Smrg  return 0;
599540a76396Smrg}
599640a76396Smrg_ACEOF
599740a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
599840a76396Smrg  eval $cacheid=yes
599940a76396Smrgelse
600040a76396Smrg  eval $cacheid=no
600140a76396Smrgfi
600240a76396Smrgrm -f core conftest.err conftest.$ac_objext \
600340a76396Smrg    conftest$ac_exeext conftest.$ac_ext
600440a76396Smrgfi
600540a76396Smrg
600640a76396Smrg
600740a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
600840a76396Smrg
600940a76396Smrg		eval supported=\$$cacheid
601040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
601140a76396Smrg$as_echo "$supported" >&6; }
601240a76396Smrg		if test "$supported" = "yes" ; then
601340a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
601440a76396Smrg			found="yes"
601540a76396Smrg		fi
601640a76396Smrg	fi
601740a76396Smrg
601840a76396Smrg
601940a76396Smrg
602040a76396Smrg
602140a76396Smrg
602240a76396Smrg
602340a76396Smrg
602440a76396Smrg
602540a76396Smrg
602640a76396Smrg
602740a76396Smrg
602840a76396Smrg
602940a76396Smrg
603040a76396Smrg
603140a76396Smrg
603240a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
603340a76396Smrg
603440a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
603540a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
603640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
603740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
603840a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
603940a76396Smrg  $as_echo_n "(cached) " >&6
604040a76396Smrgelse
604140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
604240a76396Smrg/* end confdefs.h.  */
604340a76396Smrgint i;
604440a76396Smrg_ACEOF
604540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
604640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
604740a76396Smrgelse
604840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
604940a76396Smrgfi
605040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
605140a76396Smrgfi
605240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
605340a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
605440a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
605540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
605640a76396Smrgfi
605740a76396Smrg
605840a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
605940a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
606040a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
606140a76396Smrg	fi
606240a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
606340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
606440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
606540a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
606640a76396Smrg  $as_echo_n "(cached) " >&6
606740a76396Smrgelse
606840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
606940a76396Smrg/* end confdefs.h.  */
607040a76396Smrgint i;
607140a76396Smrg_ACEOF
607240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
607340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
607440a76396Smrgelse
607540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
607640a76396Smrgfi
607740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
607840a76396Smrgfi
607940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
608040a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
608140a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
608240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
608340a76396Smrgfi
608440a76396Smrg
608540a76396Smrgfound="no"
608640a76396Smrg
608740a76396Smrg	if test $found = "no" ; then
608840a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
608940a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
609040a76396Smrg		fi
609140a76396Smrg
609240a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
609340a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
609440a76396Smrg		fi
609540a76396Smrg
609640a76396Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
609740a76396Smrg
609840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
609940a76396Smrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
610040a76396Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
610140a76396Smrg		if eval \${$cacheid+:} false; then :
610240a76396Smrg  $as_echo_n "(cached) " >&6
610340a76396Smrgelse
610440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
610540a76396Smrg/* end confdefs.h.  */
610640a76396Smrgint i;
610740a76396Smrgint
610840a76396Smrgmain ()
610940a76396Smrg{
611040a76396Smrg
611140a76396Smrg  ;
611240a76396Smrg  return 0;
611340a76396Smrg}
611440a76396Smrg_ACEOF
611540a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
611640a76396Smrg  eval $cacheid=yes
611740a76396Smrgelse
611840a76396Smrg  eval $cacheid=no
611940a76396Smrgfi
612040a76396Smrgrm -f core conftest.err conftest.$ac_objext \
612140a76396Smrg    conftest$ac_exeext conftest.$ac_ext
612240a76396Smrgfi
612340a76396Smrg
612440a76396Smrg
612540a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
612640a76396Smrg
612740a76396Smrg		eval supported=\$$cacheid
612840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
612940a76396Smrg$as_echo "$supported" >&6; }
613040a76396Smrg		if test "$supported" = "yes" ; then
613140a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
613240a76396Smrg			found="yes"
613340a76396Smrg		fi
613440a76396Smrg	fi
613540a76396Smrg
613640a76396Smrg
613740a76396Smrg
613840a76396Smrg
613940a76396Smrg
614040a76396Smrg# This chunk adds additional warnings that could catch undesired effects.
614140a76396Smrg
614240a76396Smrg
614340a76396Smrg
614440a76396Smrg
614540a76396Smrg
614640a76396Smrg
614740a76396Smrg
614840a76396Smrg
614940a76396Smrg
615040a76396Smrg
615140a76396Smrg
615240a76396Smrg
615340a76396Smrg
615440a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
615540a76396Smrg
615640a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
615740a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
615840a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
615940a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
616040a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
616140a76396Smrg  $as_echo_n "(cached) " >&6
616240a76396Smrgelse
616340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
616440a76396Smrg/* end confdefs.h.  */
616540a76396Smrgint i;
616640a76396Smrg_ACEOF
616740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
616840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
616940a76396Smrgelse
617040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
617140a76396Smrgfi
617240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
617340a76396Smrgfi
617440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
617540a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
617640a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
617740a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
617840a76396Smrgfi
617940a76396Smrg
618040a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
618140a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
618240a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
618340a76396Smrg	fi
618440a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
618540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
618640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
618740a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
618840a76396Smrg  $as_echo_n "(cached) " >&6
618940a76396Smrgelse
619040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
619140a76396Smrg/* end confdefs.h.  */
619240a76396Smrgint i;
619340a76396Smrg_ACEOF
619440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
619540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
619640a76396Smrgelse
619740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
619840a76396Smrgfi
619940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
620040a76396Smrgfi
620140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
620240a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
620340a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
620440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
620540a76396Smrgfi
620640a76396Smrg
620740a76396Smrgfound="no"
620840a76396Smrg
620940a76396Smrg	if test $found = "no" ; then
621040a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
621140a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
621240a76396Smrg		fi
621340a76396Smrg
621440a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
621540a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
621640a76396Smrg		fi
621740a76396Smrg
621840a76396Smrg		CFLAGS="$CFLAGS -Wunused"
621940a76396Smrg
622040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
622140a76396Smrg$as_echo_n "checking if $CC supports -Wunused... " >&6; }
622240a76396Smrg		cacheid=xorg_cv_cc_flag__Wunused
622340a76396Smrg		if eval \${$cacheid+:} false; then :
622440a76396Smrg  $as_echo_n "(cached) " >&6
622540a76396Smrgelse
622640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622740a76396Smrg/* end confdefs.h.  */
622840a76396Smrgint i;
622940a76396Smrgint
623040a76396Smrgmain ()
623140a76396Smrg{
623240a76396Smrg
623340a76396Smrg  ;
623440a76396Smrg  return 0;
623540a76396Smrg}
623640a76396Smrg_ACEOF
623740a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
623840a76396Smrg  eval $cacheid=yes
623940a76396Smrgelse
624040a76396Smrg  eval $cacheid=no
624140a76396Smrgfi
624240a76396Smrgrm -f core conftest.err conftest.$ac_objext \
624340a76396Smrg    conftest$ac_exeext conftest.$ac_ext
624440a76396Smrgfi
624540a76396Smrg
624640a76396Smrg
624740a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
624840a76396Smrg
624940a76396Smrg		eval supported=\$$cacheid
625040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
625140a76396Smrg$as_echo "$supported" >&6; }
625240a76396Smrg		if test "$supported" = "yes" ; then
625340a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
625440a76396Smrg			found="yes"
625540a76396Smrg		fi
625640a76396Smrg	fi
625740a76396Smrg
625840a76396Smrg
625940a76396Smrg
626040a76396Smrg
626140a76396Smrg
626240a76396Smrg
626340a76396Smrg
626440a76396Smrg
626540a76396Smrg
626640a76396Smrg
626740a76396Smrg
626840a76396Smrg
626940a76396Smrg
627040a76396Smrg
627140a76396Smrg
627240a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
627340a76396Smrg
627440a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
627540a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
627640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
627740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
627840a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
627940a76396Smrg  $as_echo_n "(cached) " >&6
628040a76396Smrgelse
628140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
628240a76396Smrg/* end confdefs.h.  */
628340a76396Smrgint i;
628440a76396Smrg_ACEOF
628540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
628640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
628740a76396Smrgelse
628840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
628940a76396Smrgfi
629040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
629140a76396Smrgfi
629240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
629340a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
629440a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
629540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
629640a76396Smrgfi
629740a76396Smrg
629840a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
629940a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
630040a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
630140a76396Smrg	fi
630240a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
630340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
630440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
630540a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
630640a76396Smrg  $as_echo_n "(cached) " >&6
630740a76396Smrgelse
630840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
630940a76396Smrg/* end confdefs.h.  */
631040a76396Smrgint i;
631140a76396Smrg_ACEOF
631240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
631340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
631440a76396Smrgelse
631540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
631640a76396Smrgfi
631740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
631840a76396Smrgfi
631940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
632040a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
632140a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
632240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
632340a76396Smrgfi
632440a76396Smrg
632540a76396Smrgfound="no"
632640a76396Smrg
632740a76396Smrg	if test $found = "no" ; then
632840a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
632940a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
633040a76396Smrg		fi
633140a76396Smrg
633240a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
633340a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
633440a76396Smrg		fi
633540a76396Smrg
633640a76396Smrg		CFLAGS="$CFLAGS -Wuninitialized"
633740a76396Smrg
633840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
633940a76396Smrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
634040a76396Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
634140a76396Smrg		if eval \${$cacheid+:} false; then :
634240a76396Smrg  $as_echo_n "(cached) " >&6
634340a76396Smrgelse
634440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
634540a76396Smrg/* end confdefs.h.  */
634640a76396Smrgint i;
634740a76396Smrgint
634840a76396Smrgmain ()
634940a76396Smrg{
635040a76396Smrg
635140a76396Smrg  ;
635240a76396Smrg  return 0;
635340a76396Smrg}
635440a76396Smrg_ACEOF
635540a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
635640a76396Smrg  eval $cacheid=yes
635740a76396Smrgelse
635840a76396Smrg  eval $cacheid=no
635940a76396Smrgfi
636040a76396Smrgrm -f core conftest.err conftest.$ac_objext \
636140a76396Smrg    conftest$ac_exeext conftest.$ac_ext
636240a76396Smrgfi
636340a76396Smrg
636440a76396Smrg
636540a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
636640a76396Smrg
636740a76396Smrg		eval supported=\$$cacheid
636840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
636940a76396Smrg$as_echo "$supported" >&6; }
637040a76396Smrg		if test "$supported" = "yes" ; then
637140a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
637240a76396Smrg			found="yes"
637340a76396Smrg		fi
637440a76396Smrg	fi
637540a76396Smrg
637640a76396Smrg
637740a76396Smrg
637840a76396Smrg
637940a76396Smrg
638040a76396Smrg
638140a76396Smrg
638240a76396Smrg
638340a76396Smrg
638440a76396Smrg
638540a76396Smrg
638640a76396Smrg
638740a76396Smrg
638840a76396Smrg
638940a76396Smrg
639040a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
639140a76396Smrg
639240a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
639340a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
639440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
639540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
639640a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
639740a76396Smrg  $as_echo_n "(cached) " >&6
639840a76396Smrgelse
639940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
640040a76396Smrg/* end confdefs.h.  */
640140a76396Smrgint i;
640240a76396Smrg_ACEOF
640340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
640440a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
640540a76396Smrgelse
640640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
640740a76396Smrgfi
640840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
640940a76396Smrgfi
641040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
641140a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
641240a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
641340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
641440a76396Smrgfi
641540a76396Smrg
641640a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
641740a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
641840a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
641940a76396Smrg	fi
642040a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
642140a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
642240a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
642340a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
642440a76396Smrg  $as_echo_n "(cached) " >&6
642540a76396Smrgelse
642640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
642740a76396Smrg/* end confdefs.h.  */
642840a76396Smrgint i;
642940a76396Smrg_ACEOF
643040a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
643140a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
643240a76396Smrgelse
643340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
643440a76396Smrgfi
643540a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
643640a76396Smrgfi
643740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
643840a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
643940a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
644040a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
644140a76396Smrgfi
644240a76396Smrg
644340a76396Smrgfound="no"
644440a76396Smrg
644540a76396Smrg	if test $found = "no" ; then
644640a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
644740a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
644840a76396Smrg		fi
644940a76396Smrg
645040a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
645140a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
645240a76396Smrg		fi
645340a76396Smrg
645440a76396Smrg		CFLAGS="$CFLAGS -Wshadow"
645540a76396Smrg
645640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
645740a76396Smrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
645840a76396Smrg		cacheid=xorg_cv_cc_flag__Wshadow
645940a76396Smrg		if eval \${$cacheid+:} false; then :
646040a76396Smrg  $as_echo_n "(cached) " >&6
646140a76396Smrgelse
646240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
646340a76396Smrg/* end confdefs.h.  */
646440a76396Smrgint i;
646540a76396Smrgint
646640a76396Smrgmain ()
646740a76396Smrg{
646840a76396Smrg
646940a76396Smrg  ;
647040a76396Smrg  return 0;
647140a76396Smrg}
647240a76396Smrg_ACEOF
647340a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
647440a76396Smrg  eval $cacheid=yes
647540a76396Smrgelse
647640a76396Smrg  eval $cacheid=no
647740a76396Smrgfi
647840a76396Smrgrm -f core conftest.err conftest.$ac_objext \
647940a76396Smrg    conftest$ac_exeext conftest.$ac_ext
648040a76396Smrgfi
648140a76396Smrg
648240a76396Smrg
648340a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
648440a76396Smrg
648540a76396Smrg		eval supported=\$$cacheid
648640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
648740a76396Smrg$as_echo "$supported" >&6; }
648840a76396Smrg		if test "$supported" = "yes" ; then
648940a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
649040a76396Smrg			found="yes"
649140a76396Smrg		fi
649240a76396Smrg	fi
649340a76396Smrg
649440a76396Smrg
649540a76396Smrg
649640a76396Smrg
649740a76396Smrg
649840a76396Smrg
649940a76396Smrg
650040a76396Smrg
650140a76396Smrg
650240a76396Smrg
650340a76396Smrg
650440a76396Smrg
650540a76396Smrg
650640a76396Smrg
650740a76396Smrg
650840a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
650940a76396Smrg
651040a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
651140a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
651240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
651340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
651440a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
651540a76396Smrg  $as_echo_n "(cached) " >&6
651640a76396Smrgelse
651740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
651840a76396Smrg/* end confdefs.h.  */
651940a76396Smrgint i;
652040a76396Smrg_ACEOF
652140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
652240a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
652340a76396Smrgelse
652440a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
652540a76396Smrgfi
652640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
652740a76396Smrgfi
652840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
652940a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
653040a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
653140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
653240a76396Smrgfi
653340a76396Smrg
653440a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
653540a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
653640a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
653740a76396Smrg	fi
653840a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
653940a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
654040a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
654140a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
654240a76396Smrg  $as_echo_n "(cached) " >&6
654340a76396Smrgelse
654440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
654540a76396Smrg/* end confdefs.h.  */
654640a76396Smrgint i;
654740a76396Smrg_ACEOF
654840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
654940a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
655040a76396Smrgelse
655140a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
655240a76396Smrgfi
655340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
655440a76396Smrgfi
655540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
655640a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
655740a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
655840a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
655940a76396Smrgfi
656040a76396Smrg
656140a76396Smrgfound="no"
656240a76396Smrg
656340a76396Smrg	if test $found = "no" ; then
656440a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
656540a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
656640a76396Smrg		fi
656740a76396Smrg
656840a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
656940a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
657040a76396Smrg		fi
657140a76396Smrg
657240a76396Smrg		CFLAGS="$CFLAGS -Wcast-qual"
657340a76396Smrg
657440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
657540a76396Smrg$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
657640a76396Smrg		cacheid=xorg_cv_cc_flag__Wcast_qual
657740a76396Smrg		if eval \${$cacheid+:} false; then :
657840a76396Smrg  $as_echo_n "(cached) " >&6
657940a76396Smrgelse
658040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
658140a76396Smrg/* end confdefs.h.  */
658240a76396Smrgint i;
658340a76396Smrgint
658440a76396Smrgmain ()
658540a76396Smrg{
658640a76396Smrg
658740a76396Smrg  ;
658840a76396Smrg  return 0;
658940a76396Smrg}
659040a76396Smrg_ACEOF
659140a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
659240a76396Smrg  eval $cacheid=yes
659340a76396Smrgelse
659440a76396Smrg  eval $cacheid=no
659540a76396Smrgfi
659640a76396Smrgrm -f core conftest.err conftest.$ac_objext \
659740a76396Smrg    conftest$ac_exeext conftest.$ac_ext
659840a76396Smrgfi
659940a76396Smrg
660040a76396Smrg
660140a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
660240a76396Smrg
660340a76396Smrg		eval supported=\$$cacheid
660440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
660540a76396Smrg$as_echo "$supported" >&6; }
660640a76396Smrg		if test "$supported" = "yes" ; then
660740a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
660840a76396Smrg			found="yes"
660940a76396Smrg		fi
661040a76396Smrg	fi
661140a76396Smrg
661240a76396Smrg
661340a76396Smrg
661440a76396Smrg
661540a76396Smrg
661640a76396Smrg
661740a76396Smrg
661840a76396Smrg
661940a76396Smrg
662040a76396Smrg
662140a76396Smrg
662240a76396Smrg
662340a76396Smrg
662440a76396Smrg
662540a76396Smrg
662640a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
662740a76396Smrg
662840a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
662940a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
663040a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
663140a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
663240a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
663340a76396Smrg  $as_echo_n "(cached) " >&6
663440a76396Smrgelse
663540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
663640a76396Smrg/* end confdefs.h.  */
663740a76396Smrgint i;
663840a76396Smrg_ACEOF
663940a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
664040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
664140a76396Smrgelse
664240a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
664340a76396Smrgfi
664440a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
664540a76396Smrgfi
664640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
664740a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
664840a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
664940a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
665040a76396Smrgfi
665140a76396Smrg
665240a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
665340a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
665440a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
665540a76396Smrg	fi
665640a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
665740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
665840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
665940a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
666040a76396Smrg  $as_echo_n "(cached) " >&6
666140a76396Smrgelse
666240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
666340a76396Smrg/* end confdefs.h.  */
666440a76396Smrgint i;
666540a76396Smrg_ACEOF
666640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
666740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
666840a76396Smrgelse
666940a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
667040a76396Smrgfi
667140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
667240a76396Smrgfi
667340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
667440a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
667540a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
667640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
667740a76396Smrgfi
667840a76396Smrg
667940a76396Smrgfound="no"
668040a76396Smrg
668140a76396Smrg	if test $found = "no" ; then
668240a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
668340a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
668440a76396Smrg		fi
668540a76396Smrg
668640a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
668740a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
668840a76396Smrg		fi
668940a76396Smrg
669040a76396Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
669140a76396Smrg
669240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
669340a76396Smrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
669440a76396Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
669540a76396Smrg		if eval \${$cacheid+:} false; then :
669640a76396Smrg  $as_echo_n "(cached) " >&6
669740a76396Smrgelse
669840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
669940a76396Smrg/* end confdefs.h.  */
670040a76396Smrgint i;
670140a76396Smrgint
670240a76396Smrgmain ()
670340a76396Smrg{
670440a76396Smrg
670540a76396Smrg  ;
670640a76396Smrg  return 0;
670740a76396Smrg}
670840a76396Smrg_ACEOF
670940a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
671040a76396Smrg  eval $cacheid=yes
671140a76396Smrgelse
671240a76396Smrg  eval $cacheid=no
671340a76396Smrgfi
671440a76396Smrgrm -f core conftest.err conftest.$ac_objext \
671540a76396Smrg    conftest$ac_exeext conftest.$ac_ext
671640a76396Smrgfi
671740a76396Smrg
671840a76396Smrg
671940a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
672040a76396Smrg
672140a76396Smrg		eval supported=\$$cacheid
672240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
672340a76396Smrg$as_echo "$supported" >&6; }
672440a76396Smrg		if test "$supported" = "yes" ; then
672540a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
672640a76396Smrg			found="yes"
672740a76396Smrg		fi
672840a76396Smrg	fi
672940a76396Smrg
673040a76396Smrg
673140a76396Smrg
673240a76396Smrg
673340a76396Smrg
673440a76396Smrg
673540a76396Smrg
673640a76396Smrg
673740a76396Smrg
673840a76396Smrg
673940a76396Smrg
674040a76396Smrg
674140a76396Smrg
674240a76396Smrg
674340a76396Smrg
674440a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
674540a76396Smrg
674640a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
674740a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
674840a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
674940a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
675040a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
675140a76396Smrg  $as_echo_n "(cached) " >&6
675240a76396Smrgelse
675340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
675440a76396Smrg/* end confdefs.h.  */
675540a76396Smrgint i;
675640a76396Smrg_ACEOF
675740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
675840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
675940a76396Smrgelse
676040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
676140a76396Smrgfi
676240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
676340a76396Smrgfi
676440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
676540a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
676640a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
676740a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
676840a76396Smrgfi
676940a76396Smrg
677040a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
677140a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
677240a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
677340a76396Smrg	fi
677440a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
677540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
677640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
677740a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
677840a76396Smrg  $as_echo_n "(cached) " >&6
677940a76396Smrgelse
678040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
678140a76396Smrg/* end confdefs.h.  */
678240a76396Smrgint i;
678340a76396Smrg_ACEOF
678440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
678540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
678640a76396Smrgelse
678740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
678840a76396Smrgfi
678940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
679040a76396Smrgfi
679140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
679240a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
679340a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
679440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
679540a76396Smrgfi
679640a76396Smrg
679740a76396Smrgfound="no"
679840a76396Smrg
679940a76396Smrg	if test $found = "no" ; then
680040a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
680140a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
680240a76396Smrg		fi
680340a76396Smrg
680440a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
680540a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
680640a76396Smrg		fi
680740a76396Smrg
680840a76396Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
680940a76396Smrg
681040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
681140a76396Smrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
681240a76396Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
681340a76396Smrg		if eval \${$cacheid+:} false; then :
681440a76396Smrg  $as_echo_n "(cached) " >&6
681540a76396Smrgelse
681640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
681740a76396Smrg/* end confdefs.h.  */
681840a76396Smrgint i;
681940a76396Smrgint
682040a76396Smrgmain ()
682140a76396Smrg{
682240a76396Smrg
682340a76396Smrg  ;
682440a76396Smrg  return 0;
682540a76396Smrg}
682640a76396Smrg_ACEOF
682740a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
682840a76396Smrg  eval $cacheid=yes
682940a76396Smrgelse
683040a76396Smrg  eval $cacheid=no
683140a76396Smrgfi
683240a76396Smrgrm -f core conftest.err conftest.$ac_objext \
683340a76396Smrg    conftest$ac_exeext conftest.$ac_ext
683440a76396Smrgfi
683540a76396Smrg
683640a76396Smrg
683740a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
683840a76396Smrg
683940a76396Smrg		eval supported=\$$cacheid
684040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
684140a76396Smrg$as_echo "$supported" >&6; }
684240a76396Smrg		if test "$supported" = "yes" ; then
684340a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
684440a76396Smrg			found="yes"
684540a76396Smrg		fi
684640a76396Smrg	fi
684740a76396Smrg
684840a76396Smrg
684940a76396Smrg
685040a76396Smrg
685140a76396Smrg
685240a76396Smrg
685340a76396Smrg
685440a76396Smrg
685540a76396Smrg
685640a76396Smrg
685740a76396Smrg
685840a76396Smrg
685940a76396Smrg
686040a76396Smrg
686140a76396Smrg
686240a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
686340a76396Smrg
686440a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
686540a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
686640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
686740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
686840a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
686940a76396Smrg  $as_echo_n "(cached) " >&6
687040a76396Smrgelse
687140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
687240a76396Smrg/* end confdefs.h.  */
687340a76396Smrgint i;
687440a76396Smrg_ACEOF
687540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
687640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
687740a76396Smrgelse
687840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
687940a76396Smrgfi
688040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
688140a76396Smrgfi
688240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
688340a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
688440a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
688540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
688640a76396Smrgfi
688740a76396Smrg
688840a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
688940a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
689040a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
689140a76396Smrg	fi
689240a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
689340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
689440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
689540a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
689640a76396Smrg  $as_echo_n "(cached) " >&6
689740a76396Smrgelse
689840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
689940a76396Smrg/* end confdefs.h.  */
690040a76396Smrgint i;
690140a76396Smrg_ACEOF
690240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
690340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
690440a76396Smrgelse
690540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
690640a76396Smrgfi
690740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
690840a76396Smrgfi
690940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
691040a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
691140a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
691240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
691340a76396Smrgfi
691440a76396Smrg
691540a76396Smrgfound="no"
691640a76396Smrg
691740a76396Smrg	if test $found = "no" ; then
691840a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
691940a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
692040a76396Smrg		fi
692140a76396Smrg
692240a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
692340a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
692440a76396Smrg		fi
692540a76396Smrg
692640a76396Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
692740a76396Smrg
692840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
692940a76396Smrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
693040a76396Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
693140a76396Smrg		if eval \${$cacheid+:} false; then :
693240a76396Smrg  $as_echo_n "(cached) " >&6
693340a76396Smrgelse
693440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
693540a76396Smrg/* end confdefs.h.  */
693640a76396Smrgint i;
693740a76396Smrgint
693840a76396Smrgmain ()
693940a76396Smrg{
694040a76396Smrg
694140a76396Smrg  ;
694240a76396Smrg  return 0;
694340a76396Smrg}
694440a76396Smrg_ACEOF
694540a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
694640a76396Smrg  eval $cacheid=yes
694740a76396Smrgelse
694840a76396Smrg  eval $cacheid=no
694940a76396Smrgfi
695040a76396Smrgrm -f core conftest.err conftest.$ac_objext \
695140a76396Smrg    conftest$ac_exeext conftest.$ac_ext
695240a76396Smrgfi
695340a76396Smrg
695440a76396Smrg
695540a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
695640a76396Smrg
695740a76396Smrg		eval supported=\$$cacheid
695840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
695940a76396Smrg$as_echo "$supported" >&6; }
696040a76396Smrg		if test "$supported" = "yes" ; then
696140a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
696240a76396Smrg			found="yes"
696340a76396Smrg		fi
696440a76396Smrg	fi
696540a76396Smrg
696640a76396Smrg
696740a76396Smrg
696840a76396Smrg# These are currently disabled because they are noisy.  They will be enabled
696940a76396Smrg# in the future once the codebase is sufficiently modernized to silence
697040a76396Smrg# them.  For now, I don't want them to drown out the other warnings.
697140a76396Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
697240a76396Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
697340a76396Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
697440a76396Smrg
697540a76396Smrg# Turn some warnings into errors, so we don't accidently get successful builds
697640a76396Smrg# when there are problems that should be fixed.
697740a76396Smrg
697840a76396Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
697940a76396Smrg
698040a76396Smrg
698140a76396Smrg
698240a76396Smrg
698340a76396Smrg
698440a76396Smrg
698540a76396Smrg
698640a76396Smrg
698740a76396Smrg
698840a76396Smrg
698940a76396Smrg
699040a76396Smrg
699140a76396Smrg
699240a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
699340a76396Smrg
699440a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
699540a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
699640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
699740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
699840a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
699940a76396Smrg  $as_echo_n "(cached) " >&6
700040a76396Smrgelse
700140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
700240a76396Smrg/* end confdefs.h.  */
700340a76396Smrgint i;
700440a76396Smrg_ACEOF
700540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
700640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
700740a76396Smrgelse
700840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
700940a76396Smrgfi
701040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
701140a76396Smrgfi
701240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
701340a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
701440a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
701540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
701640a76396Smrgfi
701740a76396Smrg
701840a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
701940a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
702040a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
702140a76396Smrg	fi
702240a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
702340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
702440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
702540a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
702640a76396Smrg  $as_echo_n "(cached) " >&6
702740a76396Smrgelse
702840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
702940a76396Smrg/* end confdefs.h.  */
703040a76396Smrgint i;
703140a76396Smrg_ACEOF
703240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
703340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
703440a76396Smrgelse
703540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
703640a76396Smrgfi
703740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
703840a76396Smrgfi
703940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
704040a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
704140a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
704240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
704340a76396Smrgfi
704440a76396Smrg
704540a76396Smrgfound="no"
704640a76396Smrg
704740a76396Smrg	if test $found = "no" ; then
704840a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
704940a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
705040a76396Smrg		fi
705140a76396Smrg
705240a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
705340a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
705440a76396Smrg		fi
705540a76396Smrg
705640a76396Smrg		CFLAGS="$CFLAGS -Werror=implicit"
705740a76396Smrg
705840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
705940a76396Smrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
706040a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
706140a76396Smrg		if eval \${$cacheid+:} false; then :
706240a76396Smrg  $as_echo_n "(cached) " >&6
706340a76396Smrgelse
706440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
706540a76396Smrg/* end confdefs.h.  */
706640a76396Smrgint i;
706740a76396Smrgint
706840a76396Smrgmain ()
706940a76396Smrg{
707040a76396Smrg
707140a76396Smrg  ;
707240a76396Smrg  return 0;
707340a76396Smrg}
707440a76396Smrg_ACEOF
707540a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
707640a76396Smrg  eval $cacheid=yes
707740a76396Smrgelse
707840a76396Smrg  eval $cacheid=no
707940a76396Smrgfi
708040a76396Smrgrm -f core conftest.err conftest.$ac_objext \
708140a76396Smrg    conftest$ac_exeext conftest.$ac_ext
708240a76396Smrgfi
708340a76396Smrg
708440a76396Smrg
708540a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
708640a76396Smrg
708740a76396Smrg		eval supported=\$$cacheid
708840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
708940a76396Smrg$as_echo "$supported" >&6; }
709040a76396Smrg		if test "$supported" = "yes" ; then
709140a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
709240a76396Smrg			found="yes"
709340a76396Smrg		fi
709440a76396Smrg	fi
709540a76396Smrg
709640a76396Smrg	if test $found = "no" ; then
709740a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
709840a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
709940a76396Smrg		fi
710040a76396Smrg
710140a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
710240a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
710340a76396Smrg		fi
710440a76396Smrg
710540a76396Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
710640a76396Smrg
710740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
710840a76396Smrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
710940a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
711040a76396Smrg		if eval \${$cacheid+:} false; then :
711140a76396Smrg  $as_echo_n "(cached) " >&6
711240a76396Smrgelse
711340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
711440a76396Smrg/* end confdefs.h.  */
711540a76396Smrgint i;
711640a76396Smrgint
711740a76396Smrgmain ()
711840a76396Smrg{
711940a76396Smrg
712040a76396Smrg  ;
712140a76396Smrg  return 0;
712240a76396Smrg}
712340a76396Smrg_ACEOF
712440a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
712540a76396Smrg  eval $cacheid=yes
712640a76396Smrgelse
712740a76396Smrg  eval $cacheid=no
712840a76396Smrgfi
712940a76396Smrgrm -f core conftest.err conftest.$ac_objext \
713040a76396Smrg    conftest$ac_exeext conftest.$ac_ext
713140a76396Smrgfi
713240a76396Smrg
713340a76396Smrg
713440a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
713540a76396Smrg
713640a76396Smrg		eval supported=\$$cacheid
713740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
713840a76396Smrg$as_echo "$supported" >&6; }
713940a76396Smrg		if test "$supported" = "yes" ; then
714040a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
714140a76396Smrg			found="yes"
714240a76396Smrg		fi
714340a76396Smrg	fi
714440a76396Smrg
714540a76396Smrg
714640a76396Smrg
714740a76396Smrg
714840a76396Smrg
714940a76396Smrg
715040a76396Smrg
715140a76396Smrg
715240a76396Smrg
715340a76396Smrg
715440a76396Smrg
715540a76396Smrg
715640a76396Smrg
715740a76396Smrg
715840a76396Smrg
715940a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
716040a76396Smrg
716140a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
716240a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
716340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
716440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
716540a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
716640a76396Smrg  $as_echo_n "(cached) " >&6
716740a76396Smrgelse
716840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
716940a76396Smrg/* end confdefs.h.  */
717040a76396Smrgint i;
717140a76396Smrg_ACEOF
717240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
717340a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
717440a76396Smrgelse
717540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
717640a76396Smrgfi
717740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
717840a76396Smrgfi
717940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
718040a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
718140a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
718240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
718340a76396Smrgfi
718440a76396Smrg
718540a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
718640a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
718740a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
718840a76396Smrg	fi
718940a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
719040a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
719140a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
719240a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
719340a76396Smrg  $as_echo_n "(cached) " >&6
719440a76396Smrgelse
719540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
719640a76396Smrg/* end confdefs.h.  */
719740a76396Smrgint i;
719840a76396Smrg_ACEOF
719940a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
720040a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
720140a76396Smrgelse
720240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
720340a76396Smrgfi
720440a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
720540a76396Smrgfi
720640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
720740a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
720840a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
720940a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
721040a76396Smrgfi
721140a76396Smrg
721240a76396Smrgfound="no"
721340a76396Smrg
721440a76396Smrg	if test $found = "no" ; then
721540a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
721640a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
721740a76396Smrg		fi
721840a76396Smrg
721940a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
722040a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
722140a76396Smrg		fi
722240a76396Smrg
722340a76396Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
722440a76396Smrg
722540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
722640a76396Smrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
722740a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
722840a76396Smrg		if eval \${$cacheid+:} false; then :
722940a76396Smrg  $as_echo_n "(cached) " >&6
723040a76396Smrgelse
723140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
723240a76396Smrg/* end confdefs.h.  */
723340a76396Smrgint i;
723440a76396Smrgint
723540a76396Smrgmain ()
723640a76396Smrg{
723740a76396Smrg
723840a76396Smrg  ;
723940a76396Smrg  return 0;
724040a76396Smrg}
724140a76396Smrg_ACEOF
724240a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
724340a76396Smrg  eval $cacheid=yes
724440a76396Smrgelse
724540a76396Smrg  eval $cacheid=no
724640a76396Smrgfi
724740a76396Smrgrm -f core conftest.err conftest.$ac_objext \
724840a76396Smrg    conftest$ac_exeext conftest.$ac_ext
724940a76396Smrgfi
725040a76396Smrg
725140a76396Smrg
725240a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
725340a76396Smrg
725440a76396Smrg		eval supported=\$$cacheid
725540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
725640a76396Smrg$as_echo "$supported" >&6; }
725740a76396Smrg		if test "$supported" = "yes" ; then
725840a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
725940a76396Smrg			found="yes"
726040a76396Smrg		fi
726140a76396Smrg	fi
726240a76396Smrg
726340a76396Smrg
726440a76396Smrg
726540a76396Smrg
726640a76396Smrg
726740a76396Smrg
726840a76396Smrg
726940a76396Smrg
727040a76396Smrg
727140a76396Smrg
727240a76396Smrg
727340a76396Smrg
727440a76396Smrg
727540a76396Smrg
727640a76396Smrg
727740a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
727840a76396Smrg
727940a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
728040a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
728140a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
728240a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
728340a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
728440a76396Smrg  $as_echo_n "(cached) " >&6
728540a76396Smrgelse
728640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
728740a76396Smrg/* end confdefs.h.  */
728840a76396Smrgint i;
728940a76396Smrg_ACEOF
729040a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
729140a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
729240a76396Smrgelse
729340a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
729440a76396Smrgfi
729540a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
729640a76396Smrgfi
729740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
729840a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
729940a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
730040a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
730140a76396Smrgfi
730240a76396Smrg
730340a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
730440a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
730540a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
730640a76396Smrg	fi
730740a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
730840a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
730940a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
731040a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
731140a76396Smrg  $as_echo_n "(cached) " >&6
731240a76396Smrgelse
731340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
731440a76396Smrg/* end confdefs.h.  */
731540a76396Smrgint i;
731640a76396Smrg_ACEOF
731740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
731840a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
731940a76396Smrgelse
732040a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
732140a76396Smrgfi
732240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
732340a76396Smrgfi
732440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
732540a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
732640a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
732740a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
732840a76396Smrgfi
732940a76396Smrg
733040a76396Smrgfound="no"
733140a76396Smrg
733240a76396Smrg	if test $found = "no" ; then
733340a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
733440a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
733540a76396Smrg		fi
733640a76396Smrg
733740a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
733840a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
733940a76396Smrg		fi
734040a76396Smrg
734140a76396Smrg		CFLAGS="$CFLAGS -Werror=init-self"
734240a76396Smrg
734340a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
734440a76396Smrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
734540a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
734640a76396Smrg		if eval \${$cacheid+:} false; then :
734740a76396Smrg  $as_echo_n "(cached) " >&6
734840a76396Smrgelse
734940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
735040a76396Smrg/* end confdefs.h.  */
735140a76396Smrgint i;
735240a76396Smrgint
735340a76396Smrgmain ()
735440a76396Smrg{
735540a76396Smrg
735640a76396Smrg  ;
735740a76396Smrg  return 0;
735840a76396Smrg}
735940a76396Smrg_ACEOF
736040a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
736140a76396Smrg  eval $cacheid=yes
736240a76396Smrgelse
736340a76396Smrg  eval $cacheid=no
736440a76396Smrgfi
736540a76396Smrgrm -f core conftest.err conftest.$ac_objext \
736640a76396Smrg    conftest$ac_exeext conftest.$ac_ext
736740a76396Smrgfi
736840a76396Smrg
736940a76396Smrg
737040a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
737140a76396Smrg
737240a76396Smrg		eval supported=\$$cacheid
737340a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
737440a76396Smrg$as_echo "$supported" >&6; }
737540a76396Smrg		if test "$supported" = "yes" ; then
737640a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
737740a76396Smrg			found="yes"
737840a76396Smrg		fi
737940a76396Smrg	fi
738040a76396Smrg
738140a76396Smrg
738240a76396Smrg
738340a76396Smrg
738440a76396Smrg
738540a76396Smrg
738640a76396Smrg
738740a76396Smrg
738840a76396Smrg
738940a76396Smrg
739040a76396Smrg
739140a76396Smrg
739240a76396Smrg
739340a76396Smrg
739440a76396Smrg
739540a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
739640a76396Smrg
739740a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
739840a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
739940a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
740040a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
740140a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
740240a76396Smrg  $as_echo_n "(cached) " >&6
740340a76396Smrgelse
740440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
740540a76396Smrg/* end confdefs.h.  */
740640a76396Smrgint i;
740740a76396Smrg_ACEOF
740840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
740940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
741040a76396Smrgelse
741140a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
741240a76396Smrgfi
741340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
741440a76396Smrgfi
741540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
741640a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
741740a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
741840a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
741940a76396Smrgfi
742040a76396Smrg
742140a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
742240a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
742340a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
742440a76396Smrg	fi
742540a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
742640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
742740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
742840a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
742940a76396Smrg  $as_echo_n "(cached) " >&6
743040a76396Smrgelse
743140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
743240a76396Smrg/* end confdefs.h.  */
743340a76396Smrgint i;
743440a76396Smrg_ACEOF
743540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
743640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
743740a76396Smrgelse
743840a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
743940a76396Smrgfi
744040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
744140a76396Smrgfi
744240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
744340a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
744440a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
744540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
744640a76396Smrgfi
744740a76396Smrg
744840a76396Smrgfound="no"
744940a76396Smrg
745040a76396Smrg	if test $found = "no" ; then
745140a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
745240a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
745340a76396Smrg		fi
745440a76396Smrg
745540a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
745640a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
745740a76396Smrg		fi
745840a76396Smrg
745940a76396Smrg		CFLAGS="$CFLAGS -Werror=main"
746040a76396Smrg
746140a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
746240a76396Smrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
746340a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
746440a76396Smrg		if eval \${$cacheid+:} false; then :
746540a76396Smrg  $as_echo_n "(cached) " >&6
746640a76396Smrgelse
746740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
746840a76396Smrg/* end confdefs.h.  */
746940a76396Smrgint i;
747040a76396Smrgint
747140a76396Smrgmain ()
747240a76396Smrg{
747340a76396Smrg
747440a76396Smrg  ;
747540a76396Smrg  return 0;
747640a76396Smrg}
747740a76396Smrg_ACEOF
747840a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
747940a76396Smrg  eval $cacheid=yes
748040a76396Smrgelse
748140a76396Smrg  eval $cacheid=no
748240a76396Smrgfi
748340a76396Smrgrm -f core conftest.err conftest.$ac_objext \
748440a76396Smrg    conftest$ac_exeext conftest.$ac_ext
748540a76396Smrgfi
748640a76396Smrg
748740a76396Smrg
748840a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
748940a76396Smrg
749040a76396Smrg		eval supported=\$$cacheid
749140a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
749240a76396Smrg$as_echo "$supported" >&6; }
749340a76396Smrg		if test "$supported" = "yes" ; then
749440a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
749540a76396Smrg			found="yes"
749640a76396Smrg		fi
749740a76396Smrg	fi
749840a76396Smrg
749940a76396Smrg
750040a76396Smrg
750140a76396Smrg
750240a76396Smrg
750340a76396Smrg
750440a76396Smrg
750540a76396Smrg
750640a76396Smrg
750740a76396Smrg
750840a76396Smrg
750940a76396Smrg
751040a76396Smrg
751140a76396Smrg
751240a76396Smrg
751340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
751440a76396Smrg
751540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
751640a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
751740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
751840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
751940a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
752040a76396Smrg  $as_echo_n "(cached) " >&6
752140a76396Smrgelse
752240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
752340a76396Smrg/* end confdefs.h.  */
752440a76396Smrgint i;
752540a76396Smrg_ACEOF
752640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
752740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
752840a76396Smrgelse
752940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
753040a76396Smrgfi
753140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
753240a76396Smrgfi
753340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
753440a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
753540a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
753640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
753740a76396Smrgfi
753840a76396Smrg
753940a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
754040a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
754140a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
754240a76396Smrg	fi
754340a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
754440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
754540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
754640a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
754740a76396Smrg  $as_echo_n "(cached) " >&6
754840a76396Smrgelse
754940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
755040a76396Smrg/* end confdefs.h.  */
755140a76396Smrgint i;
755240a76396Smrg_ACEOF
755340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
755440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
755540a76396Smrgelse
755640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
755740a76396Smrgfi
755840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
755940a76396Smrgfi
756040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
756140a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
756240a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
756340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
756440a76396Smrgfi
756540a76396Smrg
756640a76396Smrgfound="no"
756740a76396Smrg
756840a76396Smrg	if test $found = "no" ; then
756940a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
757040a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
757140a76396Smrg		fi
757240a76396Smrg
757340a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
757440a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
757540a76396Smrg		fi
757640a76396Smrg
757740a76396Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
757840a76396Smrg
757940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
758040a76396Smrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
758140a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
758240a76396Smrg		if eval \${$cacheid+:} false; then :
758340a76396Smrg  $as_echo_n "(cached) " >&6
758440a76396Smrgelse
758540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
758640a76396Smrg/* end confdefs.h.  */
758740a76396Smrgint i;
758840a76396Smrgint
758940a76396Smrgmain ()
759040a76396Smrg{
759140a76396Smrg
759240a76396Smrg  ;
759340a76396Smrg  return 0;
759440a76396Smrg}
759540a76396Smrg_ACEOF
759640a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
759740a76396Smrg  eval $cacheid=yes
759840a76396Smrgelse
759940a76396Smrg  eval $cacheid=no
760040a76396Smrgfi
760140a76396Smrgrm -f core conftest.err conftest.$ac_objext \
760240a76396Smrg    conftest$ac_exeext conftest.$ac_ext
760340a76396Smrgfi
760440a76396Smrg
760540a76396Smrg
760640a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
760740a76396Smrg
760840a76396Smrg		eval supported=\$$cacheid
760940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
761040a76396Smrg$as_echo "$supported" >&6; }
761140a76396Smrg		if test "$supported" = "yes" ; then
761240a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
761340a76396Smrg			found="yes"
761440a76396Smrg		fi
761540a76396Smrg	fi
761640a76396Smrg
761740a76396Smrg
761840a76396Smrg
761940a76396Smrg
762040a76396Smrg
762140a76396Smrg
762240a76396Smrg
762340a76396Smrg
762440a76396Smrg
762540a76396Smrg
762640a76396Smrg
762740a76396Smrg
762840a76396Smrg
762940a76396Smrg
763040a76396Smrg
763140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
763240a76396Smrg
763340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
763440a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
763540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
763640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
763740a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
763840a76396Smrg  $as_echo_n "(cached) " >&6
763940a76396Smrgelse
764040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
764140a76396Smrg/* end confdefs.h.  */
764240a76396Smrgint i;
764340a76396Smrg_ACEOF
764440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
764540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
764640a76396Smrgelse
764740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
764840a76396Smrgfi
764940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
765040a76396Smrgfi
765140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
765240a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
765340a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
765440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
765540a76396Smrgfi
765640a76396Smrg
765740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
765840a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
765940a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
766040a76396Smrg	fi
766140a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
766240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
766340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
766440a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
766540a76396Smrg  $as_echo_n "(cached) " >&6
766640a76396Smrgelse
766740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
766840a76396Smrg/* end confdefs.h.  */
766940a76396Smrgint i;
767040a76396Smrg_ACEOF
767140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
767240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
767340a76396Smrgelse
767440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
767540a76396Smrgfi
767640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
767740a76396Smrgfi
767840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
767940a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
768040a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
768140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
768240a76396Smrgfi
768340a76396Smrg
768440a76396Smrgfound="no"
768540a76396Smrg
768640a76396Smrg	if test $found = "no" ; then
768740a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
768840a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
768940a76396Smrg		fi
769040a76396Smrg
769140a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
769240a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
769340a76396Smrg		fi
769440a76396Smrg
769540a76396Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
769640a76396Smrg
769740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
769840a76396Smrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
769940a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
770040a76396Smrg		if eval \${$cacheid+:} false; then :
770140a76396Smrg  $as_echo_n "(cached) " >&6
770240a76396Smrgelse
770340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
770440a76396Smrg/* end confdefs.h.  */
770540a76396Smrgint i;
770640a76396Smrgint
770740a76396Smrgmain ()
770840a76396Smrg{
770940a76396Smrg
771040a76396Smrg  ;
771140a76396Smrg  return 0;
771240a76396Smrg}
771340a76396Smrg_ACEOF
771440a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
771540a76396Smrg  eval $cacheid=yes
771640a76396Smrgelse
771740a76396Smrg  eval $cacheid=no
771840a76396Smrgfi
771940a76396Smrgrm -f core conftest.err conftest.$ac_objext \
772040a76396Smrg    conftest$ac_exeext conftest.$ac_ext
772140a76396Smrgfi
772240a76396Smrg
772340a76396Smrg
772440a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
772540a76396Smrg
772640a76396Smrg		eval supported=\$$cacheid
772740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
772840a76396Smrg$as_echo "$supported" >&6; }
772940a76396Smrg		if test "$supported" = "yes" ; then
773040a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
773140a76396Smrg			found="yes"
773240a76396Smrg		fi
773340a76396Smrg	fi
773440a76396Smrg
773540a76396Smrg
773640a76396Smrg
773740a76396Smrg
773840a76396Smrg
773940a76396Smrg
774040a76396Smrg
774140a76396Smrg
774240a76396Smrg
774340a76396Smrg
774440a76396Smrg
774540a76396Smrg
774640a76396Smrg
774740a76396Smrg
774840a76396Smrg
774940a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
775040a76396Smrg
775140a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
775240a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
775340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
775440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
775540a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
775640a76396Smrg  $as_echo_n "(cached) " >&6
775740a76396Smrgelse
775840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
775940a76396Smrg/* end confdefs.h.  */
776040a76396Smrgint i;
776140a76396Smrg_ACEOF
776240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
776340a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
776440a76396Smrgelse
776540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
776640a76396Smrgfi
776740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
776840a76396Smrgfi
776940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
777040a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
777140a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
777240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
777340a76396Smrgfi
777440a76396Smrg
777540a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
777640a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
777740a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
777840a76396Smrg	fi
777940a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
778040a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
778140a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
778240a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
778340a76396Smrg  $as_echo_n "(cached) " >&6
778440a76396Smrgelse
778540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
778640a76396Smrg/* end confdefs.h.  */
778740a76396Smrgint i;
778840a76396Smrg_ACEOF
778940a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
779040a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
779140a76396Smrgelse
779240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
779340a76396Smrgfi
779440a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
779540a76396Smrgfi
779640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
779740a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
779840a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
779940a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
780040a76396Smrgfi
780140a76396Smrg
780240a76396Smrgfound="no"
780340a76396Smrg
780440a76396Smrg	if test $found = "no" ; then
780540a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
780640a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
780740a76396Smrg		fi
780840a76396Smrg
780940a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
781040a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
781140a76396Smrg		fi
781240a76396Smrg
781340a76396Smrg		CFLAGS="$CFLAGS -Werror=return-type"
781440a76396Smrg
781540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
781640a76396Smrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
781740a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
781840a76396Smrg		if eval \${$cacheid+:} false; then :
781940a76396Smrg  $as_echo_n "(cached) " >&6
782040a76396Smrgelse
782140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
782240a76396Smrg/* end confdefs.h.  */
782340a76396Smrgint i;
782440a76396Smrgint
782540a76396Smrgmain ()
782640a76396Smrg{
782740a76396Smrg
782840a76396Smrg  ;
782940a76396Smrg  return 0;
783040a76396Smrg}
783140a76396Smrg_ACEOF
783240a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
783340a76396Smrg  eval $cacheid=yes
783440a76396Smrgelse
783540a76396Smrg  eval $cacheid=no
783640a76396Smrgfi
783740a76396Smrgrm -f core conftest.err conftest.$ac_objext \
783840a76396Smrg    conftest$ac_exeext conftest.$ac_ext
783940a76396Smrgfi
784040a76396Smrg
784140a76396Smrg
784240a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
784340a76396Smrg
784440a76396Smrg		eval supported=\$$cacheid
784540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
784640a76396Smrg$as_echo "$supported" >&6; }
784740a76396Smrg		if test "$supported" = "yes" ; then
784840a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
784940a76396Smrg			found="yes"
785040a76396Smrg		fi
785140a76396Smrg	fi
785240a76396Smrg
785340a76396Smrg	if test $found = "no" ; then
785440a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
785540a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
785640a76396Smrg		fi
785740a76396Smrg
785840a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
785940a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
786040a76396Smrg		fi
786140a76396Smrg
786240a76396Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
786340a76396Smrg
786440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
786540a76396Smrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
786640a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
786740a76396Smrg		if eval \${$cacheid+:} false; then :
786840a76396Smrg  $as_echo_n "(cached) " >&6
786940a76396Smrgelse
787040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
787140a76396Smrg/* end confdefs.h.  */
787240a76396Smrgint i;
787340a76396Smrgint
787440a76396Smrgmain ()
787540a76396Smrg{
787640a76396Smrg
787740a76396Smrg  ;
787840a76396Smrg  return 0;
787940a76396Smrg}
788040a76396Smrg_ACEOF
788140a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
788240a76396Smrg  eval $cacheid=yes
788340a76396Smrgelse
788440a76396Smrg  eval $cacheid=no
788540a76396Smrgfi
788640a76396Smrgrm -f core conftest.err conftest.$ac_objext \
788740a76396Smrg    conftest$ac_exeext conftest.$ac_ext
788840a76396Smrgfi
788940a76396Smrg
789040a76396Smrg
789140a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
789240a76396Smrg
789340a76396Smrg		eval supported=\$$cacheid
789440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
789540a76396Smrg$as_echo "$supported" >&6; }
789640a76396Smrg		if test "$supported" = "yes" ; then
789740a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
789840a76396Smrg			found="yes"
789940a76396Smrg		fi
790040a76396Smrg	fi
790140a76396Smrg
790240a76396Smrg
790340a76396Smrg
790440a76396Smrg
790540a76396Smrg
790640a76396Smrg
790740a76396Smrg
790840a76396Smrg
790940a76396Smrg
791040a76396Smrg
791140a76396Smrg
791240a76396Smrg
791340a76396Smrg
791440a76396Smrg
791540a76396Smrg
791640a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
791740a76396Smrg
791840a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
791940a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
792040a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
792140a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
792240a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
792340a76396Smrg  $as_echo_n "(cached) " >&6
792440a76396Smrgelse
792540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
792640a76396Smrg/* end confdefs.h.  */
792740a76396Smrgint i;
792840a76396Smrg_ACEOF
792940a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
793040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
793140a76396Smrgelse
793240a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
793340a76396Smrgfi
793440a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
793540a76396Smrgfi
793640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
793740a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
793840a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
793940a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
794040a76396Smrgfi
794140a76396Smrg
794240a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
794340a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
794440a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
794540a76396Smrg	fi
794640a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
794740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
794840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
794940a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
795040a76396Smrg  $as_echo_n "(cached) " >&6
795140a76396Smrgelse
795240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
795340a76396Smrg/* end confdefs.h.  */
795440a76396Smrgint i;
795540a76396Smrg_ACEOF
795640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
795740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
795840a76396Smrgelse
795940a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
796040a76396Smrgfi
796140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
796240a76396Smrgfi
796340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
796440a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
796540a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
796640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
796740a76396Smrgfi
796840a76396Smrg
796940a76396Smrgfound="no"
797040a76396Smrg
797140a76396Smrg	if test $found = "no" ; then
797240a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
797340a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
797440a76396Smrg		fi
797540a76396Smrg
797640a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
797740a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
797840a76396Smrg		fi
797940a76396Smrg
798040a76396Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
798140a76396Smrg
798240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
798340a76396Smrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
798440a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
798540a76396Smrg		if eval \${$cacheid+:} false; then :
798640a76396Smrg  $as_echo_n "(cached) " >&6
798740a76396Smrgelse
798840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
798940a76396Smrg/* end confdefs.h.  */
799040a76396Smrgint i;
799140a76396Smrgint
799240a76396Smrgmain ()
799340a76396Smrg{
799440a76396Smrg
799540a76396Smrg  ;
799640a76396Smrg  return 0;
799740a76396Smrg}
799840a76396Smrg_ACEOF
799940a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
800040a76396Smrg  eval $cacheid=yes
800140a76396Smrgelse
800240a76396Smrg  eval $cacheid=no
800340a76396Smrgfi
800440a76396Smrgrm -f core conftest.err conftest.$ac_objext \
800540a76396Smrg    conftest$ac_exeext conftest.$ac_ext
800640a76396Smrgfi
800740a76396Smrg
800840a76396Smrg
800940a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
801040a76396Smrg
801140a76396Smrg		eval supported=\$$cacheid
801240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
801340a76396Smrg$as_echo "$supported" >&6; }
801440a76396Smrg		if test "$supported" = "yes" ; then
801540a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
801640a76396Smrg			found="yes"
801740a76396Smrg		fi
801840a76396Smrg	fi
801940a76396Smrg
802040a76396Smrg
802140a76396Smrg
802240a76396Smrg
802340a76396Smrg
802440a76396Smrg
802540a76396Smrg
802640a76396Smrg
802740a76396Smrg
802840a76396Smrg
802940a76396Smrg
803040a76396Smrg
803140a76396Smrg
803240a76396Smrg
803340a76396Smrg
803440a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
803540a76396Smrg
803640a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
803740a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
803840a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
803940a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
804040a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
804140a76396Smrg  $as_echo_n "(cached) " >&6
804240a76396Smrgelse
804340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
804440a76396Smrg/* end confdefs.h.  */
804540a76396Smrgint i;
804640a76396Smrg_ACEOF
804740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
804840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
804940a76396Smrgelse
805040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
805140a76396Smrgfi
805240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
805340a76396Smrgfi
805440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
805540a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
805640a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
805740a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
805840a76396Smrgfi
805940a76396Smrg
806040a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
806140a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
806240a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
806340a76396Smrg	fi
806440a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
806540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
806640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
806740a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
806840a76396Smrg  $as_echo_n "(cached) " >&6
806940a76396Smrgelse
807040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
807140a76396Smrg/* end confdefs.h.  */
807240a76396Smrgint i;
807340a76396Smrg_ACEOF
807440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
807540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
807640a76396Smrgelse
807740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
807840a76396Smrgfi
807940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
808040a76396Smrgfi
808140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
808240a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
808340a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
808440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
808540a76396Smrgfi
808640a76396Smrg
808740a76396Smrgfound="no"
808840a76396Smrg
808940a76396Smrg	if test $found = "no" ; then
809040a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
809140a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
809240a76396Smrg		fi
809340a76396Smrg
809440a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
809540a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
809640a76396Smrg		fi
809740a76396Smrg
809840a76396Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
809940a76396Smrg
810040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
810140a76396Smrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
810240a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
810340a76396Smrg		if eval \${$cacheid+:} false; then :
810440a76396Smrg  $as_echo_n "(cached) " >&6
810540a76396Smrgelse
810640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
810740a76396Smrg/* end confdefs.h.  */
810840a76396Smrgint i;
810940a76396Smrgint
811040a76396Smrgmain ()
811140a76396Smrg{
811240a76396Smrg
811340a76396Smrg  ;
811440a76396Smrg  return 0;
811540a76396Smrg}
811640a76396Smrg_ACEOF
811740a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
811840a76396Smrg  eval $cacheid=yes
811940a76396Smrgelse
812040a76396Smrg  eval $cacheid=no
812140a76396Smrgfi
812240a76396Smrgrm -f core conftest.err conftest.$ac_objext \
812340a76396Smrg    conftest$ac_exeext conftest.$ac_ext
812440a76396Smrgfi
812540a76396Smrg
812640a76396Smrg
812740a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
812840a76396Smrg
812940a76396Smrg		eval supported=\$$cacheid
813040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
813140a76396Smrg$as_echo "$supported" >&6; }
813240a76396Smrg		if test "$supported" = "yes" ; then
813340a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
813440a76396Smrg			found="yes"
813540a76396Smrg		fi
813640a76396Smrg	fi
813740a76396Smrg
813840a76396Smrg
813940a76396Smrg
814040a76396Smrg
814140a76396Smrg
814240a76396Smrg
814340a76396Smrg
814440a76396Smrg
814540a76396Smrg
814640a76396Smrg
814740a76396Smrg
814840a76396Smrg
814940a76396Smrg
815040a76396Smrg
815140a76396Smrg
815240a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
815340a76396Smrg
815440a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
815540a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
815640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
815740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
815840a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
815940a76396Smrg  $as_echo_n "(cached) " >&6
816040a76396Smrgelse
816140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
816240a76396Smrg/* end confdefs.h.  */
816340a76396Smrgint i;
816440a76396Smrg_ACEOF
816540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
816640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
816740a76396Smrgelse
816840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
816940a76396Smrgfi
817040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
817140a76396Smrgfi
817240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
817340a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
817440a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
817540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
817640a76396Smrgfi
817740a76396Smrg
817840a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
817940a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
818040a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
818140a76396Smrg	fi
818240a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
818340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
818440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
818540a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
818640a76396Smrg  $as_echo_n "(cached) " >&6
818740a76396Smrgelse
818840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
818940a76396Smrg/* end confdefs.h.  */
819040a76396Smrgint i;
819140a76396Smrg_ACEOF
819240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
819340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
819440a76396Smrgelse
819540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
819640a76396Smrgfi
819740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
819840a76396Smrgfi
819940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
820040a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
820140a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
820240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
820340a76396Smrgfi
820440a76396Smrg
820540a76396Smrgfound="no"
820640a76396Smrg
820740a76396Smrg	if test $found = "no" ; then
820840a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
820940a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
821040a76396Smrg		fi
821140a76396Smrg
821240a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
821340a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
821440a76396Smrg		fi
821540a76396Smrg
821640a76396Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
821740a76396Smrg
821840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
821940a76396Smrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
822040a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
822140a76396Smrg		if eval \${$cacheid+:} false; then :
822240a76396Smrg  $as_echo_n "(cached) " >&6
822340a76396Smrgelse
822440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
822540a76396Smrg/* end confdefs.h.  */
822640a76396Smrgint i;
822740a76396Smrgint
822840a76396Smrgmain ()
822940a76396Smrg{
823040a76396Smrg
823140a76396Smrg  ;
823240a76396Smrg  return 0;
823340a76396Smrg}
823440a76396Smrg_ACEOF
823540a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
823640a76396Smrg  eval $cacheid=yes
823740a76396Smrgelse
823840a76396Smrg  eval $cacheid=no
823940a76396Smrgfi
824040a76396Smrgrm -f core conftest.err conftest.$ac_objext \
824140a76396Smrg    conftest$ac_exeext conftest.$ac_ext
824240a76396Smrgfi
824340a76396Smrg
824440a76396Smrg
824540a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
824640a76396Smrg
824740a76396Smrg		eval supported=\$$cacheid
824840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
824940a76396Smrg$as_echo "$supported" >&6; }
825040a76396Smrg		if test "$supported" = "yes" ; then
825140a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
825240a76396Smrg			found="yes"
825340a76396Smrg		fi
825440a76396Smrg	fi
825540a76396Smrg
825640a76396Smrg
825740a76396Smrg
825840a76396Smrg
825940a76396Smrg
826040a76396Smrg
826140a76396Smrg
826240a76396Smrg
826340a76396Smrg
826440a76396Smrg
826540a76396Smrg
826640a76396Smrg
826740a76396Smrg
826840a76396Smrg
826940a76396Smrg
827040a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
827140a76396Smrg
827240a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
827340a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
827440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
827540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
827640a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
827740a76396Smrg  $as_echo_n "(cached) " >&6
827840a76396Smrgelse
827940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
828040a76396Smrg/* end confdefs.h.  */
828140a76396Smrgint i;
828240a76396Smrg_ACEOF
828340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
828440a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
828540a76396Smrgelse
828640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
828740a76396Smrgfi
828840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
828940a76396Smrgfi
829040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
829140a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
829240a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
829340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
829440a76396Smrgfi
829540a76396Smrg
829640a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
829740a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
829840a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
829940a76396Smrg	fi
830040a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
830140a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
830240a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
830340a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
830440a76396Smrg  $as_echo_n "(cached) " >&6
830540a76396Smrgelse
830640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
830740a76396Smrg/* end confdefs.h.  */
830840a76396Smrgint i;
830940a76396Smrg_ACEOF
831040a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
831140a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
831240a76396Smrgelse
831340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
831440a76396Smrgfi
831540a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
831640a76396Smrgfi
831740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
831840a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
831940a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
832040a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
832140a76396Smrgfi
832240a76396Smrg
832340a76396Smrgfound="no"
832440a76396Smrg
832540a76396Smrg	if test $found = "no" ; then
832640a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
832740a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
832840a76396Smrg		fi
832940a76396Smrg
833040a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
833140a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
833240a76396Smrg		fi
833340a76396Smrg
833440a76396Smrg		CFLAGS="$CFLAGS -Werror=address"
833540a76396Smrg
833640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
833740a76396Smrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
833840a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
833940a76396Smrg		if eval \${$cacheid+:} false; then :
834040a76396Smrg  $as_echo_n "(cached) " >&6
834140a76396Smrgelse
834240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
834340a76396Smrg/* end confdefs.h.  */
834440a76396Smrgint i;
834540a76396Smrgint
834640a76396Smrgmain ()
834740a76396Smrg{
834840a76396Smrg
834940a76396Smrg  ;
835040a76396Smrg  return 0;
835140a76396Smrg}
835240a76396Smrg_ACEOF
835340a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
835440a76396Smrg  eval $cacheid=yes
835540a76396Smrgelse
835640a76396Smrg  eval $cacheid=no
835740a76396Smrgfi
835840a76396Smrgrm -f core conftest.err conftest.$ac_objext \
835940a76396Smrg    conftest$ac_exeext conftest.$ac_ext
836040a76396Smrgfi
836140a76396Smrg
836240a76396Smrg
836340a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
836440a76396Smrg
836540a76396Smrg		eval supported=\$$cacheid
836640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
836740a76396Smrg$as_echo "$supported" >&6; }
836840a76396Smrg		if test "$supported" = "yes" ; then
836940a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
837040a76396Smrg			found="yes"
837140a76396Smrg		fi
837240a76396Smrg	fi
837340a76396Smrg
837440a76396Smrg
837540a76396Smrg
837640a76396Smrg
837740a76396Smrg
837840a76396Smrg
837940a76396Smrg
838040a76396Smrg
838140a76396Smrg
838240a76396Smrg
838340a76396Smrg
838440a76396Smrg
838540a76396Smrg
838640a76396Smrg
838740a76396Smrg
838840a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
838940a76396Smrg
839040a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
839140a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
839240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
839340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
839440a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
839540a76396Smrg  $as_echo_n "(cached) " >&6
839640a76396Smrgelse
839740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
839840a76396Smrg/* end confdefs.h.  */
839940a76396Smrgint i;
840040a76396Smrg_ACEOF
840140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
840240a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
840340a76396Smrgelse
840440a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
840540a76396Smrgfi
840640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
840740a76396Smrgfi
840840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
840940a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
841040a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
841140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
841240a76396Smrgfi
841340a76396Smrg
841440a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
841540a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
841640a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
841740a76396Smrg	fi
841840a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
841940a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
842040a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
842140a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
842240a76396Smrg  $as_echo_n "(cached) " >&6
842340a76396Smrgelse
842440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
842540a76396Smrg/* end confdefs.h.  */
842640a76396Smrgint i;
842740a76396Smrg_ACEOF
842840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
842940a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
843040a76396Smrgelse
843140a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
843240a76396Smrgfi
843340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
843440a76396Smrgfi
843540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
843640a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
843740a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
843840a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
843940a76396Smrgfi
844040a76396Smrg
844140a76396Smrgfound="no"
844240a76396Smrg
844340a76396Smrg	if test $found = "no" ; then
844440a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
844540a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
844640a76396Smrg		fi
844740a76396Smrg
844840a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
844940a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
845040a76396Smrg		fi
845140a76396Smrg
845240a76396Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
845340a76396Smrg
845440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
845540a76396Smrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
845640a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
845740a76396Smrg		if eval \${$cacheid+:} false; then :
845840a76396Smrg  $as_echo_n "(cached) " >&6
845940a76396Smrgelse
846040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
846140a76396Smrg/* end confdefs.h.  */
846240a76396Smrgint i;
846340a76396Smrgint
846440a76396Smrgmain ()
846540a76396Smrg{
846640a76396Smrg
846740a76396Smrg  ;
846840a76396Smrg  return 0;
846940a76396Smrg}
847040a76396Smrg_ACEOF
847140a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
847240a76396Smrg  eval $cacheid=yes
847340a76396Smrgelse
847440a76396Smrg  eval $cacheid=no
847540a76396Smrgfi
847640a76396Smrgrm -f core conftest.err conftest.$ac_objext \
847740a76396Smrg    conftest$ac_exeext conftest.$ac_ext
847840a76396Smrgfi
847940a76396Smrg
848040a76396Smrg
848140a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
848240a76396Smrg
848340a76396Smrg		eval supported=\$$cacheid
848440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
848540a76396Smrg$as_echo "$supported" >&6; }
848640a76396Smrg		if test "$supported" = "yes" ; then
848740a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
848840a76396Smrg			found="yes"
848940a76396Smrg		fi
849040a76396Smrg	fi
849140a76396Smrg
849240a76396Smrg	if test $found = "no" ; then
849340a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
849440a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
849540a76396Smrg		fi
849640a76396Smrg
849740a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
849840a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
849940a76396Smrg		fi
850040a76396Smrg
850140a76396Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
850240a76396Smrg
850340a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
850440a76396Smrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
850540a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
850640a76396Smrg		if eval \${$cacheid+:} false; then :
850740a76396Smrg  $as_echo_n "(cached) " >&6
850840a76396Smrgelse
850940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
851040a76396Smrg/* end confdefs.h.  */
851140a76396Smrgint i;
851240a76396Smrgint
851340a76396Smrgmain ()
851440a76396Smrg{
851540a76396Smrg
851640a76396Smrg  ;
851740a76396Smrg  return 0;
851840a76396Smrg}
851940a76396Smrg_ACEOF
852040a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
852140a76396Smrg  eval $cacheid=yes
852240a76396Smrgelse
852340a76396Smrg  eval $cacheid=no
852440a76396Smrgfi
852540a76396Smrgrm -f core conftest.err conftest.$ac_objext \
852640a76396Smrg    conftest$ac_exeext conftest.$ac_ext
852740a76396Smrgfi
852840a76396Smrg
852940a76396Smrg
853040a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
853140a76396Smrg
853240a76396Smrg		eval supported=\$$cacheid
853340a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
853440a76396Smrg$as_echo "$supported" >&6; }
853540a76396Smrg		if test "$supported" = "yes" ; then
853640a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
853740a76396Smrg			found="yes"
853840a76396Smrg		fi
853940a76396Smrg	fi
854040a76396Smrg
854140a76396Smrg
854240a76396Smrg
854340a76396Smrg
854440a76396Smrg
854540a76396Smrg
854640a76396Smrg
854740a76396Smrg
854840a76396Smrg
854940a76396Smrg
855040a76396Smrg
855140a76396Smrg
855240a76396Smrg
855340a76396Smrg
855440a76396Smrg
855540a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
855640a76396Smrg
855740a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
855840a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
855940a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
856040a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
856140a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
856240a76396Smrg  $as_echo_n "(cached) " >&6
856340a76396Smrgelse
856440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
856540a76396Smrg/* end confdefs.h.  */
856640a76396Smrgint i;
856740a76396Smrg_ACEOF
856840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
856940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
857040a76396Smrgelse
857140a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
857240a76396Smrgfi
857340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
857440a76396Smrgfi
857540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
857640a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
857740a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
857840a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
857940a76396Smrgfi
858040a76396Smrg
858140a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
858240a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
858340a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
858440a76396Smrg	fi
858540a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
858640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
858740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
858840a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
858940a76396Smrg  $as_echo_n "(cached) " >&6
859040a76396Smrgelse
859140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
859240a76396Smrg/* end confdefs.h.  */
859340a76396Smrgint i;
859440a76396Smrg_ACEOF
859540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
859640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
859740a76396Smrgelse
859840a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
859940a76396Smrgfi
860040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
860140a76396Smrgfi
860240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
860340a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
860440a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
860540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
860640a76396Smrgfi
860740a76396Smrg
860840a76396Smrgfound="no"
860940a76396Smrg
861040a76396Smrg	if test $found = "no" ; then
861140a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
861240a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
861340a76396Smrg		fi
861440a76396Smrg
861540a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
861640a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
861740a76396Smrg		fi
861840a76396Smrg
861940a76396Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
862040a76396Smrg
862140a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
862240a76396Smrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
862340a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
862440a76396Smrg		if eval \${$cacheid+:} false; then :
862540a76396Smrg  $as_echo_n "(cached) " >&6
862640a76396Smrgelse
862740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
862840a76396Smrg/* end confdefs.h.  */
862940a76396Smrgint i;
863040a76396Smrgint
863140a76396Smrgmain ()
863240a76396Smrg{
863340a76396Smrg
863440a76396Smrg  ;
863540a76396Smrg  return 0;
863640a76396Smrg}
863740a76396Smrg_ACEOF
863840a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
863940a76396Smrg  eval $cacheid=yes
864040a76396Smrgelse
864140a76396Smrg  eval $cacheid=no
864240a76396Smrgfi
864340a76396Smrgrm -f core conftest.err conftest.$ac_objext \
864440a76396Smrg    conftest$ac_exeext conftest.$ac_ext
864540a76396Smrgfi
864640a76396Smrg
864740a76396Smrg
864840a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
864940a76396Smrg
865040a76396Smrg		eval supported=\$$cacheid
865140a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
865240a76396Smrg$as_echo "$supported" >&6; }
865340a76396Smrg		if test "$supported" = "yes" ; then
865440a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
865540a76396Smrg			found="yes"
865640a76396Smrg		fi
865740a76396Smrg	fi
865840a76396Smrg
865940a76396Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
866040a76396Smrgelse
866140a76396Smrg{ $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
866240a76396Smrg$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;}
866340a76396Smrg
866440a76396Smrg
866540a76396Smrg
866640a76396Smrg
866740a76396Smrg
866840a76396Smrg
866940a76396Smrg
867040a76396Smrg
867140a76396Smrg
867240a76396Smrg
867340a76396Smrg
867440a76396Smrg
867540a76396Smrg
867640a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
867740a76396Smrg
867840a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
867940a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
868040a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
868140a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
868240a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
868340a76396Smrg  $as_echo_n "(cached) " >&6
868440a76396Smrgelse
868540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
868640a76396Smrg/* end confdefs.h.  */
868740a76396Smrgint i;
868840a76396Smrg_ACEOF
868940a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
869040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
869140a76396Smrgelse
869240a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
869340a76396Smrgfi
869440a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
869540a76396Smrgfi
869640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
869740a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
869840a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
869940a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
870040a76396Smrgfi
870140a76396Smrg
870240a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
870340a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
870440a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
870540a76396Smrg	fi
870640a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
870740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
870840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
870940a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
871040a76396Smrg  $as_echo_n "(cached) " >&6
871140a76396Smrgelse
871240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
871340a76396Smrg/* end confdefs.h.  */
871440a76396Smrgint i;
871540a76396Smrg_ACEOF
871640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
871740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
871840a76396Smrgelse
871940a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
872040a76396Smrgfi
872140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
872240a76396Smrgfi
872340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
872440a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
872540a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
872640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
872740a76396Smrgfi
872840a76396Smrg
872940a76396Smrgfound="no"
873040a76396Smrg
873140a76396Smrg	if test $found = "no" ; then
873240a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
873340a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
873440a76396Smrg		fi
873540a76396Smrg
873640a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
873740a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
873840a76396Smrg		fi
873940a76396Smrg
874040a76396Smrg		CFLAGS="$CFLAGS -Wimplicit"
874140a76396Smrg
874240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
874340a76396Smrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
874440a76396Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
874540a76396Smrg		if eval \${$cacheid+:} false; then :
874640a76396Smrg  $as_echo_n "(cached) " >&6
874740a76396Smrgelse
874840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
874940a76396Smrg/* end confdefs.h.  */
875040a76396Smrgint i;
875140a76396Smrgint
875240a76396Smrgmain ()
875340a76396Smrg{
875440a76396Smrg
875540a76396Smrg  ;
875640a76396Smrg  return 0;
875740a76396Smrg}
875840a76396Smrg_ACEOF
875940a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
876040a76396Smrg  eval $cacheid=yes
876140a76396Smrgelse
876240a76396Smrg  eval $cacheid=no
876340a76396Smrgfi
876440a76396Smrgrm -f core conftest.err conftest.$ac_objext \
876540a76396Smrg    conftest$ac_exeext conftest.$ac_ext
876640a76396Smrgfi
876740a76396Smrg
876840a76396Smrg
876940a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
877040a76396Smrg
877140a76396Smrg		eval supported=\$$cacheid
877240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
877340a76396Smrg$as_echo "$supported" >&6; }
877440a76396Smrg		if test "$supported" = "yes" ; then
877540a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
877640a76396Smrg			found="yes"
877740a76396Smrg		fi
877840a76396Smrg	fi
877940a76396Smrg
878040a76396Smrg
878140a76396Smrg
878240a76396Smrg
878340a76396Smrg
878440a76396Smrg
878540a76396Smrg
878640a76396Smrg
878740a76396Smrg
878840a76396Smrg
878940a76396Smrg
879040a76396Smrg
879140a76396Smrg
879240a76396Smrg
879340a76396Smrg
879440a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
879540a76396Smrg
879640a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
879740a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
879840a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
879940a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
880040a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
880140a76396Smrg  $as_echo_n "(cached) " >&6
880240a76396Smrgelse
880340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
880440a76396Smrg/* end confdefs.h.  */
880540a76396Smrgint i;
880640a76396Smrg_ACEOF
880740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
880840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
880940a76396Smrgelse
881040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
881140a76396Smrgfi
881240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
881340a76396Smrgfi
881440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
881540a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
881640a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
881740a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
881840a76396Smrgfi
881940a76396Smrg
882040a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
882140a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
882240a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
882340a76396Smrg	fi
882440a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
882540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
882640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
882740a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
882840a76396Smrg  $as_echo_n "(cached) " >&6
882940a76396Smrgelse
883040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
883140a76396Smrg/* end confdefs.h.  */
883240a76396Smrgint i;
883340a76396Smrg_ACEOF
883440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
883540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
883640a76396Smrgelse
883740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
883840a76396Smrgfi
883940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
884040a76396Smrgfi
884140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
884240a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
884340a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
884440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
884540a76396Smrgfi
884640a76396Smrg
884740a76396Smrgfound="no"
884840a76396Smrg
884940a76396Smrg	if test $found = "no" ; then
885040a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
885140a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
885240a76396Smrg		fi
885340a76396Smrg
885440a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
885540a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
885640a76396Smrg		fi
885740a76396Smrg
885840a76396Smrg		CFLAGS="$CFLAGS -Wnonnull"
885940a76396Smrg
886040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
886140a76396Smrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
886240a76396Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
886340a76396Smrg		if eval \${$cacheid+:} false; then :
886440a76396Smrg  $as_echo_n "(cached) " >&6
886540a76396Smrgelse
886640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
886740a76396Smrg/* end confdefs.h.  */
886840a76396Smrgint i;
886940a76396Smrgint
887040a76396Smrgmain ()
887140a76396Smrg{
887240a76396Smrg
887340a76396Smrg  ;
887440a76396Smrg  return 0;
887540a76396Smrg}
887640a76396Smrg_ACEOF
887740a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
887840a76396Smrg  eval $cacheid=yes
887940a76396Smrgelse
888040a76396Smrg  eval $cacheid=no
888140a76396Smrgfi
888240a76396Smrgrm -f core conftest.err conftest.$ac_objext \
888340a76396Smrg    conftest$ac_exeext conftest.$ac_ext
888440a76396Smrgfi
888540a76396Smrg
888640a76396Smrg
888740a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
888840a76396Smrg
888940a76396Smrg		eval supported=\$$cacheid
889040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
889140a76396Smrg$as_echo "$supported" >&6; }
889240a76396Smrg		if test "$supported" = "yes" ; then
889340a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
889440a76396Smrg			found="yes"
889540a76396Smrg		fi
889640a76396Smrg	fi
889740a76396Smrg
889840a76396Smrg
889940a76396Smrg
890040a76396Smrg
890140a76396Smrg
890240a76396Smrg
890340a76396Smrg
890440a76396Smrg
890540a76396Smrg
890640a76396Smrg
890740a76396Smrg
890840a76396Smrg
890940a76396Smrg
891040a76396Smrg
891140a76396Smrg
891240a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
891340a76396Smrg
891440a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
891540a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
891640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
891740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
891840a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
891940a76396Smrg  $as_echo_n "(cached) " >&6
892040a76396Smrgelse
892140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
892240a76396Smrg/* end confdefs.h.  */
892340a76396Smrgint i;
892440a76396Smrg_ACEOF
892540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
892640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
892740a76396Smrgelse
892840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
892940a76396Smrgfi
893040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
893140a76396Smrgfi
893240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
893340a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
893440a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
893540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
893640a76396Smrgfi
893740a76396Smrg
893840a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
893940a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
894040a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
894140a76396Smrg	fi
894240a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
894340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
894440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
894540a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
894640a76396Smrg  $as_echo_n "(cached) " >&6
894740a76396Smrgelse
894840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
894940a76396Smrg/* end confdefs.h.  */
895040a76396Smrgint i;
895140a76396Smrg_ACEOF
895240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
895340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
895440a76396Smrgelse
895540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
895640a76396Smrgfi
895740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
895840a76396Smrgfi
895940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
896040a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
896140a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
896240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
896340a76396Smrgfi
896440a76396Smrg
896540a76396Smrgfound="no"
896640a76396Smrg
896740a76396Smrg	if test $found = "no" ; then
896840a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
896940a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
897040a76396Smrg		fi
897140a76396Smrg
897240a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
897340a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
897440a76396Smrg		fi
897540a76396Smrg
897640a76396Smrg		CFLAGS="$CFLAGS -Winit-self"
897740a76396Smrg
897840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
897940a76396Smrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
898040a76396Smrg		cacheid=xorg_cv_cc_flag__Winit_self
898140a76396Smrg		if eval \${$cacheid+:} false; then :
898240a76396Smrg  $as_echo_n "(cached) " >&6
898340a76396Smrgelse
898440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
898540a76396Smrg/* end confdefs.h.  */
898640a76396Smrgint i;
898740a76396Smrgint
898840a76396Smrgmain ()
898940a76396Smrg{
899040a76396Smrg
899140a76396Smrg  ;
899240a76396Smrg  return 0;
899340a76396Smrg}
899440a76396Smrg_ACEOF
899540a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
899640a76396Smrg  eval $cacheid=yes
899740a76396Smrgelse
899840a76396Smrg  eval $cacheid=no
899940a76396Smrgfi
900040a76396Smrgrm -f core conftest.err conftest.$ac_objext \
900140a76396Smrg    conftest$ac_exeext conftest.$ac_ext
900240a76396Smrgfi
900340a76396Smrg
900440a76396Smrg
900540a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
900640a76396Smrg
900740a76396Smrg		eval supported=\$$cacheid
900840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
900940a76396Smrg$as_echo "$supported" >&6; }
901040a76396Smrg		if test "$supported" = "yes" ; then
901140a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
901240a76396Smrg			found="yes"
901340a76396Smrg		fi
901440a76396Smrg	fi
901540a76396Smrg
901640a76396Smrg
901740a76396Smrg
901840a76396Smrg
901940a76396Smrg
902040a76396Smrg
902140a76396Smrg
902240a76396Smrg
902340a76396Smrg
902440a76396Smrg
902540a76396Smrg
902640a76396Smrg
902740a76396Smrg
902840a76396Smrg
902940a76396Smrg
903040a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
903140a76396Smrg
903240a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
903340a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
903440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
903540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
903640a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
903740a76396Smrg  $as_echo_n "(cached) " >&6
903840a76396Smrgelse
903940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
904040a76396Smrg/* end confdefs.h.  */
904140a76396Smrgint i;
904240a76396Smrg_ACEOF
904340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
904440a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
904540a76396Smrgelse
904640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
904740a76396Smrgfi
904840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
904940a76396Smrgfi
905040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
905140a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
905240a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
905340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
905440a76396Smrgfi
905540a76396Smrg
905640a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
905740a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
905840a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
905940a76396Smrg	fi
906040a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
906140a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
906240a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
906340a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
906440a76396Smrg  $as_echo_n "(cached) " >&6
906540a76396Smrgelse
906640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
906740a76396Smrg/* end confdefs.h.  */
906840a76396Smrgint i;
906940a76396Smrg_ACEOF
907040a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
907140a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
907240a76396Smrgelse
907340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
907440a76396Smrgfi
907540a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
907640a76396Smrgfi
907740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
907840a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
907940a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
908040a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
908140a76396Smrgfi
908240a76396Smrg
908340a76396Smrgfound="no"
908440a76396Smrg
908540a76396Smrg	if test $found = "no" ; then
908640a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
908740a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
908840a76396Smrg		fi
908940a76396Smrg
909040a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
909140a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
909240a76396Smrg		fi
909340a76396Smrg
909440a76396Smrg		CFLAGS="$CFLAGS -Wmain"
909540a76396Smrg
909640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
909740a76396Smrg$as_echo_n "checking if $CC supports -Wmain... " >&6; }
909840a76396Smrg		cacheid=xorg_cv_cc_flag__Wmain
909940a76396Smrg		if eval \${$cacheid+:} false; then :
910040a76396Smrg  $as_echo_n "(cached) " >&6
910140a76396Smrgelse
910240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
910340a76396Smrg/* end confdefs.h.  */
910440a76396Smrgint i;
910540a76396Smrgint
910640a76396Smrgmain ()
910740a76396Smrg{
910840a76396Smrg
910940a76396Smrg  ;
911040a76396Smrg  return 0;
911140a76396Smrg}
911240a76396Smrg_ACEOF
911340a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
911440a76396Smrg  eval $cacheid=yes
911540a76396Smrgelse
911640a76396Smrg  eval $cacheid=no
911740a76396Smrgfi
911840a76396Smrgrm -f core conftest.err conftest.$ac_objext \
911940a76396Smrg    conftest$ac_exeext conftest.$ac_ext
912040a76396Smrgfi
912140a76396Smrg
912240a76396Smrg
912340a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
912440a76396Smrg
912540a76396Smrg		eval supported=\$$cacheid
912640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
912740a76396Smrg$as_echo "$supported" >&6; }
912840a76396Smrg		if test "$supported" = "yes" ; then
912940a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
913040a76396Smrg			found="yes"
913140a76396Smrg		fi
913240a76396Smrg	fi
913340a76396Smrg
913440a76396Smrg
913540a76396Smrg
913640a76396Smrg
913740a76396Smrg
913840a76396Smrg
913940a76396Smrg
914040a76396Smrg
914140a76396Smrg
914240a76396Smrg
914340a76396Smrg
914440a76396Smrg
914540a76396Smrg
914640a76396Smrg
914740a76396Smrg
914840a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
914940a76396Smrg
915040a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
915140a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
915240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
915340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
915440a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
915540a76396Smrg  $as_echo_n "(cached) " >&6
915640a76396Smrgelse
915740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
915840a76396Smrg/* end confdefs.h.  */
915940a76396Smrgint i;
916040a76396Smrg_ACEOF
916140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
916240a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
916340a76396Smrgelse
916440a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
916540a76396Smrgfi
916640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
916740a76396Smrgfi
916840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
916940a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
917040a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
917140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
917240a76396Smrgfi
917340a76396Smrg
917440a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
917540a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
917640a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
917740a76396Smrg	fi
917840a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
917940a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
918040a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
918140a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
918240a76396Smrg  $as_echo_n "(cached) " >&6
918340a76396Smrgelse
918440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
918540a76396Smrg/* end confdefs.h.  */
918640a76396Smrgint i;
918740a76396Smrg_ACEOF
918840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
918940a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
919040a76396Smrgelse
919140a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
919240a76396Smrgfi
919340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
919440a76396Smrgfi
919540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
919640a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
919740a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
919840a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
919940a76396Smrgfi
920040a76396Smrg
920140a76396Smrgfound="no"
920240a76396Smrg
920340a76396Smrg	if test $found = "no" ; then
920440a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
920540a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
920640a76396Smrg		fi
920740a76396Smrg
920840a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
920940a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
921040a76396Smrg		fi
921140a76396Smrg
921240a76396Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
921340a76396Smrg
921440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
921540a76396Smrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
921640a76396Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
921740a76396Smrg		if eval \${$cacheid+:} false; then :
921840a76396Smrg  $as_echo_n "(cached) " >&6
921940a76396Smrgelse
922040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
922140a76396Smrg/* end confdefs.h.  */
922240a76396Smrgint i;
922340a76396Smrgint
922440a76396Smrgmain ()
922540a76396Smrg{
922640a76396Smrg
922740a76396Smrg  ;
922840a76396Smrg  return 0;
922940a76396Smrg}
923040a76396Smrg_ACEOF
923140a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
923240a76396Smrg  eval $cacheid=yes
923340a76396Smrgelse
923440a76396Smrg  eval $cacheid=no
923540a76396Smrgfi
923640a76396Smrgrm -f core conftest.err conftest.$ac_objext \
923740a76396Smrg    conftest$ac_exeext conftest.$ac_ext
923840a76396Smrgfi
923940a76396Smrg
924040a76396Smrg
924140a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
924240a76396Smrg
924340a76396Smrg		eval supported=\$$cacheid
924440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
924540a76396Smrg$as_echo "$supported" >&6; }
924640a76396Smrg		if test "$supported" = "yes" ; then
924740a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
924840a76396Smrg			found="yes"
924940a76396Smrg		fi
925040a76396Smrg	fi
925140a76396Smrg
925240a76396Smrg
925340a76396Smrg
925440a76396Smrg
925540a76396Smrg
925640a76396Smrg
925740a76396Smrg
925840a76396Smrg
925940a76396Smrg
926040a76396Smrg
926140a76396Smrg
926240a76396Smrg
926340a76396Smrg
926440a76396Smrg
926540a76396Smrg
926640a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
926740a76396Smrg
926840a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
926940a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
927040a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
927140a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
927240a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
927340a76396Smrg  $as_echo_n "(cached) " >&6
927440a76396Smrgelse
927540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
927640a76396Smrg/* end confdefs.h.  */
927740a76396Smrgint i;
927840a76396Smrg_ACEOF
927940a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
928040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
928140a76396Smrgelse
928240a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
928340a76396Smrgfi
928440a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
928540a76396Smrgfi
928640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
928740a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
928840a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
928940a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
929040a76396Smrgfi
929140a76396Smrg
929240a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
929340a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
929440a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
929540a76396Smrg	fi
929640a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
929740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
929840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
929940a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
930040a76396Smrg  $as_echo_n "(cached) " >&6
930140a76396Smrgelse
930240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
930340a76396Smrg/* end confdefs.h.  */
930440a76396Smrgint i;
930540a76396Smrg_ACEOF
930640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
930740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
930840a76396Smrgelse
930940a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
931040a76396Smrgfi
931140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
931240a76396Smrgfi
931340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
931440a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
931540a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
931640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
931740a76396Smrgfi
931840a76396Smrg
931940a76396Smrgfound="no"
932040a76396Smrg
932140a76396Smrg	if test $found = "no" ; then
932240a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
932340a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
932440a76396Smrg		fi
932540a76396Smrg
932640a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
932740a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
932840a76396Smrg		fi
932940a76396Smrg
933040a76396Smrg		CFLAGS="$CFLAGS -Wsequence-point"
933140a76396Smrg
933240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
933340a76396Smrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
933440a76396Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
933540a76396Smrg		if eval \${$cacheid+:} false; then :
933640a76396Smrg  $as_echo_n "(cached) " >&6
933740a76396Smrgelse
933840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
933940a76396Smrg/* end confdefs.h.  */
934040a76396Smrgint i;
934140a76396Smrgint
934240a76396Smrgmain ()
934340a76396Smrg{
934440a76396Smrg
934540a76396Smrg  ;
934640a76396Smrg  return 0;
934740a76396Smrg}
934840a76396Smrg_ACEOF
934940a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
935040a76396Smrg  eval $cacheid=yes
935140a76396Smrgelse
935240a76396Smrg  eval $cacheid=no
935340a76396Smrgfi
935440a76396Smrgrm -f core conftest.err conftest.$ac_objext \
935540a76396Smrg    conftest$ac_exeext conftest.$ac_ext
935640a76396Smrgfi
935740a76396Smrg
935840a76396Smrg
935940a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
936040a76396Smrg
936140a76396Smrg		eval supported=\$$cacheid
936240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
936340a76396Smrg$as_echo "$supported" >&6; }
936440a76396Smrg		if test "$supported" = "yes" ; then
936540a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
936640a76396Smrg			found="yes"
936740a76396Smrg		fi
936840a76396Smrg	fi
936940a76396Smrg
937040a76396Smrg
937140a76396Smrg
937240a76396Smrg
937340a76396Smrg
937440a76396Smrg
937540a76396Smrg
937640a76396Smrg
937740a76396Smrg
937840a76396Smrg
937940a76396Smrg
938040a76396Smrg
938140a76396Smrg
938240a76396Smrg
938340a76396Smrg
938440a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
938540a76396Smrg
938640a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
938740a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
938840a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
938940a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
939040a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
939140a76396Smrg  $as_echo_n "(cached) " >&6
939240a76396Smrgelse
939340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
939440a76396Smrg/* end confdefs.h.  */
939540a76396Smrgint i;
939640a76396Smrg_ACEOF
939740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
939840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
939940a76396Smrgelse
940040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
940140a76396Smrgfi
940240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
940340a76396Smrgfi
940440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
940540a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
940640a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
940740a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
940840a76396Smrgfi
940940a76396Smrg
941040a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
941140a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
941240a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
941340a76396Smrg	fi
941440a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
941540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
941640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
941740a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
941840a76396Smrg  $as_echo_n "(cached) " >&6
941940a76396Smrgelse
942040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
942140a76396Smrg/* end confdefs.h.  */
942240a76396Smrgint i;
942340a76396Smrg_ACEOF
942440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
942540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
942640a76396Smrgelse
942740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
942840a76396Smrgfi
942940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
943040a76396Smrgfi
943140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
943240a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
943340a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
943440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
943540a76396Smrgfi
943640a76396Smrg
943740a76396Smrgfound="no"
943840a76396Smrg
943940a76396Smrg	if test $found = "no" ; then
944040a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
944140a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
944240a76396Smrg		fi
944340a76396Smrg
944440a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
944540a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
944640a76396Smrg		fi
944740a76396Smrg
944840a76396Smrg		CFLAGS="$CFLAGS -Wreturn-type"
944940a76396Smrg
945040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
945140a76396Smrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
945240a76396Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
945340a76396Smrg		if eval \${$cacheid+:} false; then :
945440a76396Smrg  $as_echo_n "(cached) " >&6
945540a76396Smrgelse
945640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
945740a76396Smrg/* end confdefs.h.  */
945840a76396Smrgint i;
945940a76396Smrgint
946040a76396Smrgmain ()
946140a76396Smrg{
946240a76396Smrg
946340a76396Smrg  ;
946440a76396Smrg  return 0;
946540a76396Smrg}
946640a76396Smrg_ACEOF
946740a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
946840a76396Smrg  eval $cacheid=yes
946940a76396Smrgelse
947040a76396Smrg  eval $cacheid=no
947140a76396Smrgfi
947240a76396Smrgrm -f core conftest.err conftest.$ac_objext \
947340a76396Smrg    conftest$ac_exeext conftest.$ac_ext
947440a76396Smrgfi
947540a76396Smrg
947640a76396Smrg
947740a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
947840a76396Smrg
947940a76396Smrg		eval supported=\$$cacheid
948040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
948140a76396Smrg$as_echo "$supported" >&6; }
948240a76396Smrg		if test "$supported" = "yes" ; then
948340a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
948440a76396Smrg			found="yes"
948540a76396Smrg		fi
948640a76396Smrg	fi
948740a76396Smrg
948840a76396Smrg
948940a76396Smrg
949040a76396Smrg
949140a76396Smrg
949240a76396Smrg
949340a76396Smrg
949440a76396Smrg
949540a76396Smrg
949640a76396Smrg
949740a76396Smrg
949840a76396Smrg
949940a76396Smrg
950040a76396Smrg
950140a76396Smrg
950240a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
950340a76396Smrg
950440a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
950540a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
950640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
950740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
950840a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
950940a76396Smrg  $as_echo_n "(cached) " >&6
951040a76396Smrgelse
951140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
951240a76396Smrg/* end confdefs.h.  */
951340a76396Smrgint i;
951440a76396Smrg_ACEOF
951540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
951640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
951740a76396Smrgelse
951840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
951940a76396Smrgfi
952040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
952140a76396Smrgfi
952240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
952340a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
952440a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
952540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
952640a76396Smrgfi
952740a76396Smrg
952840a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
952940a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
953040a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
953140a76396Smrg	fi
953240a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
953340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
953440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
953540a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
953640a76396Smrg  $as_echo_n "(cached) " >&6
953740a76396Smrgelse
953840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953940a76396Smrg/* end confdefs.h.  */
954040a76396Smrgint i;
954140a76396Smrg_ACEOF
954240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
954340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
954440a76396Smrgelse
954540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
954640a76396Smrgfi
954740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
954840a76396Smrgfi
954940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
955040a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
955140a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
955240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
955340a76396Smrgfi
955440a76396Smrg
955540a76396Smrgfound="no"
955640a76396Smrg
955740a76396Smrg	if test $found = "no" ; then
955840a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
955940a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
956040a76396Smrg		fi
956140a76396Smrg
956240a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
956340a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
956440a76396Smrg		fi
956540a76396Smrg
956640a76396Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
956740a76396Smrg
956840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
956940a76396Smrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
957040a76396Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
957140a76396Smrg		if eval \${$cacheid+:} false; then :
957240a76396Smrg  $as_echo_n "(cached) " >&6
957340a76396Smrgelse
957440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
957540a76396Smrg/* end confdefs.h.  */
957640a76396Smrgint i;
957740a76396Smrgint
957840a76396Smrgmain ()
957940a76396Smrg{
958040a76396Smrg
958140a76396Smrg  ;
958240a76396Smrg  return 0;
958340a76396Smrg}
958440a76396Smrg_ACEOF
958540a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
958640a76396Smrg  eval $cacheid=yes
958740a76396Smrgelse
958840a76396Smrg  eval $cacheid=no
958940a76396Smrgfi
959040a76396Smrgrm -f core conftest.err conftest.$ac_objext \
959140a76396Smrg    conftest$ac_exeext conftest.$ac_ext
959240a76396Smrgfi
959340a76396Smrg
959440a76396Smrg
959540a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
959640a76396Smrg
959740a76396Smrg		eval supported=\$$cacheid
959840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
959940a76396Smrg$as_echo "$supported" >&6; }
960040a76396Smrg		if test "$supported" = "yes" ; then
960140a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
960240a76396Smrg			found="yes"
960340a76396Smrg		fi
960440a76396Smrg	fi
960540a76396Smrg
960640a76396Smrg
960740a76396Smrg
960840a76396Smrg
960940a76396Smrg
961040a76396Smrg
961140a76396Smrg
961240a76396Smrg
961340a76396Smrg
961440a76396Smrg
961540a76396Smrg
961640a76396Smrg
961740a76396Smrg
961840a76396Smrg
961940a76396Smrg
962040a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
962140a76396Smrg
962240a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
962340a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
962440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
962540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
962640a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
962740a76396Smrg  $as_echo_n "(cached) " >&6
962840a76396Smrgelse
962940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
963040a76396Smrg/* end confdefs.h.  */
963140a76396Smrgint i;
963240a76396Smrg_ACEOF
963340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
963440a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
963540a76396Smrgelse
963640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
963740a76396Smrgfi
963840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
963940a76396Smrgfi
964040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
964140a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
964240a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
964340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
964440a76396Smrgfi
964540a76396Smrg
964640a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
964740a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
964840a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
964940a76396Smrg	fi
965040a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
965140a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
965240a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
965340a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
965440a76396Smrg  $as_echo_n "(cached) " >&6
965540a76396Smrgelse
965640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
965740a76396Smrg/* end confdefs.h.  */
965840a76396Smrgint i;
965940a76396Smrg_ACEOF
966040a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
966140a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
966240a76396Smrgelse
966340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
966440a76396Smrgfi
966540a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
966640a76396Smrgfi
966740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
966840a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
966940a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
967040a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
967140a76396Smrgfi
967240a76396Smrg
967340a76396Smrgfound="no"
967440a76396Smrg
967540a76396Smrg	if test $found = "no" ; then
967640a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
967740a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
967840a76396Smrg		fi
967940a76396Smrg
968040a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
968140a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
968240a76396Smrg		fi
968340a76396Smrg
968440a76396Smrg		CFLAGS="$CFLAGS -Warray-bounds"
968540a76396Smrg
968640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
968740a76396Smrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
968840a76396Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
968940a76396Smrg		if eval \${$cacheid+:} false; then :
969040a76396Smrg  $as_echo_n "(cached) " >&6
969140a76396Smrgelse
969240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
969340a76396Smrg/* end confdefs.h.  */
969440a76396Smrgint i;
969540a76396Smrgint
969640a76396Smrgmain ()
969740a76396Smrg{
969840a76396Smrg
969940a76396Smrg  ;
970040a76396Smrg  return 0;
970140a76396Smrg}
970240a76396Smrg_ACEOF
970340a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
970440a76396Smrg  eval $cacheid=yes
970540a76396Smrgelse
970640a76396Smrg  eval $cacheid=no
970740a76396Smrgfi
970840a76396Smrgrm -f core conftest.err conftest.$ac_objext \
970940a76396Smrg    conftest$ac_exeext conftest.$ac_ext
971040a76396Smrgfi
971140a76396Smrg
971240a76396Smrg
971340a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
971440a76396Smrg
971540a76396Smrg		eval supported=\$$cacheid
971640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
971740a76396Smrg$as_echo "$supported" >&6; }
971840a76396Smrg		if test "$supported" = "yes" ; then
971940a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
972040a76396Smrg			found="yes"
972140a76396Smrg		fi
972240a76396Smrg	fi
972340a76396Smrg
972440a76396Smrg
972540a76396Smrg
972640a76396Smrg
972740a76396Smrg
972840a76396Smrg
972940a76396Smrg
973040a76396Smrg
973140a76396Smrg
973240a76396Smrg
973340a76396Smrg
973440a76396Smrg
973540a76396Smrg
973640a76396Smrg
973740a76396Smrg
973840a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
973940a76396Smrg
974040a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
974140a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
974240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
974340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
974440a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
974540a76396Smrg  $as_echo_n "(cached) " >&6
974640a76396Smrgelse
974740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
974840a76396Smrg/* end confdefs.h.  */
974940a76396Smrgint i;
975040a76396Smrg_ACEOF
975140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
975240a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
975340a76396Smrgelse
975440a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
975540a76396Smrgfi
975640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
975740a76396Smrgfi
975840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
975940a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
976040a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
976140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
976240a76396Smrgfi
976340a76396Smrg
976440a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
976540a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
976640a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
976740a76396Smrg	fi
976840a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
976940a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
977040a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
977140a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
977240a76396Smrg  $as_echo_n "(cached) " >&6
977340a76396Smrgelse
977440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
977540a76396Smrg/* end confdefs.h.  */
977640a76396Smrgint i;
977740a76396Smrg_ACEOF
977840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
977940a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
978040a76396Smrgelse
978140a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
978240a76396Smrgfi
978340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
978440a76396Smrgfi
978540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
978640a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
978740a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
978840a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
978940a76396Smrgfi
979040a76396Smrg
979140a76396Smrgfound="no"
979240a76396Smrg
979340a76396Smrg	if test $found = "no" ; then
979440a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
979540a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
979640a76396Smrg		fi
979740a76396Smrg
979840a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
979940a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
980040a76396Smrg		fi
980140a76396Smrg
980240a76396Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
980340a76396Smrg
980440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
980540a76396Smrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
980640a76396Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
980740a76396Smrg		if eval \${$cacheid+:} false; then :
980840a76396Smrg  $as_echo_n "(cached) " >&6
980940a76396Smrgelse
981040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
981140a76396Smrg/* end confdefs.h.  */
981240a76396Smrgint i;
981340a76396Smrgint
981440a76396Smrgmain ()
981540a76396Smrg{
981640a76396Smrg
981740a76396Smrg  ;
981840a76396Smrg  return 0;
981940a76396Smrg}
982040a76396Smrg_ACEOF
982140a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
982240a76396Smrg  eval $cacheid=yes
982340a76396Smrgelse
982440a76396Smrg  eval $cacheid=no
982540a76396Smrgfi
982640a76396Smrgrm -f core conftest.err conftest.$ac_objext \
982740a76396Smrg    conftest$ac_exeext conftest.$ac_ext
982840a76396Smrgfi
982940a76396Smrg
983040a76396Smrg
983140a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
983240a76396Smrg
983340a76396Smrg		eval supported=\$$cacheid
983440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
983540a76396Smrg$as_echo "$supported" >&6; }
983640a76396Smrg		if test "$supported" = "yes" ; then
983740a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
983840a76396Smrg			found="yes"
983940a76396Smrg		fi
984040a76396Smrg	fi
984140a76396Smrg
984240a76396Smrg
984340a76396Smrg
984440a76396Smrg
984540a76396Smrg
984640a76396Smrg
984740a76396Smrg
984840a76396Smrg
984940a76396Smrg
985040a76396Smrg
985140a76396Smrg
985240a76396Smrg
985340a76396Smrg
985440a76396Smrg
985540a76396Smrg
985640a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
985740a76396Smrg
985840a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
985940a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
986040a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
986140a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
986240a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
986340a76396Smrg  $as_echo_n "(cached) " >&6
986440a76396Smrgelse
986540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
986640a76396Smrg/* end confdefs.h.  */
986740a76396Smrgint i;
986840a76396Smrg_ACEOF
986940a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
987040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
987140a76396Smrgelse
987240a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
987340a76396Smrgfi
987440a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
987540a76396Smrgfi
987640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
987740a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
987840a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
987940a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
988040a76396Smrgfi
988140a76396Smrg
988240a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
988340a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
988440a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
988540a76396Smrg	fi
988640a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
988740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
988840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
988940a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
989040a76396Smrg  $as_echo_n "(cached) " >&6
989140a76396Smrgelse
989240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
989340a76396Smrg/* end confdefs.h.  */
989440a76396Smrgint i;
989540a76396Smrg_ACEOF
989640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
989740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
989840a76396Smrgelse
989940a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
990040a76396Smrgfi
990140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
990240a76396Smrgfi
990340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
990440a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
990540a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
990640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
990740a76396Smrgfi
990840a76396Smrg
990940a76396Smrgfound="no"
991040a76396Smrg
991140a76396Smrg	if test $found = "no" ; then
991240a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
991340a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
991440a76396Smrg		fi
991540a76396Smrg
991640a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
991740a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
991840a76396Smrg		fi
991940a76396Smrg
992040a76396Smrg		CFLAGS="$CFLAGS -Waddress"
992140a76396Smrg
992240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
992340a76396Smrg$as_echo_n "checking if $CC supports -Waddress... " >&6; }
992440a76396Smrg		cacheid=xorg_cv_cc_flag__Waddress
992540a76396Smrg		if eval \${$cacheid+:} false; then :
992640a76396Smrg  $as_echo_n "(cached) " >&6
992740a76396Smrgelse
992840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
992940a76396Smrg/* end confdefs.h.  */
993040a76396Smrgint i;
993140a76396Smrgint
993240a76396Smrgmain ()
993340a76396Smrg{
993440a76396Smrg
993540a76396Smrg  ;
993640a76396Smrg  return 0;
993740a76396Smrg}
993840a76396Smrg_ACEOF
993940a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
994040a76396Smrg  eval $cacheid=yes
994140a76396Smrgelse
994240a76396Smrg  eval $cacheid=no
994340a76396Smrgfi
994440a76396Smrgrm -f core conftest.err conftest.$ac_objext \
994540a76396Smrg    conftest$ac_exeext conftest.$ac_ext
994640a76396Smrgfi
994740a76396Smrg
994840a76396Smrg
994940a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
995040a76396Smrg
995140a76396Smrg		eval supported=\$$cacheid
995240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
995340a76396Smrg$as_echo "$supported" >&6; }
995440a76396Smrg		if test "$supported" = "yes" ; then
995540a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
995640a76396Smrg			found="yes"
995740a76396Smrg		fi
995840a76396Smrg	fi
995940a76396Smrg
996040a76396Smrg
996140a76396Smrg
996240a76396Smrg
996340a76396Smrg
996440a76396Smrg
996540a76396Smrg
996640a76396Smrg
996740a76396Smrg
996840a76396Smrg
996940a76396Smrg
997040a76396Smrg
997140a76396Smrg
997240a76396Smrg
997340a76396Smrg
997440a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
997540a76396Smrg
997640a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
997740a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
997840a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
997940a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
998040a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
998140a76396Smrg  $as_echo_n "(cached) " >&6
998240a76396Smrgelse
998340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
998440a76396Smrg/* end confdefs.h.  */
998540a76396Smrgint i;
998640a76396Smrg_ACEOF
998740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
998840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
998940a76396Smrgelse
999040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
999140a76396Smrgfi
999240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
999340a76396Smrgfi
999440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
999540a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
999640a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
999740a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
999840a76396Smrgfi
999940a76396Smrg
1000040a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1000140a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1000240a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1000340a76396Smrg	fi
1000440a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1000540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1000640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1000740a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1000840a76396Smrg  $as_echo_n "(cached) " >&6
1000940a76396Smrgelse
1001040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1001140a76396Smrg/* end confdefs.h.  */
1001240a76396Smrgint i;
1001340a76396Smrg_ACEOF
1001440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1001540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1001640a76396Smrgelse
1001740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1001840a76396Smrgfi
1001940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1002040a76396Smrgfi
1002140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1002240a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1002340a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1002440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1002540a76396Smrgfi
1002640a76396Smrg
1002740a76396Smrgfound="no"
1002840a76396Smrg
1002940a76396Smrg	if test $found = "no" ; then
1003040a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1003140a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1003240a76396Smrg		fi
1003340a76396Smrg
1003440a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1003540a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1003640a76396Smrg		fi
1003740a76396Smrg
1003840a76396Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
1003940a76396Smrg
1004040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
1004140a76396Smrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
1004240a76396Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
1004340a76396Smrg		if eval \${$cacheid+:} false; then :
1004440a76396Smrg  $as_echo_n "(cached) " >&6
1004540a76396Smrgelse
1004640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1004740a76396Smrg/* end confdefs.h.  */
1004840a76396Smrgint i;
1004940a76396Smrgint
1005040a76396Smrgmain ()
1005140a76396Smrg{
1005240a76396Smrg
1005340a76396Smrg  ;
1005440a76396Smrg  return 0;
1005540a76396Smrg}
1005640a76396Smrg_ACEOF
1005740a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
1005840a76396Smrg  eval $cacheid=yes
1005940a76396Smrgelse
1006040a76396Smrg  eval $cacheid=no
1006140a76396Smrgfi
1006240a76396Smrgrm -f core conftest.err conftest.$ac_objext \
1006340a76396Smrg    conftest$ac_exeext conftest.$ac_ext
1006440a76396Smrgfi
1006540a76396Smrg
1006640a76396Smrg
1006740a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1006840a76396Smrg
1006940a76396Smrg		eval supported=\$$cacheid
1007040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1007140a76396Smrg$as_echo "$supported" >&6; }
1007240a76396Smrg		if test "$supported" = "yes" ; then
1007340a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
1007440a76396Smrg			found="yes"
1007540a76396Smrg		fi
1007640a76396Smrg	fi
1007740a76396Smrg
1007840a76396Smrg
1007940a76396Smrg
1008040a76396Smrg
1008140a76396Smrg
1008240a76396Smrg
1008340a76396Smrg
1008440a76396Smrg
1008540a76396Smrg
1008640a76396Smrg
1008740a76396Smrg
1008840a76396Smrg
1008940a76396Smrg
1009040a76396Smrg
1009140a76396Smrg
1009240a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1009340a76396Smrg
1009440a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1009540a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1009640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1009740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1009840a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1009940a76396Smrg  $as_echo_n "(cached) " >&6
1010040a76396Smrgelse
1010140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1010240a76396Smrg/* end confdefs.h.  */
1010340a76396Smrgint i;
1010440a76396Smrg_ACEOF
1010540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1010640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1010740a76396Smrgelse
1010840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1010940a76396Smrgfi
1011040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1011140a76396Smrgfi
1011240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1011340a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1011440a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1011540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1011640a76396Smrgfi
1011740a76396Smrg
1011840a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1011940a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1012040a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1012140a76396Smrg	fi
1012240a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1012340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1012440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1012540a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1012640a76396Smrg  $as_echo_n "(cached) " >&6
1012740a76396Smrgelse
1012840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1012940a76396Smrg/* end confdefs.h.  */
1013040a76396Smrgint i;
1013140a76396Smrg_ACEOF
1013240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1013340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1013440a76396Smrgelse
1013540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1013640a76396Smrgfi
1013740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1013840a76396Smrgfi
1013940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1014040a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1014140a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1014240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1014340a76396Smrgfi
1014440a76396Smrg
1014540a76396Smrgfound="no"
1014640a76396Smrg
1014740a76396Smrg	if test $found = "no" ; then
1014840a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1014940a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1015040a76396Smrg		fi
1015140a76396Smrg
1015240a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1015340a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1015440a76396Smrg		fi
1015540a76396Smrg
1015640a76396Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
1015740a76396Smrg
1015840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
1015940a76396Smrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
1016040a76396Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
1016140a76396Smrg		if eval \${$cacheid+:} false; then :
1016240a76396Smrg  $as_echo_n "(cached) " >&6
1016340a76396Smrgelse
1016440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1016540a76396Smrg/* end confdefs.h.  */
1016640a76396Smrgint i;
1016740a76396Smrgint
1016840a76396Smrgmain ()
1016940a76396Smrg{
1017040a76396Smrg
1017140a76396Smrg  ;
1017240a76396Smrg  return 0;
1017340a76396Smrg}
1017440a76396Smrg_ACEOF
1017540a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
1017640a76396Smrg  eval $cacheid=yes
1017740a76396Smrgelse
1017840a76396Smrg  eval $cacheid=no
1017940a76396Smrgfi
1018040a76396Smrgrm -f core conftest.err conftest.$ac_objext \
1018140a76396Smrg    conftest$ac_exeext conftest.$ac_ext
1018240a76396Smrgfi
1018340a76396Smrg
1018440a76396Smrg
1018540a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1018640a76396Smrg
1018740a76396Smrg		eval supported=\$$cacheid
1018840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1018940a76396Smrg$as_echo "$supported" >&6; }
1019040a76396Smrg		if test "$supported" = "yes" ; then
1019140a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
1019240a76396Smrg			found="yes"
1019340a76396Smrg		fi
1019440a76396Smrg	fi
1019540a76396Smrg
1019640a76396Smrg
1019740a76396Smrgfi
1019840a76396Smrg
1019940a76396Smrg
1020040a76396Smrg
1020140a76396Smrg
1020240a76396Smrg
1020340a76396Smrg
1020440a76396Smrg
1020540a76396Smrg		CWARNFLAGS="$BASE_CFLAGS"
1020640a76396Smrg		if  test "x$GCC" = xyes ; then
1020740a76396Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
1020840a76396Smrg		fi
1020940a76396Smrg
1021040a76396Smrg
1021140a76396Smrg
1021240a76396Smrg
1021340a76396Smrg
1021440a76396Smrg
1021540a76396Smrg
1021640a76396Smrg
1021740a76396Smrg# Check whether --enable-strict-compilation was given.
1021840a76396Smrgif test "${enable_strict_compilation+set}" = set; then :
1021940a76396Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
1022040a76396Smrgelse
1022140a76396Smrg  STRICT_COMPILE=no
1022240a76396Smrgfi
1022340a76396Smrg
1022440a76396Smrg
1022540a76396Smrg
1022640a76396Smrg
1022740a76396Smrg
1022840a76396Smrg
1022940a76396SmrgSTRICT_CFLAGS=""
1023040a76396Smrg
1023140a76396Smrg
1023240a76396Smrg
1023340a76396Smrg
1023440a76396Smrg
1023540a76396Smrg
1023640a76396Smrg
1023740a76396Smrg
1023840a76396Smrg
1023940a76396Smrg
1024040a76396Smrg
1024140a76396Smrg
1024240a76396Smrg
1024340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1024440a76396Smrg
1024540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1024640a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1024740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1024840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1024940a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1025040a76396Smrg  $as_echo_n "(cached) " >&6
1025140a76396Smrgelse
1025240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1025340a76396Smrg/* end confdefs.h.  */
1025440a76396Smrgint i;
1025540a76396Smrg_ACEOF
1025640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1025740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1025840a76396Smrgelse
1025940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1026040a76396Smrgfi
1026140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1026240a76396Smrgfi
1026340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1026440a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1026540a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1026640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1026740a76396Smrgfi
1026840a76396Smrg
1026940a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1027040a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1027140a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1027240a76396Smrg	fi
1027340a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1027440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1027540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1027640a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1027740a76396Smrg  $as_echo_n "(cached) " >&6
1027840a76396Smrgelse
1027940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1028040a76396Smrg/* end confdefs.h.  */
1028140a76396Smrgint i;
1028240a76396Smrg_ACEOF
1028340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1028440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1028540a76396Smrgelse
1028640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1028740a76396Smrgfi
1028840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1028940a76396Smrgfi
1029040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1029140a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1029240a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1029340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1029440a76396Smrgfi
1029540a76396Smrg
1029640a76396Smrgfound="no"
1029740a76396Smrg
1029840a76396Smrg	if test $found = "no" ; then
1029940a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1030040a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1030140a76396Smrg		fi
1030240a76396Smrg
1030340a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1030440a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1030540a76396Smrg		fi
1030640a76396Smrg
1030740a76396Smrg		CFLAGS="$CFLAGS -pedantic"
1030840a76396Smrg
1030940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
1031040a76396Smrg$as_echo_n "checking if $CC supports -pedantic... " >&6; }
1031140a76396Smrg		cacheid=xorg_cv_cc_flag__pedantic
1031240a76396Smrg		if eval \${$cacheid+:} false; then :
1031340a76396Smrg  $as_echo_n "(cached) " >&6
1031440a76396Smrgelse
1031540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1031640a76396Smrg/* end confdefs.h.  */
1031740a76396Smrgint i;
1031840a76396Smrgint
1031940a76396Smrgmain ()
1032040a76396Smrg{
1032140a76396Smrg
1032240a76396Smrg  ;
1032340a76396Smrg  return 0;
1032440a76396Smrg}
1032540a76396Smrg_ACEOF
1032640a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
1032740a76396Smrg  eval $cacheid=yes
1032840a76396Smrgelse
1032940a76396Smrg  eval $cacheid=no
1033040a76396Smrgfi
1033140a76396Smrgrm -f core conftest.err conftest.$ac_objext \
1033240a76396Smrg    conftest$ac_exeext conftest.$ac_ext
1033340a76396Smrgfi
1033440a76396Smrg
1033540a76396Smrg
1033640a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1033740a76396Smrg
1033840a76396Smrg		eval supported=\$$cacheid
1033940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1034040a76396Smrg$as_echo "$supported" >&6; }
1034140a76396Smrg		if test "$supported" = "yes" ; then
1034240a76396Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
1034340a76396Smrg			found="yes"
1034440a76396Smrg		fi
1034540a76396Smrg	fi
1034640a76396Smrg
1034740a76396Smrg
1034840a76396Smrg
1034940a76396Smrg
1035040a76396Smrg
1035140a76396Smrg
1035240a76396Smrg
1035340a76396Smrg
1035440a76396Smrg
1035540a76396Smrg
1035640a76396Smrg
1035740a76396Smrg
1035840a76396Smrg
1035940a76396Smrg
1036040a76396Smrg
1036140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1036240a76396Smrg
1036340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1036440a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1036540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1036640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1036740a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1036840a76396Smrg  $as_echo_n "(cached) " >&6
1036940a76396Smrgelse
1037040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1037140a76396Smrg/* end confdefs.h.  */
1037240a76396Smrgint i;
1037340a76396Smrg_ACEOF
1037440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1037540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1037640a76396Smrgelse
1037740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1037840a76396Smrgfi
1037940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1038040a76396Smrgfi
1038140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1038240a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1038340a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1038440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
103856f5dd5c2Smrgfi
103866600fe5bSmrg
1038740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1038840a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1038940a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1039040a76396Smrg	fi
1039140a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1039240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1039340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1039440a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
103956600fe5bSmrg  $as_echo_n "(cached) " >&6
103966600fe5bSmrgelse
1039740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1039840a76396Smrg/* end confdefs.h.  */
1039940a76396Smrgint i;
1040040a76396Smrg_ACEOF
1040140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1040240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1040340a76396Smrgelse
1040440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1040540a76396Smrgfi
1040640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1040740a76396Smrgfi
1040840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1040940a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1041040a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1041140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
104126600fe5bSmrgfi
104136600fe5bSmrg
1041440a76396Smrgfound="no"
104156600fe5bSmrg
1041640a76396Smrg	if test $found = "no" ; then
1041740a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1041840a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1041940a76396Smrg		fi
1042040a76396Smrg
1042140a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1042240a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1042340a76396Smrg		fi
1042440a76396Smrg
1042540a76396Smrg		CFLAGS="$CFLAGS -Werror"
1042640a76396Smrg
1042740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
1042840a76396Smrg$as_echo_n "checking if $CC supports -Werror... " >&6; }
1042940a76396Smrg		cacheid=xorg_cv_cc_flag__Werror
1043040a76396Smrg		if eval \${$cacheid+:} false; then :
104316600fe5bSmrg  $as_echo_n "(cached) " >&6
104326600fe5bSmrgelse
1043340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1043440a76396Smrg/* end confdefs.h.  */
1043540a76396Smrgint i;
1043640a76396Smrgint
1043740a76396Smrgmain ()
1043840a76396Smrg{
1043940a76396Smrg
1044040a76396Smrg  ;
1044140a76396Smrg  return 0;
1044240a76396Smrg}
1044340a76396Smrg_ACEOF
1044440a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
1044540a76396Smrg  eval $cacheid=yes
104466600fe5bSmrgelse
1044740a76396Smrg  eval $cacheid=no
104486600fe5bSmrgfi
1044940a76396Smrgrm -f core conftest.err conftest.$ac_objext \
1045040a76396Smrg    conftest$ac_exeext conftest.$ac_ext
104516600fe5bSmrgfi
104526600fe5bSmrg
104536600fe5bSmrg
1045440a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1045540a76396Smrg
1045640a76396Smrg		eval supported=\$$cacheid
1045740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1045840a76396Smrg$as_echo "$supported" >&6; }
1045940a76396Smrg		if test "$supported" = "yes" ; then
1046040a76396Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
1046140a76396Smrg			found="yes"
1046240a76396Smrg		fi
1046340a76396Smrg	fi
1046440a76396Smrg
1046540a76396Smrg	if test $found = "no" ; then
1046640a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1046740a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1046840a76396Smrg		fi
1046940a76396Smrg
1047040a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1047140a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1047240a76396Smrg		fi
1047340a76396Smrg
1047440a76396Smrg		CFLAGS="$CFLAGS -errwarn"
1047540a76396Smrg
1047640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
1047740a76396Smrg$as_echo_n "checking if $CC supports -errwarn... " >&6; }
1047840a76396Smrg		cacheid=xorg_cv_cc_flag__errwarn
1047940a76396Smrg		if eval \${$cacheid+:} false; then :
104806600fe5bSmrg  $as_echo_n "(cached) " >&6
104816600fe5bSmrgelse
1048240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1048340a76396Smrg/* end confdefs.h.  */
1048440a76396Smrgint i;
1048540a76396Smrgint
1048640a76396Smrgmain ()
1048740a76396Smrg{
104886600fe5bSmrg
1048940a76396Smrg  ;
1049040a76396Smrg  return 0;
1049140a76396Smrg}
1049240a76396Smrg_ACEOF
1049340a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
1049440a76396Smrg  eval $cacheid=yes
104956f5dd5c2Smrgelse
1049640a76396Smrg  eval $cacheid=no
104976600fe5bSmrgfi
1049840a76396Smrgrm -f core conftest.err conftest.$ac_objext \
1049940a76396Smrg    conftest$ac_exeext conftest.$ac_ext
105006600fe5bSmrgfi
105016f5dd5c2Smrg
105026f5dd5c2Smrg
1050340a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
105046f5dd5c2Smrg
1050540a76396Smrg		eval supported=\$$cacheid
1050640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1050740a76396Smrg$as_echo "$supported" >&6; }
1050840a76396Smrg		if test "$supported" = "yes" ; then
1050940a76396Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
1051040a76396Smrg			found="yes"
1051140a76396Smrg		fi
1051240a76396Smrg	fi
105136f5dd5c2Smrg
105146f5dd5c2Smrg
10515ff6cf368Smrg
1051640a76396Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
1051740a76396Smrg# activate it with -Werror, so we add it here explicitly.
105186600fe5bSmrg
105196600fe5bSmrg
105206600fe5bSmrg
105216600fe5bSmrg
105226600fe5bSmrg
105236600fe5bSmrg
10524ff6cf368Smrg
1052540a76396Smrg
1052640a76396Smrg
1052740a76396Smrg
1052840a76396Smrg
1052940a76396Smrg
1053040a76396Smrg
1053140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1053240a76396Smrg
1053340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1053440a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1053540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1053640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1053740a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1053840a76396Smrg  $as_echo_n "(cached) " >&6
105396600fe5bSmrgelse
1054040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1054140a76396Smrg/* end confdefs.h.  */
1054240a76396Smrgint i;
1054340a76396Smrg_ACEOF
1054440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1054540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1054640a76396Smrgelse
1054740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1054840a76396Smrgfi
1054940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1055040a76396Smrgfi
1055140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1055240a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1055340a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1055440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
105556600fe5bSmrgfi
105566600fe5bSmrg
1055740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1055840a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1055940a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1056040a76396Smrg	fi
1056140a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1056240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1056340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1056440a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1056540a76396Smrg  $as_echo_n "(cached) " >&6
1056640a76396Smrgelse
1056740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568ff6cf368Smrg/* end confdefs.h.  */
1056940a76396Smrgint i;
10570ff6cf368Smrg_ACEOF
10571ff6cf368Smrgif ac_fn_c_try_compile "$LINENO"; then :
1057240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
105736600fe5bSmrgelse
1057440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
105756600fe5bSmrgfi
10576ff6cf368Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
105776600fe5bSmrgfi
1057840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1057940a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1058040a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1058140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1058240a76396Smrgfi
1058340a76396Smrg
1058440a76396Smrgfound="no"
1058540a76396Smrg
1058640a76396Smrg	if test $found = "no" ; then
1058740a76396Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1058840a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1058940a76396Smrg		fi
1059040a76396Smrg
1059140a76396Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1059240a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1059340a76396Smrg		fi
1059440a76396Smrg
1059540a76396Smrg		CFLAGS="$CFLAGS -Werror=attributes"
1059640a76396Smrg
1059740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
1059840a76396Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
1059940a76396Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
1060040a76396Smrg		if eval \${$cacheid+:} false; then :
1060140a76396Smrg  $as_echo_n "(cached) " >&6
1060240a76396Smrgelse
1060340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1060440a76396Smrg/* end confdefs.h.  */
1060540a76396Smrgint i;
1060640a76396Smrgint
1060740a76396Smrgmain ()
1060840a76396Smrg{
1060940a76396Smrg
1061040a76396Smrg  ;
1061140a76396Smrg  return 0;
1061240a76396Smrg}
1061340a76396Smrg_ACEOF
1061440a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
1061540a76396Smrg  eval $cacheid=yes
1061640a76396Smrgelse
1061740a76396Smrg  eval $cacheid=no
1061840a76396Smrgfi
1061940a76396Smrgrm -f core conftest.err conftest.$ac_objext \
1062040a76396Smrg    conftest$ac_exeext conftest.$ac_ext
1062140a76396Smrgfi
1062240a76396Smrg
1062340a76396Smrg
1062440a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1062540a76396Smrg
1062640a76396Smrg		eval supported=\$$cacheid
1062740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1062840a76396Smrg$as_echo "$supported" >&6; }
1062940a76396Smrg		if test "$supported" = "yes" ; then
1063040a76396Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
1063140a76396Smrg			found="yes"
1063240a76396Smrg		fi
1063340a76396Smrg	fi
1063440a76396Smrg
1063540a76396Smrg
1063640a76396Smrg
10637ff6cf368Smrgif test "x$STRICT_COMPILE" = "xyes"; then
1063840a76396Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10639ff6cf368Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
106406600fe5bSmrgfi
10641ff6cf368Smrg
106426600fe5bSmrg
106436600fe5bSmrg
106446600fe5bSmrg
106456600fe5bSmrg
1064640a76396Smrg
106476600fe5bSmrgcat >>confdefs.h <<_ACEOF
106486600fe5bSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
106496600fe5bSmrg_ACEOF
106506600fe5bSmrg
106516600fe5bSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
106526600fe5bSmrg	if test "x$PVM" = "x"; then
106536600fe5bSmrg		PVM="0"
106546600fe5bSmrg	fi
106556600fe5bSmrg
106566600fe5bSmrgcat >>confdefs.h <<_ACEOF
106576600fe5bSmrg#define PACKAGE_VERSION_MINOR $PVM
106586600fe5bSmrg_ACEOF
106596600fe5bSmrg
106606600fe5bSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
106616600fe5bSmrg	if test "x$PVP" = "x"; then
106626600fe5bSmrg		PVP="0"
106636600fe5bSmrg	fi
106646600fe5bSmrg
106656600fe5bSmrgcat >>confdefs.h <<_ACEOF
106666600fe5bSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
106676600fe5bSmrg_ACEOF
106686600fe5bSmrg
106696600fe5bSmrg
106706600fe5bSmrg
106716f5dd5c2SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
106726f5dd5c2Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
106736f5dd5c2Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
106746600fe5bSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
106756600fe5bSmrg
106766f5dd5c2Smrg
106776f5dd5c2Smrg
106786f5dd5c2Smrg
106796f5dd5c2Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
106806f5dd5c2SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
106816f5dd5c2Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
106826f5dd5c2Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
106836f5dd5c2Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
106846f5dd5c2Smrg
106856600fe5bSmrg
106866600fe5bSmrg
106876600fe5bSmrg
106886600fe5bSmrg
106896600fe5bSmrg
106906600fe5bSmrgif test x$APP_MAN_SUFFIX = x    ; then
106916600fe5bSmrg    APP_MAN_SUFFIX=1
106926600fe5bSmrgfi
106936600fe5bSmrgif test x$APP_MAN_DIR = x    ; then
106946600fe5bSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
106956600fe5bSmrgfi
106966600fe5bSmrg
106976600fe5bSmrgif test x$LIB_MAN_SUFFIX = x    ; then
106986600fe5bSmrg    LIB_MAN_SUFFIX=3
106996600fe5bSmrgfi
107006600fe5bSmrgif test x$LIB_MAN_DIR = x    ; then
107016600fe5bSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
107026600fe5bSmrgfi
107036600fe5bSmrg
107046600fe5bSmrgif test x$FILE_MAN_SUFFIX = x    ; then
107056600fe5bSmrg    case $host_os in
107066600fe5bSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
107076600fe5bSmrg	*)		FILE_MAN_SUFFIX=5  ;;
107086600fe5bSmrg    esac
107096600fe5bSmrgfi
107106600fe5bSmrgif test x$FILE_MAN_DIR = x    ; then
107116600fe5bSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
107126600fe5bSmrgfi
107136600fe5bSmrg
107146600fe5bSmrgif test x$MISC_MAN_SUFFIX = x    ; then
107156600fe5bSmrg    case $host_os in
107166600fe5bSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
107176600fe5bSmrg	*)		MISC_MAN_SUFFIX=7  ;;
107186600fe5bSmrg    esac
107196600fe5bSmrgfi
107206600fe5bSmrgif test x$MISC_MAN_DIR = x    ; then
107216600fe5bSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
107226600fe5bSmrgfi
107236600fe5bSmrg
107246600fe5bSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
107256600fe5bSmrg    case $host_os in
107266600fe5bSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
107276600fe5bSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
107286600fe5bSmrg    esac
107296600fe5bSmrgfi
107306600fe5bSmrgif test x$DRIVER_MAN_DIR = x    ; then
107316600fe5bSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
107326600fe5bSmrgfi
107336600fe5bSmrg
107346600fe5bSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
107356600fe5bSmrg    case $host_os in
107366600fe5bSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
107376600fe5bSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
107386600fe5bSmrg    esac
107396600fe5bSmrgfi
107406600fe5bSmrgif test x$ADMIN_MAN_DIR = x    ; then
107416600fe5bSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
107426600fe5bSmrgfi
107436600fe5bSmrg
107446600fe5bSmrg
107456600fe5bSmrg
107466600fe5bSmrg
107476600fe5bSmrg
107486600fe5bSmrg
107496600fe5bSmrg
107506600fe5bSmrg
107516600fe5bSmrg
107526600fe5bSmrg
107536600fe5bSmrg
107546600fe5bSmrg
107556600fe5bSmrg
107566600fe5bSmrg
107576600fe5bSmrg
107586f5dd5c2SmrgXORG_MAN_PAGE="X Version 11"
107596600fe5bSmrg
107606f5dd5c2SmrgMAN_SUBSTS="\
107616f5dd5c2Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
107626f5dd5c2Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
107636f5dd5c2Smrg	-e 's|__xservername__|Xorg|g' \
107646f5dd5c2Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
107656f5dd5c2Smrg	-e 's|__projectroot__|\$(prefix)|g' \
107662ab73d9fSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
107676f5dd5c2Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
107686f5dd5c2Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
107696f5dd5c2Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
107706f5dd5c2Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
107716f5dd5c2Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
107726f5dd5c2Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
107736600fe5bSmrg
10774a0195d5fSmrg
10775a0195d5fSmrg
107766f5dd5c2Smrg# Check whether --enable-silent-rules was given.
107776f5dd5c2Smrgif test "${enable_silent_rules+set}" = set; then :
107786f5dd5c2Smrg  enableval=$enable_silent_rules;
10779a0195d5fSmrgfi
10780a0195d5fSmrg
1078140a76396Smrgcase $enable_silent_rules in # (((
1078240a76396Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
1078340a76396Smrg   no) AM_DEFAULT_VERBOSITY=1;;
1078440a76396Smrg    *) AM_DEFAULT_VERBOSITY=0;;
107856f5dd5c2Smrgesac
1078640a76396Smrgam_make=${MAKE-make}
1078740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
1078840a76396Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
1078940a76396Smrgif ${am_cv_make_support_nested_variables+:} false; then :
1079040a76396Smrg  $as_echo_n "(cached) " >&6
1079140a76396Smrgelse
1079240a76396Smrg  if $as_echo 'TRUE=$(BAR$(V))
1079340a76396SmrgBAR0=false
1079440a76396SmrgBAR1=true
1079540a76396SmrgV=1
1079640a76396Smrgam__doit:
1079740a76396Smrg	@$(TRUE)
1079840a76396Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
1079940a76396Smrg  am_cv_make_support_nested_variables=yes
1080040a76396Smrgelse
1080140a76396Smrg  am_cv_make_support_nested_variables=no
1080240a76396Smrgfi
1080340a76396Smrgfi
1080440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
1080540a76396Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
1080640a76396Smrgif test $am_cv_make_support_nested_variables = yes; then
1080740a76396Smrg    AM_V='$(V)'
1080840a76396Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1080940a76396Smrgelse
1081040a76396Smrg  AM_V=$AM_DEFAULT_VERBOSITY
1081140a76396Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1081240a76396Smrgfi
108136f5dd5c2SmrgAM_BACKSLASH='\'
10814a0195d5fSmrg
10815a0195d5fSmrg
10816a0195d5fSmrg
108172ab73d9fSmrg# Checks for system functions
108182ab73d9fSmrgfor ac_func in usleep
108192ab73d9fSmrgdo :
108202ab73d9fSmrg  ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
108212ab73d9fSmrgif test "x$ac_cv_func_usleep" = xyes; then :
108222ab73d9fSmrg  cat >>confdefs.h <<_ACEOF
108232ab73d9fSmrg#define HAVE_USLEEP 1
108242ab73d9fSmrg_ACEOF
10825a0195d5fSmrg
108262ab73d9fSmrgfi
10827a0195d5fSmrgdone
10828a0195d5fSmrg
108292ab73d9fSmrg
108302ab73d9fSmrg# Checks for pkg-config packages
108312ab73d9fSmrg
108322ab73d9fSmrgpkg_failed=no
108332ab73d9fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSET" >&5
108342ab73d9fSmrg$as_echo_n "checking for XSET... " >&6; }
108352ab73d9fSmrg
108362ab73d9fSmrgif test -n "$XSET_CFLAGS"; then
108372ab73d9fSmrg    pkg_cv_XSET_CFLAGS="$XSET_CFLAGS"
108382ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
108392ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
10840ff6cf368Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
10841ff6cf368Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
108422ab73d9fSmrg  ac_status=$?
108432ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
108442ab73d9fSmrg  test $ac_status = 0; }; then
10845ff6cf368Smrg  pkg_cv_XSET_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xmuu" 2>/dev/null`
108462ab73d9fSmrgelse
108472ab73d9fSmrg  pkg_failed=yes
10848a0195d5fSmrgfi
108492ab73d9fSmrg else
108502ab73d9fSmrg    pkg_failed=untried
108516f5dd5c2Smrgfi
108522ab73d9fSmrgif test -n "$XSET_LIBS"; then
108532ab73d9fSmrg    pkg_cv_XSET_LIBS="$XSET_LIBS"
108542ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
108552ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
10856ff6cf368Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
10857ff6cf368Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
108582ab73d9fSmrg  ac_status=$?
108592ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
108602ab73d9fSmrg  test $ac_status = 0; }; then
10861ff6cf368Smrg  pkg_cv_XSET_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xmuu" 2>/dev/null`
10862a0195d5fSmrgelse
108632ab73d9fSmrg  pkg_failed=yes
108642ab73d9fSmrgfi
108652ab73d9fSmrg else
108662ab73d9fSmrg    pkg_failed=untried
10867a0195d5fSmrgfi
10868a0195d5fSmrg
10869a0195d5fSmrg
108706f5dd5c2Smrg
108712ab73d9fSmrgif test $pkg_failed = yes; then
108722ab73d9fSmrg
108732ab73d9fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
108742ab73d9fSmrg        _pkg_short_errors_supported=yes
108756f5dd5c2Smrgelse
108762ab73d9fSmrg        _pkg_short_errors_supported=no
108776f5dd5c2Smrgfi
108782ab73d9fSmrg        if test $_pkg_short_errors_supported = yes; then
10879ff6cf368Smrg	        XSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 xmuu" 2>&1`
108802ab73d9fSmrg        else
10881ff6cf368Smrg	        XSET_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 xmuu" 2>&1`
108822ab73d9fSmrg        fi
108832ab73d9fSmrg	# Put the nasty error message in config.log where it belongs
108842ab73d9fSmrg	echo "$XSET_PKG_ERRORS" >&5
108856f5dd5c2Smrg
10886ff6cf368Smrg	as_fn_error $? "Package requirements (xproto >= 7.0.17 xmuu) were not met:
108872ab73d9fSmrg
108882ab73d9fSmrg$XSET_PKG_ERRORS
108892ab73d9fSmrg
108902ab73d9fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
108912ab73d9fSmrginstalled software in a non-standard prefix.
108922ab73d9fSmrg
108932ab73d9fSmrgAlternatively, you may set the environment variables XSET_CFLAGS
108942ab73d9fSmrgand XSET_LIBS to avoid the need to call pkg-config.
108952ab73d9fSmrgSee the pkg-config man page for more details.
108962ab73d9fSmrg" "$LINENO" 5
108972ab73d9fSmrgelif test $pkg_failed = untried; then
108982ab73d9fSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
108992ab73d9fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
109002ab73d9fSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
109012ab73d9fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
109022ab73d9fSmrgpath to pkg-config.
109032ab73d9fSmrg
109042ab73d9fSmrgAlternatively, you may set the environment variables XSET_CFLAGS
109052ab73d9fSmrgand XSET_LIBS to avoid the need to call pkg-config.
109062ab73d9fSmrgSee the pkg-config man page for more details.
109072ab73d9fSmrg
109082ab73d9fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
109092ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
109106f5dd5c2Smrgelse
109112ab73d9fSmrg	XSET_CFLAGS=$pkg_cv_XSET_CFLAGS
109122ab73d9fSmrg	XSET_LIBS=$pkg_cv_XSET_LIBS
109132ab73d9fSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
109142ab73d9fSmrg$as_echo "yes" >&6; }
109152ab73d9fSmrg	:
109166f5dd5c2Smrgfi
109176f5dd5c2Smrg
109182ab73d9fSmrg# This is used below to allow <X11/Xlib.h> to be found
109192ab73d9fSmrg
109202ab73d9fSmrgpkg_failed=no
109212ab73d9fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_X11" >&5
109222ab73d9fSmrg$as_echo_n "checking for SET_X11... " >&6; }
109236f5dd5c2Smrg
109242ab73d9fSmrgif test -n "$SET_X11_CFLAGS"; then
109252ab73d9fSmrg    pkg_cv_SET_X11_CFLAGS="$SET_X11_CFLAGS"
109262ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
109272ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
109282ab73d9fSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
109292ab73d9fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
109302ab73d9fSmrg  ac_status=$?
109312ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
109322ab73d9fSmrg  test $ac_status = 0; }; then
109332ab73d9fSmrg  pkg_cv_SET_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
109342ab73d9fSmrgelse
109352ab73d9fSmrg  pkg_failed=yes
109366f5dd5c2Smrgfi
109372ab73d9fSmrg else
109382ab73d9fSmrg    pkg_failed=untried
109396f5dd5c2Smrgfi
109402ab73d9fSmrgif test -n "$SET_X11_LIBS"; then
109412ab73d9fSmrg    pkg_cv_SET_X11_LIBS="$SET_X11_LIBS"
109422ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
109432ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
109442ab73d9fSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
109452ab73d9fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
109462ab73d9fSmrg  ac_status=$?
109472ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
109482ab73d9fSmrg  test $ac_status = 0; }; then
109492ab73d9fSmrg  pkg_cv_SET_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
109506f5dd5c2Smrgelse
109512ab73d9fSmrg  pkg_failed=yes
109522ab73d9fSmrgfi
109532ab73d9fSmrg else
109542ab73d9fSmrg    pkg_failed=untried
109556f5dd5c2Smrgfi
109566f5dd5c2Smrg
109576f5dd5c2Smrg
109582ab73d9fSmrg
109592ab73d9fSmrgif test $pkg_failed = yes; then
109602ab73d9fSmrg
109612ab73d9fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
109622ab73d9fSmrg        _pkg_short_errors_supported=yes
109632ab73d9fSmrgelse
109642ab73d9fSmrg        _pkg_short_errors_supported=no
10965a0195d5fSmrgfi
10966a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
10967a0195d5fSmrg	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
10968a0195d5fSmrg        else
10969a0195d5fSmrg	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
10970a0195d5fSmrg        fi
10971a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
10972a0195d5fSmrg	echo "$SET_X11_PKG_ERRORS" >&5
10973a0195d5fSmrg
109742ab73d9fSmrg	as_fn_error $? "Package requirements (x11) were not met:
10975a0195d5fSmrg
10976a0195d5fSmrg$SET_X11_PKG_ERRORS
10977a0195d5fSmrg
10978a0195d5fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
10979a0195d5fSmrginstalled software in a non-standard prefix.
10980a0195d5fSmrg
10981a0195d5fSmrgAlternatively, you may set the environment variables SET_X11_CFLAGS
10982a0195d5fSmrgand SET_X11_LIBS to avoid the need to call pkg-config.
10983a0195d5fSmrgSee the pkg-config man page for more details.
109846f5dd5c2Smrg" "$LINENO" 5
10985a0195d5fSmrgelif test $pkg_failed = untried; then
109866f5dd5c2Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
109876600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
109882ab73d9fSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10989a0195d5fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
10990a0195d5fSmrgpath to pkg-config.
10991a0195d5fSmrg
10992a0195d5fSmrgAlternatively, you may set the environment variables SET_X11_CFLAGS
10993a0195d5fSmrgand SET_X11_LIBS to avoid the need to call pkg-config.
10994a0195d5fSmrgSee the pkg-config man page for more details.
10995a0195d5fSmrg
10996a0195d5fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
109972ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
10998a0195d5fSmrgelse
10999a0195d5fSmrg	SET_X11_CFLAGS=$pkg_cv_SET_X11_CFLAGS
11000a0195d5fSmrg	SET_X11_LIBS=$pkg_cv_SET_X11_LIBS
110016f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
110026600fe5bSmrg$as_echo "yes" >&6; }
11003a0195d5fSmrg	:
11004a0195d5fSmrgfi
11005a0195d5fSmrg
11006a0195d5fSmrg
11007a0195d5fSmrgpkg_failed=no
110086f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XEXT" >&5
110096600fe5bSmrg$as_echo_n "checking for SET_XEXT... " >&6; }
11010a0195d5fSmrg
11011a0195d5fSmrgif test -n "$SET_XEXT_CFLAGS"; then
11012a0195d5fSmrg    pkg_cv_SET_XEXT_CFLAGS="$SET_XEXT_CFLAGS"
11013a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11014a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
110156f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11016a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11017a0195d5fSmrg  ac_status=$?
110186f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
110196f5dd5c2Smrg  test $ac_status = 0; }; then
11020a0195d5fSmrg  pkg_cv_SET_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
11021a0195d5fSmrgelse
11022a0195d5fSmrg  pkg_failed=yes
11023a0195d5fSmrgfi
11024a0195d5fSmrg else
11025a0195d5fSmrg    pkg_failed=untried
11026a0195d5fSmrgfi
11027a0195d5fSmrgif test -n "$SET_XEXT_LIBS"; then
11028a0195d5fSmrg    pkg_cv_SET_XEXT_LIBS="$SET_XEXT_LIBS"
11029a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11030a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
110316f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11032a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11033a0195d5fSmrg  ac_status=$?
110346f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
110356f5dd5c2Smrg  test $ac_status = 0; }; then
11036a0195d5fSmrg  pkg_cv_SET_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
11037a0195d5fSmrgelse
11038a0195d5fSmrg  pkg_failed=yes
11039a0195d5fSmrgfi
11040a0195d5fSmrg else
11041a0195d5fSmrg    pkg_failed=untried
11042a0195d5fSmrgfi
11043a0195d5fSmrg
11044a0195d5fSmrg
11045a0195d5fSmrg
11046a0195d5fSmrgif test $pkg_failed = yes; then
11047a0195d5fSmrg
11048a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11049a0195d5fSmrg        _pkg_short_errors_supported=yes
11050a0195d5fSmrgelse
11051a0195d5fSmrg        _pkg_short_errors_supported=no
11052a0195d5fSmrgfi
11053a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
11054a0195d5fSmrg	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1`
11055a0195d5fSmrg        else
11056a0195d5fSmrg	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1`
11057a0195d5fSmrg        fi
11058a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
11059a0195d5fSmrg	echo "$SET_XEXT_PKG_ERRORS" >&5
11060a0195d5fSmrg
110616f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110626600fe5bSmrg$as_echo "no" >&6; }
11063a0195d5fSmrg                echo "not found"
11064a0195d5fSmrgelif test $pkg_failed = untried; then
11065a0195d5fSmrg	echo "not found"
11066a0195d5fSmrgelse
11067a0195d5fSmrg	SET_XEXT_CFLAGS=$pkg_cv_SET_XEXT_CFLAGS
11068a0195d5fSmrg	SET_XEXT_LIBS=$pkg_cv_SET_XEXT_LIBS
110696f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
110706600fe5bSmrg$as_echo "yes" >&6; }
11071a0195d5fSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
11072a0195d5fSmrg	CPPFLAGS="$CPPFLAGS $SET_XEXT_CFLAGS $SET_X11_CFLAGS"
110736f5dd5c2Smrg	for ac_header in X11/extensions/dpms.h X11/extensions/MITMisc.h
110746f5dd5c2Smrgdo :
110756f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
110766f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
110776f5dd5c2Smrg"
110782ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11079a0195d5fSmrg  cat >>confdefs.h <<_ACEOF
110806600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11081a0195d5fSmrg_ACEOF
11082a0195d5fSmrg
11083a0195d5fSmrgfi
11084a0195d5fSmrg
11085a0195d5fSmrgdone
11086a0195d5fSmrg
11087a0195d5fSmrg	CPPFLAGS="$SAVE_CPPFLAGS"
11088a0195d5fSmrgfi
11089a0195d5fSmrg
11090a0195d5fSmrg
11091a0195d5fSmrgpkg_failed=no
110926f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XKB" >&5
110936600fe5bSmrg$as_echo_n "checking for SET_XKB... " >&6; }
11094a0195d5fSmrg
11095a0195d5fSmrgif test -n "$SET_XKB_CFLAGS"; then
11096a0195d5fSmrg    pkg_cv_SET_XKB_CFLAGS="$SET_XKB_CFLAGS"
11097a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11098a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
110996f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11100a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11101a0195d5fSmrg  ac_status=$?
111026f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
111036f5dd5c2Smrg  test $ac_status = 0; }; then
11104a0195d5fSmrg  pkg_cv_SET_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
11105a0195d5fSmrgelse
11106a0195d5fSmrg  pkg_failed=yes
11107a0195d5fSmrgfi
11108a0195d5fSmrg else
11109a0195d5fSmrg    pkg_failed=untried
11110a0195d5fSmrgfi
11111a0195d5fSmrgif test -n "$SET_XKB_LIBS"; then
11112a0195d5fSmrg    pkg_cv_SET_XKB_LIBS="$SET_XKB_LIBS"
11113a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11114a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
111156f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11116a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11117a0195d5fSmrg  ac_status=$?
111186f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
111196f5dd5c2Smrg  test $ac_status = 0; }; then
11120a0195d5fSmrg  pkg_cv_SET_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11121a0195d5fSmrgelse
11122a0195d5fSmrg  pkg_failed=yes
11123a0195d5fSmrgfi
11124a0195d5fSmrg else
11125a0195d5fSmrg    pkg_failed=untried
11126a0195d5fSmrgfi
11127a0195d5fSmrg
11128a0195d5fSmrg
11129a0195d5fSmrg
11130a0195d5fSmrgif test $pkg_failed = yes; then
11131a0195d5fSmrg
11132a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11133a0195d5fSmrg        _pkg_short_errors_supported=yes
11134a0195d5fSmrgelse
11135a0195d5fSmrg        _pkg_short_errors_supported=no
11136a0195d5fSmrgfi
11137a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
11138a0195d5fSmrg	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
11139a0195d5fSmrg        else
11140a0195d5fSmrg	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
11141a0195d5fSmrg        fi
11142a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
11143a0195d5fSmrg	echo "$SET_XKB_PKG_ERRORS" >&5
11144a0195d5fSmrg
111456f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
111466600fe5bSmrg$as_echo "no" >&6; }
11147a0195d5fSmrg                echo "not found"
11148a0195d5fSmrgelif test $pkg_failed = untried; then
11149a0195d5fSmrg	echo "not found"
11150a0195d5fSmrgelse
11151a0195d5fSmrg	SET_XKB_CFLAGS=$pkg_cv_SET_XKB_CFLAGS
11152a0195d5fSmrg	SET_XKB_LIBS=$pkg_cv_SET_XKB_LIBS
111536f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
111546600fe5bSmrg$as_echo "yes" >&6; }
11155a0195d5fSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
11156a0195d5fSmrg	CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS"
111576f5dd5c2Smrg	for ac_header in X11/XKBlib.h
111586f5dd5c2Smrgdo :
111596f5dd5c2Smrg  ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h>
111606f5dd5c2Smrg"
111612ab73d9fSmrgif test "x$ac_cv_header_X11_XKBlib_h" = xyes; then :
11162a0195d5fSmrg  cat >>confdefs.h <<_ACEOF
111636f5dd5c2Smrg#define HAVE_X11_XKBLIB_H 1
11164a0195d5fSmrg_ACEOF
11165a0195d5fSmrg
11166a0195d5fSmrgfi
11167a0195d5fSmrg
11168a0195d5fSmrgdone
11169a0195d5fSmrg
11170a0195d5fSmrg	CPPFLAGS="$SAVE_CPPFLAGS"
11171a0195d5fSmrgfi
11172a0195d5fSmrg
11173a0195d5fSmrg
111746f5dd5c2Smrg# Check whether --with-xf86misc was given.
111756f5dd5c2Smrgif test "${with_xf86misc+set}" = set; then :
111766f5dd5c2Smrg  withval=$with_xf86misc; USE_XF86MISC="$withval"
111776f5dd5c2Smrgelse
111786f5dd5c2Smrg  USE_XF86MISC="yes"
111796f5dd5c2Smrgfi
111806f5dd5c2Smrg
111816f5dd5c2Smrgif test "x$USE_XF86MISC" != "xno" ; then
111826f5dd5c2Smrg
11183a0195d5fSmrgpkg_failed=no
111846f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XF86MISC" >&5
111856600fe5bSmrg$as_echo_n "checking for SET_XF86MISC... " >&6; }
11186a0195d5fSmrg
11187a0195d5fSmrgif test -n "$SET_XF86MISC_CFLAGS"; then
11188a0195d5fSmrg    pkg_cv_SET_XF86MISC_CFLAGS="$SET_XF86MISC_CFLAGS"
11189a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11190a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
111916f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11192a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11193a0195d5fSmrg  ac_status=$?
111946f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
111956f5dd5c2Smrg  test $ac_status = 0; }; then
11196a0195d5fSmrg  pkg_cv_SET_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null`
11197a0195d5fSmrgelse
11198a0195d5fSmrg  pkg_failed=yes
11199a0195d5fSmrgfi
11200a0195d5fSmrg else
11201a0195d5fSmrg    pkg_failed=untried
11202a0195d5fSmrgfi
11203a0195d5fSmrgif test -n "$SET_XF86MISC_LIBS"; then
11204a0195d5fSmrg    pkg_cv_SET_XF86MISC_LIBS="$SET_XF86MISC_LIBS"
11205a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11206a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
112076f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11208a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11209a0195d5fSmrg  ac_status=$?
112106f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
112116f5dd5c2Smrg  test $ac_status = 0; }; then
11212a0195d5fSmrg  pkg_cv_SET_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null`
11213a0195d5fSmrgelse
11214a0195d5fSmrg  pkg_failed=yes
11215a0195d5fSmrgfi
11216a0195d5fSmrg else
11217a0195d5fSmrg    pkg_failed=untried
11218a0195d5fSmrgfi
11219a0195d5fSmrg
11220a0195d5fSmrg
11221a0195d5fSmrg
11222a0195d5fSmrgif test $pkg_failed = yes; then
11223a0195d5fSmrg
11224a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11225a0195d5fSmrg        _pkg_short_errors_supported=yes
11226a0195d5fSmrgelse
11227a0195d5fSmrg        _pkg_short_errors_supported=no
11228a0195d5fSmrgfi
11229a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
11230a0195d5fSmrg	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86misc" 2>&1`
11231a0195d5fSmrg        else
11232a0195d5fSmrg	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86misc" 2>&1`
11233a0195d5fSmrg        fi
11234a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
11235a0195d5fSmrg	echo "$SET_XF86MISC_PKG_ERRORS" >&5
11236a0195d5fSmrg
112376f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
112386600fe5bSmrg$as_echo "no" >&6; }
11239a0195d5fSmrg                echo "not found"
11240a0195d5fSmrgelif test $pkg_failed = untried; then
11241a0195d5fSmrg	echo "not found"
11242a0195d5fSmrgelse
11243a0195d5fSmrg	SET_XF86MISC_CFLAGS=$pkg_cv_SET_XF86MISC_CFLAGS
11244a0195d5fSmrg	SET_XF86MISC_LIBS=$pkg_cv_SET_XF86MISC_LIBS
112456f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
112466600fe5bSmrg$as_echo "yes" >&6; }
11247a0195d5fSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
112486f5dd5c2Smrg		CPPFLAGS="$CPPFLAGS $SET_XF86MISC_CFLAGS $SET_X11_CFLAGS"
112496f5dd5c2Smrg		for ac_header in X11/extensions/xf86misc.h X11/extensions/xf86mscstr.h
112506f5dd5c2Smrgdo :
112516f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
112526f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
11253a0195d5fSmrg#include <X11/Xproto.h>
112546f5dd5c2Smrg"
112552ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11256a0195d5fSmrg  cat >>confdefs.h <<_ACEOF
112576600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11258a0195d5fSmrg_ACEOF
11259a0195d5fSmrg
11260a0195d5fSmrgfi
11261a0195d5fSmrg
11262a0195d5fSmrgdone
11263a0195d5fSmrg
112646f5dd5c2Smrg		CPPFLAGS="$SAVE_CPPFLAGS"
112656f5dd5c2Smrgfi
112666f5dd5c2Smrgelse
112676f5dd5c2Smrg        echo "without xf86misc"
112686f5dd5c2Smrgfi
112696f5dd5c2Smrg
112706f5dd5c2Smrg
112716f5dd5c2Smrg# Check whether --with-fontcache was given.
112726f5dd5c2Smrgif test "${with_fontcache+set}" = set; then :
112736f5dd5c2Smrg  withval=$with_fontcache; USE_XFONTCACHE="$withval"
112746f5dd5c2Smrgelse
112756f5dd5c2Smrg  USE_XFONTCACHE="yes"
11276a0195d5fSmrgfi
11277a0195d5fSmrg
112786f5dd5c2Smrgif test "x$USE_XFONTCACHE" != "xno" ; then
11279a0195d5fSmrg
11280a0195d5fSmrgpkg_failed=no
112816f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_FONTCACHE" >&5
112826600fe5bSmrg$as_echo_n "checking for SET_FONTCACHE... " >&6; }
11283a0195d5fSmrg
11284a0195d5fSmrgif test -n "$SET_FONTCACHE_CFLAGS"; then
11285a0195d5fSmrg    pkg_cv_SET_FONTCACHE_CFLAGS="$SET_FONTCACHE_CFLAGS"
11286a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11287a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
112886f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
11289a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
11290a0195d5fSmrg  ac_status=$?
112916f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
112926f5dd5c2Smrg  test $ac_status = 0; }; then
11293a0195d5fSmrg  pkg_cv_SET_FONTCACHE_CFLAGS=`$PKG_CONFIG --cflags "xfontcache" 2>/dev/null`
11294a0195d5fSmrgelse
11295a0195d5fSmrg  pkg_failed=yes
11296a0195d5fSmrgfi
11297a0195d5fSmrg else
11298a0195d5fSmrg    pkg_failed=untried
11299a0195d5fSmrgfi
11300a0195d5fSmrgif test -n "$SET_FONTCACHE_LIBS"; then
11301a0195d5fSmrg    pkg_cv_SET_FONTCACHE_LIBS="$SET_FONTCACHE_LIBS"
11302a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11303a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
113046f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
11305a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
11306a0195d5fSmrg  ac_status=$?
113076f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
113086f5dd5c2Smrg  test $ac_status = 0; }; then
113096f5dd5c2Smrg  pkg_cv_SET_FONTCACHE_LIBS=`$PKG_CONFIG --libs "xfontcache" 2>/dev/null`
113106600fe5bSmrgelse
113116600fe5bSmrg  pkg_failed=yes
113126600fe5bSmrgfi
113136600fe5bSmrg else
113146600fe5bSmrg    pkg_failed=untried
113156600fe5bSmrgfi
11316a0195d5fSmrg
11317a0195d5fSmrg
11318a0195d5fSmrg
113196600fe5bSmrgif test $pkg_failed = yes; then
11320a0195d5fSmrg
113216600fe5bSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
113226600fe5bSmrg        _pkg_short_errors_supported=yes
113236600fe5bSmrgelse
113246600fe5bSmrg        _pkg_short_errors_supported=no
113256600fe5bSmrgfi
113266600fe5bSmrg        if test $_pkg_short_errors_supported = yes; then
113276f5dd5c2Smrg	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xfontcache" 2>&1`
113286600fe5bSmrg        else
113296f5dd5c2Smrg	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xfontcache" 2>&1`
113306600fe5bSmrg        fi
113316600fe5bSmrg	# Put the nasty error message in config.log where it belongs
113326f5dd5c2Smrg	echo "$SET_FONTCACHE_PKG_ERRORS" >&5
11333a0195d5fSmrg
113346f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
113356600fe5bSmrg$as_echo "no" >&6; }
113366600fe5bSmrg                echo "not found"
113376600fe5bSmrgelif test $pkg_failed = untried; then
113386600fe5bSmrg	echo "not found"
113396600fe5bSmrgelse
113406f5dd5c2Smrg	SET_FONTCACHE_CFLAGS=$pkg_cv_SET_FONTCACHE_CFLAGS
113416f5dd5c2Smrg	SET_FONTCACHE_LIBS=$pkg_cv_SET_FONTCACHE_LIBS
113426f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
113436600fe5bSmrg$as_echo "yes" >&6; }
113446600fe5bSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
113456f5dd5c2Smrg		CPPFLAGS="$CPPFLAGS $SET_FONTCACHE_CFLAGS $SET_X11_CFLAGS"
113466f5dd5c2Smrg		for ac_header in X11/extensions/fontcache.h X11/extensions/fontcacheP.h
113476f5dd5c2Smrgdo :
113486f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
113496f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
113506f5dd5c2Smrg"
113512ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
113526600fe5bSmrg  cat >>confdefs.h <<_ACEOF
113536600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11354a0195d5fSmrg_ACEOF
11355a0195d5fSmrg
113566600fe5bSmrgfi
11357a0195d5fSmrg
113586600fe5bSmrgdone
11359a0195d5fSmrg
113606f5dd5c2Smrg		CPPFLAGS="$SAVE_CPPFLAGS"
113616f5dd5c2Smrgfi
113626f5dd5c2Smrgelse
113636f5dd5c2Smrg	echo "without fontcache"
113646600fe5bSmrgfi
113656600fe5bSmrg
113666f5dd5c2SmrgXSET_CFLAGS="$XSET_CFLAGS $SET_XEXT_CFLAGS $SET_XKB_CFLAGS $SET_XF86MISC_CFLAGS $SET_FONTCACHE_CFLAGS"
113676f5dd5c2SmrgXSET_LIBS="$XSET_LIBS $SET_XEXT_LIBS $SET_XKB_LIBS $SET_XF86MISC_LIBS $SET_FONTCACHE_LIBS"
11368a0195d5fSmrg
11369a0195d5fSmrg
11370ff6cf368Smrgac_config_files="$ac_config_files Makefile man/Makefile"
11371a0195d5fSmrg
11372a0195d5fSmrgcat >confcache <<\_ACEOF
11373a0195d5fSmrg# This file is a shell script that caches the results of configure
11374a0195d5fSmrg# tests run on this system so they can be shared between configure
11375a0195d5fSmrg# scripts and configure runs, see configure's option --config-cache.
11376a0195d5fSmrg# It is not useful on other systems.  If it contains results you don't
11377a0195d5fSmrg# want to keep, you may remove or edit it.
11378a0195d5fSmrg#
11379a0195d5fSmrg# config.status only pays attention to the cache file if you give it
11380a0195d5fSmrg# the --recheck option to rerun configure.
11381a0195d5fSmrg#
11382a0195d5fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
11383a0195d5fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
11384a0195d5fSmrg# following values.
11385a0195d5fSmrg
11386a0195d5fSmrg_ACEOF
11387a0195d5fSmrg
11388a0195d5fSmrg# The following way of writing the cache mishandles newlines in values,
11389a0195d5fSmrg# but we know of no workaround that is simple, portable, and efficient.
11390a0195d5fSmrg# So, we kill variables containing newlines.
11391a0195d5fSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
11392a0195d5fSmrg# and sets the high bit in the cache file unless we assign to the vars.
11393a0195d5fSmrg(
11394a0195d5fSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11395a0195d5fSmrg    eval ac_val=\$$ac_var
11396a0195d5fSmrg    case $ac_val in #(
11397a0195d5fSmrg    *${as_nl}*)
11398a0195d5fSmrg      case $ac_var in #(
113996f5dd5c2Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
114006600fe5bSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11401a0195d5fSmrg      esac
11402a0195d5fSmrg      case $ac_var in #(
11403a0195d5fSmrg      _ | IFS | as_nl) ;; #(
114046600fe5bSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
114056f5dd5c2Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
11406a0195d5fSmrg      esac ;;
11407a0195d5fSmrg    esac
11408a0195d5fSmrg  done
11409a0195d5fSmrg
11410a0195d5fSmrg  (set) 2>&1 |
11411a0195d5fSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11412a0195d5fSmrg    *${as_nl}ac_space=\ *)
114136f5dd5c2Smrg      # `set' does not quote correctly, so add quotes: double-quote
114146f5dd5c2Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
11415a0195d5fSmrg      sed -n \
11416a0195d5fSmrg	"s/'/'\\\\''/g;
11417a0195d5fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11418a0195d5fSmrg      ;; #(
11419a0195d5fSmrg    *)
11420a0195d5fSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
11421a0195d5fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11422a0195d5fSmrg      ;;
11423a0195d5fSmrg    esac |
11424a0195d5fSmrg    sort
11425a0195d5fSmrg) |
11426a0195d5fSmrg  sed '
11427a0195d5fSmrg     /^ac_cv_env_/b end
11428a0195d5fSmrg     t clear
11429a0195d5fSmrg     :clear
11430a0195d5fSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11431a0195d5fSmrg     t end
11432a0195d5fSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11433a0195d5fSmrg     :end' >>confcache
11434a0195d5fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11435a0195d5fSmrg  if test -w "$cache_file"; then
114362ab73d9fSmrg    if test "x$cache_file" != "x/dev/null"; then
114376f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
114386600fe5bSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
114392ab73d9fSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
114402ab73d9fSmrg	cat confcache >"$cache_file"
114412ab73d9fSmrg      else
114422ab73d9fSmrg        case $cache_file in #(
114432ab73d9fSmrg        */* | ?:*)
114442ab73d9fSmrg	  mv -f confcache "$cache_file"$$ &&
114452ab73d9fSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
114462ab73d9fSmrg        *)
114472ab73d9fSmrg	  mv -f confcache "$cache_file" ;;
114482ab73d9fSmrg	esac
114492ab73d9fSmrg      fi
114502ab73d9fSmrg    fi
11451a0195d5fSmrg  else
114526f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
114536600fe5bSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11454a0195d5fSmrg  fi
11455a0195d5fSmrgfi
11456a0195d5fSmrgrm -f confcache
11457a0195d5fSmrg
11458a0195d5fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
11459a0195d5fSmrg# Let make expand exec_prefix.
11460a0195d5fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11461a0195d5fSmrg
11462a0195d5fSmrgDEFS=-DHAVE_CONFIG_H
11463a0195d5fSmrg
11464a0195d5fSmrgac_libobjs=
11465a0195d5fSmrgac_ltlibobjs=
114662ab73d9fSmrgU=
11467a0195d5fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11468a0195d5fSmrg  # 1. Remove the extension, and $U if already installed.
11469a0195d5fSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
114706600fe5bSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11471a0195d5fSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11472a0195d5fSmrg  #    will be set to the directory where LIBOBJS objects are built.
114736f5dd5c2Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
114746f5dd5c2Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11475a0195d5fSmrgdone
11476a0195d5fSmrgLIBOBJS=$ac_libobjs
11477a0195d5fSmrg
11478a0195d5fSmrgLTLIBOBJS=$ac_ltlibobjs
11479a0195d5fSmrg
11480a0195d5fSmrg
1148140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
1148240a76396Smrg$as_echo_n "checking that generated files are newer than configure... " >&6; }
1148340a76396Smrg   if test -n "$am_sleep_pid"; then
1148440a76396Smrg     # Hide warnings about reused PIDs.
1148540a76396Smrg     wait $am_sleep_pid 2>/dev/null
1148640a76396Smrg   fi
1148740a76396Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
1148840a76396Smrg$as_echo "done" >&6; }
1148940a76396Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1149040a76396Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
1149140a76396SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1149240a76396Smrgfi
1149340a76396Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1149440a76396Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1149540a76396SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1149640a76396Smrgfi
114976600fe5bSmrg if test -n "$EXEEXT"; then
114986600fe5bSmrg  am__EXEEXT_TRUE=
114996600fe5bSmrg  am__EXEEXT_FALSE='#'
115006600fe5bSmrgelse
115016600fe5bSmrg  am__EXEEXT_TRUE='#'
115026600fe5bSmrg  am__EXEEXT_FALSE=
115036600fe5bSmrgfi
115046600fe5bSmrg
11505a0195d5fSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
115062ab73d9fSmrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
115076f5dd5c2SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
11508a0195d5fSmrgfi
11509a0195d5fSmrg
115102ab73d9fSmrg: "${CONFIG_STATUS=./config.status}"
115116600fe5bSmrgac_write_fail=0
11512a0195d5fSmrgac_clean_files_save=$ac_clean_files
11513a0195d5fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
115146f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
115156600fe5bSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
115166f5dd5c2Smrgas_write_fail=0
115176f5dd5c2Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11518a0195d5fSmrg#! $SHELL
11519a0195d5fSmrg# Generated by $as_me.
11520a0195d5fSmrg# Run this file to recreate the current configuration.
11521a0195d5fSmrg# Compiler output produced by configure, useful for debugging
11522a0195d5fSmrg# configure, is in config.log if it exists.
11523a0195d5fSmrg
11524a0195d5fSmrgdebug=false
11525a0195d5fSmrgac_cs_recheck=false
11526a0195d5fSmrgac_cs_silent=false
11527a0195d5fSmrg
115286f5dd5c2SmrgSHELL=\${CONFIG_SHELL-$SHELL}
115296f5dd5c2Smrgexport SHELL
115306f5dd5c2Smrg_ASEOF
115316f5dd5c2Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
115326f5dd5c2Smrg## -------------------- ##
115336f5dd5c2Smrg## M4sh Initialization. ##
115346f5dd5c2Smrg## -------------------- ##
11535a0195d5fSmrg
11536a0195d5fSmrg# Be more Bourne compatible
11537a0195d5fSmrgDUALCASE=1; export DUALCASE # for MKS sh
115386f5dd5c2Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11539a0195d5fSmrg  emulate sh
11540a0195d5fSmrg  NULLCMD=:
115416600fe5bSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11542a0195d5fSmrg  # is contrary to our usage.  Disable this feature.
11543a0195d5fSmrg  alias -g '${1+"$@"}'='"$@"'
11544a0195d5fSmrg  setopt NO_GLOB_SUBST
11545a0195d5fSmrgelse
115466f5dd5c2Smrg  case `(set -o) 2>/dev/null` in #(
115476f5dd5c2Smrg  *posix*) :
115486f5dd5c2Smrg    set -o posix ;; #(
115496f5dd5c2Smrg  *) :
115506f5dd5c2Smrg     ;;
11551a0195d5fSmrgesac
11552a0195d5fSmrgfi
11553a0195d5fSmrg
11554a0195d5fSmrg
115556600fe5bSmrgas_nl='
115566600fe5bSmrg'
115576600fe5bSmrgexport as_nl
115586600fe5bSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
115596600fe5bSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
115606600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
115616600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
115626f5dd5c2Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
115636f5dd5c2Smrg# but without wasting forks for bash or zsh.
115646f5dd5c2Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
115656f5dd5c2Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
115666f5dd5c2Smrg  as_echo='print -r --'
115676f5dd5c2Smrg  as_echo_n='print -rn --'
115686f5dd5c2Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
115696600fe5bSmrg  as_echo='printf %s\n'
115706600fe5bSmrg  as_echo_n='printf %s'
115716600fe5bSmrgelse
115726600fe5bSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
115736600fe5bSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
115746600fe5bSmrg    as_echo_n='/usr/ucb/echo -n'
11575a0195d5fSmrg  else
115766600fe5bSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
115776600fe5bSmrg    as_echo_n_body='eval
115786600fe5bSmrg      arg=$1;
115796f5dd5c2Smrg      case $arg in #(
115806600fe5bSmrg      *"$as_nl"*)
115816600fe5bSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
115826600fe5bSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
115836600fe5bSmrg      esac;
115846600fe5bSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
115856600fe5bSmrg    '
115866600fe5bSmrg    export as_echo_n_body
115876600fe5bSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
11588a0195d5fSmrg  fi
115896600fe5bSmrg  export as_echo_body
115906600fe5bSmrg  as_echo='sh -c $as_echo_body as_echo'
115916600fe5bSmrgfi
115926600fe5bSmrg
115936600fe5bSmrg# The user is always right.
115946600fe5bSmrgif test "${PATH_SEPARATOR+set}" != set; then
115956600fe5bSmrg  PATH_SEPARATOR=:
115966600fe5bSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
115976600fe5bSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
115986600fe5bSmrg      PATH_SEPARATOR=';'
115996600fe5bSmrg  }
11600a0195d5fSmrgfi
11601a0195d5fSmrg
11602a0195d5fSmrg
11603a0195d5fSmrg# IFS
11604a0195d5fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
11605a0195d5fSmrg# there to prevent editors from complaining about space-tab.
11606a0195d5fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11607a0195d5fSmrg# splitting by setting IFS to empty value.)
11608a0195d5fSmrgIFS=" ""	$as_nl"
11609a0195d5fSmrg
11610a0195d5fSmrg# Find who we are.  Look in the path if we contain no directory separator.
116112ab73d9fSmrgas_myself=
116126f5dd5c2Smrgcase $0 in #((
11613a0195d5fSmrg  *[\\/]* ) as_myself=$0 ;;
11614a0195d5fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615a0195d5fSmrgfor as_dir in $PATH
11616a0195d5fSmrgdo
11617a0195d5fSmrg  IFS=$as_save_IFS
11618a0195d5fSmrg  test -z "$as_dir" && as_dir=.
116196f5dd5c2Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116206f5dd5c2Smrg  done
11621a0195d5fSmrgIFS=$as_save_IFS
11622a0195d5fSmrg
11623a0195d5fSmrg     ;;
11624a0195d5fSmrgesac
11625a0195d5fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
11626a0195d5fSmrg# in which case we are not to be found in the path.
11627a0195d5fSmrgif test "x$as_myself" = x; then
11628a0195d5fSmrg  as_myself=$0
11629a0195d5fSmrgfi
11630a0195d5fSmrgif test ! -f "$as_myself"; then
116316600fe5bSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116326f5dd5c2Smrg  exit 1
11633a0195d5fSmrgfi
11634a0195d5fSmrg
116356f5dd5c2Smrg# Unset variables that we do not need and which cause bugs (e.g. in
116366f5dd5c2Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116376f5dd5c2Smrg# suppresses any "Segmentation fault" message there.  '((' could
116386f5dd5c2Smrg# trigger a bug in pdksh 5.2.14.
116396f5dd5c2Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
116406f5dd5c2Smrgdo eval test x\${$as_var+set} = xset \
116416f5dd5c2Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11642a0195d5fSmrgdone
11643a0195d5fSmrgPS1='$ '
11644a0195d5fSmrgPS2='> '
11645a0195d5fSmrgPS4='+ '
11646a0195d5fSmrg
11647a0195d5fSmrg# NLS nuisances.
116486600fe5bSmrgLC_ALL=C
116496600fe5bSmrgexport LC_ALL
116506600fe5bSmrgLANGUAGE=C
116516600fe5bSmrgexport LANGUAGE
11652a0195d5fSmrg
116536f5dd5c2Smrg# CDPATH.
116546f5dd5c2Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
116556f5dd5c2Smrg
116566f5dd5c2Smrg
116572ab73d9fSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
116582ab73d9fSmrg# ----------------------------------------
116596f5dd5c2Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
116606f5dd5c2Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
116612ab73d9fSmrg# script with STATUS, using 1 if that was 0.
116626f5dd5c2Smrgas_fn_error ()
116636f5dd5c2Smrg{
116642ab73d9fSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
116652ab73d9fSmrg  if test "$4"; then
116662ab73d9fSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
116672ab73d9fSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
116686f5dd5c2Smrg  fi
116692ab73d9fSmrg  $as_echo "$as_me: error: $2" >&2
116706f5dd5c2Smrg  as_fn_exit $as_status
116716f5dd5c2Smrg} # as_fn_error
116726f5dd5c2Smrg
116736f5dd5c2Smrg
116746f5dd5c2Smrg# as_fn_set_status STATUS
116756f5dd5c2Smrg# -----------------------
116766f5dd5c2Smrg# Set $? to STATUS, without forking.
116776f5dd5c2Smrgas_fn_set_status ()
116786f5dd5c2Smrg{
116796f5dd5c2Smrg  return $1
116806f5dd5c2Smrg} # as_fn_set_status
116816f5dd5c2Smrg
116826f5dd5c2Smrg# as_fn_exit STATUS
116836f5dd5c2Smrg# -----------------
116846f5dd5c2Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
116856f5dd5c2Smrgas_fn_exit ()
116866f5dd5c2Smrg{
116876f5dd5c2Smrg  set +e
116886f5dd5c2Smrg  as_fn_set_status $1
116896f5dd5c2Smrg  exit $1
116906f5dd5c2Smrg} # as_fn_exit
116916f5dd5c2Smrg
116926f5dd5c2Smrg# as_fn_unset VAR
116936f5dd5c2Smrg# ---------------
116946f5dd5c2Smrg# Portably unset VAR.
116956f5dd5c2Smrgas_fn_unset ()
116966f5dd5c2Smrg{
116976f5dd5c2Smrg  { eval $1=; unset $1;}
116986f5dd5c2Smrg}
116996f5dd5c2Smrgas_unset=as_fn_unset
117006f5dd5c2Smrg# as_fn_append VAR VALUE
117016f5dd5c2Smrg# ----------------------
117026f5dd5c2Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
117036f5dd5c2Smrg# advantage of any shell optimizations that allow amortized linear growth over
117046f5dd5c2Smrg# repeated appends, instead of the typical quadratic growth present in naive
117056f5dd5c2Smrg# implementations.
117066f5dd5c2Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
117076f5dd5c2Smrg  eval 'as_fn_append ()
117086f5dd5c2Smrg  {
117096f5dd5c2Smrg    eval $1+=\$2
117106f5dd5c2Smrg  }'
117116f5dd5c2Smrgelse
117126f5dd5c2Smrg  as_fn_append ()
117136f5dd5c2Smrg  {
117146f5dd5c2Smrg    eval $1=\$$1\$2
117156f5dd5c2Smrg  }
117166f5dd5c2Smrgfi # as_fn_append
117176f5dd5c2Smrg
117186f5dd5c2Smrg# as_fn_arith ARG...
117196f5dd5c2Smrg# ------------------
117206f5dd5c2Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
117216f5dd5c2Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
117226f5dd5c2Smrg# must be portable across $(()) and expr.
117236f5dd5c2Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
117246f5dd5c2Smrg  eval 'as_fn_arith ()
117256f5dd5c2Smrg  {
117266f5dd5c2Smrg    as_val=$(( $* ))
117276f5dd5c2Smrg  }'
117286f5dd5c2Smrgelse
117296f5dd5c2Smrg  as_fn_arith ()
117306f5dd5c2Smrg  {
117316f5dd5c2Smrg    as_val=`expr "$@" || test $? -eq 1`
117326f5dd5c2Smrg  }
117336f5dd5c2Smrgfi # as_fn_arith
117346f5dd5c2Smrg
117356f5dd5c2Smrg
11736a0195d5fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
11737a0195d5fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11738a0195d5fSmrg  as_expr=expr
11739a0195d5fSmrgelse
11740a0195d5fSmrg  as_expr=false
11741a0195d5fSmrgfi
11742a0195d5fSmrg
11743a0195d5fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11744a0195d5fSmrg  as_basename=basename
11745a0195d5fSmrgelse
11746a0195d5fSmrg  as_basename=false
11747a0195d5fSmrgfi
11748a0195d5fSmrg
117496f5dd5c2Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
117506f5dd5c2Smrg  as_dirname=dirname
117516f5dd5c2Smrgelse
117526f5dd5c2Smrg  as_dirname=false
117536f5dd5c2Smrgfi
11754a0195d5fSmrg
11755a0195d5fSmrgas_me=`$as_basename -- "$0" ||
11756a0195d5fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11757a0195d5fSmrg	 X"$0" : 'X\(//\)$' \| \
11758a0195d5fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
117596600fe5bSmrg$as_echo X/"$0" |
11760a0195d5fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
11761a0195d5fSmrg	    s//\1/
11762a0195d5fSmrg	    q
11763a0195d5fSmrg	  }
11764a0195d5fSmrg	  /^X\/\(\/\/\)$/{
11765a0195d5fSmrg	    s//\1/
11766a0195d5fSmrg	    q
11767a0195d5fSmrg	  }
11768a0195d5fSmrg	  /^X\/\(\/\).*/{
11769a0195d5fSmrg	    s//\1/
11770a0195d5fSmrg	    q
11771a0195d5fSmrg	  }
11772a0195d5fSmrg	  s/.*/./; q'`
11773a0195d5fSmrg
117746f5dd5c2Smrg# Avoid depending upon Character Ranges.
117756f5dd5c2Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
117766f5dd5c2Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
117776f5dd5c2Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
117786f5dd5c2Smrgas_cr_digits='0123456789'
117796f5dd5c2Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
11780a0195d5fSmrg
11781a0195d5fSmrgECHO_C= ECHO_N= ECHO_T=
117826f5dd5c2Smrgcase `echo -n x` in #(((((
11783a0195d5fSmrg-n*)
117846f5dd5c2Smrg  case `echo 'xy\c'` in
11785a0195d5fSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
117866f5dd5c2Smrg  xy)  ECHO_C='\c';;
117876f5dd5c2Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
117886f5dd5c2Smrg       ECHO_T='	';;
11789a0195d5fSmrg  esac;;
11790a0195d5fSmrg*)
11791a0195d5fSmrg  ECHO_N='-n';;
11792a0195d5fSmrgesac
11793a0195d5fSmrg
11794a0195d5fSmrgrm -f conf$$ conf$$.exe conf$$.file
11795a0195d5fSmrgif test -d conf$$.dir; then
11796a0195d5fSmrg  rm -f conf$$.dir/conf$$.file
11797a0195d5fSmrgelse
11798a0195d5fSmrg  rm -f conf$$.dir
117996600fe5bSmrg  mkdir conf$$.dir 2>/dev/null
118006600fe5bSmrgfi
118016600fe5bSmrgif (echo >conf$$.file) 2>/dev/null; then
118026600fe5bSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
118036600fe5bSmrg    as_ln_s='ln -s'
118046600fe5bSmrg    # ... but there are two gotchas:
118056600fe5bSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
118066600fe5bSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
118076600fe5bSmrg    # In both cases, we have to default to `cp -p'.
118086600fe5bSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
118096600fe5bSmrg      as_ln_s='cp -p'
118106600fe5bSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
118116600fe5bSmrg    as_ln_s=ln
118126600fe5bSmrg  else
11813a0195d5fSmrg    as_ln_s='cp -p'
118146600fe5bSmrg  fi
11815a0195d5fSmrgelse
11816a0195d5fSmrg  as_ln_s='cp -p'
11817a0195d5fSmrgfi
11818a0195d5fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11819a0195d5fSmrgrmdir conf$$.dir 2>/dev/null
11820a0195d5fSmrg
118216f5dd5c2Smrg
118226f5dd5c2Smrg# as_fn_mkdir_p
118236f5dd5c2Smrg# -------------
118246f5dd5c2Smrg# Create "$as_dir" as a directory, including parents if necessary.
118256f5dd5c2Smrgas_fn_mkdir_p ()
118266f5dd5c2Smrg{
118276f5dd5c2Smrg
118286f5dd5c2Smrg  case $as_dir in #(
118296f5dd5c2Smrg  -*) as_dir=./$as_dir;;
118306f5dd5c2Smrg  esac
118316f5dd5c2Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
118326f5dd5c2Smrg    as_dirs=
118336f5dd5c2Smrg    while :; do
118346f5dd5c2Smrg      case $as_dir in #(
118356f5dd5c2Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
118366f5dd5c2Smrg      *) as_qdir=$as_dir;;
118376f5dd5c2Smrg      esac
118386f5dd5c2Smrg      as_dirs="'$as_qdir' $as_dirs"
118396f5dd5c2Smrg      as_dir=`$as_dirname -- "$as_dir" ||
118406f5dd5c2Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
118416f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
118426f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)$' \| \
118436f5dd5c2Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
118446f5dd5c2Smrg$as_echo X"$as_dir" |
118456f5dd5c2Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
118466f5dd5c2Smrg	    s//\1/
118476f5dd5c2Smrg	    q
118486f5dd5c2Smrg	  }
118496f5dd5c2Smrg	  /^X\(\/\/\)[^/].*/{
118506f5dd5c2Smrg	    s//\1/
118516f5dd5c2Smrg	    q
118526f5dd5c2Smrg	  }
118536f5dd5c2Smrg	  /^X\(\/\/\)$/{
118546f5dd5c2Smrg	    s//\1/
118556f5dd5c2Smrg	    q
118566f5dd5c2Smrg	  }
118576f5dd5c2Smrg	  /^X\(\/\).*/{
118586f5dd5c2Smrg	    s//\1/
118596f5dd5c2Smrg	    q
118606f5dd5c2Smrg	  }
118616f5dd5c2Smrg	  s/.*/./; q'`
118626f5dd5c2Smrg      test -d "$as_dir" && break
118636f5dd5c2Smrg    done
118646f5dd5c2Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
118652ab73d9fSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
118666f5dd5c2Smrg
118676f5dd5c2Smrg
118686f5dd5c2Smrg} # as_fn_mkdir_p
11869a0195d5fSmrgif mkdir -p . 2>/dev/null; then
118706f5dd5c2Smrg  as_mkdir_p='mkdir -p "$as_dir"'
11871a0195d5fSmrgelse
11872a0195d5fSmrg  test -d ./-p && rmdir ./-p
11873a0195d5fSmrg  as_mkdir_p=false
11874a0195d5fSmrgfi
11875a0195d5fSmrg
11876a0195d5fSmrgif test -x / >/dev/null 2>&1; then
11877a0195d5fSmrg  as_test_x='test -x'
11878a0195d5fSmrgelse
11879a0195d5fSmrg  if ls -dL / >/dev/null 2>&1; then
11880a0195d5fSmrg    as_ls_L_option=L
11881a0195d5fSmrg  else
11882a0195d5fSmrg    as_ls_L_option=
11883a0195d5fSmrg  fi
11884a0195d5fSmrg  as_test_x='
11885a0195d5fSmrg    eval sh -c '\''
11886a0195d5fSmrg      if test -d "$1"; then
118876600fe5bSmrg	test -d "$1/.";
11888a0195d5fSmrg      else
118896f5dd5c2Smrg	case $1 in #(
118906600fe5bSmrg	-*)set "./$1";;
11891a0195d5fSmrg	esac;
118926f5dd5c2Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11893a0195d5fSmrg	???[sx]*):;;*)false;;esac;fi
11894a0195d5fSmrg    '\'' sh
11895a0195d5fSmrg  '
11896a0195d5fSmrgfi
11897a0195d5fSmrgas_executable_p=$as_test_x
11898a0195d5fSmrg
11899a0195d5fSmrg# Sed expression to map a string onto a valid CPP name.
11900a0195d5fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11901a0195d5fSmrg
11902a0195d5fSmrg# Sed expression to map a string onto a valid variable name.
11903a0195d5fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11904a0195d5fSmrg
11905a0195d5fSmrg
11906a0195d5fSmrgexec 6>&1
119076f5dd5c2Smrg## ----------------------------------- ##
119086f5dd5c2Smrg## Main body of $CONFIG_STATUS script. ##
119096f5dd5c2Smrg## ----------------------------------- ##
119106f5dd5c2Smrg_ASEOF
119116f5dd5c2Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11912a0195d5fSmrg
119136f5dd5c2Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
119146f5dd5c2Smrg# Save the log message, to keep $0 and so on meaningful, and to
11915a0195d5fSmrg# report actual input values of CONFIG_FILES etc. instead of their
11916a0195d5fSmrg# values after options handling.
11917a0195d5fSmrgac_log="
1191840a76396SmrgThis file was extended by xset $as_me 1.2.3, which was
119192ab73d9fSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
11920a0195d5fSmrg
11921a0195d5fSmrg  CONFIG_FILES    = $CONFIG_FILES
11922a0195d5fSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
11923a0195d5fSmrg  CONFIG_LINKS    = $CONFIG_LINKS
11924a0195d5fSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
11925a0195d5fSmrg  $ $0 $@
11926a0195d5fSmrg
11927a0195d5fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
11928a0195d5fSmrg"
11929a0195d5fSmrg
11930a0195d5fSmrg_ACEOF
11931a0195d5fSmrg
119326600fe5bSmrgcase $ac_config_files in *"
119336600fe5bSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
119346600fe5bSmrgesac
119356600fe5bSmrg
119366600fe5bSmrgcase $ac_config_headers in *"
119376600fe5bSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
119386600fe5bSmrgesac
119396600fe5bSmrg
119406600fe5bSmrg
119416600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11942a0195d5fSmrg# Files that config.status was made for.
11943a0195d5fSmrgconfig_files="$ac_config_files"
11944a0195d5fSmrgconfig_headers="$ac_config_headers"
11945a0195d5fSmrgconfig_commands="$ac_config_commands"
11946a0195d5fSmrg
11947a0195d5fSmrg_ACEOF
11948a0195d5fSmrg
119496600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11950a0195d5fSmrgac_cs_usage="\
119516f5dd5c2Smrg\`$as_me' instantiates files and other configuration actions
119526f5dd5c2Smrgfrom templates according to the current configuration.  Unless the files
119536f5dd5c2Smrgand actions are specified as TAGs, all are instantiated by default.
11954a0195d5fSmrg
119556f5dd5c2SmrgUsage: $0 [OPTION]... [TAG]...
11956a0195d5fSmrg
11957a0195d5fSmrg  -h, --help       print this help, then exit
11958a0195d5fSmrg  -V, --version    print version number and configuration settings, then exit
119596f5dd5c2Smrg      --config     print configuration, then exit
119606600fe5bSmrg  -q, --quiet, --silent
119616600fe5bSmrg                   do not print progress messages
11962a0195d5fSmrg  -d, --debug      don't remove temporary files
11963a0195d5fSmrg      --recheck    update $as_me by reconfiguring in the same conditions
119646600fe5bSmrg      --file=FILE[:TEMPLATE]
119656600fe5bSmrg                   instantiate the configuration file FILE
119666600fe5bSmrg      --header=FILE[:TEMPLATE]
119676600fe5bSmrg                   instantiate the configuration header FILE
11968a0195d5fSmrg
11969a0195d5fSmrgConfiguration files:
11970a0195d5fSmrg$config_files
11971a0195d5fSmrg
11972a0195d5fSmrgConfiguration headers:
11973a0195d5fSmrg$config_headers
11974a0195d5fSmrg
11975a0195d5fSmrgConfiguration commands:
11976a0195d5fSmrg$config_commands
11977a0195d5fSmrg
119786f5dd5c2SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11979a0195d5fSmrg
11980a0195d5fSmrg_ACEOF
119816600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
119826f5dd5c2Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11983a0195d5fSmrgac_cs_version="\\
1198440a76396Smrgxset config.status 1.2.3
119852ab73d9fSmrgconfigured by $0, generated by GNU Autoconf 2.68,
119866f5dd5c2Smrg  with options \\"\$ac_cs_config\\"
11987a0195d5fSmrg
119882ab73d9fSmrgCopyright (C) 2010 Free Software Foundation, Inc.
11989a0195d5fSmrgThis config.status script is free software; the Free Software Foundation
11990a0195d5fSmrggives unlimited permission to copy, distribute and modify it."
11991a0195d5fSmrg
11992a0195d5fSmrgac_pwd='$ac_pwd'
11993a0195d5fSmrgsrcdir='$srcdir'
11994a0195d5fSmrgINSTALL='$INSTALL'
11995a0195d5fSmrgMKDIR_P='$MKDIR_P'
119966600fe5bSmrgAWK='$AWK'
119976600fe5bSmrgtest -n "\$AWK" || AWK=awk
11998a0195d5fSmrg_ACEOF
11999a0195d5fSmrg
120006600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
120016600fe5bSmrg# The default lists apply if the user does not specify any file.
12002a0195d5fSmrgac_need_defaults=:
12003a0195d5fSmrgwhile test $# != 0
12004a0195d5fSmrgdo
12005a0195d5fSmrg  case $1 in
120062ab73d9fSmrg  --*=?*)
12007a0195d5fSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12008a0195d5fSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12009a0195d5fSmrg    ac_shift=:
12010a0195d5fSmrg    ;;
120112ab73d9fSmrg  --*=)
120122ab73d9fSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
120132ab73d9fSmrg    ac_optarg=
120142ab73d9fSmrg    ac_shift=:
120152ab73d9fSmrg    ;;
12016a0195d5fSmrg  *)
12017a0195d5fSmrg    ac_option=$1
12018a0195d5fSmrg    ac_optarg=$2
12019a0195d5fSmrg    ac_shift=shift
12020a0195d5fSmrg    ;;
12021a0195d5fSmrg  esac
12022a0195d5fSmrg
12023a0195d5fSmrg  case $ac_option in
12024a0195d5fSmrg  # Handling of the options.
12025a0195d5fSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12026a0195d5fSmrg    ac_cs_recheck=: ;;
12027a0195d5fSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
120286600fe5bSmrg    $as_echo "$ac_cs_version"; exit ;;
120296f5dd5c2Smrg  --config | --confi | --conf | --con | --co | --c )
120306f5dd5c2Smrg    $as_echo "$ac_cs_config"; exit ;;
12031a0195d5fSmrg  --debug | --debu | --deb | --de | --d | -d )
12032a0195d5fSmrg    debug=: ;;
12033a0195d5fSmrg  --file | --fil | --fi | --f )
12034a0195d5fSmrg    $ac_shift
120356600fe5bSmrg    case $ac_optarg in
120366600fe5bSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
120372ab73d9fSmrg    '') as_fn_error $? "missing file argument" ;;
120386600fe5bSmrg    esac
120396f5dd5c2Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
12040a0195d5fSmrg    ac_need_defaults=false;;
12041a0195d5fSmrg  --header | --heade | --head | --hea )
12042a0195d5fSmrg    $ac_shift
120436600fe5bSmrg    case $ac_optarg in
120446600fe5bSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
120456600fe5bSmrg    esac
120466f5dd5c2Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12047a0195d5fSmrg    ac_need_defaults=false;;
12048a0195d5fSmrg  --he | --h)
12049a0195d5fSmrg    # Conflict between --help and --header
120502ab73d9fSmrg    as_fn_error $? "ambiguous option: \`$1'
120516f5dd5c2SmrgTry \`$0 --help' for more information.";;
12052a0195d5fSmrg  --help | --hel | -h )
120536600fe5bSmrg    $as_echo "$ac_cs_usage"; exit ;;
12054a0195d5fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12055a0195d5fSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12056a0195d5fSmrg    ac_cs_silent=: ;;
12057a0195d5fSmrg
12058a0195d5fSmrg  # This is an error.
120592ab73d9fSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
120606f5dd5c2SmrgTry \`$0 --help' for more information." ;;
12061a0195d5fSmrg
120626f5dd5c2Smrg  *) as_fn_append ac_config_targets " $1"
12063a0195d5fSmrg     ac_need_defaults=false ;;
12064a0195d5fSmrg
12065a0195d5fSmrg  esac
12066a0195d5fSmrg  shift
12067a0195d5fSmrgdone
12068a0195d5fSmrg
12069a0195d5fSmrgac_configure_extra_args=
12070a0195d5fSmrg
12071a0195d5fSmrgif $ac_cs_silent; then
12072a0195d5fSmrg  exec 6>/dev/null
12073a0195d5fSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
12074a0195d5fSmrgfi
12075a0195d5fSmrg
12076a0195d5fSmrg_ACEOF
120776600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12078a0195d5fSmrgif \$ac_cs_recheck; then
120796600fe5bSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
120806600fe5bSmrg  shift
120816600fe5bSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
120826600fe5bSmrg  CONFIG_SHELL='$SHELL'
12083a0195d5fSmrg  export CONFIG_SHELL
120846600fe5bSmrg  exec "\$@"
12085a0195d5fSmrgfi
12086a0195d5fSmrg
12087a0195d5fSmrg_ACEOF
120886600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12089a0195d5fSmrgexec 5>>config.log
12090a0195d5fSmrg{
12091a0195d5fSmrg  echo
12092a0195d5fSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12093a0195d5fSmrg## Running $as_me. ##
12094a0195d5fSmrg_ASBOX
120956600fe5bSmrg  $as_echo "$ac_log"
12096a0195d5fSmrg} >&5
12097a0195d5fSmrg
12098a0195d5fSmrg_ACEOF
120996600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12100a0195d5fSmrg#
12101a0195d5fSmrg# INIT-COMMANDS
12102a0195d5fSmrg#
12103a0195d5fSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12104a0195d5fSmrg
12105a0195d5fSmrg_ACEOF
12106a0195d5fSmrg
121076600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12108a0195d5fSmrg
12109a0195d5fSmrg# Handling of arguments.
12110a0195d5fSmrgfor ac_config_target in $ac_config_targets
12111a0195d5fSmrgdo
12112a0195d5fSmrg  case $ac_config_target in
121136f5dd5c2Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
121142ab73d9fSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12115a0195d5fSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12116ff6cf368Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12117a0195d5fSmrg
121182ab73d9fSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12119a0195d5fSmrg  esac
12120a0195d5fSmrgdone
12121a0195d5fSmrg
12122a0195d5fSmrg
12123a0195d5fSmrg# If the user did not use the arguments to specify the items to instantiate,
12124a0195d5fSmrg# then the envvar interface is used.  Set only those that are not.
12125a0195d5fSmrg# We use the long form for the default assignment because of an extremely
12126a0195d5fSmrg# bizarre bug on SunOS 4.1.3.
12127a0195d5fSmrgif $ac_need_defaults; then
12128a0195d5fSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12129a0195d5fSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12130a0195d5fSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12131a0195d5fSmrgfi
12132a0195d5fSmrg
12133a0195d5fSmrg# Have a temporary directory for convenience.  Make it in the build tree
12134a0195d5fSmrg# simply because there is no reason against having it here, and in addition,
12135a0195d5fSmrg# creating and moving files from /tmp can sometimes cause problems.
12136a0195d5fSmrg# Hook for its removal unless debugging.
12137a0195d5fSmrg# Note that there is a small window in which the directory will not be cleaned:
12138a0195d5fSmrg# after its creation but before its name has been assigned to `$tmp'.
12139a0195d5fSmrg$debug ||
12140a0195d5fSmrg{
121412ab73d9fSmrg  tmp= ac_tmp=
12142a0195d5fSmrg  trap 'exit_status=$?
121432ab73d9fSmrg  : "${ac_tmp:=$tmp}"
121442ab73d9fSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12145a0195d5fSmrg' 0
121466f5dd5c2Smrg  trap 'as_fn_exit 1' 1 2 13 15
12147a0195d5fSmrg}
12148a0195d5fSmrg# Create a (secure) tmp directory for tmp files.
12149a0195d5fSmrg
12150a0195d5fSmrg{
12151a0195d5fSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
121522ab73d9fSmrg  test -d "$tmp"
12153a0195d5fSmrg}  ||
12154a0195d5fSmrg{
12155a0195d5fSmrg  tmp=./conf$$-$RANDOM
12156a0195d5fSmrg  (umask 077 && mkdir "$tmp")
121572ab73d9fSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
121582ab73d9fSmrgac_tmp=$tmp
12159a0195d5fSmrg
121606600fe5bSmrg# Set up the scripts for CONFIG_FILES section.
121616600fe5bSmrg# No need to generate them if there are no CONFIG_FILES.
121626600fe5bSmrg# This happens for instance with `./config.status config.h'.
12163a0195d5fSmrgif test -n "$CONFIG_FILES"; then
12164a0195d5fSmrg
12165a0195d5fSmrg
121666f5dd5c2Smrgac_cr=`echo X | tr X '\015'`
121676f5dd5c2Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
121686f5dd5c2Smrg# But we know of no other shell where ac_cr would be empty at this
121696f5dd5c2Smrg# point, so we can use a bashism as a fallback.
121706f5dd5c2Smrgif test "x$ac_cr" = x; then
121716f5dd5c2Smrg  eval ac_cr=\$\'\\r\'
121726f5dd5c2Smrgfi
121736600fe5bSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
121746600fe5bSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
121752ab73d9fSmrg  ac_cs_awk_cr='\\r'
121766600fe5bSmrgelse
121776600fe5bSmrg  ac_cs_awk_cr=$ac_cr
12178a0195d5fSmrgfi
12179a0195d5fSmrg
121802ab73d9fSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12181a0195d5fSmrg_ACEOF
12182a0195d5fSmrg
12183a0195d5fSmrg
121846600fe5bSmrg{
121856600fe5bSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
121866600fe5bSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
121876600fe5bSmrg  echo "_ACEOF"
121886600fe5bSmrg} >conf$$subs.sh ||
121892ab73d9fSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
121902ab73d9fSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12191a0195d5fSmrgac_delim='%!_!# '
12192a0195d5fSmrgfor ac_last_try in false false false false false :; do
121936600fe5bSmrg  . ./conf$$subs.sh ||
121942ab73d9fSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12195a0195d5fSmrg
121966600fe5bSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
121976600fe5bSmrg  if test $ac_delim_n = $ac_delim_num; then
12198a0195d5fSmrg    break
12199a0195d5fSmrg  elif $ac_last_try; then
122002ab73d9fSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12201a0195d5fSmrg  else
12202a0195d5fSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12203a0195d5fSmrg  fi
12204a0195d5fSmrgdone
122056600fe5bSmrgrm -f conf$$subs.sh
12206a0195d5fSmrg
122076600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
122082ab73d9fSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
122096600fe5bSmrg_ACEOF
122106600fe5bSmrgsed -n '
122116600fe5bSmrgh
122126600fe5bSmrgs/^/S["/; s/!.*/"]=/
122136600fe5bSmrgp
122146600fe5bSmrgg
122156600fe5bSmrgs/^[^!]*!//
122166600fe5bSmrg:repl
122176600fe5bSmrgt repl
122186600fe5bSmrgs/'"$ac_delim"'$//
122196600fe5bSmrgt delim
122206600fe5bSmrg:nl
122216600fe5bSmrgh
122226f5dd5c2Smrgs/\(.\{148\}\)..*/\1/
122236600fe5bSmrgt more1
122246600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
122256600fe5bSmrgp
122266600fe5bSmrgn
122276600fe5bSmrgb repl
122286600fe5bSmrg:more1
122296600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
122306600fe5bSmrgp
122316600fe5bSmrgg
122326600fe5bSmrgs/.\{148\}//
122336600fe5bSmrgt nl
122346600fe5bSmrg:delim
122356600fe5bSmrgh
122366f5dd5c2Smrgs/\(.\{148\}\)..*/\1/
122376600fe5bSmrgt more2
122386600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
122396600fe5bSmrgp
122406600fe5bSmrgb
122416600fe5bSmrg:more2
122426600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
122436600fe5bSmrgp
122446600fe5bSmrgg
122456600fe5bSmrgs/.\{148\}//
122466600fe5bSmrgt delim
122476600fe5bSmrg' <conf$$subs.awk | sed '
122486600fe5bSmrg/^[^""]/{
122496600fe5bSmrg  N
122506600fe5bSmrg  s/\n//
122516600fe5bSmrg}
122526600fe5bSmrg' >>$CONFIG_STATUS || ac_write_fail=1
122536600fe5bSmrgrm -f conf$$subs.awk
122546600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
122556600fe5bSmrg_ACAWK
122562ab73d9fSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
122576600fe5bSmrg  for (key in S) S_is_set[key] = 1
122586600fe5bSmrg  FS = ""
122596600fe5bSmrg
122606600fe5bSmrg}
122616600fe5bSmrg{
122626600fe5bSmrg  line = $ 0
122636600fe5bSmrg  nfields = split(line, field, "@")
122646600fe5bSmrg  substed = 0
122656600fe5bSmrg  len = length(field[1])
122666600fe5bSmrg  for (i = 2; i < nfields; i++) {
122676600fe5bSmrg    key = field[i]
122686600fe5bSmrg    keylen = length(key)
122696600fe5bSmrg    if (S_is_set[key]) {
122706600fe5bSmrg      value = S[key]
122716600fe5bSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
122726600fe5bSmrg      len += length(value) + length(field[++i])
122736600fe5bSmrg      substed = 1
122746600fe5bSmrg    } else
122756600fe5bSmrg      len += 1 + keylen
122766600fe5bSmrg  }
122776600fe5bSmrg
122786600fe5bSmrg  print line
122796600fe5bSmrg}
12280a0195d5fSmrg
122816600fe5bSmrg_ACAWK
12282a0195d5fSmrg_ACEOF
122836600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
122846600fe5bSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
122856600fe5bSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
122866600fe5bSmrgelse
122876600fe5bSmrg  cat
122882ab73d9fSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
122892ab73d9fSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12290a0195d5fSmrg_ACEOF
12291a0195d5fSmrg
122922ab73d9fSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
122932ab73d9fSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12294a0195d5fSmrg# trailing colons and then remove the whole line if VPATH becomes empty
12295a0195d5fSmrg# (actually we leave an empty line to preserve line numbers).
12296a0195d5fSmrgif test "x$srcdir" = x.; then
122972ab73d9fSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
122982ab73d9fSmrgh
122992ab73d9fSmrgs///
123002ab73d9fSmrgs/^/:/
123012ab73d9fSmrgs/[	 ]*$/:/
123022ab73d9fSmrgs/:\$(srcdir):/:/g
123032ab73d9fSmrgs/:\${srcdir}:/:/g
123042ab73d9fSmrgs/:@srcdir@:/:/g
123052ab73d9fSmrgs/^:*//
12306a0195d5fSmrgs/:*$//
123072ab73d9fSmrgx
123082ab73d9fSmrgs/\(=[	 ]*\).*/\1/
123092ab73d9fSmrgG
123102ab73d9fSmrgs/\n//
12311a0195d5fSmrgs/^[^=]*=[	 ]*$//
12312a0195d5fSmrg}'
12313a0195d5fSmrgfi
12314a0195d5fSmrg
123156600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12316a0195d5fSmrgfi # test -n "$CONFIG_FILES"
12317a0195d5fSmrg
123186600fe5bSmrg# Set up the scripts for CONFIG_HEADERS section.
123196600fe5bSmrg# No need to generate them if there are no CONFIG_HEADERS.
123206600fe5bSmrg# This happens for instance with `./config.status Makefile'.
123216600fe5bSmrgif test -n "$CONFIG_HEADERS"; then
123222ab73d9fSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
123236600fe5bSmrgBEGIN {
123246600fe5bSmrg_ACEOF
123256600fe5bSmrg
123266600fe5bSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
123276600fe5bSmrg# here-document in config.status, that substitutes the proper values into
123286600fe5bSmrg# config.h.in to produce config.h.
123296600fe5bSmrg
123306600fe5bSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
123316600fe5bSmrg# handling of long lines.
123326600fe5bSmrgac_delim='%!_!# '
123336600fe5bSmrgfor ac_last_try in false false :; do
123342ab73d9fSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
123352ab73d9fSmrg  if test -z "$ac_tt"; then
123366600fe5bSmrg    break
123376600fe5bSmrg  elif $ac_last_try; then
123382ab73d9fSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
123396600fe5bSmrg  else
123406600fe5bSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
123416600fe5bSmrg  fi
123426600fe5bSmrgdone
123436600fe5bSmrg
123446600fe5bSmrg# For the awk script, D is an array of macro values keyed by name,
123456600fe5bSmrg# likewise P contains macro parameters if any.  Preserve backslash
123466600fe5bSmrg# newline sequences.
123476600fe5bSmrg
123486600fe5bSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
123496600fe5bSmrgsed -n '
123506600fe5bSmrgs/.\{148\}/&'"$ac_delim"'/g
123516600fe5bSmrgt rset
123526600fe5bSmrg:rset
123536600fe5bSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
123546600fe5bSmrgt def
123556600fe5bSmrgd
123566600fe5bSmrg:def
123576600fe5bSmrgs/\\$//
123586600fe5bSmrgt bsnl
123596600fe5bSmrgs/["\\]/\\&/g
123606600fe5bSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
123616600fe5bSmrgD["\1"]=" \3"/p
123626600fe5bSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
123636600fe5bSmrgd
123646600fe5bSmrg:bsnl
123656600fe5bSmrgs/["\\]/\\&/g
123666600fe5bSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
123676600fe5bSmrgD["\1"]=" \3\\\\\\n"\\/p
123686600fe5bSmrgt cont
123696600fe5bSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
123706600fe5bSmrgt cont
123716600fe5bSmrgd
123726600fe5bSmrg:cont
123736600fe5bSmrgn
123746600fe5bSmrgs/.\{148\}/&'"$ac_delim"'/g
123756600fe5bSmrgt clear
123766600fe5bSmrg:clear
123776600fe5bSmrgs/\\$//
123786600fe5bSmrgt bsnlc
123796600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
123806600fe5bSmrgd
123816600fe5bSmrg:bsnlc
123826600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
123836600fe5bSmrgb cont
123846600fe5bSmrg' <confdefs.h | sed '
123856600fe5bSmrgs/'"$ac_delim"'/"\\\
123866600fe5bSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
123876600fe5bSmrg
123886600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
123896600fe5bSmrg  for (key in D) D_is_set[key] = 1
123906600fe5bSmrg  FS = ""
123916600fe5bSmrg}
123926600fe5bSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
123936600fe5bSmrg  line = \$ 0
123946600fe5bSmrg  split(line, arg, " ")
123956600fe5bSmrg  if (arg[1] == "#") {
123966600fe5bSmrg    defundef = arg[2]
123976600fe5bSmrg    mac1 = arg[3]
123986600fe5bSmrg  } else {
123996600fe5bSmrg    defundef = substr(arg[1], 2)
124006600fe5bSmrg    mac1 = arg[2]
124016600fe5bSmrg  }
124026600fe5bSmrg  split(mac1, mac2, "(") #)
124036600fe5bSmrg  macro = mac2[1]
124046600fe5bSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
124056600fe5bSmrg  if (D_is_set[macro]) {
124066600fe5bSmrg    # Preserve the white space surrounding the "#".
124076600fe5bSmrg    print prefix "define", macro P[macro] D[macro]
124086600fe5bSmrg    next
124096600fe5bSmrg  } else {
124106600fe5bSmrg    # Replace #undef with comments.  This is necessary, for example,
124116600fe5bSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
124126600fe5bSmrg    # on some systems where configure will not decide to define it.
124136600fe5bSmrg    if (defundef == "undef") {
124146600fe5bSmrg      print "/*", prefix defundef, macro, "*/"
124156600fe5bSmrg      next
124166600fe5bSmrg    }
124176600fe5bSmrg  }
124186600fe5bSmrg}
124196600fe5bSmrg{ print }
124206600fe5bSmrg_ACAWK
124216600fe5bSmrg_ACEOF
124226600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
124232ab73d9fSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
124246600fe5bSmrgfi # test -n "$CONFIG_HEADERS"
124256600fe5bSmrg
12426a0195d5fSmrg
124276600fe5bSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
124286600fe5bSmrgshift
124296600fe5bSmrgfor ac_tag
12430a0195d5fSmrgdo
12431a0195d5fSmrg  case $ac_tag in
12432a0195d5fSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
12433a0195d5fSmrg  esac
12434a0195d5fSmrg  case $ac_mode$ac_tag in
12435a0195d5fSmrg  :[FHL]*:*);;
124362ab73d9fSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12437a0195d5fSmrg  :[FH]-) ac_tag=-:-;;
12438a0195d5fSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12439a0195d5fSmrg  esac
12440a0195d5fSmrg  ac_save_IFS=$IFS
12441a0195d5fSmrg  IFS=:
12442a0195d5fSmrg  set x $ac_tag
12443a0195d5fSmrg  IFS=$ac_save_IFS
12444a0195d5fSmrg  shift
12445a0195d5fSmrg  ac_file=$1
12446a0195d5fSmrg  shift
12447a0195d5fSmrg
12448a0195d5fSmrg  case $ac_mode in
12449a0195d5fSmrg  :L) ac_source=$1;;
12450a0195d5fSmrg  :[FH])
12451a0195d5fSmrg    ac_file_inputs=
12452a0195d5fSmrg    for ac_f
12453a0195d5fSmrg    do
12454a0195d5fSmrg      case $ac_f in
124552ab73d9fSmrg      -) ac_f="$ac_tmp/stdin";;
12456a0195d5fSmrg      *) # Look for the file first in the build tree, then in the source tree
12457a0195d5fSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12458a0195d5fSmrg	 # because $ac_f cannot contain `:'.
12459a0195d5fSmrg	 test -f "$ac_f" ||
12460a0195d5fSmrg	   case $ac_f in
12461a0195d5fSmrg	   [\\/$]*) false;;
12462a0195d5fSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12463a0195d5fSmrg	   esac ||
124642ab73d9fSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12465a0195d5fSmrg      esac
124666600fe5bSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
124676f5dd5c2Smrg      as_fn_append ac_file_inputs " '$ac_f'"
12468a0195d5fSmrg    done
12469a0195d5fSmrg
12470a0195d5fSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
12471a0195d5fSmrg    # use $as_me), people would be surprised to read:
12472a0195d5fSmrg    #    /* config.h.  Generated by config.status.  */
124736600fe5bSmrg    configure_input='Generated from '`
124746600fe5bSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
124756600fe5bSmrg	`' by configure.'
12476a0195d5fSmrg    if test x"$ac_file" != x-; then
12477a0195d5fSmrg      configure_input="$ac_file.  $configure_input"
124786f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
124796600fe5bSmrg$as_echo "$as_me: creating $ac_file" >&6;}
12480a0195d5fSmrg    fi
124816600fe5bSmrg    # Neutralize special characters interpreted by sed in replacement strings.
124826600fe5bSmrg    case $configure_input in #(
124836600fe5bSmrg    *\&* | *\|* | *\\* )
124846600fe5bSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
124856600fe5bSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
124866600fe5bSmrg    *) ac_sed_conf_input=$configure_input;;
124876600fe5bSmrg    esac
12488a0195d5fSmrg
12489a0195d5fSmrg    case $ac_tag in
124902ab73d9fSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
124912ab73d9fSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12492a0195d5fSmrg    esac
12493a0195d5fSmrg    ;;
12494a0195d5fSmrg  esac
12495a0195d5fSmrg
12496a0195d5fSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
12497a0195d5fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12498a0195d5fSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
12499a0195d5fSmrg	 X"$ac_file" : 'X\(//\)$' \| \
12500a0195d5fSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
125016600fe5bSmrg$as_echo X"$ac_file" |
12502a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12503a0195d5fSmrg	    s//\1/
12504a0195d5fSmrg	    q
12505a0195d5fSmrg	  }
12506a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
12507a0195d5fSmrg	    s//\1/
12508a0195d5fSmrg	    q
12509a0195d5fSmrg	  }
12510a0195d5fSmrg	  /^X\(\/\/\)$/{
12511a0195d5fSmrg	    s//\1/
12512a0195d5fSmrg	    q
12513a0195d5fSmrg	  }
12514a0195d5fSmrg	  /^X\(\/\).*/{
12515a0195d5fSmrg	    s//\1/
12516a0195d5fSmrg	    q
12517a0195d5fSmrg	  }
12518a0195d5fSmrg	  s/.*/./; q'`
125196f5dd5c2Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
12520a0195d5fSmrg  ac_builddir=.
12521a0195d5fSmrg
12522a0195d5fSmrgcase "$ac_dir" in
12523a0195d5fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12524a0195d5fSmrg*)
125256600fe5bSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12526a0195d5fSmrg  # A ".." for each directory in $ac_dir_suffix.
125276600fe5bSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12528a0195d5fSmrg  case $ac_top_builddir_sub in
12529a0195d5fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12530a0195d5fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12531a0195d5fSmrg  esac ;;
12532a0195d5fSmrgesac
12533a0195d5fSmrgac_abs_top_builddir=$ac_pwd
12534a0195d5fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
12535a0195d5fSmrg# for backward compatibility:
12536a0195d5fSmrgac_top_builddir=$ac_top_build_prefix
12537a0195d5fSmrg
12538a0195d5fSmrgcase $srcdir in
12539a0195d5fSmrg  .)  # We are building in place.
12540a0195d5fSmrg    ac_srcdir=.
12541a0195d5fSmrg    ac_top_srcdir=$ac_top_builddir_sub
12542a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
12543a0195d5fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
12544a0195d5fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
12545a0195d5fSmrg    ac_top_srcdir=$srcdir
12546a0195d5fSmrg    ac_abs_top_srcdir=$srcdir ;;
12547a0195d5fSmrg  *) # Relative name.
12548a0195d5fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12549a0195d5fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
12550a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12551a0195d5fSmrgesac
12552a0195d5fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12553a0195d5fSmrg
12554a0195d5fSmrg
12555a0195d5fSmrg  case $ac_mode in
12556a0195d5fSmrg  :F)
12557a0195d5fSmrg  #
12558a0195d5fSmrg  # CONFIG_FILE
12559a0195d5fSmrg  #
12560a0195d5fSmrg
12561a0195d5fSmrg  case $INSTALL in
12562a0195d5fSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12563a0195d5fSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12564a0195d5fSmrg  esac
12565a0195d5fSmrg  ac_MKDIR_P=$MKDIR_P
12566a0195d5fSmrg  case $MKDIR_P in
12567a0195d5fSmrg  [\\/$]* | ?:[\\/]* ) ;;
12568a0195d5fSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12569a0195d5fSmrg  esac
12570a0195d5fSmrg_ACEOF
12571a0195d5fSmrg
125726600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12573a0195d5fSmrg# If the template does not know about datarootdir, expand it.
12574a0195d5fSmrg# FIXME: This hack should be removed a few years after 2.60.
12575a0195d5fSmrgac_datarootdir_hack=; ac_datarootdir_seen=
125766600fe5bSmrgac_sed_dataroot='
125776600fe5bSmrg/datarootdir/ {
12578a0195d5fSmrg  p
12579a0195d5fSmrg  q
12580a0195d5fSmrg}
12581a0195d5fSmrg/@datadir@/p
12582a0195d5fSmrg/@docdir@/p
12583a0195d5fSmrg/@infodir@/p
12584a0195d5fSmrg/@localedir@/p
125856f5dd5c2Smrg/@mandir@/p'
125866600fe5bSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12587a0195d5fSmrg*datarootdir*) ac_datarootdir_seen=yes;;
12588a0195d5fSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
125896f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
125906600fe5bSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12591a0195d5fSmrg_ACEOF
125926600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12593a0195d5fSmrg  ac_datarootdir_hack='
12594a0195d5fSmrg  s&@datadir@&$datadir&g
12595a0195d5fSmrg  s&@docdir@&$docdir&g
12596a0195d5fSmrg  s&@infodir@&$infodir&g
12597a0195d5fSmrg  s&@localedir@&$localedir&g
12598a0195d5fSmrg  s&@mandir@&$mandir&g
125996f5dd5c2Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
12600a0195d5fSmrgesac
12601a0195d5fSmrg_ACEOF
12602a0195d5fSmrg
12603a0195d5fSmrg# Neutralize VPATH when `$srcdir' = `.'.
12604a0195d5fSmrg# Shell code in configure.ac might set extrasub.
12605a0195d5fSmrg# FIXME: do we really want to maintain this feature?
126066600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
126076600fe5bSmrgac_sed_extra="$ac_vpsub
12608a0195d5fSmrg$extrasub
12609a0195d5fSmrg_ACEOF
126106600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12611a0195d5fSmrg:t
12612a0195d5fSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
126136600fe5bSmrgs|@configure_input@|$ac_sed_conf_input|;t t
12614a0195d5fSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
126156600fe5bSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
12616a0195d5fSmrgs&@srcdir@&$ac_srcdir&;t t
12617a0195d5fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
12618a0195d5fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
12619a0195d5fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12620a0195d5fSmrgs&@builddir@&$ac_builddir&;t t
12621a0195d5fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
12622a0195d5fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12623a0195d5fSmrgs&@INSTALL@&$ac_INSTALL&;t t
12624a0195d5fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
12625a0195d5fSmrg$ac_datarootdir_hack
126266600fe5bSmrg"
126272ab73d9fSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
126282ab73d9fSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12629a0195d5fSmrg
12630a0195d5fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
126312ab73d9fSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
126322ab73d9fSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
126332ab73d9fSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
126346f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
126352ab73d9fSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
126366600fe5bSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
126372ab73d9fSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
12638a0195d5fSmrg
126392ab73d9fSmrg  rm -f "$ac_tmp/stdin"
12640a0195d5fSmrg  case $ac_file in
126412ab73d9fSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
126422ab73d9fSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
126436600fe5bSmrg  esac \
126442ab73d9fSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12645a0195d5fSmrg ;;
12646a0195d5fSmrg  :H)
12647a0195d5fSmrg  #
12648a0195d5fSmrg  # CONFIG_HEADER
12649a0195d5fSmrg  #
12650a0195d5fSmrg  if test x"$ac_file" != x-; then
126516600fe5bSmrg    {
126526600fe5bSmrg      $as_echo "/* $configure_input  */" \
126532ab73d9fSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
126542ab73d9fSmrg    } >"$ac_tmp/config.h" \
126552ab73d9fSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
126562ab73d9fSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
126576f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
126586600fe5bSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
12659a0195d5fSmrg    else
126606600fe5bSmrg      rm -f "$ac_file"
126612ab73d9fSmrg      mv "$ac_tmp/config.h" "$ac_file" \
126622ab73d9fSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12663a0195d5fSmrg    fi
12664a0195d5fSmrg  else
126656600fe5bSmrg    $as_echo "/* $configure_input  */" \
126662ab73d9fSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
126672ab73d9fSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
12668a0195d5fSmrg  fi
126696600fe5bSmrg# Compute "$ac_file"'s index in $config_headers.
126706600fe5bSmrg_am_arg="$ac_file"
12671a0195d5fSmrg_am_stamp_count=1
12672a0195d5fSmrgfor _am_header in $config_headers :; do
12673a0195d5fSmrg  case $_am_header in
12674a0195d5fSmrg    $_am_arg | $_am_arg:* )
12675a0195d5fSmrg      break ;;
12676a0195d5fSmrg    * )
12677a0195d5fSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12678a0195d5fSmrg  esac
12679a0195d5fSmrgdone
12680a0195d5fSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12681a0195d5fSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12682a0195d5fSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12683a0195d5fSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
12684a0195d5fSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
126856600fe5bSmrg$as_echo X"$_am_arg" |
12686a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12687a0195d5fSmrg	    s//\1/
12688a0195d5fSmrg	    q
12689a0195d5fSmrg	  }
12690a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
12691a0195d5fSmrg	    s//\1/
12692a0195d5fSmrg	    q
12693a0195d5fSmrg	  }
12694a0195d5fSmrg	  /^X\(\/\/\)$/{
12695a0195d5fSmrg	    s//\1/
12696a0195d5fSmrg	    q
12697a0195d5fSmrg	  }
12698a0195d5fSmrg	  /^X\(\/\).*/{
12699a0195d5fSmrg	    s//\1/
12700a0195d5fSmrg	    q
12701a0195d5fSmrg	  }
12702a0195d5fSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
12703a0195d5fSmrg ;;
12704a0195d5fSmrg
127056f5dd5c2Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
127066600fe5bSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
12707a0195d5fSmrg ;;
12708a0195d5fSmrg  esac
12709a0195d5fSmrg
12710a0195d5fSmrg
12711a0195d5fSmrg  case $ac_file$ac_mode in
127126600fe5bSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1271340a76396Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
127146600fe5bSmrg  # are listed without --file.  Let's play safe and only enable the eval
127156600fe5bSmrg  # if we detect the quoting.
127166600fe5bSmrg  case $CONFIG_FILES in
127176600fe5bSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
127186600fe5bSmrg  *)   set x $CONFIG_FILES ;;
127196600fe5bSmrg  esac
127206600fe5bSmrg  shift
127216600fe5bSmrg  for mf
127226600fe5bSmrg  do
127236600fe5bSmrg    # Strip MF so we end up with the name of the file.
127246600fe5bSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
127256600fe5bSmrg    # Check whether this is an Automake generated Makefile or not.
1272640a76396Smrg    # We used to match only the files named 'Makefile.in', but
127276600fe5bSmrg    # some people rename them; so instead we look at the file content.
127286600fe5bSmrg    # Grep'ing the first line is not enough: some people post-process
127296600fe5bSmrg    # each Makefile.in and add a new line on top of each file to say so.
127306600fe5bSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
127316600fe5bSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
127326600fe5bSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
127336600fe5bSmrg      dirpart=`$as_dirname -- "$mf" ||
12734a0195d5fSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12735a0195d5fSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
12736a0195d5fSmrg	 X"$mf" : 'X\(//\)$' \| \
12737a0195d5fSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
127386600fe5bSmrg$as_echo X"$mf" |
12739a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12740a0195d5fSmrg	    s//\1/
12741a0195d5fSmrg	    q
12742a0195d5fSmrg	  }
12743a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
12744a0195d5fSmrg	    s//\1/
12745a0195d5fSmrg	    q
12746a0195d5fSmrg	  }
12747a0195d5fSmrg	  /^X\(\/\/\)$/{
12748a0195d5fSmrg	    s//\1/
12749a0195d5fSmrg	    q
12750a0195d5fSmrg	  }
12751a0195d5fSmrg	  /^X\(\/\).*/{
12752a0195d5fSmrg	    s//\1/
12753a0195d5fSmrg	    q
12754a0195d5fSmrg	  }
12755a0195d5fSmrg	  s/.*/./; q'`
127566600fe5bSmrg    else
127576600fe5bSmrg      continue
127586600fe5bSmrg    fi
127596600fe5bSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
1276040a76396Smrg    # from the Makefile without running 'make'.
127616600fe5bSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
127626600fe5bSmrg    test -z "$DEPDIR" && continue
127636600fe5bSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
1276440a76396Smrg    test -z "$am__include" && continue
127656600fe5bSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
127666600fe5bSmrg    # Find all dependency output files, they are included files with
127676600fe5bSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
127686600fe5bSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
127696600fe5bSmrg    # expansion.
127706600fe5bSmrg    for file in `sed -n "
127716600fe5bSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1277240a76396Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
127736600fe5bSmrg      # Make sure the directory exists.
127746600fe5bSmrg      test -f "$dirpart/$file" && continue
127756600fe5bSmrg      fdir=`$as_dirname -- "$file" ||
12776a0195d5fSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12777a0195d5fSmrg	 X"$file" : 'X\(//\)[^/]' \| \
12778a0195d5fSmrg	 X"$file" : 'X\(//\)$' \| \
12779a0195d5fSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
127806600fe5bSmrg$as_echo X"$file" |
12781a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12782a0195d5fSmrg	    s//\1/
12783a0195d5fSmrg	    q
12784a0195d5fSmrg	  }
12785a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
12786a0195d5fSmrg	    s//\1/
12787a0195d5fSmrg	    q
12788a0195d5fSmrg	  }
12789a0195d5fSmrg	  /^X\(\/\/\)$/{
12790a0195d5fSmrg	    s//\1/
12791a0195d5fSmrg	    q
12792a0195d5fSmrg	  }
12793a0195d5fSmrg	  /^X\(\/\).*/{
12794a0195d5fSmrg	    s//\1/
12795a0195d5fSmrg	    q
12796a0195d5fSmrg	  }
12797a0195d5fSmrg	  s/.*/./; q'`
127986f5dd5c2Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
127996600fe5bSmrg      # echo "creating $dirpart/$file"
128006600fe5bSmrg      echo '# dummy' > "$dirpart/$file"
128016600fe5bSmrg    done
12802a0195d5fSmrg  done
128036600fe5bSmrg}
12804a0195d5fSmrg ;;
12805a0195d5fSmrg
12806a0195d5fSmrg  esac
12807a0195d5fSmrgdone # for ac_tag
12808a0195d5fSmrg
12809a0195d5fSmrg
128106f5dd5c2Smrgas_fn_exit 0
12811a0195d5fSmrg_ACEOF
12812a0195d5fSmrgac_clean_files=$ac_clean_files_save
12813a0195d5fSmrg
128146600fe5bSmrgtest $ac_write_fail = 0 ||
128152ab73d9fSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
128166600fe5bSmrg
12817a0195d5fSmrg
12818a0195d5fSmrg# configure is writing to config.log, and then calls config.status.
12819a0195d5fSmrg# config.status does its own redirection, appending to config.log.
12820a0195d5fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
12821a0195d5fSmrg# by configure, so config.status won't be able to write to it; its
12822a0195d5fSmrg# output is simply discarded.  So we exec the FD to /dev/null,
12823a0195d5fSmrg# effectively closing config.log, so it can be properly (re)opened and
12824a0195d5fSmrg# appended to by config.status.  When coming back to configure, we
12825a0195d5fSmrg# need to make the FD available again.
12826a0195d5fSmrgif test "$no_create" != yes; then
12827a0195d5fSmrg  ac_cs_success=:
12828a0195d5fSmrg  ac_config_status_args=
12829a0195d5fSmrg  test "$silent" = yes &&
12830a0195d5fSmrg    ac_config_status_args="$ac_config_status_args --quiet"
12831a0195d5fSmrg  exec 5>/dev/null
12832a0195d5fSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12833a0195d5fSmrg  exec 5>>config.log
12834a0195d5fSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12835a0195d5fSmrg  # would make configure fail if this is the last instruction.
128362ab73d9fSmrg  $ac_cs_success || as_fn_exit 1
12837a0195d5fSmrgfi
128386600fe5bSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
128396f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
128406600fe5bSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
128416600fe5bSmrgfi
12842a0195d5fSmrg
12843