configure revision 8abc0ccf
17a0395d0Smrg#! /bin/sh
27a0395d0Smrg# Guess values for system-dependent variables and create Makefiles.
38abc0ccfSmrg# Generated by GNU Autoconf 2.69 for xauth 1.0.8.
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'
5848abc0ccfSmrgPACKAGE_VERSION='1.0.8'
5858abc0ccfSmrgPACKAGE_STRING='xauth 1.0.8'
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
6352adc0320SmrgAM_BACKSLASH
6362adc0320SmrgAM_DEFAULT_VERBOSITY
6378abc0ccfSmrgAM_DEFAULT_V
6388abc0ccfSmrgAM_V
6392adc0320SmrgMAN_SUBSTS
6402adc0320SmrgXORG_MAN_PAGE
6417a0395d0SmrgADMIN_MAN_DIR
6427366012aSmrgDRIVER_MAN_DIR
6437366012aSmrgMISC_MAN_DIR
6447366012aSmrgFILE_MAN_DIR
6457366012aSmrgLIB_MAN_DIR
6467366012aSmrgAPP_MAN_DIR
6477366012aSmrgADMIN_MAN_SUFFIX
6487366012aSmrgDRIVER_MAN_SUFFIX
6497366012aSmrgMISC_MAN_SUFFIX
6507366012aSmrgFILE_MAN_SUFFIX
6517366012aSmrgLIB_MAN_SUFFIX
6527366012aSmrgAPP_MAN_SUFFIX
6532adc0320SmrgSED
6547366012aSmrghost_os
6557366012aSmrghost_vendor
6567366012aSmrghost_cpu
6577366012aSmrghost
6587366012aSmrgbuild_os
6597366012aSmrgbuild_vendor
6607366012aSmrgbuild_cpu
6617366012aSmrgbuild
6622adc0320SmrgINSTALL_CMD
6638abc0ccfSmrgPKG_CONFIG_LIBDIR
6648abc0ccfSmrgPKG_CONFIG_PATH
6652adc0320SmrgPKG_CONFIG
6667366012aSmrgCHANGELOG_CMD
66796402570SmrgSTRICT_CFLAGS
6687366012aSmrgCWARNFLAGS
66996402570SmrgBASE_CFLAGS
6707366012aSmrgEGREP
6717366012aSmrgGREP
6727366012aSmrgCPP
6737366012aSmrgam__fastdepCC_FALSE
6747366012aSmrgam__fastdepCC_TRUE
6757366012aSmrgCCDEPMODE
6768abc0ccfSmrgam__nodep
6777366012aSmrgAMDEPBACKSLASH
6787366012aSmrgAMDEP_FALSE
6797366012aSmrgAMDEP_TRUE
6807366012aSmrgam__quote
6817366012aSmrgam__include
6827366012aSmrgDEPDIR
6837366012aSmrgOBJEXT
6847366012aSmrgEXEEXT
6857366012aSmrgac_ct_CC
6867366012aSmrgCPPFLAGS
6877366012aSmrgLDFLAGS
6887366012aSmrgCFLAGS
6897366012aSmrgCC
6907366012aSmrgMAINT
6917366012aSmrgMAINTAINER_MODE_FALSE
6927366012aSmrgMAINTAINER_MODE_TRUE
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
7577366012aSmrgenable_maintainer_mode
7587366012aSmrgenable_dependency_tracking
75996402570Smrgenable_selective_werror
7607366012aSmrgenable_strict_compilation
7612adc0320Smrgenable_silent_rules
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
13248abc0ccfSmrg\`configure' configures xauth 1.0.8 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
13948abc0ccfSmrg     short | recursive ) echo "Configuration of xauth 1.0.8:";;
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]
14028abc0ccfSmrg  --enable-maintainer-mode
14038abc0ccfSmrg                          enable make rules and dependencies not useful (and
14048abc0ccfSmrg                          sometimes confusing) to the casual installer
14058abc0ccfSmrg  --enable-dependency-tracking
14068abc0ccfSmrg                          do not reject slow dependency extractors
14078abc0ccfSmrg  --disable-dependency-tracking
14088abc0ccfSmrg                          speeds up one-time build
140996402570Smrg  --disable-selective-werror
141096402570Smrg                          Turn off selective compiler errors. (default:
141196402570Smrg                          enabled)
14127366012aSmrg  --enable-strict-compilation
14137366012aSmrg                          Enable all warnings from compiler and make them
14147366012aSmrg                          errors (default: disabled)
14158abc0ccfSmrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
14168abc0ccfSmrg  --disable-silent-rules  verbose build output (undo: "make V=0")
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
15158abc0ccfSmrgxauth configure 1.0.8
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_check_decl LINENO SYMBOL VAR INCLUDES
15682adc0320Smrg# ---------------------------------------------
15692adc0320Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
15702adc0320Smrg# accordingly.
15712adc0320Smrgac_fn_c_check_decl ()
15722adc0320Smrg{
15732adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15742adc0320Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
15752adc0320Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
15762adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
15772adc0320Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
15782adc0320Smrgif eval \${$3+:} false; then :
15792adc0320Smrg  $as_echo_n "(cached) " >&6
15802adc0320Smrgelse
15812adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822adc0320Smrg/* end confdefs.h.  */
15832adc0320Smrg$4
15842adc0320Smrgint
15852adc0320Smrgmain ()
15862adc0320Smrg{
15872adc0320Smrg#ifndef $as_decl_name
15882adc0320Smrg#ifdef __cplusplus
15892adc0320Smrg  (void) $as_decl_use;
15902adc0320Smrg#else
15912adc0320Smrg  (void) $as_decl_name;
15922adc0320Smrg#endif
15932adc0320Smrg#endif
15942adc0320Smrg
15952adc0320Smrg  ;
15962adc0320Smrg  return 0;
15972adc0320Smrg}
15982adc0320Smrg_ACEOF
15992adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
16002adc0320Smrg  eval "$3=yes"
16012adc0320Smrgelse
16022adc0320Smrg  eval "$3=no"
16032adc0320Smrgfi
16042adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16052adc0320Smrgfi
16062adc0320Smrgeval ac_res=\$$3
16072adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16082adc0320Smrg$as_echo "$ac_res" >&6; }
16092adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16102adc0320Smrg
16112adc0320Smrg} # ac_fn_c_check_decl
16122adc0320Smrg
16132adc0320Smrg# ac_fn_c_try_cpp LINENO
16142adc0320Smrg# ----------------------
16152adc0320Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
16162adc0320Smrgac_fn_c_try_cpp ()
16172adc0320Smrg{
16182adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16192adc0320Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
16202adc0320Smrgcase "(($ac_try" in
16212adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222adc0320Smrg  *) ac_try_echo=$ac_try;;
16232adc0320Smrgesac
16242adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16252adc0320Smrg$as_echo "$ac_try_echo"; } >&5
16262adc0320Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
16272adc0320Smrg  ac_status=$?
16282adc0320Smrg  if test -s conftest.err; then
16292adc0320Smrg    grep -v '^ *+' conftest.err >conftest.er1
16302adc0320Smrg    cat conftest.er1 >&5
16312adc0320Smrg    mv -f conftest.er1 conftest.err
16322adc0320Smrg  fi
16332adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16342adc0320Smrg  test $ac_status = 0; } > conftest.i && {
16352adc0320Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16362adc0320Smrg	 test ! -s conftest.err
16372adc0320Smrg       }; then :
16382adc0320Smrg  ac_retval=0
16392adc0320Smrgelse
16402adc0320Smrg  $as_echo "$as_me: failed program was:" >&5
16412adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5
16422adc0320Smrg
16432adc0320Smrg    ac_retval=1
16442adc0320Smrgfi
16452adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16462adc0320Smrg  as_fn_set_status $ac_retval
16472adc0320Smrg
16482adc0320Smrg} # ac_fn_c_try_cpp
16492adc0320Smrg
16502adc0320Smrg# ac_fn_c_try_run LINENO
16512adc0320Smrg# ----------------------
16522adc0320Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
16532adc0320Smrg# that executables *can* be run.
16542adc0320Smrgac_fn_c_try_run ()
16552adc0320Smrg{
16562adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16572adc0320Smrg  if { { ac_try="$ac_link"
16582adc0320Smrgcase "(($ac_try" in
16592adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16602adc0320Smrg  *) ac_try_echo=$ac_try;;
16612adc0320Smrgesac
16622adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16632adc0320Smrg$as_echo "$ac_try_echo"; } >&5
16642adc0320Smrg  (eval "$ac_link") 2>&5
16652adc0320Smrg  ac_status=$?
16662adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16672adc0320Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
16682adc0320Smrg  { { case "(($ac_try" in
16692adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702adc0320Smrg  *) ac_try_echo=$ac_try;;
16712adc0320Smrgesac
16722adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16732adc0320Smrg$as_echo "$ac_try_echo"; } >&5
16742adc0320Smrg  (eval "$ac_try") 2>&5
16752adc0320Smrg  ac_status=$?
16762adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16772adc0320Smrg  test $ac_status = 0; }; }; then :
16782adc0320Smrg  ac_retval=0
16792adc0320Smrgelse
16802adc0320Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
16812adc0320Smrg       $as_echo "$as_me: failed program was:" >&5
16822adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5
16832adc0320Smrg
16842adc0320Smrg       ac_retval=$ac_status
16852adc0320Smrgfi
16862adc0320Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16872adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16882adc0320Smrg  as_fn_set_status $ac_retval
16892adc0320Smrg
16902adc0320Smrg} # ac_fn_c_try_run
16912adc0320Smrg
16922adc0320Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16932adc0320Smrg# -------------------------------------------------------
16942adc0320Smrg# Tests whether HEADER exists and can be compiled using the include files in
16952adc0320Smrg# INCLUDES, setting the cache variable VAR accordingly.
16962adc0320Smrgac_fn_c_check_header_compile ()
16972adc0320Smrg{
16982adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16992adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17002adc0320Smrg$as_echo_n "checking for $2... " >&6; }
17012adc0320Smrgif eval \${$3+:} false; then :
17022adc0320Smrg  $as_echo_n "(cached) " >&6
17032adc0320Smrgelse
17042adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17052adc0320Smrg/* end confdefs.h.  */
17062adc0320Smrg$4
17072adc0320Smrg#include <$2>
17082adc0320Smrg_ACEOF
17092adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
17102adc0320Smrg  eval "$3=yes"
17112adc0320Smrgelse
17122adc0320Smrg  eval "$3=no"
17132adc0320Smrgfi
17142adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152adc0320Smrgfi
17162adc0320Smrgeval ac_res=\$$3
17172adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17182adc0320Smrg$as_echo "$ac_res" >&6; }
17192adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17202adc0320Smrg
17212adc0320Smrg} # ac_fn_c_check_header_compile
17222adc0320Smrg
172396402570Smrg# ac_fn_c_try_link LINENO
172496402570Smrg# -----------------------
172596402570Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
172696402570Smrgac_fn_c_try_link ()
172796402570Smrg{
172896402570Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
172996402570Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
173096402570Smrg  if { { ac_try="$ac_link"
173196402570Smrgcase "(($ac_try" in
173296402570Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
173396402570Smrg  *) ac_try_echo=$ac_try;;
173496402570Smrgesac
173596402570Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
173696402570Smrg$as_echo "$ac_try_echo"; } >&5
173796402570Smrg  (eval "$ac_link") 2>conftest.err
173896402570Smrg  ac_status=$?
173996402570Smrg  if test -s conftest.err; then
174096402570Smrg    grep -v '^ *+' conftest.err >conftest.er1
174196402570Smrg    cat conftest.er1 >&5
174296402570Smrg    mv -f conftest.er1 conftest.err
174396402570Smrg  fi
174496402570Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
174596402570Smrg  test $ac_status = 0; } && {
174696402570Smrg	 test -z "$ac_c_werror_flag" ||
174796402570Smrg	 test ! -s conftest.err
174896402570Smrg       } && test -s conftest$ac_exeext && {
174996402570Smrg	 test "$cross_compiling" = yes ||
17508abc0ccfSmrg	 test -x conftest$ac_exeext
175196402570Smrg       }; then :
175296402570Smrg  ac_retval=0
175396402570Smrgelse
175496402570Smrg  $as_echo "$as_me: failed program was:" >&5
175596402570Smrgsed 's/^/| /' conftest.$ac_ext >&5
175696402570Smrg
175796402570Smrg	ac_retval=1
175896402570Smrgfi
175996402570Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
176096402570Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
176196402570Smrg  # interfere with the next link command; also delete a directory that is
176296402570Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
176396402570Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
176496402570Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
176596402570Smrg  as_fn_set_status $ac_retval
176696402570Smrg
176796402570Smrg} # ac_fn_c_try_link
176896402570Smrg
17692adc0320Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
17702adc0320Smrg# -------------------------------------------------------
17712adc0320Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using
17722adc0320Smrg# the include files in INCLUDES and setting the cache variable VAR
17732adc0320Smrg# accordingly.
17742adc0320Smrgac_fn_c_check_header_mongrel ()
17752adc0320Smrg{
17762adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17772adc0320Smrg  if eval \${$3+:} false; then :
17782adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17792adc0320Smrg$as_echo_n "checking for $2... " >&6; }
17802adc0320Smrgif eval \${$3+:} false; then :
17812adc0320Smrg  $as_echo_n "(cached) " >&6
17822adc0320Smrgfi
17832adc0320Smrgeval ac_res=\$$3
17842adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17852adc0320Smrg$as_echo "$ac_res" >&6; }
17862adc0320Smrgelse
17872adc0320Smrg  # Is the header compilable?
17882adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
17892adc0320Smrg$as_echo_n "checking $2 usability... " >&6; }
17902adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912adc0320Smrg/* end confdefs.h.  */
17922adc0320Smrg$4
17932adc0320Smrg#include <$2>
17942adc0320Smrg_ACEOF
17952adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
17962adc0320Smrg  ac_header_compiler=yes
17972adc0320Smrgelse
17982adc0320Smrg  ac_header_compiler=no
17992adc0320Smrgfi
18002adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18012adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
18022adc0320Smrg$as_echo "$ac_header_compiler" >&6; }
18032adc0320Smrg
18042adc0320Smrg# Is the header present?
18052adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
18062adc0320Smrg$as_echo_n "checking $2 presence... " >&6; }
18072adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082adc0320Smrg/* end confdefs.h.  */
18092adc0320Smrg#include <$2>
18102adc0320Smrg_ACEOF
18112adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then :
18122adc0320Smrg  ac_header_preproc=yes
18132adc0320Smrgelse
18142adc0320Smrg  ac_header_preproc=no
18152adc0320Smrgfi
18162adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext
18172adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
18182adc0320Smrg$as_echo "$ac_header_preproc" >&6; }
18192adc0320Smrg
18202adc0320Smrg# So?  What about this header?
18212adc0320Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
18222adc0320Smrg  yes:no: )
18232adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
18242adc0320Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
18252adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
18262adc0320Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
18272adc0320Smrg    ;;
18282adc0320Smrg  no:yes:* )
18292adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
18302adc0320Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
18312adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
18322adc0320Smrg$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
18332adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
18342adc0320Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
18352adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
18362adc0320Smrg$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
18372adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
18382adc0320Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
18392adc0320Smrg( $as_echo "## ---------------------------------------------------------------------- ##
18402adc0320Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
18412adc0320Smrg## ---------------------------------------------------------------------- ##"
18422adc0320Smrg     ) | sed "s/^/$as_me: WARNING:     /" >&2
18432adc0320Smrg    ;;
18442adc0320Smrgesac
18452adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18462adc0320Smrg$as_echo_n "checking for $2... " >&6; }
18472adc0320Smrgif eval \${$3+:} false; then :
18482adc0320Smrg  $as_echo_n "(cached) " >&6
18492adc0320Smrgelse
18502adc0320Smrg  eval "$3=\$ac_header_compiler"
18512adc0320Smrgfi
18522adc0320Smrgeval ac_res=\$$3
18532adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18542adc0320Smrg$as_echo "$ac_res" >&6; }
18552adc0320Smrgfi
18562adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18572adc0320Smrg
18582adc0320Smrg} # ac_fn_c_check_header_mongrel
18592adc0320Smrg
18602adc0320Smrg# ac_fn_c_check_func LINENO FUNC VAR
18612adc0320Smrg# ----------------------------------
18622adc0320Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
18632adc0320Smrgac_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
18712adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18722adc0320Smrg/* end confdefs.h.  */
18732adc0320Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
18742adc0320Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18752adc0320Smrg#define $2 innocuous_$2
18762adc0320Smrg
18772adc0320Smrg/* System header to define __stub macros and hopefully few prototypes,
18782adc0320Smrg    which can conflict with char $2 (); below.
18792adc0320Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802adc0320Smrg    <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
20418abc0ccfSmrgIt was created by xauth $as_me 1.0.8, 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
23898abc0ccfSmrgam__api_version='1.12'
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
26027a0395d0Smrgif eval "$MISSING --run true"; then
26037a0395d0Smrg  am_missing_run="$MISSING --run "
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
28437a0395d0Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
28447a0395d0Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
28457a0395d0Smrg  # is not polluted with repeated "-I."
28467a0395d0Smrg  am__isrc=' -I$(srcdir)'
28477a0395d0Smrg  # test to see if srcdir already configured
28487a0395d0Smrg  if test -f $srcdir/config.status; then
28492adc0320Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
28507a0395d0Smrg  fi
28517a0395d0Smrgfi
28527a0395d0Smrg
28537a0395d0Smrg# test whether we have cygpath
28547a0395d0Smrgif test -z "$CYGPATH_W"; then
28557a0395d0Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
28567a0395d0Smrg    CYGPATH_W='cygpath -w'
28577a0395d0Smrg  else
28587a0395d0Smrg    CYGPATH_W=echo
28597a0395d0Smrg  fi
28607a0395d0Smrgfi
28617a0395d0Smrg
28627a0395d0Smrg
28637a0395d0Smrg# Define the identity of the package.
28647a0395d0Smrg PACKAGE='xauth'
28658abc0ccfSmrg VERSION='1.0.8'
28667a0395d0Smrg
28677a0395d0Smrg
28687a0395d0Smrgcat >>confdefs.h <<_ACEOF
28697a0395d0Smrg#define PACKAGE "$PACKAGE"
28707a0395d0Smrg_ACEOF
28717a0395d0Smrg
28727a0395d0Smrg
28737a0395d0Smrgcat >>confdefs.h <<_ACEOF
28747a0395d0Smrg#define VERSION "$VERSION"
28757a0395d0Smrg_ACEOF
28767a0395d0Smrg
28777a0395d0Smrg# Some tools Automake needs.
28787a0395d0Smrg
28797a0395d0SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
28807a0395d0Smrg
28817a0395d0Smrg
28827a0395d0SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
28837a0395d0Smrg
28847a0395d0Smrg
28857a0395d0SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
28867a0395d0Smrg
28877a0395d0Smrg
28887a0395d0SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
28897a0395d0Smrg
28907a0395d0Smrg
28917a0395d0SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
28927a0395d0Smrg
28938abc0ccfSmrg# For better backward compatibility.  To be removed once Automake 1.9.x
28948abc0ccfSmrg# dies out for good.  For more background, see:
28958abc0ccfSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
28968abc0ccfSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
28978abc0ccfSmrgmkdir_p='$(MKDIR_P)'
28988abc0ccfSmrg
28997a0395d0Smrg# We need awk for the "check" target.  The system "awk" is bad on
29007a0395d0Smrg# some platforms.
29018abc0ccfSmrg# Always define AMTAR for backward compatibility.  Yes, it's still used
29028abc0ccfSmrg# in the wild :-(  We should find a proper way to deprecate it ...
29038abc0ccfSmrgAMTAR='$${TAR-tar}'
29047a0395d0Smrg
29058abc0ccfSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
29067a0395d0Smrg
29077a0395d0Smrg
29087a0395d0Smrg
29097a0395d0Smrg
29107a0395d0Smrg
29117366012aSmrg
29122adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29137366012aSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29147a0395d0Smrg    # Check whether --enable-maintainer-mode was given.
29152adc0320Smrgif test "${enable_maintainer_mode+set}" = set; then :
29167a0395d0Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
29177a0395d0Smrgelse
29187a0395d0Smrg  USE_MAINTAINER_MODE=no
29197a0395d0Smrgfi
29207a0395d0Smrg
29212adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
29227366012aSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
29237a0395d0Smrg   if test $USE_MAINTAINER_MODE = yes; then
29247a0395d0Smrg  MAINTAINER_MODE_TRUE=
29257a0395d0Smrg  MAINTAINER_MODE_FALSE='#'
29267a0395d0Smrgelse
29277a0395d0Smrg  MAINTAINER_MODE_TRUE='#'
29287a0395d0Smrg  MAINTAINER_MODE_FALSE=
29297a0395d0Smrgfi
29307a0395d0Smrg
29317a0395d0Smrg  MAINT=$MAINTAINER_MODE_TRUE
29327a0395d0Smrg
29337a0395d0Smrg
29347a0395d0Smrg
29357a0395d0Smrgac_config_headers="$ac_config_headers config.h"
29367a0395d0Smrg
29377a0395d0Smrg
29382adc0320Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
29392adc0320Smrg
29402adc0320Smrg
29417366012aSmrg
29427366012aSmrg
29437366012aSmrg
29447366012aSmrg
29457366012aSmrg
29467366012aSmrg
29477366012aSmrg
29487366012aSmrg
29497a0395d0Smrg
29502adc0320SmrgDEPDIR="${am__leading_dot}deps"
29512adc0320Smrg
29522adc0320Smrgac_config_commands="$ac_config_commands depfiles"
29532adc0320Smrg
29542adc0320Smrg
29552adc0320Smrgam_make=${MAKE-make}
29562adc0320Smrgcat > confinc << 'END'
29572adc0320Smrgam__doit:
29582adc0320Smrg	@echo this is the am__doit target
29592adc0320Smrg.PHONY: am__doit
29602adc0320SmrgEND
29612adc0320Smrg# If we don't find an include directive, just comment out the code.
29622adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
29632adc0320Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
29642adc0320Smrgam__include="#"
29652adc0320Smrgam__quote=
29662adc0320Smrg_am_result=none
29672adc0320Smrg# First try GNU make style include.
29682adc0320Smrgecho "include confinc" > confmf
29698abc0ccfSmrg# Ignore all kinds of additional output from 'make'.
29702adc0320Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
29712adc0320Smrg*the\ am__doit\ target*)
29722adc0320Smrg  am__include=include
29732adc0320Smrg  am__quote=
29742adc0320Smrg  _am_result=GNU
29752adc0320Smrg  ;;
29762adc0320Smrgesac
29772adc0320Smrg# Now try BSD make style include.
29782adc0320Smrgif test "$am__include" = "#"; then
29792adc0320Smrg   echo '.include "confinc"' > confmf
29802adc0320Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
29812adc0320Smrg   *the\ am__doit\ target*)
29822adc0320Smrg     am__include=.include
29832adc0320Smrg     am__quote="\""
29842adc0320Smrg     _am_result=BSD
29852adc0320Smrg     ;;
29862adc0320Smrg   esac
29872adc0320Smrgfi
29882adc0320Smrg
29892adc0320Smrg
29902adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
29912adc0320Smrg$as_echo "$_am_result" >&6; }
29922adc0320Smrgrm -f confinc confmf
29932adc0320Smrg
29942adc0320Smrg# Check whether --enable-dependency-tracking was given.
29952adc0320Smrgif test "${enable_dependency_tracking+set}" = set; then :
29962adc0320Smrg  enableval=$enable_dependency_tracking;
29972adc0320Smrgfi
29987a0395d0Smrg
29992adc0320Smrgif test "x$enable_dependency_tracking" != xno; then
30002adc0320Smrg  am_depcomp="$ac_aux_dir/depcomp"
30012adc0320Smrg  AMDEPBACKSLASH='\'
30028abc0ccfSmrg  am__nodep='_no'
30032adc0320Smrgfi
30042adc0320Smrg if test "x$enable_dependency_tracking" != xno; then
30052adc0320Smrg  AMDEP_TRUE=
30062adc0320Smrg  AMDEP_FALSE='#'
30072adc0320Smrgelse
30082adc0320Smrg  AMDEP_TRUE='#'
30092adc0320Smrg  AMDEP_FALSE=
30102adc0320Smrgfi
30117a0395d0Smrg
30127a0395d0Smrg
30137a0395d0Smrgac_ext=c
30147a0395d0Smrgac_cpp='$CPP $CPPFLAGS'
30157a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30167a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30177a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
30187a0395d0Smrgif test -n "$ac_tool_prefix"; then
30197a0395d0Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
30207a0395d0Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
30212adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30227366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
30232adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
30247366012aSmrg  $as_echo_n "(cached) " >&6
30257a0395d0Smrgelse
30267a0395d0Smrg  if test -n "$CC"; then
30277a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
30287a0395d0Smrgelse
30297a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30307a0395d0Smrgfor as_dir in $PATH
30317a0395d0Smrgdo
30327a0395d0Smrg  IFS=$as_save_IFS
30337a0395d0Smrg  test -z "$as_dir" && as_dir=.
30342adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
30358abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30367a0395d0Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
30372adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30387a0395d0Smrg    break 2
30397a0395d0Smrg  fi
30407a0395d0Smrgdone
30412adc0320Smrg  done
30427a0395d0SmrgIFS=$as_save_IFS
30437a0395d0Smrg
30447a0395d0Smrgfi
30457a0395d0Smrgfi
30467a0395d0SmrgCC=$ac_cv_prog_CC
30477a0395d0Smrgif test -n "$CC"; then
30482adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
30497366012aSmrg$as_echo "$CC" >&6; }
30507a0395d0Smrgelse
30512adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30527366012aSmrg$as_echo "no" >&6; }
30537a0395d0Smrgfi
30547a0395d0Smrg
30557a0395d0Smrg
30567a0395d0Smrgfi
30577a0395d0Smrgif test -z "$ac_cv_prog_CC"; then
30587a0395d0Smrg  ac_ct_CC=$CC
30597a0395d0Smrg  # Extract the first word of "gcc", so it can be a program name with args.
30607a0395d0Smrgset dummy gcc; ac_word=$2
30612adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30627366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
30632adc0320Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
30647366012aSmrg  $as_echo_n "(cached) " >&6
30657a0395d0Smrgelse
30667a0395d0Smrg  if test -n "$ac_ct_CC"; then
30677a0395d0Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30687a0395d0Smrgelse
30697a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30707a0395d0Smrgfor as_dir in $PATH
30717a0395d0Smrgdo
30727a0395d0Smrg  IFS=$as_save_IFS
30737a0395d0Smrg  test -z "$as_dir" && as_dir=.
30742adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
30758abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30767a0395d0Smrg    ac_cv_prog_ac_ct_CC="gcc"
30772adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30787a0395d0Smrg    break 2
30797a0395d0Smrg  fi
30807a0395d0Smrgdone
30812adc0320Smrg  done
30827a0395d0SmrgIFS=$as_save_IFS
30837a0395d0Smrg
30847a0395d0Smrgfi
30857a0395d0Smrgfi
30867a0395d0Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
30877a0395d0Smrgif test -n "$ac_ct_CC"; then
30882adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
30897366012aSmrg$as_echo "$ac_ct_CC" >&6; }
30907a0395d0Smrgelse
30912adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30927366012aSmrg$as_echo "no" >&6; }
30937a0395d0Smrgfi
30947a0395d0Smrg
30957a0395d0Smrg  if test "x$ac_ct_CC" = x; then
30967a0395d0Smrg    CC=""
30977a0395d0Smrg  else
30987a0395d0Smrg    case $cross_compiling:$ac_tool_warned in
30997a0395d0Smrgyes:)
31002adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31017366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31027a0395d0Smrgac_tool_warned=yes ;;
31037a0395d0Smrgesac
31047a0395d0Smrg    CC=$ac_ct_CC
31057a0395d0Smrg  fi
31067a0395d0Smrgelse
31077a0395d0Smrg  CC="$ac_cv_prog_CC"
31087a0395d0Smrgfi
31097a0395d0Smrg
31107a0395d0Smrgif test -z "$CC"; then
31117a0395d0Smrg          if test -n "$ac_tool_prefix"; then
31127a0395d0Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
31137a0395d0Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
31142adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31157366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
31162adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
31177366012aSmrg  $as_echo_n "(cached) " >&6
31187a0395d0Smrgelse
31197a0395d0Smrg  if test -n "$CC"; then
31207a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
31217a0395d0Smrgelse
31227a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31237a0395d0Smrgfor as_dir in $PATH
31247a0395d0Smrgdo
31257a0395d0Smrg  IFS=$as_save_IFS
31267a0395d0Smrg  test -z "$as_dir" && as_dir=.
31272adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
31288abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31297a0395d0Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
31302adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31317a0395d0Smrg    break 2
31327a0395d0Smrg  fi
31337a0395d0Smrgdone
31342adc0320Smrg  done
31357a0395d0SmrgIFS=$as_save_IFS
31367a0395d0Smrg
31377a0395d0Smrgfi
31387a0395d0Smrgfi
31397a0395d0SmrgCC=$ac_cv_prog_CC
31407a0395d0Smrgif test -n "$CC"; then
31412adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
31427366012aSmrg$as_echo "$CC" >&6; }
31437a0395d0Smrgelse
31442adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31457366012aSmrg$as_echo "no" >&6; }
31467a0395d0Smrgfi
31477a0395d0Smrg
31487a0395d0Smrg
31497a0395d0Smrg  fi
31507a0395d0Smrgfi
31517a0395d0Smrgif test -z "$CC"; then
31527a0395d0Smrg  # Extract the first word of "cc", so it can be a program name with args.
31537a0395d0Smrgset dummy cc; ac_word=$2
31542adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31557366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
31562adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
31577366012aSmrg  $as_echo_n "(cached) " >&6
31587a0395d0Smrgelse
31597a0395d0Smrg  if test -n "$CC"; then
31607a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
31617a0395d0Smrgelse
31627a0395d0Smrg  ac_prog_rejected=no
31637a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31647a0395d0Smrgfor as_dir in $PATH
31657a0395d0Smrgdo
31667a0395d0Smrg  IFS=$as_save_IFS
31677a0395d0Smrg  test -z "$as_dir" && as_dir=.
31682adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
31698abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31707a0395d0Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
31717a0395d0Smrg       ac_prog_rejected=yes
31727a0395d0Smrg       continue
31737a0395d0Smrg     fi
31747a0395d0Smrg    ac_cv_prog_CC="cc"
31752adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31767a0395d0Smrg    break 2
31777a0395d0Smrg  fi
31787a0395d0Smrgdone
31792adc0320Smrg  done
31807a0395d0SmrgIFS=$as_save_IFS
31817a0395d0Smrg
31827a0395d0Smrgif test $ac_prog_rejected = yes; then
31837a0395d0Smrg  # We found a bogon in the path, so make sure we never use it.
31847a0395d0Smrg  set dummy $ac_cv_prog_CC
31857a0395d0Smrg  shift
31867a0395d0Smrg  if test $# != 0; then
31877a0395d0Smrg    # We chose a different compiler from the bogus one.
31887a0395d0Smrg    # However, it has the same basename, so the bogon will be chosen
31897a0395d0Smrg    # first if we set CC to just the basename; use the full file name.
31907a0395d0Smrg    shift
31917a0395d0Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
31927a0395d0Smrg  fi
31937a0395d0Smrgfi
31947a0395d0Smrgfi
31957a0395d0Smrgfi
31967a0395d0SmrgCC=$ac_cv_prog_CC
31977a0395d0Smrgif test -n "$CC"; then
31982adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
31997366012aSmrg$as_echo "$CC" >&6; }
32007a0395d0Smrgelse
32012adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32027366012aSmrg$as_echo "no" >&6; }
32037a0395d0Smrgfi
32047a0395d0Smrg
32057a0395d0Smrg
32067a0395d0Smrgfi
32077a0395d0Smrgif test -z "$CC"; then
32087a0395d0Smrg  if test -n "$ac_tool_prefix"; then
32097a0395d0Smrg  for ac_prog in cl.exe
32107a0395d0Smrg  do
32117a0395d0Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32127a0395d0Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
32132adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32147366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
32152adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
32167366012aSmrg  $as_echo_n "(cached) " >&6
32177a0395d0Smrgelse
32187a0395d0Smrg  if test -n "$CC"; then
32197a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
32207a0395d0Smrgelse
32217a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32227a0395d0Smrgfor as_dir in $PATH
32237a0395d0Smrgdo
32247a0395d0Smrg  IFS=$as_save_IFS
32257a0395d0Smrg  test -z "$as_dir" && as_dir=.
32262adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
32278abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32287a0395d0Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
32292adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32307a0395d0Smrg    break 2
32317a0395d0Smrg  fi
32327a0395d0Smrgdone
32332adc0320Smrg  done
32347a0395d0SmrgIFS=$as_save_IFS
32357a0395d0Smrg
32367a0395d0Smrgfi
32377a0395d0Smrgfi
32387a0395d0SmrgCC=$ac_cv_prog_CC
32397a0395d0Smrgif test -n "$CC"; then
32402adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
32417366012aSmrg$as_echo "$CC" >&6; }
32427a0395d0Smrgelse
32432adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32447366012aSmrg$as_echo "no" >&6; }
32457a0395d0Smrgfi
32467a0395d0Smrg
32477a0395d0Smrg
32487a0395d0Smrg    test -n "$CC" && break
32497a0395d0Smrg  done
32507a0395d0Smrgfi
32517a0395d0Smrgif test -z "$CC"; then
32527a0395d0Smrg  ac_ct_CC=$CC
32537a0395d0Smrg  for ac_prog in cl.exe
32547a0395d0Smrgdo
32557a0395d0Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
32567a0395d0Smrgset dummy $ac_prog; ac_word=$2
32572adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32587366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
32592adc0320Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
32607366012aSmrg  $as_echo_n "(cached) " >&6
32617a0395d0Smrgelse
32627a0395d0Smrg  if test -n "$ac_ct_CC"; then
32637a0395d0Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
32647a0395d0Smrgelse
32657a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32667a0395d0Smrgfor as_dir in $PATH
32677a0395d0Smrgdo
32687a0395d0Smrg  IFS=$as_save_IFS
32697a0395d0Smrg  test -z "$as_dir" && as_dir=.
32702adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
32718abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32727a0395d0Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
32732adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32747a0395d0Smrg    break 2
32757a0395d0Smrg  fi
32767a0395d0Smrgdone
32772adc0320Smrg  done
32787a0395d0SmrgIFS=$as_save_IFS
32797a0395d0Smrg
32807a0395d0Smrgfi
32817a0395d0Smrgfi
32827a0395d0Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
32837a0395d0Smrgif test -n "$ac_ct_CC"; then
32842adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
32857366012aSmrg$as_echo "$ac_ct_CC" >&6; }
32867a0395d0Smrgelse
32872adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32887366012aSmrg$as_echo "no" >&6; }
32897a0395d0Smrgfi
32907a0395d0Smrg
32917a0395d0Smrg
32927a0395d0Smrg  test -n "$ac_ct_CC" && break
32937a0395d0Smrgdone
32947a0395d0Smrg
32957a0395d0Smrg  if test "x$ac_ct_CC" = x; then
32967a0395d0Smrg    CC=""
32977a0395d0Smrg  else
32987a0395d0Smrg    case $cross_compiling:$ac_tool_warned in
32997a0395d0Smrgyes:)
33002adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33017366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33027a0395d0Smrgac_tool_warned=yes ;;
33037a0395d0Smrgesac
33047a0395d0Smrg    CC=$ac_ct_CC
33057a0395d0Smrg  fi
33067a0395d0Smrgfi
33077a0395d0Smrg
33087a0395d0Smrgfi
33097a0395d0Smrg
33107a0395d0Smrg
33112adc0320Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33127366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33132adc0320Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
33142adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
33157a0395d0Smrg
33167a0395d0Smrg# Provide some information about the compiler.
33172adc0320Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
33187366012aSmrgset X $ac_compile
33197366012aSmrgac_compiler=$2
33202adc0320Smrgfor ac_option in --version -v -V -qversion; do
33212adc0320Smrg  { { ac_try="$ac_compiler $ac_option >&5"
33227a0395d0Smrgcase "(($ac_try" in
33237a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33247a0395d0Smrg  *) ac_try_echo=$ac_try;;
33257a0395d0Smrgesac
33262adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
33272adc0320Smrg$as_echo "$ac_try_echo"; } >&5
33282adc0320Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
33297a0395d0Smrg  ac_status=$?
33302adc0320Smrg  if test -s conftest.err; then
33312adc0320Smrg    sed '10a\
33322adc0320Smrg... rest of stderr output deleted ...
33332adc0320Smrg         10q' conftest.err >conftest.er1
33342adc0320Smrg    cat conftest.er1 >&5
33352adc0320Smrg  fi
33362adc0320Smrg  rm -f conftest.er1 conftest.err
33372adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33382adc0320Smrg  test $ac_status = 0; }
33392adc0320Smrgdone
33407a0395d0Smrg
33412adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
33427a0395d0Smrg/* end confdefs.h.  */
33437a0395d0Smrg
33447a0395d0Smrgint
33457a0395d0Smrgmain ()
33467a0395d0Smrg{
33477a0395d0Smrg
33487a0395d0Smrg  ;
33497a0395d0Smrg  return 0;
33507a0395d0Smrg}
33517a0395d0Smrg_ACEOF
33527a0395d0Smrgac_clean_files_save=$ac_clean_files
33537366012aSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
33547a0395d0Smrg# Try to create an executable without -o first, disregard a.out.
33557a0395d0Smrg# It will help us diagnose broken compilers, and finding out an intuition
33567a0395d0Smrg# of exeext.
33572adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
33582adc0320Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
33597366012aSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
33607366012aSmrg
33617366012aSmrg# The possible output files:
33627366012aSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
33637366012aSmrg
33647a0395d0Smrgac_rmfiles=
33657a0395d0Smrgfor ac_file in $ac_files
33667a0395d0Smrgdo
33677a0395d0Smrg  case $ac_file in
33687366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
33697a0395d0Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
33707a0395d0Smrg  esac
33717a0395d0Smrgdone
33727a0395d0Smrgrm -f $ac_rmfiles
33737a0395d0Smrg
33742adc0320Smrgif { { ac_try="$ac_link_default"
33757a0395d0Smrgcase "(($ac_try" in
33767a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33777a0395d0Smrg  *) ac_try_echo=$ac_try;;
33787a0395d0Smrgesac
33792adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
33802adc0320Smrg$as_echo "$ac_try_echo"; } >&5
33817a0395d0Smrg  (eval "$ac_link_default") 2>&5
33827a0395d0Smrg  ac_status=$?
33832adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33842adc0320Smrg  test $ac_status = 0; }; then :
33857a0395d0Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
33867a0395d0Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
33877a0395d0Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
33887a0395d0Smrg# so that the user can short-circuit this test for compilers unknown to
33897a0395d0Smrg# Autoconf.
33907a0395d0Smrgfor ac_file in $ac_files ''
33917a0395d0Smrgdo
33927a0395d0Smrg  test -f "$ac_file" || continue
33937a0395d0Smrg  case $ac_file in
33947366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
33957a0395d0Smrg	;;
33967a0395d0Smrg    [ab].out )
33977a0395d0Smrg	# We found the default executable, but exeext='' is most
33987a0395d0Smrg	# certainly right.
33997a0395d0Smrg	break;;
34007a0395d0Smrg    *.* )
34012adc0320Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
34027a0395d0Smrg	then :; else
34037a0395d0Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
34047a0395d0Smrg	fi
34057a0395d0Smrg	# We set ac_cv_exeext here because the later test for it is not
34067a0395d0Smrg	# safe: cross compilers may not add the suffix if given an `-o'
34077a0395d0Smrg	# argument, so we may need to know it at that point already.
34087a0395d0Smrg	# Even if this section looks crufty: it has the advantage of
34097a0395d0Smrg	# actually working.
34107a0395d0Smrg	break;;
34117a0395d0Smrg    * )
34127a0395d0Smrg	break;;
34137a0395d0Smrg  esac
34147a0395d0Smrgdone
34157a0395d0Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
34167a0395d0Smrg
34177a0395d0Smrgelse
34187a0395d0Smrg  ac_file=''
34197a0395d0Smrgfi
34202adc0320Smrgif test -z "$ac_file"; then :
34212adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34222adc0320Smrg$as_echo "no" >&6; }
34232adc0320Smrg$as_echo "$as_me: failed program was:" >&5
34247a0395d0Smrgsed 's/^/| /' conftest.$ac_ext >&5
34257a0395d0Smrg
34262adc0320Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34277366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34282adc0320Smrgas_fn_error 77 "C compiler cannot create executables
34292adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
34302adc0320Smrgelse
34312adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34322adc0320Smrg$as_echo "yes" >&6; }
34337a0395d0Smrgfi
34342adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
34352adc0320Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
34362adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
34372adc0320Smrg$as_echo "$ac_file" >&6; }
34387a0395d0Smrgac_exeext=$ac_cv_exeext
34397a0395d0Smrg
34407366012aSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
34417a0395d0Smrgac_clean_files=$ac_clean_files_save
34422adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
34437366012aSmrg$as_echo_n "checking for suffix of executables... " >&6; }
34442adc0320Smrgif { { ac_try="$ac_link"
34457a0395d0Smrgcase "(($ac_try" in
34467a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34477a0395d0Smrg  *) ac_try_echo=$ac_try;;
34487a0395d0Smrgesac
34492adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
34502adc0320Smrg$as_echo "$ac_try_echo"; } >&5
34517a0395d0Smrg  (eval "$ac_link") 2>&5
34527a0395d0Smrg  ac_status=$?
34532adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34542adc0320Smrg  test $ac_status = 0; }; then :
34557a0395d0Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
34567a0395d0Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
34577a0395d0Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
34587a0395d0Smrg# `rm'.
34597a0395d0Smrgfor ac_file in conftest.exe conftest conftest.*; do
34607a0395d0Smrg  test -f "$ac_file" || continue
34617a0395d0Smrg  case $ac_file in
34627366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
34637a0395d0Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
34647a0395d0Smrg	  break;;
34657a0395d0Smrg    * ) break;;
34667a0395d0Smrg  esac
34677a0395d0Smrgdone
34687a0395d0Smrgelse
34692adc0320Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34707366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34712adc0320Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
34722adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
34737a0395d0Smrgfi
34742adc0320Smrgrm -f conftest conftest$ac_cv_exeext
34752adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
34767366012aSmrg$as_echo "$ac_cv_exeext" >&6; }
34777a0395d0Smrg
34787a0395d0Smrgrm -f conftest.$ac_ext
34797a0395d0SmrgEXEEXT=$ac_cv_exeext
34807a0395d0Smrgac_exeext=$EXEEXT
34812adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
34822adc0320Smrg/* end confdefs.h.  */
34832adc0320Smrg#include <stdio.h>
34842adc0320Smrgint
34852adc0320Smrgmain ()
34862adc0320Smrg{
34872adc0320SmrgFILE *f = fopen ("conftest.out", "w");
34882adc0320Smrg return ferror (f) || fclose (f) != 0;
34892adc0320Smrg
34902adc0320Smrg  ;
34912adc0320Smrg  return 0;
34922adc0320Smrg}
34932adc0320Smrg_ACEOF
34942adc0320Smrgac_clean_files="$ac_clean_files conftest.out"
34952adc0320Smrg# Check that the compiler produces executables we can run.  If not, either
34962adc0320Smrg# the compiler is broken, or we cross compile.
34972adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
34982adc0320Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
34992adc0320Smrgif test "$cross_compiling" != yes; then
35002adc0320Smrg  { { ac_try="$ac_link"
35012adc0320Smrgcase "(($ac_try" in
35022adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35032adc0320Smrg  *) ac_try_echo=$ac_try;;
35042adc0320Smrgesac
35052adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
35062adc0320Smrg$as_echo "$ac_try_echo"; } >&5
35072adc0320Smrg  (eval "$ac_link") 2>&5
35082adc0320Smrg  ac_status=$?
35092adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35102adc0320Smrg  test $ac_status = 0; }
35112adc0320Smrg  if { ac_try='./conftest$ac_cv_exeext'
35122adc0320Smrg  { { case "(($ac_try" in
35132adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35142adc0320Smrg  *) ac_try_echo=$ac_try;;
35152adc0320Smrgesac
35162adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
35172adc0320Smrg$as_echo "$ac_try_echo"; } >&5
35182adc0320Smrg  (eval "$ac_try") 2>&5
35192adc0320Smrg  ac_status=$?
35202adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35212adc0320Smrg  test $ac_status = 0; }; }; then
35222adc0320Smrg    cross_compiling=no
35232adc0320Smrg  else
35242adc0320Smrg    if test "$cross_compiling" = maybe; then
35252adc0320Smrg	cross_compiling=yes
35262adc0320Smrg    else
35272adc0320Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35282adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35292adc0320Smrgas_fn_error $? "cannot run C compiled programs.
35302adc0320SmrgIf you meant to cross compile, use \`--host'.
35312adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
35322adc0320Smrg    fi
35332adc0320Smrg  fi
35342adc0320Smrgfi
35352adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
35362adc0320Smrg$as_echo "$cross_compiling" >&6; }
35372adc0320Smrg
35382adc0320Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
35392adc0320Smrgac_clean_files=$ac_clean_files_save
35402adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
35417366012aSmrg$as_echo_n "checking for suffix of object files... " >&6; }
35422adc0320Smrgif ${ac_cv_objext+:} false; then :
35437366012aSmrg  $as_echo_n "(cached) " >&6
35447a0395d0Smrgelse
35452adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35467a0395d0Smrg/* end confdefs.h.  */
35477a0395d0Smrg
35487a0395d0Smrgint
35497a0395d0Smrgmain ()
35507a0395d0Smrg{
35517a0395d0Smrg
35527a0395d0Smrg  ;
35537a0395d0Smrg  return 0;
35547a0395d0Smrg}
35557a0395d0Smrg_ACEOF
35567a0395d0Smrgrm -f conftest.o conftest.obj
35572adc0320Smrgif { { ac_try="$ac_compile"
35587a0395d0Smrgcase "(($ac_try" in
35597a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35607a0395d0Smrg  *) ac_try_echo=$ac_try;;
35617a0395d0Smrgesac
35622adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
35632adc0320Smrg$as_echo "$ac_try_echo"; } >&5
35647a0395d0Smrg  (eval "$ac_compile") 2>&5
35657a0395d0Smrg  ac_status=$?
35662adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35672adc0320Smrg  test $ac_status = 0; }; then :
35687a0395d0Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
35697a0395d0Smrg  test -f "$ac_file" || continue;
35707a0395d0Smrg  case $ac_file in
35717366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
35727a0395d0Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
35737a0395d0Smrg       break;;
35747a0395d0Smrg  esac
35757a0395d0Smrgdone
35767a0395d0Smrgelse
35777366012aSmrg  $as_echo "$as_me: failed program was:" >&5
35787a0395d0Smrgsed 's/^/| /' conftest.$ac_ext >&5
35797a0395d0Smrg
35802adc0320Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35817366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35822adc0320Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
35832adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
35847a0395d0Smrgfi
35857a0395d0Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
35867a0395d0Smrgfi
35872adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
35887366012aSmrg$as_echo "$ac_cv_objext" >&6; }
35897a0395d0SmrgOBJEXT=$ac_cv_objext
35907a0395d0Smrgac_objext=$OBJEXT
35912adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
35927366012aSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
35932adc0320Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
35947366012aSmrg  $as_echo_n "(cached) " >&6
35957a0395d0Smrgelse
35962adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35977a0395d0Smrg/* end confdefs.h.  */
35987a0395d0Smrg
35997a0395d0Smrgint
36007a0395d0Smrgmain ()
36017a0395d0Smrg{
36027a0395d0Smrg#ifndef __GNUC__
36037a0395d0Smrg       choke me
36047a0395d0Smrg#endif
36057a0395d0Smrg
36067a0395d0Smrg  ;
36077a0395d0Smrg  return 0;
36087a0395d0Smrg}
36097a0395d0Smrg_ACEOF
36102adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
36117a0395d0Smrg  ac_compiler_gnu=yes
36127a0395d0Smrgelse
36132adc0320Smrg  ac_compiler_gnu=no
36147a0395d0Smrgfi
36157a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36167a0395d0Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
36177a0395d0Smrg
36187a0395d0Smrgfi
36192adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
36207366012aSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
36217366012aSmrgif test $ac_compiler_gnu = yes; then
36227366012aSmrg  GCC=yes
36237366012aSmrgelse
36247366012aSmrg  GCC=
36257366012aSmrgfi
36267a0395d0Smrgac_test_CFLAGS=${CFLAGS+set}
36277a0395d0Smrgac_save_CFLAGS=$CFLAGS
36282adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
36297366012aSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
36302adc0320Smrgif ${ac_cv_prog_cc_g+:} false; then :
36317366012aSmrg  $as_echo_n "(cached) " >&6
36327a0395d0Smrgelse
36337a0395d0Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
36347a0395d0Smrg   ac_c_werror_flag=yes
36357a0395d0Smrg   ac_cv_prog_cc_g=no
36367a0395d0Smrg   CFLAGS="-g"
36372adc0320Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36387a0395d0Smrg/* end confdefs.h.  */
36397a0395d0Smrg
36407a0395d0Smrgint
36417a0395d0Smrgmain ()
36427a0395d0Smrg{
36437a0395d0Smrg
36447a0395d0Smrg  ;
36457a0395d0Smrg  return 0;
36467a0395d0Smrg}
36477a0395d0Smrg_ACEOF
36482adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
36497a0395d0Smrg  ac_cv_prog_cc_g=yes
36507a0395d0Smrgelse
36512adc0320Smrg  CFLAGS=""
36522adc0320Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36537a0395d0Smrg/* end confdefs.h.  */
36547a0395d0Smrg
36557a0395d0Smrgint
36567a0395d0Smrgmain ()
36577a0395d0Smrg{
36587a0395d0Smrg
36597a0395d0Smrg  ;
36607a0395d0Smrg  return 0;
36617a0395d0Smrg}
36627a0395d0Smrg_ACEOF
36632adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
36647a0395d0Smrg
36652adc0320Smrgelse
36662adc0320Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
36677a0395d0Smrg	 CFLAGS="-g"
36682adc0320Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36697a0395d0Smrg/* end confdefs.h.  */
36707a0395d0Smrg
36712adc0320Smrgint
36722adc0320Smrgmain ()
36732adc0320Smrg{
36747a0395d0Smrg
36752adc0320Smrg  ;
36762adc0320Smrg  return 0;
36772adc0320Smrg}
36782adc0320Smrg_ACEOF
36792adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
36802adc0320Smrg  ac_cv_prog_cc_g=yes
36817a0395d0Smrgfi
36827a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36837a0395d0Smrgfi
36847a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36857a0395d0Smrgfi
36867a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36877a0395d0Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
36887a0395d0Smrgfi
36892adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
36907366012aSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
36917a0395d0Smrgif test "$ac_test_CFLAGS" = set; then
36927a0395d0Smrg  CFLAGS=$ac_save_CFLAGS
36937a0395d0Smrgelif test $ac_cv_prog_cc_g = yes; then
36947a0395d0Smrg  if test "$GCC" = yes; then
36957a0395d0Smrg    CFLAGS="-g -O2"
36967a0395d0Smrg  else
36977a0395d0Smrg    CFLAGS="-g"
36987a0395d0Smrg  fi
36997a0395d0Smrgelse
37007a0395d0Smrg  if test "$GCC" = yes; then
37017a0395d0Smrg    CFLAGS="-O2"
37027a0395d0Smrg  else
37037a0395d0Smrg    CFLAGS=
37047a0395d0Smrg  fi
37057a0395d0Smrgfi
37062adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
37077366012aSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
37082adc0320Smrgif ${ac_cv_prog_cc_c89+:} false; then :
37097366012aSmrg  $as_echo_n "(cached) " >&6
37107a0395d0Smrgelse
37117a0395d0Smrg  ac_cv_prog_cc_c89=no
37127a0395d0Smrgac_save_CC=$CC
37132adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
37147a0395d0Smrg/* end confdefs.h.  */
37157a0395d0Smrg#include <stdarg.h>
37167a0395d0Smrg#include <stdio.h>
37178abc0ccfSmrgstruct stat;
37187a0395d0Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
37197a0395d0Smrgstruct buf { int x; };
37207a0395d0SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
37217a0395d0Smrgstatic char *e (p, i)
37227a0395d0Smrg     char **p;
37237a0395d0Smrg     int i;
37247a0395d0Smrg{
37257a0395d0Smrg  return p[i];
37267a0395d0Smrg}
37277a0395d0Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
37287a0395d0Smrg{
37297a0395d0Smrg  char *s;
37307a0395d0Smrg  va_list v;
37317a0395d0Smrg  va_start (v,p);
37327a0395d0Smrg  s = g (p, va_arg (v,int));
37337a0395d0Smrg  va_end (v);
37347a0395d0Smrg  return s;
37357a0395d0Smrg}
37367a0395d0Smrg
37377a0395d0Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
37387a0395d0Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
37397a0395d0Smrg   These don't provoke an error unfortunately, instead are silently treated
37407a0395d0Smrg   as 'x'.  The following induces an error, until -std is added to get
37417a0395d0Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
37427a0395d0Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
37437a0395d0Smrg   that's true only with -std.  */
37447a0395d0Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
37457a0395d0Smrg
37467a0395d0Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
37477a0395d0Smrg   inside strings and character constants.  */
37487a0395d0Smrg#define FOO(x) 'x'
37497a0395d0Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
37507a0395d0Smrg
37517a0395d0Smrgint test (int i, double x);
37527a0395d0Smrgstruct s1 {int (*f) (int a);};
37537a0395d0Smrgstruct s2 {int (*f) (double a);};
37547a0395d0Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
37557a0395d0Smrgint argc;
37567a0395d0Smrgchar **argv;
37577a0395d0Smrgint
37587a0395d0Smrgmain ()
37597a0395d0Smrg{
37607a0395d0Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
37617a0395d0Smrg  ;
37627a0395d0Smrg  return 0;
37637a0395d0Smrg}
37647a0395d0Smrg_ACEOF
37657a0395d0Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
37667a0395d0Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
37677a0395d0Smrgdo
37687a0395d0Smrg  CC="$ac_save_CC $ac_arg"
37692adc0320Smrg  if ac_fn_c_try_compile "$LINENO"; then :
37707a0395d0Smrg  ac_cv_prog_cc_c89=$ac_arg
37717a0395d0Smrgfi
37727a0395d0Smrgrm -f core conftest.err conftest.$ac_objext
37737a0395d0Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
37747a0395d0Smrgdone
37757a0395d0Smrgrm -f conftest.$ac_ext
37767a0395d0SmrgCC=$ac_save_CC
37777a0395d0Smrg
37787a0395d0Smrgfi
37797a0395d0Smrg# AC_CACHE_VAL
37807a0395d0Smrgcase "x$ac_cv_prog_cc_c89" in
37817a0395d0Smrg  x)
37822adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
37837366012aSmrg$as_echo "none needed" >&6; } ;;
37847a0395d0Smrg  xno)
37852adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
37867366012aSmrg$as_echo "unsupported" >&6; } ;;
37877a0395d0Smrg  *)
37887a0395d0Smrg    CC="$CC $ac_cv_prog_cc_c89"
37892adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
37907366012aSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
37917a0395d0Smrgesac
37922adc0320Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
37937a0395d0Smrg
37942adc0320Smrgfi
37957a0395d0Smrg
37967a0395d0Smrgac_ext=c
37977a0395d0Smrgac_cpp='$CPP $CPPFLAGS'
37987a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37997a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38007a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
38017a0395d0Smrg
38027a0395d0Smrgdepcc="$CC"   am_compiler_list=
38037a0395d0Smrg
38042adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
38057366012aSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
38062adc0320Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
38077366012aSmrg  $as_echo_n "(cached) " >&6
38087a0395d0Smrgelse
38097a0395d0Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
38107a0395d0Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
38117a0395d0Smrg  # making bogus files that we don't know about and never remove.  For
38127a0395d0Smrg  # instance it was reported that on HP-UX the gcc test will end up
38138abc0ccfSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
38148abc0ccfSmrg  # in D".
38158abc0ccfSmrg  rm -rf conftest.dir
38167a0395d0Smrg  mkdir conftest.dir
38177a0395d0Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
38187a0395d0Smrg  # using a relative directory.
38197a0395d0Smrg  cp "$am_depcomp" conftest.dir
38207a0395d0Smrg  cd conftest.dir
38217a0395d0Smrg  # We will build objects and dependencies in a subdirectory because
38227a0395d0Smrg  # it helps to detect inapplicable dependency modes.  For instance
38237a0395d0Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
38247a0395d0Smrg  # side effect of compilation, but ICC will put the dependencies in
38257a0395d0Smrg  # the current directory while Tru64 will put them in the object
38267a0395d0Smrg  # directory.
38277a0395d0Smrg  mkdir sub
38287a0395d0Smrg
38297a0395d0Smrg  am_cv_CC_dependencies_compiler_type=none
38307a0395d0Smrg  if test "$am_compiler_list" = ""; then
38317a0395d0Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
38327a0395d0Smrg  fi
38337366012aSmrg  am__universal=false
38347366012aSmrg  case " $depcc " in #(
38357366012aSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
38367366012aSmrg     esac
38377366012aSmrg
38387a0395d0Smrg  for depmode in $am_compiler_list; do
38397a0395d0Smrg    # Setup a source with many dependencies, because some compilers
38407a0395d0Smrg    # like to wrap large dependency lists on column 80 (with \), and
38417a0395d0Smrg    # we should not choose a depcomp mode which is confused by this.
38427a0395d0Smrg    #
38437a0395d0Smrg    # We need to recreate these files for each test, as the compiler may
38447a0395d0Smrg    # overwrite some of them when testing with obscure command lines.
38457a0395d0Smrg    # This happens at least with the AIX C compiler.
38467a0395d0Smrg    : > sub/conftest.c
38477a0395d0Smrg    for i in 1 2 3 4 5 6; do
38487a0395d0Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
38498abc0ccfSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
38508abc0ccfSmrg      # Solaris 10 /bin/sh.
38518abc0ccfSmrg      echo '/* dummy */' > sub/conftst$i.h
38527a0395d0Smrg    done
38537a0395d0Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
38547a0395d0Smrg
38558abc0ccfSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
38562adc0320Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
38578abc0ccfSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
38588abc0ccfSmrg    # versions had trouble with output in subdirs.
38592adc0320Smrg    am__obj=sub/conftest.${OBJEXT-o}
38602adc0320Smrg    am__minus_obj="-o $am__obj"
38612adc0320Smrg    case $depmode in
38622adc0320Smrg    gcc)
38632adc0320Smrg      # This depmode causes a compiler race in universal mode.
38642adc0320Smrg      test "$am__universal" = false || continue
38652adc0320Smrg      ;;
38662adc0320Smrg    nosideeffect)
38678abc0ccfSmrg      # After this tag, mechanisms are not by side-effect, so they'll
38688abc0ccfSmrg      # only be used when explicitly requested.
38692adc0320Smrg      if test "x$enable_dependency_tracking" = xyes; then
38702adc0320Smrg	continue
38712adc0320Smrg      else
38722adc0320Smrg	break
38732adc0320Smrg      fi
38742adc0320Smrg      ;;
38758abc0ccfSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
38768abc0ccfSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
38772adc0320Smrg      # not run yet.  These depmodes are late enough in the game, and
38782adc0320Smrg      # so weak that their functioning should not be impacted.
38792adc0320Smrg      am__obj=conftest.${OBJEXT-o}
38802adc0320Smrg      am__minus_obj=
38812adc0320Smrg      ;;
38822adc0320Smrg    none) break ;;
38832adc0320Smrg    esac
38842adc0320Smrg    if depmode=$depmode \
38852adc0320Smrg       source=sub/conftest.c object=$am__obj \
38862adc0320Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
38872adc0320Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
38882adc0320Smrg         >/dev/null 2>conftest.err &&
38892adc0320Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
38902adc0320Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
38912adc0320Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
38922adc0320Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
38932adc0320Smrg      # icc doesn't choke on unknown options, it will just issue warnings
38942adc0320Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
38952adc0320Smrg      # that says an option was ignored or not supported.
38962adc0320Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
38972adc0320Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
38982adc0320Smrg      # The diagnosis changed in icc 8.0:
38992adc0320Smrg      #   icc: Command line remark: option '-MP' not supported
39002adc0320Smrg      if (grep 'ignoring option' conftest.err ||
39012adc0320Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
39022adc0320Smrg        am_cv_CC_dependencies_compiler_type=$depmode
39032adc0320Smrg        break
39042adc0320Smrg      fi
39052adc0320Smrg    fi
39062adc0320Smrg  done
39072adc0320Smrg
39082adc0320Smrg  cd ..
39092adc0320Smrg  rm -rf conftest.dir
39102adc0320Smrgelse
39112adc0320Smrg  am_cv_CC_dependencies_compiler_type=none
39122adc0320Smrgfi
39132adc0320Smrg
39142adc0320Smrgfi
39152adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
39162adc0320Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
39172adc0320SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
39182adc0320Smrg
39192adc0320Smrg if
39202adc0320Smrg  test "x$enable_dependency_tracking" != xno \
39212adc0320Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
39222adc0320Smrg  am__fastdepCC_TRUE=
39232adc0320Smrg  am__fastdepCC_FALSE='#'
39242adc0320Smrgelse
39252adc0320Smrg  am__fastdepCC_TRUE='#'
39262adc0320Smrg  am__fastdepCC_FALSE=
39272adc0320Smrgfi
39282adc0320Smrg
39292adc0320Smrg
39302adc0320Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
39312adc0320Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
39322adc0320Smrgif ${ac_cv_prog_cc_c99+:} false; then :
39332adc0320Smrg  $as_echo_n "(cached) " >&6
39342adc0320Smrgelse
39352adc0320Smrg  ac_cv_prog_cc_c99=no
39362adc0320Smrgac_save_CC=$CC
39372adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
39382adc0320Smrg/* end confdefs.h.  */
39392adc0320Smrg#include <stdarg.h>
39402adc0320Smrg#include <stdbool.h>
39412adc0320Smrg#include <stdlib.h>
39422adc0320Smrg#include <wchar.h>
39432adc0320Smrg#include <stdio.h>
39442adc0320Smrg
39452adc0320Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
39462adc0320Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
39472adc0320Smrg#define showlist(...) puts (#__VA_ARGS__)
39482adc0320Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
39492adc0320Smrgstatic void
39502adc0320Smrgtest_varargs_macros (void)
39512adc0320Smrg{
39522adc0320Smrg  int x = 1234;
39532adc0320Smrg  int y = 5678;
39542adc0320Smrg  debug ("Flag");
39552adc0320Smrg  debug ("X = %d\n", x);
39562adc0320Smrg  showlist (The first, second, and third items.);
39572adc0320Smrg  report (x>y, "x is %d but y is %d", x, y);
39582adc0320Smrg}
39592adc0320Smrg
39602adc0320Smrg// Check long long types.
39612adc0320Smrg#define BIG64 18446744073709551615ull
39622adc0320Smrg#define BIG32 4294967295ul
39632adc0320Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
39642adc0320Smrg#if !BIG_OK
39652adc0320Smrg  your preprocessor is broken;
39662adc0320Smrg#endif
39672adc0320Smrg#if BIG_OK
39682adc0320Smrg#else
39692adc0320Smrg  your preprocessor is broken;
39702adc0320Smrg#endif
39712adc0320Smrgstatic long long int bignum = -9223372036854775807LL;
39722adc0320Smrgstatic unsigned long long int ubignum = BIG64;
39732adc0320Smrg
39742adc0320Smrgstruct incomplete_array
39752adc0320Smrg{
39762adc0320Smrg  int datasize;
39772adc0320Smrg  double data[];
39782adc0320Smrg};
39792adc0320Smrg
39802adc0320Smrgstruct named_init {
39812adc0320Smrg  int number;
39822adc0320Smrg  const wchar_t *name;
39832adc0320Smrg  double average;
39842adc0320Smrg};
39852adc0320Smrg
39862adc0320Smrgtypedef const char *ccp;
39872adc0320Smrg
39882adc0320Smrgstatic inline int
39892adc0320Smrgtest_restrict (ccp restrict text)
39902adc0320Smrg{
39912adc0320Smrg  // See if C++-style comments work.
39922adc0320Smrg  // Iterate through items via the restricted pointer.
39932adc0320Smrg  // Also check for declarations in for loops.
39942adc0320Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
39952adc0320Smrg    continue;
39962adc0320Smrg  return 0;
39972adc0320Smrg}
39982adc0320Smrg
39992adc0320Smrg// Check varargs and va_copy.
40002adc0320Smrgstatic void
40012adc0320Smrgtest_varargs (const char *format, ...)
40022adc0320Smrg{
40032adc0320Smrg  va_list args;
40042adc0320Smrg  va_start (args, format);
40052adc0320Smrg  va_list args_copy;
40062adc0320Smrg  va_copy (args_copy, args);
40072adc0320Smrg
40082adc0320Smrg  const char *str;
40092adc0320Smrg  int number;
40102adc0320Smrg  float fnumber;
40112adc0320Smrg
40122adc0320Smrg  while (*format)
40132adc0320Smrg    {
40142adc0320Smrg      switch (*format++)
40152adc0320Smrg	{
40162adc0320Smrg	case 's': // string
40172adc0320Smrg	  str = va_arg (args_copy, const char *);
40182adc0320Smrg	  break;
40192adc0320Smrg	case 'd': // int
40202adc0320Smrg	  number = va_arg (args_copy, int);
40212adc0320Smrg	  break;
40222adc0320Smrg	case 'f': // float
40232adc0320Smrg	  fnumber = va_arg (args_copy, double);
40242adc0320Smrg	  break;
40252adc0320Smrg	default:
40262adc0320Smrg	  break;
40272adc0320Smrg	}
40282adc0320Smrg    }
40292adc0320Smrg  va_end (args_copy);
40302adc0320Smrg  va_end (args);
40312adc0320Smrg}
40322adc0320Smrg
40332adc0320Smrgint
40342adc0320Smrgmain ()
40352adc0320Smrg{
40367a0395d0Smrg
40372adc0320Smrg  // Check bool.
40382adc0320Smrg  _Bool success = false;
40397a0395d0Smrg
40402adc0320Smrg  // Check restrict.
40412adc0320Smrg  if (test_restrict ("String literal") == 0)
40422adc0320Smrg    success = true;
40432adc0320Smrg  char *restrict newvar = "Another string";
40447a0395d0Smrg
40452adc0320Smrg  // Check varargs.
40462adc0320Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
40472adc0320Smrg  test_varargs_macros ();
40487a0395d0Smrg
40492adc0320Smrg  // Check flexible array members.
40502adc0320Smrg  struct incomplete_array *ia =
40512adc0320Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
40522adc0320Smrg  ia->datasize = 10;
40532adc0320Smrg  for (int i = 0; i < ia->datasize; ++i)
40542adc0320Smrg    ia->data[i] = i * 1.234;
40557a0395d0Smrg
40562adc0320Smrg  // Check named initializers.
40572adc0320Smrg  struct named_init ni = {
40582adc0320Smrg    .number = 34,
40592adc0320Smrg    .name = L"Test wide string",
40602adc0320Smrg    .average = 543.34343,
40612adc0320Smrg  };
40627366012aSmrg
40632adc0320Smrg  ni.number = 58;
40647a0395d0Smrg
40652adc0320Smrg  int dynamic_array[ni.number];
40662adc0320Smrg  dynamic_array[ni.number - 1] = 543;
40677a0395d0Smrg
40682adc0320Smrg  // work around unused variable warnings
40692adc0320Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
40702adc0320Smrg	  || dynamic_array[ni.number - 1] != 543);
40717a0395d0Smrg
40722adc0320Smrg  ;
40732adc0320Smrg  return 0;
40742adc0320Smrg}
40752adc0320Smrg_ACEOF
40768abc0ccfSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
40772adc0320Smrgdo
40782adc0320Smrg  CC="$ac_save_CC $ac_arg"
40792adc0320Smrg  if ac_fn_c_try_compile "$LINENO"; then :
40802adc0320Smrg  ac_cv_prog_cc_c99=$ac_arg
40812adc0320Smrgfi
40822adc0320Smrgrm -f core conftest.err conftest.$ac_objext
40832adc0320Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
40842adc0320Smrgdone
40852adc0320Smrgrm -f conftest.$ac_ext
40862adc0320SmrgCC=$ac_save_CC
40877a0395d0Smrg
40882adc0320Smrgfi
40892adc0320Smrg# AC_CACHE_VAL
40902adc0320Smrgcase "x$ac_cv_prog_cc_c99" in
40912adc0320Smrg  x)
40922adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
40932adc0320Smrg$as_echo "none needed" >&6; } ;;
40942adc0320Smrg  xno)
40952adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
40962adc0320Smrg$as_echo "unsupported" >&6; } ;;
40972adc0320Smrg  *)
40982adc0320Smrg    CC="$CC $ac_cv_prog_cc_c99"
40992adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
41002adc0320Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
41012adc0320Smrgesac
41022adc0320Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
41037a0395d0Smrg
41042adc0320Smrgfi
41057a0395d0Smrg
41067a0395d0Smrg
41077a0395d0Smrg
41087366012aSmrgac_ext=c
41097366012aSmrgac_cpp='$CPP $CPPFLAGS'
41107366012aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41117366012aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41127366012aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
41132adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
41147366012aSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
41157366012aSmrg# On Suns, sometimes $CPP names a directory.
41167366012aSmrgif test -n "$CPP" && test -d "$CPP"; then
41177366012aSmrg  CPP=
41187366012aSmrgfi
41197366012aSmrgif test -z "$CPP"; then
41202adc0320Smrg  if ${ac_cv_prog_CPP+:} false; then :
41217366012aSmrg  $as_echo_n "(cached) " >&6
41227a0395d0Smrgelse
41237366012aSmrg      # Double quotes because CPP needs to be expanded
41247366012aSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
41257366012aSmrg    do
41267366012aSmrg      ac_preproc_ok=false
41277366012aSmrgfor ac_c_preproc_warn_flag in '' yes
41287366012aSmrgdo
41297366012aSmrg  # Use a header file that comes with gcc, so configuring glibc
41307366012aSmrg  # with a fresh cross-compiler works.
41317366012aSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41327366012aSmrg  # <limits.h> exists even on freestanding compilers.
41337366012aSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
41347366012aSmrg  # not just through cpp. "Syntax error" is here to catch this case.
41352adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41367a0395d0Smrg/* end confdefs.h.  */
41377a0395d0Smrg#ifdef __STDC__
41387a0395d0Smrg# include <limits.h>
41397a0395d0Smrg#else
41407a0395d0Smrg# include <assert.h>
41417a0395d0Smrg#endif
41427a0395d0Smrg		     Syntax error
41437a0395d0Smrg_ACEOF
41442adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then :
41457a0395d0Smrg
41462adc0320Smrgelse
41477a0395d0Smrg  # Broken: fails on valid input.
41487a0395d0Smrgcontinue
41497a0395d0Smrgfi
41502adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext
41517a0395d0Smrg
41527a0395d0Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
41537a0395d0Smrg  # can be detected and how.
41542adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41557a0395d0Smrg/* end confdefs.h.  */
41567a0395d0Smrg#include <ac_nonexistent.h>
41577a0395d0Smrg_ACEOF
41582adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then :
41597a0395d0Smrg  # Broken: success on invalid input.
41607a0395d0Smrgcontinue
41617a0395d0Smrgelse
41627a0395d0Smrg  # Passes both tests.
41637a0395d0Smrgac_preproc_ok=:
41647a0395d0Smrgbreak
41657a0395d0Smrgfi
41662adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext
41677a0395d0Smrg
41687a0395d0Smrgdone
41697a0395d0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
41702adc0320Smrgrm -f conftest.i conftest.err conftest.$ac_ext
41712adc0320Smrgif $ac_preproc_ok; then :
41727a0395d0Smrg  break
41737a0395d0Smrgfi
41747a0395d0Smrg
41757a0395d0Smrg    done
41767a0395d0Smrg    ac_cv_prog_CPP=$CPP
41777a0395d0Smrg
41787a0395d0Smrgfi
41797a0395d0Smrg  CPP=$ac_cv_prog_CPP
41807a0395d0Smrgelse
41817a0395d0Smrg  ac_cv_prog_CPP=$CPP
41827a0395d0Smrgfi
41832adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
41847366012aSmrg$as_echo "$CPP" >&6; }
41857a0395d0Smrgac_preproc_ok=false
41867a0395d0Smrgfor ac_c_preproc_warn_flag in '' yes
41877a0395d0Smrgdo
41887a0395d0Smrg  # Use a header file that comes with gcc, so configuring glibc
41897a0395d0Smrg  # with a fresh cross-compiler works.
41907a0395d0Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41917a0395d0Smrg  # <limits.h> exists even on freestanding compilers.
41922adc0320Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
41932adc0320Smrg  # not just through cpp. "Syntax error" is here to catch this case.
41942adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41952adc0320Smrg/* end confdefs.h.  */
41962adc0320Smrg#ifdef __STDC__
41972adc0320Smrg# include <limits.h>
41982adc0320Smrg#else
41992adc0320Smrg# include <assert.h>
42002adc0320Smrg#endif
42012adc0320Smrg		     Syntax error
42022adc0320Smrg_ACEOF
42032adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then :
42047a0395d0Smrg
42052adc0320Smrgelse
42067a0395d0Smrg  # Broken: fails on valid input.
42077a0395d0Smrgcontinue
42087a0395d0Smrgfi
42092adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext
42107a0395d0Smrg
42117a0395d0Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
42127a0395d0Smrg  # can be detected and how.
42132adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42147a0395d0Smrg/* end confdefs.h.  */
42157a0395d0Smrg#include <ac_nonexistent.h>
42167a0395d0Smrg_ACEOF
42172adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then :
42187a0395d0Smrg  # Broken: success on invalid input.
42197a0395d0Smrgcontinue
42207a0395d0Smrgelse
42217a0395d0Smrg  # Passes both tests.
42227a0395d0Smrgac_preproc_ok=:
42237a0395d0Smrgbreak
42247a0395d0Smrgfi
42252adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext
42267a0395d0Smrg
42277a0395d0Smrgdone
42287a0395d0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
42292adc0320Smrgrm -f conftest.i conftest.err conftest.$ac_ext
42302adc0320Smrgif $ac_preproc_ok; then :
42312adc0320Smrg
42327a0395d0Smrgelse
42332adc0320Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42347366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42352adc0320Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
42362adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
42377a0395d0Smrgfi
42387a0395d0Smrg
42397a0395d0Smrgac_ext=c
42407a0395d0Smrgac_cpp='$CPP $CPPFLAGS'
42417a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42427a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42437a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
42447a0395d0Smrg
42457a0395d0Smrg
42462adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
42477366012aSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
42482adc0320Smrgif ${ac_cv_path_GREP+:} false; then :
42497366012aSmrg  $as_echo_n "(cached) " >&6
42507a0395d0Smrgelse
42517366012aSmrg  if test -z "$GREP"; then
42527a0395d0Smrg  ac_path_GREP_found=false
42537366012aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
42547366012aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42557a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
42567a0395d0Smrgdo
42577a0395d0Smrg  IFS=$as_save_IFS
42587a0395d0Smrg  test -z "$as_dir" && as_dir=.
42592adc0320Smrg    for ac_prog in grep ggrep; do
42607366012aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
42617366012aSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
42628abc0ccfSmrg      as_fn_executable_p "$ac_path_GREP" || continue
42637366012aSmrg# Check for GNU ac_path_GREP and select it if it is found.
42647a0395d0Smrg  # Check for GNU $ac_path_GREP
42657a0395d0Smrgcase `"$ac_path_GREP" --version 2>&1` in
42667a0395d0Smrg*GNU*)
42677a0395d0Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
42687a0395d0Smrg*)
42697a0395d0Smrg  ac_count=0
42707366012aSmrg  $as_echo_n 0123456789 >"conftest.in"
42717a0395d0Smrg  while :
42727a0395d0Smrg  do
42737a0395d0Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
42747a0395d0Smrg    mv "conftest.tmp" "conftest.in"
42757a0395d0Smrg    cp "conftest.in" "conftest.nl"
42767366012aSmrg    $as_echo 'GREP' >> "conftest.nl"
42777a0395d0Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
42787a0395d0Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
42792adc0320Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
42807a0395d0Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
42817a0395d0Smrg      # Best one so far, save it but keep looking for a better one
42827a0395d0Smrg      ac_cv_path_GREP="$ac_path_GREP"
42837a0395d0Smrg      ac_path_GREP_max=$ac_count
42847a0395d0Smrg    fi
42857a0395d0Smrg    # 10*(2^10) chars as input seems more than enough
42867a0395d0Smrg    test $ac_count -gt 10 && break
42877a0395d0Smrg  done
42887a0395d0Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
42897a0395d0Smrgesac
42907a0395d0Smrg
42917366012aSmrg      $ac_path_GREP_found && break 3
42927366012aSmrg    done
42937a0395d0Smrg  done
42942adc0320Smrg  done
42957a0395d0SmrgIFS=$as_save_IFS
42967366012aSmrg  if test -z "$ac_cv_path_GREP"; then
42972adc0320Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
42987366012aSmrg  fi
42997a0395d0Smrgelse
43007a0395d0Smrg  ac_cv_path_GREP=$GREP
43017a0395d0Smrgfi
43027a0395d0Smrg
43037a0395d0Smrgfi
43042adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
43057366012aSmrg$as_echo "$ac_cv_path_GREP" >&6; }
43067a0395d0Smrg GREP="$ac_cv_path_GREP"
43077a0395d0Smrg
43087a0395d0Smrg
43092adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
43107366012aSmrg$as_echo_n "checking for egrep... " >&6; }
43112adc0320Smrgif ${ac_cv_path_EGREP+:} false; then :
43127366012aSmrg  $as_echo_n "(cached) " >&6
43137a0395d0Smrgelse
43147a0395d0Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
43157a0395d0Smrg   then ac_cv_path_EGREP="$GREP -E"
43167a0395d0Smrg   else
43177366012aSmrg     if test -z "$EGREP"; then
43187a0395d0Smrg  ac_path_EGREP_found=false
43197366012aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
43207366012aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43217a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
43227a0395d0Smrgdo
43237a0395d0Smrg  IFS=$as_save_IFS
43247a0395d0Smrg  test -z "$as_dir" && as_dir=.
43252adc0320Smrg    for ac_prog in egrep; do
43267366012aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
43277366012aSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
43288abc0ccfSmrg      as_fn_executable_p "$ac_path_EGREP" || continue
43297366012aSmrg# Check for GNU ac_path_EGREP and select it if it is found.
43307a0395d0Smrg  # Check for GNU $ac_path_EGREP
43317a0395d0Smrgcase `"$ac_path_EGREP" --version 2>&1` in
43327a0395d0Smrg*GNU*)
43337a0395d0Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
43347a0395d0Smrg*)
43357a0395d0Smrg  ac_count=0
43367366012aSmrg  $as_echo_n 0123456789 >"conftest.in"
43377a0395d0Smrg  while :
43387a0395d0Smrg  do
43397a0395d0Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
43407a0395d0Smrg    mv "conftest.tmp" "conftest.in"
43417a0395d0Smrg    cp "conftest.in" "conftest.nl"
43427366012aSmrg    $as_echo 'EGREP' >> "conftest.nl"
43437a0395d0Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
43447a0395d0Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
43452adc0320Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
43467a0395d0Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
43477a0395d0Smrg      # Best one so far, save it but keep looking for a better one
43487a0395d0Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
43497a0395d0Smrg      ac_path_EGREP_max=$ac_count
43507a0395d0Smrg    fi
43517a0395d0Smrg    # 10*(2^10) chars as input seems more than enough
43527a0395d0Smrg    test $ac_count -gt 10 && break
43537a0395d0Smrg  done
43547a0395d0Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
43557a0395d0Smrgesac
43567a0395d0Smrg
43577366012aSmrg      $ac_path_EGREP_found && break 3
43587366012aSmrg    done
43597a0395d0Smrg  done
43602adc0320Smrg  done
43617a0395d0SmrgIFS=$as_save_IFS
43627366012aSmrg  if test -z "$ac_cv_path_EGREP"; then
43632adc0320Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
43647366012aSmrg  fi
43657a0395d0Smrgelse
43667a0395d0Smrg  ac_cv_path_EGREP=$EGREP
43677a0395d0Smrgfi
43687a0395d0Smrg
43697a0395d0Smrg   fi
43707a0395d0Smrgfi
43712adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
43727366012aSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
43737a0395d0Smrg EGREP="$ac_cv_path_EGREP"
43747a0395d0Smrg
43757a0395d0Smrg
43762adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
43777366012aSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
43782adc0320Smrgif ${ac_cv_header_stdc+:} false; then :
43797366012aSmrg  $as_echo_n "(cached) " >&6
43807a0395d0Smrgelse
43812adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43827a0395d0Smrg/* end confdefs.h.  */
43837a0395d0Smrg#include <stdlib.h>
43847a0395d0Smrg#include <stdarg.h>
43857a0395d0Smrg#include <string.h>
43867a0395d0Smrg#include <float.h>
43877a0395d0Smrg
43887a0395d0Smrgint
43897a0395d0Smrgmain ()
43907a0395d0Smrg{
43917a0395d0Smrg
43927a0395d0Smrg  ;
43937a0395d0Smrg  return 0;
43947a0395d0Smrg}
43957a0395d0Smrg_ACEOF
43962adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
43977a0395d0Smrg  ac_cv_header_stdc=yes
43987a0395d0Smrgelse
43992adc0320Smrg  ac_cv_header_stdc=no
44007a0395d0Smrgfi
44017a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44027a0395d0Smrg
44037a0395d0Smrgif test $ac_cv_header_stdc = yes; then
44047a0395d0Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
44052adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44067a0395d0Smrg/* end confdefs.h.  */
44077a0395d0Smrg#include <string.h>
44087a0395d0Smrg
44097a0395d0Smrg_ACEOF
44107a0395d0Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44112adc0320Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
44122adc0320Smrg
44137a0395d0Smrgelse
44147a0395d0Smrg  ac_cv_header_stdc=no
44157a0395d0Smrgfi
44167a0395d0Smrgrm -f conftest*
44177a0395d0Smrg
44187a0395d0Smrgfi
44197a0395d0Smrg
44207a0395d0Smrgif test $ac_cv_header_stdc = yes; then
44217a0395d0Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
44222adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44237a0395d0Smrg/* end confdefs.h.  */
44247a0395d0Smrg#include <stdlib.h>
44257a0395d0Smrg
44267a0395d0Smrg_ACEOF
44277a0395d0Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44282adc0320Smrg  $EGREP "free" >/dev/null 2>&1; then :
44292adc0320Smrg
44307a0395d0Smrgelse
44317a0395d0Smrg  ac_cv_header_stdc=no
44327a0395d0Smrgfi
44337a0395d0Smrgrm -f conftest*
44347a0395d0Smrg
44357a0395d0Smrgfi
44367a0395d0Smrg
44377a0395d0Smrgif test $ac_cv_header_stdc = yes; then
44387a0395d0Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
44392adc0320Smrg  if test "$cross_compiling" = yes; then :
44407a0395d0Smrg  :
44417a0395d0Smrgelse
44422adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44437a0395d0Smrg/* end confdefs.h.  */
44447a0395d0Smrg#include <ctype.h>
44457a0395d0Smrg#include <stdlib.h>
44467a0395d0Smrg#if ((' ' & 0x0FF) == 0x020)
44477a0395d0Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
44487a0395d0Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
44497a0395d0Smrg#else
44507a0395d0Smrg# define ISLOWER(c) \
44517a0395d0Smrg		   (('a' <= (c) && (c) <= 'i') \
44527a0395d0Smrg		     || ('j' <= (c) && (c) <= 'r') \
44537a0395d0Smrg		     || ('s' <= (c) && (c) <= 'z'))
44547a0395d0Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
44557a0395d0Smrg#endif
44567a0395d0Smrg
44577a0395d0Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
44587a0395d0Smrgint
44597a0395d0Smrgmain ()
44607a0395d0Smrg{
44617a0395d0Smrg  int i;
44627a0395d0Smrg  for (i = 0; i < 256; i++)
44637a0395d0Smrg    if (XOR (islower (i), ISLOWER (i))
44647a0395d0Smrg	|| toupper (i) != TOUPPER (i))
44657a0395d0Smrg      return 2;
44667a0395d0Smrg  return 0;
44677a0395d0Smrg}
44687a0395d0Smrg_ACEOF
44692adc0320Smrgif ac_fn_c_try_run "$LINENO"; then :
44707a0395d0Smrg
44712adc0320Smrgelse
44722adc0320Smrg  ac_cv_header_stdc=no
44737a0395d0Smrgfi
44742adc0320Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44752adc0320Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
44767a0395d0Smrgfi
44777a0395d0Smrg
44787a0395d0Smrgfi
44797a0395d0Smrgfi
44802adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
44817366012aSmrg$as_echo "$ac_cv_header_stdc" >&6; }
44827a0395d0Smrgif test $ac_cv_header_stdc = yes; then
44837a0395d0Smrg
44842adc0320Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
44857366012aSmrg
44867366012aSmrgfi
44877366012aSmrg
44887366012aSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
44897366012aSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
44907366012aSmrg		  inttypes.h stdint.h unistd.h
44912adc0320Smrgdo :
44922adc0320Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44932adc0320Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
44942adc0320Smrg"
44952adc0320Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44967366012aSmrg  cat >>confdefs.h <<_ACEOF
44977366012aSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44987366012aSmrg_ACEOF
44997366012aSmrg
45007366012aSmrgfi
45017366012aSmrg
45027366012aSmrgdone
45037366012aSmrg
45047366012aSmrg
45057366012aSmrg
45067366012aSmrg
45072852888eSmrg
45082852888eSmrg
450996402570Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
451096402570Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
451196402570Smrg  CLANGCC="yes"
451296402570Smrgelse
451396402570Smrg  CLANGCC="no"
451496402570Smrgfi
451596402570Smrg
451696402570Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
451796402570Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
451896402570Smrg  INTELCC="yes"
451996402570Smrgelse
452096402570Smrg  INTELCC="no"
452196402570Smrgfi
452296402570Smrg
452396402570Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
452496402570Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
452596402570Smrg  SUNCC="yes"
452696402570Smrgelse
452796402570Smrg  SUNCC="no"
452896402570Smrgfi
452996402570Smrg
453096402570Smrg
45312852888eSmrg
45322852888eSmrg
45338abc0ccfSmrg
45348abc0ccfSmrg
45358abc0ccfSmrg
45368abc0ccfSmrg
45378abc0ccfSmrg
45382adc0320Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
45392adc0320Smrg	if test -n "$ac_tool_prefix"; then
45402adc0320Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
45412adc0320Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
45422adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
45432adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; }
45442adc0320Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
45452adc0320Smrg  $as_echo_n "(cached) " >&6
45462adc0320Smrgelse
45472adc0320Smrg  case $PKG_CONFIG in
45482adc0320Smrg  [\\/]* | ?:[\\/]*)
45492adc0320Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45502adc0320Smrg  ;;
45512adc0320Smrg  *)
45522adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45532adc0320Smrgfor as_dir in $PATH
45547366012aSmrgdo
45552adc0320Smrg  IFS=$as_save_IFS
45562adc0320Smrg  test -z "$as_dir" && as_dir=.
45572adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
45588abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45592adc0320Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45602adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
45612adc0320Smrg    break 2
45622adc0320Smrg  fi
45632adc0320Smrgdone
45642adc0320Smrg  done
45652adc0320SmrgIFS=$as_save_IFS
45662adc0320Smrg
45672adc0320Smrg  ;;
45687366012aSmrgesac
45692adc0320Smrgfi
45702adc0320SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
45712adc0320Smrgif test -n "$PKG_CONFIG"; then
45722adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
45732adc0320Smrg$as_echo "$PKG_CONFIG" >&6; }
45747366012aSmrgelse
45752adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45762adc0320Smrg$as_echo "no" >&6; }
45777366012aSmrgfi
45787366012aSmrg
45797366012aSmrg
45807366012aSmrgfi
45812adc0320Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
45822adc0320Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
45832adc0320Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
45842adc0320Smrgset dummy pkg-config; ac_word=$2
45852adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
45862adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; }
45872adc0320Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
45882adc0320Smrg  $as_echo_n "(cached) " >&6
45892adc0320Smrgelse
45902adc0320Smrg  case $ac_pt_PKG_CONFIG in
45912adc0320Smrg  [\\/]* | ?:[\\/]*)
45922adc0320Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
45932adc0320Smrg  ;;
45947366012aSmrg  *)
45952adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45962adc0320Smrgfor as_dir in $PATH
45972adc0320Smrgdo
45982adc0320Smrg  IFS=$as_save_IFS
45992adc0320Smrg  test -z "$as_dir" && as_dir=.
46002adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
46018abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46022adc0320Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46032adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
46042adc0320Smrg    break 2
46052adc0320Smrg  fi
46062adc0320Smrgdone
46072adc0320Smrg  done
46082adc0320SmrgIFS=$as_save_IFS
46092adc0320Smrg
46102adc0320Smrg  ;;
46117366012aSmrgesac
46122adc0320Smrgfi
46132adc0320Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
46142adc0320Smrgif test -n "$ac_pt_PKG_CONFIG"; then
46152adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
46162adc0320Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
46172adc0320Smrgelse
46182adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46192adc0320Smrg$as_echo "no" >&6; }
46202adc0320Smrgfi
46217366012aSmrg
46222adc0320Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
46232adc0320Smrg    PKG_CONFIG=""
46242adc0320Smrg  else
46252adc0320Smrg    case $cross_compiling:$ac_tool_warned in
46262adc0320Smrgyes:)
46272adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
46282adc0320Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46292adc0320Smrgac_tool_warned=yes ;;
46302adc0320Smrgesac
46312adc0320Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
46322adc0320Smrg  fi
46332adc0320Smrgelse
46342adc0320Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
46352adc0320Smrgfi
46367366012aSmrg
46372adc0320Smrgfi
46382adc0320Smrgif test -n "$PKG_CONFIG"; then
46392adc0320Smrg	_pkg_min_version=0.9.0
46402adc0320Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
46412adc0320Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
46422adc0320Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
46432adc0320Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46442adc0320Smrg$as_echo "yes" >&6; }
46452adc0320Smrg	else
46462adc0320Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46472adc0320Smrg$as_echo "no" >&6; }
46482adc0320Smrg		PKG_CONFIG=""
46492adc0320Smrg	fi
46502adc0320Smrgfi
46517366012aSmrg# Make sure we can run config.sub.
46527366012aSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
46532adc0320Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
46547366012aSmrg
46552adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
46567366012aSmrg$as_echo_n "checking build system type... " >&6; }
46572adc0320Smrgif ${ac_cv_build+:} false; then :
46587366012aSmrg  $as_echo_n "(cached) " >&6
46597366012aSmrgelse
46607366012aSmrg  ac_build_alias=$build_alias
46617366012aSmrgtest "x$ac_build_alias" = x &&
46627366012aSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
46637366012aSmrgtest "x$ac_build_alias" = x &&
46642adc0320Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
46657366012aSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
46662adc0320Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
46677366012aSmrg
46687366012aSmrgfi
46692adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
46707366012aSmrg$as_echo "$ac_cv_build" >&6; }
46717366012aSmrgcase $ac_cv_build in
46727366012aSmrg*-*-*) ;;
46732adc0320Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
46747366012aSmrgesac
46757366012aSmrgbuild=$ac_cv_build
46767366012aSmrgac_save_IFS=$IFS; IFS='-'
46777366012aSmrgset x $ac_cv_build
46787366012aSmrgshift
46797366012aSmrgbuild_cpu=$1
46807366012aSmrgbuild_vendor=$2
46817366012aSmrgshift; shift
46827366012aSmrg# Remember, the first character of IFS is used to create $*,
46837366012aSmrg# except with old shells:
46847366012aSmrgbuild_os=$*
46857366012aSmrgIFS=$ac_save_IFS
46867366012aSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
46877366012aSmrg
46887366012aSmrg
46892adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
46907366012aSmrg$as_echo_n "checking host system type... " >&6; }
46912adc0320Smrgif ${ac_cv_host+:} false; then :
46927366012aSmrg  $as_echo_n "(cached) " >&6
46937366012aSmrgelse
46947366012aSmrg  if test "x$host_alias" = x; then
46957366012aSmrg  ac_cv_host=$ac_cv_build
46967366012aSmrgelse
46977366012aSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
46982adc0320Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
46997366012aSmrgfi
47007366012aSmrg
47017366012aSmrgfi
47022adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
47037366012aSmrg$as_echo "$ac_cv_host" >&6; }
47047366012aSmrgcase $ac_cv_host in
47057366012aSmrg*-*-*) ;;
47062adc0320Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
47077366012aSmrgesac
47087366012aSmrghost=$ac_cv_host
47097366012aSmrgac_save_IFS=$IFS; IFS='-'
47107366012aSmrgset x $ac_cv_host
47117366012aSmrgshift
47127366012aSmrghost_cpu=$1
47137366012aSmrghost_vendor=$2
47147366012aSmrgshift; shift
47157366012aSmrg# Remember, the first character of IFS is used to create $*,
47167366012aSmrg# except with old shells:
47177366012aSmrghost_os=$*
47187366012aSmrgIFS=$ac_save_IFS
47197366012aSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
47207366012aSmrg
47217366012aSmrg
47222adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
47232adc0320Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
47242adc0320Smrgif ${ac_cv_path_SED+:} false; then :
47257366012aSmrg  $as_echo_n "(cached) " >&6
47267366012aSmrgelse
47272adc0320Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
47282adc0320Smrg     for ac_i in 1 2 3 4 5 6 7; do
47292adc0320Smrg       ac_script="$ac_script$as_nl$ac_script"
47302adc0320Smrg     done
47312adc0320Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
47322adc0320Smrg     { ac_script=; unset ac_script;}
47332adc0320Smrg     if test -z "$SED"; then
47342adc0320Smrg  ac_path_SED_found=false
47352adc0320Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
47362adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47372adc0320Smrgfor as_dir in $PATH
47382adc0320Smrgdo
47392adc0320Smrg  IFS=$as_save_IFS
47402adc0320Smrg  test -z "$as_dir" && as_dir=.
47412adc0320Smrg    for ac_prog in sed gsed; do
47422adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
47432adc0320Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
47448abc0ccfSmrg      as_fn_executable_p "$ac_path_SED" || continue
47452adc0320Smrg# Check for GNU ac_path_SED and select it if it is found.
47462adc0320Smrg  # Check for GNU $ac_path_SED
47472adc0320Smrgcase `"$ac_path_SED" --version 2>&1` in
47482adc0320Smrg*GNU*)
47492adc0320Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
47502adc0320Smrg*)
47512adc0320Smrg  ac_count=0
47522adc0320Smrg  $as_echo_n 0123456789 >"conftest.in"
47532adc0320Smrg  while :
47542adc0320Smrg  do
47552adc0320Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
47562adc0320Smrg    mv "conftest.tmp" "conftest.in"
47572adc0320Smrg    cp "conftest.in" "conftest.nl"
47582adc0320Smrg    $as_echo '' >> "conftest.nl"
47592adc0320Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
47602adc0320Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
47612adc0320Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
47622adc0320Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
47632adc0320Smrg      # Best one so far, save it but keep looking for a better one
47642adc0320Smrg      ac_cv_path_SED="$ac_path_SED"
47652adc0320Smrg      ac_path_SED_max=$ac_count
47662adc0320Smrg    fi
47672adc0320Smrg    # 10*(2^10) chars as input seems more than enough
47682adc0320Smrg    test $ac_count -gt 10 && break
47692adc0320Smrg  done
47702adc0320Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
47717366012aSmrgesac
47727366012aSmrg
47732adc0320Smrg      $ac_path_SED_found && break 3
47742adc0320Smrg    done
47752adc0320Smrg  done
47762adc0320Smrg  done
47772adc0320SmrgIFS=$as_save_IFS
47782adc0320Smrg  if test -z "$ac_cv_path_SED"; then
47792adc0320Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
47802adc0320Smrg  fi
47817366012aSmrgelse
47822adc0320Smrg  ac_cv_path_SED=$SED
47837366012aSmrgfi
47847366012aSmrg
47857366012aSmrgfi
47862adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
47872adc0320Smrg$as_echo "$ac_cv_path_SED" >&6; }
47882adc0320Smrg SED="$ac_cv_path_SED"
47892adc0320Smrg  rm -f conftest.sed
47907366012aSmrg
47917366012aSmrg
47927366012aSmrg
47937366012aSmrg
47947366012aSmrg
47957366012aSmrg
479696402570Smrg# Check whether --enable-selective-werror was given.
479796402570Smrgif test "${enable_selective_werror+set}" = set; then :
479896402570Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
479996402570Smrgelse
480096402570Smrg  SELECTIVE_WERROR=yes
48012adc0320Smrgfi
48022adc0320Smrg
48032adc0320Smrg
48042adc0320Smrg
48057366012aSmrg
48062adc0320Smrg
480796402570Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
480896402570Smrgif test "x$SUNCC" = "xyes"; then
480996402570Smrg    BASE_CFLAGS="-v"
48107366012aSmrgelse
481196402570Smrg    BASE_CFLAGS=""
48127366012aSmrgfi
48137366012aSmrg
481496402570Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
48157366012aSmrg
48167366012aSmrg
48177366012aSmrg
48187366012aSmrg
48197366012aSmrg
48207366012aSmrg
48217366012aSmrg
48227366012aSmrg
48237366012aSmrg
48247366012aSmrg
48252adc0320Smrg
48262adc0320Smrg
48272adc0320Smrg
482896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
48292adc0320Smrg
483096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
483196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
483296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
483396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
483496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
483596402570Smrg  $as_echo_n "(cached) " >&6
483696402570Smrgelse
483796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
483896402570Smrg/* end confdefs.h.  */
483996402570Smrgint i;
484096402570Smrg_ACEOF
484196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
484296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
484396402570Smrgelse
484496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
484596402570Smrgfi
484696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
484796402570Smrgfi
484896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
484996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
485096402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
485196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
485296402570Smrgfi
48537366012aSmrg
485496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
485596402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
485696402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
485796402570Smrg	fi
485896402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
485996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
486096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
486196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
486296402570Smrg  $as_echo_n "(cached) " >&6
486396402570Smrgelse
486496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
486596402570Smrg/* end confdefs.h.  */
486696402570Smrgint i;
486796402570Smrg_ACEOF
486896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
486996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
487096402570Smrgelse
487196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
487296402570Smrgfi
487396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
487496402570Smrgfi
487596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
487696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
487796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
487896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
487996402570Smrgfi
48807366012aSmrg
488196402570Smrgfound="no"
48827366012aSmrg
488396402570Smrg	if test $found = "no" ; then
488496402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
488596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
488696402570Smrg		fi
48877366012aSmrg
488896402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
488996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
489096402570Smrg		fi
48917366012aSmrg
489296402570Smrg		CFLAGS="$CFLAGS -Wall"
48937366012aSmrg
489496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
489596402570Smrg$as_echo_n "checking if $CC supports-Wall... " >&6; }
489696402570Smrg		cacheid=xorg_cv_cc_flag__Wall
489796402570Smrg		if eval \${$cacheid+:} false; then :
489896402570Smrg  $as_echo_n "(cached) " >&6
489996402570Smrgelse
490096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
490196402570Smrg/* end confdefs.h.  */
490296402570Smrgint i;
490396402570Smrgint
490496402570Smrgmain ()
490596402570Smrg{
49067366012aSmrg
490796402570Smrg  ;
490896402570Smrg  return 0;
490996402570Smrg}
491096402570Smrg_ACEOF
491196402570Smrgif ac_fn_c_try_link "$LINENO"; then :
491296402570Smrg  eval $cacheid=yes
491396402570Smrgelse
491496402570Smrg  eval $cacheid=no
49157366012aSmrgfi
491696402570Smrgrm -f core conftest.err conftest.$ac_objext \
491796402570Smrg    conftest$ac_exeext conftest.$ac_ext
49187366012aSmrgfi
49197366012aSmrg
49207366012aSmrg
492196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
49227366012aSmrg
492396402570Smrg		eval supported=\$$cacheid
492496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
492596402570Smrg$as_echo "$supported" >&6; }
492696402570Smrg		if test "$supported" = "yes" ; then
492796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
492896402570Smrg			found="yes"
492996402570Smrg		fi
493096402570Smrg	fi
49317366012aSmrg
49327366012aSmrg
49337366012aSmrg
49347366012aSmrg
49357366012aSmrg
49367a0395d0Smrg
49377a0395d0Smrg
49387a0395d0Smrg
49397a0395d0Smrg
49407a0395d0Smrg
49417a0395d0Smrg
49427a0395d0Smrg
49437a0395d0Smrg
49447a0395d0Smrg
49457a0395d0Smrg
494696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
49472adc0320Smrg
494896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
494996402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
495096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
495196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
495296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
495396402570Smrg  $as_echo_n "(cached) " >&6
495496402570Smrgelse
495596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
495696402570Smrg/* end confdefs.h.  */
495796402570Smrgint i;
495896402570Smrg_ACEOF
495996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
496096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
496196402570Smrgelse
496296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
496396402570Smrgfi
496496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
496596402570Smrgfi
496696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
496796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
496896402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
496996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
497096402570Smrgfi
497196402570Smrg
497296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
497396402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
497496402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
497596402570Smrg	fi
497696402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
497796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
497896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
497996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
498096402570Smrg  $as_echo_n "(cached) " >&6
498196402570Smrgelse
498296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
498396402570Smrg/* end confdefs.h.  */
498496402570Smrgint i;
498596402570Smrg_ACEOF
498696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
498796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
498896402570Smrgelse
498996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
499096402570Smrgfi
499196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
499296402570Smrgfi
499396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
499496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
499596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
499696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
499796402570Smrgfi
499896402570Smrg
499996402570Smrgfound="no"
500096402570Smrg
500196402570Smrg	if test $found = "no" ; then
500296402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
500396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
500496402570Smrg		fi
500596402570Smrg
500696402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
500796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
500896402570Smrg		fi
500996402570Smrg
501096402570Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
501196402570Smrg
501296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
501396402570Smrg$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
501496402570Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
501596402570Smrg		if eval \${$cacheid+:} false; then :
501696402570Smrg  $as_echo_n "(cached) " >&6
501796402570Smrgelse
501896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
501996402570Smrg/* end confdefs.h.  */
502096402570Smrgint i;
502196402570Smrgint
502296402570Smrgmain ()
502396402570Smrg{
502496402570Smrg
502596402570Smrg  ;
502696402570Smrg  return 0;
502796402570Smrg}
502896402570Smrg_ACEOF
502996402570Smrgif ac_fn_c_try_link "$LINENO"; then :
503096402570Smrg  eval $cacheid=yes
503196402570Smrgelse
503296402570Smrg  eval $cacheid=no
503396402570Smrgfi
503496402570Smrgrm -f core conftest.err conftest.$ac_objext \
503596402570Smrg    conftest$ac_exeext conftest.$ac_ext
503696402570Smrgfi
503796402570Smrg
503896402570Smrg
503996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
504096402570Smrg
504196402570Smrg		eval supported=\$$cacheid
504296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
504396402570Smrg$as_echo "$supported" >&6; }
504496402570Smrg		if test "$supported" = "yes" ; then
504596402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
504696402570Smrg			found="yes"
504796402570Smrg		fi
504896402570Smrg	fi
504996402570Smrg
505096402570Smrg
505196402570Smrg
505296402570Smrg
505396402570Smrg
505496402570Smrg
505596402570Smrg
505696402570Smrg
505796402570Smrg
505896402570Smrg
505996402570Smrg
506096402570Smrg
506196402570Smrg
506296402570Smrg
506396402570Smrg
506496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
506596402570Smrg
506696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
506796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
506896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
506996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
507096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
507196402570Smrg  $as_echo_n "(cached) " >&6
507296402570Smrgelse
507396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
507496402570Smrg/* end confdefs.h.  */
507596402570Smrgint i;
507696402570Smrg_ACEOF
507796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
507896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
507996402570Smrgelse
508096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
508196402570Smrgfi
508296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
508396402570Smrgfi
508496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
508596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
508696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
508796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
508896402570Smrgfi
508996402570Smrg
509096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
509196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
509296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
509396402570Smrg	fi
509496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
509596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
509696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
509796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
509896402570Smrg  $as_echo_n "(cached) " >&6
509996402570Smrgelse
510096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
510196402570Smrg/* end confdefs.h.  */
510296402570Smrgint i;
510396402570Smrg_ACEOF
510496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
510596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
510696402570Smrgelse
510796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
510896402570Smrgfi
510996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
511096402570Smrgfi
511196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
511296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
511396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
511496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
511596402570Smrgfi
511696402570Smrg
511796402570Smrgfound="no"
511896402570Smrg
511996402570Smrg	if test $found = "no" ; then
512096402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
512196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
512296402570Smrg		fi
512396402570Smrg
512496402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
512596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
512696402570Smrg		fi
512796402570Smrg
512896402570Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
512996402570Smrg
513096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
513196402570Smrg$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
513296402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
513396402570Smrg		if eval \${$cacheid+:} false; then :
513496402570Smrg  $as_echo_n "(cached) " >&6
513596402570Smrgelse
513696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
513796402570Smrg/* end confdefs.h.  */
513896402570Smrgint i;
513996402570Smrgint
514096402570Smrgmain ()
514196402570Smrg{
514296402570Smrg
514396402570Smrg  ;
514496402570Smrg  return 0;
514596402570Smrg}
514696402570Smrg_ACEOF
514796402570Smrgif ac_fn_c_try_link "$LINENO"; then :
514896402570Smrg  eval $cacheid=yes
514996402570Smrgelse
515096402570Smrg  eval $cacheid=no
515196402570Smrgfi
515296402570Smrgrm -f core conftest.err conftest.$ac_objext \
515396402570Smrg    conftest$ac_exeext conftest.$ac_ext
515496402570Smrgfi
515596402570Smrg
515696402570Smrg
515796402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
515896402570Smrg
515996402570Smrg		eval supported=\$$cacheid
516096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
516196402570Smrg$as_echo "$supported" >&6; }
516296402570Smrg		if test "$supported" = "yes" ; then
516396402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
516496402570Smrg			found="yes"
516596402570Smrg		fi
516696402570Smrg	fi
516796402570Smrg
516896402570Smrg
516996402570Smrg
517096402570Smrg
517196402570Smrg
517296402570Smrg
517396402570Smrg
517496402570Smrg
517596402570Smrg
517696402570Smrg
517796402570Smrg
517896402570Smrg
517996402570Smrg
518096402570Smrg
518196402570Smrg
518296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
518396402570Smrg
518496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
518596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
518696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
518796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
518896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
518996402570Smrg  $as_echo_n "(cached) " >&6
519096402570Smrgelse
519196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
519296402570Smrg/* end confdefs.h.  */
519396402570Smrgint i;
519496402570Smrg_ACEOF
519596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
519696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
519796402570Smrgelse
519896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
519996402570Smrgfi
520096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
520196402570Smrgfi
520296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
520396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
520496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
520596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
520696402570Smrgfi
520796402570Smrg
520896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
520996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
521096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
521196402570Smrg	fi
521296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
521396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
521496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
521596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
521696402570Smrg  $as_echo_n "(cached) " >&6
521796402570Smrgelse
521896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
521996402570Smrg/* end confdefs.h.  */
522096402570Smrgint i;
522196402570Smrg_ACEOF
522296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
522396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
522496402570Smrgelse
522596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
522696402570Smrgfi
522796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
522896402570Smrgfi
522996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
523096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
523196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
523296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
523396402570Smrgfi
523496402570Smrg
523596402570Smrgfound="no"
523696402570Smrg
523796402570Smrg	if test $found = "no" ; then
523896402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
523996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
524096402570Smrg		fi
524196402570Smrg
524296402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
524396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
524496402570Smrg		fi
524596402570Smrg
524696402570Smrg		CFLAGS="$CFLAGS -Wformat=2"
524796402570Smrg
524896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
524996402570Smrg$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
52508abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Wformat_2
525196402570Smrg		if eval \${$cacheid+:} false; then :
525296402570Smrg  $as_echo_n "(cached) " >&6
525396402570Smrgelse
525496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
525596402570Smrg/* end confdefs.h.  */
525696402570Smrgint i;
525796402570Smrgint
525896402570Smrgmain ()
525996402570Smrg{
526096402570Smrg
526196402570Smrg  ;
526296402570Smrg  return 0;
526396402570Smrg}
526496402570Smrg_ACEOF
526596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
526696402570Smrg  eval $cacheid=yes
526796402570Smrgelse
526896402570Smrg  eval $cacheid=no
526996402570Smrgfi
527096402570Smrgrm -f core conftest.err conftest.$ac_objext \
527196402570Smrg    conftest$ac_exeext conftest.$ac_ext
527296402570Smrgfi
527396402570Smrg
527496402570Smrg
527596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
527696402570Smrg
527796402570Smrg		eval supported=\$$cacheid
527896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
527996402570Smrg$as_echo "$supported" >&6; }
528096402570Smrg		if test "$supported" = "yes" ; then
528196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
528296402570Smrg			found="yes"
528396402570Smrg		fi
528496402570Smrg	fi
528596402570Smrg
528696402570Smrg	if test $found = "no" ; then
528796402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
528896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
528996402570Smrg		fi
529096402570Smrg
529196402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
529296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
529396402570Smrg		fi
529496402570Smrg
529596402570Smrg		CFLAGS="$CFLAGS -Wformat"
529696402570Smrg
529796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
529896402570Smrg$as_echo_n "checking if $CC supports-Wformat... " >&6; }
529996402570Smrg		cacheid=xorg_cv_cc_flag__Wformat
530096402570Smrg		if eval \${$cacheid+:} false; then :
530196402570Smrg  $as_echo_n "(cached) " >&6
530296402570Smrgelse
530396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
530496402570Smrg/* end confdefs.h.  */
530596402570Smrgint i;
530696402570Smrgint
530796402570Smrgmain ()
530896402570Smrg{
530996402570Smrg
531096402570Smrg  ;
531196402570Smrg  return 0;
531296402570Smrg}
531396402570Smrg_ACEOF
531496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
531596402570Smrg  eval $cacheid=yes
531696402570Smrgelse
531796402570Smrg  eval $cacheid=no
531896402570Smrgfi
531996402570Smrgrm -f core conftest.err conftest.$ac_objext \
532096402570Smrg    conftest$ac_exeext conftest.$ac_ext
532196402570Smrgfi
532296402570Smrg
532396402570Smrg
532496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
532596402570Smrg
532696402570Smrg		eval supported=\$$cacheid
532796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
532896402570Smrg$as_echo "$supported" >&6; }
532996402570Smrg		if test "$supported" = "yes" ; then
533096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
533196402570Smrg			found="yes"
533296402570Smrg		fi
533396402570Smrg	fi
533496402570Smrg
533596402570Smrg
533696402570Smrg
533796402570Smrg
533896402570Smrg
533996402570Smrg
534096402570Smrg
534196402570Smrg
534296402570Smrg
534396402570Smrg
534496402570Smrg
534596402570Smrg
534696402570Smrg
534796402570Smrg
534896402570Smrg
534996402570Smrg
535096402570Smrg
535196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
535296402570Smrg
535396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
535496402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
535596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
535696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
535796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
535896402570Smrg  $as_echo_n "(cached) " >&6
535996402570Smrgelse
536096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
536196402570Smrg/* end confdefs.h.  */
536296402570Smrgint i;
536396402570Smrg_ACEOF
536496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
536596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
536696402570Smrgelse
536796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
536896402570Smrgfi
536996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
537096402570Smrgfi
537196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
537296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
537396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
537496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
537596402570Smrgfi
537696402570Smrg
537796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
537896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
537996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
538096402570Smrg	fi
538196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
538296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
538396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
538496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
538596402570Smrg  $as_echo_n "(cached) " >&6
538696402570Smrgelse
538796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
538896402570Smrg/* end confdefs.h.  */
538996402570Smrgint i;
539096402570Smrg_ACEOF
539196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
539296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
539396402570Smrgelse
539496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
539596402570Smrgfi
539696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
539796402570Smrgfi
539896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
539996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
540096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
540196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
540296402570Smrgfi
540396402570Smrg
540496402570Smrgfound="no"
540596402570Smrg
540696402570Smrg	if test $found = "no" ; then
540796402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
540896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
540996402570Smrg		fi
541096402570Smrg
541196402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
541296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
541396402570Smrg		fi
541496402570Smrg
541596402570Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
541696402570Smrg
541796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
541896402570Smrg$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
541996402570Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
542096402570Smrg		if eval \${$cacheid+:} false; then :
542196402570Smrg  $as_echo_n "(cached) " >&6
542296402570Smrgelse
542396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542496402570Smrg/* end confdefs.h.  */
542596402570Smrgint i;
542696402570Smrgint
542796402570Smrgmain ()
542896402570Smrg{
542996402570Smrg
543096402570Smrg  ;
543196402570Smrg  return 0;
543296402570Smrg}
543396402570Smrg_ACEOF
543496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
543596402570Smrg  eval $cacheid=yes
543696402570Smrgelse
543796402570Smrg  eval $cacheid=no
543896402570Smrgfi
543996402570Smrgrm -f core conftest.err conftest.$ac_objext \
544096402570Smrg    conftest$ac_exeext conftest.$ac_ext
544196402570Smrgfi
544296402570Smrg
544396402570Smrg
544496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
544596402570Smrg
544696402570Smrg		eval supported=\$$cacheid
544796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
544896402570Smrg$as_echo "$supported" >&6; }
544996402570Smrg		if test "$supported" = "yes" ; then
545096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
545196402570Smrg			found="yes"
545296402570Smrg		fi
545396402570Smrg	fi
545496402570Smrg
545596402570Smrg
545696402570Smrg
545796402570Smrg
545896402570Smrg
545996402570Smrg
546096402570Smrg
546196402570Smrg
546296402570Smrg
546396402570Smrg
546496402570Smrg
546596402570Smrg
546696402570Smrg
546796402570Smrg
546896402570Smrg
546996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
547096402570Smrg
547196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
547296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
547396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
547496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
547596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
547696402570Smrg  $as_echo_n "(cached) " >&6
547796402570Smrgelse
547896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
547996402570Smrg/* end confdefs.h.  */
548096402570Smrgint i;
548196402570Smrg_ACEOF
548296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
548396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
548496402570Smrgelse
548596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
548696402570Smrgfi
548796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
548896402570Smrgfi
548996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
549096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
549196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
549296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
549396402570Smrgfi
549496402570Smrg
549596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
549696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
549796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
549896402570Smrg	fi
549996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
550096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
550196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
550296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
550396402570Smrg  $as_echo_n "(cached) " >&6
550496402570Smrgelse
550596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
550696402570Smrg/* end confdefs.h.  */
550796402570Smrgint i;
550896402570Smrg_ACEOF
550996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
551096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
551196402570Smrgelse
551296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
551396402570Smrgfi
551496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
551596402570Smrgfi
551696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
551796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
551896402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
551996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
552096402570Smrgfi
552196402570Smrg
552296402570Smrgfound="no"
552396402570Smrg
552496402570Smrg	if test $found = "no" ; then
552596402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
552696402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
552796402570Smrg		fi
552896402570Smrg
552996402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
553096402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
553196402570Smrg		fi
553296402570Smrg
553396402570Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
553496402570Smrg
553596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
553696402570Smrg$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
553796402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
553896402570Smrg		if eval \${$cacheid+:} false; then :
553996402570Smrg  $as_echo_n "(cached) " >&6
554096402570Smrgelse
554196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
554296402570Smrg/* end confdefs.h.  */
554396402570Smrgint i;
554496402570Smrgint
554596402570Smrgmain ()
554696402570Smrg{
554796402570Smrg
554896402570Smrg  ;
554996402570Smrg  return 0;
555096402570Smrg}
555196402570Smrg_ACEOF
555296402570Smrgif ac_fn_c_try_link "$LINENO"; then :
555396402570Smrg  eval $cacheid=yes
555496402570Smrgelse
555596402570Smrg  eval $cacheid=no
555696402570Smrgfi
555796402570Smrgrm -f core conftest.err conftest.$ac_objext \
555896402570Smrg    conftest$ac_exeext conftest.$ac_ext
555996402570Smrgfi
556096402570Smrg
556196402570Smrg
556296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
556396402570Smrg
556496402570Smrg		eval supported=\$$cacheid
556596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
556696402570Smrg$as_echo "$supported" >&6; }
556796402570Smrg		if test "$supported" = "yes" ; then
556896402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
556996402570Smrg			found="yes"
557096402570Smrg		fi
557196402570Smrg	fi
557296402570Smrg
557396402570Smrg
557496402570Smrg
557596402570Smrg
557696402570Smrg
557796402570Smrg
557896402570Smrg
557996402570Smrg
558096402570Smrg
558196402570Smrg
558296402570Smrg
558396402570Smrg
558496402570Smrg
558596402570Smrg
558696402570Smrg
558796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
558896402570Smrg
558996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
559096402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
559196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
559296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
559396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
559496402570Smrg  $as_echo_n "(cached) " >&6
559596402570Smrgelse
559696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
559796402570Smrg/* end confdefs.h.  */
559896402570Smrgint i;
559996402570Smrg_ACEOF
560096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
560196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
560296402570Smrgelse
560396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
560496402570Smrgfi
560596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
560696402570Smrgfi
560796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
560896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
560996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
561096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
561196402570Smrgfi
561296402570Smrg
561396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
561496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
561596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
561696402570Smrg	fi
561796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
561896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
561996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
562096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
562196402570Smrg  $as_echo_n "(cached) " >&6
562296402570Smrgelse
562396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
562496402570Smrg/* end confdefs.h.  */
562596402570Smrgint i;
562696402570Smrg_ACEOF
562796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
562896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
562996402570Smrgelse
563096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
563196402570Smrgfi
563296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
563396402570Smrgfi
563496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
563596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
563696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
563796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
563896402570Smrgfi
563996402570Smrg
564096402570Smrgfound="no"
564196402570Smrg
564296402570Smrg	if test $found = "no" ; then
564396402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
564496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
564596402570Smrg		fi
564696402570Smrg
564796402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
564896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
564996402570Smrg		fi
565096402570Smrg
565196402570Smrg		CFLAGS="$CFLAGS -Wnested-externs"
565296402570Smrg
565396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
565496402570Smrg$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
565596402570Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
565696402570Smrg		if eval \${$cacheid+:} false; then :
565796402570Smrg  $as_echo_n "(cached) " >&6
565896402570Smrgelse
565996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
566096402570Smrg/* end confdefs.h.  */
566196402570Smrgint i;
566296402570Smrgint
566396402570Smrgmain ()
566496402570Smrg{
566596402570Smrg
566696402570Smrg  ;
566796402570Smrg  return 0;
566896402570Smrg}
566996402570Smrg_ACEOF
567096402570Smrgif ac_fn_c_try_link "$LINENO"; then :
567196402570Smrg  eval $cacheid=yes
567296402570Smrgelse
567396402570Smrg  eval $cacheid=no
567496402570Smrgfi
567596402570Smrgrm -f core conftest.err conftest.$ac_objext \
567696402570Smrg    conftest$ac_exeext conftest.$ac_ext
567796402570Smrgfi
567896402570Smrg
567996402570Smrg
568096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
568196402570Smrg
568296402570Smrg		eval supported=\$$cacheid
568396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
568496402570Smrg$as_echo "$supported" >&6; }
568596402570Smrg		if test "$supported" = "yes" ; then
568696402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
568796402570Smrg			found="yes"
568896402570Smrg		fi
568996402570Smrg	fi
569096402570Smrg
569196402570Smrg
569296402570Smrg
569396402570Smrg
569496402570Smrg
569596402570Smrg
569696402570Smrg
569796402570Smrg
569896402570Smrg
569996402570Smrg
570096402570Smrg
570196402570Smrg
570296402570Smrg
570396402570Smrg
570496402570Smrg
570596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
570696402570Smrg
570796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
570896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
570996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
571096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
571196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
571296402570Smrg  $as_echo_n "(cached) " >&6
571396402570Smrgelse
571496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
571596402570Smrg/* end confdefs.h.  */
571696402570Smrgint i;
571796402570Smrg_ACEOF
571896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
571996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
572096402570Smrgelse
572196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
572296402570Smrgfi
572396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
572496402570Smrgfi
572596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
572696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
572796402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
572896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
572996402570Smrgfi
573096402570Smrg
573196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
573296402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
573396402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
573496402570Smrg	fi
573596402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
573696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
573796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
573896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
573996402570Smrg  $as_echo_n "(cached) " >&6
574096402570Smrgelse
574196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
574296402570Smrg/* end confdefs.h.  */
574396402570Smrgint i;
574496402570Smrg_ACEOF
574596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
574696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
574796402570Smrgelse
574896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
574996402570Smrgfi
575096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
575196402570Smrgfi
575296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
575396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
575496402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
575596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
575696402570Smrgfi
575796402570Smrg
575896402570Smrgfound="no"
575996402570Smrg
576096402570Smrg	if test $found = "no" ; then
576196402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
576296402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
576396402570Smrg		fi
576496402570Smrg
576596402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
576696402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
576796402570Smrg		fi
576896402570Smrg
576996402570Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
577096402570Smrg
577196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
577296402570Smrg$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
577396402570Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
577496402570Smrg		if eval \${$cacheid+:} false; then :
577596402570Smrg  $as_echo_n "(cached) " >&6
577696402570Smrgelse
577796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
577896402570Smrg/* end confdefs.h.  */
577996402570Smrgint i;
578096402570Smrgint
578196402570Smrgmain ()
578296402570Smrg{
578396402570Smrg
578496402570Smrg  ;
578596402570Smrg  return 0;
578696402570Smrg}
578796402570Smrg_ACEOF
578896402570Smrgif ac_fn_c_try_link "$LINENO"; then :
578996402570Smrg  eval $cacheid=yes
579096402570Smrgelse
579196402570Smrg  eval $cacheid=no
579296402570Smrgfi
579396402570Smrgrm -f core conftest.err conftest.$ac_objext \
579496402570Smrg    conftest$ac_exeext conftest.$ac_ext
579596402570Smrgfi
579696402570Smrg
579796402570Smrg
579896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
579996402570Smrg
580096402570Smrg		eval supported=\$$cacheid
580196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
580296402570Smrg$as_echo "$supported" >&6; }
580396402570Smrg		if test "$supported" = "yes" ; then
580496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
580596402570Smrg			found="yes"
580696402570Smrg		fi
580796402570Smrg	fi
580896402570Smrg
580996402570Smrg
581096402570Smrg
581196402570Smrg
581296402570Smrg
581396402570Smrg
581496402570Smrg
581596402570Smrg
581696402570Smrg
581796402570Smrg
581896402570Smrg
581996402570Smrg
582096402570Smrg
582196402570Smrg
582296402570Smrg
582396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
582496402570Smrg
582596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
582696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
582796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
582896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
582996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
583096402570Smrg  $as_echo_n "(cached) " >&6
583196402570Smrgelse
583296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
583396402570Smrg/* end confdefs.h.  */
583496402570Smrgint i;
583596402570Smrg_ACEOF
583696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
583796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
583896402570Smrgelse
583996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
584096402570Smrgfi
584196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
584296402570Smrgfi
584396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
584496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
584596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
584696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
584796402570Smrgfi
584896402570Smrg
584996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
585096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
585196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
585296402570Smrg	fi
585396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
585496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
585596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
585696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
585796402570Smrg  $as_echo_n "(cached) " >&6
585896402570Smrgelse
585996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
586096402570Smrg/* end confdefs.h.  */
586196402570Smrgint i;
586296402570Smrg_ACEOF
586396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
586496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
586596402570Smrgelse
586696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
586796402570Smrgfi
586896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
586996402570Smrgfi
587096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
587196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
587296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
587396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
587496402570Smrgfi
587596402570Smrg
587696402570Smrgfound="no"
587796402570Smrg
587896402570Smrg	if test $found = "no" ; then
587996402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
588096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
588196402570Smrg		fi
588296402570Smrg
588396402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
588496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
588596402570Smrg		fi
588696402570Smrg
588796402570Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
588896402570Smrg
588996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
589096402570Smrg$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
589196402570Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
589296402570Smrg		if eval \${$cacheid+:} false; then :
589396402570Smrg  $as_echo_n "(cached) " >&6
589496402570Smrgelse
589596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
589696402570Smrg/* end confdefs.h.  */
589796402570Smrgint i;
589896402570Smrgint
589996402570Smrgmain ()
590096402570Smrg{
590196402570Smrg
590296402570Smrg  ;
590396402570Smrg  return 0;
590496402570Smrg}
590596402570Smrg_ACEOF
590696402570Smrgif ac_fn_c_try_link "$LINENO"; then :
590796402570Smrg  eval $cacheid=yes
590896402570Smrgelse
590996402570Smrg  eval $cacheid=no
591096402570Smrgfi
591196402570Smrgrm -f core conftest.err conftest.$ac_objext \
591296402570Smrg    conftest$ac_exeext conftest.$ac_ext
591396402570Smrgfi
591496402570Smrg
591596402570Smrg
591696402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
591796402570Smrg
591896402570Smrg		eval supported=\$$cacheid
591996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
592096402570Smrg$as_echo "$supported" >&6; }
592196402570Smrg		if test "$supported" = "yes" ; then
592296402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
592396402570Smrg			found="yes"
592496402570Smrg		fi
592596402570Smrg	fi
592696402570Smrg
592796402570Smrg
592896402570Smrg
592996402570Smrg
593096402570Smrg
593196402570Smrg
593296402570Smrg
593396402570Smrg
593496402570Smrg
593596402570Smrg
593696402570Smrg
593796402570Smrg
593896402570Smrg
593996402570Smrg
594096402570Smrg
594196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
594296402570Smrg
594396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
594496402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
594596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
594696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
594796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
594896402570Smrg  $as_echo_n "(cached) " >&6
594996402570Smrgelse
595096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
595196402570Smrg/* end confdefs.h.  */
595296402570Smrgint i;
595396402570Smrg_ACEOF
595496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
595596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
595696402570Smrgelse
595796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
595896402570Smrgfi
595996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
596096402570Smrgfi
596196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
596296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
596396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
596496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
596596402570Smrgfi
596696402570Smrg
596796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
596896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
596996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
597096402570Smrg	fi
597196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
597296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
597396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
597496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
597596402570Smrg  $as_echo_n "(cached) " >&6
597696402570Smrgelse
597796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
597896402570Smrg/* end confdefs.h.  */
597996402570Smrgint i;
598096402570Smrg_ACEOF
598196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
598296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
598396402570Smrgelse
598496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
598596402570Smrgfi
598696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
598796402570Smrgfi
598896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
598996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
599096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
599196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
599296402570Smrgfi
599396402570Smrg
599496402570Smrgfound="no"
599596402570Smrg
599696402570Smrg	if test $found = "no" ; then
599796402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
599896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
599996402570Smrg		fi
600096402570Smrg
600196402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
600296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
600396402570Smrg		fi
600496402570Smrg
600596402570Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
600696402570Smrg
600796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
600896402570Smrg$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
600996402570Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
601096402570Smrg		if eval \${$cacheid+:} false; then :
601196402570Smrg  $as_echo_n "(cached) " >&6
601296402570Smrgelse
601396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
601496402570Smrg/* end confdefs.h.  */
601596402570Smrgint i;
601696402570Smrgint
601796402570Smrgmain ()
601896402570Smrg{
601996402570Smrg
602096402570Smrg  ;
602196402570Smrg  return 0;
602296402570Smrg}
602396402570Smrg_ACEOF
602496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
602596402570Smrg  eval $cacheid=yes
602696402570Smrgelse
602796402570Smrg  eval $cacheid=no
602896402570Smrgfi
602996402570Smrgrm -f core conftest.err conftest.$ac_objext \
603096402570Smrg    conftest$ac_exeext conftest.$ac_ext
603196402570Smrgfi
603296402570Smrg
603396402570Smrg
603496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
603596402570Smrg
603696402570Smrg		eval supported=\$$cacheid
603796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
603896402570Smrg$as_echo "$supported" >&6; }
603996402570Smrg		if test "$supported" = "yes" ; then
604096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
604196402570Smrg			found="yes"
604296402570Smrg		fi
604396402570Smrg	fi
604496402570Smrg
604596402570Smrg
604696402570Smrg
604796402570Smrg
604896402570Smrg
604996402570Smrg# This chunk adds additional warnings that could catch undesired effects.
605096402570Smrg
605196402570Smrg
605296402570Smrg
605396402570Smrg
605496402570Smrg
605596402570Smrg
605696402570Smrg
605796402570Smrg
605896402570Smrg
605996402570Smrg
606096402570Smrg
606196402570Smrg
606296402570Smrg
606396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
606496402570Smrg
606596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
606696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
606796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
606896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
606996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
607096402570Smrg  $as_echo_n "(cached) " >&6
607196402570Smrgelse
607296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
607396402570Smrg/* end confdefs.h.  */
607496402570Smrgint i;
607596402570Smrg_ACEOF
607696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
607796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
607896402570Smrgelse
607996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
608096402570Smrgfi
608196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
608296402570Smrgfi
608396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
608496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
608596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
608696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
608796402570Smrgfi
608896402570Smrg
608996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
609096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
609196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
609296402570Smrg	fi
609396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
609496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
609596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
609696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
609796402570Smrg  $as_echo_n "(cached) " >&6
609896402570Smrgelse
609996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
610096402570Smrg/* end confdefs.h.  */
610196402570Smrgint i;
610296402570Smrg_ACEOF
610396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
610496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
610596402570Smrgelse
610696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
610796402570Smrgfi
610896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
610996402570Smrgfi
611096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
611196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
611296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
611396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
611496402570Smrgfi
611596402570Smrg
611696402570Smrgfound="no"
611796402570Smrg
611896402570Smrg	if test $found = "no" ; then
611996402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
612096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
612196402570Smrg		fi
612296402570Smrg
612396402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
612496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
612596402570Smrg		fi
612696402570Smrg
612796402570Smrg		CFLAGS="$CFLAGS -Wunused"
612896402570Smrg
612996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
613096402570Smrg$as_echo_n "checking if $CC supports-Wunused... " >&6; }
613196402570Smrg		cacheid=xorg_cv_cc_flag__Wunused
613296402570Smrg		if eval \${$cacheid+:} false; then :
613396402570Smrg  $as_echo_n "(cached) " >&6
613496402570Smrgelse
613596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
613696402570Smrg/* end confdefs.h.  */
613796402570Smrgint i;
613896402570Smrgint
613996402570Smrgmain ()
614096402570Smrg{
614196402570Smrg
614296402570Smrg  ;
614396402570Smrg  return 0;
614496402570Smrg}
614596402570Smrg_ACEOF
614696402570Smrgif ac_fn_c_try_link "$LINENO"; then :
614796402570Smrg  eval $cacheid=yes
614896402570Smrgelse
614996402570Smrg  eval $cacheid=no
615096402570Smrgfi
615196402570Smrgrm -f core conftest.err conftest.$ac_objext \
615296402570Smrg    conftest$ac_exeext conftest.$ac_ext
615396402570Smrgfi
615496402570Smrg
615596402570Smrg
615696402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
615796402570Smrg
615896402570Smrg		eval supported=\$$cacheid
615996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
616096402570Smrg$as_echo "$supported" >&6; }
616196402570Smrg		if test "$supported" = "yes" ; then
616296402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
616396402570Smrg			found="yes"
616496402570Smrg		fi
616596402570Smrg	fi
616696402570Smrg
616796402570Smrg
616896402570Smrg
616996402570Smrg
617096402570Smrg
617196402570Smrg
617296402570Smrg
617396402570Smrg
617496402570Smrg
617596402570Smrg
617696402570Smrg
617796402570Smrg
617896402570Smrg
617996402570Smrg
618096402570Smrg
618196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
618296402570Smrg
618396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
618496402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
618596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
618696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
618796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
618896402570Smrg  $as_echo_n "(cached) " >&6
618996402570Smrgelse
619096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
619196402570Smrg/* end confdefs.h.  */
619296402570Smrgint i;
619396402570Smrg_ACEOF
619496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
619596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
619696402570Smrgelse
619796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
619896402570Smrgfi
619996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
620096402570Smrgfi
620196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
620296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
620396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
620496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
620596402570Smrgfi
620696402570Smrg
620796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
620896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
620996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
621096402570Smrg	fi
621196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
621296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
621396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
621496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
621596402570Smrg  $as_echo_n "(cached) " >&6
621696402570Smrgelse
621796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
621896402570Smrg/* end confdefs.h.  */
621996402570Smrgint i;
622096402570Smrg_ACEOF
622196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
622296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
622396402570Smrgelse
622496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
622596402570Smrgfi
622696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
622796402570Smrgfi
622896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
622996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
623096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
623196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
623296402570Smrgfi
623396402570Smrg
623496402570Smrgfound="no"
623596402570Smrg
623696402570Smrg	if test $found = "no" ; then
623796402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
623896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
623996402570Smrg		fi
624096402570Smrg
624196402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
624296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
624396402570Smrg		fi
624496402570Smrg
624596402570Smrg		CFLAGS="$CFLAGS -Wuninitialized"
624696402570Smrg
624796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
624896402570Smrg$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
624996402570Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
625096402570Smrg		if eval \${$cacheid+:} false; then :
625196402570Smrg  $as_echo_n "(cached) " >&6
625296402570Smrgelse
625396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
625496402570Smrg/* end confdefs.h.  */
625596402570Smrgint i;
625696402570Smrgint
625796402570Smrgmain ()
625896402570Smrg{
625996402570Smrg
626096402570Smrg  ;
626196402570Smrg  return 0;
626296402570Smrg}
626396402570Smrg_ACEOF
626496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
626596402570Smrg  eval $cacheid=yes
626696402570Smrgelse
626796402570Smrg  eval $cacheid=no
626896402570Smrgfi
626996402570Smrgrm -f core conftest.err conftest.$ac_objext \
627096402570Smrg    conftest$ac_exeext conftest.$ac_ext
627196402570Smrgfi
627296402570Smrg
627396402570Smrg
627496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
627596402570Smrg
627696402570Smrg		eval supported=\$$cacheid
627796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
627896402570Smrg$as_echo "$supported" >&6; }
627996402570Smrg		if test "$supported" = "yes" ; then
628096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
628196402570Smrg			found="yes"
628296402570Smrg		fi
628396402570Smrg	fi
628496402570Smrg
628596402570Smrg
628696402570Smrg
628796402570Smrg
628896402570Smrg
628996402570Smrg
629096402570Smrg
629196402570Smrg
629296402570Smrg
629396402570Smrg
629496402570Smrg
629596402570Smrg
629696402570Smrg
629796402570Smrg
629896402570Smrg
629996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
630096402570Smrg
630196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
630296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
630396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
630496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
630596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
630696402570Smrg  $as_echo_n "(cached) " >&6
630796402570Smrgelse
630896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
630996402570Smrg/* end confdefs.h.  */
631096402570Smrgint i;
631196402570Smrg_ACEOF
631296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
631396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
631496402570Smrgelse
631596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
631696402570Smrgfi
631796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
631896402570Smrgfi
631996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
632096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
632196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
632296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
632396402570Smrgfi
632496402570Smrg
632596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
632696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
632796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
632896402570Smrg	fi
632996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
633096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
633196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
633296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
633396402570Smrg  $as_echo_n "(cached) " >&6
633496402570Smrgelse
633596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
633696402570Smrg/* end confdefs.h.  */
633796402570Smrgint i;
633896402570Smrg_ACEOF
633996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
634096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
634196402570Smrgelse
634296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
634396402570Smrgfi
634496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
634596402570Smrgfi
634696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
634796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
634896402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
634996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
635096402570Smrgfi
635196402570Smrg
635296402570Smrgfound="no"
635396402570Smrg
635496402570Smrg	if test $found = "no" ; then
635596402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
635696402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
635796402570Smrg		fi
635896402570Smrg
635996402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
636096402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
636196402570Smrg		fi
636296402570Smrg
636396402570Smrg		CFLAGS="$CFLAGS -Wshadow"
636496402570Smrg
636596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
636696402570Smrg$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
636796402570Smrg		cacheid=xorg_cv_cc_flag__Wshadow
636896402570Smrg		if eval \${$cacheid+:} false; then :
636996402570Smrg  $as_echo_n "(cached) " >&6
637096402570Smrgelse
637196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
637296402570Smrg/* end confdefs.h.  */
637396402570Smrgint i;
637496402570Smrgint
637596402570Smrgmain ()
637696402570Smrg{
637796402570Smrg
637896402570Smrg  ;
637996402570Smrg  return 0;
638096402570Smrg}
638196402570Smrg_ACEOF
638296402570Smrgif ac_fn_c_try_link "$LINENO"; then :
638396402570Smrg  eval $cacheid=yes
638496402570Smrgelse
638596402570Smrg  eval $cacheid=no
638696402570Smrgfi
638796402570Smrgrm -f core conftest.err conftest.$ac_objext \
638896402570Smrg    conftest$ac_exeext conftest.$ac_ext
638996402570Smrgfi
639096402570Smrg
639196402570Smrg
639296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
639396402570Smrg
639496402570Smrg		eval supported=\$$cacheid
639596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
639696402570Smrg$as_echo "$supported" >&6; }
639796402570Smrg		if test "$supported" = "yes" ; then
639896402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
639996402570Smrg			found="yes"
640096402570Smrg		fi
640196402570Smrg	fi
640296402570Smrg
640396402570Smrg
640496402570Smrg
640596402570Smrg
640696402570Smrg
640796402570Smrg
640896402570Smrg
640996402570Smrg
641096402570Smrg
641196402570Smrg
641296402570Smrg
641396402570Smrg
641496402570Smrg
641596402570Smrg
641696402570Smrg
641796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
641896402570Smrg
641996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
642096402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
642196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
642296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
642396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
642496402570Smrg  $as_echo_n "(cached) " >&6
642596402570Smrgelse
642696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
642796402570Smrg/* end confdefs.h.  */
642896402570Smrgint i;
642996402570Smrg_ACEOF
643096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
643196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
643296402570Smrgelse
643396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
643496402570Smrgfi
643596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
643696402570Smrgfi
643796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
643896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
643996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
644096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
644196402570Smrgfi
644296402570Smrg
644396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
644496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
644596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
644696402570Smrg	fi
644796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
644896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
644996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
645096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
645196402570Smrg  $as_echo_n "(cached) " >&6
645296402570Smrgelse
645396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
645496402570Smrg/* end confdefs.h.  */
645596402570Smrgint i;
645696402570Smrg_ACEOF
645796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
645896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
645996402570Smrgelse
646096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
646196402570Smrgfi
646296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
646396402570Smrgfi
646496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
646596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
646696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
646796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
646896402570Smrgfi
646996402570Smrg
647096402570Smrgfound="no"
647196402570Smrg
647296402570Smrg	if test $found = "no" ; then
647396402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
647496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
647596402570Smrg		fi
647696402570Smrg
647796402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
647896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
647996402570Smrg		fi
648096402570Smrg
648196402570Smrg		CFLAGS="$CFLAGS -Wcast-qual"
648296402570Smrg
648396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
648496402570Smrg$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
648596402570Smrg		cacheid=xorg_cv_cc_flag__Wcast_qual
648696402570Smrg		if eval \${$cacheid+:} false; then :
648796402570Smrg  $as_echo_n "(cached) " >&6
648896402570Smrgelse
648996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
649096402570Smrg/* end confdefs.h.  */
649196402570Smrgint i;
649296402570Smrgint
649396402570Smrgmain ()
649496402570Smrg{
649596402570Smrg
649696402570Smrg  ;
649796402570Smrg  return 0;
649896402570Smrg}
649996402570Smrg_ACEOF
650096402570Smrgif ac_fn_c_try_link "$LINENO"; then :
650196402570Smrg  eval $cacheid=yes
650296402570Smrgelse
650396402570Smrg  eval $cacheid=no
650496402570Smrgfi
650596402570Smrgrm -f core conftest.err conftest.$ac_objext \
650696402570Smrg    conftest$ac_exeext conftest.$ac_ext
650796402570Smrgfi
650896402570Smrg
650996402570Smrg
651096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
651196402570Smrg
651296402570Smrg		eval supported=\$$cacheid
651396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
651496402570Smrg$as_echo "$supported" >&6; }
651596402570Smrg		if test "$supported" = "yes" ; then
651696402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
651796402570Smrg			found="yes"
651896402570Smrg		fi
651996402570Smrg	fi
652096402570Smrg
652196402570Smrg
652296402570Smrg
652396402570Smrg
652496402570Smrg
652596402570Smrg
652696402570Smrg
652796402570Smrg
652896402570Smrg
652996402570Smrg
653096402570Smrg
653196402570Smrg
653296402570Smrg
653396402570Smrg
653496402570Smrg
653596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
653696402570Smrg
653796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
653896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
653996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
654096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
654196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
654296402570Smrg  $as_echo_n "(cached) " >&6
654396402570Smrgelse
654496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
654596402570Smrg/* end confdefs.h.  */
654696402570Smrgint i;
654796402570Smrg_ACEOF
654896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
654996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
655096402570Smrgelse
655196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
655296402570Smrgfi
655396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
655496402570Smrgfi
655596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
655696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
655796402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
655896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
655996402570Smrgfi
656096402570Smrg
656196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
656296402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
656396402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
656496402570Smrg	fi
656596402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
656696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
656796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
656896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
656996402570Smrg  $as_echo_n "(cached) " >&6
657096402570Smrgelse
657196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
657296402570Smrg/* end confdefs.h.  */
657396402570Smrgint i;
657496402570Smrg_ACEOF
657596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
657696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
657796402570Smrgelse
657896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
657996402570Smrgfi
658096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
658196402570Smrgfi
658296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
658396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
658496402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
658596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
658696402570Smrgfi
658796402570Smrg
658896402570Smrgfound="no"
658996402570Smrg
659096402570Smrg	if test $found = "no" ; then
659196402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
659296402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
659396402570Smrg		fi
659496402570Smrg
659596402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
659696402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
659796402570Smrg		fi
659896402570Smrg
659996402570Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
660096402570Smrg
660196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
660296402570Smrg$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
660396402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
660496402570Smrg		if eval \${$cacheid+:} false; then :
660596402570Smrg  $as_echo_n "(cached) " >&6
660696402570Smrgelse
660796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
660896402570Smrg/* end confdefs.h.  */
660996402570Smrgint i;
661096402570Smrgint
661196402570Smrgmain ()
661296402570Smrg{
661396402570Smrg
661496402570Smrg  ;
661596402570Smrg  return 0;
661696402570Smrg}
661796402570Smrg_ACEOF
661896402570Smrgif ac_fn_c_try_link "$LINENO"; then :
661996402570Smrg  eval $cacheid=yes
662096402570Smrgelse
662196402570Smrg  eval $cacheid=no
662296402570Smrgfi
662396402570Smrgrm -f core conftest.err conftest.$ac_objext \
662496402570Smrg    conftest$ac_exeext conftest.$ac_ext
662596402570Smrgfi
662696402570Smrg
662796402570Smrg
662896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
662996402570Smrg
663096402570Smrg		eval supported=\$$cacheid
663196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
663296402570Smrg$as_echo "$supported" >&6; }
663396402570Smrg		if test "$supported" = "yes" ; then
663496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
663596402570Smrg			found="yes"
663696402570Smrg		fi
663796402570Smrg	fi
663896402570Smrg
663996402570Smrg
664096402570Smrg
664196402570Smrg
664296402570Smrg
664396402570Smrg
664496402570Smrg
664596402570Smrg
664696402570Smrg
664796402570Smrg
664896402570Smrg
664996402570Smrg
665096402570Smrg
665196402570Smrg
665296402570Smrg
665396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
665496402570Smrg
665596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
665696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
665796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
665896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
665996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
666096402570Smrg  $as_echo_n "(cached) " >&6
666196402570Smrgelse
666296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
666396402570Smrg/* end confdefs.h.  */
666496402570Smrgint i;
666596402570Smrg_ACEOF
666696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
666796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
666896402570Smrgelse
666996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
667096402570Smrgfi
667196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
667296402570Smrgfi
667396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
667496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
667596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
667696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
667796402570Smrgfi
667896402570Smrg
667996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
668096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
668196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
668296402570Smrg	fi
668396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
668496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
668596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
668696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
668796402570Smrg  $as_echo_n "(cached) " >&6
668896402570Smrgelse
668996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
669096402570Smrg/* end confdefs.h.  */
669196402570Smrgint i;
669296402570Smrg_ACEOF
669396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
669496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
669596402570Smrgelse
669696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
669796402570Smrgfi
669896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
669996402570Smrgfi
670096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
670196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
670296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
670396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
670496402570Smrgfi
670596402570Smrg
670696402570Smrgfound="no"
670796402570Smrg
670896402570Smrg	if test $found = "no" ; then
670996402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
671096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
671196402570Smrg		fi
671296402570Smrg
671396402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
671496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
671596402570Smrg		fi
671696402570Smrg
671796402570Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
671896402570Smrg
671996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
672096402570Smrg$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
672196402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
672296402570Smrg		if eval \${$cacheid+:} false; then :
672396402570Smrg  $as_echo_n "(cached) " >&6
672496402570Smrgelse
672596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
672696402570Smrg/* end confdefs.h.  */
672796402570Smrgint i;
672896402570Smrgint
672996402570Smrgmain ()
673096402570Smrg{
673196402570Smrg
673296402570Smrg  ;
673396402570Smrg  return 0;
673496402570Smrg}
673596402570Smrg_ACEOF
673696402570Smrgif ac_fn_c_try_link "$LINENO"; then :
673796402570Smrg  eval $cacheid=yes
673896402570Smrgelse
673996402570Smrg  eval $cacheid=no
674096402570Smrgfi
674196402570Smrgrm -f core conftest.err conftest.$ac_objext \
674296402570Smrg    conftest$ac_exeext conftest.$ac_ext
674396402570Smrgfi
674496402570Smrg
674596402570Smrg
674696402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
674796402570Smrg
674896402570Smrg		eval supported=\$$cacheid
674996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
675096402570Smrg$as_echo "$supported" >&6; }
675196402570Smrg		if test "$supported" = "yes" ; then
675296402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
675396402570Smrg			found="yes"
675496402570Smrg		fi
675596402570Smrg	fi
675696402570Smrg
675796402570Smrg
675896402570Smrg
675996402570Smrg
676096402570Smrg
676196402570Smrg
676296402570Smrg
676396402570Smrg
676496402570Smrg
676596402570Smrg
676696402570Smrg
676796402570Smrg
676896402570Smrg
676996402570Smrg
677096402570Smrg
677196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
677296402570Smrg
677396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
677496402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
677596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
677696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
677796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
677896402570Smrg  $as_echo_n "(cached) " >&6
677996402570Smrgelse
678096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
678196402570Smrg/* end confdefs.h.  */
678296402570Smrgint i;
678396402570Smrg_ACEOF
678496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
678596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
678696402570Smrgelse
678796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
678896402570Smrgfi
678996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
679096402570Smrgfi
679196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
679296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
679396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
679496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
679596402570Smrgfi
679696402570Smrg
679796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
679896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
679996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
680096402570Smrg	fi
680196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
680296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
680396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
680496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
680596402570Smrg  $as_echo_n "(cached) " >&6
680696402570Smrgelse
680796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
680896402570Smrg/* end confdefs.h.  */
680996402570Smrgint i;
681096402570Smrg_ACEOF
681196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
681296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
681396402570Smrgelse
681496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
681596402570Smrgfi
681696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
681796402570Smrgfi
681896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
681996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
682096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
682196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
682296402570Smrgfi
682396402570Smrg
682496402570Smrgfound="no"
682596402570Smrg
682696402570Smrg	if test $found = "no" ; then
682796402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
682896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
682996402570Smrg		fi
683096402570Smrg
683196402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
683296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
683396402570Smrg		fi
683496402570Smrg
683596402570Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
683696402570Smrg
683796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
683896402570Smrg$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
683996402570Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
684096402570Smrg		if eval \${$cacheid+:} false; then :
684196402570Smrg  $as_echo_n "(cached) " >&6
684296402570Smrgelse
684396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
684496402570Smrg/* end confdefs.h.  */
684596402570Smrgint i;
684696402570Smrgint
684796402570Smrgmain ()
684896402570Smrg{
684996402570Smrg
685096402570Smrg  ;
685196402570Smrg  return 0;
685296402570Smrg}
685396402570Smrg_ACEOF
685496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
685596402570Smrg  eval $cacheid=yes
685696402570Smrgelse
685796402570Smrg  eval $cacheid=no
685896402570Smrgfi
685996402570Smrgrm -f core conftest.err conftest.$ac_objext \
686096402570Smrg    conftest$ac_exeext conftest.$ac_ext
686196402570Smrgfi
686296402570Smrg
686396402570Smrg
686496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
686596402570Smrg
686696402570Smrg		eval supported=\$$cacheid
686796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
686896402570Smrg$as_echo "$supported" >&6; }
686996402570Smrg		if test "$supported" = "yes" ; then
687096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
687196402570Smrg			found="yes"
687296402570Smrg		fi
687396402570Smrg	fi
687496402570Smrg
687596402570Smrg
687696402570Smrg
687796402570Smrg# These are currently disabled because they are noisy.  They will be enabled
687896402570Smrg# in the future once the codebase is sufficiently modernized to silence
687996402570Smrg# them.  For now, I don't want them to drown out the other warnings.
688096402570Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
688196402570Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
688296402570Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
688396402570Smrg
688496402570Smrg# Turn some warnings into errors, so we don't accidently get successful builds
688596402570Smrg# when there are problems that should be fixed.
688696402570Smrg
688796402570Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
688896402570Smrg
688996402570Smrg
689096402570Smrg
689196402570Smrg
689296402570Smrg
689396402570Smrg
689496402570Smrg
689596402570Smrg
689696402570Smrg
689796402570Smrg
689896402570Smrg
689996402570Smrg
690096402570Smrg
690196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
690296402570Smrg
690396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
690496402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
690596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
690696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
690796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
690896402570Smrg  $as_echo_n "(cached) " >&6
690996402570Smrgelse
691096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
691196402570Smrg/* end confdefs.h.  */
691296402570Smrgint i;
691396402570Smrg_ACEOF
691496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
691596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
691696402570Smrgelse
691796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
691896402570Smrgfi
691996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
692096402570Smrgfi
692196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
692296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
692396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
692496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
692596402570Smrgfi
692696402570Smrg
692796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
692896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
692996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
693096402570Smrg	fi
693196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
693296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
693396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
693496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
693596402570Smrg  $as_echo_n "(cached) " >&6
693696402570Smrgelse
693796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
693896402570Smrg/* end confdefs.h.  */
693996402570Smrgint i;
694096402570Smrg_ACEOF
694196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
694296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
694396402570Smrgelse
694496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
694596402570Smrgfi
694696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
694796402570Smrgfi
694896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
694996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
695096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
695196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
695296402570Smrgfi
695396402570Smrg
695496402570Smrgfound="no"
695596402570Smrg
695696402570Smrg	if test $found = "no" ; then
695796402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
695896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
695996402570Smrg		fi
696096402570Smrg
696196402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
696296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
696396402570Smrg		fi
696496402570Smrg
696596402570Smrg		CFLAGS="$CFLAGS -Werror=implicit"
696696402570Smrg
696796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
696896402570Smrg$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
69698abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_implicit
697096402570Smrg		if eval \${$cacheid+:} false; then :
697196402570Smrg  $as_echo_n "(cached) " >&6
697296402570Smrgelse
697396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
697496402570Smrg/* end confdefs.h.  */
697596402570Smrgint i;
697696402570Smrgint
697796402570Smrgmain ()
697896402570Smrg{
697996402570Smrg
698096402570Smrg  ;
698196402570Smrg  return 0;
698296402570Smrg}
698396402570Smrg_ACEOF
698496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
698596402570Smrg  eval $cacheid=yes
698696402570Smrgelse
698796402570Smrg  eval $cacheid=no
698896402570Smrgfi
698996402570Smrgrm -f core conftest.err conftest.$ac_objext \
699096402570Smrg    conftest$ac_exeext conftest.$ac_ext
699196402570Smrgfi
699296402570Smrg
699396402570Smrg
699496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
699596402570Smrg
699696402570Smrg		eval supported=\$$cacheid
699796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
699896402570Smrg$as_echo "$supported" >&6; }
699996402570Smrg		if test "$supported" = "yes" ; then
700096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
700196402570Smrg			found="yes"
700296402570Smrg		fi
700396402570Smrg	fi
700496402570Smrg
700596402570Smrg	if test $found = "no" ; then
700696402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
700796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
700896402570Smrg		fi
700996402570Smrg
701096402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
701196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
701296402570Smrg		fi
701396402570Smrg
701496402570Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
701596402570Smrg
701696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
701796402570Smrg$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
70188abc0ccfSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
701996402570Smrg		if eval \${$cacheid+:} false; then :
702096402570Smrg  $as_echo_n "(cached) " >&6
702196402570Smrgelse
702296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
702396402570Smrg/* end confdefs.h.  */
702496402570Smrgint i;
702596402570Smrgint
702696402570Smrgmain ()
702796402570Smrg{
702896402570Smrg
702996402570Smrg  ;
703096402570Smrg  return 0;
703196402570Smrg}
703296402570Smrg_ACEOF
703396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
703496402570Smrg  eval $cacheid=yes
703596402570Smrgelse
703696402570Smrg  eval $cacheid=no
703796402570Smrgfi
703896402570Smrgrm -f core conftest.err conftest.$ac_objext \
703996402570Smrg    conftest$ac_exeext conftest.$ac_ext
704096402570Smrgfi
704196402570Smrg
704296402570Smrg
704396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
704496402570Smrg
704596402570Smrg		eval supported=\$$cacheid
704696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
704796402570Smrg$as_echo "$supported" >&6; }
704896402570Smrg		if test "$supported" = "yes" ; then
704996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
705096402570Smrg			found="yes"
705196402570Smrg		fi
705296402570Smrg	fi
705396402570Smrg
705496402570Smrg
705596402570Smrg
705696402570Smrg
705796402570Smrg
705896402570Smrg
705996402570Smrg
706096402570Smrg
706196402570Smrg
706296402570Smrg
706396402570Smrg
706496402570Smrg
706596402570Smrg
706696402570Smrg
706796402570Smrg
706896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
706996402570Smrg
707096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
707196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
707296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
707396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
707496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
707596402570Smrg  $as_echo_n "(cached) " >&6
707696402570Smrgelse
707796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
707896402570Smrg/* end confdefs.h.  */
707996402570Smrgint i;
708096402570Smrg_ACEOF
708196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
708296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
708396402570Smrgelse
708496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
708596402570Smrgfi
708696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
708796402570Smrgfi
708896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
708996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
709096402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
709196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
709296402570Smrgfi
709396402570Smrg
709496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
709596402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
709696402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
709796402570Smrg	fi
709896402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
709996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
710096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
710196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
710296402570Smrg  $as_echo_n "(cached) " >&6
710396402570Smrgelse
710496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
710596402570Smrg/* end confdefs.h.  */
710696402570Smrgint i;
710796402570Smrg_ACEOF
710896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
710996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
711096402570Smrgelse
711196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
711296402570Smrgfi
711396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
711496402570Smrgfi
711596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
711696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
711796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
711896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
711996402570Smrgfi
712096402570Smrg
712196402570Smrgfound="no"
712296402570Smrg
712396402570Smrg	if test $found = "no" ; then
712496402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
712596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
712696402570Smrg		fi
712796402570Smrg
712896402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
712996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
713096402570Smrg		fi
713196402570Smrg
713296402570Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
713396402570Smrg
713496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
713596402570Smrg$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
71368abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
713796402570Smrg		if eval \${$cacheid+:} false; then :
713896402570Smrg  $as_echo_n "(cached) " >&6
713996402570Smrgelse
714096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
714196402570Smrg/* end confdefs.h.  */
714296402570Smrgint i;
714396402570Smrgint
714496402570Smrgmain ()
714596402570Smrg{
714696402570Smrg
714796402570Smrg  ;
714896402570Smrg  return 0;
714996402570Smrg}
715096402570Smrg_ACEOF
715196402570Smrgif ac_fn_c_try_link "$LINENO"; then :
715296402570Smrg  eval $cacheid=yes
715396402570Smrgelse
715496402570Smrg  eval $cacheid=no
715596402570Smrgfi
715696402570Smrgrm -f core conftest.err conftest.$ac_objext \
715796402570Smrg    conftest$ac_exeext conftest.$ac_ext
715896402570Smrgfi
715996402570Smrg
716096402570Smrg
716196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
716296402570Smrg
716396402570Smrg		eval supported=\$$cacheid
716496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
716596402570Smrg$as_echo "$supported" >&6; }
716696402570Smrg		if test "$supported" = "yes" ; then
716796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
716896402570Smrg			found="yes"
716996402570Smrg		fi
717096402570Smrg	fi
717196402570Smrg
717296402570Smrg
717396402570Smrg
717496402570Smrg
717596402570Smrg
717696402570Smrg
717796402570Smrg
717896402570Smrg
717996402570Smrg
718096402570Smrg
718196402570Smrg
718296402570Smrg
718396402570Smrg
718496402570Smrg
718596402570Smrg
718696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
718796402570Smrg
718896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
718996402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
719096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
719196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
719296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
719396402570Smrg  $as_echo_n "(cached) " >&6
719496402570Smrgelse
719596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
719696402570Smrg/* end confdefs.h.  */
719796402570Smrgint i;
719896402570Smrg_ACEOF
719996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
720096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
720196402570Smrgelse
720296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
720396402570Smrgfi
720496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
720596402570Smrgfi
720696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
720796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
720896402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
720996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
721096402570Smrgfi
721196402570Smrg
721296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
721396402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
721496402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
721596402570Smrg	fi
721696402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
721796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
721896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
721996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
722096402570Smrg  $as_echo_n "(cached) " >&6
722196402570Smrgelse
722296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
722396402570Smrg/* end confdefs.h.  */
722496402570Smrgint i;
722596402570Smrg_ACEOF
722696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
722796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
722896402570Smrgelse
722996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
723096402570Smrgfi
723196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
723296402570Smrgfi
723396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
723496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
723596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
723696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
723796402570Smrgfi
723896402570Smrg
723996402570Smrgfound="no"
724096402570Smrg
724196402570Smrg	if test $found = "no" ; then
724296402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
724396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
724496402570Smrg		fi
724596402570Smrg
724696402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
724796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
724896402570Smrg		fi
724996402570Smrg
725096402570Smrg		CFLAGS="$CFLAGS -Werror=init-self"
725196402570Smrg
725296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
725396402570Smrg$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
72548abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_init_self
725596402570Smrg		if eval \${$cacheid+:} false; then :
725696402570Smrg  $as_echo_n "(cached) " >&6
725796402570Smrgelse
725896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
725996402570Smrg/* end confdefs.h.  */
726096402570Smrgint i;
726196402570Smrgint
726296402570Smrgmain ()
726396402570Smrg{
726496402570Smrg
726596402570Smrg  ;
726696402570Smrg  return 0;
726796402570Smrg}
726896402570Smrg_ACEOF
726996402570Smrgif ac_fn_c_try_link "$LINENO"; then :
727096402570Smrg  eval $cacheid=yes
727196402570Smrgelse
727296402570Smrg  eval $cacheid=no
727396402570Smrgfi
727496402570Smrgrm -f core conftest.err conftest.$ac_objext \
727596402570Smrg    conftest$ac_exeext conftest.$ac_ext
727696402570Smrgfi
727796402570Smrg
727896402570Smrg
727996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
728096402570Smrg
728196402570Smrg		eval supported=\$$cacheid
728296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
728396402570Smrg$as_echo "$supported" >&6; }
728496402570Smrg		if test "$supported" = "yes" ; then
728596402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
728696402570Smrg			found="yes"
728796402570Smrg		fi
728896402570Smrg	fi
728996402570Smrg
729096402570Smrg
729196402570Smrg
729296402570Smrg
729396402570Smrg
729496402570Smrg
729596402570Smrg
729696402570Smrg
729796402570Smrg
729896402570Smrg
729996402570Smrg
730096402570Smrg
730196402570Smrg
730296402570Smrg
730396402570Smrg
730496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
730596402570Smrg
730696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
730796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
730896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
730996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
731096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
731196402570Smrg  $as_echo_n "(cached) " >&6
731296402570Smrgelse
731396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
731496402570Smrg/* end confdefs.h.  */
731596402570Smrgint i;
731696402570Smrg_ACEOF
731796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
731896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
731996402570Smrgelse
732096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
732196402570Smrgfi
732296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
732396402570Smrgfi
732496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
732596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
732696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
732796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
732896402570Smrgfi
732996402570Smrg
733096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
733196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
733296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
733396402570Smrg	fi
733496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
733596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
733696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
733796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
733896402570Smrg  $as_echo_n "(cached) " >&6
733996402570Smrgelse
734096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
734196402570Smrg/* end confdefs.h.  */
734296402570Smrgint i;
734396402570Smrg_ACEOF
734496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
734596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
734696402570Smrgelse
734796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
734896402570Smrgfi
734996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
735096402570Smrgfi
735196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
735296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
735396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
735496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
735596402570Smrgfi
735696402570Smrg
735796402570Smrgfound="no"
735896402570Smrg
735996402570Smrg	if test $found = "no" ; then
736096402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
736196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
736296402570Smrg		fi
736396402570Smrg
736496402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
736596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
736696402570Smrg		fi
736796402570Smrg
736896402570Smrg		CFLAGS="$CFLAGS -Werror=main"
736996402570Smrg
737096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
737196402570Smrg$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
73728abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_main
737396402570Smrg		if eval \${$cacheid+:} false; then :
737496402570Smrg  $as_echo_n "(cached) " >&6
737596402570Smrgelse
737696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
737796402570Smrg/* end confdefs.h.  */
737896402570Smrgint i;
737996402570Smrgint
738096402570Smrgmain ()
738196402570Smrg{
738296402570Smrg
738396402570Smrg  ;
738496402570Smrg  return 0;
738596402570Smrg}
738696402570Smrg_ACEOF
738796402570Smrgif ac_fn_c_try_link "$LINENO"; then :
738896402570Smrg  eval $cacheid=yes
738996402570Smrgelse
739096402570Smrg  eval $cacheid=no
739196402570Smrgfi
739296402570Smrgrm -f core conftest.err conftest.$ac_objext \
739396402570Smrg    conftest$ac_exeext conftest.$ac_ext
739496402570Smrgfi
739596402570Smrg
739696402570Smrg
739796402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
739896402570Smrg
739996402570Smrg		eval supported=\$$cacheid
740096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
740196402570Smrg$as_echo "$supported" >&6; }
740296402570Smrg		if test "$supported" = "yes" ; then
740396402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
740496402570Smrg			found="yes"
740596402570Smrg		fi
740696402570Smrg	fi
740796402570Smrg
740896402570Smrg
740996402570Smrg
741096402570Smrg
741196402570Smrg
741296402570Smrg
741396402570Smrg
741496402570Smrg
741596402570Smrg
741696402570Smrg
741796402570Smrg
741896402570Smrg
741996402570Smrg
742096402570Smrg
742196402570Smrg
742296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
742396402570Smrg
742496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
742596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
742696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
742796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
742896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
742996402570Smrg  $as_echo_n "(cached) " >&6
743096402570Smrgelse
743196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
743296402570Smrg/* end confdefs.h.  */
743396402570Smrgint i;
743496402570Smrg_ACEOF
743596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
743696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
743796402570Smrgelse
743896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
743996402570Smrgfi
744096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
744196402570Smrgfi
744296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
744396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
744496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
744596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
744696402570Smrgfi
744796402570Smrg
744896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
744996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
745096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
745196402570Smrg	fi
745296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
745396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
745496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
745596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
745696402570Smrg  $as_echo_n "(cached) " >&6
745796402570Smrgelse
745896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
745996402570Smrg/* end confdefs.h.  */
746096402570Smrgint i;
746196402570Smrg_ACEOF
746296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
746396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
746496402570Smrgelse
746596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
746696402570Smrgfi
746796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
746896402570Smrgfi
746996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
747096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
747196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
747296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
747396402570Smrgfi
747496402570Smrg
747596402570Smrgfound="no"
747696402570Smrg
747796402570Smrg	if test $found = "no" ; then
747896402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
747996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
748096402570Smrg		fi
748196402570Smrg
748296402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
748396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
748496402570Smrg		fi
748596402570Smrg
748696402570Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
748796402570Smrg
748896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
748996402570Smrg$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
74908abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
749196402570Smrg		if eval \${$cacheid+:} false; then :
749296402570Smrg  $as_echo_n "(cached) " >&6
749396402570Smrgelse
749496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
749596402570Smrg/* end confdefs.h.  */
749696402570Smrgint i;
749796402570Smrgint
749896402570Smrgmain ()
749996402570Smrg{
750096402570Smrg
750196402570Smrg  ;
750296402570Smrg  return 0;
750396402570Smrg}
750496402570Smrg_ACEOF
750596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
750696402570Smrg  eval $cacheid=yes
750796402570Smrgelse
750896402570Smrg  eval $cacheid=no
750996402570Smrgfi
751096402570Smrgrm -f core conftest.err conftest.$ac_objext \
751196402570Smrg    conftest$ac_exeext conftest.$ac_ext
751296402570Smrgfi
751396402570Smrg
751496402570Smrg
751596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
751696402570Smrg
751796402570Smrg		eval supported=\$$cacheid
751896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
751996402570Smrg$as_echo "$supported" >&6; }
752096402570Smrg		if test "$supported" = "yes" ; then
752196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
752296402570Smrg			found="yes"
752396402570Smrg		fi
752496402570Smrg	fi
752596402570Smrg
752696402570Smrg
752796402570Smrg
752896402570Smrg
752996402570Smrg
753096402570Smrg
753196402570Smrg
753296402570Smrg
753396402570Smrg
753496402570Smrg
753596402570Smrg
753696402570Smrg
753796402570Smrg
753896402570Smrg
753996402570Smrg
754096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
754196402570Smrg
754296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
754396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
754496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
754596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
754696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
754796402570Smrg  $as_echo_n "(cached) " >&6
754896402570Smrgelse
754996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
755096402570Smrg/* end confdefs.h.  */
755196402570Smrgint i;
755296402570Smrg_ACEOF
755396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
755496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
755596402570Smrgelse
755696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
755796402570Smrgfi
755896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
755996402570Smrgfi
756096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
756196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
756296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
756396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
756496402570Smrgfi
756596402570Smrg
756696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
756796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
756896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
756996402570Smrg	fi
757096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
757196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
757296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
757396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
757496402570Smrg  $as_echo_n "(cached) " >&6
757596402570Smrgelse
757696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
757796402570Smrg/* end confdefs.h.  */
757896402570Smrgint i;
757996402570Smrg_ACEOF
758096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
758196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
758296402570Smrgelse
758396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
758496402570Smrgfi
758596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
758696402570Smrgfi
758796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
758896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
758996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
759096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
759196402570Smrgfi
759296402570Smrg
759396402570Smrgfound="no"
759496402570Smrg
759596402570Smrg	if test $found = "no" ; then
759696402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
759796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
759896402570Smrg		fi
759996402570Smrg
760096402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
760196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
760296402570Smrg		fi
760396402570Smrg
760496402570Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
760596402570Smrg
760696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
760796402570Smrg$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
76088abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
760996402570Smrg		if eval \${$cacheid+:} false; then :
761096402570Smrg  $as_echo_n "(cached) " >&6
761196402570Smrgelse
761296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
761396402570Smrg/* end confdefs.h.  */
761496402570Smrgint i;
761596402570Smrgint
761696402570Smrgmain ()
761796402570Smrg{
761896402570Smrg
761996402570Smrg  ;
762096402570Smrg  return 0;
762196402570Smrg}
762296402570Smrg_ACEOF
762396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
762496402570Smrg  eval $cacheid=yes
762596402570Smrgelse
762696402570Smrg  eval $cacheid=no
762796402570Smrgfi
762896402570Smrgrm -f core conftest.err conftest.$ac_objext \
762996402570Smrg    conftest$ac_exeext conftest.$ac_ext
763096402570Smrgfi
763196402570Smrg
763296402570Smrg
763396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
763496402570Smrg
763596402570Smrg		eval supported=\$$cacheid
763696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
763796402570Smrg$as_echo "$supported" >&6; }
763896402570Smrg		if test "$supported" = "yes" ; then
763996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
764096402570Smrg			found="yes"
764196402570Smrg		fi
764296402570Smrg	fi
764396402570Smrg
764496402570Smrg
764596402570Smrg
764696402570Smrg
764796402570Smrg
764896402570Smrg
764996402570Smrg
765096402570Smrg
765196402570Smrg
765296402570Smrg
765396402570Smrg
765496402570Smrg
765596402570Smrg
765696402570Smrg
765796402570Smrg
765896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
765996402570Smrg
766096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
766196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
766296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
766396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
766496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
766596402570Smrg  $as_echo_n "(cached) " >&6
766696402570Smrgelse
766796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
766896402570Smrg/* end confdefs.h.  */
766996402570Smrgint i;
767096402570Smrg_ACEOF
767196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
767296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
767396402570Smrgelse
767496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
767596402570Smrgfi
767696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
767796402570Smrgfi
767896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
767996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
768096402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
768196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
768296402570Smrgfi
768396402570Smrg
768496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
768596402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
768696402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
768796402570Smrg	fi
768896402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
768996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
769096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
769196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
769296402570Smrg  $as_echo_n "(cached) " >&6
769396402570Smrgelse
769496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
769596402570Smrg/* end confdefs.h.  */
769696402570Smrgint i;
769796402570Smrg_ACEOF
769896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
769996402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
770096402570Smrgelse
770196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
770296402570Smrgfi
770396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
770496402570Smrgfi
770596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
770696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
770796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
770896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
770996402570Smrgfi
771096402570Smrg
771196402570Smrgfound="no"
771296402570Smrg
771396402570Smrg	if test $found = "no" ; then
771496402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
771596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
771696402570Smrg		fi
771796402570Smrg
771896402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
771996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
772096402570Smrg		fi
772196402570Smrg
772296402570Smrg		CFLAGS="$CFLAGS -Werror=return-type"
772396402570Smrg
772496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
772596402570Smrg$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
77268abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_return_type
772796402570Smrg		if eval \${$cacheid+:} false; then :
772896402570Smrg  $as_echo_n "(cached) " >&6
772996402570Smrgelse
773096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
773196402570Smrg/* end confdefs.h.  */
773296402570Smrgint i;
773396402570Smrgint
773496402570Smrgmain ()
773596402570Smrg{
773696402570Smrg
773796402570Smrg  ;
773896402570Smrg  return 0;
773996402570Smrg}
774096402570Smrg_ACEOF
774196402570Smrgif ac_fn_c_try_link "$LINENO"; then :
774296402570Smrg  eval $cacheid=yes
774396402570Smrgelse
774496402570Smrg  eval $cacheid=no
774596402570Smrgfi
774696402570Smrgrm -f core conftest.err conftest.$ac_objext \
774796402570Smrg    conftest$ac_exeext conftest.$ac_ext
774896402570Smrgfi
774996402570Smrg
775096402570Smrg
775196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
775296402570Smrg
775396402570Smrg		eval supported=\$$cacheid
775496402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
775596402570Smrg$as_echo "$supported" >&6; }
775696402570Smrg		if test "$supported" = "yes" ; then
775796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
775896402570Smrg			found="yes"
775996402570Smrg		fi
776096402570Smrg	fi
776196402570Smrg
776296402570Smrg	if test $found = "no" ; then
776396402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
776496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
776596402570Smrg		fi
776696402570Smrg
776796402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
776896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
776996402570Smrg		fi
777096402570Smrg
777196402570Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
777296402570Smrg
777396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
777496402570Smrg$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
77758abc0ccfSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
777696402570Smrg		if eval \${$cacheid+:} false; then :
777796402570Smrg  $as_echo_n "(cached) " >&6
777896402570Smrgelse
777996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
778096402570Smrg/* end confdefs.h.  */
778196402570Smrgint i;
778296402570Smrgint
778396402570Smrgmain ()
778496402570Smrg{
778596402570Smrg
778696402570Smrg  ;
778796402570Smrg  return 0;
778896402570Smrg}
778996402570Smrg_ACEOF
779096402570Smrgif ac_fn_c_try_link "$LINENO"; then :
779196402570Smrg  eval $cacheid=yes
779296402570Smrgelse
779396402570Smrg  eval $cacheid=no
779496402570Smrgfi
779596402570Smrgrm -f core conftest.err conftest.$ac_objext \
779696402570Smrg    conftest$ac_exeext conftest.$ac_ext
779796402570Smrgfi
779896402570Smrg
779996402570Smrg
780096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
780196402570Smrg
780296402570Smrg		eval supported=\$$cacheid
780396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
780496402570Smrg$as_echo "$supported" >&6; }
780596402570Smrg		if test "$supported" = "yes" ; then
780696402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
780796402570Smrg			found="yes"
780896402570Smrg		fi
780996402570Smrg	fi
781096402570Smrg
781196402570Smrg
781296402570Smrg
781396402570Smrg
781496402570Smrg
781596402570Smrg
781696402570Smrg
781796402570Smrg
781896402570Smrg
781996402570Smrg
782096402570Smrg
782196402570Smrg
782296402570Smrg
782396402570Smrg
782496402570Smrg
782596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
782696402570Smrg
782796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
782896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
782996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
783096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
783196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
783296402570Smrg  $as_echo_n "(cached) " >&6
783396402570Smrgelse
783496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783596402570Smrg/* end confdefs.h.  */
783696402570Smrgint i;
783796402570Smrg_ACEOF
783896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
783996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
784096402570Smrgelse
784196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
784296402570Smrgfi
784396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
784496402570Smrgfi
784596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
784696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
784796402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
784896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
784996402570Smrgfi
785096402570Smrg
785196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
785296402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
785396402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
785496402570Smrg	fi
785596402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
785696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
785796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
785896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
785996402570Smrg  $as_echo_n "(cached) " >&6
786096402570Smrgelse
786196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
786296402570Smrg/* end confdefs.h.  */
786396402570Smrgint i;
786496402570Smrg_ACEOF
786596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
786696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
786796402570Smrgelse
786896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
786996402570Smrgfi
787096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
787196402570Smrgfi
787296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
787396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
787496402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
787596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
787696402570Smrgfi
787796402570Smrg
787896402570Smrgfound="no"
787996402570Smrg
788096402570Smrg	if test $found = "no" ; then
788196402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
788296402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
788396402570Smrg		fi
788496402570Smrg
788596402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
788696402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
788796402570Smrg		fi
788896402570Smrg
788996402570Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
789096402570Smrg
789196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
789296402570Smrg$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
78938abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
789496402570Smrg		if eval \${$cacheid+:} false; then :
789596402570Smrg  $as_echo_n "(cached) " >&6
789696402570Smrgelse
789796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
789896402570Smrg/* end confdefs.h.  */
789996402570Smrgint i;
790096402570Smrgint
790196402570Smrgmain ()
790296402570Smrg{
790396402570Smrg
790496402570Smrg  ;
790596402570Smrg  return 0;
790696402570Smrg}
790796402570Smrg_ACEOF
790896402570Smrgif ac_fn_c_try_link "$LINENO"; then :
790996402570Smrg  eval $cacheid=yes
791096402570Smrgelse
791196402570Smrg  eval $cacheid=no
791296402570Smrgfi
791396402570Smrgrm -f core conftest.err conftest.$ac_objext \
791496402570Smrg    conftest$ac_exeext conftest.$ac_ext
791596402570Smrgfi
791696402570Smrg
791796402570Smrg
791896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
791996402570Smrg
792096402570Smrg		eval supported=\$$cacheid
792196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
792296402570Smrg$as_echo "$supported" >&6; }
792396402570Smrg		if test "$supported" = "yes" ; then
792496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
792596402570Smrg			found="yes"
792696402570Smrg		fi
792796402570Smrg	fi
792896402570Smrg
792996402570Smrg
793096402570Smrg
793196402570Smrg
793296402570Smrg
793396402570Smrg
793496402570Smrg
793596402570Smrg
793696402570Smrg
793796402570Smrg
793896402570Smrg
793996402570Smrg
794096402570Smrg
794196402570Smrg
794296402570Smrg
794396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
794496402570Smrg
794596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
794696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
794796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
794896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
794996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
795096402570Smrg  $as_echo_n "(cached) " >&6
795196402570Smrgelse
795296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
795396402570Smrg/* end confdefs.h.  */
795496402570Smrgint i;
795596402570Smrg_ACEOF
795696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
795796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
795896402570Smrgelse
795996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
796096402570Smrgfi
796196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
796296402570Smrgfi
796396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
796496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
796596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
796696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
796796402570Smrgfi
796896402570Smrg
796996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
797096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
797196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
797296402570Smrg	fi
797396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
797496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
797596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
797696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
797796402570Smrg  $as_echo_n "(cached) " >&6
797896402570Smrgelse
797996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
798096402570Smrg/* end confdefs.h.  */
798196402570Smrgint i;
798296402570Smrg_ACEOF
798396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
798496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
798596402570Smrgelse
798696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
798796402570Smrgfi
798896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
798996402570Smrgfi
799096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
799196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
799296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
799396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
799496402570Smrgfi
799596402570Smrg
799696402570Smrgfound="no"
799796402570Smrg
799896402570Smrg	if test $found = "no" ; then
799996402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
800096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
800196402570Smrg		fi
800296402570Smrg
800396402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
800496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
800596402570Smrg		fi
800696402570Smrg
800796402570Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
800896402570Smrg
800996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
801096402570Smrg$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
80118abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
801296402570Smrg		if eval \${$cacheid+:} false; then :
801396402570Smrg  $as_echo_n "(cached) " >&6
801496402570Smrgelse
801596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
801696402570Smrg/* end confdefs.h.  */
801796402570Smrgint i;
801896402570Smrgint
801996402570Smrgmain ()
802096402570Smrg{
802196402570Smrg
802296402570Smrg  ;
802396402570Smrg  return 0;
802496402570Smrg}
802596402570Smrg_ACEOF
802696402570Smrgif ac_fn_c_try_link "$LINENO"; then :
802796402570Smrg  eval $cacheid=yes
802896402570Smrgelse
802996402570Smrg  eval $cacheid=no
803096402570Smrgfi
803196402570Smrgrm -f core conftest.err conftest.$ac_objext \
803296402570Smrg    conftest$ac_exeext conftest.$ac_ext
803396402570Smrgfi
803496402570Smrg
803596402570Smrg
803696402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
803796402570Smrg
803896402570Smrg		eval supported=\$$cacheid
803996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
804096402570Smrg$as_echo "$supported" >&6; }
804196402570Smrg		if test "$supported" = "yes" ; then
804296402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
804396402570Smrg			found="yes"
804496402570Smrg		fi
804596402570Smrg	fi
804696402570Smrg
804796402570Smrg
804896402570Smrg
804996402570Smrg
805096402570Smrg
805196402570Smrg
805296402570Smrg
805396402570Smrg
805496402570Smrg
805596402570Smrg
805696402570Smrg
805796402570Smrg
805896402570Smrg
805996402570Smrg
806096402570Smrg
806196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
806296402570Smrg
806396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
806496402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
806596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
806696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
806796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
806896402570Smrg  $as_echo_n "(cached) " >&6
806996402570Smrgelse
807096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
807196402570Smrg/* end confdefs.h.  */
807296402570Smrgint i;
807396402570Smrg_ACEOF
807496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
807596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
807696402570Smrgelse
807796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
807896402570Smrgfi
807996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
808096402570Smrgfi
808196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
808296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
808396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
808496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
808596402570Smrgfi
808696402570Smrg
808796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
808896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
808996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
809096402570Smrg	fi
809196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
809296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
809396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
809496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
809596402570Smrg  $as_echo_n "(cached) " >&6
809696402570Smrgelse
809796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
809896402570Smrg/* end confdefs.h.  */
809996402570Smrgint i;
810096402570Smrg_ACEOF
810196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
810296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
810396402570Smrgelse
810496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
810596402570Smrgfi
810696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
810796402570Smrgfi
810896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
810996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
811096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
811196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
811296402570Smrgfi
811396402570Smrg
811496402570Smrgfound="no"
811596402570Smrg
811696402570Smrg	if test $found = "no" ; then
811796402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
811896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
811996402570Smrg		fi
812096402570Smrg
812196402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
812296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
812396402570Smrg		fi
812496402570Smrg
812596402570Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
812696402570Smrg
812796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
812896402570Smrg$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
81298abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
813096402570Smrg		if eval \${$cacheid+:} false; then :
813196402570Smrg  $as_echo_n "(cached) " >&6
813296402570Smrgelse
813396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
813496402570Smrg/* end confdefs.h.  */
813596402570Smrgint i;
813696402570Smrgint
813796402570Smrgmain ()
813896402570Smrg{
813996402570Smrg
814096402570Smrg  ;
814196402570Smrg  return 0;
814296402570Smrg}
814396402570Smrg_ACEOF
814496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
814596402570Smrg  eval $cacheid=yes
814696402570Smrgelse
814796402570Smrg  eval $cacheid=no
814896402570Smrgfi
814996402570Smrgrm -f core conftest.err conftest.$ac_objext \
815096402570Smrg    conftest$ac_exeext conftest.$ac_ext
815196402570Smrgfi
815296402570Smrg
815396402570Smrg
815496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
815596402570Smrg
815696402570Smrg		eval supported=\$$cacheid
815796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
815896402570Smrg$as_echo "$supported" >&6; }
815996402570Smrg		if test "$supported" = "yes" ; then
816096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
816196402570Smrg			found="yes"
816296402570Smrg		fi
816396402570Smrg	fi
816496402570Smrg
816596402570Smrg
816696402570Smrg
816796402570Smrg
816896402570Smrg
816996402570Smrg
817096402570Smrg
817196402570Smrg
817296402570Smrg
817396402570Smrg
817496402570Smrg
817596402570Smrg
817696402570Smrg
817796402570Smrg
817896402570Smrg
817996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
818096402570Smrg
818196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
818296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
818396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
818496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
818596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
818696402570Smrg  $as_echo_n "(cached) " >&6
818796402570Smrgelse
818896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
818996402570Smrg/* end confdefs.h.  */
819096402570Smrgint i;
819196402570Smrg_ACEOF
819296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
819396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
819496402570Smrgelse
819596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
819696402570Smrgfi
819796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
819896402570Smrgfi
819996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
820096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
820196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
820296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
820396402570Smrgfi
820496402570Smrg
820596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
820696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
820796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
820896402570Smrg	fi
820996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
821096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
821196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
821296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
821396402570Smrg  $as_echo_n "(cached) " >&6
821496402570Smrgelse
821596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
821696402570Smrg/* end confdefs.h.  */
821796402570Smrgint i;
821896402570Smrg_ACEOF
821996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
822096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
822196402570Smrgelse
822296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
822396402570Smrgfi
822496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
822596402570Smrgfi
822696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
822796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
822896402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
822996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
823096402570Smrgfi
823196402570Smrg
823296402570Smrgfound="no"
823396402570Smrg
823496402570Smrg	if test $found = "no" ; then
823596402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
823696402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
823796402570Smrg		fi
823896402570Smrg
823996402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
824096402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
824196402570Smrg		fi
824296402570Smrg
824396402570Smrg		CFLAGS="$CFLAGS -Werror=address"
824496402570Smrg
824596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
824696402570Smrg$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
82478abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_address
824896402570Smrg		if eval \${$cacheid+:} false; then :
824996402570Smrg  $as_echo_n "(cached) " >&6
825096402570Smrgelse
825196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
825296402570Smrg/* end confdefs.h.  */
825396402570Smrgint i;
825496402570Smrgint
825596402570Smrgmain ()
825696402570Smrg{
825796402570Smrg
825896402570Smrg  ;
825996402570Smrg  return 0;
826096402570Smrg}
826196402570Smrg_ACEOF
826296402570Smrgif ac_fn_c_try_link "$LINENO"; then :
826396402570Smrg  eval $cacheid=yes
826496402570Smrgelse
826596402570Smrg  eval $cacheid=no
826696402570Smrgfi
826796402570Smrgrm -f core conftest.err conftest.$ac_objext \
826896402570Smrg    conftest$ac_exeext conftest.$ac_ext
826996402570Smrgfi
827096402570Smrg
827196402570Smrg
827296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
827396402570Smrg
827496402570Smrg		eval supported=\$$cacheid
827596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
827696402570Smrg$as_echo "$supported" >&6; }
827796402570Smrg		if test "$supported" = "yes" ; then
827896402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
827996402570Smrg			found="yes"
828096402570Smrg		fi
828196402570Smrg	fi
828296402570Smrg
828396402570Smrg
828496402570Smrg
828596402570Smrg
828696402570Smrg
828796402570Smrg
828896402570Smrg
828996402570Smrg
829096402570Smrg
829196402570Smrg
829296402570Smrg
829396402570Smrg
829496402570Smrg
829596402570Smrg
829696402570Smrg
829796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
829896402570Smrg
829996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
830096402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
830196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
830296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
830396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
830496402570Smrg  $as_echo_n "(cached) " >&6
830596402570Smrgelse
830696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
830796402570Smrg/* end confdefs.h.  */
830896402570Smrgint i;
830996402570Smrg_ACEOF
831096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
831196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
831296402570Smrgelse
831396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
831496402570Smrgfi
831596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
831696402570Smrgfi
831796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
831896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
831996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
832096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
832196402570Smrgfi
832296402570Smrg
832396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
832496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
832596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
832696402570Smrg	fi
832796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
832896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
832996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
833096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
833196402570Smrg  $as_echo_n "(cached) " >&6
833296402570Smrgelse
833396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
833496402570Smrg/* end confdefs.h.  */
833596402570Smrgint i;
833696402570Smrg_ACEOF
833796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
833896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
833996402570Smrgelse
834096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
834196402570Smrgfi
834296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
834396402570Smrgfi
834496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
834596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
834696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
834796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
834896402570Smrgfi
834996402570Smrg
835096402570Smrgfound="no"
835196402570Smrg
835296402570Smrg	if test $found = "no" ; then
835396402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
835496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
835596402570Smrg		fi
835696402570Smrg
835796402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
835896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
835996402570Smrg		fi
836096402570Smrg
836196402570Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
836296402570Smrg
836396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
836496402570Smrg$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
83658abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
836696402570Smrg		if eval \${$cacheid+:} false; then :
836796402570Smrg  $as_echo_n "(cached) " >&6
836896402570Smrgelse
836996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
837096402570Smrg/* end confdefs.h.  */
837196402570Smrgint i;
837296402570Smrgint
837396402570Smrgmain ()
837496402570Smrg{
837596402570Smrg
837696402570Smrg  ;
837796402570Smrg  return 0;
837896402570Smrg}
837996402570Smrg_ACEOF
838096402570Smrgif ac_fn_c_try_link "$LINENO"; then :
838196402570Smrg  eval $cacheid=yes
838296402570Smrgelse
838396402570Smrg  eval $cacheid=no
838496402570Smrgfi
838596402570Smrgrm -f core conftest.err conftest.$ac_objext \
838696402570Smrg    conftest$ac_exeext conftest.$ac_ext
838796402570Smrgfi
838896402570Smrg
838996402570Smrg
839096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
839196402570Smrg
839296402570Smrg		eval supported=\$$cacheid
839396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
839496402570Smrg$as_echo "$supported" >&6; }
839596402570Smrg		if test "$supported" = "yes" ; then
839696402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
839796402570Smrg			found="yes"
839896402570Smrg		fi
839996402570Smrg	fi
840096402570Smrg
840196402570Smrg	if test $found = "no" ; then
840296402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
840396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
840496402570Smrg		fi
840596402570Smrg
840696402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
840796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
840896402570Smrg		fi
840996402570Smrg
841096402570Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
841196402570Smrg
841296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
841396402570Smrg$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
84148abc0ccfSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
841596402570Smrg		if eval \${$cacheid+:} false; then :
841696402570Smrg  $as_echo_n "(cached) " >&6
841796402570Smrgelse
841896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
841996402570Smrg/* end confdefs.h.  */
842096402570Smrgint i;
842196402570Smrgint
842296402570Smrgmain ()
842396402570Smrg{
842496402570Smrg
842596402570Smrg  ;
842696402570Smrg  return 0;
842796402570Smrg}
842896402570Smrg_ACEOF
842996402570Smrgif ac_fn_c_try_link "$LINENO"; then :
843096402570Smrg  eval $cacheid=yes
843196402570Smrgelse
843296402570Smrg  eval $cacheid=no
843396402570Smrgfi
843496402570Smrgrm -f core conftest.err conftest.$ac_objext \
843596402570Smrg    conftest$ac_exeext conftest.$ac_ext
843696402570Smrgfi
843796402570Smrg
843896402570Smrg
843996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
844096402570Smrg
844196402570Smrg		eval supported=\$$cacheid
844296402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
844396402570Smrg$as_echo "$supported" >&6; }
844496402570Smrg		if test "$supported" = "yes" ; then
844596402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
844696402570Smrg			found="yes"
844796402570Smrg		fi
844896402570Smrg	fi
844996402570Smrg
845096402570Smrg
845196402570Smrg
845296402570Smrg
845396402570Smrg
845496402570Smrg
845596402570Smrg
845696402570Smrg
845796402570Smrg
845896402570Smrg
845996402570Smrg
846096402570Smrg
846196402570Smrg
846296402570Smrg
846396402570Smrg
846496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
846596402570Smrg
846696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
846796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
846896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
846996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
847096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
847196402570Smrg  $as_echo_n "(cached) " >&6
847296402570Smrgelse
847396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
847496402570Smrg/* end confdefs.h.  */
847596402570Smrgint i;
847696402570Smrg_ACEOF
847796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
847896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
847996402570Smrgelse
848096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
848196402570Smrgfi
848296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
848396402570Smrgfi
848496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
848596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
848696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
848796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
848896402570Smrgfi
848996402570Smrg
849096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
849196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
849296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
849396402570Smrg	fi
849496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
849596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
849696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
849796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
849896402570Smrg  $as_echo_n "(cached) " >&6
849996402570Smrgelse
850096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
850196402570Smrg/* end confdefs.h.  */
850296402570Smrgint i;
850396402570Smrg_ACEOF
850496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
850596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
850696402570Smrgelse
850796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
850896402570Smrgfi
850996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
851096402570Smrgfi
851196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
851296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
851396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
851496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
851596402570Smrgfi
851696402570Smrg
851796402570Smrgfound="no"
851896402570Smrg
851996402570Smrg	if test $found = "no" ; then
852096402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
852196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
852296402570Smrg		fi
852396402570Smrg
852496402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
852596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
852696402570Smrg		fi
852796402570Smrg
852896402570Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
852996402570Smrg
853096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
853196402570Smrg$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
85328abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
853396402570Smrg		if eval \${$cacheid+:} false; then :
853496402570Smrg  $as_echo_n "(cached) " >&6
853596402570Smrgelse
853696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
853796402570Smrg/* end confdefs.h.  */
853896402570Smrgint i;
853996402570Smrgint
854096402570Smrgmain ()
854196402570Smrg{
854296402570Smrg
854396402570Smrg  ;
854496402570Smrg  return 0;
854596402570Smrg}
854696402570Smrg_ACEOF
854796402570Smrgif ac_fn_c_try_link "$LINENO"; then :
854896402570Smrg  eval $cacheid=yes
854996402570Smrgelse
855096402570Smrg  eval $cacheid=no
855196402570Smrgfi
855296402570Smrgrm -f core conftest.err conftest.$ac_objext \
855396402570Smrg    conftest$ac_exeext conftest.$ac_ext
855496402570Smrgfi
855596402570Smrg
855696402570Smrg
855796402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
855896402570Smrg
855996402570Smrg		eval supported=\$$cacheid
856096402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
856196402570Smrg$as_echo "$supported" >&6; }
856296402570Smrg		if test "$supported" = "yes" ; then
856396402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
856496402570Smrg			found="yes"
856596402570Smrg		fi
856696402570Smrg	fi
856796402570Smrg
856896402570Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
856996402570Smrgelse
857096402570Smrg{ $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
857196402570Smrg$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;}
857296402570Smrg
857396402570Smrg
857496402570Smrg
857596402570Smrg
857696402570Smrg
857796402570Smrg
857896402570Smrg
857996402570Smrg
858096402570Smrg
858196402570Smrg
858296402570Smrg
858396402570Smrg
858496402570Smrg
858596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
858696402570Smrg
858796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
858896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
858996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
859096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
859196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
859296402570Smrg  $as_echo_n "(cached) " >&6
859396402570Smrgelse
859496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
859596402570Smrg/* end confdefs.h.  */
859696402570Smrgint i;
859796402570Smrg_ACEOF
859896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
859996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
860096402570Smrgelse
860196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
860296402570Smrgfi
860396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
860496402570Smrgfi
860596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
860696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
860796402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
860896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
860996402570Smrgfi
861096402570Smrg
861196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
861296402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
861396402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
861496402570Smrg	fi
861596402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
861696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
861796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
861896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
861996402570Smrg  $as_echo_n "(cached) " >&6
862096402570Smrgelse
862196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
862296402570Smrg/* end confdefs.h.  */
862396402570Smrgint i;
862496402570Smrg_ACEOF
862596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
862696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
862796402570Smrgelse
862896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
862996402570Smrgfi
863096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
863196402570Smrgfi
863296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
863396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
863496402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
863596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
863696402570Smrgfi
863796402570Smrg
863896402570Smrgfound="no"
863996402570Smrg
864096402570Smrg	if test $found = "no" ; then
864196402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
864296402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
864396402570Smrg		fi
864496402570Smrg
864596402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
864696402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
864796402570Smrg		fi
864896402570Smrg
864996402570Smrg		CFLAGS="$CFLAGS -Wimplicit"
865096402570Smrg
865196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
865296402570Smrg$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
865396402570Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
865496402570Smrg		if eval \${$cacheid+:} false; then :
865596402570Smrg  $as_echo_n "(cached) " >&6
865696402570Smrgelse
865796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
865896402570Smrg/* end confdefs.h.  */
865996402570Smrgint i;
866096402570Smrgint
866196402570Smrgmain ()
866296402570Smrg{
866396402570Smrg
866496402570Smrg  ;
866596402570Smrg  return 0;
866696402570Smrg}
866796402570Smrg_ACEOF
866896402570Smrgif ac_fn_c_try_link "$LINENO"; then :
866996402570Smrg  eval $cacheid=yes
867096402570Smrgelse
867196402570Smrg  eval $cacheid=no
867296402570Smrgfi
867396402570Smrgrm -f core conftest.err conftest.$ac_objext \
867496402570Smrg    conftest$ac_exeext conftest.$ac_ext
867596402570Smrgfi
867696402570Smrg
867796402570Smrg
867896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
867996402570Smrg
868096402570Smrg		eval supported=\$$cacheid
868196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
868296402570Smrg$as_echo "$supported" >&6; }
868396402570Smrg		if test "$supported" = "yes" ; then
868496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
868596402570Smrg			found="yes"
868696402570Smrg		fi
868796402570Smrg	fi
868896402570Smrg
868996402570Smrg
869096402570Smrg
869196402570Smrg
869296402570Smrg
869396402570Smrg
869496402570Smrg
869596402570Smrg
869696402570Smrg
869796402570Smrg
869896402570Smrg
869996402570Smrg
870096402570Smrg
870196402570Smrg
870296402570Smrg
870396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
870496402570Smrg
870596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
870696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
870796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
870896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
870996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
871096402570Smrg  $as_echo_n "(cached) " >&6
871196402570Smrgelse
871296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
871396402570Smrg/* end confdefs.h.  */
871496402570Smrgint i;
871596402570Smrg_ACEOF
871696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
871796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
871896402570Smrgelse
871996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
872096402570Smrgfi
872196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
872296402570Smrgfi
872396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
872496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
872596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
872696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
872796402570Smrgfi
872896402570Smrg
872996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
873096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
873196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
873296402570Smrg	fi
873396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
873496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
873596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
873696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
873796402570Smrg  $as_echo_n "(cached) " >&6
873896402570Smrgelse
873996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
874096402570Smrg/* end confdefs.h.  */
874196402570Smrgint i;
874296402570Smrg_ACEOF
874396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
874496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
874596402570Smrgelse
874696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
874796402570Smrgfi
874896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
874996402570Smrgfi
875096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
875196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
875296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
875396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
875496402570Smrgfi
875596402570Smrg
875696402570Smrgfound="no"
875796402570Smrg
875896402570Smrg	if test $found = "no" ; then
875996402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
876096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
876196402570Smrg		fi
876296402570Smrg
876396402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
876496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
876596402570Smrg		fi
876696402570Smrg
876796402570Smrg		CFLAGS="$CFLAGS -Wnonnull"
876896402570Smrg
876996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
877096402570Smrg$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
877196402570Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
877296402570Smrg		if eval \${$cacheid+:} false; then :
877396402570Smrg  $as_echo_n "(cached) " >&6
877496402570Smrgelse
877596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
877696402570Smrg/* end confdefs.h.  */
877796402570Smrgint i;
877896402570Smrgint
877996402570Smrgmain ()
878096402570Smrg{
878196402570Smrg
878296402570Smrg  ;
878396402570Smrg  return 0;
878496402570Smrg}
878596402570Smrg_ACEOF
878696402570Smrgif ac_fn_c_try_link "$LINENO"; then :
878796402570Smrg  eval $cacheid=yes
878896402570Smrgelse
878996402570Smrg  eval $cacheid=no
879096402570Smrgfi
879196402570Smrgrm -f core conftest.err conftest.$ac_objext \
879296402570Smrg    conftest$ac_exeext conftest.$ac_ext
879396402570Smrgfi
879496402570Smrg
879596402570Smrg
879696402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
879796402570Smrg
879896402570Smrg		eval supported=\$$cacheid
879996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
880096402570Smrg$as_echo "$supported" >&6; }
880196402570Smrg		if test "$supported" = "yes" ; then
880296402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
880396402570Smrg			found="yes"
880496402570Smrg		fi
880596402570Smrg	fi
880696402570Smrg
880796402570Smrg
880896402570Smrg
880996402570Smrg
881096402570Smrg
881196402570Smrg
881296402570Smrg
881396402570Smrg
881496402570Smrg
881596402570Smrg
881696402570Smrg
881796402570Smrg
881896402570Smrg
881996402570Smrg
882096402570Smrg
882196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
882296402570Smrg
882396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
882496402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
882596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
882696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
882796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
882896402570Smrg  $as_echo_n "(cached) " >&6
882996402570Smrgelse
883096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
883196402570Smrg/* end confdefs.h.  */
883296402570Smrgint i;
883396402570Smrg_ACEOF
883496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
883596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
883696402570Smrgelse
883796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
883896402570Smrgfi
883996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
884096402570Smrgfi
884196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
884296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
884396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
884496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
884596402570Smrgfi
884696402570Smrg
884796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
884896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
884996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
885096402570Smrg	fi
885196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
885296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
885396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
885496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
885596402570Smrg  $as_echo_n "(cached) " >&6
885696402570Smrgelse
885796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
885896402570Smrg/* end confdefs.h.  */
885996402570Smrgint i;
886096402570Smrg_ACEOF
886196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
886296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
886396402570Smrgelse
886496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
886596402570Smrgfi
886696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
886796402570Smrgfi
886896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
886996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
887096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
887196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
887296402570Smrgfi
887396402570Smrg
887496402570Smrgfound="no"
887596402570Smrg
887696402570Smrg	if test $found = "no" ; then
887796402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
887896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
887996402570Smrg		fi
888096402570Smrg
888196402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
888296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
888396402570Smrg		fi
888496402570Smrg
888596402570Smrg		CFLAGS="$CFLAGS -Winit-self"
888696402570Smrg
888796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
888896402570Smrg$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
888996402570Smrg		cacheid=xorg_cv_cc_flag__Winit_self
889096402570Smrg		if eval \${$cacheid+:} false; then :
889196402570Smrg  $as_echo_n "(cached) " >&6
889296402570Smrgelse
889396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
889496402570Smrg/* end confdefs.h.  */
889596402570Smrgint i;
889696402570Smrgint
889796402570Smrgmain ()
889896402570Smrg{
889996402570Smrg
890096402570Smrg  ;
890196402570Smrg  return 0;
890296402570Smrg}
890396402570Smrg_ACEOF
890496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
890596402570Smrg  eval $cacheid=yes
890696402570Smrgelse
890796402570Smrg  eval $cacheid=no
890896402570Smrgfi
890996402570Smrgrm -f core conftest.err conftest.$ac_objext \
891096402570Smrg    conftest$ac_exeext conftest.$ac_ext
891196402570Smrgfi
891296402570Smrg
891396402570Smrg
891496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
891596402570Smrg
891696402570Smrg		eval supported=\$$cacheid
891796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
891896402570Smrg$as_echo "$supported" >&6; }
891996402570Smrg		if test "$supported" = "yes" ; then
892096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
892196402570Smrg			found="yes"
892296402570Smrg		fi
892396402570Smrg	fi
892496402570Smrg
892596402570Smrg
892696402570Smrg
892796402570Smrg
892896402570Smrg
892996402570Smrg
893096402570Smrg
893196402570Smrg
893296402570Smrg
893396402570Smrg
893496402570Smrg
893596402570Smrg
893696402570Smrg
893796402570Smrg
893896402570Smrg
893996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
894096402570Smrg
894196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
894296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
894396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
894496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
894596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
894696402570Smrg  $as_echo_n "(cached) " >&6
894796402570Smrgelse
894896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
894996402570Smrg/* end confdefs.h.  */
895096402570Smrgint i;
895196402570Smrg_ACEOF
895296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
895396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
895496402570Smrgelse
895596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
895696402570Smrgfi
895796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
895896402570Smrgfi
895996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
896096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
896196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
896296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
896396402570Smrgfi
896496402570Smrg
896596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
896696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
896796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
896896402570Smrg	fi
896996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
897096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
897196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
897296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
897396402570Smrg  $as_echo_n "(cached) " >&6
897496402570Smrgelse
897596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
897696402570Smrg/* end confdefs.h.  */
897796402570Smrgint i;
897896402570Smrg_ACEOF
897996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
898096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
898196402570Smrgelse
898296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
898396402570Smrgfi
898496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
898596402570Smrgfi
898696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
898796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
898896402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
898996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
899096402570Smrgfi
899196402570Smrg
899296402570Smrgfound="no"
899396402570Smrg
899496402570Smrg	if test $found = "no" ; then
899596402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
899696402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
899796402570Smrg		fi
899896402570Smrg
899996402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
900096402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
900196402570Smrg		fi
900296402570Smrg
900396402570Smrg		CFLAGS="$CFLAGS -Wmain"
900496402570Smrg
900596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
900696402570Smrg$as_echo_n "checking if $CC supports-Wmain... " >&6; }
900796402570Smrg		cacheid=xorg_cv_cc_flag__Wmain
900896402570Smrg		if eval \${$cacheid+:} false; then :
900996402570Smrg  $as_echo_n "(cached) " >&6
901096402570Smrgelse
901196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
901296402570Smrg/* end confdefs.h.  */
901396402570Smrgint i;
901496402570Smrgint
901596402570Smrgmain ()
901696402570Smrg{
901796402570Smrg
901896402570Smrg  ;
901996402570Smrg  return 0;
902096402570Smrg}
902196402570Smrg_ACEOF
902296402570Smrgif ac_fn_c_try_link "$LINENO"; then :
902396402570Smrg  eval $cacheid=yes
902496402570Smrgelse
902596402570Smrg  eval $cacheid=no
902696402570Smrgfi
902796402570Smrgrm -f core conftest.err conftest.$ac_objext \
902896402570Smrg    conftest$ac_exeext conftest.$ac_ext
902996402570Smrgfi
903096402570Smrg
903196402570Smrg
903296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
903396402570Smrg
903496402570Smrg		eval supported=\$$cacheid
903596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
903696402570Smrg$as_echo "$supported" >&6; }
903796402570Smrg		if test "$supported" = "yes" ; then
903896402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
903996402570Smrg			found="yes"
904096402570Smrg		fi
904196402570Smrg	fi
904296402570Smrg
904396402570Smrg
904496402570Smrg
904596402570Smrg
904696402570Smrg
904796402570Smrg
904896402570Smrg
904996402570Smrg
905096402570Smrg
905196402570Smrg
905296402570Smrg
905396402570Smrg
905496402570Smrg
905596402570Smrg
905696402570Smrg
905796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
905896402570Smrg
905996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
906096402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
906196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
906296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
906396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
906496402570Smrg  $as_echo_n "(cached) " >&6
906596402570Smrgelse
906696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
906796402570Smrg/* end confdefs.h.  */
906896402570Smrgint i;
906996402570Smrg_ACEOF
907096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
907196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
907296402570Smrgelse
907396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
907496402570Smrgfi
907596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
907696402570Smrgfi
907796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
907896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
907996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
908096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
908196402570Smrgfi
908296402570Smrg
908396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
908496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
908596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
908696402570Smrg	fi
908796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
908896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
908996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
909096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
909196402570Smrg  $as_echo_n "(cached) " >&6
909296402570Smrgelse
909396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
909496402570Smrg/* end confdefs.h.  */
909596402570Smrgint i;
909696402570Smrg_ACEOF
909796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
909896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
909996402570Smrgelse
910096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
910196402570Smrgfi
910296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
910396402570Smrgfi
910496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
910596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
910696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
910796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
910896402570Smrgfi
910996402570Smrg
911096402570Smrgfound="no"
911196402570Smrg
911296402570Smrg	if test $found = "no" ; then
911396402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
911496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
911596402570Smrg		fi
911696402570Smrg
911796402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
911896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
911996402570Smrg		fi
912096402570Smrg
912196402570Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
912296402570Smrg
912396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
912496402570Smrg$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
912596402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
912696402570Smrg		if eval \${$cacheid+:} false; then :
912796402570Smrg  $as_echo_n "(cached) " >&6
912896402570Smrgelse
912996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
913096402570Smrg/* end confdefs.h.  */
913196402570Smrgint i;
913296402570Smrgint
913396402570Smrgmain ()
913496402570Smrg{
913596402570Smrg
913696402570Smrg  ;
913796402570Smrg  return 0;
913896402570Smrg}
913996402570Smrg_ACEOF
914096402570Smrgif ac_fn_c_try_link "$LINENO"; then :
914196402570Smrg  eval $cacheid=yes
914296402570Smrgelse
914396402570Smrg  eval $cacheid=no
914496402570Smrgfi
914596402570Smrgrm -f core conftest.err conftest.$ac_objext \
914696402570Smrg    conftest$ac_exeext conftest.$ac_ext
914796402570Smrgfi
914896402570Smrg
914996402570Smrg
915096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
915196402570Smrg
915296402570Smrg		eval supported=\$$cacheid
915396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
915496402570Smrg$as_echo "$supported" >&6; }
915596402570Smrg		if test "$supported" = "yes" ; then
915696402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
915796402570Smrg			found="yes"
915896402570Smrg		fi
915996402570Smrg	fi
916096402570Smrg
916196402570Smrg
916296402570Smrg
916396402570Smrg
916496402570Smrg
916596402570Smrg
916696402570Smrg
916796402570Smrg
916896402570Smrg
916996402570Smrg
917096402570Smrg
917196402570Smrg
917296402570Smrg
917396402570Smrg
917496402570Smrg
917596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
917696402570Smrg
917796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
917896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
917996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
918096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
918196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
918296402570Smrg  $as_echo_n "(cached) " >&6
918396402570Smrgelse
918496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
918596402570Smrg/* end confdefs.h.  */
918696402570Smrgint i;
918796402570Smrg_ACEOF
918896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
918996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
919096402570Smrgelse
919196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
919296402570Smrgfi
919396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
919496402570Smrgfi
919596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
919696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
919796402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
919896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
919996402570Smrgfi
920096402570Smrg
920196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
920296402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
920396402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
920496402570Smrg	fi
920596402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
920696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
920796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
920896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
920996402570Smrg  $as_echo_n "(cached) " >&6
921096402570Smrgelse
921196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
921296402570Smrg/* end confdefs.h.  */
921396402570Smrgint i;
921496402570Smrg_ACEOF
921596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
921696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
921796402570Smrgelse
921896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
921996402570Smrgfi
922096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
922196402570Smrgfi
922296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
922396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
922496402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
922596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
922696402570Smrgfi
922796402570Smrg
922896402570Smrgfound="no"
922996402570Smrg
923096402570Smrg	if test $found = "no" ; then
923196402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
923296402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
923396402570Smrg		fi
923496402570Smrg
923596402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
923696402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
923796402570Smrg		fi
923896402570Smrg
923996402570Smrg		CFLAGS="$CFLAGS -Wsequence-point"
924096402570Smrg
924196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
924296402570Smrg$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
924396402570Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
924496402570Smrg		if eval \${$cacheid+:} false; then :
924596402570Smrg  $as_echo_n "(cached) " >&6
924696402570Smrgelse
924796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
924896402570Smrg/* end confdefs.h.  */
924996402570Smrgint i;
925096402570Smrgint
925196402570Smrgmain ()
925296402570Smrg{
925396402570Smrg
925496402570Smrg  ;
925596402570Smrg  return 0;
925696402570Smrg}
925796402570Smrg_ACEOF
925896402570Smrgif ac_fn_c_try_link "$LINENO"; then :
925996402570Smrg  eval $cacheid=yes
926096402570Smrgelse
926196402570Smrg  eval $cacheid=no
926296402570Smrgfi
926396402570Smrgrm -f core conftest.err conftest.$ac_objext \
926496402570Smrg    conftest$ac_exeext conftest.$ac_ext
926596402570Smrgfi
926696402570Smrg
926796402570Smrg
926896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
926996402570Smrg
927096402570Smrg		eval supported=\$$cacheid
927196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
927296402570Smrg$as_echo "$supported" >&6; }
927396402570Smrg		if test "$supported" = "yes" ; then
927496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
927596402570Smrg			found="yes"
927696402570Smrg		fi
927796402570Smrg	fi
927896402570Smrg
927996402570Smrg
928096402570Smrg
928196402570Smrg
928296402570Smrg
928396402570Smrg
928496402570Smrg
928596402570Smrg
928696402570Smrg
928796402570Smrg
928896402570Smrg
928996402570Smrg
929096402570Smrg
929196402570Smrg
929296402570Smrg
929396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
929496402570Smrg
929596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
929696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
929796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
929896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
929996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
930096402570Smrg  $as_echo_n "(cached) " >&6
930196402570Smrgelse
930296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
930396402570Smrg/* end confdefs.h.  */
930496402570Smrgint i;
930596402570Smrg_ACEOF
930696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
930796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
930896402570Smrgelse
930996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
931096402570Smrgfi
931196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
931296402570Smrgfi
931396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
931496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
931596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
931696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
931796402570Smrgfi
931896402570Smrg
931996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
932096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
932196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
932296402570Smrg	fi
932396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
932496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
932596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
932696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
932796402570Smrg  $as_echo_n "(cached) " >&6
932896402570Smrgelse
932996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
933096402570Smrg/* end confdefs.h.  */
933196402570Smrgint i;
933296402570Smrg_ACEOF
933396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
933496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
933596402570Smrgelse
933696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
933796402570Smrgfi
933896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
933996402570Smrgfi
934096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
934196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
934296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
934396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
934496402570Smrgfi
934596402570Smrg
934696402570Smrgfound="no"
934796402570Smrg
934896402570Smrg	if test $found = "no" ; then
934996402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
935096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
935196402570Smrg		fi
935296402570Smrg
935396402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
935496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
935596402570Smrg		fi
935696402570Smrg
935796402570Smrg		CFLAGS="$CFLAGS -Wreturn-type"
935896402570Smrg
935996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
936096402570Smrg$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
936196402570Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
936296402570Smrg		if eval \${$cacheid+:} false; then :
936396402570Smrg  $as_echo_n "(cached) " >&6
936496402570Smrgelse
936596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
936696402570Smrg/* end confdefs.h.  */
936796402570Smrgint i;
936896402570Smrgint
936996402570Smrgmain ()
937096402570Smrg{
937196402570Smrg
937296402570Smrg  ;
937396402570Smrg  return 0;
937496402570Smrg}
937596402570Smrg_ACEOF
937696402570Smrgif ac_fn_c_try_link "$LINENO"; then :
937796402570Smrg  eval $cacheid=yes
937896402570Smrgelse
937996402570Smrg  eval $cacheid=no
938096402570Smrgfi
938196402570Smrgrm -f core conftest.err conftest.$ac_objext \
938296402570Smrg    conftest$ac_exeext conftest.$ac_ext
938396402570Smrgfi
938496402570Smrg
938596402570Smrg
938696402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
938796402570Smrg
938896402570Smrg		eval supported=\$$cacheid
938996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
939096402570Smrg$as_echo "$supported" >&6; }
939196402570Smrg		if test "$supported" = "yes" ; then
939296402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
939396402570Smrg			found="yes"
939496402570Smrg		fi
939596402570Smrg	fi
939696402570Smrg
939796402570Smrg
939896402570Smrg
939996402570Smrg
940096402570Smrg
940196402570Smrg
940296402570Smrg
940396402570Smrg
940496402570Smrg
940596402570Smrg
940696402570Smrg
940796402570Smrg
940896402570Smrg
940996402570Smrg
941096402570Smrg
941196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
941296402570Smrg
941396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
941496402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
941596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
941696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
941796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
941896402570Smrg  $as_echo_n "(cached) " >&6
941996402570Smrgelse
942096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
942196402570Smrg/* end confdefs.h.  */
942296402570Smrgint i;
942396402570Smrg_ACEOF
942496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
942596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
942696402570Smrgelse
942796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
942896402570Smrgfi
942996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
943096402570Smrgfi
943196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
943296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
943396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
943496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
943596402570Smrgfi
943696402570Smrg
943796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
943896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
943996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
944096402570Smrg	fi
944196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
944296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
944396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
944496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
944596402570Smrg  $as_echo_n "(cached) " >&6
944696402570Smrgelse
944796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944896402570Smrg/* end confdefs.h.  */
944996402570Smrgint i;
945096402570Smrg_ACEOF
945196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
945296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
945396402570Smrgelse
945496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
945596402570Smrgfi
945696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
945796402570Smrgfi
945896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
945996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
946096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
946196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
946296402570Smrgfi
946396402570Smrg
946496402570Smrgfound="no"
946596402570Smrg
946696402570Smrg	if test $found = "no" ; then
946796402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
946896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
946996402570Smrg		fi
947096402570Smrg
947196402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
947296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
947396402570Smrg		fi
947496402570Smrg
947596402570Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
947696402570Smrg
947796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
947896402570Smrg$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
947996402570Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
948096402570Smrg		if eval \${$cacheid+:} false; then :
948196402570Smrg  $as_echo_n "(cached) " >&6
948296402570Smrgelse
948396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
948496402570Smrg/* end confdefs.h.  */
948596402570Smrgint i;
948696402570Smrgint
948796402570Smrgmain ()
948896402570Smrg{
948996402570Smrg
949096402570Smrg  ;
949196402570Smrg  return 0;
949296402570Smrg}
949396402570Smrg_ACEOF
949496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
949596402570Smrg  eval $cacheid=yes
949696402570Smrgelse
949796402570Smrg  eval $cacheid=no
949896402570Smrgfi
949996402570Smrgrm -f core conftest.err conftest.$ac_objext \
950096402570Smrg    conftest$ac_exeext conftest.$ac_ext
950196402570Smrgfi
950296402570Smrg
950396402570Smrg
950496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
950596402570Smrg
950696402570Smrg		eval supported=\$$cacheid
950796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
950896402570Smrg$as_echo "$supported" >&6; }
950996402570Smrg		if test "$supported" = "yes" ; then
951096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
951196402570Smrg			found="yes"
951296402570Smrg		fi
951396402570Smrg	fi
951496402570Smrg
951596402570Smrg
951696402570Smrg
951796402570Smrg
951896402570Smrg
951996402570Smrg
952096402570Smrg
952196402570Smrg
952296402570Smrg
952396402570Smrg
952496402570Smrg
952596402570Smrg
952696402570Smrg
952796402570Smrg
952896402570Smrg
952996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
953096402570Smrg
953196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
953296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
953396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
953496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
953596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
953696402570Smrg  $as_echo_n "(cached) " >&6
953796402570Smrgelse
953896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953996402570Smrg/* end confdefs.h.  */
954096402570Smrgint i;
954196402570Smrg_ACEOF
954296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
954396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
954496402570Smrgelse
954596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
954696402570Smrgfi
954796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
954896402570Smrgfi
954996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
955096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
955196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
955296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
955396402570Smrgfi
955496402570Smrg
955596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
955696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
955796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
955896402570Smrg	fi
955996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
956096402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
956196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
956296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
956396402570Smrg  $as_echo_n "(cached) " >&6
956496402570Smrgelse
956596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
956696402570Smrg/* end confdefs.h.  */
956796402570Smrgint i;
956896402570Smrg_ACEOF
956996402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
957096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
957196402570Smrgelse
957296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
957396402570Smrgfi
957496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
957596402570Smrgfi
957696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
957796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
957896402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
957996402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
958096402570Smrgfi
958196402570Smrg
958296402570Smrgfound="no"
958396402570Smrg
958496402570Smrg	if test $found = "no" ; then
958596402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
958696402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
958796402570Smrg		fi
958896402570Smrg
958996402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
959096402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
959196402570Smrg		fi
959296402570Smrg
959396402570Smrg		CFLAGS="$CFLAGS -Warray-bounds"
959496402570Smrg
959596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
959696402570Smrg$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
959796402570Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
959896402570Smrg		if eval \${$cacheid+:} false; then :
959996402570Smrg  $as_echo_n "(cached) " >&6
960096402570Smrgelse
960196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
960296402570Smrg/* end confdefs.h.  */
960396402570Smrgint i;
960496402570Smrgint
960596402570Smrgmain ()
960696402570Smrg{
960796402570Smrg
960896402570Smrg  ;
960996402570Smrg  return 0;
961096402570Smrg}
961196402570Smrg_ACEOF
961296402570Smrgif ac_fn_c_try_link "$LINENO"; then :
961396402570Smrg  eval $cacheid=yes
961496402570Smrgelse
961596402570Smrg  eval $cacheid=no
961696402570Smrgfi
961796402570Smrgrm -f core conftest.err conftest.$ac_objext \
961896402570Smrg    conftest$ac_exeext conftest.$ac_ext
961996402570Smrgfi
962096402570Smrg
962196402570Smrg
962296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
962396402570Smrg
962496402570Smrg		eval supported=\$$cacheid
962596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
962696402570Smrg$as_echo "$supported" >&6; }
962796402570Smrg		if test "$supported" = "yes" ; then
962896402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
962996402570Smrg			found="yes"
963096402570Smrg		fi
963196402570Smrg	fi
963296402570Smrg
963396402570Smrg
963496402570Smrg
963596402570Smrg
963696402570Smrg
963796402570Smrg
963896402570Smrg
963996402570Smrg
964096402570Smrg
964196402570Smrg
964296402570Smrg
964396402570Smrg
964496402570Smrg
964596402570Smrg
964696402570Smrg
964796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
964896402570Smrg
964996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
965096402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
965196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
965296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
965396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
965496402570Smrg  $as_echo_n "(cached) " >&6
965596402570Smrgelse
965696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
965796402570Smrg/* end confdefs.h.  */
965896402570Smrgint i;
965996402570Smrg_ACEOF
966096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
966196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
966296402570Smrgelse
966396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
966496402570Smrgfi
966596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
966696402570Smrgfi
966796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
966896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
966996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
967096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
967196402570Smrgfi
967296402570Smrg
967396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
967496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
967596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
967696402570Smrg	fi
967796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
967896402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
967996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
968096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
968196402570Smrg  $as_echo_n "(cached) " >&6
968296402570Smrgelse
968396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
968496402570Smrg/* end confdefs.h.  */
968596402570Smrgint i;
968696402570Smrg_ACEOF
968796402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
968896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
968996402570Smrgelse
969096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
969196402570Smrgfi
969296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
969396402570Smrgfi
969496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
969596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
969696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
969796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
969896402570Smrgfi
969996402570Smrg
970096402570Smrgfound="no"
970196402570Smrg
970296402570Smrg	if test $found = "no" ; then
970396402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
970496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
970596402570Smrg		fi
970696402570Smrg
970796402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
970896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
970996402570Smrg		fi
971096402570Smrg
971196402570Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
971296402570Smrg
971396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
971496402570Smrg$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
971596402570Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
971696402570Smrg		if eval \${$cacheid+:} false; then :
971796402570Smrg  $as_echo_n "(cached) " >&6
971896402570Smrgelse
971996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
972096402570Smrg/* end confdefs.h.  */
972196402570Smrgint i;
972296402570Smrgint
972396402570Smrgmain ()
972496402570Smrg{
972596402570Smrg
972696402570Smrg  ;
972796402570Smrg  return 0;
972896402570Smrg}
972996402570Smrg_ACEOF
973096402570Smrgif ac_fn_c_try_link "$LINENO"; then :
973196402570Smrg  eval $cacheid=yes
973296402570Smrgelse
973396402570Smrg  eval $cacheid=no
973496402570Smrgfi
973596402570Smrgrm -f core conftest.err conftest.$ac_objext \
973696402570Smrg    conftest$ac_exeext conftest.$ac_ext
973796402570Smrgfi
973896402570Smrg
973996402570Smrg
974096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
974196402570Smrg
974296402570Smrg		eval supported=\$$cacheid
974396402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
974496402570Smrg$as_echo "$supported" >&6; }
974596402570Smrg		if test "$supported" = "yes" ; then
974696402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
974796402570Smrg			found="yes"
974896402570Smrg		fi
974996402570Smrg	fi
975096402570Smrg
975196402570Smrg
975296402570Smrg
975396402570Smrg
975496402570Smrg
975596402570Smrg
975696402570Smrg
975796402570Smrg
975896402570Smrg
975996402570Smrg
976096402570Smrg
976196402570Smrg
976296402570Smrg
976396402570Smrg
976496402570Smrg
976596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
976696402570Smrg
976796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
976896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
976996402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
977096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
977196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
977296402570Smrg  $as_echo_n "(cached) " >&6
977396402570Smrgelse
977496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
977596402570Smrg/* end confdefs.h.  */
977696402570Smrgint i;
977796402570Smrg_ACEOF
977896402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
977996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
978096402570Smrgelse
978196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
978296402570Smrgfi
978396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
978496402570Smrgfi
978596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
978696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
978796402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
978896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
978996402570Smrgfi
979096402570Smrg
979196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
979296402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
979396402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
979496402570Smrg	fi
979596402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
979696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
979796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
979896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
979996402570Smrg  $as_echo_n "(cached) " >&6
980096402570Smrgelse
980196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
980296402570Smrg/* end confdefs.h.  */
980396402570Smrgint i;
980496402570Smrg_ACEOF
980596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
980696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
980796402570Smrgelse
980896402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
980996402570Smrgfi
981096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
981196402570Smrgfi
981296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
981396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
981496402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
981596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
981696402570Smrgfi
981796402570Smrg
981896402570Smrgfound="no"
981996402570Smrg
982096402570Smrg	if test $found = "no" ; then
982196402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
982296402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
982396402570Smrg		fi
982496402570Smrg
982596402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
982696402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
982796402570Smrg		fi
982896402570Smrg
982996402570Smrg		CFLAGS="$CFLAGS -Waddress"
983096402570Smrg
983196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
983296402570Smrg$as_echo_n "checking if $CC supports-Waddress... " >&6; }
983396402570Smrg		cacheid=xorg_cv_cc_flag__Waddress
983496402570Smrg		if eval \${$cacheid+:} false; then :
983596402570Smrg  $as_echo_n "(cached) " >&6
983696402570Smrgelse
983796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
983896402570Smrg/* end confdefs.h.  */
983996402570Smrgint i;
984096402570Smrgint
984196402570Smrgmain ()
984296402570Smrg{
984396402570Smrg
984496402570Smrg  ;
984596402570Smrg  return 0;
984696402570Smrg}
984796402570Smrg_ACEOF
984896402570Smrgif ac_fn_c_try_link "$LINENO"; then :
984996402570Smrg  eval $cacheid=yes
985096402570Smrgelse
985196402570Smrg  eval $cacheid=no
985296402570Smrgfi
985396402570Smrgrm -f core conftest.err conftest.$ac_objext \
985496402570Smrg    conftest$ac_exeext conftest.$ac_ext
985596402570Smrgfi
985696402570Smrg
985796402570Smrg
985896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
985996402570Smrg
986096402570Smrg		eval supported=\$$cacheid
986196402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
986296402570Smrg$as_echo "$supported" >&6; }
986396402570Smrg		if test "$supported" = "yes" ; then
986496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
986596402570Smrg			found="yes"
986696402570Smrg		fi
986796402570Smrg	fi
986896402570Smrg
986996402570Smrg
987096402570Smrg
987196402570Smrg
987296402570Smrg
987396402570Smrg
987496402570Smrg
987596402570Smrg
987696402570Smrg
987796402570Smrg
987896402570Smrg
987996402570Smrg
988096402570Smrg
988196402570Smrg
988296402570Smrg
988396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
988496402570Smrg
988596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
988696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
988796402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
988896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
988996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
989096402570Smrg  $as_echo_n "(cached) " >&6
989196402570Smrgelse
989296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
989396402570Smrg/* end confdefs.h.  */
989496402570Smrgint i;
989596402570Smrg_ACEOF
989696402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
989796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
989896402570Smrgelse
989996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
990096402570Smrgfi
990196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
990296402570Smrgfi
990396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
990496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
990596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
990696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
990796402570Smrgfi
990896402570Smrg
990996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
991096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
991196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
991296402570Smrg	fi
991396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
991496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
991596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
991696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
991796402570Smrg  $as_echo_n "(cached) " >&6
991896402570Smrgelse
991996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
992096402570Smrg/* end confdefs.h.  */
992196402570Smrgint i;
992296402570Smrg_ACEOF
992396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
992496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
992596402570Smrgelse
992696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
992796402570Smrgfi
992896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
992996402570Smrgfi
993096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
993196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
993296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
993396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
993496402570Smrgfi
993596402570Smrg
993696402570Smrgfound="no"
993796402570Smrg
993896402570Smrg	if test $found = "no" ; then
993996402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
994096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
994196402570Smrg		fi
994296402570Smrg
994396402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
994496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
994596402570Smrg		fi
994696402570Smrg
994796402570Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
994896402570Smrg
994996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
995096402570Smrg$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
995196402570Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
995296402570Smrg		if eval \${$cacheid+:} false; then :
995396402570Smrg  $as_echo_n "(cached) " >&6
995496402570Smrgelse
995596402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
995696402570Smrg/* end confdefs.h.  */
995796402570Smrgint i;
995896402570Smrgint
995996402570Smrgmain ()
996096402570Smrg{
996196402570Smrg
996296402570Smrg  ;
996396402570Smrg  return 0;
996496402570Smrg}
996596402570Smrg_ACEOF
996696402570Smrgif ac_fn_c_try_link "$LINENO"; then :
996796402570Smrg  eval $cacheid=yes
996896402570Smrgelse
996996402570Smrg  eval $cacheid=no
997096402570Smrgfi
997196402570Smrgrm -f core conftest.err conftest.$ac_objext \
997296402570Smrg    conftest$ac_exeext conftest.$ac_ext
997396402570Smrgfi
997496402570Smrg
997596402570Smrg
997696402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
997796402570Smrg
997896402570Smrg		eval supported=\$$cacheid
997996402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
998096402570Smrg$as_echo "$supported" >&6; }
998196402570Smrg		if test "$supported" = "yes" ; then
998296402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
998396402570Smrg			found="yes"
998496402570Smrg		fi
998596402570Smrg	fi
998696402570Smrg
998796402570Smrg
998896402570Smrg
998996402570Smrg
999096402570Smrg
999196402570Smrg
999296402570Smrg
999396402570Smrg
999496402570Smrg
999596402570Smrg
999696402570Smrg
999796402570Smrg
999896402570Smrg
999996402570Smrg
1000096402570Smrg
1000196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1000296402570Smrg
1000396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1000496402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1000596402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1000696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1000796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1000896402570Smrg  $as_echo_n "(cached) " >&6
1000996402570Smrgelse
1001096402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1001196402570Smrg/* end confdefs.h.  */
1001296402570Smrgint i;
1001396402570Smrg_ACEOF
1001496402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1001596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1001696402570Smrgelse
1001796402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1001896402570Smrgfi
1001996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1002096402570Smrgfi
1002196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1002296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1002396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1002496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1002596402570Smrgfi
1002696402570Smrg
1002796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1002896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1002996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1003096402570Smrg	fi
1003196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1003296402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1003396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1003496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1003596402570Smrg  $as_echo_n "(cached) " >&6
1003696402570Smrgelse
1003796402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1003896402570Smrg/* end confdefs.h.  */
1003996402570Smrgint i;
1004096402570Smrg_ACEOF
1004196402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1004296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1004396402570Smrgelse
1004496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1004596402570Smrgfi
1004696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1004796402570Smrgfi
1004896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1004996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1005096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1005196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1005296402570Smrgfi
1005396402570Smrg
1005496402570Smrgfound="no"
1005596402570Smrg
1005696402570Smrg	if test $found = "no" ; then
1005796402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1005896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1005996402570Smrg		fi
1006096402570Smrg
1006196402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1006296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1006396402570Smrg		fi
1006496402570Smrg
1006596402570Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
1006696402570Smrg
1006796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
1006896402570Smrg$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
1006996402570Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
1007096402570Smrg		if eval \${$cacheid+:} false; then :
1007196402570Smrg  $as_echo_n "(cached) " >&6
1007296402570Smrgelse
1007396402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1007496402570Smrg/* end confdefs.h.  */
1007596402570Smrgint i;
1007696402570Smrgint
1007796402570Smrgmain ()
1007896402570Smrg{
1007996402570Smrg
1008096402570Smrg  ;
1008196402570Smrg  return 0;
1008296402570Smrg}
1008396402570Smrg_ACEOF
1008496402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1008596402570Smrg  eval $cacheid=yes
1008696402570Smrgelse
1008796402570Smrg  eval $cacheid=no
1008896402570Smrgfi
1008996402570Smrgrm -f core conftest.err conftest.$ac_objext \
1009096402570Smrg    conftest$ac_exeext conftest.$ac_ext
1009196402570Smrgfi
1009296402570Smrg
1009396402570Smrg
1009496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1009596402570Smrg
1009696402570Smrg		eval supported=\$$cacheid
1009796402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1009896402570Smrg$as_echo "$supported" >&6; }
1009996402570Smrg		if test "$supported" = "yes" ; then
1010096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
1010196402570Smrg			found="yes"
1010296402570Smrg		fi
1010396402570Smrg	fi
1010496402570Smrg
1010596402570Smrg
1010696402570Smrgfi
1010796402570Smrg
1010896402570Smrg
1010996402570Smrg
1011096402570Smrg
1011196402570Smrg
1011296402570Smrg
1011396402570Smrg
1011496402570Smrg		CWARNFLAGS="$BASE_CFLAGS"
1011596402570Smrg		if  test "x$GCC" = xyes ; then
1011696402570Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
1011796402570Smrg		fi
1011896402570Smrg
1011996402570Smrg
1012096402570Smrg
1012196402570Smrg
1012296402570Smrg
1012396402570Smrg
1012496402570Smrg
1012596402570Smrg
1012696402570Smrg# Check whether --enable-strict-compilation was given.
1012796402570Smrgif test "${enable_strict_compilation+set}" = set; then :
1012896402570Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
1012996402570Smrgelse
1013096402570Smrg  STRICT_COMPILE=no
1013196402570Smrgfi
1013296402570Smrg
1013396402570Smrg
1013496402570Smrg
1013596402570Smrg
1013696402570Smrg
1013796402570Smrg
1013896402570SmrgSTRICT_CFLAGS=""
1013996402570Smrg
1014096402570Smrg
1014196402570Smrg
1014296402570Smrg
1014396402570Smrg
1014496402570Smrg
1014596402570Smrg
1014696402570Smrg
1014796402570Smrg
1014896402570Smrg
1014996402570Smrg
1015096402570Smrg
1015196402570Smrg
1015296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1015396402570Smrg
1015496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1015596402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1015696402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1015796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1015896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1015996402570Smrg  $as_echo_n "(cached) " >&6
1016096402570Smrgelse
1016196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1016296402570Smrg/* end confdefs.h.  */
1016396402570Smrgint i;
1016496402570Smrg_ACEOF
1016596402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1016696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1016796402570Smrgelse
1016896402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1016996402570Smrgfi
1017096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1017196402570Smrgfi
1017296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1017396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1017496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1017596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1017696402570Smrgfi
1017796402570Smrg
1017896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1017996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1018096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1018196402570Smrg	fi
1018296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1018396402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1018496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1018596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1018696402570Smrg  $as_echo_n "(cached) " >&6
1018796402570Smrgelse
1018896402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1018996402570Smrg/* end confdefs.h.  */
1019096402570Smrgint i;
1019196402570Smrg_ACEOF
1019296402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1019396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1019496402570Smrgelse
1019596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1019696402570Smrgfi
1019796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1019896402570Smrgfi
1019996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1020096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1020196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1020296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1020396402570Smrgfi
1020496402570Smrg
1020596402570Smrgfound="no"
1020696402570Smrg
1020796402570Smrg	if test $found = "no" ; then
1020896402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1020996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1021096402570Smrg		fi
1021196402570Smrg
1021296402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1021396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1021496402570Smrg		fi
1021596402570Smrg
1021696402570Smrg		CFLAGS="$CFLAGS -pedantic"
1021796402570Smrg
1021896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
1021996402570Smrg$as_echo_n "checking if $CC supports-pedantic... " >&6; }
1022096402570Smrg		cacheid=xorg_cv_cc_flag__pedantic
1022196402570Smrg		if eval \${$cacheid+:} false; then :
1022296402570Smrg  $as_echo_n "(cached) " >&6
1022396402570Smrgelse
1022496402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1022596402570Smrg/* end confdefs.h.  */
1022696402570Smrgint i;
1022796402570Smrgint
1022896402570Smrgmain ()
1022996402570Smrg{
1023096402570Smrg
1023196402570Smrg  ;
1023296402570Smrg  return 0;
1023396402570Smrg}
1023496402570Smrg_ACEOF
1023596402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1023696402570Smrg  eval $cacheid=yes
1023796402570Smrgelse
1023896402570Smrg  eval $cacheid=no
1023996402570Smrgfi
1024096402570Smrgrm -f core conftest.err conftest.$ac_objext \
1024196402570Smrg    conftest$ac_exeext conftest.$ac_ext
1024296402570Smrgfi
1024396402570Smrg
1024496402570Smrg
1024596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1024696402570Smrg
1024796402570Smrg		eval supported=\$$cacheid
1024896402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1024996402570Smrg$as_echo "$supported" >&6; }
1025096402570Smrg		if test "$supported" = "yes" ; then
1025196402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
1025296402570Smrg			found="yes"
1025396402570Smrg		fi
1025496402570Smrg	fi
1025596402570Smrg
1025696402570Smrg
1025796402570Smrg
1025896402570Smrg
1025996402570Smrg
1026096402570Smrg
1026196402570Smrg
1026296402570Smrg
1026396402570Smrg
1026496402570Smrg
1026596402570Smrg
1026696402570Smrg
1026796402570Smrg
1026896402570Smrg
1026996402570Smrg
1027096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1027196402570Smrg
1027296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1027396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1027496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1027596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1027696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1027796402570Smrg  $as_echo_n "(cached) " >&6
1027896402570Smrgelse
1027996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1028096402570Smrg/* end confdefs.h.  */
1028196402570Smrgint i;
1028296402570Smrg_ACEOF
1028396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1028496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1028596402570Smrgelse
1028696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1028796402570Smrgfi
1028896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1028996402570Smrgfi
1029096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1029196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1029296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1029396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1029496402570Smrgfi
1029596402570Smrg
1029696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1029796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1029896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1029996402570Smrg	fi
1030096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1030196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1030296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1030396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1030496402570Smrg  $as_echo_n "(cached) " >&6
1030596402570Smrgelse
1030696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1030796402570Smrg/* end confdefs.h.  */
1030896402570Smrgint i;
1030996402570Smrg_ACEOF
1031096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1031196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1031296402570Smrgelse
1031396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1031496402570Smrgfi
1031596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1031696402570Smrgfi
1031796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1031896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1031996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1032096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1032196402570Smrgfi
1032296402570Smrg
1032396402570Smrgfound="no"
1032496402570Smrg
1032596402570Smrg	if test $found = "no" ; then
1032696402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1032796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1032896402570Smrg		fi
1032996402570Smrg
1033096402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1033196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1033296402570Smrg		fi
1033396402570Smrg
1033496402570Smrg		CFLAGS="$CFLAGS -Werror"
1033596402570Smrg
1033696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
1033796402570Smrg$as_echo_n "checking if $CC supports-Werror... " >&6; }
1033896402570Smrg		cacheid=xorg_cv_cc_flag__Werror
1033996402570Smrg		if eval \${$cacheid+:} false; then :
1034096402570Smrg  $as_echo_n "(cached) " >&6
1034196402570Smrgelse
1034296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1034396402570Smrg/* end confdefs.h.  */
1034496402570Smrgint i;
1034596402570Smrgint
1034696402570Smrgmain ()
1034796402570Smrg{
1034896402570Smrg
1034996402570Smrg  ;
1035096402570Smrg  return 0;
1035196402570Smrg}
1035296402570Smrg_ACEOF
1035396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1035496402570Smrg  eval $cacheid=yes
1035596402570Smrgelse
1035696402570Smrg  eval $cacheid=no
1035796402570Smrgfi
1035896402570Smrgrm -f core conftest.err conftest.$ac_objext \
1035996402570Smrg    conftest$ac_exeext conftest.$ac_ext
1036096402570Smrgfi
1036196402570Smrg
1036296402570Smrg
1036396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1036496402570Smrg
1036596402570Smrg		eval supported=\$$cacheid
1036696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1036796402570Smrg$as_echo "$supported" >&6; }
1036896402570Smrg		if test "$supported" = "yes" ; then
1036996402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
1037096402570Smrg			found="yes"
1037196402570Smrg		fi
1037296402570Smrg	fi
1037396402570Smrg
1037496402570Smrg	if test $found = "no" ; then
1037596402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1037696402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1037796402570Smrg		fi
1037896402570Smrg
1037996402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1038096402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1038196402570Smrg		fi
1038296402570Smrg
1038396402570Smrg		CFLAGS="$CFLAGS -errwarn"
1038496402570Smrg
1038596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
1038696402570Smrg$as_echo_n "checking if $CC supports-errwarn... " >&6; }
1038796402570Smrg		cacheid=xorg_cv_cc_flag__errwarn
1038896402570Smrg		if eval \${$cacheid+:} false; then :
1038996402570Smrg  $as_echo_n "(cached) " >&6
1039096402570Smrgelse
1039196402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1039296402570Smrg/* end confdefs.h.  */
1039396402570Smrgint i;
1039496402570Smrgint
1039596402570Smrgmain ()
1039696402570Smrg{
1039796402570Smrg
1039896402570Smrg  ;
1039996402570Smrg  return 0;
1040096402570Smrg}
1040196402570Smrg_ACEOF
1040296402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1040396402570Smrg  eval $cacheid=yes
1040496402570Smrgelse
1040596402570Smrg  eval $cacheid=no
1040696402570Smrgfi
1040796402570Smrgrm -f core conftest.err conftest.$ac_objext \
1040896402570Smrg    conftest$ac_exeext conftest.$ac_ext
1040996402570Smrgfi
1041096402570Smrg
1041196402570Smrg
1041296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1041396402570Smrg
1041496402570Smrg		eval supported=\$$cacheid
1041596402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1041696402570Smrg$as_echo "$supported" >&6; }
1041796402570Smrg		if test "$supported" = "yes" ; then
1041896402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
1041996402570Smrg			found="yes"
1042096402570Smrg		fi
1042196402570Smrg	fi
1042296402570Smrg
1042396402570Smrg
1042496402570Smrg
1042596402570Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
1042696402570Smrg# activate it with -Werror, so we add it here explicitly.
1042796402570Smrg
1042896402570Smrg
1042996402570Smrg
1043096402570Smrg
1043196402570Smrg
1043296402570Smrg
1043396402570Smrg
1043496402570Smrg
1043596402570Smrg
1043696402570Smrg
1043796402570Smrg
1043896402570Smrg
1043996402570Smrg
1044096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1044196402570Smrg
1044296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1044396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1044496402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1044596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1044696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1044796402570Smrg  $as_echo_n "(cached) " >&6
1044896402570Smrgelse
1044996402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1045096402570Smrg/* end confdefs.h.  */
1045196402570Smrgint i;
1045296402570Smrg_ACEOF
1045396402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1045496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1045596402570Smrgelse
1045696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1045796402570Smrgfi
1045896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1045996402570Smrgfi
1046096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1046196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1046296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1046396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1046496402570Smrgfi
1046596402570Smrg
1046696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1046796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1046896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1046996402570Smrg	fi
1047096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1047196402570Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1047296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1047396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1047496402570Smrg  $as_echo_n "(cached) " >&6
1047596402570Smrgelse
1047696402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1047796402570Smrg/* end confdefs.h.  */
1047896402570Smrgint i;
1047996402570Smrg_ACEOF
1048096402570Smrgif ac_fn_c_try_compile "$LINENO"; then :
1048196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1048296402570Smrgelse
1048396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1048496402570Smrgfi
1048596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1048696402570Smrgfi
1048796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1048896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1048996402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1049096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1049196402570Smrgfi
1049296402570Smrg
1049396402570Smrgfound="no"
1049496402570Smrg
1049596402570Smrg	if test $found = "no" ; then
1049696402570Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1049796402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1049896402570Smrg		fi
1049996402570Smrg
1050096402570Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1050196402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1050296402570Smrg		fi
1050396402570Smrg
1050496402570Smrg		CFLAGS="$CFLAGS -Werror=attributes"
1050596402570Smrg
1050696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
1050796402570Smrg$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
105088abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_attributes
1050996402570Smrg		if eval \${$cacheid+:} false; then :
1051096402570Smrg  $as_echo_n "(cached) " >&6
1051196402570Smrgelse
1051296402570Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1051396402570Smrg/* end confdefs.h.  */
1051496402570Smrgint i;
1051596402570Smrgint
1051696402570Smrgmain ()
1051796402570Smrg{
1051896402570Smrg
1051996402570Smrg  ;
1052096402570Smrg  return 0;
1052196402570Smrg}
1052296402570Smrg_ACEOF
1052396402570Smrgif ac_fn_c_try_link "$LINENO"; then :
1052496402570Smrg  eval $cacheid=yes
1052596402570Smrgelse
1052696402570Smrg  eval $cacheid=no
1052796402570Smrgfi
1052896402570Smrgrm -f core conftest.err conftest.$ac_objext \
1052996402570Smrg    conftest$ac_exeext conftest.$ac_ext
1053096402570Smrgfi
1053196402570Smrg
1053296402570Smrg
1053396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1053496402570Smrg
1053596402570Smrg		eval supported=\$$cacheid
1053696402570Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1053796402570Smrg$as_echo "$supported" >&6; }
1053896402570Smrg		if test "$supported" = "yes" ; then
1053996402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
1054096402570Smrg			found="yes"
1054196402570Smrg		fi
1054296402570Smrg	fi
1054396402570Smrg
1054496402570Smrg
1054596402570Smrg
1054696402570Smrgif test "x$STRICT_COMPILE" = "xyes"; then
1054796402570Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
1054896402570Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
1054996402570Smrgfi
1055096402570Smrg
1055196402570Smrg
1055296402570Smrg
1055396402570Smrg
1055496402570Smrg
1055596402570Smrg
1055696402570Smrgcat >>confdefs.h <<_ACEOF
1055796402570Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
1055896402570Smrg_ACEOF
1055996402570Smrg
1056096402570Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
1056196402570Smrg	if test "x$PVM" = "x"; then
1056296402570Smrg		PVM="0"
1056396402570Smrg	fi
1056496402570Smrg
1056596402570Smrgcat >>confdefs.h <<_ACEOF
1056696402570Smrg#define PACKAGE_VERSION_MINOR $PVM
1056796402570Smrg_ACEOF
1056896402570Smrg
1056996402570Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
1057096402570Smrg	if test "x$PVP" = "x"; then
1057196402570Smrg		PVP="0"
1057296402570Smrg	fi
1057396402570Smrg
1057496402570Smrgcat >>confdefs.h <<_ACEOF
1057596402570Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
1057696402570Smrg_ACEOF
1057796402570Smrg
1057896402570Smrg
1057996402570Smrg
1058096402570SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
1058196402570Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
1058296402570Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
1058396402570Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
1058496402570Smrg
1058596402570Smrg
1058696402570Smrg
1058796402570Smrg
1058896402570Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
1058996402570SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
1059096402570Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
1059196402570Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
1059296402570Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
1059396402570Smrg
1059496402570Smrg
1059596402570Smrg
1059696402570Smrg
1059796402570Smrg
1059896402570Smrg
1059996402570Smrgif test x$APP_MAN_SUFFIX = x    ; then
1060096402570Smrg    APP_MAN_SUFFIX=1
1060196402570Smrgfi
1060296402570Smrgif test x$APP_MAN_DIR = x    ; then
1060396402570Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
1060496402570Smrgfi
1060596402570Smrg
1060696402570Smrgif test x$LIB_MAN_SUFFIX = x    ; then
1060796402570Smrg    LIB_MAN_SUFFIX=3
1060896402570Smrgfi
1060996402570Smrgif test x$LIB_MAN_DIR = x    ; then
1061096402570Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
1061196402570Smrgfi
1061296402570Smrg
1061396402570Smrgif test x$FILE_MAN_SUFFIX = x    ; then
1061496402570Smrg    case $host_os in
1061596402570Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
1061696402570Smrg	*)		FILE_MAN_SUFFIX=5  ;;
1061796402570Smrg    esac
1061896402570Smrgfi
1061996402570Smrgif test x$FILE_MAN_DIR = x    ; then
1062096402570Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
1062196402570Smrgfi
1062296402570Smrg
1062396402570Smrgif test x$MISC_MAN_SUFFIX = x    ; then
1062496402570Smrg    case $host_os in
1062596402570Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
1062696402570Smrg	*)		MISC_MAN_SUFFIX=7  ;;
1062796402570Smrg    esac
1062896402570Smrgfi
1062996402570Smrgif test x$MISC_MAN_DIR = x    ; then
1063096402570Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
1063196402570Smrgfi
1063296402570Smrg
1063396402570Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
1063496402570Smrg    case $host_os in
1063596402570Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
1063696402570Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
1063796402570Smrg    esac
1063896402570Smrgfi
1063996402570Smrgif test x$DRIVER_MAN_DIR = x    ; then
1064096402570Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1064196402570Smrgfi
1064296402570Smrg
1064396402570Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
1064496402570Smrg    case $host_os in
1064596402570Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
1064696402570Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
1064796402570Smrg    esac
1064896402570Smrgfi
1064996402570Smrgif test x$ADMIN_MAN_DIR = x    ; then
1065096402570Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
1065196402570Smrgfi
1065296402570Smrg
1065396402570Smrg
1065496402570Smrg
1065596402570Smrg
1065696402570Smrg
1065796402570Smrg
1065896402570Smrg
1065996402570Smrg
1066096402570Smrg
1066196402570Smrg
1066296402570Smrg
1066396402570Smrg
1066496402570Smrg
1066596402570Smrg
1066696402570Smrg
1066796402570SmrgXORG_MAN_PAGE="X Version 11"
1066896402570Smrg
1066996402570SmrgMAN_SUBSTS="\
1067096402570Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1067196402570Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
106722adc0320Smrg	-e 's|__xservername__|Xorg|g' \
106732adc0320Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
106742adc0320Smrg	-e 's|__projectroot__|\$(prefix)|g' \
106752adc0320Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
106762adc0320Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
106772adc0320Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
106782adc0320Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
106792adc0320Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
106802adc0320Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
106812adc0320Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
106822adc0320Smrg
106832adc0320Smrg
106842adc0320Smrg
106852adc0320Smrg# Check whether --enable-silent-rules was given.
106862adc0320Smrgif test "${enable_silent_rules+set}" = set; then :
106872adc0320Smrg  enableval=$enable_silent_rules;
106882adc0320Smrgfi
106892adc0320Smrg
106908abc0ccfSmrgcase $enable_silent_rules in # (((
106918abc0ccfSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
106928abc0ccfSmrg   no) AM_DEFAULT_VERBOSITY=1;;
106938abc0ccfSmrg    *) AM_DEFAULT_VERBOSITY=0;;
106942adc0320Smrgesac
106958abc0ccfSmrgam_make=${MAKE-make}
106968abc0ccfSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
106978abc0ccfSmrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
106988abc0ccfSmrgif ${am_cv_make_support_nested_variables+:} false; then :
106997366012aSmrg  $as_echo_n "(cached) " >&6
107007a0395d0Smrgelse
107018abc0ccfSmrg  if $as_echo 'TRUE=$(BAR$(V))
107028abc0ccfSmrgBAR0=false
107038abc0ccfSmrgBAR1=true
107048abc0ccfSmrgV=1
107058abc0ccfSmrgam__doit:
107068abc0ccfSmrg	@$(TRUE)
107078abc0ccfSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
107088abc0ccfSmrg  am_cv_make_support_nested_variables=yes
107097a0395d0Smrgelse
107108abc0ccfSmrg  am_cv_make_support_nested_variables=no
107117a0395d0Smrgfi
107127a0395d0Smrgfi
107138abc0ccfSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
107148abc0ccfSmrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
107158abc0ccfSmrgif test $am_cv_make_support_nested_variables = yes; then
107168abc0ccfSmrg    AM_V='$(V)'
107178abc0ccfSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
107188abc0ccfSmrgelse
107198abc0ccfSmrg  AM_V=$AM_DEFAULT_VERBOSITY
107208abc0ccfSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
107218abc0ccfSmrgfi
107228abc0ccfSmrgAM_BACKSLASH='\'
107237a0395d0Smrg
107247a0395d0Smrg
107257a0395d0Smrg
107267a0395d0Smrgfor ac_header in net/errno.h
107272adc0320Smrgdo :
107282adc0320Smrg  ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
107292adc0320Smrgif test "x$ac_cv_header_net_errno_h" = xyes; then :
107302adc0320Smrg  cat >>confdefs.h <<_ACEOF
107312adc0320Smrg#define HAVE_NET_ERRNO_H 1
107327a0395d0Smrg_ACEOF
107337a0395d0Smrg
107347a0395d0Smrgfi
107357a0395d0Smrg
107362adc0320Smrgdone
107377a0395d0Smrg
107387a0395d0Smrg
107392adc0320Smrgfor ac_func in strlcpy
107402adc0320Smrgdo :
107412adc0320Smrg  ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
107422adc0320Smrgif test "x$ac_cv_func_strlcpy" = xyes; then :
107437a0395d0Smrg  cat >>confdefs.h <<_ACEOF
107442adc0320Smrg#define HAVE_STRLCPY 1
107457a0395d0Smrg_ACEOF
107467a0395d0Smrg
107477a0395d0Smrgfi
107487a0395d0Smrgdone
107497a0395d0Smrg
107507a0395d0Smrg
107517a0395d0Smrg# Checks for pkg-config packages
107527a0395d0Smrg
107537a0395d0Smrgpkg_failed=no
107542adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5
107557366012aSmrg$as_echo_n "checking for XAUTH... " >&6; }
107567a0395d0Smrg
107577a0395d0Smrgif test -n "$XAUTH_CFLAGS"; then
107587a0395d0Smrg    pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS"
107597a0395d0Smrg elif test -n "$PKG_CONFIG"; then
107607a0395d0Smrg    if test -n "$PKG_CONFIG" && \
107618abc0ccfSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
107628abc0ccfSmrg  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
107637a0395d0Smrg  ac_status=$?
107642adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
107652adc0320Smrg  test $ac_status = 0; }; then
107668abc0ccfSmrg  pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
107678abc0ccfSmrg		      test "x$?" != "x0" && pkg_failed=yes
107687a0395d0Smrgelse
107697a0395d0Smrg  pkg_failed=yes
107707a0395d0Smrgfi
107717a0395d0Smrg else
107727a0395d0Smrg    pkg_failed=untried
107737a0395d0Smrgfi
107747a0395d0Smrgif test -n "$XAUTH_LIBS"; then
107757a0395d0Smrg    pkg_cv_XAUTH_LIBS="$XAUTH_LIBS"
107767a0395d0Smrg elif test -n "$PKG_CONFIG"; then
107777a0395d0Smrg    if test -n "$PKG_CONFIG" && \
107788abc0ccfSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
107798abc0ccfSmrg  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
107807a0395d0Smrg  ac_status=$?
107812adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
107822adc0320Smrg  test $ac_status = 0; }; then
107838abc0ccfSmrg  pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
107848abc0ccfSmrg		      test "x$?" != "x0" && pkg_failed=yes
107857a0395d0Smrgelse
107867a0395d0Smrg  pkg_failed=yes
107877a0395d0Smrgfi
107887a0395d0Smrg else
107897a0395d0Smrg    pkg_failed=untried
107907a0395d0Smrgfi
107917a0395d0Smrg
107927a0395d0Smrg
107937a0395d0Smrg
107947a0395d0Smrgif test $pkg_failed = yes; then
107958abc0ccfSmrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107968abc0ccfSmrg$as_echo "no" >&6; }
107977a0395d0Smrg
107987a0395d0Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
107997a0395d0Smrg        _pkg_short_errors_supported=yes
108007a0395d0Smrgelse
108017a0395d0Smrg        _pkg_short_errors_supported=no
108027a0395d0Smrgfi
108037a0395d0Smrg        if test $_pkg_short_errors_supported = yes; then
108048abc0ccfSmrg	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
108057a0395d0Smrg        else
108068abc0ccfSmrg	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
108077a0395d0Smrg        fi
108087a0395d0Smrg	# Put the nasty error message in config.log where it belongs
108097a0395d0Smrg	echo "$XAUTH_PKG_ERRORS" >&5
108107a0395d0Smrg
108118abc0ccfSmrg	as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met:
108127a0395d0Smrg
108137a0395d0Smrg$XAUTH_PKG_ERRORS
108147a0395d0Smrg
108157a0395d0SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
108167a0395d0Smrginstalled software in a non-standard prefix.
108177a0395d0Smrg
108187a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS
108197a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config.
108208abc0ccfSmrgSee the pkg-config man page for more details." "$LINENO" 5
108217a0395d0Smrgelif test $pkg_failed = untried; then
108228abc0ccfSmrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
108238abc0ccfSmrg$as_echo "no" >&6; }
108242adc0320Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
108257366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
108262adc0320Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
108277a0395d0Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
108287a0395d0Smrgpath to pkg-config.
108297a0395d0Smrg
108307a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS
108317a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config.
108327a0395d0SmrgSee the pkg-config man page for more details.
108337a0395d0Smrg
108347a0395d0SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
108352adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
108367a0395d0Smrgelse
108377a0395d0Smrg	XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS
108387a0395d0Smrg	XAUTH_LIBS=$pkg_cv_XAUTH_LIBS
108392adc0320Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
108407366012aSmrg$as_echo "yes" >&6; }
108418abc0ccfSmrg
108427a0395d0Smrgfi
108437a0395d0Smrg
108447a0395d0Smrg# Transport selection macro from xtrans.m4
108457a0395d0Smrg# Needed to set *CONN defines for gethost.c & parsedpy.c
108468abc0ccfSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
108478abc0ccfSmrg$as_echo_n "checking return type of signal handlers... " >&6; }
108488abc0ccfSmrgif ${ac_cv_type_signal+:} false; then :
108498abc0ccfSmrg  $as_echo_n "(cached) " >&6
108508abc0ccfSmrgelse
108518abc0ccfSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108528abc0ccfSmrg/* end confdefs.h.  */
108538abc0ccfSmrg#include <sys/types.h>
108548abc0ccfSmrg#include <signal.h>
108558abc0ccfSmrg
108568abc0ccfSmrgint
108578abc0ccfSmrgmain ()
108588abc0ccfSmrg{
108598abc0ccfSmrgreturn *(signal (0, 0)) (0) == 1;
108608abc0ccfSmrg  ;
108618abc0ccfSmrg  return 0;
108628abc0ccfSmrg}
108638abc0ccfSmrg_ACEOF
108648abc0ccfSmrgif ac_fn_c_try_compile "$LINENO"; then :
108658abc0ccfSmrg  ac_cv_type_signal=int
108668abc0ccfSmrgelse
108678abc0ccfSmrg  ac_cv_type_signal=void
108688abc0ccfSmrgfi
108698abc0ccfSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
108708abc0ccfSmrgfi
108718abc0ccfSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
108728abc0ccfSmrg$as_echo "$ac_cv_type_signal" >&6; }
108738abc0ccfSmrg
108748abc0ccfSmrgcat >>confdefs.h <<_ACEOF
108758abc0ccfSmrg#define RETSIGTYPE $ac_cv_type_signal
108768abc0ccfSmrg_ACEOF
108778abc0ccfSmrg
108788abc0ccfSmrg
108797a0395d0Smrg
108807a0395d0Smrg
108817a0395d0Smrg
108827366012aSmrg case $host_os in
108837366012aSmrg	mingw*)	unixdef="no"   ;;
108847366012aSmrg	*)	unixdef="yes"  ;;
108857366012aSmrg esac
108867a0395d0Smrg # Check whether --enable-unix-transport was given.
108872adc0320Smrgif test "${enable_unix_transport+set}" = set; then :
108887a0395d0Smrg  enableval=$enable_unix_transport; UNIXCONN=$enableval
108897a0395d0Smrgelse
108907366012aSmrg  UNIXCONN=$unixdef
108917a0395d0Smrgfi
108927a0395d0Smrg
108932adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
108947366012aSmrg$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
108957a0395d0Smrg if test "$UNIXCONN" = "yes"; then
108967a0395d0Smrg
108972adc0320Smrg$as_echo "#define UNIXCONN 1" >>confdefs.h
108987a0395d0Smrg
108997a0395d0Smrg fi
109002adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
109017366012aSmrg$as_echo "$UNIXCONN" >&6; }
109027366012aSmrg # Check whether --enable-tcp-transport was given.
109032adc0320Smrgif test "${enable_tcp_transport+set}" = set; then :
109047366012aSmrg  enableval=$enable_tcp_transport; TCPCONN=$enableval
109057366012aSmrgelse
109067366012aSmrg  TCPCONN=yes
109077366012aSmrgfi
109087366012aSmrg
109092adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
109107366012aSmrg$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
109112adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
109127366012aSmrg$as_echo "$TCPCONN" >&6; }
109137a0395d0Smrg if test "$TCPCONN" = "yes"; then
109147a0395d0Smrg
109152adc0320Smrg$as_echo "#define TCPCONN 1" >>confdefs.h
109167a0395d0Smrg
109177a0395d0Smrg
109187a0395d0Smrg # SVR4 hides these in libraries other than libc
109192adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
109207366012aSmrg$as_echo_n "checking for library containing socket... " >&6; }
109212adc0320Smrgif ${ac_cv_search_socket+:} false; then :
109227366012aSmrg  $as_echo_n "(cached) " >&6
109237a0395d0Smrgelse
109247a0395d0Smrg  ac_func_search_save_LIBS=$LIBS
109252adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
109267a0395d0Smrg/* end confdefs.h.  */
109277a0395d0Smrg
109287a0395d0Smrg/* Override any GCC internal prototype to avoid an error.
109297a0395d0Smrg   Use char because int might match the return type of a GCC
109307a0395d0Smrg   builtin and then its argument prototype would still apply.  */
109317a0395d0Smrg#ifdef __cplusplus
109327a0395d0Smrgextern "C"
109337a0395d0Smrg#endif
109347a0395d0Smrgchar socket ();
109357a0395d0Smrgint
109367a0395d0Smrgmain ()
109377a0395d0Smrg{
109387a0395d0Smrgreturn socket ();
109397a0395d0Smrg  ;
109407a0395d0Smrg  return 0;
109417a0395d0Smrg}
109427a0395d0Smrg_ACEOF
109437a0395d0Smrgfor ac_lib in '' socket; do
109447a0395d0Smrg  if test -z "$ac_lib"; then
109457a0395d0Smrg    ac_res="none required"
109467a0395d0Smrg  else
109477a0395d0Smrg    ac_res=-l$ac_lib
109487a0395d0Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
109492adc0320Smrg  fi
109502adc0320Smrg  if ac_fn_c_try_link "$LINENO"; then :
109512adc0320Smrg  ac_cv_search_socket=$ac_res
109527a0395d0Smrgfi
109532adc0320Smrgrm -f core conftest.err conftest.$ac_objext \
109542adc0320Smrg    conftest$ac_exeext
109552adc0320Smrg  if ${ac_cv_search_socket+:} false; then :
109567a0395d0Smrg  break
109577a0395d0Smrgfi
109587a0395d0Smrgdone
109592adc0320Smrgif ${ac_cv_search_socket+:} false; then :
109602adc0320Smrg
109617a0395d0Smrgelse
109627a0395d0Smrg  ac_cv_search_socket=no
109637a0395d0Smrgfi
109647a0395d0Smrgrm conftest.$ac_ext
109657a0395d0SmrgLIBS=$ac_func_search_save_LIBS
109667a0395d0Smrgfi
109672adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
109687366012aSmrg$as_echo "$ac_cv_search_socket" >&6; }
109697a0395d0Smrgac_res=$ac_cv_search_socket
109702adc0320Smrgif test "$ac_res" != no; then :
109717a0395d0Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
109727a0395d0Smrg
109737a0395d0Smrgfi
109747a0395d0Smrg
109752adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
109767366012aSmrg$as_echo_n "checking for library containing gethostbyname... " >&6; }
109772adc0320Smrgif ${ac_cv_search_gethostbyname+:} false; then :
109787366012aSmrg  $as_echo_n "(cached) " >&6
109797a0395d0Smrgelse
109807a0395d0Smrg  ac_func_search_save_LIBS=$LIBS
109812adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
109827a0395d0Smrg/* end confdefs.h.  */
109837a0395d0Smrg
109847a0395d0Smrg/* Override any GCC internal prototype to avoid an error.
109857a0395d0Smrg   Use char because int might match the return type of a GCC
109867a0395d0Smrg   builtin and then its argument prototype would still apply.  */
109877a0395d0Smrg#ifdef __cplusplus
109887a0395d0Smrgextern "C"
109897a0395d0Smrg#endif
109907a0395d0Smrgchar gethostbyname ();
109917a0395d0Smrgint
109927a0395d0Smrgmain ()
109937a0395d0Smrg{
109947a0395d0Smrgreturn gethostbyname ();
109957a0395d0Smrg  ;
109967a0395d0Smrg  return 0;
109977a0395d0Smrg}
109987a0395d0Smrg_ACEOF
109997a0395d0Smrgfor ac_lib in '' nsl; do
110007a0395d0Smrg  if test -z "$ac_lib"; then
110017a0395d0Smrg    ac_res="none required"
110027a0395d0Smrg  else
110037a0395d0Smrg    ac_res=-l$ac_lib
110047a0395d0Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
110057a0395d0Smrg  fi
110062adc0320Smrg  if ac_fn_c_try_link "$LINENO"; then :
110077a0395d0Smrg  ac_cv_search_gethostbyname=$ac_res
110087a0395d0Smrgfi
110092adc0320Smrgrm -f core conftest.err conftest.$ac_objext \
110102adc0320Smrg    conftest$ac_exeext
110112adc0320Smrg  if ${ac_cv_search_gethostbyname+:} false; then :
110127a0395d0Smrg  break
110137a0395d0Smrgfi
110147a0395d0Smrgdone
110152adc0320Smrgif ${ac_cv_search_gethostbyname+:} false; then :
110162adc0320Smrg
110177a0395d0Smrgelse
110187a0395d0Smrg  ac_cv_search_gethostbyname=no
110197a0395d0Smrgfi
110207a0395d0Smrgrm conftest.$ac_ext
110217a0395d0SmrgLIBS=$ac_func_search_save_LIBS
110227a0395d0Smrgfi
110232adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
110247366012aSmrg$as_echo "$ac_cv_search_gethostbyname" >&6; }
110257a0395d0Smrgac_res=$ac_cv_search_gethostbyname
110262adc0320Smrgif test "$ac_res" != no; then :
110277a0395d0Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
110287a0395d0Smrg
110297a0395d0Smrgfi
110307a0395d0Smrg
110312adc0320Smrg if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
110322adc0320Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
110337366012aSmrg$as_echo_n "checking for main in -lws2_32... " >&6; }
110342adc0320Smrgif ${ac_cv_lib_ws2_32_main+:} false; then :
110357366012aSmrg  $as_echo_n "(cached) " >&6
110367366012aSmrgelse
110377366012aSmrg  ac_check_lib_save_LIBS=$LIBS
110387366012aSmrgLIBS="-lws2_32  $LIBS"
110392adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
110407366012aSmrg/* end confdefs.h.  */
110417366012aSmrg
110427366012aSmrg
110437366012aSmrgint
110447366012aSmrgmain ()
110457366012aSmrg{
110467366012aSmrgreturn main ();
110477366012aSmrg  ;
110487366012aSmrg  return 0;
110497366012aSmrg}
110507366012aSmrg_ACEOF
110512adc0320Smrgif ac_fn_c_try_link "$LINENO"; then :
110527366012aSmrg  ac_cv_lib_ws2_32_main=yes
110537366012aSmrgelse
110542adc0320Smrg  ac_cv_lib_ws2_32_main=no
110557366012aSmrgfi
110562adc0320Smrgrm -f core conftest.err conftest.$ac_objext \
110572adc0320Smrg    conftest$ac_exeext conftest.$ac_ext
110587366012aSmrgLIBS=$ac_check_lib_save_LIBS
110597366012aSmrgfi
110602adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
110617366012aSmrg$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
110622adc0320Smrgif test "x$ac_cv_lib_ws2_32_main" = xyes; then :
110637366012aSmrg  cat >>confdefs.h <<_ACEOF
110647366012aSmrg#define HAVE_LIBWS2_32 1
110657366012aSmrg_ACEOF
110667366012aSmrg
110677366012aSmrg  LIBS="-lws2_32 $LIBS"
110687366012aSmrg
110697366012aSmrgfi
110707366012aSmrgac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
110717366012aSmrg
110722adc0320Smrg fi
110737366012aSmrg
110747a0395d0Smrg # Needs to come after above checks for libsocket & libnsl for SVR4 systems
110757a0395d0Smrg # Check whether --enable-ipv6 was given.
110762adc0320Smrgif test "${enable_ipv6+set}" = set; then :
110777a0395d0Smrg  enableval=$enable_ipv6; IPV6CONN=$enableval
110787a0395d0Smrgelse
110792adc0320Smrg  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
110802adc0320Smrgif test "x$ac_cv_func_getaddrinfo" = xyes; then :
110817a0395d0Smrg  IPV6CONN=yes
110827a0395d0Smrgelse
110837a0395d0Smrg  IPV6CONN=no
110847a0395d0Smrgfi
110857a0395d0Smrg
110867a0395d0Smrgfi
110877a0395d0Smrg
110882adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
110897366012aSmrg$as_echo_n "checking if IPv6 support should be built... " >&6; }
110907a0395d0Smrg if test "$IPV6CONN" = "yes"; then
110917a0395d0Smrg
110922adc0320Smrg$as_echo "#define IPv6 1" >>confdefs.h
110937a0395d0Smrg
110947a0395d0Smrg fi
110952adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
110967366012aSmrg$as_echo "$IPV6CONN" >&6; }
110977a0395d0Smrg
110987a0395d0Smrg # 4.3BSD-Reno added a new member to struct sockaddr_in
110992adc0320Smrg ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
111007a0395d0Smrg#include <sys/types.h>
111017a0395d0Smrg#include <sys/socket.h>
111027a0395d0Smrg#include <netinet/in.h>
111037a0395d0Smrg
111042adc0320Smrg"
111052adc0320Smrgif test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
111067a0395d0Smrg
111072adc0320Smrg$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
111087366012aSmrg
111092adc0320Smrgfi
111107366012aSmrg
111117366012aSmrg
111122adc0320Smrg # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
111132adc0320Smrg ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
111142adc0320Smrg$ac_includes_default
111152adc0320Smrg#include <sys/socket.h>
111162adc0320Smrg"
111172adc0320Smrgif test "x$ac_cv_type_socklen_t" = xyes; then :
111187366012aSmrg
111192adc0320Smrgcat >>confdefs.h <<_ACEOF
111202adc0320Smrg#define HAVE_SOCKLEN_T 1
111217366012aSmrg_ACEOF
111227366012aSmrg
111237366012aSmrg
111247366012aSmrgfi
111257366012aSmrg
111267366012aSmrg
111277366012aSmrg
111282adc0320Smrg fi
111292adc0320Smrg case $host_os in
111302adc0320Smrg	solaris*|sco*|sysv4*)	localdef="yes" ;;
111312adc0320Smrg	*)			localdef="no"  ;;
111322adc0320Smrg esac
111332adc0320Smrg # Check whether --enable-local-transport was given.
111342adc0320Smrgif test "${enable_local_transport+set}" = set; then :
111352adc0320Smrg  enableval=$enable_local_transport; LOCALCONN=$enableval
111367366012aSmrgelse
111372adc0320Smrg  LOCALCONN=$localdef
111382adc0320Smrgfi
111397366012aSmrg
111402adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
111412adc0320Smrg$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
111422adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
111432adc0320Smrg$as_echo "$LOCALCONN" >&6; }
111442adc0320Smrg if test "$LOCALCONN" = "yes"; then
111457a0395d0Smrg
111462adc0320Smrg$as_echo "#define LOCALCONN 1" >>confdefs.h
111477a0395d0Smrg
111482adc0320Smrg fi
111497a0395d0Smrg
111507a0395d0Smrg
111517366012aSmrg
111527366012aSmrg
111537a0395d0Smrg
111547a0395d0Smrg
111557a0395d0Smrg
111567366012aSmrg
111572adc0320Smrg# Check whether --with-lint was given.
111582adc0320Smrgif test "${with_lint+set}" = set; then :
111592adc0320Smrg  withval=$with_lint; use_lint=$withval
111602adc0320Smrgelse
111612adc0320Smrg  use_lint=no
111627a0395d0Smrgfi
111637a0395d0Smrg
111647a0395d0Smrg
111652adc0320Smrg# Obtain platform specific info like program name and options
111662adc0320Smrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris
111672adc0320Smrgcase $host_os in
111682adc0320Smrg  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
111692adc0320Smrg	lint_name=splint
111702adc0320Smrg	lint_options="-badflag"
111712adc0320Smrg	;;
111722adc0320Smrg  *freebsd* | *netbsd*)
111732adc0320Smrg	lint_name=lint
111742adc0320Smrg	lint_options="-u -b"
111752adc0320Smrg	;;
111762adc0320Smrg  *solaris*)
111772adc0320Smrg	lint_name=lint
111782adc0320Smrg	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
111792adc0320Smrg	;;
111802adc0320Smrgesac
111817366012aSmrg
111822adc0320Smrg# Test for the presence of the program (either guessed by the code or spelled out by the user)
111832adc0320Smrgif test "x$use_lint" = x"yes" ; then
111842adc0320Smrg   # Extract the first word of "$lint_name", so it can be a program name with args.
111852adc0320Smrgset dummy $lint_name; ac_word=$2
111862adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
111872adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; }
111882adc0320Smrgif ${ac_cv_path_LINT+:} false; then :
111892adc0320Smrg  $as_echo_n "(cached) " >&6
111902adc0320Smrgelse
111912adc0320Smrg  case $LINT in
111922adc0320Smrg  [\\/]* | ?:[\\/]*)
111932adc0320Smrg  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
111942adc0320Smrg  ;;
111952adc0320Smrg  *)
111962adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111972adc0320Smrgfor as_dir in $PATH
111982adc0320Smrgdo
111992adc0320Smrg  IFS=$as_save_IFS
112002adc0320Smrg  test -z "$as_dir" && as_dir=.
112012adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
112028abc0ccfSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
112032adc0320Smrg    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
112042adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
112052adc0320Smrg    break 2
112062adc0320Smrg  fi
112072adc0320Smrgdone
112082adc0320Smrg  done
112092adc0320SmrgIFS=$as_save_IFS
112102adc0320Smrg
112112adc0320Smrg  ;;
112122adc0320Smrgesac
112132adc0320Smrgfi
112142adc0320SmrgLINT=$ac_cv_path_LINT
112152adc0320Smrgif test -n "$LINT"; then
112162adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
112172adc0320Smrg$as_echo "$LINT" >&6; }
112187a0395d0Smrgelse
112192adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
112202adc0320Smrg$as_echo "no" >&6; }
112217a0395d0Smrgfi
112227a0395d0Smrg
112237a0395d0Smrg
112242adc0320Smrg   if test "x$LINT" = "x"; then
112252adc0320Smrg        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
112262adc0320Smrg   fi
112272adc0320Smrgelif test "x$use_lint" = x"no" ; then
112282adc0320Smrg   if test "x$LINT" != "x"; then
112292adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
112302adc0320Smrg$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
112312adc0320Smrg   fi
112327a0395d0Smrgelse
112332adc0320Smrg   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
112347a0395d0Smrgfi
112357a0395d0Smrg
112362adc0320Smrg# User supplied flags override default flags
112372adc0320Smrgif test "x$LINT_FLAGS" != "x"; then
112382adc0320Smrg   lint_options=$LINT_FLAGS
112397a0395d0Smrgfi
112407a0395d0Smrg
112412adc0320SmrgLINT_FLAGS=$lint_options
112427a0395d0Smrg
112432adc0320Smrg if test "x$LINT" != x; then
112447a0395d0Smrg  LINT_TRUE=
112457a0395d0Smrg  LINT_FALSE='#'
112467a0395d0Smrgelse
112477a0395d0Smrg  LINT_TRUE='#'
112487a0395d0Smrg  LINT_FALSE=
112497a0395d0Smrgfi
112507a0395d0Smrg
112517a0395d0Smrg
112527a0395d0Smrg
112537a0395d0Smrg
112548abc0ccfSmrgac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile"
112557a0395d0Smrg
112567a0395d0Smrgcat >confcache <<\_ACEOF
112577a0395d0Smrg# This file is a shell script that caches the results of configure
112587a0395d0Smrg# tests run on this system so they can be shared between configure
112597a0395d0Smrg# scripts and configure runs, see configure's option --config-cache.
112607a0395d0Smrg# It is not useful on other systems.  If it contains results you don't
112617a0395d0Smrg# want to keep, you may remove or edit it.
112627a0395d0Smrg#
112637a0395d0Smrg# config.status only pays attention to the cache file if you give it
112647a0395d0Smrg# the --recheck option to rerun configure.
112657a0395d0Smrg#
112667a0395d0Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
112677a0395d0Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
112687a0395d0Smrg# following values.
112697a0395d0Smrg
112707a0395d0Smrg_ACEOF
112717a0395d0Smrg
112727a0395d0Smrg# The following way of writing the cache mishandles newlines in values,
112737a0395d0Smrg# but we know of no workaround that is simple, portable, and efficient.
112747a0395d0Smrg# So, we kill variables containing newlines.
112757a0395d0Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
112767a0395d0Smrg# and sets the high bit in the cache file unless we assign to the vars.
112777a0395d0Smrg(
112787a0395d0Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
112797a0395d0Smrg    eval ac_val=\$$ac_var
112807a0395d0Smrg    case $ac_val in #(
112817a0395d0Smrg    *${as_nl}*)
112827a0395d0Smrg      case $ac_var in #(
112832adc0320Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
112847366012aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
112857a0395d0Smrg      esac
112867a0395d0Smrg      case $ac_var in #(
112877a0395d0Smrg      _ | IFS | as_nl) ;; #(
112887366012aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
112892adc0320Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
112907a0395d0Smrg      esac ;;
112917a0395d0Smrg    esac
112927a0395d0Smrg  done
112937a0395d0Smrg
112947a0395d0Smrg  (set) 2>&1 |
112957a0395d0Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
112967a0395d0Smrg    *${as_nl}ac_space=\ *)
112972adc0320Smrg      # `set' does not quote correctly, so add quotes: double-quote
112982adc0320Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
112997a0395d0Smrg      sed -n \
113007a0395d0Smrg	"s/'/'\\\\''/g;
113017a0395d0Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
113027a0395d0Smrg      ;; #(
113037a0395d0Smrg    *)
113047a0395d0Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
113057a0395d0Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
113067a0395d0Smrg      ;;
113077a0395d0Smrg    esac |
113087a0395d0Smrg    sort
113097a0395d0Smrg) |
113107a0395d0Smrg  sed '
113117a0395d0Smrg     /^ac_cv_env_/b end
113127a0395d0Smrg     t clear
113137a0395d0Smrg     :clear
113147a0395d0Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
113157a0395d0Smrg     t end
113167a0395d0Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
113177a0395d0Smrg     :end' >>confcache
113187a0395d0Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
113197a0395d0Smrg  if test -w "$cache_file"; then
113202adc0320Smrg    if test "x$cache_file" != "x/dev/null"; then
113212adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
113227366012aSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
113232adc0320Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
113242adc0320Smrg	cat confcache >"$cache_file"
113252adc0320Smrg      else
113262adc0320Smrg        case $cache_file in #(
113272adc0320Smrg        */* | ?:*)
113282adc0320Smrg	  mv -f confcache "$cache_file"$$ &&
113292adc0320Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
113302adc0320Smrg        *)
113312adc0320Smrg	  mv -f confcache "$cache_file" ;;
113322adc0320Smrg	esac
113332adc0320Smrg      fi
113342adc0320Smrg    fi
113357a0395d0Smrg  else
113362adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
113377366012aSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
113387a0395d0Smrg  fi
113397a0395d0Smrgfi
113407a0395d0Smrgrm -f confcache
113417a0395d0Smrg
113427a0395d0Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
113437a0395d0Smrg# Let make expand exec_prefix.
113447a0395d0Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
113457a0395d0Smrg
113467a0395d0SmrgDEFS=-DHAVE_CONFIG_H
113477a0395d0Smrg
113487a0395d0Smrgac_libobjs=
113497a0395d0Smrgac_ltlibobjs=
113502adc0320SmrgU=
113517a0395d0Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
113527a0395d0Smrg  # 1. Remove the extension, and $U if already installed.
113537a0395d0Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
113547366012aSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
113557a0395d0Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
113567a0395d0Smrg  #    will be set to the directory where LIBOBJS objects are built.
113572adc0320Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
113582adc0320Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
113597a0395d0Smrgdone
113607a0395d0SmrgLIBOBJS=$ac_libobjs
113617a0395d0Smrg
113627a0395d0SmrgLTLIBOBJS=$ac_ltlibobjs
113637a0395d0Smrg
113647a0395d0Smrg
113658abc0ccfSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
113668abc0ccfSmrg$as_echo_n "checking that generated files are newer than configure... " >&6; }
113678abc0ccfSmrg   if test -n "$am_sleep_pid"; then
113688abc0ccfSmrg     # Hide warnings about reused PIDs.
113698abc0ccfSmrg     wait $am_sleep_pid 2>/dev/null
113708abc0ccfSmrg   fi
113718abc0ccfSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
113728abc0ccfSmrg$as_echo "done" >&6; }
113737366012aSmrg if test -n "$EXEEXT"; then
113747366012aSmrg  am__EXEEXT_TRUE=
113757366012aSmrg  am__EXEEXT_FALSE='#'
113767366012aSmrgelse
113777366012aSmrg  am__EXEEXT_TRUE='#'
113787366012aSmrg  am__EXEEXT_FALSE=
113797366012aSmrgfi
113807366012aSmrg
113817a0395d0Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
113822adc0320Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
113832adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
113847a0395d0Smrgfi
113857a0395d0Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
113862adc0320Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
113872adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
113887a0395d0Smrgfi
113897a0395d0Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
113902adc0320Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
113912adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
113927a0395d0Smrgfi
113937a0395d0Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
113942adc0320Smrg  as_fn_error $? "conditional \"LINT\" was never defined.
113952adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
113967a0395d0Smrgfi
113977a0395d0Smrg
113982adc0320Smrg: "${CONFIG_STATUS=./config.status}"
113997366012aSmrgac_write_fail=0
114007a0395d0Smrgac_clean_files_save=$ac_clean_files
114017a0395d0Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
114022adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
114037366012aSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
114042adc0320Smrgas_write_fail=0
114052adc0320Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
114067a0395d0Smrg#! $SHELL
114077a0395d0Smrg# Generated by $as_me.
114087a0395d0Smrg# Run this file to recreate the current configuration.
114097a0395d0Smrg# Compiler output produced by configure, useful for debugging
114107a0395d0Smrg# configure, is in config.log if it exists.
114117a0395d0Smrg
114127a0395d0Smrgdebug=false
114137a0395d0Smrgac_cs_recheck=false
114147a0395d0Smrgac_cs_silent=false
114157a0395d0Smrg
114162adc0320SmrgSHELL=\${CONFIG_SHELL-$SHELL}
114172adc0320Smrgexport SHELL
114182adc0320Smrg_ASEOF
114192adc0320Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
114202adc0320Smrg## -------------------- ##
114212adc0320Smrg## M4sh Initialization. ##
114222adc0320Smrg## -------------------- ##
114237a0395d0Smrg
114247a0395d0Smrg# Be more Bourne compatible
114257a0395d0SmrgDUALCASE=1; export DUALCASE # for MKS sh
114262adc0320Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
114277a0395d0Smrg  emulate sh
114287a0395d0Smrg  NULLCMD=:
114297366012aSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
114307a0395d0Smrg  # is contrary to our usage.  Disable this feature.
114317a0395d0Smrg  alias -g '${1+"$@"}'='"$@"'
114327a0395d0Smrg  setopt NO_GLOB_SUBST
114337a0395d0Smrgelse
114342adc0320Smrg  case `(set -o) 2>/dev/null` in #(
114352adc0320Smrg  *posix*) :
114362adc0320Smrg    set -o posix ;; #(
114372adc0320Smrg  *) :
114382adc0320Smrg     ;;
114397a0395d0Smrgesac
114407a0395d0Smrgfi
114417a0395d0Smrg
114427a0395d0Smrg
114437366012aSmrgas_nl='
114447366012aSmrg'
114457366012aSmrgexport as_nl
114467366012aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
114477366012aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
114487366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
114497366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
114502adc0320Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
114512adc0320Smrg# but without wasting forks for bash or zsh.
114522adc0320Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
114532adc0320Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
114542adc0320Smrg  as_echo='print -r --'
114552adc0320Smrg  as_echo_n='print -rn --'
114562adc0320Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
114577366012aSmrg  as_echo='printf %s\n'
114587366012aSmrg  as_echo_n='printf %s'
114597366012aSmrgelse
114607366012aSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
114617366012aSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
114627366012aSmrg    as_echo_n='/usr/ucb/echo -n'
114637a0395d0Smrg  else
114647366012aSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
114657366012aSmrg    as_echo_n_body='eval
114667366012aSmrg      arg=$1;
114672adc0320Smrg      case $arg in #(
114687366012aSmrg      *"$as_nl"*)
114697366012aSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
114707366012aSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
114717366012aSmrg      esac;
114727366012aSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
114737366012aSmrg    '
114747366012aSmrg    export as_echo_n_body
114757366012aSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
114767a0395d0Smrg  fi
114777366012aSmrg  export as_echo_body
114787366012aSmrg  as_echo='sh -c $as_echo_body as_echo'
114797366012aSmrgfi
114807366012aSmrg
114817366012aSmrg# The user is always right.
114827366012aSmrgif test "${PATH_SEPARATOR+set}" != set; then
114837366012aSmrg  PATH_SEPARATOR=:
114847366012aSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
114857366012aSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
114867366012aSmrg      PATH_SEPARATOR=';'
114877366012aSmrg  }
114887a0395d0Smrgfi
114897a0395d0Smrg
114907a0395d0Smrg
114917a0395d0Smrg# IFS
114927a0395d0Smrg# We need space, tab and new line, in precisely that order.  Quoting is
114937a0395d0Smrg# there to prevent editors from complaining about space-tab.
114947a0395d0Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
114957a0395d0Smrg# splitting by setting IFS to empty value.)
114967a0395d0SmrgIFS=" ""	$as_nl"
114977a0395d0Smrg
114987a0395d0Smrg# Find who we are.  Look in the path if we contain no directory separator.
114992adc0320Smrgas_myself=
115002adc0320Smrgcase $0 in #((
115017a0395d0Smrg  *[\\/]* ) as_myself=$0 ;;
115027a0395d0Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115037a0395d0Smrgfor as_dir in $PATH
115047a0395d0Smrgdo
115057a0395d0Smrg  IFS=$as_save_IFS
115067a0395d0Smrg  test -z "$as_dir" && as_dir=.
115072adc0320Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115082adc0320Smrg  done
115097a0395d0SmrgIFS=$as_save_IFS
115107a0395d0Smrg
115117a0395d0Smrg     ;;
115127a0395d0Smrgesac
115137a0395d0Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
115147a0395d0Smrg# in which case we are not to be found in the path.
115157a0395d0Smrgif test "x$as_myself" = x; then
115167a0395d0Smrg  as_myself=$0
115177a0395d0Smrgfi
115187a0395d0Smrgif test ! -f "$as_myself"; then
115197366012aSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115202adc0320Smrg  exit 1
115217a0395d0Smrgfi
115227a0395d0Smrg
115232adc0320Smrg# Unset variables that we do not need and which cause bugs (e.g. in
115242adc0320Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115252adc0320Smrg# suppresses any "Segmentation fault" message there.  '((' could
115262adc0320Smrg# trigger a bug in pdksh 5.2.14.
115272adc0320Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
115282adc0320Smrgdo eval test x\${$as_var+set} = xset \
115292adc0320Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
115307a0395d0Smrgdone
115317a0395d0SmrgPS1='$ '
115327a0395d0SmrgPS2='> '
115337a0395d0SmrgPS4='+ '
115347a0395d0Smrg
115357a0395d0Smrg# NLS nuisances.
115367366012aSmrgLC_ALL=C
115377366012aSmrgexport LC_ALL
115387366012aSmrgLANGUAGE=C
115397366012aSmrgexport LANGUAGE
115407a0395d0Smrg
115412adc0320Smrg# CDPATH.
115422adc0320Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
115432adc0320Smrg
115442adc0320Smrg
115452adc0320Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
115462adc0320Smrg# ----------------------------------------
115472adc0320Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
115482adc0320Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
115492adc0320Smrg# script with STATUS, using 1 if that was 0.
115502adc0320Smrgas_fn_error ()
115512adc0320Smrg{
115522adc0320Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
115532adc0320Smrg  if test "$4"; then
115542adc0320Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
115552adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
115562adc0320Smrg  fi
115572adc0320Smrg  $as_echo "$as_me: error: $2" >&2
115582adc0320Smrg  as_fn_exit $as_status
115592adc0320Smrg} # as_fn_error
115602adc0320Smrg
115612adc0320Smrg
115622adc0320Smrg# as_fn_set_status STATUS
115632adc0320Smrg# -----------------------
115642adc0320Smrg# Set $? to STATUS, without forking.
115652adc0320Smrgas_fn_set_status ()
115662adc0320Smrg{
115672adc0320Smrg  return $1
115682adc0320Smrg} # as_fn_set_status
115692adc0320Smrg
115702adc0320Smrg# as_fn_exit STATUS
115712adc0320Smrg# -----------------
115722adc0320Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
115732adc0320Smrgas_fn_exit ()
115742adc0320Smrg{
115752adc0320Smrg  set +e
115762adc0320Smrg  as_fn_set_status $1
115772adc0320Smrg  exit $1
115782adc0320Smrg} # as_fn_exit
115792adc0320Smrg
115802adc0320Smrg# as_fn_unset VAR
115812adc0320Smrg# ---------------
115822adc0320Smrg# Portably unset VAR.
115832adc0320Smrgas_fn_unset ()
115842adc0320Smrg{
115852adc0320Smrg  { eval $1=; unset $1;}
115862adc0320Smrg}
115872adc0320Smrgas_unset=as_fn_unset
115882adc0320Smrg# as_fn_append VAR VALUE
115892adc0320Smrg# ----------------------
115902adc0320Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
115912adc0320Smrg# advantage of any shell optimizations that allow amortized linear growth over
115922adc0320Smrg# repeated appends, instead of the typical quadratic growth present in naive
115932adc0320Smrg# implementations.
115942adc0320Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
115952adc0320Smrg  eval 'as_fn_append ()
115962adc0320Smrg  {
115972adc0320Smrg    eval $1+=\$2
115982adc0320Smrg  }'
115992adc0320Smrgelse
116002adc0320Smrg  as_fn_append ()
116012adc0320Smrg  {
116022adc0320Smrg    eval $1=\$$1\$2
116032adc0320Smrg  }
116042adc0320Smrgfi # as_fn_append
116052adc0320Smrg
116062adc0320Smrg# as_fn_arith ARG...
116072adc0320Smrg# ------------------
116082adc0320Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
116092adc0320Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
116102adc0320Smrg# must be portable across $(()) and expr.
116112adc0320Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
116122adc0320Smrg  eval 'as_fn_arith ()
116132adc0320Smrg  {
116142adc0320Smrg    as_val=$(( $* ))
116152adc0320Smrg  }'
116162adc0320Smrgelse
116172adc0320Smrg  as_fn_arith ()
116182adc0320Smrg  {
116192adc0320Smrg    as_val=`expr "$@" || test $? -eq 1`
116202adc0320Smrg  }
116212adc0320Smrgfi # as_fn_arith
116222adc0320Smrg
116232adc0320Smrg
116247a0395d0Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
116257a0395d0Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
116267a0395d0Smrg  as_expr=expr
116277a0395d0Smrgelse
116287a0395d0Smrg  as_expr=false
116297a0395d0Smrgfi
116307a0395d0Smrg
116317a0395d0Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
116327a0395d0Smrg  as_basename=basename
116337a0395d0Smrgelse
116347a0395d0Smrg  as_basename=false
116357a0395d0Smrgfi
116367a0395d0Smrg
116372adc0320Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
116382adc0320Smrg  as_dirname=dirname
116392adc0320Smrgelse
116402adc0320Smrg  as_dirname=false
116412adc0320Smrgfi
116427a0395d0Smrg
116437a0395d0Smrgas_me=`$as_basename -- "$0" ||
116447a0395d0Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
116457a0395d0Smrg	 X"$0" : 'X\(//\)$' \| \
116467a0395d0Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
116477366012aSmrg$as_echo X/"$0" |
116487a0395d0Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
116497a0395d0Smrg	    s//\1/
116507a0395d0Smrg	    q
116517a0395d0Smrg	  }
116527a0395d0Smrg	  /^X\/\(\/\/\)$/{
116537a0395d0Smrg	    s//\1/
116547a0395d0Smrg	    q
116557a0395d0Smrg	  }
116567a0395d0Smrg	  /^X\/\(\/\).*/{
116577a0395d0Smrg	    s//\1/
116587a0395d0Smrg	    q
116597a0395d0Smrg	  }
116607a0395d0Smrg	  s/.*/./; q'`
116617a0395d0Smrg
116622adc0320Smrg# Avoid depending upon Character Ranges.
116632adc0320Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
116642adc0320Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
116652adc0320Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
116662adc0320Smrgas_cr_digits='0123456789'
116672adc0320Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
116687a0395d0Smrg
116697a0395d0SmrgECHO_C= ECHO_N= ECHO_T=
116702adc0320Smrgcase `echo -n x` in #(((((
116717a0395d0Smrg-n*)
116722adc0320Smrg  case `echo 'xy\c'` in
116737a0395d0Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
116742adc0320Smrg  xy)  ECHO_C='\c';;
116752adc0320Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
116762adc0320Smrg       ECHO_T='	';;
116777a0395d0Smrg  esac;;
116787a0395d0Smrg*)
116797a0395d0Smrg  ECHO_N='-n';;
116807a0395d0Smrgesac
116817a0395d0Smrg
116827a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.file
116837a0395d0Smrgif test -d conf$$.dir; then
116847a0395d0Smrg  rm -f conf$$.dir/conf$$.file
116857a0395d0Smrgelse
116867a0395d0Smrg  rm -f conf$$.dir
116877366012aSmrg  mkdir conf$$.dir 2>/dev/null
116887366012aSmrgfi
116897366012aSmrgif (echo >conf$$.file) 2>/dev/null; then
116907366012aSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
116917366012aSmrg    as_ln_s='ln -s'
116927366012aSmrg    # ... but there are two gotchas:
116937366012aSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
116947366012aSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
116958abc0ccfSmrg    # In both cases, we have to default to `cp -pR'.
116967366012aSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
116978abc0ccfSmrg      as_ln_s='cp -pR'
116987366012aSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
116997366012aSmrg    as_ln_s=ln
117007366012aSmrg  else
117018abc0ccfSmrg    as_ln_s='cp -pR'
117027366012aSmrg  fi
117037a0395d0Smrgelse
117048abc0ccfSmrg  as_ln_s='cp -pR'
117057a0395d0Smrgfi
117067a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
117077a0395d0Smrgrmdir conf$$.dir 2>/dev/null
117087a0395d0Smrg
117092adc0320Smrg
117102adc0320Smrg# as_fn_mkdir_p
117112adc0320Smrg# -------------
117122adc0320Smrg# Create "$as_dir" as a directory, including parents if necessary.
117132adc0320Smrgas_fn_mkdir_p ()
117142adc0320Smrg{
117152adc0320Smrg
117162adc0320Smrg  case $as_dir in #(
117172adc0320Smrg  -*) as_dir=./$as_dir;;
117182adc0320Smrg  esac
117192adc0320Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
117202adc0320Smrg    as_dirs=
117212adc0320Smrg    while :; do
117222adc0320Smrg      case $as_dir in #(
117232adc0320Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
117242adc0320Smrg      *) as_qdir=$as_dir;;
117252adc0320Smrg      esac
117262adc0320Smrg      as_dirs="'$as_qdir' $as_dirs"
117272adc0320Smrg      as_dir=`$as_dirname -- "$as_dir" ||
117282adc0320Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
117292adc0320Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
117302adc0320Smrg	 X"$as_dir" : 'X\(//\)$' \| \
117312adc0320Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
117322adc0320Smrg$as_echo X"$as_dir" |
117332adc0320Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
117342adc0320Smrg	    s//\1/
117352adc0320Smrg	    q
117362adc0320Smrg	  }
117372adc0320Smrg	  /^X\(\/\/\)[^/].*/{
117382adc0320Smrg	    s//\1/
117392adc0320Smrg	    q
117402adc0320Smrg	  }
117412adc0320Smrg	  /^X\(\/\/\)$/{
117422adc0320Smrg	    s//\1/
117432adc0320Smrg	    q
117442adc0320Smrg	  }
117452adc0320Smrg	  /^X\(\/\).*/{
117462adc0320Smrg	    s//\1/
117472adc0320Smrg	    q
117482adc0320Smrg	  }
117492adc0320Smrg	  s/.*/./; q'`
117502adc0320Smrg      test -d "$as_dir" && break
117512adc0320Smrg    done
117522adc0320Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
117532adc0320Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
117542adc0320Smrg
117552adc0320Smrg
117562adc0320Smrg} # as_fn_mkdir_p
117577a0395d0Smrgif mkdir -p . 2>/dev/null; then
117582adc0320Smrg  as_mkdir_p='mkdir -p "$as_dir"'
117597a0395d0Smrgelse
117607a0395d0Smrg  test -d ./-p && rmdir ./-p
117617a0395d0Smrg  as_mkdir_p=false
117627a0395d0Smrgfi
117637a0395d0Smrg
117648abc0ccfSmrg
117658abc0ccfSmrg# as_fn_executable_p FILE
117668abc0ccfSmrg# -----------------------
117678abc0ccfSmrg# Test if FILE is an executable regular file.
117688abc0ccfSmrgas_fn_executable_p ()
117698abc0ccfSmrg{
117708abc0ccfSmrg  test -f "$1" && test -x "$1"
117718abc0ccfSmrg} # as_fn_executable_p
117728abc0ccfSmrgas_test_x='test -x'
117738abc0ccfSmrgas_executable_p=as_fn_executable_p
117747a0395d0Smrg
117757a0395d0Smrg# Sed expression to map a string onto a valid CPP name.
117767a0395d0Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
117777a0395d0Smrg
117787a0395d0Smrg# Sed expression to map a string onto a valid variable name.
117797a0395d0Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
117807a0395d0Smrg
117817a0395d0Smrg
117827a0395d0Smrgexec 6>&1
117832adc0320Smrg## ----------------------------------- ##
117842adc0320Smrg## Main body of $CONFIG_STATUS script. ##
117852adc0320Smrg## ----------------------------------- ##
117862adc0320Smrg_ASEOF
117872adc0320Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
117887a0395d0Smrg
117892adc0320Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
117902adc0320Smrg# Save the log message, to keep $0 and so on meaningful, and to
117917a0395d0Smrg# report actual input values of CONFIG_FILES etc. instead of their
117927a0395d0Smrg# values after options handling.
117937a0395d0Smrgac_log="
117948abc0ccfSmrgThis file was extended by xauth $as_me 1.0.8, which was
117958abc0ccfSmrggenerated by GNU Autoconf 2.69.  Invocation command line was
117967a0395d0Smrg
117977a0395d0Smrg  CONFIG_FILES    = $CONFIG_FILES
117987a0395d0Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
117997a0395d0Smrg  CONFIG_LINKS    = $CONFIG_LINKS
118007a0395d0Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
118017a0395d0Smrg  $ $0 $@
118027a0395d0Smrg
118037a0395d0Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
118047a0395d0Smrg"
118057a0395d0Smrg
118067a0395d0Smrg_ACEOF
118077a0395d0Smrg
118087366012aSmrgcase $ac_config_files in *"
118097366012aSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
118107366012aSmrgesac
118117366012aSmrg
118127366012aSmrgcase $ac_config_headers in *"
118137366012aSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
118147366012aSmrgesac
118157366012aSmrg
118167366012aSmrg
118177366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
118187a0395d0Smrg# Files that config.status was made for.
118197a0395d0Smrgconfig_files="$ac_config_files"
118207a0395d0Smrgconfig_headers="$ac_config_headers"
118217a0395d0Smrgconfig_commands="$ac_config_commands"
118227a0395d0Smrg
118237a0395d0Smrg_ACEOF
118247a0395d0Smrg
118257366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
118267a0395d0Smrgac_cs_usage="\
118272adc0320Smrg\`$as_me' instantiates files and other configuration actions
118282adc0320Smrgfrom templates according to the current configuration.  Unless the files
118292adc0320Smrgand actions are specified as TAGs, all are instantiated by default.
118307a0395d0Smrg
118312adc0320SmrgUsage: $0 [OPTION]... [TAG]...
118327a0395d0Smrg
118337a0395d0Smrg  -h, --help       print this help, then exit
118347a0395d0Smrg  -V, --version    print version number and configuration settings, then exit
118352adc0320Smrg      --config     print configuration, then exit
118367366012aSmrg  -q, --quiet, --silent
118377366012aSmrg                   do not print progress messages
118387a0395d0Smrg  -d, --debug      don't remove temporary files
118397a0395d0Smrg      --recheck    update $as_me by reconfiguring in the same conditions
118407366012aSmrg      --file=FILE[:TEMPLATE]
118417366012aSmrg                   instantiate the configuration file FILE
118427366012aSmrg      --header=FILE[:TEMPLATE]
118437366012aSmrg                   instantiate the configuration header FILE
118447a0395d0Smrg
118457a0395d0SmrgConfiguration files:
118467a0395d0Smrg$config_files
118477a0395d0Smrg
118487a0395d0SmrgConfiguration headers:
118497a0395d0Smrg$config_headers
118507a0395d0Smrg
118517a0395d0SmrgConfiguration commands:
118527a0395d0Smrg$config_commands
118537a0395d0Smrg
118542adc0320SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
118557a0395d0Smrg
118567a0395d0Smrg_ACEOF
118577366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
118582adc0320Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
118597a0395d0Smrgac_cs_version="\\
118608abc0ccfSmrgxauth config.status 1.0.8
118618abc0ccfSmrgconfigured by $0, generated by GNU Autoconf 2.69,
118622adc0320Smrg  with options \\"\$ac_cs_config\\"
118637a0395d0Smrg
118648abc0ccfSmrgCopyright (C) 2012 Free Software Foundation, Inc.
118657a0395d0SmrgThis config.status script is free software; the Free Software Foundation
118667a0395d0Smrggives unlimited permission to copy, distribute and modify it."
118677a0395d0Smrg
118687a0395d0Smrgac_pwd='$ac_pwd'
118697a0395d0Smrgsrcdir='$srcdir'
118707a0395d0SmrgINSTALL='$INSTALL'
118717a0395d0SmrgMKDIR_P='$MKDIR_P'
118727366012aSmrgAWK='$AWK'
118737366012aSmrgtest -n "\$AWK" || AWK=awk
118747a0395d0Smrg_ACEOF
118757a0395d0Smrg
118767366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
118777366012aSmrg# The default lists apply if the user does not specify any file.
118787a0395d0Smrgac_need_defaults=:
118797a0395d0Smrgwhile test $# != 0
118807a0395d0Smrgdo
118817a0395d0Smrg  case $1 in
118822adc0320Smrg  --*=?*)
118837a0395d0Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
118847a0395d0Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
118857a0395d0Smrg    ac_shift=:
118867a0395d0Smrg    ;;
118872adc0320Smrg  --*=)
118882adc0320Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
118892adc0320Smrg    ac_optarg=
118902adc0320Smrg    ac_shift=:
118912adc0320Smrg    ;;
118927a0395d0Smrg  *)
118937a0395d0Smrg    ac_option=$1
118947a0395d0Smrg    ac_optarg=$2
118957a0395d0Smrg    ac_shift=shift
118967a0395d0Smrg    ;;
118977a0395d0Smrg  esac
118987a0395d0Smrg
118997a0395d0Smrg  case $ac_option in
119007a0395d0Smrg  # Handling of the options.
119017a0395d0Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
119027a0395d0Smrg    ac_cs_recheck=: ;;
119037a0395d0Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
119047366012aSmrg    $as_echo "$ac_cs_version"; exit ;;
119052adc0320Smrg  --config | --confi | --conf | --con | --co | --c )
119062adc0320Smrg    $as_echo "$ac_cs_config"; exit ;;
119077a0395d0Smrg  --debug | --debu | --deb | --de | --d | -d )
119087a0395d0Smrg    debug=: ;;
119097a0395d0Smrg  --file | --fil | --fi | --f )
119107a0395d0Smrg    $ac_shift
119117366012aSmrg    case $ac_optarg in
119127366012aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
119132adc0320Smrg    '') as_fn_error $? "missing file argument" ;;
119147366012aSmrg    esac
119152adc0320Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
119167a0395d0Smrg    ac_need_defaults=false;;
119177a0395d0Smrg  --header | --heade | --head | --hea )
119187a0395d0Smrg    $ac_shift
119197366012aSmrg    case $ac_optarg in
119207366012aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
119217366012aSmrg    esac
119222adc0320Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
119237a0395d0Smrg    ac_need_defaults=false;;
119247a0395d0Smrg  --he | --h)
119257a0395d0Smrg    # Conflict between --help and --header
119262adc0320Smrg    as_fn_error $? "ambiguous option: \`$1'
119272adc0320SmrgTry \`$0 --help' for more information.";;
119287a0395d0Smrg  --help | --hel | -h )
119297366012aSmrg    $as_echo "$ac_cs_usage"; exit ;;
119307a0395d0Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
119317a0395d0Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
119327a0395d0Smrg    ac_cs_silent=: ;;
119337a0395d0Smrg
119347a0395d0Smrg  # This is an error.
119352adc0320Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
119362adc0320SmrgTry \`$0 --help' for more information." ;;
119377a0395d0Smrg
119382adc0320Smrg  *) as_fn_append ac_config_targets " $1"
119397a0395d0Smrg     ac_need_defaults=false ;;
119407a0395d0Smrg
119417a0395d0Smrg  esac
119427a0395d0Smrg  shift
119437a0395d0Smrgdone
119447a0395d0Smrg
119457a0395d0Smrgac_configure_extra_args=
119467a0395d0Smrg
119477a0395d0Smrgif $ac_cs_silent; then
119487a0395d0Smrg  exec 6>/dev/null
119497a0395d0Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
119507a0395d0Smrgfi
119517a0395d0Smrg
119527a0395d0Smrg_ACEOF
119537366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
119547a0395d0Smrgif \$ac_cs_recheck; then
119558abc0ccfSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
119567366012aSmrg  shift
119577366012aSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
119587366012aSmrg  CONFIG_SHELL='$SHELL'
119597a0395d0Smrg  export CONFIG_SHELL
119607366012aSmrg  exec "\$@"
119617a0395d0Smrgfi
119627a0395d0Smrg
119637a0395d0Smrg_ACEOF
119647366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
119657a0395d0Smrgexec 5>>config.log
119667a0395d0Smrg{
119677a0395d0Smrg  echo
119687a0395d0Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
119697a0395d0Smrg## Running $as_me. ##
119707a0395d0Smrg_ASBOX
119717366012aSmrg  $as_echo "$ac_log"
119727a0395d0Smrg} >&5
119737a0395d0Smrg
119747a0395d0Smrg_ACEOF
119757366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
119767a0395d0Smrg#
119777a0395d0Smrg# INIT-COMMANDS
119787a0395d0Smrg#
119797a0395d0SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
119807a0395d0Smrg
119817a0395d0Smrg_ACEOF
119827a0395d0Smrg
119837366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
119847a0395d0Smrg
119857a0395d0Smrg# Handling of arguments.
119867a0395d0Smrgfor ac_config_target in $ac_config_targets
119877a0395d0Smrgdo
119887a0395d0Smrg  case $ac_config_target in
119897a0395d0Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
119907a0395d0Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
119917a0395d0Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
119928abc0ccfSmrg    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
119932852888eSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
119947a0395d0Smrg
119952adc0320Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
119967a0395d0Smrg  esac
119977a0395d0Smrgdone
119987a0395d0Smrg
119997a0395d0Smrg
120007a0395d0Smrg# If the user did not use the arguments to specify the items to instantiate,
120017a0395d0Smrg# then the envvar interface is used.  Set only those that are not.
120027a0395d0Smrg# We use the long form for the default assignment because of an extremely
120037a0395d0Smrg# bizarre bug on SunOS 4.1.3.
120047a0395d0Smrgif $ac_need_defaults; then
120057a0395d0Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
120067a0395d0Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
120077a0395d0Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
120087a0395d0Smrgfi
120097a0395d0Smrg
120107a0395d0Smrg# Have a temporary directory for convenience.  Make it in the build tree
120117a0395d0Smrg# simply because there is no reason against having it here, and in addition,
120127a0395d0Smrg# creating and moving files from /tmp can sometimes cause problems.
120137a0395d0Smrg# Hook for its removal unless debugging.
120147a0395d0Smrg# Note that there is a small window in which the directory will not be cleaned:
120157a0395d0Smrg# after its creation but before its name has been assigned to `$tmp'.
120167a0395d0Smrg$debug ||
120177a0395d0Smrg{
120182adc0320Smrg  tmp= ac_tmp=
120197a0395d0Smrg  trap 'exit_status=$?
120202adc0320Smrg  : "${ac_tmp:=$tmp}"
120212adc0320Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
120227a0395d0Smrg' 0
120232adc0320Smrg  trap 'as_fn_exit 1' 1 2 13 15
120247a0395d0Smrg}
120257a0395d0Smrg# Create a (secure) tmp directory for tmp files.
120267a0395d0Smrg
120277a0395d0Smrg{
120287a0395d0Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
120292adc0320Smrg  test -d "$tmp"
120307a0395d0Smrg}  ||
120317a0395d0Smrg{
120327a0395d0Smrg  tmp=./conf$$-$RANDOM
120337a0395d0Smrg  (umask 077 && mkdir "$tmp")
120342adc0320Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
120352adc0320Smrgac_tmp=$tmp
120367a0395d0Smrg
120377366012aSmrg# Set up the scripts for CONFIG_FILES section.
120387366012aSmrg# No need to generate them if there are no CONFIG_FILES.
120397366012aSmrg# This happens for instance with `./config.status config.h'.
120407a0395d0Smrgif test -n "$CONFIG_FILES"; then
120417a0395d0Smrg
120427a0395d0Smrg
120432adc0320Smrgac_cr=`echo X | tr X '\015'`
120442adc0320Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
120452adc0320Smrg# But we know of no other shell where ac_cr would be empty at this
120462adc0320Smrg# point, so we can use a bashism as a fallback.
120472adc0320Smrgif test "x$ac_cr" = x; then
120482adc0320Smrg  eval ac_cr=\$\'\\r\'
120492adc0320Smrgfi
120507366012aSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
120517366012aSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
120527366012aSmrg  ac_cs_awk_cr='\\r'
120537366012aSmrgelse
120547366012aSmrg  ac_cs_awk_cr=$ac_cr
120557a0395d0Smrgfi
120567a0395d0Smrg
120572adc0320Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
120587a0395d0Smrg_ACEOF
120597a0395d0Smrg
120607a0395d0Smrg
120617366012aSmrg{
120627366012aSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
120637366012aSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
120647366012aSmrg  echo "_ACEOF"
120657366012aSmrg} >conf$$subs.sh ||
120662adc0320Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
120672adc0320Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
120687a0395d0Smrgac_delim='%!_!# '
120697a0395d0Smrgfor ac_last_try in false false false false false :; do
120707366012aSmrg  . ./conf$$subs.sh ||
120712adc0320Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
120727a0395d0Smrg
120737366012aSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
120747366012aSmrg  if test $ac_delim_n = $ac_delim_num; then
120757a0395d0Smrg    break
120767a0395d0Smrg  elif $ac_last_try; then
120772adc0320Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
120787a0395d0Smrg  else
120797a0395d0Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
120807a0395d0Smrg  fi
120817a0395d0Smrgdone
120827366012aSmrgrm -f conf$$subs.sh
120837a0395d0Smrg
120847366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
120852adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
120867366012aSmrg_ACEOF
120877366012aSmrgsed -n '
120887366012aSmrgh
120897366012aSmrgs/^/S["/; s/!.*/"]=/
120907366012aSmrgp
120917366012aSmrgg
120927366012aSmrgs/^[^!]*!//
120937366012aSmrg:repl
120947366012aSmrgt repl
120957366012aSmrgs/'"$ac_delim"'$//
120967366012aSmrgt delim
120977366012aSmrg:nl
120987366012aSmrgh
120992adc0320Smrgs/\(.\{148\}\)..*/\1/
121007366012aSmrgt more1
121017366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
121027366012aSmrgp
121037366012aSmrgn
121047366012aSmrgb repl
121057366012aSmrg:more1
121067366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
121077366012aSmrgp
121087366012aSmrgg
121097366012aSmrgs/.\{148\}//
121107366012aSmrgt nl
121117366012aSmrg:delim
121127366012aSmrgh
121132adc0320Smrgs/\(.\{148\}\)..*/\1/
121147366012aSmrgt more2
121157366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
121167366012aSmrgp
121177366012aSmrgb
121187366012aSmrg:more2
121197366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
121207366012aSmrgp
121217366012aSmrgg
121227366012aSmrgs/.\{148\}//
121237366012aSmrgt delim
121247366012aSmrg' <conf$$subs.awk | sed '
121257366012aSmrg/^[^""]/{
121267366012aSmrg  N
121277366012aSmrg  s/\n//
121287366012aSmrg}
121297366012aSmrg' >>$CONFIG_STATUS || ac_write_fail=1
121307366012aSmrgrm -f conf$$subs.awk
121317366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
121327366012aSmrg_ACAWK
121332adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
121347366012aSmrg  for (key in S) S_is_set[key] = 1
121357366012aSmrg  FS = ""
121367366012aSmrg
121377366012aSmrg}
121387366012aSmrg{
121397366012aSmrg  line = $ 0
121407366012aSmrg  nfields = split(line, field, "@")
121417366012aSmrg  substed = 0
121427366012aSmrg  len = length(field[1])
121437366012aSmrg  for (i = 2; i < nfields; i++) {
121447366012aSmrg    key = field[i]
121457366012aSmrg    keylen = length(key)
121467366012aSmrg    if (S_is_set[key]) {
121477366012aSmrg      value = S[key]
121487366012aSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
121497366012aSmrg      len += length(value) + length(field[++i])
121507366012aSmrg      substed = 1
121517366012aSmrg    } else
121527366012aSmrg      len += 1 + keylen
121537366012aSmrg  }
121547366012aSmrg
121557366012aSmrg  print line
121567366012aSmrg}
121577a0395d0Smrg
121587366012aSmrg_ACAWK
121597a0395d0Smrg_ACEOF
121607366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
121617366012aSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
121627366012aSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
121637366012aSmrgelse
121647366012aSmrg  cat
121652adc0320Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
121662adc0320Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
121677a0395d0Smrg_ACEOF
121687a0395d0Smrg
121692adc0320Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
121702adc0320Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
121717a0395d0Smrg# trailing colons and then remove the whole line if VPATH becomes empty
121727a0395d0Smrg# (actually we leave an empty line to preserve line numbers).
121737a0395d0Smrgif test "x$srcdir" = x.; then
121742adc0320Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
121752adc0320Smrgh
121762adc0320Smrgs///
121772adc0320Smrgs/^/:/
121782adc0320Smrgs/[	 ]*$/:/
121792adc0320Smrgs/:\$(srcdir):/:/g
121802adc0320Smrgs/:\${srcdir}:/:/g
121812adc0320Smrgs/:@srcdir@:/:/g
121822adc0320Smrgs/^:*//
121837a0395d0Smrgs/:*$//
121842adc0320Smrgx
121852adc0320Smrgs/\(=[	 ]*\).*/\1/
121862adc0320SmrgG
121872adc0320Smrgs/\n//
121887a0395d0Smrgs/^[^=]*=[	 ]*$//
121897a0395d0Smrg}'
121907a0395d0Smrgfi
121917a0395d0Smrg
121927366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
121937a0395d0Smrgfi # test -n "$CONFIG_FILES"
121947a0395d0Smrg
121957366012aSmrg# Set up the scripts for CONFIG_HEADERS section.
121967366012aSmrg# No need to generate them if there are no CONFIG_HEADERS.
121977366012aSmrg# This happens for instance with `./config.status Makefile'.
121987366012aSmrgif test -n "$CONFIG_HEADERS"; then
121992adc0320Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
122007366012aSmrgBEGIN {
122017366012aSmrg_ACEOF
122027366012aSmrg
122037366012aSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
122047366012aSmrg# here-document in config.status, that substitutes the proper values into
122057366012aSmrg# config.h.in to produce config.h.
122067366012aSmrg
122077366012aSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
122087366012aSmrg# handling of long lines.
122097366012aSmrgac_delim='%!_!# '
122107366012aSmrgfor ac_last_try in false false :; do
122112adc0320Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
122122adc0320Smrg  if test -z "$ac_tt"; then
122137366012aSmrg    break
122147366012aSmrg  elif $ac_last_try; then
122152adc0320Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
122167366012aSmrg  else
122177366012aSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
122187366012aSmrg  fi
122197366012aSmrgdone
122207366012aSmrg
122217366012aSmrg# For the awk script, D is an array of macro values keyed by name,
122227366012aSmrg# likewise P contains macro parameters if any.  Preserve backslash
122237366012aSmrg# newline sequences.
122247366012aSmrg
122257366012aSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
122267366012aSmrgsed -n '
122277366012aSmrgs/.\{148\}/&'"$ac_delim"'/g
122287366012aSmrgt rset
122297366012aSmrg:rset
122307366012aSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
122317366012aSmrgt def
122327366012aSmrgd
122337366012aSmrg:def
122347366012aSmrgs/\\$//
122357366012aSmrgt bsnl
122367366012aSmrgs/["\\]/\\&/g
122377366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
122387366012aSmrgD["\1"]=" \3"/p
122397366012aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
122407366012aSmrgd
122417366012aSmrg:bsnl
122427366012aSmrgs/["\\]/\\&/g
122437366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
122447366012aSmrgD["\1"]=" \3\\\\\\n"\\/p
122457366012aSmrgt cont
122467366012aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
122477366012aSmrgt cont
122487366012aSmrgd
122497366012aSmrg:cont
122507366012aSmrgn
122517366012aSmrgs/.\{148\}/&'"$ac_delim"'/g
122527366012aSmrgt clear
122537366012aSmrg:clear
122547366012aSmrgs/\\$//
122557366012aSmrgt bsnlc
122567366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
122577366012aSmrgd
122587366012aSmrg:bsnlc
122597366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
122607366012aSmrgb cont
122617366012aSmrg' <confdefs.h | sed '
122627366012aSmrgs/'"$ac_delim"'/"\\\
122637366012aSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
122647366012aSmrg
122657366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
122667366012aSmrg  for (key in D) D_is_set[key] = 1
122677366012aSmrg  FS = ""
122687366012aSmrg}
122697366012aSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
122707366012aSmrg  line = \$ 0
122717366012aSmrg  split(line, arg, " ")
122727366012aSmrg  if (arg[1] == "#") {
122737366012aSmrg    defundef = arg[2]
122747366012aSmrg    mac1 = arg[3]
122757366012aSmrg  } else {
122767366012aSmrg    defundef = substr(arg[1], 2)
122777366012aSmrg    mac1 = arg[2]
122787366012aSmrg  }
122797366012aSmrg  split(mac1, mac2, "(") #)
122807366012aSmrg  macro = mac2[1]
122817366012aSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
122827366012aSmrg  if (D_is_set[macro]) {
122837366012aSmrg    # Preserve the white space surrounding the "#".
122847366012aSmrg    print prefix "define", macro P[macro] D[macro]
122857366012aSmrg    next
122867366012aSmrg  } else {
122877366012aSmrg    # Replace #undef with comments.  This is necessary, for example,
122887366012aSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
122897366012aSmrg    # on some systems where configure will not decide to define it.
122907366012aSmrg    if (defundef == "undef") {
122917366012aSmrg      print "/*", prefix defundef, macro, "*/"
122927366012aSmrg      next
122937366012aSmrg    }
122947366012aSmrg  }
122957366012aSmrg}
122967366012aSmrg{ print }
122977366012aSmrg_ACAWK
122987366012aSmrg_ACEOF
122997366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
123002adc0320Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
123017366012aSmrgfi # test -n "$CONFIG_HEADERS"
123027366012aSmrg
123037a0395d0Smrg
123047366012aSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
123057366012aSmrgshift
123067366012aSmrgfor ac_tag
123077a0395d0Smrgdo
123087a0395d0Smrg  case $ac_tag in
123097a0395d0Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
123107a0395d0Smrg  esac
123117a0395d0Smrg  case $ac_mode$ac_tag in
123127a0395d0Smrg  :[FHL]*:*);;
123132adc0320Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
123147a0395d0Smrg  :[FH]-) ac_tag=-:-;;
123157a0395d0Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
123167a0395d0Smrg  esac
123177a0395d0Smrg  ac_save_IFS=$IFS
123187a0395d0Smrg  IFS=:
123197a0395d0Smrg  set x $ac_tag
123207a0395d0Smrg  IFS=$ac_save_IFS
123217a0395d0Smrg  shift
123227a0395d0Smrg  ac_file=$1
123237a0395d0Smrg  shift
123247a0395d0Smrg
123257a0395d0Smrg  case $ac_mode in
123267a0395d0Smrg  :L) ac_source=$1;;
123277a0395d0Smrg  :[FH])
123287a0395d0Smrg    ac_file_inputs=
123297a0395d0Smrg    for ac_f
123307a0395d0Smrg    do
123317a0395d0Smrg      case $ac_f in
123322adc0320Smrg      -) ac_f="$ac_tmp/stdin";;
123337a0395d0Smrg      *) # Look for the file first in the build tree, then in the source tree
123347a0395d0Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
123357a0395d0Smrg	 # because $ac_f cannot contain `:'.
123367a0395d0Smrg	 test -f "$ac_f" ||
123377a0395d0Smrg	   case $ac_f in
123387a0395d0Smrg	   [\\/$]*) false;;
123397a0395d0Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
123407a0395d0Smrg	   esac ||
123412adc0320Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
123427a0395d0Smrg      esac
123437366012aSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
123442adc0320Smrg      as_fn_append ac_file_inputs " '$ac_f'"
123457a0395d0Smrg    done
123467a0395d0Smrg
123477a0395d0Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
123487a0395d0Smrg    # use $as_me), people would be surprised to read:
123497a0395d0Smrg    #    /* config.h.  Generated by config.status.  */
123507366012aSmrg    configure_input='Generated from '`
123517366012aSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
123527366012aSmrg	`' by configure.'
123537a0395d0Smrg    if test x"$ac_file" != x-; then
123547a0395d0Smrg      configure_input="$ac_file.  $configure_input"
123552adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
123567366012aSmrg$as_echo "$as_me: creating $ac_file" >&6;}
123577a0395d0Smrg    fi
123587366012aSmrg    # Neutralize special characters interpreted by sed in replacement strings.
123597366012aSmrg    case $configure_input in #(
123607366012aSmrg    *\&* | *\|* | *\\* )
123617366012aSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
123627366012aSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
123637366012aSmrg    *) ac_sed_conf_input=$configure_input;;
123647366012aSmrg    esac
123657a0395d0Smrg
123667a0395d0Smrg    case $ac_tag in
123672adc0320Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
123682adc0320Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
123697a0395d0Smrg    esac
123707a0395d0Smrg    ;;
123717a0395d0Smrg  esac
123727a0395d0Smrg
123737a0395d0Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
123747a0395d0Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
123757a0395d0Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
123767a0395d0Smrg	 X"$ac_file" : 'X\(//\)$' \| \
123777a0395d0Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
123787366012aSmrg$as_echo X"$ac_file" |
123797a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
123807a0395d0Smrg	    s//\1/
123817a0395d0Smrg	    q
123827a0395d0Smrg	  }
123837a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
123847a0395d0Smrg	    s//\1/
123857a0395d0Smrg	    q
123867a0395d0Smrg	  }
123877a0395d0Smrg	  /^X\(\/\/\)$/{
123887a0395d0Smrg	    s//\1/
123897a0395d0Smrg	    q
123907a0395d0Smrg	  }
123917a0395d0Smrg	  /^X\(\/\).*/{
123927a0395d0Smrg	    s//\1/
123937a0395d0Smrg	    q
123947a0395d0Smrg	  }
123957a0395d0Smrg	  s/.*/./; q'`
123962adc0320Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
123977a0395d0Smrg  ac_builddir=.
123987a0395d0Smrg
123997a0395d0Smrgcase "$ac_dir" in
124007a0395d0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
124017a0395d0Smrg*)
124027366012aSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
124037a0395d0Smrg  # A ".." for each directory in $ac_dir_suffix.
124047366012aSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
124057a0395d0Smrg  case $ac_top_builddir_sub in
124067a0395d0Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
124077a0395d0Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
124087a0395d0Smrg  esac ;;
124097a0395d0Smrgesac
124107a0395d0Smrgac_abs_top_builddir=$ac_pwd
124117a0395d0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
124127a0395d0Smrg# for backward compatibility:
124137a0395d0Smrgac_top_builddir=$ac_top_build_prefix
124147a0395d0Smrg
124157a0395d0Smrgcase $srcdir in
124167a0395d0Smrg  .)  # We are building in place.
124177a0395d0Smrg    ac_srcdir=.
124187a0395d0Smrg    ac_top_srcdir=$ac_top_builddir_sub
124197a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd ;;
124207a0395d0Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
124217a0395d0Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
124227a0395d0Smrg    ac_top_srcdir=$srcdir
124237a0395d0Smrg    ac_abs_top_srcdir=$srcdir ;;
124247a0395d0Smrg  *) # Relative name.
124257a0395d0Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
124267a0395d0Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
124277a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
124287a0395d0Smrgesac
124297a0395d0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
124307a0395d0Smrg
124317a0395d0Smrg
124327a0395d0Smrg  case $ac_mode in
124337a0395d0Smrg  :F)
124347a0395d0Smrg  #
124357a0395d0Smrg  # CONFIG_FILE
124367a0395d0Smrg  #
124377a0395d0Smrg
124387a0395d0Smrg  case $INSTALL in
124397a0395d0Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
124407a0395d0Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
124417a0395d0Smrg  esac
124427a0395d0Smrg  ac_MKDIR_P=$MKDIR_P
124437a0395d0Smrg  case $MKDIR_P in
124447a0395d0Smrg  [\\/$]* | ?:[\\/]* ) ;;
124457a0395d0Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
124467a0395d0Smrg  esac
124477a0395d0Smrg_ACEOF
124487a0395d0Smrg
124497366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
124507a0395d0Smrg# If the template does not know about datarootdir, expand it.
124517a0395d0Smrg# FIXME: This hack should be removed a few years after 2.60.
124527a0395d0Smrgac_datarootdir_hack=; ac_datarootdir_seen=
124537366012aSmrgac_sed_dataroot='
124547366012aSmrg/datarootdir/ {
124557a0395d0Smrg  p
124567a0395d0Smrg  q
124577a0395d0Smrg}
124587a0395d0Smrg/@datadir@/p
124597a0395d0Smrg/@docdir@/p
124607a0395d0Smrg/@infodir@/p
124617a0395d0Smrg/@localedir@/p
124622adc0320Smrg/@mandir@/p'
124637366012aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
124647a0395d0Smrg*datarootdir*) ac_datarootdir_seen=yes;;
124657a0395d0Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
124662adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
124677366012aSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
124687a0395d0Smrg_ACEOF
124697366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
124707a0395d0Smrg  ac_datarootdir_hack='
124717a0395d0Smrg  s&@datadir@&$datadir&g
124727a0395d0Smrg  s&@docdir@&$docdir&g
124737a0395d0Smrg  s&@infodir@&$infodir&g
124747a0395d0Smrg  s&@localedir@&$localedir&g
124757a0395d0Smrg  s&@mandir@&$mandir&g
124762adc0320Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
124777a0395d0Smrgesac
124787a0395d0Smrg_ACEOF
124797a0395d0Smrg
124807a0395d0Smrg# Neutralize VPATH when `$srcdir' = `.'.
124817a0395d0Smrg# Shell code in configure.ac might set extrasub.
124827a0395d0Smrg# FIXME: do we really want to maintain this feature?
124837366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
124847366012aSmrgac_sed_extra="$ac_vpsub
124857a0395d0Smrg$extrasub
124867a0395d0Smrg_ACEOF
124877366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
124887a0395d0Smrg:t
124897a0395d0Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
124907366012aSmrgs|@configure_input@|$ac_sed_conf_input|;t t
124917a0395d0Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
124927366012aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
124937a0395d0Smrgs&@srcdir@&$ac_srcdir&;t t
124947a0395d0Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
124957a0395d0Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
124967a0395d0Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
124977a0395d0Smrgs&@builddir@&$ac_builddir&;t t
124987a0395d0Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
124997a0395d0Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
125007a0395d0Smrgs&@INSTALL@&$ac_INSTALL&;t t
125017a0395d0Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
125027a0395d0Smrg$ac_datarootdir_hack
125037366012aSmrg"
125042adc0320Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
125052adc0320Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
125067a0395d0Smrg
125077a0395d0Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
125082adc0320Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
125092adc0320Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
125102adc0320Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
125112adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
125122adc0320Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
125137366012aSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
125142adc0320Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
125157a0395d0Smrg
125162adc0320Smrg  rm -f "$ac_tmp/stdin"
125177a0395d0Smrg  case $ac_file in
125182adc0320Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
125192adc0320Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
125207366012aSmrg  esac \
125212adc0320Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
125227a0395d0Smrg ;;
125237a0395d0Smrg  :H)
125247a0395d0Smrg  #
125257a0395d0Smrg  # CONFIG_HEADER
125267a0395d0Smrg  #
125277a0395d0Smrg  if test x"$ac_file" != x-; then
125287366012aSmrg    {
125297366012aSmrg      $as_echo "/* $configure_input  */" \
125302adc0320Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
125312adc0320Smrg    } >"$ac_tmp/config.h" \
125322adc0320Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
125332adc0320Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
125342adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
125357366012aSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
125367a0395d0Smrg    else
125377366012aSmrg      rm -f "$ac_file"
125382adc0320Smrg      mv "$ac_tmp/config.h" "$ac_file" \
125392adc0320Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
125407a0395d0Smrg    fi
125417a0395d0Smrg  else
125427366012aSmrg    $as_echo "/* $configure_input  */" \
125432adc0320Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
125442adc0320Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
125457a0395d0Smrg  fi
125467366012aSmrg# Compute "$ac_file"'s index in $config_headers.
125477366012aSmrg_am_arg="$ac_file"
125487a0395d0Smrg_am_stamp_count=1
125497a0395d0Smrgfor _am_header in $config_headers :; do
125507a0395d0Smrg  case $_am_header in
125517a0395d0Smrg    $_am_arg | $_am_arg:* )
125527a0395d0Smrg      break ;;
125537a0395d0Smrg    * )
125547a0395d0Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
125557a0395d0Smrg  esac
125567a0395d0Smrgdone
125577a0395d0Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
125587a0395d0Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
125597a0395d0Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
125607a0395d0Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
125617a0395d0Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
125627366012aSmrg$as_echo X"$_am_arg" |
125637a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
125647a0395d0Smrg	    s//\1/
125657a0395d0Smrg	    q
125667a0395d0Smrg	  }
125677a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
125687a0395d0Smrg	    s//\1/
125697a0395d0Smrg	    q
125707a0395d0Smrg	  }
125717a0395d0Smrg	  /^X\(\/\/\)$/{
125727a0395d0Smrg	    s//\1/
125737a0395d0Smrg	    q
125747a0395d0Smrg	  }
125757a0395d0Smrg	  /^X\(\/\).*/{
125767a0395d0Smrg	    s//\1/
125777a0395d0Smrg	    q
125787a0395d0Smrg	  }
125797a0395d0Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
125807a0395d0Smrg ;;
125817a0395d0Smrg
125822adc0320Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
125837366012aSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
125847a0395d0Smrg ;;
125857a0395d0Smrg  esac
125867a0395d0Smrg
125877a0395d0Smrg
125887a0395d0Smrg  case $ac_file$ac_mode in
125897366012aSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
125907366012aSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
125917366012aSmrg  # are listed without --file.  Let's play safe and only enable the eval
125927366012aSmrg  # if we detect the quoting.
125937366012aSmrg  case $CONFIG_FILES in
125947366012aSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
125957366012aSmrg  *)   set x $CONFIG_FILES ;;
125967366012aSmrg  esac
125977366012aSmrg  shift
125987366012aSmrg  for mf
125997366012aSmrg  do
126007366012aSmrg    # Strip MF so we end up with the name of the file.
126017366012aSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
126027366012aSmrg    # Check whether this is an Automake generated Makefile or not.
126038abc0ccfSmrg    # We used to match only the files named 'Makefile.in', but
126047366012aSmrg    # some people rename them; so instead we look at the file content.
126057366012aSmrg    # Grep'ing the first line is not enough: some people post-process
126067366012aSmrg    # each Makefile.in and add a new line on top of each file to say so.
126077366012aSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
126087366012aSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
126097366012aSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
126107366012aSmrg      dirpart=`$as_dirname -- "$mf" ||
126117a0395d0Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
126127a0395d0Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
126137a0395d0Smrg	 X"$mf" : 'X\(//\)$' \| \
126147a0395d0Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
126157366012aSmrg$as_echo X"$mf" |
126167a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
126177a0395d0Smrg	    s//\1/
126187a0395d0Smrg	    q
126197a0395d0Smrg	  }
126207a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
126217a0395d0Smrg	    s//\1/
126227a0395d0Smrg	    q
126237a0395d0Smrg	  }
126247a0395d0Smrg	  /^X\(\/\/\)$/{
126257a0395d0Smrg	    s//\1/
126267a0395d0Smrg	    q
126277a0395d0Smrg	  }
126287a0395d0Smrg	  /^X\(\/\).*/{
126297a0395d0Smrg	    s//\1/
126307a0395d0Smrg	    q
126317a0395d0Smrg	  }
126327a0395d0Smrg	  s/.*/./; q'`
126337366012aSmrg    else
126347366012aSmrg      continue
126357366012aSmrg    fi
126367366012aSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
126378abc0ccfSmrg    # from the Makefile without running 'make'.
126387366012aSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
126397366012aSmrg    test -z "$DEPDIR" && continue
126407366012aSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
126417366012aSmrg    test -z "am__include" && continue
126427366012aSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
126437366012aSmrg    # Find all dependency output files, they are included files with
126447366012aSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
126457366012aSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
126467366012aSmrg    # expansion.
126477366012aSmrg    for file in `sed -n "
126487366012aSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
126498abc0ccfSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
126507366012aSmrg      # Make sure the directory exists.
126517366012aSmrg      test -f "$dirpart/$file" && continue
126527366012aSmrg      fdir=`$as_dirname -- "$file" ||
126537a0395d0Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
126547a0395d0Smrg	 X"$file" : 'X\(//\)[^/]' \| \
126557a0395d0Smrg	 X"$file" : 'X\(//\)$' \| \
126567a0395d0Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
126577366012aSmrg$as_echo X"$file" |
126587a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
126597a0395d0Smrg	    s//\1/
126607a0395d0Smrg	    q
126617a0395d0Smrg	  }
126627a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
126637a0395d0Smrg	    s//\1/
126647a0395d0Smrg	    q
126657a0395d0Smrg	  }
126667a0395d0Smrg	  /^X\(\/\/\)$/{
126677a0395d0Smrg	    s//\1/
126687a0395d0Smrg	    q
126697a0395d0Smrg	  }
126707a0395d0Smrg	  /^X\(\/\).*/{
126717a0395d0Smrg	    s//\1/
126727a0395d0Smrg	    q
126737a0395d0Smrg	  }
126747a0395d0Smrg	  s/.*/./; q'`
126752adc0320Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
126767366012aSmrg      # echo "creating $dirpart/$file"
126777366012aSmrg      echo '# dummy' > "$dirpart/$file"
126787366012aSmrg    done
126797a0395d0Smrg  done
126807366012aSmrg}
126817a0395d0Smrg ;;
126827a0395d0Smrg
126837a0395d0Smrg  esac
126847a0395d0Smrgdone # for ac_tag
126857a0395d0Smrg
126867a0395d0Smrg
126872adc0320Smrgas_fn_exit 0
126887a0395d0Smrg_ACEOF
126897a0395d0Smrgac_clean_files=$ac_clean_files_save
126907a0395d0Smrg
126917366012aSmrgtest $ac_write_fail = 0 ||
126922adc0320Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
126937366012aSmrg
126947a0395d0Smrg
126957a0395d0Smrg# configure is writing to config.log, and then calls config.status.
126967a0395d0Smrg# config.status does its own redirection, appending to config.log.
126977a0395d0Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
126987a0395d0Smrg# by configure, so config.status won't be able to write to it; its
126997a0395d0Smrg# output is simply discarded.  So we exec the FD to /dev/null,
127007a0395d0Smrg# effectively closing config.log, so it can be properly (re)opened and
127017a0395d0Smrg# appended to by config.status.  When coming back to configure, we
127027a0395d0Smrg# need to make the FD available again.
127037a0395d0Smrgif test "$no_create" != yes; then
127047a0395d0Smrg  ac_cs_success=:
127057a0395d0Smrg  ac_config_status_args=
127067a0395d0Smrg  test "$silent" = yes &&
127077a0395d0Smrg    ac_config_status_args="$ac_config_status_args --quiet"
127087a0395d0Smrg  exec 5>/dev/null
127097a0395d0Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
127107a0395d0Smrg  exec 5>>config.log
127117a0395d0Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
127127a0395d0Smrg  # would make configure fail if this is the last instruction.
127132adc0320Smrg  $ac_cs_success || as_fn_exit 1
127147a0395d0Smrgfi
127157366012aSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
127162adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
127177366012aSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
127187366012aSmrgfi
127197a0395d0Smrg
12720