configure revision cbc4e2be
1eaef79e5Smrg#! /bin/sh
2eaef79e5Smrg# Guess values for system-dependent variables and create Makefiles.
3cbc4e2beSmrg# Generated by GNU Autoconf 2.68 for bitmap 1.0.7.
4eaef79e5Smrg#
5eaef79e5Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6eaef79e5Smrg#
795e0246bSmrg#
8eaef79e5Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
995e0246bSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
1095e0246bSmrg# Foundation, Inc.
1195e0246bSmrg#
1295e0246bSmrg#
13eaef79e5Smrg# This configure script is free software; the Free Software Foundation
14eaef79e5Smrg# gives unlimited permission to copy, distribute and modify it.
1595e0246bSmrg## -------------------- ##
1695e0246bSmrg## M4sh Initialization. ##
1795e0246bSmrg## -------------------- ##
18eaef79e5Smrg
192b32c8f7Smrg# Be more Bourne compatible
202b32c8f7SmrgDUALCASE=1; export DUALCASE # for MKS sh
2195e0246bSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22eaef79e5Smrg  emulate sh
23eaef79e5Smrg  NULLCMD=:
242b32c8f7Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25eaef79e5Smrg  # is contrary to our usage.  Disable this feature.
26eaef79e5Smrg  alias -g '${1+"$@"}'='"$@"'
27eaef79e5Smrg  setopt NO_GLOB_SUBST
28eaef79e5Smrgelse
2995e0246bSmrg  case `(set -o) 2>/dev/null` in #(
3095e0246bSmrg  *posix*) :
3195e0246bSmrg    set -o posix ;; #(
3295e0246bSmrg  *) :
3395e0246bSmrg     ;;
342b32c8f7Smrgesac
35eaef79e5Smrgfi
362b32c8f7Smrg
372b32c8f7Smrg
382b32c8f7Smrgas_nl='
392b32c8f7Smrg'
402b32c8f7Smrgexport as_nl
412b32c8f7Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
422b32c8f7Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
432b32c8f7Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
442b32c8f7Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4595e0246bSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4695e0246bSmrg# but without wasting forks for bash or zsh.
4795e0246bSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4895e0246bSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4995e0246bSmrg  as_echo='print -r --'
5095e0246bSmrg  as_echo_n='print -rn --'
5195e0246bSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
522b32c8f7Smrg  as_echo='printf %s\n'
532b32c8f7Smrg  as_echo_n='printf %s'
542b32c8f7Smrgelse
552b32c8f7Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
562b32c8f7Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
572b32c8f7Smrg    as_echo_n='/usr/ucb/echo -n'
58eaef79e5Smrg  else
592b32c8f7Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
602b32c8f7Smrg    as_echo_n_body='eval
612b32c8f7Smrg      arg=$1;
6295e0246bSmrg      case $arg in #(
632b32c8f7Smrg      *"$as_nl"*)
642b32c8f7Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
652b32c8f7Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
662b32c8f7Smrg      esac;
672b32c8f7Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
682b32c8f7Smrg    '
692b32c8f7Smrg    export as_echo_n_body
702b32c8f7Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71eaef79e5Smrg  fi
722b32c8f7Smrg  export as_echo_body
732b32c8f7Smrg  as_echo='sh -c $as_echo_body as_echo'
742b32c8f7Smrgfi
752b32c8f7Smrg
762b32c8f7Smrg# The user is always right.
772b32c8f7Smrgif test "${PATH_SEPARATOR+set}" != set; then
782b32c8f7Smrg  PATH_SEPARATOR=:
792b32c8f7Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
802b32c8f7Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
812b32c8f7Smrg      PATH_SEPARATOR=';'
822b32c8f7Smrg  }
83eaef79e5Smrgfi
84eaef79e5Smrg
85eaef79e5Smrg
86eaef79e5Smrg# IFS
87eaef79e5Smrg# We need space, tab and new line, in precisely that order.  Quoting is
88eaef79e5Smrg# there to prevent editors from complaining about space-tab.
89eaef79e5Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90eaef79e5Smrg# splitting by setting IFS to empty value.)
91eaef79e5SmrgIFS=" ""	$as_nl"
92eaef79e5Smrg
93eaef79e5Smrg# Find who we are.  Look in the path if we contain no directory separator.
9495e0246bSmrgas_myself=
9595e0246bSmrgcase $0 in #((
96eaef79e5Smrg  *[\\/]* ) as_myself=$0 ;;
97eaef79e5Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98eaef79e5Smrgfor as_dir in $PATH
99eaef79e5Smrgdo
100eaef79e5Smrg  IFS=$as_save_IFS
101eaef79e5Smrg  test -z "$as_dir" && as_dir=.
10295e0246bSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10395e0246bSmrg  done
104eaef79e5SmrgIFS=$as_save_IFS
105eaef79e5Smrg
106eaef79e5Smrg     ;;
107eaef79e5Smrgesac
108eaef79e5Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109eaef79e5Smrg# in which case we are not to be found in the path.
110eaef79e5Smrgif test "x$as_myself" = x; then
111eaef79e5Smrg  as_myself=$0
112eaef79e5Smrgfi
113eaef79e5Smrgif test ! -f "$as_myself"; then
1142b32c8f7Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11595e0246bSmrg  exit 1
116eaef79e5Smrgfi
117eaef79e5Smrg
11895e0246bSmrg# Unset variables that we do not need and which cause bugs (e.g. in
11995e0246bSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12095e0246bSmrg# suppresses any "Segmentation fault" message there.  '((' could
12195e0246bSmrg# trigger a bug in pdksh 5.2.14.
12295e0246bSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
12395e0246bSmrgdo eval test x\${$as_var+set} = xset \
12495e0246bSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125eaef79e5Smrgdone
126eaef79e5SmrgPS1='$ '
127eaef79e5SmrgPS2='> '
128eaef79e5SmrgPS4='+ '
129eaef79e5Smrg
130eaef79e5Smrg# NLS nuisances.
1312b32c8f7SmrgLC_ALL=C
1322b32c8f7Smrgexport LC_ALL
1332b32c8f7SmrgLANGUAGE=C
1342b32c8f7Smrgexport LANGUAGE
135eaef79e5Smrg
13695e0246bSmrg# CDPATH.
13795e0246bSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13895e0246bSmrg
13995e0246bSmrgif test "x$CONFIG_SHELL" = x; then
14095e0246bSmrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
14195e0246bSmrg  emulate sh
14295e0246bSmrg  NULLCMD=:
14395e0246bSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
14495e0246bSmrg  # is contrary to our usage.  Disable this feature.
14595e0246bSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
14695e0246bSmrg  setopt NO_GLOB_SUBST
14795e0246bSmrgelse
14895e0246bSmrg  case \`(set -o) 2>/dev/null\` in #(
14995e0246bSmrg  *posix*) :
15095e0246bSmrg    set -o posix ;; #(
15195e0246bSmrg  *) :
15295e0246bSmrg     ;;
15395e0246bSmrgesac
15495e0246bSmrgfi
15595e0246bSmrg"
15695e0246bSmrg  as_required="as_fn_return () { (exit \$1); }
15795e0246bSmrgas_fn_success () { as_fn_return 0; }
15895e0246bSmrgas_fn_failure () { as_fn_return 1; }
15995e0246bSmrgas_fn_ret_success () { return 0; }
16095e0246bSmrgas_fn_ret_failure () { return 1; }
16195e0246bSmrg
16295e0246bSmrgexitcode=0
16395e0246bSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
16495e0246bSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
16595e0246bSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
16695e0246bSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
16795e0246bSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
16895e0246bSmrg
16995e0246bSmrgelse
17095e0246bSmrg  exitcode=1; echo positional parameters were not saved.
17195e0246bSmrgfi
17295e0246bSmrgtest x\$exitcode = x0 || exit 1"
17395e0246bSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
17495e0246bSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
17595e0246bSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
17695e0246bSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
17795e0246bSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
17895e0246bSmrg  if (eval "$as_required") 2>/dev/null; then :
17995e0246bSmrg  as_have_required=yes
18095e0246bSmrgelse
18195e0246bSmrg  as_have_required=no
18295e0246bSmrgfi
18395e0246bSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
18495e0246bSmrg
18595e0246bSmrgelse
18695e0246bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18795e0246bSmrgas_found=false
18895e0246bSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18995e0246bSmrgdo
19095e0246bSmrg  IFS=$as_save_IFS
19195e0246bSmrg  test -z "$as_dir" && as_dir=.
19295e0246bSmrg  as_found=:
19395e0246bSmrg  case $as_dir in #(
19495e0246bSmrg	 /*)
19595e0246bSmrg	   for as_base in sh bash ksh sh5; do
19695e0246bSmrg	     # Try only shells that exist, to save several forks.
19795e0246bSmrg	     as_shell=$as_dir/$as_base
19895e0246bSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
19995e0246bSmrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
20095e0246bSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
20195e0246bSmrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
20295e0246bSmrg  break 2
20395e0246bSmrgfi
20495e0246bSmrgfi
20595e0246bSmrg	   done;;
20695e0246bSmrg       esac
20795e0246bSmrg  as_found=false
20895e0246bSmrgdone
20995e0246bSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
21095e0246bSmrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
21195e0246bSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
21295e0246bSmrgfi; }
21395e0246bSmrgIFS=$as_save_IFS
21495e0246bSmrg
21595e0246bSmrg
21695e0246bSmrg      if test "x$CONFIG_SHELL" != x; then :
21795e0246bSmrg  # We cannot yet assume a decent shell, so we have to provide a
21895e0246bSmrg	# neutralization value for shells without unset; and this also
21995e0246bSmrg	# works around shells that cannot unset nonexistent variables.
22095e0246bSmrg	# Preserve -v and -x to the replacement shell.
22195e0246bSmrg	BASH_ENV=/dev/null
22295e0246bSmrg	ENV=/dev/null
22395e0246bSmrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
22495e0246bSmrg	export CONFIG_SHELL
22595e0246bSmrg	case $- in # ((((
22695e0246bSmrg	  *v*x* | *x*v* ) as_opts=-vx ;;
22795e0246bSmrg	  *v* ) as_opts=-v ;;
22895e0246bSmrg	  *x* ) as_opts=-x ;;
22995e0246bSmrg	  * ) as_opts= ;;
23095e0246bSmrg	esac
23195e0246bSmrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
23295e0246bSmrgfi
23395e0246bSmrg
23495e0246bSmrg    if test x$as_have_required = xno; then :
23595e0246bSmrg  $as_echo "$0: This script requires a shell more modern than all"
23695e0246bSmrg  $as_echo "$0: the shells that I found on your system."
23795e0246bSmrg  if test x${ZSH_VERSION+set} = xset ; then
23895e0246bSmrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
23995e0246bSmrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
24095e0246bSmrg  else
24195e0246bSmrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
24295e0246bSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
24395e0246bSmrg$0: about your system, including any error possibly output
24495e0246bSmrg$0: before this message. Then install a modern shell, or
24595e0246bSmrg$0: manually run the script under such a shell if you do
24695e0246bSmrg$0: have one."
24795e0246bSmrg  fi
24895e0246bSmrg  exit 1
24995e0246bSmrgfi
25095e0246bSmrgfi
25195e0246bSmrgfi
25295e0246bSmrgSHELL=${CONFIG_SHELL-/bin/sh}
25395e0246bSmrgexport SHELL
25495e0246bSmrg# Unset more variables known to interfere with behavior of common tools.
25595e0246bSmrgCLICOLOR_FORCE= GREP_OPTIONS=
25695e0246bSmrgunset CLICOLOR_FORCE GREP_OPTIONS
25795e0246bSmrg
25895e0246bSmrg## --------------------- ##
25995e0246bSmrg## M4sh Shell Functions. ##
26095e0246bSmrg## --------------------- ##
26195e0246bSmrg# as_fn_unset VAR
26295e0246bSmrg# ---------------
26395e0246bSmrg# Portably unset VAR.
26495e0246bSmrgas_fn_unset ()
26595e0246bSmrg{
26695e0246bSmrg  { eval $1=; unset $1;}
26795e0246bSmrg}
26895e0246bSmrgas_unset=as_fn_unset
26995e0246bSmrg
27095e0246bSmrg# as_fn_set_status STATUS
27195e0246bSmrg# -----------------------
27295e0246bSmrg# Set $? to STATUS, without forking.
27395e0246bSmrgas_fn_set_status ()
27495e0246bSmrg{
27595e0246bSmrg  return $1
27695e0246bSmrg} # as_fn_set_status
27795e0246bSmrg
27895e0246bSmrg# as_fn_exit STATUS
27995e0246bSmrg# -----------------
28095e0246bSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28195e0246bSmrgas_fn_exit ()
28295e0246bSmrg{
28395e0246bSmrg  set +e
28495e0246bSmrg  as_fn_set_status $1
28595e0246bSmrg  exit $1
28695e0246bSmrg} # as_fn_exit
28795e0246bSmrg
28895e0246bSmrg# as_fn_mkdir_p
28995e0246bSmrg# -------------
29095e0246bSmrg# Create "$as_dir" as a directory, including parents if necessary.
29195e0246bSmrgas_fn_mkdir_p ()
29295e0246bSmrg{
29395e0246bSmrg
29495e0246bSmrg  case $as_dir in #(
29595e0246bSmrg  -*) as_dir=./$as_dir;;
29695e0246bSmrg  esac
29795e0246bSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
29895e0246bSmrg    as_dirs=
29995e0246bSmrg    while :; do
30095e0246bSmrg      case $as_dir in #(
30195e0246bSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30295e0246bSmrg      *) as_qdir=$as_dir;;
30395e0246bSmrg      esac
30495e0246bSmrg      as_dirs="'$as_qdir' $as_dirs"
30595e0246bSmrg      as_dir=`$as_dirname -- "$as_dir" ||
30695e0246bSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30795e0246bSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
30895e0246bSmrg	 X"$as_dir" : 'X\(//\)$' \| \
30995e0246bSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31095e0246bSmrg$as_echo X"$as_dir" |
31195e0246bSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31295e0246bSmrg	    s//\1/
31395e0246bSmrg	    q
31495e0246bSmrg	  }
31595e0246bSmrg	  /^X\(\/\/\)[^/].*/{
31695e0246bSmrg	    s//\1/
31795e0246bSmrg	    q
31895e0246bSmrg	  }
31995e0246bSmrg	  /^X\(\/\/\)$/{
32095e0246bSmrg	    s//\1/
32195e0246bSmrg	    q
32295e0246bSmrg	  }
32395e0246bSmrg	  /^X\(\/\).*/{
32495e0246bSmrg	    s//\1/
32595e0246bSmrg	    q
32695e0246bSmrg	  }
32795e0246bSmrg	  s/.*/./; q'`
32895e0246bSmrg      test -d "$as_dir" && break
32995e0246bSmrg    done
33095e0246bSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
33195e0246bSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33295e0246bSmrg
33395e0246bSmrg
33495e0246bSmrg} # as_fn_mkdir_p
33595e0246bSmrg# as_fn_append VAR VALUE
33695e0246bSmrg# ----------------------
33795e0246bSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
33895e0246bSmrg# advantage of any shell optimizations that allow amortized linear growth over
33995e0246bSmrg# repeated appends, instead of the typical quadratic growth present in naive
34095e0246bSmrg# implementations.
34195e0246bSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34295e0246bSmrg  eval 'as_fn_append ()
34395e0246bSmrg  {
34495e0246bSmrg    eval $1+=\$2
34595e0246bSmrg  }'
34695e0246bSmrgelse
34795e0246bSmrg  as_fn_append ()
34895e0246bSmrg  {
34995e0246bSmrg    eval $1=\$$1\$2
35095e0246bSmrg  }
35195e0246bSmrgfi # as_fn_append
35295e0246bSmrg
35395e0246bSmrg# as_fn_arith ARG...
35495e0246bSmrg# ------------------
35595e0246bSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
35695e0246bSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
35795e0246bSmrg# must be portable across $(()) and expr.
35895e0246bSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35995e0246bSmrg  eval 'as_fn_arith ()
36095e0246bSmrg  {
36195e0246bSmrg    as_val=$(( $* ))
36295e0246bSmrg  }'
36395e0246bSmrgelse
36495e0246bSmrg  as_fn_arith ()
36595e0246bSmrg  {
36695e0246bSmrg    as_val=`expr "$@" || test $? -eq 1`
36795e0246bSmrg  }
36895e0246bSmrgfi # as_fn_arith
36995e0246bSmrg
37095e0246bSmrg
37195e0246bSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
37295e0246bSmrg# ----------------------------------------
37395e0246bSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37495e0246bSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37595e0246bSmrg# script with STATUS, using 1 if that was 0.
37695e0246bSmrgas_fn_error ()
37795e0246bSmrg{
37895e0246bSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
37995e0246bSmrg  if test "$4"; then
38095e0246bSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
38195e0246bSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
38295e0246bSmrg  fi
38395e0246bSmrg  $as_echo "$as_me: error: $2" >&2
38495e0246bSmrg  as_fn_exit $as_status
38595e0246bSmrg} # as_fn_error
38695e0246bSmrg
387eaef79e5Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
388eaef79e5Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389eaef79e5Smrg  as_expr=expr
390eaef79e5Smrgelse
391eaef79e5Smrg  as_expr=false
392eaef79e5Smrgfi
393eaef79e5Smrg
394eaef79e5Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395eaef79e5Smrg  as_basename=basename
396eaef79e5Smrgelse
397eaef79e5Smrg  as_basename=false
398eaef79e5Smrgfi
399eaef79e5Smrg
40095e0246bSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40195e0246bSmrg  as_dirname=dirname
40295e0246bSmrgelse
40395e0246bSmrg  as_dirname=false
40495e0246bSmrgfi
405eaef79e5Smrg
406eaef79e5Smrgas_me=`$as_basename -- "$0" ||
407eaef79e5Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408eaef79e5Smrg	 X"$0" : 'X\(//\)$' \| \
409eaef79e5Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4102b32c8f7Smrg$as_echo X/"$0" |
411eaef79e5Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
412eaef79e5Smrg	    s//\1/
413eaef79e5Smrg	    q
414eaef79e5Smrg	  }
415eaef79e5Smrg	  /^X\/\(\/\/\)$/{
416eaef79e5Smrg	    s//\1/
417eaef79e5Smrg	    q
418eaef79e5Smrg	  }
419eaef79e5Smrg	  /^X\/\(\/\).*/{
420eaef79e5Smrg	    s//\1/
421eaef79e5Smrg	    q
422eaef79e5Smrg	  }
423eaef79e5Smrg	  s/.*/./; q'`
424eaef79e5Smrg
42595e0246bSmrg# Avoid depending upon Character Ranges.
42695e0246bSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
42795e0246bSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42895e0246bSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
42995e0246bSmrgas_cr_digits='0123456789'
43095e0246bSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
431eaef79e5Smrg
432eaef79e5Smrg
43395e0246bSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
43495e0246bSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
43595e0246bSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
43695e0246bSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
43795e0246bSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
43895e0246bSmrg  sed -n '
43995e0246bSmrg    p
44095e0246bSmrg    /[$]LINENO/=
44195e0246bSmrg  ' <$as_myself |
44295e0246bSmrg    sed '
44395e0246bSmrg      s/[$]LINENO.*/&-/
44495e0246bSmrg      t lineno
44595e0246bSmrg      b
44695e0246bSmrg      :lineno
44795e0246bSmrg      N
44895e0246bSmrg      :loop
44995e0246bSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
45095e0246bSmrg      t loop
45195e0246bSmrg      s/-\n.*//
45295e0246bSmrg    ' >$as_me.lineno &&
45395e0246bSmrg  chmod +x "$as_me.lineno" ||
45495e0246bSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455eaef79e5Smrg
45695e0246bSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
45795e0246bSmrg  # (the dirname of $[0] is not the place where we might find the
45895e0246bSmrg  # original and so on.  Autoconf is especially sensitive to this).
45995e0246bSmrg  . "./$as_me.lineno"
46095e0246bSmrg  # Exit status is that of the last command.
46195e0246bSmrg  exit
462eaef79e5Smrg}
463eaef79e5Smrg
46495e0246bSmrgECHO_C= ECHO_N= ECHO_T=
46595e0246bSmrgcase `echo -n x` in #(((((
46695e0246bSmrg-n*)
46795e0246bSmrg  case `echo 'xy\c'` in
46895e0246bSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
46995e0246bSmrg  xy)  ECHO_C='\c';;
47095e0246bSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
47195e0246bSmrg       ECHO_T='	';;
47295e0246bSmrg  esac;;
47395e0246bSmrg*)
47495e0246bSmrg  ECHO_N='-n';;
47595e0246bSmrgesac
476eaef79e5Smrg
47795e0246bSmrgrm -f conf$$ conf$$.exe conf$$.file
47895e0246bSmrgif test -d conf$$.dir; then
47995e0246bSmrg  rm -f conf$$.dir/conf$$.file
48095e0246bSmrgelse
48195e0246bSmrg  rm -f conf$$.dir
48295e0246bSmrg  mkdir conf$$.dir 2>/dev/null
483eaef79e5Smrgfi
48495e0246bSmrgif (echo >conf$$.file) 2>/dev/null; then
48595e0246bSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
48695e0246bSmrg    as_ln_s='ln -s'
48795e0246bSmrg    # ... but there are two gotchas:
48895e0246bSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
48995e0246bSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
49095e0246bSmrg    # In both cases, we have to default to `cp -p'.
49195e0246bSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
49295e0246bSmrg      as_ln_s='cp -p'
49395e0246bSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
49495e0246bSmrg    as_ln_s=ln
49595e0246bSmrg  else
49695e0246bSmrg    as_ln_s='cp -p'
49795e0246bSmrg  fi
498eaef79e5Smrgelse
49995e0246bSmrg  as_ln_s='cp -p'
500eaef79e5Smrgfi
50195e0246bSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
50295e0246bSmrgrmdir conf$$.dir 2>/dev/null
503eaef79e5Smrg
50495e0246bSmrgif mkdir -p . 2>/dev/null; then
50595e0246bSmrg  as_mkdir_p='mkdir -p "$as_dir"'
50695e0246bSmrgelse
50795e0246bSmrg  test -d ./-p && rmdir ./-p
50895e0246bSmrg  as_mkdir_p=false
509eaef79e5Smrgfi
510eaef79e5Smrg
51195e0246bSmrgif test -x / >/dev/null 2>&1; then
51295e0246bSmrg  as_test_x='test -x'
513eaef79e5Smrgelse
51495e0246bSmrg  if ls -dL / >/dev/null 2>&1; then
51595e0246bSmrg    as_ls_L_option=L
51695e0246bSmrg  else
51795e0246bSmrg    as_ls_L_option=
51895e0246bSmrg  fi
51995e0246bSmrg  as_test_x='
52095e0246bSmrg    eval sh -c '\''
52195e0246bSmrg      if test -d "$1"; then
52295e0246bSmrg	test -d "$1/.";
52395e0246bSmrg      else
52495e0246bSmrg	case $1 in #(
52595e0246bSmrg	-*)set "./$1";;
52695e0246bSmrg	esac;
52795e0246bSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
52895e0246bSmrg	???[sx]*):;;*)false;;esac;fi
52995e0246bSmrg    '\'' sh
53095e0246bSmrg  '
531eaef79e5Smrgfi
53295e0246bSmrgas_executable_p=$as_test_x
533eaef79e5Smrg
53495e0246bSmrg# Sed expression to map a string onto a valid CPP name.
53595e0246bSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536eaef79e5Smrg
53795e0246bSmrg# Sed expression to map a string onto a valid variable name.
53895e0246bSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539eaef79e5Smrg
540eaef79e5Smrg
54195e0246bSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
54295e0246bSmrgexec 6>&1
543eaef79e5Smrg
544eaef79e5Smrg# Name of the host.
54595e0246bSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546eaef79e5Smrg# so uname gets run too.
547eaef79e5Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548eaef79e5Smrg
549eaef79e5Smrg#
550eaef79e5Smrg# Initializations.
551eaef79e5Smrg#
552eaef79e5Smrgac_default_prefix=/usr/local
553eaef79e5Smrgac_clean_files=
554eaef79e5Smrgac_config_libobj_dir=.
555eaef79e5SmrgLIBOBJS=
556eaef79e5Smrgcross_compiling=no
557eaef79e5Smrgsubdirs=
558eaef79e5SmrgMFLAGS=
559eaef79e5SmrgMAKEFLAGS=
560eaef79e5Smrg
561eaef79e5Smrg# Identity of this package.
562eaef79e5SmrgPACKAGE_NAME='bitmap'
563eaef79e5SmrgPACKAGE_TARNAME='bitmap'
564cbc4e2beSmrgPACKAGE_VERSION='1.0.7'
565cbc4e2beSmrgPACKAGE_STRING='bitmap 1.0.7'
566eaef79e5SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
56795e0246bSmrgPACKAGE_URL=''
568eaef79e5Smrg
569cbc4e2beSmrgac_unique_file="Makefile.am"
5702b32c8f7Smrg# Factoring default headers for most tests.
5712b32c8f7Smrgac_includes_default="\
5722b32c8f7Smrg#include <stdio.h>
5732b32c8f7Smrg#ifdef HAVE_SYS_TYPES_H
5742b32c8f7Smrg# include <sys/types.h>
5752b32c8f7Smrg#endif
5762b32c8f7Smrg#ifdef HAVE_SYS_STAT_H
5772b32c8f7Smrg# include <sys/stat.h>
5782b32c8f7Smrg#endif
5792b32c8f7Smrg#ifdef STDC_HEADERS
5802b32c8f7Smrg# include <stdlib.h>
5812b32c8f7Smrg# include <stddef.h>
5822b32c8f7Smrg#else
5832b32c8f7Smrg# ifdef HAVE_STDLIB_H
5842b32c8f7Smrg#  include <stdlib.h>
5852b32c8f7Smrg# endif
5862b32c8f7Smrg#endif
5872b32c8f7Smrg#ifdef HAVE_STRING_H
5882b32c8f7Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5892b32c8f7Smrg#  include <memory.h>
5902b32c8f7Smrg# endif
5912b32c8f7Smrg# include <string.h>
5922b32c8f7Smrg#endif
5932b32c8f7Smrg#ifdef HAVE_STRINGS_H
5942b32c8f7Smrg# include <strings.h>
5952b32c8f7Smrg#endif
5962b32c8f7Smrg#ifdef HAVE_INTTYPES_H
5972b32c8f7Smrg# include <inttypes.h>
5982b32c8f7Smrg#endif
5992b32c8f7Smrg#ifdef HAVE_STDINT_H
6002b32c8f7Smrg# include <stdint.h>
6012b32c8f7Smrg#endif
6022b32c8f7Smrg#ifdef HAVE_UNISTD_H
6032b32c8f7Smrg# include <unistd.h>
6042b32c8f7Smrg#endif"
6052b32c8f7Smrg
6062b32c8f7Smrgac_subst_vars='am__EXEEXT_FALSE
6072b32c8f7Smrgam__EXEEXT_TRUE
6082b32c8f7SmrgLTLIBOBJS
6092b32c8f7SmrgLIBOBJS
6102b32c8f7Smrgappdefaultdir
6112b32c8f7SmrgAPPDEFS_LIBS
6122b32c8f7SmrgAPPDEFS_CFLAGS
6132b32c8f7SmrgBITMAP_LIBS
6142b32c8f7SmrgBITMAP_CFLAGS
6152b32c8f7SmrgATOBM_LIBS
6162b32c8f7SmrgATOBM_CFLAGS
6172b32c8f7SmrgBMTOA_LIBS
6182b32c8f7SmrgBMTOA_CFLAGS
619cbc4e2beSmrgMATH_LIBS
62095e0246bSmrgMAN_SUBSTS
62195e0246bSmrgXORG_MAN_PAGE
6222b32c8f7SmrgADMIN_MAN_DIR
6232b32c8f7SmrgDRIVER_MAN_DIR
6242b32c8f7SmrgMISC_MAN_DIR
6252b32c8f7SmrgFILE_MAN_DIR
6262b32c8f7SmrgLIB_MAN_DIR
6272b32c8f7SmrgAPP_MAN_DIR
6282b32c8f7SmrgADMIN_MAN_SUFFIX
6292b32c8f7SmrgDRIVER_MAN_SUFFIX
6302b32c8f7SmrgMISC_MAN_SUFFIX
6312b32c8f7SmrgFILE_MAN_SUFFIX
6322b32c8f7SmrgLIB_MAN_SUFFIX
6332b32c8f7SmrgAPP_MAN_SUFFIX
63495e0246bSmrgSED
6352b32c8f7Smrghost_os
6362b32c8f7Smrghost_vendor
6372b32c8f7Smrghost_cpu
6382b32c8f7Smrghost
6392b32c8f7Smrgbuild_os
6402b32c8f7Smrgbuild_vendor
6412b32c8f7Smrgbuild_cpu
6422b32c8f7Smrgbuild
64395e0246bSmrgINSTALL_CMD
64495e0246bSmrgPKG_CONFIG
6452b32c8f7SmrgCHANGELOG_CMD
646cbc4e2beSmrgSTRICT_CFLAGS
6472b32c8f7SmrgCWARNFLAGS
648cbc4e2beSmrgBASE_CFLAGS
6492b32c8f7SmrgEGREP
6502b32c8f7SmrgGREP
6512b32c8f7SmrgCPP
6522b32c8f7Smrgam__fastdepCC_FALSE
6532b32c8f7Smrgam__fastdepCC_TRUE
6542b32c8f7SmrgCCDEPMODE
655cbc4e2beSmrgam__nodep
6562b32c8f7SmrgAMDEPBACKSLASH
6572b32c8f7SmrgAMDEP_FALSE
6582b32c8f7SmrgAMDEP_TRUE
6592b32c8f7Smrgam__quote
6602b32c8f7Smrgam__include
6612b32c8f7SmrgDEPDIR
6622b32c8f7SmrgOBJEXT
6632b32c8f7SmrgEXEEXT
6642b32c8f7Smrgac_ct_CC
6652b32c8f7SmrgCPPFLAGS
6662b32c8f7SmrgLDFLAGS
6672b32c8f7SmrgCFLAGS
6682b32c8f7SmrgCC
6692b32c8f7SmrgMAINT
6702b32c8f7SmrgMAINTAINER_MODE_FALSE
6712b32c8f7SmrgMAINTAINER_MODE_TRUE
672cbc4e2beSmrgAM_BACKSLASH
673cbc4e2beSmrgAM_DEFAULT_VERBOSITY
674cbc4e2beSmrgAM_DEFAULT_V
675cbc4e2beSmrgAM_V
6762b32c8f7Smrgam__untar
6772b32c8f7Smrgam__tar
6782b32c8f7SmrgAMTAR
6792b32c8f7Smrgam__leading_dot
6802b32c8f7SmrgSET_MAKE
6812b32c8f7SmrgAWK
6822b32c8f7Smrgmkdir_p
6832b32c8f7SmrgMKDIR_P
6842b32c8f7SmrgINSTALL_STRIP_PROGRAM
6852b32c8f7SmrgSTRIP
6862b32c8f7Smrginstall_sh
6872b32c8f7SmrgMAKEINFO
6882b32c8f7SmrgAUTOHEADER
6892b32c8f7SmrgAUTOMAKE
6902b32c8f7SmrgAUTOCONF
6912b32c8f7SmrgACLOCAL
6922b32c8f7SmrgVERSION
6932b32c8f7SmrgPACKAGE
6942b32c8f7SmrgCYGPATH_W
6952b32c8f7Smrgam__isrc
6962b32c8f7SmrgINSTALL_DATA
6972b32c8f7SmrgINSTALL_SCRIPT
6982b32c8f7SmrgINSTALL_PROGRAM
6992b32c8f7Smrgtarget_alias
7002b32c8f7Smrghost_alias
701eaef79e5Smrgbuild_alias
7022b32c8f7SmrgLIBS
7032b32c8f7SmrgECHO_T
7042b32c8f7SmrgECHO_N
7052b32c8f7SmrgECHO_C
7062b32c8f7SmrgDEFS
7072b32c8f7Smrgmandir
7082b32c8f7Smrglocaledir
7092b32c8f7Smrglibdir
7102b32c8f7Smrgpsdir
7112b32c8f7Smrgpdfdir
7122b32c8f7Smrgdvidir
7132b32c8f7Smrghtmldir
7142b32c8f7Smrginfodir
7152b32c8f7Smrgdocdir
7162b32c8f7Smrgoldincludedir
7172b32c8f7Smrgincludedir
7182b32c8f7Smrglocalstatedir
7192b32c8f7Smrgsharedstatedir
7202b32c8f7Smrgsysconfdir
7212b32c8f7Smrgdatadir
7222b32c8f7Smrgdatarootdir
7232b32c8f7Smrglibexecdir
7242b32c8f7Smrgsbindir
7252b32c8f7Smrgbindir
7262b32c8f7Smrgprogram_transform_name
7272b32c8f7Smrgprefix
7282b32c8f7Smrgexec_prefix
72995e0246bSmrgPACKAGE_URL
7302b32c8f7SmrgPACKAGE_BUGREPORT
7312b32c8f7SmrgPACKAGE_STRING
7322b32c8f7SmrgPACKAGE_VERSION
7332b32c8f7SmrgPACKAGE_TARNAME
7342b32c8f7SmrgPACKAGE_NAME
7352b32c8f7SmrgPATH_SEPARATOR
7362b32c8f7SmrgSHELL'
7372b32c8f7Smrgac_subst_files=''
7382b32c8f7Smrgac_user_opts='
7392b32c8f7Smrgenable_option_checking
740cbc4e2beSmrgenable_silent_rules
7412b32c8f7Smrgenable_maintainer_mode
7422b32c8f7Smrgenable_dependency_tracking
743cbc4e2beSmrgenable_selective_werror
7442b32c8f7Smrgenable_strict_compilation
7452b32c8f7Smrgwith_appdefaultdir
7462b32c8f7Smrg'
7472b32c8f7Smrg      ac_precious_vars='build_alias
748eaef79e5Smrghost_alias
749eaef79e5Smrgtarget_alias
750eaef79e5SmrgCC
751eaef79e5SmrgCFLAGS
752eaef79e5SmrgLDFLAGS
7532b32c8f7SmrgLIBS
754eaef79e5SmrgCPPFLAGS
7552b32c8f7SmrgCPP
756eaef79e5SmrgPKG_CONFIG
757eaef79e5SmrgBMTOA_CFLAGS
758eaef79e5SmrgBMTOA_LIBS
759eaef79e5SmrgATOBM_CFLAGS
760eaef79e5SmrgATOBM_LIBS
761eaef79e5SmrgBITMAP_CFLAGS
762eaef79e5SmrgBITMAP_LIBS
763eaef79e5SmrgAPPDEFS_CFLAGS
764eaef79e5SmrgAPPDEFS_LIBS'
765eaef79e5Smrg
766eaef79e5Smrg
767eaef79e5Smrg# Initialize some variables set by options.
768eaef79e5Smrgac_init_help=
769eaef79e5Smrgac_init_version=false
7702b32c8f7Smrgac_unrecognized_opts=
7712b32c8f7Smrgac_unrecognized_sep=
772eaef79e5Smrg# The variables have the same names as the options, with
773eaef79e5Smrg# dashes changed to underlines.
774eaef79e5Smrgcache_file=/dev/null
775eaef79e5Smrgexec_prefix=NONE
776eaef79e5Smrgno_create=
777eaef79e5Smrgno_recursion=
778eaef79e5Smrgprefix=NONE
779eaef79e5Smrgprogram_prefix=NONE
780eaef79e5Smrgprogram_suffix=NONE
781eaef79e5Smrgprogram_transform_name=s,x,x,
782eaef79e5Smrgsilent=
783eaef79e5Smrgsite=
784eaef79e5Smrgsrcdir=
785eaef79e5Smrgverbose=
786eaef79e5Smrgx_includes=NONE
787eaef79e5Smrgx_libraries=NONE
788eaef79e5Smrg
789eaef79e5Smrg# Installation directory options.
790eaef79e5Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
791eaef79e5Smrg# and all the variables that are supposed to be based on exec_prefix
792eaef79e5Smrg# by default will actually change.
793eaef79e5Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
794eaef79e5Smrg# (The list follows the same order as the GNU Coding Standards.)
795eaef79e5Smrgbindir='${exec_prefix}/bin'
796eaef79e5Smrgsbindir='${exec_prefix}/sbin'
797eaef79e5Smrglibexecdir='${exec_prefix}/libexec'
798eaef79e5Smrgdatarootdir='${prefix}/share'
799eaef79e5Smrgdatadir='${datarootdir}'
800eaef79e5Smrgsysconfdir='${prefix}/etc'
801eaef79e5Smrgsharedstatedir='${prefix}/com'
802eaef79e5Smrglocalstatedir='${prefix}/var'
803eaef79e5Smrgincludedir='${prefix}/include'
804eaef79e5Smrgoldincludedir='/usr/include'
805eaef79e5Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806eaef79e5Smrginfodir='${datarootdir}/info'
807eaef79e5Smrghtmldir='${docdir}'
808eaef79e5Smrgdvidir='${docdir}'
809eaef79e5Smrgpdfdir='${docdir}'
810eaef79e5Smrgpsdir='${docdir}'
811eaef79e5Smrglibdir='${exec_prefix}/lib'
812eaef79e5Smrglocaledir='${datarootdir}/locale'
813eaef79e5Smrgmandir='${datarootdir}/man'
814eaef79e5Smrg
815eaef79e5Smrgac_prev=
816eaef79e5Smrgac_dashdash=
817eaef79e5Smrgfor ac_option
818eaef79e5Smrgdo
819eaef79e5Smrg  # If the previous option needs an argument, assign it.
820eaef79e5Smrg  if test -n "$ac_prev"; then
821eaef79e5Smrg    eval $ac_prev=\$ac_option
822eaef79e5Smrg    ac_prev=
823eaef79e5Smrg    continue
824eaef79e5Smrg  fi
825eaef79e5Smrg
826eaef79e5Smrg  case $ac_option in
82795e0246bSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
82895e0246bSmrg  *=)   ac_optarg= ;;
82995e0246bSmrg  *)    ac_optarg=yes ;;
830eaef79e5Smrg  esac
831eaef79e5Smrg
832eaef79e5Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
833eaef79e5Smrg
834eaef79e5Smrg  case $ac_dashdash$ac_option in
835eaef79e5Smrg  --)
836eaef79e5Smrg    ac_dashdash=yes ;;
837eaef79e5Smrg
838eaef79e5Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
839eaef79e5Smrg    ac_prev=bindir ;;
840eaef79e5Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841eaef79e5Smrg    bindir=$ac_optarg ;;
842eaef79e5Smrg
843eaef79e5Smrg  -build | --build | --buil | --bui | --bu)
844eaef79e5Smrg    ac_prev=build_alias ;;
845eaef79e5Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846eaef79e5Smrg    build_alias=$ac_optarg ;;
847eaef79e5Smrg
848eaef79e5Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
849eaef79e5Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850eaef79e5Smrg    ac_prev=cache_file ;;
851eaef79e5Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852eaef79e5Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853eaef79e5Smrg    cache_file=$ac_optarg ;;
854eaef79e5Smrg
855eaef79e5Smrg  --config-cache | -C)
856eaef79e5Smrg    cache_file=config.cache ;;
857eaef79e5Smrg
858eaef79e5Smrg  -datadir | --datadir | --datadi | --datad)
859eaef79e5Smrg    ac_prev=datadir ;;
860eaef79e5Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
861eaef79e5Smrg    datadir=$ac_optarg ;;
862eaef79e5Smrg
863eaef79e5Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864eaef79e5Smrg  | --dataroo | --dataro | --datar)
865eaef79e5Smrg    ac_prev=datarootdir ;;
866eaef79e5Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867eaef79e5Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868eaef79e5Smrg    datarootdir=$ac_optarg ;;
869eaef79e5Smrg
870eaef79e5Smrg  -disable-* | --disable-*)
8712b32c8f7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872eaef79e5Smrg    # Reject names that are not valid shell variable names.
8732b32c8f7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
87495e0246bSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
8752b32c8f7Smrg    ac_useropt_orig=$ac_useropt
8762b32c8f7Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8772b32c8f7Smrg    case $ac_user_opts in
8782b32c8f7Smrg      *"
8792b32c8f7Smrg"enable_$ac_useropt"
8802b32c8f7Smrg"*) ;;
8812b32c8f7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8822b32c8f7Smrg	 ac_unrecognized_sep=', ';;
8832b32c8f7Smrg    esac
8842b32c8f7Smrg    eval enable_$ac_useropt=no ;;
885eaef79e5Smrg
886eaef79e5Smrg  -docdir | --docdir | --docdi | --doc | --do)
887eaef79e5Smrg    ac_prev=docdir ;;
888eaef79e5Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889eaef79e5Smrg    docdir=$ac_optarg ;;
890eaef79e5Smrg
891eaef79e5Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892eaef79e5Smrg    ac_prev=dvidir ;;
893eaef79e5Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894eaef79e5Smrg    dvidir=$ac_optarg ;;
895eaef79e5Smrg
896eaef79e5Smrg  -enable-* | --enable-*)
8972b32c8f7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898eaef79e5Smrg    # Reject names that are not valid shell variable names.
8992b32c8f7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
90095e0246bSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
9012b32c8f7Smrg    ac_useropt_orig=$ac_useropt
9022b32c8f7Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9032b32c8f7Smrg    case $ac_user_opts in
9042b32c8f7Smrg      *"
9052b32c8f7Smrg"enable_$ac_useropt"
9062b32c8f7Smrg"*) ;;
9072b32c8f7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9082b32c8f7Smrg	 ac_unrecognized_sep=', ';;
9092b32c8f7Smrg    esac
9102b32c8f7Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
911eaef79e5Smrg
912eaef79e5Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913eaef79e5Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914eaef79e5Smrg  | --exec | --exe | --ex)
915eaef79e5Smrg    ac_prev=exec_prefix ;;
916eaef79e5Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917eaef79e5Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918eaef79e5Smrg  | --exec=* | --exe=* | --ex=*)
919eaef79e5Smrg    exec_prefix=$ac_optarg ;;
920eaef79e5Smrg
921eaef79e5Smrg  -gas | --gas | --ga | --g)
922eaef79e5Smrg    # Obsolete; use --with-gas.
923eaef79e5Smrg    with_gas=yes ;;
924eaef79e5Smrg
925eaef79e5Smrg  -help | --help | --hel | --he | -h)
926eaef79e5Smrg    ac_init_help=long ;;
927eaef79e5Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928eaef79e5Smrg    ac_init_help=recursive ;;
929eaef79e5Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930eaef79e5Smrg    ac_init_help=short ;;
931eaef79e5Smrg
932eaef79e5Smrg  -host | --host | --hos | --ho)
933eaef79e5Smrg    ac_prev=host_alias ;;
934eaef79e5Smrg  -host=* | --host=* | --hos=* | --ho=*)
935eaef79e5Smrg    host_alias=$ac_optarg ;;
936eaef79e5Smrg
937eaef79e5Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938eaef79e5Smrg    ac_prev=htmldir ;;
939eaef79e5Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940eaef79e5Smrg  | --ht=*)
941eaef79e5Smrg    htmldir=$ac_optarg ;;
942eaef79e5Smrg
943eaef79e5Smrg  -includedir | --includedir | --includedi | --included | --include \
944eaef79e5Smrg  | --includ | --inclu | --incl | --inc)
945eaef79e5Smrg    ac_prev=includedir ;;
946eaef79e5Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947eaef79e5Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
948eaef79e5Smrg    includedir=$ac_optarg ;;
949eaef79e5Smrg
950eaef79e5Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
951eaef79e5Smrg    ac_prev=infodir ;;
952eaef79e5Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953eaef79e5Smrg    infodir=$ac_optarg ;;
954eaef79e5Smrg
955eaef79e5Smrg  -libdir | --libdir | --libdi | --libd)
956eaef79e5Smrg    ac_prev=libdir ;;
957eaef79e5Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
958eaef79e5Smrg    libdir=$ac_optarg ;;
959eaef79e5Smrg
960eaef79e5Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961eaef79e5Smrg  | --libexe | --libex | --libe)
962eaef79e5Smrg    ac_prev=libexecdir ;;
963eaef79e5Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964eaef79e5Smrg  | --libexe=* | --libex=* | --libe=*)
965eaef79e5Smrg    libexecdir=$ac_optarg ;;
966eaef79e5Smrg
967eaef79e5Smrg  -localedir | --localedir | --localedi | --localed | --locale)
968eaef79e5Smrg    ac_prev=localedir ;;
969eaef79e5Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970eaef79e5Smrg    localedir=$ac_optarg ;;
971eaef79e5Smrg
972eaef79e5Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
973eaef79e5Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
974eaef79e5Smrg    ac_prev=localstatedir ;;
975eaef79e5Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976eaef79e5Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977eaef79e5Smrg    localstatedir=$ac_optarg ;;
978eaef79e5Smrg
979eaef79e5Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980eaef79e5Smrg    ac_prev=mandir ;;
981eaef79e5Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982eaef79e5Smrg    mandir=$ac_optarg ;;
983eaef79e5Smrg
984eaef79e5Smrg  -nfp | --nfp | --nf)
985eaef79e5Smrg    # Obsolete; use --without-fp.
986eaef79e5Smrg    with_fp=no ;;
987eaef79e5Smrg
988eaef79e5Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989eaef79e5Smrg  | --no-cr | --no-c | -n)
990eaef79e5Smrg    no_create=yes ;;
991eaef79e5Smrg
992eaef79e5Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993eaef79e5Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994eaef79e5Smrg    no_recursion=yes ;;
995eaef79e5Smrg
996eaef79e5Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997eaef79e5Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998eaef79e5Smrg  | --oldin | --oldi | --old | --ol | --o)
999eaef79e5Smrg    ac_prev=oldincludedir ;;
1000eaef79e5Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001eaef79e5Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002eaef79e5Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003eaef79e5Smrg    oldincludedir=$ac_optarg ;;
1004eaef79e5Smrg
1005eaef79e5Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006eaef79e5Smrg    ac_prev=prefix ;;
1007eaef79e5Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008eaef79e5Smrg    prefix=$ac_optarg ;;
1009eaef79e5Smrg
1010eaef79e5Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011eaef79e5Smrg  | --program-pre | --program-pr | --program-p)
1012eaef79e5Smrg    ac_prev=program_prefix ;;
1013eaef79e5Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014eaef79e5Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015eaef79e5Smrg    program_prefix=$ac_optarg ;;
1016eaef79e5Smrg
1017eaef79e5Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018eaef79e5Smrg  | --program-suf | --program-su | --program-s)
1019eaef79e5Smrg    ac_prev=program_suffix ;;
1020eaef79e5Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021eaef79e5Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022eaef79e5Smrg    program_suffix=$ac_optarg ;;
1023eaef79e5Smrg
1024eaef79e5Smrg  -program-transform-name | --program-transform-name \
1025eaef79e5Smrg  | --program-transform-nam | --program-transform-na \
1026eaef79e5Smrg  | --program-transform-n | --program-transform- \
1027eaef79e5Smrg  | --program-transform | --program-transfor \
1028eaef79e5Smrg  | --program-transfo | --program-transf \
1029eaef79e5Smrg  | --program-trans | --program-tran \
1030eaef79e5Smrg  | --progr-tra | --program-tr | --program-t)
1031eaef79e5Smrg    ac_prev=program_transform_name ;;
1032eaef79e5Smrg  -program-transform-name=* | --program-transform-name=* \
1033eaef79e5Smrg  | --program-transform-nam=* | --program-transform-na=* \
1034eaef79e5Smrg  | --program-transform-n=* | --program-transform-=* \
1035eaef79e5Smrg  | --program-transform=* | --program-transfor=* \
1036eaef79e5Smrg  | --program-transfo=* | --program-transf=* \
1037eaef79e5Smrg  | --program-trans=* | --program-tran=* \
1038eaef79e5Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1039eaef79e5Smrg    program_transform_name=$ac_optarg ;;
1040eaef79e5Smrg
1041eaef79e5Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042eaef79e5Smrg    ac_prev=pdfdir ;;
1043eaef79e5Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044eaef79e5Smrg    pdfdir=$ac_optarg ;;
1045eaef79e5Smrg
1046eaef79e5Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1047eaef79e5Smrg    ac_prev=psdir ;;
1048eaef79e5Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049eaef79e5Smrg    psdir=$ac_optarg ;;
1050eaef79e5Smrg
1051eaef79e5Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052eaef79e5Smrg  | -silent | --silent | --silen | --sile | --sil)
1053eaef79e5Smrg    silent=yes ;;
1054eaef79e5Smrg
1055eaef79e5Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056eaef79e5Smrg    ac_prev=sbindir ;;
1057eaef79e5Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058eaef79e5Smrg  | --sbi=* | --sb=*)
1059eaef79e5Smrg    sbindir=$ac_optarg ;;
1060eaef79e5Smrg
1061eaef79e5Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062eaef79e5Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063eaef79e5Smrg  | --sharedst | --shareds | --shared | --share | --shar \
1064eaef79e5Smrg  | --sha | --sh)
1065eaef79e5Smrg    ac_prev=sharedstatedir ;;
1066eaef79e5Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067eaef79e5Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068eaef79e5Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069eaef79e5Smrg  | --sha=* | --sh=*)
1070eaef79e5Smrg    sharedstatedir=$ac_optarg ;;
1071eaef79e5Smrg
1072eaef79e5Smrg  -site | --site | --sit)
1073eaef79e5Smrg    ac_prev=site ;;
1074eaef79e5Smrg  -site=* | --site=* | --sit=*)
1075eaef79e5Smrg    site=$ac_optarg ;;
1076eaef79e5Smrg
1077eaef79e5Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078eaef79e5Smrg    ac_prev=srcdir ;;
1079eaef79e5Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080eaef79e5Smrg    srcdir=$ac_optarg ;;
1081eaef79e5Smrg
1082eaef79e5Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083eaef79e5Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
1084eaef79e5Smrg    ac_prev=sysconfdir ;;
1085eaef79e5Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086eaef79e5Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087eaef79e5Smrg    sysconfdir=$ac_optarg ;;
1088eaef79e5Smrg
1089eaef79e5Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1090eaef79e5Smrg    ac_prev=target_alias ;;
1091eaef79e5Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092eaef79e5Smrg    target_alias=$ac_optarg ;;
1093eaef79e5Smrg
1094eaef79e5Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095eaef79e5Smrg    verbose=yes ;;
1096eaef79e5Smrg
1097eaef79e5Smrg  -version | --version | --versio | --versi | --vers | -V)
1098eaef79e5Smrg    ac_init_version=: ;;
1099eaef79e5Smrg
1100eaef79e5Smrg  -with-* | --with-*)
11012b32c8f7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102eaef79e5Smrg    # Reject names that are not valid shell variable names.
11032b32c8f7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
110495e0246bSmrg      as_fn_error $? "invalid package name: $ac_useropt"
11052b32c8f7Smrg    ac_useropt_orig=$ac_useropt
11062b32c8f7Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11072b32c8f7Smrg    case $ac_user_opts in
11082b32c8f7Smrg      *"
11092b32c8f7Smrg"with_$ac_useropt"
11102b32c8f7Smrg"*) ;;
11112b32c8f7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11122b32c8f7Smrg	 ac_unrecognized_sep=', ';;
11132b32c8f7Smrg    esac
11142b32c8f7Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1115eaef79e5Smrg
1116eaef79e5Smrg  -without-* | --without-*)
11172b32c8f7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118eaef79e5Smrg    # Reject names that are not valid shell variable names.
11192b32c8f7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
112095e0246bSmrg      as_fn_error $? "invalid package name: $ac_useropt"
11212b32c8f7Smrg    ac_useropt_orig=$ac_useropt
11222b32c8f7Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11232b32c8f7Smrg    case $ac_user_opts in
11242b32c8f7Smrg      *"
11252b32c8f7Smrg"with_$ac_useropt"
11262b32c8f7Smrg"*) ;;
11272b32c8f7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11282b32c8f7Smrg	 ac_unrecognized_sep=', ';;
11292b32c8f7Smrg    esac
11302b32c8f7Smrg    eval with_$ac_useropt=no ;;
1131eaef79e5Smrg
1132eaef79e5Smrg  --x)
1133eaef79e5Smrg    # Obsolete; use --with-x.
1134eaef79e5Smrg    with_x=yes ;;
1135eaef79e5Smrg
1136eaef79e5Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137eaef79e5Smrg  | --x-incl | --x-inc | --x-in | --x-i)
1138eaef79e5Smrg    ac_prev=x_includes ;;
1139eaef79e5Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140eaef79e5Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141eaef79e5Smrg    x_includes=$ac_optarg ;;
1142eaef79e5Smrg
1143eaef79e5Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144eaef79e5Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145eaef79e5Smrg    ac_prev=x_libraries ;;
1146eaef79e5Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147eaef79e5Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148eaef79e5Smrg    x_libraries=$ac_optarg ;;
1149eaef79e5Smrg
115095e0246bSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
115195e0246bSmrgTry \`$0 --help' for more information"
1152eaef79e5Smrg    ;;
1153eaef79e5Smrg
1154eaef79e5Smrg  *=*)
1155eaef79e5Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156eaef79e5Smrg    # Reject names that are not valid shell variable names.
115795e0246bSmrg    case $ac_envvar in #(
115895e0246bSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
115995e0246bSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
116095e0246bSmrg    esac
1161eaef79e5Smrg    eval $ac_envvar=\$ac_optarg
1162eaef79e5Smrg    export $ac_envvar ;;
1163eaef79e5Smrg
1164eaef79e5Smrg  *)
1165eaef79e5Smrg    # FIXME: should be removed in autoconf 3.0.
11662b32c8f7Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167eaef79e5Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11682b32c8f7Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
116995e0246bSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1170eaef79e5Smrg    ;;
1171eaef79e5Smrg
1172eaef79e5Smrg  esac
1173eaef79e5Smrgdone
1174eaef79e5Smrg
1175eaef79e5Smrgif test -n "$ac_prev"; then
1176eaef79e5Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
117795e0246bSmrg  as_fn_error $? "missing argument to $ac_option"
1178eaef79e5Smrgfi
1179eaef79e5Smrg
11802b32c8f7Smrgif test -n "$ac_unrecognized_opts"; then
11812b32c8f7Smrg  case $enable_option_checking in
11822b32c8f7Smrg    no) ;;
118395e0246bSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11842b32c8f7Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11852b32c8f7Smrg  esac
11862b32c8f7Smrgfi
11872b32c8f7Smrg
11882b32c8f7Smrg# Check all directory arguments for consistency.
1189eaef79e5Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190eaef79e5Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1191eaef79e5Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192eaef79e5Smrg		libdir localedir mandir
1193eaef79e5Smrgdo
1194eaef79e5Smrg  eval ac_val=\$$ac_var
11952b32c8f7Smrg  # Remove trailing slashes.
11962b32c8f7Smrg  case $ac_val in
11972b32c8f7Smrg    */ )
11982b32c8f7Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
11992b32c8f7Smrg      eval $ac_var=\$ac_val;;
12002b32c8f7Smrg  esac
12012b32c8f7Smrg  # Be sure to have absolute directory names.
1202eaef79e5Smrg  case $ac_val in
1203eaef79e5Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1204eaef79e5Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205eaef79e5Smrg  esac
120695e0246bSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1207eaef79e5Smrgdone
1208eaef79e5Smrg
1209eaef79e5Smrg# There might be people who depend on the old broken behavior: `$host'
1210eaef79e5Smrg# used to hold the argument of --host etc.
1211eaef79e5Smrg# FIXME: To remove some day.
1212eaef79e5Smrgbuild=$build_alias
1213eaef79e5Smrghost=$host_alias
1214eaef79e5Smrgtarget=$target_alias
1215eaef79e5Smrg
1216eaef79e5Smrg# FIXME: To remove some day.
1217eaef79e5Smrgif test "x$host_alias" != x; then
1218eaef79e5Smrg  if test "x$build_alias" = x; then
1219eaef79e5Smrg    cross_compiling=maybe
122095e0246bSmrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
122195e0246bSmrg    If a cross compiler is detected then cross compile mode will be used" >&2
1222eaef79e5Smrg  elif test "x$build_alias" != "x$host_alias"; then
1223eaef79e5Smrg    cross_compiling=yes
1224eaef79e5Smrg  fi
1225eaef79e5Smrgfi
1226eaef79e5Smrg
1227eaef79e5Smrgac_tool_prefix=
1228eaef79e5Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1229eaef79e5Smrg
1230eaef79e5Smrgtest "$silent" = yes && exec 6>/dev/null
1231eaef79e5Smrg
1232eaef79e5Smrg
1233eaef79e5Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1234eaef79e5Smrgac_ls_di=`ls -di .` &&
1235eaef79e5Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
123695e0246bSmrg  as_fn_error $? "working directory cannot be determined"
1237eaef79e5Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
123895e0246bSmrg  as_fn_error $? "pwd does not report name of working directory"
1239eaef79e5Smrg
1240eaef79e5Smrg
1241eaef79e5Smrg# Find the source files, if location was not specified.
1242eaef79e5Smrgif test -z "$srcdir"; then
1243eaef79e5Smrg  ac_srcdir_defaulted=yes
1244eaef79e5Smrg  # Try the directory containing this script, then the parent directory.
12452b32c8f7Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12462b32c8f7Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12472b32c8f7Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12482b32c8f7Smrg	 X"$as_myself" : 'X\(//\)$' \| \
12492b32c8f7Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12502b32c8f7Smrg$as_echo X"$as_myself" |
1251eaef79e5Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252eaef79e5Smrg	    s//\1/
1253eaef79e5Smrg	    q
1254eaef79e5Smrg	  }
1255eaef79e5Smrg	  /^X\(\/\/\)[^/].*/{
1256eaef79e5Smrg	    s//\1/
1257eaef79e5Smrg	    q
1258eaef79e5Smrg	  }
1259eaef79e5Smrg	  /^X\(\/\/\)$/{
1260eaef79e5Smrg	    s//\1/
1261eaef79e5Smrg	    q
1262eaef79e5Smrg	  }
1263eaef79e5Smrg	  /^X\(\/\).*/{
1264eaef79e5Smrg	    s//\1/
1265eaef79e5Smrg	    q
1266eaef79e5Smrg	  }
1267eaef79e5Smrg	  s/.*/./; q'`
1268eaef79e5Smrg  srcdir=$ac_confdir
1269eaef79e5Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
1270eaef79e5Smrg    srcdir=..
1271eaef79e5Smrg  fi
1272eaef79e5Smrgelse
1273eaef79e5Smrg  ac_srcdir_defaulted=no
1274eaef79e5Smrgfi
1275eaef79e5Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1276eaef79e5Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
127795e0246bSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1278eaef79e5Smrgfi
1279eaef79e5Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1280eaef79e5Smrgac_abs_confdir=`(
128195e0246bSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1282eaef79e5Smrg	pwd)`
1283eaef79e5Smrg# When building in place, set srcdir=.
1284eaef79e5Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1285eaef79e5Smrg  srcdir=.
1286eaef79e5Smrgfi
1287eaef79e5Smrg# Remove unnecessary trailing slashes from srcdir.
1288eaef79e5Smrg# Double slashes in file names in object file debugging info
1289eaef79e5Smrg# mess up M-x gdb in Emacs.
1290eaef79e5Smrgcase $srcdir in
1291eaef79e5Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292eaef79e5Smrgesac
1293eaef79e5Smrgfor ac_var in $ac_precious_vars; do
1294eaef79e5Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295eaef79e5Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1296eaef79e5Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297eaef79e5Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298eaef79e5Smrgdone
1299eaef79e5Smrg
1300eaef79e5Smrg#
1301eaef79e5Smrg# Report the --help message.
1302eaef79e5Smrg#
1303eaef79e5Smrgif test "$ac_init_help" = "long"; then
1304eaef79e5Smrg  # Omit some internal or obsolete options to make the list less imposing.
1305eaef79e5Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
1306eaef79e5Smrg  cat <<_ACEOF
1307cbc4e2beSmrg\`configure' configures bitmap 1.0.7 to adapt to many kinds of systems.
1308eaef79e5Smrg
1309eaef79e5SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1310eaef79e5Smrg
1311eaef79e5SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1312eaef79e5SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1313eaef79e5Smrg
1314eaef79e5SmrgDefaults for the options are specified in brackets.
1315eaef79e5Smrg
1316eaef79e5SmrgConfiguration:
1317eaef79e5Smrg  -h, --help              display this help and exit
1318eaef79e5Smrg      --help=short        display options specific to this package
1319eaef79e5Smrg      --help=recursive    display the short help of all the included packages
1320eaef79e5Smrg  -V, --version           display version information and exit
132195e0246bSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
1322eaef79e5Smrg      --cache-file=FILE   cache test results in FILE [disabled]
1323eaef79e5Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1324eaef79e5Smrg  -n, --no-create         do not create output files
1325eaef79e5Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1326eaef79e5Smrg
1327eaef79e5SmrgInstallation directories:
1328eaef79e5Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13292b32c8f7Smrg                          [$ac_default_prefix]
1330eaef79e5Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13312b32c8f7Smrg                          [PREFIX]
1332eaef79e5Smrg
1333eaef79e5SmrgBy default, \`make install' will install all the files in
1334eaef79e5Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1335eaef79e5Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336eaef79e5Smrgfor instance \`--prefix=\$HOME'.
1337eaef79e5Smrg
1338eaef79e5SmrgFor better control, use the options below.
1339eaef79e5Smrg
1340eaef79e5SmrgFine tuning of the installation directories:
13412b32c8f7Smrg  --bindir=DIR            user executables [EPREFIX/bin]
13422b32c8f7Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13432b32c8f7Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13442b32c8f7Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13452b32c8f7Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13462b32c8f7Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13472b32c8f7Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13482b32c8f7Smrg  --includedir=DIR        C header files [PREFIX/include]
13492b32c8f7Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13502b32c8f7Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13512b32c8f7Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13522b32c8f7Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13532b32c8f7Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13542b32c8f7Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13552b32c8f7Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/bitmap]
13562b32c8f7Smrg  --htmldir=DIR           html documentation [DOCDIR]
13572b32c8f7Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
13582b32c8f7Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13592b32c8f7Smrg  --psdir=DIR             ps documentation [DOCDIR]
1360eaef79e5Smrg_ACEOF
1361eaef79e5Smrg
1362eaef79e5Smrg  cat <<\_ACEOF
1363eaef79e5Smrg
1364eaef79e5SmrgProgram names:
1365eaef79e5Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1366eaef79e5Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1367eaef79e5Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1368eaef79e5Smrg
1369eaef79e5SmrgSystem types:
1370eaef79e5Smrg  --build=BUILD     configure for building on BUILD [guessed]
1371eaef79e5Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1372eaef79e5Smrg_ACEOF
1373eaef79e5Smrgfi
1374eaef79e5Smrg
1375eaef79e5Smrgif test -n "$ac_init_help"; then
1376eaef79e5Smrg  case $ac_init_help in
1377cbc4e2beSmrg     short | recursive ) echo "Configuration of bitmap 1.0.7:";;
1378eaef79e5Smrg   esac
1379eaef79e5Smrg  cat <<\_ACEOF
1380eaef79e5Smrg
1381eaef79e5SmrgOptional Features:
13822b32c8f7Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1383eaef79e5Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1384eaef79e5Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1385cbc4e2beSmrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
1386cbc4e2beSmrg  --disable-silent-rules  verbose build output (undo: "make V=0")
1387cbc4e2beSmrg  --enable-maintainer-mode
1388cbc4e2beSmrg                          enable make rules and dependencies not useful (and
1389cbc4e2beSmrg                          sometimes confusing) to the casual installer
1390cbc4e2beSmrg  --enable-dependency-tracking
1391cbc4e2beSmrg                          do not reject slow dependency extractors
1392cbc4e2beSmrg  --disable-dependency-tracking
1393cbc4e2beSmrg                          speeds up one-time build
1394cbc4e2beSmrg  --disable-selective-werror
1395cbc4e2beSmrg                          Turn off selective compiler errors. (default:
1396cbc4e2beSmrg                          enabled)
13972b32c8f7Smrg  --enable-strict-compilation
13982b32c8f7Smrg                          Enable all warnings from compiler and make them
13992b32c8f7Smrg                          errors (default: disabled)
1400eaef79e5Smrg
1401eaef79e5SmrgOptional Packages:
1402eaef79e5Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1403eaef79e5Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14042b32c8f7Smrg  --with-appdefaultdir=<pathname>
14052b32c8f7Smrg                          specify directory for app-defaults files (default is
14062b32c8f7Smrg                          autodetected)
1407eaef79e5Smrg
1408eaef79e5SmrgSome influential environment variables:
1409eaef79e5Smrg  CC          C compiler command
1410eaef79e5Smrg  CFLAGS      C compiler flags
1411eaef79e5Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1412eaef79e5Smrg              nonstandard directory <lib dir>
14132b32c8f7Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
141495e0246bSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1415eaef79e5Smrg              you have headers in a nonstandard directory <include dir>
14162b32c8f7Smrg  CPP         C preprocessor
1417eaef79e5Smrg  PKG_CONFIG  path to pkg-config utility
1418eaef79e5Smrg  BMTOA_CFLAGS
1419eaef79e5Smrg              C compiler flags for BMTOA, overriding pkg-config
1420eaef79e5Smrg  BMTOA_LIBS  linker flags for BMTOA, overriding pkg-config
1421eaef79e5Smrg  ATOBM_CFLAGS
1422eaef79e5Smrg              C compiler flags for ATOBM, overriding pkg-config
1423eaef79e5Smrg  ATOBM_LIBS  linker flags for ATOBM, overriding pkg-config
14242b32c8f7Smrg  BITMAP_CFLAGS
14252b32c8f7Smrg              C compiler flags for BITMAP, overriding pkg-config
14262b32c8f7Smrg  BITMAP_LIBS linker flags for BITMAP, overriding pkg-config
1427eaef79e5Smrg  APPDEFS_CFLAGS
1428eaef79e5Smrg              C compiler flags for APPDEFS, overriding pkg-config
1429eaef79e5Smrg  APPDEFS_LIBS
1430eaef79e5Smrg              linker flags for APPDEFS, overriding pkg-config
1431eaef79e5Smrg
1432eaef79e5SmrgUse these variables to override the choices made by `configure' or to help
1433eaef79e5Smrgit to find libraries and programs with nonstandard names/locations.
1434eaef79e5Smrg
1435eaef79e5SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1436eaef79e5Smrg_ACEOF
1437eaef79e5Smrgac_status=$?
1438eaef79e5Smrgfi
1439eaef79e5Smrg
1440eaef79e5Smrgif test "$ac_init_help" = "recursive"; then
1441eaef79e5Smrg  # If there are subdirs, report their specific --help.
1442eaef79e5Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14432b32c8f7Smrg    test -d "$ac_dir" ||
14442b32c8f7Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14452b32c8f7Smrg      continue
1446eaef79e5Smrg    ac_builddir=.
1447eaef79e5Smrg
1448eaef79e5Smrgcase "$ac_dir" in
1449eaef79e5Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450eaef79e5Smrg*)
14512b32c8f7Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452eaef79e5Smrg  # A ".." for each directory in $ac_dir_suffix.
14532b32c8f7Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454eaef79e5Smrg  case $ac_top_builddir_sub in
1455eaef79e5Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456eaef79e5Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457eaef79e5Smrg  esac ;;
1458eaef79e5Smrgesac
1459eaef79e5Smrgac_abs_top_builddir=$ac_pwd
1460eaef79e5Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1461eaef79e5Smrg# for backward compatibility:
1462eaef79e5Smrgac_top_builddir=$ac_top_build_prefix
1463eaef79e5Smrg
1464eaef79e5Smrgcase $srcdir in
1465eaef79e5Smrg  .)  # We are building in place.
1466eaef79e5Smrg    ac_srcdir=.
1467eaef79e5Smrg    ac_top_srcdir=$ac_top_builddir_sub
1468eaef79e5Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1469eaef79e5Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1470eaef79e5Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1471eaef79e5Smrg    ac_top_srcdir=$srcdir
1472eaef79e5Smrg    ac_abs_top_srcdir=$srcdir ;;
1473eaef79e5Smrg  *) # Relative name.
1474eaef79e5Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475eaef79e5Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1476eaef79e5Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477eaef79e5Smrgesac
1478eaef79e5Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479eaef79e5Smrg
1480eaef79e5Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1481eaef79e5Smrg    # Check for guested configure.
1482eaef79e5Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1483eaef79e5Smrg      echo &&
1484eaef79e5Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485eaef79e5Smrg    elif test -f "$ac_srcdir/configure"; then
1486eaef79e5Smrg      echo &&
1487eaef79e5Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
1488eaef79e5Smrg    else
14892b32c8f7Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490eaef79e5Smrg    fi || ac_status=$?
1491eaef79e5Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
1492eaef79e5Smrg  done
1493eaef79e5Smrgfi
1494eaef79e5Smrg
1495eaef79e5Smrgtest -n "$ac_init_help" && exit $ac_status
1496eaef79e5Smrgif $ac_init_version; then
1497eaef79e5Smrg  cat <<\_ACEOF
1498cbc4e2beSmrgbitmap configure 1.0.7
149995e0246bSmrggenerated by GNU Autoconf 2.68
1500eaef79e5Smrg
150195e0246bSmrgCopyright (C) 2010 Free Software Foundation, Inc.
1502eaef79e5SmrgThis configure script is free software; the Free Software Foundation
1503eaef79e5Smrggives unlimited permission to copy, distribute and modify it.
1504eaef79e5Smrg_ACEOF
1505eaef79e5Smrg  exit
1506eaef79e5Smrgfi
1507eaef79e5Smrg
150895e0246bSmrg## ------------------------ ##
150995e0246bSmrg## Autoconf initialization. ##
151095e0246bSmrg## ------------------------ ##
1511eaef79e5Smrg
151295e0246bSmrg# ac_fn_c_try_compile LINENO
151395e0246bSmrg# --------------------------
151495e0246bSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
151595e0246bSmrgac_fn_c_try_compile ()
1516eaef79e5Smrg{
151795e0246bSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
151895e0246bSmrg  rm -f conftest.$ac_objext
151995e0246bSmrg  if { { ac_try="$ac_compile"
152095e0246bSmrgcase "(($ac_try" in
152195e0246bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
152295e0246bSmrg  *) ac_try_echo=$ac_try;;
152395e0246bSmrgesac
152495e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
152595e0246bSmrg$as_echo "$ac_try_echo"; } >&5
152695e0246bSmrg  (eval "$ac_compile") 2>conftest.err
152795e0246bSmrg  ac_status=$?
152895e0246bSmrg  if test -s conftest.err; then
152995e0246bSmrg    grep -v '^ *+' conftest.err >conftest.er1
153095e0246bSmrg    cat conftest.er1 >&5
153195e0246bSmrg    mv -f conftest.er1 conftest.err
153295e0246bSmrg  fi
153395e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
153495e0246bSmrg  test $ac_status = 0; } && {
153595e0246bSmrg	 test -z "$ac_c_werror_flag" ||
153695e0246bSmrg	 test ! -s conftest.err
153795e0246bSmrg       } && test -s conftest.$ac_objext; then :
153895e0246bSmrg  ac_retval=0
153995e0246bSmrgelse
154095e0246bSmrg  $as_echo "$as_me: failed program was:" >&5
154195e0246bSmrgsed 's/^/| /' conftest.$ac_ext >&5
1542eaef79e5Smrg
154395e0246bSmrg	ac_retval=1
154495e0246bSmrgfi
154595e0246bSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
154695e0246bSmrg  as_fn_set_status $ac_retval
1547eaef79e5Smrg
154895e0246bSmrg} # ac_fn_c_try_compile
1549eaef79e5Smrg
155095e0246bSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
155195e0246bSmrg# ---------------------------------------------
155295e0246bSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
155395e0246bSmrg# accordingly.
155495e0246bSmrgac_fn_c_check_decl ()
155595e0246bSmrg{
155695e0246bSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
155795e0246bSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
155895e0246bSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
155995e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
156095e0246bSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
156195e0246bSmrgif eval \${$3+:} false; then :
156295e0246bSmrg  $as_echo_n "(cached) " >&6
156395e0246bSmrgelse
156495e0246bSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
156595e0246bSmrg/* end confdefs.h.  */
156695e0246bSmrg$4
156795e0246bSmrgint
156895e0246bSmrgmain ()
156995e0246bSmrg{
157095e0246bSmrg#ifndef $as_decl_name
157195e0246bSmrg#ifdef __cplusplus
157295e0246bSmrg  (void) $as_decl_use;
157395e0246bSmrg#else
157495e0246bSmrg  (void) $as_decl_name;
157595e0246bSmrg#endif
157695e0246bSmrg#endif
157795e0246bSmrg
157895e0246bSmrg  ;
157995e0246bSmrg  return 0;
158095e0246bSmrg}
158195e0246bSmrg_ACEOF
158295e0246bSmrgif ac_fn_c_try_compile "$LINENO"; then :
158395e0246bSmrg  eval "$3=yes"
158495e0246bSmrgelse
158595e0246bSmrg  eval "$3=no"
158695e0246bSmrgfi
158795e0246bSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
158895e0246bSmrgfi
158995e0246bSmrgeval ac_res=\$$3
159095e0246bSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
159195e0246bSmrg$as_echo "$ac_res" >&6; }
159295e0246bSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
159395e0246bSmrg
159495e0246bSmrg} # ac_fn_c_check_decl
159595e0246bSmrg
159695e0246bSmrg# ac_fn_c_try_cpp LINENO
159795e0246bSmrg# ----------------------
159895e0246bSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
159995e0246bSmrgac_fn_c_try_cpp ()
160095e0246bSmrg{
160195e0246bSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
160295e0246bSmrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
160395e0246bSmrgcase "(($ac_try" in
160495e0246bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
160595e0246bSmrg  *) ac_try_echo=$ac_try;;
160695e0246bSmrgesac
160795e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
160895e0246bSmrg$as_echo "$ac_try_echo"; } >&5
160995e0246bSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
161095e0246bSmrg  ac_status=$?
161195e0246bSmrg  if test -s conftest.err; then
161295e0246bSmrg    grep -v '^ *+' conftest.err >conftest.er1
161395e0246bSmrg    cat conftest.er1 >&5
161495e0246bSmrg    mv -f conftest.er1 conftest.err
161595e0246bSmrg  fi
161695e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
161795e0246bSmrg  test $ac_status = 0; } > conftest.i && {
161895e0246bSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
161995e0246bSmrg	 test ! -s conftest.err
162095e0246bSmrg       }; then :
162195e0246bSmrg  ac_retval=0
162295e0246bSmrgelse
162395e0246bSmrg  $as_echo "$as_me: failed program was:" >&5
162495e0246bSmrgsed 's/^/| /' conftest.$ac_ext >&5
162595e0246bSmrg
162695e0246bSmrg    ac_retval=1
162795e0246bSmrgfi
162895e0246bSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
162995e0246bSmrg  as_fn_set_status $ac_retval
163095e0246bSmrg
163195e0246bSmrg} # ac_fn_c_try_cpp
163295e0246bSmrg
163395e0246bSmrg# ac_fn_c_try_run LINENO
163495e0246bSmrg# ----------------------
163595e0246bSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
163695e0246bSmrg# that executables *can* be run.
163795e0246bSmrgac_fn_c_try_run ()
163895e0246bSmrg{
163995e0246bSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
164095e0246bSmrg  if { { ac_try="$ac_link"
164195e0246bSmrgcase "(($ac_try" in
164295e0246bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
164395e0246bSmrg  *) ac_try_echo=$ac_try;;
164495e0246bSmrgesac
164595e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
164695e0246bSmrg$as_echo "$ac_try_echo"; } >&5
164795e0246bSmrg  (eval "$ac_link") 2>&5
164895e0246bSmrg  ac_status=$?
164995e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
165095e0246bSmrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
165195e0246bSmrg  { { case "(($ac_try" in
165295e0246bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
165395e0246bSmrg  *) ac_try_echo=$ac_try;;
165495e0246bSmrgesac
165595e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
165695e0246bSmrg$as_echo "$ac_try_echo"; } >&5
165795e0246bSmrg  (eval "$ac_try") 2>&5
165895e0246bSmrg  ac_status=$?
165995e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
166095e0246bSmrg  test $ac_status = 0; }; }; then :
166195e0246bSmrg  ac_retval=0
166295e0246bSmrgelse
166395e0246bSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
166495e0246bSmrg       $as_echo "$as_me: failed program was:" >&5
166595e0246bSmrgsed 's/^/| /' conftest.$ac_ext >&5
166695e0246bSmrg
166795e0246bSmrg       ac_retval=$ac_status
166895e0246bSmrgfi
166995e0246bSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
167095e0246bSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
167195e0246bSmrg  as_fn_set_status $ac_retval
167295e0246bSmrg
167395e0246bSmrg} # ac_fn_c_try_run
167495e0246bSmrg
167595e0246bSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
167695e0246bSmrg# -------------------------------------------------------
167795e0246bSmrg# Tests whether HEADER exists and can be compiled using the include files in
167895e0246bSmrg# INCLUDES, setting the cache variable VAR accordingly.
167995e0246bSmrgac_fn_c_check_header_compile ()
168095e0246bSmrg{
168195e0246bSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
168295e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
168395e0246bSmrg$as_echo_n "checking for $2... " >&6; }
168495e0246bSmrgif eval \${$3+:} false; then :
168595e0246bSmrg  $as_echo_n "(cached) " >&6
168695e0246bSmrgelse
168795e0246bSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
168895e0246bSmrg/* end confdefs.h.  */
168995e0246bSmrg$4
169095e0246bSmrg#include <$2>
169195e0246bSmrg_ACEOF
169295e0246bSmrgif ac_fn_c_try_compile "$LINENO"; then :
169395e0246bSmrg  eval "$3=yes"
169495e0246bSmrgelse
169595e0246bSmrg  eval "$3=no"
169695e0246bSmrgfi
169795e0246bSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
169895e0246bSmrgfi
169995e0246bSmrgeval ac_res=\$$3
170095e0246bSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
170195e0246bSmrg$as_echo "$ac_res" >&6; }
170295e0246bSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
170395e0246bSmrg
170495e0246bSmrg} # ac_fn_c_check_header_compile
170595e0246bSmrg
170695e0246bSmrg# ac_fn_c_try_link LINENO
170795e0246bSmrg# -----------------------
170895e0246bSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
170995e0246bSmrgac_fn_c_try_link ()
171095e0246bSmrg{
171195e0246bSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
171295e0246bSmrg  rm -f conftest.$ac_objext conftest$ac_exeext
171395e0246bSmrg  if { { ac_try="$ac_link"
171495e0246bSmrgcase "(($ac_try" in
171595e0246bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
171695e0246bSmrg  *) ac_try_echo=$ac_try;;
171795e0246bSmrgesac
171895e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
171995e0246bSmrg$as_echo "$ac_try_echo"; } >&5
172095e0246bSmrg  (eval "$ac_link") 2>conftest.err
172195e0246bSmrg  ac_status=$?
172295e0246bSmrg  if test -s conftest.err; then
172395e0246bSmrg    grep -v '^ *+' conftest.err >conftest.er1
172495e0246bSmrg    cat conftest.er1 >&5
172595e0246bSmrg    mv -f conftest.er1 conftest.err
172695e0246bSmrg  fi
172795e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
172895e0246bSmrg  test $ac_status = 0; } && {
172995e0246bSmrg	 test -z "$ac_c_werror_flag" ||
173095e0246bSmrg	 test ! -s conftest.err
173195e0246bSmrg       } && test -s conftest$ac_exeext && {
173295e0246bSmrg	 test "$cross_compiling" = yes ||
173395e0246bSmrg	 $as_test_x conftest$ac_exeext
173495e0246bSmrg       }; then :
173595e0246bSmrg  ac_retval=0
173695e0246bSmrgelse
173795e0246bSmrg  $as_echo "$as_me: failed program was:" >&5
173895e0246bSmrgsed 's/^/| /' conftest.$ac_ext >&5
173995e0246bSmrg
174095e0246bSmrg	ac_retval=1
174195e0246bSmrgfi
174295e0246bSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
174395e0246bSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
174495e0246bSmrg  # interfere with the next link command; also delete a directory that is
174595e0246bSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
174695e0246bSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
174795e0246bSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
174895e0246bSmrg  as_fn_set_status $ac_retval
174995e0246bSmrg
175095e0246bSmrg} # ac_fn_c_try_link
175195e0246bSmrg
175295e0246bSmrg# ac_fn_c_check_func LINENO FUNC VAR
175395e0246bSmrg# ----------------------------------
175495e0246bSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
175595e0246bSmrgac_fn_c_check_func ()
175695e0246bSmrg{
175795e0246bSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
175895e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
175995e0246bSmrg$as_echo_n "checking for $2... " >&6; }
176095e0246bSmrgif eval \${$3+:} false; then :
176195e0246bSmrg  $as_echo_n "(cached) " >&6
176295e0246bSmrgelse
176395e0246bSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
176495e0246bSmrg/* end confdefs.h.  */
176595e0246bSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
176695e0246bSmrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
176795e0246bSmrg#define $2 innocuous_$2
176895e0246bSmrg
176995e0246bSmrg/* System header to define __stub macros and hopefully few prototypes,
177095e0246bSmrg    which can conflict with char $2 (); below.
177195e0246bSmrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
177295e0246bSmrg    <limits.h> exists even on freestanding compilers.  */
177395e0246bSmrg
177495e0246bSmrg#ifdef __STDC__
177595e0246bSmrg# include <limits.h>
177695e0246bSmrg#else
177795e0246bSmrg# include <assert.h>
177895e0246bSmrg#endif
177995e0246bSmrg
178095e0246bSmrg#undef $2
178195e0246bSmrg
178295e0246bSmrg/* Override any GCC internal prototype to avoid an error.
178395e0246bSmrg   Use char because int might match the return type of a GCC
178495e0246bSmrg   builtin and then its argument prototype would still apply.  */
178595e0246bSmrg#ifdef __cplusplus
178695e0246bSmrgextern "C"
178795e0246bSmrg#endif
178895e0246bSmrgchar $2 ();
178995e0246bSmrg/* The GNU C library defines this for functions which it implements
179095e0246bSmrg    to always fail with ENOSYS.  Some functions are actually named
179195e0246bSmrg    something starting with __ and the normal name is an alias.  */
179295e0246bSmrg#if defined __stub_$2 || defined __stub___$2
179395e0246bSmrgchoke me
179495e0246bSmrg#endif
179595e0246bSmrg
179695e0246bSmrgint
179795e0246bSmrgmain ()
179895e0246bSmrg{
179995e0246bSmrgreturn $2 ();
180095e0246bSmrg  ;
180195e0246bSmrg  return 0;
180295e0246bSmrg}
180395e0246bSmrg_ACEOF
180495e0246bSmrgif ac_fn_c_try_link "$LINENO"; then :
180595e0246bSmrg  eval "$3=yes"
180695e0246bSmrgelse
180795e0246bSmrg  eval "$3=no"
180895e0246bSmrgfi
180995e0246bSmrgrm -f core conftest.err conftest.$ac_objext \
181095e0246bSmrg    conftest$ac_exeext conftest.$ac_ext
181195e0246bSmrgfi
181295e0246bSmrgeval ac_res=\$$3
181395e0246bSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
181495e0246bSmrg$as_echo "$ac_res" >&6; }
181595e0246bSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
181695e0246bSmrg
181795e0246bSmrg} # ac_fn_c_check_func
181895e0246bSmrgcat >config.log <<_ACEOF
181995e0246bSmrgThis file contains any messages produced by compilers while
182095e0246bSmrgrunning configure, to aid debugging if configure makes a mistake.
182195e0246bSmrg
1822cbc4e2beSmrgIt was created by bitmap $as_me 1.0.7, which was
182395e0246bSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
182495e0246bSmrg
182595e0246bSmrg  $ $0 $@
182695e0246bSmrg
182795e0246bSmrg_ACEOF
182895e0246bSmrgexec 5>>config.log
182995e0246bSmrg{
183095e0246bSmrgcat <<_ASUNAME
183195e0246bSmrg## --------- ##
183295e0246bSmrg## Platform. ##
183395e0246bSmrg## --------- ##
183495e0246bSmrg
183595e0246bSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
183695e0246bSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
183795e0246bSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
183895e0246bSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
183995e0246bSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
184095e0246bSmrg
184195e0246bSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
184295e0246bSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
184395e0246bSmrg
184495e0246bSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
184595e0246bSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
184695e0246bSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
184795e0246bSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
184895e0246bSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
184995e0246bSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
185095e0246bSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
185195e0246bSmrg
185295e0246bSmrg_ASUNAME
185395e0246bSmrg
185495e0246bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185595e0246bSmrgfor as_dir in $PATH
1856eaef79e5Smrgdo
1857eaef79e5Smrg  IFS=$as_save_IFS
1858eaef79e5Smrg  test -z "$as_dir" && as_dir=.
185995e0246bSmrg    $as_echo "PATH: $as_dir"
186095e0246bSmrg  done
1861eaef79e5SmrgIFS=$as_save_IFS
1862eaef79e5Smrg
1863eaef79e5Smrg} >&5
1864eaef79e5Smrg
1865eaef79e5Smrgcat >&5 <<_ACEOF
1866eaef79e5Smrg
1867eaef79e5Smrg
1868eaef79e5Smrg## ----------- ##
1869eaef79e5Smrg## Core tests. ##
1870eaef79e5Smrg## ----------- ##
1871eaef79e5Smrg
1872eaef79e5Smrg_ACEOF
1873eaef79e5Smrg
1874eaef79e5Smrg
1875eaef79e5Smrg# Keep a trace of the command line.
1876eaef79e5Smrg# Strip out --no-create and --no-recursion so they do not pile up.
1877eaef79e5Smrg# Strip out --silent because we don't want to record it for future runs.
1878eaef79e5Smrg# Also quote any args containing shell meta-characters.
1879eaef79e5Smrg# Make two passes to allow for proper duplicate-argument suppression.
1880eaef79e5Smrgac_configure_args=
1881eaef79e5Smrgac_configure_args0=
1882eaef79e5Smrgac_configure_args1=
1883eaef79e5Smrgac_must_keep_next=false
1884eaef79e5Smrgfor ac_pass in 1 2
1885eaef79e5Smrgdo
1886eaef79e5Smrg  for ac_arg
1887eaef79e5Smrg  do
1888eaef79e5Smrg    case $ac_arg in
1889eaef79e5Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1890eaef79e5Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1891eaef79e5Smrg    | -silent | --silent | --silen | --sile | --sil)
1892eaef79e5Smrg      continue ;;
1893eaef79e5Smrg    *\'*)
18942b32c8f7Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1895eaef79e5Smrg    esac
1896eaef79e5Smrg    case $ac_pass in
189795e0246bSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1898eaef79e5Smrg    2)
189995e0246bSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1900eaef79e5Smrg      if test $ac_must_keep_next = true; then
1901eaef79e5Smrg	ac_must_keep_next=false # Got value, back to normal.
1902eaef79e5Smrg      else
1903eaef79e5Smrg	case $ac_arg in
1904eaef79e5Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1905eaef79e5Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1906eaef79e5Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1907eaef79e5Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1908eaef79e5Smrg	    case "$ac_configure_args0 " in
1909eaef79e5Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1910eaef79e5Smrg	    esac
1911eaef79e5Smrg	    ;;
1912eaef79e5Smrg	  -* ) ac_must_keep_next=true ;;
1913eaef79e5Smrg	esac
1914eaef79e5Smrg      fi
191595e0246bSmrg      as_fn_append ac_configure_args " '$ac_arg'"
1916eaef79e5Smrg      ;;
1917eaef79e5Smrg    esac
1918eaef79e5Smrg  done
1919eaef79e5Smrgdone
192095e0246bSmrg{ ac_configure_args0=; unset ac_configure_args0;}
192195e0246bSmrg{ ac_configure_args1=; unset ac_configure_args1;}
1922eaef79e5Smrg
1923eaef79e5Smrg# When interrupted or exit'd, cleanup temporary files, and complete
1924eaef79e5Smrg# config.log.  We remove comments because anyway the quotes in there
1925eaef79e5Smrg# would cause problems or look ugly.
1926eaef79e5Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1927eaef79e5Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1928eaef79e5Smrgtrap 'exit_status=$?
1929eaef79e5Smrg  # Save into config.log some information that might help in debugging.
1930eaef79e5Smrg  {
1931eaef79e5Smrg    echo
1932eaef79e5Smrg
193395e0246bSmrg    $as_echo "## ---------------- ##
1934eaef79e5Smrg## Cache variables. ##
193595e0246bSmrg## ---------------- ##"
1936eaef79e5Smrg    echo
1937eaef79e5Smrg    # The following way of writing the cache mishandles newlines in values,
1938eaef79e5Smrg(
1939eaef79e5Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1940eaef79e5Smrg    eval ac_val=\$$ac_var
1941eaef79e5Smrg    case $ac_val in #(
1942eaef79e5Smrg    *${as_nl}*)
1943eaef79e5Smrg      case $ac_var in #(
194495e0246bSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19452b32c8f7Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1946eaef79e5Smrg      esac
1947eaef79e5Smrg      case $ac_var in #(
1948eaef79e5Smrg      _ | IFS | as_nl) ;; #(
19492b32c8f7Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
195095e0246bSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
1951eaef79e5Smrg      esac ;;
1952eaef79e5Smrg    esac
1953eaef79e5Smrg  done
1954eaef79e5Smrg  (set) 2>&1 |
1955eaef79e5Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1956eaef79e5Smrg    *${as_nl}ac_space=\ *)
1957eaef79e5Smrg      sed -n \
1958eaef79e5Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1959eaef79e5Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1960eaef79e5Smrg      ;; #(
1961eaef79e5Smrg    *)
1962eaef79e5Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1963eaef79e5Smrg      ;;
1964eaef79e5Smrg    esac |
1965eaef79e5Smrg    sort
1966eaef79e5Smrg)
1967eaef79e5Smrg    echo
1968eaef79e5Smrg
196995e0246bSmrg    $as_echo "## ----------------- ##
1970eaef79e5Smrg## Output variables. ##
197195e0246bSmrg## ----------------- ##"
1972eaef79e5Smrg    echo
1973eaef79e5Smrg    for ac_var in $ac_subst_vars
1974eaef79e5Smrg    do
1975eaef79e5Smrg      eval ac_val=\$$ac_var
1976eaef79e5Smrg      case $ac_val in
19772b32c8f7Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1978eaef79e5Smrg      esac
19792b32c8f7Smrg      $as_echo "$ac_var='\''$ac_val'\''"
1980eaef79e5Smrg    done | sort
1981eaef79e5Smrg    echo
1982eaef79e5Smrg
1983eaef79e5Smrg    if test -n "$ac_subst_files"; then
198495e0246bSmrg      $as_echo "## ------------------- ##
1985eaef79e5Smrg## File substitutions. ##
198695e0246bSmrg## ------------------- ##"
1987eaef79e5Smrg      echo
1988eaef79e5Smrg      for ac_var in $ac_subst_files
1989eaef79e5Smrg      do
1990eaef79e5Smrg	eval ac_val=\$$ac_var
1991eaef79e5Smrg	case $ac_val in
19922b32c8f7Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1993eaef79e5Smrg	esac
19942b32c8f7Smrg	$as_echo "$ac_var='\''$ac_val'\''"
1995eaef79e5Smrg      done | sort
1996eaef79e5Smrg      echo
1997eaef79e5Smrg    fi
1998eaef79e5Smrg
1999eaef79e5Smrg    if test -s confdefs.h; then
200095e0246bSmrg      $as_echo "## ----------- ##
2001eaef79e5Smrg## confdefs.h. ##
200295e0246bSmrg## ----------- ##"
2003eaef79e5Smrg      echo
2004eaef79e5Smrg      cat confdefs.h
2005eaef79e5Smrg      echo
2006eaef79e5Smrg    fi
2007eaef79e5Smrg    test "$ac_signal" != 0 &&
20082b32c8f7Smrg      $as_echo "$as_me: caught signal $ac_signal"
20092b32c8f7Smrg    $as_echo "$as_me: exit $exit_status"
2010eaef79e5Smrg  } >&5
2011eaef79e5Smrg  rm -f core *.core core.conftest.* &&
2012eaef79e5Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2013eaef79e5Smrg    exit $exit_status
2014eaef79e5Smrg' 0
2015eaef79e5Smrgfor ac_signal in 1 2 13 15; do
201695e0246bSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2017eaef79e5Smrgdone
2018eaef79e5Smrgac_signal=0
2019eaef79e5Smrg
2020eaef79e5Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2021eaef79e5Smrgrm -f -r conftest* confdefs.h
2022eaef79e5Smrg
202395e0246bSmrg$as_echo "/* confdefs.h */" > confdefs.h
202495e0246bSmrg
2025eaef79e5Smrg# Predefined preprocessor variables.
2026eaef79e5Smrg
2027eaef79e5Smrgcat >>confdefs.h <<_ACEOF
2028eaef79e5Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
2029eaef79e5Smrg_ACEOF
2030eaef79e5Smrg
2031eaef79e5Smrgcat >>confdefs.h <<_ACEOF
2032eaef79e5Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2033eaef79e5Smrg_ACEOF
2034eaef79e5Smrg
2035eaef79e5Smrgcat >>confdefs.h <<_ACEOF
2036eaef79e5Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
2037eaef79e5Smrg_ACEOF
2038eaef79e5Smrg
2039eaef79e5Smrgcat >>confdefs.h <<_ACEOF
2040eaef79e5Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
2041eaef79e5Smrg_ACEOF
2042eaef79e5Smrg
2043eaef79e5Smrgcat >>confdefs.h <<_ACEOF
2044eaef79e5Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2045eaef79e5Smrg_ACEOF
2046eaef79e5Smrg
204795e0246bSmrgcat >>confdefs.h <<_ACEOF
204895e0246bSmrg#define PACKAGE_URL "$PACKAGE_URL"
204995e0246bSmrg_ACEOF
205095e0246bSmrg
2051eaef79e5Smrg
2052eaef79e5Smrg# Let the site file select an alternate cache file if it wants to.
20532b32c8f7Smrg# Prefer an explicitly selected file to automatically selected ones.
20542b32c8f7Smrgac_site_file1=NONE
20552b32c8f7Smrgac_site_file2=NONE
2056eaef79e5Smrgif test -n "$CONFIG_SITE"; then
205795e0246bSmrg  # We do not want a PATH search for config.site.
205895e0246bSmrg  case $CONFIG_SITE in #((
205995e0246bSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
206095e0246bSmrg    */*) ac_site_file1=$CONFIG_SITE;;
206195e0246bSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
206295e0246bSmrg  esac
2063eaef79e5Smrgelif test "x$prefix" != xNONE; then
20642b32c8f7Smrg  ac_site_file1=$prefix/share/config.site
20652b32c8f7Smrg  ac_site_file2=$prefix/etc/config.site
2066eaef79e5Smrgelse
20672b32c8f7Smrg  ac_site_file1=$ac_default_prefix/share/config.site
20682b32c8f7Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
2069eaef79e5Smrgfi
20702b32c8f7Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2071eaef79e5Smrgdo
20722b32c8f7Smrg  test "x$ac_site_file" = xNONE && continue
207395e0246bSmrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
207495e0246bSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
20752b32c8f7Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2076eaef79e5Smrg    sed 's/^/| /' "$ac_site_file" >&5
207795e0246bSmrg    . "$ac_site_file" \
207895e0246bSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
207995e0246bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
208095e0246bSmrgas_fn_error $? "failed to load site script $ac_site_file
208195e0246bSmrgSee \`config.log' for more details" "$LINENO" 5; }
2082eaef79e5Smrg  fi
2083eaef79e5Smrgdone
2084eaef79e5Smrg
2085eaef79e5Smrgif test -r "$cache_file"; then
208695e0246bSmrg  # Some versions of bash will fail to source /dev/null (special files
208795e0246bSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
208895e0246bSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
208995e0246bSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
20902b32c8f7Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2091eaef79e5Smrg    case $cache_file in
2092eaef79e5Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2093eaef79e5Smrg      *)                      . "./$cache_file";;
2094eaef79e5Smrg    esac
2095eaef79e5Smrg  fi
2096eaef79e5Smrgelse
209795e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
20982b32c8f7Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2099eaef79e5Smrg  >$cache_file
2100eaef79e5Smrgfi
2101eaef79e5Smrg
2102eaef79e5Smrg# Check that the precious variables saved in the cache have kept the same
2103eaef79e5Smrg# value.
2104eaef79e5Smrgac_cache_corrupted=false
2105eaef79e5Smrgfor ac_var in $ac_precious_vars; do
2106eaef79e5Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2107eaef79e5Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
2108eaef79e5Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2109eaef79e5Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
2110eaef79e5Smrg  case $ac_old_set,$ac_new_set in
2111eaef79e5Smrg    set,)
211295e0246bSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
21132b32c8f7Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2114eaef79e5Smrg      ac_cache_corrupted=: ;;
2115eaef79e5Smrg    ,set)
211695e0246bSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
21172b32c8f7Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2118eaef79e5Smrg      ac_cache_corrupted=: ;;
2119eaef79e5Smrg    ,);;
2120eaef79e5Smrg    *)
2121eaef79e5Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
21222b32c8f7Smrg	# differences in whitespace do not lead to failure.
21232b32c8f7Smrg	ac_old_val_w=`echo x $ac_old_val`
21242b32c8f7Smrg	ac_new_val_w=`echo x $ac_new_val`
21252b32c8f7Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
212695e0246bSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
21272b32c8f7Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
21282b32c8f7Smrg	  ac_cache_corrupted=:
21292b32c8f7Smrg	else
213095e0246bSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
21312b32c8f7Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
21322b32c8f7Smrg	  eval $ac_var=\$ac_old_val
21332b32c8f7Smrg	fi
213495e0246bSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
21352b32c8f7Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
213695e0246bSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
21372b32c8f7Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2138eaef79e5Smrg      fi;;
2139eaef79e5Smrg  esac
2140eaef79e5Smrg  # Pass precious variables to config.status.
2141eaef79e5Smrg  if test "$ac_new_set" = set; then
2142eaef79e5Smrg    case $ac_new_val in
21432b32c8f7Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2144eaef79e5Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
2145eaef79e5Smrg    esac
2146eaef79e5Smrg    case " $ac_configure_args " in
2147eaef79e5Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
214895e0246bSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2149eaef79e5Smrg    esac
2150eaef79e5Smrg  fi
2151eaef79e5Smrgdone
2152eaef79e5Smrgif $ac_cache_corrupted; then
215395e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21542b32c8f7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
215595e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
21562b32c8f7Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
215795e0246bSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2158eaef79e5Smrgfi
215995e0246bSmrg## -------------------- ##
216095e0246bSmrg## Main body of script. ##
216195e0246bSmrg## -------------------- ##
2162eaef79e5Smrg
2163eaef79e5Smrgac_ext=c
2164eaef79e5Smrgac_cpp='$CPP $CPPFLAGS'
2165eaef79e5Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166eaef79e5Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167eaef79e5Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2168eaef79e5Smrg
2169eaef79e5Smrg
2170cbc4e2beSmrg
2171cbc4e2beSmrgac_config_headers="$ac_config_headers config.h"
2172cbc4e2beSmrg
2173cbc4e2beSmrg
2174cbc4e2beSmrg# Initialize Automake
2175cbc4e2beSmrgam__api_version='1.13'
21762b32c8f7Smrg
2177eaef79e5Smrgac_aux_dir=
2178eaef79e5Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2179eaef79e5Smrg  if test -f "$ac_dir/install-sh"; then
2180eaef79e5Smrg    ac_aux_dir=$ac_dir
2181eaef79e5Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2182eaef79e5Smrg    break
2183eaef79e5Smrg  elif test -f "$ac_dir/install.sh"; then
2184eaef79e5Smrg    ac_aux_dir=$ac_dir
2185eaef79e5Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2186eaef79e5Smrg    break
2187eaef79e5Smrg  elif test -f "$ac_dir/shtool"; then
2188eaef79e5Smrg    ac_aux_dir=$ac_dir
2189eaef79e5Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2190eaef79e5Smrg    break
2191eaef79e5Smrg  fi
2192eaef79e5Smrgdone
2193eaef79e5Smrgif test -z "$ac_aux_dir"; then
219495e0246bSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2195eaef79e5Smrgfi
2196eaef79e5Smrg
2197eaef79e5Smrg# These three variables are undocumented and unsupported,
2198eaef79e5Smrg# and are intended to be withdrawn in a future Autoconf release.
2199eaef79e5Smrg# They can cause serious problems if a builder's source tree is in a directory
2200eaef79e5Smrg# whose full name contains unusual characters.
2201eaef79e5Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2202eaef79e5Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2203eaef79e5Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2204eaef79e5Smrg
2205eaef79e5Smrg
2206eaef79e5Smrg# Find a good install program.  We prefer a C program (faster),
2207eaef79e5Smrg# so one script is as good as another.  But avoid the broken or
2208eaef79e5Smrg# incompatible versions:
2209eaef79e5Smrg# SysV /etc/install, /usr/sbin/install
2210eaef79e5Smrg# SunOS /usr/etc/install
2211eaef79e5Smrg# IRIX /sbin/install
2212eaef79e5Smrg# AIX /bin/install
2213eaef79e5Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2214eaef79e5Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2215eaef79e5Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2216eaef79e5Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2217eaef79e5Smrg# OS/2's system install, which has a completely different semantic
2218eaef79e5Smrg# ./install, which can be erroneously created by make from ./install.sh.
22192b32c8f7Smrg# Reject install programs that cannot install multiple files.
222095e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
22212b32c8f7Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2222eaef79e5Smrgif test -z "$INSTALL"; then
222395e0246bSmrgif ${ac_cv_path_install+:} false; then :
22242b32c8f7Smrg  $as_echo_n "(cached) " >&6
2225eaef79e5Smrgelse
2226eaef79e5Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227eaef79e5Smrgfor as_dir in $PATH
2228eaef79e5Smrgdo
2229eaef79e5Smrg  IFS=$as_save_IFS
2230eaef79e5Smrg  test -z "$as_dir" && as_dir=.
223195e0246bSmrg    # Account for people who put trailing slashes in PATH elements.
223295e0246bSmrgcase $as_dir/ in #((
223395e0246bSmrg  ./ | .// | /[cC]/* | \
2234eaef79e5Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
223595e0246bSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2236eaef79e5Smrg  /usr/ucb/* ) ;;
2237eaef79e5Smrg  *)
2238eaef79e5Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2239eaef79e5Smrg    # Don't use installbsd from OSF since it installs stuff as root
2240eaef79e5Smrg    # by default.
2241eaef79e5Smrg    for ac_prog in ginstall scoinst install; do
2242eaef79e5Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
22432b32c8f7Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2244eaef79e5Smrg	  if test $ac_prog = install &&
2245eaef79e5Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2246eaef79e5Smrg	    # AIX install.  It has an incompatible calling convention.
2247eaef79e5Smrg	    :
2248eaef79e5Smrg	  elif test $ac_prog = install &&
2249eaef79e5Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2250eaef79e5Smrg	    # program-specific install script used by HP pwplus--don't use.
2251eaef79e5Smrg	    :
2252eaef79e5Smrg	  else
22532b32c8f7Smrg	    rm -rf conftest.one conftest.two conftest.dir
22542b32c8f7Smrg	    echo one > conftest.one
22552b32c8f7Smrg	    echo two > conftest.two
22562b32c8f7Smrg	    mkdir conftest.dir
22572b32c8f7Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
22582b32c8f7Smrg	      test -s conftest.one && test -s conftest.two &&
22592b32c8f7Smrg	      test -s conftest.dir/conftest.one &&
22602b32c8f7Smrg	      test -s conftest.dir/conftest.two
22612b32c8f7Smrg	    then
22622b32c8f7Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
22632b32c8f7Smrg	      break 3
22642b32c8f7Smrg	    fi
2265eaef79e5Smrg	  fi
2266eaef79e5Smrg	fi
2267eaef79e5Smrg      done
2268eaef79e5Smrg    done
2269eaef79e5Smrg    ;;
2270eaef79e5Smrgesac
22712b32c8f7Smrg
227295e0246bSmrg  done
2273eaef79e5SmrgIFS=$as_save_IFS
2274eaef79e5Smrg
22752b32c8f7Smrgrm -rf conftest.one conftest.two conftest.dir
2276eaef79e5Smrg
2277eaef79e5Smrgfi
2278eaef79e5Smrg  if test "${ac_cv_path_install+set}" = set; then
2279eaef79e5Smrg    INSTALL=$ac_cv_path_install
2280eaef79e5Smrg  else
2281eaef79e5Smrg    # As a last resort, use the slow shell script.  Don't cache a
2282eaef79e5Smrg    # value for INSTALL within a source directory, because that will
2283eaef79e5Smrg    # break other packages using the cache if that directory is
2284eaef79e5Smrg    # removed, or if the value is a relative name.
2285eaef79e5Smrg    INSTALL=$ac_install_sh
2286eaef79e5Smrg  fi
2287eaef79e5Smrgfi
228895e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
22892b32c8f7Smrg$as_echo "$INSTALL" >&6; }
2290eaef79e5Smrg
2291eaef79e5Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2292eaef79e5Smrg# It thinks the first close brace ends the variable substitution.
2293eaef79e5Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2294eaef79e5Smrg
2295eaef79e5Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2296eaef79e5Smrg
2297eaef79e5Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2298eaef79e5Smrg
229995e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
23002b32c8f7Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
23012b32c8f7Smrg# Reject unsafe characters in $srcdir or the absolute working directory
23022b32c8f7Smrg# name.  Accept space and tab only in the latter.
23032b32c8f7Smrgam_lf='
23042b32c8f7Smrg'
23052b32c8f7Smrgcase `pwd` in
23062b32c8f7Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
230795e0246bSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
23082b32c8f7Smrgesac
23092b32c8f7Smrgcase $srcdir in
23102b32c8f7Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2311cbc4e2beSmrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
23122b32c8f7Smrgesac
23132b32c8f7Smrg
2314cbc4e2beSmrg# Do 'set' in a subshell so we don't clobber the current shell's
2315eaef79e5Smrg# arguments.  Must try -L first in case configure is actually a
2316eaef79e5Smrg# symlink; some systems play weird games with the mod time of symlinks
2317eaef79e5Smrg# (eg FreeBSD returns the mod time of the symlink's containing
2318eaef79e5Smrg# directory).
2319eaef79e5Smrgif (
2320cbc4e2beSmrg   am_has_slept=no
2321cbc4e2beSmrg   for am_try in 1 2; do
2322cbc4e2beSmrg     echo "timestamp, slept: $am_has_slept" > conftest.file
2323cbc4e2beSmrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2324cbc4e2beSmrg     if test "$*" = "X"; then
2325cbc4e2beSmrg	# -L didn't work.
2326cbc4e2beSmrg	set X `ls -t "$srcdir/configure" conftest.file`
2327cbc4e2beSmrg     fi
2328cbc4e2beSmrg     if test "$*" != "X $srcdir/configure conftest.file" \
2329cbc4e2beSmrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
2330cbc4e2beSmrg
2331cbc4e2beSmrg	# If neither matched, then we have a broken ls.  This can happen
2332cbc4e2beSmrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
2333cbc4e2beSmrg	# broken ls alias from the environment.  This has actually
2334cbc4e2beSmrg	# happened.  Such a system could not be considered "sane".
2335cbc4e2beSmrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2336cbc4e2beSmrg  alias in your environment" "$LINENO" 5
2337cbc4e2beSmrg     fi
2338cbc4e2beSmrg     if test "$2" = conftest.file || test $am_try -eq 2; then
2339cbc4e2beSmrg       break
2340cbc4e2beSmrg     fi
2341cbc4e2beSmrg     # Just in case.
2342cbc4e2beSmrg     sleep 1
2343cbc4e2beSmrg     am_has_slept=yes
2344cbc4e2beSmrg   done
2345eaef79e5Smrg   test "$2" = conftest.file
2346eaef79e5Smrg   )
2347eaef79e5Smrgthen
2348eaef79e5Smrg   # Ok.
2349eaef79e5Smrg   :
2350eaef79e5Smrgelse
235195e0246bSmrg   as_fn_error $? "newly created file is older than distributed files!
235295e0246bSmrgCheck your system clock" "$LINENO" 5
2353eaef79e5Smrgfi
235495e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23552b32c8f7Smrg$as_echo "yes" >&6; }
2356cbc4e2beSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and
2357cbc4e2beSmrg# generated files are strictly newer.
2358cbc4e2beSmrgam_sleep_pid=
2359cbc4e2beSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
2360cbc4e2beSmrg  ( sleep 1 ) &
2361cbc4e2beSmrg  am_sleep_pid=$!
2362cbc4e2beSmrgfi
2363cbc4e2beSmrg
2364cbc4e2beSmrgrm -f conftest.file
2365cbc4e2beSmrg
2366eaef79e5Smrgtest "$program_prefix" != NONE &&
2367eaef79e5Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2368eaef79e5Smrg# Use a double $ so make ignores it.
2369eaef79e5Smrgtest "$program_suffix" != NONE &&
2370eaef79e5Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
23712b32c8f7Smrg# Double any \ or $.
2372eaef79e5Smrg# By default was `s,x,x', remove it if useless.
23732b32c8f7Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
23742b32c8f7Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2375eaef79e5Smrg
2376eaef79e5Smrg# expand $ac_aux_dir to an absolute path
2377eaef79e5Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
2378eaef79e5Smrg
23792b32c8f7Smrgif test x"${MISSING+set}" != xset; then
23802b32c8f7Smrg  case $am_aux_dir in
23812b32c8f7Smrg  *\ * | *\	*)
23822b32c8f7Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
23832b32c8f7Smrg  *)
23842b32c8f7Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
23852b32c8f7Smrg  esac
23862b32c8f7Smrgfi
2387eaef79e5Smrg# Use eval to expand $SHELL
2388cbc4e2beSmrgif eval "$MISSING --is-lightweight"; then
2389cbc4e2beSmrg  am_missing_run="$MISSING "
2390eaef79e5Smrgelse
2391eaef79e5Smrg  am_missing_run=
2392cbc4e2beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2393cbc4e2beSmrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
23942b32c8f7Smrgfi
23952b32c8f7Smrg
23962b32c8f7Smrgif test x"${install_sh}" != xset; then
23972b32c8f7Smrg  case $am_aux_dir in
23982b32c8f7Smrg  *\ * | *\	*)
23992b32c8f7Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
24002b32c8f7Smrg  *)
24012b32c8f7Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
24022b32c8f7Smrg  esac
24032b32c8f7Smrgfi
24042b32c8f7Smrg
2405cbc4e2beSmrg# Installed binaries are usually stripped using 'strip' when the user
2406cbc4e2beSmrg# run "make install-strip".  However 'strip' might not be the right
24072b32c8f7Smrg# tool to use in cross-compilation environments, therefore Automake
2408cbc4e2beSmrg# will honor the 'STRIP' environment variable to overrule this program.
24092b32c8f7Smrgif test "$cross_compiling" != no; then
24102b32c8f7Smrg  if test -n "$ac_tool_prefix"; then
24112b32c8f7Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24122b32c8f7Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
241395e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24142b32c8f7Smrg$as_echo_n "checking for $ac_word... " >&6; }
241595e0246bSmrgif ${ac_cv_prog_STRIP+:} false; then :
24162b32c8f7Smrg  $as_echo_n "(cached) " >&6
24172b32c8f7Smrgelse
24182b32c8f7Smrg  if test -n "$STRIP"; then
24192b32c8f7Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
24202b32c8f7Smrgelse
24212b32c8f7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24222b32c8f7Smrgfor as_dir in $PATH
24232b32c8f7Smrgdo
24242b32c8f7Smrg  IFS=$as_save_IFS
24252b32c8f7Smrg  test -z "$as_dir" && as_dir=.
242695e0246bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
24272b32c8f7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24282b32c8f7Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
242995e0246bSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24302b32c8f7Smrg    break 2
24312b32c8f7Smrg  fi
24322b32c8f7Smrgdone
243395e0246bSmrg  done
24342b32c8f7SmrgIFS=$as_save_IFS
24352b32c8f7Smrg
24362b32c8f7Smrgfi
24372b32c8f7Smrgfi
24382b32c8f7SmrgSTRIP=$ac_cv_prog_STRIP
24392b32c8f7Smrgif test -n "$STRIP"; then
244095e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
24412b32c8f7Smrg$as_echo "$STRIP" >&6; }
24422b32c8f7Smrgelse
244395e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24442b32c8f7Smrg$as_echo "no" >&6; }
24452b32c8f7Smrgfi
24462b32c8f7Smrg
24472b32c8f7Smrg
24482b32c8f7Smrgfi
24492b32c8f7Smrgif test -z "$ac_cv_prog_STRIP"; then
24502b32c8f7Smrg  ac_ct_STRIP=$STRIP
24512b32c8f7Smrg  # Extract the first word of "strip", so it can be a program name with args.
24522b32c8f7Smrgset dummy strip; ac_word=$2
245395e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24542b32c8f7Smrg$as_echo_n "checking for $ac_word... " >&6; }
245595e0246bSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
24562b32c8f7Smrg  $as_echo_n "(cached) " >&6
24572b32c8f7Smrgelse
24582b32c8f7Smrg  if test -n "$ac_ct_STRIP"; then
24592b32c8f7Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
24602b32c8f7Smrgelse
24612b32c8f7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24622b32c8f7Smrgfor as_dir in $PATH
24632b32c8f7Smrgdo
24642b32c8f7Smrg  IFS=$as_save_IFS
24652b32c8f7Smrg  test -z "$as_dir" && as_dir=.
246695e0246bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
24672b32c8f7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24682b32c8f7Smrg    ac_cv_prog_ac_ct_STRIP="strip"
246995e0246bSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24702b32c8f7Smrg    break 2
24712b32c8f7Smrg  fi
24722b32c8f7Smrgdone
247395e0246bSmrg  done
24742b32c8f7SmrgIFS=$as_save_IFS
24752b32c8f7Smrg
24762b32c8f7Smrgfi
24772b32c8f7Smrgfi
24782b32c8f7Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
24792b32c8f7Smrgif test -n "$ac_ct_STRIP"; then
248095e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
24812b32c8f7Smrg$as_echo "$ac_ct_STRIP" >&6; }
24822b32c8f7Smrgelse
248395e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24842b32c8f7Smrg$as_echo "no" >&6; }
24852b32c8f7Smrgfi
24862b32c8f7Smrg
24872b32c8f7Smrg  if test "x$ac_ct_STRIP" = x; then
24882b32c8f7Smrg    STRIP=":"
24892b32c8f7Smrg  else
24902b32c8f7Smrg    case $cross_compiling:$ac_tool_warned in
24912b32c8f7Smrgyes:)
249295e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24932b32c8f7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24942b32c8f7Smrgac_tool_warned=yes ;;
24952b32c8f7Smrgesac
24962b32c8f7Smrg    STRIP=$ac_ct_STRIP
24972b32c8f7Smrg  fi
24982b32c8f7Smrgelse
24992b32c8f7Smrg  STRIP="$ac_cv_prog_STRIP"
25002b32c8f7Smrgfi
25012b32c8f7Smrg
25022b32c8f7Smrgfi
25032b32c8f7SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
25042b32c8f7Smrg
250595e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
25062b32c8f7Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
25072b32c8f7Smrgif test -z "$MKDIR_P"; then
250895e0246bSmrg  if ${ac_cv_path_mkdir+:} false; then :
25092b32c8f7Smrg  $as_echo_n "(cached) " >&6
25102b32c8f7Smrgelse
25112b32c8f7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25122b32c8f7Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
25132b32c8f7Smrgdo
25142b32c8f7Smrg  IFS=$as_save_IFS
25152b32c8f7Smrg  test -z "$as_dir" && as_dir=.
251695e0246bSmrg    for ac_prog in mkdir gmkdir; do
25172b32c8f7Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
25182b32c8f7Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
25192b32c8f7Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
25202b32c8f7Smrg	     'mkdir (GNU coreutils) '* | \
25212b32c8f7Smrg	     'mkdir (coreutils) '* | \
25222b32c8f7Smrg	     'mkdir (fileutils) '4.1*)
25232b32c8f7Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
25242b32c8f7Smrg	       break 3;;
25252b32c8f7Smrg	   esac
25262b32c8f7Smrg	 done
25272b32c8f7Smrg       done
252895e0246bSmrg  done
25292b32c8f7SmrgIFS=$as_save_IFS
25302b32c8f7Smrg
25312b32c8f7Smrgfi
25322b32c8f7Smrg
253395e0246bSmrg  test -d ./--version && rmdir ./--version
25342b32c8f7Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
25352b32c8f7Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
2536eaef79e5Smrg  else
25372b32c8f7Smrg    # As a last resort, use the slow shell script.  Don't cache a
25382b32c8f7Smrg    # value for MKDIR_P within a source directory, because that will
25392b32c8f7Smrg    # break other packages using the cache if that directory is
25402b32c8f7Smrg    # removed, or if the value is a relative name.
25412b32c8f7Smrg    MKDIR_P="$ac_install_sh -d"
2542eaef79e5Smrg  fi
2543eaef79e5Smrgfi
254495e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
25452b32c8f7Smrg$as_echo "$MKDIR_P" >&6; }
25462b32c8f7Smrg
2547eaef79e5Smrgfor ac_prog in gawk mawk nawk awk
2548eaef79e5Smrgdo
2549eaef79e5Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2550eaef79e5Smrgset dummy $ac_prog; ac_word=$2
255195e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25522b32c8f7Smrg$as_echo_n "checking for $ac_word... " >&6; }
255395e0246bSmrgif ${ac_cv_prog_AWK+:} false; then :
25542b32c8f7Smrg  $as_echo_n "(cached) " >&6
2555eaef79e5Smrgelse
2556eaef79e5Smrg  if test -n "$AWK"; then
2557eaef79e5Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2558eaef79e5Smrgelse
2559eaef79e5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560eaef79e5Smrgfor as_dir in $PATH
2561eaef79e5Smrgdo
2562eaef79e5Smrg  IFS=$as_save_IFS
2563eaef79e5Smrg  test -z "$as_dir" && as_dir=.
256495e0246bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
25652b32c8f7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566eaef79e5Smrg    ac_cv_prog_AWK="$ac_prog"
256795e0246bSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568eaef79e5Smrg    break 2
2569eaef79e5Smrg  fi
2570eaef79e5Smrgdone
257195e0246bSmrg  done
2572eaef79e5SmrgIFS=$as_save_IFS
2573eaef79e5Smrg
2574eaef79e5Smrgfi
2575eaef79e5Smrgfi
2576eaef79e5SmrgAWK=$ac_cv_prog_AWK
2577eaef79e5Smrgif test -n "$AWK"; then
257895e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25792b32c8f7Smrg$as_echo "$AWK" >&6; }
2580eaef79e5Smrgelse
258195e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25822b32c8f7Smrg$as_echo "no" >&6; }
2583eaef79e5Smrgfi
2584eaef79e5Smrg
2585eaef79e5Smrg
2586eaef79e5Smrg  test -n "$AWK" && break
2587eaef79e5Smrgdone
2588eaef79e5Smrg
258995e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
25902b32c8f7Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
25912b32c8f7Smrgset x ${MAKE-make}
25922b32c8f7Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
259395e0246bSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
25942b32c8f7Smrg  $as_echo_n "(cached) " >&6
2595eaef79e5Smrgelse
2596eaef79e5Smrg  cat >conftest.make <<\_ACEOF
2597eaef79e5SmrgSHELL = /bin/sh
2598eaef79e5Smrgall:
2599eaef79e5Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2600eaef79e5Smrg_ACEOF
260195e0246bSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2602eaef79e5Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2603eaef79e5Smrg  *@@@%%%=?*=@@@%%%*)
2604eaef79e5Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2605eaef79e5Smrg  *)
2606eaef79e5Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2607eaef79e5Smrgesac
2608eaef79e5Smrgrm -f conftest.make
2609eaef79e5Smrgfi
2610eaef79e5Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
261195e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26122b32c8f7Smrg$as_echo "yes" >&6; }
2613eaef79e5Smrg  SET_MAKE=
2614eaef79e5Smrgelse
261595e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26162b32c8f7Smrg$as_echo "no" >&6; }
2617eaef79e5Smrg  SET_MAKE="MAKE=${MAKE-make}"
2618eaef79e5Smrgfi
2619eaef79e5Smrg
2620eaef79e5Smrgrm -rf .tst 2>/dev/null
2621eaef79e5Smrgmkdir .tst 2>/dev/null
2622eaef79e5Smrgif test -d .tst; then
2623eaef79e5Smrg  am__leading_dot=.
2624eaef79e5Smrgelse
2625eaef79e5Smrg  am__leading_dot=_
2626eaef79e5Smrgfi
2627eaef79e5Smrgrmdir .tst 2>/dev/null
2628eaef79e5Smrg
2629cbc4e2beSmrg# Check whether --enable-silent-rules was given.
2630cbc4e2beSmrgif test "${enable_silent_rules+set}" = set; then :
2631cbc4e2beSmrg  enableval=$enable_silent_rules;
2632cbc4e2beSmrgfi
2633cbc4e2beSmrg
2634cbc4e2beSmrgcase $enable_silent_rules in # (((
2635cbc4e2beSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
2636cbc4e2beSmrg   no) AM_DEFAULT_VERBOSITY=1;;
2637cbc4e2beSmrg    *) AM_DEFAULT_VERBOSITY=1;;
2638cbc4e2beSmrgesac
2639cbc4e2beSmrgam_make=${MAKE-make}
2640cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2641cbc4e2beSmrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2642cbc4e2beSmrgif ${am_cv_make_support_nested_variables+:} false; then :
2643cbc4e2beSmrg  $as_echo_n "(cached) " >&6
2644cbc4e2beSmrgelse
2645cbc4e2beSmrg  if $as_echo 'TRUE=$(BAR$(V))
2646cbc4e2beSmrgBAR0=false
2647cbc4e2beSmrgBAR1=true
2648cbc4e2beSmrgV=1
2649cbc4e2beSmrgam__doit:
2650cbc4e2beSmrg	@$(TRUE)
2651cbc4e2beSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2652cbc4e2beSmrg  am_cv_make_support_nested_variables=yes
2653cbc4e2beSmrgelse
2654cbc4e2beSmrg  am_cv_make_support_nested_variables=no
2655cbc4e2beSmrgfi
2656cbc4e2beSmrgfi
2657cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2658cbc4e2beSmrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
2659cbc4e2beSmrgif test $am_cv_make_support_nested_variables = yes; then
2660cbc4e2beSmrg    AM_V='$(V)'
2661cbc4e2beSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2662cbc4e2beSmrgelse
2663cbc4e2beSmrg  AM_V=$AM_DEFAULT_VERBOSITY
2664cbc4e2beSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2665cbc4e2beSmrgfi
2666cbc4e2beSmrgAM_BACKSLASH='\'
2667cbc4e2beSmrg
26682b32c8f7Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
26692b32c8f7Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
26702b32c8f7Smrg  # is not polluted with repeated "-I."
26712b32c8f7Smrg  am__isrc=' -I$(srcdir)'
26722b32c8f7Smrg  # test to see if srcdir already configured
26732b32c8f7Smrg  if test -f $srcdir/config.status; then
267495e0246bSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
26752b32c8f7Smrg  fi
2676eaef79e5Smrgfi
2677eaef79e5Smrg
2678eaef79e5Smrg# test whether we have cygpath
2679eaef79e5Smrgif test -z "$CYGPATH_W"; then
2680eaef79e5Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2681eaef79e5Smrg    CYGPATH_W='cygpath -w'
2682eaef79e5Smrg  else
2683eaef79e5Smrg    CYGPATH_W=echo
2684eaef79e5Smrg  fi
2685eaef79e5Smrgfi
2686eaef79e5Smrg
2687eaef79e5Smrg
2688eaef79e5Smrg# Define the identity of the package.
2689eaef79e5Smrg PACKAGE='bitmap'
2690cbc4e2beSmrg VERSION='1.0.7'
2691eaef79e5Smrg
2692eaef79e5Smrg
2693eaef79e5Smrgcat >>confdefs.h <<_ACEOF
2694eaef79e5Smrg#define PACKAGE "$PACKAGE"
2695eaef79e5Smrg_ACEOF
2696eaef79e5Smrg
2697eaef79e5Smrg
2698eaef79e5Smrgcat >>confdefs.h <<_ACEOF
2699eaef79e5Smrg#define VERSION "$VERSION"
2700eaef79e5Smrg_ACEOF
2701eaef79e5Smrg
2702eaef79e5Smrg# Some tools Automake needs.
2703eaef79e5Smrg
2704eaef79e5SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2705eaef79e5Smrg
2706eaef79e5Smrg
2707eaef79e5SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2708eaef79e5Smrg
2709eaef79e5Smrg
2710eaef79e5SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2711eaef79e5Smrg
2712eaef79e5Smrg
2713eaef79e5SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2714eaef79e5Smrg
2715eaef79e5Smrg
2716eaef79e5SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2717eaef79e5Smrg
2718cbc4e2beSmrg# For better backward compatibility.  To be removed once Automake 1.9.x
2719cbc4e2beSmrg# dies out for good.  For more background, see:
2720cbc4e2beSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2721cbc4e2beSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2722cbc4e2beSmrgmkdir_p='$(MKDIR_P)'
2723cbc4e2beSmrg
2724eaef79e5Smrg# We need awk for the "check" target.  The system "awk" is bad on
2725eaef79e5Smrg# some platforms.
2726cbc4e2beSmrg# Always define AMTAR for backward compatibility.  Yes, it's still used
2727cbc4e2beSmrg# in the wild :-(  We should find a proper way to deprecate it ...
2728cbc4e2beSmrgAMTAR='$${TAR-tar}'
2729cbc4e2beSmrg
2730eaef79e5Smrg
2731cbc4e2beSmrg# We'll loop over all known methods to create a tar archive until one works.
2732cbc4e2beSmrg_am_tools='gnutar  pax cpio none'
2733cbc4e2beSmrg
2734cbc4e2beSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2735eaef79e5Smrg
2736eaef79e5Smrg
2737eaef79e5Smrg
2738eaef79e5Smrg
2739eaef79e5Smrg
2740eaef79e5Smrg
27412b32c8f7Smrg
274295e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27432b32c8f7Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2744eaef79e5Smrg    # Check whether --enable-maintainer-mode was given.
274595e0246bSmrgif test "${enable_maintainer_mode+set}" = set; then :
2746eaef79e5Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2747eaef79e5Smrgelse
2748eaef79e5Smrg  USE_MAINTAINER_MODE=no
2749eaef79e5Smrgfi
2750eaef79e5Smrg
275195e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
27522b32c8f7Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
27532b32c8f7Smrg   if test $USE_MAINTAINER_MODE = yes; then
2754eaef79e5Smrg  MAINTAINER_MODE_TRUE=
2755eaef79e5Smrg  MAINTAINER_MODE_FALSE='#'
2756eaef79e5Smrgelse
2757eaef79e5Smrg  MAINTAINER_MODE_TRUE='#'
2758eaef79e5Smrg  MAINTAINER_MODE_FALSE=
2759eaef79e5Smrgfi
2760eaef79e5Smrg
2761eaef79e5Smrg  MAINT=$MAINTAINER_MODE_TRUE
2762eaef79e5Smrg
2763eaef79e5Smrg
2764eaef79e5Smrg
276595e0246bSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
27662b32c8f7Smrg
27672b32c8f7Smrg
27682b32c8f7Smrg
27692b32c8f7Smrg
27702b32c8f7Smrg
27712b32c8f7Smrg
27722b32c8f7Smrg
27732b32c8f7Smrg
27742b32c8f7Smrg
27752b32c8f7Smrg
27762b32c8f7Smrg
277795e0246bSmrgDEPDIR="${am__leading_dot}deps"
27782b32c8f7Smrg
277995e0246bSmrgac_config_commands="$ac_config_commands depfiles"
2780eaef79e5Smrg
2781eaef79e5Smrg
278295e0246bSmrgam_make=${MAKE-make}
278395e0246bSmrgcat > confinc << 'END'
278495e0246bSmrgam__doit:
278595e0246bSmrg	@echo this is the am__doit target
278695e0246bSmrg.PHONY: am__doit
278795e0246bSmrgEND
278895e0246bSmrg# If we don't find an include directive, just comment out the code.
278995e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
279095e0246bSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
279195e0246bSmrgam__include="#"
279295e0246bSmrgam__quote=
279395e0246bSmrg_am_result=none
279495e0246bSmrg# First try GNU make style include.
279595e0246bSmrgecho "include confinc" > confmf
2796cbc4e2beSmrg# Ignore all kinds of additional output from 'make'.
279795e0246bSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
279895e0246bSmrg*the\ am__doit\ target*)
279995e0246bSmrg  am__include=include
280095e0246bSmrg  am__quote=
280195e0246bSmrg  _am_result=GNU
280295e0246bSmrg  ;;
280395e0246bSmrgesac
280495e0246bSmrg# Now try BSD make style include.
280595e0246bSmrgif test "$am__include" = "#"; then
280695e0246bSmrg   echo '.include "confinc"' > confmf
280795e0246bSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
280895e0246bSmrg   *the\ am__doit\ target*)
280995e0246bSmrg     am__include=.include
281095e0246bSmrg     am__quote="\""
281195e0246bSmrg     _am_result=BSD
281295e0246bSmrg     ;;
281395e0246bSmrg   esac
281495e0246bSmrgfi
281595e0246bSmrg
281695e0246bSmrg
281795e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
281895e0246bSmrg$as_echo "$_am_result" >&6; }
281995e0246bSmrgrm -f confinc confmf
282095e0246bSmrg
282195e0246bSmrg# Check whether --enable-dependency-tracking was given.
282295e0246bSmrgif test "${enable_dependency_tracking+set}" = set; then :
282395e0246bSmrg  enableval=$enable_dependency_tracking;
282495e0246bSmrgfi
282595e0246bSmrg
282695e0246bSmrgif test "x$enable_dependency_tracking" != xno; then
282795e0246bSmrg  am_depcomp="$ac_aux_dir/depcomp"
282895e0246bSmrg  AMDEPBACKSLASH='\'
2829cbc4e2beSmrg  am__nodep='_no'
283095e0246bSmrgfi
283195e0246bSmrg if test "x$enable_dependency_tracking" != xno; then
283295e0246bSmrg  AMDEP_TRUE=
283395e0246bSmrg  AMDEP_FALSE='#'
283495e0246bSmrgelse
283595e0246bSmrg  AMDEP_TRUE='#'
283695e0246bSmrg  AMDEP_FALSE=
283795e0246bSmrgfi
283895e0246bSmrg
283995e0246bSmrg
284095e0246bSmrgac_ext=c
284195e0246bSmrgac_cpp='$CPP $CPPFLAGS'
284295e0246bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
284395e0246bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
284495e0246bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
284595e0246bSmrgif test -n "$ac_tool_prefix"; then
284695e0246bSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
284795e0246bSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
284895e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
284995e0246bSmrg$as_echo_n "checking for $ac_word... " >&6; }
285095e0246bSmrgif ${ac_cv_prog_CC+:} false; then :
285195e0246bSmrg  $as_echo_n "(cached) " >&6
285295e0246bSmrgelse
285395e0246bSmrg  if test -n "$CC"; then
285495e0246bSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
285595e0246bSmrgelse
285695e0246bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
285795e0246bSmrgfor as_dir in $PATH
285895e0246bSmrgdo
285995e0246bSmrg  IFS=$as_save_IFS
286095e0246bSmrg  test -z "$as_dir" && as_dir=.
286195e0246bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
286295e0246bSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
286395e0246bSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
286495e0246bSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
286595e0246bSmrg    break 2
286695e0246bSmrg  fi
286795e0246bSmrgdone
286895e0246bSmrg  done
286995e0246bSmrgIFS=$as_save_IFS
287095e0246bSmrg
287195e0246bSmrgfi
287295e0246bSmrgfi
287395e0246bSmrgCC=$ac_cv_prog_CC
287495e0246bSmrgif test -n "$CC"; then
287595e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28762b32c8f7Smrg$as_echo "$CC" >&6; }
2877eaef79e5Smrgelse
287895e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28792b32c8f7Smrg$as_echo "no" >&6; }
2880eaef79e5Smrgfi
2881eaef79e5Smrg
2882eaef79e5Smrg
2883eaef79e5Smrgfi
2884eaef79e5Smrgif test -z "$ac_cv_prog_CC"; then
2885eaef79e5Smrg  ac_ct_CC=$CC
2886eaef79e5Smrg  # Extract the first word of "gcc", so it can be a program name with args.
2887eaef79e5Smrgset dummy gcc; ac_word=$2
288895e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28892b32c8f7Smrg$as_echo_n "checking for $ac_word... " >&6; }
289095e0246bSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
28912b32c8f7Smrg  $as_echo_n "(cached) " >&6
2892eaef79e5Smrgelse
2893eaef79e5Smrg  if test -n "$ac_ct_CC"; then
2894eaef79e5Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2895eaef79e5Smrgelse
2896eaef79e5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897eaef79e5Smrgfor as_dir in $PATH
2898eaef79e5Smrgdo
2899eaef79e5Smrg  IFS=$as_save_IFS
2900eaef79e5Smrg  test -z "$as_dir" && as_dir=.
290195e0246bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
29022b32c8f7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903eaef79e5Smrg    ac_cv_prog_ac_ct_CC="gcc"
290495e0246bSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905eaef79e5Smrg    break 2
2906eaef79e5Smrg  fi
2907eaef79e5Smrgdone
290895e0246bSmrg  done
2909eaef79e5SmrgIFS=$as_save_IFS
2910eaef79e5Smrg
2911eaef79e5Smrgfi
2912eaef79e5Smrgfi
2913eaef79e5Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2914eaef79e5Smrgif test -n "$ac_ct_CC"; then
291595e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
29162b32c8f7Smrg$as_echo "$ac_ct_CC" >&6; }
2917eaef79e5Smrgelse
291895e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29192b32c8f7Smrg$as_echo "no" >&6; }
2920eaef79e5Smrgfi
2921eaef79e5Smrg
2922eaef79e5Smrg  if test "x$ac_ct_CC" = x; then
2923eaef79e5Smrg    CC=""
2924eaef79e5Smrg  else
2925eaef79e5Smrg    case $cross_compiling:$ac_tool_warned in
2926eaef79e5Smrgyes:)
292795e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29282b32c8f7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929eaef79e5Smrgac_tool_warned=yes ;;
2930eaef79e5Smrgesac
2931eaef79e5Smrg    CC=$ac_ct_CC
2932eaef79e5Smrg  fi
2933eaef79e5Smrgelse
2934eaef79e5Smrg  CC="$ac_cv_prog_CC"
2935eaef79e5Smrgfi
2936eaef79e5Smrg
2937eaef79e5Smrgif test -z "$CC"; then
2938eaef79e5Smrg          if test -n "$ac_tool_prefix"; then
2939eaef79e5Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2940eaef79e5Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
294195e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29422b32c8f7Smrg$as_echo_n "checking for $ac_word... " >&6; }
294395e0246bSmrgif ${ac_cv_prog_CC+:} false; then :
29442b32c8f7Smrg  $as_echo_n "(cached) " >&6
2945eaef79e5Smrgelse
2946eaef79e5Smrg  if test -n "$CC"; then
2947eaef79e5Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2948eaef79e5Smrgelse
2949eaef79e5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950eaef79e5Smrgfor as_dir in $PATH
2951eaef79e5Smrgdo
2952eaef79e5Smrg  IFS=$as_save_IFS
2953eaef79e5Smrg  test -z "$as_dir" && as_dir=.
295495e0246bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
29552b32c8f7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956eaef79e5Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
295795e0246bSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958eaef79e5Smrg    break 2
2959eaef79e5Smrg  fi
2960eaef79e5Smrgdone
296195e0246bSmrg  done
2962eaef79e5SmrgIFS=$as_save_IFS
2963eaef79e5Smrg
2964eaef79e5Smrgfi
2965eaef79e5Smrgfi
2966eaef79e5SmrgCC=$ac_cv_prog_CC
2967eaef79e5Smrgif test -n "$CC"; then
296895e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29692b32c8f7Smrg$as_echo "$CC" >&6; }
2970eaef79e5Smrgelse
297195e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29722b32c8f7Smrg$as_echo "no" >&6; }
2973eaef79e5Smrgfi
2974eaef79e5Smrg
2975eaef79e5Smrg
2976eaef79e5Smrg  fi
2977eaef79e5Smrgfi
2978eaef79e5Smrgif test -z "$CC"; then
2979eaef79e5Smrg  # Extract the first word of "cc", so it can be a program name with args.
2980eaef79e5Smrgset dummy cc; ac_word=$2
298195e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29822b32c8f7Smrg$as_echo_n "checking for $ac_word... " >&6; }
298395e0246bSmrgif ${ac_cv_prog_CC+:} false; then :
29842b32c8f7Smrg  $as_echo_n "(cached) " >&6
2985eaef79e5Smrgelse
2986eaef79e5Smrg  if test -n "$CC"; then
2987eaef79e5Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2988eaef79e5Smrgelse
2989eaef79e5Smrg  ac_prog_rejected=no
2990eaef79e5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991eaef79e5Smrgfor as_dir in $PATH
2992eaef79e5Smrgdo
2993eaef79e5Smrg  IFS=$as_save_IFS
2994eaef79e5Smrg  test -z "$as_dir" && as_dir=.
299595e0246bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
29962b32c8f7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997eaef79e5Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2998eaef79e5Smrg       ac_prog_rejected=yes
2999eaef79e5Smrg       continue
3000eaef79e5Smrg     fi
3001eaef79e5Smrg    ac_cv_prog_CC="cc"
300295e0246bSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003eaef79e5Smrg    break 2
3004eaef79e5Smrg  fi
3005eaef79e5Smrgdone
300695e0246bSmrg  done
3007eaef79e5SmrgIFS=$as_save_IFS
3008eaef79e5Smrg
3009eaef79e5Smrgif test $ac_prog_rejected = yes; then
3010eaef79e5Smrg  # We found a bogon in the path, so make sure we never use it.
3011eaef79e5Smrg  set dummy $ac_cv_prog_CC
3012eaef79e5Smrg  shift
3013eaef79e5Smrg  if test $# != 0; then
3014eaef79e5Smrg    # We chose a different compiler from the bogus one.
3015eaef79e5Smrg    # However, it has the same basename, so the bogon will be chosen
3016eaef79e5Smrg    # first if we set CC to just the basename; use the full file name.
3017eaef79e5Smrg    shift
3018eaef79e5Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3019eaef79e5Smrg  fi
3020eaef79e5Smrgfi
3021eaef79e5Smrgfi
3022eaef79e5Smrgfi
3023eaef79e5SmrgCC=$ac_cv_prog_CC
3024eaef79e5Smrgif test -n "$CC"; then
302595e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
30262b32c8f7Smrg$as_echo "$CC" >&6; }
3027eaef79e5Smrgelse
302895e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30292b32c8f7Smrg$as_echo "no" >&6; }
3030eaef79e5Smrgfi
3031eaef79e5Smrg
3032eaef79e5Smrg
3033eaef79e5Smrgfi
3034eaef79e5Smrgif test -z "$CC"; then
3035eaef79e5Smrg  if test -n "$ac_tool_prefix"; then
3036eaef79e5Smrg  for ac_prog in cl.exe
3037eaef79e5Smrg  do
3038eaef79e5Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3039eaef79e5Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
304095e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30412b32c8f7Smrg$as_echo_n "checking for $ac_word... " >&6; }
304295e0246bSmrgif ${ac_cv_prog_CC+:} false; then :
30432b32c8f7Smrg  $as_echo_n "(cached) " >&6
3044eaef79e5Smrgelse
3045eaef79e5Smrg  if test -n "$CC"; then
3046eaef79e5Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3047eaef79e5Smrgelse
3048eaef79e5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049eaef79e5Smrgfor as_dir in $PATH
3050eaef79e5Smrgdo
3051eaef79e5Smrg  IFS=$as_save_IFS
3052eaef79e5Smrg  test -z "$as_dir" && as_dir=.
305395e0246bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
30542b32c8f7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055eaef79e5Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
305695e0246bSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057eaef79e5Smrg    break 2
3058eaef79e5Smrg  fi
3059eaef79e5Smrgdone
306095e0246bSmrg  done
3061eaef79e5SmrgIFS=$as_save_IFS
3062eaef79e5Smrg
3063eaef79e5Smrgfi
3064eaef79e5Smrgfi
3065eaef79e5SmrgCC=$ac_cv_prog_CC
3066eaef79e5Smrgif test -n "$CC"; then
306795e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
30682b32c8f7Smrg$as_echo "$CC" >&6; }
3069eaef79e5Smrgelse
307095e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30712b32c8f7Smrg$as_echo "no" >&6; }
3072eaef79e5Smrgfi
3073eaef79e5Smrg
3074eaef79e5Smrg
3075eaef79e5Smrg    test -n "$CC" && break
3076eaef79e5Smrg  done
3077eaef79e5Smrgfi
3078eaef79e5Smrgif test -z "$CC"; then
3079eaef79e5Smrg  ac_ct_CC=$CC
3080eaef79e5Smrg  for ac_prog in cl.exe
3081eaef79e5Smrgdo
3082eaef79e5Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3083eaef79e5Smrgset dummy $ac_prog; ac_word=$2
308495e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30852b32c8f7Smrg$as_echo_n "checking for $ac_word... " >&6; }
308695e0246bSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
30872b32c8f7Smrg  $as_echo_n "(cached) " >&6
3088eaef79e5Smrgelse
3089eaef79e5Smrg  if test -n "$ac_ct_CC"; then
3090eaef79e5Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3091eaef79e5Smrgelse
3092eaef79e5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093eaef79e5Smrgfor as_dir in $PATH
3094eaef79e5Smrgdo
3095eaef79e5Smrg  IFS=$as_save_IFS
3096eaef79e5Smrg  test -z "$as_dir" && as_dir=.
309795e0246bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
30982b32c8f7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099eaef79e5Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
310095e0246bSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101eaef79e5Smrg    break 2
3102eaef79e5Smrg  fi
3103eaef79e5Smrgdone
310495e0246bSmrg  done
3105eaef79e5SmrgIFS=$as_save_IFS
3106eaef79e5Smrg
3107eaef79e5Smrgfi
3108eaef79e5Smrgfi
3109eaef79e5Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3110eaef79e5Smrgif test -n "$ac_ct_CC"; then
311195e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
31122b32c8f7Smrg$as_echo "$ac_ct_CC" >&6; }
3113eaef79e5Smrgelse
311495e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31152b32c8f7Smrg$as_echo "no" >&6; }
3116eaef79e5Smrgfi
3117eaef79e5Smrg
3118eaef79e5Smrg
3119eaef79e5Smrg  test -n "$ac_ct_CC" && break
3120eaef79e5Smrgdone
3121eaef79e5Smrg
3122eaef79e5Smrg  if test "x$ac_ct_CC" = x; then
3123eaef79e5Smrg    CC=""
3124eaef79e5Smrg  else
3125eaef79e5Smrg    case $cross_compiling:$ac_tool_warned in
3126eaef79e5Smrgyes:)
312795e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31282b32c8f7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3129eaef79e5Smrgac_tool_warned=yes ;;
3130eaef79e5Smrgesac
3131eaef79e5Smrg    CC=$ac_ct_CC
3132eaef79e5Smrg  fi
3133eaef79e5Smrgfi
3134eaef79e5Smrg
3135eaef79e5Smrgfi
3136eaef79e5Smrg
3137eaef79e5Smrg
313895e0246bSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31392b32c8f7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
314095e0246bSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
314195e0246bSmrgSee \`config.log' for more details" "$LINENO" 5; }
3142eaef79e5Smrg
3143eaef79e5Smrg# Provide some information about the compiler.
314495e0246bSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
31452b32c8f7Smrgset X $ac_compile
31462b32c8f7Smrgac_compiler=$2
314795e0246bSmrgfor ac_option in --version -v -V -qversion; do
314895e0246bSmrg  { { ac_try="$ac_compiler $ac_option >&5"
3149eaef79e5Smrgcase "(($ac_try" in
3150eaef79e5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151eaef79e5Smrg  *) ac_try_echo=$ac_try;;
3152eaef79e5Smrgesac
315395e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
315495e0246bSmrg$as_echo "$ac_try_echo"; } >&5
315595e0246bSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3156eaef79e5Smrg  ac_status=$?
315795e0246bSmrg  if test -s conftest.err; then
315895e0246bSmrg    sed '10a\
315995e0246bSmrg... rest of stderr output deleted ...
316095e0246bSmrg         10q' conftest.err >conftest.er1
316195e0246bSmrg    cat conftest.er1 >&5
316295e0246bSmrg  fi
316395e0246bSmrg  rm -f conftest.er1 conftest.err
316495e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
316595e0246bSmrg  test $ac_status = 0; }
316695e0246bSmrgdone
3167eaef79e5Smrg
316895e0246bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169eaef79e5Smrg/* end confdefs.h.  */
3170eaef79e5Smrg
3171eaef79e5Smrgint
3172eaef79e5Smrgmain ()
3173eaef79e5Smrg{
3174eaef79e5Smrg
3175eaef79e5Smrg  ;
3176eaef79e5Smrg  return 0;
3177eaef79e5Smrg}
3178eaef79e5Smrg_ACEOF
3179eaef79e5Smrgac_clean_files_save=$ac_clean_files
31802b32c8f7Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3181eaef79e5Smrg# Try to create an executable without -o first, disregard a.out.
3182eaef79e5Smrg# It will help us diagnose broken compilers, and finding out an intuition
3183eaef79e5Smrg# of exeext.
318495e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
318595e0246bSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
31862b32c8f7Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
31872b32c8f7Smrg
31882b32c8f7Smrg# The possible output files:
31892b32c8f7Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
31902b32c8f7Smrg
3191eaef79e5Smrgac_rmfiles=
3192eaef79e5Smrgfor ac_file in $ac_files
3193eaef79e5Smrgdo
3194eaef79e5Smrg  case $ac_file in
31952b32c8f7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3196eaef79e5Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3197eaef79e5Smrg  esac
3198eaef79e5Smrgdone
3199eaef79e5Smrgrm -f $ac_rmfiles
3200eaef79e5Smrg
320195e0246bSmrgif { { ac_try="$ac_link_default"
3202eaef79e5Smrgcase "(($ac_try" in
3203eaef79e5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204eaef79e5Smrg  *) ac_try_echo=$ac_try;;
3205eaef79e5Smrgesac
320695e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
320795e0246bSmrg$as_echo "$ac_try_echo"; } >&5
3208eaef79e5Smrg  (eval "$ac_link_default") 2>&5
3209eaef79e5Smrg  ac_status=$?
321095e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
321195e0246bSmrg  test $ac_status = 0; }; then :
3212eaef79e5Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3213eaef79e5Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3214eaef79e5Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3215eaef79e5Smrg# so that the user can short-circuit this test for compilers unknown to
3216eaef79e5Smrg# Autoconf.
32172b32c8f7Smrgfor ac_file in $ac_files ''
3218eaef79e5Smrgdo
3219eaef79e5Smrg  test -f "$ac_file" || continue
3220eaef79e5Smrg  case $ac_file in
32212b32c8f7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3222eaef79e5Smrg	;;
3223eaef79e5Smrg    [ab].out )
3224eaef79e5Smrg	# We found the default executable, but exeext='' is most
3225eaef79e5Smrg	# certainly right.
3226eaef79e5Smrg	break;;
3227eaef79e5Smrg    *.* )
322895e0246bSmrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3229eaef79e5Smrg	then :; else
3230eaef79e5Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3231eaef79e5Smrg	fi
3232eaef79e5Smrg	# We set ac_cv_exeext here because the later test for it is not
3233eaef79e5Smrg	# safe: cross compilers may not add the suffix if given an `-o'
3234eaef79e5Smrg	# argument, so we may need to know it at that point already.
3235eaef79e5Smrg	# Even if this section looks crufty: it has the advantage of
3236eaef79e5Smrg	# actually working.
3237eaef79e5Smrg	break;;
3238eaef79e5Smrg    * )
3239eaef79e5Smrg	break;;
3240eaef79e5Smrg  esac
3241eaef79e5Smrgdone
3242eaef79e5Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3243eaef79e5Smrg
3244eaef79e5Smrgelse
32452b32c8f7Smrg  ac_file=''
32462b32c8f7Smrgfi
324795e0246bSmrgif test -z "$ac_file"; then :
324895e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
324995e0246bSmrg$as_echo "no" >&6; }
325095e0246bSmrg$as_echo "$as_me: failed program was:" >&5
3251eaef79e5Smrgsed 's/^/| /' conftest.$ac_ext >&5
3252eaef79e5Smrg
325395e0246bSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32542b32c8f7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
325595e0246bSmrgas_fn_error 77 "C compiler cannot create executables
325695e0246bSmrgSee \`config.log' for more details" "$LINENO" 5; }
325795e0246bSmrgelse
325895e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
325995e0246bSmrg$as_echo "yes" >&6; }
3260eaef79e5Smrgfi
326195e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
326295e0246bSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
326395e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
326495e0246bSmrg$as_echo "$ac_file" >&6; }
3265eaef79e5Smrgac_exeext=$ac_cv_exeext
3266eaef79e5Smrg
32672b32c8f7Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3268eaef79e5Smrgac_clean_files=$ac_clean_files_save
326995e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
32702b32c8f7Smrg$as_echo_n "checking for suffix of executables... " >&6; }
327195e0246bSmrgif { { ac_try="$ac_link"
3272eaef79e5Smrgcase "(($ac_try" in
3273eaef79e5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274eaef79e5Smrg  *) ac_try_echo=$ac_try;;
3275eaef79e5Smrgesac
327695e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
327795e0246bSmrg$as_echo "$ac_try_echo"; } >&5
3278eaef79e5Smrg  (eval "$ac_link") 2>&5
3279eaef79e5Smrg  ac_status=$?
328095e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
328195e0246bSmrg  test $ac_status = 0; }; then :
3282eaef79e5Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3283eaef79e5Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3284eaef79e5Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3285eaef79e5Smrg# `rm'.
3286eaef79e5Smrgfor ac_file in conftest.exe conftest conftest.*; do
3287eaef79e5Smrg  test -f "$ac_file" || continue
3288eaef79e5Smrg  case $ac_file in
32892b32c8f7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3290eaef79e5Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3291eaef79e5Smrg	  break;;
3292eaef79e5Smrg    * ) break;;
3293eaef79e5Smrg  esac
3294eaef79e5Smrgdone
3295eaef79e5Smrgelse
329695e0246bSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32972b32c8f7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
329895e0246bSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
329995e0246bSmrgSee \`config.log' for more details" "$LINENO" 5; }
3300eaef79e5Smrgfi
330195e0246bSmrgrm -f conftest conftest$ac_cv_exeext
330295e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
33032b32c8f7Smrg$as_echo "$ac_cv_exeext" >&6; }
3304eaef79e5Smrg
3305eaef79e5Smrgrm -f conftest.$ac_ext
3306eaef79e5SmrgEXEEXT=$ac_cv_exeext
3307eaef79e5Smrgac_exeext=$EXEEXT
330895e0246bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
330995e0246bSmrg/* end confdefs.h.  */
331095e0246bSmrg#include <stdio.h>
331195e0246bSmrgint
331295e0246bSmrgmain ()
331395e0246bSmrg{
331495e0246bSmrgFILE *f = fopen ("conftest.out", "w");
331595e0246bSmrg return ferror (f) || fclose (f) != 0;
331695e0246bSmrg
331795e0246bSmrg  ;
331895e0246bSmrg  return 0;
331995e0246bSmrg}
332095e0246bSmrg_ACEOF
332195e0246bSmrgac_clean_files="$ac_clean_files conftest.out"
332295e0246bSmrg# Check that the compiler produces executables we can run.  If not, either
332395e0246bSmrg# the compiler is broken, or we cross compile.
332495e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
332595e0246bSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
332695e0246bSmrgif test "$cross_compiling" != yes; then
332795e0246bSmrg  { { ac_try="$ac_link"
332895e0246bSmrgcase "(($ac_try" in
332995e0246bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
333095e0246bSmrg  *) ac_try_echo=$ac_try;;
333195e0246bSmrgesac
333295e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
333395e0246bSmrg$as_echo "$ac_try_echo"; } >&5
333495e0246bSmrg  (eval "$ac_link") 2>&5
333595e0246bSmrg  ac_status=$?
333695e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
333795e0246bSmrg  test $ac_status = 0; }
333895e0246bSmrg  if { ac_try='./conftest$ac_cv_exeext'
333995e0246bSmrg  { { case "(($ac_try" in
334095e0246bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
334195e0246bSmrg  *) ac_try_echo=$ac_try;;
334295e0246bSmrgesac
334395e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
334495e0246bSmrg$as_echo "$ac_try_echo"; } >&5
334595e0246bSmrg  (eval "$ac_try") 2>&5
334695e0246bSmrg  ac_status=$?
334795e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
334895e0246bSmrg  test $ac_status = 0; }; }; then
334995e0246bSmrg    cross_compiling=no
335095e0246bSmrg  else
335195e0246bSmrg    if test "$cross_compiling" = maybe; then
335295e0246bSmrg	cross_compiling=yes
335395e0246bSmrg    else
335495e0246bSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
335595e0246bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
335695e0246bSmrgas_fn_error $? "cannot run C compiled programs.
335795e0246bSmrgIf you meant to cross compile, use \`--host'.
335895e0246bSmrgSee \`config.log' for more details" "$LINENO" 5; }
335995e0246bSmrg    fi
336095e0246bSmrg  fi
336195e0246bSmrgfi
336295e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
336395e0246bSmrg$as_echo "$cross_compiling" >&6; }
336495e0246bSmrg
336595e0246bSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
336695e0246bSmrgac_clean_files=$ac_clean_files_save
336795e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
33682b32c8f7Smrg$as_echo_n "checking for suffix of object files... " >&6; }
336995e0246bSmrgif ${ac_cv_objext+:} false; then :
33702b32c8f7Smrg  $as_echo_n "(cached) " >&6
3371eaef79e5Smrgelse
337295e0246bSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373eaef79e5Smrg/* end confdefs.h.  */
3374eaef79e5Smrg
3375eaef79e5Smrgint
3376eaef79e5Smrgmain ()
3377eaef79e5Smrg{
3378eaef79e5Smrg
3379eaef79e5Smrg  ;
3380eaef79e5Smrg  return 0;
3381eaef79e5Smrg}
3382eaef79e5Smrg_ACEOF
3383eaef79e5Smrgrm -f conftest.o conftest.obj
338495e0246bSmrgif { { ac_try="$ac_compile"
3385eaef79e5Smrgcase "(($ac_try" in
3386eaef79e5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387eaef79e5Smrg  *) ac_try_echo=$ac_try;;
3388eaef79e5Smrgesac
338995e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
339095e0246bSmrg$as_echo "$ac_try_echo"; } >&5
3391eaef79e5Smrg  (eval "$ac_compile") 2>&5
3392eaef79e5Smrg  ac_status=$?
339395e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
339495e0246bSmrg  test $ac_status = 0; }; then :
3395eaef79e5Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3396eaef79e5Smrg  test -f "$ac_file" || continue;
3397eaef79e5Smrg  case $ac_file in
33982b32c8f7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3399eaef79e5Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3400eaef79e5Smrg       break;;
3401eaef79e5Smrg  esac
3402eaef79e5Smrgdone
3403eaef79e5Smrgelse
34042b32c8f7Smrg  $as_echo "$as_me: failed program was:" >&5
3405eaef79e5Smrgsed 's/^/| /' conftest.$ac_ext >&5
3406eaef79e5Smrg
340795e0246bSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34082b32c8f7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
340995e0246bSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
341095e0246bSmrgSee \`config.log' for more details" "$LINENO" 5; }
3411eaef79e5Smrgfi
3412eaef79e5Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3413eaef79e5Smrgfi
341495e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
34152b32c8f7Smrg$as_echo "$ac_cv_objext" >&6; }
3416eaef79e5SmrgOBJEXT=$ac_cv_objext
3417eaef79e5Smrgac_objext=$OBJEXT
341895e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
34192b32c8f7Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
342095e0246bSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
34212b32c8f7Smrg  $as_echo_n "(cached) " >&6
3422eaef79e5Smrgelse
342395e0246bSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424eaef79e5Smrg/* end confdefs.h.  */
3425eaef79e5Smrg
3426eaef79e5Smrgint
3427eaef79e5Smrgmain ()
3428eaef79e5Smrg{
3429eaef79e5Smrg#ifndef __GNUC__
3430eaef79e5Smrg       choke me
3431eaef79e5Smrg#endif
3432eaef79e5Smrg
3433eaef79e5Smrg  ;
3434eaef79e5Smrg  return 0;
3435eaef79e5Smrg}
3436eaef79e5Smrg_ACEOF
343795e0246bSmrgif ac_fn_c_try_compile "$LINENO"; then :
3438eaef79e5Smrg  ac_compiler_gnu=yes
3439eaef79e5Smrgelse
344095e0246bSmrg  ac_compiler_gnu=no
3441eaef79e5Smrgfi
3442eaef79e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443eaef79e5Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3444eaef79e5Smrg
3445eaef79e5Smrgfi
344695e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
34472b32c8f7Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
34482b32c8f7Smrgif test $ac_compiler_gnu = yes; then
34492b32c8f7Smrg  GCC=yes
34502b32c8f7Smrgelse
34512b32c8f7Smrg  GCC=
34522b32c8f7Smrgfi
3453eaef79e5Smrgac_test_CFLAGS=${CFLAGS+set}
3454eaef79e5Smrgac_save_CFLAGS=$CFLAGS
345595e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
34562b32c8f7Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
345795e0246bSmrgif ${ac_cv_prog_cc_g+:} false; then :
34582b32c8f7Smrg  $as_echo_n "(cached) " >&6
3459eaef79e5Smrgelse
3460eaef79e5Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
3461eaef79e5Smrg   ac_c_werror_flag=yes
3462eaef79e5Smrg   ac_cv_prog_cc_g=no
3463eaef79e5Smrg   CFLAGS="-g"
346495e0246bSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465eaef79e5Smrg/* end confdefs.h.  */
3466eaef79e5Smrg
3467eaef79e5Smrgint
3468eaef79e5Smrgmain ()
3469eaef79e5Smrg{
3470eaef79e5Smrg
3471eaef79e5Smrg  ;
3472eaef79e5Smrg  return 0;
3473eaef79e5Smrg}
3474eaef79e5Smrg_ACEOF
347595e0246bSmrgif ac_fn_c_try_compile "$LINENO"; then :
3476eaef79e5Smrg  ac_cv_prog_cc_g=yes
3477eaef79e5Smrgelse
347895e0246bSmrg  CFLAGS=""
347995e0246bSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480eaef79e5Smrg/* end confdefs.h.  */
3481eaef79e5Smrg
3482eaef79e5Smrgint
3483eaef79e5Smrgmain ()
3484eaef79e5Smrg{
3485eaef79e5Smrg
3486eaef79e5Smrg  ;
3487eaef79e5Smrg  return 0;
3488eaef79e5Smrg}
3489eaef79e5Smrg_ACEOF
349095e0246bSmrgif ac_fn_c_try_compile "$LINENO"; then :
3491eaef79e5Smrg
349295e0246bSmrgelse
349395e0246bSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
3494eaef79e5Smrg	 CFLAGS="-g"
349595e0246bSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496eaef79e5Smrg/* end confdefs.h.  */
3497eaef79e5Smrg
3498eaef79e5Smrgint
3499eaef79e5Smrgmain ()
3500eaef79e5Smrg{
3501eaef79e5Smrg
3502eaef79e5Smrg  ;
3503eaef79e5Smrg  return 0;
3504eaef79e5Smrg}
3505eaef79e5Smrg_ACEOF
350695e0246bSmrgif ac_fn_c_try_compile "$LINENO"; then :
3507eaef79e5Smrg  ac_cv_prog_cc_g=yes
3508eaef79e5Smrgfi
3509eaef79e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510eaef79e5Smrgfi
3511eaef79e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512eaef79e5Smrgfi
3513eaef79e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514eaef79e5Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
3515eaef79e5Smrgfi
351695e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
35172b32c8f7Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3518eaef79e5Smrgif test "$ac_test_CFLAGS" = set; then
3519eaef79e5Smrg  CFLAGS=$ac_save_CFLAGS
3520eaef79e5Smrgelif test $ac_cv_prog_cc_g = yes; then
3521eaef79e5Smrg  if test "$GCC" = yes; then
3522eaef79e5Smrg    CFLAGS="-g -O2"
3523eaef79e5Smrg  else
3524eaef79e5Smrg    CFLAGS="-g"
3525eaef79e5Smrg  fi
3526eaef79e5Smrgelse
3527eaef79e5Smrg  if test "$GCC" = yes; then
3528eaef79e5Smrg    CFLAGS="-O2"
3529eaef79e5Smrg  else
3530eaef79e5Smrg    CFLAGS=
3531eaef79e5Smrg  fi
3532eaef79e5Smrgfi
353395e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
35342b32c8f7Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
353595e0246bSmrgif ${ac_cv_prog_cc_c89+:} false; then :
35362b32c8f7Smrg  $as_echo_n "(cached) " >&6
3537eaef79e5Smrgelse
3538eaef79e5Smrg  ac_cv_prog_cc_c89=no
3539eaef79e5Smrgac_save_CC=$CC
354095e0246bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541eaef79e5Smrg/* end confdefs.h.  */
3542eaef79e5Smrg#include <stdarg.h>
3543eaef79e5Smrg#include <stdio.h>
3544eaef79e5Smrg#include <sys/types.h>
3545eaef79e5Smrg#include <sys/stat.h>
3546eaef79e5Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3547eaef79e5Smrgstruct buf { int x; };
3548eaef79e5SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3549eaef79e5Smrgstatic char *e (p, i)
3550eaef79e5Smrg     char **p;
3551eaef79e5Smrg     int i;
3552eaef79e5Smrg{
3553eaef79e5Smrg  return p[i];
3554eaef79e5Smrg}
3555eaef79e5Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3556eaef79e5Smrg{
3557eaef79e5Smrg  char *s;
3558eaef79e5Smrg  va_list v;
3559eaef79e5Smrg  va_start (v,p);
3560eaef79e5Smrg  s = g (p, va_arg (v,int));
3561eaef79e5Smrg  va_end (v);
3562eaef79e5Smrg  return s;
3563eaef79e5Smrg}
3564eaef79e5Smrg
3565eaef79e5Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3566eaef79e5Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
3567eaef79e5Smrg   These don't provoke an error unfortunately, instead are silently treated
3568eaef79e5Smrg   as 'x'.  The following induces an error, until -std is added to get
3569eaef79e5Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3570eaef79e5Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
3571eaef79e5Smrg   that's true only with -std.  */
3572eaef79e5Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3573eaef79e5Smrg
3574eaef79e5Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3575eaef79e5Smrg   inside strings and character constants.  */
3576eaef79e5Smrg#define FOO(x) 'x'
3577eaef79e5Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3578eaef79e5Smrg
3579eaef79e5Smrgint test (int i, double x);
3580eaef79e5Smrgstruct s1 {int (*f) (int a);};
3581eaef79e5Smrgstruct s2 {int (*f) (double a);};
3582eaef79e5Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3583eaef79e5Smrgint argc;
3584eaef79e5Smrgchar **argv;
3585eaef79e5Smrgint
3586eaef79e5Smrgmain ()
3587eaef79e5Smrg{
3588eaef79e5Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3589eaef79e5Smrg  ;
3590eaef79e5Smrg  return 0;
3591eaef79e5Smrg}
3592eaef79e5Smrg_ACEOF
3593eaef79e5Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3594eaef79e5Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595eaef79e5Smrgdo
3596eaef79e5Smrg  CC="$ac_save_CC $ac_arg"
359795e0246bSmrg  if ac_fn_c_try_compile "$LINENO"; then :
3598eaef79e5Smrg  ac_cv_prog_cc_c89=$ac_arg
3599eaef79e5Smrgfi
3600eaef79e5Smrgrm -f core conftest.err conftest.$ac_objext
3601eaef79e5Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3602eaef79e5Smrgdone
3603eaef79e5Smrgrm -f conftest.$ac_ext
3604eaef79e5SmrgCC=$ac_save_CC
3605eaef79e5Smrg
3606eaef79e5Smrgfi
3607eaef79e5Smrg# AC_CACHE_VAL
3608eaef79e5Smrgcase "x$ac_cv_prog_cc_c89" in
3609eaef79e5Smrg  x)
361095e0246bSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
36112b32c8f7Smrg$as_echo "none needed" >&6; } ;;
3612eaef79e5Smrg  xno)
361395e0246bSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
36142b32c8f7Smrg$as_echo "unsupported" >&6; } ;;
3615eaef79e5Smrg  *)
3616eaef79e5Smrg    CC="$CC $ac_cv_prog_cc_c89"
361795e0246bSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
36182b32c8f7Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3619eaef79e5Smrgesac
362095e0246bSmrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3621eaef79e5Smrg
362295e0246bSmrgfi
3623eaef79e5Smrg
3624eaef79e5Smrgac_ext=c
3625eaef79e5Smrgac_cpp='$CPP $CPPFLAGS'
3626eaef79e5Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627eaef79e5Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628eaef79e5Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3629eaef79e5Smrg
3630eaef79e5Smrgdepcc="$CC"   am_compiler_list=
3631eaef79e5Smrg
363295e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
36332b32c8f7Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
363495e0246bSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
36352b32c8f7Smrg  $as_echo_n "(cached) " >&6
3636eaef79e5Smrgelse
3637eaef79e5Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3638eaef79e5Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
3639eaef79e5Smrg  # making bogus files that we don't know about and never remove.  For
3640eaef79e5Smrg  # instance it was reported that on HP-UX the gcc test will end up
3641cbc4e2beSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
3642cbc4e2beSmrg  # in D".
3643cbc4e2beSmrg  rm -rf conftest.dir
3644eaef79e5Smrg  mkdir conftest.dir
3645eaef79e5Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3646eaef79e5Smrg  # using a relative directory.
3647eaef79e5Smrg  cp "$am_depcomp" conftest.dir
3648eaef79e5Smrg  cd conftest.dir
3649eaef79e5Smrg  # We will build objects and dependencies in a subdirectory because
3650eaef79e5Smrg  # it helps to detect inapplicable dependency modes.  For instance
3651eaef79e5Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3652eaef79e5Smrg  # side effect of compilation, but ICC will put the dependencies in
3653eaef79e5Smrg  # the current directory while Tru64 will put them in the object
3654eaef79e5Smrg  # directory.
3655eaef79e5Smrg  mkdir sub
3656eaef79e5Smrg
3657eaef79e5Smrg  am_cv_CC_dependencies_compiler_type=none
3658eaef79e5Smrg  if test "$am_compiler_list" = ""; then
3659eaef79e5Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3660eaef79e5Smrg  fi
36612b32c8f7Smrg  am__universal=false
36622b32c8f7Smrg  case " $depcc " in #(
36632b32c8f7Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
36642b32c8f7Smrg     esac
36652b32c8f7Smrg
3666eaef79e5Smrg  for depmode in $am_compiler_list; do
3667eaef79e5Smrg    # Setup a source with many dependencies, because some compilers
3668eaef79e5Smrg    # like to wrap large dependency lists on column 80 (with \), and
3669eaef79e5Smrg    # we should not choose a depcomp mode which is confused by this.
3670eaef79e5Smrg    #
3671eaef79e5Smrg    # We need to recreate these files for each test, as the compiler may
3672eaef79e5Smrg    # overwrite some of them when testing with obscure command lines.
3673eaef79e5Smrg    # This happens at least with the AIX C compiler.
3674eaef79e5Smrg    : > sub/conftest.c
3675eaef79e5Smrg    for i in 1 2 3 4 5 6; do
3676eaef79e5Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3677cbc4e2beSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3678cbc4e2beSmrg      # Solaris 10 /bin/sh.
3679cbc4e2beSmrg      echo '/* dummy */' > sub/conftst$i.h
3680eaef79e5Smrg    done
3681eaef79e5Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3682eaef79e5Smrg
3683cbc4e2beSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
36842b32c8f7Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3685cbc4e2beSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
3686cbc4e2beSmrg    # versions had trouble with output in subdirs.
36872b32c8f7Smrg    am__obj=sub/conftest.${OBJEXT-o}
36882b32c8f7Smrg    am__minus_obj="-o $am__obj"
3689eaef79e5Smrg    case $depmode in
36902b32c8f7Smrg    gcc)
36912b32c8f7Smrg      # This depmode causes a compiler race in universal mode.
36922b32c8f7Smrg      test "$am__universal" = false || continue
36932b32c8f7Smrg      ;;
3694eaef79e5Smrg    nosideeffect)
3695cbc4e2beSmrg      # After this tag, mechanisms are not by side-effect, so they'll
3696cbc4e2beSmrg      # only be used when explicitly requested.
3697eaef79e5Smrg      if test "x$enable_dependency_tracking" = xyes; then
3698eaef79e5Smrg	continue
3699eaef79e5Smrg      else
3700eaef79e5Smrg	break
3701eaef79e5Smrg      fi
3702eaef79e5Smrg      ;;
3703cbc4e2beSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3704cbc4e2beSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
37052b32c8f7Smrg      # not run yet.  These depmodes are late enough in the game, and
37062b32c8f7Smrg      # so weak that their functioning should not be impacted.
37072b32c8f7Smrg      am__obj=conftest.${OBJEXT-o}
37082b32c8f7Smrg      am__minus_obj=
37092b32c8f7Smrg      ;;
3710eaef79e5Smrg    none) break ;;
3711eaef79e5Smrg    esac
3712eaef79e5Smrg    if depmode=$depmode \
37132b32c8f7Smrg       source=sub/conftest.c object=$am__obj \
3714eaef79e5Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
37152b32c8f7Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3716eaef79e5Smrg         >/dev/null 2>conftest.err &&
37172b32c8f7Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3718eaef79e5Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
37192b32c8f7Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3720eaef79e5Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3721eaef79e5Smrg      # icc doesn't choke on unknown options, it will just issue warnings
3722eaef79e5Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
3723eaef79e5Smrg      # that says an option was ignored or not supported.
3724eaef79e5Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3725eaef79e5Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3726eaef79e5Smrg      # The diagnosis changed in icc 8.0:
3727eaef79e5Smrg      #   icc: Command line remark: option '-MP' not supported
3728eaef79e5Smrg      if (grep 'ignoring option' conftest.err ||
3729eaef79e5Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3730eaef79e5Smrg        am_cv_CC_dependencies_compiler_type=$depmode
3731eaef79e5Smrg        break
3732eaef79e5Smrg      fi
3733eaef79e5Smrg    fi
3734eaef79e5Smrg  done
3735eaef79e5Smrg
3736eaef79e5Smrg  cd ..
3737eaef79e5Smrg  rm -rf conftest.dir
3738eaef79e5Smrgelse
3739eaef79e5Smrg  am_cv_CC_dependencies_compiler_type=none
3740eaef79e5Smrgfi
3741eaef79e5Smrg
3742eaef79e5Smrgfi
374395e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
37442b32c8f7Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3745eaef79e5SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3746eaef79e5Smrg
37472b32c8f7Smrg if
3748eaef79e5Smrg  test "x$enable_dependency_tracking" != xno \
3749eaef79e5Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3750eaef79e5Smrg  am__fastdepCC_TRUE=
3751eaef79e5Smrg  am__fastdepCC_FALSE='#'
3752eaef79e5Smrgelse
3753eaef79e5Smrg  am__fastdepCC_TRUE='#'
3754eaef79e5Smrg  am__fastdepCC_FALSE=
3755eaef79e5Smrgfi
3756eaef79e5Smrg
3757eaef79e5Smrg
375895e0246bSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
375995e0246bSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
376095e0246bSmrgif ${ac_cv_prog_cc_c99+:} false; then :
37612b32c8f7Smrg  $as_echo_n "(cached) " >&6
37622b32c8f7Smrgelse
376395e0246bSmrg  ac_cv_prog_cc_c99=no
376495e0246bSmrgac_save_CC=$CC
376595e0246bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
37662b32c8f7Smrg/* end confdefs.h.  */
376795e0246bSmrg#include <stdarg.h>
376895e0246bSmrg#include <stdbool.h>
376995e0246bSmrg#include <stdlib.h>
377095e0246bSmrg#include <wchar.h>
377195e0246bSmrg#include <stdio.h>
37722b32c8f7Smrg
377395e0246bSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
377495e0246bSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
377595e0246bSmrg#define showlist(...) puts (#__VA_ARGS__)
377695e0246bSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
377795e0246bSmrgstatic void
377895e0246bSmrgtest_varargs_macros (void)
377995e0246bSmrg{
378095e0246bSmrg  int x = 1234;
378195e0246bSmrg  int y = 5678;
378295e0246bSmrg  debug ("Flag");
378395e0246bSmrg  debug ("X = %d\n", x);
378495e0246bSmrg  showlist (The first, second, and third items.);
378595e0246bSmrg  report (x>y, "x is %d but y is %d", x, y);
378695e0246bSmrg}
378795e0246bSmrg
378895e0246bSmrg// Check long long types.
378995e0246bSmrg#define BIG64 18446744073709551615ull
379095e0246bSmrg#define BIG32 4294967295ul
379195e0246bSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
379295e0246bSmrg#if !BIG_OK
379395e0246bSmrg  your preprocessor is broken;
379495e0246bSmrg#endif
379595e0246bSmrg#if BIG_OK
379695e0246bSmrg#else
379795e0246bSmrg  your preprocessor is broken;
379895e0246bSmrg#endif
379995e0246bSmrgstatic long long int bignum = -9223372036854775807LL;
380095e0246bSmrgstatic unsigned long long int ubignum = BIG64;
380195e0246bSmrg
380295e0246bSmrgstruct incomplete_array
38032b32c8f7Smrg{
380495e0246bSmrg  int datasize;
380595e0246bSmrg  double data[];
380695e0246bSmrg};
38072b32c8f7Smrg
380895e0246bSmrgstruct named_init {
380995e0246bSmrg  int number;
381095e0246bSmrg  const wchar_t *name;
381195e0246bSmrg  double average;
381295e0246bSmrg};
381395e0246bSmrg
381495e0246bSmrgtypedef const char *ccp;
381595e0246bSmrg
381695e0246bSmrgstatic inline int
381795e0246bSmrgtest_restrict (ccp restrict text)
381895e0246bSmrg{
381995e0246bSmrg  // See if C++-style comments work.
382095e0246bSmrg  // Iterate through items via the restricted pointer.
382195e0246bSmrg  // Also check for declarations in for loops.
382295e0246bSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
382395e0246bSmrg    continue;
38242b32c8f7Smrg  return 0;
38252b32c8f7Smrg}
38262b32c8f7Smrg
382795e0246bSmrg// Check varargs and va_copy.
382895e0246bSmrgstatic void
382995e0246bSmrgtest_varargs (const char *format, ...)
383095e0246bSmrg{
383195e0246bSmrg  va_list args;
383295e0246bSmrg  va_start (args, format);
383395e0246bSmrg  va_list args_copy;
383495e0246bSmrg  va_copy (args_copy, args);
38352b32c8f7Smrg
383695e0246bSmrg  const char *str;
383795e0246bSmrg  int number;
383895e0246bSmrg  float fnumber;
38392b32c8f7Smrg
384095e0246bSmrg  while (*format)
384195e0246bSmrg    {
384295e0246bSmrg      switch (*format++)
384395e0246bSmrg	{
384495e0246bSmrg	case 's': // string
384595e0246bSmrg	  str = va_arg (args_copy, const char *);
384695e0246bSmrg	  break;
384795e0246bSmrg	case 'd': // int
384895e0246bSmrg	  number = va_arg (args_copy, int);
384995e0246bSmrg	  break;
385095e0246bSmrg	case 'f': // float
385195e0246bSmrg	  fnumber = va_arg (args_copy, double);
385295e0246bSmrg	  break;
385395e0246bSmrg	default:
385495e0246bSmrg	  break;
385595e0246bSmrg	}
385695e0246bSmrg    }
385795e0246bSmrg  va_end (args_copy);
385895e0246bSmrg  va_end (args);
385995e0246bSmrg}
38602b32c8f7Smrg
386195e0246bSmrgint
386295e0246bSmrgmain ()
386395e0246bSmrg{
38642b32c8f7Smrg
386595e0246bSmrg  // Check bool.
386695e0246bSmrg  _Bool success = false;
38672b32c8f7Smrg
386895e0246bSmrg  // Check restrict.
386995e0246bSmrg  if (test_restrict ("String literal") == 0)
387095e0246bSmrg    success = true;
387195e0246bSmrg  char *restrict newvar = "Another string";
38722b32c8f7Smrg
387395e0246bSmrg  // Check varargs.
387495e0246bSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
387595e0246bSmrg  test_varargs_macros ();
3876eaef79e5Smrg
387795e0246bSmrg  // Check flexible array members.
387895e0246bSmrg  struct incomplete_array *ia =
387995e0246bSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
388095e0246bSmrg  ia->datasize = 10;
388195e0246bSmrg  for (int i = 0; i < ia->datasize; ++i)
388295e0246bSmrg    ia->data[i] = i * 1.234;
3883eaef79e5Smrg
388495e0246bSmrg  // Check named initializers.
388595e0246bSmrg  struct named_init ni = {
388695e0246bSmrg    .number = 34,
388795e0246bSmrg    .name = L"Test wide string",
388895e0246bSmrg    .average = 543.34343,
388995e0246bSmrg  };
3890eaef79e5Smrg
389195e0246bSmrg  ni.number = 58;
3892eaef79e5Smrg
389395e0246bSmrg  int dynamic_array[ni.number];
389495e0246bSmrg  dynamic_array[ni.number - 1] = 543;
3895eaef79e5Smrg
389695e0246bSmrg  // work around unused variable warnings
389795e0246bSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
389895e0246bSmrg	  || dynamic_array[ni.number - 1] != 543);
389995e0246bSmrg
390095e0246bSmrg  ;
390195e0246bSmrg  return 0;
390295e0246bSmrg}
390395e0246bSmrg_ACEOF
390495e0246bSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
390595e0246bSmrgdo
390695e0246bSmrg  CC="$ac_save_CC $ac_arg"
390795e0246bSmrg  if ac_fn_c_try_compile "$LINENO"; then :
390895e0246bSmrg  ac_cv_prog_cc_c99=$ac_arg
390995e0246bSmrgfi
391095e0246bSmrgrm -f core conftest.err conftest.$ac_objext
391195e0246bSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
391295e0246bSmrgdone
391395e0246bSmrgrm -f conftest.$ac_ext
391495e0246bSmrgCC=$ac_save_CC
391595e0246bSmrg
391695e0246bSmrgfi
391795e0246bSmrg# AC_CACHE_VAL
391895e0246bSmrgcase "x$ac_cv_prog_cc_c99" in
391995e0246bSmrg  x)
392095e0246bSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
392195e0246bSmrg$as_echo "none needed" >&6; } ;;
392295e0246bSmrg  xno)
392395e0246bSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
392495e0246bSmrg$as_echo "unsupported" >&6; } ;;
392595e0246bSmrg  *)
392695e0246bSmrg    CC="$CC $ac_cv_prog_cc_c99"
392795e0246bSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
392895e0246bSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
392995e0246bSmrgesac
393095e0246bSmrgif test "x$ac_cv_prog_cc_c99" != xno; then :
393195e0246bSmrg
393295e0246bSmrgfi
3933eaef79e5Smrg
3934eaef79e5Smrg
3935eaef79e5Smrg
39362b32c8f7Smrgac_ext=c
39372b32c8f7Smrgac_cpp='$CPP $CPPFLAGS'
39382b32c8f7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39392b32c8f7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39402b32c8f7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
394195e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
39422b32c8f7Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
39432b32c8f7Smrg# On Suns, sometimes $CPP names a directory.
39442b32c8f7Smrgif test -n "$CPP" && test -d "$CPP"; then
39452b32c8f7Smrg  CPP=
39462b32c8f7Smrgfi
39472b32c8f7Smrgif test -z "$CPP"; then
394895e0246bSmrg  if ${ac_cv_prog_CPP+:} false; then :
39492b32c8f7Smrg  $as_echo_n "(cached) " >&6
39502b32c8f7Smrgelse
39512b32c8f7Smrg      # Double quotes because CPP needs to be expanded
39522b32c8f7Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
39532b32c8f7Smrg    do
39542b32c8f7Smrg      ac_preproc_ok=false
39552b32c8f7Smrgfor ac_c_preproc_warn_flag in '' yes
39562b32c8f7Smrgdo
39572b32c8f7Smrg  # Use a header file that comes with gcc, so configuring glibc
39582b32c8f7Smrg  # with a fresh cross-compiler works.
39592b32c8f7Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39602b32c8f7Smrg  # <limits.h> exists even on freestanding compilers.
39612b32c8f7Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
39622b32c8f7Smrg  # not just through cpp. "Syntax error" is here to catch this case.
396395e0246bSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964eaef79e5Smrg/* end confdefs.h.  */
3965eaef79e5Smrg#ifdef __STDC__
3966eaef79e5Smrg# include <limits.h>
3967eaef79e5Smrg#else
3968eaef79e5Smrg# include <assert.h>
3969eaef79e5Smrg#endif
39702b32c8f7Smrg		     Syntax error
3971eaef79e5Smrg_ACEOF
397295e0246bSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3973eaef79e5Smrg
397495e0246bSmrgelse
39752b32c8f7Smrg  # Broken: fails on valid input.
39762b32c8f7Smrgcontinue
3977eaef79e5Smrgfi
397895e0246bSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3979eaef79e5Smrg
39802b32c8f7Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
39812b32c8f7Smrg  # can be detected and how.
398295e0246bSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39832b32c8f7Smrg/* end confdefs.h.  */
39842b32c8f7Smrg#include <ac_nonexistent.h>
3985eaef79e5Smrg_ACEOF
398695e0246bSmrgif ac_fn_c_try_cpp "$LINENO"; then :
39872b32c8f7Smrg  # Broken: success on invalid input.
39882b32c8f7Smrgcontinue
39892b32c8f7Smrgelse
39902b32c8f7Smrg  # Passes both tests.
39912b32c8f7Smrgac_preproc_ok=:
39922b32c8f7Smrgbreak
3993eaef79e5Smrgfi
399495e0246bSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3995eaef79e5Smrg
39962b32c8f7Smrgdone
39972b32c8f7Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
399895e0246bSmrgrm -f conftest.i conftest.err conftest.$ac_ext
399995e0246bSmrgif $ac_preproc_ok; then :
40002b32c8f7Smrg  break
40012b32c8f7Smrgfi
4002eaef79e5Smrg
40032b32c8f7Smrg    done
40042b32c8f7Smrg    ac_cv_prog_CPP=$CPP
4005eaef79e5Smrg
40062b32c8f7Smrgfi
40072b32c8f7Smrg  CPP=$ac_cv_prog_CPP
4008eaef79e5Smrgelse
40092b32c8f7Smrg  ac_cv_prog_CPP=$CPP
40102b32c8f7Smrgfi
401195e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
40122b32c8f7Smrg$as_echo "$CPP" >&6; }
40132b32c8f7Smrgac_preproc_ok=false
40142b32c8f7Smrgfor ac_c_preproc_warn_flag in '' yes
40152b32c8f7Smrgdo
40162b32c8f7Smrg  # Use a header file that comes with gcc, so configuring glibc
40172b32c8f7Smrg  # with a fresh cross-compiler works.
40182b32c8f7Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40192b32c8f7Smrg  # <limits.h> exists even on freestanding compilers.
40202b32c8f7Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
40212b32c8f7Smrg  # not just through cpp. "Syntax error" is here to catch this case.
402295e0246bSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40232b32c8f7Smrg/* end confdefs.h.  */
40242b32c8f7Smrg#ifdef __STDC__
40252b32c8f7Smrg# include <limits.h>
40262b32c8f7Smrg#else
40272b32c8f7Smrg# include <assert.h>
40282b32c8f7Smrg#endif
40292b32c8f7Smrg		     Syntax error
40302b32c8f7Smrg_ACEOF
403195e0246bSmrgif ac_fn_c_try_cpp "$LINENO"; then :
40322b32c8f7Smrg
403395e0246bSmrgelse
40342b32c8f7Smrg  # Broken: fails on valid input.
40352b32c8f7Smrgcontinue
40362b32c8f7Smrgfi
403795e0246bSmrgrm -f conftest.err conftest.i conftest.$ac_ext
40382b32c8f7Smrg
40392b32c8f7Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
40402b32c8f7Smrg  # can be detected and how.
404195e0246bSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40422b32c8f7Smrg/* end confdefs.h.  */
40432b32c8f7Smrg#include <ac_nonexistent.h>
40442b32c8f7Smrg_ACEOF
404595e0246bSmrgif ac_fn_c_try_cpp "$LINENO"; then :
40462b32c8f7Smrg  # Broken: success on invalid input.
40472b32c8f7Smrgcontinue
40482b32c8f7Smrgelse
40492b32c8f7Smrg  # Passes both tests.
40502b32c8f7Smrgac_preproc_ok=:
40512b32c8f7Smrgbreak
40522b32c8f7Smrgfi
405395e0246bSmrgrm -f conftest.err conftest.i conftest.$ac_ext
40542b32c8f7Smrg
40552b32c8f7Smrgdone
40562b32c8f7Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
405795e0246bSmrgrm -f conftest.i conftest.err conftest.$ac_ext
405895e0246bSmrgif $ac_preproc_ok; then :
405995e0246bSmrg
40602b32c8f7Smrgelse
406195e0246bSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40622b32c8f7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
406395e0246bSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
406495e0246bSmrgSee \`config.log' for more details" "$LINENO" 5; }
40652b32c8f7Smrgfi
40662b32c8f7Smrg
40672b32c8f7Smrgac_ext=c
40682b32c8f7Smrgac_cpp='$CPP $CPPFLAGS'
40692b32c8f7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40702b32c8f7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40712b32c8f7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
40722b32c8f7Smrg
40732b32c8f7Smrg
407495e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
40752b32c8f7Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
407695e0246bSmrgif ${ac_cv_path_GREP+:} false; then :
40772b32c8f7Smrg  $as_echo_n "(cached) " >&6
40782b32c8f7Smrgelse
40792b32c8f7Smrg  if test -z "$GREP"; then
40802b32c8f7Smrg  ac_path_GREP_found=false
40812b32c8f7Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
40822b32c8f7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40832b32c8f7Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
40842b32c8f7Smrgdo
40852b32c8f7Smrg  IFS=$as_save_IFS
40862b32c8f7Smrg  test -z "$as_dir" && as_dir=.
408795e0246bSmrg    for ac_prog in grep ggrep; do
40882b32c8f7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
40892b32c8f7Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
40902b32c8f7Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
40912b32c8f7Smrg# Check for GNU ac_path_GREP and select it if it is found.
40922b32c8f7Smrg  # Check for GNU $ac_path_GREP
40932b32c8f7Smrgcase `"$ac_path_GREP" --version 2>&1` in
40942b32c8f7Smrg*GNU*)
40952b32c8f7Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
40962b32c8f7Smrg*)
40972b32c8f7Smrg  ac_count=0
40982b32c8f7Smrg  $as_echo_n 0123456789 >"conftest.in"
40992b32c8f7Smrg  while :
41002b32c8f7Smrg  do
41012b32c8f7Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
41022b32c8f7Smrg    mv "conftest.tmp" "conftest.in"
41032b32c8f7Smrg    cp "conftest.in" "conftest.nl"
41042b32c8f7Smrg    $as_echo 'GREP' >> "conftest.nl"
41052b32c8f7Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
41062b32c8f7Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
410795e0246bSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
41082b32c8f7Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
41092b32c8f7Smrg      # Best one so far, save it but keep looking for a better one
41102b32c8f7Smrg      ac_cv_path_GREP="$ac_path_GREP"
41112b32c8f7Smrg      ac_path_GREP_max=$ac_count
41122b32c8f7Smrg    fi
41132b32c8f7Smrg    # 10*(2^10) chars as input seems more than enough
41142b32c8f7Smrg    test $ac_count -gt 10 && break
41152b32c8f7Smrg  done
41162b32c8f7Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
41172b32c8f7Smrgesac
41182b32c8f7Smrg
41192b32c8f7Smrg      $ac_path_GREP_found && break 3
41202b32c8f7Smrg    done
41212b32c8f7Smrg  done
412295e0246bSmrg  done
41232b32c8f7SmrgIFS=$as_save_IFS
41242b32c8f7Smrg  if test -z "$ac_cv_path_GREP"; then
412595e0246bSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
41262b32c8f7Smrg  fi
41272b32c8f7Smrgelse
41282b32c8f7Smrg  ac_cv_path_GREP=$GREP
41292b32c8f7Smrgfi
41302b32c8f7Smrg
41312b32c8f7Smrgfi
413295e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
41332b32c8f7Smrg$as_echo "$ac_cv_path_GREP" >&6; }
41342b32c8f7Smrg GREP="$ac_cv_path_GREP"
41352b32c8f7Smrg
41362b32c8f7Smrg
413795e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
41382b32c8f7Smrg$as_echo_n "checking for egrep... " >&6; }
413995e0246bSmrgif ${ac_cv_path_EGREP+:} false; then :
41402b32c8f7Smrg  $as_echo_n "(cached) " >&6
41412b32c8f7Smrgelse
41422b32c8f7Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
41432b32c8f7Smrg   then ac_cv_path_EGREP="$GREP -E"
41442b32c8f7Smrg   else
41452b32c8f7Smrg     if test -z "$EGREP"; then
41462b32c8f7Smrg  ac_path_EGREP_found=false
41472b32c8f7Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
41482b32c8f7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41492b32c8f7Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
41502b32c8f7Smrgdo
41512b32c8f7Smrg  IFS=$as_save_IFS
41522b32c8f7Smrg  test -z "$as_dir" && as_dir=.
415395e0246bSmrg    for ac_prog in egrep; do
41542b32c8f7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
41552b32c8f7Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
41562b32c8f7Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
41572b32c8f7Smrg# Check for GNU ac_path_EGREP and select it if it is found.
41582b32c8f7Smrg  # Check for GNU $ac_path_EGREP
41592b32c8f7Smrgcase `"$ac_path_EGREP" --version 2>&1` in
41602b32c8f7Smrg*GNU*)
41612b32c8f7Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
41622b32c8f7Smrg*)
41632b32c8f7Smrg  ac_count=0
41642b32c8f7Smrg  $as_echo_n 0123456789 >"conftest.in"
41652b32c8f7Smrg  while :
41662b32c8f7Smrg  do
41672b32c8f7Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
41682b32c8f7Smrg    mv "conftest.tmp" "conftest.in"
41692b32c8f7Smrg    cp "conftest.in" "conftest.nl"
41702b32c8f7Smrg    $as_echo 'EGREP' >> "conftest.nl"
41712b32c8f7Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
41722b32c8f7Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
417395e0246bSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
41742b32c8f7Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
41752b32c8f7Smrg      # Best one so far, save it but keep looking for a better one
41762b32c8f7Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
41772b32c8f7Smrg      ac_path_EGREP_max=$ac_count
41782b32c8f7Smrg    fi
41792b32c8f7Smrg    # 10*(2^10) chars as input seems more than enough
41802b32c8f7Smrg    test $ac_count -gt 10 && break
41812b32c8f7Smrg  done
41822b32c8f7Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
41832b32c8f7Smrgesac
41842b32c8f7Smrg
41852b32c8f7Smrg      $ac_path_EGREP_found && break 3
41862b32c8f7Smrg    done
41872b32c8f7Smrg  done
418895e0246bSmrg  done
41892b32c8f7SmrgIFS=$as_save_IFS
41902b32c8f7Smrg  if test -z "$ac_cv_path_EGREP"; then
419195e0246bSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
41922b32c8f7Smrg  fi
41932b32c8f7Smrgelse
41942b32c8f7Smrg  ac_cv_path_EGREP=$EGREP
41952b32c8f7Smrgfi
41962b32c8f7Smrg
41972b32c8f7Smrg   fi
41982b32c8f7Smrgfi
419995e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
42002b32c8f7Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
42012b32c8f7Smrg EGREP="$ac_cv_path_EGREP"
42022b32c8f7Smrg
42032b32c8f7Smrg
420495e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
42052b32c8f7Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
420695e0246bSmrgif ${ac_cv_header_stdc+:} false; then :
42072b32c8f7Smrg  $as_echo_n "(cached) " >&6
42082b32c8f7Smrgelse
420995e0246bSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42102b32c8f7Smrg/* end confdefs.h.  */
42112b32c8f7Smrg#include <stdlib.h>
42122b32c8f7Smrg#include <stdarg.h>
42132b32c8f7Smrg#include <string.h>
42142b32c8f7Smrg#include <float.h>
42152b32c8f7Smrg
42162b32c8f7Smrgint
42172b32c8f7Smrgmain ()
42182b32c8f7Smrg{
42192b32c8f7Smrg
42202b32c8f7Smrg  ;
42212b32c8f7Smrg  return 0;
42222b32c8f7Smrg}
42232b32c8f7Smrg_ACEOF
422495e0246bSmrgif ac_fn_c_try_compile "$LINENO"; then :
42252b32c8f7Smrg  ac_cv_header_stdc=yes
42262b32c8f7Smrgelse
422795e0246bSmrg  ac_cv_header_stdc=no
42282b32c8f7Smrgfi
42292b32c8f7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42302b32c8f7Smrg
42312b32c8f7Smrgif test $ac_cv_header_stdc = yes; then
42322b32c8f7Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
423395e0246bSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42342b32c8f7Smrg/* end confdefs.h.  */
42352b32c8f7Smrg#include <string.h>
42362b32c8f7Smrg
42372b32c8f7Smrg_ACEOF
42382b32c8f7Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
423995e0246bSmrg  $EGREP "memchr" >/dev/null 2>&1; then :
424095e0246bSmrg
42412b32c8f7Smrgelse
42422b32c8f7Smrg  ac_cv_header_stdc=no
42432b32c8f7Smrgfi
42442b32c8f7Smrgrm -f conftest*
42452b32c8f7Smrg
42462b32c8f7Smrgfi
42472b32c8f7Smrg
42482b32c8f7Smrgif test $ac_cv_header_stdc = yes; then
42492b32c8f7Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
425095e0246bSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42512b32c8f7Smrg/* end confdefs.h.  */
42522b32c8f7Smrg#include <stdlib.h>
42532b32c8f7Smrg
42542b32c8f7Smrg_ACEOF
42552b32c8f7Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
425695e0246bSmrg  $EGREP "free" >/dev/null 2>&1; then :
425795e0246bSmrg
42582b32c8f7Smrgelse
42592b32c8f7Smrg  ac_cv_header_stdc=no
42602b32c8f7Smrgfi
42612b32c8f7Smrgrm -f conftest*
42622b32c8f7Smrg
42632b32c8f7Smrgfi
42642b32c8f7Smrg
42652b32c8f7Smrgif test $ac_cv_header_stdc = yes; then
42662b32c8f7Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
426795e0246bSmrg  if test "$cross_compiling" = yes; then :
42682b32c8f7Smrg  :
42692b32c8f7Smrgelse
427095e0246bSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42712b32c8f7Smrg/* end confdefs.h.  */
42722b32c8f7Smrg#include <ctype.h>
42732b32c8f7Smrg#include <stdlib.h>
42742b32c8f7Smrg#if ((' ' & 0x0FF) == 0x020)
42752b32c8f7Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
42762b32c8f7Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
42772b32c8f7Smrg#else
42782b32c8f7Smrg# define ISLOWER(c) \
42792b32c8f7Smrg		   (('a' <= (c) && (c) <= 'i') \
42802b32c8f7Smrg		     || ('j' <= (c) && (c) <= 'r') \
42812b32c8f7Smrg		     || ('s' <= (c) && (c) <= 'z'))
42822b32c8f7Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
42832b32c8f7Smrg#endif
42842b32c8f7Smrg
42852b32c8f7Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
42862b32c8f7Smrgint
42872b32c8f7Smrgmain ()
42882b32c8f7Smrg{
42892b32c8f7Smrg  int i;
42902b32c8f7Smrg  for (i = 0; i < 256; i++)
42912b32c8f7Smrg    if (XOR (islower (i), ISLOWER (i))
42922b32c8f7Smrg	|| toupper (i) != TOUPPER (i))
42932b32c8f7Smrg      return 2;
42942b32c8f7Smrg  return 0;
42952b32c8f7Smrg}
42962b32c8f7Smrg_ACEOF
429795e0246bSmrgif ac_fn_c_try_run "$LINENO"; then :
42982b32c8f7Smrg
429995e0246bSmrgelse
430095e0246bSmrg  ac_cv_header_stdc=no
43012b32c8f7Smrgfi
430295e0246bSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
430395e0246bSmrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
43042b32c8f7Smrgfi
43052b32c8f7Smrg
43062b32c8f7Smrgfi
43072b32c8f7Smrgfi
430895e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
43092b32c8f7Smrg$as_echo "$ac_cv_header_stdc" >&6; }
43102b32c8f7Smrgif test $ac_cv_header_stdc = yes; then
43112b32c8f7Smrg
431295e0246bSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
43132b32c8f7Smrg
43142b32c8f7Smrgfi
43152b32c8f7Smrg
43162b32c8f7Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
43172b32c8f7Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
43182b32c8f7Smrg		  inttypes.h stdint.h unistd.h
431995e0246bSmrgdo :
432095e0246bSmrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
432195e0246bSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
432295e0246bSmrg"
432395e0246bSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
43242b32c8f7Smrg  cat >>confdefs.h <<_ACEOF
43252b32c8f7Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43262b32c8f7Smrg_ACEOF
43272b32c8f7Smrg
43282b32c8f7Smrgfi
43292b32c8f7Smrg
43302b32c8f7Smrgdone
43312b32c8f7Smrg
43322b32c8f7Smrg
433395e0246bSmrg
433495e0246bSmrg
4335cbc4e2beSmrg
4336cbc4e2beSmrg
4337cbc4e2beSmrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4338cbc4e2beSmrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
4339cbc4e2beSmrg  CLANGCC="yes"
4340cbc4e2beSmrgelse
4341cbc4e2beSmrg  CLANGCC="no"
4342cbc4e2beSmrgfi
4343cbc4e2beSmrg
4344cbc4e2beSmrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4345cbc4e2beSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4346cbc4e2beSmrg  INTELCC="yes"
4347cbc4e2beSmrgelse
4348cbc4e2beSmrg  INTELCC="no"
4349cbc4e2beSmrgfi
4350cbc4e2beSmrg
4351cbc4e2beSmrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4352cbc4e2beSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4353cbc4e2beSmrg  SUNCC="yes"
4354cbc4e2beSmrgelse
4355cbc4e2beSmrg  SUNCC="no"
4356cbc4e2beSmrgfi
4357cbc4e2beSmrg
4358cbc4e2beSmrg
4359cbc4e2beSmrg
4360cbc4e2beSmrg
436195e0246bSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
436295e0246bSmrg	if test -n "$ac_tool_prefix"; then
436395e0246bSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
436495e0246bSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
436595e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
436695e0246bSmrg$as_echo_n "checking for $ac_word... " >&6; }
436795e0246bSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
43682b32c8f7Smrg  $as_echo_n "(cached) " >&6
43692b32c8f7Smrgelse
437095e0246bSmrg  case $PKG_CONFIG in
437195e0246bSmrg  [\\/]* | ?:[\\/]*)
437295e0246bSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
437395e0246bSmrg  ;;
437495e0246bSmrg  *)
437595e0246bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
437695e0246bSmrgfor as_dir in $PATH
43772b32c8f7Smrgdo
437895e0246bSmrg  IFS=$as_save_IFS
437995e0246bSmrg  test -z "$as_dir" && as_dir=.
438095e0246bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
438195e0246bSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
438295e0246bSmrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
438395e0246bSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
438495e0246bSmrg    break 2
438595e0246bSmrg  fi
438695e0246bSmrgdone
438795e0246bSmrg  done
438895e0246bSmrgIFS=$as_save_IFS
438995e0246bSmrg
439095e0246bSmrg  ;;
43912b32c8f7Smrgesac
439295e0246bSmrgfi
439395e0246bSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
439495e0246bSmrgif test -n "$PKG_CONFIG"; then
439595e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
439695e0246bSmrg$as_echo "$PKG_CONFIG" >&6; }
43972b32c8f7Smrgelse
439895e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
439995e0246bSmrg$as_echo "no" >&6; }
44002b32c8f7Smrgfi
44012b32c8f7Smrg
44022b32c8f7Smrg
44032b32c8f7Smrgfi
440495e0246bSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
440595e0246bSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
440695e0246bSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
440795e0246bSmrgset dummy pkg-config; ac_word=$2
440895e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
440995e0246bSmrg$as_echo_n "checking for $ac_word... " >&6; }
441095e0246bSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
441195e0246bSmrg  $as_echo_n "(cached) " >&6
441295e0246bSmrgelse
441395e0246bSmrg  case $ac_pt_PKG_CONFIG in
441495e0246bSmrg  [\\/]* | ?:[\\/]*)
441595e0246bSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
441695e0246bSmrg  ;;
44172b32c8f7Smrg  *)
441895e0246bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
441995e0246bSmrgfor as_dir in $PATH
442095e0246bSmrgdo
442195e0246bSmrg  IFS=$as_save_IFS
442295e0246bSmrg  test -z "$as_dir" && as_dir=.
442395e0246bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
442495e0246bSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
442595e0246bSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
442695e0246bSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
442795e0246bSmrg    break 2
442895e0246bSmrg  fi
442995e0246bSmrgdone
443095e0246bSmrg  done
443195e0246bSmrgIFS=$as_save_IFS
443295e0246bSmrg
443395e0246bSmrg  ;;
44342b32c8f7Smrgesac
443595e0246bSmrgfi
443695e0246bSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
443795e0246bSmrgif test -n "$ac_pt_PKG_CONFIG"; then
443895e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
443995e0246bSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
444095e0246bSmrgelse
444195e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
444295e0246bSmrg$as_echo "no" >&6; }
444395e0246bSmrgfi
44442b32c8f7Smrg
444595e0246bSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
444695e0246bSmrg    PKG_CONFIG=""
444795e0246bSmrg  else
444895e0246bSmrg    case $cross_compiling:$ac_tool_warned in
444995e0246bSmrgyes:)
445095e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
445195e0246bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
445295e0246bSmrgac_tool_warned=yes ;;
445395e0246bSmrgesac
445495e0246bSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
445595e0246bSmrg  fi
445695e0246bSmrgelse
445795e0246bSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
445895e0246bSmrgfi
44592b32c8f7Smrg
446095e0246bSmrgfi
446195e0246bSmrgif test -n "$PKG_CONFIG"; then
446295e0246bSmrg	_pkg_min_version=0.9.0
446395e0246bSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
446495e0246bSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
446595e0246bSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
446695e0246bSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
446795e0246bSmrg$as_echo "yes" >&6; }
446895e0246bSmrg	else
446995e0246bSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
447095e0246bSmrg$as_echo "no" >&6; }
447195e0246bSmrg		PKG_CONFIG=""
447295e0246bSmrg	fi
44732b32c8f7Smrg
447495e0246bSmrgfi
44752b32c8f7Smrg# Make sure we can run config.sub.
44762b32c8f7Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
447795e0246bSmrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
44782b32c8f7Smrg
447995e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
44802b32c8f7Smrg$as_echo_n "checking build system type... " >&6; }
448195e0246bSmrgif ${ac_cv_build+:} false; then :
44822b32c8f7Smrg  $as_echo_n "(cached) " >&6
44832b32c8f7Smrgelse
44842b32c8f7Smrg  ac_build_alias=$build_alias
44852b32c8f7Smrgtest "x$ac_build_alias" = x &&
44862b32c8f7Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
44872b32c8f7Smrgtest "x$ac_build_alias" = x &&
448895e0246bSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
44892b32c8f7Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
449095e0246bSmrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
44912b32c8f7Smrg
44922b32c8f7Smrgfi
449395e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
44942b32c8f7Smrg$as_echo "$ac_cv_build" >&6; }
44952b32c8f7Smrgcase $ac_cv_build in
44962b32c8f7Smrg*-*-*) ;;
449795e0246bSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
44982b32c8f7Smrgesac
44992b32c8f7Smrgbuild=$ac_cv_build
45002b32c8f7Smrgac_save_IFS=$IFS; IFS='-'
45012b32c8f7Smrgset x $ac_cv_build
45022b32c8f7Smrgshift
45032b32c8f7Smrgbuild_cpu=$1
45042b32c8f7Smrgbuild_vendor=$2
45052b32c8f7Smrgshift; shift
45062b32c8f7Smrg# Remember, the first character of IFS is used to create $*,
45072b32c8f7Smrg# except with old shells:
45082b32c8f7Smrgbuild_os=$*
45092b32c8f7SmrgIFS=$ac_save_IFS
45102b32c8f7Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
45112b32c8f7Smrg
45122b32c8f7Smrg
451395e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
45142b32c8f7Smrg$as_echo_n "checking host system type... " >&6; }
451595e0246bSmrgif ${ac_cv_host+:} false; then :
45162b32c8f7Smrg  $as_echo_n "(cached) " >&6
45172b32c8f7Smrgelse
45182b32c8f7Smrg  if test "x$host_alias" = x; then
45192b32c8f7Smrg  ac_cv_host=$ac_cv_build
45202b32c8f7Smrgelse
45212b32c8f7Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
452295e0246bSmrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
45232b32c8f7Smrgfi
45242b32c8f7Smrg
45252b32c8f7Smrgfi
452695e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
45272b32c8f7Smrg$as_echo "$ac_cv_host" >&6; }
45282b32c8f7Smrgcase $ac_cv_host in
45292b32c8f7Smrg*-*-*) ;;
453095e0246bSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
45312b32c8f7Smrgesac
45322b32c8f7Smrghost=$ac_cv_host
45332b32c8f7Smrgac_save_IFS=$IFS; IFS='-'
45342b32c8f7Smrgset x $ac_cv_host
45352b32c8f7Smrgshift
45362b32c8f7Smrghost_cpu=$1
45372b32c8f7Smrghost_vendor=$2
45382b32c8f7Smrgshift; shift
45392b32c8f7Smrg# Remember, the first character of IFS is used to create $*,
45402b32c8f7Smrg# except with old shells:
45412b32c8f7Smrghost_os=$*
45422b32c8f7SmrgIFS=$ac_save_IFS
45432b32c8f7Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
45442b32c8f7Smrg
45452b32c8f7Smrg
454695e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
454795e0246bSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
454895e0246bSmrgif ${ac_cv_path_SED+:} false; then :
45492b32c8f7Smrg  $as_echo_n "(cached) " >&6
45502b32c8f7Smrgelse
455195e0246bSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
455295e0246bSmrg     for ac_i in 1 2 3 4 5 6 7; do
455395e0246bSmrg       ac_script="$ac_script$as_nl$ac_script"
455495e0246bSmrg     done
455595e0246bSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
455695e0246bSmrg     { ac_script=; unset ac_script;}
455795e0246bSmrg     if test -z "$SED"; then
455895e0246bSmrg  ac_path_SED_found=false
455995e0246bSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
456095e0246bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
456195e0246bSmrgfor as_dir in $PATH
456295e0246bSmrgdo
456395e0246bSmrg  IFS=$as_save_IFS
456495e0246bSmrg  test -z "$as_dir" && as_dir=.
456595e0246bSmrg    for ac_prog in sed gsed; do
456695e0246bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
456795e0246bSmrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
456895e0246bSmrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
456995e0246bSmrg# Check for GNU ac_path_SED and select it if it is found.
457095e0246bSmrg  # Check for GNU $ac_path_SED
457195e0246bSmrgcase `"$ac_path_SED" --version 2>&1` in
457295e0246bSmrg*GNU*)
457395e0246bSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
457495e0246bSmrg*)
457595e0246bSmrg  ac_count=0
457695e0246bSmrg  $as_echo_n 0123456789 >"conftest.in"
457795e0246bSmrg  while :
457895e0246bSmrg  do
457995e0246bSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
458095e0246bSmrg    mv "conftest.tmp" "conftest.in"
458195e0246bSmrg    cp "conftest.in" "conftest.nl"
458295e0246bSmrg    $as_echo '' >> "conftest.nl"
458395e0246bSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
458495e0246bSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
458595e0246bSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
458695e0246bSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
458795e0246bSmrg      # Best one so far, save it but keep looking for a better one
458895e0246bSmrg      ac_cv_path_SED="$ac_path_SED"
458995e0246bSmrg      ac_path_SED_max=$ac_count
459095e0246bSmrg    fi
459195e0246bSmrg    # 10*(2^10) chars as input seems more than enough
459295e0246bSmrg    test $ac_count -gt 10 && break
459395e0246bSmrg  done
459495e0246bSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
45952b32c8f7Smrgesac
45962b32c8f7Smrg
459795e0246bSmrg      $ac_path_SED_found && break 3
459895e0246bSmrg    done
459995e0246bSmrg  done
460095e0246bSmrg  done
460195e0246bSmrgIFS=$as_save_IFS
460295e0246bSmrg  if test -z "$ac_cv_path_SED"; then
460395e0246bSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
460495e0246bSmrg  fi
460595e0246bSmrgelse
460695e0246bSmrg  ac_cv_path_SED=$SED
46072b32c8f7Smrgfi
46082b32c8f7Smrg
46092b32c8f7Smrgfi
461095e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
461195e0246bSmrg$as_echo "$ac_cv_path_SED" >&6; }
461295e0246bSmrg SED="$ac_cv_path_SED"
461395e0246bSmrg  rm -f conftest.sed
461495e0246bSmrg
461595e0246bSmrg
461695e0246bSmrg
461795e0246bSmrg
461895e0246bSmrg
4619cbc4e2beSmrg
4620cbc4e2beSmrg# Check whether --enable-selective-werror was given.
4621cbc4e2beSmrgif test "${enable_selective_werror+set}" = set; then :
4622cbc4e2beSmrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
46232b32c8f7Smrgelse
4624cbc4e2beSmrg  SELECTIVE_WERROR=yes
46252b32c8f7Smrgfi
46262b32c8f7Smrg
4627cbc4e2beSmrg
4628cbc4e2beSmrg
4629cbc4e2beSmrg
4630cbc4e2beSmrg
4631cbc4e2beSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
4632cbc4e2beSmrgif test "x$SUNCC" = "xyes"; then
4633cbc4e2beSmrg    BASE_CFLAGS="-v"
4634cbc4e2beSmrgelse
4635cbc4e2beSmrg    BASE_CFLAGS=""
46362b32c8f7Smrgfi
46372b32c8f7Smrg
4638cbc4e2beSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
46392b32c8f7Smrg
46402b32c8f7Smrg
46412b32c8f7Smrg
46422b32c8f7Smrg
46432b32c8f7Smrg
46442b32c8f7Smrg
46452b32c8f7Smrg
4646cbc4e2beSmrg
4647cbc4e2beSmrg
4648cbc4e2beSmrg
4649cbc4e2beSmrg
4650cbc4e2beSmrg
4651cbc4e2beSmrg
4652cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
4653cbc4e2beSmrg
4654cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4655cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4656cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4657cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4658cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4659cbc4e2beSmrg  $as_echo_n "(cached) " >&6
46602b32c8f7Smrgelse
4661cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662cbc4e2beSmrg/* end confdefs.h.  */
4663cbc4e2beSmrgint i;
4664cbc4e2beSmrg_ACEOF
4665cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
4666cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
4667cbc4e2beSmrgelse
4668cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4669cbc4e2beSmrgfi
4670cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671cbc4e2beSmrgfi
4672cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4673cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4674cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4675cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
46762b32c8f7Smrgfi
46772b32c8f7Smrg
4678cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4679cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4680cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
46812b32c8f7Smrg	fi
4682cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4683cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4684cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4685cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4686cbc4e2beSmrg  $as_echo_n "(cached) " >&6
4687cbc4e2beSmrgelse
4688cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689cbc4e2beSmrg/* end confdefs.h.  */
4690cbc4e2beSmrgint i;
4691cbc4e2beSmrg_ACEOF
4692cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
4693cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4694cbc4e2beSmrgelse
4695cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4696cbc4e2beSmrgfi
4697cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698cbc4e2beSmrgfi
4699cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4700cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4701cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4702cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
47032b32c8f7Smrgfi
47042b32c8f7Smrg
4705cbc4e2beSmrgfound="no"
47062b32c8f7Smrg
4707cbc4e2beSmrg	if test $found = "no" ; then
4708cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4709cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4710cbc4e2beSmrg		fi
47112b32c8f7Smrg
4712cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4713cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4714cbc4e2beSmrg		fi
47152b32c8f7Smrg
4716cbc4e2beSmrg		CFLAGS="$CFLAGS -Wall"
47172b32c8f7Smrg
4718cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4719cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wall... " >&6; }
4720cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wall
4721cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
4722cbc4e2beSmrg  $as_echo_n "(cached) " >&6
4723cbc4e2beSmrgelse
4724cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725cbc4e2beSmrg/* end confdefs.h.  */
4726cbc4e2beSmrgint i;
4727cbc4e2beSmrgint
4728cbc4e2beSmrgmain ()
4729cbc4e2beSmrg{
47302b32c8f7Smrg
4731cbc4e2beSmrg  ;
4732cbc4e2beSmrg  return 0;
4733cbc4e2beSmrg}
47342b32c8f7Smrg_ACEOF
4735cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
4736cbc4e2beSmrg  eval $cacheid=yes
4737cbc4e2beSmrgelse
4738cbc4e2beSmrg  eval $cacheid=no
4739cbc4e2beSmrgfi
4740cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
4741cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
4742cbc4e2beSmrgfi
47432b32c8f7Smrg
4744cbc4e2beSmrg
4745cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
4746cbc4e2beSmrg
4747cbc4e2beSmrg		eval supported=\$$cacheid
4748cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4749cbc4e2beSmrg$as_echo "$supported" >&6; }
4750cbc4e2beSmrg		if test "$supported" = "yes" ; then
4751cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4752cbc4e2beSmrg			found="yes"
4753cbc4e2beSmrg		fi
47542b32c8f7Smrg	fi
47552b32c8f7Smrg
47562b32c8f7Smrg
47572b32c8f7Smrg
47582b32c8f7Smrg
47592b32c8f7Smrg
476095e0246bSmrg
476195e0246bSmrg
476295e0246bSmrg
476395e0246bSmrg
47642b32c8f7Smrg
47652b32c8f7Smrg
47662b32c8f7Smrg
47672b32c8f7Smrg
47682b32c8f7Smrg
47692b32c8f7Smrg
4770cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
47712b32c8f7Smrg
4772cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4773cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4774cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4775cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4776cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4777cbc4e2beSmrg  $as_echo_n "(cached) " >&6
4778cbc4e2beSmrgelse
4779cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780cbc4e2beSmrg/* end confdefs.h.  */
4781cbc4e2beSmrgint i;
4782cbc4e2beSmrg_ACEOF
4783cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
4784cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
4785cbc4e2beSmrgelse
4786cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
47872b32c8f7Smrgfi
4788cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47892b32c8f7Smrgfi
4790cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4791cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4792cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4793cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
47942b32c8f7Smrgfi
47952b32c8f7Smrg
4796cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4797cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4798cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4799cbc4e2beSmrg	fi
4800cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4801cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4802cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4803cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4804cbc4e2beSmrg  $as_echo_n "(cached) " >&6
4805cbc4e2beSmrgelse
4806cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807cbc4e2beSmrg/* end confdefs.h.  */
4808cbc4e2beSmrgint i;
4809cbc4e2beSmrg_ACEOF
4810cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
4811cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4812cbc4e2beSmrgelse
4813cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
48142b32c8f7Smrgfi
4815cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816cbc4e2beSmrgfi
4817cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4818cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4819cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4820cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
48212b32c8f7Smrgfi
48222b32c8f7Smrg
4823cbc4e2beSmrgfound="no"
4824cbc4e2beSmrg
4825cbc4e2beSmrg	if test $found = "no" ; then
4826cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4827cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4828cbc4e2beSmrg		fi
4829cbc4e2beSmrg
4830cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4831cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4832cbc4e2beSmrg		fi
4833cbc4e2beSmrg
4834cbc4e2beSmrg		CFLAGS="$CFLAGS -Wpointer-arith"
4835cbc4e2beSmrg
4836cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4837cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4838cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
4839cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
4840cbc4e2beSmrg  $as_echo_n "(cached) " >&6
4841cbc4e2beSmrgelse
4842cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843cbc4e2beSmrg/* end confdefs.h.  */
4844cbc4e2beSmrgint i;
4845cbc4e2beSmrgint
4846cbc4e2beSmrgmain ()
4847cbc4e2beSmrg{
4848cbc4e2beSmrg
4849cbc4e2beSmrg  ;
4850cbc4e2beSmrg  return 0;
4851cbc4e2beSmrg}
4852cbc4e2beSmrg_ACEOF
4853cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
4854cbc4e2beSmrg  eval $cacheid=yes
4855cbc4e2beSmrgelse
4856cbc4e2beSmrg  eval $cacheid=no
48572b32c8f7Smrgfi
4858cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
4859cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
48602b32c8f7Smrgfi
48612b32c8f7Smrg
48622b32c8f7Smrg
4863cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
48642b32c8f7Smrg
4865cbc4e2beSmrg		eval supported=\$$cacheid
4866cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4867cbc4e2beSmrg$as_echo "$supported" >&6; }
4868cbc4e2beSmrg		if test "$supported" = "yes" ; then
4869cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4870cbc4e2beSmrg			found="yes"
4871cbc4e2beSmrg		fi
4872cbc4e2beSmrg	fi
48732b32c8f7Smrg
48742b32c8f7Smrg
48752b32c8f7Smrg
48762b32c8f7Smrg
48772b32c8f7Smrg
48782b32c8f7Smrg
48792b32c8f7Smrg
48802b32c8f7Smrg
48812b32c8f7Smrg
48822b32c8f7Smrg
48832b32c8f7Smrg
48842b32c8f7Smrg
488595e0246bSmrg
488695e0246bSmrg
488795e0246bSmrg
4888cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
488995e0246bSmrg
4890cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4891cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4892cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4893cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4894cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4895cbc4e2beSmrg  $as_echo_n "(cached) " >&6
4896cbc4e2beSmrgelse
4897cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898cbc4e2beSmrg/* end confdefs.h.  */
4899cbc4e2beSmrgint i;
4900cbc4e2beSmrg_ACEOF
4901cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
4902cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
4903cbc4e2beSmrgelse
4904cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4905cbc4e2beSmrgfi
4906cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907cbc4e2beSmrgfi
4908cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4909cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4910cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4911cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4912cbc4e2beSmrgfi
4913cbc4e2beSmrg
4914cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4915cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4916cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4917cbc4e2beSmrg	fi
4918cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4919cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4920cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4921cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4922cbc4e2beSmrg  $as_echo_n "(cached) " >&6
4923cbc4e2beSmrgelse
4924cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925cbc4e2beSmrg/* end confdefs.h.  */
4926cbc4e2beSmrgint i;
4927cbc4e2beSmrg_ACEOF
4928cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
4929cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4930cbc4e2beSmrgelse
4931cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4932cbc4e2beSmrgfi
4933cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934cbc4e2beSmrgfi
4935cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4936cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4937cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4938cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4939cbc4e2beSmrgfi
4940cbc4e2beSmrg
4941cbc4e2beSmrgfound="no"
4942cbc4e2beSmrg
4943cbc4e2beSmrg	if test $found = "no" ; then
4944cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4945cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4946cbc4e2beSmrg		fi
4947cbc4e2beSmrg
4948cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4949cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4950cbc4e2beSmrg		fi
4951cbc4e2beSmrg
4952cbc4e2beSmrg		CFLAGS="$CFLAGS -Wmissing-declarations"
4953cbc4e2beSmrg
4954cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4955cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4956cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4957cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
4958cbc4e2beSmrg  $as_echo_n "(cached) " >&6
4959cbc4e2beSmrgelse
4960cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961cbc4e2beSmrg/* end confdefs.h.  */
4962cbc4e2beSmrgint i;
4963cbc4e2beSmrgint
4964cbc4e2beSmrgmain ()
4965cbc4e2beSmrg{
4966cbc4e2beSmrg
4967cbc4e2beSmrg  ;
4968cbc4e2beSmrg  return 0;
4969cbc4e2beSmrg}
4970cbc4e2beSmrg_ACEOF
4971cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
4972cbc4e2beSmrg  eval $cacheid=yes
4973cbc4e2beSmrgelse
4974cbc4e2beSmrg  eval $cacheid=no
4975cbc4e2beSmrgfi
4976cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
4977cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
4978cbc4e2beSmrgfi
4979cbc4e2beSmrg
4980cbc4e2beSmrg
4981cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
4982cbc4e2beSmrg
4983cbc4e2beSmrg		eval supported=\$$cacheid
4984cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4985cbc4e2beSmrg$as_echo "$supported" >&6; }
4986cbc4e2beSmrg		if test "$supported" = "yes" ; then
4987cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4988cbc4e2beSmrg			found="yes"
4989cbc4e2beSmrg		fi
4990cbc4e2beSmrg	fi
4991cbc4e2beSmrg
4992cbc4e2beSmrg
4993cbc4e2beSmrg
4994cbc4e2beSmrg
4995cbc4e2beSmrg
4996cbc4e2beSmrg
4997cbc4e2beSmrg
4998cbc4e2beSmrg
4999cbc4e2beSmrg
5000cbc4e2beSmrg
5001cbc4e2beSmrg
5002cbc4e2beSmrg
5003cbc4e2beSmrg
5004cbc4e2beSmrg
5005cbc4e2beSmrg
5006cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5007cbc4e2beSmrg
5008cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5009cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5010cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5011cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5012cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5013cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5014cbc4e2beSmrgelse
5015cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016cbc4e2beSmrg/* end confdefs.h.  */
5017cbc4e2beSmrgint i;
5018cbc4e2beSmrg_ACEOF
5019cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5020cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5021cbc4e2beSmrgelse
5022cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5023cbc4e2beSmrgfi
5024cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025cbc4e2beSmrgfi
5026cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5027cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5028cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5029cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5030cbc4e2beSmrgfi
5031cbc4e2beSmrg
5032cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5033cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5034cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5035cbc4e2beSmrg	fi
5036cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5037cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5038cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5039cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5040cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5041cbc4e2beSmrgelse
5042cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043cbc4e2beSmrg/* end confdefs.h.  */
5044cbc4e2beSmrgint i;
5045cbc4e2beSmrg_ACEOF
5046cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5047cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5048cbc4e2beSmrgelse
5049cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5050cbc4e2beSmrgfi
5051cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052cbc4e2beSmrgfi
5053cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5054cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5055cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5056cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5057cbc4e2beSmrgfi
5058cbc4e2beSmrg
5059cbc4e2beSmrgfound="no"
5060cbc4e2beSmrg
5061cbc4e2beSmrg	if test $found = "no" ; then
5062cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5063cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5064cbc4e2beSmrg		fi
5065cbc4e2beSmrg
5066cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5067cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5068cbc4e2beSmrg		fi
5069cbc4e2beSmrg
5070cbc4e2beSmrg		CFLAGS="$CFLAGS -Wformat=2"
5071cbc4e2beSmrg
5072cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5073cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5074cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5075cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
5076cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5077cbc4e2beSmrgelse
5078cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079cbc4e2beSmrg/* end confdefs.h.  */
5080cbc4e2beSmrgint i;
5081cbc4e2beSmrgint
5082cbc4e2beSmrgmain ()
5083cbc4e2beSmrg{
5084cbc4e2beSmrg
5085cbc4e2beSmrg  ;
5086cbc4e2beSmrg  return 0;
5087cbc4e2beSmrg}
5088cbc4e2beSmrg_ACEOF
5089cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
5090cbc4e2beSmrg  eval $cacheid=yes
5091cbc4e2beSmrgelse
5092cbc4e2beSmrg  eval $cacheid=no
5093cbc4e2beSmrgfi
5094cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
5095cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
5096cbc4e2beSmrgfi
5097cbc4e2beSmrg
5098cbc4e2beSmrg
5099cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5100cbc4e2beSmrg
5101cbc4e2beSmrg		eval supported=\$$cacheid
5102cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5103cbc4e2beSmrg$as_echo "$supported" >&6; }
5104cbc4e2beSmrg		if test "$supported" = "yes" ; then
5105cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5106cbc4e2beSmrg			found="yes"
5107cbc4e2beSmrg		fi
5108cbc4e2beSmrg	fi
5109cbc4e2beSmrg
5110cbc4e2beSmrg	if test $found = "no" ; then
5111cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5112cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5113cbc4e2beSmrg		fi
5114cbc4e2beSmrg
5115cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5116cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5117cbc4e2beSmrg		fi
5118cbc4e2beSmrg
5119cbc4e2beSmrg		CFLAGS="$CFLAGS -Wformat"
5120cbc4e2beSmrg
5121cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5122cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5123cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wformat
5124cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
5125cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5126cbc4e2beSmrgelse
5127cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128cbc4e2beSmrg/* end confdefs.h.  */
5129cbc4e2beSmrgint i;
5130cbc4e2beSmrgint
5131cbc4e2beSmrgmain ()
5132cbc4e2beSmrg{
5133cbc4e2beSmrg
5134cbc4e2beSmrg  ;
5135cbc4e2beSmrg  return 0;
5136cbc4e2beSmrg}
5137cbc4e2beSmrg_ACEOF
5138cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
5139cbc4e2beSmrg  eval $cacheid=yes
5140cbc4e2beSmrgelse
5141cbc4e2beSmrg  eval $cacheid=no
5142cbc4e2beSmrgfi
5143cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
5144cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
5145cbc4e2beSmrgfi
5146cbc4e2beSmrg
5147cbc4e2beSmrg
5148cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5149cbc4e2beSmrg
5150cbc4e2beSmrg		eval supported=\$$cacheid
5151cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5152cbc4e2beSmrg$as_echo "$supported" >&6; }
5153cbc4e2beSmrg		if test "$supported" = "yes" ; then
5154cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5155cbc4e2beSmrg			found="yes"
5156cbc4e2beSmrg		fi
5157cbc4e2beSmrg	fi
5158cbc4e2beSmrg
5159cbc4e2beSmrg
5160cbc4e2beSmrg
5161cbc4e2beSmrg
5162cbc4e2beSmrg
5163cbc4e2beSmrg
5164cbc4e2beSmrg
5165cbc4e2beSmrg
5166cbc4e2beSmrg
5167cbc4e2beSmrg
5168cbc4e2beSmrg
5169cbc4e2beSmrg
5170cbc4e2beSmrg
5171cbc4e2beSmrg
5172cbc4e2beSmrg
5173cbc4e2beSmrg
5174cbc4e2beSmrg
5175cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5176cbc4e2beSmrg
5177cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5178cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5179cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5180cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5181cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5182cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5183cbc4e2beSmrgelse
5184cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185cbc4e2beSmrg/* end confdefs.h.  */
5186cbc4e2beSmrgint i;
5187cbc4e2beSmrg_ACEOF
5188cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5189cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5190cbc4e2beSmrgelse
5191cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5192cbc4e2beSmrgfi
5193cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194cbc4e2beSmrgfi
5195cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5196cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5197cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5198cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5199cbc4e2beSmrgfi
5200cbc4e2beSmrg
5201cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5202cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5203cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5204cbc4e2beSmrg	fi
5205cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5206cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5207cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5208cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5209cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5210cbc4e2beSmrgelse
5211cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212cbc4e2beSmrg/* end confdefs.h.  */
5213cbc4e2beSmrgint i;
5214cbc4e2beSmrg_ACEOF
5215cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5216cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5217cbc4e2beSmrgelse
5218cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5219cbc4e2beSmrgfi
5220cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221cbc4e2beSmrgfi
5222cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5223cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5224cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5225cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5226cbc4e2beSmrgfi
5227cbc4e2beSmrg
5228cbc4e2beSmrgfound="no"
5229cbc4e2beSmrg
5230cbc4e2beSmrg	if test $found = "no" ; then
5231cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5232cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5233cbc4e2beSmrg		fi
5234cbc4e2beSmrg
5235cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5236cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5237cbc4e2beSmrg		fi
5238cbc4e2beSmrg
5239cbc4e2beSmrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
5240cbc4e2beSmrg
5241cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5242cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5243cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5244cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
5245cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5246cbc4e2beSmrgelse
5247cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248cbc4e2beSmrg/* end confdefs.h.  */
5249cbc4e2beSmrgint i;
5250cbc4e2beSmrgint
5251cbc4e2beSmrgmain ()
5252cbc4e2beSmrg{
5253cbc4e2beSmrg
5254cbc4e2beSmrg  ;
5255cbc4e2beSmrg  return 0;
5256cbc4e2beSmrg}
5257cbc4e2beSmrg_ACEOF
5258cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
5259cbc4e2beSmrg  eval $cacheid=yes
5260cbc4e2beSmrgelse
5261cbc4e2beSmrg  eval $cacheid=no
5262cbc4e2beSmrgfi
5263cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
5264cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
5265cbc4e2beSmrgfi
5266cbc4e2beSmrg
5267cbc4e2beSmrg
5268cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5269cbc4e2beSmrg
5270cbc4e2beSmrg		eval supported=\$$cacheid
5271cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5272cbc4e2beSmrg$as_echo "$supported" >&6; }
5273cbc4e2beSmrg		if test "$supported" = "yes" ; then
5274cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5275cbc4e2beSmrg			found="yes"
5276cbc4e2beSmrg		fi
5277cbc4e2beSmrg	fi
5278cbc4e2beSmrg
5279cbc4e2beSmrg
5280cbc4e2beSmrg
5281cbc4e2beSmrg
5282cbc4e2beSmrg
5283cbc4e2beSmrg
5284cbc4e2beSmrg
5285cbc4e2beSmrg
5286cbc4e2beSmrg
5287cbc4e2beSmrg
5288cbc4e2beSmrg
5289cbc4e2beSmrg
5290cbc4e2beSmrg
5291cbc4e2beSmrg
5292cbc4e2beSmrg
5293cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5294cbc4e2beSmrg
5295cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5296cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5297cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5298cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5299cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5300cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5301cbc4e2beSmrgelse
5302cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303cbc4e2beSmrg/* end confdefs.h.  */
5304cbc4e2beSmrgint i;
5305cbc4e2beSmrg_ACEOF
5306cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5307cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5308cbc4e2beSmrgelse
5309cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5310cbc4e2beSmrgfi
5311cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312cbc4e2beSmrgfi
5313cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5314cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5315cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5316cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5317cbc4e2beSmrgfi
5318cbc4e2beSmrg
5319cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5320cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5321cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5322cbc4e2beSmrg	fi
5323cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5324cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5325cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5326cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5327cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5328cbc4e2beSmrgelse
5329cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330cbc4e2beSmrg/* end confdefs.h.  */
5331cbc4e2beSmrgint i;
5332cbc4e2beSmrg_ACEOF
5333cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5334cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5335cbc4e2beSmrgelse
5336cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5337cbc4e2beSmrgfi
5338cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339cbc4e2beSmrgfi
5340cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5341cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5342cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5343cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5344cbc4e2beSmrgfi
5345cbc4e2beSmrg
5346cbc4e2beSmrgfound="no"
5347cbc4e2beSmrg
5348cbc4e2beSmrg	if test $found = "no" ; then
5349cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5350cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5351cbc4e2beSmrg		fi
5352cbc4e2beSmrg
5353cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5354cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5355cbc4e2beSmrg		fi
5356cbc4e2beSmrg
5357cbc4e2beSmrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
5358cbc4e2beSmrg
5359cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5360cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5361cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5362cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
5363cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5364cbc4e2beSmrgelse
5365cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366cbc4e2beSmrg/* end confdefs.h.  */
5367cbc4e2beSmrgint i;
5368cbc4e2beSmrgint
5369cbc4e2beSmrgmain ()
5370cbc4e2beSmrg{
5371cbc4e2beSmrg
5372cbc4e2beSmrg  ;
5373cbc4e2beSmrg  return 0;
5374cbc4e2beSmrg}
5375cbc4e2beSmrg_ACEOF
5376cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
5377cbc4e2beSmrg  eval $cacheid=yes
5378cbc4e2beSmrgelse
5379cbc4e2beSmrg  eval $cacheid=no
5380cbc4e2beSmrgfi
5381cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
5382cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
5383cbc4e2beSmrgfi
5384cbc4e2beSmrg
5385cbc4e2beSmrg
5386cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5387cbc4e2beSmrg
5388cbc4e2beSmrg		eval supported=\$$cacheid
5389cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5390cbc4e2beSmrg$as_echo "$supported" >&6; }
5391cbc4e2beSmrg		if test "$supported" = "yes" ; then
5392cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5393cbc4e2beSmrg			found="yes"
5394cbc4e2beSmrg		fi
5395cbc4e2beSmrg	fi
5396cbc4e2beSmrg
5397cbc4e2beSmrg
5398cbc4e2beSmrg
5399cbc4e2beSmrg
5400cbc4e2beSmrg
5401cbc4e2beSmrg
5402cbc4e2beSmrg
5403cbc4e2beSmrg
5404cbc4e2beSmrg
5405cbc4e2beSmrg
5406cbc4e2beSmrg
5407cbc4e2beSmrg
5408cbc4e2beSmrg
5409cbc4e2beSmrg
5410cbc4e2beSmrg
5411cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5412cbc4e2beSmrg
5413cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5414cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5415cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5416cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5417cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5418cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5419cbc4e2beSmrgelse
5420cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421cbc4e2beSmrg/* end confdefs.h.  */
5422cbc4e2beSmrgint i;
5423cbc4e2beSmrg_ACEOF
5424cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5425cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5426cbc4e2beSmrgelse
5427cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5428cbc4e2beSmrgfi
5429cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430cbc4e2beSmrgfi
5431cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5432cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5433cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5434cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5435cbc4e2beSmrgfi
5436cbc4e2beSmrg
5437cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5438cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5439cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5440cbc4e2beSmrg	fi
5441cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5442cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5443cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5444cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5445cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5446cbc4e2beSmrgelse
5447cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448cbc4e2beSmrg/* end confdefs.h.  */
5449cbc4e2beSmrgint i;
5450cbc4e2beSmrg_ACEOF
5451cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5452cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5453cbc4e2beSmrgelse
5454cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5455cbc4e2beSmrgfi
5456cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457cbc4e2beSmrgfi
5458cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5459cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5460cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5461cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5462cbc4e2beSmrgfi
5463cbc4e2beSmrg
5464cbc4e2beSmrgfound="no"
5465cbc4e2beSmrg
5466cbc4e2beSmrg	if test $found = "no" ; then
5467cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5468cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5469cbc4e2beSmrg		fi
5470cbc4e2beSmrg
5471cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5472cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5473cbc4e2beSmrg		fi
5474cbc4e2beSmrg
5475cbc4e2beSmrg		CFLAGS="$CFLAGS -Wnested-externs"
5476cbc4e2beSmrg
5477cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5478cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5479cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wnested_externs
5480cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
5481cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5482cbc4e2beSmrgelse
5483cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484cbc4e2beSmrg/* end confdefs.h.  */
5485cbc4e2beSmrgint i;
5486cbc4e2beSmrgint
5487cbc4e2beSmrgmain ()
5488cbc4e2beSmrg{
5489cbc4e2beSmrg
5490cbc4e2beSmrg  ;
5491cbc4e2beSmrg  return 0;
5492cbc4e2beSmrg}
5493cbc4e2beSmrg_ACEOF
5494cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
5495cbc4e2beSmrg  eval $cacheid=yes
5496cbc4e2beSmrgelse
5497cbc4e2beSmrg  eval $cacheid=no
5498cbc4e2beSmrgfi
5499cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
5500cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
5501cbc4e2beSmrgfi
5502cbc4e2beSmrg
5503cbc4e2beSmrg
5504cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5505cbc4e2beSmrg
5506cbc4e2beSmrg		eval supported=\$$cacheid
5507cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5508cbc4e2beSmrg$as_echo "$supported" >&6; }
5509cbc4e2beSmrg		if test "$supported" = "yes" ; then
5510cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5511cbc4e2beSmrg			found="yes"
5512cbc4e2beSmrg		fi
5513cbc4e2beSmrg	fi
5514cbc4e2beSmrg
5515cbc4e2beSmrg
5516cbc4e2beSmrg
5517cbc4e2beSmrg
5518cbc4e2beSmrg
5519cbc4e2beSmrg
5520cbc4e2beSmrg
5521cbc4e2beSmrg
5522cbc4e2beSmrg
5523cbc4e2beSmrg
5524cbc4e2beSmrg
5525cbc4e2beSmrg
5526cbc4e2beSmrg
5527cbc4e2beSmrg
5528cbc4e2beSmrg
5529cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5530cbc4e2beSmrg
5531cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5532cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5533cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5534cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5535cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5536cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5537cbc4e2beSmrgelse
5538cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539cbc4e2beSmrg/* end confdefs.h.  */
5540cbc4e2beSmrgint i;
5541cbc4e2beSmrg_ACEOF
5542cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5543cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5544cbc4e2beSmrgelse
5545cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5546cbc4e2beSmrgfi
5547cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548cbc4e2beSmrgfi
5549cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5550cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5551cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5552cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5553cbc4e2beSmrgfi
5554cbc4e2beSmrg
5555cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5556cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5557cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5558cbc4e2beSmrg	fi
5559cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5560cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5561cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5562cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5563cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5564cbc4e2beSmrgelse
5565cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566cbc4e2beSmrg/* end confdefs.h.  */
5567cbc4e2beSmrgint i;
5568cbc4e2beSmrg_ACEOF
5569cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5570cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5571cbc4e2beSmrgelse
5572cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5573cbc4e2beSmrgfi
5574cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575cbc4e2beSmrgfi
5576cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5577cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5578cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5579cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5580cbc4e2beSmrgfi
5581cbc4e2beSmrg
5582cbc4e2beSmrgfound="no"
5583cbc4e2beSmrg
5584cbc4e2beSmrg	if test $found = "no" ; then
5585cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5586cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5587cbc4e2beSmrg		fi
5588cbc4e2beSmrg
5589cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5590cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5591cbc4e2beSmrg		fi
5592cbc4e2beSmrg
5593cbc4e2beSmrg		CFLAGS="$CFLAGS -Wbad-function-cast"
5594cbc4e2beSmrg
5595cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5596cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5597cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5598cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
5599cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5600cbc4e2beSmrgelse
5601cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602cbc4e2beSmrg/* end confdefs.h.  */
5603cbc4e2beSmrgint i;
5604cbc4e2beSmrgint
5605cbc4e2beSmrgmain ()
5606cbc4e2beSmrg{
5607cbc4e2beSmrg
5608cbc4e2beSmrg  ;
5609cbc4e2beSmrg  return 0;
5610cbc4e2beSmrg}
5611cbc4e2beSmrg_ACEOF
5612cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
5613cbc4e2beSmrg  eval $cacheid=yes
5614cbc4e2beSmrgelse
5615cbc4e2beSmrg  eval $cacheid=no
5616cbc4e2beSmrgfi
5617cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
5618cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
5619cbc4e2beSmrgfi
5620cbc4e2beSmrg
5621cbc4e2beSmrg
5622cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5623cbc4e2beSmrg
5624cbc4e2beSmrg		eval supported=\$$cacheid
5625cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5626cbc4e2beSmrg$as_echo "$supported" >&6; }
5627cbc4e2beSmrg		if test "$supported" = "yes" ; then
5628cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5629cbc4e2beSmrg			found="yes"
5630cbc4e2beSmrg		fi
5631cbc4e2beSmrg	fi
5632cbc4e2beSmrg
5633cbc4e2beSmrg
5634cbc4e2beSmrg
5635cbc4e2beSmrg
5636cbc4e2beSmrg
5637cbc4e2beSmrg
5638cbc4e2beSmrg
5639cbc4e2beSmrg
5640cbc4e2beSmrg
5641cbc4e2beSmrg
5642cbc4e2beSmrg
5643cbc4e2beSmrg
5644cbc4e2beSmrg
5645cbc4e2beSmrg
5646cbc4e2beSmrg
5647cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5648cbc4e2beSmrg
5649cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5650cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5651cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5652cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5653cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5654cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5655cbc4e2beSmrgelse
5656cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657cbc4e2beSmrg/* end confdefs.h.  */
5658cbc4e2beSmrgint i;
5659cbc4e2beSmrg_ACEOF
5660cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5661cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5662cbc4e2beSmrgelse
5663cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5664cbc4e2beSmrgfi
5665cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666cbc4e2beSmrgfi
5667cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5668cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5669cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5670cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5671cbc4e2beSmrgfi
5672cbc4e2beSmrg
5673cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5674cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5675cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5676cbc4e2beSmrg	fi
5677cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5678cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5679cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5680cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5681cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5682cbc4e2beSmrgelse
5683cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684cbc4e2beSmrg/* end confdefs.h.  */
5685cbc4e2beSmrgint i;
5686cbc4e2beSmrg_ACEOF
5687cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5688cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5689cbc4e2beSmrgelse
5690cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5691cbc4e2beSmrgfi
5692cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693cbc4e2beSmrgfi
5694cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5695cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5696cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5697cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5698cbc4e2beSmrgfi
5699cbc4e2beSmrg
5700cbc4e2beSmrgfound="no"
5701cbc4e2beSmrg
5702cbc4e2beSmrg	if test $found = "no" ; then
5703cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5704cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5705cbc4e2beSmrg		fi
5706cbc4e2beSmrg
5707cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5708cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5709cbc4e2beSmrg		fi
5710cbc4e2beSmrg
5711cbc4e2beSmrg		CFLAGS="$CFLAGS -Wold-style-definition"
5712cbc4e2beSmrg
5713cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5714cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5715cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
5716cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
5717cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5718cbc4e2beSmrgelse
5719cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720cbc4e2beSmrg/* end confdefs.h.  */
5721cbc4e2beSmrgint i;
5722cbc4e2beSmrgint
5723cbc4e2beSmrgmain ()
5724cbc4e2beSmrg{
5725cbc4e2beSmrg
5726cbc4e2beSmrg  ;
5727cbc4e2beSmrg  return 0;
5728cbc4e2beSmrg}
5729cbc4e2beSmrg_ACEOF
5730cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
5731cbc4e2beSmrg  eval $cacheid=yes
5732cbc4e2beSmrgelse
5733cbc4e2beSmrg  eval $cacheid=no
5734cbc4e2beSmrgfi
5735cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
5736cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
5737cbc4e2beSmrgfi
5738cbc4e2beSmrg
5739cbc4e2beSmrg
5740cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5741cbc4e2beSmrg
5742cbc4e2beSmrg		eval supported=\$$cacheid
5743cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5744cbc4e2beSmrg$as_echo "$supported" >&6; }
5745cbc4e2beSmrg		if test "$supported" = "yes" ; then
5746cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5747cbc4e2beSmrg			found="yes"
5748cbc4e2beSmrg		fi
5749cbc4e2beSmrg	fi
5750cbc4e2beSmrg
5751cbc4e2beSmrg
5752cbc4e2beSmrg
5753cbc4e2beSmrg
5754cbc4e2beSmrg
5755cbc4e2beSmrg
5756cbc4e2beSmrg
5757cbc4e2beSmrg
5758cbc4e2beSmrg
5759cbc4e2beSmrg
5760cbc4e2beSmrg
5761cbc4e2beSmrg
5762cbc4e2beSmrg
5763cbc4e2beSmrg
5764cbc4e2beSmrg
5765cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5766cbc4e2beSmrg
5767cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5768cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5769cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5770cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5771cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5772cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5773cbc4e2beSmrgelse
5774cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775cbc4e2beSmrg/* end confdefs.h.  */
5776cbc4e2beSmrgint i;
5777cbc4e2beSmrg_ACEOF
5778cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5779cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5780cbc4e2beSmrgelse
5781cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5782cbc4e2beSmrgfi
5783cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784cbc4e2beSmrgfi
5785cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5786cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5787cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5788cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5789cbc4e2beSmrgfi
5790cbc4e2beSmrg
5791cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5792cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5793cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5794cbc4e2beSmrg	fi
5795cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5796cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5797cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5798cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5799cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5800cbc4e2beSmrgelse
5801cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802cbc4e2beSmrg/* end confdefs.h.  */
5803cbc4e2beSmrgint i;
5804cbc4e2beSmrg_ACEOF
5805cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5806cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5807cbc4e2beSmrgelse
5808cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5809cbc4e2beSmrgfi
5810cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5811cbc4e2beSmrgfi
5812cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5813cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5814cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5815cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5816cbc4e2beSmrgfi
5817cbc4e2beSmrg
5818cbc4e2beSmrgfound="no"
5819cbc4e2beSmrg
5820cbc4e2beSmrg	if test $found = "no" ; then
5821cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5822cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5823cbc4e2beSmrg		fi
5824cbc4e2beSmrg
5825cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5826cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5827cbc4e2beSmrg		fi
5828cbc4e2beSmrg
5829cbc4e2beSmrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5830cbc4e2beSmrg
5831cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5832cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5833cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5834cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
5835cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5836cbc4e2beSmrgelse
5837cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838cbc4e2beSmrg/* end confdefs.h.  */
5839cbc4e2beSmrgint i;
5840cbc4e2beSmrgint
5841cbc4e2beSmrgmain ()
5842cbc4e2beSmrg{
5843cbc4e2beSmrg
5844cbc4e2beSmrg  ;
5845cbc4e2beSmrg  return 0;
5846cbc4e2beSmrg}
5847cbc4e2beSmrg_ACEOF
5848cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
5849cbc4e2beSmrg  eval $cacheid=yes
5850cbc4e2beSmrgelse
5851cbc4e2beSmrg  eval $cacheid=no
5852cbc4e2beSmrgfi
5853cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
5854cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
5855cbc4e2beSmrgfi
5856cbc4e2beSmrg
5857cbc4e2beSmrg
5858cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5859cbc4e2beSmrg
5860cbc4e2beSmrg		eval supported=\$$cacheid
5861cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5862cbc4e2beSmrg$as_echo "$supported" >&6; }
5863cbc4e2beSmrg		if test "$supported" = "yes" ; then
5864cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5865cbc4e2beSmrg			found="yes"
5866cbc4e2beSmrg		fi
5867cbc4e2beSmrg	fi
5868cbc4e2beSmrg
5869cbc4e2beSmrg
5870cbc4e2beSmrg
5871cbc4e2beSmrg
5872cbc4e2beSmrg
5873cbc4e2beSmrg# This chunk adds additional warnings that could catch undesired effects.
5874cbc4e2beSmrg
5875cbc4e2beSmrg
5876cbc4e2beSmrg
5877cbc4e2beSmrg
5878cbc4e2beSmrg
5879cbc4e2beSmrg
5880cbc4e2beSmrg
5881cbc4e2beSmrg
5882cbc4e2beSmrg
5883cbc4e2beSmrg
5884cbc4e2beSmrg
5885cbc4e2beSmrg
5886cbc4e2beSmrg
5887cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5888cbc4e2beSmrg
5889cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5890cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5891cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5892cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5893cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5894cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5895cbc4e2beSmrgelse
5896cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897cbc4e2beSmrg/* end confdefs.h.  */
5898cbc4e2beSmrgint i;
5899cbc4e2beSmrg_ACEOF
5900cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5901cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5902cbc4e2beSmrgelse
5903cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5904cbc4e2beSmrgfi
5905cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906cbc4e2beSmrgfi
5907cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5908cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5909cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5910cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5911cbc4e2beSmrgfi
5912cbc4e2beSmrg
5913cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5914cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5915cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5916cbc4e2beSmrg	fi
5917cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5918cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5919cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5920cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5921cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5922cbc4e2beSmrgelse
5923cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924cbc4e2beSmrg/* end confdefs.h.  */
5925cbc4e2beSmrgint i;
5926cbc4e2beSmrg_ACEOF
5927cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
5928cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5929cbc4e2beSmrgelse
5930cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5931cbc4e2beSmrgfi
5932cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933cbc4e2beSmrgfi
5934cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5935cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5936cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5937cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5938cbc4e2beSmrgfi
5939cbc4e2beSmrg
5940cbc4e2beSmrgfound="no"
5941cbc4e2beSmrg
5942cbc4e2beSmrg	if test $found = "no" ; then
5943cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5944cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5945cbc4e2beSmrg		fi
5946cbc4e2beSmrg
5947cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5948cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5949cbc4e2beSmrg		fi
5950cbc4e2beSmrg
5951cbc4e2beSmrg		CFLAGS="$CFLAGS -Wunused"
5952cbc4e2beSmrg
5953cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5954cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5955cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wunused
5956cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
5957cbc4e2beSmrg  $as_echo_n "(cached) " >&6
5958cbc4e2beSmrgelse
5959cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960cbc4e2beSmrg/* end confdefs.h.  */
5961cbc4e2beSmrgint i;
5962cbc4e2beSmrgint
5963cbc4e2beSmrgmain ()
5964cbc4e2beSmrg{
5965cbc4e2beSmrg
5966cbc4e2beSmrg  ;
5967cbc4e2beSmrg  return 0;
5968cbc4e2beSmrg}
5969cbc4e2beSmrg_ACEOF
5970cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
5971cbc4e2beSmrg  eval $cacheid=yes
5972cbc4e2beSmrgelse
5973cbc4e2beSmrg  eval $cacheid=no
5974cbc4e2beSmrgfi
5975cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
5976cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
5977cbc4e2beSmrgfi
5978cbc4e2beSmrg
5979cbc4e2beSmrg
5980cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5981cbc4e2beSmrg
5982cbc4e2beSmrg		eval supported=\$$cacheid
5983cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5984cbc4e2beSmrg$as_echo "$supported" >&6; }
5985cbc4e2beSmrg		if test "$supported" = "yes" ; then
5986cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5987cbc4e2beSmrg			found="yes"
5988cbc4e2beSmrg		fi
5989cbc4e2beSmrg	fi
5990cbc4e2beSmrg
5991cbc4e2beSmrg
5992cbc4e2beSmrg
5993cbc4e2beSmrg
5994cbc4e2beSmrg
5995cbc4e2beSmrg
5996cbc4e2beSmrg
5997cbc4e2beSmrg
5998cbc4e2beSmrg
5999cbc4e2beSmrg
6000cbc4e2beSmrg
6001cbc4e2beSmrg
6002cbc4e2beSmrg
6003cbc4e2beSmrg
6004cbc4e2beSmrg
6005cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6006cbc4e2beSmrg
6007cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6008cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6009cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6010cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6011cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6012cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6013cbc4e2beSmrgelse
6014cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015cbc4e2beSmrg/* end confdefs.h.  */
6016cbc4e2beSmrgint i;
6017cbc4e2beSmrg_ACEOF
6018cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6019cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6020cbc4e2beSmrgelse
6021cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6022cbc4e2beSmrgfi
6023cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024cbc4e2beSmrgfi
6025cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6026cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6027cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6028cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6029cbc4e2beSmrgfi
6030cbc4e2beSmrg
6031cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6032cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6033cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6034cbc4e2beSmrg	fi
6035cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6036cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6037cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6038cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6039cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6040cbc4e2beSmrgelse
6041cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042cbc4e2beSmrg/* end confdefs.h.  */
6043cbc4e2beSmrgint i;
6044cbc4e2beSmrg_ACEOF
6045cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6046cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6047cbc4e2beSmrgelse
6048cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6049cbc4e2beSmrgfi
6050cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051cbc4e2beSmrgfi
6052cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6053cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6054cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6055cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6056cbc4e2beSmrgfi
6057cbc4e2beSmrg
6058cbc4e2beSmrgfound="no"
6059cbc4e2beSmrg
6060cbc4e2beSmrg	if test $found = "no" ; then
6061cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6062cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6063cbc4e2beSmrg		fi
6064cbc4e2beSmrg
6065cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6066cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6067cbc4e2beSmrg		fi
6068cbc4e2beSmrg
6069cbc4e2beSmrg		CFLAGS="$CFLAGS -Wuninitialized"
6070cbc4e2beSmrg
6071cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6072cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6073cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wuninitialized
6074cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
6075cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6076cbc4e2beSmrgelse
6077cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078cbc4e2beSmrg/* end confdefs.h.  */
6079cbc4e2beSmrgint i;
6080cbc4e2beSmrgint
6081cbc4e2beSmrgmain ()
6082cbc4e2beSmrg{
6083cbc4e2beSmrg
6084cbc4e2beSmrg  ;
6085cbc4e2beSmrg  return 0;
6086cbc4e2beSmrg}
6087cbc4e2beSmrg_ACEOF
6088cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
6089cbc4e2beSmrg  eval $cacheid=yes
6090cbc4e2beSmrgelse
6091cbc4e2beSmrg  eval $cacheid=no
6092cbc4e2beSmrgfi
6093cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
6094cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
6095cbc4e2beSmrgfi
6096cbc4e2beSmrg
6097cbc4e2beSmrg
6098cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6099cbc4e2beSmrg
6100cbc4e2beSmrg		eval supported=\$$cacheid
6101cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6102cbc4e2beSmrg$as_echo "$supported" >&6; }
6103cbc4e2beSmrg		if test "$supported" = "yes" ; then
6104cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6105cbc4e2beSmrg			found="yes"
6106cbc4e2beSmrg		fi
6107cbc4e2beSmrg	fi
6108cbc4e2beSmrg
6109cbc4e2beSmrg
6110cbc4e2beSmrg
6111cbc4e2beSmrg
6112cbc4e2beSmrg
6113cbc4e2beSmrg
6114cbc4e2beSmrg
6115cbc4e2beSmrg
6116cbc4e2beSmrg
6117cbc4e2beSmrg
6118cbc4e2beSmrg
6119cbc4e2beSmrg
6120cbc4e2beSmrg
6121cbc4e2beSmrg
6122cbc4e2beSmrg
6123cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6124cbc4e2beSmrg
6125cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6126cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6127cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6128cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6129cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6130cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6131cbc4e2beSmrgelse
6132cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133cbc4e2beSmrg/* end confdefs.h.  */
6134cbc4e2beSmrgint i;
6135cbc4e2beSmrg_ACEOF
6136cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6137cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6138cbc4e2beSmrgelse
6139cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6140cbc4e2beSmrgfi
6141cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142cbc4e2beSmrgfi
6143cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6144cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6145cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6146cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6147cbc4e2beSmrgfi
6148cbc4e2beSmrg
6149cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6150cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6151cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6152cbc4e2beSmrg	fi
6153cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6154cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6155cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6156cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6157cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6158cbc4e2beSmrgelse
6159cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160cbc4e2beSmrg/* end confdefs.h.  */
6161cbc4e2beSmrgint i;
6162cbc4e2beSmrg_ACEOF
6163cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6164cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6165cbc4e2beSmrgelse
6166cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6167cbc4e2beSmrgfi
6168cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169cbc4e2beSmrgfi
6170cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6171cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6172cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6173cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6174cbc4e2beSmrgfi
6175cbc4e2beSmrg
6176cbc4e2beSmrgfound="no"
6177cbc4e2beSmrg
6178cbc4e2beSmrg	if test $found = "no" ; then
6179cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6180cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6181cbc4e2beSmrg		fi
6182cbc4e2beSmrg
6183cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6184cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6185cbc4e2beSmrg		fi
6186cbc4e2beSmrg
6187cbc4e2beSmrg		CFLAGS="$CFLAGS -Wshadow"
6188cbc4e2beSmrg
6189cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6190cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6191cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wshadow
6192cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
6193cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6194cbc4e2beSmrgelse
6195cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196cbc4e2beSmrg/* end confdefs.h.  */
6197cbc4e2beSmrgint i;
6198cbc4e2beSmrgint
6199cbc4e2beSmrgmain ()
6200cbc4e2beSmrg{
6201cbc4e2beSmrg
6202cbc4e2beSmrg  ;
6203cbc4e2beSmrg  return 0;
6204cbc4e2beSmrg}
6205cbc4e2beSmrg_ACEOF
6206cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
6207cbc4e2beSmrg  eval $cacheid=yes
6208cbc4e2beSmrgelse
6209cbc4e2beSmrg  eval $cacheid=no
6210cbc4e2beSmrgfi
6211cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
6212cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
6213cbc4e2beSmrgfi
6214cbc4e2beSmrg
6215cbc4e2beSmrg
6216cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6217cbc4e2beSmrg
6218cbc4e2beSmrg		eval supported=\$$cacheid
6219cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6220cbc4e2beSmrg$as_echo "$supported" >&6; }
6221cbc4e2beSmrg		if test "$supported" = "yes" ; then
6222cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6223cbc4e2beSmrg			found="yes"
6224cbc4e2beSmrg		fi
6225cbc4e2beSmrg	fi
6226cbc4e2beSmrg
6227cbc4e2beSmrg
6228cbc4e2beSmrg
6229cbc4e2beSmrg
6230cbc4e2beSmrg
6231cbc4e2beSmrg
6232cbc4e2beSmrg
6233cbc4e2beSmrg
6234cbc4e2beSmrg
6235cbc4e2beSmrg
6236cbc4e2beSmrg
6237cbc4e2beSmrg
6238cbc4e2beSmrg
6239cbc4e2beSmrg
6240cbc4e2beSmrg
6241cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6242cbc4e2beSmrg
6243cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6244cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6246cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6247cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6248cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6249cbc4e2beSmrgelse
6250cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251cbc4e2beSmrg/* end confdefs.h.  */
6252cbc4e2beSmrgint i;
6253cbc4e2beSmrg_ACEOF
6254cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6255cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6256cbc4e2beSmrgelse
6257cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6258cbc4e2beSmrgfi
6259cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260cbc4e2beSmrgfi
6261cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6262cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6263cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6264cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6265cbc4e2beSmrgfi
6266cbc4e2beSmrg
6267cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6268cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6269cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6270cbc4e2beSmrg	fi
6271cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6272cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6273cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6274cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6275cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6276cbc4e2beSmrgelse
6277cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278cbc4e2beSmrg/* end confdefs.h.  */
6279cbc4e2beSmrgint i;
6280cbc4e2beSmrg_ACEOF
6281cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6282cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6283cbc4e2beSmrgelse
6284cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6285cbc4e2beSmrgfi
6286cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287cbc4e2beSmrgfi
6288cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6289cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6290cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6291cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6292cbc4e2beSmrgfi
6293cbc4e2beSmrg
6294cbc4e2beSmrgfound="no"
6295cbc4e2beSmrg
6296cbc4e2beSmrg	if test $found = "no" ; then
6297cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6298cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6299cbc4e2beSmrg		fi
6300cbc4e2beSmrg
6301cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6302cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6303cbc4e2beSmrg		fi
6304cbc4e2beSmrg
6305cbc4e2beSmrg		CFLAGS="$CFLAGS -Wcast-qual"
6306cbc4e2beSmrg
6307cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6308cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6309cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wcast_qual
6310cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
6311cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6312cbc4e2beSmrgelse
6313cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314cbc4e2beSmrg/* end confdefs.h.  */
6315cbc4e2beSmrgint i;
6316cbc4e2beSmrgint
6317cbc4e2beSmrgmain ()
6318cbc4e2beSmrg{
6319cbc4e2beSmrg
6320cbc4e2beSmrg  ;
6321cbc4e2beSmrg  return 0;
6322cbc4e2beSmrg}
6323cbc4e2beSmrg_ACEOF
6324cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
6325cbc4e2beSmrg  eval $cacheid=yes
6326cbc4e2beSmrgelse
6327cbc4e2beSmrg  eval $cacheid=no
6328cbc4e2beSmrgfi
6329cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
6330cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
6331cbc4e2beSmrgfi
6332cbc4e2beSmrg
6333cbc4e2beSmrg
6334cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6335cbc4e2beSmrg
6336cbc4e2beSmrg		eval supported=\$$cacheid
6337cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6338cbc4e2beSmrg$as_echo "$supported" >&6; }
6339cbc4e2beSmrg		if test "$supported" = "yes" ; then
6340cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6341cbc4e2beSmrg			found="yes"
6342cbc4e2beSmrg		fi
6343cbc4e2beSmrg	fi
6344cbc4e2beSmrg
6345cbc4e2beSmrg
6346cbc4e2beSmrg
6347cbc4e2beSmrg
6348cbc4e2beSmrg
6349cbc4e2beSmrg
6350cbc4e2beSmrg
6351cbc4e2beSmrg
6352cbc4e2beSmrg
6353cbc4e2beSmrg
6354cbc4e2beSmrg
6355cbc4e2beSmrg
6356cbc4e2beSmrg
6357cbc4e2beSmrg
6358cbc4e2beSmrg
6359cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6360cbc4e2beSmrg
6361cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6362cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6363cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6364cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6365cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6366cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6367cbc4e2beSmrgelse
6368cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369cbc4e2beSmrg/* end confdefs.h.  */
6370cbc4e2beSmrgint i;
6371cbc4e2beSmrg_ACEOF
6372cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6373cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6374cbc4e2beSmrgelse
6375cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6376cbc4e2beSmrgfi
6377cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378cbc4e2beSmrgfi
6379cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6380cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6381cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6382cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6383cbc4e2beSmrgfi
6384cbc4e2beSmrg
6385cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6386cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6387cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6388cbc4e2beSmrg	fi
6389cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6390cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6391cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6392cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6393cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6394cbc4e2beSmrgelse
6395cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396cbc4e2beSmrg/* end confdefs.h.  */
6397cbc4e2beSmrgint i;
6398cbc4e2beSmrg_ACEOF
6399cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6400cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6401cbc4e2beSmrgelse
6402cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6403cbc4e2beSmrgfi
6404cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405cbc4e2beSmrgfi
6406cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6407cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6408cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6409cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6410cbc4e2beSmrgfi
6411cbc4e2beSmrg
6412cbc4e2beSmrgfound="no"
6413cbc4e2beSmrg
6414cbc4e2beSmrg	if test $found = "no" ; then
6415cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6416cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6417cbc4e2beSmrg		fi
6418cbc4e2beSmrg
6419cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6420cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6421cbc4e2beSmrg		fi
6422cbc4e2beSmrg
6423cbc4e2beSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
6424cbc4e2beSmrg
6425cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6426cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6427cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6428cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
6429cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6430cbc4e2beSmrgelse
6431cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432cbc4e2beSmrg/* end confdefs.h.  */
6433cbc4e2beSmrgint i;
6434cbc4e2beSmrgint
6435cbc4e2beSmrgmain ()
6436cbc4e2beSmrg{
6437cbc4e2beSmrg
6438cbc4e2beSmrg  ;
6439cbc4e2beSmrg  return 0;
6440cbc4e2beSmrg}
6441cbc4e2beSmrg_ACEOF
6442cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
6443cbc4e2beSmrg  eval $cacheid=yes
6444cbc4e2beSmrgelse
6445cbc4e2beSmrg  eval $cacheid=no
6446cbc4e2beSmrgfi
6447cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
6448cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
6449cbc4e2beSmrgfi
6450cbc4e2beSmrg
6451cbc4e2beSmrg
6452cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6453cbc4e2beSmrg
6454cbc4e2beSmrg		eval supported=\$$cacheid
6455cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6456cbc4e2beSmrg$as_echo "$supported" >&6; }
6457cbc4e2beSmrg		if test "$supported" = "yes" ; then
6458cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6459cbc4e2beSmrg			found="yes"
6460cbc4e2beSmrg		fi
6461cbc4e2beSmrg	fi
6462cbc4e2beSmrg
6463cbc4e2beSmrg
6464cbc4e2beSmrg
6465cbc4e2beSmrg
6466cbc4e2beSmrg
6467cbc4e2beSmrg
6468cbc4e2beSmrg
6469cbc4e2beSmrg
6470cbc4e2beSmrg
6471cbc4e2beSmrg
6472cbc4e2beSmrg
6473cbc4e2beSmrg
6474cbc4e2beSmrg
6475cbc4e2beSmrg
6476cbc4e2beSmrg
6477cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6478cbc4e2beSmrg
6479cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6480cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6481cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6482cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6483cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6484cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6485cbc4e2beSmrgelse
6486cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487cbc4e2beSmrg/* end confdefs.h.  */
6488cbc4e2beSmrgint i;
6489cbc4e2beSmrg_ACEOF
6490cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6491cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6492cbc4e2beSmrgelse
6493cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6494cbc4e2beSmrgfi
6495cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496cbc4e2beSmrgfi
6497cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6498cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6499cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6500cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6501cbc4e2beSmrgfi
6502cbc4e2beSmrg
6503cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6504cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6505cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6506cbc4e2beSmrg	fi
6507cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6508cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6509cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6510cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6511cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6512cbc4e2beSmrgelse
6513cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514cbc4e2beSmrg/* end confdefs.h.  */
6515cbc4e2beSmrgint i;
6516cbc4e2beSmrg_ACEOF
6517cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6518cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6519cbc4e2beSmrgelse
6520cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6521cbc4e2beSmrgfi
6522cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523cbc4e2beSmrgfi
6524cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6525cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6526cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6527cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6528cbc4e2beSmrgfi
6529cbc4e2beSmrg
6530cbc4e2beSmrgfound="no"
6531cbc4e2beSmrg
6532cbc4e2beSmrg	if test $found = "no" ; then
6533cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6534cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6535cbc4e2beSmrg		fi
6536cbc4e2beSmrg
6537cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6538cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6539cbc4e2beSmrg		fi
6540cbc4e2beSmrg
6541cbc4e2beSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6542cbc4e2beSmrg
6543cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6544cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6545cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6546cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
6547cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6548cbc4e2beSmrgelse
6549cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550cbc4e2beSmrg/* end confdefs.h.  */
6551cbc4e2beSmrgint i;
6552cbc4e2beSmrgint
6553cbc4e2beSmrgmain ()
6554cbc4e2beSmrg{
6555cbc4e2beSmrg
6556cbc4e2beSmrg  ;
6557cbc4e2beSmrg  return 0;
6558cbc4e2beSmrg}
6559cbc4e2beSmrg_ACEOF
6560cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
6561cbc4e2beSmrg  eval $cacheid=yes
6562cbc4e2beSmrgelse
6563cbc4e2beSmrg  eval $cacheid=no
6564cbc4e2beSmrgfi
6565cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
6566cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
6567cbc4e2beSmrgfi
6568cbc4e2beSmrg
6569cbc4e2beSmrg
6570cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6571cbc4e2beSmrg
6572cbc4e2beSmrg		eval supported=\$$cacheid
6573cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6574cbc4e2beSmrg$as_echo "$supported" >&6; }
6575cbc4e2beSmrg		if test "$supported" = "yes" ; then
6576cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6577cbc4e2beSmrg			found="yes"
6578cbc4e2beSmrg		fi
6579cbc4e2beSmrg	fi
6580cbc4e2beSmrg
6581cbc4e2beSmrg
6582cbc4e2beSmrg
6583cbc4e2beSmrg
6584cbc4e2beSmrg
6585cbc4e2beSmrg
6586cbc4e2beSmrg
6587cbc4e2beSmrg
6588cbc4e2beSmrg
6589cbc4e2beSmrg
6590cbc4e2beSmrg
6591cbc4e2beSmrg
6592cbc4e2beSmrg
6593cbc4e2beSmrg
6594cbc4e2beSmrg
6595cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6596cbc4e2beSmrg
6597cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6598cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6599cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6600cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6601cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6602cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6603cbc4e2beSmrgelse
6604cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605cbc4e2beSmrg/* end confdefs.h.  */
6606cbc4e2beSmrgint i;
6607cbc4e2beSmrg_ACEOF
6608cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6609cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6610cbc4e2beSmrgelse
6611cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6612cbc4e2beSmrgfi
6613cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614cbc4e2beSmrgfi
6615cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6616cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6617cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6618cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6619cbc4e2beSmrgfi
6620cbc4e2beSmrg
6621cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6622cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6623cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6624cbc4e2beSmrg	fi
6625cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6626cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6627cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6628cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6629cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6630cbc4e2beSmrgelse
6631cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632cbc4e2beSmrg/* end confdefs.h.  */
6633cbc4e2beSmrgint i;
6634cbc4e2beSmrg_ACEOF
6635cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6636cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6637cbc4e2beSmrgelse
6638cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6639cbc4e2beSmrgfi
6640cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641cbc4e2beSmrgfi
6642cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6643cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6644cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6645cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6646cbc4e2beSmrgfi
6647cbc4e2beSmrg
6648cbc4e2beSmrgfound="no"
6649cbc4e2beSmrg
6650cbc4e2beSmrg	if test $found = "no" ; then
6651cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6652cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6653cbc4e2beSmrg		fi
6654cbc4e2beSmrg
6655cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6656cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6657cbc4e2beSmrg		fi
6658cbc4e2beSmrg
6659cbc4e2beSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
6660cbc4e2beSmrg
6661cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6662cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6663cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
6664cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
6665cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6666cbc4e2beSmrgelse
6667cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668cbc4e2beSmrg/* end confdefs.h.  */
6669cbc4e2beSmrgint i;
6670cbc4e2beSmrgint
6671cbc4e2beSmrgmain ()
6672cbc4e2beSmrg{
6673cbc4e2beSmrg
6674cbc4e2beSmrg  ;
6675cbc4e2beSmrg  return 0;
6676cbc4e2beSmrg}
6677cbc4e2beSmrg_ACEOF
6678cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
6679cbc4e2beSmrg  eval $cacheid=yes
6680cbc4e2beSmrgelse
6681cbc4e2beSmrg  eval $cacheid=no
6682cbc4e2beSmrgfi
6683cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
6684cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
6685cbc4e2beSmrgfi
6686cbc4e2beSmrg
6687cbc4e2beSmrg
6688cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6689cbc4e2beSmrg
6690cbc4e2beSmrg		eval supported=\$$cacheid
6691cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6692cbc4e2beSmrg$as_echo "$supported" >&6; }
6693cbc4e2beSmrg		if test "$supported" = "yes" ; then
6694cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6695cbc4e2beSmrg			found="yes"
6696cbc4e2beSmrg		fi
6697cbc4e2beSmrg	fi
6698cbc4e2beSmrg
6699cbc4e2beSmrg
6700cbc4e2beSmrg
6701cbc4e2beSmrg# These are currently disabled because they are noisy.  They will be enabled
6702cbc4e2beSmrg# in the future once the codebase is sufficiently modernized to silence
6703cbc4e2beSmrg# them.  For now, I don't want them to drown out the other warnings.
6704cbc4e2beSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6705cbc4e2beSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6706cbc4e2beSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6707cbc4e2beSmrg
6708cbc4e2beSmrg# Turn some warnings into errors, so we don't accidently get successful builds
6709cbc4e2beSmrg# when there are problems that should be fixed.
6710cbc4e2beSmrg
6711cbc4e2beSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
6712cbc4e2beSmrg
6713cbc4e2beSmrg
6714cbc4e2beSmrg
6715cbc4e2beSmrg
6716cbc4e2beSmrg
6717cbc4e2beSmrg
6718cbc4e2beSmrg
6719cbc4e2beSmrg
6720cbc4e2beSmrg
6721cbc4e2beSmrg
6722cbc4e2beSmrg
6723cbc4e2beSmrg
6724cbc4e2beSmrg
6725cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6726cbc4e2beSmrg
6727cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6728cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6729cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6730cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6731cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6732cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6733cbc4e2beSmrgelse
6734cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735cbc4e2beSmrg/* end confdefs.h.  */
6736cbc4e2beSmrgint i;
6737cbc4e2beSmrg_ACEOF
6738cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6739cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6740cbc4e2beSmrgelse
6741cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6742cbc4e2beSmrgfi
6743cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744cbc4e2beSmrgfi
6745cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6746cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6747cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6748cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6749cbc4e2beSmrgfi
6750cbc4e2beSmrg
6751cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6752cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6753cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6754cbc4e2beSmrg	fi
6755cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6756cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6757cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6758cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6759cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6760cbc4e2beSmrgelse
6761cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762cbc4e2beSmrg/* end confdefs.h.  */
6763cbc4e2beSmrgint i;
6764cbc4e2beSmrg_ACEOF
6765cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6766cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6767cbc4e2beSmrgelse
6768cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6769cbc4e2beSmrgfi
6770cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771cbc4e2beSmrgfi
6772cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6773cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6774cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6775cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6776cbc4e2beSmrgfi
6777cbc4e2beSmrg
6778cbc4e2beSmrgfound="no"
6779cbc4e2beSmrg
6780cbc4e2beSmrg	if test $found = "no" ; then
6781cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6782cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6783cbc4e2beSmrg		fi
6784cbc4e2beSmrg
6785cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6786cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6787cbc4e2beSmrg		fi
6788cbc4e2beSmrg
6789cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=implicit"
6790cbc4e2beSmrg
6791cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6792cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6793cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6794cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
6795cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6796cbc4e2beSmrgelse
6797cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798cbc4e2beSmrg/* end confdefs.h.  */
6799cbc4e2beSmrgint i;
6800cbc4e2beSmrgint
6801cbc4e2beSmrgmain ()
6802cbc4e2beSmrg{
6803cbc4e2beSmrg
6804cbc4e2beSmrg  ;
6805cbc4e2beSmrg  return 0;
6806cbc4e2beSmrg}
6807cbc4e2beSmrg_ACEOF
6808cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
6809cbc4e2beSmrg  eval $cacheid=yes
6810cbc4e2beSmrgelse
6811cbc4e2beSmrg  eval $cacheid=no
6812cbc4e2beSmrgfi
6813cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
6814cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
6815cbc4e2beSmrgfi
6816cbc4e2beSmrg
6817cbc4e2beSmrg
6818cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6819cbc4e2beSmrg
6820cbc4e2beSmrg		eval supported=\$$cacheid
6821cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6822cbc4e2beSmrg$as_echo "$supported" >&6; }
6823cbc4e2beSmrg		if test "$supported" = "yes" ; then
6824cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6825cbc4e2beSmrg			found="yes"
6826cbc4e2beSmrg		fi
6827cbc4e2beSmrg	fi
6828cbc4e2beSmrg
6829cbc4e2beSmrg	if test $found = "no" ; then
6830cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6831cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6832cbc4e2beSmrg		fi
6833cbc4e2beSmrg
6834cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6835cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6836cbc4e2beSmrg		fi
6837cbc4e2beSmrg
6838cbc4e2beSmrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6839cbc4e2beSmrg
6840cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6841cbc4e2beSmrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6842cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6843cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
6844cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6845cbc4e2beSmrgelse
6846cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847cbc4e2beSmrg/* end confdefs.h.  */
6848cbc4e2beSmrgint i;
6849cbc4e2beSmrgint
6850cbc4e2beSmrgmain ()
6851cbc4e2beSmrg{
6852cbc4e2beSmrg
6853cbc4e2beSmrg  ;
6854cbc4e2beSmrg  return 0;
6855cbc4e2beSmrg}
6856cbc4e2beSmrg_ACEOF
6857cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
6858cbc4e2beSmrg  eval $cacheid=yes
6859cbc4e2beSmrgelse
6860cbc4e2beSmrg  eval $cacheid=no
6861cbc4e2beSmrgfi
6862cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
6863cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
6864cbc4e2beSmrgfi
6865cbc4e2beSmrg
6866cbc4e2beSmrg
6867cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6868cbc4e2beSmrg
6869cbc4e2beSmrg		eval supported=\$$cacheid
6870cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6871cbc4e2beSmrg$as_echo "$supported" >&6; }
6872cbc4e2beSmrg		if test "$supported" = "yes" ; then
6873cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6874cbc4e2beSmrg			found="yes"
6875cbc4e2beSmrg		fi
6876cbc4e2beSmrg	fi
6877cbc4e2beSmrg
6878cbc4e2beSmrg
6879cbc4e2beSmrg
6880cbc4e2beSmrg
6881cbc4e2beSmrg
6882cbc4e2beSmrg
6883cbc4e2beSmrg
6884cbc4e2beSmrg
6885cbc4e2beSmrg
6886cbc4e2beSmrg
6887cbc4e2beSmrg
6888cbc4e2beSmrg
6889cbc4e2beSmrg
6890cbc4e2beSmrg
6891cbc4e2beSmrg
6892cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6893cbc4e2beSmrg
6894cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6895cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6896cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6897cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6898cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6899cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6900cbc4e2beSmrgelse
6901cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902cbc4e2beSmrg/* end confdefs.h.  */
6903cbc4e2beSmrgint i;
6904cbc4e2beSmrg_ACEOF
6905cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6906cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6907cbc4e2beSmrgelse
6908cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6909cbc4e2beSmrgfi
6910cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911cbc4e2beSmrgfi
6912cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6913cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6914cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6915cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6916cbc4e2beSmrgfi
6917cbc4e2beSmrg
6918cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6919cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6920cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6921cbc4e2beSmrg	fi
6922cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6923cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6924cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6925cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6926cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6927cbc4e2beSmrgelse
6928cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929cbc4e2beSmrg/* end confdefs.h.  */
6930cbc4e2beSmrgint i;
6931cbc4e2beSmrg_ACEOF
6932cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
6933cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6934cbc4e2beSmrgelse
6935cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6936cbc4e2beSmrgfi
6937cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938cbc4e2beSmrgfi
6939cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6940cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6941cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6942cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6943cbc4e2beSmrgfi
6944cbc4e2beSmrg
6945cbc4e2beSmrgfound="no"
6946cbc4e2beSmrg
6947cbc4e2beSmrg	if test $found = "no" ; then
6948cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6949cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6950cbc4e2beSmrg		fi
6951cbc4e2beSmrg
6952cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6953cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6954cbc4e2beSmrg		fi
6955cbc4e2beSmrg
6956cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=nonnull"
6957cbc4e2beSmrg
6958cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6959cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6960cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6961cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
6962cbc4e2beSmrg  $as_echo_n "(cached) " >&6
6963cbc4e2beSmrgelse
6964cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965cbc4e2beSmrg/* end confdefs.h.  */
6966cbc4e2beSmrgint i;
6967cbc4e2beSmrgint
6968cbc4e2beSmrgmain ()
6969cbc4e2beSmrg{
6970cbc4e2beSmrg
6971cbc4e2beSmrg  ;
6972cbc4e2beSmrg  return 0;
6973cbc4e2beSmrg}
6974cbc4e2beSmrg_ACEOF
6975cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
6976cbc4e2beSmrg  eval $cacheid=yes
6977cbc4e2beSmrgelse
6978cbc4e2beSmrg  eval $cacheid=no
6979cbc4e2beSmrgfi
6980cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
6981cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
6982cbc4e2beSmrgfi
6983cbc4e2beSmrg
6984cbc4e2beSmrg
6985cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6986cbc4e2beSmrg
6987cbc4e2beSmrg		eval supported=\$$cacheid
6988cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6989cbc4e2beSmrg$as_echo "$supported" >&6; }
6990cbc4e2beSmrg		if test "$supported" = "yes" ; then
6991cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6992cbc4e2beSmrg			found="yes"
6993cbc4e2beSmrg		fi
6994cbc4e2beSmrg	fi
6995cbc4e2beSmrg
6996cbc4e2beSmrg
6997cbc4e2beSmrg
6998cbc4e2beSmrg
6999cbc4e2beSmrg
7000cbc4e2beSmrg
7001cbc4e2beSmrg
7002cbc4e2beSmrg
7003cbc4e2beSmrg
7004cbc4e2beSmrg
7005cbc4e2beSmrg
7006cbc4e2beSmrg
7007cbc4e2beSmrg
7008cbc4e2beSmrg
7009cbc4e2beSmrg
7010cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7011cbc4e2beSmrg
7012cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7013cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7014cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7015cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7016cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7017cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7018cbc4e2beSmrgelse
7019cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020cbc4e2beSmrg/* end confdefs.h.  */
7021cbc4e2beSmrgint i;
7022cbc4e2beSmrg_ACEOF
7023cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7024cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7025cbc4e2beSmrgelse
7026cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7027cbc4e2beSmrgfi
7028cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7029cbc4e2beSmrgfi
7030cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7031cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7032cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7033cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7034cbc4e2beSmrgfi
7035cbc4e2beSmrg
7036cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7037cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7038cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7039cbc4e2beSmrg	fi
7040cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7041cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7042cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7043cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7044cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7045cbc4e2beSmrgelse
7046cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047cbc4e2beSmrg/* end confdefs.h.  */
7048cbc4e2beSmrgint i;
7049cbc4e2beSmrg_ACEOF
7050cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7051cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7052cbc4e2beSmrgelse
7053cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7054cbc4e2beSmrgfi
7055cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056cbc4e2beSmrgfi
7057cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7058cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7059cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7060cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7061cbc4e2beSmrgfi
7062cbc4e2beSmrg
7063cbc4e2beSmrgfound="no"
7064cbc4e2beSmrg
7065cbc4e2beSmrg	if test $found = "no" ; then
7066cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7067cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7068cbc4e2beSmrg		fi
7069cbc4e2beSmrg
7070cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7071cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7072cbc4e2beSmrg		fi
7073cbc4e2beSmrg
7074cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=init-self"
7075cbc4e2beSmrg
7076cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7077cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7078cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7079cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
7080cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7081cbc4e2beSmrgelse
7082cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083cbc4e2beSmrg/* end confdefs.h.  */
7084cbc4e2beSmrgint i;
7085cbc4e2beSmrgint
7086cbc4e2beSmrgmain ()
7087cbc4e2beSmrg{
7088cbc4e2beSmrg
7089cbc4e2beSmrg  ;
7090cbc4e2beSmrg  return 0;
7091cbc4e2beSmrg}
7092cbc4e2beSmrg_ACEOF
7093cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
7094cbc4e2beSmrg  eval $cacheid=yes
7095cbc4e2beSmrgelse
7096cbc4e2beSmrg  eval $cacheid=no
7097cbc4e2beSmrgfi
7098cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
7099cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
7100cbc4e2beSmrgfi
7101cbc4e2beSmrg
7102cbc4e2beSmrg
7103cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7104cbc4e2beSmrg
7105cbc4e2beSmrg		eval supported=\$$cacheid
7106cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7107cbc4e2beSmrg$as_echo "$supported" >&6; }
7108cbc4e2beSmrg		if test "$supported" = "yes" ; then
7109cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7110cbc4e2beSmrg			found="yes"
7111cbc4e2beSmrg		fi
7112cbc4e2beSmrg	fi
7113cbc4e2beSmrg
7114cbc4e2beSmrg
7115cbc4e2beSmrg
7116cbc4e2beSmrg
7117cbc4e2beSmrg
7118cbc4e2beSmrg
7119cbc4e2beSmrg
7120cbc4e2beSmrg
7121cbc4e2beSmrg
7122cbc4e2beSmrg
7123cbc4e2beSmrg
7124cbc4e2beSmrg
7125cbc4e2beSmrg
7126cbc4e2beSmrg
7127cbc4e2beSmrg
7128cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7129cbc4e2beSmrg
7130cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7131cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7132cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7133cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7134cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7135cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7136cbc4e2beSmrgelse
7137cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138cbc4e2beSmrg/* end confdefs.h.  */
7139cbc4e2beSmrgint i;
7140cbc4e2beSmrg_ACEOF
7141cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7142cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7143cbc4e2beSmrgelse
7144cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7145cbc4e2beSmrgfi
7146cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147cbc4e2beSmrgfi
7148cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7149cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7150cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7151cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7152cbc4e2beSmrgfi
7153cbc4e2beSmrg
7154cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7155cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7156cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7157cbc4e2beSmrg	fi
7158cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7159cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7160cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7161cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7162cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7163cbc4e2beSmrgelse
7164cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165cbc4e2beSmrg/* end confdefs.h.  */
7166cbc4e2beSmrgint i;
7167cbc4e2beSmrg_ACEOF
7168cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7169cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7170cbc4e2beSmrgelse
7171cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7172cbc4e2beSmrgfi
7173cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7174cbc4e2beSmrgfi
7175cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7176cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7177cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7178cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7179cbc4e2beSmrgfi
7180cbc4e2beSmrg
7181cbc4e2beSmrgfound="no"
7182cbc4e2beSmrg
7183cbc4e2beSmrg	if test $found = "no" ; then
7184cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7185cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7186cbc4e2beSmrg		fi
7187cbc4e2beSmrg
7188cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7189cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7190cbc4e2beSmrg		fi
7191cbc4e2beSmrg
7192cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=main"
7193cbc4e2beSmrg
7194cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7195cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7196cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7197cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
7198cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7199cbc4e2beSmrgelse
7200cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201cbc4e2beSmrg/* end confdefs.h.  */
7202cbc4e2beSmrgint i;
7203cbc4e2beSmrgint
7204cbc4e2beSmrgmain ()
7205cbc4e2beSmrg{
7206cbc4e2beSmrg
7207cbc4e2beSmrg  ;
7208cbc4e2beSmrg  return 0;
7209cbc4e2beSmrg}
7210cbc4e2beSmrg_ACEOF
7211cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
7212cbc4e2beSmrg  eval $cacheid=yes
7213cbc4e2beSmrgelse
7214cbc4e2beSmrg  eval $cacheid=no
7215cbc4e2beSmrgfi
7216cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
7217cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
7218cbc4e2beSmrgfi
7219cbc4e2beSmrg
7220cbc4e2beSmrg
7221cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7222cbc4e2beSmrg
7223cbc4e2beSmrg		eval supported=\$$cacheid
7224cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7225cbc4e2beSmrg$as_echo "$supported" >&6; }
7226cbc4e2beSmrg		if test "$supported" = "yes" ; then
7227cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7228cbc4e2beSmrg			found="yes"
7229cbc4e2beSmrg		fi
7230cbc4e2beSmrg	fi
7231cbc4e2beSmrg
7232cbc4e2beSmrg
7233cbc4e2beSmrg
7234cbc4e2beSmrg
7235cbc4e2beSmrg
7236cbc4e2beSmrg
7237cbc4e2beSmrg
7238cbc4e2beSmrg
7239cbc4e2beSmrg
7240cbc4e2beSmrg
7241cbc4e2beSmrg
7242cbc4e2beSmrg
7243cbc4e2beSmrg
7244cbc4e2beSmrg
7245cbc4e2beSmrg
7246cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7247cbc4e2beSmrg
7248cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7249cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7250cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7251cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7252cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7253cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7254cbc4e2beSmrgelse
7255cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256cbc4e2beSmrg/* end confdefs.h.  */
7257cbc4e2beSmrgint i;
7258cbc4e2beSmrg_ACEOF
7259cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7260cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7261cbc4e2beSmrgelse
7262cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7263cbc4e2beSmrgfi
7264cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265cbc4e2beSmrgfi
7266cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7267cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7268cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7269cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7270cbc4e2beSmrgfi
7271cbc4e2beSmrg
7272cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7273cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7274cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7275cbc4e2beSmrg	fi
7276cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7277cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7278cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7279cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7280cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7281cbc4e2beSmrgelse
7282cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283cbc4e2beSmrg/* end confdefs.h.  */
7284cbc4e2beSmrgint i;
7285cbc4e2beSmrg_ACEOF
7286cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7287cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7288cbc4e2beSmrgelse
7289cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7290cbc4e2beSmrgfi
7291cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292cbc4e2beSmrgfi
7293cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7294cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7295cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7296cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7297cbc4e2beSmrgfi
7298cbc4e2beSmrg
7299cbc4e2beSmrgfound="no"
7300cbc4e2beSmrg
7301cbc4e2beSmrg	if test $found = "no" ; then
7302cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7303cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7304cbc4e2beSmrg		fi
7305cbc4e2beSmrg
7306cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7307cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7308cbc4e2beSmrg		fi
7309cbc4e2beSmrg
7310cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=missing-braces"
7311cbc4e2beSmrg
7312cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7313cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7314cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7315cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
7316cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7317cbc4e2beSmrgelse
7318cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319cbc4e2beSmrg/* end confdefs.h.  */
7320cbc4e2beSmrgint i;
7321cbc4e2beSmrgint
7322cbc4e2beSmrgmain ()
7323cbc4e2beSmrg{
7324cbc4e2beSmrg
7325cbc4e2beSmrg  ;
7326cbc4e2beSmrg  return 0;
7327cbc4e2beSmrg}
7328cbc4e2beSmrg_ACEOF
7329cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
7330cbc4e2beSmrg  eval $cacheid=yes
7331cbc4e2beSmrgelse
7332cbc4e2beSmrg  eval $cacheid=no
7333cbc4e2beSmrgfi
7334cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
7335cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
7336cbc4e2beSmrgfi
7337cbc4e2beSmrg
7338cbc4e2beSmrg
7339cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7340cbc4e2beSmrg
7341cbc4e2beSmrg		eval supported=\$$cacheid
7342cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7343cbc4e2beSmrg$as_echo "$supported" >&6; }
7344cbc4e2beSmrg		if test "$supported" = "yes" ; then
7345cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7346cbc4e2beSmrg			found="yes"
7347cbc4e2beSmrg		fi
7348cbc4e2beSmrg	fi
7349cbc4e2beSmrg
7350cbc4e2beSmrg
7351cbc4e2beSmrg
7352cbc4e2beSmrg
7353cbc4e2beSmrg
7354cbc4e2beSmrg
7355cbc4e2beSmrg
7356cbc4e2beSmrg
7357cbc4e2beSmrg
7358cbc4e2beSmrg
7359cbc4e2beSmrg
7360cbc4e2beSmrg
7361cbc4e2beSmrg
7362cbc4e2beSmrg
7363cbc4e2beSmrg
7364cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7365cbc4e2beSmrg
7366cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7367cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7368cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7369cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7370cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7371cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7372cbc4e2beSmrgelse
7373cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374cbc4e2beSmrg/* end confdefs.h.  */
7375cbc4e2beSmrgint i;
7376cbc4e2beSmrg_ACEOF
7377cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7378cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7379cbc4e2beSmrgelse
7380cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7381cbc4e2beSmrgfi
7382cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383cbc4e2beSmrgfi
7384cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7385cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7386cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7387cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7388cbc4e2beSmrgfi
7389cbc4e2beSmrg
7390cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7391cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7392cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7393cbc4e2beSmrg	fi
7394cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7395cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7396cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7397cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7398cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7399cbc4e2beSmrgelse
7400cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401cbc4e2beSmrg/* end confdefs.h.  */
7402cbc4e2beSmrgint i;
7403cbc4e2beSmrg_ACEOF
7404cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7405cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7406cbc4e2beSmrgelse
7407cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7408cbc4e2beSmrgfi
7409cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410cbc4e2beSmrgfi
7411cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7412cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7413cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7414cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7415cbc4e2beSmrgfi
7416cbc4e2beSmrg
7417cbc4e2beSmrgfound="no"
7418cbc4e2beSmrg
7419cbc4e2beSmrg	if test $found = "no" ; then
7420cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7421cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7422cbc4e2beSmrg		fi
7423cbc4e2beSmrg
7424cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7425cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7426cbc4e2beSmrg		fi
7427cbc4e2beSmrg
7428cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=sequence-point"
7429cbc4e2beSmrg
7430cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7431cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7432cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7433cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
7434cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7435cbc4e2beSmrgelse
7436cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437cbc4e2beSmrg/* end confdefs.h.  */
7438cbc4e2beSmrgint i;
7439cbc4e2beSmrgint
7440cbc4e2beSmrgmain ()
7441cbc4e2beSmrg{
7442cbc4e2beSmrg
7443cbc4e2beSmrg  ;
7444cbc4e2beSmrg  return 0;
7445cbc4e2beSmrg}
7446cbc4e2beSmrg_ACEOF
7447cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
7448cbc4e2beSmrg  eval $cacheid=yes
7449cbc4e2beSmrgelse
7450cbc4e2beSmrg  eval $cacheid=no
7451cbc4e2beSmrgfi
7452cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
7453cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
7454cbc4e2beSmrgfi
7455cbc4e2beSmrg
7456cbc4e2beSmrg
7457cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7458cbc4e2beSmrg
7459cbc4e2beSmrg		eval supported=\$$cacheid
7460cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7461cbc4e2beSmrg$as_echo "$supported" >&6; }
7462cbc4e2beSmrg		if test "$supported" = "yes" ; then
7463cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7464cbc4e2beSmrg			found="yes"
7465cbc4e2beSmrg		fi
7466cbc4e2beSmrg	fi
7467cbc4e2beSmrg
7468cbc4e2beSmrg
7469cbc4e2beSmrg
7470cbc4e2beSmrg
7471cbc4e2beSmrg
7472cbc4e2beSmrg
7473cbc4e2beSmrg
7474cbc4e2beSmrg
7475cbc4e2beSmrg
7476cbc4e2beSmrg
7477cbc4e2beSmrg
7478cbc4e2beSmrg
7479cbc4e2beSmrg
7480cbc4e2beSmrg
7481cbc4e2beSmrg
7482cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7483cbc4e2beSmrg
7484cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7485cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7486cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7487cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7488cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7489cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7490cbc4e2beSmrgelse
7491cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492cbc4e2beSmrg/* end confdefs.h.  */
7493cbc4e2beSmrgint i;
7494cbc4e2beSmrg_ACEOF
7495cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7496cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7497cbc4e2beSmrgelse
7498cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7499cbc4e2beSmrgfi
7500cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501cbc4e2beSmrgfi
7502cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7503cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7504cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7505cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7506cbc4e2beSmrgfi
7507cbc4e2beSmrg
7508cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7509cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7510cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7511cbc4e2beSmrg	fi
7512cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7513cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7514cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7515cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7516cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7517cbc4e2beSmrgelse
7518cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519cbc4e2beSmrg/* end confdefs.h.  */
7520cbc4e2beSmrgint i;
7521cbc4e2beSmrg_ACEOF
7522cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7523cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7524cbc4e2beSmrgelse
7525cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7526cbc4e2beSmrgfi
7527cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528cbc4e2beSmrgfi
7529cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7530cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7531cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7532cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7533cbc4e2beSmrgfi
7534cbc4e2beSmrg
7535cbc4e2beSmrgfound="no"
7536cbc4e2beSmrg
7537cbc4e2beSmrg	if test $found = "no" ; then
7538cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7539cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7540cbc4e2beSmrg		fi
7541cbc4e2beSmrg
7542cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7543cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7544cbc4e2beSmrg		fi
7545cbc4e2beSmrg
7546cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=return-type"
7547cbc4e2beSmrg
7548cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7549cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7550cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7551cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
7552cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7553cbc4e2beSmrgelse
7554cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555cbc4e2beSmrg/* end confdefs.h.  */
7556cbc4e2beSmrgint i;
7557cbc4e2beSmrgint
7558cbc4e2beSmrgmain ()
7559cbc4e2beSmrg{
7560cbc4e2beSmrg
7561cbc4e2beSmrg  ;
7562cbc4e2beSmrg  return 0;
7563cbc4e2beSmrg}
7564cbc4e2beSmrg_ACEOF
7565cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
7566cbc4e2beSmrg  eval $cacheid=yes
7567cbc4e2beSmrgelse
7568cbc4e2beSmrg  eval $cacheid=no
7569cbc4e2beSmrgfi
7570cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
7571cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
7572cbc4e2beSmrgfi
7573cbc4e2beSmrg
7574cbc4e2beSmrg
7575cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7576cbc4e2beSmrg
7577cbc4e2beSmrg		eval supported=\$$cacheid
7578cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7579cbc4e2beSmrg$as_echo "$supported" >&6; }
7580cbc4e2beSmrg		if test "$supported" = "yes" ; then
7581cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7582cbc4e2beSmrg			found="yes"
7583cbc4e2beSmrg		fi
7584cbc4e2beSmrg	fi
7585cbc4e2beSmrg
7586cbc4e2beSmrg	if test $found = "no" ; then
7587cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7588cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7589cbc4e2beSmrg		fi
7590cbc4e2beSmrg
7591cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7592cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7593cbc4e2beSmrg		fi
7594cbc4e2beSmrg
7595cbc4e2beSmrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7596cbc4e2beSmrg
7597cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7598cbc4e2beSmrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7599cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7600cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
7601cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7602cbc4e2beSmrgelse
7603cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604cbc4e2beSmrg/* end confdefs.h.  */
7605cbc4e2beSmrgint i;
7606cbc4e2beSmrgint
7607cbc4e2beSmrgmain ()
7608cbc4e2beSmrg{
7609cbc4e2beSmrg
7610cbc4e2beSmrg  ;
7611cbc4e2beSmrg  return 0;
7612cbc4e2beSmrg}
7613cbc4e2beSmrg_ACEOF
7614cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
7615cbc4e2beSmrg  eval $cacheid=yes
7616cbc4e2beSmrgelse
7617cbc4e2beSmrg  eval $cacheid=no
7618cbc4e2beSmrgfi
7619cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
7620cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
7621cbc4e2beSmrgfi
7622cbc4e2beSmrg
7623cbc4e2beSmrg
7624cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7625cbc4e2beSmrg
7626cbc4e2beSmrg		eval supported=\$$cacheid
7627cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7628cbc4e2beSmrg$as_echo "$supported" >&6; }
7629cbc4e2beSmrg		if test "$supported" = "yes" ; then
7630cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7631cbc4e2beSmrg			found="yes"
7632cbc4e2beSmrg		fi
7633cbc4e2beSmrg	fi
7634cbc4e2beSmrg
7635cbc4e2beSmrg
7636cbc4e2beSmrg
7637cbc4e2beSmrg
7638cbc4e2beSmrg
7639cbc4e2beSmrg
7640cbc4e2beSmrg
7641cbc4e2beSmrg
7642cbc4e2beSmrg
7643cbc4e2beSmrg
7644cbc4e2beSmrg
7645cbc4e2beSmrg
7646cbc4e2beSmrg
7647cbc4e2beSmrg
7648cbc4e2beSmrg
7649cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7650cbc4e2beSmrg
7651cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7652cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7653cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7654cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7655cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7656cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7657cbc4e2beSmrgelse
7658cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659cbc4e2beSmrg/* end confdefs.h.  */
7660cbc4e2beSmrgint i;
7661cbc4e2beSmrg_ACEOF
7662cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7663cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7664cbc4e2beSmrgelse
7665cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7666cbc4e2beSmrgfi
7667cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668cbc4e2beSmrgfi
7669cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7670cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7671cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7672cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7673cbc4e2beSmrgfi
7674cbc4e2beSmrg
7675cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7676cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7677cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7678cbc4e2beSmrg	fi
7679cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7680cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7681cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7682cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7683cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7684cbc4e2beSmrgelse
7685cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686cbc4e2beSmrg/* end confdefs.h.  */
7687cbc4e2beSmrgint i;
7688cbc4e2beSmrg_ACEOF
7689cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7690cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7691cbc4e2beSmrgelse
7692cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7693cbc4e2beSmrgfi
7694cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695cbc4e2beSmrgfi
7696cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7697cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7698cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7699cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7700cbc4e2beSmrgfi
7701cbc4e2beSmrg
7702cbc4e2beSmrgfound="no"
7703cbc4e2beSmrg
7704cbc4e2beSmrg	if test $found = "no" ; then
7705cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7706cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7707cbc4e2beSmrg		fi
7708cbc4e2beSmrg
7709cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7710cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711cbc4e2beSmrg		fi
7712cbc4e2beSmrg
7713cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=trigraphs"
7714cbc4e2beSmrg
7715cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7716cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7717cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7718cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
7719cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7720cbc4e2beSmrgelse
7721cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722cbc4e2beSmrg/* end confdefs.h.  */
7723cbc4e2beSmrgint i;
7724cbc4e2beSmrgint
7725cbc4e2beSmrgmain ()
7726cbc4e2beSmrg{
7727cbc4e2beSmrg
7728cbc4e2beSmrg  ;
7729cbc4e2beSmrg  return 0;
7730cbc4e2beSmrg}
7731cbc4e2beSmrg_ACEOF
7732cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
7733cbc4e2beSmrg  eval $cacheid=yes
7734cbc4e2beSmrgelse
7735cbc4e2beSmrg  eval $cacheid=no
7736cbc4e2beSmrgfi
7737cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
7738cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
7739cbc4e2beSmrgfi
7740cbc4e2beSmrg
7741cbc4e2beSmrg
7742cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7743cbc4e2beSmrg
7744cbc4e2beSmrg		eval supported=\$$cacheid
7745cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7746cbc4e2beSmrg$as_echo "$supported" >&6; }
7747cbc4e2beSmrg		if test "$supported" = "yes" ; then
7748cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7749cbc4e2beSmrg			found="yes"
7750cbc4e2beSmrg		fi
7751cbc4e2beSmrg	fi
7752cbc4e2beSmrg
7753cbc4e2beSmrg
7754cbc4e2beSmrg
7755cbc4e2beSmrg
7756cbc4e2beSmrg
7757cbc4e2beSmrg
7758cbc4e2beSmrg
7759cbc4e2beSmrg
7760cbc4e2beSmrg
7761cbc4e2beSmrg
7762cbc4e2beSmrg
7763cbc4e2beSmrg
7764cbc4e2beSmrg
7765cbc4e2beSmrg
7766cbc4e2beSmrg
7767cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7768cbc4e2beSmrg
7769cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7770cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7771cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7772cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7773cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7774cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7775cbc4e2beSmrgelse
7776cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777cbc4e2beSmrg/* end confdefs.h.  */
7778cbc4e2beSmrgint i;
7779cbc4e2beSmrg_ACEOF
7780cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7781cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7782cbc4e2beSmrgelse
7783cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7784cbc4e2beSmrgfi
7785cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786cbc4e2beSmrgfi
7787cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7788cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7789cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7790cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7791cbc4e2beSmrgfi
7792cbc4e2beSmrg
7793cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7794cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7795cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7796cbc4e2beSmrg	fi
7797cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7798cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7799cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7800cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7801cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7802cbc4e2beSmrgelse
7803cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804cbc4e2beSmrg/* end confdefs.h.  */
7805cbc4e2beSmrgint i;
7806cbc4e2beSmrg_ACEOF
7807cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7808cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7809cbc4e2beSmrgelse
7810cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7811cbc4e2beSmrgfi
7812cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813cbc4e2beSmrgfi
7814cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7815cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7816cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7817cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7818cbc4e2beSmrgfi
7819cbc4e2beSmrg
7820cbc4e2beSmrgfound="no"
7821cbc4e2beSmrg
7822cbc4e2beSmrg	if test $found = "no" ; then
7823cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7824cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7825cbc4e2beSmrg		fi
7826cbc4e2beSmrg
7827cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7828cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7829cbc4e2beSmrg		fi
7830cbc4e2beSmrg
7831cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=array-bounds"
7832cbc4e2beSmrg
7833cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7834cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7835cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7836cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
7837cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7838cbc4e2beSmrgelse
7839cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840cbc4e2beSmrg/* end confdefs.h.  */
7841cbc4e2beSmrgint i;
7842cbc4e2beSmrgint
7843cbc4e2beSmrgmain ()
7844cbc4e2beSmrg{
7845cbc4e2beSmrg
7846cbc4e2beSmrg  ;
7847cbc4e2beSmrg  return 0;
7848cbc4e2beSmrg}
7849cbc4e2beSmrg_ACEOF
7850cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
7851cbc4e2beSmrg  eval $cacheid=yes
7852cbc4e2beSmrgelse
7853cbc4e2beSmrg  eval $cacheid=no
7854cbc4e2beSmrgfi
7855cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
7856cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
7857cbc4e2beSmrgfi
7858cbc4e2beSmrg
7859cbc4e2beSmrg
7860cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7861cbc4e2beSmrg
7862cbc4e2beSmrg		eval supported=\$$cacheid
7863cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7864cbc4e2beSmrg$as_echo "$supported" >&6; }
7865cbc4e2beSmrg		if test "$supported" = "yes" ; then
7866cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7867cbc4e2beSmrg			found="yes"
7868cbc4e2beSmrg		fi
7869cbc4e2beSmrg	fi
7870cbc4e2beSmrg
7871cbc4e2beSmrg
7872cbc4e2beSmrg
7873cbc4e2beSmrg
7874cbc4e2beSmrg
7875cbc4e2beSmrg
7876cbc4e2beSmrg
7877cbc4e2beSmrg
7878cbc4e2beSmrg
7879cbc4e2beSmrg
7880cbc4e2beSmrg
7881cbc4e2beSmrg
7882cbc4e2beSmrg
7883cbc4e2beSmrg
7884cbc4e2beSmrg
7885cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7886cbc4e2beSmrg
7887cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7888cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7890cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7891cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7892cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7893cbc4e2beSmrgelse
7894cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895cbc4e2beSmrg/* end confdefs.h.  */
7896cbc4e2beSmrgint i;
7897cbc4e2beSmrg_ACEOF
7898cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7899cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7900cbc4e2beSmrgelse
7901cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7902cbc4e2beSmrgfi
7903cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7904cbc4e2beSmrgfi
7905cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7906cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7907cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7908cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7909cbc4e2beSmrgfi
7910cbc4e2beSmrg
7911cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7912cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7913cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7914cbc4e2beSmrg	fi
7915cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7916cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7917cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7918cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7919cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7920cbc4e2beSmrgelse
7921cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922cbc4e2beSmrg/* end confdefs.h.  */
7923cbc4e2beSmrgint i;
7924cbc4e2beSmrg_ACEOF
7925cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
7926cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7927cbc4e2beSmrgelse
7928cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7929cbc4e2beSmrgfi
7930cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7931cbc4e2beSmrgfi
7932cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7933cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7934cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7935cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7936cbc4e2beSmrgfi
7937cbc4e2beSmrg
7938cbc4e2beSmrgfound="no"
7939cbc4e2beSmrg
7940cbc4e2beSmrg	if test $found = "no" ; then
7941cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7942cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7943cbc4e2beSmrg		fi
7944cbc4e2beSmrg
7945cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7946cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7947cbc4e2beSmrg		fi
7948cbc4e2beSmrg
7949cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=write-strings"
7950cbc4e2beSmrg
7951cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7952cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7953cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7954cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
7955cbc4e2beSmrg  $as_echo_n "(cached) " >&6
7956cbc4e2beSmrgelse
7957cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958cbc4e2beSmrg/* end confdefs.h.  */
7959cbc4e2beSmrgint i;
7960cbc4e2beSmrgint
7961cbc4e2beSmrgmain ()
7962cbc4e2beSmrg{
7963cbc4e2beSmrg
7964cbc4e2beSmrg  ;
7965cbc4e2beSmrg  return 0;
7966cbc4e2beSmrg}
7967cbc4e2beSmrg_ACEOF
7968cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
7969cbc4e2beSmrg  eval $cacheid=yes
7970cbc4e2beSmrgelse
7971cbc4e2beSmrg  eval $cacheid=no
7972cbc4e2beSmrgfi
7973cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
7974cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
7975cbc4e2beSmrgfi
7976cbc4e2beSmrg
7977cbc4e2beSmrg
7978cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7979cbc4e2beSmrg
7980cbc4e2beSmrg		eval supported=\$$cacheid
7981cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7982cbc4e2beSmrg$as_echo "$supported" >&6; }
7983cbc4e2beSmrg		if test "$supported" = "yes" ; then
7984cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7985cbc4e2beSmrg			found="yes"
7986cbc4e2beSmrg		fi
7987cbc4e2beSmrg	fi
7988cbc4e2beSmrg
7989cbc4e2beSmrg
7990cbc4e2beSmrg
7991cbc4e2beSmrg
7992cbc4e2beSmrg
7993cbc4e2beSmrg
7994cbc4e2beSmrg
7995cbc4e2beSmrg
7996cbc4e2beSmrg
7997cbc4e2beSmrg
7998cbc4e2beSmrg
7999cbc4e2beSmrg
8000cbc4e2beSmrg
8001cbc4e2beSmrg
8002cbc4e2beSmrg
8003cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8004cbc4e2beSmrg
8005cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8006cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8007cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8008cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8009cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8010cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8011cbc4e2beSmrgelse
8012cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013cbc4e2beSmrg/* end confdefs.h.  */
8014cbc4e2beSmrgint i;
8015cbc4e2beSmrg_ACEOF
8016cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8017cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8018cbc4e2beSmrgelse
8019cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8020cbc4e2beSmrgfi
8021cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022cbc4e2beSmrgfi
8023cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8024cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8025cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8026cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8027cbc4e2beSmrgfi
8028cbc4e2beSmrg
8029cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8030cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8031cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8032cbc4e2beSmrg	fi
8033cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8034cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8035cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8036cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8037cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8038cbc4e2beSmrgelse
8039cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040cbc4e2beSmrg/* end confdefs.h.  */
8041cbc4e2beSmrgint i;
8042cbc4e2beSmrg_ACEOF
8043cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8044cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8045cbc4e2beSmrgelse
8046cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8047cbc4e2beSmrgfi
8048cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8049cbc4e2beSmrgfi
8050cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8051cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8052cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8053cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8054cbc4e2beSmrgfi
8055cbc4e2beSmrg
8056cbc4e2beSmrgfound="no"
8057cbc4e2beSmrg
8058cbc4e2beSmrg	if test $found = "no" ; then
8059cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8060cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8061cbc4e2beSmrg		fi
8062cbc4e2beSmrg
8063cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8064cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8065cbc4e2beSmrg		fi
8066cbc4e2beSmrg
8067cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=address"
8068cbc4e2beSmrg
8069cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8070cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8071cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8072cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
8073cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8074cbc4e2beSmrgelse
8075cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076cbc4e2beSmrg/* end confdefs.h.  */
8077cbc4e2beSmrgint i;
8078cbc4e2beSmrgint
8079cbc4e2beSmrgmain ()
8080cbc4e2beSmrg{
8081cbc4e2beSmrg
8082cbc4e2beSmrg  ;
8083cbc4e2beSmrg  return 0;
8084cbc4e2beSmrg}
8085cbc4e2beSmrg_ACEOF
8086cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
8087cbc4e2beSmrg  eval $cacheid=yes
8088cbc4e2beSmrgelse
8089cbc4e2beSmrg  eval $cacheid=no
8090cbc4e2beSmrgfi
8091cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
8092cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
8093cbc4e2beSmrgfi
8094cbc4e2beSmrg
8095cbc4e2beSmrg
8096cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8097cbc4e2beSmrg
8098cbc4e2beSmrg		eval supported=\$$cacheid
8099cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8100cbc4e2beSmrg$as_echo "$supported" >&6; }
8101cbc4e2beSmrg		if test "$supported" = "yes" ; then
8102cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8103cbc4e2beSmrg			found="yes"
8104cbc4e2beSmrg		fi
8105cbc4e2beSmrg	fi
8106cbc4e2beSmrg
8107cbc4e2beSmrg
8108cbc4e2beSmrg
8109cbc4e2beSmrg
8110cbc4e2beSmrg
8111cbc4e2beSmrg
8112cbc4e2beSmrg
8113cbc4e2beSmrg
8114cbc4e2beSmrg
8115cbc4e2beSmrg
8116cbc4e2beSmrg
8117cbc4e2beSmrg
8118cbc4e2beSmrg
8119cbc4e2beSmrg
8120cbc4e2beSmrg
8121cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8122cbc4e2beSmrg
8123cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8124cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8125cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8126cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8127cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8128cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8129cbc4e2beSmrgelse
8130cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131cbc4e2beSmrg/* end confdefs.h.  */
8132cbc4e2beSmrgint i;
8133cbc4e2beSmrg_ACEOF
8134cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8135cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8136cbc4e2beSmrgelse
8137cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8138cbc4e2beSmrgfi
8139cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140cbc4e2beSmrgfi
8141cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8142cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8143cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8144cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8145cbc4e2beSmrgfi
8146cbc4e2beSmrg
8147cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8148cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8149cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8150cbc4e2beSmrg	fi
8151cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8152cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8153cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8154cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8155cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8156cbc4e2beSmrgelse
8157cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158cbc4e2beSmrg/* end confdefs.h.  */
8159cbc4e2beSmrgint i;
8160cbc4e2beSmrg_ACEOF
8161cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8162cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8163cbc4e2beSmrgelse
8164cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8165cbc4e2beSmrgfi
8166cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8167cbc4e2beSmrgfi
8168cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8169cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8170cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8171cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8172cbc4e2beSmrgfi
8173cbc4e2beSmrg
8174cbc4e2beSmrgfound="no"
8175cbc4e2beSmrg
8176cbc4e2beSmrg	if test $found = "no" ; then
8177cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8178cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8179cbc4e2beSmrg		fi
8180cbc4e2beSmrg
8181cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8182cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8183cbc4e2beSmrg		fi
8184cbc4e2beSmrg
8185cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8186cbc4e2beSmrg
8187cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8188cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8189cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8190cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
8191cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8192cbc4e2beSmrgelse
8193cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194cbc4e2beSmrg/* end confdefs.h.  */
8195cbc4e2beSmrgint i;
8196cbc4e2beSmrgint
8197cbc4e2beSmrgmain ()
8198cbc4e2beSmrg{
8199cbc4e2beSmrg
8200cbc4e2beSmrg  ;
8201cbc4e2beSmrg  return 0;
8202cbc4e2beSmrg}
8203cbc4e2beSmrg_ACEOF
8204cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
8205cbc4e2beSmrg  eval $cacheid=yes
8206cbc4e2beSmrgelse
8207cbc4e2beSmrg  eval $cacheid=no
8208cbc4e2beSmrgfi
8209cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
8210cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
8211cbc4e2beSmrgfi
8212cbc4e2beSmrg
8213cbc4e2beSmrg
8214cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8215cbc4e2beSmrg
8216cbc4e2beSmrg		eval supported=\$$cacheid
8217cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8218cbc4e2beSmrg$as_echo "$supported" >&6; }
8219cbc4e2beSmrg		if test "$supported" = "yes" ; then
8220cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8221cbc4e2beSmrg			found="yes"
8222cbc4e2beSmrg		fi
8223cbc4e2beSmrg	fi
8224cbc4e2beSmrg
8225cbc4e2beSmrg	if test $found = "no" ; then
8226cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8227cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8228cbc4e2beSmrg		fi
8229cbc4e2beSmrg
8230cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8231cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8232cbc4e2beSmrg		fi
8233cbc4e2beSmrg
8234cbc4e2beSmrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8235cbc4e2beSmrg
8236cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8237cbc4e2beSmrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8238cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8239cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
8240cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8241cbc4e2beSmrgelse
8242cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243cbc4e2beSmrg/* end confdefs.h.  */
8244cbc4e2beSmrgint i;
8245cbc4e2beSmrgint
8246cbc4e2beSmrgmain ()
8247cbc4e2beSmrg{
8248cbc4e2beSmrg
8249cbc4e2beSmrg  ;
8250cbc4e2beSmrg  return 0;
8251cbc4e2beSmrg}
8252cbc4e2beSmrg_ACEOF
8253cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
8254cbc4e2beSmrg  eval $cacheid=yes
8255cbc4e2beSmrgelse
8256cbc4e2beSmrg  eval $cacheid=no
8257cbc4e2beSmrgfi
8258cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
8259cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
8260cbc4e2beSmrgfi
8261cbc4e2beSmrg
8262cbc4e2beSmrg
8263cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8264cbc4e2beSmrg
8265cbc4e2beSmrg		eval supported=\$$cacheid
8266cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8267cbc4e2beSmrg$as_echo "$supported" >&6; }
8268cbc4e2beSmrg		if test "$supported" = "yes" ; then
8269cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8270cbc4e2beSmrg			found="yes"
8271cbc4e2beSmrg		fi
8272cbc4e2beSmrg	fi
8273cbc4e2beSmrg
8274cbc4e2beSmrg
8275cbc4e2beSmrg
8276cbc4e2beSmrg
8277cbc4e2beSmrg
8278cbc4e2beSmrg
8279cbc4e2beSmrg
8280cbc4e2beSmrg
8281cbc4e2beSmrg
8282cbc4e2beSmrg
8283cbc4e2beSmrg
8284cbc4e2beSmrg
8285cbc4e2beSmrg
8286cbc4e2beSmrg
8287cbc4e2beSmrg
8288cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8289cbc4e2beSmrg
8290cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8291cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8292cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8293cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8294cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8295cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8296cbc4e2beSmrgelse
8297cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298cbc4e2beSmrg/* end confdefs.h.  */
8299cbc4e2beSmrgint i;
8300cbc4e2beSmrg_ACEOF
8301cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8302cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8303cbc4e2beSmrgelse
8304cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8305cbc4e2beSmrgfi
8306cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307cbc4e2beSmrgfi
8308cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8309cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8310cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8311cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8312cbc4e2beSmrgfi
8313cbc4e2beSmrg
8314cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8315cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8316cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8317cbc4e2beSmrg	fi
8318cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8319cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8320cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8321cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8322cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8323cbc4e2beSmrgelse
8324cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325cbc4e2beSmrg/* end confdefs.h.  */
8326cbc4e2beSmrgint i;
8327cbc4e2beSmrg_ACEOF
8328cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8329cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8330cbc4e2beSmrgelse
8331cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8332cbc4e2beSmrgfi
8333cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334cbc4e2beSmrgfi
8335cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8336cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8337cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8338cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8339cbc4e2beSmrgfi
8340cbc4e2beSmrg
8341cbc4e2beSmrgfound="no"
8342cbc4e2beSmrg
8343cbc4e2beSmrg	if test $found = "no" ; then
8344cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8345cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8346cbc4e2beSmrg		fi
8347cbc4e2beSmrg
8348cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8349cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8350cbc4e2beSmrg		fi
8351cbc4e2beSmrg
8352cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8353cbc4e2beSmrg
8354cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8355cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8356cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8357cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
8358cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8359cbc4e2beSmrgelse
8360cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361cbc4e2beSmrg/* end confdefs.h.  */
8362cbc4e2beSmrgint i;
8363cbc4e2beSmrgint
8364cbc4e2beSmrgmain ()
8365cbc4e2beSmrg{
8366cbc4e2beSmrg
8367cbc4e2beSmrg  ;
8368cbc4e2beSmrg  return 0;
8369cbc4e2beSmrg}
8370cbc4e2beSmrg_ACEOF
8371cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
8372cbc4e2beSmrg  eval $cacheid=yes
8373cbc4e2beSmrgelse
8374cbc4e2beSmrg  eval $cacheid=no
8375cbc4e2beSmrgfi
8376cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
8377cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
8378cbc4e2beSmrgfi
8379cbc4e2beSmrg
8380cbc4e2beSmrg
8381cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8382cbc4e2beSmrg
8383cbc4e2beSmrg		eval supported=\$$cacheid
8384cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8385cbc4e2beSmrg$as_echo "$supported" >&6; }
8386cbc4e2beSmrg		if test "$supported" = "yes" ; then
8387cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8388cbc4e2beSmrg			found="yes"
8389cbc4e2beSmrg		fi
8390cbc4e2beSmrg	fi
8391cbc4e2beSmrg
8392cbc4e2beSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8393cbc4e2beSmrgelse
8394cbc4e2beSmrg{ $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
8395cbc4e2beSmrg$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;}
8396cbc4e2beSmrg
8397cbc4e2beSmrg
8398cbc4e2beSmrg
8399cbc4e2beSmrg
8400cbc4e2beSmrg
8401cbc4e2beSmrg
8402cbc4e2beSmrg
8403cbc4e2beSmrg
8404cbc4e2beSmrg
8405cbc4e2beSmrg
8406cbc4e2beSmrg
8407cbc4e2beSmrg
8408cbc4e2beSmrg
8409cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8410cbc4e2beSmrg
8411cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8412cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8413cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8414cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8415cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8416cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8417cbc4e2beSmrgelse
8418cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419cbc4e2beSmrg/* end confdefs.h.  */
8420cbc4e2beSmrgint i;
8421cbc4e2beSmrg_ACEOF
8422cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8423cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8424cbc4e2beSmrgelse
8425cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8426cbc4e2beSmrgfi
8427cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428cbc4e2beSmrgfi
8429cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8430cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8431cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8432cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8433cbc4e2beSmrgfi
8434cbc4e2beSmrg
8435cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8436cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8437cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8438cbc4e2beSmrg	fi
8439cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8440cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8441cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8442cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8443cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8444cbc4e2beSmrgelse
8445cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446cbc4e2beSmrg/* end confdefs.h.  */
8447cbc4e2beSmrgint i;
8448cbc4e2beSmrg_ACEOF
8449cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8450cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8451cbc4e2beSmrgelse
8452cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8453cbc4e2beSmrgfi
8454cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455cbc4e2beSmrgfi
8456cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8457cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8458cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8459cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8460cbc4e2beSmrgfi
8461cbc4e2beSmrg
8462cbc4e2beSmrgfound="no"
8463cbc4e2beSmrg
8464cbc4e2beSmrg	if test $found = "no" ; then
8465cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8466cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8467cbc4e2beSmrg		fi
8468cbc4e2beSmrg
8469cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8470cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8471cbc4e2beSmrg		fi
8472cbc4e2beSmrg
8473cbc4e2beSmrg		CFLAGS="$CFLAGS -Wimplicit"
8474cbc4e2beSmrg
8475cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8476cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8477cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wimplicit
8478cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
8479cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8480cbc4e2beSmrgelse
8481cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482cbc4e2beSmrg/* end confdefs.h.  */
8483cbc4e2beSmrgint i;
8484cbc4e2beSmrgint
8485cbc4e2beSmrgmain ()
8486cbc4e2beSmrg{
8487cbc4e2beSmrg
8488cbc4e2beSmrg  ;
8489cbc4e2beSmrg  return 0;
8490cbc4e2beSmrg}
8491cbc4e2beSmrg_ACEOF
8492cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
8493cbc4e2beSmrg  eval $cacheid=yes
8494cbc4e2beSmrgelse
8495cbc4e2beSmrg  eval $cacheid=no
8496cbc4e2beSmrgfi
8497cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
8498cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
8499cbc4e2beSmrgfi
8500cbc4e2beSmrg
8501cbc4e2beSmrg
8502cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8503cbc4e2beSmrg
8504cbc4e2beSmrg		eval supported=\$$cacheid
8505cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8506cbc4e2beSmrg$as_echo "$supported" >&6; }
8507cbc4e2beSmrg		if test "$supported" = "yes" ; then
8508cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8509cbc4e2beSmrg			found="yes"
8510cbc4e2beSmrg		fi
8511cbc4e2beSmrg	fi
8512cbc4e2beSmrg
8513cbc4e2beSmrg
8514cbc4e2beSmrg
8515cbc4e2beSmrg
8516cbc4e2beSmrg
8517cbc4e2beSmrg
8518cbc4e2beSmrg
8519cbc4e2beSmrg
8520cbc4e2beSmrg
8521cbc4e2beSmrg
8522cbc4e2beSmrg
8523cbc4e2beSmrg
8524cbc4e2beSmrg
8525cbc4e2beSmrg
8526cbc4e2beSmrg
8527cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8528cbc4e2beSmrg
8529cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8530cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8531cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8532cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8533cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8534cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8535cbc4e2beSmrgelse
8536cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537cbc4e2beSmrg/* end confdefs.h.  */
8538cbc4e2beSmrgint i;
8539cbc4e2beSmrg_ACEOF
8540cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8541cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8542cbc4e2beSmrgelse
8543cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8544cbc4e2beSmrgfi
8545cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546cbc4e2beSmrgfi
8547cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8548cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8549cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8550cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8551cbc4e2beSmrgfi
8552cbc4e2beSmrg
8553cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8554cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8555cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8556cbc4e2beSmrg	fi
8557cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8558cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8559cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8560cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8561cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8562cbc4e2beSmrgelse
8563cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564cbc4e2beSmrg/* end confdefs.h.  */
8565cbc4e2beSmrgint i;
8566cbc4e2beSmrg_ACEOF
8567cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8568cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8569cbc4e2beSmrgelse
8570cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8571cbc4e2beSmrgfi
8572cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8573cbc4e2beSmrgfi
8574cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8575cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8576cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8577cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8578cbc4e2beSmrgfi
8579cbc4e2beSmrg
8580cbc4e2beSmrgfound="no"
8581cbc4e2beSmrg
8582cbc4e2beSmrg	if test $found = "no" ; then
8583cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8584cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8585cbc4e2beSmrg		fi
8586cbc4e2beSmrg
8587cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8588cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8589cbc4e2beSmrg		fi
8590cbc4e2beSmrg
8591cbc4e2beSmrg		CFLAGS="$CFLAGS -Wnonnull"
8592cbc4e2beSmrg
8593cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8594cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8595cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wnonnull
8596cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
8597cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8598cbc4e2beSmrgelse
8599cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600cbc4e2beSmrg/* end confdefs.h.  */
8601cbc4e2beSmrgint i;
8602cbc4e2beSmrgint
8603cbc4e2beSmrgmain ()
8604cbc4e2beSmrg{
8605cbc4e2beSmrg
8606cbc4e2beSmrg  ;
8607cbc4e2beSmrg  return 0;
8608cbc4e2beSmrg}
8609cbc4e2beSmrg_ACEOF
8610cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
8611cbc4e2beSmrg  eval $cacheid=yes
8612cbc4e2beSmrgelse
8613cbc4e2beSmrg  eval $cacheid=no
8614cbc4e2beSmrgfi
8615cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
8616cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
8617cbc4e2beSmrgfi
8618cbc4e2beSmrg
8619cbc4e2beSmrg
8620cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8621cbc4e2beSmrg
8622cbc4e2beSmrg		eval supported=\$$cacheid
8623cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8624cbc4e2beSmrg$as_echo "$supported" >&6; }
8625cbc4e2beSmrg		if test "$supported" = "yes" ; then
8626cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8627cbc4e2beSmrg			found="yes"
8628cbc4e2beSmrg		fi
8629cbc4e2beSmrg	fi
8630cbc4e2beSmrg
8631cbc4e2beSmrg
8632cbc4e2beSmrg
8633cbc4e2beSmrg
8634cbc4e2beSmrg
8635cbc4e2beSmrg
8636cbc4e2beSmrg
8637cbc4e2beSmrg
8638cbc4e2beSmrg
8639cbc4e2beSmrg
8640cbc4e2beSmrg
8641cbc4e2beSmrg
8642cbc4e2beSmrg
8643cbc4e2beSmrg
8644cbc4e2beSmrg
8645cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8646cbc4e2beSmrg
8647cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8648cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8649cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8650cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8651cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8652cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8653cbc4e2beSmrgelse
8654cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655cbc4e2beSmrg/* end confdefs.h.  */
8656cbc4e2beSmrgint i;
8657cbc4e2beSmrg_ACEOF
8658cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8659cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8660cbc4e2beSmrgelse
8661cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8662cbc4e2beSmrgfi
8663cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8664cbc4e2beSmrgfi
8665cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8666cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8667cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8668cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8669cbc4e2beSmrgfi
8670cbc4e2beSmrg
8671cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8672cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8673cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8674cbc4e2beSmrg	fi
8675cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8676cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8677cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8678cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8679cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8680cbc4e2beSmrgelse
8681cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8682cbc4e2beSmrg/* end confdefs.h.  */
8683cbc4e2beSmrgint i;
8684cbc4e2beSmrg_ACEOF
8685cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8686cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8687cbc4e2beSmrgelse
8688cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8689cbc4e2beSmrgfi
8690cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8691cbc4e2beSmrgfi
8692cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8693cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8694cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8695cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8696cbc4e2beSmrgfi
8697cbc4e2beSmrg
8698cbc4e2beSmrgfound="no"
8699cbc4e2beSmrg
8700cbc4e2beSmrg	if test $found = "no" ; then
8701cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8702cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8703cbc4e2beSmrg		fi
8704cbc4e2beSmrg
8705cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8706cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8707cbc4e2beSmrg		fi
8708cbc4e2beSmrg
8709cbc4e2beSmrg		CFLAGS="$CFLAGS -Winit-self"
8710cbc4e2beSmrg
8711cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8712cbc4e2beSmrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8713cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Winit_self
8714cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
8715cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8716cbc4e2beSmrgelse
8717cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718cbc4e2beSmrg/* end confdefs.h.  */
8719cbc4e2beSmrgint i;
8720cbc4e2beSmrgint
8721cbc4e2beSmrgmain ()
8722cbc4e2beSmrg{
8723cbc4e2beSmrg
8724cbc4e2beSmrg  ;
8725cbc4e2beSmrg  return 0;
8726cbc4e2beSmrg}
8727cbc4e2beSmrg_ACEOF
8728cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
8729cbc4e2beSmrg  eval $cacheid=yes
8730cbc4e2beSmrgelse
8731cbc4e2beSmrg  eval $cacheid=no
8732cbc4e2beSmrgfi
8733cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
8734cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
8735cbc4e2beSmrgfi
8736cbc4e2beSmrg
8737cbc4e2beSmrg
8738cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8739cbc4e2beSmrg
8740cbc4e2beSmrg		eval supported=\$$cacheid
8741cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8742cbc4e2beSmrg$as_echo "$supported" >&6; }
8743cbc4e2beSmrg		if test "$supported" = "yes" ; then
8744cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8745cbc4e2beSmrg			found="yes"
8746cbc4e2beSmrg		fi
8747cbc4e2beSmrg	fi
8748cbc4e2beSmrg
8749cbc4e2beSmrg
8750cbc4e2beSmrg
8751cbc4e2beSmrg
8752cbc4e2beSmrg
8753cbc4e2beSmrg
8754cbc4e2beSmrg
8755cbc4e2beSmrg
8756cbc4e2beSmrg
8757cbc4e2beSmrg
8758cbc4e2beSmrg
8759cbc4e2beSmrg
8760cbc4e2beSmrg
8761cbc4e2beSmrg
8762cbc4e2beSmrg
8763cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8764cbc4e2beSmrg
8765cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8766cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8767cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8768cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8769cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8770cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8771cbc4e2beSmrgelse
8772cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773cbc4e2beSmrg/* end confdefs.h.  */
8774cbc4e2beSmrgint i;
8775cbc4e2beSmrg_ACEOF
8776cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8777cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8778cbc4e2beSmrgelse
8779cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8780cbc4e2beSmrgfi
8781cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8782cbc4e2beSmrgfi
8783cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8784cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8785cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8786cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8787cbc4e2beSmrgfi
8788cbc4e2beSmrg
8789cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8790cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8791cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8792cbc4e2beSmrg	fi
8793cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8794cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8795cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8796cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8797cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8798cbc4e2beSmrgelse
8799cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800cbc4e2beSmrg/* end confdefs.h.  */
8801cbc4e2beSmrgint i;
8802cbc4e2beSmrg_ACEOF
8803cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8804cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8805cbc4e2beSmrgelse
8806cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8807cbc4e2beSmrgfi
8808cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8809cbc4e2beSmrgfi
8810cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8811cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8812cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8813cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8814cbc4e2beSmrgfi
8815cbc4e2beSmrg
8816cbc4e2beSmrgfound="no"
8817cbc4e2beSmrg
8818cbc4e2beSmrg	if test $found = "no" ; then
8819cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8820cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8821cbc4e2beSmrg		fi
8822cbc4e2beSmrg
8823cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8824cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8825cbc4e2beSmrg		fi
8826cbc4e2beSmrg
8827cbc4e2beSmrg		CFLAGS="$CFLAGS -Wmain"
8828cbc4e2beSmrg
8829cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8830cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8831cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wmain
8832cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
8833cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8834cbc4e2beSmrgelse
8835cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836cbc4e2beSmrg/* end confdefs.h.  */
8837cbc4e2beSmrgint i;
8838cbc4e2beSmrgint
8839cbc4e2beSmrgmain ()
8840cbc4e2beSmrg{
8841cbc4e2beSmrg
8842cbc4e2beSmrg  ;
8843cbc4e2beSmrg  return 0;
8844cbc4e2beSmrg}
8845cbc4e2beSmrg_ACEOF
8846cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
8847cbc4e2beSmrg  eval $cacheid=yes
8848cbc4e2beSmrgelse
8849cbc4e2beSmrg  eval $cacheid=no
8850cbc4e2beSmrgfi
8851cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
8852cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
8853cbc4e2beSmrgfi
8854cbc4e2beSmrg
8855cbc4e2beSmrg
8856cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8857cbc4e2beSmrg
8858cbc4e2beSmrg		eval supported=\$$cacheid
8859cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8860cbc4e2beSmrg$as_echo "$supported" >&6; }
8861cbc4e2beSmrg		if test "$supported" = "yes" ; then
8862cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8863cbc4e2beSmrg			found="yes"
8864cbc4e2beSmrg		fi
8865cbc4e2beSmrg	fi
8866cbc4e2beSmrg
8867cbc4e2beSmrg
8868cbc4e2beSmrg
8869cbc4e2beSmrg
8870cbc4e2beSmrg
8871cbc4e2beSmrg
8872cbc4e2beSmrg
8873cbc4e2beSmrg
8874cbc4e2beSmrg
8875cbc4e2beSmrg
8876cbc4e2beSmrg
8877cbc4e2beSmrg
8878cbc4e2beSmrg
8879cbc4e2beSmrg
8880cbc4e2beSmrg
8881cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8882cbc4e2beSmrg
8883cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8884cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8885cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8886cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8887cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8888cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8889cbc4e2beSmrgelse
8890cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891cbc4e2beSmrg/* end confdefs.h.  */
8892cbc4e2beSmrgint i;
8893cbc4e2beSmrg_ACEOF
8894cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8895cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8896cbc4e2beSmrgelse
8897cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8898cbc4e2beSmrgfi
8899cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8900cbc4e2beSmrgfi
8901cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8902cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8903cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8904cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8905cbc4e2beSmrgfi
8906cbc4e2beSmrg
8907cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8908cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8909cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8910cbc4e2beSmrg	fi
8911cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8912cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8913cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8914cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8915cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8916cbc4e2beSmrgelse
8917cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918cbc4e2beSmrg/* end confdefs.h.  */
8919cbc4e2beSmrgint i;
8920cbc4e2beSmrg_ACEOF
8921cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
8922cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8923cbc4e2beSmrgelse
8924cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8925cbc4e2beSmrgfi
8926cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8927cbc4e2beSmrgfi
8928cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8929cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8930cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8931cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8932cbc4e2beSmrgfi
8933cbc4e2beSmrg
8934cbc4e2beSmrgfound="no"
8935cbc4e2beSmrg
8936cbc4e2beSmrg	if test $found = "no" ; then
8937cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8938cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8939cbc4e2beSmrg		fi
8940cbc4e2beSmrg
8941cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8942cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8943cbc4e2beSmrg		fi
8944cbc4e2beSmrg
8945cbc4e2beSmrg		CFLAGS="$CFLAGS -Wmissing-braces"
8946cbc4e2beSmrg
8947cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8948cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8949cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
8950cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
8951cbc4e2beSmrg  $as_echo_n "(cached) " >&6
8952cbc4e2beSmrgelse
8953cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954cbc4e2beSmrg/* end confdefs.h.  */
8955cbc4e2beSmrgint i;
8956cbc4e2beSmrgint
8957cbc4e2beSmrgmain ()
8958cbc4e2beSmrg{
8959cbc4e2beSmrg
8960cbc4e2beSmrg  ;
8961cbc4e2beSmrg  return 0;
8962cbc4e2beSmrg}
8963cbc4e2beSmrg_ACEOF
8964cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
8965cbc4e2beSmrg  eval $cacheid=yes
8966cbc4e2beSmrgelse
8967cbc4e2beSmrg  eval $cacheid=no
8968cbc4e2beSmrgfi
8969cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
8970cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
8971cbc4e2beSmrgfi
8972cbc4e2beSmrg
8973cbc4e2beSmrg
8974cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8975cbc4e2beSmrg
8976cbc4e2beSmrg		eval supported=\$$cacheid
8977cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8978cbc4e2beSmrg$as_echo "$supported" >&6; }
8979cbc4e2beSmrg		if test "$supported" = "yes" ; then
8980cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8981cbc4e2beSmrg			found="yes"
8982cbc4e2beSmrg		fi
8983cbc4e2beSmrg	fi
8984cbc4e2beSmrg
8985cbc4e2beSmrg
8986cbc4e2beSmrg
8987cbc4e2beSmrg
8988cbc4e2beSmrg
8989cbc4e2beSmrg
8990cbc4e2beSmrg
8991cbc4e2beSmrg
8992cbc4e2beSmrg
8993cbc4e2beSmrg
8994cbc4e2beSmrg
8995cbc4e2beSmrg
8996cbc4e2beSmrg
8997cbc4e2beSmrg
8998cbc4e2beSmrg
8999cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9000cbc4e2beSmrg
9001cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9002cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9003cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9004cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9005cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9006cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9007cbc4e2beSmrgelse
9008cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009cbc4e2beSmrg/* end confdefs.h.  */
9010cbc4e2beSmrgint i;
9011cbc4e2beSmrg_ACEOF
9012cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9013cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9014cbc4e2beSmrgelse
9015cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9016cbc4e2beSmrgfi
9017cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018cbc4e2beSmrgfi
9019cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9020cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9021cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9022cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9023cbc4e2beSmrgfi
9024cbc4e2beSmrg
9025cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9026cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9027cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9028cbc4e2beSmrg	fi
9029cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9030cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9031cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9032cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9033cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9034cbc4e2beSmrgelse
9035cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036cbc4e2beSmrg/* end confdefs.h.  */
9037cbc4e2beSmrgint i;
9038cbc4e2beSmrg_ACEOF
9039cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9040cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9041cbc4e2beSmrgelse
9042cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9043cbc4e2beSmrgfi
9044cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9045cbc4e2beSmrgfi
9046cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9047cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9048cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9049cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9050cbc4e2beSmrgfi
9051cbc4e2beSmrg
9052cbc4e2beSmrgfound="no"
9053cbc4e2beSmrg
9054cbc4e2beSmrg	if test $found = "no" ; then
9055cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9056cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9057cbc4e2beSmrg		fi
9058cbc4e2beSmrg
9059cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9060cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9061cbc4e2beSmrg		fi
9062cbc4e2beSmrg
9063cbc4e2beSmrg		CFLAGS="$CFLAGS -Wsequence-point"
9064cbc4e2beSmrg
9065cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9066cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9067cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wsequence_point
9068cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
9069cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9070cbc4e2beSmrgelse
9071cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072cbc4e2beSmrg/* end confdefs.h.  */
9073cbc4e2beSmrgint i;
9074cbc4e2beSmrgint
9075cbc4e2beSmrgmain ()
9076cbc4e2beSmrg{
9077cbc4e2beSmrg
9078cbc4e2beSmrg  ;
9079cbc4e2beSmrg  return 0;
9080cbc4e2beSmrg}
9081cbc4e2beSmrg_ACEOF
9082cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
9083cbc4e2beSmrg  eval $cacheid=yes
9084cbc4e2beSmrgelse
9085cbc4e2beSmrg  eval $cacheid=no
9086cbc4e2beSmrgfi
9087cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
9088cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
9089cbc4e2beSmrgfi
9090cbc4e2beSmrg
9091cbc4e2beSmrg
9092cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9093cbc4e2beSmrg
9094cbc4e2beSmrg		eval supported=\$$cacheid
9095cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9096cbc4e2beSmrg$as_echo "$supported" >&6; }
9097cbc4e2beSmrg		if test "$supported" = "yes" ; then
9098cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9099cbc4e2beSmrg			found="yes"
9100cbc4e2beSmrg		fi
9101cbc4e2beSmrg	fi
9102cbc4e2beSmrg
9103cbc4e2beSmrg
9104cbc4e2beSmrg
9105cbc4e2beSmrg
9106cbc4e2beSmrg
9107cbc4e2beSmrg
9108cbc4e2beSmrg
9109cbc4e2beSmrg
9110cbc4e2beSmrg
9111cbc4e2beSmrg
9112cbc4e2beSmrg
9113cbc4e2beSmrg
9114cbc4e2beSmrg
9115cbc4e2beSmrg
9116cbc4e2beSmrg
9117cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9118cbc4e2beSmrg
9119cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9120cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9121cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9122cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9123cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9124cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9125cbc4e2beSmrgelse
9126cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127cbc4e2beSmrg/* end confdefs.h.  */
9128cbc4e2beSmrgint i;
9129cbc4e2beSmrg_ACEOF
9130cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9131cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9132cbc4e2beSmrgelse
9133cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9134cbc4e2beSmrgfi
9135cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9136cbc4e2beSmrgfi
9137cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9138cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9139cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9140cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9141cbc4e2beSmrgfi
9142cbc4e2beSmrg
9143cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9144cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9145cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9146cbc4e2beSmrg	fi
9147cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9148cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9149cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9150cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9151cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9152cbc4e2beSmrgelse
9153cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154cbc4e2beSmrg/* end confdefs.h.  */
9155cbc4e2beSmrgint i;
9156cbc4e2beSmrg_ACEOF
9157cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9158cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9159cbc4e2beSmrgelse
9160cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9161cbc4e2beSmrgfi
9162cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9163cbc4e2beSmrgfi
9164cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9165cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9166cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9167cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9168cbc4e2beSmrgfi
9169cbc4e2beSmrg
9170cbc4e2beSmrgfound="no"
9171cbc4e2beSmrg
9172cbc4e2beSmrg	if test $found = "no" ; then
9173cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9174cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9175cbc4e2beSmrg		fi
9176cbc4e2beSmrg
9177cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9178cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9179cbc4e2beSmrg		fi
9180cbc4e2beSmrg
9181cbc4e2beSmrg		CFLAGS="$CFLAGS -Wreturn-type"
9182cbc4e2beSmrg
9183cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9184cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9185cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wreturn_type
9186cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
9187cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9188cbc4e2beSmrgelse
9189cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190cbc4e2beSmrg/* end confdefs.h.  */
9191cbc4e2beSmrgint i;
9192cbc4e2beSmrgint
9193cbc4e2beSmrgmain ()
9194cbc4e2beSmrg{
9195cbc4e2beSmrg
9196cbc4e2beSmrg  ;
9197cbc4e2beSmrg  return 0;
9198cbc4e2beSmrg}
9199cbc4e2beSmrg_ACEOF
9200cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
9201cbc4e2beSmrg  eval $cacheid=yes
9202cbc4e2beSmrgelse
9203cbc4e2beSmrg  eval $cacheid=no
9204cbc4e2beSmrgfi
9205cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
9206cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
9207cbc4e2beSmrgfi
9208cbc4e2beSmrg
9209cbc4e2beSmrg
9210cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9211cbc4e2beSmrg
9212cbc4e2beSmrg		eval supported=\$$cacheid
9213cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9214cbc4e2beSmrg$as_echo "$supported" >&6; }
9215cbc4e2beSmrg		if test "$supported" = "yes" ; then
9216cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9217cbc4e2beSmrg			found="yes"
9218cbc4e2beSmrg		fi
9219cbc4e2beSmrg	fi
9220cbc4e2beSmrg
9221cbc4e2beSmrg
9222cbc4e2beSmrg
9223cbc4e2beSmrg
9224cbc4e2beSmrg
9225cbc4e2beSmrg
9226cbc4e2beSmrg
9227cbc4e2beSmrg
9228cbc4e2beSmrg
9229cbc4e2beSmrg
9230cbc4e2beSmrg
9231cbc4e2beSmrg
9232cbc4e2beSmrg
9233cbc4e2beSmrg
9234cbc4e2beSmrg
9235cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9236cbc4e2beSmrg
9237cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9238cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9239cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9240cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9241cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9242cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9243cbc4e2beSmrgelse
9244cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9245cbc4e2beSmrg/* end confdefs.h.  */
9246cbc4e2beSmrgint i;
9247cbc4e2beSmrg_ACEOF
9248cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9249cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9250cbc4e2beSmrgelse
9251cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9252cbc4e2beSmrgfi
9253cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254cbc4e2beSmrgfi
9255cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9256cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9257cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9258cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9259cbc4e2beSmrgfi
9260cbc4e2beSmrg
9261cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9262cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9263cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9264cbc4e2beSmrg	fi
9265cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9266cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9267cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9268cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9269cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9270cbc4e2beSmrgelse
9271cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272cbc4e2beSmrg/* end confdefs.h.  */
9273cbc4e2beSmrgint i;
9274cbc4e2beSmrg_ACEOF
9275cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9276cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9277cbc4e2beSmrgelse
9278cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9279cbc4e2beSmrgfi
9280cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9281cbc4e2beSmrgfi
9282cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9283cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9284cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9285cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9286cbc4e2beSmrgfi
9287cbc4e2beSmrg
9288cbc4e2beSmrgfound="no"
9289cbc4e2beSmrg
9290cbc4e2beSmrg	if test $found = "no" ; then
9291cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9292cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9293cbc4e2beSmrg		fi
9294cbc4e2beSmrg
9295cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9296cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9297cbc4e2beSmrg		fi
9298cbc4e2beSmrg
9299cbc4e2beSmrg		CFLAGS="$CFLAGS -Wtrigraphs"
9300cbc4e2beSmrg
9301cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9302cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9303cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
9304cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
9305cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9306cbc4e2beSmrgelse
9307cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308cbc4e2beSmrg/* end confdefs.h.  */
9309cbc4e2beSmrgint i;
9310cbc4e2beSmrgint
9311cbc4e2beSmrgmain ()
9312cbc4e2beSmrg{
9313cbc4e2beSmrg
9314cbc4e2beSmrg  ;
9315cbc4e2beSmrg  return 0;
9316cbc4e2beSmrg}
9317cbc4e2beSmrg_ACEOF
9318cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
9319cbc4e2beSmrg  eval $cacheid=yes
9320cbc4e2beSmrgelse
9321cbc4e2beSmrg  eval $cacheid=no
9322cbc4e2beSmrgfi
9323cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
9324cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
9325cbc4e2beSmrgfi
9326cbc4e2beSmrg
9327cbc4e2beSmrg
9328cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9329cbc4e2beSmrg
9330cbc4e2beSmrg		eval supported=\$$cacheid
9331cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9332cbc4e2beSmrg$as_echo "$supported" >&6; }
9333cbc4e2beSmrg		if test "$supported" = "yes" ; then
9334cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9335cbc4e2beSmrg			found="yes"
9336cbc4e2beSmrg		fi
9337cbc4e2beSmrg	fi
9338cbc4e2beSmrg
9339cbc4e2beSmrg
9340cbc4e2beSmrg
9341cbc4e2beSmrg
9342cbc4e2beSmrg
9343cbc4e2beSmrg
9344cbc4e2beSmrg
9345cbc4e2beSmrg
9346cbc4e2beSmrg
9347cbc4e2beSmrg
9348cbc4e2beSmrg
9349cbc4e2beSmrg
9350cbc4e2beSmrg
9351cbc4e2beSmrg
9352cbc4e2beSmrg
9353cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9354cbc4e2beSmrg
9355cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9356cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9357cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9358cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9359cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9360cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9361cbc4e2beSmrgelse
9362cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363cbc4e2beSmrg/* end confdefs.h.  */
9364cbc4e2beSmrgint i;
9365cbc4e2beSmrg_ACEOF
9366cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9367cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9368cbc4e2beSmrgelse
9369cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9370cbc4e2beSmrgfi
9371cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9372cbc4e2beSmrgfi
9373cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9374cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9375cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9376cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9377cbc4e2beSmrgfi
9378cbc4e2beSmrg
9379cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9380cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9381cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9382cbc4e2beSmrg	fi
9383cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9384cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9385cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9386cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9387cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9388cbc4e2beSmrgelse
9389cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390cbc4e2beSmrg/* end confdefs.h.  */
9391cbc4e2beSmrgint i;
9392cbc4e2beSmrg_ACEOF
9393cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9394cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9395cbc4e2beSmrgelse
9396cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9397cbc4e2beSmrgfi
9398cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9399cbc4e2beSmrgfi
9400cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9401cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9402cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9403cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9404cbc4e2beSmrgfi
9405cbc4e2beSmrg
9406cbc4e2beSmrgfound="no"
9407cbc4e2beSmrg
9408cbc4e2beSmrg	if test $found = "no" ; then
9409cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9410cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9411cbc4e2beSmrg		fi
9412cbc4e2beSmrg
9413cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9414cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9415cbc4e2beSmrg		fi
9416cbc4e2beSmrg
9417cbc4e2beSmrg		CFLAGS="$CFLAGS -Warray-bounds"
9418cbc4e2beSmrg
9419cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9420cbc4e2beSmrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9421cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Warray_bounds
9422cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
9423cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9424cbc4e2beSmrgelse
9425cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426cbc4e2beSmrg/* end confdefs.h.  */
9427cbc4e2beSmrgint i;
9428cbc4e2beSmrgint
9429cbc4e2beSmrgmain ()
9430cbc4e2beSmrg{
9431cbc4e2beSmrg
9432cbc4e2beSmrg  ;
9433cbc4e2beSmrg  return 0;
9434cbc4e2beSmrg}
9435cbc4e2beSmrg_ACEOF
9436cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
9437cbc4e2beSmrg  eval $cacheid=yes
9438cbc4e2beSmrgelse
9439cbc4e2beSmrg  eval $cacheid=no
9440cbc4e2beSmrgfi
9441cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
9442cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
9443cbc4e2beSmrgfi
9444cbc4e2beSmrg
9445cbc4e2beSmrg
9446cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9447cbc4e2beSmrg
9448cbc4e2beSmrg		eval supported=\$$cacheid
9449cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9450cbc4e2beSmrg$as_echo "$supported" >&6; }
9451cbc4e2beSmrg		if test "$supported" = "yes" ; then
9452cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9453cbc4e2beSmrg			found="yes"
9454cbc4e2beSmrg		fi
9455cbc4e2beSmrg	fi
9456cbc4e2beSmrg
9457cbc4e2beSmrg
9458cbc4e2beSmrg
9459cbc4e2beSmrg
9460cbc4e2beSmrg
9461cbc4e2beSmrg
9462cbc4e2beSmrg
9463cbc4e2beSmrg
9464cbc4e2beSmrg
9465cbc4e2beSmrg
9466cbc4e2beSmrg
9467cbc4e2beSmrg
9468cbc4e2beSmrg
9469cbc4e2beSmrg
9470cbc4e2beSmrg
9471cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9472cbc4e2beSmrg
9473cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9474cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9475cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9476cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9477cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9478cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9479cbc4e2beSmrgelse
9480cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481cbc4e2beSmrg/* end confdefs.h.  */
9482cbc4e2beSmrgint i;
9483cbc4e2beSmrg_ACEOF
9484cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9485cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9486cbc4e2beSmrgelse
9487cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9488cbc4e2beSmrgfi
9489cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9490cbc4e2beSmrgfi
9491cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9492cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9493cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9494cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9495cbc4e2beSmrgfi
9496cbc4e2beSmrg
9497cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9498cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9499cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9500cbc4e2beSmrg	fi
9501cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9502cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9503cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9504cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9505cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9506cbc4e2beSmrgelse
9507cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508cbc4e2beSmrg/* end confdefs.h.  */
9509cbc4e2beSmrgint i;
9510cbc4e2beSmrg_ACEOF
9511cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9512cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9513cbc4e2beSmrgelse
9514cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9515cbc4e2beSmrgfi
9516cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9517cbc4e2beSmrgfi
9518cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9519cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9520cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9521cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9522cbc4e2beSmrgfi
9523cbc4e2beSmrg
9524cbc4e2beSmrgfound="no"
9525cbc4e2beSmrg
9526cbc4e2beSmrg	if test $found = "no" ; then
9527cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9528cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9529cbc4e2beSmrg		fi
9530cbc4e2beSmrg
9531cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9532cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9533cbc4e2beSmrg		fi
9534cbc4e2beSmrg
9535cbc4e2beSmrg		CFLAGS="$CFLAGS -Wwrite-strings"
9536cbc4e2beSmrg
9537cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9538cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9539cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
9540cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
9541cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9542cbc4e2beSmrgelse
9543cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544cbc4e2beSmrg/* end confdefs.h.  */
9545cbc4e2beSmrgint i;
9546cbc4e2beSmrgint
9547cbc4e2beSmrgmain ()
9548cbc4e2beSmrg{
9549cbc4e2beSmrg
9550cbc4e2beSmrg  ;
9551cbc4e2beSmrg  return 0;
9552cbc4e2beSmrg}
9553cbc4e2beSmrg_ACEOF
9554cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
9555cbc4e2beSmrg  eval $cacheid=yes
9556cbc4e2beSmrgelse
9557cbc4e2beSmrg  eval $cacheid=no
9558cbc4e2beSmrgfi
9559cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
9560cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
9561cbc4e2beSmrgfi
9562cbc4e2beSmrg
9563cbc4e2beSmrg
9564cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9565cbc4e2beSmrg
9566cbc4e2beSmrg		eval supported=\$$cacheid
9567cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9568cbc4e2beSmrg$as_echo "$supported" >&6; }
9569cbc4e2beSmrg		if test "$supported" = "yes" ; then
9570cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9571cbc4e2beSmrg			found="yes"
9572cbc4e2beSmrg		fi
9573cbc4e2beSmrg	fi
9574cbc4e2beSmrg
9575cbc4e2beSmrg
9576cbc4e2beSmrg
9577cbc4e2beSmrg
9578cbc4e2beSmrg
9579cbc4e2beSmrg
9580cbc4e2beSmrg
9581cbc4e2beSmrg
9582cbc4e2beSmrg
9583cbc4e2beSmrg
9584cbc4e2beSmrg
9585cbc4e2beSmrg
9586cbc4e2beSmrg
9587cbc4e2beSmrg
9588cbc4e2beSmrg
9589cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9590cbc4e2beSmrg
9591cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9592cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9593cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9594cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9595cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9596cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9597cbc4e2beSmrgelse
9598cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599cbc4e2beSmrg/* end confdefs.h.  */
9600cbc4e2beSmrgint i;
9601cbc4e2beSmrg_ACEOF
9602cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9603cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9604cbc4e2beSmrgelse
9605cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9606cbc4e2beSmrgfi
9607cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9608cbc4e2beSmrgfi
9609cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9610cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9611cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9612cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9613cbc4e2beSmrgfi
9614cbc4e2beSmrg
9615cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9616cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9617cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9618cbc4e2beSmrg	fi
9619cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9620cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9621cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9622cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9623cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9624cbc4e2beSmrgelse
9625cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626cbc4e2beSmrg/* end confdefs.h.  */
9627cbc4e2beSmrgint i;
9628cbc4e2beSmrg_ACEOF
9629cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9630cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9631cbc4e2beSmrgelse
9632cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9633cbc4e2beSmrgfi
9634cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9635cbc4e2beSmrgfi
9636cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9637cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9638cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9639cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9640cbc4e2beSmrgfi
9641cbc4e2beSmrg
9642cbc4e2beSmrgfound="no"
9643cbc4e2beSmrg
9644cbc4e2beSmrg	if test $found = "no" ; then
9645cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9646cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9647cbc4e2beSmrg		fi
9648cbc4e2beSmrg
9649cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9650cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9651cbc4e2beSmrg		fi
9652cbc4e2beSmrg
9653cbc4e2beSmrg		CFLAGS="$CFLAGS -Waddress"
9654cbc4e2beSmrg
9655cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9656cbc4e2beSmrg$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9657cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Waddress
9658cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
9659cbc4e2beSmrg  $as_echo_n "(cached) " >&6
9660cbc4e2beSmrgelse
9661cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662cbc4e2beSmrg/* end confdefs.h.  */
9663cbc4e2beSmrgint i;
9664cbc4e2beSmrgint
9665cbc4e2beSmrgmain ()
9666cbc4e2beSmrg{
9667cbc4e2beSmrg
9668cbc4e2beSmrg  ;
9669cbc4e2beSmrg  return 0;
9670cbc4e2beSmrg}
9671cbc4e2beSmrg_ACEOF
9672cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
9673cbc4e2beSmrg  eval $cacheid=yes
9674cbc4e2beSmrgelse
9675cbc4e2beSmrg  eval $cacheid=no
9676cbc4e2beSmrgfi
9677cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
9678cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
967995e0246bSmrgfi
968095e0246bSmrg
968195e0246bSmrg
9682cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
968395e0246bSmrg
9684cbc4e2beSmrg		eval supported=\$$cacheid
9685cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9686cbc4e2beSmrg$as_echo "$supported" >&6; }
9687cbc4e2beSmrg		if test "$supported" = "yes" ; then
9688cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9689cbc4e2beSmrg			found="yes"
9690cbc4e2beSmrg		fi
9691cbc4e2beSmrg	fi
969295e0246bSmrg
96932b32c8f7Smrg
96942b32c8f7Smrg
9695cbc4e2beSmrg
9696cbc4e2beSmrg
9697cbc4e2beSmrg
9698cbc4e2beSmrg
9699cbc4e2beSmrg
9700cbc4e2beSmrg
9701cbc4e2beSmrg
9702cbc4e2beSmrg
9703cbc4e2beSmrg
9704cbc4e2beSmrg
9705cbc4e2beSmrg
9706cbc4e2beSmrg
9707cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9708cbc4e2beSmrg
9709cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9710cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9711cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9712cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9713cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
97142b32c8f7Smrg  $as_echo_n "(cached) " >&6
97152b32c8f7Smrgelse
9716cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717cbc4e2beSmrg/* end confdefs.h.  */
9718cbc4e2beSmrgint i;
9719cbc4e2beSmrg_ACEOF
9720cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9721cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
972295e0246bSmrgelse
9723cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
972495e0246bSmrgfi
9725cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
972695e0246bSmrgfi
9727cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9728cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9729cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9730cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
973195e0246bSmrgfi
97322b32c8f7Smrg
9733cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9734cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9735cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9736cbc4e2beSmrg	fi
9737cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9738cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9739cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9740cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
974195e0246bSmrg  $as_echo_n "(cached) " >&6
974295e0246bSmrgelse
9743cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744cbc4e2beSmrg/* end confdefs.h.  */
9745cbc4e2beSmrgint i;
9746cbc4e2beSmrg_ACEOF
9747cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9748cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
974995e0246bSmrgelse
9750cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
975195e0246bSmrgfi
9752cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
975395e0246bSmrgfi
9754cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9755cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9756cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9757cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
975895e0246bSmrgfi
97592b32c8f7Smrg
9760cbc4e2beSmrgfound="no"
9761cbc4e2beSmrg
9762cbc4e2beSmrg	if test $found = "no" ; then
9763cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9764cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9765cbc4e2beSmrg		fi
9766cbc4e2beSmrg
9767cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9768cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9769cbc4e2beSmrg		fi
9770cbc4e2beSmrg
9771cbc4e2beSmrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9772cbc4e2beSmrg
9773cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9774cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9775cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9776cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
9777cbc4e2beSmrg  $as_echo_n "(cached) " >&6
977895e0246bSmrgelse
9779cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780cbc4e2beSmrg/* end confdefs.h.  */
9781cbc4e2beSmrgint i;
9782cbc4e2beSmrgint
9783cbc4e2beSmrgmain ()
9784cbc4e2beSmrg{
9785cbc4e2beSmrg
9786cbc4e2beSmrg  ;
9787cbc4e2beSmrg  return 0;
9788cbc4e2beSmrg}
9789cbc4e2beSmrg_ACEOF
9790cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
9791cbc4e2beSmrg  eval $cacheid=yes
9792cbc4e2beSmrgelse
9793cbc4e2beSmrg  eval $cacheid=no
9794cbc4e2beSmrgfi
9795cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
9796cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
979795e0246bSmrgfi
979895e0246bSmrg
9799cbc4e2beSmrg
9800cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9801cbc4e2beSmrg
9802cbc4e2beSmrg		eval supported=\$$cacheid
9803cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9804cbc4e2beSmrg$as_echo "$supported" >&6; }
9805cbc4e2beSmrg		if test "$supported" = "yes" ; then
9806cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9807cbc4e2beSmrg			found="yes"
9808cbc4e2beSmrg		fi
9809cbc4e2beSmrg	fi
9810cbc4e2beSmrg
9811cbc4e2beSmrg
9812cbc4e2beSmrg
9813cbc4e2beSmrg
9814cbc4e2beSmrg
9815cbc4e2beSmrg
9816cbc4e2beSmrg
9817cbc4e2beSmrg
9818cbc4e2beSmrg
9819cbc4e2beSmrg
9820cbc4e2beSmrg
9821cbc4e2beSmrg
9822cbc4e2beSmrg
9823cbc4e2beSmrg
9824cbc4e2beSmrg
9825cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9826cbc4e2beSmrg
9827cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9828cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9830cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9831cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
983295e0246bSmrg  $as_echo_n "(cached) " >&6
983395e0246bSmrgelse
9834cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835cbc4e2beSmrg/* end confdefs.h.  */
9836cbc4e2beSmrgint i;
9837cbc4e2beSmrg_ACEOF
9838cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9839cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
984095e0246bSmrgelse
9841cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
984295e0246bSmrgfi
9843cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
984495e0246bSmrgfi
9845cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9846cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9847cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9848cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9849cbc4e2beSmrgfi
9850cbc4e2beSmrg
9851cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9852cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9853cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854cbc4e2beSmrg	fi
9855cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9856cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9857cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9858cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9859cbc4e2beSmrg  $as_echo_n "(cached) " >&6
986095e0246bSmrgelse
9861cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862cbc4e2beSmrg/* end confdefs.h.  */
9863cbc4e2beSmrgint i;
9864cbc4e2beSmrg_ACEOF
9865cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9866cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9867cbc4e2beSmrgelse
9868cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9869cbc4e2beSmrgfi
9870cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9871cbc4e2beSmrgfi
9872cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9873cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9874cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9875cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
987695e0246bSmrgfi
987795e0246bSmrg
9878cbc4e2beSmrgfound="no"
987995e0246bSmrg
9880cbc4e2beSmrg	if test $found = "no" ; then
9881cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9882cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9883cbc4e2beSmrg		fi
9884cbc4e2beSmrg
9885cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9886cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9887cbc4e2beSmrg		fi
9888cbc4e2beSmrg
9889cbc4e2beSmrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9890cbc4e2beSmrg
9891cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9892cbc4e2beSmrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9893cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9894cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
989595e0246bSmrg  $as_echo_n "(cached) " >&6
989695e0246bSmrgelse
9897cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898cbc4e2beSmrg/* end confdefs.h.  */
9899cbc4e2beSmrgint i;
9900cbc4e2beSmrgint
9901cbc4e2beSmrgmain ()
9902cbc4e2beSmrg{
990395e0246bSmrg
9904cbc4e2beSmrg  ;
9905cbc4e2beSmrg  return 0;
9906cbc4e2beSmrg}
9907cbc4e2beSmrg_ACEOF
9908cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
9909cbc4e2beSmrg  eval $cacheid=yes
9910cbc4e2beSmrgelse
9911cbc4e2beSmrg  eval $cacheid=no
991295e0246bSmrgfi
9913cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
9914cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
991595e0246bSmrgfi
9916cbc4e2beSmrg
9917cbc4e2beSmrg
9918cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9919cbc4e2beSmrg
9920cbc4e2beSmrg		eval supported=\$$cacheid
9921cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9922cbc4e2beSmrg$as_echo "$supported" >&6; }
9923cbc4e2beSmrg		if test "$supported" = "yes" ; then
9924cbc4e2beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9925cbc4e2beSmrg			found="yes"
9926cbc4e2beSmrg		fi
9927cbc4e2beSmrg	fi
9928cbc4e2beSmrg
9929cbc4e2beSmrg
993095e0246bSmrgfi
9931cbc4e2beSmrg
9932cbc4e2beSmrg
9933cbc4e2beSmrg
9934cbc4e2beSmrg
9935cbc4e2beSmrg
9936cbc4e2beSmrg
9937cbc4e2beSmrg
9938cbc4e2beSmrg		CWARNFLAGS="$BASE_CFLAGS"
9939cbc4e2beSmrg		if  test "x$GCC" = xyes ; then
9940cbc4e2beSmrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9941cbc4e2beSmrg		fi
9942cbc4e2beSmrg
9943cbc4e2beSmrg
9944cbc4e2beSmrg
9945cbc4e2beSmrg
9946cbc4e2beSmrg
9947cbc4e2beSmrg
9948cbc4e2beSmrg
9949cbc4e2beSmrg
9950cbc4e2beSmrg# Check whether --enable-strict-compilation was given.
9951cbc4e2beSmrgif test "${enable_strict_compilation+set}" = set; then :
9952cbc4e2beSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
995395e0246bSmrgelse
9954cbc4e2beSmrg  STRICT_COMPILE=no
995595e0246bSmrgfi
995695e0246bSmrg
995795e0246bSmrg
9958cbc4e2beSmrg
9959cbc4e2beSmrg
9960cbc4e2beSmrg
9961cbc4e2beSmrg
9962cbc4e2beSmrgSTRICT_CFLAGS=""
9963cbc4e2beSmrg
9964cbc4e2beSmrg
9965cbc4e2beSmrg
9966cbc4e2beSmrg
9967cbc4e2beSmrg
9968cbc4e2beSmrg
9969cbc4e2beSmrg
9970cbc4e2beSmrg
9971cbc4e2beSmrg
9972cbc4e2beSmrg
9973cbc4e2beSmrg
9974cbc4e2beSmrg
9975cbc4e2beSmrg
9976cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9977cbc4e2beSmrg
9978cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9979cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9980cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9981cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9982cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
998395e0246bSmrg  $as_echo_n "(cached) " >&6
998495e0246bSmrgelse
9985cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986cbc4e2beSmrg/* end confdefs.h.  */
9987cbc4e2beSmrgint i;
9988cbc4e2beSmrg_ACEOF
9989cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
9990cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
999195e0246bSmrgelse
9992cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
999395e0246bSmrgfi
9994cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
999595e0246bSmrgfi
9996cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9997cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9998cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9999cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
1000095e0246bSmrgfi
1000195e0246bSmrg
10002cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10003cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10004cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10005cbc4e2beSmrg	fi
10006cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10007cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10008cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10009cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1001095e0246bSmrg  $as_echo_n "(cached) " >&6
1001195e0246bSmrgelse
10012cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013cbc4e2beSmrg/* end confdefs.h.  */
10014cbc4e2beSmrgint i;
10015cbc4e2beSmrg_ACEOF
10016cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
10017cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1001895e0246bSmrgelse
10019cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
1002095e0246bSmrgfi
10021cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1002295e0246bSmrgfi
10023cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10024cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10025cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10026cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
1002795e0246bSmrgfi
1002895e0246bSmrg
10029cbc4e2beSmrgfound="no"
1003095e0246bSmrg
10031cbc4e2beSmrg	if test $found = "no" ; then
10032cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10033cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10034cbc4e2beSmrg		fi
1003595e0246bSmrg
10036cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10037cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10038cbc4e2beSmrg		fi
1003995e0246bSmrg
10040cbc4e2beSmrg		CFLAGS="$CFLAGS -pedantic"
1004195e0246bSmrg
10042cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10043cbc4e2beSmrg$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10044cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__pedantic
10045cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
1004695e0246bSmrg  $as_echo_n "(cached) " >&6
1004795e0246bSmrgelse
1004895e0246bSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1004995e0246bSmrg/* end confdefs.h.  */
10050cbc4e2beSmrgint i;
1005195e0246bSmrgint
1005295e0246bSmrgmain ()
1005395e0246bSmrg{
1005495e0246bSmrg
1005595e0246bSmrg  ;
1005695e0246bSmrg  return 0;
1005795e0246bSmrg}
1005895e0246bSmrg_ACEOF
10059cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
10060cbc4e2beSmrg  eval $cacheid=yes
10061cbc4e2beSmrgelse
10062cbc4e2beSmrg  eval $cacheid=no
10063cbc4e2beSmrgfi
10064cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
10065cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
10066cbc4e2beSmrgfi
10067cbc4e2beSmrg
10068cbc4e2beSmrg
10069cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10070cbc4e2beSmrg
10071cbc4e2beSmrg		eval supported=\$$cacheid
10072cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10073cbc4e2beSmrg$as_echo "$supported" >&6; }
10074cbc4e2beSmrg		if test "$supported" = "yes" ; then
10075cbc4e2beSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10076cbc4e2beSmrg			found="yes"
10077cbc4e2beSmrg		fi
10078cbc4e2beSmrg	fi
10079cbc4e2beSmrg
10080cbc4e2beSmrg
10081cbc4e2beSmrg
10082cbc4e2beSmrg
10083cbc4e2beSmrg
10084cbc4e2beSmrg
10085cbc4e2beSmrg
10086cbc4e2beSmrg
10087cbc4e2beSmrg
10088cbc4e2beSmrg
10089cbc4e2beSmrg
10090cbc4e2beSmrg
10091cbc4e2beSmrg
10092cbc4e2beSmrg
10093cbc4e2beSmrg
10094cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10095cbc4e2beSmrg
10096cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10097cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10098cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10099cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10100cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10101cbc4e2beSmrg  $as_echo_n "(cached) " >&6
10102cbc4e2beSmrgelse
10103cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104cbc4e2beSmrg/* end confdefs.h.  */
10105cbc4e2beSmrgint i;
10106cbc4e2beSmrg_ACEOF
1010795e0246bSmrgif ac_fn_c_try_compile "$LINENO"; then :
10108cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1010995e0246bSmrgelse
10110cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
1011195e0246bSmrgfi
1011295e0246bSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1011395e0246bSmrgfi
10114cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10115cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10116cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10117cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
1011895e0246bSmrgfi
10119cbc4e2beSmrg
10120cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10121cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10122cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10123cbc4e2beSmrg	fi
10124cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10125cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10126cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10127cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1012895e0246bSmrg  $as_echo_n "(cached) " >&6
1012995e0246bSmrgelse
10130cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1013195e0246bSmrg/* end confdefs.h.  */
10132cbc4e2beSmrgint i;
1013395e0246bSmrg_ACEOF
1013495e0246bSmrgif ac_fn_c_try_compile "$LINENO"; then :
10135cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10136cbc4e2beSmrgelse
10137cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10138cbc4e2beSmrgfi
10139cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10140cbc4e2beSmrgfi
10141cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10142cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10143cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10144cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10145cbc4e2beSmrgfi
10146cbc4e2beSmrg
10147cbc4e2beSmrgfound="no"
10148cbc4e2beSmrg
10149cbc4e2beSmrg	if test $found = "no" ; then
10150cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10151cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10152cbc4e2beSmrg		fi
10153cbc4e2beSmrg
10154cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10155cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10156cbc4e2beSmrg		fi
10157cbc4e2beSmrg
10158cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror"
10159cbc4e2beSmrg
10160cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10161cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror... " >&6; }
10162cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__Werror
10163cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
10164cbc4e2beSmrg  $as_echo_n "(cached) " >&6
1016595e0246bSmrgelse
10166cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1016795e0246bSmrg/* end confdefs.h.  */
10168cbc4e2beSmrgint i;
1016995e0246bSmrgint
1017095e0246bSmrgmain ()
1017195e0246bSmrg{
1017295e0246bSmrg
1017395e0246bSmrg  ;
1017495e0246bSmrg  return 0;
1017595e0246bSmrg}
1017695e0246bSmrg_ACEOF
10177cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
10178cbc4e2beSmrg  eval $cacheid=yes
10179cbc4e2beSmrgelse
10180cbc4e2beSmrg  eval $cacheid=no
10181cbc4e2beSmrgfi
10182cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
10183cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
10184cbc4e2beSmrgfi
10185cbc4e2beSmrg
1018695e0246bSmrg
10187cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10188cbc4e2beSmrg
10189cbc4e2beSmrg		eval supported=\$$cacheid
10190cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10191cbc4e2beSmrg$as_echo "$supported" >&6; }
10192cbc4e2beSmrg		if test "$supported" = "yes" ; then
10193cbc4e2beSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10194cbc4e2beSmrg			found="yes"
10195cbc4e2beSmrg		fi
10196cbc4e2beSmrg	fi
10197cbc4e2beSmrg
10198cbc4e2beSmrg	if test $found = "no" ; then
10199cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10200cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10201cbc4e2beSmrg		fi
10202cbc4e2beSmrg
10203cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10204cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10205cbc4e2beSmrg		fi
10206cbc4e2beSmrg
10207cbc4e2beSmrg		CFLAGS="$CFLAGS -errwarn"
10208cbc4e2beSmrg
10209cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10210cbc4e2beSmrg$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10211cbc4e2beSmrg		cacheid=xorg_cv_cc_flag__errwarn
10212cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
10213cbc4e2beSmrg  $as_echo_n "(cached) " >&6
1021495e0246bSmrgelse
10215cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1021695e0246bSmrg/* end confdefs.h.  */
10217cbc4e2beSmrgint i;
1021895e0246bSmrgint
1021995e0246bSmrgmain ()
1022095e0246bSmrg{
1022195e0246bSmrg
1022295e0246bSmrg  ;
1022395e0246bSmrg  return 0;
1022495e0246bSmrg}
1022595e0246bSmrg_ACEOF
10226cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
10227cbc4e2beSmrg  eval $cacheid=yes
10228cbc4e2beSmrgelse
10229cbc4e2beSmrg  eval $cacheid=no
1023095e0246bSmrgfi
10231cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
10232cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
1023395e0246bSmrgfi
10234cbc4e2beSmrg
10235cbc4e2beSmrg
10236cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10237cbc4e2beSmrg
10238cbc4e2beSmrg		eval supported=\$$cacheid
10239cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10240cbc4e2beSmrg$as_echo "$supported" >&6; }
10241cbc4e2beSmrg		if test "$supported" = "yes" ; then
10242cbc4e2beSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10243cbc4e2beSmrg			found="yes"
10244cbc4e2beSmrg		fi
10245cbc4e2beSmrg	fi
10246cbc4e2beSmrg
10247cbc4e2beSmrg
10248cbc4e2beSmrg
10249cbc4e2beSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10250cbc4e2beSmrg# activate it with -Werror, so we add it here explicitly.
10251cbc4e2beSmrg
10252cbc4e2beSmrg
10253cbc4e2beSmrg
10254cbc4e2beSmrg
10255cbc4e2beSmrg
10256cbc4e2beSmrg
10257cbc4e2beSmrg
10258cbc4e2beSmrg
10259cbc4e2beSmrg
10260cbc4e2beSmrg
10261cbc4e2beSmrg
10262cbc4e2beSmrg
10263cbc4e2beSmrg
10264cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10265cbc4e2beSmrg
10266cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10267cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10268cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10269cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10270cbc4e2beSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10271cbc4e2beSmrg  $as_echo_n "(cached) " >&6
10272cbc4e2beSmrgelse
10273cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274cbc4e2beSmrg/* end confdefs.h.  */
10275cbc4e2beSmrgint i;
10276cbc4e2beSmrg_ACEOF
10277cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
10278cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10279cbc4e2beSmrgelse
10280cbc4e2beSmrg  xorg_cv_cc_flag_unknown_warning_option=no
1028195e0246bSmrgfi
1028295e0246bSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1028395e0246bSmrgfi
10284cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10285cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10286cbc4e2beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10287cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
1028895e0246bSmrgfi
10289cbc4e2beSmrg
10290cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10291cbc4e2beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10292cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10293cbc4e2beSmrg	fi
10294cbc4e2beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10295cbc4e2beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10296cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10297cbc4e2beSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1029895e0246bSmrg  $as_echo_n "(cached) " >&6
1029995e0246bSmrgelse
10300cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1030195e0246bSmrg/* end confdefs.h.  */
10302cbc4e2beSmrgint i;
10303cbc4e2beSmrg_ACEOF
10304cbc4e2beSmrgif ac_fn_c_try_compile "$LINENO"; then :
10305cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10306cbc4e2beSmrgelse
10307cbc4e2beSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10308cbc4e2beSmrgfi
10309cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10310cbc4e2beSmrgfi
10311cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10312cbc4e2beSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10313cbc4e2beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10314cbc4e2beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10315cbc4e2beSmrgfi
1031695e0246bSmrg
10317cbc4e2beSmrgfound="no"
1031895e0246bSmrg
10319cbc4e2beSmrg	if test $found = "no" ; then
10320cbc4e2beSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10321cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10322cbc4e2beSmrg		fi
1032395e0246bSmrg
10324cbc4e2beSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10325cbc4e2beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10326cbc4e2beSmrg		fi
10327cbc4e2beSmrg
10328cbc4e2beSmrg		CFLAGS="$CFLAGS -Werror=attributes"
10329cbc4e2beSmrg
10330cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10331cbc4e2beSmrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10332cbc4e2beSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10333cbc4e2beSmrg		if eval \${$cacheid+:} false; then :
10334cbc4e2beSmrg  $as_echo_n "(cached) " >&6
10335cbc4e2beSmrgelse
10336cbc4e2beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337cbc4e2beSmrg/* end confdefs.h.  */
10338cbc4e2beSmrgint i;
1033995e0246bSmrgint
1034095e0246bSmrgmain ()
1034195e0246bSmrg{
10342cbc4e2beSmrg
1034395e0246bSmrg  ;
1034495e0246bSmrg  return 0;
103452b32c8f7Smrg}
103462b32c8f7Smrg_ACEOF
10347cbc4e2beSmrgif ac_fn_c_try_link "$LINENO"; then :
10348cbc4e2beSmrg  eval $cacheid=yes
10349cbc4e2beSmrgelse
10350cbc4e2beSmrg  eval $cacheid=no
10351cbc4e2beSmrgfi
10352cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
10353cbc4e2beSmrg    conftest$ac_exeext conftest.$ac_ext
10354cbc4e2beSmrgfi
10355cbc4e2beSmrg
10356cbc4e2beSmrg
10357cbc4e2beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10358cbc4e2beSmrg
10359cbc4e2beSmrg		eval supported=\$$cacheid
10360cbc4e2beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10361cbc4e2beSmrg$as_echo "$supported" >&6; }
10362cbc4e2beSmrg		if test "$supported" = "yes" ; then
10363cbc4e2beSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10364cbc4e2beSmrg			found="yes"
10365cbc4e2beSmrg		fi
10366cbc4e2beSmrg	fi
10367cbc4e2beSmrg
10368cbc4e2beSmrg
10369cbc4e2beSmrg
10370cbc4e2beSmrgif test "x$STRICT_COMPILE" = "xyes"; then
10371cbc4e2beSmrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10372cbc4e2beSmrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10373cbc4e2beSmrgfi
10374cbc4e2beSmrg
10375cbc4e2beSmrg
10376cbc4e2beSmrg
10377cbc4e2beSmrg
10378cbc4e2beSmrg
10379cbc4e2beSmrg
10380cbc4e2beSmrgcat >>confdefs.h <<_ACEOF
10381cbc4e2beSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10382cbc4e2beSmrg_ACEOF
10383cbc4e2beSmrg
10384cbc4e2beSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10385cbc4e2beSmrg	if test "x$PVM" = "x"; then
10386cbc4e2beSmrg		PVM="0"
10387cbc4e2beSmrg	fi
10388cbc4e2beSmrg
10389cbc4e2beSmrgcat >>confdefs.h <<_ACEOF
10390cbc4e2beSmrg#define PACKAGE_VERSION_MINOR $PVM
10391cbc4e2beSmrg_ACEOF
10392cbc4e2beSmrg
10393cbc4e2beSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10394cbc4e2beSmrg	if test "x$PVP" = "x"; then
10395cbc4e2beSmrg		PVP="0"
10396cbc4e2beSmrg	fi
10397cbc4e2beSmrg
10398cbc4e2beSmrgcat >>confdefs.h <<_ACEOF
10399cbc4e2beSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
10400cbc4e2beSmrg_ACEOF
10401cbc4e2beSmrg
10402cbc4e2beSmrg
10403cbc4e2beSmrg
10404cbc4e2beSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10405cbc4e2beSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10406cbc4e2beSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10407cbc4e2beSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
10408cbc4e2beSmrg
10409cbc4e2beSmrg
10410cbc4e2beSmrg
10411cbc4e2beSmrg
10412cbc4e2beSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10413cbc4e2beSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10414cbc4e2beSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10415cbc4e2beSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10416cbc4e2beSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10417cbc4e2beSmrg
10418cbc4e2beSmrg
10419cbc4e2beSmrg
10420cbc4e2beSmrg
10421cbc4e2beSmrg
10422cbc4e2beSmrg
10423cbc4e2beSmrgif test x$APP_MAN_SUFFIX = x    ; then
10424cbc4e2beSmrg    APP_MAN_SUFFIX=1
10425cbc4e2beSmrgfi
10426cbc4e2beSmrgif test x$APP_MAN_DIR = x    ; then
10427cbc4e2beSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10428cbc4e2beSmrgfi
10429cbc4e2beSmrg
10430cbc4e2beSmrgif test x$LIB_MAN_SUFFIX = x    ; then
10431cbc4e2beSmrg    LIB_MAN_SUFFIX=3
10432cbc4e2beSmrgfi
10433cbc4e2beSmrgif test x$LIB_MAN_DIR = x    ; then
10434cbc4e2beSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10435cbc4e2beSmrgfi
10436cbc4e2beSmrg
10437cbc4e2beSmrgif test x$FILE_MAN_SUFFIX = x    ; then
10438cbc4e2beSmrg    case $host_os in
10439cbc4e2beSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
10440cbc4e2beSmrg	*)		FILE_MAN_SUFFIX=5  ;;
10441cbc4e2beSmrg    esac
10442cbc4e2beSmrgfi
10443cbc4e2beSmrgif test x$FILE_MAN_DIR = x    ; then
10444cbc4e2beSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10445cbc4e2beSmrgfi
10446cbc4e2beSmrg
10447cbc4e2beSmrgif test x$MISC_MAN_SUFFIX = x    ; then
10448cbc4e2beSmrg    case $host_os in
10449cbc4e2beSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
10450cbc4e2beSmrg	*)		MISC_MAN_SUFFIX=7  ;;
10451cbc4e2beSmrg    esac
10452cbc4e2beSmrgfi
10453cbc4e2beSmrgif test x$MISC_MAN_DIR = x    ; then
10454cbc4e2beSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
1045595e0246bSmrgfi
1045695e0246bSmrg
10457cbc4e2beSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
10458cbc4e2beSmrg    case $host_os in
10459cbc4e2beSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10460cbc4e2beSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
10461cbc4e2beSmrg    esac
10462cbc4e2beSmrgfi
10463cbc4e2beSmrgif test x$DRIVER_MAN_DIR = x    ; then
10464cbc4e2beSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1046595e0246bSmrgfi
1046695e0246bSmrg
10467cbc4e2beSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
10468cbc4e2beSmrg    case $host_os in
10469cbc4e2beSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10470cbc4e2beSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
10471cbc4e2beSmrg    esac
10472cbc4e2beSmrgfi
10473cbc4e2beSmrgif test x$ADMIN_MAN_DIR = x    ; then
10474cbc4e2beSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
1047595e0246bSmrgfi
1047695e0246bSmrg
1047795e0246bSmrg
1047895e0246bSmrg
1047995e0246bSmrg
1048095e0246bSmrg
1048195e0246bSmrg
1048295e0246bSmrg
1048395e0246bSmrg
10484cbc4e2beSmrg
10485cbc4e2beSmrg
10486cbc4e2beSmrg
10487cbc4e2beSmrg
10488cbc4e2beSmrg
10489cbc4e2beSmrg
10490cbc4e2beSmrg
10491cbc4e2beSmrgXORG_MAN_PAGE="X Version 11"
10492cbc4e2beSmrg
10493cbc4e2beSmrgMAN_SUBSTS="\
10494cbc4e2beSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10495cbc4e2beSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10496cbc4e2beSmrg	-e 's|__xservername__|Xorg|g' \
10497cbc4e2beSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
10498cbc4e2beSmrg	-e 's|__projectroot__|\$(prefix)|g' \
10499cbc4e2beSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10500cbc4e2beSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10501cbc4e2beSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10502cbc4e2beSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10503cbc4e2beSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10504cbc4e2beSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10505cbc4e2beSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10506cbc4e2beSmrg
10507cbc4e2beSmrg
10508cbc4e2beSmrg
10509cbc4e2beSmrg# Check whether --enable-silent-rules was given.
10510cbc4e2beSmrgif test "${enable_silent_rules+set}" = set; then :
10511cbc4e2beSmrg  enableval=$enable_silent_rules;
1051295e0246bSmrgfi
1051395e0246bSmrg
10514cbc4e2beSmrgcase $enable_silent_rules in # (((
10515cbc4e2beSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
10516cbc4e2beSmrg   no) AM_DEFAULT_VERBOSITY=1;;
10517cbc4e2beSmrg    *) AM_DEFAULT_VERBOSITY=0;;
10518cbc4e2beSmrgesac
10519cbc4e2beSmrgam_make=${MAKE-make}
10520cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10521cbc4e2beSmrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10522cbc4e2beSmrgif ${am_cv_make_support_nested_variables+:} false; then :
10523cbc4e2beSmrg  $as_echo_n "(cached) " >&6
1052495e0246bSmrgelse
10525cbc4e2beSmrg  if $as_echo 'TRUE=$(BAR$(V))
10526cbc4e2beSmrgBAR0=false
10527cbc4e2beSmrgBAR1=true
10528cbc4e2beSmrgV=1
10529cbc4e2beSmrgam__doit:
10530cbc4e2beSmrg	@$(TRUE)
10531cbc4e2beSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10532cbc4e2beSmrg  am_cv_make_support_nested_variables=yes
10533cbc4e2beSmrgelse
10534cbc4e2beSmrg  am_cv_make_support_nested_variables=no
10535cbc4e2beSmrgfi
1053695e0246bSmrgfi
10537cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10538cbc4e2beSmrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
10539cbc4e2beSmrgif test $am_cv_make_support_nested_variables = yes; then
10540cbc4e2beSmrg    AM_V='$(V)'
10541cbc4e2beSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10542cbc4e2beSmrgelse
10543cbc4e2beSmrg  AM_V=$AM_DEFAULT_VERBOSITY
10544cbc4e2beSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10545cbc4e2beSmrgfi
10546cbc4e2beSmrgAM_BACKSLASH='\'
10547cbc4e2beSmrg
1054895e0246bSmrg
1054995e0246bSmrg
1055095e0246bSmrgif test "x$CC" != xcc; then
1055195e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
1055295e0246bSmrg$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1055395e0246bSmrgelse
1055495e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
1055595e0246bSmrg$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1055695e0246bSmrgfi
1055795e0246bSmrgset dummy $CC; ac_cc=`$as_echo "$2" |
1055895e0246bSmrg		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1055995e0246bSmrgif eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
1056095e0246bSmrg  $as_echo_n "(cached) " >&6
1056195e0246bSmrgelse
1056295e0246bSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1056395e0246bSmrg/* end confdefs.h.  */
1056495e0246bSmrg
1056595e0246bSmrgint
1056695e0246bSmrgmain ()
1056795e0246bSmrg{
1056895e0246bSmrg
1056995e0246bSmrg  ;
1057095e0246bSmrg  return 0;
1057195e0246bSmrg}
1057295e0246bSmrg_ACEOF
1057395e0246bSmrg# Make sure it works both with $CC and with simple cc.
1057495e0246bSmrg# We do the test twice because some compilers refuse to overwrite an
1057595e0246bSmrg# existing .o file with -o, though they will create one.
1057695e0246bSmrgac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
1057795e0246bSmrgrm -f conftest2.*
1057895e0246bSmrgif { { case "(($ac_try" in
105792b32c8f7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105802b32c8f7Smrg  *) ac_try_echo=$ac_try;;
105812b32c8f7Smrgesac
1058295e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1058395e0246bSmrg$as_echo "$ac_try_echo"; } >&5
1058495e0246bSmrg  (eval "$ac_try") 2>&5
105852b32c8f7Smrg  ac_status=$?
1058695e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1058795e0246bSmrg  test $ac_status = 0; } &&
1058895e0246bSmrg   test -f conftest2.$ac_objext && { { case "(($ac_try" in
1058995e0246bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1059095e0246bSmrg  *) ac_try_echo=$ac_try;;
1059195e0246bSmrgesac
1059295e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1059395e0246bSmrg$as_echo "$ac_try_echo"; } >&5
1059495e0246bSmrg  (eval "$ac_try") 2>&5
1059595e0246bSmrg  ac_status=$?
1059695e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1059795e0246bSmrg  test $ac_status = 0; };
1059895e0246bSmrgthen
1059995e0246bSmrg  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1060095e0246bSmrg  if test "x$CC" != xcc; then
1060195e0246bSmrg    # Test first that cc exists at all.
1060295e0246bSmrg    if { ac_try='cc -c conftest.$ac_ext >&5'
1060395e0246bSmrg  { { case "(($ac_try" in
1060495e0246bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1060595e0246bSmrg  *) ac_try_echo=$ac_try;;
1060695e0246bSmrgesac
1060795e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1060895e0246bSmrg$as_echo "$ac_try_echo"; } >&5
1060995e0246bSmrg  (eval "$ac_try") 2>&5
1061095e0246bSmrg  ac_status=$?
1061195e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1061295e0246bSmrg  test $ac_status = 0; }; }; then
1061395e0246bSmrg      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
1061495e0246bSmrg      rm -f conftest2.*
1061595e0246bSmrg      if { { case "(($ac_try" in
1061695e0246bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1061795e0246bSmrg  *) ac_try_echo=$ac_try;;
1061895e0246bSmrgesac
1061995e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1062095e0246bSmrg$as_echo "$ac_try_echo"; } >&5
1062195e0246bSmrg  (eval "$ac_try") 2>&5
1062295e0246bSmrg  ac_status=$?
1062395e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1062495e0246bSmrg  test $ac_status = 0; } &&
1062595e0246bSmrg	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
1062695e0246bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1062795e0246bSmrg  *) ac_try_echo=$ac_try;;
1062895e0246bSmrgesac
1062995e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1063095e0246bSmrg$as_echo "$ac_try_echo"; } >&5
1063195e0246bSmrg  (eval "$ac_try") 2>&5
1063295e0246bSmrg  ac_status=$?
1063395e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1063495e0246bSmrg  test $ac_status = 0; };
1063595e0246bSmrg      then
1063695e0246bSmrg	# cc works too.
1063795e0246bSmrg	:
1063895e0246bSmrg      else
1063995e0246bSmrg	# cc exists but doesn't like -o.
1064095e0246bSmrg	eval ac_cv_prog_cc_${ac_cc}_c_o=no
1064195e0246bSmrg      fi
1064295e0246bSmrg    fi
1064395e0246bSmrg  fi
106442b32c8f7Smrgelse
1064595e0246bSmrg  eval ac_cv_prog_cc_${ac_cc}_c_o=no
106462b32c8f7Smrgfi
1064795e0246bSmrgrm -f core conftest*
106482b32c8f7Smrg
106492b32c8f7Smrgfi
1065095e0246bSmrgif eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
1065195e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1065295e0246bSmrg$as_echo "yes" >&6; }
1065395e0246bSmrgelse
1065495e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1065595e0246bSmrg$as_echo "no" >&6; }
106562b32c8f7Smrg
1065795e0246bSmrg$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
106582b32c8f7Smrg
106592b32c8f7Smrgfi
106602b32c8f7Smrg
1066195e0246bSmrg# FIXME: we rely on the cache variable name because
1066295e0246bSmrg# there is no other way.
1066395e0246bSmrgset dummy $CC
1066495e0246bSmrgam_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1066595e0246bSmrgeval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1066695e0246bSmrgif test "$am_t" != yes; then
1066795e0246bSmrg   # Losing compiler, so override with the script.
1066895e0246bSmrg   # FIXME: It is wrong to rewrite CC.
1066995e0246bSmrg   # But if we don't then we get into trouble of one sort or another.
1067095e0246bSmrg   # A longer-term fix would be to have automake use am__CC in this case,
1067195e0246bSmrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1067295e0246bSmrg   CC="$am_aux_dir/compile $CC"
1067395e0246bSmrgfi
106742b32c8f7Smrg
10675eaef79e5Smrg
10676eaef79e5Smrg
10677cbc4e2beSmrgfor ac_func in mkstemp
10678cbc4e2beSmrgdo :
10679cbc4e2beSmrg  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
1068095e0246bSmrgif test "x$ac_cv_func_mkstemp" = xyes; then :
10681cbc4e2beSmrg  cat >>confdefs.h <<_ACEOF
10682cbc4e2beSmrg#define HAVE_MKSTEMP 1
10683cbc4e2beSmrg_ACEOF
10684cbc4e2beSmrg
10685cbc4e2beSmrgfi
10686cbc4e2beSmrgdone
10687cbc4e2beSmrg
10688cbc4e2beSmrg
10689cbc4e2beSmrg# Math libraries & functions
10690cbc4e2beSmrg# - some compilers use builtin inlines for floor when optimizing
10691cbc4e2beSmrg# - lrint() is a C99 addition not found on some older systems
10692cbc4e2beSmrg# - must do the libm check first so that the lrint check will have it in $LIBS
10693cbc4e2beSmrgsave_LIBS="$LIBS"
10694cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
10695cbc4e2beSmrg$as_echo_n "checking for library containing floor... " >&6; }
10696cbc4e2beSmrgif ${ac_cv_search_floor+:} false; then :
10697cbc4e2beSmrg  $as_echo_n "(cached) " >&6
10698cbc4e2beSmrgelse
10699cbc4e2beSmrg  ac_func_search_save_LIBS=$LIBS
10700cbc4e2beSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701cbc4e2beSmrg/* end confdefs.h.  */
10702cbc4e2beSmrg
10703cbc4e2beSmrg/* Override any GCC internal prototype to avoid an error.
10704cbc4e2beSmrg   Use char because int might match the return type of a GCC
10705cbc4e2beSmrg   builtin and then its argument prototype would still apply.  */
10706cbc4e2beSmrg#ifdef __cplusplus
10707cbc4e2beSmrgextern "C"
10708cbc4e2beSmrg#endif
10709cbc4e2beSmrgchar floor ();
10710cbc4e2beSmrgint
10711cbc4e2beSmrgmain ()
10712cbc4e2beSmrg{
10713cbc4e2beSmrgreturn floor ();
10714cbc4e2beSmrg  ;
10715cbc4e2beSmrg  return 0;
10716cbc4e2beSmrg}
10717cbc4e2beSmrg_ACEOF
10718cbc4e2beSmrgfor ac_lib in '' m; do
10719cbc4e2beSmrg  if test -z "$ac_lib"; then
10720cbc4e2beSmrg    ac_res="none required"
10721cbc4e2beSmrg  else
10722cbc4e2beSmrg    ac_res=-l$ac_lib
10723cbc4e2beSmrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10724cbc4e2beSmrg  fi
10725cbc4e2beSmrg  if ac_fn_c_try_link "$LINENO"; then :
10726cbc4e2beSmrg  ac_cv_search_floor=$ac_res
10727cbc4e2beSmrgfi
10728cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
10729cbc4e2beSmrg    conftest$ac_exeext
10730cbc4e2beSmrg  if ${ac_cv_search_floor+:} false; then :
10731cbc4e2beSmrg  break
10732cbc4e2beSmrgfi
10733cbc4e2beSmrgdone
10734cbc4e2beSmrgif ${ac_cv_search_floor+:} false; then :
10735cbc4e2beSmrg
10736cbc4e2beSmrgelse
10737cbc4e2beSmrg  ac_cv_search_floor=no
10738cbc4e2beSmrgfi
10739cbc4e2beSmrgrm conftest.$ac_ext
10740cbc4e2beSmrgLIBS=$ac_func_search_save_LIBS
10741cbc4e2beSmrgfi
10742cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
10743cbc4e2beSmrg$as_echo "$ac_cv_search_floor" >&6; }
10744cbc4e2beSmrgac_res=$ac_cv_search_floor
10745cbc4e2beSmrgif test "$ac_res" != no; then :
10746cbc4e2beSmrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10747cbc4e2beSmrg
10748cbc4e2beSmrgfi
10749cbc4e2beSmrg
10750cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5
10751cbc4e2beSmrg$as_echo_n "checking for library containing lrint... " >&6; }
10752cbc4e2beSmrgif ${ac_cv_search_lrint+:} false; then :
10753cbc4e2beSmrg  $as_echo_n "(cached) " >&6
10754cbc4e2beSmrgelse
10755cbc4e2beSmrg  ac_func_search_save_LIBS=$LIBS
10756cbc4e2beSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757cbc4e2beSmrg/* end confdefs.h.  */
10758cbc4e2beSmrg
10759cbc4e2beSmrg/* Override any GCC internal prototype to avoid an error.
10760cbc4e2beSmrg   Use char because int might match the return type of a GCC
10761cbc4e2beSmrg   builtin and then its argument prototype would still apply.  */
10762cbc4e2beSmrg#ifdef __cplusplus
10763cbc4e2beSmrgextern "C"
10764cbc4e2beSmrg#endif
10765cbc4e2beSmrgchar lrint ();
10766cbc4e2beSmrgint
10767cbc4e2beSmrgmain ()
10768cbc4e2beSmrg{
10769cbc4e2beSmrgreturn lrint ();
10770cbc4e2beSmrg  ;
10771cbc4e2beSmrg  return 0;
10772cbc4e2beSmrg}
10773cbc4e2beSmrg_ACEOF
10774cbc4e2beSmrgfor ac_lib in '' m; do
10775cbc4e2beSmrg  if test -z "$ac_lib"; then
10776cbc4e2beSmrg    ac_res="none required"
10777cbc4e2beSmrg  else
10778cbc4e2beSmrg    ac_res=-l$ac_lib
10779cbc4e2beSmrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10780cbc4e2beSmrg  fi
10781cbc4e2beSmrg  if ac_fn_c_try_link "$LINENO"; then :
10782cbc4e2beSmrg  ac_cv_search_lrint=$ac_res
10783cbc4e2beSmrgfi
10784cbc4e2beSmrgrm -f core conftest.err conftest.$ac_objext \
10785cbc4e2beSmrg    conftest$ac_exeext
10786cbc4e2beSmrg  if ${ac_cv_search_lrint+:} false; then :
10787cbc4e2beSmrg  break
10788cbc4e2beSmrgfi
10789cbc4e2beSmrgdone
10790cbc4e2beSmrgif ${ac_cv_search_lrint+:} false; then :
10791cbc4e2beSmrg
10792cbc4e2beSmrgelse
10793cbc4e2beSmrg  ac_cv_search_lrint=no
10794cbc4e2beSmrgfi
10795cbc4e2beSmrgrm conftest.$ac_ext
10796cbc4e2beSmrgLIBS=$ac_func_search_save_LIBS
10797cbc4e2beSmrgfi
10798cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5
10799cbc4e2beSmrg$as_echo "$ac_cv_search_lrint" >&6; }
10800cbc4e2beSmrgac_res=$ac_cv_search_lrint
10801cbc4e2beSmrgif test "$ac_res" != no; then :
10802cbc4e2beSmrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10803cbc4e2beSmrg
10804cbc4e2beSmrgfi
10805eaef79e5Smrg
10806cbc4e2beSmrgfor ac_func in lrint
10807cbc4e2beSmrgdo :
10808cbc4e2beSmrg  ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
10809cbc4e2beSmrgif test "x$ac_cv_func_lrint" = xyes; then :
10810cbc4e2beSmrg  cat >>confdefs.h <<_ACEOF
10811cbc4e2beSmrg#define HAVE_LRINT 1
10812cbc4e2beSmrg_ACEOF
10813eaef79e5Smrg
10814eaef79e5Smrgfi
10815cbc4e2beSmrgdone
10816eaef79e5Smrg
10817cbc4e2beSmrgMATH_LIBS="$LIBS"
10818cbc4e2beSmrgLIBS="$save_LIBS"
10819eaef79e5Smrg
10820cbc4e2beSmrg
10821cbc4e2beSmrg# Obtain compiler/linker options from dependencies
10822eaef79e5Smrg
10823eaef79e5Smrgpkg_failed=no
1082495e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BMTOA" >&5
108252b32c8f7Smrg$as_echo_n "checking for BMTOA... " >&6; }
108262b32c8f7Smrg
108272b32c8f7Smrgif test -n "$BMTOA_CFLAGS"; then
108282b32c8f7Smrg    pkg_cv_BMTOA_CFLAGS="$BMTOA_CFLAGS"
108292b32c8f7Smrg elif test -n "$PKG_CONFIG"; then
108302b32c8f7Smrg    if test -n "$PKG_CONFIG" && \
10831cbc4e2beSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xproto >= 7.0.17\""; } >&5
10832cbc4e2beSmrg  ($PKG_CONFIG --exists --print-errors "x11 xmu xproto >= 7.0.17") 2>&5
10833eaef79e5Smrg  ac_status=$?
1083495e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1083595e0246bSmrg  test $ac_status = 0; }; then
10836cbc4e2beSmrg  pkg_cv_BMTOA_CFLAGS=`$PKG_CONFIG --cflags "x11 xmu xproto >= 7.0.17" 2>/dev/null`
10837eaef79e5Smrgelse
10838eaef79e5Smrg  pkg_failed=yes
10839eaef79e5Smrgfi
108402b32c8f7Smrg else
108412b32c8f7Smrg    pkg_failed=untried
10842eaef79e5Smrgfi
108432b32c8f7Smrgif test -n "$BMTOA_LIBS"; then
108442b32c8f7Smrg    pkg_cv_BMTOA_LIBS="$BMTOA_LIBS"
108452b32c8f7Smrg elif test -n "$PKG_CONFIG"; then
108462b32c8f7Smrg    if test -n "$PKG_CONFIG" && \
10847cbc4e2beSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xproto >= 7.0.17\""; } >&5
10848cbc4e2beSmrg  ($PKG_CONFIG --exists --print-errors "x11 xmu xproto >= 7.0.17") 2>&5
10849eaef79e5Smrg  ac_status=$?
1085095e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1085195e0246bSmrg  test $ac_status = 0; }; then
10852cbc4e2beSmrg  pkg_cv_BMTOA_LIBS=`$PKG_CONFIG --libs "x11 xmu xproto >= 7.0.17" 2>/dev/null`
10853eaef79e5Smrgelse
10854eaef79e5Smrg  pkg_failed=yes
10855eaef79e5Smrgfi
108562b32c8f7Smrg else
108572b32c8f7Smrg    pkg_failed=untried
10858eaef79e5Smrgfi
10859eaef79e5Smrg
108602b32c8f7Smrg
108612b32c8f7Smrg
10862eaef79e5Smrgif test $pkg_failed = yes; then
108632b32c8f7Smrg
108642b32c8f7Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
108652b32c8f7Smrg        _pkg_short_errors_supported=yes
108662b32c8f7Smrgelse
108672b32c8f7Smrg        _pkg_short_errors_supported=no
108682b32c8f7Smrgfi
108692b32c8f7Smrg        if test $_pkg_short_errors_supported = yes; then
10870cbc4e2beSmrg	        BMTOA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xmu xproto >= 7.0.17" 2>&1`
108712b32c8f7Smrg        else
10872cbc4e2beSmrg	        BMTOA_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xmu xproto >= 7.0.17" 2>&1`
108732b32c8f7Smrg        fi
10874eaef79e5Smrg	# Put the nasty error message in config.log where it belongs
108752b32c8f7Smrg	echo "$BMTOA_PKG_ERRORS" >&5
108762b32c8f7Smrg
10877cbc4e2beSmrg	as_fn_error $? "Package requirements (x11 xmu xproto >= 7.0.17) were not met:
108782b32c8f7Smrg
108792b32c8f7Smrg$BMTOA_PKG_ERRORS
10880eaef79e5Smrg
10881eaef79e5SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
10882eaef79e5Smrginstalled software in a non-standard prefix.
10883eaef79e5Smrg
108842b32c8f7SmrgAlternatively, you may set the environment variables BMTOA_CFLAGS
108852b32c8f7Smrgand BMTOA_LIBS to avoid the need to call pkg-config.
108862b32c8f7SmrgSee the pkg-config man page for more details.
1088795e0246bSmrg" "$LINENO" 5
10888eaef79e5Smrgelif test $pkg_failed = untried; then
1088995e0246bSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
108902b32c8f7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1089195e0246bSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10892eaef79e5Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
10893eaef79e5Smrgpath to pkg-config.
10894eaef79e5Smrg
108952b32c8f7SmrgAlternatively, you may set the environment variables BMTOA_CFLAGS
108962b32c8f7Smrgand BMTOA_LIBS to avoid the need to call pkg-config.
108972b32c8f7SmrgSee the pkg-config man page for more details.
10898eaef79e5Smrg
108992b32c8f7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
1090095e0246bSmrgSee \`config.log' for more details" "$LINENO" 5; }
10901eaef79e5Smrgelse
109022b32c8f7Smrg	BMTOA_CFLAGS=$pkg_cv_BMTOA_CFLAGS
109032b32c8f7Smrg	BMTOA_LIBS=$pkg_cv_BMTOA_LIBS
1090495e0246bSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
109052b32c8f7Smrg$as_echo "yes" >&6; }
10906eaef79e5Smrg	:
10907eaef79e5Smrgfi
10908eaef79e5Smrg
10909eaef79e5Smrgpkg_failed=no
1091095e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATOBM" >&5
109112b32c8f7Smrg$as_echo_n "checking for ATOBM... " >&6; }
109122b32c8f7Smrg
109132b32c8f7Smrgif test -n "$ATOBM_CFLAGS"; then
109142b32c8f7Smrg    pkg_cv_ATOBM_CFLAGS="$ATOBM_CFLAGS"
109152b32c8f7Smrg elif test -n "$PKG_CONFIG"; then
109162b32c8f7Smrg    if test -n "$PKG_CONFIG" && \
10917cbc4e2beSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5
10918cbc4e2beSmrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5
10919eaef79e5Smrg  ac_status=$?
1092095e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1092195e0246bSmrg  test $ac_status = 0; }; then
10922cbc4e2beSmrg  pkg_cv_ATOBM_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17" 2>/dev/null`
10923eaef79e5Smrgelse
10924eaef79e5Smrg  pkg_failed=yes
10925eaef79e5Smrgfi
109262b32c8f7Smrg else
109272b32c8f7Smrg    pkg_failed=untried
10928eaef79e5Smrgfi
109292b32c8f7Smrgif test -n "$ATOBM_LIBS"; then
109302b32c8f7Smrg    pkg_cv_ATOBM_LIBS="$ATOBM_LIBS"
109312b32c8f7Smrg elif test -n "$PKG_CONFIG"; then
109322b32c8f7Smrg    if test -n "$PKG_CONFIG" && \
10933cbc4e2beSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5
10934cbc4e2beSmrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5
10935eaef79e5Smrg  ac_status=$?
1093695e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1093795e0246bSmrg  test $ac_status = 0; }; then
10938cbc4e2beSmrg  pkg_cv_ATOBM_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17" 2>/dev/null`
10939eaef79e5Smrgelse
10940eaef79e5Smrg  pkg_failed=yes
10941eaef79e5Smrgfi
109422b32c8f7Smrg else
109432b32c8f7Smrg    pkg_failed=untried
10944eaef79e5Smrgfi
10945eaef79e5Smrg
10946eaef79e5Smrg
10947eaef79e5Smrg
10948eaef79e5Smrgif test $pkg_failed = yes; then
10949eaef79e5Smrg
109502b32c8f7Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
109512b32c8f7Smrg        _pkg_short_errors_supported=yes
10952eaef79e5Smrgelse
109532b32c8f7Smrg        _pkg_short_errors_supported=no
10954eaef79e5Smrgfi
109552b32c8f7Smrg        if test $_pkg_short_errors_supported = yes; then
10956cbc4e2beSmrg	        ATOBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17" 2>&1`
109572b32c8f7Smrg        else
10958cbc4e2beSmrg	        ATOBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17" 2>&1`
109592b32c8f7Smrg        fi
109602b32c8f7Smrg	# Put the nasty error message in config.log where it belongs
109612b32c8f7Smrg	echo "$ATOBM_PKG_ERRORS" >&5
10962eaef79e5Smrg
10963cbc4e2beSmrg	as_fn_error $? "Package requirements (xproto >= 7.0.17) were not met:
109642b32c8f7Smrg
109652b32c8f7Smrg$ATOBM_PKG_ERRORS
109662b32c8f7Smrg
10967eaef79e5SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
10968eaef79e5Smrginstalled software in a non-standard prefix.
10969eaef79e5Smrg
109702b32c8f7SmrgAlternatively, you may set the environment variables ATOBM_CFLAGS
109712b32c8f7Smrgand ATOBM_LIBS to avoid the need to call pkg-config.
109722b32c8f7SmrgSee the pkg-config man page for more details.
1097395e0246bSmrg" "$LINENO" 5
10974eaef79e5Smrgelif test $pkg_failed = untried; then
1097595e0246bSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
109762b32c8f7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1097795e0246bSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10978eaef79e5Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
10979eaef79e5Smrgpath to pkg-config.
10980eaef79e5Smrg
109812b32c8f7SmrgAlternatively, you may set the environment variables ATOBM_CFLAGS
109822b32c8f7Smrgand ATOBM_LIBS to avoid the need to call pkg-config.
109832b32c8f7SmrgSee the pkg-config man page for more details.
10984eaef79e5Smrg
109852b32c8f7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
1098695e0246bSmrgSee \`config.log' for more details" "$LINENO" 5; }
10987eaef79e5Smrgelse
109882b32c8f7Smrg	ATOBM_CFLAGS=$pkg_cv_ATOBM_CFLAGS
109892b32c8f7Smrg	ATOBM_LIBS=$pkg_cv_ATOBM_LIBS
1099095e0246bSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
109912b32c8f7Smrg$as_echo "yes" >&6; }
10992eaef79e5Smrg	:
10993eaef79e5Smrgfi
10994eaef79e5Smrg
10995eaef79e5Smrgpkg_failed=no
1099695e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BITMAP" >&5
109972b32c8f7Smrg$as_echo_n "checking for BITMAP... " >&6; }
109982b32c8f7Smrg
109992b32c8f7Smrgif test -n "$BITMAP_CFLAGS"; then
110002b32c8f7Smrg    pkg_cv_BITMAP_CFLAGS="$BITMAP_CFLAGS"
110012b32c8f7Smrg elif test -n "$PKG_CONFIG"; then
110022b32c8f7Smrg    if test -n "$PKG_CONFIG" && \
1100395e0246bSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xbitmaps xaw7 xmu\""; } >&5
1100495e0246bSmrg  ($PKG_CONFIG --exists --print-errors "xbitmaps xaw7 xmu") 2>&5
11005eaef79e5Smrg  ac_status=$?
1100695e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1100795e0246bSmrg  test $ac_status = 0; }; then
1100895e0246bSmrg  pkg_cv_BITMAP_CFLAGS=`$PKG_CONFIG --cflags "xbitmaps xaw7 xmu" 2>/dev/null`
11009eaef79e5Smrgelse
11010eaef79e5Smrg  pkg_failed=yes
11011eaef79e5Smrgfi
110122b32c8f7Smrg else
110132b32c8f7Smrg    pkg_failed=untried
11014eaef79e5Smrgfi
110152b32c8f7Smrgif test -n "$BITMAP_LIBS"; then
110162b32c8f7Smrg    pkg_cv_BITMAP_LIBS="$BITMAP_LIBS"
110172b32c8f7Smrg elif test -n "$PKG_CONFIG"; then
110182b32c8f7Smrg    if test -n "$PKG_CONFIG" && \
1101995e0246bSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xbitmaps xaw7 xmu\""; } >&5
1102095e0246bSmrg  ($PKG_CONFIG --exists --print-errors "xbitmaps xaw7 xmu") 2>&5
11021eaef79e5Smrg  ac_status=$?
1102295e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1102395e0246bSmrg  test $ac_status = 0; }; then
1102495e0246bSmrg  pkg_cv_BITMAP_LIBS=`$PKG_CONFIG --libs "xbitmaps xaw7 xmu" 2>/dev/null`
11025eaef79e5Smrgelse
11026eaef79e5Smrg  pkg_failed=yes
11027eaef79e5Smrgfi
110282b32c8f7Smrg else
110292b32c8f7Smrg    pkg_failed=untried
11030eaef79e5Smrgfi
11031eaef79e5Smrg
110322b32c8f7Smrg
110332b32c8f7Smrg
11034eaef79e5Smrgif test $pkg_failed = yes; then
110352b32c8f7Smrg
110362b32c8f7Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
110372b32c8f7Smrg        _pkg_short_errors_supported=yes
110382b32c8f7Smrgelse
110392b32c8f7Smrg        _pkg_short_errors_supported=no
110402b32c8f7Smrgfi
110412b32c8f7Smrg        if test $_pkg_short_errors_supported = yes; then
1104295e0246bSmrg	        BITMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xbitmaps xaw7 xmu" 2>&1`
110432b32c8f7Smrg        else
1104495e0246bSmrg	        BITMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xbitmaps xaw7 xmu" 2>&1`
110452b32c8f7Smrg        fi
11046eaef79e5Smrg	# Put the nasty error message in config.log where it belongs
110472b32c8f7Smrg	echo "$BITMAP_PKG_ERRORS" >&5
110482b32c8f7Smrg
1104995e0246bSmrg	as_fn_error $? "Package requirements (xbitmaps xaw7 xmu) were not met:
110502b32c8f7Smrg
110512b32c8f7Smrg$BITMAP_PKG_ERRORS
110522b32c8f7Smrg
11053eaef79e5SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
11054eaef79e5Smrginstalled software in a non-standard prefix.
11055eaef79e5Smrg
110562b32c8f7SmrgAlternatively, you may set the environment variables BITMAP_CFLAGS
110572b32c8f7Smrgand BITMAP_LIBS to avoid the need to call pkg-config.
110582b32c8f7SmrgSee the pkg-config man page for more details.
1105995e0246bSmrg" "$LINENO" 5
110602b32c8f7Smrgelif test $pkg_failed = untried; then
1106195e0246bSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1106295e0246bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1106395e0246bSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
110642b32c8f7Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
110652b32c8f7Smrgpath to pkg-config.
11066eaef79e5Smrg
1106795e0246bSmrgAlternatively, you may set the environment variables BITMAP_CFLAGS
1106895e0246bSmrgand BITMAP_LIBS to avoid the need to call pkg-config.
110692b32c8f7SmrgSee the pkg-config man page for more details.
11070eaef79e5Smrg
110712b32c8f7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
1107295e0246bSmrgSee \`config.log' for more details" "$LINENO" 5; }
110732b32c8f7Smrgelse
1107495e0246bSmrg	BITMAP_CFLAGS=$pkg_cv_BITMAP_CFLAGS
1107595e0246bSmrg	BITMAP_LIBS=$pkg_cv_BITMAP_LIBS
1107695e0246bSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
110772b32c8f7Smrg$as_echo "yes" >&6; }
110782b32c8f7Smrg	:
110792b32c8f7Smrgfi
11080eaef79e5Smrg
11081eaef79e5Smrg
110822b32c8f7Smrgpkg_failed=no
1108395e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
110842b32c8f7Smrg$as_echo_n "checking for APPDEFS... " >&6; }
110852b32c8f7Smrg
110862b32c8f7Smrgif test -n "$APPDEFS_CFLAGS"; then
110872b32c8f7Smrg    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
110882b32c8f7Smrg elif test -n "$PKG_CONFIG"; then
110892b32c8f7Smrg    if test -n "$PKG_CONFIG" && \
1109095e0246bSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
110912b32c8f7Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
110922b32c8f7Smrg  ac_status=$?
1109395e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1109495e0246bSmrg  test $ac_status = 0; }; then
110952b32c8f7Smrg  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11096eaef79e5Smrgelse
110972b32c8f7Smrg  pkg_failed=yes
110982b32c8f7Smrgfi
110992b32c8f7Smrg else
111002b32c8f7Smrg    pkg_failed=untried
111012b32c8f7Smrgfi
111022b32c8f7Smrgif test -n "$APPDEFS_LIBS"; then
111032b32c8f7Smrg    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
111042b32c8f7Smrg elif test -n "$PKG_CONFIG"; then
111052b32c8f7Smrg    if test -n "$PKG_CONFIG" && \
1110695e0246bSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
111072b32c8f7Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
111082b32c8f7Smrg  ac_status=$?
1110995e0246bSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1111095e0246bSmrg  test $ac_status = 0; }; then
111112b32c8f7Smrg  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
111122b32c8f7Smrgelse
111132b32c8f7Smrg  pkg_failed=yes
111142b32c8f7Smrgfi
111152b32c8f7Smrg else
111162b32c8f7Smrg    pkg_failed=untried
11117eaef79e5Smrgfi
11118eaef79e5Smrg
11119eaef79e5Smrg
11120eaef79e5Smrg
111212b32c8f7Smrgif test $pkg_failed = yes; then
11122eaef79e5Smrg
111232b32c8f7Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
111242b32c8f7Smrg        _pkg_short_errors_supported=yes
111252b32c8f7Smrgelse
111262b32c8f7Smrg        _pkg_short_errors_supported=no
111272b32c8f7Smrgfi
111282b32c8f7Smrg        if test $_pkg_short_errors_supported = yes; then
111292b32c8f7Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
111302b32c8f7Smrg        else
111312b32c8f7Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
111322b32c8f7Smrg        fi
111332b32c8f7Smrg	# Put the nasty error message in config.log where it belongs
111342b32c8f7Smrg	echo "$APPDEFS_PKG_ERRORS" >&5
11135eaef79e5Smrg
1113695e0246bSmrg	as_fn_error $? "Package requirements (xt) were not met:
111372b32c8f7Smrg
111382b32c8f7Smrg$APPDEFS_PKG_ERRORS
111392b32c8f7Smrg
111402b32c8f7SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
111412b32c8f7Smrginstalled software in a non-standard prefix.
111422b32c8f7Smrg
111432b32c8f7SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
111442b32c8f7Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
111452b32c8f7SmrgSee the pkg-config man page for more details.
1114695e0246bSmrg" "$LINENO" 5
111472b32c8f7Smrgelif test $pkg_failed = untried; then
1114895e0246bSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
111492b32c8f7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1115095e0246bSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
111512b32c8f7Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
111522b32c8f7Smrgpath to pkg-config.
111532b32c8f7Smrg
111542b32c8f7SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
111552b32c8f7Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
111562b32c8f7SmrgSee the pkg-config man page for more details.
111572b32c8f7Smrg
111582b32c8f7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
1115995e0246bSmrgSee \`config.log' for more details" "$LINENO" 5; }
111602b32c8f7Smrgelse
111612b32c8f7Smrg	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
111622b32c8f7Smrg	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
1116395e0246bSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
111642b32c8f7Smrg$as_echo "yes" >&6; }
111652b32c8f7Smrg	:
111662b32c8f7Smrgfi
1116795e0246bSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
111682b32c8f7Smrg
111692b32c8f7Smrg# Check whether --with-appdefaultdir was given.
1117095e0246bSmrgif test "${with_appdefaultdir+set}" = set; then :
111712b32c8f7Smrg  withval=$with_appdefaultdir; appdefaultdir="$withval"
111722b32c8f7Smrgelse
111732b32c8f7Smrg  appdefaultdir="${xt_appdefaultdir}"
111742b32c8f7Smrgfi
11175eaef79e5Smrg
11176eaef79e5Smrg
11177eaef79e5Smrg
1117895e0246bSmrgac_config_files="$ac_config_files Makefile man/Makefile"
11179eaef79e5Smrg
11180eaef79e5Smrgcat >confcache <<\_ACEOF
11181eaef79e5Smrg# This file is a shell script that caches the results of configure
11182eaef79e5Smrg# tests run on this system so they can be shared between configure
11183eaef79e5Smrg# scripts and configure runs, see configure's option --config-cache.
11184eaef79e5Smrg# It is not useful on other systems.  If it contains results you don't
11185eaef79e5Smrg# want to keep, you may remove or edit it.
11186eaef79e5Smrg#
11187eaef79e5Smrg# config.status only pays attention to the cache file if you give it
11188eaef79e5Smrg# the --recheck option to rerun configure.
11189eaef79e5Smrg#
11190eaef79e5Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
11191eaef79e5Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
11192eaef79e5Smrg# following values.
11193eaef79e5Smrg
11194eaef79e5Smrg_ACEOF
11195eaef79e5Smrg
11196eaef79e5Smrg# The following way of writing the cache mishandles newlines in values,
11197eaef79e5Smrg# but we know of no workaround that is simple, portable, and efficient.
11198eaef79e5Smrg# So, we kill variables containing newlines.
11199eaef79e5Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
11200eaef79e5Smrg# and sets the high bit in the cache file unless we assign to the vars.
11201eaef79e5Smrg(
11202eaef79e5Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11203eaef79e5Smrg    eval ac_val=\$$ac_var
11204eaef79e5Smrg    case $ac_val in #(
11205eaef79e5Smrg    *${as_nl}*)
11206eaef79e5Smrg      case $ac_var in #(
1120795e0246bSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
112082b32c8f7Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11209eaef79e5Smrg      esac
11210eaef79e5Smrg      case $ac_var in #(
11211eaef79e5Smrg      _ | IFS | as_nl) ;; #(
112122b32c8f7Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1121395e0246bSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
11214eaef79e5Smrg      esac ;;
11215eaef79e5Smrg    esac
11216eaef79e5Smrg  done
11217eaef79e5Smrg
11218eaef79e5Smrg  (set) 2>&1 |
11219eaef79e5Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11220eaef79e5Smrg    *${as_nl}ac_space=\ *)
1122195e0246bSmrg      # `set' does not quote correctly, so add quotes: double-quote
1122295e0246bSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
11223eaef79e5Smrg      sed -n \
11224eaef79e5Smrg	"s/'/'\\\\''/g;
11225eaef79e5Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11226eaef79e5Smrg      ;; #(
11227eaef79e5Smrg    *)
11228eaef79e5Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
11229eaef79e5Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11230eaef79e5Smrg      ;;
11231eaef79e5Smrg    esac |
11232eaef79e5Smrg    sort
11233eaef79e5Smrg) |
11234eaef79e5Smrg  sed '
11235eaef79e5Smrg     /^ac_cv_env_/b end
11236eaef79e5Smrg     t clear
11237eaef79e5Smrg     :clear
11238eaef79e5Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11239eaef79e5Smrg     t end
11240eaef79e5Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11241eaef79e5Smrg     :end' >>confcache
11242eaef79e5Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11243eaef79e5Smrg  if test -w "$cache_file"; then
1124495e0246bSmrg    if test "x$cache_file" != "x/dev/null"; then
1124595e0246bSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
112462b32c8f7Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
1124795e0246bSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
1124895e0246bSmrg	cat confcache >"$cache_file"
1124995e0246bSmrg      else
1125095e0246bSmrg        case $cache_file in #(
1125195e0246bSmrg        */* | ?:*)
1125295e0246bSmrg	  mv -f confcache "$cache_file"$$ &&
1125395e0246bSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
1125495e0246bSmrg        *)
1125595e0246bSmrg	  mv -f confcache "$cache_file" ;;
1125695e0246bSmrg	esac
1125795e0246bSmrg      fi
1125895e0246bSmrg    fi
11259eaef79e5Smrg  else
1126095e0246bSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
112612b32c8f7Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11262eaef79e5Smrg  fi
11263eaef79e5Smrgfi
11264eaef79e5Smrgrm -f confcache
11265eaef79e5Smrg
11266eaef79e5Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
11267eaef79e5Smrg# Let make expand exec_prefix.
11268eaef79e5Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11269eaef79e5Smrg
11270eaef79e5SmrgDEFS=-DHAVE_CONFIG_H
11271eaef79e5Smrg
11272eaef79e5Smrgac_libobjs=
11273eaef79e5Smrgac_ltlibobjs=
1127495e0246bSmrgU=
11275eaef79e5Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11276eaef79e5Smrg  # 1. Remove the extension, and $U if already installed.
11277eaef79e5Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
112782b32c8f7Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11279eaef79e5Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11280eaef79e5Smrg  #    will be set to the directory where LIBOBJS objects are built.
1128195e0246bSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1128295e0246bSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11283eaef79e5Smrgdone
11284eaef79e5SmrgLIBOBJS=$ac_libobjs
11285eaef79e5Smrg
11286eaef79e5SmrgLTLIBOBJS=$ac_ltlibobjs
11287eaef79e5Smrg
11288eaef79e5Smrg
11289cbc4e2beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11290cbc4e2beSmrg$as_echo_n "checking that generated files are newer than configure... " >&6; }
11291cbc4e2beSmrg   if test -n "$am_sleep_pid"; then
11292cbc4e2beSmrg     # Hide warnings about reused PIDs.
11293cbc4e2beSmrg     wait $am_sleep_pid 2>/dev/null
11294cbc4e2beSmrg   fi
11295cbc4e2beSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11296cbc4e2beSmrg$as_echo "done" >&6; }
112972b32c8f7Smrg if test -n "$EXEEXT"; then
112982b32c8f7Smrg  am__EXEEXT_TRUE=
112992b32c8f7Smrg  am__EXEEXT_FALSE='#'
113002b32c8f7Smrgelse
113012b32c8f7Smrg  am__EXEEXT_TRUE='#'
113022b32c8f7Smrg  am__EXEEXT_FALSE=
113032b32c8f7Smrgfi
113042b32c8f7Smrg
11305eaef79e5Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
1130695e0246bSmrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
1130795e0246bSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
11308eaef79e5Smrgfi
11309eaef79e5Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1131095e0246bSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
1131195e0246bSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1131295e0246bSmrgfi
1131395e0246bSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1131495e0246bSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1131595e0246bSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
11316eaef79e5Smrgfi
11317eaef79e5Smrg
1131895e0246bSmrg: "${CONFIG_STATUS=./config.status}"
113192b32c8f7Smrgac_write_fail=0
11320eaef79e5Smrgac_clean_files_save=$ac_clean_files
11321eaef79e5Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
1132295e0246bSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
113232b32c8f7Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
1132495e0246bSmrgas_write_fail=0
1132595e0246bSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11326eaef79e5Smrg#! $SHELL
11327eaef79e5Smrg# Generated by $as_me.
11328eaef79e5Smrg# Run this file to recreate the current configuration.
11329eaef79e5Smrg# Compiler output produced by configure, useful for debugging
11330eaef79e5Smrg# configure, is in config.log if it exists.
11331eaef79e5Smrg
11332eaef79e5Smrgdebug=false
11333eaef79e5Smrgac_cs_recheck=false
11334eaef79e5Smrgac_cs_silent=false
11335eaef79e5Smrg
1133695e0246bSmrgSHELL=\${CONFIG_SHELL-$SHELL}
1133795e0246bSmrgexport SHELL
1133895e0246bSmrg_ASEOF
1133995e0246bSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
1134095e0246bSmrg## -------------------- ##
1134195e0246bSmrg## M4sh Initialization. ##
1134295e0246bSmrg## -------------------- ##
11343eaef79e5Smrg
113442b32c8f7Smrg# Be more Bourne compatible
113452b32c8f7SmrgDUALCASE=1; export DUALCASE # for MKS sh
1134695e0246bSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11347eaef79e5Smrg  emulate sh
11348eaef79e5Smrg  NULLCMD=:
113492b32c8f7Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11350eaef79e5Smrg  # is contrary to our usage.  Disable this feature.
11351eaef79e5Smrg  alias -g '${1+"$@"}'='"$@"'
11352eaef79e5Smrg  setopt NO_GLOB_SUBST
11353eaef79e5Smrgelse
1135495e0246bSmrg  case `(set -o) 2>/dev/null` in #(
1135595e0246bSmrg  *posix*) :
1135695e0246bSmrg    set -o posix ;; #(
1135795e0246bSmrg  *) :
1135895e0246bSmrg     ;;
113592b32c8f7Smrgesac
11360eaef79e5Smrgfi
113612b32c8f7Smrg
113622b32c8f7Smrg
113632b32c8f7Smrgas_nl='
113642b32c8f7Smrg'
113652b32c8f7Smrgexport as_nl
113662b32c8f7Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
113672b32c8f7Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
113682b32c8f7Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
113692b32c8f7Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1137095e0246bSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
1137195e0246bSmrg# but without wasting forks for bash or zsh.
1137295e0246bSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
1137395e0246bSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
1137495e0246bSmrg  as_echo='print -r --'
1137595e0246bSmrg  as_echo_n='print -rn --'
1137695e0246bSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
113772b32c8f7Smrg  as_echo='printf %s\n'
113782b32c8f7Smrg  as_echo_n='printf %s'
113792b32c8f7Smrgelse
113802b32c8f7Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
113812b32c8f7Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
113822b32c8f7Smrg    as_echo_n='/usr/ucb/echo -n'
11383eaef79e5Smrg  else
113842b32c8f7Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
113852b32c8f7Smrg    as_echo_n_body='eval
113862b32c8f7Smrg      arg=$1;
1138795e0246bSmrg      case $arg in #(
113882b32c8f7Smrg      *"$as_nl"*)
113892b32c8f7Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
113902b32c8f7Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
113912b32c8f7Smrg      esac;
113922b32c8f7Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
113932b32c8f7Smrg    '
113942b32c8f7Smrg    export as_echo_n_body
113952b32c8f7Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
11396eaef79e5Smrg  fi
113972b32c8f7Smrg  export as_echo_body
113982b32c8f7Smrg  as_echo='sh -c $as_echo_body as_echo'
113992b32c8f7Smrgfi
114002b32c8f7Smrg
114012b32c8f7Smrg# The user is always right.
114022b32c8f7Smrgif test "${PATH_SEPARATOR+set}" != set; then
114032b32c8f7Smrg  PATH_SEPARATOR=:
114042b32c8f7Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
114052b32c8f7Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
114062b32c8f7Smrg      PATH_SEPARATOR=';'
114072b32c8f7Smrg  }
11408eaef79e5Smrgfi
11409eaef79e5Smrg
11410eaef79e5Smrg
11411eaef79e5Smrg# IFS
11412eaef79e5Smrg# We need space, tab and new line, in precisely that order.  Quoting is
11413eaef79e5Smrg# there to prevent editors from complaining about space-tab.
11414eaef79e5Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11415eaef79e5Smrg# splitting by setting IFS to empty value.)
11416eaef79e5SmrgIFS=" ""	$as_nl"
11417eaef79e5Smrg
11418eaef79e5Smrg# Find who we are.  Look in the path if we contain no directory separator.
1141995e0246bSmrgas_myself=
1142095e0246bSmrgcase $0 in #((
11421eaef79e5Smrg  *[\\/]* ) as_myself=$0 ;;
11422eaef79e5Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423eaef79e5Smrgfor as_dir in $PATH
11424eaef79e5Smrgdo
11425eaef79e5Smrg  IFS=$as_save_IFS
11426eaef79e5Smrg  test -z "$as_dir" && as_dir=.
1142795e0246bSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1142895e0246bSmrg  done
11429eaef79e5SmrgIFS=$as_save_IFS
11430eaef79e5Smrg
11431eaef79e5Smrg     ;;
11432eaef79e5Smrgesac
11433eaef79e5Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
11434eaef79e5Smrg# in which case we are not to be found in the path.
11435eaef79e5Smrgif test "x$as_myself" = x; then
11436eaef79e5Smrg  as_myself=$0
11437eaef79e5Smrgfi
11438eaef79e5Smrgif test ! -f "$as_myself"; then
114392b32c8f7Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1144095e0246bSmrg  exit 1
11441eaef79e5Smrgfi
11442eaef79e5Smrg
1144395e0246bSmrg# Unset variables that we do not need and which cause bugs (e.g. in
1144495e0246bSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1144595e0246bSmrg# suppresses any "Segmentation fault" message there.  '((' could
1144695e0246bSmrg# trigger a bug in pdksh 5.2.14.
1144795e0246bSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1144895e0246bSmrgdo eval test x\${$as_var+set} = xset \
1144995e0246bSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11450eaef79e5Smrgdone
11451eaef79e5SmrgPS1='$ '
11452eaef79e5SmrgPS2='> '
11453eaef79e5SmrgPS4='+ '
11454eaef79e5Smrg
11455eaef79e5Smrg# NLS nuisances.
114562b32c8f7SmrgLC_ALL=C
114572b32c8f7Smrgexport LC_ALL
114582b32c8f7SmrgLANGUAGE=C
114592b32c8f7Smrgexport LANGUAGE
11460eaef79e5Smrg
1146195e0246bSmrg# CDPATH.
1146295e0246bSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1146395e0246bSmrg
1146495e0246bSmrg
1146595e0246bSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
1146695e0246bSmrg# ----------------------------------------
1146795e0246bSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
1146895e0246bSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1146995e0246bSmrg# script with STATUS, using 1 if that was 0.
1147095e0246bSmrgas_fn_error ()
1147195e0246bSmrg{
1147295e0246bSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
1147395e0246bSmrg  if test "$4"; then
1147495e0246bSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1147595e0246bSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1147695e0246bSmrg  fi
1147795e0246bSmrg  $as_echo "$as_me: error: $2" >&2
1147895e0246bSmrg  as_fn_exit $as_status
1147995e0246bSmrg} # as_fn_error
1148095e0246bSmrg
1148195e0246bSmrg
1148295e0246bSmrg# as_fn_set_status STATUS
1148395e0246bSmrg# -----------------------
1148495e0246bSmrg# Set $? to STATUS, without forking.
1148595e0246bSmrgas_fn_set_status ()
1148695e0246bSmrg{
1148795e0246bSmrg  return $1
1148895e0246bSmrg} # as_fn_set_status
1148995e0246bSmrg
1149095e0246bSmrg# as_fn_exit STATUS
1149195e0246bSmrg# -----------------
1149295e0246bSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
1149395e0246bSmrgas_fn_exit ()
1149495e0246bSmrg{
1149595e0246bSmrg  set +e
1149695e0246bSmrg  as_fn_set_status $1
1149795e0246bSmrg  exit $1
1149895e0246bSmrg} # as_fn_exit
1149995e0246bSmrg
1150095e0246bSmrg# as_fn_unset VAR
1150195e0246bSmrg# ---------------
1150295e0246bSmrg# Portably unset VAR.
1150395e0246bSmrgas_fn_unset ()
1150495e0246bSmrg{
1150595e0246bSmrg  { eval $1=; unset $1;}
1150695e0246bSmrg}
1150795e0246bSmrgas_unset=as_fn_unset
1150895e0246bSmrg# as_fn_append VAR VALUE
1150995e0246bSmrg# ----------------------
1151095e0246bSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
1151195e0246bSmrg# advantage of any shell optimizations that allow amortized linear growth over
1151295e0246bSmrg# repeated appends, instead of the typical quadratic growth present in naive
1151395e0246bSmrg# implementations.
1151495e0246bSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
1151595e0246bSmrg  eval 'as_fn_append ()
1151695e0246bSmrg  {
1151795e0246bSmrg    eval $1+=\$2
1151895e0246bSmrg  }'
1151995e0246bSmrgelse
1152095e0246bSmrg  as_fn_append ()
1152195e0246bSmrg  {
1152295e0246bSmrg    eval $1=\$$1\$2
1152395e0246bSmrg  }
1152495e0246bSmrgfi # as_fn_append
1152595e0246bSmrg
1152695e0246bSmrg# as_fn_arith ARG...
1152795e0246bSmrg# ------------------
1152895e0246bSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
1152995e0246bSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
1153095e0246bSmrg# must be portable across $(()) and expr.
1153195e0246bSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
1153295e0246bSmrg  eval 'as_fn_arith ()
1153395e0246bSmrg  {
1153495e0246bSmrg    as_val=$(( $* ))
1153595e0246bSmrg  }'
1153695e0246bSmrgelse
1153795e0246bSmrg  as_fn_arith ()
1153895e0246bSmrg  {
1153995e0246bSmrg    as_val=`expr "$@" || test $? -eq 1`
1154095e0246bSmrg  }
1154195e0246bSmrgfi # as_fn_arith
1154295e0246bSmrg
1154395e0246bSmrg
11544eaef79e5Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
11545eaef79e5Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11546eaef79e5Smrg  as_expr=expr
11547eaef79e5Smrgelse
11548eaef79e5Smrg  as_expr=false
11549eaef79e5Smrgfi
11550eaef79e5Smrg
11551eaef79e5Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11552eaef79e5Smrg  as_basename=basename
11553eaef79e5Smrgelse
11554eaef79e5Smrg  as_basename=false
11555eaef79e5Smrgfi
11556eaef79e5Smrg
1155795e0246bSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
1155895e0246bSmrg  as_dirname=dirname
1155995e0246bSmrgelse
1156095e0246bSmrg  as_dirname=false
1156195e0246bSmrgfi
11562eaef79e5Smrg
11563eaef79e5Smrgas_me=`$as_basename -- "$0" ||
11564eaef79e5Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11565eaef79e5Smrg	 X"$0" : 'X\(//\)$' \| \
11566eaef79e5Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
115672b32c8f7Smrg$as_echo X/"$0" |
11568eaef79e5Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
11569eaef79e5Smrg	    s//\1/
11570eaef79e5Smrg	    q
11571eaef79e5Smrg	  }
11572eaef79e5Smrg	  /^X\/\(\/\/\)$/{
11573eaef79e5Smrg	    s//\1/
11574eaef79e5Smrg	    q
11575eaef79e5Smrg	  }
11576eaef79e5Smrg	  /^X\/\(\/\).*/{
11577eaef79e5Smrg	    s//\1/
11578eaef79e5Smrg	    q
11579eaef79e5Smrg	  }
11580eaef79e5Smrg	  s/.*/./; q'`
11581eaef79e5Smrg
1158295e0246bSmrg# Avoid depending upon Character Ranges.
1158395e0246bSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
1158495e0246bSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1158595e0246bSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
1158695e0246bSmrgas_cr_digits='0123456789'
1158795e0246bSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
11588eaef79e5Smrg
11589eaef79e5SmrgECHO_C= ECHO_N= ECHO_T=
1159095e0246bSmrgcase `echo -n x` in #(((((
11591eaef79e5Smrg-n*)
1159295e0246bSmrg  case `echo 'xy\c'` in
11593eaef79e5Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
1159495e0246bSmrg  xy)  ECHO_C='\c';;
1159595e0246bSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
1159695e0246bSmrg       ECHO_T='	';;
11597eaef79e5Smrg  esac;;
11598eaef79e5Smrg*)
11599eaef79e5Smrg  ECHO_N='-n';;
11600eaef79e5Smrgesac
11601eaef79e5Smrg
11602eaef79e5Smrgrm -f conf$$ conf$$.exe conf$$.file
11603eaef79e5Smrgif test -d conf$$.dir; then
11604eaef79e5Smrg  rm -f conf$$.dir/conf$$.file
11605eaef79e5Smrgelse
11606eaef79e5Smrg  rm -f conf$$.dir
116072b32c8f7Smrg  mkdir conf$$.dir 2>/dev/null
116082b32c8f7Smrgfi
116092b32c8f7Smrgif (echo >conf$$.file) 2>/dev/null; then
116102b32c8f7Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
116112b32c8f7Smrg    as_ln_s='ln -s'
116122b32c8f7Smrg    # ... but there are two gotchas:
116132b32c8f7Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
116142b32c8f7Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
116152b32c8f7Smrg    # In both cases, we have to default to `cp -p'.
116162b32c8f7Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
116172b32c8f7Smrg      as_ln_s='cp -p'
116182b32c8f7Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
116192b32c8f7Smrg    as_ln_s=ln
116202b32c8f7Smrg  else
11621eaef79e5Smrg    as_ln_s='cp -p'
116222b32c8f7Smrg  fi
11623eaef79e5Smrgelse
11624eaef79e5Smrg  as_ln_s='cp -p'
11625eaef79e5Smrgfi
11626eaef79e5Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11627eaef79e5Smrgrmdir conf$$.dir 2>/dev/null
11628eaef79e5Smrg
1162995e0246bSmrg
1163095e0246bSmrg# as_fn_mkdir_p
1163195e0246bSmrg# -------------
1163295e0246bSmrg# Create "$as_dir" as a directory, including parents if necessary.
1163395e0246bSmrgas_fn_mkdir_p ()
1163495e0246bSmrg{
1163595e0246bSmrg
1163695e0246bSmrg  case $as_dir in #(
1163795e0246bSmrg  -*) as_dir=./$as_dir;;
1163895e0246bSmrg  esac
1163995e0246bSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
1164095e0246bSmrg    as_dirs=
1164195e0246bSmrg    while :; do
1164295e0246bSmrg      case $as_dir in #(
1164395e0246bSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1164495e0246bSmrg      *) as_qdir=$as_dir;;
1164595e0246bSmrg      esac
1164695e0246bSmrg      as_dirs="'$as_qdir' $as_dirs"
1164795e0246bSmrg      as_dir=`$as_dirname -- "$as_dir" ||
1164895e0246bSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164995e0246bSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
1165095e0246bSmrg	 X"$as_dir" : 'X\(//\)$' \| \
1165195e0246bSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1165295e0246bSmrg$as_echo X"$as_dir" |
1165395e0246bSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1165495e0246bSmrg	    s//\1/
1165595e0246bSmrg	    q
1165695e0246bSmrg	  }
1165795e0246bSmrg	  /^X\(\/\/\)[^/].*/{
1165895e0246bSmrg	    s//\1/
1165995e0246bSmrg	    q
1166095e0246bSmrg	  }
1166195e0246bSmrg	  /^X\(\/\/\)$/{
1166295e0246bSmrg	    s//\1/
1166395e0246bSmrg	    q
1166495e0246bSmrg	  }
1166595e0246bSmrg	  /^X\(\/\).*/{
1166695e0246bSmrg	    s//\1/
1166795e0246bSmrg	    q
1166895e0246bSmrg	  }
1166995e0246bSmrg	  s/.*/./; q'`
1167095e0246bSmrg      test -d "$as_dir" && break
1167195e0246bSmrg    done
1167295e0246bSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
1167395e0246bSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1167495e0246bSmrg
1167595e0246bSmrg
1167695e0246bSmrg} # as_fn_mkdir_p
11677eaef79e5Smrgif mkdir -p . 2>/dev/null; then
1167895e0246bSmrg  as_mkdir_p='mkdir -p "$as_dir"'
11679eaef79e5Smrgelse
11680eaef79e5Smrg  test -d ./-p && rmdir ./-p
11681eaef79e5Smrg  as_mkdir_p=false
11682eaef79e5Smrgfi
11683eaef79e5Smrg
116842b32c8f7Smrgif test -x / >/dev/null 2>&1; then
116852b32c8f7Smrg  as_test_x='test -x'
11686eaef79e5Smrgelse
116872b32c8f7Smrg  if ls -dL / >/dev/null 2>&1; then
116882b32c8f7Smrg    as_ls_L_option=L
116892b32c8f7Smrg  else
116902b32c8f7Smrg    as_ls_L_option=
116912b32c8f7Smrg  fi
116922b32c8f7Smrg  as_test_x='
116932b32c8f7Smrg    eval sh -c '\''
116942b32c8f7Smrg      if test -d "$1"; then
116952b32c8f7Smrg	test -d "$1/.";
116962b32c8f7Smrg      else
1169795e0246bSmrg	case $1 in #(
116982b32c8f7Smrg	-*)set "./$1";;
116992b32c8f7Smrg	esac;
1170095e0246bSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
117012b32c8f7Smrg	???[sx]*):;;*)false;;esac;fi
117022b32c8f7Smrg    '\'' sh
117032b32c8f7Smrg  '
11704eaef79e5Smrgfi
117052b32c8f7Smrgas_executable_p=$as_test_x
11706eaef79e5Smrg
11707eaef79e5Smrg# Sed expression to map a string onto a valid CPP name.
11708eaef79e5Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11709eaef79e5Smrg
11710eaef79e5Smrg# Sed expression to map a string onto a valid variable name.
11711eaef79e5Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11712eaef79e5Smrg
11713eaef79e5Smrg
11714eaef79e5Smrgexec 6>&1
1171595e0246bSmrg## ----------------------------------- ##
1171695e0246bSmrg## Main body of $CONFIG_STATUS script. ##
1171795e0246bSmrg## ----------------------------------- ##
1171895e0246bSmrg_ASEOF
1171995e0246bSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11720eaef79e5Smrg
1172195e0246bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1172295e0246bSmrg# Save the log message, to keep $0 and so on meaningful, and to
11723eaef79e5Smrg# report actual input values of CONFIG_FILES etc. instead of their
11724eaef79e5Smrg# values after options handling.
11725eaef79e5Smrgac_log="
11726cbc4e2beSmrgThis file was extended by bitmap $as_me 1.0.7, which was
1172795e0246bSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
11728eaef79e5Smrg
11729eaef79e5Smrg  CONFIG_FILES    = $CONFIG_FILES
11730eaef79e5Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
11731eaef79e5Smrg  CONFIG_LINKS    = $CONFIG_LINKS
11732eaef79e5Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
11733eaef79e5Smrg  $ $0 $@
11734eaef79e5Smrg
11735eaef79e5Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
11736eaef79e5Smrg"
11737eaef79e5Smrg
11738eaef79e5Smrg_ACEOF
11739eaef79e5Smrg
117402b32c8f7Smrgcase $ac_config_files in *"
117412b32c8f7Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
117422b32c8f7Smrgesac
117432b32c8f7Smrg
117442b32c8f7Smrgcase $ac_config_headers in *"
117452b32c8f7Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
117462b32c8f7Smrgesac
117472b32c8f7Smrg
117482b32c8f7Smrg
117492b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11750eaef79e5Smrg# Files that config.status was made for.
11751eaef79e5Smrgconfig_files="$ac_config_files"
11752eaef79e5Smrgconfig_headers="$ac_config_headers"
11753eaef79e5Smrgconfig_commands="$ac_config_commands"
11754eaef79e5Smrg
11755eaef79e5Smrg_ACEOF
11756eaef79e5Smrg
117572b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11758eaef79e5Smrgac_cs_usage="\
1175995e0246bSmrg\`$as_me' instantiates files and other configuration actions
1176095e0246bSmrgfrom templates according to the current configuration.  Unless the files
1176195e0246bSmrgand actions are specified as TAGs, all are instantiated by default.
11762eaef79e5Smrg
1176395e0246bSmrgUsage: $0 [OPTION]... [TAG]...
11764eaef79e5Smrg
11765eaef79e5Smrg  -h, --help       print this help, then exit
117662b32c8f7Smrg  -V, --version    print version number and configuration settings, then exit
1176795e0246bSmrg      --config     print configuration, then exit
117682b32c8f7Smrg  -q, --quiet, --silent
117692b32c8f7Smrg                   do not print progress messages
11770eaef79e5Smrg  -d, --debug      don't remove temporary files
11771eaef79e5Smrg      --recheck    update $as_me by reconfiguring in the same conditions
117722b32c8f7Smrg      --file=FILE[:TEMPLATE]
117732b32c8f7Smrg                   instantiate the configuration file FILE
117742b32c8f7Smrg      --header=FILE[:TEMPLATE]
117752b32c8f7Smrg                   instantiate the configuration header FILE
11776eaef79e5Smrg
11777eaef79e5SmrgConfiguration files:
11778eaef79e5Smrg$config_files
11779eaef79e5Smrg
11780eaef79e5SmrgConfiguration headers:
11781eaef79e5Smrg$config_headers
11782eaef79e5Smrg
11783eaef79e5SmrgConfiguration commands:
11784eaef79e5Smrg$config_commands
11785eaef79e5Smrg
1178695e0246bSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11787eaef79e5Smrg
11788eaef79e5Smrg_ACEOF
117892b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1179095e0246bSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11791eaef79e5Smrgac_cs_version="\\
11792cbc4e2beSmrgbitmap config.status 1.0.7
1179395e0246bSmrgconfigured by $0, generated by GNU Autoconf 2.68,
1179495e0246bSmrg  with options \\"\$ac_cs_config\\"
11795eaef79e5Smrg
1179695e0246bSmrgCopyright (C) 2010 Free Software Foundation, Inc.
11797eaef79e5SmrgThis config.status script is free software; the Free Software Foundation
11798eaef79e5Smrggives unlimited permission to copy, distribute and modify it."
11799eaef79e5Smrg
11800eaef79e5Smrgac_pwd='$ac_pwd'
11801eaef79e5Smrgsrcdir='$srcdir'
11802eaef79e5SmrgINSTALL='$INSTALL'
118032b32c8f7SmrgMKDIR_P='$MKDIR_P'
118042b32c8f7SmrgAWK='$AWK'
118052b32c8f7Smrgtest -n "\$AWK" || AWK=awk
11806eaef79e5Smrg_ACEOF
11807eaef79e5Smrg
118082b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
118092b32c8f7Smrg# The default lists apply if the user does not specify any file.
11810eaef79e5Smrgac_need_defaults=:
11811eaef79e5Smrgwhile test $# != 0
11812eaef79e5Smrgdo
11813eaef79e5Smrg  case $1 in
1181495e0246bSmrg  --*=?*)
11815eaef79e5Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11816eaef79e5Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11817eaef79e5Smrg    ac_shift=:
11818eaef79e5Smrg    ;;
1181995e0246bSmrg  --*=)
1182095e0246bSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1182195e0246bSmrg    ac_optarg=
1182295e0246bSmrg    ac_shift=:
1182395e0246bSmrg    ;;
11824eaef79e5Smrg  *)
11825eaef79e5Smrg    ac_option=$1
11826eaef79e5Smrg    ac_optarg=$2
11827eaef79e5Smrg    ac_shift=shift
11828eaef79e5Smrg    ;;
11829eaef79e5Smrg  esac
11830eaef79e5Smrg
11831eaef79e5Smrg  case $ac_option in
11832eaef79e5Smrg  # Handling of the options.
11833eaef79e5Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11834eaef79e5Smrg    ac_cs_recheck=: ;;
11835eaef79e5Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
118362b32c8f7Smrg    $as_echo "$ac_cs_version"; exit ;;
1183795e0246bSmrg  --config | --confi | --conf | --con | --co | --c )
1183895e0246bSmrg    $as_echo "$ac_cs_config"; exit ;;
11839eaef79e5Smrg  --debug | --debu | --deb | --de | --d | -d )
11840eaef79e5Smrg    debug=: ;;
11841eaef79e5Smrg  --file | --fil | --fi | --f )
11842eaef79e5Smrg    $ac_shift
118432b32c8f7Smrg    case $ac_optarg in
118442b32c8f7Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1184595e0246bSmrg    '') as_fn_error $? "missing file argument" ;;
118462b32c8f7Smrg    esac
1184795e0246bSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
11848eaef79e5Smrg    ac_need_defaults=false;;
11849eaef79e5Smrg  --header | --heade | --head | --hea )
11850eaef79e5Smrg    $ac_shift
118512b32c8f7Smrg    case $ac_optarg in
118522b32c8f7Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
118532b32c8f7Smrg    esac
1185495e0246bSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11855eaef79e5Smrg    ac_need_defaults=false;;
11856eaef79e5Smrg  --he | --h)
11857eaef79e5Smrg    # Conflict between --help and --header
1185895e0246bSmrg    as_fn_error $? "ambiguous option: \`$1'
1185995e0246bSmrgTry \`$0 --help' for more information.";;
11860eaef79e5Smrg  --help | --hel | -h )
118612b32c8f7Smrg    $as_echo "$ac_cs_usage"; exit ;;
11862eaef79e5Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11863eaef79e5Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11864eaef79e5Smrg    ac_cs_silent=: ;;
11865eaef79e5Smrg
11866eaef79e5Smrg  # This is an error.
1186795e0246bSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
1186895e0246bSmrgTry \`$0 --help' for more information." ;;
11869eaef79e5Smrg
1187095e0246bSmrg  *) as_fn_append ac_config_targets " $1"
11871eaef79e5Smrg     ac_need_defaults=false ;;
11872eaef79e5Smrg
11873eaef79e5Smrg  esac
11874eaef79e5Smrg  shift
11875eaef79e5Smrgdone
11876eaef79e5Smrg
11877eaef79e5Smrgac_configure_extra_args=
11878eaef79e5Smrg
11879eaef79e5Smrgif $ac_cs_silent; then
11880eaef79e5Smrg  exec 6>/dev/null
11881eaef79e5Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
11882eaef79e5Smrgfi
11883eaef79e5Smrg
11884eaef79e5Smrg_ACEOF
118852b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11886eaef79e5Smrgif \$ac_cs_recheck; then
118872b32c8f7Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
118882b32c8f7Smrg  shift
118892b32c8f7Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
118902b32c8f7Smrg  CONFIG_SHELL='$SHELL'
11891eaef79e5Smrg  export CONFIG_SHELL
118922b32c8f7Smrg  exec "\$@"
11893eaef79e5Smrgfi
11894eaef79e5Smrg
11895eaef79e5Smrg_ACEOF
118962b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11897eaef79e5Smrgexec 5>>config.log
11898eaef79e5Smrg{
11899eaef79e5Smrg  echo
11900eaef79e5Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11901eaef79e5Smrg## Running $as_me. ##
11902eaef79e5Smrg_ASBOX
119032b32c8f7Smrg  $as_echo "$ac_log"
11904eaef79e5Smrg} >&5
11905eaef79e5Smrg
11906eaef79e5Smrg_ACEOF
119072b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11908eaef79e5Smrg#
11909eaef79e5Smrg# INIT-COMMANDS
11910eaef79e5Smrg#
11911eaef79e5SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11912eaef79e5Smrg
11913eaef79e5Smrg_ACEOF
11914eaef79e5Smrg
119152b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11916eaef79e5Smrg
11917eaef79e5Smrg# Handling of arguments.
11918eaef79e5Smrgfor ac_config_target in $ac_config_targets
11919eaef79e5Smrgdo
11920eaef79e5Smrg  case $ac_config_target in
1192195e0246bSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11922cbc4e2beSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11923eaef79e5Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1192495e0246bSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11925eaef79e5Smrg
1192695e0246bSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11927eaef79e5Smrg  esac
11928eaef79e5Smrgdone
11929eaef79e5Smrg
11930eaef79e5Smrg
11931eaef79e5Smrg# If the user did not use the arguments to specify the items to instantiate,
11932eaef79e5Smrg# then the envvar interface is used.  Set only those that are not.
11933eaef79e5Smrg# We use the long form for the default assignment because of an extremely
11934eaef79e5Smrg# bizarre bug on SunOS 4.1.3.
11935eaef79e5Smrgif $ac_need_defaults; then
11936eaef79e5Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11937eaef79e5Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11938eaef79e5Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11939eaef79e5Smrgfi
11940eaef79e5Smrg
11941eaef79e5Smrg# Have a temporary directory for convenience.  Make it in the build tree
11942eaef79e5Smrg# simply because there is no reason against having it here, and in addition,
11943eaef79e5Smrg# creating and moving files from /tmp can sometimes cause problems.
11944eaef79e5Smrg# Hook for its removal unless debugging.
11945eaef79e5Smrg# Note that there is a small window in which the directory will not be cleaned:
11946eaef79e5Smrg# after its creation but before its name has been assigned to `$tmp'.
11947eaef79e5Smrg$debug ||
11948eaef79e5Smrg{
1194995e0246bSmrg  tmp= ac_tmp=
11950eaef79e5Smrg  trap 'exit_status=$?
1195195e0246bSmrg  : "${ac_tmp:=$tmp}"
1195295e0246bSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11953eaef79e5Smrg' 0
1195495e0246bSmrg  trap 'as_fn_exit 1' 1 2 13 15
11955eaef79e5Smrg}
11956eaef79e5Smrg# Create a (secure) tmp directory for tmp files.
11957eaef79e5Smrg
11958eaef79e5Smrg{
11959eaef79e5Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1196095e0246bSmrg  test -d "$tmp"
11961eaef79e5Smrg}  ||
11962eaef79e5Smrg{
11963eaef79e5Smrg  tmp=./conf$$-$RANDOM
11964eaef79e5Smrg  (umask 077 && mkdir "$tmp")
1196595e0246bSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1196695e0246bSmrgac_tmp=$tmp
11967eaef79e5Smrg
119682b32c8f7Smrg# Set up the scripts for CONFIG_FILES section.
119692b32c8f7Smrg# No need to generate them if there are no CONFIG_FILES.
119702b32c8f7Smrg# This happens for instance with `./config.status config.h'.
11971eaef79e5Smrgif test -n "$CONFIG_FILES"; then
11972eaef79e5Smrg
11973eaef79e5Smrg
1197495e0246bSmrgac_cr=`echo X | tr X '\015'`
1197595e0246bSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
1197695e0246bSmrg# But we know of no other shell where ac_cr would be empty at this
1197795e0246bSmrg# point, so we can use a bashism as a fallback.
1197895e0246bSmrgif test "x$ac_cr" = x; then
1197995e0246bSmrg  eval ac_cr=\$\'\\r\'
1198095e0246bSmrgfi
119812b32c8f7Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
119822b32c8f7Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
119832b32c8f7Smrg  ac_cs_awk_cr='\\r'
119842b32c8f7Smrgelse
119852b32c8f7Smrg  ac_cs_awk_cr=$ac_cr
11986eaef79e5Smrgfi
11987eaef79e5Smrg
1198895e0246bSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11989eaef79e5Smrg_ACEOF
11990eaef79e5Smrg
11991eaef79e5Smrg
119922b32c8f7Smrg{
119932b32c8f7Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
119942b32c8f7Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
119952b32c8f7Smrg  echo "_ACEOF"
119962b32c8f7Smrg} >conf$$subs.sh ||
1199795e0246bSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1199895e0246bSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11999eaef79e5Smrgac_delim='%!_!# '
12000eaef79e5Smrgfor ac_last_try in false false false false false :; do
120012b32c8f7Smrg  . ./conf$$subs.sh ||
1200295e0246bSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12003eaef79e5Smrg
120042b32c8f7Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
120052b32c8f7Smrg  if test $ac_delim_n = $ac_delim_num; then
12006eaef79e5Smrg    break
12007eaef79e5Smrg  elif $ac_last_try; then
1200895e0246bSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12009eaef79e5Smrg  else
12010eaef79e5Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12011eaef79e5Smrg  fi
12012eaef79e5Smrgdone
120132b32c8f7Smrgrm -f conf$$subs.sh
12014eaef79e5Smrg
120152b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1201695e0246bSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
120172b32c8f7Smrg_ACEOF
120182b32c8f7Smrgsed -n '
120192b32c8f7Smrgh
120202b32c8f7Smrgs/^/S["/; s/!.*/"]=/
120212b32c8f7Smrgp
120222b32c8f7Smrgg
120232b32c8f7Smrgs/^[^!]*!//
120242b32c8f7Smrg:repl
120252b32c8f7Smrgt repl
120262b32c8f7Smrgs/'"$ac_delim"'$//
120272b32c8f7Smrgt delim
120282b32c8f7Smrg:nl
120292b32c8f7Smrgh
1203095e0246bSmrgs/\(.\{148\}\)..*/\1/
120312b32c8f7Smrgt more1
120322b32c8f7Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
120332b32c8f7Smrgp
120342b32c8f7Smrgn
120352b32c8f7Smrgb repl
120362b32c8f7Smrg:more1
120372b32c8f7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
120382b32c8f7Smrgp
120392b32c8f7Smrgg
120402b32c8f7Smrgs/.\{148\}//
120412b32c8f7Smrgt nl
120422b32c8f7Smrg:delim
120432b32c8f7Smrgh
1204495e0246bSmrgs/\(.\{148\}\)..*/\1/
120452b32c8f7Smrgt more2
120462b32c8f7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
120472b32c8f7Smrgp
120482b32c8f7Smrgb
120492b32c8f7Smrg:more2
120502b32c8f7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
120512b32c8f7Smrgp
120522b32c8f7Smrgg
120532b32c8f7Smrgs/.\{148\}//
120542b32c8f7Smrgt delim
120552b32c8f7Smrg' <conf$$subs.awk | sed '
120562b32c8f7Smrg/^[^""]/{
120572b32c8f7Smrg  N
120582b32c8f7Smrg  s/\n//
120592b32c8f7Smrg}
120602b32c8f7Smrg' >>$CONFIG_STATUS || ac_write_fail=1
120612b32c8f7Smrgrm -f conf$$subs.awk
120622b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
120632b32c8f7Smrg_ACAWK
1206495e0246bSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
120652b32c8f7Smrg  for (key in S) S_is_set[key] = 1
120662b32c8f7Smrg  FS = ""
120672b32c8f7Smrg
120682b32c8f7Smrg}
120692b32c8f7Smrg{
120702b32c8f7Smrg  line = $ 0
120712b32c8f7Smrg  nfields = split(line, field, "@")
120722b32c8f7Smrg  substed = 0
120732b32c8f7Smrg  len = length(field[1])
120742b32c8f7Smrg  for (i = 2; i < nfields; i++) {
120752b32c8f7Smrg    key = field[i]
120762b32c8f7Smrg    keylen = length(key)
120772b32c8f7Smrg    if (S_is_set[key]) {
120782b32c8f7Smrg      value = S[key]
120792b32c8f7Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
120802b32c8f7Smrg      len += length(value) + length(field[++i])
120812b32c8f7Smrg      substed = 1
120822b32c8f7Smrg    } else
120832b32c8f7Smrg      len += 1 + keylen
120842b32c8f7Smrg  }
120852b32c8f7Smrg
120862b32c8f7Smrg  print line
120872b32c8f7Smrg}
12088eaef79e5Smrg
120892b32c8f7Smrg_ACAWK
12090eaef79e5Smrg_ACEOF
120912b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
120922b32c8f7Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
120932b32c8f7Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
120942b32c8f7Smrgelse
120952b32c8f7Smrg  cat
1209695e0246bSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1209795e0246bSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12098eaef79e5Smrg_ACEOF
12099eaef79e5Smrg
1210095e0246bSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
1210195e0246bSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12102eaef79e5Smrg# trailing colons and then remove the whole line if VPATH becomes empty
12103eaef79e5Smrg# (actually we leave an empty line to preserve line numbers).
12104eaef79e5Smrgif test "x$srcdir" = x.; then
1210595e0246bSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
1210695e0246bSmrgh
1210795e0246bSmrgs///
1210895e0246bSmrgs/^/:/
1210995e0246bSmrgs/[	 ]*$/:/
1211095e0246bSmrgs/:\$(srcdir):/:/g
1211195e0246bSmrgs/:\${srcdir}:/:/g
1211295e0246bSmrgs/:@srcdir@:/:/g
1211395e0246bSmrgs/^:*//
12114eaef79e5Smrgs/:*$//
1211595e0246bSmrgx
1211695e0246bSmrgs/\(=[	 ]*\).*/\1/
1211795e0246bSmrgG
1211895e0246bSmrgs/\n//
12119eaef79e5Smrgs/^[^=]*=[	 ]*$//
12120eaef79e5Smrg}'
12121eaef79e5Smrgfi
12122eaef79e5Smrg
121232b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12124eaef79e5Smrgfi # test -n "$CONFIG_FILES"
12125eaef79e5Smrg
121262b32c8f7Smrg# Set up the scripts for CONFIG_HEADERS section.
121272b32c8f7Smrg# No need to generate them if there are no CONFIG_HEADERS.
121282b32c8f7Smrg# This happens for instance with `./config.status Makefile'.
121292b32c8f7Smrgif test -n "$CONFIG_HEADERS"; then
1213095e0246bSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
121312b32c8f7SmrgBEGIN {
121322b32c8f7Smrg_ACEOF
121332b32c8f7Smrg
121342b32c8f7Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
121352b32c8f7Smrg# here-document in config.status, that substitutes the proper values into
121362b32c8f7Smrg# config.h.in to produce config.h.
121372b32c8f7Smrg
121382b32c8f7Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
121392b32c8f7Smrg# handling of long lines.
121402b32c8f7Smrgac_delim='%!_!# '
121412b32c8f7Smrgfor ac_last_try in false false :; do
1214295e0246bSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
1214395e0246bSmrg  if test -z "$ac_tt"; then
121442b32c8f7Smrg    break
121452b32c8f7Smrg  elif $ac_last_try; then
1214695e0246bSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
121472b32c8f7Smrg  else
121482b32c8f7Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
121492b32c8f7Smrg  fi
121502b32c8f7Smrgdone
121512b32c8f7Smrg
121522b32c8f7Smrg# For the awk script, D is an array of macro values keyed by name,
121532b32c8f7Smrg# likewise P contains macro parameters if any.  Preserve backslash
121542b32c8f7Smrg# newline sequences.
121552b32c8f7Smrg
121562b32c8f7Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
121572b32c8f7Smrgsed -n '
121582b32c8f7Smrgs/.\{148\}/&'"$ac_delim"'/g
121592b32c8f7Smrgt rset
121602b32c8f7Smrg:rset
121612b32c8f7Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
121622b32c8f7Smrgt def
121632b32c8f7Smrgd
121642b32c8f7Smrg:def
121652b32c8f7Smrgs/\\$//
121662b32c8f7Smrgt bsnl
121672b32c8f7Smrgs/["\\]/\\&/g
121682b32c8f7Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
121692b32c8f7SmrgD["\1"]=" \3"/p
121702b32c8f7Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
121712b32c8f7Smrgd
121722b32c8f7Smrg:bsnl
121732b32c8f7Smrgs/["\\]/\\&/g
121742b32c8f7Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
121752b32c8f7SmrgD["\1"]=" \3\\\\\\n"\\/p
121762b32c8f7Smrgt cont
121772b32c8f7Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
121782b32c8f7Smrgt cont
121792b32c8f7Smrgd
121802b32c8f7Smrg:cont
121812b32c8f7Smrgn
121822b32c8f7Smrgs/.\{148\}/&'"$ac_delim"'/g
121832b32c8f7Smrgt clear
121842b32c8f7Smrg:clear
121852b32c8f7Smrgs/\\$//
121862b32c8f7Smrgt bsnlc
121872b32c8f7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
121882b32c8f7Smrgd
121892b32c8f7Smrg:bsnlc
121902b32c8f7Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
121912b32c8f7Smrgb cont
121922b32c8f7Smrg' <confdefs.h | sed '
121932b32c8f7Smrgs/'"$ac_delim"'/"\\\
121942b32c8f7Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
121952b32c8f7Smrg
121962b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
121972b32c8f7Smrg  for (key in D) D_is_set[key] = 1
121982b32c8f7Smrg  FS = ""
121992b32c8f7Smrg}
122002b32c8f7Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
122012b32c8f7Smrg  line = \$ 0
122022b32c8f7Smrg  split(line, arg, " ")
122032b32c8f7Smrg  if (arg[1] == "#") {
122042b32c8f7Smrg    defundef = arg[2]
122052b32c8f7Smrg    mac1 = arg[3]
122062b32c8f7Smrg  } else {
122072b32c8f7Smrg    defundef = substr(arg[1], 2)
122082b32c8f7Smrg    mac1 = arg[2]
122092b32c8f7Smrg  }
122102b32c8f7Smrg  split(mac1, mac2, "(") #)
122112b32c8f7Smrg  macro = mac2[1]
122122b32c8f7Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
122132b32c8f7Smrg  if (D_is_set[macro]) {
122142b32c8f7Smrg    # Preserve the white space surrounding the "#".
122152b32c8f7Smrg    print prefix "define", macro P[macro] D[macro]
122162b32c8f7Smrg    next
122172b32c8f7Smrg  } else {
122182b32c8f7Smrg    # Replace #undef with comments.  This is necessary, for example,
122192b32c8f7Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
122202b32c8f7Smrg    # on some systems where configure will not decide to define it.
122212b32c8f7Smrg    if (defundef == "undef") {
122222b32c8f7Smrg      print "/*", prefix defundef, macro, "*/"
122232b32c8f7Smrg      next
122242b32c8f7Smrg    }
122252b32c8f7Smrg  }
122262b32c8f7Smrg}
122272b32c8f7Smrg{ print }
122282b32c8f7Smrg_ACAWK
122292b32c8f7Smrg_ACEOF
122302b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1223195e0246bSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
122322b32c8f7Smrgfi # test -n "$CONFIG_HEADERS"
122332b32c8f7Smrg
12234eaef79e5Smrg
122352b32c8f7Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
122362b32c8f7Smrgshift
122372b32c8f7Smrgfor ac_tag
12238eaef79e5Smrgdo
12239eaef79e5Smrg  case $ac_tag in
12240eaef79e5Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
12241eaef79e5Smrg  esac
12242eaef79e5Smrg  case $ac_mode$ac_tag in
12243eaef79e5Smrg  :[FHL]*:*);;
1224495e0246bSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12245eaef79e5Smrg  :[FH]-) ac_tag=-:-;;
12246eaef79e5Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12247eaef79e5Smrg  esac
12248eaef79e5Smrg  ac_save_IFS=$IFS
12249eaef79e5Smrg  IFS=:
12250eaef79e5Smrg  set x $ac_tag
12251eaef79e5Smrg  IFS=$ac_save_IFS
12252eaef79e5Smrg  shift
12253eaef79e5Smrg  ac_file=$1
12254eaef79e5Smrg  shift
12255eaef79e5Smrg
12256eaef79e5Smrg  case $ac_mode in
12257eaef79e5Smrg  :L) ac_source=$1;;
12258eaef79e5Smrg  :[FH])
12259eaef79e5Smrg    ac_file_inputs=
12260eaef79e5Smrg    for ac_f
12261eaef79e5Smrg    do
12262eaef79e5Smrg      case $ac_f in
1226395e0246bSmrg      -) ac_f="$ac_tmp/stdin";;
12264eaef79e5Smrg      *) # Look for the file first in the build tree, then in the source tree
12265eaef79e5Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12266eaef79e5Smrg	 # because $ac_f cannot contain `:'.
12267eaef79e5Smrg	 test -f "$ac_f" ||
12268eaef79e5Smrg	   case $ac_f in
12269eaef79e5Smrg	   [\\/$]*) false;;
12270eaef79e5Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12271eaef79e5Smrg	   esac ||
1227295e0246bSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12273eaef79e5Smrg      esac
122742b32c8f7Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1227595e0246bSmrg      as_fn_append ac_file_inputs " '$ac_f'"
12276eaef79e5Smrg    done
12277eaef79e5Smrg
12278eaef79e5Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
12279eaef79e5Smrg    # use $as_me), people would be surprised to read:
12280eaef79e5Smrg    #    /* config.h.  Generated by config.status.  */
122812b32c8f7Smrg    configure_input='Generated from '`
122822b32c8f7Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
122832b32c8f7Smrg	`' by configure.'
12284eaef79e5Smrg    if test x"$ac_file" != x-; then
12285eaef79e5Smrg      configure_input="$ac_file.  $configure_input"
1228695e0246bSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
122872b32c8f7Smrg$as_echo "$as_me: creating $ac_file" >&6;}
12288eaef79e5Smrg    fi
122892b32c8f7Smrg    # Neutralize special characters interpreted by sed in replacement strings.
122902b32c8f7Smrg    case $configure_input in #(
122912b32c8f7Smrg    *\&* | *\|* | *\\* )
122922b32c8f7Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
122932b32c8f7Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
122942b32c8f7Smrg    *) ac_sed_conf_input=$configure_input;;
122952b32c8f7Smrg    esac
12296eaef79e5Smrg
12297eaef79e5Smrg    case $ac_tag in
1229895e0246bSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
1229995e0246bSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12300eaef79e5Smrg    esac
12301eaef79e5Smrg    ;;
12302eaef79e5Smrg  esac
12303eaef79e5Smrg
12304eaef79e5Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
12305eaef79e5Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12306eaef79e5Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
12307eaef79e5Smrg	 X"$ac_file" : 'X\(//\)$' \| \
12308eaef79e5Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
123092b32c8f7Smrg$as_echo X"$ac_file" |
12310eaef79e5Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12311eaef79e5Smrg	    s//\1/
12312eaef79e5Smrg	    q
12313eaef79e5Smrg	  }
12314eaef79e5Smrg	  /^X\(\/\/\)[^/].*/{
12315eaef79e5Smrg	    s//\1/
12316eaef79e5Smrg	    q
12317eaef79e5Smrg	  }
12318eaef79e5Smrg	  /^X\(\/\/\)$/{
12319eaef79e5Smrg	    s//\1/
12320eaef79e5Smrg	    q
12321eaef79e5Smrg	  }
12322eaef79e5Smrg	  /^X\(\/\).*/{
12323eaef79e5Smrg	    s//\1/
12324eaef79e5Smrg	    q
12325eaef79e5Smrg	  }
12326eaef79e5Smrg	  s/.*/./; q'`
1232795e0246bSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
12328eaef79e5Smrg  ac_builddir=.
12329eaef79e5Smrg
12330eaef79e5Smrgcase "$ac_dir" in
12331eaef79e5Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12332eaef79e5Smrg*)
123332b32c8f7Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12334eaef79e5Smrg  # A ".." for each directory in $ac_dir_suffix.
123352b32c8f7Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12336eaef79e5Smrg  case $ac_top_builddir_sub in
12337eaef79e5Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12338eaef79e5Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12339eaef79e5Smrg  esac ;;
12340eaef79e5Smrgesac
12341eaef79e5Smrgac_abs_top_builddir=$ac_pwd
12342eaef79e5Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
12343eaef79e5Smrg# for backward compatibility:
12344eaef79e5Smrgac_top_builddir=$ac_top_build_prefix
12345eaef79e5Smrg
12346eaef79e5Smrgcase $srcdir in
12347eaef79e5Smrg  .)  # We are building in place.
12348eaef79e5Smrg    ac_srcdir=.
12349eaef79e5Smrg    ac_top_srcdir=$ac_top_builddir_sub
12350eaef79e5Smrg    ac_abs_top_srcdir=$ac_pwd ;;
12351eaef79e5Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
12352eaef79e5Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
12353eaef79e5Smrg    ac_top_srcdir=$srcdir
12354eaef79e5Smrg    ac_abs_top_srcdir=$srcdir ;;
12355eaef79e5Smrg  *) # Relative name.
12356eaef79e5Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12357eaef79e5Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
12358eaef79e5Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12359eaef79e5Smrgesac
12360eaef79e5Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12361eaef79e5Smrg
12362eaef79e5Smrg
12363eaef79e5Smrg  case $ac_mode in
12364eaef79e5Smrg  :F)
12365eaef79e5Smrg  #
12366eaef79e5Smrg  # CONFIG_FILE
12367eaef79e5Smrg  #
12368eaef79e5Smrg
12369eaef79e5Smrg  case $INSTALL in
12370eaef79e5Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12371eaef79e5Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12372eaef79e5Smrg  esac
123732b32c8f7Smrg  ac_MKDIR_P=$MKDIR_P
123742b32c8f7Smrg  case $MKDIR_P in
123752b32c8f7Smrg  [\\/$]* | ?:[\\/]* ) ;;
123762b32c8f7Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
123772b32c8f7Smrg  esac
12378eaef79e5Smrg_ACEOF
12379eaef79e5Smrg
123802b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12381eaef79e5Smrg# If the template does not know about datarootdir, expand it.
12382eaef79e5Smrg# FIXME: This hack should be removed a few years after 2.60.
12383eaef79e5Smrgac_datarootdir_hack=; ac_datarootdir_seen=
123842b32c8f7Smrgac_sed_dataroot='
123852b32c8f7Smrg/datarootdir/ {
12386eaef79e5Smrg  p
12387eaef79e5Smrg  q
12388eaef79e5Smrg}
12389eaef79e5Smrg/@datadir@/p
12390eaef79e5Smrg/@docdir@/p
12391eaef79e5Smrg/@infodir@/p
12392eaef79e5Smrg/@localedir@/p
1239395e0246bSmrg/@mandir@/p'
123942b32c8f7Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12395eaef79e5Smrg*datarootdir*) ac_datarootdir_seen=yes;;
12396eaef79e5Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1239795e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
123982b32c8f7Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12399eaef79e5Smrg_ACEOF
124002b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12401eaef79e5Smrg  ac_datarootdir_hack='
12402eaef79e5Smrg  s&@datadir@&$datadir&g
12403eaef79e5Smrg  s&@docdir@&$docdir&g
12404eaef79e5Smrg  s&@infodir@&$infodir&g
12405eaef79e5Smrg  s&@localedir@&$localedir&g
12406eaef79e5Smrg  s&@mandir@&$mandir&g
1240795e0246bSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
12408eaef79e5Smrgesac
12409eaef79e5Smrg_ACEOF
12410eaef79e5Smrg
12411eaef79e5Smrg# Neutralize VPATH when `$srcdir' = `.'.
12412eaef79e5Smrg# Shell code in configure.ac might set extrasub.
12413eaef79e5Smrg# FIXME: do we really want to maintain this feature?
124142b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
124152b32c8f7Smrgac_sed_extra="$ac_vpsub
12416eaef79e5Smrg$extrasub
12417eaef79e5Smrg_ACEOF
124182b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12419eaef79e5Smrg:t
12420eaef79e5Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
124212b32c8f7Smrgs|@configure_input@|$ac_sed_conf_input|;t t
12422eaef79e5Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
124232b32c8f7Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
12424eaef79e5Smrgs&@srcdir@&$ac_srcdir&;t t
12425eaef79e5Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
12426eaef79e5Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
12427eaef79e5Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12428eaef79e5Smrgs&@builddir@&$ac_builddir&;t t
12429eaef79e5Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
12430eaef79e5Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12431eaef79e5Smrgs&@INSTALL@&$ac_INSTALL&;t t
124322b32c8f7Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
12433eaef79e5Smrg$ac_datarootdir_hack
124342b32c8f7Smrg"
1243595e0246bSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
1243695e0246bSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12437eaef79e5Smrg
12438eaef79e5Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1243995e0246bSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1244095e0246bSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
1244195e0246bSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
1244295e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1244395e0246bSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
124442b32c8f7Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1244595e0246bSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
12446eaef79e5Smrg
1244795e0246bSmrg  rm -f "$ac_tmp/stdin"
12448eaef79e5Smrg  case $ac_file in
1244995e0246bSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
1245095e0246bSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
124512b32c8f7Smrg  esac \
1245295e0246bSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12453eaef79e5Smrg ;;
12454eaef79e5Smrg  :H)
12455eaef79e5Smrg  #
12456eaef79e5Smrg  # CONFIG_HEADER
12457eaef79e5Smrg  #
12458eaef79e5Smrg  if test x"$ac_file" != x-; then
124592b32c8f7Smrg    {
124602b32c8f7Smrg      $as_echo "/* $configure_input  */" \
1246195e0246bSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1246295e0246bSmrg    } >"$ac_tmp/config.h" \
1246395e0246bSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1246495e0246bSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1246595e0246bSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
124662b32c8f7Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
12467eaef79e5Smrg    else
124682b32c8f7Smrg      rm -f "$ac_file"
1246995e0246bSmrg      mv "$ac_tmp/config.h" "$ac_file" \
1247095e0246bSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12471eaef79e5Smrg    fi
12472eaef79e5Smrg  else
124732b32c8f7Smrg    $as_echo "/* $configure_input  */" \
1247495e0246bSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1247595e0246bSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
12476eaef79e5Smrg  fi
124772b32c8f7Smrg# Compute "$ac_file"'s index in $config_headers.
124782b32c8f7Smrg_am_arg="$ac_file"
12479eaef79e5Smrg_am_stamp_count=1
12480eaef79e5Smrgfor _am_header in $config_headers :; do
12481eaef79e5Smrg  case $_am_header in
124822b32c8f7Smrg    $_am_arg | $_am_arg:* )
12483eaef79e5Smrg      break ;;
12484eaef79e5Smrg    * )
12485eaef79e5Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12486eaef79e5Smrg  esac
12487eaef79e5Smrgdone
124882b32c8f7Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
124892b32c8f7Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
124902b32c8f7Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
124912b32c8f7Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
124922b32c8f7Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
124932b32c8f7Smrg$as_echo X"$_am_arg" |
12494eaef79e5Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12495eaef79e5Smrg	    s//\1/
12496eaef79e5Smrg	    q
12497eaef79e5Smrg	  }
12498eaef79e5Smrg	  /^X\(\/\/\)[^/].*/{
12499eaef79e5Smrg	    s//\1/
12500eaef79e5Smrg	    q
12501eaef79e5Smrg	  }
12502eaef79e5Smrg	  /^X\(\/\/\)$/{
12503eaef79e5Smrg	    s//\1/
12504eaef79e5Smrg	    q
12505eaef79e5Smrg	  }
12506eaef79e5Smrg	  /^X\(\/\).*/{
12507eaef79e5Smrg	    s//\1/
12508eaef79e5Smrg	    q
12509eaef79e5Smrg	  }
12510eaef79e5Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
12511eaef79e5Smrg ;;
12512eaef79e5Smrg
1251395e0246bSmrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
125142b32c8f7Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
12515eaef79e5Smrg ;;
12516eaef79e5Smrg  esac
12517eaef79e5Smrg
12518eaef79e5Smrg
12519eaef79e5Smrg  case $ac_file$ac_mode in
125202b32c8f7Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12521cbc4e2beSmrg  # Older Autoconf quotes --file arguments for eval, but not when files
125222b32c8f7Smrg  # are listed without --file.  Let's play safe and only enable the eval
125232b32c8f7Smrg  # if we detect the quoting.
125242b32c8f7Smrg  case $CONFIG_FILES in
125252b32c8f7Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
125262b32c8f7Smrg  *)   set x $CONFIG_FILES ;;
125272b32c8f7Smrg  esac
125282b32c8f7Smrg  shift
125292b32c8f7Smrg  for mf
125302b32c8f7Smrg  do
125312b32c8f7Smrg    # Strip MF so we end up with the name of the file.
125322b32c8f7Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
125332b32c8f7Smrg    # Check whether this is an Automake generated Makefile or not.
12534cbc4e2beSmrg    # We used to match only the files named 'Makefile.in', but
125352b32c8f7Smrg    # some people rename them; so instead we look at the file content.
125362b32c8f7Smrg    # Grep'ing the first line is not enough: some people post-process
125372b32c8f7Smrg    # each Makefile.in and add a new line on top of each file to say so.
125382b32c8f7Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
125392b32c8f7Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
125402b32c8f7Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
125412b32c8f7Smrg      dirpart=`$as_dirname -- "$mf" ||
12542eaef79e5Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12543eaef79e5Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
12544eaef79e5Smrg	 X"$mf" : 'X\(//\)$' \| \
12545eaef79e5Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
125462b32c8f7Smrg$as_echo X"$mf" |
12547eaef79e5Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12548eaef79e5Smrg	    s//\1/
12549eaef79e5Smrg	    q
12550eaef79e5Smrg	  }
12551eaef79e5Smrg	  /^X\(\/\/\)[^/].*/{
12552eaef79e5Smrg	    s//\1/
12553eaef79e5Smrg	    q
12554eaef79e5Smrg	  }
12555eaef79e5Smrg	  /^X\(\/\/\)$/{
12556eaef79e5Smrg	    s//\1/
12557eaef79e5Smrg	    q
12558eaef79e5Smrg	  }
12559eaef79e5Smrg	  /^X\(\/\).*/{
12560eaef79e5Smrg	    s//\1/
12561eaef79e5Smrg	    q
12562eaef79e5Smrg	  }
12563eaef79e5Smrg	  s/.*/./; q'`
125642b32c8f7Smrg    else
125652b32c8f7Smrg      continue
125662b32c8f7Smrg    fi
125672b32c8f7Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
12568cbc4e2beSmrg    # from the Makefile without running 'make'.
125692b32c8f7Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
125702b32c8f7Smrg    test -z "$DEPDIR" && continue
125712b32c8f7Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12572cbc4e2beSmrg    test -z "$am__include" && continue
125732b32c8f7Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
125742b32c8f7Smrg    # Find all dependency output files, they are included files with
125752b32c8f7Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
125762b32c8f7Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
125772b32c8f7Smrg    # expansion.
125782b32c8f7Smrg    for file in `sed -n "
125792b32c8f7Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12580cbc4e2beSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
125812b32c8f7Smrg      # Make sure the directory exists.
125822b32c8f7Smrg      test -f "$dirpart/$file" && continue
125832b32c8f7Smrg      fdir=`$as_dirname -- "$file" ||
12584eaef79e5Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12585eaef79e5Smrg	 X"$file" : 'X\(//\)[^/]' \| \
12586eaef79e5Smrg	 X"$file" : 'X\(//\)$' \| \
12587eaef79e5Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
125882b32c8f7Smrg$as_echo X"$file" |
12589eaef79e5Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12590eaef79e5Smrg	    s//\1/
12591eaef79e5Smrg	    q
12592eaef79e5Smrg	  }
12593eaef79e5Smrg	  /^X\(\/\/\)[^/].*/{
12594eaef79e5Smrg	    s//\1/
12595eaef79e5Smrg	    q
12596eaef79e5Smrg	  }
12597eaef79e5Smrg	  /^X\(\/\/\)$/{
12598eaef79e5Smrg	    s//\1/
12599eaef79e5Smrg	    q
12600eaef79e5Smrg	  }
12601eaef79e5Smrg	  /^X\(\/\).*/{
12602eaef79e5Smrg	    s//\1/
12603eaef79e5Smrg	    q
12604eaef79e5Smrg	  }
12605eaef79e5Smrg	  s/.*/./; q'`
1260695e0246bSmrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
126072b32c8f7Smrg      # echo "creating $dirpart/$file"
126082b32c8f7Smrg      echo '# dummy' > "$dirpart/$file"
126092b32c8f7Smrg    done
12610eaef79e5Smrg  done
126112b32c8f7Smrg}
12612eaef79e5Smrg ;;
12613eaef79e5Smrg
12614eaef79e5Smrg  esac
12615eaef79e5Smrgdone # for ac_tag
12616eaef79e5Smrg
12617eaef79e5Smrg
1261895e0246bSmrgas_fn_exit 0
12619eaef79e5Smrg_ACEOF
12620eaef79e5Smrgac_clean_files=$ac_clean_files_save
12621eaef79e5Smrg
126222b32c8f7Smrgtest $ac_write_fail = 0 ||
1262395e0246bSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
126242b32c8f7Smrg
12625eaef79e5Smrg
12626eaef79e5Smrg# configure is writing to config.log, and then calls config.status.
12627eaef79e5Smrg# config.status does its own redirection, appending to config.log.
12628eaef79e5Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
12629eaef79e5Smrg# by configure, so config.status won't be able to write to it; its
12630eaef79e5Smrg# output is simply discarded.  So we exec the FD to /dev/null,
12631eaef79e5Smrg# effectively closing config.log, so it can be properly (re)opened and
12632eaef79e5Smrg# appended to by config.status.  When coming back to configure, we
12633eaef79e5Smrg# need to make the FD available again.
12634eaef79e5Smrgif test "$no_create" != yes; then
12635eaef79e5Smrg  ac_cs_success=:
12636eaef79e5Smrg  ac_config_status_args=
12637eaef79e5Smrg  test "$silent" = yes &&
12638eaef79e5Smrg    ac_config_status_args="$ac_config_status_args --quiet"
12639eaef79e5Smrg  exec 5>/dev/null
12640eaef79e5Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12641eaef79e5Smrg  exec 5>>config.log
12642eaef79e5Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12643eaef79e5Smrg  # would make configure fail if this is the last instruction.
1264495e0246bSmrg  $ac_cs_success || as_fn_exit 1
12645eaef79e5Smrgfi
126462b32c8f7Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1264795e0246bSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
126482b32c8f7Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
126492b32c8f7Smrgfi
12650eaef79e5Smrg
12651