configure revision 40c5344f
17a0395d0Smrg#! /bin/sh
27a0395d0Smrg# Guess values for system-dependent variables and create Makefiles.
340c5344fSmrg# Generated by GNU Autoconf 2.69 for xauth 1.0.10.
47a0395d0Smrg#
57a0395d0Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
67a0395d0Smrg#
72adc0320Smrg#
88abc0ccfSmrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
92adc0320Smrg#
102adc0320Smrg#
117a0395d0Smrg# This configure script is free software; the Free Software Foundation
127a0395d0Smrg# gives unlimited permission to copy, distribute and modify it.
132adc0320Smrg## -------------------- ##
142adc0320Smrg## M4sh Initialization. ##
152adc0320Smrg## -------------------- ##
167a0395d0Smrg
177a0395d0Smrg# Be more Bourne compatible
187a0395d0SmrgDUALCASE=1; export DUALCASE # for MKS sh
192adc0320Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
207a0395d0Smrg  emulate sh
217a0395d0Smrg  NULLCMD=:
227366012aSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
237a0395d0Smrg  # is contrary to our usage.  Disable this feature.
247a0395d0Smrg  alias -g '${1+"$@"}'='"$@"'
257a0395d0Smrg  setopt NO_GLOB_SUBST
267a0395d0Smrgelse
272adc0320Smrg  case `(set -o) 2>/dev/null` in #(
282adc0320Smrg  *posix*) :
292adc0320Smrg    set -o posix ;; #(
302adc0320Smrg  *) :
312adc0320Smrg     ;;
327a0395d0Smrgesac
337a0395d0Smrgfi
347a0395d0Smrg
357a0395d0Smrg
367366012aSmrgas_nl='
377366012aSmrg'
387366012aSmrgexport as_nl
397366012aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
407366012aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
417366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
427366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
432adc0320Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
442adc0320Smrg# but without wasting forks for bash or zsh.
452adc0320Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
462adc0320Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
472adc0320Smrg  as_echo='print -r --'
482adc0320Smrg  as_echo_n='print -rn --'
492adc0320Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
507366012aSmrg  as_echo='printf %s\n'
517366012aSmrg  as_echo_n='printf %s'
527366012aSmrgelse
537366012aSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
547366012aSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
557366012aSmrg    as_echo_n='/usr/ucb/echo -n'
567a0395d0Smrg  else
577366012aSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
587366012aSmrg    as_echo_n_body='eval
597366012aSmrg      arg=$1;
602adc0320Smrg      case $arg in #(
617366012aSmrg      *"$as_nl"*)
627366012aSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
637366012aSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
647366012aSmrg      esac;
657366012aSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
667366012aSmrg    '
677366012aSmrg    export as_echo_n_body
687366012aSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
697a0395d0Smrg  fi
707366012aSmrg  export as_echo_body
717366012aSmrg  as_echo='sh -c $as_echo_body as_echo'
727366012aSmrgfi
737366012aSmrg
747366012aSmrg# The user is always right.
757366012aSmrgif test "${PATH_SEPARATOR+set}" != set; then
767366012aSmrg  PATH_SEPARATOR=:
777366012aSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
787366012aSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
797366012aSmrg      PATH_SEPARATOR=';'
807366012aSmrg  }
817a0395d0Smrgfi
827a0395d0Smrg
837a0395d0Smrg
847a0395d0Smrg# IFS
857a0395d0Smrg# We need space, tab and new line, in precisely that order.  Quoting is
867a0395d0Smrg# there to prevent editors from complaining about space-tab.
877a0395d0Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
887a0395d0Smrg# splitting by setting IFS to empty value.)
897a0395d0SmrgIFS=" ""	$as_nl"
907a0395d0Smrg
917a0395d0Smrg# Find who we are.  Look in the path if we contain no directory separator.
922adc0320Smrgas_myself=
932adc0320Smrgcase $0 in #((
947a0395d0Smrg  *[\\/]* ) as_myself=$0 ;;
957a0395d0Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
967a0395d0Smrgfor as_dir in $PATH
977a0395d0Smrgdo
987a0395d0Smrg  IFS=$as_save_IFS
997a0395d0Smrg  test -z "$as_dir" && as_dir=.
1002adc0320Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1012adc0320Smrg  done
1027a0395d0SmrgIFS=$as_save_IFS
1037a0395d0Smrg
1047a0395d0Smrg     ;;
1057a0395d0Smrgesac
1067a0395d0Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1077a0395d0Smrg# in which case we are not to be found in the path.
1087a0395d0Smrgif test "x$as_myself" = x; then
1097a0395d0Smrg  as_myself=$0
1107a0395d0Smrgfi
1117a0395d0Smrgif test ! -f "$as_myself"; then
1127366012aSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1132adc0320Smrg  exit 1
1147a0395d0Smrgfi
1157a0395d0Smrg
1162adc0320Smrg# Unset variables that we do not need and which cause bugs (e.g. in
1172adc0320Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1182adc0320Smrg# suppresses any "Segmentation fault" message there.  '((' could
1192adc0320Smrg# trigger a bug in pdksh 5.2.14.
1202adc0320Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1212adc0320Smrgdo eval test x\${$as_var+set} = xset \
1222adc0320Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1237a0395d0Smrgdone
1247a0395d0SmrgPS1='$ '
1257a0395d0SmrgPS2='> '
1267a0395d0SmrgPS4='+ '
1277a0395d0Smrg
1287a0395d0Smrg# NLS nuisances.
1297366012aSmrgLC_ALL=C
1307366012aSmrgexport LC_ALL
1317366012aSmrgLANGUAGE=C
1327366012aSmrgexport LANGUAGE
1337a0395d0Smrg
1342adc0320Smrg# CDPATH.
1352adc0320Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1362adc0320Smrg
1378abc0ccfSmrg# Use a proper internal environment variable to ensure we don't fall
1388abc0ccfSmrg  # into an infinite loop, continuously re-executing ourselves.
1398abc0ccfSmrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
1408abc0ccfSmrg    _as_can_reexec=no; export _as_can_reexec;
1418abc0ccfSmrg    # We cannot yet assume a decent shell, so we have to provide a
1428abc0ccfSmrg# neutralization value for shells without unset; and this also
1438abc0ccfSmrg# works around shells that cannot unset nonexistent variables.
1448abc0ccfSmrg# Preserve -v and -x to the replacement shell.
1458abc0ccfSmrgBASH_ENV=/dev/null
1468abc0ccfSmrgENV=/dev/null
1478abc0ccfSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1488abc0ccfSmrgcase $- in # ((((
1498abc0ccfSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
1508abc0ccfSmrg  *v* ) as_opts=-v ;;
1518abc0ccfSmrg  *x* ) as_opts=-x ;;
1528abc0ccfSmrg  * ) as_opts= ;;
1538abc0ccfSmrgesac
1548abc0ccfSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1558abc0ccfSmrg# Admittedly, this is quite paranoid, since all the known shells bail
1568abc0ccfSmrg# out after a failed `exec'.
1578abc0ccfSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
1588abc0ccfSmrgas_fn_exit 255
1598abc0ccfSmrg  fi
1608abc0ccfSmrg  # We don't want this to propagate to other subprocesses.
1618abc0ccfSmrg          { _as_can_reexec=; unset _as_can_reexec;}
1622adc0320Smrgif test "x$CONFIG_SHELL" = x; then
1632adc0320Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1642adc0320Smrg  emulate sh
1652adc0320Smrg  NULLCMD=:
1662adc0320Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1672adc0320Smrg  # is contrary to our usage.  Disable this feature.
1682adc0320Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1692adc0320Smrg  setopt NO_GLOB_SUBST
1702adc0320Smrgelse
1712adc0320Smrg  case \`(set -o) 2>/dev/null\` in #(
1722adc0320Smrg  *posix*) :
1732adc0320Smrg    set -o posix ;; #(
1742adc0320Smrg  *) :
1752adc0320Smrg     ;;
1762adc0320Smrgesac
1772adc0320Smrgfi
1782adc0320Smrg"
1792adc0320Smrg  as_required="as_fn_return () { (exit \$1); }
1802adc0320Smrgas_fn_success () { as_fn_return 0; }
1812adc0320Smrgas_fn_failure () { as_fn_return 1; }
1822adc0320Smrgas_fn_ret_success () { return 0; }
1832adc0320Smrgas_fn_ret_failure () { return 1; }
1842adc0320Smrg
1852adc0320Smrgexitcode=0
1862adc0320Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1872adc0320Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1882adc0320Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1892adc0320Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1902adc0320Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1912adc0320Smrg
1922adc0320Smrgelse
1932adc0320Smrg  exitcode=1; echo positional parameters were not saved.
1942adc0320Smrgfi
1958abc0ccfSmrgtest x\$exitcode = x0 || exit 1
1968abc0ccfSmrgtest -x / || exit 1"
1972adc0320Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1982adc0320Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1992adc0320Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
2002adc0320Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
2012adc0320Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
2022adc0320Smrg  if (eval "$as_required") 2>/dev/null; then :
2032adc0320Smrg  as_have_required=yes
2042adc0320Smrgelse
2052adc0320Smrg  as_have_required=no
2062adc0320Smrgfi
2072adc0320Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
2082adc0320Smrg
2092adc0320Smrgelse
2102adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112adc0320Smrgas_found=false
2122adc0320Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2132adc0320Smrgdo
2142adc0320Smrg  IFS=$as_save_IFS
2152adc0320Smrg  test -z "$as_dir" && as_dir=.
2162adc0320Smrg  as_found=:
2172adc0320Smrg  case $as_dir in #(
2182adc0320Smrg	 /*)
2192adc0320Smrg	   for as_base in sh bash ksh sh5; do
2202adc0320Smrg	     # Try only shells that exist, to save several forks.
2212adc0320Smrg	     as_shell=$as_dir/$as_base
2222adc0320Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2232adc0320Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2242adc0320Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2252adc0320Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2262adc0320Smrg  break 2
2272adc0320Smrgfi
2282adc0320Smrgfi
2292adc0320Smrg	   done;;
2302adc0320Smrg       esac
2312adc0320Smrg  as_found=false
2322adc0320Smrgdone
2332adc0320Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2342adc0320Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2352adc0320Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2362adc0320Smrgfi; }
2372adc0320SmrgIFS=$as_save_IFS
2382adc0320Smrg
2392adc0320Smrg
2402adc0320Smrg      if test "x$CONFIG_SHELL" != x; then :
2418abc0ccfSmrg  export CONFIG_SHELL
2428abc0ccfSmrg             # We cannot yet assume a decent shell, so we have to provide a
2438abc0ccfSmrg# neutralization value for shells without unset; and this also
2448abc0ccfSmrg# works around shells that cannot unset nonexistent variables.
2458abc0ccfSmrg# Preserve -v and -x to the replacement shell.
2468abc0ccfSmrgBASH_ENV=/dev/null
2478abc0ccfSmrgENV=/dev/null
2488abc0ccfSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2498abc0ccfSmrgcase $- in # ((((
2508abc0ccfSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
2518abc0ccfSmrg  *v* ) as_opts=-v ;;
2528abc0ccfSmrg  *x* ) as_opts=-x ;;
2538abc0ccfSmrg  * ) as_opts= ;;
2548abc0ccfSmrgesac
2558abc0ccfSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
2568abc0ccfSmrg# Admittedly, this is quite paranoid, since all the known shells bail
2578abc0ccfSmrg# out after a failed `exec'.
2588abc0ccfSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
2598abc0ccfSmrgexit 255
2602adc0320Smrgfi
2612adc0320Smrg
2622adc0320Smrg    if test x$as_have_required = xno; then :
2632adc0320Smrg  $as_echo "$0: This script requires a shell more modern than all"
2642adc0320Smrg  $as_echo "$0: the shells that I found on your system."
2652adc0320Smrg  if test x${ZSH_VERSION+set} = xset ; then
2662adc0320Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2672adc0320Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2682adc0320Smrg  else
2692adc0320Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2702adc0320Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2712adc0320Smrg$0: about your system, including any error possibly output
2722adc0320Smrg$0: before this message. Then install a modern shell, or
2732adc0320Smrg$0: manually run the script under such a shell if you do
2742adc0320Smrg$0: have one."
2752adc0320Smrg  fi
2762adc0320Smrg  exit 1
2772adc0320Smrgfi
2782adc0320Smrgfi
2792adc0320Smrgfi
2802adc0320SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2812adc0320Smrgexport SHELL
2822adc0320Smrg# Unset more variables known to interfere with behavior of common tools.
2832adc0320SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2842adc0320Smrgunset CLICOLOR_FORCE GREP_OPTIONS
2852adc0320Smrg
2862adc0320Smrg## --------------------- ##
2872adc0320Smrg## M4sh Shell Functions. ##
2882adc0320Smrg## --------------------- ##
2892adc0320Smrg# as_fn_unset VAR
2902adc0320Smrg# ---------------
2912adc0320Smrg# Portably unset VAR.
2922adc0320Smrgas_fn_unset ()
2932adc0320Smrg{
2942adc0320Smrg  { eval $1=; unset $1;}
2952adc0320Smrg}
2962adc0320Smrgas_unset=as_fn_unset
2972adc0320Smrg
2982adc0320Smrg# as_fn_set_status STATUS
2992adc0320Smrg# -----------------------
3002adc0320Smrg# Set $? to STATUS, without forking.
3012adc0320Smrgas_fn_set_status ()
3022adc0320Smrg{
3032adc0320Smrg  return $1
3042adc0320Smrg} # as_fn_set_status
3052adc0320Smrg
3062adc0320Smrg# as_fn_exit STATUS
3072adc0320Smrg# -----------------
3082adc0320Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3092adc0320Smrgas_fn_exit ()
3102adc0320Smrg{
3112adc0320Smrg  set +e
3122adc0320Smrg  as_fn_set_status $1
3132adc0320Smrg  exit $1
3142adc0320Smrg} # as_fn_exit
3152adc0320Smrg
3162adc0320Smrg# as_fn_mkdir_p
3172adc0320Smrg# -------------
3182adc0320Smrg# Create "$as_dir" as a directory, including parents if necessary.
3192adc0320Smrgas_fn_mkdir_p ()
3202adc0320Smrg{
3212adc0320Smrg
3222adc0320Smrg  case $as_dir in #(
3232adc0320Smrg  -*) as_dir=./$as_dir;;
3242adc0320Smrg  esac
3252adc0320Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
3262adc0320Smrg    as_dirs=
3272adc0320Smrg    while :; do
3282adc0320Smrg      case $as_dir in #(
3292adc0320Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3302adc0320Smrg      *) as_qdir=$as_dir;;
3312adc0320Smrg      esac
3322adc0320Smrg      as_dirs="'$as_qdir' $as_dirs"
3332adc0320Smrg      as_dir=`$as_dirname -- "$as_dir" ||
3342adc0320Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3352adc0320Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3362adc0320Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3372adc0320Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3382adc0320Smrg$as_echo X"$as_dir" |
3392adc0320Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3402adc0320Smrg	    s//\1/
3412adc0320Smrg	    q
3422adc0320Smrg	  }
3432adc0320Smrg	  /^X\(\/\/\)[^/].*/{
3442adc0320Smrg	    s//\1/
3452adc0320Smrg	    q
3462adc0320Smrg	  }
3472adc0320Smrg	  /^X\(\/\/\)$/{
3482adc0320Smrg	    s//\1/
3492adc0320Smrg	    q
3502adc0320Smrg	  }
3512adc0320Smrg	  /^X\(\/\).*/{
3522adc0320Smrg	    s//\1/
3532adc0320Smrg	    q
3542adc0320Smrg	  }
3552adc0320Smrg	  s/.*/./; q'`
3562adc0320Smrg      test -d "$as_dir" && break
3572adc0320Smrg    done
3582adc0320Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3592adc0320Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3602adc0320Smrg
3612adc0320Smrg
3622adc0320Smrg} # as_fn_mkdir_p
3638abc0ccfSmrg
3648abc0ccfSmrg# as_fn_executable_p FILE
3658abc0ccfSmrg# -----------------------
3668abc0ccfSmrg# Test if FILE is an executable regular file.
3678abc0ccfSmrgas_fn_executable_p ()
3688abc0ccfSmrg{
3698abc0ccfSmrg  test -f "$1" && test -x "$1"
3708abc0ccfSmrg} # as_fn_executable_p
3712adc0320Smrg# as_fn_append VAR VALUE
3722adc0320Smrg# ----------------------
3732adc0320Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3742adc0320Smrg# advantage of any shell optimizations that allow amortized linear growth over
3752adc0320Smrg# repeated appends, instead of the typical quadratic growth present in naive
3762adc0320Smrg# implementations.
3772adc0320Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3782adc0320Smrg  eval 'as_fn_append ()
3792adc0320Smrg  {
3802adc0320Smrg    eval $1+=\$2
3812adc0320Smrg  }'
3822adc0320Smrgelse
3832adc0320Smrg  as_fn_append ()
3842adc0320Smrg  {
3852adc0320Smrg    eval $1=\$$1\$2
3862adc0320Smrg  }
3872adc0320Smrgfi # as_fn_append
3882adc0320Smrg
3892adc0320Smrg# as_fn_arith ARG...
3902adc0320Smrg# ------------------
3912adc0320Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
3922adc0320Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
3932adc0320Smrg# must be portable across $(()) and expr.
3942adc0320Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3952adc0320Smrg  eval 'as_fn_arith ()
3962adc0320Smrg  {
3972adc0320Smrg    as_val=$(( $* ))
3982adc0320Smrg  }'
3992adc0320Smrgelse
4002adc0320Smrg  as_fn_arith ()
4012adc0320Smrg  {
4022adc0320Smrg    as_val=`expr "$@" || test $? -eq 1`
4032adc0320Smrg  }
4042adc0320Smrgfi # as_fn_arith
4052adc0320Smrg
4062adc0320Smrg
4072adc0320Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
4082adc0320Smrg# ----------------------------------------
4092adc0320Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4102adc0320Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4112adc0320Smrg# script with STATUS, using 1 if that was 0.
4122adc0320Smrgas_fn_error ()
4132adc0320Smrg{
4142adc0320Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
4152adc0320Smrg  if test "$4"; then
4162adc0320Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4172adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4182adc0320Smrg  fi
4192adc0320Smrg  $as_echo "$as_me: error: $2" >&2
4202adc0320Smrg  as_fn_exit $as_status
4212adc0320Smrg} # as_fn_error
4222adc0320Smrg
4237a0395d0Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
4247a0395d0Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4257a0395d0Smrg  as_expr=expr
4267a0395d0Smrgelse
4277a0395d0Smrg  as_expr=false
4287a0395d0Smrgfi
4297a0395d0Smrg
4307a0395d0Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4317a0395d0Smrg  as_basename=basename
4327a0395d0Smrgelse
4337a0395d0Smrg  as_basename=false
4347a0395d0Smrgfi
4357a0395d0Smrg
4362adc0320Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4372adc0320Smrg  as_dirname=dirname
4382adc0320Smrgelse
4392adc0320Smrg  as_dirname=false
4402adc0320Smrgfi
4417a0395d0Smrg
4427a0395d0Smrgas_me=`$as_basename -- "$0" ||
4437a0395d0Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4447a0395d0Smrg	 X"$0" : 'X\(//\)$' \| \
4457a0395d0Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4467366012aSmrg$as_echo X/"$0" |
4477a0395d0Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4487a0395d0Smrg	    s//\1/
4497a0395d0Smrg	    q
4507a0395d0Smrg	  }
4517a0395d0Smrg	  /^X\/\(\/\/\)$/{
4527a0395d0Smrg	    s//\1/
4537a0395d0Smrg	    q
4547a0395d0Smrg	  }
4557a0395d0Smrg	  /^X\/\(\/\).*/{
4567a0395d0Smrg	    s//\1/
4577a0395d0Smrg	    q
4587a0395d0Smrg	  }
4597a0395d0Smrg	  s/.*/./; q'`
4607a0395d0Smrg
4612adc0320Smrg# Avoid depending upon Character Ranges.
4622adc0320Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4632adc0320Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4642adc0320Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4652adc0320Smrgas_cr_digits='0123456789'
4662adc0320Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4677a0395d0Smrg
4687a0395d0Smrg
4692adc0320Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4702adc0320Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4712adc0320Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4722adc0320Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4732adc0320Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4742adc0320Smrg  sed -n '
4752adc0320Smrg    p
4762adc0320Smrg    /[$]LINENO/=
4772adc0320Smrg  ' <$as_myself |
4782adc0320Smrg    sed '
4792adc0320Smrg      s/[$]LINENO.*/&-/
4802adc0320Smrg      t lineno
4812adc0320Smrg      b
4822adc0320Smrg      :lineno
4832adc0320Smrg      N
4842adc0320Smrg      :loop
4852adc0320Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4862adc0320Smrg      t loop
4872adc0320Smrg      s/-\n.*//
4882adc0320Smrg    ' >$as_me.lineno &&
4892adc0320Smrg  chmod +x "$as_me.lineno" ||
4902adc0320Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
4917a0395d0Smrg
4928abc0ccfSmrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
4938abc0ccfSmrg  # already done that, so ensure we don't try to do so again and fall
4948abc0ccfSmrg  # in an infinite loop.  This has already happened in practice.
4958abc0ccfSmrg  _as_can_reexec=no; export _as_can_reexec
4962adc0320Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
4972adc0320Smrg  # (the dirname of $[0] is not the place where we might find the
4982adc0320Smrg  # original and so on.  Autoconf is especially sensitive to this).
4992adc0320Smrg  . "./$as_me.lineno"
5002adc0320Smrg  # Exit status is that of the last command.
5012adc0320Smrg  exit
5027a0395d0Smrg}
5037a0395d0Smrg
5042adc0320SmrgECHO_C= ECHO_N= ECHO_T=
5052adc0320Smrgcase `echo -n x` in #(((((
5062adc0320Smrg-n*)
5072adc0320Smrg  case `echo 'xy\c'` in
5082adc0320Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5092adc0320Smrg  xy)  ECHO_C='\c';;
5102adc0320Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5112adc0320Smrg       ECHO_T='	';;
5122adc0320Smrg  esac;;
5132adc0320Smrg*)
5142adc0320Smrg  ECHO_N='-n';;
5152adc0320Smrgesac
5167a0395d0Smrg
5172adc0320Smrgrm -f conf$$ conf$$.exe conf$$.file
5182adc0320Smrgif test -d conf$$.dir; then
5192adc0320Smrg  rm -f conf$$.dir/conf$$.file
5202adc0320Smrgelse
5212adc0320Smrg  rm -f conf$$.dir
5222adc0320Smrg  mkdir conf$$.dir 2>/dev/null
5237a0395d0Smrgfi
5242adc0320Smrgif (echo >conf$$.file) 2>/dev/null; then
5252adc0320Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5262adc0320Smrg    as_ln_s='ln -s'
5272adc0320Smrg    # ... but there are two gotchas:
5282adc0320Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5292adc0320Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5308abc0ccfSmrg    # In both cases, we have to default to `cp -pR'.
5312adc0320Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5328abc0ccfSmrg      as_ln_s='cp -pR'
5332adc0320Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5342adc0320Smrg    as_ln_s=ln
5352adc0320Smrg  else
5368abc0ccfSmrg    as_ln_s='cp -pR'
5372adc0320Smrg  fi
5387a0395d0Smrgelse
5398abc0ccfSmrg  as_ln_s='cp -pR'
5407a0395d0Smrgfi
5412adc0320Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5422adc0320Smrgrmdir conf$$.dir 2>/dev/null
5437a0395d0Smrg
5442adc0320Smrgif mkdir -p . 2>/dev/null; then
5452adc0320Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5462adc0320Smrgelse
5472adc0320Smrg  test -d ./-p && rmdir ./-p
5482adc0320Smrg  as_mkdir_p=false
5497a0395d0Smrgfi
5507a0395d0Smrg
5518abc0ccfSmrgas_test_x='test -x'
5528abc0ccfSmrgas_executable_p=as_fn_executable_p
5537a0395d0Smrg
5542adc0320Smrg# Sed expression to map a string onto a valid CPP name.
5552adc0320Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5567a0395d0Smrg
5572adc0320Smrg# Sed expression to map a string onto a valid variable name.
5582adc0320Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5597a0395d0Smrg
5607a0395d0Smrg
5612adc0320Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5622adc0320Smrgexec 6>&1
5637a0395d0Smrg
5647a0395d0Smrg# Name of the host.
5652adc0320Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5667a0395d0Smrg# so uname gets run too.
5677a0395d0Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5687a0395d0Smrg
5697a0395d0Smrg#
5707a0395d0Smrg# Initializations.
5717a0395d0Smrg#
5727a0395d0Smrgac_default_prefix=/usr/local
5737a0395d0Smrgac_clean_files=
5747a0395d0Smrgac_config_libobj_dir=.
5757a0395d0SmrgLIBOBJS=
5767a0395d0Smrgcross_compiling=no
5777a0395d0Smrgsubdirs=
5787a0395d0SmrgMFLAGS=
5797a0395d0SmrgMAKEFLAGS=
5807a0395d0Smrg
5817a0395d0Smrg# Identity of this package.
5827a0395d0SmrgPACKAGE_NAME='xauth'
5837a0395d0SmrgPACKAGE_TARNAME='xauth'
58440c5344fSmrgPACKAGE_VERSION='1.0.10'
58540c5344fSmrgPACKAGE_STRING='xauth 1.0.10'
5867a0395d0SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
5872adc0320SmrgPACKAGE_URL=''
5887a0395d0Smrg
5897a0395d0Smrg# Factoring default headers for most tests.
5907a0395d0Smrgac_includes_default="\
5917a0395d0Smrg#include <stdio.h>
5927a0395d0Smrg#ifdef HAVE_SYS_TYPES_H
5937a0395d0Smrg# include <sys/types.h>
5947a0395d0Smrg#endif
5957a0395d0Smrg#ifdef HAVE_SYS_STAT_H
5967a0395d0Smrg# include <sys/stat.h>
5977a0395d0Smrg#endif
5987a0395d0Smrg#ifdef STDC_HEADERS
5997a0395d0Smrg# include <stdlib.h>
6007a0395d0Smrg# include <stddef.h>
6017a0395d0Smrg#else
6027a0395d0Smrg# ifdef HAVE_STDLIB_H
6037a0395d0Smrg#  include <stdlib.h>
6047a0395d0Smrg# endif
6057a0395d0Smrg#endif
6067a0395d0Smrg#ifdef HAVE_STRING_H
6077a0395d0Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6087a0395d0Smrg#  include <memory.h>
6097a0395d0Smrg# endif
6107a0395d0Smrg# include <string.h>
6117a0395d0Smrg#endif
6127a0395d0Smrg#ifdef HAVE_STRINGS_H
6137a0395d0Smrg# include <strings.h>
6147a0395d0Smrg#endif
6157a0395d0Smrg#ifdef HAVE_INTTYPES_H
6167a0395d0Smrg# include <inttypes.h>
6177a0395d0Smrg#endif
6187a0395d0Smrg#ifdef HAVE_STDINT_H
6197a0395d0Smrg# include <stdint.h>
6207a0395d0Smrg#endif
6217a0395d0Smrg#ifdef HAVE_UNISTD_H
6227a0395d0Smrg# include <unistd.h>
6237a0395d0Smrg#endif"
6247a0395d0Smrg
6257366012aSmrgac_subst_vars='am__EXEEXT_FALSE
6267366012aSmrgam__EXEEXT_TRUE
6277366012aSmrgLTLIBOBJS
6287366012aSmrgLIBOBJS
6297a0395d0SmrgLINT_FALSE
6307366012aSmrgLINT_TRUE
6317366012aSmrgLINT_FLAGS
6327366012aSmrgLINT
6337366012aSmrgXAUTH_LIBS
6347366012aSmrgXAUTH_CFLAGS
6352adc0320SmrgMAN_SUBSTS
6362adc0320SmrgXORG_MAN_PAGE
6377a0395d0SmrgADMIN_MAN_DIR
6387366012aSmrgDRIVER_MAN_DIR
6397366012aSmrgMISC_MAN_DIR
6407366012aSmrgFILE_MAN_DIR
6417366012aSmrgLIB_MAN_DIR
6427366012aSmrgAPP_MAN_DIR
6437366012aSmrgADMIN_MAN_SUFFIX
6447366012aSmrgDRIVER_MAN_SUFFIX
6457366012aSmrgMISC_MAN_SUFFIX
6467366012aSmrgFILE_MAN_SUFFIX
6477366012aSmrgLIB_MAN_SUFFIX
6487366012aSmrgAPP_MAN_SUFFIX
6492adc0320SmrgSED
6507366012aSmrghost_os
6517366012aSmrghost_vendor
6527366012aSmrghost_cpu
6537366012aSmrghost
6547366012aSmrgbuild_os
6557366012aSmrgbuild_vendor
6567366012aSmrgbuild_cpu
6577366012aSmrgbuild
6582adc0320SmrgINSTALL_CMD
6598abc0ccfSmrgPKG_CONFIG_LIBDIR
6608abc0ccfSmrgPKG_CONFIG_PATH
6612adc0320SmrgPKG_CONFIG
6627366012aSmrgCHANGELOG_CMD
66396402570SmrgSTRICT_CFLAGS
6647366012aSmrgCWARNFLAGS
66596402570SmrgBASE_CFLAGS
6667366012aSmrgEGREP
6677366012aSmrgGREP
6687366012aSmrgCPP
6697366012aSmrgam__fastdepCC_FALSE
6707366012aSmrgam__fastdepCC_TRUE
6717366012aSmrgCCDEPMODE
6728abc0ccfSmrgam__nodep
6737366012aSmrgAMDEPBACKSLASH
6747366012aSmrgAMDEP_FALSE
6757366012aSmrgAMDEP_TRUE
6767366012aSmrgam__quote
6777366012aSmrgam__include
6787366012aSmrgDEPDIR
6797366012aSmrgOBJEXT
6807366012aSmrgEXEEXT
6817366012aSmrgac_ct_CC
6827366012aSmrgCPPFLAGS
6837366012aSmrgLDFLAGS
6847366012aSmrgCFLAGS
6857366012aSmrgCC
6869a011757SmrgAM_BACKSLASH
6879a011757SmrgAM_DEFAULT_VERBOSITY
6889a011757SmrgAM_DEFAULT_V
6899a011757SmrgAM_V
6907366012aSmrgam__untar
6917366012aSmrgam__tar
6927366012aSmrgAMTAR
6937366012aSmrgam__leading_dot
6947366012aSmrgSET_MAKE
6957366012aSmrgAWK
6967366012aSmrgmkdir_p
6977366012aSmrgMKDIR_P
6987366012aSmrgINSTALL_STRIP_PROGRAM
6997366012aSmrgSTRIP
7007366012aSmrginstall_sh
7017366012aSmrgMAKEINFO
7027366012aSmrgAUTOHEADER
7037366012aSmrgAUTOMAKE
7047366012aSmrgAUTOCONF
7057366012aSmrgACLOCAL
7067366012aSmrgVERSION
7077366012aSmrgPACKAGE
7087366012aSmrgCYGPATH_W
7097366012aSmrgam__isrc
7107366012aSmrgINSTALL_DATA
7117366012aSmrgINSTALL_SCRIPT
7127366012aSmrgINSTALL_PROGRAM
7137366012aSmrgtarget_alias
7147366012aSmrghost_alias
7157366012aSmrgbuild_alias
7167366012aSmrgLIBS
7177366012aSmrgECHO_T
7187366012aSmrgECHO_N
7197366012aSmrgECHO_C
7207366012aSmrgDEFS
7217366012aSmrgmandir
7227366012aSmrglocaledir
7237366012aSmrglibdir
7247366012aSmrgpsdir
7257366012aSmrgpdfdir
7267366012aSmrgdvidir
7277366012aSmrghtmldir
7287366012aSmrginfodir
7297366012aSmrgdocdir
7307366012aSmrgoldincludedir
7317366012aSmrgincludedir
7327366012aSmrglocalstatedir
7337366012aSmrgsharedstatedir
7347366012aSmrgsysconfdir
7357366012aSmrgdatadir
7367366012aSmrgdatarootdir
7377366012aSmrglibexecdir
7387366012aSmrgsbindir
7397366012aSmrgbindir
7407366012aSmrgprogram_transform_name
7417366012aSmrgprefix
7427366012aSmrgexec_prefix
7432adc0320SmrgPACKAGE_URL
7447366012aSmrgPACKAGE_BUGREPORT
7457366012aSmrgPACKAGE_STRING
7467366012aSmrgPACKAGE_VERSION
7477366012aSmrgPACKAGE_TARNAME
7487366012aSmrgPACKAGE_NAME
7497366012aSmrgPATH_SEPARATOR
7507366012aSmrgSHELL'
7517a0395d0Smrgac_subst_files=''
7527366012aSmrgac_user_opts='
7537366012aSmrgenable_option_checking
7549a011757Smrgenable_silent_rules
7557366012aSmrgenable_dependency_tracking
75696402570Smrgenable_selective_werror
7577366012aSmrgenable_strict_compilation
7587366012aSmrgenable_unix_transport
7597366012aSmrgenable_tcp_transport
7607366012aSmrgenable_ipv6
7617366012aSmrgenable_local_transport
7627366012aSmrgwith_lint
7637366012aSmrg'
7647a0395d0Smrg      ac_precious_vars='build_alias
7657a0395d0Smrghost_alias
7667a0395d0Smrgtarget_alias
7677a0395d0SmrgCC
7687a0395d0SmrgCFLAGS
7697a0395d0SmrgLDFLAGS
7707a0395d0SmrgLIBS
7717a0395d0SmrgCPPFLAGS
7727a0395d0SmrgCPP
7737a0395d0SmrgPKG_CONFIG
7748abc0ccfSmrgPKG_CONFIG_PATH
7758abc0ccfSmrgPKG_CONFIG_LIBDIR
7767a0395d0SmrgXAUTH_CFLAGS
7772adc0320SmrgXAUTH_LIBS
7782adc0320SmrgLINT
7792adc0320SmrgLINT_FLAGS'
7807a0395d0Smrg
7817a0395d0Smrg
7827a0395d0Smrg# Initialize some variables set by options.
7837a0395d0Smrgac_init_help=
7847a0395d0Smrgac_init_version=false
7857366012aSmrgac_unrecognized_opts=
7867366012aSmrgac_unrecognized_sep=
7877a0395d0Smrg# The variables have the same names as the options, with
7887a0395d0Smrg# dashes changed to underlines.
7897a0395d0Smrgcache_file=/dev/null
7907a0395d0Smrgexec_prefix=NONE
7917a0395d0Smrgno_create=
7927a0395d0Smrgno_recursion=
7937a0395d0Smrgprefix=NONE
7947a0395d0Smrgprogram_prefix=NONE
7957a0395d0Smrgprogram_suffix=NONE
7967a0395d0Smrgprogram_transform_name=s,x,x,
7977a0395d0Smrgsilent=
7987a0395d0Smrgsite=
7997a0395d0Smrgsrcdir=
8007a0395d0Smrgverbose=
8017a0395d0Smrgx_includes=NONE
8027a0395d0Smrgx_libraries=NONE
8037a0395d0Smrg
8047a0395d0Smrg# Installation directory options.
8057a0395d0Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8067a0395d0Smrg# and all the variables that are supposed to be based on exec_prefix
8077a0395d0Smrg# by default will actually change.
8087a0395d0Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
8097a0395d0Smrg# (The list follows the same order as the GNU Coding Standards.)
8107a0395d0Smrgbindir='${exec_prefix}/bin'
8117a0395d0Smrgsbindir='${exec_prefix}/sbin'
8127a0395d0Smrglibexecdir='${exec_prefix}/libexec'
8137a0395d0Smrgdatarootdir='${prefix}/share'
8147a0395d0Smrgdatadir='${datarootdir}'
8157a0395d0Smrgsysconfdir='${prefix}/etc'
8167a0395d0Smrgsharedstatedir='${prefix}/com'
8177a0395d0Smrglocalstatedir='${prefix}/var'
8187a0395d0Smrgincludedir='${prefix}/include'
8197a0395d0Smrgoldincludedir='/usr/include'
8207a0395d0Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
8217a0395d0Smrginfodir='${datarootdir}/info'
8227a0395d0Smrghtmldir='${docdir}'
8237a0395d0Smrgdvidir='${docdir}'
8247a0395d0Smrgpdfdir='${docdir}'
8257a0395d0Smrgpsdir='${docdir}'
8267a0395d0Smrglibdir='${exec_prefix}/lib'
8277a0395d0Smrglocaledir='${datarootdir}/locale'
8287a0395d0Smrgmandir='${datarootdir}/man'
8297a0395d0Smrg
8307a0395d0Smrgac_prev=
8317a0395d0Smrgac_dashdash=
8327a0395d0Smrgfor ac_option
8337a0395d0Smrgdo
8347a0395d0Smrg  # If the previous option needs an argument, assign it.
8357a0395d0Smrg  if test -n "$ac_prev"; then
8367a0395d0Smrg    eval $ac_prev=\$ac_option
8377a0395d0Smrg    ac_prev=
8387a0395d0Smrg    continue
8397a0395d0Smrg  fi
8407a0395d0Smrg
8417a0395d0Smrg  case $ac_option in
8422adc0320Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8432adc0320Smrg  *=)   ac_optarg= ;;
8442adc0320Smrg  *)    ac_optarg=yes ;;
8457a0395d0Smrg  esac
8467a0395d0Smrg
8477a0395d0Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
8487a0395d0Smrg
8497a0395d0Smrg  case $ac_dashdash$ac_option in
8507a0395d0Smrg  --)
8517a0395d0Smrg    ac_dashdash=yes ;;
8527a0395d0Smrg
8537a0395d0Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8547a0395d0Smrg    ac_prev=bindir ;;
8557a0395d0Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8567a0395d0Smrg    bindir=$ac_optarg ;;
8577a0395d0Smrg
8587a0395d0Smrg  -build | --build | --buil | --bui | --bu)
8597a0395d0Smrg    ac_prev=build_alias ;;
8607a0395d0Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8617a0395d0Smrg    build_alias=$ac_optarg ;;
8627a0395d0Smrg
8637a0395d0Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8647a0395d0Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8657a0395d0Smrg    ac_prev=cache_file ;;
8667a0395d0Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8677a0395d0Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8687a0395d0Smrg    cache_file=$ac_optarg ;;
8697a0395d0Smrg
8707a0395d0Smrg  --config-cache | -C)
8717a0395d0Smrg    cache_file=config.cache ;;
8727a0395d0Smrg
8737a0395d0Smrg  -datadir | --datadir | --datadi | --datad)
8747a0395d0Smrg    ac_prev=datadir ;;
8757a0395d0Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8767a0395d0Smrg    datadir=$ac_optarg ;;
8777a0395d0Smrg
8787a0395d0Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8797a0395d0Smrg  | --dataroo | --dataro | --datar)
8807a0395d0Smrg    ac_prev=datarootdir ;;
8817a0395d0Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8827a0395d0Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8837a0395d0Smrg    datarootdir=$ac_optarg ;;
8847a0395d0Smrg
8857a0395d0Smrg  -disable-* | --disable-*)
8867366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8877a0395d0Smrg    # Reject names that are not valid shell variable names.
8887366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8892adc0320Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
8907366012aSmrg    ac_useropt_orig=$ac_useropt
8917366012aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8927366012aSmrg    case $ac_user_opts in
8937366012aSmrg      *"
8947366012aSmrg"enable_$ac_useropt"
8957366012aSmrg"*) ;;
8967366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8977366012aSmrg	 ac_unrecognized_sep=', ';;
8987366012aSmrg    esac
8997366012aSmrg    eval enable_$ac_useropt=no ;;
9007a0395d0Smrg
9017a0395d0Smrg  -docdir | --docdir | --docdi | --doc | --do)
9027a0395d0Smrg    ac_prev=docdir ;;
9037a0395d0Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
9047a0395d0Smrg    docdir=$ac_optarg ;;
9057a0395d0Smrg
9067a0395d0Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
9077a0395d0Smrg    ac_prev=dvidir ;;
9087a0395d0Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
9097a0395d0Smrg    dvidir=$ac_optarg ;;
9107a0395d0Smrg
9117a0395d0Smrg  -enable-* | --enable-*)
9127366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9137a0395d0Smrg    # Reject names that are not valid shell variable names.
9147366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9152adc0320Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
9167366012aSmrg    ac_useropt_orig=$ac_useropt
9177366012aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9187366012aSmrg    case $ac_user_opts in
9197366012aSmrg      *"
9207366012aSmrg"enable_$ac_useropt"
9217366012aSmrg"*) ;;
9227366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9237366012aSmrg	 ac_unrecognized_sep=', ';;
9247366012aSmrg    esac
9257366012aSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
9267a0395d0Smrg
9277a0395d0Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9287a0395d0Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9297a0395d0Smrg  | --exec | --exe | --ex)
9307a0395d0Smrg    ac_prev=exec_prefix ;;
9317a0395d0Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9327a0395d0Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9337a0395d0Smrg  | --exec=* | --exe=* | --ex=*)
9347a0395d0Smrg    exec_prefix=$ac_optarg ;;
9357a0395d0Smrg
9367a0395d0Smrg  -gas | --gas | --ga | --g)
9377a0395d0Smrg    # Obsolete; use --with-gas.
9387a0395d0Smrg    with_gas=yes ;;
9397a0395d0Smrg
9407a0395d0Smrg  -help | --help | --hel | --he | -h)
9417a0395d0Smrg    ac_init_help=long ;;
9427a0395d0Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9437a0395d0Smrg    ac_init_help=recursive ;;
9447a0395d0Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9457a0395d0Smrg    ac_init_help=short ;;
9467a0395d0Smrg
9477a0395d0Smrg  -host | --host | --hos | --ho)
9487a0395d0Smrg    ac_prev=host_alias ;;
9497a0395d0Smrg  -host=* | --host=* | --hos=* | --ho=*)
9507a0395d0Smrg    host_alias=$ac_optarg ;;
9517a0395d0Smrg
9527a0395d0Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9537a0395d0Smrg    ac_prev=htmldir ;;
9547a0395d0Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9557a0395d0Smrg  | --ht=*)
9567a0395d0Smrg    htmldir=$ac_optarg ;;
9577a0395d0Smrg
9587a0395d0Smrg  -includedir | --includedir | --includedi | --included | --include \
9597a0395d0Smrg  | --includ | --inclu | --incl | --inc)
9607a0395d0Smrg    ac_prev=includedir ;;
9617a0395d0Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9627a0395d0Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9637a0395d0Smrg    includedir=$ac_optarg ;;
9647a0395d0Smrg
9657a0395d0Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9667a0395d0Smrg    ac_prev=infodir ;;
9677a0395d0Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9687a0395d0Smrg    infodir=$ac_optarg ;;
9697a0395d0Smrg
9707a0395d0Smrg  -libdir | --libdir | --libdi | --libd)
9717a0395d0Smrg    ac_prev=libdir ;;
9727a0395d0Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9737a0395d0Smrg    libdir=$ac_optarg ;;
9747a0395d0Smrg
9757a0395d0Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9767a0395d0Smrg  | --libexe | --libex | --libe)
9777a0395d0Smrg    ac_prev=libexecdir ;;
9787a0395d0Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9797a0395d0Smrg  | --libexe=* | --libex=* | --libe=*)
9807a0395d0Smrg    libexecdir=$ac_optarg ;;
9817a0395d0Smrg
9827a0395d0Smrg  -localedir | --localedir | --localedi | --localed | --locale)
9837a0395d0Smrg    ac_prev=localedir ;;
9847a0395d0Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9857a0395d0Smrg    localedir=$ac_optarg ;;
9867a0395d0Smrg
9877a0395d0Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
9887a0395d0Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
9897a0395d0Smrg    ac_prev=localstatedir ;;
9907a0395d0Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9917a0395d0Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9927a0395d0Smrg    localstatedir=$ac_optarg ;;
9937a0395d0Smrg
9947a0395d0Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9957a0395d0Smrg    ac_prev=mandir ;;
9967a0395d0Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9977a0395d0Smrg    mandir=$ac_optarg ;;
9987a0395d0Smrg
9997a0395d0Smrg  -nfp | --nfp | --nf)
10007a0395d0Smrg    # Obsolete; use --without-fp.
10017a0395d0Smrg    with_fp=no ;;
10027a0395d0Smrg
10037a0395d0Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
10047a0395d0Smrg  | --no-cr | --no-c | -n)
10057a0395d0Smrg    no_create=yes ;;
10067a0395d0Smrg
10077a0395d0Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10087a0395d0Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10097a0395d0Smrg    no_recursion=yes ;;
10107a0395d0Smrg
10117a0395d0Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10127a0395d0Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10137a0395d0Smrg  | --oldin | --oldi | --old | --ol | --o)
10147a0395d0Smrg    ac_prev=oldincludedir ;;
10157a0395d0Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10167a0395d0Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10177a0395d0Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10187a0395d0Smrg    oldincludedir=$ac_optarg ;;
10197a0395d0Smrg
10207a0395d0Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10217a0395d0Smrg    ac_prev=prefix ;;
10227a0395d0Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10237a0395d0Smrg    prefix=$ac_optarg ;;
10247a0395d0Smrg
10257a0395d0Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10267a0395d0Smrg  | --program-pre | --program-pr | --program-p)
10277a0395d0Smrg    ac_prev=program_prefix ;;
10287a0395d0Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10297a0395d0Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10307a0395d0Smrg    program_prefix=$ac_optarg ;;
10317a0395d0Smrg
10327a0395d0Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10337a0395d0Smrg  | --program-suf | --program-su | --program-s)
10347a0395d0Smrg    ac_prev=program_suffix ;;
10357a0395d0Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10367a0395d0Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10377a0395d0Smrg    program_suffix=$ac_optarg ;;
10387a0395d0Smrg
10397a0395d0Smrg  -program-transform-name | --program-transform-name \
10407a0395d0Smrg  | --program-transform-nam | --program-transform-na \
10417a0395d0Smrg  | --program-transform-n | --program-transform- \
10427a0395d0Smrg  | --program-transform | --program-transfor \
10437a0395d0Smrg  | --program-transfo | --program-transf \
10447a0395d0Smrg  | --program-trans | --program-tran \
10457a0395d0Smrg  | --progr-tra | --program-tr | --program-t)
10467a0395d0Smrg    ac_prev=program_transform_name ;;
10477a0395d0Smrg  -program-transform-name=* | --program-transform-name=* \
10487a0395d0Smrg  | --program-transform-nam=* | --program-transform-na=* \
10497a0395d0Smrg  | --program-transform-n=* | --program-transform-=* \
10507a0395d0Smrg  | --program-transform=* | --program-transfor=* \
10517a0395d0Smrg  | --program-transfo=* | --program-transf=* \
10527a0395d0Smrg  | --program-trans=* | --program-tran=* \
10537a0395d0Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10547a0395d0Smrg    program_transform_name=$ac_optarg ;;
10557a0395d0Smrg
10567a0395d0Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10577a0395d0Smrg    ac_prev=pdfdir ;;
10587a0395d0Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10597a0395d0Smrg    pdfdir=$ac_optarg ;;
10607a0395d0Smrg
10617a0395d0Smrg  -psdir | --psdir | --psdi | --psd | --ps)
10627a0395d0Smrg    ac_prev=psdir ;;
10637a0395d0Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10647a0395d0Smrg    psdir=$ac_optarg ;;
10657a0395d0Smrg
10667a0395d0Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10677a0395d0Smrg  | -silent | --silent | --silen | --sile | --sil)
10687a0395d0Smrg    silent=yes ;;
10697a0395d0Smrg
10707a0395d0Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10717a0395d0Smrg    ac_prev=sbindir ;;
10727a0395d0Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10737a0395d0Smrg  | --sbi=* | --sb=*)
10747a0395d0Smrg    sbindir=$ac_optarg ;;
10757a0395d0Smrg
10767a0395d0Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10777a0395d0Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10787a0395d0Smrg  | --sharedst | --shareds | --shared | --share | --shar \
10797a0395d0Smrg  | --sha | --sh)
10807a0395d0Smrg    ac_prev=sharedstatedir ;;
10817a0395d0Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10827a0395d0Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10837a0395d0Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10847a0395d0Smrg  | --sha=* | --sh=*)
10857a0395d0Smrg    sharedstatedir=$ac_optarg ;;
10867a0395d0Smrg
10877a0395d0Smrg  -site | --site | --sit)
10887a0395d0Smrg    ac_prev=site ;;
10897a0395d0Smrg  -site=* | --site=* | --sit=*)
10907a0395d0Smrg    site=$ac_optarg ;;
10917a0395d0Smrg
10927a0395d0Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10937a0395d0Smrg    ac_prev=srcdir ;;
10947a0395d0Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10957a0395d0Smrg    srcdir=$ac_optarg ;;
10967a0395d0Smrg
10977a0395d0Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10987a0395d0Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
10997a0395d0Smrg    ac_prev=sysconfdir ;;
11007a0395d0Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
11017a0395d0Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
11027a0395d0Smrg    sysconfdir=$ac_optarg ;;
11037a0395d0Smrg
11047a0395d0Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11057a0395d0Smrg    ac_prev=target_alias ;;
11067a0395d0Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11077a0395d0Smrg    target_alias=$ac_optarg ;;
11087a0395d0Smrg
11097a0395d0Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11107a0395d0Smrg    verbose=yes ;;
11117a0395d0Smrg
11127a0395d0Smrg  -version | --version | --versio | --versi | --vers | -V)
11137a0395d0Smrg    ac_init_version=: ;;
11147a0395d0Smrg
11157a0395d0Smrg  -with-* | --with-*)
11167366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11177a0395d0Smrg    # Reject names that are not valid shell variable names.
11187366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11192adc0320Smrg      as_fn_error $? "invalid package name: $ac_useropt"
11207366012aSmrg    ac_useropt_orig=$ac_useropt
11217366012aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11227366012aSmrg    case $ac_user_opts in
11237366012aSmrg      *"
11247366012aSmrg"with_$ac_useropt"
11257366012aSmrg"*) ;;
11267366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11277366012aSmrg	 ac_unrecognized_sep=', ';;
11287366012aSmrg    esac
11297366012aSmrg    eval with_$ac_useropt=\$ac_optarg ;;
11307a0395d0Smrg
11317a0395d0Smrg  -without-* | --without-*)
11327366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11337a0395d0Smrg    # Reject names that are not valid shell variable names.
11347366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11352adc0320Smrg      as_fn_error $? "invalid package name: $ac_useropt"
11367366012aSmrg    ac_useropt_orig=$ac_useropt
11377366012aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11387366012aSmrg    case $ac_user_opts in
11397366012aSmrg      *"
11407366012aSmrg"with_$ac_useropt"
11417366012aSmrg"*) ;;
11427366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11437366012aSmrg	 ac_unrecognized_sep=', ';;
11447366012aSmrg    esac
11457366012aSmrg    eval with_$ac_useropt=no ;;
11467a0395d0Smrg
11477a0395d0Smrg  --x)
11487a0395d0Smrg    # Obsolete; use --with-x.
11497a0395d0Smrg    with_x=yes ;;
11507a0395d0Smrg
11517a0395d0Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11527a0395d0Smrg  | --x-incl | --x-inc | --x-in | --x-i)
11537a0395d0Smrg    ac_prev=x_includes ;;
11547a0395d0Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11557a0395d0Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11567a0395d0Smrg    x_includes=$ac_optarg ;;
11577a0395d0Smrg
11587a0395d0Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11597a0395d0Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11607a0395d0Smrg    ac_prev=x_libraries ;;
11617a0395d0Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11627a0395d0Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11637a0395d0Smrg    x_libraries=$ac_optarg ;;
11647a0395d0Smrg
11652adc0320Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11662adc0320SmrgTry \`$0 --help' for more information"
11677a0395d0Smrg    ;;
11687a0395d0Smrg
11697a0395d0Smrg  *=*)
11707a0395d0Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11717a0395d0Smrg    # Reject names that are not valid shell variable names.
11722adc0320Smrg    case $ac_envvar in #(
11732adc0320Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11742adc0320Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
11752adc0320Smrg    esac
11767a0395d0Smrg    eval $ac_envvar=\$ac_optarg
11777a0395d0Smrg    export $ac_envvar ;;
11787a0395d0Smrg
11797a0395d0Smrg  *)
11807a0395d0Smrg    # FIXME: should be removed in autoconf 3.0.
11817366012aSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11827a0395d0Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11837366012aSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11842adc0320Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
11857a0395d0Smrg    ;;
11867a0395d0Smrg
11877a0395d0Smrg  esac
11887a0395d0Smrgdone
11897a0395d0Smrg
11907a0395d0Smrgif test -n "$ac_prev"; then
11917a0395d0Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11922adc0320Smrg  as_fn_error $? "missing argument to $ac_option"
11937a0395d0Smrgfi
11947a0395d0Smrg
11957366012aSmrgif test -n "$ac_unrecognized_opts"; then
11967366012aSmrg  case $enable_option_checking in
11977366012aSmrg    no) ;;
11982adc0320Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11997366012aSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12007366012aSmrg  esac
12017366012aSmrgfi
12027366012aSmrg
12037366012aSmrg# Check all directory arguments for consistency.
12047a0395d0Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
12057a0395d0Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
12067a0395d0Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
12077a0395d0Smrg		libdir localedir mandir
12087a0395d0Smrgdo
12097a0395d0Smrg  eval ac_val=\$$ac_var
12107366012aSmrg  # Remove trailing slashes.
12117366012aSmrg  case $ac_val in
12127366012aSmrg    */ )
12137366012aSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
12147366012aSmrg      eval $ac_var=\$ac_val;;
12157366012aSmrg  esac
12167366012aSmrg  # Be sure to have absolute directory names.
12177a0395d0Smrg  case $ac_val in
12187a0395d0Smrg    [\\/$]* | ?:[\\/]* )  continue;;
12197a0395d0Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12207a0395d0Smrg  esac
12212adc0320Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
12227a0395d0Smrgdone
12237a0395d0Smrg
12247a0395d0Smrg# There might be people who depend on the old broken behavior: `$host'
12257a0395d0Smrg# used to hold the argument of --host etc.
12267a0395d0Smrg# FIXME: To remove some day.
12277a0395d0Smrgbuild=$build_alias
12287a0395d0Smrghost=$host_alias
12297a0395d0Smrgtarget=$target_alias
12307a0395d0Smrg
12317a0395d0Smrg# FIXME: To remove some day.
12327a0395d0Smrgif test "x$host_alias" != x; then
12337a0395d0Smrg  if test "x$build_alias" = x; then
12347a0395d0Smrg    cross_compiling=maybe
12357a0395d0Smrg  elif test "x$build_alias" != "x$host_alias"; then
12367a0395d0Smrg    cross_compiling=yes
12377a0395d0Smrg  fi
12387a0395d0Smrgfi
12397a0395d0Smrg
12407a0395d0Smrgac_tool_prefix=
12417a0395d0Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12427a0395d0Smrg
12437a0395d0Smrgtest "$silent" = yes && exec 6>/dev/null
12447a0395d0Smrg
12457a0395d0Smrg
12467a0395d0Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12477a0395d0Smrgac_ls_di=`ls -di .` &&
12487a0395d0Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12492adc0320Smrg  as_fn_error $? "working directory cannot be determined"
12507a0395d0Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12512adc0320Smrg  as_fn_error $? "pwd does not report name of working directory"
12527a0395d0Smrg
12537a0395d0Smrg
12547a0395d0Smrg# Find the source files, if location was not specified.
12557a0395d0Smrgif test -z "$srcdir"; then
12567a0395d0Smrg  ac_srcdir_defaulted=yes
12577a0395d0Smrg  # Try the directory containing this script, then the parent directory.
12587366012aSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12597366012aSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12607366012aSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12617366012aSmrg	 X"$as_myself" : 'X\(//\)$' \| \
12627366012aSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12637366012aSmrg$as_echo X"$as_myself" |
12647a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12657a0395d0Smrg	    s//\1/
12667a0395d0Smrg	    q
12677a0395d0Smrg	  }
12687a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
12697a0395d0Smrg	    s//\1/
12707a0395d0Smrg	    q
12717a0395d0Smrg	  }
12727a0395d0Smrg	  /^X\(\/\/\)$/{
12737a0395d0Smrg	    s//\1/
12747a0395d0Smrg	    q
12757a0395d0Smrg	  }
12767a0395d0Smrg	  /^X\(\/\).*/{
12777a0395d0Smrg	    s//\1/
12787a0395d0Smrg	    q
12797a0395d0Smrg	  }
12807a0395d0Smrg	  s/.*/./; q'`
12817a0395d0Smrg  srcdir=$ac_confdir
12827a0395d0Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
12837a0395d0Smrg    srcdir=..
12847a0395d0Smrg  fi
12857a0395d0Smrgelse
12867a0395d0Smrg  ac_srcdir_defaulted=no
12877a0395d0Smrgfi
12887a0395d0Smrgif test ! -r "$srcdir/$ac_unique_file"; then
12897a0395d0Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12902adc0320Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12917a0395d0Smrgfi
12927a0395d0Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
12937a0395d0Smrgac_abs_confdir=`(
12942adc0320Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12957a0395d0Smrg	pwd)`
12967a0395d0Smrg# When building in place, set srcdir=.
12977a0395d0Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
12987a0395d0Smrg  srcdir=.
12997a0395d0Smrgfi
13007a0395d0Smrg# Remove unnecessary trailing slashes from srcdir.
13017a0395d0Smrg# Double slashes in file names in object file debugging info
13027a0395d0Smrg# mess up M-x gdb in Emacs.
13037a0395d0Smrgcase $srcdir in
13047a0395d0Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
13057a0395d0Smrgesac
13067a0395d0Smrgfor ac_var in $ac_precious_vars; do
13077a0395d0Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
13087a0395d0Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
13097a0395d0Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
13107a0395d0Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
13117a0395d0Smrgdone
13127a0395d0Smrg
13137a0395d0Smrg#
13147a0395d0Smrg# Report the --help message.
13157a0395d0Smrg#
13167a0395d0Smrgif test "$ac_init_help" = "long"; then
13177a0395d0Smrg  # Omit some internal or obsolete options to make the list less imposing.
13187a0395d0Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
13197a0395d0Smrg  cat <<_ACEOF
132040c5344fSmrg\`configure' configures xauth 1.0.10 to adapt to many kinds of systems.
13217a0395d0Smrg
13227a0395d0SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13237a0395d0Smrg
13247a0395d0SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13257a0395d0SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13267a0395d0Smrg
13277a0395d0SmrgDefaults for the options are specified in brackets.
13287a0395d0Smrg
13297a0395d0SmrgConfiguration:
13307a0395d0Smrg  -h, --help              display this help and exit
13317a0395d0Smrg      --help=short        display options specific to this package
13327a0395d0Smrg      --help=recursive    display the short help of all the included packages
13337a0395d0Smrg  -V, --version           display version information and exit
13342adc0320Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
13357a0395d0Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13367a0395d0Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13377a0395d0Smrg  -n, --no-create         do not create output files
13387a0395d0Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13397a0395d0Smrg
13407a0395d0SmrgInstallation directories:
13417a0395d0Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13427366012aSmrg                          [$ac_default_prefix]
13437a0395d0Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13447366012aSmrg                          [PREFIX]
13457a0395d0Smrg
13467a0395d0SmrgBy default, \`make install' will install all the files in
13477a0395d0Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13487a0395d0Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13497a0395d0Smrgfor instance \`--prefix=\$HOME'.
13507a0395d0Smrg
13517a0395d0SmrgFor better control, use the options below.
13527a0395d0Smrg
13537a0395d0SmrgFine tuning of the installation directories:
13547366012aSmrg  --bindir=DIR            user executables [EPREFIX/bin]
13557366012aSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13567366012aSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13577366012aSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13587366012aSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13597366012aSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13607366012aSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13617366012aSmrg  --includedir=DIR        C header files [PREFIX/include]
13627366012aSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13637366012aSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13647366012aSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13657366012aSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13667366012aSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13677366012aSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13687366012aSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xauth]
13697366012aSmrg  --htmldir=DIR           html documentation [DOCDIR]
13707366012aSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
13717366012aSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13727366012aSmrg  --psdir=DIR             ps documentation [DOCDIR]
13737a0395d0Smrg_ACEOF
13747a0395d0Smrg
13757a0395d0Smrg  cat <<\_ACEOF
13767a0395d0Smrg
13777a0395d0SmrgProgram names:
13787a0395d0Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
13797a0395d0Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
13807a0395d0Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
13817a0395d0Smrg
13827a0395d0SmrgSystem types:
13837a0395d0Smrg  --build=BUILD     configure for building on BUILD [guessed]
13847a0395d0Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
13857a0395d0Smrg_ACEOF
13867a0395d0Smrgfi
13877a0395d0Smrg
13887a0395d0Smrgif test -n "$ac_init_help"; then
13897a0395d0Smrg  case $ac_init_help in
139040c5344fSmrg     short | recursive ) echo "Configuration of xauth 1.0.10:";;
13917a0395d0Smrg   esac
13927a0395d0Smrg  cat <<\_ACEOF
13937a0395d0Smrg
13947a0395d0SmrgOptional Features:
13957366012aSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
13967a0395d0Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
13977a0395d0Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
13989a011757Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
13999a011757Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
14008abc0ccfSmrg  --enable-dependency-tracking
14018abc0ccfSmrg                          do not reject slow dependency extractors
14028abc0ccfSmrg  --disable-dependency-tracking
14038abc0ccfSmrg                          speeds up one-time build
140496402570Smrg  --disable-selective-werror
140596402570Smrg                          Turn off selective compiler errors. (default:
140696402570Smrg                          enabled)
14077366012aSmrg  --enable-strict-compilation
14087366012aSmrg                          Enable all warnings from compiler and make them
14097366012aSmrg                          errors (default: disabled)
14107a0395d0Smrg  --enable-unix-transport Enable UNIX domain socket transport
14117a0395d0Smrg  --enable-tcp-transport  Enable TCP socket transport
14127366012aSmrg  --enable-ipv6           Enable IPv6 support
14137a0395d0Smrg  --enable-local-transport
14147a0395d0Smrg                          Enable os-specific local transport
14157a0395d0Smrg
14167a0395d0SmrgOptional Packages:
14177a0395d0Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
14187a0395d0Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14197366012aSmrg  --with-lint             Use a lint-style source code checker (default:
14207366012aSmrg                          disabled)
14217a0395d0Smrg
14227a0395d0SmrgSome influential environment variables:
14237a0395d0Smrg  CC          C compiler command
14247a0395d0Smrg  CFLAGS      C compiler flags
14257a0395d0Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14267a0395d0Smrg              nonstandard directory <lib dir>
14277a0395d0Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14282adc0320Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14297a0395d0Smrg              you have headers in a nonstandard directory <include dir>
14307a0395d0Smrg  CPP         C preprocessor
14317a0395d0Smrg  PKG_CONFIG  path to pkg-config utility
14328abc0ccfSmrg  PKG_CONFIG_PATH
14338abc0ccfSmrg              directories to add to pkg-config's search path
14348abc0ccfSmrg  PKG_CONFIG_LIBDIR
14358abc0ccfSmrg              path overriding pkg-config's built-in search path
14367a0395d0Smrg  XAUTH_CFLAGS
14377a0395d0Smrg              C compiler flags for XAUTH, overriding pkg-config
14387a0395d0Smrg  XAUTH_LIBS  linker flags for XAUTH, overriding pkg-config
14392adc0320Smrg  LINT        Path to a lint-style command
14402adc0320Smrg  LINT_FLAGS  Flags for the lint-style command
14417a0395d0Smrg
14427a0395d0SmrgUse these variables to override the choices made by `configure' or to help
14437a0395d0Smrgit to find libraries and programs with nonstandard names/locations.
14447a0395d0Smrg
14457a0395d0SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
14467a0395d0Smrg_ACEOF
14477a0395d0Smrgac_status=$?
14487a0395d0Smrgfi
14497a0395d0Smrg
14507a0395d0Smrgif test "$ac_init_help" = "recursive"; then
14517a0395d0Smrg  # If there are subdirs, report their specific --help.
14527a0395d0Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14537366012aSmrg    test -d "$ac_dir" ||
14547366012aSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14557366012aSmrg      continue
14567a0395d0Smrg    ac_builddir=.
14577a0395d0Smrg
14587a0395d0Smrgcase "$ac_dir" in
14597a0395d0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14607a0395d0Smrg*)
14617366012aSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14627a0395d0Smrg  # A ".." for each directory in $ac_dir_suffix.
14637366012aSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14647a0395d0Smrg  case $ac_top_builddir_sub in
14657a0395d0Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14667a0395d0Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14677a0395d0Smrg  esac ;;
14687a0395d0Smrgesac
14697a0395d0Smrgac_abs_top_builddir=$ac_pwd
14707a0395d0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14717a0395d0Smrg# for backward compatibility:
14727a0395d0Smrgac_top_builddir=$ac_top_build_prefix
14737a0395d0Smrg
14747a0395d0Smrgcase $srcdir in
14757a0395d0Smrg  .)  # We are building in place.
14767a0395d0Smrg    ac_srcdir=.
14777a0395d0Smrg    ac_top_srcdir=$ac_top_builddir_sub
14787a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd ;;
14797a0395d0Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14807a0395d0Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
14817a0395d0Smrg    ac_top_srcdir=$srcdir
14827a0395d0Smrg    ac_abs_top_srcdir=$srcdir ;;
14837a0395d0Smrg  *) # Relative name.
14847a0395d0Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14857a0395d0Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
14867a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14877a0395d0Smrgesac
14887a0395d0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14897a0395d0Smrg
14907a0395d0Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
14917a0395d0Smrg    # Check for guested configure.
14927a0395d0Smrg    if test -f "$ac_srcdir/configure.gnu"; then
14937a0395d0Smrg      echo &&
14947a0395d0Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
14957a0395d0Smrg    elif test -f "$ac_srcdir/configure"; then
14967a0395d0Smrg      echo &&
14977a0395d0Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
14987a0395d0Smrg    else
14997366012aSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15007a0395d0Smrg    fi || ac_status=$?
15017a0395d0Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
15027a0395d0Smrg  done
15037a0395d0Smrgfi
15047a0395d0Smrg
15057a0395d0Smrgtest -n "$ac_init_help" && exit $ac_status
15067a0395d0Smrgif $ac_init_version; then
15077a0395d0Smrg  cat <<\_ACEOF
150840c5344fSmrgxauth configure 1.0.10
15098abc0ccfSmrggenerated by GNU Autoconf 2.69
15107a0395d0Smrg
15118abc0ccfSmrgCopyright (C) 2012 Free Software Foundation, Inc.
15127a0395d0SmrgThis configure script is free software; the Free Software Foundation
15137a0395d0Smrggives unlimited permission to copy, distribute and modify it.
15147a0395d0Smrg_ACEOF
15157a0395d0Smrg  exit
15167a0395d0Smrgfi
15177a0395d0Smrg
15182adc0320Smrg## ------------------------ ##
15192adc0320Smrg## Autoconf initialization. ##
15202adc0320Smrg## ------------------------ ##
15217a0395d0Smrg
15222adc0320Smrg# ac_fn_c_try_compile LINENO
15232adc0320Smrg# --------------------------
15242adc0320Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
15252adc0320Smrgac_fn_c_try_compile ()
15267a0395d0Smrg{
15272adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15282adc0320Smrg  rm -f conftest.$ac_objext
15292adc0320Smrg  if { { ac_try="$ac_compile"
15302adc0320Smrgcase "(($ac_try" in
15312adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322adc0320Smrg  *) ac_try_echo=$ac_try;;
15332adc0320Smrgesac
15342adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15352adc0320Smrg$as_echo "$ac_try_echo"; } >&5
15362adc0320Smrg  (eval "$ac_compile") 2>conftest.err
15372adc0320Smrg  ac_status=$?
15382adc0320Smrg  if test -s conftest.err; then
15392adc0320Smrg    grep -v '^ *+' conftest.err >conftest.er1
15402adc0320Smrg    cat conftest.er1 >&5
15412adc0320Smrg    mv -f conftest.er1 conftest.err
15422adc0320Smrg  fi
15432adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15442adc0320Smrg  test $ac_status = 0; } && {
15452adc0320Smrg	 test -z "$ac_c_werror_flag" ||
15462adc0320Smrg	 test ! -s conftest.err
15472adc0320Smrg       } && test -s conftest.$ac_objext; then :
15482adc0320Smrg  ac_retval=0
15492adc0320Smrgelse
15502adc0320Smrg  $as_echo "$as_me: failed program was:" >&5
15512adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5
15527a0395d0Smrg
15532adc0320Smrg	ac_retval=1
15542adc0320Smrgfi
15552adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15562adc0320Smrg  as_fn_set_status $ac_retval
15577a0395d0Smrg
15582adc0320Smrg} # ac_fn_c_try_compile
15592adc0320Smrg
15602adc0320Smrg# ac_fn_c_try_cpp LINENO
15612adc0320Smrg# ----------------------
15622adc0320Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
15632adc0320Smrgac_fn_c_try_cpp ()
15642adc0320Smrg{
15652adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15662adc0320Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
15672adc0320Smrgcase "(($ac_try" in
15682adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692adc0320Smrg  *) ac_try_echo=$ac_try;;
15702adc0320Smrgesac
15712adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15722adc0320Smrg$as_echo "$ac_try_echo"; } >&5
15732adc0320Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
15742adc0320Smrg  ac_status=$?
15752adc0320Smrg  if test -s conftest.err; then
15762adc0320Smrg    grep -v '^ *+' conftest.err >conftest.er1
15772adc0320Smrg    cat conftest.er1 >&5
15782adc0320Smrg    mv -f conftest.er1 conftest.err
15792adc0320Smrg  fi
15802adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15812adc0320Smrg  test $ac_status = 0; } > conftest.i && {
15822adc0320Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15832adc0320Smrg	 test ! -s conftest.err
15842adc0320Smrg       }; then :
15852adc0320Smrg  ac_retval=0
15862adc0320Smrgelse
15872adc0320Smrg  $as_echo "$as_me: failed program was:" >&5
15882adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5
15892adc0320Smrg
15902adc0320Smrg    ac_retval=1
15912adc0320Smrgfi
15922adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15932adc0320Smrg  as_fn_set_status $ac_retval
15942adc0320Smrg
15952adc0320Smrg} # ac_fn_c_try_cpp
15962adc0320Smrg
15979a011757Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
15989a011757Smrg# -------------------------------------------------------
15999a011757Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using
16009a011757Smrg# the include files in INCLUDES and setting the cache variable VAR
16019a011757Smrg# accordingly.
16029a011757Smrgac_fn_c_check_header_mongrel ()
16039a011757Smrg{
16049a011757Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16059a011757Smrg  if eval \${$3+:} false; then :
16069a011757Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16079a011757Smrg$as_echo_n "checking for $2... " >&6; }
16089a011757Smrgif eval \${$3+:} false; then :
16099a011757Smrg  $as_echo_n "(cached) " >&6
16109a011757Smrgfi
16119a011757Smrgeval ac_res=\$$3
16129a011757Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16139a011757Smrg$as_echo "$ac_res" >&6; }
16149a011757Smrgelse
16159a011757Smrg  # Is the header compilable?
16169a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
16179a011757Smrg$as_echo_n "checking $2 usability... " >&6; }
16189a011757Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199a011757Smrg/* end confdefs.h.  */
16209a011757Smrg$4
16219a011757Smrg#include <$2>
16229a011757Smrg_ACEOF
16239a011757Smrgif ac_fn_c_try_compile "$LINENO"; then :
16249a011757Smrg  ac_header_compiler=yes
16259a011757Smrgelse
16269a011757Smrg  ac_header_compiler=no
16279a011757Smrgfi
16289a011757Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16299a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
16309a011757Smrg$as_echo "$ac_header_compiler" >&6; }
16319a011757Smrg
16329a011757Smrg# Is the header present?
16339a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
16349a011757Smrg$as_echo_n "checking $2 presence... " >&6; }
16359a011757Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369a011757Smrg/* end confdefs.h.  */
16379a011757Smrg#include <$2>
16389a011757Smrg_ACEOF
16399a011757Smrgif ac_fn_c_try_cpp "$LINENO"; then :
16409a011757Smrg  ac_header_preproc=yes
16419a011757Smrgelse
16429a011757Smrg  ac_header_preproc=no
16439a011757Smrgfi
16449a011757Smrgrm -f conftest.err conftest.i conftest.$ac_ext
16459a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
16469a011757Smrg$as_echo "$ac_header_preproc" >&6; }
16479a011757Smrg
16489a011757Smrg# So?  What about this header?
16499a011757Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
16509a011757Smrg  yes:no: )
16519a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
16529a011757Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
16539a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
16549a011757Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
16559a011757Smrg    ;;
16569a011757Smrg  no:yes:* )
16579a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
16589a011757Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
16599a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
16609a011757Smrg$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
16619a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
16629a011757Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
16639a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
16649a011757Smrg$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
16659a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
16669a011757Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
16679a011757Smrg( $as_echo "## ---------------------------------------------------------------------- ##
16689a011757Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
16699a011757Smrg## ---------------------------------------------------------------------- ##"
16709a011757Smrg     ) | sed "s/^/$as_me: WARNING:     /" >&2
16719a011757Smrg    ;;
16729a011757Smrgesac
16739a011757Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16749a011757Smrg$as_echo_n "checking for $2... " >&6; }
16759a011757Smrgif eval \${$3+:} false; then :
16769a011757Smrg  $as_echo_n "(cached) " >&6
16779a011757Smrgelse
16789a011757Smrg  eval "$3=\$ac_header_compiler"
16799a011757Smrgfi
16809a011757Smrgeval ac_res=\$$3
16819a011757Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16829a011757Smrg$as_echo "$ac_res" >&6; }
16839a011757Smrgfi
16849a011757Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16859a011757Smrg
16869a011757Smrg} # ac_fn_c_check_header_mongrel
16879a011757Smrg
16882adc0320Smrg# ac_fn_c_try_run LINENO
16892adc0320Smrg# ----------------------
16902adc0320Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
16912adc0320Smrg# that executables *can* be run.
16922adc0320Smrgac_fn_c_try_run ()
16932adc0320Smrg{
16942adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16952adc0320Smrg  if { { ac_try="$ac_link"
16962adc0320Smrgcase "(($ac_try" in
16972adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16982adc0320Smrg  *) ac_try_echo=$ac_try;;
16992adc0320Smrgesac
17002adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17012adc0320Smrg$as_echo "$ac_try_echo"; } >&5
17022adc0320Smrg  (eval "$ac_link") 2>&5
17032adc0320Smrg  ac_status=$?
17042adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17052adc0320Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
17062adc0320Smrg  { { case "(($ac_try" in
17072adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082adc0320Smrg  *) ac_try_echo=$ac_try;;
17092adc0320Smrgesac
17102adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17112adc0320Smrg$as_echo "$ac_try_echo"; } >&5
17122adc0320Smrg  (eval "$ac_try") 2>&5
17132adc0320Smrg  ac_status=$?
17142adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17152adc0320Smrg  test $ac_status = 0; }; }; then :
17162adc0320Smrg  ac_retval=0
17172adc0320Smrgelse
17182adc0320Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
17192adc0320Smrg       $as_echo "$as_me: failed program was:" >&5
17202adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5
17212adc0320Smrg
17222adc0320Smrg       ac_retval=$ac_status
17232adc0320Smrgfi
17242adc0320Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17252adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17262adc0320Smrg  as_fn_set_status $ac_retval
17272adc0320Smrg
17282adc0320Smrg} # ac_fn_c_try_run
17292adc0320Smrg
17302adc0320Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
17312adc0320Smrg# -------------------------------------------------------
17322adc0320Smrg# Tests whether HEADER exists and can be compiled using the include files in
17332adc0320Smrg# INCLUDES, setting the cache variable VAR accordingly.
17342adc0320Smrgac_fn_c_check_header_compile ()
17352adc0320Smrg{
17362adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17372adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17382adc0320Smrg$as_echo_n "checking for $2... " >&6; }
17392adc0320Smrgif eval \${$3+:} false; then :
17402adc0320Smrg  $as_echo_n "(cached) " >&6
17412adc0320Smrgelse
17422adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17432adc0320Smrg/* end confdefs.h.  */
17442adc0320Smrg$4
17452adc0320Smrg#include <$2>
17462adc0320Smrg_ACEOF
17472adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
17482adc0320Smrg  eval "$3=yes"
17492adc0320Smrgelse
17502adc0320Smrg  eval "$3=no"
17512adc0320Smrgfi
17522adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17532adc0320Smrgfi
17542adc0320Smrgeval ac_res=\$$3
17552adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17562adc0320Smrg$as_echo "$ac_res" >&6; }
17572adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17582adc0320Smrg
17592adc0320Smrg} # ac_fn_c_check_header_compile
17602adc0320Smrg
17619a011757Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
17629a011757Smrg# ---------------------------------------------
17639a011757Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
17649a011757Smrg# accordingly.
17659a011757Smrgac_fn_c_check_decl ()
17669a011757Smrg{
17679a011757Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17689a011757Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
17699a011757Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
17709a011757Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
17719a011757Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
17729a011757Smrgif eval \${$3+:} false; then :
17739a011757Smrg  $as_echo_n "(cached) " >&6
17749a011757Smrgelse
17759a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769a011757Smrg/* end confdefs.h.  */
17779a011757Smrg$4
17789a011757Smrgint
17799a011757Smrgmain ()
17809a011757Smrg{
17819a011757Smrg#ifndef $as_decl_name
17829a011757Smrg#ifdef __cplusplus
17839a011757Smrg  (void) $as_decl_use;
17849a011757Smrg#else
17859a011757Smrg  (void) $as_decl_name;
17869a011757Smrg#endif
17879a011757Smrg#endif
17889a011757Smrg
17899a011757Smrg  ;
17909a011757Smrg  return 0;
17919a011757Smrg}
17929a011757Smrg_ACEOF
17939a011757Smrgif ac_fn_c_try_compile "$LINENO"; then :
17949a011757Smrg  eval "$3=yes"
17959a011757Smrgelse
17969a011757Smrg  eval "$3=no"
17979a011757Smrgfi
17989a011757Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17999a011757Smrgfi
18009a011757Smrgeval ac_res=\$$3
18019a011757Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18029a011757Smrg$as_echo "$ac_res" >&6; }
18039a011757Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18049a011757Smrg
18059a011757Smrg} # ac_fn_c_check_decl
18069a011757Smrg
180796402570Smrg# ac_fn_c_try_link LINENO
180896402570Smrg# -----------------------
180996402570Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
181096402570Smrgac_fn_c_try_link ()
181196402570Smrg{
181296402570Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
181396402570Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
181496402570Smrg  if { { ac_try="$ac_link"
181596402570Smrgcase "(($ac_try" in
181696402570Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
181796402570Smrg  *) ac_try_echo=$ac_try;;
181896402570Smrgesac
181996402570Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
182096402570Smrg$as_echo "$ac_try_echo"; } >&5
182196402570Smrg  (eval "$ac_link") 2>conftest.err
182296402570Smrg  ac_status=$?
182396402570Smrg  if test -s conftest.err; then
182496402570Smrg    grep -v '^ *+' conftest.err >conftest.er1
182596402570Smrg    cat conftest.er1 >&5
182696402570Smrg    mv -f conftest.er1 conftest.err
182796402570Smrg  fi
182896402570Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
182996402570Smrg  test $ac_status = 0; } && {
183096402570Smrg	 test -z "$ac_c_werror_flag" ||
183196402570Smrg	 test ! -s conftest.err
183296402570Smrg       } && test -s conftest$ac_exeext && {
183396402570Smrg	 test "$cross_compiling" = yes ||
18348abc0ccfSmrg	 test -x conftest$ac_exeext
183596402570Smrg       }; then :
183696402570Smrg  ac_retval=0
183796402570Smrgelse
183896402570Smrg  $as_echo "$as_me: failed program was:" >&5
183996402570Smrgsed 's/^/| /' conftest.$ac_ext >&5
184096402570Smrg
184196402570Smrg	ac_retval=1
184296402570Smrgfi
184396402570Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
184496402570Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
184596402570Smrg  # interfere with the next link command; also delete a directory that is
184696402570Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
184796402570Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
184896402570Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
184996402570Smrg  as_fn_set_status $ac_retval
185096402570Smrg
185196402570Smrg} # ac_fn_c_try_link
185296402570Smrg
18539a011757Smrg# ac_fn_c_check_func LINENO FUNC VAR
18549a011757Smrg# ----------------------------------
18559a011757Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
18569a011757Smrgac_fn_c_check_func ()
18572adc0320Smrg{
18582adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18592adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18602adc0320Smrg$as_echo_n "checking for $2... " >&6; }
18612adc0320Smrgif eval \${$3+:} false; then :
18622adc0320Smrg  $as_echo_n "(cached) " >&6
18632adc0320Smrgelse
18649a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18652adc0320Smrg/* end confdefs.h.  */
18669a011757Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
18679a011757Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18689a011757Smrg#define $2 innocuous_$2
18692adc0320Smrg
18709a011757Smrg/* System header to define __stub macros and hopefully few prototypes,
18719a011757Smrg    which can conflict with char $2 (); below.
18729a011757Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18739a011757Smrg    <limits.h> exists even on freestanding compilers.  */
18742adc0320Smrg
18752adc0320Smrg#ifdef __STDC__
18762adc0320Smrg# include <limits.h>
18772adc0320Smrg#else
18782adc0320Smrg# include <assert.h>
18792adc0320Smrg#endif
18802adc0320Smrg
18812adc0320Smrg#undef $2
18822adc0320Smrg
18832adc0320Smrg/* Override any GCC internal prototype to avoid an error.
18842adc0320Smrg   Use char because int might match the return type of a GCC
18852adc0320Smrg   builtin and then its argument prototype would still apply.  */
18862adc0320Smrg#ifdef __cplusplus
18872adc0320Smrgextern "C"
18882adc0320Smrg#endif
18892adc0320Smrgchar $2 ();
18902adc0320Smrg/* The GNU C library defines this for functions which it implements
18912adc0320Smrg    to always fail with ENOSYS.  Some functions are actually named
18922adc0320Smrg    something starting with __ and the normal name is an alias.  */
18932adc0320Smrg#if defined __stub_$2 || defined __stub___$2
18942adc0320Smrgchoke me
18952adc0320Smrg#endif
18962adc0320Smrg
18972adc0320Smrgint
18982adc0320Smrgmain ()
18992adc0320Smrg{
19002adc0320Smrgreturn $2 ();
19012adc0320Smrg  ;
19022adc0320Smrg  return 0;
19032adc0320Smrg}
19042adc0320Smrg_ACEOF
19052adc0320Smrgif ac_fn_c_try_link "$LINENO"; then :
19062adc0320Smrg  eval "$3=yes"
19072adc0320Smrgelse
19082adc0320Smrg  eval "$3=no"
19092adc0320Smrgfi
19102adc0320Smrgrm -f core conftest.err conftest.$ac_objext \
19112adc0320Smrg    conftest$ac_exeext conftest.$ac_ext
19122adc0320Smrgfi
19132adc0320Smrgeval ac_res=\$$3
19142adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19152adc0320Smrg$as_echo "$ac_res" >&6; }
19162adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19172adc0320Smrg
19182adc0320Smrg} # ac_fn_c_check_func
19192adc0320Smrg
19202adc0320Smrg# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
19212adc0320Smrg# ----------------------------------------------------
19222adc0320Smrg# Tries to find if the field MEMBER exists in type AGGR, after including
19232adc0320Smrg# INCLUDES, setting cache variable VAR accordingly.
19242adc0320Smrgac_fn_c_check_member ()
19252adc0320Smrg{
19262adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19272adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
19282adc0320Smrg$as_echo_n "checking for $2.$3... " >&6; }
19292adc0320Smrgif eval \${$4+:} false; then :
19302adc0320Smrg  $as_echo_n "(cached) " >&6
19312adc0320Smrgelse
19322adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19332adc0320Smrg/* end confdefs.h.  */
19342adc0320Smrg$5
19352adc0320Smrgint
19362adc0320Smrgmain ()
19372adc0320Smrg{
19382adc0320Smrgstatic $2 ac_aggr;
19392adc0320Smrgif (ac_aggr.$3)
19402adc0320Smrgreturn 0;
19412adc0320Smrg  ;
19422adc0320Smrg  return 0;
19432adc0320Smrg}
19442adc0320Smrg_ACEOF
19452adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
19462adc0320Smrg  eval "$4=yes"
19472adc0320Smrgelse
19482adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19492adc0320Smrg/* end confdefs.h.  */
19502adc0320Smrg$5
19512adc0320Smrgint
19522adc0320Smrgmain ()
19532adc0320Smrg{
19542adc0320Smrgstatic $2 ac_aggr;
19552adc0320Smrgif (sizeof ac_aggr.$3)
19562adc0320Smrgreturn 0;
19572adc0320Smrg  ;
19582adc0320Smrg  return 0;
19592adc0320Smrg}
19602adc0320Smrg_ACEOF
19612adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
19622adc0320Smrg  eval "$4=yes"
19632adc0320Smrgelse
19642adc0320Smrg  eval "$4=no"
19652adc0320Smrgfi
19662adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19672adc0320Smrgfi
19682adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19692adc0320Smrgfi
19702adc0320Smrgeval ac_res=\$$4
19712adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19722adc0320Smrg$as_echo "$ac_res" >&6; }
19732adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19742adc0320Smrg
19752adc0320Smrg} # ac_fn_c_check_member
19762adc0320Smrg
19772adc0320Smrg# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
19782adc0320Smrg# -------------------------------------------
19792adc0320Smrg# Tests whether TYPE exists after having included INCLUDES, setting cache
19802adc0320Smrg# variable VAR accordingly.
19812adc0320Smrgac_fn_c_check_type ()
19822adc0320Smrg{
19832adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19842adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
19852adc0320Smrg$as_echo_n "checking for $2... " >&6; }
19862adc0320Smrgif eval \${$3+:} false; then :
19872adc0320Smrg  $as_echo_n "(cached) " >&6
19882adc0320Smrgelse
19892adc0320Smrg  eval "$3=no"
19902adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19912adc0320Smrg/* end confdefs.h.  */
19922adc0320Smrg$4
19932adc0320Smrgint
19942adc0320Smrgmain ()
19952adc0320Smrg{
19962adc0320Smrgif (sizeof ($2))
19972adc0320Smrg	 return 0;
19982adc0320Smrg  ;
19992adc0320Smrg  return 0;
20002adc0320Smrg}
20012adc0320Smrg_ACEOF
20022adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
20032adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20042adc0320Smrg/* end confdefs.h.  */
20052adc0320Smrg$4
20062adc0320Smrgint
20072adc0320Smrgmain ()
20082adc0320Smrg{
20092adc0320Smrgif (sizeof (($2)))
20102adc0320Smrg	    return 0;
20112adc0320Smrg  ;
20122adc0320Smrg  return 0;
20132adc0320Smrg}
20142adc0320Smrg_ACEOF
20152adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
20162adc0320Smrg
20172adc0320Smrgelse
20182adc0320Smrg  eval "$3=yes"
20192adc0320Smrgfi
20202adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20212adc0320Smrgfi
20222adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20232adc0320Smrgfi
20242adc0320Smrgeval ac_res=\$$3
20252adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20262adc0320Smrg$as_echo "$ac_res" >&6; }
20272adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
20282adc0320Smrg
20292adc0320Smrg} # ac_fn_c_check_type
20302adc0320Smrgcat >config.log <<_ACEOF
20312adc0320SmrgThis file contains any messages produced by compilers while
20322adc0320Smrgrunning configure, to aid debugging if configure makes a mistake.
20332adc0320Smrg
203440c5344fSmrgIt was created by xauth $as_me 1.0.10, which was
20358abc0ccfSmrggenerated by GNU Autoconf 2.69.  Invocation command line was
20362adc0320Smrg
20372adc0320Smrg  $ $0 $@
20382adc0320Smrg
20392adc0320Smrg_ACEOF
20402adc0320Smrgexec 5>>config.log
20412adc0320Smrg{
20422adc0320Smrgcat <<_ASUNAME
20432adc0320Smrg## --------- ##
20442adc0320Smrg## Platform. ##
20452adc0320Smrg## --------- ##
20462adc0320Smrg
20472adc0320Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
20482adc0320Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
20492adc0320Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
20502adc0320Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
20512adc0320Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
20522adc0320Smrg
20532adc0320Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
20542adc0320Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
20552adc0320Smrg
20562adc0320Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
20572adc0320Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
20582adc0320Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
20592adc0320Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
20602adc0320Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
20612adc0320Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
20622adc0320Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
20632adc0320Smrg
20642adc0320Smrg_ASUNAME
20657a0395d0Smrg
20667a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20677a0395d0Smrgfor as_dir in $PATH
20687a0395d0Smrgdo
20697a0395d0Smrg  IFS=$as_save_IFS
20707a0395d0Smrg  test -z "$as_dir" && as_dir=.
20712adc0320Smrg    $as_echo "PATH: $as_dir"
20722adc0320Smrg  done
20737a0395d0SmrgIFS=$as_save_IFS
20747a0395d0Smrg
20757a0395d0Smrg} >&5
20767a0395d0Smrg
20777a0395d0Smrgcat >&5 <<_ACEOF
20787a0395d0Smrg
20797a0395d0Smrg
20807a0395d0Smrg## ----------- ##
20817a0395d0Smrg## Core tests. ##
20827a0395d0Smrg## ----------- ##
20837a0395d0Smrg
20847a0395d0Smrg_ACEOF
20857a0395d0Smrg
20867a0395d0Smrg
20877a0395d0Smrg# Keep a trace of the command line.
20887a0395d0Smrg# Strip out --no-create and --no-recursion so they do not pile up.
20897a0395d0Smrg# Strip out --silent because we don't want to record it for future runs.
20907a0395d0Smrg# Also quote any args containing shell meta-characters.
20917a0395d0Smrg# Make two passes to allow for proper duplicate-argument suppression.
20927a0395d0Smrgac_configure_args=
20937a0395d0Smrgac_configure_args0=
20947a0395d0Smrgac_configure_args1=
20957a0395d0Smrgac_must_keep_next=false
20967a0395d0Smrgfor ac_pass in 1 2
20977a0395d0Smrgdo
20987a0395d0Smrg  for ac_arg
20997a0395d0Smrg  do
21007a0395d0Smrg    case $ac_arg in
21017a0395d0Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
21027a0395d0Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21037a0395d0Smrg    | -silent | --silent | --silen | --sile | --sil)
21047a0395d0Smrg      continue ;;
21057a0395d0Smrg    *\'*)
21067366012aSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21077a0395d0Smrg    esac
21087a0395d0Smrg    case $ac_pass in
21092adc0320Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
21107a0395d0Smrg    2)
21112adc0320Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
21127a0395d0Smrg      if test $ac_must_keep_next = true; then
21137a0395d0Smrg	ac_must_keep_next=false # Got value, back to normal.
21147a0395d0Smrg      else
21157a0395d0Smrg	case $ac_arg in
21167a0395d0Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
21177a0395d0Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
21187a0395d0Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
21197a0395d0Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
21207a0395d0Smrg	    case "$ac_configure_args0 " in
21217a0395d0Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
21227a0395d0Smrg	    esac
21237a0395d0Smrg	    ;;
21247a0395d0Smrg	  -* ) ac_must_keep_next=true ;;
21257a0395d0Smrg	esac
21267a0395d0Smrg      fi
21272adc0320Smrg      as_fn_append ac_configure_args " '$ac_arg'"
21287a0395d0Smrg      ;;
21297a0395d0Smrg    esac
21307a0395d0Smrg  done
21317a0395d0Smrgdone
21322adc0320Smrg{ ac_configure_args0=; unset ac_configure_args0;}
21332adc0320Smrg{ ac_configure_args1=; unset ac_configure_args1;}
21347a0395d0Smrg
21357a0395d0Smrg# When interrupted or exit'd, cleanup temporary files, and complete
21367a0395d0Smrg# config.log.  We remove comments because anyway the quotes in there
21377a0395d0Smrg# would cause problems or look ugly.
21387a0395d0Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
21397a0395d0Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
21407a0395d0Smrgtrap 'exit_status=$?
21417a0395d0Smrg  # Save into config.log some information that might help in debugging.
21427a0395d0Smrg  {
21437a0395d0Smrg    echo
21447a0395d0Smrg
21452adc0320Smrg    $as_echo "## ---------------- ##
21467a0395d0Smrg## Cache variables. ##
21472adc0320Smrg## ---------------- ##"
21487a0395d0Smrg    echo
21497a0395d0Smrg    # The following way of writing the cache mishandles newlines in values,
21507a0395d0Smrg(
21517a0395d0Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
21527a0395d0Smrg    eval ac_val=\$$ac_var
21537a0395d0Smrg    case $ac_val in #(
21547a0395d0Smrg    *${as_nl}*)
21557a0395d0Smrg      case $ac_var in #(
21562adc0320Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21577366012aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21587a0395d0Smrg      esac
21597a0395d0Smrg      case $ac_var in #(
21607a0395d0Smrg      _ | IFS | as_nl) ;; #(
21617366012aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21622adc0320Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
21637a0395d0Smrg      esac ;;
21647a0395d0Smrg    esac
21657a0395d0Smrg  done
21667a0395d0Smrg  (set) 2>&1 |
21677a0395d0Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
21687a0395d0Smrg    *${as_nl}ac_space=\ *)
21697a0395d0Smrg      sed -n \
21707a0395d0Smrg	"s/'\''/'\''\\\\'\'''\''/g;
21717a0395d0Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
21727a0395d0Smrg      ;; #(
21737a0395d0Smrg    *)
21747a0395d0Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21757a0395d0Smrg      ;;
21767a0395d0Smrg    esac |
21777a0395d0Smrg    sort
21787a0395d0Smrg)
21797a0395d0Smrg    echo
21807a0395d0Smrg
21812adc0320Smrg    $as_echo "## ----------------- ##
21827a0395d0Smrg## Output variables. ##
21832adc0320Smrg## ----------------- ##"
21847a0395d0Smrg    echo
21857a0395d0Smrg    for ac_var in $ac_subst_vars
21867a0395d0Smrg    do
21877a0395d0Smrg      eval ac_val=\$$ac_var
21887a0395d0Smrg      case $ac_val in
21897366012aSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
21907a0395d0Smrg      esac
21917366012aSmrg      $as_echo "$ac_var='\''$ac_val'\''"
21927a0395d0Smrg    done | sort
21937a0395d0Smrg    echo
21947a0395d0Smrg
21957a0395d0Smrg    if test -n "$ac_subst_files"; then
21962adc0320Smrg      $as_echo "## ------------------- ##
21977a0395d0Smrg## File substitutions. ##
21982adc0320Smrg## ------------------- ##"
21997a0395d0Smrg      echo
22007a0395d0Smrg      for ac_var in $ac_subst_files
22017a0395d0Smrg      do
22027a0395d0Smrg	eval ac_val=\$$ac_var
22037a0395d0Smrg	case $ac_val in
22047366012aSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
22057a0395d0Smrg	esac
22067366012aSmrg	$as_echo "$ac_var='\''$ac_val'\''"
22077a0395d0Smrg      done | sort
22087a0395d0Smrg      echo
22097a0395d0Smrg    fi
22107a0395d0Smrg
22117a0395d0Smrg    if test -s confdefs.h; then
22122adc0320Smrg      $as_echo "## ----------- ##
22137a0395d0Smrg## confdefs.h. ##
22142adc0320Smrg## ----------- ##"
22157a0395d0Smrg      echo
22167a0395d0Smrg      cat confdefs.h
22177a0395d0Smrg      echo
22187a0395d0Smrg    fi
22197a0395d0Smrg    test "$ac_signal" != 0 &&
22207366012aSmrg      $as_echo "$as_me: caught signal $ac_signal"
22217366012aSmrg    $as_echo "$as_me: exit $exit_status"
22227a0395d0Smrg  } >&5
22237a0395d0Smrg  rm -f core *.core core.conftest.* &&
22247a0395d0Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
22257a0395d0Smrg    exit $exit_status
22267a0395d0Smrg' 0
22277a0395d0Smrgfor ac_signal in 1 2 13 15; do
22282adc0320Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
22297a0395d0Smrgdone
22307a0395d0Smrgac_signal=0
22317a0395d0Smrg
22327a0395d0Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
22337a0395d0Smrgrm -f -r conftest* confdefs.h
22347a0395d0Smrg
22352adc0320Smrg$as_echo "/* confdefs.h */" > confdefs.h
22362adc0320Smrg
22377a0395d0Smrg# Predefined preprocessor variables.
22387a0395d0Smrg
22397a0395d0Smrgcat >>confdefs.h <<_ACEOF
22407a0395d0Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
22417a0395d0Smrg_ACEOF
22427a0395d0Smrg
22437a0395d0Smrgcat >>confdefs.h <<_ACEOF
22447a0395d0Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
22457a0395d0Smrg_ACEOF
22467a0395d0Smrg
22477a0395d0Smrgcat >>confdefs.h <<_ACEOF
22487a0395d0Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
22497a0395d0Smrg_ACEOF
22507a0395d0Smrg
22517a0395d0Smrgcat >>confdefs.h <<_ACEOF
22527a0395d0Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
22537a0395d0Smrg_ACEOF
22547a0395d0Smrg
22557a0395d0Smrgcat >>confdefs.h <<_ACEOF
22567a0395d0Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
22577a0395d0Smrg_ACEOF
22587a0395d0Smrg
22592adc0320Smrgcat >>confdefs.h <<_ACEOF
22602adc0320Smrg#define PACKAGE_URL "$PACKAGE_URL"
22612adc0320Smrg_ACEOF
22622adc0320Smrg
22637a0395d0Smrg
22647a0395d0Smrg# Let the site file select an alternate cache file if it wants to.
22657366012aSmrg# Prefer an explicitly selected file to automatically selected ones.
22667366012aSmrgac_site_file1=NONE
22677366012aSmrgac_site_file2=NONE
22687a0395d0Smrgif test -n "$CONFIG_SITE"; then
22692adc0320Smrg  # We do not want a PATH search for config.site.
22702adc0320Smrg  case $CONFIG_SITE in #((
22712adc0320Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
22722adc0320Smrg    */*) ac_site_file1=$CONFIG_SITE;;
22732adc0320Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
22742adc0320Smrg  esac
22757a0395d0Smrgelif test "x$prefix" != xNONE; then
22767366012aSmrg  ac_site_file1=$prefix/share/config.site
22777366012aSmrg  ac_site_file2=$prefix/etc/config.site
22787a0395d0Smrgelse
22797366012aSmrg  ac_site_file1=$ac_default_prefix/share/config.site
22807366012aSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
22817a0395d0Smrgfi
22827366012aSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
22837a0395d0Smrgdo
22847366012aSmrg  test "x$ac_site_file" = xNONE && continue
22852adc0320Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
22862adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
22877366012aSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
22887a0395d0Smrg    sed 's/^/| /' "$ac_site_file" >&5
22892adc0320Smrg    . "$ac_site_file" \
22902adc0320Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22912adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22922adc0320Smrgas_fn_error $? "failed to load site script $ac_site_file
22932adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
22947a0395d0Smrg  fi
22957a0395d0Smrgdone
22967a0395d0Smrg
22977a0395d0Smrgif test -r "$cache_file"; then
22982adc0320Smrg  # Some versions of bash will fail to source /dev/null (special files
22992adc0320Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
23002adc0320Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
23012adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
23027366012aSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
23037a0395d0Smrg    case $cache_file in
23047a0395d0Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
23057a0395d0Smrg      *)                      . "./$cache_file";;
23067a0395d0Smrg    esac
23077a0395d0Smrg  fi
23087a0395d0Smrgelse
23092adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
23107366012aSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
23117a0395d0Smrg  >$cache_file
23127a0395d0Smrgfi
23137a0395d0Smrg
23147a0395d0Smrg# Check that the precious variables saved in the cache have kept the same
23157a0395d0Smrg# value.
23167a0395d0Smrgac_cache_corrupted=false
23177a0395d0Smrgfor ac_var in $ac_precious_vars; do
23187a0395d0Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
23197a0395d0Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
23207a0395d0Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
23217a0395d0Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
23227a0395d0Smrg  case $ac_old_set,$ac_new_set in
23237a0395d0Smrg    set,)
23242adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
23257366012aSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
23267a0395d0Smrg      ac_cache_corrupted=: ;;
23277a0395d0Smrg    ,set)
23282adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
23297366012aSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
23307a0395d0Smrg      ac_cache_corrupted=: ;;
23317a0395d0Smrg    ,);;
23327a0395d0Smrg    *)
23337a0395d0Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
23347366012aSmrg	# differences in whitespace do not lead to failure.
23357366012aSmrg	ac_old_val_w=`echo x $ac_old_val`
23367366012aSmrg	ac_new_val_w=`echo x $ac_new_val`
23377366012aSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
23382adc0320Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
23397366012aSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
23407366012aSmrg	  ac_cache_corrupted=:
23417366012aSmrg	else
23422adc0320Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
23437366012aSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
23447366012aSmrg	  eval $ac_var=\$ac_old_val
23457366012aSmrg	fi
23462adc0320Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
23477366012aSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
23482adc0320Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
23497366012aSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
23507a0395d0Smrg      fi;;
23512adc0320Smrg  esac
23522adc0320Smrg  # Pass precious variables to config.status.
23532adc0320Smrg  if test "$ac_new_set" = set; then
23542adc0320Smrg    case $ac_new_val in
23552adc0320Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
23562adc0320Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
23572adc0320Smrg    esac
23582adc0320Smrg    case " $ac_configure_args " in
23592adc0320Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
23602adc0320Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
23612adc0320Smrg    esac
23622adc0320Smrg  fi
23632adc0320Smrgdone
23642adc0320Smrgif $ac_cache_corrupted; then
23652adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23662adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23672adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
23682adc0320Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
23692adc0320Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
23702adc0320Smrgfi
23712adc0320Smrg## -------------------- ##
23722adc0320Smrg## Main body of script. ##
23732adc0320Smrg## -------------------- ##
23747a0395d0Smrg
23757a0395d0Smrgac_ext=c
23767a0395d0Smrgac_cpp='$CPP $CPPFLAGS'
23777a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23787a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23797a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
23807a0395d0Smrg
23817a0395d0Smrg
238240c5344fSmrgam__api_version='1.15'
23837a0395d0Smrg
23847a0395d0Smrgac_aux_dir=
23857a0395d0Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
23867a0395d0Smrg  if test -f "$ac_dir/install-sh"; then
23877a0395d0Smrg    ac_aux_dir=$ac_dir
23887a0395d0Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
23897a0395d0Smrg    break
23907a0395d0Smrg  elif test -f "$ac_dir/install.sh"; then
23917a0395d0Smrg    ac_aux_dir=$ac_dir
23927a0395d0Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
23937a0395d0Smrg    break
23947a0395d0Smrg  elif test -f "$ac_dir/shtool"; then
23957a0395d0Smrg    ac_aux_dir=$ac_dir
23967a0395d0Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
23977a0395d0Smrg    break
23987a0395d0Smrg  fi
23997a0395d0Smrgdone
24007a0395d0Smrgif test -z "$ac_aux_dir"; then
24012adc0320Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
24027a0395d0Smrgfi
24037a0395d0Smrg
24047a0395d0Smrg# These three variables are undocumented and unsupported,
24057a0395d0Smrg# and are intended to be withdrawn in a future Autoconf release.
24067a0395d0Smrg# They can cause serious problems if a builder's source tree is in a directory
24077a0395d0Smrg# whose full name contains unusual characters.
24087a0395d0Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
24097a0395d0Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
24107a0395d0Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
24117a0395d0Smrg
24127a0395d0Smrg
24137a0395d0Smrg# Find a good install program.  We prefer a C program (faster),
24147a0395d0Smrg# so one script is as good as another.  But avoid the broken or
24157a0395d0Smrg# incompatible versions:
24167a0395d0Smrg# SysV /etc/install, /usr/sbin/install
24177a0395d0Smrg# SunOS /usr/etc/install
24187a0395d0Smrg# IRIX /sbin/install
24197a0395d0Smrg# AIX /bin/install
24207a0395d0Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
24217a0395d0Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
24227a0395d0Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
24237a0395d0Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
24247a0395d0Smrg# OS/2's system install, which has a completely different semantic
24257a0395d0Smrg# ./install, which can be erroneously created by make from ./install.sh.
24267366012aSmrg# Reject install programs that cannot install multiple files.
24272adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
24287366012aSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
24297a0395d0Smrgif test -z "$INSTALL"; then
24302adc0320Smrgif ${ac_cv_path_install+:} false; then :
24317366012aSmrg  $as_echo_n "(cached) " >&6
24327a0395d0Smrgelse
24337a0395d0Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24347a0395d0Smrgfor as_dir in $PATH
24357a0395d0Smrgdo
24367a0395d0Smrg  IFS=$as_save_IFS
24377a0395d0Smrg  test -z "$as_dir" && as_dir=.
24382adc0320Smrg    # Account for people who put trailing slashes in PATH elements.
24392adc0320Smrgcase $as_dir/ in #((
24402adc0320Smrg  ./ | .// | /[cC]/* | \
24417a0395d0Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
24422adc0320Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
24437a0395d0Smrg  /usr/ucb/* ) ;;
24447a0395d0Smrg  *)
24457a0395d0Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
24467a0395d0Smrg    # Don't use installbsd from OSF since it installs stuff as root
24477a0395d0Smrg    # by default.
24487a0395d0Smrg    for ac_prog in ginstall scoinst install; do
24497a0395d0Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
24508abc0ccfSmrg	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
24517a0395d0Smrg	  if test $ac_prog = install &&
24527a0395d0Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
24537a0395d0Smrg	    # AIX install.  It has an incompatible calling convention.
24547a0395d0Smrg	    :
24557a0395d0Smrg	  elif test $ac_prog = install &&
24567a0395d0Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
24577a0395d0Smrg	    # program-specific install script used by HP pwplus--don't use.
24587a0395d0Smrg	    :
24597a0395d0Smrg	  else
24607366012aSmrg	    rm -rf conftest.one conftest.two conftest.dir
24617366012aSmrg	    echo one > conftest.one
24627366012aSmrg	    echo two > conftest.two
24637366012aSmrg	    mkdir conftest.dir
24647366012aSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
24657366012aSmrg	      test -s conftest.one && test -s conftest.two &&
24667366012aSmrg	      test -s conftest.dir/conftest.one &&
24677366012aSmrg	      test -s conftest.dir/conftest.two
24687366012aSmrg	    then
24697366012aSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
24707366012aSmrg	      break 3
24717366012aSmrg	    fi
24727a0395d0Smrg	  fi
24737a0395d0Smrg	fi
24747a0395d0Smrg      done
24757a0395d0Smrg    done
24767a0395d0Smrg    ;;
24777a0395d0Smrgesac
24787366012aSmrg
24792adc0320Smrg  done
24807a0395d0SmrgIFS=$as_save_IFS
24817a0395d0Smrg
24827366012aSmrgrm -rf conftest.one conftest.two conftest.dir
24837a0395d0Smrg
24847a0395d0Smrgfi
24857a0395d0Smrg  if test "${ac_cv_path_install+set}" = set; then
24867a0395d0Smrg    INSTALL=$ac_cv_path_install
24877a0395d0Smrg  else
24887a0395d0Smrg    # As a last resort, use the slow shell script.  Don't cache a
24897a0395d0Smrg    # value for INSTALL within a source directory, because that will
24907a0395d0Smrg    # break other packages using the cache if that directory is
24917a0395d0Smrg    # removed, or if the value is a relative name.
24927a0395d0Smrg    INSTALL=$ac_install_sh
24937a0395d0Smrg  fi
24947a0395d0Smrgfi
24952adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
24967366012aSmrg$as_echo "$INSTALL" >&6; }
24977a0395d0Smrg
24987a0395d0Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
24997a0395d0Smrg# It thinks the first close brace ends the variable substitution.
25007a0395d0Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
25017a0395d0Smrg
25027a0395d0Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
25037a0395d0Smrg
25047a0395d0Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
25057a0395d0Smrg
25062adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
25077366012aSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
25087366012aSmrg# Reject unsafe characters in $srcdir or the absolute working directory
25097366012aSmrg# name.  Accept space and tab only in the latter.
25107366012aSmrgam_lf='
25117366012aSmrg'
25127366012aSmrgcase `pwd` in
25137366012aSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
25142adc0320Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
25157366012aSmrgesac
25167366012aSmrgcase $srcdir in
25177366012aSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
25188abc0ccfSmrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
25197366012aSmrgesac
25207366012aSmrg
25218abc0ccfSmrg# Do 'set' in a subshell so we don't clobber the current shell's
25227366012aSmrg# arguments.  Must try -L first in case configure is actually a
25237366012aSmrg# symlink; some systems play weird games with the mod time of symlinks
25247366012aSmrg# (eg FreeBSD returns the mod time of the symlink's containing
25257366012aSmrg# directory).
25267366012aSmrgif (
25278abc0ccfSmrg   am_has_slept=no
25288abc0ccfSmrg   for am_try in 1 2; do
25298abc0ccfSmrg     echo "timestamp, slept: $am_has_slept" > conftest.file
25308abc0ccfSmrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
25318abc0ccfSmrg     if test "$*" = "X"; then
25328abc0ccfSmrg	# -L didn't work.
25338abc0ccfSmrg	set X `ls -t "$srcdir/configure" conftest.file`
25348abc0ccfSmrg     fi
25358abc0ccfSmrg     if test "$*" != "X $srcdir/configure conftest.file" \
25368abc0ccfSmrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
25378abc0ccfSmrg
25388abc0ccfSmrg	# If neither matched, then we have a broken ls.  This can happen
25398abc0ccfSmrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
25408abc0ccfSmrg	# broken ls alias from the environment.  This has actually
25418abc0ccfSmrg	# happened.  Such a system could not be considered "sane".
25428abc0ccfSmrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
25438abc0ccfSmrg  alias in your environment" "$LINENO" 5
25448abc0ccfSmrg     fi
25458abc0ccfSmrg     if test "$2" = conftest.file || test $am_try -eq 2; then
25468abc0ccfSmrg       break
25478abc0ccfSmrg     fi
25488abc0ccfSmrg     # Just in case.
25498abc0ccfSmrg     sleep 1
25508abc0ccfSmrg     am_has_slept=yes
25518abc0ccfSmrg   done
25527a0395d0Smrg   test "$2" = conftest.file
25537a0395d0Smrg   )
25547a0395d0Smrgthen
25557a0395d0Smrg   # Ok.
25567a0395d0Smrg   :
25577a0395d0Smrgelse
25582adc0320Smrg   as_fn_error $? "newly created file is older than distributed files!
25592adc0320SmrgCheck your system clock" "$LINENO" 5
25607a0395d0Smrgfi
25612adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25627366012aSmrg$as_echo "yes" >&6; }
25638abc0ccfSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and
25648abc0ccfSmrg# generated files are strictly newer.
25658abc0ccfSmrgam_sleep_pid=
25668abc0ccfSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
25678abc0ccfSmrg  ( sleep 1 ) &
25688abc0ccfSmrg  am_sleep_pid=$!
25698abc0ccfSmrgfi
25708abc0ccfSmrg
25718abc0ccfSmrgrm -f conftest.file
25728abc0ccfSmrg
25737a0395d0Smrgtest "$program_prefix" != NONE &&
25747a0395d0Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
25757a0395d0Smrg# Use a double $ so make ignores it.
25767a0395d0Smrgtest "$program_suffix" != NONE &&
25777a0395d0Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
25787366012aSmrg# Double any \ or $.
25797a0395d0Smrg# By default was `s,x,x', remove it if useless.
25807366012aSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
25817366012aSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
25827a0395d0Smrg
258340c5344fSmrg# Expand $ac_aux_dir to an absolute path.
258440c5344fSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
25857a0395d0Smrg
25867366012aSmrgif test x"${MISSING+set}" != xset; then
25877366012aSmrg  case $am_aux_dir in
25887366012aSmrg  *\ * | *\	*)
25897366012aSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
25907366012aSmrg  *)
25917366012aSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
25927366012aSmrg  esac
25937366012aSmrgfi
25947a0395d0Smrg# Use eval to expand $SHELL
25959a011757Smrgif eval "$MISSING --is-lightweight"; then
25969a011757Smrg  am_missing_run="$MISSING "
25977a0395d0Smrgelse
25987a0395d0Smrg  am_missing_run=
25998abc0ccfSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
26008abc0ccfSmrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
26017366012aSmrgfi
26027366012aSmrg
260340c5344fSmrgif test x"${install_sh+set}" != xset; then
26047366012aSmrg  case $am_aux_dir in
26057366012aSmrg  *\ * | *\	*)
26067366012aSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
26077366012aSmrg  *)
26087366012aSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
26097366012aSmrg  esac
26107366012aSmrgfi
26117366012aSmrg
26128abc0ccfSmrg# Installed binaries are usually stripped using 'strip' when the user
26138abc0ccfSmrg# run "make install-strip".  However 'strip' might not be the right
26147366012aSmrg# tool to use in cross-compilation environments, therefore Automake
26158abc0ccfSmrg# will honor the 'STRIP' environment variable to overrule this program.
26167366012aSmrgif test "$cross_compiling" != no; then
26177366012aSmrg  if test -n "$ac_tool_prefix"; then
26187366012aSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
26197366012aSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
26202adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26217366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
26222adc0320Smrgif ${ac_cv_prog_STRIP+:} false; then :
26237366012aSmrg  $as_echo_n "(cached) " >&6
26247366012aSmrgelse
26257366012aSmrg  if test -n "$STRIP"; then
26267366012aSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
26277366012aSmrgelse
26287366012aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26297366012aSmrgfor as_dir in $PATH
26307366012aSmrgdo
26317366012aSmrg  IFS=$as_save_IFS
26327366012aSmrg  test -z "$as_dir" && as_dir=.
26332adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
26348abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26357366012aSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
26362adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26377366012aSmrg    break 2
26387366012aSmrg  fi
26397366012aSmrgdone
26402adc0320Smrg  done
26417366012aSmrgIFS=$as_save_IFS
26427366012aSmrg
26437366012aSmrgfi
26447366012aSmrgfi
26457366012aSmrgSTRIP=$ac_cv_prog_STRIP
26467366012aSmrgif test -n "$STRIP"; then
26472adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26487366012aSmrg$as_echo "$STRIP" >&6; }
26497366012aSmrgelse
26502adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26517366012aSmrg$as_echo "no" >&6; }
26527366012aSmrgfi
26537366012aSmrg
26547366012aSmrg
26557366012aSmrgfi
26567366012aSmrgif test -z "$ac_cv_prog_STRIP"; then
26577366012aSmrg  ac_ct_STRIP=$STRIP
26587366012aSmrg  # Extract the first word of "strip", so it can be a program name with args.
26597366012aSmrgset dummy strip; ac_word=$2
26602adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26617366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
26622adc0320Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
26637366012aSmrg  $as_echo_n "(cached) " >&6
26647366012aSmrgelse
26657366012aSmrg  if test -n "$ac_ct_STRIP"; then
26667366012aSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
26677366012aSmrgelse
26687366012aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26697366012aSmrgfor as_dir in $PATH
26707366012aSmrgdo
26717366012aSmrg  IFS=$as_save_IFS
26727366012aSmrg  test -z "$as_dir" && as_dir=.
26732adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
26748abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26757366012aSmrg    ac_cv_prog_ac_ct_STRIP="strip"
26762adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26777366012aSmrg    break 2
26787366012aSmrg  fi
26797366012aSmrgdone
26802adc0320Smrg  done
26817366012aSmrgIFS=$as_save_IFS
26827366012aSmrg
26837366012aSmrgfi
26847366012aSmrgfi
26857366012aSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
26867366012aSmrgif test -n "$ac_ct_STRIP"; then
26872adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
26887366012aSmrg$as_echo "$ac_ct_STRIP" >&6; }
26897366012aSmrgelse
26902adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26917366012aSmrg$as_echo "no" >&6; }
26927366012aSmrgfi
26937366012aSmrg
26947366012aSmrg  if test "x$ac_ct_STRIP" = x; then
26957366012aSmrg    STRIP=":"
26967366012aSmrg  else
26977366012aSmrg    case $cross_compiling:$ac_tool_warned in
26987366012aSmrgyes:)
26992adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27007366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27017366012aSmrgac_tool_warned=yes ;;
27027366012aSmrgesac
27037366012aSmrg    STRIP=$ac_ct_STRIP
27047366012aSmrg  fi
27057366012aSmrgelse
27067366012aSmrg  STRIP="$ac_cv_prog_STRIP"
27077a0395d0Smrgfi
27087a0395d0Smrg
27097366012aSmrgfi
27107366012aSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
27117366012aSmrg
27122adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
27137366012aSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
27147a0395d0Smrgif test -z "$MKDIR_P"; then
27152adc0320Smrg  if ${ac_cv_path_mkdir+:} false; then :
27167366012aSmrg  $as_echo_n "(cached) " >&6
27177a0395d0Smrgelse
27187a0395d0Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27197a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
27207a0395d0Smrgdo
27217a0395d0Smrg  IFS=$as_save_IFS
27227a0395d0Smrg  test -z "$as_dir" && as_dir=.
27232adc0320Smrg    for ac_prog in mkdir gmkdir; do
27247a0395d0Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
27258abc0ccfSmrg	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
27267a0395d0Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
27277a0395d0Smrg	     'mkdir (GNU coreutils) '* | \
27287a0395d0Smrg	     'mkdir (coreutils) '* | \
27297a0395d0Smrg	     'mkdir (fileutils) '4.1*)
27307a0395d0Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
27317a0395d0Smrg	       break 3;;
27327a0395d0Smrg	   esac
27337a0395d0Smrg	 done
27347a0395d0Smrg       done
27352adc0320Smrg  done
27367a0395d0SmrgIFS=$as_save_IFS
27377a0395d0Smrg
27387a0395d0Smrgfi
27397a0395d0Smrg
27402adc0320Smrg  test -d ./--version && rmdir ./--version
27417a0395d0Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
27427a0395d0Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
27437a0395d0Smrg  else
27447a0395d0Smrg    # As a last resort, use the slow shell script.  Don't cache a
27457a0395d0Smrg    # value for MKDIR_P within a source directory, because that will
27467a0395d0Smrg    # break other packages using the cache if that directory is
27477a0395d0Smrg    # removed, or if the value is a relative name.
27487a0395d0Smrg    MKDIR_P="$ac_install_sh -d"
27497a0395d0Smrg  fi
27507a0395d0Smrgfi
27512adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
27527366012aSmrg$as_echo "$MKDIR_P" >&6; }
27537a0395d0Smrg
27547a0395d0Smrgfor ac_prog in gawk mawk nawk awk
27557a0395d0Smrgdo
27567a0395d0Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
27577a0395d0Smrgset dummy $ac_prog; ac_word=$2
27582adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27597366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
27602adc0320Smrgif ${ac_cv_prog_AWK+:} false; then :
27617366012aSmrg  $as_echo_n "(cached) " >&6
27627a0395d0Smrgelse
27637a0395d0Smrg  if test -n "$AWK"; then
27647a0395d0Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
27657a0395d0Smrgelse
27667a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27677a0395d0Smrgfor as_dir in $PATH
27687a0395d0Smrgdo
27697a0395d0Smrg  IFS=$as_save_IFS
27707a0395d0Smrg  test -z "$as_dir" && as_dir=.
27712adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
27728abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27737a0395d0Smrg    ac_cv_prog_AWK="$ac_prog"
27742adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27757a0395d0Smrg    break 2
27767a0395d0Smrg  fi
27777a0395d0Smrgdone
27782adc0320Smrg  done
27797a0395d0SmrgIFS=$as_save_IFS
27807a0395d0Smrg
27817a0395d0Smrgfi
27827a0395d0Smrgfi
27837a0395d0SmrgAWK=$ac_cv_prog_AWK
27847a0395d0Smrgif test -n "$AWK"; then
27852adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
27867366012aSmrg$as_echo "$AWK" >&6; }
27877a0395d0Smrgelse
27882adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27897366012aSmrg$as_echo "no" >&6; }
27907a0395d0Smrgfi
27917a0395d0Smrg
27927a0395d0Smrg
27937a0395d0Smrg  test -n "$AWK" && break
27947a0395d0Smrgdone
27957a0395d0Smrg
27962adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
27977366012aSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
27987366012aSmrgset x ${MAKE-make}
27997366012aSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
28002adc0320Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
28017366012aSmrg  $as_echo_n "(cached) " >&6
28027a0395d0Smrgelse
28037a0395d0Smrg  cat >conftest.make <<\_ACEOF
28047a0395d0SmrgSHELL = /bin/sh
28057a0395d0Smrgall:
28067a0395d0Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
28077a0395d0Smrg_ACEOF
28082adc0320Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
28097a0395d0Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
28107a0395d0Smrg  *@@@%%%=?*=@@@%%%*)
28117a0395d0Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
28127a0395d0Smrg  *)
28137a0395d0Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
28147a0395d0Smrgesac
28157a0395d0Smrgrm -f conftest.make
28167a0395d0Smrgfi
28177a0395d0Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
28182adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28197366012aSmrg$as_echo "yes" >&6; }
28207a0395d0Smrg  SET_MAKE=
28217a0395d0Smrgelse
28222adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28237366012aSmrg$as_echo "no" >&6; }
28247a0395d0Smrg  SET_MAKE="MAKE=${MAKE-make}"
28257a0395d0Smrgfi
28267a0395d0Smrg
28277a0395d0Smrgrm -rf .tst 2>/dev/null
28287a0395d0Smrgmkdir .tst 2>/dev/null
28297a0395d0Smrgif test -d .tst; then
28307a0395d0Smrg  am__leading_dot=.
28317a0395d0Smrgelse
28327a0395d0Smrg  am__leading_dot=_
28337a0395d0Smrgfi
28347a0395d0Smrgrmdir .tst 2>/dev/null
28357a0395d0Smrg
28369a011757Smrg# Check whether --enable-silent-rules was given.
28379a011757Smrgif test "${enable_silent_rules+set}" = set; then :
28389a011757Smrg  enableval=$enable_silent_rules;
28399a011757Smrgfi
28409a011757Smrg
28419a011757Smrgcase $enable_silent_rules in # (((
28429a011757Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
28439a011757Smrg   no) AM_DEFAULT_VERBOSITY=1;;
28449a011757Smrg    *) AM_DEFAULT_VERBOSITY=1;;
28459a011757Smrgesac
28469a011757Smrgam_make=${MAKE-make}
28479a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
28489a011757Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
28499a011757Smrgif ${am_cv_make_support_nested_variables+:} false; then :
28509a011757Smrg  $as_echo_n "(cached) " >&6
28519a011757Smrgelse
28529a011757Smrg  if $as_echo 'TRUE=$(BAR$(V))
28539a011757SmrgBAR0=false
28549a011757SmrgBAR1=true
28559a011757SmrgV=1
28569a011757Smrgam__doit:
28579a011757Smrg	@$(TRUE)
28589a011757Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
28599a011757Smrg  am_cv_make_support_nested_variables=yes
28609a011757Smrgelse
28619a011757Smrg  am_cv_make_support_nested_variables=no
28629a011757Smrgfi
28639a011757Smrgfi
28649a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
28659a011757Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
28669a011757Smrgif test $am_cv_make_support_nested_variables = yes; then
28679a011757Smrg    AM_V='$(V)'
28689a011757Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
28699a011757Smrgelse
28709a011757Smrg  AM_V=$AM_DEFAULT_VERBOSITY
28719a011757Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
28729a011757Smrgfi
28739a011757SmrgAM_BACKSLASH='\'
28749a011757Smrg
28757a0395d0Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
28767a0395d0Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
28777a0395d0Smrg  # is not polluted with repeated "-I."
28787a0395d0Smrg  am__isrc=' -I$(srcdir)'
28797a0395d0Smrg  # test to see if srcdir already configured
28807a0395d0Smrg  if test -f $srcdir/config.status; then
28812adc0320Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
28827a0395d0Smrg  fi
28837a0395d0Smrgfi
28847a0395d0Smrg
28857a0395d0Smrg# test whether we have cygpath
28867a0395d0Smrgif test -z "$CYGPATH_W"; then
28877a0395d0Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
28887a0395d0Smrg    CYGPATH_W='cygpath -w'
28897a0395d0Smrg  else
28907a0395d0Smrg    CYGPATH_W=echo
28917a0395d0Smrg  fi
28927a0395d0Smrgfi
28937a0395d0Smrg
28947a0395d0Smrg
28957a0395d0Smrg# Define the identity of the package.
28967a0395d0Smrg PACKAGE='xauth'
289740c5344fSmrg VERSION='1.0.10'
28987a0395d0Smrg
28997a0395d0Smrg
29007a0395d0Smrgcat >>confdefs.h <<_ACEOF
29017a0395d0Smrg#define PACKAGE "$PACKAGE"
29027a0395d0Smrg_ACEOF
29037a0395d0Smrg
29047a0395d0Smrg
29057a0395d0Smrgcat >>confdefs.h <<_ACEOF
29067a0395d0Smrg#define VERSION "$VERSION"
29077a0395d0Smrg_ACEOF
29087a0395d0Smrg
29097a0395d0Smrg# Some tools Automake needs.
29107a0395d0Smrg
29117a0395d0SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
29127a0395d0Smrg
29137a0395d0Smrg
29147a0395d0SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
29157a0395d0Smrg
29167a0395d0Smrg
29177a0395d0SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
29187a0395d0Smrg
29197a0395d0Smrg
29207a0395d0SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
29217a0395d0Smrg
29227a0395d0Smrg
29237a0395d0SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
29247a0395d0Smrg
29258abc0ccfSmrg# For better backward compatibility.  To be removed once Automake 1.9.x
29268abc0ccfSmrg# dies out for good.  For more background, see:
29278abc0ccfSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
29288abc0ccfSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
29298abc0ccfSmrgmkdir_p='$(MKDIR_P)'
29308abc0ccfSmrg
293140c5344fSmrg# We need awk for the "check" target (and possibly the TAP driver).  The
293240c5344fSmrg# system "awk" is bad on some platforms.
29338abc0ccfSmrg# Always define AMTAR for backward compatibility.  Yes, it's still used
29348abc0ccfSmrg# in the wild :-(  We should find a proper way to deprecate it ...
29358abc0ccfSmrgAMTAR='$${TAR-tar}'
29367a0395d0Smrg
29379a011757Smrg
29389a011757Smrg# We'll loop over all known methods to create a tar archive until one works.
29399a011757Smrg_am_tools='gnutar  pax cpio none'
29409a011757Smrg
29418abc0ccfSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
29427a0395d0Smrg
29437a0395d0Smrg
29447a0395d0Smrg
29457a0395d0Smrg
29467a0395d0Smrg
29477366012aSmrg
294840c5344fSmrg# POSIX will say in a future version that running "rm -f" with no argument
294940c5344fSmrg# is OK; and we want to be able to make that assumption in our Makefile
295040c5344fSmrg# recipes.  So use an aggressive probe to check that the usage we want is
295140c5344fSmrg# actually supported "in the wild" to an acceptable degree.
295240c5344fSmrg# See automake bug#10828.
295340c5344fSmrg# To make any issue more visible, cause the running configure to be aborted
295440c5344fSmrg# by default if the 'rm' program in use doesn't match our expectations; the
295540c5344fSmrg# user can still override this though.
295640c5344fSmrgif rm -f && rm -fr && rm -rf; then : OK; else
295740c5344fSmrg  cat >&2 <<'END'
295840c5344fSmrgOops!
29599a011757Smrg
296040c5344fSmrgYour 'rm' program seems unable to run without file operands specified
296140c5344fSmrgon the command line, even when the '-f' option is present.  This is contrary
296240c5344fSmrgto the behaviour of most rm programs out there, and not conforming with
296340c5344fSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
29647a0395d0Smrg
296540c5344fSmrgPlease tell bug-automake@gnu.org about your system, including the value
296640c5344fSmrgof your $PATH and any error possibly output before this message.  This
296740c5344fSmrgcan help us improve future automake versions.
29687a0395d0Smrg
296940c5344fSmrgEND
297040c5344fSmrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
297140c5344fSmrg    echo 'Configuration will proceed anyway, since you have set the' >&2
297240c5344fSmrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
297340c5344fSmrg    echo >&2
297440c5344fSmrg  else
297540c5344fSmrg    cat >&2 <<'END'
297640c5344fSmrgAborting the configuration process, to ensure you take notice of the issue.
29777a0395d0Smrg
297840c5344fSmrgYou can download and install GNU coreutils to get an 'rm' implementation
297940c5344fSmrgthat behaves properly: <http://www.gnu.org/software/coreutils/>.
298040c5344fSmrg
298140c5344fSmrgIf you want to complete the configuration process using your problematic
298240c5344fSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
298340c5344fSmrgto "yes", and re-run configure.
298440c5344fSmrg
298540c5344fSmrgEND
298640c5344fSmrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
298740c5344fSmrg  fi
298840c5344fSmrgfi
29897a0395d0Smrg
29907a0395d0Smrg
29917a0395d0Smrgac_config_headers="$ac_config_headers config.h"
29927a0395d0Smrg
29937a0395d0Smrg
29949a011757Smrg# Set common system defines for POSIX extensions, such as _GNU_SOURCE
29959a011757Smrg# Must be called before any macros that run the compiler (like
29969a011757Smrg# AC_PROG_LIBTOOL) to avoid autoconf errors.
29972adc0320SmrgDEPDIR="${am__leading_dot}deps"
29982adc0320Smrg
29992adc0320Smrgac_config_commands="$ac_config_commands depfiles"
30002adc0320Smrg
30012adc0320Smrg
30022adc0320Smrgam_make=${MAKE-make}
30032adc0320Smrgcat > confinc << 'END'
30042adc0320Smrgam__doit:
30052adc0320Smrg	@echo this is the am__doit target
30062adc0320Smrg.PHONY: am__doit
30072adc0320SmrgEND
30082adc0320Smrg# If we don't find an include directive, just comment out the code.
30092adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
30102adc0320Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
30112adc0320Smrgam__include="#"
30122adc0320Smrgam__quote=
30132adc0320Smrg_am_result=none
30142adc0320Smrg# First try GNU make style include.
30152adc0320Smrgecho "include confinc" > confmf
30168abc0ccfSmrg# Ignore all kinds of additional output from 'make'.
30172adc0320Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
30182adc0320Smrg*the\ am__doit\ target*)
30192adc0320Smrg  am__include=include
30202adc0320Smrg  am__quote=
30212adc0320Smrg  _am_result=GNU
30222adc0320Smrg  ;;
30232adc0320Smrgesac
30242adc0320Smrg# Now try BSD make style include.
30252adc0320Smrgif test "$am__include" = "#"; then
30262adc0320Smrg   echo '.include "confinc"' > confmf
30272adc0320Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
30282adc0320Smrg   *the\ am__doit\ target*)
30292adc0320Smrg     am__include=.include
30302adc0320Smrg     am__quote="\""
30312adc0320Smrg     _am_result=BSD
30322adc0320Smrg     ;;
30332adc0320Smrg   esac
30342adc0320Smrgfi
30352adc0320Smrg
30362adc0320Smrg
30372adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
30382adc0320Smrg$as_echo "$_am_result" >&6; }
30392adc0320Smrgrm -f confinc confmf
30402adc0320Smrg
30412adc0320Smrg# Check whether --enable-dependency-tracking was given.
30422adc0320Smrgif test "${enable_dependency_tracking+set}" = set; then :
30432adc0320Smrg  enableval=$enable_dependency_tracking;
30442adc0320Smrgfi
30457a0395d0Smrg
30462adc0320Smrgif test "x$enable_dependency_tracking" != xno; then
30472adc0320Smrg  am_depcomp="$ac_aux_dir/depcomp"
30482adc0320Smrg  AMDEPBACKSLASH='\'
30498abc0ccfSmrg  am__nodep='_no'
30502adc0320Smrgfi
30512adc0320Smrg if test "x$enable_dependency_tracking" != xno; then
30522adc0320Smrg  AMDEP_TRUE=
30532adc0320Smrg  AMDEP_FALSE='#'
30542adc0320Smrgelse
30552adc0320Smrg  AMDEP_TRUE='#'
30562adc0320Smrg  AMDEP_FALSE=
30572adc0320Smrgfi
30587a0395d0Smrg
30597a0395d0Smrg
30607a0395d0Smrgac_ext=c
30617a0395d0Smrgac_cpp='$CPP $CPPFLAGS'
30627a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30637a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30647a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
30657a0395d0Smrgif test -n "$ac_tool_prefix"; then
30667a0395d0Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
30677a0395d0Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
30682adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30697366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
30702adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
30717366012aSmrg  $as_echo_n "(cached) " >&6
30727a0395d0Smrgelse
30737a0395d0Smrg  if test -n "$CC"; then
30747a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
30757a0395d0Smrgelse
30767a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30777a0395d0Smrgfor as_dir in $PATH
30787a0395d0Smrgdo
30797a0395d0Smrg  IFS=$as_save_IFS
30807a0395d0Smrg  test -z "$as_dir" && as_dir=.
30812adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
30828abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30837a0395d0Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
30842adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30857a0395d0Smrg    break 2
30867a0395d0Smrg  fi
30877a0395d0Smrgdone
30882adc0320Smrg  done
30897a0395d0SmrgIFS=$as_save_IFS
30907a0395d0Smrg
30917a0395d0Smrgfi
30927a0395d0Smrgfi
30937a0395d0SmrgCC=$ac_cv_prog_CC
30947a0395d0Smrgif test -n "$CC"; then
30952adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
30967366012aSmrg$as_echo "$CC" >&6; }
30977a0395d0Smrgelse
30982adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30997366012aSmrg$as_echo "no" >&6; }
31007a0395d0Smrgfi
31017a0395d0Smrg
31027a0395d0Smrg
31037a0395d0Smrgfi
31047a0395d0Smrgif test -z "$ac_cv_prog_CC"; then
31057a0395d0Smrg  ac_ct_CC=$CC
31067a0395d0Smrg  # Extract the first word of "gcc", so it can be a program name with args.
31077a0395d0Smrgset dummy gcc; ac_word=$2
31082adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31097366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
31102adc0320Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
31117366012aSmrg  $as_echo_n "(cached) " >&6
31127a0395d0Smrgelse
31137a0395d0Smrg  if test -n "$ac_ct_CC"; then
31147a0395d0Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
31157a0395d0Smrgelse
31167a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31177a0395d0Smrgfor as_dir in $PATH
31187a0395d0Smrgdo
31197a0395d0Smrg  IFS=$as_save_IFS
31207a0395d0Smrg  test -z "$as_dir" && as_dir=.
31212adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
31228abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31237a0395d0Smrg    ac_cv_prog_ac_ct_CC="gcc"
31242adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31257a0395d0Smrg    break 2
31267a0395d0Smrg  fi
31277a0395d0Smrgdone
31282adc0320Smrg  done
31297a0395d0SmrgIFS=$as_save_IFS
31307a0395d0Smrg
31317a0395d0Smrgfi
31327a0395d0Smrgfi
31337a0395d0Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
31347a0395d0Smrgif test -n "$ac_ct_CC"; then
31352adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
31367366012aSmrg$as_echo "$ac_ct_CC" >&6; }
31377a0395d0Smrgelse
31382adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31397366012aSmrg$as_echo "no" >&6; }
31407a0395d0Smrgfi
31417a0395d0Smrg
31427a0395d0Smrg  if test "x$ac_ct_CC" = x; then
31437a0395d0Smrg    CC=""
31447a0395d0Smrg  else
31457a0395d0Smrg    case $cross_compiling:$ac_tool_warned in
31467a0395d0Smrgyes:)
31472adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31487366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31497a0395d0Smrgac_tool_warned=yes ;;
31507a0395d0Smrgesac
31517a0395d0Smrg    CC=$ac_ct_CC
31527a0395d0Smrg  fi
31537a0395d0Smrgelse
31547a0395d0Smrg  CC="$ac_cv_prog_CC"
31557a0395d0Smrgfi
31567a0395d0Smrg
31577a0395d0Smrgif test -z "$CC"; then
31587a0395d0Smrg          if test -n "$ac_tool_prefix"; then
31597a0395d0Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
31607a0395d0Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
31612adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31627366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
31632adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
31647366012aSmrg  $as_echo_n "(cached) " >&6
31657a0395d0Smrgelse
31667a0395d0Smrg  if test -n "$CC"; then
31677a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
31687a0395d0Smrgelse
31697a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31707a0395d0Smrgfor as_dir in $PATH
31717a0395d0Smrgdo
31727a0395d0Smrg  IFS=$as_save_IFS
31737a0395d0Smrg  test -z "$as_dir" && as_dir=.
31742adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
31758abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31767a0395d0Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
31772adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31787a0395d0Smrg    break 2
31797a0395d0Smrg  fi
31807a0395d0Smrgdone
31812adc0320Smrg  done
31827a0395d0SmrgIFS=$as_save_IFS
31837a0395d0Smrg
31847a0395d0Smrgfi
31857a0395d0Smrgfi
31867a0395d0SmrgCC=$ac_cv_prog_CC
31877a0395d0Smrgif test -n "$CC"; then
31882adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
31897366012aSmrg$as_echo "$CC" >&6; }
31907a0395d0Smrgelse
31912adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31927366012aSmrg$as_echo "no" >&6; }
31937a0395d0Smrgfi
31947a0395d0Smrg
31957a0395d0Smrg
31967a0395d0Smrg  fi
31977a0395d0Smrgfi
31987a0395d0Smrgif test -z "$CC"; then
31997a0395d0Smrg  # Extract the first word of "cc", so it can be a program name with args.
32007a0395d0Smrgset dummy cc; ac_word=$2
32012adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32027366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
32032adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
32047366012aSmrg  $as_echo_n "(cached) " >&6
32057a0395d0Smrgelse
32067a0395d0Smrg  if test -n "$CC"; then
32077a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
32087a0395d0Smrgelse
32097a0395d0Smrg  ac_prog_rejected=no
32107a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32117a0395d0Smrgfor as_dir in $PATH
32127a0395d0Smrgdo
32137a0395d0Smrg  IFS=$as_save_IFS
32147a0395d0Smrg  test -z "$as_dir" && as_dir=.
32152adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
32168abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32177a0395d0Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
32187a0395d0Smrg       ac_prog_rejected=yes
32197a0395d0Smrg       continue
32207a0395d0Smrg     fi
32217a0395d0Smrg    ac_cv_prog_CC="cc"
32222adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32237a0395d0Smrg    break 2
32247a0395d0Smrg  fi
32257a0395d0Smrgdone
32262adc0320Smrg  done
32277a0395d0SmrgIFS=$as_save_IFS
32287a0395d0Smrg
32297a0395d0Smrgif test $ac_prog_rejected = yes; then
32307a0395d0Smrg  # We found a bogon in the path, so make sure we never use it.
32317a0395d0Smrg  set dummy $ac_cv_prog_CC
32327a0395d0Smrg  shift
32337a0395d0Smrg  if test $# != 0; then
32347a0395d0Smrg    # We chose a different compiler from the bogus one.
32357a0395d0Smrg    # However, it has the same basename, so the bogon will be chosen
32367a0395d0Smrg    # first if we set CC to just the basename; use the full file name.
32377a0395d0Smrg    shift
32387a0395d0Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
32397a0395d0Smrg  fi
32407a0395d0Smrgfi
32417a0395d0Smrgfi
32427a0395d0Smrgfi
32437a0395d0SmrgCC=$ac_cv_prog_CC
32447a0395d0Smrgif test -n "$CC"; then
32452adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
32467366012aSmrg$as_echo "$CC" >&6; }
32477a0395d0Smrgelse
32482adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32497366012aSmrg$as_echo "no" >&6; }
32507a0395d0Smrgfi
32517a0395d0Smrg
32527a0395d0Smrg
32537a0395d0Smrgfi
32547a0395d0Smrgif test -z "$CC"; then
32557a0395d0Smrg  if test -n "$ac_tool_prefix"; then
32567a0395d0Smrg  for ac_prog in cl.exe
32577a0395d0Smrg  do
32587a0395d0Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32597a0395d0Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
32602adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32617366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
32622adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
32637366012aSmrg  $as_echo_n "(cached) " >&6
32647a0395d0Smrgelse
32657a0395d0Smrg  if test -n "$CC"; then
32667a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
32677a0395d0Smrgelse
32687a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32697a0395d0Smrgfor as_dir in $PATH
32707a0395d0Smrgdo
32717a0395d0Smrg  IFS=$as_save_IFS
32727a0395d0Smrg  test -z "$as_dir" && as_dir=.
32732adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
32748abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32757a0395d0Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
32762adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32777a0395d0Smrg    break 2
32787a0395d0Smrg  fi
32797a0395d0Smrgdone
32802adc0320Smrg  done
32817a0395d0SmrgIFS=$as_save_IFS
32827a0395d0Smrg
32837a0395d0Smrgfi
32847a0395d0Smrgfi
32857a0395d0SmrgCC=$ac_cv_prog_CC
32867a0395d0Smrgif test -n "$CC"; then
32872adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
32887366012aSmrg$as_echo "$CC" >&6; }
32897a0395d0Smrgelse
32902adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32917366012aSmrg$as_echo "no" >&6; }
32927a0395d0Smrgfi
32937a0395d0Smrg
32947a0395d0Smrg
32957a0395d0Smrg    test -n "$CC" && break
32967a0395d0Smrg  done
32977a0395d0Smrgfi
32987a0395d0Smrgif test -z "$CC"; then
32997a0395d0Smrg  ac_ct_CC=$CC
33007a0395d0Smrg  for ac_prog in cl.exe
33017a0395d0Smrgdo
33027a0395d0Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
33037a0395d0Smrgset dummy $ac_prog; ac_word=$2
33042adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33057366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
33062adc0320Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
33077366012aSmrg  $as_echo_n "(cached) " >&6
33087a0395d0Smrgelse
33097a0395d0Smrg  if test -n "$ac_ct_CC"; then
33107a0395d0Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
33117a0395d0Smrgelse
33127a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33137a0395d0Smrgfor as_dir in $PATH
33147a0395d0Smrgdo
33157a0395d0Smrg  IFS=$as_save_IFS
33167a0395d0Smrg  test -z "$as_dir" && as_dir=.
33172adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
33188abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33197a0395d0Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
33202adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33217a0395d0Smrg    break 2
33227a0395d0Smrg  fi
33237a0395d0Smrgdone
33242adc0320Smrg  done
33257a0395d0SmrgIFS=$as_save_IFS
33267a0395d0Smrg
33277a0395d0Smrgfi
33287a0395d0Smrgfi
33297a0395d0Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
33307a0395d0Smrgif test -n "$ac_ct_CC"; then
33312adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
33327366012aSmrg$as_echo "$ac_ct_CC" >&6; }
33337a0395d0Smrgelse
33342adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33357366012aSmrg$as_echo "no" >&6; }
33367a0395d0Smrgfi
33377a0395d0Smrg
33387a0395d0Smrg
33397a0395d0Smrg  test -n "$ac_ct_CC" && break
33407a0395d0Smrgdone
33417a0395d0Smrg
33427a0395d0Smrg  if test "x$ac_ct_CC" = x; then
33437a0395d0Smrg    CC=""
33447a0395d0Smrg  else
33457a0395d0Smrg    case $cross_compiling:$ac_tool_warned in
33467a0395d0Smrgyes:)
33472adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33487366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33497a0395d0Smrgac_tool_warned=yes ;;
33507a0395d0Smrgesac
33517a0395d0Smrg    CC=$ac_ct_CC
33527a0395d0Smrg  fi
33537a0395d0Smrgfi
33547a0395d0Smrg
33557a0395d0Smrgfi
33567a0395d0Smrg
33577a0395d0Smrg
33582adc0320Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33597366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33602adc0320Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
33612adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
33627a0395d0Smrg
33637a0395d0Smrg# Provide some information about the compiler.
33642adc0320Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
33657366012aSmrgset X $ac_compile
33667366012aSmrgac_compiler=$2
33672adc0320Smrgfor ac_option in --version -v -V -qversion; do
33682adc0320Smrg  { { ac_try="$ac_compiler $ac_option >&5"
33697a0395d0Smrgcase "(($ac_try" in
33707a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33717a0395d0Smrg  *) ac_try_echo=$ac_try;;
33727a0395d0Smrgesac
33732adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
33742adc0320Smrg$as_echo "$ac_try_echo"; } >&5
33752adc0320Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
33767a0395d0Smrg  ac_status=$?
33772adc0320Smrg  if test -s conftest.err; then
33782adc0320Smrg    sed '10a\
33792adc0320Smrg... rest of stderr output deleted ...
33802adc0320Smrg         10q' conftest.err >conftest.er1
33812adc0320Smrg    cat conftest.er1 >&5
33822adc0320Smrg  fi
33832adc0320Smrg  rm -f conftest.er1 conftest.err
33842adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33852adc0320Smrg  test $ac_status = 0; }
33862adc0320Smrgdone
33877a0395d0Smrg
33882adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
33897a0395d0Smrg/* end confdefs.h.  */
33907a0395d0Smrg
33917a0395d0Smrgint
33927a0395d0Smrgmain ()
33937a0395d0Smrg{
33947a0395d0Smrg
33957a0395d0Smrg  ;
33967a0395d0Smrg  return 0;
33977a0395d0Smrg}
33987a0395d0Smrg_ACEOF
33997a0395d0Smrgac_clean_files_save=$ac_clean_files
34007366012aSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
34017a0395d0Smrg# Try to create an executable without -o first, disregard a.out.
34027a0395d0Smrg# It will help us diagnose broken compilers, and finding out an intuition
34037a0395d0Smrg# of exeext.
34042adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
34052adc0320Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
34067366012aSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
34077366012aSmrg
34087366012aSmrg# The possible output files:
34097366012aSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
34107366012aSmrg
34117a0395d0Smrgac_rmfiles=
34127a0395d0Smrgfor ac_file in $ac_files
34137a0395d0Smrgdo
34147a0395d0Smrg  case $ac_file in
34157366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
34167a0395d0Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
34177a0395d0Smrg  esac
34187a0395d0Smrgdone
34197a0395d0Smrgrm -f $ac_rmfiles
34207a0395d0Smrg
34212adc0320Smrgif { { ac_try="$ac_link_default"
34227a0395d0Smrgcase "(($ac_try" in
34237a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34247a0395d0Smrg  *) ac_try_echo=$ac_try;;
34257a0395d0Smrgesac
34262adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
34272adc0320Smrg$as_echo "$ac_try_echo"; } >&5
34287a0395d0Smrg  (eval "$ac_link_default") 2>&5
34297a0395d0Smrg  ac_status=$?
34302adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34312adc0320Smrg  test $ac_status = 0; }; then :
34327a0395d0Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
34337a0395d0Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
34347a0395d0Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
34357a0395d0Smrg# so that the user can short-circuit this test for compilers unknown to
34367a0395d0Smrg# Autoconf.
34377a0395d0Smrgfor ac_file in $ac_files ''
34387a0395d0Smrgdo
34397a0395d0Smrg  test -f "$ac_file" || continue
34407a0395d0Smrg  case $ac_file in
34417366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
34427a0395d0Smrg	;;
34437a0395d0Smrg    [ab].out )
34447a0395d0Smrg	# We found the default executable, but exeext='' is most
34457a0395d0Smrg	# certainly right.
34467a0395d0Smrg	break;;
34477a0395d0Smrg    *.* )
34482adc0320Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
34497a0395d0Smrg	then :; else
34507a0395d0Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
34517a0395d0Smrg	fi
34527a0395d0Smrg	# We set ac_cv_exeext here because the later test for it is not
34537a0395d0Smrg	# safe: cross compilers may not add the suffix if given an `-o'
34547a0395d0Smrg	# argument, so we may need to know it at that point already.
34557a0395d0Smrg	# Even if this section looks crufty: it has the advantage of
34567a0395d0Smrg	# actually working.
34577a0395d0Smrg	break;;
34587a0395d0Smrg    * )
34597a0395d0Smrg	break;;
34607a0395d0Smrg  esac
34617a0395d0Smrgdone
34627a0395d0Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
34637a0395d0Smrg
34647a0395d0Smrgelse
34657a0395d0Smrg  ac_file=''
34667a0395d0Smrgfi
34672adc0320Smrgif test -z "$ac_file"; then :
34682adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34692adc0320Smrg$as_echo "no" >&6; }
34702adc0320Smrg$as_echo "$as_me: failed program was:" >&5
34717a0395d0Smrgsed 's/^/| /' conftest.$ac_ext >&5
34727a0395d0Smrg
34732adc0320Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34747366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34752adc0320Smrgas_fn_error 77 "C compiler cannot create executables
34762adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
34772adc0320Smrgelse
34782adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34792adc0320Smrg$as_echo "yes" >&6; }
34807a0395d0Smrgfi
34812adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
34822adc0320Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
34832adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
34842adc0320Smrg$as_echo "$ac_file" >&6; }
34857a0395d0Smrgac_exeext=$ac_cv_exeext
34867a0395d0Smrg
34877366012aSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
34887a0395d0Smrgac_clean_files=$ac_clean_files_save
34892adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
34907366012aSmrg$as_echo_n "checking for suffix of executables... " >&6; }
34912adc0320Smrgif { { ac_try="$ac_link"
34927a0395d0Smrgcase "(($ac_try" in
34937a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34947a0395d0Smrg  *) ac_try_echo=$ac_try;;
34957a0395d0Smrgesac
34962adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
34972adc0320Smrg$as_echo "$ac_try_echo"; } >&5
34987a0395d0Smrg  (eval "$ac_link") 2>&5
34997a0395d0Smrg  ac_status=$?
35002adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35012adc0320Smrg  test $ac_status = 0; }; then :
35027a0395d0Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
35037a0395d0Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
35047a0395d0Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
35057a0395d0Smrg# `rm'.
35067a0395d0Smrgfor ac_file in conftest.exe conftest conftest.*; do
35077a0395d0Smrg  test -f "$ac_file" || continue
35087a0395d0Smrg  case $ac_file in
35097366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
35107a0395d0Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
35117a0395d0Smrg	  break;;
35127a0395d0Smrg    * ) break;;
35137a0395d0Smrg  esac
35147a0395d0Smrgdone
35157a0395d0Smrgelse
35162adc0320Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35177366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35182adc0320Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
35192adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
35207a0395d0Smrgfi
35212adc0320Smrgrm -f conftest conftest$ac_cv_exeext
35222adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
35237366012aSmrg$as_echo "$ac_cv_exeext" >&6; }
35247a0395d0Smrg
35257a0395d0Smrgrm -f conftest.$ac_ext
35267a0395d0SmrgEXEEXT=$ac_cv_exeext
35277a0395d0Smrgac_exeext=$EXEEXT
35282adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
35292adc0320Smrg/* end confdefs.h.  */
35302adc0320Smrg#include <stdio.h>
35312adc0320Smrgint
35322adc0320Smrgmain ()
35332adc0320Smrg{
35342adc0320SmrgFILE *f = fopen ("conftest.out", "w");
35352adc0320Smrg return ferror (f) || fclose (f) != 0;
35362adc0320Smrg
35372adc0320Smrg  ;
35382adc0320Smrg  return 0;
35392adc0320Smrg}
35402adc0320Smrg_ACEOF
35412adc0320Smrgac_clean_files="$ac_clean_files conftest.out"
35422adc0320Smrg# Check that the compiler produces executables we can run.  If not, either
35432adc0320Smrg# the compiler is broken, or we cross compile.
35442adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
35452adc0320Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
35462adc0320Smrgif test "$cross_compiling" != yes; then
35472adc0320Smrg  { { ac_try="$ac_link"
35482adc0320Smrgcase "(($ac_try" in
35492adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35502adc0320Smrg  *) ac_try_echo=$ac_try;;
35512adc0320Smrgesac
35522adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
35532adc0320Smrg$as_echo "$ac_try_echo"; } >&5
35542adc0320Smrg  (eval "$ac_link") 2>&5
35552adc0320Smrg  ac_status=$?
35562adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35572adc0320Smrg  test $ac_status = 0; }
35582adc0320Smrg  if { ac_try='./conftest$ac_cv_exeext'
35592adc0320Smrg  { { case "(($ac_try" in
35602adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35612adc0320Smrg  *) ac_try_echo=$ac_try;;
35622adc0320Smrgesac
35632adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
35642adc0320Smrg$as_echo "$ac_try_echo"; } >&5
35652adc0320Smrg  (eval "$ac_try") 2>&5
35662adc0320Smrg  ac_status=$?
35672adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35682adc0320Smrg  test $ac_status = 0; }; }; then
35692adc0320Smrg    cross_compiling=no
35702adc0320Smrg  else
35712adc0320Smrg    if test "$cross_compiling" = maybe; then
35722adc0320Smrg	cross_compiling=yes
35732adc0320Smrg    else
35742adc0320Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35752adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35762adc0320Smrgas_fn_error $? "cannot run C compiled programs.
35772adc0320SmrgIf you meant to cross compile, use \`--host'.
35782adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
35792adc0320Smrg    fi
35802adc0320Smrg  fi
35812adc0320Smrgfi
35822adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
35832adc0320Smrg$as_echo "$cross_compiling" >&6; }
35842adc0320Smrg
35852adc0320Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
35862adc0320Smrgac_clean_files=$ac_clean_files_save
35872adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
35887366012aSmrg$as_echo_n "checking for suffix of object files... " >&6; }
35892adc0320Smrgif ${ac_cv_objext+:} false; then :
35907366012aSmrg  $as_echo_n "(cached) " >&6
35917a0395d0Smrgelse
35922adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35937a0395d0Smrg/* end confdefs.h.  */
35947a0395d0Smrg
35957a0395d0Smrgint
35967a0395d0Smrgmain ()
35977a0395d0Smrg{
35987a0395d0Smrg
35997a0395d0Smrg  ;
36007a0395d0Smrg  return 0;
36017a0395d0Smrg}
36027a0395d0Smrg_ACEOF
36037a0395d0Smrgrm -f conftest.o conftest.obj
36042adc0320Smrgif { { ac_try="$ac_compile"
36057a0395d0Smrgcase "(($ac_try" in
36067a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36077a0395d0Smrg  *) ac_try_echo=$ac_try;;
36087a0395d0Smrgesac
36092adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
36102adc0320Smrg$as_echo "$ac_try_echo"; } >&5
36117a0395d0Smrg  (eval "$ac_compile") 2>&5
36127a0395d0Smrg  ac_status=$?
36132adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36142adc0320Smrg  test $ac_status = 0; }; then :
36157a0395d0Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
36167a0395d0Smrg  test -f "$ac_file" || continue;
36177a0395d0Smrg  case $ac_file in
36187366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
36197a0395d0Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
36207a0395d0Smrg       break;;
36217a0395d0Smrg  esac
36227a0395d0Smrgdone
36237a0395d0Smrgelse
36247366012aSmrg  $as_echo "$as_me: failed program was:" >&5
36257a0395d0Smrgsed 's/^/| /' conftest.$ac_ext >&5
36267a0395d0Smrg
36272adc0320Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36287366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36292adc0320Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
36302adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
36317a0395d0Smrgfi
36327a0395d0Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
36337a0395d0Smrgfi
36342adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
36357366012aSmrg$as_echo "$ac_cv_objext" >&6; }
36367a0395d0SmrgOBJEXT=$ac_cv_objext
36377a0395d0Smrgac_objext=$OBJEXT
36382adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
36397366012aSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
36402adc0320Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
36417366012aSmrg  $as_echo_n "(cached) " >&6
36427a0395d0Smrgelse
36432adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36447a0395d0Smrg/* end confdefs.h.  */
36457a0395d0Smrg
36467a0395d0Smrgint
36477a0395d0Smrgmain ()
36487a0395d0Smrg{
36497a0395d0Smrg#ifndef __GNUC__
36507a0395d0Smrg       choke me
36517a0395d0Smrg#endif
36527a0395d0Smrg
36537a0395d0Smrg  ;
36547a0395d0Smrg  return 0;
36557a0395d0Smrg}
36567a0395d0Smrg_ACEOF
36572adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
36587a0395d0Smrg  ac_compiler_gnu=yes
36597a0395d0Smrgelse
36602adc0320Smrg  ac_compiler_gnu=no
36617a0395d0Smrgfi
36627a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36637a0395d0Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
36647a0395d0Smrg
36657a0395d0Smrgfi
36662adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
36677366012aSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
36687366012aSmrgif test $ac_compiler_gnu = yes; then
36697366012aSmrg  GCC=yes
36707366012aSmrgelse
36717366012aSmrg  GCC=
36727366012aSmrgfi
36737a0395d0Smrgac_test_CFLAGS=${CFLAGS+set}
36747a0395d0Smrgac_save_CFLAGS=$CFLAGS
36752adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
36767366012aSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
36772adc0320Smrgif ${ac_cv_prog_cc_g+:} false; then :
36787366012aSmrg  $as_echo_n "(cached) " >&6
36797a0395d0Smrgelse
36807a0395d0Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
36817a0395d0Smrg   ac_c_werror_flag=yes
36827a0395d0Smrg   ac_cv_prog_cc_g=no
36837a0395d0Smrg   CFLAGS="-g"
36842adc0320Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36857a0395d0Smrg/* end confdefs.h.  */
36867a0395d0Smrg
36877a0395d0Smrgint
36887a0395d0Smrgmain ()
36897a0395d0Smrg{
36907a0395d0Smrg
36917a0395d0Smrg  ;
36927a0395d0Smrg  return 0;
36937a0395d0Smrg}
36947a0395d0Smrg_ACEOF
36952adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
36967a0395d0Smrg  ac_cv_prog_cc_g=yes
36977a0395d0Smrgelse
36982adc0320Smrg  CFLAGS=""
36992adc0320Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37007a0395d0Smrg/* end confdefs.h.  */
37017a0395d0Smrg
37027a0395d0Smrgint
37037a0395d0Smrgmain ()
37047a0395d0Smrg{
37057a0395d0Smrg
37067a0395d0Smrg  ;
37077a0395d0Smrg  return 0;
37087a0395d0Smrg}
37097a0395d0Smrg_ACEOF
37102adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
37117a0395d0Smrg
37122adc0320Smrgelse
37132adc0320Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
37147a0395d0Smrg	 CFLAGS="-g"
37152adc0320Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37167a0395d0Smrg/* end confdefs.h.  */
37177a0395d0Smrg
37182adc0320Smrgint
37192adc0320Smrgmain ()
37202adc0320Smrg{
37217a0395d0Smrg
37222adc0320Smrg  ;
37232adc0320Smrg  return 0;
37242adc0320Smrg}
37252adc0320Smrg_ACEOF
37262adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
37272adc0320Smrg  ac_cv_prog_cc_g=yes
37287a0395d0Smrgfi
37297a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37307a0395d0Smrgfi
37317a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37327a0395d0Smrgfi
37337a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37347a0395d0Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
37357a0395d0Smrgfi
37362adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
37377366012aSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
37387a0395d0Smrgif test "$ac_test_CFLAGS" = set; then
37397a0395d0Smrg  CFLAGS=$ac_save_CFLAGS
37407a0395d0Smrgelif test $ac_cv_prog_cc_g = yes; then
37417a0395d0Smrg  if test "$GCC" = yes; then
37427a0395d0Smrg    CFLAGS="-g -O2"
37437a0395d0Smrg  else
37447a0395d0Smrg    CFLAGS="-g"
37457a0395d0Smrg  fi
37467a0395d0Smrgelse
37477a0395d0Smrg  if test "$GCC" = yes; then
37487a0395d0Smrg    CFLAGS="-O2"
37497a0395d0Smrg  else
37507a0395d0Smrg    CFLAGS=
37517a0395d0Smrg  fi
37527a0395d0Smrgfi
37532adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
37547366012aSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
37552adc0320Smrgif ${ac_cv_prog_cc_c89+:} false; then :
37567366012aSmrg  $as_echo_n "(cached) " >&6
37577a0395d0Smrgelse
37587a0395d0Smrg  ac_cv_prog_cc_c89=no
37597a0395d0Smrgac_save_CC=$CC
37602adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
37617a0395d0Smrg/* end confdefs.h.  */
37627a0395d0Smrg#include <stdarg.h>
37637a0395d0Smrg#include <stdio.h>
37648abc0ccfSmrgstruct stat;
37657a0395d0Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
37667a0395d0Smrgstruct buf { int x; };
37677a0395d0SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
37687a0395d0Smrgstatic char *e (p, i)
37697a0395d0Smrg     char **p;
37707a0395d0Smrg     int i;
37717a0395d0Smrg{
37727a0395d0Smrg  return p[i];
37737a0395d0Smrg}
37747a0395d0Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
37757a0395d0Smrg{
37767a0395d0Smrg  char *s;
37777a0395d0Smrg  va_list v;
37787a0395d0Smrg  va_start (v,p);
37797a0395d0Smrg  s = g (p, va_arg (v,int));
37807a0395d0Smrg  va_end (v);
37817a0395d0Smrg  return s;
37827a0395d0Smrg}
37837a0395d0Smrg
37847a0395d0Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
37857a0395d0Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
37867a0395d0Smrg   These don't provoke an error unfortunately, instead are silently treated
37877a0395d0Smrg   as 'x'.  The following induces an error, until -std is added to get
37887a0395d0Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
37897a0395d0Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
37907a0395d0Smrg   that's true only with -std.  */
37917a0395d0Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
37927a0395d0Smrg
37937a0395d0Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
37947a0395d0Smrg   inside strings and character constants.  */
37957a0395d0Smrg#define FOO(x) 'x'
37967a0395d0Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
37977a0395d0Smrg
37987a0395d0Smrgint test (int i, double x);
37997a0395d0Smrgstruct s1 {int (*f) (int a);};
38007a0395d0Smrgstruct s2 {int (*f) (double a);};
38017a0395d0Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
38027a0395d0Smrgint argc;
38037a0395d0Smrgchar **argv;
38047a0395d0Smrgint
38057a0395d0Smrgmain ()
38067a0395d0Smrg{
38077a0395d0Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
38087a0395d0Smrg  ;
38097a0395d0Smrg  return 0;
38107a0395d0Smrg}
38117a0395d0Smrg_ACEOF
38127a0395d0Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
38137a0395d0Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
38147a0395d0Smrgdo
38157a0395d0Smrg  CC="$ac_save_CC $ac_arg"
38162adc0320Smrg  if ac_fn_c_try_compile "$LINENO"; then :
38177a0395d0Smrg  ac_cv_prog_cc_c89=$ac_arg
38187a0395d0Smrgfi
38197a0395d0Smrgrm -f core conftest.err conftest.$ac_objext
38207a0395d0Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
38217a0395d0Smrgdone
38227a0395d0Smrgrm -f conftest.$ac_ext
38237a0395d0SmrgCC=$ac_save_CC
38247a0395d0Smrg
38257a0395d0Smrgfi
38267a0395d0Smrg# AC_CACHE_VAL
38277a0395d0Smrgcase "x$ac_cv_prog_cc_c89" in
38287a0395d0Smrg  x)
38292adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
38307366012aSmrg$as_echo "none needed" >&6; } ;;
38317a0395d0Smrg  xno)
38322adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
38337366012aSmrg$as_echo "unsupported" >&6; } ;;
38347a0395d0Smrg  *)
38357a0395d0Smrg    CC="$CC $ac_cv_prog_cc_c89"
38362adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
38377366012aSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
38387a0395d0Smrgesac
38392adc0320Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
38407a0395d0Smrg
38412adc0320Smrgfi
38427a0395d0Smrg
38437a0395d0Smrgac_ext=c
38447a0395d0Smrgac_cpp='$CPP $CPPFLAGS'
38457a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38467a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38477a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
38487a0395d0Smrg
384940c5344fSmrgac_ext=c
385040c5344fSmrgac_cpp='$CPP $CPPFLAGS'
385140c5344fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
385240c5344fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
385340c5344fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
385440c5344fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
385540c5344fSmrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
385640c5344fSmrgif ${am_cv_prog_cc_c_o+:} false; then :
385740c5344fSmrg  $as_echo_n "(cached) " >&6
385840c5344fSmrgelse
385940c5344fSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
386040c5344fSmrg/* end confdefs.h.  */
386140c5344fSmrg
386240c5344fSmrgint
386340c5344fSmrgmain ()
386440c5344fSmrg{
386540c5344fSmrg
386640c5344fSmrg  ;
386740c5344fSmrg  return 0;
386840c5344fSmrg}
386940c5344fSmrg_ACEOF
387040c5344fSmrg  # Make sure it works both with $CC and with simple cc.
387140c5344fSmrg  # Following AC_PROG_CC_C_O, we do the test twice because some
387240c5344fSmrg  # compilers refuse to overwrite an existing .o file with -o,
387340c5344fSmrg  # though they will create one.
387440c5344fSmrg  am_cv_prog_cc_c_o=yes
387540c5344fSmrg  for am_i in 1 2; do
387640c5344fSmrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
387740c5344fSmrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
387840c5344fSmrg   ac_status=$?
387940c5344fSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
388040c5344fSmrg   (exit $ac_status); } \
388140c5344fSmrg         && test -f conftest2.$ac_objext; then
388240c5344fSmrg      : OK
388340c5344fSmrg    else
388440c5344fSmrg      am_cv_prog_cc_c_o=no
388540c5344fSmrg      break
388640c5344fSmrg    fi
388740c5344fSmrg  done
388840c5344fSmrg  rm -f core conftest*
388940c5344fSmrg  unset am_i
389040c5344fSmrgfi
389140c5344fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
389240c5344fSmrg$as_echo "$am_cv_prog_cc_c_o" >&6; }
389340c5344fSmrgif test "$am_cv_prog_cc_c_o" != yes; then
389440c5344fSmrg   # Losing compiler, so override with the script.
389540c5344fSmrg   # FIXME: It is wrong to rewrite CC.
389640c5344fSmrg   # But if we don't then we get into trouble of one sort or another.
389740c5344fSmrg   # A longer-term fix would be to have automake use am__CC in this case,
389840c5344fSmrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
389940c5344fSmrg   CC="$am_aux_dir/compile $CC"
390040c5344fSmrgfi
390140c5344fSmrgac_ext=c
390240c5344fSmrgac_cpp='$CPP $CPPFLAGS'
390340c5344fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
390440c5344fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
390540c5344fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
390640c5344fSmrg
390740c5344fSmrg
39087a0395d0Smrgdepcc="$CC"   am_compiler_list=
39097a0395d0Smrg
39102adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
39117366012aSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
39122adc0320Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
39137366012aSmrg  $as_echo_n "(cached) " >&6
39147a0395d0Smrgelse
39157a0395d0Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
39167a0395d0Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
39177a0395d0Smrg  # making bogus files that we don't know about and never remove.  For
39187a0395d0Smrg  # instance it was reported that on HP-UX the gcc test will end up
39198abc0ccfSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
39208abc0ccfSmrg  # in D".
39218abc0ccfSmrg  rm -rf conftest.dir
39227a0395d0Smrg  mkdir conftest.dir
39237a0395d0Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
39247a0395d0Smrg  # using a relative directory.
39257a0395d0Smrg  cp "$am_depcomp" conftest.dir
39267a0395d0Smrg  cd conftest.dir
39277a0395d0Smrg  # We will build objects and dependencies in a subdirectory because
39287a0395d0Smrg  # it helps to detect inapplicable dependency modes.  For instance
39297a0395d0Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
39307a0395d0Smrg  # side effect of compilation, but ICC will put the dependencies in
39317a0395d0Smrg  # the current directory while Tru64 will put them in the object
39327a0395d0Smrg  # directory.
39337a0395d0Smrg  mkdir sub
39347a0395d0Smrg
39357a0395d0Smrg  am_cv_CC_dependencies_compiler_type=none
39367a0395d0Smrg  if test "$am_compiler_list" = ""; then
39377a0395d0Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
39387a0395d0Smrg  fi
39397366012aSmrg  am__universal=false
39407366012aSmrg  case " $depcc " in #(
39417366012aSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
39427366012aSmrg     esac
39437366012aSmrg
39447a0395d0Smrg  for depmode in $am_compiler_list; do
39457a0395d0Smrg    # Setup a source with many dependencies, because some compilers
39467a0395d0Smrg    # like to wrap large dependency lists on column 80 (with \), and
39477a0395d0Smrg    # we should not choose a depcomp mode which is confused by this.
39487a0395d0Smrg    #
39497a0395d0Smrg    # We need to recreate these files for each test, as the compiler may
39507a0395d0Smrg    # overwrite some of them when testing with obscure command lines.
39517a0395d0Smrg    # This happens at least with the AIX C compiler.
39527a0395d0Smrg    : > sub/conftest.c
39537a0395d0Smrg    for i in 1 2 3 4 5 6; do
39547a0395d0Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
39558abc0ccfSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
39568abc0ccfSmrg      # Solaris 10 /bin/sh.
39578abc0ccfSmrg      echo '/* dummy */' > sub/conftst$i.h
39587a0395d0Smrg    done
39597a0395d0Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
39607a0395d0Smrg
39618abc0ccfSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
39622adc0320Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
39638abc0ccfSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
39648abc0ccfSmrg    # versions had trouble with output in subdirs.
39652adc0320Smrg    am__obj=sub/conftest.${OBJEXT-o}
39662adc0320Smrg    am__minus_obj="-o $am__obj"
39672adc0320Smrg    case $depmode in
39682adc0320Smrg    gcc)
39692adc0320Smrg      # This depmode causes a compiler race in universal mode.
39702adc0320Smrg      test "$am__universal" = false || continue
39712adc0320Smrg      ;;
39722adc0320Smrg    nosideeffect)
39738abc0ccfSmrg      # After this tag, mechanisms are not by side-effect, so they'll
39748abc0ccfSmrg      # only be used when explicitly requested.
39752adc0320Smrg      if test "x$enable_dependency_tracking" = xyes; then
39762adc0320Smrg	continue
39772adc0320Smrg      else
39782adc0320Smrg	break
39792adc0320Smrg      fi
39802adc0320Smrg      ;;
39818abc0ccfSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
39828abc0ccfSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
39832adc0320Smrg      # not run yet.  These depmodes are late enough in the game, and
39842adc0320Smrg      # so weak that their functioning should not be impacted.
39852adc0320Smrg      am__obj=conftest.${OBJEXT-o}
39862adc0320Smrg      am__minus_obj=
39872adc0320Smrg      ;;
39882adc0320Smrg    none) break ;;
39892adc0320Smrg    esac
39902adc0320Smrg    if depmode=$depmode \
39912adc0320Smrg       source=sub/conftest.c object=$am__obj \
39922adc0320Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
39932adc0320Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
39942adc0320Smrg         >/dev/null 2>conftest.err &&
39952adc0320Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
39962adc0320Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
39972adc0320Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
39982adc0320Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
39992adc0320Smrg      # icc doesn't choke on unknown options, it will just issue warnings
40002adc0320Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
40012adc0320Smrg      # that says an option was ignored or not supported.
40022adc0320Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
40032adc0320Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
40042adc0320Smrg      # The diagnosis changed in icc 8.0:
40052adc0320Smrg      #   icc: Command line remark: option '-MP' not supported
40062adc0320Smrg      if (grep 'ignoring option' conftest.err ||
40072adc0320Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
40082adc0320Smrg        am_cv_CC_dependencies_compiler_type=$depmode
40092adc0320Smrg        break
40102adc0320Smrg      fi
40112adc0320Smrg    fi
40122adc0320Smrg  done
40132adc0320Smrg
40142adc0320Smrg  cd ..
40152adc0320Smrg  rm -rf conftest.dir
40162adc0320Smrgelse
40172adc0320Smrg  am_cv_CC_dependencies_compiler_type=none
40182adc0320Smrgfi
40192adc0320Smrg
40202adc0320Smrgfi
40212adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
40222adc0320Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
40232adc0320SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
40242adc0320Smrg
40252adc0320Smrg if
40262adc0320Smrg  test "x$enable_dependency_tracking" != xno \
40272adc0320Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
40282adc0320Smrg  am__fastdepCC_TRUE=
40292adc0320Smrg  am__fastdepCC_FALSE='#'
40302adc0320Smrgelse
40312adc0320Smrg  am__fastdepCC_TRUE='#'
40322adc0320Smrg  am__fastdepCC_FALSE=
40332adc0320Smrgfi
40342adc0320Smrg
40352adc0320Smrg
40369a011757Smrg
40379a011757Smrgac_ext=c
40389a011757Smrgac_cpp='$CPP $CPPFLAGS'
40399a011757Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40409a011757Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40419a011757Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
40429a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
40439a011757Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
40449a011757Smrg# On Suns, sometimes $CPP names a directory.
40459a011757Smrgif test -n "$CPP" && test -d "$CPP"; then
40469a011757Smrg  CPP=
40479a011757Smrgfi
40489a011757Smrgif test -z "$CPP"; then
40499a011757Smrg  if ${ac_cv_prog_CPP+:} false; then :
40502adc0320Smrg  $as_echo_n "(cached) " >&6
40512adc0320Smrgelse
40529a011757Smrg      # Double quotes because CPP needs to be expanded
40539a011757Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
40549a011757Smrg    do
40559a011757Smrg      ac_preproc_ok=false
40569a011757Smrgfor ac_c_preproc_warn_flag in '' yes
40579a011757Smrgdo
40589a011757Smrg  # Use a header file that comes with gcc, so configuring glibc
40599a011757Smrg  # with a fresh cross-compiler works.
40609a011757Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40619a011757Smrg  # <limits.h> exists even on freestanding compilers.
40629a011757Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
40639a011757Smrg  # not just through cpp. "Syntax error" is here to catch this case.
40649a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40652adc0320Smrg/* end confdefs.h.  */
40669a011757Smrg#ifdef __STDC__
40679a011757Smrg# include <limits.h>
40682adc0320Smrg#else
40699a011757Smrg# include <assert.h>
40702adc0320Smrg#endif
40719a011757Smrg		     Syntax error
40729a011757Smrg_ACEOF
40739a011757Smrgif ac_fn_c_try_cpp "$LINENO"; then :
40742adc0320Smrg
40759a011757Smrgelse
40769a011757Smrg  # Broken: fails on valid input.
40779a011757Smrgcontinue
40789a011757Smrgfi
40799a011757Smrgrm -f conftest.err conftest.i conftest.$ac_ext
40802adc0320Smrg
40819a011757Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
40829a011757Smrg  # can be detected and how.
40839a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40849a011757Smrg/* end confdefs.h.  */
40859a011757Smrg#include <ac_nonexistent.h>
40869a011757Smrg_ACEOF
40879a011757Smrgif ac_fn_c_try_cpp "$LINENO"; then :
40889a011757Smrg  # Broken: success on invalid input.
40899a011757Smrgcontinue
40909a011757Smrgelse
40919a011757Smrg  # Passes both tests.
40929a011757Smrgac_preproc_ok=:
40939a011757Smrgbreak
40949a011757Smrgfi
40959a011757Smrgrm -f conftest.err conftest.i conftest.$ac_ext
40962adc0320Smrg
40979a011757Smrgdone
40989a011757Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
40999a011757Smrgrm -f conftest.i conftest.err conftest.$ac_ext
41009a011757Smrgif $ac_preproc_ok; then :
41019a011757Smrg  break
41029a011757Smrgfi
41032adc0320Smrg
41049a011757Smrg    done
41059a011757Smrg    ac_cv_prog_CPP=$CPP
41067a0395d0Smrg
41077a0395d0Smrgfi
41087a0395d0Smrg  CPP=$ac_cv_prog_CPP
41097a0395d0Smrgelse
41107a0395d0Smrg  ac_cv_prog_CPP=$CPP
41117a0395d0Smrgfi
41122adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
41137366012aSmrg$as_echo "$CPP" >&6; }
41147a0395d0Smrgac_preproc_ok=false
41157a0395d0Smrgfor ac_c_preproc_warn_flag in '' yes
41167a0395d0Smrgdo
41177a0395d0Smrg  # Use a header file that comes with gcc, so configuring glibc
41187a0395d0Smrg  # with a fresh cross-compiler works.
41197a0395d0Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41207a0395d0Smrg  # <limits.h> exists even on freestanding compilers.
41212adc0320Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
41222adc0320Smrg  # not just through cpp. "Syntax error" is here to catch this case.
41232adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41242adc0320Smrg/* end confdefs.h.  */
41252adc0320Smrg#ifdef __STDC__
41262adc0320Smrg# include <limits.h>
41272adc0320Smrg#else
41282adc0320Smrg# include <assert.h>
41292adc0320Smrg#endif
41302adc0320Smrg		     Syntax error
41312adc0320Smrg_ACEOF
41322adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then :
41337a0395d0Smrg
41342adc0320Smrgelse
41357a0395d0Smrg  # Broken: fails on valid input.
41367a0395d0Smrgcontinue
41377a0395d0Smrgfi
41382adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext
41397a0395d0Smrg
41407a0395d0Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
41417a0395d0Smrg  # can be detected and how.
41422adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41437a0395d0Smrg/* end confdefs.h.  */
41447a0395d0Smrg#include <ac_nonexistent.h>
41457a0395d0Smrg_ACEOF
41462adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then :
41477a0395d0Smrg  # Broken: success on invalid input.
41487a0395d0Smrgcontinue
41497a0395d0Smrgelse
41507a0395d0Smrg  # Passes both tests.
41517a0395d0Smrgac_preproc_ok=:
41527a0395d0Smrgbreak
41537a0395d0Smrgfi
41542adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext
41557a0395d0Smrg
41567a0395d0Smrgdone
41577a0395d0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
41582adc0320Smrgrm -f conftest.i conftest.err conftest.$ac_ext
41592adc0320Smrgif $ac_preproc_ok; then :
41602adc0320Smrg
41617a0395d0Smrgelse
41622adc0320Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41637366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
41642adc0320Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
41652adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
41667a0395d0Smrgfi
41677a0395d0Smrg
41687a0395d0Smrgac_ext=c
41697a0395d0Smrgac_cpp='$CPP $CPPFLAGS'
41707a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41717a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41727a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
41737a0395d0Smrg
41747a0395d0Smrg
41752adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
41767366012aSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
41772adc0320Smrgif ${ac_cv_path_GREP+:} false; then :
41787366012aSmrg  $as_echo_n "(cached) " >&6
41797a0395d0Smrgelse
41807366012aSmrg  if test -z "$GREP"; then
41817a0395d0Smrg  ac_path_GREP_found=false
41827366012aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
41837366012aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41847a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
41857a0395d0Smrgdo
41867a0395d0Smrg  IFS=$as_save_IFS
41877a0395d0Smrg  test -z "$as_dir" && as_dir=.
41882adc0320Smrg    for ac_prog in grep ggrep; do
41897366012aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
41907366012aSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
41918abc0ccfSmrg      as_fn_executable_p "$ac_path_GREP" || continue
41927366012aSmrg# Check for GNU ac_path_GREP and select it if it is found.
41937a0395d0Smrg  # Check for GNU $ac_path_GREP
41947a0395d0Smrgcase `"$ac_path_GREP" --version 2>&1` in
41957a0395d0Smrg*GNU*)
41967a0395d0Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
41977a0395d0Smrg*)
41987a0395d0Smrg  ac_count=0
41997366012aSmrg  $as_echo_n 0123456789 >"conftest.in"
42007a0395d0Smrg  while :
42017a0395d0Smrg  do
42027a0395d0Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
42037a0395d0Smrg    mv "conftest.tmp" "conftest.in"
42047a0395d0Smrg    cp "conftest.in" "conftest.nl"
42057366012aSmrg    $as_echo 'GREP' >> "conftest.nl"
42067a0395d0Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
42077a0395d0Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
42082adc0320Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
42097a0395d0Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
42107a0395d0Smrg      # Best one so far, save it but keep looking for a better one
42117a0395d0Smrg      ac_cv_path_GREP="$ac_path_GREP"
42127a0395d0Smrg      ac_path_GREP_max=$ac_count
42137a0395d0Smrg    fi
42147a0395d0Smrg    # 10*(2^10) chars as input seems more than enough
42157a0395d0Smrg    test $ac_count -gt 10 && break
42167a0395d0Smrg  done
42177a0395d0Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
42187a0395d0Smrgesac
42197a0395d0Smrg
42207366012aSmrg      $ac_path_GREP_found && break 3
42217366012aSmrg    done
42227a0395d0Smrg  done
42232adc0320Smrg  done
42247a0395d0SmrgIFS=$as_save_IFS
42257366012aSmrg  if test -z "$ac_cv_path_GREP"; then
42262adc0320Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
42277366012aSmrg  fi
42287a0395d0Smrgelse
42297a0395d0Smrg  ac_cv_path_GREP=$GREP
42307a0395d0Smrgfi
42317a0395d0Smrg
42327a0395d0Smrgfi
42332adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
42347366012aSmrg$as_echo "$ac_cv_path_GREP" >&6; }
42357a0395d0Smrg GREP="$ac_cv_path_GREP"
42367a0395d0Smrg
42377a0395d0Smrg
42382adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
42397366012aSmrg$as_echo_n "checking for egrep... " >&6; }
42402adc0320Smrgif ${ac_cv_path_EGREP+:} false; then :
42417366012aSmrg  $as_echo_n "(cached) " >&6
42427a0395d0Smrgelse
42437a0395d0Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
42447a0395d0Smrg   then ac_cv_path_EGREP="$GREP -E"
42457a0395d0Smrg   else
42467366012aSmrg     if test -z "$EGREP"; then
42477a0395d0Smrg  ac_path_EGREP_found=false
42487366012aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
42497366012aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42507a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
42517a0395d0Smrgdo
42527a0395d0Smrg  IFS=$as_save_IFS
42537a0395d0Smrg  test -z "$as_dir" && as_dir=.
42542adc0320Smrg    for ac_prog in egrep; do
42557366012aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
42567366012aSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
42578abc0ccfSmrg      as_fn_executable_p "$ac_path_EGREP" || continue
42587366012aSmrg# Check for GNU ac_path_EGREP and select it if it is found.
42597a0395d0Smrg  # Check for GNU $ac_path_EGREP
42607a0395d0Smrgcase `"$ac_path_EGREP" --version 2>&1` in
42617a0395d0Smrg*GNU*)
42627a0395d0Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
42637a0395d0Smrg*)
42647a0395d0Smrg  ac_count=0
42657366012aSmrg  $as_echo_n 0123456789 >"conftest.in"
42667a0395d0Smrg  while :
42677a0395d0Smrg  do
42687a0395d0Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
42697a0395d0Smrg    mv "conftest.tmp" "conftest.in"
42707a0395d0Smrg    cp "conftest.in" "conftest.nl"
42717366012aSmrg    $as_echo 'EGREP' >> "conftest.nl"
42727a0395d0Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
42737a0395d0Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
42742adc0320Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
42757a0395d0Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
42767a0395d0Smrg      # Best one so far, save it but keep looking for a better one
42777a0395d0Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
42787a0395d0Smrg      ac_path_EGREP_max=$ac_count
42797a0395d0Smrg    fi
42807a0395d0Smrg    # 10*(2^10) chars as input seems more than enough
42817a0395d0Smrg    test $ac_count -gt 10 && break
42827a0395d0Smrg  done
42837a0395d0Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
42847a0395d0Smrgesac
42857a0395d0Smrg
42867366012aSmrg      $ac_path_EGREP_found && break 3
42877366012aSmrg    done
42887a0395d0Smrg  done
42892adc0320Smrg  done
42907a0395d0SmrgIFS=$as_save_IFS
42917366012aSmrg  if test -z "$ac_cv_path_EGREP"; then
42922adc0320Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
42937366012aSmrg  fi
42947a0395d0Smrgelse
42957a0395d0Smrg  ac_cv_path_EGREP=$EGREP
42967a0395d0Smrgfi
42977a0395d0Smrg
42987a0395d0Smrg   fi
42997a0395d0Smrgfi
43002adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
43017366012aSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
43027a0395d0Smrg EGREP="$ac_cv_path_EGREP"
43037a0395d0Smrg
43047a0395d0Smrg
43059a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
43069a011757Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
43079a011757Smrgif ${ac_cv_header_stdc+:} false; then :
43089a011757Smrg  $as_echo_n "(cached) " >&6
43099a011757Smrgelse
43109a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43119a011757Smrg/* end confdefs.h.  */
43129a011757Smrg#include <stdlib.h>
43139a011757Smrg#include <stdarg.h>
43149a011757Smrg#include <string.h>
43159a011757Smrg#include <float.h>
43169a011757Smrg
43179a011757Smrgint
43189a011757Smrgmain ()
43199a011757Smrg{
43209a011757Smrg
43219a011757Smrg  ;
43229a011757Smrg  return 0;
43239a011757Smrg}
43249a011757Smrg_ACEOF
43259a011757Smrgif ac_fn_c_try_compile "$LINENO"; then :
43269a011757Smrg  ac_cv_header_stdc=yes
43279a011757Smrgelse
43289a011757Smrg  ac_cv_header_stdc=no
43299a011757Smrgfi
43309a011757Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43319a011757Smrg
43329a011757Smrgif test $ac_cv_header_stdc = yes; then
43339a011757Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
43349a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43359a011757Smrg/* end confdefs.h.  */
43369a011757Smrg#include <string.h>
43379a011757Smrg
43389a011757Smrg_ACEOF
43399a011757Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43409a011757Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
43419a011757Smrg
43429a011757Smrgelse
43439a011757Smrg  ac_cv_header_stdc=no
43449a011757Smrgfi
43459a011757Smrgrm -f conftest*
43469a011757Smrg
43479a011757Smrgfi
43489a011757Smrg
43499a011757Smrgif test $ac_cv_header_stdc = yes; then
43509a011757Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
43519a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43529a011757Smrg/* end confdefs.h.  */
43539a011757Smrg#include <stdlib.h>
43549a011757Smrg
43559a011757Smrg_ACEOF
43569a011757Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43579a011757Smrg  $EGREP "free" >/dev/null 2>&1; then :
43589a011757Smrg
43599a011757Smrgelse
43609a011757Smrg  ac_cv_header_stdc=no
43619a011757Smrgfi
43629a011757Smrgrm -f conftest*
43639a011757Smrg
43649a011757Smrgfi
43659a011757Smrg
43669a011757Smrgif test $ac_cv_header_stdc = yes; then
43679a011757Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
43689a011757Smrg  if test "$cross_compiling" = yes; then :
43699a011757Smrg  :
43709a011757Smrgelse
43719a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43729a011757Smrg/* end confdefs.h.  */
43739a011757Smrg#include <ctype.h>
43749a011757Smrg#include <stdlib.h>
43759a011757Smrg#if ((' ' & 0x0FF) == 0x020)
43769a011757Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
43779a011757Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
43789a011757Smrg#else
43799a011757Smrg# define ISLOWER(c) \
43809a011757Smrg		   (('a' <= (c) && (c) <= 'i') \
43819a011757Smrg		     || ('j' <= (c) && (c) <= 'r') \
43829a011757Smrg		     || ('s' <= (c) && (c) <= 'z'))
43839a011757Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
43849a011757Smrg#endif
43859a011757Smrg
43869a011757Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
43879a011757Smrgint
43889a011757Smrgmain ()
43899a011757Smrg{
43909a011757Smrg  int i;
43919a011757Smrg  for (i = 0; i < 256; i++)
43929a011757Smrg    if (XOR (islower (i), ISLOWER (i))
43939a011757Smrg	|| toupper (i) != TOUPPER (i))
43949a011757Smrg      return 2;
43959a011757Smrg  return 0;
43969a011757Smrg}
43979a011757Smrg_ACEOF
43989a011757Smrgif ac_fn_c_try_run "$LINENO"; then :
43999a011757Smrg
44009a011757Smrgelse
44019a011757Smrg  ac_cv_header_stdc=no
44029a011757Smrgfi
44039a011757Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44049a011757Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
44059a011757Smrgfi
44069a011757Smrg
44079a011757Smrgfi
44089a011757Smrgfi
44099a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
44109a011757Smrg$as_echo "$ac_cv_header_stdc" >&6; }
44119a011757Smrgif test $ac_cv_header_stdc = yes; then
44129a011757Smrg
44139a011757Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
44149a011757Smrg
44159a011757Smrgfi
44169a011757Smrg
44179a011757Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
44189a011757Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
44199a011757Smrg		  inttypes.h stdint.h unistd.h
44209a011757Smrgdo :
44219a011757Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44229a011757Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
44239a011757Smrg"
44249a011757Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44259a011757Smrg  cat >>confdefs.h <<_ACEOF
44269a011757Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44279a011757Smrg_ACEOF
44289a011757Smrg
44299a011757Smrgfi
44309a011757Smrg
44319a011757Smrgdone
44329a011757Smrg
44339a011757Smrg
44349a011757Smrg
44359a011757Smrg  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
44369a011757Smrgif test "x$ac_cv_header_minix_config_h" = xyes; then :
44379a011757Smrg  MINIX=yes
44389a011757Smrgelse
44399a011757Smrg  MINIX=
44409a011757Smrgfi
44419a011757Smrg
44429a011757Smrg
44439a011757Smrg  if test "$MINIX" = yes; then
44449a011757Smrg
44459a011757Smrg$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
44469a011757Smrg
44479a011757Smrg
44489a011757Smrg$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
44499a011757Smrg
44509a011757Smrg
44519a011757Smrg$as_echo "#define _MINIX 1" >>confdefs.h
44529a011757Smrg
44539a011757Smrg  fi
44549a011757Smrg
44559a011757Smrg
44569a011757Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
44579a011757Smrg$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
44589a011757Smrgif ${ac_cv_safe_to_define___extensions__+:} false; then :
44599a011757Smrg  $as_echo_n "(cached) " >&6
44609a011757Smrgelse
44619a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44629a011757Smrg/* end confdefs.h.  */
44639a011757Smrg
44649a011757Smrg#         define __EXTENSIONS__ 1
44659a011757Smrg          $ac_includes_default
44669a011757Smrgint
44679a011757Smrgmain ()
44689a011757Smrg{
44699a011757Smrg
44709a011757Smrg  ;
44719a011757Smrg  return 0;
44729a011757Smrg}
44739a011757Smrg_ACEOF
44749a011757Smrgif ac_fn_c_try_compile "$LINENO"; then :
44759a011757Smrg  ac_cv_safe_to_define___extensions__=yes
44769a011757Smrgelse
44779a011757Smrg  ac_cv_safe_to_define___extensions__=no
44789a011757Smrgfi
44799a011757Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44809a011757Smrgfi
44819a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
44829a011757Smrg$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
44839a011757Smrg  test $ac_cv_safe_to_define___extensions__ = yes &&
44849a011757Smrg    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
44859a011757Smrg
44869a011757Smrg  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
44879a011757Smrg
44889a011757Smrg  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
44899a011757Smrg
44909a011757Smrg  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
44919a011757Smrg
44929a011757Smrg  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
44939a011757Smrg
44949a011757Smrg
44959a011757Smrg
44969a011757Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
44979a011757Smrg
44989a011757Smrg
44999a011757Smrg
45009a011757Smrg
45019a011757Smrg
45029a011757Smrg
45039a011757Smrg
45049a011757Smrg
45059a011757Smrg
45069a011757Smrg
45079a011757Smrg
45089a011757Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
45099a011757Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
45109a011757Smrgif ${ac_cv_prog_cc_c99+:} false; then :
45119a011757Smrg  $as_echo_n "(cached) " >&6
45129a011757Smrgelse
45139a011757Smrg  ac_cv_prog_cc_c99=no
45149a011757Smrgac_save_CC=$CC
45159a011757Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
45169a011757Smrg/* end confdefs.h.  */
45179a011757Smrg#include <stdarg.h>
45189a011757Smrg#include <stdbool.h>
45199a011757Smrg#include <stdlib.h>
45209a011757Smrg#include <wchar.h>
45219a011757Smrg#include <stdio.h>
45229a011757Smrg
45239a011757Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
45249a011757Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
45259a011757Smrg#define showlist(...) puts (#__VA_ARGS__)
45269a011757Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
45279a011757Smrgstatic void
45289a011757Smrgtest_varargs_macros (void)
45299a011757Smrg{
45309a011757Smrg  int x = 1234;
45319a011757Smrg  int y = 5678;
45329a011757Smrg  debug ("Flag");
45339a011757Smrg  debug ("X = %d\n", x);
45349a011757Smrg  showlist (The first, second, and third items.);
45359a011757Smrg  report (x>y, "x is %d but y is %d", x, y);
45369a011757Smrg}
45379a011757Smrg
45389a011757Smrg// Check long long types.
45399a011757Smrg#define BIG64 18446744073709551615ull
45409a011757Smrg#define BIG32 4294967295ul
45419a011757Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
45429a011757Smrg#if !BIG_OK
45439a011757Smrg  your preprocessor is broken;
45449a011757Smrg#endif
45459a011757Smrg#if BIG_OK
45469a011757Smrg#else
45479a011757Smrg  your preprocessor is broken;
45489a011757Smrg#endif
45499a011757Smrgstatic long long int bignum = -9223372036854775807LL;
45509a011757Smrgstatic unsigned long long int ubignum = BIG64;
45519a011757Smrg
45529a011757Smrgstruct incomplete_array
45539a011757Smrg{
45549a011757Smrg  int datasize;
45559a011757Smrg  double data[];
45569a011757Smrg};
45579a011757Smrg
45589a011757Smrgstruct named_init {
45599a011757Smrg  int number;
45609a011757Smrg  const wchar_t *name;
45619a011757Smrg  double average;
45629a011757Smrg};
45639a011757Smrg
45649a011757Smrgtypedef const char *ccp;
45659a011757Smrg
45669a011757Smrgstatic inline int
45679a011757Smrgtest_restrict (ccp restrict text)
45689a011757Smrg{
45699a011757Smrg  // See if C++-style comments work.
45709a011757Smrg  // Iterate through items via the restricted pointer.
45719a011757Smrg  // Also check for declarations in for loops.
45729a011757Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
45739a011757Smrg    continue;
45749a011757Smrg  return 0;
45759a011757Smrg}
45767a0395d0Smrg
45779a011757Smrg// Check varargs and va_copy.
45789a011757Smrgstatic void
45799a011757Smrgtest_varargs (const char *format, ...)
45807a0395d0Smrg{
45819a011757Smrg  va_list args;
45829a011757Smrg  va_start (args, format);
45839a011757Smrg  va_list args_copy;
45849a011757Smrg  va_copy (args_copy, args);
45857a0395d0Smrg
45869a011757Smrg  const char *str;
45879a011757Smrg  int number;
45889a011757Smrg  float fnumber;
45899a011757Smrg
45909a011757Smrg  while (*format)
45919a011757Smrg    {
45929a011757Smrg      switch (*format++)
45939a011757Smrg	{
45949a011757Smrg	case 's': // string
45959a011757Smrg	  str = va_arg (args_copy, const char *);
45969a011757Smrg	  break;
45979a011757Smrg	case 'd': // int
45989a011757Smrg	  number = va_arg (args_copy, int);
45999a011757Smrg	  break;
46009a011757Smrg	case 'f': // float
46019a011757Smrg	  fnumber = va_arg (args_copy, double);
46029a011757Smrg	  break;
46039a011757Smrg	default:
46049a011757Smrg	  break;
46059a011757Smrg	}
46069a011757Smrg    }
46079a011757Smrg  va_end (args_copy);
46089a011757Smrg  va_end (args);
46097a0395d0Smrg}
46107a0395d0Smrg
46119a011757Smrgint
46129a011757Smrgmain ()
46139a011757Smrg{
46147a0395d0Smrg
46159a011757Smrg  // Check bool.
46169a011757Smrg  _Bool success = false;
46172adc0320Smrg
46189a011757Smrg  // Check restrict.
46199a011757Smrg  if (test_restrict ("String literal") == 0)
46209a011757Smrg    success = true;
46219a011757Smrg  char *restrict newvar = "Another string";
46227a0395d0Smrg
46239a011757Smrg  // Check varargs.
46249a011757Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
46259a011757Smrg  test_varargs_macros ();
46267a0395d0Smrg
46279a011757Smrg  // Check flexible array members.
46289a011757Smrg  struct incomplete_array *ia =
46299a011757Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
46309a011757Smrg  ia->datasize = 10;
46319a011757Smrg  for (int i = 0; i < ia->datasize; ++i)
46329a011757Smrg    ia->data[i] = i * 1.234;
46337a0395d0Smrg
46349a011757Smrg  // Check named initializers.
46359a011757Smrg  struct named_init ni = {
46369a011757Smrg    .number = 34,
46379a011757Smrg    .name = L"Test wide string",
46389a011757Smrg    .average = 543.34343,
46399a011757Smrg  };
46402adc0320Smrg
46419a011757Smrg  ni.number = 58;
46427a0395d0Smrg
46439a011757Smrg  int dynamic_array[ni.number];
46449a011757Smrg  dynamic_array[ni.number - 1] = 543;
46457a0395d0Smrg
46469a011757Smrg  // work around unused variable warnings
46479a011757Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
46489a011757Smrg	  || dynamic_array[ni.number - 1] != 543);
46497a0395d0Smrg
46509a011757Smrg  ;
46517a0395d0Smrg  return 0;
46527a0395d0Smrg}
46537a0395d0Smrg_ACEOF
46549a011757Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
46559a011757Smrgdo
46569a011757Smrg  CC="$ac_save_CC $ac_arg"
46579a011757Smrg  if ac_fn_c_try_compile "$LINENO"; then :
46589a011757Smrg  ac_cv_prog_cc_c99=$ac_arg
46597a0395d0Smrgfi
46609a011757Smrgrm -f core conftest.err conftest.$ac_objext
46619a011757Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
46629a011757Smrgdone
46639a011757Smrgrm -f conftest.$ac_ext
46649a011757SmrgCC=$ac_save_CC
46657366012aSmrg
46667366012aSmrgfi
46679a011757Smrg# AC_CACHE_VAL
46689a011757Smrgcase "x$ac_cv_prog_cc_c99" in
46699a011757Smrg  x)
46709a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
46719a011757Smrg$as_echo "none needed" >&6; } ;;
46729a011757Smrg  xno)
46739a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
46749a011757Smrg$as_echo "unsupported" >&6; } ;;
46759a011757Smrg  *)
46769a011757Smrg    CC="$CC $ac_cv_prog_cc_c99"
46779a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
46789a011757Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
46799a011757Smrgesac
46809a011757Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
46817366012aSmrg
46827366012aSmrgfi
46837366012aSmrg
46847366012aSmrg
46857366012aSmrg
46867366012aSmrg
46872852888eSmrg
46882852888eSmrg
468996402570Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
469096402570Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
469196402570Smrg  CLANGCC="yes"
469296402570Smrgelse
469396402570Smrg  CLANGCC="no"
469496402570Smrgfi
469596402570Smrg
469696402570Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
469796402570Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
469896402570Smrg  INTELCC="yes"
469996402570Smrgelse
470096402570Smrg  INTELCC="no"
470196402570Smrgfi
470296402570Smrg
470396402570Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
470496402570Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
470596402570Smrg  SUNCC="yes"
470696402570Smrgelse
470796402570Smrg  SUNCC="no"
470896402570Smrgfi
470996402570Smrg
471096402570Smrg
47112852888eSmrg
47122852888eSmrg
47138abc0ccfSmrg
47148abc0ccfSmrg
47158abc0ccfSmrg
47168abc0ccfSmrg
47178abc0ccfSmrg
47182adc0320Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
47192adc0320Smrg	if test -n "$ac_tool_prefix"; then
47202adc0320Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
47212adc0320Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
47222adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47232adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; }
47242adc0320Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
47252adc0320Smrg  $as_echo_n "(cached) " >&6
47262adc0320Smrgelse
47272adc0320Smrg  case $PKG_CONFIG in
47282adc0320Smrg  [\\/]* | ?:[\\/]*)
47292adc0320Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
47302adc0320Smrg  ;;
47312adc0320Smrg  *)
47322adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47332adc0320Smrgfor as_dir in $PATH
47347366012aSmrgdo
47352adc0320Smrg  IFS=$as_save_IFS
47362adc0320Smrg  test -z "$as_dir" && as_dir=.
47372adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
47388abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47392adc0320Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
47402adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47412adc0320Smrg    break 2
47422adc0320Smrg  fi
47432adc0320Smrgdone
47442adc0320Smrg  done
47452adc0320SmrgIFS=$as_save_IFS
47462adc0320Smrg
47472adc0320Smrg  ;;
47487366012aSmrgesac
47492adc0320Smrgfi
47502adc0320SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
47512adc0320Smrgif test -n "$PKG_CONFIG"; then
47522adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
47532adc0320Smrg$as_echo "$PKG_CONFIG" >&6; }
47547366012aSmrgelse
47552adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47562adc0320Smrg$as_echo "no" >&6; }
47577366012aSmrgfi
47587366012aSmrg
47597366012aSmrg
47607366012aSmrgfi
47612adc0320Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
47622adc0320Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
47632adc0320Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
47642adc0320Smrgset dummy pkg-config; ac_word=$2
47652adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47662adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; }
47672adc0320Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
47682adc0320Smrg  $as_echo_n "(cached) " >&6
47692adc0320Smrgelse
47702adc0320Smrg  case $ac_pt_PKG_CONFIG in
47712adc0320Smrg  [\\/]* | ?:[\\/]*)
47722adc0320Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
47732adc0320Smrg  ;;
47747366012aSmrg  *)
47752adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47762adc0320Smrgfor as_dir in $PATH
47772adc0320Smrgdo
47782adc0320Smrg  IFS=$as_save_IFS
47792adc0320Smrg  test -z "$as_dir" && as_dir=.
47802adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
47818abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47822adc0320Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
47832adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47842adc0320Smrg    break 2
47852adc0320Smrg  fi
47862adc0320Smrgdone
47872adc0320Smrg  done
47882adc0320SmrgIFS=$as_save_IFS
47892adc0320Smrg
47902adc0320Smrg  ;;
47917366012aSmrgesac
47922adc0320Smrgfi
47932adc0320Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
47942adc0320Smrgif test -n "$ac_pt_PKG_CONFIG"; then
47952adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
47962adc0320Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
47972adc0320Smrgelse
47982adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47992adc0320Smrg$as_echo "no" >&6; }
48002adc0320Smrgfi
48017366012aSmrg
48022adc0320Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
48032adc0320Smrg    PKG_CONFIG=""
48042adc0320Smrg  else
48052adc0320Smrg    case $cross_compiling:$ac_tool_warned in
48062adc0320Smrgyes:)
48072adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
48082adc0320Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48092adc0320Smrgac_tool_warned=yes ;;
48102adc0320Smrgesac
48112adc0320Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
48122adc0320Smrg  fi
48132adc0320Smrgelse
48142adc0320Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
48152adc0320Smrgfi
48167366012aSmrg
48172adc0320Smrgfi
48182adc0320Smrgif test -n "$PKG_CONFIG"; then
48192adc0320Smrg	_pkg_min_version=0.9.0
48202adc0320Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
48212adc0320Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
48222adc0320Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
48232adc0320Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48242adc0320Smrg$as_echo "yes" >&6; }
48252adc0320Smrg	else
48262adc0320Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48272adc0320Smrg$as_echo "no" >&6; }
48282adc0320Smrg		PKG_CONFIG=""
48292adc0320Smrg	fi
48302adc0320Smrgfi
48317366012aSmrg# Make sure we can run config.sub.
48327366012aSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
48332adc0320Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
48347366012aSmrg
48352adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
48367366012aSmrg$as_echo_n "checking build system type... " >&6; }
48372adc0320Smrgif ${ac_cv_build+:} false; then :
48387366012aSmrg  $as_echo_n "(cached) " >&6
48397366012aSmrgelse
48407366012aSmrg  ac_build_alias=$build_alias
48417366012aSmrgtest "x$ac_build_alias" = x &&
48427366012aSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
48437366012aSmrgtest "x$ac_build_alias" = x &&
48442adc0320Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
48457366012aSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
48462adc0320Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
48477366012aSmrg
48487366012aSmrgfi
48492adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
48507366012aSmrg$as_echo "$ac_cv_build" >&6; }
48517366012aSmrgcase $ac_cv_build in
48527366012aSmrg*-*-*) ;;
48532adc0320Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
48547366012aSmrgesac
48557366012aSmrgbuild=$ac_cv_build
48567366012aSmrgac_save_IFS=$IFS; IFS='-'
48577366012aSmrgset x $ac_cv_build
48587366012aSmrgshift
48597366012aSmrgbuild_cpu=$1
48607366012aSmrgbuild_vendor=$2
48617366012aSmrgshift; shift
48627366012aSmrg# Remember, the first character of IFS is used to create $*,
48637366012aSmrg# except with old shells:
48647366012aSmrgbuild_os=$*
48657366012aSmrgIFS=$ac_save_IFS
48667366012aSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
48677366012aSmrg
48687366012aSmrg
48692adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
48707366012aSmrg$as_echo_n "checking host system type... " >&6; }
48712adc0320Smrgif ${ac_cv_host+:} false; then :
48727366012aSmrg  $as_echo_n "(cached) " >&6
48737366012aSmrgelse
48747366012aSmrg  if test "x$host_alias" = x; then
48757366012aSmrg  ac_cv_host=$ac_cv_build
48767366012aSmrgelse
48777366012aSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
48782adc0320Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
48797366012aSmrgfi
48807366012aSmrg
48817366012aSmrgfi
48822adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
48837366012aSmrg$as_echo "$ac_cv_host" >&6; }
48847366012aSmrgcase $ac_cv_host in
48857366012aSmrg*-*-*) ;;
48862adc0320Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
48877366012aSmrgesac
48887366012aSmrghost=$ac_cv_host
48897366012aSmrgac_save_IFS=$IFS; IFS='-'
48907366012aSmrgset x $ac_cv_host
48917366012aSmrgshift
48927366012aSmrghost_cpu=$1
48937366012aSmrghost_vendor=$2
48947366012aSmrgshift; shift
48957366012aSmrg# Remember, the first character of IFS is used to create $*,
48967366012aSmrg# except with old shells:
48977366012aSmrghost_os=$*
48987366012aSmrgIFS=$ac_save_IFS
48997366012aSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
49007366012aSmrg
49017366012aSmrg
49022adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
49032adc0320Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
49042adc0320Smrgif ${ac_cv_path_SED+:} false; then :
49057366012aSmrg  $as_echo_n "(cached) " >&6
49067366012aSmrgelse
49072adc0320Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
49082adc0320Smrg     for ac_i in 1 2 3 4 5 6 7; do
49092adc0320Smrg       ac_script="$ac_script$as_nl$ac_script"
49102adc0320Smrg     done
49112adc0320Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
49122adc0320Smrg     { ac_script=; unset ac_script;}
49132adc0320Smrg     if test -z "$SED"; then
49142adc0320Smrg  ac_path_SED_found=false
49152adc0320Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
49162adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49172adc0320Smrgfor as_dir in $PATH
49182adc0320Smrgdo
49192adc0320Smrg  IFS=$as_save_IFS
49202adc0320Smrg  test -z "$as_dir" && as_dir=.
49212adc0320Smrg    for ac_prog in sed gsed; do
49222adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
49232adc0320Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
49248abc0ccfSmrg      as_fn_executable_p "$ac_path_SED" || continue
49252adc0320Smrg# Check for GNU ac_path_SED and select it if it is found.
49262adc0320Smrg  # Check for GNU $ac_path_SED
49272adc0320Smrgcase `"$ac_path_SED" --version 2>&1` in
49282adc0320Smrg*GNU*)
49292adc0320Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
49302adc0320Smrg*)
49312adc0320Smrg  ac_count=0
49322adc0320Smrg  $as_echo_n 0123456789 >"conftest.in"
49332adc0320Smrg  while :
49342adc0320Smrg  do
49352adc0320Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
49362adc0320Smrg    mv "conftest.tmp" "conftest.in"
49372adc0320Smrg    cp "conftest.in" "conftest.nl"
49382adc0320Smrg    $as_echo '' >> "conftest.nl"
49392adc0320Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
49402adc0320Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
49412adc0320Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
49422adc0320Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
49432adc0320Smrg      # Best one so far, save it but keep looking for a better one
49442adc0320Smrg      ac_cv_path_SED="$ac_path_SED"
49452adc0320Smrg      ac_path_SED_max=$ac_count
49462adc0320Smrg    fi
49472adc0320Smrg    # 10*(2^10) chars as input seems more than enough
49482adc0320Smrg    test $ac_count -gt 10 && break
49492adc0320Smrg  done
49502adc0320Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
49517366012aSmrgesac
49527366012aSmrg
49532adc0320Smrg      $ac_path_SED_found && break 3
49542adc0320Smrg    done
49552adc0320Smrg  done
49562adc0320Smrg  done
49572adc0320SmrgIFS=$as_save_IFS
49582adc0320Smrg  if test -z "$ac_cv_path_SED"; then
49592adc0320Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
49602adc0320Smrg  fi
49617366012aSmrgelse
49622adc0320Smrg  ac_cv_path_SED=$SED
49637366012aSmrgfi
49647366012aSmrg
49657366012aSmrgfi
49662adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
49672adc0320Smrg$as_echo "$ac_cv_path_SED" >&6; }
49682adc0320Smrg SED="$ac_cv_path_SED"
49692adc0320Smrg  rm -f conftest.sed
49707366012aSmrg
49717366012aSmrg
49727366012aSmrg
49737366012aSmrg
49747366012aSmrg
49757366012aSmrg
497696402570Smrg# Check whether --enable-selective-werror was given.
497796402570Smrgif test "${enable_selective_werror+set}" = set; then :
497896402570Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
497996402570Smrgelse
498096402570Smrg  SELECTIVE_WERROR=yes
49812adc0320Smrgfi
49822adc0320Smrg
49832adc0320Smrg
49842adc0320Smrg
49857366012aSmrg
49862adc0320Smrg
498796402570Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
498896402570Smrgif test "x$SUNCC" = "xyes"; then
498996402570Smrg    BASE_CFLAGS="-v"
49907366012aSmrgelse
499196402570Smrg    BASE_CFLAGS=""
49927366012aSmrgfi
49937366012aSmrg
499496402570Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
49957366012aSmrg
49967366012aSmrg
49977366012aSmrg
49987366012aSmrg
49997366012aSmrg
50007366012aSmrg
50017366012aSmrg
50027366012aSmrg
50037366012aSmrg
50047366012aSmrg
50052adc0320Smrg
50062adc0320Smrg
50072adc0320Smrg
500896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
50092adc0320Smrg
501096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
501196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
501296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
501396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
501496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
501596402570Smrg  $as_echo_n "(cached) " >&6
501696402570Smrgelse
501796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
501896402570Smrg/* end confdefs.h.  */
501996402570Smrgint i;
502096402570Smrg_ACEOF
502196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
502296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
502396402570Smrgelse
502496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
502596402570Smrgfi
502696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
502796402570Smrgfi
502896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
502996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
503096402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
503196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
503296402570Smrgfi
50337366012aSmrg
503496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
503596402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
503696402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
503796402570Smrg	fi
503896402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
503996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
504096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
504196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
504296402570Smrg  $as_echo_n "(cached) " >&6
504396402570Smrgelse
504496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
504596402570Smrg/* end confdefs.h.  */
504696402570Smrgint i;
504796402570Smrg_ACEOF
504896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
504996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
505096402570Smrgelse
505196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
505296402570Smrgfi
505396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
505496402570Smrgfi
505596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
505696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
505796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
505896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
505996402570Smrgfi
50607366012aSmrg
506196402570Smrgfound="no"
50627366012aSmrg
506396402570Smrg	if test $found = "no" ; then
506440c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
506596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
506696402570Smrg		fi
50677366012aSmrg
506840c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
506996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
507096402570Smrg		fi
50717366012aSmrg
507296402570Smrg		CFLAGS="$CFLAGS -Wall"
50737366012aSmrg
507440c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
507540c5344fSmrg$as_echo_n "checking if $CC supports -Wall... " >&6; }
507696402570Smrg		cacheid=xorg_cv_cc_flag__Wall
507796402570Smrg		if eval \${$cacheid+:} false; then :
507896402570Smrg  $as_echo_n "(cached) " >&6
507996402570Smrgelse
508096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
508196402570Smrg/* end confdefs.h.  */
508296402570Smrgint i;
508396402570Smrgint
508496402570Smrgmain ()
508596402570Smrg{
50867366012aSmrg
508796402570Smrg  ;
508896402570Smrg  return 0;
508996402570Smrg}
509096402570Smrg_ACEOF
509196402570Smrgif ac_fn_c_try_link "$LINENO"; then :
509296402570Smrg  eval $cacheid=yes
509396402570Smrgelse
509496402570Smrg  eval $cacheid=no
50957366012aSmrgfi
509696402570Smrgrm -f core conftest.err conftest.$ac_objext \
509796402570Smrg    conftest$ac_exeext conftest.$ac_ext
50987366012aSmrgfi
50997366012aSmrg
51007366012aSmrg
510196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
51027366012aSmrg
510396402570Smrg		eval supported=\$$cacheid
510496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
510596402570Smrg$as_echo "$supported" >&6; }
510696402570Smrg		if test "$supported" = "yes" ; then
510796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
510896402570Smrg			found="yes"
510996402570Smrg		fi
511096402570Smrg	fi
51117366012aSmrg
51127366012aSmrg
51137366012aSmrg
51147366012aSmrg
51157366012aSmrg
51167a0395d0Smrg
51177a0395d0Smrg
51187a0395d0Smrg
51197a0395d0Smrg
51207a0395d0Smrg
51217a0395d0Smrg
51227a0395d0Smrg
51237a0395d0Smrg
51247a0395d0Smrg
51257a0395d0Smrg
512696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
51272adc0320Smrg
512896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
512996402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
513096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
513196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
513296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
513396402570Smrg  $as_echo_n "(cached) " >&6
513496402570Smrgelse
513596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
513696402570Smrg/* end confdefs.h.  */
513796402570Smrgint i;
513896402570Smrg_ACEOF
513996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
514096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
514196402570Smrgelse
514296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
514396402570Smrgfi
514496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
514596402570Smrgfi
514696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
514796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
514896402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
514996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
515096402570Smrgfi
515196402570Smrg
515296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
515396402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
515496402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
515596402570Smrg	fi
515696402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
515796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
515896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
515996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
516096402570Smrg  $as_echo_n "(cached) " >&6
516196402570Smrgelse
516296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
516396402570Smrg/* end confdefs.h.  */
516496402570Smrgint i;
516596402570Smrg_ACEOF
516696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
516796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
516896402570Smrgelse
516996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
517096402570Smrgfi
517196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
517296402570Smrgfi
517396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
517496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
517596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
517696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
517796402570Smrgfi
517896402570Smrg
517996402570Smrgfound="no"
518096402570Smrg
518196402570Smrg	if test $found = "no" ; then
518240c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
518396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
518496402570Smrg		fi
518596402570Smrg
518640c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
518796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
518896402570Smrg		fi
518996402570Smrg
519096402570Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
519196402570Smrg
519240c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
519340c5344fSmrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
519496402570Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
519596402570Smrg		if eval \${$cacheid+:} false; then :
519696402570Smrg  $as_echo_n "(cached) " >&6
519796402570Smrgelse
519896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
519996402570Smrg/* end confdefs.h.  */
520096402570Smrgint i;
520196402570Smrgint
520296402570Smrgmain ()
520396402570Smrg{
520496402570Smrg
520596402570Smrg  ;
520696402570Smrg  return 0;
520796402570Smrg}
520896402570Smrg_ACEOF
520996402570Smrgif ac_fn_c_try_link "$LINENO"; then :
521096402570Smrg  eval $cacheid=yes
521196402570Smrgelse
521296402570Smrg  eval $cacheid=no
521396402570Smrgfi
521496402570Smrgrm -f core conftest.err conftest.$ac_objext \
521596402570Smrg    conftest$ac_exeext conftest.$ac_ext
521696402570Smrgfi
521796402570Smrg
521896402570Smrg
521996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
522096402570Smrg
522196402570Smrg		eval supported=\$$cacheid
522296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
522396402570Smrg$as_echo "$supported" >&6; }
522496402570Smrg		if test "$supported" = "yes" ; then
522596402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
522696402570Smrg			found="yes"
522796402570Smrg		fi
522896402570Smrg	fi
522996402570Smrg
523096402570Smrg
523196402570Smrg
523296402570Smrg
523396402570Smrg
523496402570Smrg
523596402570Smrg
523696402570Smrg
523796402570Smrg
523896402570Smrg
523996402570Smrg
524096402570Smrg
524196402570Smrg
524296402570Smrg
524396402570Smrg
524496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
524596402570Smrg
524696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
524796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
524896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
524996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
525096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
525196402570Smrg  $as_echo_n "(cached) " >&6
525296402570Smrgelse
525396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
525496402570Smrg/* end confdefs.h.  */
525596402570Smrgint i;
525696402570Smrg_ACEOF
525796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
525896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
525996402570Smrgelse
526096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
526196402570Smrgfi
526296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
526396402570Smrgfi
526496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
526596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
526696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
526796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
526896402570Smrgfi
526996402570Smrg
527096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
527196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
527296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
527396402570Smrg	fi
527496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
527596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
527696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
527796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
527896402570Smrg  $as_echo_n "(cached) " >&6
527996402570Smrgelse
528096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
528196402570Smrg/* end confdefs.h.  */
528296402570Smrgint i;
528396402570Smrg_ACEOF
528496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
528596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
528696402570Smrgelse
528796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
528896402570Smrgfi
528996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
529096402570Smrgfi
529196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
529296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
529396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
529496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
529596402570Smrgfi
529696402570Smrg
529796402570Smrgfound="no"
529896402570Smrg
529996402570Smrg	if test $found = "no" ; then
530040c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
530196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
530296402570Smrg		fi
530396402570Smrg
530440c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
530596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
530696402570Smrg		fi
530796402570Smrg
530896402570Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
530996402570Smrg
531040c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
531140c5344fSmrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
531296402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
531396402570Smrg		if eval \${$cacheid+:} false; then :
531496402570Smrg  $as_echo_n "(cached) " >&6
531596402570Smrgelse
531696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
531796402570Smrg/* end confdefs.h.  */
531896402570Smrgint i;
531996402570Smrgint
532096402570Smrgmain ()
532196402570Smrg{
532296402570Smrg
532396402570Smrg  ;
532496402570Smrg  return 0;
532596402570Smrg}
532696402570Smrg_ACEOF
532796402570Smrgif ac_fn_c_try_link "$LINENO"; then :
532896402570Smrg  eval $cacheid=yes
532996402570Smrgelse
533096402570Smrg  eval $cacheid=no
533196402570Smrgfi
533296402570Smrgrm -f core conftest.err conftest.$ac_objext \
533396402570Smrg    conftest$ac_exeext conftest.$ac_ext
533496402570Smrgfi
533596402570Smrg
533696402570Smrg
533796402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
533896402570Smrg
533996402570Smrg		eval supported=\$$cacheid
534096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
534196402570Smrg$as_echo "$supported" >&6; }
534296402570Smrg		if test "$supported" = "yes" ; then
534396402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
534496402570Smrg			found="yes"
534596402570Smrg		fi
534696402570Smrg	fi
534796402570Smrg
534896402570Smrg
534996402570Smrg
535096402570Smrg
535196402570Smrg
535296402570Smrg
535396402570Smrg
535496402570Smrg
535596402570Smrg
535696402570Smrg
535796402570Smrg
535896402570Smrg
535996402570Smrg
536096402570Smrg
536196402570Smrg
536296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
536396402570Smrg
536496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
536596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
536696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
536796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
536896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
536996402570Smrg  $as_echo_n "(cached) " >&6
537096402570Smrgelse
537196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
537296402570Smrg/* end confdefs.h.  */
537396402570Smrgint i;
537496402570Smrg_ACEOF
537596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
537696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
537796402570Smrgelse
537896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
537996402570Smrgfi
538096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
538196402570Smrgfi
538296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
538396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
538496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
538596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
538696402570Smrgfi
538796402570Smrg
538896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
538996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
539096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
539196402570Smrg	fi
539296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
539396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
539496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
539596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
539696402570Smrg  $as_echo_n "(cached) " >&6
539796402570Smrgelse
539896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
539996402570Smrg/* end confdefs.h.  */
540096402570Smrgint i;
540196402570Smrg_ACEOF
540296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
540396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
540496402570Smrgelse
540596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
540696402570Smrgfi
540796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
540896402570Smrgfi
540996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
541096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
541196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
541296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
541396402570Smrgfi
541496402570Smrg
541596402570Smrgfound="no"
541696402570Smrg
541796402570Smrg	if test $found = "no" ; then
541840c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
541996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
542096402570Smrg		fi
542196402570Smrg
542240c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
542396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
542496402570Smrg		fi
542596402570Smrg
542696402570Smrg		CFLAGS="$CFLAGS -Wformat=2"
542796402570Smrg
542840c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
542940c5344fSmrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
54308abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Wformat_2
543196402570Smrg		if eval \${$cacheid+:} false; then :
543296402570Smrg  $as_echo_n "(cached) " >&6
543396402570Smrgelse
543496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
543596402570Smrg/* end confdefs.h.  */
543696402570Smrgint i;
543796402570Smrgint
543896402570Smrgmain ()
543996402570Smrg{
544096402570Smrg
544196402570Smrg  ;
544296402570Smrg  return 0;
544396402570Smrg}
544496402570Smrg_ACEOF
544596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
544696402570Smrg  eval $cacheid=yes
544796402570Smrgelse
544896402570Smrg  eval $cacheid=no
544996402570Smrgfi
545096402570Smrgrm -f core conftest.err conftest.$ac_objext \
545196402570Smrg    conftest$ac_exeext conftest.$ac_ext
545296402570Smrgfi
545396402570Smrg
545496402570Smrg
545596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
545696402570Smrg
545796402570Smrg		eval supported=\$$cacheid
545896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
545996402570Smrg$as_echo "$supported" >&6; }
546096402570Smrg		if test "$supported" = "yes" ; then
546196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
546296402570Smrg			found="yes"
546396402570Smrg		fi
546496402570Smrg	fi
546596402570Smrg
546696402570Smrg	if test $found = "no" ; then
546740c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
546896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
546996402570Smrg		fi
547096402570Smrg
547140c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
547296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
547396402570Smrg		fi
547496402570Smrg
547596402570Smrg		CFLAGS="$CFLAGS -Wformat"
547696402570Smrg
547740c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
547840c5344fSmrg$as_echo_n "checking if $CC supports -Wformat... " >&6; }
547996402570Smrg		cacheid=xorg_cv_cc_flag__Wformat
548096402570Smrg		if eval \${$cacheid+:} false; then :
548196402570Smrg  $as_echo_n "(cached) " >&6
548296402570Smrgelse
548396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
548496402570Smrg/* end confdefs.h.  */
548596402570Smrgint i;
548696402570Smrgint
548796402570Smrgmain ()
548896402570Smrg{
548996402570Smrg
549096402570Smrg  ;
549196402570Smrg  return 0;
549296402570Smrg}
549396402570Smrg_ACEOF
549496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
549596402570Smrg  eval $cacheid=yes
549696402570Smrgelse
549796402570Smrg  eval $cacheid=no
549896402570Smrgfi
549996402570Smrgrm -f core conftest.err conftest.$ac_objext \
550096402570Smrg    conftest$ac_exeext conftest.$ac_ext
550196402570Smrgfi
550296402570Smrg
550396402570Smrg
550496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
550596402570Smrg
550696402570Smrg		eval supported=\$$cacheid
550796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
550896402570Smrg$as_echo "$supported" >&6; }
550996402570Smrg		if test "$supported" = "yes" ; then
551096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
551196402570Smrg			found="yes"
551296402570Smrg		fi
551396402570Smrg	fi
551496402570Smrg
551596402570Smrg
551696402570Smrg
551796402570Smrg
551896402570Smrg
551996402570Smrg
552096402570Smrg
552196402570Smrg
552296402570Smrg
552396402570Smrg
552496402570Smrg
552596402570Smrg
552696402570Smrg
552796402570Smrg
552896402570Smrg
552996402570Smrg
553096402570Smrg
553196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
553296402570Smrg
553396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
553496402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
553596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
553696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
553796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
553896402570Smrg  $as_echo_n "(cached) " >&6
553996402570Smrgelse
554096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
554196402570Smrg/* end confdefs.h.  */
554296402570Smrgint i;
554396402570Smrg_ACEOF
554496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
554596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
554696402570Smrgelse
554796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
554896402570Smrgfi
554996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
555096402570Smrgfi
555196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
555296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
555396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
555496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
555596402570Smrgfi
555696402570Smrg
555796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
555896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
555996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
556096402570Smrg	fi
556196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
556296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
556396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
556496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
556596402570Smrg  $as_echo_n "(cached) " >&6
556696402570Smrgelse
556796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
556896402570Smrg/* end confdefs.h.  */
556996402570Smrgint i;
557096402570Smrg_ACEOF
557196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
557296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
557396402570Smrgelse
557496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
557596402570Smrgfi
557696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
557796402570Smrgfi
557896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
557996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
558096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
558196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
558296402570Smrgfi
558396402570Smrg
558496402570Smrgfound="no"
558596402570Smrg
558696402570Smrg	if test $found = "no" ; then
558740c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
558896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
558996402570Smrg		fi
559096402570Smrg
559140c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
559296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
559396402570Smrg		fi
559496402570Smrg
559596402570Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
559696402570Smrg
559740c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
559840c5344fSmrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
559996402570Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
560096402570Smrg		if eval \${$cacheid+:} false; then :
560196402570Smrg  $as_echo_n "(cached) " >&6
560296402570Smrgelse
560396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
560496402570Smrg/* end confdefs.h.  */
560596402570Smrgint i;
560696402570Smrgint
560796402570Smrgmain ()
560896402570Smrg{
560996402570Smrg
561096402570Smrg  ;
561196402570Smrg  return 0;
561296402570Smrg}
561396402570Smrg_ACEOF
561496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
561596402570Smrg  eval $cacheid=yes
561696402570Smrgelse
561796402570Smrg  eval $cacheid=no
561896402570Smrgfi
561996402570Smrgrm -f core conftest.err conftest.$ac_objext \
562096402570Smrg    conftest$ac_exeext conftest.$ac_ext
562196402570Smrgfi
562296402570Smrg
562396402570Smrg
562496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
562596402570Smrg
562696402570Smrg		eval supported=\$$cacheid
562796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
562896402570Smrg$as_echo "$supported" >&6; }
562996402570Smrg		if test "$supported" = "yes" ; then
563096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
563196402570Smrg			found="yes"
563296402570Smrg		fi
563396402570Smrg	fi
563496402570Smrg
563596402570Smrg
563696402570Smrg
563796402570Smrg
563896402570Smrg
563996402570Smrg
564096402570Smrg
564196402570Smrg
564296402570Smrg
564396402570Smrg
564496402570Smrg
564596402570Smrg
564696402570Smrg
564796402570Smrg
564896402570Smrg
564996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
565096402570Smrg
565196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
565296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
565396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
565496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
565596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
565696402570Smrg  $as_echo_n "(cached) " >&6
565796402570Smrgelse
565896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
565996402570Smrg/* end confdefs.h.  */
566096402570Smrgint i;
566196402570Smrg_ACEOF
566296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
566396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
566496402570Smrgelse
566596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
566696402570Smrgfi
566796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
566896402570Smrgfi
566996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
567096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
567196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
567296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
567396402570Smrgfi
567496402570Smrg
567596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
567696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
567796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
567896402570Smrg	fi
567996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
568096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
568196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
568296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
568396402570Smrg  $as_echo_n "(cached) " >&6
568496402570Smrgelse
568596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
568696402570Smrg/* end confdefs.h.  */
568796402570Smrgint i;
568896402570Smrg_ACEOF
568996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
569096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
569196402570Smrgelse
569296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
569396402570Smrgfi
569496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
569596402570Smrgfi
569696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
569796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
569896402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
569996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
570096402570Smrgfi
570196402570Smrg
570296402570Smrgfound="no"
570396402570Smrg
570496402570Smrg	if test $found = "no" ; then
570540c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
570696402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
570796402570Smrg		fi
570896402570Smrg
570940c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
571096402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
571196402570Smrg		fi
571296402570Smrg
571396402570Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
571496402570Smrg
571540c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
571640c5344fSmrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
571796402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
571896402570Smrg		if eval \${$cacheid+:} false; then :
571996402570Smrg  $as_echo_n "(cached) " >&6
572096402570Smrgelse
572196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
572296402570Smrg/* end confdefs.h.  */
572396402570Smrgint i;
572496402570Smrgint
572596402570Smrgmain ()
572696402570Smrg{
572796402570Smrg
572896402570Smrg  ;
572996402570Smrg  return 0;
573096402570Smrg}
573196402570Smrg_ACEOF
573296402570Smrgif ac_fn_c_try_link "$LINENO"; then :
573396402570Smrg  eval $cacheid=yes
573496402570Smrgelse
573596402570Smrg  eval $cacheid=no
573696402570Smrgfi
573796402570Smrgrm -f core conftest.err conftest.$ac_objext \
573896402570Smrg    conftest$ac_exeext conftest.$ac_ext
573996402570Smrgfi
574096402570Smrg
574196402570Smrg
574296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
574396402570Smrg
574496402570Smrg		eval supported=\$$cacheid
574596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
574696402570Smrg$as_echo "$supported" >&6; }
574796402570Smrg		if test "$supported" = "yes" ; then
574896402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
574996402570Smrg			found="yes"
575096402570Smrg		fi
575196402570Smrg	fi
575296402570Smrg
575396402570Smrg
575496402570Smrg
575596402570Smrg
575696402570Smrg
575796402570Smrg
575896402570Smrg
575996402570Smrg
576096402570Smrg
576196402570Smrg
576296402570Smrg
576396402570Smrg
576496402570Smrg
576596402570Smrg
576696402570Smrg
576796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
576896402570Smrg
576996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
577096402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
577196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
577296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
577396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
577496402570Smrg  $as_echo_n "(cached) " >&6
577596402570Smrgelse
577696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
577796402570Smrg/* end confdefs.h.  */
577896402570Smrgint i;
577996402570Smrg_ACEOF
578096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
578196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
578296402570Smrgelse
578396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
578496402570Smrgfi
578596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
578696402570Smrgfi
578796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
578896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
578996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
579096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
579196402570Smrgfi
579296402570Smrg
579396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
579496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
579596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
579696402570Smrg	fi
579796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
579896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
579996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
580096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
580196402570Smrg  $as_echo_n "(cached) " >&6
580296402570Smrgelse
580396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
580496402570Smrg/* end confdefs.h.  */
580596402570Smrgint i;
580696402570Smrg_ACEOF
580796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
580896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
580996402570Smrgelse
581096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
581196402570Smrgfi
581296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
581396402570Smrgfi
581496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
581596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
581696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
581796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
581896402570Smrgfi
581996402570Smrg
582096402570Smrgfound="no"
582196402570Smrg
582296402570Smrg	if test $found = "no" ; then
582340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
582496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
582596402570Smrg		fi
582696402570Smrg
582740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
582896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
582996402570Smrg		fi
583096402570Smrg
583196402570Smrg		CFLAGS="$CFLAGS -Wnested-externs"
583296402570Smrg
583340c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
583440c5344fSmrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
583596402570Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
583696402570Smrg		if eval \${$cacheid+:} false; then :
583796402570Smrg  $as_echo_n "(cached) " >&6
583896402570Smrgelse
583996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
584096402570Smrg/* end confdefs.h.  */
584196402570Smrgint i;
584296402570Smrgint
584396402570Smrgmain ()
584496402570Smrg{
584596402570Smrg
584696402570Smrg  ;
584796402570Smrg  return 0;
584896402570Smrg}
584996402570Smrg_ACEOF
585096402570Smrgif ac_fn_c_try_link "$LINENO"; then :
585196402570Smrg  eval $cacheid=yes
585296402570Smrgelse
585396402570Smrg  eval $cacheid=no
585496402570Smrgfi
585596402570Smrgrm -f core conftest.err conftest.$ac_objext \
585696402570Smrg    conftest$ac_exeext conftest.$ac_ext
585796402570Smrgfi
585896402570Smrg
585996402570Smrg
586096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
586196402570Smrg
586296402570Smrg		eval supported=\$$cacheid
586396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
586496402570Smrg$as_echo "$supported" >&6; }
586596402570Smrg		if test "$supported" = "yes" ; then
586696402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
586796402570Smrg			found="yes"
586896402570Smrg		fi
586996402570Smrg	fi
587096402570Smrg
587196402570Smrg
587296402570Smrg
587396402570Smrg
587496402570Smrg
587596402570Smrg
587696402570Smrg
587796402570Smrg
587896402570Smrg
587996402570Smrg
588096402570Smrg
588196402570Smrg
588296402570Smrg
588396402570Smrg
588496402570Smrg
588596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
588696402570Smrg
588796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
588896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
588996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
589096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
589196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
589296402570Smrg  $as_echo_n "(cached) " >&6
589396402570Smrgelse
589496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
589596402570Smrg/* end confdefs.h.  */
589696402570Smrgint i;
589796402570Smrg_ACEOF
589896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
589996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
590096402570Smrgelse
590196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
590296402570Smrgfi
590396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
590496402570Smrgfi
590596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
590696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
590796402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
590896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
590996402570Smrgfi
591096402570Smrg
591196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
591296402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
591396402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
591496402570Smrg	fi
591596402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
591696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
591796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
591896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
591996402570Smrg  $as_echo_n "(cached) " >&6
592096402570Smrgelse
592196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
592296402570Smrg/* end confdefs.h.  */
592396402570Smrgint i;
592496402570Smrg_ACEOF
592596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
592696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
592796402570Smrgelse
592896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
592996402570Smrgfi
593096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
593196402570Smrgfi
593296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
593396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
593496402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
593596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
593696402570Smrgfi
593796402570Smrg
593896402570Smrgfound="no"
593996402570Smrg
594096402570Smrg	if test $found = "no" ; then
594140c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
594296402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
594396402570Smrg		fi
594496402570Smrg
594540c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
594696402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
594796402570Smrg		fi
594896402570Smrg
594996402570Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
595096402570Smrg
595140c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
595240c5344fSmrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
595396402570Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
595496402570Smrg		if eval \${$cacheid+:} false; then :
595596402570Smrg  $as_echo_n "(cached) " >&6
595696402570Smrgelse
595796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
595896402570Smrg/* end confdefs.h.  */
595996402570Smrgint i;
596096402570Smrgint
596196402570Smrgmain ()
596296402570Smrg{
596396402570Smrg
596496402570Smrg  ;
596596402570Smrg  return 0;
596696402570Smrg}
596796402570Smrg_ACEOF
596896402570Smrgif ac_fn_c_try_link "$LINENO"; then :
596996402570Smrg  eval $cacheid=yes
597096402570Smrgelse
597196402570Smrg  eval $cacheid=no
597296402570Smrgfi
597396402570Smrgrm -f core conftest.err conftest.$ac_objext \
597496402570Smrg    conftest$ac_exeext conftest.$ac_ext
597596402570Smrgfi
597696402570Smrg
597796402570Smrg
597896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
597996402570Smrg
598096402570Smrg		eval supported=\$$cacheid
598196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
598296402570Smrg$as_echo "$supported" >&6; }
598396402570Smrg		if test "$supported" = "yes" ; then
598496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
598596402570Smrg			found="yes"
598696402570Smrg		fi
598796402570Smrg	fi
598896402570Smrg
598996402570Smrg
599096402570Smrg
599196402570Smrg
599296402570Smrg
599396402570Smrg
599496402570Smrg
599596402570Smrg
599696402570Smrg
599796402570Smrg
599896402570Smrg
599996402570Smrg
600096402570Smrg
600196402570Smrg
600296402570Smrg
600396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
600496402570Smrg
600596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
600696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
600796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
600896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
600996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
601096402570Smrg  $as_echo_n "(cached) " >&6
601196402570Smrgelse
601296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
601396402570Smrg/* end confdefs.h.  */
601496402570Smrgint i;
601596402570Smrg_ACEOF
601696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
601796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
601896402570Smrgelse
601996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
602096402570Smrgfi
602196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
602296402570Smrgfi
602396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
602496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
602596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
602696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
602796402570Smrgfi
602896402570Smrg
602996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
603096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
603196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
603296402570Smrg	fi
603396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
603496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
603596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
603696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
603796402570Smrg  $as_echo_n "(cached) " >&6
603896402570Smrgelse
603996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
604096402570Smrg/* end confdefs.h.  */
604196402570Smrgint i;
604296402570Smrg_ACEOF
604396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
604496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
604596402570Smrgelse
604696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
604796402570Smrgfi
604896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
604996402570Smrgfi
605096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
605196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
605296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
605396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
605496402570Smrgfi
605596402570Smrg
605696402570Smrgfound="no"
605796402570Smrg
605896402570Smrg	if test $found = "no" ; then
605940c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
606096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
606196402570Smrg		fi
606296402570Smrg
606340c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
606496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
606596402570Smrg		fi
606696402570Smrg
606796402570Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
606896402570Smrg
606940c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
607040c5344fSmrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
607196402570Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
607296402570Smrg		if eval \${$cacheid+:} false; then :
607396402570Smrg  $as_echo_n "(cached) " >&6
607496402570Smrgelse
607596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
607696402570Smrg/* end confdefs.h.  */
607796402570Smrgint i;
607896402570Smrgint
607996402570Smrgmain ()
608096402570Smrg{
608196402570Smrg
608296402570Smrg  ;
608396402570Smrg  return 0;
608496402570Smrg}
608596402570Smrg_ACEOF
608696402570Smrgif ac_fn_c_try_link "$LINENO"; then :
608796402570Smrg  eval $cacheid=yes
608896402570Smrgelse
608996402570Smrg  eval $cacheid=no
609096402570Smrgfi
609196402570Smrgrm -f core conftest.err conftest.$ac_objext \
609296402570Smrg    conftest$ac_exeext conftest.$ac_ext
609396402570Smrgfi
609496402570Smrg
609596402570Smrg
609696402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
609796402570Smrg
609896402570Smrg		eval supported=\$$cacheid
609996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
610096402570Smrg$as_echo "$supported" >&6; }
610196402570Smrg		if test "$supported" = "yes" ; then
610296402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
610396402570Smrg			found="yes"
610496402570Smrg		fi
610596402570Smrg	fi
610696402570Smrg
610740c5344fSmrg	if test $found = "no" ; then
610840c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
610940c5344fSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
611040c5344fSmrg		fi
611140c5344fSmrg
611240c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
611340c5344fSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
611440c5344fSmrg		fi
611540c5344fSmrg
611640c5344fSmrg		CFLAGS="$CFLAGS -fd"
611740c5344fSmrg
611840c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
611940c5344fSmrg$as_echo_n "checking if $CC supports -fd... " >&6; }
612040c5344fSmrg		cacheid=xorg_cv_cc_flag__fd
612140c5344fSmrg		if eval \${$cacheid+:} false; then :
612240c5344fSmrg  $as_echo_n "(cached) " >&6
612340c5344fSmrgelse
612440c5344fSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
612540c5344fSmrg/* end confdefs.h.  */
612640c5344fSmrgint i;
612740c5344fSmrgint
612840c5344fSmrgmain ()
612940c5344fSmrg{
613040c5344fSmrg
613140c5344fSmrg  ;
613240c5344fSmrg  return 0;
613340c5344fSmrg}
613440c5344fSmrg_ACEOF
613540c5344fSmrgif ac_fn_c_try_link "$LINENO"; then :
613640c5344fSmrg  eval $cacheid=yes
613740c5344fSmrgelse
613840c5344fSmrg  eval $cacheid=no
613940c5344fSmrgfi
614040c5344fSmrgrm -f core conftest.err conftest.$ac_objext \
614140c5344fSmrg    conftest$ac_exeext conftest.$ac_ext
614240c5344fSmrgfi
614340c5344fSmrg
614440c5344fSmrg
614540c5344fSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
614640c5344fSmrg
614740c5344fSmrg		eval supported=\$$cacheid
614840c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
614940c5344fSmrg$as_echo "$supported" >&6; }
615040c5344fSmrg		if test "$supported" = "yes" ; then
615140c5344fSmrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
615240c5344fSmrg			found="yes"
615340c5344fSmrg		fi
615440c5344fSmrg	fi
615540c5344fSmrg
615696402570Smrg
615796402570Smrg
615896402570Smrg
615996402570Smrg
616096402570Smrg
616196402570Smrg
616296402570Smrg
616396402570Smrg
616496402570Smrg
616596402570Smrg
616696402570Smrg
616796402570Smrg
616896402570Smrg
616996402570Smrg
617096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
617196402570Smrg
617296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
617396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
617496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
617596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
617696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
617796402570Smrg  $as_echo_n "(cached) " >&6
617896402570Smrgelse
617996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
618096402570Smrg/* end confdefs.h.  */
618196402570Smrgint i;
618296402570Smrg_ACEOF
618396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
618496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
618596402570Smrgelse
618696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
618796402570Smrgfi
618896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
618996402570Smrgfi
619096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
619196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
619296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
619396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
619496402570Smrgfi
619596402570Smrg
619696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
619796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
619896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
619996402570Smrg	fi
620096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
620196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
620296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
620396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
620496402570Smrg  $as_echo_n "(cached) " >&6
620596402570Smrgelse
620696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
620796402570Smrg/* end confdefs.h.  */
620896402570Smrgint i;
620996402570Smrg_ACEOF
621096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
621196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
621296402570Smrgelse
621396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
621496402570Smrgfi
621596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
621696402570Smrgfi
621796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
621896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
621996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
622096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
622196402570Smrgfi
622296402570Smrg
622396402570Smrgfound="no"
622496402570Smrg
622596402570Smrg	if test $found = "no" ; then
622640c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
622796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
622896402570Smrg		fi
622996402570Smrg
623040c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
623196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
623296402570Smrg		fi
623396402570Smrg
623496402570Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
623596402570Smrg
623640c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
623740c5344fSmrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
623896402570Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
623996402570Smrg		if eval \${$cacheid+:} false; then :
624096402570Smrg  $as_echo_n "(cached) " >&6
624196402570Smrgelse
624296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
624396402570Smrg/* end confdefs.h.  */
624496402570Smrgint i;
624596402570Smrgint
624696402570Smrgmain ()
624796402570Smrg{
624896402570Smrg
624996402570Smrg  ;
625096402570Smrg  return 0;
625196402570Smrg}
625296402570Smrg_ACEOF
625396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
625496402570Smrg  eval $cacheid=yes
625596402570Smrgelse
625696402570Smrg  eval $cacheid=no
625796402570Smrgfi
625896402570Smrgrm -f core conftest.err conftest.$ac_objext \
625996402570Smrg    conftest$ac_exeext conftest.$ac_ext
626096402570Smrgfi
626196402570Smrg
626296402570Smrg
626396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
626496402570Smrg
626596402570Smrg		eval supported=\$$cacheid
626696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
626796402570Smrg$as_echo "$supported" >&6; }
626896402570Smrg		if test "$supported" = "yes" ; then
626996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
627096402570Smrg			found="yes"
627196402570Smrg		fi
627296402570Smrg	fi
627396402570Smrg
627496402570Smrg
627596402570Smrg
627696402570Smrg
627796402570Smrg
627896402570Smrg# This chunk adds additional warnings that could catch undesired effects.
627996402570Smrg
628096402570Smrg
628196402570Smrg
628296402570Smrg
628396402570Smrg
628496402570Smrg
628596402570Smrg
628696402570Smrg
628796402570Smrg
628896402570Smrg
628996402570Smrg
629096402570Smrg
629196402570Smrg
629296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
629396402570Smrg
629496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
629596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
629696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
629796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
629896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
629996402570Smrg  $as_echo_n "(cached) " >&6
630096402570Smrgelse
630196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
630296402570Smrg/* end confdefs.h.  */
630396402570Smrgint i;
630496402570Smrg_ACEOF
630596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
630696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
630796402570Smrgelse
630896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
630996402570Smrgfi
631096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
631196402570Smrgfi
631296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
631396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
631496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
631596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
631696402570Smrgfi
631796402570Smrg
631896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
631996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
632096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
632196402570Smrg	fi
632296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
632396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
632496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
632596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
632696402570Smrg  $as_echo_n "(cached) " >&6
632796402570Smrgelse
632896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632996402570Smrg/* end confdefs.h.  */
633096402570Smrgint i;
633196402570Smrg_ACEOF
633296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
633396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
633496402570Smrgelse
633596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
633696402570Smrgfi
633796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
633896402570Smrgfi
633996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
634096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
634196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
634296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
634396402570Smrgfi
634496402570Smrg
634596402570Smrgfound="no"
634696402570Smrg
634796402570Smrg	if test $found = "no" ; then
634840c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
634996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
635096402570Smrg		fi
635196402570Smrg
635240c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
635396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
635496402570Smrg		fi
635596402570Smrg
635696402570Smrg		CFLAGS="$CFLAGS -Wunused"
635796402570Smrg
635840c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
635940c5344fSmrg$as_echo_n "checking if $CC supports -Wunused... " >&6; }
636096402570Smrg		cacheid=xorg_cv_cc_flag__Wunused
636196402570Smrg		if eval \${$cacheid+:} false; then :
636296402570Smrg  $as_echo_n "(cached) " >&6
636396402570Smrgelse
636496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636596402570Smrg/* end confdefs.h.  */
636696402570Smrgint i;
636796402570Smrgint
636896402570Smrgmain ()
636996402570Smrg{
637096402570Smrg
637196402570Smrg  ;
637296402570Smrg  return 0;
637396402570Smrg}
637496402570Smrg_ACEOF
637596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
637696402570Smrg  eval $cacheid=yes
637796402570Smrgelse
637896402570Smrg  eval $cacheid=no
637996402570Smrgfi
638096402570Smrgrm -f core conftest.err conftest.$ac_objext \
638196402570Smrg    conftest$ac_exeext conftest.$ac_ext
638296402570Smrgfi
638396402570Smrg
638496402570Smrg
638596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
638696402570Smrg
638796402570Smrg		eval supported=\$$cacheid
638896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
638996402570Smrg$as_echo "$supported" >&6; }
639096402570Smrg		if test "$supported" = "yes" ; then
639196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
639296402570Smrg			found="yes"
639396402570Smrg		fi
639496402570Smrg	fi
639596402570Smrg
639696402570Smrg
639796402570Smrg
639896402570Smrg
639996402570Smrg
640096402570Smrg
640196402570Smrg
640296402570Smrg
640396402570Smrg
640496402570Smrg
640596402570Smrg
640696402570Smrg
640796402570Smrg
640896402570Smrg
640996402570Smrg
641096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
641196402570Smrg
641296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
641396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
641496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
641596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
641696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
641796402570Smrg  $as_echo_n "(cached) " >&6
641896402570Smrgelse
641996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
642096402570Smrg/* end confdefs.h.  */
642196402570Smrgint i;
642296402570Smrg_ACEOF
642396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
642496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
642596402570Smrgelse
642696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
642796402570Smrgfi
642896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
642996402570Smrgfi
643096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
643196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
643296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
643396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
643496402570Smrgfi
643596402570Smrg
643696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
643796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
643896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
643996402570Smrg	fi
644096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
644196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
644296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
644396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
644496402570Smrg  $as_echo_n "(cached) " >&6
644596402570Smrgelse
644696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
644796402570Smrg/* end confdefs.h.  */
644896402570Smrgint i;
644996402570Smrg_ACEOF
645096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
645196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
645296402570Smrgelse
645396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
645496402570Smrgfi
645596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
645696402570Smrgfi
645796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
645896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
645996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
646096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
646196402570Smrgfi
646296402570Smrg
646396402570Smrgfound="no"
646496402570Smrg
646596402570Smrg	if test $found = "no" ; then
646640c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
646796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
646896402570Smrg		fi
646996402570Smrg
647040c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
647196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
647296402570Smrg		fi
647396402570Smrg
647496402570Smrg		CFLAGS="$CFLAGS -Wuninitialized"
647596402570Smrg
647640c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
647740c5344fSmrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
647896402570Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
647996402570Smrg		if eval \${$cacheid+:} false; then :
648096402570Smrg  $as_echo_n "(cached) " >&6
648196402570Smrgelse
648296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
648396402570Smrg/* end confdefs.h.  */
648496402570Smrgint i;
648596402570Smrgint
648696402570Smrgmain ()
648796402570Smrg{
648896402570Smrg
648996402570Smrg  ;
649096402570Smrg  return 0;
649196402570Smrg}
649296402570Smrg_ACEOF
649396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
649496402570Smrg  eval $cacheid=yes
649596402570Smrgelse
649696402570Smrg  eval $cacheid=no
649796402570Smrgfi
649896402570Smrgrm -f core conftest.err conftest.$ac_objext \
649996402570Smrg    conftest$ac_exeext conftest.$ac_ext
650096402570Smrgfi
650196402570Smrg
650296402570Smrg
650396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
650496402570Smrg
650596402570Smrg		eval supported=\$$cacheid
650696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
650796402570Smrg$as_echo "$supported" >&6; }
650896402570Smrg		if test "$supported" = "yes" ; then
650996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
651096402570Smrg			found="yes"
651196402570Smrg		fi
651296402570Smrg	fi
651396402570Smrg
651496402570Smrg
651596402570Smrg
651696402570Smrg
651796402570Smrg
651896402570Smrg
651996402570Smrg
652096402570Smrg
652196402570Smrg
652296402570Smrg
652396402570Smrg
652496402570Smrg
652596402570Smrg
652696402570Smrg
652796402570Smrg
652896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
652996402570Smrg
653096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
653196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
653296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
653396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
653496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
653596402570Smrg  $as_echo_n "(cached) " >&6
653696402570Smrgelse
653796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
653896402570Smrg/* end confdefs.h.  */
653996402570Smrgint i;
654096402570Smrg_ACEOF
654196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
654296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
654396402570Smrgelse
654496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
654596402570Smrgfi
654696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
654796402570Smrgfi
654896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
654996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
655096402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
655196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
655296402570Smrgfi
655396402570Smrg
655496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
655596402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
655696402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
655796402570Smrg	fi
655896402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
655996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
656096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
656196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
656296402570Smrg  $as_echo_n "(cached) " >&6
656396402570Smrgelse
656496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
656596402570Smrg/* end confdefs.h.  */
656696402570Smrgint i;
656796402570Smrg_ACEOF
656896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
656996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
657096402570Smrgelse
657196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
657296402570Smrgfi
657396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
657496402570Smrgfi
657596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
657696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
657796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
657896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
657996402570Smrgfi
658096402570Smrg
658196402570Smrgfound="no"
658296402570Smrg
658396402570Smrg	if test $found = "no" ; then
658440c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
658596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
658696402570Smrg		fi
658796402570Smrg
658840c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
658996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
659096402570Smrg		fi
659196402570Smrg
659296402570Smrg		CFLAGS="$CFLAGS -Wshadow"
659396402570Smrg
659440c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
659540c5344fSmrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
659696402570Smrg		cacheid=xorg_cv_cc_flag__Wshadow
659796402570Smrg		if eval \${$cacheid+:} false; then :
659896402570Smrg  $as_echo_n "(cached) " >&6
659996402570Smrgelse
660096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
660196402570Smrg/* end confdefs.h.  */
660296402570Smrgint i;
660396402570Smrgint
660496402570Smrgmain ()
660596402570Smrg{
660696402570Smrg
660796402570Smrg  ;
660896402570Smrg  return 0;
660996402570Smrg}
661096402570Smrg_ACEOF
661196402570Smrgif ac_fn_c_try_link "$LINENO"; then :
661296402570Smrg  eval $cacheid=yes
661396402570Smrgelse
661496402570Smrg  eval $cacheid=no
661596402570Smrgfi
661696402570Smrgrm -f core conftest.err conftest.$ac_objext \
661796402570Smrg    conftest$ac_exeext conftest.$ac_ext
661896402570Smrgfi
661996402570Smrg
662096402570Smrg
662196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
662296402570Smrg
662396402570Smrg		eval supported=\$$cacheid
662496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
662596402570Smrg$as_echo "$supported" >&6; }
662696402570Smrg		if test "$supported" = "yes" ; then
662796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
662896402570Smrg			found="yes"
662996402570Smrg		fi
663096402570Smrg	fi
663196402570Smrg
663296402570Smrg
663396402570Smrg
663496402570Smrg
663596402570Smrg
663696402570Smrg
663796402570Smrg
663896402570Smrg
663996402570Smrg
664096402570Smrg
664196402570Smrg
664296402570Smrg
664396402570Smrg
664496402570Smrg
664596402570Smrg
664696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
664796402570Smrg
664896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
664996402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
665096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
665196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
665296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
665396402570Smrg  $as_echo_n "(cached) " >&6
665496402570Smrgelse
665596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
665696402570Smrg/* end confdefs.h.  */
665796402570Smrgint i;
665896402570Smrg_ACEOF
665996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
666096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
666196402570Smrgelse
666296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
666396402570Smrgfi
666496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
666596402570Smrgfi
666696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
666796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
666896402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
666996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
667096402570Smrgfi
667196402570Smrg
667296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
667396402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
667496402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
667596402570Smrg	fi
667696402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
667796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
667896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
667996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
668096402570Smrg  $as_echo_n "(cached) " >&6
668196402570Smrgelse
668296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
668396402570Smrg/* end confdefs.h.  */
668496402570Smrgint i;
668596402570Smrg_ACEOF
668696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
668796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
668896402570Smrgelse
668996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
669096402570Smrgfi
669196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
669296402570Smrgfi
669396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
669496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
669596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
669696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
669796402570Smrgfi
669896402570Smrg
669996402570Smrgfound="no"
670096402570Smrg
670196402570Smrg	if test $found = "no" ; then
670240c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
670396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
670496402570Smrg		fi
670596402570Smrg
670640c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
670796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
670896402570Smrg		fi
670996402570Smrg
671040c5344fSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
671196402570Smrg
671240c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
671340c5344fSmrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
671440c5344fSmrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
671596402570Smrg		if eval \${$cacheid+:} false; then :
671696402570Smrg  $as_echo_n "(cached) " >&6
671796402570Smrgelse
671896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
671996402570Smrg/* end confdefs.h.  */
672096402570Smrgint i;
672196402570Smrgint
672296402570Smrgmain ()
672396402570Smrg{
672496402570Smrg
672596402570Smrg  ;
672696402570Smrg  return 0;
672796402570Smrg}
672896402570Smrg_ACEOF
672996402570Smrgif ac_fn_c_try_link "$LINENO"; then :
673096402570Smrg  eval $cacheid=yes
673196402570Smrgelse
673296402570Smrg  eval $cacheid=no
673396402570Smrgfi
673496402570Smrgrm -f core conftest.err conftest.$ac_objext \
673596402570Smrg    conftest$ac_exeext conftest.$ac_ext
673696402570Smrgfi
673796402570Smrg
673896402570Smrg
673996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
674096402570Smrg
674196402570Smrg		eval supported=\$$cacheid
674296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
674396402570Smrg$as_echo "$supported" >&6; }
674496402570Smrg		if test "$supported" = "yes" ; then
674540c5344fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
674696402570Smrg			found="yes"
674796402570Smrg		fi
674896402570Smrg	fi
674996402570Smrg
675096402570Smrg
675196402570Smrg
675296402570Smrg
675396402570Smrg
675496402570Smrg
675596402570Smrg
675696402570Smrg
675796402570Smrg
675896402570Smrg
675996402570Smrg
676096402570Smrg
676196402570Smrg
676296402570Smrg
676396402570Smrg
676496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
676596402570Smrg
676696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
676796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
676896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
676996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
677096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
677196402570Smrg  $as_echo_n "(cached) " >&6
677296402570Smrgelse
677396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
677496402570Smrg/* end confdefs.h.  */
677596402570Smrgint i;
677696402570Smrg_ACEOF
677796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
677896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
677996402570Smrgelse
678096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
678196402570Smrgfi
678296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
678396402570Smrgfi
678496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
678596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
678696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
678796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
678896402570Smrgfi
678996402570Smrg
679096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
679196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
679296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
679396402570Smrg	fi
679496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
679596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
679696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
679796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
679896402570Smrg  $as_echo_n "(cached) " >&6
679996402570Smrgelse
680096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
680196402570Smrg/* end confdefs.h.  */
680296402570Smrgint i;
680396402570Smrg_ACEOF
680496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
680596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
680696402570Smrgelse
680796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
680896402570Smrgfi
680996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
681096402570Smrgfi
681196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
681296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
681396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
681496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
681596402570Smrgfi
681696402570Smrg
681796402570Smrgfound="no"
681896402570Smrg
681996402570Smrg	if test $found = "no" ; then
682040c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
682196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
682296402570Smrg		fi
682396402570Smrg
682440c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
682596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
682696402570Smrg		fi
682796402570Smrg
682840c5344fSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
682996402570Smrg
683040c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
683140c5344fSmrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
683240c5344fSmrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
683396402570Smrg		if eval \${$cacheid+:} false; then :
683496402570Smrg  $as_echo_n "(cached) " >&6
683596402570Smrgelse
683696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
683796402570Smrg/* end confdefs.h.  */
683896402570Smrgint i;
683996402570Smrgint
684096402570Smrgmain ()
684196402570Smrg{
684296402570Smrg
684396402570Smrg  ;
684496402570Smrg  return 0;
684596402570Smrg}
684696402570Smrg_ACEOF
684796402570Smrgif ac_fn_c_try_link "$LINENO"; then :
684896402570Smrg  eval $cacheid=yes
684996402570Smrgelse
685096402570Smrg  eval $cacheid=no
685196402570Smrgfi
685296402570Smrgrm -f core conftest.err conftest.$ac_objext \
685396402570Smrg    conftest$ac_exeext conftest.$ac_ext
685496402570Smrgfi
685596402570Smrg
685696402570Smrg
685796402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
685896402570Smrg
685996402570Smrg		eval supported=\$$cacheid
686096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
686196402570Smrg$as_echo "$supported" >&6; }
686296402570Smrg		if test "$supported" = "yes" ; then
686340c5344fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
686496402570Smrg			found="yes"
686596402570Smrg		fi
686696402570Smrg	fi
686796402570Smrg
686896402570Smrg
686996402570Smrg
687096402570Smrg
687196402570Smrg
687296402570Smrg
687396402570Smrg
687496402570Smrg
687596402570Smrg
687696402570Smrg
687796402570Smrg
687896402570Smrg
687996402570Smrg
688096402570Smrg
688196402570Smrg
688296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
688396402570Smrg
688496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
688596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
688696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
688796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
688896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
688996402570Smrg  $as_echo_n "(cached) " >&6
689096402570Smrgelse
689196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
689296402570Smrg/* end confdefs.h.  */
689396402570Smrgint i;
689496402570Smrg_ACEOF
689596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
689696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
689796402570Smrgelse
689896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
689996402570Smrgfi
690096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
690196402570Smrgfi
690296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
690396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
690496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
690596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
690696402570Smrgfi
690796402570Smrg
690896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
690996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
691096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
691196402570Smrg	fi
691296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
691396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
691496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
691596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
691696402570Smrg  $as_echo_n "(cached) " >&6
691796402570Smrgelse
691896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
691996402570Smrg/* end confdefs.h.  */
692096402570Smrgint i;
692196402570Smrg_ACEOF
692296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
692396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
692496402570Smrgelse
692596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
692696402570Smrgfi
692796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
692896402570Smrgfi
692996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
693096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
693196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
693296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
693396402570Smrgfi
693496402570Smrg
693596402570Smrgfound="no"
693696402570Smrg
693796402570Smrg	if test $found = "no" ; then
693840c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
693996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
694096402570Smrg		fi
694196402570Smrg
694240c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
694396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
694496402570Smrg		fi
694596402570Smrg
694640c5344fSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
694796402570Smrg
694840c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
694940c5344fSmrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
695040c5344fSmrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
695196402570Smrg		if eval \${$cacheid+:} false; then :
695296402570Smrg  $as_echo_n "(cached) " >&6
695396402570Smrgelse
695496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
695596402570Smrg/* end confdefs.h.  */
695696402570Smrgint i;
695796402570Smrgint
695896402570Smrgmain ()
695996402570Smrg{
696096402570Smrg
696196402570Smrg  ;
696296402570Smrg  return 0;
696396402570Smrg}
696496402570Smrg_ACEOF
696596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
696696402570Smrg  eval $cacheid=yes
696796402570Smrgelse
696896402570Smrg  eval $cacheid=no
696996402570Smrgfi
697096402570Smrgrm -f core conftest.err conftest.$ac_objext \
697196402570Smrg    conftest$ac_exeext conftest.$ac_ext
697296402570Smrgfi
697396402570Smrg
697496402570Smrg
697596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
697696402570Smrg
697796402570Smrg		eval supported=\$$cacheid
697896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
697996402570Smrg$as_echo "$supported" >&6; }
698096402570Smrg		if test "$supported" = "yes" ; then
698140c5344fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
698296402570Smrg			found="yes"
698396402570Smrg		fi
698496402570Smrg	fi
698596402570Smrg
698696402570Smrg
698796402570Smrg
698896402570Smrg
698996402570Smrg
699096402570Smrg
699196402570Smrg
699296402570Smrg
699396402570Smrg
699496402570Smrg
699596402570Smrg
699696402570Smrg
699796402570Smrg
699896402570Smrg
699996402570Smrg
700096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
700196402570Smrg
700296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
700396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
700496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
700596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
700696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
700796402570Smrg  $as_echo_n "(cached) " >&6
700896402570Smrgelse
700996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
701096402570Smrg/* end confdefs.h.  */
701196402570Smrgint i;
701296402570Smrg_ACEOF
701396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
701496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
701596402570Smrgelse
701696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
701796402570Smrgfi
701896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
701996402570Smrgfi
702096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
702196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
702296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
702396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
702496402570Smrgfi
702596402570Smrg
702696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
702796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
702896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
702996402570Smrg	fi
703096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
703196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
703296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
703396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
703496402570Smrg  $as_echo_n "(cached) " >&6
703596402570Smrgelse
703696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
703796402570Smrg/* end confdefs.h.  */
703896402570Smrgint i;
703996402570Smrg_ACEOF
704096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
704196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
704296402570Smrgelse
704396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
704496402570Smrgfi
704596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
704696402570Smrgfi
704796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
704896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
704996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
705096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
705196402570Smrgfi
705296402570Smrg
705396402570Smrgfound="no"
705496402570Smrg
705596402570Smrg	if test $found = "no" ; then
705640c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
705796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
705896402570Smrg		fi
705996402570Smrg
706040c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
706196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
706296402570Smrg		fi
706396402570Smrg
706440c5344fSmrg		CFLAGS="$CFLAGS -Wlogical-op"
706596402570Smrg
706640c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
706740c5344fSmrg$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
706840c5344fSmrg		cacheid=xorg_cv_cc_flag__Wlogical_op
706996402570Smrg		if eval \${$cacheid+:} false; then :
707096402570Smrg  $as_echo_n "(cached) " >&6
707196402570Smrgelse
707296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
707396402570Smrg/* end confdefs.h.  */
707496402570Smrgint i;
707596402570Smrgint
707696402570Smrgmain ()
707796402570Smrg{
707896402570Smrg
707996402570Smrg  ;
708096402570Smrg  return 0;
708196402570Smrg}
708296402570Smrg_ACEOF
708396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
708496402570Smrg  eval $cacheid=yes
708596402570Smrgelse
708696402570Smrg  eval $cacheid=no
708796402570Smrgfi
708896402570Smrgrm -f core conftest.err conftest.$ac_objext \
708996402570Smrg    conftest$ac_exeext conftest.$ac_ext
709096402570Smrgfi
709196402570Smrg
709296402570Smrg
709396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
709496402570Smrg
709596402570Smrg		eval supported=\$$cacheid
709696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
709796402570Smrg$as_echo "$supported" >&6; }
709896402570Smrg		if test "$supported" = "yes" ; then
709940c5344fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
710096402570Smrg			found="yes"
710196402570Smrg		fi
710296402570Smrg	fi
710396402570Smrg
710496402570Smrg
710596402570Smrg
710696402570Smrg# These are currently disabled because they are noisy.  They will be enabled
710796402570Smrg# in the future once the codebase is sufficiently modernized to silence
710896402570Smrg# them.  For now, I don't want them to drown out the other warnings.
710996402570Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
711096402570Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
711140c5344fSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
711296402570Smrg
711396402570Smrg# Turn some warnings into errors, so we don't accidently get successful builds
711496402570Smrg# when there are problems that should be fixed.
711596402570Smrg
711696402570Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
711796402570Smrg
711896402570Smrg
711996402570Smrg
712096402570Smrg
712196402570Smrg
712296402570Smrg
712396402570Smrg
712496402570Smrg
712596402570Smrg
712696402570Smrg
712796402570Smrg
712896402570Smrg
712996402570Smrg
713096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
713196402570Smrg
713296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
713396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
713496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
713596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
713696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
713796402570Smrg  $as_echo_n "(cached) " >&6
713896402570Smrgelse
713996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
714096402570Smrg/* end confdefs.h.  */
714196402570Smrgint i;
714296402570Smrg_ACEOF
714396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
714496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
714596402570Smrgelse
714696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
714796402570Smrgfi
714896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
714996402570Smrgfi
715096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
715196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
715296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
715396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
715496402570Smrgfi
715596402570Smrg
715696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
715796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
715896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
715996402570Smrg	fi
716096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
716196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
716296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
716396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
716496402570Smrg  $as_echo_n "(cached) " >&6
716596402570Smrgelse
716696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
716796402570Smrg/* end confdefs.h.  */
716896402570Smrgint i;
716996402570Smrg_ACEOF
717096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
717196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
717296402570Smrgelse
717396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
717496402570Smrgfi
717596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
717696402570Smrgfi
717796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
717896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
717996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
718096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
718196402570Smrgfi
718296402570Smrg
718396402570Smrgfound="no"
718496402570Smrg
718596402570Smrg	if test $found = "no" ; then
718640c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
718796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
718896402570Smrg		fi
718996402570Smrg
719040c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
719196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
719296402570Smrg		fi
719396402570Smrg
719496402570Smrg		CFLAGS="$CFLAGS -Werror=implicit"
719596402570Smrg
719640c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
719740c5344fSmrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
71988abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_implicit
719996402570Smrg		if eval \${$cacheid+:} false; then :
720096402570Smrg  $as_echo_n "(cached) " >&6
720196402570Smrgelse
720296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
720396402570Smrg/* end confdefs.h.  */
720496402570Smrgint i;
720596402570Smrgint
720696402570Smrgmain ()
720796402570Smrg{
720896402570Smrg
720996402570Smrg  ;
721096402570Smrg  return 0;
721196402570Smrg}
721296402570Smrg_ACEOF
721396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
721496402570Smrg  eval $cacheid=yes
721596402570Smrgelse
721696402570Smrg  eval $cacheid=no
721796402570Smrgfi
721896402570Smrgrm -f core conftest.err conftest.$ac_objext \
721996402570Smrg    conftest$ac_exeext conftest.$ac_ext
722096402570Smrgfi
722196402570Smrg
722296402570Smrg
722396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
722496402570Smrg
722596402570Smrg		eval supported=\$$cacheid
722696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
722796402570Smrg$as_echo "$supported" >&6; }
722896402570Smrg		if test "$supported" = "yes" ; then
722996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
723096402570Smrg			found="yes"
723196402570Smrg		fi
723296402570Smrg	fi
723396402570Smrg
723496402570Smrg	if test $found = "no" ; then
723540c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
723696402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
723796402570Smrg		fi
723896402570Smrg
723940c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
724096402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
724196402570Smrg		fi
724296402570Smrg
724396402570Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
724496402570Smrg
724540c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
724640c5344fSmrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
72478abc0ccfSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
724896402570Smrg		if eval \${$cacheid+:} false; then :
724996402570Smrg  $as_echo_n "(cached) " >&6
725096402570Smrgelse
725196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
725296402570Smrg/* end confdefs.h.  */
725396402570Smrgint i;
725496402570Smrgint
725596402570Smrgmain ()
725696402570Smrg{
725796402570Smrg
725896402570Smrg  ;
725996402570Smrg  return 0;
726096402570Smrg}
726196402570Smrg_ACEOF
726296402570Smrgif ac_fn_c_try_link "$LINENO"; then :
726396402570Smrg  eval $cacheid=yes
726496402570Smrgelse
726596402570Smrg  eval $cacheid=no
726696402570Smrgfi
726796402570Smrgrm -f core conftest.err conftest.$ac_objext \
726896402570Smrg    conftest$ac_exeext conftest.$ac_ext
726996402570Smrgfi
727096402570Smrg
727196402570Smrg
727296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
727396402570Smrg
727496402570Smrg		eval supported=\$$cacheid
727596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
727696402570Smrg$as_echo "$supported" >&6; }
727796402570Smrg		if test "$supported" = "yes" ; then
727896402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
727996402570Smrg			found="yes"
728096402570Smrg		fi
728196402570Smrg	fi
728296402570Smrg
728396402570Smrg
728496402570Smrg
728596402570Smrg
728696402570Smrg
728796402570Smrg
728896402570Smrg
728996402570Smrg
729096402570Smrg
729196402570Smrg
729296402570Smrg
729396402570Smrg
729496402570Smrg
729596402570Smrg
729696402570Smrg
729796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
729896402570Smrg
729996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
730096402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
730196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
730296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
730396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
730496402570Smrg  $as_echo_n "(cached) " >&6
730596402570Smrgelse
730696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
730796402570Smrg/* end confdefs.h.  */
730896402570Smrgint i;
730996402570Smrg_ACEOF
731096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
731196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
731296402570Smrgelse
731396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
731496402570Smrgfi
731596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
731696402570Smrgfi
731796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
731896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
731996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
732096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
732196402570Smrgfi
732296402570Smrg
732396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
732496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
732596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
732696402570Smrg	fi
732796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
732896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
732996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
733096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
733196402570Smrg  $as_echo_n "(cached) " >&6
733296402570Smrgelse
733396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
733496402570Smrg/* end confdefs.h.  */
733596402570Smrgint i;
733696402570Smrg_ACEOF
733796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
733896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
733996402570Smrgelse
734096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
734196402570Smrgfi
734296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
734396402570Smrgfi
734496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
734596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
734696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
734796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
734896402570Smrgfi
734996402570Smrg
735096402570Smrgfound="no"
735196402570Smrg
735296402570Smrg	if test $found = "no" ; then
735340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
735496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
735596402570Smrg		fi
735696402570Smrg
735740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
735896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
735996402570Smrg		fi
736096402570Smrg
736196402570Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
736296402570Smrg
736340c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
736440c5344fSmrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
73658abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
736696402570Smrg		if eval \${$cacheid+:} false; then :
736796402570Smrg  $as_echo_n "(cached) " >&6
736896402570Smrgelse
736996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
737096402570Smrg/* end confdefs.h.  */
737196402570Smrgint i;
737296402570Smrgint
737396402570Smrgmain ()
737496402570Smrg{
737596402570Smrg
737696402570Smrg  ;
737796402570Smrg  return 0;
737896402570Smrg}
737996402570Smrg_ACEOF
738096402570Smrgif ac_fn_c_try_link "$LINENO"; then :
738196402570Smrg  eval $cacheid=yes
738296402570Smrgelse
738396402570Smrg  eval $cacheid=no
738496402570Smrgfi
738596402570Smrgrm -f core conftest.err conftest.$ac_objext \
738696402570Smrg    conftest$ac_exeext conftest.$ac_ext
738796402570Smrgfi
738896402570Smrg
738996402570Smrg
739096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
739196402570Smrg
739296402570Smrg		eval supported=\$$cacheid
739396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
739496402570Smrg$as_echo "$supported" >&6; }
739596402570Smrg		if test "$supported" = "yes" ; then
739696402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
739796402570Smrg			found="yes"
739896402570Smrg		fi
739996402570Smrg	fi
740096402570Smrg
740196402570Smrg
740296402570Smrg
740396402570Smrg
740496402570Smrg
740596402570Smrg
740696402570Smrg
740796402570Smrg
740896402570Smrg
740996402570Smrg
741096402570Smrg
741196402570Smrg
741296402570Smrg
741396402570Smrg
741496402570Smrg
741596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
741696402570Smrg
741796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
741896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
741996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
742096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
742196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
742296402570Smrg  $as_echo_n "(cached) " >&6
742396402570Smrgelse
742496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
742596402570Smrg/* end confdefs.h.  */
742696402570Smrgint i;
742796402570Smrg_ACEOF
742896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
742996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
743096402570Smrgelse
743196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
743296402570Smrgfi
743396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
743496402570Smrgfi
743596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
743696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
743796402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
743896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
743996402570Smrgfi
744096402570Smrg
744196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
744296402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
744396402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
744496402570Smrg	fi
744596402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
744696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
744796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
744896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
744996402570Smrg  $as_echo_n "(cached) " >&6
745096402570Smrgelse
745196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
745296402570Smrg/* end confdefs.h.  */
745396402570Smrgint i;
745496402570Smrg_ACEOF
745596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
745696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
745796402570Smrgelse
745896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
745996402570Smrgfi
746096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
746196402570Smrgfi
746296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
746396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
746496402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
746596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
746696402570Smrgfi
746796402570Smrg
746896402570Smrgfound="no"
746996402570Smrg
747096402570Smrg	if test $found = "no" ; then
747140c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
747296402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
747396402570Smrg		fi
747496402570Smrg
747540c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
747696402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
747796402570Smrg		fi
747896402570Smrg
747996402570Smrg		CFLAGS="$CFLAGS -Werror=init-self"
748096402570Smrg
748140c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
748240c5344fSmrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
74838abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_init_self
748496402570Smrg		if eval \${$cacheid+:} false; then :
748596402570Smrg  $as_echo_n "(cached) " >&6
748696402570Smrgelse
748796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
748896402570Smrg/* end confdefs.h.  */
748996402570Smrgint i;
749096402570Smrgint
749196402570Smrgmain ()
749296402570Smrg{
749396402570Smrg
749496402570Smrg  ;
749596402570Smrg  return 0;
749696402570Smrg}
749796402570Smrg_ACEOF
749896402570Smrgif ac_fn_c_try_link "$LINENO"; then :
749996402570Smrg  eval $cacheid=yes
750096402570Smrgelse
750196402570Smrg  eval $cacheid=no
750296402570Smrgfi
750396402570Smrgrm -f core conftest.err conftest.$ac_objext \
750496402570Smrg    conftest$ac_exeext conftest.$ac_ext
750596402570Smrgfi
750696402570Smrg
750796402570Smrg
750896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
750996402570Smrg
751096402570Smrg		eval supported=\$$cacheid
751196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
751296402570Smrg$as_echo "$supported" >&6; }
751396402570Smrg		if test "$supported" = "yes" ; then
751496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
751596402570Smrg			found="yes"
751696402570Smrg		fi
751796402570Smrg	fi
751896402570Smrg
751996402570Smrg
752096402570Smrg
752196402570Smrg
752296402570Smrg
752396402570Smrg
752496402570Smrg
752596402570Smrg
752696402570Smrg
752796402570Smrg
752896402570Smrg
752996402570Smrg
753096402570Smrg
753196402570Smrg
753296402570Smrg
753396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
753496402570Smrg
753596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
753696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
753796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
753896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
753996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
754096402570Smrg  $as_echo_n "(cached) " >&6
754196402570Smrgelse
754296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
754396402570Smrg/* end confdefs.h.  */
754496402570Smrgint i;
754596402570Smrg_ACEOF
754696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
754796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
754896402570Smrgelse
754996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
755096402570Smrgfi
755196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
755296402570Smrgfi
755396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
755496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
755596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
755696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
755796402570Smrgfi
755896402570Smrg
755996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
756096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
756196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
756296402570Smrg	fi
756396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
756496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
756596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
756696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
756796402570Smrg  $as_echo_n "(cached) " >&6
756896402570Smrgelse
756996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
757096402570Smrg/* end confdefs.h.  */
757196402570Smrgint i;
757296402570Smrg_ACEOF
757396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
757496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
757596402570Smrgelse
757696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
757796402570Smrgfi
757896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
757996402570Smrgfi
758096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
758196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
758296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
758396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
758496402570Smrgfi
758596402570Smrg
758696402570Smrgfound="no"
758796402570Smrg
758896402570Smrg	if test $found = "no" ; then
758940c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
759096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
759196402570Smrg		fi
759296402570Smrg
759340c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
759496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
759596402570Smrg		fi
759696402570Smrg
759796402570Smrg		CFLAGS="$CFLAGS -Werror=main"
759896402570Smrg
759940c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
760040c5344fSmrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
76018abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_main
760296402570Smrg		if eval \${$cacheid+:} false; then :
760396402570Smrg  $as_echo_n "(cached) " >&6
760496402570Smrgelse
760596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
760696402570Smrg/* end confdefs.h.  */
760796402570Smrgint i;
760896402570Smrgint
760996402570Smrgmain ()
761096402570Smrg{
761196402570Smrg
761296402570Smrg  ;
761396402570Smrg  return 0;
761496402570Smrg}
761596402570Smrg_ACEOF
761696402570Smrgif ac_fn_c_try_link "$LINENO"; then :
761796402570Smrg  eval $cacheid=yes
761896402570Smrgelse
761996402570Smrg  eval $cacheid=no
762096402570Smrgfi
762196402570Smrgrm -f core conftest.err conftest.$ac_objext \
762296402570Smrg    conftest$ac_exeext conftest.$ac_ext
762396402570Smrgfi
762496402570Smrg
762596402570Smrg
762696402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
762796402570Smrg
762896402570Smrg		eval supported=\$$cacheid
762996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
763096402570Smrg$as_echo "$supported" >&6; }
763196402570Smrg		if test "$supported" = "yes" ; then
763296402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
763396402570Smrg			found="yes"
763496402570Smrg		fi
763596402570Smrg	fi
763696402570Smrg
763796402570Smrg
763896402570Smrg
763996402570Smrg
764096402570Smrg
764196402570Smrg
764296402570Smrg
764396402570Smrg
764496402570Smrg
764596402570Smrg
764696402570Smrg
764796402570Smrg
764896402570Smrg
764996402570Smrg
765096402570Smrg
765196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
765296402570Smrg
765396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
765496402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
765596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
765696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
765796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
765896402570Smrg  $as_echo_n "(cached) " >&6
765996402570Smrgelse
766096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
766196402570Smrg/* end confdefs.h.  */
766296402570Smrgint i;
766396402570Smrg_ACEOF
766496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
766596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
766696402570Smrgelse
766796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
766896402570Smrgfi
766996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
767096402570Smrgfi
767196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
767296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
767396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
767496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
767596402570Smrgfi
767696402570Smrg
767796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
767896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
767996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
768096402570Smrg	fi
768196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
768296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
768396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
768496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
768596402570Smrg  $as_echo_n "(cached) " >&6
768696402570Smrgelse
768796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
768896402570Smrg/* end confdefs.h.  */
768996402570Smrgint i;
769096402570Smrg_ACEOF
769196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
769296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
769396402570Smrgelse
769496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
769596402570Smrgfi
769696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
769796402570Smrgfi
769896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
769996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
770096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
770196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
770296402570Smrgfi
770396402570Smrg
770496402570Smrgfound="no"
770596402570Smrg
770696402570Smrg	if test $found = "no" ; then
770740c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
770896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
770996402570Smrg		fi
771096402570Smrg
771140c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
771296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
771396402570Smrg		fi
771496402570Smrg
771596402570Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
771696402570Smrg
771740c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
771840c5344fSmrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
77198abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
772096402570Smrg		if eval \${$cacheid+:} false; then :
772196402570Smrg  $as_echo_n "(cached) " >&6
772296402570Smrgelse
772396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
772496402570Smrg/* end confdefs.h.  */
772596402570Smrgint i;
772696402570Smrgint
772796402570Smrgmain ()
772896402570Smrg{
772996402570Smrg
773096402570Smrg  ;
773196402570Smrg  return 0;
773296402570Smrg}
773396402570Smrg_ACEOF
773496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
773596402570Smrg  eval $cacheid=yes
773696402570Smrgelse
773796402570Smrg  eval $cacheid=no
773896402570Smrgfi
773996402570Smrgrm -f core conftest.err conftest.$ac_objext \
774096402570Smrg    conftest$ac_exeext conftest.$ac_ext
774196402570Smrgfi
774296402570Smrg
774396402570Smrg
774496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
774596402570Smrg
774696402570Smrg		eval supported=\$$cacheid
774796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
774896402570Smrg$as_echo "$supported" >&6; }
774996402570Smrg		if test "$supported" = "yes" ; then
775096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
775196402570Smrg			found="yes"
775296402570Smrg		fi
775396402570Smrg	fi
775496402570Smrg
775596402570Smrg
775696402570Smrg
775796402570Smrg
775896402570Smrg
775996402570Smrg
776096402570Smrg
776196402570Smrg
776296402570Smrg
776396402570Smrg
776496402570Smrg
776596402570Smrg
776696402570Smrg
776796402570Smrg
776896402570Smrg
776996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
777096402570Smrg
777196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
777296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
777396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
777496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
777596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
777696402570Smrg  $as_echo_n "(cached) " >&6
777796402570Smrgelse
777896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
777996402570Smrg/* end confdefs.h.  */
778096402570Smrgint i;
778196402570Smrg_ACEOF
778296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
778396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
778496402570Smrgelse
778596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
778696402570Smrgfi
778796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
778896402570Smrgfi
778996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
779096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
779196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
779296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
779396402570Smrgfi
779496402570Smrg
779596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
779696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
779796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
779896402570Smrg	fi
779996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
780096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
780196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
780296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
780396402570Smrg  $as_echo_n "(cached) " >&6
780496402570Smrgelse
780596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
780696402570Smrg/* end confdefs.h.  */
780796402570Smrgint i;
780896402570Smrg_ACEOF
780996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
781096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
781196402570Smrgelse
781296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
781396402570Smrgfi
781496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
781596402570Smrgfi
781696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
781796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
781896402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
781996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
782096402570Smrgfi
782196402570Smrg
782296402570Smrgfound="no"
782396402570Smrg
782496402570Smrg	if test $found = "no" ; then
782540c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
782696402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
782796402570Smrg		fi
782896402570Smrg
782940c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
783096402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
783196402570Smrg		fi
783296402570Smrg
783396402570Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
783496402570Smrg
783540c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
783640c5344fSmrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
78378abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
783896402570Smrg		if eval \${$cacheid+:} false; then :
783996402570Smrg  $as_echo_n "(cached) " >&6
784096402570Smrgelse
784196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
784296402570Smrg/* end confdefs.h.  */
784396402570Smrgint i;
784496402570Smrgint
784596402570Smrgmain ()
784696402570Smrg{
784796402570Smrg
784896402570Smrg  ;
784996402570Smrg  return 0;
785096402570Smrg}
785196402570Smrg_ACEOF
785296402570Smrgif ac_fn_c_try_link "$LINENO"; then :
785396402570Smrg  eval $cacheid=yes
785496402570Smrgelse
785596402570Smrg  eval $cacheid=no
785696402570Smrgfi
785796402570Smrgrm -f core conftest.err conftest.$ac_objext \
785896402570Smrg    conftest$ac_exeext conftest.$ac_ext
785996402570Smrgfi
786096402570Smrg
786196402570Smrg
786296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
786396402570Smrg
786496402570Smrg		eval supported=\$$cacheid
786596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
786696402570Smrg$as_echo "$supported" >&6; }
786796402570Smrg		if test "$supported" = "yes" ; then
786896402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
786996402570Smrg			found="yes"
787096402570Smrg		fi
787196402570Smrg	fi
787296402570Smrg
787396402570Smrg
787496402570Smrg
787596402570Smrg
787696402570Smrg
787796402570Smrg
787896402570Smrg
787996402570Smrg
788096402570Smrg
788196402570Smrg
788296402570Smrg
788396402570Smrg
788496402570Smrg
788596402570Smrg
788696402570Smrg
788796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
788896402570Smrg
788996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
789096402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
789196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
789296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
789396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
789496402570Smrg  $as_echo_n "(cached) " >&6
789596402570Smrgelse
789696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
789796402570Smrg/* end confdefs.h.  */
789896402570Smrgint i;
789996402570Smrg_ACEOF
790096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
790196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
790296402570Smrgelse
790396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
790496402570Smrgfi
790596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
790696402570Smrgfi
790796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
790896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
790996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
791096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
791196402570Smrgfi
791296402570Smrg
791396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
791496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
791596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
791696402570Smrg	fi
791796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
791896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
791996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
792096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
792196402570Smrg  $as_echo_n "(cached) " >&6
792296402570Smrgelse
792396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
792496402570Smrg/* end confdefs.h.  */
792596402570Smrgint i;
792696402570Smrg_ACEOF
792796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
792896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
792996402570Smrgelse
793096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
793196402570Smrgfi
793296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
793396402570Smrgfi
793496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
793596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
793696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
793796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
793896402570Smrgfi
793996402570Smrg
794096402570Smrgfound="no"
794196402570Smrg
794296402570Smrg	if test $found = "no" ; then
794340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
794496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
794596402570Smrg		fi
794696402570Smrg
794740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
794896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
794996402570Smrg		fi
795096402570Smrg
795196402570Smrg		CFLAGS="$CFLAGS -Werror=return-type"
795296402570Smrg
795340c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
795440c5344fSmrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
79558abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_return_type
795696402570Smrg		if eval \${$cacheid+:} false; then :
795796402570Smrg  $as_echo_n "(cached) " >&6
795896402570Smrgelse
795996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
796096402570Smrg/* end confdefs.h.  */
796196402570Smrgint i;
796296402570Smrgint
796396402570Smrgmain ()
796496402570Smrg{
796596402570Smrg
796696402570Smrg  ;
796796402570Smrg  return 0;
796896402570Smrg}
796996402570Smrg_ACEOF
797096402570Smrgif ac_fn_c_try_link "$LINENO"; then :
797196402570Smrg  eval $cacheid=yes
797296402570Smrgelse
797396402570Smrg  eval $cacheid=no
797496402570Smrgfi
797596402570Smrgrm -f core conftest.err conftest.$ac_objext \
797696402570Smrg    conftest$ac_exeext conftest.$ac_ext
797796402570Smrgfi
797896402570Smrg
797996402570Smrg
798096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
798196402570Smrg
798296402570Smrg		eval supported=\$$cacheid
798396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
798496402570Smrg$as_echo "$supported" >&6; }
798596402570Smrg		if test "$supported" = "yes" ; then
798696402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
798796402570Smrg			found="yes"
798896402570Smrg		fi
798996402570Smrg	fi
799096402570Smrg
799196402570Smrg	if test $found = "no" ; then
799240c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
799396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
799496402570Smrg		fi
799596402570Smrg
799640c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
799796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
799896402570Smrg		fi
799996402570Smrg
800096402570Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
800196402570Smrg
800240c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
800340c5344fSmrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
80048abc0ccfSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
800596402570Smrg		if eval \${$cacheid+:} false; then :
800696402570Smrg  $as_echo_n "(cached) " >&6
800796402570Smrgelse
800896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
800996402570Smrg/* end confdefs.h.  */
801096402570Smrgint i;
801196402570Smrgint
801296402570Smrgmain ()
801396402570Smrg{
801496402570Smrg
801596402570Smrg  ;
801696402570Smrg  return 0;
801796402570Smrg}
801896402570Smrg_ACEOF
801996402570Smrgif ac_fn_c_try_link "$LINENO"; then :
802096402570Smrg  eval $cacheid=yes
802196402570Smrgelse
802296402570Smrg  eval $cacheid=no
802396402570Smrgfi
802496402570Smrgrm -f core conftest.err conftest.$ac_objext \
802596402570Smrg    conftest$ac_exeext conftest.$ac_ext
802696402570Smrgfi
802796402570Smrg
802896402570Smrg
802996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
803096402570Smrg
803196402570Smrg		eval supported=\$$cacheid
803296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
803396402570Smrg$as_echo "$supported" >&6; }
803496402570Smrg		if test "$supported" = "yes" ; then
803596402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
803696402570Smrg			found="yes"
803796402570Smrg		fi
803896402570Smrg	fi
803996402570Smrg
804096402570Smrg
804196402570Smrg
804296402570Smrg
804396402570Smrg
804496402570Smrg
804596402570Smrg
804696402570Smrg
804796402570Smrg
804896402570Smrg
804996402570Smrg
805096402570Smrg
805196402570Smrg
805296402570Smrg
805396402570Smrg
805496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
805596402570Smrg
805696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
805796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
805896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
805996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
806096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
806196402570Smrg  $as_echo_n "(cached) " >&6
806296402570Smrgelse
806396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
806496402570Smrg/* end confdefs.h.  */
806596402570Smrgint i;
806696402570Smrg_ACEOF
806796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
806896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
806996402570Smrgelse
807096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
807196402570Smrgfi
807296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
807396402570Smrgfi
807496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
807596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
807696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
807796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
807896402570Smrgfi
807996402570Smrg
808096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
808196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
808296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
808396402570Smrg	fi
808496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
808596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
808696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
808796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
808896402570Smrg  $as_echo_n "(cached) " >&6
808996402570Smrgelse
809096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
809196402570Smrg/* end confdefs.h.  */
809296402570Smrgint i;
809396402570Smrg_ACEOF
809496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
809596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
809696402570Smrgelse
809796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
809896402570Smrgfi
809996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
810096402570Smrgfi
810196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
810296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
810396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
810496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
810596402570Smrgfi
810696402570Smrg
810796402570Smrgfound="no"
810896402570Smrg
810996402570Smrg	if test $found = "no" ; then
811040c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
811196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
811296402570Smrg		fi
811396402570Smrg
811440c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
811596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
811696402570Smrg		fi
811796402570Smrg
811896402570Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
811996402570Smrg
812040c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
812140c5344fSmrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
81228abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
812396402570Smrg		if eval \${$cacheid+:} false; then :
812496402570Smrg  $as_echo_n "(cached) " >&6
812596402570Smrgelse
812696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
812796402570Smrg/* end confdefs.h.  */
812896402570Smrgint i;
812996402570Smrgint
813096402570Smrgmain ()
813196402570Smrg{
813296402570Smrg
813396402570Smrg  ;
813496402570Smrg  return 0;
813596402570Smrg}
813696402570Smrg_ACEOF
813796402570Smrgif ac_fn_c_try_link "$LINENO"; then :
813896402570Smrg  eval $cacheid=yes
813996402570Smrgelse
814096402570Smrg  eval $cacheid=no
814196402570Smrgfi
814296402570Smrgrm -f core conftest.err conftest.$ac_objext \
814396402570Smrg    conftest$ac_exeext conftest.$ac_ext
814496402570Smrgfi
814596402570Smrg
814696402570Smrg
814796402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
814896402570Smrg
814996402570Smrg		eval supported=\$$cacheid
815096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
815196402570Smrg$as_echo "$supported" >&6; }
815296402570Smrg		if test "$supported" = "yes" ; then
815396402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
815496402570Smrg			found="yes"
815596402570Smrg		fi
815696402570Smrg	fi
815796402570Smrg
815896402570Smrg
815996402570Smrg
816096402570Smrg
816196402570Smrg
816296402570Smrg
816396402570Smrg
816496402570Smrg
816596402570Smrg
816696402570Smrg
816796402570Smrg
816896402570Smrg
816996402570Smrg
817096402570Smrg
817196402570Smrg
817296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
817396402570Smrg
817496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
817596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
817696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
817796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
817896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
817996402570Smrg  $as_echo_n "(cached) " >&6
818096402570Smrgelse
818196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
818296402570Smrg/* end confdefs.h.  */
818396402570Smrgint i;
818496402570Smrg_ACEOF
818596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
818696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
818796402570Smrgelse
818896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
818996402570Smrgfi
819096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
819196402570Smrgfi
819296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
819396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
819496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
819596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
819696402570Smrgfi
819796402570Smrg
819896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
819996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
820096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
820196402570Smrg	fi
820296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
820396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
820496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
820596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
820696402570Smrg  $as_echo_n "(cached) " >&6
820796402570Smrgelse
820896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
820996402570Smrg/* end confdefs.h.  */
821096402570Smrgint i;
821196402570Smrg_ACEOF
821296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
821396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
821496402570Smrgelse
821596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
821696402570Smrgfi
821796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
821896402570Smrgfi
821996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
822096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
822196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
822296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
822396402570Smrgfi
822496402570Smrg
822596402570Smrgfound="no"
822696402570Smrg
822796402570Smrg	if test $found = "no" ; then
822840c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
822996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
823096402570Smrg		fi
823196402570Smrg
823240c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
823396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
823496402570Smrg		fi
823596402570Smrg
823696402570Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
823796402570Smrg
823840c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
823940c5344fSmrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
82408abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
824196402570Smrg		if eval \${$cacheid+:} false; then :
824296402570Smrg  $as_echo_n "(cached) " >&6
824396402570Smrgelse
824496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
824596402570Smrg/* end confdefs.h.  */
824696402570Smrgint i;
824796402570Smrgint
824896402570Smrgmain ()
824996402570Smrg{
825096402570Smrg
825196402570Smrg  ;
825296402570Smrg  return 0;
825396402570Smrg}
825496402570Smrg_ACEOF
825596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
825696402570Smrg  eval $cacheid=yes
825796402570Smrgelse
825896402570Smrg  eval $cacheid=no
825996402570Smrgfi
826096402570Smrgrm -f core conftest.err conftest.$ac_objext \
826196402570Smrg    conftest$ac_exeext conftest.$ac_ext
826296402570Smrgfi
826396402570Smrg
826496402570Smrg
826596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
826696402570Smrg
826796402570Smrg		eval supported=\$$cacheid
826896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
826996402570Smrg$as_echo "$supported" >&6; }
827096402570Smrg		if test "$supported" = "yes" ; then
827196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
827296402570Smrg			found="yes"
827396402570Smrg		fi
827496402570Smrg	fi
827596402570Smrg
827696402570Smrg
827796402570Smrg
827896402570Smrg
827996402570Smrg
828096402570Smrg
828196402570Smrg
828296402570Smrg
828396402570Smrg
828496402570Smrg
828596402570Smrg
828696402570Smrg
828796402570Smrg
828896402570Smrg
828996402570Smrg
829096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
829196402570Smrg
829296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
829396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
829496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
829596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
829696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
829796402570Smrg  $as_echo_n "(cached) " >&6
829896402570Smrgelse
829996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
830096402570Smrg/* end confdefs.h.  */
830196402570Smrgint i;
830296402570Smrg_ACEOF
830396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
830496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
830596402570Smrgelse
830696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
830796402570Smrgfi
830896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
830996402570Smrgfi
831096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
831196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
831296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
831396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
831496402570Smrgfi
831596402570Smrg
831696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
831796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
831896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
831996402570Smrg	fi
832096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
832196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
832296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
832396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
832496402570Smrg  $as_echo_n "(cached) " >&6
832596402570Smrgelse
832696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
832796402570Smrg/* end confdefs.h.  */
832896402570Smrgint i;
832996402570Smrg_ACEOF
833096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
833196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
833296402570Smrgelse
833396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
833496402570Smrgfi
833596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
833696402570Smrgfi
833796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
833896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
833996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
834096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
834196402570Smrgfi
834296402570Smrg
834396402570Smrgfound="no"
834496402570Smrg
834596402570Smrg	if test $found = "no" ; then
834640c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
834796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
834896402570Smrg		fi
834996402570Smrg
835040c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
835196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
835296402570Smrg		fi
835396402570Smrg
835496402570Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
835596402570Smrg
835640c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
835740c5344fSmrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
83588abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
835996402570Smrg		if eval \${$cacheid+:} false; then :
836096402570Smrg  $as_echo_n "(cached) " >&6
836196402570Smrgelse
836296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
836396402570Smrg/* end confdefs.h.  */
836496402570Smrgint i;
836596402570Smrgint
836696402570Smrgmain ()
836796402570Smrg{
836896402570Smrg
836996402570Smrg  ;
837096402570Smrg  return 0;
837196402570Smrg}
837296402570Smrg_ACEOF
837396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
837496402570Smrg  eval $cacheid=yes
837596402570Smrgelse
837696402570Smrg  eval $cacheid=no
837796402570Smrgfi
837896402570Smrgrm -f core conftest.err conftest.$ac_objext \
837996402570Smrg    conftest$ac_exeext conftest.$ac_ext
838096402570Smrgfi
838196402570Smrg
838296402570Smrg
838396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
838496402570Smrg
838596402570Smrg		eval supported=\$$cacheid
838696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
838796402570Smrg$as_echo "$supported" >&6; }
838896402570Smrg		if test "$supported" = "yes" ; then
838996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
839096402570Smrg			found="yes"
839196402570Smrg		fi
839296402570Smrg	fi
839396402570Smrg
839496402570Smrg
839596402570Smrg
839696402570Smrg
839796402570Smrg
839896402570Smrg
839996402570Smrg
840096402570Smrg
840196402570Smrg
840296402570Smrg
840396402570Smrg
840496402570Smrg
840596402570Smrg
840696402570Smrg
840796402570Smrg
840896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
840996402570Smrg
841096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
841196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
841296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
841396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
841496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
841596402570Smrg  $as_echo_n "(cached) " >&6
841696402570Smrgelse
841796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
841896402570Smrg/* end confdefs.h.  */
841996402570Smrgint i;
842096402570Smrg_ACEOF
842196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
842296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
842396402570Smrgelse
842496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
842596402570Smrgfi
842696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
842796402570Smrgfi
842896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
842996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
843096402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
843196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
843296402570Smrgfi
843396402570Smrg
843496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
843596402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
843696402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
843796402570Smrg	fi
843896402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
843996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
844096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
844196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
844296402570Smrg  $as_echo_n "(cached) " >&6
844396402570Smrgelse
844496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
844596402570Smrg/* end confdefs.h.  */
844696402570Smrgint i;
844796402570Smrg_ACEOF
844896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
844996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
845096402570Smrgelse
845196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
845296402570Smrgfi
845396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
845496402570Smrgfi
845596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
845696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
845796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
845896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
845996402570Smrgfi
846096402570Smrg
846196402570Smrgfound="no"
846296402570Smrg
846396402570Smrg	if test $found = "no" ; then
846440c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
846596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
846696402570Smrg		fi
846796402570Smrg
846840c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
846996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
847096402570Smrg		fi
847196402570Smrg
847296402570Smrg		CFLAGS="$CFLAGS -Werror=address"
847396402570Smrg
847440c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
847540c5344fSmrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
84768abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_address
847796402570Smrg		if eval \${$cacheid+:} false; then :
847896402570Smrg  $as_echo_n "(cached) " >&6
847996402570Smrgelse
848096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
848196402570Smrg/* end confdefs.h.  */
848296402570Smrgint i;
848396402570Smrgint
848496402570Smrgmain ()
848596402570Smrg{
848696402570Smrg
848796402570Smrg  ;
848896402570Smrg  return 0;
848996402570Smrg}
849096402570Smrg_ACEOF
849196402570Smrgif ac_fn_c_try_link "$LINENO"; then :
849296402570Smrg  eval $cacheid=yes
849396402570Smrgelse
849496402570Smrg  eval $cacheid=no
849596402570Smrgfi
849696402570Smrgrm -f core conftest.err conftest.$ac_objext \
849796402570Smrg    conftest$ac_exeext conftest.$ac_ext
849896402570Smrgfi
849996402570Smrg
850096402570Smrg
850196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
850296402570Smrg
850396402570Smrg		eval supported=\$$cacheid
850496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
850596402570Smrg$as_echo "$supported" >&6; }
850696402570Smrg		if test "$supported" = "yes" ; then
850796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
850896402570Smrg			found="yes"
850996402570Smrg		fi
851096402570Smrg	fi
851196402570Smrg
851296402570Smrg
851396402570Smrg
851496402570Smrg
851596402570Smrg
851696402570Smrg
851796402570Smrg
851896402570Smrg
851996402570Smrg
852096402570Smrg
852196402570Smrg
852296402570Smrg
852396402570Smrg
852496402570Smrg
852596402570Smrg
852696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
852796402570Smrg
852896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
852996402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
853096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
853196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
853296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
853396402570Smrg  $as_echo_n "(cached) " >&6
853496402570Smrgelse
853596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
853696402570Smrg/* end confdefs.h.  */
853796402570Smrgint i;
853896402570Smrg_ACEOF
853996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
854096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
854196402570Smrgelse
854296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
854396402570Smrgfi
854496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
854596402570Smrgfi
854696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
854796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
854896402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
854996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
855096402570Smrgfi
855196402570Smrg
855296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
855396402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
855496402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
855596402570Smrg	fi
855696402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
855796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
855896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
855996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
856096402570Smrg  $as_echo_n "(cached) " >&6
856196402570Smrgelse
856296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
856396402570Smrg/* end confdefs.h.  */
856496402570Smrgint i;
856596402570Smrg_ACEOF
856696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
856796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
856896402570Smrgelse
856996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
857096402570Smrgfi
857196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
857296402570Smrgfi
857396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
857496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
857596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
857696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
857796402570Smrgfi
857896402570Smrg
857996402570Smrgfound="no"
858096402570Smrg
858196402570Smrg	if test $found = "no" ; then
858240c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
858396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
858496402570Smrg		fi
858596402570Smrg
858640c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
858796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
858896402570Smrg		fi
858996402570Smrg
859096402570Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
859196402570Smrg
859240c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
859340c5344fSmrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
85948abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
859596402570Smrg		if eval \${$cacheid+:} false; then :
859696402570Smrg  $as_echo_n "(cached) " >&6
859796402570Smrgelse
859896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
859996402570Smrg/* end confdefs.h.  */
860096402570Smrgint i;
860196402570Smrgint
860296402570Smrgmain ()
860396402570Smrg{
860496402570Smrg
860596402570Smrg  ;
860696402570Smrg  return 0;
860796402570Smrg}
860896402570Smrg_ACEOF
860996402570Smrgif ac_fn_c_try_link "$LINENO"; then :
861096402570Smrg  eval $cacheid=yes
861196402570Smrgelse
861296402570Smrg  eval $cacheid=no
861396402570Smrgfi
861496402570Smrgrm -f core conftest.err conftest.$ac_objext \
861596402570Smrg    conftest$ac_exeext conftest.$ac_ext
861696402570Smrgfi
861796402570Smrg
861896402570Smrg
861996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
862096402570Smrg
862196402570Smrg		eval supported=\$$cacheid
862296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
862396402570Smrg$as_echo "$supported" >&6; }
862496402570Smrg		if test "$supported" = "yes" ; then
862596402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
862696402570Smrg			found="yes"
862796402570Smrg		fi
862896402570Smrg	fi
862996402570Smrg
863096402570Smrg	if test $found = "no" ; then
863140c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
863296402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
863396402570Smrg		fi
863496402570Smrg
863540c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
863696402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
863796402570Smrg		fi
863896402570Smrg
863996402570Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
864096402570Smrg
864140c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
864240c5344fSmrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
86438abc0ccfSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
864496402570Smrg		if eval \${$cacheid+:} false; then :
864596402570Smrg  $as_echo_n "(cached) " >&6
864696402570Smrgelse
864796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
864896402570Smrg/* end confdefs.h.  */
864996402570Smrgint i;
865096402570Smrgint
865196402570Smrgmain ()
865296402570Smrg{
865396402570Smrg
865496402570Smrg  ;
865596402570Smrg  return 0;
865696402570Smrg}
865796402570Smrg_ACEOF
865896402570Smrgif ac_fn_c_try_link "$LINENO"; then :
865996402570Smrg  eval $cacheid=yes
866096402570Smrgelse
866196402570Smrg  eval $cacheid=no
866296402570Smrgfi
866396402570Smrgrm -f core conftest.err conftest.$ac_objext \
866496402570Smrg    conftest$ac_exeext conftest.$ac_ext
866596402570Smrgfi
866696402570Smrg
866796402570Smrg
866896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
866996402570Smrg
867096402570Smrg		eval supported=\$$cacheid
867196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
867296402570Smrg$as_echo "$supported" >&6; }
867396402570Smrg		if test "$supported" = "yes" ; then
867496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
867596402570Smrg			found="yes"
867696402570Smrg		fi
867796402570Smrg	fi
867896402570Smrg
867996402570Smrg
868096402570Smrg
868196402570Smrg
868296402570Smrg
868396402570Smrg
868496402570Smrg
868596402570Smrg
868696402570Smrg
868796402570Smrg
868896402570Smrg
868996402570Smrg
869096402570Smrg
869196402570Smrg
869296402570Smrg
869396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
869496402570Smrg
869596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
869696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
869796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
869896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
869996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
870096402570Smrg  $as_echo_n "(cached) " >&6
870196402570Smrgelse
870296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
870396402570Smrg/* end confdefs.h.  */
870496402570Smrgint i;
870596402570Smrg_ACEOF
870696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
870796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
870896402570Smrgelse
870996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
871096402570Smrgfi
871196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
871296402570Smrgfi
871396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
871496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
871596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
871696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
871796402570Smrgfi
871896402570Smrg
871996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
872096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
872196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
872296402570Smrg	fi
872396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
872496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
872596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
872696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
872796402570Smrg  $as_echo_n "(cached) " >&6
872896402570Smrgelse
872996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
873096402570Smrg/* end confdefs.h.  */
873196402570Smrgint i;
873296402570Smrg_ACEOF
873396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
873496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
873596402570Smrgelse
873696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
873796402570Smrgfi
873896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
873996402570Smrgfi
874096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
874196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
874296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
874396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
874496402570Smrgfi
874596402570Smrg
874696402570Smrgfound="no"
874796402570Smrg
874896402570Smrg	if test $found = "no" ; then
874940c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
875096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
875196402570Smrg		fi
875296402570Smrg
875340c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
875496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
875596402570Smrg		fi
875696402570Smrg
875796402570Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
875896402570Smrg
875940c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
876040c5344fSmrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
87618abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
876296402570Smrg		if eval \${$cacheid+:} false; then :
876396402570Smrg  $as_echo_n "(cached) " >&6
876496402570Smrgelse
876596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
876696402570Smrg/* end confdefs.h.  */
876796402570Smrgint i;
876896402570Smrgint
876996402570Smrgmain ()
877096402570Smrg{
877196402570Smrg
877296402570Smrg  ;
877396402570Smrg  return 0;
877496402570Smrg}
877596402570Smrg_ACEOF
877696402570Smrgif ac_fn_c_try_link "$LINENO"; then :
877796402570Smrg  eval $cacheid=yes
877896402570Smrgelse
877996402570Smrg  eval $cacheid=no
878096402570Smrgfi
878196402570Smrgrm -f core conftest.err conftest.$ac_objext \
878296402570Smrg    conftest$ac_exeext conftest.$ac_ext
878396402570Smrgfi
878496402570Smrg
878596402570Smrg
878696402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
878796402570Smrg
878896402570Smrg		eval supported=\$$cacheid
878996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
879096402570Smrg$as_echo "$supported" >&6; }
879196402570Smrg		if test "$supported" = "yes" ; then
879296402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
879396402570Smrg			found="yes"
879496402570Smrg		fi
879596402570Smrg	fi
879696402570Smrg
879796402570Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
879896402570Smrgelse
879996402570Smrg{ $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
880096402570Smrg$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;}
880196402570Smrg
880296402570Smrg
880396402570Smrg
880496402570Smrg
880596402570Smrg
880696402570Smrg
880796402570Smrg
880896402570Smrg
880996402570Smrg
881096402570Smrg
881196402570Smrg
881296402570Smrg
881396402570Smrg
881496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
881596402570Smrg
881696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
881796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
881896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
881996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
882096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
882196402570Smrg  $as_echo_n "(cached) " >&6
882296402570Smrgelse
882396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
882496402570Smrg/* end confdefs.h.  */
882596402570Smrgint i;
882696402570Smrg_ACEOF
882796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
882896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
882996402570Smrgelse
883096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
883196402570Smrgfi
883296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
883396402570Smrgfi
883496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
883596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
883696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
883796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
883896402570Smrgfi
883996402570Smrg
884096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
884196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
884296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
884396402570Smrg	fi
884496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
884596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
884696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
884796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
884896402570Smrg  $as_echo_n "(cached) " >&6
884996402570Smrgelse
885096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
885196402570Smrg/* end confdefs.h.  */
885296402570Smrgint i;
885396402570Smrg_ACEOF
885496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
885596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
885696402570Smrgelse
885796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
885896402570Smrgfi
885996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
886096402570Smrgfi
886196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
886296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
886396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
886496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
886596402570Smrgfi
886696402570Smrg
886796402570Smrgfound="no"
886896402570Smrg
886996402570Smrg	if test $found = "no" ; then
887040c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
887196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
887296402570Smrg		fi
887396402570Smrg
887440c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
887596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
887696402570Smrg		fi
887796402570Smrg
887896402570Smrg		CFLAGS="$CFLAGS -Wimplicit"
887996402570Smrg
888040c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
888140c5344fSmrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
888296402570Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
888396402570Smrg		if eval \${$cacheid+:} false; then :
888496402570Smrg  $as_echo_n "(cached) " >&6
888596402570Smrgelse
888696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
888796402570Smrg/* end confdefs.h.  */
888896402570Smrgint i;
888996402570Smrgint
889096402570Smrgmain ()
889196402570Smrg{
889296402570Smrg
889396402570Smrg  ;
889496402570Smrg  return 0;
889596402570Smrg}
889696402570Smrg_ACEOF
889796402570Smrgif ac_fn_c_try_link "$LINENO"; then :
889896402570Smrg  eval $cacheid=yes
889996402570Smrgelse
890096402570Smrg  eval $cacheid=no
890196402570Smrgfi
890296402570Smrgrm -f core conftest.err conftest.$ac_objext \
890396402570Smrg    conftest$ac_exeext conftest.$ac_ext
890496402570Smrgfi
890596402570Smrg
890696402570Smrg
890796402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
890896402570Smrg
890996402570Smrg		eval supported=\$$cacheid
891096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
891196402570Smrg$as_echo "$supported" >&6; }
891296402570Smrg		if test "$supported" = "yes" ; then
891396402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
891496402570Smrg			found="yes"
891596402570Smrg		fi
891696402570Smrg	fi
891796402570Smrg
891896402570Smrg
891996402570Smrg
892096402570Smrg
892196402570Smrg
892296402570Smrg
892396402570Smrg
892496402570Smrg
892596402570Smrg
892696402570Smrg
892796402570Smrg
892896402570Smrg
892996402570Smrg
893096402570Smrg
893196402570Smrg
893296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
893396402570Smrg
893496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
893596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
893696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
893796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
893896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
893996402570Smrg  $as_echo_n "(cached) " >&6
894096402570Smrgelse
894196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
894296402570Smrg/* end confdefs.h.  */
894396402570Smrgint i;
894496402570Smrg_ACEOF
894596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
894696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
894796402570Smrgelse
894896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
894996402570Smrgfi
895096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
895196402570Smrgfi
895296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
895396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
895496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
895596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
895696402570Smrgfi
895796402570Smrg
895896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
895996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
896096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
896196402570Smrg	fi
896296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
896396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
896496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
896596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
896696402570Smrg  $as_echo_n "(cached) " >&6
896796402570Smrgelse
896896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
896996402570Smrg/* end confdefs.h.  */
897096402570Smrgint i;
897196402570Smrg_ACEOF
897296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
897396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
897496402570Smrgelse
897596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
897696402570Smrgfi
897796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
897896402570Smrgfi
897996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
898096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
898196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
898296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
898396402570Smrgfi
898496402570Smrg
898596402570Smrgfound="no"
898696402570Smrg
898796402570Smrg	if test $found = "no" ; then
898840c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
898996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
899096402570Smrg		fi
899196402570Smrg
899240c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
899396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
899496402570Smrg		fi
899596402570Smrg
899696402570Smrg		CFLAGS="$CFLAGS -Wnonnull"
899796402570Smrg
899840c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
899940c5344fSmrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
900096402570Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
900196402570Smrg		if eval \${$cacheid+:} false; then :
900296402570Smrg  $as_echo_n "(cached) " >&6
900396402570Smrgelse
900496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
900596402570Smrg/* end confdefs.h.  */
900696402570Smrgint i;
900796402570Smrgint
900896402570Smrgmain ()
900996402570Smrg{
901096402570Smrg
901196402570Smrg  ;
901296402570Smrg  return 0;
901396402570Smrg}
901496402570Smrg_ACEOF
901596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
901696402570Smrg  eval $cacheid=yes
901796402570Smrgelse
901896402570Smrg  eval $cacheid=no
901996402570Smrgfi
902096402570Smrgrm -f core conftest.err conftest.$ac_objext \
902196402570Smrg    conftest$ac_exeext conftest.$ac_ext
902296402570Smrgfi
902396402570Smrg
902496402570Smrg
902596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
902696402570Smrg
902796402570Smrg		eval supported=\$$cacheid
902896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
902996402570Smrg$as_echo "$supported" >&6; }
903096402570Smrg		if test "$supported" = "yes" ; then
903196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
903296402570Smrg			found="yes"
903396402570Smrg		fi
903496402570Smrg	fi
903596402570Smrg
903696402570Smrg
903796402570Smrg
903896402570Smrg
903996402570Smrg
904096402570Smrg
904196402570Smrg
904296402570Smrg
904396402570Smrg
904496402570Smrg
904596402570Smrg
904696402570Smrg
904796402570Smrg
904896402570Smrg
904996402570Smrg
905096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
905196402570Smrg
905296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
905396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
905496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
905596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
905696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
905796402570Smrg  $as_echo_n "(cached) " >&6
905896402570Smrgelse
905996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
906096402570Smrg/* end confdefs.h.  */
906196402570Smrgint i;
906296402570Smrg_ACEOF
906396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
906496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
906596402570Smrgelse
906696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
906796402570Smrgfi
906896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
906996402570Smrgfi
907096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
907196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
907296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
907396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
907496402570Smrgfi
907596402570Smrg
907696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
907796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
907896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
907996402570Smrg	fi
908096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
908196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
908296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
908396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
908496402570Smrg  $as_echo_n "(cached) " >&6
908596402570Smrgelse
908696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
908796402570Smrg/* end confdefs.h.  */
908896402570Smrgint i;
908996402570Smrg_ACEOF
909096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
909196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
909296402570Smrgelse
909396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
909496402570Smrgfi
909596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
909696402570Smrgfi
909796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
909896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
909996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
910096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
910196402570Smrgfi
910296402570Smrg
910396402570Smrgfound="no"
910496402570Smrg
910596402570Smrg	if test $found = "no" ; then
910640c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
910796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
910896402570Smrg		fi
910996402570Smrg
911040c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
911196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
911296402570Smrg		fi
911396402570Smrg
911496402570Smrg		CFLAGS="$CFLAGS -Winit-self"
911596402570Smrg
911640c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
911740c5344fSmrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
911896402570Smrg		cacheid=xorg_cv_cc_flag__Winit_self
911996402570Smrg		if eval \${$cacheid+:} false; then :
912096402570Smrg  $as_echo_n "(cached) " >&6
912196402570Smrgelse
912296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
912396402570Smrg/* end confdefs.h.  */
912496402570Smrgint i;
912596402570Smrgint
912696402570Smrgmain ()
912796402570Smrg{
912896402570Smrg
912996402570Smrg  ;
913096402570Smrg  return 0;
913196402570Smrg}
913296402570Smrg_ACEOF
913396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
913496402570Smrg  eval $cacheid=yes
913596402570Smrgelse
913696402570Smrg  eval $cacheid=no
913796402570Smrgfi
913896402570Smrgrm -f core conftest.err conftest.$ac_objext \
913996402570Smrg    conftest$ac_exeext conftest.$ac_ext
914096402570Smrgfi
914196402570Smrg
914296402570Smrg
914396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
914496402570Smrg
914596402570Smrg		eval supported=\$$cacheid
914696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
914796402570Smrg$as_echo "$supported" >&6; }
914896402570Smrg		if test "$supported" = "yes" ; then
914996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
915096402570Smrg			found="yes"
915196402570Smrg		fi
915296402570Smrg	fi
915396402570Smrg
915496402570Smrg
915596402570Smrg
915696402570Smrg
915796402570Smrg
915896402570Smrg
915996402570Smrg
916096402570Smrg
916196402570Smrg
916296402570Smrg
916396402570Smrg
916496402570Smrg
916596402570Smrg
916696402570Smrg
916796402570Smrg
916896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
916996402570Smrg
917096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
917196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
917296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
917396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
917496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
917596402570Smrg  $as_echo_n "(cached) " >&6
917696402570Smrgelse
917796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
917896402570Smrg/* end confdefs.h.  */
917996402570Smrgint i;
918096402570Smrg_ACEOF
918196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
918296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
918396402570Smrgelse
918496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
918596402570Smrgfi
918696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
918796402570Smrgfi
918896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
918996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
919096402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
919196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
919296402570Smrgfi
919396402570Smrg
919496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
919596402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
919696402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
919796402570Smrg	fi
919896402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
919996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
920096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
920196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
920296402570Smrg  $as_echo_n "(cached) " >&6
920396402570Smrgelse
920496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
920596402570Smrg/* end confdefs.h.  */
920696402570Smrgint i;
920796402570Smrg_ACEOF
920896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
920996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
921096402570Smrgelse
921196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
921296402570Smrgfi
921396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
921496402570Smrgfi
921596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
921696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
921796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
921896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
921996402570Smrgfi
922096402570Smrg
922196402570Smrgfound="no"
922296402570Smrg
922396402570Smrg	if test $found = "no" ; then
922440c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
922596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
922696402570Smrg		fi
922796402570Smrg
922840c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
922996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
923096402570Smrg		fi
923196402570Smrg
923296402570Smrg		CFLAGS="$CFLAGS -Wmain"
923396402570Smrg
923440c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
923540c5344fSmrg$as_echo_n "checking if $CC supports -Wmain... " >&6; }
923696402570Smrg		cacheid=xorg_cv_cc_flag__Wmain
923796402570Smrg		if eval \${$cacheid+:} false; then :
923896402570Smrg  $as_echo_n "(cached) " >&6
923996402570Smrgelse
924096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
924196402570Smrg/* end confdefs.h.  */
924296402570Smrgint i;
924396402570Smrgint
924496402570Smrgmain ()
924596402570Smrg{
924696402570Smrg
924796402570Smrg  ;
924896402570Smrg  return 0;
924996402570Smrg}
925096402570Smrg_ACEOF
925196402570Smrgif ac_fn_c_try_link "$LINENO"; then :
925296402570Smrg  eval $cacheid=yes
925396402570Smrgelse
925496402570Smrg  eval $cacheid=no
925596402570Smrgfi
925696402570Smrgrm -f core conftest.err conftest.$ac_objext \
925796402570Smrg    conftest$ac_exeext conftest.$ac_ext
925896402570Smrgfi
925996402570Smrg
926096402570Smrg
926196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
926296402570Smrg
926396402570Smrg		eval supported=\$$cacheid
926496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
926596402570Smrg$as_echo "$supported" >&6; }
926696402570Smrg		if test "$supported" = "yes" ; then
926796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
926896402570Smrg			found="yes"
926996402570Smrg		fi
927096402570Smrg	fi
927196402570Smrg
927296402570Smrg
927396402570Smrg
927496402570Smrg
927596402570Smrg
927696402570Smrg
927796402570Smrg
927896402570Smrg
927996402570Smrg
928096402570Smrg
928196402570Smrg
928296402570Smrg
928396402570Smrg
928496402570Smrg
928596402570Smrg
928696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
928796402570Smrg
928896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
928996402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
929096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
929196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
929296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
929396402570Smrg  $as_echo_n "(cached) " >&6
929496402570Smrgelse
929596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
929696402570Smrg/* end confdefs.h.  */
929796402570Smrgint i;
929896402570Smrg_ACEOF
929996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
930096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
930196402570Smrgelse
930296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
930396402570Smrgfi
930496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
930596402570Smrgfi
930696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
930796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
930896402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
930996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
931096402570Smrgfi
931196402570Smrg
931296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
931396402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
931496402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
931596402570Smrg	fi
931696402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
931796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
931896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
931996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
932096402570Smrg  $as_echo_n "(cached) " >&6
932196402570Smrgelse
932296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
932396402570Smrg/* end confdefs.h.  */
932496402570Smrgint i;
932596402570Smrg_ACEOF
932696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
932796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
932896402570Smrgelse
932996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
933096402570Smrgfi
933196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
933296402570Smrgfi
933396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
933496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
933596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
933696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
933796402570Smrgfi
933896402570Smrg
933996402570Smrgfound="no"
934096402570Smrg
934196402570Smrg	if test $found = "no" ; then
934240c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
934396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
934496402570Smrg		fi
934596402570Smrg
934640c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
934796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
934896402570Smrg		fi
934996402570Smrg
935096402570Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
935196402570Smrg
935240c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
935340c5344fSmrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
935496402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
935596402570Smrg		if eval \${$cacheid+:} false; then :
935696402570Smrg  $as_echo_n "(cached) " >&6
935796402570Smrgelse
935896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
935996402570Smrg/* end confdefs.h.  */
936096402570Smrgint i;
936196402570Smrgint
936296402570Smrgmain ()
936396402570Smrg{
936496402570Smrg
936596402570Smrg  ;
936696402570Smrg  return 0;
936796402570Smrg}
936896402570Smrg_ACEOF
936996402570Smrgif ac_fn_c_try_link "$LINENO"; then :
937096402570Smrg  eval $cacheid=yes
937196402570Smrgelse
937296402570Smrg  eval $cacheid=no
937396402570Smrgfi
937496402570Smrgrm -f core conftest.err conftest.$ac_objext \
937596402570Smrg    conftest$ac_exeext conftest.$ac_ext
937696402570Smrgfi
937796402570Smrg
937896402570Smrg
937996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
938096402570Smrg
938196402570Smrg		eval supported=\$$cacheid
938296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
938396402570Smrg$as_echo "$supported" >&6; }
938496402570Smrg		if test "$supported" = "yes" ; then
938596402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
938696402570Smrg			found="yes"
938796402570Smrg		fi
938896402570Smrg	fi
938996402570Smrg
939096402570Smrg
939196402570Smrg
939296402570Smrg
939396402570Smrg
939496402570Smrg
939596402570Smrg
939696402570Smrg
939796402570Smrg
939896402570Smrg
939996402570Smrg
940096402570Smrg
940196402570Smrg
940296402570Smrg
940396402570Smrg
940496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
940596402570Smrg
940696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
940796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
940896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
940996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
941096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
941196402570Smrg  $as_echo_n "(cached) " >&6
941296402570Smrgelse
941396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
941496402570Smrg/* end confdefs.h.  */
941596402570Smrgint i;
941696402570Smrg_ACEOF
941796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
941896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
941996402570Smrgelse
942096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
942196402570Smrgfi
942296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
942396402570Smrgfi
942496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
942596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
942696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
942796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
942896402570Smrgfi
942996402570Smrg
943096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
943196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
943296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
943396402570Smrg	fi
943496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
943596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
943696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
943796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
943896402570Smrg  $as_echo_n "(cached) " >&6
943996402570Smrgelse
944096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944196402570Smrg/* end confdefs.h.  */
944296402570Smrgint i;
944396402570Smrg_ACEOF
944496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
944596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
944696402570Smrgelse
944796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
944896402570Smrgfi
944996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
945096402570Smrgfi
945196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
945296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
945396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
945496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
945596402570Smrgfi
945696402570Smrg
945796402570Smrgfound="no"
945896402570Smrg
945996402570Smrg	if test $found = "no" ; then
946040c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
946196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
946296402570Smrg		fi
946396402570Smrg
946440c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
946596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
946696402570Smrg		fi
946796402570Smrg
946896402570Smrg		CFLAGS="$CFLAGS -Wsequence-point"
946996402570Smrg
947040c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
947140c5344fSmrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
947296402570Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
947396402570Smrg		if eval \${$cacheid+:} false; then :
947496402570Smrg  $as_echo_n "(cached) " >&6
947596402570Smrgelse
947696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
947796402570Smrg/* end confdefs.h.  */
947896402570Smrgint i;
947996402570Smrgint
948096402570Smrgmain ()
948196402570Smrg{
948296402570Smrg
948396402570Smrg  ;
948496402570Smrg  return 0;
948596402570Smrg}
948696402570Smrg_ACEOF
948796402570Smrgif ac_fn_c_try_link "$LINENO"; then :
948896402570Smrg  eval $cacheid=yes
948996402570Smrgelse
949096402570Smrg  eval $cacheid=no
949196402570Smrgfi
949296402570Smrgrm -f core conftest.err conftest.$ac_objext \
949396402570Smrg    conftest$ac_exeext conftest.$ac_ext
949496402570Smrgfi
949596402570Smrg
949696402570Smrg
949796402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
949896402570Smrg
949996402570Smrg		eval supported=\$$cacheid
950096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
950196402570Smrg$as_echo "$supported" >&6; }
950296402570Smrg		if test "$supported" = "yes" ; then
950396402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
950496402570Smrg			found="yes"
950596402570Smrg		fi
950696402570Smrg	fi
950796402570Smrg
950896402570Smrg
950996402570Smrg
951096402570Smrg
951196402570Smrg
951296402570Smrg
951396402570Smrg
951496402570Smrg
951596402570Smrg
951696402570Smrg
951796402570Smrg
951896402570Smrg
951996402570Smrg
952096402570Smrg
952196402570Smrg
952296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
952396402570Smrg
952496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
952596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
952696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
952796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
952896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
952996402570Smrg  $as_echo_n "(cached) " >&6
953096402570Smrgelse
953196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953296402570Smrg/* end confdefs.h.  */
953396402570Smrgint i;
953496402570Smrg_ACEOF
953596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
953696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
953796402570Smrgelse
953896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
953996402570Smrgfi
954096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
954196402570Smrgfi
954296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
954396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
954496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
954596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
954696402570Smrgfi
954796402570Smrg
954896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
954996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
955096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
955196402570Smrg	fi
955296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
955396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
955496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
955596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
955696402570Smrg  $as_echo_n "(cached) " >&6
955796402570Smrgelse
955896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
955996402570Smrg/* end confdefs.h.  */
956096402570Smrgint i;
956196402570Smrg_ACEOF
956296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
956396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
956496402570Smrgelse
956596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
956696402570Smrgfi
956796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
956896402570Smrgfi
956996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
957096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
957196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
957296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
957396402570Smrgfi
957496402570Smrg
957596402570Smrgfound="no"
957696402570Smrg
957796402570Smrg	if test $found = "no" ; then
957840c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
957996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
958096402570Smrg		fi
958196402570Smrg
958240c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
958396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
958496402570Smrg		fi
958596402570Smrg
958696402570Smrg		CFLAGS="$CFLAGS -Wreturn-type"
958796402570Smrg
958840c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
958940c5344fSmrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
959096402570Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
959196402570Smrg		if eval \${$cacheid+:} false; then :
959296402570Smrg  $as_echo_n "(cached) " >&6
959396402570Smrgelse
959496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
959596402570Smrg/* end confdefs.h.  */
959696402570Smrgint i;
959796402570Smrgint
959896402570Smrgmain ()
959996402570Smrg{
960096402570Smrg
960196402570Smrg  ;
960296402570Smrg  return 0;
960396402570Smrg}
960496402570Smrg_ACEOF
960596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
960696402570Smrg  eval $cacheid=yes
960796402570Smrgelse
960896402570Smrg  eval $cacheid=no
960996402570Smrgfi
961096402570Smrgrm -f core conftest.err conftest.$ac_objext \
961196402570Smrg    conftest$ac_exeext conftest.$ac_ext
961296402570Smrgfi
961396402570Smrg
961496402570Smrg
961596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
961696402570Smrg
961796402570Smrg		eval supported=\$$cacheid
961896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
961996402570Smrg$as_echo "$supported" >&6; }
962096402570Smrg		if test "$supported" = "yes" ; then
962196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
962296402570Smrg			found="yes"
962396402570Smrg		fi
962496402570Smrg	fi
962596402570Smrg
962696402570Smrg
962796402570Smrg
962896402570Smrg
962996402570Smrg
963096402570Smrg
963196402570Smrg
963296402570Smrg
963396402570Smrg
963496402570Smrg
963596402570Smrg
963696402570Smrg
963796402570Smrg
963896402570Smrg
963996402570Smrg
964096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
964196402570Smrg
964296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
964396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
964496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
964596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
964696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
964796402570Smrg  $as_echo_n "(cached) " >&6
964896402570Smrgelse
964996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
965096402570Smrg/* end confdefs.h.  */
965196402570Smrgint i;
965296402570Smrg_ACEOF
965396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
965496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
965596402570Smrgelse
965696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
965796402570Smrgfi
965896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
965996402570Smrgfi
966096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
966196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
966296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
966396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
966496402570Smrgfi
966596402570Smrg
966696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
966796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
966896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
966996402570Smrg	fi
967096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
967196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
967296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
967396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
967496402570Smrg  $as_echo_n "(cached) " >&6
967596402570Smrgelse
967696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
967796402570Smrg/* end confdefs.h.  */
967896402570Smrgint i;
967996402570Smrg_ACEOF
968096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
968196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
968296402570Smrgelse
968396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
968496402570Smrgfi
968596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
968696402570Smrgfi
968796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
968896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
968996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
969096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
969196402570Smrgfi
969296402570Smrg
969396402570Smrgfound="no"
969496402570Smrg
969596402570Smrg	if test $found = "no" ; then
969640c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
969796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
969896402570Smrg		fi
969996402570Smrg
970040c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
970196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
970296402570Smrg		fi
970396402570Smrg
970496402570Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
970596402570Smrg
970640c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
970740c5344fSmrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
970896402570Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
970996402570Smrg		if eval \${$cacheid+:} false; then :
971096402570Smrg  $as_echo_n "(cached) " >&6
971196402570Smrgelse
971296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
971396402570Smrg/* end confdefs.h.  */
971496402570Smrgint i;
971596402570Smrgint
971696402570Smrgmain ()
971796402570Smrg{
971896402570Smrg
971996402570Smrg  ;
972096402570Smrg  return 0;
972196402570Smrg}
972296402570Smrg_ACEOF
972396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
972496402570Smrg  eval $cacheid=yes
972596402570Smrgelse
972696402570Smrg  eval $cacheid=no
972796402570Smrgfi
972896402570Smrgrm -f core conftest.err conftest.$ac_objext \
972996402570Smrg    conftest$ac_exeext conftest.$ac_ext
973096402570Smrgfi
973196402570Smrg
973296402570Smrg
973396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
973496402570Smrg
973596402570Smrg		eval supported=\$$cacheid
973696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
973796402570Smrg$as_echo "$supported" >&6; }
973896402570Smrg		if test "$supported" = "yes" ; then
973996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
974096402570Smrg			found="yes"
974196402570Smrg		fi
974296402570Smrg	fi
974396402570Smrg
974496402570Smrg
974596402570Smrg
974696402570Smrg
974796402570Smrg
974896402570Smrg
974996402570Smrg
975096402570Smrg
975196402570Smrg
975296402570Smrg
975396402570Smrg
975496402570Smrg
975596402570Smrg
975696402570Smrg
975796402570Smrg
975896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
975996402570Smrg
976096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
976196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
976296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
976396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
976496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
976596402570Smrg  $as_echo_n "(cached) " >&6
976696402570Smrgelse
976796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
976896402570Smrg/* end confdefs.h.  */
976996402570Smrgint i;
977096402570Smrg_ACEOF
977196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
977296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
977396402570Smrgelse
977496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
977596402570Smrgfi
977696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
977796402570Smrgfi
977896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
977996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
978096402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
978196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
978296402570Smrgfi
978396402570Smrg
978496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
978596402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
978696402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
978796402570Smrg	fi
978896402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
978996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
979096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
979196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
979296402570Smrg  $as_echo_n "(cached) " >&6
979396402570Smrgelse
979496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979596402570Smrg/* end confdefs.h.  */
979696402570Smrgint i;
979796402570Smrg_ACEOF
979896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
979996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
980096402570Smrgelse
980196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
980296402570Smrgfi
980396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
980496402570Smrgfi
980596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
980696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
980796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
980896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
980996402570Smrgfi
981096402570Smrg
981196402570Smrgfound="no"
981296402570Smrg
981396402570Smrg	if test $found = "no" ; then
981440c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
981596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
981696402570Smrg		fi
981796402570Smrg
981840c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
981996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
982096402570Smrg		fi
982196402570Smrg
982296402570Smrg		CFLAGS="$CFLAGS -Warray-bounds"
982396402570Smrg
982440c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
982540c5344fSmrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
982696402570Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
982796402570Smrg		if eval \${$cacheid+:} false; then :
982896402570Smrg  $as_echo_n "(cached) " >&6
982996402570Smrgelse
983096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
983196402570Smrg/* end confdefs.h.  */
983296402570Smrgint i;
983396402570Smrgint
983496402570Smrgmain ()
983596402570Smrg{
983696402570Smrg
983796402570Smrg  ;
983896402570Smrg  return 0;
983996402570Smrg}
984096402570Smrg_ACEOF
984196402570Smrgif ac_fn_c_try_link "$LINENO"; then :
984296402570Smrg  eval $cacheid=yes
984396402570Smrgelse
984496402570Smrg  eval $cacheid=no
984596402570Smrgfi
984696402570Smrgrm -f core conftest.err conftest.$ac_objext \
984796402570Smrg    conftest$ac_exeext conftest.$ac_ext
984896402570Smrgfi
984996402570Smrg
985096402570Smrg
985196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
985296402570Smrg
985396402570Smrg		eval supported=\$$cacheid
985496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
985596402570Smrg$as_echo "$supported" >&6; }
985696402570Smrg		if test "$supported" = "yes" ; then
985796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
985896402570Smrg			found="yes"
985996402570Smrg		fi
986096402570Smrg	fi
986196402570Smrg
986296402570Smrg
986396402570Smrg
986496402570Smrg
986596402570Smrg
986696402570Smrg
986796402570Smrg
986896402570Smrg
986996402570Smrg
987096402570Smrg
987196402570Smrg
987296402570Smrg
987396402570Smrg
987496402570Smrg
987596402570Smrg
987696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
987796402570Smrg
987896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
987996402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
988096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
988196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
988296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
988396402570Smrg  $as_echo_n "(cached) " >&6
988496402570Smrgelse
988596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
988696402570Smrg/* end confdefs.h.  */
988796402570Smrgint i;
988896402570Smrg_ACEOF
988996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
989096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
989196402570Smrgelse
989296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
989396402570Smrgfi
989496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
989596402570Smrgfi
989696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
989796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
989896402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
989996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
990096402570Smrgfi
990196402570Smrg
990296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
990396402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
990496402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
990596402570Smrg	fi
990696402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
990796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
990896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
990996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
991096402570Smrg  $as_echo_n "(cached) " >&6
991196402570Smrgelse
991296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
991396402570Smrg/* end confdefs.h.  */
991496402570Smrgint i;
991596402570Smrg_ACEOF
991696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
991796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
991896402570Smrgelse
991996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
992096402570Smrgfi
992196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
992296402570Smrgfi
992396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
992496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
992596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
992696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
992796402570Smrgfi
992896402570Smrg
992996402570Smrgfound="no"
993096402570Smrg
993196402570Smrg	if test $found = "no" ; then
993240c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
993396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
993496402570Smrg		fi
993596402570Smrg
993640c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
993796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
993896402570Smrg		fi
993996402570Smrg
994096402570Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
994196402570Smrg
994240c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
994340c5344fSmrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
994496402570Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
994596402570Smrg		if eval \${$cacheid+:} false; then :
994696402570Smrg  $as_echo_n "(cached) " >&6
994796402570Smrgelse
994896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
994996402570Smrg/* end confdefs.h.  */
995096402570Smrgint i;
995196402570Smrgint
995296402570Smrgmain ()
995396402570Smrg{
995496402570Smrg
995596402570Smrg  ;
995696402570Smrg  return 0;
995796402570Smrg}
995896402570Smrg_ACEOF
995996402570Smrgif ac_fn_c_try_link "$LINENO"; then :
996096402570Smrg  eval $cacheid=yes
996196402570Smrgelse
996296402570Smrg  eval $cacheid=no
996396402570Smrgfi
996496402570Smrgrm -f core conftest.err conftest.$ac_objext \
996596402570Smrg    conftest$ac_exeext conftest.$ac_ext
996696402570Smrgfi
996796402570Smrg
996896402570Smrg
996996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
997096402570Smrg
997196402570Smrg		eval supported=\$$cacheid
997296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
997396402570Smrg$as_echo "$supported" >&6; }
997496402570Smrg		if test "$supported" = "yes" ; then
997596402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
997696402570Smrg			found="yes"
997796402570Smrg		fi
997896402570Smrg	fi
997996402570Smrg
998096402570Smrg
998196402570Smrg
998296402570Smrg
998396402570Smrg
998496402570Smrg
998596402570Smrg
998696402570Smrg
998796402570Smrg
998896402570Smrg
998996402570Smrg
999096402570Smrg
999196402570Smrg
999296402570Smrg
999396402570Smrg
999496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
999596402570Smrg
999696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
999796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
999896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
999996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1000096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1000196402570Smrg  $as_echo_n "(cached) " >&6
1000296402570Smrgelse
1000396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1000496402570Smrg/* end confdefs.h.  */
1000596402570Smrgint i;
1000696402570Smrg_ACEOF
1000796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1000896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1000996402570Smrgelse
1001096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1001196402570Smrgfi
1001296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1001396402570Smrgfi
1001496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1001596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1001696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1001796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1001896402570Smrgfi
1001996402570Smrg
1002096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1002196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1002296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1002396402570Smrg	fi
1002496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1002596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1002696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1002796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1002896402570Smrg  $as_echo_n "(cached) " >&6
1002996402570Smrgelse
1003096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1003196402570Smrg/* end confdefs.h.  */
1003296402570Smrgint i;
1003396402570Smrg_ACEOF
1003496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1003596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1003696402570Smrgelse
1003796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1003896402570Smrgfi
1003996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1004096402570Smrgfi
1004196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1004296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1004396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1004496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1004596402570Smrgfi
1004696402570Smrg
1004796402570Smrgfound="no"
1004896402570Smrg
1004996402570Smrg	if test $found = "no" ; then
1005040c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1005196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1005296402570Smrg		fi
1005396402570Smrg
1005440c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1005596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1005696402570Smrg		fi
1005796402570Smrg
1005896402570Smrg		CFLAGS="$CFLAGS -Waddress"
1005996402570Smrg
1006040c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
1006140c5344fSmrg$as_echo_n "checking if $CC supports -Waddress... " >&6; }
1006296402570Smrg		cacheid=xorg_cv_cc_flag__Waddress
1006396402570Smrg		if eval \${$cacheid+:} false; then :
1006496402570Smrg  $as_echo_n "(cached) " >&6
1006596402570Smrgelse
1006696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1006796402570Smrg/* end confdefs.h.  */
1006896402570Smrgint i;
1006996402570Smrgint
1007096402570Smrgmain ()
1007196402570Smrg{
1007296402570Smrg
1007396402570Smrg  ;
1007496402570Smrg  return 0;
1007596402570Smrg}
1007696402570Smrg_ACEOF
1007796402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1007896402570Smrg  eval $cacheid=yes
1007996402570Smrgelse
1008096402570Smrg  eval $cacheid=no
1008196402570Smrgfi
1008296402570Smrgrm -f core conftest.err conftest.$ac_objext \
1008396402570Smrg    conftest$ac_exeext conftest.$ac_ext
1008496402570Smrgfi
1008596402570Smrg
1008696402570Smrg
1008796402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1008896402570Smrg
1008996402570Smrg		eval supported=\$$cacheid
1009096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1009196402570Smrg$as_echo "$supported" >&6; }
1009296402570Smrg		if test "$supported" = "yes" ; then
1009396402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
1009496402570Smrg			found="yes"
1009596402570Smrg		fi
1009696402570Smrg	fi
1009796402570Smrg
1009896402570Smrg
1009996402570Smrg
1010096402570Smrg
1010196402570Smrg
1010296402570Smrg
1010396402570Smrg
1010496402570Smrg
1010596402570Smrg
1010696402570Smrg
1010796402570Smrg
1010896402570Smrg
1010996402570Smrg
1011096402570Smrg
1011196402570Smrg
1011296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1011396402570Smrg
1011496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1011596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1011696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1011796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1011896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1011996402570Smrg  $as_echo_n "(cached) " >&6
1012096402570Smrgelse
1012196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1012296402570Smrg/* end confdefs.h.  */
1012396402570Smrgint i;
1012496402570Smrg_ACEOF
1012596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1012696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1012796402570Smrgelse
1012896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1012996402570Smrgfi
1013096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1013196402570Smrgfi
1013296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1013396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1013496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1013596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1013696402570Smrgfi
1013796402570Smrg
1013896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1013996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1014096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1014196402570Smrg	fi
1014296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1014396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1014496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1014596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1014696402570Smrg  $as_echo_n "(cached) " >&6
1014796402570Smrgelse
1014896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1014996402570Smrg/* end confdefs.h.  */
1015096402570Smrgint i;
1015196402570Smrg_ACEOF
1015296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1015396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1015496402570Smrgelse
1015596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1015696402570Smrgfi
1015796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1015896402570Smrgfi
1015996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1016096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1016196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1016296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1016396402570Smrgfi
1016496402570Smrg
1016596402570Smrgfound="no"
1016696402570Smrg
1016796402570Smrg	if test $found = "no" ; then
1016840c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1016996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1017096402570Smrg		fi
1017196402570Smrg
1017240c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1017396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1017496402570Smrg		fi
1017596402570Smrg
1017696402570Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
1017796402570Smrg
1017840c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
1017940c5344fSmrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
1018096402570Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
1018196402570Smrg		if eval \${$cacheid+:} false; then :
1018296402570Smrg  $as_echo_n "(cached) " >&6
1018396402570Smrgelse
1018496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1018596402570Smrg/* end confdefs.h.  */
1018696402570Smrgint i;
1018796402570Smrgint
1018896402570Smrgmain ()
1018996402570Smrg{
1019096402570Smrg
1019196402570Smrg  ;
1019296402570Smrg  return 0;
1019396402570Smrg}
1019496402570Smrg_ACEOF
1019596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1019696402570Smrg  eval $cacheid=yes
1019796402570Smrgelse
1019896402570Smrg  eval $cacheid=no
1019996402570Smrgfi
1020096402570Smrgrm -f core conftest.err conftest.$ac_objext \
1020196402570Smrg    conftest$ac_exeext conftest.$ac_ext
1020296402570Smrgfi
1020396402570Smrg
1020496402570Smrg
1020596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1020696402570Smrg
1020796402570Smrg		eval supported=\$$cacheid
1020896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1020996402570Smrg$as_echo "$supported" >&6; }
1021096402570Smrg		if test "$supported" = "yes" ; then
1021196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
1021296402570Smrg			found="yes"
1021396402570Smrg		fi
1021496402570Smrg	fi
1021596402570Smrg
1021696402570Smrg
1021796402570Smrg
1021896402570Smrg
1021996402570Smrg
1022096402570Smrg
1022196402570Smrg
1022296402570Smrg
1022396402570Smrg
1022496402570Smrg
1022596402570Smrg
1022696402570Smrg
1022796402570Smrg
1022896402570Smrg
1022996402570Smrg
1023096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1023196402570Smrg
1023296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1023396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1023496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1023596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1023696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1023796402570Smrg  $as_echo_n "(cached) " >&6
1023896402570Smrgelse
1023996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1024096402570Smrg/* end confdefs.h.  */
1024196402570Smrgint i;
1024296402570Smrg_ACEOF
1024396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1024496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1024596402570Smrgelse
1024696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1024796402570Smrgfi
1024896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1024996402570Smrgfi
1025096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1025196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1025296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1025396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1025496402570Smrgfi
1025596402570Smrg
1025696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1025796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1025896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1025996402570Smrg	fi
1026096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1026196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1026296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1026396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1026496402570Smrg  $as_echo_n "(cached) " >&6
1026596402570Smrgelse
1026696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1026796402570Smrg/* end confdefs.h.  */
1026896402570Smrgint i;
1026996402570Smrg_ACEOF
1027096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1027196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1027296402570Smrgelse
1027396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1027496402570Smrgfi
1027596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1027696402570Smrgfi
1027796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1027896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1027996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1028096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1028196402570Smrgfi
1028296402570Smrg
1028396402570Smrgfound="no"
1028496402570Smrg
1028596402570Smrg	if test $found = "no" ; then
1028640c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1028796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1028896402570Smrg		fi
1028996402570Smrg
1029040c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1029196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1029296402570Smrg		fi
1029396402570Smrg
1029496402570Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
1029596402570Smrg
1029640c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
1029740c5344fSmrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
1029896402570Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
1029996402570Smrg		if eval \${$cacheid+:} false; then :
1030096402570Smrg  $as_echo_n "(cached) " >&6
1030196402570Smrgelse
1030296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1030396402570Smrg/* end confdefs.h.  */
1030496402570Smrgint i;
1030596402570Smrgint
1030696402570Smrgmain ()
1030796402570Smrg{
1030896402570Smrg
1030996402570Smrg  ;
1031096402570Smrg  return 0;
1031196402570Smrg}
1031296402570Smrg_ACEOF
1031396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1031496402570Smrg  eval $cacheid=yes
1031596402570Smrgelse
1031696402570Smrg  eval $cacheid=no
1031796402570Smrgfi
1031896402570Smrgrm -f core conftest.err conftest.$ac_objext \
1031996402570Smrg    conftest$ac_exeext conftest.$ac_ext
1032096402570Smrgfi
1032196402570Smrg
1032296402570Smrg
1032396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1032496402570Smrg
1032596402570Smrg		eval supported=\$$cacheid
1032696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1032796402570Smrg$as_echo "$supported" >&6; }
1032896402570Smrg		if test "$supported" = "yes" ; then
1032996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
1033096402570Smrg			found="yes"
1033196402570Smrg		fi
1033296402570Smrg	fi
1033396402570Smrg
1033496402570Smrg
1033596402570Smrgfi
1033696402570Smrg
1033796402570Smrg
1033896402570Smrg
1033996402570Smrg
1034096402570Smrg
1034196402570Smrg
1034296402570Smrg
1034396402570Smrg		CWARNFLAGS="$BASE_CFLAGS"
1034496402570Smrg		if  test "x$GCC" = xyes ; then
1034596402570Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
1034696402570Smrg		fi
1034796402570Smrg
1034896402570Smrg
1034996402570Smrg
1035096402570Smrg
1035196402570Smrg
1035296402570Smrg
1035396402570Smrg
1035496402570Smrg
1035596402570Smrg# Check whether --enable-strict-compilation was given.
1035696402570Smrgif test "${enable_strict_compilation+set}" = set; then :
1035796402570Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
1035896402570Smrgelse
1035996402570Smrg  STRICT_COMPILE=no
1036096402570Smrgfi
1036196402570Smrg
1036296402570Smrg
1036396402570Smrg
1036496402570Smrg
1036596402570Smrg
1036696402570Smrg
1036796402570SmrgSTRICT_CFLAGS=""
1036896402570Smrg
1036996402570Smrg
1037096402570Smrg
1037196402570Smrg
1037296402570Smrg
1037396402570Smrg
1037496402570Smrg
1037596402570Smrg
1037696402570Smrg
1037796402570Smrg
1037896402570Smrg
1037996402570Smrg
1038096402570Smrg
1038196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1038296402570Smrg
1038396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1038496402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1038596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1038696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1038796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1038896402570Smrg  $as_echo_n "(cached) " >&6
1038996402570Smrgelse
1039096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1039196402570Smrg/* end confdefs.h.  */
1039296402570Smrgint i;
1039396402570Smrg_ACEOF
1039496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1039596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1039696402570Smrgelse
1039796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1039896402570Smrgfi
1039996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1040096402570Smrgfi
1040196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1040296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1040396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1040496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1040596402570Smrgfi
1040696402570Smrg
1040796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1040896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1040996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1041096402570Smrg	fi
1041196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1041296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1041396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1041496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1041596402570Smrg  $as_echo_n "(cached) " >&6
1041696402570Smrgelse
1041796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1041896402570Smrg/* end confdefs.h.  */
1041996402570Smrgint i;
1042096402570Smrg_ACEOF
1042196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1042296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1042396402570Smrgelse
1042496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1042596402570Smrgfi
1042696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1042796402570Smrgfi
1042896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1042996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1043096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1043196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1043296402570Smrgfi
1043396402570Smrg
1043496402570Smrgfound="no"
1043596402570Smrg
1043696402570Smrg	if test $found = "no" ; then
1043740c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1043896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1043996402570Smrg		fi
1044096402570Smrg
1044140c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1044296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1044396402570Smrg		fi
1044496402570Smrg
1044596402570Smrg		CFLAGS="$CFLAGS -pedantic"
1044696402570Smrg
1044740c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
1044840c5344fSmrg$as_echo_n "checking if $CC supports -pedantic... " >&6; }
1044996402570Smrg		cacheid=xorg_cv_cc_flag__pedantic
1045096402570Smrg		if eval \${$cacheid+:} false; then :
1045196402570Smrg  $as_echo_n "(cached) " >&6
1045296402570Smrgelse
1045396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1045496402570Smrg/* end confdefs.h.  */
1045596402570Smrgint i;
1045696402570Smrgint
1045796402570Smrgmain ()
1045896402570Smrg{
1045996402570Smrg
1046096402570Smrg  ;
1046196402570Smrg  return 0;
1046296402570Smrg}
1046396402570Smrg_ACEOF
1046496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1046596402570Smrg  eval $cacheid=yes
1046696402570Smrgelse
1046796402570Smrg  eval $cacheid=no
1046896402570Smrgfi
1046996402570Smrgrm -f core conftest.err conftest.$ac_objext \
1047096402570Smrg    conftest$ac_exeext conftest.$ac_ext
1047196402570Smrgfi
1047296402570Smrg
1047396402570Smrg
1047496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1047596402570Smrg
1047696402570Smrg		eval supported=\$$cacheid
1047796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1047896402570Smrg$as_echo "$supported" >&6; }
1047996402570Smrg		if test "$supported" = "yes" ; then
1048096402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
1048196402570Smrg			found="yes"
1048296402570Smrg		fi
1048396402570Smrg	fi
1048496402570Smrg
1048596402570Smrg
1048696402570Smrg
1048796402570Smrg
1048896402570Smrg
1048996402570Smrg
1049096402570Smrg
1049196402570Smrg
1049296402570Smrg
1049396402570Smrg
1049496402570Smrg
1049596402570Smrg
1049696402570Smrg
1049796402570Smrg
1049896402570Smrg
1049996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1050096402570Smrg
1050196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1050296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1050396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1050496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1050596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1050696402570Smrg  $as_echo_n "(cached) " >&6
1050796402570Smrgelse
1050896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1050996402570Smrg/* end confdefs.h.  */
1051096402570Smrgint i;
1051196402570Smrg_ACEOF
1051296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1051396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1051496402570Smrgelse
1051596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1051696402570Smrgfi
1051796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1051896402570Smrgfi
1051996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1052096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1052196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1052296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1052396402570Smrgfi
1052496402570Smrg
1052596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1052696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1052796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1052896402570Smrg	fi
1052996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1053096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1053196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1053296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1053396402570Smrg  $as_echo_n "(cached) " >&6
1053496402570Smrgelse
1053596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1053696402570Smrg/* end confdefs.h.  */
1053796402570Smrgint i;
1053896402570Smrg_ACEOF
1053996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1054096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1054196402570Smrgelse
1054296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1054396402570Smrgfi
1054496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1054596402570Smrgfi
1054696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1054796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1054896402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1054996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1055096402570Smrgfi
1055196402570Smrg
1055296402570Smrgfound="no"
1055396402570Smrg
1055496402570Smrg	if test $found = "no" ; then
1055540c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1055696402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1055796402570Smrg		fi
1055896402570Smrg
1055940c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1056096402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1056196402570Smrg		fi
1056296402570Smrg
1056396402570Smrg		CFLAGS="$CFLAGS -Werror"
1056496402570Smrg
1056540c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
1056640c5344fSmrg$as_echo_n "checking if $CC supports -Werror... " >&6; }
1056796402570Smrg		cacheid=xorg_cv_cc_flag__Werror
1056896402570Smrg		if eval \${$cacheid+:} false; then :
1056996402570Smrg  $as_echo_n "(cached) " >&6
1057096402570Smrgelse
1057196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1057296402570Smrg/* end confdefs.h.  */
1057396402570Smrgint i;
1057496402570Smrgint
1057596402570Smrgmain ()
1057696402570Smrg{
1057796402570Smrg
1057896402570Smrg  ;
1057996402570Smrg  return 0;
1058096402570Smrg}
1058196402570Smrg_ACEOF
1058296402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1058396402570Smrg  eval $cacheid=yes
1058496402570Smrgelse
1058596402570Smrg  eval $cacheid=no
1058696402570Smrgfi
1058796402570Smrgrm -f core conftest.err conftest.$ac_objext \
1058896402570Smrg    conftest$ac_exeext conftest.$ac_ext
1058996402570Smrgfi
1059096402570Smrg
1059196402570Smrg
1059296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1059396402570Smrg
1059496402570Smrg		eval supported=\$$cacheid
1059596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1059696402570Smrg$as_echo "$supported" >&6; }
1059796402570Smrg		if test "$supported" = "yes" ; then
1059896402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
1059996402570Smrg			found="yes"
1060096402570Smrg		fi
1060196402570Smrg	fi
1060296402570Smrg
1060396402570Smrg	if test $found = "no" ; then
1060440c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1060596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1060696402570Smrg		fi
1060796402570Smrg
1060840c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1060996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1061096402570Smrg		fi
1061196402570Smrg
1061296402570Smrg		CFLAGS="$CFLAGS -errwarn"
1061396402570Smrg
1061440c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
1061540c5344fSmrg$as_echo_n "checking if $CC supports -errwarn... " >&6; }
1061696402570Smrg		cacheid=xorg_cv_cc_flag__errwarn
1061796402570Smrg		if eval \${$cacheid+:} false; then :
1061896402570Smrg  $as_echo_n "(cached) " >&6
1061996402570Smrgelse
1062096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1062196402570Smrg/* end confdefs.h.  */
1062296402570Smrgint i;
1062396402570Smrgint
1062496402570Smrgmain ()
1062596402570Smrg{
1062696402570Smrg
1062796402570Smrg  ;
1062896402570Smrg  return 0;
1062996402570Smrg}
1063096402570Smrg_ACEOF
1063196402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1063296402570Smrg  eval $cacheid=yes
1063396402570Smrgelse
1063496402570Smrg  eval $cacheid=no
1063596402570Smrgfi
1063696402570Smrgrm -f core conftest.err conftest.$ac_objext \
1063796402570Smrg    conftest$ac_exeext conftest.$ac_ext
1063896402570Smrgfi
1063996402570Smrg
1064096402570Smrg
1064196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1064296402570Smrg
1064396402570Smrg		eval supported=\$$cacheid
1064496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1064596402570Smrg$as_echo "$supported" >&6; }
1064696402570Smrg		if test "$supported" = "yes" ; then
1064796402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
1064896402570Smrg			found="yes"
1064996402570Smrg		fi
1065096402570Smrg	fi
1065196402570Smrg
1065296402570Smrg
1065396402570Smrg
1065496402570Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
1065596402570Smrg# activate it with -Werror, so we add it here explicitly.
1065696402570Smrg
1065796402570Smrg
1065896402570Smrg
1065996402570Smrg
1066096402570Smrg
1066196402570Smrg
1066296402570Smrg
1066396402570Smrg
1066496402570Smrg
1066596402570Smrg
1066696402570Smrg
1066796402570Smrg
1066896402570Smrg
1066996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1067096402570Smrg
1067196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1067296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1067396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1067496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1067596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1067696402570Smrg  $as_echo_n "(cached) " >&6
1067796402570Smrgelse
1067896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1067996402570Smrg/* end confdefs.h.  */
1068096402570Smrgint i;
1068196402570Smrg_ACEOF
1068296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1068396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1068496402570Smrgelse
1068596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1068696402570Smrgfi
1068796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1068896402570Smrgfi
1068996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1069096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1069196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1069296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1069396402570Smrgfi
1069496402570Smrg
1069596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1069696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1069796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1069896402570Smrg	fi
1069996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1070096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1070196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1070296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1070396402570Smrg  $as_echo_n "(cached) " >&6
1070496402570Smrgelse
1070596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1070696402570Smrg/* end confdefs.h.  */
1070796402570Smrgint i;
1070896402570Smrg_ACEOF
1070996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1071096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1071196402570Smrgelse
1071296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1071396402570Smrgfi
1071496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1071596402570Smrgfi
1071696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1071796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1071896402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1071996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1072096402570Smrgfi
1072196402570Smrg
1072296402570Smrgfound="no"
1072396402570Smrg
1072496402570Smrg	if test $found = "no" ; then
1072540c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1072696402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1072796402570Smrg		fi
1072896402570Smrg
1072940c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1073096402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1073196402570Smrg		fi
1073296402570Smrg
1073396402570Smrg		CFLAGS="$CFLAGS -Werror=attributes"
1073496402570Smrg
1073540c5344fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
1073640c5344fSmrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
107378abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_attributes
1073896402570Smrg		if eval \${$cacheid+:} false; then :
1073996402570Smrg  $as_echo_n "(cached) " >&6
1074096402570Smrgelse
1074196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1074296402570Smrg/* end confdefs.h.  */
1074396402570Smrgint i;
1074496402570Smrgint
1074596402570Smrgmain ()
1074696402570Smrg{
1074796402570Smrg
1074896402570Smrg  ;
1074996402570Smrg  return 0;
1075096402570Smrg}
1075196402570Smrg_ACEOF
1075296402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1075396402570Smrg  eval $cacheid=yes
1075496402570Smrgelse
1075596402570Smrg  eval $cacheid=no
1075696402570Smrgfi
1075796402570Smrgrm -f core conftest.err conftest.$ac_objext \
1075896402570Smrg    conftest$ac_exeext conftest.$ac_ext
1075996402570Smrgfi
1076096402570Smrg
1076196402570Smrg
1076296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1076396402570Smrg
1076496402570Smrg		eval supported=\$$cacheid
1076596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1076696402570Smrg$as_echo "$supported" >&6; }
1076796402570Smrg		if test "$supported" = "yes" ; then
1076896402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
1076996402570Smrg			found="yes"
1077096402570Smrg		fi
1077196402570Smrg	fi
1077296402570Smrg
1077396402570Smrg
1077496402570Smrg
1077596402570Smrgif test "x$STRICT_COMPILE" = "xyes"; then
1077696402570Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
1077796402570Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
1077896402570Smrgfi
1077996402570Smrg
1078096402570Smrg
1078196402570Smrg
1078296402570Smrg
1078396402570Smrg
1078496402570Smrg
1078596402570Smrgcat >>confdefs.h <<_ACEOF
1078696402570Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
1078796402570Smrg_ACEOF
1078896402570Smrg
1078996402570Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
1079096402570Smrg	if test "x$PVM" = "x"; then
1079196402570Smrg		PVM="0"
1079296402570Smrg	fi
1079396402570Smrg
1079496402570Smrgcat >>confdefs.h <<_ACEOF
1079596402570Smrg#define PACKAGE_VERSION_MINOR $PVM
1079696402570Smrg_ACEOF
1079796402570Smrg
1079896402570Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
1079996402570Smrg	if test "x$PVP" = "x"; then
1080096402570Smrg		PVP="0"
1080196402570Smrg	fi
1080296402570Smrg
1080396402570Smrgcat >>confdefs.h <<_ACEOF
1080496402570Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
1080596402570Smrg_ACEOF
1080696402570Smrg
1080796402570Smrg
1080896402570Smrg
1080996402570SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
1081096402570Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
1081196402570Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
1081296402570Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
1081396402570Smrg
1081496402570Smrg
1081596402570Smrg
1081696402570Smrg
1081796402570Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
1081896402570SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
1081996402570Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
1082096402570Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
1082196402570Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
1082296402570Smrg
1082396402570Smrg
1082496402570Smrg
1082596402570Smrg
1082696402570Smrg
1082796402570Smrg
1082896402570Smrgif test x$APP_MAN_SUFFIX = x    ; then
1082996402570Smrg    APP_MAN_SUFFIX=1
1083096402570Smrgfi
1083196402570Smrgif test x$APP_MAN_DIR = x    ; then
1083296402570Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
1083396402570Smrgfi
1083496402570Smrg
1083596402570Smrgif test x$LIB_MAN_SUFFIX = x    ; then
1083696402570Smrg    LIB_MAN_SUFFIX=3
1083796402570Smrgfi
1083896402570Smrgif test x$LIB_MAN_DIR = x    ; then
1083996402570Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
1084096402570Smrgfi
1084196402570Smrg
1084296402570Smrgif test x$FILE_MAN_SUFFIX = x    ; then
1084396402570Smrg    case $host_os in
1084440c5344fSmrg	# Solaris 2.0 - 11 use SysV man page sections
1084540c5344fSmrg	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
1084640c5344fSmrg	*)				FILE_MAN_SUFFIX=5  ;;
1084796402570Smrg    esac
1084896402570Smrgfi
1084996402570Smrgif test x$FILE_MAN_DIR = x    ; then
1085096402570Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
1085196402570Smrgfi
1085296402570Smrg
1085396402570Smrgif test x$MISC_MAN_SUFFIX = x    ; then
1085496402570Smrg    case $host_os in
1085540c5344fSmrg	# Solaris 2.0 - 11 use SysV man page sections
1085640c5344fSmrg	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
1085740c5344fSmrg	*)				MISC_MAN_SUFFIX=7  ;;
1085896402570Smrg    esac
1085996402570Smrgfi
1086096402570Smrgif test x$MISC_MAN_DIR = x    ; then
1086196402570Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
1086296402570Smrgfi
1086396402570Smrg
1086496402570Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
1086596402570Smrg    case $host_os in
1086640c5344fSmrg	# Solaris 2.0 - 11 use SysV man page sections
1086740c5344fSmrg	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
1086840c5344fSmrg	*)				DRIVER_MAN_SUFFIX=4  ;;
1086996402570Smrg    esac
1087096402570Smrgfi
1087196402570Smrgif test x$DRIVER_MAN_DIR = x    ; then
1087296402570Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1087396402570Smrgfi
1087496402570Smrg
1087596402570Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
1087696402570Smrg    case $host_os in
1087740c5344fSmrg	# Solaris 2.0 - 11 use SysV man page sections
1087840c5344fSmrg	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
1087940c5344fSmrg	*)				ADMIN_MAN_SUFFIX=8  ;;
1088096402570Smrg    esac
1088196402570Smrgfi
1088296402570Smrgif test x$ADMIN_MAN_DIR = x    ; then
1088396402570Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
1088496402570Smrgfi
1088596402570Smrg
1088696402570Smrg
1088796402570Smrg
1088896402570Smrg
1088996402570Smrg
1089096402570Smrg
1089196402570Smrg
1089296402570Smrg
1089396402570Smrg
1089496402570Smrg
1089596402570Smrg
1089696402570Smrg
1089796402570Smrg
1089896402570Smrg
1089996402570Smrg
1090096402570SmrgXORG_MAN_PAGE="X Version 11"
1090196402570Smrg
1090296402570SmrgMAN_SUBSTS="\
1090396402570Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1090496402570Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
109052adc0320Smrg	-e 's|__xservername__|Xorg|g' \
109062adc0320Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
109072adc0320Smrg	-e 's|__projectroot__|\$(prefix)|g' \
109082adc0320Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
109092adc0320Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
109102adc0320Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
109112adc0320Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
109122adc0320Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
109132adc0320Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
109142adc0320Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
109152adc0320Smrg
109162adc0320Smrg
109172adc0320Smrg
109182adc0320Smrg# Check whether --enable-silent-rules was given.
109192adc0320Smrgif test "${enable_silent_rules+set}" = set; then :
109202adc0320Smrg  enableval=$enable_silent_rules;
109212adc0320Smrgfi
109222adc0320Smrg
109238abc0ccfSmrgcase $enable_silent_rules in # (((
109248abc0ccfSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
109258abc0ccfSmrg   no) AM_DEFAULT_VERBOSITY=1;;
109268abc0ccfSmrg    *) AM_DEFAULT_VERBOSITY=0;;
109272adc0320Smrgesac
109288abc0ccfSmrgam_make=${MAKE-make}
109298abc0ccfSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
109308abc0ccfSmrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
109318abc0ccfSmrgif ${am_cv_make_support_nested_variables+:} false; then :
109327366012aSmrg  $as_echo_n "(cached) " >&6
109337a0395d0Smrgelse
109348abc0ccfSmrg  if $as_echo 'TRUE=$(BAR$(V))
109358abc0ccfSmrgBAR0=false
109368abc0ccfSmrgBAR1=true
109378abc0ccfSmrgV=1
109388abc0ccfSmrgam__doit:
109398abc0ccfSmrg	@$(TRUE)
109408abc0ccfSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
109418abc0ccfSmrg  am_cv_make_support_nested_variables=yes
109427a0395d0Smrgelse
109438abc0ccfSmrg  am_cv_make_support_nested_variables=no
109447a0395d0Smrgfi
109457a0395d0Smrgfi
109468abc0ccfSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
109478abc0ccfSmrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
109488abc0ccfSmrgif test $am_cv_make_support_nested_variables = yes; then
109498abc0ccfSmrg    AM_V='$(V)'
109508abc0ccfSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
109518abc0ccfSmrgelse
109528abc0ccfSmrg  AM_V=$AM_DEFAULT_VERBOSITY
109538abc0ccfSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
109548abc0ccfSmrgfi
109558abc0ccfSmrgAM_BACKSLASH='\'
109567a0395d0Smrg
109577a0395d0Smrg
109587a0395d0Smrg
109597a0395d0Smrgfor ac_header in net/errno.h
109602adc0320Smrgdo :
109612adc0320Smrg  ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
109622adc0320Smrgif test "x$ac_cv_header_net_errno_h" = xyes; then :
109632adc0320Smrg  cat >>confdefs.h <<_ACEOF
109642adc0320Smrg#define HAVE_NET_ERRNO_H 1
109657a0395d0Smrg_ACEOF
109667a0395d0Smrg
109677a0395d0Smrgfi
109687a0395d0Smrg
109692adc0320Smrgdone
109707a0395d0Smrg
109717a0395d0Smrg
109722adc0320Smrgfor ac_func in strlcpy
109732adc0320Smrgdo :
109742adc0320Smrg  ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
109752adc0320Smrgif test "x$ac_cv_func_strlcpy" = xyes; then :
109767a0395d0Smrg  cat >>confdefs.h <<_ACEOF
109772adc0320Smrg#define HAVE_STRLCPY 1
109787a0395d0Smrg_ACEOF
109797a0395d0Smrg
109807a0395d0Smrgfi
109817a0395d0Smrgdone
109827a0395d0Smrg
109837a0395d0Smrg
109847a0395d0Smrg# Checks for pkg-config packages
109857a0395d0Smrg
109867a0395d0Smrgpkg_failed=no
109872adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5
109887366012aSmrg$as_echo_n "checking for XAUTH... " >&6; }
109897a0395d0Smrg
109907a0395d0Smrgif test -n "$XAUTH_CFLAGS"; then
109917a0395d0Smrg    pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS"
109927a0395d0Smrg elif test -n "$PKG_CONFIG"; then
109937a0395d0Smrg    if test -n "$PKG_CONFIG" && \
109948abc0ccfSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
109958abc0ccfSmrg  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
109967a0395d0Smrg  ac_status=$?
109972adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
109982adc0320Smrg  test $ac_status = 0; }; then
109998abc0ccfSmrg  pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
110008abc0ccfSmrg		      test "x$?" != "x0" && pkg_failed=yes
110017a0395d0Smrgelse
110027a0395d0Smrg  pkg_failed=yes
110037a0395d0Smrgfi
110047a0395d0Smrg else
110057a0395d0Smrg    pkg_failed=untried
110067a0395d0Smrgfi
110077a0395d0Smrgif test -n "$XAUTH_LIBS"; then
110087a0395d0Smrg    pkg_cv_XAUTH_LIBS="$XAUTH_LIBS"
110097a0395d0Smrg elif test -n "$PKG_CONFIG"; then
110107a0395d0Smrg    if test -n "$PKG_CONFIG" && \
110118abc0ccfSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
110128abc0ccfSmrg  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
110137a0395d0Smrg  ac_status=$?
110142adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
110152adc0320Smrg  test $ac_status = 0; }; then
110168abc0ccfSmrg  pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
110178abc0ccfSmrg		      test "x$?" != "x0" && pkg_failed=yes
110187a0395d0Smrgelse
110197a0395d0Smrg  pkg_failed=yes
110207a0395d0Smrgfi
110217a0395d0Smrg else
110227a0395d0Smrg    pkg_failed=untried
110237a0395d0Smrgfi
110247a0395d0Smrg
110257a0395d0Smrg
110267a0395d0Smrg
110277a0395d0Smrgif test $pkg_failed = yes; then
110288abc0ccfSmrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110298abc0ccfSmrg$as_echo "no" >&6; }
110307a0395d0Smrg
110317a0395d0Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
110327a0395d0Smrg        _pkg_short_errors_supported=yes
110337a0395d0Smrgelse
110347a0395d0Smrg        _pkg_short_errors_supported=no
110357a0395d0Smrgfi
110367a0395d0Smrg        if test $_pkg_short_errors_supported = yes; then
110378abc0ccfSmrg	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
110387a0395d0Smrg        else
110398abc0ccfSmrg	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
110407a0395d0Smrg        fi
110417a0395d0Smrg	# Put the nasty error message in config.log where it belongs
110427a0395d0Smrg	echo "$XAUTH_PKG_ERRORS" >&5
110437a0395d0Smrg
110448abc0ccfSmrg	as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met:
110457a0395d0Smrg
110467a0395d0Smrg$XAUTH_PKG_ERRORS
110477a0395d0Smrg
110487a0395d0SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
110497a0395d0Smrginstalled software in a non-standard prefix.
110507a0395d0Smrg
110517a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS
110527a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config.
110538abc0ccfSmrgSee the pkg-config man page for more details." "$LINENO" 5
110547a0395d0Smrgelif test $pkg_failed = untried; then
110558abc0ccfSmrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110568abc0ccfSmrg$as_echo "no" >&6; }
110572adc0320Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
110587366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
110592adc0320Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
110607a0395d0Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
110617a0395d0Smrgpath to pkg-config.
110627a0395d0Smrg
110637a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS
110647a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config.
110657a0395d0SmrgSee the pkg-config man page for more details.
110667a0395d0Smrg
110677a0395d0SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
110682adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
110697a0395d0Smrgelse
110707a0395d0Smrg	XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS
110717a0395d0Smrg	XAUTH_LIBS=$pkg_cv_XAUTH_LIBS
110722adc0320Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
110737366012aSmrg$as_echo "yes" >&6; }
110748abc0ccfSmrg
110757a0395d0Smrgfi
110767a0395d0Smrg
110777a0395d0Smrg# Transport selection macro from xtrans.m4
110787a0395d0Smrg# Needed to set *CONN defines for gethost.c & parsedpy.c
110797a0395d0Smrg
110807a0395d0Smrg
110817366012aSmrg case $host_os in
110827366012aSmrg	mingw*)	unixdef="no"   ;;
110837366012aSmrg	*)	unixdef="yes"  ;;
110847366012aSmrg esac
110857a0395d0Smrg # Check whether --enable-unix-transport was given.
110862adc0320Smrgif test "${enable_unix_transport+set}" = set; then :
110877a0395d0Smrg  enableval=$enable_unix_transport; UNIXCONN=$enableval
110887a0395d0Smrgelse
110897366012aSmrg  UNIXCONN=$unixdef
110907a0395d0Smrgfi
110917a0395d0Smrg
110922adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
110937366012aSmrg$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
110947a0395d0Smrg if test "$UNIXCONN" = "yes"; then
110957a0395d0Smrg
110962adc0320Smrg$as_echo "#define UNIXCONN 1" >>confdefs.h
110977a0395d0Smrg
110987a0395d0Smrg fi
110992adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
111007366012aSmrg$as_echo "$UNIXCONN" >&6; }
111017366012aSmrg # Check whether --enable-tcp-transport was given.
111022adc0320Smrgif test "${enable_tcp_transport+set}" = set; then :
111037366012aSmrg  enableval=$enable_tcp_transport; TCPCONN=$enableval
111047366012aSmrgelse
111057366012aSmrg  TCPCONN=yes
111067366012aSmrgfi
111077366012aSmrg
111082adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
111097366012aSmrg$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
111102adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
111117366012aSmrg$as_echo "$TCPCONN" >&6; }
111127a0395d0Smrg if test "$TCPCONN" = "yes"; then
111137a0395d0Smrg
111142adc0320Smrg$as_echo "#define TCPCONN 1" >>confdefs.h
111157a0395d0Smrg
111167a0395d0Smrg
111177a0395d0Smrg # SVR4 hides these in libraries other than libc
111182adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
111197366012aSmrg$as_echo_n "checking for library containing socket... " >&6; }
111202adc0320Smrgif ${ac_cv_search_socket+:} false; then :
111217366012aSmrg  $as_echo_n "(cached) " >&6
111227a0395d0Smrgelse
111237a0395d0Smrg  ac_func_search_save_LIBS=$LIBS
111242adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
111257a0395d0Smrg/* end confdefs.h.  */
111267a0395d0Smrg
111277a0395d0Smrg/* Override any GCC internal prototype to avoid an error.
111287a0395d0Smrg   Use char because int might match the return type of a GCC
111297a0395d0Smrg   builtin and then its argument prototype would still apply.  */
111307a0395d0Smrg#ifdef __cplusplus
111317a0395d0Smrgextern "C"
111327a0395d0Smrg#endif
111337a0395d0Smrgchar socket ();
111347a0395d0Smrgint
111357a0395d0Smrgmain ()
111367a0395d0Smrg{
111377a0395d0Smrgreturn socket ();
111387a0395d0Smrg  ;
111397a0395d0Smrg  return 0;
111407a0395d0Smrg}
111417a0395d0Smrg_ACEOF
111427a0395d0Smrgfor ac_lib in '' socket; do
111437a0395d0Smrg  if test -z "$ac_lib"; then
111447a0395d0Smrg    ac_res="none required"
111457a0395d0Smrg  else
111467a0395d0Smrg    ac_res=-l$ac_lib
111477a0395d0Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
111482adc0320Smrg  fi
111492adc0320Smrg  if ac_fn_c_try_link "$LINENO"; then :
111502adc0320Smrg  ac_cv_search_socket=$ac_res
111517a0395d0Smrgfi
111522adc0320Smrgrm -f core conftest.err conftest.$ac_objext \
111532adc0320Smrg    conftest$ac_exeext
111542adc0320Smrg  if ${ac_cv_search_socket+:} false; then :
111557a0395d0Smrg  break
111567a0395d0Smrgfi
111577a0395d0Smrgdone
111582adc0320Smrgif ${ac_cv_search_socket+:} false; then :
111592adc0320Smrg
111607a0395d0Smrgelse
111617a0395d0Smrg  ac_cv_search_socket=no
111627a0395d0Smrgfi
111637a0395d0Smrgrm conftest.$ac_ext
111647a0395d0SmrgLIBS=$ac_func_search_save_LIBS
111657a0395d0Smrgfi
111662adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
111677366012aSmrg$as_echo "$ac_cv_search_socket" >&6; }
111687a0395d0Smrgac_res=$ac_cv_search_socket
111692adc0320Smrgif test "$ac_res" != no; then :
111707a0395d0Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
111717a0395d0Smrg
111727a0395d0Smrgfi
111737a0395d0Smrg
111742adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
111757366012aSmrg$as_echo_n "checking for library containing gethostbyname... " >&6; }
111762adc0320Smrgif ${ac_cv_search_gethostbyname+:} false; then :
111777366012aSmrg  $as_echo_n "(cached) " >&6
111787a0395d0Smrgelse
111797a0395d0Smrg  ac_func_search_save_LIBS=$LIBS
111802adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
111817a0395d0Smrg/* end confdefs.h.  */
111827a0395d0Smrg
111837a0395d0Smrg/* Override any GCC internal prototype to avoid an error.
111847a0395d0Smrg   Use char because int might match the return type of a GCC
111857a0395d0Smrg   builtin and then its argument prototype would still apply.  */
111867a0395d0Smrg#ifdef __cplusplus
111877a0395d0Smrgextern "C"
111887a0395d0Smrg#endif
111897a0395d0Smrgchar gethostbyname ();
111907a0395d0Smrgint
111917a0395d0Smrgmain ()
111927a0395d0Smrg{
111937a0395d0Smrgreturn gethostbyname ();
111947a0395d0Smrg  ;
111957a0395d0Smrg  return 0;
111967a0395d0Smrg}
111977a0395d0Smrg_ACEOF
111987a0395d0Smrgfor ac_lib in '' nsl; do
111997a0395d0Smrg  if test -z "$ac_lib"; then
112007a0395d0Smrg    ac_res="none required"
112017a0395d0Smrg  else
112027a0395d0Smrg    ac_res=-l$ac_lib
112037a0395d0Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
112047a0395d0Smrg  fi
112052adc0320Smrg  if ac_fn_c_try_link "$LINENO"; then :
112067a0395d0Smrg  ac_cv_search_gethostbyname=$ac_res
112077a0395d0Smrgfi
112082adc0320Smrgrm -f core conftest.err conftest.$ac_objext \
112092adc0320Smrg    conftest$ac_exeext
112102adc0320Smrg  if ${ac_cv_search_gethostbyname+:} false; then :
112117a0395d0Smrg  break
112127a0395d0Smrgfi
112137a0395d0Smrgdone
112142adc0320Smrgif ${ac_cv_search_gethostbyname+:} false; then :
112152adc0320Smrg
112167a0395d0Smrgelse
112177a0395d0Smrg  ac_cv_search_gethostbyname=no
112187a0395d0Smrgfi
112197a0395d0Smrgrm conftest.$ac_ext
112207a0395d0SmrgLIBS=$ac_func_search_save_LIBS
112217a0395d0Smrgfi
112222adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
112237366012aSmrg$as_echo "$ac_cv_search_gethostbyname" >&6; }
112247a0395d0Smrgac_res=$ac_cv_search_gethostbyname
112252adc0320Smrgif test "$ac_res" != no; then :
112267a0395d0Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
112277a0395d0Smrg
112287a0395d0Smrgfi
112297a0395d0Smrg
112302adc0320Smrg if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
112312adc0320Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
112327366012aSmrg$as_echo_n "checking for main in -lws2_32... " >&6; }
112332adc0320Smrgif ${ac_cv_lib_ws2_32_main+:} false; then :
112347366012aSmrg  $as_echo_n "(cached) " >&6
112357366012aSmrgelse
112367366012aSmrg  ac_check_lib_save_LIBS=$LIBS
112377366012aSmrgLIBS="-lws2_32  $LIBS"
112382adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
112397366012aSmrg/* end confdefs.h.  */
112407366012aSmrg
112417366012aSmrg
112427366012aSmrgint
112437366012aSmrgmain ()
112447366012aSmrg{
112457366012aSmrgreturn main ();
112467366012aSmrg  ;
112477366012aSmrg  return 0;
112487366012aSmrg}
112497366012aSmrg_ACEOF
112502adc0320Smrgif ac_fn_c_try_link "$LINENO"; then :
112517366012aSmrg  ac_cv_lib_ws2_32_main=yes
112527366012aSmrgelse
112532adc0320Smrg  ac_cv_lib_ws2_32_main=no
112547366012aSmrgfi
112552adc0320Smrgrm -f core conftest.err conftest.$ac_objext \
112562adc0320Smrg    conftest$ac_exeext conftest.$ac_ext
112577366012aSmrgLIBS=$ac_check_lib_save_LIBS
112587366012aSmrgfi
112592adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
112607366012aSmrg$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
112612adc0320Smrgif test "x$ac_cv_lib_ws2_32_main" = xyes; then :
112627366012aSmrg  cat >>confdefs.h <<_ACEOF
112637366012aSmrg#define HAVE_LIBWS2_32 1
112647366012aSmrg_ACEOF
112657366012aSmrg
112667366012aSmrg  LIBS="-lws2_32 $LIBS"
112677366012aSmrg
112687366012aSmrgfi
112697366012aSmrg
112702adc0320Smrg fi
112717366012aSmrg
112727a0395d0Smrg # Needs to come after above checks for libsocket & libnsl for SVR4 systems
112737a0395d0Smrg # Check whether --enable-ipv6 was given.
112742adc0320Smrgif test "${enable_ipv6+set}" = set; then :
112757a0395d0Smrg  enableval=$enable_ipv6; IPV6CONN=$enableval
112767a0395d0Smrgelse
112772adc0320Smrg  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
112782adc0320Smrgif test "x$ac_cv_func_getaddrinfo" = xyes; then :
112797a0395d0Smrg  IPV6CONN=yes
112807a0395d0Smrgelse
112817a0395d0Smrg  IPV6CONN=no
112827a0395d0Smrgfi
112837a0395d0Smrg
112847a0395d0Smrgfi
112857a0395d0Smrg
112862adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
112877366012aSmrg$as_echo_n "checking if IPv6 support should be built... " >&6; }
112887a0395d0Smrg if test "$IPV6CONN" = "yes"; then
112897a0395d0Smrg
112902adc0320Smrg$as_echo "#define IPv6 1" >>confdefs.h
112917a0395d0Smrg
112927a0395d0Smrg fi
112932adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
112947366012aSmrg$as_echo "$IPV6CONN" >&6; }
112957a0395d0Smrg
112967a0395d0Smrg # 4.3BSD-Reno added a new member to struct sockaddr_in
112972adc0320Smrg ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
112987a0395d0Smrg#include <sys/types.h>
112997a0395d0Smrg#include <sys/socket.h>
113007a0395d0Smrg#include <netinet/in.h>
113017a0395d0Smrg
113022adc0320Smrg"
113032adc0320Smrgif test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
113047a0395d0Smrg
113052adc0320Smrg$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
113067366012aSmrg
113072adc0320Smrgfi
113087366012aSmrg
113097366012aSmrg
113102adc0320Smrg # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
113112adc0320Smrg ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
113122adc0320Smrg$ac_includes_default
113132adc0320Smrg#include <sys/socket.h>
113142adc0320Smrg"
113152adc0320Smrgif test "x$ac_cv_type_socklen_t" = xyes; then :
113167366012aSmrg
113172adc0320Smrgcat >>confdefs.h <<_ACEOF
113182adc0320Smrg#define HAVE_SOCKLEN_T 1
113197366012aSmrg_ACEOF
113207366012aSmrg
113217366012aSmrg
113227366012aSmrgfi
113237366012aSmrg
113247366012aSmrg
113259a011757Smrg # XPG4v2/UNIX95 added msg_control - check to see if we need to define
113269a011757Smrg # _XOPEN_SOURCE to get it (such as on Solaris)
113279a011757Smrg ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
113289a011757Smrg$ac_includes_default
113299a011757Smrg#include <sys/socket.h>
113309a011757Smrg
113319a011757Smrg"
113329a011757Smrgif test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
113339a011757Smrg
113349a011757Smrgfi
113359a011757Smrg
113369a011757Smrg # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
113379a011757Smrg if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
113389a011757Smrg     unset ac_cv_member_struct_msghdr_msg_control
113399a011757Smrg     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
113409a011757Smrg$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
113419a011757Smrg     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
113429a011757Smrg#define _XOPEN_SOURCE 600
113439a011757Smrg$ac_includes_default
113449a011757Smrg#include <sys/socket.h>
113459a011757Smrg
113469a011757Smrg"
113479a011757Smrgif test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
113489a011757Smrg
113499a011757Smrg$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
113509a011757Smrg
113519a011757Smrg
113529a011757Smrgfi
113539a011757Smrg
113549a011757Smrg fi
113559a011757Smrg # If that didn't work, fall back to XPG5/UNIX98 with C89
113569a011757Smrg if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
113579a011757Smrg     unset ac_cv_member_struct_msghdr_msg_control
113589a011757Smrg     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
113599a011757Smrg$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
113609a011757Smrg     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
113619a011757Smrg#define _XOPEN_SOURCE 500
113629a011757Smrg$ac_includes_default
113639a011757Smrg#include <sys/socket.h>
113649a011757Smrg
113659a011757Smrg"
113669a011757Smrgif test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
113679a011757Smrg
113689a011757Smrg$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
113699a011757Smrg
113709a011757Smrg
113719a011757Smrgfi
113729a011757Smrg
113739a011757Smrg fi
113749a011757Smrg
113759a011757Smrg
113767366012aSmrg
113772adc0320Smrg fi
113782adc0320Smrg case $host_os in
113792adc0320Smrg	solaris*|sco*|sysv4*)	localdef="yes" ;;
113802adc0320Smrg	*)			localdef="no"  ;;
113812adc0320Smrg esac
113822adc0320Smrg # Check whether --enable-local-transport was given.
113832adc0320Smrgif test "${enable_local_transport+set}" = set; then :
113842adc0320Smrg  enableval=$enable_local_transport; LOCALCONN=$enableval
113857366012aSmrgelse
113862adc0320Smrg  LOCALCONN=$localdef
113872adc0320Smrgfi
113887366012aSmrg
113892adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
113902adc0320Smrg$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
113912adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
113922adc0320Smrg$as_echo "$LOCALCONN" >&6; }
113932adc0320Smrg if test "$LOCALCONN" = "yes"; then
113947a0395d0Smrg
113952adc0320Smrg$as_echo "#define LOCALCONN 1" >>confdefs.h
113967a0395d0Smrg
113972adc0320Smrg fi
113987a0395d0Smrg
113997a0395d0Smrg
114007366012aSmrg
114017366012aSmrg
114027a0395d0Smrg
114037a0395d0Smrg
114047a0395d0Smrg
114057366012aSmrg
114062adc0320Smrg# Check whether --with-lint was given.
114072adc0320Smrgif test "${with_lint+set}" = set; then :
114082adc0320Smrg  withval=$with_lint; use_lint=$withval
114092adc0320Smrgelse
114102adc0320Smrg  use_lint=no
114117a0395d0Smrgfi
114127a0395d0Smrg
114137a0395d0Smrg
114142adc0320Smrg# Obtain platform specific info like program name and options
114152adc0320Smrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris
114162adc0320Smrgcase $host_os in
114172adc0320Smrg  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
114182adc0320Smrg	lint_name=splint
114192adc0320Smrg	lint_options="-badflag"
114202adc0320Smrg	;;
114212adc0320Smrg  *freebsd* | *netbsd*)
114222adc0320Smrg	lint_name=lint
114232adc0320Smrg	lint_options="-u -b"
114242adc0320Smrg	;;
114252adc0320Smrg  *solaris*)
114262adc0320Smrg	lint_name=lint
114272adc0320Smrg	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
114282adc0320Smrg	;;
114292adc0320Smrgesac
114307366012aSmrg
114312adc0320Smrg# Test for the presence of the program (either guessed by the code or spelled out by the user)
114322adc0320Smrgif test "x$use_lint" = x"yes" ; then
114332adc0320Smrg   # Extract the first word of "$lint_name", so it can be a program name with args.
114342adc0320Smrgset dummy $lint_name; ac_word=$2
114352adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
114362adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; }
114372adc0320Smrgif ${ac_cv_path_LINT+:} false; then :
114382adc0320Smrg  $as_echo_n "(cached) " >&6
114392adc0320Smrgelse
114402adc0320Smrg  case $LINT in
114412adc0320Smrg  [\\/]* | ?:[\\/]*)
114422adc0320Smrg  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
114432adc0320Smrg  ;;
114442adc0320Smrg  *)
114452adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114462adc0320Smrgfor as_dir in $PATH
114472adc0320Smrgdo
114482adc0320Smrg  IFS=$as_save_IFS
114492adc0320Smrg  test -z "$as_dir" && as_dir=.
114502adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
114518abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
114522adc0320Smrg    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
114532adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
114542adc0320Smrg    break 2
114552adc0320Smrg  fi
114562adc0320Smrgdone
114572adc0320Smrg  done
114582adc0320SmrgIFS=$as_save_IFS
114592adc0320Smrg
114602adc0320Smrg  ;;
114612adc0320Smrgesac
114622adc0320Smrgfi
114632adc0320SmrgLINT=$ac_cv_path_LINT
114642adc0320Smrgif test -n "$LINT"; then
114652adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
114662adc0320Smrg$as_echo "$LINT" >&6; }
114677a0395d0Smrgelse
114682adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
114692adc0320Smrg$as_echo "no" >&6; }
114707a0395d0Smrgfi
114717a0395d0Smrg
114727a0395d0Smrg
114732adc0320Smrg   if test "x$LINT" = "x"; then
114742adc0320Smrg        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
114752adc0320Smrg   fi
114762adc0320Smrgelif test "x$use_lint" = x"no" ; then
114772adc0320Smrg   if test "x$LINT" != "x"; then
114782adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
114792adc0320Smrg$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
114802adc0320Smrg   fi
114817a0395d0Smrgelse
114822adc0320Smrg   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
114837a0395d0Smrgfi
114847a0395d0Smrg
114852adc0320Smrg# User supplied flags override default flags
114862adc0320Smrgif test "x$LINT_FLAGS" != "x"; then
114872adc0320Smrg   lint_options=$LINT_FLAGS
114887a0395d0Smrgfi
114897a0395d0Smrg
114902adc0320SmrgLINT_FLAGS=$lint_options
114917a0395d0Smrg
114922adc0320Smrg if test "x$LINT" != x; then
114937a0395d0Smrg  LINT_TRUE=
114947a0395d0Smrg  LINT_FALSE='#'
114957a0395d0Smrgelse
114967a0395d0Smrg  LINT_TRUE='#'
114977a0395d0Smrg  LINT_FALSE=
114987a0395d0Smrgfi
114997a0395d0Smrg
115007a0395d0Smrg
115017a0395d0Smrg
115027a0395d0Smrg
115038abc0ccfSmrgac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile"
115047a0395d0Smrg
115057a0395d0Smrgcat >confcache <<\_ACEOF
115067a0395d0Smrg# This file is a shell script that caches the results of configure
115077a0395d0Smrg# tests run on this system so they can be shared between configure
115087a0395d0Smrg# scripts and configure runs, see configure's option --config-cache.
115097a0395d0Smrg# It is not useful on other systems.  If it contains results you don't
115107a0395d0Smrg# want to keep, you may remove or edit it.
115117a0395d0Smrg#
115127a0395d0Smrg# config.status only pays attention to the cache file if you give it
115137a0395d0Smrg# the --recheck option to rerun configure.
115147a0395d0Smrg#
115157a0395d0Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
115167a0395d0Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
115177a0395d0Smrg# following values.
115187a0395d0Smrg
115197a0395d0Smrg_ACEOF
115207a0395d0Smrg
115217a0395d0Smrg# The following way of writing the cache mishandles newlines in values,
115227a0395d0Smrg# but we know of no workaround that is simple, portable, and efficient.
115237a0395d0Smrg# So, we kill variables containing newlines.
115247a0395d0Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
115257a0395d0Smrg# and sets the high bit in the cache file unless we assign to the vars.
115267a0395d0Smrg(
115277a0395d0Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
115287a0395d0Smrg    eval ac_val=\$$ac_var
115297a0395d0Smrg    case $ac_val in #(
115307a0395d0Smrg    *${as_nl}*)
115317a0395d0Smrg      case $ac_var in #(
115322adc0320Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
115337366012aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
115347a0395d0Smrg      esac
115357a0395d0Smrg      case $ac_var in #(
115367a0395d0Smrg      _ | IFS | as_nl) ;; #(
115377366012aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
115382adc0320Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
115397a0395d0Smrg      esac ;;
115407a0395d0Smrg    esac
115417a0395d0Smrg  done
115427a0395d0Smrg
115437a0395d0Smrg  (set) 2>&1 |
115447a0395d0Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
115457a0395d0Smrg    *${as_nl}ac_space=\ *)
115462adc0320Smrg      # `set' does not quote correctly, so add quotes: double-quote
115472adc0320Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
115487a0395d0Smrg      sed -n \
115497a0395d0Smrg	"s/'/'\\\\''/g;
115507a0395d0Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
115517a0395d0Smrg      ;; #(
115527a0395d0Smrg    *)
115537a0395d0Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
115547a0395d0Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
115557a0395d0Smrg      ;;
115567a0395d0Smrg    esac |
115577a0395d0Smrg    sort
115587a0395d0Smrg) |
115597a0395d0Smrg  sed '
115607a0395d0Smrg     /^ac_cv_env_/b end
115617a0395d0Smrg     t clear
115627a0395d0Smrg     :clear
115637a0395d0Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
115647a0395d0Smrg     t end
115657a0395d0Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
115667a0395d0Smrg     :end' >>confcache
115677a0395d0Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
115687a0395d0Smrg  if test -w "$cache_file"; then
115692adc0320Smrg    if test "x$cache_file" != "x/dev/null"; then
115702adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
115717366012aSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
115722adc0320Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
115732adc0320Smrg	cat confcache >"$cache_file"
115742adc0320Smrg      else
115752adc0320Smrg        case $cache_file in #(
115762adc0320Smrg        */* | ?:*)
115772adc0320Smrg	  mv -f confcache "$cache_file"$$ &&
115782adc0320Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
115792adc0320Smrg        *)
115802adc0320Smrg	  mv -f confcache "$cache_file" ;;
115812adc0320Smrg	esac
115822adc0320Smrg      fi
115832adc0320Smrg    fi
115847a0395d0Smrg  else
115852adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
115867366012aSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
115877a0395d0Smrg  fi
115887a0395d0Smrgfi
115897a0395d0Smrgrm -f confcache
115907a0395d0Smrg
115917a0395d0Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
115927a0395d0Smrg# Let make expand exec_prefix.
115937a0395d0Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
115947a0395d0Smrg
115957a0395d0SmrgDEFS=-DHAVE_CONFIG_H
115967a0395d0Smrg
115977a0395d0Smrgac_libobjs=
115987a0395d0Smrgac_ltlibobjs=
115992adc0320SmrgU=
116007a0395d0Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
116017a0395d0Smrg  # 1. Remove the extension, and $U if already installed.
116027a0395d0Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
116037366012aSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
116047a0395d0Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
116057a0395d0Smrg  #    will be set to the directory where LIBOBJS objects are built.
116062adc0320Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
116072adc0320Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
116087a0395d0Smrgdone
116097a0395d0SmrgLIBOBJS=$ac_libobjs
116107a0395d0Smrg
116117a0395d0SmrgLTLIBOBJS=$ac_ltlibobjs
116127a0395d0Smrg
116137a0395d0Smrg
116148abc0ccfSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
116158abc0ccfSmrg$as_echo_n "checking that generated files are newer than configure... " >&6; }
116168abc0ccfSmrg   if test -n "$am_sleep_pid"; then
116178abc0ccfSmrg     # Hide warnings about reused PIDs.
116188abc0ccfSmrg     wait $am_sleep_pid 2>/dev/null
116198abc0ccfSmrg   fi
116208abc0ccfSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
116218abc0ccfSmrg$as_echo "done" >&6; }
116227366012aSmrg if test -n "$EXEEXT"; then
116237366012aSmrg  am__EXEEXT_TRUE=
116247366012aSmrg  am__EXEEXT_FALSE='#'
116257366012aSmrgelse
116267366012aSmrg  am__EXEEXT_TRUE='#'
116277366012aSmrg  am__EXEEXT_FALSE=
116287366012aSmrgfi
116297366012aSmrg
116307a0395d0Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
116312adc0320Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
116322adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
116337a0395d0Smrgfi
116347a0395d0Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
116352adc0320Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
116362adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
116377a0395d0Smrgfi
116387a0395d0Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
116392adc0320Smrg  as_fn_error $? "conditional \"LINT\" was never defined.
116402adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
116417a0395d0Smrgfi
116427a0395d0Smrg
116432adc0320Smrg: "${CONFIG_STATUS=./config.status}"
116447366012aSmrgac_write_fail=0
116457a0395d0Smrgac_clean_files_save=$ac_clean_files
116467a0395d0Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
116472adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
116487366012aSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
116492adc0320Smrgas_write_fail=0
116502adc0320Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
116517a0395d0Smrg#! $SHELL
116527a0395d0Smrg# Generated by $as_me.
116537a0395d0Smrg# Run this file to recreate the current configuration.
116547a0395d0Smrg# Compiler output produced by configure, useful for debugging
116557a0395d0Smrg# configure, is in config.log if it exists.
116567a0395d0Smrg
116577a0395d0Smrgdebug=false
116587a0395d0Smrgac_cs_recheck=false
116597a0395d0Smrgac_cs_silent=false
116607a0395d0Smrg
116612adc0320SmrgSHELL=\${CONFIG_SHELL-$SHELL}
116622adc0320Smrgexport SHELL
116632adc0320Smrg_ASEOF
116642adc0320Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
116652adc0320Smrg## -------------------- ##
116662adc0320Smrg## M4sh Initialization. ##
116672adc0320Smrg## -------------------- ##
116687a0395d0Smrg
116697a0395d0Smrg# Be more Bourne compatible
116707a0395d0SmrgDUALCASE=1; export DUALCASE # for MKS sh
116712adc0320Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
116727a0395d0Smrg  emulate sh
116737a0395d0Smrg  NULLCMD=:
116747366012aSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
116757a0395d0Smrg  # is contrary to our usage.  Disable this feature.
116767a0395d0Smrg  alias -g '${1+"$@"}'='"$@"'
116777a0395d0Smrg  setopt NO_GLOB_SUBST
116787a0395d0Smrgelse
116792adc0320Smrg  case `(set -o) 2>/dev/null` in #(
116802adc0320Smrg  *posix*) :
116812adc0320Smrg    set -o posix ;; #(
116822adc0320Smrg  *) :
116832adc0320Smrg     ;;
116847a0395d0Smrgesac
116857a0395d0Smrgfi
116867a0395d0Smrg
116877a0395d0Smrg
116887366012aSmrgas_nl='
116897366012aSmrg'
116907366012aSmrgexport as_nl
116917366012aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
116927366012aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
116937366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
116947366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
116952adc0320Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
116962adc0320Smrg# but without wasting forks for bash or zsh.
116972adc0320Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
116982adc0320Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
116992adc0320Smrg  as_echo='print -r --'
117002adc0320Smrg  as_echo_n='print -rn --'
117012adc0320Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
117027366012aSmrg  as_echo='printf %s\n'
117037366012aSmrg  as_echo_n='printf %s'
117047366012aSmrgelse
117057366012aSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
117067366012aSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
117077366012aSmrg    as_echo_n='/usr/ucb/echo -n'
117087a0395d0Smrg  else
117097366012aSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
117107366012aSmrg    as_echo_n_body='eval
117117366012aSmrg      arg=$1;
117122adc0320Smrg      case $arg in #(
117137366012aSmrg      *"$as_nl"*)
117147366012aSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
117157366012aSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
117167366012aSmrg      esac;
117177366012aSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
117187366012aSmrg    '
117197366012aSmrg    export as_echo_n_body
117207366012aSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
117217a0395d0Smrg  fi
117227366012aSmrg  export as_echo_body
117237366012aSmrg  as_echo='sh -c $as_echo_body as_echo'
117247366012aSmrgfi
117257366012aSmrg
117267366012aSmrg# The user is always right.
117277366012aSmrgif test "${PATH_SEPARATOR+set}" != set; then
117287366012aSmrg  PATH_SEPARATOR=:
117297366012aSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
117307366012aSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
117317366012aSmrg      PATH_SEPARATOR=';'
117327366012aSmrg  }
117337a0395d0Smrgfi
117347a0395d0Smrg
117357a0395d0Smrg
117367a0395d0Smrg# IFS
117377a0395d0Smrg# We need space, tab and new line, in precisely that order.  Quoting is
117387a0395d0Smrg# there to prevent editors from complaining about space-tab.
117397a0395d0Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
117407a0395d0Smrg# splitting by setting IFS to empty value.)
117417a0395d0SmrgIFS=" ""	$as_nl"
117427a0395d0Smrg
117437a0395d0Smrg# Find who we are.  Look in the path if we contain no directory separator.
117442adc0320Smrgas_myself=
117452adc0320Smrgcase $0 in #((
117467a0395d0Smrg  *[\\/]* ) as_myself=$0 ;;
117477a0395d0Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117487a0395d0Smrgfor as_dir in $PATH
117497a0395d0Smrgdo
117507a0395d0Smrg  IFS=$as_save_IFS
117517a0395d0Smrg  test -z "$as_dir" && as_dir=.
117522adc0320Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117532adc0320Smrg  done
117547a0395d0SmrgIFS=$as_save_IFS
117557a0395d0Smrg
117567a0395d0Smrg     ;;
117577a0395d0Smrgesac
117587a0395d0Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
117597a0395d0Smrg# in which case we are not to be found in the path.
117607a0395d0Smrgif test "x$as_myself" = x; then
117617a0395d0Smrg  as_myself=$0
117627a0395d0Smrgfi
117637a0395d0Smrgif test ! -f "$as_myself"; then
117647366012aSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117652adc0320Smrg  exit 1
117667a0395d0Smrgfi
117677a0395d0Smrg
117682adc0320Smrg# Unset variables that we do not need and which cause bugs (e.g. in
117692adc0320Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117702adc0320Smrg# suppresses any "Segmentation fault" message there.  '((' could
117712adc0320Smrg# trigger a bug in pdksh 5.2.14.
117722adc0320Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
117732adc0320Smrgdo eval test x\${$as_var+set} = xset \
117742adc0320Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
117757a0395d0Smrgdone
117767a0395d0SmrgPS1='$ '
117777a0395d0SmrgPS2='> '
117787a0395d0SmrgPS4='+ '
117797a0395d0Smrg
117807a0395d0Smrg# NLS nuisances.
117817366012aSmrgLC_ALL=C
117827366012aSmrgexport LC_ALL
117837366012aSmrgLANGUAGE=C
117847366012aSmrgexport LANGUAGE
117857a0395d0Smrg
117862adc0320Smrg# CDPATH.
117872adc0320Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
117882adc0320Smrg
117892adc0320Smrg
117902adc0320Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
117912adc0320Smrg# ----------------------------------------
117922adc0320Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
117932adc0320Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
117942adc0320Smrg# script with STATUS, using 1 if that was 0.
117952adc0320Smrgas_fn_error ()
117962adc0320Smrg{
117972adc0320Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
117982adc0320Smrg  if test "$4"; then
117992adc0320Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
118002adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
118012adc0320Smrg  fi
118022adc0320Smrg  $as_echo "$as_me: error: $2" >&2
118032adc0320Smrg  as_fn_exit $as_status
118042adc0320Smrg} # as_fn_error
118052adc0320Smrg
118062adc0320Smrg
118072adc0320Smrg# as_fn_set_status STATUS
118082adc0320Smrg# -----------------------
118092adc0320Smrg# Set $? to STATUS, without forking.
118102adc0320Smrgas_fn_set_status ()
118112adc0320Smrg{
118122adc0320Smrg  return $1
118132adc0320Smrg} # as_fn_set_status
118142adc0320Smrg
118152adc0320Smrg# as_fn_exit STATUS
118162adc0320Smrg# -----------------
118172adc0320Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
118182adc0320Smrgas_fn_exit ()
118192adc0320Smrg{
118202adc0320Smrg  set +e
118212adc0320Smrg  as_fn_set_status $1
118222adc0320Smrg  exit $1
118232adc0320Smrg} # as_fn_exit
118242adc0320Smrg
118252adc0320Smrg# as_fn_unset VAR
118262adc0320Smrg# ---------------
118272adc0320Smrg# Portably unset VAR.
118282adc0320Smrgas_fn_unset ()
118292adc0320Smrg{
118302adc0320Smrg  { eval $1=; unset $1;}
118312adc0320Smrg}
118322adc0320Smrgas_unset=as_fn_unset
118332adc0320Smrg# as_fn_append VAR VALUE
118342adc0320Smrg# ----------------------
118352adc0320Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
118362adc0320Smrg# advantage of any shell optimizations that allow amortized linear growth over
118372adc0320Smrg# repeated appends, instead of the typical quadratic growth present in naive
118382adc0320Smrg# implementations.
118392adc0320Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
118402adc0320Smrg  eval 'as_fn_append ()
118412adc0320Smrg  {
118422adc0320Smrg    eval $1+=\$2
118432adc0320Smrg  }'
118442adc0320Smrgelse
118452adc0320Smrg  as_fn_append ()
118462adc0320Smrg  {
118472adc0320Smrg    eval $1=\$$1\$2
118482adc0320Smrg  }
118492adc0320Smrgfi # as_fn_append
118502adc0320Smrg
118512adc0320Smrg# as_fn_arith ARG...
118522adc0320Smrg# ------------------
118532adc0320Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
118542adc0320Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
118552adc0320Smrg# must be portable across $(()) and expr.
118562adc0320Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
118572adc0320Smrg  eval 'as_fn_arith ()
118582adc0320Smrg  {
118592adc0320Smrg    as_val=$(( $* ))
118602adc0320Smrg  }'
118612adc0320Smrgelse
118622adc0320Smrg  as_fn_arith ()
118632adc0320Smrg  {
118642adc0320Smrg    as_val=`expr "$@" || test $? -eq 1`
118652adc0320Smrg  }
118662adc0320Smrgfi # as_fn_arith
118672adc0320Smrg
118682adc0320Smrg
118697a0395d0Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
118707a0395d0Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118717a0395d0Smrg  as_expr=expr
118727a0395d0Smrgelse
118737a0395d0Smrg  as_expr=false
118747a0395d0Smrgfi
118757a0395d0Smrg
118767a0395d0Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
118777a0395d0Smrg  as_basename=basename
118787a0395d0Smrgelse
118797a0395d0Smrg  as_basename=false
118807a0395d0Smrgfi
118817a0395d0Smrg
118822adc0320Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
118832adc0320Smrg  as_dirname=dirname
118842adc0320Smrgelse
118852adc0320Smrg  as_dirname=false
118862adc0320Smrgfi
118877a0395d0Smrg
118887a0395d0Smrgas_me=`$as_basename -- "$0" ||
118897a0395d0Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
118907a0395d0Smrg	 X"$0" : 'X\(//\)$' \| \
118917a0395d0Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
118927366012aSmrg$as_echo X/"$0" |
118937a0395d0Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
118947a0395d0Smrg	    s//\1/
118957a0395d0Smrg	    q
118967a0395d0Smrg	  }
118977a0395d0Smrg	  /^X\/\(\/\/\)$/{
118987a0395d0Smrg	    s//\1/
118997a0395d0Smrg	    q
119007a0395d0Smrg	  }
119017a0395d0Smrg	  /^X\/\(\/\).*/{
119027a0395d0Smrg	    s//\1/
119037a0395d0Smrg	    q
119047a0395d0Smrg	  }
119057a0395d0Smrg	  s/.*/./; q'`
119067a0395d0Smrg
119072adc0320Smrg# Avoid depending upon Character Ranges.
119082adc0320Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
119092adc0320Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
119102adc0320Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
119112adc0320Smrgas_cr_digits='0123456789'
119122adc0320Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
119137a0395d0Smrg
119147a0395d0SmrgECHO_C= ECHO_N= ECHO_T=
119152adc0320Smrgcase `echo -n x` in #(((((
119167a0395d0Smrg-n*)
119172adc0320Smrg  case `echo 'xy\c'` in
119187a0395d0Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
119192adc0320Smrg  xy)  ECHO_C='\c';;
119202adc0320Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
119212adc0320Smrg       ECHO_T='	';;
119227a0395d0Smrg  esac;;
119237a0395d0Smrg*)
119247a0395d0Smrg  ECHO_N='-n';;
119257a0395d0Smrgesac
119267a0395d0Smrg
119277a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.file
119287a0395d0Smrgif test -d conf$$.dir; then
119297a0395d0Smrg  rm -f conf$$.dir/conf$$.file
119307a0395d0Smrgelse
119317a0395d0Smrg  rm -f conf$$.dir
119327366012aSmrg  mkdir conf$$.dir 2>/dev/null
119337366012aSmrgfi
119347366012aSmrgif (echo >conf$$.file) 2>/dev/null; then
119357366012aSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
119367366012aSmrg    as_ln_s='ln -s'
119377366012aSmrg    # ... but there are two gotchas:
119387366012aSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
119397366012aSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
119408abc0ccfSmrg    # In both cases, we have to default to `cp -pR'.
119417366012aSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
119428abc0ccfSmrg      as_ln_s='cp -pR'
119437366012aSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
119447366012aSmrg    as_ln_s=ln
119457366012aSmrg  else
119468abc0ccfSmrg    as_ln_s='cp -pR'
119477366012aSmrg  fi
119487a0395d0Smrgelse
119498abc0ccfSmrg  as_ln_s='cp -pR'
119507a0395d0Smrgfi
119517a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
119527a0395d0Smrgrmdir conf$$.dir 2>/dev/null
119537a0395d0Smrg
119542adc0320Smrg
119552adc0320Smrg# as_fn_mkdir_p
119562adc0320Smrg# -------------
119572adc0320Smrg# Create "$as_dir" as a directory, including parents if necessary.
119582adc0320Smrgas_fn_mkdir_p ()
119592adc0320Smrg{
119602adc0320Smrg
119612adc0320Smrg  case $as_dir in #(
119622adc0320Smrg  -*) as_dir=./$as_dir;;
119632adc0320Smrg  esac
119642adc0320Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
119652adc0320Smrg    as_dirs=
119662adc0320Smrg    while :; do
119672adc0320Smrg      case $as_dir in #(
119682adc0320Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
119692adc0320Smrg      *) as_qdir=$as_dir;;
119702adc0320Smrg      esac
119712adc0320Smrg      as_dirs="'$as_qdir' $as_dirs"
119722adc0320Smrg      as_dir=`$as_dirname -- "$as_dir" ||
119732adc0320Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
119742adc0320Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
119752adc0320Smrg	 X"$as_dir" : 'X\(//\)$' \| \
119762adc0320Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
119772adc0320Smrg$as_echo X"$as_dir" |
119782adc0320Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
119792adc0320Smrg	    s//\1/
119802adc0320Smrg	    q
119812adc0320Smrg	  }
119822adc0320Smrg	  /^X\(\/\/\)[^/].*/{
119832adc0320Smrg	    s//\1/
119842adc0320Smrg	    q
119852adc0320Smrg	  }
119862adc0320Smrg	  /^X\(\/\/\)$/{
119872adc0320Smrg	    s//\1/
119882adc0320Smrg	    q
119892adc0320Smrg	  }
119902adc0320Smrg	  /^X\(\/\).*/{
119912adc0320Smrg	    s//\1/
119922adc0320Smrg	    q
119932adc0320Smrg	  }
119942adc0320Smrg	  s/.*/./; q'`
119952adc0320Smrg      test -d "$as_dir" && break
119962adc0320Smrg    done
119972adc0320Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
119982adc0320Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
119992adc0320Smrg
120002adc0320Smrg
120012adc0320Smrg} # as_fn_mkdir_p
120027a0395d0Smrgif mkdir -p . 2>/dev/null; then
120032adc0320Smrg  as_mkdir_p='mkdir -p "$as_dir"'
120047a0395d0Smrgelse
120057a0395d0Smrg  test -d ./-p && rmdir ./-p
120067a0395d0Smrg  as_mkdir_p=false
120077a0395d0Smrgfi
120087a0395d0Smrg
120098abc0ccfSmrg
120108abc0ccfSmrg# as_fn_executable_p FILE
120118abc0ccfSmrg# -----------------------
120128abc0ccfSmrg# Test if FILE is an executable regular file.
120138abc0ccfSmrgas_fn_executable_p ()
120148abc0ccfSmrg{
120158abc0ccfSmrg  test -f "$1" && test -x "$1"
120168abc0ccfSmrg} # as_fn_executable_p
120178abc0ccfSmrgas_test_x='test -x'
120188abc0ccfSmrgas_executable_p=as_fn_executable_p
120197a0395d0Smrg
120207a0395d0Smrg# Sed expression to map a string onto a valid CPP name.
120217a0395d0Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
120227a0395d0Smrg
120237a0395d0Smrg# Sed expression to map a string onto a valid variable name.
120247a0395d0Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
120257a0395d0Smrg
120267a0395d0Smrg
120277a0395d0Smrgexec 6>&1
120282adc0320Smrg## ----------------------------------- ##
120292adc0320Smrg## Main body of $CONFIG_STATUS script. ##
120302adc0320Smrg## ----------------------------------- ##
120312adc0320Smrg_ASEOF
120322adc0320Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
120337a0395d0Smrg
120342adc0320Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
120352adc0320Smrg# Save the log message, to keep $0 and so on meaningful, and to
120367a0395d0Smrg# report actual input values of CONFIG_FILES etc. instead of their
120377a0395d0Smrg# values after options handling.
120387a0395d0Smrgac_log="
1203940c5344fSmrgThis file was extended by xauth $as_me 1.0.10, which was
120408abc0ccfSmrggenerated by GNU Autoconf 2.69.  Invocation command line was
120417a0395d0Smrg
120427a0395d0Smrg  CONFIG_FILES    = $CONFIG_FILES
120437a0395d0Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
120447a0395d0Smrg  CONFIG_LINKS    = $CONFIG_LINKS
120457a0395d0Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
120467a0395d0Smrg  $ $0 $@
120477a0395d0Smrg
120487a0395d0Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
120497a0395d0Smrg"
120507a0395d0Smrg
120517a0395d0Smrg_ACEOF
120527a0395d0Smrg
120537366012aSmrgcase $ac_config_files in *"
120547366012aSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
120557366012aSmrgesac
120567366012aSmrg
120577366012aSmrgcase $ac_config_headers in *"
120587366012aSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
120597366012aSmrgesac
120607366012aSmrg
120617366012aSmrg
120627366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
120637a0395d0Smrg# Files that config.status was made for.
120647a0395d0Smrgconfig_files="$ac_config_files"
120657a0395d0Smrgconfig_headers="$ac_config_headers"
120667a0395d0Smrgconfig_commands="$ac_config_commands"
120677a0395d0Smrg
120687a0395d0Smrg_ACEOF
120697a0395d0Smrg
120707366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
120717a0395d0Smrgac_cs_usage="\
120722adc0320Smrg\`$as_me' instantiates files and other configuration actions
120732adc0320Smrgfrom templates according to the current configuration.  Unless the files
120742adc0320Smrgand actions are specified as TAGs, all are instantiated by default.
120757a0395d0Smrg
120762adc0320SmrgUsage: $0 [OPTION]... [TAG]...
120777a0395d0Smrg
120787a0395d0Smrg  -h, --help       print this help, then exit
120797a0395d0Smrg  -V, --version    print version number and configuration settings, then exit
120802adc0320Smrg      --config     print configuration, then exit
120817366012aSmrg  -q, --quiet, --silent
120827366012aSmrg                   do not print progress messages
120837a0395d0Smrg  -d, --debug      don't remove temporary files
120847a0395d0Smrg      --recheck    update $as_me by reconfiguring in the same conditions
120857366012aSmrg      --file=FILE[:TEMPLATE]
120867366012aSmrg                   instantiate the configuration file FILE
120877366012aSmrg      --header=FILE[:TEMPLATE]
120887366012aSmrg                   instantiate the configuration header FILE
120897a0395d0Smrg
120907a0395d0SmrgConfiguration files:
120917a0395d0Smrg$config_files
120927a0395d0Smrg
120937a0395d0SmrgConfiguration headers:
120947a0395d0Smrg$config_headers
120957a0395d0Smrg
120967a0395d0SmrgConfiguration commands:
120977a0395d0Smrg$config_commands
120987a0395d0Smrg
120992adc0320SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
121007a0395d0Smrg
121017a0395d0Smrg_ACEOF
121027366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
121032adc0320Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
121047a0395d0Smrgac_cs_version="\\
1210540c5344fSmrgxauth config.status 1.0.10
121068abc0ccfSmrgconfigured by $0, generated by GNU Autoconf 2.69,
121072adc0320Smrg  with options \\"\$ac_cs_config\\"
121087a0395d0Smrg
121098abc0ccfSmrgCopyright (C) 2012 Free Software Foundation, Inc.
121107a0395d0SmrgThis config.status script is free software; the Free Software Foundation
121117a0395d0Smrggives unlimited permission to copy, distribute and modify it."
121127a0395d0Smrg
121137a0395d0Smrgac_pwd='$ac_pwd'
121147a0395d0Smrgsrcdir='$srcdir'
121157a0395d0SmrgINSTALL='$INSTALL'
121167a0395d0SmrgMKDIR_P='$MKDIR_P'
121177366012aSmrgAWK='$AWK'
121187366012aSmrgtest -n "\$AWK" || AWK=awk
121197a0395d0Smrg_ACEOF
121207a0395d0Smrg
121217366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
121227366012aSmrg# The default lists apply if the user does not specify any file.
121237a0395d0Smrgac_need_defaults=:
121247a0395d0Smrgwhile test $# != 0
121257a0395d0Smrgdo
121267a0395d0Smrg  case $1 in
121272adc0320Smrg  --*=?*)
121287a0395d0Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
121297a0395d0Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
121307a0395d0Smrg    ac_shift=:
121317a0395d0Smrg    ;;
121322adc0320Smrg  --*=)
121332adc0320Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
121342adc0320Smrg    ac_optarg=
121352adc0320Smrg    ac_shift=:
121362adc0320Smrg    ;;
121377a0395d0Smrg  *)
121387a0395d0Smrg    ac_option=$1
121397a0395d0Smrg    ac_optarg=$2
121407a0395d0Smrg    ac_shift=shift
121417a0395d0Smrg    ;;
121427a0395d0Smrg  esac
121437a0395d0Smrg
121447a0395d0Smrg  case $ac_option in
121457a0395d0Smrg  # Handling of the options.
121467a0395d0Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
121477a0395d0Smrg    ac_cs_recheck=: ;;
121487a0395d0Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
121497366012aSmrg    $as_echo "$ac_cs_version"; exit ;;
121502adc0320Smrg  --config | --confi | --conf | --con | --co | --c )
121512adc0320Smrg    $as_echo "$ac_cs_config"; exit ;;
121527a0395d0Smrg  --debug | --debu | --deb | --de | --d | -d )
121537a0395d0Smrg    debug=: ;;
121547a0395d0Smrg  --file | --fil | --fi | --f )
121557a0395d0Smrg    $ac_shift
121567366012aSmrg    case $ac_optarg in
121577366012aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
121582adc0320Smrg    '') as_fn_error $? "missing file argument" ;;
121597366012aSmrg    esac
121602adc0320Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
121617a0395d0Smrg    ac_need_defaults=false;;
121627a0395d0Smrg  --header | --heade | --head | --hea )
121637a0395d0Smrg    $ac_shift
121647366012aSmrg    case $ac_optarg in
121657366012aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
121667366012aSmrg    esac
121672adc0320Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
121687a0395d0Smrg    ac_need_defaults=false;;
121697a0395d0Smrg  --he | --h)
121707a0395d0Smrg    # Conflict between --help and --header
121712adc0320Smrg    as_fn_error $? "ambiguous option: \`$1'
121722adc0320SmrgTry \`$0 --help' for more information.";;
121737a0395d0Smrg  --help | --hel | -h )
121747366012aSmrg    $as_echo "$ac_cs_usage"; exit ;;
121757a0395d0Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
121767a0395d0Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
121777a0395d0Smrg    ac_cs_silent=: ;;
121787a0395d0Smrg
121797a0395d0Smrg  # This is an error.
121802adc0320Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
121812adc0320SmrgTry \`$0 --help' for more information." ;;
121827a0395d0Smrg
121832adc0320Smrg  *) as_fn_append ac_config_targets " $1"
121847a0395d0Smrg     ac_need_defaults=false ;;
121857a0395d0Smrg
121867a0395d0Smrg  esac
121877a0395d0Smrg  shift
121887a0395d0Smrgdone
121897a0395d0Smrg
121907a0395d0Smrgac_configure_extra_args=
121917a0395d0Smrg
121927a0395d0Smrgif $ac_cs_silent; then
121937a0395d0Smrg  exec 6>/dev/null
121947a0395d0Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
121957a0395d0Smrgfi
121967a0395d0Smrg
121977a0395d0Smrg_ACEOF
121987366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
121997a0395d0Smrgif \$ac_cs_recheck; then
122008abc0ccfSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
122017366012aSmrg  shift
122027366012aSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
122037366012aSmrg  CONFIG_SHELL='$SHELL'
122047a0395d0Smrg  export CONFIG_SHELL
122057366012aSmrg  exec "\$@"
122067a0395d0Smrgfi
122077a0395d0Smrg
122087a0395d0Smrg_ACEOF
122097366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
122107a0395d0Smrgexec 5>>config.log
122117a0395d0Smrg{
122127a0395d0Smrg  echo
122137a0395d0Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
122147a0395d0Smrg## Running $as_me. ##
122157a0395d0Smrg_ASBOX
122167366012aSmrg  $as_echo "$ac_log"
122177a0395d0Smrg} >&5
122187a0395d0Smrg
122197a0395d0Smrg_ACEOF
122207366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
122217a0395d0Smrg#
122227a0395d0Smrg# INIT-COMMANDS
122237a0395d0Smrg#
122247a0395d0SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
122257a0395d0Smrg
122267a0395d0Smrg_ACEOF
122277a0395d0Smrg
122287366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
122297a0395d0Smrg
122307a0395d0Smrg# Handling of arguments.
122317a0395d0Smrgfor ac_config_target in $ac_config_targets
122327a0395d0Smrgdo
122337a0395d0Smrg  case $ac_config_target in
122347a0395d0Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
122357a0395d0Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
122367a0395d0Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
122378abc0ccfSmrg    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
122382852888eSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
122397a0395d0Smrg
122402adc0320Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
122417a0395d0Smrg  esac
122427a0395d0Smrgdone
122437a0395d0Smrg
122447a0395d0Smrg
122457a0395d0Smrg# If the user did not use the arguments to specify the items to instantiate,
122467a0395d0Smrg# then the envvar interface is used.  Set only those that are not.
122477a0395d0Smrg# We use the long form for the default assignment because of an extremely
122487a0395d0Smrg# bizarre bug on SunOS 4.1.3.
122497a0395d0Smrgif $ac_need_defaults; then
122507a0395d0Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
122517a0395d0Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
122527a0395d0Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
122537a0395d0Smrgfi
122547a0395d0Smrg
122557a0395d0Smrg# Have a temporary directory for convenience.  Make it in the build tree
122567a0395d0Smrg# simply because there is no reason against having it here, and in addition,
122577a0395d0Smrg# creating and moving files from /tmp can sometimes cause problems.
122587a0395d0Smrg# Hook for its removal unless debugging.
122597a0395d0Smrg# Note that there is a small window in which the directory will not be cleaned:
122607a0395d0Smrg# after its creation but before its name has been assigned to `$tmp'.
122617a0395d0Smrg$debug ||
122627a0395d0Smrg{
122632adc0320Smrg  tmp= ac_tmp=
122647a0395d0Smrg  trap 'exit_status=$?
122652adc0320Smrg  : "${ac_tmp:=$tmp}"
122662adc0320Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
122677a0395d0Smrg' 0
122682adc0320Smrg  trap 'as_fn_exit 1' 1 2 13 15
122697a0395d0Smrg}
122707a0395d0Smrg# Create a (secure) tmp directory for tmp files.
122717a0395d0Smrg
122727a0395d0Smrg{
122737a0395d0Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
122742adc0320Smrg  test -d "$tmp"
122757a0395d0Smrg}  ||
122767a0395d0Smrg{
122777a0395d0Smrg  tmp=./conf$$-$RANDOM
122787a0395d0Smrg  (umask 077 && mkdir "$tmp")
122792adc0320Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
122802adc0320Smrgac_tmp=$tmp
122817a0395d0Smrg
122827366012aSmrg# Set up the scripts for CONFIG_FILES section.
122837366012aSmrg# No need to generate them if there are no CONFIG_FILES.
122847366012aSmrg# This happens for instance with `./config.status config.h'.
122857a0395d0Smrgif test -n "$CONFIG_FILES"; then
122867a0395d0Smrg
122877a0395d0Smrg
122882adc0320Smrgac_cr=`echo X | tr X '\015'`
122892adc0320Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
122902adc0320Smrg# But we know of no other shell where ac_cr would be empty at this
122912adc0320Smrg# point, so we can use a bashism as a fallback.
122922adc0320Smrgif test "x$ac_cr" = x; then
122932adc0320Smrg  eval ac_cr=\$\'\\r\'
122942adc0320Smrgfi
122957366012aSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
122967366012aSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
122977366012aSmrg  ac_cs_awk_cr='\\r'
122987366012aSmrgelse
122997366012aSmrg  ac_cs_awk_cr=$ac_cr
123007a0395d0Smrgfi
123017a0395d0Smrg
123022adc0320Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
123037a0395d0Smrg_ACEOF
123047a0395d0Smrg
123057a0395d0Smrg
123067366012aSmrg{
123077366012aSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
123087366012aSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
123097366012aSmrg  echo "_ACEOF"
123107366012aSmrg} >conf$$subs.sh ||
123112adc0320Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
123122adc0320Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
123137a0395d0Smrgac_delim='%!_!# '
123147a0395d0Smrgfor ac_last_try in false false false false false :; do
123157366012aSmrg  . ./conf$$subs.sh ||
123162adc0320Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
123177a0395d0Smrg
123187366012aSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
123197366012aSmrg  if test $ac_delim_n = $ac_delim_num; then
123207a0395d0Smrg    break
123217a0395d0Smrg  elif $ac_last_try; then
123222adc0320Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
123237a0395d0Smrg  else
123247a0395d0Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
123257a0395d0Smrg  fi
123267a0395d0Smrgdone
123277366012aSmrgrm -f conf$$subs.sh
123287a0395d0Smrg
123297366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
123302adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
123317366012aSmrg_ACEOF
123327366012aSmrgsed -n '
123337366012aSmrgh
123347366012aSmrgs/^/S["/; s/!.*/"]=/
123357366012aSmrgp
123367366012aSmrgg
123377366012aSmrgs/^[^!]*!//
123387366012aSmrg:repl
123397366012aSmrgt repl
123407366012aSmrgs/'"$ac_delim"'$//
123417366012aSmrgt delim
123427366012aSmrg:nl
123437366012aSmrgh
123442adc0320Smrgs/\(.\{148\}\)..*/\1/
123457366012aSmrgt more1
123467366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
123477366012aSmrgp
123487366012aSmrgn
123497366012aSmrgb repl
123507366012aSmrg:more1
123517366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
123527366012aSmrgp
123537366012aSmrgg
123547366012aSmrgs/.\{148\}//
123557366012aSmrgt nl
123567366012aSmrg:delim
123577366012aSmrgh
123582adc0320Smrgs/\(.\{148\}\)..*/\1/
123597366012aSmrgt more2
123607366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
123617366012aSmrgp
123627366012aSmrgb
123637366012aSmrg:more2
123647366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
123657366012aSmrgp
123667366012aSmrgg
123677366012aSmrgs/.\{148\}//
123687366012aSmrgt delim
123697366012aSmrg' <conf$$subs.awk | sed '
123707366012aSmrg/^[^""]/{
123717366012aSmrg  N
123727366012aSmrg  s/\n//
123737366012aSmrg}
123747366012aSmrg' >>$CONFIG_STATUS || ac_write_fail=1
123757366012aSmrgrm -f conf$$subs.awk
123767366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
123777366012aSmrg_ACAWK
123782adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
123797366012aSmrg  for (key in S) S_is_set[key] = 1
123807366012aSmrg  FS = ""
123817366012aSmrg
123827366012aSmrg}
123837366012aSmrg{
123847366012aSmrg  line = $ 0
123857366012aSmrg  nfields = split(line, field, "@")
123867366012aSmrg  substed = 0
123877366012aSmrg  len = length(field[1])
123887366012aSmrg  for (i = 2; i < nfields; i++) {
123897366012aSmrg    key = field[i]
123907366012aSmrg    keylen = length(key)
123917366012aSmrg    if (S_is_set[key]) {
123927366012aSmrg      value = S[key]
123937366012aSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
123947366012aSmrg      len += length(value) + length(field[++i])
123957366012aSmrg      substed = 1
123967366012aSmrg    } else
123977366012aSmrg      len += 1 + keylen
123987366012aSmrg  }
123997366012aSmrg
124007366012aSmrg  print line
124017366012aSmrg}
124027a0395d0Smrg
124037366012aSmrg_ACAWK
124047a0395d0Smrg_ACEOF
124057366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
124067366012aSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
124077366012aSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
124087366012aSmrgelse
124097366012aSmrg  cat
124102adc0320Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
124112adc0320Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
124127a0395d0Smrg_ACEOF
124137a0395d0Smrg
124142adc0320Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
124152adc0320Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
124167a0395d0Smrg# trailing colons and then remove the whole line if VPATH becomes empty
124177a0395d0Smrg# (actually we leave an empty line to preserve line numbers).
124187a0395d0Smrgif test "x$srcdir" = x.; then
124192adc0320Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
124202adc0320Smrgh
124212adc0320Smrgs///
124222adc0320Smrgs/^/:/
124232adc0320Smrgs/[	 ]*$/:/
124242adc0320Smrgs/:\$(srcdir):/:/g
124252adc0320Smrgs/:\${srcdir}:/:/g
124262adc0320Smrgs/:@srcdir@:/:/g
124272adc0320Smrgs/^:*//
124287a0395d0Smrgs/:*$//
124292adc0320Smrgx
124302adc0320Smrgs/\(=[	 ]*\).*/\1/
124312adc0320SmrgG
124322adc0320Smrgs/\n//
124337a0395d0Smrgs/^[^=]*=[	 ]*$//
124347a0395d0Smrg}'
124357a0395d0Smrgfi
124367a0395d0Smrg
124377366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
124387a0395d0Smrgfi # test -n "$CONFIG_FILES"
124397a0395d0Smrg
124407366012aSmrg# Set up the scripts for CONFIG_HEADERS section.
124417366012aSmrg# No need to generate them if there are no CONFIG_HEADERS.
124427366012aSmrg# This happens for instance with `./config.status Makefile'.
124437366012aSmrgif test -n "$CONFIG_HEADERS"; then
124442adc0320Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
124457366012aSmrgBEGIN {
124467366012aSmrg_ACEOF
124477366012aSmrg
124487366012aSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
124497366012aSmrg# here-document in config.status, that substitutes the proper values into
124507366012aSmrg# config.h.in to produce config.h.
124517366012aSmrg
124527366012aSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
124537366012aSmrg# handling of long lines.
124547366012aSmrgac_delim='%!_!# '
124557366012aSmrgfor ac_last_try in false false :; do
124562adc0320Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
124572adc0320Smrg  if test -z "$ac_tt"; then
124587366012aSmrg    break
124597366012aSmrg  elif $ac_last_try; then
124602adc0320Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
124617366012aSmrg  else
124627366012aSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
124637366012aSmrg  fi
124647366012aSmrgdone
124657366012aSmrg
124667366012aSmrg# For the awk script, D is an array of macro values keyed by name,
124677366012aSmrg# likewise P contains macro parameters if any.  Preserve backslash
124687366012aSmrg# newline sequences.
124697366012aSmrg
124707366012aSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
124717366012aSmrgsed -n '
124727366012aSmrgs/.\{148\}/&'"$ac_delim"'/g
124737366012aSmrgt rset
124747366012aSmrg:rset
124757366012aSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
124767366012aSmrgt def
124777366012aSmrgd
124787366012aSmrg:def
124797366012aSmrgs/\\$//
124807366012aSmrgt bsnl
124817366012aSmrgs/["\\]/\\&/g
124827366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
124837366012aSmrgD["\1"]=" \3"/p
124847366012aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
124857366012aSmrgd
124867366012aSmrg:bsnl
124877366012aSmrgs/["\\]/\\&/g
124887366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
124897366012aSmrgD["\1"]=" \3\\\\\\n"\\/p
124907366012aSmrgt cont
124917366012aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
124927366012aSmrgt cont
124937366012aSmrgd
124947366012aSmrg:cont
124957366012aSmrgn
124967366012aSmrgs/.\{148\}/&'"$ac_delim"'/g
124977366012aSmrgt clear
124987366012aSmrg:clear
124997366012aSmrgs/\\$//
125007366012aSmrgt bsnlc
125017366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
125027366012aSmrgd
125037366012aSmrg:bsnlc
125047366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
125057366012aSmrgb cont
125067366012aSmrg' <confdefs.h | sed '
125077366012aSmrgs/'"$ac_delim"'/"\\\
125087366012aSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
125097366012aSmrg
125107366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
125117366012aSmrg  for (key in D) D_is_set[key] = 1
125127366012aSmrg  FS = ""
125137366012aSmrg}
125147366012aSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
125157366012aSmrg  line = \$ 0
125167366012aSmrg  split(line, arg, " ")
125177366012aSmrg  if (arg[1] == "#") {
125187366012aSmrg    defundef = arg[2]
125197366012aSmrg    mac1 = arg[3]
125207366012aSmrg  } else {
125217366012aSmrg    defundef = substr(arg[1], 2)
125227366012aSmrg    mac1 = arg[2]
125237366012aSmrg  }
125247366012aSmrg  split(mac1, mac2, "(") #)
125257366012aSmrg  macro = mac2[1]
125267366012aSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
125277366012aSmrg  if (D_is_set[macro]) {
125287366012aSmrg    # Preserve the white space surrounding the "#".
125297366012aSmrg    print prefix "define", macro P[macro] D[macro]
125307366012aSmrg    next
125317366012aSmrg  } else {
125327366012aSmrg    # Replace #undef with comments.  This is necessary, for example,
125337366012aSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
125347366012aSmrg    # on some systems where configure will not decide to define it.
125357366012aSmrg    if (defundef == "undef") {
125367366012aSmrg      print "/*", prefix defundef, macro, "*/"
125377366012aSmrg      next
125387366012aSmrg    }
125397366012aSmrg  }
125407366012aSmrg}
125417366012aSmrg{ print }
125427366012aSmrg_ACAWK
125437366012aSmrg_ACEOF
125447366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
125452adc0320Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
125467366012aSmrgfi # test -n "$CONFIG_HEADERS"
125477366012aSmrg
125487a0395d0Smrg
125497366012aSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
125507366012aSmrgshift
125517366012aSmrgfor ac_tag
125527a0395d0Smrgdo
125537a0395d0Smrg  case $ac_tag in
125547a0395d0Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
125557a0395d0Smrg  esac
125567a0395d0Smrg  case $ac_mode$ac_tag in
125577a0395d0Smrg  :[FHL]*:*);;
125582adc0320Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
125597a0395d0Smrg  :[FH]-) ac_tag=-:-;;
125607a0395d0Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
125617a0395d0Smrg  esac
125627a0395d0Smrg  ac_save_IFS=$IFS
125637a0395d0Smrg  IFS=:
125647a0395d0Smrg  set x $ac_tag
125657a0395d0Smrg  IFS=$ac_save_IFS
125667a0395d0Smrg  shift
125677a0395d0Smrg  ac_file=$1
125687a0395d0Smrg  shift
125697a0395d0Smrg
125707a0395d0Smrg  case $ac_mode in
125717a0395d0Smrg  :L) ac_source=$1;;
125727a0395d0Smrg  :[FH])
125737a0395d0Smrg    ac_file_inputs=
125747a0395d0Smrg    for ac_f
125757a0395d0Smrg    do
125767a0395d0Smrg      case $ac_f in
125772adc0320Smrg      -) ac_f="$ac_tmp/stdin";;
125787a0395d0Smrg      *) # Look for the file first in the build tree, then in the source tree
125797a0395d0Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
125807a0395d0Smrg	 # because $ac_f cannot contain `:'.
125817a0395d0Smrg	 test -f "$ac_f" ||
125827a0395d0Smrg	   case $ac_f in
125837a0395d0Smrg	   [\\/$]*) false;;
125847a0395d0Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
125857a0395d0Smrg	   esac ||
125862adc0320Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
125877a0395d0Smrg      esac
125887366012aSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
125892adc0320Smrg      as_fn_append ac_file_inputs " '$ac_f'"
125907a0395d0Smrg    done
125917a0395d0Smrg
125927a0395d0Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
125937a0395d0Smrg    # use $as_me), people would be surprised to read:
125947a0395d0Smrg    #    /* config.h.  Generated by config.status.  */
125957366012aSmrg    configure_input='Generated from '`
125967366012aSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
125977366012aSmrg	`' by configure.'
125987a0395d0Smrg    if test x"$ac_file" != x-; then
125997a0395d0Smrg      configure_input="$ac_file.  $configure_input"
126002adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
126017366012aSmrg$as_echo "$as_me: creating $ac_file" >&6;}
126027a0395d0Smrg    fi
126037366012aSmrg    # Neutralize special characters interpreted by sed in replacement strings.
126047366012aSmrg    case $configure_input in #(
126057366012aSmrg    *\&* | *\|* | *\\* )
126067366012aSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
126077366012aSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
126087366012aSmrg    *) ac_sed_conf_input=$configure_input;;
126097366012aSmrg    esac
126107a0395d0Smrg
126117a0395d0Smrg    case $ac_tag in
126122adc0320Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
126132adc0320Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
126147a0395d0Smrg    esac
126157a0395d0Smrg    ;;
126167a0395d0Smrg  esac
126177a0395d0Smrg
126187a0395d0Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
126197a0395d0Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
126207a0395d0Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
126217a0395d0Smrg	 X"$ac_file" : 'X\(//\)$' \| \
126227a0395d0Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
126237366012aSmrg$as_echo X"$ac_file" |
126247a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
126257a0395d0Smrg	    s//\1/
126267a0395d0Smrg	    q
126277a0395d0Smrg	  }
126287a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
126297a0395d0Smrg	    s//\1/
126307a0395d0Smrg	    q
126317a0395d0Smrg	  }
126327a0395d0Smrg	  /^X\(\/\/\)$/{
126337a0395d0Smrg	    s//\1/
126347a0395d0Smrg	    q
126357a0395d0Smrg	  }
126367a0395d0Smrg	  /^X\(\/\).*/{
126377a0395d0Smrg	    s//\1/
126387a0395d0Smrg	    q
126397a0395d0Smrg	  }
126407a0395d0Smrg	  s/.*/./; q'`
126412adc0320Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
126427a0395d0Smrg  ac_builddir=.
126437a0395d0Smrg
126447a0395d0Smrgcase "$ac_dir" in
126457a0395d0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
126467a0395d0Smrg*)
126477366012aSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
126487a0395d0Smrg  # A ".." for each directory in $ac_dir_suffix.
126497366012aSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
126507a0395d0Smrg  case $ac_top_builddir_sub in
126517a0395d0Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
126527a0395d0Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
126537a0395d0Smrg  esac ;;
126547a0395d0Smrgesac
126557a0395d0Smrgac_abs_top_builddir=$ac_pwd
126567a0395d0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
126577a0395d0Smrg# for backward compatibility:
126587a0395d0Smrgac_top_builddir=$ac_top_build_prefix
126597a0395d0Smrg
126607a0395d0Smrgcase $srcdir in
126617a0395d0Smrg  .)  # We are building in place.
126627a0395d0Smrg    ac_srcdir=.
126637a0395d0Smrg    ac_top_srcdir=$ac_top_builddir_sub
126647a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd ;;
126657a0395d0Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
126667a0395d0Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
126677a0395d0Smrg    ac_top_srcdir=$srcdir
126687a0395d0Smrg    ac_abs_top_srcdir=$srcdir ;;
126697a0395d0Smrg  *) # Relative name.
126707a0395d0Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
126717a0395d0Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
126727a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
126737a0395d0Smrgesac
126747a0395d0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
126757a0395d0Smrg
126767a0395d0Smrg
126777a0395d0Smrg  case $ac_mode in
126787a0395d0Smrg  :F)
126797a0395d0Smrg  #
126807a0395d0Smrg  # CONFIG_FILE
126817a0395d0Smrg  #
126827a0395d0Smrg
126837a0395d0Smrg  case $INSTALL in
126847a0395d0Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
126857a0395d0Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
126867a0395d0Smrg  esac
126877a0395d0Smrg  ac_MKDIR_P=$MKDIR_P
126887a0395d0Smrg  case $MKDIR_P in
126897a0395d0Smrg  [\\/$]* | ?:[\\/]* ) ;;
126907a0395d0Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
126917a0395d0Smrg  esac
126927a0395d0Smrg_ACEOF
126937a0395d0Smrg
126947366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
126957a0395d0Smrg# If the template does not know about datarootdir, expand it.
126967a0395d0Smrg# FIXME: This hack should be removed a few years after 2.60.
126977a0395d0Smrgac_datarootdir_hack=; ac_datarootdir_seen=
126987366012aSmrgac_sed_dataroot='
126997366012aSmrg/datarootdir/ {
127007a0395d0Smrg  p
127017a0395d0Smrg  q
127027a0395d0Smrg}
127037a0395d0Smrg/@datadir@/p
127047a0395d0Smrg/@docdir@/p
127057a0395d0Smrg/@infodir@/p
127067a0395d0Smrg/@localedir@/p
127072adc0320Smrg/@mandir@/p'
127087366012aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
127097a0395d0Smrg*datarootdir*) ac_datarootdir_seen=yes;;
127107a0395d0Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
127112adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
127127366012aSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
127137a0395d0Smrg_ACEOF
127147366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
127157a0395d0Smrg  ac_datarootdir_hack='
127167a0395d0Smrg  s&@datadir@&$datadir&g
127177a0395d0Smrg  s&@docdir@&$docdir&g
127187a0395d0Smrg  s&@infodir@&$infodir&g
127197a0395d0Smrg  s&@localedir@&$localedir&g
127207a0395d0Smrg  s&@mandir@&$mandir&g
127212adc0320Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
127227a0395d0Smrgesac
127237a0395d0Smrg_ACEOF
127247a0395d0Smrg
127257a0395d0Smrg# Neutralize VPATH when `$srcdir' = `.'.
127267a0395d0Smrg# Shell code in configure.ac might set extrasub.
127277a0395d0Smrg# FIXME: do we really want to maintain this feature?
127287366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
127297366012aSmrgac_sed_extra="$ac_vpsub
127307a0395d0Smrg$extrasub
127317a0395d0Smrg_ACEOF
127327366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
127337a0395d0Smrg:t
127347a0395d0Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
127357366012aSmrgs|@configure_input@|$ac_sed_conf_input|;t t
127367a0395d0Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
127377366012aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
127387a0395d0Smrgs&@srcdir@&$ac_srcdir&;t t
127397a0395d0Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
127407a0395d0Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
127417a0395d0Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
127427a0395d0Smrgs&@builddir@&$ac_builddir&;t t
127437a0395d0Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
127447a0395d0Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
127457a0395d0Smrgs&@INSTALL@&$ac_INSTALL&;t t
127467a0395d0Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
127477a0395d0Smrg$ac_datarootdir_hack
127487366012aSmrg"
127492adc0320Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
127502adc0320Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
127517a0395d0Smrg
127527a0395d0Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
127532adc0320Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
127542adc0320Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
127552adc0320Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
127562adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
127572adc0320Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
127587366012aSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
127592adc0320Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
127607a0395d0Smrg
127612adc0320Smrg  rm -f "$ac_tmp/stdin"
127627a0395d0Smrg  case $ac_file in
127632adc0320Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
127642adc0320Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
127657366012aSmrg  esac \
127662adc0320Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
127677a0395d0Smrg ;;
127687a0395d0Smrg  :H)
127697a0395d0Smrg  #
127707a0395d0Smrg  # CONFIG_HEADER
127717a0395d0Smrg  #
127727a0395d0Smrg  if test x"$ac_file" != x-; then
127737366012aSmrg    {
127747366012aSmrg      $as_echo "/* $configure_input  */" \
127752adc0320Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
127762adc0320Smrg    } >"$ac_tmp/config.h" \
127772adc0320Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
127782adc0320Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
127792adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
127807366012aSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
127817a0395d0Smrg    else
127827366012aSmrg      rm -f "$ac_file"
127832adc0320Smrg      mv "$ac_tmp/config.h" "$ac_file" \
127842adc0320Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
127857a0395d0Smrg    fi
127867a0395d0Smrg  else
127877366012aSmrg    $as_echo "/* $configure_input  */" \
127882adc0320Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
127892adc0320Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
127907a0395d0Smrg  fi
127917366012aSmrg# Compute "$ac_file"'s index in $config_headers.
127927366012aSmrg_am_arg="$ac_file"
127937a0395d0Smrg_am_stamp_count=1
127947a0395d0Smrgfor _am_header in $config_headers :; do
127957a0395d0Smrg  case $_am_header in
127967a0395d0Smrg    $_am_arg | $_am_arg:* )
127977a0395d0Smrg      break ;;
127987a0395d0Smrg    * )
127997a0395d0Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
128007a0395d0Smrg  esac
128017a0395d0Smrgdone
128027a0395d0Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
128037a0395d0Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
128047a0395d0Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
128057a0395d0Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
128067a0395d0Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
128077366012aSmrg$as_echo X"$_am_arg" |
128087a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
128097a0395d0Smrg	    s//\1/
128107a0395d0Smrg	    q
128117a0395d0Smrg	  }
128127a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
128137a0395d0Smrg	    s//\1/
128147a0395d0Smrg	    q
128157a0395d0Smrg	  }
128167a0395d0Smrg	  /^X\(\/\/\)$/{
128177a0395d0Smrg	    s//\1/
128187a0395d0Smrg	    q
128197a0395d0Smrg	  }
128207a0395d0Smrg	  /^X\(\/\).*/{
128217a0395d0Smrg	    s//\1/
128227a0395d0Smrg	    q
128237a0395d0Smrg	  }
128247a0395d0Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
128257a0395d0Smrg ;;
128267a0395d0Smrg
128272adc0320Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
128287366012aSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
128297a0395d0Smrg ;;
128307a0395d0Smrg  esac
128317a0395d0Smrg
128327a0395d0Smrg
128337a0395d0Smrg  case $ac_file$ac_mode in
128347366012aSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
128359a011757Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
128367366012aSmrg  # are listed without --file.  Let's play safe and only enable the eval
128377366012aSmrg  # if we detect the quoting.
128387366012aSmrg  case $CONFIG_FILES in
128397366012aSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
128407366012aSmrg  *)   set x $CONFIG_FILES ;;
128417366012aSmrg  esac
128427366012aSmrg  shift
128437366012aSmrg  for mf
128447366012aSmrg  do
128457366012aSmrg    # Strip MF so we end up with the name of the file.
128467366012aSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
128477366012aSmrg    # Check whether this is an Automake generated Makefile or not.
128488abc0ccfSmrg    # We used to match only the files named 'Makefile.in', but
128497366012aSmrg    # some people rename them; so instead we look at the file content.
128507366012aSmrg    # Grep'ing the first line is not enough: some people post-process
128517366012aSmrg    # each Makefile.in and add a new line on top of each file to say so.
128527366012aSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
128537366012aSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
128547366012aSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
128557366012aSmrg      dirpart=`$as_dirname -- "$mf" ||
128567a0395d0Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
128577a0395d0Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
128587a0395d0Smrg	 X"$mf" : 'X\(//\)$' \| \
128597a0395d0Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
128607366012aSmrg$as_echo X"$mf" |
128617a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
128627a0395d0Smrg	    s//\1/
128637a0395d0Smrg	    q
128647a0395d0Smrg	  }
128657a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
128667a0395d0Smrg	    s//\1/
128677a0395d0Smrg	    q
128687a0395d0Smrg	  }
128697a0395d0Smrg	  /^X\(\/\/\)$/{
128707a0395d0Smrg	    s//\1/
128717a0395d0Smrg	    q
128727a0395d0Smrg	  }
128737a0395d0Smrg	  /^X\(\/\).*/{
128747a0395d0Smrg	    s//\1/
128757a0395d0Smrg	    q
128767a0395d0Smrg	  }
128777a0395d0Smrg	  s/.*/./; q'`
128787366012aSmrg    else
128797366012aSmrg      continue
128807366012aSmrg    fi
128817366012aSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
128828abc0ccfSmrg    # from the Makefile without running 'make'.
128837366012aSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
128847366012aSmrg    test -z "$DEPDIR" && continue
128857366012aSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
128869a011757Smrg    test -z "$am__include" && continue
128877366012aSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
128887366012aSmrg    # Find all dependency output files, they are included files with
128897366012aSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
128907366012aSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
128917366012aSmrg    # expansion.
128927366012aSmrg    for file in `sed -n "
128937366012aSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
128948abc0ccfSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
128957366012aSmrg      # Make sure the directory exists.
128967366012aSmrg      test -f "$dirpart/$file" && continue
128977366012aSmrg      fdir=`$as_dirname -- "$file" ||
128987a0395d0Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
128997a0395d0Smrg	 X"$file" : 'X\(//\)[^/]' \| \
129007a0395d0Smrg	 X"$file" : 'X\(//\)$' \| \
129017a0395d0Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
129027366012aSmrg$as_echo X"$file" |
129037a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
129047a0395d0Smrg	    s//\1/
129057a0395d0Smrg	    q
129067a0395d0Smrg	  }
129077a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
129087a0395d0Smrg	    s//\1/
129097a0395d0Smrg	    q
129107a0395d0Smrg	  }
129117a0395d0Smrg	  /^X\(\/\/\)$/{
129127a0395d0Smrg	    s//\1/
129137a0395d0Smrg	    q
129147a0395d0Smrg	  }
129157a0395d0Smrg	  /^X\(\/\).*/{
129167a0395d0Smrg	    s//\1/
129177a0395d0Smrg	    q
129187a0395d0Smrg	  }
129197a0395d0Smrg	  s/.*/./; q'`
129202adc0320Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
129217366012aSmrg      # echo "creating $dirpart/$file"
129227366012aSmrg      echo '# dummy' > "$dirpart/$file"
129237366012aSmrg    done
129247a0395d0Smrg  done
129257366012aSmrg}
129267a0395d0Smrg ;;
129277a0395d0Smrg
129287a0395d0Smrg  esac
129297a0395d0Smrgdone # for ac_tag
129307a0395d0Smrg
129317a0395d0Smrg
129322adc0320Smrgas_fn_exit 0
129337a0395d0Smrg_ACEOF
129347a0395d0Smrgac_clean_files=$ac_clean_files_save
129357a0395d0Smrg
129367366012aSmrgtest $ac_write_fail = 0 ||
129372adc0320Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
129387366012aSmrg
129397a0395d0Smrg
129407a0395d0Smrg# configure is writing to config.log, and then calls config.status.
129417a0395d0Smrg# config.status does its own redirection, appending to config.log.
129427a0395d0Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
129437a0395d0Smrg# by configure, so config.status won't be able to write to it; its
129447a0395d0Smrg# output is simply discarded.  So we exec the FD to /dev/null,
129457a0395d0Smrg# effectively closing config.log, so it can be properly (re)opened and
129467a0395d0Smrg# appended to by config.status.  When coming back to configure, we
129477a0395d0Smrg# need to make the FD available again.
129487a0395d0Smrgif test "$no_create" != yes; then
129497a0395d0Smrg  ac_cs_success=:
129507a0395d0Smrg  ac_config_status_args=
129517a0395d0Smrg  test "$silent" = yes &&
129527a0395d0Smrg    ac_config_status_args="$ac_config_status_args --quiet"
129537a0395d0Smrg  exec 5>/dev/null
129547a0395d0Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
129557a0395d0Smrg  exec 5>>config.log
129567a0395d0Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
129577a0395d0Smrg  # would make configure fail if this is the last instruction.
129582adc0320Smrg  $ac_cs_success || as_fn_exit 1
129597a0395d0Smrgfi
129607366012aSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
129612adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
129627366012aSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
129637366012aSmrgfi
129647a0395d0Smrg
12965