configure revision feee4651
1a0195d5fSmrg#! /bin/sh
2a0195d5fSmrg# Guess values for system-dependent variables and create Makefiles.
3feee4651Smrg# Generated by GNU Autoconf 2.69 for xset 1.2.4.
4a0195d5fSmrg#
5a0195d5fSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6a0195d5fSmrg#
76f5dd5c2Smrg#
8feee4651Smrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
96f5dd5c2Smrg#
106f5dd5c2Smrg#
11a0195d5fSmrg# This configure script is free software; the Free Software Foundation
12a0195d5fSmrg# gives unlimited permission to copy, distribute and modify it.
136f5dd5c2Smrg## -------------------- ##
146f5dd5c2Smrg## M4sh Initialization. ##
156f5dd5c2Smrg## -------------------- ##
16a0195d5fSmrg
17a0195d5fSmrg# Be more Bourne compatible
18a0195d5fSmrgDUALCASE=1; export DUALCASE # for MKS sh
196f5dd5c2Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20a0195d5fSmrg  emulate sh
21a0195d5fSmrg  NULLCMD=:
226600fe5bSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23a0195d5fSmrg  # is contrary to our usage.  Disable this feature.
24a0195d5fSmrg  alias -g '${1+"$@"}'='"$@"'
25a0195d5fSmrg  setopt NO_GLOB_SUBST
26a0195d5fSmrgelse
276f5dd5c2Smrg  case `(set -o) 2>/dev/null` in #(
286f5dd5c2Smrg  *posix*) :
296f5dd5c2Smrg    set -o posix ;; #(
306f5dd5c2Smrg  *) :
316f5dd5c2Smrg     ;;
32a0195d5fSmrgesac
33a0195d5fSmrgfi
34a0195d5fSmrg
35a0195d5fSmrg
366600fe5bSmrgas_nl='
376600fe5bSmrg'
386600fe5bSmrgexport as_nl
396600fe5bSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
406600fe5bSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
416600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
426600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
436f5dd5c2Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
446f5dd5c2Smrg# but without wasting forks for bash or zsh.
456f5dd5c2Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
466f5dd5c2Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
476f5dd5c2Smrg  as_echo='print -r --'
486f5dd5c2Smrg  as_echo_n='print -rn --'
496f5dd5c2Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
506600fe5bSmrg  as_echo='printf %s\n'
516600fe5bSmrg  as_echo_n='printf %s'
526600fe5bSmrgelse
536600fe5bSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
546600fe5bSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
556600fe5bSmrg    as_echo_n='/usr/ucb/echo -n'
56a0195d5fSmrg  else
576600fe5bSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
586600fe5bSmrg    as_echo_n_body='eval
596600fe5bSmrg      arg=$1;
606f5dd5c2Smrg      case $arg in #(
616600fe5bSmrg      *"$as_nl"*)
626600fe5bSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
636600fe5bSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
646600fe5bSmrg      esac;
656600fe5bSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
666600fe5bSmrg    '
676600fe5bSmrg    export as_echo_n_body
686600fe5bSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
69a0195d5fSmrg  fi
706600fe5bSmrg  export as_echo_body
716600fe5bSmrg  as_echo='sh -c $as_echo_body as_echo'
726600fe5bSmrgfi
736600fe5bSmrg
746600fe5bSmrg# The user is always right.
756600fe5bSmrgif test "${PATH_SEPARATOR+set}" != set; then
766600fe5bSmrg  PATH_SEPARATOR=:
776600fe5bSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
786600fe5bSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
796600fe5bSmrg      PATH_SEPARATOR=';'
806600fe5bSmrg  }
81a0195d5fSmrgfi
82a0195d5fSmrg
83a0195d5fSmrg
84a0195d5fSmrg# IFS
85a0195d5fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
86a0195d5fSmrg# there to prevent editors from complaining about space-tab.
87a0195d5fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88a0195d5fSmrg# splitting by setting IFS to empty value.)
89a0195d5fSmrgIFS=" ""	$as_nl"
90a0195d5fSmrg
91a0195d5fSmrg# Find who we are.  Look in the path if we contain no directory separator.
922ab73d9fSmrgas_myself=
936f5dd5c2Smrgcase $0 in #((
94a0195d5fSmrg  *[\\/]* ) as_myself=$0 ;;
95a0195d5fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96a0195d5fSmrgfor as_dir in $PATH
97a0195d5fSmrgdo
98a0195d5fSmrg  IFS=$as_save_IFS
99a0195d5fSmrg  test -z "$as_dir" && as_dir=.
1006f5dd5c2Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1016f5dd5c2Smrg  done
102a0195d5fSmrgIFS=$as_save_IFS
103a0195d5fSmrg
104a0195d5fSmrg     ;;
105a0195d5fSmrgesac
106a0195d5fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
107a0195d5fSmrg# in which case we are not to be found in the path.
108a0195d5fSmrgif test "x$as_myself" = x; then
109a0195d5fSmrg  as_myself=$0
110a0195d5fSmrgfi
111a0195d5fSmrgif test ! -f "$as_myself"; then
1126600fe5bSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1136f5dd5c2Smrg  exit 1
114a0195d5fSmrgfi
115a0195d5fSmrg
1166f5dd5c2Smrg# Unset variables that we do not need and which cause bugs (e.g. in
1176f5dd5c2Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1186f5dd5c2Smrg# suppresses any "Segmentation fault" message there.  '((' could
1196f5dd5c2Smrg# trigger a bug in pdksh 5.2.14.
1206f5dd5c2Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1216f5dd5c2Smrgdo eval test x\${$as_var+set} = xset \
1226f5dd5c2Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123a0195d5fSmrgdone
124a0195d5fSmrgPS1='$ '
125a0195d5fSmrgPS2='> '
126a0195d5fSmrgPS4='+ '
127a0195d5fSmrg
128a0195d5fSmrg# NLS nuisances.
1296600fe5bSmrgLC_ALL=C
1306600fe5bSmrgexport LC_ALL
1316600fe5bSmrgLANGUAGE=C
1326600fe5bSmrgexport LANGUAGE
133a0195d5fSmrg
1346f5dd5c2Smrg# CDPATH.
1356f5dd5c2Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1366f5dd5c2Smrg
137feee4651Smrg# Use a proper internal environment variable to ensure we don't fall
138feee4651Smrg  # into an infinite loop, continuously re-executing ourselves.
139feee4651Smrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140feee4651Smrg    _as_can_reexec=no; export _as_can_reexec;
141feee4651Smrg    # We cannot yet assume a decent shell, so we have to provide a
142feee4651Smrg# neutralization value for shells without unset; and this also
143feee4651Smrg# works around shells that cannot unset nonexistent variables.
144feee4651Smrg# Preserve -v and -x to the replacement shell.
145feee4651SmrgBASH_ENV=/dev/null
146feee4651SmrgENV=/dev/null
147feee4651Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148feee4651Smrgcase $- in # ((((
149feee4651Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
150feee4651Smrg  *v* ) as_opts=-v ;;
151feee4651Smrg  *x* ) as_opts=-x ;;
152feee4651Smrg  * ) as_opts= ;;
153feee4651Smrgesac
154feee4651Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155feee4651Smrg# Admittedly, this is quite paranoid, since all the known shells bail
156feee4651Smrg# out after a failed `exec'.
157feee4651Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158feee4651Smrgas_fn_exit 255
159feee4651Smrg  fi
160feee4651Smrg  # We don't want this to propagate to other subprocesses.
161feee4651Smrg          { _as_can_reexec=; unset _as_can_reexec;}
1626f5dd5c2Smrgif test "x$CONFIG_SHELL" = x; then
1636f5dd5c2Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1646f5dd5c2Smrg  emulate sh
1656f5dd5c2Smrg  NULLCMD=:
1666f5dd5c2Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1676f5dd5c2Smrg  # is contrary to our usage.  Disable this feature.
1686f5dd5c2Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1696f5dd5c2Smrg  setopt NO_GLOB_SUBST
1706f5dd5c2Smrgelse
1716f5dd5c2Smrg  case \`(set -o) 2>/dev/null\` in #(
1726f5dd5c2Smrg  *posix*) :
1736f5dd5c2Smrg    set -o posix ;; #(
1746f5dd5c2Smrg  *) :
1756f5dd5c2Smrg     ;;
1766f5dd5c2Smrgesac
1776f5dd5c2Smrgfi
1786f5dd5c2Smrg"
1796f5dd5c2Smrg  as_required="as_fn_return () { (exit \$1); }
1806f5dd5c2Smrgas_fn_success () { as_fn_return 0; }
1816f5dd5c2Smrgas_fn_failure () { as_fn_return 1; }
1826f5dd5c2Smrgas_fn_ret_success () { return 0; }
1836f5dd5c2Smrgas_fn_ret_failure () { return 1; }
1846f5dd5c2Smrg
1856f5dd5c2Smrgexitcode=0
1866f5dd5c2Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1876f5dd5c2Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1886f5dd5c2Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1896f5dd5c2Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1906f5dd5c2Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1916f5dd5c2Smrg
1926f5dd5c2Smrgelse
1936f5dd5c2Smrg  exitcode=1; echo positional parameters were not saved.
1946f5dd5c2Smrgfi
195feee4651Smrgtest x\$exitcode = x0 || exit 1
196feee4651Smrgtest -x / || exit 1"
1976f5dd5c2Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1986f5dd5c2Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1996f5dd5c2Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
2006f5dd5c2Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
2016f5dd5c2Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
2026f5dd5c2Smrg  if (eval "$as_required") 2>/dev/null; then :
2036f5dd5c2Smrg  as_have_required=yes
2046f5dd5c2Smrgelse
2056f5dd5c2Smrg  as_have_required=no
2066f5dd5c2Smrgfi
2076f5dd5c2Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
2086f5dd5c2Smrg
2096f5dd5c2Smrgelse
2106f5dd5c2Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116f5dd5c2Smrgas_found=false
2126f5dd5c2Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2136f5dd5c2Smrgdo
2146f5dd5c2Smrg  IFS=$as_save_IFS
2156f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
2166f5dd5c2Smrg  as_found=:
2176f5dd5c2Smrg  case $as_dir in #(
2186f5dd5c2Smrg	 /*)
2196f5dd5c2Smrg	   for as_base in sh bash ksh sh5; do
2206f5dd5c2Smrg	     # Try only shells that exist, to save several forks.
2216f5dd5c2Smrg	     as_shell=$as_dir/$as_base
2226f5dd5c2Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2236f5dd5c2Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2246f5dd5c2Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2256f5dd5c2Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2266f5dd5c2Smrg  break 2
2276f5dd5c2Smrgfi
2286f5dd5c2Smrgfi
2296f5dd5c2Smrg	   done;;
2306f5dd5c2Smrg       esac
2316f5dd5c2Smrg  as_found=false
2326f5dd5c2Smrgdone
2336f5dd5c2Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2346f5dd5c2Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2356f5dd5c2Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2366f5dd5c2Smrgfi; }
2376f5dd5c2SmrgIFS=$as_save_IFS
2386f5dd5c2Smrg
2396f5dd5c2Smrg
2406f5dd5c2Smrg      if test "x$CONFIG_SHELL" != x; then :
241feee4651Smrg  export CONFIG_SHELL
242feee4651Smrg             # We cannot yet assume a decent shell, so we have to provide a
243feee4651Smrg# neutralization value for shells without unset; and this also
244feee4651Smrg# works around shells that cannot unset nonexistent variables.
245feee4651Smrg# Preserve -v and -x to the replacement shell.
246feee4651SmrgBASH_ENV=/dev/null
247feee4651SmrgENV=/dev/null
248feee4651Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249feee4651Smrgcase $- in # ((((
250feee4651Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
251feee4651Smrg  *v* ) as_opts=-v ;;
252feee4651Smrg  *x* ) as_opts=-x ;;
253feee4651Smrg  * ) as_opts= ;;
254feee4651Smrgesac
255feee4651Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256feee4651Smrg# Admittedly, this is quite paranoid, since all the known shells bail
257feee4651Smrg# out after a failed `exec'.
258feee4651Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259feee4651Smrgexit 255
2606f5dd5c2Smrgfi
2616f5dd5c2Smrg
2626f5dd5c2Smrg    if test x$as_have_required = xno; then :
2636f5dd5c2Smrg  $as_echo "$0: This script requires a shell more modern than all"
2646f5dd5c2Smrg  $as_echo "$0: the shells that I found on your system."
2656f5dd5c2Smrg  if test x${ZSH_VERSION+set} = xset ; then
2666f5dd5c2Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2676f5dd5c2Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2686f5dd5c2Smrg  else
2696f5dd5c2Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2706f5dd5c2Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2716f5dd5c2Smrg$0: about your system, including any error possibly output
2726f5dd5c2Smrg$0: before this message. Then install a modern shell, or
2736f5dd5c2Smrg$0: manually run the script under such a shell if you do
2746f5dd5c2Smrg$0: have one."
2756f5dd5c2Smrg  fi
2766f5dd5c2Smrg  exit 1
2776f5dd5c2Smrgfi
2786f5dd5c2Smrgfi
2796f5dd5c2Smrgfi
2806f5dd5c2SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2816f5dd5c2Smrgexport SHELL
2826f5dd5c2Smrg# Unset more variables known to interfere with behavior of common tools.
2836f5dd5c2SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2846f5dd5c2Smrgunset CLICOLOR_FORCE GREP_OPTIONS
2856f5dd5c2Smrg
2866f5dd5c2Smrg## --------------------- ##
2876f5dd5c2Smrg## M4sh Shell Functions. ##
2886f5dd5c2Smrg## --------------------- ##
2896f5dd5c2Smrg# as_fn_unset VAR
2906f5dd5c2Smrg# ---------------
2916f5dd5c2Smrg# Portably unset VAR.
2926f5dd5c2Smrgas_fn_unset ()
2936f5dd5c2Smrg{
2946f5dd5c2Smrg  { eval $1=; unset $1;}
2956f5dd5c2Smrg}
2966f5dd5c2Smrgas_unset=as_fn_unset
2976f5dd5c2Smrg
2986f5dd5c2Smrg# as_fn_set_status STATUS
2996f5dd5c2Smrg# -----------------------
3006f5dd5c2Smrg# Set $? to STATUS, without forking.
3016f5dd5c2Smrgas_fn_set_status ()
3026f5dd5c2Smrg{
3036f5dd5c2Smrg  return $1
3046f5dd5c2Smrg} # as_fn_set_status
3056f5dd5c2Smrg
3066f5dd5c2Smrg# as_fn_exit STATUS
3076f5dd5c2Smrg# -----------------
3086f5dd5c2Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3096f5dd5c2Smrgas_fn_exit ()
3106f5dd5c2Smrg{
3116f5dd5c2Smrg  set +e
3126f5dd5c2Smrg  as_fn_set_status $1
3136f5dd5c2Smrg  exit $1
3146f5dd5c2Smrg} # as_fn_exit
3156f5dd5c2Smrg
3166f5dd5c2Smrg# as_fn_mkdir_p
3176f5dd5c2Smrg# -------------
3186f5dd5c2Smrg# Create "$as_dir" as a directory, including parents if necessary.
3196f5dd5c2Smrgas_fn_mkdir_p ()
3206f5dd5c2Smrg{
3216f5dd5c2Smrg
3226f5dd5c2Smrg  case $as_dir in #(
3236f5dd5c2Smrg  -*) as_dir=./$as_dir;;
3246f5dd5c2Smrg  esac
3256f5dd5c2Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
3266f5dd5c2Smrg    as_dirs=
3276f5dd5c2Smrg    while :; do
3286f5dd5c2Smrg      case $as_dir in #(
3296f5dd5c2Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3306f5dd5c2Smrg      *) as_qdir=$as_dir;;
3316f5dd5c2Smrg      esac
3326f5dd5c2Smrg      as_dirs="'$as_qdir' $as_dirs"
3336f5dd5c2Smrg      as_dir=`$as_dirname -- "$as_dir" ||
3346f5dd5c2Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3356f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3366f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3376f5dd5c2Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3386f5dd5c2Smrg$as_echo X"$as_dir" |
3396f5dd5c2Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3406f5dd5c2Smrg	    s//\1/
3416f5dd5c2Smrg	    q
3426f5dd5c2Smrg	  }
3436f5dd5c2Smrg	  /^X\(\/\/\)[^/].*/{
3446f5dd5c2Smrg	    s//\1/
3456f5dd5c2Smrg	    q
3466f5dd5c2Smrg	  }
3476f5dd5c2Smrg	  /^X\(\/\/\)$/{
3486f5dd5c2Smrg	    s//\1/
3496f5dd5c2Smrg	    q
3506f5dd5c2Smrg	  }
3516f5dd5c2Smrg	  /^X\(\/\).*/{
3526f5dd5c2Smrg	    s//\1/
3536f5dd5c2Smrg	    q
3546f5dd5c2Smrg	  }
3556f5dd5c2Smrg	  s/.*/./; q'`
3566f5dd5c2Smrg      test -d "$as_dir" && break
3576f5dd5c2Smrg    done
3586f5dd5c2Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3592ab73d9fSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3606f5dd5c2Smrg
3616f5dd5c2Smrg
3626f5dd5c2Smrg} # as_fn_mkdir_p
363feee4651Smrg
364feee4651Smrg# as_fn_executable_p FILE
365feee4651Smrg# -----------------------
366feee4651Smrg# Test if FILE is an executable regular file.
367feee4651Smrgas_fn_executable_p ()
368feee4651Smrg{
369feee4651Smrg  test -f "$1" && test -x "$1"
370feee4651Smrg} # as_fn_executable_p
3716f5dd5c2Smrg# as_fn_append VAR VALUE
3726f5dd5c2Smrg# ----------------------
3736f5dd5c2Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3746f5dd5c2Smrg# advantage of any shell optimizations that allow amortized linear growth over
3756f5dd5c2Smrg# repeated appends, instead of the typical quadratic growth present in naive
3766f5dd5c2Smrg# implementations.
3776f5dd5c2Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3786f5dd5c2Smrg  eval 'as_fn_append ()
3796f5dd5c2Smrg  {
3806f5dd5c2Smrg    eval $1+=\$2
3816f5dd5c2Smrg  }'
3826f5dd5c2Smrgelse
3836f5dd5c2Smrg  as_fn_append ()
3846f5dd5c2Smrg  {
3856f5dd5c2Smrg    eval $1=\$$1\$2
3866f5dd5c2Smrg  }
3876f5dd5c2Smrgfi # as_fn_append
3886f5dd5c2Smrg
3896f5dd5c2Smrg# as_fn_arith ARG...
3906f5dd5c2Smrg# ------------------
3916f5dd5c2Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
3926f5dd5c2Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
3936f5dd5c2Smrg# must be portable across $(()) and expr.
3946f5dd5c2Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3956f5dd5c2Smrg  eval 'as_fn_arith ()
3966f5dd5c2Smrg  {
3976f5dd5c2Smrg    as_val=$(( $* ))
3986f5dd5c2Smrg  }'
3996f5dd5c2Smrgelse
4006f5dd5c2Smrg  as_fn_arith ()
4016f5dd5c2Smrg  {
4026f5dd5c2Smrg    as_val=`expr "$@" || test $? -eq 1`
4036f5dd5c2Smrg  }
4046f5dd5c2Smrgfi # as_fn_arith
4056f5dd5c2Smrg
4066f5dd5c2Smrg
4072ab73d9fSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
4082ab73d9fSmrg# ----------------------------------------
4096f5dd5c2Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4106f5dd5c2Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4112ab73d9fSmrg# script with STATUS, using 1 if that was 0.
4126f5dd5c2Smrgas_fn_error ()
4136f5dd5c2Smrg{
4142ab73d9fSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
4152ab73d9fSmrg  if test "$4"; then
4162ab73d9fSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4172ab73d9fSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4186f5dd5c2Smrg  fi
4192ab73d9fSmrg  $as_echo "$as_me: error: $2" >&2
4206f5dd5c2Smrg  as_fn_exit $as_status
4216f5dd5c2Smrg} # as_fn_error
4226f5dd5c2Smrg
423a0195d5fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
424a0195d5fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425a0195d5fSmrg  as_expr=expr
426a0195d5fSmrgelse
427a0195d5fSmrg  as_expr=false
428a0195d5fSmrgfi
429a0195d5fSmrg
430a0195d5fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431a0195d5fSmrg  as_basename=basename
432a0195d5fSmrgelse
433a0195d5fSmrg  as_basename=false
434a0195d5fSmrgfi
435a0195d5fSmrg
4366f5dd5c2Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4376f5dd5c2Smrg  as_dirname=dirname
4386f5dd5c2Smrgelse
4396f5dd5c2Smrg  as_dirname=false
4406f5dd5c2Smrgfi
441a0195d5fSmrg
442a0195d5fSmrgas_me=`$as_basename -- "$0" ||
443a0195d5fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444a0195d5fSmrg	 X"$0" : 'X\(//\)$' \| \
445a0195d5fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4466600fe5bSmrg$as_echo X/"$0" |
447a0195d5fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
448a0195d5fSmrg	    s//\1/
449a0195d5fSmrg	    q
450a0195d5fSmrg	  }
451a0195d5fSmrg	  /^X\/\(\/\/\)$/{
452a0195d5fSmrg	    s//\1/
453a0195d5fSmrg	    q
454a0195d5fSmrg	  }
455a0195d5fSmrg	  /^X\/\(\/\).*/{
456a0195d5fSmrg	    s//\1/
457a0195d5fSmrg	    q
458a0195d5fSmrg	  }
459a0195d5fSmrg	  s/.*/./; q'`
460a0195d5fSmrg
4616f5dd5c2Smrg# Avoid depending upon Character Ranges.
4626f5dd5c2Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4636f5dd5c2Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4646f5dd5c2Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4656f5dd5c2Smrgas_cr_digits='0123456789'
4666f5dd5c2Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
467a0195d5fSmrg
468a0195d5fSmrg
4696f5dd5c2Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4706f5dd5c2Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4716f5dd5c2Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4726f5dd5c2Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4736f5dd5c2Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4746f5dd5c2Smrg  sed -n '
4756f5dd5c2Smrg    p
4766f5dd5c2Smrg    /[$]LINENO/=
4776f5dd5c2Smrg  ' <$as_myself |
4786f5dd5c2Smrg    sed '
4796f5dd5c2Smrg      s/[$]LINENO.*/&-/
4806f5dd5c2Smrg      t lineno
4816f5dd5c2Smrg      b
4826f5dd5c2Smrg      :lineno
4836f5dd5c2Smrg      N
4846f5dd5c2Smrg      :loop
4856f5dd5c2Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4866f5dd5c2Smrg      t loop
4876f5dd5c2Smrg      s/-\n.*//
4886f5dd5c2Smrg    ' >$as_me.lineno &&
4896f5dd5c2Smrg  chmod +x "$as_me.lineno" ||
4906f5dd5c2Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491a0195d5fSmrg
492feee4651Smrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493feee4651Smrg  # already done that, so ensure we don't try to do so again and fall
494feee4651Smrg  # in an infinite loop.  This has already happened in practice.
495feee4651Smrg  _as_can_reexec=no; export _as_can_reexec
4966f5dd5c2Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
4976f5dd5c2Smrg  # (the dirname of $[0] is not the place where we might find the
4986f5dd5c2Smrg  # original and so on.  Autoconf is especially sensitive to this).
4996f5dd5c2Smrg  . "./$as_me.lineno"
5006f5dd5c2Smrg  # Exit status is that of the last command.
5016f5dd5c2Smrg  exit
502a0195d5fSmrg}
503a0195d5fSmrg
5046f5dd5c2SmrgECHO_C= ECHO_N= ECHO_T=
5056f5dd5c2Smrgcase `echo -n x` in #(((((
5066f5dd5c2Smrg-n*)
5076f5dd5c2Smrg  case `echo 'xy\c'` in
5086f5dd5c2Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5096f5dd5c2Smrg  xy)  ECHO_C='\c';;
5106f5dd5c2Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5116f5dd5c2Smrg       ECHO_T='	';;
5126f5dd5c2Smrg  esac;;
5136f5dd5c2Smrg*)
5146f5dd5c2Smrg  ECHO_N='-n';;
5156f5dd5c2Smrgesac
516a0195d5fSmrg
5176f5dd5c2Smrgrm -f conf$$ conf$$.exe conf$$.file
5186f5dd5c2Smrgif test -d conf$$.dir; then
5196f5dd5c2Smrg  rm -f conf$$.dir/conf$$.file
5206f5dd5c2Smrgelse
5216f5dd5c2Smrg  rm -f conf$$.dir
5226f5dd5c2Smrg  mkdir conf$$.dir 2>/dev/null
523a0195d5fSmrgfi
5246f5dd5c2Smrgif (echo >conf$$.file) 2>/dev/null; then
5256f5dd5c2Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5266f5dd5c2Smrg    as_ln_s='ln -s'
5276f5dd5c2Smrg    # ... but there are two gotchas:
5286f5dd5c2Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5296f5dd5c2Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530feee4651Smrg    # In both cases, we have to default to `cp -pR'.
5316f5dd5c2Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532feee4651Smrg      as_ln_s='cp -pR'
5336f5dd5c2Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5346f5dd5c2Smrg    as_ln_s=ln
5356f5dd5c2Smrg  else
536feee4651Smrg    as_ln_s='cp -pR'
5376f5dd5c2Smrg  fi
538a0195d5fSmrgelse
539feee4651Smrg  as_ln_s='cp -pR'
540a0195d5fSmrgfi
5416f5dd5c2Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5426f5dd5c2Smrgrmdir conf$$.dir 2>/dev/null
543a0195d5fSmrg
5446f5dd5c2Smrgif mkdir -p . 2>/dev/null; then
5456f5dd5c2Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5466f5dd5c2Smrgelse
5476f5dd5c2Smrg  test -d ./-p && rmdir ./-p
5486f5dd5c2Smrg  as_mkdir_p=false
549a0195d5fSmrgfi
550a0195d5fSmrg
551feee4651Smrgas_test_x='test -x'
552feee4651Smrgas_executable_p=as_fn_executable_p
553a0195d5fSmrg
5546f5dd5c2Smrg# Sed expression to map a string onto a valid CPP name.
5556f5dd5c2Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556a0195d5fSmrg
5576f5dd5c2Smrg# Sed expression to map a string onto a valid variable name.
5586f5dd5c2Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559a0195d5fSmrg
560a0195d5fSmrg
5616f5dd5c2Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5626f5dd5c2Smrgexec 6>&1
563a0195d5fSmrg
564a0195d5fSmrg# Name of the host.
5652ab73d9fSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566a0195d5fSmrg# so uname gets run too.
567a0195d5fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568a0195d5fSmrg
569a0195d5fSmrg#
570a0195d5fSmrg# Initializations.
571a0195d5fSmrg#
572a0195d5fSmrgac_default_prefix=/usr/local
573a0195d5fSmrgac_clean_files=
574a0195d5fSmrgac_config_libobj_dir=.
575a0195d5fSmrgLIBOBJS=
576a0195d5fSmrgcross_compiling=no
577a0195d5fSmrgsubdirs=
578a0195d5fSmrgMFLAGS=
579a0195d5fSmrgMAKEFLAGS=
580a0195d5fSmrg
581a0195d5fSmrg# Identity of this package.
582a0195d5fSmrgPACKAGE_NAME='xset'
583a0195d5fSmrgPACKAGE_TARNAME='xset'
584feee4651SmrgPACKAGE_VERSION='1.2.4'
585feee4651SmrgPACKAGE_STRING='xset 1.2.4'
586a0195d5fSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
5876f5dd5c2SmrgPACKAGE_URL=''
588a0195d5fSmrg
5892ab73d9fSmrgac_unique_file="Makefile.am"
5906600fe5bSmrg# Factoring default headers for most tests.
5916600fe5bSmrgac_includes_default="\
5926600fe5bSmrg#include <stdio.h>
5936600fe5bSmrg#ifdef HAVE_SYS_TYPES_H
5946600fe5bSmrg# include <sys/types.h>
5956600fe5bSmrg#endif
5966600fe5bSmrg#ifdef HAVE_SYS_STAT_H
5976600fe5bSmrg# include <sys/stat.h>
5986600fe5bSmrg#endif
5996600fe5bSmrg#ifdef STDC_HEADERS
6006600fe5bSmrg# include <stdlib.h>
6016600fe5bSmrg# include <stddef.h>
6026600fe5bSmrg#else
6036600fe5bSmrg# ifdef HAVE_STDLIB_H
6046600fe5bSmrg#  include <stdlib.h>
6056600fe5bSmrg# endif
6066600fe5bSmrg#endif
6076600fe5bSmrg#ifdef HAVE_STRING_H
6086600fe5bSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6096600fe5bSmrg#  include <memory.h>
6106600fe5bSmrg# endif
6116600fe5bSmrg# include <string.h>
6126600fe5bSmrg#endif
6136600fe5bSmrg#ifdef HAVE_STRINGS_H
6146600fe5bSmrg# include <strings.h>
6156600fe5bSmrg#endif
6166600fe5bSmrg#ifdef HAVE_INTTYPES_H
6176600fe5bSmrg# include <inttypes.h>
6186600fe5bSmrg#endif
6196600fe5bSmrg#ifdef HAVE_STDINT_H
6206600fe5bSmrg# include <stdint.h>
6216600fe5bSmrg#endif
6226600fe5bSmrg#ifdef HAVE_UNISTD_H
6236600fe5bSmrg# include <unistd.h>
6246600fe5bSmrg#endif"
6256600fe5bSmrg
6266600fe5bSmrgac_subst_vars='am__EXEEXT_FALSE
6276600fe5bSmrgam__EXEEXT_TRUE
6286600fe5bSmrgLTLIBOBJS
6296600fe5bSmrgLIBOBJS
6306600fe5bSmrgSET_FONTCACHE_LIBS
6316600fe5bSmrgSET_FONTCACHE_CFLAGS
6326600fe5bSmrgSET_XF86MISC_LIBS
6336600fe5bSmrgSET_XF86MISC_CFLAGS
6346600fe5bSmrgSET_XKB_LIBS
6356600fe5bSmrgSET_XKB_CFLAGS
6366600fe5bSmrgSET_XEXT_LIBS
6376600fe5bSmrgSET_XEXT_CFLAGS
6386600fe5bSmrgSET_X11_LIBS
6396600fe5bSmrgSET_X11_CFLAGS
6406600fe5bSmrgXSET_LIBS
6416600fe5bSmrgXSET_CFLAGS
6426f5dd5c2SmrgMAN_SUBSTS
6436f5dd5c2SmrgXORG_MAN_PAGE
644a0195d5fSmrgADMIN_MAN_DIR
6456600fe5bSmrgDRIVER_MAN_DIR
6466600fe5bSmrgMISC_MAN_DIR
6476600fe5bSmrgFILE_MAN_DIR
6486600fe5bSmrgLIB_MAN_DIR
6496600fe5bSmrgAPP_MAN_DIR
6506600fe5bSmrgADMIN_MAN_SUFFIX
6516600fe5bSmrgDRIVER_MAN_SUFFIX
6526600fe5bSmrgMISC_MAN_SUFFIX
6536600fe5bSmrgFILE_MAN_SUFFIX
6546600fe5bSmrgLIB_MAN_SUFFIX
6556600fe5bSmrgAPP_MAN_SUFFIX
6566f5dd5c2SmrgSED
6576600fe5bSmrghost_os
6586600fe5bSmrghost_vendor
6596600fe5bSmrghost_cpu
6606600fe5bSmrghost
6616600fe5bSmrgbuild_os
6626600fe5bSmrgbuild_vendor
6636600fe5bSmrgbuild_cpu
6646600fe5bSmrgbuild
6656f5dd5c2SmrgINSTALL_CMD
666feee4651SmrgPKG_CONFIG_LIBDIR
667feee4651SmrgPKG_CONFIG_PATH
6686f5dd5c2SmrgPKG_CONFIG
6696600fe5bSmrgCHANGELOG_CMD
670ff6cf368SmrgSTRICT_CFLAGS
6716600fe5bSmrgCWARNFLAGS
67240a76396SmrgBASE_CFLAGS
67340a76396SmrgAM_BACKSLASH
67440a76396SmrgAM_DEFAULT_VERBOSITY
67540a76396SmrgAM_DEFAULT_V
67640a76396SmrgAM_V
6776600fe5bSmrgam__fastdepCC_FALSE
6786600fe5bSmrgam__fastdepCC_TRUE
6796600fe5bSmrgCCDEPMODE
68040a76396Smrgam__nodep
6816600fe5bSmrgAMDEPBACKSLASH
6826600fe5bSmrgAMDEP_FALSE
6836600fe5bSmrgAMDEP_TRUE
6846600fe5bSmrgam__quote
6856600fe5bSmrgam__include
6866600fe5bSmrgDEPDIR
6876600fe5bSmrgam__untar
6886600fe5bSmrgam__tar
6896600fe5bSmrgAMTAR
6906600fe5bSmrgam__leading_dot
6916600fe5bSmrgSET_MAKE
6926600fe5bSmrgAWK
6936600fe5bSmrgmkdir_p
6946600fe5bSmrgMKDIR_P
6956600fe5bSmrgINSTALL_STRIP_PROGRAM
6966600fe5bSmrgSTRIP
6976600fe5bSmrginstall_sh
6986600fe5bSmrgMAKEINFO
6996600fe5bSmrgAUTOHEADER
7006600fe5bSmrgAUTOMAKE
7016600fe5bSmrgAUTOCONF
7026600fe5bSmrgACLOCAL
7036600fe5bSmrgVERSION
7046600fe5bSmrgPACKAGE
7056600fe5bSmrgCYGPATH_W
7066600fe5bSmrgam__isrc
7076600fe5bSmrgINSTALL_DATA
7086600fe5bSmrgINSTALL_SCRIPT
7096600fe5bSmrgINSTALL_PROGRAM
71040a76396SmrgEGREP
71140a76396SmrgGREP
71240a76396SmrgCPP
71340a76396SmrgOBJEXT
71440a76396SmrgEXEEXT
71540a76396Smrgac_ct_CC
71640a76396SmrgCPPFLAGS
71740a76396SmrgLDFLAGS
71840a76396SmrgCFLAGS
71940a76396SmrgCC
7206600fe5bSmrgtarget_alias
7216600fe5bSmrghost_alias
7226600fe5bSmrgbuild_alias
7236600fe5bSmrgLIBS
7246600fe5bSmrgECHO_T
7256600fe5bSmrgECHO_N
7266600fe5bSmrgECHO_C
7276600fe5bSmrgDEFS
7286600fe5bSmrgmandir
7296600fe5bSmrglocaledir
7306600fe5bSmrglibdir
7316600fe5bSmrgpsdir
7326600fe5bSmrgpdfdir
7336600fe5bSmrgdvidir
7346600fe5bSmrghtmldir
7356600fe5bSmrginfodir
7366600fe5bSmrgdocdir
7376600fe5bSmrgoldincludedir
7386600fe5bSmrgincludedir
7396600fe5bSmrglocalstatedir
7406600fe5bSmrgsharedstatedir
7416600fe5bSmrgsysconfdir
7426600fe5bSmrgdatadir
7436600fe5bSmrgdatarootdir
7446600fe5bSmrglibexecdir
7456600fe5bSmrgsbindir
7466600fe5bSmrgbindir
7476600fe5bSmrgprogram_transform_name
7486600fe5bSmrgprefix
7496600fe5bSmrgexec_prefix
7506f5dd5c2SmrgPACKAGE_URL
7516600fe5bSmrgPACKAGE_BUGREPORT
7526600fe5bSmrgPACKAGE_STRING
7536600fe5bSmrgPACKAGE_VERSION
7546600fe5bSmrgPACKAGE_TARNAME
7556600fe5bSmrgPACKAGE_NAME
7566600fe5bSmrgPATH_SEPARATOR
7576600fe5bSmrgSHELL'
758a0195d5fSmrgac_subst_files=''
7596600fe5bSmrgac_user_opts='
7606600fe5bSmrgenable_option_checking
7616600fe5bSmrgenable_dependency_tracking
7626f5dd5c2Smrgenable_silent_rules
76340a76396Smrgenable_selective_werror
76440a76396Smrgenable_strict_compilation
7656f5dd5c2Smrgwith_xf86misc
7666f5dd5c2Smrgwith_fontcache
7676600fe5bSmrg'
768a0195d5fSmrg      ac_precious_vars='build_alias
769a0195d5fSmrghost_alias
770a0195d5fSmrgtarget_alias
771a0195d5fSmrgCC
772a0195d5fSmrgCFLAGS
773a0195d5fSmrgLDFLAGS
774a0195d5fSmrgLIBS
775a0195d5fSmrgCPPFLAGS
7766600fe5bSmrgCPP
777a0195d5fSmrgPKG_CONFIG
778feee4651SmrgPKG_CONFIG_PATH
779feee4651SmrgPKG_CONFIG_LIBDIR
780a0195d5fSmrgXSET_CFLAGS
781a0195d5fSmrgXSET_LIBS
782a0195d5fSmrgSET_X11_CFLAGS
783a0195d5fSmrgSET_X11_LIBS
784a0195d5fSmrgSET_XEXT_CFLAGS
785a0195d5fSmrgSET_XEXT_LIBS
786a0195d5fSmrgSET_XKB_CFLAGS
787a0195d5fSmrgSET_XKB_LIBS
788a0195d5fSmrgSET_XF86MISC_CFLAGS
789a0195d5fSmrgSET_XF86MISC_LIBS
790a0195d5fSmrgSET_FONTCACHE_CFLAGS
7916f5dd5c2SmrgSET_FONTCACHE_LIBS'
792a0195d5fSmrg
793a0195d5fSmrg
794a0195d5fSmrg# Initialize some variables set by options.
795a0195d5fSmrgac_init_help=
796a0195d5fSmrgac_init_version=false
7976600fe5bSmrgac_unrecognized_opts=
7986600fe5bSmrgac_unrecognized_sep=
799a0195d5fSmrg# The variables have the same names as the options, with
800a0195d5fSmrg# dashes changed to underlines.
801a0195d5fSmrgcache_file=/dev/null
802a0195d5fSmrgexec_prefix=NONE
803a0195d5fSmrgno_create=
804a0195d5fSmrgno_recursion=
805a0195d5fSmrgprefix=NONE
806a0195d5fSmrgprogram_prefix=NONE
807a0195d5fSmrgprogram_suffix=NONE
808a0195d5fSmrgprogram_transform_name=s,x,x,
809a0195d5fSmrgsilent=
810a0195d5fSmrgsite=
811a0195d5fSmrgsrcdir=
812a0195d5fSmrgverbose=
813a0195d5fSmrgx_includes=NONE
814a0195d5fSmrgx_libraries=NONE
815a0195d5fSmrg
816a0195d5fSmrg# Installation directory options.
817a0195d5fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
818a0195d5fSmrg# and all the variables that are supposed to be based on exec_prefix
819a0195d5fSmrg# by default will actually change.
820a0195d5fSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
821a0195d5fSmrg# (The list follows the same order as the GNU Coding Standards.)
822a0195d5fSmrgbindir='${exec_prefix}/bin'
823a0195d5fSmrgsbindir='${exec_prefix}/sbin'
824a0195d5fSmrglibexecdir='${exec_prefix}/libexec'
825a0195d5fSmrgdatarootdir='${prefix}/share'
826a0195d5fSmrgdatadir='${datarootdir}'
827a0195d5fSmrgsysconfdir='${prefix}/etc'
828a0195d5fSmrgsharedstatedir='${prefix}/com'
829a0195d5fSmrglocalstatedir='${prefix}/var'
830a0195d5fSmrgincludedir='${prefix}/include'
831a0195d5fSmrgoldincludedir='/usr/include'
832a0195d5fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833a0195d5fSmrginfodir='${datarootdir}/info'
834a0195d5fSmrghtmldir='${docdir}'
835a0195d5fSmrgdvidir='${docdir}'
836a0195d5fSmrgpdfdir='${docdir}'
837a0195d5fSmrgpsdir='${docdir}'
838a0195d5fSmrglibdir='${exec_prefix}/lib'
839a0195d5fSmrglocaledir='${datarootdir}/locale'
840a0195d5fSmrgmandir='${datarootdir}/man'
841a0195d5fSmrg
842a0195d5fSmrgac_prev=
843a0195d5fSmrgac_dashdash=
844a0195d5fSmrgfor ac_option
845a0195d5fSmrgdo
846a0195d5fSmrg  # If the previous option needs an argument, assign it.
847a0195d5fSmrg  if test -n "$ac_prev"; then
848a0195d5fSmrg    eval $ac_prev=\$ac_option
849a0195d5fSmrg    ac_prev=
850a0195d5fSmrg    continue
851a0195d5fSmrg  fi
852a0195d5fSmrg
853a0195d5fSmrg  case $ac_option in
8542ab73d9fSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8552ab73d9fSmrg  *=)   ac_optarg= ;;
8562ab73d9fSmrg  *)    ac_optarg=yes ;;
857a0195d5fSmrg  esac
858a0195d5fSmrg
859a0195d5fSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
860a0195d5fSmrg
861a0195d5fSmrg  case $ac_dashdash$ac_option in
862a0195d5fSmrg  --)
863a0195d5fSmrg    ac_dashdash=yes ;;
864a0195d5fSmrg
865a0195d5fSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
866a0195d5fSmrg    ac_prev=bindir ;;
867a0195d5fSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868a0195d5fSmrg    bindir=$ac_optarg ;;
869a0195d5fSmrg
870a0195d5fSmrg  -build | --build | --buil | --bui | --bu)
871a0195d5fSmrg    ac_prev=build_alias ;;
872a0195d5fSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873a0195d5fSmrg    build_alias=$ac_optarg ;;
874a0195d5fSmrg
875a0195d5fSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
876a0195d5fSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877a0195d5fSmrg    ac_prev=cache_file ;;
878a0195d5fSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879a0195d5fSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880a0195d5fSmrg    cache_file=$ac_optarg ;;
881a0195d5fSmrg
882a0195d5fSmrg  --config-cache | -C)
883a0195d5fSmrg    cache_file=config.cache ;;
884a0195d5fSmrg
885a0195d5fSmrg  -datadir | --datadir | --datadi | --datad)
886a0195d5fSmrg    ac_prev=datadir ;;
887a0195d5fSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
888a0195d5fSmrg    datadir=$ac_optarg ;;
889a0195d5fSmrg
890a0195d5fSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891a0195d5fSmrg  | --dataroo | --dataro | --datar)
892a0195d5fSmrg    ac_prev=datarootdir ;;
893a0195d5fSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894a0195d5fSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895a0195d5fSmrg    datarootdir=$ac_optarg ;;
896a0195d5fSmrg
897a0195d5fSmrg  -disable-* | --disable-*)
8986600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899a0195d5fSmrg    # Reject names that are not valid shell variable names.
9006600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9012ab73d9fSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
9026600fe5bSmrg    ac_useropt_orig=$ac_useropt
9036600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9046600fe5bSmrg    case $ac_user_opts in
9056600fe5bSmrg      *"
9066600fe5bSmrg"enable_$ac_useropt"
9076600fe5bSmrg"*) ;;
9086600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
9096600fe5bSmrg	 ac_unrecognized_sep=', ';;
9106600fe5bSmrg    esac
9116600fe5bSmrg    eval enable_$ac_useropt=no ;;
912a0195d5fSmrg
913a0195d5fSmrg  -docdir | --docdir | --docdi | --doc | --do)
914a0195d5fSmrg    ac_prev=docdir ;;
915a0195d5fSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916a0195d5fSmrg    docdir=$ac_optarg ;;
917a0195d5fSmrg
918a0195d5fSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919a0195d5fSmrg    ac_prev=dvidir ;;
920a0195d5fSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921a0195d5fSmrg    dvidir=$ac_optarg ;;
922a0195d5fSmrg
923a0195d5fSmrg  -enable-* | --enable-*)
9246600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925a0195d5fSmrg    # Reject names that are not valid shell variable names.
9266600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9272ab73d9fSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
9286600fe5bSmrg    ac_useropt_orig=$ac_useropt
9296600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9306600fe5bSmrg    case $ac_user_opts in
9316600fe5bSmrg      *"
9326600fe5bSmrg"enable_$ac_useropt"
9336600fe5bSmrg"*) ;;
9346600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9356600fe5bSmrg	 ac_unrecognized_sep=', ';;
9366600fe5bSmrg    esac
9376600fe5bSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
938a0195d5fSmrg
939a0195d5fSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940a0195d5fSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941a0195d5fSmrg  | --exec | --exe | --ex)
942a0195d5fSmrg    ac_prev=exec_prefix ;;
943a0195d5fSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944a0195d5fSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945a0195d5fSmrg  | --exec=* | --exe=* | --ex=*)
946a0195d5fSmrg    exec_prefix=$ac_optarg ;;
947a0195d5fSmrg
948a0195d5fSmrg  -gas | --gas | --ga | --g)
949a0195d5fSmrg    # Obsolete; use --with-gas.
950a0195d5fSmrg    with_gas=yes ;;
951a0195d5fSmrg
952a0195d5fSmrg  -help | --help | --hel | --he | -h)
953a0195d5fSmrg    ac_init_help=long ;;
954a0195d5fSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955a0195d5fSmrg    ac_init_help=recursive ;;
956a0195d5fSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957a0195d5fSmrg    ac_init_help=short ;;
958a0195d5fSmrg
959a0195d5fSmrg  -host | --host | --hos | --ho)
960a0195d5fSmrg    ac_prev=host_alias ;;
961a0195d5fSmrg  -host=* | --host=* | --hos=* | --ho=*)
962a0195d5fSmrg    host_alias=$ac_optarg ;;
963a0195d5fSmrg
964a0195d5fSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965a0195d5fSmrg    ac_prev=htmldir ;;
966a0195d5fSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967a0195d5fSmrg  | --ht=*)
968a0195d5fSmrg    htmldir=$ac_optarg ;;
969a0195d5fSmrg
970a0195d5fSmrg  -includedir | --includedir | --includedi | --included | --include \
971a0195d5fSmrg  | --includ | --inclu | --incl | --inc)
972a0195d5fSmrg    ac_prev=includedir ;;
973a0195d5fSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974a0195d5fSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
975a0195d5fSmrg    includedir=$ac_optarg ;;
976a0195d5fSmrg
977a0195d5fSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
978a0195d5fSmrg    ac_prev=infodir ;;
979a0195d5fSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980a0195d5fSmrg    infodir=$ac_optarg ;;
981a0195d5fSmrg
982a0195d5fSmrg  -libdir | --libdir | --libdi | --libd)
983a0195d5fSmrg    ac_prev=libdir ;;
984a0195d5fSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
985a0195d5fSmrg    libdir=$ac_optarg ;;
986a0195d5fSmrg
987a0195d5fSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988a0195d5fSmrg  | --libexe | --libex | --libe)
989a0195d5fSmrg    ac_prev=libexecdir ;;
990a0195d5fSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991a0195d5fSmrg  | --libexe=* | --libex=* | --libe=*)
992a0195d5fSmrg    libexecdir=$ac_optarg ;;
993a0195d5fSmrg
994a0195d5fSmrg  -localedir | --localedir | --localedi | --localed | --locale)
995a0195d5fSmrg    ac_prev=localedir ;;
996a0195d5fSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997a0195d5fSmrg    localedir=$ac_optarg ;;
998a0195d5fSmrg
999a0195d5fSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
1000a0195d5fSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
1001a0195d5fSmrg    ac_prev=localstatedir ;;
1002a0195d5fSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003a0195d5fSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004a0195d5fSmrg    localstatedir=$ac_optarg ;;
1005a0195d5fSmrg
1006a0195d5fSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007a0195d5fSmrg    ac_prev=mandir ;;
1008a0195d5fSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009a0195d5fSmrg    mandir=$ac_optarg ;;
1010a0195d5fSmrg
1011a0195d5fSmrg  -nfp | --nfp | --nf)
1012a0195d5fSmrg    # Obsolete; use --without-fp.
1013a0195d5fSmrg    with_fp=no ;;
1014a0195d5fSmrg
1015a0195d5fSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016a0195d5fSmrg  | --no-cr | --no-c | -n)
1017a0195d5fSmrg    no_create=yes ;;
1018a0195d5fSmrg
1019a0195d5fSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020a0195d5fSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021a0195d5fSmrg    no_recursion=yes ;;
1022a0195d5fSmrg
1023a0195d5fSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024a0195d5fSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025a0195d5fSmrg  | --oldin | --oldi | --old | --ol | --o)
1026a0195d5fSmrg    ac_prev=oldincludedir ;;
1027a0195d5fSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028a0195d5fSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029a0195d5fSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030a0195d5fSmrg    oldincludedir=$ac_optarg ;;
1031a0195d5fSmrg
1032a0195d5fSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033a0195d5fSmrg    ac_prev=prefix ;;
1034a0195d5fSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035a0195d5fSmrg    prefix=$ac_optarg ;;
1036a0195d5fSmrg
1037a0195d5fSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038a0195d5fSmrg  | --program-pre | --program-pr | --program-p)
1039a0195d5fSmrg    ac_prev=program_prefix ;;
1040a0195d5fSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041a0195d5fSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042a0195d5fSmrg    program_prefix=$ac_optarg ;;
1043a0195d5fSmrg
1044a0195d5fSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045a0195d5fSmrg  | --program-suf | --program-su | --program-s)
1046a0195d5fSmrg    ac_prev=program_suffix ;;
1047a0195d5fSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048a0195d5fSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049a0195d5fSmrg    program_suffix=$ac_optarg ;;
1050a0195d5fSmrg
1051a0195d5fSmrg  -program-transform-name | --program-transform-name \
1052a0195d5fSmrg  | --program-transform-nam | --program-transform-na \
1053a0195d5fSmrg  | --program-transform-n | --program-transform- \
1054a0195d5fSmrg  | --program-transform | --program-transfor \
1055a0195d5fSmrg  | --program-transfo | --program-transf \
1056a0195d5fSmrg  | --program-trans | --program-tran \
1057a0195d5fSmrg  | --progr-tra | --program-tr | --program-t)
1058a0195d5fSmrg    ac_prev=program_transform_name ;;
1059a0195d5fSmrg  -program-transform-name=* | --program-transform-name=* \
1060a0195d5fSmrg  | --program-transform-nam=* | --program-transform-na=* \
1061a0195d5fSmrg  | --program-transform-n=* | --program-transform-=* \
1062a0195d5fSmrg  | --program-transform=* | --program-transfor=* \
1063a0195d5fSmrg  | --program-transfo=* | --program-transf=* \
1064a0195d5fSmrg  | --program-trans=* | --program-tran=* \
1065a0195d5fSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1066a0195d5fSmrg    program_transform_name=$ac_optarg ;;
1067a0195d5fSmrg
1068a0195d5fSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069a0195d5fSmrg    ac_prev=pdfdir ;;
1070a0195d5fSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071a0195d5fSmrg    pdfdir=$ac_optarg ;;
1072a0195d5fSmrg
1073a0195d5fSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1074a0195d5fSmrg    ac_prev=psdir ;;
1075a0195d5fSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076a0195d5fSmrg    psdir=$ac_optarg ;;
1077a0195d5fSmrg
1078a0195d5fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079a0195d5fSmrg  | -silent | --silent | --silen | --sile | --sil)
1080a0195d5fSmrg    silent=yes ;;
1081a0195d5fSmrg
1082a0195d5fSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083a0195d5fSmrg    ac_prev=sbindir ;;
1084a0195d5fSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085a0195d5fSmrg  | --sbi=* | --sb=*)
1086a0195d5fSmrg    sbindir=$ac_optarg ;;
1087a0195d5fSmrg
1088a0195d5fSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089a0195d5fSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090a0195d5fSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1091a0195d5fSmrg  | --sha | --sh)
1092a0195d5fSmrg    ac_prev=sharedstatedir ;;
1093a0195d5fSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094a0195d5fSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095a0195d5fSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096a0195d5fSmrg  | --sha=* | --sh=*)
1097a0195d5fSmrg    sharedstatedir=$ac_optarg ;;
1098a0195d5fSmrg
1099a0195d5fSmrg  -site | --site | --sit)
1100a0195d5fSmrg    ac_prev=site ;;
1101a0195d5fSmrg  -site=* | --site=* | --sit=*)
1102a0195d5fSmrg    site=$ac_optarg ;;
1103a0195d5fSmrg
1104a0195d5fSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105a0195d5fSmrg    ac_prev=srcdir ;;
1106a0195d5fSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107a0195d5fSmrg    srcdir=$ac_optarg ;;
1108a0195d5fSmrg
1109a0195d5fSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110a0195d5fSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1111a0195d5fSmrg    ac_prev=sysconfdir ;;
1112a0195d5fSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113a0195d5fSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114a0195d5fSmrg    sysconfdir=$ac_optarg ;;
1115a0195d5fSmrg
1116a0195d5fSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1117a0195d5fSmrg    ac_prev=target_alias ;;
1118a0195d5fSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119a0195d5fSmrg    target_alias=$ac_optarg ;;
1120a0195d5fSmrg
1121a0195d5fSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122a0195d5fSmrg    verbose=yes ;;
1123a0195d5fSmrg
1124a0195d5fSmrg  -version | --version | --versio | --versi | --vers | -V)
1125a0195d5fSmrg    ac_init_version=: ;;
1126a0195d5fSmrg
1127a0195d5fSmrg  -with-* | --with-*)
11286600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129a0195d5fSmrg    # Reject names that are not valid shell variable names.
11306600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11312ab73d9fSmrg      as_fn_error $? "invalid package name: $ac_useropt"
11326600fe5bSmrg    ac_useropt_orig=$ac_useropt
11336600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11346600fe5bSmrg    case $ac_user_opts in
11356600fe5bSmrg      *"
11366600fe5bSmrg"with_$ac_useropt"
11376600fe5bSmrg"*) ;;
11386600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11396600fe5bSmrg	 ac_unrecognized_sep=', ';;
11406600fe5bSmrg    esac
11416600fe5bSmrg    eval with_$ac_useropt=\$ac_optarg ;;
1142a0195d5fSmrg
1143a0195d5fSmrg  -without-* | --without-*)
11446600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145a0195d5fSmrg    # Reject names that are not valid shell variable names.
11466600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11472ab73d9fSmrg      as_fn_error $? "invalid package name: $ac_useropt"
11486600fe5bSmrg    ac_useropt_orig=$ac_useropt
11496600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11506600fe5bSmrg    case $ac_user_opts in
11516600fe5bSmrg      *"
11526600fe5bSmrg"with_$ac_useropt"
11536600fe5bSmrg"*) ;;
11546600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11556600fe5bSmrg	 ac_unrecognized_sep=', ';;
11566600fe5bSmrg    esac
11576600fe5bSmrg    eval with_$ac_useropt=no ;;
1158a0195d5fSmrg
1159a0195d5fSmrg  --x)
1160a0195d5fSmrg    # Obsolete; use --with-x.
1161a0195d5fSmrg    with_x=yes ;;
1162a0195d5fSmrg
1163a0195d5fSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164a0195d5fSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1165a0195d5fSmrg    ac_prev=x_includes ;;
1166a0195d5fSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167a0195d5fSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168a0195d5fSmrg    x_includes=$ac_optarg ;;
1169a0195d5fSmrg
1170a0195d5fSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171a0195d5fSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172a0195d5fSmrg    ac_prev=x_libraries ;;
1173a0195d5fSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174a0195d5fSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175a0195d5fSmrg    x_libraries=$ac_optarg ;;
1176a0195d5fSmrg
11772ab73d9fSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11782ab73d9fSmrgTry \`$0 --help' for more information"
1179a0195d5fSmrg    ;;
1180a0195d5fSmrg
1181a0195d5fSmrg  *=*)
1182a0195d5fSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183a0195d5fSmrg    # Reject names that are not valid shell variable names.
11846f5dd5c2Smrg    case $ac_envvar in #(
11856f5dd5c2Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11862ab73d9fSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
11876f5dd5c2Smrg    esac
1188a0195d5fSmrg    eval $ac_envvar=\$ac_optarg
1189a0195d5fSmrg    export $ac_envvar ;;
1190a0195d5fSmrg
1191a0195d5fSmrg  *)
1192a0195d5fSmrg    # FIXME: should be removed in autoconf 3.0.
11936600fe5bSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194a0195d5fSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11956600fe5bSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11962ab73d9fSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197a0195d5fSmrg    ;;
1198a0195d5fSmrg
1199a0195d5fSmrg  esac
1200a0195d5fSmrgdone
1201a0195d5fSmrg
1202a0195d5fSmrgif test -n "$ac_prev"; then
1203a0195d5fSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12042ab73d9fSmrg  as_fn_error $? "missing argument to $ac_option"
1205a0195d5fSmrgfi
1206a0195d5fSmrg
12076600fe5bSmrgif test -n "$ac_unrecognized_opts"; then
12086600fe5bSmrg  case $enable_option_checking in
12096600fe5bSmrg    no) ;;
12102ab73d9fSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
12116600fe5bSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12126600fe5bSmrg  esac
12136600fe5bSmrgfi
12146600fe5bSmrg
12156600fe5bSmrg# Check all directory arguments for consistency.
12166600fe5bSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
12176600fe5bSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1218a0195d5fSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219a0195d5fSmrg		libdir localedir mandir
1220a0195d5fSmrgdo
1221a0195d5fSmrg  eval ac_val=\$$ac_var
12226600fe5bSmrg  # Remove trailing slashes.
12236600fe5bSmrg  case $ac_val in
12246600fe5bSmrg    */ )
12256600fe5bSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
12266600fe5bSmrg      eval $ac_var=\$ac_val;;
12276600fe5bSmrg  esac
12286600fe5bSmrg  # Be sure to have absolute directory names.
1229a0195d5fSmrg  case $ac_val in
1230a0195d5fSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1231a0195d5fSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232a0195d5fSmrg  esac
12332ab73d9fSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234a0195d5fSmrgdone
1235a0195d5fSmrg
1236a0195d5fSmrg# There might be people who depend on the old broken behavior: `$host'
1237a0195d5fSmrg# used to hold the argument of --host etc.
1238a0195d5fSmrg# FIXME: To remove some day.
1239a0195d5fSmrgbuild=$build_alias
1240a0195d5fSmrghost=$host_alias
1241a0195d5fSmrgtarget=$target_alias
1242a0195d5fSmrg
1243a0195d5fSmrg# FIXME: To remove some day.
1244a0195d5fSmrgif test "x$host_alias" != x; then
1245a0195d5fSmrg  if test "x$build_alias" = x; then
1246a0195d5fSmrg    cross_compiling=maybe
1247a0195d5fSmrg  elif test "x$build_alias" != "x$host_alias"; then
1248a0195d5fSmrg    cross_compiling=yes
1249a0195d5fSmrg  fi
1250a0195d5fSmrgfi
1251a0195d5fSmrg
1252a0195d5fSmrgac_tool_prefix=
1253a0195d5fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1254a0195d5fSmrg
1255a0195d5fSmrgtest "$silent" = yes && exec 6>/dev/null
1256a0195d5fSmrg
1257a0195d5fSmrg
1258a0195d5fSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1259a0195d5fSmrgac_ls_di=`ls -di .` &&
1260a0195d5fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12612ab73d9fSmrg  as_fn_error $? "working directory cannot be determined"
1262a0195d5fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12632ab73d9fSmrg  as_fn_error $? "pwd does not report name of working directory"
1264a0195d5fSmrg
1265a0195d5fSmrg
1266a0195d5fSmrg# Find the source files, if location was not specified.
1267a0195d5fSmrgif test -z "$srcdir"; then
1268a0195d5fSmrg  ac_srcdir_defaulted=yes
1269a0195d5fSmrg  # Try the directory containing this script, then the parent directory.
12706600fe5bSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12716600fe5bSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12726600fe5bSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12736600fe5bSmrg	 X"$as_myself" : 'X\(//\)$' \| \
12746600fe5bSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12756600fe5bSmrg$as_echo X"$as_myself" |
1276a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277a0195d5fSmrg	    s//\1/
1278a0195d5fSmrg	    q
1279a0195d5fSmrg	  }
1280a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
1281a0195d5fSmrg	    s//\1/
1282a0195d5fSmrg	    q
1283a0195d5fSmrg	  }
1284a0195d5fSmrg	  /^X\(\/\/\)$/{
1285a0195d5fSmrg	    s//\1/
1286a0195d5fSmrg	    q
1287a0195d5fSmrg	  }
1288a0195d5fSmrg	  /^X\(\/\).*/{
1289a0195d5fSmrg	    s//\1/
1290a0195d5fSmrg	    q
1291a0195d5fSmrg	  }
1292a0195d5fSmrg	  s/.*/./; q'`
1293a0195d5fSmrg  srcdir=$ac_confdir
1294a0195d5fSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
1295a0195d5fSmrg    srcdir=..
1296a0195d5fSmrg  fi
1297a0195d5fSmrgelse
1298a0195d5fSmrg  ac_srcdir_defaulted=no
1299a0195d5fSmrgfi
1300a0195d5fSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1301a0195d5fSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
13022ab73d9fSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303a0195d5fSmrgfi
1304a0195d5fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305a0195d5fSmrgac_abs_confdir=`(
13062ab73d9fSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307a0195d5fSmrg	pwd)`
1308a0195d5fSmrg# When building in place, set srcdir=.
1309a0195d5fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1310a0195d5fSmrg  srcdir=.
1311a0195d5fSmrgfi
1312a0195d5fSmrg# Remove unnecessary trailing slashes from srcdir.
1313a0195d5fSmrg# Double slashes in file names in object file debugging info
1314a0195d5fSmrg# mess up M-x gdb in Emacs.
1315a0195d5fSmrgcase $srcdir in
1316a0195d5fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317a0195d5fSmrgesac
1318a0195d5fSmrgfor ac_var in $ac_precious_vars; do
1319a0195d5fSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320a0195d5fSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1321a0195d5fSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322a0195d5fSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323a0195d5fSmrgdone
1324a0195d5fSmrg
1325a0195d5fSmrg#
1326a0195d5fSmrg# Report the --help message.
1327a0195d5fSmrg#
1328a0195d5fSmrgif test "$ac_init_help" = "long"; then
1329a0195d5fSmrg  # Omit some internal or obsolete options to make the list less imposing.
1330a0195d5fSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1331a0195d5fSmrg  cat <<_ACEOF
1332feee4651Smrg\`configure' configures xset 1.2.4 to adapt to many kinds of systems.
1333a0195d5fSmrg
1334a0195d5fSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1335a0195d5fSmrg
1336a0195d5fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1337a0195d5fSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1338a0195d5fSmrg
1339a0195d5fSmrgDefaults for the options are specified in brackets.
1340a0195d5fSmrg
1341a0195d5fSmrgConfiguration:
1342a0195d5fSmrg  -h, --help              display this help and exit
1343a0195d5fSmrg      --help=short        display options specific to this package
1344a0195d5fSmrg      --help=recursive    display the short help of all the included packages
1345a0195d5fSmrg  -V, --version           display version information and exit
13462ab73d9fSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
1347a0195d5fSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1348a0195d5fSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1349a0195d5fSmrg  -n, --no-create         do not create output files
1350a0195d5fSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1351a0195d5fSmrg
1352a0195d5fSmrgInstallation directories:
1353a0195d5fSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13546600fe5bSmrg                          [$ac_default_prefix]
1355a0195d5fSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13566600fe5bSmrg                          [PREFIX]
1357a0195d5fSmrg
1358a0195d5fSmrgBy default, \`make install' will install all the files in
1359a0195d5fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1360a0195d5fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361a0195d5fSmrgfor instance \`--prefix=\$HOME'.
1362a0195d5fSmrg
1363a0195d5fSmrgFor better control, use the options below.
1364a0195d5fSmrg
1365a0195d5fSmrgFine tuning of the installation directories:
13666600fe5bSmrg  --bindir=DIR            user executables [EPREFIX/bin]
13676600fe5bSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13686600fe5bSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13696600fe5bSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13706600fe5bSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13716600fe5bSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13726600fe5bSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13736600fe5bSmrg  --includedir=DIR        C header files [PREFIX/include]
13746600fe5bSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13756600fe5bSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13766600fe5bSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13776600fe5bSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13786600fe5bSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13796600fe5bSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13806600fe5bSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xset]
13816600fe5bSmrg  --htmldir=DIR           html documentation [DOCDIR]
13826600fe5bSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
13836600fe5bSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13846600fe5bSmrg  --psdir=DIR             ps documentation [DOCDIR]
1385a0195d5fSmrg_ACEOF
1386a0195d5fSmrg
1387a0195d5fSmrg  cat <<\_ACEOF
1388a0195d5fSmrg
1389a0195d5fSmrgProgram names:
1390a0195d5fSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1391a0195d5fSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1392a0195d5fSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1393a0195d5fSmrg
1394a0195d5fSmrgSystem types:
1395a0195d5fSmrg  --build=BUILD     configure for building on BUILD [guessed]
1396a0195d5fSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1397a0195d5fSmrg_ACEOF
1398a0195d5fSmrgfi
1399a0195d5fSmrg
1400a0195d5fSmrgif test -n "$ac_init_help"; then
1401a0195d5fSmrg  case $ac_init_help in
1402feee4651Smrg     short | recursive ) echo "Configuration of xset 1.2.4:";;
1403a0195d5fSmrg   esac
1404a0195d5fSmrg  cat <<\_ACEOF
1405a0195d5fSmrg
1406a0195d5fSmrgOptional Features:
14076600fe5bSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
1408a0195d5fSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1409a0195d5fSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
141040a76396Smrg  --enable-dependency-tracking
141140a76396Smrg                          do not reject slow dependency extractors
141240a76396Smrg  --disable-dependency-tracking
141340a76396Smrg                          speeds up one-time build
141440a76396Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
141540a76396Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
141640a76396Smrg  --disable-selective-werror
141740a76396Smrg                          Turn off selective compiler errors. (default:
141840a76396Smrg                          enabled)
14196600fe5bSmrg  --enable-strict-compilation
14206600fe5bSmrg                          Enable all warnings from compiler and make them
14216600fe5bSmrg                          errors (default: disabled)
1422a0195d5fSmrg
1423a0195d5fSmrgOptional Packages:
1424a0195d5fSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425a0195d5fSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14266f5dd5c2Smrg  --without-xf86misc      Disable xf86misc support.
14276f5dd5c2Smrg  --without-fontcache     Disable fontcache support.
1428a0195d5fSmrg
1429a0195d5fSmrgSome influential environment variables:
1430a0195d5fSmrg  CC          C compiler command
1431a0195d5fSmrg  CFLAGS      C compiler flags
1432a0195d5fSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1433a0195d5fSmrg              nonstandard directory <lib dir>
1434a0195d5fSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14356f5dd5c2Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1436a0195d5fSmrg              you have headers in a nonstandard directory <include dir>
14376600fe5bSmrg  CPP         C preprocessor
1438a0195d5fSmrg  PKG_CONFIG  path to pkg-config utility
1439feee4651Smrg  PKG_CONFIG_PATH
1440feee4651Smrg              directories to add to pkg-config's search path
1441feee4651Smrg  PKG_CONFIG_LIBDIR
1442feee4651Smrg              path overriding pkg-config's built-in search path
1443a0195d5fSmrg  XSET_CFLAGS C compiler flags for XSET, overriding pkg-config
1444a0195d5fSmrg  XSET_LIBS   linker flags for XSET, overriding pkg-config
1445a0195d5fSmrg  SET_X11_CFLAGS
1446a0195d5fSmrg              C compiler flags for SET_X11, overriding pkg-config
1447a0195d5fSmrg  SET_X11_LIBS
1448a0195d5fSmrg              linker flags for SET_X11, overriding pkg-config
1449a0195d5fSmrg  SET_XEXT_CFLAGS
1450a0195d5fSmrg              C compiler flags for SET_XEXT, overriding pkg-config
1451a0195d5fSmrg  SET_XEXT_LIBS
1452a0195d5fSmrg              linker flags for SET_XEXT, overriding pkg-config
1453a0195d5fSmrg  SET_XKB_CFLAGS
1454a0195d5fSmrg              C compiler flags for SET_XKB, overriding pkg-config
1455a0195d5fSmrg  SET_XKB_LIBS
1456a0195d5fSmrg              linker flags for SET_XKB, overriding pkg-config
1457a0195d5fSmrg  SET_XF86MISC_CFLAGS
1458a0195d5fSmrg              C compiler flags for SET_XF86MISC, overriding pkg-config
1459a0195d5fSmrg  SET_XF86MISC_LIBS
1460a0195d5fSmrg              linker flags for SET_XF86MISC, overriding pkg-config
1461a0195d5fSmrg  SET_FONTCACHE_CFLAGS
1462a0195d5fSmrg              C compiler flags for SET_FONTCACHE, overriding pkg-config
1463a0195d5fSmrg  SET_FONTCACHE_LIBS
1464a0195d5fSmrg              linker flags for SET_FONTCACHE, overriding pkg-config
1465a0195d5fSmrg
1466a0195d5fSmrgUse these variables to override the choices made by `configure' or to help
1467a0195d5fSmrgit to find libraries and programs with nonstandard names/locations.
1468a0195d5fSmrg
1469a0195d5fSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1470a0195d5fSmrg_ACEOF
1471a0195d5fSmrgac_status=$?
1472a0195d5fSmrgfi
1473a0195d5fSmrg
1474a0195d5fSmrgif test "$ac_init_help" = "recursive"; then
1475a0195d5fSmrg  # If there are subdirs, report their specific --help.
1476a0195d5fSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14776600fe5bSmrg    test -d "$ac_dir" ||
14786600fe5bSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14796600fe5bSmrg      continue
1480a0195d5fSmrg    ac_builddir=.
1481a0195d5fSmrg
1482a0195d5fSmrgcase "$ac_dir" in
1483a0195d5fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484a0195d5fSmrg*)
14856600fe5bSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486a0195d5fSmrg  # A ".." for each directory in $ac_dir_suffix.
14876600fe5bSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488a0195d5fSmrg  case $ac_top_builddir_sub in
1489a0195d5fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490a0195d5fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491a0195d5fSmrg  esac ;;
1492a0195d5fSmrgesac
1493a0195d5fSmrgac_abs_top_builddir=$ac_pwd
1494a0195d5fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1495a0195d5fSmrg# for backward compatibility:
1496a0195d5fSmrgac_top_builddir=$ac_top_build_prefix
1497a0195d5fSmrg
1498a0195d5fSmrgcase $srcdir in
1499a0195d5fSmrg  .)  # We are building in place.
1500a0195d5fSmrg    ac_srcdir=.
1501a0195d5fSmrg    ac_top_srcdir=$ac_top_builddir_sub
1502a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1503a0195d5fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1504a0195d5fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
1505a0195d5fSmrg    ac_top_srcdir=$srcdir
1506a0195d5fSmrg    ac_abs_top_srcdir=$srcdir ;;
1507a0195d5fSmrg  *) # Relative name.
1508a0195d5fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509a0195d5fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1510a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511a0195d5fSmrgesac
1512a0195d5fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513a0195d5fSmrg
1514a0195d5fSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
1515a0195d5fSmrg    # Check for guested configure.
1516a0195d5fSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1517a0195d5fSmrg      echo &&
1518a0195d5fSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519a0195d5fSmrg    elif test -f "$ac_srcdir/configure"; then
1520a0195d5fSmrg      echo &&
1521a0195d5fSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
1522a0195d5fSmrg    else
15236600fe5bSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524a0195d5fSmrg    fi || ac_status=$?
1525a0195d5fSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
1526a0195d5fSmrg  done
1527a0195d5fSmrgfi
1528a0195d5fSmrg
1529a0195d5fSmrgtest -n "$ac_init_help" && exit $ac_status
1530a0195d5fSmrgif $ac_init_version; then
1531a0195d5fSmrg  cat <<\_ACEOF
1532feee4651Smrgxset configure 1.2.4
1533feee4651Smrggenerated by GNU Autoconf 2.69
1534a0195d5fSmrg
1535feee4651SmrgCopyright (C) 2012 Free Software Foundation, Inc.
1536a0195d5fSmrgThis configure script is free software; the Free Software Foundation
1537a0195d5fSmrggives unlimited permission to copy, distribute and modify it.
1538a0195d5fSmrg_ACEOF
1539a0195d5fSmrg  exit
1540a0195d5fSmrgfi
1541a0195d5fSmrg
15426f5dd5c2Smrg## ------------------------ ##
15436f5dd5c2Smrg## Autoconf initialization. ##
15446f5dd5c2Smrg## ------------------------ ##
1545a0195d5fSmrg
15466f5dd5c2Smrg# ac_fn_c_try_compile LINENO
15476f5dd5c2Smrg# --------------------------
15486f5dd5c2Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
15496f5dd5c2Smrgac_fn_c_try_compile ()
1550a0195d5fSmrg{
15516f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15526f5dd5c2Smrg  rm -f conftest.$ac_objext
15536f5dd5c2Smrg  if { { ac_try="$ac_compile"
15546f5dd5c2Smrgcase "(($ac_try" in
15556f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
15576f5dd5c2Smrgesac
15586f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15596f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
15606f5dd5c2Smrg  (eval "$ac_compile") 2>conftest.err
15616f5dd5c2Smrg  ac_status=$?
15626f5dd5c2Smrg  if test -s conftest.err; then
15636f5dd5c2Smrg    grep -v '^ *+' conftest.err >conftest.er1
15646f5dd5c2Smrg    cat conftest.er1 >&5
15656f5dd5c2Smrg    mv -f conftest.er1 conftest.err
15666f5dd5c2Smrg  fi
15676f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15686f5dd5c2Smrg  test $ac_status = 0; } && {
15696f5dd5c2Smrg	 test -z "$ac_c_werror_flag" ||
15706f5dd5c2Smrg	 test ! -s conftest.err
15716f5dd5c2Smrg       } && test -s conftest.$ac_objext; then :
15726f5dd5c2Smrg  ac_retval=0
15736f5dd5c2Smrgelse
15746f5dd5c2Smrg  $as_echo "$as_me: failed program was:" >&5
15756f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
1576a0195d5fSmrg
15776f5dd5c2Smrg	ac_retval=1
15786f5dd5c2Smrgfi
15792ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15806f5dd5c2Smrg  as_fn_set_status $ac_retval
1581a0195d5fSmrg
15826f5dd5c2Smrg} # ac_fn_c_try_compile
15836f5dd5c2Smrg
15846f5dd5c2Smrg# ac_fn_c_try_cpp LINENO
15856f5dd5c2Smrg# ----------------------
15866f5dd5c2Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
15876f5dd5c2Smrgac_fn_c_try_cpp ()
15886f5dd5c2Smrg{
15896f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15906f5dd5c2Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
15916f5dd5c2Smrgcase "(($ac_try" in
15926f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
15946f5dd5c2Smrgesac
15956f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15966f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
15976f5dd5c2Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
15986f5dd5c2Smrg  ac_status=$?
15996f5dd5c2Smrg  if test -s conftest.err; then
16006f5dd5c2Smrg    grep -v '^ *+' conftest.err >conftest.er1
16016f5dd5c2Smrg    cat conftest.er1 >&5
16026f5dd5c2Smrg    mv -f conftest.er1 conftest.err
16036f5dd5c2Smrg  fi
16046f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16052ab73d9fSmrg  test $ac_status = 0; } > conftest.i && {
16066f5dd5c2Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16076f5dd5c2Smrg	 test ! -s conftest.err
16086f5dd5c2Smrg       }; then :
16096f5dd5c2Smrg  ac_retval=0
16106f5dd5c2Smrgelse
16116f5dd5c2Smrg  $as_echo "$as_me: failed program was:" >&5
16126f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
16136f5dd5c2Smrg
16146f5dd5c2Smrg    ac_retval=1
16156f5dd5c2Smrgfi
16162ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16176f5dd5c2Smrg  as_fn_set_status $ac_retval
16186f5dd5c2Smrg
16196f5dd5c2Smrg} # ac_fn_c_try_cpp
16206f5dd5c2Smrg
162140a76396Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
162240a76396Smrg# -------------------------------------------------------
162340a76396Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using
162440a76396Smrg# the include files in INCLUDES and setting the cache variable VAR
162540a76396Smrg# accordingly.
162640a76396Smrgac_fn_c_check_header_mongrel ()
162740a76396Smrg{
162840a76396Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
162940a76396Smrg  if eval \${$3+:} false; then :
163040a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
163140a76396Smrg$as_echo_n "checking for $2... " >&6; }
163240a76396Smrgif eval \${$3+:} false; then :
163340a76396Smrg  $as_echo_n "(cached) " >&6
163440a76396Smrgfi
163540a76396Smrgeval ac_res=\$$3
163640a76396Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
163740a76396Smrg$as_echo "$ac_res" >&6; }
163840a76396Smrgelse
163940a76396Smrg  # Is the header compilable?
164040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
164140a76396Smrg$as_echo_n "checking $2 usability... " >&6; }
164240a76396Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
164340a76396Smrg/* end confdefs.h.  */
164440a76396Smrg$4
164540a76396Smrg#include <$2>
164640a76396Smrg_ACEOF
164740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
164840a76396Smrg  ac_header_compiler=yes
164940a76396Smrgelse
165040a76396Smrg  ac_header_compiler=no
165140a76396Smrgfi
165240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
165340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
165440a76396Smrg$as_echo "$ac_header_compiler" >&6; }
165540a76396Smrg
165640a76396Smrg# Is the header present?
165740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
165840a76396Smrg$as_echo_n "checking $2 presence... " >&6; }
165940a76396Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
166040a76396Smrg/* end confdefs.h.  */
166140a76396Smrg#include <$2>
166240a76396Smrg_ACEOF
166340a76396Smrgif ac_fn_c_try_cpp "$LINENO"; then :
166440a76396Smrg  ac_header_preproc=yes
166540a76396Smrgelse
166640a76396Smrg  ac_header_preproc=no
166740a76396Smrgfi
166840a76396Smrgrm -f conftest.err conftest.i conftest.$ac_ext
166940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
167040a76396Smrg$as_echo "$ac_header_preproc" >&6; }
167140a76396Smrg
167240a76396Smrg# So?  What about this header?
167340a76396Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
167440a76396Smrg  yes:no: )
167540a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
167640a76396Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
167740a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
167840a76396Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
167940a76396Smrg    ;;
168040a76396Smrg  no:yes:* )
168140a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
168240a76396Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
168340a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
168440a76396Smrg$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
168540a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
168640a76396Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
168740a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
168840a76396Smrg$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
168940a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
169040a76396Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
169140a76396Smrg( $as_echo "## ---------------------------------------------------------------------- ##
169240a76396Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
169340a76396Smrg## ---------------------------------------------------------------------- ##"
169440a76396Smrg     ) | sed "s/^/$as_me: WARNING:     /" >&2
169540a76396Smrg    ;;
169640a76396Smrgesac
169740a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
169840a76396Smrg$as_echo_n "checking for $2... " >&6; }
169940a76396Smrgif eval \${$3+:} false; then :
170040a76396Smrg  $as_echo_n "(cached) " >&6
170140a76396Smrgelse
170240a76396Smrg  eval "$3=\$ac_header_compiler"
170340a76396Smrgfi
170440a76396Smrgeval ac_res=\$$3
170540a76396Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
170640a76396Smrg$as_echo "$ac_res" >&6; }
170740a76396Smrgfi
170840a76396Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
170940a76396Smrg
171040a76396Smrg} # ac_fn_c_check_header_mongrel
171140a76396Smrg
17126f5dd5c2Smrg# ac_fn_c_try_run LINENO
17136f5dd5c2Smrg# ----------------------
17146f5dd5c2Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
17156f5dd5c2Smrg# that executables *can* be run.
17166f5dd5c2Smrgac_fn_c_try_run ()
17176f5dd5c2Smrg{
17186f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17196f5dd5c2Smrg  if { { ac_try="$ac_link"
17206f5dd5c2Smrgcase "(($ac_try" in
17216f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
17236f5dd5c2Smrgesac
17246f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17256f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
17266f5dd5c2Smrg  (eval "$ac_link") 2>&5
17276f5dd5c2Smrg  ac_status=$?
17286f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17296f5dd5c2Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
17306f5dd5c2Smrg  { { case "(($ac_try" in
17316f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
17336f5dd5c2Smrgesac
17346f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17356f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
17366f5dd5c2Smrg  (eval "$ac_try") 2>&5
17376f5dd5c2Smrg  ac_status=$?
17386f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17396f5dd5c2Smrg  test $ac_status = 0; }; }; then :
17406f5dd5c2Smrg  ac_retval=0
17416f5dd5c2Smrgelse
17426f5dd5c2Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
17436f5dd5c2Smrg       $as_echo "$as_me: failed program was:" >&5
17446f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
17456f5dd5c2Smrg
17466f5dd5c2Smrg       ac_retval=$ac_status
17476f5dd5c2Smrgfi
17486f5dd5c2Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17492ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17506f5dd5c2Smrg  as_fn_set_status $ac_retval
17516f5dd5c2Smrg
17526f5dd5c2Smrg} # ac_fn_c_try_run
17536f5dd5c2Smrg
17546f5dd5c2Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
17556f5dd5c2Smrg# -------------------------------------------------------
17566f5dd5c2Smrg# Tests whether HEADER exists and can be compiled using the include files in
17576f5dd5c2Smrg# INCLUDES, setting the cache variable VAR accordingly.
17586f5dd5c2Smrgac_fn_c_check_header_compile ()
17596f5dd5c2Smrg{
17606f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17616f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17626f5dd5c2Smrg$as_echo_n "checking for $2... " >&6; }
17632ab73d9fSmrgif eval \${$3+:} false; then :
17646f5dd5c2Smrg  $as_echo_n "(cached) " >&6
17656f5dd5c2Smrgelse
17666f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17676f5dd5c2Smrg/* end confdefs.h.  */
17686f5dd5c2Smrg$4
17696f5dd5c2Smrg#include <$2>
17706f5dd5c2Smrg_ACEOF
17716f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
17726f5dd5c2Smrg  eval "$3=yes"
17736f5dd5c2Smrgelse
17746f5dd5c2Smrg  eval "$3=no"
17756f5dd5c2Smrgfi
17766f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17776f5dd5c2Smrgfi
17786f5dd5c2Smrgeval ac_res=\$$3
17796f5dd5c2Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17806f5dd5c2Smrg$as_echo "$ac_res" >&6; }
17812ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17826f5dd5c2Smrg
17836f5dd5c2Smrg} # ac_fn_c_check_header_compile
17846f5dd5c2Smrg
178540a76396Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
178640a76396Smrg# ---------------------------------------------
178740a76396Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
178840a76396Smrg# accordingly.
178940a76396Smrgac_fn_c_check_decl ()
179040a76396Smrg{
179140a76396Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
179240a76396Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
179340a76396Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
179440a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
179540a76396Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
179640a76396Smrgif eval \${$3+:} false; then :
179740a76396Smrg  $as_echo_n "(cached) " >&6
179840a76396Smrgelse
179940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
180040a76396Smrg/* end confdefs.h.  */
180140a76396Smrg$4
180240a76396Smrgint
180340a76396Smrgmain ()
180440a76396Smrg{
180540a76396Smrg#ifndef $as_decl_name
180640a76396Smrg#ifdef __cplusplus
180740a76396Smrg  (void) $as_decl_use;
180840a76396Smrg#else
180940a76396Smrg  (void) $as_decl_name;
181040a76396Smrg#endif
181140a76396Smrg#endif
181240a76396Smrg
181340a76396Smrg  ;
181440a76396Smrg  return 0;
181540a76396Smrg}
181640a76396Smrg_ACEOF
181740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
181840a76396Smrg  eval "$3=yes"
181940a76396Smrgelse
182040a76396Smrg  eval "$3=no"
182140a76396Smrgfi
182240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
182340a76396Smrgfi
182440a76396Smrgeval ac_res=\$$3
182540a76396Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
182640a76396Smrg$as_echo "$ac_res" >&6; }
182740a76396Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
182840a76396Smrg
182940a76396Smrg} # ac_fn_c_check_decl
183040a76396Smrg
18316f5dd5c2Smrg# ac_fn_c_try_link LINENO
18326f5dd5c2Smrg# -----------------------
18336f5dd5c2Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
18346f5dd5c2Smrgac_fn_c_try_link ()
18356f5dd5c2Smrg{
18366f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18376f5dd5c2Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
18386f5dd5c2Smrg  if { { ac_try="$ac_link"
18396f5dd5c2Smrgcase "(($ac_try" in
18406f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
18426f5dd5c2Smrgesac
18436f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18446f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
18456f5dd5c2Smrg  (eval "$ac_link") 2>conftest.err
18466f5dd5c2Smrg  ac_status=$?
18476f5dd5c2Smrg  if test -s conftest.err; then
18486f5dd5c2Smrg    grep -v '^ *+' conftest.err >conftest.er1
18496f5dd5c2Smrg    cat conftest.er1 >&5
18506f5dd5c2Smrg    mv -f conftest.er1 conftest.err
18516f5dd5c2Smrg  fi
18526f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18536f5dd5c2Smrg  test $ac_status = 0; } && {
18546f5dd5c2Smrg	 test -z "$ac_c_werror_flag" ||
18556f5dd5c2Smrg	 test ! -s conftest.err
18566f5dd5c2Smrg       } && test -s conftest$ac_exeext && {
18576f5dd5c2Smrg	 test "$cross_compiling" = yes ||
1858feee4651Smrg	 test -x conftest$ac_exeext
18596f5dd5c2Smrg       }; then :
18606f5dd5c2Smrg  ac_retval=0
18616f5dd5c2Smrgelse
18626f5dd5c2Smrg  $as_echo "$as_me: failed program was:" >&5
18636f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
18646f5dd5c2Smrg
18656f5dd5c2Smrg	ac_retval=1
18666f5dd5c2Smrgfi
18676f5dd5c2Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
18686f5dd5c2Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
18696f5dd5c2Smrg  # interfere with the next link command; also delete a directory that is
18706f5dd5c2Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
18716f5dd5c2Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
18722ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18736f5dd5c2Smrg  as_fn_set_status $ac_retval
18746f5dd5c2Smrg
18756f5dd5c2Smrg} # ac_fn_c_try_link
18766f5dd5c2Smrg
18776f5dd5c2Smrg# ac_fn_c_check_func LINENO FUNC VAR
18786f5dd5c2Smrg# ----------------------------------
18796f5dd5c2Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
18806f5dd5c2Smrgac_fn_c_check_func ()
18816f5dd5c2Smrg{
18826f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18836f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18846f5dd5c2Smrg$as_echo_n "checking for $2... " >&6; }
18852ab73d9fSmrgif eval \${$3+:} false; then :
18866f5dd5c2Smrg  $as_echo_n "(cached) " >&6
18876f5dd5c2Smrgelse
18886f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18896f5dd5c2Smrg/* end confdefs.h.  */
18906f5dd5c2Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
18916f5dd5c2Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18926f5dd5c2Smrg#define $2 innocuous_$2
18936f5dd5c2Smrg
18946f5dd5c2Smrg/* System header to define __stub macros and hopefully few prototypes,
18956f5dd5c2Smrg    which can conflict with char $2 (); below.
18966f5dd5c2Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18976f5dd5c2Smrg    <limits.h> exists even on freestanding compilers.  */
18986f5dd5c2Smrg
18996f5dd5c2Smrg#ifdef __STDC__
19006f5dd5c2Smrg# include <limits.h>
19016f5dd5c2Smrg#else
19026f5dd5c2Smrg# include <assert.h>
19036f5dd5c2Smrg#endif
19046f5dd5c2Smrg
19056f5dd5c2Smrg#undef $2
19066f5dd5c2Smrg
19076f5dd5c2Smrg/* Override any GCC internal prototype to avoid an error.
19086f5dd5c2Smrg   Use char because int might match the return type of a GCC
19096f5dd5c2Smrg   builtin and then its argument prototype would still apply.  */
19106f5dd5c2Smrg#ifdef __cplusplus
19116f5dd5c2Smrgextern "C"
19126f5dd5c2Smrg#endif
19136f5dd5c2Smrgchar $2 ();
19146f5dd5c2Smrg/* The GNU C library defines this for functions which it implements
19156f5dd5c2Smrg    to always fail with ENOSYS.  Some functions are actually named
19166f5dd5c2Smrg    something starting with __ and the normal name is an alias.  */
19176f5dd5c2Smrg#if defined __stub_$2 || defined __stub___$2
19186f5dd5c2Smrgchoke me
19196f5dd5c2Smrg#endif
19206f5dd5c2Smrg
19216f5dd5c2Smrgint
19226f5dd5c2Smrgmain ()
19236f5dd5c2Smrg{
19246f5dd5c2Smrgreturn $2 ();
19256f5dd5c2Smrg  ;
19266f5dd5c2Smrg  return 0;
19276f5dd5c2Smrg}
19286f5dd5c2Smrg_ACEOF
19296f5dd5c2Smrgif ac_fn_c_try_link "$LINENO"; then :
19306f5dd5c2Smrg  eval "$3=yes"
19316f5dd5c2Smrgelse
19326f5dd5c2Smrg  eval "$3=no"
19336f5dd5c2Smrgfi
19346f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext \
19356f5dd5c2Smrg    conftest$ac_exeext conftest.$ac_ext
19366f5dd5c2Smrgfi
19376f5dd5c2Smrgeval ac_res=\$$3
19386f5dd5c2Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19396f5dd5c2Smrg$as_echo "$ac_res" >&6; }
19402ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19416f5dd5c2Smrg
19426f5dd5c2Smrg} # ac_fn_c_check_func
19436f5dd5c2Smrgcat >config.log <<_ACEOF
19446f5dd5c2SmrgThis file contains any messages produced by compilers while
19456f5dd5c2Smrgrunning configure, to aid debugging if configure makes a mistake.
19466f5dd5c2Smrg
1947feee4651SmrgIt was created by xset $as_me 1.2.4, which was
1948feee4651Smrggenerated by GNU Autoconf 2.69.  Invocation command line was
19496f5dd5c2Smrg
19506f5dd5c2Smrg  $ $0 $@
19516f5dd5c2Smrg
19526f5dd5c2Smrg_ACEOF
19536f5dd5c2Smrgexec 5>>config.log
19546f5dd5c2Smrg{
19556f5dd5c2Smrgcat <<_ASUNAME
19566f5dd5c2Smrg## --------- ##
19576f5dd5c2Smrg## Platform. ##
19586f5dd5c2Smrg## --------- ##
19596f5dd5c2Smrg
19606f5dd5c2Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
19616f5dd5c2Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
19626f5dd5c2Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
19636f5dd5c2Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
19646f5dd5c2Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
19656f5dd5c2Smrg
19666f5dd5c2Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
19676f5dd5c2Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
19686f5dd5c2Smrg
19696f5dd5c2Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
19706f5dd5c2Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
19716f5dd5c2Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
19726f5dd5c2Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
19736f5dd5c2Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
19746f5dd5c2Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
19756f5dd5c2Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
19766f5dd5c2Smrg
19776f5dd5c2Smrg_ASUNAME
1978a0195d5fSmrg
1979a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980a0195d5fSmrgfor as_dir in $PATH
1981a0195d5fSmrgdo
1982a0195d5fSmrg  IFS=$as_save_IFS
1983a0195d5fSmrg  test -z "$as_dir" && as_dir=.
19846f5dd5c2Smrg    $as_echo "PATH: $as_dir"
19856f5dd5c2Smrg  done
1986a0195d5fSmrgIFS=$as_save_IFS
1987a0195d5fSmrg
1988a0195d5fSmrg} >&5
1989a0195d5fSmrg
1990a0195d5fSmrgcat >&5 <<_ACEOF
1991a0195d5fSmrg
1992a0195d5fSmrg
1993a0195d5fSmrg## ----------- ##
1994a0195d5fSmrg## Core tests. ##
1995a0195d5fSmrg## ----------- ##
1996a0195d5fSmrg
1997a0195d5fSmrg_ACEOF
1998a0195d5fSmrg
1999a0195d5fSmrg
2000a0195d5fSmrg# Keep a trace of the command line.
2001a0195d5fSmrg# Strip out --no-create and --no-recursion so they do not pile up.
2002a0195d5fSmrg# Strip out --silent because we don't want to record it for future runs.
2003a0195d5fSmrg# Also quote any args containing shell meta-characters.
2004a0195d5fSmrg# Make two passes to allow for proper duplicate-argument suppression.
2005a0195d5fSmrgac_configure_args=
2006a0195d5fSmrgac_configure_args0=
2007a0195d5fSmrgac_configure_args1=
2008a0195d5fSmrgac_must_keep_next=false
2009a0195d5fSmrgfor ac_pass in 1 2
2010a0195d5fSmrgdo
2011a0195d5fSmrg  for ac_arg
2012a0195d5fSmrg  do
2013a0195d5fSmrg    case $ac_arg in
2014a0195d5fSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2015a0195d5fSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2016a0195d5fSmrg    | -silent | --silent | --silen | --sile | --sil)
2017a0195d5fSmrg      continue ;;
2018a0195d5fSmrg    *\'*)
20196600fe5bSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2020a0195d5fSmrg    esac
2021a0195d5fSmrg    case $ac_pass in
20226f5dd5c2Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2023a0195d5fSmrg    2)
20246f5dd5c2Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
2025a0195d5fSmrg      if test $ac_must_keep_next = true; then
2026a0195d5fSmrg	ac_must_keep_next=false # Got value, back to normal.
2027a0195d5fSmrg      else
2028a0195d5fSmrg	case $ac_arg in
2029a0195d5fSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
2030a0195d5fSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2031a0195d5fSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2032a0195d5fSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
2033a0195d5fSmrg	    case "$ac_configure_args0 " in
2034a0195d5fSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2035a0195d5fSmrg	    esac
2036a0195d5fSmrg	    ;;
2037a0195d5fSmrg	  -* ) ac_must_keep_next=true ;;
2038a0195d5fSmrg	esac
2039a0195d5fSmrg      fi
20406f5dd5c2Smrg      as_fn_append ac_configure_args " '$ac_arg'"
2041a0195d5fSmrg      ;;
2042a0195d5fSmrg    esac
2043a0195d5fSmrg  done
2044a0195d5fSmrgdone
20456f5dd5c2Smrg{ ac_configure_args0=; unset ac_configure_args0;}
20466f5dd5c2Smrg{ ac_configure_args1=; unset ac_configure_args1;}
2047a0195d5fSmrg
2048a0195d5fSmrg# When interrupted or exit'd, cleanup temporary files, and complete
2049a0195d5fSmrg# config.log.  We remove comments because anyway the quotes in there
2050a0195d5fSmrg# would cause problems or look ugly.
2051a0195d5fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
2052a0195d5fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2053a0195d5fSmrgtrap 'exit_status=$?
2054a0195d5fSmrg  # Save into config.log some information that might help in debugging.
2055a0195d5fSmrg  {
2056a0195d5fSmrg    echo
2057a0195d5fSmrg
20582ab73d9fSmrg    $as_echo "## ---------------- ##
2059a0195d5fSmrg## Cache variables. ##
20602ab73d9fSmrg## ---------------- ##"
2061a0195d5fSmrg    echo
2062a0195d5fSmrg    # The following way of writing the cache mishandles newlines in values,
2063a0195d5fSmrg(
2064a0195d5fSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2065a0195d5fSmrg    eval ac_val=\$$ac_var
2066a0195d5fSmrg    case $ac_val in #(
2067a0195d5fSmrg    *${as_nl}*)
2068a0195d5fSmrg      case $ac_var in #(
20696f5dd5c2Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20706600fe5bSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2071a0195d5fSmrg      esac
2072a0195d5fSmrg      case $ac_var in #(
2073a0195d5fSmrg      _ | IFS | as_nl) ;; #(
20746600fe5bSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20756f5dd5c2Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
2076a0195d5fSmrg      esac ;;
2077a0195d5fSmrg    esac
2078a0195d5fSmrg  done
2079a0195d5fSmrg  (set) 2>&1 |
2080a0195d5fSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2081a0195d5fSmrg    *${as_nl}ac_space=\ *)
2082a0195d5fSmrg      sed -n \
2083a0195d5fSmrg	"s/'\''/'\''\\\\'\'''\''/g;
2084a0195d5fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2085a0195d5fSmrg      ;; #(
2086a0195d5fSmrg    *)
2087a0195d5fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2088a0195d5fSmrg      ;;
2089a0195d5fSmrg    esac |
2090a0195d5fSmrg    sort
2091a0195d5fSmrg)
2092a0195d5fSmrg    echo
2093a0195d5fSmrg
20942ab73d9fSmrg    $as_echo "## ----------------- ##
2095a0195d5fSmrg## Output variables. ##
20962ab73d9fSmrg## ----------------- ##"
2097a0195d5fSmrg    echo
2098a0195d5fSmrg    for ac_var in $ac_subst_vars
2099a0195d5fSmrg    do
2100a0195d5fSmrg      eval ac_val=\$$ac_var
2101a0195d5fSmrg      case $ac_val in
21026600fe5bSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103a0195d5fSmrg      esac
21046600fe5bSmrg      $as_echo "$ac_var='\''$ac_val'\''"
2105a0195d5fSmrg    done | sort
2106a0195d5fSmrg    echo
2107a0195d5fSmrg
2108a0195d5fSmrg    if test -n "$ac_subst_files"; then
21092ab73d9fSmrg      $as_echo "## ------------------- ##
2110a0195d5fSmrg## File substitutions. ##
21112ab73d9fSmrg## ------------------- ##"
2112a0195d5fSmrg      echo
2113a0195d5fSmrg      for ac_var in $ac_subst_files
2114a0195d5fSmrg      do
2115a0195d5fSmrg	eval ac_val=\$$ac_var
2116a0195d5fSmrg	case $ac_val in
21176600fe5bSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118a0195d5fSmrg	esac
21196600fe5bSmrg	$as_echo "$ac_var='\''$ac_val'\''"
2120a0195d5fSmrg      done | sort
2121a0195d5fSmrg      echo
2122a0195d5fSmrg    fi
2123a0195d5fSmrg
2124a0195d5fSmrg    if test -s confdefs.h; then
21252ab73d9fSmrg      $as_echo "## ----------- ##
2126a0195d5fSmrg## confdefs.h. ##
21272ab73d9fSmrg## ----------- ##"
2128a0195d5fSmrg      echo
2129a0195d5fSmrg      cat confdefs.h
2130a0195d5fSmrg      echo
2131a0195d5fSmrg    fi
2132a0195d5fSmrg    test "$ac_signal" != 0 &&
21336600fe5bSmrg      $as_echo "$as_me: caught signal $ac_signal"
21346600fe5bSmrg    $as_echo "$as_me: exit $exit_status"
2135a0195d5fSmrg  } >&5
2136a0195d5fSmrg  rm -f core *.core core.conftest.* &&
2137a0195d5fSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2138a0195d5fSmrg    exit $exit_status
2139a0195d5fSmrg' 0
2140a0195d5fSmrgfor ac_signal in 1 2 13 15; do
21416f5dd5c2Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2142a0195d5fSmrgdone
2143a0195d5fSmrgac_signal=0
2144a0195d5fSmrg
2145a0195d5fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2146a0195d5fSmrgrm -f -r conftest* confdefs.h
2147a0195d5fSmrg
21486f5dd5c2Smrg$as_echo "/* confdefs.h */" > confdefs.h
21496f5dd5c2Smrg
2150a0195d5fSmrg# Predefined preprocessor variables.
2151a0195d5fSmrg
2152a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2153a0195d5fSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
2154a0195d5fSmrg_ACEOF
2155a0195d5fSmrg
2156a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2157a0195d5fSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2158a0195d5fSmrg_ACEOF
2159a0195d5fSmrg
2160a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2161a0195d5fSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
2162a0195d5fSmrg_ACEOF
2163a0195d5fSmrg
2164a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2165a0195d5fSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
2166a0195d5fSmrg_ACEOF
2167a0195d5fSmrg
2168a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2169a0195d5fSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2170a0195d5fSmrg_ACEOF
2171a0195d5fSmrg
21726f5dd5c2Smrgcat >>confdefs.h <<_ACEOF
21736f5dd5c2Smrg#define PACKAGE_URL "$PACKAGE_URL"
21746f5dd5c2Smrg_ACEOF
21756f5dd5c2Smrg
2176a0195d5fSmrg
2177a0195d5fSmrg# Let the site file select an alternate cache file if it wants to.
21786600fe5bSmrg# Prefer an explicitly selected file to automatically selected ones.
21796600fe5bSmrgac_site_file1=NONE
21806600fe5bSmrgac_site_file2=NONE
2181a0195d5fSmrgif test -n "$CONFIG_SITE"; then
21822ab73d9fSmrg  # We do not want a PATH search for config.site.
21832ab73d9fSmrg  case $CONFIG_SITE in #((
21842ab73d9fSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
21852ab73d9fSmrg    */*) ac_site_file1=$CONFIG_SITE;;
21862ab73d9fSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
21872ab73d9fSmrg  esac
2188a0195d5fSmrgelif test "x$prefix" != xNONE; then
21896600fe5bSmrg  ac_site_file1=$prefix/share/config.site
21906600fe5bSmrg  ac_site_file2=$prefix/etc/config.site
2191a0195d5fSmrgelse
21926600fe5bSmrg  ac_site_file1=$ac_default_prefix/share/config.site
21936600fe5bSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
2194a0195d5fSmrgfi
21956600fe5bSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2196a0195d5fSmrgdo
21976600fe5bSmrg  test "x$ac_site_file" = xNONE && continue
21986f5dd5c2Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
21996f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
22006600fe5bSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2201a0195d5fSmrg    sed 's/^/| /' "$ac_site_file" >&5
22022ab73d9fSmrg    . "$ac_site_file" \
22032ab73d9fSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22042ab73d9fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22052ab73d9fSmrgas_fn_error $? "failed to load site script $ac_site_file
22062ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
2207a0195d5fSmrg  fi
2208a0195d5fSmrgdone
2209a0195d5fSmrg
2210a0195d5fSmrgif test -r "$cache_file"; then
22116f5dd5c2Smrg  # Some versions of bash will fail to source /dev/null (special files
22126f5dd5c2Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
22136f5dd5c2Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
22146f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
22156600fe5bSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2216a0195d5fSmrg    case $cache_file in
2217a0195d5fSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2218a0195d5fSmrg      *)                      . "./$cache_file";;
2219a0195d5fSmrg    esac
2220a0195d5fSmrg  fi
2221a0195d5fSmrgelse
22226f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
22236600fe5bSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2224a0195d5fSmrg  >$cache_file
2225a0195d5fSmrgfi
2226a0195d5fSmrg
2227a0195d5fSmrg# Check that the precious variables saved in the cache have kept the same
2228a0195d5fSmrg# value.
2229a0195d5fSmrgac_cache_corrupted=false
2230a0195d5fSmrgfor ac_var in $ac_precious_vars; do
2231a0195d5fSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2232a0195d5fSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2233a0195d5fSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2234a0195d5fSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2235a0195d5fSmrg  case $ac_old_set,$ac_new_set in
2236a0195d5fSmrg    set,)
22376f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
22386600fe5bSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2239a0195d5fSmrg      ac_cache_corrupted=: ;;
2240a0195d5fSmrg    ,set)
22416f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
22426600fe5bSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2243a0195d5fSmrg      ac_cache_corrupted=: ;;
2244a0195d5fSmrg    ,);;
2245a0195d5fSmrg    *)
2246a0195d5fSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
22476600fe5bSmrg	# differences in whitespace do not lead to failure.
22486600fe5bSmrg	ac_old_val_w=`echo x $ac_old_val`
22496600fe5bSmrg	ac_new_val_w=`echo x $ac_new_val`
22506600fe5bSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
22516f5dd5c2Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
22526600fe5bSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
22536600fe5bSmrg	  ac_cache_corrupted=:
22546600fe5bSmrg	else
22556f5dd5c2Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
22566600fe5bSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
22576600fe5bSmrg	  eval $ac_var=\$ac_old_val
22586600fe5bSmrg	fi
22596f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
22606600fe5bSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
22616f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
22626600fe5bSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2263a0195d5fSmrg      fi;;
2264a0195d5fSmrg  esac
2265a0195d5fSmrg  # Pass precious variables to config.status.
2266a0195d5fSmrg  if test "$ac_new_set" = set; then
2267a0195d5fSmrg    case $ac_new_val in
22686600fe5bSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2269a0195d5fSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2270a0195d5fSmrg    esac
2271a0195d5fSmrg    case " $ac_configure_args " in
2272a0195d5fSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
22736f5dd5c2Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2274a0195d5fSmrg    esac
2275a0195d5fSmrg  fi
2276a0195d5fSmrgdone
2277a0195d5fSmrgif $ac_cache_corrupted; then
22786f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22796600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22806f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
22816600fe5bSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22822ab73d9fSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2283a0195d5fSmrgfi
22846f5dd5c2Smrg## -------------------- ##
22856f5dd5c2Smrg## Main body of script. ##
22866f5dd5c2Smrg## -------------------- ##
2287a0195d5fSmrg
2288a0195d5fSmrgac_ext=c
2289a0195d5fSmrgac_cpp='$CPP $CPPFLAGS'
2290a0195d5fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291a0195d5fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292a0195d5fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2293a0195d5fSmrg
2294a0195d5fSmrg
22952ab73d9fSmrg
22962ab73d9fSmrgac_config_headers="$ac_config_headers config.h"
22972ab73d9fSmrg
2298feee4651Smrgac_aux_dir=
2299feee4651Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2300feee4651Smrg  if test -f "$ac_dir/install-sh"; then
2301feee4651Smrg    ac_aux_dir=$ac_dir
2302feee4651Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2303feee4651Smrg    break
2304feee4651Smrg  elif test -f "$ac_dir/install.sh"; then
2305feee4651Smrg    ac_aux_dir=$ac_dir
2306feee4651Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2307feee4651Smrg    break
2308feee4651Smrg  elif test -f "$ac_dir/shtool"; then
2309feee4651Smrg    ac_aux_dir=$ac_dir
2310feee4651Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2311feee4651Smrg    break
2312feee4651Smrg  fi
2313feee4651Smrgdone
2314feee4651Smrgif test -z "$ac_aux_dir"; then
2315feee4651Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2316feee4651Smrgfi
2317feee4651Smrg
2318feee4651Smrg# These three variables are undocumented and unsupported,
2319feee4651Smrg# and are intended to be withdrawn in a future Autoconf release.
2320feee4651Smrg# They can cause serious problems if a builder's source tree is in a directory
2321feee4651Smrg# whose full name contains unusual characters.
2322feee4651Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2323feee4651Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2324feee4651Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2325feee4651Smrg
2326feee4651Smrg
2327feee4651Smrg# Expand $ac_aux_dir to an absolute path.
2328feee4651Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
23292ab73d9fSmrg
233040a76396Smrgac_ext=c
233140a76396Smrgac_cpp='$CPP $CPPFLAGS'
233240a76396Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
233340a76396Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
233440a76396Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
233540a76396Smrgif test -n "$ac_tool_prefix"; then
233640a76396Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
233740a76396Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
233840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
233940a76396Smrg$as_echo_n "checking for $ac_word... " >&6; }
234040a76396Smrgif ${ac_cv_prog_CC+:} false; then :
23416600fe5bSmrg  $as_echo_n "(cached) " >&6
2342a0195d5fSmrgelse
234340a76396Smrg  if test -n "$CC"; then
234440a76396Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
234540a76396Smrgelse
234640a76396Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23476600fe5bSmrgfor as_dir in $PATH
23486600fe5bSmrgdo
23496600fe5bSmrg  IFS=$as_save_IFS
23506600fe5bSmrg  test -z "$as_dir" && as_dir=.
23516f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2352feee4651Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235340a76396Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
23546f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23556600fe5bSmrg    break 2
23566600fe5bSmrg  fi
23576600fe5bSmrgdone
23586f5dd5c2Smrg  done
23596600fe5bSmrgIFS=$as_save_IFS
23606600fe5bSmrg
23616600fe5bSmrgfi
23626600fe5bSmrgfi
236340a76396SmrgCC=$ac_cv_prog_CC
236440a76396Smrgif test -n "$CC"; then
236540a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
236640a76396Smrg$as_echo "$CC" >&6; }
23676600fe5bSmrgelse
23686f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23696600fe5bSmrg$as_echo "no" >&6; }
23706600fe5bSmrgfi
23716600fe5bSmrg
23726600fe5bSmrg
23736600fe5bSmrgfi
237440a76396Smrgif test -z "$ac_cv_prog_CC"; then
237540a76396Smrg  ac_ct_CC=$CC
237640a76396Smrg  # Extract the first word of "gcc", so it can be a program name with args.
237740a76396Smrgset dummy gcc; ac_word=$2
23786f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23796600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
238040a76396Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
23816600fe5bSmrg  $as_echo_n "(cached) " >&6
23826600fe5bSmrgelse
238340a76396Smrg  if test -n "$ac_ct_CC"; then
238440a76396Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
23856600fe5bSmrgelse
23866600fe5bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23876600fe5bSmrgfor as_dir in $PATH
23886600fe5bSmrgdo
23896600fe5bSmrg  IFS=$as_save_IFS
23906600fe5bSmrg  test -z "$as_dir" && as_dir=.
23916f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2392feee4651Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
239340a76396Smrg    ac_cv_prog_ac_ct_CC="gcc"
23946f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23956600fe5bSmrg    break 2
23966600fe5bSmrg  fi
23976600fe5bSmrgdone
23986f5dd5c2Smrg  done
23996600fe5bSmrgIFS=$as_save_IFS
24006600fe5bSmrg
24016600fe5bSmrgfi
24026600fe5bSmrgfi
240340a76396Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
240440a76396Smrgif test -n "$ac_ct_CC"; then
240540a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
240640a76396Smrg$as_echo "$ac_ct_CC" >&6; }
24076600fe5bSmrgelse
24086f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24096600fe5bSmrg$as_echo "no" >&6; }
24106600fe5bSmrgfi
24116600fe5bSmrg
241240a76396Smrg  if test "x$ac_ct_CC" = x; then
241340a76396Smrg    CC=""
24146600fe5bSmrg  else
24156600fe5bSmrg    case $cross_compiling:$ac_tool_warned in
24166600fe5bSmrgyes:)
24176f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24186600fe5bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24196600fe5bSmrgac_tool_warned=yes ;;
24206600fe5bSmrgesac
242140a76396Smrg    CC=$ac_ct_CC
24226600fe5bSmrg  fi
24236600fe5bSmrgelse
242440a76396Smrg  CC="$ac_cv_prog_CC"
2425a0195d5fSmrgfi
2426a0195d5fSmrg
242740a76396Smrgif test -z "$CC"; then
242840a76396Smrg          if test -n "$ac_tool_prefix"; then
242940a76396Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
243040a76396Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
24316f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24326600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
243340a76396Smrgif ${ac_cv_prog_CC+:} false; then :
24346600fe5bSmrg  $as_echo_n "(cached) " >&6
2435a0195d5fSmrgelse
243640a76396Smrg  if test -n "$CC"; then
243740a76396Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2438a0195d5fSmrgelse
2439a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440a0195d5fSmrgfor as_dir in $PATH
2441a0195d5fSmrgdo
2442a0195d5fSmrg  IFS=$as_save_IFS
2443a0195d5fSmrg  test -z "$as_dir" && as_dir=.
24446f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2445feee4651Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
244640a76396Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
24476f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448a0195d5fSmrg    break 2
2449a0195d5fSmrg  fi
2450a0195d5fSmrgdone
24516f5dd5c2Smrg  done
2452a0195d5fSmrgIFS=$as_save_IFS
2453a0195d5fSmrg
2454a0195d5fSmrgfi
2455a0195d5fSmrgfi
245640a76396SmrgCC=$ac_cv_prog_CC
245740a76396Smrgif test -n "$CC"; then
245840a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
245940a76396Smrg$as_echo "$CC" >&6; }
2460a0195d5fSmrgelse
24616f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24626600fe5bSmrg$as_echo "no" >&6; }
2463a0195d5fSmrgfi
2464a0195d5fSmrg
2465a0195d5fSmrg
246640a76396Smrg  fi
2467a0195d5fSmrgfi
246840a76396Smrgif test -z "$CC"; then
246940a76396Smrg  # Extract the first word of "cc", so it can be a program name with args.
247040a76396Smrgset dummy cc; ac_word=$2
247140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
247240a76396Smrg$as_echo_n "checking for $ac_word... " >&6; }
247340a76396Smrgif ${ac_cv_prog_CC+:} false; then :
247440a76396Smrg  $as_echo_n "(cached) " >&6
2475a0195d5fSmrgelse
247640a76396Smrg  if test -n "$CC"; then
247740a76396Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2478a0195d5fSmrgelse
247940a76396Smrg  ac_prog_rejected=no
248040a76396Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
248140a76396Smrgfor as_dir in $PATH
248240a76396Smrgdo
248340a76396Smrg  IFS=$as_save_IFS
248440a76396Smrg  test -z "$as_dir" && as_dir=.
248540a76396Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2486feee4651Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
248740a76396Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
248840a76396Smrg       ac_prog_rejected=yes
248940a76396Smrg       continue
249040a76396Smrg     fi
249140a76396Smrg    ac_cv_prog_CC="cc"
249240a76396Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
249340a76396Smrg    break 2
2494a0195d5fSmrg  fi
249540a76396Smrgdone
249640a76396Smrg  done
249740a76396SmrgIFS=$as_save_IFS
2498a0195d5fSmrg
249940a76396Smrgif test $ac_prog_rejected = yes; then
250040a76396Smrg  # We found a bogon in the path, so make sure we never use it.
250140a76396Smrg  set dummy $ac_cv_prog_CC
250240a76396Smrg  shift
250340a76396Smrg  if test $# != 0; then
250440a76396Smrg    # We chose a different compiler from the bogus one.
250540a76396Smrg    # However, it has the same basename, so the bogon will be chosen
250640a76396Smrg    # first if we set CC to just the basename; use the full file name.
250740a76396Smrg    shift
250840a76396Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2509a0195d5fSmrg  fi
2510a0195d5fSmrgfi
25116f5dd5c2Smrgfi
25126f5dd5c2Smrgfi
251340a76396SmrgCC=$ac_cv_prog_CC
251440a76396Smrgif test -n "$CC"; then
251540a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
251640a76396Smrg$as_echo "$CC" >&6; }
25176f5dd5c2Smrgelse
251840a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
251940a76396Smrg$as_echo "no" >&6; }
25206f5dd5c2Smrgfi
25216f5dd5c2Smrg
25226f5dd5c2Smrg
252340a76396Smrgfi
252440a76396Smrgif test -z "$CC"; then
252540a76396Smrg  if test -n "$ac_tool_prefix"; then
252640a76396Smrg  for ac_prog in cl.exe
252740a76396Smrg  do
252840a76396Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
252940a76396Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
25306f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25316f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
25322ab73d9fSmrgif ${ac_cv_prog_CC+:} false; then :
25336f5dd5c2Smrg  $as_echo_n "(cached) " >&6
25346f5dd5c2Smrgelse
25356f5dd5c2Smrg  if test -n "$CC"; then
25366f5dd5c2Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
25376f5dd5c2Smrgelse
25386f5dd5c2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25396f5dd5c2Smrgfor as_dir in $PATH
25406f5dd5c2Smrgdo
25416f5dd5c2Smrg  IFS=$as_save_IFS
25426f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
25436f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2544feee4651Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
254540a76396Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
25466f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25476f5dd5c2Smrg    break 2
25486f5dd5c2Smrg  fi
25496f5dd5c2Smrgdone
25506f5dd5c2Smrg  done
25516f5dd5c2SmrgIFS=$as_save_IFS
25526f5dd5c2Smrg
25536f5dd5c2Smrgfi
25546f5dd5c2Smrgfi
25556f5dd5c2SmrgCC=$ac_cv_prog_CC
25566f5dd5c2Smrgif test -n "$CC"; then
25576f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
25586f5dd5c2Smrg$as_echo "$CC" >&6; }
25596f5dd5c2Smrgelse
25606f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25616f5dd5c2Smrg$as_echo "no" >&6; }
25626f5dd5c2Smrgfi
25636f5dd5c2Smrg
25646f5dd5c2Smrg
256540a76396Smrg    test -n "$CC" && break
256640a76396Smrg  done
25676f5dd5c2Smrgfi
256840a76396Smrgif test -z "$CC"; then
2569a0195d5fSmrg  ac_ct_CC=$CC
257040a76396Smrg  for ac_prog in cl.exe
257140a76396Smrgdo
257240a76396Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
257340a76396Smrgset dummy $ac_prog; ac_word=$2
25746f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25756600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
25762ab73d9fSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
25776600fe5bSmrg  $as_echo_n "(cached) " >&6
2578a0195d5fSmrgelse
2579a0195d5fSmrg  if test -n "$ac_ct_CC"; then
2580a0195d5fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2581a0195d5fSmrgelse
2582a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583a0195d5fSmrgfor as_dir in $PATH
2584a0195d5fSmrgdo
2585a0195d5fSmrg  IFS=$as_save_IFS
2586a0195d5fSmrg  test -z "$as_dir" && as_dir=.
25876f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2588feee4651Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
258940a76396Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
25906f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591a0195d5fSmrg    break 2
2592a0195d5fSmrg  fi
2593a0195d5fSmrgdone
25946f5dd5c2Smrg  done
2595a0195d5fSmrgIFS=$as_save_IFS
2596a0195d5fSmrg
2597a0195d5fSmrgfi
2598a0195d5fSmrgfi
2599a0195d5fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2600a0195d5fSmrgif test -n "$ac_ct_CC"; then
26016f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
26026600fe5bSmrg$as_echo "$ac_ct_CC" >&6; }
2603a0195d5fSmrgelse
26046f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26056600fe5bSmrg$as_echo "no" >&6; }
2606a0195d5fSmrgfi
2607a0195d5fSmrg
2608a0195d5fSmrg
2609a0195d5fSmrg  test -n "$ac_ct_CC" && break
2610a0195d5fSmrgdone
2611a0195d5fSmrg
2612a0195d5fSmrg  if test "x$ac_ct_CC" = x; then
2613a0195d5fSmrg    CC=""
2614a0195d5fSmrg  else
2615a0195d5fSmrg    case $cross_compiling:$ac_tool_warned in
2616a0195d5fSmrgyes:)
26176f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26186600fe5bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2619a0195d5fSmrgac_tool_warned=yes ;;
2620a0195d5fSmrgesac
2621a0195d5fSmrg    CC=$ac_ct_CC
2622a0195d5fSmrg  fi
2623a0195d5fSmrgfi
2624a0195d5fSmrg
2625a0195d5fSmrgfi
2626a0195d5fSmrg
2627a0195d5fSmrg
26286f5dd5c2Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26296600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26302ab73d9fSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
26312ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
2632a0195d5fSmrg
2633a0195d5fSmrg# Provide some information about the compiler.
26346f5dd5c2Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
26356600fe5bSmrgset X $ac_compile
26366600fe5bSmrgac_compiler=$2
26376f5dd5c2Smrgfor ac_option in --version -v -V -qversion; do
26386f5dd5c2Smrg  { { ac_try="$ac_compiler $ac_option >&5"
2639a0195d5fSmrgcase "(($ac_try" in
2640a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641a0195d5fSmrg  *) ac_try_echo=$ac_try;;
2642a0195d5fSmrgesac
26436f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26446f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
26456f5dd5c2Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2646a0195d5fSmrg  ac_status=$?
26476f5dd5c2Smrg  if test -s conftest.err; then
26486f5dd5c2Smrg    sed '10a\
26496f5dd5c2Smrg... rest of stderr output deleted ...
26506f5dd5c2Smrg         10q' conftest.err >conftest.er1
26516f5dd5c2Smrg    cat conftest.er1 >&5
26526f5dd5c2Smrg  fi
26536f5dd5c2Smrg  rm -f conftest.er1 conftest.err
26546f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26556f5dd5c2Smrg  test $ac_status = 0; }
26566f5dd5c2Smrgdone
2657a0195d5fSmrg
26586f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2659a0195d5fSmrg/* end confdefs.h.  */
2660a0195d5fSmrg
2661a0195d5fSmrgint
2662a0195d5fSmrgmain ()
2663a0195d5fSmrg{
2664a0195d5fSmrg
2665a0195d5fSmrg  ;
2666a0195d5fSmrg  return 0;
2667a0195d5fSmrg}
2668a0195d5fSmrg_ACEOF
2669a0195d5fSmrgac_clean_files_save=$ac_clean_files
26706600fe5bSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2671a0195d5fSmrg# Try to create an executable without -o first, disregard a.out.
2672a0195d5fSmrg# It will help us diagnose broken compilers, and finding out an intuition
2673a0195d5fSmrg# of exeext.
26746f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
26756f5dd5c2Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
26766600fe5bSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
26776600fe5bSmrg
26786600fe5bSmrg# The possible output files:
26796600fe5bSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
26806600fe5bSmrg
2681a0195d5fSmrgac_rmfiles=
2682a0195d5fSmrgfor ac_file in $ac_files
2683a0195d5fSmrgdo
2684a0195d5fSmrg  case $ac_file in
26856600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2686a0195d5fSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2687a0195d5fSmrg  esac
2688a0195d5fSmrgdone
2689a0195d5fSmrgrm -f $ac_rmfiles
2690a0195d5fSmrg
26916f5dd5c2Smrgif { { ac_try="$ac_link_default"
2692a0195d5fSmrgcase "(($ac_try" in
2693a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694a0195d5fSmrg  *) ac_try_echo=$ac_try;;
2695a0195d5fSmrgesac
26966f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26976f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
2698a0195d5fSmrg  (eval "$ac_link_default") 2>&5
2699a0195d5fSmrg  ac_status=$?
27006f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27016f5dd5c2Smrg  test $ac_status = 0; }; then :
2702a0195d5fSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2703a0195d5fSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2704a0195d5fSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2705a0195d5fSmrg# so that the user can short-circuit this test for compilers unknown to
2706a0195d5fSmrg# Autoconf.
2707a0195d5fSmrgfor ac_file in $ac_files ''
2708a0195d5fSmrgdo
2709a0195d5fSmrg  test -f "$ac_file" || continue
2710a0195d5fSmrg  case $ac_file in
27116600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2712a0195d5fSmrg	;;
2713a0195d5fSmrg    [ab].out )
2714a0195d5fSmrg	# We found the default executable, but exeext='' is most
2715a0195d5fSmrg	# certainly right.
2716a0195d5fSmrg	break;;
2717a0195d5fSmrg    *.* )
27186f5dd5c2Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2719a0195d5fSmrg	then :; else
2720a0195d5fSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2721a0195d5fSmrg	fi
2722a0195d5fSmrg	# We set ac_cv_exeext here because the later test for it is not
2723a0195d5fSmrg	# safe: cross compilers may not add the suffix if given an `-o'
2724a0195d5fSmrg	# argument, so we may need to know it at that point already.
2725a0195d5fSmrg	# Even if this section looks crufty: it has the advantage of
2726a0195d5fSmrg	# actually working.
2727a0195d5fSmrg	break;;
2728a0195d5fSmrg    * )
2729a0195d5fSmrg	break;;
2730a0195d5fSmrg  esac
2731a0195d5fSmrgdone
2732a0195d5fSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
2733a0195d5fSmrg
2734a0195d5fSmrgelse
2735a0195d5fSmrg  ac_file=''
2736a0195d5fSmrgfi
27376f5dd5c2Smrgif test -z "$ac_file"; then :
27386f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27396f5dd5c2Smrg$as_echo "no" >&6; }
27406f5dd5c2Smrg$as_echo "$as_me: failed program was:" >&5
2741a0195d5fSmrgsed 's/^/| /' conftest.$ac_ext >&5
2742a0195d5fSmrg
27436f5dd5c2Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27446600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27452ab73d9fSmrgas_fn_error 77 "C compiler cannot create executables
27462ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
27476f5dd5c2Smrgelse
27486f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27496f5dd5c2Smrg$as_echo "yes" >&6; }
2750a0195d5fSmrgfi
27516f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
27526f5dd5c2Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
27536f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
27546f5dd5c2Smrg$as_echo "$ac_file" >&6; }
2755a0195d5fSmrgac_exeext=$ac_cv_exeext
2756a0195d5fSmrg
27576600fe5bSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2758a0195d5fSmrgac_clean_files=$ac_clean_files_save
27596f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
27606600fe5bSmrg$as_echo_n "checking for suffix of executables... " >&6; }
27616f5dd5c2Smrgif { { ac_try="$ac_link"
2762a0195d5fSmrgcase "(($ac_try" in
2763a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764a0195d5fSmrg  *) ac_try_echo=$ac_try;;
2765a0195d5fSmrgesac
27666f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27676f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
2768a0195d5fSmrg  (eval "$ac_link") 2>&5
2769a0195d5fSmrg  ac_status=$?
27706f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27716f5dd5c2Smrg  test $ac_status = 0; }; then :
2772a0195d5fSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2773a0195d5fSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2774a0195d5fSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
2775a0195d5fSmrg# `rm'.
2776a0195d5fSmrgfor ac_file in conftest.exe conftest conftest.*; do
2777a0195d5fSmrg  test -f "$ac_file" || continue
2778a0195d5fSmrg  case $ac_file in
27796600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2780a0195d5fSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2781a0195d5fSmrg	  break;;
2782a0195d5fSmrg    * ) break;;
2783a0195d5fSmrg  esac
2784a0195d5fSmrgdone
2785a0195d5fSmrgelse
27866f5dd5c2Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27876600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27882ab73d9fSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
27892ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
2790a0195d5fSmrgfi
27916f5dd5c2Smrgrm -f conftest conftest$ac_cv_exeext
27926f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
27936600fe5bSmrg$as_echo "$ac_cv_exeext" >&6; }
2794a0195d5fSmrg
2795a0195d5fSmrgrm -f conftest.$ac_ext
2796a0195d5fSmrgEXEEXT=$ac_cv_exeext
2797a0195d5fSmrgac_exeext=$EXEEXT
27986f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
27996f5dd5c2Smrg/* end confdefs.h.  */
28006f5dd5c2Smrg#include <stdio.h>
28016f5dd5c2Smrgint
28026f5dd5c2Smrgmain ()
28036f5dd5c2Smrg{
28046f5dd5c2SmrgFILE *f = fopen ("conftest.out", "w");
28056f5dd5c2Smrg return ferror (f) || fclose (f) != 0;
28066f5dd5c2Smrg
28076f5dd5c2Smrg  ;
28086f5dd5c2Smrg  return 0;
28096f5dd5c2Smrg}
28106f5dd5c2Smrg_ACEOF
28116f5dd5c2Smrgac_clean_files="$ac_clean_files conftest.out"
28126f5dd5c2Smrg# Check that the compiler produces executables we can run.  If not, either
28136f5dd5c2Smrg# the compiler is broken, or we cross compile.
28146f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
28156f5dd5c2Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
28166f5dd5c2Smrgif test "$cross_compiling" != yes; then
28176f5dd5c2Smrg  { { ac_try="$ac_link"
28186f5dd5c2Smrgcase "(($ac_try" in
28196f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28206f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
28216f5dd5c2Smrgesac
28226f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28236f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
28246f5dd5c2Smrg  (eval "$ac_link") 2>&5
28256f5dd5c2Smrg  ac_status=$?
28266f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28276f5dd5c2Smrg  test $ac_status = 0; }
28286f5dd5c2Smrg  if { ac_try='./conftest$ac_cv_exeext'
28296f5dd5c2Smrg  { { case "(($ac_try" in
28306f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28316f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
28326f5dd5c2Smrgesac
28336f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28346f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
28356f5dd5c2Smrg  (eval "$ac_try") 2>&5
28366f5dd5c2Smrg  ac_status=$?
28376f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28386f5dd5c2Smrg  test $ac_status = 0; }; }; then
28396f5dd5c2Smrg    cross_compiling=no
28406f5dd5c2Smrg  else
28416f5dd5c2Smrg    if test "$cross_compiling" = maybe; then
28426f5dd5c2Smrg	cross_compiling=yes
28436f5dd5c2Smrg    else
28446f5dd5c2Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28456f5dd5c2Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28462ab73d9fSmrgas_fn_error $? "cannot run C compiled programs.
28476f5dd5c2SmrgIf you meant to cross compile, use \`--host'.
28482ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
28496f5dd5c2Smrg    fi
28506f5dd5c2Smrg  fi
28516f5dd5c2Smrgfi
28526f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
28536f5dd5c2Smrg$as_echo "$cross_compiling" >&6; }
28546f5dd5c2Smrg
28556f5dd5c2Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
28566f5dd5c2Smrgac_clean_files=$ac_clean_files_save
28576f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
28586600fe5bSmrg$as_echo_n "checking for suffix of object files... " >&6; }
28592ab73d9fSmrgif ${ac_cv_objext+:} false; then :
28606600fe5bSmrg  $as_echo_n "(cached) " >&6
2861a0195d5fSmrgelse
28626f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863a0195d5fSmrg/* end confdefs.h.  */
2864a0195d5fSmrg
2865a0195d5fSmrgint
2866a0195d5fSmrgmain ()
2867a0195d5fSmrg{
2868a0195d5fSmrg
2869a0195d5fSmrg  ;
2870a0195d5fSmrg  return 0;
2871a0195d5fSmrg}
2872a0195d5fSmrg_ACEOF
2873a0195d5fSmrgrm -f conftest.o conftest.obj
28746f5dd5c2Smrgif { { ac_try="$ac_compile"
2875a0195d5fSmrgcase "(($ac_try" in
2876a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877a0195d5fSmrg  *) ac_try_echo=$ac_try;;
2878a0195d5fSmrgesac
28796f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28806f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
2881a0195d5fSmrg  (eval "$ac_compile") 2>&5
2882a0195d5fSmrg  ac_status=$?
28836f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28846f5dd5c2Smrg  test $ac_status = 0; }; then :
2885a0195d5fSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
2886a0195d5fSmrg  test -f "$ac_file" || continue;
2887a0195d5fSmrg  case $ac_file in
28886600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2889a0195d5fSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2890a0195d5fSmrg       break;;
2891a0195d5fSmrg  esac
2892a0195d5fSmrgdone
2893a0195d5fSmrgelse
28946600fe5bSmrg  $as_echo "$as_me: failed program was:" >&5
2895a0195d5fSmrgsed 's/^/| /' conftest.$ac_ext >&5
2896a0195d5fSmrg
28976f5dd5c2Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28986600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28992ab73d9fSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
29002ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
2901a0195d5fSmrgfi
2902a0195d5fSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
2903a0195d5fSmrgfi
29046f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
29056600fe5bSmrg$as_echo "$ac_cv_objext" >&6; }
2906a0195d5fSmrgOBJEXT=$ac_cv_objext
2907a0195d5fSmrgac_objext=$OBJEXT
29086f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
29096600fe5bSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
29102ab73d9fSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
29116600fe5bSmrg  $as_echo_n "(cached) " >&6
2912a0195d5fSmrgelse
29136f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914a0195d5fSmrg/* end confdefs.h.  */
2915a0195d5fSmrg
2916a0195d5fSmrgint
2917a0195d5fSmrgmain ()
2918a0195d5fSmrg{
2919a0195d5fSmrg#ifndef __GNUC__
2920a0195d5fSmrg       choke me
2921a0195d5fSmrg#endif
2922a0195d5fSmrg
2923a0195d5fSmrg  ;
2924a0195d5fSmrg  return 0;
2925a0195d5fSmrg}
2926a0195d5fSmrg_ACEOF
29276f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
2928a0195d5fSmrg  ac_compiler_gnu=yes
2929a0195d5fSmrgelse
29306f5dd5c2Smrg  ac_compiler_gnu=no
2931a0195d5fSmrgfi
2932a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933a0195d5fSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
2934a0195d5fSmrg
2935a0195d5fSmrgfi
29366f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
29376600fe5bSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
29386600fe5bSmrgif test $ac_compiler_gnu = yes; then
29396600fe5bSmrg  GCC=yes
29406600fe5bSmrgelse
29416600fe5bSmrg  GCC=
29426600fe5bSmrgfi
2943a0195d5fSmrgac_test_CFLAGS=${CFLAGS+set}
2944a0195d5fSmrgac_save_CFLAGS=$CFLAGS
29456f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
29466600fe5bSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
29472ab73d9fSmrgif ${ac_cv_prog_cc_g+:} false; then :
29486600fe5bSmrg  $as_echo_n "(cached) " >&6
2949a0195d5fSmrgelse
2950a0195d5fSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
2951a0195d5fSmrg   ac_c_werror_flag=yes
2952a0195d5fSmrg   ac_cv_prog_cc_g=no
2953a0195d5fSmrg   CFLAGS="-g"
29546f5dd5c2Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955a0195d5fSmrg/* end confdefs.h.  */
2956a0195d5fSmrg
2957a0195d5fSmrgint
2958a0195d5fSmrgmain ()
2959a0195d5fSmrg{
2960a0195d5fSmrg
2961a0195d5fSmrg  ;
2962a0195d5fSmrg  return 0;
2963a0195d5fSmrg}
2964a0195d5fSmrg_ACEOF
29656f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
2966a0195d5fSmrg  ac_cv_prog_cc_g=yes
2967a0195d5fSmrgelse
29686f5dd5c2Smrg  CFLAGS=""
29696f5dd5c2Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970a0195d5fSmrg/* end confdefs.h.  */
2971a0195d5fSmrg
2972a0195d5fSmrgint
2973a0195d5fSmrgmain ()
2974a0195d5fSmrg{
2975a0195d5fSmrg
2976a0195d5fSmrg  ;
2977a0195d5fSmrg  return 0;
2978a0195d5fSmrg}
2979a0195d5fSmrg_ACEOF
29806f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
2981a0195d5fSmrg
29826f5dd5c2Smrgelse
29836f5dd5c2Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
2984a0195d5fSmrg	 CFLAGS="-g"
29856f5dd5c2Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986a0195d5fSmrg/* end confdefs.h.  */
2987a0195d5fSmrg
2988a0195d5fSmrgint
2989a0195d5fSmrgmain ()
2990a0195d5fSmrg{
2991a0195d5fSmrg
2992a0195d5fSmrg  ;
2993a0195d5fSmrg  return 0;
2994a0195d5fSmrg}
2995a0195d5fSmrg_ACEOF
29966f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
2997a0195d5fSmrg  ac_cv_prog_cc_g=yes
2998a0195d5fSmrgfi
2999a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3000a0195d5fSmrgfi
3001a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002a0195d5fSmrgfi
3003a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3004a0195d5fSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
3005a0195d5fSmrgfi
30066f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
30076600fe5bSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3008a0195d5fSmrgif test "$ac_test_CFLAGS" = set; then
3009a0195d5fSmrg  CFLAGS=$ac_save_CFLAGS
3010a0195d5fSmrgelif test $ac_cv_prog_cc_g = yes; then
3011a0195d5fSmrg  if test "$GCC" = yes; then
3012a0195d5fSmrg    CFLAGS="-g -O2"
3013a0195d5fSmrg  else
3014a0195d5fSmrg    CFLAGS="-g"
3015a0195d5fSmrg  fi
3016a0195d5fSmrgelse
3017a0195d5fSmrg  if test "$GCC" = yes; then
3018a0195d5fSmrg    CFLAGS="-O2"
3019a0195d5fSmrg  else
3020a0195d5fSmrg    CFLAGS=
3021a0195d5fSmrg  fi
3022a0195d5fSmrgfi
30236f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
30246600fe5bSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
30252ab73d9fSmrgif ${ac_cv_prog_cc_c89+:} false; then :
30266600fe5bSmrg  $as_echo_n "(cached) " >&6
3027a0195d5fSmrgelse
3028a0195d5fSmrg  ac_cv_prog_cc_c89=no
3029a0195d5fSmrgac_save_CC=$CC
30306f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031a0195d5fSmrg/* end confdefs.h.  */
3032a0195d5fSmrg#include <stdarg.h>
3033a0195d5fSmrg#include <stdio.h>
3034feee4651Smrgstruct stat;
3035a0195d5fSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3036a0195d5fSmrgstruct buf { int x; };
3037a0195d5fSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3038a0195d5fSmrgstatic char *e (p, i)
3039a0195d5fSmrg     char **p;
3040a0195d5fSmrg     int i;
3041a0195d5fSmrg{
3042a0195d5fSmrg  return p[i];
3043a0195d5fSmrg}
3044a0195d5fSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3045a0195d5fSmrg{
3046a0195d5fSmrg  char *s;
3047a0195d5fSmrg  va_list v;
3048a0195d5fSmrg  va_start (v,p);
3049a0195d5fSmrg  s = g (p, va_arg (v,int));
3050a0195d5fSmrg  va_end (v);
3051a0195d5fSmrg  return s;
3052a0195d5fSmrg}
3053a0195d5fSmrg
3054a0195d5fSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3055a0195d5fSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
3056a0195d5fSmrg   These don't provoke an error unfortunately, instead are silently treated
3057a0195d5fSmrg   as 'x'.  The following induces an error, until -std is added to get
3058a0195d5fSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3059a0195d5fSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
3060a0195d5fSmrg   that's true only with -std.  */
3061a0195d5fSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3062a0195d5fSmrg
3063a0195d5fSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3064a0195d5fSmrg   inside strings and character constants.  */
3065a0195d5fSmrg#define FOO(x) 'x'
3066a0195d5fSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3067a0195d5fSmrg
3068a0195d5fSmrgint test (int i, double x);
3069a0195d5fSmrgstruct s1 {int (*f) (int a);};
3070a0195d5fSmrgstruct s2 {int (*f) (double a);};
3071a0195d5fSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3072a0195d5fSmrgint argc;
3073a0195d5fSmrgchar **argv;
3074a0195d5fSmrgint
3075a0195d5fSmrgmain ()
3076a0195d5fSmrg{
3077a0195d5fSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3078a0195d5fSmrg  ;
3079a0195d5fSmrg  return 0;
3080a0195d5fSmrg}
3081a0195d5fSmrg_ACEOF
3082a0195d5fSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3083a0195d5fSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3084a0195d5fSmrgdo
3085a0195d5fSmrg  CC="$ac_save_CC $ac_arg"
30866f5dd5c2Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3087a0195d5fSmrg  ac_cv_prog_cc_c89=$ac_arg
3088a0195d5fSmrgfi
3089a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext
3090a0195d5fSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3091a0195d5fSmrgdone
3092a0195d5fSmrgrm -f conftest.$ac_ext
3093a0195d5fSmrgCC=$ac_save_CC
3094a0195d5fSmrg
3095a0195d5fSmrgfi
3096a0195d5fSmrg# AC_CACHE_VAL
3097a0195d5fSmrgcase "x$ac_cv_prog_cc_c89" in
3098a0195d5fSmrg  x)
30996f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
31006600fe5bSmrg$as_echo "none needed" >&6; } ;;
3101a0195d5fSmrg  xno)
31026f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
31036600fe5bSmrg$as_echo "unsupported" >&6; } ;;
3104a0195d5fSmrg  *)
3105a0195d5fSmrg    CC="$CC $ac_cv_prog_cc_c89"
31066f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
31076600fe5bSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3108a0195d5fSmrgesac
31096f5dd5c2Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3110a0195d5fSmrg
31116f5dd5c2Smrgfi
3112a0195d5fSmrg
3113a0195d5fSmrgac_ext=c
3114a0195d5fSmrgac_cpp='$CPP $CPPFLAGS'
3115a0195d5fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116a0195d5fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117a0195d5fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3118a0195d5fSmrg
311940a76396Smrgac_ext=c
312040a76396Smrgac_cpp='$CPP $CPPFLAGS'
312140a76396Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
312240a76396Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
312340a76396Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
312440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
312540a76396Smrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
312640a76396Smrgif ${am_cv_prog_cc_c_o+:} false; then :
31276600fe5bSmrg  $as_echo_n "(cached) " >&6
3128a0195d5fSmrgelse
312940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
313040a76396Smrg/* end confdefs.h.  */
31316600fe5bSmrg
313240a76396Smrgint
313340a76396Smrgmain ()
313440a76396Smrg{
31356f5dd5c2Smrg
31366f5dd5c2Smrg  ;
31376f5dd5c2Smrg  return 0;
31386f5dd5c2Smrg}
31396f5dd5c2Smrg_ACEOF
314040a76396Smrg  # Make sure it works both with $CC and with simple cc.
314140a76396Smrg  # Following AC_PROG_CC_C_O, we do the test twice because some
314240a76396Smrg  # compilers refuse to overwrite an existing .o file with -o,
314340a76396Smrg  # though they will create one.
314440a76396Smrg  am_cv_prog_cc_c_o=yes
314540a76396Smrg  for am_i in 1 2; do
314640a76396Smrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
314740a76396Smrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
314840a76396Smrg   ac_status=$?
314940a76396Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
315040a76396Smrg   (exit $ac_status); } \
315140a76396Smrg         && test -f conftest2.$ac_objext; then
315240a76396Smrg      : OK
315340a76396Smrg    else
315440a76396Smrg      am_cv_prog_cc_c_o=no
315540a76396Smrg      break
315640a76396Smrg    fi
315740a76396Smrg  done
315840a76396Smrg  rm -f core conftest*
315940a76396Smrg  unset am_i
316040a76396Smrgfi
316140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
316240a76396Smrg$as_echo "$am_cv_prog_cc_c_o" >&6; }
316340a76396Smrgif test "$am_cv_prog_cc_c_o" != yes; then
316440a76396Smrg   # Losing compiler, so override with the script.
316540a76396Smrg   # FIXME: It is wrong to rewrite CC.
316640a76396Smrg   # But if we don't then we get into trouble of one sort or another.
316740a76396Smrg   # A longer-term fix would be to have automake use am__CC in this case,
316840a76396Smrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
316940a76396Smrg   CC="$am_aux_dir/compile $CC"
31706f5dd5c2Smrgfi
317140a76396Smrgac_ext=c
317240a76396Smrgac_cpp='$CPP $CPPFLAGS'
317340a76396Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
317440a76396Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
317540a76396Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
31766f5dd5c2Smrg
31776f5dd5c2Smrg
31786f5dd5c2Smrg
31796f5dd5c2Smrgac_ext=c
31806f5dd5c2Smrgac_cpp='$CPP $CPPFLAGS'
31816f5dd5c2Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31826f5dd5c2Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31836f5dd5c2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
31846f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
31856f5dd5c2Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
31866f5dd5c2Smrg# On Suns, sometimes $CPP names a directory.
31876f5dd5c2Smrgif test -n "$CPP" && test -d "$CPP"; then
31886f5dd5c2Smrg  CPP=
31896f5dd5c2Smrgfi
31906f5dd5c2Smrgif test -z "$CPP"; then
31912ab73d9fSmrg  if ${ac_cv_prog_CPP+:} false; then :
31926f5dd5c2Smrg  $as_echo_n "(cached) " >&6
31936600fe5bSmrgelse
31946f5dd5c2Smrg      # Double quotes because CPP needs to be expanded
31956f5dd5c2Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
31966f5dd5c2Smrg    do
31976f5dd5c2Smrg      ac_preproc_ok=false
31986f5dd5c2Smrgfor ac_c_preproc_warn_flag in '' yes
31996f5dd5c2Smrgdo
32006f5dd5c2Smrg  # Use a header file that comes with gcc, so configuring glibc
32016f5dd5c2Smrg  # with a fresh cross-compiler works.
32026f5dd5c2Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32036f5dd5c2Smrg  # <limits.h> exists even on freestanding compilers.
32046f5dd5c2Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
32056f5dd5c2Smrg  # not just through cpp. "Syntax error" is here to catch this case.
32066f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32076f5dd5c2Smrg/* end confdefs.h.  */
32086f5dd5c2Smrg#ifdef __STDC__
32096f5dd5c2Smrg# include <limits.h>
32106f5dd5c2Smrg#else
32116f5dd5c2Smrg# include <assert.h>
32126f5dd5c2Smrg#endif
32136f5dd5c2Smrg		     Syntax error
32146f5dd5c2Smrg_ACEOF
32156f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
32166600fe5bSmrg
32176f5dd5c2Smrgelse
32186600fe5bSmrg  # Broken: fails on valid input.
32196600fe5bSmrgcontinue
32206600fe5bSmrgfi
32212ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
32226600fe5bSmrg
32236600fe5bSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
32246600fe5bSmrg  # can be detected and how.
32256f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32266600fe5bSmrg/* end confdefs.h.  */
32276600fe5bSmrg#include <ac_nonexistent.h>
32286600fe5bSmrg_ACEOF
32296f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
32306600fe5bSmrg  # Broken: success on invalid input.
32316600fe5bSmrgcontinue
32326600fe5bSmrgelse
32336600fe5bSmrg  # Passes both tests.
32346600fe5bSmrgac_preproc_ok=:
32356600fe5bSmrgbreak
32366600fe5bSmrgfi
32372ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
32386600fe5bSmrg
32396600fe5bSmrgdone
32406600fe5bSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
32412ab73d9fSmrgrm -f conftest.i conftest.err conftest.$ac_ext
32426f5dd5c2Smrgif $ac_preproc_ok; then :
32436600fe5bSmrg  break
32446600fe5bSmrgfi
32456600fe5bSmrg
32466600fe5bSmrg    done
32476600fe5bSmrg    ac_cv_prog_CPP=$CPP
32486600fe5bSmrg
32496600fe5bSmrgfi
32506600fe5bSmrg  CPP=$ac_cv_prog_CPP
32516600fe5bSmrgelse
32526600fe5bSmrg  ac_cv_prog_CPP=$CPP
32536600fe5bSmrgfi
32546f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
32556600fe5bSmrg$as_echo "$CPP" >&6; }
32566600fe5bSmrgac_preproc_ok=false
32576600fe5bSmrgfor ac_c_preproc_warn_flag in '' yes
32586600fe5bSmrgdo
32596600fe5bSmrg  # Use a header file that comes with gcc, so configuring glibc
32606600fe5bSmrg  # with a fresh cross-compiler works.
32616600fe5bSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32626600fe5bSmrg  # <limits.h> exists even on freestanding compilers.
32636600fe5bSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
32646600fe5bSmrg  # not just through cpp. "Syntax error" is here to catch this case.
32656f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32666600fe5bSmrg/* end confdefs.h.  */
32676600fe5bSmrg#ifdef __STDC__
32686600fe5bSmrg# include <limits.h>
32696600fe5bSmrg#else
32706600fe5bSmrg# include <assert.h>
32716600fe5bSmrg#endif
32726600fe5bSmrg		     Syntax error
32736600fe5bSmrg_ACEOF
32746f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
32756600fe5bSmrg
32766f5dd5c2Smrgelse
32776600fe5bSmrg  # Broken: fails on valid input.
32786600fe5bSmrgcontinue
32796600fe5bSmrgfi
32802ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
32816600fe5bSmrg
32826600fe5bSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
32836600fe5bSmrg  # can be detected and how.
32846f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32856600fe5bSmrg/* end confdefs.h.  */
32866600fe5bSmrg#include <ac_nonexistent.h>
32876600fe5bSmrg_ACEOF
32886f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
32896600fe5bSmrg  # Broken: success on invalid input.
32906600fe5bSmrgcontinue
32916600fe5bSmrgelse
32926600fe5bSmrg  # Passes both tests.
32936600fe5bSmrgac_preproc_ok=:
32946600fe5bSmrgbreak
32956600fe5bSmrgfi
32962ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
32976600fe5bSmrg
32986600fe5bSmrgdone
32996600fe5bSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
33002ab73d9fSmrgrm -f conftest.i conftest.err conftest.$ac_ext
33016f5dd5c2Smrgif $ac_preproc_ok; then :
33026f5dd5c2Smrg
33036600fe5bSmrgelse
33046f5dd5c2Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33056600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33062ab73d9fSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
33072ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
33086600fe5bSmrgfi
33096600fe5bSmrg
33106600fe5bSmrgac_ext=c
33116600fe5bSmrgac_cpp='$CPP $CPPFLAGS'
33126600fe5bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33136600fe5bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33146600fe5bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
33156600fe5bSmrg
33166600fe5bSmrg
33176f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
33186600fe5bSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
33192ab73d9fSmrgif ${ac_cv_path_GREP+:} false; then :
33206600fe5bSmrg  $as_echo_n "(cached) " >&6
33216600fe5bSmrgelse
33226600fe5bSmrg  if test -z "$GREP"; then
33236600fe5bSmrg  ac_path_GREP_found=false
33246600fe5bSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
33256600fe5bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33266600fe5bSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
33276600fe5bSmrgdo
33286600fe5bSmrg  IFS=$as_save_IFS
33296600fe5bSmrg  test -z "$as_dir" && as_dir=.
33306f5dd5c2Smrg    for ac_prog in grep ggrep; do
33316600fe5bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
33326600fe5bSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3333feee4651Smrg      as_fn_executable_p "$ac_path_GREP" || continue
33346600fe5bSmrg# Check for GNU ac_path_GREP and select it if it is found.
33356600fe5bSmrg  # Check for GNU $ac_path_GREP
33366600fe5bSmrgcase `"$ac_path_GREP" --version 2>&1` in
33376600fe5bSmrg*GNU*)
33386600fe5bSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
33396600fe5bSmrg*)
33406600fe5bSmrg  ac_count=0
33416600fe5bSmrg  $as_echo_n 0123456789 >"conftest.in"
33426600fe5bSmrg  while :
33436600fe5bSmrg  do
33446600fe5bSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
33456600fe5bSmrg    mv "conftest.tmp" "conftest.in"
33466600fe5bSmrg    cp "conftest.in" "conftest.nl"
33476600fe5bSmrg    $as_echo 'GREP' >> "conftest.nl"
33486600fe5bSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
33496600fe5bSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
33506f5dd5c2Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
33516600fe5bSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
33526600fe5bSmrg      # Best one so far, save it but keep looking for a better one
33536600fe5bSmrg      ac_cv_path_GREP="$ac_path_GREP"
33546600fe5bSmrg      ac_path_GREP_max=$ac_count
33556600fe5bSmrg    fi
33566600fe5bSmrg    # 10*(2^10) chars as input seems more than enough
33576600fe5bSmrg    test $ac_count -gt 10 && break
33586600fe5bSmrg  done
33596600fe5bSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
33606600fe5bSmrgesac
33616600fe5bSmrg
33626600fe5bSmrg      $ac_path_GREP_found && break 3
33636600fe5bSmrg    done
33646600fe5bSmrg  done
33656f5dd5c2Smrg  done
33666600fe5bSmrgIFS=$as_save_IFS
33676600fe5bSmrg  if test -z "$ac_cv_path_GREP"; then
33682ab73d9fSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
33696600fe5bSmrg  fi
33706600fe5bSmrgelse
33716600fe5bSmrg  ac_cv_path_GREP=$GREP
33726600fe5bSmrgfi
33736600fe5bSmrg
33746600fe5bSmrgfi
33756f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
33766600fe5bSmrg$as_echo "$ac_cv_path_GREP" >&6; }
33776600fe5bSmrg GREP="$ac_cv_path_GREP"
33786600fe5bSmrg
33796600fe5bSmrg
33806f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
33816600fe5bSmrg$as_echo_n "checking for egrep... " >&6; }
33822ab73d9fSmrgif ${ac_cv_path_EGREP+:} false; then :
33836600fe5bSmrg  $as_echo_n "(cached) " >&6
33846600fe5bSmrgelse
33856600fe5bSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
33866600fe5bSmrg   then ac_cv_path_EGREP="$GREP -E"
33876600fe5bSmrg   else
33886600fe5bSmrg     if test -z "$EGREP"; then
33896600fe5bSmrg  ac_path_EGREP_found=false
33906600fe5bSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
33916600fe5bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33926600fe5bSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
33936600fe5bSmrgdo
33946600fe5bSmrg  IFS=$as_save_IFS
33956600fe5bSmrg  test -z "$as_dir" && as_dir=.
33966f5dd5c2Smrg    for ac_prog in egrep; do
33976600fe5bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
33986600fe5bSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3399feee4651Smrg      as_fn_executable_p "$ac_path_EGREP" || continue
34006600fe5bSmrg# Check for GNU ac_path_EGREP and select it if it is found.
34016600fe5bSmrg  # Check for GNU $ac_path_EGREP
34026600fe5bSmrgcase `"$ac_path_EGREP" --version 2>&1` in
34036600fe5bSmrg*GNU*)
34046600fe5bSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
34056600fe5bSmrg*)
34066600fe5bSmrg  ac_count=0
34076600fe5bSmrg  $as_echo_n 0123456789 >"conftest.in"
34086600fe5bSmrg  while :
34096600fe5bSmrg  do
34106600fe5bSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
34116600fe5bSmrg    mv "conftest.tmp" "conftest.in"
34126600fe5bSmrg    cp "conftest.in" "conftest.nl"
34136600fe5bSmrg    $as_echo 'EGREP' >> "conftest.nl"
34146600fe5bSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
34156600fe5bSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
34166f5dd5c2Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
34176600fe5bSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
34186600fe5bSmrg      # Best one so far, save it but keep looking for a better one
34196600fe5bSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
34206600fe5bSmrg      ac_path_EGREP_max=$ac_count
34216600fe5bSmrg    fi
34226600fe5bSmrg    # 10*(2^10) chars as input seems more than enough
34236600fe5bSmrg    test $ac_count -gt 10 && break
34246600fe5bSmrg  done
34256600fe5bSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
34266600fe5bSmrgesac
34276600fe5bSmrg
34286600fe5bSmrg      $ac_path_EGREP_found && break 3
34296600fe5bSmrg    done
34306600fe5bSmrg  done
34316f5dd5c2Smrg  done
34326600fe5bSmrgIFS=$as_save_IFS
34336600fe5bSmrg  if test -z "$ac_cv_path_EGREP"; then
34342ab73d9fSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
34356600fe5bSmrg  fi
34366600fe5bSmrgelse
34376600fe5bSmrg  ac_cv_path_EGREP=$EGREP
34386600fe5bSmrgfi
34396600fe5bSmrg
34406600fe5bSmrg   fi
34416600fe5bSmrgfi
34426f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
34436600fe5bSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
34446600fe5bSmrg EGREP="$ac_cv_path_EGREP"
34456600fe5bSmrg
34466600fe5bSmrg
34476f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
34486600fe5bSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
34492ab73d9fSmrgif ${ac_cv_header_stdc+:} false; then :
34506600fe5bSmrg  $as_echo_n "(cached) " >&6
34516600fe5bSmrgelse
34526f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34536600fe5bSmrg/* end confdefs.h.  */
34546600fe5bSmrg#include <stdlib.h>
34556600fe5bSmrg#include <stdarg.h>
34566600fe5bSmrg#include <string.h>
34576600fe5bSmrg#include <float.h>
34586600fe5bSmrg
34596600fe5bSmrgint
34606600fe5bSmrgmain ()
34616600fe5bSmrg{
34626600fe5bSmrg
34636600fe5bSmrg  ;
34646600fe5bSmrg  return 0;
34656600fe5bSmrg}
34666600fe5bSmrg_ACEOF
34676f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
34686600fe5bSmrg  ac_cv_header_stdc=yes
34696600fe5bSmrgelse
34706f5dd5c2Smrg  ac_cv_header_stdc=no
34716600fe5bSmrgfi
34726600fe5bSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34736600fe5bSmrg
34746600fe5bSmrgif test $ac_cv_header_stdc = yes; then
34756600fe5bSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
34766f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34776600fe5bSmrg/* end confdefs.h.  */
34786600fe5bSmrg#include <string.h>
34796600fe5bSmrg
34806600fe5bSmrg_ACEOF
34816600fe5bSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34826f5dd5c2Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
34836f5dd5c2Smrg
34846600fe5bSmrgelse
34856600fe5bSmrg  ac_cv_header_stdc=no
34866600fe5bSmrgfi
34876600fe5bSmrgrm -f conftest*
34886600fe5bSmrg
34896600fe5bSmrgfi
34906600fe5bSmrg
34916600fe5bSmrgif test $ac_cv_header_stdc = yes; then
34926600fe5bSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
34936f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34946600fe5bSmrg/* end confdefs.h.  */
34956600fe5bSmrg#include <stdlib.h>
34966600fe5bSmrg
34976600fe5bSmrg_ACEOF
34986600fe5bSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34996f5dd5c2Smrg  $EGREP "free" >/dev/null 2>&1; then :
35006f5dd5c2Smrg
35016600fe5bSmrgelse
35026600fe5bSmrg  ac_cv_header_stdc=no
35036600fe5bSmrgfi
35046600fe5bSmrgrm -f conftest*
35056600fe5bSmrg
35066600fe5bSmrgfi
35076600fe5bSmrg
35086600fe5bSmrgif test $ac_cv_header_stdc = yes; then
35096600fe5bSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
35106f5dd5c2Smrg  if test "$cross_compiling" = yes; then :
35116600fe5bSmrg  :
35126600fe5bSmrgelse
35136f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35146600fe5bSmrg/* end confdefs.h.  */
35156600fe5bSmrg#include <ctype.h>
35166600fe5bSmrg#include <stdlib.h>
35176600fe5bSmrg#if ((' ' & 0x0FF) == 0x020)
35186600fe5bSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
35196600fe5bSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
35206600fe5bSmrg#else
35216600fe5bSmrg# define ISLOWER(c) \
35226600fe5bSmrg		   (('a' <= (c) && (c) <= 'i') \
35236600fe5bSmrg		     || ('j' <= (c) && (c) <= 'r') \
35246600fe5bSmrg		     || ('s' <= (c) && (c) <= 'z'))
35256600fe5bSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
35266600fe5bSmrg#endif
35276600fe5bSmrg
35286600fe5bSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
35296600fe5bSmrgint
35306600fe5bSmrgmain ()
35316600fe5bSmrg{
35326600fe5bSmrg  int i;
35336600fe5bSmrg  for (i = 0; i < 256; i++)
35346600fe5bSmrg    if (XOR (islower (i), ISLOWER (i))
35356600fe5bSmrg	|| toupper (i) != TOUPPER (i))
35366600fe5bSmrg      return 2;
35376600fe5bSmrg  return 0;
35386600fe5bSmrg}
35396600fe5bSmrg_ACEOF
35406f5dd5c2Smrgif ac_fn_c_try_run "$LINENO"; then :
35416600fe5bSmrg
35426f5dd5c2Smrgelse
35436f5dd5c2Smrg  ac_cv_header_stdc=no
35446600fe5bSmrgfi
35456f5dd5c2Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35466f5dd5c2Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
35476600fe5bSmrgfi
35486600fe5bSmrg
35496600fe5bSmrgfi
35506600fe5bSmrgfi
35516f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
35526600fe5bSmrg$as_echo "$ac_cv_header_stdc" >&6; }
35536600fe5bSmrgif test $ac_cv_header_stdc = yes; then
35546600fe5bSmrg
35556f5dd5c2Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
35566600fe5bSmrg
35576600fe5bSmrgfi
35586600fe5bSmrg
35596600fe5bSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
35606600fe5bSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
35616600fe5bSmrg		  inttypes.h stdint.h unistd.h
35626f5dd5c2Smrgdo :
35636f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35646f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
35656f5dd5c2Smrg"
35662ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35676600fe5bSmrg  cat >>confdefs.h <<_ACEOF
35686600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35696600fe5bSmrg_ACEOF
35706600fe5bSmrg
35716600fe5bSmrgfi
35726600fe5bSmrg
35736600fe5bSmrgdone
35746600fe5bSmrg
35756600fe5bSmrg
35766f5dd5c2Smrg
357740a76396Smrg  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
357840a76396Smrgif test "x$ac_cv_header_minix_config_h" = xyes; then :
357940a76396Smrg  MINIX=yes
3580ff6cf368Smrgelse
358140a76396Smrg  MINIX=
3582ff6cf368Smrgfi
3583ff6cf368Smrg
3584ff6cf368Smrg
358540a76396Smrg  if test "$MINIX" = yes; then
3586ff6cf368Smrg
358740a76396Smrg$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3588ff6cf368Smrg
3589ff6cf368Smrg
359040a76396Smrg$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3591ff6cf368Smrg
359240a76396Smrg
359340a76396Smrg$as_echo "#define _MINIX 1" >>confdefs.h
359440a76396Smrg
359540a76396Smrg  fi
359640a76396Smrg
359740a76396Smrg
359840a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
359940a76396Smrg$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
360040a76396Smrgif ${ac_cv_safe_to_define___extensions__+:} false; then :
360140a76396Smrg  $as_echo_n "(cached) " >&6
360240a76396Smrgelse
360340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
360440a76396Smrg/* end confdefs.h.  */
360540a76396Smrg
3606feee4651Smrg#         define __EXTENSIONS__ 1
3607feee4651Smrg          $ac_includes_default
360840a76396Smrgint
360940a76396Smrgmain ()
361040a76396Smrg{
361140a76396Smrg
361240a76396Smrg  ;
361340a76396Smrg  return 0;
361440a76396Smrg}
361540a76396Smrg_ACEOF
361640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
361740a76396Smrg  ac_cv_safe_to_define___extensions__=yes
361840a76396Smrgelse
361940a76396Smrg  ac_cv_safe_to_define___extensions__=no
362040a76396Smrgfi
362140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
362240a76396Smrgfi
362340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
362440a76396Smrg$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
362540a76396Smrg  test $ac_cv_safe_to_define___extensions__ = yes &&
362640a76396Smrg    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
362740a76396Smrg
362840a76396Smrg  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
362940a76396Smrg
363040a76396Smrg  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
363140a76396Smrg
363240a76396Smrg  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
363340a76396Smrg
363440a76396Smrg  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
363540a76396Smrg
363640a76396Smrg
363740a76396Smrg
363840a76396Smrg# Initialize Automake
3639feee4651Smrgam__api_version='1.15'
364040a76396Smrg
364140a76396Smrg# Find a good install program.  We prefer a C program (faster),
364240a76396Smrg# so one script is as good as another.  But avoid the broken or
364340a76396Smrg# incompatible versions:
364440a76396Smrg# SysV /etc/install, /usr/sbin/install
364540a76396Smrg# SunOS /usr/etc/install
364640a76396Smrg# IRIX /sbin/install
364740a76396Smrg# AIX /bin/install
364840a76396Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
364940a76396Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
365040a76396Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
365140a76396Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
365240a76396Smrg# OS/2's system install, which has a completely different semantic
365340a76396Smrg# ./install, which can be erroneously created by make from ./install.sh.
365440a76396Smrg# Reject install programs that cannot install multiple files.
365540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
365640a76396Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
365740a76396Smrgif test -z "$INSTALL"; then
365840a76396Smrgif ${ac_cv_path_install+:} false; then :
36596600fe5bSmrg  $as_echo_n "(cached) " >&6
36606600fe5bSmrgelse
36616f5dd5c2Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36626f5dd5c2Smrgfor as_dir in $PATH
36636600fe5bSmrgdo
36646f5dd5c2Smrg  IFS=$as_save_IFS
36656f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
366640a76396Smrg    # Account for people who put trailing slashes in PATH elements.
366740a76396Smrgcase $as_dir/ in #((
366840a76396Smrg  ./ | .// | /[cC]/* | \
366940a76396Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
367040a76396Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
367140a76396Smrg  /usr/ucb/* ) ;;
367240a76396Smrg  *)
367340a76396Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
367440a76396Smrg    # Don't use installbsd from OSF since it installs stuff as root
367540a76396Smrg    # by default.
367640a76396Smrg    for ac_prog in ginstall scoinst install; do
367740a76396Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
3678feee4651Smrg	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
367940a76396Smrg	  if test $ac_prog = install &&
368040a76396Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
368140a76396Smrg	    # AIX install.  It has an incompatible calling convention.
368240a76396Smrg	    :
368340a76396Smrg	  elif test $ac_prog = install &&
368440a76396Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
368540a76396Smrg	    # program-specific install script used by HP pwplus--don't use.
368640a76396Smrg	    :
368740a76396Smrg	  else
368840a76396Smrg	    rm -rf conftest.one conftest.two conftest.dir
368940a76396Smrg	    echo one > conftest.one
369040a76396Smrg	    echo two > conftest.two
369140a76396Smrg	    mkdir conftest.dir
369240a76396Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
369340a76396Smrg	      test -s conftest.one && test -s conftest.two &&
369440a76396Smrg	      test -s conftest.dir/conftest.one &&
369540a76396Smrg	      test -s conftest.dir/conftest.two
369640a76396Smrg	    then
369740a76396Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
369840a76396Smrg	      break 3
369940a76396Smrg	    fi
370040a76396Smrg	  fi
370140a76396Smrg	fi
370240a76396Smrg      done
370340a76396Smrg    done
370440a76396Smrg    ;;
370540a76396Smrgesac
370640a76396Smrg
37076f5dd5c2Smrg  done
37086f5dd5c2SmrgIFS=$as_save_IFS
37096f5dd5c2Smrg
371040a76396Smrgrm -rf conftest.one conftest.two conftest.dir
371140a76396Smrg
37126f5dd5c2Smrgfi
371340a76396Smrg  if test "${ac_cv_path_install+set}" = set; then
371440a76396Smrg    INSTALL=$ac_cv_path_install
371540a76396Smrg  else
371640a76396Smrg    # As a last resort, use the slow shell script.  Don't cache a
371740a76396Smrg    # value for INSTALL within a source directory, because that will
371840a76396Smrg    # break other packages using the cache if that directory is
371940a76396Smrg    # removed, or if the value is a relative name.
372040a76396Smrg    INSTALL=$ac_install_sh
372140a76396Smrg  fi
372240a76396Smrgfi
372340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
372440a76396Smrg$as_echo "$INSTALL" >&6; }
372540a76396Smrg
372640a76396Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
372740a76396Smrg# It thinks the first close brace ends the variable substitution.
372840a76396Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
372940a76396Smrg
373040a76396Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
373140a76396Smrg
373240a76396Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
373340a76396Smrg
373440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
373540a76396Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
373640a76396Smrg# Reject unsafe characters in $srcdir or the absolute working directory
373740a76396Smrg# name.  Accept space and tab only in the latter.
373840a76396Smrgam_lf='
373940a76396Smrg'
374040a76396Smrgcase `pwd` in
374140a76396Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
374240a76396Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
374340a76396Smrgesac
374440a76396Smrgcase $srcdir in
374540a76396Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
374640a76396Smrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
374740a76396Smrgesac
374840a76396Smrg
374940a76396Smrg# Do 'set' in a subshell so we don't clobber the current shell's
375040a76396Smrg# arguments.  Must try -L first in case configure is actually a
375140a76396Smrg# symlink; some systems play weird games with the mod time of symlinks
375240a76396Smrg# (eg FreeBSD returns the mod time of the symlink's containing
375340a76396Smrg# directory).
375440a76396Smrgif (
375540a76396Smrg   am_has_slept=no
375640a76396Smrg   for am_try in 1 2; do
375740a76396Smrg     echo "timestamp, slept: $am_has_slept" > conftest.file
375840a76396Smrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
375940a76396Smrg     if test "$*" = "X"; then
376040a76396Smrg	# -L didn't work.
376140a76396Smrg	set X `ls -t "$srcdir/configure" conftest.file`
376240a76396Smrg     fi
376340a76396Smrg     if test "$*" != "X $srcdir/configure conftest.file" \
376440a76396Smrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
376540a76396Smrg
376640a76396Smrg	# If neither matched, then we have a broken ls.  This can happen
376740a76396Smrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
376840a76396Smrg	# broken ls alias from the environment.  This has actually
376940a76396Smrg	# happened.  Such a system could not be considered "sane".
377040a76396Smrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
377140a76396Smrg  alias in your environment" "$LINENO" 5
377240a76396Smrg     fi
377340a76396Smrg     if test "$2" = conftest.file || test $am_try -eq 2; then
377440a76396Smrg       break
377540a76396Smrg     fi
377640a76396Smrg     # Just in case.
377740a76396Smrg     sleep 1
377840a76396Smrg     am_has_slept=yes
377940a76396Smrg   done
378040a76396Smrg   test "$2" = conftest.file
378140a76396Smrg   )
378240a76396Smrgthen
378340a76396Smrg   # Ok.
378440a76396Smrg   :
37856600fe5bSmrgelse
378640a76396Smrg   as_fn_error $? "newly created file is older than distributed files!
378740a76396SmrgCheck your system clock" "$LINENO" 5
37886600fe5bSmrgfi
378940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
379040a76396Smrg$as_echo "yes" >&6; }
379140a76396Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and
379240a76396Smrg# generated files are strictly newer.
379340a76396Smrgam_sleep_pid=
379440a76396Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
379540a76396Smrg  ( sleep 1 ) &
379640a76396Smrg  am_sleep_pid=$!
379740a76396Smrgfi
379840a76396Smrg
379940a76396Smrgrm -f conftest.file
38006600fe5bSmrg
380140a76396Smrgtest "$program_prefix" != NONE &&
380240a76396Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
380340a76396Smrg# Use a double $ so make ignores it.
380440a76396Smrgtest "$program_suffix" != NONE &&
380540a76396Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
380640a76396Smrg# Double any \ or $.
380740a76396Smrg# By default was `s,x,x', remove it if useless.
380840a76396Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
380940a76396Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
38106600fe5bSmrg
381140a76396Smrgif test x"${MISSING+set}" != xset; then
381240a76396Smrg  case $am_aux_dir in
381340a76396Smrg  *\ * | *\	*)
381440a76396Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
381540a76396Smrg  *)
381640a76396Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
381740a76396Smrg  esac
38186600fe5bSmrgfi
381940a76396Smrg# Use eval to expand $SHELL
382040a76396Smrgif eval "$MISSING --is-lightweight"; then
382140a76396Smrg  am_missing_run="$MISSING "
382240a76396Smrgelse
382340a76396Smrg  am_missing_run=
382440a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
382540a76396Smrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
382640a76396Smrgfi
382740a76396Smrg
3828feee4651Smrgif test x"${install_sh+set}" != xset; then
382940a76396Smrg  case $am_aux_dir in
383040a76396Smrg  *\ * | *\	*)
383140a76396Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
383240a76396Smrg  *)
383340a76396Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
383440a76396Smrg  esac
383540a76396Smrgfi
383640a76396Smrg
383740a76396Smrg# Installed binaries are usually stripped using 'strip' when the user
383840a76396Smrg# run "make install-strip".  However 'strip' might not be the right
383940a76396Smrg# tool to use in cross-compilation environments, therefore Automake
384040a76396Smrg# will honor the 'STRIP' environment variable to overrule this program.
384140a76396Smrgif test "$cross_compiling" != no; then
384240a76396Smrg  if test -n "$ac_tool_prefix"; then
384340a76396Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
384440a76396Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
38456f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38466f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
384740a76396Smrgif ${ac_cv_prog_STRIP+:} false; then :
38486f5dd5c2Smrg  $as_echo_n "(cached) " >&6
38496f5dd5c2Smrgelse
385040a76396Smrg  if test -n "$STRIP"; then
385140a76396Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
385240a76396Smrgelse
385340a76396Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38546f5dd5c2Smrgfor as_dir in $PATH
38556f5dd5c2Smrgdo
38566f5dd5c2Smrg  IFS=$as_save_IFS
38576f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
38586f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3859feee4651Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
386040a76396Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38616f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38626f5dd5c2Smrg    break 2
38636f5dd5c2Smrg  fi
38646f5dd5c2Smrgdone
38656f5dd5c2Smrg  done
38666f5dd5c2SmrgIFS=$as_save_IFS
38676f5dd5c2Smrg
38686f5dd5c2Smrgfi
386940a76396Smrgfi
387040a76396SmrgSTRIP=$ac_cv_prog_STRIP
387140a76396Smrgif test -n "$STRIP"; then
387240a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
387340a76396Smrg$as_echo "$STRIP" >&6; }
38746f5dd5c2Smrgelse
38756f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38766f5dd5c2Smrg$as_echo "no" >&6; }
38776f5dd5c2Smrgfi
38786600fe5bSmrg
387940a76396Smrg
388040a76396Smrgfi
388140a76396Smrgif test -z "$ac_cv_prog_STRIP"; then
388240a76396Smrg  ac_ct_STRIP=$STRIP
388340a76396Smrg  # Extract the first word of "strip", so it can be a program name with args.
388440a76396Smrgset dummy strip; ac_word=$2
388540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
388640a76396Smrg$as_echo_n "checking for $ac_word... " >&6; }
388740a76396Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
388840a76396Smrg  $as_echo_n "(cached) " >&6
388940a76396Smrgelse
389040a76396Smrg  if test -n "$ac_ct_STRIP"; then
389140a76396Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
389240a76396Smrgelse
389340a76396Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
389440a76396Smrgfor as_dir in $PATH
389540a76396Smrgdo
389640a76396Smrg  IFS=$as_save_IFS
389740a76396Smrg  test -z "$as_dir" && as_dir=.
389840a76396Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3899feee4651Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
390040a76396Smrg    ac_cv_prog_ac_ct_STRIP="strip"
390140a76396Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
390240a76396Smrg    break 2
390340a76396Smrg  fi
390440a76396Smrgdone
390540a76396Smrg  done
390640a76396SmrgIFS=$as_save_IFS
390740a76396Smrg
390840a76396Smrgfi
390940a76396Smrgfi
391040a76396Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
391140a76396Smrgif test -n "$ac_ct_STRIP"; then
391240a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
391340a76396Smrg$as_echo "$ac_ct_STRIP" >&6; }
391440a76396Smrgelse
391540a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
391640a76396Smrg$as_echo "no" >&6; }
391740a76396Smrgfi
391840a76396Smrg
391940a76396Smrg  if test "x$ac_ct_STRIP" = x; then
392040a76396Smrg    STRIP=":"
39216f5dd5c2Smrg  else
39226f5dd5c2Smrg    case $cross_compiling:$ac_tool_warned in
39236f5dd5c2Smrgyes:)
39246f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39256f5dd5c2Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39266f5dd5c2Smrgac_tool_warned=yes ;;
39276f5dd5c2Smrgesac
392840a76396Smrg    STRIP=$ac_ct_STRIP
39296f5dd5c2Smrg  fi
39306f5dd5c2Smrgelse
393140a76396Smrg  STRIP="$ac_cv_prog_STRIP"
39326f5dd5c2Smrgfi
39336600fe5bSmrg
39346f5dd5c2Smrgfi
393540a76396SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
393640a76396Smrg
393740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
393840a76396Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
393940a76396Smrgif test -z "$MKDIR_P"; then
394040a76396Smrg  if ${ac_cv_path_mkdir+:} false; then :
394140a76396Smrg  $as_echo_n "(cached) " >&6
394240a76396Smrgelse
394340a76396Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
394440a76396Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
394540a76396Smrgdo
394640a76396Smrg  IFS=$as_save_IFS
394740a76396Smrg  test -z "$as_dir" && as_dir=.
394840a76396Smrg    for ac_prog in mkdir gmkdir; do
394940a76396Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
3950feee4651Smrg	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
395140a76396Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
395240a76396Smrg	     'mkdir (GNU coreutils) '* | \
395340a76396Smrg	     'mkdir (coreutils) '* | \
395440a76396Smrg	     'mkdir (fileutils) '4.1*)
395540a76396Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
395640a76396Smrg	       break 3;;
395740a76396Smrg	   esac
395840a76396Smrg	 done
395940a76396Smrg       done
396040a76396Smrg  done
396140a76396SmrgIFS=$as_save_IFS
396240a76396Smrg
396340a76396Smrgfi
396440a76396Smrg
396540a76396Smrg  test -d ./--version && rmdir ./--version
396640a76396Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
396740a76396Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
396840a76396Smrg  else
396940a76396Smrg    # As a last resort, use the slow shell script.  Don't cache a
397040a76396Smrg    # value for MKDIR_P within a source directory, because that will
397140a76396Smrg    # break other packages using the cache if that directory is
397240a76396Smrg    # removed, or if the value is a relative name.
397340a76396Smrg    MKDIR_P="$ac_install_sh -d"
397440a76396Smrg  fi
397540a76396Smrgfi
397640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
397740a76396Smrg$as_echo "$MKDIR_P" >&6; }
397840a76396Smrg
397940a76396Smrgfor ac_prog in gawk mawk nawk awk
398040a76396Smrgdo
398140a76396Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
398240a76396Smrgset dummy $ac_prog; ac_word=$2
398340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
398440a76396Smrg$as_echo_n "checking for $ac_word... " >&6; }
398540a76396Smrgif ${ac_cv_prog_AWK+:} false; then :
398640a76396Smrg  $as_echo_n "(cached) " >&6
398740a76396Smrgelse
398840a76396Smrg  if test -n "$AWK"; then
398940a76396Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
399040a76396Smrgelse
399140a76396Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
399240a76396Smrgfor as_dir in $PATH
399340a76396Smrgdo
399440a76396Smrg  IFS=$as_save_IFS
399540a76396Smrg  test -z "$as_dir" && as_dir=.
399640a76396Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3997feee4651Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
399840a76396Smrg    ac_cv_prog_AWK="$ac_prog"
399940a76396Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
400040a76396Smrg    break 2
400140a76396Smrg  fi
400240a76396Smrgdone
400340a76396Smrg  done
400440a76396SmrgIFS=$as_save_IFS
400540a76396Smrg
400640a76396Smrgfi
400740a76396Smrgfi
400840a76396SmrgAWK=$ac_cv_prog_AWK
400940a76396Smrgif test -n "$AWK"; then
401040a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
401140a76396Smrg$as_echo "$AWK" >&6; }
401240a76396Smrgelse
401340a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
401440a76396Smrg$as_echo "no" >&6; }
401540a76396Smrgfi
401640a76396Smrg
401740a76396Smrg
401840a76396Smrg  test -n "$AWK" && break
401940a76396Smrgdone
402040a76396Smrg
402140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
402240a76396Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
402340a76396Smrgset x ${MAKE-make}
402440a76396Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
402540a76396Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
402640a76396Smrg  $as_echo_n "(cached) " >&6
402740a76396Smrgelse
402840a76396Smrg  cat >conftest.make <<\_ACEOF
402940a76396SmrgSHELL = /bin/sh
403040a76396Smrgall:
403140a76396Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
403240a76396Smrg_ACEOF
403340a76396Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
403440a76396Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
403540a76396Smrg  *@@@%%%=?*=@@@%%%*)
403640a76396Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
403740a76396Smrg  *)
403840a76396Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
403940a76396Smrgesac
404040a76396Smrgrm -f conftest.make
404140a76396Smrgfi
404240a76396Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
404340a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40446f5dd5c2Smrg$as_echo "yes" >&6; }
404540a76396Smrg  SET_MAKE=
404640a76396Smrgelse
404740a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40486f5dd5c2Smrg$as_echo "no" >&6; }
404940a76396Smrg  SET_MAKE="MAKE=${MAKE-make}"
405040a76396Smrgfi
405140a76396Smrg
405240a76396Smrgrm -rf .tst 2>/dev/null
405340a76396Smrgmkdir .tst 2>/dev/null
405440a76396Smrgif test -d .tst; then
405540a76396Smrg  am__leading_dot=.
405640a76396Smrgelse
405740a76396Smrg  am__leading_dot=_
405840a76396Smrgfi
405940a76396Smrgrmdir .tst 2>/dev/null
406040a76396Smrg
406140a76396SmrgDEPDIR="${am__leading_dot}deps"
406240a76396Smrg
406340a76396Smrgac_config_commands="$ac_config_commands depfiles"
406440a76396Smrg
406540a76396Smrg
406640a76396Smrgam_make=${MAKE-make}
406740a76396Smrgcat > confinc << 'END'
406840a76396Smrgam__doit:
406940a76396Smrg	@echo this is the am__doit target
407040a76396Smrg.PHONY: am__doit
407140a76396SmrgEND
407240a76396Smrg# If we don't find an include directive, just comment out the code.
407340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
407440a76396Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
407540a76396Smrgam__include="#"
407640a76396Smrgam__quote=
407740a76396Smrg_am_result=none
407840a76396Smrg# First try GNU make style include.
407940a76396Smrgecho "include confinc" > confmf
408040a76396Smrg# Ignore all kinds of additional output from 'make'.
408140a76396Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
408240a76396Smrg*the\ am__doit\ target*)
408340a76396Smrg  am__include=include
408440a76396Smrg  am__quote=
408540a76396Smrg  _am_result=GNU
408640a76396Smrg  ;;
408740a76396Smrgesac
408840a76396Smrg# Now try BSD make style include.
408940a76396Smrgif test "$am__include" = "#"; then
409040a76396Smrg   echo '.include "confinc"' > confmf
409140a76396Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
409240a76396Smrg   *the\ am__doit\ target*)
409340a76396Smrg     am__include=.include
409440a76396Smrg     am__quote="\""
409540a76396Smrg     _am_result=BSD
409640a76396Smrg     ;;
409740a76396Smrg   esac
409840a76396Smrgfi
409940a76396Smrg
410040a76396Smrg
410140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
410240a76396Smrg$as_echo "$_am_result" >&6; }
410340a76396Smrgrm -f confinc confmf
410440a76396Smrg
410540a76396Smrg# Check whether --enable-dependency-tracking was given.
410640a76396Smrgif test "${enable_dependency_tracking+set}" = set; then :
410740a76396Smrg  enableval=$enable_dependency_tracking;
410840a76396Smrgfi
410940a76396Smrg
411040a76396Smrgif test "x$enable_dependency_tracking" != xno; then
411140a76396Smrg  am_depcomp="$ac_aux_dir/depcomp"
411240a76396Smrg  AMDEPBACKSLASH='\'
411340a76396Smrg  am__nodep='_no'
411440a76396Smrgfi
411540a76396Smrg if test "x$enable_dependency_tracking" != xno; then
411640a76396Smrg  AMDEP_TRUE=
411740a76396Smrg  AMDEP_FALSE='#'
411840a76396Smrgelse
411940a76396Smrg  AMDEP_TRUE='#'
412040a76396Smrg  AMDEP_FALSE=
412140a76396Smrgfi
412240a76396Smrg
412340a76396Smrg
412440a76396Smrg# Check whether --enable-silent-rules was given.
412540a76396Smrgif test "${enable_silent_rules+set}" = set; then :
412640a76396Smrg  enableval=$enable_silent_rules;
412740a76396Smrgfi
41286600fe5bSmrg
412940a76396Smrgcase $enable_silent_rules in # (((
413040a76396Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
413140a76396Smrg   no) AM_DEFAULT_VERBOSITY=1;;
413240a76396Smrg    *) AM_DEFAULT_VERBOSITY=1;;
413340a76396Smrgesac
413440a76396Smrgam_make=${MAKE-make}
413540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
413640a76396Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
413740a76396Smrgif ${am_cv_make_support_nested_variables+:} false; then :
413840a76396Smrg  $as_echo_n "(cached) " >&6
413940a76396Smrgelse
414040a76396Smrg  if $as_echo 'TRUE=$(BAR$(V))
414140a76396SmrgBAR0=false
414240a76396SmrgBAR1=true
414340a76396SmrgV=1
414440a76396Smrgam__doit:
414540a76396Smrg	@$(TRUE)
414640a76396Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
414740a76396Smrg  am_cv_make_support_nested_variables=yes
414840a76396Smrgelse
414940a76396Smrg  am_cv_make_support_nested_variables=no
415040a76396Smrgfi
415140a76396Smrgfi
415240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
415340a76396Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
415440a76396Smrgif test $am_cv_make_support_nested_variables = yes; then
415540a76396Smrg    AM_V='$(V)'
415640a76396Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
415740a76396Smrgelse
415840a76396Smrg  AM_V=$AM_DEFAULT_VERBOSITY
415940a76396Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
416040a76396Smrgfi
416140a76396SmrgAM_BACKSLASH='\'
416240a76396Smrg
416340a76396Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
416440a76396Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
416540a76396Smrg  # is not polluted with repeated "-I."
416640a76396Smrg  am__isrc=' -I$(srcdir)'
416740a76396Smrg  # test to see if srcdir already configured
416840a76396Smrg  if test -f $srcdir/config.status; then
416940a76396Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
417040a76396Smrg  fi
417140a76396Smrgfi
417240a76396Smrg
417340a76396Smrg# test whether we have cygpath
417440a76396Smrgif test -z "$CYGPATH_W"; then
417540a76396Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
417640a76396Smrg    CYGPATH_W='cygpath -w'
417740a76396Smrg  else
417840a76396Smrg    CYGPATH_W=echo
417940a76396Smrg  fi
418040a76396Smrgfi
418140a76396Smrg
418240a76396Smrg
418340a76396Smrg# Define the identity of the package.
418440a76396Smrg PACKAGE='xset'
4185feee4651Smrg VERSION='1.2.4'
418640a76396Smrg
418740a76396Smrg
418840a76396Smrgcat >>confdefs.h <<_ACEOF
418940a76396Smrg#define PACKAGE "$PACKAGE"
419040a76396Smrg_ACEOF
419140a76396Smrg
419240a76396Smrg
419340a76396Smrgcat >>confdefs.h <<_ACEOF
419440a76396Smrg#define VERSION "$VERSION"
419540a76396Smrg_ACEOF
419640a76396Smrg
419740a76396Smrg# Some tools Automake needs.
419840a76396Smrg
419940a76396SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
420040a76396Smrg
420140a76396Smrg
420240a76396SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
420340a76396Smrg
420440a76396Smrg
420540a76396SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
420640a76396Smrg
420740a76396Smrg
420840a76396SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
420940a76396Smrg
421040a76396Smrg
421140a76396SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
421240a76396Smrg
421340a76396Smrg# For better backward compatibility.  To be removed once Automake 1.9.x
421440a76396Smrg# dies out for good.  For more background, see:
421540a76396Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
421640a76396Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
421740a76396Smrgmkdir_p='$(MKDIR_P)'
421840a76396Smrg
4219feee4651Smrg# We need awk for the "check" target (and possibly the TAP driver).  The
4220feee4651Smrg# system "awk" is bad on some platforms.
422140a76396Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
422240a76396Smrg# in the wild :-(  We should find a proper way to deprecate it ...
422340a76396SmrgAMTAR='$${TAR-tar}'
422440a76396Smrg
422540a76396Smrg
422640a76396Smrg# We'll loop over all known methods to create a tar archive until one works.
422740a76396Smrg_am_tools='gnutar  pax cpio none'
422840a76396Smrg
422940a76396Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
423040a76396Smrg
423140a76396Smrg
423240a76396Smrg
423340a76396Smrg
423440a76396Smrg
423540a76396Smrgdepcc="$CC"   am_compiler_list=
423640a76396Smrg
423740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
423840a76396Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
423940a76396Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
424040a76396Smrg  $as_echo_n "(cached) " >&6
424140a76396Smrgelse
424240a76396Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
424340a76396Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
424440a76396Smrg  # making bogus files that we don't know about and never remove.  For
424540a76396Smrg  # instance it was reported that on HP-UX the gcc test will end up
424640a76396Smrg  # making a dummy file named 'D' -- because '-MD' means "put the output
424740a76396Smrg  # in D".
424840a76396Smrg  rm -rf conftest.dir
424940a76396Smrg  mkdir conftest.dir
425040a76396Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
425140a76396Smrg  # using a relative directory.
425240a76396Smrg  cp "$am_depcomp" conftest.dir
425340a76396Smrg  cd conftest.dir
425440a76396Smrg  # We will build objects and dependencies in a subdirectory because
425540a76396Smrg  # it helps to detect inapplicable dependency modes.  For instance
425640a76396Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
425740a76396Smrg  # side effect of compilation, but ICC will put the dependencies in
425840a76396Smrg  # the current directory while Tru64 will put them in the object
425940a76396Smrg  # directory.
426040a76396Smrg  mkdir sub
426140a76396Smrg
426240a76396Smrg  am_cv_CC_dependencies_compiler_type=none
426340a76396Smrg  if test "$am_compiler_list" = ""; then
426440a76396Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
426540a76396Smrg  fi
426640a76396Smrg  am__universal=false
426740a76396Smrg  case " $depcc " in #(
426840a76396Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
426940a76396Smrg     esac
427040a76396Smrg
427140a76396Smrg  for depmode in $am_compiler_list; do
427240a76396Smrg    # Setup a source with many dependencies, because some compilers
427340a76396Smrg    # like to wrap large dependency lists on column 80 (with \), and
427440a76396Smrg    # we should not choose a depcomp mode which is confused by this.
427540a76396Smrg    #
427640a76396Smrg    # We need to recreate these files for each test, as the compiler may
427740a76396Smrg    # overwrite some of them when testing with obscure command lines.
427840a76396Smrg    # This happens at least with the AIX C compiler.
427940a76396Smrg    : > sub/conftest.c
428040a76396Smrg    for i in 1 2 3 4 5 6; do
428140a76396Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
428240a76396Smrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
428340a76396Smrg      # Solaris 10 /bin/sh.
428440a76396Smrg      echo '/* dummy */' > sub/conftst$i.h
428540a76396Smrg    done
428640a76396Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
428740a76396Smrg
428840a76396Smrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
428940a76396Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
429040a76396Smrg    # handle '-M -o', and we need to detect this.  Also, some Intel
429140a76396Smrg    # versions had trouble with output in subdirs.
429240a76396Smrg    am__obj=sub/conftest.${OBJEXT-o}
429340a76396Smrg    am__minus_obj="-o $am__obj"
429440a76396Smrg    case $depmode in
429540a76396Smrg    gcc)
429640a76396Smrg      # This depmode causes a compiler race in universal mode.
429740a76396Smrg      test "$am__universal" = false || continue
429840a76396Smrg      ;;
429940a76396Smrg    nosideeffect)
430040a76396Smrg      # After this tag, mechanisms are not by side-effect, so they'll
430140a76396Smrg      # only be used when explicitly requested.
430240a76396Smrg      if test "x$enable_dependency_tracking" = xyes; then
430340a76396Smrg	continue
430440a76396Smrg      else
430540a76396Smrg	break
430640a76396Smrg      fi
430740a76396Smrg      ;;
430840a76396Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
430940a76396Smrg      # This compiler won't grok '-c -o', but also, the minuso test has
431040a76396Smrg      # not run yet.  These depmodes are late enough in the game, and
431140a76396Smrg      # so weak that their functioning should not be impacted.
431240a76396Smrg      am__obj=conftest.${OBJEXT-o}
431340a76396Smrg      am__minus_obj=
431440a76396Smrg      ;;
431540a76396Smrg    none) break ;;
431640a76396Smrg    esac
431740a76396Smrg    if depmode=$depmode \
431840a76396Smrg       source=sub/conftest.c object=$am__obj \
431940a76396Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
432040a76396Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
432140a76396Smrg         >/dev/null 2>conftest.err &&
432240a76396Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
432340a76396Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
432440a76396Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
432540a76396Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
432640a76396Smrg      # icc doesn't choke on unknown options, it will just issue warnings
432740a76396Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
432840a76396Smrg      # that says an option was ignored or not supported.
432940a76396Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
433040a76396Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
433140a76396Smrg      # The diagnosis changed in icc 8.0:
433240a76396Smrg      #   icc: Command line remark: option '-MP' not supported
433340a76396Smrg      if (grep 'ignoring option' conftest.err ||
433440a76396Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
433540a76396Smrg        am_cv_CC_dependencies_compiler_type=$depmode
433640a76396Smrg        break
433740a76396Smrg      fi
433840a76396Smrg    fi
433940a76396Smrg  done
434040a76396Smrg
434140a76396Smrg  cd ..
434240a76396Smrg  rm -rf conftest.dir
434340a76396Smrgelse
434440a76396Smrg  am_cv_CC_dependencies_compiler_type=none
434540a76396Smrgfi
434640a76396Smrg
434740a76396Smrgfi
434840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
434940a76396Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
435040a76396SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
435140a76396Smrg
435240a76396Smrg if
435340a76396Smrg  test "x$enable_dependency_tracking" != xno \
435440a76396Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
435540a76396Smrg  am__fastdepCC_TRUE=
435640a76396Smrg  am__fastdepCC_FALSE='#'
435740a76396Smrgelse
435840a76396Smrg  am__fastdepCC_TRUE='#'
435940a76396Smrg  am__fastdepCC_FALSE=
436040a76396Smrgfi
436140a76396Smrg
436240a76396Smrg
436340a76396Smrg
436440a76396Smrg# POSIX will say in a future version that running "rm -f" with no argument
436540a76396Smrg# is OK; and we want to be able to make that assumption in our Makefile
436640a76396Smrg# recipes.  So use an aggressive probe to check that the usage we want is
436740a76396Smrg# actually supported "in the wild" to an acceptable degree.
436840a76396Smrg# See automake bug#10828.
436940a76396Smrg# To make any issue more visible, cause the running configure to be aborted
437040a76396Smrg# by default if the 'rm' program in use doesn't match our expectations; the
437140a76396Smrg# user can still override this though.
437240a76396Smrgif rm -f && rm -fr && rm -rf; then : OK; else
437340a76396Smrg  cat >&2 <<'END'
437440a76396SmrgOops!
437540a76396Smrg
437640a76396SmrgYour 'rm' program seems unable to run without file operands specified
437740a76396Smrgon the command line, even when the '-f' option is present.  This is contrary
437840a76396Smrgto the behaviour of most rm programs out there, and not conforming with
437940a76396Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
438040a76396Smrg
438140a76396SmrgPlease tell bug-automake@gnu.org about your system, including the value
438240a76396Smrgof your $PATH and any error possibly output before this message.  This
438340a76396Smrgcan help us improve future automake versions.
438440a76396Smrg
438540a76396SmrgEND
438640a76396Smrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
438740a76396Smrg    echo 'Configuration will proceed anyway, since you have set the' >&2
438840a76396Smrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
438940a76396Smrg    echo >&2
439040a76396Smrg  else
439140a76396Smrg    cat >&2 <<'END'
439240a76396SmrgAborting the configuration process, to ensure you take notice of the issue.
439340a76396Smrg
439440a76396SmrgYou can download and install GNU coreutils to get an 'rm' implementation
439540a76396Smrgthat behaves properly: <http://www.gnu.org/software/coreutils/>.
439640a76396Smrg
439740a76396SmrgIf you want to complete the configuration process using your problematic
439840a76396Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
439940a76396Smrgto "yes", and re-run configure.
440040a76396Smrg
440140a76396SmrgEND
440240a76396Smrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
440340a76396Smrg  fi
440440a76396Smrgfi
440540a76396Smrg
440640a76396Smrg
440740a76396Smrg# Require xorg-macros: XORG_MANPAGE_SECTIONS
440840a76396Smrg
440940a76396Smrg
441040a76396Smrg
441140a76396Smrg
441240a76396Smrg
441340a76396Smrg
441440a76396Smrg
441540a76396Smrg
441640a76396Smrg
441740a76396Smrg
441840a76396Smrg
441940a76396Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
442040a76396Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
442140a76396Smrgif ${ac_cv_prog_cc_c99+:} false; then :
442240a76396Smrg  $as_echo_n "(cached) " >&6
442340a76396Smrgelse
442440a76396Smrg  ac_cv_prog_cc_c99=no
442540a76396Smrgac_save_CC=$CC
442640a76396Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
442740a76396Smrg/* end confdefs.h.  */
442840a76396Smrg#include <stdarg.h>
442940a76396Smrg#include <stdbool.h>
443040a76396Smrg#include <stdlib.h>
443140a76396Smrg#include <wchar.h>
443240a76396Smrg#include <stdio.h>
443340a76396Smrg
443440a76396Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
443540a76396Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
443640a76396Smrg#define showlist(...) puts (#__VA_ARGS__)
443740a76396Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
443840a76396Smrgstatic void
443940a76396Smrgtest_varargs_macros (void)
444040a76396Smrg{
444140a76396Smrg  int x = 1234;
444240a76396Smrg  int y = 5678;
444340a76396Smrg  debug ("Flag");
444440a76396Smrg  debug ("X = %d\n", x);
444540a76396Smrg  showlist (The first, second, and third items.);
444640a76396Smrg  report (x>y, "x is %d but y is %d", x, y);
444740a76396Smrg}
444840a76396Smrg
444940a76396Smrg// Check long long types.
445040a76396Smrg#define BIG64 18446744073709551615ull
445140a76396Smrg#define BIG32 4294967295ul
445240a76396Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
445340a76396Smrg#if !BIG_OK
445440a76396Smrg  your preprocessor is broken;
445540a76396Smrg#endif
445640a76396Smrg#if BIG_OK
445740a76396Smrg#else
445840a76396Smrg  your preprocessor is broken;
445940a76396Smrg#endif
446040a76396Smrgstatic long long int bignum = -9223372036854775807LL;
446140a76396Smrgstatic unsigned long long int ubignum = BIG64;
446240a76396Smrg
446340a76396Smrgstruct incomplete_array
446440a76396Smrg{
446540a76396Smrg  int datasize;
446640a76396Smrg  double data[];
446740a76396Smrg};
446840a76396Smrg
446940a76396Smrgstruct named_init {
447040a76396Smrg  int number;
447140a76396Smrg  const wchar_t *name;
447240a76396Smrg  double average;
447340a76396Smrg};
447440a76396Smrg
447540a76396Smrgtypedef const char *ccp;
447640a76396Smrg
447740a76396Smrgstatic inline int
447840a76396Smrgtest_restrict (ccp restrict text)
447940a76396Smrg{
448040a76396Smrg  // See if C++-style comments work.
448140a76396Smrg  // Iterate through items via the restricted pointer.
448240a76396Smrg  // Also check for declarations in for loops.
448340a76396Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
448440a76396Smrg    continue;
448540a76396Smrg  return 0;
448640a76396Smrg}
448740a76396Smrg
448840a76396Smrg// Check varargs and va_copy.
448940a76396Smrgstatic void
449040a76396Smrgtest_varargs (const char *format, ...)
449140a76396Smrg{
449240a76396Smrg  va_list args;
449340a76396Smrg  va_start (args, format);
449440a76396Smrg  va_list args_copy;
449540a76396Smrg  va_copy (args_copy, args);
449640a76396Smrg
449740a76396Smrg  const char *str;
449840a76396Smrg  int number;
449940a76396Smrg  float fnumber;
450040a76396Smrg
450140a76396Smrg  while (*format)
450240a76396Smrg    {
450340a76396Smrg      switch (*format++)
450440a76396Smrg	{
450540a76396Smrg	case 's': // string
450640a76396Smrg	  str = va_arg (args_copy, const char *);
450740a76396Smrg	  break;
450840a76396Smrg	case 'd': // int
450940a76396Smrg	  number = va_arg (args_copy, int);
451040a76396Smrg	  break;
451140a76396Smrg	case 'f': // float
451240a76396Smrg	  fnumber = va_arg (args_copy, double);
451340a76396Smrg	  break;
451440a76396Smrg	default:
451540a76396Smrg	  break;
451640a76396Smrg	}
451740a76396Smrg    }
451840a76396Smrg  va_end (args_copy);
451940a76396Smrg  va_end (args);
452040a76396Smrg}
452140a76396Smrg
452240a76396Smrgint
452340a76396Smrgmain ()
452440a76396Smrg{
452540a76396Smrg
452640a76396Smrg  // Check bool.
452740a76396Smrg  _Bool success = false;
452840a76396Smrg
452940a76396Smrg  // Check restrict.
453040a76396Smrg  if (test_restrict ("String literal") == 0)
453140a76396Smrg    success = true;
453240a76396Smrg  char *restrict newvar = "Another string";
453340a76396Smrg
453440a76396Smrg  // Check varargs.
453540a76396Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
453640a76396Smrg  test_varargs_macros ();
453740a76396Smrg
453840a76396Smrg  // Check flexible array members.
453940a76396Smrg  struct incomplete_array *ia =
454040a76396Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
454140a76396Smrg  ia->datasize = 10;
454240a76396Smrg  for (int i = 0; i < ia->datasize; ++i)
454340a76396Smrg    ia->data[i] = i * 1.234;
454440a76396Smrg
454540a76396Smrg  // Check named initializers.
454640a76396Smrg  struct named_init ni = {
454740a76396Smrg    .number = 34,
454840a76396Smrg    .name = L"Test wide string",
454940a76396Smrg    .average = 543.34343,
455040a76396Smrg  };
455140a76396Smrg
455240a76396Smrg  ni.number = 58;
455340a76396Smrg
455440a76396Smrg  int dynamic_array[ni.number];
455540a76396Smrg  dynamic_array[ni.number - 1] = 543;
455640a76396Smrg
455740a76396Smrg  // work around unused variable warnings
455840a76396Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
455940a76396Smrg	  || dynamic_array[ni.number - 1] != 543);
456040a76396Smrg
456140a76396Smrg  ;
456240a76396Smrg  return 0;
456340a76396Smrg}
456440a76396Smrg_ACEOF
4565feee4651Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
456640a76396Smrgdo
456740a76396Smrg  CC="$ac_save_CC $ac_arg"
456840a76396Smrg  if ac_fn_c_try_compile "$LINENO"; then :
456940a76396Smrg  ac_cv_prog_cc_c99=$ac_arg
457040a76396Smrgfi
457140a76396Smrgrm -f core conftest.err conftest.$ac_objext
457240a76396Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
457340a76396Smrgdone
457440a76396Smrgrm -f conftest.$ac_ext
457540a76396SmrgCC=$ac_save_CC
457640a76396Smrg
457740a76396Smrgfi
457840a76396Smrg# AC_CACHE_VAL
457940a76396Smrgcase "x$ac_cv_prog_cc_c99" in
458040a76396Smrg  x)
458140a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
458240a76396Smrg$as_echo "none needed" >&6; } ;;
458340a76396Smrg  xno)
458440a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
458540a76396Smrg$as_echo "unsupported" >&6; } ;;
458640a76396Smrg  *)
458740a76396Smrg    CC="$CC $ac_cv_prog_cc_c99"
458840a76396Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
458940a76396Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
459040a76396Smrgesac
459140a76396Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
459240a76396Smrg
459340a76396Smrgfi
459440a76396Smrg
459540a76396Smrg
459640a76396Smrg
459740a76396Smrg
459840a76396Smrg
459940a76396Smrg
460040a76396Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
460140a76396Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
460240a76396Smrg  CLANGCC="yes"
460340a76396Smrgelse
460440a76396Smrg  CLANGCC="no"
460540a76396Smrgfi
460640a76396Smrg
460740a76396Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
460840a76396Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
460940a76396Smrg  INTELCC="yes"
461040a76396Smrgelse
461140a76396Smrg  INTELCC="no"
461240a76396Smrgfi
461340a76396Smrg
461440a76396Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
461540a76396Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
461640a76396Smrg  SUNCC="yes"
461740a76396Smrgelse
461840a76396Smrg  SUNCC="no"
461940a76396Smrgfi
462040a76396Smrg
462140a76396Smrg
462240a76396Smrg
462340a76396Smrg
4624feee4651Smrg
4625feee4651Smrg
4626feee4651Smrg
4627feee4651Smrg
4628feee4651Smrg
462940a76396Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
463040a76396Smrg	if test -n "$ac_tool_prefix"; then
463140a76396Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
463240a76396Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
463340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
463440a76396Smrg$as_echo_n "checking for $ac_word... " >&6; }
463540a76396Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
463640a76396Smrg  $as_echo_n "(cached) " >&6
463740a76396Smrgelse
463840a76396Smrg  case $PKG_CONFIG in
463940a76396Smrg  [\\/]* | ?:[\\/]*)
464040a76396Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
464140a76396Smrg  ;;
464240a76396Smrg  *)
464340a76396Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
464440a76396Smrgfor as_dir in $PATH
464540a76396Smrgdo
464640a76396Smrg  IFS=$as_save_IFS
464740a76396Smrg  test -z "$as_dir" && as_dir=.
464840a76396Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4649feee4651Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
465040a76396Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
465140a76396Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
465240a76396Smrg    break 2
465340a76396Smrg  fi
465440a76396Smrgdone
465540a76396Smrg  done
465640a76396SmrgIFS=$as_save_IFS
465740a76396Smrg
465840a76396Smrg  ;;
465940a76396Smrgesac
466040a76396Smrgfi
466140a76396SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
466240a76396Smrgif test -n "$PKG_CONFIG"; then
466340a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
466440a76396Smrg$as_echo "$PKG_CONFIG" >&6; }
466540a76396Smrgelse
466640a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
466740a76396Smrg$as_echo "no" >&6; }
466840a76396Smrgfi
466940a76396Smrg
467040a76396Smrg
467140a76396Smrgfi
467240a76396Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
467340a76396Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
467440a76396Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
467540a76396Smrgset dummy pkg-config; ac_word=$2
467640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
467740a76396Smrg$as_echo_n "checking for $ac_word... " >&6; }
467840a76396Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
467940a76396Smrg  $as_echo_n "(cached) " >&6
468040a76396Smrgelse
468140a76396Smrg  case $ac_pt_PKG_CONFIG in
468240a76396Smrg  [\\/]* | ?:[\\/]*)
468340a76396Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
468440a76396Smrg  ;;
468540a76396Smrg  *)
468640a76396Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
468740a76396Smrgfor as_dir in $PATH
468840a76396Smrgdo
468940a76396Smrg  IFS=$as_save_IFS
469040a76396Smrg  test -z "$as_dir" && as_dir=.
469140a76396Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4692feee4651Smrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
469340a76396Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
469440a76396Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
469540a76396Smrg    break 2
469640a76396Smrg  fi
469740a76396Smrgdone
469840a76396Smrg  done
469940a76396SmrgIFS=$as_save_IFS
470040a76396Smrg
470140a76396Smrg  ;;
470240a76396Smrgesac
470340a76396Smrgfi
470440a76396Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
470540a76396Smrgif test -n "$ac_pt_PKG_CONFIG"; then
470640a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
470740a76396Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
470840a76396Smrgelse
470940a76396Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
471040a76396Smrg$as_echo "no" >&6; }
471140a76396Smrgfi
471240a76396Smrg
471340a76396Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
471440a76396Smrg    PKG_CONFIG=""
471540a76396Smrg  else
471640a76396Smrg    case $cross_compiling:$ac_tool_warned in
471740a76396Smrgyes:)
471840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
471940a76396Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
472040a76396Smrgac_tool_warned=yes ;;
472140a76396Smrgesac
472240a76396Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
472340a76396Smrg  fi
472440a76396Smrgelse
472540a76396Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
472640a76396Smrgfi
472740a76396Smrg
472840a76396Smrgfi
472940a76396Smrgif test -n "$PKG_CONFIG"; then
473040a76396Smrg	_pkg_min_version=0.9.0
473140a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
473240a76396Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
473340a76396Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
473440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
473540a76396Smrg$as_echo "yes" >&6; }
473640a76396Smrg	else
473740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
473840a76396Smrg$as_echo "no" >&6; }
473940a76396Smrg		PKG_CONFIG=""
474040a76396Smrg	fi
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"
4835feee4651Smrg      as_fn_executable_p "$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
4975feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
497640a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
497740a76396Smrg		fi
497840a76396Smrg
4979feee4651Smrg		if test "x$xorg_testset_cc_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
5093feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
509440a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
509540a76396Smrg		fi
509640a76396Smrg
5097feee4651Smrg		if test "x$xorg_testset_cc_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
5211feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
521240a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
521340a76396Smrg		fi
521440a76396Smrg
5215feee4651Smrg		if test "x$xorg_testset_cc_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
5329feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
533040a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
533140a76396Smrg		fi
533240a76396Smrg
5333feee4651Smrg		if test "x$xorg_testset_cc_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; }
5341feee4651Smrg		cacheid=xorg_cv_cc_flag__Wformat_2
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
5378feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
537940a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
538040a76396Smrg		fi
538140a76396Smrg
5382feee4651Smrg		if test "x$xorg_testset_cc_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
5498feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
549940a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
550040a76396Smrg		fi
550140a76396Smrg
5502feee4651Smrg		if test "x$xorg_testset_cc_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
5616feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
561740a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
561840a76396Smrg		fi
561940a76396Smrg
5620feee4651Smrg		if test "x$xorg_testset_cc_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
5734feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
573540a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
573640a76396Smrg		fi
573740a76396Smrg
5738feee4651Smrg		if test "x$xorg_testset_cc_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
5852feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
585340a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
585440a76396Smrg		fi
585540a76396Smrg
5856feee4651Smrg		if test "x$xorg_testset_cc_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
5970feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
597140a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
597240a76396Smrg		fi
597340a76396Smrg
5974feee4651Smrg		if test "x$xorg_testset_cc_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
6018feee4651Smrg	if test $found = "no" ; then
6019feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6020feee4651Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6021feee4651Smrg		fi
6022feee4651Smrg
6023feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6024feee4651Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6025feee4651Smrg		fi
6026feee4651Smrg
6027feee4651Smrg		CFLAGS="$CFLAGS -fd"
6028feee4651Smrg
6029feee4651Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6030feee4651Smrg$as_echo_n "checking if $CC supports -fd... " >&6; }
6031feee4651Smrg		cacheid=xorg_cv_cc_flag__fd
6032feee4651Smrg		if eval \${$cacheid+:} false; then :
6033feee4651Smrg  $as_echo_n "(cached) " >&6
6034feee4651Smrgelse
6035feee4651Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036feee4651Smrg/* end confdefs.h.  */
6037feee4651Smrgint i;
6038feee4651Smrgint
6039feee4651Smrgmain ()
6040feee4651Smrg{
6041feee4651Smrg
6042feee4651Smrg  ;
6043feee4651Smrg  return 0;
6044feee4651Smrg}
6045feee4651Smrg_ACEOF
6046feee4651Smrgif ac_fn_c_try_link "$LINENO"; then :
6047feee4651Smrg  eval $cacheid=yes
6048feee4651Smrgelse
6049feee4651Smrg  eval $cacheid=no
6050feee4651Smrgfi
6051feee4651Smrgrm -f core conftest.err conftest.$ac_objext \
6052feee4651Smrg    conftest$ac_exeext conftest.$ac_ext
6053feee4651Smrgfi
6054feee4651Smrg
6055feee4651Smrg
6056feee4651Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6057feee4651Smrg
6058feee4651Smrg		eval supported=\$$cacheid
6059feee4651Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6060feee4651Smrg$as_echo "$supported" >&6; }
6061feee4651Smrg		if test "$supported" = "yes" ; then
6062feee4651Smrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
6063feee4651Smrg			found="yes"
6064feee4651Smrg		fi
6065feee4651Smrg	fi
6066feee4651Smrg
606740a76396Smrg
606840a76396Smrg
606940a76396Smrg
607040a76396Smrg
607140a76396Smrg
607240a76396Smrg
607340a76396Smrg
607440a76396Smrg
607540a76396Smrg
607640a76396Smrg
607740a76396Smrg
607840a76396Smrg
607940a76396Smrg
608040a76396Smrg
608140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
608240a76396Smrg
608340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
608440a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
608540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
608640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
608740a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
608840a76396Smrg  $as_echo_n "(cached) " >&6
608940a76396Smrgelse
609040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
609140a76396Smrg/* end confdefs.h.  */
609240a76396Smrgint i;
609340a76396Smrg_ACEOF
609440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
609540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
609640a76396Smrgelse
609740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
609840a76396Smrgfi
609940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
610040a76396Smrgfi
610140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
610240a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
610340a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
610440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
610540a76396Smrgfi
610640a76396Smrg
610740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
610840a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
610940a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
611040a76396Smrg	fi
611140a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
611240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
611340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
611440a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
611540a76396Smrg  $as_echo_n "(cached) " >&6
611640a76396Smrgelse
611740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
611840a76396Smrg/* end confdefs.h.  */
611940a76396Smrgint i;
612040a76396Smrg_ACEOF
612140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
612240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
612340a76396Smrgelse
612440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
612540a76396Smrgfi
612640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
612740a76396Smrgfi
612840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
612940a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
613040a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
613140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
613240a76396Smrgfi
613340a76396Smrg
613440a76396Smrgfound="no"
613540a76396Smrg
613640a76396Smrg	if test $found = "no" ; then
6137feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
613840a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
613940a76396Smrg		fi
614040a76396Smrg
6141feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
614240a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
614340a76396Smrg		fi
614440a76396Smrg
614540a76396Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
614640a76396Smrg
614740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
614840a76396Smrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
614940a76396Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
615040a76396Smrg		if eval \${$cacheid+:} false; then :
615140a76396Smrg  $as_echo_n "(cached) " >&6
615240a76396Smrgelse
615340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
615440a76396Smrg/* end confdefs.h.  */
615540a76396Smrgint i;
615640a76396Smrgint
615740a76396Smrgmain ()
615840a76396Smrg{
615940a76396Smrg
616040a76396Smrg  ;
616140a76396Smrg  return 0;
616240a76396Smrg}
616340a76396Smrg_ACEOF
616440a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
616540a76396Smrg  eval $cacheid=yes
616640a76396Smrgelse
616740a76396Smrg  eval $cacheid=no
616840a76396Smrgfi
616940a76396Smrgrm -f core conftest.err conftest.$ac_objext \
617040a76396Smrg    conftest$ac_exeext conftest.$ac_ext
617140a76396Smrgfi
617240a76396Smrg
617340a76396Smrg
617440a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
617540a76396Smrg
617640a76396Smrg		eval supported=\$$cacheid
617740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
617840a76396Smrg$as_echo "$supported" >&6; }
617940a76396Smrg		if test "$supported" = "yes" ; then
618040a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
618140a76396Smrg			found="yes"
618240a76396Smrg		fi
618340a76396Smrg	fi
618440a76396Smrg
618540a76396Smrg
618640a76396Smrg
618740a76396Smrg
618840a76396Smrg
618940a76396Smrg# This chunk adds additional warnings that could catch undesired effects.
619040a76396Smrg
619140a76396Smrg
619240a76396Smrg
619340a76396Smrg
619440a76396Smrg
619540a76396Smrg
619640a76396Smrg
619740a76396Smrg
619840a76396Smrg
619940a76396Smrg
620040a76396Smrg
620140a76396Smrg
620240a76396Smrg
620340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
620440a76396Smrg
620540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
620640a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
620740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
620840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
620940a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
621040a76396Smrg  $as_echo_n "(cached) " >&6
621140a76396Smrgelse
621240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
621340a76396Smrg/* end confdefs.h.  */
621440a76396Smrgint i;
621540a76396Smrg_ACEOF
621640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
621740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
621840a76396Smrgelse
621940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
622040a76396Smrgfi
622140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
622240a76396Smrgfi
622340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
622440a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
622540a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
622640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
622740a76396Smrgfi
622840a76396Smrg
622940a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
623040a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
623140a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
623240a76396Smrg	fi
623340a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
623440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
623540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
623640a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
623740a76396Smrg  $as_echo_n "(cached) " >&6
623840a76396Smrgelse
623940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
624040a76396Smrg/* end confdefs.h.  */
624140a76396Smrgint i;
624240a76396Smrg_ACEOF
624340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
624440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
624540a76396Smrgelse
624640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
624740a76396Smrgfi
624840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
624940a76396Smrgfi
625040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
625140a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
625240a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
625340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
625440a76396Smrgfi
625540a76396Smrg
625640a76396Smrgfound="no"
625740a76396Smrg
625840a76396Smrg	if test $found = "no" ; then
6259feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
626040a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
626140a76396Smrg		fi
626240a76396Smrg
6263feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
626440a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
626540a76396Smrg		fi
626640a76396Smrg
626740a76396Smrg		CFLAGS="$CFLAGS -Wunused"
626840a76396Smrg
626940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
627040a76396Smrg$as_echo_n "checking if $CC supports -Wunused... " >&6; }
627140a76396Smrg		cacheid=xorg_cv_cc_flag__Wunused
627240a76396Smrg		if eval \${$cacheid+:} false; then :
627340a76396Smrg  $as_echo_n "(cached) " >&6
627440a76396Smrgelse
627540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
627640a76396Smrg/* end confdefs.h.  */
627740a76396Smrgint i;
627840a76396Smrgint
627940a76396Smrgmain ()
628040a76396Smrg{
628140a76396Smrg
628240a76396Smrg  ;
628340a76396Smrg  return 0;
628440a76396Smrg}
628540a76396Smrg_ACEOF
628640a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
628740a76396Smrg  eval $cacheid=yes
628840a76396Smrgelse
628940a76396Smrg  eval $cacheid=no
629040a76396Smrgfi
629140a76396Smrgrm -f core conftest.err conftest.$ac_objext \
629240a76396Smrg    conftest$ac_exeext conftest.$ac_ext
629340a76396Smrgfi
629440a76396Smrg
629540a76396Smrg
629640a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
629740a76396Smrg
629840a76396Smrg		eval supported=\$$cacheid
629940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
630040a76396Smrg$as_echo "$supported" >&6; }
630140a76396Smrg		if test "$supported" = "yes" ; then
630240a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
630340a76396Smrg			found="yes"
630440a76396Smrg		fi
630540a76396Smrg	fi
630640a76396Smrg
630740a76396Smrg
630840a76396Smrg
630940a76396Smrg
631040a76396Smrg
631140a76396Smrg
631240a76396Smrg
631340a76396Smrg
631440a76396Smrg
631540a76396Smrg
631640a76396Smrg
631740a76396Smrg
631840a76396Smrg
631940a76396Smrg
632040a76396Smrg
632140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
632240a76396Smrg
632340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
632440a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
632540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
632640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
632740a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
632840a76396Smrg  $as_echo_n "(cached) " >&6
632940a76396Smrgelse
633040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
633140a76396Smrg/* end confdefs.h.  */
633240a76396Smrgint i;
633340a76396Smrg_ACEOF
633440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
633540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
633640a76396Smrgelse
633740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
633840a76396Smrgfi
633940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
634040a76396Smrgfi
634140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
634240a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
634340a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
634440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
634540a76396Smrgfi
634640a76396Smrg
634740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
634840a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
634940a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
635040a76396Smrg	fi
635140a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
635240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
635340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
635440a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
635540a76396Smrg  $as_echo_n "(cached) " >&6
635640a76396Smrgelse
635740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
635840a76396Smrg/* end confdefs.h.  */
635940a76396Smrgint i;
636040a76396Smrg_ACEOF
636140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
636240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
636340a76396Smrgelse
636440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
636540a76396Smrgfi
636640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
636740a76396Smrgfi
636840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
636940a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
637040a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
637140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
637240a76396Smrgfi
637340a76396Smrg
637440a76396Smrgfound="no"
637540a76396Smrg
637640a76396Smrg	if test $found = "no" ; then
6377feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
637840a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
637940a76396Smrg		fi
638040a76396Smrg
6381feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
638240a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
638340a76396Smrg		fi
638440a76396Smrg
638540a76396Smrg		CFLAGS="$CFLAGS -Wuninitialized"
638640a76396Smrg
638740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
638840a76396Smrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
638940a76396Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
639040a76396Smrg		if eval \${$cacheid+:} false; then :
639140a76396Smrg  $as_echo_n "(cached) " >&6
639240a76396Smrgelse
639340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
639440a76396Smrg/* end confdefs.h.  */
639540a76396Smrgint i;
639640a76396Smrgint
639740a76396Smrgmain ()
639840a76396Smrg{
639940a76396Smrg
640040a76396Smrg  ;
640140a76396Smrg  return 0;
640240a76396Smrg}
640340a76396Smrg_ACEOF
640440a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
640540a76396Smrg  eval $cacheid=yes
640640a76396Smrgelse
640740a76396Smrg  eval $cacheid=no
640840a76396Smrgfi
640940a76396Smrgrm -f core conftest.err conftest.$ac_objext \
641040a76396Smrg    conftest$ac_exeext conftest.$ac_ext
641140a76396Smrgfi
641240a76396Smrg
641340a76396Smrg
641440a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
641540a76396Smrg
641640a76396Smrg		eval supported=\$$cacheid
641740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
641840a76396Smrg$as_echo "$supported" >&6; }
641940a76396Smrg		if test "$supported" = "yes" ; then
642040a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
642140a76396Smrg			found="yes"
642240a76396Smrg		fi
642340a76396Smrg	fi
642440a76396Smrg
642540a76396Smrg
642640a76396Smrg
642740a76396Smrg
642840a76396Smrg
642940a76396Smrg
643040a76396Smrg
643140a76396Smrg
643240a76396Smrg
643340a76396Smrg
643440a76396Smrg
643540a76396Smrg
643640a76396Smrg
643740a76396Smrg
643840a76396Smrg
643940a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
644040a76396Smrg
644140a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
644240a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
644340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
644440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
644540a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
644640a76396Smrg  $as_echo_n "(cached) " >&6
644740a76396Smrgelse
644840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
644940a76396Smrg/* end confdefs.h.  */
645040a76396Smrgint i;
645140a76396Smrg_ACEOF
645240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
645340a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
645440a76396Smrgelse
645540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
645640a76396Smrgfi
645740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
645840a76396Smrgfi
645940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
646040a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
646140a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
646240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
646340a76396Smrgfi
646440a76396Smrg
646540a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
646640a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
646740a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
646840a76396Smrg	fi
646940a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
647040a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
647140a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
647240a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
647340a76396Smrg  $as_echo_n "(cached) " >&6
647440a76396Smrgelse
647540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
647640a76396Smrg/* end confdefs.h.  */
647740a76396Smrgint i;
647840a76396Smrg_ACEOF
647940a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
648040a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
648140a76396Smrgelse
648240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
648340a76396Smrgfi
648440a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
648540a76396Smrgfi
648640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
648740a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
648840a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
648940a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
649040a76396Smrgfi
649140a76396Smrg
649240a76396Smrgfound="no"
649340a76396Smrg
649440a76396Smrg	if test $found = "no" ; then
6495feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
649640a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
649740a76396Smrg		fi
649840a76396Smrg
6499feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
650040a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
650140a76396Smrg		fi
650240a76396Smrg
650340a76396Smrg		CFLAGS="$CFLAGS -Wshadow"
650440a76396Smrg
650540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
650640a76396Smrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
650740a76396Smrg		cacheid=xorg_cv_cc_flag__Wshadow
650840a76396Smrg		if eval \${$cacheid+:} false; then :
650940a76396Smrg  $as_echo_n "(cached) " >&6
651040a76396Smrgelse
651140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
651240a76396Smrg/* end confdefs.h.  */
651340a76396Smrgint i;
651440a76396Smrgint
651540a76396Smrgmain ()
651640a76396Smrg{
651740a76396Smrg
651840a76396Smrg  ;
651940a76396Smrg  return 0;
652040a76396Smrg}
652140a76396Smrg_ACEOF
652240a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
652340a76396Smrg  eval $cacheid=yes
652440a76396Smrgelse
652540a76396Smrg  eval $cacheid=no
652640a76396Smrgfi
652740a76396Smrgrm -f core conftest.err conftest.$ac_objext \
652840a76396Smrg    conftest$ac_exeext conftest.$ac_ext
652940a76396Smrgfi
653040a76396Smrg
653140a76396Smrg
653240a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
653340a76396Smrg
653440a76396Smrg		eval supported=\$$cacheid
653540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
653640a76396Smrg$as_echo "$supported" >&6; }
653740a76396Smrg		if test "$supported" = "yes" ; then
653840a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
653940a76396Smrg			found="yes"
654040a76396Smrg		fi
654140a76396Smrg	fi
654240a76396Smrg
654340a76396Smrg
654440a76396Smrg
654540a76396Smrg
654640a76396Smrg
654740a76396Smrg
654840a76396Smrg
654940a76396Smrg
655040a76396Smrg
655140a76396Smrg
655240a76396Smrg
655340a76396Smrg
655440a76396Smrg
655540a76396Smrg
655640a76396Smrg
655740a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
655840a76396Smrg
655940a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
656040a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
656140a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
656240a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
656340a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
656440a76396Smrg  $as_echo_n "(cached) " >&6
656540a76396Smrgelse
656640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
656740a76396Smrg/* end confdefs.h.  */
656840a76396Smrgint i;
656940a76396Smrg_ACEOF
657040a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
657140a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
657240a76396Smrgelse
657340a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
657440a76396Smrgfi
657540a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
657640a76396Smrgfi
657740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
657840a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
657940a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
658040a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
658140a76396Smrgfi
658240a76396Smrg
658340a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
658440a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
658540a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
658640a76396Smrg	fi
658740a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
658840a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
658940a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
659040a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
659140a76396Smrg  $as_echo_n "(cached) " >&6
659240a76396Smrgelse
659340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
659440a76396Smrg/* end confdefs.h.  */
659540a76396Smrgint i;
659640a76396Smrg_ACEOF
659740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
659840a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
659940a76396Smrgelse
660040a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
660140a76396Smrgfi
660240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
660340a76396Smrgfi
660440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
660540a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
660640a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
660740a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
660840a76396Smrgfi
660940a76396Smrg
661040a76396Smrgfound="no"
661140a76396Smrg
661240a76396Smrg	if test $found = "no" ; then
6613feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
661440a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
661540a76396Smrg		fi
661640a76396Smrg
6617feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
661840a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
661940a76396Smrg		fi
662040a76396Smrg
6621feee4651Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
662240a76396Smrg
6623feee4651Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6624feee4651Smrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6625feee4651Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
662640a76396Smrg		if eval \${$cacheid+:} false; then :
662740a76396Smrg  $as_echo_n "(cached) " >&6
662840a76396Smrgelse
662940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
663040a76396Smrg/* end confdefs.h.  */
663140a76396Smrgint i;
663240a76396Smrgint
663340a76396Smrgmain ()
663440a76396Smrg{
663540a76396Smrg
663640a76396Smrg  ;
663740a76396Smrg  return 0;
663840a76396Smrg}
663940a76396Smrg_ACEOF
664040a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
664140a76396Smrg  eval $cacheid=yes
664240a76396Smrgelse
664340a76396Smrg  eval $cacheid=no
664440a76396Smrgfi
664540a76396Smrgrm -f core conftest.err conftest.$ac_objext \
664640a76396Smrg    conftest$ac_exeext conftest.$ac_ext
664740a76396Smrgfi
664840a76396Smrg
664940a76396Smrg
665040a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
665140a76396Smrg
665240a76396Smrg		eval supported=\$$cacheid
665340a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
665440a76396Smrg$as_echo "$supported" >&6; }
665540a76396Smrg		if test "$supported" = "yes" ; then
6656feee4651Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
665740a76396Smrg			found="yes"
665840a76396Smrg		fi
665940a76396Smrg	fi
666040a76396Smrg
666140a76396Smrg
666240a76396Smrg
666340a76396Smrg
666440a76396Smrg
666540a76396Smrg
666640a76396Smrg
666740a76396Smrg
666840a76396Smrg
666940a76396Smrg
667040a76396Smrg
667140a76396Smrg
667240a76396Smrg
667340a76396Smrg
667440a76396Smrg
667540a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
667640a76396Smrg
667740a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
667840a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
667940a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
668040a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
668140a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
668240a76396Smrg  $as_echo_n "(cached) " >&6
668340a76396Smrgelse
668440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
668540a76396Smrg/* end confdefs.h.  */
668640a76396Smrgint i;
668740a76396Smrg_ACEOF
668840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
668940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
669040a76396Smrgelse
669140a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
669240a76396Smrgfi
669340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
669440a76396Smrgfi
669540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
669640a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
669740a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
669840a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
669940a76396Smrgfi
670040a76396Smrg
670140a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
670240a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
670340a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
670440a76396Smrg	fi
670540a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
670640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
670740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
670840a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
670940a76396Smrg  $as_echo_n "(cached) " >&6
671040a76396Smrgelse
671140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
671240a76396Smrg/* end confdefs.h.  */
671340a76396Smrgint i;
671440a76396Smrg_ACEOF
671540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
671640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
671740a76396Smrgelse
671840a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
671940a76396Smrgfi
672040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
672140a76396Smrgfi
672240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
672340a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
672440a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
672540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
672640a76396Smrgfi
672740a76396Smrg
672840a76396Smrgfound="no"
672940a76396Smrg
673040a76396Smrg	if test $found = "no" ; then
6731feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
673240a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
673340a76396Smrg		fi
673440a76396Smrg
6735feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
673640a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
673740a76396Smrg		fi
673840a76396Smrg
6739feee4651Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
674040a76396Smrg
6741feee4651Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6742feee4651Smrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6743feee4651Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
674440a76396Smrg		if eval \${$cacheid+:} false; then :
674540a76396Smrg  $as_echo_n "(cached) " >&6
674640a76396Smrgelse
674740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
674840a76396Smrg/* end confdefs.h.  */
674940a76396Smrgint i;
675040a76396Smrgint
675140a76396Smrgmain ()
675240a76396Smrg{
675340a76396Smrg
675440a76396Smrg  ;
675540a76396Smrg  return 0;
675640a76396Smrg}
675740a76396Smrg_ACEOF
675840a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
675940a76396Smrg  eval $cacheid=yes
676040a76396Smrgelse
676140a76396Smrg  eval $cacheid=no
676240a76396Smrgfi
676340a76396Smrgrm -f core conftest.err conftest.$ac_objext \
676440a76396Smrg    conftest$ac_exeext conftest.$ac_ext
676540a76396Smrgfi
676640a76396Smrg
676740a76396Smrg
676840a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
676940a76396Smrg
677040a76396Smrg		eval supported=\$$cacheid
677140a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
677240a76396Smrg$as_echo "$supported" >&6; }
677340a76396Smrg		if test "$supported" = "yes" ; then
6774feee4651Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
677540a76396Smrg			found="yes"
677640a76396Smrg		fi
677740a76396Smrg	fi
677840a76396Smrg
677940a76396Smrg
678040a76396Smrg
678140a76396Smrg
678240a76396Smrg
678340a76396Smrg
678440a76396Smrg
678540a76396Smrg
678640a76396Smrg
678740a76396Smrg
678840a76396Smrg
678940a76396Smrg
679040a76396Smrg
679140a76396Smrg
679240a76396Smrg
679340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
679440a76396Smrg
679540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
679640a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
679740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
679840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
679940a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
680040a76396Smrg  $as_echo_n "(cached) " >&6
680140a76396Smrgelse
680240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
680340a76396Smrg/* end confdefs.h.  */
680440a76396Smrgint i;
680540a76396Smrg_ACEOF
680640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
680740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
680840a76396Smrgelse
680940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
681040a76396Smrgfi
681140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
681240a76396Smrgfi
681340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
681440a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
681540a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
681640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
681740a76396Smrgfi
681840a76396Smrg
681940a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
682040a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
682140a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
682240a76396Smrg	fi
682340a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
682440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
682540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
682640a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
682740a76396Smrg  $as_echo_n "(cached) " >&6
682840a76396Smrgelse
682940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
683040a76396Smrg/* end confdefs.h.  */
683140a76396Smrgint i;
683240a76396Smrg_ACEOF
683340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
683440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
683540a76396Smrgelse
683640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
683740a76396Smrgfi
683840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
683940a76396Smrgfi
684040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
684140a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
684240a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
684340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
684440a76396Smrgfi
684540a76396Smrg
684640a76396Smrgfound="no"
684740a76396Smrg
684840a76396Smrg	if test $found = "no" ; then
6849feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
685040a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
685140a76396Smrg		fi
685240a76396Smrg
6853feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
685440a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
685540a76396Smrg		fi
685640a76396Smrg
6857feee4651Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
685840a76396Smrg
6859feee4651Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6860feee4651Smrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6861feee4651Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
686240a76396Smrg		if eval \${$cacheid+:} false; then :
686340a76396Smrg  $as_echo_n "(cached) " >&6
686440a76396Smrgelse
686540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
686640a76396Smrg/* end confdefs.h.  */
686740a76396Smrgint i;
686840a76396Smrgint
686940a76396Smrgmain ()
687040a76396Smrg{
687140a76396Smrg
687240a76396Smrg  ;
687340a76396Smrg  return 0;
687440a76396Smrg}
687540a76396Smrg_ACEOF
687640a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
687740a76396Smrg  eval $cacheid=yes
687840a76396Smrgelse
687940a76396Smrg  eval $cacheid=no
688040a76396Smrgfi
688140a76396Smrgrm -f core conftest.err conftest.$ac_objext \
688240a76396Smrg    conftest$ac_exeext conftest.$ac_ext
688340a76396Smrgfi
688440a76396Smrg
688540a76396Smrg
688640a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
688740a76396Smrg
688840a76396Smrg		eval supported=\$$cacheid
688940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
689040a76396Smrg$as_echo "$supported" >&6; }
689140a76396Smrg		if test "$supported" = "yes" ; then
6892feee4651Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
689340a76396Smrg			found="yes"
689440a76396Smrg		fi
689540a76396Smrg	fi
689640a76396Smrg
689740a76396Smrg
689840a76396Smrg
689940a76396Smrg
690040a76396Smrg
690140a76396Smrg
690240a76396Smrg
690340a76396Smrg
690440a76396Smrg
690540a76396Smrg
690640a76396Smrg
690740a76396Smrg
690840a76396Smrg
690940a76396Smrg
691040a76396Smrg
691140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
691240a76396Smrg
691340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
691440a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
691540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
691640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
691740a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
691840a76396Smrg  $as_echo_n "(cached) " >&6
691940a76396Smrgelse
692040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
692140a76396Smrg/* end confdefs.h.  */
692240a76396Smrgint i;
692340a76396Smrg_ACEOF
692440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
692540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
692640a76396Smrgelse
692740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
692840a76396Smrgfi
692940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
693040a76396Smrgfi
693140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
693240a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
693340a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
693440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
693540a76396Smrgfi
693640a76396Smrg
693740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
693840a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
693940a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
694040a76396Smrg	fi
694140a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
694240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
694340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
694440a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
694540a76396Smrg  $as_echo_n "(cached) " >&6
694640a76396Smrgelse
694740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
694840a76396Smrg/* end confdefs.h.  */
694940a76396Smrgint i;
695040a76396Smrg_ACEOF
695140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
695240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
695340a76396Smrgelse
695440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
695540a76396Smrgfi
695640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
695740a76396Smrgfi
695840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
695940a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
696040a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
696140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
696240a76396Smrgfi
696340a76396Smrg
696440a76396Smrgfound="no"
696540a76396Smrg
696640a76396Smrg	if test $found = "no" ; then
6967feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
696840a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
696940a76396Smrg		fi
697040a76396Smrg
6971feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
697240a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
697340a76396Smrg		fi
697440a76396Smrg
6975feee4651Smrg		CFLAGS="$CFLAGS -Wlogical-op"
697640a76396Smrg
6977feee4651Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6978feee4651Smrg$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6979feee4651Smrg		cacheid=xorg_cv_cc_flag__Wlogical_op
698040a76396Smrg		if eval \${$cacheid+:} false; then :
698140a76396Smrg  $as_echo_n "(cached) " >&6
698240a76396Smrgelse
698340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
698440a76396Smrg/* end confdefs.h.  */
698540a76396Smrgint i;
698640a76396Smrgint
698740a76396Smrgmain ()
698840a76396Smrg{
698940a76396Smrg
699040a76396Smrg  ;
699140a76396Smrg  return 0;
699240a76396Smrg}
699340a76396Smrg_ACEOF
699440a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
699540a76396Smrg  eval $cacheid=yes
699640a76396Smrgelse
699740a76396Smrg  eval $cacheid=no
699840a76396Smrgfi
699940a76396Smrgrm -f core conftest.err conftest.$ac_objext \
700040a76396Smrg    conftest$ac_exeext conftest.$ac_ext
700140a76396Smrgfi
700240a76396Smrg
700340a76396Smrg
700440a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
700540a76396Smrg
700640a76396Smrg		eval supported=\$$cacheid
700740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
700840a76396Smrg$as_echo "$supported" >&6; }
700940a76396Smrg		if test "$supported" = "yes" ; then
7010feee4651Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
701140a76396Smrg			found="yes"
701240a76396Smrg		fi
701340a76396Smrg	fi
701440a76396Smrg
701540a76396Smrg
701640a76396Smrg
701740a76396Smrg# These are currently disabled because they are noisy.  They will be enabled
701840a76396Smrg# in the future once the codebase is sufficiently modernized to silence
701940a76396Smrg# them.  For now, I don't want them to drown out the other warnings.
702040a76396Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
702140a76396Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7022feee4651Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
702340a76396Smrg
702440a76396Smrg# Turn some warnings into errors, so we don't accidently get successful builds
702540a76396Smrg# when there are problems that should be fixed.
702640a76396Smrg
702740a76396Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
702840a76396Smrg
702940a76396Smrg
703040a76396Smrg
703140a76396Smrg
703240a76396Smrg
703340a76396Smrg
703440a76396Smrg
703540a76396Smrg
703640a76396Smrg
703740a76396Smrg
703840a76396Smrg
703940a76396Smrg
704040a76396Smrg
704140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
704240a76396Smrg
704340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
704440a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
704540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
704640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
704740a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
704840a76396Smrg  $as_echo_n "(cached) " >&6
704940a76396Smrgelse
705040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
705140a76396Smrg/* end confdefs.h.  */
705240a76396Smrgint i;
705340a76396Smrg_ACEOF
705440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
705540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
705640a76396Smrgelse
705740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
705840a76396Smrgfi
705940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
706040a76396Smrgfi
706140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
706240a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
706340a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
706440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
706540a76396Smrgfi
706640a76396Smrg
706740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
706840a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
706940a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
707040a76396Smrg	fi
707140a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
707240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
707340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
707440a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
707540a76396Smrg  $as_echo_n "(cached) " >&6
707640a76396Smrgelse
707740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
707840a76396Smrg/* end confdefs.h.  */
707940a76396Smrgint i;
708040a76396Smrg_ACEOF
708140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
708240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
708340a76396Smrgelse
708440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
708540a76396Smrgfi
708640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
708740a76396Smrgfi
708840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
708940a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
709040a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
709140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
709240a76396Smrgfi
709340a76396Smrg
709440a76396Smrgfound="no"
709540a76396Smrg
709640a76396Smrg	if test $found = "no" ; then
7097feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
709840a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
709940a76396Smrg		fi
710040a76396Smrg
7101feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
710240a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
710340a76396Smrg		fi
710440a76396Smrg
710540a76396Smrg		CFLAGS="$CFLAGS -Werror=implicit"
710640a76396Smrg
710740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
710840a76396Smrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7109feee4651Smrg		cacheid=xorg_cv_cc_flag__Werror_implicit
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 -Werror=implicit"
714140a76396Smrg			found="yes"
714240a76396Smrg		fi
714340a76396Smrg	fi
714440a76396Smrg
714540a76396Smrg	if test $found = "no" ; then
7146feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
714740a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
714840a76396Smrg		fi
714940a76396Smrg
7150feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
715140a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
715240a76396Smrg		fi
715340a76396Smrg
715440a76396Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
715540a76396Smrg
715640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
715740a76396Smrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7158feee4651Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
715940a76396Smrg		if eval \${$cacheid+:} false; then :
716040a76396Smrg  $as_echo_n "(cached) " >&6
716140a76396Smrgelse
716240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
716340a76396Smrg/* end confdefs.h.  */
716440a76396Smrgint i;
716540a76396Smrgint
716640a76396Smrgmain ()
716740a76396Smrg{
716840a76396Smrg
716940a76396Smrg  ;
717040a76396Smrg  return 0;
717140a76396Smrg}
717240a76396Smrg_ACEOF
717340a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
717440a76396Smrg  eval $cacheid=yes
717540a76396Smrgelse
717640a76396Smrg  eval $cacheid=no
717740a76396Smrgfi
717840a76396Smrgrm -f core conftest.err conftest.$ac_objext \
717940a76396Smrg    conftest$ac_exeext conftest.$ac_ext
718040a76396Smrgfi
718140a76396Smrg
718240a76396Smrg
718340a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
718440a76396Smrg
718540a76396Smrg		eval supported=\$$cacheid
718640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
718740a76396Smrg$as_echo "$supported" >&6; }
718840a76396Smrg		if test "$supported" = "yes" ; then
718940a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
719040a76396Smrg			found="yes"
719140a76396Smrg		fi
719240a76396Smrg	fi
719340a76396Smrg
719440a76396Smrg
719540a76396Smrg
719640a76396Smrg
719740a76396Smrg
719840a76396Smrg
719940a76396Smrg
720040a76396Smrg
720140a76396Smrg
720240a76396Smrg
720340a76396Smrg
720440a76396Smrg
720540a76396Smrg
720640a76396Smrg
720740a76396Smrg
720840a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
720940a76396Smrg
721040a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
721140a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
721240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
721340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
721440a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
721540a76396Smrg  $as_echo_n "(cached) " >&6
721640a76396Smrgelse
721740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
721840a76396Smrg/* end confdefs.h.  */
721940a76396Smrgint i;
722040a76396Smrg_ACEOF
722140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
722240a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
722340a76396Smrgelse
722440a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
722540a76396Smrgfi
722640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
722740a76396Smrgfi
722840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
722940a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
723040a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
723140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
723240a76396Smrgfi
723340a76396Smrg
723440a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
723540a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
723640a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
723740a76396Smrg	fi
723840a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
723940a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
724040a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
724140a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
724240a76396Smrg  $as_echo_n "(cached) " >&6
724340a76396Smrgelse
724440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
724540a76396Smrg/* end confdefs.h.  */
724640a76396Smrgint i;
724740a76396Smrg_ACEOF
724840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
724940a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
725040a76396Smrgelse
725140a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
725240a76396Smrgfi
725340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
725440a76396Smrgfi
725540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
725640a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
725740a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
725840a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
725940a76396Smrgfi
726040a76396Smrg
726140a76396Smrgfound="no"
726240a76396Smrg
726340a76396Smrg	if test $found = "no" ; then
7264feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
726540a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
726640a76396Smrg		fi
726740a76396Smrg
7268feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
726940a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
727040a76396Smrg		fi
727140a76396Smrg
727240a76396Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
727340a76396Smrg
727440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
727540a76396Smrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7276feee4651Smrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
727740a76396Smrg		if eval \${$cacheid+:} false; then :
727840a76396Smrg  $as_echo_n "(cached) " >&6
727940a76396Smrgelse
728040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
728140a76396Smrg/* end confdefs.h.  */
728240a76396Smrgint i;
728340a76396Smrgint
728440a76396Smrgmain ()
728540a76396Smrg{
728640a76396Smrg
728740a76396Smrg  ;
728840a76396Smrg  return 0;
728940a76396Smrg}
729040a76396Smrg_ACEOF
729140a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
729240a76396Smrg  eval $cacheid=yes
729340a76396Smrgelse
729440a76396Smrg  eval $cacheid=no
729540a76396Smrgfi
729640a76396Smrgrm -f core conftest.err conftest.$ac_objext \
729740a76396Smrg    conftest$ac_exeext conftest.$ac_ext
729840a76396Smrgfi
729940a76396Smrg
730040a76396Smrg
730140a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
730240a76396Smrg
730340a76396Smrg		eval supported=\$$cacheid
730440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
730540a76396Smrg$as_echo "$supported" >&6; }
730640a76396Smrg		if test "$supported" = "yes" ; then
730740a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
730840a76396Smrg			found="yes"
730940a76396Smrg		fi
731040a76396Smrg	fi
731140a76396Smrg
731240a76396Smrg
731340a76396Smrg
731440a76396Smrg
731540a76396Smrg
731640a76396Smrg
731740a76396Smrg
731840a76396Smrg
731940a76396Smrg
732040a76396Smrg
732140a76396Smrg
732240a76396Smrg
732340a76396Smrg
732440a76396Smrg
732540a76396Smrg
732640a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
732740a76396Smrg
732840a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
732940a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
733040a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
733140a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
733240a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
733340a76396Smrg  $as_echo_n "(cached) " >&6
733440a76396Smrgelse
733540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
733640a76396Smrg/* end confdefs.h.  */
733740a76396Smrgint i;
733840a76396Smrg_ACEOF
733940a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
734040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
734140a76396Smrgelse
734240a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
734340a76396Smrgfi
734440a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
734540a76396Smrgfi
734640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
734740a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
734840a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
734940a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
735040a76396Smrgfi
735140a76396Smrg
735240a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
735340a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
735440a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
735540a76396Smrg	fi
735640a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
735740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
735840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
735940a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
736040a76396Smrg  $as_echo_n "(cached) " >&6
736140a76396Smrgelse
736240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
736340a76396Smrg/* end confdefs.h.  */
736440a76396Smrgint i;
736540a76396Smrg_ACEOF
736640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
736740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
736840a76396Smrgelse
736940a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
737040a76396Smrgfi
737140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
737240a76396Smrgfi
737340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
737440a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
737540a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
737640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
737740a76396Smrgfi
737840a76396Smrg
737940a76396Smrgfound="no"
738040a76396Smrg
738140a76396Smrg	if test $found = "no" ; then
7382feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
738340a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
738440a76396Smrg		fi
738540a76396Smrg
7386feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
738740a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
738840a76396Smrg		fi
738940a76396Smrg
739040a76396Smrg		CFLAGS="$CFLAGS -Werror=init-self"
739140a76396Smrg
739240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
739340a76396Smrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7394feee4651Smrg		cacheid=xorg_cv_cc_flag__Werror_init_self
739540a76396Smrg		if eval \${$cacheid+:} false; then :
739640a76396Smrg  $as_echo_n "(cached) " >&6
739740a76396Smrgelse
739840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
739940a76396Smrg/* end confdefs.h.  */
740040a76396Smrgint i;
740140a76396Smrgint
740240a76396Smrgmain ()
740340a76396Smrg{
740440a76396Smrg
740540a76396Smrg  ;
740640a76396Smrg  return 0;
740740a76396Smrg}
740840a76396Smrg_ACEOF
740940a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
741040a76396Smrg  eval $cacheid=yes
741140a76396Smrgelse
741240a76396Smrg  eval $cacheid=no
741340a76396Smrgfi
741440a76396Smrgrm -f core conftest.err conftest.$ac_objext \
741540a76396Smrg    conftest$ac_exeext conftest.$ac_ext
741640a76396Smrgfi
741740a76396Smrg
741840a76396Smrg
741940a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
742040a76396Smrg
742140a76396Smrg		eval supported=\$$cacheid
742240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
742340a76396Smrg$as_echo "$supported" >&6; }
742440a76396Smrg		if test "$supported" = "yes" ; then
742540a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
742640a76396Smrg			found="yes"
742740a76396Smrg		fi
742840a76396Smrg	fi
742940a76396Smrg
743040a76396Smrg
743140a76396Smrg
743240a76396Smrg
743340a76396Smrg
743440a76396Smrg
743540a76396Smrg
743640a76396Smrg
743740a76396Smrg
743840a76396Smrg
743940a76396Smrg
744040a76396Smrg
744140a76396Smrg
744240a76396Smrg
744340a76396Smrg
744440a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
744540a76396Smrg
744640a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
744740a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
744840a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
744940a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
745040a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
745140a76396Smrg  $as_echo_n "(cached) " >&6
745240a76396Smrgelse
745340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
745440a76396Smrg/* end confdefs.h.  */
745540a76396Smrgint i;
745640a76396Smrg_ACEOF
745740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
745840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
745940a76396Smrgelse
746040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
746140a76396Smrgfi
746240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
746340a76396Smrgfi
746440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
746540a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
746640a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
746740a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
746840a76396Smrgfi
746940a76396Smrg
747040a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
747140a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
747240a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
747340a76396Smrg	fi
747440a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
747540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
747640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
747740a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
747840a76396Smrg  $as_echo_n "(cached) " >&6
747940a76396Smrgelse
748040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
748140a76396Smrg/* end confdefs.h.  */
748240a76396Smrgint i;
748340a76396Smrg_ACEOF
748440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
748540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
748640a76396Smrgelse
748740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
748840a76396Smrgfi
748940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
749040a76396Smrgfi
749140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
749240a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
749340a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
749440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
749540a76396Smrgfi
749640a76396Smrg
749740a76396Smrgfound="no"
749840a76396Smrg
749940a76396Smrg	if test $found = "no" ; then
7500feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
750140a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
750240a76396Smrg		fi
750340a76396Smrg
7504feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
750540a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
750640a76396Smrg		fi
750740a76396Smrg
750840a76396Smrg		CFLAGS="$CFLAGS -Werror=main"
750940a76396Smrg
751040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
751140a76396Smrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7512feee4651Smrg		cacheid=xorg_cv_cc_flag__Werror_main
751340a76396Smrg		if eval \${$cacheid+:} false; then :
751440a76396Smrg  $as_echo_n "(cached) " >&6
751540a76396Smrgelse
751640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
751740a76396Smrg/* end confdefs.h.  */
751840a76396Smrgint i;
751940a76396Smrgint
752040a76396Smrgmain ()
752140a76396Smrg{
752240a76396Smrg
752340a76396Smrg  ;
752440a76396Smrg  return 0;
752540a76396Smrg}
752640a76396Smrg_ACEOF
752740a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
752840a76396Smrg  eval $cacheid=yes
752940a76396Smrgelse
753040a76396Smrg  eval $cacheid=no
753140a76396Smrgfi
753240a76396Smrgrm -f core conftest.err conftest.$ac_objext \
753340a76396Smrg    conftest$ac_exeext conftest.$ac_ext
753440a76396Smrgfi
753540a76396Smrg
753640a76396Smrg
753740a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
753840a76396Smrg
753940a76396Smrg		eval supported=\$$cacheid
754040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
754140a76396Smrg$as_echo "$supported" >&6; }
754240a76396Smrg		if test "$supported" = "yes" ; then
754340a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
754440a76396Smrg			found="yes"
754540a76396Smrg		fi
754640a76396Smrg	fi
754740a76396Smrg
754840a76396Smrg
754940a76396Smrg
755040a76396Smrg
755140a76396Smrg
755240a76396Smrg
755340a76396Smrg
755440a76396Smrg
755540a76396Smrg
755640a76396Smrg
755740a76396Smrg
755840a76396Smrg
755940a76396Smrg
756040a76396Smrg
756140a76396Smrg
756240a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
756340a76396Smrg
756440a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
756540a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
756640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
756740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
756840a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
756940a76396Smrg  $as_echo_n "(cached) " >&6
757040a76396Smrgelse
757140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
757240a76396Smrg/* end confdefs.h.  */
757340a76396Smrgint i;
757440a76396Smrg_ACEOF
757540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
757640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
757740a76396Smrgelse
757840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
757940a76396Smrgfi
758040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
758140a76396Smrgfi
758240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
758340a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
758440a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
758540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
758640a76396Smrgfi
758740a76396Smrg
758840a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
758940a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
759040a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
759140a76396Smrg	fi
759240a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
759340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
759440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
759540a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
759640a76396Smrg  $as_echo_n "(cached) " >&6
759740a76396Smrgelse
759840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
759940a76396Smrg/* end confdefs.h.  */
760040a76396Smrgint i;
760140a76396Smrg_ACEOF
760240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
760340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
760440a76396Smrgelse
760540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
760640a76396Smrgfi
760740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
760840a76396Smrgfi
760940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
761040a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
761140a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
761240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
761340a76396Smrgfi
761440a76396Smrg
761540a76396Smrgfound="no"
761640a76396Smrg
761740a76396Smrg	if test $found = "no" ; then
7618feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
761940a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
762040a76396Smrg		fi
762140a76396Smrg
7622feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
762340a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
762440a76396Smrg		fi
762540a76396Smrg
762640a76396Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
762740a76396Smrg
762840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
762940a76396Smrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7630feee4651Smrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
763140a76396Smrg		if eval \${$cacheid+:} false; then :
763240a76396Smrg  $as_echo_n "(cached) " >&6
763340a76396Smrgelse
763440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
763540a76396Smrg/* end confdefs.h.  */
763640a76396Smrgint i;
763740a76396Smrgint
763840a76396Smrgmain ()
763940a76396Smrg{
764040a76396Smrg
764140a76396Smrg  ;
764240a76396Smrg  return 0;
764340a76396Smrg}
764440a76396Smrg_ACEOF
764540a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
764640a76396Smrg  eval $cacheid=yes
764740a76396Smrgelse
764840a76396Smrg  eval $cacheid=no
764940a76396Smrgfi
765040a76396Smrgrm -f core conftest.err conftest.$ac_objext \
765140a76396Smrg    conftest$ac_exeext conftest.$ac_ext
765240a76396Smrgfi
765340a76396Smrg
765440a76396Smrg
765540a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
765640a76396Smrg
765740a76396Smrg		eval supported=\$$cacheid
765840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
765940a76396Smrg$as_echo "$supported" >&6; }
766040a76396Smrg		if test "$supported" = "yes" ; then
766140a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
766240a76396Smrg			found="yes"
766340a76396Smrg		fi
766440a76396Smrg	fi
766540a76396Smrg
766640a76396Smrg
766740a76396Smrg
766840a76396Smrg
766940a76396Smrg
767040a76396Smrg
767140a76396Smrg
767240a76396Smrg
767340a76396Smrg
767440a76396Smrg
767540a76396Smrg
767640a76396Smrg
767740a76396Smrg
767840a76396Smrg
767940a76396Smrg
768040a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
768140a76396Smrg
768240a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
768340a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
768440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
768540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
768640a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
768740a76396Smrg  $as_echo_n "(cached) " >&6
768840a76396Smrgelse
768940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
769040a76396Smrg/* end confdefs.h.  */
769140a76396Smrgint i;
769240a76396Smrg_ACEOF
769340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
769440a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
769540a76396Smrgelse
769640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
769740a76396Smrgfi
769840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
769940a76396Smrgfi
770040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
770140a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
770240a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
770340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
770440a76396Smrgfi
770540a76396Smrg
770640a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
770740a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
770840a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
770940a76396Smrg	fi
771040a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
771140a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
771240a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
771340a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
771440a76396Smrg  $as_echo_n "(cached) " >&6
771540a76396Smrgelse
771640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
771740a76396Smrg/* end confdefs.h.  */
771840a76396Smrgint i;
771940a76396Smrg_ACEOF
772040a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
772140a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
772240a76396Smrgelse
772340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
772440a76396Smrgfi
772540a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
772640a76396Smrgfi
772740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
772840a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
772940a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
773040a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
773140a76396Smrgfi
773240a76396Smrg
773340a76396Smrgfound="no"
773440a76396Smrg
773540a76396Smrg	if test $found = "no" ; then
7736feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
773740a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
773840a76396Smrg		fi
773940a76396Smrg
7740feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
774140a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
774240a76396Smrg		fi
774340a76396Smrg
774440a76396Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
774540a76396Smrg
774640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
774740a76396Smrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7748feee4651Smrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
774940a76396Smrg		if eval \${$cacheid+:} false; then :
775040a76396Smrg  $as_echo_n "(cached) " >&6
775140a76396Smrgelse
775240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
775340a76396Smrg/* end confdefs.h.  */
775440a76396Smrgint i;
775540a76396Smrgint
775640a76396Smrgmain ()
775740a76396Smrg{
775840a76396Smrg
775940a76396Smrg  ;
776040a76396Smrg  return 0;
776140a76396Smrg}
776240a76396Smrg_ACEOF
776340a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
776440a76396Smrg  eval $cacheid=yes
776540a76396Smrgelse
776640a76396Smrg  eval $cacheid=no
776740a76396Smrgfi
776840a76396Smrgrm -f core conftest.err conftest.$ac_objext \
776940a76396Smrg    conftest$ac_exeext conftest.$ac_ext
777040a76396Smrgfi
777140a76396Smrg
777240a76396Smrg
777340a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
777440a76396Smrg
777540a76396Smrg		eval supported=\$$cacheid
777640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
777740a76396Smrg$as_echo "$supported" >&6; }
777840a76396Smrg		if test "$supported" = "yes" ; then
777940a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
778040a76396Smrg			found="yes"
778140a76396Smrg		fi
778240a76396Smrg	fi
778340a76396Smrg
778440a76396Smrg
778540a76396Smrg
778640a76396Smrg
778740a76396Smrg
778840a76396Smrg
778940a76396Smrg
779040a76396Smrg
779140a76396Smrg
779240a76396Smrg
779340a76396Smrg
779440a76396Smrg
779540a76396Smrg
779640a76396Smrg
779740a76396Smrg
779840a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
779940a76396Smrg
780040a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
780140a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
780240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
780340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
780440a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
780540a76396Smrg  $as_echo_n "(cached) " >&6
780640a76396Smrgelse
780740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
780840a76396Smrg/* end confdefs.h.  */
780940a76396Smrgint i;
781040a76396Smrg_ACEOF
781140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
781240a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
781340a76396Smrgelse
781440a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
781540a76396Smrgfi
781640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
781740a76396Smrgfi
781840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
781940a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
782040a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
782140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
782240a76396Smrgfi
782340a76396Smrg
782440a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
782540a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
782640a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
782740a76396Smrg	fi
782840a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
782940a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
783040a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
783140a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
783240a76396Smrg  $as_echo_n "(cached) " >&6
783340a76396Smrgelse
783440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783540a76396Smrg/* end confdefs.h.  */
783640a76396Smrgint i;
783740a76396Smrg_ACEOF
783840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
783940a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
784040a76396Smrgelse
784140a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
784240a76396Smrgfi
784340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
784440a76396Smrgfi
784540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
784640a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
784740a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
784840a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
784940a76396Smrgfi
785040a76396Smrg
785140a76396Smrgfound="no"
785240a76396Smrg
785340a76396Smrg	if test $found = "no" ; then
7854feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
785540a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
785640a76396Smrg		fi
785740a76396Smrg
7858feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
785940a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
786040a76396Smrg		fi
786140a76396Smrg
786240a76396Smrg		CFLAGS="$CFLAGS -Werror=return-type"
786340a76396Smrg
786440a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
786540a76396Smrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7866feee4651Smrg		cacheid=xorg_cv_cc_flag__Werror_return_type
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 -Werror=return-type"
789840a76396Smrg			found="yes"
789940a76396Smrg		fi
790040a76396Smrg	fi
790140a76396Smrg
790240a76396Smrg	if test $found = "no" ; then
7903feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
790440a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
790540a76396Smrg		fi
790640a76396Smrg
7907feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
790840a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
790940a76396Smrg		fi
791040a76396Smrg
791140a76396Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
791240a76396Smrg
791340a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
791440a76396Smrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7915feee4651Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
791640a76396Smrg		if eval \${$cacheid+:} false; then :
791740a76396Smrg  $as_echo_n "(cached) " >&6
791840a76396Smrgelse
791940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
792040a76396Smrg/* end confdefs.h.  */
792140a76396Smrgint i;
792240a76396Smrgint
792340a76396Smrgmain ()
792440a76396Smrg{
792540a76396Smrg
792640a76396Smrg  ;
792740a76396Smrg  return 0;
792840a76396Smrg}
792940a76396Smrg_ACEOF
793040a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
793140a76396Smrg  eval $cacheid=yes
793240a76396Smrgelse
793340a76396Smrg  eval $cacheid=no
793440a76396Smrgfi
793540a76396Smrgrm -f core conftest.err conftest.$ac_objext \
793640a76396Smrg    conftest$ac_exeext conftest.$ac_ext
793740a76396Smrgfi
793840a76396Smrg
793940a76396Smrg
794040a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
794140a76396Smrg
794240a76396Smrg		eval supported=\$$cacheid
794340a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
794440a76396Smrg$as_echo "$supported" >&6; }
794540a76396Smrg		if test "$supported" = "yes" ; then
794640a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
794740a76396Smrg			found="yes"
794840a76396Smrg		fi
794940a76396Smrg	fi
795040a76396Smrg
795140a76396Smrg
795240a76396Smrg
795340a76396Smrg
795440a76396Smrg
795540a76396Smrg
795640a76396Smrg
795740a76396Smrg
795840a76396Smrg
795940a76396Smrg
796040a76396Smrg
796140a76396Smrg
796240a76396Smrg
796340a76396Smrg
796440a76396Smrg
796540a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
796640a76396Smrg
796740a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
796840a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
796940a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
797040a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
797140a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
797240a76396Smrg  $as_echo_n "(cached) " >&6
797340a76396Smrgelse
797440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
797540a76396Smrg/* end confdefs.h.  */
797640a76396Smrgint i;
797740a76396Smrg_ACEOF
797840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
797940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
798040a76396Smrgelse
798140a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
798240a76396Smrgfi
798340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
798440a76396Smrgfi
798540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
798640a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
798740a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
798840a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
798940a76396Smrgfi
799040a76396Smrg
799140a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
799240a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
799340a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
799440a76396Smrg	fi
799540a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
799640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
799740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
799840a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
799940a76396Smrg  $as_echo_n "(cached) " >&6
800040a76396Smrgelse
800140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
800240a76396Smrg/* end confdefs.h.  */
800340a76396Smrgint i;
800440a76396Smrg_ACEOF
800540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
800640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
800740a76396Smrgelse
800840a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
800940a76396Smrgfi
801040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
801140a76396Smrgfi
801240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
801340a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
801440a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
801540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
801640a76396Smrgfi
801740a76396Smrg
801840a76396Smrgfound="no"
801940a76396Smrg
802040a76396Smrg	if test $found = "no" ; then
8021feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
802240a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
802340a76396Smrg		fi
802440a76396Smrg
8025feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
802640a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
802740a76396Smrg		fi
802840a76396Smrg
802940a76396Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
803040a76396Smrg
803140a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
803240a76396Smrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8033feee4651Smrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
803440a76396Smrg		if eval \${$cacheid+:} false; then :
803540a76396Smrg  $as_echo_n "(cached) " >&6
803640a76396Smrgelse
803740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
803840a76396Smrg/* end confdefs.h.  */
803940a76396Smrgint i;
804040a76396Smrgint
804140a76396Smrgmain ()
804240a76396Smrg{
804340a76396Smrg
804440a76396Smrg  ;
804540a76396Smrg  return 0;
804640a76396Smrg}
804740a76396Smrg_ACEOF
804840a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
804940a76396Smrg  eval $cacheid=yes
805040a76396Smrgelse
805140a76396Smrg  eval $cacheid=no
805240a76396Smrgfi
805340a76396Smrgrm -f core conftest.err conftest.$ac_objext \
805440a76396Smrg    conftest$ac_exeext conftest.$ac_ext
805540a76396Smrgfi
805640a76396Smrg
805740a76396Smrg
805840a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
805940a76396Smrg
806040a76396Smrg		eval supported=\$$cacheid
806140a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
806240a76396Smrg$as_echo "$supported" >&6; }
806340a76396Smrg		if test "$supported" = "yes" ; then
806440a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
806540a76396Smrg			found="yes"
806640a76396Smrg		fi
806740a76396Smrg	fi
806840a76396Smrg
806940a76396Smrg
807040a76396Smrg
807140a76396Smrg
807240a76396Smrg
807340a76396Smrg
807440a76396Smrg
807540a76396Smrg
807640a76396Smrg
807740a76396Smrg
807840a76396Smrg
807940a76396Smrg
808040a76396Smrg
808140a76396Smrg
808240a76396Smrg
808340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
808440a76396Smrg
808540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
808640a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
808740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
808840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
808940a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
809040a76396Smrg  $as_echo_n "(cached) " >&6
809140a76396Smrgelse
809240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
809340a76396Smrg/* end confdefs.h.  */
809440a76396Smrgint i;
809540a76396Smrg_ACEOF
809640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
809740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
809840a76396Smrgelse
809940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
810040a76396Smrgfi
810140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
810240a76396Smrgfi
810340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
810440a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
810540a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
810640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
810740a76396Smrgfi
810840a76396Smrg
810940a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
811040a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
811140a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
811240a76396Smrg	fi
811340a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
811440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
811540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
811640a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
811740a76396Smrg  $as_echo_n "(cached) " >&6
811840a76396Smrgelse
811940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
812040a76396Smrg/* end confdefs.h.  */
812140a76396Smrgint i;
812240a76396Smrg_ACEOF
812340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
812440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
812540a76396Smrgelse
812640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
812740a76396Smrgfi
812840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
812940a76396Smrgfi
813040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
813140a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
813240a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
813340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
813440a76396Smrgfi
813540a76396Smrg
813640a76396Smrgfound="no"
813740a76396Smrg
813840a76396Smrg	if test $found = "no" ; then
8139feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
814040a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
814140a76396Smrg		fi
814240a76396Smrg
8143feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
814440a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
814540a76396Smrg		fi
814640a76396Smrg
814740a76396Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
814840a76396Smrg
814940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
815040a76396Smrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8151feee4651Smrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
815240a76396Smrg		if eval \${$cacheid+:} false; then :
815340a76396Smrg  $as_echo_n "(cached) " >&6
815440a76396Smrgelse
815540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
815640a76396Smrg/* end confdefs.h.  */
815740a76396Smrgint i;
815840a76396Smrgint
815940a76396Smrgmain ()
816040a76396Smrg{
816140a76396Smrg
816240a76396Smrg  ;
816340a76396Smrg  return 0;
816440a76396Smrg}
816540a76396Smrg_ACEOF
816640a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
816740a76396Smrg  eval $cacheid=yes
816840a76396Smrgelse
816940a76396Smrg  eval $cacheid=no
817040a76396Smrgfi
817140a76396Smrgrm -f core conftest.err conftest.$ac_objext \
817240a76396Smrg    conftest$ac_exeext conftest.$ac_ext
817340a76396Smrgfi
817440a76396Smrg
817540a76396Smrg
817640a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
817740a76396Smrg
817840a76396Smrg		eval supported=\$$cacheid
817940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
818040a76396Smrg$as_echo "$supported" >&6; }
818140a76396Smrg		if test "$supported" = "yes" ; then
818240a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
818340a76396Smrg			found="yes"
818440a76396Smrg		fi
818540a76396Smrg	fi
818640a76396Smrg
818740a76396Smrg
818840a76396Smrg
818940a76396Smrg
819040a76396Smrg
819140a76396Smrg
819240a76396Smrg
819340a76396Smrg
819440a76396Smrg
819540a76396Smrg
819640a76396Smrg
819740a76396Smrg
819840a76396Smrg
819940a76396Smrg
820040a76396Smrg
820140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
820240a76396Smrg
820340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
820440a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
820540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
820640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
820740a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
820840a76396Smrg  $as_echo_n "(cached) " >&6
820940a76396Smrgelse
821040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
821140a76396Smrg/* end confdefs.h.  */
821240a76396Smrgint i;
821340a76396Smrg_ACEOF
821440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
821540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
821640a76396Smrgelse
821740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
821840a76396Smrgfi
821940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
822040a76396Smrgfi
822140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
822240a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
822340a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
822440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
822540a76396Smrgfi
822640a76396Smrg
822740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
822840a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
822940a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
823040a76396Smrg	fi
823140a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
823240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
823340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
823440a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
823540a76396Smrg  $as_echo_n "(cached) " >&6
823640a76396Smrgelse
823740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
823840a76396Smrg/* end confdefs.h.  */
823940a76396Smrgint i;
824040a76396Smrg_ACEOF
824140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
824240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
824340a76396Smrgelse
824440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
824540a76396Smrgfi
824640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
824740a76396Smrgfi
824840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
824940a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
825040a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
825140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
825240a76396Smrgfi
825340a76396Smrg
825440a76396Smrgfound="no"
825540a76396Smrg
825640a76396Smrg	if test $found = "no" ; then
8257feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
825840a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
825940a76396Smrg		fi
826040a76396Smrg
8261feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
826240a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
826340a76396Smrg		fi
826440a76396Smrg
826540a76396Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
826640a76396Smrg
826740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
826840a76396Smrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8269feee4651Smrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
827040a76396Smrg		if eval \${$cacheid+:} false; then :
827140a76396Smrg  $as_echo_n "(cached) " >&6
827240a76396Smrgelse
827340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
827440a76396Smrg/* end confdefs.h.  */
827540a76396Smrgint i;
827640a76396Smrgint
827740a76396Smrgmain ()
827840a76396Smrg{
827940a76396Smrg
828040a76396Smrg  ;
828140a76396Smrg  return 0;
828240a76396Smrg}
828340a76396Smrg_ACEOF
828440a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
828540a76396Smrg  eval $cacheid=yes
828640a76396Smrgelse
828740a76396Smrg  eval $cacheid=no
828840a76396Smrgfi
828940a76396Smrgrm -f core conftest.err conftest.$ac_objext \
829040a76396Smrg    conftest$ac_exeext conftest.$ac_ext
829140a76396Smrgfi
829240a76396Smrg
829340a76396Smrg
829440a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
829540a76396Smrg
829640a76396Smrg		eval supported=\$$cacheid
829740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
829840a76396Smrg$as_echo "$supported" >&6; }
829940a76396Smrg		if test "$supported" = "yes" ; then
830040a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
830140a76396Smrg			found="yes"
830240a76396Smrg		fi
830340a76396Smrg	fi
830440a76396Smrg
830540a76396Smrg
830640a76396Smrg
830740a76396Smrg
830840a76396Smrg
830940a76396Smrg
831040a76396Smrg
831140a76396Smrg
831240a76396Smrg
831340a76396Smrg
831440a76396Smrg
831540a76396Smrg
831640a76396Smrg
831740a76396Smrg
831840a76396Smrg
831940a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
832040a76396Smrg
832140a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
832240a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
832340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
832440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
832540a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
832640a76396Smrg  $as_echo_n "(cached) " >&6
832740a76396Smrgelse
832840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
832940a76396Smrg/* end confdefs.h.  */
833040a76396Smrgint i;
833140a76396Smrg_ACEOF
833240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
833340a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
833440a76396Smrgelse
833540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
833640a76396Smrgfi
833740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
833840a76396Smrgfi
833940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
834040a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
834140a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
834240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
834340a76396Smrgfi
834440a76396Smrg
834540a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
834640a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
834740a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
834840a76396Smrg	fi
834940a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
835040a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
835140a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
835240a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
835340a76396Smrg  $as_echo_n "(cached) " >&6
835440a76396Smrgelse
835540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
835640a76396Smrg/* end confdefs.h.  */
835740a76396Smrgint i;
835840a76396Smrg_ACEOF
835940a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
836040a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
836140a76396Smrgelse
836240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
836340a76396Smrgfi
836440a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
836540a76396Smrgfi
836640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
836740a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
836840a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
836940a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
837040a76396Smrgfi
837140a76396Smrg
837240a76396Smrgfound="no"
837340a76396Smrg
837440a76396Smrg	if test $found = "no" ; then
8375feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
837640a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
837740a76396Smrg		fi
837840a76396Smrg
8379feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
838040a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
838140a76396Smrg		fi
838240a76396Smrg
838340a76396Smrg		CFLAGS="$CFLAGS -Werror=address"
838440a76396Smrg
838540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
838640a76396Smrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8387feee4651Smrg		cacheid=xorg_cv_cc_flag__Werror_address
838840a76396Smrg		if eval \${$cacheid+:} false; then :
838940a76396Smrg  $as_echo_n "(cached) " >&6
839040a76396Smrgelse
839140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
839240a76396Smrg/* end confdefs.h.  */
839340a76396Smrgint i;
839440a76396Smrgint
839540a76396Smrgmain ()
839640a76396Smrg{
839740a76396Smrg
839840a76396Smrg  ;
839940a76396Smrg  return 0;
840040a76396Smrg}
840140a76396Smrg_ACEOF
840240a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
840340a76396Smrg  eval $cacheid=yes
840440a76396Smrgelse
840540a76396Smrg  eval $cacheid=no
840640a76396Smrgfi
840740a76396Smrgrm -f core conftest.err conftest.$ac_objext \
840840a76396Smrg    conftest$ac_exeext conftest.$ac_ext
840940a76396Smrgfi
841040a76396Smrg
841140a76396Smrg
841240a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
841340a76396Smrg
841440a76396Smrg		eval supported=\$$cacheid
841540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
841640a76396Smrg$as_echo "$supported" >&6; }
841740a76396Smrg		if test "$supported" = "yes" ; then
841840a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
841940a76396Smrg			found="yes"
842040a76396Smrg		fi
842140a76396Smrg	fi
842240a76396Smrg
842340a76396Smrg
842440a76396Smrg
842540a76396Smrg
842640a76396Smrg
842740a76396Smrg
842840a76396Smrg
842940a76396Smrg
843040a76396Smrg
843140a76396Smrg
843240a76396Smrg
843340a76396Smrg
843440a76396Smrg
843540a76396Smrg
843640a76396Smrg
843740a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
843840a76396Smrg
843940a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
844040a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
844140a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
844240a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
844340a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
844440a76396Smrg  $as_echo_n "(cached) " >&6
844540a76396Smrgelse
844640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
844740a76396Smrg/* end confdefs.h.  */
844840a76396Smrgint i;
844940a76396Smrg_ACEOF
845040a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
845140a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
845240a76396Smrgelse
845340a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
845440a76396Smrgfi
845540a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
845640a76396Smrgfi
845740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
845840a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
845940a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
846040a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
846140a76396Smrgfi
846240a76396Smrg
846340a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
846440a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
846540a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
846640a76396Smrg	fi
846740a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
846840a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
846940a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
847040a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
847140a76396Smrg  $as_echo_n "(cached) " >&6
847240a76396Smrgelse
847340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
847440a76396Smrg/* end confdefs.h.  */
847540a76396Smrgint i;
847640a76396Smrg_ACEOF
847740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
847840a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
847940a76396Smrgelse
848040a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
848140a76396Smrgfi
848240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
848340a76396Smrgfi
848440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
848540a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
848640a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
848740a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
848840a76396Smrgfi
848940a76396Smrg
849040a76396Smrgfound="no"
849140a76396Smrg
849240a76396Smrg	if test $found = "no" ; then
8493feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
849440a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
849540a76396Smrg		fi
849640a76396Smrg
8497feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
849840a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
849940a76396Smrg		fi
850040a76396Smrg
850140a76396Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
850240a76396Smrg
850340a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
850440a76396Smrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8505feee4651Smrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
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 -Werror=int-to-pointer-cast"
853740a76396Smrg			found="yes"
853840a76396Smrg		fi
853940a76396Smrg	fi
854040a76396Smrg
854140a76396Smrg	if test $found = "no" ; then
8542feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
854340a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
854440a76396Smrg		fi
854540a76396Smrg
8546feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
854740a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
854840a76396Smrg		fi
854940a76396Smrg
855040a76396Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
855140a76396Smrg
855240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
855340a76396Smrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8554feee4651Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
855540a76396Smrg		if eval \${$cacheid+:} false; then :
855640a76396Smrg  $as_echo_n "(cached) " >&6
855740a76396Smrgelse
855840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
855940a76396Smrg/* end confdefs.h.  */
856040a76396Smrgint i;
856140a76396Smrgint
856240a76396Smrgmain ()
856340a76396Smrg{
856440a76396Smrg
856540a76396Smrg  ;
856640a76396Smrg  return 0;
856740a76396Smrg}
856840a76396Smrg_ACEOF
856940a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
857040a76396Smrg  eval $cacheid=yes
857140a76396Smrgelse
857240a76396Smrg  eval $cacheid=no
857340a76396Smrgfi
857440a76396Smrgrm -f core conftest.err conftest.$ac_objext \
857540a76396Smrg    conftest$ac_exeext conftest.$ac_ext
857640a76396Smrgfi
857740a76396Smrg
857840a76396Smrg
857940a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
858040a76396Smrg
858140a76396Smrg		eval supported=\$$cacheid
858240a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
858340a76396Smrg$as_echo "$supported" >&6; }
858440a76396Smrg		if test "$supported" = "yes" ; then
858540a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
858640a76396Smrg			found="yes"
858740a76396Smrg		fi
858840a76396Smrg	fi
858940a76396Smrg
859040a76396Smrg
859140a76396Smrg
859240a76396Smrg
859340a76396Smrg
859440a76396Smrg
859540a76396Smrg
859640a76396Smrg
859740a76396Smrg
859840a76396Smrg
859940a76396Smrg
860040a76396Smrg
860140a76396Smrg
860240a76396Smrg
860340a76396Smrg
860440a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
860540a76396Smrg
860640a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
860740a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
860840a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
860940a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
861040a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
861140a76396Smrg  $as_echo_n "(cached) " >&6
861240a76396Smrgelse
861340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
861440a76396Smrg/* end confdefs.h.  */
861540a76396Smrgint i;
861640a76396Smrg_ACEOF
861740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
861840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
861940a76396Smrgelse
862040a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
862140a76396Smrgfi
862240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
862340a76396Smrgfi
862440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
862540a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
862640a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
862740a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
862840a76396Smrgfi
862940a76396Smrg
863040a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
863140a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
863240a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
863340a76396Smrg	fi
863440a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
863540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
863640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
863740a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
863840a76396Smrg  $as_echo_n "(cached) " >&6
863940a76396Smrgelse
864040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
864140a76396Smrg/* end confdefs.h.  */
864240a76396Smrgint i;
864340a76396Smrg_ACEOF
864440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
864540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
864640a76396Smrgelse
864740a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
864840a76396Smrgfi
864940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
865040a76396Smrgfi
865140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
865240a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
865340a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
865440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
865540a76396Smrgfi
865640a76396Smrg
865740a76396Smrgfound="no"
865840a76396Smrg
865940a76396Smrg	if test $found = "no" ; then
8660feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
866140a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
866240a76396Smrg		fi
866340a76396Smrg
8664feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
866540a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
866640a76396Smrg		fi
866740a76396Smrg
866840a76396Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
866940a76396Smrg
867040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
867140a76396Smrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8672feee4651Smrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
867340a76396Smrg		if eval \${$cacheid+:} false; then :
867440a76396Smrg  $as_echo_n "(cached) " >&6
867540a76396Smrgelse
867640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
867740a76396Smrg/* end confdefs.h.  */
867840a76396Smrgint i;
867940a76396Smrgint
868040a76396Smrgmain ()
868140a76396Smrg{
868240a76396Smrg
868340a76396Smrg  ;
868440a76396Smrg  return 0;
868540a76396Smrg}
868640a76396Smrg_ACEOF
868740a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
868840a76396Smrg  eval $cacheid=yes
868940a76396Smrgelse
869040a76396Smrg  eval $cacheid=no
869140a76396Smrgfi
869240a76396Smrgrm -f core conftest.err conftest.$ac_objext \
869340a76396Smrg    conftest$ac_exeext conftest.$ac_ext
869440a76396Smrgfi
869540a76396Smrg
869640a76396Smrg
869740a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
869840a76396Smrg
869940a76396Smrg		eval supported=\$$cacheid
870040a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
870140a76396Smrg$as_echo "$supported" >&6; }
870240a76396Smrg		if test "$supported" = "yes" ; then
870340a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
870440a76396Smrg			found="yes"
870540a76396Smrg		fi
870640a76396Smrg	fi
870740a76396Smrg
870840a76396Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
870940a76396Smrgelse
871040a76396Smrg{ $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
871140a76396Smrg$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;}
871240a76396Smrg
871340a76396Smrg
871440a76396Smrg
871540a76396Smrg
871640a76396Smrg
871740a76396Smrg
871840a76396Smrg
871940a76396Smrg
872040a76396Smrg
872140a76396Smrg
872240a76396Smrg
872340a76396Smrg
872440a76396Smrg
872540a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
872640a76396Smrg
872740a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
872840a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
872940a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
873040a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
873140a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
873240a76396Smrg  $as_echo_n "(cached) " >&6
873340a76396Smrgelse
873440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
873540a76396Smrg/* end confdefs.h.  */
873640a76396Smrgint i;
873740a76396Smrg_ACEOF
873840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
873940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
874040a76396Smrgelse
874140a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
874240a76396Smrgfi
874340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
874440a76396Smrgfi
874540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
874640a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
874740a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
874840a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
874940a76396Smrgfi
875040a76396Smrg
875140a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
875240a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
875340a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
875440a76396Smrg	fi
875540a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
875640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
875740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
875840a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
875940a76396Smrg  $as_echo_n "(cached) " >&6
876040a76396Smrgelse
876140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
876240a76396Smrg/* end confdefs.h.  */
876340a76396Smrgint i;
876440a76396Smrg_ACEOF
876540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
876640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
876740a76396Smrgelse
876840a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
876940a76396Smrgfi
877040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
877140a76396Smrgfi
877240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
877340a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
877440a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
877540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
877640a76396Smrgfi
877740a76396Smrg
877840a76396Smrgfound="no"
877940a76396Smrg
878040a76396Smrg	if test $found = "no" ; then
8781feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
878240a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
878340a76396Smrg		fi
878440a76396Smrg
8785feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
878640a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
878740a76396Smrg		fi
878840a76396Smrg
878940a76396Smrg		CFLAGS="$CFLAGS -Wimplicit"
879040a76396Smrg
879140a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
879240a76396Smrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
879340a76396Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
879440a76396Smrg		if eval \${$cacheid+:} false; then :
879540a76396Smrg  $as_echo_n "(cached) " >&6
879640a76396Smrgelse
879740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
879840a76396Smrg/* end confdefs.h.  */
879940a76396Smrgint i;
880040a76396Smrgint
880140a76396Smrgmain ()
880240a76396Smrg{
880340a76396Smrg
880440a76396Smrg  ;
880540a76396Smrg  return 0;
880640a76396Smrg}
880740a76396Smrg_ACEOF
880840a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
880940a76396Smrg  eval $cacheid=yes
881040a76396Smrgelse
881140a76396Smrg  eval $cacheid=no
881240a76396Smrgfi
881340a76396Smrgrm -f core conftest.err conftest.$ac_objext \
881440a76396Smrg    conftest$ac_exeext conftest.$ac_ext
881540a76396Smrgfi
881640a76396Smrg
881740a76396Smrg
881840a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
881940a76396Smrg
882040a76396Smrg		eval supported=\$$cacheid
882140a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
882240a76396Smrg$as_echo "$supported" >&6; }
882340a76396Smrg		if test "$supported" = "yes" ; then
882440a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
882540a76396Smrg			found="yes"
882640a76396Smrg		fi
882740a76396Smrg	fi
882840a76396Smrg
882940a76396Smrg
883040a76396Smrg
883140a76396Smrg
883240a76396Smrg
883340a76396Smrg
883440a76396Smrg
883540a76396Smrg
883640a76396Smrg
883740a76396Smrg
883840a76396Smrg
883940a76396Smrg
884040a76396Smrg
884140a76396Smrg
884240a76396Smrg
884340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
884440a76396Smrg
884540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
884640a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
884740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
884840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
884940a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
885040a76396Smrg  $as_echo_n "(cached) " >&6
885140a76396Smrgelse
885240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
885340a76396Smrg/* end confdefs.h.  */
885440a76396Smrgint i;
885540a76396Smrg_ACEOF
885640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
885740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
885840a76396Smrgelse
885940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
886040a76396Smrgfi
886140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
886240a76396Smrgfi
886340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
886440a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
886540a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
886640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
886740a76396Smrgfi
886840a76396Smrg
886940a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
887040a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
887140a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
887240a76396Smrg	fi
887340a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
887440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
887540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
887640a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
887740a76396Smrg  $as_echo_n "(cached) " >&6
887840a76396Smrgelse
887940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
888040a76396Smrg/* end confdefs.h.  */
888140a76396Smrgint i;
888240a76396Smrg_ACEOF
888340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
888440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
888540a76396Smrgelse
888640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
888740a76396Smrgfi
888840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
888940a76396Smrgfi
889040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
889140a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
889240a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
889340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
889440a76396Smrgfi
889540a76396Smrg
889640a76396Smrgfound="no"
889740a76396Smrg
889840a76396Smrg	if test $found = "no" ; then
8899feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
890040a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
890140a76396Smrg		fi
890240a76396Smrg
8903feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
890440a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
890540a76396Smrg		fi
890640a76396Smrg
890740a76396Smrg		CFLAGS="$CFLAGS -Wnonnull"
890840a76396Smrg
890940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
891040a76396Smrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
891140a76396Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
891240a76396Smrg		if eval \${$cacheid+:} false; then :
891340a76396Smrg  $as_echo_n "(cached) " >&6
891440a76396Smrgelse
891540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
891640a76396Smrg/* end confdefs.h.  */
891740a76396Smrgint i;
891840a76396Smrgint
891940a76396Smrgmain ()
892040a76396Smrg{
892140a76396Smrg
892240a76396Smrg  ;
892340a76396Smrg  return 0;
892440a76396Smrg}
892540a76396Smrg_ACEOF
892640a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
892740a76396Smrg  eval $cacheid=yes
892840a76396Smrgelse
892940a76396Smrg  eval $cacheid=no
893040a76396Smrgfi
893140a76396Smrgrm -f core conftest.err conftest.$ac_objext \
893240a76396Smrg    conftest$ac_exeext conftest.$ac_ext
893340a76396Smrgfi
893440a76396Smrg
893540a76396Smrg
893640a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
893740a76396Smrg
893840a76396Smrg		eval supported=\$$cacheid
893940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
894040a76396Smrg$as_echo "$supported" >&6; }
894140a76396Smrg		if test "$supported" = "yes" ; then
894240a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
894340a76396Smrg			found="yes"
894440a76396Smrg		fi
894540a76396Smrg	fi
894640a76396Smrg
894740a76396Smrg
894840a76396Smrg
894940a76396Smrg
895040a76396Smrg
895140a76396Smrg
895240a76396Smrg
895340a76396Smrg
895440a76396Smrg
895540a76396Smrg
895640a76396Smrg
895740a76396Smrg
895840a76396Smrg
895940a76396Smrg
896040a76396Smrg
896140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
896240a76396Smrg
896340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
896440a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
896540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
896640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
896740a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
896840a76396Smrg  $as_echo_n "(cached) " >&6
896940a76396Smrgelse
897040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
897140a76396Smrg/* end confdefs.h.  */
897240a76396Smrgint i;
897340a76396Smrg_ACEOF
897440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
897540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
897640a76396Smrgelse
897740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
897840a76396Smrgfi
897940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
898040a76396Smrgfi
898140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
898240a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
898340a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
898440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
898540a76396Smrgfi
898640a76396Smrg
898740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
898840a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
898940a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
899040a76396Smrg	fi
899140a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
899240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
899340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
899440a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
899540a76396Smrg  $as_echo_n "(cached) " >&6
899640a76396Smrgelse
899740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
899840a76396Smrg/* end confdefs.h.  */
899940a76396Smrgint i;
900040a76396Smrg_ACEOF
900140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
900240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
900340a76396Smrgelse
900440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
900540a76396Smrgfi
900640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
900740a76396Smrgfi
900840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
900940a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
901040a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
901140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
901240a76396Smrgfi
901340a76396Smrg
901440a76396Smrgfound="no"
901540a76396Smrg
901640a76396Smrg	if test $found = "no" ; then
9017feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
901840a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
901940a76396Smrg		fi
902040a76396Smrg
9021feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
902240a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
902340a76396Smrg		fi
902440a76396Smrg
902540a76396Smrg		CFLAGS="$CFLAGS -Winit-self"
902640a76396Smrg
902740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
902840a76396Smrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
902940a76396Smrg		cacheid=xorg_cv_cc_flag__Winit_self
903040a76396Smrg		if eval \${$cacheid+:} false; then :
903140a76396Smrg  $as_echo_n "(cached) " >&6
903240a76396Smrgelse
903340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
903440a76396Smrg/* end confdefs.h.  */
903540a76396Smrgint i;
903640a76396Smrgint
903740a76396Smrgmain ()
903840a76396Smrg{
903940a76396Smrg
904040a76396Smrg  ;
904140a76396Smrg  return 0;
904240a76396Smrg}
904340a76396Smrg_ACEOF
904440a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
904540a76396Smrg  eval $cacheid=yes
904640a76396Smrgelse
904740a76396Smrg  eval $cacheid=no
904840a76396Smrgfi
904940a76396Smrgrm -f core conftest.err conftest.$ac_objext \
905040a76396Smrg    conftest$ac_exeext conftest.$ac_ext
905140a76396Smrgfi
905240a76396Smrg
905340a76396Smrg
905440a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
905540a76396Smrg
905640a76396Smrg		eval supported=\$$cacheid
905740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
905840a76396Smrg$as_echo "$supported" >&6; }
905940a76396Smrg		if test "$supported" = "yes" ; then
906040a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
906140a76396Smrg			found="yes"
906240a76396Smrg		fi
906340a76396Smrg	fi
906440a76396Smrg
906540a76396Smrg
906640a76396Smrg
906740a76396Smrg
906840a76396Smrg
906940a76396Smrg
907040a76396Smrg
907140a76396Smrg
907240a76396Smrg
907340a76396Smrg
907440a76396Smrg
907540a76396Smrg
907640a76396Smrg
907740a76396Smrg
907840a76396Smrg
907940a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
908040a76396Smrg
908140a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
908240a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
908340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
908440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
908540a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
908640a76396Smrg  $as_echo_n "(cached) " >&6
908740a76396Smrgelse
908840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
908940a76396Smrg/* end confdefs.h.  */
909040a76396Smrgint i;
909140a76396Smrg_ACEOF
909240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
909340a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
909440a76396Smrgelse
909540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
909640a76396Smrgfi
909740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
909840a76396Smrgfi
909940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
910040a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
910140a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
910240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
910340a76396Smrgfi
910440a76396Smrg
910540a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
910640a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
910740a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
910840a76396Smrg	fi
910940a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
911040a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
911140a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
911240a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
911340a76396Smrg  $as_echo_n "(cached) " >&6
911440a76396Smrgelse
911540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
911640a76396Smrg/* end confdefs.h.  */
911740a76396Smrgint i;
911840a76396Smrg_ACEOF
911940a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
912040a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
912140a76396Smrgelse
912240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
912340a76396Smrgfi
912440a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
912540a76396Smrgfi
912640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
912740a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
912840a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
912940a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
913040a76396Smrgfi
913140a76396Smrg
913240a76396Smrgfound="no"
913340a76396Smrg
913440a76396Smrg	if test $found = "no" ; then
9135feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
913640a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
913740a76396Smrg		fi
913840a76396Smrg
9139feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
914040a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
914140a76396Smrg		fi
914240a76396Smrg
914340a76396Smrg		CFLAGS="$CFLAGS -Wmain"
914440a76396Smrg
914540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
914640a76396Smrg$as_echo_n "checking if $CC supports -Wmain... " >&6; }
914740a76396Smrg		cacheid=xorg_cv_cc_flag__Wmain
914840a76396Smrg		if eval \${$cacheid+:} false; then :
914940a76396Smrg  $as_echo_n "(cached) " >&6
915040a76396Smrgelse
915140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
915240a76396Smrg/* end confdefs.h.  */
915340a76396Smrgint i;
915440a76396Smrgint
915540a76396Smrgmain ()
915640a76396Smrg{
915740a76396Smrg
915840a76396Smrg  ;
915940a76396Smrg  return 0;
916040a76396Smrg}
916140a76396Smrg_ACEOF
916240a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
916340a76396Smrg  eval $cacheid=yes
916440a76396Smrgelse
916540a76396Smrg  eval $cacheid=no
916640a76396Smrgfi
916740a76396Smrgrm -f core conftest.err conftest.$ac_objext \
916840a76396Smrg    conftest$ac_exeext conftest.$ac_ext
916940a76396Smrgfi
917040a76396Smrg
917140a76396Smrg
917240a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
917340a76396Smrg
917440a76396Smrg		eval supported=\$$cacheid
917540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
917640a76396Smrg$as_echo "$supported" >&6; }
917740a76396Smrg		if test "$supported" = "yes" ; then
917840a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
917940a76396Smrg			found="yes"
918040a76396Smrg		fi
918140a76396Smrg	fi
918240a76396Smrg
918340a76396Smrg
918440a76396Smrg
918540a76396Smrg
918640a76396Smrg
918740a76396Smrg
918840a76396Smrg
918940a76396Smrg
919040a76396Smrg
919140a76396Smrg
919240a76396Smrg
919340a76396Smrg
919440a76396Smrg
919540a76396Smrg
919640a76396Smrg
919740a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
919840a76396Smrg
919940a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
920040a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
920140a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
920240a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
920340a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
920440a76396Smrg  $as_echo_n "(cached) " >&6
920540a76396Smrgelse
920640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
920740a76396Smrg/* end confdefs.h.  */
920840a76396Smrgint i;
920940a76396Smrg_ACEOF
921040a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
921140a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
921240a76396Smrgelse
921340a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
921440a76396Smrgfi
921540a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
921640a76396Smrgfi
921740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
921840a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
921940a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
922040a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
922140a76396Smrgfi
922240a76396Smrg
922340a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
922440a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
922540a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
922640a76396Smrg	fi
922740a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
922840a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
922940a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
923040a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
923140a76396Smrg  $as_echo_n "(cached) " >&6
923240a76396Smrgelse
923340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
923440a76396Smrg/* end confdefs.h.  */
923540a76396Smrgint i;
923640a76396Smrg_ACEOF
923740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
923840a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
923940a76396Smrgelse
924040a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
924140a76396Smrgfi
924240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
924340a76396Smrgfi
924440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
924540a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
924640a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
924740a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
924840a76396Smrgfi
924940a76396Smrg
925040a76396Smrgfound="no"
925140a76396Smrg
925240a76396Smrg	if test $found = "no" ; then
9253feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
925440a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
925540a76396Smrg		fi
925640a76396Smrg
9257feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
925840a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
925940a76396Smrg		fi
926040a76396Smrg
926140a76396Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
926240a76396Smrg
926340a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
926440a76396Smrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
926540a76396Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
926640a76396Smrg		if eval \${$cacheid+:} false; then :
926740a76396Smrg  $as_echo_n "(cached) " >&6
926840a76396Smrgelse
926940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
927040a76396Smrg/* end confdefs.h.  */
927140a76396Smrgint i;
927240a76396Smrgint
927340a76396Smrgmain ()
927440a76396Smrg{
927540a76396Smrg
927640a76396Smrg  ;
927740a76396Smrg  return 0;
927840a76396Smrg}
927940a76396Smrg_ACEOF
928040a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
928140a76396Smrg  eval $cacheid=yes
928240a76396Smrgelse
928340a76396Smrg  eval $cacheid=no
928440a76396Smrgfi
928540a76396Smrgrm -f core conftest.err conftest.$ac_objext \
928640a76396Smrg    conftest$ac_exeext conftest.$ac_ext
928740a76396Smrgfi
928840a76396Smrg
928940a76396Smrg
929040a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
929140a76396Smrg
929240a76396Smrg		eval supported=\$$cacheid
929340a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
929440a76396Smrg$as_echo "$supported" >&6; }
929540a76396Smrg		if test "$supported" = "yes" ; then
929640a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
929740a76396Smrg			found="yes"
929840a76396Smrg		fi
929940a76396Smrg	fi
930040a76396Smrg
930140a76396Smrg
930240a76396Smrg
930340a76396Smrg
930440a76396Smrg
930540a76396Smrg
930640a76396Smrg
930740a76396Smrg
930840a76396Smrg
930940a76396Smrg
931040a76396Smrg
931140a76396Smrg
931240a76396Smrg
931340a76396Smrg
931440a76396Smrg
931540a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
931640a76396Smrg
931740a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
931840a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
931940a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
932040a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
932140a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
932240a76396Smrg  $as_echo_n "(cached) " >&6
932340a76396Smrgelse
932440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
932540a76396Smrg/* end confdefs.h.  */
932640a76396Smrgint i;
932740a76396Smrg_ACEOF
932840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
932940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
933040a76396Smrgelse
933140a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
933240a76396Smrgfi
933340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
933440a76396Smrgfi
933540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
933640a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
933740a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
933840a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
933940a76396Smrgfi
934040a76396Smrg
934140a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
934240a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
934340a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
934440a76396Smrg	fi
934540a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
934640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
934740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
934840a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
934940a76396Smrg  $as_echo_n "(cached) " >&6
935040a76396Smrgelse
935140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
935240a76396Smrg/* end confdefs.h.  */
935340a76396Smrgint i;
935440a76396Smrg_ACEOF
935540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
935640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
935740a76396Smrgelse
935840a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
935940a76396Smrgfi
936040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
936140a76396Smrgfi
936240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
936340a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
936440a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
936540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
936640a76396Smrgfi
936740a76396Smrg
936840a76396Smrgfound="no"
936940a76396Smrg
937040a76396Smrg	if test $found = "no" ; then
9371feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
937240a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
937340a76396Smrg		fi
937440a76396Smrg
9375feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
937640a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
937740a76396Smrg		fi
937840a76396Smrg
937940a76396Smrg		CFLAGS="$CFLAGS -Wsequence-point"
938040a76396Smrg
938140a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
938240a76396Smrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
938340a76396Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
938440a76396Smrg		if eval \${$cacheid+:} false; then :
938540a76396Smrg  $as_echo_n "(cached) " >&6
938640a76396Smrgelse
938740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
938840a76396Smrg/* end confdefs.h.  */
938940a76396Smrgint i;
939040a76396Smrgint
939140a76396Smrgmain ()
939240a76396Smrg{
939340a76396Smrg
939440a76396Smrg  ;
939540a76396Smrg  return 0;
939640a76396Smrg}
939740a76396Smrg_ACEOF
939840a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
939940a76396Smrg  eval $cacheid=yes
940040a76396Smrgelse
940140a76396Smrg  eval $cacheid=no
940240a76396Smrgfi
940340a76396Smrgrm -f core conftest.err conftest.$ac_objext \
940440a76396Smrg    conftest$ac_exeext conftest.$ac_ext
940540a76396Smrgfi
940640a76396Smrg
940740a76396Smrg
940840a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
940940a76396Smrg
941040a76396Smrg		eval supported=\$$cacheid
941140a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
941240a76396Smrg$as_echo "$supported" >&6; }
941340a76396Smrg		if test "$supported" = "yes" ; then
941440a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
941540a76396Smrg			found="yes"
941640a76396Smrg		fi
941740a76396Smrg	fi
941840a76396Smrg
941940a76396Smrg
942040a76396Smrg
942140a76396Smrg
942240a76396Smrg
942340a76396Smrg
942440a76396Smrg
942540a76396Smrg
942640a76396Smrg
942740a76396Smrg
942840a76396Smrg
942940a76396Smrg
943040a76396Smrg
943140a76396Smrg
943240a76396Smrg
943340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
943440a76396Smrg
943540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
943640a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
943740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
943840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
943940a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
944040a76396Smrg  $as_echo_n "(cached) " >&6
944140a76396Smrgelse
944240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944340a76396Smrg/* end confdefs.h.  */
944440a76396Smrgint i;
944540a76396Smrg_ACEOF
944640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
944740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
944840a76396Smrgelse
944940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
945040a76396Smrgfi
945140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
945240a76396Smrgfi
945340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
945440a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
945540a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
945640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
945740a76396Smrgfi
945840a76396Smrg
945940a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
946040a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
946140a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
946240a76396Smrg	fi
946340a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
946440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
946540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
946640a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
946740a76396Smrg  $as_echo_n "(cached) " >&6
946840a76396Smrgelse
946940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
947040a76396Smrg/* end confdefs.h.  */
947140a76396Smrgint i;
947240a76396Smrg_ACEOF
947340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
947440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
947540a76396Smrgelse
947640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
947740a76396Smrgfi
947840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
947940a76396Smrgfi
948040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
948140a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
948240a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
948340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
948440a76396Smrgfi
948540a76396Smrg
948640a76396Smrgfound="no"
948740a76396Smrg
948840a76396Smrg	if test $found = "no" ; then
9489feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
949040a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
949140a76396Smrg		fi
949240a76396Smrg
9493feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
949440a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
949540a76396Smrg		fi
949640a76396Smrg
949740a76396Smrg		CFLAGS="$CFLAGS -Wreturn-type"
949840a76396Smrg
949940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
950040a76396Smrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
950140a76396Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
950240a76396Smrg		if eval \${$cacheid+:} false; then :
950340a76396Smrg  $as_echo_n "(cached) " >&6
950440a76396Smrgelse
950540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
950640a76396Smrg/* end confdefs.h.  */
950740a76396Smrgint i;
950840a76396Smrgint
950940a76396Smrgmain ()
951040a76396Smrg{
951140a76396Smrg
951240a76396Smrg  ;
951340a76396Smrg  return 0;
951440a76396Smrg}
951540a76396Smrg_ACEOF
951640a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
951740a76396Smrg  eval $cacheid=yes
951840a76396Smrgelse
951940a76396Smrg  eval $cacheid=no
952040a76396Smrgfi
952140a76396Smrgrm -f core conftest.err conftest.$ac_objext \
952240a76396Smrg    conftest$ac_exeext conftest.$ac_ext
952340a76396Smrgfi
952440a76396Smrg
952540a76396Smrg
952640a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
952740a76396Smrg
952840a76396Smrg		eval supported=\$$cacheid
952940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
953040a76396Smrg$as_echo "$supported" >&6; }
953140a76396Smrg		if test "$supported" = "yes" ; then
953240a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
953340a76396Smrg			found="yes"
953440a76396Smrg		fi
953540a76396Smrg	fi
953640a76396Smrg
953740a76396Smrg
953840a76396Smrg
953940a76396Smrg
954040a76396Smrg
954140a76396Smrg
954240a76396Smrg
954340a76396Smrg
954440a76396Smrg
954540a76396Smrg
954640a76396Smrg
954740a76396Smrg
954840a76396Smrg
954940a76396Smrg
955040a76396Smrg
955140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
955240a76396Smrg
955340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
955440a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
955540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
955640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
955740a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
955840a76396Smrg  $as_echo_n "(cached) " >&6
955940a76396Smrgelse
956040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
956140a76396Smrg/* end confdefs.h.  */
956240a76396Smrgint i;
956340a76396Smrg_ACEOF
956440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
956540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
956640a76396Smrgelse
956740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
956840a76396Smrgfi
956940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
957040a76396Smrgfi
957140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
957240a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
957340a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
957440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
957540a76396Smrgfi
957640a76396Smrg
957740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
957840a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
957940a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
958040a76396Smrg	fi
958140a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
958240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
958340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
958440a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
958540a76396Smrg  $as_echo_n "(cached) " >&6
958640a76396Smrgelse
958740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
958840a76396Smrg/* end confdefs.h.  */
958940a76396Smrgint i;
959040a76396Smrg_ACEOF
959140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
959240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
959340a76396Smrgelse
959440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
959540a76396Smrgfi
959640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
959740a76396Smrgfi
959840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
959940a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
960040a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
960140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
960240a76396Smrgfi
960340a76396Smrg
960440a76396Smrgfound="no"
960540a76396Smrg
960640a76396Smrg	if test $found = "no" ; then
9607feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
960840a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
960940a76396Smrg		fi
961040a76396Smrg
9611feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
961240a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
961340a76396Smrg		fi
961440a76396Smrg
961540a76396Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
961640a76396Smrg
961740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
961840a76396Smrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
961940a76396Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
962040a76396Smrg		if eval \${$cacheid+:} false; then :
962140a76396Smrg  $as_echo_n "(cached) " >&6
962240a76396Smrgelse
962340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
962440a76396Smrg/* end confdefs.h.  */
962540a76396Smrgint i;
962640a76396Smrgint
962740a76396Smrgmain ()
962840a76396Smrg{
962940a76396Smrg
963040a76396Smrg  ;
963140a76396Smrg  return 0;
963240a76396Smrg}
963340a76396Smrg_ACEOF
963440a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
963540a76396Smrg  eval $cacheid=yes
963640a76396Smrgelse
963740a76396Smrg  eval $cacheid=no
963840a76396Smrgfi
963940a76396Smrgrm -f core conftest.err conftest.$ac_objext \
964040a76396Smrg    conftest$ac_exeext conftest.$ac_ext
964140a76396Smrgfi
964240a76396Smrg
964340a76396Smrg
964440a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
964540a76396Smrg
964640a76396Smrg		eval supported=\$$cacheid
964740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
964840a76396Smrg$as_echo "$supported" >&6; }
964940a76396Smrg		if test "$supported" = "yes" ; then
965040a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
965140a76396Smrg			found="yes"
965240a76396Smrg		fi
965340a76396Smrg	fi
965440a76396Smrg
965540a76396Smrg
965640a76396Smrg
965740a76396Smrg
965840a76396Smrg
965940a76396Smrg
966040a76396Smrg
966140a76396Smrg
966240a76396Smrg
966340a76396Smrg
966440a76396Smrg
966540a76396Smrg
966640a76396Smrg
966740a76396Smrg
966840a76396Smrg
966940a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
967040a76396Smrg
967140a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
967240a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
967340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
967440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
967540a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
967640a76396Smrg  $as_echo_n "(cached) " >&6
967740a76396Smrgelse
967840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
967940a76396Smrg/* end confdefs.h.  */
968040a76396Smrgint i;
968140a76396Smrg_ACEOF
968240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
968340a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
968440a76396Smrgelse
968540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
968640a76396Smrgfi
968740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
968840a76396Smrgfi
968940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
969040a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
969140a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
969240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
969340a76396Smrgfi
969440a76396Smrg
969540a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
969640a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
969740a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
969840a76396Smrg	fi
969940a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
970040a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
970140a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
970240a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
970340a76396Smrg  $as_echo_n "(cached) " >&6
970440a76396Smrgelse
970540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
970640a76396Smrg/* end confdefs.h.  */
970740a76396Smrgint i;
970840a76396Smrg_ACEOF
970940a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
971040a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
971140a76396Smrgelse
971240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
971340a76396Smrgfi
971440a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
971540a76396Smrgfi
971640a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
971740a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
971840a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
971940a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
972040a76396Smrgfi
972140a76396Smrg
972240a76396Smrgfound="no"
972340a76396Smrg
972440a76396Smrg	if test $found = "no" ; then
9725feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
972640a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
972740a76396Smrg		fi
972840a76396Smrg
9729feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
973040a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
973140a76396Smrg		fi
973240a76396Smrg
973340a76396Smrg		CFLAGS="$CFLAGS -Warray-bounds"
973440a76396Smrg
973540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
973640a76396Smrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
973740a76396Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
973840a76396Smrg		if eval \${$cacheid+:} false; then :
973940a76396Smrg  $as_echo_n "(cached) " >&6
974040a76396Smrgelse
974140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
974240a76396Smrg/* end confdefs.h.  */
974340a76396Smrgint i;
974440a76396Smrgint
974540a76396Smrgmain ()
974640a76396Smrg{
974740a76396Smrg
974840a76396Smrg  ;
974940a76396Smrg  return 0;
975040a76396Smrg}
975140a76396Smrg_ACEOF
975240a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
975340a76396Smrg  eval $cacheid=yes
975440a76396Smrgelse
975540a76396Smrg  eval $cacheid=no
975640a76396Smrgfi
975740a76396Smrgrm -f core conftest.err conftest.$ac_objext \
975840a76396Smrg    conftest$ac_exeext conftest.$ac_ext
975940a76396Smrgfi
976040a76396Smrg
976140a76396Smrg
976240a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
976340a76396Smrg
976440a76396Smrg		eval supported=\$$cacheid
976540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
976640a76396Smrg$as_echo "$supported" >&6; }
976740a76396Smrg		if test "$supported" = "yes" ; then
976840a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
976940a76396Smrg			found="yes"
977040a76396Smrg		fi
977140a76396Smrg	fi
977240a76396Smrg
977340a76396Smrg
977440a76396Smrg
977540a76396Smrg
977640a76396Smrg
977740a76396Smrg
977840a76396Smrg
977940a76396Smrg
978040a76396Smrg
978140a76396Smrg
978240a76396Smrg
978340a76396Smrg
978440a76396Smrg
978540a76396Smrg
978640a76396Smrg
978740a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
978840a76396Smrg
978940a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
979040a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
979140a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
979240a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
979340a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
979440a76396Smrg  $as_echo_n "(cached) " >&6
979540a76396Smrgelse
979640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979740a76396Smrg/* end confdefs.h.  */
979840a76396Smrgint i;
979940a76396Smrg_ACEOF
980040a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
980140a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
980240a76396Smrgelse
980340a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
980440a76396Smrgfi
980540a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
980640a76396Smrgfi
980740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
980840a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
980940a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
981040a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
981140a76396Smrgfi
981240a76396Smrg
981340a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
981440a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
981540a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
981640a76396Smrg	fi
981740a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
981840a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
981940a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
982040a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
982140a76396Smrg  $as_echo_n "(cached) " >&6
982240a76396Smrgelse
982340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
982440a76396Smrg/* end confdefs.h.  */
982540a76396Smrgint i;
982640a76396Smrg_ACEOF
982740a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
982840a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
982940a76396Smrgelse
983040a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
983140a76396Smrgfi
983240a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
983340a76396Smrgfi
983440a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
983540a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
983640a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
983740a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
983840a76396Smrgfi
983940a76396Smrg
984040a76396Smrgfound="no"
984140a76396Smrg
984240a76396Smrg	if test $found = "no" ; then
9843feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
984440a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
984540a76396Smrg		fi
984640a76396Smrg
9847feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
984840a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
984940a76396Smrg		fi
985040a76396Smrg
985140a76396Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
985240a76396Smrg
985340a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
985440a76396Smrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
985540a76396Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
985640a76396Smrg		if eval \${$cacheid+:} false; then :
985740a76396Smrg  $as_echo_n "(cached) " >&6
985840a76396Smrgelse
985940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
986040a76396Smrg/* end confdefs.h.  */
986140a76396Smrgint i;
986240a76396Smrgint
986340a76396Smrgmain ()
986440a76396Smrg{
986540a76396Smrg
986640a76396Smrg  ;
986740a76396Smrg  return 0;
986840a76396Smrg}
986940a76396Smrg_ACEOF
987040a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
987140a76396Smrg  eval $cacheid=yes
987240a76396Smrgelse
987340a76396Smrg  eval $cacheid=no
987440a76396Smrgfi
987540a76396Smrgrm -f core conftest.err conftest.$ac_objext \
987640a76396Smrg    conftest$ac_exeext conftest.$ac_ext
987740a76396Smrgfi
987840a76396Smrg
987940a76396Smrg
988040a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
988140a76396Smrg
988240a76396Smrg		eval supported=\$$cacheid
988340a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
988440a76396Smrg$as_echo "$supported" >&6; }
988540a76396Smrg		if test "$supported" = "yes" ; then
988640a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
988740a76396Smrg			found="yes"
988840a76396Smrg		fi
988940a76396Smrg	fi
989040a76396Smrg
989140a76396Smrg
989240a76396Smrg
989340a76396Smrg
989440a76396Smrg
989540a76396Smrg
989640a76396Smrg
989740a76396Smrg
989840a76396Smrg
989940a76396Smrg
990040a76396Smrg
990140a76396Smrg
990240a76396Smrg
990340a76396Smrg
990440a76396Smrg
990540a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
990640a76396Smrg
990740a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
990840a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
990940a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
991040a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
991140a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
991240a76396Smrg  $as_echo_n "(cached) " >&6
991340a76396Smrgelse
991440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
991540a76396Smrg/* end confdefs.h.  */
991640a76396Smrgint i;
991740a76396Smrg_ACEOF
991840a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
991940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
992040a76396Smrgelse
992140a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
992240a76396Smrgfi
992340a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
992440a76396Smrgfi
992540a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
992640a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
992740a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
992840a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
992940a76396Smrgfi
993040a76396Smrg
993140a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
993240a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
993340a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
993440a76396Smrg	fi
993540a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
993640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
993740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
993840a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
993940a76396Smrg  $as_echo_n "(cached) " >&6
994040a76396Smrgelse
994140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
994240a76396Smrg/* end confdefs.h.  */
994340a76396Smrgint i;
994440a76396Smrg_ACEOF
994540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
994640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
994740a76396Smrgelse
994840a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
994940a76396Smrgfi
995040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
995140a76396Smrgfi
995240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
995340a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
995440a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
995540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
995640a76396Smrgfi
995740a76396Smrg
995840a76396Smrgfound="no"
995940a76396Smrg
996040a76396Smrg	if test $found = "no" ; then
9961feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
996240a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
996340a76396Smrg		fi
996440a76396Smrg
9965feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
996640a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
996740a76396Smrg		fi
996840a76396Smrg
996940a76396Smrg		CFLAGS="$CFLAGS -Waddress"
997040a76396Smrg
997140a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
997240a76396Smrg$as_echo_n "checking if $CC supports -Waddress... " >&6; }
997340a76396Smrg		cacheid=xorg_cv_cc_flag__Waddress
997440a76396Smrg		if eval \${$cacheid+:} false; then :
997540a76396Smrg  $as_echo_n "(cached) " >&6
997640a76396Smrgelse
997740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
997840a76396Smrg/* end confdefs.h.  */
997940a76396Smrgint i;
998040a76396Smrgint
998140a76396Smrgmain ()
998240a76396Smrg{
998340a76396Smrg
998440a76396Smrg  ;
998540a76396Smrg  return 0;
998640a76396Smrg}
998740a76396Smrg_ACEOF
998840a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
998940a76396Smrg  eval $cacheid=yes
999040a76396Smrgelse
999140a76396Smrg  eval $cacheid=no
999240a76396Smrgfi
999340a76396Smrgrm -f core conftest.err conftest.$ac_objext \
999440a76396Smrg    conftest$ac_exeext conftest.$ac_ext
999540a76396Smrgfi
999640a76396Smrg
999740a76396Smrg
999840a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
999940a76396Smrg
1000040a76396Smrg		eval supported=\$$cacheid
1000140a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1000240a76396Smrg$as_echo "$supported" >&6; }
1000340a76396Smrg		if test "$supported" = "yes" ; then
1000440a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
1000540a76396Smrg			found="yes"
1000640a76396Smrg		fi
1000740a76396Smrg	fi
1000840a76396Smrg
1000940a76396Smrg
1001040a76396Smrg
1001140a76396Smrg
1001240a76396Smrg
1001340a76396Smrg
1001440a76396Smrg
1001540a76396Smrg
1001640a76396Smrg
1001740a76396Smrg
1001840a76396Smrg
1001940a76396Smrg
1002040a76396Smrg
1002140a76396Smrg
1002240a76396Smrg
1002340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1002440a76396Smrg
1002540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1002640a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1002740a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1002840a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1002940a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1003040a76396Smrg  $as_echo_n "(cached) " >&6
1003140a76396Smrgelse
1003240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1003340a76396Smrg/* end confdefs.h.  */
1003440a76396Smrgint i;
1003540a76396Smrg_ACEOF
1003640a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1003740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1003840a76396Smrgelse
1003940a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1004040a76396Smrgfi
1004140a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1004240a76396Smrgfi
1004340a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1004440a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1004540a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1004640a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1004740a76396Smrgfi
1004840a76396Smrg
1004940a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1005040a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1005140a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1005240a76396Smrg	fi
1005340a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1005440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1005540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1005640a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1005740a76396Smrg  $as_echo_n "(cached) " >&6
1005840a76396Smrgelse
1005940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1006040a76396Smrg/* end confdefs.h.  */
1006140a76396Smrgint i;
1006240a76396Smrg_ACEOF
1006340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1006440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1006540a76396Smrgelse
1006640a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1006740a76396Smrgfi
1006840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1006940a76396Smrgfi
1007040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1007140a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1007240a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1007340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1007440a76396Smrgfi
1007540a76396Smrg
1007640a76396Smrgfound="no"
1007740a76396Smrg
1007840a76396Smrg	if test $found = "no" ; then
10079feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1008040a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1008140a76396Smrg		fi
1008240a76396Smrg
10083feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1008440a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1008540a76396Smrg		fi
1008640a76396Smrg
1008740a76396Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
1008840a76396Smrg
1008940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
1009040a76396Smrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
1009140a76396Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
1009240a76396Smrg		if eval \${$cacheid+:} false; then :
1009340a76396Smrg  $as_echo_n "(cached) " >&6
1009440a76396Smrgelse
1009540a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1009640a76396Smrg/* end confdefs.h.  */
1009740a76396Smrgint i;
1009840a76396Smrgint
1009940a76396Smrgmain ()
1010040a76396Smrg{
1010140a76396Smrg
1010240a76396Smrg  ;
1010340a76396Smrg  return 0;
1010440a76396Smrg}
1010540a76396Smrg_ACEOF
1010640a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
1010740a76396Smrg  eval $cacheid=yes
1010840a76396Smrgelse
1010940a76396Smrg  eval $cacheid=no
1011040a76396Smrgfi
1011140a76396Smrgrm -f core conftest.err conftest.$ac_objext \
1011240a76396Smrg    conftest$ac_exeext conftest.$ac_ext
1011340a76396Smrgfi
1011440a76396Smrg
1011540a76396Smrg
1011640a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1011740a76396Smrg
1011840a76396Smrg		eval supported=\$$cacheid
1011940a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1012040a76396Smrg$as_echo "$supported" >&6; }
1012140a76396Smrg		if test "$supported" = "yes" ; then
1012240a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
1012340a76396Smrg			found="yes"
1012440a76396Smrg		fi
1012540a76396Smrg	fi
1012640a76396Smrg
1012740a76396Smrg
1012840a76396Smrg
1012940a76396Smrg
1013040a76396Smrg
1013140a76396Smrg
1013240a76396Smrg
1013340a76396Smrg
1013440a76396Smrg
1013540a76396Smrg
1013640a76396Smrg
1013740a76396Smrg
1013840a76396Smrg
1013940a76396Smrg
1014040a76396Smrg
1014140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1014240a76396Smrg
1014340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1014440a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1014540a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1014640a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1014740a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1014840a76396Smrg  $as_echo_n "(cached) " >&6
1014940a76396Smrgelse
1015040a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1015140a76396Smrg/* end confdefs.h.  */
1015240a76396Smrgint i;
1015340a76396Smrg_ACEOF
1015440a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1015540a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1015640a76396Smrgelse
1015740a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1015840a76396Smrgfi
1015940a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1016040a76396Smrgfi
1016140a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1016240a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1016340a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1016440a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1016540a76396Smrgfi
1016640a76396Smrg
1016740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1016840a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1016940a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1017040a76396Smrg	fi
1017140a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1017240a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1017340a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1017440a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1017540a76396Smrg  $as_echo_n "(cached) " >&6
1017640a76396Smrgelse
1017740a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1017840a76396Smrg/* end confdefs.h.  */
1017940a76396Smrgint i;
1018040a76396Smrg_ACEOF
1018140a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1018240a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1018340a76396Smrgelse
1018440a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1018540a76396Smrgfi
1018640a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1018740a76396Smrgfi
1018840a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1018940a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1019040a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1019140a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1019240a76396Smrgfi
1019340a76396Smrg
1019440a76396Smrgfound="no"
1019540a76396Smrg
1019640a76396Smrg	if test $found = "no" ; then
10197feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1019840a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1019940a76396Smrg		fi
1020040a76396Smrg
10201feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1020240a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1020340a76396Smrg		fi
1020440a76396Smrg
1020540a76396Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
1020640a76396Smrg
1020740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
1020840a76396Smrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
1020940a76396Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
1021040a76396Smrg		if eval \${$cacheid+:} false; then :
1021140a76396Smrg  $as_echo_n "(cached) " >&6
1021240a76396Smrgelse
1021340a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1021440a76396Smrg/* end confdefs.h.  */
1021540a76396Smrgint i;
1021640a76396Smrgint
1021740a76396Smrgmain ()
1021840a76396Smrg{
1021940a76396Smrg
1022040a76396Smrg  ;
1022140a76396Smrg  return 0;
1022240a76396Smrg}
1022340a76396Smrg_ACEOF
1022440a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
1022540a76396Smrg  eval $cacheid=yes
1022640a76396Smrgelse
1022740a76396Smrg  eval $cacheid=no
1022840a76396Smrgfi
1022940a76396Smrgrm -f core conftest.err conftest.$ac_objext \
1023040a76396Smrg    conftest$ac_exeext conftest.$ac_ext
1023140a76396Smrgfi
1023240a76396Smrg
1023340a76396Smrg
1023440a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1023540a76396Smrg
1023640a76396Smrg		eval supported=\$$cacheid
1023740a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1023840a76396Smrg$as_echo "$supported" >&6; }
1023940a76396Smrg		if test "$supported" = "yes" ; then
1024040a76396Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
1024140a76396Smrg			found="yes"
1024240a76396Smrg		fi
1024340a76396Smrg	fi
1024440a76396Smrg
1024540a76396Smrg
1024640a76396Smrgfi
1024740a76396Smrg
1024840a76396Smrg
1024940a76396Smrg
1025040a76396Smrg
1025140a76396Smrg
1025240a76396Smrg
1025340a76396Smrg
1025440a76396Smrg		CWARNFLAGS="$BASE_CFLAGS"
1025540a76396Smrg		if  test "x$GCC" = xyes ; then
1025640a76396Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
1025740a76396Smrg		fi
1025840a76396Smrg
1025940a76396Smrg
1026040a76396Smrg
1026140a76396Smrg
1026240a76396Smrg
1026340a76396Smrg
1026440a76396Smrg
1026540a76396Smrg
1026640a76396Smrg# Check whether --enable-strict-compilation was given.
1026740a76396Smrgif test "${enable_strict_compilation+set}" = set; then :
1026840a76396Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
1026940a76396Smrgelse
1027040a76396Smrg  STRICT_COMPILE=no
1027140a76396Smrgfi
1027240a76396Smrg
1027340a76396Smrg
1027440a76396Smrg
1027540a76396Smrg
1027640a76396Smrg
1027740a76396Smrg
1027840a76396SmrgSTRICT_CFLAGS=""
1027940a76396Smrg
1028040a76396Smrg
1028140a76396Smrg
1028240a76396Smrg
1028340a76396Smrg
1028440a76396Smrg
1028540a76396Smrg
1028640a76396Smrg
1028740a76396Smrg
1028840a76396Smrg
1028940a76396Smrg
1029040a76396Smrg
1029140a76396Smrg
1029240a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1029340a76396Smrg
1029440a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1029540a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1029640a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1029740a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1029840a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1029940a76396Smrg  $as_echo_n "(cached) " >&6
1030040a76396Smrgelse
1030140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1030240a76396Smrg/* end confdefs.h.  */
1030340a76396Smrgint i;
1030440a76396Smrg_ACEOF
1030540a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1030640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1030740a76396Smrgelse
1030840a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1030940a76396Smrgfi
1031040a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1031140a76396Smrgfi
1031240a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1031340a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1031440a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1031540a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1031640a76396Smrgfi
1031740a76396Smrg
1031840a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1031940a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1032040a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1032140a76396Smrg	fi
1032240a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1032340a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1032440a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1032540a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1032640a76396Smrg  $as_echo_n "(cached) " >&6
1032740a76396Smrgelse
1032840a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1032940a76396Smrg/* end confdefs.h.  */
1033040a76396Smrgint i;
1033140a76396Smrg_ACEOF
1033240a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1033340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1033440a76396Smrgelse
1033540a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1033640a76396Smrgfi
1033740a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1033840a76396Smrgfi
1033940a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1034040a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1034140a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1034240a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1034340a76396Smrgfi
1034440a76396Smrg
1034540a76396Smrgfound="no"
1034640a76396Smrg
1034740a76396Smrg	if test $found = "no" ; then
10348feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1034940a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1035040a76396Smrg		fi
1035140a76396Smrg
10352feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1035340a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1035440a76396Smrg		fi
1035540a76396Smrg
1035640a76396Smrg		CFLAGS="$CFLAGS -pedantic"
1035740a76396Smrg
1035840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
1035940a76396Smrg$as_echo_n "checking if $CC supports -pedantic... " >&6; }
1036040a76396Smrg		cacheid=xorg_cv_cc_flag__pedantic
1036140a76396Smrg		if eval \${$cacheid+:} false; then :
1036240a76396Smrg  $as_echo_n "(cached) " >&6
1036340a76396Smrgelse
1036440a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1036540a76396Smrg/* end confdefs.h.  */
1036640a76396Smrgint i;
1036740a76396Smrgint
1036840a76396Smrgmain ()
1036940a76396Smrg{
1037040a76396Smrg
1037140a76396Smrg  ;
1037240a76396Smrg  return 0;
1037340a76396Smrg}
1037440a76396Smrg_ACEOF
1037540a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
1037640a76396Smrg  eval $cacheid=yes
1037740a76396Smrgelse
1037840a76396Smrg  eval $cacheid=no
1037940a76396Smrgfi
1038040a76396Smrgrm -f core conftest.err conftest.$ac_objext \
1038140a76396Smrg    conftest$ac_exeext conftest.$ac_ext
1038240a76396Smrgfi
1038340a76396Smrg
1038440a76396Smrg
1038540a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1038640a76396Smrg
1038740a76396Smrg		eval supported=\$$cacheid
1038840a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1038940a76396Smrg$as_echo "$supported" >&6; }
1039040a76396Smrg		if test "$supported" = "yes" ; then
1039140a76396Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
1039240a76396Smrg			found="yes"
1039340a76396Smrg		fi
1039440a76396Smrg	fi
1039540a76396Smrg
1039640a76396Smrg
1039740a76396Smrg
1039840a76396Smrg
1039940a76396Smrg
1040040a76396Smrg
1040140a76396Smrg
1040240a76396Smrg
1040340a76396Smrg
1040440a76396Smrg
1040540a76396Smrg
1040640a76396Smrg
1040740a76396Smrg
1040840a76396Smrg
1040940a76396Smrg
1041040a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1041140a76396Smrg
1041240a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1041340a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1041440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1041540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1041640a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1041740a76396Smrg  $as_echo_n "(cached) " >&6
1041840a76396Smrgelse
1041940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1042040a76396Smrg/* end confdefs.h.  */
1042140a76396Smrgint i;
1042240a76396Smrg_ACEOF
1042340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1042440a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1042540a76396Smrgelse
1042640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1042740a76396Smrgfi
1042840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1042940a76396Smrgfi
1043040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1043140a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1043240a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1043340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
104346f5dd5c2Smrgfi
104356600fe5bSmrg
1043640a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1043740a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1043840a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1043940a76396Smrg	fi
1044040a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1044140a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1044240a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1044340a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
104446600fe5bSmrg  $as_echo_n "(cached) " >&6
104456600fe5bSmrgelse
1044640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1044740a76396Smrg/* end confdefs.h.  */
1044840a76396Smrgint i;
1044940a76396Smrg_ACEOF
1045040a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1045140a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1045240a76396Smrgelse
1045340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1045440a76396Smrgfi
1045540a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1045640a76396Smrgfi
1045740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1045840a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1045940a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1046040a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
104616600fe5bSmrgfi
104626600fe5bSmrg
1046340a76396Smrgfound="no"
104646600fe5bSmrg
1046540a76396Smrg	if test $found = "no" ; then
10466feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1046740a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1046840a76396Smrg		fi
1046940a76396Smrg
10470feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1047140a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1047240a76396Smrg		fi
1047340a76396Smrg
1047440a76396Smrg		CFLAGS="$CFLAGS -Werror"
1047540a76396Smrg
1047640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
1047740a76396Smrg$as_echo_n "checking if $CC supports -Werror... " >&6; }
1047840a76396Smrg		cacheid=xorg_cv_cc_flag__Werror
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{
1048840a76396Smrg
1048940a76396Smrg  ;
1049040a76396Smrg  return 0;
1049140a76396Smrg}
1049240a76396Smrg_ACEOF
1049340a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
1049440a76396Smrg  eval $cacheid=yes
104956600fe5bSmrgelse
1049640a76396Smrg  eval $cacheid=no
104976600fe5bSmrgfi
1049840a76396Smrgrm -f core conftest.err conftest.$ac_objext \
1049940a76396Smrg    conftest$ac_exeext conftest.$ac_ext
105006600fe5bSmrgfi
105016600fe5bSmrg
105026600fe5bSmrg
1050340a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1050440a76396Smrg
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 -Werror"
1051040a76396Smrg			found="yes"
1051140a76396Smrg		fi
1051240a76396Smrg	fi
1051340a76396Smrg
1051440a76396Smrg	if test $found = "no" ; then
10515feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1051640a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1051740a76396Smrg		fi
1051840a76396Smrg
10519feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1052040a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1052140a76396Smrg		fi
1052240a76396Smrg
1052340a76396Smrg		CFLAGS="$CFLAGS -errwarn"
1052440a76396Smrg
1052540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
1052640a76396Smrg$as_echo_n "checking if $CC supports -errwarn... " >&6; }
1052740a76396Smrg		cacheid=xorg_cv_cc_flag__errwarn
1052840a76396Smrg		if eval \${$cacheid+:} false; then :
105296600fe5bSmrg  $as_echo_n "(cached) " >&6
105306600fe5bSmrgelse
1053140a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1053240a76396Smrg/* end confdefs.h.  */
1053340a76396Smrgint i;
1053440a76396Smrgint
1053540a76396Smrgmain ()
1053640a76396Smrg{
105376600fe5bSmrg
1053840a76396Smrg  ;
1053940a76396Smrg  return 0;
1054040a76396Smrg}
1054140a76396Smrg_ACEOF
1054240a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
1054340a76396Smrg  eval $cacheid=yes
105446f5dd5c2Smrgelse
1054540a76396Smrg  eval $cacheid=no
105466600fe5bSmrgfi
1054740a76396Smrgrm -f core conftest.err conftest.$ac_objext \
1054840a76396Smrg    conftest$ac_exeext conftest.$ac_ext
105496600fe5bSmrgfi
105506f5dd5c2Smrg
105516f5dd5c2Smrg
1055240a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
105536f5dd5c2Smrg
1055440a76396Smrg		eval supported=\$$cacheid
1055540a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1055640a76396Smrg$as_echo "$supported" >&6; }
1055740a76396Smrg		if test "$supported" = "yes" ; then
1055840a76396Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
1055940a76396Smrg			found="yes"
1056040a76396Smrg		fi
1056140a76396Smrg	fi
105626f5dd5c2Smrg
105636f5dd5c2Smrg
10564ff6cf368Smrg
1056540a76396Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
1056640a76396Smrg# activate it with -Werror, so we add it here explicitly.
105676600fe5bSmrg
105686600fe5bSmrg
105696600fe5bSmrg
105706600fe5bSmrg
105716600fe5bSmrg
105726600fe5bSmrg
10573ff6cf368Smrg
1057440a76396Smrg
1057540a76396Smrg
1057640a76396Smrg
1057740a76396Smrg
1057840a76396Smrg
1057940a76396Smrg
1058040a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1058140a76396Smrg
1058240a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1058340a76396Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1058440a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1058540a76396Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1058640a76396Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1058740a76396Smrg  $as_echo_n "(cached) " >&6
105886600fe5bSmrgelse
1058940a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1059040a76396Smrg/* end confdefs.h.  */
1059140a76396Smrgint i;
1059240a76396Smrg_ACEOF
1059340a76396Smrgif ac_fn_c_try_compile "$LINENO"; then :
1059440a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1059540a76396Smrgelse
1059640a76396Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1059740a76396Smrgfi
1059840a76396Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1059940a76396Smrgfi
1060040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1060140a76396Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1060240a76396Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1060340a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
106046600fe5bSmrgfi
106056600fe5bSmrg
1060640a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1060740a76396Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1060840a76396Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1060940a76396Smrg	fi
1061040a76396Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1061140a76396Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1061240a76396Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1061340a76396Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1061440a76396Smrg  $as_echo_n "(cached) " >&6
1061540a76396Smrgelse
1061640a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617ff6cf368Smrg/* end confdefs.h.  */
1061840a76396Smrgint i;
10619ff6cf368Smrg_ACEOF
10620ff6cf368Smrgif ac_fn_c_try_compile "$LINENO"; then :
1062140a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
106226600fe5bSmrgelse
1062340a76396Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
106246600fe5bSmrgfi
10625ff6cf368Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
106266600fe5bSmrgfi
1062740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1062840a76396Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1062940a76396Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1063040a76396Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1063140a76396Smrgfi
1063240a76396Smrg
1063340a76396Smrgfound="no"
1063440a76396Smrg
1063540a76396Smrg	if test $found = "no" ; then
10636feee4651Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1063740a76396Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1063840a76396Smrg		fi
1063940a76396Smrg
10640feee4651Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1064140a76396Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1064240a76396Smrg		fi
1064340a76396Smrg
1064440a76396Smrg		CFLAGS="$CFLAGS -Werror=attributes"
1064540a76396Smrg
1064640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
1064740a76396Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10648feee4651Smrg		cacheid=xorg_cv_cc_flag__Werror_attributes
1064940a76396Smrg		if eval \${$cacheid+:} false; then :
1065040a76396Smrg  $as_echo_n "(cached) " >&6
1065140a76396Smrgelse
1065240a76396Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1065340a76396Smrg/* end confdefs.h.  */
1065440a76396Smrgint i;
1065540a76396Smrgint
1065640a76396Smrgmain ()
1065740a76396Smrg{
1065840a76396Smrg
1065940a76396Smrg  ;
1066040a76396Smrg  return 0;
1066140a76396Smrg}
1066240a76396Smrg_ACEOF
1066340a76396Smrgif ac_fn_c_try_link "$LINENO"; then :
1066440a76396Smrg  eval $cacheid=yes
1066540a76396Smrgelse
1066640a76396Smrg  eval $cacheid=no
1066740a76396Smrgfi
1066840a76396Smrgrm -f core conftest.err conftest.$ac_objext \
1066940a76396Smrg    conftest$ac_exeext conftest.$ac_ext
1067040a76396Smrgfi
1067140a76396Smrg
1067240a76396Smrg
1067340a76396Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1067440a76396Smrg
1067540a76396Smrg		eval supported=\$$cacheid
1067640a76396Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1067740a76396Smrg$as_echo "$supported" >&6; }
1067840a76396Smrg		if test "$supported" = "yes" ; then
1067940a76396Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
1068040a76396Smrg			found="yes"
1068140a76396Smrg		fi
1068240a76396Smrg	fi
1068340a76396Smrg
1068440a76396Smrg
1068540a76396Smrg
10686ff6cf368Smrgif test "x$STRICT_COMPILE" = "xyes"; then
1068740a76396Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10688ff6cf368Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
106896600fe5bSmrgfi
10690ff6cf368Smrg
106916600fe5bSmrg
106926600fe5bSmrg
106936600fe5bSmrg
106946600fe5bSmrg
1069540a76396Smrg
106966600fe5bSmrgcat >>confdefs.h <<_ACEOF
106976600fe5bSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
106986600fe5bSmrg_ACEOF
106996600fe5bSmrg
107006600fe5bSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
107016600fe5bSmrg	if test "x$PVM" = "x"; then
107026600fe5bSmrg		PVM="0"
107036600fe5bSmrg	fi
107046600fe5bSmrg
107056600fe5bSmrgcat >>confdefs.h <<_ACEOF
107066600fe5bSmrg#define PACKAGE_VERSION_MINOR $PVM
107076600fe5bSmrg_ACEOF
107086600fe5bSmrg
107096600fe5bSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
107106600fe5bSmrg	if test "x$PVP" = "x"; then
107116600fe5bSmrg		PVP="0"
107126600fe5bSmrg	fi
107136600fe5bSmrg
107146600fe5bSmrgcat >>confdefs.h <<_ACEOF
107156600fe5bSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
107166600fe5bSmrg_ACEOF
107176600fe5bSmrg
107186600fe5bSmrg
107196600fe5bSmrg
107206f5dd5c2SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
107216f5dd5c2Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
107226f5dd5c2Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
107236600fe5bSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
107246600fe5bSmrg
107256f5dd5c2Smrg
107266f5dd5c2Smrg
107276f5dd5c2Smrg
107286f5dd5c2Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
107296f5dd5c2SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
107306f5dd5c2Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
107316f5dd5c2Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
107326f5dd5c2Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
107336f5dd5c2Smrg
107346600fe5bSmrg
107356600fe5bSmrg
107366600fe5bSmrg
107376600fe5bSmrg
107386600fe5bSmrg
107396600fe5bSmrgif test x$APP_MAN_SUFFIX = x    ; then
107406600fe5bSmrg    APP_MAN_SUFFIX=1
107416600fe5bSmrgfi
107426600fe5bSmrgif test x$APP_MAN_DIR = x    ; then
107436600fe5bSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
107446600fe5bSmrgfi
107456600fe5bSmrg
107466600fe5bSmrgif test x$LIB_MAN_SUFFIX = x    ; then
107476600fe5bSmrg    LIB_MAN_SUFFIX=3
107486600fe5bSmrgfi
107496600fe5bSmrgif test x$LIB_MAN_DIR = x    ; then
107506600fe5bSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
107516600fe5bSmrgfi
107526600fe5bSmrg
107536600fe5bSmrgif test x$FILE_MAN_SUFFIX = x    ; then
107546600fe5bSmrg    case $host_os in
10755feee4651Smrg	# Solaris 2.0 - 11 use SysV man page sections
10756feee4651Smrg	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10757feee4651Smrg	*)				FILE_MAN_SUFFIX=5  ;;
107586600fe5bSmrg    esac
107596600fe5bSmrgfi
107606600fe5bSmrgif test x$FILE_MAN_DIR = x    ; then
107616600fe5bSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
107626600fe5bSmrgfi
107636600fe5bSmrg
107646600fe5bSmrgif test x$MISC_MAN_SUFFIX = x    ; then
107656600fe5bSmrg    case $host_os in
10766feee4651Smrg	# Solaris 2.0 - 11 use SysV man page sections
10767feee4651Smrg	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10768feee4651Smrg	*)				MISC_MAN_SUFFIX=7  ;;
107696600fe5bSmrg    esac
107706600fe5bSmrgfi
107716600fe5bSmrgif test x$MISC_MAN_DIR = x    ; then
107726600fe5bSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
107736600fe5bSmrgfi
107746600fe5bSmrg
107756600fe5bSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
107766600fe5bSmrg    case $host_os in
10777feee4651Smrg	# Solaris 2.0 - 11 use SysV man page sections
10778feee4651Smrg	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10779feee4651Smrg	*)				DRIVER_MAN_SUFFIX=4  ;;
107806600fe5bSmrg    esac
107816600fe5bSmrgfi
107826600fe5bSmrgif test x$DRIVER_MAN_DIR = x    ; then
107836600fe5bSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
107846600fe5bSmrgfi
107856600fe5bSmrg
107866600fe5bSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
107876600fe5bSmrg    case $host_os in
10788feee4651Smrg	# Solaris 2.0 - 11 use SysV man page sections
10789feee4651Smrg	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10790feee4651Smrg	*)				ADMIN_MAN_SUFFIX=8  ;;
107916600fe5bSmrg    esac
107926600fe5bSmrgfi
107936600fe5bSmrgif test x$ADMIN_MAN_DIR = x    ; then
107946600fe5bSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
107956600fe5bSmrgfi
107966600fe5bSmrg
107976600fe5bSmrg
107986600fe5bSmrg
107996600fe5bSmrg
108006600fe5bSmrg
108016600fe5bSmrg
108026600fe5bSmrg
108036600fe5bSmrg
108046600fe5bSmrg
108056600fe5bSmrg
108066600fe5bSmrg
108076600fe5bSmrg
108086600fe5bSmrg
108096600fe5bSmrg
108106600fe5bSmrg
108116f5dd5c2SmrgXORG_MAN_PAGE="X Version 11"
108126600fe5bSmrg
108136f5dd5c2SmrgMAN_SUBSTS="\
108146f5dd5c2Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
108156f5dd5c2Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
108166f5dd5c2Smrg	-e 's|__xservername__|Xorg|g' \
108176f5dd5c2Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
108186f5dd5c2Smrg	-e 's|__projectroot__|\$(prefix)|g' \
108192ab73d9fSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
108206f5dd5c2Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
108216f5dd5c2Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
108226f5dd5c2Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
108236f5dd5c2Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
108246f5dd5c2Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
108256f5dd5c2Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
108266600fe5bSmrg
10827a0195d5fSmrg
10828a0195d5fSmrg
108296f5dd5c2Smrg# Check whether --enable-silent-rules was given.
108306f5dd5c2Smrgif test "${enable_silent_rules+set}" = set; then :
108316f5dd5c2Smrg  enableval=$enable_silent_rules;
10832a0195d5fSmrgfi
10833a0195d5fSmrg
1083440a76396Smrgcase $enable_silent_rules in # (((
1083540a76396Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
1083640a76396Smrg   no) AM_DEFAULT_VERBOSITY=1;;
1083740a76396Smrg    *) AM_DEFAULT_VERBOSITY=0;;
108386f5dd5c2Smrgesac
1083940a76396Smrgam_make=${MAKE-make}
1084040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
1084140a76396Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
1084240a76396Smrgif ${am_cv_make_support_nested_variables+:} false; then :
1084340a76396Smrg  $as_echo_n "(cached) " >&6
1084440a76396Smrgelse
1084540a76396Smrg  if $as_echo 'TRUE=$(BAR$(V))
1084640a76396SmrgBAR0=false
1084740a76396SmrgBAR1=true
1084840a76396SmrgV=1
1084940a76396Smrgam__doit:
1085040a76396Smrg	@$(TRUE)
1085140a76396Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
1085240a76396Smrg  am_cv_make_support_nested_variables=yes
1085340a76396Smrgelse
1085440a76396Smrg  am_cv_make_support_nested_variables=no
1085540a76396Smrgfi
1085640a76396Smrgfi
1085740a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
1085840a76396Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
1085940a76396Smrgif test $am_cv_make_support_nested_variables = yes; then
1086040a76396Smrg    AM_V='$(V)'
1086140a76396Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1086240a76396Smrgelse
1086340a76396Smrg  AM_V=$AM_DEFAULT_VERBOSITY
1086440a76396Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1086540a76396Smrgfi
108666f5dd5c2SmrgAM_BACKSLASH='\'
10867a0195d5fSmrg
10868a0195d5fSmrg
10869a0195d5fSmrg
108702ab73d9fSmrg# Checks for system functions
108712ab73d9fSmrgfor ac_func in usleep
108722ab73d9fSmrgdo :
108732ab73d9fSmrg  ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
108742ab73d9fSmrgif test "x$ac_cv_func_usleep" = xyes; then :
108752ab73d9fSmrg  cat >>confdefs.h <<_ACEOF
108762ab73d9fSmrg#define HAVE_USLEEP 1
108772ab73d9fSmrg_ACEOF
10878a0195d5fSmrg
108792ab73d9fSmrgfi
10880a0195d5fSmrgdone
10881a0195d5fSmrg
108822ab73d9fSmrg
108832ab73d9fSmrg# Checks for pkg-config packages
108842ab73d9fSmrg
108852ab73d9fSmrgpkg_failed=no
108862ab73d9fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSET" >&5
108872ab73d9fSmrg$as_echo_n "checking for XSET... " >&6; }
108882ab73d9fSmrg
108892ab73d9fSmrgif test -n "$XSET_CFLAGS"; then
108902ab73d9fSmrg    pkg_cv_XSET_CFLAGS="$XSET_CFLAGS"
108912ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
108922ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
10893ff6cf368Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
10894ff6cf368Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
108952ab73d9fSmrg  ac_status=$?
108962ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
108972ab73d9fSmrg  test $ac_status = 0; }; then
10898ff6cf368Smrg  pkg_cv_XSET_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xmuu" 2>/dev/null`
10899feee4651Smrg		      test "x$?" != "x0" && pkg_failed=yes
109002ab73d9fSmrgelse
109012ab73d9fSmrg  pkg_failed=yes
10902a0195d5fSmrgfi
109032ab73d9fSmrg else
109042ab73d9fSmrg    pkg_failed=untried
109056f5dd5c2Smrgfi
109062ab73d9fSmrgif test -n "$XSET_LIBS"; then
109072ab73d9fSmrg    pkg_cv_XSET_LIBS="$XSET_LIBS"
109082ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
109092ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
10910ff6cf368Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
10911ff6cf368Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
109122ab73d9fSmrg  ac_status=$?
109132ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
109142ab73d9fSmrg  test $ac_status = 0; }; then
10915ff6cf368Smrg  pkg_cv_XSET_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xmuu" 2>/dev/null`
10916feee4651Smrg		      test "x$?" != "x0" && pkg_failed=yes
10917a0195d5fSmrgelse
109182ab73d9fSmrg  pkg_failed=yes
109192ab73d9fSmrgfi
109202ab73d9fSmrg else
109212ab73d9fSmrg    pkg_failed=untried
10922a0195d5fSmrgfi
10923a0195d5fSmrg
10924a0195d5fSmrg
109256f5dd5c2Smrg
109262ab73d9fSmrgif test $pkg_failed = yes; then
10927feee4651Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928feee4651Smrg$as_echo "no" >&6; }
109292ab73d9fSmrg
109302ab73d9fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
109312ab73d9fSmrg        _pkg_short_errors_supported=yes
109326f5dd5c2Smrgelse
109332ab73d9fSmrg        _pkg_short_errors_supported=no
109346f5dd5c2Smrgfi
109352ab73d9fSmrg        if test $_pkg_short_errors_supported = yes; then
10936feee4651Smrg	        XSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xmuu" 2>&1`
109372ab73d9fSmrg        else
10938feee4651Smrg	        XSET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xmuu" 2>&1`
109392ab73d9fSmrg        fi
109402ab73d9fSmrg	# Put the nasty error message in config.log where it belongs
109412ab73d9fSmrg	echo "$XSET_PKG_ERRORS" >&5
109426f5dd5c2Smrg
10943ff6cf368Smrg	as_fn_error $? "Package requirements (xproto >= 7.0.17 xmuu) were not met:
109442ab73d9fSmrg
109452ab73d9fSmrg$XSET_PKG_ERRORS
109462ab73d9fSmrg
109472ab73d9fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
109482ab73d9fSmrginstalled software in a non-standard prefix.
109492ab73d9fSmrg
109502ab73d9fSmrgAlternatively, you may set the environment variables XSET_CFLAGS
109512ab73d9fSmrgand XSET_LIBS to avoid the need to call pkg-config.
10952feee4651SmrgSee the pkg-config man page for more details." "$LINENO" 5
109532ab73d9fSmrgelif test $pkg_failed = untried; then
10954feee4651Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955feee4651Smrg$as_echo "no" >&6; }
109562ab73d9fSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
109572ab73d9fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
109582ab73d9fSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
109592ab73d9fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
109602ab73d9fSmrgpath to pkg-config.
109612ab73d9fSmrg
109622ab73d9fSmrgAlternatively, you may set the environment variables XSET_CFLAGS
109632ab73d9fSmrgand XSET_LIBS to avoid the need to call pkg-config.
109642ab73d9fSmrgSee the pkg-config man page for more details.
109652ab73d9fSmrg
109662ab73d9fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
109672ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
109686f5dd5c2Smrgelse
109692ab73d9fSmrg	XSET_CFLAGS=$pkg_cv_XSET_CFLAGS
109702ab73d9fSmrg	XSET_LIBS=$pkg_cv_XSET_LIBS
109712ab73d9fSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
109722ab73d9fSmrg$as_echo "yes" >&6; }
10973feee4651Smrg
109746f5dd5c2Smrgfi
109756f5dd5c2Smrg
109762ab73d9fSmrg# This is used below to allow <X11/Xlib.h> to be found
109772ab73d9fSmrg
109782ab73d9fSmrgpkg_failed=no
109792ab73d9fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_X11" >&5
109802ab73d9fSmrg$as_echo_n "checking for SET_X11... " >&6; }
109816f5dd5c2Smrg
109822ab73d9fSmrgif test -n "$SET_X11_CFLAGS"; then
109832ab73d9fSmrg    pkg_cv_SET_X11_CFLAGS="$SET_X11_CFLAGS"
109842ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
109852ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
109862ab73d9fSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
109872ab73d9fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
109882ab73d9fSmrg  ac_status=$?
109892ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
109902ab73d9fSmrg  test $ac_status = 0; }; then
109912ab73d9fSmrg  pkg_cv_SET_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
10992feee4651Smrg		      test "x$?" != "x0" && pkg_failed=yes
109932ab73d9fSmrgelse
109942ab73d9fSmrg  pkg_failed=yes
109956f5dd5c2Smrgfi
109962ab73d9fSmrg else
109972ab73d9fSmrg    pkg_failed=untried
109986f5dd5c2Smrgfi
109992ab73d9fSmrgif test -n "$SET_X11_LIBS"; then
110002ab73d9fSmrg    pkg_cv_SET_X11_LIBS="$SET_X11_LIBS"
110012ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
110022ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
110032ab73d9fSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
110042ab73d9fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
110052ab73d9fSmrg  ac_status=$?
110062ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
110072ab73d9fSmrg  test $ac_status = 0; }; then
110082ab73d9fSmrg  pkg_cv_SET_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11009feee4651Smrg		      test "x$?" != "x0" && pkg_failed=yes
110106f5dd5c2Smrgelse
110112ab73d9fSmrg  pkg_failed=yes
110122ab73d9fSmrgfi
110132ab73d9fSmrg else
110142ab73d9fSmrg    pkg_failed=untried
110156f5dd5c2Smrgfi
110166f5dd5c2Smrg
110176f5dd5c2Smrg
110182ab73d9fSmrg
110192ab73d9fSmrgif test $pkg_failed = yes; then
11020feee4651Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021feee4651Smrg$as_echo "no" >&6; }
110222ab73d9fSmrg
110232ab73d9fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
110242ab73d9fSmrg        _pkg_short_errors_supported=yes
110252ab73d9fSmrgelse
110262ab73d9fSmrg        _pkg_short_errors_supported=no
11027a0195d5fSmrgfi
11028a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
11029feee4651Smrg	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
11030a0195d5fSmrg        else
11031feee4651Smrg	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
11032a0195d5fSmrg        fi
11033a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
11034a0195d5fSmrg	echo "$SET_X11_PKG_ERRORS" >&5
11035a0195d5fSmrg
110362ab73d9fSmrg	as_fn_error $? "Package requirements (x11) were not met:
11037a0195d5fSmrg
11038a0195d5fSmrg$SET_X11_PKG_ERRORS
11039a0195d5fSmrg
11040a0195d5fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
11041a0195d5fSmrginstalled software in a non-standard prefix.
11042a0195d5fSmrg
11043a0195d5fSmrgAlternatively, you may set the environment variables SET_X11_CFLAGS
11044a0195d5fSmrgand SET_X11_LIBS to avoid the need to call pkg-config.
11045feee4651SmrgSee the pkg-config man page for more details." "$LINENO" 5
11046a0195d5fSmrgelif test $pkg_failed = untried; then
11047feee4651Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048feee4651Smrg$as_echo "no" >&6; }
110496f5dd5c2Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
110506600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
110512ab73d9fSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11052a0195d5fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
11053a0195d5fSmrgpath to pkg-config.
11054a0195d5fSmrg
11055a0195d5fSmrgAlternatively, you may set the environment variables SET_X11_CFLAGS
11056a0195d5fSmrgand SET_X11_LIBS to avoid the need to call pkg-config.
11057a0195d5fSmrgSee the pkg-config man page for more details.
11058a0195d5fSmrg
11059a0195d5fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
110602ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
11061a0195d5fSmrgelse
11062a0195d5fSmrg	SET_X11_CFLAGS=$pkg_cv_SET_X11_CFLAGS
11063a0195d5fSmrg	SET_X11_LIBS=$pkg_cv_SET_X11_LIBS
110646f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
110656600fe5bSmrg$as_echo "yes" >&6; }
11066feee4651Smrg
11067a0195d5fSmrgfi
11068a0195d5fSmrg
11069a0195d5fSmrg
11070a0195d5fSmrgpkg_failed=no
110716f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XEXT" >&5
110726600fe5bSmrg$as_echo_n "checking for SET_XEXT... " >&6; }
11073a0195d5fSmrg
11074a0195d5fSmrgif test -n "$SET_XEXT_CFLAGS"; then
11075a0195d5fSmrg    pkg_cv_SET_XEXT_CFLAGS="$SET_XEXT_CFLAGS"
11076a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11077a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
110786f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11079a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11080a0195d5fSmrg  ac_status=$?
110816f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
110826f5dd5c2Smrg  test $ac_status = 0; }; then
11083a0195d5fSmrg  pkg_cv_SET_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
11084feee4651Smrg		      test "x$?" != "x0" && pkg_failed=yes
11085a0195d5fSmrgelse
11086a0195d5fSmrg  pkg_failed=yes
11087a0195d5fSmrgfi
11088a0195d5fSmrg else
11089a0195d5fSmrg    pkg_failed=untried
11090a0195d5fSmrgfi
11091a0195d5fSmrgif test -n "$SET_XEXT_LIBS"; then
11092a0195d5fSmrg    pkg_cv_SET_XEXT_LIBS="$SET_XEXT_LIBS"
11093a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11094a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
110956f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11096a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11097a0195d5fSmrg  ac_status=$?
110986f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
110996f5dd5c2Smrg  test $ac_status = 0; }; then
11100a0195d5fSmrg  pkg_cv_SET_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
11101feee4651Smrg		      test "x$?" != "x0" && pkg_failed=yes
11102a0195d5fSmrgelse
11103a0195d5fSmrg  pkg_failed=yes
11104a0195d5fSmrgfi
11105a0195d5fSmrg else
11106a0195d5fSmrg    pkg_failed=untried
11107a0195d5fSmrgfi
11108a0195d5fSmrg
11109a0195d5fSmrg
11110a0195d5fSmrg
11111a0195d5fSmrgif test $pkg_failed = yes; then
11112feee4651Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113feee4651Smrg$as_echo "no" >&6; }
11114a0195d5fSmrg
11115a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11116a0195d5fSmrg        _pkg_short_errors_supported=yes
11117a0195d5fSmrgelse
11118a0195d5fSmrg        _pkg_short_errors_supported=no
11119a0195d5fSmrgfi
11120a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
11121feee4651Smrg	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
11122a0195d5fSmrg        else
11123feee4651Smrg	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
11124a0195d5fSmrg        fi
11125a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
11126a0195d5fSmrg	echo "$SET_XEXT_PKG_ERRORS" >&5
11127a0195d5fSmrg
11128feee4651Smrg	echo "not found"
11129a0195d5fSmrgelif test $pkg_failed = untried; then
11130feee4651Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131feee4651Smrg$as_echo "no" >&6; }
11132a0195d5fSmrg	echo "not found"
11133a0195d5fSmrgelse
11134a0195d5fSmrg	SET_XEXT_CFLAGS=$pkg_cv_SET_XEXT_CFLAGS
11135a0195d5fSmrg	SET_XEXT_LIBS=$pkg_cv_SET_XEXT_LIBS
111366f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
111376600fe5bSmrg$as_echo "yes" >&6; }
11138a0195d5fSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
11139a0195d5fSmrg	CPPFLAGS="$CPPFLAGS $SET_XEXT_CFLAGS $SET_X11_CFLAGS"
111406f5dd5c2Smrg	for ac_header in X11/extensions/dpms.h X11/extensions/MITMisc.h
111416f5dd5c2Smrgdo :
111426f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
111436f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
111446f5dd5c2Smrg"
111452ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11146a0195d5fSmrg  cat >>confdefs.h <<_ACEOF
111476600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11148a0195d5fSmrg_ACEOF
11149a0195d5fSmrg
11150a0195d5fSmrgfi
11151a0195d5fSmrg
11152a0195d5fSmrgdone
11153a0195d5fSmrg
11154a0195d5fSmrg	CPPFLAGS="$SAVE_CPPFLAGS"
11155a0195d5fSmrgfi
11156a0195d5fSmrg
11157a0195d5fSmrg
11158a0195d5fSmrgpkg_failed=no
111596f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XKB" >&5
111606600fe5bSmrg$as_echo_n "checking for SET_XKB... " >&6; }
11161a0195d5fSmrg
11162a0195d5fSmrgif test -n "$SET_XKB_CFLAGS"; then
11163a0195d5fSmrg    pkg_cv_SET_XKB_CFLAGS="$SET_XKB_CFLAGS"
11164a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11165a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
111666f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11167a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11168a0195d5fSmrg  ac_status=$?
111696f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
111706f5dd5c2Smrg  test $ac_status = 0; }; then
11171a0195d5fSmrg  pkg_cv_SET_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
11172feee4651Smrg		      test "x$?" != "x0" && pkg_failed=yes
11173a0195d5fSmrgelse
11174a0195d5fSmrg  pkg_failed=yes
11175a0195d5fSmrgfi
11176a0195d5fSmrg else
11177a0195d5fSmrg    pkg_failed=untried
11178a0195d5fSmrgfi
11179a0195d5fSmrgif test -n "$SET_XKB_LIBS"; then
11180a0195d5fSmrg    pkg_cv_SET_XKB_LIBS="$SET_XKB_LIBS"
11181a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11182a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
111836f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11184a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11185a0195d5fSmrg  ac_status=$?
111866f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
111876f5dd5c2Smrg  test $ac_status = 0; }; then
11188a0195d5fSmrg  pkg_cv_SET_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11189feee4651Smrg		      test "x$?" != "x0" && pkg_failed=yes
11190a0195d5fSmrgelse
11191a0195d5fSmrg  pkg_failed=yes
11192a0195d5fSmrgfi
11193a0195d5fSmrg else
11194a0195d5fSmrg    pkg_failed=untried
11195a0195d5fSmrgfi
11196a0195d5fSmrg
11197a0195d5fSmrg
11198a0195d5fSmrg
11199a0195d5fSmrgif test $pkg_failed = yes; then
11200feee4651Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201feee4651Smrg$as_echo "no" >&6; }
11202a0195d5fSmrg
11203a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11204a0195d5fSmrg        _pkg_short_errors_supported=yes
11205a0195d5fSmrgelse
11206a0195d5fSmrg        _pkg_short_errors_supported=no
11207a0195d5fSmrgfi
11208a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
11209feee4651Smrg	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
11210a0195d5fSmrg        else
11211feee4651Smrg	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
11212a0195d5fSmrg        fi
11213a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
11214a0195d5fSmrg	echo "$SET_XKB_PKG_ERRORS" >&5
11215a0195d5fSmrg
11216feee4651Smrg	echo "not found"
11217a0195d5fSmrgelif test $pkg_failed = untried; then
11218feee4651Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219feee4651Smrg$as_echo "no" >&6; }
11220a0195d5fSmrg	echo "not found"
11221a0195d5fSmrgelse
11222a0195d5fSmrg	SET_XKB_CFLAGS=$pkg_cv_SET_XKB_CFLAGS
11223a0195d5fSmrg	SET_XKB_LIBS=$pkg_cv_SET_XKB_LIBS
112246f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
112256600fe5bSmrg$as_echo "yes" >&6; }
11226a0195d5fSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
11227a0195d5fSmrg	CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS"
112286f5dd5c2Smrg	for ac_header in X11/XKBlib.h
112296f5dd5c2Smrgdo :
112306f5dd5c2Smrg  ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h>
112316f5dd5c2Smrg"
112322ab73d9fSmrgif test "x$ac_cv_header_X11_XKBlib_h" = xyes; then :
11233a0195d5fSmrg  cat >>confdefs.h <<_ACEOF
112346f5dd5c2Smrg#define HAVE_X11_XKBLIB_H 1
11235a0195d5fSmrg_ACEOF
11236a0195d5fSmrg
11237a0195d5fSmrgfi
11238a0195d5fSmrg
11239a0195d5fSmrgdone
11240a0195d5fSmrg
11241a0195d5fSmrg	CPPFLAGS="$SAVE_CPPFLAGS"
11242a0195d5fSmrgfi
11243a0195d5fSmrg
11244a0195d5fSmrg
112456f5dd5c2Smrg# Check whether --with-xf86misc was given.
112466f5dd5c2Smrgif test "${with_xf86misc+set}" = set; then :
112476f5dd5c2Smrg  withval=$with_xf86misc; USE_XF86MISC="$withval"
112486f5dd5c2Smrgelse
112496f5dd5c2Smrg  USE_XF86MISC="yes"
112506f5dd5c2Smrgfi
112516f5dd5c2Smrg
112526f5dd5c2Smrgif test "x$USE_XF86MISC" != "xno" ; then
112536f5dd5c2Smrg
11254a0195d5fSmrgpkg_failed=no
112556f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XF86MISC" >&5
112566600fe5bSmrg$as_echo_n "checking for SET_XF86MISC... " >&6; }
11257a0195d5fSmrg
11258a0195d5fSmrgif test -n "$SET_XF86MISC_CFLAGS"; then
11259a0195d5fSmrg    pkg_cv_SET_XF86MISC_CFLAGS="$SET_XF86MISC_CFLAGS"
11260a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11261a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
112626f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11263a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11264a0195d5fSmrg  ac_status=$?
112656f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
112666f5dd5c2Smrg  test $ac_status = 0; }; then
11267a0195d5fSmrg  pkg_cv_SET_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null`
11268feee4651Smrg		      test "x$?" != "x0" && pkg_failed=yes
11269a0195d5fSmrgelse
11270a0195d5fSmrg  pkg_failed=yes
11271a0195d5fSmrgfi
11272a0195d5fSmrg else
11273a0195d5fSmrg    pkg_failed=untried
11274a0195d5fSmrgfi
11275a0195d5fSmrgif test -n "$SET_XF86MISC_LIBS"; then
11276a0195d5fSmrg    pkg_cv_SET_XF86MISC_LIBS="$SET_XF86MISC_LIBS"
11277a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11278a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
112796f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11280a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11281a0195d5fSmrg  ac_status=$?
112826f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
112836f5dd5c2Smrg  test $ac_status = 0; }; then
11284a0195d5fSmrg  pkg_cv_SET_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null`
11285feee4651Smrg		      test "x$?" != "x0" && pkg_failed=yes
11286a0195d5fSmrgelse
11287a0195d5fSmrg  pkg_failed=yes
11288a0195d5fSmrgfi
11289a0195d5fSmrg else
11290a0195d5fSmrg    pkg_failed=untried
11291a0195d5fSmrgfi
11292a0195d5fSmrg
11293a0195d5fSmrg
11294a0195d5fSmrg
11295a0195d5fSmrgif test $pkg_failed = yes; then
11296feee4651Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297feee4651Smrg$as_echo "no" >&6; }
11298a0195d5fSmrg
11299a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11300a0195d5fSmrg        _pkg_short_errors_supported=yes
11301a0195d5fSmrgelse
11302a0195d5fSmrg        _pkg_short_errors_supported=no
11303a0195d5fSmrgfi
11304a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
11305feee4651Smrg	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86misc" 2>&1`
11306a0195d5fSmrg        else
11307feee4651Smrg	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86misc" 2>&1`
11308a0195d5fSmrg        fi
11309a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
11310a0195d5fSmrg	echo "$SET_XF86MISC_PKG_ERRORS" >&5
11311a0195d5fSmrg
11312feee4651Smrg	echo "not found"
11313a0195d5fSmrgelif test $pkg_failed = untried; then
11314feee4651Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315feee4651Smrg$as_echo "no" >&6; }
11316a0195d5fSmrg	echo "not found"
11317a0195d5fSmrgelse
11318a0195d5fSmrg	SET_XF86MISC_CFLAGS=$pkg_cv_SET_XF86MISC_CFLAGS
11319a0195d5fSmrg	SET_XF86MISC_LIBS=$pkg_cv_SET_XF86MISC_LIBS
113206f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
113216600fe5bSmrg$as_echo "yes" >&6; }
11322a0195d5fSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
113236f5dd5c2Smrg		CPPFLAGS="$CPPFLAGS $SET_XF86MISC_CFLAGS $SET_X11_CFLAGS"
113246f5dd5c2Smrg		for ac_header in X11/extensions/xf86misc.h X11/extensions/xf86mscstr.h
113256f5dd5c2Smrgdo :
113266f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
113276f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
11328a0195d5fSmrg#include <X11/Xproto.h>
113296f5dd5c2Smrg"
113302ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11331a0195d5fSmrg  cat >>confdefs.h <<_ACEOF
113326600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11333a0195d5fSmrg_ACEOF
11334a0195d5fSmrg
11335a0195d5fSmrgfi
11336a0195d5fSmrg
11337a0195d5fSmrgdone
11338a0195d5fSmrg
113396f5dd5c2Smrg		CPPFLAGS="$SAVE_CPPFLAGS"
113406f5dd5c2Smrgfi
113416f5dd5c2Smrgelse
113426f5dd5c2Smrg        echo "without xf86misc"
113436f5dd5c2Smrgfi
113446f5dd5c2Smrg
113456f5dd5c2Smrg
113466f5dd5c2Smrg# Check whether --with-fontcache was given.
113476f5dd5c2Smrgif test "${with_fontcache+set}" = set; then :
113486f5dd5c2Smrg  withval=$with_fontcache; USE_XFONTCACHE="$withval"
113496f5dd5c2Smrgelse
113506f5dd5c2Smrg  USE_XFONTCACHE="yes"
11351a0195d5fSmrgfi
11352a0195d5fSmrg
113536f5dd5c2Smrgif test "x$USE_XFONTCACHE" != "xno" ; then
11354a0195d5fSmrg
11355a0195d5fSmrgpkg_failed=no
113566f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_FONTCACHE" >&5
113576600fe5bSmrg$as_echo_n "checking for SET_FONTCACHE... " >&6; }
11358a0195d5fSmrg
11359a0195d5fSmrgif test -n "$SET_FONTCACHE_CFLAGS"; then
11360a0195d5fSmrg    pkg_cv_SET_FONTCACHE_CFLAGS="$SET_FONTCACHE_CFLAGS"
11361a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11362a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
113636f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
11364a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
11365a0195d5fSmrg  ac_status=$?
113666f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
113676f5dd5c2Smrg  test $ac_status = 0; }; then
11368a0195d5fSmrg  pkg_cv_SET_FONTCACHE_CFLAGS=`$PKG_CONFIG --cflags "xfontcache" 2>/dev/null`
11369feee4651Smrg		      test "x$?" != "x0" && pkg_failed=yes
11370a0195d5fSmrgelse
11371a0195d5fSmrg  pkg_failed=yes
11372a0195d5fSmrgfi
11373a0195d5fSmrg else
11374a0195d5fSmrg    pkg_failed=untried
11375a0195d5fSmrgfi
11376a0195d5fSmrgif test -n "$SET_FONTCACHE_LIBS"; then
11377a0195d5fSmrg    pkg_cv_SET_FONTCACHE_LIBS="$SET_FONTCACHE_LIBS"
11378a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
11379a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
113806f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
11381a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
11382a0195d5fSmrg  ac_status=$?
113836f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
113846f5dd5c2Smrg  test $ac_status = 0; }; then
113856f5dd5c2Smrg  pkg_cv_SET_FONTCACHE_LIBS=`$PKG_CONFIG --libs "xfontcache" 2>/dev/null`
11386feee4651Smrg		      test "x$?" != "x0" && pkg_failed=yes
113876600fe5bSmrgelse
113886600fe5bSmrg  pkg_failed=yes
113896600fe5bSmrgfi
113906600fe5bSmrg else
113916600fe5bSmrg    pkg_failed=untried
113926600fe5bSmrgfi
11393a0195d5fSmrg
11394a0195d5fSmrg
11395a0195d5fSmrg
113966600fe5bSmrgif test $pkg_failed = yes; then
11397feee4651Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398feee4651Smrg$as_echo "no" >&6; }
11399a0195d5fSmrg
114006600fe5bSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
114016600fe5bSmrg        _pkg_short_errors_supported=yes
114026600fe5bSmrgelse
114036600fe5bSmrg        _pkg_short_errors_supported=no
114046600fe5bSmrgfi
114056600fe5bSmrg        if test $_pkg_short_errors_supported = yes; then
11406feee4651Smrg	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfontcache" 2>&1`
114076600fe5bSmrg        else
11408feee4651Smrg	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfontcache" 2>&1`
114096600fe5bSmrg        fi
114106600fe5bSmrg	# Put the nasty error message in config.log where it belongs
114116f5dd5c2Smrg	echo "$SET_FONTCACHE_PKG_ERRORS" >&5
11412a0195d5fSmrg
11413feee4651Smrg	echo "not found"
114146600fe5bSmrgelif test $pkg_failed = untried; then
11415feee4651Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416feee4651Smrg$as_echo "no" >&6; }
114176600fe5bSmrg	echo "not found"
114186600fe5bSmrgelse
114196f5dd5c2Smrg	SET_FONTCACHE_CFLAGS=$pkg_cv_SET_FONTCACHE_CFLAGS
114206f5dd5c2Smrg	SET_FONTCACHE_LIBS=$pkg_cv_SET_FONTCACHE_LIBS
114216f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
114226600fe5bSmrg$as_echo "yes" >&6; }
114236600fe5bSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
114246f5dd5c2Smrg		CPPFLAGS="$CPPFLAGS $SET_FONTCACHE_CFLAGS $SET_X11_CFLAGS"
114256f5dd5c2Smrg		for ac_header in X11/extensions/fontcache.h X11/extensions/fontcacheP.h
114266f5dd5c2Smrgdo :
114276f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
114286f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
114296f5dd5c2Smrg"
114302ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
114316600fe5bSmrg  cat >>confdefs.h <<_ACEOF
114326600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11433a0195d5fSmrg_ACEOF
11434a0195d5fSmrg
114356600fe5bSmrgfi
11436a0195d5fSmrg
114376600fe5bSmrgdone
11438a0195d5fSmrg
114396f5dd5c2Smrg		CPPFLAGS="$SAVE_CPPFLAGS"
114406f5dd5c2Smrgfi
114416f5dd5c2Smrgelse
114426f5dd5c2Smrg	echo "without fontcache"
114436600fe5bSmrgfi
114446600fe5bSmrg
114456f5dd5c2SmrgXSET_CFLAGS="$XSET_CFLAGS $SET_XEXT_CFLAGS $SET_XKB_CFLAGS $SET_XF86MISC_CFLAGS $SET_FONTCACHE_CFLAGS"
114466f5dd5c2SmrgXSET_LIBS="$XSET_LIBS $SET_XEXT_LIBS $SET_XKB_LIBS $SET_XF86MISC_LIBS $SET_FONTCACHE_LIBS"
11447a0195d5fSmrg
11448a0195d5fSmrg
11449ff6cf368Smrgac_config_files="$ac_config_files Makefile man/Makefile"
11450a0195d5fSmrg
11451a0195d5fSmrgcat >confcache <<\_ACEOF
11452a0195d5fSmrg# This file is a shell script that caches the results of configure
11453a0195d5fSmrg# tests run on this system so they can be shared between configure
11454a0195d5fSmrg# scripts and configure runs, see configure's option --config-cache.
11455a0195d5fSmrg# It is not useful on other systems.  If it contains results you don't
11456a0195d5fSmrg# want to keep, you may remove or edit it.
11457a0195d5fSmrg#
11458a0195d5fSmrg# config.status only pays attention to the cache file if you give it
11459a0195d5fSmrg# the --recheck option to rerun configure.
11460a0195d5fSmrg#
11461a0195d5fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
11462a0195d5fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
11463a0195d5fSmrg# following values.
11464a0195d5fSmrg
11465a0195d5fSmrg_ACEOF
11466a0195d5fSmrg
11467a0195d5fSmrg# The following way of writing the cache mishandles newlines in values,
11468a0195d5fSmrg# but we know of no workaround that is simple, portable, and efficient.
11469a0195d5fSmrg# So, we kill variables containing newlines.
11470a0195d5fSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
11471a0195d5fSmrg# and sets the high bit in the cache file unless we assign to the vars.
11472a0195d5fSmrg(
11473a0195d5fSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11474a0195d5fSmrg    eval ac_val=\$$ac_var
11475a0195d5fSmrg    case $ac_val in #(
11476a0195d5fSmrg    *${as_nl}*)
11477a0195d5fSmrg      case $ac_var in #(
114786f5dd5c2Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
114796600fe5bSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11480a0195d5fSmrg      esac
11481a0195d5fSmrg      case $ac_var in #(
11482a0195d5fSmrg      _ | IFS | as_nl) ;; #(
114836600fe5bSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
114846f5dd5c2Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
11485a0195d5fSmrg      esac ;;
11486a0195d5fSmrg    esac
11487a0195d5fSmrg  done
11488a0195d5fSmrg
11489a0195d5fSmrg  (set) 2>&1 |
11490a0195d5fSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11491a0195d5fSmrg    *${as_nl}ac_space=\ *)
114926f5dd5c2Smrg      # `set' does not quote correctly, so add quotes: double-quote
114936f5dd5c2Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
11494a0195d5fSmrg      sed -n \
11495a0195d5fSmrg	"s/'/'\\\\''/g;
11496a0195d5fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11497a0195d5fSmrg      ;; #(
11498a0195d5fSmrg    *)
11499a0195d5fSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
11500a0195d5fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11501a0195d5fSmrg      ;;
11502a0195d5fSmrg    esac |
11503a0195d5fSmrg    sort
11504a0195d5fSmrg) |
11505a0195d5fSmrg  sed '
11506a0195d5fSmrg     /^ac_cv_env_/b end
11507a0195d5fSmrg     t clear
11508a0195d5fSmrg     :clear
11509a0195d5fSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11510a0195d5fSmrg     t end
11511a0195d5fSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11512a0195d5fSmrg     :end' >>confcache
11513a0195d5fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11514a0195d5fSmrg  if test -w "$cache_file"; then
115152ab73d9fSmrg    if test "x$cache_file" != "x/dev/null"; then
115166f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
115176600fe5bSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
115182ab73d9fSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
115192ab73d9fSmrg	cat confcache >"$cache_file"
115202ab73d9fSmrg      else
115212ab73d9fSmrg        case $cache_file in #(
115222ab73d9fSmrg        */* | ?:*)
115232ab73d9fSmrg	  mv -f confcache "$cache_file"$$ &&
115242ab73d9fSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
115252ab73d9fSmrg        *)
115262ab73d9fSmrg	  mv -f confcache "$cache_file" ;;
115272ab73d9fSmrg	esac
115282ab73d9fSmrg      fi
115292ab73d9fSmrg    fi
11530a0195d5fSmrg  else
115316f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
115326600fe5bSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11533a0195d5fSmrg  fi
11534a0195d5fSmrgfi
11535a0195d5fSmrgrm -f confcache
11536a0195d5fSmrg
11537a0195d5fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
11538a0195d5fSmrg# Let make expand exec_prefix.
11539a0195d5fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11540a0195d5fSmrg
11541a0195d5fSmrgDEFS=-DHAVE_CONFIG_H
11542a0195d5fSmrg
11543a0195d5fSmrgac_libobjs=
11544a0195d5fSmrgac_ltlibobjs=
115452ab73d9fSmrgU=
11546a0195d5fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11547a0195d5fSmrg  # 1. Remove the extension, and $U if already installed.
11548a0195d5fSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
115496600fe5bSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11550a0195d5fSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11551a0195d5fSmrg  #    will be set to the directory where LIBOBJS objects are built.
115526f5dd5c2Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
115536f5dd5c2Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11554a0195d5fSmrgdone
11555a0195d5fSmrgLIBOBJS=$ac_libobjs
11556a0195d5fSmrg
11557a0195d5fSmrgLTLIBOBJS=$ac_ltlibobjs
11558a0195d5fSmrg
11559a0195d5fSmrg
1156040a76396Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
1156140a76396Smrg$as_echo_n "checking that generated files are newer than configure... " >&6; }
1156240a76396Smrg   if test -n "$am_sleep_pid"; then
1156340a76396Smrg     # Hide warnings about reused PIDs.
1156440a76396Smrg     wait $am_sleep_pid 2>/dev/null
1156540a76396Smrg   fi
1156640a76396Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
1156740a76396Smrg$as_echo "done" >&6; }
1156840a76396Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1156940a76396Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
1157040a76396SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1157140a76396Smrgfi
1157240a76396Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1157340a76396Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1157440a76396SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1157540a76396Smrgfi
115766600fe5bSmrg if test -n "$EXEEXT"; then
115776600fe5bSmrg  am__EXEEXT_TRUE=
115786600fe5bSmrg  am__EXEEXT_FALSE='#'
115796600fe5bSmrgelse
115806600fe5bSmrg  am__EXEEXT_TRUE='#'
115816600fe5bSmrg  am__EXEEXT_FALSE=
115826600fe5bSmrgfi
115836600fe5bSmrg
11584a0195d5fSmrg
115852ab73d9fSmrg: "${CONFIG_STATUS=./config.status}"
115866600fe5bSmrgac_write_fail=0
11587a0195d5fSmrgac_clean_files_save=$ac_clean_files
11588a0195d5fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
115896f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
115906600fe5bSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
115916f5dd5c2Smrgas_write_fail=0
115926f5dd5c2Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11593a0195d5fSmrg#! $SHELL
11594a0195d5fSmrg# Generated by $as_me.
11595a0195d5fSmrg# Run this file to recreate the current configuration.
11596a0195d5fSmrg# Compiler output produced by configure, useful for debugging
11597a0195d5fSmrg# configure, is in config.log if it exists.
11598a0195d5fSmrg
11599a0195d5fSmrgdebug=false
11600a0195d5fSmrgac_cs_recheck=false
11601a0195d5fSmrgac_cs_silent=false
11602a0195d5fSmrg
116036f5dd5c2SmrgSHELL=\${CONFIG_SHELL-$SHELL}
116046f5dd5c2Smrgexport SHELL
116056f5dd5c2Smrg_ASEOF
116066f5dd5c2Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
116076f5dd5c2Smrg## -------------------- ##
116086f5dd5c2Smrg## M4sh Initialization. ##
116096f5dd5c2Smrg## -------------------- ##
11610a0195d5fSmrg
11611a0195d5fSmrg# Be more Bourne compatible
11612a0195d5fSmrgDUALCASE=1; export DUALCASE # for MKS sh
116136f5dd5c2Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11614a0195d5fSmrg  emulate sh
11615a0195d5fSmrg  NULLCMD=:
116166600fe5bSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11617a0195d5fSmrg  # is contrary to our usage.  Disable this feature.
11618a0195d5fSmrg  alias -g '${1+"$@"}'='"$@"'
11619a0195d5fSmrg  setopt NO_GLOB_SUBST
11620a0195d5fSmrgelse
116216f5dd5c2Smrg  case `(set -o) 2>/dev/null` in #(
116226f5dd5c2Smrg  *posix*) :
116236f5dd5c2Smrg    set -o posix ;; #(
116246f5dd5c2Smrg  *) :
116256f5dd5c2Smrg     ;;
11626a0195d5fSmrgesac
11627a0195d5fSmrgfi
11628a0195d5fSmrg
11629a0195d5fSmrg
116306600fe5bSmrgas_nl='
116316600fe5bSmrg'
116326600fe5bSmrgexport as_nl
116336600fe5bSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
116346600fe5bSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
116356600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
116366600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
116376f5dd5c2Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
116386f5dd5c2Smrg# but without wasting forks for bash or zsh.
116396f5dd5c2Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
116406f5dd5c2Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
116416f5dd5c2Smrg  as_echo='print -r --'
116426f5dd5c2Smrg  as_echo_n='print -rn --'
116436f5dd5c2Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
116446600fe5bSmrg  as_echo='printf %s\n'
116456600fe5bSmrg  as_echo_n='printf %s'
116466600fe5bSmrgelse
116476600fe5bSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
116486600fe5bSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
116496600fe5bSmrg    as_echo_n='/usr/ucb/echo -n'
11650a0195d5fSmrg  else
116516600fe5bSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
116526600fe5bSmrg    as_echo_n_body='eval
116536600fe5bSmrg      arg=$1;
116546f5dd5c2Smrg      case $arg in #(
116556600fe5bSmrg      *"$as_nl"*)
116566600fe5bSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
116576600fe5bSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
116586600fe5bSmrg      esac;
116596600fe5bSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
116606600fe5bSmrg    '
116616600fe5bSmrg    export as_echo_n_body
116626600fe5bSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
11663a0195d5fSmrg  fi
116646600fe5bSmrg  export as_echo_body
116656600fe5bSmrg  as_echo='sh -c $as_echo_body as_echo'
116666600fe5bSmrgfi
116676600fe5bSmrg
116686600fe5bSmrg# The user is always right.
116696600fe5bSmrgif test "${PATH_SEPARATOR+set}" != set; then
116706600fe5bSmrg  PATH_SEPARATOR=:
116716600fe5bSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
116726600fe5bSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
116736600fe5bSmrg      PATH_SEPARATOR=';'
116746600fe5bSmrg  }
11675a0195d5fSmrgfi
11676a0195d5fSmrg
11677a0195d5fSmrg
11678a0195d5fSmrg# IFS
11679a0195d5fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
11680a0195d5fSmrg# there to prevent editors from complaining about space-tab.
11681a0195d5fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11682a0195d5fSmrg# splitting by setting IFS to empty value.)
11683a0195d5fSmrgIFS=" ""	$as_nl"
11684a0195d5fSmrg
11685a0195d5fSmrg# Find who we are.  Look in the path if we contain no directory separator.
116862ab73d9fSmrgas_myself=
116876f5dd5c2Smrgcase $0 in #((
11688a0195d5fSmrg  *[\\/]* ) as_myself=$0 ;;
11689a0195d5fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690a0195d5fSmrgfor as_dir in $PATH
11691a0195d5fSmrgdo
11692a0195d5fSmrg  IFS=$as_save_IFS
11693a0195d5fSmrg  test -z "$as_dir" && as_dir=.
116946f5dd5c2Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116956f5dd5c2Smrg  done
11696a0195d5fSmrgIFS=$as_save_IFS
11697a0195d5fSmrg
11698a0195d5fSmrg     ;;
11699a0195d5fSmrgesac
11700a0195d5fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
11701a0195d5fSmrg# in which case we are not to be found in the path.
11702a0195d5fSmrgif test "x$as_myself" = x; then
11703a0195d5fSmrg  as_myself=$0
11704a0195d5fSmrgfi
11705a0195d5fSmrgif test ! -f "$as_myself"; then
117066600fe5bSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117076f5dd5c2Smrg  exit 1
11708a0195d5fSmrgfi
11709a0195d5fSmrg
117106f5dd5c2Smrg# Unset variables that we do not need and which cause bugs (e.g. in
117116f5dd5c2Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117126f5dd5c2Smrg# suppresses any "Segmentation fault" message there.  '((' could
117136f5dd5c2Smrg# trigger a bug in pdksh 5.2.14.
117146f5dd5c2Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
117156f5dd5c2Smrgdo eval test x\${$as_var+set} = xset \
117166f5dd5c2Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11717a0195d5fSmrgdone
11718a0195d5fSmrgPS1='$ '
11719a0195d5fSmrgPS2='> '
11720a0195d5fSmrgPS4='+ '
11721a0195d5fSmrg
11722a0195d5fSmrg# NLS nuisances.
117236600fe5bSmrgLC_ALL=C
117246600fe5bSmrgexport LC_ALL
117256600fe5bSmrgLANGUAGE=C
117266600fe5bSmrgexport LANGUAGE
11727a0195d5fSmrg
117286f5dd5c2Smrg# CDPATH.
117296f5dd5c2Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
117306f5dd5c2Smrg
117316f5dd5c2Smrg
117322ab73d9fSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
117332ab73d9fSmrg# ----------------------------------------
117346f5dd5c2Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
117356f5dd5c2Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
117362ab73d9fSmrg# script with STATUS, using 1 if that was 0.
117376f5dd5c2Smrgas_fn_error ()
117386f5dd5c2Smrg{
117392ab73d9fSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
117402ab73d9fSmrg  if test "$4"; then
117412ab73d9fSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
117422ab73d9fSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
117436f5dd5c2Smrg  fi
117442ab73d9fSmrg  $as_echo "$as_me: error: $2" >&2
117456f5dd5c2Smrg  as_fn_exit $as_status
117466f5dd5c2Smrg} # as_fn_error
117476f5dd5c2Smrg
117486f5dd5c2Smrg
117496f5dd5c2Smrg# as_fn_set_status STATUS
117506f5dd5c2Smrg# -----------------------
117516f5dd5c2Smrg# Set $? to STATUS, without forking.
117526f5dd5c2Smrgas_fn_set_status ()
117536f5dd5c2Smrg{
117546f5dd5c2Smrg  return $1
117556f5dd5c2Smrg} # as_fn_set_status
117566f5dd5c2Smrg
117576f5dd5c2Smrg# as_fn_exit STATUS
117586f5dd5c2Smrg# -----------------
117596f5dd5c2Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
117606f5dd5c2Smrgas_fn_exit ()
117616f5dd5c2Smrg{
117626f5dd5c2Smrg  set +e
117636f5dd5c2Smrg  as_fn_set_status $1
117646f5dd5c2Smrg  exit $1
117656f5dd5c2Smrg} # as_fn_exit
117666f5dd5c2Smrg
117676f5dd5c2Smrg# as_fn_unset VAR
117686f5dd5c2Smrg# ---------------
117696f5dd5c2Smrg# Portably unset VAR.
117706f5dd5c2Smrgas_fn_unset ()
117716f5dd5c2Smrg{
117726f5dd5c2Smrg  { eval $1=; unset $1;}
117736f5dd5c2Smrg}
117746f5dd5c2Smrgas_unset=as_fn_unset
117756f5dd5c2Smrg# as_fn_append VAR VALUE
117766f5dd5c2Smrg# ----------------------
117776f5dd5c2Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
117786f5dd5c2Smrg# advantage of any shell optimizations that allow amortized linear growth over
117796f5dd5c2Smrg# repeated appends, instead of the typical quadratic growth present in naive
117806f5dd5c2Smrg# implementations.
117816f5dd5c2Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
117826f5dd5c2Smrg  eval 'as_fn_append ()
117836f5dd5c2Smrg  {
117846f5dd5c2Smrg    eval $1+=\$2
117856f5dd5c2Smrg  }'
117866f5dd5c2Smrgelse
117876f5dd5c2Smrg  as_fn_append ()
117886f5dd5c2Smrg  {
117896f5dd5c2Smrg    eval $1=\$$1\$2
117906f5dd5c2Smrg  }
117916f5dd5c2Smrgfi # as_fn_append
117926f5dd5c2Smrg
117936f5dd5c2Smrg# as_fn_arith ARG...
117946f5dd5c2Smrg# ------------------
117956f5dd5c2Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
117966f5dd5c2Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
117976f5dd5c2Smrg# must be portable across $(()) and expr.
117986f5dd5c2Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
117996f5dd5c2Smrg  eval 'as_fn_arith ()
118006f5dd5c2Smrg  {
118016f5dd5c2Smrg    as_val=$(( $* ))
118026f5dd5c2Smrg  }'
118036f5dd5c2Smrgelse
118046f5dd5c2Smrg  as_fn_arith ()
118056f5dd5c2Smrg  {
118066f5dd5c2Smrg    as_val=`expr "$@" || test $? -eq 1`
118076f5dd5c2Smrg  }
118086f5dd5c2Smrgfi # as_fn_arith
118096f5dd5c2Smrg
118106f5dd5c2Smrg
11811a0195d5fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
11812a0195d5fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11813a0195d5fSmrg  as_expr=expr
11814a0195d5fSmrgelse
11815a0195d5fSmrg  as_expr=false
11816a0195d5fSmrgfi
11817a0195d5fSmrg
11818a0195d5fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11819a0195d5fSmrg  as_basename=basename
11820a0195d5fSmrgelse
11821a0195d5fSmrg  as_basename=false
11822a0195d5fSmrgfi
11823a0195d5fSmrg
118246f5dd5c2Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
118256f5dd5c2Smrg  as_dirname=dirname
118266f5dd5c2Smrgelse
118276f5dd5c2Smrg  as_dirname=false
118286f5dd5c2Smrgfi
11829a0195d5fSmrg
11830a0195d5fSmrgas_me=`$as_basename -- "$0" ||
11831a0195d5fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11832a0195d5fSmrg	 X"$0" : 'X\(//\)$' \| \
11833a0195d5fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
118346600fe5bSmrg$as_echo X/"$0" |
11835a0195d5fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
11836a0195d5fSmrg	    s//\1/
11837a0195d5fSmrg	    q
11838a0195d5fSmrg	  }
11839a0195d5fSmrg	  /^X\/\(\/\/\)$/{
11840a0195d5fSmrg	    s//\1/
11841a0195d5fSmrg	    q
11842a0195d5fSmrg	  }
11843a0195d5fSmrg	  /^X\/\(\/\).*/{
11844a0195d5fSmrg	    s//\1/
11845a0195d5fSmrg	    q
11846a0195d5fSmrg	  }
11847a0195d5fSmrg	  s/.*/./; q'`
11848a0195d5fSmrg
118496f5dd5c2Smrg# Avoid depending upon Character Ranges.
118506f5dd5c2Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
118516f5dd5c2Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
118526f5dd5c2Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
118536f5dd5c2Smrgas_cr_digits='0123456789'
118546f5dd5c2Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
11855a0195d5fSmrg
11856a0195d5fSmrgECHO_C= ECHO_N= ECHO_T=
118576f5dd5c2Smrgcase `echo -n x` in #(((((
11858a0195d5fSmrg-n*)
118596f5dd5c2Smrg  case `echo 'xy\c'` in
11860a0195d5fSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
118616f5dd5c2Smrg  xy)  ECHO_C='\c';;
118626f5dd5c2Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
118636f5dd5c2Smrg       ECHO_T='	';;
11864a0195d5fSmrg  esac;;
11865a0195d5fSmrg*)
11866a0195d5fSmrg  ECHO_N='-n';;
11867a0195d5fSmrgesac
11868a0195d5fSmrg
11869a0195d5fSmrgrm -f conf$$ conf$$.exe conf$$.file
11870a0195d5fSmrgif test -d conf$$.dir; then
11871a0195d5fSmrg  rm -f conf$$.dir/conf$$.file
11872a0195d5fSmrgelse
11873a0195d5fSmrg  rm -f conf$$.dir
118746600fe5bSmrg  mkdir conf$$.dir 2>/dev/null
118756600fe5bSmrgfi
118766600fe5bSmrgif (echo >conf$$.file) 2>/dev/null; then
118776600fe5bSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
118786600fe5bSmrg    as_ln_s='ln -s'
118796600fe5bSmrg    # ... but there are two gotchas:
118806600fe5bSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
118816600fe5bSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11882feee4651Smrg    # In both cases, we have to default to `cp -pR'.
118836600fe5bSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11884feee4651Smrg      as_ln_s='cp -pR'
118856600fe5bSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
118866600fe5bSmrg    as_ln_s=ln
118876600fe5bSmrg  else
11888feee4651Smrg    as_ln_s='cp -pR'
118896600fe5bSmrg  fi
11890a0195d5fSmrgelse
11891feee4651Smrg  as_ln_s='cp -pR'
11892a0195d5fSmrgfi
11893a0195d5fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11894a0195d5fSmrgrmdir conf$$.dir 2>/dev/null
11895a0195d5fSmrg
118966f5dd5c2Smrg
118976f5dd5c2Smrg# as_fn_mkdir_p
118986f5dd5c2Smrg# -------------
118996f5dd5c2Smrg# Create "$as_dir" as a directory, including parents if necessary.
119006f5dd5c2Smrgas_fn_mkdir_p ()
119016f5dd5c2Smrg{
119026f5dd5c2Smrg
119036f5dd5c2Smrg  case $as_dir in #(
119046f5dd5c2Smrg  -*) as_dir=./$as_dir;;
119056f5dd5c2Smrg  esac
119066f5dd5c2Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
119076f5dd5c2Smrg    as_dirs=
119086f5dd5c2Smrg    while :; do
119096f5dd5c2Smrg      case $as_dir in #(
119106f5dd5c2Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
119116f5dd5c2Smrg      *) as_qdir=$as_dir;;
119126f5dd5c2Smrg      esac
119136f5dd5c2Smrg      as_dirs="'$as_qdir' $as_dirs"
119146f5dd5c2Smrg      as_dir=`$as_dirname -- "$as_dir" ||
119156f5dd5c2Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
119166f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
119176f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)$' \| \
119186f5dd5c2Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
119196f5dd5c2Smrg$as_echo X"$as_dir" |
119206f5dd5c2Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
119216f5dd5c2Smrg	    s//\1/
119226f5dd5c2Smrg	    q
119236f5dd5c2Smrg	  }
119246f5dd5c2Smrg	  /^X\(\/\/\)[^/].*/{
119256f5dd5c2Smrg	    s//\1/
119266f5dd5c2Smrg	    q
119276f5dd5c2Smrg	  }
119286f5dd5c2Smrg	  /^X\(\/\/\)$/{
119296f5dd5c2Smrg	    s//\1/
119306f5dd5c2Smrg	    q
119316f5dd5c2Smrg	  }
119326f5dd5c2Smrg	  /^X\(\/\).*/{
119336f5dd5c2Smrg	    s//\1/
119346f5dd5c2Smrg	    q
119356f5dd5c2Smrg	  }
119366f5dd5c2Smrg	  s/.*/./; q'`
119376f5dd5c2Smrg      test -d "$as_dir" && break
119386f5dd5c2Smrg    done
119396f5dd5c2Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
119402ab73d9fSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
119416f5dd5c2Smrg
119426f5dd5c2Smrg
119436f5dd5c2Smrg} # as_fn_mkdir_p
11944a0195d5fSmrgif mkdir -p . 2>/dev/null; then
119456f5dd5c2Smrg  as_mkdir_p='mkdir -p "$as_dir"'
11946a0195d5fSmrgelse
11947a0195d5fSmrg  test -d ./-p && rmdir ./-p
11948a0195d5fSmrg  as_mkdir_p=false
11949a0195d5fSmrgfi
11950a0195d5fSmrg
11951feee4651Smrg
11952feee4651Smrg# as_fn_executable_p FILE
11953feee4651Smrg# -----------------------
11954feee4651Smrg# Test if FILE is an executable regular file.
11955feee4651Smrgas_fn_executable_p ()
11956feee4651Smrg{
11957feee4651Smrg  test -f "$1" && test -x "$1"
11958feee4651Smrg} # as_fn_executable_p
11959feee4651Smrgas_test_x='test -x'
11960feee4651Smrgas_executable_p=as_fn_executable_p
11961a0195d5fSmrg
11962a0195d5fSmrg# Sed expression to map a string onto a valid CPP name.
11963a0195d5fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11964a0195d5fSmrg
11965a0195d5fSmrg# Sed expression to map a string onto a valid variable name.
11966a0195d5fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11967a0195d5fSmrg
11968a0195d5fSmrg
11969a0195d5fSmrgexec 6>&1
119706f5dd5c2Smrg## ----------------------------------- ##
119716f5dd5c2Smrg## Main body of $CONFIG_STATUS script. ##
119726f5dd5c2Smrg## ----------------------------------- ##
119736f5dd5c2Smrg_ASEOF
119746f5dd5c2Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11975a0195d5fSmrg
119766f5dd5c2Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
119776f5dd5c2Smrg# Save the log message, to keep $0 and so on meaningful, and to
11978a0195d5fSmrg# report actual input values of CONFIG_FILES etc. instead of their
11979a0195d5fSmrg# values after options handling.
11980a0195d5fSmrgac_log="
11981feee4651SmrgThis file was extended by xset $as_me 1.2.4, which was
11982feee4651Smrggenerated by GNU Autoconf 2.69.  Invocation command line was
11983a0195d5fSmrg
11984a0195d5fSmrg  CONFIG_FILES    = $CONFIG_FILES
11985a0195d5fSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
11986a0195d5fSmrg  CONFIG_LINKS    = $CONFIG_LINKS
11987a0195d5fSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
11988a0195d5fSmrg  $ $0 $@
11989a0195d5fSmrg
11990a0195d5fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
11991a0195d5fSmrg"
11992a0195d5fSmrg
11993a0195d5fSmrg_ACEOF
11994a0195d5fSmrg
119956600fe5bSmrgcase $ac_config_files in *"
119966600fe5bSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
119976600fe5bSmrgesac
119986600fe5bSmrg
119996600fe5bSmrgcase $ac_config_headers in *"
120006600fe5bSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
120016600fe5bSmrgesac
120026600fe5bSmrg
120036600fe5bSmrg
120046600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12005a0195d5fSmrg# Files that config.status was made for.
12006a0195d5fSmrgconfig_files="$ac_config_files"
12007a0195d5fSmrgconfig_headers="$ac_config_headers"
12008a0195d5fSmrgconfig_commands="$ac_config_commands"
12009a0195d5fSmrg
12010a0195d5fSmrg_ACEOF
12011a0195d5fSmrg
120126600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12013a0195d5fSmrgac_cs_usage="\
120146f5dd5c2Smrg\`$as_me' instantiates files and other configuration actions
120156f5dd5c2Smrgfrom templates according to the current configuration.  Unless the files
120166f5dd5c2Smrgand actions are specified as TAGs, all are instantiated by default.
12017a0195d5fSmrg
120186f5dd5c2SmrgUsage: $0 [OPTION]... [TAG]...
12019a0195d5fSmrg
12020a0195d5fSmrg  -h, --help       print this help, then exit
12021a0195d5fSmrg  -V, --version    print version number and configuration settings, then exit
120226f5dd5c2Smrg      --config     print configuration, then exit
120236600fe5bSmrg  -q, --quiet, --silent
120246600fe5bSmrg                   do not print progress messages
12025a0195d5fSmrg  -d, --debug      don't remove temporary files
12026a0195d5fSmrg      --recheck    update $as_me by reconfiguring in the same conditions
120276600fe5bSmrg      --file=FILE[:TEMPLATE]
120286600fe5bSmrg                   instantiate the configuration file FILE
120296600fe5bSmrg      --header=FILE[:TEMPLATE]
120306600fe5bSmrg                   instantiate the configuration header FILE
12031a0195d5fSmrg
12032a0195d5fSmrgConfiguration files:
12033a0195d5fSmrg$config_files
12034a0195d5fSmrg
12035a0195d5fSmrgConfiguration headers:
12036a0195d5fSmrg$config_headers
12037a0195d5fSmrg
12038a0195d5fSmrgConfiguration commands:
12039a0195d5fSmrg$config_commands
12040a0195d5fSmrg
120416f5dd5c2SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12042a0195d5fSmrg
12043a0195d5fSmrg_ACEOF
120446600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
120456f5dd5c2Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12046a0195d5fSmrgac_cs_version="\\
12047feee4651Smrgxset config.status 1.2.4
12048feee4651Smrgconfigured by $0, generated by GNU Autoconf 2.69,
120496f5dd5c2Smrg  with options \\"\$ac_cs_config\\"
12050a0195d5fSmrg
12051feee4651SmrgCopyright (C) 2012 Free Software Foundation, Inc.
12052a0195d5fSmrgThis config.status script is free software; the Free Software Foundation
12053a0195d5fSmrggives unlimited permission to copy, distribute and modify it."
12054a0195d5fSmrg
12055a0195d5fSmrgac_pwd='$ac_pwd'
12056a0195d5fSmrgsrcdir='$srcdir'
12057a0195d5fSmrgINSTALL='$INSTALL'
12058a0195d5fSmrgMKDIR_P='$MKDIR_P'
120596600fe5bSmrgAWK='$AWK'
120606600fe5bSmrgtest -n "\$AWK" || AWK=awk
12061a0195d5fSmrg_ACEOF
12062a0195d5fSmrg
120636600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
120646600fe5bSmrg# The default lists apply if the user does not specify any file.
12065a0195d5fSmrgac_need_defaults=:
12066a0195d5fSmrgwhile test $# != 0
12067a0195d5fSmrgdo
12068a0195d5fSmrg  case $1 in
120692ab73d9fSmrg  --*=?*)
12070a0195d5fSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12071a0195d5fSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12072a0195d5fSmrg    ac_shift=:
12073a0195d5fSmrg    ;;
120742ab73d9fSmrg  --*=)
120752ab73d9fSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
120762ab73d9fSmrg    ac_optarg=
120772ab73d9fSmrg    ac_shift=:
120782ab73d9fSmrg    ;;
12079a0195d5fSmrg  *)
12080a0195d5fSmrg    ac_option=$1
12081a0195d5fSmrg    ac_optarg=$2
12082a0195d5fSmrg    ac_shift=shift
12083a0195d5fSmrg    ;;
12084a0195d5fSmrg  esac
12085a0195d5fSmrg
12086a0195d5fSmrg  case $ac_option in
12087a0195d5fSmrg  # Handling of the options.
12088a0195d5fSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12089a0195d5fSmrg    ac_cs_recheck=: ;;
12090a0195d5fSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
120916600fe5bSmrg    $as_echo "$ac_cs_version"; exit ;;
120926f5dd5c2Smrg  --config | --confi | --conf | --con | --co | --c )
120936f5dd5c2Smrg    $as_echo "$ac_cs_config"; exit ;;
12094a0195d5fSmrg  --debug | --debu | --deb | --de | --d | -d )
12095a0195d5fSmrg    debug=: ;;
12096a0195d5fSmrg  --file | --fil | --fi | --f )
12097a0195d5fSmrg    $ac_shift
120986600fe5bSmrg    case $ac_optarg in
120996600fe5bSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
121002ab73d9fSmrg    '') as_fn_error $? "missing file argument" ;;
121016600fe5bSmrg    esac
121026f5dd5c2Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
12103a0195d5fSmrg    ac_need_defaults=false;;
12104a0195d5fSmrg  --header | --heade | --head | --hea )
12105a0195d5fSmrg    $ac_shift
121066600fe5bSmrg    case $ac_optarg in
121076600fe5bSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
121086600fe5bSmrg    esac
121096f5dd5c2Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12110a0195d5fSmrg    ac_need_defaults=false;;
12111a0195d5fSmrg  --he | --h)
12112a0195d5fSmrg    # Conflict between --help and --header
121132ab73d9fSmrg    as_fn_error $? "ambiguous option: \`$1'
121146f5dd5c2SmrgTry \`$0 --help' for more information.";;
12115a0195d5fSmrg  --help | --hel | -h )
121166600fe5bSmrg    $as_echo "$ac_cs_usage"; exit ;;
12117a0195d5fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12118a0195d5fSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12119a0195d5fSmrg    ac_cs_silent=: ;;
12120a0195d5fSmrg
12121a0195d5fSmrg  # This is an error.
121222ab73d9fSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
121236f5dd5c2SmrgTry \`$0 --help' for more information." ;;
12124a0195d5fSmrg
121256f5dd5c2Smrg  *) as_fn_append ac_config_targets " $1"
12126a0195d5fSmrg     ac_need_defaults=false ;;
12127a0195d5fSmrg
12128a0195d5fSmrg  esac
12129a0195d5fSmrg  shift
12130a0195d5fSmrgdone
12131a0195d5fSmrg
12132a0195d5fSmrgac_configure_extra_args=
12133a0195d5fSmrg
12134a0195d5fSmrgif $ac_cs_silent; then
12135a0195d5fSmrg  exec 6>/dev/null
12136a0195d5fSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
12137a0195d5fSmrgfi
12138a0195d5fSmrg
12139a0195d5fSmrg_ACEOF
121406600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12141a0195d5fSmrgif \$ac_cs_recheck; then
12142feee4651Smrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
121436600fe5bSmrg  shift
121446600fe5bSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
121456600fe5bSmrg  CONFIG_SHELL='$SHELL'
12146a0195d5fSmrg  export CONFIG_SHELL
121476600fe5bSmrg  exec "\$@"
12148a0195d5fSmrgfi
12149a0195d5fSmrg
12150a0195d5fSmrg_ACEOF
121516600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12152a0195d5fSmrgexec 5>>config.log
12153a0195d5fSmrg{
12154a0195d5fSmrg  echo
12155a0195d5fSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12156a0195d5fSmrg## Running $as_me. ##
12157a0195d5fSmrg_ASBOX
121586600fe5bSmrg  $as_echo "$ac_log"
12159a0195d5fSmrg} >&5
12160a0195d5fSmrg
12161a0195d5fSmrg_ACEOF
121626600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12163a0195d5fSmrg#
12164a0195d5fSmrg# INIT-COMMANDS
12165a0195d5fSmrg#
12166a0195d5fSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12167a0195d5fSmrg
12168a0195d5fSmrg_ACEOF
12169a0195d5fSmrg
121706600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12171a0195d5fSmrg
12172a0195d5fSmrg# Handling of arguments.
12173a0195d5fSmrgfor ac_config_target in $ac_config_targets
12174a0195d5fSmrgdo
12175a0195d5fSmrg  case $ac_config_target in
121766f5dd5c2Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
121772ab73d9fSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12178a0195d5fSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12179ff6cf368Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12180a0195d5fSmrg
121812ab73d9fSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12182a0195d5fSmrg  esac
12183a0195d5fSmrgdone
12184a0195d5fSmrg
12185a0195d5fSmrg
12186a0195d5fSmrg# If the user did not use the arguments to specify the items to instantiate,
12187a0195d5fSmrg# then the envvar interface is used.  Set only those that are not.
12188a0195d5fSmrg# We use the long form for the default assignment because of an extremely
12189a0195d5fSmrg# bizarre bug on SunOS 4.1.3.
12190a0195d5fSmrgif $ac_need_defaults; then
12191a0195d5fSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12192a0195d5fSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12193a0195d5fSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12194a0195d5fSmrgfi
12195a0195d5fSmrg
12196a0195d5fSmrg# Have a temporary directory for convenience.  Make it in the build tree
12197a0195d5fSmrg# simply because there is no reason against having it here, and in addition,
12198a0195d5fSmrg# creating and moving files from /tmp can sometimes cause problems.
12199a0195d5fSmrg# Hook for its removal unless debugging.
12200a0195d5fSmrg# Note that there is a small window in which the directory will not be cleaned:
12201a0195d5fSmrg# after its creation but before its name has been assigned to `$tmp'.
12202a0195d5fSmrg$debug ||
12203a0195d5fSmrg{
122042ab73d9fSmrg  tmp= ac_tmp=
12205a0195d5fSmrg  trap 'exit_status=$?
122062ab73d9fSmrg  : "${ac_tmp:=$tmp}"
122072ab73d9fSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12208a0195d5fSmrg' 0
122096f5dd5c2Smrg  trap 'as_fn_exit 1' 1 2 13 15
12210a0195d5fSmrg}
12211a0195d5fSmrg# Create a (secure) tmp directory for tmp files.
12212a0195d5fSmrg
12213a0195d5fSmrg{
12214a0195d5fSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
122152ab73d9fSmrg  test -d "$tmp"
12216a0195d5fSmrg}  ||
12217a0195d5fSmrg{
12218a0195d5fSmrg  tmp=./conf$$-$RANDOM
12219a0195d5fSmrg  (umask 077 && mkdir "$tmp")
122202ab73d9fSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
122212ab73d9fSmrgac_tmp=$tmp
12222a0195d5fSmrg
122236600fe5bSmrg# Set up the scripts for CONFIG_FILES section.
122246600fe5bSmrg# No need to generate them if there are no CONFIG_FILES.
122256600fe5bSmrg# This happens for instance with `./config.status config.h'.
12226a0195d5fSmrgif test -n "$CONFIG_FILES"; then
12227a0195d5fSmrg
12228a0195d5fSmrg
122296f5dd5c2Smrgac_cr=`echo X | tr X '\015'`
122306f5dd5c2Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
122316f5dd5c2Smrg# But we know of no other shell where ac_cr would be empty at this
122326f5dd5c2Smrg# point, so we can use a bashism as a fallback.
122336f5dd5c2Smrgif test "x$ac_cr" = x; then
122346f5dd5c2Smrg  eval ac_cr=\$\'\\r\'
122356f5dd5c2Smrgfi
122366600fe5bSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
122376600fe5bSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
122382ab73d9fSmrg  ac_cs_awk_cr='\\r'
122396600fe5bSmrgelse
122406600fe5bSmrg  ac_cs_awk_cr=$ac_cr
12241a0195d5fSmrgfi
12242a0195d5fSmrg
122432ab73d9fSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12244a0195d5fSmrg_ACEOF
12245a0195d5fSmrg
12246a0195d5fSmrg
122476600fe5bSmrg{
122486600fe5bSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
122496600fe5bSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
122506600fe5bSmrg  echo "_ACEOF"
122516600fe5bSmrg} >conf$$subs.sh ||
122522ab73d9fSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
122532ab73d9fSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12254a0195d5fSmrgac_delim='%!_!# '
12255a0195d5fSmrgfor ac_last_try in false false false false false :; do
122566600fe5bSmrg  . ./conf$$subs.sh ||
122572ab73d9fSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12258a0195d5fSmrg
122596600fe5bSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
122606600fe5bSmrg  if test $ac_delim_n = $ac_delim_num; then
12261a0195d5fSmrg    break
12262a0195d5fSmrg  elif $ac_last_try; then
122632ab73d9fSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12264a0195d5fSmrg  else
12265a0195d5fSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12266a0195d5fSmrg  fi
12267a0195d5fSmrgdone
122686600fe5bSmrgrm -f conf$$subs.sh
12269a0195d5fSmrg
122706600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
122712ab73d9fSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
122726600fe5bSmrg_ACEOF
122736600fe5bSmrgsed -n '
122746600fe5bSmrgh
122756600fe5bSmrgs/^/S["/; s/!.*/"]=/
122766600fe5bSmrgp
122776600fe5bSmrgg
122786600fe5bSmrgs/^[^!]*!//
122796600fe5bSmrg:repl
122806600fe5bSmrgt repl
122816600fe5bSmrgs/'"$ac_delim"'$//
122826600fe5bSmrgt delim
122836600fe5bSmrg:nl
122846600fe5bSmrgh
122856f5dd5c2Smrgs/\(.\{148\}\)..*/\1/
122866600fe5bSmrgt more1
122876600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
122886600fe5bSmrgp
122896600fe5bSmrgn
122906600fe5bSmrgb repl
122916600fe5bSmrg:more1
122926600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
122936600fe5bSmrgp
122946600fe5bSmrgg
122956600fe5bSmrgs/.\{148\}//
122966600fe5bSmrgt nl
122976600fe5bSmrg:delim
122986600fe5bSmrgh
122996f5dd5c2Smrgs/\(.\{148\}\)..*/\1/
123006600fe5bSmrgt more2
123016600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
123026600fe5bSmrgp
123036600fe5bSmrgb
123046600fe5bSmrg:more2
123056600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
123066600fe5bSmrgp
123076600fe5bSmrgg
123086600fe5bSmrgs/.\{148\}//
123096600fe5bSmrgt delim
123106600fe5bSmrg' <conf$$subs.awk | sed '
123116600fe5bSmrg/^[^""]/{
123126600fe5bSmrg  N
123136600fe5bSmrg  s/\n//
123146600fe5bSmrg}
123156600fe5bSmrg' >>$CONFIG_STATUS || ac_write_fail=1
123166600fe5bSmrgrm -f conf$$subs.awk
123176600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
123186600fe5bSmrg_ACAWK
123192ab73d9fSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
123206600fe5bSmrg  for (key in S) S_is_set[key] = 1
123216600fe5bSmrg  FS = ""
123226600fe5bSmrg
123236600fe5bSmrg}
123246600fe5bSmrg{
123256600fe5bSmrg  line = $ 0
123266600fe5bSmrg  nfields = split(line, field, "@")
123276600fe5bSmrg  substed = 0
123286600fe5bSmrg  len = length(field[1])
123296600fe5bSmrg  for (i = 2; i < nfields; i++) {
123306600fe5bSmrg    key = field[i]
123316600fe5bSmrg    keylen = length(key)
123326600fe5bSmrg    if (S_is_set[key]) {
123336600fe5bSmrg      value = S[key]
123346600fe5bSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
123356600fe5bSmrg      len += length(value) + length(field[++i])
123366600fe5bSmrg      substed = 1
123376600fe5bSmrg    } else
123386600fe5bSmrg      len += 1 + keylen
123396600fe5bSmrg  }
123406600fe5bSmrg
123416600fe5bSmrg  print line
123426600fe5bSmrg}
12343a0195d5fSmrg
123446600fe5bSmrg_ACAWK
12345a0195d5fSmrg_ACEOF
123466600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
123476600fe5bSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
123486600fe5bSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
123496600fe5bSmrgelse
123506600fe5bSmrg  cat
123512ab73d9fSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
123522ab73d9fSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12353a0195d5fSmrg_ACEOF
12354a0195d5fSmrg
123552ab73d9fSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
123562ab73d9fSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12357a0195d5fSmrg# trailing colons and then remove the whole line if VPATH becomes empty
12358a0195d5fSmrg# (actually we leave an empty line to preserve line numbers).
12359a0195d5fSmrgif test "x$srcdir" = x.; then
123602ab73d9fSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
123612ab73d9fSmrgh
123622ab73d9fSmrgs///
123632ab73d9fSmrgs/^/:/
123642ab73d9fSmrgs/[	 ]*$/:/
123652ab73d9fSmrgs/:\$(srcdir):/:/g
123662ab73d9fSmrgs/:\${srcdir}:/:/g
123672ab73d9fSmrgs/:@srcdir@:/:/g
123682ab73d9fSmrgs/^:*//
12369a0195d5fSmrgs/:*$//
123702ab73d9fSmrgx
123712ab73d9fSmrgs/\(=[	 ]*\).*/\1/
123722ab73d9fSmrgG
123732ab73d9fSmrgs/\n//
12374a0195d5fSmrgs/^[^=]*=[	 ]*$//
12375a0195d5fSmrg}'
12376a0195d5fSmrgfi
12377a0195d5fSmrg
123786600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12379a0195d5fSmrgfi # test -n "$CONFIG_FILES"
12380a0195d5fSmrg
123816600fe5bSmrg# Set up the scripts for CONFIG_HEADERS section.
123826600fe5bSmrg# No need to generate them if there are no CONFIG_HEADERS.
123836600fe5bSmrg# This happens for instance with `./config.status Makefile'.
123846600fe5bSmrgif test -n "$CONFIG_HEADERS"; then
123852ab73d9fSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
123866600fe5bSmrgBEGIN {
123876600fe5bSmrg_ACEOF
123886600fe5bSmrg
123896600fe5bSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
123906600fe5bSmrg# here-document in config.status, that substitutes the proper values into
123916600fe5bSmrg# config.h.in to produce config.h.
123926600fe5bSmrg
123936600fe5bSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
123946600fe5bSmrg# handling of long lines.
123956600fe5bSmrgac_delim='%!_!# '
123966600fe5bSmrgfor ac_last_try in false false :; do
123972ab73d9fSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
123982ab73d9fSmrg  if test -z "$ac_tt"; then
123996600fe5bSmrg    break
124006600fe5bSmrg  elif $ac_last_try; then
124012ab73d9fSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
124026600fe5bSmrg  else
124036600fe5bSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
124046600fe5bSmrg  fi
124056600fe5bSmrgdone
124066600fe5bSmrg
124076600fe5bSmrg# For the awk script, D is an array of macro values keyed by name,
124086600fe5bSmrg# likewise P contains macro parameters if any.  Preserve backslash
124096600fe5bSmrg# newline sequences.
124106600fe5bSmrg
124116600fe5bSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
124126600fe5bSmrgsed -n '
124136600fe5bSmrgs/.\{148\}/&'"$ac_delim"'/g
124146600fe5bSmrgt rset
124156600fe5bSmrg:rset
124166600fe5bSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
124176600fe5bSmrgt def
124186600fe5bSmrgd
124196600fe5bSmrg:def
124206600fe5bSmrgs/\\$//
124216600fe5bSmrgt bsnl
124226600fe5bSmrgs/["\\]/\\&/g
124236600fe5bSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
124246600fe5bSmrgD["\1"]=" \3"/p
124256600fe5bSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
124266600fe5bSmrgd
124276600fe5bSmrg:bsnl
124286600fe5bSmrgs/["\\]/\\&/g
124296600fe5bSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
124306600fe5bSmrgD["\1"]=" \3\\\\\\n"\\/p
124316600fe5bSmrgt cont
124326600fe5bSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
124336600fe5bSmrgt cont
124346600fe5bSmrgd
124356600fe5bSmrg:cont
124366600fe5bSmrgn
124376600fe5bSmrgs/.\{148\}/&'"$ac_delim"'/g
124386600fe5bSmrgt clear
124396600fe5bSmrg:clear
124406600fe5bSmrgs/\\$//
124416600fe5bSmrgt bsnlc
124426600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
124436600fe5bSmrgd
124446600fe5bSmrg:bsnlc
124456600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
124466600fe5bSmrgb cont
124476600fe5bSmrg' <confdefs.h | sed '
124486600fe5bSmrgs/'"$ac_delim"'/"\\\
124496600fe5bSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
124506600fe5bSmrg
124516600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
124526600fe5bSmrg  for (key in D) D_is_set[key] = 1
124536600fe5bSmrg  FS = ""
124546600fe5bSmrg}
124556600fe5bSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
124566600fe5bSmrg  line = \$ 0
124576600fe5bSmrg  split(line, arg, " ")
124586600fe5bSmrg  if (arg[1] == "#") {
124596600fe5bSmrg    defundef = arg[2]
124606600fe5bSmrg    mac1 = arg[3]
124616600fe5bSmrg  } else {
124626600fe5bSmrg    defundef = substr(arg[1], 2)
124636600fe5bSmrg    mac1 = arg[2]
124646600fe5bSmrg  }
124656600fe5bSmrg  split(mac1, mac2, "(") #)
124666600fe5bSmrg  macro = mac2[1]
124676600fe5bSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
124686600fe5bSmrg  if (D_is_set[macro]) {
124696600fe5bSmrg    # Preserve the white space surrounding the "#".
124706600fe5bSmrg    print prefix "define", macro P[macro] D[macro]
124716600fe5bSmrg    next
124726600fe5bSmrg  } else {
124736600fe5bSmrg    # Replace #undef with comments.  This is necessary, for example,
124746600fe5bSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
124756600fe5bSmrg    # on some systems where configure will not decide to define it.
124766600fe5bSmrg    if (defundef == "undef") {
124776600fe5bSmrg      print "/*", prefix defundef, macro, "*/"
124786600fe5bSmrg      next
124796600fe5bSmrg    }
124806600fe5bSmrg  }
124816600fe5bSmrg}
124826600fe5bSmrg{ print }
124836600fe5bSmrg_ACAWK
124846600fe5bSmrg_ACEOF
124856600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
124862ab73d9fSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
124876600fe5bSmrgfi # test -n "$CONFIG_HEADERS"
124886600fe5bSmrg
12489a0195d5fSmrg
124906600fe5bSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
124916600fe5bSmrgshift
124926600fe5bSmrgfor ac_tag
12493a0195d5fSmrgdo
12494a0195d5fSmrg  case $ac_tag in
12495a0195d5fSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
12496a0195d5fSmrg  esac
12497a0195d5fSmrg  case $ac_mode$ac_tag in
12498a0195d5fSmrg  :[FHL]*:*);;
124992ab73d9fSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12500a0195d5fSmrg  :[FH]-) ac_tag=-:-;;
12501a0195d5fSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12502a0195d5fSmrg  esac
12503a0195d5fSmrg  ac_save_IFS=$IFS
12504a0195d5fSmrg  IFS=:
12505a0195d5fSmrg  set x $ac_tag
12506a0195d5fSmrg  IFS=$ac_save_IFS
12507a0195d5fSmrg  shift
12508a0195d5fSmrg  ac_file=$1
12509a0195d5fSmrg  shift
12510a0195d5fSmrg
12511a0195d5fSmrg  case $ac_mode in
12512a0195d5fSmrg  :L) ac_source=$1;;
12513a0195d5fSmrg  :[FH])
12514a0195d5fSmrg    ac_file_inputs=
12515a0195d5fSmrg    for ac_f
12516a0195d5fSmrg    do
12517a0195d5fSmrg      case $ac_f in
125182ab73d9fSmrg      -) ac_f="$ac_tmp/stdin";;
12519a0195d5fSmrg      *) # Look for the file first in the build tree, then in the source tree
12520a0195d5fSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12521a0195d5fSmrg	 # because $ac_f cannot contain `:'.
12522a0195d5fSmrg	 test -f "$ac_f" ||
12523a0195d5fSmrg	   case $ac_f in
12524a0195d5fSmrg	   [\\/$]*) false;;
12525a0195d5fSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12526a0195d5fSmrg	   esac ||
125272ab73d9fSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12528a0195d5fSmrg      esac
125296600fe5bSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
125306f5dd5c2Smrg      as_fn_append ac_file_inputs " '$ac_f'"
12531a0195d5fSmrg    done
12532a0195d5fSmrg
12533a0195d5fSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
12534a0195d5fSmrg    # use $as_me), people would be surprised to read:
12535a0195d5fSmrg    #    /* config.h.  Generated by config.status.  */
125366600fe5bSmrg    configure_input='Generated from '`
125376600fe5bSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
125386600fe5bSmrg	`' by configure.'
12539a0195d5fSmrg    if test x"$ac_file" != x-; then
12540a0195d5fSmrg      configure_input="$ac_file.  $configure_input"
125416f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
125426600fe5bSmrg$as_echo "$as_me: creating $ac_file" >&6;}
12543a0195d5fSmrg    fi
125446600fe5bSmrg    # Neutralize special characters interpreted by sed in replacement strings.
125456600fe5bSmrg    case $configure_input in #(
125466600fe5bSmrg    *\&* | *\|* | *\\* )
125476600fe5bSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
125486600fe5bSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
125496600fe5bSmrg    *) ac_sed_conf_input=$configure_input;;
125506600fe5bSmrg    esac
12551a0195d5fSmrg
12552a0195d5fSmrg    case $ac_tag in
125532ab73d9fSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
125542ab73d9fSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12555a0195d5fSmrg    esac
12556a0195d5fSmrg    ;;
12557a0195d5fSmrg  esac
12558a0195d5fSmrg
12559a0195d5fSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
12560a0195d5fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12561a0195d5fSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
12562a0195d5fSmrg	 X"$ac_file" : 'X\(//\)$' \| \
12563a0195d5fSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
125646600fe5bSmrg$as_echo X"$ac_file" |
12565a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12566a0195d5fSmrg	    s//\1/
12567a0195d5fSmrg	    q
12568a0195d5fSmrg	  }
12569a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
12570a0195d5fSmrg	    s//\1/
12571a0195d5fSmrg	    q
12572a0195d5fSmrg	  }
12573a0195d5fSmrg	  /^X\(\/\/\)$/{
12574a0195d5fSmrg	    s//\1/
12575a0195d5fSmrg	    q
12576a0195d5fSmrg	  }
12577a0195d5fSmrg	  /^X\(\/\).*/{
12578a0195d5fSmrg	    s//\1/
12579a0195d5fSmrg	    q
12580a0195d5fSmrg	  }
12581a0195d5fSmrg	  s/.*/./; q'`
125826f5dd5c2Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
12583a0195d5fSmrg  ac_builddir=.
12584a0195d5fSmrg
12585a0195d5fSmrgcase "$ac_dir" in
12586a0195d5fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12587a0195d5fSmrg*)
125886600fe5bSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12589a0195d5fSmrg  # A ".." for each directory in $ac_dir_suffix.
125906600fe5bSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12591a0195d5fSmrg  case $ac_top_builddir_sub in
12592a0195d5fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12593a0195d5fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12594a0195d5fSmrg  esac ;;
12595a0195d5fSmrgesac
12596a0195d5fSmrgac_abs_top_builddir=$ac_pwd
12597a0195d5fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
12598a0195d5fSmrg# for backward compatibility:
12599a0195d5fSmrgac_top_builddir=$ac_top_build_prefix
12600a0195d5fSmrg
12601a0195d5fSmrgcase $srcdir in
12602a0195d5fSmrg  .)  # We are building in place.
12603a0195d5fSmrg    ac_srcdir=.
12604a0195d5fSmrg    ac_top_srcdir=$ac_top_builddir_sub
12605a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
12606a0195d5fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
12607a0195d5fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
12608a0195d5fSmrg    ac_top_srcdir=$srcdir
12609a0195d5fSmrg    ac_abs_top_srcdir=$srcdir ;;
12610a0195d5fSmrg  *) # Relative name.
12611a0195d5fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12612a0195d5fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
12613a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12614a0195d5fSmrgesac
12615a0195d5fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12616a0195d5fSmrg
12617a0195d5fSmrg
12618a0195d5fSmrg  case $ac_mode in
12619a0195d5fSmrg  :F)
12620a0195d5fSmrg  #
12621a0195d5fSmrg  # CONFIG_FILE
12622a0195d5fSmrg  #
12623a0195d5fSmrg
12624a0195d5fSmrg  case $INSTALL in
12625a0195d5fSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12626a0195d5fSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12627a0195d5fSmrg  esac
12628a0195d5fSmrg  ac_MKDIR_P=$MKDIR_P
12629a0195d5fSmrg  case $MKDIR_P in
12630a0195d5fSmrg  [\\/$]* | ?:[\\/]* ) ;;
12631a0195d5fSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12632a0195d5fSmrg  esac
12633a0195d5fSmrg_ACEOF
12634a0195d5fSmrg
126356600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12636a0195d5fSmrg# If the template does not know about datarootdir, expand it.
12637a0195d5fSmrg# FIXME: This hack should be removed a few years after 2.60.
12638a0195d5fSmrgac_datarootdir_hack=; ac_datarootdir_seen=
126396600fe5bSmrgac_sed_dataroot='
126406600fe5bSmrg/datarootdir/ {
12641a0195d5fSmrg  p
12642a0195d5fSmrg  q
12643a0195d5fSmrg}
12644a0195d5fSmrg/@datadir@/p
12645a0195d5fSmrg/@docdir@/p
12646a0195d5fSmrg/@infodir@/p
12647a0195d5fSmrg/@localedir@/p
126486f5dd5c2Smrg/@mandir@/p'
126496600fe5bSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12650a0195d5fSmrg*datarootdir*) ac_datarootdir_seen=yes;;
12651a0195d5fSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
126526f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
126536600fe5bSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12654a0195d5fSmrg_ACEOF
126556600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12656a0195d5fSmrg  ac_datarootdir_hack='
12657a0195d5fSmrg  s&@datadir@&$datadir&g
12658a0195d5fSmrg  s&@docdir@&$docdir&g
12659a0195d5fSmrg  s&@infodir@&$infodir&g
12660a0195d5fSmrg  s&@localedir@&$localedir&g
12661a0195d5fSmrg  s&@mandir@&$mandir&g
126626f5dd5c2Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
12663a0195d5fSmrgesac
12664a0195d5fSmrg_ACEOF
12665a0195d5fSmrg
12666a0195d5fSmrg# Neutralize VPATH when `$srcdir' = `.'.
12667a0195d5fSmrg# Shell code in configure.ac might set extrasub.
12668a0195d5fSmrg# FIXME: do we really want to maintain this feature?
126696600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
126706600fe5bSmrgac_sed_extra="$ac_vpsub
12671a0195d5fSmrg$extrasub
12672a0195d5fSmrg_ACEOF
126736600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12674a0195d5fSmrg:t
12675a0195d5fSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
126766600fe5bSmrgs|@configure_input@|$ac_sed_conf_input|;t t
12677a0195d5fSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
126786600fe5bSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
12679a0195d5fSmrgs&@srcdir@&$ac_srcdir&;t t
12680a0195d5fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
12681a0195d5fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
12682a0195d5fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12683a0195d5fSmrgs&@builddir@&$ac_builddir&;t t
12684a0195d5fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
12685a0195d5fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12686a0195d5fSmrgs&@INSTALL@&$ac_INSTALL&;t t
12687a0195d5fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
12688a0195d5fSmrg$ac_datarootdir_hack
126896600fe5bSmrg"
126902ab73d9fSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
126912ab73d9fSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12692a0195d5fSmrg
12693a0195d5fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
126942ab73d9fSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
126952ab73d9fSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
126962ab73d9fSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
126976f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
126982ab73d9fSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
126996600fe5bSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
127002ab73d9fSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
12701a0195d5fSmrg
127022ab73d9fSmrg  rm -f "$ac_tmp/stdin"
12703a0195d5fSmrg  case $ac_file in
127042ab73d9fSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
127052ab73d9fSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
127066600fe5bSmrg  esac \
127072ab73d9fSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12708a0195d5fSmrg ;;
12709a0195d5fSmrg  :H)
12710a0195d5fSmrg  #
12711a0195d5fSmrg  # CONFIG_HEADER
12712a0195d5fSmrg  #
12713a0195d5fSmrg  if test x"$ac_file" != x-; then
127146600fe5bSmrg    {
127156600fe5bSmrg      $as_echo "/* $configure_input  */" \
127162ab73d9fSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
127172ab73d9fSmrg    } >"$ac_tmp/config.h" \
127182ab73d9fSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
127192ab73d9fSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
127206f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
127216600fe5bSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
12722a0195d5fSmrg    else
127236600fe5bSmrg      rm -f "$ac_file"
127242ab73d9fSmrg      mv "$ac_tmp/config.h" "$ac_file" \
127252ab73d9fSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12726a0195d5fSmrg    fi
12727a0195d5fSmrg  else
127286600fe5bSmrg    $as_echo "/* $configure_input  */" \
127292ab73d9fSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
127302ab73d9fSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
12731a0195d5fSmrg  fi
127326600fe5bSmrg# Compute "$ac_file"'s index in $config_headers.
127336600fe5bSmrg_am_arg="$ac_file"
12734a0195d5fSmrg_am_stamp_count=1
12735a0195d5fSmrgfor _am_header in $config_headers :; do
12736a0195d5fSmrg  case $_am_header in
12737a0195d5fSmrg    $_am_arg | $_am_arg:* )
12738a0195d5fSmrg      break ;;
12739a0195d5fSmrg    * )
12740a0195d5fSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12741a0195d5fSmrg  esac
12742a0195d5fSmrgdone
12743a0195d5fSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12744a0195d5fSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12745a0195d5fSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12746a0195d5fSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
12747a0195d5fSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
127486600fe5bSmrg$as_echo X"$_am_arg" |
12749a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12750a0195d5fSmrg	    s//\1/
12751a0195d5fSmrg	    q
12752a0195d5fSmrg	  }
12753a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
12754a0195d5fSmrg	    s//\1/
12755a0195d5fSmrg	    q
12756a0195d5fSmrg	  }
12757a0195d5fSmrg	  /^X\(\/\/\)$/{
12758a0195d5fSmrg	    s//\1/
12759a0195d5fSmrg	    q
12760a0195d5fSmrg	  }
12761a0195d5fSmrg	  /^X\(\/\).*/{
12762a0195d5fSmrg	    s//\1/
12763a0195d5fSmrg	    q
12764a0195d5fSmrg	  }
12765a0195d5fSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
12766a0195d5fSmrg ;;
12767a0195d5fSmrg
127686f5dd5c2Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
127696600fe5bSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
12770a0195d5fSmrg ;;
12771a0195d5fSmrg  esac
12772a0195d5fSmrg
12773a0195d5fSmrg
12774a0195d5fSmrg  case $ac_file$ac_mode in
127756600fe5bSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1277640a76396Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
127776600fe5bSmrg  # are listed without --file.  Let's play safe and only enable the eval
127786600fe5bSmrg  # if we detect the quoting.
127796600fe5bSmrg  case $CONFIG_FILES in
127806600fe5bSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
127816600fe5bSmrg  *)   set x $CONFIG_FILES ;;
127826600fe5bSmrg  esac
127836600fe5bSmrg  shift
127846600fe5bSmrg  for mf
127856600fe5bSmrg  do
127866600fe5bSmrg    # Strip MF so we end up with the name of the file.
127876600fe5bSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
127886600fe5bSmrg    # Check whether this is an Automake generated Makefile or not.
1278940a76396Smrg    # We used to match only the files named 'Makefile.in', but
127906600fe5bSmrg    # some people rename them; so instead we look at the file content.
127916600fe5bSmrg    # Grep'ing the first line is not enough: some people post-process
127926600fe5bSmrg    # each Makefile.in and add a new line on top of each file to say so.
127936600fe5bSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
127946600fe5bSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
127956600fe5bSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
127966600fe5bSmrg      dirpart=`$as_dirname -- "$mf" ||
12797a0195d5fSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12798a0195d5fSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
12799a0195d5fSmrg	 X"$mf" : 'X\(//\)$' \| \
12800a0195d5fSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
128016600fe5bSmrg$as_echo X"$mf" |
12802a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12803a0195d5fSmrg	    s//\1/
12804a0195d5fSmrg	    q
12805a0195d5fSmrg	  }
12806a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
12807a0195d5fSmrg	    s//\1/
12808a0195d5fSmrg	    q
12809a0195d5fSmrg	  }
12810a0195d5fSmrg	  /^X\(\/\/\)$/{
12811a0195d5fSmrg	    s//\1/
12812a0195d5fSmrg	    q
12813a0195d5fSmrg	  }
12814a0195d5fSmrg	  /^X\(\/\).*/{
12815a0195d5fSmrg	    s//\1/
12816a0195d5fSmrg	    q
12817a0195d5fSmrg	  }
12818a0195d5fSmrg	  s/.*/./; q'`
128196600fe5bSmrg    else
128206600fe5bSmrg      continue
128216600fe5bSmrg    fi
128226600fe5bSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
1282340a76396Smrg    # from the Makefile without running 'make'.
128246600fe5bSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
128256600fe5bSmrg    test -z "$DEPDIR" && continue
128266600fe5bSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
1282740a76396Smrg    test -z "$am__include" && continue
128286600fe5bSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
128296600fe5bSmrg    # Find all dependency output files, they are included files with
128306600fe5bSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
128316600fe5bSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
128326600fe5bSmrg    # expansion.
128336600fe5bSmrg    for file in `sed -n "
128346600fe5bSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1283540a76396Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
128366600fe5bSmrg      # Make sure the directory exists.
128376600fe5bSmrg      test -f "$dirpart/$file" && continue
128386600fe5bSmrg      fdir=`$as_dirname -- "$file" ||
12839a0195d5fSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12840a0195d5fSmrg	 X"$file" : 'X\(//\)[^/]' \| \
12841a0195d5fSmrg	 X"$file" : 'X\(//\)$' \| \
12842a0195d5fSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
128436600fe5bSmrg$as_echo X"$file" |
12844a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12845a0195d5fSmrg	    s//\1/
12846a0195d5fSmrg	    q
12847a0195d5fSmrg	  }
12848a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
12849a0195d5fSmrg	    s//\1/
12850a0195d5fSmrg	    q
12851a0195d5fSmrg	  }
12852a0195d5fSmrg	  /^X\(\/\/\)$/{
12853a0195d5fSmrg	    s//\1/
12854a0195d5fSmrg	    q
12855a0195d5fSmrg	  }
12856a0195d5fSmrg	  /^X\(\/\).*/{
12857a0195d5fSmrg	    s//\1/
12858a0195d5fSmrg	    q
12859a0195d5fSmrg	  }
12860a0195d5fSmrg	  s/.*/./; q'`
128616f5dd5c2Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
128626600fe5bSmrg      # echo "creating $dirpart/$file"
128636600fe5bSmrg      echo '# dummy' > "$dirpart/$file"
128646600fe5bSmrg    done
12865a0195d5fSmrg  done
128666600fe5bSmrg}
12867a0195d5fSmrg ;;
12868a0195d5fSmrg
12869a0195d5fSmrg  esac
12870a0195d5fSmrgdone # for ac_tag
12871a0195d5fSmrg
12872a0195d5fSmrg
128736f5dd5c2Smrgas_fn_exit 0
12874a0195d5fSmrg_ACEOF
12875a0195d5fSmrgac_clean_files=$ac_clean_files_save
12876a0195d5fSmrg
128776600fe5bSmrgtest $ac_write_fail = 0 ||
128782ab73d9fSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
128796600fe5bSmrg
12880a0195d5fSmrg
12881a0195d5fSmrg# configure is writing to config.log, and then calls config.status.
12882a0195d5fSmrg# config.status does its own redirection, appending to config.log.
12883a0195d5fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
12884a0195d5fSmrg# by configure, so config.status won't be able to write to it; its
12885a0195d5fSmrg# output is simply discarded.  So we exec the FD to /dev/null,
12886a0195d5fSmrg# effectively closing config.log, so it can be properly (re)opened and
12887a0195d5fSmrg# appended to by config.status.  When coming back to configure, we
12888a0195d5fSmrg# need to make the FD available again.
12889a0195d5fSmrgif test "$no_create" != yes; then
12890a0195d5fSmrg  ac_cs_success=:
12891a0195d5fSmrg  ac_config_status_args=
12892a0195d5fSmrg  test "$silent" = yes &&
12893a0195d5fSmrg    ac_config_status_args="$ac_config_status_args --quiet"
12894a0195d5fSmrg  exec 5>/dev/null
12895a0195d5fSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12896a0195d5fSmrg  exec 5>>config.log
12897a0195d5fSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12898a0195d5fSmrg  # would make configure fail if this is the last instruction.
128992ab73d9fSmrg  $ac_cs_success || as_fn_exit 1
12900a0195d5fSmrgfi
129016600fe5bSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
129026f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
129036600fe5bSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
129046600fe5bSmrgfi
12905a0195d5fSmrg
12906