configure revision 9a011757
17a0395d0Smrg#! /bin/sh
27a0395d0Smrg# Guess values for system-dependent variables and create Makefiles.
39a011757Smrg# Generated by GNU Autoconf 2.69 for xauth 1.0.9.
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'
5849a011757SmrgPACKAGE_VERSION='1.0.9'
5859a011757SmrgPACKAGE_STRING='xauth 1.0.9'
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
6867366012aSmrgMAINT
6877366012aSmrgMAINTAINER_MODE_FALSE
6887366012aSmrgMAINTAINER_MODE_TRUE
6899a011757SmrgAM_BACKSLASH
6909a011757SmrgAM_DEFAULT_VERBOSITY
6919a011757SmrgAM_DEFAULT_V
6929a011757SmrgAM_V
6937366012aSmrgam__untar
6947366012aSmrgam__tar
6957366012aSmrgAMTAR
6967366012aSmrgam__leading_dot
6977366012aSmrgSET_MAKE
6987366012aSmrgAWK
6997366012aSmrgmkdir_p
7007366012aSmrgMKDIR_P
7017366012aSmrgINSTALL_STRIP_PROGRAM
7027366012aSmrgSTRIP
7037366012aSmrginstall_sh
7047366012aSmrgMAKEINFO
7057366012aSmrgAUTOHEADER
7067366012aSmrgAUTOMAKE
7077366012aSmrgAUTOCONF
7087366012aSmrgACLOCAL
7097366012aSmrgVERSION
7107366012aSmrgPACKAGE
7117366012aSmrgCYGPATH_W
7127366012aSmrgam__isrc
7137366012aSmrgINSTALL_DATA
7147366012aSmrgINSTALL_SCRIPT
7157366012aSmrgINSTALL_PROGRAM
7167366012aSmrgtarget_alias
7177366012aSmrghost_alias
7187366012aSmrgbuild_alias
7197366012aSmrgLIBS
7207366012aSmrgECHO_T
7217366012aSmrgECHO_N
7227366012aSmrgECHO_C
7237366012aSmrgDEFS
7247366012aSmrgmandir
7257366012aSmrglocaledir
7267366012aSmrglibdir
7277366012aSmrgpsdir
7287366012aSmrgpdfdir
7297366012aSmrgdvidir
7307366012aSmrghtmldir
7317366012aSmrginfodir
7327366012aSmrgdocdir
7337366012aSmrgoldincludedir
7347366012aSmrgincludedir
7357366012aSmrglocalstatedir
7367366012aSmrgsharedstatedir
7377366012aSmrgsysconfdir
7387366012aSmrgdatadir
7397366012aSmrgdatarootdir
7407366012aSmrglibexecdir
7417366012aSmrgsbindir
7427366012aSmrgbindir
7437366012aSmrgprogram_transform_name
7447366012aSmrgprefix
7457366012aSmrgexec_prefix
7462adc0320SmrgPACKAGE_URL
7477366012aSmrgPACKAGE_BUGREPORT
7487366012aSmrgPACKAGE_STRING
7497366012aSmrgPACKAGE_VERSION
7507366012aSmrgPACKAGE_TARNAME
7517366012aSmrgPACKAGE_NAME
7527366012aSmrgPATH_SEPARATOR
7537366012aSmrgSHELL'
7547a0395d0Smrgac_subst_files=''
7557366012aSmrgac_user_opts='
7567366012aSmrgenable_option_checking
7579a011757Smrgenable_silent_rules
7587366012aSmrgenable_maintainer_mode
7597366012aSmrgenable_dependency_tracking
76096402570Smrgenable_selective_werror
7617366012aSmrgenable_strict_compilation
7627366012aSmrgenable_unix_transport
7637366012aSmrgenable_tcp_transport
7647366012aSmrgenable_ipv6
7657366012aSmrgenable_local_transport
7667366012aSmrgwith_lint
7677366012aSmrg'
7687a0395d0Smrg      ac_precious_vars='build_alias
7697a0395d0Smrghost_alias
7707a0395d0Smrgtarget_alias
7717a0395d0SmrgCC
7727a0395d0SmrgCFLAGS
7737a0395d0SmrgLDFLAGS
7747a0395d0SmrgLIBS
7757a0395d0SmrgCPPFLAGS
7767a0395d0SmrgCPP
7777a0395d0SmrgPKG_CONFIG
7788abc0ccfSmrgPKG_CONFIG_PATH
7798abc0ccfSmrgPKG_CONFIG_LIBDIR
7807a0395d0SmrgXAUTH_CFLAGS
7812adc0320SmrgXAUTH_LIBS
7822adc0320SmrgLINT
7832adc0320SmrgLINT_FLAGS'
7847a0395d0Smrg
7857a0395d0Smrg
7867a0395d0Smrg# Initialize some variables set by options.
7877a0395d0Smrgac_init_help=
7887a0395d0Smrgac_init_version=false
7897366012aSmrgac_unrecognized_opts=
7907366012aSmrgac_unrecognized_sep=
7917a0395d0Smrg# The variables have the same names as the options, with
7927a0395d0Smrg# dashes changed to underlines.
7937a0395d0Smrgcache_file=/dev/null
7947a0395d0Smrgexec_prefix=NONE
7957a0395d0Smrgno_create=
7967a0395d0Smrgno_recursion=
7977a0395d0Smrgprefix=NONE
7987a0395d0Smrgprogram_prefix=NONE
7997a0395d0Smrgprogram_suffix=NONE
8007a0395d0Smrgprogram_transform_name=s,x,x,
8017a0395d0Smrgsilent=
8027a0395d0Smrgsite=
8037a0395d0Smrgsrcdir=
8047a0395d0Smrgverbose=
8057a0395d0Smrgx_includes=NONE
8067a0395d0Smrgx_libraries=NONE
8077a0395d0Smrg
8087a0395d0Smrg# Installation directory options.
8097a0395d0Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8107a0395d0Smrg# and all the variables that are supposed to be based on exec_prefix
8117a0395d0Smrg# by default will actually change.
8127a0395d0Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
8137a0395d0Smrg# (The list follows the same order as the GNU Coding Standards.)
8147a0395d0Smrgbindir='${exec_prefix}/bin'
8157a0395d0Smrgsbindir='${exec_prefix}/sbin'
8167a0395d0Smrglibexecdir='${exec_prefix}/libexec'
8177a0395d0Smrgdatarootdir='${prefix}/share'
8187a0395d0Smrgdatadir='${datarootdir}'
8197a0395d0Smrgsysconfdir='${prefix}/etc'
8207a0395d0Smrgsharedstatedir='${prefix}/com'
8217a0395d0Smrglocalstatedir='${prefix}/var'
8227a0395d0Smrgincludedir='${prefix}/include'
8237a0395d0Smrgoldincludedir='/usr/include'
8247a0395d0Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
8257a0395d0Smrginfodir='${datarootdir}/info'
8267a0395d0Smrghtmldir='${docdir}'
8277a0395d0Smrgdvidir='${docdir}'
8287a0395d0Smrgpdfdir='${docdir}'
8297a0395d0Smrgpsdir='${docdir}'
8307a0395d0Smrglibdir='${exec_prefix}/lib'
8317a0395d0Smrglocaledir='${datarootdir}/locale'
8327a0395d0Smrgmandir='${datarootdir}/man'
8337a0395d0Smrg
8347a0395d0Smrgac_prev=
8357a0395d0Smrgac_dashdash=
8367a0395d0Smrgfor ac_option
8377a0395d0Smrgdo
8387a0395d0Smrg  # If the previous option needs an argument, assign it.
8397a0395d0Smrg  if test -n "$ac_prev"; then
8407a0395d0Smrg    eval $ac_prev=\$ac_option
8417a0395d0Smrg    ac_prev=
8427a0395d0Smrg    continue
8437a0395d0Smrg  fi
8447a0395d0Smrg
8457a0395d0Smrg  case $ac_option in
8462adc0320Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8472adc0320Smrg  *=)   ac_optarg= ;;
8482adc0320Smrg  *)    ac_optarg=yes ;;
8497a0395d0Smrg  esac
8507a0395d0Smrg
8517a0395d0Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
8527a0395d0Smrg
8537a0395d0Smrg  case $ac_dashdash$ac_option in
8547a0395d0Smrg  --)
8557a0395d0Smrg    ac_dashdash=yes ;;
8567a0395d0Smrg
8577a0395d0Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8587a0395d0Smrg    ac_prev=bindir ;;
8597a0395d0Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8607a0395d0Smrg    bindir=$ac_optarg ;;
8617a0395d0Smrg
8627a0395d0Smrg  -build | --build | --buil | --bui | --bu)
8637a0395d0Smrg    ac_prev=build_alias ;;
8647a0395d0Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8657a0395d0Smrg    build_alias=$ac_optarg ;;
8667a0395d0Smrg
8677a0395d0Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8687a0395d0Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8697a0395d0Smrg    ac_prev=cache_file ;;
8707a0395d0Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8717a0395d0Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8727a0395d0Smrg    cache_file=$ac_optarg ;;
8737a0395d0Smrg
8747a0395d0Smrg  --config-cache | -C)
8757a0395d0Smrg    cache_file=config.cache ;;
8767a0395d0Smrg
8777a0395d0Smrg  -datadir | --datadir | --datadi | --datad)
8787a0395d0Smrg    ac_prev=datadir ;;
8797a0395d0Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8807a0395d0Smrg    datadir=$ac_optarg ;;
8817a0395d0Smrg
8827a0395d0Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8837a0395d0Smrg  | --dataroo | --dataro | --datar)
8847a0395d0Smrg    ac_prev=datarootdir ;;
8857a0395d0Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8867a0395d0Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8877a0395d0Smrg    datarootdir=$ac_optarg ;;
8887a0395d0Smrg
8897a0395d0Smrg  -disable-* | --disable-*)
8907366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8917a0395d0Smrg    # Reject names that are not valid shell variable names.
8927366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8932adc0320Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
8947366012aSmrg    ac_useropt_orig=$ac_useropt
8957366012aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8967366012aSmrg    case $ac_user_opts in
8977366012aSmrg      *"
8987366012aSmrg"enable_$ac_useropt"
8997366012aSmrg"*) ;;
9007366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
9017366012aSmrg	 ac_unrecognized_sep=', ';;
9027366012aSmrg    esac
9037366012aSmrg    eval enable_$ac_useropt=no ;;
9047a0395d0Smrg
9057a0395d0Smrg  -docdir | --docdir | --docdi | --doc | --do)
9067a0395d0Smrg    ac_prev=docdir ;;
9077a0395d0Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
9087a0395d0Smrg    docdir=$ac_optarg ;;
9097a0395d0Smrg
9107a0395d0Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
9117a0395d0Smrg    ac_prev=dvidir ;;
9127a0395d0Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
9137a0395d0Smrg    dvidir=$ac_optarg ;;
9147a0395d0Smrg
9157a0395d0Smrg  -enable-* | --enable-*)
9167366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9177a0395d0Smrg    # Reject names that are not valid shell variable names.
9187366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9192adc0320Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
9207366012aSmrg    ac_useropt_orig=$ac_useropt
9217366012aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9227366012aSmrg    case $ac_user_opts in
9237366012aSmrg      *"
9247366012aSmrg"enable_$ac_useropt"
9257366012aSmrg"*) ;;
9267366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9277366012aSmrg	 ac_unrecognized_sep=', ';;
9287366012aSmrg    esac
9297366012aSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
9307a0395d0Smrg
9317a0395d0Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9327a0395d0Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9337a0395d0Smrg  | --exec | --exe | --ex)
9347a0395d0Smrg    ac_prev=exec_prefix ;;
9357a0395d0Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9367a0395d0Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9377a0395d0Smrg  | --exec=* | --exe=* | --ex=*)
9387a0395d0Smrg    exec_prefix=$ac_optarg ;;
9397a0395d0Smrg
9407a0395d0Smrg  -gas | --gas | --ga | --g)
9417a0395d0Smrg    # Obsolete; use --with-gas.
9427a0395d0Smrg    with_gas=yes ;;
9437a0395d0Smrg
9447a0395d0Smrg  -help | --help | --hel | --he | -h)
9457a0395d0Smrg    ac_init_help=long ;;
9467a0395d0Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9477a0395d0Smrg    ac_init_help=recursive ;;
9487a0395d0Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9497a0395d0Smrg    ac_init_help=short ;;
9507a0395d0Smrg
9517a0395d0Smrg  -host | --host | --hos | --ho)
9527a0395d0Smrg    ac_prev=host_alias ;;
9537a0395d0Smrg  -host=* | --host=* | --hos=* | --ho=*)
9547a0395d0Smrg    host_alias=$ac_optarg ;;
9557a0395d0Smrg
9567a0395d0Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9577a0395d0Smrg    ac_prev=htmldir ;;
9587a0395d0Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9597a0395d0Smrg  | --ht=*)
9607a0395d0Smrg    htmldir=$ac_optarg ;;
9617a0395d0Smrg
9627a0395d0Smrg  -includedir | --includedir | --includedi | --included | --include \
9637a0395d0Smrg  | --includ | --inclu | --incl | --inc)
9647a0395d0Smrg    ac_prev=includedir ;;
9657a0395d0Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9667a0395d0Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9677a0395d0Smrg    includedir=$ac_optarg ;;
9687a0395d0Smrg
9697a0395d0Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9707a0395d0Smrg    ac_prev=infodir ;;
9717a0395d0Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9727a0395d0Smrg    infodir=$ac_optarg ;;
9737a0395d0Smrg
9747a0395d0Smrg  -libdir | --libdir | --libdi | --libd)
9757a0395d0Smrg    ac_prev=libdir ;;
9767a0395d0Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9777a0395d0Smrg    libdir=$ac_optarg ;;
9787a0395d0Smrg
9797a0395d0Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9807a0395d0Smrg  | --libexe | --libex | --libe)
9817a0395d0Smrg    ac_prev=libexecdir ;;
9827a0395d0Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9837a0395d0Smrg  | --libexe=* | --libex=* | --libe=*)
9847a0395d0Smrg    libexecdir=$ac_optarg ;;
9857a0395d0Smrg
9867a0395d0Smrg  -localedir | --localedir | --localedi | --localed | --locale)
9877a0395d0Smrg    ac_prev=localedir ;;
9887a0395d0Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9897a0395d0Smrg    localedir=$ac_optarg ;;
9907a0395d0Smrg
9917a0395d0Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
9927a0395d0Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
9937a0395d0Smrg    ac_prev=localstatedir ;;
9947a0395d0Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9957a0395d0Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9967a0395d0Smrg    localstatedir=$ac_optarg ;;
9977a0395d0Smrg
9987a0395d0Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9997a0395d0Smrg    ac_prev=mandir ;;
10007a0395d0Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
10017a0395d0Smrg    mandir=$ac_optarg ;;
10027a0395d0Smrg
10037a0395d0Smrg  -nfp | --nfp | --nf)
10047a0395d0Smrg    # Obsolete; use --without-fp.
10057a0395d0Smrg    with_fp=no ;;
10067a0395d0Smrg
10077a0395d0Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
10087a0395d0Smrg  | --no-cr | --no-c | -n)
10097a0395d0Smrg    no_create=yes ;;
10107a0395d0Smrg
10117a0395d0Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10127a0395d0Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10137a0395d0Smrg    no_recursion=yes ;;
10147a0395d0Smrg
10157a0395d0Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10167a0395d0Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10177a0395d0Smrg  | --oldin | --oldi | --old | --ol | --o)
10187a0395d0Smrg    ac_prev=oldincludedir ;;
10197a0395d0Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10207a0395d0Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10217a0395d0Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10227a0395d0Smrg    oldincludedir=$ac_optarg ;;
10237a0395d0Smrg
10247a0395d0Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10257a0395d0Smrg    ac_prev=prefix ;;
10267a0395d0Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10277a0395d0Smrg    prefix=$ac_optarg ;;
10287a0395d0Smrg
10297a0395d0Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10307a0395d0Smrg  | --program-pre | --program-pr | --program-p)
10317a0395d0Smrg    ac_prev=program_prefix ;;
10327a0395d0Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10337a0395d0Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10347a0395d0Smrg    program_prefix=$ac_optarg ;;
10357a0395d0Smrg
10367a0395d0Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10377a0395d0Smrg  | --program-suf | --program-su | --program-s)
10387a0395d0Smrg    ac_prev=program_suffix ;;
10397a0395d0Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10407a0395d0Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10417a0395d0Smrg    program_suffix=$ac_optarg ;;
10427a0395d0Smrg
10437a0395d0Smrg  -program-transform-name | --program-transform-name \
10447a0395d0Smrg  | --program-transform-nam | --program-transform-na \
10457a0395d0Smrg  | --program-transform-n | --program-transform- \
10467a0395d0Smrg  | --program-transform | --program-transfor \
10477a0395d0Smrg  | --program-transfo | --program-transf \
10487a0395d0Smrg  | --program-trans | --program-tran \
10497a0395d0Smrg  | --progr-tra | --program-tr | --program-t)
10507a0395d0Smrg    ac_prev=program_transform_name ;;
10517a0395d0Smrg  -program-transform-name=* | --program-transform-name=* \
10527a0395d0Smrg  | --program-transform-nam=* | --program-transform-na=* \
10537a0395d0Smrg  | --program-transform-n=* | --program-transform-=* \
10547a0395d0Smrg  | --program-transform=* | --program-transfor=* \
10557a0395d0Smrg  | --program-transfo=* | --program-transf=* \
10567a0395d0Smrg  | --program-trans=* | --program-tran=* \
10577a0395d0Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10587a0395d0Smrg    program_transform_name=$ac_optarg ;;
10597a0395d0Smrg
10607a0395d0Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10617a0395d0Smrg    ac_prev=pdfdir ;;
10627a0395d0Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10637a0395d0Smrg    pdfdir=$ac_optarg ;;
10647a0395d0Smrg
10657a0395d0Smrg  -psdir | --psdir | --psdi | --psd | --ps)
10667a0395d0Smrg    ac_prev=psdir ;;
10677a0395d0Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10687a0395d0Smrg    psdir=$ac_optarg ;;
10697a0395d0Smrg
10707a0395d0Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10717a0395d0Smrg  | -silent | --silent | --silen | --sile | --sil)
10727a0395d0Smrg    silent=yes ;;
10737a0395d0Smrg
10747a0395d0Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10757a0395d0Smrg    ac_prev=sbindir ;;
10767a0395d0Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10777a0395d0Smrg  | --sbi=* | --sb=*)
10787a0395d0Smrg    sbindir=$ac_optarg ;;
10797a0395d0Smrg
10807a0395d0Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10817a0395d0Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10827a0395d0Smrg  | --sharedst | --shareds | --shared | --share | --shar \
10837a0395d0Smrg  | --sha | --sh)
10847a0395d0Smrg    ac_prev=sharedstatedir ;;
10857a0395d0Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10867a0395d0Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10877a0395d0Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10887a0395d0Smrg  | --sha=* | --sh=*)
10897a0395d0Smrg    sharedstatedir=$ac_optarg ;;
10907a0395d0Smrg
10917a0395d0Smrg  -site | --site | --sit)
10927a0395d0Smrg    ac_prev=site ;;
10937a0395d0Smrg  -site=* | --site=* | --sit=*)
10947a0395d0Smrg    site=$ac_optarg ;;
10957a0395d0Smrg
10967a0395d0Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10977a0395d0Smrg    ac_prev=srcdir ;;
10987a0395d0Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10997a0395d0Smrg    srcdir=$ac_optarg ;;
11007a0395d0Smrg
11017a0395d0Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
11027a0395d0Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
11037a0395d0Smrg    ac_prev=sysconfdir ;;
11047a0395d0Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
11057a0395d0Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
11067a0395d0Smrg    sysconfdir=$ac_optarg ;;
11077a0395d0Smrg
11087a0395d0Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11097a0395d0Smrg    ac_prev=target_alias ;;
11107a0395d0Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11117a0395d0Smrg    target_alias=$ac_optarg ;;
11127a0395d0Smrg
11137a0395d0Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11147a0395d0Smrg    verbose=yes ;;
11157a0395d0Smrg
11167a0395d0Smrg  -version | --version | --versio | --versi | --vers | -V)
11177a0395d0Smrg    ac_init_version=: ;;
11187a0395d0Smrg
11197a0395d0Smrg  -with-* | --with-*)
11207366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11217a0395d0Smrg    # Reject names that are not valid shell variable names.
11227366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11232adc0320Smrg      as_fn_error $? "invalid package name: $ac_useropt"
11247366012aSmrg    ac_useropt_orig=$ac_useropt
11257366012aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11267366012aSmrg    case $ac_user_opts in
11277366012aSmrg      *"
11287366012aSmrg"with_$ac_useropt"
11297366012aSmrg"*) ;;
11307366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11317366012aSmrg	 ac_unrecognized_sep=', ';;
11327366012aSmrg    esac
11337366012aSmrg    eval with_$ac_useropt=\$ac_optarg ;;
11347a0395d0Smrg
11357a0395d0Smrg  -without-* | --without-*)
11367366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11377a0395d0Smrg    # Reject names that are not valid shell variable names.
11387366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11392adc0320Smrg      as_fn_error $? "invalid package name: $ac_useropt"
11407366012aSmrg    ac_useropt_orig=$ac_useropt
11417366012aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11427366012aSmrg    case $ac_user_opts in
11437366012aSmrg      *"
11447366012aSmrg"with_$ac_useropt"
11457366012aSmrg"*) ;;
11467366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11477366012aSmrg	 ac_unrecognized_sep=', ';;
11487366012aSmrg    esac
11497366012aSmrg    eval with_$ac_useropt=no ;;
11507a0395d0Smrg
11517a0395d0Smrg  --x)
11527a0395d0Smrg    # Obsolete; use --with-x.
11537a0395d0Smrg    with_x=yes ;;
11547a0395d0Smrg
11557a0395d0Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11567a0395d0Smrg  | --x-incl | --x-inc | --x-in | --x-i)
11577a0395d0Smrg    ac_prev=x_includes ;;
11587a0395d0Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11597a0395d0Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11607a0395d0Smrg    x_includes=$ac_optarg ;;
11617a0395d0Smrg
11627a0395d0Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11637a0395d0Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11647a0395d0Smrg    ac_prev=x_libraries ;;
11657a0395d0Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11667a0395d0Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11677a0395d0Smrg    x_libraries=$ac_optarg ;;
11687a0395d0Smrg
11692adc0320Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11702adc0320SmrgTry \`$0 --help' for more information"
11717a0395d0Smrg    ;;
11727a0395d0Smrg
11737a0395d0Smrg  *=*)
11747a0395d0Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11757a0395d0Smrg    # Reject names that are not valid shell variable names.
11762adc0320Smrg    case $ac_envvar in #(
11772adc0320Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11782adc0320Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
11792adc0320Smrg    esac
11807a0395d0Smrg    eval $ac_envvar=\$ac_optarg
11817a0395d0Smrg    export $ac_envvar ;;
11827a0395d0Smrg
11837a0395d0Smrg  *)
11847a0395d0Smrg    # FIXME: should be removed in autoconf 3.0.
11857366012aSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11867a0395d0Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11877366012aSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11882adc0320Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
11897a0395d0Smrg    ;;
11907a0395d0Smrg
11917a0395d0Smrg  esac
11927a0395d0Smrgdone
11937a0395d0Smrg
11947a0395d0Smrgif test -n "$ac_prev"; then
11957a0395d0Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11962adc0320Smrg  as_fn_error $? "missing argument to $ac_option"
11977a0395d0Smrgfi
11987a0395d0Smrg
11997366012aSmrgif test -n "$ac_unrecognized_opts"; then
12007366012aSmrg  case $enable_option_checking in
12017366012aSmrg    no) ;;
12022adc0320Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
12037366012aSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12047366012aSmrg  esac
12057366012aSmrgfi
12067366012aSmrg
12077366012aSmrg# Check all directory arguments for consistency.
12087a0395d0Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
12097a0395d0Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
12107a0395d0Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
12117a0395d0Smrg		libdir localedir mandir
12127a0395d0Smrgdo
12137a0395d0Smrg  eval ac_val=\$$ac_var
12147366012aSmrg  # Remove trailing slashes.
12157366012aSmrg  case $ac_val in
12167366012aSmrg    */ )
12177366012aSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
12187366012aSmrg      eval $ac_var=\$ac_val;;
12197366012aSmrg  esac
12207366012aSmrg  # Be sure to have absolute directory names.
12217a0395d0Smrg  case $ac_val in
12227a0395d0Smrg    [\\/$]* | ?:[\\/]* )  continue;;
12237a0395d0Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12247a0395d0Smrg  esac
12252adc0320Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
12267a0395d0Smrgdone
12277a0395d0Smrg
12287a0395d0Smrg# There might be people who depend on the old broken behavior: `$host'
12297a0395d0Smrg# used to hold the argument of --host etc.
12307a0395d0Smrg# FIXME: To remove some day.
12317a0395d0Smrgbuild=$build_alias
12327a0395d0Smrghost=$host_alias
12337a0395d0Smrgtarget=$target_alias
12347a0395d0Smrg
12357a0395d0Smrg# FIXME: To remove some day.
12367a0395d0Smrgif test "x$host_alias" != x; then
12377a0395d0Smrg  if test "x$build_alias" = x; then
12387a0395d0Smrg    cross_compiling=maybe
12397a0395d0Smrg  elif test "x$build_alias" != "x$host_alias"; then
12407a0395d0Smrg    cross_compiling=yes
12417a0395d0Smrg  fi
12427a0395d0Smrgfi
12437a0395d0Smrg
12447a0395d0Smrgac_tool_prefix=
12457a0395d0Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12467a0395d0Smrg
12477a0395d0Smrgtest "$silent" = yes && exec 6>/dev/null
12487a0395d0Smrg
12497a0395d0Smrg
12507a0395d0Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12517a0395d0Smrgac_ls_di=`ls -di .` &&
12527a0395d0Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12532adc0320Smrg  as_fn_error $? "working directory cannot be determined"
12547a0395d0Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12552adc0320Smrg  as_fn_error $? "pwd does not report name of working directory"
12567a0395d0Smrg
12577a0395d0Smrg
12587a0395d0Smrg# Find the source files, if location was not specified.
12597a0395d0Smrgif test -z "$srcdir"; then
12607a0395d0Smrg  ac_srcdir_defaulted=yes
12617a0395d0Smrg  # Try the directory containing this script, then the parent directory.
12627366012aSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12637366012aSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12647366012aSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12657366012aSmrg	 X"$as_myself" : 'X\(//\)$' \| \
12667366012aSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12677366012aSmrg$as_echo X"$as_myself" |
12687a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12697a0395d0Smrg	    s//\1/
12707a0395d0Smrg	    q
12717a0395d0Smrg	  }
12727a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
12737a0395d0Smrg	    s//\1/
12747a0395d0Smrg	    q
12757a0395d0Smrg	  }
12767a0395d0Smrg	  /^X\(\/\/\)$/{
12777a0395d0Smrg	    s//\1/
12787a0395d0Smrg	    q
12797a0395d0Smrg	  }
12807a0395d0Smrg	  /^X\(\/\).*/{
12817a0395d0Smrg	    s//\1/
12827a0395d0Smrg	    q
12837a0395d0Smrg	  }
12847a0395d0Smrg	  s/.*/./; q'`
12857a0395d0Smrg  srcdir=$ac_confdir
12867a0395d0Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
12877a0395d0Smrg    srcdir=..
12887a0395d0Smrg  fi
12897a0395d0Smrgelse
12907a0395d0Smrg  ac_srcdir_defaulted=no
12917a0395d0Smrgfi
12927a0395d0Smrgif test ! -r "$srcdir/$ac_unique_file"; then
12937a0395d0Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12942adc0320Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12957a0395d0Smrgfi
12967a0395d0Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
12977a0395d0Smrgac_abs_confdir=`(
12982adc0320Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12997a0395d0Smrg	pwd)`
13007a0395d0Smrg# When building in place, set srcdir=.
13017a0395d0Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
13027a0395d0Smrg  srcdir=.
13037a0395d0Smrgfi
13047a0395d0Smrg# Remove unnecessary trailing slashes from srcdir.
13057a0395d0Smrg# Double slashes in file names in object file debugging info
13067a0395d0Smrg# mess up M-x gdb in Emacs.
13077a0395d0Smrgcase $srcdir in
13087a0395d0Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
13097a0395d0Smrgesac
13107a0395d0Smrgfor ac_var in $ac_precious_vars; do
13117a0395d0Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
13127a0395d0Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
13137a0395d0Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
13147a0395d0Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
13157a0395d0Smrgdone
13167a0395d0Smrg
13177a0395d0Smrg#
13187a0395d0Smrg# Report the --help message.
13197a0395d0Smrg#
13207a0395d0Smrgif test "$ac_init_help" = "long"; then
13217a0395d0Smrg  # Omit some internal or obsolete options to make the list less imposing.
13227a0395d0Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
13237a0395d0Smrg  cat <<_ACEOF
13249a011757Smrg\`configure' configures xauth 1.0.9 to adapt to many kinds of systems.
13257a0395d0Smrg
13267a0395d0SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13277a0395d0Smrg
13287a0395d0SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13297a0395d0SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13307a0395d0Smrg
13317a0395d0SmrgDefaults for the options are specified in brackets.
13327a0395d0Smrg
13337a0395d0SmrgConfiguration:
13347a0395d0Smrg  -h, --help              display this help and exit
13357a0395d0Smrg      --help=short        display options specific to this package
13367a0395d0Smrg      --help=recursive    display the short help of all the included packages
13377a0395d0Smrg  -V, --version           display version information and exit
13382adc0320Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
13397a0395d0Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13407a0395d0Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13417a0395d0Smrg  -n, --no-create         do not create output files
13427a0395d0Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13437a0395d0Smrg
13447a0395d0SmrgInstallation directories:
13457a0395d0Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13467366012aSmrg                          [$ac_default_prefix]
13477a0395d0Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13487366012aSmrg                          [PREFIX]
13497a0395d0Smrg
13507a0395d0SmrgBy default, \`make install' will install all the files in
13517a0395d0Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13527a0395d0Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13537a0395d0Smrgfor instance \`--prefix=\$HOME'.
13547a0395d0Smrg
13557a0395d0SmrgFor better control, use the options below.
13567a0395d0Smrg
13577a0395d0SmrgFine tuning of the installation directories:
13587366012aSmrg  --bindir=DIR            user executables [EPREFIX/bin]
13597366012aSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13607366012aSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13617366012aSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13627366012aSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13637366012aSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13647366012aSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13657366012aSmrg  --includedir=DIR        C header files [PREFIX/include]
13667366012aSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13677366012aSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13687366012aSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13697366012aSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13707366012aSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13717366012aSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13727366012aSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xauth]
13737366012aSmrg  --htmldir=DIR           html documentation [DOCDIR]
13747366012aSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
13757366012aSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13767366012aSmrg  --psdir=DIR             ps documentation [DOCDIR]
13777a0395d0Smrg_ACEOF
13787a0395d0Smrg
13797a0395d0Smrg  cat <<\_ACEOF
13807a0395d0Smrg
13817a0395d0SmrgProgram names:
13827a0395d0Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
13837a0395d0Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
13847a0395d0Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
13857a0395d0Smrg
13867a0395d0SmrgSystem types:
13877a0395d0Smrg  --build=BUILD     configure for building on BUILD [guessed]
13887a0395d0Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
13897a0395d0Smrg_ACEOF
13907a0395d0Smrgfi
13917a0395d0Smrg
13927a0395d0Smrgif test -n "$ac_init_help"; then
13937a0395d0Smrg  case $ac_init_help in
13949a011757Smrg     short | recursive ) echo "Configuration of xauth 1.0.9:";;
13957a0395d0Smrg   esac
13967a0395d0Smrg  cat <<\_ACEOF
13977a0395d0Smrg
13987a0395d0SmrgOptional Features:
13997366012aSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
14007a0395d0Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
14017a0395d0Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14029a011757Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
14039a011757Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
14048abc0ccfSmrg  --enable-maintainer-mode
14058abc0ccfSmrg                          enable make rules and dependencies not useful (and
14068abc0ccfSmrg                          sometimes confusing) to the casual installer
14078abc0ccfSmrg  --enable-dependency-tracking
14088abc0ccfSmrg                          do not reject slow dependency extractors
14098abc0ccfSmrg  --disable-dependency-tracking
14108abc0ccfSmrg                          speeds up one-time build
141196402570Smrg  --disable-selective-werror
141296402570Smrg                          Turn off selective compiler errors. (default:
141396402570Smrg                          enabled)
14147366012aSmrg  --enable-strict-compilation
14157366012aSmrg                          Enable all warnings from compiler and make them
14167366012aSmrg                          errors (default: disabled)
14177a0395d0Smrg  --enable-unix-transport Enable UNIX domain socket transport
14187a0395d0Smrg  --enable-tcp-transport  Enable TCP socket transport
14197366012aSmrg  --enable-ipv6           Enable IPv6 support
14207a0395d0Smrg  --enable-local-transport
14217a0395d0Smrg                          Enable os-specific local transport
14227a0395d0Smrg
14237a0395d0SmrgOptional Packages:
14247a0395d0Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
14257a0395d0Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14267366012aSmrg  --with-lint             Use a lint-style source code checker (default:
14277366012aSmrg                          disabled)
14287a0395d0Smrg
14297a0395d0SmrgSome influential environment variables:
14307a0395d0Smrg  CC          C compiler command
14317a0395d0Smrg  CFLAGS      C compiler flags
14327a0395d0Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14337a0395d0Smrg              nonstandard directory <lib dir>
14347a0395d0Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14352adc0320Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14367a0395d0Smrg              you have headers in a nonstandard directory <include dir>
14377a0395d0Smrg  CPP         C preprocessor
14387a0395d0Smrg  PKG_CONFIG  path to pkg-config utility
14398abc0ccfSmrg  PKG_CONFIG_PATH
14408abc0ccfSmrg              directories to add to pkg-config's search path
14418abc0ccfSmrg  PKG_CONFIG_LIBDIR
14428abc0ccfSmrg              path overriding pkg-config's built-in search path
14437a0395d0Smrg  XAUTH_CFLAGS
14447a0395d0Smrg              C compiler flags for XAUTH, overriding pkg-config
14457a0395d0Smrg  XAUTH_LIBS  linker flags for XAUTH, overriding pkg-config
14462adc0320Smrg  LINT        Path to a lint-style command
14472adc0320Smrg  LINT_FLAGS  Flags for the lint-style command
14487a0395d0Smrg
14497a0395d0SmrgUse these variables to override the choices made by `configure' or to help
14507a0395d0Smrgit to find libraries and programs with nonstandard names/locations.
14517a0395d0Smrg
14527a0395d0SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
14537a0395d0Smrg_ACEOF
14547a0395d0Smrgac_status=$?
14557a0395d0Smrgfi
14567a0395d0Smrg
14577a0395d0Smrgif test "$ac_init_help" = "recursive"; then
14587a0395d0Smrg  # If there are subdirs, report their specific --help.
14597a0395d0Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14607366012aSmrg    test -d "$ac_dir" ||
14617366012aSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14627366012aSmrg      continue
14637a0395d0Smrg    ac_builddir=.
14647a0395d0Smrg
14657a0395d0Smrgcase "$ac_dir" in
14667a0395d0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14677a0395d0Smrg*)
14687366012aSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14697a0395d0Smrg  # A ".." for each directory in $ac_dir_suffix.
14707366012aSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14717a0395d0Smrg  case $ac_top_builddir_sub in
14727a0395d0Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14737a0395d0Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14747a0395d0Smrg  esac ;;
14757a0395d0Smrgesac
14767a0395d0Smrgac_abs_top_builddir=$ac_pwd
14777a0395d0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14787a0395d0Smrg# for backward compatibility:
14797a0395d0Smrgac_top_builddir=$ac_top_build_prefix
14807a0395d0Smrg
14817a0395d0Smrgcase $srcdir in
14827a0395d0Smrg  .)  # We are building in place.
14837a0395d0Smrg    ac_srcdir=.
14847a0395d0Smrg    ac_top_srcdir=$ac_top_builddir_sub
14857a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd ;;
14867a0395d0Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14877a0395d0Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
14887a0395d0Smrg    ac_top_srcdir=$srcdir
14897a0395d0Smrg    ac_abs_top_srcdir=$srcdir ;;
14907a0395d0Smrg  *) # Relative name.
14917a0395d0Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14927a0395d0Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
14937a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14947a0395d0Smrgesac
14957a0395d0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14967a0395d0Smrg
14977a0395d0Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
14987a0395d0Smrg    # Check for guested configure.
14997a0395d0Smrg    if test -f "$ac_srcdir/configure.gnu"; then
15007a0395d0Smrg      echo &&
15017a0395d0Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
15027a0395d0Smrg    elif test -f "$ac_srcdir/configure"; then
15037a0395d0Smrg      echo &&
15047a0395d0Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
15057a0395d0Smrg    else
15067366012aSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15077a0395d0Smrg    fi || ac_status=$?
15087a0395d0Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
15097a0395d0Smrg  done
15107a0395d0Smrgfi
15117a0395d0Smrg
15127a0395d0Smrgtest -n "$ac_init_help" && exit $ac_status
15137a0395d0Smrgif $ac_init_version; then
15147a0395d0Smrg  cat <<\_ACEOF
15159a011757Smrgxauth configure 1.0.9
15168abc0ccfSmrggenerated by GNU Autoconf 2.69
15177a0395d0Smrg
15188abc0ccfSmrgCopyright (C) 2012 Free Software Foundation, Inc.
15197a0395d0SmrgThis configure script is free software; the Free Software Foundation
15207a0395d0Smrggives unlimited permission to copy, distribute and modify it.
15217a0395d0Smrg_ACEOF
15227a0395d0Smrg  exit
15237a0395d0Smrgfi
15247a0395d0Smrg
15252adc0320Smrg## ------------------------ ##
15262adc0320Smrg## Autoconf initialization. ##
15272adc0320Smrg## ------------------------ ##
15287a0395d0Smrg
15292adc0320Smrg# ac_fn_c_try_compile LINENO
15302adc0320Smrg# --------------------------
15312adc0320Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
15322adc0320Smrgac_fn_c_try_compile ()
15337a0395d0Smrg{
15342adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15352adc0320Smrg  rm -f conftest.$ac_objext
15362adc0320Smrg  if { { ac_try="$ac_compile"
15372adc0320Smrgcase "(($ac_try" in
15382adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392adc0320Smrg  *) ac_try_echo=$ac_try;;
15402adc0320Smrgesac
15412adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15422adc0320Smrg$as_echo "$ac_try_echo"; } >&5
15432adc0320Smrg  (eval "$ac_compile") 2>conftest.err
15442adc0320Smrg  ac_status=$?
15452adc0320Smrg  if test -s conftest.err; then
15462adc0320Smrg    grep -v '^ *+' conftest.err >conftest.er1
15472adc0320Smrg    cat conftest.er1 >&5
15482adc0320Smrg    mv -f conftest.er1 conftest.err
15492adc0320Smrg  fi
15502adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15512adc0320Smrg  test $ac_status = 0; } && {
15522adc0320Smrg	 test -z "$ac_c_werror_flag" ||
15532adc0320Smrg	 test ! -s conftest.err
15542adc0320Smrg       } && test -s conftest.$ac_objext; then :
15552adc0320Smrg  ac_retval=0
15562adc0320Smrgelse
15572adc0320Smrg  $as_echo "$as_me: failed program was:" >&5
15582adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5
15597a0395d0Smrg
15602adc0320Smrg	ac_retval=1
15612adc0320Smrgfi
15622adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15632adc0320Smrg  as_fn_set_status $ac_retval
15647a0395d0Smrg
15652adc0320Smrg} # ac_fn_c_try_compile
15662adc0320Smrg
15672adc0320Smrg# ac_fn_c_try_cpp LINENO
15682adc0320Smrg# ----------------------
15692adc0320Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
15702adc0320Smrgac_fn_c_try_cpp ()
15712adc0320Smrg{
15722adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15732adc0320Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
15742adc0320Smrgcase "(($ac_try" in
15752adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762adc0320Smrg  *) ac_try_echo=$ac_try;;
15772adc0320Smrgesac
15782adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15792adc0320Smrg$as_echo "$ac_try_echo"; } >&5
15802adc0320Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
15812adc0320Smrg  ac_status=$?
15822adc0320Smrg  if test -s conftest.err; then
15832adc0320Smrg    grep -v '^ *+' conftest.err >conftest.er1
15842adc0320Smrg    cat conftest.er1 >&5
15852adc0320Smrg    mv -f conftest.er1 conftest.err
15862adc0320Smrg  fi
15872adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15882adc0320Smrg  test $ac_status = 0; } > conftest.i && {
15892adc0320Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15902adc0320Smrg	 test ! -s conftest.err
15912adc0320Smrg       }; then :
15922adc0320Smrg  ac_retval=0
15932adc0320Smrgelse
15942adc0320Smrg  $as_echo "$as_me: failed program was:" >&5
15952adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5
15962adc0320Smrg
15972adc0320Smrg    ac_retval=1
15982adc0320Smrgfi
15992adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16002adc0320Smrg  as_fn_set_status $ac_retval
16012adc0320Smrg
16022adc0320Smrg} # ac_fn_c_try_cpp
16032adc0320Smrg
16049a011757Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
16059a011757Smrg# -------------------------------------------------------
16069a011757Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using
16079a011757Smrg# the include files in INCLUDES and setting the cache variable VAR
16089a011757Smrg# accordingly.
16099a011757Smrgac_fn_c_check_header_mongrel ()
16109a011757Smrg{
16119a011757Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16129a011757Smrg  if eval \${$3+:} false; then :
16139a011757Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16149a011757Smrg$as_echo_n "checking for $2... " >&6; }
16159a011757Smrgif eval \${$3+:} false; then :
16169a011757Smrg  $as_echo_n "(cached) " >&6
16179a011757Smrgfi
16189a011757Smrgeval ac_res=\$$3
16199a011757Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16209a011757Smrg$as_echo "$ac_res" >&6; }
16219a011757Smrgelse
16229a011757Smrg  # Is the header compilable?
16239a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
16249a011757Smrg$as_echo_n "checking $2 usability... " >&6; }
16259a011757Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269a011757Smrg/* end confdefs.h.  */
16279a011757Smrg$4
16289a011757Smrg#include <$2>
16299a011757Smrg_ACEOF
16309a011757Smrgif ac_fn_c_try_compile "$LINENO"; then :
16319a011757Smrg  ac_header_compiler=yes
16329a011757Smrgelse
16339a011757Smrg  ac_header_compiler=no
16349a011757Smrgfi
16359a011757Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
16379a011757Smrg$as_echo "$ac_header_compiler" >&6; }
16389a011757Smrg
16399a011757Smrg# Is the header present?
16409a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
16419a011757Smrg$as_echo_n "checking $2 presence... " >&6; }
16429a011757Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439a011757Smrg/* end confdefs.h.  */
16449a011757Smrg#include <$2>
16459a011757Smrg_ACEOF
16469a011757Smrgif ac_fn_c_try_cpp "$LINENO"; then :
16479a011757Smrg  ac_header_preproc=yes
16489a011757Smrgelse
16499a011757Smrg  ac_header_preproc=no
16509a011757Smrgfi
16519a011757Smrgrm -f conftest.err conftest.i conftest.$ac_ext
16529a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
16539a011757Smrg$as_echo "$ac_header_preproc" >&6; }
16549a011757Smrg
16559a011757Smrg# So?  What about this header?
16569a011757Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
16579a011757Smrg  yes:no: )
16589a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
16599a011757Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
16609a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
16619a011757Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
16629a011757Smrg    ;;
16639a011757Smrg  no:yes:* )
16649a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
16659a011757Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
16669a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
16679a011757Smrg$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
16689a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
16699a011757Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
16709a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
16719a011757Smrg$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
16729a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
16739a011757Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
16749a011757Smrg( $as_echo "## ---------------------------------------------------------------------- ##
16759a011757Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
16769a011757Smrg## ---------------------------------------------------------------------- ##"
16779a011757Smrg     ) | sed "s/^/$as_me: WARNING:     /" >&2
16789a011757Smrg    ;;
16799a011757Smrgesac
16809a011757Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16819a011757Smrg$as_echo_n "checking for $2... " >&6; }
16829a011757Smrgif eval \${$3+:} false; then :
16839a011757Smrg  $as_echo_n "(cached) " >&6
16849a011757Smrgelse
16859a011757Smrg  eval "$3=\$ac_header_compiler"
16869a011757Smrgfi
16879a011757Smrgeval ac_res=\$$3
16889a011757Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16899a011757Smrg$as_echo "$ac_res" >&6; }
16909a011757Smrgfi
16919a011757Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16929a011757Smrg
16939a011757Smrg} # ac_fn_c_check_header_mongrel
16949a011757Smrg
16952adc0320Smrg# ac_fn_c_try_run LINENO
16962adc0320Smrg# ----------------------
16972adc0320Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
16982adc0320Smrg# that executables *can* be run.
16992adc0320Smrgac_fn_c_try_run ()
17002adc0320Smrg{
17012adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17022adc0320Smrg  if { { ac_try="$ac_link"
17032adc0320Smrgcase "(($ac_try" in
17042adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052adc0320Smrg  *) ac_try_echo=$ac_try;;
17062adc0320Smrgesac
17072adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17082adc0320Smrg$as_echo "$ac_try_echo"; } >&5
17092adc0320Smrg  (eval "$ac_link") 2>&5
17102adc0320Smrg  ac_status=$?
17112adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17122adc0320Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
17132adc0320Smrg  { { case "(($ac_try" in
17142adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152adc0320Smrg  *) ac_try_echo=$ac_try;;
17162adc0320Smrgesac
17172adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17182adc0320Smrg$as_echo "$ac_try_echo"; } >&5
17192adc0320Smrg  (eval "$ac_try") 2>&5
17202adc0320Smrg  ac_status=$?
17212adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17222adc0320Smrg  test $ac_status = 0; }; }; then :
17232adc0320Smrg  ac_retval=0
17242adc0320Smrgelse
17252adc0320Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
17262adc0320Smrg       $as_echo "$as_me: failed program was:" >&5
17272adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5
17282adc0320Smrg
17292adc0320Smrg       ac_retval=$ac_status
17302adc0320Smrgfi
17312adc0320Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17322adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17332adc0320Smrg  as_fn_set_status $ac_retval
17342adc0320Smrg
17352adc0320Smrg} # ac_fn_c_try_run
17362adc0320Smrg
17372adc0320Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
17382adc0320Smrg# -------------------------------------------------------
17392adc0320Smrg# Tests whether HEADER exists and can be compiled using the include files in
17402adc0320Smrg# INCLUDES, setting the cache variable VAR accordingly.
17412adc0320Smrgac_fn_c_check_header_compile ()
17422adc0320Smrg{
17432adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17442adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17452adc0320Smrg$as_echo_n "checking for $2... " >&6; }
17462adc0320Smrgif eval \${$3+:} false; then :
17472adc0320Smrg  $as_echo_n "(cached) " >&6
17482adc0320Smrgelse
17492adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17502adc0320Smrg/* end confdefs.h.  */
17512adc0320Smrg$4
17522adc0320Smrg#include <$2>
17532adc0320Smrg_ACEOF
17542adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
17552adc0320Smrg  eval "$3=yes"
17562adc0320Smrgelse
17572adc0320Smrg  eval "$3=no"
17582adc0320Smrgfi
17592adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17602adc0320Smrgfi
17612adc0320Smrgeval ac_res=\$$3
17622adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17632adc0320Smrg$as_echo "$ac_res" >&6; }
17642adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17652adc0320Smrg
17662adc0320Smrg} # ac_fn_c_check_header_compile
17672adc0320Smrg
17689a011757Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
17699a011757Smrg# ---------------------------------------------
17709a011757Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
17719a011757Smrg# accordingly.
17729a011757Smrgac_fn_c_check_decl ()
17739a011757Smrg{
17749a011757Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17759a011757Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
17769a011757Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
17779a011757Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
17789a011757Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
17799a011757Smrgif eval \${$3+:} false; then :
17809a011757Smrg  $as_echo_n "(cached) " >&6
17819a011757Smrgelse
17829a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839a011757Smrg/* end confdefs.h.  */
17849a011757Smrg$4
17859a011757Smrgint
17869a011757Smrgmain ()
17879a011757Smrg{
17889a011757Smrg#ifndef $as_decl_name
17899a011757Smrg#ifdef __cplusplus
17909a011757Smrg  (void) $as_decl_use;
17919a011757Smrg#else
17929a011757Smrg  (void) $as_decl_name;
17939a011757Smrg#endif
17949a011757Smrg#endif
17959a011757Smrg
17969a011757Smrg  ;
17979a011757Smrg  return 0;
17989a011757Smrg}
17999a011757Smrg_ACEOF
18009a011757Smrgif ac_fn_c_try_compile "$LINENO"; then :
18019a011757Smrg  eval "$3=yes"
18029a011757Smrgelse
18039a011757Smrg  eval "$3=no"
18049a011757Smrgfi
18059a011757Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18069a011757Smrgfi
18079a011757Smrgeval ac_res=\$$3
18089a011757Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18099a011757Smrg$as_echo "$ac_res" >&6; }
18109a011757Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18119a011757Smrg
18129a011757Smrg} # ac_fn_c_check_decl
18139a011757Smrg
181496402570Smrg# ac_fn_c_try_link LINENO
181596402570Smrg# -----------------------
181696402570Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
181796402570Smrgac_fn_c_try_link ()
181896402570Smrg{
181996402570Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
182096402570Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
182196402570Smrg  if { { ac_try="$ac_link"
182296402570Smrgcase "(($ac_try" in
182396402570Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
182496402570Smrg  *) ac_try_echo=$ac_try;;
182596402570Smrgesac
182696402570Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
182796402570Smrg$as_echo "$ac_try_echo"; } >&5
182896402570Smrg  (eval "$ac_link") 2>conftest.err
182996402570Smrg  ac_status=$?
183096402570Smrg  if test -s conftest.err; then
183196402570Smrg    grep -v '^ *+' conftest.err >conftest.er1
183296402570Smrg    cat conftest.er1 >&5
183396402570Smrg    mv -f conftest.er1 conftest.err
183496402570Smrg  fi
183596402570Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
183696402570Smrg  test $ac_status = 0; } && {
183796402570Smrg	 test -z "$ac_c_werror_flag" ||
183896402570Smrg	 test ! -s conftest.err
183996402570Smrg       } && test -s conftest$ac_exeext && {
184096402570Smrg	 test "$cross_compiling" = yes ||
18418abc0ccfSmrg	 test -x conftest$ac_exeext
184296402570Smrg       }; then :
184396402570Smrg  ac_retval=0
184496402570Smrgelse
184596402570Smrg  $as_echo "$as_me: failed program was:" >&5
184696402570Smrgsed 's/^/| /' conftest.$ac_ext >&5
184796402570Smrg
184896402570Smrg	ac_retval=1
184996402570Smrgfi
185096402570Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
185196402570Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
185296402570Smrg  # interfere with the next link command; also delete a directory that is
185396402570Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
185496402570Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
185596402570Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
185696402570Smrg  as_fn_set_status $ac_retval
185796402570Smrg
185896402570Smrg} # ac_fn_c_try_link
185996402570Smrg
18609a011757Smrg# ac_fn_c_check_func LINENO FUNC VAR
18619a011757Smrg# ----------------------------------
18629a011757Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
18639a011757Smrgac_fn_c_check_func ()
18642adc0320Smrg{
18652adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18662adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18672adc0320Smrg$as_echo_n "checking for $2... " >&6; }
18682adc0320Smrgif eval \${$3+:} false; then :
18692adc0320Smrg  $as_echo_n "(cached) " >&6
18702adc0320Smrgelse
18719a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18722adc0320Smrg/* end confdefs.h.  */
18739a011757Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
18749a011757Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18759a011757Smrg#define $2 innocuous_$2
18762adc0320Smrg
18779a011757Smrg/* System header to define __stub macros and hopefully few prototypes,
18789a011757Smrg    which can conflict with char $2 (); below.
18799a011757Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18809a011757Smrg    <limits.h> exists even on freestanding compilers.  */
18812adc0320Smrg
18822adc0320Smrg#ifdef __STDC__
18832adc0320Smrg# include <limits.h>
18842adc0320Smrg#else
18852adc0320Smrg# include <assert.h>
18862adc0320Smrg#endif
18872adc0320Smrg
18882adc0320Smrg#undef $2
18892adc0320Smrg
18902adc0320Smrg/* Override any GCC internal prototype to avoid an error.
18912adc0320Smrg   Use char because int might match the return type of a GCC
18922adc0320Smrg   builtin and then its argument prototype would still apply.  */
18932adc0320Smrg#ifdef __cplusplus
18942adc0320Smrgextern "C"
18952adc0320Smrg#endif
18962adc0320Smrgchar $2 ();
18972adc0320Smrg/* The GNU C library defines this for functions which it implements
18982adc0320Smrg    to always fail with ENOSYS.  Some functions are actually named
18992adc0320Smrg    something starting with __ and the normal name is an alias.  */
19002adc0320Smrg#if defined __stub_$2 || defined __stub___$2
19012adc0320Smrgchoke me
19022adc0320Smrg#endif
19032adc0320Smrg
19042adc0320Smrgint
19052adc0320Smrgmain ()
19062adc0320Smrg{
19072adc0320Smrgreturn $2 ();
19082adc0320Smrg  ;
19092adc0320Smrg  return 0;
19102adc0320Smrg}
19112adc0320Smrg_ACEOF
19122adc0320Smrgif ac_fn_c_try_link "$LINENO"; then :
19132adc0320Smrg  eval "$3=yes"
19142adc0320Smrgelse
19152adc0320Smrg  eval "$3=no"
19162adc0320Smrgfi
19172adc0320Smrgrm -f core conftest.err conftest.$ac_objext \
19182adc0320Smrg    conftest$ac_exeext conftest.$ac_ext
19192adc0320Smrgfi
19202adc0320Smrgeval ac_res=\$$3
19212adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19222adc0320Smrg$as_echo "$ac_res" >&6; }
19232adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19242adc0320Smrg
19252adc0320Smrg} # ac_fn_c_check_func
19262adc0320Smrg
19272adc0320Smrg# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
19282adc0320Smrg# ----------------------------------------------------
19292adc0320Smrg# Tries to find if the field MEMBER exists in type AGGR, after including
19302adc0320Smrg# INCLUDES, setting cache variable VAR accordingly.
19312adc0320Smrgac_fn_c_check_member ()
19322adc0320Smrg{
19332adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19342adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
19352adc0320Smrg$as_echo_n "checking for $2.$3... " >&6; }
19362adc0320Smrgif eval \${$4+:} false; then :
19372adc0320Smrg  $as_echo_n "(cached) " >&6
19382adc0320Smrgelse
19392adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402adc0320Smrg/* end confdefs.h.  */
19412adc0320Smrg$5
19422adc0320Smrgint
19432adc0320Smrgmain ()
19442adc0320Smrg{
19452adc0320Smrgstatic $2 ac_aggr;
19462adc0320Smrgif (ac_aggr.$3)
19472adc0320Smrgreturn 0;
19482adc0320Smrg  ;
19492adc0320Smrg  return 0;
19502adc0320Smrg}
19512adc0320Smrg_ACEOF
19522adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
19532adc0320Smrg  eval "$4=yes"
19542adc0320Smrgelse
19552adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19562adc0320Smrg/* end confdefs.h.  */
19572adc0320Smrg$5
19582adc0320Smrgint
19592adc0320Smrgmain ()
19602adc0320Smrg{
19612adc0320Smrgstatic $2 ac_aggr;
19622adc0320Smrgif (sizeof ac_aggr.$3)
19632adc0320Smrgreturn 0;
19642adc0320Smrg  ;
19652adc0320Smrg  return 0;
19662adc0320Smrg}
19672adc0320Smrg_ACEOF
19682adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
19692adc0320Smrg  eval "$4=yes"
19702adc0320Smrgelse
19712adc0320Smrg  eval "$4=no"
19722adc0320Smrgfi
19732adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19742adc0320Smrgfi
19752adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19762adc0320Smrgfi
19772adc0320Smrgeval ac_res=\$$4
19782adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19792adc0320Smrg$as_echo "$ac_res" >&6; }
19802adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19812adc0320Smrg
19822adc0320Smrg} # ac_fn_c_check_member
19832adc0320Smrg
19842adc0320Smrg# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
19852adc0320Smrg# -------------------------------------------
19862adc0320Smrg# Tests whether TYPE exists after having included INCLUDES, setting cache
19872adc0320Smrg# variable VAR accordingly.
19882adc0320Smrgac_fn_c_check_type ()
19892adc0320Smrg{
19902adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19912adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
19922adc0320Smrg$as_echo_n "checking for $2... " >&6; }
19932adc0320Smrgif eval \${$3+:} false; then :
19942adc0320Smrg  $as_echo_n "(cached) " >&6
19952adc0320Smrgelse
19962adc0320Smrg  eval "$3=no"
19972adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19982adc0320Smrg/* end confdefs.h.  */
19992adc0320Smrg$4
20002adc0320Smrgint
20012adc0320Smrgmain ()
20022adc0320Smrg{
20032adc0320Smrgif (sizeof ($2))
20042adc0320Smrg	 return 0;
20052adc0320Smrg  ;
20062adc0320Smrg  return 0;
20072adc0320Smrg}
20082adc0320Smrg_ACEOF
20092adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
20102adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20112adc0320Smrg/* end confdefs.h.  */
20122adc0320Smrg$4
20132adc0320Smrgint
20142adc0320Smrgmain ()
20152adc0320Smrg{
20162adc0320Smrgif (sizeof (($2)))
20172adc0320Smrg	    return 0;
20182adc0320Smrg  ;
20192adc0320Smrg  return 0;
20202adc0320Smrg}
20212adc0320Smrg_ACEOF
20222adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
20232adc0320Smrg
20242adc0320Smrgelse
20252adc0320Smrg  eval "$3=yes"
20262adc0320Smrgfi
20272adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20282adc0320Smrgfi
20292adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302adc0320Smrgfi
20312adc0320Smrgeval ac_res=\$$3
20322adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20332adc0320Smrg$as_echo "$ac_res" >&6; }
20342adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
20352adc0320Smrg
20362adc0320Smrg} # ac_fn_c_check_type
20372adc0320Smrgcat >config.log <<_ACEOF
20382adc0320SmrgThis file contains any messages produced by compilers while
20392adc0320Smrgrunning configure, to aid debugging if configure makes a mistake.
20402adc0320Smrg
20419a011757SmrgIt was created by xauth $as_me 1.0.9, which was
20428abc0ccfSmrggenerated by GNU Autoconf 2.69.  Invocation command line was
20432adc0320Smrg
20442adc0320Smrg  $ $0 $@
20452adc0320Smrg
20462adc0320Smrg_ACEOF
20472adc0320Smrgexec 5>>config.log
20482adc0320Smrg{
20492adc0320Smrgcat <<_ASUNAME
20502adc0320Smrg## --------- ##
20512adc0320Smrg## Platform. ##
20522adc0320Smrg## --------- ##
20532adc0320Smrg
20542adc0320Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
20552adc0320Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
20562adc0320Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
20572adc0320Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
20582adc0320Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
20592adc0320Smrg
20602adc0320Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
20612adc0320Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
20622adc0320Smrg
20632adc0320Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
20642adc0320Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
20652adc0320Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
20662adc0320Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
20672adc0320Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
20682adc0320Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
20692adc0320Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
20702adc0320Smrg
20712adc0320Smrg_ASUNAME
20727a0395d0Smrg
20737a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20747a0395d0Smrgfor as_dir in $PATH
20757a0395d0Smrgdo
20767a0395d0Smrg  IFS=$as_save_IFS
20777a0395d0Smrg  test -z "$as_dir" && as_dir=.
20782adc0320Smrg    $as_echo "PATH: $as_dir"
20792adc0320Smrg  done
20807a0395d0SmrgIFS=$as_save_IFS
20817a0395d0Smrg
20827a0395d0Smrg} >&5
20837a0395d0Smrg
20847a0395d0Smrgcat >&5 <<_ACEOF
20857a0395d0Smrg
20867a0395d0Smrg
20877a0395d0Smrg## ----------- ##
20887a0395d0Smrg## Core tests. ##
20897a0395d0Smrg## ----------- ##
20907a0395d0Smrg
20917a0395d0Smrg_ACEOF
20927a0395d0Smrg
20937a0395d0Smrg
20947a0395d0Smrg# Keep a trace of the command line.
20957a0395d0Smrg# Strip out --no-create and --no-recursion so they do not pile up.
20967a0395d0Smrg# Strip out --silent because we don't want to record it for future runs.
20977a0395d0Smrg# Also quote any args containing shell meta-characters.
20987a0395d0Smrg# Make two passes to allow for proper duplicate-argument suppression.
20997a0395d0Smrgac_configure_args=
21007a0395d0Smrgac_configure_args0=
21017a0395d0Smrgac_configure_args1=
21027a0395d0Smrgac_must_keep_next=false
21037a0395d0Smrgfor ac_pass in 1 2
21047a0395d0Smrgdo
21057a0395d0Smrg  for ac_arg
21067a0395d0Smrg  do
21077a0395d0Smrg    case $ac_arg in
21087a0395d0Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
21097a0395d0Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21107a0395d0Smrg    | -silent | --silent | --silen | --sile | --sil)
21117a0395d0Smrg      continue ;;
21127a0395d0Smrg    *\'*)
21137366012aSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21147a0395d0Smrg    esac
21157a0395d0Smrg    case $ac_pass in
21162adc0320Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
21177a0395d0Smrg    2)
21182adc0320Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
21197a0395d0Smrg      if test $ac_must_keep_next = true; then
21207a0395d0Smrg	ac_must_keep_next=false # Got value, back to normal.
21217a0395d0Smrg      else
21227a0395d0Smrg	case $ac_arg in
21237a0395d0Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
21247a0395d0Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
21257a0395d0Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
21267a0395d0Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
21277a0395d0Smrg	    case "$ac_configure_args0 " in
21287a0395d0Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
21297a0395d0Smrg	    esac
21307a0395d0Smrg	    ;;
21317a0395d0Smrg	  -* ) ac_must_keep_next=true ;;
21327a0395d0Smrg	esac
21337a0395d0Smrg      fi
21342adc0320Smrg      as_fn_append ac_configure_args " '$ac_arg'"
21357a0395d0Smrg      ;;
21367a0395d0Smrg    esac
21377a0395d0Smrg  done
21387a0395d0Smrgdone
21392adc0320Smrg{ ac_configure_args0=; unset ac_configure_args0;}
21402adc0320Smrg{ ac_configure_args1=; unset ac_configure_args1;}
21417a0395d0Smrg
21427a0395d0Smrg# When interrupted or exit'd, cleanup temporary files, and complete
21437a0395d0Smrg# config.log.  We remove comments because anyway the quotes in there
21447a0395d0Smrg# would cause problems or look ugly.
21457a0395d0Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
21467a0395d0Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
21477a0395d0Smrgtrap 'exit_status=$?
21487a0395d0Smrg  # Save into config.log some information that might help in debugging.
21497a0395d0Smrg  {
21507a0395d0Smrg    echo
21517a0395d0Smrg
21522adc0320Smrg    $as_echo "## ---------------- ##
21537a0395d0Smrg## Cache variables. ##
21542adc0320Smrg## ---------------- ##"
21557a0395d0Smrg    echo
21567a0395d0Smrg    # The following way of writing the cache mishandles newlines in values,
21577a0395d0Smrg(
21587a0395d0Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
21597a0395d0Smrg    eval ac_val=\$$ac_var
21607a0395d0Smrg    case $ac_val in #(
21617a0395d0Smrg    *${as_nl}*)
21627a0395d0Smrg      case $ac_var in #(
21632adc0320Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21647366012aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21657a0395d0Smrg      esac
21667a0395d0Smrg      case $ac_var in #(
21677a0395d0Smrg      _ | IFS | as_nl) ;; #(
21687366012aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21692adc0320Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
21707a0395d0Smrg      esac ;;
21717a0395d0Smrg    esac
21727a0395d0Smrg  done
21737a0395d0Smrg  (set) 2>&1 |
21747a0395d0Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
21757a0395d0Smrg    *${as_nl}ac_space=\ *)
21767a0395d0Smrg      sed -n \
21777a0395d0Smrg	"s/'\''/'\''\\\\'\'''\''/g;
21787a0395d0Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
21797a0395d0Smrg      ;; #(
21807a0395d0Smrg    *)
21817a0395d0Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21827a0395d0Smrg      ;;
21837a0395d0Smrg    esac |
21847a0395d0Smrg    sort
21857a0395d0Smrg)
21867a0395d0Smrg    echo
21877a0395d0Smrg
21882adc0320Smrg    $as_echo "## ----------------- ##
21897a0395d0Smrg## Output variables. ##
21902adc0320Smrg## ----------------- ##"
21917a0395d0Smrg    echo
21927a0395d0Smrg    for ac_var in $ac_subst_vars
21937a0395d0Smrg    do
21947a0395d0Smrg      eval ac_val=\$$ac_var
21957a0395d0Smrg      case $ac_val in
21967366012aSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
21977a0395d0Smrg      esac
21987366012aSmrg      $as_echo "$ac_var='\''$ac_val'\''"
21997a0395d0Smrg    done | sort
22007a0395d0Smrg    echo
22017a0395d0Smrg
22027a0395d0Smrg    if test -n "$ac_subst_files"; then
22032adc0320Smrg      $as_echo "## ------------------- ##
22047a0395d0Smrg## File substitutions. ##
22052adc0320Smrg## ------------------- ##"
22067a0395d0Smrg      echo
22077a0395d0Smrg      for ac_var in $ac_subst_files
22087a0395d0Smrg      do
22097a0395d0Smrg	eval ac_val=\$$ac_var
22107a0395d0Smrg	case $ac_val in
22117366012aSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
22127a0395d0Smrg	esac
22137366012aSmrg	$as_echo "$ac_var='\''$ac_val'\''"
22147a0395d0Smrg      done | sort
22157a0395d0Smrg      echo
22167a0395d0Smrg    fi
22177a0395d0Smrg
22187a0395d0Smrg    if test -s confdefs.h; then
22192adc0320Smrg      $as_echo "## ----------- ##
22207a0395d0Smrg## confdefs.h. ##
22212adc0320Smrg## ----------- ##"
22227a0395d0Smrg      echo
22237a0395d0Smrg      cat confdefs.h
22247a0395d0Smrg      echo
22257a0395d0Smrg    fi
22267a0395d0Smrg    test "$ac_signal" != 0 &&
22277366012aSmrg      $as_echo "$as_me: caught signal $ac_signal"
22287366012aSmrg    $as_echo "$as_me: exit $exit_status"
22297a0395d0Smrg  } >&5
22307a0395d0Smrg  rm -f core *.core core.conftest.* &&
22317a0395d0Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
22327a0395d0Smrg    exit $exit_status
22337a0395d0Smrg' 0
22347a0395d0Smrgfor ac_signal in 1 2 13 15; do
22352adc0320Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
22367a0395d0Smrgdone
22377a0395d0Smrgac_signal=0
22387a0395d0Smrg
22397a0395d0Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
22407a0395d0Smrgrm -f -r conftest* confdefs.h
22417a0395d0Smrg
22422adc0320Smrg$as_echo "/* confdefs.h */" > confdefs.h
22432adc0320Smrg
22447a0395d0Smrg# Predefined preprocessor variables.
22457a0395d0Smrg
22467a0395d0Smrgcat >>confdefs.h <<_ACEOF
22477a0395d0Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
22487a0395d0Smrg_ACEOF
22497a0395d0Smrg
22507a0395d0Smrgcat >>confdefs.h <<_ACEOF
22517a0395d0Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
22527a0395d0Smrg_ACEOF
22537a0395d0Smrg
22547a0395d0Smrgcat >>confdefs.h <<_ACEOF
22557a0395d0Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
22567a0395d0Smrg_ACEOF
22577a0395d0Smrg
22587a0395d0Smrgcat >>confdefs.h <<_ACEOF
22597a0395d0Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
22607a0395d0Smrg_ACEOF
22617a0395d0Smrg
22627a0395d0Smrgcat >>confdefs.h <<_ACEOF
22637a0395d0Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
22647a0395d0Smrg_ACEOF
22657a0395d0Smrg
22662adc0320Smrgcat >>confdefs.h <<_ACEOF
22672adc0320Smrg#define PACKAGE_URL "$PACKAGE_URL"
22682adc0320Smrg_ACEOF
22692adc0320Smrg
22707a0395d0Smrg
22717a0395d0Smrg# Let the site file select an alternate cache file if it wants to.
22727366012aSmrg# Prefer an explicitly selected file to automatically selected ones.
22737366012aSmrgac_site_file1=NONE
22747366012aSmrgac_site_file2=NONE
22757a0395d0Smrgif test -n "$CONFIG_SITE"; then
22762adc0320Smrg  # We do not want a PATH search for config.site.
22772adc0320Smrg  case $CONFIG_SITE in #((
22782adc0320Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
22792adc0320Smrg    */*) ac_site_file1=$CONFIG_SITE;;
22802adc0320Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
22812adc0320Smrg  esac
22827a0395d0Smrgelif test "x$prefix" != xNONE; then
22837366012aSmrg  ac_site_file1=$prefix/share/config.site
22847366012aSmrg  ac_site_file2=$prefix/etc/config.site
22857a0395d0Smrgelse
22867366012aSmrg  ac_site_file1=$ac_default_prefix/share/config.site
22877366012aSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
22887a0395d0Smrgfi
22897366012aSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
22907a0395d0Smrgdo
22917366012aSmrg  test "x$ac_site_file" = xNONE && continue
22922adc0320Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
22932adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
22947366012aSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
22957a0395d0Smrg    sed 's/^/| /' "$ac_site_file" >&5
22962adc0320Smrg    . "$ac_site_file" \
22972adc0320Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22982adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22992adc0320Smrgas_fn_error $? "failed to load site script $ac_site_file
23002adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
23017a0395d0Smrg  fi
23027a0395d0Smrgdone
23037a0395d0Smrg
23047a0395d0Smrgif test -r "$cache_file"; then
23052adc0320Smrg  # Some versions of bash will fail to source /dev/null (special files
23062adc0320Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
23072adc0320Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
23082adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
23097366012aSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
23107a0395d0Smrg    case $cache_file in
23117a0395d0Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
23127a0395d0Smrg      *)                      . "./$cache_file";;
23137a0395d0Smrg    esac
23147a0395d0Smrg  fi
23157a0395d0Smrgelse
23162adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
23177366012aSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
23187a0395d0Smrg  >$cache_file
23197a0395d0Smrgfi
23207a0395d0Smrg
23217a0395d0Smrg# Check that the precious variables saved in the cache have kept the same
23227a0395d0Smrg# value.
23237a0395d0Smrgac_cache_corrupted=false
23247a0395d0Smrgfor ac_var in $ac_precious_vars; do
23257a0395d0Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
23267a0395d0Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
23277a0395d0Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
23287a0395d0Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
23297a0395d0Smrg  case $ac_old_set,$ac_new_set in
23307a0395d0Smrg    set,)
23312adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
23327366012aSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
23337a0395d0Smrg      ac_cache_corrupted=: ;;
23347a0395d0Smrg    ,set)
23352adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
23367366012aSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
23377a0395d0Smrg      ac_cache_corrupted=: ;;
23387a0395d0Smrg    ,);;
23397a0395d0Smrg    *)
23407a0395d0Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
23417366012aSmrg	# differences in whitespace do not lead to failure.
23427366012aSmrg	ac_old_val_w=`echo x $ac_old_val`
23437366012aSmrg	ac_new_val_w=`echo x $ac_new_val`
23447366012aSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
23452adc0320Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
23467366012aSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
23477366012aSmrg	  ac_cache_corrupted=:
23487366012aSmrg	else
23492adc0320Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
23507366012aSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
23517366012aSmrg	  eval $ac_var=\$ac_old_val
23527366012aSmrg	fi
23532adc0320Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
23547366012aSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
23552adc0320Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
23567366012aSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
23577a0395d0Smrg      fi;;
23582adc0320Smrg  esac
23592adc0320Smrg  # Pass precious variables to config.status.
23602adc0320Smrg  if test "$ac_new_set" = set; then
23612adc0320Smrg    case $ac_new_val in
23622adc0320Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
23632adc0320Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
23642adc0320Smrg    esac
23652adc0320Smrg    case " $ac_configure_args " in
23662adc0320Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
23672adc0320Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
23682adc0320Smrg    esac
23692adc0320Smrg  fi
23702adc0320Smrgdone
23712adc0320Smrgif $ac_cache_corrupted; then
23722adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23732adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23742adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
23752adc0320Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
23762adc0320Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
23772adc0320Smrgfi
23782adc0320Smrg## -------------------- ##
23792adc0320Smrg## Main body of script. ##
23802adc0320Smrg## -------------------- ##
23817a0395d0Smrg
23827a0395d0Smrgac_ext=c
23837a0395d0Smrgac_cpp='$CPP $CPPFLAGS'
23847a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23857a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23867a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
23877a0395d0Smrg
23887a0395d0Smrg
23899a011757Smrgam__api_version='1.13'
23907a0395d0Smrg
23917a0395d0Smrgac_aux_dir=
23927a0395d0Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
23937a0395d0Smrg  if test -f "$ac_dir/install-sh"; then
23947a0395d0Smrg    ac_aux_dir=$ac_dir
23957a0395d0Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
23967a0395d0Smrg    break
23977a0395d0Smrg  elif test -f "$ac_dir/install.sh"; then
23987a0395d0Smrg    ac_aux_dir=$ac_dir
23997a0395d0Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
24007a0395d0Smrg    break
24017a0395d0Smrg  elif test -f "$ac_dir/shtool"; then
24027a0395d0Smrg    ac_aux_dir=$ac_dir
24037a0395d0Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
24047a0395d0Smrg    break
24057a0395d0Smrg  fi
24067a0395d0Smrgdone
24077a0395d0Smrgif test -z "$ac_aux_dir"; then
24082adc0320Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
24097a0395d0Smrgfi
24107a0395d0Smrg
24117a0395d0Smrg# These three variables are undocumented and unsupported,
24127a0395d0Smrg# and are intended to be withdrawn in a future Autoconf release.
24137a0395d0Smrg# They can cause serious problems if a builder's source tree is in a directory
24147a0395d0Smrg# whose full name contains unusual characters.
24157a0395d0Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
24167a0395d0Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
24177a0395d0Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
24187a0395d0Smrg
24197a0395d0Smrg
24207a0395d0Smrg# Find a good install program.  We prefer a C program (faster),
24217a0395d0Smrg# so one script is as good as another.  But avoid the broken or
24227a0395d0Smrg# incompatible versions:
24237a0395d0Smrg# SysV /etc/install, /usr/sbin/install
24247a0395d0Smrg# SunOS /usr/etc/install
24257a0395d0Smrg# IRIX /sbin/install
24267a0395d0Smrg# AIX /bin/install
24277a0395d0Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
24287a0395d0Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
24297a0395d0Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
24307a0395d0Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
24317a0395d0Smrg# OS/2's system install, which has a completely different semantic
24327a0395d0Smrg# ./install, which can be erroneously created by make from ./install.sh.
24337366012aSmrg# Reject install programs that cannot install multiple files.
24342adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
24357366012aSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
24367a0395d0Smrgif test -z "$INSTALL"; then
24372adc0320Smrgif ${ac_cv_path_install+:} false; then :
24387366012aSmrg  $as_echo_n "(cached) " >&6
24397a0395d0Smrgelse
24407a0395d0Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24417a0395d0Smrgfor as_dir in $PATH
24427a0395d0Smrgdo
24437a0395d0Smrg  IFS=$as_save_IFS
24447a0395d0Smrg  test -z "$as_dir" && as_dir=.
24452adc0320Smrg    # Account for people who put trailing slashes in PATH elements.
24462adc0320Smrgcase $as_dir/ in #((
24472adc0320Smrg  ./ | .// | /[cC]/* | \
24487a0395d0Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
24492adc0320Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
24507a0395d0Smrg  /usr/ucb/* ) ;;
24517a0395d0Smrg  *)
24527a0395d0Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
24537a0395d0Smrg    # Don't use installbsd from OSF since it installs stuff as root
24547a0395d0Smrg    # by default.
24557a0395d0Smrg    for ac_prog in ginstall scoinst install; do
24567a0395d0Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
24578abc0ccfSmrg	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
24587a0395d0Smrg	  if test $ac_prog = install &&
24597a0395d0Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
24607a0395d0Smrg	    # AIX install.  It has an incompatible calling convention.
24617a0395d0Smrg	    :
24627a0395d0Smrg	  elif test $ac_prog = install &&
24637a0395d0Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
24647a0395d0Smrg	    # program-specific install script used by HP pwplus--don't use.
24657a0395d0Smrg	    :
24667a0395d0Smrg	  else
24677366012aSmrg	    rm -rf conftest.one conftest.two conftest.dir
24687366012aSmrg	    echo one > conftest.one
24697366012aSmrg	    echo two > conftest.two
24707366012aSmrg	    mkdir conftest.dir
24717366012aSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
24727366012aSmrg	      test -s conftest.one && test -s conftest.two &&
24737366012aSmrg	      test -s conftest.dir/conftest.one &&
24747366012aSmrg	      test -s conftest.dir/conftest.two
24757366012aSmrg	    then
24767366012aSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
24777366012aSmrg	      break 3
24787366012aSmrg	    fi
24797a0395d0Smrg	  fi
24807a0395d0Smrg	fi
24817a0395d0Smrg      done
24827a0395d0Smrg    done
24837a0395d0Smrg    ;;
24847a0395d0Smrgesac
24857366012aSmrg
24862adc0320Smrg  done
24877a0395d0SmrgIFS=$as_save_IFS
24887a0395d0Smrg
24897366012aSmrgrm -rf conftest.one conftest.two conftest.dir
24907a0395d0Smrg
24917a0395d0Smrgfi
24927a0395d0Smrg  if test "${ac_cv_path_install+set}" = set; then
24937a0395d0Smrg    INSTALL=$ac_cv_path_install
24947a0395d0Smrg  else
24957a0395d0Smrg    # As a last resort, use the slow shell script.  Don't cache a
24967a0395d0Smrg    # value for INSTALL within a source directory, because that will
24977a0395d0Smrg    # break other packages using the cache if that directory is
24987a0395d0Smrg    # removed, or if the value is a relative name.
24997a0395d0Smrg    INSTALL=$ac_install_sh
25007a0395d0Smrg  fi
25017a0395d0Smrgfi
25022adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
25037366012aSmrg$as_echo "$INSTALL" >&6; }
25047a0395d0Smrg
25057a0395d0Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
25067a0395d0Smrg# It thinks the first close brace ends the variable substitution.
25077a0395d0Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
25087a0395d0Smrg
25097a0395d0Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
25107a0395d0Smrg
25117a0395d0Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
25127a0395d0Smrg
25132adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
25147366012aSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
25157366012aSmrg# Reject unsafe characters in $srcdir or the absolute working directory
25167366012aSmrg# name.  Accept space and tab only in the latter.
25177366012aSmrgam_lf='
25187366012aSmrg'
25197366012aSmrgcase `pwd` in
25207366012aSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
25212adc0320Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
25227366012aSmrgesac
25237366012aSmrgcase $srcdir in
25247366012aSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
25258abc0ccfSmrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
25267366012aSmrgesac
25277366012aSmrg
25288abc0ccfSmrg# Do 'set' in a subshell so we don't clobber the current shell's
25297366012aSmrg# arguments.  Must try -L first in case configure is actually a
25307366012aSmrg# symlink; some systems play weird games with the mod time of symlinks
25317366012aSmrg# (eg FreeBSD returns the mod time of the symlink's containing
25327366012aSmrg# directory).
25337366012aSmrgif (
25348abc0ccfSmrg   am_has_slept=no
25358abc0ccfSmrg   for am_try in 1 2; do
25368abc0ccfSmrg     echo "timestamp, slept: $am_has_slept" > conftest.file
25378abc0ccfSmrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
25388abc0ccfSmrg     if test "$*" = "X"; then
25398abc0ccfSmrg	# -L didn't work.
25408abc0ccfSmrg	set X `ls -t "$srcdir/configure" conftest.file`
25418abc0ccfSmrg     fi
25428abc0ccfSmrg     if test "$*" != "X $srcdir/configure conftest.file" \
25438abc0ccfSmrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
25448abc0ccfSmrg
25458abc0ccfSmrg	# If neither matched, then we have a broken ls.  This can happen
25468abc0ccfSmrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
25478abc0ccfSmrg	# broken ls alias from the environment.  This has actually
25488abc0ccfSmrg	# happened.  Such a system could not be considered "sane".
25498abc0ccfSmrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
25508abc0ccfSmrg  alias in your environment" "$LINENO" 5
25518abc0ccfSmrg     fi
25528abc0ccfSmrg     if test "$2" = conftest.file || test $am_try -eq 2; then
25538abc0ccfSmrg       break
25548abc0ccfSmrg     fi
25558abc0ccfSmrg     # Just in case.
25568abc0ccfSmrg     sleep 1
25578abc0ccfSmrg     am_has_slept=yes
25588abc0ccfSmrg   done
25597a0395d0Smrg   test "$2" = conftest.file
25607a0395d0Smrg   )
25617a0395d0Smrgthen
25627a0395d0Smrg   # Ok.
25637a0395d0Smrg   :
25647a0395d0Smrgelse
25652adc0320Smrg   as_fn_error $? "newly created file is older than distributed files!
25662adc0320SmrgCheck your system clock" "$LINENO" 5
25677a0395d0Smrgfi
25682adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25697366012aSmrg$as_echo "yes" >&6; }
25708abc0ccfSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and
25718abc0ccfSmrg# generated files are strictly newer.
25728abc0ccfSmrgam_sleep_pid=
25738abc0ccfSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
25748abc0ccfSmrg  ( sleep 1 ) &
25758abc0ccfSmrg  am_sleep_pid=$!
25768abc0ccfSmrgfi
25778abc0ccfSmrg
25788abc0ccfSmrgrm -f conftest.file
25798abc0ccfSmrg
25807a0395d0Smrgtest "$program_prefix" != NONE &&
25817a0395d0Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
25827a0395d0Smrg# Use a double $ so make ignores it.
25837a0395d0Smrgtest "$program_suffix" != NONE &&
25847a0395d0Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
25857366012aSmrg# Double any \ or $.
25867a0395d0Smrg# By default was `s,x,x', remove it if useless.
25877366012aSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
25887366012aSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
25897a0395d0Smrg
25907a0395d0Smrg# expand $ac_aux_dir to an absolute path
25917a0395d0Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
25927a0395d0Smrg
25937366012aSmrgif test x"${MISSING+set}" != xset; then
25947366012aSmrg  case $am_aux_dir in
25957366012aSmrg  *\ * | *\	*)
25967366012aSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
25977366012aSmrg  *)
25987366012aSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
25997366012aSmrg  esac
26007366012aSmrgfi
26017a0395d0Smrg# Use eval to expand $SHELL
26029a011757Smrgif eval "$MISSING --is-lightweight"; then
26039a011757Smrg  am_missing_run="$MISSING "
26047a0395d0Smrgelse
26057a0395d0Smrg  am_missing_run=
26068abc0ccfSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
26078abc0ccfSmrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
26087366012aSmrgfi
26097366012aSmrg
26107366012aSmrgif test x"${install_sh}" != xset; then
26117366012aSmrg  case $am_aux_dir in
26127366012aSmrg  *\ * | *\	*)
26137366012aSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
26147366012aSmrg  *)
26157366012aSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
26167366012aSmrg  esac
26177366012aSmrgfi
26187366012aSmrg
26198abc0ccfSmrg# Installed binaries are usually stripped using 'strip' when the user
26208abc0ccfSmrg# run "make install-strip".  However 'strip' might not be the right
26217366012aSmrg# tool to use in cross-compilation environments, therefore Automake
26228abc0ccfSmrg# will honor the 'STRIP' environment variable to overrule this program.
26237366012aSmrgif test "$cross_compiling" != no; then
26247366012aSmrg  if test -n "$ac_tool_prefix"; then
26257366012aSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
26267366012aSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
26272adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26287366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
26292adc0320Smrgif ${ac_cv_prog_STRIP+:} false; then :
26307366012aSmrg  $as_echo_n "(cached) " >&6
26317366012aSmrgelse
26327366012aSmrg  if test -n "$STRIP"; then
26337366012aSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
26347366012aSmrgelse
26357366012aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26367366012aSmrgfor as_dir in $PATH
26377366012aSmrgdo
26387366012aSmrg  IFS=$as_save_IFS
26397366012aSmrg  test -z "$as_dir" && as_dir=.
26402adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
26418abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26427366012aSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
26432adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26447366012aSmrg    break 2
26457366012aSmrg  fi
26467366012aSmrgdone
26472adc0320Smrg  done
26487366012aSmrgIFS=$as_save_IFS
26497366012aSmrg
26507366012aSmrgfi
26517366012aSmrgfi
26527366012aSmrgSTRIP=$ac_cv_prog_STRIP
26537366012aSmrgif test -n "$STRIP"; then
26542adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26557366012aSmrg$as_echo "$STRIP" >&6; }
26567366012aSmrgelse
26572adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26587366012aSmrg$as_echo "no" >&6; }
26597366012aSmrgfi
26607366012aSmrg
26617366012aSmrg
26627366012aSmrgfi
26637366012aSmrgif test -z "$ac_cv_prog_STRIP"; then
26647366012aSmrg  ac_ct_STRIP=$STRIP
26657366012aSmrg  # Extract the first word of "strip", so it can be a program name with args.
26667366012aSmrgset dummy strip; ac_word=$2
26672adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26687366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
26692adc0320Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
26707366012aSmrg  $as_echo_n "(cached) " >&6
26717366012aSmrgelse
26727366012aSmrg  if test -n "$ac_ct_STRIP"; then
26737366012aSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
26747366012aSmrgelse
26757366012aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26767366012aSmrgfor as_dir in $PATH
26777366012aSmrgdo
26787366012aSmrg  IFS=$as_save_IFS
26797366012aSmrg  test -z "$as_dir" && as_dir=.
26802adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
26818abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26827366012aSmrg    ac_cv_prog_ac_ct_STRIP="strip"
26832adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26847366012aSmrg    break 2
26857366012aSmrg  fi
26867366012aSmrgdone
26872adc0320Smrg  done
26887366012aSmrgIFS=$as_save_IFS
26897366012aSmrg
26907366012aSmrgfi
26917366012aSmrgfi
26927366012aSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
26937366012aSmrgif test -n "$ac_ct_STRIP"; then
26942adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
26957366012aSmrg$as_echo "$ac_ct_STRIP" >&6; }
26967366012aSmrgelse
26972adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26987366012aSmrg$as_echo "no" >&6; }
26997366012aSmrgfi
27007366012aSmrg
27017366012aSmrg  if test "x$ac_ct_STRIP" = x; then
27027366012aSmrg    STRIP=":"
27037366012aSmrg  else
27047366012aSmrg    case $cross_compiling:$ac_tool_warned in
27057366012aSmrgyes:)
27062adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27077366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27087366012aSmrgac_tool_warned=yes ;;
27097366012aSmrgesac
27107366012aSmrg    STRIP=$ac_ct_STRIP
27117366012aSmrg  fi
27127366012aSmrgelse
27137366012aSmrg  STRIP="$ac_cv_prog_STRIP"
27147a0395d0Smrgfi
27157a0395d0Smrg
27167366012aSmrgfi
27177366012aSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
27187366012aSmrg
27192adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
27207366012aSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
27217a0395d0Smrgif test -z "$MKDIR_P"; then
27222adc0320Smrg  if ${ac_cv_path_mkdir+:} false; then :
27237366012aSmrg  $as_echo_n "(cached) " >&6
27247a0395d0Smrgelse
27257a0395d0Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27267a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
27277a0395d0Smrgdo
27287a0395d0Smrg  IFS=$as_save_IFS
27297a0395d0Smrg  test -z "$as_dir" && as_dir=.
27302adc0320Smrg    for ac_prog in mkdir gmkdir; do
27317a0395d0Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
27328abc0ccfSmrg	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
27337a0395d0Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
27347a0395d0Smrg	     'mkdir (GNU coreutils) '* | \
27357a0395d0Smrg	     'mkdir (coreutils) '* | \
27367a0395d0Smrg	     'mkdir (fileutils) '4.1*)
27377a0395d0Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
27387a0395d0Smrg	       break 3;;
27397a0395d0Smrg	   esac
27407a0395d0Smrg	 done
27417a0395d0Smrg       done
27422adc0320Smrg  done
27437a0395d0SmrgIFS=$as_save_IFS
27447a0395d0Smrg
27457a0395d0Smrgfi
27467a0395d0Smrg
27472adc0320Smrg  test -d ./--version && rmdir ./--version
27487a0395d0Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
27497a0395d0Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
27507a0395d0Smrg  else
27517a0395d0Smrg    # As a last resort, use the slow shell script.  Don't cache a
27527a0395d0Smrg    # value for MKDIR_P within a source directory, because that will
27537a0395d0Smrg    # break other packages using the cache if that directory is
27547a0395d0Smrg    # removed, or if the value is a relative name.
27557a0395d0Smrg    MKDIR_P="$ac_install_sh -d"
27567a0395d0Smrg  fi
27577a0395d0Smrgfi
27582adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
27597366012aSmrg$as_echo "$MKDIR_P" >&6; }
27607a0395d0Smrg
27617a0395d0Smrgfor ac_prog in gawk mawk nawk awk
27627a0395d0Smrgdo
27637a0395d0Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
27647a0395d0Smrgset dummy $ac_prog; ac_word=$2
27652adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27667366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
27672adc0320Smrgif ${ac_cv_prog_AWK+:} false; then :
27687366012aSmrg  $as_echo_n "(cached) " >&6
27697a0395d0Smrgelse
27707a0395d0Smrg  if test -n "$AWK"; then
27717a0395d0Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
27727a0395d0Smrgelse
27737a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27747a0395d0Smrgfor as_dir in $PATH
27757a0395d0Smrgdo
27767a0395d0Smrg  IFS=$as_save_IFS
27777a0395d0Smrg  test -z "$as_dir" && as_dir=.
27782adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
27798abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27807a0395d0Smrg    ac_cv_prog_AWK="$ac_prog"
27812adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27827a0395d0Smrg    break 2
27837a0395d0Smrg  fi
27847a0395d0Smrgdone
27852adc0320Smrg  done
27867a0395d0SmrgIFS=$as_save_IFS
27877a0395d0Smrg
27887a0395d0Smrgfi
27897a0395d0Smrgfi
27907a0395d0SmrgAWK=$ac_cv_prog_AWK
27917a0395d0Smrgif test -n "$AWK"; then
27922adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
27937366012aSmrg$as_echo "$AWK" >&6; }
27947a0395d0Smrgelse
27952adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27967366012aSmrg$as_echo "no" >&6; }
27977a0395d0Smrgfi
27987a0395d0Smrg
27997a0395d0Smrg
28007a0395d0Smrg  test -n "$AWK" && break
28017a0395d0Smrgdone
28027a0395d0Smrg
28032adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
28047366012aSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
28057366012aSmrgset x ${MAKE-make}
28067366012aSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
28072adc0320Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
28087366012aSmrg  $as_echo_n "(cached) " >&6
28097a0395d0Smrgelse
28107a0395d0Smrg  cat >conftest.make <<\_ACEOF
28117a0395d0SmrgSHELL = /bin/sh
28127a0395d0Smrgall:
28137a0395d0Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
28147a0395d0Smrg_ACEOF
28152adc0320Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
28167a0395d0Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
28177a0395d0Smrg  *@@@%%%=?*=@@@%%%*)
28187a0395d0Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
28197a0395d0Smrg  *)
28207a0395d0Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
28217a0395d0Smrgesac
28227a0395d0Smrgrm -f conftest.make
28237a0395d0Smrgfi
28247a0395d0Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
28252adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28267366012aSmrg$as_echo "yes" >&6; }
28277a0395d0Smrg  SET_MAKE=
28287a0395d0Smrgelse
28292adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28307366012aSmrg$as_echo "no" >&6; }
28317a0395d0Smrg  SET_MAKE="MAKE=${MAKE-make}"
28327a0395d0Smrgfi
28337a0395d0Smrg
28347a0395d0Smrgrm -rf .tst 2>/dev/null
28357a0395d0Smrgmkdir .tst 2>/dev/null
28367a0395d0Smrgif test -d .tst; then
28377a0395d0Smrg  am__leading_dot=.
28387a0395d0Smrgelse
28397a0395d0Smrg  am__leading_dot=_
28407a0395d0Smrgfi
28417a0395d0Smrgrmdir .tst 2>/dev/null
28427a0395d0Smrg
28439a011757Smrg# Check whether --enable-silent-rules was given.
28449a011757Smrgif test "${enable_silent_rules+set}" = set; then :
28459a011757Smrg  enableval=$enable_silent_rules;
28469a011757Smrgfi
28479a011757Smrg
28489a011757Smrgcase $enable_silent_rules in # (((
28499a011757Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
28509a011757Smrg   no) AM_DEFAULT_VERBOSITY=1;;
28519a011757Smrg    *) AM_DEFAULT_VERBOSITY=1;;
28529a011757Smrgesac
28539a011757Smrgam_make=${MAKE-make}
28549a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
28559a011757Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
28569a011757Smrgif ${am_cv_make_support_nested_variables+:} false; then :
28579a011757Smrg  $as_echo_n "(cached) " >&6
28589a011757Smrgelse
28599a011757Smrg  if $as_echo 'TRUE=$(BAR$(V))
28609a011757SmrgBAR0=false
28619a011757SmrgBAR1=true
28629a011757SmrgV=1
28639a011757Smrgam__doit:
28649a011757Smrg	@$(TRUE)
28659a011757Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
28669a011757Smrg  am_cv_make_support_nested_variables=yes
28679a011757Smrgelse
28689a011757Smrg  am_cv_make_support_nested_variables=no
28699a011757Smrgfi
28709a011757Smrgfi
28719a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
28729a011757Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
28739a011757Smrgif test $am_cv_make_support_nested_variables = yes; then
28749a011757Smrg    AM_V='$(V)'
28759a011757Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
28769a011757Smrgelse
28779a011757Smrg  AM_V=$AM_DEFAULT_VERBOSITY
28789a011757Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
28799a011757Smrgfi
28809a011757SmrgAM_BACKSLASH='\'
28819a011757Smrg
28827a0395d0Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
28837a0395d0Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
28847a0395d0Smrg  # is not polluted with repeated "-I."
28857a0395d0Smrg  am__isrc=' -I$(srcdir)'
28867a0395d0Smrg  # test to see if srcdir already configured
28877a0395d0Smrg  if test -f $srcdir/config.status; then
28882adc0320Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
28897a0395d0Smrg  fi
28907a0395d0Smrgfi
28917a0395d0Smrg
28927a0395d0Smrg# test whether we have cygpath
28937a0395d0Smrgif test -z "$CYGPATH_W"; then
28947a0395d0Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
28957a0395d0Smrg    CYGPATH_W='cygpath -w'
28967a0395d0Smrg  else
28977a0395d0Smrg    CYGPATH_W=echo
28987a0395d0Smrg  fi
28997a0395d0Smrgfi
29007a0395d0Smrg
29017a0395d0Smrg
29027a0395d0Smrg# Define the identity of the package.
29037a0395d0Smrg PACKAGE='xauth'
29049a011757Smrg VERSION='1.0.9'
29057a0395d0Smrg
29067a0395d0Smrg
29077a0395d0Smrgcat >>confdefs.h <<_ACEOF
29087a0395d0Smrg#define PACKAGE "$PACKAGE"
29097a0395d0Smrg_ACEOF
29107a0395d0Smrg
29117a0395d0Smrg
29127a0395d0Smrgcat >>confdefs.h <<_ACEOF
29137a0395d0Smrg#define VERSION "$VERSION"
29147a0395d0Smrg_ACEOF
29157a0395d0Smrg
29167a0395d0Smrg# Some tools Automake needs.
29177a0395d0Smrg
29187a0395d0SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
29197a0395d0Smrg
29207a0395d0Smrg
29217a0395d0SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
29227a0395d0Smrg
29237a0395d0Smrg
29247a0395d0SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
29257a0395d0Smrg
29267a0395d0Smrg
29277a0395d0SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
29287a0395d0Smrg
29297a0395d0Smrg
29307a0395d0SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
29317a0395d0Smrg
29328abc0ccfSmrg# For better backward compatibility.  To be removed once Automake 1.9.x
29338abc0ccfSmrg# dies out for good.  For more background, see:
29348abc0ccfSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
29358abc0ccfSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
29368abc0ccfSmrgmkdir_p='$(MKDIR_P)'
29378abc0ccfSmrg
29387a0395d0Smrg# We need awk for the "check" target.  The system "awk" is bad on
29397a0395d0Smrg# some platforms.
29408abc0ccfSmrg# Always define AMTAR for backward compatibility.  Yes, it's still used
29418abc0ccfSmrg# in the wild :-(  We should find a proper way to deprecate it ...
29428abc0ccfSmrgAMTAR='$${TAR-tar}'
29437a0395d0Smrg
29449a011757Smrg
29459a011757Smrg# We'll loop over all known methods to create a tar archive until one works.
29469a011757Smrg_am_tools='gnutar  pax cpio none'
29479a011757Smrg
29488abc0ccfSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
29497a0395d0Smrg
29507a0395d0Smrg
29517a0395d0Smrg
29527a0395d0Smrg
29537a0395d0Smrg
29547366012aSmrg
29559a011757Smrg
29562adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29577366012aSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29587a0395d0Smrg    # Check whether --enable-maintainer-mode was given.
29592adc0320Smrgif test "${enable_maintainer_mode+set}" = set; then :
29607a0395d0Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
29617a0395d0Smrgelse
29627a0395d0Smrg  USE_MAINTAINER_MODE=no
29637a0395d0Smrgfi
29647a0395d0Smrg
29652adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
29667366012aSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
29677a0395d0Smrg   if test $USE_MAINTAINER_MODE = yes; then
29687a0395d0Smrg  MAINTAINER_MODE_TRUE=
29697a0395d0Smrg  MAINTAINER_MODE_FALSE='#'
29707a0395d0Smrgelse
29717a0395d0Smrg  MAINTAINER_MODE_TRUE='#'
29727a0395d0Smrg  MAINTAINER_MODE_FALSE=
29737a0395d0Smrgfi
29747a0395d0Smrg
29757a0395d0Smrg  MAINT=$MAINTAINER_MODE_TRUE
29767a0395d0Smrg
29777a0395d0Smrg
29787a0395d0Smrg
29797a0395d0Smrgac_config_headers="$ac_config_headers config.h"
29807a0395d0Smrg
29817a0395d0Smrg
29829a011757Smrg# Set common system defines for POSIX extensions, such as _GNU_SOURCE
29839a011757Smrg# Must be called before any macros that run the compiler (like
29849a011757Smrg# AC_PROG_LIBTOOL) to avoid autoconf errors.
29852adc0320SmrgDEPDIR="${am__leading_dot}deps"
29862adc0320Smrg
29872adc0320Smrgac_config_commands="$ac_config_commands depfiles"
29882adc0320Smrg
29892adc0320Smrg
29902adc0320Smrgam_make=${MAKE-make}
29912adc0320Smrgcat > confinc << 'END'
29922adc0320Smrgam__doit:
29932adc0320Smrg	@echo this is the am__doit target
29942adc0320Smrg.PHONY: am__doit
29952adc0320SmrgEND
29962adc0320Smrg# If we don't find an include directive, just comment out the code.
29972adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
29982adc0320Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
29992adc0320Smrgam__include="#"
30002adc0320Smrgam__quote=
30012adc0320Smrg_am_result=none
30022adc0320Smrg# First try GNU make style include.
30032adc0320Smrgecho "include confinc" > confmf
30048abc0ccfSmrg# Ignore all kinds of additional output from 'make'.
30052adc0320Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
30062adc0320Smrg*the\ am__doit\ target*)
30072adc0320Smrg  am__include=include
30082adc0320Smrg  am__quote=
30092adc0320Smrg  _am_result=GNU
30102adc0320Smrg  ;;
30112adc0320Smrgesac
30122adc0320Smrg# Now try BSD make style include.
30132adc0320Smrgif test "$am__include" = "#"; then
30142adc0320Smrg   echo '.include "confinc"' > confmf
30152adc0320Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
30162adc0320Smrg   *the\ am__doit\ target*)
30172adc0320Smrg     am__include=.include
30182adc0320Smrg     am__quote="\""
30192adc0320Smrg     _am_result=BSD
30202adc0320Smrg     ;;
30212adc0320Smrg   esac
30222adc0320Smrgfi
30232adc0320Smrg
30242adc0320Smrg
30252adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
30262adc0320Smrg$as_echo "$_am_result" >&6; }
30272adc0320Smrgrm -f confinc confmf
30282adc0320Smrg
30292adc0320Smrg# Check whether --enable-dependency-tracking was given.
30302adc0320Smrgif test "${enable_dependency_tracking+set}" = set; then :
30312adc0320Smrg  enableval=$enable_dependency_tracking;
30322adc0320Smrgfi
30337a0395d0Smrg
30342adc0320Smrgif test "x$enable_dependency_tracking" != xno; then
30352adc0320Smrg  am_depcomp="$ac_aux_dir/depcomp"
30362adc0320Smrg  AMDEPBACKSLASH='\'
30378abc0ccfSmrg  am__nodep='_no'
30382adc0320Smrgfi
30392adc0320Smrg if test "x$enable_dependency_tracking" != xno; then
30402adc0320Smrg  AMDEP_TRUE=
30412adc0320Smrg  AMDEP_FALSE='#'
30422adc0320Smrgelse
30432adc0320Smrg  AMDEP_TRUE='#'
30442adc0320Smrg  AMDEP_FALSE=
30452adc0320Smrgfi
30467a0395d0Smrg
30477a0395d0Smrg
30487a0395d0Smrgac_ext=c
30497a0395d0Smrgac_cpp='$CPP $CPPFLAGS'
30507a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30517a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30527a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
30537a0395d0Smrgif test -n "$ac_tool_prefix"; then
30547a0395d0Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
30557a0395d0Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
30562adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30577366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
30582adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
30597366012aSmrg  $as_echo_n "(cached) " >&6
30607a0395d0Smrgelse
30617a0395d0Smrg  if test -n "$CC"; then
30627a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
30637a0395d0Smrgelse
30647a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30657a0395d0Smrgfor as_dir in $PATH
30667a0395d0Smrgdo
30677a0395d0Smrg  IFS=$as_save_IFS
30687a0395d0Smrg  test -z "$as_dir" && as_dir=.
30692adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
30708abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30717a0395d0Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
30722adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30737a0395d0Smrg    break 2
30747a0395d0Smrg  fi
30757a0395d0Smrgdone
30762adc0320Smrg  done
30777a0395d0SmrgIFS=$as_save_IFS
30787a0395d0Smrg
30797a0395d0Smrgfi
30807a0395d0Smrgfi
30817a0395d0SmrgCC=$ac_cv_prog_CC
30827a0395d0Smrgif test -n "$CC"; then
30832adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
30847366012aSmrg$as_echo "$CC" >&6; }
30857a0395d0Smrgelse
30862adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30877366012aSmrg$as_echo "no" >&6; }
30887a0395d0Smrgfi
30897a0395d0Smrg
30907a0395d0Smrg
30917a0395d0Smrgfi
30927a0395d0Smrgif test -z "$ac_cv_prog_CC"; then
30937a0395d0Smrg  ac_ct_CC=$CC
30947a0395d0Smrg  # Extract the first word of "gcc", so it can be a program name with args.
30957a0395d0Smrgset dummy gcc; ac_word=$2
30962adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30977366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
30982adc0320Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
30997366012aSmrg  $as_echo_n "(cached) " >&6
31007a0395d0Smrgelse
31017a0395d0Smrg  if test -n "$ac_ct_CC"; then
31027a0395d0Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
31037a0395d0Smrgelse
31047a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31057a0395d0Smrgfor as_dir in $PATH
31067a0395d0Smrgdo
31077a0395d0Smrg  IFS=$as_save_IFS
31087a0395d0Smrg  test -z "$as_dir" && as_dir=.
31092adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
31108abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31117a0395d0Smrg    ac_cv_prog_ac_ct_CC="gcc"
31122adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31137a0395d0Smrg    break 2
31147a0395d0Smrg  fi
31157a0395d0Smrgdone
31162adc0320Smrg  done
31177a0395d0SmrgIFS=$as_save_IFS
31187a0395d0Smrg
31197a0395d0Smrgfi
31207a0395d0Smrgfi
31217a0395d0Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
31227a0395d0Smrgif test -n "$ac_ct_CC"; then
31232adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
31247366012aSmrg$as_echo "$ac_ct_CC" >&6; }
31257a0395d0Smrgelse
31262adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31277366012aSmrg$as_echo "no" >&6; }
31287a0395d0Smrgfi
31297a0395d0Smrg
31307a0395d0Smrg  if test "x$ac_ct_CC" = x; then
31317a0395d0Smrg    CC=""
31327a0395d0Smrg  else
31337a0395d0Smrg    case $cross_compiling:$ac_tool_warned in
31347a0395d0Smrgyes:)
31352adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31367366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31377a0395d0Smrgac_tool_warned=yes ;;
31387a0395d0Smrgesac
31397a0395d0Smrg    CC=$ac_ct_CC
31407a0395d0Smrg  fi
31417a0395d0Smrgelse
31427a0395d0Smrg  CC="$ac_cv_prog_CC"
31437a0395d0Smrgfi
31447a0395d0Smrg
31457a0395d0Smrgif test -z "$CC"; then
31467a0395d0Smrg          if test -n "$ac_tool_prefix"; then
31477a0395d0Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
31487a0395d0Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
31492adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31507366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
31512adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
31527366012aSmrg  $as_echo_n "(cached) " >&6
31537a0395d0Smrgelse
31547a0395d0Smrg  if test -n "$CC"; then
31557a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
31567a0395d0Smrgelse
31577a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31587a0395d0Smrgfor as_dir in $PATH
31597a0395d0Smrgdo
31607a0395d0Smrg  IFS=$as_save_IFS
31617a0395d0Smrg  test -z "$as_dir" && as_dir=.
31622adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
31638abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31647a0395d0Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
31652adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31667a0395d0Smrg    break 2
31677a0395d0Smrg  fi
31687a0395d0Smrgdone
31692adc0320Smrg  done
31707a0395d0SmrgIFS=$as_save_IFS
31717a0395d0Smrg
31727a0395d0Smrgfi
31737a0395d0Smrgfi
31747a0395d0SmrgCC=$ac_cv_prog_CC
31757a0395d0Smrgif test -n "$CC"; then
31762adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
31777366012aSmrg$as_echo "$CC" >&6; }
31787a0395d0Smrgelse
31792adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31807366012aSmrg$as_echo "no" >&6; }
31817a0395d0Smrgfi
31827a0395d0Smrg
31837a0395d0Smrg
31847a0395d0Smrg  fi
31857a0395d0Smrgfi
31867a0395d0Smrgif test -z "$CC"; then
31877a0395d0Smrg  # Extract the first word of "cc", so it can be a program name with args.
31887a0395d0Smrgset dummy cc; ac_word=$2
31892adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31907366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
31912adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
31927366012aSmrg  $as_echo_n "(cached) " >&6
31937a0395d0Smrgelse
31947a0395d0Smrg  if test -n "$CC"; then
31957a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
31967a0395d0Smrgelse
31977a0395d0Smrg  ac_prog_rejected=no
31987a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31997a0395d0Smrgfor as_dir in $PATH
32007a0395d0Smrgdo
32017a0395d0Smrg  IFS=$as_save_IFS
32027a0395d0Smrg  test -z "$as_dir" && as_dir=.
32032adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
32048abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32057a0395d0Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
32067a0395d0Smrg       ac_prog_rejected=yes
32077a0395d0Smrg       continue
32087a0395d0Smrg     fi
32097a0395d0Smrg    ac_cv_prog_CC="cc"
32102adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32117a0395d0Smrg    break 2
32127a0395d0Smrg  fi
32137a0395d0Smrgdone
32142adc0320Smrg  done
32157a0395d0SmrgIFS=$as_save_IFS
32167a0395d0Smrg
32177a0395d0Smrgif test $ac_prog_rejected = yes; then
32187a0395d0Smrg  # We found a bogon in the path, so make sure we never use it.
32197a0395d0Smrg  set dummy $ac_cv_prog_CC
32207a0395d0Smrg  shift
32217a0395d0Smrg  if test $# != 0; then
32227a0395d0Smrg    # We chose a different compiler from the bogus one.
32237a0395d0Smrg    # However, it has the same basename, so the bogon will be chosen
32247a0395d0Smrg    # first if we set CC to just the basename; use the full file name.
32257a0395d0Smrg    shift
32267a0395d0Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
32277a0395d0Smrg  fi
32287a0395d0Smrgfi
32297a0395d0Smrgfi
32307a0395d0Smrgfi
32317a0395d0SmrgCC=$ac_cv_prog_CC
32327a0395d0Smrgif test -n "$CC"; then
32332adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
32347366012aSmrg$as_echo "$CC" >&6; }
32357a0395d0Smrgelse
32362adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32377366012aSmrg$as_echo "no" >&6; }
32387a0395d0Smrgfi
32397a0395d0Smrg
32407a0395d0Smrg
32417a0395d0Smrgfi
32427a0395d0Smrgif test -z "$CC"; then
32437a0395d0Smrg  if test -n "$ac_tool_prefix"; then
32447a0395d0Smrg  for ac_prog in cl.exe
32457a0395d0Smrg  do
32467a0395d0Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32477a0395d0Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
32482adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32497366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
32502adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
32517366012aSmrg  $as_echo_n "(cached) " >&6
32527a0395d0Smrgelse
32537a0395d0Smrg  if test -n "$CC"; then
32547a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
32557a0395d0Smrgelse
32567a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32577a0395d0Smrgfor as_dir in $PATH
32587a0395d0Smrgdo
32597a0395d0Smrg  IFS=$as_save_IFS
32607a0395d0Smrg  test -z "$as_dir" && as_dir=.
32612adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
32628abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32637a0395d0Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
32642adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32657a0395d0Smrg    break 2
32667a0395d0Smrg  fi
32677a0395d0Smrgdone
32682adc0320Smrg  done
32697a0395d0SmrgIFS=$as_save_IFS
32707a0395d0Smrg
32717a0395d0Smrgfi
32727a0395d0Smrgfi
32737a0395d0SmrgCC=$ac_cv_prog_CC
32747a0395d0Smrgif test -n "$CC"; then
32752adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
32767366012aSmrg$as_echo "$CC" >&6; }
32777a0395d0Smrgelse
32782adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32797366012aSmrg$as_echo "no" >&6; }
32807a0395d0Smrgfi
32817a0395d0Smrg
32827a0395d0Smrg
32837a0395d0Smrg    test -n "$CC" && break
32847a0395d0Smrg  done
32857a0395d0Smrgfi
32867a0395d0Smrgif test -z "$CC"; then
32877a0395d0Smrg  ac_ct_CC=$CC
32887a0395d0Smrg  for ac_prog in cl.exe
32897a0395d0Smrgdo
32907a0395d0Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
32917a0395d0Smrgset dummy $ac_prog; ac_word=$2
32922adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32937366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
32942adc0320Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
32957366012aSmrg  $as_echo_n "(cached) " >&6
32967a0395d0Smrgelse
32977a0395d0Smrg  if test -n "$ac_ct_CC"; then
32987a0395d0Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
32997a0395d0Smrgelse
33007a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33017a0395d0Smrgfor as_dir in $PATH
33027a0395d0Smrgdo
33037a0395d0Smrg  IFS=$as_save_IFS
33047a0395d0Smrg  test -z "$as_dir" && as_dir=.
33052adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
33068abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33077a0395d0Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
33082adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33097a0395d0Smrg    break 2
33107a0395d0Smrg  fi
33117a0395d0Smrgdone
33122adc0320Smrg  done
33137a0395d0SmrgIFS=$as_save_IFS
33147a0395d0Smrg
33157a0395d0Smrgfi
33167a0395d0Smrgfi
33177a0395d0Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
33187a0395d0Smrgif test -n "$ac_ct_CC"; then
33192adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
33207366012aSmrg$as_echo "$ac_ct_CC" >&6; }
33217a0395d0Smrgelse
33222adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33237366012aSmrg$as_echo "no" >&6; }
33247a0395d0Smrgfi
33257a0395d0Smrg
33267a0395d0Smrg
33277a0395d0Smrg  test -n "$ac_ct_CC" && break
33287a0395d0Smrgdone
33297a0395d0Smrg
33307a0395d0Smrg  if test "x$ac_ct_CC" = x; then
33317a0395d0Smrg    CC=""
33327a0395d0Smrg  else
33337a0395d0Smrg    case $cross_compiling:$ac_tool_warned in
33347a0395d0Smrgyes:)
33352adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33367366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33377a0395d0Smrgac_tool_warned=yes ;;
33387a0395d0Smrgesac
33397a0395d0Smrg    CC=$ac_ct_CC
33407a0395d0Smrg  fi
33417a0395d0Smrgfi
33427a0395d0Smrg
33437a0395d0Smrgfi
33447a0395d0Smrg
33457a0395d0Smrg
33462adc0320Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33477366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33482adc0320Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
33492adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
33507a0395d0Smrg
33517a0395d0Smrg# Provide some information about the compiler.
33522adc0320Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
33537366012aSmrgset X $ac_compile
33547366012aSmrgac_compiler=$2
33552adc0320Smrgfor ac_option in --version -v -V -qversion; do
33562adc0320Smrg  { { ac_try="$ac_compiler $ac_option >&5"
33577a0395d0Smrgcase "(($ac_try" in
33587a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33597a0395d0Smrg  *) ac_try_echo=$ac_try;;
33607a0395d0Smrgesac
33612adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
33622adc0320Smrg$as_echo "$ac_try_echo"; } >&5
33632adc0320Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
33647a0395d0Smrg  ac_status=$?
33652adc0320Smrg  if test -s conftest.err; then
33662adc0320Smrg    sed '10a\
33672adc0320Smrg... rest of stderr output deleted ...
33682adc0320Smrg         10q' conftest.err >conftest.er1
33692adc0320Smrg    cat conftest.er1 >&5
33702adc0320Smrg  fi
33712adc0320Smrg  rm -f conftest.er1 conftest.err
33722adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33732adc0320Smrg  test $ac_status = 0; }
33742adc0320Smrgdone
33757a0395d0Smrg
33762adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
33777a0395d0Smrg/* end confdefs.h.  */
33787a0395d0Smrg
33797a0395d0Smrgint
33807a0395d0Smrgmain ()
33817a0395d0Smrg{
33827a0395d0Smrg
33837a0395d0Smrg  ;
33847a0395d0Smrg  return 0;
33857a0395d0Smrg}
33867a0395d0Smrg_ACEOF
33877a0395d0Smrgac_clean_files_save=$ac_clean_files
33887366012aSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
33897a0395d0Smrg# Try to create an executable without -o first, disregard a.out.
33907a0395d0Smrg# It will help us diagnose broken compilers, and finding out an intuition
33917a0395d0Smrg# of exeext.
33922adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
33932adc0320Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
33947366012aSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
33957366012aSmrg
33967366012aSmrg# The possible output files:
33977366012aSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
33987366012aSmrg
33997a0395d0Smrgac_rmfiles=
34007a0395d0Smrgfor ac_file in $ac_files
34017a0395d0Smrgdo
34027a0395d0Smrg  case $ac_file in
34037366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
34047a0395d0Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
34057a0395d0Smrg  esac
34067a0395d0Smrgdone
34077a0395d0Smrgrm -f $ac_rmfiles
34087a0395d0Smrg
34092adc0320Smrgif { { ac_try="$ac_link_default"
34107a0395d0Smrgcase "(($ac_try" in
34117a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34127a0395d0Smrg  *) ac_try_echo=$ac_try;;
34137a0395d0Smrgesac
34142adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
34152adc0320Smrg$as_echo "$ac_try_echo"; } >&5
34167a0395d0Smrg  (eval "$ac_link_default") 2>&5
34177a0395d0Smrg  ac_status=$?
34182adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34192adc0320Smrg  test $ac_status = 0; }; then :
34207a0395d0Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
34217a0395d0Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
34227a0395d0Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
34237a0395d0Smrg# so that the user can short-circuit this test for compilers unknown to
34247a0395d0Smrg# Autoconf.
34257a0395d0Smrgfor ac_file in $ac_files ''
34267a0395d0Smrgdo
34277a0395d0Smrg  test -f "$ac_file" || continue
34287a0395d0Smrg  case $ac_file in
34297366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
34307a0395d0Smrg	;;
34317a0395d0Smrg    [ab].out )
34327a0395d0Smrg	# We found the default executable, but exeext='' is most
34337a0395d0Smrg	# certainly right.
34347a0395d0Smrg	break;;
34357a0395d0Smrg    *.* )
34362adc0320Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
34377a0395d0Smrg	then :; else
34387a0395d0Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
34397a0395d0Smrg	fi
34407a0395d0Smrg	# We set ac_cv_exeext here because the later test for it is not
34417a0395d0Smrg	# safe: cross compilers may not add the suffix if given an `-o'
34427a0395d0Smrg	# argument, so we may need to know it at that point already.
34437a0395d0Smrg	# Even if this section looks crufty: it has the advantage of
34447a0395d0Smrg	# actually working.
34457a0395d0Smrg	break;;
34467a0395d0Smrg    * )
34477a0395d0Smrg	break;;
34487a0395d0Smrg  esac
34497a0395d0Smrgdone
34507a0395d0Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
34517a0395d0Smrg
34527a0395d0Smrgelse
34537a0395d0Smrg  ac_file=''
34547a0395d0Smrgfi
34552adc0320Smrgif test -z "$ac_file"; then :
34562adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34572adc0320Smrg$as_echo "no" >&6; }
34582adc0320Smrg$as_echo "$as_me: failed program was:" >&5
34597a0395d0Smrgsed 's/^/| /' conftest.$ac_ext >&5
34607a0395d0Smrg
34612adc0320Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34627366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34632adc0320Smrgas_fn_error 77 "C compiler cannot create executables
34642adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
34652adc0320Smrgelse
34662adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34672adc0320Smrg$as_echo "yes" >&6; }
34687a0395d0Smrgfi
34692adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
34702adc0320Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
34712adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
34722adc0320Smrg$as_echo "$ac_file" >&6; }
34737a0395d0Smrgac_exeext=$ac_cv_exeext
34747a0395d0Smrg
34757366012aSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
34767a0395d0Smrgac_clean_files=$ac_clean_files_save
34772adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
34787366012aSmrg$as_echo_n "checking for suffix of executables... " >&6; }
34792adc0320Smrgif { { ac_try="$ac_link"
34807a0395d0Smrgcase "(($ac_try" in
34817a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34827a0395d0Smrg  *) ac_try_echo=$ac_try;;
34837a0395d0Smrgesac
34842adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
34852adc0320Smrg$as_echo "$ac_try_echo"; } >&5
34867a0395d0Smrg  (eval "$ac_link") 2>&5
34877a0395d0Smrg  ac_status=$?
34882adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34892adc0320Smrg  test $ac_status = 0; }; then :
34907a0395d0Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
34917a0395d0Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
34927a0395d0Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
34937a0395d0Smrg# `rm'.
34947a0395d0Smrgfor ac_file in conftest.exe conftest conftest.*; do
34957a0395d0Smrg  test -f "$ac_file" || continue
34967a0395d0Smrg  case $ac_file in
34977366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
34987a0395d0Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
34997a0395d0Smrg	  break;;
35007a0395d0Smrg    * ) break;;
35017a0395d0Smrg  esac
35027a0395d0Smrgdone
35037a0395d0Smrgelse
35042adc0320Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35057366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35062adc0320Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
35072adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
35087a0395d0Smrgfi
35092adc0320Smrgrm -f conftest conftest$ac_cv_exeext
35102adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
35117366012aSmrg$as_echo "$ac_cv_exeext" >&6; }
35127a0395d0Smrg
35137a0395d0Smrgrm -f conftest.$ac_ext
35147a0395d0SmrgEXEEXT=$ac_cv_exeext
35157a0395d0Smrgac_exeext=$EXEEXT
35162adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
35172adc0320Smrg/* end confdefs.h.  */
35182adc0320Smrg#include <stdio.h>
35192adc0320Smrgint
35202adc0320Smrgmain ()
35212adc0320Smrg{
35222adc0320SmrgFILE *f = fopen ("conftest.out", "w");
35232adc0320Smrg return ferror (f) || fclose (f) != 0;
35242adc0320Smrg
35252adc0320Smrg  ;
35262adc0320Smrg  return 0;
35272adc0320Smrg}
35282adc0320Smrg_ACEOF
35292adc0320Smrgac_clean_files="$ac_clean_files conftest.out"
35302adc0320Smrg# Check that the compiler produces executables we can run.  If not, either
35312adc0320Smrg# the compiler is broken, or we cross compile.
35322adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
35332adc0320Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
35342adc0320Smrgif test "$cross_compiling" != yes; then
35352adc0320Smrg  { { ac_try="$ac_link"
35362adc0320Smrgcase "(($ac_try" in
35372adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35382adc0320Smrg  *) ac_try_echo=$ac_try;;
35392adc0320Smrgesac
35402adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
35412adc0320Smrg$as_echo "$ac_try_echo"; } >&5
35422adc0320Smrg  (eval "$ac_link") 2>&5
35432adc0320Smrg  ac_status=$?
35442adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35452adc0320Smrg  test $ac_status = 0; }
35462adc0320Smrg  if { ac_try='./conftest$ac_cv_exeext'
35472adc0320Smrg  { { case "(($ac_try" in
35482adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35492adc0320Smrg  *) ac_try_echo=$ac_try;;
35502adc0320Smrgesac
35512adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
35522adc0320Smrg$as_echo "$ac_try_echo"; } >&5
35532adc0320Smrg  (eval "$ac_try") 2>&5
35542adc0320Smrg  ac_status=$?
35552adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35562adc0320Smrg  test $ac_status = 0; }; }; then
35572adc0320Smrg    cross_compiling=no
35582adc0320Smrg  else
35592adc0320Smrg    if test "$cross_compiling" = maybe; then
35602adc0320Smrg	cross_compiling=yes
35612adc0320Smrg    else
35622adc0320Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35632adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35642adc0320Smrgas_fn_error $? "cannot run C compiled programs.
35652adc0320SmrgIf you meant to cross compile, use \`--host'.
35662adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
35672adc0320Smrg    fi
35682adc0320Smrg  fi
35692adc0320Smrgfi
35702adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
35712adc0320Smrg$as_echo "$cross_compiling" >&6; }
35722adc0320Smrg
35732adc0320Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
35742adc0320Smrgac_clean_files=$ac_clean_files_save
35752adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
35767366012aSmrg$as_echo_n "checking for suffix of object files... " >&6; }
35772adc0320Smrgif ${ac_cv_objext+:} false; then :
35787366012aSmrg  $as_echo_n "(cached) " >&6
35797a0395d0Smrgelse
35802adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35817a0395d0Smrg/* end confdefs.h.  */
35827a0395d0Smrg
35837a0395d0Smrgint
35847a0395d0Smrgmain ()
35857a0395d0Smrg{
35867a0395d0Smrg
35877a0395d0Smrg  ;
35887a0395d0Smrg  return 0;
35897a0395d0Smrg}
35907a0395d0Smrg_ACEOF
35917a0395d0Smrgrm -f conftest.o conftest.obj
35922adc0320Smrgif { { ac_try="$ac_compile"
35937a0395d0Smrgcase "(($ac_try" in
35947a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35957a0395d0Smrg  *) ac_try_echo=$ac_try;;
35967a0395d0Smrgesac
35972adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
35982adc0320Smrg$as_echo "$ac_try_echo"; } >&5
35997a0395d0Smrg  (eval "$ac_compile") 2>&5
36007a0395d0Smrg  ac_status=$?
36012adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36022adc0320Smrg  test $ac_status = 0; }; then :
36037a0395d0Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
36047a0395d0Smrg  test -f "$ac_file" || continue;
36057a0395d0Smrg  case $ac_file in
36067366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
36077a0395d0Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
36087a0395d0Smrg       break;;
36097a0395d0Smrg  esac
36107a0395d0Smrgdone
36117a0395d0Smrgelse
36127366012aSmrg  $as_echo "$as_me: failed program was:" >&5
36137a0395d0Smrgsed 's/^/| /' conftest.$ac_ext >&5
36147a0395d0Smrg
36152adc0320Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36167366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36172adc0320Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
36182adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
36197a0395d0Smrgfi
36207a0395d0Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
36217a0395d0Smrgfi
36222adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
36237366012aSmrg$as_echo "$ac_cv_objext" >&6; }
36247a0395d0SmrgOBJEXT=$ac_cv_objext
36257a0395d0Smrgac_objext=$OBJEXT
36262adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
36277366012aSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
36282adc0320Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
36297366012aSmrg  $as_echo_n "(cached) " >&6
36307a0395d0Smrgelse
36312adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36327a0395d0Smrg/* end confdefs.h.  */
36337a0395d0Smrg
36347a0395d0Smrgint
36357a0395d0Smrgmain ()
36367a0395d0Smrg{
36377a0395d0Smrg#ifndef __GNUC__
36387a0395d0Smrg       choke me
36397a0395d0Smrg#endif
36407a0395d0Smrg
36417a0395d0Smrg  ;
36427a0395d0Smrg  return 0;
36437a0395d0Smrg}
36447a0395d0Smrg_ACEOF
36452adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
36467a0395d0Smrg  ac_compiler_gnu=yes
36477a0395d0Smrgelse
36482adc0320Smrg  ac_compiler_gnu=no
36497a0395d0Smrgfi
36507a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36517a0395d0Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
36527a0395d0Smrg
36537a0395d0Smrgfi
36542adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
36557366012aSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
36567366012aSmrgif test $ac_compiler_gnu = yes; then
36577366012aSmrg  GCC=yes
36587366012aSmrgelse
36597366012aSmrg  GCC=
36607366012aSmrgfi
36617a0395d0Smrgac_test_CFLAGS=${CFLAGS+set}
36627a0395d0Smrgac_save_CFLAGS=$CFLAGS
36632adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
36647366012aSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
36652adc0320Smrgif ${ac_cv_prog_cc_g+:} false; then :
36667366012aSmrg  $as_echo_n "(cached) " >&6
36677a0395d0Smrgelse
36687a0395d0Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
36697a0395d0Smrg   ac_c_werror_flag=yes
36707a0395d0Smrg   ac_cv_prog_cc_g=no
36717a0395d0Smrg   CFLAGS="-g"
36722adc0320Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36737a0395d0Smrg/* end confdefs.h.  */
36747a0395d0Smrg
36757a0395d0Smrgint
36767a0395d0Smrgmain ()
36777a0395d0Smrg{
36787a0395d0Smrg
36797a0395d0Smrg  ;
36807a0395d0Smrg  return 0;
36817a0395d0Smrg}
36827a0395d0Smrg_ACEOF
36832adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
36847a0395d0Smrg  ac_cv_prog_cc_g=yes
36857a0395d0Smrgelse
36862adc0320Smrg  CFLAGS=""
36872adc0320Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36887a0395d0Smrg/* end confdefs.h.  */
36897a0395d0Smrg
36907a0395d0Smrgint
36917a0395d0Smrgmain ()
36927a0395d0Smrg{
36937a0395d0Smrg
36947a0395d0Smrg  ;
36957a0395d0Smrg  return 0;
36967a0395d0Smrg}
36977a0395d0Smrg_ACEOF
36982adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
36997a0395d0Smrg
37002adc0320Smrgelse
37012adc0320Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
37027a0395d0Smrg	 CFLAGS="-g"
37032adc0320Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37047a0395d0Smrg/* end confdefs.h.  */
37057a0395d0Smrg
37062adc0320Smrgint
37072adc0320Smrgmain ()
37082adc0320Smrg{
37097a0395d0Smrg
37102adc0320Smrg  ;
37112adc0320Smrg  return 0;
37122adc0320Smrg}
37132adc0320Smrg_ACEOF
37142adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
37152adc0320Smrg  ac_cv_prog_cc_g=yes
37167a0395d0Smrgfi
37177a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37187a0395d0Smrgfi
37197a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37207a0395d0Smrgfi
37217a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37227a0395d0Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
37237a0395d0Smrgfi
37242adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
37257366012aSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
37267a0395d0Smrgif test "$ac_test_CFLAGS" = set; then
37277a0395d0Smrg  CFLAGS=$ac_save_CFLAGS
37287a0395d0Smrgelif test $ac_cv_prog_cc_g = yes; then
37297a0395d0Smrg  if test "$GCC" = yes; then
37307a0395d0Smrg    CFLAGS="-g -O2"
37317a0395d0Smrg  else
37327a0395d0Smrg    CFLAGS="-g"
37337a0395d0Smrg  fi
37347a0395d0Smrgelse
37357a0395d0Smrg  if test "$GCC" = yes; then
37367a0395d0Smrg    CFLAGS="-O2"
37377a0395d0Smrg  else
37387a0395d0Smrg    CFLAGS=
37397a0395d0Smrg  fi
37407a0395d0Smrgfi
37412adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
37427366012aSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
37432adc0320Smrgif ${ac_cv_prog_cc_c89+:} false; then :
37447366012aSmrg  $as_echo_n "(cached) " >&6
37457a0395d0Smrgelse
37467a0395d0Smrg  ac_cv_prog_cc_c89=no
37477a0395d0Smrgac_save_CC=$CC
37482adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
37497a0395d0Smrg/* end confdefs.h.  */
37507a0395d0Smrg#include <stdarg.h>
37517a0395d0Smrg#include <stdio.h>
37528abc0ccfSmrgstruct stat;
37537a0395d0Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
37547a0395d0Smrgstruct buf { int x; };
37557a0395d0SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
37567a0395d0Smrgstatic char *e (p, i)
37577a0395d0Smrg     char **p;
37587a0395d0Smrg     int i;
37597a0395d0Smrg{
37607a0395d0Smrg  return p[i];
37617a0395d0Smrg}
37627a0395d0Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
37637a0395d0Smrg{
37647a0395d0Smrg  char *s;
37657a0395d0Smrg  va_list v;
37667a0395d0Smrg  va_start (v,p);
37677a0395d0Smrg  s = g (p, va_arg (v,int));
37687a0395d0Smrg  va_end (v);
37697a0395d0Smrg  return s;
37707a0395d0Smrg}
37717a0395d0Smrg
37727a0395d0Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
37737a0395d0Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
37747a0395d0Smrg   These don't provoke an error unfortunately, instead are silently treated
37757a0395d0Smrg   as 'x'.  The following induces an error, until -std is added to get
37767a0395d0Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
37777a0395d0Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
37787a0395d0Smrg   that's true only with -std.  */
37797a0395d0Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
37807a0395d0Smrg
37817a0395d0Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
37827a0395d0Smrg   inside strings and character constants.  */
37837a0395d0Smrg#define FOO(x) 'x'
37847a0395d0Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
37857a0395d0Smrg
37867a0395d0Smrgint test (int i, double x);
37877a0395d0Smrgstruct s1 {int (*f) (int a);};
37887a0395d0Smrgstruct s2 {int (*f) (double a);};
37897a0395d0Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
37907a0395d0Smrgint argc;
37917a0395d0Smrgchar **argv;
37927a0395d0Smrgint
37937a0395d0Smrgmain ()
37947a0395d0Smrg{
37957a0395d0Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
37967a0395d0Smrg  ;
37977a0395d0Smrg  return 0;
37987a0395d0Smrg}
37997a0395d0Smrg_ACEOF
38007a0395d0Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
38017a0395d0Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
38027a0395d0Smrgdo
38037a0395d0Smrg  CC="$ac_save_CC $ac_arg"
38042adc0320Smrg  if ac_fn_c_try_compile "$LINENO"; then :
38057a0395d0Smrg  ac_cv_prog_cc_c89=$ac_arg
38067a0395d0Smrgfi
38077a0395d0Smrgrm -f core conftest.err conftest.$ac_objext
38087a0395d0Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
38097a0395d0Smrgdone
38107a0395d0Smrgrm -f conftest.$ac_ext
38117a0395d0SmrgCC=$ac_save_CC
38127a0395d0Smrg
38137a0395d0Smrgfi
38147a0395d0Smrg# AC_CACHE_VAL
38157a0395d0Smrgcase "x$ac_cv_prog_cc_c89" in
38167a0395d0Smrg  x)
38172adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
38187366012aSmrg$as_echo "none needed" >&6; } ;;
38197a0395d0Smrg  xno)
38202adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
38217366012aSmrg$as_echo "unsupported" >&6; } ;;
38227a0395d0Smrg  *)
38237a0395d0Smrg    CC="$CC $ac_cv_prog_cc_c89"
38242adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
38257366012aSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
38267a0395d0Smrgesac
38272adc0320Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
38287a0395d0Smrg
38292adc0320Smrgfi
38307a0395d0Smrg
38317a0395d0Smrgac_ext=c
38327a0395d0Smrgac_cpp='$CPP $CPPFLAGS'
38337a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38347a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38357a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
38367a0395d0Smrg
38377a0395d0Smrgdepcc="$CC"   am_compiler_list=
38387a0395d0Smrg
38392adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
38407366012aSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
38412adc0320Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
38427366012aSmrg  $as_echo_n "(cached) " >&6
38437a0395d0Smrgelse
38447a0395d0Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
38457a0395d0Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
38467a0395d0Smrg  # making bogus files that we don't know about and never remove.  For
38477a0395d0Smrg  # instance it was reported that on HP-UX the gcc test will end up
38488abc0ccfSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
38498abc0ccfSmrg  # in D".
38508abc0ccfSmrg  rm -rf conftest.dir
38517a0395d0Smrg  mkdir conftest.dir
38527a0395d0Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
38537a0395d0Smrg  # using a relative directory.
38547a0395d0Smrg  cp "$am_depcomp" conftest.dir
38557a0395d0Smrg  cd conftest.dir
38567a0395d0Smrg  # We will build objects and dependencies in a subdirectory because
38577a0395d0Smrg  # it helps to detect inapplicable dependency modes.  For instance
38587a0395d0Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
38597a0395d0Smrg  # side effect of compilation, but ICC will put the dependencies in
38607a0395d0Smrg  # the current directory while Tru64 will put them in the object
38617a0395d0Smrg  # directory.
38627a0395d0Smrg  mkdir sub
38637a0395d0Smrg
38647a0395d0Smrg  am_cv_CC_dependencies_compiler_type=none
38657a0395d0Smrg  if test "$am_compiler_list" = ""; then
38667a0395d0Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
38677a0395d0Smrg  fi
38687366012aSmrg  am__universal=false
38697366012aSmrg  case " $depcc " in #(
38707366012aSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
38717366012aSmrg     esac
38727366012aSmrg
38737a0395d0Smrg  for depmode in $am_compiler_list; do
38747a0395d0Smrg    # Setup a source with many dependencies, because some compilers
38757a0395d0Smrg    # like to wrap large dependency lists on column 80 (with \), and
38767a0395d0Smrg    # we should not choose a depcomp mode which is confused by this.
38777a0395d0Smrg    #
38787a0395d0Smrg    # We need to recreate these files for each test, as the compiler may
38797a0395d0Smrg    # overwrite some of them when testing with obscure command lines.
38807a0395d0Smrg    # This happens at least with the AIX C compiler.
38817a0395d0Smrg    : > sub/conftest.c
38827a0395d0Smrg    for i in 1 2 3 4 5 6; do
38837a0395d0Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
38848abc0ccfSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
38858abc0ccfSmrg      # Solaris 10 /bin/sh.
38868abc0ccfSmrg      echo '/* dummy */' > sub/conftst$i.h
38877a0395d0Smrg    done
38887a0395d0Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
38897a0395d0Smrg
38908abc0ccfSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
38912adc0320Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
38928abc0ccfSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
38938abc0ccfSmrg    # versions had trouble with output in subdirs.
38942adc0320Smrg    am__obj=sub/conftest.${OBJEXT-o}
38952adc0320Smrg    am__minus_obj="-o $am__obj"
38962adc0320Smrg    case $depmode in
38972adc0320Smrg    gcc)
38982adc0320Smrg      # This depmode causes a compiler race in universal mode.
38992adc0320Smrg      test "$am__universal" = false || continue
39002adc0320Smrg      ;;
39012adc0320Smrg    nosideeffect)
39028abc0ccfSmrg      # After this tag, mechanisms are not by side-effect, so they'll
39038abc0ccfSmrg      # only be used when explicitly requested.
39042adc0320Smrg      if test "x$enable_dependency_tracking" = xyes; then
39052adc0320Smrg	continue
39062adc0320Smrg      else
39072adc0320Smrg	break
39082adc0320Smrg      fi
39092adc0320Smrg      ;;
39108abc0ccfSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
39118abc0ccfSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
39122adc0320Smrg      # not run yet.  These depmodes are late enough in the game, and
39132adc0320Smrg      # so weak that their functioning should not be impacted.
39142adc0320Smrg      am__obj=conftest.${OBJEXT-o}
39152adc0320Smrg      am__minus_obj=
39162adc0320Smrg      ;;
39172adc0320Smrg    none) break ;;
39182adc0320Smrg    esac
39192adc0320Smrg    if depmode=$depmode \
39202adc0320Smrg       source=sub/conftest.c object=$am__obj \
39212adc0320Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
39222adc0320Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
39232adc0320Smrg         >/dev/null 2>conftest.err &&
39242adc0320Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
39252adc0320Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
39262adc0320Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
39272adc0320Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
39282adc0320Smrg      # icc doesn't choke on unknown options, it will just issue warnings
39292adc0320Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
39302adc0320Smrg      # that says an option was ignored or not supported.
39312adc0320Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
39322adc0320Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
39332adc0320Smrg      # The diagnosis changed in icc 8.0:
39342adc0320Smrg      #   icc: Command line remark: option '-MP' not supported
39352adc0320Smrg      if (grep 'ignoring option' conftest.err ||
39362adc0320Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
39372adc0320Smrg        am_cv_CC_dependencies_compiler_type=$depmode
39382adc0320Smrg        break
39392adc0320Smrg      fi
39402adc0320Smrg    fi
39412adc0320Smrg  done
39422adc0320Smrg
39432adc0320Smrg  cd ..
39442adc0320Smrg  rm -rf conftest.dir
39452adc0320Smrgelse
39462adc0320Smrg  am_cv_CC_dependencies_compiler_type=none
39472adc0320Smrgfi
39482adc0320Smrg
39492adc0320Smrgfi
39502adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
39512adc0320Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
39522adc0320SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
39532adc0320Smrg
39542adc0320Smrg if
39552adc0320Smrg  test "x$enable_dependency_tracking" != xno \
39562adc0320Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
39572adc0320Smrg  am__fastdepCC_TRUE=
39582adc0320Smrg  am__fastdepCC_FALSE='#'
39592adc0320Smrgelse
39602adc0320Smrg  am__fastdepCC_TRUE='#'
39612adc0320Smrg  am__fastdepCC_FALSE=
39622adc0320Smrgfi
39632adc0320Smrg
39642adc0320Smrg
39659a011757Smrg
39669a011757Smrgac_ext=c
39679a011757Smrgac_cpp='$CPP $CPPFLAGS'
39689a011757Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39699a011757Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39709a011757Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
39719a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
39729a011757Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
39739a011757Smrg# On Suns, sometimes $CPP names a directory.
39749a011757Smrgif test -n "$CPP" && test -d "$CPP"; then
39759a011757Smrg  CPP=
39769a011757Smrgfi
39779a011757Smrgif test -z "$CPP"; then
39789a011757Smrg  if ${ac_cv_prog_CPP+:} false; then :
39792adc0320Smrg  $as_echo_n "(cached) " >&6
39802adc0320Smrgelse
39819a011757Smrg      # Double quotes because CPP needs to be expanded
39829a011757Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
39839a011757Smrg    do
39849a011757Smrg      ac_preproc_ok=false
39859a011757Smrgfor ac_c_preproc_warn_flag in '' yes
39869a011757Smrgdo
39879a011757Smrg  # Use a header file that comes with gcc, so configuring glibc
39889a011757Smrg  # with a fresh cross-compiler works.
39899a011757Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39909a011757Smrg  # <limits.h> exists even on freestanding compilers.
39919a011757Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
39929a011757Smrg  # not just through cpp. "Syntax error" is here to catch this case.
39939a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39942adc0320Smrg/* end confdefs.h.  */
39959a011757Smrg#ifdef __STDC__
39969a011757Smrg# include <limits.h>
39972adc0320Smrg#else
39989a011757Smrg# include <assert.h>
39992adc0320Smrg#endif
40009a011757Smrg		     Syntax error
40019a011757Smrg_ACEOF
40029a011757Smrgif ac_fn_c_try_cpp "$LINENO"; then :
40032adc0320Smrg
40049a011757Smrgelse
40059a011757Smrg  # Broken: fails on valid input.
40069a011757Smrgcontinue
40079a011757Smrgfi
40089a011757Smrgrm -f conftest.err conftest.i conftest.$ac_ext
40092adc0320Smrg
40109a011757Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
40119a011757Smrg  # can be detected and how.
40129a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40139a011757Smrg/* end confdefs.h.  */
40149a011757Smrg#include <ac_nonexistent.h>
40159a011757Smrg_ACEOF
40169a011757Smrgif ac_fn_c_try_cpp "$LINENO"; then :
40179a011757Smrg  # Broken: success on invalid input.
40189a011757Smrgcontinue
40199a011757Smrgelse
40209a011757Smrg  # Passes both tests.
40219a011757Smrgac_preproc_ok=:
40229a011757Smrgbreak
40239a011757Smrgfi
40249a011757Smrgrm -f conftest.err conftest.i conftest.$ac_ext
40252adc0320Smrg
40269a011757Smrgdone
40279a011757Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
40289a011757Smrgrm -f conftest.i conftest.err conftest.$ac_ext
40299a011757Smrgif $ac_preproc_ok; then :
40309a011757Smrg  break
40319a011757Smrgfi
40322adc0320Smrg
40339a011757Smrg    done
40349a011757Smrg    ac_cv_prog_CPP=$CPP
40357a0395d0Smrg
40367a0395d0Smrgfi
40377a0395d0Smrg  CPP=$ac_cv_prog_CPP
40387a0395d0Smrgelse
40397a0395d0Smrg  ac_cv_prog_CPP=$CPP
40407a0395d0Smrgfi
40412adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
40427366012aSmrg$as_echo "$CPP" >&6; }
40437a0395d0Smrgac_preproc_ok=false
40447a0395d0Smrgfor ac_c_preproc_warn_flag in '' yes
40457a0395d0Smrgdo
40467a0395d0Smrg  # Use a header file that comes with gcc, so configuring glibc
40477a0395d0Smrg  # with a fresh cross-compiler works.
40487a0395d0Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40497a0395d0Smrg  # <limits.h> exists even on freestanding compilers.
40502adc0320Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
40512adc0320Smrg  # not just through cpp. "Syntax error" is here to catch this case.
40522adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40532adc0320Smrg/* end confdefs.h.  */
40542adc0320Smrg#ifdef __STDC__
40552adc0320Smrg# include <limits.h>
40562adc0320Smrg#else
40572adc0320Smrg# include <assert.h>
40582adc0320Smrg#endif
40592adc0320Smrg		     Syntax error
40602adc0320Smrg_ACEOF
40612adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then :
40627a0395d0Smrg
40632adc0320Smrgelse
40647a0395d0Smrg  # Broken: fails on valid input.
40657a0395d0Smrgcontinue
40667a0395d0Smrgfi
40672adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext
40687a0395d0Smrg
40697a0395d0Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
40707a0395d0Smrg  # can be detected and how.
40712adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40727a0395d0Smrg/* end confdefs.h.  */
40737a0395d0Smrg#include <ac_nonexistent.h>
40747a0395d0Smrg_ACEOF
40752adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then :
40767a0395d0Smrg  # Broken: success on invalid input.
40777a0395d0Smrgcontinue
40787a0395d0Smrgelse
40797a0395d0Smrg  # Passes both tests.
40807a0395d0Smrgac_preproc_ok=:
40817a0395d0Smrgbreak
40827a0395d0Smrgfi
40832adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext
40847a0395d0Smrg
40857a0395d0Smrgdone
40867a0395d0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
40872adc0320Smrgrm -f conftest.i conftest.err conftest.$ac_ext
40882adc0320Smrgif $ac_preproc_ok; then :
40892adc0320Smrg
40907a0395d0Smrgelse
40912adc0320Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40927366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
40932adc0320Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
40942adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
40957a0395d0Smrgfi
40967a0395d0Smrg
40977a0395d0Smrgac_ext=c
40987a0395d0Smrgac_cpp='$CPP $CPPFLAGS'
40997a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41007a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41017a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
41027a0395d0Smrg
41037a0395d0Smrg
41042adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
41057366012aSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
41062adc0320Smrgif ${ac_cv_path_GREP+:} false; then :
41077366012aSmrg  $as_echo_n "(cached) " >&6
41087a0395d0Smrgelse
41097366012aSmrg  if test -z "$GREP"; then
41107a0395d0Smrg  ac_path_GREP_found=false
41117366012aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
41127366012aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41137a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
41147a0395d0Smrgdo
41157a0395d0Smrg  IFS=$as_save_IFS
41167a0395d0Smrg  test -z "$as_dir" && as_dir=.
41172adc0320Smrg    for ac_prog in grep ggrep; do
41187366012aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
41197366012aSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
41208abc0ccfSmrg      as_fn_executable_p "$ac_path_GREP" || continue
41217366012aSmrg# Check for GNU ac_path_GREP and select it if it is found.
41227a0395d0Smrg  # Check for GNU $ac_path_GREP
41237a0395d0Smrgcase `"$ac_path_GREP" --version 2>&1` in
41247a0395d0Smrg*GNU*)
41257a0395d0Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
41267a0395d0Smrg*)
41277a0395d0Smrg  ac_count=0
41287366012aSmrg  $as_echo_n 0123456789 >"conftest.in"
41297a0395d0Smrg  while :
41307a0395d0Smrg  do
41317a0395d0Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
41327a0395d0Smrg    mv "conftest.tmp" "conftest.in"
41337a0395d0Smrg    cp "conftest.in" "conftest.nl"
41347366012aSmrg    $as_echo 'GREP' >> "conftest.nl"
41357a0395d0Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
41367a0395d0Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
41372adc0320Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
41387a0395d0Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
41397a0395d0Smrg      # Best one so far, save it but keep looking for a better one
41407a0395d0Smrg      ac_cv_path_GREP="$ac_path_GREP"
41417a0395d0Smrg      ac_path_GREP_max=$ac_count
41427a0395d0Smrg    fi
41437a0395d0Smrg    # 10*(2^10) chars as input seems more than enough
41447a0395d0Smrg    test $ac_count -gt 10 && break
41457a0395d0Smrg  done
41467a0395d0Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
41477a0395d0Smrgesac
41487a0395d0Smrg
41497366012aSmrg      $ac_path_GREP_found && break 3
41507366012aSmrg    done
41517a0395d0Smrg  done
41522adc0320Smrg  done
41537a0395d0SmrgIFS=$as_save_IFS
41547366012aSmrg  if test -z "$ac_cv_path_GREP"; then
41552adc0320Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
41567366012aSmrg  fi
41577a0395d0Smrgelse
41587a0395d0Smrg  ac_cv_path_GREP=$GREP
41597a0395d0Smrgfi
41607a0395d0Smrg
41617a0395d0Smrgfi
41622adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
41637366012aSmrg$as_echo "$ac_cv_path_GREP" >&6; }
41647a0395d0Smrg GREP="$ac_cv_path_GREP"
41657a0395d0Smrg
41667a0395d0Smrg
41672adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
41687366012aSmrg$as_echo_n "checking for egrep... " >&6; }
41692adc0320Smrgif ${ac_cv_path_EGREP+:} false; then :
41707366012aSmrg  $as_echo_n "(cached) " >&6
41717a0395d0Smrgelse
41727a0395d0Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
41737a0395d0Smrg   then ac_cv_path_EGREP="$GREP -E"
41747a0395d0Smrg   else
41757366012aSmrg     if test -z "$EGREP"; then
41767a0395d0Smrg  ac_path_EGREP_found=false
41777366012aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
41787366012aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41797a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
41807a0395d0Smrgdo
41817a0395d0Smrg  IFS=$as_save_IFS
41827a0395d0Smrg  test -z "$as_dir" && as_dir=.
41832adc0320Smrg    for ac_prog in egrep; do
41847366012aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
41857366012aSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
41868abc0ccfSmrg      as_fn_executable_p "$ac_path_EGREP" || continue
41877366012aSmrg# Check for GNU ac_path_EGREP and select it if it is found.
41887a0395d0Smrg  # Check for GNU $ac_path_EGREP
41897a0395d0Smrgcase `"$ac_path_EGREP" --version 2>&1` in
41907a0395d0Smrg*GNU*)
41917a0395d0Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
41927a0395d0Smrg*)
41937a0395d0Smrg  ac_count=0
41947366012aSmrg  $as_echo_n 0123456789 >"conftest.in"
41957a0395d0Smrg  while :
41967a0395d0Smrg  do
41977a0395d0Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
41987a0395d0Smrg    mv "conftest.tmp" "conftest.in"
41997a0395d0Smrg    cp "conftest.in" "conftest.nl"
42007366012aSmrg    $as_echo 'EGREP' >> "conftest.nl"
42017a0395d0Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
42027a0395d0Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
42032adc0320Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
42047a0395d0Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
42057a0395d0Smrg      # Best one so far, save it but keep looking for a better one
42067a0395d0Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
42077a0395d0Smrg      ac_path_EGREP_max=$ac_count
42087a0395d0Smrg    fi
42097a0395d0Smrg    # 10*(2^10) chars as input seems more than enough
42107a0395d0Smrg    test $ac_count -gt 10 && break
42117a0395d0Smrg  done
42127a0395d0Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
42137a0395d0Smrgesac
42147a0395d0Smrg
42157366012aSmrg      $ac_path_EGREP_found && break 3
42167366012aSmrg    done
42177a0395d0Smrg  done
42182adc0320Smrg  done
42197a0395d0SmrgIFS=$as_save_IFS
42207366012aSmrg  if test -z "$ac_cv_path_EGREP"; then
42212adc0320Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
42227366012aSmrg  fi
42237a0395d0Smrgelse
42247a0395d0Smrg  ac_cv_path_EGREP=$EGREP
42257a0395d0Smrgfi
42267a0395d0Smrg
42277a0395d0Smrg   fi
42287a0395d0Smrgfi
42292adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
42307366012aSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
42317a0395d0Smrg EGREP="$ac_cv_path_EGREP"
42327a0395d0Smrg
42337a0395d0Smrg
42349a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
42359a011757Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
42369a011757Smrgif ${ac_cv_header_stdc+:} false; then :
42379a011757Smrg  $as_echo_n "(cached) " >&6
42389a011757Smrgelse
42399a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42409a011757Smrg/* end confdefs.h.  */
42419a011757Smrg#include <stdlib.h>
42429a011757Smrg#include <stdarg.h>
42439a011757Smrg#include <string.h>
42449a011757Smrg#include <float.h>
42459a011757Smrg
42469a011757Smrgint
42479a011757Smrgmain ()
42489a011757Smrg{
42499a011757Smrg
42509a011757Smrg  ;
42519a011757Smrg  return 0;
42529a011757Smrg}
42539a011757Smrg_ACEOF
42549a011757Smrgif ac_fn_c_try_compile "$LINENO"; then :
42559a011757Smrg  ac_cv_header_stdc=yes
42569a011757Smrgelse
42579a011757Smrg  ac_cv_header_stdc=no
42589a011757Smrgfi
42599a011757Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42609a011757Smrg
42619a011757Smrgif test $ac_cv_header_stdc = yes; then
42629a011757Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
42639a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42649a011757Smrg/* end confdefs.h.  */
42659a011757Smrg#include <string.h>
42669a011757Smrg
42679a011757Smrg_ACEOF
42689a011757Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42699a011757Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
42709a011757Smrg
42719a011757Smrgelse
42729a011757Smrg  ac_cv_header_stdc=no
42739a011757Smrgfi
42749a011757Smrgrm -f conftest*
42759a011757Smrg
42769a011757Smrgfi
42779a011757Smrg
42789a011757Smrgif test $ac_cv_header_stdc = yes; then
42799a011757Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
42809a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42819a011757Smrg/* end confdefs.h.  */
42829a011757Smrg#include <stdlib.h>
42839a011757Smrg
42849a011757Smrg_ACEOF
42859a011757Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42869a011757Smrg  $EGREP "free" >/dev/null 2>&1; then :
42879a011757Smrg
42889a011757Smrgelse
42899a011757Smrg  ac_cv_header_stdc=no
42909a011757Smrgfi
42919a011757Smrgrm -f conftest*
42929a011757Smrg
42939a011757Smrgfi
42949a011757Smrg
42959a011757Smrgif test $ac_cv_header_stdc = yes; then
42969a011757Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
42979a011757Smrg  if test "$cross_compiling" = yes; then :
42989a011757Smrg  :
42999a011757Smrgelse
43009a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43019a011757Smrg/* end confdefs.h.  */
43029a011757Smrg#include <ctype.h>
43039a011757Smrg#include <stdlib.h>
43049a011757Smrg#if ((' ' & 0x0FF) == 0x020)
43059a011757Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
43069a011757Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
43079a011757Smrg#else
43089a011757Smrg# define ISLOWER(c) \
43099a011757Smrg		   (('a' <= (c) && (c) <= 'i') \
43109a011757Smrg		     || ('j' <= (c) && (c) <= 'r') \
43119a011757Smrg		     || ('s' <= (c) && (c) <= 'z'))
43129a011757Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
43139a011757Smrg#endif
43149a011757Smrg
43159a011757Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
43169a011757Smrgint
43179a011757Smrgmain ()
43189a011757Smrg{
43199a011757Smrg  int i;
43209a011757Smrg  for (i = 0; i < 256; i++)
43219a011757Smrg    if (XOR (islower (i), ISLOWER (i))
43229a011757Smrg	|| toupper (i) != TOUPPER (i))
43239a011757Smrg      return 2;
43249a011757Smrg  return 0;
43259a011757Smrg}
43269a011757Smrg_ACEOF
43279a011757Smrgif ac_fn_c_try_run "$LINENO"; then :
43289a011757Smrg
43299a011757Smrgelse
43309a011757Smrg  ac_cv_header_stdc=no
43319a011757Smrgfi
43329a011757Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43339a011757Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
43349a011757Smrgfi
43359a011757Smrg
43369a011757Smrgfi
43379a011757Smrgfi
43389a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
43399a011757Smrg$as_echo "$ac_cv_header_stdc" >&6; }
43409a011757Smrgif test $ac_cv_header_stdc = yes; then
43419a011757Smrg
43429a011757Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
43439a011757Smrg
43449a011757Smrgfi
43459a011757Smrg
43469a011757Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
43479a011757Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
43489a011757Smrg		  inttypes.h stdint.h unistd.h
43499a011757Smrgdo :
43509a011757Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43519a011757Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
43529a011757Smrg"
43539a011757Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
43549a011757Smrg  cat >>confdefs.h <<_ACEOF
43559a011757Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43569a011757Smrg_ACEOF
43579a011757Smrg
43589a011757Smrgfi
43599a011757Smrg
43609a011757Smrgdone
43619a011757Smrg
43629a011757Smrg
43639a011757Smrg
43649a011757Smrg  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
43659a011757Smrgif test "x$ac_cv_header_minix_config_h" = xyes; then :
43669a011757Smrg  MINIX=yes
43679a011757Smrgelse
43689a011757Smrg  MINIX=
43699a011757Smrgfi
43709a011757Smrg
43719a011757Smrg
43729a011757Smrg  if test "$MINIX" = yes; then
43739a011757Smrg
43749a011757Smrg$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
43759a011757Smrg
43769a011757Smrg
43779a011757Smrg$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
43789a011757Smrg
43799a011757Smrg
43809a011757Smrg$as_echo "#define _MINIX 1" >>confdefs.h
43819a011757Smrg
43829a011757Smrg  fi
43839a011757Smrg
43849a011757Smrg
43859a011757Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
43869a011757Smrg$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
43879a011757Smrgif ${ac_cv_safe_to_define___extensions__+:} false; then :
43889a011757Smrg  $as_echo_n "(cached) " >&6
43899a011757Smrgelse
43909a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43919a011757Smrg/* end confdefs.h.  */
43929a011757Smrg
43939a011757Smrg#         define __EXTENSIONS__ 1
43949a011757Smrg          $ac_includes_default
43959a011757Smrgint
43969a011757Smrgmain ()
43979a011757Smrg{
43989a011757Smrg
43999a011757Smrg  ;
44009a011757Smrg  return 0;
44019a011757Smrg}
44029a011757Smrg_ACEOF
44039a011757Smrgif ac_fn_c_try_compile "$LINENO"; then :
44049a011757Smrg  ac_cv_safe_to_define___extensions__=yes
44059a011757Smrgelse
44069a011757Smrg  ac_cv_safe_to_define___extensions__=no
44079a011757Smrgfi
44089a011757Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44099a011757Smrgfi
44109a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
44119a011757Smrg$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
44129a011757Smrg  test $ac_cv_safe_to_define___extensions__ = yes &&
44139a011757Smrg    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
44149a011757Smrg
44159a011757Smrg  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
44169a011757Smrg
44179a011757Smrg  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
44189a011757Smrg
44199a011757Smrg  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
44209a011757Smrg
44219a011757Smrg  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
44229a011757Smrg
44239a011757Smrg
44249a011757Smrg
44259a011757Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
44269a011757Smrg
44279a011757Smrg
44289a011757Smrg
44299a011757Smrg
44309a011757Smrg
44319a011757Smrg
44329a011757Smrg
44339a011757Smrg
44349a011757Smrg
44359a011757Smrg
44369a011757Smrg
44379a011757Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
44389a011757Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
44399a011757Smrgif ${ac_cv_prog_cc_c99+:} false; then :
44409a011757Smrg  $as_echo_n "(cached) " >&6
44419a011757Smrgelse
44429a011757Smrg  ac_cv_prog_cc_c99=no
44439a011757Smrgac_save_CC=$CC
44449a011757Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
44459a011757Smrg/* end confdefs.h.  */
44469a011757Smrg#include <stdarg.h>
44479a011757Smrg#include <stdbool.h>
44489a011757Smrg#include <stdlib.h>
44499a011757Smrg#include <wchar.h>
44509a011757Smrg#include <stdio.h>
44519a011757Smrg
44529a011757Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
44539a011757Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
44549a011757Smrg#define showlist(...) puts (#__VA_ARGS__)
44559a011757Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
44569a011757Smrgstatic void
44579a011757Smrgtest_varargs_macros (void)
44589a011757Smrg{
44599a011757Smrg  int x = 1234;
44609a011757Smrg  int y = 5678;
44619a011757Smrg  debug ("Flag");
44629a011757Smrg  debug ("X = %d\n", x);
44639a011757Smrg  showlist (The first, second, and third items.);
44649a011757Smrg  report (x>y, "x is %d but y is %d", x, y);
44659a011757Smrg}
44669a011757Smrg
44679a011757Smrg// Check long long types.
44689a011757Smrg#define BIG64 18446744073709551615ull
44699a011757Smrg#define BIG32 4294967295ul
44709a011757Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
44719a011757Smrg#if !BIG_OK
44729a011757Smrg  your preprocessor is broken;
44739a011757Smrg#endif
44749a011757Smrg#if BIG_OK
44759a011757Smrg#else
44769a011757Smrg  your preprocessor is broken;
44779a011757Smrg#endif
44789a011757Smrgstatic long long int bignum = -9223372036854775807LL;
44799a011757Smrgstatic unsigned long long int ubignum = BIG64;
44809a011757Smrg
44819a011757Smrgstruct incomplete_array
44829a011757Smrg{
44839a011757Smrg  int datasize;
44849a011757Smrg  double data[];
44859a011757Smrg};
44869a011757Smrg
44879a011757Smrgstruct named_init {
44889a011757Smrg  int number;
44899a011757Smrg  const wchar_t *name;
44909a011757Smrg  double average;
44919a011757Smrg};
44929a011757Smrg
44939a011757Smrgtypedef const char *ccp;
44949a011757Smrg
44959a011757Smrgstatic inline int
44969a011757Smrgtest_restrict (ccp restrict text)
44979a011757Smrg{
44989a011757Smrg  // See if C++-style comments work.
44999a011757Smrg  // Iterate through items via the restricted pointer.
45009a011757Smrg  // Also check for declarations in for loops.
45019a011757Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
45029a011757Smrg    continue;
45039a011757Smrg  return 0;
45049a011757Smrg}
45057a0395d0Smrg
45069a011757Smrg// Check varargs and va_copy.
45079a011757Smrgstatic void
45089a011757Smrgtest_varargs (const char *format, ...)
45097a0395d0Smrg{
45109a011757Smrg  va_list args;
45119a011757Smrg  va_start (args, format);
45129a011757Smrg  va_list args_copy;
45139a011757Smrg  va_copy (args_copy, args);
45147a0395d0Smrg
45159a011757Smrg  const char *str;
45169a011757Smrg  int number;
45179a011757Smrg  float fnumber;
45189a011757Smrg
45199a011757Smrg  while (*format)
45209a011757Smrg    {
45219a011757Smrg      switch (*format++)
45229a011757Smrg	{
45239a011757Smrg	case 's': // string
45249a011757Smrg	  str = va_arg (args_copy, const char *);
45259a011757Smrg	  break;
45269a011757Smrg	case 'd': // int
45279a011757Smrg	  number = va_arg (args_copy, int);
45289a011757Smrg	  break;
45299a011757Smrg	case 'f': // float
45309a011757Smrg	  fnumber = va_arg (args_copy, double);
45319a011757Smrg	  break;
45329a011757Smrg	default:
45339a011757Smrg	  break;
45349a011757Smrg	}
45359a011757Smrg    }
45369a011757Smrg  va_end (args_copy);
45379a011757Smrg  va_end (args);
45387a0395d0Smrg}
45397a0395d0Smrg
45409a011757Smrgint
45419a011757Smrgmain ()
45429a011757Smrg{
45437a0395d0Smrg
45449a011757Smrg  // Check bool.
45459a011757Smrg  _Bool success = false;
45462adc0320Smrg
45479a011757Smrg  // Check restrict.
45489a011757Smrg  if (test_restrict ("String literal") == 0)
45499a011757Smrg    success = true;
45509a011757Smrg  char *restrict newvar = "Another string";
45517a0395d0Smrg
45529a011757Smrg  // Check varargs.
45539a011757Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
45549a011757Smrg  test_varargs_macros ();
45557a0395d0Smrg
45569a011757Smrg  // Check flexible array members.
45579a011757Smrg  struct incomplete_array *ia =
45589a011757Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
45599a011757Smrg  ia->datasize = 10;
45609a011757Smrg  for (int i = 0; i < ia->datasize; ++i)
45619a011757Smrg    ia->data[i] = i * 1.234;
45627a0395d0Smrg
45639a011757Smrg  // Check named initializers.
45649a011757Smrg  struct named_init ni = {
45659a011757Smrg    .number = 34,
45669a011757Smrg    .name = L"Test wide string",
45679a011757Smrg    .average = 543.34343,
45689a011757Smrg  };
45692adc0320Smrg
45709a011757Smrg  ni.number = 58;
45717a0395d0Smrg
45729a011757Smrg  int dynamic_array[ni.number];
45739a011757Smrg  dynamic_array[ni.number - 1] = 543;
45747a0395d0Smrg
45759a011757Smrg  // work around unused variable warnings
45769a011757Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
45779a011757Smrg	  || dynamic_array[ni.number - 1] != 543);
45787a0395d0Smrg
45799a011757Smrg  ;
45807a0395d0Smrg  return 0;
45817a0395d0Smrg}
45827a0395d0Smrg_ACEOF
45839a011757Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
45849a011757Smrgdo
45859a011757Smrg  CC="$ac_save_CC $ac_arg"
45869a011757Smrg  if ac_fn_c_try_compile "$LINENO"; then :
45879a011757Smrg  ac_cv_prog_cc_c99=$ac_arg
45887a0395d0Smrgfi
45899a011757Smrgrm -f core conftest.err conftest.$ac_objext
45909a011757Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
45919a011757Smrgdone
45929a011757Smrgrm -f conftest.$ac_ext
45939a011757SmrgCC=$ac_save_CC
45947366012aSmrg
45957366012aSmrgfi
45969a011757Smrg# AC_CACHE_VAL
45979a011757Smrgcase "x$ac_cv_prog_cc_c99" in
45989a011757Smrg  x)
45999a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
46009a011757Smrg$as_echo "none needed" >&6; } ;;
46019a011757Smrg  xno)
46029a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
46039a011757Smrg$as_echo "unsupported" >&6; } ;;
46049a011757Smrg  *)
46059a011757Smrg    CC="$CC $ac_cv_prog_cc_c99"
46069a011757Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
46079a011757Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
46089a011757Smrgesac
46099a011757Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
46107366012aSmrg
46117366012aSmrgfi
46127366012aSmrg
46137366012aSmrg
46147366012aSmrg
46157366012aSmrg
46162852888eSmrg
46172852888eSmrg
461896402570Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
461996402570Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
462096402570Smrg  CLANGCC="yes"
462196402570Smrgelse
462296402570Smrg  CLANGCC="no"
462396402570Smrgfi
462496402570Smrg
462596402570Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
462696402570Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
462796402570Smrg  INTELCC="yes"
462896402570Smrgelse
462996402570Smrg  INTELCC="no"
463096402570Smrgfi
463196402570Smrg
463296402570Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
463396402570Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
463496402570Smrg  SUNCC="yes"
463596402570Smrgelse
463696402570Smrg  SUNCC="no"
463796402570Smrgfi
463896402570Smrg
463996402570Smrg
46402852888eSmrg
46412852888eSmrg
46428abc0ccfSmrg
46438abc0ccfSmrg
46448abc0ccfSmrg
46458abc0ccfSmrg
46468abc0ccfSmrg
46472adc0320Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
46482adc0320Smrg	if test -n "$ac_tool_prefix"; then
46492adc0320Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
46502adc0320Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
46512adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
46522adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; }
46532adc0320Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
46542adc0320Smrg  $as_echo_n "(cached) " >&6
46552adc0320Smrgelse
46562adc0320Smrg  case $PKG_CONFIG in
46572adc0320Smrg  [\\/]* | ?:[\\/]*)
46582adc0320Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
46592adc0320Smrg  ;;
46602adc0320Smrg  *)
46612adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46622adc0320Smrgfor as_dir in $PATH
46637366012aSmrgdo
46642adc0320Smrg  IFS=$as_save_IFS
46652adc0320Smrg  test -z "$as_dir" && as_dir=.
46662adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
46678abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46682adc0320Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46692adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
46702adc0320Smrg    break 2
46712adc0320Smrg  fi
46722adc0320Smrgdone
46732adc0320Smrg  done
46742adc0320SmrgIFS=$as_save_IFS
46752adc0320Smrg
46762adc0320Smrg  ;;
46777366012aSmrgesac
46782adc0320Smrgfi
46792adc0320SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
46802adc0320Smrgif test -n "$PKG_CONFIG"; then
46812adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
46822adc0320Smrg$as_echo "$PKG_CONFIG" >&6; }
46837366012aSmrgelse
46842adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46852adc0320Smrg$as_echo "no" >&6; }
46867366012aSmrgfi
46877366012aSmrg
46887366012aSmrg
46897366012aSmrgfi
46902adc0320Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
46912adc0320Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
46922adc0320Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
46932adc0320Smrgset dummy pkg-config; ac_word=$2
46942adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
46952adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; }
46962adc0320Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
46972adc0320Smrg  $as_echo_n "(cached) " >&6
46982adc0320Smrgelse
46992adc0320Smrg  case $ac_pt_PKG_CONFIG in
47002adc0320Smrg  [\\/]* | ?:[\\/]*)
47012adc0320Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
47022adc0320Smrg  ;;
47037366012aSmrg  *)
47042adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47052adc0320Smrgfor as_dir in $PATH
47062adc0320Smrgdo
47072adc0320Smrg  IFS=$as_save_IFS
47082adc0320Smrg  test -z "$as_dir" && as_dir=.
47092adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
47108abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47112adc0320Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
47122adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47132adc0320Smrg    break 2
47142adc0320Smrg  fi
47152adc0320Smrgdone
47162adc0320Smrg  done
47172adc0320SmrgIFS=$as_save_IFS
47182adc0320Smrg
47192adc0320Smrg  ;;
47207366012aSmrgesac
47212adc0320Smrgfi
47222adc0320Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
47232adc0320Smrgif test -n "$ac_pt_PKG_CONFIG"; then
47242adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
47252adc0320Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
47262adc0320Smrgelse
47272adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47282adc0320Smrg$as_echo "no" >&6; }
47292adc0320Smrgfi
47307366012aSmrg
47312adc0320Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
47322adc0320Smrg    PKG_CONFIG=""
47332adc0320Smrg  else
47342adc0320Smrg    case $cross_compiling:$ac_tool_warned in
47352adc0320Smrgyes:)
47362adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47372adc0320Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
47382adc0320Smrgac_tool_warned=yes ;;
47392adc0320Smrgesac
47402adc0320Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
47412adc0320Smrg  fi
47422adc0320Smrgelse
47432adc0320Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
47442adc0320Smrgfi
47457366012aSmrg
47462adc0320Smrgfi
47472adc0320Smrgif test -n "$PKG_CONFIG"; then
47482adc0320Smrg	_pkg_min_version=0.9.0
47492adc0320Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
47502adc0320Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
47512adc0320Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
47522adc0320Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47532adc0320Smrg$as_echo "yes" >&6; }
47542adc0320Smrg	else
47552adc0320Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47562adc0320Smrg$as_echo "no" >&6; }
47572adc0320Smrg		PKG_CONFIG=""
47582adc0320Smrg	fi
47592adc0320Smrgfi
47607366012aSmrg# Make sure we can run config.sub.
47617366012aSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
47622adc0320Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
47637366012aSmrg
47642adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
47657366012aSmrg$as_echo_n "checking build system type... " >&6; }
47662adc0320Smrgif ${ac_cv_build+:} false; then :
47677366012aSmrg  $as_echo_n "(cached) " >&6
47687366012aSmrgelse
47697366012aSmrg  ac_build_alias=$build_alias
47707366012aSmrgtest "x$ac_build_alias" = x &&
47717366012aSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
47727366012aSmrgtest "x$ac_build_alias" = x &&
47732adc0320Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
47747366012aSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
47752adc0320Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
47767366012aSmrg
47777366012aSmrgfi
47782adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
47797366012aSmrg$as_echo "$ac_cv_build" >&6; }
47807366012aSmrgcase $ac_cv_build in
47817366012aSmrg*-*-*) ;;
47822adc0320Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
47837366012aSmrgesac
47847366012aSmrgbuild=$ac_cv_build
47857366012aSmrgac_save_IFS=$IFS; IFS='-'
47867366012aSmrgset x $ac_cv_build
47877366012aSmrgshift
47887366012aSmrgbuild_cpu=$1
47897366012aSmrgbuild_vendor=$2
47907366012aSmrgshift; shift
47917366012aSmrg# Remember, the first character of IFS is used to create $*,
47927366012aSmrg# except with old shells:
47937366012aSmrgbuild_os=$*
47947366012aSmrgIFS=$ac_save_IFS
47957366012aSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
47967366012aSmrg
47977366012aSmrg
47982adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
47997366012aSmrg$as_echo_n "checking host system type... " >&6; }
48002adc0320Smrgif ${ac_cv_host+:} false; then :
48017366012aSmrg  $as_echo_n "(cached) " >&6
48027366012aSmrgelse
48037366012aSmrg  if test "x$host_alias" = x; then
48047366012aSmrg  ac_cv_host=$ac_cv_build
48057366012aSmrgelse
48067366012aSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
48072adc0320Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
48087366012aSmrgfi
48097366012aSmrg
48107366012aSmrgfi
48112adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
48127366012aSmrg$as_echo "$ac_cv_host" >&6; }
48137366012aSmrgcase $ac_cv_host in
48147366012aSmrg*-*-*) ;;
48152adc0320Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
48167366012aSmrgesac
48177366012aSmrghost=$ac_cv_host
48187366012aSmrgac_save_IFS=$IFS; IFS='-'
48197366012aSmrgset x $ac_cv_host
48207366012aSmrgshift
48217366012aSmrghost_cpu=$1
48227366012aSmrghost_vendor=$2
48237366012aSmrgshift; shift
48247366012aSmrg# Remember, the first character of IFS is used to create $*,
48257366012aSmrg# except with old shells:
48267366012aSmrghost_os=$*
48277366012aSmrgIFS=$ac_save_IFS
48287366012aSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
48297366012aSmrg
48307366012aSmrg
48312adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
48322adc0320Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
48332adc0320Smrgif ${ac_cv_path_SED+:} false; then :
48347366012aSmrg  $as_echo_n "(cached) " >&6
48357366012aSmrgelse
48362adc0320Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
48372adc0320Smrg     for ac_i in 1 2 3 4 5 6 7; do
48382adc0320Smrg       ac_script="$ac_script$as_nl$ac_script"
48392adc0320Smrg     done
48402adc0320Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
48412adc0320Smrg     { ac_script=; unset ac_script;}
48422adc0320Smrg     if test -z "$SED"; then
48432adc0320Smrg  ac_path_SED_found=false
48442adc0320Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
48452adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48462adc0320Smrgfor as_dir in $PATH
48472adc0320Smrgdo
48482adc0320Smrg  IFS=$as_save_IFS
48492adc0320Smrg  test -z "$as_dir" && as_dir=.
48502adc0320Smrg    for ac_prog in sed gsed; do
48512adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
48522adc0320Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
48538abc0ccfSmrg      as_fn_executable_p "$ac_path_SED" || continue
48542adc0320Smrg# Check for GNU ac_path_SED and select it if it is found.
48552adc0320Smrg  # Check for GNU $ac_path_SED
48562adc0320Smrgcase `"$ac_path_SED" --version 2>&1` in
48572adc0320Smrg*GNU*)
48582adc0320Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
48592adc0320Smrg*)
48602adc0320Smrg  ac_count=0
48612adc0320Smrg  $as_echo_n 0123456789 >"conftest.in"
48622adc0320Smrg  while :
48632adc0320Smrg  do
48642adc0320Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
48652adc0320Smrg    mv "conftest.tmp" "conftest.in"
48662adc0320Smrg    cp "conftest.in" "conftest.nl"
48672adc0320Smrg    $as_echo '' >> "conftest.nl"
48682adc0320Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
48692adc0320Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
48702adc0320Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
48712adc0320Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
48722adc0320Smrg      # Best one so far, save it but keep looking for a better one
48732adc0320Smrg      ac_cv_path_SED="$ac_path_SED"
48742adc0320Smrg      ac_path_SED_max=$ac_count
48752adc0320Smrg    fi
48762adc0320Smrg    # 10*(2^10) chars as input seems more than enough
48772adc0320Smrg    test $ac_count -gt 10 && break
48782adc0320Smrg  done
48792adc0320Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
48807366012aSmrgesac
48817366012aSmrg
48822adc0320Smrg      $ac_path_SED_found && break 3
48832adc0320Smrg    done
48842adc0320Smrg  done
48852adc0320Smrg  done
48862adc0320SmrgIFS=$as_save_IFS
48872adc0320Smrg  if test -z "$ac_cv_path_SED"; then
48882adc0320Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
48892adc0320Smrg  fi
48907366012aSmrgelse
48912adc0320Smrg  ac_cv_path_SED=$SED
48927366012aSmrgfi
48937366012aSmrg
48947366012aSmrgfi
48952adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
48962adc0320Smrg$as_echo "$ac_cv_path_SED" >&6; }
48972adc0320Smrg SED="$ac_cv_path_SED"
48982adc0320Smrg  rm -f conftest.sed
48997366012aSmrg
49007366012aSmrg
49017366012aSmrg
49027366012aSmrg
49037366012aSmrg
49047366012aSmrg
490596402570Smrg# Check whether --enable-selective-werror was given.
490696402570Smrgif test "${enable_selective_werror+set}" = set; then :
490796402570Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
490896402570Smrgelse
490996402570Smrg  SELECTIVE_WERROR=yes
49102adc0320Smrgfi
49112adc0320Smrg
49122adc0320Smrg
49132adc0320Smrg
49147366012aSmrg
49152adc0320Smrg
491696402570Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
491796402570Smrgif test "x$SUNCC" = "xyes"; then
491896402570Smrg    BASE_CFLAGS="-v"
49197366012aSmrgelse
492096402570Smrg    BASE_CFLAGS=""
49217366012aSmrgfi
49227366012aSmrg
492396402570Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
49247366012aSmrg
49257366012aSmrg
49267366012aSmrg
49277366012aSmrg
49287366012aSmrg
49297366012aSmrg
49307366012aSmrg
49317366012aSmrg
49327366012aSmrg
49337366012aSmrg
49342adc0320Smrg
49352adc0320Smrg
49362adc0320Smrg
493796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
49382adc0320Smrg
493996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
494096402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
494196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
494296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
494396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
494496402570Smrg  $as_echo_n "(cached) " >&6
494596402570Smrgelse
494696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
494796402570Smrg/* end confdefs.h.  */
494896402570Smrgint i;
494996402570Smrg_ACEOF
495096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
495196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
495296402570Smrgelse
495396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
495496402570Smrgfi
495596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
495696402570Smrgfi
495796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
495896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
495996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
496096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
496196402570Smrgfi
49627366012aSmrg
496396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
496496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
496596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
496696402570Smrg	fi
496796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
496896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
496996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
497096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
497196402570Smrg  $as_echo_n "(cached) " >&6
497296402570Smrgelse
497396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
497496402570Smrg/* end confdefs.h.  */
497596402570Smrgint i;
497696402570Smrg_ACEOF
497796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
497896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
497996402570Smrgelse
498096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
498196402570Smrgfi
498296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
498396402570Smrgfi
498496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
498596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
498696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
498796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
498896402570Smrgfi
49897366012aSmrg
499096402570Smrgfound="no"
49917366012aSmrg
499296402570Smrg	if test $found = "no" ; then
499396402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
499496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
499596402570Smrg		fi
49967366012aSmrg
499796402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
499896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
499996402570Smrg		fi
50007366012aSmrg
500196402570Smrg		CFLAGS="$CFLAGS -Wall"
50027366012aSmrg
500396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
500496402570Smrg$as_echo_n "checking if $CC supports-Wall... " >&6; }
500596402570Smrg		cacheid=xorg_cv_cc_flag__Wall
500696402570Smrg		if eval \${$cacheid+:} false; then :
500796402570Smrg  $as_echo_n "(cached) " >&6
500896402570Smrgelse
500996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
501096402570Smrg/* end confdefs.h.  */
501196402570Smrgint i;
501296402570Smrgint
501396402570Smrgmain ()
501496402570Smrg{
50157366012aSmrg
501696402570Smrg  ;
501796402570Smrg  return 0;
501896402570Smrg}
501996402570Smrg_ACEOF
502096402570Smrgif ac_fn_c_try_link "$LINENO"; then :
502196402570Smrg  eval $cacheid=yes
502296402570Smrgelse
502396402570Smrg  eval $cacheid=no
50247366012aSmrgfi
502596402570Smrgrm -f core conftest.err conftest.$ac_objext \
502696402570Smrg    conftest$ac_exeext conftest.$ac_ext
50277366012aSmrgfi
50287366012aSmrg
50297366012aSmrg
503096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
50317366012aSmrg
503296402570Smrg		eval supported=\$$cacheid
503396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
503496402570Smrg$as_echo "$supported" >&6; }
503596402570Smrg		if test "$supported" = "yes" ; then
503696402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
503796402570Smrg			found="yes"
503896402570Smrg		fi
503996402570Smrg	fi
50407366012aSmrg
50417366012aSmrg
50427366012aSmrg
50437366012aSmrg
50447366012aSmrg
50457a0395d0Smrg
50467a0395d0Smrg
50477a0395d0Smrg
50487a0395d0Smrg
50497a0395d0Smrg
50507a0395d0Smrg
50517a0395d0Smrg
50527a0395d0Smrg
50537a0395d0Smrg
50547a0395d0Smrg
505596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
50562adc0320Smrg
505796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
505896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
505996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
506096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
506196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
506296402570Smrg  $as_echo_n "(cached) " >&6
506396402570Smrgelse
506496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
506596402570Smrg/* end confdefs.h.  */
506696402570Smrgint i;
506796402570Smrg_ACEOF
506896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
506996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
507096402570Smrgelse
507196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
507296402570Smrgfi
507396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
507496402570Smrgfi
507596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
507696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
507796402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
507896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
507996402570Smrgfi
508096402570Smrg
508196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
508296402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
508396402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
508496402570Smrg	fi
508596402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
508696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
508796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
508896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
508996402570Smrg  $as_echo_n "(cached) " >&6
509096402570Smrgelse
509196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
509296402570Smrg/* end confdefs.h.  */
509396402570Smrgint i;
509496402570Smrg_ACEOF
509596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
509696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
509796402570Smrgelse
509896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
509996402570Smrgfi
510096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
510196402570Smrgfi
510296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
510396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
510496402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
510596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
510696402570Smrgfi
510796402570Smrg
510896402570Smrgfound="no"
510996402570Smrg
511096402570Smrg	if test $found = "no" ; then
511196402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
511296402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
511396402570Smrg		fi
511496402570Smrg
511596402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
511696402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
511796402570Smrg		fi
511896402570Smrg
511996402570Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
512096402570Smrg
512196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
512296402570Smrg$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
512396402570Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
512496402570Smrg		if eval \${$cacheid+:} false; then :
512596402570Smrg  $as_echo_n "(cached) " >&6
512696402570Smrgelse
512796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
512896402570Smrg/* end confdefs.h.  */
512996402570Smrgint i;
513096402570Smrgint
513196402570Smrgmain ()
513296402570Smrg{
513396402570Smrg
513496402570Smrg  ;
513596402570Smrg  return 0;
513696402570Smrg}
513796402570Smrg_ACEOF
513896402570Smrgif ac_fn_c_try_link "$LINENO"; then :
513996402570Smrg  eval $cacheid=yes
514096402570Smrgelse
514196402570Smrg  eval $cacheid=no
514296402570Smrgfi
514396402570Smrgrm -f core conftest.err conftest.$ac_objext \
514496402570Smrg    conftest$ac_exeext conftest.$ac_ext
514596402570Smrgfi
514696402570Smrg
514796402570Smrg
514896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
514996402570Smrg
515096402570Smrg		eval supported=\$$cacheid
515196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
515296402570Smrg$as_echo "$supported" >&6; }
515396402570Smrg		if test "$supported" = "yes" ; then
515496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
515596402570Smrg			found="yes"
515696402570Smrg		fi
515796402570Smrg	fi
515896402570Smrg
515996402570Smrg
516096402570Smrg
516196402570Smrg
516296402570Smrg
516396402570Smrg
516496402570Smrg
516596402570Smrg
516696402570Smrg
516796402570Smrg
516896402570Smrg
516996402570Smrg
517096402570Smrg
517196402570Smrg
517296402570Smrg
517396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
517496402570Smrg
517596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
517696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
517796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
517896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
517996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
518096402570Smrg  $as_echo_n "(cached) " >&6
518196402570Smrgelse
518296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
518396402570Smrg/* end confdefs.h.  */
518496402570Smrgint i;
518596402570Smrg_ACEOF
518696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
518796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
518896402570Smrgelse
518996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
519096402570Smrgfi
519196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
519296402570Smrgfi
519396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
519496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
519596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
519696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
519796402570Smrgfi
519896402570Smrg
519996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
520096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
520196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
520296402570Smrg	fi
520396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
520496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
520596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
520696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
520796402570Smrg  $as_echo_n "(cached) " >&6
520896402570Smrgelse
520996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
521096402570Smrg/* end confdefs.h.  */
521196402570Smrgint i;
521296402570Smrg_ACEOF
521396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
521496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
521596402570Smrgelse
521696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
521796402570Smrgfi
521896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
521996402570Smrgfi
522096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
522196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
522296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
522396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
522496402570Smrgfi
522596402570Smrg
522696402570Smrgfound="no"
522796402570Smrg
522896402570Smrg	if test $found = "no" ; then
522996402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
523096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
523196402570Smrg		fi
523296402570Smrg
523396402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
523496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
523596402570Smrg		fi
523696402570Smrg
523796402570Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
523896402570Smrg
523996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
524096402570Smrg$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
524196402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
524296402570Smrg		if eval \${$cacheid+:} false; then :
524396402570Smrg  $as_echo_n "(cached) " >&6
524496402570Smrgelse
524596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
524696402570Smrg/* end confdefs.h.  */
524796402570Smrgint i;
524896402570Smrgint
524996402570Smrgmain ()
525096402570Smrg{
525196402570Smrg
525296402570Smrg  ;
525396402570Smrg  return 0;
525496402570Smrg}
525596402570Smrg_ACEOF
525696402570Smrgif ac_fn_c_try_link "$LINENO"; then :
525796402570Smrg  eval $cacheid=yes
525896402570Smrgelse
525996402570Smrg  eval $cacheid=no
526096402570Smrgfi
526196402570Smrgrm -f core conftest.err conftest.$ac_objext \
526296402570Smrg    conftest$ac_exeext conftest.$ac_ext
526396402570Smrgfi
526496402570Smrg
526596402570Smrg
526696402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
526796402570Smrg
526896402570Smrg		eval supported=\$$cacheid
526996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
527096402570Smrg$as_echo "$supported" >&6; }
527196402570Smrg		if test "$supported" = "yes" ; then
527296402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
527396402570Smrg			found="yes"
527496402570Smrg		fi
527596402570Smrg	fi
527696402570Smrg
527796402570Smrg
527896402570Smrg
527996402570Smrg
528096402570Smrg
528196402570Smrg
528296402570Smrg
528396402570Smrg
528496402570Smrg
528596402570Smrg
528696402570Smrg
528796402570Smrg
528896402570Smrg
528996402570Smrg
529096402570Smrg
529196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
529296402570Smrg
529396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
529496402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
529596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
529696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
529796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
529896402570Smrg  $as_echo_n "(cached) " >&6
529996402570Smrgelse
530096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
530196402570Smrg/* end confdefs.h.  */
530296402570Smrgint i;
530396402570Smrg_ACEOF
530496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
530596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
530696402570Smrgelse
530796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
530896402570Smrgfi
530996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
531096402570Smrgfi
531196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
531296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
531396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
531496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
531596402570Smrgfi
531696402570Smrg
531796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
531896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
531996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
532096402570Smrg	fi
532196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
532296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
532396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
532496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
532596402570Smrg  $as_echo_n "(cached) " >&6
532696402570Smrgelse
532796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
532896402570Smrg/* end confdefs.h.  */
532996402570Smrgint i;
533096402570Smrg_ACEOF
533196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
533296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
533396402570Smrgelse
533496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
533596402570Smrgfi
533696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
533796402570Smrgfi
533896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
533996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
534096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
534196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
534296402570Smrgfi
534396402570Smrg
534496402570Smrgfound="no"
534596402570Smrg
534696402570Smrg	if test $found = "no" ; then
534796402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
534896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
534996402570Smrg		fi
535096402570Smrg
535196402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
535296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
535396402570Smrg		fi
535496402570Smrg
535596402570Smrg		CFLAGS="$CFLAGS -Wformat=2"
535696402570Smrg
535796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
535896402570Smrg$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
53598abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Wformat_2
536096402570Smrg		if eval \${$cacheid+:} false; then :
536196402570Smrg  $as_echo_n "(cached) " >&6
536296402570Smrgelse
536396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
536496402570Smrg/* end confdefs.h.  */
536596402570Smrgint i;
536696402570Smrgint
536796402570Smrgmain ()
536896402570Smrg{
536996402570Smrg
537096402570Smrg  ;
537196402570Smrg  return 0;
537296402570Smrg}
537396402570Smrg_ACEOF
537496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
537596402570Smrg  eval $cacheid=yes
537696402570Smrgelse
537796402570Smrg  eval $cacheid=no
537896402570Smrgfi
537996402570Smrgrm -f core conftest.err conftest.$ac_objext \
538096402570Smrg    conftest$ac_exeext conftest.$ac_ext
538196402570Smrgfi
538296402570Smrg
538396402570Smrg
538496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
538596402570Smrg
538696402570Smrg		eval supported=\$$cacheid
538796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
538896402570Smrg$as_echo "$supported" >&6; }
538996402570Smrg		if test "$supported" = "yes" ; then
539096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
539196402570Smrg			found="yes"
539296402570Smrg		fi
539396402570Smrg	fi
539496402570Smrg
539596402570Smrg	if test $found = "no" ; then
539696402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
539796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
539896402570Smrg		fi
539996402570Smrg
540096402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
540196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
540296402570Smrg		fi
540396402570Smrg
540496402570Smrg		CFLAGS="$CFLAGS -Wformat"
540596402570Smrg
540696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
540796402570Smrg$as_echo_n "checking if $CC supports-Wformat... " >&6; }
540896402570Smrg		cacheid=xorg_cv_cc_flag__Wformat
540996402570Smrg		if eval \${$cacheid+:} false; then :
541096402570Smrg  $as_echo_n "(cached) " >&6
541196402570Smrgelse
541296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
541396402570Smrg/* end confdefs.h.  */
541496402570Smrgint i;
541596402570Smrgint
541696402570Smrgmain ()
541796402570Smrg{
541896402570Smrg
541996402570Smrg  ;
542096402570Smrg  return 0;
542196402570Smrg}
542296402570Smrg_ACEOF
542396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
542496402570Smrg  eval $cacheid=yes
542596402570Smrgelse
542696402570Smrg  eval $cacheid=no
542796402570Smrgfi
542896402570Smrgrm -f core conftest.err conftest.$ac_objext \
542996402570Smrg    conftest$ac_exeext conftest.$ac_ext
543096402570Smrgfi
543196402570Smrg
543296402570Smrg
543396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
543496402570Smrg
543596402570Smrg		eval supported=\$$cacheid
543696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
543796402570Smrg$as_echo "$supported" >&6; }
543896402570Smrg		if test "$supported" = "yes" ; then
543996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
544096402570Smrg			found="yes"
544196402570Smrg		fi
544296402570Smrg	fi
544396402570Smrg
544496402570Smrg
544596402570Smrg
544696402570Smrg
544796402570Smrg
544896402570Smrg
544996402570Smrg
545096402570Smrg
545196402570Smrg
545296402570Smrg
545396402570Smrg
545496402570Smrg
545596402570Smrg
545696402570Smrg
545796402570Smrg
545896402570Smrg
545996402570Smrg
546096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
546196402570Smrg
546296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
546396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
546496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
546596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
546696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
546796402570Smrg  $as_echo_n "(cached) " >&6
546896402570Smrgelse
546996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
547096402570Smrg/* end confdefs.h.  */
547196402570Smrgint i;
547296402570Smrg_ACEOF
547396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
547496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
547596402570Smrgelse
547696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
547796402570Smrgfi
547896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
547996402570Smrgfi
548096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
548196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
548296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
548396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
548496402570Smrgfi
548596402570Smrg
548696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
548796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
548896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
548996402570Smrg	fi
549096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
549196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
549296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
549396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
549496402570Smrg  $as_echo_n "(cached) " >&6
549596402570Smrgelse
549696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
549796402570Smrg/* end confdefs.h.  */
549896402570Smrgint i;
549996402570Smrg_ACEOF
550096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
550196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
550296402570Smrgelse
550396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
550496402570Smrgfi
550596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
550696402570Smrgfi
550796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
550896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
550996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
551096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
551196402570Smrgfi
551296402570Smrg
551396402570Smrgfound="no"
551496402570Smrg
551596402570Smrg	if test $found = "no" ; then
551696402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
551796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
551896402570Smrg		fi
551996402570Smrg
552096402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
552196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
552296402570Smrg		fi
552396402570Smrg
552496402570Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
552596402570Smrg
552696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
552796402570Smrg$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
552896402570Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
552996402570Smrg		if eval \${$cacheid+:} false; then :
553096402570Smrg  $as_echo_n "(cached) " >&6
553196402570Smrgelse
553296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
553396402570Smrg/* end confdefs.h.  */
553496402570Smrgint i;
553596402570Smrgint
553696402570Smrgmain ()
553796402570Smrg{
553896402570Smrg
553996402570Smrg  ;
554096402570Smrg  return 0;
554196402570Smrg}
554296402570Smrg_ACEOF
554396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
554496402570Smrg  eval $cacheid=yes
554596402570Smrgelse
554696402570Smrg  eval $cacheid=no
554796402570Smrgfi
554896402570Smrgrm -f core conftest.err conftest.$ac_objext \
554996402570Smrg    conftest$ac_exeext conftest.$ac_ext
555096402570Smrgfi
555196402570Smrg
555296402570Smrg
555396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
555496402570Smrg
555596402570Smrg		eval supported=\$$cacheid
555696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
555796402570Smrg$as_echo "$supported" >&6; }
555896402570Smrg		if test "$supported" = "yes" ; then
555996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
556096402570Smrg			found="yes"
556196402570Smrg		fi
556296402570Smrg	fi
556396402570Smrg
556496402570Smrg
556596402570Smrg
556696402570Smrg
556796402570Smrg
556896402570Smrg
556996402570Smrg
557096402570Smrg
557196402570Smrg
557296402570Smrg
557396402570Smrg
557496402570Smrg
557596402570Smrg
557696402570Smrg
557796402570Smrg
557896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
557996402570Smrg
558096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
558196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
558296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
558396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
558496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
558596402570Smrg  $as_echo_n "(cached) " >&6
558696402570Smrgelse
558796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
558896402570Smrg/* end confdefs.h.  */
558996402570Smrgint i;
559096402570Smrg_ACEOF
559196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
559296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
559396402570Smrgelse
559496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
559596402570Smrgfi
559696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
559796402570Smrgfi
559896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
559996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
560096402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
560196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
560296402570Smrgfi
560396402570Smrg
560496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
560596402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
560696402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
560796402570Smrg	fi
560896402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
560996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
561096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
561196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
561296402570Smrg  $as_echo_n "(cached) " >&6
561396402570Smrgelse
561496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
561596402570Smrg/* end confdefs.h.  */
561696402570Smrgint i;
561796402570Smrg_ACEOF
561896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
561996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
562096402570Smrgelse
562196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
562296402570Smrgfi
562396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
562496402570Smrgfi
562596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
562696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
562796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
562896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
562996402570Smrgfi
563096402570Smrg
563196402570Smrgfound="no"
563296402570Smrg
563396402570Smrg	if test $found = "no" ; then
563496402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
563596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
563696402570Smrg		fi
563796402570Smrg
563896402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
563996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
564096402570Smrg		fi
564196402570Smrg
564296402570Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
564396402570Smrg
564496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
564596402570Smrg$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
564696402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
564796402570Smrg		if eval \${$cacheid+:} false; then :
564896402570Smrg  $as_echo_n "(cached) " >&6
564996402570Smrgelse
565096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
565196402570Smrg/* end confdefs.h.  */
565296402570Smrgint i;
565396402570Smrgint
565496402570Smrgmain ()
565596402570Smrg{
565696402570Smrg
565796402570Smrg  ;
565896402570Smrg  return 0;
565996402570Smrg}
566096402570Smrg_ACEOF
566196402570Smrgif ac_fn_c_try_link "$LINENO"; then :
566296402570Smrg  eval $cacheid=yes
566396402570Smrgelse
566496402570Smrg  eval $cacheid=no
566596402570Smrgfi
566696402570Smrgrm -f core conftest.err conftest.$ac_objext \
566796402570Smrg    conftest$ac_exeext conftest.$ac_ext
566896402570Smrgfi
566996402570Smrg
567096402570Smrg
567196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
567296402570Smrg
567396402570Smrg		eval supported=\$$cacheid
567496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
567596402570Smrg$as_echo "$supported" >&6; }
567696402570Smrg		if test "$supported" = "yes" ; then
567796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
567896402570Smrg			found="yes"
567996402570Smrg		fi
568096402570Smrg	fi
568196402570Smrg
568296402570Smrg
568396402570Smrg
568496402570Smrg
568596402570Smrg
568696402570Smrg
568796402570Smrg
568896402570Smrg
568996402570Smrg
569096402570Smrg
569196402570Smrg
569296402570Smrg
569396402570Smrg
569496402570Smrg
569596402570Smrg
569696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
569796402570Smrg
569896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
569996402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
570096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
570196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
570296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
570396402570Smrg  $as_echo_n "(cached) " >&6
570496402570Smrgelse
570596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
570696402570Smrg/* end confdefs.h.  */
570796402570Smrgint i;
570896402570Smrg_ACEOF
570996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
571096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
571196402570Smrgelse
571296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
571396402570Smrgfi
571496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
571596402570Smrgfi
571696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
571796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
571896402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
571996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
572096402570Smrgfi
572196402570Smrg
572296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
572396402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
572496402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
572596402570Smrg	fi
572696402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
572796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
572896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
572996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
573096402570Smrg  $as_echo_n "(cached) " >&6
573196402570Smrgelse
573296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
573396402570Smrg/* end confdefs.h.  */
573496402570Smrgint i;
573596402570Smrg_ACEOF
573696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
573796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
573896402570Smrgelse
573996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
574096402570Smrgfi
574196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
574296402570Smrgfi
574396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
574496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
574596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
574696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
574796402570Smrgfi
574896402570Smrg
574996402570Smrgfound="no"
575096402570Smrg
575196402570Smrg	if test $found = "no" ; then
575296402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
575396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
575496402570Smrg		fi
575596402570Smrg
575696402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
575796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
575896402570Smrg		fi
575996402570Smrg
576096402570Smrg		CFLAGS="$CFLAGS -Wnested-externs"
576196402570Smrg
576296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
576396402570Smrg$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
576496402570Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
576596402570Smrg		if eval \${$cacheid+:} false; then :
576696402570Smrg  $as_echo_n "(cached) " >&6
576796402570Smrgelse
576896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
576996402570Smrg/* end confdefs.h.  */
577096402570Smrgint i;
577196402570Smrgint
577296402570Smrgmain ()
577396402570Smrg{
577496402570Smrg
577596402570Smrg  ;
577696402570Smrg  return 0;
577796402570Smrg}
577896402570Smrg_ACEOF
577996402570Smrgif ac_fn_c_try_link "$LINENO"; then :
578096402570Smrg  eval $cacheid=yes
578196402570Smrgelse
578296402570Smrg  eval $cacheid=no
578396402570Smrgfi
578496402570Smrgrm -f core conftest.err conftest.$ac_objext \
578596402570Smrg    conftest$ac_exeext conftest.$ac_ext
578696402570Smrgfi
578796402570Smrg
578896402570Smrg
578996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
579096402570Smrg
579196402570Smrg		eval supported=\$$cacheid
579296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
579396402570Smrg$as_echo "$supported" >&6; }
579496402570Smrg		if test "$supported" = "yes" ; then
579596402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
579696402570Smrg			found="yes"
579796402570Smrg		fi
579896402570Smrg	fi
579996402570Smrg
580096402570Smrg
580196402570Smrg
580296402570Smrg
580396402570Smrg
580496402570Smrg
580596402570Smrg
580696402570Smrg
580796402570Smrg
580896402570Smrg
580996402570Smrg
581096402570Smrg
581196402570Smrg
581296402570Smrg
581396402570Smrg
581496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
581596402570Smrg
581696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
581796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
581896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
581996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
582096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
582196402570Smrg  $as_echo_n "(cached) " >&6
582296402570Smrgelse
582396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
582496402570Smrg/* end confdefs.h.  */
582596402570Smrgint i;
582696402570Smrg_ACEOF
582796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
582896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
582996402570Smrgelse
583096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
583196402570Smrgfi
583296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
583396402570Smrgfi
583496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
583596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
583696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
583796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
583896402570Smrgfi
583996402570Smrg
584096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
584196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
584296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
584396402570Smrg	fi
584496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
584596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
584696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
584796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
584896402570Smrg  $as_echo_n "(cached) " >&6
584996402570Smrgelse
585096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
585196402570Smrg/* end confdefs.h.  */
585296402570Smrgint i;
585396402570Smrg_ACEOF
585496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
585596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
585696402570Smrgelse
585796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
585896402570Smrgfi
585996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
586096402570Smrgfi
586196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
586296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
586396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
586496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
586596402570Smrgfi
586696402570Smrg
586796402570Smrgfound="no"
586896402570Smrg
586996402570Smrg	if test $found = "no" ; then
587096402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
587196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
587296402570Smrg		fi
587396402570Smrg
587496402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
587596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
587696402570Smrg		fi
587796402570Smrg
587896402570Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
587996402570Smrg
588096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
588196402570Smrg$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
588296402570Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
588396402570Smrg		if eval \${$cacheid+:} false; then :
588496402570Smrg  $as_echo_n "(cached) " >&6
588596402570Smrgelse
588696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
588796402570Smrg/* end confdefs.h.  */
588896402570Smrgint i;
588996402570Smrgint
589096402570Smrgmain ()
589196402570Smrg{
589296402570Smrg
589396402570Smrg  ;
589496402570Smrg  return 0;
589596402570Smrg}
589696402570Smrg_ACEOF
589796402570Smrgif ac_fn_c_try_link "$LINENO"; then :
589896402570Smrg  eval $cacheid=yes
589996402570Smrgelse
590096402570Smrg  eval $cacheid=no
590196402570Smrgfi
590296402570Smrgrm -f core conftest.err conftest.$ac_objext \
590396402570Smrg    conftest$ac_exeext conftest.$ac_ext
590496402570Smrgfi
590596402570Smrg
590696402570Smrg
590796402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
590896402570Smrg
590996402570Smrg		eval supported=\$$cacheid
591096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
591196402570Smrg$as_echo "$supported" >&6; }
591296402570Smrg		if test "$supported" = "yes" ; then
591396402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
591496402570Smrg			found="yes"
591596402570Smrg		fi
591696402570Smrg	fi
591796402570Smrg
591896402570Smrg
591996402570Smrg
592096402570Smrg
592196402570Smrg
592296402570Smrg
592396402570Smrg
592496402570Smrg
592596402570Smrg
592696402570Smrg
592796402570Smrg
592896402570Smrg
592996402570Smrg
593096402570Smrg
593196402570Smrg
593296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
593396402570Smrg
593496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
593596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
593696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
593796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
593896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
593996402570Smrg  $as_echo_n "(cached) " >&6
594096402570Smrgelse
594196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
594296402570Smrg/* end confdefs.h.  */
594396402570Smrgint i;
594496402570Smrg_ACEOF
594596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
594696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
594796402570Smrgelse
594896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
594996402570Smrgfi
595096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
595196402570Smrgfi
595296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
595396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
595496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
595596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
595696402570Smrgfi
595796402570Smrg
595896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
595996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
596096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
596196402570Smrg	fi
596296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
596396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
596496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
596596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
596696402570Smrg  $as_echo_n "(cached) " >&6
596796402570Smrgelse
596896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
596996402570Smrg/* end confdefs.h.  */
597096402570Smrgint i;
597196402570Smrg_ACEOF
597296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
597396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
597496402570Smrgelse
597596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
597696402570Smrgfi
597796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
597896402570Smrgfi
597996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
598096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
598196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
598296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
598396402570Smrgfi
598496402570Smrg
598596402570Smrgfound="no"
598696402570Smrg
598796402570Smrg	if test $found = "no" ; then
598896402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
598996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
599096402570Smrg		fi
599196402570Smrg
599296402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
599396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
599496402570Smrg		fi
599596402570Smrg
599696402570Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
599796402570Smrg
599896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
599996402570Smrg$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
600096402570Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
600196402570Smrg		if eval \${$cacheid+:} false; then :
600296402570Smrg  $as_echo_n "(cached) " >&6
600396402570Smrgelse
600496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
600596402570Smrg/* end confdefs.h.  */
600696402570Smrgint i;
600796402570Smrgint
600896402570Smrgmain ()
600996402570Smrg{
601096402570Smrg
601196402570Smrg  ;
601296402570Smrg  return 0;
601396402570Smrg}
601496402570Smrg_ACEOF
601596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
601696402570Smrg  eval $cacheid=yes
601796402570Smrgelse
601896402570Smrg  eval $cacheid=no
601996402570Smrgfi
602096402570Smrgrm -f core conftest.err conftest.$ac_objext \
602196402570Smrg    conftest$ac_exeext conftest.$ac_ext
602296402570Smrgfi
602396402570Smrg
602496402570Smrg
602596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
602696402570Smrg
602796402570Smrg		eval supported=\$$cacheid
602896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
602996402570Smrg$as_echo "$supported" >&6; }
603096402570Smrg		if test "$supported" = "yes" ; then
603196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
603296402570Smrg			found="yes"
603396402570Smrg		fi
603496402570Smrg	fi
603596402570Smrg
603696402570Smrg
603796402570Smrg
603896402570Smrg
603996402570Smrg
604096402570Smrg
604196402570Smrg
604296402570Smrg
604396402570Smrg
604496402570Smrg
604596402570Smrg
604696402570Smrg
604796402570Smrg
604896402570Smrg
604996402570Smrg
605096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
605196402570Smrg
605296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
605396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
605496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
605596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
605696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
605796402570Smrg  $as_echo_n "(cached) " >&6
605896402570Smrgelse
605996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
606096402570Smrg/* end confdefs.h.  */
606196402570Smrgint i;
606296402570Smrg_ACEOF
606396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
606496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
606596402570Smrgelse
606696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
606796402570Smrgfi
606896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
606996402570Smrgfi
607096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
607196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
607296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
607396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
607496402570Smrgfi
607596402570Smrg
607696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
607796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
607896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
607996402570Smrg	fi
608096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
608196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
608296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
608396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
608496402570Smrg  $as_echo_n "(cached) " >&6
608596402570Smrgelse
608696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
608796402570Smrg/* end confdefs.h.  */
608896402570Smrgint i;
608996402570Smrg_ACEOF
609096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
609196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
609296402570Smrgelse
609396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
609496402570Smrgfi
609596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
609696402570Smrgfi
609796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
609896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
609996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
610096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
610196402570Smrgfi
610296402570Smrg
610396402570Smrgfound="no"
610496402570Smrg
610596402570Smrg	if test $found = "no" ; then
610696402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
610796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
610896402570Smrg		fi
610996402570Smrg
611096402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
611196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
611296402570Smrg		fi
611396402570Smrg
611496402570Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
611596402570Smrg
611696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
611796402570Smrg$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
611896402570Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
611996402570Smrg		if eval \${$cacheid+:} false; then :
612096402570Smrg  $as_echo_n "(cached) " >&6
612196402570Smrgelse
612296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
612396402570Smrg/* end confdefs.h.  */
612496402570Smrgint i;
612596402570Smrgint
612696402570Smrgmain ()
612796402570Smrg{
612896402570Smrg
612996402570Smrg  ;
613096402570Smrg  return 0;
613196402570Smrg}
613296402570Smrg_ACEOF
613396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
613496402570Smrg  eval $cacheid=yes
613596402570Smrgelse
613696402570Smrg  eval $cacheid=no
613796402570Smrgfi
613896402570Smrgrm -f core conftest.err conftest.$ac_objext \
613996402570Smrg    conftest$ac_exeext conftest.$ac_ext
614096402570Smrgfi
614196402570Smrg
614296402570Smrg
614396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
614496402570Smrg
614596402570Smrg		eval supported=\$$cacheid
614696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
614796402570Smrg$as_echo "$supported" >&6; }
614896402570Smrg		if test "$supported" = "yes" ; then
614996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
615096402570Smrg			found="yes"
615196402570Smrg		fi
615296402570Smrg	fi
615396402570Smrg
615496402570Smrg
615596402570Smrg
615696402570Smrg
615796402570Smrg
615896402570Smrg# This chunk adds additional warnings that could catch undesired effects.
615996402570Smrg
616096402570Smrg
616196402570Smrg
616296402570Smrg
616396402570Smrg
616496402570Smrg
616596402570Smrg
616696402570Smrg
616796402570Smrg
616896402570Smrg
616996402570Smrg
617096402570Smrg
617196402570Smrg
617296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
617396402570Smrg
617496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
617596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
617696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
617796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
617896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
617996402570Smrg  $as_echo_n "(cached) " >&6
618096402570Smrgelse
618196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
618296402570Smrg/* end confdefs.h.  */
618396402570Smrgint i;
618496402570Smrg_ACEOF
618596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
618696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
618796402570Smrgelse
618896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
618996402570Smrgfi
619096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
619196402570Smrgfi
619296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
619396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
619496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
619596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
619696402570Smrgfi
619796402570Smrg
619896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
619996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
620096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
620196402570Smrg	fi
620296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
620396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
620496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
620596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
620696402570Smrg  $as_echo_n "(cached) " >&6
620796402570Smrgelse
620896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
620996402570Smrg/* end confdefs.h.  */
621096402570Smrgint i;
621196402570Smrg_ACEOF
621296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
621396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
621496402570Smrgelse
621596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
621696402570Smrgfi
621796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
621896402570Smrgfi
621996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
622096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
622196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
622296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
622396402570Smrgfi
622496402570Smrg
622596402570Smrgfound="no"
622696402570Smrg
622796402570Smrg	if test $found = "no" ; then
622896402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
622996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
623096402570Smrg		fi
623196402570Smrg
623296402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
623396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
623496402570Smrg		fi
623596402570Smrg
623696402570Smrg		CFLAGS="$CFLAGS -Wunused"
623796402570Smrg
623896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
623996402570Smrg$as_echo_n "checking if $CC supports-Wunused... " >&6; }
624096402570Smrg		cacheid=xorg_cv_cc_flag__Wunused
624196402570Smrg		if eval \${$cacheid+:} false; then :
624296402570Smrg  $as_echo_n "(cached) " >&6
624396402570Smrgelse
624496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
624596402570Smrg/* end confdefs.h.  */
624696402570Smrgint i;
624796402570Smrgint
624896402570Smrgmain ()
624996402570Smrg{
625096402570Smrg
625196402570Smrg  ;
625296402570Smrg  return 0;
625396402570Smrg}
625496402570Smrg_ACEOF
625596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
625696402570Smrg  eval $cacheid=yes
625796402570Smrgelse
625896402570Smrg  eval $cacheid=no
625996402570Smrgfi
626096402570Smrgrm -f core conftest.err conftest.$ac_objext \
626196402570Smrg    conftest$ac_exeext conftest.$ac_ext
626296402570Smrgfi
626396402570Smrg
626496402570Smrg
626596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
626696402570Smrg
626796402570Smrg		eval supported=\$$cacheid
626896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
626996402570Smrg$as_echo "$supported" >&6; }
627096402570Smrg		if test "$supported" = "yes" ; then
627196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
627296402570Smrg			found="yes"
627396402570Smrg		fi
627496402570Smrg	fi
627596402570Smrg
627696402570Smrg
627796402570Smrg
627896402570Smrg
627996402570Smrg
628096402570Smrg
628196402570Smrg
628296402570Smrg
628396402570Smrg
628496402570Smrg
628596402570Smrg
628696402570Smrg
628796402570Smrg
628896402570Smrg
628996402570Smrg
629096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
629196402570Smrg
629296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
629396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
629496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
629596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
629696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
629796402570Smrg  $as_echo_n "(cached) " >&6
629896402570Smrgelse
629996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
630096402570Smrg/* end confdefs.h.  */
630196402570Smrgint i;
630296402570Smrg_ACEOF
630396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
630496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
630596402570Smrgelse
630696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
630796402570Smrgfi
630896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
630996402570Smrgfi
631096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
631196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
631296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
631396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
631496402570Smrgfi
631596402570Smrg
631696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
631796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
631896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
631996402570Smrg	fi
632096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
632196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
632296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
632396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
632496402570Smrg  $as_echo_n "(cached) " >&6
632596402570Smrgelse
632696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632796402570Smrg/* end confdefs.h.  */
632896402570Smrgint i;
632996402570Smrg_ACEOF
633096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
633196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
633296402570Smrgelse
633396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
633496402570Smrgfi
633596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
633696402570Smrgfi
633796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
633896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
633996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
634096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
634196402570Smrgfi
634296402570Smrg
634396402570Smrgfound="no"
634496402570Smrg
634596402570Smrg	if test $found = "no" ; then
634696402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
634796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
634896402570Smrg		fi
634996402570Smrg
635096402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
635196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
635296402570Smrg		fi
635396402570Smrg
635496402570Smrg		CFLAGS="$CFLAGS -Wuninitialized"
635596402570Smrg
635696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
635796402570Smrg$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
635896402570Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
635996402570Smrg		if eval \${$cacheid+:} false; then :
636096402570Smrg  $as_echo_n "(cached) " >&6
636196402570Smrgelse
636296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636396402570Smrg/* end confdefs.h.  */
636496402570Smrgint i;
636596402570Smrgint
636696402570Smrgmain ()
636796402570Smrg{
636896402570Smrg
636996402570Smrg  ;
637096402570Smrg  return 0;
637196402570Smrg}
637296402570Smrg_ACEOF
637396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
637496402570Smrg  eval $cacheid=yes
637596402570Smrgelse
637696402570Smrg  eval $cacheid=no
637796402570Smrgfi
637896402570Smrgrm -f core conftest.err conftest.$ac_objext \
637996402570Smrg    conftest$ac_exeext conftest.$ac_ext
638096402570Smrgfi
638196402570Smrg
638296402570Smrg
638396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
638496402570Smrg
638596402570Smrg		eval supported=\$$cacheid
638696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
638796402570Smrg$as_echo "$supported" >&6; }
638896402570Smrg		if test "$supported" = "yes" ; then
638996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
639096402570Smrg			found="yes"
639196402570Smrg		fi
639296402570Smrg	fi
639396402570Smrg
639496402570Smrg
639596402570Smrg
639696402570Smrg
639796402570Smrg
639896402570Smrg
639996402570Smrg
640096402570Smrg
640196402570Smrg
640296402570Smrg
640396402570Smrg
640496402570Smrg
640596402570Smrg
640696402570Smrg
640796402570Smrg
640896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
640996402570Smrg
641096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
641196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
641296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
641396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
641496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
641596402570Smrg  $as_echo_n "(cached) " >&6
641696402570Smrgelse
641796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
641896402570Smrg/* end confdefs.h.  */
641996402570Smrgint i;
642096402570Smrg_ACEOF
642196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
642296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
642396402570Smrgelse
642496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
642596402570Smrgfi
642696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
642796402570Smrgfi
642896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
642996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
643096402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
643196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
643296402570Smrgfi
643396402570Smrg
643496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
643596402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
643696402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
643796402570Smrg	fi
643896402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
643996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
644096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
644196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
644296402570Smrg  $as_echo_n "(cached) " >&6
644396402570Smrgelse
644496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
644596402570Smrg/* end confdefs.h.  */
644696402570Smrgint i;
644796402570Smrg_ACEOF
644896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
644996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
645096402570Smrgelse
645196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
645296402570Smrgfi
645396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
645496402570Smrgfi
645596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
645696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
645796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
645896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
645996402570Smrgfi
646096402570Smrg
646196402570Smrgfound="no"
646296402570Smrg
646396402570Smrg	if test $found = "no" ; then
646496402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
646596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
646696402570Smrg		fi
646796402570Smrg
646896402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
646996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
647096402570Smrg		fi
647196402570Smrg
647296402570Smrg		CFLAGS="$CFLAGS -Wshadow"
647396402570Smrg
647496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
647596402570Smrg$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
647696402570Smrg		cacheid=xorg_cv_cc_flag__Wshadow
647796402570Smrg		if eval \${$cacheid+:} false; then :
647896402570Smrg  $as_echo_n "(cached) " >&6
647996402570Smrgelse
648096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
648196402570Smrg/* end confdefs.h.  */
648296402570Smrgint i;
648396402570Smrgint
648496402570Smrgmain ()
648596402570Smrg{
648696402570Smrg
648796402570Smrg  ;
648896402570Smrg  return 0;
648996402570Smrg}
649096402570Smrg_ACEOF
649196402570Smrgif ac_fn_c_try_link "$LINENO"; then :
649296402570Smrg  eval $cacheid=yes
649396402570Smrgelse
649496402570Smrg  eval $cacheid=no
649596402570Smrgfi
649696402570Smrgrm -f core conftest.err conftest.$ac_objext \
649796402570Smrg    conftest$ac_exeext conftest.$ac_ext
649896402570Smrgfi
649996402570Smrg
650096402570Smrg
650196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
650296402570Smrg
650396402570Smrg		eval supported=\$$cacheid
650496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
650596402570Smrg$as_echo "$supported" >&6; }
650696402570Smrg		if test "$supported" = "yes" ; then
650796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
650896402570Smrg			found="yes"
650996402570Smrg		fi
651096402570Smrg	fi
651196402570Smrg
651296402570Smrg
651396402570Smrg
651496402570Smrg
651596402570Smrg
651696402570Smrg
651796402570Smrg
651896402570Smrg
651996402570Smrg
652096402570Smrg
652196402570Smrg
652296402570Smrg
652396402570Smrg
652496402570Smrg
652596402570Smrg
652696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
652796402570Smrg
652896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
652996402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
653096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
653196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
653296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
653396402570Smrg  $as_echo_n "(cached) " >&6
653496402570Smrgelse
653596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
653696402570Smrg/* end confdefs.h.  */
653796402570Smrgint i;
653896402570Smrg_ACEOF
653996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
654096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
654196402570Smrgelse
654296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
654396402570Smrgfi
654496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
654596402570Smrgfi
654696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
654796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
654896402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
654996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
655096402570Smrgfi
655196402570Smrg
655296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
655396402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
655496402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
655596402570Smrg	fi
655696402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
655796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
655896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
655996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
656096402570Smrg  $as_echo_n "(cached) " >&6
656196402570Smrgelse
656296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
656396402570Smrg/* end confdefs.h.  */
656496402570Smrgint i;
656596402570Smrg_ACEOF
656696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
656796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
656896402570Smrgelse
656996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
657096402570Smrgfi
657196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
657296402570Smrgfi
657396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
657496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
657596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
657696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
657796402570Smrgfi
657896402570Smrg
657996402570Smrgfound="no"
658096402570Smrg
658196402570Smrg	if test $found = "no" ; then
658296402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
658396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
658496402570Smrg		fi
658596402570Smrg
658696402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
658796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
658896402570Smrg		fi
658996402570Smrg
659096402570Smrg		CFLAGS="$CFLAGS -Wcast-qual"
659196402570Smrg
659296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
659396402570Smrg$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
659496402570Smrg		cacheid=xorg_cv_cc_flag__Wcast_qual
659596402570Smrg		if eval \${$cacheid+:} false; then :
659696402570Smrg  $as_echo_n "(cached) " >&6
659796402570Smrgelse
659896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
659996402570Smrg/* end confdefs.h.  */
660096402570Smrgint i;
660196402570Smrgint
660296402570Smrgmain ()
660396402570Smrg{
660496402570Smrg
660596402570Smrg  ;
660696402570Smrg  return 0;
660796402570Smrg}
660896402570Smrg_ACEOF
660996402570Smrgif ac_fn_c_try_link "$LINENO"; then :
661096402570Smrg  eval $cacheid=yes
661196402570Smrgelse
661296402570Smrg  eval $cacheid=no
661396402570Smrgfi
661496402570Smrgrm -f core conftest.err conftest.$ac_objext \
661596402570Smrg    conftest$ac_exeext conftest.$ac_ext
661696402570Smrgfi
661796402570Smrg
661896402570Smrg
661996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
662096402570Smrg
662196402570Smrg		eval supported=\$$cacheid
662296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
662396402570Smrg$as_echo "$supported" >&6; }
662496402570Smrg		if test "$supported" = "yes" ; then
662596402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
662696402570Smrg			found="yes"
662796402570Smrg		fi
662896402570Smrg	fi
662996402570Smrg
663096402570Smrg
663196402570Smrg
663296402570Smrg
663396402570Smrg
663496402570Smrg
663596402570Smrg
663696402570Smrg
663796402570Smrg
663896402570Smrg
663996402570Smrg
664096402570Smrg
664196402570Smrg
664296402570Smrg
664396402570Smrg
664496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
664596402570Smrg
664696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
664796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
664896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
664996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
665096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
665196402570Smrg  $as_echo_n "(cached) " >&6
665296402570Smrgelse
665396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
665496402570Smrg/* end confdefs.h.  */
665596402570Smrgint i;
665696402570Smrg_ACEOF
665796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
665896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
665996402570Smrgelse
666096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
666196402570Smrgfi
666296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
666396402570Smrgfi
666496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
666596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
666696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
666796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
666896402570Smrgfi
666996402570Smrg
667096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
667196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
667296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
667396402570Smrg	fi
667496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
667596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
667696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
667796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
667896402570Smrg  $as_echo_n "(cached) " >&6
667996402570Smrgelse
668096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
668196402570Smrg/* end confdefs.h.  */
668296402570Smrgint i;
668396402570Smrg_ACEOF
668496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
668596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
668696402570Smrgelse
668796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
668896402570Smrgfi
668996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
669096402570Smrgfi
669196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
669296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
669396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
669496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
669596402570Smrgfi
669696402570Smrg
669796402570Smrgfound="no"
669896402570Smrg
669996402570Smrg	if test $found = "no" ; then
670096402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
670196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
670296402570Smrg		fi
670396402570Smrg
670496402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
670596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
670696402570Smrg		fi
670796402570Smrg
670896402570Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
670996402570Smrg
671096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
671196402570Smrg$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
671296402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
671396402570Smrg		if eval \${$cacheid+:} false; then :
671496402570Smrg  $as_echo_n "(cached) " >&6
671596402570Smrgelse
671696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
671796402570Smrg/* end confdefs.h.  */
671896402570Smrgint i;
671996402570Smrgint
672096402570Smrgmain ()
672196402570Smrg{
672296402570Smrg
672396402570Smrg  ;
672496402570Smrg  return 0;
672596402570Smrg}
672696402570Smrg_ACEOF
672796402570Smrgif ac_fn_c_try_link "$LINENO"; then :
672896402570Smrg  eval $cacheid=yes
672996402570Smrgelse
673096402570Smrg  eval $cacheid=no
673196402570Smrgfi
673296402570Smrgrm -f core conftest.err conftest.$ac_objext \
673396402570Smrg    conftest$ac_exeext conftest.$ac_ext
673496402570Smrgfi
673596402570Smrg
673696402570Smrg
673796402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
673896402570Smrg
673996402570Smrg		eval supported=\$$cacheid
674096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
674196402570Smrg$as_echo "$supported" >&6; }
674296402570Smrg		if test "$supported" = "yes" ; then
674396402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
674496402570Smrg			found="yes"
674596402570Smrg		fi
674696402570Smrg	fi
674796402570Smrg
674896402570Smrg
674996402570Smrg
675096402570Smrg
675196402570Smrg
675296402570Smrg
675396402570Smrg
675496402570Smrg
675596402570Smrg
675696402570Smrg
675796402570Smrg
675896402570Smrg
675996402570Smrg
676096402570Smrg
676196402570Smrg
676296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
676396402570Smrg
676496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
676596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
676696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
676796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
676896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
676996402570Smrg  $as_echo_n "(cached) " >&6
677096402570Smrgelse
677196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
677296402570Smrg/* end confdefs.h.  */
677396402570Smrgint i;
677496402570Smrg_ACEOF
677596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
677696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
677796402570Smrgelse
677896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
677996402570Smrgfi
678096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
678196402570Smrgfi
678296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
678396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
678496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
678596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
678696402570Smrgfi
678796402570Smrg
678896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
678996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
679096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
679196402570Smrg	fi
679296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
679396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
679496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
679596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
679696402570Smrg  $as_echo_n "(cached) " >&6
679796402570Smrgelse
679896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
679996402570Smrg/* end confdefs.h.  */
680096402570Smrgint i;
680196402570Smrg_ACEOF
680296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
680396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
680496402570Smrgelse
680596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
680696402570Smrgfi
680796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
680896402570Smrgfi
680996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
681096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
681196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
681296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
681396402570Smrgfi
681496402570Smrg
681596402570Smrgfound="no"
681696402570Smrg
681796402570Smrg	if test $found = "no" ; then
681896402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
681996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
682096402570Smrg		fi
682196402570Smrg
682296402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
682396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
682496402570Smrg		fi
682596402570Smrg
682696402570Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
682796402570Smrg
682896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
682996402570Smrg$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
683096402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
683196402570Smrg		if eval \${$cacheid+:} false; then :
683296402570Smrg  $as_echo_n "(cached) " >&6
683396402570Smrgelse
683496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
683596402570Smrg/* end confdefs.h.  */
683696402570Smrgint i;
683796402570Smrgint
683896402570Smrgmain ()
683996402570Smrg{
684096402570Smrg
684196402570Smrg  ;
684296402570Smrg  return 0;
684396402570Smrg}
684496402570Smrg_ACEOF
684596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
684696402570Smrg  eval $cacheid=yes
684796402570Smrgelse
684896402570Smrg  eval $cacheid=no
684996402570Smrgfi
685096402570Smrgrm -f core conftest.err conftest.$ac_objext \
685196402570Smrg    conftest$ac_exeext conftest.$ac_ext
685296402570Smrgfi
685396402570Smrg
685496402570Smrg
685596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
685696402570Smrg
685796402570Smrg		eval supported=\$$cacheid
685896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
685996402570Smrg$as_echo "$supported" >&6; }
686096402570Smrg		if test "$supported" = "yes" ; then
686196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
686296402570Smrg			found="yes"
686396402570Smrg		fi
686496402570Smrg	fi
686596402570Smrg
686696402570Smrg
686796402570Smrg
686896402570Smrg
686996402570Smrg
687096402570Smrg
687196402570Smrg
687296402570Smrg
687396402570Smrg
687496402570Smrg
687596402570Smrg
687696402570Smrg
687796402570Smrg
687896402570Smrg
687996402570Smrg
688096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
688196402570Smrg
688296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
688396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
688496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
688596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
688696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
688796402570Smrg  $as_echo_n "(cached) " >&6
688896402570Smrgelse
688996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
689096402570Smrg/* end confdefs.h.  */
689196402570Smrgint i;
689296402570Smrg_ACEOF
689396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
689496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
689596402570Smrgelse
689696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
689796402570Smrgfi
689896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
689996402570Smrgfi
690096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
690196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
690296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
690396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
690496402570Smrgfi
690596402570Smrg
690696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
690796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
690896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
690996402570Smrg	fi
691096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
691196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
691296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
691396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
691496402570Smrg  $as_echo_n "(cached) " >&6
691596402570Smrgelse
691696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
691796402570Smrg/* end confdefs.h.  */
691896402570Smrgint i;
691996402570Smrg_ACEOF
692096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
692196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
692296402570Smrgelse
692396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
692496402570Smrgfi
692596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
692696402570Smrgfi
692796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
692896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
692996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
693096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
693196402570Smrgfi
693296402570Smrg
693396402570Smrgfound="no"
693496402570Smrg
693596402570Smrg	if test $found = "no" ; then
693696402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
693796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
693896402570Smrg		fi
693996402570Smrg
694096402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
694196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
694296402570Smrg		fi
694396402570Smrg
694496402570Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
694596402570Smrg
694696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
694796402570Smrg$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
694896402570Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
694996402570Smrg		if eval \${$cacheid+:} false; then :
695096402570Smrg  $as_echo_n "(cached) " >&6
695196402570Smrgelse
695296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
695396402570Smrg/* end confdefs.h.  */
695496402570Smrgint i;
695596402570Smrgint
695696402570Smrgmain ()
695796402570Smrg{
695896402570Smrg
695996402570Smrg  ;
696096402570Smrg  return 0;
696196402570Smrg}
696296402570Smrg_ACEOF
696396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
696496402570Smrg  eval $cacheid=yes
696596402570Smrgelse
696696402570Smrg  eval $cacheid=no
696796402570Smrgfi
696896402570Smrgrm -f core conftest.err conftest.$ac_objext \
696996402570Smrg    conftest$ac_exeext conftest.$ac_ext
697096402570Smrgfi
697196402570Smrg
697296402570Smrg
697396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
697496402570Smrg
697596402570Smrg		eval supported=\$$cacheid
697696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
697796402570Smrg$as_echo "$supported" >&6; }
697896402570Smrg		if test "$supported" = "yes" ; then
697996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
698096402570Smrg			found="yes"
698196402570Smrg		fi
698296402570Smrg	fi
698396402570Smrg
698496402570Smrg
698596402570Smrg
698696402570Smrg# These are currently disabled because they are noisy.  They will be enabled
698796402570Smrg# in the future once the codebase is sufficiently modernized to silence
698896402570Smrg# them.  For now, I don't want them to drown out the other warnings.
698996402570Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
699096402570Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
699196402570Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
699296402570Smrg
699396402570Smrg# Turn some warnings into errors, so we don't accidently get successful builds
699496402570Smrg# when there are problems that should be fixed.
699596402570Smrg
699696402570Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
699796402570Smrg
699896402570Smrg
699996402570Smrg
700096402570Smrg
700196402570Smrg
700296402570Smrg
700396402570Smrg
700496402570Smrg
700596402570Smrg
700696402570Smrg
700796402570Smrg
700896402570Smrg
700996402570Smrg
701096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
701196402570Smrg
701296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
701396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
701496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
701596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
701696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
701796402570Smrg  $as_echo_n "(cached) " >&6
701896402570Smrgelse
701996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
702096402570Smrg/* end confdefs.h.  */
702196402570Smrgint i;
702296402570Smrg_ACEOF
702396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
702496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
702596402570Smrgelse
702696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
702796402570Smrgfi
702896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
702996402570Smrgfi
703096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
703196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
703296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
703396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
703496402570Smrgfi
703596402570Smrg
703696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
703796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
703896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
703996402570Smrg	fi
704096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
704196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
704296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
704396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
704496402570Smrg  $as_echo_n "(cached) " >&6
704596402570Smrgelse
704696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
704796402570Smrg/* end confdefs.h.  */
704896402570Smrgint i;
704996402570Smrg_ACEOF
705096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
705196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
705296402570Smrgelse
705396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
705496402570Smrgfi
705596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
705696402570Smrgfi
705796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
705896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
705996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
706096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
706196402570Smrgfi
706296402570Smrg
706396402570Smrgfound="no"
706496402570Smrg
706596402570Smrg	if test $found = "no" ; then
706696402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
706796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
706896402570Smrg		fi
706996402570Smrg
707096402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
707196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
707296402570Smrg		fi
707396402570Smrg
707496402570Smrg		CFLAGS="$CFLAGS -Werror=implicit"
707596402570Smrg
707696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
707796402570Smrg$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
70788abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_implicit
707996402570Smrg		if eval \${$cacheid+:} false; then :
708096402570Smrg  $as_echo_n "(cached) " >&6
708196402570Smrgelse
708296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
708396402570Smrg/* end confdefs.h.  */
708496402570Smrgint i;
708596402570Smrgint
708696402570Smrgmain ()
708796402570Smrg{
708896402570Smrg
708996402570Smrg  ;
709096402570Smrg  return 0;
709196402570Smrg}
709296402570Smrg_ACEOF
709396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
709496402570Smrg  eval $cacheid=yes
709596402570Smrgelse
709696402570Smrg  eval $cacheid=no
709796402570Smrgfi
709896402570Smrgrm -f core conftest.err conftest.$ac_objext \
709996402570Smrg    conftest$ac_exeext conftest.$ac_ext
710096402570Smrgfi
710196402570Smrg
710296402570Smrg
710396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
710496402570Smrg
710596402570Smrg		eval supported=\$$cacheid
710696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
710796402570Smrg$as_echo "$supported" >&6; }
710896402570Smrg		if test "$supported" = "yes" ; then
710996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
711096402570Smrg			found="yes"
711196402570Smrg		fi
711296402570Smrg	fi
711396402570Smrg
711496402570Smrg	if test $found = "no" ; then
711596402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
711696402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
711796402570Smrg		fi
711896402570Smrg
711996402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
712096402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
712196402570Smrg		fi
712296402570Smrg
712396402570Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
712496402570Smrg
712596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
712696402570Smrg$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
71278abc0ccfSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
712896402570Smrg		if eval \${$cacheid+:} false; then :
712996402570Smrg  $as_echo_n "(cached) " >&6
713096402570Smrgelse
713196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
713296402570Smrg/* end confdefs.h.  */
713396402570Smrgint i;
713496402570Smrgint
713596402570Smrgmain ()
713696402570Smrg{
713796402570Smrg
713896402570Smrg  ;
713996402570Smrg  return 0;
714096402570Smrg}
714196402570Smrg_ACEOF
714296402570Smrgif ac_fn_c_try_link "$LINENO"; then :
714396402570Smrg  eval $cacheid=yes
714496402570Smrgelse
714596402570Smrg  eval $cacheid=no
714696402570Smrgfi
714796402570Smrgrm -f core conftest.err conftest.$ac_objext \
714896402570Smrg    conftest$ac_exeext conftest.$ac_ext
714996402570Smrgfi
715096402570Smrg
715196402570Smrg
715296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
715396402570Smrg
715496402570Smrg		eval supported=\$$cacheid
715596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
715696402570Smrg$as_echo "$supported" >&6; }
715796402570Smrg		if test "$supported" = "yes" ; then
715896402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
715996402570Smrg			found="yes"
716096402570Smrg		fi
716196402570Smrg	fi
716296402570Smrg
716396402570Smrg
716496402570Smrg
716596402570Smrg
716696402570Smrg
716796402570Smrg
716896402570Smrg
716996402570Smrg
717096402570Smrg
717196402570Smrg
717296402570Smrg
717396402570Smrg
717496402570Smrg
717596402570Smrg
717696402570Smrg
717796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
717896402570Smrg
717996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
718096402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
718196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
718296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
718396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
718496402570Smrg  $as_echo_n "(cached) " >&6
718596402570Smrgelse
718696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718796402570Smrg/* end confdefs.h.  */
718896402570Smrgint i;
718996402570Smrg_ACEOF
719096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
719196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
719296402570Smrgelse
719396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
719496402570Smrgfi
719596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
719696402570Smrgfi
719796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
719896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
719996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
720096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
720196402570Smrgfi
720296402570Smrg
720396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
720496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
720596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
720696402570Smrg	fi
720796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
720896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
720996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
721096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
721196402570Smrg  $as_echo_n "(cached) " >&6
721296402570Smrgelse
721396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
721496402570Smrg/* end confdefs.h.  */
721596402570Smrgint i;
721696402570Smrg_ACEOF
721796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
721896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
721996402570Smrgelse
722096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
722196402570Smrgfi
722296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
722396402570Smrgfi
722496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
722596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
722696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
722796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
722896402570Smrgfi
722996402570Smrg
723096402570Smrgfound="no"
723196402570Smrg
723296402570Smrg	if test $found = "no" ; then
723396402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
723496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
723596402570Smrg		fi
723696402570Smrg
723796402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
723896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
723996402570Smrg		fi
724096402570Smrg
724196402570Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
724296402570Smrg
724396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
724496402570Smrg$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
72458abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
724696402570Smrg		if eval \${$cacheid+:} false; then :
724796402570Smrg  $as_echo_n "(cached) " >&6
724896402570Smrgelse
724996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
725096402570Smrg/* end confdefs.h.  */
725196402570Smrgint i;
725296402570Smrgint
725396402570Smrgmain ()
725496402570Smrg{
725596402570Smrg
725696402570Smrg  ;
725796402570Smrg  return 0;
725896402570Smrg}
725996402570Smrg_ACEOF
726096402570Smrgif ac_fn_c_try_link "$LINENO"; then :
726196402570Smrg  eval $cacheid=yes
726296402570Smrgelse
726396402570Smrg  eval $cacheid=no
726496402570Smrgfi
726596402570Smrgrm -f core conftest.err conftest.$ac_objext \
726696402570Smrg    conftest$ac_exeext conftest.$ac_ext
726796402570Smrgfi
726896402570Smrg
726996402570Smrg
727096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
727196402570Smrg
727296402570Smrg		eval supported=\$$cacheid
727396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
727496402570Smrg$as_echo "$supported" >&6; }
727596402570Smrg		if test "$supported" = "yes" ; then
727696402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
727796402570Smrg			found="yes"
727896402570Smrg		fi
727996402570Smrg	fi
728096402570Smrg
728196402570Smrg
728296402570Smrg
728396402570Smrg
728496402570Smrg
728596402570Smrg
728696402570Smrg
728796402570Smrg
728896402570Smrg
728996402570Smrg
729096402570Smrg
729196402570Smrg
729296402570Smrg
729396402570Smrg
729496402570Smrg
729596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
729696402570Smrg
729796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
729896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
729996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
730096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
730196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
730296402570Smrg  $as_echo_n "(cached) " >&6
730396402570Smrgelse
730496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
730596402570Smrg/* end confdefs.h.  */
730696402570Smrgint i;
730796402570Smrg_ACEOF
730896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
730996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
731096402570Smrgelse
731196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
731296402570Smrgfi
731396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
731496402570Smrgfi
731596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
731696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
731796402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
731896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
731996402570Smrgfi
732096402570Smrg
732196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
732296402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
732396402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
732496402570Smrg	fi
732596402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
732696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
732796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
732896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
732996402570Smrg  $as_echo_n "(cached) " >&6
733096402570Smrgelse
733196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
733296402570Smrg/* end confdefs.h.  */
733396402570Smrgint i;
733496402570Smrg_ACEOF
733596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
733696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
733796402570Smrgelse
733896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
733996402570Smrgfi
734096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
734196402570Smrgfi
734296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
734396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
734496402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
734596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
734696402570Smrgfi
734796402570Smrg
734896402570Smrgfound="no"
734996402570Smrg
735096402570Smrg	if test $found = "no" ; then
735196402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
735296402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
735396402570Smrg		fi
735496402570Smrg
735596402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
735696402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
735796402570Smrg		fi
735896402570Smrg
735996402570Smrg		CFLAGS="$CFLAGS -Werror=init-self"
736096402570Smrg
736196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
736296402570Smrg$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
73638abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_init_self
736496402570Smrg		if eval \${$cacheid+:} false; then :
736596402570Smrg  $as_echo_n "(cached) " >&6
736696402570Smrgelse
736796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
736896402570Smrg/* end confdefs.h.  */
736996402570Smrgint i;
737096402570Smrgint
737196402570Smrgmain ()
737296402570Smrg{
737396402570Smrg
737496402570Smrg  ;
737596402570Smrg  return 0;
737696402570Smrg}
737796402570Smrg_ACEOF
737896402570Smrgif ac_fn_c_try_link "$LINENO"; then :
737996402570Smrg  eval $cacheid=yes
738096402570Smrgelse
738196402570Smrg  eval $cacheid=no
738296402570Smrgfi
738396402570Smrgrm -f core conftest.err conftest.$ac_objext \
738496402570Smrg    conftest$ac_exeext conftest.$ac_ext
738596402570Smrgfi
738696402570Smrg
738796402570Smrg
738896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
738996402570Smrg
739096402570Smrg		eval supported=\$$cacheid
739196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
739296402570Smrg$as_echo "$supported" >&6; }
739396402570Smrg		if test "$supported" = "yes" ; then
739496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
739596402570Smrg			found="yes"
739696402570Smrg		fi
739796402570Smrg	fi
739896402570Smrg
739996402570Smrg
740096402570Smrg
740196402570Smrg
740296402570Smrg
740396402570Smrg
740496402570Smrg
740596402570Smrg
740696402570Smrg
740796402570Smrg
740896402570Smrg
740996402570Smrg
741096402570Smrg
741196402570Smrg
741296402570Smrg
741396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
741496402570Smrg
741596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
741696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
741796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
741896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
741996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
742096402570Smrg  $as_echo_n "(cached) " >&6
742196402570Smrgelse
742296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
742396402570Smrg/* end confdefs.h.  */
742496402570Smrgint i;
742596402570Smrg_ACEOF
742696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
742796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
742896402570Smrgelse
742996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
743096402570Smrgfi
743196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
743296402570Smrgfi
743396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
743496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
743596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
743696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
743796402570Smrgfi
743896402570Smrg
743996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
744096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
744196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
744296402570Smrg	fi
744396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
744496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
744596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
744696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
744796402570Smrg  $as_echo_n "(cached) " >&6
744896402570Smrgelse
744996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
745096402570Smrg/* end confdefs.h.  */
745196402570Smrgint i;
745296402570Smrg_ACEOF
745396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
745496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
745596402570Smrgelse
745696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
745796402570Smrgfi
745896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
745996402570Smrgfi
746096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
746196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
746296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
746396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
746496402570Smrgfi
746596402570Smrg
746696402570Smrgfound="no"
746796402570Smrg
746896402570Smrg	if test $found = "no" ; then
746996402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
747096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
747196402570Smrg		fi
747296402570Smrg
747396402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
747496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
747596402570Smrg		fi
747696402570Smrg
747796402570Smrg		CFLAGS="$CFLAGS -Werror=main"
747896402570Smrg
747996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
748096402570Smrg$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
74818abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_main
748296402570Smrg		if eval \${$cacheid+:} false; then :
748396402570Smrg  $as_echo_n "(cached) " >&6
748496402570Smrgelse
748596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
748696402570Smrg/* end confdefs.h.  */
748796402570Smrgint i;
748896402570Smrgint
748996402570Smrgmain ()
749096402570Smrg{
749196402570Smrg
749296402570Smrg  ;
749396402570Smrg  return 0;
749496402570Smrg}
749596402570Smrg_ACEOF
749696402570Smrgif ac_fn_c_try_link "$LINENO"; then :
749796402570Smrg  eval $cacheid=yes
749896402570Smrgelse
749996402570Smrg  eval $cacheid=no
750096402570Smrgfi
750196402570Smrgrm -f core conftest.err conftest.$ac_objext \
750296402570Smrg    conftest$ac_exeext conftest.$ac_ext
750396402570Smrgfi
750496402570Smrg
750596402570Smrg
750696402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
750796402570Smrg
750896402570Smrg		eval supported=\$$cacheid
750996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
751096402570Smrg$as_echo "$supported" >&6; }
751196402570Smrg		if test "$supported" = "yes" ; then
751296402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
751396402570Smrg			found="yes"
751496402570Smrg		fi
751596402570Smrg	fi
751696402570Smrg
751796402570Smrg
751896402570Smrg
751996402570Smrg
752096402570Smrg
752196402570Smrg
752296402570Smrg
752396402570Smrg
752496402570Smrg
752596402570Smrg
752696402570Smrg
752796402570Smrg
752896402570Smrg
752996402570Smrg
753096402570Smrg
753196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
753296402570Smrg
753396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
753496402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
753596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
753696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
753796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
753896402570Smrg  $as_echo_n "(cached) " >&6
753996402570Smrgelse
754096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
754196402570Smrg/* end confdefs.h.  */
754296402570Smrgint i;
754396402570Smrg_ACEOF
754496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
754596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
754696402570Smrgelse
754796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
754896402570Smrgfi
754996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
755096402570Smrgfi
755196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
755296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
755396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
755496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
755596402570Smrgfi
755696402570Smrg
755796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
755896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
755996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
756096402570Smrg	fi
756196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
756296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
756396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
756496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
756596402570Smrg  $as_echo_n "(cached) " >&6
756696402570Smrgelse
756796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
756896402570Smrg/* end confdefs.h.  */
756996402570Smrgint i;
757096402570Smrg_ACEOF
757196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
757296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
757396402570Smrgelse
757496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
757596402570Smrgfi
757696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
757796402570Smrgfi
757896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
757996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
758096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
758196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
758296402570Smrgfi
758396402570Smrg
758496402570Smrgfound="no"
758596402570Smrg
758696402570Smrg	if test $found = "no" ; then
758796402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
758896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
758996402570Smrg		fi
759096402570Smrg
759196402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
759296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
759396402570Smrg		fi
759496402570Smrg
759596402570Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
759696402570Smrg
759796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
759896402570Smrg$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
75998abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
760096402570Smrg		if eval \${$cacheid+:} false; then :
760196402570Smrg  $as_echo_n "(cached) " >&6
760296402570Smrgelse
760396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
760496402570Smrg/* end confdefs.h.  */
760596402570Smrgint i;
760696402570Smrgint
760796402570Smrgmain ()
760896402570Smrg{
760996402570Smrg
761096402570Smrg  ;
761196402570Smrg  return 0;
761296402570Smrg}
761396402570Smrg_ACEOF
761496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
761596402570Smrg  eval $cacheid=yes
761696402570Smrgelse
761796402570Smrg  eval $cacheid=no
761896402570Smrgfi
761996402570Smrgrm -f core conftest.err conftest.$ac_objext \
762096402570Smrg    conftest$ac_exeext conftest.$ac_ext
762196402570Smrgfi
762296402570Smrg
762396402570Smrg
762496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
762596402570Smrg
762696402570Smrg		eval supported=\$$cacheid
762796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
762896402570Smrg$as_echo "$supported" >&6; }
762996402570Smrg		if test "$supported" = "yes" ; then
763096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
763196402570Smrg			found="yes"
763296402570Smrg		fi
763396402570Smrg	fi
763496402570Smrg
763596402570Smrg
763696402570Smrg
763796402570Smrg
763896402570Smrg
763996402570Smrg
764096402570Smrg
764196402570Smrg
764296402570Smrg
764396402570Smrg
764496402570Smrg
764596402570Smrg
764696402570Smrg
764796402570Smrg
764896402570Smrg
764996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
765096402570Smrg
765196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
765296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
765396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
765496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
765596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
765696402570Smrg  $as_echo_n "(cached) " >&6
765796402570Smrgelse
765896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
765996402570Smrg/* end confdefs.h.  */
766096402570Smrgint i;
766196402570Smrg_ACEOF
766296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
766396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
766496402570Smrgelse
766596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
766696402570Smrgfi
766796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
766896402570Smrgfi
766996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
767096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
767196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
767296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
767396402570Smrgfi
767496402570Smrg
767596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
767696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
767796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
767896402570Smrg	fi
767996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
768096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
768196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
768296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
768396402570Smrg  $as_echo_n "(cached) " >&6
768496402570Smrgelse
768596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
768696402570Smrg/* end confdefs.h.  */
768796402570Smrgint i;
768896402570Smrg_ACEOF
768996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
769096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
769196402570Smrgelse
769296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
769396402570Smrgfi
769496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
769596402570Smrgfi
769696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
769796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
769896402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
769996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
770096402570Smrgfi
770196402570Smrg
770296402570Smrgfound="no"
770396402570Smrg
770496402570Smrg	if test $found = "no" ; then
770596402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
770696402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
770796402570Smrg		fi
770896402570Smrg
770996402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
771096402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
771196402570Smrg		fi
771296402570Smrg
771396402570Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
771496402570Smrg
771596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
771696402570Smrg$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
77178abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
771896402570Smrg		if eval \${$cacheid+:} false; then :
771996402570Smrg  $as_echo_n "(cached) " >&6
772096402570Smrgelse
772196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
772296402570Smrg/* end confdefs.h.  */
772396402570Smrgint i;
772496402570Smrgint
772596402570Smrgmain ()
772696402570Smrg{
772796402570Smrg
772896402570Smrg  ;
772996402570Smrg  return 0;
773096402570Smrg}
773196402570Smrg_ACEOF
773296402570Smrgif ac_fn_c_try_link "$LINENO"; then :
773396402570Smrg  eval $cacheid=yes
773496402570Smrgelse
773596402570Smrg  eval $cacheid=no
773696402570Smrgfi
773796402570Smrgrm -f core conftest.err conftest.$ac_objext \
773896402570Smrg    conftest$ac_exeext conftest.$ac_ext
773996402570Smrgfi
774096402570Smrg
774196402570Smrg
774296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
774396402570Smrg
774496402570Smrg		eval supported=\$$cacheid
774596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
774696402570Smrg$as_echo "$supported" >&6; }
774796402570Smrg		if test "$supported" = "yes" ; then
774896402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
774996402570Smrg			found="yes"
775096402570Smrg		fi
775196402570Smrg	fi
775296402570Smrg
775396402570Smrg
775496402570Smrg
775596402570Smrg
775696402570Smrg
775796402570Smrg
775896402570Smrg
775996402570Smrg
776096402570Smrg
776196402570Smrg
776296402570Smrg
776396402570Smrg
776496402570Smrg
776596402570Smrg
776696402570Smrg
776796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
776896402570Smrg
776996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
777096402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
777196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
777296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
777396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
777496402570Smrg  $as_echo_n "(cached) " >&6
777596402570Smrgelse
777696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
777796402570Smrg/* end confdefs.h.  */
777896402570Smrgint i;
777996402570Smrg_ACEOF
778096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
778196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
778296402570Smrgelse
778396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
778496402570Smrgfi
778596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
778696402570Smrgfi
778796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
778896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
778996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
779096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
779196402570Smrgfi
779296402570Smrg
779396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
779496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
779596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
779696402570Smrg	fi
779796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
779896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
779996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
780096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
780196402570Smrg  $as_echo_n "(cached) " >&6
780296402570Smrgelse
780396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
780496402570Smrg/* end confdefs.h.  */
780596402570Smrgint i;
780696402570Smrg_ACEOF
780796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
780896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
780996402570Smrgelse
781096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
781196402570Smrgfi
781296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
781396402570Smrgfi
781496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
781596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
781696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
781796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
781896402570Smrgfi
781996402570Smrg
782096402570Smrgfound="no"
782196402570Smrg
782296402570Smrg	if test $found = "no" ; then
782396402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
782496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
782596402570Smrg		fi
782696402570Smrg
782796402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
782896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
782996402570Smrg		fi
783096402570Smrg
783196402570Smrg		CFLAGS="$CFLAGS -Werror=return-type"
783296402570Smrg
783396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
783496402570Smrg$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
78358abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_return_type
783696402570Smrg		if eval \${$cacheid+:} false; then :
783796402570Smrg  $as_echo_n "(cached) " >&6
783896402570Smrgelse
783996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
784096402570Smrg/* end confdefs.h.  */
784196402570Smrgint i;
784296402570Smrgint
784396402570Smrgmain ()
784496402570Smrg{
784596402570Smrg
784696402570Smrg  ;
784796402570Smrg  return 0;
784896402570Smrg}
784996402570Smrg_ACEOF
785096402570Smrgif ac_fn_c_try_link "$LINENO"; then :
785196402570Smrg  eval $cacheid=yes
785296402570Smrgelse
785396402570Smrg  eval $cacheid=no
785496402570Smrgfi
785596402570Smrgrm -f core conftest.err conftest.$ac_objext \
785696402570Smrg    conftest$ac_exeext conftest.$ac_ext
785796402570Smrgfi
785896402570Smrg
785996402570Smrg
786096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
786196402570Smrg
786296402570Smrg		eval supported=\$$cacheid
786396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
786496402570Smrg$as_echo "$supported" >&6; }
786596402570Smrg		if test "$supported" = "yes" ; then
786696402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
786796402570Smrg			found="yes"
786896402570Smrg		fi
786996402570Smrg	fi
787096402570Smrg
787196402570Smrg	if test $found = "no" ; then
787296402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
787396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
787496402570Smrg		fi
787596402570Smrg
787696402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
787796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
787896402570Smrg		fi
787996402570Smrg
788096402570Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
788196402570Smrg
788296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
788396402570Smrg$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
78848abc0ccfSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
788596402570Smrg		if eval \${$cacheid+:} false; then :
788696402570Smrg  $as_echo_n "(cached) " >&6
788796402570Smrgelse
788896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
788996402570Smrg/* end confdefs.h.  */
789096402570Smrgint i;
789196402570Smrgint
789296402570Smrgmain ()
789396402570Smrg{
789496402570Smrg
789596402570Smrg  ;
789696402570Smrg  return 0;
789796402570Smrg}
789896402570Smrg_ACEOF
789996402570Smrgif ac_fn_c_try_link "$LINENO"; then :
790096402570Smrg  eval $cacheid=yes
790196402570Smrgelse
790296402570Smrg  eval $cacheid=no
790396402570Smrgfi
790496402570Smrgrm -f core conftest.err conftest.$ac_objext \
790596402570Smrg    conftest$ac_exeext conftest.$ac_ext
790696402570Smrgfi
790796402570Smrg
790896402570Smrg
790996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
791096402570Smrg
791196402570Smrg		eval supported=\$$cacheid
791296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
791396402570Smrg$as_echo "$supported" >&6; }
791496402570Smrg		if test "$supported" = "yes" ; then
791596402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
791696402570Smrg			found="yes"
791796402570Smrg		fi
791896402570Smrg	fi
791996402570Smrg
792096402570Smrg
792196402570Smrg
792296402570Smrg
792396402570Smrg
792496402570Smrg
792596402570Smrg
792696402570Smrg
792796402570Smrg
792896402570Smrg
792996402570Smrg
793096402570Smrg
793196402570Smrg
793296402570Smrg
793396402570Smrg
793496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
793596402570Smrg
793696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
793796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
793896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
793996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
794096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
794196402570Smrg  $as_echo_n "(cached) " >&6
794296402570Smrgelse
794396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
794496402570Smrg/* end confdefs.h.  */
794596402570Smrgint i;
794696402570Smrg_ACEOF
794796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
794896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
794996402570Smrgelse
795096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
795196402570Smrgfi
795296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795396402570Smrgfi
795496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
795596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
795696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
795796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
795896402570Smrgfi
795996402570Smrg
796096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
796196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
796296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
796396402570Smrg	fi
796496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
796596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
796696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
796796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
796896402570Smrg  $as_echo_n "(cached) " >&6
796996402570Smrgelse
797096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
797196402570Smrg/* end confdefs.h.  */
797296402570Smrgint i;
797396402570Smrg_ACEOF
797496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
797596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
797696402570Smrgelse
797796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
797896402570Smrgfi
797996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
798096402570Smrgfi
798196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
798296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
798396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
798496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
798596402570Smrgfi
798696402570Smrg
798796402570Smrgfound="no"
798896402570Smrg
798996402570Smrg	if test $found = "no" ; then
799096402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
799196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
799296402570Smrg		fi
799396402570Smrg
799496402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
799596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
799696402570Smrg		fi
799796402570Smrg
799896402570Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
799996402570Smrg
800096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
800196402570Smrg$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
80028abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
800396402570Smrg		if eval \${$cacheid+:} false; then :
800496402570Smrg  $as_echo_n "(cached) " >&6
800596402570Smrgelse
800696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
800796402570Smrg/* end confdefs.h.  */
800896402570Smrgint i;
800996402570Smrgint
801096402570Smrgmain ()
801196402570Smrg{
801296402570Smrg
801396402570Smrg  ;
801496402570Smrg  return 0;
801596402570Smrg}
801696402570Smrg_ACEOF
801796402570Smrgif ac_fn_c_try_link "$LINENO"; then :
801896402570Smrg  eval $cacheid=yes
801996402570Smrgelse
802096402570Smrg  eval $cacheid=no
802196402570Smrgfi
802296402570Smrgrm -f core conftest.err conftest.$ac_objext \
802396402570Smrg    conftest$ac_exeext conftest.$ac_ext
802496402570Smrgfi
802596402570Smrg
802696402570Smrg
802796402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
802896402570Smrg
802996402570Smrg		eval supported=\$$cacheid
803096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
803196402570Smrg$as_echo "$supported" >&6; }
803296402570Smrg		if test "$supported" = "yes" ; then
803396402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
803496402570Smrg			found="yes"
803596402570Smrg		fi
803696402570Smrg	fi
803796402570Smrg
803896402570Smrg
803996402570Smrg
804096402570Smrg
804196402570Smrg
804296402570Smrg
804396402570Smrg
804496402570Smrg
804596402570Smrg
804696402570Smrg
804796402570Smrg
804896402570Smrg
804996402570Smrg
805096402570Smrg
805196402570Smrg
805296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
805396402570Smrg
805496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
805596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
805696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
805796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
805896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
805996402570Smrg  $as_echo_n "(cached) " >&6
806096402570Smrgelse
806196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
806296402570Smrg/* end confdefs.h.  */
806396402570Smrgint i;
806496402570Smrg_ACEOF
806596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
806696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
806796402570Smrgelse
806896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
806996402570Smrgfi
807096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
807196402570Smrgfi
807296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
807396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
807496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
807596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
807696402570Smrgfi
807796402570Smrg
807896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
807996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
808096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
808196402570Smrg	fi
808296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
808396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
808496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
808596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
808696402570Smrg  $as_echo_n "(cached) " >&6
808796402570Smrgelse
808896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
808996402570Smrg/* end confdefs.h.  */
809096402570Smrgint i;
809196402570Smrg_ACEOF
809296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
809396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
809496402570Smrgelse
809596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
809696402570Smrgfi
809796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
809896402570Smrgfi
809996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
810096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
810196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
810296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
810396402570Smrgfi
810496402570Smrg
810596402570Smrgfound="no"
810696402570Smrg
810796402570Smrg	if test $found = "no" ; then
810896402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
810996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
811096402570Smrg		fi
811196402570Smrg
811296402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
811396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
811496402570Smrg		fi
811596402570Smrg
811696402570Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
811796402570Smrg
811896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
811996402570Smrg$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
81208abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
812196402570Smrg		if eval \${$cacheid+:} false; then :
812296402570Smrg  $as_echo_n "(cached) " >&6
812396402570Smrgelse
812496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
812596402570Smrg/* end confdefs.h.  */
812696402570Smrgint i;
812796402570Smrgint
812896402570Smrgmain ()
812996402570Smrg{
813096402570Smrg
813196402570Smrg  ;
813296402570Smrg  return 0;
813396402570Smrg}
813496402570Smrg_ACEOF
813596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
813696402570Smrg  eval $cacheid=yes
813796402570Smrgelse
813896402570Smrg  eval $cacheid=no
813996402570Smrgfi
814096402570Smrgrm -f core conftest.err conftest.$ac_objext \
814196402570Smrg    conftest$ac_exeext conftest.$ac_ext
814296402570Smrgfi
814396402570Smrg
814496402570Smrg
814596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
814696402570Smrg
814796402570Smrg		eval supported=\$$cacheid
814896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
814996402570Smrg$as_echo "$supported" >&6; }
815096402570Smrg		if test "$supported" = "yes" ; then
815196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
815296402570Smrg			found="yes"
815396402570Smrg		fi
815496402570Smrg	fi
815596402570Smrg
815696402570Smrg
815796402570Smrg
815896402570Smrg
815996402570Smrg
816096402570Smrg
816196402570Smrg
816296402570Smrg
816396402570Smrg
816496402570Smrg
816596402570Smrg
816696402570Smrg
816796402570Smrg
816896402570Smrg
816996402570Smrg
817096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
817196402570Smrg
817296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
817396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
817496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
817596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
817696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
817796402570Smrg  $as_echo_n "(cached) " >&6
817896402570Smrgelse
817996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
818096402570Smrg/* end confdefs.h.  */
818196402570Smrgint i;
818296402570Smrg_ACEOF
818396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
818496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
818596402570Smrgelse
818696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
818796402570Smrgfi
818896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
818996402570Smrgfi
819096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
819196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
819296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
819396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
819496402570Smrgfi
819596402570Smrg
819696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
819796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
819896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
819996402570Smrg	fi
820096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
820196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
820296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
820396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
820496402570Smrg  $as_echo_n "(cached) " >&6
820596402570Smrgelse
820696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
820796402570Smrg/* end confdefs.h.  */
820896402570Smrgint i;
820996402570Smrg_ACEOF
821096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
821196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
821296402570Smrgelse
821396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
821496402570Smrgfi
821596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
821696402570Smrgfi
821796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
821896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
821996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
822096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
822196402570Smrgfi
822296402570Smrg
822396402570Smrgfound="no"
822496402570Smrg
822596402570Smrg	if test $found = "no" ; then
822696402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
822796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
822896402570Smrg		fi
822996402570Smrg
823096402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
823196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
823296402570Smrg		fi
823396402570Smrg
823496402570Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
823596402570Smrg
823696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
823796402570Smrg$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
82388abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
823996402570Smrg		if eval \${$cacheid+:} false; then :
824096402570Smrg  $as_echo_n "(cached) " >&6
824196402570Smrgelse
824296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
824396402570Smrg/* end confdefs.h.  */
824496402570Smrgint i;
824596402570Smrgint
824696402570Smrgmain ()
824796402570Smrg{
824896402570Smrg
824996402570Smrg  ;
825096402570Smrg  return 0;
825196402570Smrg}
825296402570Smrg_ACEOF
825396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
825496402570Smrg  eval $cacheid=yes
825596402570Smrgelse
825696402570Smrg  eval $cacheid=no
825796402570Smrgfi
825896402570Smrgrm -f core conftest.err conftest.$ac_objext \
825996402570Smrg    conftest$ac_exeext conftest.$ac_ext
826096402570Smrgfi
826196402570Smrg
826296402570Smrg
826396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
826496402570Smrg
826596402570Smrg		eval supported=\$$cacheid
826696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
826796402570Smrg$as_echo "$supported" >&6; }
826896402570Smrg		if test "$supported" = "yes" ; then
826996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
827096402570Smrg			found="yes"
827196402570Smrg		fi
827296402570Smrg	fi
827396402570Smrg
827496402570Smrg
827596402570Smrg
827696402570Smrg
827796402570Smrg
827896402570Smrg
827996402570Smrg
828096402570Smrg
828196402570Smrg
828296402570Smrg
828396402570Smrg
828496402570Smrg
828596402570Smrg
828696402570Smrg
828796402570Smrg
828896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
828996402570Smrg
829096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
829196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
829296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
829396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
829496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
829596402570Smrg  $as_echo_n "(cached) " >&6
829696402570Smrgelse
829796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
829896402570Smrg/* end confdefs.h.  */
829996402570Smrgint i;
830096402570Smrg_ACEOF
830196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
830296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
830396402570Smrgelse
830496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
830596402570Smrgfi
830696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
830796402570Smrgfi
830896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
830996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
831096402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
831196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
831296402570Smrgfi
831396402570Smrg
831496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
831596402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
831696402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
831796402570Smrg	fi
831896402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
831996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
832096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
832196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
832296402570Smrg  $as_echo_n "(cached) " >&6
832396402570Smrgelse
832496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
832596402570Smrg/* end confdefs.h.  */
832696402570Smrgint i;
832796402570Smrg_ACEOF
832896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
832996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
833096402570Smrgelse
833196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
833296402570Smrgfi
833396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
833496402570Smrgfi
833596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
833696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
833796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
833896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
833996402570Smrgfi
834096402570Smrg
834196402570Smrgfound="no"
834296402570Smrg
834396402570Smrg	if test $found = "no" ; then
834496402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
834596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
834696402570Smrg		fi
834796402570Smrg
834896402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
834996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
835096402570Smrg		fi
835196402570Smrg
835296402570Smrg		CFLAGS="$CFLAGS -Werror=address"
835396402570Smrg
835496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
835596402570Smrg$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
83568abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_address
835796402570Smrg		if eval \${$cacheid+:} false; then :
835896402570Smrg  $as_echo_n "(cached) " >&6
835996402570Smrgelse
836096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
836196402570Smrg/* end confdefs.h.  */
836296402570Smrgint i;
836396402570Smrgint
836496402570Smrgmain ()
836596402570Smrg{
836696402570Smrg
836796402570Smrg  ;
836896402570Smrg  return 0;
836996402570Smrg}
837096402570Smrg_ACEOF
837196402570Smrgif ac_fn_c_try_link "$LINENO"; then :
837296402570Smrg  eval $cacheid=yes
837396402570Smrgelse
837496402570Smrg  eval $cacheid=no
837596402570Smrgfi
837696402570Smrgrm -f core conftest.err conftest.$ac_objext \
837796402570Smrg    conftest$ac_exeext conftest.$ac_ext
837896402570Smrgfi
837996402570Smrg
838096402570Smrg
838196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
838296402570Smrg
838396402570Smrg		eval supported=\$$cacheid
838496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
838596402570Smrg$as_echo "$supported" >&6; }
838696402570Smrg		if test "$supported" = "yes" ; then
838796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
838896402570Smrg			found="yes"
838996402570Smrg		fi
839096402570Smrg	fi
839196402570Smrg
839296402570Smrg
839396402570Smrg
839496402570Smrg
839596402570Smrg
839696402570Smrg
839796402570Smrg
839896402570Smrg
839996402570Smrg
840096402570Smrg
840196402570Smrg
840296402570Smrg
840396402570Smrg
840496402570Smrg
840596402570Smrg
840696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
840796402570Smrg
840896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
840996402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
841096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
841196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
841296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
841396402570Smrg  $as_echo_n "(cached) " >&6
841496402570Smrgelse
841596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
841696402570Smrg/* end confdefs.h.  */
841796402570Smrgint i;
841896402570Smrg_ACEOF
841996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
842096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
842196402570Smrgelse
842296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
842396402570Smrgfi
842496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
842596402570Smrgfi
842696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
842796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
842896402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
842996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
843096402570Smrgfi
843196402570Smrg
843296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
843396402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
843496402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
843596402570Smrg	fi
843696402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
843796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
843896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
843996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
844096402570Smrg  $as_echo_n "(cached) " >&6
844196402570Smrgelse
844296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
844396402570Smrg/* end confdefs.h.  */
844496402570Smrgint i;
844596402570Smrg_ACEOF
844696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
844796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
844896402570Smrgelse
844996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
845096402570Smrgfi
845196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
845296402570Smrgfi
845396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
845496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
845596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
845696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
845796402570Smrgfi
845896402570Smrg
845996402570Smrgfound="no"
846096402570Smrg
846196402570Smrg	if test $found = "no" ; then
846296402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
846396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
846496402570Smrg		fi
846596402570Smrg
846696402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
846796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
846896402570Smrg		fi
846996402570Smrg
847096402570Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
847196402570Smrg
847296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
847396402570Smrg$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
84748abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
847596402570Smrg		if eval \${$cacheid+:} false; then :
847696402570Smrg  $as_echo_n "(cached) " >&6
847796402570Smrgelse
847896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
847996402570Smrg/* end confdefs.h.  */
848096402570Smrgint i;
848196402570Smrgint
848296402570Smrgmain ()
848396402570Smrg{
848496402570Smrg
848596402570Smrg  ;
848696402570Smrg  return 0;
848796402570Smrg}
848896402570Smrg_ACEOF
848996402570Smrgif ac_fn_c_try_link "$LINENO"; then :
849096402570Smrg  eval $cacheid=yes
849196402570Smrgelse
849296402570Smrg  eval $cacheid=no
849396402570Smrgfi
849496402570Smrgrm -f core conftest.err conftest.$ac_objext \
849596402570Smrg    conftest$ac_exeext conftest.$ac_ext
849696402570Smrgfi
849796402570Smrg
849896402570Smrg
849996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
850096402570Smrg
850196402570Smrg		eval supported=\$$cacheid
850296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
850396402570Smrg$as_echo "$supported" >&6; }
850496402570Smrg		if test "$supported" = "yes" ; then
850596402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
850696402570Smrg			found="yes"
850796402570Smrg		fi
850896402570Smrg	fi
850996402570Smrg
851096402570Smrg	if test $found = "no" ; then
851196402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
851296402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
851396402570Smrg		fi
851496402570Smrg
851596402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
851696402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
851796402570Smrg		fi
851896402570Smrg
851996402570Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
852096402570Smrg
852196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
852296402570Smrg$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
85238abc0ccfSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
852496402570Smrg		if eval \${$cacheid+:} false; then :
852596402570Smrg  $as_echo_n "(cached) " >&6
852696402570Smrgelse
852796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
852896402570Smrg/* end confdefs.h.  */
852996402570Smrgint i;
853096402570Smrgint
853196402570Smrgmain ()
853296402570Smrg{
853396402570Smrg
853496402570Smrg  ;
853596402570Smrg  return 0;
853696402570Smrg}
853796402570Smrg_ACEOF
853896402570Smrgif ac_fn_c_try_link "$LINENO"; then :
853996402570Smrg  eval $cacheid=yes
854096402570Smrgelse
854196402570Smrg  eval $cacheid=no
854296402570Smrgfi
854396402570Smrgrm -f core conftest.err conftest.$ac_objext \
854496402570Smrg    conftest$ac_exeext conftest.$ac_ext
854596402570Smrgfi
854696402570Smrg
854796402570Smrg
854896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
854996402570Smrg
855096402570Smrg		eval supported=\$$cacheid
855196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
855296402570Smrg$as_echo "$supported" >&6; }
855396402570Smrg		if test "$supported" = "yes" ; then
855496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
855596402570Smrg			found="yes"
855696402570Smrg		fi
855796402570Smrg	fi
855896402570Smrg
855996402570Smrg
856096402570Smrg
856196402570Smrg
856296402570Smrg
856396402570Smrg
856496402570Smrg
856596402570Smrg
856696402570Smrg
856796402570Smrg
856896402570Smrg
856996402570Smrg
857096402570Smrg
857196402570Smrg
857296402570Smrg
857396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
857496402570Smrg
857596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
857696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
857796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
857896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
857996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
858096402570Smrg  $as_echo_n "(cached) " >&6
858196402570Smrgelse
858296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
858396402570Smrg/* end confdefs.h.  */
858496402570Smrgint i;
858596402570Smrg_ACEOF
858696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
858796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
858896402570Smrgelse
858996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
859096402570Smrgfi
859196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
859296402570Smrgfi
859396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
859496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
859596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
859696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
859796402570Smrgfi
859896402570Smrg
859996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
860096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
860196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
860296402570Smrg	fi
860396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
860496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
860596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
860696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
860796402570Smrg  $as_echo_n "(cached) " >&6
860896402570Smrgelse
860996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
861096402570Smrg/* end confdefs.h.  */
861196402570Smrgint i;
861296402570Smrg_ACEOF
861396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
861496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
861596402570Smrgelse
861696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
861796402570Smrgfi
861896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
861996402570Smrgfi
862096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
862196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
862296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
862396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
862496402570Smrgfi
862596402570Smrg
862696402570Smrgfound="no"
862796402570Smrg
862896402570Smrg	if test $found = "no" ; then
862996402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
863096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
863196402570Smrg		fi
863296402570Smrg
863396402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
863496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
863596402570Smrg		fi
863696402570Smrg
863796402570Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
863896402570Smrg
863996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
864096402570Smrg$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
86418abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
864296402570Smrg		if eval \${$cacheid+:} false; then :
864396402570Smrg  $as_echo_n "(cached) " >&6
864496402570Smrgelse
864596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
864696402570Smrg/* end confdefs.h.  */
864796402570Smrgint i;
864896402570Smrgint
864996402570Smrgmain ()
865096402570Smrg{
865196402570Smrg
865296402570Smrg  ;
865396402570Smrg  return 0;
865496402570Smrg}
865596402570Smrg_ACEOF
865696402570Smrgif ac_fn_c_try_link "$LINENO"; then :
865796402570Smrg  eval $cacheid=yes
865896402570Smrgelse
865996402570Smrg  eval $cacheid=no
866096402570Smrgfi
866196402570Smrgrm -f core conftest.err conftest.$ac_objext \
866296402570Smrg    conftest$ac_exeext conftest.$ac_ext
866396402570Smrgfi
866496402570Smrg
866596402570Smrg
866696402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
866796402570Smrg
866896402570Smrg		eval supported=\$$cacheid
866996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
867096402570Smrg$as_echo "$supported" >&6; }
867196402570Smrg		if test "$supported" = "yes" ; then
867296402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
867396402570Smrg			found="yes"
867496402570Smrg		fi
867596402570Smrg	fi
867696402570Smrg
867796402570Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
867896402570Smrgelse
867996402570Smrg{ $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
868096402570Smrg$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;}
868196402570Smrg
868296402570Smrg
868396402570Smrg
868496402570Smrg
868596402570Smrg
868696402570Smrg
868796402570Smrg
868896402570Smrg
868996402570Smrg
869096402570Smrg
869196402570Smrg
869296402570Smrg
869396402570Smrg
869496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
869596402570Smrg
869696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
869796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
869896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
869996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
870096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
870196402570Smrg  $as_echo_n "(cached) " >&6
870296402570Smrgelse
870396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
870496402570Smrg/* end confdefs.h.  */
870596402570Smrgint i;
870696402570Smrg_ACEOF
870796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
870896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
870996402570Smrgelse
871096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
871196402570Smrgfi
871296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
871396402570Smrgfi
871496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
871596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
871696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
871796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
871896402570Smrgfi
871996402570Smrg
872096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
872196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
872296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
872396402570Smrg	fi
872496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
872596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
872696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
872796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
872896402570Smrg  $as_echo_n "(cached) " >&6
872996402570Smrgelse
873096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
873196402570Smrg/* end confdefs.h.  */
873296402570Smrgint i;
873396402570Smrg_ACEOF
873496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
873596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
873696402570Smrgelse
873796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
873896402570Smrgfi
873996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
874096402570Smrgfi
874196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
874296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
874396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
874496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
874596402570Smrgfi
874696402570Smrg
874796402570Smrgfound="no"
874896402570Smrg
874996402570Smrg	if test $found = "no" ; then
875096402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
875196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
875296402570Smrg		fi
875396402570Smrg
875496402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
875596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
875696402570Smrg		fi
875796402570Smrg
875896402570Smrg		CFLAGS="$CFLAGS -Wimplicit"
875996402570Smrg
876096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
876196402570Smrg$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
876296402570Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
876396402570Smrg		if eval \${$cacheid+:} false; then :
876496402570Smrg  $as_echo_n "(cached) " >&6
876596402570Smrgelse
876696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
876796402570Smrg/* end confdefs.h.  */
876896402570Smrgint i;
876996402570Smrgint
877096402570Smrgmain ()
877196402570Smrg{
877296402570Smrg
877396402570Smrg  ;
877496402570Smrg  return 0;
877596402570Smrg}
877696402570Smrg_ACEOF
877796402570Smrgif ac_fn_c_try_link "$LINENO"; then :
877896402570Smrg  eval $cacheid=yes
877996402570Smrgelse
878096402570Smrg  eval $cacheid=no
878196402570Smrgfi
878296402570Smrgrm -f core conftest.err conftest.$ac_objext \
878396402570Smrg    conftest$ac_exeext conftest.$ac_ext
878496402570Smrgfi
878596402570Smrg
878696402570Smrg
878796402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
878896402570Smrg
878996402570Smrg		eval supported=\$$cacheid
879096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
879196402570Smrg$as_echo "$supported" >&6; }
879296402570Smrg		if test "$supported" = "yes" ; then
879396402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
879496402570Smrg			found="yes"
879596402570Smrg		fi
879696402570Smrg	fi
879796402570Smrg
879896402570Smrg
879996402570Smrg
880096402570Smrg
880196402570Smrg
880296402570Smrg
880396402570Smrg
880496402570Smrg
880596402570Smrg
880696402570Smrg
880796402570Smrg
880896402570Smrg
880996402570Smrg
881096402570Smrg
881196402570Smrg
881296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
881396402570Smrg
881496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
881596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
881696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
881796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
881896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
881996402570Smrg  $as_echo_n "(cached) " >&6
882096402570Smrgelse
882196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
882296402570Smrg/* end confdefs.h.  */
882396402570Smrgint i;
882496402570Smrg_ACEOF
882596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
882696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
882796402570Smrgelse
882896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
882996402570Smrgfi
883096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
883196402570Smrgfi
883296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
883396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
883496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
883596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
883696402570Smrgfi
883796402570Smrg
883896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
883996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
884096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
884196402570Smrg	fi
884296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
884396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
884496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
884596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
884696402570Smrg  $as_echo_n "(cached) " >&6
884796402570Smrgelse
884896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
884996402570Smrg/* end confdefs.h.  */
885096402570Smrgint i;
885196402570Smrg_ACEOF
885296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
885396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
885496402570Smrgelse
885596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
885696402570Smrgfi
885796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
885896402570Smrgfi
885996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
886096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
886196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
886296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
886396402570Smrgfi
886496402570Smrg
886596402570Smrgfound="no"
886696402570Smrg
886796402570Smrg	if test $found = "no" ; then
886896402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
886996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
887096402570Smrg		fi
887196402570Smrg
887296402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
887396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
887496402570Smrg		fi
887596402570Smrg
887696402570Smrg		CFLAGS="$CFLAGS -Wnonnull"
887796402570Smrg
887896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
887996402570Smrg$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
888096402570Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
888196402570Smrg		if eval \${$cacheid+:} false; then :
888296402570Smrg  $as_echo_n "(cached) " >&6
888396402570Smrgelse
888496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
888596402570Smrg/* end confdefs.h.  */
888696402570Smrgint i;
888796402570Smrgint
888896402570Smrgmain ()
888996402570Smrg{
889096402570Smrg
889196402570Smrg  ;
889296402570Smrg  return 0;
889396402570Smrg}
889496402570Smrg_ACEOF
889596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
889696402570Smrg  eval $cacheid=yes
889796402570Smrgelse
889896402570Smrg  eval $cacheid=no
889996402570Smrgfi
890096402570Smrgrm -f core conftest.err conftest.$ac_objext \
890196402570Smrg    conftest$ac_exeext conftest.$ac_ext
890296402570Smrgfi
890396402570Smrg
890496402570Smrg
890596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
890696402570Smrg
890796402570Smrg		eval supported=\$$cacheid
890896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
890996402570Smrg$as_echo "$supported" >&6; }
891096402570Smrg		if test "$supported" = "yes" ; then
891196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
891296402570Smrg			found="yes"
891396402570Smrg		fi
891496402570Smrg	fi
891596402570Smrg
891696402570Smrg
891796402570Smrg
891896402570Smrg
891996402570Smrg
892096402570Smrg
892196402570Smrg
892296402570Smrg
892396402570Smrg
892496402570Smrg
892596402570Smrg
892696402570Smrg
892796402570Smrg
892896402570Smrg
892996402570Smrg
893096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
893196402570Smrg
893296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
893396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
893496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
893596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
893696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
893796402570Smrg  $as_echo_n "(cached) " >&6
893896402570Smrgelse
893996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
894096402570Smrg/* end confdefs.h.  */
894196402570Smrgint i;
894296402570Smrg_ACEOF
894396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
894496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
894596402570Smrgelse
894696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
894796402570Smrgfi
894896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
894996402570Smrgfi
895096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
895196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
895296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
895396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
895496402570Smrgfi
895596402570Smrg
895696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
895796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
895896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
895996402570Smrg	fi
896096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
896196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
896296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
896396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
896496402570Smrg  $as_echo_n "(cached) " >&6
896596402570Smrgelse
896696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
896796402570Smrg/* end confdefs.h.  */
896896402570Smrgint i;
896996402570Smrg_ACEOF
897096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
897196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
897296402570Smrgelse
897396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
897496402570Smrgfi
897596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
897696402570Smrgfi
897796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
897896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
897996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
898096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
898196402570Smrgfi
898296402570Smrg
898396402570Smrgfound="no"
898496402570Smrg
898596402570Smrg	if test $found = "no" ; then
898696402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
898796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
898896402570Smrg		fi
898996402570Smrg
899096402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
899196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
899296402570Smrg		fi
899396402570Smrg
899496402570Smrg		CFLAGS="$CFLAGS -Winit-self"
899596402570Smrg
899696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
899796402570Smrg$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
899896402570Smrg		cacheid=xorg_cv_cc_flag__Winit_self
899996402570Smrg		if eval \${$cacheid+:} false; then :
900096402570Smrg  $as_echo_n "(cached) " >&6
900196402570Smrgelse
900296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
900396402570Smrg/* end confdefs.h.  */
900496402570Smrgint i;
900596402570Smrgint
900696402570Smrgmain ()
900796402570Smrg{
900896402570Smrg
900996402570Smrg  ;
901096402570Smrg  return 0;
901196402570Smrg}
901296402570Smrg_ACEOF
901396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
901496402570Smrg  eval $cacheid=yes
901596402570Smrgelse
901696402570Smrg  eval $cacheid=no
901796402570Smrgfi
901896402570Smrgrm -f core conftest.err conftest.$ac_objext \
901996402570Smrg    conftest$ac_exeext conftest.$ac_ext
902096402570Smrgfi
902196402570Smrg
902296402570Smrg
902396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
902496402570Smrg
902596402570Smrg		eval supported=\$$cacheid
902696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
902796402570Smrg$as_echo "$supported" >&6; }
902896402570Smrg		if test "$supported" = "yes" ; then
902996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
903096402570Smrg			found="yes"
903196402570Smrg		fi
903296402570Smrg	fi
903396402570Smrg
903496402570Smrg
903596402570Smrg
903696402570Smrg
903796402570Smrg
903896402570Smrg
903996402570Smrg
904096402570Smrg
904196402570Smrg
904296402570Smrg
904396402570Smrg
904496402570Smrg
904596402570Smrg
904696402570Smrg
904796402570Smrg
904896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
904996402570Smrg
905096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
905196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
905296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
905396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
905496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
905596402570Smrg  $as_echo_n "(cached) " >&6
905696402570Smrgelse
905796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
905896402570Smrg/* end confdefs.h.  */
905996402570Smrgint i;
906096402570Smrg_ACEOF
906196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
906296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
906396402570Smrgelse
906496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
906596402570Smrgfi
906696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
906796402570Smrgfi
906896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
906996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
907096402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
907196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
907296402570Smrgfi
907396402570Smrg
907496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
907596402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
907696402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
907796402570Smrg	fi
907896402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
907996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
908096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
908196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
908296402570Smrg  $as_echo_n "(cached) " >&6
908396402570Smrgelse
908496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
908596402570Smrg/* end confdefs.h.  */
908696402570Smrgint i;
908796402570Smrg_ACEOF
908896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
908996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
909096402570Smrgelse
909196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
909296402570Smrgfi
909396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
909496402570Smrgfi
909596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
909696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
909796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
909896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
909996402570Smrgfi
910096402570Smrg
910196402570Smrgfound="no"
910296402570Smrg
910396402570Smrg	if test $found = "no" ; then
910496402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
910596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
910696402570Smrg		fi
910796402570Smrg
910896402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
910996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
911096402570Smrg		fi
911196402570Smrg
911296402570Smrg		CFLAGS="$CFLAGS -Wmain"
911396402570Smrg
911496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
911596402570Smrg$as_echo_n "checking if $CC supports-Wmain... " >&6; }
911696402570Smrg		cacheid=xorg_cv_cc_flag__Wmain
911796402570Smrg		if eval \${$cacheid+:} false; then :
911896402570Smrg  $as_echo_n "(cached) " >&6
911996402570Smrgelse
912096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
912196402570Smrg/* end confdefs.h.  */
912296402570Smrgint i;
912396402570Smrgint
912496402570Smrgmain ()
912596402570Smrg{
912696402570Smrg
912796402570Smrg  ;
912896402570Smrg  return 0;
912996402570Smrg}
913096402570Smrg_ACEOF
913196402570Smrgif ac_fn_c_try_link "$LINENO"; then :
913296402570Smrg  eval $cacheid=yes
913396402570Smrgelse
913496402570Smrg  eval $cacheid=no
913596402570Smrgfi
913696402570Smrgrm -f core conftest.err conftest.$ac_objext \
913796402570Smrg    conftest$ac_exeext conftest.$ac_ext
913896402570Smrgfi
913996402570Smrg
914096402570Smrg
914196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
914296402570Smrg
914396402570Smrg		eval supported=\$$cacheid
914496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
914596402570Smrg$as_echo "$supported" >&6; }
914696402570Smrg		if test "$supported" = "yes" ; then
914796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
914896402570Smrg			found="yes"
914996402570Smrg		fi
915096402570Smrg	fi
915196402570Smrg
915296402570Smrg
915396402570Smrg
915496402570Smrg
915596402570Smrg
915696402570Smrg
915796402570Smrg
915896402570Smrg
915996402570Smrg
916096402570Smrg
916196402570Smrg
916296402570Smrg
916396402570Smrg
916496402570Smrg
916596402570Smrg
916696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
916796402570Smrg
916896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
916996402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
917096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
917196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
917296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
917396402570Smrg  $as_echo_n "(cached) " >&6
917496402570Smrgelse
917596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
917696402570Smrg/* end confdefs.h.  */
917796402570Smrgint i;
917896402570Smrg_ACEOF
917996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
918096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
918196402570Smrgelse
918296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
918396402570Smrgfi
918496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
918596402570Smrgfi
918696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
918796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
918896402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
918996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
919096402570Smrgfi
919196402570Smrg
919296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
919396402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
919496402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
919596402570Smrg	fi
919696402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
919796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
919896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
919996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
920096402570Smrg  $as_echo_n "(cached) " >&6
920196402570Smrgelse
920296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
920396402570Smrg/* end confdefs.h.  */
920496402570Smrgint i;
920596402570Smrg_ACEOF
920696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
920796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
920896402570Smrgelse
920996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
921096402570Smrgfi
921196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
921296402570Smrgfi
921396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
921496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
921596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
921696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
921796402570Smrgfi
921896402570Smrg
921996402570Smrgfound="no"
922096402570Smrg
922196402570Smrg	if test $found = "no" ; then
922296402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
922396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
922496402570Smrg		fi
922596402570Smrg
922696402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
922796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
922896402570Smrg		fi
922996402570Smrg
923096402570Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
923196402570Smrg
923296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
923396402570Smrg$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
923496402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
923596402570Smrg		if eval \${$cacheid+:} false; then :
923696402570Smrg  $as_echo_n "(cached) " >&6
923796402570Smrgelse
923896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
923996402570Smrg/* end confdefs.h.  */
924096402570Smrgint i;
924196402570Smrgint
924296402570Smrgmain ()
924396402570Smrg{
924496402570Smrg
924596402570Smrg  ;
924696402570Smrg  return 0;
924796402570Smrg}
924896402570Smrg_ACEOF
924996402570Smrgif ac_fn_c_try_link "$LINENO"; then :
925096402570Smrg  eval $cacheid=yes
925196402570Smrgelse
925296402570Smrg  eval $cacheid=no
925396402570Smrgfi
925496402570Smrgrm -f core conftest.err conftest.$ac_objext \
925596402570Smrg    conftest$ac_exeext conftest.$ac_ext
925696402570Smrgfi
925796402570Smrg
925896402570Smrg
925996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
926096402570Smrg
926196402570Smrg		eval supported=\$$cacheid
926296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
926396402570Smrg$as_echo "$supported" >&6; }
926496402570Smrg		if test "$supported" = "yes" ; then
926596402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
926696402570Smrg			found="yes"
926796402570Smrg		fi
926896402570Smrg	fi
926996402570Smrg
927096402570Smrg
927196402570Smrg
927296402570Smrg
927396402570Smrg
927496402570Smrg
927596402570Smrg
927696402570Smrg
927796402570Smrg
927896402570Smrg
927996402570Smrg
928096402570Smrg
928196402570Smrg
928296402570Smrg
928396402570Smrg
928496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
928596402570Smrg
928696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
928796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
928896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
928996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
929096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
929196402570Smrg  $as_echo_n "(cached) " >&6
929296402570Smrgelse
929396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
929496402570Smrg/* end confdefs.h.  */
929596402570Smrgint i;
929696402570Smrg_ACEOF
929796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
929896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
929996402570Smrgelse
930096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
930196402570Smrgfi
930296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
930396402570Smrgfi
930496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
930596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
930696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
930796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
930896402570Smrgfi
930996402570Smrg
931096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
931196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
931296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
931396402570Smrg	fi
931496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
931596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
931696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
931796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
931896402570Smrg  $as_echo_n "(cached) " >&6
931996402570Smrgelse
932096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
932196402570Smrg/* end confdefs.h.  */
932296402570Smrgint i;
932396402570Smrg_ACEOF
932496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
932596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
932696402570Smrgelse
932796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
932896402570Smrgfi
932996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
933096402570Smrgfi
933196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
933296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
933396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
933496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
933596402570Smrgfi
933696402570Smrg
933796402570Smrgfound="no"
933896402570Smrg
933996402570Smrg	if test $found = "no" ; then
934096402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
934196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
934296402570Smrg		fi
934396402570Smrg
934496402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
934596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
934696402570Smrg		fi
934796402570Smrg
934896402570Smrg		CFLAGS="$CFLAGS -Wsequence-point"
934996402570Smrg
935096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
935196402570Smrg$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
935296402570Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
935396402570Smrg		if eval \${$cacheid+:} false; then :
935496402570Smrg  $as_echo_n "(cached) " >&6
935596402570Smrgelse
935696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
935796402570Smrg/* end confdefs.h.  */
935896402570Smrgint i;
935996402570Smrgint
936096402570Smrgmain ()
936196402570Smrg{
936296402570Smrg
936396402570Smrg  ;
936496402570Smrg  return 0;
936596402570Smrg}
936696402570Smrg_ACEOF
936796402570Smrgif ac_fn_c_try_link "$LINENO"; then :
936896402570Smrg  eval $cacheid=yes
936996402570Smrgelse
937096402570Smrg  eval $cacheid=no
937196402570Smrgfi
937296402570Smrgrm -f core conftest.err conftest.$ac_objext \
937396402570Smrg    conftest$ac_exeext conftest.$ac_ext
937496402570Smrgfi
937596402570Smrg
937696402570Smrg
937796402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
937896402570Smrg
937996402570Smrg		eval supported=\$$cacheid
938096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
938196402570Smrg$as_echo "$supported" >&6; }
938296402570Smrg		if test "$supported" = "yes" ; then
938396402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
938496402570Smrg			found="yes"
938596402570Smrg		fi
938696402570Smrg	fi
938796402570Smrg
938896402570Smrg
938996402570Smrg
939096402570Smrg
939196402570Smrg
939296402570Smrg
939396402570Smrg
939496402570Smrg
939596402570Smrg
939696402570Smrg
939796402570Smrg
939896402570Smrg
939996402570Smrg
940096402570Smrg
940196402570Smrg
940296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
940396402570Smrg
940496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
940596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
940696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
940796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
940896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
940996402570Smrg  $as_echo_n "(cached) " >&6
941096402570Smrgelse
941196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
941296402570Smrg/* end confdefs.h.  */
941396402570Smrgint i;
941496402570Smrg_ACEOF
941596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
941696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
941796402570Smrgelse
941896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
941996402570Smrgfi
942096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
942196402570Smrgfi
942296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
942396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
942496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
942596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
942696402570Smrgfi
942796402570Smrg
942896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
942996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
943096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
943196402570Smrg	fi
943296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
943396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
943496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
943596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
943696402570Smrg  $as_echo_n "(cached) " >&6
943796402570Smrgelse
943896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
943996402570Smrg/* end confdefs.h.  */
944096402570Smrgint i;
944196402570Smrg_ACEOF
944296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
944396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
944496402570Smrgelse
944596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
944696402570Smrgfi
944796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
944896402570Smrgfi
944996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
945096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
945196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
945296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
945396402570Smrgfi
945496402570Smrg
945596402570Smrgfound="no"
945696402570Smrg
945796402570Smrg	if test $found = "no" ; then
945896402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
945996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
946096402570Smrg		fi
946196402570Smrg
946296402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
946396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
946496402570Smrg		fi
946596402570Smrg
946696402570Smrg		CFLAGS="$CFLAGS -Wreturn-type"
946796402570Smrg
946896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
946996402570Smrg$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
947096402570Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
947196402570Smrg		if eval \${$cacheid+:} false; then :
947296402570Smrg  $as_echo_n "(cached) " >&6
947396402570Smrgelse
947496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
947596402570Smrg/* end confdefs.h.  */
947696402570Smrgint i;
947796402570Smrgint
947896402570Smrgmain ()
947996402570Smrg{
948096402570Smrg
948196402570Smrg  ;
948296402570Smrg  return 0;
948396402570Smrg}
948496402570Smrg_ACEOF
948596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
948696402570Smrg  eval $cacheid=yes
948796402570Smrgelse
948896402570Smrg  eval $cacheid=no
948996402570Smrgfi
949096402570Smrgrm -f core conftest.err conftest.$ac_objext \
949196402570Smrg    conftest$ac_exeext conftest.$ac_ext
949296402570Smrgfi
949396402570Smrg
949496402570Smrg
949596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
949696402570Smrg
949796402570Smrg		eval supported=\$$cacheid
949896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
949996402570Smrg$as_echo "$supported" >&6; }
950096402570Smrg		if test "$supported" = "yes" ; then
950196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
950296402570Smrg			found="yes"
950396402570Smrg		fi
950496402570Smrg	fi
950596402570Smrg
950696402570Smrg
950796402570Smrg
950896402570Smrg
950996402570Smrg
951096402570Smrg
951196402570Smrg
951296402570Smrg
951396402570Smrg
951496402570Smrg
951596402570Smrg
951696402570Smrg
951796402570Smrg
951896402570Smrg
951996402570Smrg
952096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
952196402570Smrg
952296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
952396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
952496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
952596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
952696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
952796402570Smrg  $as_echo_n "(cached) " >&6
952896402570Smrgelse
952996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953096402570Smrg/* end confdefs.h.  */
953196402570Smrgint i;
953296402570Smrg_ACEOF
953396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
953496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
953596402570Smrgelse
953696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
953796402570Smrgfi
953896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
953996402570Smrgfi
954096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
954196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
954296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
954396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
954496402570Smrgfi
954596402570Smrg
954696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
954796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
954896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
954996402570Smrg	fi
955096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
955196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
955296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
955396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
955496402570Smrg  $as_echo_n "(cached) " >&6
955596402570Smrgelse
955696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
955796402570Smrg/* end confdefs.h.  */
955896402570Smrgint i;
955996402570Smrg_ACEOF
956096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
956196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
956296402570Smrgelse
956396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
956496402570Smrgfi
956596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
956696402570Smrgfi
956796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
956896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
956996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
957096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
957196402570Smrgfi
957296402570Smrg
957396402570Smrgfound="no"
957496402570Smrg
957596402570Smrg	if test $found = "no" ; then
957696402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
957796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
957896402570Smrg		fi
957996402570Smrg
958096402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
958196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
958296402570Smrg		fi
958396402570Smrg
958496402570Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
958596402570Smrg
958696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
958796402570Smrg$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
958896402570Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
958996402570Smrg		if eval \${$cacheid+:} false; then :
959096402570Smrg  $as_echo_n "(cached) " >&6
959196402570Smrgelse
959296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
959396402570Smrg/* end confdefs.h.  */
959496402570Smrgint i;
959596402570Smrgint
959696402570Smrgmain ()
959796402570Smrg{
959896402570Smrg
959996402570Smrg  ;
960096402570Smrg  return 0;
960196402570Smrg}
960296402570Smrg_ACEOF
960396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
960496402570Smrg  eval $cacheid=yes
960596402570Smrgelse
960696402570Smrg  eval $cacheid=no
960796402570Smrgfi
960896402570Smrgrm -f core conftest.err conftest.$ac_objext \
960996402570Smrg    conftest$ac_exeext conftest.$ac_ext
961096402570Smrgfi
961196402570Smrg
961296402570Smrg
961396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
961496402570Smrg
961596402570Smrg		eval supported=\$$cacheid
961696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
961796402570Smrg$as_echo "$supported" >&6; }
961896402570Smrg		if test "$supported" = "yes" ; then
961996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
962096402570Smrg			found="yes"
962196402570Smrg		fi
962296402570Smrg	fi
962396402570Smrg
962496402570Smrg
962596402570Smrg
962696402570Smrg
962796402570Smrg
962896402570Smrg
962996402570Smrg
963096402570Smrg
963196402570Smrg
963296402570Smrg
963396402570Smrg
963496402570Smrg
963596402570Smrg
963696402570Smrg
963796402570Smrg
963896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
963996402570Smrg
964096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
964196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
964296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
964396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
964496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
964596402570Smrg  $as_echo_n "(cached) " >&6
964696402570Smrgelse
964796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
964896402570Smrg/* end confdefs.h.  */
964996402570Smrgint i;
965096402570Smrg_ACEOF
965196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
965296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
965396402570Smrgelse
965496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
965596402570Smrgfi
965696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
965796402570Smrgfi
965896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
965996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
966096402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
966196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
966296402570Smrgfi
966396402570Smrg
966496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
966596402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
966696402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
966796402570Smrg	fi
966896402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
966996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
967096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
967196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
967296402570Smrg  $as_echo_n "(cached) " >&6
967396402570Smrgelse
967496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
967596402570Smrg/* end confdefs.h.  */
967696402570Smrgint i;
967796402570Smrg_ACEOF
967896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
967996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
968096402570Smrgelse
968196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
968296402570Smrgfi
968396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
968496402570Smrgfi
968596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
968696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
968796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
968896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
968996402570Smrgfi
969096402570Smrg
969196402570Smrgfound="no"
969296402570Smrg
969396402570Smrg	if test $found = "no" ; then
969496402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
969596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
969696402570Smrg		fi
969796402570Smrg
969896402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
969996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
970096402570Smrg		fi
970196402570Smrg
970296402570Smrg		CFLAGS="$CFLAGS -Warray-bounds"
970396402570Smrg
970496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
970596402570Smrg$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
970696402570Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
970796402570Smrg		if eval \${$cacheid+:} false; then :
970896402570Smrg  $as_echo_n "(cached) " >&6
970996402570Smrgelse
971096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
971196402570Smrg/* end confdefs.h.  */
971296402570Smrgint i;
971396402570Smrgint
971496402570Smrgmain ()
971596402570Smrg{
971696402570Smrg
971796402570Smrg  ;
971896402570Smrg  return 0;
971996402570Smrg}
972096402570Smrg_ACEOF
972196402570Smrgif ac_fn_c_try_link "$LINENO"; then :
972296402570Smrg  eval $cacheid=yes
972396402570Smrgelse
972496402570Smrg  eval $cacheid=no
972596402570Smrgfi
972696402570Smrgrm -f core conftest.err conftest.$ac_objext \
972796402570Smrg    conftest$ac_exeext conftest.$ac_ext
972896402570Smrgfi
972996402570Smrg
973096402570Smrg
973196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
973296402570Smrg
973396402570Smrg		eval supported=\$$cacheid
973496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
973596402570Smrg$as_echo "$supported" >&6; }
973696402570Smrg		if test "$supported" = "yes" ; then
973796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
973896402570Smrg			found="yes"
973996402570Smrg		fi
974096402570Smrg	fi
974196402570Smrg
974296402570Smrg
974396402570Smrg
974496402570Smrg
974596402570Smrg
974696402570Smrg
974796402570Smrg
974896402570Smrg
974996402570Smrg
975096402570Smrg
975196402570Smrg
975296402570Smrg
975396402570Smrg
975496402570Smrg
975596402570Smrg
975696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
975796402570Smrg
975896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
975996402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
976096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
976196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
976296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
976396402570Smrg  $as_echo_n "(cached) " >&6
976496402570Smrgelse
976596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
976696402570Smrg/* end confdefs.h.  */
976796402570Smrgint i;
976896402570Smrg_ACEOF
976996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
977096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
977196402570Smrgelse
977296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
977396402570Smrgfi
977496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
977596402570Smrgfi
977696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
977796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
977896402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
977996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
978096402570Smrgfi
978196402570Smrg
978296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
978396402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
978496402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
978596402570Smrg	fi
978696402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
978796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
978896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
978996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
979096402570Smrg  $as_echo_n "(cached) " >&6
979196402570Smrgelse
979296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979396402570Smrg/* end confdefs.h.  */
979496402570Smrgint i;
979596402570Smrg_ACEOF
979696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
979796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
979896402570Smrgelse
979996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
980096402570Smrgfi
980196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
980296402570Smrgfi
980396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
980496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
980596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
980696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
980796402570Smrgfi
980896402570Smrg
980996402570Smrgfound="no"
981096402570Smrg
981196402570Smrg	if test $found = "no" ; then
981296402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
981396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
981496402570Smrg		fi
981596402570Smrg
981696402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
981796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
981896402570Smrg		fi
981996402570Smrg
982096402570Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
982196402570Smrg
982296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
982396402570Smrg$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
982496402570Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
982596402570Smrg		if eval \${$cacheid+:} false; then :
982696402570Smrg  $as_echo_n "(cached) " >&6
982796402570Smrgelse
982896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
982996402570Smrg/* end confdefs.h.  */
983096402570Smrgint i;
983196402570Smrgint
983296402570Smrgmain ()
983396402570Smrg{
983496402570Smrg
983596402570Smrg  ;
983696402570Smrg  return 0;
983796402570Smrg}
983896402570Smrg_ACEOF
983996402570Smrgif ac_fn_c_try_link "$LINENO"; then :
984096402570Smrg  eval $cacheid=yes
984196402570Smrgelse
984296402570Smrg  eval $cacheid=no
984396402570Smrgfi
984496402570Smrgrm -f core conftest.err conftest.$ac_objext \
984596402570Smrg    conftest$ac_exeext conftest.$ac_ext
984696402570Smrgfi
984796402570Smrg
984896402570Smrg
984996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
985096402570Smrg
985196402570Smrg		eval supported=\$$cacheid
985296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
985396402570Smrg$as_echo "$supported" >&6; }
985496402570Smrg		if test "$supported" = "yes" ; then
985596402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
985696402570Smrg			found="yes"
985796402570Smrg		fi
985896402570Smrg	fi
985996402570Smrg
986096402570Smrg
986196402570Smrg
986296402570Smrg
986396402570Smrg
986496402570Smrg
986596402570Smrg
986696402570Smrg
986796402570Smrg
986896402570Smrg
986996402570Smrg
987096402570Smrg
987196402570Smrg
987296402570Smrg
987396402570Smrg
987496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
987596402570Smrg
987696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
987796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
987896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
987996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
988096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
988196402570Smrg  $as_echo_n "(cached) " >&6
988296402570Smrgelse
988396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
988496402570Smrg/* end confdefs.h.  */
988596402570Smrgint i;
988696402570Smrg_ACEOF
988796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
988896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
988996402570Smrgelse
989096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
989196402570Smrgfi
989296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
989396402570Smrgfi
989496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
989596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
989696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
989796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
989896402570Smrgfi
989996402570Smrg
990096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
990196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
990296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
990396402570Smrg	fi
990496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
990596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
990696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
990796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
990896402570Smrg  $as_echo_n "(cached) " >&6
990996402570Smrgelse
991096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
991196402570Smrg/* end confdefs.h.  */
991296402570Smrgint i;
991396402570Smrg_ACEOF
991496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
991596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
991696402570Smrgelse
991796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
991896402570Smrgfi
991996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
992096402570Smrgfi
992196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
992296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
992396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
992496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
992596402570Smrgfi
992696402570Smrg
992796402570Smrgfound="no"
992896402570Smrg
992996402570Smrg	if test $found = "no" ; then
993096402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
993196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
993296402570Smrg		fi
993396402570Smrg
993496402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
993596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
993696402570Smrg		fi
993796402570Smrg
993896402570Smrg		CFLAGS="$CFLAGS -Waddress"
993996402570Smrg
994096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
994196402570Smrg$as_echo_n "checking if $CC supports-Waddress... " >&6; }
994296402570Smrg		cacheid=xorg_cv_cc_flag__Waddress
994396402570Smrg		if eval \${$cacheid+:} false; then :
994496402570Smrg  $as_echo_n "(cached) " >&6
994596402570Smrgelse
994696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
994796402570Smrg/* end confdefs.h.  */
994896402570Smrgint i;
994996402570Smrgint
995096402570Smrgmain ()
995196402570Smrg{
995296402570Smrg
995396402570Smrg  ;
995496402570Smrg  return 0;
995596402570Smrg}
995696402570Smrg_ACEOF
995796402570Smrgif ac_fn_c_try_link "$LINENO"; then :
995896402570Smrg  eval $cacheid=yes
995996402570Smrgelse
996096402570Smrg  eval $cacheid=no
996196402570Smrgfi
996296402570Smrgrm -f core conftest.err conftest.$ac_objext \
996396402570Smrg    conftest$ac_exeext conftest.$ac_ext
996496402570Smrgfi
996596402570Smrg
996696402570Smrg
996796402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
996896402570Smrg
996996402570Smrg		eval supported=\$$cacheid
997096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
997196402570Smrg$as_echo "$supported" >&6; }
997296402570Smrg		if test "$supported" = "yes" ; then
997396402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
997496402570Smrg			found="yes"
997596402570Smrg		fi
997696402570Smrg	fi
997796402570Smrg
997896402570Smrg
997996402570Smrg
998096402570Smrg
998196402570Smrg
998296402570Smrg
998396402570Smrg
998496402570Smrg
998596402570Smrg
998696402570Smrg
998796402570Smrg
998896402570Smrg
998996402570Smrg
999096402570Smrg
999196402570Smrg
999296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
999396402570Smrg
999496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
999596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
999696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
999796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
999896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
999996402570Smrg  $as_echo_n "(cached) " >&6
1000096402570Smrgelse
1000196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1000296402570Smrg/* end confdefs.h.  */
1000396402570Smrgint i;
1000496402570Smrg_ACEOF
1000596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1000696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1000796402570Smrgelse
1000896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1000996402570Smrgfi
1001096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1001196402570Smrgfi
1001296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1001396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1001496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1001596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1001696402570Smrgfi
1001796402570Smrg
1001896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1001996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1002096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1002196402570Smrg	fi
1002296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1002396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1002496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1002596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1002696402570Smrg  $as_echo_n "(cached) " >&6
1002796402570Smrgelse
1002896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1002996402570Smrg/* end confdefs.h.  */
1003096402570Smrgint i;
1003196402570Smrg_ACEOF
1003296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1003396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1003496402570Smrgelse
1003596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1003696402570Smrgfi
1003796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1003896402570Smrgfi
1003996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1004096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1004196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1004296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1004396402570Smrgfi
1004496402570Smrg
1004596402570Smrgfound="no"
1004696402570Smrg
1004796402570Smrg	if test $found = "no" ; then
1004896402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1004996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1005096402570Smrg		fi
1005196402570Smrg
1005296402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1005396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1005496402570Smrg		fi
1005596402570Smrg
1005696402570Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
1005796402570Smrg
1005896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
1005996402570Smrg$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
1006096402570Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
1006196402570Smrg		if eval \${$cacheid+:} false; then :
1006296402570Smrg  $as_echo_n "(cached) " >&6
1006396402570Smrgelse
1006496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1006596402570Smrg/* end confdefs.h.  */
1006696402570Smrgint i;
1006796402570Smrgint
1006896402570Smrgmain ()
1006996402570Smrg{
1007096402570Smrg
1007196402570Smrg  ;
1007296402570Smrg  return 0;
1007396402570Smrg}
1007496402570Smrg_ACEOF
1007596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1007696402570Smrg  eval $cacheid=yes
1007796402570Smrgelse
1007896402570Smrg  eval $cacheid=no
1007996402570Smrgfi
1008096402570Smrgrm -f core conftest.err conftest.$ac_objext \
1008196402570Smrg    conftest$ac_exeext conftest.$ac_ext
1008296402570Smrgfi
1008396402570Smrg
1008496402570Smrg
1008596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1008696402570Smrg
1008796402570Smrg		eval supported=\$$cacheid
1008896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1008996402570Smrg$as_echo "$supported" >&6; }
1009096402570Smrg		if test "$supported" = "yes" ; then
1009196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
1009296402570Smrg			found="yes"
1009396402570Smrg		fi
1009496402570Smrg	fi
1009596402570Smrg
1009696402570Smrg
1009796402570Smrg
1009896402570Smrg
1009996402570Smrg
1010096402570Smrg
1010196402570Smrg
1010296402570Smrg
1010396402570Smrg
1010496402570Smrg
1010596402570Smrg
1010696402570Smrg
1010796402570Smrg
1010896402570Smrg
1010996402570Smrg
1011096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1011196402570Smrg
1011296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1011396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1011496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1011596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1011696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1011796402570Smrg  $as_echo_n "(cached) " >&6
1011896402570Smrgelse
1011996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1012096402570Smrg/* end confdefs.h.  */
1012196402570Smrgint i;
1012296402570Smrg_ACEOF
1012396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1012496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1012596402570Smrgelse
1012696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1012796402570Smrgfi
1012896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1012996402570Smrgfi
1013096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1013196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1013296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1013396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1013496402570Smrgfi
1013596402570Smrg
1013696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1013796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1013896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1013996402570Smrg	fi
1014096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1014196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1014296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1014396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1014496402570Smrg  $as_echo_n "(cached) " >&6
1014596402570Smrgelse
1014696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1014796402570Smrg/* end confdefs.h.  */
1014896402570Smrgint i;
1014996402570Smrg_ACEOF
1015096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1015196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1015296402570Smrgelse
1015396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1015496402570Smrgfi
1015596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1015696402570Smrgfi
1015796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1015896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1015996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1016096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1016196402570Smrgfi
1016296402570Smrg
1016396402570Smrgfound="no"
1016496402570Smrg
1016596402570Smrg	if test $found = "no" ; then
1016696402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1016796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1016896402570Smrg		fi
1016996402570Smrg
1017096402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1017196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1017296402570Smrg		fi
1017396402570Smrg
1017496402570Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
1017596402570Smrg
1017696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
1017796402570Smrg$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
1017896402570Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
1017996402570Smrg		if eval \${$cacheid+:} false; then :
1018096402570Smrg  $as_echo_n "(cached) " >&6
1018196402570Smrgelse
1018296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1018396402570Smrg/* end confdefs.h.  */
1018496402570Smrgint i;
1018596402570Smrgint
1018696402570Smrgmain ()
1018796402570Smrg{
1018896402570Smrg
1018996402570Smrg  ;
1019096402570Smrg  return 0;
1019196402570Smrg}
1019296402570Smrg_ACEOF
1019396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1019496402570Smrg  eval $cacheid=yes
1019596402570Smrgelse
1019696402570Smrg  eval $cacheid=no
1019796402570Smrgfi
1019896402570Smrgrm -f core conftest.err conftest.$ac_objext \
1019996402570Smrg    conftest$ac_exeext conftest.$ac_ext
1020096402570Smrgfi
1020196402570Smrg
1020296402570Smrg
1020396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1020496402570Smrg
1020596402570Smrg		eval supported=\$$cacheid
1020696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1020796402570Smrg$as_echo "$supported" >&6; }
1020896402570Smrg		if test "$supported" = "yes" ; then
1020996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
1021096402570Smrg			found="yes"
1021196402570Smrg		fi
1021296402570Smrg	fi
1021396402570Smrg
1021496402570Smrg
1021596402570Smrgfi
1021696402570Smrg
1021796402570Smrg
1021896402570Smrg
1021996402570Smrg
1022096402570Smrg
1022196402570Smrg
1022296402570Smrg
1022396402570Smrg		CWARNFLAGS="$BASE_CFLAGS"
1022496402570Smrg		if  test "x$GCC" = xyes ; then
1022596402570Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
1022696402570Smrg		fi
1022796402570Smrg
1022896402570Smrg
1022996402570Smrg
1023096402570Smrg
1023196402570Smrg
1023296402570Smrg
1023396402570Smrg
1023496402570Smrg
1023596402570Smrg# Check whether --enable-strict-compilation was given.
1023696402570Smrgif test "${enable_strict_compilation+set}" = set; then :
1023796402570Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
1023896402570Smrgelse
1023996402570Smrg  STRICT_COMPILE=no
1024096402570Smrgfi
1024196402570Smrg
1024296402570Smrg
1024396402570Smrg
1024496402570Smrg
1024596402570Smrg
1024696402570Smrg
1024796402570SmrgSTRICT_CFLAGS=""
1024896402570Smrg
1024996402570Smrg
1025096402570Smrg
1025196402570Smrg
1025296402570Smrg
1025396402570Smrg
1025496402570Smrg
1025596402570Smrg
1025696402570Smrg
1025796402570Smrg
1025896402570Smrg
1025996402570Smrg
1026096402570Smrg
1026196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1026296402570Smrg
1026396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1026496402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1026596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1026696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1026796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1026896402570Smrg  $as_echo_n "(cached) " >&6
1026996402570Smrgelse
1027096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1027196402570Smrg/* end confdefs.h.  */
1027296402570Smrgint i;
1027396402570Smrg_ACEOF
1027496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1027596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1027696402570Smrgelse
1027796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1027896402570Smrgfi
1027996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1028096402570Smrgfi
1028196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1028296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1028396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1028496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1028596402570Smrgfi
1028696402570Smrg
1028796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1028896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1028996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1029096402570Smrg	fi
1029196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1029296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1029396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1029496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1029596402570Smrg  $as_echo_n "(cached) " >&6
1029696402570Smrgelse
1029796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1029896402570Smrg/* end confdefs.h.  */
1029996402570Smrgint i;
1030096402570Smrg_ACEOF
1030196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1030296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1030396402570Smrgelse
1030496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1030596402570Smrgfi
1030696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1030796402570Smrgfi
1030896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1030996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1031096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1031196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1031296402570Smrgfi
1031396402570Smrg
1031496402570Smrgfound="no"
1031596402570Smrg
1031696402570Smrg	if test $found = "no" ; then
1031796402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1031896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1031996402570Smrg		fi
1032096402570Smrg
1032196402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1032296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1032396402570Smrg		fi
1032496402570Smrg
1032596402570Smrg		CFLAGS="$CFLAGS -pedantic"
1032696402570Smrg
1032796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
1032896402570Smrg$as_echo_n "checking if $CC supports-pedantic... " >&6; }
1032996402570Smrg		cacheid=xorg_cv_cc_flag__pedantic
1033096402570Smrg		if eval \${$cacheid+:} false; then :
1033196402570Smrg  $as_echo_n "(cached) " >&6
1033296402570Smrgelse
1033396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1033496402570Smrg/* end confdefs.h.  */
1033596402570Smrgint i;
1033696402570Smrgint
1033796402570Smrgmain ()
1033896402570Smrg{
1033996402570Smrg
1034096402570Smrg  ;
1034196402570Smrg  return 0;
1034296402570Smrg}
1034396402570Smrg_ACEOF
1034496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1034596402570Smrg  eval $cacheid=yes
1034696402570Smrgelse
1034796402570Smrg  eval $cacheid=no
1034896402570Smrgfi
1034996402570Smrgrm -f core conftest.err conftest.$ac_objext \
1035096402570Smrg    conftest$ac_exeext conftest.$ac_ext
1035196402570Smrgfi
1035296402570Smrg
1035396402570Smrg
1035496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1035596402570Smrg
1035696402570Smrg		eval supported=\$$cacheid
1035796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1035896402570Smrg$as_echo "$supported" >&6; }
1035996402570Smrg		if test "$supported" = "yes" ; then
1036096402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
1036196402570Smrg			found="yes"
1036296402570Smrg		fi
1036396402570Smrg	fi
1036496402570Smrg
1036596402570Smrg
1036696402570Smrg
1036796402570Smrg
1036896402570Smrg
1036996402570Smrg
1037096402570Smrg
1037196402570Smrg
1037296402570Smrg
1037396402570Smrg
1037496402570Smrg
1037596402570Smrg
1037696402570Smrg
1037796402570Smrg
1037896402570Smrg
1037996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1038096402570Smrg
1038196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1038296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1038396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1038496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1038596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1038696402570Smrg  $as_echo_n "(cached) " >&6
1038796402570Smrgelse
1038896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1038996402570Smrg/* end confdefs.h.  */
1039096402570Smrgint i;
1039196402570Smrg_ACEOF
1039296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1039396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1039496402570Smrgelse
1039596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1039696402570Smrgfi
1039796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1039896402570Smrgfi
1039996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1040096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1040196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1040296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1040396402570Smrgfi
1040496402570Smrg
1040596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1040696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1040796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1040896402570Smrg	fi
1040996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1041096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1041196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1041296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1041396402570Smrg  $as_echo_n "(cached) " >&6
1041496402570Smrgelse
1041596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1041696402570Smrg/* end confdefs.h.  */
1041796402570Smrgint i;
1041896402570Smrg_ACEOF
1041996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1042096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1042196402570Smrgelse
1042296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1042396402570Smrgfi
1042496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1042596402570Smrgfi
1042696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1042796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1042896402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1042996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1043096402570Smrgfi
1043196402570Smrg
1043296402570Smrgfound="no"
1043396402570Smrg
1043496402570Smrg	if test $found = "no" ; then
1043596402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1043696402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1043796402570Smrg		fi
1043896402570Smrg
1043996402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1044096402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1044196402570Smrg		fi
1044296402570Smrg
1044396402570Smrg		CFLAGS="$CFLAGS -Werror"
1044496402570Smrg
1044596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
1044696402570Smrg$as_echo_n "checking if $CC supports-Werror... " >&6; }
1044796402570Smrg		cacheid=xorg_cv_cc_flag__Werror
1044896402570Smrg		if eval \${$cacheid+:} false; then :
1044996402570Smrg  $as_echo_n "(cached) " >&6
1045096402570Smrgelse
1045196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1045296402570Smrg/* end confdefs.h.  */
1045396402570Smrgint i;
1045496402570Smrgint
1045596402570Smrgmain ()
1045696402570Smrg{
1045796402570Smrg
1045896402570Smrg  ;
1045996402570Smrg  return 0;
1046096402570Smrg}
1046196402570Smrg_ACEOF
1046296402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1046396402570Smrg  eval $cacheid=yes
1046496402570Smrgelse
1046596402570Smrg  eval $cacheid=no
1046696402570Smrgfi
1046796402570Smrgrm -f core conftest.err conftest.$ac_objext \
1046896402570Smrg    conftest$ac_exeext conftest.$ac_ext
1046996402570Smrgfi
1047096402570Smrg
1047196402570Smrg
1047296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1047396402570Smrg
1047496402570Smrg		eval supported=\$$cacheid
1047596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1047696402570Smrg$as_echo "$supported" >&6; }
1047796402570Smrg		if test "$supported" = "yes" ; then
1047896402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
1047996402570Smrg			found="yes"
1048096402570Smrg		fi
1048196402570Smrg	fi
1048296402570Smrg
1048396402570Smrg	if test $found = "no" ; then
1048496402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1048596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1048696402570Smrg		fi
1048796402570Smrg
1048896402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1048996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1049096402570Smrg		fi
1049196402570Smrg
1049296402570Smrg		CFLAGS="$CFLAGS -errwarn"
1049396402570Smrg
1049496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
1049596402570Smrg$as_echo_n "checking if $CC supports-errwarn... " >&6; }
1049696402570Smrg		cacheid=xorg_cv_cc_flag__errwarn
1049796402570Smrg		if eval \${$cacheid+:} false; then :
1049896402570Smrg  $as_echo_n "(cached) " >&6
1049996402570Smrgelse
1050096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1050196402570Smrg/* end confdefs.h.  */
1050296402570Smrgint i;
1050396402570Smrgint
1050496402570Smrgmain ()
1050596402570Smrg{
1050696402570Smrg
1050796402570Smrg  ;
1050896402570Smrg  return 0;
1050996402570Smrg}
1051096402570Smrg_ACEOF
1051196402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1051296402570Smrg  eval $cacheid=yes
1051396402570Smrgelse
1051496402570Smrg  eval $cacheid=no
1051596402570Smrgfi
1051696402570Smrgrm -f core conftest.err conftest.$ac_objext \
1051796402570Smrg    conftest$ac_exeext conftest.$ac_ext
1051896402570Smrgfi
1051996402570Smrg
1052096402570Smrg
1052196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1052296402570Smrg
1052396402570Smrg		eval supported=\$$cacheid
1052496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1052596402570Smrg$as_echo "$supported" >&6; }
1052696402570Smrg		if test "$supported" = "yes" ; then
1052796402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
1052896402570Smrg			found="yes"
1052996402570Smrg		fi
1053096402570Smrg	fi
1053196402570Smrg
1053296402570Smrg
1053396402570Smrg
1053496402570Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
1053596402570Smrg# activate it with -Werror, so we add it here explicitly.
1053696402570Smrg
1053796402570Smrg
1053896402570Smrg
1053996402570Smrg
1054096402570Smrg
1054196402570Smrg
1054296402570Smrg
1054396402570Smrg
1054496402570Smrg
1054596402570Smrg
1054696402570Smrg
1054796402570Smrg
1054896402570Smrg
1054996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1055096402570Smrg
1055196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1055296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1055396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1055496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1055596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1055696402570Smrg  $as_echo_n "(cached) " >&6
1055796402570Smrgelse
1055896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1055996402570Smrg/* end confdefs.h.  */
1056096402570Smrgint i;
1056196402570Smrg_ACEOF
1056296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1056396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1056496402570Smrgelse
1056596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1056696402570Smrgfi
1056796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1056896402570Smrgfi
1056996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1057096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1057196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1057296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1057396402570Smrgfi
1057496402570Smrg
1057596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1057696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1057796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1057896402570Smrg	fi
1057996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1058096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1058196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1058296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1058396402570Smrg  $as_echo_n "(cached) " >&6
1058496402570Smrgelse
1058596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1058696402570Smrg/* end confdefs.h.  */
1058796402570Smrgint i;
1058896402570Smrg_ACEOF
1058996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1059096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1059196402570Smrgelse
1059296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1059396402570Smrgfi
1059496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1059596402570Smrgfi
1059696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1059796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1059896402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1059996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1060096402570Smrgfi
1060196402570Smrg
1060296402570Smrgfound="no"
1060396402570Smrg
1060496402570Smrg	if test $found = "no" ; then
1060596402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1060696402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1060796402570Smrg		fi
1060896402570Smrg
1060996402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1061096402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1061196402570Smrg		fi
1061296402570Smrg
1061396402570Smrg		CFLAGS="$CFLAGS -Werror=attributes"
1061496402570Smrg
1061596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
1061696402570Smrg$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
106178abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_attributes
1061896402570Smrg		if eval \${$cacheid+:} false; then :
1061996402570Smrg  $as_echo_n "(cached) " >&6
1062096402570Smrgelse
1062196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1062296402570Smrg/* end confdefs.h.  */
1062396402570Smrgint i;
1062496402570Smrgint
1062596402570Smrgmain ()
1062696402570Smrg{
1062796402570Smrg
1062896402570Smrg  ;
1062996402570Smrg  return 0;
1063096402570Smrg}
1063196402570Smrg_ACEOF
1063296402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1063396402570Smrg  eval $cacheid=yes
1063496402570Smrgelse
1063596402570Smrg  eval $cacheid=no
1063696402570Smrgfi
1063796402570Smrgrm -f core conftest.err conftest.$ac_objext \
1063896402570Smrg    conftest$ac_exeext conftest.$ac_ext
1063996402570Smrgfi
1064096402570Smrg
1064196402570Smrg
1064296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1064396402570Smrg
1064496402570Smrg		eval supported=\$$cacheid
1064596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1064696402570Smrg$as_echo "$supported" >&6; }
1064796402570Smrg		if test "$supported" = "yes" ; then
1064896402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
1064996402570Smrg			found="yes"
1065096402570Smrg		fi
1065196402570Smrg	fi
1065296402570Smrg
1065396402570Smrg
1065496402570Smrg
1065596402570Smrgif test "x$STRICT_COMPILE" = "xyes"; then
1065696402570Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
1065796402570Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
1065896402570Smrgfi
1065996402570Smrg
1066096402570Smrg
1066196402570Smrg
1066296402570Smrg
1066396402570Smrg
1066496402570Smrg
1066596402570Smrgcat >>confdefs.h <<_ACEOF
1066696402570Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
1066796402570Smrg_ACEOF
1066896402570Smrg
1066996402570Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
1067096402570Smrg	if test "x$PVM" = "x"; then
1067196402570Smrg		PVM="0"
1067296402570Smrg	fi
1067396402570Smrg
1067496402570Smrgcat >>confdefs.h <<_ACEOF
1067596402570Smrg#define PACKAGE_VERSION_MINOR $PVM
1067696402570Smrg_ACEOF
1067796402570Smrg
1067896402570Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
1067996402570Smrg	if test "x$PVP" = "x"; then
1068096402570Smrg		PVP="0"
1068196402570Smrg	fi
1068296402570Smrg
1068396402570Smrgcat >>confdefs.h <<_ACEOF
1068496402570Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
1068596402570Smrg_ACEOF
1068696402570Smrg
1068796402570Smrg
1068896402570Smrg
1068996402570SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
1069096402570Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
1069196402570Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
1069296402570Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
1069396402570Smrg
1069496402570Smrg
1069596402570Smrg
1069696402570Smrg
1069796402570Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
1069896402570SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
1069996402570Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
1070096402570Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
1070196402570Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
1070296402570Smrg
1070396402570Smrg
1070496402570Smrg
1070596402570Smrg
1070696402570Smrg
1070796402570Smrg
1070896402570Smrgif test x$APP_MAN_SUFFIX = x    ; then
1070996402570Smrg    APP_MAN_SUFFIX=1
1071096402570Smrgfi
1071196402570Smrgif test x$APP_MAN_DIR = x    ; then
1071296402570Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
1071396402570Smrgfi
1071496402570Smrg
1071596402570Smrgif test x$LIB_MAN_SUFFIX = x    ; then
1071696402570Smrg    LIB_MAN_SUFFIX=3
1071796402570Smrgfi
1071896402570Smrgif test x$LIB_MAN_DIR = x    ; then
1071996402570Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
1072096402570Smrgfi
1072196402570Smrg
1072296402570Smrgif test x$FILE_MAN_SUFFIX = x    ; then
1072396402570Smrg    case $host_os in
1072496402570Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
1072596402570Smrg	*)		FILE_MAN_SUFFIX=5  ;;
1072696402570Smrg    esac
1072796402570Smrgfi
1072896402570Smrgif test x$FILE_MAN_DIR = x    ; then
1072996402570Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
1073096402570Smrgfi
1073196402570Smrg
1073296402570Smrgif test x$MISC_MAN_SUFFIX = x    ; then
1073396402570Smrg    case $host_os in
1073496402570Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
1073596402570Smrg	*)		MISC_MAN_SUFFIX=7  ;;
1073696402570Smrg    esac
1073796402570Smrgfi
1073896402570Smrgif test x$MISC_MAN_DIR = x    ; then
1073996402570Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
1074096402570Smrgfi
1074196402570Smrg
1074296402570Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
1074396402570Smrg    case $host_os in
1074496402570Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
1074596402570Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
1074696402570Smrg    esac
1074796402570Smrgfi
1074896402570Smrgif test x$DRIVER_MAN_DIR = x    ; then
1074996402570Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1075096402570Smrgfi
1075196402570Smrg
1075296402570Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
1075396402570Smrg    case $host_os in
1075496402570Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
1075596402570Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
1075696402570Smrg    esac
1075796402570Smrgfi
1075896402570Smrgif test x$ADMIN_MAN_DIR = x    ; then
1075996402570Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
1076096402570Smrgfi
1076196402570Smrg
1076296402570Smrg
1076396402570Smrg
1076496402570Smrg
1076596402570Smrg
1076696402570Smrg
1076796402570Smrg
1076896402570Smrg
1076996402570Smrg
1077096402570Smrg
1077196402570Smrg
1077296402570Smrg
1077396402570Smrg
1077496402570Smrg
1077596402570Smrg
1077696402570SmrgXORG_MAN_PAGE="X Version 11"
1077796402570Smrg
1077896402570SmrgMAN_SUBSTS="\
1077996402570Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1078096402570Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
107812adc0320Smrg	-e 's|__xservername__|Xorg|g' \
107822adc0320Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
107832adc0320Smrg	-e 's|__projectroot__|\$(prefix)|g' \
107842adc0320Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
107852adc0320Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
107862adc0320Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
107872adc0320Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
107882adc0320Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
107892adc0320Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
107902adc0320Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
107912adc0320Smrg
107922adc0320Smrg
107932adc0320Smrg
107942adc0320Smrg# Check whether --enable-silent-rules was given.
107952adc0320Smrgif test "${enable_silent_rules+set}" = set; then :
107962adc0320Smrg  enableval=$enable_silent_rules;
107972adc0320Smrgfi
107982adc0320Smrg
107998abc0ccfSmrgcase $enable_silent_rules in # (((
108008abc0ccfSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
108018abc0ccfSmrg   no) AM_DEFAULT_VERBOSITY=1;;
108028abc0ccfSmrg    *) AM_DEFAULT_VERBOSITY=0;;
108032adc0320Smrgesac
108048abc0ccfSmrgam_make=${MAKE-make}
108058abc0ccfSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
108068abc0ccfSmrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
108078abc0ccfSmrgif ${am_cv_make_support_nested_variables+:} false; then :
108087366012aSmrg  $as_echo_n "(cached) " >&6
108097a0395d0Smrgelse
108108abc0ccfSmrg  if $as_echo 'TRUE=$(BAR$(V))
108118abc0ccfSmrgBAR0=false
108128abc0ccfSmrgBAR1=true
108138abc0ccfSmrgV=1
108148abc0ccfSmrgam__doit:
108158abc0ccfSmrg	@$(TRUE)
108168abc0ccfSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
108178abc0ccfSmrg  am_cv_make_support_nested_variables=yes
108187a0395d0Smrgelse
108198abc0ccfSmrg  am_cv_make_support_nested_variables=no
108207a0395d0Smrgfi
108217a0395d0Smrgfi
108228abc0ccfSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
108238abc0ccfSmrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
108248abc0ccfSmrgif test $am_cv_make_support_nested_variables = yes; then
108258abc0ccfSmrg    AM_V='$(V)'
108268abc0ccfSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
108278abc0ccfSmrgelse
108288abc0ccfSmrg  AM_V=$AM_DEFAULT_VERBOSITY
108298abc0ccfSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
108308abc0ccfSmrgfi
108318abc0ccfSmrgAM_BACKSLASH='\'
108327a0395d0Smrg
108337a0395d0Smrg
108347a0395d0Smrg
108357a0395d0Smrgfor ac_header in net/errno.h
108362adc0320Smrgdo :
108372adc0320Smrg  ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
108382adc0320Smrgif test "x$ac_cv_header_net_errno_h" = xyes; then :
108392adc0320Smrg  cat >>confdefs.h <<_ACEOF
108402adc0320Smrg#define HAVE_NET_ERRNO_H 1
108417a0395d0Smrg_ACEOF
108427a0395d0Smrg
108437a0395d0Smrgfi
108447a0395d0Smrg
108452adc0320Smrgdone
108467a0395d0Smrg
108477a0395d0Smrg
108482adc0320Smrgfor ac_func in strlcpy
108492adc0320Smrgdo :
108502adc0320Smrg  ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
108512adc0320Smrgif test "x$ac_cv_func_strlcpy" = xyes; then :
108527a0395d0Smrg  cat >>confdefs.h <<_ACEOF
108532adc0320Smrg#define HAVE_STRLCPY 1
108547a0395d0Smrg_ACEOF
108557a0395d0Smrg
108567a0395d0Smrgfi
108577a0395d0Smrgdone
108587a0395d0Smrg
108597a0395d0Smrg
108607a0395d0Smrg# Checks for pkg-config packages
108617a0395d0Smrg
108627a0395d0Smrgpkg_failed=no
108632adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5
108647366012aSmrg$as_echo_n "checking for XAUTH... " >&6; }
108657a0395d0Smrg
108667a0395d0Smrgif test -n "$XAUTH_CFLAGS"; then
108677a0395d0Smrg    pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS"
108687a0395d0Smrg elif test -n "$PKG_CONFIG"; then
108697a0395d0Smrg    if test -n "$PKG_CONFIG" && \
108708abc0ccfSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
108718abc0ccfSmrg  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
108727a0395d0Smrg  ac_status=$?
108732adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
108742adc0320Smrg  test $ac_status = 0; }; then
108758abc0ccfSmrg  pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
108768abc0ccfSmrg		      test "x$?" != "x0" && pkg_failed=yes
108777a0395d0Smrgelse
108787a0395d0Smrg  pkg_failed=yes
108797a0395d0Smrgfi
108807a0395d0Smrg else
108817a0395d0Smrg    pkg_failed=untried
108827a0395d0Smrgfi
108837a0395d0Smrgif test -n "$XAUTH_LIBS"; then
108847a0395d0Smrg    pkg_cv_XAUTH_LIBS="$XAUTH_LIBS"
108857a0395d0Smrg elif test -n "$PKG_CONFIG"; then
108867a0395d0Smrg    if test -n "$PKG_CONFIG" && \
108878abc0ccfSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
108888abc0ccfSmrg  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
108897a0395d0Smrg  ac_status=$?
108902adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
108912adc0320Smrg  test $ac_status = 0; }; then
108928abc0ccfSmrg  pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
108938abc0ccfSmrg		      test "x$?" != "x0" && pkg_failed=yes
108947a0395d0Smrgelse
108957a0395d0Smrg  pkg_failed=yes
108967a0395d0Smrgfi
108977a0395d0Smrg else
108987a0395d0Smrg    pkg_failed=untried
108997a0395d0Smrgfi
109007a0395d0Smrg
109017a0395d0Smrg
109027a0395d0Smrg
109037a0395d0Smrgif test $pkg_failed = yes; then
109048abc0ccfSmrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
109058abc0ccfSmrg$as_echo "no" >&6; }
109067a0395d0Smrg
109077a0395d0Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
109087a0395d0Smrg        _pkg_short_errors_supported=yes
109097a0395d0Smrgelse
109107a0395d0Smrg        _pkg_short_errors_supported=no
109117a0395d0Smrgfi
109127a0395d0Smrg        if test $_pkg_short_errors_supported = yes; then
109138abc0ccfSmrg	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
109147a0395d0Smrg        else
109158abc0ccfSmrg	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
109167a0395d0Smrg        fi
109177a0395d0Smrg	# Put the nasty error message in config.log where it belongs
109187a0395d0Smrg	echo "$XAUTH_PKG_ERRORS" >&5
109197a0395d0Smrg
109208abc0ccfSmrg	as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met:
109217a0395d0Smrg
109227a0395d0Smrg$XAUTH_PKG_ERRORS
109237a0395d0Smrg
109247a0395d0SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
109257a0395d0Smrginstalled software in a non-standard prefix.
109267a0395d0Smrg
109277a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS
109287a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config.
109298abc0ccfSmrgSee the pkg-config man page for more details." "$LINENO" 5
109307a0395d0Smrgelif test $pkg_failed = untried; then
109318abc0ccfSmrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
109328abc0ccfSmrg$as_echo "no" >&6; }
109332adc0320Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
109347366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
109352adc0320Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
109367a0395d0Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
109377a0395d0Smrgpath to pkg-config.
109387a0395d0Smrg
109397a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS
109407a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config.
109417a0395d0SmrgSee the pkg-config man page for more details.
109427a0395d0Smrg
109437a0395d0SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
109442adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
109457a0395d0Smrgelse
109467a0395d0Smrg	XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS
109477a0395d0Smrg	XAUTH_LIBS=$pkg_cv_XAUTH_LIBS
109482adc0320Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
109497366012aSmrg$as_echo "yes" >&6; }
109508abc0ccfSmrg
109517a0395d0Smrgfi
109527a0395d0Smrg
109537a0395d0Smrg# Transport selection macro from xtrans.m4
109547a0395d0Smrg# Needed to set *CONN defines for gethost.c & parsedpy.c
109557a0395d0Smrg
109567a0395d0Smrg
109577366012aSmrg case $host_os in
109587366012aSmrg	mingw*)	unixdef="no"   ;;
109597366012aSmrg	*)	unixdef="yes"  ;;
109607366012aSmrg esac
109617a0395d0Smrg # Check whether --enable-unix-transport was given.
109622adc0320Smrgif test "${enable_unix_transport+set}" = set; then :
109637a0395d0Smrg  enableval=$enable_unix_transport; UNIXCONN=$enableval
109647a0395d0Smrgelse
109657366012aSmrg  UNIXCONN=$unixdef
109667a0395d0Smrgfi
109677a0395d0Smrg
109682adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
109697366012aSmrg$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
109707a0395d0Smrg if test "$UNIXCONN" = "yes"; then
109717a0395d0Smrg
109722adc0320Smrg$as_echo "#define UNIXCONN 1" >>confdefs.h
109737a0395d0Smrg
109747a0395d0Smrg fi
109752adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
109767366012aSmrg$as_echo "$UNIXCONN" >&6; }
109777366012aSmrg # Check whether --enable-tcp-transport was given.
109782adc0320Smrgif test "${enable_tcp_transport+set}" = set; then :
109797366012aSmrg  enableval=$enable_tcp_transport; TCPCONN=$enableval
109807366012aSmrgelse
109817366012aSmrg  TCPCONN=yes
109827366012aSmrgfi
109837366012aSmrg
109842adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
109857366012aSmrg$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
109862adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
109877366012aSmrg$as_echo "$TCPCONN" >&6; }
109887a0395d0Smrg if test "$TCPCONN" = "yes"; then
109897a0395d0Smrg
109902adc0320Smrg$as_echo "#define TCPCONN 1" >>confdefs.h
109917a0395d0Smrg
109927a0395d0Smrg
109937a0395d0Smrg # SVR4 hides these in libraries other than libc
109942adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
109957366012aSmrg$as_echo_n "checking for library containing socket... " >&6; }
109962adc0320Smrgif ${ac_cv_search_socket+:} false; then :
109977366012aSmrg  $as_echo_n "(cached) " >&6
109987a0395d0Smrgelse
109997a0395d0Smrg  ac_func_search_save_LIBS=$LIBS
110002adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
110017a0395d0Smrg/* end confdefs.h.  */
110027a0395d0Smrg
110037a0395d0Smrg/* Override any GCC internal prototype to avoid an error.
110047a0395d0Smrg   Use char because int might match the return type of a GCC
110057a0395d0Smrg   builtin and then its argument prototype would still apply.  */
110067a0395d0Smrg#ifdef __cplusplus
110077a0395d0Smrgextern "C"
110087a0395d0Smrg#endif
110097a0395d0Smrgchar socket ();
110107a0395d0Smrgint
110117a0395d0Smrgmain ()
110127a0395d0Smrg{
110137a0395d0Smrgreturn socket ();
110147a0395d0Smrg  ;
110157a0395d0Smrg  return 0;
110167a0395d0Smrg}
110177a0395d0Smrg_ACEOF
110187a0395d0Smrgfor ac_lib in '' socket; do
110197a0395d0Smrg  if test -z "$ac_lib"; then
110207a0395d0Smrg    ac_res="none required"
110217a0395d0Smrg  else
110227a0395d0Smrg    ac_res=-l$ac_lib
110237a0395d0Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
110242adc0320Smrg  fi
110252adc0320Smrg  if ac_fn_c_try_link "$LINENO"; then :
110262adc0320Smrg  ac_cv_search_socket=$ac_res
110277a0395d0Smrgfi
110282adc0320Smrgrm -f core conftest.err conftest.$ac_objext \
110292adc0320Smrg    conftest$ac_exeext
110302adc0320Smrg  if ${ac_cv_search_socket+:} false; then :
110317a0395d0Smrg  break
110327a0395d0Smrgfi
110337a0395d0Smrgdone
110342adc0320Smrgif ${ac_cv_search_socket+:} false; then :
110352adc0320Smrg
110367a0395d0Smrgelse
110377a0395d0Smrg  ac_cv_search_socket=no
110387a0395d0Smrgfi
110397a0395d0Smrgrm conftest.$ac_ext
110407a0395d0SmrgLIBS=$ac_func_search_save_LIBS
110417a0395d0Smrgfi
110422adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
110437366012aSmrg$as_echo "$ac_cv_search_socket" >&6; }
110447a0395d0Smrgac_res=$ac_cv_search_socket
110452adc0320Smrgif test "$ac_res" != no; then :
110467a0395d0Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
110477a0395d0Smrg
110487a0395d0Smrgfi
110497a0395d0Smrg
110502adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
110517366012aSmrg$as_echo_n "checking for library containing gethostbyname... " >&6; }
110522adc0320Smrgif ${ac_cv_search_gethostbyname+:} false; then :
110537366012aSmrg  $as_echo_n "(cached) " >&6
110547a0395d0Smrgelse
110557a0395d0Smrg  ac_func_search_save_LIBS=$LIBS
110562adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
110577a0395d0Smrg/* end confdefs.h.  */
110587a0395d0Smrg
110597a0395d0Smrg/* Override any GCC internal prototype to avoid an error.
110607a0395d0Smrg   Use char because int might match the return type of a GCC
110617a0395d0Smrg   builtin and then its argument prototype would still apply.  */
110627a0395d0Smrg#ifdef __cplusplus
110637a0395d0Smrgextern "C"
110647a0395d0Smrg#endif
110657a0395d0Smrgchar gethostbyname ();
110667a0395d0Smrgint
110677a0395d0Smrgmain ()
110687a0395d0Smrg{
110697a0395d0Smrgreturn gethostbyname ();
110707a0395d0Smrg  ;
110717a0395d0Smrg  return 0;
110727a0395d0Smrg}
110737a0395d0Smrg_ACEOF
110747a0395d0Smrgfor ac_lib in '' nsl; do
110757a0395d0Smrg  if test -z "$ac_lib"; then
110767a0395d0Smrg    ac_res="none required"
110777a0395d0Smrg  else
110787a0395d0Smrg    ac_res=-l$ac_lib
110797a0395d0Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
110807a0395d0Smrg  fi
110812adc0320Smrg  if ac_fn_c_try_link "$LINENO"; then :
110827a0395d0Smrg  ac_cv_search_gethostbyname=$ac_res
110837a0395d0Smrgfi
110842adc0320Smrgrm -f core conftest.err conftest.$ac_objext \
110852adc0320Smrg    conftest$ac_exeext
110862adc0320Smrg  if ${ac_cv_search_gethostbyname+:} false; then :
110877a0395d0Smrg  break
110887a0395d0Smrgfi
110897a0395d0Smrgdone
110902adc0320Smrgif ${ac_cv_search_gethostbyname+:} false; then :
110912adc0320Smrg
110927a0395d0Smrgelse
110937a0395d0Smrg  ac_cv_search_gethostbyname=no
110947a0395d0Smrgfi
110957a0395d0Smrgrm conftest.$ac_ext
110967a0395d0SmrgLIBS=$ac_func_search_save_LIBS
110977a0395d0Smrgfi
110982adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
110997366012aSmrg$as_echo "$ac_cv_search_gethostbyname" >&6; }
111007a0395d0Smrgac_res=$ac_cv_search_gethostbyname
111012adc0320Smrgif test "$ac_res" != no; then :
111027a0395d0Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
111037a0395d0Smrg
111047a0395d0Smrgfi
111057a0395d0Smrg
111062adc0320Smrg if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
111072adc0320Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
111087366012aSmrg$as_echo_n "checking for main in -lws2_32... " >&6; }
111092adc0320Smrgif ${ac_cv_lib_ws2_32_main+:} false; then :
111107366012aSmrg  $as_echo_n "(cached) " >&6
111117366012aSmrgelse
111127366012aSmrg  ac_check_lib_save_LIBS=$LIBS
111137366012aSmrgLIBS="-lws2_32  $LIBS"
111142adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
111157366012aSmrg/* end confdefs.h.  */
111167366012aSmrg
111177366012aSmrg
111187366012aSmrgint
111197366012aSmrgmain ()
111207366012aSmrg{
111217366012aSmrgreturn main ();
111227366012aSmrg  ;
111237366012aSmrg  return 0;
111247366012aSmrg}
111257366012aSmrg_ACEOF
111262adc0320Smrgif ac_fn_c_try_link "$LINENO"; then :
111277366012aSmrg  ac_cv_lib_ws2_32_main=yes
111287366012aSmrgelse
111292adc0320Smrg  ac_cv_lib_ws2_32_main=no
111307366012aSmrgfi
111312adc0320Smrgrm -f core conftest.err conftest.$ac_objext \
111322adc0320Smrg    conftest$ac_exeext conftest.$ac_ext
111337366012aSmrgLIBS=$ac_check_lib_save_LIBS
111347366012aSmrgfi
111352adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
111367366012aSmrg$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
111372adc0320Smrgif test "x$ac_cv_lib_ws2_32_main" = xyes; then :
111387366012aSmrg  cat >>confdefs.h <<_ACEOF
111397366012aSmrg#define HAVE_LIBWS2_32 1
111407366012aSmrg_ACEOF
111417366012aSmrg
111427366012aSmrg  LIBS="-lws2_32 $LIBS"
111437366012aSmrg
111447366012aSmrgfi
111457366012aSmrg
111462adc0320Smrg fi
111477366012aSmrg
111487a0395d0Smrg # Needs to come after above checks for libsocket & libnsl for SVR4 systems
111497a0395d0Smrg # Check whether --enable-ipv6 was given.
111502adc0320Smrgif test "${enable_ipv6+set}" = set; then :
111517a0395d0Smrg  enableval=$enable_ipv6; IPV6CONN=$enableval
111527a0395d0Smrgelse
111532adc0320Smrg  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
111542adc0320Smrgif test "x$ac_cv_func_getaddrinfo" = xyes; then :
111557a0395d0Smrg  IPV6CONN=yes
111567a0395d0Smrgelse
111577a0395d0Smrg  IPV6CONN=no
111587a0395d0Smrgfi
111597a0395d0Smrg
111607a0395d0Smrgfi
111617a0395d0Smrg
111622adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
111637366012aSmrg$as_echo_n "checking if IPv6 support should be built... " >&6; }
111647a0395d0Smrg if test "$IPV6CONN" = "yes"; then
111657a0395d0Smrg
111662adc0320Smrg$as_echo "#define IPv6 1" >>confdefs.h
111677a0395d0Smrg
111687a0395d0Smrg fi
111692adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
111707366012aSmrg$as_echo "$IPV6CONN" >&6; }
111717a0395d0Smrg
111727a0395d0Smrg # 4.3BSD-Reno added a new member to struct sockaddr_in
111732adc0320Smrg ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
111747a0395d0Smrg#include <sys/types.h>
111757a0395d0Smrg#include <sys/socket.h>
111767a0395d0Smrg#include <netinet/in.h>
111777a0395d0Smrg
111782adc0320Smrg"
111792adc0320Smrgif test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
111807a0395d0Smrg
111812adc0320Smrg$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
111827366012aSmrg
111832adc0320Smrgfi
111847366012aSmrg
111857366012aSmrg
111862adc0320Smrg # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
111872adc0320Smrg ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
111882adc0320Smrg$ac_includes_default
111892adc0320Smrg#include <sys/socket.h>
111902adc0320Smrg"
111912adc0320Smrgif test "x$ac_cv_type_socklen_t" = xyes; then :
111927366012aSmrg
111932adc0320Smrgcat >>confdefs.h <<_ACEOF
111942adc0320Smrg#define HAVE_SOCKLEN_T 1
111957366012aSmrg_ACEOF
111967366012aSmrg
111977366012aSmrg
111987366012aSmrgfi
111997366012aSmrg
112007366012aSmrg
112019a011757Smrg # XPG4v2/UNIX95 added msg_control - check to see if we need to define
112029a011757Smrg # _XOPEN_SOURCE to get it (such as on Solaris)
112039a011757Smrg ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
112049a011757Smrg$ac_includes_default
112059a011757Smrg#include <sys/socket.h>
112069a011757Smrg
112079a011757Smrg"
112089a011757Smrgif test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
112099a011757Smrg
112109a011757Smrgfi
112119a011757Smrg
112129a011757Smrg # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
112139a011757Smrg if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
112149a011757Smrg     unset ac_cv_member_struct_msghdr_msg_control
112159a011757Smrg     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
112169a011757Smrg$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
112179a011757Smrg     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
112189a011757Smrg#define _XOPEN_SOURCE 600
112199a011757Smrg$ac_includes_default
112209a011757Smrg#include <sys/socket.h>
112219a011757Smrg
112229a011757Smrg"
112239a011757Smrgif test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
112249a011757Smrg
112259a011757Smrg$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
112269a011757Smrg
112279a011757Smrg
112289a011757Smrgfi
112299a011757Smrg
112309a011757Smrg fi
112319a011757Smrg # If that didn't work, fall back to XPG5/UNIX98 with C89
112329a011757Smrg if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
112339a011757Smrg     unset ac_cv_member_struct_msghdr_msg_control
112349a011757Smrg     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
112359a011757Smrg$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
112369a011757Smrg     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
112379a011757Smrg#define _XOPEN_SOURCE 500
112389a011757Smrg$ac_includes_default
112399a011757Smrg#include <sys/socket.h>
112409a011757Smrg
112419a011757Smrg"
112429a011757Smrgif test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
112439a011757Smrg
112449a011757Smrg$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
112459a011757Smrg
112469a011757Smrg
112479a011757Smrgfi
112489a011757Smrg
112499a011757Smrg fi
112509a011757Smrg
112519a011757Smrg
112527366012aSmrg
112532adc0320Smrg fi
112542adc0320Smrg case $host_os in
112552adc0320Smrg	solaris*|sco*|sysv4*)	localdef="yes" ;;
112562adc0320Smrg	*)			localdef="no"  ;;
112572adc0320Smrg esac
112582adc0320Smrg # Check whether --enable-local-transport was given.
112592adc0320Smrgif test "${enable_local_transport+set}" = set; then :
112602adc0320Smrg  enableval=$enable_local_transport; LOCALCONN=$enableval
112617366012aSmrgelse
112622adc0320Smrg  LOCALCONN=$localdef
112632adc0320Smrgfi
112647366012aSmrg
112652adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
112662adc0320Smrg$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
112672adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
112682adc0320Smrg$as_echo "$LOCALCONN" >&6; }
112692adc0320Smrg if test "$LOCALCONN" = "yes"; then
112707a0395d0Smrg
112712adc0320Smrg$as_echo "#define LOCALCONN 1" >>confdefs.h
112727a0395d0Smrg
112732adc0320Smrg fi
112747a0395d0Smrg
112757a0395d0Smrg
112767366012aSmrg
112777366012aSmrg
112787a0395d0Smrg
112797a0395d0Smrg
112807a0395d0Smrg
112817366012aSmrg
112822adc0320Smrg# Check whether --with-lint was given.
112832adc0320Smrgif test "${with_lint+set}" = set; then :
112842adc0320Smrg  withval=$with_lint; use_lint=$withval
112852adc0320Smrgelse
112862adc0320Smrg  use_lint=no
112877a0395d0Smrgfi
112887a0395d0Smrg
112897a0395d0Smrg
112902adc0320Smrg# Obtain platform specific info like program name and options
112912adc0320Smrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris
112922adc0320Smrgcase $host_os in
112932adc0320Smrg  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
112942adc0320Smrg	lint_name=splint
112952adc0320Smrg	lint_options="-badflag"
112962adc0320Smrg	;;
112972adc0320Smrg  *freebsd* | *netbsd*)
112982adc0320Smrg	lint_name=lint
112992adc0320Smrg	lint_options="-u -b"
113002adc0320Smrg	;;
113012adc0320Smrg  *solaris*)
113022adc0320Smrg	lint_name=lint
113032adc0320Smrg	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
113042adc0320Smrg	;;
113052adc0320Smrgesac
113067366012aSmrg
113072adc0320Smrg# Test for the presence of the program (either guessed by the code or spelled out by the user)
113082adc0320Smrgif test "x$use_lint" = x"yes" ; then
113092adc0320Smrg   # Extract the first word of "$lint_name", so it can be a program name with args.
113102adc0320Smrgset dummy $lint_name; ac_word=$2
113112adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
113122adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; }
113132adc0320Smrgif ${ac_cv_path_LINT+:} false; then :
113142adc0320Smrg  $as_echo_n "(cached) " >&6
113152adc0320Smrgelse
113162adc0320Smrg  case $LINT in
113172adc0320Smrg  [\\/]* | ?:[\\/]*)
113182adc0320Smrg  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
113192adc0320Smrg  ;;
113202adc0320Smrg  *)
113212adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113222adc0320Smrgfor as_dir in $PATH
113232adc0320Smrgdo
113242adc0320Smrg  IFS=$as_save_IFS
113252adc0320Smrg  test -z "$as_dir" && as_dir=.
113262adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
113278abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
113282adc0320Smrg    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
113292adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
113302adc0320Smrg    break 2
113312adc0320Smrg  fi
113322adc0320Smrgdone
113332adc0320Smrg  done
113342adc0320SmrgIFS=$as_save_IFS
113352adc0320Smrg
113362adc0320Smrg  ;;
113372adc0320Smrgesac
113382adc0320Smrgfi
113392adc0320SmrgLINT=$ac_cv_path_LINT
113402adc0320Smrgif test -n "$LINT"; then
113412adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
113422adc0320Smrg$as_echo "$LINT" >&6; }
113437a0395d0Smrgelse
113442adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
113452adc0320Smrg$as_echo "no" >&6; }
113467a0395d0Smrgfi
113477a0395d0Smrg
113487a0395d0Smrg
113492adc0320Smrg   if test "x$LINT" = "x"; then
113502adc0320Smrg        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
113512adc0320Smrg   fi
113522adc0320Smrgelif test "x$use_lint" = x"no" ; then
113532adc0320Smrg   if test "x$LINT" != "x"; then
113542adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
113552adc0320Smrg$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
113562adc0320Smrg   fi
113577a0395d0Smrgelse
113582adc0320Smrg   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
113597a0395d0Smrgfi
113607a0395d0Smrg
113612adc0320Smrg# User supplied flags override default flags
113622adc0320Smrgif test "x$LINT_FLAGS" != "x"; then
113632adc0320Smrg   lint_options=$LINT_FLAGS
113647a0395d0Smrgfi
113657a0395d0Smrg
113662adc0320SmrgLINT_FLAGS=$lint_options
113677a0395d0Smrg
113682adc0320Smrg if test "x$LINT" != x; then
113697a0395d0Smrg  LINT_TRUE=
113707a0395d0Smrg  LINT_FALSE='#'
113717a0395d0Smrgelse
113727a0395d0Smrg  LINT_TRUE='#'
113737a0395d0Smrg  LINT_FALSE=
113747a0395d0Smrgfi
113757a0395d0Smrg
113767a0395d0Smrg
113777a0395d0Smrg
113787a0395d0Smrg
113798abc0ccfSmrgac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile"
113807a0395d0Smrg
113817a0395d0Smrgcat >confcache <<\_ACEOF
113827a0395d0Smrg# This file is a shell script that caches the results of configure
113837a0395d0Smrg# tests run on this system so they can be shared between configure
113847a0395d0Smrg# scripts and configure runs, see configure's option --config-cache.
113857a0395d0Smrg# It is not useful on other systems.  If it contains results you don't
113867a0395d0Smrg# want to keep, you may remove or edit it.
113877a0395d0Smrg#
113887a0395d0Smrg# config.status only pays attention to the cache file if you give it
113897a0395d0Smrg# the --recheck option to rerun configure.
113907a0395d0Smrg#
113917a0395d0Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
113927a0395d0Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
113937a0395d0Smrg# following values.
113947a0395d0Smrg
113957a0395d0Smrg_ACEOF
113967a0395d0Smrg
113977a0395d0Smrg# The following way of writing the cache mishandles newlines in values,
113987a0395d0Smrg# but we know of no workaround that is simple, portable, and efficient.
113997a0395d0Smrg# So, we kill variables containing newlines.
114007a0395d0Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
114017a0395d0Smrg# and sets the high bit in the cache file unless we assign to the vars.
114027a0395d0Smrg(
114037a0395d0Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
114047a0395d0Smrg    eval ac_val=\$$ac_var
114057a0395d0Smrg    case $ac_val in #(
114067a0395d0Smrg    *${as_nl}*)
114077a0395d0Smrg      case $ac_var in #(
114082adc0320Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
114097366012aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
114107a0395d0Smrg      esac
114117a0395d0Smrg      case $ac_var in #(
114127a0395d0Smrg      _ | IFS | as_nl) ;; #(
114137366012aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
114142adc0320Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
114157a0395d0Smrg      esac ;;
114167a0395d0Smrg    esac
114177a0395d0Smrg  done
114187a0395d0Smrg
114197a0395d0Smrg  (set) 2>&1 |
114207a0395d0Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
114217a0395d0Smrg    *${as_nl}ac_space=\ *)
114222adc0320Smrg      # `set' does not quote correctly, so add quotes: double-quote
114232adc0320Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
114247a0395d0Smrg      sed -n \
114257a0395d0Smrg	"s/'/'\\\\''/g;
114267a0395d0Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
114277a0395d0Smrg      ;; #(
114287a0395d0Smrg    *)
114297a0395d0Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
114307a0395d0Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
114317a0395d0Smrg      ;;
114327a0395d0Smrg    esac |
114337a0395d0Smrg    sort
114347a0395d0Smrg) |
114357a0395d0Smrg  sed '
114367a0395d0Smrg     /^ac_cv_env_/b end
114377a0395d0Smrg     t clear
114387a0395d0Smrg     :clear
114397a0395d0Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
114407a0395d0Smrg     t end
114417a0395d0Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
114427a0395d0Smrg     :end' >>confcache
114437a0395d0Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
114447a0395d0Smrg  if test -w "$cache_file"; then
114452adc0320Smrg    if test "x$cache_file" != "x/dev/null"; then
114462adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
114477366012aSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
114482adc0320Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
114492adc0320Smrg	cat confcache >"$cache_file"
114502adc0320Smrg      else
114512adc0320Smrg        case $cache_file in #(
114522adc0320Smrg        */* | ?:*)
114532adc0320Smrg	  mv -f confcache "$cache_file"$$ &&
114542adc0320Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
114552adc0320Smrg        *)
114562adc0320Smrg	  mv -f confcache "$cache_file" ;;
114572adc0320Smrg	esac
114582adc0320Smrg      fi
114592adc0320Smrg    fi
114607a0395d0Smrg  else
114612adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
114627366012aSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
114637a0395d0Smrg  fi
114647a0395d0Smrgfi
114657a0395d0Smrgrm -f confcache
114667a0395d0Smrg
114677a0395d0Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
114687a0395d0Smrg# Let make expand exec_prefix.
114697a0395d0Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
114707a0395d0Smrg
114717a0395d0SmrgDEFS=-DHAVE_CONFIG_H
114727a0395d0Smrg
114737a0395d0Smrgac_libobjs=
114747a0395d0Smrgac_ltlibobjs=
114752adc0320SmrgU=
114767a0395d0Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
114777a0395d0Smrg  # 1. Remove the extension, and $U if already installed.
114787a0395d0Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
114797366012aSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
114807a0395d0Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
114817a0395d0Smrg  #    will be set to the directory where LIBOBJS objects are built.
114822adc0320Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
114832adc0320Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
114847a0395d0Smrgdone
114857a0395d0SmrgLIBOBJS=$ac_libobjs
114867a0395d0Smrg
114877a0395d0SmrgLTLIBOBJS=$ac_ltlibobjs
114887a0395d0Smrg
114897a0395d0Smrg
114908abc0ccfSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
114918abc0ccfSmrg$as_echo_n "checking that generated files are newer than configure... " >&6; }
114928abc0ccfSmrg   if test -n "$am_sleep_pid"; then
114938abc0ccfSmrg     # Hide warnings about reused PIDs.
114948abc0ccfSmrg     wait $am_sleep_pid 2>/dev/null
114958abc0ccfSmrg   fi
114968abc0ccfSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
114978abc0ccfSmrg$as_echo "done" >&6; }
114987366012aSmrg if test -n "$EXEEXT"; then
114997366012aSmrg  am__EXEEXT_TRUE=
115007366012aSmrg  am__EXEEXT_FALSE='#'
115017366012aSmrgelse
115027366012aSmrg  am__EXEEXT_TRUE='#'
115037366012aSmrg  am__EXEEXT_FALSE=
115047366012aSmrgfi
115057366012aSmrg
115067a0395d0Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
115072adc0320Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
115082adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
115097a0395d0Smrgfi
115107a0395d0Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
115112adc0320Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
115122adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
115137a0395d0Smrgfi
115147a0395d0Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
115152adc0320Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
115162adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
115177a0395d0Smrgfi
115187a0395d0Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
115192adc0320Smrg  as_fn_error $? "conditional \"LINT\" was never defined.
115202adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
115217a0395d0Smrgfi
115227a0395d0Smrg
115232adc0320Smrg: "${CONFIG_STATUS=./config.status}"
115247366012aSmrgac_write_fail=0
115257a0395d0Smrgac_clean_files_save=$ac_clean_files
115267a0395d0Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
115272adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
115287366012aSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
115292adc0320Smrgas_write_fail=0
115302adc0320Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
115317a0395d0Smrg#! $SHELL
115327a0395d0Smrg# Generated by $as_me.
115337a0395d0Smrg# Run this file to recreate the current configuration.
115347a0395d0Smrg# Compiler output produced by configure, useful for debugging
115357a0395d0Smrg# configure, is in config.log if it exists.
115367a0395d0Smrg
115377a0395d0Smrgdebug=false
115387a0395d0Smrgac_cs_recheck=false
115397a0395d0Smrgac_cs_silent=false
115407a0395d0Smrg
115412adc0320SmrgSHELL=\${CONFIG_SHELL-$SHELL}
115422adc0320Smrgexport SHELL
115432adc0320Smrg_ASEOF
115442adc0320Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
115452adc0320Smrg## -------------------- ##
115462adc0320Smrg## M4sh Initialization. ##
115472adc0320Smrg## -------------------- ##
115487a0395d0Smrg
115497a0395d0Smrg# Be more Bourne compatible
115507a0395d0SmrgDUALCASE=1; export DUALCASE # for MKS sh
115512adc0320Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
115527a0395d0Smrg  emulate sh
115537a0395d0Smrg  NULLCMD=:
115547366012aSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
115557a0395d0Smrg  # is contrary to our usage.  Disable this feature.
115567a0395d0Smrg  alias -g '${1+"$@"}'='"$@"'
115577a0395d0Smrg  setopt NO_GLOB_SUBST
115587a0395d0Smrgelse
115592adc0320Smrg  case `(set -o) 2>/dev/null` in #(
115602adc0320Smrg  *posix*) :
115612adc0320Smrg    set -o posix ;; #(
115622adc0320Smrg  *) :
115632adc0320Smrg     ;;
115647a0395d0Smrgesac
115657a0395d0Smrgfi
115667a0395d0Smrg
115677a0395d0Smrg
115687366012aSmrgas_nl='
115697366012aSmrg'
115707366012aSmrgexport as_nl
115717366012aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
115727366012aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
115737366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
115747366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
115752adc0320Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
115762adc0320Smrg# but without wasting forks for bash or zsh.
115772adc0320Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
115782adc0320Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
115792adc0320Smrg  as_echo='print -r --'
115802adc0320Smrg  as_echo_n='print -rn --'
115812adc0320Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
115827366012aSmrg  as_echo='printf %s\n'
115837366012aSmrg  as_echo_n='printf %s'
115847366012aSmrgelse
115857366012aSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
115867366012aSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
115877366012aSmrg    as_echo_n='/usr/ucb/echo -n'
115887a0395d0Smrg  else
115897366012aSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
115907366012aSmrg    as_echo_n_body='eval
115917366012aSmrg      arg=$1;
115922adc0320Smrg      case $arg in #(
115937366012aSmrg      *"$as_nl"*)
115947366012aSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
115957366012aSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
115967366012aSmrg      esac;
115977366012aSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
115987366012aSmrg    '
115997366012aSmrg    export as_echo_n_body
116007366012aSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
116017a0395d0Smrg  fi
116027366012aSmrg  export as_echo_body
116037366012aSmrg  as_echo='sh -c $as_echo_body as_echo'
116047366012aSmrgfi
116057366012aSmrg
116067366012aSmrg# The user is always right.
116077366012aSmrgif test "${PATH_SEPARATOR+set}" != set; then
116087366012aSmrg  PATH_SEPARATOR=:
116097366012aSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
116107366012aSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
116117366012aSmrg      PATH_SEPARATOR=';'
116127366012aSmrg  }
116137a0395d0Smrgfi
116147a0395d0Smrg
116157a0395d0Smrg
116167a0395d0Smrg# IFS
116177a0395d0Smrg# We need space, tab and new line, in precisely that order.  Quoting is
116187a0395d0Smrg# there to prevent editors from complaining about space-tab.
116197a0395d0Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
116207a0395d0Smrg# splitting by setting IFS to empty value.)
116217a0395d0SmrgIFS=" ""	$as_nl"
116227a0395d0Smrg
116237a0395d0Smrg# Find who we are.  Look in the path if we contain no directory separator.
116242adc0320Smrgas_myself=
116252adc0320Smrgcase $0 in #((
116267a0395d0Smrg  *[\\/]* ) as_myself=$0 ;;
116277a0395d0Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116287a0395d0Smrgfor as_dir in $PATH
116297a0395d0Smrgdo
116307a0395d0Smrg  IFS=$as_save_IFS
116317a0395d0Smrg  test -z "$as_dir" && as_dir=.
116322adc0320Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116332adc0320Smrg  done
116347a0395d0SmrgIFS=$as_save_IFS
116357a0395d0Smrg
116367a0395d0Smrg     ;;
116377a0395d0Smrgesac
116387a0395d0Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
116397a0395d0Smrg# in which case we are not to be found in the path.
116407a0395d0Smrgif test "x$as_myself" = x; then
116417a0395d0Smrg  as_myself=$0
116427a0395d0Smrgfi
116437a0395d0Smrgif test ! -f "$as_myself"; then
116447366012aSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116452adc0320Smrg  exit 1
116467a0395d0Smrgfi
116477a0395d0Smrg
116482adc0320Smrg# Unset variables that we do not need and which cause bugs (e.g. in
116492adc0320Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116502adc0320Smrg# suppresses any "Segmentation fault" message there.  '((' could
116512adc0320Smrg# trigger a bug in pdksh 5.2.14.
116522adc0320Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
116532adc0320Smrgdo eval test x\${$as_var+set} = xset \
116542adc0320Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
116557a0395d0Smrgdone
116567a0395d0SmrgPS1='$ '
116577a0395d0SmrgPS2='> '
116587a0395d0SmrgPS4='+ '
116597a0395d0Smrg
116607a0395d0Smrg# NLS nuisances.
116617366012aSmrgLC_ALL=C
116627366012aSmrgexport LC_ALL
116637366012aSmrgLANGUAGE=C
116647366012aSmrgexport LANGUAGE
116657a0395d0Smrg
116662adc0320Smrg# CDPATH.
116672adc0320Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
116682adc0320Smrg
116692adc0320Smrg
116702adc0320Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
116712adc0320Smrg# ----------------------------------------
116722adc0320Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
116732adc0320Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
116742adc0320Smrg# script with STATUS, using 1 if that was 0.
116752adc0320Smrgas_fn_error ()
116762adc0320Smrg{
116772adc0320Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
116782adc0320Smrg  if test "$4"; then
116792adc0320Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
116802adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
116812adc0320Smrg  fi
116822adc0320Smrg  $as_echo "$as_me: error: $2" >&2
116832adc0320Smrg  as_fn_exit $as_status
116842adc0320Smrg} # as_fn_error
116852adc0320Smrg
116862adc0320Smrg
116872adc0320Smrg# as_fn_set_status STATUS
116882adc0320Smrg# -----------------------
116892adc0320Smrg# Set $? to STATUS, without forking.
116902adc0320Smrgas_fn_set_status ()
116912adc0320Smrg{
116922adc0320Smrg  return $1
116932adc0320Smrg} # as_fn_set_status
116942adc0320Smrg
116952adc0320Smrg# as_fn_exit STATUS
116962adc0320Smrg# -----------------
116972adc0320Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
116982adc0320Smrgas_fn_exit ()
116992adc0320Smrg{
117002adc0320Smrg  set +e
117012adc0320Smrg  as_fn_set_status $1
117022adc0320Smrg  exit $1
117032adc0320Smrg} # as_fn_exit
117042adc0320Smrg
117052adc0320Smrg# as_fn_unset VAR
117062adc0320Smrg# ---------------
117072adc0320Smrg# Portably unset VAR.
117082adc0320Smrgas_fn_unset ()
117092adc0320Smrg{
117102adc0320Smrg  { eval $1=; unset $1;}
117112adc0320Smrg}
117122adc0320Smrgas_unset=as_fn_unset
117132adc0320Smrg# as_fn_append VAR VALUE
117142adc0320Smrg# ----------------------
117152adc0320Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
117162adc0320Smrg# advantage of any shell optimizations that allow amortized linear growth over
117172adc0320Smrg# repeated appends, instead of the typical quadratic growth present in naive
117182adc0320Smrg# implementations.
117192adc0320Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
117202adc0320Smrg  eval 'as_fn_append ()
117212adc0320Smrg  {
117222adc0320Smrg    eval $1+=\$2
117232adc0320Smrg  }'
117242adc0320Smrgelse
117252adc0320Smrg  as_fn_append ()
117262adc0320Smrg  {
117272adc0320Smrg    eval $1=\$$1\$2
117282adc0320Smrg  }
117292adc0320Smrgfi # as_fn_append
117302adc0320Smrg
117312adc0320Smrg# as_fn_arith ARG...
117322adc0320Smrg# ------------------
117332adc0320Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
117342adc0320Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
117352adc0320Smrg# must be portable across $(()) and expr.
117362adc0320Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
117372adc0320Smrg  eval 'as_fn_arith ()
117382adc0320Smrg  {
117392adc0320Smrg    as_val=$(( $* ))
117402adc0320Smrg  }'
117412adc0320Smrgelse
117422adc0320Smrg  as_fn_arith ()
117432adc0320Smrg  {
117442adc0320Smrg    as_val=`expr "$@" || test $? -eq 1`
117452adc0320Smrg  }
117462adc0320Smrgfi # as_fn_arith
117472adc0320Smrg
117482adc0320Smrg
117497a0395d0Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
117507a0395d0Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
117517a0395d0Smrg  as_expr=expr
117527a0395d0Smrgelse
117537a0395d0Smrg  as_expr=false
117547a0395d0Smrgfi
117557a0395d0Smrg
117567a0395d0Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
117577a0395d0Smrg  as_basename=basename
117587a0395d0Smrgelse
117597a0395d0Smrg  as_basename=false
117607a0395d0Smrgfi
117617a0395d0Smrg
117622adc0320Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
117632adc0320Smrg  as_dirname=dirname
117642adc0320Smrgelse
117652adc0320Smrg  as_dirname=false
117662adc0320Smrgfi
117677a0395d0Smrg
117687a0395d0Smrgas_me=`$as_basename -- "$0" ||
117697a0395d0Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
117707a0395d0Smrg	 X"$0" : 'X\(//\)$' \| \
117717a0395d0Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
117727366012aSmrg$as_echo X/"$0" |
117737a0395d0Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
117747a0395d0Smrg	    s//\1/
117757a0395d0Smrg	    q
117767a0395d0Smrg	  }
117777a0395d0Smrg	  /^X\/\(\/\/\)$/{
117787a0395d0Smrg	    s//\1/
117797a0395d0Smrg	    q
117807a0395d0Smrg	  }
117817a0395d0Smrg	  /^X\/\(\/\).*/{
117827a0395d0Smrg	    s//\1/
117837a0395d0Smrg	    q
117847a0395d0Smrg	  }
117857a0395d0Smrg	  s/.*/./; q'`
117867a0395d0Smrg
117872adc0320Smrg# Avoid depending upon Character Ranges.
117882adc0320Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
117892adc0320Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
117902adc0320Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
117912adc0320Smrgas_cr_digits='0123456789'
117922adc0320Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
117937a0395d0Smrg
117947a0395d0SmrgECHO_C= ECHO_N= ECHO_T=
117952adc0320Smrgcase `echo -n x` in #(((((
117967a0395d0Smrg-n*)
117972adc0320Smrg  case `echo 'xy\c'` in
117987a0395d0Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
117992adc0320Smrg  xy)  ECHO_C='\c';;
118002adc0320Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
118012adc0320Smrg       ECHO_T='	';;
118027a0395d0Smrg  esac;;
118037a0395d0Smrg*)
118047a0395d0Smrg  ECHO_N='-n';;
118057a0395d0Smrgesac
118067a0395d0Smrg
118077a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.file
118087a0395d0Smrgif test -d conf$$.dir; then
118097a0395d0Smrg  rm -f conf$$.dir/conf$$.file
118107a0395d0Smrgelse
118117a0395d0Smrg  rm -f conf$$.dir
118127366012aSmrg  mkdir conf$$.dir 2>/dev/null
118137366012aSmrgfi
118147366012aSmrgif (echo >conf$$.file) 2>/dev/null; then
118157366012aSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
118167366012aSmrg    as_ln_s='ln -s'
118177366012aSmrg    # ... but there are two gotchas:
118187366012aSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
118197366012aSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
118208abc0ccfSmrg    # In both cases, we have to default to `cp -pR'.
118217366012aSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
118228abc0ccfSmrg      as_ln_s='cp -pR'
118237366012aSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
118247366012aSmrg    as_ln_s=ln
118257366012aSmrg  else
118268abc0ccfSmrg    as_ln_s='cp -pR'
118277366012aSmrg  fi
118287a0395d0Smrgelse
118298abc0ccfSmrg  as_ln_s='cp -pR'
118307a0395d0Smrgfi
118317a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
118327a0395d0Smrgrmdir conf$$.dir 2>/dev/null
118337a0395d0Smrg
118342adc0320Smrg
118352adc0320Smrg# as_fn_mkdir_p
118362adc0320Smrg# -------------
118372adc0320Smrg# Create "$as_dir" as a directory, including parents if necessary.
118382adc0320Smrgas_fn_mkdir_p ()
118392adc0320Smrg{
118402adc0320Smrg
118412adc0320Smrg  case $as_dir in #(
118422adc0320Smrg  -*) as_dir=./$as_dir;;
118432adc0320Smrg  esac
118442adc0320Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
118452adc0320Smrg    as_dirs=
118462adc0320Smrg    while :; do
118472adc0320Smrg      case $as_dir in #(
118482adc0320Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
118492adc0320Smrg      *) as_qdir=$as_dir;;
118502adc0320Smrg      esac
118512adc0320Smrg      as_dirs="'$as_qdir' $as_dirs"
118522adc0320Smrg      as_dir=`$as_dirname -- "$as_dir" ||
118532adc0320Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
118542adc0320Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
118552adc0320Smrg	 X"$as_dir" : 'X\(//\)$' \| \
118562adc0320Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
118572adc0320Smrg$as_echo X"$as_dir" |
118582adc0320Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
118592adc0320Smrg	    s//\1/
118602adc0320Smrg	    q
118612adc0320Smrg	  }
118622adc0320Smrg	  /^X\(\/\/\)[^/].*/{
118632adc0320Smrg	    s//\1/
118642adc0320Smrg	    q
118652adc0320Smrg	  }
118662adc0320Smrg	  /^X\(\/\/\)$/{
118672adc0320Smrg	    s//\1/
118682adc0320Smrg	    q
118692adc0320Smrg	  }
118702adc0320Smrg	  /^X\(\/\).*/{
118712adc0320Smrg	    s//\1/
118722adc0320Smrg	    q
118732adc0320Smrg	  }
118742adc0320Smrg	  s/.*/./; q'`
118752adc0320Smrg      test -d "$as_dir" && break
118762adc0320Smrg    done
118772adc0320Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
118782adc0320Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
118792adc0320Smrg
118802adc0320Smrg
118812adc0320Smrg} # as_fn_mkdir_p
118827a0395d0Smrgif mkdir -p . 2>/dev/null; then
118832adc0320Smrg  as_mkdir_p='mkdir -p "$as_dir"'
118847a0395d0Smrgelse
118857a0395d0Smrg  test -d ./-p && rmdir ./-p
118867a0395d0Smrg  as_mkdir_p=false
118877a0395d0Smrgfi
118887a0395d0Smrg
118898abc0ccfSmrg
118908abc0ccfSmrg# as_fn_executable_p FILE
118918abc0ccfSmrg# -----------------------
118928abc0ccfSmrg# Test if FILE is an executable regular file.
118938abc0ccfSmrgas_fn_executable_p ()
118948abc0ccfSmrg{
118958abc0ccfSmrg  test -f "$1" && test -x "$1"
118968abc0ccfSmrg} # as_fn_executable_p
118978abc0ccfSmrgas_test_x='test -x'
118988abc0ccfSmrgas_executable_p=as_fn_executable_p
118997a0395d0Smrg
119007a0395d0Smrg# Sed expression to map a string onto a valid CPP name.
119017a0395d0Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
119027a0395d0Smrg
119037a0395d0Smrg# Sed expression to map a string onto a valid variable name.
119047a0395d0Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
119057a0395d0Smrg
119067a0395d0Smrg
119077a0395d0Smrgexec 6>&1
119082adc0320Smrg## ----------------------------------- ##
119092adc0320Smrg## Main body of $CONFIG_STATUS script. ##
119102adc0320Smrg## ----------------------------------- ##
119112adc0320Smrg_ASEOF
119122adc0320Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
119137a0395d0Smrg
119142adc0320Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
119152adc0320Smrg# Save the log message, to keep $0 and so on meaningful, and to
119167a0395d0Smrg# report actual input values of CONFIG_FILES etc. instead of their
119177a0395d0Smrg# values after options handling.
119187a0395d0Smrgac_log="
119199a011757SmrgThis file was extended by xauth $as_me 1.0.9, which was
119208abc0ccfSmrggenerated by GNU Autoconf 2.69.  Invocation command line was
119217a0395d0Smrg
119227a0395d0Smrg  CONFIG_FILES    = $CONFIG_FILES
119237a0395d0Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
119247a0395d0Smrg  CONFIG_LINKS    = $CONFIG_LINKS
119257a0395d0Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
119267a0395d0Smrg  $ $0 $@
119277a0395d0Smrg
119287a0395d0Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
119297a0395d0Smrg"
119307a0395d0Smrg
119317a0395d0Smrg_ACEOF
119327a0395d0Smrg
119337366012aSmrgcase $ac_config_files in *"
119347366012aSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
119357366012aSmrgesac
119367366012aSmrg
119377366012aSmrgcase $ac_config_headers in *"
119387366012aSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
119397366012aSmrgesac
119407366012aSmrg
119417366012aSmrg
119427366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
119437a0395d0Smrg# Files that config.status was made for.
119447a0395d0Smrgconfig_files="$ac_config_files"
119457a0395d0Smrgconfig_headers="$ac_config_headers"
119467a0395d0Smrgconfig_commands="$ac_config_commands"
119477a0395d0Smrg
119487a0395d0Smrg_ACEOF
119497a0395d0Smrg
119507366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
119517a0395d0Smrgac_cs_usage="\
119522adc0320Smrg\`$as_me' instantiates files and other configuration actions
119532adc0320Smrgfrom templates according to the current configuration.  Unless the files
119542adc0320Smrgand actions are specified as TAGs, all are instantiated by default.
119557a0395d0Smrg
119562adc0320SmrgUsage: $0 [OPTION]... [TAG]...
119577a0395d0Smrg
119587a0395d0Smrg  -h, --help       print this help, then exit
119597a0395d0Smrg  -V, --version    print version number and configuration settings, then exit
119602adc0320Smrg      --config     print configuration, then exit
119617366012aSmrg  -q, --quiet, --silent
119627366012aSmrg                   do not print progress messages
119637a0395d0Smrg  -d, --debug      don't remove temporary files
119647a0395d0Smrg      --recheck    update $as_me by reconfiguring in the same conditions
119657366012aSmrg      --file=FILE[:TEMPLATE]
119667366012aSmrg                   instantiate the configuration file FILE
119677366012aSmrg      --header=FILE[:TEMPLATE]
119687366012aSmrg                   instantiate the configuration header FILE
119697a0395d0Smrg
119707a0395d0SmrgConfiguration files:
119717a0395d0Smrg$config_files
119727a0395d0Smrg
119737a0395d0SmrgConfiguration headers:
119747a0395d0Smrg$config_headers
119757a0395d0Smrg
119767a0395d0SmrgConfiguration commands:
119777a0395d0Smrg$config_commands
119787a0395d0Smrg
119792adc0320SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
119807a0395d0Smrg
119817a0395d0Smrg_ACEOF
119827366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
119832adc0320Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
119847a0395d0Smrgac_cs_version="\\
119859a011757Smrgxauth config.status 1.0.9
119868abc0ccfSmrgconfigured by $0, generated by GNU Autoconf 2.69,
119872adc0320Smrg  with options \\"\$ac_cs_config\\"
119887a0395d0Smrg
119898abc0ccfSmrgCopyright (C) 2012 Free Software Foundation, Inc.
119907a0395d0SmrgThis config.status script is free software; the Free Software Foundation
119917a0395d0Smrggives unlimited permission to copy, distribute and modify it."
119927a0395d0Smrg
119937a0395d0Smrgac_pwd='$ac_pwd'
119947a0395d0Smrgsrcdir='$srcdir'
119957a0395d0SmrgINSTALL='$INSTALL'
119967a0395d0SmrgMKDIR_P='$MKDIR_P'
119977366012aSmrgAWK='$AWK'
119987366012aSmrgtest -n "\$AWK" || AWK=awk
119997a0395d0Smrg_ACEOF
120007a0395d0Smrg
120017366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
120027366012aSmrg# The default lists apply if the user does not specify any file.
120037a0395d0Smrgac_need_defaults=:
120047a0395d0Smrgwhile test $# != 0
120057a0395d0Smrgdo
120067a0395d0Smrg  case $1 in
120072adc0320Smrg  --*=?*)
120087a0395d0Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
120097a0395d0Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
120107a0395d0Smrg    ac_shift=:
120117a0395d0Smrg    ;;
120122adc0320Smrg  --*=)
120132adc0320Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
120142adc0320Smrg    ac_optarg=
120152adc0320Smrg    ac_shift=:
120162adc0320Smrg    ;;
120177a0395d0Smrg  *)
120187a0395d0Smrg    ac_option=$1
120197a0395d0Smrg    ac_optarg=$2
120207a0395d0Smrg    ac_shift=shift
120217a0395d0Smrg    ;;
120227a0395d0Smrg  esac
120237a0395d0Smrg
120247a0395d0Smrg  case $ac_option in
120257a0395d0Smrg  # Handling of the options.
120267a0395d0Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
120277a0395d0Smrg    ac_cs_recheck=: ;;
120287a0395d0Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
120297366012aSmrg    $as_echo "$ac_cs_version"; exit ;;
120302adc0320Smrg  --config | --confi | --conf | --con | --co | --c )
120312adc0320Smrg    $as_echo "$ac_cs_config"; exit ;;
120327a0395d0Smrg  --debug | --debu | --deb | --de | --d | -d )
120337a0395d0Smrg    debug=: ;;
120347a0395d0Smrg  --file | --fil | --fi | --f )
120357a0395d0Smrg    $ac_shift
120367366012aSmrg    case $ac_optarg in
120377366012aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
120382adc0320Smrg    '') as_fn_error $? "missing file argument" ;;
120397366012aSmrg    esac
120402adc0320Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
120417a0395d0Smrg    ac_need_defaults=false;;
120427a0395d0Smrg  --header | --heade | --head | --hea )
120437a0395d0Smrg    $ac_shift
120447366012aSmrg    case $ac_optarg in
120457366012aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
120467366012aSmrg    esac
120472adc0320Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
120487a0395d0Smrg    ac_need_defaults=false;;
120497a0395d0Smrg  --he | --h)
120507a0395d0Smrg    # Conflict between --help and --header
120512adc0320Smrg    as_fn_error $? "ambiguous option: \`$1'
120522adc0320SmrgTry \`$0 --help' for more information.";;
120537a0395d0Smrg  --help | --hel | -h )
120547366012aSmrg    $as_echo "$ac_cs_usage"; exit ;;
120557a0395d0Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
120567a0395d0Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
120577a0395d0Smrg    ac_cs_silent=: ;;
120587a0395d0Smrg
120597a0395d0Smrg  # This is an error.
120602adc0320Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
120612adc0320SmrgTry \`$0 --help' for more information." ;;
120627a0395d0Smrg
120632adc0320Smrg  *) as_fn_append ac_config_targets " $1"
120647a0395d0Smrg     ac_need_defaults=false ;;
120657a0395d0Smrg
120667a0395d0Smrg  esac
120677a0395d0Smrg  shift
120687a0395d0Smrgdone
120697a0395d0Smrg
120707a0395d0Smrgac_configure_extra_args=
120717a0395d0Smrg
120727a0395d0Smrgif $ac_cs_silent; then
120737a0395d0Smrg  exec 6>/dev/null
120747a0395d0Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
120757a0395d0Smrgfi
120767a0395d0Smrg
120777a0395d0Smrg_ACEOF
120787366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
120797a0395d0Smrgif \$ac_cs_recheck; then
120808abc0ccfSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
120817366012aSmrg  shift
120827366012aSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
120837366012aSmrg  CONFIG_SHELL='$SHELL'
120847a0395d0Smrg  export CONFIG_SHELL
120857366012aSmrg  exec "\$@"
120867a0395d0Smrgfi
120877a0395d0Smrg
120887a0395d0Smrg_ACEOF
120897366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
120907a0395d0Smrgexec 5>>config.log
120917a0395d0Smrg{
120927a0395d0Smrg  echo
120937a0395d0Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
120947a0395d0Smrg## Running $as_me. ##
120957a0395d0Smrg_ASBOX
120967366012aSmrg  $as_echo "$ac_log"
120977a0395d0Smrg} >&5
120987a0395d0Smrg
120997a0395d0Smrg_ACEOF
121007366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
121017a0395d0Smrg#
121027a0395d0Smrg# INIT-COMMANDS
121037a0395d0Smrg#
121047a0395d0SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
121057a0395d0Smrg
121067a0395d0Smrg_ACEOF
121077a0395d0Smrg
121087366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
121097a0395d0Smrg
121107a0395d0Smrg# Handling of arguments.
121117a0395d0Smrgfor ac_config_target in $ac_config_targets
121127a0395d0Smrgdo
121137a0395d0Smrg  case $ac_config_target in
121147a0395d0Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
121157a0395d0Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
121167a0395d0Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
121178abc0ccfSmrg    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
121182852888eSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
121197a0395d0Smrg
121202adc0320Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
121217a0395d0Smrg  esac
121227a0395d0Smrgdone
121237a0395d0Smrg
121247a0395d0Smrg
121257a0395d0Smrg# If the user did not use the arguments to specify the items to instantiate,
121267a0395d0Smrg# then the envvar interface is used.  Set only those that are not.
121277a0395d0Smrg# We use the long form for the default assignment because of an extremely
121287a0395d0Smrg# bizarre bug on SunOS 4.1.3.
121297a0395d0Smrgif $ac_need_defaults; then
121307a0395d0Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
121317a0395d0Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
121327a0395d0Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
121337a0395d0Smrgfi
121347a0395d0Smrg
121357a0395d0Smrg# Have a temporary directory for convenience.  Make it in the build tree
121367a0395d0Smrg# simply because there is no reason against having it here, and in addition,
121377a0395d0Smrg# creating and moving files from /tmp can sometimes cause problems.
121387a0395d0Smrg# Hook for its removal unless debugging.
121397a0395d0Smrg# Note that there is a small window in which the directory will not be cleaned:
121407a0395d0Smrg# after its creation but before its name has been assigned to `$tmp'.
121417a0395d0Smrg$debug ||
121427a0395d0Smrg{
121432adc0320Smrg  tmp= ac_tmp=
121447a0395d0Smrg  trap 'exit_status=$?
121452adc0320Smrg  : "${ac_tmp:=$tmp}"
121462adc0320Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
121477a0395d0Smrg' 0
121482adc0320Smrg  trap 'as_fn_exit 1' 1 2 13 15
121497a0395d0Smrg}
121507a0395d0Smrg# Create a (secure) tmp directory for tmp files.
121517a0395d0Smrg
121527a0395d0Smrg{
121537a0395d0Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
121542adc0320Smrg  test -d "$tmp"
121557a0395d0Smrg}  ||
121567a0395d0Smrg{
121577a0395d0Smrg  tmp=./conf$$-$RANDOM
121587a0395d0Smrg  (umask 077 && mkdir "$tmp")
121592adc0320Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
121602adc0320Smrgac_tmp=$tmp
121617a0395d0Smrg
121627366012aSmrg# Set up the scripts for CONFIG_FILES section.
121637366012aSmrg# No need to generate them if there are no CONFIG_FILES.
121647366012aSmrg# This happens for instance with `./config.status config.h'.
121657a0395d0Smrgif test -n "$CONFIG_FILES"; then
121667a0395d0Smrg
121677a0395d0Smrg
121682adc0320Smrgac_cr=`echo X | tr X '\015'`
121692adc0320Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
121702adc0320Smrg# But we know of no other shell where ac_cr would be empty at this
121712adc0320Smrg# point, so we can use a bashism as a fallback.
121722adc0320Smrgif test "x$ac_cr" = x; then
121732adc0320Smrg  eval ac_cr=\$\'\\r\'
121742adc0320Smrgfi
121757366012aSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
121767366012aSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
121777366012aSmrg  ac_cs_awk_cr='\\r'
121787366012aSmrgelse
121797366012aSmrg  ac_cs_awk_cr=$ac_cr
121807a0395d0Smrgfi
121817a0395d0Smrg
121822adc0320Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
121837a0395d0Smrg_ACEOF
121847a0395d0Smrg
121857a0395d0Smrg
121867366012aSmrg{
121877366012aSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
121887366012aSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
121897366012aSmrg  echo "_ACEOF"
121907366012aSmrg} >conf$$subs.sh ||
121912adc0320Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
121922adc0320Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
121937a0395d0Smrgac_delim='%!_!# '
121947a0395d0Smrgfor ac_last_try in false false false false false :; do
121957366012aSmrg  . ./conf$$subs.sh ||
121962adc0320Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
121977a0395d0Smrg
121987366012aSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
121997366012aSmrg  if test $ac_delim_n = $ac_delim_num; then
122007a0395d0Smrg    break
122017a0395d0Smrg  elif $ac_last_try; then
122022adc0320Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
122037a0395d0Smrg  else
122047a0395d0Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
122057a0395d0Smrg  fi
122067a0395d0Smrgdone
122077366012aSmrgrm -f conf$$subs.sh
122087a0395d0Smrg
122097366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
122102adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
122117366012aSmrg_ACEOF
122127366012aSmrgsed -n '
122137366012aSmrgh
122147366012aSmrgs/^/S["/; s/!.*/"]=/
122157366012aSmrgp
122167366012aSmrgg
122177366012aSmrgs/^[^!]*!//
122187366012aSmrg:repl
122197366012aSmrgt repl
122207366012aSmrgs/'"$ac_delim"'$//
122217366012aSmrgt delim
122227366012aSmrg:nl
122237366012aSmrgh
122242adc0320Smrgs/\(.\{148\}\)..*/\1/
122257366012aSmrgt more1
122267366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
122277366012aSmrgp
122287366012aSmrgn
122297366012aSmrgb repl
122307366012aSmrg:more1
122317366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
122327366012aSmrgp
122337366012aSmrgg
122347366012aSmrgs/.\{148\}//
122357366012aSmrgt nl
122367366012aSmrg:delim
122377366012aSmrgh
122382adc0320Smrgs/\(.\{148\}\)..*/\1/
122397366012aSmrgt more2
122407366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
122417366012aSmrgp
122427366012aSmrgb
122437366012aSmrg:more2
122447366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
122457366012aSmrgp
122467366012aSmrgg
122477366012aSmrgs/.\{148\}//
122487366012aSmrgt delim
122497366012aSmrg' <conf$$subs.awk | sed '
122507366012aSmrg/^[^""]/{
122517366012aSmrg  N
122527366012aSmrg  s/\n//
122537366012aSmrg}
122547366012aSmrg' >>$CONFIG_STATUS || ac_write_fail=1
122557366012aSmrgrm -f conf$$subs.awk
122567366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
122577366012aSmrg_ACAWK
122582adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
122597366012aSmrg  for (key in S) S_is_set[key] = 1
122607366012aSmrg  FS = ""
122617366012aSmrg
122627366012aSmrg}
122637366012aSmrg{
122647366012aSmrg  line = $ 0
122657366012aSmrg  nfields = split(line, field, "@")
122667366012aSmrg  substed = 0
122677366012aSmrg  len = length(field[1])
122687366012aSmrg  for (i = 2; i < nfields; i++) {
122697366012aSmrg    key = field[i]
122707366012aSmrg    keylen = length(key)
122717366012aSmrg    if (S_is_set[key]) {
122727366012aSmrg      value = S[key]
122737366012aSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
122747366012aSmrg      len += length(value) + length(field[++i])
122757366012aSmrg      substed = 1
122767366012aSmrg    } else
122777366012aSmrg      len += 1 + keylen
122787366012aSmrg  }
122797366012aSmrg
122807366012aSmrg  print line
122817366012aSmrg}
122827a0395d0Smrg
122837366012aSmrg_ACAWK
122847a0395d0Smrg_ACEOF
122857366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
122867366012aSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
122877366012aSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
122887366012aSmrgelse
122897366012aSmrg  cat
122902adc0320Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
122912adc0320Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
122927a0395d0Smrg_ACEOF
122937a0395d0Smrg
122942adc0320Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
122952adc0320Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
122967a0395d0Smrg# trailing colons and then remove the whole line if VPATH becomes empty
122977a0395d0Smrg# (actually we leave an empty line to preserve line numbers).
122987a0395d0Smrgif test "x$srcdir" = x.; then
122992adc0320Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
123002adc0320Smrgh
123012adc0320Smrgs///
123022adc0320Smrgs/^/:/
123032adc0320Smrgs/[	 ]*$/:/
123042adc0320Smrgs/:\$(srcdir):/:/g
123052adc0320Smrgs/:\${srcdir}:/:/g
123062adc0320Smrgs/:@srcdir@:/:/g
123072adc0320Smrgs/^:*//
123087a0395d0Smrgs/:*$//
123092adc0320Smrgx
123102adc0320Smrgs/\(=[	 ]*\).*/\1/
123112adc0320SmrgG
123122adc0320Smrgs/\n//
123137a0395d0Smrgs/^[^=]*=[	 ]*$//
123147a0395d0Smrg}'
123157a0395d0Smrgfi
123167a0395d0Smrg
123177366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
123187a0395d0Smrgfi # test -n "$CONFIG_FILES"
123197a0395d0Smrg
123207366012aSmrg# Set up the scripts for CONFIG_HEADERS section.
123217366012aSmrg# No need to generate them if there are no CONFIG_HEADERS.
123227366012aSmrg# This happens for instance with `./config.status Makefile'.
123237366012aSmrgif test -n "$CONFIG_HEADERS"; then
123242adc0320Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
123257366012aSmrgBEGIN {
123267366012aSmrg_ACEOF
123277366012aSmrg
123287366012aSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
123297366012aSmrg# here-document in config.status, that substitutes the proper values into
123307366012aSmrg# config.h.in to produce config.h.
123317366012aSmrg
123327366012aSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
123337366012aSmrg# handling of long lines.
123347366012aSmrgac_delim='%!_!# '
123357366012aSmrgfor ac_last_try in false false :; do
123362adc0320Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
123372adc0320Smrg  if test -z "$ac_tt"; then
123387366012aSmrg    break
123397366012aSmrg  elif $ac_last_try; then
123402adc0320Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
123417366012aSmrg  else
123427366012aSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
123437366012aSmrg  fi
123447366012aSmrgdone
123457366012aSmrg
123467366012aSmrg# For the awk script, D is an array of macro values keyed by name,
123477366012aSmrg# likewise P contains macro parameters if any.  Preserve backslash
123487366012aSmrg# newline sequences.
123497366012aSmrg
123507366012aSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
123517366012aSmrgsed -n '
123527366012aSmrgs/.\{148\}/&'"$ac_delim"'/g
123537366012aSmrgt rset
123547366012aSmrg:rset
123557366012aSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
123567366012aSmrgt def
123577366012aSmrgd
123587366012aSmrg:def
123597366012aSmrgs/\\$//
123607366012aSmrgt bsnl
123617366012aSmrgs/["\\]/\\&/g
123627366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
123637366012aSmrgD["\1"]=" \3"/p
123647366012aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
123657366012aSmrgd
123667366012aSmrg:bsnl
123677366012aSmrgs/["\\]/\\&/g
123687366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
123697366012aSmrgD["\1"]=" \3\\\\\\n"\\/p
123707366012aSmrgt cont
123717366012aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
123727366012aSmrgt cont
123737366012aSmrgd
123747366012aSmrg:cont
123757366012aSmrgn
123767366012aSmrgs/.\{148\}/&'"$ac_delim"'/g
123777366012aSmrgt clear
123787366012aSmrg:clear
123797366012aSmrgs/\\$//
123807366012aSmrgt bsnlc
123817366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
123827366012aSmrgd
123837366012aSmrg:bsnlc
123847366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
123857366012aSmrgb cont
123867366012aSmrg' <confdefs.h | sed '
123877366012aSmrgs/'"$ac_delim"'/"\\\
123887366012aSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
123897366012aSmrg
123907366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
123917366012aSmrg  for (key in D) D_is_set[key] = 1
123927366012aSmrg  FS = ""
123937366012aSmrg}
123947366012aSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
123957366012aSmrg  line = \$ 0
123967366012aSmrg  split(line, arg, " ")
123977366012aSmrg  if (arg[1] == "#") {
123987366012aSmrg    defundef = arg[2]
123997366012aSmrg    mac1 = arg[3]
124007366012aSmrg  } else {
124017366012aSmrg    defundef = substr(arg[1], 2)
124027366012aSmrg    mac1 = arg[2]
124037366012aSmrg  }
124047366012aSmrg  split(mac1, mac2, "(") #)
124057366012aSmrg  macro = mac2[1]
124067366012aSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
124077366012aSmrg  if (D_is_set[macro]) {
124087366012aSmrg    # Preserve the white space surrounding the "#".
124097366012aSmrg    print prefix "define", macro P[macro] D[macro]
124107366012aSmrg    next
124117366012aSmrg  } else {
124127366012aSmrg    # Replace #undef with comments.  This is necessary, for example,
124137366012aSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
124147366012aSmrg    # on some systems where configure will not decide to define it.
124157366012aSmrg    if (defundef == "undef") {
124167366012aSmrg      print "/*", prefix defundef, macro, "*/"
124177366012aSmrg      next
124187366012aSmrg    }
124197366012aSmrg  }
124207366012aSmrg}
124217366012aSmrg{ print }
124227366012aSmrg_ACAWK
124237366012aSmrg_ACEOF
124247366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
124252adc0320Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
124267366012aSmrgfi # test -n "$CONFIG_HEADERS"
124277366012aSmrg
124287a0395d0Smrg
124297366012aSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
124307366012aSmrgshift
124317366012aSmrgfor ac_tag
124327a0395d0Smrgdo
124337a0395d0Smrg  case $ac_tag in
124347a0395d0Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
124357a0395d0Smrg  esac
124367a0395d0Smrg  case $ac_mode$ac_tag in
124377a0395d0Smrg  :[FHL]*:*);;
124382adc0320Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
124397a0395d0Smrg  :[FH]-) ac_tag=-:-;;
124407a0395d0Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
124417a0395d0Smrg  esac
124427a0395d0Smrg  ac_save_IFS=$IFS
124437a0395d0Smrg  IFS=:
124447a0395d0Smrg  set x $ac_tag
124457a0395d0Smrg  IFS=$ac_save_IFS
124467a0395d0Smrg  shift
124477a0395d0Smrg  ac_file=$1
124487a0395d0Smrg  shift
124497a0395d0Smrg
124507a0395d0Smrg  case $ac_mode in
124517a0395d0Smrg  :L) ac_source=$1;;
124527a0395d0Smrg  :[FH])
124537a0395d0Smrg    ac_file_inputs=
124547a0395d0Smrg    for ac_f
124557a0395d0Smrg    do
124567a0395d0Smrg      case $ac_f in
124572adc0320Smrg      -) ac_f="$ac_tmp/stdin";;
124587a0395d0Smrg      *) # Look for the file first in the build tree, then in the source tree
124597a0395d0Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
124607a0395d0Smrg	 # because $ac_f cannot contain `:'.
124617a0395d0Smrg	 test -f "$ac_f" ||
124627a0395d0Smrg	   case $ac_f in
124637a0395d0Smrg	   [\\/$]*) false;;
124647a0395d0Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
124657a0395d0Smrg	   esac ||
124662adc0320Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
124677a0395d0Smrg      esac
124687366012aSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
124692adc0320Smrg      as_fn_append ac_file_inputs " '$ac_f'"
124707a0395d0Smrg    done
124717a0395d0Smrg
124727a0395d0Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
124737a0395d0Smrg    # use $as_me), people would be surprised to read:
124747a0395d0Smrg    #    /* config.h.  Generated by config.status.  */
124757366012aSmrg    configure_input='Generated from '`
124767366012aSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
124777366012aSmrg	`' by configure.'
124787a0395d0Smrg    if test x"$ac_file" != x-; then
124797a0395d0Smrg      configure_input="$ac_file.  $configure_input"
124802adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
124817366012aSmrg$as_echo "$as_me: creating $ac_file" >&6;}
124827a0395d0Smrg    fi
124837366012aSmrg    # Neutralize special characters interpreted by sed in replacement strings.
124847366012aSmrg    case $configure_input in #(
124857366012aSmrg    *\&* | *\|* | *\\* )
124867366012aSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
124877366012aSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
124887366012aSmrg    *) ac_sed_conf_input=$configure_input;;
124897366012aSmrg    esac
124907a0395d0Smrg
124917a0395d0Smrg    case $ac_tag in
124922adc0320Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
124932adc0320Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
124947a0395d0Smrg    esac
124957a0395d0Smrg    ;;
124967a0395d0Smrg  esac
124977a0395d0Smrg
124987a0395d0Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
124997a0395d0Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
125007a0395d0Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
125017a0395d0Smrg	 X"$ac_file" : 'X\(//\)$' \| \
125027a0395d0Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
125037366012aSmrg$as_echo X"$ac_file" |
125047a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
125057a0395d0Smrg	    s//\1/
125067a0395d0Smrg	    q
125077a0395d0Smrg	  }
125087a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
125097a0395d0Smrg	    s//\1/
125107a0395d0Smrg	    q
125117a0395d0Smrg	  }
125127a0395d0Smrg	  /^X\(\/\/\)$/{
125137a0395d0Smrg	    s//\1/
125147a0395d0Smrg	    q
125157a0395d0Smrg	  }
125167a0395d0Smrg	  /^X\(\/\).*/{
125177a0395d0Smrg	    s//\1/
125187a0395d0Smrg	    q
125197a0395d0Smrg	  }
125207a0395d0Smrg	  s/.*/./; q'`
125212adc0320Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
125227a0395d0Smrg  ac_builddir=.
125237a0395d0Smrg
125247a0395d0Smrgcase "$ac_dir" in
125257a0395d0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
125267a0395d0Smrg*)
125277366012aSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
125287a0395d0Smrg  # A ".." for each directory in $ac_dir_suffix.
125297366012aSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
125307a0395d0Smrg  case $ac_top_builddir_sub in
125317a0395d0Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
125327a0395d0Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
125337a0395d0Smrg  esac ;;
125347a0395d0Smrgesac
125357a0395d0Smrgac_abs_top_builddir=$ac_pwd
125367a0395d0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
125377a0395d0Smrg# for backward compatibility:
125387a0395d0Smrgac_top_builddir=$ac_top_build_prefix
125397a0395d0Smrg
125407a0395d0Smrgcase $srcdir in
125417a0395d0Smrg  .)  # We are building in place.
125427a0395d0Smrg    ac_srcdir=.
125437a0395d0Smrg    ac_top_srcdir=$ac_top_builddir_sub
125447a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd ;;
125457a0395d0Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
125467a0395d0Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
125477a0395d0Smrg    ac_top_srcdir=$srcdir
125487a0395d0Smrg    ac_abs_top_srcdir=$srcdir ;;
125497a0395d0Smrg  *) # Relative name.
125507a0395d0Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
125517a0395d0Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
125527a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
125537a0395d0Smrgesac
125547a0395d0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
125557a0395d0Smrg
125567a0395d0Smrg
125577a0395d0Smrg  case $ac_mode in
125587a0395d0Smrg  :F)
125597a0395d0Smrg  #
125607a0395d0Smrg  # CONFIG_FILE
125617a0395d0Smrg  #
125627a0395d0Smrg
125637a0395d0Smrg  case $INSTALL in
125647a0395d0Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
125657a0395d0Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
125667a0395d0Smrg  esac
125677a0395d0Smrg  ac_MKDIR_P=$MKDIR_P
125687a0395d0Smrg  case $MKDIR_P in
125697a0395d0Smrg  [\\/$]* | ?:[\\/]* ) ;;
125707a0395d0Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
125717a0395d0Smrg  esac
125727a0395d0Smrg_ACEOF
125737a0395d0Smrg
125747366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
125757a0395d0Smrg# If the template does not know about datarootdir, expand it.
125767a0395d0Smrg# FIXME: This hack should be removed a few years after 2.60.
125777a0395d0Smrgac_datarootdir_hack=; ac_datarootdir_seen=
125787366012aSmrgac_sed_dataroot='
125797366012aSmrg/datarootdir/ {
125807a0395d0Smrg  p
125817a0395d0Smrg  q
125827a0395d0Smrg}
125837a0395d0Smrg/@datadir@/p
125847a0395d0Smrg/@docdir@/p
125857a0395d0Smrg/@infodir@/p
125867a0395d0Smrg/@localedir@/p
125872adc0320Smrg/@mandir@/p'
125887366012aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
125897a0395d0Smrg*datarootdir*) ac_datarootdir_seen=yes;;
125907a0395d0Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
125912adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
125927366012aSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
125937a0395d0Smrg_ACEOF
125947366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
125957a0395d0Smrg  ac_datarootdir_hack='
125967a0395d0Smrg  s&@datadir@&$datadir&g
125977a0395d0Smrg  s&@docdir@&$docdir&g
125987a0395d0Smrg  s&@infodir@&$infodir&g
125997a0395d0Smrg  s&@localedir@&$localedir&g
126007a0395d0Smrg  s&@mandir@&$mandir&g
126012adc0320Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
126027a0395d0Smrgesac
126037a0395d0Smrg_ACEOF
126047a0395d0Smrg
126057a0395d0Smrg# Neutralize VPATH when `$srcdir' = `.'.
126067a0395d0Smrg# Shell code in configure.ac might set extrasub.
126077a0395d0Smrg# FIXME: do we really want to maintain this feature?
126087366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
126097366012aSmrgac_sed_extra="$ac_vpsub
126107a0395d0Smrg$extrasub
126117a0395d0Smrg_ACEOF
126127366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
126137a0395d0Smrg:t
126147a0395d0Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
126157366012aSmrgs|@configure_input@|$ac_sed_conf_input|;t t
126167a0395d0Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
126177366012aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
126187a0395d0Smrgs&@srcdir@&$ac_srcdir&;t t
126197a0395d0Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
126207a0395d0Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
126217a0395d0Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
126227a0395d0Smrgs&@builddir@&$ac_builddir&;t t
126237a0395d0Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
126247a0395d0Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
126257a0395d0Smrgs&@INSTALL@&$ac_INSTALL&;t t
126267a0395d0Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
126277a0395d0Smrg$ac_datarootdir_hack
126287366012aSmrg"
126292adc0320Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
126302adc0320Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
126317a0395d0Smrg
126327a0395d0Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
126332adc0320Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
126342adc0320Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
126352adc0320Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
126362adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
126372adc0320Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
126387366012aSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
126392adc0320Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
126407a0395d0Smrg
126412adc0320Smrg  rm -f "$ac_tmp/stdin"
126427a0395d0Smrg  case $ac_file in
126432adc0320Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
126442adc0320Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
126457366012aSmrg  esac \
126462adc0320Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
126477a0395d0Smrg ;;
126487a0395d0Smrg  :H)
126497a0395d0Smrg  #
126507a0395d0Smrg  # CONFIG_HEADER
126517a0395d0Smrg  #
126527a0395d0Smrg  if test x"$ac_file" != x-; then
126537366012aSmrg    {
126547366012aSmrg      $as_echo "/* $configure_input  */" \
126552adc0320Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
126562adc0320Smrg    } >"$ac_tmp/config.h" \
126572adc0320Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
126582adc0320Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
126592adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
126607366012aSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
126617a0395d0Smrg    else
126627366012aSmrg      rm -f "$ac_file"
126632adc0320Smrg      mv "$ac_tmp/config.h" "$ac_file" \
126642adc0320Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
126657a0395d0Smrg    fi
126667a0395d0Smrg  else
126677366012aSmrg    $as_echo "/* $configure_input  */" \
126682adc0320Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
126692adc0320Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
126707a0395d0Smrg  fi
126717366012aSmrg# Compute "$ac_file"'s index in $config_headers.
126727366012aSmrg_am_arg="$ac_file"
126737a0395d0Smrg_am_stamp_count=1
126747a0395d0Smrgfor _am_header in $config_headers :; do
126757a0395d0Smrg  case $_am_header in
126767a0395d0Smrg    $_am_arg | $_am_arg:* )
126777a0395d0Smrg      break ;;
126787a0395d0Smrg    * )
126797a0395d0Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
126807a0395d0Smrg  esac
126817a0395d0Smrgdone
126827a0395d0Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
126837a0395d0Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
126847a0395d0Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
126857a0395d0Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
126867a0395d0Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
126877366012aSmrg$as_echo X"$_am_arg" |
126887a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
126897a0395d0Smrg	    s//\1/
126907a0395d0Smrg	    q
126917a0395d0Smrg	  }
126927a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
126937a0395d0Smrg	    s//\1/
126947a0395d0Smrg	    q
126957a0395d0Smrg	  }
126967a0395d0Smrg	  /^X\(\/\/\)$/{
126977a0395d0Smrg	    s//\1/
126987a0395d0Smrg	    q
126997a0395d0Smrg	  }
127007a0395d0Smrg	  /^X\(\/\).*/{
127017a0395d0Smrg	    s//\1/
127027a0395d0Smrg	    q
127037a0395d0Smrg	  }
127047a0395d0Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
127057a0395d0Smrg ;;
127067a0395d0Smrg
127072adc0320Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
127087366012aSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
127097a0395d0Smrg ;;
127107a0395d0Smrg  esac
127117a0395d0Smrg
127127a0395d0Smrg
127137a0395d0Smrg  case $ac_file$ac_mode in
127147366012aSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
127159a011757Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
127167366012aSmrg  # are listed without --file.  Let's play safe and only enable the eval
127177366012aSmrg  # if we detect the quoting.
127187366012aSmrg  case $CONFIG_FILES in
127197366012aSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
127207366012aSmrg  *)   set x $CONFIG_FILES ;;
127217366012aSmrg  esac
127227366012aSmrg  shift
127237366012aSmrg  for mf
127247366012aSmrg  do
127257366012aSmrg    # Strip MF so we end up with the name of the file.
127267366012aSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
127277366012aSmrg    # Check whether this is an Automake generated Makefile or not.
127288abc0ccfSmrg    # We used to match only the files named 'Makefile.in', but
127297366012aSmrg    # some people rename them; so instead we look at the file content.
127307366012aSmrg    # Grep'ing the first line is not enough: some people post-process
127317366012aSmrg    # each Makefile.in and add a new line on top of each file to say so.
127327366012aSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
127337366012aSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
127347366012aSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
127357366012aSmrg      dirpart=`$as_dirname -- "$mf" ||
127367a0395d0Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
127377a0395d0Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
127387a0395d0Smrg	 X"$mf" : 'X\(//\)$' \| \
127397a0395d0Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
127407366012aSmrg$as_echo X"$mf" |
127417a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
127427a0395d0Smrg	    s//\1/
127437a0395d0Smrg	    q
127447a0395d0Smrg	  }
127457a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
127467a0395d0Smrg	    s//\1/
127477a0395d0Smrg	    q
127487a0395d0Smrg	  }
127497a0395d0Smrg	  /^X\(\/\/\)$/{
127507a0395d0Smrg	    s//\1/
127517a0395d0Smrg	    q
127527a0395d0Smrg	  }
127537a0395d0Smrg	  /^X\(\/\).*/{
127547a0395d0Smrg	    s//\1/
127557a0395d0Smrg	    q
127567a0395d0Smrg	  }
127577a0395d0Smrg	  s/.*/./; q'`
127587366012aSmrg    else
127597366012aSmrg      continue
127607366012aSmrg    fi
127617366012aSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
127628abc0ccfSmrg    # from the Makefile without running 'make'.
127637366012aSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
127647366012aSmrg    test -z "$DEPDIR" && continue
127657366012aSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
127669a011757Smrg    test -z "$am__include" && continue
127677366012aSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
127687366012aSmrg    # Find all dependency output files, they are included files with
127697366012aSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
127707366012aSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
127717366012aSmrg    # expansion.
127727366012aSmrg    for file in `sed -n "
127737366012aSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
127748abc0ccfSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
127757366012aSmrg      # Make sure the directory exists.
127767366012aSmrg      test -f "$dirpart/$file" && continue
127777366012aSmrg      fdir=`$as_dirname -- "$file" ||
127787a0395d0Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
127797a0395d0Smrg	 X"$file" : 'X\(//\)[^/]' \| \
127807a0395d0Smrg	 X"$file" : 'X\(//\)$' \| \
127817a0395d0Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
127827366012aSmrg$as_echo X"$file" |
127837a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
127847a0395d0Smrg	    s//\1/
127857a0395d0Smrg	    q
127867a0395d0Smrg	  }
127877a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
127887a0395d0Smrg	    s//\1/
127897a0395d0Smrg	    q
127907a0395d0Smrg	  }
127917a0395d0Smrg	  /^X\(\/\/\)$/{
127927a0395d0Smrg	    s//\1/
127937a0395d0Smrg	    q
127947a0395d0Smrg	  }
127957a0395d0Smrg	  /^X\(\/\).*/{
127967a0395d0Smrg	    s//\1/
127977a0395d0Smrg	    q
127987a0395d0Smrg	  }
127997a0395d0Smrg	  s/.*/./; q'`
128002adc0320Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
128017366012aSmrg      # echo "creating $dirpart/$file"
128027366012aSmrg      echo '# dummy' > "$dirpart/$file"
128037366012aSmrg    done
128047a0395d0Smrg  done
128057366012aSmrg}
128067a0395d0Smrg ;;
128077a0395d0Smrg
128087a0395d0Smrg  esac
128097a0395d0Smrgdone # for ac_tag
128107a0395d0Smrg
128117a0395d0Smrg
128122adc0320Smrgas_fn_exit 0
128137a0395d0Smrg_ACEOF
128147a0395d0Smrgac_clean_files=$ac_clean_files_save
128157a0395d0Smrg
128167366012aSmrgtest $ac_write_fail = 0 ||
128172adc0320Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
128187366012aSmrg
128197a0395d0Smrg
128207a0395d0Smrg# configure is writing to config.log, and then calls config.status.
128217a0395d0Smrg# config.status does its own redirection, appending to config.log.
128227a0395d0Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
128237a0395d0Smrg# by configure, so config.status won't be able to write to it; its
128247a0395d0Smrg# output is simply discarded.  So we exec the FD to /dev/null,
128257a0395d0Smrg# effectively closing config.log, so it can be properly (re)opened and
128267a0395d0Smrg# appended to by config.status.  When coming back to configure, we
128277a0395d0Smrg# need to make the FD available again.
128287a0395d0Smrgif test "$no_create" != yes; then
128297a0395d0Smrg  ac_cs_success=:
128307a0395d0Smrg  ac_config_status_args=
128317a0395d0Smrg  test "$silent" = yes &&
128327a0395d0Smrg    ac_config_status_args="$ac_config_status_args --quiet"
128337a0395d0Smrg  exec 5>/dev/null
128347a0395d0Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
128357a0395d0Smrg  exec 5>>config.log
128367a0395d0Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
128377a0395d0Smrg  # would make configure fail if this is the last instruction.
128382adc0320Smrg  $ac_cs_success || as_fn_exit 1
128397a0395d0Smrgfi
128407366012aSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
128412adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
128427366012aSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
128437366012aSmrgfi
128447a0395d0Smrg
12845