1a73027baSmrg#! /bin/sh
2a73027baSmrg# Guess values for system-dependent variables and create Makefiles.
3fd549268Smrg# Generated by GNU Autoconf 2.71 for xinit 1.4.3.
4a73027baSmrg#
57c5adda3Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinit/-/issues>.
6a73027baSmrg#
76f02d4e9Smrg#
87c5adda3Smrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
97c5adda3Smrg# Inc.
106f02d4e9Smrg#
116f02d4e9Smrg#
12a73027baSmrg# This configure script is free software; the Free Software Foundation
13a73027baSmrg# gives unlimited permission to copy, distribute and modify it.
146f02d4e9Smrg## -------------------- ##
156f02d4e9Smrg## M4sh Initialization. ##
166f02d4e9Smrg## -------------------- ##
17a73027baSmrg
18a73027baSmrg# Be more Bourne compatible
19a73027baSmrgDUALCASE=1; export DUALCASE # for MKS sh
207c5adda3Smrgas_nop=:
217c5adda3Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
227c5adda3Smrgthen :
23a73027baSmrg  emulate sh
24a73027baSmrg  NULLCMD=:
256f02d4e9Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26a73027baSmrg  # is contrary to our usage.  Disable this feature.
27a73027baSmrg  alias -g '${1+"$@"}'='"$@"'
28a73027baSmrg  setopt NO_GLOB_SUBST
297c5adda3Smrgelse $as_nop
306f02d4e9Smrg  case `(set -o) 2>/dev/null` in #(
316f02d4e9Smrg  *posix*) :
326f02d4e9Smrg    set -o posix ;; #(
336f02d4e9Smrg  *) :
346f02d4e9Smrg     ;;
35a73027baSmrgesac
36a73027baSmrgfi
37a73027baSmrg
38a73027baSmrg
397c5adda3Smrg
407c5adda3Smrg# Reset variables that may have inherited troublesome values from
417c5adda3Smrg# the environment.
427c5adda3Smrg
437c5adda3Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
447c5adda3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
457c5adda3Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
467c5adda3Smrg# Quoting is to prevent editors from complaining about space-tab.
476f02d4e9Smrgas_nl='
486f02d4e9Smrg'
496f02d4e9Smrgexport as_nl
507c5adda3SmrgIFS=" ""	$as_nl"
517c5adda3Smrg
527c5adda3SmrgPS1='$ '
537c5adda3SmrgPS2='> '
547c5adda3SmrgPS4='+ '
557c5adda3Smrg
567c5adda3Smrg# Ensure predictable behavior from utilities with locale-dependent output.
577c5adda3SmrgLC_ALL=C
587c5adda3Smrgexport LC_ALL
597c5adda3SmrgLANGUAGE=C
607c5adda3Smrgexport LANGUAGE
617c5adda3Smrg
627c5adda3Smrg# We cannot yet rely on "unset" to work, but we need these variables
637c5adda3Smrg# to be unset--not just set to an empty or harmless value--now, to
647c5adda3Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
657c5adda3Smrg# also avoids known problems related to "unset" and subshell syntax
667c5adda3Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
677c5adda3Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
687c5adda3Smrgdo eval test \${$as_var+y} \
697c5adda3Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
707c5adda3Smrgdone
717c5adda3Smrg
727c5adda3Smrg# Ensure that fds 0, 1, and 2 are open.
737c5adda3Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
747c5adda3Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
757c5adda3Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76a73027baSmrg
776f02d4e9Smrg# The user is always right.
787c5adda3Smrgif ${PATH_SEPARATOR+false} :; then
796f02d4e9Smrg  PATH_SEPARATOR=:
806f02d4e9Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
816f02d4e9Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
826f02d4e9Smrg      PATH_SEPARATOR=';'
836f02d4e9Smrg  }
84a73027baSmrgfi
85a73027baSmrg
86a73027baSmrg
87a73027baSmrg# Find who we are.  Look in the path if we contain no directory separator.
886f02d4e9Smrgas_myself=
896f02d4e9Smrgcase $0 in #((
90a73027baSmrg  *[\\/]* ) as_myself=$0 ;;
91a73027baSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92a73027baSmrgfor as_dir in $PATH
93a73027baSmrgdo
94a73027baSmrg  IFS=$as_save_IFS
957c5adda3Smrg  case $as_dir in #(((
967c5adda3Smrg    '') as_dir=./ ;;
977c5adda3Smrg    */) ;;
987c5adda3Smrg    *) as_dir=$as_dir/ ;;
997c5adda3Smrg  esac
1007c5adda3Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1016f02d4e9Smrg  done
102a73027baSmrgIFS=$as_save_IFS
103a73027baSmrg
104a73027baSmrg     ;;
105a73027baSmrgesac
106a73027baSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
107a73027baSmrg# in which case we are not to be found in the path.
108a73027baSmrgif test "x$as_myself" = x; then
109a73027baSmrg  as_myself=$0
110a73027baSmrgfi
111a73027baSmrgif test ! -f "$as_myself"; then
1127c5adda3Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1136f02d4e9Smrg  exit 1
114a73027baSmrgfi
115a73027baSmrg
116a73027baSmrg
1177253c0c7Smrg# Use a proper internal environment variable to ensure we don't fall
1187253c0c7Smrg  # into an infinite loop, continuously re-executing ourselves.
1197253c0c7Smrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
1207253c0c7Smrg    _as_can_reexec=no; export _as_can_reexec;
1217253c0c7Smrg    # We cannot yet assume a decent shell, so we have to provide a
1227253c0c7Smrg# neutralization value for shells without unset; and this also
1237253c0c7Smrg# works around shells that cannot unset nonexistent variables.
1247253c0c7Smrg# Preserve -v and -x to the replacement shell.
1257253c0c7SmrgBASH_ENV=/dev/null
1267253c0c7SmrgENV=/dev/null
1277253c0c7Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1287253c0c7Smrgcase $- in # ((((
1297253c0c7Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
1307253c0c7Smrg  *v* ) as_opts=-v ;;
1317253c0c7Smrg  *x* ) as_opts=-x ;;
1327253c0c7Smrg  * ) as_opts= ;;
1337253c0c7Smrgesac
1347253c0c7Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1357253c0c7Smrg# Admittedly, this is quite paranoid, since all the known shells bail
1367253c0c7Smrg# out after a failed `exec'.
1377c5adda3Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
1387c5adda3Smrgexit 255
1397253c0c7Smrg  fi
1407253c0c7Smrg  # We don't want this to propagate to other subprocesses.
1417253c0c7Smrg          { _as_can_reexec=; unset _as_can_reexec;}
14221212451Smrgif test "x$CONFIG_SHELL" = x; then
1437c5adda3Smrg  as_bourne_compatible="as_nop=:
1447c5adda3Smrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
1457c5adda3Smrgthen :
1466f02d4e9Smrg  emulate sh
1476f02d4e9Smrg  NULLCMD=:
1486f02d4e9Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1496f02d4e9Smrg  # is contrary to our usage.  Disable this feature.
1506f02d4e9Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1516f02d4e9Smrg  setopt NO_GLOB_SUBST
1527c5adda3Smrgelse \$as_nop
1536f02d4e9Smrg  case \`(set -o) 2>/dev/null\` in #(
1546f02d4e9Smrg  *posix*) :
1556f02d4e9Smrg    set -o posix ;; #(
1566f02d4e9Smrg  *) :
1576f02d4e9Smrg     ;;
1586f02d4e9Smrgesac
15921212451Smrgfi
1606f02d4e9Smrg"
1616f02d4e9Smrg  as_required="as_fn_return () { (exit \$1); }
1626f02d4e9Smrgas_fn_success () { as_fn_return 0; }
1636f02d4e9Smrgas_fn_failure () { as_fn_return 1; }
1646f02d4e9Smrgas_fn_ret_success () { return 0; }
1656f02d4e9Smrgas_fn_ret_failure () { return 1; }
166a73027baSmrg
16721212451Smrgexitcode=0
1686f02d4e9Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1696f02d4e9Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1706f02d4e9Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1716f02d4e9Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1727c5adda3Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
1737c5adda3Smrgthen :
1746f02d4e9Smrg
1757c5adda3Smrgelse \$as_nop
1766f02d4e9Smrg  exitcode=1; echo positional parameters were not saved.
1776f02d4e9Smrgfi
1787253c0c7Smrgtest x\$exitcode = x0 || exit 1
1797c5adda3Smrgblah=\$(echo \$(echo blah))
1807c5adda3Smrgtest x\"\$blah\" = xblah || exit 1
1817253c0c7Smrgtest -x / || exit 1"
1826f02d4e9Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1836f02d4e9Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1846f02d4e9Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1856f02d4e9Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1866f02d4e9Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
1877c5adda3Smrg  if (eval "$as_required") 2>/dev/null
1887c5adda3Smrgthen :
1896f02d4e9Smrg  as_have_required=yes
1907c5adda3Smrgelse $as_nop
1916f02d4e9Smrg  as_have_required=no
192a73027baSmrgfi
1937c5adda3Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
1947c5adda3Smrgthen :
195a73027baSmrg
1967c5adda3Smrgelse $as_nop
1976f02d4e9Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986f02d4e9Smrgas_found=false
19921212451Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20021212451Smrgdo
20121212451Smrg  IFS=$as_save_IFS
2027c5adda3Smrg  case $as_dir in #(((
2037c5adda3Smrg    '') as_dir=./ ;;
2047c5adda3Smrg    */) ;;
2057c5adda3Smrg    *) as_dir=$as_dir/ ;;
2067c5adda3Smrg  esac
2076f02d4e9Smrg  as_found=:
2086f02d4e9Smrg  case $as_dir in #(
20921212451Smrg	 /*)
21021212451Smrg	   for as_base in sh bash ksh sh5; do
2116f02d4e9Smrg	     # Try only shells that exist, to save several forks.
2127c5adda3Smrg	     as_shell=$as_dir$as_base
2136f02d4e9Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2147c5adda3Smrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
2157c5adda3Smrgthen :
2166f02d4e9Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2177c5adda3Smrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
2187c5adda3Smrgthen :
2196f02d4e9Smrg  break 2
2206f02d4e9Smrgfi
2216f02d4e9Smrgfi
22221212451Smrg	   done;;
22321212451Smrg       esac
2246f02d4e9Smrg  as_found=false
22521212451Smrgdone
22621212451SmrgIFS=$as_save_IFS
2277c5adda3Smrgif $as_found
2287c5adda3Smrgthen :
2297c5adda3Smrg
2307c5adda3Smrgelse $as_nop
2317c5adda3Smrg  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2327c5adda3Smrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
2337c5adda3Smrgthen :
2347c5adda3Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2357c5adda3Smrgfi
2367c5adda3Smrgfi
237a73027baSmrg
238a73027baSmrg
2397c5adda3Smrg      if test "x$CONFIG_SHELL" != x
2407c5adda3Smrgthen :
2417253c0c7Smrg  export CONFIG_SHELL
2427253c0c7Smrg             # We cannot yet assume a decent shell, so we have to provide a
2437253c0c7Smrg# neutralization value for shells without unset; and this also
2447253c0c7Smrg# works around shells that cannot unset nonexistent variables.
2457253c0c7Smrg# Preserve -v and -x to the replacement shell.
2467253c0c7SmrgBASH_ENV=/dev/null
2477253c0c7SmrgENV=/dev/null
2487253c0c7Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2497253c0c7Smrgcase $- in # ((((
2507253c0c7Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
2517253c0c7Smrg  *v* ) as_opts=-v ;;
2527253c0c7Smrg  *x* ) as_opts=-x ;;
2537253c0c7Smrg  * ) as_opts= ;;
2547253c0c7Smrgesac
2557253c0c7Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
2567253c0c7Smrg# Admittedly, this is quite paranoid, since all the known shells bail
2577253c0c7Smrg# out after a failed `exec'.
2587c5adda3Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
2597253c0c7Smrgexit 255
26021212451Smrgfi
261a73027baSmrg
2627c5adda3Smrg    if test x$as_have_required = xno
2637c5adda3Smrgthen :
2647c5adda3Smrg  printf "%s\n" "$0: This script requires a shell more modern than all"
2657c5adda3Smrg  printf "%s\n" "$0: the shells that I found on your system."
2667c5adda3Smrg  if test ${ZSH_VERSION+y} ; then
2677c5adda3Smrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2687c5adda3Smrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
2696f02d4e9Smrg  else
2707c5adda3Smrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
2717c5adda3Smrg$0: https://gitlab.freedesktop.org/xorg/app/xinit/-/issues
2726f02d4e9Smrg$0: about your system, including any error possibly output
2736f02d4e9Smrg$0: before this message. Then install a modern shell, or
2746f02d4e9Smrg$0: manually run the script under such a shell if you do
2756f02d4e9Smrg$0: have one."
2766f02d4e9Smrg  fi
2776f02d4e9Smrg  exit 1
27821212451Smrgfi
2796f02d4e9Smrgfi
2806f02d4e9Smrgfi
2816f02d4e9SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2826f02d4e9Smrgexport SHELL
2836f02d4e9Smrg# Unset more variables known to interfere with behavior of common tools.
2846f02d4e9SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2856f02d4e9Smrgunset CLICOLOR_FORCE GREP_OPTIONS
28621212451Smrg
2876f02d4e9Smrg## --------------------- ##
2886f02d4e9Smrg## M4sh Shell Functions. ##
2896f02d4e9Smrg## --------------------- ##
2906f02d4e9Smrg# as_fn_unset VAR
2916f02d4e9Smrg# ---------------
2926f02d4e9Smrg# Portably unset VAR.
2936f02d4e9Smrgas_fn_unset ()
2946f02d4e9Smrg{
2956f02d4e9Smrg  { eval $1=; unset $1;}
29621212451Smrg}
2976f02d4e9Smrgas_unset=as_fn_unset
29821212451Smrg
2997c5adda3Smrg
3006f02d4e9Smrg# as_fn_set_status STATUS
3016f02d4e9Smrg# -----------------------
3026f02d4e9Smrg# Set $? to STATUS, without forking.
3036f02d4e9Smrgas_fn_set_status ()
3046f02d4e9Smrg{
3056f02d4e9Smrg  return $1
3066f02d4e9Smrg} # as_fn_set_status
30721212451Smrg
3086f02d4e9Smrg# as_fn_exit STATUS
3096f02d4e9Smrg# -----------------
3106f02d4e9Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3116f02d4e9Smrgas_fn_exit ()
3126f02d4e9Smrg{
3136f02d4e9Smrg  set +e
3146f02d4e9Smrg  as_fn_set_status $1
3156f02d4e9Smrg  exit $1
3166f02d4e9Smrg} # as_fn_exit
3177c5adda3Smrg# as_fn_nop
3187c5adda3Smrg# ---------
3197c5adda3Smrg# Do nothing but, unlike ":", preserve the value of $?.
3207c5adda3Smrgas_fn_nop ()
3217c5adda3Smrg{
3227c5adda3Smrg  return $?
3237c5adda3Smrg}
3247c5adda3Smrgas_nop=as_fn_nop
3256f02d4e9Smrg
3266f02d4e9Smrg# as_fn_mkdir_p
3276f02d4e9Smrg# -------------
3286f02d4e9Smrg# Create "$as_dir" as a directory, including parents if necessary.
3296f02d4e9Smrgas_fn_mkdir_p ()
3306f02d4e9Smrg{
33121212451Smrg
3326f02d4e9Smrg  case $as_dir in #(
3336f02d4e9Smrg  -*) as_dir=./$as_dir;;
3346f02d4e9Smrg  esac
3356f02d4e9Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
3366f02d4e9Smrg    as_dirs=
3376f02d4e9Smrg    while :; do
3386f02d4e9Smrg      case $as_dir in #(
3397c5adda3Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3406f02d4e9Smrg      *) as_qdir=$as_dir;;
3416f02d4e9Smrg      esac
3426f02d4e9Smrg      as_dirs="'$as_qdir' $as_dirs"
3436f02d4e9Smrg      as_dir=`$as_dirname -- "$as_dir" ||
3446f02d4e9Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3456f02d4e9Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3466f02d4e9Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3476f02d4e9Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3487c5adda3Smrgprintf "%s\n" X"$as_dir" |
3496f02d4e9Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3506f02d4e9Smrg	    s//\1/
3516f02d4e9Smrg	    q
3526f02d4e9Smrg	  }
3536f02d4e9Smrg	  /^X\(\/\/\)[^/].*/{
3546f02d4e9Smrg	    s//\1/
3556f02d4e9Smrg	    q
3566f02d4e9Smrg	  }
3576f02d4e9Smrg	  /^X\(\/\/\)$/{
3586f02d4e9Smrg	    s//\1/
3596f02d4e9Smrg	    q
3606f02d4e9Smrg	  }
3616f02d4e9Smrg	  /^X\(\/\).*/{
3626f02d4e9Smrg	    s//\1/
3636f02d4e9Smrg	    q
3646f02d4e9Smrg	  }
3656f02d4e9Smrg	  s/.*/./; q'`
3666f02d4e9Smrg      test -d "$as_dir" && break
3676f02d4e9Smrg    done
3686f02d4e9Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3696f02d4e9Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3706f02d4e9Smrg
3716f02d4e9Smrg
3726f02d4e9Smrg} # as_fn_mkdir_p
3737253c0c7Smrg
3747253c0c7Smrg# as_fn_executable_p FILE
3757253c0c7Smrg# -----------------------
3767253c0c7Smrg# Test if FILE is an executable regular file.
3777253c0c7Smrgas_fn_executable_p ()
3787253c0c7Smrg{
3797253c0c7Smrg  test -f "$1" && test -x "$1"
3807253c0c7Smrg} # as_fn_executable_p
3816f02d4e9Smrg# as_fn_append VAR VALUE
3826f02d4e9Smrg# ----------------------
3836f02d4e9Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3846f02d4e9Smrg# advantage of any shell optimizations that allow amortized linear growth over
3856f02d4e9Smrg# repeated appends, instead of the typical quadratic growth present in naive
3866f02d4e9Smrg# implementations.
3877c5adda3Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
3887c5adda3Smrgthen :
3896f02d4e9Smrg  eval 'as_fn_append ()
3906f02d4e9Smrg  {
3916f02d4e9Smrg    eval $1+=\$2
3926f02d4e9Smrg  }'
3937c5adda3Smrgelse $as_nop
3946f02d4e9Smrg  as_fn_append ()
3956f02d4e9Smrg  {
3966f02d4e9Smrg    eval $1=\$$1\$2
3976f02d4e9Smrg  }
3986f02d4e9Smrgfi # as_fn_append
3996f02d4e9Smrg
4006f02d4e9Smrg# as_fn_arith ARG...
4016f02d4e9Smrg# ------------------
4026f02d4e9Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
4036f02d4e9Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
4046f02d4e9Smrg# must be portable across $(()) and expr.
4057c5adda3Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4067c5adda3Smrgthen :
4076f02d4e9Smrg  eval 'as_fn_arith ()
4086f02d4e9Smrg  {
4096f02d4e9Smrg    as_val=$(( $* ))
4106f02d4e9Smrg  }'
4117c5adda3Smrgelse $as_nop
4126f02d4e9Smrg  as_fn_arith ()
4136f02d4e9Smrg  {
4146f02d4e9Smrg    as_val=`expr "$@" || test $? -eq 1`
4156f02d4e9Smrg  }
4166f02d4e9Smrgfi # as_fn_arith
41721212451Smrg
4187c5adda3Smrg# as_fn_nop
4197c5adda3Smrg# ---------
4207c5adda3Smrg# Do nothing but, unlike ":", preserve the value of $?.
4217c5adda3Smrgas_fn_nop ()
4227c5adda3Smrg{
4237c5adda3Smrg  return $?
4247c5adda3Smrg}
4257c5adda3Smrgas_nop=as_fn_nop
42621212451Smrg
4276f02d4e9Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
4286f02d4e9Smrg# ----------------------------------------
4296f02d4e9Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4306f02d4e9Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4316f02d4e9Smrg# script with STATUS, using 1 if that was 0.
4326f02d4e9Smrgas_fn_error ()
4336f02d4e9Smrg{
4346f02d4e9Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
4356f02d4e9Smrg  if test "$4"; then
4366f02d4e9Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4377c5adda3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4386f02d4e9Smrg  fi
4397c5adda3Smrg  printf "%s\n" "$as_me: error: $2" >&2
4406f02d4e9Smrg  as_fn_exit $as_status
4416f02d4e9Smrg} # as_fn_error
44221212451Smrg
4436f02d4e9Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
4446f02d4e9Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4456f02d4e9Smrg  as_expr=expr
44621212451Smrgelse
4476f02d4e9Smrg  as_expr=false
44821212451Smrgfi
44921212451Smrg
4506f02d4e9Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4516f02d4e9Smrg  as_basename=basename
45221212451Smrgelse
4536f02d4e9Smrg  as_basename=false
45421212451Smrgfi
45521212451Smrg
4566f02d4e9Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4576f02d4e9Smrg  as_dirname=dirname
45821212451Smrgelse
4596f02d4e9Smrg  as_dirname=false
46021212451Smrgfi
46121212451Smrg
4626f02d4e9Smrgas_me=`$as_basename -- "$0" ||
4636f02d4e9Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4646f02d4e9Smrg	 X"$0" : 'X\(//\)$' \| \
4656f02d4e9Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4667c5adda3Smrgprintf "%s\n" X/"$0" |
4676f02d4e9Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4686f02d4e9Smrg	    s//\1/
4696f02d4e9Smrg	    q
4706f02d4e9Smrg	  }
4716f02d4e9Smrg	  /^X\/\(\/\/\)$/{
4726f02d4e9Smrg	    s//\1/
4736f02d4e9Smrg	    q
4746f02d4e9Smrg	  }
4756f02d4e9Smrg	  /^X\/\(\/\).*/{
4766f02d4e9Smrg	    s//\1/
4776f02d4e9Smrg	    q
4786f02d4e9Smrg	  }
4796f02d4e9Smrg	  s/.*/./; q'`
48021212451Smrg
4816f02d4e9Smrg# Avoid depending upon Character Ranges.
4826f02d4e9Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4836f02d4e9Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4846f02d4e9Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4856f02d4e9Smrgas_cr_digits='0123456789'
4866f02d4e9Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
48721212451Smrg
48821212451Smrg
4896f02d4e9Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4906f02d4e9Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4916f02d4e9Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4926f02d4e9Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4936f02d4e9Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
49421212451Smrg  sed -n '
49521212451Smrg    p
49621212451Smrg    /[$]LINENO/=
49721212451Smrg  ' <$as_myself |
49821212451Smrg    sed '
49921212451Smrg      s/[$]LINENO.*/&-/
50021212451Smrg      t lineno
50121212451Smrg      b
50221212451Smrg      :lineno
50321212451Smrg      N
50421212451Smrg      :loop
50521212451Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
50621212451Smrg      t loop
50721212451Smrg      s/-\n.*//
50821212451Smrg    ' >$as_me.lineno &&
50921212451Smrg  chmod +x "$as_me.lineno" ||
5107c5adda3Smrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
51121212451Smrg
5127253c0c7Smrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
5137253c0c7Smrg  # already done that, so ensure we don't try to do so again and fall
5147253c0c7Smrg  # in an infinite loop.  This has already happened in practice.
5157253c0c7Smrg  _as_can_reexec=no; export _as_can_reexec
51621212451Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
51721212451Smrg  # (the dirname of $[0] is not the place where we might find the
51821212451Smrg  # original and so on.  Autoconf is especially sensitive to this).
51921212451Smrg  . "./$as_me.lineno"
52021212451Smrg  # Exit status is that of the last command.
52121212451Smrg  exit
52221212451Smrg}
52321212451Smrg
5247c5adda3Smrg
5257c5adda3Smrg# Determine whether it's possible to make 'echo' print without a newline.
5267c5adda3Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5277c5adda3Smrg# for compatibility with existing Makefiles.
52821212451SmrgECHO_C= ECHO_N= ECHO_T=
5296f02d4e9Smrgcase `echo -n x` in #(((((
53021212451Smrg-n*)
5316f02d4e9Smrg  case `echo 'xy\c'` in
53221212451Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5336f02d4e9Smrg  xy)  ECHO_C='\c';;
5346f02d4e9Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5356f02d4e9Smrg       ECHO_T='	';;
53621212451Smrg  esac;;
53721212451Smrg*)
53821212451Smrg  ECHO_N='-n';;
53921212451Smrgesac
54021212451Smrg
5417c5adda3Smrg# For backward compatibility with old third-party macros, we provide
5427c5adda3Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
5437c5adda3Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5447c5adda3Smrgas_echo='printf %s\n'
5457c5adda3Smrgas_echo_n='printf %s'
5467c5adda3Smrg
5477c5adda3Smrg
54821212451Smrgrm -f conf$$ conf$$.exe conf$$.file
54921212451Smrgif test -d conf$$.dir; then
55021212451Smrg  rm -f conf$$.dir/conf$$.file
55121212451Smrgelse
55221212451Smrg  rm -f conf$$.dir
5536f02d4e9Smrg  mkdir conf$$.dir 2>/dev/null
5546f02d4e9Smrgfi
5556f02d4e9Smrgif (echo >conf$$.file) 2>/dev/null; then
5566f02d4e9Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5576f02d4e9Smrg    as_ln_s='ln -s'
5586f02d4e9Smrg    # ... but there are two gotchas:
5596f02d4e9Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5606f02d4e9Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5617253c0c7Smrg    # In both cases, we have to default to `cp -pR'.
5626f02d4e9Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5637253c0c7Smrg      as_ln_s='cp -pR'
5646f02d4e9Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5656f02d4e9Smrg    as_ln_s=ln
5666f02d4e9Smrg  else
5677253c0c7Smrg    as_ln_s='cp -pR'
5686f02d4e9Smrg  fi
56921212451Smrgelse
5707253c0c7Smrg  as_ln_s='cp -pR'
57121212451Smrgfi
57221212451Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
57321212451Smrgrmdir conf$$.dir 2>/dev/null
57421212451Smrg
57521212451Smrgif mkdir -p . 2>/dev/null; then
5766f02d4e9Smrg  as_mkdir_p='mkdir -p "$as_dir"'
57721212451Smrgelse
57821212451Smrg  test -d ./-p && rmdir ./-p
57921212451Smrg  as_mkdir_p=false
58021212451Smrgfi
58121212451Smrg
5827253c0c7Smrgas_test_x='test -x'
5837253c0c7Smrgas_executable_p=as_fn_executable_p
58421212451Smrg
58521212451Smrg# Sed expression to map a string onto a valid CPP name.
58621212451Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
58721212451Smrg
58821212451Smrg# Sed expression to map a string onto a valid variable name.
58921212451Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
59021212451Smrg
59121212451Smrg
5926f02d4e9Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5936f02d4e9Smrgexec 6>&1
59421212451Smrg
59521212451Smrg# Name of the host.
5966f02d4e9Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
59721212451Smrg# so uname gets run too.
59821212451Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
59921212451Smrg
60021212451Smrg#
60121212451Smrg# Initializations.
60221212451Smrg#
60321212451Smrgac_default_prefix=/usr/local
60421212451Smrgac_clean_files=
60521212451Smrgac_config_libobj_dir=.
60621212451SmrgLIBOBJS=
60721212451Smrgcross_compiling=no
60821212451Smrgsubdirs=
60921212451SmrgMFLAGS=
61021212451SmrgMAKEFLAGS=
61121212451Smrg
61221212451Smrg# Identity of this package.
613a73027baSmrgPACKAGE_NAME='xinit'
614a73027baSmrgPACKAGE_TARNAME='xinit'
615fd549268SmrgPACKAGE_VERSION='1.4.3'
616fd549268SmrgPACKAGE_STRING='xinit 1.4.3'
6177c5adda3SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xinit/-/issues'
6186f02d4e9SmrgPACKAGE_URL=''
619a73027baSmrg
620c81d8f5eSmrgac_unique_file="Makefile.am"
621a73027baSmrg# Factoring default headers for most tests.
622a73027baSmrgac_includes_default="\
6237c5adda3Smrg#include <stddef.h>
6247c5adda3Smrg#ifdef HAVE_STDIO_H
6257c5adda3Smrg# include <stdio.h>
626a73027baSmrg#endif
6277c5adda3Smrg#ifdef HAVE_STDLIB_H
628a73027baSmrg# include <stdlib.h>
629a73027baSmrg#endif
630a73027baSmrg#ifdef HAVE_STRING_H
631a73027baSmrg# include <string.h>
632a73027baSmrg#endif
633a73027baSmrg#ifdef HAVE_INTTYPES_H
634a73027baSmrg# include <inttypes.h>
635a73027baSmrg#endif
636a73027baSmrg#ifdef HAVE_STDINT_H
637a73027baSmrg# include <stdint.h>
638a73027baSmrg#endif
6397c5adda3Smrg#ifdef HAVE_STRINGS_H
6407c5adda3Smrg# include <strings.h>
6417c5adda3Smrg#endif
6427c5adda3Smrg#ifdef HAVE_SYS_TYPES_H
6437c5adda3Smrg# include <sys/types.h>
6447c5adda3Smrg#endif
6457c5adda3Smrg#ifdef HAVE_SYS_STAT_H
6467c5adda3Smrg# include <sys/stat.h>
6477c5adda3Smrg#endif
648a73027baSmrg#ifdef HAVE_UNISTD_H
649a73027baSmrg# include <unistd.h>
650a73027baSmrg#endif"
651a73027baSmrg
6527c5adda3Smrgac_header_c_list=
6536f02d4e9Smrgac_subst_vars='am__EXEEXT_FALSE
6546f02d4e9Smrgam__EXEEXT_TRUE
6556f02d4e9SmrgLTLIBOBJS
6566f02d4e9SmrgLIBOBJS
6576f02d4e9SmrgXINITDIR
6586f02d4e9SmrgXINIT
6596f02d4e9SmrgXAUTH
6606f02d4e9SmrgXSERVER
6616f02d4e9SmrgXTERM
6626f02d4e9SmrgXCLOCK
6636f02d4e9SmrgTWM
6646f02d4e9SmrgXMODMAP
6656f02d4e9SmrgXRDB
6666f02d4e9SmrgXCONFIGFILEMAN
6676f02d4e9SmrgXCONFIGFILE
6686f02d4e9SmrgXSERVERNAME
6696f02d4e9SmrgSHELL_CMD
6706f02d4e9SmrgSTARTX_COOKIE_FLAGS
6716f02d4e9SmrgOPENSSL
6726f02d4e9SmrgMCOOKIE
6736f02d4e9SmrgXINIT_LIBS
6746f02d4e9SmrgXINIT_CFLAGS
6756f02d4e9SmrgLAUNCHAGENT_XSERVER_FALSE
6766f02d4e9SmrgLAUNCHAGENT_XSERVER_TRUE
6776f02d4e9SmrgLAUNCHD_FALSE
6786f02d4e9SmrgLAUNCHD_TRUE
6796f02d4e9Smrglaunchagentxserver
6806f02d4e9Smrgbundleidprefix
6816f02d4e9Smrglaunchdaemonsdir
6826f02d4e9Smrglaunchagentsdir
6836f02d4e9SmrgLAUNCHD
6847253c0c7SmrgTRADITIONALCPPFLAGS
6856f02d4e9SmrgRAWCPPFLAGS
6866f02d4e9SmrgRAWCPP
6877c5adda3SmrgCPP
68821212451SmrgMAN_SUBSTS
6896f02d4e9SmrgXORG_MAN_PAGE
6906f02d4e9SmrgADMIN_MAN_DIR
6916f02d4e9SmrgDRIVER_MAN_DIR
6926f02d4e9SmrgMISC_MAN_DIR
6936f02d4e9SmrgFILE_MAN_DIR
6946f02d4e9SmrgLIB_MAN_DIR
6956f02d4e9SmrgAPP_MAN_DIR
6966f02d4e9SmrgADMIN_MAN_SUFFIX
6976f02d4e9SmrgDRIVER_MAN_SUFFIX
6986f02d4e9SmrgMISC_MAN_SUFFIX
6996f02d4e9SmrgFILE_MAN_SUFFIX
7006f02d4e9SmrgLIB_MAN_SUFFIX
7016f02d4e9SmrgAPP_MAN_SUFFIX
7026f02d4e9SmrgSED
7036f02d4e9Smrghost_os
7046f02d4e9Smrghost_vendor
7056f02d4e9Smrghost_cpu
7066f02d4e9Smrghost
7076f02d4e9Smrgbuild_os
7086f02d4e9Smrgbuild_vendor
7096f02d4e9Smrgbuild_cpu
7106f02d4e9Smrgbuild
7116f02d4e9SmrgINSTALL_CMD
7127253c0c7SmrgPKG_CONFIG_LIBDIR
7137253c0c7SmrgPKG_CONFIG_PATH
7146f02d4e9SmrgPKG_CONFIG
7156f02d4e9SmrgCHANGELOG_CMD
7166f02d4e9SmrgSTRICT_CFLAGS
7176f02d4e9SmrgCWARNFLAGS
7186f02d4e9SmrgBASE_CFLAGS
719fd549268SmrgAM_BACKSLASH
720fd549268SmrgAM_DEFAULT_VERBOSITY
721fd549268SmrgAM_DEFAULT_V
722fd549268SmrgAM_V
7236f02d4e9Smrgam__fastdepCC_FALSE
7246f02d4e9Smrgam__fastdepCC_TRUE
7256f02d4e9SmrgCCDEPMODE
7266f02d4e9Smrgam__nodep
7276f02d4e9SmrgAMDEPBACKSLASH
7286f02d4e9SmrgAMDEP_FALSE
7296f02d4e9SmrgAMDEP_TRUE
7306f02d4e9Smrgam__include
7316f02d4e9SmrgDEPDIR
7326f02d4e9Smrgam__untar
7336f02d4e9Smrgam__tar
7346f02d4e9SmrgAMTAR
7356f02d4e9Smrgam__leading_dot
7366f02d4e9SmrgSET_MAKE
7376f02d4e9SmrgAWK
7386f02d4e9Smrgmkdir_p
7396f02d4e9SmrgMKDIR_P
7406f02d4e9SmrgINSTALL_STRIP_PROGRAM
7416f02d4e9SmrgSTRIP
7426f02d4e9Smrginstall_sh
7436f02d4e9SmrgMAKEINFO
7446f02d4e9SmrgAUTOHEADER
7456f02d4e9SmrgAUTOMAKE
7466f02d4e9SmrgAUTOCONF
7476f02d4e9SmrgACLOCAL
7486f02d4e9SmrgVERSION
7496f02d4e9SmrgPACKAGE
7506f02d4e9SmrgCYGPATH_W
7516f02d4e9Smrgam__isrc
7526f02d4e9SmrgINSTALL_DATA
7536f02d4e9SmrgINSTALL_SCRIPT
7546f02d4e9SmrgINSTALL_PROGRAM
755fd549268SmrgOBJEXT
756fd549268SmrgEXEEXT
757fd549268Smrgac_ct_CC
758fd549268SmrgCPPFLAGS
759fd549268SmrgLDFLAGS
760fd549268SmrgCFLAGS
761fd549268SmrgCC
7626f02d4e9Smrgtarget_alias
7636f02d4e9Smrghost_alias
7646f02d4e9Smrgbuild_alias
7656f02d4e9SmrgLIBS
7666f02d4e9SmrgECHO_T
7676f02d4e9SmrgECHO_N
7686f02d4e9SmrgECHO_C
7696f02d4e9SmrgDEFS
7706f02d4e9Smrgmandir
7716f02d4e9Smrglocaledir
7726f02d4e9Smrglibdir
7736f02d4e9Smrgpsdir
7746f02d4e9Smrgpdfdir
7756f02d4e9Smrgdvidir
7766f02d4e9Smrghtmldir
7776f02d4e9Smrginfodir
7786f02d4e9Smrgdocdir
7796f02d4e9Smrgoldincludedir
7806f02d4e9Smrgincludedir
7817c5adda3Smrgrunstatedir
7826f02d4e9Smrglocalstatedir
7836f02d4e9Smrgsharedstatedir
7846f02d4e9Smrgsysconfdir
7856f02d4e9Smrgdatadir
7866f02d4e9Smrgdatarootdir
7876f02d4e9Smrglibexecdir
7886f02d4e9Smrgsbindir
7896f02d4e9Smrgbindir
7906f02d4e9Smrgprogram_transform_name
7916f02d4e9Smrgprefix
7926f02d4e9Smrgexec_prefix
7936f02d4e9SmrgPACKAGE_URL
7946f02d4e9SmrgPACKAGE_BUGREPORT
7956f02d4e9SmrgPACKAGE_STRING
7966f02d4e9SmrgPACKAGE_VERSION
7976f02d4e9SmrgPACKAGE_TARNAME
7986f02d4e9SmrgPACKAGE_NAME
7996f02d4e9SmrgPATH_SEPARATOR
8007c5adda3SmrgSHELL
8017c5adda3Smrgam__quote'
802a73027baSmrgac_subst_files=''
8036f02d4e9Smrgac_user_opts='
8046f02d4e9Smrgenable_option_checking
8056f02d4e9Smrgenable_dependency_tracking
806fd549268Smrgenable_silent_rules
8076f02d4e9Smrgenable_selective_werror
8086f02d4e9Smrgenable_strict_compilation
8096f02d4e9Smrgwith_xrdb
8106f02d4e9Smrgwith_xmodmap
8116f02d4e9Smrgwith_twm
8126f02d4e9Smrgwith_xclock
8136f02d4e9Smrgwith_xterm
8146f02d4e9Smrgwith_xserver
8156f02d4e9Smrgwith_xauth
8166f02d4e9Smrgwith_xinit
8176f02d4e9Smrgwith_xinitdir
8186f02d4e9Smrgwith_launchd
8196f02d4e9Smrgwith_launchagents_dir
8206f02d4e9Smrgwith_launchagent_xserver
8216f02d4e9Smrgwith_launchdaemons_dir
8226f02d4e9Smrgwith_launchd_id_prefix
8236f02d4e9Smrgwith_bundle_id_prefix
8246f02d4e9Smrg'
825a73027baSmrg      ac_precious_vars='build_alias
826a73027baSmrghost_alias
827a73027baSmrgtarget_alias
828a73027baSmrgCC
829a73027baSmrgCFLAGS
830a73027baSmrgLDFLAGS
831a73027baSmrgLIBS
832a73027baSmrgCPPFLAGS
833a73027baSmrgPKG_CONFIG
8347253c0c7SmrgPKG_CONFIG_PATH
8357253c0c7SmrgPKG_CONFIG_LIBDIR
8367c5adda3SmrgCPP
837a73027baSmrgXINIT_CFLAGS
838a73027baSmrgXINIT_LIBS'
839a73027baSmrg
840a73027baSmrg
841a73027baSmrg# Initialize some variables set by options.
842a73027baSmrgac_init_help=
843a73027baSmrgac_init_version=false
8446f02d4e9Smrgac_unrecognized_opts=
8456f02d4e9Smrgac_unrecognized_sep=
846a73027baSmrg# The variables have the same names as the options, with
847a73027baSmrg# dashes changed to underlines.
848a73027baSmrgcache_file=/dev/null
849a73027baSmrgexec_prefix=NONE
850a73027baSmrgno_create=
851a73027baSmrgno_recursion=
852a73027baSmrgprefix=NONE
853a73027baSmrgprogram_prefix=NONE
854a73027baSmrgprogram_suffix=NONE
855a73027baSmrgprogram_transform_name=s,x,x,
856a73027baSmrgsilent=
857a73027baSmrgsite=
858a73027baSmrgsrcdir=
859a73027baSmrgverbose=
860a73027baSmrgx_includes=NONE
861a73027baSmrgx_libraries=NONE
862a73027baSmrg
863a73027baSmrg# Installation directory options.
864a73027baSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
865a73027baSmrg# and all the variables that are supposed to be based on exec_prefix
866a73027baSmrg# by default will actually change.
867a73027baSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
868a73027baSmrg# (The list follows the same order as the GNU Coding Standards.)
869a73027baSmrgbindir='${exec_prefix}/bin'
870a73027baSmrgsbindir='${exec_prefix}/sbin'
871a73027baSmrglibexecdir='${exec_prefix}/libexec'
872a73027baSmrgdatarootdir='${prefix}/share'
873a73027baSmrgdatadir='${datarootdir}'
874a73027baSmrgsysconfdir='${prefix}/etc'
875a73027baSmrgsharedstatedir='${prefix}/com'
876a73027baSmrglocalstatedir='${prefix}/var'
8777c5adda3Smrgrunstatedir='${localstatedir}/run'
878a73027baSmrgincludedir='${prefix}/include'
879a73027baSmrgoldincludedir='/usr/include'
880a73027baSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881a73027baSmrginfodir='${datarootdir}/info'
882a73027baSmrghtmldir='${docdir}'
883a73027baSmrgdvidir='${docdir}'
884a73027baSmrgpdfdir='${docdir}'
885a73027baSmrgpsdir='${docdir}'
886a73027baSmrglibdir='${exec_prefix}/lib'
887a73027baSmrglocaledir='${datarootdir}/locale'
888a73027baSmrgmandir='${datarootdir}/man'
889a73027baSmrg
890a73027baSmrgac_prev=
891a73027baSmrgac_dashdash=
892a73027baSmrgfor ac_option
893a73027baSmrgdo
894a73027baSmrg  # If the previous option needs an argument, assign it.
895a73027baSmrg  if test -n "$ac_prev"; then
896a73027baSmrg    eval $ac_prev=\$ac_option
897a73027baSmrg    ac_prev=
898a73027baSmrg    continue
899a73027baSmrg  fi
900a73027baSmrg
901a73027baSmrg  case $ac_option in
9026f02d4e9Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
9036f02d4e9Smrg  *=)   ac_optarg= ;;
9046f02d4e9Smrg  *)    ac_optarg=yes ;;
905a73027baSmrg  esac
906a73027baSmrg
907a73027baSmrg  case $ac_dashdash$ac_option in
908a73027baSmrg  --)
909a73027baSmrg    ac_dashdash=yes ;;
910a73027baSmrg
911a73027baSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
912a73027baSmrg    ac_prev=bindir ;;
913a73027baSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914a73027baSmrg    bindir=$ac_optarg ;;
915a73027baSmrg
916a73027baSmrg  -build | --build | --buil | --bui | --bu)
917a73027baSmrg    ac_prev=build_alias ;;
918a73027baSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919a73027baSmrg    build_alias=$ac_optarg ;;
920a73027baSmrg
921a73027baSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
922a73027baSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923a73027baSmrg    ac_prev=cache_file ;;
924a73027baSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925a73027baSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926a73027baSmrg    cache_file=$ac_optarg ;;
927a73027baSmrg
928a73027baSmrg  --config-cache | -C)
929a73027baSmrg    cache_file=config.cache ;;
930a73027baSmrg
931a73027baSmrg  -datadir | --datadir | --datadi | --datad)
932a73027baSmrg    ac_prev=datadir ;;
933a73027baSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
934a73027baSmrg    datadir=$ac_optarg ;;
935a73027baSmrg
936a73027baSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937a73027baSmrg  | --dataroo | --dataro | --datar)
938a73027baSmrg    ac_prev=datarootdir ;;
939a73027baSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940a73027baSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941a73027baSmrg    datarootdir=$ac_optarg ;;
942a73027baSmrg
943a73027baSmrg  -disable-* | --disable-*)
9446f02d4e9Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945a73027baSmrg    # Reject names that are not valid shell variable names.
9466f02d4e9Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9477c5adda3Smrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
9486f02d4e9Smrg    ac_useropt_orig=$ac_useropt
9497c5adda3Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
9506f02d4e9Smrg    case $ac_user_opts in
9516f02d4e9Smrg      *"
9526f02d4e9Smrg"enable_$ac_useropt"
9536f02d4e9Smrg"*) ;;
9546f02d4e9Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
9556f02d4e9Smrg	 ac_unrecognized_sep=', ';;
9566f02d4e9Smrg    esac
9576f02d4e9Smrg    eval enable_$ac_useropt=no ;;
958a73027baSmrg
959a73027baSmrg  -docdir | --docdir | --docdi | --doc | --do)
960a73027baSmrg    ac_prev=docdir ;;
961a73027baSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962a73027baSmrg    docdir=$ac_optarg ;;
963a73027baSmrg
964a73027baSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965a73027baSmrg    ac_prev=dvidir ;;
966a73027baSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967a73027baSmrg    dvidir=$ac_optarg ;;
968a73027baSmrg
969a73027baSmrg  -enable-* | --enable-*)
9706f02d4e9Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971a73027baSmrg    # Reject names that are not valid shell variable names.
9726f02d4e9Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9737c5adda3Smrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
9746f02d4e9Smrg    ac_useropt_orig=$ac_useropt
9757c5adda3Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
9766f02d4e9Smrg    case $ac_user_opts in
9776f02d4e9Smrg      *"
9786f02d4e9Smrg"enable_$ac_useropt"
9796f02d4e9Smrg"*) ;;
9806f02d4e9Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9816f02d4e9Smrg	 ac_unrecognized_sep=', ';;
9826f02d4e9Smrg    esac
9836f02d4e9Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
984a73027baSmrg
985a73027baSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986a73027baSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987a73027baSmrg  | --exec | --exe | --ex)
988a73027baSmrg    ac_prev=exec_prefix ;;
989a73027baSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990a73027baSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991a73027baSmrg  | --exec=* | --exe=* | --ex=*)
992a73027baSmrg    exec_prefix=$ac_optarg ;;
993a73027baSmrg
994a73027baSmrg  -gas | --gas | --ga | --g)
995a73027baSmrg    # Obsolete; use --with-gas.
996a73027baSmrg    with_gas=yes ;;
997a73027baSmrg
998a73027baSmrg  -help | --help | --hel | --he | -h)
999a73027baSmrg    ac_init_help=long ;;
1000a73027baSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001a73027baSmrg    ac_init_help=recursive ;;
1002a73027baSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003a73027baSmrg    ac_init_help=short ;;
1004a73027baSmrg
1005a73027baSmrg  -host | --host | --hos | --ho)
1006a73027baSmrg    ac_prev=host_alias ;;
1007a73027baSmrg  -host=* | --host=* | --hos=* | --ho=*)
1008a73027baSmrg    host_alias=$ac_optarg ;;
1009a73027baSmrg
1010a73027baSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011a73027baSmrg    ac_prev=htmldir ;;
1012a73027baSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013a73027baSmrg  | --ht=*)
1014a73027baSmrg    htmldir=$ac_optarg ;;
1015a73027baSmrg
1016a73027baSmrg  -includedir | --includedir | --includedi | --included | --include \
1017a73027baSmrg  | --includ | --inclu | --incl | --inc)
1018a73027baSmrg    ac_prev=includedir ;;
1019a73027baSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020a73027baSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
1021a73027baSmrg    includedir=$ac_optarg ;;
1022a73027baSmrg
1023a73027baSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
1024a73027baSmrg    ac_prev=infodir ;;
1025a73027baSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026a73027baSmrg    infodir=$ac_optarg ;;
1027a73027baSmrg
1028a73027baSmrg  -libdir | --libdir | --libdi | --libd)
1029a73027baSmrg    ac_prev=libdir ;;
1030a73027baSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031a73027baSmrg    libdir=$ac_optarg ;;
1032a73027baSmrg
1033a73027baSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034a73027baSmrg  | --libexe | --libex | --libe)
1035a73027baSmrg    ac_prev=libexecdir ;;
1036a73027baSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037a73027baSmrg  | --libexe=* | --libex=* | --libe=*)
1038a73027baSmrg    libexecdir=$ac_optarg ;;
1039a73027baSmrg
1040a73027baSmrg  -localedir | --localedir | --localedi | --localed | --locale)
1041a73027baSmrg    ac_prev=localedir ;;
1042a73027baSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043a73027baSmrg    localedir=$ac_optarg ;;
1044a73027baSmrg
1045a73027baSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
1046a73027baSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
1047a73027baSmrg    ac_prev=localstatedir ;;
1048a73027baSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049a73027baSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050a73027baSmrg    localstatedir=$ac_optarg ;;
1051a73027baSmrg
1052a73027baSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053a73027baSmrg    ac_prev=mandir ;;
1054a73027baSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055a73027baSmrg    mandir=$ac_optarg ;;
1056a73027baSmrg
1057a73027baSmrg  -nfp | --nfp | --nf)
1058a73027baSmrg    # Obsolete; use --without-fp.
1059a73027baSmrg    with_fp=no ;;
1060a73027baSmrg
1061a73027baSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062a73027baSmrg  | --no-cr | --no-c | -n)
1063a73027baSmrg    no_create=yes ;;
1064a73027baSmrg
1065a73027baSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066a73027baSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067a73027baSmrg    no_recursion=yes ;;
1068a73027baSmrg
1069a73027baSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070a73027baSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071a73027baSmrg  | --oldin | --oldi | --old | --ol | --o)
1072a73027baSmrg    ac_prev=oldincludedir ;;
1073a73027baSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074a73027baSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075a73027baSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076a73027baSmrg    oldincludedir=$ac_optarg ;;
1077a73027baSmrg
1078a73027baSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079a73027baSmrg    ac_prev=prefix ;;
1080a73027baSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081a73027baSmrg    prefix=$ac_optarg ;;
1082a73027baSmrg
1083a73027baSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084a73027baSmrg  | --program-pre | --program-pr | --program-p)
1085a73027baSmrg    ac_prev=program_prefix ;;
1086a73027baSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087a73027baSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088a73027baSmrg    program_prefix=$ac_optarg ;;
1089a73027baSmrg
1090a73027baSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091a73027baSmrg  | --program-suf | --program-su | --program-s)
1092a73027baSmrg    ac_prev=program_suffix ;;
1093a73027baSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094a73027baSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095a73027baSmrg    program_suffix=$ac_optarg ;;
1096a73027baSmrg
1097a73027baSmrg  -program-transform-name | --program-transform-name \
1098a73027baSmrg  | --program-transform-nam | --program-transform-na \
1099a73027baSmrg  | --program-transform-n | --program-transform- \
1100a73027baSmrg  | --program-transform | --program-transfor \
1101a73027baSmrg  | --program-transfo | --program-transf \
1102a73027baSmrg  | --program-trans | --program-tran \
1103a73027baSmrg  | --progr-tra | --program-tr | --program-t)
1104a73027baSmrg    ac_prev=program_transform_name ;;
1105a73027baSmrg  -program-transform-name=* | --program-transform-name=* \
1106a73027baSmrg  | --program-transform-nam=* | --program-transform-na=* \
1107a73027baSmrg  | --program-transform-n=* | --program-transform-=* \
1108a73027baSmrg  | --program-transform=* | --program-transfor=* \
1109a73027baSmrg  | --program-transfo=* | --program-transf=* \
1110a73027baSmrg  | --program-trans=* | --program-tran=* \
1111a73027baSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1112a73027baSmrg    program_transform_name=$ac_optarg ;;
1113a73027baSmrg
1114a73027baSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115a73027baSmrg    ac_prev=pdfdir ;;
1116a73027baSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117a73027baSmrg    pdfdir=$ac_optarg ;;
1118a73027baSmrg
1119a73027baSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1120a73027baSmrg    ac_prev=psdir ;;
1121a73027baSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122a73027baSmrg    psdir=$ac_optarg ;;
1123a73027baSmrg
1124a73027baSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125a73027baSmrg  | -silent | --silent | --silen | --sile | --sil)
1126a73027baSmrg    silent=yes ;;
1127a73027baSmrg
11287c5adda3Smrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
11297c5adda3Smrg  | --runstate | --runstat | --runsta | --runst | --runs \
11307c5adda3Smrg  | --run | --ru | --r)
11317c5adda3Smrg    ac_prev=runstatedir ;;
11327c5adda3Smrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
11337c5adda3Smrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
11347c5adda3Smrg  | --run=* | --ru=* | --r=*)
11357c5adda3Smrg    runstatedir=$ac_optarg ;;
11367c5adda3Smrg
1137a73027baSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138a73027baSmrg    ac_prev=sbindir ;;
1139a73027baSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140a73027baSmrg  | --sbi=* | --sb=*)
1141a73027baSmrg    sbindir=$ac_optarg ;;
1142a73027baSmrg
1143a73027baSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144a73027baSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145a73027baSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1146a73027baSmrg  | --sha | --sh)
1147a73027baSmrg    ac_prev=sharedstatedir ;;
1148a73027baSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149a73027baSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150a73027baSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151a73027baSmrg  | --sha=* | --sh=*)
1152a73027baSmrg    sharedstatedir=$ac_optarg ;;
1153a73027baSmrg
1154a73027baSmrg  -site | --site | --sit)
1155a73027baSmrg    ac_prev=site ;;
1156a73027baSmrg  -site=* | --site=* | --sit=*)
1157a73027baSmrg    site=$ac_optarg ;;
1158a73027baSmrg
1159a73027baSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160a73027baSmrg    ac_prev=srcdir ;;
1161a73027baSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162a73027baSmrg    srcdir=$ac_optarg ;;
1163a73027baSmrg
1164a73027baSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165a73027baSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1166a73027baSmrg    ac_prev=sysconfdir ;;
1167a73027baSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168a73027baSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169a73027baSmrg    sysconfdir=$ac_optarg ;;
1170a73027baSmrg
1171a73027baSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1172a73027baSmrg    ac_prev=target_alias ;;
1173a73027baSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174a73027baSmrg    target_alias=$ac_optarg ;;
1175a73027baSmrg
1176a73027baSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177a73027baSmrg    verbose=yes ;;
1178a73027baSmrg
1179a73027baSmrg  -version | --version | --versio | --versi | --vers | -V)
1180a73027baSmrg    ac_init_version=: ;;
1181a73027baSmrg
1182a73027baSmrg  -with-* | --with-*)
11836f02d4e9Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184a73027baSmrg    # Reject names that are not valid shell variable names.
11856f02d4e9Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11867c5adda3Smrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
11876f02d4e9Smrg    ac_useropt_orig=$ac_useropt
11887c5adda3Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11896f02d4e9Smrg    case $ac_user_opts in
11906f02d4e9Smrg      *"
11916f02d4e9Smrg"with_$ac_useropt"
11926f02d4e9Smrg"*) ;;
11936f02d4e9Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11946f02d4e9Smrg	 ac_unrecognized_sep=', ';;
11956f02d4e9Smrg    esac
11966f02d4e9Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1197a73027baSmrg
1198a73027baSmrg  -without-* | --without-*)
11996f02d4e9Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200a73027baSmrg    # Reject names that are not valid shell variable names.
12016f02d4e9Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12027c5adda3Smrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
12036f02d4e9Smrg    ac_useropt_orig=$ac_useropt
12047c5adda3Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
12056f02d4e9Smrg    case $ac_user_opts in
12066f02d4e9Smrg      *"
12076f02d4e9Smrg"with_$ac_useropt"
12086f02d4e9Smrg"*) ;;
12096f02d4e9Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
12106f02d4e9Smrg	 ac_unrecognized_sep=', ';;
12116f02d4e9Smrg    esac
12126f02d4e9Smrg    eval with_$ac_useropt=no ;;
1213a73027baSmrg
1214a73027baSmrg  --x)
1215a73027baSmrg    # Obsolete; use --with-x.
1216a73027baSmrg    with_x=yes ;;
1217a73027baSmrg
1218a73027baSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219a73027baSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1220a73027baSmrg    ac_prev=x_includes ;;
1221a73027baSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222a73027baSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223a73027baSmrg    x_includes=$ac_optarg ;;
1224a73027baSmrg
1225a73027baSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226a73027baSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227a73027baSmrg    ac_prev=x_libraries ;;
1228a73027baSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229a73027baSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230a73027baSmrg    x_libraries=$ac_optarg ;;
1231a73027baSmrg
12326f02d4e9Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
12336f02d4e9SmrgTry \`$0 --help' for more information"
1234a73027baSmrg    ;;
1235a73027baSmrg
1236a73027baSmrg  *=*)
1237a73027baSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238a73027baSmrg    # Reject names that are not valid shell variable names.
12396f02d4e9Smrg    case $ac_envvar in #(
12406f02d4e9Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
12416f02d4e9Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
12426f02d4e9Smrg    esac
1243a73027baSmrg    eval $ac_envvar=\$ac_optarg
1244a73027baSmrg    export $ac_envvar ;;
1245a73027baSmrg
1246a73027baSmrg  *)
1247a73027baSmrg    # FIXME: should be removed in autoconf 3.0.
12487c5adda3Smrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1249a73027baSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
12507c5adda3Smrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
12516f02d4e9Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252a73027baSmrg    ;;
1253a73027baSmrg
1254a73027baSmrg  esac
1255a73027baSmrgdone
1256a73027baSmrg
1257a73027baSmrgif test -n "$ac_prev"; then
1258a73027baSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12596f02d4e9Smrg  as_fn_error $? "missing argument to $ac_option"
12606f02d4e9Smrgfi
12616f02d4e9Smrg
12626f02d4e9Smrgif test -n "$ac_unrecognized_opts"; then
12636f02d4e9Smrg  case $enable_option_checking in
12646f02d4e9Smrg    no) ;;
12656f02d4e9Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
12667c5adda3Smrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12676f02d4e9Smrg  esac
1268a73027baSmrgfi
1269a73027baSmrg
12706f02d4e9Smrg# Check all directory arguments for consistency.
1271a73027baSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272a73027baSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1273a73027baSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
12747c5adda3Smrg		libdir localedir mandir runstatedir
1275a73027baSmrgdo
1276a73027baSmrg  eval ac_val=\$$ac_var
12776f02d4e9Smrg  # Remove trailing slashes.
12786f02d4e9Smrg  case $ac_val in
12796f02d4e9Smrg    */ )
12806f02d4e9Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
12816f02d4e9Smrg      eval $ac_var=\$ac_val;;
12826f02d4e9Smrg  esac
12836f02d4e9Smrg  # Be sure to have absolute directory names.
1284a73027baSmrg  case $ac_val in
1285a73027baSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1286a73027baSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287a73027baSmrg  esac
12886f02d4e9Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289a73027baSmrgdone
1290a73027baSmrg
1291a73027baSmrg# There might be people who depend on the old broken behavior: `$host'
1292a73027baSmrg# used to hold the argument of --host etc.
1293a73027baSmrg# FIXME: To remove some day.
1294a73027baSmrgbuild=$build_alias
1295a73027baSmrghost=$host_alias
1296a73027baSmrgtarget=$target_alias
1297a73027baSmrg
1298a73027baSmrg# FIXME: To remove some day.
1299a73027baSmrgif test "x$host_alias" != x; then
1300a73027baSmrg  if test "x$build_alias" = x; then
1301a73027baSmrg    cross_compiling=maybe
1302a73027baSmrg  elif test "x$build_alias" != "x$host_alias"; then
1303a73027baSmrg    cross_compiling=yes
1304a73027baSmrg  fi
1305a73027baSmrgfi
1306a73027baSmrg
1307a73027baSmrgac_tool_prefix=
1308a73027baSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1309a73027baSmrg
1310a73027baSmrgtest "$silent" = yes && exec 6>/dev/null
1311a73027baSmrg
1312a73027baSmrg
1313a73027baSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1314a73027baSmrgac_ls_di=`ls -di .` &&
1315a73027baSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
13166f02d4e9Smrg  as_fn_error $? "working directory cannot be determined"
1317a73027baSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
13186f02d4e9Smrg  as_fn_error $? "pwd does not report name of working directory"
1319a73027baSmrg
1320a73027baSmrg
1321a73027baSmrg# Find the source files, if location was not specified.
1322a73027baSmrgif test -z "$srcdir"; then
1323a73027baSmrg  ac_srcdir_defaulted=yes
1324a73027baSmrg  # Try the directory containing this script, then the parent directory.
13256f02d4e9Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
13266f02d4e9Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13276f02d4e9Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
13286f02d4e9Smrg	 X"$as_myself" : 'X\(//\)$' \| \
13296f02d4e9Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
13307c5adda3Smrgprintf "%s\n" X"$as_myself" |
1331a73027baSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332a73027baSmrg	    s//\1/
1333a73027baSmrg	    q
1334a73027baSmrg	  }
1335a73027baSmrg	  /^X\(\/\/\)[^/].*/{
1336a73027baSmrg	    s//\1/
1337a73027baSmrg	    q
1338a73027baSmrg	  }
1339a73027baSmrg	  /^X\(\/\/\)$/{
1340a73027baSmrg	    s//\1/
1341a73027baSmrg	    q
1342a73027baSmrg	  }
1343a73027baSmrg	  /^X\(\/\).*/{
1344a73027baSmrg	    s//\1/
1345a73027baSmrg	    q
1346a73027baSmrg	  }
1347a73027baSmrg	  s/.*/./; q'`
1348a73027baSmrg  srcdir=$ac_confdir
1349a73027baSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
1350a73027baSmrg    srcdir=..
1351a73027baSmrg  fi
1352a73027baSmrgelse
1353a73027baSmrg  ac_srcdir_defaulted=no
1354a73027baSmrgfi
1355a73027baSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1356a73027baSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
13576f02d4e9Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358a73027baSmrgfi
1359a73027baSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360a73027baSmrgac_abs_confdir=`(
13616f02d4e9Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362a73027baSmrg	pwd)`
1363a73027baSmrg# When building in place, set srcdir=.
1364a73027baSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1365a73027baSmrg  srcdir=.
1366a73027baSmrgfi
1367a73027baSmrg# Remove unnecessary trailing slashes from srcdir.
1368a73027baSmrg# Double slashes in file names in object file debugging info
1369a73027baSmrg# mess up M-x gdb in Emacs.
1370a73027baSmrgcase $srcdir in
1371a73027baSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372a73027baSmrgesac
1373a73027baSmrgfor ac_var in $ac_precious_vars; do
1374a73027baSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375a73027baSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1376a73027baSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377a73027baSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378a73027baSmrgdone
1379a73027baSmrg
1380a73027baSmrg#
1381a73027baSmrg# Report the --help message.
1382a73027baSmrg#
1383a73027baSmrgif test "$ac_init_help" = "long"; then
1384a73027baSmrg  # Omit some internal or obsolete options to make the list less imposing.
1385a73027baSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1386a73027baSmrg  cat <<_ACEOF
1387fd549268Smrg\`configure' configures xinit 1.4.3 to adapt to many kinds of systems.
1388a73027baSmrg
1389a73027baSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1390a73027baSmrg
1391a73027baSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1392a73027baSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1393a73027baSmrg
1394a73027baSmrgDefaults for the options are specified in brackets.
1395a73027baSmrg
1396a73027baSmrgConfiguration:
1397a73027baSmrg  -h, --help              display this help and exit
1398a73027baSmrg      --help=short        display options specific to this package
1399a73027baSmrg      --help=recursive    display the short help of all the included packages
1400a73027baSmrg  -V, --version           display version information and exit
14016f02d4e9Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
1402a73027baSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1403a73027baSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1404a73027baSmrg  -n, --no-create         do not create output files
1405a73027baSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1406a73027baSmrg
1407a73027baSmrgInstallation directories:
1408a73027baSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
14096f02d4e9Smrg                          [$ac_default_prefix]
1410a73027baSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
14116f02d4e9Smrg                          [PREFIX]
1412a73027baSmrg
1413a73027baSmrgBy default, \`make install' will install all the files in
1414a73027baSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1415a73027baSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416a73027baSmrgfor instance \`--prefix=\$HOME'.
1417a73027baSmrg
1418a73027baSmrgFor better control, use the options below.
1419a73027baSmrg
1420a73027baSmrgFine tuning of the installation directories:
14216f02d4e9Smrg  --bindir=DIR            user executables [EPREFIX/bin]
14226f02d4e9Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
14236f02d4e9Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
14246f02d4e9Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
14256f02d4e9Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
14266f02d4e9Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
14277c5adda3Smrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
14286f02d4e9Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
14296f02d4e9Smrg  --includedir=DIR        C header files [PREFIX/include]
14306f02d4e9Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
14316f02d4e9Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
14326f02d4e9Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
14336f02d4e9Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
14346f02d4e9Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
14356f02d4e9Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
14366f02d4e9Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xinit]
14376f02d4e9Smrg  --htmldir=DIR           html documentation [DOCDIR]
14386f02d4e9Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
14396f02d4e9Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
14406f02d4e9Smrg  --psdir=DIR             ps documentation [DOCDIR]
1441a73027baSmrg_ACEOF
1442a73027baSmrg
1443a73027baSmrg  cat <<\_ACEOF
1444a73027baSmrg
1445a73027baSmrgProgram names:
1446a73027baSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1447a73027baSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1448a73027baSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1449a73027baSmrg
1450a73027baSmrgSystem types:
1451a73027baSmrg  --build=BUILD     configure for building on BUILD [guessed]
1452a73027baSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1453a73027baSmrg_ACEOF
1454a73027baSmrgfi
1455a73027baSmrg
1456a73027baSmrgif test -n "$ac_init_help"; then
1457a73027baSmrg  case $ac_init_help in
1458fd549268Smrg     short | recursive ) echo "Configuration of xinit 1.4.3:";;
1459a73027baSmrg   esac
1460a73027baSmrg  cat <<\_ACEOF
1461a73027baSmrg
1462a73027baSmrgOptional Features:
14636f02d4e9Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1464a73027baSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1465a73027baSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14666f02d4e9Smrg  --enable-dependency-tracking
14676f02d4e9Smrg                          do not reject slow dependency extractors
14686f02d4e9Smrg  --disable-dependency-tracking
14696f02d4e9Smrg                          speeds up one-time build
1470fd549268Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
1471fd549268Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
147221212451Smrg  --disable-selective-werror
147321212451Smrg                          Turn off selective compiler errors. (default:
147421212451Smrg                          enabled)
1475bf4a254eSmrg  --enable-strict-compilation
1476bf4a254eSmrg                          Enable all warnings from compiler and make them
1477bf4a254eSmrg                          errors (default: disabled)
1478a73027baSmrg
1479a73027baSmrgOptional Packages:
1480a73027baSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1481a73027baSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1482a73027baSmrg  --with-xrdb=XRDB        Path to xrdb
1483a73027baSmrg  --with-xmodmap=XMODMAP  Path to xmodmap
1484a73027baSmrg  --with-twm=TWM          Path to twm
1485a73027baSmrg  --with-xclock=XCLOCK    Path to xclock
1486a73027baSmrg  --with-xterm=XTERM      Path to xterm
1487a73027baSmrg  --with-xserver=XSERVER  Path to default X server
1488a73027baSmrg  --with-xauth=XAUTH      Path to xauth
1489a73027baSmrg  --with-xinit=XINIT      Path to xinit
1490bf4a254eSmrg  --with-xinitdir=XINITDIR
1491bf4a254eSmrg                          Path to xinitdir
1492a73027baSmrg  --with-launchd          Build with support for Apple's launchd (default:
1493a73027baSmrg                          auto)
1494a73027baSmrg  --with-launchagents-dir=PATH
1495a73027baSmrg                          Path to launchd's LaunchAgents directory (default:
1496a73027baSmrg                          /Library/LaunchAgents)
149721212451Smrg  --with-launchagent-xserver=PATH
149821212451Smrg                          Path to the X server which the LaunchAgent should
149921212451Smrg                          start (if not provided, let startx decide)"
1500a73027baSmrg  --with-launchdaemons-dir=PATH
1501a73027baSmrg                          Path to launchd's LaunchDaemonss directory (default:
1502a73027baSmrg                          /Library/LaunchDaemons)
1503bf4a254eSmrg  --with-launchd-id-prefix=PATH
1504c81d8f5eSmrg                          Deprecated: Use --with-bundle-id-prefix.
1505c81d8f5eSmrg  --with-bundle-id-prefix=PATH
1506c81d8f5eSmrg                          Prefix to use for bundle identifiers (default:
1507bf4a254eSmrg                          org.x)
1508a73027baSmrg
1509a73027baSmrgSome influential environment variables:
1510a73027baSmrg  CC          C compiler command
1511a73027baSmrg  CFLAGS      C compiler flags
1512a73027baSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1513a73027baSmrg              nonstandard directory <lib dir>
1514a73027baSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
15156f02d4e9Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1516a73027baSmrg              you have headers in a nonstandard directory <include dir>
1517a73027baSmrg  PKG_CONFIG  path to pkg-config utility
15187253c0c7Smrg  PKG_CONFIG_PATH
15197253c0c7Smrg              directories to add to pkg-config's search path
15207253c0c7Smrg  PKG_CONFIG_LIBDIR
15217253c0c7Smrg              path overriding pkg-config's built-in search path
15227c5adda3Smrg  CPP         C preprocessor
1523a73027baSmrg  XINIT_CFLAGS
1524a73027baSmrg              C compiler flags for XINIT, overriding pkg-config
1525a73027baSmrg  XINIT_LIBS  linker flags for XINIT, overriding pkg-config
1526a73027baSmrg
1527a73027baSmrgUse these variables to override the choices made by `configure' or to help
1528a73027baSmrgit to find libraries and programs with nonstandard names/locations.
1529a73027baSmrg
15307c5adda3SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xinit/-/issues>.
1531a73027baSmrg_ACEOF
1532a73027baSmrgac_status=$?
1533a73027baSmrgfi
1534a73027baSmrg
1535a73027baSmrgif test "$ac_init_help" = "recursive"; then
1536a73027baSmrg  # If there are subdirs, report their specific --help.
1537a73027baSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
15386f02d4e9Smrg    test -d "$ac_dir" ||
15396f02d4e9Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
15406f02d4e9Smrg      continue
1541a73027baSmrg    ac_builddir=.
1542a73027baSmrg
1543a73027baSmrgcase "$ac_dir" in
1544a73027baSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545a73027baSmrg*)
15467c5adda3Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1547a73027baSmrg  # A ".." for each directory in $ac_dir_suffix.
15487c5adda3Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549a73027baSmrg  case $ac_top_builddir_sub in
1550a73027baSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551a73027baSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552a73027baSmrg  esac ;;
1553a73027baSmrgesac
1554a73027baSmrgac_abs_top_builddir=$ac_pwd
1555a73027baSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1556a73027baSmrg# for backward compatibility:
1557a73027baSmrgac_top_builddir=$ac_top_build_prefix
1558a73027baSmrg
1559a73027baSmrgcase $srcdir in
1560a73027baSmrg  .)  # We are building in place.
1561a73027baSmrg    ac_srcdir=.
1562a73027baSmrg    ac_top_srcdir=$ac_top_builddir_sub
1563a73027baSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1564a73027baSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1565a73027baSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
1566a73027baSmrg    ac_top_srcdir=$srcdir
1567a73027baSmrg    ac_abs_top_srcdir=$srcdir ;;
1568a73027baSmrg  *) # Relative name.
1569a73027baSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570a73027baSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1571a73027baSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572a73027baSmrgesac
1573a73027baSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574a73027baSmrg
1575a73027baSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
15767c5adda3Smrg    # Check for configure.gnu first; this name is used for a wrapper for
15777c5adda3Smrg    # Metaconfig's "Configure" on case-insensitive file systems.
1578a73027baSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1579a73027baSmrg      echo &&
1580a73027baSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581a73027baSmrg    elif test -f "$ac_srcdir/configure"; then
1582a73027baSmrg      echo &&
1583a73027baSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
1584a73027baSmrg    else
15857c5adda3Smrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586a73027baSmrg    fi || ac_status=$?
1587a73027baSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
1588a73027baSmrg  done
1589a73027baSmrgfi
1590a73027baSmrg
1591a73027baSmrgtest -n "$ac_init_help" && exit $ac_status
1592a73027baSmrgif $ac_init_version; then
1593a73027baSmrg  cat <<\_ACEOF
1594fd549268Smrgxinit configure 1.4.3
15957c5adda3Smrggenerated by GNU Autoconf 2.71
1596a73027baSmrg
15977c5adda3SmrgCopyright (C) 2021 Free Software Foundation, Inc.
1598a73027baSmrgThis configure script is free software; the Free Software Foundation
1599a73027baSmrggives unlimited permission to copy, distribute and modify it.
1600a73027baSmrg_ACEOF
1601a73027baSmrg  exit
1602a73027baSmrgfi
16036f02d4e9Smrg
16046f02d4e9Smrg## ------------------------ ##
16056f02d4e9Smrg## Autoconf initialization. ##
16066f02d4e9Smrg## ------------------------ ##
16076f02d4e9Smrg
16086f02d4e9Smrg# ac_fn_c_try_compile LINENO
16096f02d4e9Smrg# --------------------------
16106f02d4e9Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
16116f02d4e9Smrgac_fn_c_try_compile ()
16126f02d4e9Smrg{
16136f02d4e9Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16147c5adda3Smrg  rm -f conftest.$ac_objext conftest.beam
16156f02d4e9Smrg  if { { ac_try="$ac_compile"
16166f02d4e9Smrgcase "(($ac_try" in
16176f02d4e9Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186f02d4e9Smrg  *) ac_try_echo=$ac_try;;
16196f02d4e9Smrgesac
16206f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16217c5adda3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
16226f02d4e9Smrg  (eval "$ac_compile") 2>conftest.err
16236f02d4e9Smrg  ac_status=$?
16246f02d4e9Smrg  if test -s conftest.err; then
16256f02d4e9Smrg    grep -v '^ *+' conftest.err >conftest.er1
16266f02d4e9Smrg    cat conftest.er1 >&5
16276f02d4e9Smrg    mv -f conftest.er1 conftest.err
16286f02d4e9Smrg  fi
16297c5adda3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16306f02d4e9Smrg  test $ac_status = 0; } && {
16316f02d4e9Smrg	 test -z "$ac_c_werror_flag" ||
16326f02d4e9Smrg	 test ! -s conftest.err
16337c5adda3Smrg       } && test -s conftest.$ac_objext
16347c5adda3Smrgthen :
16356f02d4e9Smrg  ac_retval=0
16367c5adda3Smrgelse $as_nop
16377c5adda3Smrg  printf "%s\n" "$as_me: failed program was:" >&5
16386f02d4e9Smrgsed 's/^/| /' conftest.$ac_ext >&5
16396f02d4e9Smrg
16406f02d4e9Smrg	ac_retval=1
16416f02d4e9Smrgfi
16426f02d4e9Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16436f02d4e9Smrg  as_fn_set_status $ac_retval
16446f02d4e9Smrg
16456f02d4e9Smrg} # ac_fn_c_try_compile
16466f02d4e9Smrg
1647fd549268Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648fd549268Smrg# -------------------------------------------------------
1649fd549268Smrg# Tests whether HEADER exists and can be compiled using the include files in
1650fd549268Smrg# INCLUDES, setting the cache variable VAR accordingly.
1651fd549268Smrgac_fn_c_check_header_compile ()
1652fd549268Smrg{
1653fd549268Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655fd549268Smrgprintf %s "checking for $2... " >&6; }
1656fd549268Smrgif eval test \${$3+y}
1657fd549268Smrgthen :
1658fd549268Smrg  printf %s "(cached) " >&6
1659fd549268Smrgelse $as_nop
1660fd549268Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661fd549268Smrg/* end confdefs.h.  */
1662fd549268Smrg$4
1663fd549268Smrg#include <$2>
1664fd549268Smrg_ACEOF
1665fd549268Smrgif ac_fn_c_try_compile "$LINENO"
1666fd549268Smrgthen :
1667fd549268Smrg  eval "$3=yes"
1668fd549268Smrgelse $as_nop
1669fd549268Smrg  eval "$3=no"
1670fd549268Smrgfi
1671fd549268Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1672fd549268Smrgfi
1673fd549268Smrgeval ac_res=\$$3
1674fd549268Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675fd549268Smrgprintf "%s\n" "$ac_res" >&6; }
1676fd549268Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677fd549268Smrg
1678fd549268Smrg} # ac_fn_c_check_header_compile
1679fd549268Smrg
16807c5adda3Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
16817c5adda3Smrg# ------------------------------------------------------------------
16826f02d4e9Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
16837c5adda3Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
16847c5adda3Smrgac_fn_check_decl ()
16856f02d4e9Smrg{
16866f02d4e9Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16876f02d4e9Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
16887c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
16897c5adda3Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
16907c5adda3Smrgif eval test \${$3+y}
16917c5adda3Smrgthen :
16927c5adda3Smrg  printf %s "(cached) " >&6
16937c5adda3Smrgelse $as_nop
16946f02d4e9Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
16957c5adda3Smrg  eval ac_save_FLAGS=\$$6
16967c5adda3Smrg  as_fn_append $6 " $5"
16976f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986f02d4e9Smrg/* end confdefs.h.  */
16996f02d4e9Smrg$4
17006f02d4e9Smrgint
17017c5adda3Smrgmain (void)
17026f02d4e9Smrg{
17036f02d4e9Smrg#ifndef $as_decl_name
17046f02d4e9Smrg#ifdef __cplusplus
17056f02d4e9Smrg  (void) $as_decl_use;
17066f02d4e9Smrg#else
17076f02d4e9Smrg  (void) $as_decl_name;
17086f02d4e9Smrg#endif
17096f02d4e9Smrg#endif
17106f02d4e9Smrg
17116f02d4e9Smrg  ;
17126f02d4e9Smrg  return 0;
17136f02d4e9Smrg}
17146f02d4e9Smrg_ACEOF
17157c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
17167c5adda3Smrgthen :
17176f02d4e9Smrg  eval "$3=yes"
17187c5adda3Smrgelse $as_nop
17196f02d4e9Smrg  eval "$3=no"
17206f02d4e9Smrgfi
17217c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17227c5adda3Smrg  eval $6=\$ac_save_FLAGS
17236f02d4e9Smrg
17246f02d4e9Smrgfi
17257c5adda3Smrgeval ac_res=\$$3
17267c5adda3Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17277c5adda3Smrgprintf "%s\n" "$ac_res" >&6; }
17286f02d4e9Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17296f02d4e9Smrg
17307c5adda3Smrg} # ac_fn_check_decl
17316f02d4e9Smrg
17326f02d4e9Smrg# ac_fn_c_try_link LINENO
17336f02d4e9Smrg# -----------------------
17346f02d4e9Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
17356f02d4e9Smrgac_fn_c_try_link ()
17366f02d4e9Smrg{
17376f02d4e9Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17387c5adda3Smrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
17396f02d4e9Smrg  if { { ac_try="$ac_link"
17406f02d4e9Smrgcase "(($ac_try" in
17416f02d4e9Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426f02d4e9Smrg  *) ac_try_echo=$ac_try;;
17436f02d4e9Smrgesac
17446f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17457c5adda3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
17466f02d4e9Smrg  (eval "$ac_link") 2>conftest.err
17476f02d4e9Smrg  ac_status=$?
17486f02d4e9Smrg  if test -s conftest.err; then
17496f02d4e9Smrg    grep -v '^ *+' conftest.err >conftest.er1
17506f02d4e9Smrg    cat conftest.er1 >&5
17516f02d4e9Smrg    mv -f conftest.er1 conftest.err
17526f02d4e9Smrg  fi
17537c5adda3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17546f02d4e9Smrg  test $ac_status = 0; } && {
17556f02d4e9Smrg	 test -z "$ac_c_werror_flag" ||
17566f02d4e9Smrg	 test ! -s conftest.err
17576f02d4e9Smrg       } && test -s conftest$ac_exeext && {
17586f02d4e9Smrg	 test "$cross_compiling" = yes ||
17597253c0c7Smrg	 test -x conftest$ac_exeext
17607c5adda3Smrg       }
17617c5adda3Smrgthen :
17626f02d4e9Smrg  ac_retval=0
17637c5adda3Smrgelse $as_nop
17647c5adda3Smrg  printf "%s\n" "$as_me: failed program was:" >&5
17656f02d4e9Smrgsed 's/^/| /' conftest.$ac_ext >&5
17666f02d4e9Smrg
17676f02d4e9Smrg	ac_retval=1
17686f02d4e9Smrgfi
17696f02d4e9Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
17706f02d4e9Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
17716f02d4e9Smrg  # interfere with the next link command; also delete a directory that is
17726f02d4e9Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
17736f02d4e9Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17746f02d4e9Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17756f02d4e9Smrg  as_fn_set_status $ac_retval
17766f02d4e9Smrg
17776f02d4e9Smrg} # ac_fn_c_try_link
17786f02d4e9Smrg
17797c5adda3Smrg# ac_fn_c_try_cpp LINENO
17807c5adda3Smrg# ----------------------
17817c5adda3Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
17827c5adda3Smrgac_fn_c_try_cpp ()
17836f02d4e9Smrg{
17846f02d4e9Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17857c5adda3Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
17867c5adda3Smrgcase "(($ac_try" in
17877c5adda3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17887c5adda3Smrg  *) ac_try_echo=$ac_try;;
17897c5adda3Smrgesac
17907c5adda3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17917c5adda3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
17927c5adda3Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
17937c5adda3Smrg  ac_status=$?
17947c5adda3Smrg  if test -s conftest.err; then
17957c5adda3Smrg    grep -v '^ *+' conftest.err >conftest.er1
17967c5adda3Smrg    cat conftest.er1 >&5
17977c5adda3Smrg    mv -f conftest.er1 conftest.err
17987c5adda3Smrg  fi
17997c5adda3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18007c5adda3Smrg  test $ac_status = 0; } > conftest.i && {
18017c5adda3Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18027c5adda3Smrg	 test ! -s conftest.err
18037c5adda3Smrg       }
18047c5adda3Smrgthen :
18057c5adda3Smrg  ac_retval=0
18067c5adda3Smrgelse $as_nop
18077c5adda3Smrg  printf "%s\n" "$as_me: failed program was:" >&5
18087c5adda3Smrgsed 's/^/| /' conftest.$ac_ext >&5
18096f02d4e9Smrg
18107c5adda3Smrg    ac_retval=1
18116f02d4e9Smrgfi
18126f02d4e9Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18137c5adda3Smrg  as_fn_set_status $ac_retval
18147c5adda3Smrg
18157c5adda3Smrg} # ac_fn_c_try_cpp
1816fd549268Smrg
1817fd549268Smrg# ac_fn_c_check_func LINENO FUNC VAR
1818fd549268Smrg# ----------------------------------
1819fd549268Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1820fd549268Smrgac_fn_c_check_func ()
1821fd549268Smrg{
1822fd549268Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824fd549268Smrgprintf %s "checking for $2... " >&6; }
1825fd549268Smrgif eval test \${$3+y}
1826fd549268Smrgthen :
1827fd549268Smrg  printf %s "(cached) " >&6
1828fd549268Smrgelse $as_nop
1829fd549268Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830fd549268Smrg/* end confdefs.h.  */
1831fd549268Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832fd549268Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1833fd549268Smrg#define $2 innocuous_$2
1834fd549268Smrg
1835fd549268Smrg/* System header to define __stub macros and hopefully few prototypes,
1836fd549268Smrg   which can conflict with char $2 (); below.  */
1837fd549268Smrg
1838fd549268Smrg#include <limits.h>
1839fd549268Smrg#undef $2
1840fd549268Smrg
1841fd549268Smrg/* Override any GCC internal prototype to avoid an error.
1842fd549268Smrg   Use char because int might match the return type of a GCC
1843fd549268Smrg   builtin and then its argument prototype would still apply.  */
1844fd549268Smrg#ifdef __cplusplus
1845fd549268Smrgextern "C"
1846fd549268Smrg#endif
1847fd549268Smrgchar $2 ();
1848fd549268Smrg/* The GNU C library defines this for functions which it implements
1849fd549268Smrg    to always fail with ENOSYS.  Some functions are actually named
1850fd549268Smrg    something starting with __ and the normal name is an alias.  */
1851fd549268Smrg#if defined __stub_$2 || defined __stub___$2
1852fd549268Smrgchoke me
1853fd549268Smrg#endif
1854fd549268Smrg
1855fd549268Smrgint
1856fd549268Smrgmain (void)
1857fd549268Smrg{
1858fd549268Smrgreturn $2 ();
1859fd549268Smrg  ;
1860fd549268Smrg  return 0;
1861fd549268Smrg}
1862fd549268Smrg_ACEOF
1863fd549268Smrgif ac_fn_c_try_link "$LINENO"
1864fd549268Smrgthen :
1865fd549268Smrg  eval "$3=yes"
1866fd549268Smrgelse $as_nop
1867fd549268Smrg  eval "$3=no"
1868fd549268Smrgfi
1869fd549268Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1870fd549268Smrg    conftest$ac_exeext conftest.$ac_ext
1871fd549268Smrgfi
1872fd549268Smrgeval ac_res=\$$3
1873fd549268Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874fd549268Smrgprintf "%s\n" "$ac_res" >&6; }
1875fd549268Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876fd549268Smrg
1877fd549268Smrg} # ac_fn_c_check_func
18787c5adda3Smrgac_configure_args_raw=
18797c5adda3Smrgfor ac_arg
18807c5adda3Smrgdo
18817c5adda3Smrg  case $ac_arg in
18827c5adda3Smrg  *\'*)
18837c5adda3Smrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18847c5adda3Smrg  esac
18857c5adda3Smrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
18867c5adda3Smrgdone
18877c5adda3Smrg
18887c5adda3Smrgcase $ac_configure_args_raw in
18897c5adda3Smrg  *$as_nl*)
18907c5adda3Smrg    ac_safe_unquote= ;;
18917c5adda3Smrg  *)
18927c5adda3Smrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
18937c5adda3Smrg    ac_unsafe_a="$ac_unsafe_z#~"
18947c5adda3Smrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
18957c5adda3Smrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
18967c5adda3Smrgesac
18976f02d4e9Smrg
189821212451Smrgcat >config.log <<_ACEOF
189921212451SmrgThis file contains any messages produced by compilers while
190021212451Smrgrunning configure, to aid debugging if configure makes a mistake.
1901a73027baSmrg
1902fd549268SmrgIt was created by xinit $as_me 1.4.3, which was
19037c5adda3Smrggenerated by GNU Autoconf 2.71.  Invocation command line was
1904a73027baSmrg
19057c5adda3Smrg  $ $0$ac_configure_args_raw
1906a73027baSmrg
190721212451Smrg_ACEOF
190821212451Smrgexec 5>>config.log
1909bf4a254eSmrg{
1910bf4a254eSmrgcat <<_ASUNAME
1911bf4a254eSmrg## --------- ##
1912bf4a254eSmrg## Platform. ##
1913bf4a254eSmrg## --------- ##
1914bf4a254eSmrg
1915bf4a254eSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1916bf4a254eSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1917bf4a254eSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1918bf4a254eSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1919bf4a254eSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1920bf4a254eSmrg
1921bf4a254eSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1922bf4a254eSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1923bf4a254eSmrg
1924bf4a254eSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1925bf4a254eSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1926bf4a254eSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1927bf4a254eSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1928bf4a254eSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1929bf4a254eSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1930bf4a254eSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1931bf4a254eSmrg
1932bf4a254eSmrg_ASUNAME
1933bf4a254eSmrg
1934bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935bf4a254eSmrgfor as_dir in $PATH
1936bf4a254eSmrgdo
1937bf4a254eSmrg  IFS=$as_save_IFS
19387c5adda3Smrg  case $as_dir in #(((
19397c5adda3Smrg    '') as_dir=./ ;;
19407c5adda3Smrg    */) ;;
19417c5adda3Smrg    *) as_dir=$as_dir/ ;;
19427c5adda3Smrg  esac
19437c5adda3Smrg    printf "%s\n" "PATH: $as_dir"
19446f02d4e9Smrg  done
1945bf4a254eSmrgIFS=$as_save_IFS
1946bf4a254eSmrg
1947bf4a254eSmrg} >&5
1948bf4a254eSmrg
1949bf4a254eSmrgcat >&5 <<_ACEOF
1950bf4a254eSmrg
1951bf4a254eSmrg
1952bf4a254eSmrg## ----------- ##
1953bf4a254eSmrg## Core tests. ##
1954bf4a254eSmrg## ----------- ##
1955bf4a254eSmrg
1956bf4a254eSmrg_ACEOF
1957a73027baSmrg
1958a73027baSmrg
1959a73027baSmrg# Keep a trace of the command line.
1960a73027baSmrg# Strip out --no-create and --no-recursion so they do not pile up.
1961a73027baSmrg# Strip out --silent because we don't want to record it for future runs.
1962a73027baSmrg# Also quote any args containing shell meta-characters.
1963a73027baSmrg# Make two passes to allow for proper duplicate-argument suppression.
1964a73027baSmrgac_configure_args=
1965a73027baSmrgac_configure_args0=
1966a73027baSmrgac_configure_args1=
1967a73027baSmrgac_must_keep_next=false
1968a73027baSmrgfor ac_pass in 1 2
1969a73027baSmrgdo
1970a73027baSmrg  for ac_arg
1971a73027baSmrg  do
1972a73027baSmrg    case $ac_arg in
1973a73027baSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1974a73027baSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1975a73027baSmrg    | -silent | --silent | --silen | --sile | --sil)
1976a73027baSmrg      continue ;;
1977a73027baSmrg    *\'*)
19787c5adda3Smrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1979a73027baSmrg    esac
1980a73027baSmrg    case $ac_pass in
19816f02d4e9Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1982a73027baSmrg    2)
19836f02d4e9Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1984a73027baSmrg      if test $ac_must_keep_next = true; then
1985a73027baSmrg	ac_must_keep_next=false # Got value, back to normal.
1986a73027baSmrg      else
1987a73027baSmrg	case $ac_arg in
1988a73027baSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1989a73027baSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1990a73027baSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1991a73027baSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1992a73027baSmrg	    case "$ac_configure_args0 " in
1993a73027baSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1994a73027baSmrg	    esac
1995a73027baSmrg	    ;;
1996a73027baSmrg	  -* ) ac_must_keep_next=true ;;
1997a73027baSmrg	esac
1998a73027baSmrg      fi
19996f02d4e9Smrg      as_fn_append ac_configure_args " '$ac_arg'"
2000a73027baSmrg      ;;
2001a73027baSmrg    esac
2002a73027baSmrg  done
2003a73027baSmrgdone
20046f02d4e9Smrg{ ac_configure_args0=; unset ac_configure_args0;}
20056f02d4e9Smrg{ ac_configure_args1=; unset ac_configure_args1;}
2006a73027baSmrg
2007a73027baSmrg# When interrupted or exit'd, cleanup temporary files, and complete
2008a73027baSmrg# config.log.  We remove comments because anyway the quotes in there
2009a73027baSmrg# would cause problems or look ugly.
2010a73027baSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
2011a73027baSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2012a73027baSmrgtrap 'exit_status=$?
20137c5adda3Smrg  # Sanitize IFS.
20147c5adda3Smrg  IFS=" ""	$as_nl"
2015a73027baSmrg  # Save into config.log some information that might help in debugging.
2016a73027baSmrg  {
2017a73027baSmrg    echo
2018a73027baSmrg
20197c5adda3Smrg    printf "%s\n" "## ---------------- ##
2020a73027baSmrg## Cache variables. ##
20216f02d4e9Smrg## ---------------- ##"
2022a73027baSmrg    echo
2023a73027baSmrg    # The following way of writing the cache mishandles newlines in values,
2024a73027baSmrg(
2025a73027baSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2026a73027baSmrg    eval ac_val=\$$ac_var
2027a73027baSmrg    case $ac_val in #(
2028a73027baSmrg    *${as_nl}*)
2029a73027baSmrg      case $ac_var in #(
20307c5adda3Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20317c5adda3Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2032a73027baSmrg      esac
2033a73027baSmrg      case $ac_var in #(
2034a73027baSmrg      _ | IFS | as_nl) ;; #(
20356f02d4e9Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20366f02d4e9Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
2037a73027baSmrg      esac ;;
2038a73027baSmrg    esac
2039a73027baSmrg  done
2040a73027baSmrg  (set) 2>&1 |
2041a73027baSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2042a73027baSmrg    *${as_nl}ac_space=\ *)
2043a73027baSmrg      sed -n \
2044a73027baSmrg	"s/'\''/'\''\\\\'\'''\''/g;
2045a73027baSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2046a73027baSmrg      ;; #(
2047a73027baSmrg    *)
2048a73027baSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2049a73027baSmrg      ;;
2050a73027baSmrg    esac |
2051a73027baSmrg    sort
2052a73027baSmrg)
2053a73027baSmrg    echo
2054a73027baSmrg
20557c5adda3Smrg    printf "%s\n" "## ----------------- ##
2056a73027baSmrg## Output variables. ##
20576f02d4e9Smrg## ----------------- ##"
2058a73027baSmrg    echo
2059a73027baSmrg    for ac_var in $ac_subst_vars
2060a73027baSmrg    do
2061a73027baSmrg      eval ac_val=\$$ac_var
2062a73027baSmrg      case $ac_val in
20637c5adda3Smrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064a73027baSmrg      esac
20657c5adda3Smrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
2066a73027baSmrg    done | sort
2067a73027baSmrg    echo
2068a73027baSmrg
2069a73027baSmrg    if test -n "$ac_subst_files"; then
20707c5adda3Smrg      printf "%s\n" "## ------------------- ##
2071a73027baSmrg## File substitutions. ##
20726f02d4e9Smrg## ------------------- ##"
2073a73027baSmrg      echo
2074a73027baSmrg      for ac_var in $ac_subst_files
2075a73027baSmrg      do
2076a73027baSmrg	eval ac_val=\$$ac_var
2077a73027baSmrg	case $ac_val in
20787c5adda3Smrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079a73027baSmrg	esac
20807c5adda3Smrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
2081a73027baSmrg      done | sort
2082a73027baSmrg      echo
2083a73027baSmrg    fi
2084a73027baSmrg
2085a73027baSmrg    if test -s confdefs.h; then
20867c5adda3Smrg      printf "%s\n" "## ----------- ##
2087a73027baSmrg## confdefs.h. ##
20886f02d4e9Smrg## ----------- ##"
2089a73027baSmrg      echo
2090a73027baSmrg      cat confdefs.h
2091a73027baSmrg      echo
2092a73027baSmrg    fi
2093a73027baSmrg    test "$ac_signal" != 0 &&
20947c5adda3Smrg      printf "%s\n" "$as_me: caught signal $ac_signal"
20957c5adda3Smrg    printf "%s\n" "$as_me: exit $exit_status"
2096a73027baSmrg  } >&5
2097a73027baSmrg  rm -f core *.core core.conftest.* &&
2098a73027baSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2099a73027baSmrg    exit $exit_status
2100a73027baSmrg' 0
2101a73027baSmrgfor ac_signal in 1 2 13 15; do
21026f02d4e9Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2103a73027baSmrgdone
2104a73027baSmrgac_signal=0
2105a73027baSmrg
2106a73027baSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2107a73027baSmrgrm -f -r conftest* confdefs.h
2108a73027baSmrg
21097c5adda3Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
21106f02d4e9Smrg
2111a73027baSmrg# Predefined preprocessor variables.
2112a73027baSmrg
21137c5adda3Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2114a73027baSmrg
21157c5adda3Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2116a73027baSmrg
21177c5adda3Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2118a73027baSmrg
21197c5adda3Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2120a73027baSmrg
21217c5adda3Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2122bf4a254eSmrg
21237c5adda3Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
21246f02d4e9Smrg
2125a73027baSmrg
2126a73027baSmrg# Let the site file select an alternate cache file if it wants to.
21276f02d4e9Smrg# Prefer an explicitly selected file to automatically selected ones.
2128a73027baSmrgif test -n "$CONFIG_SITE"; then
21297c5adda3Smrg  ac_site_files="$CONFIG_SITE"
2130a73027baSmrgelif test "x$prefix" != xNONE; then
21317c5adda3Smrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2132a73027baSmrgelse
21337c5adda3Smrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2134a73027baSmrgfi
21357c5adda3Smrg
21367c5adda3Smrgfor ac_site_file in $ac_site_files
2137a73027baSmrgdo
21387c5adda3Smrg  case $ac_site_file in #(
21397c5adda3Smrg  */*) :
21407c5adda3Smrg     ;; #(
21417c5adda3Smrg  *) :
21427c5adda3Smrg    ac_site_file=./$ac_site_file ;;
21437c5adda3Smrgesac
21447c5adda3Smrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
21457c5adda3Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
21467c5adda3Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2147a73027baSmrg    sed 's/^/| /' "$ac_site_file" >&5
21486f02d4e9Smrg    . "$ac_site_file" \
21497c5adda3Smrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21507c5adda3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21516f02d4e9Smrgas_fn_error $? "failed to load site script $ac_site_file
21526f02d4e9SmrgSee \`config.log' for more details" "$LINENO" 5; }
2153a73027baSmrg  fi
2154a73027baSmrgdone
2155a73027baSmrg
2156a73027baSmrgif test -r "$cache_file"; then
21576f02d4e9Smrg  # Some versions of bash will fail to source /dev/null (special files
21586f02d4e9Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
21596f02d4e9Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
21607c5adda3Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
21617c5adda3Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2162a73027baSmrg    case $cache_file in
2163a73027baSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2164a73027baSmrg      *)                      . "./$cache_file";;
2165a73027baSmrg    esac
2166a73027baSmrg  fi
2167a73027baSmrgelse
21687c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
21697c5adda3Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2170a73027baSmrg  >$cache_file
2171a73027baSmrgfi
2172a73027baSmrg
2173fd549268Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
21747c5adda3Smrg# Test code for whether the C compiler supports C89 (global declarations)
21757c5adda3Smrgac_c_conftest_c89_globals='
21767c5adda3Smrg/* Does the compiler advertise C89 conformance?
21777c5adda3Smrg   Do not test the value of __STDC__, because some compilers set it to 0
21787c5adda3Smrg   while being otherwise adequately conformant. */
21797c5adda3Smrg#if !defined __STDC__
21807c5adda3Smrg# error "Compiler does not advertise C89 conformance"
21817c5adda3Smrg#endif
21827c5adda3Smrg
21837c5adda3Smrg#include <stddef.h>
21847c5adda3Smrg#include <stdarg.h>
21857c5adda3Smrgstruct stat;
21867c5adda3Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
21877c5adda3Smrgstruct buf { int x; };
21887c5adda3Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
21897c5adda3Smrgstatic char *e (p, i)
21907c5adda3Smrg     char **p;
21917c5adda3Smrg     int i;
21927c5adda3Smrg{
21937c5adda3Smrg  return p[i];
21947c5adda3Smrg}
21957c5adda3Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
21967c5adda3Smrg{
21977c5adda3Smrg  char *s;
21987c5adda3Smrg  va_list v;
21997c5adda3Smrg  va_start (v,p);
22007c5adda3Smrg  s = g (p, va_arg (v,int));
22017c5adda3Smrg  va_end (v);
22027c5adda3Smrg  return s;
22037c5adda3Smrg}
22047c5adda3Smrg
22057c5adda3Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22067c5adda3Smrg   function prototypes and stuff, but not \xHH hex character constants.
22077c5adda3Smrg   These do not provoke an error unfortunately, instead are silently treated
22087c5adda3Smrg   as an "x".  The following induces an error, until -std is added to get
22097c5adda3Smrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
22107c5adda3Smrg   array size at least.  It is necessary to write \x00 == 0 to get something
22117c5adda3Smrg   that is true only with -std.  */
22127c5adda3Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
22137c5adda3Smrg
22147c5adda3Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
22157c5adda3Smrg   inside strings and character constants.  */
22167c5adda3Smrg#define FOO(x) '\''x'\''
22177c5adda3Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
22187c5adda3Smrg
22197c5adda3Smrgint test (int i, double x);
22207c5adda3Smrgstruct s1 {int (*f) (int a);};
22217c5adda3Smrgstruct s2 {int (*f) (double a);};
22227c5adda3Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
22237c5adda3Smrg               int, int);'
22247c5adda3Smrg
22257c5adda3Smrg# Test code for whether the C compiler supports C89 (body of main).
22267c5adda3Smrgac_c_conftest_c89_main='
22277c5adda3Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
22287c5adda3Smrg'
22297c5adda3Smrg
22307c5adda3Smrg# Test code for whether the C compiler supports C99 (global declarations)
22317c5adda3Smrgac_c_conftest_c99_globals='
22327c5adda3Smrg// Does the compiler advertise C99 conformance?
22337c5adda3Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
22347c5adda3Smrg# error "Compiler does not advertise C99 conformance"
22357c5adda3Smrg#endif
22367c5adda3Smrg
22377c5adda3Smrg#include <stdbool.h>
22387c5adda3Smrgextern int puts (const char *);
22397c5adda3Smrgextern int printf (const char *, ...);
22407c5adda3Smrgextern int dprintf (int, const char *, ...);
22417c5adda3Smrgextern void *malloc (size_t);
22427c5adda3Smrg
22437c5adda3Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
22447c5adda3Smrg// dprintf is used instead of fprintf to avoid needing to declare
22457c5adda3Smrg// FILE and stderr.
22467c5adda3Smrg#define debug(...) dprintf (2, __VA_ARGS__)
22477c5adda3Smrg#define showlist(...) puts (#__VA_ARGS__)
22487c5adda3Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
22497c5adda3Smrgstatic void
22507c5adda3Smrgtest_varargs_macros (void)
22517c5adda3Smrg{
22527c5adda3Smrg  int x = 1234;
22537c5adda3Smrg  int y = 5678;
22547c5adda3Smrg  debug ("Flag");
22557c5adda3Smrg  debug ("X = %d\n", x);
22567c5adda3Smrg  showlist (The first, second, and third items.);
22577c5adda3Smrg  report (x>y, "x is %d but y is %d", x, y);
22587c5adda3Smrg}
22597c5adda3Smrg
22607c5adda3Smrg// Check long long types.
22617c5adda3Smrg#define BIG64 18446744073709551615ull
22627c5adda3Smrg#define BIG32 4294967295ul
22637c5adda3Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
22647c5adda3Smrg#if !BIG_OK
22657c5adda3Smrg  #error "your preprocessor is broken"
22667c5adda3Smrg#endif
22677c5adda3Smrg#if BIG_OK
22687c5adda3Smrg#else
22697c5adda3Smrg  #error "your preprocessor is broken"
22707c5adda3Smrg#endif
22717c5adda3Smrgstatic long long int bignum = -9223372036854775807LL;
22727c5adda3Smrgstatic unsigned long long int ubignum = BIG64;
22737c5adda3Smrg
22747c5adda3Smrgstruct incomplete_array
22757c5adda3Smrg{
22767c5adda3Smrg  int datasize;
22777c5adda3Smrg  double data[];
22787c5adda3Smrg};
22797c5adda3Smrg
22807c5adda3Smrgstruct named_init {
22817c5adda3Smrg  int number;
22827c5adda3Smrg  const wchar_t *name;
22837c5adda3Smrg  double average;
22847c5adda3Smrg};
22857c5adda3Smrg
22867c5adda3Smrgtypedef const char *ccp;
22877c5adda3Smrg
22887c5adda3Smrgstatic inline int
22897c5adda3Smrgtest_restrict (ccp restrict text)
22907c5adda3Smrg{
22917c5adda3Smrg  // See if C++-style comments work.
22927c5adda3Smrg  // Iterate through items via the restricted pointer.
22937c5adda3Smrg  // Also check for declarations in for loops.
22947c5adda3Smrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
22957c5adda3Smrg    continue;
22967c5adda3Smrg  return 0;
22977c5adda3Smrg}
22987c5adda3Smrg
22997c5adda3Smrg// Check varargs and va_copy.
23007c5adda3Smrgstatic bool
23017c5adda3Smrgtest_varargs (const char *format, ...)
23027c5adda3Smrg{
23037c5adda3Smrg  va_list args;
23047c5adda3Smrg  va_start (args, format);
23057c5adda3Smrg  va_list args_copy;
23067c5adda3Smrg  va_copy (args_copy, args);
23077c5adda3Smrg
23087c5adda3Smrg  const char *str = "";
23097c5adda3Smrg  int number = 0;
23107c5adda3Smrg  float fnumber = 0;
23117c5adda3Smrg
23127c5adda3Smrg  while (*format)
23137c5adda3Smrg    {
23147c5adda3Smrg      switch (*format++)
23157c5adda3Smrg	{
23167c5adda3Smrg	case '\''s'\'': // string
23177c5adda3Smrg	  str = va_arg (args_copy, const char *);
23187c5adda3Smrg	  break;
23197c5adda3Smrg	case '\''d'\'': // int
23207c5adda3Smrg	  number = va_arg (args_copy, int);
23217c5adda3Smrg	  break;
23227c5adda3Smrg	case '\''f'\'': // float
23237c5adda3Smrg	  fnumber = va_arg (args_copy, double);
23247c5adda3Smrg	  break;
23257c5adda3Smrg	default:
23267c5adda3Smrg	  break;
23277c5adda3Smrg	}
23287c5adda3Smrg    }
23297c5adda3Smrg  va_end (args_copy);
23307c5adda3Smrg  va_end (args);
23317c5adda3Smrg
23327c5adda3Smrg  return *str && number && fnumber;
23337c5adda3Smrg}
23347c5adda3Smrg'
23357c5adda3Smrg
23367c5adda3Smrg# Test code for whether the C compiler supports C99 (body of main).
23377c5adda3Smrgac_c_conftest_c99_main='
23387c5adda3Smrg  // Check bool.
23397c5adda3Smrg  _Bool success = false;
23407c5adda3Smrg  success |= (argc != 0);
23417c5adda3Smrg
23427c5adda3Smrg  // Check restrict.
23437c5adda3Smrg  if (test_restrict ("String literal") == 0)
23447c5adda3Smrg    success = true;
23457c5adda3Smrg  char *restrict newvar = "Another string";
23467c5adda3Smrg
23477c5adda3Smrg  // Check varargs.
23487c5adda3Smrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
23497c5adda3Smrg  test_varargs_macros ();
23507c5adda3Smrg
23517c5adda3Smrg  // Check flexible array members.
23527c5adda3Smrg  struct incomplete_array *ia =
23537c5adda3Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
23547c5adda3Smrg  ia->datasize = 10;
23557c5adda3Smrg  for (int i = 0; i < ia->datasize; ++i)
23567c5adda3Smrg    ia->data[i] = i * 1.234;
23577c5adda3Smrg
23587c5adda3Smrg  // Check named initializers.
23597c5adda3Smrg  struct named_init ni = {
23607c5adda3Smrg    .number = 34,
23617c5adda3Smrg    .name = L"Test wide string",
23627c5adda3Smrg    .average = 543.34343,
23637c5adda3Smrg  };
23647c5adda3Smrg
23657c5adda3Smrg  ni.number = 58;
23667c5adda3Smrg
23677c5adda3Smrg  int dynamic_array[ni.number];
23687c5adda3Smrg  dynamic_array[0] = argv[0][0];
23697c5adda3Smrg  dynamic_array[ni.number - 1] = 543;
23707c5adda3Smrg
23717c5adda3Smrg  // work around unused variable warnings
23727c5adda3Smrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
23737c5adda3Smrg	 || dynamic_array[ni.number - 1] != 543);
23747c5adda3Smrg'
23757c5adda3Smrg
23767c5adda3Smrg# Test code for whether the C compiler supports C11 (global declarations)
23777c5adda3Smrgac_c_conftest_c11_globals='
23787c5adda3Smrg// Does the compiler advertise C11 conformance?
23797c5adda3Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
23807c5adda3Smrg# error "Compiler does not advertise C11 conformance"
23817c5adda3Smrg#endif
23827c5adda3Smrg
23837c5adda3Smrg// Check _Alignas.
23847c5adda3Smrgchar _Alignas (double) aligned_as_double;
23857c5adda3Smrgchar _Alignas (0) no_special_alignment;
23867c5adda3Smrgextern char aligned_as_int;
23877c5adda3Smrgchar _Alignas (0) _Alignas (int) aligned_as_int;
23887c5adda3Smrg
23897c5adda3Smrg// Check _Alignof.
23907c5adda3Smrgenum
23917c5adda3Smrg{
23927c5adda3Smrg  int_alignment = _Alignof (int),
23937c5adda3Smrg  int_array_alignment = _Alignof (int[100]),
23947c5adda3Smrg  char_alignment = _Alignof (char)
23957c5adda3Smrg};
23967c5adda3Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
23977c5adda3Smrg
23987c5adda3Smrg// Check _Noreturn.
23997c5adda3Smrgint _Noreturn does_not_return (void) { for (;;) continue; }
24007c5adda3Smrg
24017c5adda3Smrg// Check _Static_assert.
24027c5adda3Smrgstruct test_static_assert
24037c5adda3Smrg{
24047c5adda3Smrg  int x;
24057c5adda3Smrg  _Static_assert (sizeof (int) <= sizeof (long int),
24067c5adda3Smrg                  "_Static_assert does not work in struct");
24077c5adda3Smrg  long int y;
24087c5adda3Smrg};
24097c5adda3Smrg
24107c5adda3Smrg// Check UTF-8 literals.
24117c5adda3Smrg#define u8 syntax error!
24127c5adda3Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
24137c5adda3Smrg
24147c5adda3Smrg// Check duplicate typedefs.
24157c5adda3Smrgtypedef long *long_ptr;
24167c5adda3Smrgtypedef long int *long_ptr;
24177c5adda3Smrgtypedef long_ptr long_ptr;
24187c5adda3Smrg
24197c5adda3Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
24207c5adda3Smrgstruct anonymous
24217c5adda3Smrg{
24227c5adda3Smrg  union {
24237c5adda3Smrg    struct { int i; int j; };
24247c5adda3Smrg    struct { int k; long int l; } w;
24257c5adda3Smrg  };
24267c5adda3Smrg  int m;
24277c5adda3Smrg} v1;
24287c5adda3Smrg'
24297c5adda3Smrg
24307c5adda3Smrg# Test code for whether the C compiler supports C11 (body of main).
24317c5adda3Smrgac_c_conftest_c11_main='
24327c5adda3Smrg  _Static_assert ((offsetof (struct anonymous, i)
24337c5adda3Smrg		   == offsetof (struct anonymous, w.k)),
24347c5adda3Smrg		  "Anonymous union alignment botch");
24357c5adda3Smrg  v1.i = 2;
24367c5adda3Smrg  v1.w.k = 5;
24377c5adda3Smrg  ok |= v1.i != 5;
24387c5adda3Smrg'
24397c5adda3Smrg
24407c5adda3Smrg# Test code for whether the C compiler supports C11 (complete).
24417c5adda3Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
24427c5adda3Smrg${ac_c_conftest_c99_globals}
24437c5adda3Smrg${ac_c_conftest_c11_globals}
24447c5adda3Smrg
24457c5adda3Smrgint
24467c5adda3Smrgmain (int argc, char **argv)
24477c5adda3Smrg{
24487c5adda3Smrg  int ok = 0;
24497c5adda3Smrg  ${ac_c_conftest_c89_main}
24507c5adda3Smrg  ${ac_c_conftest_c99_main}
24517c5adda3Smrg  ${ac_c_conftest_c11_main}
24527c5adda3Smrg  return ok;
24537c5adda3Smrg}
24547c5adda3Smrg"
24557c5adda3Smrg
24567c5adda3Smrg# Test code for whether the C compiler supports C99 (complete).
24577c5adda3Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
24587c5adda3Smrg${ac_c_conftest_c99_globals}
24597c5adda3Smrg
24607c5adda3Smrgint
24617c5adda3Smrgmain (int argc, char **argv)
24627c5adda3Smrg{
24637c5adda3Smrg  int ok = 0;
24647c5adda3Smrg  ${ac_c_conftest_c89_main}
24657c5adda3Smrg  ${ac_c_conftest_c99_main}
24667c5adda3Smrg  return ok;
24677c5adda3Smrg}
24687c5adda3Smrg"
24697c5adda3Smrg
24707c5adda3Smrg# Test code for whether the C compiler supports C89 (complete).
24717c5adda3Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
24727c5adda3Smrg
24737c5adda3Smrgint
24747c5adda3Smrgmain (int argc, char **argv)
24757c5adda3Smrg{
24767c5adda3Smrg  int ok = 0;
24777c5adda3Smrg  ${ac_c_conftest_c89_main}
24787c5adda3Smrg  return ok;
24797c5adda3Smrg}
24807c5adda3Smrg"
24817c5adda3Smrg
24827c5adda3Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
24837c5adda3Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
24847c5adda3Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
24857c5adda3Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
24867c5adda3Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
24877c5adda3Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
24887c5adda3Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
24897c5adda3Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2490fd549268Smrgas_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2491fd549268Smrgas_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
24927c5adda3Smrg
24937c5adda3Smrg# Auxiliary files required by this configure script.
2494fd549268Smrgac_aux_files="config.guess config.sub missing install-sh compile"
24957c5adda3Smrg
24967c5adda3Smrg# Locations in which to look for auxiliary files.
24977c5adda3Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
24987c5adda3Smrg
24997c5adda3Smrg# Search for a directory containing all of the required auxiliary files,
25007c5adda3Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
25017c5adda3Smrg# If we don't find one directory that contains all the files we need,
25027c5adda3Smrg# we report the set of missing files from the *first* directory in
25037c5adda3Smrg# $ac_aux_dir_candidates and give up.
25047c5adda3Smrgac_missing_aux_files=""
25057c5adda3Smrgac_first_candidate=:
25067c5adda3Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
25077c5adda3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25087c5adda3Smrgas_found=false
25097c5adda3Smrgfor as_dir in $ac_aux_dir_candidates
25107c5adda3Smrgdo
25117c5adda3Smrg  IFS=$as_save_IFS
25127c5adda3Smrg  case $as_dir in #(((
25137c5adda3Smrg    '') as_dir=./ ;;
25147c5adda3Smrg    */) ;;
25157c5adda3Smrg    *) as_dir=$as_dir/ ;;
25167c5adda3Smrg  esac
25177c5adda3Smrg  as_found=:
25187c5adda3Smrg
25197c5adda3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
25207c5adda3Smrg  ac_aux_dir_found=yes
25217c5adda3Smrg  ac_install_sh=
25227c5adda3Smrg  for ac_aux in $ac_aux_files
25237c5adda3Smrg  do
25247c5adda3Smrg    # As a special case, if "install-sh" is required, that requirement
25257c5adda3Smrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
25267c5adda3Smrg    # and $ac_install_sh is set appropriately for whichever one is found.
25277c5adda3Smrg    if test x"$ac_aux" = x"install-sh"
25287c5adda3Smrg    then
25297c5adda3Smrg      if test -f "${as_dir}install-sh"; then
25307c5adda3Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
25317c5adda3Smrg        ac_install_sh="${as_dir}install-sh -c"
25327c5adda3Smrg      elif test -f "${as_dir}install.sh"; then
25337c5adda3Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
25347c5adda3Smrg        ac_install_sh="${as_dir}install.sh -c"
25357c5adda3Smrg      elif test -f "${as_dir}shtool"; then
25367c5adda3Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
25377c5adda3Smrg        ac_install_sh="${as_dir}shtool install -c"
25387c5adda3Smrg      else
25397c5adda3Smrg        ac_aux_dir_found=no
25407c5adda3Smrg        if $ac_first_candidate; then
25417c5adda3Smrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
25427c5adda3Smrg        else
25437c5adda3Smrg          break
25447c5adda3Smrg        fi
25457c5adda3Smrg      fi
25467c5adda3Smrg    else
25477c5adda3Smrg      if test -f "${as_dir}${ac_aux}"; then
25487c5adda3Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
25497c5adda3Smrg      else
25507c5adda3Smrg        ac_aux_dir_found=no
25517c5adda3Smrg        if $ac_first_candidate; then
25527c5adda3Smrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
25537c5adda3Smrg        else
25547c5adda3Smrg          break
25557c5adda3Smrg        fi
25567c5adda3Smrg      fi
25577c5adda3Smrg    fi
25587c5adda3Smrg  done
25597c5adda3Smrg  if test "$ac_aux_dir_found" = yes; then
25607c5adda3Smrg    ac_aux_dir="$as_dir"
25617c5adda3Smrg    break
25627c5adda3Smrg  fi
25637c5adda3Smrg  ac_first_candidate=false
25647c5adda3Smrg
25657c5adda3Smrg  as_found=false
25667c5adda3Smrgdone
25677c5adda3SmrgIFS=$as_save_IFS
25687c5adda3Smrgif $as_found
25697c5adda3Smrgthen :
25707c5adda3Smrg
25717c5adda3Smrgelse $as_nop
25727c5adda3Smrg  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
25737c5adda3Smrgfi
25747c5adda3Smrg
25757c5adda3Smrg
25767c5adda3Smrg# These three variables are undocumented and unsupported,
25777c5adda3Smrg# and are intended to be withdrawn in a future Autoconf release.
25787c5adda3Smrg# They can cause serious problems if a builder's source tree is in a directory
25797c5adda3Smrg# whose full name contains unusual characters.
25807c5adda3Smrgif test -f "${ac_aux_dir}config.guess"; then
25817c5adda3Smrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
25827c5adda3Smrgfi
25837c5adda3Smrgif test -f "${ac_aux_dir}config.sub"; then
25847c5adda3Smrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
25857c5adda3Smrgfi
25867c5adda3Smrgif test -f "$ac_aux_dir/configure"; then
25877c5adda3Smrg  ac_configure="$SHELL ${ac_aux_dir}configure"
25887c5adda3Smrgfi
25897c5adda3Smrg
25907c5adda3Smrg# Check that the precious variables saved in the cache have kept the same
25917c5adda3Smrg# value.
25927c5adda3Smrgac_cache_corrupted=false
25937c5adda3Smrgfor ac_var in $ac_precious_vars; do
25947c5adda3Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
25957c5adda3Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
25967c5adda3Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
25977c5adda3Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
25987c5adda3Smrg  case $ac_old_set,$ac_new_set in
25997c5adda3Smrg    set,)
26007c5adda3Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
26017c5adda3Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
26027c5adda3Smrg      ac_cache_corrupted=: ;;
26037c5adda3Smrg    ,set)
26047c5adda3Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
26057c5adda3Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
26067c5adda3Smrg      ac_cache_corrupted=: ;;
26077c5adda3Smrg    ,);;
26087c5adda3Smrg    *)
26097c5adda3Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
26107c5adda3Smrg	# differences in whitespace do not lead to failure.
26117c5adda3Smrg	ac_old_val_w=`echo x $ac_old_val`
26127c5adda3Smrg	ac_new_val_w=`echo x $ac_new_val`
26137c5adda3Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
26147c5adda3Smrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
26157c5adda3Smrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
26167c5adda3Smrg	  ac_cache_corrupted=:
26177c5adda3Smrg	else
26187c5adda3Smrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
26197c5adda3Smrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
26207c5adda3Smrg	  eval $ac_var=\$ac_old_val
26217c5adda3Smrg	fi
26227c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
26237c5adda3Smrgprintf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
26247c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
26257c5adda3Smrgprintf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
26267c5adda3Smrg      fi;;
26277c5adda3Smrg  esac
26287c5adda3Smrg  # Pass precious variables to config.status.
26297c5adda3Smrg  if test "$ac_new_set" = set; then
26307c5adda3Smrg    case $ac_new_val in
26317c5adda3Smrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
26327c5adda3Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
26337c5adda3Smrg    esac
2634a73027baSmrg    case " $ac_configure_args " in
2635a73027baSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
26366f02d4e9Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2637a73027baSmrg    esac
2638a73027baSmrg  fi
2639a73027baSmrgdone
2640a73027baSmrgif $ac_cache_corrupted; then
26417c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26427c5adda3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
26437c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
26447c5adda3Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
26457c5adda3Smrg  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
26467c5adda3Smrg	    and start over" "$LINENO" 5
2647a73027baSmrgfi
26486f02d4e9Smrg## -------------------- ##
26496f02d4e9Smrg## Main body of script. ##
26506f02d4e9Smrg## -------------------- ##
2651a73027baSmrg
2652a73027baSmrgac_ext=c
2653a73027baSmrgac_cpp='$CPP $CPPFLAGS'
2654a73027baSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655a73027baSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656a73027baSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2657a73027baSmrg
2658a73027baSmrg
2659c81d8f5eSmrg
2660c81d8f5eSmrgac_config_headers="$ac_config_headers config.h"
2661c81d8f5eSmrg
2662c81d8f5eSmrg
2663a73027baSmrg
2664a73027baSmrg
2665a73027baSmrg
2666fd549268Smrg
2667fd549268Smrg
2668fd549268Smrg
2669fd549268Smrg
2670fd549268Smrg
2671fd549268Smrg
2672fd549268Smrg
2673fd549268Smrg# Expand $ac_aux_dir to an absolute path.
2674fd549268Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
2675fd549268Smrg
2676fd549268Smrgac_ext=c
2677fd549268Smrgac_cpp='$CPP $CPPFLAGS'
2678fd549268Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679fd549268Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680fd549268Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2681fd549268Smrgif test -n "$ac_tool_prefix"; then
2682fd549268Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2683fd549268Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2684fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685fd549268Smrgprintf %s "checking for $ac_word... " >&6; }
2686fd549268Smrgif test ${ac_cv_prog_CC+y}
26877c5adda3Smrgthen :
26887c5adda3Smrg  printf %s "(cached) " >&6
26897c5adda3Smrgelse $as_nop
2690fd549268Smrg  if test -n "$CC"; then
2691fd549268Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2692fd549268Smrgelse
2693fd549268Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694a73027baSmrgfor as_dir in $PATH
2695a73027baSmrgdo
2696a73027baSmrg  IFS=$as_save_IFS
26977c5adda3Smrg  case $as_dir in #(((
26987c5adda3Smrg    '') as_dir=./ ;;
26997c5adda3Smrg    */) ;;
27007c5adda3Smrg    *) as_dir=$as_dir/ ;;
27017c5adda3Smrg  esac
2702fd549268Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2703fd549268Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2704fd549268Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2705fd549268Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2706fd549268Smrg    break 2
2707fd549268Smrg  fi
2708fd549268Smrgdone
27096f02d4e9Smrg  done
2710a73027baSmrgIFS=$as_save_IFS
2711a73027baSmrg
2712a73027baSmrgfi
2713a73027baSmrgfi
2714fd549268SmrgCC=$ac_cv_prog_CC
2715fd549268Smrgif test -n "$CC"; then
2716fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717fd549268Smrgprintf "%s\n" "$CC" >&6; }
2718fd549268Smrgelse
2719fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720fd549268Smrgprintf "%s\n" "no" >&6; }
2721fd549268Smrgfi
2722a73027baSmrg
2723a73027baSmrg
27246f02d4e9Smrgfi
2725fd549268Smrgif test -z "$ac_cv_prog_CC"; then
2726fd549268Smrg  ac_ct_CC=$CC
2727fd549268Smrg  # Extract the first word of "gcc", so it can be a program name with args.
2728fd549268Smrgset dummy gcc; ac_word=$2
27297c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27307c5adda3Smrgprintf %s "checking for $ac_word... " >&6; }
2731fd549268Smrgif test ${ac_cv_prog_ac_ct_CC+y}
27327c5adda3Smrgthen :
27337c5adda3Smrg  printf %s "(cached) " >&6
27347c5adda3Smrgelse $as_nop
2735fd549268Smrg  if test -n "$ac_ct_CC"; then
2736fd549268Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
27376f02d4e9Smrgelse
27386f02d4e9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27396f02d4e9Smrgfor as_dir in $PATH
27406f02d4e9Smrgdo
27416f02d4e9Smrg  IFS=$as_save_IFS
27427c5adda3Smrg  case $as_dir in #(((
27437c5adda3Smrg    '') as_dir=./ ;;
27447c5adda3Smrg    */) ;;
27457c5adda3Smrg    *) as_dir=$as_dir/ ;;
27467c5adda3Smrg  esac
27476f02d4e9Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
27487c5adda3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2749fd549268Smrg    ac_cv_prog_ac_ct_CC="gcc"
27507c5adda3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27516f02d4e9Smrg    break 2
27526f02d4e9Smrg  fi
27536f02d4e9Smrgdone
27546f02d4e9Smrg  done
27556f02d4e9SmrgIFS=$as_save_IFS
27566f02d4e9Smrg
27576f02d4e9Smrgfi
27586f02d4e9Smrgfi
2759fd549268Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2760fd549268Smrgif test -n "$ac_ct_CC"; then
2761fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2762fd549268Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
27636f02d4e9Smrgelse
27647c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27657c5adda3Smrgprintf "%s\n" "no" >&6; }
27666f02d4e9Smrgfi
27676f02d4e9Smrg
2768fd549268Smrg  if test "x$ac_ct_CC" = x; then
2769fd549268Smrg    CC=""
2770fd549268Smrg  else
2771fd549268Smrg    case $cross_compiling:$ac_tool_warned in
2772fd549268Smrgyes:)
2773fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2774fd549268Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2775fd549268Smrgac_tool_warned=yes ;;
2776fd549268Smrgesac
2777fd549268Smrg    CC=$ac_ct_CC
2778fd549268Smrg  fi
2779fd549268Smrgelse
2780fd549268Smrg  CC="$ac_cv_prog_CC"
27816f02d4e9Smrgfi
2782fd549268Smrg
2783fd549268Smrgif test -z "$CC"; then
2784fd549268Smrg          if test -n "$ac_tool_prefix"; then
2785fd549268Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2786fd549268Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
27877c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27887c5adda3Smrgprintf %s "checking for $ac_word... " >&6; }
2789fd549268Smrgif test ${ac_cv_prog_CC+y}
27907c5adda3Smrgthen :
27917c5adda3Smrg  printf %s "(cached) " >&6
27927c5adda3Smrgelse $as_nop
2793fd549268Smrg  if test -n "$CC"; then
2794fd549268Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
27956f02d4e9Smrgelse
27966f02d4e9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27976f02d4e9Smrgfor as_dir in $PATH
27986f02d4e9Smrgdo
27996f02d4e9Smrg  IFS=$as_save_IFS
28007c5adda3Smrg  case $as_dir in #(((
28017c5adda3Smrg    '') as_dir=./ ;;
28027c5adda3Smrg    */) ;;
28037c5adda3Smrg    *) as_dir=$as_dir/ ;;
28047c5adda3Smrg  esac
28056f02d4e9Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
28067c5adda3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2807fd549268Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
28087c5adda3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28096f02d4e9Smrg    break 2
28106f02d4e9Smrg  fi
28116f02d4e9Smrgdone
28126f02d4e9Smrg  done
28136f02d4e9SmrgIFS=$as_save_IFS
28146f02d4e9Smrg
28156f02d4e9Smrgfi
28166f02d4e9Smrgfi
2817fd549268SmrgCC=$ac_cv_prog_CC
2818fd549268Smrgif test -n "$CC"; then
2819fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820fd549268Smrgprintf "%s\n" "$CC" >&6; }
28216f02d4e9Smrgelse
28227c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28237c5adda3Smrgprintf "%s\n" "no" >&6; }
28246f02d4e9Smrgfi
28256f02d4e9Smrg
282621212451Smrg
282721212451Smrg  fi
2828bf4a254eSmrgfi
2829fd549268Smrgif test -z "$CC"; then
2830fd549268Smrg  # Extract the first word of "cc", so it can be a program name with args.
2831fd549268Smrgset dummy cc; ac_word=$2
28327c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28337c5adda3Smrgprintf %s "checking for $ac_word... " >&6; }
2834fd549268Smrgif test ${ac_cv_prog_CC+y}
28357c5adda3Smrgthen :
28367c5adda3Smrg  printf %s "(cached) " >&6
28377c5adda3Smrgelse $as_nop
2838fd549268Smrg  if test -n "$CC"; then
2839fd549268Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2840bf4a254eSmrgelse
2841fd549268Smrg  ac_prog_rejected=no
2842bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843bf4a254eSmrgfor as_dir in $PATH
2844bf4a254eSmrgdo
2845bf4a254eSmrg  IFS=$as_save_IFS
28467c5adda3Smrg  case $as_dir in #(((
28477c5adda3Smrg    '') as_dir=./ ;;
28487c5adda3Smrg    */) ;;
28497c5adda3Smrg    *) as_dir=$as_dir/ ;;
28507c5adda3Smrg  esac
28516f02d4e9Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
28527c5adda3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2853fd549268Smrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2854fd549268Smrg       ac_prog_rejected=yes
2855fd549268Smrg       continue
2856fd549268Smrg     fi
2857fd549268Smrg    ac_cv_prog_CC="cc"
28587c5adda3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2859bf4a254eSmrg    break 2
2860bf4a254eSmrg  fi
2861bf4a254eSmrgdone
28626f02d4e9Smrg  done
2863a73027baSmrgIFS=$as_save_IFS
2864a73027baSmrg
2865fd549268Smrgif test $ac_prog_rejected = yes; then
2866fd549268Smrg  # We found a bogon in the path, so make sure we never use it.
2867fd549268Smrg  set dummy $ac_cv_prog_CC
2868fd549268Smrg  shift
2869fd549268Smrg  if test $# != 0; then
2870fd549268Smrg    # We chose a different compiler from the bogus one.
2871fd549268Smrg    # However, it has the same basename, so the bogon will be chosen
2872fd549268Smrg    # first if we set CC to just the basename; use the full file name.
2873fd549268Smrg    shift
2874fd549268Smrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2875fd549268Smrg  fi
2876fd549268Smrgfi
2877fd549268Smrgfi
2878fd549268Smrgfi
2879fd549268SmrgCC=$ac_cv_prog_CC
2880fd549268Smrgif test -n "$CC"; then
2881fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882fd549268Smrgprintf "%s\n" "$CC" >&6; }
2883a73027baSmrgelse
28847c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28857c5adda3Smrgprintf "%s\n" "no" >&6; }
2886a73027baSmrgfi
2887a73027baSmrg
2888a73027baSmrg
2889fd549268Smrgfi
2890fd549268Smrgif test -z "$CC"; then
2891fd549268Smrg  if test -n "$ac_tool_prefix"; then
2892fd549268Smrg  for ac_prog in cl.exe
2893fd549268Smrg  do
2894fd549268Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2895fd549268Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2896fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897fd549268Smrgprintf %s "checking for $ac_word... " >&6; }
2898fd549268Smrgif test ${ac_cv_prog_CC+y}
28997c5adda3Smrgthen :
29007c5adda3Smrg  printf %s "(cached) " >&6
29017c5adda3Smrgelse $as_nop
2902fd549268Smrg  if test -n "$CC"; then
2903fd549268Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2904fd549268Smrgelse
2905fd549268Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906fd549268Smrgfor as_dir in $PATH
2907fd549268Smrgdo
2908fd549268Smrg  IFS=$as_save_IFS
2909fd549268Smrg  case $as_dir in #(((
2910fd549268Smrg    '') as_dir=./ ;;
2911fd549268Smrg    */) ;;
2912fd549268Smrg    *) as_dir=$as_dir/ ;;
2913fd549268Smrg  esac
2914fd549268Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2915fd549268Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2916fd549268Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2917fd549268Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2918fd549268Smrg    break 2
2919fd549268Smrg  fi
2920fd549268Smrgdone
2921fd549268Smrg  done
2922fd549268SmrgIFS=$as_save_IFS
2923fd549268Smrg
2924a73027baSmrgfi
2925fd549268Smrgfi
2926fd549268SmrgCC=$ac_cv_prog_CC
2927fd549268Smrgif test -n "$CC"; then
2928fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929fd549268Smrgprintf "%s\n" "$CC" >&6; }
2930a73027baSmrgelse
29317c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29327c5adda3Smrgprintf "%s\n" "no" >&6; }
2933a73027baSmrgfi
2934a73027baSmrg
2935a73027baSmrg
2936fd549268Smrg    test -n "$CC" && break
2937fd549268Smrg  done
293821212451Smrgfi
2939fd549268Smrgif test -z "$CC"; then
2940fd549268Smrg  ac_ct_CC=$CC
2941fd549268Smrg  for ac_prog in cl.exe
2942fd549268Smrgdo
2943fd549268Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2944fd549268Smrgset dummy $ac_prog; ac_word=$2
2945fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946fd549268Smrgprintf %s "checking for $ac_word... " >&6; }
2947fd549268Smrgif test ${ac_cv_prog_ac_ct_CC+y}
29487c5adda3Smrgthen :
29497c5adda3Smrg  printf %s "(cached) " >&6
29507c5adda3Smrgelse $as_nop
2951fd549268Smrg  if test -n "$ac_ct_CC"; then
2952fd549268Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
295321212451Smrgelse
2954fd549268Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955fd549268Smrgfor as_dir in $PATH
2956fd549268Smrgdo
2957fd549268Smrg  IFS=$as_save_IFS
2958fd549268Smrg  case $as_dir in #(((
2959fd549268Smrg    '') as_dir=./ ;;
2960fd549268Smrg    */) ;;
2961fd549268Smrg    *) as_dir=$as_dir/ ;;
2962fd549268Smrg  esac
2963fd549268Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2964fd549268Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2965fd549268Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2966fd549268Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2967fd549268Smrg    break 2
2968fd549268Smrg  fi
2969fd549268Smrgdone
2970fd549268Smrg  done
2971fd549268SmrgIFS=$as_save_IFS
2972fd549268Smrg
297321212451Smrgfi
297421212451Smrgfi
2975fd549268Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2976fd549268Smrgif test -n "$ac_ct_CC"; then
2977fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2978fd549268Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
297921212451Smrgelse
2980fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981fd549268Smrgprintf "%s\n" "no" >&6; }
298221212451Smrgfi
298321212451Smrg
298421212451Smrg
2985fd549268Smrg  test -n "$ac_ct_CC" && break
2986fd549268Smrgdone
2987fd549268Smrg
2988fd549268Smrg  if test "x$ac_ct_CC" = x; then
2989fd549268Smrg    CC=""
29906f02d4e9Smrg  else
2991fd549268Smrg    case $cross_compiling:$ac_tool_warned in
2992fd549268Smrgyes:)
2993fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2994fd549268Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2995fd549268Smrgac_tool_warned=yes ;;
2996fd549268Smrgesac
2997fd549268Smrg    CC=$ac_ct_CC
29986f02d4e9Smrg  fi
299921212451Smrgfi
30006f02d4e9Smrg
3001fd549268Smrgfi
3002fd549268Smrgif test -z "$CC"; then
3003fd549268Smrg  if test -n "$ac_tool_prefix"; then
3004fd549268Smrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3005fd549268Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2
3006fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007fd549268Smrgprintf %s "checking for $ac_word... " >&6; }
3008fd549268Smrgif test ${ac_cv_prog_CC+y}
3009fd549268Smrgthen :
3010fd549268Smrg  printf %s "(cached) " >&6
3011fd549268Smrgelse $as_nop
3012fd549268Smrg  if test -n "$CC"; then
3013fd549268Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3014fd549268Smrgelse
3015fd549268Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016fd549268Smrgfor as_dir in $PATH
3017fd549268Smrgdo
3018fd549268Smrg  IFS=$as_save_IFS
3019fd549268Smrg  case $as_dir in #(((
3020fd549268Smrg    '') as_dir=./ ;;
3021fd549268Smrg    */) ;;
3022fd549268Smrg    *) as_dir=$as_dir/ ;;
3023fd549268Smrg  esac
3024fd549268Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3025fd549268Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3026fd549268Smrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
3027fd549268Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3028fd549268Smrg    break 2
3029fd549268Smrg  fi
3030fd549268Smrgdone
3031fd549268Smrg  done
3032fd549268SmrgIFS=$as_save_IFS
30336f02d4e9Smrg
3034fd549268Smrgfi
3035fd549268Smrgfi
3036fd549268SmrgCC=$ac_cv_prog_CC
3037fd549268Smrgif test -n "$CC"; then
3038fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039fd549268Smrgprintf "%s\n" "$CC" >&6; }
3040fd549268Smrgelse
3041fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042fd549268Smrgprintf "%s\n" "no" >&6; }
3043fd549268Smrgfi
3044a73027baSmrg
3045a73027baSmrg
3046a73027baSmrgfi
3047a73027baSmrgif test -z "$ac_cv_prog_CC"; then
3048a73027baSmrg  ac_ct_CC=$CC
3049fd549268Smrg  # Extract the first word of "clang", so it can be a program name with args.
3050fd549268Smrgset dummy clang; ac_word=$2
30517c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30527c5adda3Smrgprintf %s "checking for $ac_word... " >&6; }
30537c5adda3Smrgif test ${ac_cv_prog_ac_ct_CC+y}
30547c5adda3Smrgthen :
30557c5adda3Smrg  printf %s "(cached) " >&6
30567c5adda3Smrgelse $as_nop
3057a73027baSmrg  if test -n "$ac_ct_CC"; then
3058a73027baSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059a73027baSmrgelse
3060a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061a73027baSmrgfor as_dir in $PATH
3062a73027baSmrgdo
3063a73027baSmrg  IFS=$as_save_IFS
30647c5adda3Smrg  case $as_dir in #(((
30657c5adda3Smrg    '') as_dir=./ ;;
30667c5adda3Smrg    */) ;;
30677c5adda3Smrg    *) as_dir=$as_dir/ ;;
30687c5adda3Smrg  esac
30696f02d4e9Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
30707c5adda3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3071fd549268Smrg    ac_cv_prog_ac_ct_CC="clang"
30727c5adda3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3073a73027baSmrg    break 2
3074a73027baSmrg  fi
3075a73027baSmrgdone
30766f02d4e9Smrg  done
3077a73027baSmrgIFS=$as_save_IFS
3078a73027baSmrg
3079a73027baSmrgfi
3080a73027baSmrgfi
3081a73027baSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3082a73027baSmrgif test -n "$ac_ct_CC"; then
30837c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
30847c5adda3Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
3085a73027baSmrgelse
30867c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30877c5adda3Smrgprintf "%s\n" "no" >&6; }
3088a73027baSmrgfi
3089a73027baSmrg
3090a73027baSmrg  if test "x$ac_ct_CC" = x; then
3091a73027baSmrg    CC=""
3092a73027baSmrg  else
3093a73027baSmrg    case $cross_compiling:$ac_tool_warned in
3094a73027baSmrgyes:)
30957c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30967c5adda3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3097a73027baSmrgac_tool_warned=yes ;;
3098a73027baSmrgesac
3099a73027baSmrg    CC=$ac_ct_CC
3100a73027baSmrg  fi
3101a73027baSmrgelse
3102a73027baSmrg  CC="$ac_cv_prog_CC"
3103a73027baSmrgfi
3104a73027baSmrg
3105a73027baSmrgfi
3106a73027baSmrg
3107a73027baSmrg
3108fd549268Smrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3109fd549268Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3110fd549268Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
3111fd549268SmrgSee \`config.log' for more details" "$LINENO" 5; }
3112fd549268Smrg
3113fd549268Smrg# Provide some information about the compiler.
3114fd549268Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3115fd549268Smrgset X $ac_compile
3116fd549268Smrgac_compiler=$2
3117fd549268Smrgfor ac_option in --version -v -V -qversion -version; do
3118fd549268Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3119fd549268Smrgcase "(($ac_try" in
3120fd549268Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121fd549268Smrg  *) ac_try_echo=$ac_try;;
3122fd549268Smrgesac
3123fd549268Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124fd549268Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3125fd549268Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3126fd549268Smrg  ac_status=$?
3127fd549268Smrg  if test -s conftest.err; then
3128fd549268Smrg    sed '10a\
3129fd549268Smrg... rest of stderr output deleted ...
3130fd549268Smrg         10q' conftest.err >conftest.er1
3131fd549268Smrg    cat conftest.er1 >&5
3132a73027baSmrg  fi
3133fd549268Smrg  rm -f conftest.er1 conftest.err
3134fd549268Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135fd549268Smrg  test $ac_status = 0; }
3136a73027baSmrgdone
3137a73027baSmrg
3138fd549268Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139fd549268Smrg/* end confdefs.h.  */
3140a73027baSmrg
3141fd549268Smrgint
3142fd549268Smrgmain (void)
3143fd549268Smrg{
3144a73027baSmrg
3145fd549268Smrg  ;
3146fd549268Smrg  return 0;
3147fd549268Smrg}
3148fd549268Smrg_ACEOF
3149fd549268Smrgac_clean_files_save=$ac_clean_files
3150fd549268Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3151fd549268Smrg# Try to create an executable without -o first, disregard a.out.
3152fd549268Smrg# It will help us diagnose broken compilers, and finding out an intuition
3153fd549268Smrg# of exeext.
3154fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3155fd549268Smrgprintf %s "checking whether the C compiler works... " >&6; }
3156fd549268Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3157fd549268Smrg
3158fd549268Smrg# The possible output files:
3159fd549268Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3160fd549268Smrg
3161fd549268Smrgac_rmfiles=
3162fd549268Smrgfor ac_file in $ac_files
3163a73027baSmrgdo
3164fd549268Smrg  case $ac_file in
3165fd549268Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3166fd549268Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
31677c5adda3Smrg  esac
3168a73027baSmrgdone
3169fd549268Smrgrm -f $ac_rmfiles
3170a73027baSmrg
3171fd549268Smrgif { { ac_try="$ac_link_default"
3172fd549268Smrgcase "(($ac_try" in
3173fd549268Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174fd549268Smrg  *) ac_try_echo=$ac_try;;
3175fd549268Smrgesac
3176fd549268Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177fd549268Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3178fd549268Smrg  (eval "$ac_link_default") 2>&5
3179fd549268Smrg  ac_status=$?
3180fd549268Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181fd549268Smrg  test $ac_status = 0; }
31827c5adda3Smrgthen :
3183fd549268Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3184fd549268Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3185fd549268Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3186fd549268Smrg# so that the user can short-circuit this test for compilers unknown to
3187fd549268Smrg# Autoconf.
3188fd549268Smrgfor ac_file in $ac_files ''
3189a73027baSmrgdo
3190fd549268Smrg  test -f "$ac_file" || continue
3191fd549268Smrg  case $ac_file in
3192fd549268Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3193fd549268Smrg	;;
3194fd549268Smrg    [ab].out )
3195fd549268Smrg	# We found the default executable, but exeext='' is most
3196fd549268Smrg	# certainly right.
3197fd549268Smrg	break;;
3198fd549268Smrg    *.* )
3199fd549268Smrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3200fd549268Smrg	then :; else
3201fd549268Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3202fd549268Smrg	fi
3203fd549268Smrg	# We set ac_cv_exeext here because the later test for it is not
3204fd549268Smrg	# safe: cross compilers may not add the suffix if given an `-o'
3205fd549268Smrg	# argument, so we may need to know it at that point already.
3206fd549268Smrg	# Even if this section looks crufty: it has the advantage of
3207fd549268Smrg	# actually working.
3208fd549268Smrg	break;;
3209fd549268Smrg    * )
3210fd549268Smrg	break;;
32117c5adda3Smrg  esac
3212a73027baSmrgdone
3213fd549268Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3214a73027baSmrg
3215fd549268Smrgelse $as_nop
3216fd549268Smrg  ac_file=''
3217a73027baSmrgfi
3218fd549268Smrgif test -z "$ac_file"
3219fd549268Smrgthen :
32207c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32217c5adda3Smrgprintf "%s\n" "no" >&6; }
3222fd549268Smrgprintf "%s\n" "$as_me: failed program was:" >&5
3223fd549268Smrgsed 's/^/| /' conftest.$ac_ext >&5
32247c5adda3Smrg
3225fd549268Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226fd549268Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3227fd549268Smrgas_fn_error 77 "C compiler cannot create executables
3228fd549268SmrgSee \`config.log' for more details" "$LINENO" 5; }
3229fd549268Smrgelse $as_nop
3230fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3231fd549268Smrgprintf "%s\n" "yes" >&6; }
32327c5adda3Smrgfi
32337c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
32347c5adda3Smrgprintf %s "checking for C compiler default output file name... " >&6; }
32357c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
32367c5adda3Smrgprintf "%s\n" "$ac_file" >&6; }
3237a73027baSmrgac_exeext=$ac_cv_exeext
3238a73027baSmrg
32396f02d4e9Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3240a73027baSmrgac_clean_files=$ac_clean_files_save
32417c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
32427c5adda3Smrgprintf %s "checking for suffix of executables... " >&6; }
32436f02d4e9Smrgif { { ac_try="$ac_link"
3244a73027baSmrgcase "(($ac_try" in
3245a73027baSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246a73027baSmrg  *) ac_try_echo=$ac_try;;
3247a73027baSmrgesac
32486f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32497c5adda3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3250a73027baSmrg  (eval "$ac_link") 2>&5
3251a73027baSmrg  ac_status=$?
32527c5adda3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32537c5adda3Smrg  test $ac_status = 0; }
32547c5adda3Smrgthen :
3255a73027baSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3256a73027baSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3257a73027baSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3258a73027baSmrg# `rm'.
3259a73027baSmrgfor ac_file in conftest.exe conftest conftest.*; do
3260a73027baSmrg  test -f "$ac_file" || continue
3261a73027baSmrg  case $ac_file in
32626f02d4e9Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3263a73027baSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3264a73027baSmrg	  break;;
3265a73027baSmrg    * ) break;;
3266a73027baSmrg  esac
3267a73027baSmrgdone
32687c5adda3Smrgelse $as_nop
32697c5adda3Smrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32707c5adda3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
32716f02d4e9Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
32726f02d4e9SmrgSee \`config.log' for more details" "$LINENO" 5; }
3273a73027baSmrgfi
32746f02d4e9Smrgrm -f conftest conftest$ac_cv_exeext
32757c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
32767c5adda3Smrgprintf "%s\n" "$ac_cv_exeext" >&6; }
3277a73027baSmrg
3278a73027baSmrgrm -f conftest.$ac_ext
3279a73027baSmrgEXEEXT=$ac_cv_exeext
3280a73027baSmrgac_exeext=$EXEEXT
32816f02d4e9Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
32826f02d4e9Smrg/* end confdefs.h.  */
32836f02d4e9Smrg#include <stdio.h>
32846f02d4e9Smrgint
32857c5adda3Smrgmain (void)
32866f02d4e9Smrg{
32876f02d4e9SmrgFILE *f = fopen ("conftest.out", "w");
32886f02d4e9Smrg return ferror (f) || fclose (f) != 0;
32896f02d4e9Smrg
32906f02d4e9Smrg  ;
32916f02d4e9Smrg  return 0;
32926f02d4e9Smrg}
329321212451Smrg_ACEOF
32946f02d4e9Smrgac_clean_files="$ac_clean_files conftest.out"
32956f02d4e9Smrg# Check that the compiler produces executables we can run.  If not, either
32966f02d4e9Smrg# the compiler is broken, or we cross compile.
32977c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
32987c5adda3Smrgprintf %s "checking whether we are cross compiling... " >&6; }
32996f02d4e9Smrgif test "$cross_compiling" != yes; then
33006f02d4e9Smrg  { { ac_try="$ac_link"
33016f02d4e9Smrgcase "(($ac_try" in
33026f02d4e9Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33036f02d4e9Smrg  *) ac_try_echo=$ac_try;;
33046f02d4e9Smrgesac
33056f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
33067c5adda3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
33076f02d4e9Smrg  (eval "$ac_link") 2>&5
33086f02d4e9Smrg  ac_status=$?
33097c5adda3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33106f02d4e9Smrg  test $ac_status = 0; }
33116f02d4e9Smrg  if { ac_try='./conftest$ac_cv_exeext'
33126f02d4e9Smrg  { { case "(($ac_try" in
33136f02d4e9Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146f02d4e9Smrg  *) ac_try_echo=$ac_try;;
33156f02d4e9Smrgesac
33166f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
33177c5adda3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
33186f02d4e9Smrg  (eval "$ac_try") 2>&5
33196f02d4e9Smrg  ac_status=$?
33207c5adda3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33216f02d4e9Smrg  test $ac_status = 0; }; }; then
33226f02d4e9Smrg    cross_compiling=no
33236f02d4e9Smrg  else
33246f02d4e9Smrg    if test "$cross_compiling" = maybe; then
33256f02d4e9Smrg	cross_compiling=yes
33266f02d4e9Smrg    else
33277c5adda3Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33287c5adda3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
33297c5adda3Smrgas_fn_error 77 "cannot run C compiled programs.
33306f02d4e9SmrgIf you meant to cross compile, use \`--host'.
33316f02d4e9SmrgSee \`config.log' for more details" "$LINENO" 5; }
33326f02d4e9Smrg    fi
33336f02d4e9Smrg  fi
33346f02d4e9Smrgfi
33357c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
33367c5adda3Smrgprintf "%s\n" "$cross_compiling" >&6; }
33376f02d4e9Smrg
33386f02d4e9Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
33396f02d4e9Smrgac_clean_files=$ac_clean_files_save
33407c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
33417c5adda3Smrgprintf %s "checking for suffix of object files... " >&6; }
33427c5adda3Smrgif test ${ac_cv_objext+y}
33437c5adda3Smrgthen :
33447c5adda3Smrg  printf %s "(cached) " >&6
33457c5adda3Smrgelse $as_nop
33466f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347bf4a254eSmrg/* end confdefs.h.  */
334821212451Smrg
3349bf4a254eSmrgint
33507c5adda3Smrgmain (void)
3351bf4a254eSmrg{
3352bf4a254eSmrg
3353bf4a254eSmrg  ;
3354bf4a254eSmrg  return 0;
3355bf4a254eSmrg}
3356a73027baSmrg_ACEOF
335721212451Smrgrm -f conftest.o conftest.obj
33586f02d4e9Smrgif { { ac_try="$ac_compile"
3359bf4a254eSmrgcase "(($ac_try" in
3360bf4a254eSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361bf4a254eSmrg  *) ac_try_echo=$ac_try;;
3362bf4a254eSmrgesac
33636f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
33647c5adda3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
336521212451Smrg  (eval "$ac_compile") 2>&5
3366bf4a254eSmrg  ac_status=$?
33677c5adda3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33687c5adda3Smrg  test $ac_status = 0; }
33697c5adda3Smrgthen :
3370fd549268Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3371fd549268Smrg  test -f "$ac_file" || continue;
3372fd549268Smrg  case $ac_file in
3373fd549268Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3374fd549268Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3375fd549268Smrg       break;;
3376fd549268Smrg  esac
3377fd549268Smrgdone
3378fd549268Smrgelse $as_nop
3379fd549268Smrg  printf "%s\n" "$as_me: failed program was:" >&5
3380fd549268Smrgsed 's/^/| /' conftest.$ac_ext >&5
3381fd549268Smrg
3382fd549268Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383fd549268Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3384fd549268Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3385fd549268SmrgSee \`config.log' for more details" "$LINENO" 5; }
3386fd549268Smrgfi
3387fd549268Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3388fd549268Smrgfi
3389fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3390fd549268Smrgprintf "%s\n" "$ac_cv_objext" >&6; }
3391fd549268SmrgOBJEXT=$ac_cv_objext
3392fd549268Smrgac_objext=$OBJEXT
3393fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3394fd549268Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
3395fd549268Smrgif test ${ac_cv_c_compiler_gnu+y}
3396fd549268Smrgthen :
3397fd549268Smrg  printf %s "(cached) " >&6
3398fd549268Smrgelse $as_nop
3399fd549268Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400fd549268Smrg/* end confdefs.h.  */
3401fd549268Smrg
3402fd549268Smrgint
3403fd549268Smrgmain (void)
3404fd549268Smrg{
3405fd549268Smrg#ifndef __GNUC__
3406fd549268Smrg       choke me
3407fd549268Smrg#endif
3408fd549268Smrg
3409fd549268Smrg  ;
3410fd549268Smrg  return 0;
3411fd549268Smrg}
3412fd549268Smrg_ACEOF
3413fd549268Smrgif ac_fn_c_try_compile "$LINENO"
3414fd549268Smrgthen :
3415fd549268Smrg  ac_compiler_gnu=yes
3416fd549268Smrgelse $as_nop
3417fd549268Smrg  ac_compiler_gnu=no
3418fd549268Smrgfi
3419fd549268Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3420fd549268Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3421fd549268Smrg
3422fd549268Smrgfi
3423fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3424fd549268Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3425fd549268Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3426fd549268Smrg
3427fd549268Smrgif test $ac_compiler_gnu = yes; then
3428fd549268Smrg  GCC=yes
3429fd549268Smrgelse
3430fd549268Smrg  GCC=
3431fd549268Smrgfi
3432fd549268Smrgac_test_CFLAGS=${CFLAGS+y}
3433fd549268Smrgac_save_CFLAGS=$CFLAGS
3434fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3435fd549268Smrgprintf %s "checking whether $CC accepts -g... " >&6; }
3436fd549268Smrgif test ${ac_cv_prog_cc_g+y}
3437fd549268Smrgthen :
3438fd549268Smrg  printf %s "(cached) " >&6
3439fd549268Smrgelse $as_nop
3440fd549268Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
3441fd549268Smrg   ac_c_werror_flag=yes
3442fd549268Smrg   ac_cv_prog_cc_g=no
3443fd549268Smrg   CFLAGS="-g"
3444fd549268Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445fd549268Smrg/* end confdefs.h.  */
3446fd549268Smrg
3447fd549268Smrgint
3448fd549268Smrgmain (void)
3449fd549268Smrg{
3450fd549268Smrg
3451fd549268Smrg  ;
3452fd549268Smrg  return 0;
3453fd549268Smrg}
3454fd549268Smrg_ACEOF
3455fd549268Smrgif ac_fn_c_try_compile "$LINENO"
3456fd549268Smrgthen :
3457fd549268Smrg  ac_cv_prog_cc_g=yes
3458fd549268Smrgelse $as_nop
3459fd549268Smrg  CFLAGS=""
3460fd549268Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461fd549268Smrg/* end confdefs.h.  */
3462fd549268Smrg
3463fd549268Smrgint
3464fd549268Smrgmain (void)
3465fd549268Smrg{
3466fd549268Smrg
3467fd549268Smrg  ;
3468fd549268Smrg  return 0;
3469fd549268Smrg}
3470fd549268Smrg_ACEOF
3471fd549268Smrgif ac_fn_c_try_compile "$LINENO"
3472fd549268Smrgthen :
3473fd549268Smrg
3474fd549268Smrgelse $as_nop
3475fd549268Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
3476fd549268Smrg	 CFLAGS="-g"
3477fd549268Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478fd549268Smrg/* end confdefs.h.  */
3479fd549268Smrg
3480fd549268Smrgint
3481fd549268Smrgmain (void)
3482fd549268Smrg{
3483fd549268Smrg
3484fd549268Smrg  ;
3485fd549268Smrg  return 0;
3486fd549268Smrg}
3487fd549268Smrg_ACEOF
3488fd549268Smrgif ac_fn_c_try_compile "$LINENO"
3489fd549268Smrgthen :
3490fd549268Smrg  ac_cv_prog_cc_g=yes
3491fd549268Smrgfi
3492fd549268Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3493fd549268Smrgfi
3494fd549268Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3495fd549268Smrgfi
3496fd549268Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3497fd549268Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
3498fd549268Smrgfi
3499fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3500fd549268Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3501fd549268Smrgif test $ac_test_CFLAGS; then
3502fd549268Smrg  CFLAGS=$ac_save_CFLAGS
3503fd549268Smrgelif test $ac_cv_prog_cc_g = yes; then
3504fd549268Smrg  if test "$GCC" = yes; then
3505fd549268Smrg    CFLAGS="-g -O2"
3506fd549268Smrg  else
3507fd549268Smrg    CFLAGS="-g"
3508fd549268Smrg  fi
3509fd549268Smrgelse
3510fd549268Smrg  if test "$GCC" = yes; then
3511fd549268Smrg    CFLAGS="-O2"
3512fd549268Smrg  else
3513fd549268Smrg    CFLAGS=
3514fd549268Smrg  fi
3515fd549268Smrgfi
3516fd549268Smrgac_prog_cc_stdc=no
3517fd549268Smrgif test x$ac_prog_cc_stdc = xno
3518fd549268Smrgthen :
3519fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3520fd549268Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
3521fd549268Smrgif test ${ac_cv_prog_cc_c11+y}
3522fd549268Smrgthen :
3523fd549268Smrg  printf %s "(cached) " >&6
3524fd549268Smrgelse $as_nop
3525fd549268Smrg  ac_cv_prog_cc_c11=no
3526fd549268Smrgac_save_CC=$CC
3527fd549268Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528fd549268Smrg/* end confdefs.h.  */
3529fd549268Smrg$ac_c_conftest_c11_program
3530fd549268Smrg_ACEOF
3531fd549268Smrgfor ac_arg in '' -std=gnu11
3532fd549268Smrgdo
3533fd549268Smrg  CC="$ac_save_CC $ac_arg"
3534fd549268Smrg  if ac_fn_c_try_compile "$LINENO"
3535fd549268Smrgthen :
3536fd549268Smrg  ac_cv_prog_cc_c11=$ac_arg
3537fd549268Smrgfi
3538fd549268Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
3539fd549268Smrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
3540fd549268Smrgdone
3541fd549268Smrgrm -f conftest.$ac_ext
3542fd549268SmrgCC=$ac_save_CC
3543fd549268Smrgfi
3544fd549268Smrg
3545fd549268Smrgif test "x$ac_cv_prog_cc_c11" = xno
3546fd549268Smrgthen :
3547fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3548fd549268Smrgprintf "%s\n" "unsupported" >&6; }
3549fd549268Smrgelse $as_nop
3550fd549268Smrg  if test "x$ac_cv_prog_cc_c11" = x
3551fd549268Smrgthen :
3552fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3553fd549268Smrgprintf "%s\n" "none needed" >&6; }
3554fd549268Smrgelse $as_nop
3555fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3556fd549268Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3557fd549268Smrg     CC="$CC $ac_cv_prog_cc_c11"
3558fd549268Smrgfi
3559fd549268Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3560fd549268Smrg  ac_prog_cc_stdc=c11
3561fd549268Smrgfi
3562fd549268Smrgfi
3563fd549268Smrgif test x$ac_prog_cc_stdc = xno
3564fd549268Smrgthen :
3565fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3566fd549268Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
3567fd549268Smrgif test ${ac_cv_prog_cc_c99+y}
3568fd549268Smrgthen :
3569fd549268Smrg  printf %s "(cached) " >&6
3570fd549268Smrgelse $as_nop
3571fd549268Smrg  ac_cv_prog_cc_c99=no
3572fd549268Smrgac_save_CC=$CC
3573fd549268Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574fd549268Smrg/* end confdefs.h.  */
3575fd549268Smrg$ac_c_conftest_c99_program
3576fd549268Smrg_ACEOF
3577fd549268Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3578fd549268Smrgdo
3579fd549268Smrg  CC="$ac_save_CC $ac_arg"
3580fd549268Smrg  if ac_fn_c_try_compile "$LINENO"
3581fd549268Smrgthen :
3582fd549268Smrg  ac_cv_prog_cc_c99=$ac_arg
3583fd549268Smrgfi
3584fd549268Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
3585fd549268Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3586fd549268Smrgdone
3587fd549268Smrgrm -f conftest.$ac_ext
3588fd549268SmrgCC=$ac_save_CC
3589fd549268Smrgfi
3590fd549268Smrg
3591fd549268Smrgif test "x$ac_cv_prog_cc_c99" = xno
3592fd549268Smrgthen :
3593fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3594fd549268Smrgprintf "%s\n" "unsupported" >&6; }
3595fd549268Smrgelse $as_nop
3596fd549268Smrg  if test "x$ac_cv_prog_cc_c99" = x
3597fd549268Smrgthen :
3598fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3599fd549268Smrgprintf "%s\n" "none needed" >&6; }
3600fd549268Smrgelse $as_nop
3601fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3602fd549268Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3603fd549268Smrg     CC="$CC $ac_cv_prog_cc_c99"
3604fd549268Smrgfi
3605fd549268Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3606fd549268Smrg  ac_prog_cc_stdc=c99
3607fd549268Smrgfi
3608fd549268Smrgfi
3609fd549268Smrgif test x$ac_prog_cc_stdc = xno
3610fd549268Smrgthen :
3611fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3612fd549268Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
3613fd549268Smrgif test ${ac_cv_prog_cc_c89+y}
3614fd549268Smrgthen :
3615fd549268Smrg  printf %s "(cached) " >&6
3616fd549268Smrgelse $as_nop
3617fd549268Smrg  ac_cv_prog_cc_c89=no
3618fd549268Smrgac_save_CC=$CC
3619fd549268Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620fd549268Smrg/* end confdefs.h.  */
3621fd549268Smrg$ac_c_conftest_c89_program
3622fd549268Smrg_ACEOF
3623fd549268Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3624fd549268Smrgdo
3625fd549268Smrg  CC="$ac_save_CC $ac_arg"
3626fd549268Smrg  if ac_fn_c_try_compile "$LINENO"
3627fd549268Smrgthen :
3628fd549268Smrg  ac_cv_prog_cc_c89=$ac_arg
3629fd549268Smrgfi
3630fd549268Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
3631fd549268Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3632fd549268Smrgdone
3633fd549268Smrgrm -f conftest.$ac_ext
3634fd549268SmrgCC=$ac_save_CC
3635fd549268Smrgfi
3636fd549268Smrg
3637fd549268Smrgif test "x$ac_cv_prog_cc_c89" = xno
3638fd549268Smrgthen :
3639fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3640fd549268Smrgprintf "%s\n" "unsupported" >&6; }
3641fd549268Smrgelse $as_nop
3642fd549268Smrg  if test "x$ac_cv_prog_cc_c89" = x
3643fd549268Smrgthen :
3644fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3645fd549268Smrgprintf "%s\n" "none needed" >&6; }
3646fd549268Smrgelse $as_nop
3647fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3648fd549268Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3649fd549268Smrg     CC="$CC $ac_cv_prog_cc_c89"
3650fd549268Smrgfi
3651fd549268Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3652fd549268Smrg  ac_prog_cc_stdc=c89
3653fd549268Smrgfi
3654fd549268Smrgfi
3655fd549268Smrg
3656fd549268Smrgac_ext=c
3657fd549268Smrgac_cpp='$CPP $CPPFLAGS'
3658fd549268Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659fd549268Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660fd549268Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3661fd549268Smrg
3662fd549268Smrg
3663fd549268Smrg  ac_ext=c
3664fd549268Smrgac_cpp='$CPP $CPPFLAGS'
3665fd549268Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666fd549268Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667fd549268Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3668fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3669fd549268Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
3670fd549268Smrgif test ${am_cv_prog_cc_c_o+y}
3671fd549268Smrgthen :
3672fd549268Smrg  printf %s "(cached) " >&6
3673fd549268Smrgelse $as_nop
3674fd549268Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675fd549268Smrg/* end confdefs.h.  */
3676fd549268Smrg
3677fd549268Smrgint
3678fd549268Smrgmain (void)
3679fd549268Smrg{
3680fd549268Smrg
3681fd549268Smrg  ;
3682fd549268Smrg  return 0;
3683fd549268Smrg}
3684fd549268Smrg_ACEOF
3685fd549268Smrg  # Make sure it works both with $CC and with simple cc.
3686fd549268Smrg  # Following AC_PROG_CC_C_O, we do the test twice because some
3687fd549268Smrg  # compilers refuse to overwrite an existing .o file with -o,
3688fd549268Smrg  # though they will create one.
3689fd549268Smrg  am_cv_prog_cc_c_o=yes
3690fd549268Smrg  for am_i in 1 2; do
3691fd549268Smrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3692fd549268Smrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3693fd549268Smrg   ac_status=$?
3694fd549268Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695fd549268Smrg   (exit $ac_status); } \
3696fd549268Smrg         && test -f conftest2.$ac_objext; then
3697fd549268Smrg      : OK
3698fd549268Smrg    else
3699fd549268Smrg      am_cv_prog_cc_c_o=no
3700fd549268Smrg      break
3701fd549268Smrg    fi
3702fd549268Smrg  done
3703fd549268Smrg  rm -f core conftest*
3704fd549268Smrg  unset am_i
3705fd549268Smrgfi
3706fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3707fd549268Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3708fd549268Smrgif test "$am_cv_prog_cc_c_o" != yes; then
3709fd549268Smrg   # Losing compiler, so override with the script.
3710fd549268Smrg   # FIXME: It is wrong to rewrite CC.
3711fd549268Smrg   # But if we don't then we get into trouble of one sort or another.
3712fd549268Smrg   # A longer-term fix would be to have automake use am__CC in this case,
3713fd549268Smrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3714fd549268Smrg   CC="$am_aux_dir/compile $CC"
3715fd549268Smrgfi
3716fd549268Smrgac_ext=c
3717fd549268Smrgac_cpp='$CPP $CPPFLAGS'
3718fd549268Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719fd549268Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720fd549268Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3721fd549268Smrg
3722fd549268Smrg
3723fd549268Smrg
3724fd549268Smrgac_header= ac_cache=
3725fd549268Smrgfor ac_item in $ac_header_c_list
3726fd549268Smrgdo
3727fd549268Smrg  if test $ac_cache; then
3728fd549268Smrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3729fd549268Smrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3730fd549268Smrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3731fd549268Smrg    fi
3732fd549268Smrg    ac_header= ac_cache=
3733fd549268Smrg  elif test $ac_header; then
3734fd549268Smrg    ac_cache=$ac_item
3735fd549268Smrg  else
3736fd549268Smrg    ac_header=$ac_item
3737fd549268Smrg  fi
3738fd549268Smrgdone
3739fd549268Smrg
3740fd549268Smrg
3741fd549268Smrg
3742fd549268Smrg
3743fd549268Smrg
3744fd549268Smrg
3745fd549268Smrg
3746fd549268Smrg
3747fd549268Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3748fd549268Smrgthen :
3749fd549268Smrg
3750fd549268Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3751fd549268Smrg
3752fd549268Smrgfi
3753fd549268Smrg
3754fd549268Smrg
3755fd549268Smrg
3756fd549268Smrg
3757fd549268Smrg
3758fd549268Smrg
3759fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3760fd549268Smrgprintf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3761fd549268Smrgif test ${ac_cv_safe_to_define___extensions__+y}
3762fd549268Smrgthen :
3763fd549268Smrg  printf %s "(cached) " >&6
3764fd549268Smrgelse $as_nop
3765fd549268Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766fd549268Smrg/* end confdefs.h.  */
3767fd549268Smrg
3768fd549268Smrg#         define __EXTENSIONS__ 1
3769fd549268Smrg          $ac_includes_default
3770fd549268Smrgint
3771fd549268Smrgmain (void)
3772fd549268Smrg{
3773fd549268Smrg
3774fd549268Smrg  ;
3775fd549268Smrg  return 0;
3776fd549268Smrg}
3777fd549268Smrg_ACEOF
3778fd549268Smrgif ac_fn_c_try_compile "$LINENO"
3779fd549268Smrgthen :
3780fd549268Smrg  ac_cv_safe_to_define___extensions__=yes
3781fd549268Smrgelse $as_nop
3782fd549268Smrg  ac_cv_safe_to_define___extensions__=no
3783fd549268Smrgfi
3784fd549268Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3785fd549268Smrgfi
3786fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3787fd549268Smrgprintf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3788fd549268Smrg
3789fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3790fd549268Smrgprintf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3791fd549268Smrgif test ${ac_cv_should_define__xopen_source+y}
3792fd549268Smrgthen :
3793fd549268Smrg  printf %s "(cached) " >&6
3794fd549268Smrgelse $as_nop
3795fd549268Smrg  ac_cv_should_define__xopen_source=no
3796fd549268Smrg    if test $ac_cv_header_wchar_h = yes
3797fd549268Smrgthen :
3798fd549268Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799fd549268Smrg/* end confdefs.h.  */
3800fd549268Smrg
3801fd549268Smrg          #include <wchar.h>
3802fd549268Smrg          mbstate_t x;
3803fd549268Smrgint
3804fd549268Smrgmain (void)
3805fd549268Smrg{
3806fd549268Smrg
3807fd549268Smrg  ;
3808fd549268Smrg  return 0;
3809fd549268Smrg}
3810fd549268Smrg_ACEOF
3811fd549268Smrgif ac_fn_c_try_compile "$LINENO"
3812fd549268Smrgthen :
3813fd549268Smrg
3814fd549268Smrgelse $as_nop
3815fd549268Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816fd549268Smrg/* end confdefs.h.  */
3817fd549268Smrg
3818fd549268Smrg            #define _XOPEN_SOURCE 500
3819fd549268Smrg            #include <wchar.h>
3820fd549268Smrg            mbstate_t x;
3821fd549268Smrgint
3822fd549268Smrgmain (void)
3823fd549268Smrg{
3824fd549268Smrg
3825fd549268Smrg  ;
3826fd549268Smrg  return 0;
3827fd549268Smrg}
3828fd549268Smrg_ACEOF
3829fd549268Smrgif ac_fn_c_try_compile "$LINENO"
3830fd549268Smrgthen :
3831fd549268Smrg  ac_cv_should_define__xopen_source=yes
3832fd549268Smrgfi
3833fd549268Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3834fd549268Smrgfi
3835fd549268Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3836fd549268Smrgfi
3837fd549268Smrgfi
3838fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3839fd549268Smrgprintf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3840fd549268Smrg
3841fd549268Smrg  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3842fd549268Smrg
3843fd549268Smrg  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3844fd549268Smrg
3845fd549268Smrg  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3846fd549268Smrg
3847fd549268Smrg  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3848fd549268Smrg
3849fd549268Smrg  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3850fd549268Smrg
3851fd549268Smrg  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3852fd549268Smrg
3853fd549268Smrg  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3854fd549268Smrg
3855fd549268Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3856fd549268Smrg
3857fd549268Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3858fd549268Smrg
3859fd549268Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3860fd549268Smrg
3861fd549268Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3862fd549268Smrg
3863fd549268Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3864fd549268Smrg
3865fd549268Smrg  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3866fd549268Smrg
3867fd549268Smrg  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3868fd549268Smrg
3869fd549268Smrg  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3870fd549268Smrg
3871fd549268Smrg  if test $ac_cv_header_minix_config_h = yes
3872fd549268Smrgthen :
3873fd549268Smrg  MINIX=yes
3874fd549268Smrg    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3875fd549268Smrg
3876fd549268Smrg    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3877fd549268Smrg
3878fd549268Smrg    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3879fd549268Smrg
3880fd549268Smrgelse $as_nop
3881fd549268Smrg  MINIX=
3882fd549268Smrgfi
3883fd549268Smrg  if test $ac_cv_safe_to_define___extensions__ = yes
3884fd549268Smrgthen :
3885fd549268Smrg  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3886fd549268Smrg
3887fd549268Smrgfi
3888fd549268Smrg  if test $ac_cv_should_define__xopen_source = yes
3889fd549268Smrgthen :
3890fd549268Smrg  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3891fd549268Smrg
3892fd549268Smrgfi
3893fd549268Smrg
3894fd549268Smrg
3895fd549268Smrg# Initialize Automake
3896fd549268Smrgam__api_version='1.16'
3897fd549268Smrg
3898fd549268Smrg
3899fd549268Smrg  # Find a good install program.  We prefer a C program (faster),
3900fd549268Smrg# so one script is as good as another.  But avoid the broken or
3901fd549268Smrg# incompatible versions:
3902fd549268Smrg# SysV /etc/install, /usr/sbin/install
3903fd549268Smrg# SunOS /usr/etc/install
3904fd549268Smrg# IRIX /sbin/install
3905fd549268Smrg# AIX /bin/install
3906fd549268Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
3907fd549268Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3908fd549268Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3909fd549268Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3910fd549268Smrg# OS/2's system install, which has a completely different semantic
3911fd549268Smrg# ./install, which can be erroneously created by make from ./install.sh.
3912fd549268Smrg# Reject install programs that cannot install multiple files.
3913fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3914fd549268Smrgprintf %s "checking for a BSD-compatible install... " >&6; }
3915fd549268Smrgif test -z "$INSTALL"; then
3916fd549268Smrgif test ${ac_cv_path_install+y}
3917fd549268Smrgthen :
3918fd549268Smrg  printf %s "(cached) " >&6
3919fd549268Smrgelse $as_nop
3920fd549268Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921fd549268Smrgfor as_dir in $PATH
3922fd549268Smrgdo
3923fd549268Smrg  IFS=$as_save_IFS
3924fd549268Smrg  case $as_dir in #(((
3925fd549268Smrg    '') as_dir=./ ;;
3926fd549268Smrg    */) ;;
3927fd549268Smrg    *) as_dir=$as_dir/ ;;
3928fd549268Smrg  esac
3929fd549268Smrg    # Account for fact that we put trailing slashes in our PATH walk.
3930fd549268Smrgcase $as_dir in #((
3931fd549268Smrg  ./ | /[cC]/* | \
3932fd549268Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3933fd549268Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3934fd549268Smrg  /usr/ucb/* ) ;;
3935fd549268Smrg  *)
3936fd549268Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
3937fd549268Smrg    # Don't use installbsd from OSF since it installs stuff as root
3938fd549268Smrg    # by default.
3939fd549268Smrg    for ac_prog in ginstall scoinst install; do
3940fd549268Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
3941fd549268Smrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3942fd549268Smrg	  if test $ac_prog = install &&
3943fd549268Smrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3944fd549268Smrg	    # AIX install.  It has an incompatible calling convention.
3945fd549268Smrg	    :
3946fd549268Smrg	  elif test $ac_prog = install &&
3947fd549268Smrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3948fd549268Smrg	    # program-specific install script used by HP pwplus--don't use.
3949fd549268Smrg	    :
3950fd549268Smrg	  else
3951fd549268Smrg	    rm -rf conftest.one conftest.two conftest.dir
3952fd549268Smrg	    echo one > conftest.one
3953fd549268Smrg	    echo two > conftest.two
3954fd549268Smrg	    mkdir conftest.dir
3955fd549268Smrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3956fd549268Smrg	      test -s conftest.one && test -s conftest.two &&
3957fd549268Smrg	      test -s conftest.dir/conftest.one &&
3958fd549268Smrg	      test -s conftest.dir/conftest.two
3959fd549268Smrg	    then
3960fd549268Smrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3961fd549268Smrg	      break 3
3962fd549268Smrg	    fi
3963fd549268Smrg	  fi
3964fd549268Smrg	fi
3965fd549268Smrg      done
3966fd549268Smrg    done
3967fd549268Smrg    ;;
3968fd549268Smrgesac
3969fd549268Smrg
3970fd549268Smrg  done
3971fd549268SmrgIFS=$as_save_IFS
3972fd549268Smrg
3973fd549268Smrgrm -rf conftest.one conftest.two conftest.dir
3974fd549268Smrg
3975fd549268Smrgfi
3976fd549268Smrg  if test ${ac_cv_path_install+y}; then
3977fd549268Smrg    INSTALL=$ac_cv_path_install
3978fd549268Smrg  else
3979fd549268Smrg    # As a last resort, use the slow shell script.  Don't cache a
3980fd549268Smrg    # value for INSTALL within a source directory, because that will
3981fd549268Smrg    # break other packages using the cache if that directory is
3982fd549268Smrg    # removed, or if the value is a relative name.
3983fd549268Smrg    INSTALL=$ac_install_sh
3984fd549268Smrg  fi
3985fd549268Smrgfi
3986fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3987fd549268Smrgprintf "%s\n" "$INSTALL" >&6; }
3988fd549268Smrg
3989fd549268Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3990fd549268Smrg# It thinks the first close brace ends the variable substitution.
3991fd549268Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3992fd549268Smrg
3993fd549268Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3994fd549268Smrg
3995fd549268Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3996fd549268Smrg
3997fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3998fd549268Smrgprintf %s "checking whether build environment is sane... " >&6; }
3999fd549268Smrg# Reject unsafe characters in $srcdir or the absolute working directory
4000fd549268Smrg# name.  Accept space and tab only in the latter.
4001fd549268Smrgam_lf='
4002fd549268Smrg'
4003fd549268Smrgcase `pwd` in
4004fd549268Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
4005fd549268Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4006fd549268Smrgesac
4007fd549268Smrgcase $srcdir in
4008fd549268Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4009fd549268Smrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4010fd549268Smrgesac
4011fd549268Smrg
4012fd549268Smrg# Do 'set' in a subshell so we don't clobber the current shell's
4013fd549268Smrg# arguments.  Must try -L first in case configure is actually a
4014fd549268Smrg# symlink; some systems play weird games with the mod time of symlinks
4015fd549268Smrg# (eg FreeBSD returns the mod time of the symlink's containing
4016fd549268Smrg# directory).
4017fd549268Smrgif (
4018fd549268Smrg   am_has_slept=no
4019fd549268Smrg   for am_try in 1 2; do
4020fd549268Smrg     echo "timestamp, slept: $am_has_slept" > conftest.file
4021fd549268Smrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4022fd549268Smrg     if test "$*" = "X"; then
4023fd549268Smrg	# -L didn't work.
4024fd549268Smrg	set X `ls -t "$srcdir/configure" conftest.file`
4025fd549268Smrg     fi
4026fd549268Smrg     if test "$*" != "X $srcdir/configure conftest.file" \
4027fd549268Smrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
4028fd549268Smrg
4029fd549268Smrg	# If neither matched, then we have a broken ls.  This can happen
4030fd549268Smrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
4031fd549268Smrg	# broken ls alias from the environment.  This has actually
4032fd549268Smrg	# happened.  Such a system could not be considered "sane".
4033fd549268Smrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4034fd549268Smrg  alias in your environment" "$LINENO" 5
4035fd549268Smrg     fi
4036fd549268Smrg     if test "$2" = conftest.file || test $am_try -eq 2; then
4037fd549268Smrg       break
4038fd549268Smrg     fi
4039fd549268Smrg     # Just in case.
4040fd549268Smrg     sleep 1
4041fd549268Smrg     am_has_slept=yes
4042fd549268Smrg   done
4043fd549268Smrg   test "$2" = conftest.file
4044fd549268Smrg   )
4045fd549268Smrgthen
4046fd549268Smrg   # Ok.
4047fd549268Smrg   :
4048fd549268Smrgelse
4049fd549268Smrg   as_fn_error $? "newly created file is older than distributed files!
4050fd549268SmrgCheck your system clock" "$LINENO" 5
4051fd549268Smrgfi
4052fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4053fd549268Smrgprintf "%s\n" "yes" >&6; }
4054fd549268Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and
4055fd549268Smrg# generated files are strictly newer.
4056fd549268Smrgam_sleep_pid=
4057fd549268Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
4058fd549268Smrg  ( sleep 1 ) &
4059fd549268Smrg  am_sleep_pid=$!
4060fd549268Smrgfi
4061fd549268Smrg
4062fd549268Smrgrm -f conftest.file
4063fd549268Smrg
4064fd549268Smrgtest "$program_prefix" != NONE &&
4065fd549268Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4066fd549268Smrg# Use a double $ so make ignores it.
4067fd549268Smrgtest "$program_suffix" != NONE &&
4068fd549268Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4069fd549268Smrg# Double any \ or $.
4070fd549268Smrg# By default was `s,x,x', remove it if useless.
4071fd549268Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4072fd549268Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4073fd549268Smrg
4074fd549268Smrg
4075fd549268Smrg  if test x"${MISSING+set}" != xset; then
4076fd549268Smrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
4077fd549268Smrgfi
4078fd549268Smrg# Use eval to expand $SHELL
4079fd549268Smrgif eval "$MISSING --is-lightweight"; then
4080fd549268Smrg  am_missing_run="$MISSING "
4081fd549268Smrgelse
4082fd549268Smrg  am_missing_run=
4083fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4084fd549268Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4085fd549268Smrgfi
4086fd549268Smrg
4087fd549268Smrgif test x"${install_sh+set}" != xset; then
4088fd549268Smrg  case $am_aux_dir in
4089fd549268Smrg  *\ * | *\	*)
4090fd549268Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4091fd549268Smrg  *)
4092fd549268Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
4093fd549268Smrg  esac
4094fd549268Smrgfi
4095fd549268Smrg
4096fd549268Smrg# Installed binaries are usually stripped using 'strip' when the user
4097fd549268Smrg# run "make install-strip".  However 'strip' might not be the right
4098fd549268Smrg# tool to use in cross-compilation environments, therefore Automake
4099fd549268Smrg# will honor the 'STRIP' environment variable to overrule this program.
4100fd549268Smrgif test "$cross_compiling" != no; then
4101fd549268Smrg  if test -n "$ac_tool_prefix"; then
4102fd549268Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4103fd549268Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
4104fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105fd549268Smrgprintf %s "checking for $ac_word... " >&6; }
4106fd549268Smrgif test ${ac_cv_prog_STRIP+y}
4107fd549268Smrgthen :
4108fd549268Smrg  printf %s "(cached) " >&6
4109fd549268Smrgelse $as_nop
4110fd549268Smrg  if test -n "$STRIP"; then
4111fd549268Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4112fd549268Smrgelse
4113fd549268Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114fd549268Smrgfor as_dir in $PATH
4115fd549268Smrgdo
4116fd549268Smrg  IFS=$as_save_IFS
4117fd549268Smrg  case $as_dir in #(((
4118fd549268Smrg    '') as_dir=./ ;;
4119fd549268Smrg    */) ;;
4120fd549268Smrg    *) as_dir=$as_dir/ ;;
412121212451Smrg  esac
4122fd549268Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4123fd549268Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4124fd549268Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4125fd549268Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4126fd549268Smrg    break 2
4127fd549268Smrg  fi
412821212451Smrgdone
4129fd549268Smrg  done
4130fd549268SmrgIFS=$as_save_IFS
4131a73027baSmrg
41327c5adda3Smrgfi
41337c5adda3Smrgfi
4134fd549268SmrgSTRIP=$ac_cv_prog_STRIP
4135fd549268Smrgif test -n "$STRIP"; then
4136fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4137fd549268Smrgprintf "%s\n" "$STRIP" >&6; }
4138fd549268Smrgelse
4139fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140fd549268Smrgprintf "%s\n" "no" >&6; }
4141fd549268Smrgfi
414221212451Smrg
414321212451Smrg
4144fd549268Smrgfi
4145fd549268Smrgif test -z "$ac_cv_prog_STRIP"; then
4146fd549268Smrg  ac_ct_STRIP=$STRIP
4147fd549268Smrg  # Extract the first word of "strip", so it can be a program name with args.
4148fd549268Smrgset dummy strip; ac_word=$2
4149fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150fd549268Smrgprintf %s "checking for $ac_word... " >&6; }
4151fd549268Smrgif test ${ac_cv_prog_ac_ct_STRIP+y}
41527c5adda3Smrgthen :
4153fd549268Smrg  printf %s "(cached) " >&6
41547c5adda3Smrgelse $as_nop
4155fd549268Smrg  if test -n "$ac_ct_STRIP"; then
4156fd549268Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4157fd549268Smrgelse
4158fd549268Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159fd549268Smrgfor as_dir in $PATH
4160fd549268Smrgdo
4161fd549268Smrg  IFS=$as_save_IFS
4162fd549268Smrg  case $as_dir in #(((
4163fd549268Smrg    '') as_dir=./ ;;
4164fd549268Smrg    */) ;;
4165fd549268Smrg    *) as_dir=$as_dir/ ;;
4166fd549268Smrg  esac
4167fd549268Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4168fd549268Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4169fd549268Smrg    ac_cv_prog_ac_ct_STRIP="strip"
4170fd549268Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4171fd549268Smrg    break 2
4172fd549268Smrg  fi
4173fd549268Smrgdone
4174fd549268Smrg  done
4175fd549268SmrgIFS=$as_save_IFS
417621212451Smrg
417721212451Smrgfi
4178fd549268Smrgfi
4179fd549268Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4180fd549268Smrgif test -n "$ac_ct_STRIP"; then
4181fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4182fd549268Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
41837c5adda3Smrgelse
4184fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185fd549268Smrgprintf "%s\n" "no" >&6; }
41866f02d4e9Smrgfi
418721212451Smrg
4188fd549268Smrg  if test "x$ac_ct_STRIP" = x; then
4189fd549268Smrg    STRIP=":"
4190fd549268Smrg  else
4191fd549268Smrg    case $cross_compiling:$ac_tool_warned in
4192fd549268Smrgyes:)
4193fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4194fd549268Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4195fd549268Smrgac_tool_warned=yes ;;
4196fd549268Smrgesac
4197fd549268Smrg    STRIP=$ac_ct_STRIP
4198fd549268Smrg  fi
4199fd549268Smrgelse
4200fd549268Smrg  STRIP="$ac_cv_prog_STRIP"
4201fd549268Smrgfi
420221212451Smrg
4203fd549268Smrgfi
4204fd549268SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
420521212451Smrg
420621212451Smrg
4207fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4208fd549268Smrgprintf %s "checking for a race-free mkdir -p... " >&6; }
4209fd549268Smrgif test -z "$MKDIR_P"; then
4210fd549268Smrg  if test ${ac_cv_path_mkdir+y}
42117c5adda3Smrgthen :
4212fd549268Smrg  printf %s "(cached) " >&6
42137c5adda3Smrgelse $as_nop
4214fd549268Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215fd549268Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4216fd549268Smrgdo
4217fd549268Smrg  IFS=$as_save_IFS
4218fd549268Smrg  case $as_dir in #(((
4219fd549268Smrg    '') as_dir=./ ;;
4220fd549268Smrg    */) ;;
4221fd549268Smrg    *) as_dir=$as_dir/ ;;
4222fd549268Smrg  esac
4223fd549268Smrg    for ac_prog in mkdir gmkdir; do
4224fd549268Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
4225fd549268Smrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4226fd549268Smrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4227fd549268Smrg	     'mkdir ('*'coreutils) '* | \
4228fd549268Smrg	     'BusyBox '* | \
4229fd549268Smrg	     'mkdir (fileutils) '4.1*)
4230fd549268Smrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4231fd549268Smrg	       break 3;;
4232fd549268Smrg	   esac
4233fd549268Smrg	 done
4234fd549268Smrg       done
4235fd549268Smrg  done
4236fd549268SmrgIFS=$as_save_IFS
423721212451Smrg
42387c5adda3Smrgfi
4239fd549268Smrg
4240fd549268Smrg  test -d ./--version && rmdir ./--version
4241fd549268Smrg  if test ${ac_cv_path_mkdir+y}; then
4242fd549268Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
42437c5adda3Smrg  else
4244fd549268Smrg    # As a last resort, use the slow shell script.  Don't cache a
4245fd549268Smrg    # value for MKDIR_P within a source directory, because that will
4246fd549268Smrg    # break other packages using the cache if that directory is
4247fd549268Smrg    # removed, or if the value is a relative name.
4248fd549268Smrg    MKDIR_P="$ac_install_sh -d"
42497c5adda3Smrg  fi
425021212451Smrgfi
4251fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4252fd549268Smrgprintf "%s\n" "$MKDIR_P" >&6; }
4253fd549268Smrg
4254fd549268Smrgfor ac_prog in gawk mawk nawk awk
4255fd549268Smrgdo
4256fd549268Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
4257fd549268Smrgset dummy $ac_prog; ac_word=$2
4258fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259fd549268Smrgprintf %s "checking for $ac_word... " >&6; }
4260fd549268Smrgif test ${ac_cv_prog_AWK+y}
42617c5adda3Smrgthen :
42627c5adda3Smrg  printf %s "(cached) " >&6
42637c5adda3Smrgelse $as_nop
4264fd549268Smrg  if test -n "$AWK"; then
4265fd549268Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4266fd549268Smrgelse
4267fd549268Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268fd549268Smrgfor as_dir in $PATH
42697c5adda3Smrgdo
4270fd549268Smrg  IFS=$as_save_IFS
4271fd549268Smrg  case $as_dir in #(((
4272fd549268Smrg    '') as_dir=./ ;;
4273fd549268Smrg    */) ;;
4274fd549268Smrg    *) as_dir=$as_dir/ ;;
4275fd549268Smrg  esac
4276fd549268Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4277fd549268Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4278fd549268Smrg    ac_cv_prog_AWK="$ac_prog"
4279fd549268Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4280fd549268Smrg    break 2
4281fd549268Smrg  fi
428221212451Smrgdone
4283fd549268Smrg  done
4284fd549268SmrgIFS=$as_save_IFS
428521212451Smrg
42867c5adda3Smrgfi
42877c5adda3Smrgfi
4288fd549268SmrgAWK=$ac_cv_prog_AWK
4289fd549268Smrgif test -n "$AWK"; then
4290fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4291fd549268Smrgprintf "%s\n" "$AWK" >&6; }
4292fd549268Smrgelse
4293fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294fd549268Smrgprintf "%s\n" "no" >&6; }
42957c5adda3Smrgfi
4296fd549268Smrg
4297fd549268Smrg
4298fd549268Smrg  test -n "$AWK" && break
4299fd549268Smrgdone
4300fd549268Smrg
4301fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4302fd549268Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4303fd549268Smrgset x ${MAKE-make}
4304fd549268Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4305fd549268Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
43067c5adda3Smrgthen :
43077c5adda3Smrg  printf %s "(cached) " >&6
43087c5adda3Smrgelse $as_nop
4309fd549268Smrg  cat >conftest.make <<\_ACEOF
4310fd549268SmrgSHELL = /bin/sh
4311fd549268Smrgall:
4312fd549268Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
43137c5adda3Smrg_ACEOF
4314fd549268Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4315fd549268Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
4316fd549268Smrg  *@@@%%%=?*=@@@%%%*)
4317fd549268Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
4318fd549268Smrg  *)
4319fd549268Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
4320fd549268Smrgesac
4321fd549268Smrgrm -f conftest.make
432221212451Smrgfi
4323fd549268Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4324fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4325fd549268Smrgprintf "%s\n" "yes" >&6; }
4326fd549268Smrg  SET_MAKE=
4327fd549268Smrgelse
4328fd549268Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329fd549268Smrgprintf "%s\n" "no" >&6; }
4330fd549268Smrg  SET_MAKE="MAKE=${MAKE-make}"
433121212451Smrgfi
433221212451Smrg
4333fd549268Smrgrm -rf .tst 2>/dev/null
4334fd549268Smrgmkdir .tst 2>/dev/null
4335fd549268Smrgif test -d .tst; then
4336fd549268Smrg  am__leading_dot=.
4337fd549268Smrgelse
4338fd549268Smrg  am__leading_dot=_
4339fd549268Smrgfi
4340fd549268Smrgrmdir .tst 2>/dev/null
4341fd549268Smrg
4342fd549268SmrgDEPDIR="${am__leading_dot}deps"
4343fd549268Smrg
4344fd549268Smrgac_config_commands="$ac_config_commands depfiles"
4345fd549268Smrg
4346fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4347fd549268Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4348fd549268Smrgcat > confinc.mk << 'END'
4349fd549268Smrgam__doit:
4350fd549268Smrg	@echo this is the am__doit target >confinc.out
4351fd549268Smrg.PHONY: am__doit
4352fd549268SmrgEND
4353fd549268Smrgam__include="#"
4354fd549268Smrgam__quote=
4355fd549268Smrg# BSD make does it like this.
4356fd549268Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD
4357fd549268Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4358fd549268Smrgecho 'include confinc.mk # ignored' > confmf.GNU
4359fd549268Smrg_am_result=no
4360fd549268Smrgfor s in GNU BSD; do
4361fd549268Smrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4362fd549268Smrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4363fd549268Smrg   ac_status=$?
4364fd549268Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365fd549268Smrg   (exit $ac_status); }
4366fd549268Smrg  case $?:`cat confinc.out 2>/dev/null` in #(
4367fd549268Smrg  '0:this is the am__doit target') :
4368fd549268Smrg    case $s in #(
4369fd549268Smrg  BSD) :
4370fd549268Smrg    am__include='.include' am__quote='"' ;; #(
4371fd549268Smrg  *) :
4372fd549268Smrg    am__include='include' am__quote='' ;;
4373fd549268Smrgesac ;; #(
4374fd549268Smrg  *) :
4375fd549268Smrg     ;;
4376fd549268Smrgesac
4377fd549268Smrg  if test "$am__include" != "#"; then
4378fd549268Smrg    _am_result="yes ($s style)"
4379fd549268Smrg    break
4380fd549268Smrg  fi
4381fd549268Smrgdone
4382fd549268Smrgrm -f confinc.* confmf.*
4383fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4384fd549268Smrgprintf "%s\n" "${_am_result}" >&6; }
4385fd549268Smrg
4386fd549268Smrg# Check whether --enable-dependency-tracking was given.
4387fd549268Smrgif test ${enable_dependency_tracking+y}
43887c5adda3Smrgthen :
4389fd549268Smrg  enableval=$enable_dependency_tracking;
43907c5adda3Smrgfi
4391fd549268Smrg
4392fd549268Smrgif test "x$enable_dependency_tracking" != xno; then
4393fd549268Smrg  am_depcomp="$ac_aux_dir/depcomp"
4394fd549268Smrg  AMDEPBACKSLASH='\'
4395fd549268Smrg  am__nodep='_no'
43967c5adda3Smrgfi
4397fd549268Smrg if test "x$enable_dependency_tracking" != xno; then
4398fd549268Smrg  AMDEP_TRUE=
4399fd549268Smrg  AMDEP_FALSE='#'
4400fd549268Smrgelse
4401fd549268Smrg  AMDEP_TRUE='#'
4402fd549268Smrg  AMDEP_FALSE=
44037c5adda3Smrgfi
4404fd549268Smrg
4405fd549268Smrg
4406fd549268Smrg# Check whether --enable-silent-rules was given.
4407fd549268Smrgif test ${enable_silent_rules+y}
44087c5adda3Smrgthen :
4409fd549268Smrg  enableval=$enable_silent_rules;
441021212451Smrgfi
441121212451Smrg
4412fd549268Smrgcase $enable_silent_rules in # (((
4413fd549268Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
4414fd549268Smrg   no) AM_DEFAULT_VERBOSITY=1;;
4415fd549268Smrg    *) AM_DEFAULT_VERBOSITY=1;;
4416fd549268Smrgesac
4417fd549268Smrgam_make=${MAKE-make}
4418fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4419fd549268Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
4420fd549268Smrgif test ${am_cv_make_support_nested_variables+y}
44217c5adda3Smrgthen :
4422fd549268Smrg  printf %s "(cached) " >&6
44237c5adda3Smrgelse $as_nop
4424fd549268Smrg  if printf "%s\n" 'TRUE=$(BAR$(V))
4425fd549268SmrgBAR0=false
4426fd549268SmrgBAR1=true
4427fd549268SmrgV=1
4428fd549268Smrgam__doit:
4429fd549268Smrg	@$(TRUE)
4430fd549268Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4431fd549268Smrg  am_cv_make_support_nested_variables=yes
4432fd549268Smrgelse
4433fd549268Smrg  am_cv_make_support_nested_variables=no
44347c5adda3Smrgfi
443521212451Smrgfi
4436fd549268Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4437fd549268Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4438fd549268Smrgif test $am_cv_make_support_nested_variables = yes; then
4439fd549268Smrg    AM_V='$(V)'
4440fd549268Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4441fd549268Smrgelse
4442fd549268Smrg  AM_V=$AM_DEFAULT_VERBOSITY
4443fd549268Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
44447c5adda3Smrgfi
4445fd549268SmrgAM_BACKSLASH='\'
44467c5adda3Smrg
4447fd549268Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
4448fd549268Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4449fd549268Smrg  # is not polluted with repeated "-I."
4450fd549268Smrg  am__isrc=' -I$(srcdir)'
4451fd549268Smrg  # test to see if srcdir already configured
4452fd549268Smrg  if test -f $srcdir/config.status; then
4453fd549268Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4454fd549268Smrg  fi
4455fd549268Smrgfi
445621212451Smrg
4457fd549268Smrg# test whether we have cygpath
4458fd549268Smrgif test -z "$CYGPATH_W"; then
4459fd549268Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
4460fd549268Smrg    CYGPATH_W='cygpath -w'
4461fd549268Smrg  else
4462fd549268Smrg    CYGPATH_W=echo
4463fd549268Smrg  fi
4464fd549268Smrgfi
4465fd549268Smrg
4466fd549268Smrg
4467fd549268Smrg# Define the identity of the package.
4468fd549268Smrg PACKAGE='xinit'
4469fd549268Smrg VERSION='1.4.3'
4470fd549268Smrg
4471fd549268Smrg
4472fd549268Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4473fd549268Smrg
4474fd549268Smrg
4475fd549268Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4476fd549268Smrg
4477fd549268Smrg# Some tools Automake needs.
4478fd549268Smrg
4479fd549268SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4480fd549268Smrg
4481fd549268Smrg
4482fd549268SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4483fd549268Smrg
4484fd549268Smrg
4485fd549268SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4486fd549268Smrg
4487fd549268Smrg
4488fd549268SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4489fd549268Smrg
4490fd549268Smrg
4491fd549268SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4492fd549268Smrg
4493fd549268Smrg# For better backward compatibility.  To be removed once Automake 1.9.x
4494fd549268Smrg# dies out for good.  For more background, see:
4495fd549268Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4496fd549268Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4497fd549268Smrgmkdir_p='$(MKDIR_P)'
4498fd549268Smrg
4499fd549268Smrg# We need awk for the "check" target (and possibly the TAP driver).  The
4500fd549268Smrg# system "awk" is bad on some platforms.
4501fd549268Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
4502fd549268Smrg# in the wild :-(  We should find a proper way to deprecate it ...
4503fd549268SmrgAMTAR='$${TAR-tar}'
4504fd549268Smrg
4505fd549268Smrg
4506fd549268Smrg# We'll loop over all known methods to create a tar archive until one works.
4507fd549268Smrg_am_tools='gnutar  pax cpio none'
4508fd549268Smrg
4509fd549268Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
451021212451Smrg
451121212451Smrg
451221212451Smrg
451321212451Smrg
451421212451Smrg
45157c5adda3Smrgdepcc="$CC"   am_compiler_list=
45166f02d4e9Smrg
45177c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
45187c5adda3Smrgprintf %s "checking dependency style of $depcc... " >&6; }
45197c5adda3Smrgif test ${am_cv_CC_dependencies_compiler_type+y}
45207c5adda3Smrgthen :
45217c5adda3Smrg  printf %s "(cached) " >&6
45227c5adda3Smrgelse $as_nop
45237c5adda3Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
45247c5adda3Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
45257c5adda3Smrg  # making bogus files that we don't know about and never remove.  For
45267c5adda3Smrg  # instance it was reported that on HP-UX the gcc test will end up
45277c5adda3Smrg  # making a dummy file named 'D' -- because '-MD' means "put the output
45287c5adda3Smrg  # in D".
45297c5adda3Smrg  rm -rf conftest.dir
45307c5adda3Smrg  mkdir conftest.dir
45317c5adda3Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
45327c5adda3Smrg  # using a relative directory.
45337c5adda3Smrg  cp "$am_depcomp" conftest.dir
45347c5adda3Smrg  cd conftest.dir
45357c5adda3Smrg  # We will build objects and dependencies in a subdirectory because
45367c5adda3Smrg  # it helps to detect inapplicable dependency modes.  For instance
45377c5adda3Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
45387c5adda3Smrg  # side effect of compilation, but ICC will put the dependencies in
45397c5adda3Smrg  # the current directory while Tru64 will put them in the object
45407c5adda3Smrg  # directory.
45417c5adda3Smrg  mkdir sub
454221212451Smrg
45437c5adda3Smrg  am_cv_CC_dependencies_compiler_type=none
45447c5adda3Smrg  if test "$am_compiler_list" = ""; then
45457c5adda3Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
45467c5adda3Smrg  fi
45477c5adda3Smrg  am__universal=false
45487c5adda3Smrg  case " $depcc " in #(
45497c5adda3Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
45507c5adda3Smrg     esac
455121212451Smrg
45527c5adda3Smrg  for depmode in $am_compiler_list; do
45537c5adda3Smrg    # Setup a source with many dependencies, because some compilers
45547c5adda3Smrg    # like to wrap large dependency lists on column 80 (with \), and
45557c5adda3Smrg    # we should not choose a depcomp mode which is confused by this.
45567c5adda3Smrg    #
45577c5adda3Smrg    # We need to recreate these files for each test, as the compiler may
45587c5adda3Smrg    # overwrite some of them when testing with obscure command lines.
45597c5adda3Smrg    # This happens at least with the AIX C compiler.
45607c5adda3Smrg    : > sub/conftest.c
45617c5adda3Smrg    for i in 1 2 3 4 5 6; do
45627c5adda3Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
45637c5adda3Smrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
45647c5adda3Smrg      # Solaris 10 /bin/sh.
45657c5adda3Smrg      echo '/* dummy */' > sub/conftst$i.h
45667c5adda3Smrg    done
45677c5adda3Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
456821212451Smrg
45697c5adda3Smrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
45707c5adda3Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
45717c5adda3Smrg    # handle '-M -o', and we need to detect this.  Also, some Intel
45727c5adda3Smrg    # versions had trouble with output in subdirs.
45737c5adda3Smrg    am__obj=sub/conftest.${OBJEXT-o}
45747c5adda3Smrg    am__minus_obj="-o $am__obj"
45757c5adda3Smrg    case $depmode in
45767c5adda3Smrg    gcc)
45777c5adda3Smrg      # This depmode causes a compiler race in universal mode.
45787c5adda3Smrg      test "$am__universal" = false || continue
45797c5adda3Smrg      ;;
45807c5adda3Smrg    nosideeffect)
45817c5adda3Smrg      # After this tag, mechanisms are not by side-effect, so they'll
45827c5adda3Smrg      # only be used when explicitly requested.
45837c5adda3Smrg      if test "x$enable_dependency_tracking" = xyes; then
45847c5adda3Smrg	continue
45857c5adda3Smrg      else
45867c5adda3Smrg	break
45877c5adda3Smrg      fi
45887c5adda3Smrg      ;;
45897c5adda3Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
45907c5adda3Smrg      # This compiler won't grok '-c -o', but also, the minuso test has
45917c5adda3Smrg      # not run yet.  These depmodes are late enough in the game, and
45927c5adda3Smrg      # so weak that their functioning should not be impacted.
45937c5adda3Smrg      am__obj=conftest.${OBJEXT-o}
45947c5adda3Smrg      am__minus_obj=
45957c5adda3Smrg      ;;
45967c5adda3Smrg    none) break ;;
45977c5adda3Smrg    esac
45987c5adda3Smrg    if depmode=$depmode \
45997c5adda3Smrg       source=sub/conftest.c object=$am__obj \
46007c5adda3Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
46017c5adda3Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
46027c5adda3Smrg         >/dev/null 2>conftest.err &&
46037c5adda3Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
46047c5adda3Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
46057c5adda3Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
46067c5adda3Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
46077c5adda3Smrg      # icc doesn't choke on unknown options, it will just issue warnings
46087c5adda3Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
46097c5adda3Smrg      # that says an option was ignored or not supported.
46107c5adda3Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
46117c5adda3Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
46127c5adda3Smrg      # The diagnosis changed in icc 8.0:
46137c5adda3Smrg      #   icc: Command line remark: option '-MP' not supported
46147c5adda3Smrg      if (grep 'ignoring option' conftest.err ||
46157c5adda3Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
46167c5adda3Smrg        am_cv_CC_dependencies_compiler_type=$depmode
46177c5adda3Smrg        break
46187c5adda3Smrg      fi
46197c5adda3Smrg    fi
46207c5adda3Smrg  done
46216f02d4e9Smrg
46227c5adda3Smrg  cd ..
46237c5adda3Smrg  rm -rf conftest.dir
462421212451Smrgelse
46257c5adda3Smrg  am_cv_CC_dependencies_compiler_type=none
462621212451Smrgfi
462721212451Smrg
462821212451Smrgfi
46297c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
46307c5adda3Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
46317c5adda3SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
463221212451Smrg
46337c5adda3Smrg if
46347c5adda3Smrg  test "x$enable_dependency_tracking" != xno \
46357c5adda3Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
46367c5adda3Smrg  am__fastdepCC_TRUE=
46377c5adda3Smrg  am__fastdepCC_FALSE='#'
463821212451Smrgelse
46397c5adda3Smrg  am__fastdepCC_TRUE='#'
46407c5adda3Smrg  am__fastdepCC_FALSE=
46417c5adda3Smrgfi
46427c5adda3Smrg
46437c5adda3Smrg
46447c5adda3Smrg
4645fd549268Smrg# POSIX will say in a future version that running "rm -f" with no argument
4646fd549268Smrg# is OK; and we want to be able to make that assumption in our Makefile
4647fd549268Smrg# recipes.  So use an aggressive probe to check that the usage we want is
4648fd549268Smrg# actually supported "in the wild" to an acceptable degree.
4649fd549268Smrg# See automake bug#10828.
4650fd549268Smrg# To make any issue more visible, cause the running configure to be aborted
4651fd549268Smrg# by default if the 'rm' program in use doesn't match our expectations; the
4652fd549268Smrg# user can still override this though.
4653fd549268Smrgif rm -f && rm -fr && rm -rf; then : OK; else
4654fd549268Smrg  cat >&2 <<'END'
4655fd549268SmrgOops!
4656fd549268Smrg
4657fd549268SmrgYour 'rm' program seems unable to run without file operands specified
4658fd549268Smrgon the command line, even when the '-f' option is present.  This is contrary
4659fd549268Smrgto the behaviour of most rm programs out there, and not conforming with
4660fd549268Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4661fd549268Smrg
4662fd549268SmrgPlease tell bug-automake@gnu.org about your system, including the value
4663fd549268Smrgof your $PATH and any error possibly output before this message.  This
4664fd549268Smrgcan help us improve future automake versions.
4665fd549268Smrg
4666fd549268SmrgEND
4667fd549268Smrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4668fd549268Smrg    echo 'Configuration will proceed anyway, since you have set the' >&2
4669fd549268Smrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4670fd549268Smrg    echo >&2
4671fd549268Smrg  else
4672fd549268Smrg    cat >&2 <<'END'
4673fd549268SmrgAborting the configuration process, to ensure you take notice of the issue.
4674fd549268Smrg
4675fd549268SmrgYou can download and install GNU coreutils to get an 'rm' implementation
4676fd549268Smrgthat behaves properly: <https://www.gnu.org/software/coreutils/>.
4677fd549268Smrg
4678fd549268SmrgIf you want to complete the configuration process using your problematic
4679fd549268Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4680fd549268Smrgto "yes", and re-run configure.
4681fd549268Smrg
4682fd549268SmrgEND
4683fd549268Smrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4684fd549268Smrg  fi
4685fd549268Smrgfi
4686fd549268Smrg
4687fd549268Smrg
4688fd549268Smrg# Require X.Org macros 1.19 or later for TRADITIONALCPPFLAGS
4689fd549268Smrg
4690fd549268Smrg
4691fd549268Smrg
4692fd549268Smrg
4693fd549268Smrg
4694fd549268Smrg
4695fd549268Smrg
4696fd549268Smrg
4697fd549268Smrg
4698fd549268Smrg
46997c5adda3Smrg
47007c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
47017c5adda3Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
47027c5adda3Smrgif test ${ac_cv_c_undeclared_builtin_options+y}
47037c5adda3Smrgthen :
47047c5adda3Smrg  printf %s "(cached) " >&6
47057c5adda3Smrgelse $as_nop
47067c5adda3Smrg  ac_save_CFLAGS=$CFLAGS
47077c5adda3Smrg   ac_cv_c_undeclared_builtin_options='cannot detect'
47087c5adda3Smrg   for ac_arg in '' -fno-builtin; do
47097c5adda3Smrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
47107c5adda3Smrg     # This test program should *not* compile successfully.
47117c5adda3Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
471221212451Smrg/* end confdefs.h.  */
471321212451Smrg
471421212451Smrgint
47157c5adda3Smrgmain (void)
471621212451Smrg{
47177c5adda3Smrg(void) strchr;
47187c5adda3Smrg  ;
471921212451Smrg  return 0;
472021212451Smrg}
472121212451Smrg_ACEOF
47227c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
47237c5adda3Smrgthen :
472421212451Smrg
47257c5adda3Smrgelse $as_nop
47267c5adda3Smrg  # This test program should compile successfully.
47277c5adda3Smrg        # No library function is consistently available on
47287c5adda3Smrg        # freestanding implementations, so test against a dummy
47297c5adda3Smrg        # declaration.  Include always-available headers on the
47307c5adda3Smrg        # off chance that they somehow elicit warnings.
47317c5adda3Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47327c5adda3Smrg/* end confdefs.h.  */
47337c5adda3Smrg#include <float.h>
47347c5adda3Smrg#include <limits.h>
47357c5adda3Smrg#include <stdarg.h>
47367c5adda3Smrg#include <stddef.h>
47377c5adda3Smrgextern void ac_decl (int, char *);
47387c5adda3Smrg
47397c5adda3Smrgint
47407c5adda3Smrgmain (void)
47417c5adda3Smrg{
47427c5adda3Smrg(void) ac_decl (0, (char *) 0);
47437c5adda3Smrg  (void) ac_decl;
474421212451Smrg
47457c5adda3Smrg  ;
47467c5adda3Smrg  return 0;
47477c5adda3Smrg}
47487c5adda3Smrg_ACEOF
47497c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
47507c5adda3Smrgthen :
47517c5adda3Smrg  if test x"$ac_arg" = x
47527c5adda3Smrgthen :
47537c5adda3Smrg  ac_cv_c_undeclared_builtin_options='none needed'
47547c5adda3Smrgelse $as_nop
47557c5adda3Smrg  ac_cv_c_undeclared_builtin_options=$ac_arg
475621212451Smrgfi
47577c5adda3Smrg          break
475821212451Smrgfi
47597c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
47607c5adda3Smrgfi
47617c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
47627c5adda3Smrg    done
47637c5adda3Smrg    CFLAGS=$ac_save_CFLAGS
47647c5adda3Smrg
47657c5adda3Smrgfi
47667c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
47677c5adda3Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
47687c5adda3Smrg  case $ac_cv_c_undeclared_builtin_options in #(
47697c5adda3Smrg  'cannot detect') :
47707c5adda3Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47717c5adda3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
47727c5adda3Smrgas_fn_error $? "cannot make $CC report undeclared builtins
47737c5adda3SmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #(
47747c5adda3Smrg  'none needed') :
47757c5adda3Smrg    ac_c_undeclared_builtin_options='' ;; #(
47767c5adda3Smrg  *) :
47777c5adda3Smrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
47787c5adda3Smrgesac
47797c5adda3Smrg
478021212451Smrg
478121212451Smrg
478221212451Smrg
47837c5adda3Smrg
47847c5adda3Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
47857c5adda3Smrgif test "x$ac_cv_have_decl___clang__" = xyes
47867c5adda3Smrgthen :
478721212451Smrg  CLANGCC="yes"
47887c5adda3Smrgelse $as_nop
478921212451Smrg  CLANGCC="no"
479021212451Smrgfi
47917c5adda3Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
47927c5adda3Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
47937c5adda3Smrgthen :
479421212451Smrg  INTELCC="yes"
47957c5adda3Smrgelse $as_nop
479621212451Smrg  INTELCC="no"
479721212451Smrgfi
47987c5adda3Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
47997c5adda3Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
48007c5adda3Smrgthen :
480121212451Smrg  SUNCC="yes"
48027c5adda3Smrgelse $as_nop
480321212451Smrg  SUNCC="no"
480421212451Smrgfi
480521212451Smrg
480621212451Smrg
480721212451Smrg
480821212451Smrg
48097253c0c7Smrg
48107253c0c7Smrg
48117253c0c7Smrg
48127253c0c7Smrg
481321212451Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
481421212451Smrg	if test -n "$ac_tool_prefix"; then
481521212451Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
481621212451Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
48177c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48187c5adda3Smrgprintf %s "checking for $ac_word... " >&6; }
48197c5adda3Smrgif test ${ac_cv_path_PKG_CONFIG+y}
48207c5adda3Smrgthen :
48217c5adda3Smrg  printf %s "(cached) " >&6
48227c5adda3Smrgelse $as_nop
482321212451Smrg  case $PKG_CONFIG in
482421212451Smrg  [\\/]* | ?:[\\/]*)
482521212451Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
482621212451Smrg  ;;
482721212451Smrg  *)
482821212451Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
482921212451Smrgfor as_dir in $PATH
483021212451Smrgdo
483121212451Smrg  IFS=$as_save_IFS
48327c5adda3Smrg  case $as_dir in #(((
48337c5adda3Smrg    '') as_dir=./ ;;
48347c5adda3Smrg    */) ;;
48357c5adda3Smrg    *) as_dir=$as_dir/ ;;
48367c5adda3Smrg  esac
48376f02d4e9Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
48387c5adda3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
48397c5adda3Smrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
48407c5adda3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
484121212451Smrg    break 2
484221212451Smrg  fi
484321212451Smrgdone
48446f02d4e9Smrg  done
484521212451SmrgIFS=$as_save_IFS
484621212451Smrg
484721212451Smrg  ;;
484821212451Smrgesac
484921212451Smrgfi
485021212451SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
485121212451Smrgif test -n "$PKG_CONFIG"; then
48527c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
48537c5adda3Smrgprintf "%s\n" "$PKG_CONFIG" >&6; }
485421212451Smrgelse
48557c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
48567c5adda3Smrgprintf "%s\n" "no" >&6; }
485721212451Smrgfi
485821212451Smrg
485921212451Smrg
486021212451Smrgfi
486121212451Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
486221212451Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
486321212451Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
486421212451Smrgset dummy pkg-config; ac_word=$2
48657c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48667c5adda3Smrgprintf %s "checking for $ac_word... " >&6; }
48677c5adda3Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
48687c5adda3Smrgthen :
48697c5adda3Smrg  printf %s "(cached) " >&6
48707c5adda3Smrgelse $as_nop
487121212451Smrg  case $ac_pt_PKG_CONFIG in
487221212451Smrg  [\\/]* | ?:[\\/]*)
487321212451Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
487421212451Smrg  ;;
487521212451Smrg  *)
487621212451Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
487721212451Smrgfor as_dir in $PATH
487821212451Smrgdo
487921212451Smrg  IFS=$as_save_IFS
48807c5adda3Smrg  case $as_dir in #(((
48817c5adda3Smrg    '') as_dir=./ ;;
48827c5adda3Smrg    */) ;;
48837c5adda3Smrg    *) as_dir=$as_dir/ ;;
48847c5adda3Smrg  esac
48856f02d4e9Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
48867c5adda3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
48877c5adda3Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
48887c5adda3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
488921212451Smrg    break 2
489021212451Smrg  fi
489121212451Smrgdone
48926f02d4e9Smrg  done
489321212451SmrgIFS=$as_save_IFS
489421212451Smrg
489521212451Smrg  ;;
489621212451Smrgesac
489721212451Smrgfi
489821212451Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
489921212451Smrgif test -n "$ac_pt_PKG_CONFIG"; then
49007c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
49017c5adda3Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
490221212451Smrgelse
49037c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
49047c5adda3Smrgprintf "%s\n" "no" >&6; }
490521212451Smrgfi
490621212451Smrg
490721212451Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
490821212451Smrg    PKG_CONFIG=""
490921212451Smrg  else
491021212451Smrg    case $cross_compiling:$ac_tool_warned in
491121212451Smrgyes:)
49127c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
49137c5adda3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
491421212451Smrgac_tool_warned=yes ;;
491521212451Smrgesac
491621212451Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
491721212451Smrg  fi
491821212451Smrgelse
491921212451Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
492021212451Smrgfi
492121212451Smrg
492221212451Smrgfi
492321212451Smrgif test -n "$PKG_CONFIG"; then
492421212451Smrg	_pkg_min_version=0.9.0
49257c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
49267c5adda3Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
492721212451Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
49287c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49297c5adda3Smrgprintf "%s\n" "yes" >&6; }
493021212451Smrg	else
49317c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
49327c5adda3Smrgprintf "%s\n" "no" >&6; }
493321212451Smrg		PKG_CONFIG=""
493421212451Smrg	fi
493521212451Smrgfi
493621212451Smrg
49377c5adda3Smrg
49387c5adda3Smrg  # Make sure we can run config.sub.
49397c5adda3Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
49407c5adda3Smrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
49417c5adda3Smrg
49427c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
49437c5adda3Smrgprintf %s "checking build system type... " >&6; }
49447c5adda3Smrgif test ${ac_cv_build+y}
49457c5adda3Smrgthen :
49467c5adda3Smrg  printf %s "(cached) " >&6
49477c5adda3Smrgelse $as_nop
494821212451Smrg  ac_build_alias=$build_alias
494921212451Smrgtest "x$ac_build_alias" = x &&
49507c5adda3Smrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
495121212451Smrgtest "x$ac_build_alias" = x &&
49526f02d4e9Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
49537c5adda3Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
49547c5adda3Smrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
495521212451Smrg
495621212451Smrgfi
49577c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
49587c5adda3Smrgprintf "%s\n" "$ac_cv_build" >&6; }
495921212451Smrgcase $ac_cv_build in
496021212451Smrg*-*-*) ;;
49616f02d4e9Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
496221212451Smrgesac
496321212451Smrgbuild=$ac_cv_build
496421212451Smrgac_save_IFS=$IFS; IFS='-'
496521212451Smrgset x $ac_cv_build
496621212451Smrgshift
496721212451Smrgbuild_cpu=$1
496821212451Smrgbuild_vendor=$2
496921212451Smrgshift; shift
497021212451Smrg# Remember, the first character of IFS is used to create $*,
497121212451Smrg# except with old shells:
497221212451Smrgbuild_os=$*
497321212451SmrgIFS=$ac_save_IFS
497421212451Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
497521212451Smrg
497621212451Smrg
49777c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
49787c5adda3Smrgprintf %s "checking host system type... " >&6; }
49797c5adda3Smrgif test ${ac_cv_host+y}
49807c5adda3Smrgthen :
49817c5adda3Smrg  printf %s "(cached) " >&6
49827c5adda3Smrgelse $as_nop
498321212451Smrg  if test "x$host_alias" = x; then
498421212451Smrg  ac_cv_host=$ac_cv_build
498521212451Smrgelse
49867c5adda3Smrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
49877c5adda3Smrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
498821212451Smrgfi
498921212451Smrg
499021212451Smrgfi
49917c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
49927c5adda3Smrgprintf "%s\n" "$ac_cv_host" >&6; }
499321212451Smrgcase $ac_cv_host in
499421212451Smrg*-*-*) ;;
49956f02d4e9Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
499621212451Smrgesac
499721212451Smrghost=$ac_cv_host
499821212451Smrgac_save_IFS=$IFS; IFS='-'
499921212451Smrgset x $ac_cv_host
500021212451Smrgshift
500121212451Smrghost_cpu=$1
500221212451Smrghost_vendor=$2
500321212451Smrgshift; shift
500421212451Smrg# Remember, the first character of IFS is used to create $*,
500521212451Smrg# except with old shells:
500621212451Smrghost_os=$*
500721212451SmrgIFS=$ac_save_IFS
500821212451Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
500921212451Smrg
501021212451Smrg
50117c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
50127c5adda3Smrgprintf %s "checking for a sed that does not truncate output... " >&6; }
50137c5adda3Smrgif test ${ac_cv_path_SED+y}
50147c5adda3Smrgthen :
50157c5adda3Smrg  printf %s "(cached) " >&6
50167c5adda3Smrgelse $as_nop
501721212451Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
501821212451Smrg     for ac_i in 1 2 3 4 5 6 7; do
501921212451Smrg       ac_script="$ac_script$as_nl$ac_script"
502021212451Smrg     done
50216f02d4e9Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
50226f02d4e9Smrg     { ac_script=; unset ac_script;}
50236f02d4e9Smrg     if test -z "$SED"; then
502421212451Smrg  ac_path_SED_found=false
50256f02d4e9Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
50266f02d4e9Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
502721212451Smrgfor as_dir in $PATH
502821212451Smrgdo
502921212451Smrg  IFS=$as_save_IFS
50307c5adda3Smrg  case $as_dir in #(((
50317c5adda3Smrg    '') as_dir=./ ;;
50327c5adda3Smrg    */) ;;
50337c5adda3Smrg    *) as_dir=$as_dir/ ;;
50347c5adda3Smrg  esac
50357c5adda3Smrg    for ac_prog in sed gsed
50367c5adda3Smrg   do
50376f02d4e9Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
50387c5adda3Smrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
50397253c0c7Smrg      as_fn_executable_p "$ac_path_SED" || continue
50406f02d4e9Smrg# Check for GNU ac_path_SED and select it if it is found.
504121212451Smrg  # Check for GNU $ac_path_SED
504221212451Smrgcase `"$ac_path_SED" --version 2>&1` in
504321212451Smrg*GNU*)
504421212451Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
504521212451Smrg*)
504621212451Smrg  ac_count=0
50477c5adda3Smrg  printf %s 0123456789 >"conftest.in"
504821212451Smrg  while :
504921212451Smrg  do
505021212451Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
505121212451Smrg    mv "conftest.tmp" "conftest.in"
505221212451Smrg    cp "conftest.in" "conftest.nl"
50537c5adda3Smrg    printf "%s\n" '' >> "conftest.nl"
505421212451Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
505521212451Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
50566f02d4e9Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
505721212451Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
505821212451Smrg      # Best one so far, save it but keep looking for a better one
505921212451Smrg      ac_cv_path_SED="$ac_path_SED"
506021212451Smrg      ac_path_SED_max=$ac_count
506121212451Smrg    fi
506221212451Smrg    # 10*(2^10) chars as input seems more than enough
506321212451Smrg    test $ac_count -gt 10 && break
506421212451Smrg  done
506521212451Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
506621212451Smrgesac
506721212451Smrg
50686f02d4e9Smrg      $ac_path_SED_found && break 3
50696f02d4e9Smrg    done
50706f02d4e9Smrg  done
507121212451Smrg  done
507221212451SmrgIFS=$as_save_IFS
50736f02d4e9Smrg  if test -z "$ac_cv_path_SED"; then
50746f02d4e9Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
50756f02d4e9Smrg  fi
507621212451Smrgelse
507721212451Smrg  ac_cv_path_SED=$SED
507821212451Smrgfi
507921212451Smrg
508021212451Smrgfi
50817c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
50827c5adda3Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
508321212451Smrg SED="$ac_cv_path_SED"
508421212451Smrg  rm -f conftest.sed
508521212451Smrg
508621212451Smrg
508721212451Smrg
508821212451Smrg
508921212451Smrg
509021212451Smrg
509121212451Smrg# Check whether --enable-selective-werror was given.
50927c5adda3Smrgif test ${enable_selective_werror+y}
50937c5adda3Smrgthen :
509421212451Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
50957c5adda3Smrgelse $as_nop
509621212451Smrg  SELECTIVE_WERROR=yes
509721212451Smrgfi
509821212451Smrg
509921212451Smrg
51006f02d4e9Smrg
51016f02d4e9Smrg
51026f02d4e9Smrg
510321212451Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
510421212451Smrgif test "x$SUNCC" = "xyes"; then
510521212451Smrg    BASE_CFLAGS="-v"
510621212451Smrgelse
510721212451Smrg    BASE_CFLAGS=""
510821212451Smrgfi
510921212451Smrg
511021212451Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
511121212451Smrg
511221212451Smrg
511321212451Smrg
511421212451Smrg
511521212451Smrg
51166f02d4e9Smrg
51176f02d4e9Smrg
51186f02d4e9Smrg
51196f02d4e9Smrg
51206f02d4e9Smrg
51216f02d4e9Smrg
51226f02d4e9Smrg
51236f02d4e9Smrg
512421212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
512521212451Smrg
51266f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
512721212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51287c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
51297c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
51307c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
51317c5adda3Smrgthen :
51327c5adda3Smrg  printf %s "(cached) " >&6
51337c5adda3Smrgelse $as_nop
51346f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
513521212451Smrg/* end confdefs.h.  */
513621212451Smrgint i;
513721212451Smrg_ACEOF
51387c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
51397c5adda3Smrgthen :
51406f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
51417c5adda3Smrgelse $as_nop
51426f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
514321212451Smrgfi
51447c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
51456f02d4e9Smrgfi
51467c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
51477c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
51486f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
514921212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
515021212451Smrgfi
515121212451Smrg
51526f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
51536f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
515421212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
515521212451Smrg	fi
515621212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
51577c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
51587c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
51597c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
51607c5adda3Smrgthen :
51617c5adda3Smrg  printf %s "(cached) " >&6
51627c5adda3Smrgelse $as_nop
51636f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
516421212451Smrg/* end confdefs.h.  */
516521212451Smrgint i;
516621212451Smrg_ACEOF
51677c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
51687c5adda3Smrgthen :
51696f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
51707c5adda3Smrgelse $as_nop
51716f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
517221212451Smrgfi
51737c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
51746f02d4e9Smrgfi
51757c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
51767c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
51776f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
517821212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
517921212451Smrgfi
518021212451Smrg
518121212451Smrgfound="no"
518221212451Smrg
518321212451Smrg	if test $found = "no" ; then
51846f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
518521212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
518621212451Smrg		fi
518721212451Smrg
51886f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
518921212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
519021212451Smrg		fi
519121212451Smrg
519221212451Smrg		CFLAGS="$CFLAGS -Wall"
519321212451Smrg
51947c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
51957c5adda3Smrgprintf %s "checking if $CC supports -Wall... " >&6; }
51966f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wall
51977c5adda3Smrg		if eval test \${$cacheid+y}
51987c5adda3Smrgthen :
51997c5adda3Smrg  printf %s "(cached) " >&6
52007c5adda3Smrgelse $as_nop
52016f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
520221212451Smrg/* end confdefs.h.  */
520321212451Smrgint i;
520421212451Smrgint
52057c5adda3Smrgmain (void)
520621212451Smrg{
520721212451Smrg
520821212451Smrg  ;
520921212451Smrg  return 0;
521021212451Smrg}
521121212451Smrg_ACEOF
52127c5adda3Smrgif ac_fn_c_try_link "$LINENO"
52137c5adda3Smrgthen :
52146f02d4e9Smrg  eval $cacheid=yes
52157c5adda3Smrgelse $as_nop
52166f02d4e9Smrg  eval $cacheid=no
52176f02d4e9Smrgfi
52187c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
52196f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
522021212451Smrgfi
522121212451Smrg
52226f02d4e9Smrg
522321212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
522421212451Smrg
52256f02d4e9Smrg		eval supported=\$$cacheid
52267c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
52277c5adda3Smrgprintf "%s\n" "$supported" >&6; }
522821212451Smrg		if test "$supported" = "yes" ; then
522921212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
523021212451Smrg			found="yes"
523121212451Smrg		fi
523221212451Smrg	fi
523321212451Smrg
523421212451Smrg
523521212451Smrg
523621212451Smrg
523721212451Smrg
523821212451Smrg
523921212451Smrg
52406f02d4e9Smrg
52416f02d4e9Smrg
52426f02d4e9Smrg
52436f02d4e9Smrg
52446f02d4e9Smrg
52456f02d4e9Smrg
52466f02d4e9Smrg
52476f02d4e9Smrg
524821212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
524921212451Smrg
52506f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
525121212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52527c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
52537c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
52547c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
52557c5adda3Smrgthen :
52567c5adda3Smrg  printf %s "(cached) " >&6
52577c5adda3Smrgelse $as_nop
52586f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
525921212451Smrg/* end confdefs.h.  */
526021212451Smrgint i;
526121212451Smrg_ACEOF
52627c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
52637c5adda3Smrgthen :
52646f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
52657c5adda3Smrgelse $as_nop
52666f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
526721212451Smrgfi
52687c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
52696f02d4e9Smrgfi
52707c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
52717c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
52726f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
527321212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
527421212451Smrgfi
527521212451Smrg
52766f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
52776f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
527821212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
527921212451Smrg	fi
528021212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
52817c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
52827c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
52837c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
52847c5adda3Smrgthen :
52857c5adda3Smrg  printf %s "(cached) " >&6
52867c5adda3Smrgelse $as_nop
52876f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
528821212451Smrg/* end confdefs.h.  */
528921212451Smrgint i;
529021212451Smrg_ACEOF
52917c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
52927c5adda3Smrgthen :
52936f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
52947c5adda3Smrgelse $as_nop
52956f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
529621212451Smrgfi
52977c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
52986f02d4e9Smrgfi
52997c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
53007c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
53016f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
530221212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
530321212451Smrgfi
530421212451Smrg
530521212451Smrgfound="no"
530621212451Smrg
530721212451Smrg	if test $found = "no" ; then
53086f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
530921212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
531021212451Smrg		fi
531121212451Smrg
53126f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
531321212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
531421212451Smrg		fi
531521212451Smrg
531621212451Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
531721212451Smrg
53187c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
53197c5adda3Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
53206f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
53217c5adda3Smrg		if eval test \${$cacheid+y}
53227c5adda3Smrgthen :
53237c5adda3Smrg  printf %s "(cached) " >&6
53247c5adda3Smrgelse $as_nop
53256f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
532621212451Smrg/* end confdefs.h.  */
532721212451Smrgint i;
532821212451Smrgint
53297c5adda3Smrgmain (void)
533021212451Smrg{
533121212451Smrg
533221212451Smrg  ;
533321212451Smrg  return 0;
533421212451Smrg}
533521212451Smrg_ACEOF
53367c5adda3Smrgif ac_fn_c_try_link "$LINENO"
53377c5adda3Smrgthen :
53386f02d4e9Smrg  eval $cacheid=yes
53397c5adda3Smrgelse $as_nop
53406f02d4e9Smrg  eval $cacheid=no
534121212451Smrgfi
53427c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
53436f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
53446f02d4e9Smrgfi
53456f02d4e9Smrg
534621212451Smrg
534721212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
534821212451Smrg
53496f02d4e9Smrg		eval supported=\$$cacheid
53507c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
53517c5adda3Smrgprintf "%s\n" "$supported" >&6; }
535221212451Smrg		if test "$supported" = "yes" ; then
535321212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
535421212451Smrg			found="yes"
535521212451Smrg		fi
535621212451Smrg	fi
535721212451Smrg
535821212451Smrg
535921212451Smrg
536021212451Smrg
536121212451Smrg
536221212451Smrg
536321212451Smrg
53646f02d4e9Smrg
53656f02d4e9Smrg
53666f02d4e9Smrg
53676f02d4e9Smrg
53686f02d4e9Smrg
53696f02d4e9Smrg
53706f02d4e9Smrg
53716f02d4e9Smrg
537221212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
537321212451Smrg
53746f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
537521212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53767c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
53777c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
53787c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
53797c5adda3Smrgthen :
53807c5adda3Smrg  printf %s "(cached) " >&6
53817c5adda3Smrgelse $as_nop
53826f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
538321212451Smrg/* end confdefs.h.  */
538421212451Smrgint i;
538521212451Smrg_ACEOF
53867c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
53877c5adda3Smrgthen :
53886f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
53897c5adda3Smrgelse $as_nop
53906f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
539121212451Smrgfi
53927c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
53936f02d4e9Smrgfi
53947c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
53957c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
53966f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
539721212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
539821212451Smrgfi
539921212451Smrg
54006f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
54016f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
540221212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
540321212451Smrg	fi
540421212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
54057c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
54067c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
54077c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
54087c5adda3Smrgthen :
54097c5adda3Smrg  printf %s "(cached) " >&6
54107c5adda3Smrgelse $as_nop
54116f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
541221212451Smrg/* end confdefs.h.  */
541321212451Smrgint i;
541421212451Smrg_ACEOF
54157c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
54167c5adda3Smrgthen :
54176f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
54187c5adda3Smrgelse $as_nop
54196f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
542021212451Smrgfi
54217c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
54226f02d4e9Smrgfi
54237c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
54247c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
54256f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
542621212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
542721212451Smrgfi
542821212451Smrg
542921212451Smrgfound="no"
543021212451Smrg
543121212451Smrg	if test $found = "no" ; then
54326f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
543321212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
543421212451Smrg		fi
543521212451Smrg
54366f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
543721212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
543821212451Smrg		fi
543921212451Smrg
54406f02d4e9Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
544121212451Smrg
54427c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
54437c5adda3Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
54446f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
54457c5adda3Smrg		if eval test \${$cacheid+y}
54467c5adda3Smrgthen :
54477c5adda3Smrg  printf %s "(cached) " >&6
54487c5adda3Smrgelse $as_nop
54496f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
545021212451Smrg/* end confdefs.h.  */
545121212451Smrgint i;
545221212451Smrgint
54537c5adda3Smrgmain (void)
545421212451Smrg{
545521212451Smrg
545621212451Smrg  ;
545721212451Smrg  return 0;
545821212451Smrg}
545921212451Smrg_ACEOF
54607c5adda3Smrgif ac_fn_c_try_link "$LINENO"
54617c5adda3Smrgthen :
54626f02d4e9Smrg  eval $cacheid=yes
54637c5adda3Smrgelse $as_nop
54646f02d4e9Smrg  eval $cacheid=no
54656f02d4e9Smrgfi
54667c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
54676f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
546821212451Smrgfi
546921212451Smrg
54706f02d4e9Smrg
547121212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
547221212451Smrg
54736f02d4e9Smrg		eval supported=\$$cacheid
54747c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
54757c5adda3Smrgprintf "%s\n" "$supported" >&6; }
547621212451Smrg		if test "$supported" = "yes" ; then
54776f02d4e9Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
547821212451Smrg			found="yes"
547921212451Smrg		fi
548021212451Smrg	fi
548121212451Smrg
548221212451Smrg
548321212451Smrg
548421212451Smrg
548521212451Smrg
548621212451Smrg
548721212451Smrg
54886f02d4e9Smrg
54896f02d4e9Smrg
54906f02d4e9Smrg
54916f02d4e9Smrg
54926f02d4e9Smrg
54936f02d4e9Smrg
54946f02d4e9Smrg
54956f02d4e9Smrg
549621212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
549721212451Smrg
54986f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
549921212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55007c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
55017c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
55027c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
55037c5adda3Smrgthen :
55047c5adda3Smrg  printf %s "(cached) " >&6
55057c5adda3Smrgelse $as_nop
55066f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
550721212451Smrg/* end confdefs.h.  */
550821212451Smrgint i;
550921212451Smrg_ACEOF
55107c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
55117c5adda3Smrgthen :
55126f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
55137c5adda3Smrgelse $as_nop
55146f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
551521212451Smrgfi
55167c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55176f02d4e9Smrgfi
55187c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
55197c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
55206f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
552121212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
552221212451Smrgfi
552321212451Smrg
55246f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
55256f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
552621212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
552721212451Smrg	fi
552821212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55297c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
55307c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
55317c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
55327c5adda3Smrgthen :
55337c5adda3Smrg  printf %s "(cached) " >&6
55347c5adda3Smrgelse $as_nop
55356f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
553621212451Smrg/* end confdefs.h.  */
553721212451Smrgint i;
553821212451Smrg_ACEOF
55397c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
55407c5adda3Smrgthen :
55416f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
55427c5adda3Smrgelse $as_nop
55436f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
554421212451Smrgfi
55457c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55466f02d4e9Smrgfi
55477c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
55487c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
55496f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
555021212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
555121212451Smrgfi
555221212451Smrg
555321212451Smrgfound="no"
555421212451Smrg
555521212451Smrg	if test $found = "no" ; then
55566f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
555721212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
555821212451Smrg		fi
555921212451Smrg
55606f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
556121212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
556221212451Smrg		fi
556321212451Smrg
55646f02d4e9Smrg		CFLAGS="$CFLAGS -Wformat=2"
556521212451Smrg
55667c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
55677c5adda3Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
55687253c0c7Smrg		cacheid=xorg_cv_cc_flag__Wformat_2
55697c5adda3Smrg		if eval test \${$cacheid+y}
55707c5adda3Smrgthen :
55717c5adda3Smrg  printf %s "(cached) " >&6
55727c5adda3Smrgelse $as_nop
55736f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
557421212451Smrg/* end confdefs.h.  */
557521212451Smrgint i;
557621212451Smrgint
55777c5adda3Smrgmain (void)
557821212451Smrg{
557921212451Smrg
558021212451Smrg  ;
558121212451Smrg  return 0;
558221212451Smrg}
558321212451Smrg_ACEOF
55847c5adda3Smrgif ac_fn_c_try_link "$LINENO"
55857c5adda3Smrgthen :
55866f02d4e9Smrg  eval $cacheid=yes
55877c5adda3Smrgelse $as_nop
55886f02d4e9Smrg  eval $cacheid=no
55896f02d4e9Smrgfi
55907c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
55916f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
55926f02d4e9Smrgfi
55936f02d4e9Smrg
55946f02d4e9Smrg
55956f02d4e9Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
55966f02d4e9Smrg
55976f02d4e9Smrg		eval supported=\$$cacheid
55987c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
55997c5adda3Smrgprintf "%s\n" "$supported" >&6; }
56006f02d4e9Smrg		if test "$supported" = "yes" ; then
56016f02d4e9Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
56026f02d4e9Smrg			found="yes"
56036f02d4e9Smrg		fi
56046f02d4e9Smrg	fi
560521212451Smrg
56066f02d4e9Smrg	if test $found = "no" ; then
56076f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
56086f02d4e9Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56096f02d4e9Smrg		fi
56106f02d4e9Smrg
56116f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
56126f02d4e9Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
56136f02d4e9Smrg		fi
56146f02d4e9Smrg
56156f02d4e9Smrg		CFLAGS="$CFLAGS -Wformat"
56166f02d4e9Smrg
56177c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
56187c5adda3Smrgprintf %s "checking if $CC supports -Wformat... " >&6; }
56196f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wformat
56207c5adda3Smrg		if eval test \${$cacheid+y}
56217c5adda3Smrgthen :
56227c5adda3Smrg  printf %s "(cached) " >&6
56237c5adda3Smrgelse $as_nop
56246f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56256f02d4e9Smrg/* end confdefs.h.  */
56266f02d4e9Smrgint i;
56276f02d4e9Smrgint
56287c5adda3Smrgmain (void)
56296f02d4e9Smrg{
56306f02d4e9Smrg
56316f02d4e9Smrg  ;
56326f02d4e9Smrg  return 0;
56336f02d4e9Smrg}
56346f02d4e9Smrg_ACEOF
56357c5adda3Smrgif ac_fn_c_try_link "$LINENO"
56367c5adda3Smrgthen :
56376f02d4e9Smrg  eval $cacheid=yes
56387c5adda3Smrgelse $as_nop
56396f02d4e9Smrg  eval $cacheid=no
56406f02d4e9Smrgfi
56417c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
56426f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
564321212451Smrgfi
564421212451Smrg
56456f02d4e9Smrg
564621212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
564721212451Smrg
56486f02d4e9Smrg		eval supported=\$$cacheid
56497c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
56507c5adda3Smrgprintf "%s\n" "$supported" >&6; }
565121212451Smrg		if test "$supported" = "yes" ; then
56526f02d4e9Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
565321212451Smrg			found="yes"
565421212451Smrg		fi
565521212451Smrg	fi
565621212451Smrg
565721212451Smrg
565821212451Smrg
565921212451Smrg
566021212451Smrg
566121212451Smrg
566221212451Smrg
56636f02d4e9Smrg
56646f02d4e9Smrg
56656f02d4e9Smrg
56666f02d4e9Smrg
56676f02d4e9Smrg
56686f02d4e9Smrg
56696f02d4e9Smrg
56706f02d4e9Smrg
56716f02d4e9Smrg
56726f02d4e9Smrg
567321212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
567421212451Smrg
56756f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
567621212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56777c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
56787c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
56797c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
56807c5adda3Smrgthen :
56817c5adda3Smrg  printf %s "(cached) " >&6
56827c5adda3Smrgelse $as_nop
56836f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
568421212451Smrg/* end confdefs.h.  */
568521212451Smrgint i;
568621212451Smrg_ACEOF
56877c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
56887c5adda3Smrgthen :
56896f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
56907c5adda3Smrgelse $as_nop
56916f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
569221212451Smrgfi
56937c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
56946f02d4e9Smrgfi
56957c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
56967c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
56976f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
569821212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
569921212451Smrgfi
570021212451Smrg
57016f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
57026f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
570321212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
570421212451Smrg	fi
570521212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57067c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
57077c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
57087c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
57097c5adda3Smrgthen :
57107c5adda3Smrg  printf %s "(cached) " >&6
57117c5adda3Smrgelse $as_nop
57126f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
571321212451Smrg/* end confdefs.h.  */
571421212451Smrgint i;
571521212451Smrg_ACEOF
57167c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
57177c5adda3Smrgthen :
57186f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
57197c5adda3Smrgelse $as_nop
57206f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
572121212451Smrgfi
57227c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57236f02d4e9Smrgfi
57247c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
57257c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
57266f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
572721212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
572821212451Smrgfi
572921212451Smrg
573021212451Smrgfound="no"
573121212451Smrg
573221212451Smrg	if test $found = "no" ; then
57336f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
573421212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
573521212451Smrg		fi
573621212451Smrg
57376f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
573821212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
573921212451Smrg		fi
574021212451Smrg
57416f02d4e9Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
574221212451Smrg
57437c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
57447c5adda3Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
57456f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
57467c5adda3Smrg		if eval test \${$cacheid+y}
57477c5adda3Smrgthen :
57487c5adda3Smrg  printf %s "(cached) " >&6
57497c5adda3Smrgelse $as_nop
57506f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
575121212451Smrg/* end confdefs.h.  */
575221212451Smrgint i;
575321212451Smrgint
57547c5adda3Smrgmain (void)
575521212451Smrg{
575621212451Smrg
575721212451Smrg  ;
575821212451Smrg  return 0;
575921212451Smrg}
576021212451Smrg_ACEOF
57617c5adda3Smrgif ac_fn_c_try_link "$LINENO"
57627c5adda3Smrgthen :
57636f02d4e9Smrg  eval $cacheid=yes
57647c5adda3Smrgelse $as_nop
57656f02d4e9Smrg  eval $cacheid=no
576621212451Smrgfi
57677c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
57686f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
57696f02d4e9Smrgfi
57706f02d4e9Smrg
577121212451Smrg
577221212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
577321212451Smrg
57746f02d4e9Smrg		eval supported=\$$cacheid
57757c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
57767c5adda3Smrgprintf "%s\n" "$supported" >&6; }
577721212451Smrg		if test "$supported" = "yes" ; then
57786f02d4e9Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
577921212451Smrg			found="yes"
578021212451Smrg		fi
578121212451Smrg	fi
578221212451Smrg
578321212451Smrg
578421212451Smrg
578521212451Smrg
578621212451Smrg
578721212451Smrg
578821212451Smrg
57896f02d4e9Smrg
57906f02d4e9Smrg
57916f02d4e9Smrg
57926f02d4e9Smrg
57936f02d4e9Smrg
57946f02d4e9Smrg
57956f02d4e9Smrg
57966f02d4e9Smrg
579721212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
579821212451Smrg
57996f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
580021212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58017c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
58027c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
58037c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
58047c5adda3Smrgthen :
58057c5adda3Smrg  printf %s "(cached) " >&6
58067c5adda3Smrgelse $as_nop
58076f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
580821212451Smrg/* end confdefs.h.  */
580921212451Smrgint i;
581021212451Smrg_ACEOF
58117c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
58127c5adda3Smrgthen :
58136f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
58147c5adda3Smrgelse $as_nop
58156f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
581621212451Smrgfi
58177c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
58186f02d4e9Smrgfi
58197c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
58207c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
58216f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
582221212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
582321212451Smrgfi
582421212451Smrg
58256f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
58266f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
582721212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
582821212451Smrg	fi
582921212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
58307c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
58317c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
58327c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
58337c5adda3Smrgthen :
58347c5adda3Smrg  printf %s "(cached) " >&6
58357c5adda3Smrgelse $as_nop
58366f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
583721212451Smrg/* end confdefs.h.  */
583821212451Smrgint i;
583921212451Smrg_ACEOF
58407c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
58417c5adda3Smrgthen :
58426f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
58437c5adda3Smrgelse $as_nop
58446f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
584521212451Smrgfi
58467c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
58476f02d4e9Smrgfi
58487c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
58497c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
58506f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
585121212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
585221212451Smrgfi
585321212451Smrg
585421212451Smrgfound="no"
585521212451Smrg
585621212451Smrg	if test $found = "no" ; then
58576f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
585821212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
585921212451Smrg		fi
586021212451Smrg
58616f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
586221212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
586321212451Smrg		fi
586421212451Smrg
58656f02d4e9Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
586621212451Smrg
58677c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
58687c5adda3Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
58696f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
58707c5adda3Smrg		if eval test \${$cacheid+y}
58717c5adda3Smrgthen :
58727c5adda3Smrg  printf %s "(cached) " >&6
58737c5adda3Smrgelse $as_nop
58746f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
587521212451Smrg/* end confdefs.h.  */
587621212451Smrgint i;
587721212451Smrgint
58787c5adda3Smrgmain (void)
587921212451Smrg{
588021212451Smrg
588121212451Smrg  ;
588221212451Smrg  return 0;
588321212451Smrg}
588421212451Smrg_ACEOF
58857c5adda3Smrgif ac_fn_c_try_link "$LINENO"
58867c5adda3Smrgthen :
58876f02d4e9Smrg  eval $cacheid=yes
58887c5adda3Smrgelse $as_nop
58896f02d4e9Smrg  eval $cacheid=no
58906f02d4e9Smrgfi
58917c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
58926f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
589321212451Smrgfi
589421212451Smrg
58956f02d4e9Smrg
589621212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
589721212451Smrg
58986f02d4e9Smrg		eval supported=\$$cacheid
58997c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
59007c5adda3Smrgprintf "%s\n" "$supported" >&6; }
590121212451Smrg		if test "$supported" = "yes" ; then
59026f02d4e9Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
590321212451Smrg			found="yes"
590421212451Smrg		fi
590521212451Smrg	fi
590621212451Smrg
590721212451Smrg
590821212451Smrg
590921212451Smrg
591021212451Smrg
591121212451Smrg
591221212451Smrg
59136f02d4e9Smrg
59146f02d4e9Smrg
59156f02d4e9Smrg
59166f02d4e9Smrg
59176f02d4e9Smrg
59186f02d4e9Smrg
59196f02d4e9Smrg
59206f02d4e9Smrg
592121212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
592221212451Smrg
59236f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
592421212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59257c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
59267c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
59277c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
59287c5adda3Smrgthen :
59297c5adda3Smrg  printf %s "(cached) " >&6
59307c5adda3Smrgelse $as_nop
59316f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
593221212451Smrg/* end confdefs.h.  */
593321212451Smrgint i;
593421212451Smrg_ACEOF
59357c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
59367c5adda3Smrgthen :
59376f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
59387c5adda3Smrgelse $as_nop
59396f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
594021212451Smrgfi
59417c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
59426f02d4e9Smrgfi
59437c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
59447c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
59456f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
594621212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
594721212451Smrgfi
594821212451Smrg
59496f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
59506f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
595121212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
595221212451Smrg	fi
595321212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59547c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
59557c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
59567c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
59577c5adda3Smrgthen :
59587c5adda3Smrg  printf %s "(cached) " >&6
59597c5adda3Smrgelse $as_nop
59606f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
596121212451Smrg/* end confdefs.h.  */
596221212451Smrgint i;
596321212451Smrg_ACEOF
59647c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
59657c5adda3Smrgthen :
59666f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
59677c5adda3Smrgelse $as_nop
59686f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
596921212451Smrgfi
59707c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
59716f02d4e9Smrgfi
59727c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
59737c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
59746f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
597521212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
597621212451Smrgfi
597721212451Smrg
597821212451Smrgfound="no"
597921212451Smrg
598021212451Smrg	if test $found = "no" ; then
59816f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
598221212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
598321212451Smrg		fi
598421212451Smrg
59856f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
598621212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
598721212451Smrg		fi
598821212451Smrg
59896f02d4e9Smrg		CFLAGS="$CFLAGS -Wnested-externs"
599021212451Smrg
59917c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
59927c5adda3Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
59936f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
59947c5adda3Smrg		if eval test \${$cacheid+y}
59957c5adda3Smrgthen :
59967c5adda3Smrg  printf %s "(cached) " >&6
59977c5adda3Smrgelse $as_nop
59986f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
599921212451Smrg/* end confdefs.h.  */
600021212451Smrgint i;
600121212451Smrgint
60027c5adda3Smrgmain (void)
600321212451Smrg{
600421212451Smrg
600521212451Smrg  ;
600621212451Smrg  return 0;
600721212451Smrg}
600821212451Smrg_ACEOF
60097c5adda3Smrgif ac_fn_c_try_link "$LINENO"
60107c5adda3Smrgthen :
60116f02d4e9Smrg  eval $cacheid=yes
60127c5adda3Smrgelse $as_nop
60136f02d4e9Smrg  eval $cacheid=no
601421212451Smrgfi
60157c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
60166f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
60176f02d4e9Smrgfi
60186f02d4e9Smrg
601921212451Smrg
602021212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
602121212451Smrg
60226f02d4e9Smrg		eval supported=\$$cacheid
60237c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
60247c5adda3Smrgprintf "%s\n" "$supported" >&6; }
602521212451Smrg		if test "$supported" = "yes" ; then
60266f02d4e9Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
602721212451Smrg			found="yes"
602821212451Smrg		fi
602921212451Smrg	fi
603021212451Smrg
603121212451Smrg
603221212451Smrg
603321212451Smrg
603421212451Smrg
603521212451Smrg
603621212451Smrg
60376f02d4e9Smrg
60386f02d4e9Smrg
60396f02d4e9Smrg
60406f02d4e9Smrg
60416f02d4e9Smrg
60426f02d4e9Smrg
60436f02d4e9Smrg
60446f02d4e9Smrg
604521212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
604621212451Smrg
60476f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
604821212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60497c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
60507c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
60517c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
60527c5adda3Smrgthen :
60537c5adda3Smrg  printf %s "(cached) " >&6
60547c5adda3Smrgelse $as_nop
60556f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
605621212451Smrg/* end confdefs.h.  */
605721212451Smrgint i;
605821212451Smrg_ACEOF
60597c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
60607c5adda3Smrgthen :
60616f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
60627c5adda3Smrgelse $as_nop
60636f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
606421212451Smrgfi
60657c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
60666f02d4e9Smrgfi
60677c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
60687c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
60696f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
607021212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
607121212451Smrgfi
607221212451Smrg
60736f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
60746f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
607521212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
607621212451Smrg	fi
607721212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60787c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
60797c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
60807c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
60817c5adda3Smrgthen :
60827c5adda3Smrg  printf %s "(cached) " >&6
60837c5adda3Smrgelse $as_nop
60846f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
608521212451Smrg/* end confdefs.h.  */
608621212451Smrgint i;
608721212451Smrg_ACEOF
60887c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
60897c5adda3Smrgthen :
60906f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
60917c5adda3Smrgelse $as_nop
60926f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
609321212451Smrgfi
60947c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
60956f02d4e9Smrgfi
60967c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
60977c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
60986f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
609921212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
610021212451Smrgfi
610121212451Smrg
610221212451Smrgfound="no"
610321212451Smrg
610421212451Smrg	if test $found = "no" ; then
61056f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
610621212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
610721212451Smrg		fi
610821212451Smrg
61096f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
611021212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
611121212451Smrg		fi
611221212451Smrg
61136f02d4e9Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
611421212451Smrg
61157c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
61167c5adda3Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
61176f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
61187c5adda3Smrg		if eval test \${$cacheid+y}
61197c5adda3Smrgthen :
61207c5adda3Smrg  printf %s "(cached) " >&6
61217c5adda3Smrgelse $as_nop
61226f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
612321212451Smrg/* end confdefs.h.  */
612421212451Smrgint i;
612521212451Smrgint
61267c5adda3Smrgmain (void)
612721212451Smrg{
612821212451Smrg
612921212451Smrg  ;
613021212451Smrg  return 0;
613121212451Smrg}
613221212451Smrg_ACEOF
61337c5adda3Smrgif ac_fn_c_try_link "$LINENO"
61347c5adda3Smrgthen :
61356f02d4e9Smrg  eval $cacheid=yes
61367c5adda3Smrgelse $as_nop
61376f02d4e9Smrg  eval $cacheid=no
61386f02d4e9Smrgfi
61397c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
61406f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
614121212451Smrgfi
614221212451Smrg
61436f02d4e9Smrg
614421212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
614521212451Smrg
61466f02d4e9Smrg		eval supported=\$$cacheid
61477c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
61487c5adda3Smrgprintf "%s\n" "$supported" >&6; }
614921212451Smrg		if test "$supported" = "yes" ; then
61506f02d4e9Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
615121212451Smrg			found="yes"
615221212451Smrg		fi
615321212451Smrg	fi
615421212451Smrg
615521212451Smrg
615621212451Smrg
615721212451Smrg
615821212451Smrg
615921212451Smrg
616021212451Smrg
616121212451Smrg
616221212451Smrg
616321212451Smrg
616421212451Smrg
616521212451Smrg
616621212451Smrg
616721212451Smrg
616821212451Smrg
616921212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
617021212451Smrg
61716f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
617221212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61737c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
61747c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
61757c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
61767c5adda3Smrgthen :
61777c5adda3Smrg  printf %s "(cached) " >&6
61787c5adda3Smrgelse $as_nop
61796f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
618021212451Smrg/* end confdefs.h.  */
618121212451Smrgint i;
618221212451Smrg_ACEOF
61837c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
61847c5adda3Smrgthen :
61856f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
61867c5adda3Smrgelse $as_nop
61876f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
618821212451Smrgfi
61897c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
61906f02d4e9Smrgfi
61917c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
61927c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
61936f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
619421212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
619521212451Smrgfi
619621212451Smrg
61976f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
61986f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
619921212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
620021212451Smrg	fi
620121212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62027c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
62037c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
62047c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
62057c5adda3Smrgthen :
62067c5adda3Smrg  printf %s "(cached) " >&6
62077c5adda3Smrgelse $as_nop
62086f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
620921212451Smrg/* end confdefs.h.  */
621021212451Smrgint i;
621121212451Smrg_ACEOF
62127c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
62137c5adda3Smrgthen :
62146f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
62157c5adda3Smrgelse $as_nop
62166f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
621721212451Smrgfi
62187c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
62196f02d4e9Smrgfi
62207c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
62217c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
62226f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
622321212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
622421212451Smrgfi
622521212451Smrg
622621212451Smrgfound="no"
622721212451Smrg
622821212451Smrg	if test $found = "no" ; then
62296f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
623021212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
623121212451Smrg		fi
623221212451Smrg
62336f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
623421212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
623521212451Smrg		fi
623621212451Smrg
623721212451Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
623821212451Smrg
62397c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
62407c5adda3Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
62416f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
62427c5adda3Smrg		if eval test \${$cacheid+y}
62437c5adda3Smrgthen :
62447c5adda3Smrg  printf %s "(cached) " >&6
62457c5adda3Smrgelse $as_nop
62466f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
624721212451Smrg/* end confdefs.h.  */
624821212451Smrgint i;
624921212451Smrgint
62507c5adda3Smrgmain (void)
625121212451Smrg{
625221212451Smrg
625321212451Smrg  ;
625421212451Smrg  return 0;
625521212451Smrg}
625621212451Smrg_ACEOF
62577c5adda3Smrgif ac_fn_c_try_link "$LINENO"
62587c5adda3Smrgthen :
62596f02d4e9Smrg  eval $cacheid=yes
62607c5adda3Smrgelse $as_nop
62616f02d4e9Smrg  eval $cacheid=no
626221212451Smrgfi
62637c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
62646f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
62656f02d4e9Smrgfi
62666f02d4e9Smrg
626721212451Smrg
626821212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
626921212451Smrg
62706f02d4e9Smrg		eval supported=\$$cacheid
62717c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
62727c5adda3Smrgprintf "%s\n" "$supported" >&6; }
627321212451Smrg		if test "$supported" = "yes" ; then
627421212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
627521212451Smrg			found="yes"
627621212451Smrg		fi
627721212451Smrg	fi
627821212451Smrg
62797253c0c7Smrg	if test $found = "no" ; then
62807253c0c7Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62817253c0c7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62827253c0c7Smrg		fi
62837253c0c7Smrg
62847253c0c7Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
62857253c0c7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62867253c0c7Smrg		fi
62877253c0c7Smrg
62887253c0c7Smrg		CFLAGS="$CFLAGS -fd"
62897253c0c7Smrg
62907c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
62917c5adda3Smrgprintf %s "checking if $CC supports -fd... " >&6; }
62927253c0c7Smrg		cacheid=xorg_cv_cc_flag__fd
62937c5adda3Smrg		if eval test \${$cacheid+y}
62947c5adda3Smrgthen :
62957c5adda3Smrg  printf %s "(cached) " >&6
62967c5adda3Smrgelse $as_nop
62977253c0c7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62987253c0c7Smrg/* end confdefs.h.  */
62997253c0c7Smrgint i;
63007253c0c7Smrgint
63017c5adda3Smrgmain (void)
63027253c0c7Smrg{
63037253c0c7Smrg
63047253c0c7Smrg  ;
63057253c0c7Smrg  return 0;
63067253c0c7Smrg}
63077253c0c7Smrg_ACEOF
63087c5adda3Smrgif ac_fn_c_try_link "$LINENO"
63097c5adda3Smrgthen :
63107253c0c7Smrg  eval $cacheid=yes
63117c5adda3Smrgelse $as_nop
63127253c0c7Smrg  eval $cacheid=no
63137253c0c7Smrgfi
63147c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
63157253c0c7Smrg    conftest$ac_exeext conftest.$ac_ext
63167253c0c7Smrgfi
63177253c0c7Smrg
63187253c0c7Smrg
63197253c0c7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
63207253c0c7Smrg
63217253c0c7Smrg		eval supported=\$$cacheid
63227c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
63237c5adda3Smrgprintf "%s\n" "$supported" >&6; }
63247253c0c7Smrg		if test "$supported" = "yes" ; then
63257253c0c7Smrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
63267253c0c7Smrg			found="yes"
63277253c0c7Smrg		fi
63287253c0c7Smrg	fi
63297253c0c7Smrg
633021212451Smrg
633121212451Smrg
633221212451Smrg
633321212451Smrg
633421212451Smrg
633521212451Smrg
63366f02d4e9Smrg
63376f02d4e9Smrg
63386f02d4e9Smrg
63396f02d4e9Smrg
63406f02d4e9Smrg
63416f02d4e9Smrg
63426f02d4e9Smrg
63436f02d4e9Smrg
634421212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
634521212451Smrg
63466f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
634721212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63487c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
63497c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
63507c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
63517c5adda3Smrgthen :
63527c5adda3Smrg  printf %s "(cached) " >&6
63537c5adda3Smrgelse $as_nop
63546f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
635521212451Smrg/* end confdefs.h.  */
635621212451Smrgint i;
635721212451Smrg_ACEOF
63587c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
63597c5adda3Smrgthen :
63606f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
63617c5adda3Smrgelse $as_nop
63626f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
636321212451Smrgfi
63647c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
63656f02d4e9Smrgfi
63667c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
63677c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
63686f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
636921212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
637021212451Smrgfi
637121212451Smrg
63726f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
63736f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
637421212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
637521212451Smrg	fi
637621212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
63777c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
63787c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
63797c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
63807c5adda3Smrgthen :
63817c5adda3Smrg  printf %s "(cached) " >&6
63827c5adda3Smrgelse $as_nop
63836f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
638421212451Smrg/* end confdefs.h.  */
638521212451Smrgint i;
638621212451Smrg_ACEOF
63877c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
63887c5adda3Smrgthen :
63896f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
63907c5adda3Smrgelse $as_nop
63916f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
639221212451Smrgfi
63937c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
63946f02d4e9Smrgfi
63957c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
63967c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
63976f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
639821212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
639921212451Smrgfi
640021212451Smrg
640121212451Smrgfound="no"
640221212451Smrg
640321212451Smrg	if test $found = "no" ; then
64046f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
640521212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
640621212451Smrg		fi
640721212451Smrg
64086f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
640921212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
641021212451Smrg		fi
641121212451Smrg
641221212451Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
641321212451Smrg
64147c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
64157c5adda3Smrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
64166f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
64177c5adda3Smrg		if eval test \${$cacheid+y}
64187c5adda3Smrgthen :
64197c5adda3Smrg  printf %s "(cached) " >&6
64207c5adda3Smrgelse $as_nop
64216f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
642221212451Smrg/* end confdefs.h.  */
642321212451Smrgint i;
642421212451Smrgint
64257c5adda3Smrgmain (void)
642621212451Smrg{
642721212451Smrg
642821212451Smrg  ;
642921212451Smrg  return 0;
643021212451Smrg}
643121212451Smrg_ACEOF
64327c5adda3Smrgif ac_fn_c_try_link "$LINENO"
64337c5adda3Smrgthen :
64346f02d4e9Smrg  eval $cacheid=yes
64357c5adda3Smrgelse $as_nop
64366f02d4e9Smrg  eval $cacheid=no
64376f02d4e9Smrgfi
64387c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
64396f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
644021212451Smrgfi
644121212451Smrg
64426f02d4e9Smrg
644321212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
644421212451Smrg
64456f02d4e9Smrg		eval supported=\$$cacheid
64467c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
64477c5adda3Smrgprintf "%s\n" "$supported" >&6; }
644821212451Smrg		if test "$supported" = "yes" ; then
644921212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
645021212451Smrg			found="yes"
645121212451Smrg		fi
645221212451Smrg	fi
645321212451Smrg
645421212451Smrg
645521212451Smrg
64566f02d4e9Smrg
64576f02d4e9Smrg
645821212451Smrg# This chunk adds additional warnings that could catch undesired effects.
645921212451Smrg
646021212451Smrg
646121212451Smrg
646221212451Smrg
646321212451Smrg
64646f02d4e9Smrg
64656f02d4e9Smrg
64666f02d4e9Smrg
64676f02d4e9Smrg
64686f02d4e9Smrg
64696f02d4e9Smrg
64706f02d4e9Smrg
64716f02d4e9Smrg
647221212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
647321212451Smrg
64746f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
647521212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64767c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
64777c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
64787c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
64797c5adda3Smrgthen :
64807c5adda3Smrg  printf %s "(cached) " >&6
64817c5adda3Smrgelse $as_nop
64826f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
648321212451Smrg/* end confdefs.h.  */
648421212451Smrgint i;
648521212451Smrg_ACEOF
64867c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
64877c5adda3Smrgthen :
64886f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
64897c5adda3Smrgelse $as_nop
64906f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
649121212451Smrgfi
64927c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
64936f02d4e9Smrgfi
64947c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
64957c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
64966f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
649721212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
649821212451Smrgfi
649921212451Smrg
65006f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
65016f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
650221212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
650321212451Smrg	fi
650421212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65057c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
65067c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
65077c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
65087c5adda3Smrgthen :
65097c5adda3Smrg  printf %s "(cached) " >&6
65107c5adda3Smrgelse $as_nop
65116f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
651221212451Smrg/* end confdefs.h.  */
651321212451Smrgint i;
651421212451Smrg_ACEOF
65157c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
65167c5adda3Smrgthen :
65176f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
65187c5adda3Smrgelse $as_nop
65196f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
652021212451Smrgfi
65217c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
65226f02d4e9Smrgfi
65237c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
65247c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
65256f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
652621212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
652721212451Smrgfi
652821212451Smrg
652921212451Smrgfound="no"
653021212451Smrg
653121212451Smrg	if test $found = "no" ; then
65326f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
653321212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
653421212451Smrg		fi
653521212451Smrg
65366f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
653721212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
653821212451Smrg		fi
653921212451Smrg
654021212451Smrg		CFLAGS="$CFLAGS -Wunused"
654121212451Smrg
65427c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
65437c5adda3Smrgprintf %s "checking if $CC supports -Wunused... " >&6; }
65446f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wunused
65457c5adda3Smrg		if eval test \${$cacheid+y}
65467c5adda3Smrgthen :
65477c5adda3Smrg  printf %s "(cached) " >&6
65487c5adda3Smrgelse $as_nop
65496f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
655021212451Smrg/* end confdefs.h.  */
655121212451Smrgint i;
655221212451Smrgint
65537c5adda3Smrgmain (void)
655421212451Smrg{
655521212451Smrg
655621212451Smrg  ;
655721212451Smrg  return 0;
655821212451Smrg}
655921212451Smrg_ACEOF
65607c5adda3Smrgif ac_fn_c_try_link "$LINENO"
65617c5adda3Smrgthen :
65626f02d4e9Smrg  eval $cacheid=yes
65637c5adda3Smrgelse $as_nop
65646f02d4e9Smrg  eval $cacheid=no
656521212451Smrgfi
65667c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
65676f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
65686f02d4e9Smrgfi
65696f02d4e9Smrg
657021212451Smrg
657121212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
657221212451Smrg
65736f02d4e9Smrg		eval supported=\$$cacheid
65747c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
65757c5adda3Smrgprintf "%s\n" "$supported" >&6; }
657621212451Smrg		if test "$supported" = "yes" ; then
657721212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
657821212451Smrg			found="yes"
657921212451Smrg		fi
658021212451Smrg	fi
658121212451Smrg
658221212451Smrg
658321212451Smrg
658421212451Smrg
658521212451Smrg
658621212451Smrg
658721212451Smrg
65886f02d4e9Smrg
65896f02d4e9Smrg
65906f02d4e9Smrg
65916f02d4e9Smrg
65926f02d4e9Smrg
65936f02d4e9Smrg
65946f02d4e9Smrg
65956f02d4e9Smrg
659621212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
659721212451Smrg
65986f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
659921212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66007c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
66017c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
66027c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
66037c5adda3Smrgthen :
66047c5adda3Smrg  printf %s "(cached) " >&6
66057c5adda3Smrgelse $as_nop
66066f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
660721212451Smrg/* end confdefs.h.  */
660821212451Smrgint i;
660921212451Smrg_ACEOF
66107c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
66117c5adda3Smrgthen :
66126f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
66137c5adda3Smrgelse $as_nop
66146f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
661521212451Smrgfi
66167c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
66176f02d4e9Smrgfi
66187c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
66197c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
66206f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
662121212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
662221212451Smrgfi
662321212451Smrg
66246f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
66256f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
662621212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
662721212451Smrg	fi
662821212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66297c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
66307c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
66317c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
66327c5adda3Smrgthen :
66337c5adda3Smrg  printf %s "(cached) " >&6
66347c5adda3Smrgelse $as_nop
66356f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
663621212451Smrg/* end confdefs.h.  */
663721212451Smrgint i;
663821212451Smrg_ACEOF
66397c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
66407c5adda3Smrgthen :
66416f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
66427c5adda3Smrgelse $as_nop
66436f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
664421212451Smrgfi
66457c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
66466f02d4e9Smrgfi
66477c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
66487c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
66496f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
665021212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
665121212451Smrgfi
665221212451Smrg
665321212451Smrgfound="no"
665421212451Smrg
665521212451Smrg	if test $found = "no" ; then
66566f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
665721212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
665821212451Smrg		fi
665921212451Smrg
66606f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
666121212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
666221212451Smrg		fi
666321212451Smrg
666421212451Smrg		CFLAGS="$CFLAGS -Wuninitialized"
666521212451Smrg
66667c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
66677c5adda3Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
66686f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
66697c5adda3Smrg		if eval test \${$cacheid+y}
66707c5adda3Smrgthen :
66717c5adda3Smrg  printf %s "(cached) " >&6
66727c5adda3Smrgelse $as_nop
66736f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
667421212451Smrg/* end confdefs.h.  */
667521212451Smrgint i;
667621212451Smrgint
66777c5adda3Smrgmain (void)
667821212451Smrg{
667921212451Smrg
668021212451Smrg  ;
668121212451Smrg  return 0;
668221212451Smrg}
668321212451Smrg_ACEOF
66847c5adda3Smrgif ac_fn_c_try_link "$LINENO"
66857c5adda3Smrgthen :
66866f02d4e9Smrg  eval $cacheid=yes
66877c5adda3Smrgelse $as_nop
66886f02d4e9Smrg  eval $cacheid=no
66896f02d4e9Smrgfi
66907c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
66916f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
669221212451Smrgfi
669321212451Smrg
66946f02d4e9Smrg
669521212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
669621212451Smrg
66976f02d4e9Smrg		eval supported=\$$cacheid
66987c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
66997c5adda3Smrgprintf "%s\n" "$supported" >&6; }
670021212451Smrg		if test "$supported" = "yes" ; then
670121212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
670221212451Smrg			found="yes"
670321212451Smrg		fi
670421212451Smrg	fi
670521212451Smrg
670621212451Smrg
670721212451Smrg
670821212451Smrg
670921212451Smrg
671021212451Smrg
671121212451Smrg
67126f02d4e9Smrg
67136f02d4e9Smrg
67146f02d4e9Smrg
67156f02d4e9Smrg
67166f02d4e9Smrg
67176f02d4e9Smrg
67186f02d4e9Smrg
67196f02d4e9Smrg
672021212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
672121212451Smrg
67226f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
672321212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67247c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
67257c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
67267c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
67277c5adda3Smrgthen :
67287c5adda3Smrg  printf %s "(cached) " >&6
67297c5adda3Smrgelse $as_nop
67306f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
673121212451Smrg/* end confdefs.h.  */
673221212451Smrgint i;
673321212451Smrg_ACEOF
67347c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
67357c5adda3Smrgthen :
67366f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
67377c5adda3Smrgelse $as_nop
67386f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
673921212451Smrgfi
67407c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
67416f02d4e9Smrgfi
67427c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
67437c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
67446f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
674521212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
674621212451Smrgfi
674721212451Smrg
67486f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
67496f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
675021212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
675121212451Smrg	fi
675221212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
67537c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
67547c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
67557c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
67567c5adda3Smrgthen :
67577c5adda3Smrg  printf %s "(cached) " >&6
67587c5adda3Smrgelse $as_nop
67596f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
676021212451Smrg/* end confdefs.h.  */
676121212451Smrgint i;
676221212451Smrg_ACEOF
67637c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
67647c5adda3Smrgthen :
67656f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
67667c5adda3Smrgelse $as_nop
67676f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
676821212451Smrgfi
67697c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
67706f02d4e9Smrgfi
67717c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
67727c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
67736f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
677421212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
677521212451Smrgfi
677621212451Smrg
677721212451Smrgfound="no"
677821212451Smrg
677921212451Smrg	if test $found = "no" ; then
67806f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
678121212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
678221212451Smrg		fi
678321212451Smrg
67846f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
678521212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
678621212451Smrg		fi
678721212451Smrg
678821212451Smrg		CFLAGS="$CFLAGS -Wshadow"
678921212451Smrg
67907c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
67917c5adda3Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
67926f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wshadow
67937c5adda3Smrg		if eval test \${$cacheid+y}
67947c5adda3Smrgthen :
67957c5adda3Smrg  printf %s "(cached) " >&6
67967c5adda3Smrgelse $as_nop
67976f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
679821212451Smrg/* end confdefs.h.  */
679921212451Smrgint i;
680021212451Smrgint
68017c5adda3Smrgmain (void)
680221212451Smrg{
680321212451Smrg
680421212451Smrg  ;
680521212451Smrg  return 0;
680621212451Smrg}
680721212451Smrg_ACEOF
68087c5adda3Smrgif ac_fn_c_try_link "$LINENO"
68097c5adda3Smrgthen :
68106f02d4e9Smrg  eval $cacheid=yes
68117c5adda3Smrgelse $as_nop
68126f02d4e9Smrg  eval $cacheid=no
681321212451Smrgfi
68147c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
68156f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
68166f02d4e9Smrgfi
68176f02d4e9Smrg
681821212451Smrg
681921212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
682021212451Smrg
68216f02d4e9Smrg		eval supported=\$$cacheid
68227c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
68237c5adda3Smrgprintf "%s\n" "$supported" >&6; }
682421212451Smrg		if test "$supported" = "yes" ; then
682521212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
682621212451Smrg			found="yes"
682721212451Smrg		fi
682821212451Smrg	fi
682921212451Smrg
683021212451Smrg
683121212451Smrg
683221212451Smrg
683321212451Smrg
683421212451Smrg
683521212451Smrg
68366f02d4e9Smrg
68376f02d4e9Smrg
68386f02d4e9Smrg
68396f02d4e9Smrg
68406f02d4e9Smrg
68416f02d4e9Smrg
68426f02d4e9Smrg
68436f02d4e9Smrg
684421212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
684521212451Smrg
68466f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
684721212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68487c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
68497c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
68507c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
68517c5adda3Smrgthen :
68527c5adda3Smrg  printf %s "(cached) " >&6
68537c5adda3Smrgelse $as_nop
68546f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
685521212451Smrg/* end confdefs.h.  */
685621212451Smrgint i;
685721212451Smrg_ACEOF
68587c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
68597c5adda3Smrgthen :
68606f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
68617c5adda3Smrgelse $as_nop
68626f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
686321212451Smrgfi
68647c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
68656f02d4e9Smrgfi
68667c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
68677c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
68686f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
686921212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
687021212451Smrgfi
687121212451Smrg
68726f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
68736f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
687421212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
687521212451Smrg	fi
687621212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
68777c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
68787c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
68797c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
68807c5adda3Smrgthen :
68817c5adda3Smrg  printf %s "(cached) " >&6
68827c5adda3Smrgelse $as_nop
68836f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
688421212451Smrg/* end confdefs.h.  */
688521212451Smrgint i;
688621212451Smrg_ACEOF
68877c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
68887c5adda3Smrgthen :
68896f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
68907c5adda3Smrgelse $as_nop
68916f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
689221212451Smrgfi
68937c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
68946f02d4e9Smrgfi
68957c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
68967c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
68976f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
689821212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
689921212451Smrgfi
690021212451Smrg
690121212451Smrgfound="no"
690221212451Smrg
690321212451Smrg	if test $found = "no" ; then
69046f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
690521212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
690621212451Smrg		fi
690721212451Smrg
69086f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
690921212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
691021212451Smrg		fi
691121212451Smrg
69127253c0c7Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
691321212451Smrg
69147c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
69157c5adda3Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
69167253c0c7Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
69177c5adda3Smrg		if eval test \${$cacheid+y}
69187c5adda3Smrgthen :
69197c5adda3Smrg  printf %s "(cached) " >&6
69207c5adda3Smrgelse $as_nop
69216f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
692221212451Smrg/* end confdefs.h.  */
692321212451Smrgint i;
692421212451Smrgint
69257c5adda3Smrgmain (void)
69266f02d4e9Smrg{
692721212451Smrg
69286f02d4e9Smrg  ;
69296f02d4e9Smrg  return 0;
69306f02d4e9Smrg}
69316f02d4e9Smrg_ACEOF
69327c5adda3Smrgif ac_fn_c_try_link "$LINENO"
69337c5adda3Smrgthen :
69346f02d4e9Smrg  eval $cacheid=yes
69357c5adda3Smrgelse $as_nop
69366f02d4e9Smrg  eval $cacheid=no
69376f02d4e9Smrgfi
69387c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
69396f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
694021212451Smrgfi
694121212451Smrg
69426f02d4e9Smrg
694321212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
694421212451Smrg
69456f02d4e9Smrg		eval supported=\$$cacheid
69467c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
69477c5adda3Smrgprintf "%s\n" "$supported" >&6; }
694821212451Smrg		if test "$supported" = "yes" ; then
69497253c0c7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
695021212451Smrg			found="yes"
695121212451Smrg		fi
695221212451Smrg	fi
695321212451Smrg
695421212451Smrg
695521212451Smrg
695621212451Smrg
695721212451Smrg
695821212451Smrg
695921212451Smrg
69606f02d4e9Smrg
69616f02d4e9Smrg
69626f02d4e9Smrg
69636f02d4e9Smrg
69646f02d4e9Smrg
69656f02d4e9Smrg
69666f02d4e9Smrg
69676f02d4e9Smrg
696821212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
696921212451Smrg
69706f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
697121212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69727c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
69737c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
69747c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
69757c5adda3Smrgthen :
69767c5adda3Smrg  printf %s "(cached) " >&6
69777c5adda3Smrgelse $as_nop
69786f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
697921212451Smrg/* end confdefs.h.  */
698021212451Smrgint i;
698121212451Smrg_ACEOF
69827c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
69837c5adda3Smrgthen :
69846f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
69857c5adda3Smrgelse $as_nop
69866f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
698721212451Smrgfi
69887c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
69896f02d4e9Smrgfi
69907c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
69917c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
69926f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
699321212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
699421212451Smrgfi
699521212451Smrg
69966f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
69976f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
699821212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
699921212451Smrg	fi
700021212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
70017c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
70027c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
70037c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
70047c5adda3Smrgthen :
70057c5adda3Smrg  printf %s "(cached) " >&6
70067c5adda3Smrgelse $as_nop
70076f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
700821212451Smrg/* end confdefs.h.  */
700921212451Smrgint i;
701021212451Smrg_ACEOF
70117c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
70127c5adda3Smrgthen :
70136f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
70147c5adda3Smrgelse $as_nop
70156f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
701621212451Smrgfi
70177c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
70186f02d4e9Smrgfi
70197c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
70207c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
70216f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
702221212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
702321212451Smrgfi
702421212451Smrg
702521212451Smrgfound="no"
702621212451Smrg
702721212451Smrg	if test $found = "no" ; then
70286f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
702921212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
703021212451Smrg		fi
703121212451Smrg
70326f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
703321212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
703421212451Smrg		fi
703521212451Smrg
70367253c0c7Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
703721212451Smrg
70387c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
70397c5adda3Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
70407253c0c7Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
70417c5adda3Smrg		if eval test \${$cacheid+y}
70427c5adda3Smrgthen :
70437c5adda3Smrg  printf %s "(cached) " >&6
70447c5adda3Smrgelse $as_nop
70456f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
704621212451Smrg/* end confdefs.h.  */
704721212451Smrgint i;
704821212451Smrgint
70497c5adda3Smrgmain (void)
705021212451Smrg{
705121212451Smrg
705221212451Smrg  ;
705321212451Smrg  return 0;
705421212451Smrg}
705521212451Smrg_ACEOF
70567c5adda3Smrgif ac_fn_c_try_link "$LINENO"
70577c5adda3Smrgthen :
70586f02d4e9Smrg  eval $cacheid=yes
70597c5adda3Smrgelse $as_nop
70606f02d4e9Smrg  eval $cacheid=no
706121212451Smrgfi
70627c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
70636f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
70646f02d4e9Smrgfi
70656f02d4e9Smrg
706621212451Smrg
706721212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
706821212451Smrg
70696f02d4e9Smrg		eval supported=\$$cacheid
70707c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
70717c5adda3Smrgprintf "%s\n" "$supported" >&6; }
707221212451Smrg		if test "$supported" = "yes" ; then
70737253c0c7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
707421212451Smrg			found="yes"
707521212451Smrg		fi
707621212451Smrg	fi
707721212451Smrg
707821212451Smrg
707921212451Smrg
708021212451Smrg
708121212451Smrg
708221212451Smrg
708321212451Smrg
70846f02d4e9Smrg
70856f02d4e9Smrg
70866f02d4e9Smrg
70876f02d4e9Smrg
70886f02d4e9Smrg
70896f02d4e9Smrg
70906f02d4e9Smrg
70916f02d4e9Smrg
709221212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
709321212451Smrg
70946f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
709521212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70967c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
70977c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
70987c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
70997c5adda3Smrgthen :
71007c5adda3Smrg  printf %s "(cached) " >&6
71017c5adda3Smrgelse $as_nop
71026f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
710321212451Smrg/* end confdefs.h.  */
710421212451Smrgint i;
710521212451Smrg_ACEOF
71067c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
71077c5adda3Smrgthen :
71086f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
71097c5adda3Smrgelse $as_nop
71106f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
711121212451Smrgfi
71127c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
71136f02d4e9Smrgfi
71147c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
71157c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
71166f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
711721212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
711821212451Smrgfi
711921212451Smrg
71206f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
71216f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
712221212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
712321212451Smrg	fi
712421212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71257c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
71267c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
71277c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
71287c5adda3Smrgthen :
71297c5adda3Smrg  printf %s "(cached) " >&6
71307c5adda3Smrgelse $as_nop
71316f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
713221212451Smrg/* end confdefs.h.  */
713321212451Smrgint i;
713421212451Smrg_ACEOF
71357c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
71367c5adda3Smrgthen :
71376f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
71387c5adda3Smrgelse $as_nop
71396f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
714021212451Smrgfi
71417c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
71426f02d4e9Smrgfi
71437c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
71447c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
71456f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
714621212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
714721212451Smrgfi
714821212451Smrg
714921212451Smrgfound="no"
715021212451Smrg
715121212451Smrg	if test $found = "no" ; then
71526f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
715321212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
715421212451Smrg		fi
715521212451Smrg
71566f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
715721212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
715821212451Smrg		fi
715921212451Smrg
71607253c0c7Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
716121212451Smrg
71627c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
71637c5adda3Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
71647253c0c7Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
71657c5adda3Smrg		if eval test \${$cacheid+y}
71667c5adda3Smrgthen :
71677c5adda3Smrg  printf %s "(cached) " >&6
71687c5adda3Smrgelse $as_nop
71696f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
717021212451Smrg/* end confdefs.h.  */
717121212451Smrgint i;
717221212451Smrgint
71737c5adda3Smrgmain (void)
717421212451Smrg{
717521212451Smrg
717621212451Smrg  ;
717721212451Smrg  return 0;
717821212451Smrg}
717921212451Smrg_ACEOF
71807c5adda3Smrgif ac_fn_c_try_link "$LINENO"
71817c5adda3Smrgthen :
71826f02d4e9Smrg  eval $cacheid=yes
71837c5adda3Smrgelse $as_nop
71846f02d4e9Smrg  eval $cacheid=no
71856f02d4e9Smrgfi
71867c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
71876f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
718821212451Smrgfi
718921212451Smrg
71906f02d4e9Smrg
719121212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
719221212451Smrg
71936f02d4e9Smrg		eval supported=\$$cacheid
71947c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
71957c5adda3Smrgprintf "%s\n" "$supported" >&6; }
719621212451Smrg		if test "$supported" = "yes" ; then
71977253c0c7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
719821212451Smrg			found="yes"
719921212451Smrg		fi
720021212451Smrg	fi
720121212451Smrg
720221212451Smrg
720321212451Smrg
720421212451Smrg
720521212451Smrg
720621212451Smrg
720721212451Smrg
72086f02d4e9Smrg
72096f02d4e9Smrg
72106f02d4e9Smrg
72116f02d4e9Smrg
72126f02d4e9Smrg
72136f02d4e9Smrg
72146f02d4e9Smrg
72156f02d4e9Smrg
721621212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
721721212451Smrg
72186f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
721921212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72207c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
72217c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
72227c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
72237c5adda3Smrgthen :
72247c5adda3Smrg  printf %s "(cached) " >&6
72257c5adda3Smrgelse $as_nop
72266f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
722721212451Smrg/* end confdefs.h.  */
722821212451Smrgint i;
722921212451Smrg_ACEOF
72307c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
72317c5adda3Smrgthen :
72326f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
72337c5adda3Smrgelse $as_nop
72346f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
723521212451Smrgfi
72367c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
72376f02d4e9Smrgfi
72387c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
72397c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
72406f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
724121212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
724221212451Smrgfi
724321212451Smrg
72446f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
72456f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
724621212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
724721212451Smrg	fi
724821212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
72497c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
72507c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
72517c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
72527c5adda3Smrgthen :
72537c5adda3Smrg  printf %s "(cached) " >&6
72547c5adda3Smrgelse $as_nop
72556f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
725621212451Smrg/* end confdefs.h.  */
725721212451Smrgint i;
725821212451Smrg_ACEOF
72597c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
72607c5adda3Smrgthen :
72616f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
72627c5adda3Smrgelse $as_nop
72636f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
726421212451Smrgfi
72657c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
72666f02d4e9Smrgfi
72677c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
72687c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
72696f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
727021212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
727121212451Smrgfi
727221212451Smrg
727321212451Smrgfound="no"
727421212451Smrg
727521212451Smrg	if test $found = "no" ; then
72766f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
727721212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
727821212451Smrg		fi
727921212451Smrg
72806f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
728121212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
728221212451Smrg		fi
728321212451Smrg
72847253c0c7Smrg		CFLAGS="$CFLAGS -Wlogical-op"
728521212451Smrg
72867c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
72877c5adda3Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
72887253c0c7Smrg		cacheid=xorg_cv_cc_flag__Wlogical_op
72897c5adda3Smrg		if eval test \${$cacheid+y}
72907c5adda3Smrgthen :
72917c5adda3Smrg  printf %s "(cached) " >&6
72927c5adda3Smrgelse $as_nop
72936f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
729421212451Smrg/* end confdefs.h.  */
729521212451Smrgint i;
729621212451Smrgint
72977c5adda3Smrgmain (void)
729821212451Smrg{
729921212451Smrg
730021212451Smrg  ;
730121212451Smrg  return 0;
730221212451Smrg}
730321212451Smrg_ACEOF
73047c5adda3Smrgif ac_fn_c_try_link "$LINENO"
73057c5adda3Smrgthen :
73066f02d4e9Smrg  eval $cacheid=yes
73077c5adda3Smrgelse $as_nop
73086f02d4e9Smrg  eval $cacheid=no
730921212451Smrgfi
73107c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
73116f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
73126f02d4e9Smrgfi
73136f02d4e9Smrg
731421212451Smrg
731521212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
731621212451Smrg
73176f02d4e9Smrg		eval supported=\$$cacheid
73187c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
73197c5adda3Smrgprintf "%s\n" "$supported" >&6; }
732021212451Smrg		if test "$supported" = "yes" ; then
73217253c0c7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
732221212451Smrg			found="yes"
732321212451Smrg		fi
732421212451Smrg	fi
732521212451Smrg
732621212451Smrg
732721212451Smrg
732821212451Smrg# These are currently disabled because they are noisy.  They will be enabled
732921212451Smrg# in the future once the codebase is sufficiently modernized to silence
733021212451Smrg# them.  For now, I don't want them to drown out the other warnings.
73316f02d4e9Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
73326f02d4e9Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
73337253c0c7Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
733421212451Smrg
7335fd549268Smrg# Turn some warnings into errors, so we don't accidentally get successful builds
733621212451Smrg# when there are problems that should be fixed.
733721212451Smrg
733821212451Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
733921212451Smrg
734021212451Smrg
734121212451Smrg
734221212451Smrg
734321212451Smrg
73446f02d4e9Smrg
73456f02d4e9Smrg
73466f02d4e9Smrg
73476f02d4e9Smrg
73486f02d4e9Smrg
73496f02d4e9Smrg
73506f02d4e9Smrg
73516f02d4e9Smrg
735221212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
735321212451Smrg
73546f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
735521212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73567c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
73577c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
73587c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
73597c5adda3Smrgthen :
73607c5adda3Smrg  printf %s "(cached) " >&6
73617c5adda3Smrgelse $as_nop
73626f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
736321212451Smrg/* end confdefs.h.  */
736421212451Smrgint i;
736521212451Smrg_ACEOF
73667c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
73677c5adda3Smrgthen :
73686f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
73697c5adda3Smrgelse $as_nop
73706f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
737121212451Smrgfi
73727c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
73736f02d4e9Smrgfi
73747c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
73757c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
73766f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
737721212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
737821212451Smrgfi
737921212451Smrg
73806f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
73816f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
738221212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
738321212451Smrg	fi
738421212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73857c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
73867c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
73877c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
73887c5adda3Smrgthen :
73897c5adda3Smrg  printf %s "(cached) " >&6
73907c5adda3Smrgelse $as_nop
73916f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
739221212451Smrg/* end confdefs.h.  */
739321212451Smrgint i;
739421212451Smrg_ACEOF
73957c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
73967c5adda3Smrgthen :
73976f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
73987c5adda3Smrgelse $as_nop
73996f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
740021212451Smrgfi
74017c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
74026f02d4e9Smrgfi
74037c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
74047c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
74056f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
740621212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
740721212451Smrgfi
740821212451Smrg
740921212451Smrgfound="no"
741021212451Smrg
741121212451Smrg	if test $found = "no" ; then
74126f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
741321212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
741421212451Smrg		fi
741521212451Smrg
74166f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
741721212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
741821212451Smrg		fi
741921212451Smrg
742021212451Smrg		CFLAGS="$CFLAGS -Werror=implicit"
742121212451Smrg
74227c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
74237c5adda3Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
74247253c0c7Smrg		cacheid=xorg_cv_cc_flag__Werror_implicit
74257c5adda3Smrg		if eval test \${$cacheid+y}
74267c5adda3Smrgthen :
74277c5adda3Smrg  printf %s "(cached) " >&6
74287c5adda3Smrgelse $as_nop
74296f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
743021212451Smrg/* end confdefs.h.  */
743121212451Smrgint i;
743221212451Smrgint
74337c5adda3Smrgmain (void)
743421212451Smrg{
743521212451Smrg
743621212451Smrg  ;
743721212451Smrg  return 0;
743821212451Smrg}
743921212451Smrg_ACEOF
74407c5adda3Smrgif ac_fn_c_try_link "$LINENO"
74417c5adda3Smrgthen :
74426f02d4e9Smrg  eval $cacheid=yes
74437c5adda3Smrgelse $as_nop
74446f02d4e9Smrg  eval $cacheid=no
74456f02d4e9Smrgfi
74467c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
74476f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
744821212451Smrgfi
744921212451Smrg
74506f02d4e9Smrg
745121212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
745221212451Smrg
74536f02d4e9Smrg		eval supported=\$$cacheid
74547c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
74557c5adda3Smrgprintf "%s\n" "$supported" >&6; }
745621212451Smrg		if test "$supported" = "yes" ; then
745721212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
745821212451Smrg			found="yes"
745921212451Smrg		fi
746021212451Smrg	fi
746121212451Smrg
746221212451Smrg	if test $found = "no" ; then
74636f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
746421212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
746521212451Smrg		fi
746621212451Smrg
74676f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
746821212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
746921212451Smrg		fi
747021212451Smrg
747121212451Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
747221212451Smrg
74737c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
74747c5adda3Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
74757253c0c7Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
74767c5adda3Smrg		if eval test \${$cacheid+y}
74777c5adda3Smrgthen :
74787c5adda3Smrg  printf %s "(cached) " >&6
74797c5adda3Smrgelse $as_nop
74806f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
748121212451Smrg/* end confdefs.h.  */
748221212451Smrgint i;
748321212451Smrgint
74847c5adda3Smrgmain (void)
748521212451Smrg{
748621212451Smrg
748721212451Smrg  ;
748821212451Smrg  return 0;
748921212451Smrg}
749021212451Smrg_ACEOF
74917c5adda3Smrgif ac_fn_c_try_link "$LINENO"
74927c5adda3Smrgthen :
74936f02d4e9Smrg  eval $cacheid=yes
74947c5adda3Smrgelse $as_nop
74956f02d4e9Smrg  eval $cacheid=no
749621212451Smrgfi
74977c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
74986f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
74996f02d4e9Smrgfi
75006f02d4e9Smrg
750121212451Smrg
750221212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
750321212451Smrg
75046f02d4e9Smrg		eval supported=\$$cacheid
75057c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
75067c5adda3Smrgprintf "%s\n" "$supported" >&6; }
750721212451Smrg		if test "$supported" = "yes" ; then
750821212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
750921212451Smrg			found="yes"
751021212451Smrg		fi
751121212451Smrg	fi
751221212451Smrg
751321212451Smrg
751421212451Smrg
751521212451Smrg
751621212451Smrg
751721212451Smrg
751821212451Smrg
75196f02d4e9Smrg
75206f02d4e9Smrg
75216f02d4e9Smrg
75226f02d4e9Smrg
75236f02d4e9Smrg
75246f02d4e9Smrg
75256f02d4e9Smrg
75266f02d4e9Smrg
752721212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
752821212451Smrg
75296f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
753021212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75317c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
75327c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
75337c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
75347c5adda3Smrgthen :
75357c5adda3Smrg  printf %s "(cached) " >&6
75367c5adda3Smrgelse $as_nop
75376f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
753821212451Smrg/* end confdefs.h.  */
753921212451Smrgint i;
754021212451Smrg_ACEOF
75417c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
75427c5adda3Smrgthen :
75436f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
75447c5adda3Smrgelse $as_nop
75456f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
754621212451Smrgfi
75477c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
75486f02d4e9Smrgfi
75497c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
75507c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
75516f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
755221212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
755321212451Smrgfi
755421212451Smrg
75556f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
75566f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
755721212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
755821212451Smrg	fi
755921212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75607c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
75617c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
75627c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
75637c5adda3Smrgthen :
75647c5adda3Smrg  printf %s "(cached) " >&6
75657c5adda3Smrgelse $as_nop
75666f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
756721212451Smrg/* end confdefs.h.  */
756821212451Smrgint i;
756921212451Smrg_ACEOF
75707c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
75717c5adda3Smrgthen :
75726f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
75737c5adda3Smrgelse $as_nop
75746f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
757521212451Smrgfi
75767c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
75776f02d4e9Smrgfi
75787c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
75797c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
75806f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
758121212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
758221212451Smrgfi
758321212451Smrg
758421212451Smrgfound="no"
758521212451Smrg
758621212451Smrg	if test $found = "no" ; then
75876f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
758821212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
758921212451Smrg		fi
759021212451Smrg
75916f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
759221212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
759321212451Smrg		fi
759421212451Smrg
759521212451Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
759621212451Smrg
75977c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
75987c5adda3Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
75997253c0c7Smrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
76007c5adda3Smrg		if eval test \${$cacheid+y}
76017c5adda3Smrgthen :
76027c5adda3Smrg  printf %s "(cached) " >&6
76037c5adda3Smrgelse $as_nop
76046f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
760521212451Smrg/* end confdefs.h.  */
760621212451Smrgint i;
760721212451Smrgint
76087c5adda3Smrgmain (void)
760921212451Smrg{
761021212451Smrg
761121212451Smrg  ;
761221212451Smrg  return 0;
761321212451Smrg}
761421212451Smrg_ACEOF
76157c5adda3Smrgif ac_fn_c_try_link "$LINENO"
76167c5adda3Smrgthen :
76176f02d4e9Smrg  eval $cacheid=yes
76187c5adda3Smrgelse $as_nop
76196f02d4e9Smrg  eval $cacheid=no
76206f02d4e9Smrgfi
76217c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
76226f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
762321212451Smrgfi
762421212451Smrg
76256f02d4e9Smrg
762621212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
762721212451Smrg
76286f02d4e9Smrg		eval supported=\$$cacheid
76297c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
76307c5adda3Smrgprintf "%s\n" "$supported" >&6; }
763121212451Smrg		if test "$supported" = "yes" ; then
763221212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
763321212451Smrg			found="yes"
763421212451Smrg		fi
763521212451Smrg	fi
763621212451Smrg
763721212451Smrg
763821212451Smrg
763921212451Smrg
764021212451Smrg
764121212451Smrg
764221212451Smrg
76436f02d4e9Smrg
76446f02d4e9Smrg
76456f02d4e9Smrg
76466f02d4e9Smrg
76476f02d4e9Smrg
76486f02d4e9Smrg
76496f02d4e9Smrg
76506f02d4e9Smrg
765121212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
765221212451Smrg
76536f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
765421212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76557c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
76567c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
76577c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
76587c5adda3Smrgthen :
76597c5adda3Smrg  printf %s "(cached) " >&6
76607c5adda3Smrgelse $as_nop
76616f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
766221212451Smrg/* end confdefs.h.  */
766321212451Smrgint i;
766421212451Smrg_ACEOF
76657c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
76667c5adda3Smrgthen :
76676f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
76687c5adda3Smrgelse $as_nop
76696f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
767021212451Smrgfi
76717c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
76726f02d4e9Smrgfi
76737c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
76747c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
76756f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
767621212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
767721212451Smrgfi
767821212451Smrg
76796f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
76806f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
768121212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
768221212451Smrg	fi
768321212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
76847c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
76857c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
76867c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
76877c5adda3Smrgthen :
76887c5adda3Smrg  printf %s "(cached) " >&6
76897c5adda3Smrgelse $as_nop
76906f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
769121212451Smrg/* end confdefs.h.  */
769221212451Smrgint i;
769321212451Smrg_ACEOF
76947c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
76957c5adda3Smrgthen :
76966f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
76977c5adda3Smrgelse $as_nop
76986f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
769921212451Smrgfi
77007c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
77016f02d4e9Smrgfi
77027c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
77037c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
77046f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
770521212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
770621212451Smrgfi
770721212451Smrg
770821212451Smrgfound="no"
770921212451Smrg
771021212451Smrg	if test $found = "no" ; then
77116f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
771221212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
771321212451Smrg		fi
771421212451Smrg
77156f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
771621212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
771721212451Smrg		fi
771821212451Smrg
771921212451Smrg		CFLAGS="$CFLAGS -Werror=init-self"
772021212451Smrg
77217c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
77227c5adda3Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
77237253c0c7Smrg		cacheid=xorg_cv_cc_flag__Werror_init_self
77247c5adda3Smrg		if eval test \${$cacheid+y}
77257c5adda3Smrgthen :
77267c5adda3Smrg  printf %s "(cached) " >&6
77277c5adda3Smrgelse $as_nop
77286f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
772921212451Smrg/* end confdefs.h.  */
773021212451Smrgint i;
773121212451Smrgint
77327c5adda3Smrgmain (void)
773321212451Smrg{
773421212451Smrg
773521212451Smrg  ;
773621212451Smrg  return 0;
773721212451Smrg}
773821212451Smrg_ACEOF
77397c5adda3Smrgif ac_fn_c_try_link "$LINENO"
77407c5adda3Smrgthen :
77416f02d4e9Smrg  eval $cacheid=yes
77427c5adda3Smrgelse $as_nop
77436f02d4e9Smrg  eval $cacheid=no
774421212451Smrgfi
77457c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
77466f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
77476f02d4e9Smrgfi
77486f02d4e9Smrg
774921212451Smrg
775021212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
775121212451Smrg
77526f02d4e9Smrg		eval supported=\$$cacheid
77537c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
77547c5adda3Smrgprintf "%s\n" "$supported" >&6; }
775521212451Smrg		if test "$supported" = "yes" ; then
775621212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
775721212451Smrg			found="yes"
775821212451Smrg		fi
775921212451Smrg	fi
776021212451Smrg
776121212451Smrg
776221212451Smrg
776321212451Smrg
776421212451Smrg
776521212451Smrg
776621212451Smrg
77676f02d4e9Smrg
77686f02d4e9Smrg
77696f02d4e9Smrg
77706f02d4e9Smrg
77716f02d4e9Smrg
77726f02d4e9Smrg
77736f02d4e9Smrg
77746f02d4e9Smrg
777521212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
777621212451Smrg
77776f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
777821212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77797c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
77807c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
77817c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
77827c5adda3Smrgthen :
77837c5adda3Smrg  printf %s "(cached) " >&6
77847c5adda3Smrgelse $as_nop
77856f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
778621212451Smrg/* end confdefs.h.  */
778721212451Smrgint i;
778821212451Smrg_ACEOF
77897c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
77907c5adda3Smrgthen :
77916f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
77927c5adda3Smrgelse $as_nop
77936f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
779421212451Smrgfi
77957c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
77966f02d4e9Smrgfi
77977c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
77987c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
77996f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
780021212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
780121212451Smrgfi
780221212451Smrg
78036f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
78046f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
780521212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
780621212451Smrg	fi
780721212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
78087c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
78097c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
78107c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
78117c5adda3Smrgthen :
78127c5adda3Smrg  printf %s "(cached) " >&6
78137c5adda3Smrgelse $as_nop
78146f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
781521212451Smrg/* end confdefs.h.  */
781621212451Smrgint i;
781721212451Smrg_ACEOF
78187c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
78197c5adda3Smrgthen :
78206f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
78217c5adda3Smrgelse $as_nop
78226f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
782321212451Smrgfi
78247c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
78256f02d4e9Smrgfi
78267c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
78277c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
78286f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
782921212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
783021212451Smrgfi
783121212451Smrg
783221212451Smrgfound="no"
783321212451Smrg
783421212451Smrg	if test $found = "no" ; then
78356f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
783621212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
783721212451Smrg		fi
783821212451Smrg
78396f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
784021212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
784121212451Smrg		fi
784221212451Smrg
784321212451Smrg		CFLAGS="$CFLAGS -Werror=main"
784421212451Smrg
78457c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
78467c5adda3Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
78477253c0c7Smrg		cacheid=xorg_cv_cc_flag__Werror_main
78487c5adda3Smrg		if eval test \${$cacheid+y}
78497c5adda3Smrgthen :
78507c5adda3Smrg  printf %s "(cached) " >&6
78517c5adda3Smrgelse $as_nop
78526f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
785321212451Smrg/* end confdefs.h.  */
785421212451Smrgint i;
785521212451Smrgint
78567c5adda3Smrgmain (void)
785721212451Smrg{
785821212451Smrg
785921212451Smrg  ;
786021212451Smrg  return 0;
786121212451Smrg}
786221212451Smrg_ACEOF
78637c5adda3Smrgif ac_fn_c_try_link "$LINENO"
78647c5adda3Smrgthen :
78656f02d4e9Smrg  eval $cacheid=yes
78667c5adda3Smrgelse $as_nop
78676f02d4e9Smrg  eval $cacheid=no
78686f02d4e9Smrgfi
78697c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
78706f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
787121212451Smrgfi
787221212451Smrg
78736f02d4e9Smrg
787421212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
787521212451Smrg
78766f02d4e9Smrg		eval supported=\$$cacheid
78777c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
78787c5adda3Smrgprintf "%s\n" "$supported" >&6; }
787921212451Smrg		if test "$supported" = "yes" ; then
788021212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
788121212451Smrg			found="yes"
788221212451Smrg		fi
788321212451Smrg	fi
788421212451Smrg
788521212451Smrg
788621212451Smrg
788721212451Smrg
788821212451Smrg
788921212451Smrg
789021212451Smrg
78916f02d4e9Smrg
78926f02d4e9Smrg
78936f02d4e9Smrg
78946f02d4e9Smrg
78956f02d4e9Smrg
78966f02d4e9Smrg
78976f02d4e9Smrg
78986f02d4e9Smrg
789921212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
790021212451Smrg
79016f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
790221212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79037c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
79047c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
79057c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
79067c5adda3Smrgthen :
79077c5adda3Smrg  printf %s "(cached) " >&6
79087c5adda3Smrgelse $as_nop
79096f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
791021212451Smrg/* end confdefs.h.  */
791121212451Smrgint i;
791221212451Smrg_ACEOF
79137c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
79147c5adda3Smrgthen :
79156f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
79167c5adda3Smrgelse $as_nop
79176f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
791821212451Smrgfi
79197c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
79206f02d4e9Smrgfi
79217c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
79227c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
79236f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
792421212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
792521212451Smrgfi
792621212451Smrg
79276f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
79286f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
792921212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
793021212451Smrg	fi
793121212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79327c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
79337c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
79347c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
79357c5adda3Smrgthen :
79367c5adda3Smrg  printf %s "(cached) " >&6
79377c5adda3Smrgelse $as_nop
79386f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
793921212451Smrg/* end confdefs.h.  */
794021212451Smrgint i;
794121212451Smrg_ACEOF
79427c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
79437c5adda3Smrgthen :
79446f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
79457c5adda3Smrgelse $as_nop
79466f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
794721212451Smrgfi
79487c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
79496f02d4e9Smrgfi
79507c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
79517c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
79526f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
795321212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
795421212451Smrgfi
795521212451Smrg
795621212451Smrgfound="no"
795721212451Smrg
795821212451Smrg	if test $found = "no" ; then
79596f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
796021212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
796121212451Smrg		fi
796221212451Smrg
79636f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
796421212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
796521212451Smrg		fi
796621212451Smrg
796721212451Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
796821212451Smrg
79697c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
79707c5adda3Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
79717253c0c7Smrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
79727c5adda3Smrg		if eval test \${$cacheid+y}
79737c5adda3Smrgthen :
79747c5adda3Smrg  printf %s "(cached) " >&6
79757c5adda3Smrgelse $as_nop
79766f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
797721212451Smrg/* end confdefs.h.  */
797821212451Smrgint i;
797921212451Smrgint
79807c5adda3Smrgmain (void)
798121212451Smrg{
798221212451Smrg
798321212451Smrg  ;
798421212451Smrg  return 0;
798521212451Smrg}
798621212451Smrg_ACEOF
79877c5adda3Smrgif ac_fn_c_try_link "$LINENO"
79887c5adda3Smrgthen :
79896f02d4e9Smrg  eval $cacheid=yes
79907c5adda3Smrgelse $as_nop
79916f02d4e9Smrg  eval $cacheid=no
799221212451Smrgfi
79937c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
79946f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
79956f02d4e9Smrgfi
79966f02d4e9Smrg
799721212451Smrg
799821212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
799921212451Smrg
80006f02d4e9Smrg		eval supported=\$$cacheid
80017c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
80027c5adda3Smrgprintf "%s\n" "$supported" >&6; }
800321212451Smrg		if test "$supported" = "yes" ; then
800421212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
800521212451Smrg			found="yes"
800621212451Smrg		fi
800721212451Smrg	fi
800821212451Smrg
800921212451Smrg
801021212451Smrg
801121212451Smrg
801221212451Smrg
801321212451Smrg
801421212451Smrg
80156f02d4e9Smrg
80166f02d4e9Smrg
80176f02d4e9Smrg
80186f02d4e9Smrg
80196f02d4e9Smrg
80206f02d4e9Smrg
80216f02d4e9Smrg
80226f02d4e9Smrg
802321212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
802421212451Smrg
80256f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
802621212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80277c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
80287c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
80297c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
80307c5adda3Smrgthen :
80317c5adda3Smrg  printf %s "(cached) " >&6
80327c5adda3Smrgelse $as_nop
80336f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
803421212451Smrg/* end confdefs.h.  */
803521212451Smrgint i;
803621212451Smrg_ACEOF
80377c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
80387c5adda3Smrgthen :
80396f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
80407c5adda3Smrgelse $as_nop
80416f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
804221212451Smrgfi
80437c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
80446f02d4e9Smrgfi
80457c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
80467c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
80476f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
804821212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
804921212451Smrgfi
805021212451Smrg
80516f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
80526f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
805321212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
805421212451Smrg	fi
805521212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
80567c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
80577c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
80587c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
80597c5adda3Smrgthen :
80607c5adda3Smrg  printf %s "(cached) " >&6
80617c5adda3Smrgelse $as_nop
80626f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
806321212451Smrg/* end confdefs.h.  */
806421212451Smrgint i;
806521212451Smrg_ACEOF
80667c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
80677c5adda3Smrgthen :
80686f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
80697c5adda3Smrgelse $as_nop
80706f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
807121212451Smrgfi
80727c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
80736f02d4e9Smrgfi
80747c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
80757c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
80766f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
807721212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
807821212451Smrgfi
807921212451Smrg
808021212451Smrgfound="no"
808121212451Smrg
808221212451Smrg	if test $found = "no" ; then
80836f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
808421212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
808521212451Smrg		fi
808621212451Smrg
80876f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
808821212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
808921212451Smrg		fi
809021212451Smrg
809121212451Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
809221212451Smrg
80937c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
80947c5adda3Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
80957253c0c7Smrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
80967c5adda3Smrg		if eval test \${$cacheid+y}
80977c5adda3Smrgthen :
80987c5adda3Smrg  printf %s "(cached) " >&6
80997c5adda3Smrgelse $as_nop
81006f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
810121212451Smrg/* end confdefs.h.  */
810221212451Smrgint i;
810321212451Smrgint
81047c5adda3Smrgmain (void)
810521212451Smrg{
810621212451Smrg
810721212451Smrg  ;
810821212451Smrg  return 0;
810921212451Smrg}
811021212451Smrg_ACEOF
81117c5adda3Smrgif ac_fn_c_try_link "$LINENO"
81127c5adda3Smrgthen :
81136f02d4e9Smrg  eval $cacheid=yes
81147c5adda3Smrgelse $as_nop
81156f02d4e9Smrg  eval $cacheid=no
81166f02d4e9Smrgfi
81177c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
81186f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
811921212451Smrgfi
812021212451Smrg
81216f02d4e9Smrg
812221212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
812321212451Smrg
81246f02d4e9Smrg		eval supported=\$$cacheid
81257c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
81267c5adda3Smrgprintf "%s\n" "$supported" >&6; }
812721212451Smrg		if test "$supported" = "yes" ; then
812821212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
812921212451Smrg			found="yes"
813021212451Smrg		fi
813121212451Smrg	fi
813221212451Smrg
813321212451Smrg
813421212451Smrg
813521212451Smrg
813621212451Smrg
813721212451Smrg
813821212451Smrg
81396f02d4e9Smrg
81406f02d4e9Smrg
81416f02d4e9Smrg
81426f02d4e9Smrg
81436f02d4e9Smrg
81446f02d4e9Smrg
81456f02d4e9Smrg
81466f02d4e9Smrg
814721212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
814821212451Smrg
81496f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
815021212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81517c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
81527c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
81537c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
81547c5adda3Smrgthen :
81557c5adda3Smrg  printf %s "(cached) " >&6
81567c5adda3Smrgelse $as_nop
81576f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
815821212451Smrg/* end confdefs.h.  */
815921212451Smrgint i;
816021212451Smrg_ACEOF
81617c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
81627c5adda3Smrgthen :
81636f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
81647c5adda3Smrgelse $as_nop
81656f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
816621212451Smrgfi
81677c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
81686f02d4e9Smrgfi
81697c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
81707c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
81716f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
817221212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
817321212451Smrgfi
817421212451Smrg
81756f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
81766f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
817721212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
817821212451Smrg	fi
817921212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
81807c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
81817c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
81827c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
81837c5adda3Smrgthen :
81847c5adda3Smrg  printf %s "(cached) " >&6
81857c5adda3Smrgelse $as_nop
81866f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
818721212451Smrg/* end confdefs.h.  */
818821212451Smrgint i;
818921212451Smrg_ACEOF
81907c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
81917c5adda3Smrgthen :
81926f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
81937c5adda3Smrgelse $as_nop
81946f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
819521212451Smrgfi
81967c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
81976f02d4e9Smrgfi
81987c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
81997c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
82006f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
820121212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
820221212451Smrgfi
820321212451Smrg
820421212451Smrgfound="no"
820521212451Smrg
820621212451Smrg	if test $found = "no" ; then
82076f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
820821212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
820921212451Smrg		fi
821021212451Smrg
82116f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
821221212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
821321212451Smrg		fi
821421212451Smrg
821521212451Smrg		CFLAGS="$CFLAGS -Werror=return-type"
821621212451Smrg
82177c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
82187c5adda3Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
82197253c0c7Smrg		cacheid=xorg_cv_cc_flag__Werror_return_type
82207c5adda3Smrg		if eval test \${$cacheid+y}
82217c5adda3Smrgthen :
82227c5adda3Smrg  printf %s "(cached) " >&6
82237c5adda3Smrgelse $as_nop
82246f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
822521212451Smrg/* end confdefs.h.  */
822621212451Smrgint i;
822721212451Smrgint
82287c5adda3Smrgmain (void)
822921212451Smrg{
823021212451Smrg
823121212451Smrg  ;
823221212451Smrg  return 0;
823321212451Smrg}
823421212451Smrg_ACEOF
82357c5adda3Smrgif ac_fn_c_try_link "$LINENO"
82367c5adda3Smrgthen :
82376f02d4e9Smrg  eval $cacheid=yes
82387c5adda3Smrgelse $as_nop
82396f02d4e9Smrg  eval $cacheid=no
824021212451Smrgfi
82417c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
82426f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
82436f02d4e9Smrgfi
82446f02d4e9Smrg
824521212451Smrg
824621212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
824721212451Smrg
82486f02d4e9Smrg		eval supported=\$$cacheid
82497c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
82507c5adda3Smrgprintf "%s\n" "$supported" >&6; }
825121212451Smrg		if test "$supported" = "yes" ; then
825221212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
825321212451Smrg			found="yes"
825421212451Smrg		fi
825521212451Smrg	fi
825621212451Smrg
825721212451Smrg	if test $found = "no" ; then
82586f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
825921212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
826021212451Smrg		fi
826121212451Smrg
82626f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
826321212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
826421212451Smrg		fi
826521212451Smrg
826621212451Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
826721212451Smrg
82687c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
82697c5adda3Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
82707253c0c7Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
82717c5adda3Smrg		if eval test \${$cacheid+y}
82727c5adda3Smrgthen :
82737c5adda3Smrg  printf %s "(cached) " >&6
82747c5adda3Smrgelse $as_nop
82756f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
827621212451Smrg/* end confdefs.h.  */
827721212451Smrgint i;
827821212451Smrgint
82797c5adda3Smrgmain (void)
82806f02d4e9Smrg{
828121212451Smrg
82826f02d4e9Smrg  ;
82836f02d4e9Smrg  return 0;
82846f02d4e9Smrg}
82856f02d4e9Smrg_ACEOF
82867c5adda3Smrgif ac_fn_c_try_link "$LINENO"
82877c5adda3Smrgthen :
82886f02d4e9Smrg  eval $cacheid=yes
82897c5adda3Smrgelse $as_nop
82906f02d4e9Smrg  eval $cacheid=no
82916f02d4e9Smrgfi
82927c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
82936f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
829421212451Smrgfi
829521212451Smrg
82966f02d4e9Smrg
829721212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
829821212451Smrg
82996f02d4e9Smrg		eval supported=\$$cacheid
83007c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
83017c5adda3Smrgprintf "%s\n" "$supported" >&6; }
830221212451Smrg		if test "$supported" = "yes" ; then
830321212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
830421212451Smrg			found="yes"
830521212451Smrg		fi
830621212451Smrg	fi
830721212451Smrg
830821212451Smrg
830921212451Smrg
831021212451Smrg
831121212451Smrg
831221212451Smrg
831321212451Smrg
83146f02d4e9Smrg
83156f02d4e9Smrg
83166f02d4e9Smrg
83176f02d4e9Smrg
83186f02d4e9Smrg
83196f02d4e9Smrg
83206f02d4e9Smrg
83216f02d4e9Smrg
832221212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
832321212451Smrg
83246f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
832521212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83267c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
83277c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
83287c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
83297c5adda3Smrgthen :
83307c5adda3Smrg  printf %s "(cached) " >&6
83317c5adda3Smrgelse $as_nop
83326f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
833321212451Smrg/* end confdefs.h.  */
833421212451Smrgint i;
833521212451Smrg_ACEOF
83367c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
83377c5adda3Smrgthen :
83386f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
83397c5adda3Smrgelse $as_nop
83406f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
834121212451Smrgfi
83427c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
83436f02d4e9Smrgfi
83447c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
83457c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
83466f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
834721212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
834821212451Smrgfi
834921212451Smrg
83506f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
83516f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
835221212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
835321212451Smrg	fi
835421212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83557c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
83567c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
83577c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
83587c5adda3Smrgthen :
83597c5adda3Smrg  printf %s "(cached) " >&6
83607c5adda3Smrgelse $as_nop
83616f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
836221212451Smrg/* end confdefs.h.  */
836321212451Smrgint i;
836421212451Smrg_ACEOF
83657c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
83667c5adda3Smrgthen :
83676f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
83687c5adda3Smrgelse $as_nop
83696f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
837021212451Smrgfi
83717c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
83726f02d4e9Smrgfi
83737c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
83747c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
83756f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
837621212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
837721212451Smrgfi
837821212451Smrg
837921212451Smrgfound="no"
838021212451Smrg
838121212451Smrg	if test $found = "no" ; then
83826f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
838321212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
838421212451Smrg		fi
838521212451Smrg
83866f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
838721212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
838821212451Smrg		fi
838921212451Smrg
839021212451Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
839121212451Smrg
83927c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
83937c5adda3Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
83947253c0c7Smrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
83957c5adda3Smrg		if eval test \${$cacheid+y}
83967c5adda3Smrgthen :
83977c5adda3Smrg  printf %s "(cached) " >&6
83987c5adda3Smrgelse $as_nop
83996f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
840021212451Smrg/* end confdefs.h.  */
840121212451Smrgint i;
840221212451Smrgint
84037c5adda3Smrgmain (void)
840421212451Smrg{
840521212451Smrg
840621212451Smrg  ;
840721212451Smrg  return 0;
840821212451Smrg}
840921212451Smrg_ACEOF
84107c5adda3Smrgif ac_fn_c_try_link "$LINENO"
84117c5adda3Smrgthen :
84126f02d4e9Smrg  eval $cacheid=yes
84137c5adda3Smrgelse $as_nop
84146f02d4e9Smrg  eval $cacheid=no
841521212451Smrgfi
84167c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
84176f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
84186f02d4e9Smrgfi
84196f02d4e9Smrg
842021212451Smrg
842121212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
842221212451Smrg
84236f02d4e9Smrg		eval supported=\$$cacheid
84247c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
84257c5adda3Smrgprintf "%s\n" "$supported" >&6; }
842621212451Smrg		if test "$supported" = "yes" ; then
842721212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
842821212451Smrg			found="yes"
842921212451Smrg		fi
843021212451Smrg	fi
843121212451Smrg
843221212451Smrg
843321212451Smrg
843421212451Smrg
843521212451Smrg
843621212451Smrg
843721212451Smrg
84386f02d4e9Smrg
84396f02d4e9Smrg
84406f02d4e9Smrg
84416f02d4e9Smrg
84426f02d4e9Smrg
84436f02d4e9Smrg
84446f02d4e9Smrg
84456f02d4e9Smrg
844621212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
844721212451Smrg
84486f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
844921212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84507c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
84517c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
84527c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
84537c5adda3Smrgthen :
84547c5adda3Smrg  printf %s "(cached) " >&6
84557c5adda3Smrgelse $as_nop
84566f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
845721212451Smrg/* end confdefs.h.  */
845821212451Smrgint i;
845921212451Smrg_ACEOF
84607c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
84617c5adda3Smrgthen :
84626f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
84637c5adda3Smrgelse $as_nop
84646f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
846521212451Smrgfi
84667c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
84676f02d4e9Smrgfi
84687c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
84697c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
84706f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
847121212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
847221212451Smrgfi
847321212451Smrg
84746f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
84756f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
847621212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
847721212451Smrg	fi
847821212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84797c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
84807c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
84817c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
84827c5adda3Smrgthen :
84837c5adda3Smrg  printf %s "(cached) " >&6
84847c5adda3Smrgelse $as_nop
84856f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
848621212451Smrg/* end confdefs.h.  */
848721212451Smrgint i;
848821212451Smrg_ACEOF
84897c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
84907c5adda3Smrgthen :
84916f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
84927c5adda3Smrgelse $as_nop
84936f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
849421212451Smrgfi
84957c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
84966f02d4e9Smrgfi
84977c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
84987c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
84996f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
850021212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
850121212451Smrgfi
850221212451Smrg
850321212451Smrgfound="no"
850421212451Smrg
850521212451Smrg	if test $found = "no" ; then
85066f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
850721212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
850821212451Smrg		fi
850921212451Smrg
85106f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
851121212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
851221212451Smrg		fi
851321212451Smrg
851421212451Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
851521212451Smrg
85167c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
85177c5adda3Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
85187253c0c7Smrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
85197c5adda3Smrg		if eval test \${$cacheid+y}
85207c5adda3Smrgthen :
85217c5adda3Smrg  printf %s "(cached) " >&6
85227c5adda3Smrgelse $as_nop
85236f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
852421212451Smrg/* end confdefs.h.  */
852521212451Smrgint i;
852621212451Smrgint
85277c5adda3Smrgmain (void)
852821212451Smrg{
852921212451Smrg
853021212451Smrg  ;
853121212451Smrg  return 0;
853221212451Smrg}
853321212451Smrg_ACEOF
85347c5adda3Smrgif ac_fn_c_try_link "$LINENO"
85357c5adda3Smrgthen :
85366f02d4e9Smrg  eval $cacheid=yes
85377c5adda3Smrgelse $as_nop
85386f02d4e9Smrg  eval $cacheid=no
85396f02d4e9Smrgfi
85407c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
85416f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
854221212451Smrgfi
854321212451Smrg
85446f02d4e9Smrg
854521212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
854621212451Smrg
85476f02d4e9Smrg		eval supported=\$$cacheid
85487c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
85497c5adda3Smrgprintf "%s\n" "$supported" >&6; }
855021212451Smrg		if test "$supported" = "yes" ; then
855121212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
855221212451Smrg			found="yes"
855321212451Smrg		fi
855421212451Smrg	fi
855521212451Smrg
855621212451Smrg
855721212451Smrg
855821212451Smrg
855921212451Smrg
856021212451Smrg
856121212451Smrg
85626f02d4e9Smrg
85636f02d4e9Smrg
85646f02d4e9Smrg
85656f02d4e9Smrg
85666f02d4e9Smrg
85676f02d4e9Smrg
85686f02d4e9Smrg
85696f02d4e9Smrg
857021212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
857121212451Smrg
85726f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
857321212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85747c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
85757c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
85767c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
85777c5adda3Smrgthen :
85787c5adda3Smrg  printf %s "(cached) " >&6
85797c5adda3Smrgelse $as_nop
85806f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
858121212451Smrg/* end confdefs.h.  */
858221212451Smrgint i;
858321212451Smrg_ACEOF
85847c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
85857c5adda3Smrgthen :
85866f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
85877c5adda3Smrgelse $as_nop
85886f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
858921212451Smrgfi
85907c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
85916f02d4e9Smrgfi
85927c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
85937c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
85946f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
859521212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
859621212451Smrgfi
859721212451Smrg
85986f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
85996f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
860021212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
860121212451Smrg	fi
860221212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
86037c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
86047c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
86057c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
86067c5adda3Smrgthen :
86077c5adda3Smrg  printf %s "(cached) " >&6
86087c5adda3Smrgelse $as_nop
86096f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
861021212451Smrg/* end confdefs.h.  */
861121212451Smrgint i;
861221212451Smrg_ACEOF
86137c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
86147c5adda3Smrgthen :
86156f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
86167c5adda3Smrgelse $as_nop
86176f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
861821212451Smrgfi
86197c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
86206f02d4e9Smrgfi
86217c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
86227c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
86236f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
862421212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
862521212451Smrgfi
862621212451Smrg
862721212451Smrgfound="no"
862821212451Smrg
862921212451Smrg	if test $found = "no" ; then
86306f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
863121212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
863221212451Smrg		fi
863321212451Smrg
86346f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
863521212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
863621212451Smrg		fi
863721212451Smrg
863821212451Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
863921212451Smrg
86407c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
86417c5adda3Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
86427253c0c7Smrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
86437c5adda3Smrg		if eval test \${$cacheid+y}
86447c5adda3Smrgthen :
86457c5adda3Smrg  printf %s "(cached) " >&6
86467c5adda3Smrgelse $as_nop
86476f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
864821212451Smrg/* end confdefs.h.  */
864921212451Smrgint i;
865021212451Smrgint
86517c5adda3Smrgmain (void)
865221212451Smrg{
865321212451Smrg
865421212451Smrg  ;
865521212451Smrg  return 0;
865621212451Smrg}
865721212451Smrg_ACEOF
86587c5adda3Smrgif ac_fn_c_try_link "$LINENO"
86597c5adda3Smrgthen :
86606f02d4e9Smrg  eval $cacheid=yes
86617c5adda3Smrgelse $as_nop
86626f02d4e9Smrg  eval $cacheid=no
866321212451Smrgfi
86647c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
86656f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
86666f02d4e9Smrgfi
86676f02d4e9Smrg
866821212451Smrg
866921212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
867021212451Smrg
86716f02d4e9Smrg		eval supported=\$$cacheid
86727c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
86737c5adda3Smrgprintf "%s\n" "$supported" >&6; }
867421212451Smrg		if test "$supported" = "yes" ; then
867521212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
867621212451Smrg			found="yes"
867721212451Smrg		fi
867821212451Smrg	fi
867921212451Smrg
868021212451Smrg
868121212451Smrg
868221212451Smrg
868321212451Smrg
868421212451Smrg
868521212451Smrg
86866f02d4e9Smrg
86876f02d4e9Smrg
86886f02d4e9Smrg
86896f02d4e9Smrg
86906f02d4e9Smrg
86916f02d4e9Smrg
86926f02d4e9Smrg
86936f02d4e9Smrg
869421212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
869521212451Smrg
86966f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
869721212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86987c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
86997c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
87007c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
87017c5adda3Smrgthen :
87027c5adda3Smrg  printf %s "(cached) " >&6
87037c5adda3Smrgelse $as_nop
87046f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
870521212451Smrg/* end confdefs.h.  */
870621212451Smrgint i;
870721212451Smrg_ACEOF
87087c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
87097c5adda3Smrgthen :
87106f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
87117c5adda3Smrgelse $as_nop
87126f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
871321212451Smrgfi
87147c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
87156f02d4e9Smrgfi
87167c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
87177c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
87186f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
871921212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
872021212451Smrgfi
872121212451Smrg
87226f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
87236f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
872421212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
872521212451Smrg	fi
872621212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
87277c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
87287c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
87297c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
87307c5adda3Smrgthen :
87317c5adda3Smrg  printf %s "(cached) " >&6
87327c5adda3Smrgelse $as_nop
87336f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
873421212451Smrg/* end confdefs.h.  */
873521212451Smrgint i;
873621212451Smrg_ACEOF
87377c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
87387c5adda3Smrgthen :
87396f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
87407c5adda3Smrgelse $as_nop
87416f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
874221212451Smrgfi
87437c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
87446f02d4e9Smrgfi
87457c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
87467c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
87476f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
874821212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
874921212451Smrgfi
875021212451Smrg
875121212451Smrgfound="no"
875221212451Smrg
875321212451Smrg	if test $found = "no" ; then
87546f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
875521212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
875621212451Smrg		fi
875721212451Smrg
87586f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
875921212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
876021212451Smrg		fi
876121212451Smrg
876221212451Smrg		CFLAGS="$CFLAGS -Werror=address"
876321212451Smrg
87647c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
87657c5adda3Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
87667253c0c7Smrg		cacheid=xorg_cv_cc_flag__Werror_address
87677c5adda3Smrg		if eval test \${$cacheid+y}
87687c5adda3Smrgthen :
87697c5adda3Smrg  printf %s "(cached) " >&6
87707c5adda3Smrgelse $as_nop
87716f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
877221212451Smrg/* end confdefs.h.  */
877321212451Smrgint i;
877421212451Smrgint
87757c5adda3Smrgmain (void)
877621212451Smrg{
877721212451Smrg
877821212451Smrg  ;
877921212451Smrg  return 0;
878021212451Smrg}
878121212451Smrg_ACEOF
87827c5adda3Smrgif ac_fn_c_try_link "$LINENO"
87837c5adda3Smrgthen :
87846f02d4e9Smrg  eval $cacheid=yes
87857c5adda3Smrgelse $as_nop
87866f02d4e9Smrg  eval $cacheid=no
87876f02d4e9Smrgfi
87887c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
87896f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
879021212451Smrgfi
879121212451Smrg
87926f02d4e9Smrg
879321212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
879421212451Smrg
87956f02d4e9Smrg		eval supported=\$$cacheid
87967c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
87977c5adda3Smrgprintf "%s\n" "$supported" >&6; }
879821212451Smrg		if test "$supported" = "yes" ; then
879921212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
880021212451Smrg			found="yes"
880121212451Smrg		fi
880221212451Smrg	fi
880321212451Smrg
880421212451Smrg
880521212451Smrg
880621212451Smrg
880721212451Smrg
880821212451Smrg
880921212451Smrg
88106f02d4e9Smrg
88116f02d4e9Smrg
88126f02d4e9Smrg
88136f02d4e9Smrg
88146f02d4e9Smrg
88156f02d4e9Smrg
88166f02d4e9Smrg
88176f02d4e9Smrg
881821212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
881921212451Smrg
88206f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
882121212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88227c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
88237c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
88247c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
88257c5adda3Smrgthen :
88267c5adda3Smrg  printf %s "(cached) " >&6
88277c5adda3Smrgelse $as_nop
88286f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
882921212451Smrg/* end confdefs.h.  */
883021212451Smrgint i;
883121212451Smrg_ACEOF
88327c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
88337c5adda3Smrgthen :
88346f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
88357c5adda3Smrgelse $as_nop
88366f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
883721212451Smrgfi
88387c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
88396f02d4e9Smrgfi
88407c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
88417c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
88426f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
884321212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
884421212451Smrgfi
884521212451Smrg
88466f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
88476f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
884821212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
884921212451Smrg	fi
885021212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
88517c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
88527c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
88537c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
88547c5adda3Smrgthen :
88557c5adda3Smrg  printf %s "(cached) " >&6
88567c5adda3Smrgelse $as_nop
88576f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
885821212451Smrg/* end confdefs.h.  */
885921212451Smrgint i;
886021212451Smrg_ACEOF
88617c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
88627c5adda3Smrgthen :
88636f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
88647c5adda3Smrgelse $as_nop
88656f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
886621212451Smrgfi
88677c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
88686f02d4e9Smrgfi
88697c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
88707c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
88716f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
887221212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
887321212451Smrgfi
887421212451Smrg
887521212451Smrgfound="no"
887621212451Smrg
887721212451Smrg	if test $found = "no" ; then
88786f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
887921212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
888021212451Smrg		fi
888121212451Smrg
88826f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
888321212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
888421212451Smrg		fi
888521212451Smrg
888621212451Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
888721212451Smrg
88887c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
88897c5adda3Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
88907253c0c7Smrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
88917c5adda3Smrg		if eval test \${$cacheid+y}
88927c5adda3Smrgthen :
88937c5adda3Smrg  printf %s "(cached) " >&6
88947c5adda3Smrgelse $as_nop
88956f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
889621212451Smrg/* end confdefs.h.  */
889721212451Smrgint i;
889821212451Smrgint
88997c5adda3Smrgmain (void)
890021212451Smrg{
890121212451Smrg
890221212451Smrg  ;
890321212451Smrg  return 0;
890421212451Smrg}
890521212451Smrg_ACEOF
89067c5adda3Smrgif ac_fn_c_try_link "$LINENO"
89077c5adda3Smrgthen :
89086f02d4e9Smrg  eval $cacheid=yes
89097c5adda3Smrgelse $as_nop
89106f02d4e9Smrg  eval $cacheid=no
891121212451Smrgfi
89127c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
89136f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
89146f02d4e9Smrgfi
89156f02d4e9Smrg
891621212451Smrg
891721212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
891821212451Smrg
89196f02d4e9Smrg		eval supported=\$$cacheid
89207c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
89217c5adda3Smrgprintf "%s\n" "$supported" >&6; }
892221212451Smrg		if test "$supported" = "yes" ; then
892321212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
892421212451Smrg			found="yes"
892521212451Smrg		fi
892621212451Smrg	fi
892721212451Smrg
892821212451Smrg	if test $found = "no" ; then
89296f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
893021212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
893121212451Smrg		fi
893221212451Smrg
89336f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
893421212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
893521212451Smrg		fi
893621212451Smrg
893721212451Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
893821212451Smrg
89397c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
89407c5adda3Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
89417253c0c7Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
89427c5adda3Smrg		if eval test \${$cacheid+y}
89437c5adda3Smrgthen :
89447c5adda3Smrg  printf %s "(cached) " >&6
89457c5adda3Smrgelse $as_nop
89466f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
894721212451Smrg/* end confdefs.h.  */
894821212451Smrgint i;
894921212451Smrgint
89507c5adda3Smrgmain (void)
895121212451Smrg{
895221212451Smrg
895321212451Smrg  ;
895421212451Smrg  return 0;
895521212451Smrg}
895621212451Smrg_ACEOF
89577c5adda3Smrgif ac_fn_c_try_link "$LINENO"
89587c5adda3Smrgthen :
89596f02d4e9Smrg  eval $cacheid=yes
89607c5adda3Smrgelse $as_nop
89616f02d4e9Smrg  eval $cacheid=no
89626f02d4e9Smrgfi
89637c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
89646f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
896521212451Smrgfi
896621212451Smrg
89676f02d4e9Smrg
896821212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
896921212451Smrg
89706f02d4e9Smrg		eval supported=\$$cacheid
89717c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
89727c5adda3Smrgprintf "%s\n" "$supported" >&6; }
897321212451Smrg		if test "$supported" = "yes" ; then
897421212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
897521212451Smrg			found="yes"
897621212451Smrg		fi
897721212451Smrg	fi
897821212451Smrg
897921212451Smrg
898021212451Smrg
898121212451Smrg
898221212451Smrg
898321212451Smrg
898421212451Smrg
89856f02d4e9Smrg
89866f02d4e9Smrg
89876f02d4e9Smrg
89886f02d4e9Smrg
89896f02d4e9Smrg
89906f02d4e9Smrg
89916f02d4e9Smrg
89926f02d4e9Smrg
899321212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
899421212451Smrg
89956f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
899621212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89977c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
89987c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
89997c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
90007c5adda3Smrgthen :
90017c5adda3Smrg  printf %s "(cached) " >&6
90027c5adda3Smrgelse $as_nop
90036f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
900421212451Smrg/* end confdefs.h.  */
900521212451Smrgint i;
900621212451Smrg_ACEOF
90077c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
90087c5adda3Smrgthen :
90096f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
90107c5adda3Smrgelse $as_nop
90116f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
901221212451Smrgfi
90137c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
90146f02d4e9Smrgfi
90157c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
90167c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
90176f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
901821212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
901921212451Smrgfi
902021212451Smrg
90216f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
90226f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
902321212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
902421212451Smrg	fi
902521212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
90267c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
90277c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
90287c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
90297c5adda3Smrgthen :
90307c5adda3Smrg  printf %s "(cached) " >&6
90317c5adda3Smrgelse $as_nop
90326f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
903321212451Smrg/* end confdefs.h.  */
903421212451Smrgint i;
903521212451Smrg_ACEOF
90367c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
90377c5adda3Smrgthen :
90386f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
90397c5adda3Smrgelse $as_nop
90406f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
904121212451Smrgfi
90427c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
90436f02d4e9Smrgfi
90447c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
90457c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
90466f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
904721212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
904821212451Smrgfi
904921212451Smrg
905021212451Smrgfound="no"
905121212451Smrg
905221212451Smrg	if test $found = "no" ; then
90536f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
905421212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
905521212451Smrg		fi
905621212451Smrg
90576f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
905821212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
905921212451Smrg		fi
906021212451Smrg
906121212451Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
906221212451Smrg
90637c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
90647c5adda3Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
90657253c0c7Smrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
90667c5adda3Smrg		if eval test \${$cacheid+y}
90677c5adda3Smrgthen :
90687c5adda3Smrg  printf %s "(cached) " >&6
90697c5adda3Smrgelse $as_nop
90706f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
907121212451Smrg/* end confdefs.h.  */
907221212451Smrgint i;
907321212451Smrgint
90747c5adda3Smrgmain (void)
907521212451Smrg{
907621212451Smrg
907721212451Smrg  ;
907821212451Smrg  return 0;
907921212451Smrg}
908021212451Smrg_ACEOF
90817c5adda3Smrgif ac_fn_c_try_link "$LINENO"
90827c5adda3Smrgthen :
90836f02d4e9Smrg  eval $cacheid=yes
90847c5adda3Smrgelse $as_nop
90856f02d4e9Smrg  eval $cacheid=no
908621212451Smrgfi
90877c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
90886f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
90896f02d4e9Smrgfi
90906f02d4e9Smrg
909121212451Smrg
909221212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
909321212451Smrg
90946f02d4e9Smrg		eval supported=\$$cacheid
90957c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
90967c5adda3Smrgprintf "%s\n" "$supported" >&6; }
909721212451Smrg		if test "$supported" = "yes" ; then
909821212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
909921212451Smrg			found="yes"
910021212451Smrg		fi
910121212451Smrg	fi
910221212451Smrg
910321212451Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
910421212451Smrgelse
91057c5adda3Smrg{ printf "%s\n" "$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
91067c5adda3Smrgprintf "%s\n" "$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;}
91076f02d4e9Smrg
91086f02d4e9Smrg
91096f02d4e9Smrg
91106f02d4e9Smrg
91116f02d4e9Smrg
91126f02d4e9Smrg
91136f02d4e9Smrg
91146f02d4e9Smrg
911521212451Smrg
911621212451Smrg
911721212451Smrg
911821212451Smrg
911921212451Smrg
912021212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
912121212451Smrg
91226f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
912321212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91247c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
91257c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
91267c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
91277c5adda3Smrgthen :
91287c5adda3Smrg  printf %s "(cached) " >&6
91297c5adda3Smrgelse $as_nop
91306f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
913121212451Smrg/* end confdefs.h.  */
913221212451Smrgint i;
913321212451Smrg_ACEOF
91347c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
91357c5adda3Smrgthen :
91366f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
91377c5adda3Smrgelse $as_nop
91386f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
913921212451Smrgfi
91407c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
91416f02d4e9Smrgfi
91427c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
91437c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
91446f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
914521212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
914621212451Smrgfi
914721212451Smrg
91486f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
91496f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
915021212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
915121212451Smrg	fi
915221212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
91537c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
91547c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
91557c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
91567c5adda3Smrgthen :
91577c5adda3Smrg  printf %s "(cached) " >&6
91587c5adda3Smrgelse $as_nop
91596f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
916021212451Smrg/* end confdefs.h.  */
916121212451Smrgint i;
916221212451Smrg_ACEOF
91637c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
91647c5adda3Smrgthen :
91656f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
91667c5adda3Smrgelse $as_nop
91676f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
916821212451Smrgfi
91697c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
91706f02d4e9Smrgfi
91717c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
91727c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
91736f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
917421212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
917521212451Smrgfi
917621212451Smrg
917721212451Smrgfound="no"
917821212451Smrg
917921212451Smrg	if test $found = "no" ; then
91806f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
918121212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
918221212451Smrg		fi
918321212451Smrg
91846f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
918521212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
918621212451Smrg		fi
918721212451Smrg
918821212451Smrg		CFLAGS="$CFLAGS -Wimplicit"
918921212451Smrg
91907c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
91917c5adda3Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
91926f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
91937c5adda3Smrg		if eval test \${$cacheid+y}
91947c5adda3Smrgthen :
91957c5adda3Smrg  printf %s "(cached) " >&6
91967c5adda3Smrgelse $as_nop
91976f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
919821212451Smrg/* end confdefs.h.  */
919921212451Smrgint i;
920021212451Smrgint
92017c5adda3Smrgmain (void)
920221212451Smrg{
920321212451Smrg
920421212451Smrg  ;
920521212451Smrg  return 0;
920621212451Smrg}
920721212451Smrg_ACEOF
92087c5adda3Smrgif ac_fn_c_try_link "$LINENO"
92097c5adda3Smrgthen :
92106f02d4e9Smrg  eval $cacheid=yes
92117c5adda3Smrgelse $as_nop
92126f02d4e9Smrg  eval $cacheid=no
92136f02d4e9Smrgfi
92147c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
92156f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
921621212451Smrgfi
921721212451Smrg
92186f02d4e9Smrg
921921212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
922021212451Smrg
92216f02d4e9Smrg		eval supported=\$$cacheid
92227c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
92237c5adda3Smrgprintf "%s\n" "$supported" >&6; }
922421212451Smrg		if test "$supported" = "yes" ; then
922521212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
922621212451Smrg			found="yes"
922721212451Smrg		fi
922821212451Smrg	fi
922921212451Smrg
923021212451Smrg
923121212451Smrg
923221212451Smrg
923321212451Smrg
923421212451Smrg
923521212451Smrg
92366f02d4e9Smrg
92376f02d4e9Smrg
92386f02d4e9Smrg
92396f02d4e9Smrg
92406f02d4e9Smrg
92416f02d4e9Smrg
92426f02d4e9Smrg
92436f02d4e9Smrg
924421212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
924521212451Smrg
92466f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
924721212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92487c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
92497c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
92507c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
92517c5adda3Smrgthen :
92527c5adda3Smrg  printf %s "(cached) " >&6
92537c5adda3Smrgelse $as_nop
92546f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
925521212451Smrg/* end confdefs.h.  */
925621212451Smrgint i;
925721212451Smrg_ACEOF
92587c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
92597c5adda3Smrgthen :
92606f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
92617c5adda3Smrgelse $as_nop
92626f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
926321212451Smrgfi
92647c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
92656f02d4e9Smrgfi
92667c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
92677c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
92686f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
926921212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
927021212451Smrgfi
927121212451Smrg
92726f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
92736f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
927421212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
927521212451Smrg	fi
927621212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
92777c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
92787c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
92797c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
92807c5adda3Smrgthen :
92817c5adda3Smrg  printf %s "(cached) " >&6
92827c5adda3Smrgelse $as_nop
92836f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
928421212451Smrg/* end confdefs.h.  */
928521212451Smrgint i;
928621212451Smrg_ACEOF
92877c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
92887c5adda3Smrgthen :
92896f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
92907c5adda3Smrgelse $as_nop
92916f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
929221212451Smrgfi
92937c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
92946f02d4e9Smrgfi
92957c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
92967c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
92976f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
929821212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
929921212451Smrgfi
930021212451Smrg
930121212451Smrgfound="no"
930221212451Smrg
930321212451Smrg	if test $found = "no" ; then
93046f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
930521212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
930621212451Smrg		fi
930721212451Smrg
93086f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
930921212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
931021212451Smrg		fi
931121212451Smrg
931221212451Smrg		CFLAGS="$CFLAGS -Wnonnull"
931321212451Smrg
93147c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
93157c5adda3Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
93166f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
93177c5adda3Smrg		if eval test \${$cacheid+y}
93187c5adda3Smrgthen :
93197c5adda3Smrg  printf %s "(cached) " >&6
93207c5adda3Smrgelse $as_nop
93216f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
932221212451Smrg/* end confdefs.h.  */
932321212451Smrgint i;
932421212451Smrgint
93257c5adda3Smrgmain (void)
932621212451Smrg{
932721212451Smrg
932821212451Smrg  ;
932921212451Smrg  return 0;
933021212451Smrg}
933121212451Smrg_ACEOF
93327c5adda3Smrgif ac_fn_c_try_link "$LINENO"
93337c5adda3Smrgthen :
93346f02d4e9Smrg  eval $cacheid=yes
93357c5adda3Smrgelse $as_nop
93366f02d4e9Smrg  eval $cacheid=no
933721212451Smrgfi
93387c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
93396f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
93406f02d4e9Smrgfi
93416f02d4e9Smrg
934221212451Smrg
934321212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
934421212451Smrg
93456f02d4e9Smrg		eval supported=\$$cacheid
93467c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
93477c5adda3Smrgprintf "%s\n" "$supported" >&6; }
934821212451Smrg		if test "$supported" = "yes" ; then
934921212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
935021212451Smrg			found="yes"
935121212451Smrg		fi
935221212451Smrg	fi
935321212451Smrg
935421212451Smrg
935521212451Smrg
935621212451Smrg
935721212451Smrg
935821212451Smrg
935921212451Smrg
93606f02d4e9Smrg
93616f02d4e9Smrg
93626f02d4e9Smrg
93636f02d4e9Smrg
93646f02d4e9Smrg
93656f02d4e9Smrg
93666f02d4e9Smrg
93676f02d4e9Smrg
936821212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
936921212451Smrg
93706f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
937121212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93727c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
93737c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
93747c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
93757c5adda3Smrgthen :
93767c5adda3Smrg  printf %s "(cached) " >&6
93777c5adda3Smrgelse $as_nop
93786f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
937921212451Smrg/* end confdefs.h.  */
938021212451Smrgint i;
938121212451Smrg_ACEOF
93827c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
93837c5adda3Smrgthen :
93846f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
93857c5adda3Smrgelse $as_nop
93866f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
938721212451Smrgfi
93887c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
93896f02d4e9Smrgfi
93907c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
93917c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
93926f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
939321212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
939421212451Smrgfi
939521212451Smrg
93966f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
93976f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
939821212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
939921212451Smrg	fi
940021212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
94017c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
94027c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
94037c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
94047c5adda3Smrgthen :
94057c5adda3Smrg  printf %s "(cached) " >&6
94067c5adda3Smrgelse $as_nop
94076f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
940821212451Smrg/* end confdefs.h.  */
940921212451Smrgint i;
941021212451Smrg_ACEOF
94117c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
94127c5adda3Smrgthen :
94136f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
94147c5adda3Smrgelse $as_nop
94156f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
941621212451Smrgfi
94177c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
94186f02d4e9Smrgfi
94197c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
94207c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
94216f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
942221212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
942321212451Smrgfi
942421212451Smrg
942521212451Smrgfound="no"
942621212451Smrg
942721212451Smrg	if test $found = "no" ; then
94286f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
942921212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
943021212451Smrg		fi
943121212451Smrg
94326f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
943321212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
943421212451Smrg		fi
943521212451Smrg
943621212451Smrg		CFLAGS="$CFLAGS -Winit-self"
943721212451Smrg
94387c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
94397c5adda3Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
94406f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Winit_self
94417c5adda3Smrg		if eval test \${$cacheid+y}
94427c5adda3Smrgthen :
94437c5adda3Smrg  printf %s "(cached) " >&6
94447c5adda3Smrgelse $as_nop
94456f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944621212451Smrg/* end confdefs.h.  */
944721212451Smrgint i;
944821212451Smrgint
94497c5adda3Smrgmain (void)
945021212451Smrg{
945121212451Smrg
945221212451Smrg  ;
945321212451Smrg  return 0;
945421212451Smrg}
945521212451Smrg_ACEOF
94567c5adda3Smrgif ac_fn_c_try_link "$LINENO"
94577c5adda3Smrgthen :
94586f02d4e9Smrg  eval $cacheid=yes
94597c5adda3Smrgelse $as_nop
94606f02d4e9Smrg  eval $cacheid=no
94616f02d4e9Smrgfi
94627c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
94636f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
946421212451Smrgfi
946521212451Smrg
94666f02d4e9Smrg
946721212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
946821212451Smrg
94696f02d4e9Smrg		eval supported=\$$cacheid
94707c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
94717c5adda3Smrgprintf "%s\n" "$supported" >&6; }
947221212451Smrg		if test "$supported" = "yes" ; then
947321212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
947421212451Smrg			found="yes"
947521212451Smrg		fi
947621212451Smrg	fi
947721212451Smrg
947821212451Smrg
947921212451Smrg
948021212451Smrg
948121212451Smrg
948221212451Smrg
948321212451Smrg
94846f02d4e9Smrg
94856f02d4e9Smrg
94866f02d4e9Smrg
94876f02d4e9Smrg
94886f02d4e9Smrg
94896f02d4e9Smrg
94906f02d4e9Smrg
94916f02d4e9Smrg
949221212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
949321212451Smrg
94946f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
949521212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94967c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
94977c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
94987c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
94997c5adda3Smrgthen :
95007c5adda3Smrg  printf %s "(cached) " >&6
95017c5adda3Smrgelse $as_nop
95026f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
950321212451Smrg/* end confdefs.h.  */
950421212451Smrgint i;
950521212451Smrg_ACEOF
95067c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
95077c5adda3Smrgthen :
95086f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
95097c5adda3Smrgelse $as_nop
95106f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
951121212451Smrgfi
95127c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
95136f02d4e9Smrgfi
95147c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
95157c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
95166f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
951721212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
951821212451Smrgfi
951921212451Smrg
95206f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
95216f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
952221212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
952321212451Smrg	fi
952421212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
95257c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
95267c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
95277c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
95287c5adda3Smrgthen :
95297c5adda3Smrg  printf %s "(cached) " >&6
95307c5adda3Smrgelse $as_nop
95316f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953221212451Smrg/* end confdefs.h.  */
953321212451Smrgint i;
953421212451Smrg_ACEOF
95357c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
95367c5adda3Smrgthen :
95376f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
95387c5adda3Smrgelse $as_nop
95396f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
954021212451Smrgfi
95417c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
95426f02d4e9Smrgfi
95437c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
95447c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
95456f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
954621212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
954721212451Smrgfi
954821212451Smrg
954921212451Smrgfound="no"
955021212451Smrg
955121212451Smrg	if test $found = "no" ; then
95526f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
955321212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
955421212451Smrg		fi
955521212451Smrg
95566f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
955721212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
955821212451Smrg		fi
955921212451Smrg
956021212451Smrg		CFLAGS="$CFLAGS -Wmain"
956121212451Smrg
95627c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
95637c5adda3Smrgprintf %s "checking if $CC supports -Wmain... " >&6; }
95646f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wmain
95657c5adda3Smrg		if eval test \${$cacheid+y}
95667c5adda3Smrgthen :
95677c5adda3Smrg  printf %s "(cached) " >&6
95687c5adda3Smrgelse $as_nop
95696f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
957021212451Smrg/* end confdefs.h.  */
957121212451Smrgint i;
957221212451Smrgint
95737c5adda3Smrgmain (void)
957421212451Smrg{
957521212451Smrg
957621212451Smrg  ;
957721212451Smrg  return 0;
957821212451Smrg}
957921212451Smrg_ACEOF
95807c5adda3Smrgif ac_fn_c_try_link "$LINENO"
95817c5adda3Smrgthen :
95826f02d4e9Smrg  eval $cacheid=yes
95837c5adda3Smrgelse $as_nop
95846f02d4e9Smrg  eval $cacheid=no
958521212451Smrgfi
95867c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
95876f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
95886f02d4e9Smrgfi
95896f02d4e9Smrg
959021212451Smrg
959121212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
959221212451Smrg
95936f02d4e9Smrg		eval supported=\$$cacheid
95947c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
95957c5adda3Smrgprintf "%s\n" "$supported" >&6; }
959621212451Smrg		if test "$supported" = "yes" ; then
959721212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
959821212451Smrg			found="yes"
959921212451Smrg		fi
960021212451Smrg	fi
960121212451Smrg
960221212451Smrg
960321212451Smrg
960421212451Smrg
960521212451Smrg
960621212451Smrg
960721212451Smrg
96086f02d4e9Smrg
96096f02d4e9Smrg
96106f02d4e9Smrg
96116f02d4e9Smrg
96126f02d4e9Smrg
96136f02d4e9Smrg
96146f02d4e9Smrg
96156f02d4e9Smrg
961621212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
961721212451Smrg
96186f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
961921212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96207c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
96217c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
96227c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
96237c5adda3Smrgthen :
96247c5adda3Smrg  printf %s "(cached) " >&6
96257c5adda3Smrgelse $as_nop
96266f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96276f02d4e9Smrg/* end confdefs.h.  */
96286f02d4e9Smrgint i;
96296f02d4e9Smrg_ACEOF
96307c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
96317c5adda3Smrgthen :
96326f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
96337c5adda3Smrgelse $as_nop
96346f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
963521212451Smrgfi
96367c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
96376f02d4e9Smrgfi
96387c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
96397c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
96406f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
964121212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
964221212451Smrgfi
964321212451Smrg
96446f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
96456f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
964621212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
964721212451Smrg	fi
964821212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96497c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
96507c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
96517c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
96527c5adda3Smrgthen :
96537c5adda3Smrg  printf %s "(cached) " >&6
96547c5adda3Smrgelse $as_nop
96556f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
965621212451Smrg/* end confdefs.h.  */
965721212451Smrgint i;
965821212451Smrg_ACEOF
96597c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
96607c5adda3Smrgthen :
96616f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
96627c5adda3Smrgelse $as_nop
96636f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
966421212451Smrgfi
96657c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
96666f02d4e9Smrgfi
96677c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
96687c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
96696f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
967021212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
967121212451Smrgfi
967221212451Smrg
967321212451Smrgfound="no"
967421212451Smrg
967521212451Smrg	if test $found = "no" ; then
96766f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
967721212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
967821212451Smrg		fi
967921212451Smrg
96806f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
968121212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
968221212451Smrg		fi
968321212451Smrg
968421212451Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
968521212451Smrg
96867c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
96877c5adda3Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
96886f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
96897c5adda3Smrg		if eval test \${$cacheid+y}
96907c5adda3Smrgthen :
96917c5adda3Smrg  printf %s "(cached) " >&6
96927c5adda3Smrgelse $as_nop
96936f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
969421212451Smrg/* end confdefs.h.  */
969521212451Smrgint i;
969621212451Smrgint
96977c5adda3Smrgmain (void)
969821212451Smrg{
969921212451Smrg
970021212451Smrg  ;
970121212451Smrg  return 0;
970221212451Smrg}
970321212451Smrg_ACEOF
97047c5adda3Smrgif ac_fn_c_try_link "$LINENO"
97057c5adda3Smrgthen :
97066f02d4e9Smrg  eval $cacheid=yes
97077c5adda3Smrgelse $as_nop
97086f02d4e9Smrg  eval $cacheid=no
97096f02d4e9Smrgfi
97107c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
97116f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
971221212451Smrgfi
971321212451Smrg
97146f02d4e9Smrg
971521212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
971621212451Smrg
97176f02d4e9Smrg		eval supported=\$$cacheid
97187c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
97197c5adda3Smrgprintf "%s\n" "$supported" >&6; }
972021212451Smrg		if test "$supported" = "yes" ; then
972121212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
972221212451Smrg			found="yes"
972321212451Smrg		fi
972421212451Smrg	fi
972521212451Smrg
972621212451Smrg
972721212451Smrg
972821212451Smrg
972921212451Smrg
973021212451Smrg
973121212451Smrg
97326f02d4e9Smrg
97336f02d4e9Smrg
97346f02d4e9Smrg
97356f02d4e9Smrg
97366f02d4e9Smrg
97376f02d4e9Smrg
97386f02d4e9Smrg
97396f02d4e9Smrg
974021212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
974121212451Smrg
97426f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
974321212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97447c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
97457c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
97467c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
97477c5adda3Smrgthen :
97487c5adda3Smrg  printf %s "(cached) " >&6
97497c5adda3Smrgelse $as_nop
97506f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
975121212451Smrg/* end confdefs.h.  */
975221212451Smrgint i;
975321212451Smrg_ACEOF
97547c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
97557c5adda3Smrgthen :
97566f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
97577c5adda3Smrgelse $as_nop
97586f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
975921212451Smrgfi
97607c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
97616f02d4e9Smrgfi
97627c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
97637c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
97646f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
976521212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
976621212451Smrgfi
976721212451Smrg
97686f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
97696f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
977021212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
977121212451Smrg	fi
977221212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
97737c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
97747c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
97757c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
97767c5adda3Smrgthen :
97777c5adda3Smrg  printf %s "(cached) " >&6
97787c5adda3Smrgelse $as_nop
97796f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
978021212451Smrg/* end confdefs.h.  */
978121212451Smrgint i;
978221212451Smrg_ACEOF
97837c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
97847c5adda3Smrgthen :
97856f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
97867c5adda3Smrgelse $as_nop
97876f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
978821212451Smrgfi
97897c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
97906f02d4e9Smrgfi
97917c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
97927c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
97936f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
979421212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
979521212451Smrgfi
979621212451Smrg
979721212451Smrgfound="no"
979821212451Smrg
979921212451Smrg	if test $found = "no" ; then
98006f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
980121212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
980221212451Smrg		fi
980321212451Smrg
98046f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
980521212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
980621212451Smrg		fi
980721212451Smrg
980821212451Smrg		CFLAGS="$CFLAGS -Wsequence-point"
980921212451Smrg
98107c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
98117c5adda3Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
98126f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
98137c5adda3Smrg		if eval test \${$cacheid+y}
98147c5adda3Smrgthen :
98157c5adda3Smrg  printf %s "(cached) " >&6
98167c5adda3Smrgelse $as_nop
98176f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
981821212451Smrg/* end confdefs.h.  */
981921212451Smrgint i;
982021212451Smrgint
98217c5adda3Smrgmain (void)
982221212451Smrg{
982321212451Smrg
982421212451Smrg  ;
982521212451Smrg  return 0;
982621212451Smrg}
982721212451Smrg_ACEOF
98287c5adda3Smrgif ac_fn_c_try_link "$LINENO"
98297c5adda3Smrgthen :
98306f02d4e9Smrg  eval $cacheid=yes
98317c5adda3Smrgelse $as_nop
98326f02d4e9Smrg  eval $cacheid=no
983321212451Smrgfi
98347c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
98356f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
98366f02d4e9Smrgfi
98376f02d4e9Smrg
983821212451Smrg
983921212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
984021212451Smrg
98416f02d4e9Smrg		eval supported=\$$cacheid
98427c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
98437c5adda3Smrgprintf "%s\n" "$supported" >&6; }
984421212451Smrg		if test "$supported" = "yes" ; then
984521212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
984621212451Smrg			found="yes"
984721212451Smrg		fi
984821212451Smrg	fi
984921212451Smrg
985021212451Smrg
985121212451Smrg
985221212451Smrg
985321212451Smrg
985421212451Smrg
985521212451Smrg
98566f02d4e9Smrg
98576f02d4e9Smrg
98586f02d4e9Smrg
98596f02d4e9Smrg
98606f02d4e9Smrg
98616f02d4e9Smrg
98626f02d4e9Smrg
98636f02d4e9Smrg
986421212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
986521212451Smrg
98666f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
986721212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98687c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
98697c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
98707c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
98717c5adda3Smrgthen :
98727c5adda3Smrg  printf %s "(cached) " >&6
98737c5adda3Smrgelse $as_nop
98746f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
987521212451Smrg/* end confdefs.h.  */
987621212451Smrgint i;
987721212451Smrg_ACEOF
98787c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
98797c5adda3Smrgthen :
98806f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
98817c5adda3Smrgelse $as_nop
98826f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
988321212451Smrgfi
98847c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
98856f02d4e9Smrgfi
98867c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
98877c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
98886f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
988921212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
989021212451Smrgfi
989121212451Smrg
98926f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
98936f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
989421212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
989521212451Smrg	fi
989621212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
98977c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
98987c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
98997c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
99007c5adda3Smrgthen :
99017c5adda3Smrg  printf %s "(cached) " >&6
99027c5adda3Smrgelse $as_nop
99036f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
990421212451Smrg/* end confdefs.h.  */
990521212451Smrgint i;
990621212451Smrg_ACEOF
99077c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
99087c5adda3Smrgthen :
99096f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
99107c5adda3Smrgelse $as_nop
99116f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
991221212451Smrgfi
99137c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
99146f02d4e9Smrgfi
99157c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
99167c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
99176f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
991821212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
991921212451Smrgfi
992021212451Smrg
992121212451Smrgfound="no"
992221212451Smrg
992321212451Smrg	if test $found = "no" ; then
99246f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
992521212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
992621212451Smrg		fi
992721212451Smrg
99286f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
992921212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
993021212451Smrg		fi
993121212451Smrg
993221212451Smrg		CFLAGS="$CFLAGS -Wreturn-type"
993321212451Smrg
99347c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
99357c5adda3Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
99366f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
99377c5adda3Smrg		if eval test \${$cacheid+y}
99387c5adda3Smrgthen :
99397c5adda3Smrg  printf %s "(cached) " >&6
99407c5adda3Smrgelse $as_nop
99416f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
994221212451Smrg/* end confdefs.h.  */
994321212451Smrgint i;
994421212451Smrgint
99457c5adda3Smrgmain (void)
994621212451Smrg{
994721212451Smrg
994821212451Smrg  ;
994921212451Smrg  return 0;
995021212451Smrg}
995121212451Smrg_ACEOF
99527c5adda3Smrgif ac_fn_c_try_link "$LINENO"
99537c5adda3Smrgthen :
99546f02d4e9Smrg  eval $cacheid=yes
99557c5adda3Smrgelse $as_nop
99566f02d4e9Smrg  eval $cacheid=no
99576f02d4e9Smrgfi
99587c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
99596f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
996021212451Smrgfi
996121212451Smrg
99626f02d4e9Smrg
996321212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
996421212451Smrg
99656f02d4e9Smrg		eval supported=\$$cacheid
99667c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
99677c5adda3Smrgprintf "%s\n" "$supported" >&6; }
996821212451Smrg		if test "$supported" = "yes" ; then
996921212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
997021212451Smrg			found="yes"
997121212451Smrg		fi
997221212451Smrg	fi
997321212451Smrg
997421212451Smrg
997521212451Smrg
997621212451Smrg
997721212451Smrg
997821212451Smrg
997921212451Smrg
99806f02d4e9Smrg
99816f02d4e9Smrg
99826f02d4e9Smrg
99836f02d4e9Smrg
99846f02d4e9Smrg
99856f02d4e9Smrg
99866f02d4e9Smrg
99876f02d4e9Smrg
998821212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
998921212451Smrg
99906f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
999121212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99927c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
99937c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
99947c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
99957c5adda3Smrgthen :
99967c5adda3Smrg  printf %s "(cached) " >&6
99977c5adda3Smrgelse $as_nop
99986f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
999921212451Smrg/* end confdefs.h.  */
1000021212451Smrgint i;
1000121212451Smrg_ACEOF
100027c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
100037c5adda3Smrgthen :
100046f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
100057c5adda3Smrgelse $as_nop
100066f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1000721212451Smrgfi
100087c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
100096f02d4e9Smrgfi
100107c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
100117c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
100126f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1001321212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1001421212451Smrgfi
1001521212451Smrg
100166f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
100176f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1001821212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1001921212451Smrg	fi
1002021212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
100217c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
100227c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
100237c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
100247c5adda3Smrgthen :
100257c5adda3Smrg  printf %s "(cached) " >&6
100267c5adda3Smrgelse $as_nop
100276f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1002821212451Smrg/* end confdefs.h.  */
1002921212451Smrgint i;
1003021212451Smrg_ACEOF
100317c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
100327c5adda3Smrgthen :
100336f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
100347c5adda3Smrgelse $as_nop
100356f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1003621212451Smrgfi
100377c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
100386f02d4e9Smrgfi
100397c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
100407c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
100416f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1004221212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1004321212451Smrgfi
1004421212451Smrg
1004521212451Smrgfound="no"
1004621212451Smrg
1004721212451Smrg	if test $found = "no" ; then
100486f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1004921212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1005021212451Smrg		fi
1005121212451Smrg
100526f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1005321212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1005421212451Smrg		fi
1005521212451Smrg
1005621212451Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
1005721212451Smrg
100587c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
100597c5adda3Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
100606f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
100617c5adda3Smrg		if eval test \${$cacheid+y}
100627c5adda3Smrgthen :
100637c5adda3Smrg  printf %s "(cached) " >&6
100647c5adda3Smrgelse $as_nop
100656f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1006621212451Smrg/* end confdefs.h.  */
1006721212451Smrgint i;
1006821212451Smrgint
100697c5adda3Smrgmain (void)
1007021212451Smrg{
1007121212451Smrg
1007221212451Smrg  ;
1007321212451Smrg  return 0;
1007421212451Smrg}
1007521212451Smrg_ACEOF
100767c5adda3Smrgif ac_fn_c_try_link "$LINENO"
100777c5adda3Smrgthen :
100786f02d4e9Smrg  eval $cacheid=yes
100797c5adda3Smrgelse $as_nop
100806f02d4e9Smrg  eval $cacheid=no
1008121212451Smrgfi
100827c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
100836f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
100846f02d4e9Smrgfi
100856f02d4e9Smrg
1008621212451Smrg
1008721212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1008821212451Smrg
100896f02d4e9Smrg		eval supported=\$$cacheid
100907c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
100917c5adda3Smrgprintf "%s\n" "$supported" >&6; }
1009221212451Smrg		if test "$supported" = "yes" ; then
1009321212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
1009421212451Smrg			found="yes"
1009521212451Smrg		fi
1009621212451Smrg	fi
1009721212451Smrg
1009821212451Smrg
1009921212451Smrg
1010021212451Smrg
1010121212451Smrg
1010221212451Smrg
1010321212451Smrg
101046f02d4e9Smrg
101056f02d4e9Smrg
101066f02d4e9Smrg
101076f02d4e9Smrg
101086f02d4e9Smrg
101096f02d4e9Smrg
101106f02d4e9Smrg
101116f02d4e9Smrg
1011221212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1011321212451Smrg
101146f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1011521212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101167c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
101177c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
101187c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
101197c5adda3Smrgthen :
101207c5adda3Smrg  printf %s "(cached) " >&6
101217c5adda3Smrgelse $as_nop
101226f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1012321212451Smrg/* end confdefs.h.  */
1012421212451Smrgint i;
1012521212451Smrg_ACEOF
101267c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
101277c5adda3Smrgthen :
101286f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
101297c5adda3Smrgelse $as_nop
101306f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1013121212451Smrgfi
101327c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
101336f02d4e9Smrgfi
101347c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
101357c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
101366f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1013721212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1013821212451Smrgfi
1013921212451Smrg
101406f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
101416f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1014221212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1014321212451Smrg	fi
1014421212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
101457c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
101467c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
101477c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
101487c5adda3Smrgthen :
101497c5adda3Smrg  printf %s "(cached) " >&6
101507c5adda3Smrgelse $as_nop
101516f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1015221212451Smrg/* end confdefs.h.  */
1015321212451Smrgint i;
1015421212451Smrg_ACEOF
101557c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
101567c5adda3Smrgthen :
101576f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
101587c5adda3Smrgelse $as_nop
101596f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1016021212451Smrgfi
101617c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
101626f02d4e9Smrgfi
101637c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
101647c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
101656f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1016621212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1016721212451Smrgfi
1016821212451Smrg
1016921212451Smrgfound="no"
1017029004570Smrg
1017121212451Smrg	if test $found = "no" ; then
101726f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1017321212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1017421212451Smrg		fi
1017529004570Smrg
101766f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1017721212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1017821212451Smrg		fi
1017929004570Smrg
1018021212451Smrg		CFLAGS="$CFLAGS -Warray-bounds"
1018129004570Smrg
101827c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
101837c5adda3Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
101846f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
101857c5adda3Smrg		if eval test \${$cacheid+y}
101867c5adda3Smrgthen :
101877c5adda3Smrg  printf %s "(cached) " >&6
101887c5adda3Smrgelse $as_nop
101896f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1019021212451Smrg/* end confdefs.h.  */
1019121212451Smrgint i;
1019221212451Smrgint
101937c5adda3Smrgmain (void)
1019421212451Smrg{
1019529004570Smrg
1019629004570Smrg  ;
1019729004570Smrg  return 0;
1019829004570Smrg}
1019929004570Smrg_ACEOF
102007c5adda3Smrgif ac_fn_c_try_link "$LINENO"
102017c5adda3Smrgthen :
102026f02d4e9Smrg  eval $cacheid=yes
102037c5adda3Smrgelse $as_nop
102046f02d4e9Smrg  eval $cacheid=no
102056f02d4e9Smrgfi
102067c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
102076f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
1020829004570Smrgfi
1020929004570Smrg
102106f02d4e9Smrg
1021121212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1021229004570Smrg
102136f02d4e9Smrg		eval supported=\$$cacheid
102147c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
102157c5adda3Smrgprintf "%s\n" "$supported" >&6; }
1021621212451Smrg		if test "$supported" = "yes" ; then
1021721212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
1021821212451Smrg			found="yes"
1021921212451Smrg		fi
1022021212451Smrg	fi
1022129004570Smrg
1022221212451Smrg
1022321212451Smrg
1022421212451Smrg
1022521212451Smrg
1022621212451Smrg
1022721212451Smrg
102286f02d4e9Smrg
102296f02d4e9Smrg
102306f02d4e9Smrg
102316f02d4e9Smrg
102326f02d4e9Smrg
102336f02d4e9Smrg
102346f02d4e9Smrg
102356f02d4e9Smrg
1023621212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1023721212451Smrg
102386f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1023921212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102407c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
102417c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
102427c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
102437c5adda3Smrgthen :
102447c5adda3Smrg  printf %s "(cached) " >&6
102457c5adda3Smrgelse $as_nop
102466f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1024729004570Smrg/* end confdefs.h.  */
1024821212451Smrgint i;
1024929004570Smrg_ACEOF
102507c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
102517c5adda3Smrgthen :
102526f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
102537c5adda3Smrgelse $as_nop
102546f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1025529004570Smrgfi
102567c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
102576f02d4e9Smrgfi
102587c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
102597c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
102606f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1026121212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1026221212451Smrgfi
1026321212451Smrg
102646f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
102656f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1026621212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1026721212451Smrg	fi
1026821212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
102697c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
102707c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
102717c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
102727c5adda3Smrgthen :
102737c5adda3Smrg  printf %s "(cached) " >&6
102747c5adda3Smrgelse $as_nop
102756f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1027629004570Smrg/* end confdefs.h.  */
1027721212451Smrgint i;
1027829004570Smrg_ACEOF
102797c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
102807c5adda3Smrgthen :
102816f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
102827c5adda3Smrgelse $as_nop
102836f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10284a73027baSmrgfi
102857c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
102866f02d4e9Smrgfi
102877c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
102887c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
102896f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1029021212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10291a73027baSmrgfi
10292a73027baSmrg
1029321212451Smrgfound="no"
10294a73027baSmrg
1029521212451Smrg	if test $found = "no" ; then
102966f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1029721212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1029821212451Smrg		fi
1029921212451Smrg
103006f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1030121212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1030221212451Smrg		fi
1030321212451Smrg
1030421212451Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
1030521212451Smrg
103067c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
103077c5adda3Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
103086f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
103097c5adda3Smrg		if eval test \${$cacheid+y}
103107c5adda3Smrgthen :
103117c5adda3Smrg  printf %s "(cached) " >&6
103127c5adda3Smrgelse $as_nop
103136f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1031421212451Smrg/* end confdefs.h.  */
1031521212451Smrgint i;
1031621212451Smrgint
103177c5adda3Smrgmain (void)
1031821212451Smrg{
10319a73027baSmrg
1032021212451Smrg  ;
1032121212451Smrg  return 0;
1032221212451Smrg}
1032321212451Smrg_ACEOF
103247c5adda3Smrgif ac_fn_c_try_link "$LINENO"
103257c5adda3Smrgthen :
103266f02d4e9Smrg  eval $cacheid=yes
103277c5adda3Smrgelse $as_nop
103286f02d4e9Smrg  eval $cacheid=no
10329a73027baSmrgfi
103307c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
103316f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
103326f02d4e9Smrgfi
103336f02d4e9Smrg
10334a73027baSmrg
1033521212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1033621212451Smrg
103376f02d4e9Smrg		eval supported=\$$cacheid
103387c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
103397c5adda3Smrgprintf "%s\n" "$supported" >&6; }
1034021212451Smrg		if test "$supported" = "yes" ; then
1034121212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
1034221212451Smrg			found="yes"
1034321212451Smrg		fi
1034421212451Smrg	fi
1034521212451Smrg
1034621212451Smrg
1034721212451Smrg
1034821212451Smrg
1034921212451Smrg
1035021212451Smrg
1035121212451Smrg
103526f02d4e9Smrg
103536f02d4e9Smrg
103546f02d4e9Smrg
103556f02d4e9Smrg
103566f02d4e9Smrg
103576f02d4e9Smrg
103586f02d4e9Smrg
103596f02d4e9Smrg
1036021212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1036121212451Smrg
103626f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1036321212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103647c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
103657c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
103667c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
103677c5adda3Smrgthen :
103687c5adda3Smrg  printf %s "(cached) " >&6
103697c5adda3Smrgelse $as_nop
103706f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371a73027baSmrg/* end confdefs.h.  */
1037221212451Smrgint i;
10373a73027baSmrg_ACEOF
103747c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
103757c5adda3Smrgthen :
103766f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
103777c5adda3Smrgelse $as_nop
103786f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10379a73027baSmrgfi
103807c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
103816f02d4e9Smrgfi
103827c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
103837c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
103846f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1038521212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1038621212451Smrgfi
10387bf4a254eSmrg
103886f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
103896f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1039021212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1039121212451Smrg	fi
1039221212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
103937c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
103947c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
103957c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
103967c5adda3Smrgthen :
103977c5adda3Smrg  printf %s "(cached) " >&6
103987c5adda3Smrgelse $as_nop
103996f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1040021212451Smrg/* end confdefs.h.  */
1040121212451Smrgint i;
1040221212451Smrg_ACEOF
104037c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
104047c5adda3Smrgthen :
104056f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
104067c5adda3Smrgelse $as_nop
104076f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10408a73027baSmrgfi
104097c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
104106f02d4e9Smrgfi
104117c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
104127c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
104136f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1041421212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1041521212451Smrgfi
10416a73027baSmrg
1041721212451Smrgfound="no"
10418a73027baSmrg
1041921212451Smrg	if test $found = "no" ; then
104206f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1042121212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1042221212451Smrg		fi
1042321212451Smrg
104246f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1042521212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1042621212451Smrg		fi
1042721212451Smrg
1042821212451Smrg		CFLAGS="$CFLAGS -Waddress"
1042921212451Smrg
104307c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
104317c5adda3Smrgprintf %s "checking if $CC supports -Waddress... " >&6; }
104326f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Waddress
104337c5adda3Smrg		if eval test \${$cacheid+y}
104347c5adda3Smrgthen :
104357c5adda3Smrg  printf %s "(cached) " >&6
104367c5adda3Smrgelse $as_nop
104376f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1043821212451Smrg/* end confdefs.h.  */
1043921212451Smrgint i;
1044021212451Smrgint
104417c5adda3Smrgmain (void)
1044221212451Smrg{
10443a73027baSmrg
1044421212451Smrg  ;
1044521212451Smrg  return 0;
1044621212451Smrg}
1044721212451Smrg_ACEOF
104487c5adda3Smrgif ac_fn_c_try_link "$LINENO"
104497c5adda3Smrgthen :
104506f02d4e9Smrg  eval $cacheid=yes
104517c5adda3Smrgelse $as_nop
104526f02d4e9Smrg  eval $cacheid=no
104536f02d4e9Smrgfi
104547c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
104556f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
10456a73027baSmrgfi
10457a73027baSmrg
104586f02d4e9Smrg
1045921212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10460a73027baSmrg
104616f02d4e9Smrg		eval supported=\$$cacheid
104627c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
104637c5adda3Smrgprintf "%s\n" "$supported" >&6; }
1046421212451Smrg		if test "$supported" = "yes" ; then
1046521212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
1046621212451Smrg			found="yes"
1046721212451Smrg		fi
1046821212451Smrg	fi
1046921212451Smrg
1047021212451Smrg
1047121212451Smrg
1047221212451Smrg
1047321212451Smrg
1047421212451Smrg
1047521212451Smrg
104766f02d4e9Smrg
104776f02d4e9Smrg
104786f02d4e9Smrg
104796f02d4e9Smrg
104806f02d4e9Smrg
104816f02d4e9Smrg
104826f02d4e9Smrg
104836f02d4e9Smrg
1048421212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1048521212451Smrg
104866f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1048721212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
104887c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
104897c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
104907c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
104917c5adda3Smrgthen :
104927c5adda3Smrg  printf %s "(cached) " >&6
104937c5adda3Smrgelse $as_nop
104946f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1049521212451Smrg/* end confdefs.h.  */
1049621212451Smrgint i;
1049721212451Smrg_ACEOF
104987c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
104997c5adda3Smrgthen :
105006f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
105017c5adda3Smrgelse $as_nop
105026f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1050321212451Smrgfi
105047c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
105056f02d4e9Smrgfi
105067c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
105077c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
105086f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1050921212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1051021212451Smrgfi
1051121212451Smrg
105126f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
105136f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1051421212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1051521212451Smrg	fi
1051621212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
105177c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
105187c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
105197c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
105207c5adda3Smrgthen :
105217c5adda3Smrg  printf %s "(cached) " >&6
105227c5adda3Smrgelse $as_nop
105236f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1052421212451Smrg/* end confdefs.h.  */
1052521212451Smrgint i;
1052621212451Smrg_ACEOF
105277c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
105287c5adda3Smrgthen :
105296f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
105307c5adda3Smrgelse $as_nop
105316f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10532a73027baSmrgfi
105337c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
105346f02d4e9Smrgfi
105357c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
105367c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
105376f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1053821212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10539a73027baSmrgfi
10540a73027baSmrg
1054121212451Smrgfound="no"
10542a73027baSmrg
1054321212451Smrg	if test $found = "no" ; then
105446f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1054521212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1054621212451Smrg		fi
1054721212451Smrg
105486f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1054921212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1055021212451Smrg		fi
10551a73027baSmrg
1055221212451Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
1055321212451Smrg
105547c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
105557c5adda3Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
105566f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
105577c5adda3Smrg		if eval test \${$cacheid+y}
105587c5adda3Smrgthen :
105597c5adda3Smrg  printf %s "(cached) " >&6
105607c5adda3Smrgelse $as_nop
105616f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1056221212451Smrg/* end confdefs.h.  */
1056321212451Smrgint i;
10564a73027baSmrgint
105657c5adda3Smrgmain (void)
10566a73027baSmrg{
10567a73027baSmrg
10568a73027baSmrg  ;
10569a73027baSmrg  return 0;
10570a73027baSmrg}
10571a73027baSmrg_ACEOF
105727c5adda3Smrgif ac_fn_c_try_link "$LINENO"
105737c5adda3Smrgthen :
105746f02d4e9Smrg  eval $cacheid=yes
105757c5adda3Smrgelse $as_nop
105766f02d4e9Smrg  eval $cacheid=no
10577a73027baSmrgfi
105787c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
105796f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
105806f02d4e9Smrgfi
105816f02d4e9Smrg
10582a73027baSmrg
1058321212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1058421212451Smrg
105856f02d4e9Smrg		eval supported=\$$cacheid
105867c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
105877c5adda3Smrgprintf "%s\n" "$supported" >&6; }
1058821212451Smrg		if test "$supported" = "yes" ; then
1058921212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
1059021212451Smrg			found="yes"
1059121212451Smrg		fi
1059221212451Smrg	fi
1059321212451Smrg
1059421212451Smrg
1059521212451Smrg
10596a73027baSmrg
10597bf4a254eSmrg
1059821212451Smrg
1059921212451Smrg
106006f02d4e9Smrg
106016f02d4e9Smrg
106026f02d4e9Smrg
106036f02d4e9Smrg
106046f02d4e9Smrg
106056f02d4e9Smrg
106066f02d4e9Smrg
106076f02d4e9Smrg
1060821212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1060921212451Smrg
106106f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1061121212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106127c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
106137c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
106147c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
106157c5adda3Smrgthen :
106167c5adda3Smrg  printf %s "(cached) " >&6
106177c5adda3Smrgelse $as_nop
106186f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1061921212451Smrg/* end confdefs.h.  */
1062021212451Smrgint i;
1062121212451Smrg_ACEOF
106227c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
106237c5adda3Smrgthen :
106246f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
106257c5adda3Smrgelse $as_nop
106266f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10627a73027baSmrgfi
106287c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
106296f02d4e9Smrgfi
106307c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
106317c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
106326f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1063321212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10634a73027baSmrgfi
10635a73027baSmrg
106366f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
106376f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1063821212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1063921212451Smrg	fi
1064021212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
106417c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
106427c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
106437c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
106447c5adda3Smrgthen :
106457c5adda3Smrg  printf %s "(cached) " >&6
106467c5adda3Smrgelse $as_nop
106476f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648a73027baSmrg/* end confdefs.h.  */
1064921212451Smrgint i;
10650a73027baSmrg_ACEOF
106517c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
106527c5adda3Smrgthen :
106536f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
106547c5adda3Smrgelse $as_nop
106556f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10656a73027baSmrgfi
106577c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
106586f02d4e9Smrgfi
106597c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
106607c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
106616f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1066221212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10663a73027baSmrgfi
10664a73027baSmrg
1066521212451Smrgfound="no"
10666a73027baSmrg
1066721212451Smrg	if test $found = "no" ; then
106686f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1066921212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1067021212451Smrg		fi
1067121212451Smrg
106726f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1067321212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1067421212451Smrg		fi
1067521212451Smrg
1067621212451Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
1067721212451Smrg
106787c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
106797c5adda3Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
106806f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
106817c5adda3Smrg		if eval test \${$cacheid+y}
106827c5adda3Smrgthen :
106837c5adda3Smrg  printf %s "(cached) " >&6
106847c5adda3Smrgelse $as_nop
106856f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1068621212451Smrg/* end confdefs.h.  */
1068721212451Smrgint i;
10688a73027baSmrgint
106897c5adda3Smrgmain (void)
10690a73027baSmrg{
1069121212451Smrg
1069221212451Smrg  ;
10693a73027baSmrg  return 0;
10694a73027baSmrg}
10695a73027baSmrg_ACEOF
106967c5adda3Smrgif ac_fn_c_try_link "$LINENO"
106977c5adda3Smrgthen :
106986f02d4e9Smrg  eval $cacheid=yes
106997c5adda3Smrgelse $as_nop
107006f02d4e9Smrg  eval $cacheid=no
107016f02d4e9Smrgfi
107027c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
107036f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
10704a73027baSmrgfi
1070521212451Smrg
107066f02d4e9Smrg
1070721212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1070821212451Smrg
107096f02d4e9Smrg		eval supported=\$$cacheid
107107c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
107117c5adda3Smrgprintf "%s\n" "$supported" >&6; }
1071221212451Smrg		if test "$supported" = "yes" ; then
1071321212451Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
1071421212451Smrg			found="yes"
1071521212451Smrg		fi
1071621212451Smrg	fi
1071721212451Smrg
1071821212451Smrg
10719a73027baSmrgfi
10720a73027baSmrg
1072121212451Smrg
1072221212451Smrg
1072321212451Smrg
1072421212451Smrg
1072521212451Smrg
107266f02d4e9Smrg
107276f02d4e9Smrg		CWARNFLAGS="$BASE_CFLAGS"
107286f02d4e9Smrg		if  test "x$GCC" = xyes ; then
107296f02d4e9Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
107306f02d4e9Smrg		fi
107316f02d4e9Smrg
107326f02d4e9Smrg
1073321212451Smrg
1073421212451Smrg
1073521212451Smrg
1073621212451Smrg
1073721212451Smrg
1073821212451Smrg
1073921212451Smrg# Check whether --enable-strict-compilation was given.
107407c5adda3Smrgif test ${enable_strict_compilation+y}
107417c5adda3Smrgthen :
1074221212451Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
107437c5adda3Smrgelse $as_nop
1074421212451Smrg  STRICT_COMPILE=no
10745a73027baSmrgfi
10746a73027baSmrg
10747a73027baSmrg
107486f02d4e9Smrg
107496f02d4e9Smrg
107506f02d4e9Smrg
107516f02d4e9Smrg
1075221212451SmrgSTRICT_CFLAGS=""
1075321212451Smrg
1075421212451Smrg
1075521212451Smrg
1075621212451Smrg
1075721212451Smrg
107586f02d4e9Smrg
107596f02d4e9Smrg
107606f02d4e9Smrg
107616f02d4e9Smrg
107626f02d4e9Smrg
107636f02d4e9Smrg
107646f02d4e9Smrg
107656f02d4e9Smrg
1076621212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1076721212451Smrg
107686f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1076921212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
107707c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
107717c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
107727c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
107737c5adda3Smrgthen :
107747c5adda3Smrg  printf %s "(cached) " >&6
107757c5adda3Smrgelse $as_nop
107766f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1077721212451Smrg/* end confdefs.h.  */
1077821212451Smrgint i;
1077921212451Smrg_ACEOF
107807c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
107817c5adda3Smrgthen :
107826f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
107837c5adda3Smrgelse $as_nop
107846f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1078521212451Smrgfi
107867c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
107876f02d4e9Smrgfi
107887c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
107897c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
107906f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1079121212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10792a73027baSmrgfi
10793a73027baSmrg
107946f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
107956f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1079621212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1079721212451Smrg	fi
1079821212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
107997c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
108007c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
108017c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
108027c5adda3Smrgthen :
108037c5adda3Smrg  printf %s "(cached) " >&6
108047c5adda3Smrgelse $as_nop
108056f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1080621212451Smrg/* end confdefs.h.  */
1080721212451Smrgint i;
10808bf4a254eSmrg_ACEOF
108097c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
108107c5adda3Smrgthen :
108116f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
108127c5adda3Smrgelse $as_nop
108136f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10814bf4a254eSmrgfi
108157c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
108166f02d4e9Smrgfi
108177c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
108187c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
108196f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1082021212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1082121212451Smrgfi
10822a73027baSmrg
1082321212451Smrgfound="no"
10824a73027baSmrg
1082521212451Smrg	if test $found = "no" ; then
108266f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1082721212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1082821212451Smrg		fi
1082929004570Smrg
108306f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1083121212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1083221212451Smrg		fi
1083329004570Smrg
1083421212451Smrg		CFLAGS="$CFLAGS -pedantic"
10835c81d8f5eSmrg
108367c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
108377c5adda3Smrgprintf %s "checking if $CC supports -pedantic... " >&6; }
108386f02d4e9Smrg		cacheid=xorg_cv_cc_flag__pedantic
108397c5adda3Smrg		if eval test \${$cacheid+y}
108407c5adda3Smrgthen :
108417c5adda3Smrg  printf %s "(cached) " >&6
108427c5adda3Smrgelse $as_nop
108436f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1084421212451Smrg/* end confdefs.h.  */
1084521212451Smrgint i;
1084621212451Smrgint
108477c5adda3Smrgmain (void)
1084821212451Smrg{
10849c81d8f5eSmrg
1085021212451Smrg  ;
1085121212451Smrg  return 0;
1085221212451Smrg}
1085321212451Smrg_ACEOF
108547c5adda3Smrgif ac_fn_c_try_link "$LINENO"
108557c5adda3Smrgthen :
108566f02d4e9Smrg  eval $cacheid=yes
108577c5adda3Smrgelse $as_nop
108586f02d4e9Smrg  eval $cacheid=no
108596f02d4e9Smrgfi
108607c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
108616f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
10862c81d8f5eSmrgfi
10863c81d8f5eSmrg
108646f02d4e9Smrg
1086521212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10866c81d8f5eSmrg
108676f02d4e9Smrg		eval supported=\$$cacheid
108687c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
108697c5adda3Smrgprintf "%s\n" "$supported" >&6; }
1087021212451Smrg		if test "$supported" = "yes" ; then
1087121212451Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
1087221212451Smrg			found="yes"
1087321212451Smrg		fi
1087421212451Smrg	fi
10875c81d8f5eSmrg
10876c81d8f5eSmrg
10877c81d8f5eSmrg
10878c81d8f5eSmrg
10879c81d8f5eSmrg
10880c81d8f5eSmrg
10881c81d8f5eSmrg
108826f02d4e9Smrg
108836f02d4e9Smrg
108846f02d4e9Smrg
108856f02d4e9Smrg
108866f02d4e9Smrg
108876f02d4e9Smrg
108886f02d4e9Smrg
108896f02d4e9Smrg
1089021212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10891bf4a254eSmrg
108926f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1089321212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
108947c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
108957c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
108967c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
108977c5adda3Smrgthen :
108987c5adda3Smrg  printf %s "(cached) " >&6
108997c5adda3Smrgelse $as_nop
109006f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1090121212451Smrg/* end confdefs.h.  */
1090221212451Smrgint i;
1090321212451Smrg_ACEOF
109047c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
109057c5adda3Smrgthen :
109066f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
109077c5adda3Smrgelse $as_nop
109086f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10909bf4a254eSmrgfi
109107c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
109116f02d4e9Smrgfi
109127c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
109137c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
109146f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1091521212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10916a73027baSmrgfi
10917a73027baSmrg
109186f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
109196f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1092021212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1092121212451Smrg	fi
1092221212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
109237c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
109247c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
109257c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
109267c5adda3Smrgthen :
109277c5adda3Smrg  printf %s "(cached) " >&6
109287c5adda3Smrgelse $as_nop
109296f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1093021212451Smrg/* end confdefs.h.  */
1093121212451Smrgint i;
1093221212451Smrg_ACEOF
109337c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
109347c5adda3Smrgthen :
109356f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
109367c5adda3Smrgelse $as_nop
109376f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10938a73027baSmrgfi
109397c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
109406f02d4e9Smrgfi
109417c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
109427c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
109436f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1094421212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10945a73027baSmrgfi
10946a73027baSmrg
1094721212451Smrgfound="no"
10948a73027baSmrg
1094921212451Smrg	if test $found = "no" ; then
109506f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1095121212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1095221212451Smrg		fi
10953a73027baSmrg
109546f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1095521212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1095621212451Smrg		fi
10957a73027baSmrg
1095821212451Smrg		CFLAGS="$CFLAGS -Werror"
1095921212451Smrg
109607c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
109617c5adda3Smrgprintf %s "checking if $CC supports -Werror... " >&6; }
109626f02d4e9Smrg		cacheid=xorg_cv_cc_flag__Werror
109637c5adda3Smrg		if eval test \${$cacheid+y}
109647c5adda3Smrgthen :
109657c5adda3Smrg  printf %s "(cached) " >&6
109667c5adda3Smrgelse $as_nop
109676f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1096821212451Smrg/* end confdefs.h.  */
1096921212451Smrgint i;
1097021212451Smrgint
109717c5adda3Smrgmain (void)
1097221212451Smrg{
1097321212451Smrg
1097421212451Smrg  ;
1097521212451Smrg  return 0;
1097621212451Smrg}
1097721212451Smrg_ACEOF
109787c5adda3Smrgif ac_fn_c_try_link "$LINENO"
109797c5adda3Smrgthen :
109806f02d4e9Smrg  eval $cacheid=yes
109817c5adda3Smrgelse $as_nop
109826f02d4e9Smrg  eval $cacheid=no
10983bf4a254eSmrgfi
109847c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
109856f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
109866f02d4e9Smrgfi
109876f02d4e9Smrg
10988bf4a254eSmrg
1098921212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10990bf4a254eSmrg
109916f02d4e9Smrg		eval supported=\$$cacheid
109927c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
109937c5adda3Smrgprintf "%s\n" "$supported" >&6; }
1099421212451Smrg		if test "$supported" = "yes" ; then
1099521212451Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
1099621212451Smrg			found="yes"
1099721212451Smrg		fi
1099821212451Smrg	fi
1099921212451Smrg
1100021212451Smrg	if test $found = "no" ; then
110016f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1100221212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1100321212451Smrg		fi
1100421212451Smrg
110056f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1100621212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1100721212451Smrg		fi
1100821212451Smrg
1100921212451Smrg		CFLAGS="$CFLAGS -errwarn"
1101021212451Smrg
110117c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
110127c5adda3Smrgprintf %s "checking if $CC supports -errwarn... " >&6; }
110136f02d4e9Smrg		cacheid=xorg_cv_cc_flag__errwarn
110147c5adda3Smrg		if eval test \${$cacheid+y}
110157c5adda3Smrgthen :
110167c5adda3Smrg  printf %s "(cached) " >&6
110177c5adda3Smrgelse $as_nop
110186f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1101921212451Smrg/* end confdefs.h.  */
1102021212451Smrgint i;
1102121212451Smrgint
110227c5adda3Smrgmain (void)
1102321212451Smrg{
1102421212451Smrg
1102521212451Smrg  ;
1102621212451Smrg  return 0;
1102721212451Smrg}
1102821212451Smrg_ACEOF
110297c5adda3Smrgif ac_fn_c_try_link "$LINENO"
110307c5adda3Smrgthen :
110316f02d4e9Smrg  eval $cacheid=yes
110327c5adda3Smrgelse $as_nop
110336f02d4e9Smrg  eval $cacheid=no
110346f02d4e9Smrgfi
110357c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
110366f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
1103729004570Smrgfi
1103829004570Smrg
110396f02d4e9Smrg
1104021212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1104129004570Smrg
110426f02d4e9Smrg		eval supported=\$$cacheid
110437c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
110447c5adda3Smrgprintf "%s\n" "$supported" >&6; }
1104521212451Smrg		if test "$supported" = "yes" ; then
1104621212451Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
1104721212451Smrg			found="yes"
1104821212451Smrg		fi
1104921212451Smrg	fi
11050bf4a254eSmrg
11051bf4a254eSmrg
11052bf4a254eSmrg
1105321212451Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
1105421212451Smrg# activate it with -Werror, so we add it here explicitly.
11055c81d8f5eSmrg
11056bf4a254eSmrg
11057bf4a254eSmrg
11058bf4a254eSmrg
11059bf4a254eSmrg
110606f02d4e9Smrg
110616f02d4e9Smrg
110626f02d4e9Smrg
110636f02d4e9Smrg
110646f02d4e9Smrg
110656f02d4e9Smrg
110666f02d4e9Smrg
110676f02d4e9Smrg
1106821212451Smrgxorg_testset_save_CFLAGS="$CFLAGS"
11069bf4a254eSmrg
110706f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1107121212451Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
110727c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
110737c5adda3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
110747c5adda3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
110757c5adda3Smrgthen :
110767c5adda3Smrg  printf %s "(cached) " >&6
110777c5adda3Smrgelse $as_nop
110786f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1107921212451Smrg/* end confdefs.h.  */
1108021212451Smrgint i;
1108121212451Smrg_ACEOF
110827c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
110837c5adda3Smrgthen :
110846f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
110857c5adda3Smrgelse $as_nop
110866f02d4e9Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1108721212451Smrgfi
110887c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
110896f02d4e9Smrgfi
110907c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
110917c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
110926f02d4e9Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1109321212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
11094bf4a254eSmrgfi
11095bf4a254eSmrg
110966f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
110976f02d4e9Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1109821212451Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1109921212451Smrg	fi
1110021212451Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
111017c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
111027c5adda3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
111037c5adda3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
111047c5adda3Smrgthen :
111057c5adda3Smrg  printf %s "(cached) " >&6
111067c5adda3Smrgelse $as_nop
111076f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108c81d8f5eSmrg/* end confdefs.h.  */
1110921212451Smrgint i;
11110c81d8f5eSmrg_ACEOF
111117c5adda3Smrgif ac_fn_c_try_compile "$LINENO"
111127c5adda3Smrgthen :
111136f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
111147c5adda3Smrgelse $as_nop
111156f02d4e9Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
11116bf4a254eSmrgfi
111177c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
111186f02d4e9Smrgfi
111197c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
111207c5adda3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
111216f02d4e9Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1112221212451Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1112321212451Smrgfi
1112421212451Smrg
1112521212451Smrgfound="no"
1112621212451Smrg
1112721212451Smrg	if test $found = "no" ; then
111286f02d4e9Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1112921212451Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1113021212451Smrg		fi
1113121212451Smrg
111326f02d4e9Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1113321212451Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1113421212451Smrg		fi
1113521212451Smrg
1113621212451Smrg		CFLAGS="$CFLAGS -Werror=attributes"
1113721212451Smrg
111387c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
111397c5adda3Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
111407253c0c7Smrg		cacheid=xorg_cv_cc_flag__Werror_attributes
111417c5adda3Smrg		if eval test \${$cacheid+y}
111427c5adda3Smrgthen :
111437c5adda3Smrg  printf %s "(cached) " >&6
111447c5adda3Smrgelse $as_nop
111456f02d4e9Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1114621212451Smrg/* end confdefs.h.  */
1114721212451Smrgint i;
1114821212451Smrgint
111497c5adda3Smrgmain (void)
1115021212451Smrg{
1115121212451Smrg
1115221212451Smrg  ;
1115321212451Smrg  return 0;
1115421212451Smrg}
1115521212451Smrg_ACEOF
111567c5adda3Smrgif ac_fn_c_try_link "$LINENO"
111577c5adda3Smrgthen :
111586f02d4e9Smrg  eval $cacheid=yes
111597c5adda3Smrgelse $as_nop
111606f02d4e9Smrg  eval $cacheid=no
11161bf4a254eSmrgfi
111627c5adda3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
111636f02d4e9Smrg    conftest$ac_exeext conftest.$ac_ext
111646f02d4e9Smrgfi
111656f02d4e9Smrg
1116621212451Smrg
1116721212451Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1116821212451Smrg
111696f02d4e9Smrg		eval supported=\$$cacheid
111707c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
111717c5adda3Smrgprintf "%s\n" "$supported" >&6; }
1117221212451Smrg		if test "$supported" = "yes" ; then
1117321212451Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
1117421212451Smrg			found="yes"
1117521212451Smrg		fi
1117621212451Smrg	fi
1117721212451Smrg
1117821212451Smrg
1117921212451Smrg
11180c81d8f5eSmrgif test "x$STRICT_COMPILE" = "xyes"; then
1118121212451Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11182c81d8f5eSmrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11183bf4a254eSmrgfi
11184c81d8f5eSmrg
11185bf4a254eSmrg
11186bf4a254eSmrg
11187bf4a254eSmrg
11188bf4a254eSmrg
1118921212451Smrg
11190fd549268Smrg
11191fd549268Smrg
11192bf4a254eSmrgcat >>confdefs.h <<_ACEOF
11193bf4a254eSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11194bf4a254eSmrg_ACEOF
11195bf4a254eSmrg
11196bf4a254eSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11197bf4a254eSmrg	if test "x$PVM" = "x"; then
11198bf4a254eSmrg		PVM="0"
11199bf4a254eSmrg	fi
11200bf4a254eSmrg
112017c5adda3Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11202bf4a254eSmrg
11203bf4a254eSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11204bf4a254eSmrg	if test "x$PVP" = "x"; then
11205bf4a254eSmrg		PVP="0"
11206bf4a254eSmrg	fi
11207bf4a254eSmrg
112087c5adda3Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11209bf4a254eSmrg
11210bf4a254eSmrg
11211bf4a254eSmrg
112127c5adda3SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11213bf4a254eSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
112147c5adda3Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
112157c5adda3Smrgtouch \$(top_srcdir)/ChangeLog; \
112167c5adda3Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11217bf4a254eSmrg
11218bf4a254eSmrg
11219bf4a254eSmrg
11220bf4a254eSmrg
11221bf4a254eSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11222bf4a254eSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11223bf4a254eSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
112247c5adda3Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
112257c5adda3Smrgtouch \$(top_srcdir)/INSTALL; \
112267c5adda3Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
112277c5adda3Smrg
11228bf4a254eSmrg
11229bf4a254eSmrg
11230bf4a254eSmrg
11231bf4a254eSmrg
11232bf4a254eSmrg
112337c5adda3Smrgcase $host_os in
112347c5adda3Smrg    solaris*)
112357c5adda3Smrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
112367c5adda3Smrg        # check for a man page file found in later versions that use
112377c5adda3Smrg        # traditional section numbers instead
112387c5adda3Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
112397c5adda3Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
112407c5adda3Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
112417c5adda3Smrgthen :
112427c5adda3Smrg  printf %s "(cached) " >&6
112437c5adda3Smrgelse $as_nop
112447c5adda3Smrg  test "$cross_compiling" = yes &&
112457c5adda3Smrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
112467c5adda3Smrgif test -r "/usr/share/man/man7/attributes.7"; then
112477c5adda3Smrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
112487c5adda3Smrgelse
112497c5adda3Smrg  ac_cv_file__usr_share_man_man7_attributes_7=no
112507c5adda3Smrgfi
112517c5adda3Smrgfi
112527c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
112537c5adda3Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
112547c5adda3Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
112557c5adda3Smrgthen :
112567c5adda3Smrg  SYSV_MAN_SECTIONS=false
112577c5adda3Smrgelse $as_nop
112587c5adda3Smrg  SYSV_MAN_SECTIONS=true
112597c5adda3Smrgfi
112607c5adda3Smrg
112617c5adda3Smrg        ;;
112627c5adda3Smrg    *) SYSV_MAN_SECTIONS=false ;;
112637c5adda3Smrgesac
1126429004570Smrg
11265bf4a254eSmrgif test x$APP_MAN_SUFFIX = x    ; then
11266bf4a254eSmrg    APP_MAN_SUFFIX=1
11267bf4a254eSmrgfi
11268bf4a254eSmrgif test x$APP_MAN_DIR = x    ; then
11269bf4a254eSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11270bf4a254eSmrgfi
11271bf4a254eSmrg
11272bf4a254eSmrgif test x$LIB_MAN_SUFFIX = x    ; then
11273bf4a254eSmrg    LIB_MAN_SUFFIX=3
11274bf4a254eSmrgfi
11275bf4a254eSmrgif test x$LIB_MAN_DIR = x    ; then
11276bf4a254eSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11277bf4a254eSmrgfi
11278bf4a254eSmrg
11279bf4a254eSmrgif test x$FILE_MAN_SUFFIX = x    ; then
112807c5adda3Smrg    case $SYSV_MAN_SECTIONS in
112817c5adda3Smrg	true)				FILE_MAN_SUFFIX=4  ;;
11282d73e0b87Smrg	*)				FILE_MAN_SUFFIX=5  ;;
1128329004570Smrg    esac
1128429004570Smrgfi
1128529004570Smrgif test x$FILE_MAN_DIR = x    ; then
1128629004570Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11287bf4a254eSmrgfi
11288bf4a254eSmrg
1128929004570Smrgif test x$MISC_MAN_SUFFIX = x    ; then
112907c5adda3Smrg    case $SYSV_MAN_SECTIONS in
112917c5adda3Smrg	true)				MISC_MAN_SUFFIX=5  ;;
11292d73e0b87Smrg	*)				MISC_MAN_SUFFIX=7  ;;
1129329004570Smrg    esac
1129429004570Smrgfi
1129529004570Smrgif test x$MISC_MAN_DIR = x    ; then
1129629004570Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11297bf4a254eSmrgfi
11298bf4a254eSmrg
1129929004570Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
113007c5adda3Smrg    case $SYSV_MAN_SECTIONS in
113017c5adda3Smrg	true)				DRIVER_MAN_SUFFIX=7  ;;
11302d73e0b87Smrg	*)				DRIVER_MAN_SUFFIX=4  ;;
1130329004570Smrg    esac
1130429004570Smrgfi
1130529004570Smrgif test x$DRIVER_MAN_DIR = x    ; then
1130629004570Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1130729004570Smrgfi
11308bf4a254eSmrg
1130929004570Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
113107c5adda3Smrg    case $SYSV_MAN_SECTIONS in
113117c5adda3Smrg	true)				ADMIN_MAN_SUFFIX=1m ;;
11312d73e0b87Smrg	*)				ADMIN_MAN_SUFFIX=8  ;;
1131329004570Smrg    esac
1131429004570Smrgfi
1131529004570Smrgif test x$ADMIN_MAN_DIR = x    ; then
1131629004570Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11317bf4a254eSmrgfi
11318bf4a254eSmrg
1131929004570Smrg
1132029004570Smrg
1132129004570Smrg
1132229004570Smrg
1132329004570Smrg
1132429004570Smrg
1132529004570Smrg
1132629004570Smrg
1132729004570Smrg
1132829004570Smrg
1132929004570Smrg
1133029004570Smrg
1133129004570Smrg
1133229004570Smrg
1133329004570SmrgXORG_MAN_PAGE="X Version 11"
1133429004570Smrg
1133529004570SmrgMAN_SUBSTS="\
1133629004570Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1133729004570Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1133829004570Smrg	-e 's|__xservername__|Xorg|g' \
1133929004570Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
1134029004570Smrg	-e 's|__projectroot__|\$(prefix)|g' \
1134129004570Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
1134229004570Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
1134329004570Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
1134429004570Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
1134529004570Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
1134629004570Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
1134729004570Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
1134829004570Smrg
1134929004570Smrg
1135029004570Smrg
113516f02d4e9Smrg# Check whether --enable-silent-rules was given.
113527c5adda3Smrgif test ${enable_silent_rules+y}
113537c5adda3Smrgthen :
113546f02d4e9Smrg  enableval=$enable_silent_rules;
113556f02d4e9Smrgfi
113566f02d4e9Smrg
113576f02d4e9Smrgcase $enable_silent_rules in # (((
113586f02d4e9Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
113596f02d4e9Smrg   no) AM_DEFAULT_VERBOSITY=1;;
113606f02d4e9Smrg    *) AM_DEFAULT_VERBOSITY=0;;
113616f02d4e9Smrgesac
113626f02d4e9Smrgam_make=${MAKE-make}
113637c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
113647c5adda3Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
113657c5adda3Smrgif test ${am_cv_make_support_nested_variables+y}
113667c5adda3Smrgthen :
113677c5adda3Smrg  printf %s "(cached) " >&6
113687c5adda3Smrgelse $as_nop
113697c5adda3Smrg  if printf "%s\n" 'TRUE=$(BAR$(V))
113706f02d4e9SmrgBAR0=false
113716f02d4e9SmrgBAR1=true
113726f02d4e9SmrgV=1
113736f02d4e9Smrgam__doit:
113746f02d4e9Smrg	@$(TRUE)
113756f02d4e9Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
113766f02d4e9Smrg  am_cv_make_support_nested_variables=yes
113776f02d4e9Smrgelse
113786f02d4e9Smrg  am_cv_make_support_nested_variables=no
113796f02d4e9Smrgfi
113806f02d4e9Smrgfi
113817c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
113827c5adda3Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
113836f02d4e9Smrgif test $am_cv_make_support_nested_variables = yes; then
113846f02d4e9Smrg    AM_V='$(V)'
113856f02d4e9Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
113866f02d4e9Smrgelse
113876f02d4e9Smrg  AM_V=$AM_DEFAULT_VERBOSITY
113886f02d4e9Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
113896f02d4e9Smrgfi
113906f02d4e9SmrgAM_BACKSLASH='\'
1139129004570Smrg
1139229004570Smrg
1139329004570Smrg
11394fd549268Smrg
113957c5adda3Smrgac_ext=c
113967c5adda3Smrgac_cpp='$CPP $CPPFLAGS'
113977c5adda3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
113987c5adda3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
113997c5adda3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
114007c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
114017c5adda3Smrgprintf %s "checking how to run the C preprocessor... " >&6; }
114027c5adda3Smrg# On Suns, sometimes $CPP names a directory.
114037c5adda3Smrgif test -n "$CPP" && test -d "$CPP"; then
114047c5adda3Smrg  CPP=
114057c5adda3Smrgfi
114067c5adda3Smrgif test -z "$CPP"; then
114077c5adda3Smrg  if test ${ac_cv_prog_CPP+y}
114087c5adda3Smrgthen :
114097c5adda3Smrg  printf %s "(cached) " >&6
114107c5adda3Smrgelse $as_nop
114117c5adda3Smrg      # Double quotes because $CC needs to be expanded
114127c5adda3Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
114137c5adda3Smrg    do
114147c5adda3Smrg      ac_preproc_ok=false
114157c5adda3Smrgfor ac_c_preproc_warn_flag in '' yes
114167c5adda3Smrgdo
114177c5adda3Smrg  # Use a header file that comes with gcc, so configuring glibc
114187c5adda3Smrg  # with a fresh cross-compiler works.
114197c5adda3Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
114207c5adda3Smrg  # not just through cpp. "Syntax error" is here to catch this case.
114217c5adda3Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
114227c5adda3Smrg/* end confdefs.h.  */
114237c5adda3Smrg#include <limits.h>
114247c5adda3Smrg		     Syntax error
114257c5adda3Smrg_ACEOF
114267c5adda3Smrgif ac_fn_c_try_cpp "$LINENO"
114277c5adda3Smrgthen :
114287c5adda3Smrg
114297c5adda3Smrgelse $as_nop
114307c5adda3Smrg  # Broken: fails on valid input.
114317c5adda3Smrgcontinue
114327c5adda3Smrgfi
114337c5adda3Smrgrm -f conftest.err conftest.i conftest.$ac_ext
11434bf4a254eSmrg
114357c5adda3Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
114367c5adda3Smrg  # can be detected and how.
114377c5adda3Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
114387c5adda3Smrg/* end confdefs.h.  */
114397c5adda3Smrg#include <ac_nonexistent.h>
114407c5adda3Smrg_ACEOF
114417c5adda3Smrgif ac_fn_c_try_cpp "$LINENO"
114427c5adda3Smrgthen :
114437c5adda3Smrg  # Broken: success on invalid input.
114447c5adda3Smrgcontinue
114457c5adda3Smrgelse $as_nop
114467c5adda3Smrg  # Passes both tests.
114477c5adda3Smrgac_preproc_ok=:
114487c5adda3Smrgbreak
114497c5adda3Smrgfi
114507c5adda3Smrgrm -f conftest.err conftest.i conftest.$ac_ext
11451bf4a254eSmrg
114527c5adda3Smrgdone
114537c5adda3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
114547c5adda3Smrgrm -f conftest.i conftest.err conftest.$ac_ext
114557c5adda3Smrgif $ac_preproc_ok
114567c5adda3Smrgthen :
114577c5adda3Smrg  break
114587c5adda3Smrgfi
114597c5adda3Smrg
114607c5adda3Smrg    done
114617c5adda3Smrg    ac_cv_prog_CPP=$CPP
114627c5adda3Smrg
114637c5adda3Smrgfi
114647c5adda3Smrg  CPP=$ac_cv_prog_CPP
11465bf4a254eSmrgelse
114667c5adda3Smrg  ac_cv_prog_CPP=$CPP
114677c5adda3Smrgfi
114687c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
114697c5adda3Smrgprintf "%s\n" "$CPP" >&6; }
114707c5adda3Smrgac_preproc_ok=false
114717c5adda3Smrgfor ac_c_preproc_warn_flag in '' yes
114727c5adda3Smrgdo
114737c5adda3Smrg  # Use a header file that comes with gcc, so configuring glibc
114747c5adda3Smrg  # with a fresh cross-compiler works.
114757c5adda3Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
114767c5adda3Smrg  # not just through cpp. "Syntax error" is here to catch this case.
114777c5adda3Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
114787c5adda3Smrg/* end confdefs.h.  */
114797c5adda3Smrg#include <limits.h>
114807c5adda3Smrg		     Syntax error
114817c5adda3Smrg_ACEOF
114827c5adda3Smrgif ac_fn_c_try_cpp "$LINENO"
114837c5adda3Smrgthen :
114847c5adda3Smrg
114857c5adda3Smrgelse $as_nop
114867c5adda3Smrg  # Broken: fails on valid input.
114877c5adda3Smrgcontinue
114887c5adda3Smrgfi
114897c5adda3Smrgrm -f conftest.err conftest.i conftest.$ac_ext
114907c5adda3Smrg
114917c5adda3Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
114927c5adda3Smrg  # can be detected and how.
114937c5adda3Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
114947c5adda3Smrg/* end confdefs.h.  */
114957c5adda3Smrg#include <ac_nonexistent.h>
114967c5adda3Smrg_ACEOF
114977c5adda3Smrgif ac_fn_c_try_cpp "$LINENO"
114987c5adda3Smrgthen :
114997c5adda3Smrg  # Broken: success on invalid input.
115007c5adda3Smrgcontinue
115017c5adda3Smrgelse $as_nop
115027c5adda3Smrg  # Passes both tests.
115037c5adda3Smrgac_preproc_ok=:
115047c5adda3Smrgbreak
115057c5adda3Smrgfi
115067c5adda3Smrgrm -f conftest.err conftest.i conftest.$ac_ext
115077c5adda3Smrg
115087c5adda3Smrgdone
115097c5adda3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
115107c5adda3Smrgrm -f conftest.i conftest.err conftest.$ac_ext
115117c5adda3Smrgif $ac_preproc_ok
115127c5adda3Smrgthen :
115137c5adda3Smrg
115147c5adda3Smrgelse $as_nop
115157c5adda3Smrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
115167c5adda3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
115177c5adda3Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
115187c5adda3SmrgSee \`config.log' for more details" "$LINENO" 5; }
115197c5adda3Smrgfi
115207c5adda3Smrg
115217c5adda3Smrgac_ext=c
115227c5adda3Smrgac_cpp='$CPP $CPPFLAGS'
115237c5adda3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
115247c5adda3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
115257c5adda3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
115267c5adda3Smrg
115277c5adda3Smrg
115287c5adda3Smrg
115297c5adda3Smrgif test -n "$ac_tool_prefix"; then
115307c5adda3Smrg  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
115317c5adda3Smrgset dummy ${ac_tool_prefix}cpp; ac_word=$2
115327c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
115337c5adda3Smrgprintf %s "checking for $ac_word... " >&6; }
115347c5adda3Smrgif test ${ac_cv_path_RAWCPP+y}
115357c5adda3Smrgthen :
115367c5adda3Smrg  printf %s "(cached) " >&6
115377c5adda3Smrgelse $as_nop
11538bf4a254eSmrg  case $RAWCPP in
11539bf4a254eSmrg  [\\/]* | ?:[\\/]*)
11540bf4a254eSmrg  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
11541bf4a254eSmrg  ;;
11542bf4a254eSmrg  *)
11543bf4a254eSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544bf4a254eSmrgas_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
11545bf4a254eSmrgfor as_dir in $as_dummy
11546bf4a254eSmrgdo
11547bf4a254eSmrg  IFS=$as_save_IFS
115487c5adda3Smrg  case $as_dir in #(((
115497c5adda3Smrg    '') as_dir=./ ;;
115507c5adda3Smrg    */) ;;
115517c5adda3Smrg    *) as_dir=$as_dir/ ;;
115527c5adda3Smrg  esac
115536f02d4e9Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
115547c5adda3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
115557c5adda3Smrg    ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
115567c5adda3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11557bf4a254eSmrg    break 2
11558bf4a254eSmrg  fi
11559bf4a254eSmrgdone
115606f02d4e9Smrg  done
11561bf4a254eSmrgIFS=$as_save_IFS
11562bf4a254eSmrg
11563bf4a254eSmrg  ;;
11564bf4a254eSmrgesac
11565bf4a254eSmrgfi
11566bf4a254eSmrgRAWCPP=$ac_cv_path_RAWCPP
11567bf4a254eSmrgif test -n "$RAWCPP"; then
115687c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
115697c5adda3Smrgprintf "%s\n" "$RAWCPP" >&6; }
11570bf4a254eSmrgelse
115717c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
115727c5adda3Smrgprintf "%s\n" "no" >&6; }
11573bf4a254eSmrgfi
11574bf4a254eSmrg
11575bf4a254eSmrg
115767c5adda3Smrgfi
115777c5adda3Smrgif test -z "$ac_cv_path_RAWCPP"; then
115787c5adda3Smrg  ac_pt_RAWCPP=$RAWCPP
115797c5adda3Smrg  # Extract the first word of "cpp", so it can be a program name with args.
115807c5adda3Smrgset dummy cpp; ac_word=$2
115817c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
115827c5adda3Smrgprintf %s "checking for $ac_word... " >&6; }
115837c5adda3Smrgif test ${ac_cv_path_ac_pt_RAWCPP+y}
115847c5adda3Smrgthen :
115857c5adda3Smrg  printf %s "(cached) " >&6
115867c5adda3Smrgelse $as_nop
115877c5adda3Smrg  case $ac_pt_RAWCPP in
115887c5adda3Smrg  [\\/]* | ?:[\\/]*)
115897c5adda3Smrg  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
115907c5adda3Smrg  ;;
115917c5adda3Smrg  *)
115927c5adda3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115937c5adda3Smrgas_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
115947c5adda3Smrgfor as_dir in $as_dummy
115957c5adda3Smrgdo
115967c5adda3Smrg  IFS=$as_save_IFS
115977c5adda3Smrg  case $as_dir in #(((
115987c5adda3Smrg    '') as_dir=./ ;;
115997c5adda3Smrg    */) ;;
116007c5adda3Smrg    *) as_dir=$as_dir/ ;;
116017c5adda3Smrg  esac
116027c5adda3Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
116037c5adda3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
116047c5adda3Smrg    ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
116057c5adda3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
116067c5adda3Smrg    break 2
116077c5adda3Smrg  fi
11608bf4a254eSmrgdone
116097c5adda3Smrg  done
116107c5adda3SmrgIFS=$as_save_IFS
116117c5adda3Smrg
116127c5adda3Smrg  ;;
116137c5adda3Smrgesac
116147c5adda3Smrgfi
116157c5adda3Smrgac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
116167c5adda3Smrgif test -n "$ac_pt_RAWCPP"; then
116177c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
116187c5adda3Smrgprintf "%s\n" "$ac_pt_RAWCPP" >&6; }
116197c5adda3Smrgelse
116207c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
116217c5adda3Smrgprintf "%s\n" "no" >&6; }
116227c5adda3Smrgfi
116237c5adda3Smrg
116247c5adda3Smrg  if test "x$ac_pt_RAWCPP" = x; then
116257c5adda3Smrg    RAWCPP="${CPP}"
116267c5adda3Smrg  else
116277c5adda3Smrg    case $cross_compiling:$ac_tool_warned in
116287c5adda3Smrgyes:)
116297c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
116307c5adda3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
116317c5adda3Smrgac_tool_warned=yes ;;
116327c5adda3Smrgesac
116337c5adda3Smrg    RAWCPP=$ac_pt_RAWCPP
116347c5adda3Smrg  fi
116357c5adda3Smrgelse
116367c5adda3Smrg  RAWCPP="$ac_cv_path_RAWCPP"
116377c5adda3Smrgfi
11638bf4a254eSmrg
11639bf4a254eSmrg
11640bf4a254eSmrg# Check for flag to avoid builtin definitions - assumes unix is predefined,
11641bf4a254eSmrg# which is not the best choice for supporting other OS'es, but covers most
11642bf4a254eSmrg# of the ones we need for now.
116437c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
116447c5adda3Smrgprintf %s "checking if $RAWCPP requires -undef... " >&6; }
116456f02d4e9Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646bf4a254eSmrg/* end confdefs.h.  */
11647bf4a254eSmrgDoes cpp redefine unix ?
11648bf4a254eSmrg_ACEOF
11649bf4a254eSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
116507c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
116517c5adda3Smrgprintf "%s\n" "no" >&6; }
11652bf4a254eSmrgelse
11653bf4a254eSmrg	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11654bf4a254eSmrg		RAWCPPFLAGS=-undef
116557c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
116567c5adda3Smrgprintf "%s\n" "yes" >&6; }
11657bf4a254eSmrg	# under Cygwin unix is still defined even with -undef
11658bf4a254eSmrg	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11659bf4a254eSmrg		RAWCPPFLAGS="-undef -ansi"
116607c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
116617c5adda3Smrgprintf "%s\n" "yes, with -ansi" >&6; }
11662bf4a254eSmrg	else
116636f02d4e9Smrg		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
11664bf4a254eSmrg	fi
11665bf4a254eSmrgfi
11666bf4a254eSmrgrm -f conftest.$ac_ext
11667bf4a254eSmrg
116687c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
116697c5adda3Smrgprintf %s "checking if $RAWCPP requires -traditional... " >&6; }
116706f02d4e9Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671bf4a254eSmrg/* end confdefs.h.  */
11672bf4a254eSmrgDoes cpp preserve   "whitespace"?
11673bf4a254eSmrg_ACEOF
11674fd549268Smrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   "'` -eq 1 ; then
116757c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
116767c5adda3Smrgprintf "%s\n" "no" >&6; }
11677bf4a254eSmrgelse
11678fd549268Smrg	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   "'` -eq 1 ; then
116797253c0c7Smrg		TRADITIONALCPPFLAGS="-traditional"
11680bf4a254eSmrg		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
116817c5adda3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
116827c5adda3Smrgprintf "%s\n" "yes" >&6; }
11683bf4a254eSmrg	else
116846f02d4e9Smrg		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
11685bf4a254eSmrg	fi
11686bf4a254eSmrgfi
11687bf4a254eSmrgrm -f conftest.$ac_ext
11688bf4a254eSmrg
11689bf4a254eSmrg
11690bf4a254eSmrg
11691a73027baSmrg
116927253c0c7Smrg
11693a73027baSmrg# Build options
11694a73027baSmrgDEFAULT_XRDB=xrdb
11695a73027baSmrgDEFAULT_XMODMAP=xmodmap
11696a73027baSmrgDEFAULT_TWM=twm
11697a73027baSmrgDEFAULT_XCLOCK=xclock
11698a73027baSmrgDEFAULT_XTERM=xterm
11699a73027baSmrg# You always want to specify the full path to the X server
11700a73027baSmrgDEFAULT_XSERVER=${bindir}/X
11701a73027baSmrgDEFAULT_XAUTH=xauth
11702a73027baSmrgDEFAULT_XINIT=xinit
117036f02d4e9SmrgDEFAULT_XINITDIR=${sysconfdir}/X11/xinit
11704a73027baSmrg
11705a73027baSmrg
11706a73027baSmrg# Check whether --with-xrdb was given.
117077c5adda3Smrgif test ${with_xrdb+y}
117087c5adda3Smrgthen :
11709a73027baSmrg  withval=$with_xrdb; XRDB="$withval"
117107c5adda3Smrgelse $as_nop
11711a73027baSmrg  XRDB="$DEFAULT_XRDB"
11712a73027baSmrgfi
11713a73027baSmrg
11714a73027baSmrg
11715a73027baSmrg
11716a73027baSmrg# Check whether --with-xmodmap was given.
117177c5adda3Smrgif test ${with_xmodmap+y}
117187c5adda3Smrgthen :
11719a73027baSmrg  withval=$with_xmodmap; XMODMAP="$withval"
117207c5adda3Smrgelse $as_nop
11721a73027baSmrg  XMODMAP="$DEFAULT_XMODMAP"
11722a73027baSmrgfi
11723a73027baSmrg
11724a73027baSmrg
11725a73027baSmrg
11726a73027baSmrg# Check whether --with-twm was given.
117277c5adda3Smrgif test ${with_twm+y}
117287c5adda3Smrgthen :
11729a73027baSmrg  withval=$with_twm; TWM="$withval"
117307c5adda3Smrgelse $as_nop
11731a73027baSmrg  TWM="$DEFAULT_TWM"
11732a73027baSmrgfi
11733a73027baSmrg
11734a73027baSmrg
11735a73027baSmrg
11736a73027baSmrg# Check whether --with-xclock was given.
117377c5adda3Smrgif test ${with_xclock+y}
117387c5adda3Smrgthen :
11739a73027baSmrg  withval=$with_xclock; XCLOCK="$withval"
117407c5adda3Smrgelse $as_nop
11741a73027baSmrg  XCLOCK="$DEFAULT_XCLOCK"
11742a73027baSmrgfi
11743a73027baSmrg
11744a73027baSmrg
11745a73027baSmrg
11746a73027baSmrg# Check whether --with-xterm was given.
117477c5adda3Smrgif test ${with_xterm+y}
117487c5adda3Smrgthen :
11749a73027baSmrg  withval=$with_xterm; XTERM="$withval"
117507c5adda3Smrgelse $as_nop
11751a73027baSmrg  XTERM="$DEFAULT_XTERM"
11752a73027baSmrgfi
11753a73027baSmrg
11754a73027baSmrg
11755a73027baSmrg
11756a73027baSmrg# Check whether --with-xserver was given.
117577c5adda3Smrgif test ${with_xserver+y}
117587c5adda3Smrgthen :
11759a73027baSmrg  withval=$with_xserver; XSERVER="$withval"
117607c5adda3Smrgelse $as_nop
11761a73027baSmrg  XSERVER="$DEFAULT_XSERVER"
11762a73027baSmrgfi
11763a73027baSmrg
11764a73027baSmrg
11765a73027baSmrg
11766a73027baSmrg# Check whether --with-xauth was given.
117677c5adda3Smrgif test ${with_xauth+y}
117687c5adda3Smrgthen :
11769a73027baSmrg  withval=$with_xauth; XAUTH="$withval"
117707c5adda3Smrgelse $as_nop
11771a73027baSmrg  XAUTH="$DEFAULT_XAUTH"
11772a73027baSmrgfi
11773a73027baSmrg
11774a73027baSmrg
11775a73027baSmrg
11776a73027baSmrg# Check whether --with-xinit was given.
117777c5adda3Smrgif test ${with_xinit+y}
117787c5adda3Smrgthen :
11779a73027baSmrg  withval=$with_xinit; XINIT="$withval"
117807c5adda3Smrgelse $as_nop
11781a73027baSmrg  XINIT="$DEFAULT_XINIT"
11782a73027baSmrgfi
11783a73027baSmrg
11784a73027baSmrg
11785a73027baSmrg
11786bf4a254eSmrg# Check whether --with-xinitdir was given.
117877c5adda3Smrgif test ${with_xinitdir+y}
117887c5adda3Smrgthen :
11789bf4a254eSmrg  withval=$with_xinitdir; XINITDIR="$withval"
117907c5adda3Smrgelse $as_nop
11791bf4a254eSmrg  XINITDIR="$DEFAULT_XINITDIR"
11792bf4a254eSmrgfi
11793bf4a254eSmrg
11794bf4a254eSmrg
11795bf4a254eSmrg
11796a73027baSmrg# Check whether --with-launchd was given.
117977c5adda3Smrgif test ${with_launchd+y}
117987c5adda3Smrgthen :
11799a73027baSmrg  withval=$with_launchd; LAUNCHD=$withval
118007c5adda3Smrgelse $as_nop
11801a73027baSmrg  LAUNCHD=auto
11802a73027baSmrgfi
11803a73027baSmrg
11804a73027baSmrg
11805a73027baSmrg# Check whether --with-launchagents-dir was given.
118067c5adda3Smrgif test ${with_launchagents_dir+y}
118077c5adda3Smrgthen :
11808a73027baSmrg  withval=$with_launchagents_dir;  launchagentsdir="${withval}"
118097c5adda3Smrgelse $as_nop
11810a73027baSmrg   launchagentsdir="/Library/LaunchAgents"
11811a73027baSmrgfi
11812a73027baSmrg
11813a73027baSmrg
1181421212451Smrg# Check whether --with-launchagent-xserver was given.
118157c5adda3Smrgif test ${with_launchagent_xserver+y}
118167c5adda3Smrgthen :
1181721212451Smrg  withval=$with_launchagent_xserver;  launchagentxserver="${withval}"
118187c5adda3Smrgelse $as_nop
1181921212451Smrg   launchagentxserver="no"
1182021212451Smrgfi
1182121212451Smrg
1182221212451Smrg
11823a73027baSmrg# Check whether --with-launchdaemons-dir was given.
118247c5adda3Smrgif test ${with_launchdaemons_dir+y}
118257c5adda3Smrgthen :
11826a73027baSmrg  withval=$with_launchdaemons_dir;  launchdaemonsdir="${withval}"
118277c5adda3Smrgelse $as_nop
11828a73027baSmrg   launchdaemonsdir="/Library/LaunchDaemons"
11829a73027baSmrgfi
11830a73027baSmrg
11831a73027baSmrg
11832bf4a254eSmrg# Check whether --with-launchd-id-prefix was given.
118337c5adda3Smrgif test ${with_launchd_id_prefix+y}
118347c5adda3Smrgthen :
11835c81d8f5eSmrg  withval=$with_launchd_id_prefix;  bundleidprefix="${withval}"
118367c5adda3Smrgelse $as_nop
11837c81d8f5eSmrg   bundleidprefix="org.x"
11838c81d8f5eSmrgfi
11839c81d8f5eSmrg
11840c81d8f5eSmrg
11841c81d8f5eSmrg# Check whether --with-bundle-id-prefix was given.
118427c5adda3Smrgif test ${with_bundle_id_prefix+y}
118437c5adda3Smrgthen :
11844c81d8f5eSmrg  withval=$with_bundle_id_prefix;  bundleidprefix="${withval}"
11845bf4a254eSmrgfi
11846bf4a254eSmrg
11847bf4a254eSmrg
11848a73027baSmrgif test "x$LAUNCHD" = "xauto"; then
11849a73027baSmrg	unset LAUNCHD
1185072e81212Smrg	# Extract the first word of "launchd", so it can be a program name with args.
11851a73027baSmrgset dummy launchd; ac_word=$2
118527c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
118537c5adda3Smrgprintf %s "checking for $ac_word... " >&6; }
118547c5adda3Smrgif test ${ac_cv_prog_LAUNCHD+y}
118557c5adda3Smrgthen :
118567c5adda3Smrg  printf %s "(cached) " >&6
118577c5adda3Smrgelse $as_nop
11858a73027baSmrg  if test -n "$LAUNCHD"; then
11859a73027baSmrg  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
11860a73027baSmrgelse
11861a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186229004570Smrgfor as_dir in $PATH$PATH_SEPARATOR/sbin
11863a73027baSmrgdo
11864a73027baSmrg  IFS=$as_save_IFS
118657c5adda3Smrg  case $as_dir in #(((
118667c5adda3Smrg    '') as_dir=./ ;;
118677c5adda3Smrg    */) ;;
118687c5adda3Smrg    *) as_dir=$as_dir/ ;;
118697c5adda3Smrg  esac
118706f02d4e9Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
118717c5adda3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11872a73027baSmrg    ac_cv_prog_LAUNCHD="yes"
118737c5adda3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11874a73027baSmrg    break 2
11875a73027baSmrg  fi
11876a73027baSmrgdone
118776f02d4e9Smrg  done
11878a73027baSmrgIFS=$as_save_IFS
11879a73027baSmrg
11880a73027baSmrg  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
11881a73027baSmrgfi
11882a73027baSmrgfi
11883a73027baSmrgLAUNCHD=$ac_cv_prog_LAUNCHD
11884a73027baSmrgif test -n "$LAUNCHD"; then
118857c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
118867c5adda3Smrgprintf "%s\n" "$LAUNCHD" >&6; }
11887a73027baSmrgelse
118887c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
118897c5adda3Smrgprintf "%s\n" "no" >&6; }
11890a73027baSmrgfi
11891a73027baSmrg
1189221212451Smrg
11893a73027baSmrgfi
11894a73027baSmrg
11895a73027baSmrg
118967c5adda3Smrgprintf "%s\n" "#define BUNDLE_ID_PREFIX \"$bundleidprefix\"" >>confdefs.h
11897bf4a254eSmrg
11898bf4a254eSmrg
11899bf4a254eSmrg
11900bf4a254eSmrg
1190121212451Smrg
11902a73027baSmrg if test "x$LAUNCHD" = "xyes"; then
11903a73027baSmrg  LAUNCHD_TRUE=
11904a73027baSmrg  LAUNCHD_FALSE='#'
11905a73027baSmrgelse
11906a73027baSmrg  LAUNCHD_TRUE='#'
11907a73027baSmrg  LAUNCHD_FALSE=
11908a73027baSmrgfi
11909a73027baSmrg
1191021212451Smrg if test "x$launchagentxserver" != "xno"; then
1191121212451Smrg  LAUNCHAGENT_XSERVER_TRUE=
1191221212451Smrg  LAUNCHAGENT_XSERVER_FALSE='#'
1191321212451Smrgelse
1191421212451Smrg  LAUNCHAGENT_XSERVER_TRUE='#'
1191521212451Smrg  LAUNCHAGENT_XSERVER_FALSE=
1191621212451Smrgfi
1191721212451Smrg
11918a73027baSmrg
11919fd549268Smrg# Checks for library functions.
11920fd549268Smrgac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
11921fd549268Smrgif test "x$ac_cv_func_asprintf" = xyes
11922fd549268Smrgthen :
11923fd549268Smrg  printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
11924fd549268Smrg
11925fd549268Smrgfi
11926fd549268Smrg
11927fd549268Smrg
11928a73027baSmrg# Checks for pkg-config packages
11929a73027baSmrg
11930a73027baSmrgpkg_failed=no
119317c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XINIT" >&5
119327c5adda3Smrgprintf %s "checking for XINIT... " >&6; }
11933a73027baSmrg
11934a73027baSmrgif test -n "$XINIT_CFLAGS"; then
11935a73027baSmrg    pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS"
11936a73027baSmrg elif test -n "$PKG_CONFIG"; then
11937a73027baSmrg    if test -n "$PKG_CONFIG" && \
11938fd549268Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.22\""; } >&5
11939fd549268Smrg  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.22") 2>&5
11940a73027baSmrg  ac_status=$?
119417c5adda3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
119426f02d4e9Smrg  test $ac_status = 0; }; then
11943fd549268Smrg  pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.22" 2>/dev/null`
119447253c0c7Smrg		      test "x$?" != "x0" && pkg_failed=yes
11945a73027baSmrgelse
11946a73027baSmrg  pkg_failed=yes
11947a73027baSmrgfi
11948a73027baSmrg else
11949a73027baSmrg    pkg_failed=untried
11950a73027baSmrgfi
11951a73027baSmrgif test -n "$XINIT_LIBS"; then
11952a73027baSmrg    pkg_cv_XINIT_LIBS="$XINIT_LIBS"
11953a73027baSmrg elif test -n "$PKG_CONFIG"; then
11954a73027baSmrg    if test -n "$PKG_CONFIG" && \
11955fd549268Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.22\""; } >&5
11956fd549268Smrg  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.22") 2>&5
11957a73027baSmrg  ac_status=$?
119587c5adda3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
119596f02d4e9Smrg  test $ac_status = 0; }; then
11960fd549268Smrg  pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.22" 2>/dev/null`
119617253c0c7Smrg		      test "x$?" != "x0" && pkg_failed=yes
11962a73027baSmrgelse
11963a73027baSmrg  pkg_failed=yes
11964a73027baSmrgfi
11965a73027baSmrg else
11966a73027baSmrg    pkg_failed=untried
11967a73027baSmrgfi
11968a73027baSmrg
11969a73027baSmrg
11970a73027baSmrg
11971a73027baSmrgif test $pkg_failed = yes; then
119727c5adda3Smrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
119737c5adda3Smrgprintf "%s\n" "no" >&6; }
11974a73027baSmrg
11975a73027baSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11976a73027baSmrg        _pkg_short_errors_supported=yes
11977a73027baSmrgelse
11978a73027baSmrg        _pkg_short_errors_supported=no
11979a73027baSmrgfi
11980a73027baSmrg        if test $_pkg_short_errors_supported = yes; then
11981fd549268Smrg	        XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.22" 2>&1`
11982a73027baSmrg        else
11983fd549268Smrg	        XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.22" 2>&1`
11984a73027baSmrg        fi
11985a73027baSmrg	# Put the nasty error message in config.log where it belongs
11986a73027baSmrg	echo "$XINIT_PKG_ERRORS" >&5
11987a73027baSmrg
11988fd549268Smrg	as_fn_error $? "Package requirements (x11 xproto >= 7.0.22) were not met:
11989a73027baSmrg
11990a73027baSmrg$XINIT_PKG_ERRORS
11991a73027baSmrg
11992a73027baSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
11993a73027baSmrginstalled software in a non-standard prefix.
11994a73027baSmrg
1199521212451SmrgAlternatively, you may set the environment variables XINIT_CFLAGS
1199621212451Smrgand XINIT_LIBS to avoid the need to call pkg-config.
119977253c0c7SmrgSee the pkg-config man page for more details." "$LINENO" 5
119986f02d4e9Smrgelif test $pkg_failed = untried; then
119997c5adda3Smrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
120007c5adda3Smrgprintf "%s\n" "no" >&6; }
120017c5adda3Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
120027c5adda3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
120036f02d4e9Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12004a73027baSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
12005a73027baSmrgpath to pkg-config.
12006a73027baSmrg
12007a73027baSmrgAlternatively, you may set the environment variables XINIT_CFLAGS
12008a73027baSmrgand XINIT_LIBS to avoid the need to call pkg-config.
12009a73027baSmrgSee the pkg-config man page for more details.
12010a73027baSmrg
12011a73027baSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
120126f02d4e9SmrgSee \`config.log' for more details" "$LINENO" 5; }
12013a73027baSmrgelse
12014a73027baSmrg	XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS
12015a73027baSmrg	XINIT_LIBS=$pkg_cv_XINIT_LIBS
120167c5adda3Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
120177c5adda3Smrgprintf "%s\n" "yes" >&6; }
120187253c0c7Smrg
12019a73027baSmrgfi
12020a73027baSmrg
12021a73027baSmrgcase $host_os in
12022a73027baSmrg    *bsd*)
12023a73027baSmrg        XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED"
12024a73027baSmrg        ;;
12025a73027baSmrgesac
12026a73027baSmrg
12027a73027baSmrg
12028a73027baSmrgfor ac_prog in mcookie
12029a73027baSmrgdo
12030a73027baSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
12031a73027baSmrgset dummy $ac_prog; ac_word=$2
120327c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
120337c5adda3Smrgprintf %s "checking for $ac_word... " >&6; }
120347c5adda3Smrgif test ${ac_cv_path_MCOOKIE+y}
120357c5adda3Smrgthen :
120367c5adda3Smrg  printf %s "(cached) " >&6
120377c5adda3Smrgelse $as_nop
12038a73027baSmrg  case $MCOOKIE in
12039a73027baSmrg  [\\/]* | ?:[\\/]*)
12040a73027baSmrg  ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path.
12041a73027baSmrg  ;;
12042a73027baSmrg  *)
12043a73027baSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044a73027baSmrgas_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin"
12045a73027baSmrgfor as_dir in $as_dummy
12046a73027baSmrgdo
12047a73027baSmrg  IFS=$as_save_IFS
120487c5adda3Smrg  case $as_dir in #(((
120497c5adda3Smrg    '') as_dir=./ ;;
120507c5adda3Smrg    */) ;;
120517c5adda3Smrg    *) as_dir=$as_dir/ ;;
120527c5adda3Smrg  esac
120536f02d4e9Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
120547c5adda3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
120557c5adda3Smrg    ac_cv_path_MCOOKIE="$as_dir$ac_word$ac_exec_ext"
120567c5adda3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12057a73027baSmrg    break 2
12058a73027baSmrg  fi
12059a73027baSmrgdone
120606f02d4e9Smrg  done
12061a73027baSmrgIFS=$as_save_IFS
12062a73027baSmrg
12063a73027baSmrg  ;;
12064a73027baSmrgesac
12065a73027baSmrgfi
12066a73027baSmrgMCOOKIE=$ac_cv_path_MCOOKIE
12067a73027baSmrgif test -n "$MCOOKIE"; then
120687c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MCOOKIE" >&5
120697c5adda3Smrgprintf "%s\n" "$MCOOKIE" >&6; }
12070a73027baSmrgelse
120717c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
120727c5adda3Smrgprintf "%s\n" "no" >&6; }
12073a73027baSmrgfi
12074a73027baSmrg
12075a73027baSmrg
12076a73027baSmrg  test -n "$MCOOKIE" && break
12077a73027baSmrgdone
12078a73027baSmrgtest -n "$MCOOKIE" || MCOOKIE="$MCOOKIE"
12079a73027baSmrg
12080a73027baSmrg
120816f02d4e9Smrg# If mcookie not found, try openssl, else per-system fallbacks
120826f02d4e9Smrgif test "x$MCOOKIE" = x ; then
120836f02d4e9Smrg    for ac_prog in openssl
120846f02d4e9Smrgdo
120856f02d4e9Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
120866f02d4e9Smrgset dummy $ac_prog; ac_word=$2
120877c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
120887c5adda3Smrgprintf %s "checking for $ac_word... " >&6; }
120897c5adda3Smrgif test ${ac_cv_path_OPENSSL+y}
120907c5adda3Smrgthen :
120917c5adda3Smrg  printf %s "(cached) " >&6
120927c5adda3Smrgelse $as_nop
120936f02d4e9Smrg  case $OPENSSL in
120946f02d4e9Smrg  [\\/]* | ?:[\\/]*)
120956f02d4e9Smrg  ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
120966f02d4e9Smrg  ;;
120976f02d4e9Smrg  *)
120986f02d4e9Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
120996f02d4e9Smrgas_dummy="$PATH:/bin:/usr/bin:/usr/sbin:/usr/lib:/usr/libexec:/usr/local/bin"
121006f02d4e9Smrgfor as_dir in $as_dummy
121016f02d4e9Smrgdo
121026f02d4e9Smrg  IFS=$as_save_IFS
121037c5adda3Smrg  case $as_dir in #(((
121047c5adda3Smrg    '') as_dir=./ ;;
121057c5adda3Smrg    */) ;;
121067c5adda3Smrg    *) as_dir=$as_dir/ ;;
121077c5adda3Smrg  esac
121086f02d4e9Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
121097c5adda3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
121107c5adda3Smrg    ac_cv_path_OPENSSL="$as_dir$ac_word$ac_exec_ext"
121117c5adda3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
121126f02d4e9Smrg    break 2
121136f02d4e9Smrg  fi
121146f02d4e9Smrgdone
121156f02d4e9Smrg  done
121166f02d4e9SmrgIFS=$as_save_IFS
121176f02d4e9Smrg
121186f02d4e9Smrg  ;;
12119a73027baSmrgesac
121206f02d4e9Smrgfi
121216f02d4e9SmrgOPENSSL=$ac_cv_path_OPENSSL
121226f02d4e9Smrgif test -n "$OPENSSL"; then
121237c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
121247c5adda3Smrgprintf "%s\n" "$OPENSSL" >&6; }
121256f02d4e9Smrgelse
121267c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
121277c5adda3Smrgprintf "%s\n" "no" >&6; }
121286f02d4e9Smrgfi
12129a73027baSmrg
121306f02d4e9Smrg
121316f02d4e9Smrg  test -n "$OPENSSL" && break
121326f02d4e9Smrgdone
121336f02d4e9Smrgtest -n "$OPENSSL" || OPENSSL="$OPENSSL"
121346f02d4e9Smrg
121356f02d4e9Smrg    if test "x$OPENSSL" != x ; then
121366f02d4e9Smrg        MCOOKIE="$OPENSSL rand -hex 16"
121376f02d4e9Smrg    else
121386f02d4e9Smrg        case $host_os in
121396f02d4e9Smrg            *solaris*)
121406f02d4e9Smrg                MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '"
121416f02d4e9Smrg                ;;
121426f02d4e9Smrg        esac
121436f02d4e9Smrg    fi
121446f02d4e9Smrgfi
12145a73027baSmrgif test "x$MCOOKIE" != x ; then
12146a73027baSmrg	STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"'
121477c5adda3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&5
121487c5adda3Smrgprintf "%s\n" "$as_me: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&6;}
12149a73027baSmrgfi
12150a73027baSmrg
12151a73027baSmrg
12152a73027baSmrg# Additional substitutions in startx, xinitrc & man pages
12153bf4a254eSmrgSHELL_CMD="/bin/sh"
12154bf4a254eSmrgXSERVERNAME="Xorg"
12155bf4a254eSmrgXCONFIGFILE="xorg.conf"
12156c81d8f5eSmrgXCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})'
12157a73027baSmrgcase $host_os in
12158bf4a254eSmrg    cygwin*)
12159bf4a254eSmrg	XSERVERNAME="XWin"
12160bf4a254eSmrg	XCONFIGFILE="XWinrc"
12161bf4a254eSmrg	;;
12162bf4a254eSmrg    darwin*)
12163bf4a254eSmrg	XSERVERNAME="Xquartz"
12164bf4a254eSmrg	XCONFIGFILE="defaults"
12165bf4a254eSmrg	XCONFIGFILEMAN='defaults (1)'
12166bf4a254eSmrg	;;
12167a73027baSmrg    *solaris*)
12168a73027baSmrg	SHELL_CMD="/bin/ksh"
12169a73027baSmrg	;;
12170a73027baSmrgesac
12171a73027baSmrg
12172a73027baSmrg
12173a73027baSmrg
12174a73027baSmrg
12175a73027baSmrg
12176a73027baSmrg
12177a73027baSmrg
12178a73027baSmrg
12179a73027baSmrg
12180a73027baSmrg
12181a73027baSmrg
12182a73027baSmrg
12183a73027baSmrg
12184a73027baSmrg
12185a73027baSmrg
12186c81d8f5eSmrgac_config_files="$ac_config_files Makefile man/Makefile launchd/Makefile launchd/privileged_startx/Makefile launchd/user_startx/Makefile"
12187a73027baSmrg
12188a73027baSmrgcat >confcache <<\_ACEOF
12189a73027baSmrg# This file is a shell script that caches the results of configure
12190a73027baSmrg# tests run on this system so they can be shared between configure
12191a73027baSmrg# scripts and configure runs, see configure's option --config-cache.
12192a73027baSmrg# It is not useful on other systems.  If it contains results you don't
12193a73027baSmrg# want to keep, you may remove or edit it.
12194a73027baSmrg#
12195a73027baSmrg# config.status only pays attention to the cache file if you give it
12196a73027baSmrg# the --recheck option to rerun configure.
12197a73027baSmrg#
12198a73027baSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
12199a73027baSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
12200a73027baSmrg# following values.
12201a73027baSmrg
12202a73027baSmrg_ACEOF
12203a73027baSmrg
12204a73027baSmrg# The following way of writing the cache mishandles newlines in values,
12205a73027baSmrg# but we know of no workaround that is simple, portable, and efficient.
12206a73027baSmrg# So, we kill variables containing newlines.
12207a73027baSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
12208a73027baSmrg# and sets the high bit in the cache file unless we assign to the vars.
12209a73027baSmrg(
12210a73027baSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12211a73027baSmrg    eval ac_val=\$$ac_var
12212a73027baSmrg    case $ac_val in #(
12213a73027baSmrg    *${as_nl}*)
12214a73027baSmrg      case $ac_var in #(
122157c5adda3Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
122167c5adda3Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12217a73027baSmrg      esac
12218a73027baSmrg      case $ac_var in #(
12219a73027baSmrg      _ | IFS | as_nl) ;; #(
122206f02d4e9Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
122216f02d4e9Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
12222a73027baSmrg      esac ;;
12223a73027baSmrg    esac
12224a73027baSmrg  done
12225a73027baSmrg
12226a73027baSmrg  (set) 2>&1 |
12227a73027baSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12228a73027baSmrg    *${as_nl}ac_space=\ *)
122296f02d4e9Smrg      # `set' does not quote correctly, so add quotes: double-quote
122306f02d4e9Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
12231a73027baSmrg      sed -n \
12232a73027baSmrg	"s/'/'\\\\''/g;
12233a73027baSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12234a73027baSmrg      ;; #(
12235a73027baSmrg    *)
12236a73027baSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
12237a73027baSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12238a73027baSmrg      ;;
12239a73027baSmrg    esac |
12240a73027baSmrg    sort
12241a73027baSmrg) |
12242a73027baSmrg  sed '
12243a73027baSmrg     /^ac_cv_env_/b end
12244a73027baSmrg     t clear
12245a73027baSmrg     :clear
122467c5adda3Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12247a73027baSmrg     t end
12248a73027baSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12249a73027baSmrg     :end' >>confcache
12250a73027baSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12251a73027baSmrg  if test -w "$cache_file"; then
122526f02d4e9Smrg    if test "x$cache_file" != "x/dev/null"; then
122537c5adda3Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
122547c5adda3Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
122556f02d4e9Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
122566f02d4e9Smrg	cat confcache >"$cache_file"
122576f02d4e9Smrg      else
122586f02d4e9Smrg        case $cache_file in #(
122596f02d4e9Smrg        */* | ?:*)
122606f02d4e9Smrg	  mv -f confcache "$cache_file"$$ &&
122616f02d4e9Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
122626f02d4e9Smrg        *)
122636f02d4e9Smrg	  mv -f confcache "$cache_file" ;;
122646f02d4e9Smrg	esac
122656f02d4e9Smrg      fi
122666f02d4e9Smrg    fi
12267a73027baSmrg  else
122687c5adda3Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
122697c5adda3Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12270a73027baSmrg  fi
12271a73027baSmrgfi
12272a73027baSmrgrm -f confcache
12273a73027baSmrg
12274a73027baSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
12275a73027baSmrg# Let make expand exec_prefix.
12276a73027baSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12277a73027baSmrg
12278a73027baSmrgDEFS=-DHAVE_CONFIG_H
12279a73027baSmrg
12280a73027baSmrgac_libobjs=
12281a73027baSmrgac_ltlibobjs=
122826f02d4e9SmrgU=
12283a73027baSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12284a73027baSmrg  # 1. Remove the extension, and $U if already installed.
12285a73027baSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
122867c5adda3Smrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12287a73027baSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12288a73027baSmrg  #    will be set to the directory where LIBOBJS objects are built.
122896f02d4e9Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
122906f02d4e9Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12291a73027baSmrgdone
12292a73027baSmrgLIBOBJS=$ac_libobjs
12293a73027baSmrg
12294a73027baSmrgLTLIBOBJS=$ac_ltlibobjs
12295a73027baSmrg
12296a73027baSmrg
122977c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
122987c5adda3Smrgprintf %s "checking that generated files are newer than configure... " >&6; }
122996f02d4e9Smrg   if test -n "$am_sleep_pid"; then
123006f02d4e9Smrg     # Hide warnings about reused PIDs.
123016f02d4e9Smrg     wait $am_sleep_pid 2>/dev/null
123026f02d4e9Smrg   fi
123037c5adda3Smrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
123047c5adda3Smrgprintf "%s\n" "done" >&6; }
12305a73027baSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
123066f02d4e9Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
123076f02d4e9SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
12308a73027baSmrgfi
12309a73027baSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
123106f02d4e9Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
123116f02d4e9SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
12312a73027baSmrgfi
12313fd549268Smrg if test -n "$EXEEXT"; then
12314fd549268Smrg  am__EXEEXT_TRUE=
12315fd549268Smrg  am__EXEEXT_FALSE='#'
12316fd549268Smrgelse
12317fd549268Smrg  am__EXEEXT_TRUE='#'
12318fd549268Smrg  am__EXEEXT_FALSE=
12319fd549268Smrgfi
12320fd549268Smrg
12321a73027baSmrgif test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
123226f02d4e9Smrg  as_fn_error $? "conditional \"LAUNCHD\" was never defined.
123236f02d4e9SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
12324a73027baSmrgfi
1232521212451Smrgif test -z "${LAUNCHAGENT_XSERVER_TRUE}" && test -z "${LAUNCHAGENT_XSERVER_FALSE}"; then
123266f02d4e9Smrg  as_fn_error $? "conditional \"LAUNCHAGENT_XSERVER\" was never defined.
123276f02d4e9SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1232872e81212Smrgfi
12329a73027baSmrg
123306f02d4e9Smrg: "${CONFIG_STATUS=./config.status}"
123316f02d4e9Smrgac_write_fail=0
12332a73027baSmrgac_clean_files_save=$ac_clean_files
12333a73027baSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
123347c5adda3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
123357c5adda3Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
123366f02d4e9Smrgas_write_fail=0
123376f02d4e9Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12338a73027baSmrg#! $SHELL
12339a73027baSmrg# Generated by $as_me.
12340a73027baSmrg# Run this file to recreate the current configuration.
12341a73027baSmrg# Compiler output produced by configure, useful for debugging
12342a73027baSmrg# configure, is in config.log if it exists.
12343a73027baSmrg
12344a73027baSmrgdebug=false
12345a73027baSmrgac_cs_recheck=false
12346a73027baSmrgac_cs_silent=false
1234721212451Smrg
123486f02d4e9SmrgSHELL=\${CONFIG_SHELL-$SHELL}
123496f02d4e9Smrgexport SHELL
123506f02d4e9Smrg_ASEOF
123516f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
123526f02d4e9Smrg## -------------------- ##
123536f02d4e9Smrg## M4sh Initialization. ##
123546f02d4e9Smrg## -------------------- ##
12355a73027baSmrg
12356a73027baSmrg# Be more Bourne compatible
12357a73027baSmrgDUALCASE=1; export DUALCASE # for MKS sh
123587c5adda3Smrgas_nop=:
123597c5adda3Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
123607c5adda3Smrgthen :
12361a73027baSmrg  emulate sh
12362a73027baSmrg  NULLCMD=:
123636f02d4e9Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12364a73027baSmrg  # is contrary to our usage.  Disable this feature.
12365a73027baSmrg  alias -g '${1+"$@"}'='"$@"'
12366a73027baSmrg  setopt NO_GLOB_SUBST
123677c5adda3Smrgelse $as_nop
123686f02d4e9Smrg  case `(set -o) 2>/dev/null` in #(
123696f02d4e9Smrg  *posix*) :
123706f02d4e9Smrg    set -o posix ;; #(
123716f02d4e9Smrg  *) :
123726f02d4e9Smrg     ;;
12373a73027baSmrgesac
12374a73027baSmrgfi
12375a73027baSmrg
12376a73027baSmrg
123777c5adda3Smrg
123787c5adda3Smrg# Reset variables that may have inherited troublesome values from
123797c5adda3Smrg# the environment.
123807c5adda3Smrg
123817c5adda3Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
123827c5adda3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
123837c5adda3Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
123847c5adda3Smrg# Quoting is to prevent editors from complaining about space-tab.
123856f02d4e9Smrgas_nl='
123866f02d4e9Smrg'
123876f02d4e9Smrgexport as_nl
123887c5adda3SmrgIFS=" ""	$as_nl"
123897c5adda3Smrg
123907c5adda3SmrgPS1='$ '
123917c5adda3SmrgPS2='> '
123927c5adda3SmrgPS4='+ '
123937c5adda3Smrg
123947c5adda3Smrg# Ensure predictable behavior from utilities with locale-dependent output.
123957c5adda3SmrgLC_ALL=C
123967c5adda3Smrgexport LC_ALL
123977c5adda3SmrgLANGUAGE=C
123987c5adda3Smrgexport LANGUAGE
123997c5adda3Smrg
124007c5adda3Smrg# We cannot yet rely on "unset" to work, but we need these variables
124017c5adda3Smrg# to be unset--not just set to an empty or harmless value--now, to
124027c5adda3Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
124037c5adda3Smrg# also avoids known problems related to "unset" and subshell syntax
124047c5adda3Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
124057c5adda3Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
124067c5adda3Smrgdo eval test \${$as_var+y} \
124077c5adda3Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124087c5adda3Smrgdone
124097c5adda3Smrg
124107c5adda3Smrg# Ensure that fds 0, 1, and 2 are open.
124117c5adda3Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
124127c5adda3Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
124137c5adda3Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12414a73027baSmrg
124156f02d4e9Smrg# The user is always right.
124167c5adda3Smrgif ${PATH_SEPARATOR+false} :; then
124176f02d4e9Smrg  PATH_SEPARATOR=:
124186f02d4e9Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
124196f02d4e9Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
124206f02d4e9Smrg      PATH_SEPARATOR=';'
124216f02d4e9Smrg  }
12422a73027baSmrgfi
12423a73027baSmrg
12424a73027baSmrg
12425a73027baSmrg# Find who we are.  Look in the path if we contain no directory separator.
124266f02d4e9Smrgas_myself=
124276f02d4e9Smrgcase $0 in #((
12428a73027baSmrg  *[\\/]* ) as_myself=$0 ;;
12429a73027baSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430a73027baSmrgfor as_dir in $PATH
12431a73027baSmrgdo
12432a73027baSmrg  IFS=$as_save_IFS
124337c5adda3Smrg  case $as_dir in #(((
124347c5adda3Smrg    '') as_dir=./ ;;
124357c5adda3Smrg    */) ;;
124367c5adda3Smrg    *) as_dir=$as_dir/ ;;
124377c5adda3Smrg  esac
124387c5adda3Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
124396f02d4e9Smrg  done
12440a73027baSmrgIFS=$as_save_IFS
12441a73027baSmrg
12442a73027baSmrg     ;;
12443a73027baSmrgesac
12444a73027baSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
12445a73027baSmrg# in which case we are not to be found in the path.
12446a73027baSmrgif test "x$as_myself" = x; then
12447a73027baSmrg  as_myself=$0
12448a73027baSmrgfi
12449a73027baSmrgif test ! -f "$as_myself"; then
124507c5adda3Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
124516f02d4e9Smrg  exit 1
12452a73027baSmrgfi
12453a73027baSmrg
124546f02d4e9Smrg
124556f02d4e9Smrg
124566f02d4e9Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
124576f02d4e9Smrg# ----------------------------------------
124586f02d4e9Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
124596f02d4e9Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
124606f02d4e9Smrg# script with STATUS, using 1 if that was 0.
124616f02d4e9Smrgas_fn_error ()
124626f02d4e9Smrg{
124636f02d4e9Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
124646f02d4e9Smrg  if test "$4"; then
124656f02d4e9Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
124667c5adda3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1246721212451Smrg  fi
124687c5adda3Smrg  printf "%s\n" "$as_me: error: $2" >&2
124696f02d4e9Smrg  as_fn_exit $as_status
124706f02d4e9Smrg} # as_fn_error
124716f02d4e9Smrg
124726f02d4e9Smrg
124737c5adda3Smrg
124746f02d4e9Smrg# as_fn_set_status STATUS
124756f02d4e9Smrg# -----------------------
124766f02d4e9Smrg# Set $? to STATUS, without forking.
124776f02d4e9Smrgas_fn_set_status ()
124786f02d4e9Smrg{
124796f02d4e9Smrg  return $1
124806f02d4e9Smrg} # as_fn_set_status
124816f02d4e9Smrg
124826f02d4e9Smrg# as_fn_exit STATUS
124836f02d4e9Smrg# -----------------
124846f02d4e9Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
124856f02d4e9Smrgas_fn_exit ()
124866f02d4e9Smrg{
124876f02d4e9Smrg  set +e
124886f02d4e9Smrg  as_fn_set_status $1
124896f02d4e9Smrg  exit $1
124906f02d4e9Smrg} # as_fn_exit
124916f02d4e9Smrg
124926f02d4e9Smrg# as_fn_unset VAR
124936f02d4e9Smrg# ---------------
124946f02d4e9Smrg# Portably unset VAR.
124956f02d4e9Smrgas_fn_unset ()
124966f02d4e9Smrg{
124976f02d4e9Smrg  { eval $1=; unset $1;}
124986f02d4e9Smrg}
124996f02d4e9Smrgas_unset=as_fn_unset
125007c5adda3Smrg
125016f02d4e9Smrg# as_fn_append VAR VALUE
125026f02d4e9Smrg# ----------------------
125036f02d4e9Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
125046f02d4e9Smrg# advantage of any shell optimizations that allow amortized linear growth over
125056f02d4e9Smrg# repeated appends, instead of the typical quadratic growth present in naive
125066f02d4e9Smrg# implementations.
125077c5adda3Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
125087c5adda3Smrgthen :
125096f02d4e9Smrg  eval 'as_fn_append ()
125106f02d4e9Smrg  {
125116f02d4e9Smrg    eval $1+=\$2
125126f02d4e9Smrg  }'
125137c5adda3Smrgelse $as_nop
125146f02d4e9Smrg  as_fn_append ()
125156f02d4e9Smrg  {
125166f02d4e9Smrg    eval $1=\$$1\$2
125176f02d4e9Smrg  }
125186f02d4e9Smrgfi # as_fn_append
125196f02d4e9Smrg
125206f02d4e9Smrg# as_fn_arith ARG...
125216f02d4e9Smrg# ------------------
125226f02d4e9Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
125236f02d4e9Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
125246f02d4e9Smrg# must be portable across $(()) and expr.
125257c5adda3Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
125267c5adda3Smrgthen :
125276f02d4e9Smrg  eval 'as_fn_arith ()
125286f02d4e9Smrg  {
125296f02d4e9Smrg    as_val=$(( $* ))
125306f02d4e9Smrg  }'
125317c5adda3Smrgelse $as_nop
125326f02d4e9Smrg  as_fn_arith ()
125336f02d4e9Smrg  {
125346f02d4e9Smrg    as_val=`expr "$@" || test $? -eq 1`
125356f02d4e9Smrg  }
125366f02d4e9Smrgfi # as_fn_arith
125376f02d4e9Smrg
12538a73027baSmrg
12539a73027baSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
12540a73027baSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12541a73027baSmrg  as_expr=expr
12542a73027baSmrgelse
12543a73027baSmrg  as_expr=false
12544a73027baSmrgfi
12545a73027baSmrg
12546a73027baSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12547a73027baSmrg  as_basename=basename
12548a73027baSmrgelse
12549a73027baSmrg  as_basename=false
12550a73027baSmrgfi
12551a73027baSmrg
125526f02d4e9Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
125536f02d4e9Smrg  as_dirname=dirname
125546f02d4e9Smrgelse
125556f02d4e9Smrg  as_dirname=false
125566f02d4e9Smrgfi
12557a73027baSmrg
12558a73027baSmrgas_me=`$as_basename -- "$0" ||
12559a73027baSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12560a73027baSmrg	 X"$0" : 'X\(//\)$' \| \
12561a73027baSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
125627c5adda3Smrgprintf "%s\n" X/"$0" |
12563a73027baSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
12564a73027baSmrg	    s//\1/
12565a73027baSmrg	    q
12566a73027baSmrg	  }
12567a73027baSmrg	  /^X\/\(\/\/\)$/{
12568a73027baSmrg	    s//\1/
12569a73027baSmrg	    q
12570a73027baSmrg	  }
12571a73027baSmrg	  /^X\/\(\/\).*/{
12572a73027baSmrg	    s//\1/
12573a73027baSmrg	    q
12574a73027baSmrg	  }
12575a73027baSmrg	  s/.*/./; q'`
12576a73027baSmrg
125776f02d4e9Smrg# Avoid depending upon Character Ranges.
125786f02d4e9Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
125796f02d4e9Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
125806f02d4e9Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
125816f02d4e9Smrgas_cr_digits='0123456789'
125826f02d4e9Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
12583a73027baSmrg
125847c5adda3Smrg
125857c5adda3Smrg# Determine whether it's possible to make 'echo' print without a newline.
125867c5adda3Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
125877c5adda3Smrg# for compatibility with existing Makefiles.
12588a73027baSmrgECHO_C= ECHO_N= ECHO_T=
125896f02d4e9Smrgcase `echo -n x` in #(((((
12590a73027baSmrg-n*)
125916f02d4e9Smrg  case `echo 'xy\c'` in
12592a73027baSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
125936f02d4e9Smrg  xy)  ECHO_C='\c';;
125946f02d4e9Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
125956f02d4e9Smrg       ECHO_T='	';;
12596a73027baSmrg  esac;;
12597a73027baSmrg*)
12598a73027baSmrg  ECHO_N='-n';;
12599a73027baSmrgesac
12600a73027baSmrg
126017c5adda3Smrg# For backward compatibility with old third-party macros, we provide
126027c5adda3Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
126037c5adda3Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
126047c5adda3Smrgas_echo='printf %s\n'
126057c5adda3Smrgas_echo_n='printf %s'
126067c5adda3Smrg
12607bf4a254eSmrgrm -f conf$$ conf$$.exe conf$$.file
12608bf4a254eSmrgif test -d conf$$.dir; then
12609bf4a254eSmrg  rm -f conf$$.dir/conf$$.file
12610a73027baSmrgelse
12611bf4a254eSmrg  rm -f conf$$.dir
126126f02d4e9Smrg  mkdir conf$$.dir 2>/dev/null
126136f02d4e9Smrgfi
126146f02d4e9Smrgif (echo >conf$$.file) 2>/dev/null; then
126156f02d4e9Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
126166f02d4e9Smrg    as_ln_s='ln -s'
126176f02d4e9Smrg    # ... but there are two gotchas:
126186f02d4e9Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
126196f02d4e9Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
126207253c0c7Smrg    # In both cases, we have to default to `cp -pR'.
126216f02d4e9Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
126227253c0c7Smrg      as_ln_s='cp -pR'
126236f02d4e9Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
126246f02d4e9Smrg    as_ln_s=ln
126256f02d4e9Smrg  else
126267253c0c7Smrg    as_ln_s='cp -pR'
126276f02d4e9Smrg  fi
12628bf4a254eSmrgelse
126297253c0c7Smrg  as_ln_s='cp -pR'
12630a73027baSmrgfi
12631bf4a254eSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12632bf4a254eSmrgrmdir conf$$.dir 2>/dev/null
12633bf4a254eSmrg
126346f02d4e9Smrg
126356f02d4e9Smrg# as_fn_mkdir_p
126366f02d4e9Smrg# -------------
126376f02d4e9Smrg# Create "$as_dir" as a directory, including parents if necessary.
126386f02d4e9Smrgas_fn_mkdir_p ()
126396f02d4e9Smrg{
126406f02d4e9Smrg
126416f02d4e9Smrg  case $as_dir in #(
126426f02d4e9Smrg  -*) as_dir=./$as_dir;;
126436f02d4e9Smrg  esac
126446f02d4e9Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
126456f02d4e9Smrg    as_dirs=
126466f02d4e9Smrg    while :; do
126476f02d4e9Smrg      case $as_dir in #(
126487c5adda3Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
126496f02d4e9Smrg      *) as_qdir=$as_dir;;
126506f02d4e9Smrg      esac
126516f02d4e9Smrg      as_dirs="'$as_qdir' $as_dirs"
126526f02d4e9Smrg      as_dir=`$as_dirname -- "$as_dir" ||
126536f02d4e9Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
126546f02d4e9Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
126556f02d4e9Smrg	 X"$as_dir" : 'X\(//\)$' \| \
126566f02d4e9Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
126577c5adda3Smrgprintf "%s\n" X"$as_dir" |
126586f02d4e9Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
126596f02d4e9Smrg	    s//\1/
126606f02d4e9Smrg	    q
126616f02d4e9Smrg	  }
126626f02d4e9Smrg	  /^X\(\/\/\)[^/].*/{
126636f02d4e9Smrg	    s//\1/
126646f02d4e9Smrg	    q
126656f02d4e9Smrg	  }
126666f02d4e9Smrg	  /^X\(\/\/\)$/{
126676f02d4e9Smrg	    s//\1/
126686f02d4e9Smrg	    q
126696f02d4e9Smrg	  }
126706f02d4e9Smrg	  /^X\(\/\).*/{
126716f02d4e9Smrg	    s//\1/
126726f02d4e9Smrg	    q
126736f02d4e9Smrg	  }
126746f02d4e9Smrg	  s/.*/./; q'`
126756f02d4e9Smrg      test -d "$as_dir" && break
126766f02d4e9Smrg    done
126776f02d4e9Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
126786f02d4e9Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
126796f02d4e9Smrg
126806f02d4e9Smrg
126816f02d4e9Smrg} # as_fn_mkdir_p
12682a73027baSmrgif mkdir -p . 2>/dev/null; then
126836f02d4e9Smrg  as_mkdir_p='mkdir -p "$as_dir"'
12684a73027baSmrgelse
12685a73027baSmrg  test -d ./-p && rmdir ./-p
12686a73027baSmrg  as_mkdir_p=false
12687a73027baSmrgfi
12688a73027baSmrg
126897253c0c7Smrg
126907253c0c7Smrg# as_fn_executable_p FILE
126917253c0c7Smrg# -----------------------
126927253c0c7Smrg# Test if FILE is an executable regular file.
126937253c0c7Smrgas_fn_executable_p ()
126947253c0c7Smrg{
126957253c0c7Smrg  test -f "$1" && test -x "$1"
126967253c0c7Smrg} # as_fn_executable_p
126977253c0c7Smrgas_test_x='test -x'
126987253c0c7Smrgas_executable_p=as_fn_executable_p
12699a73027baSmrg
12700a73027baSmrg# Sed expression to map a string onto a valid CPP name.
12701a73027baSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12702a73027baSmrg
12703a73027baSmrg# Sed expression to map a string onto a valid variable name.
12704a73027baSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12705a73027baSmrg
12706a73027baSmrg
12707a73027baSmrgexec 6>&1
127086f02d4e9Smrg## ----------------------------------- ##
127096f02d4e9Smrg## Main body of $CONFIG_STATUS script. ##
127106f02d4e9Smrg## ----------------------------------- ##
127116f02d4e9Smrg_ASEOF
127126f02d4e9Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12713a73027baSmrg
127146f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
127156f02d4e9Smrg# Save the log message, to keep $0 and so on meaningful, and to
12716a73027baSmrg# report actual input values of CONFIG_FILES etc. instead of their
12717a73027baSmrg# values after options handling.
12718a73027baSmrgac_log="
12719fd549268SmrgThis file was extended by xinit $as_me 1.4.3, which was
127207c5adda3Smrggenerated by GNU Autoconf 2.71.  Invocation command line was
12721a73027baSmrg
12722a73027baSmrg  CONFIG_FILES    = $CONFIG_FILES
12723a73027baSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
12724a73027baSmrg  CONFIG_LINKS    = $CONFIG_LINKS
12725a73027baSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
12726a73027baSmrg  $ $0 $@
12727a73027baSmrg
12728a73027baSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
12729a73027baSmrg"
12730a73027baSmrg
12731a73027baSmrg_ACEOF
12732a73027baSmrg
127336f02d4e9Smrgcase $ac_config_files in *"
127346f02d4e9Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
127356f02d4e9Smrgesac
127366f02d4e9Smrg
127376f02d4e9Smrgcase $ac_config_headers in *"
127386f02d4e9Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
127396f02d4e9Smrgesac
127406f02d4e9Smrg
127416f02d4e9Smrg
127426f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12743a73027baSmrg# Files that config.status was made for.
12744a73027baSmrgconfig_files="$ac_config_files"
12745a73027baSmrgconfig_headers="$ac_config_headers"
12746a73027baSmrgconfig_commands="$ac_config_commands"
12747a73027baSmrg
12748a73027baSmrg_ACEOF
12749a73027baSmrg
127506f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12751a73027baSmrgac_cs_usage="\
127526f02d4e9Smrg\`$as_me' instantiates files and other configuration actions
127536f02d4e9Smrgfrom templates according to the current configuration.  Unless the files
127546f02d4e9Smrgand actions are specified as TAGs, all are instantiated by default.
12755a73027baSmrg
127566f02d4e9SmrgUsage: $0 [OPTION]... [TAG]...
12757a73027baSmrg
12758a73027baSmrg  -h, --help       print this help, then exit
12759a73027baSmrg  -V, --version    print version number and configuration settings, then exit
127606f02d4e9Smrg      --config     print configuration, then exit
127616f02d4e9Smrg  -q, --quiet, --silent
127626f02d4e9Smrg                   do not print progress messages
12763a73027baSmrg  -d, --debug      don't remove temporary files
12764a73027baSmrg      --recheck    update $as_me by reconfiguring in the same conditions
127656f02d4e9Smrg      --file=FILE[:TEMPLATE]
127666f02d4e9Smrg                   instantiate the configuration file FILE
127676f02d4e9Smrg      --header=FILE[:TEMPLATE]
127686f02d4e9Smrg                   instantiate the configuration header FILE
12769a73027baSmrg
12770a73027baSmrgConfiguration files:
12771a73027baSmrg$config_files
12772a73027baSmrg
12773a73027baSmrgConfiguration headers:
12774a73027baSmrg$config_headers
12775a73027baSmrg
12776a73027baSmrgConfiguration commands:
12777a73027baSmrg$config_commands
12778a73027baSmrg
127797c5adda3SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xinit/-/issues>."
12780a73027baSmrg
12781a73027baSmrg_ACEOF
127827c5adda3Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
127837c5adda3Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
127846f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
127857c5adda3Smrgac_cs_config='$ac_cs_config_escaped'
12786a73027baSmrgac_cs_version="\\
12787fd549268Smrgxinit config.status 1.4.3
127887c5adda3Smrgconfigured by $0, generated by GNU Autoconf 2.71,
127896f02d4e9Smrg  with options \\"\$ac_cs_config\\"
12790a73027baSmrg
127917c5adda3SmrgCopyright (C) 2021 Free Software Foundation, Inc.
12792a73027baSmrgThis config.status script is free software; the Free Software Foundation
12793a73027baSmrggives unlimited permission to copy, distribute and modify it."
12794a73027baSmrg
12795a73027baSmrgac_pwd='$ac_pwd'
12796a73027baSmrgsrcdir='$srcdir'
12797a73027baSmrgINSTALL='$INSTALL'
12798a73027baSmrgMKDIR_P='$MKDIR_P'
127996f02d4e9SmrgAWK='$AWK'
128006f02d4e9Smrgtest -n "\$AWK" || AWK=awk
12801a73027baSmrg_ACEOF
12802a73027baSmrg
128036f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
128046f02d4e9Smrg# The default lists apply if the user does not specify any file.
12805a73027baSmrgac_need_defaults=:
12806a73027baSmrgwhile test $# != 0
12807a73027baSmrgdo
12808a73027baSmrg  case $1 in
128096f02d4e9Smrg  --*=?*)
12810a73027baSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12811a73027baSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12812a73027baSmrg    ac_shift=:
12813a73027baSmrg    ;;
128146f02d4e9Smrg  --*=)
128156f02d4e9Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
128166f02d4e9Smrg    ac_optarg=
128176f02d4e9Smrg    ac_shift=:
128186f02d4e9Smrg    ;;
12819a73027baSmrg  *)
12820a73027baSmrg    ac_option=$1
12821a73027baSmrg    ac_optarg=$2
12822a73027baSmrg    ac_shift=shift
12823a73027baSmrg    ;;
12824a73027baSmrg  esac
12825a73027baSmrg
12826a73027baSmrg  case $ac_option in
12827a73027baSmrg  # Handling of the options.
12828a73027baSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12829a73027baSmrg    ac_cs_recheck=: ;;
12830a73027baSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
128317c5adda3Smrg    printf "%s\n" "$ac_cs_version"; exit ;;
128326f02d4e9Smrg  --config | --confi | --conf | --con | --co | --c )
128337c5adda3Smrg    printf "%s\n" "$ac_cs_config"; exit ;;
12834a73027baSmrg  --debug | --debu | --deb | --de | --d | -d )
12835a73027baSmrg    debug=: ;;
12836a73027baSmrg  --file | --fil | --fi | --f )
12837a73027baSmrg    $ac_shift
128386f02d4e9Smrg    case $ac_optarg in
128397c5adda3Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
128406f02d4e9Smrg    '') as_fn_error $? "missing file argument" ;;
128416f02d4e9Smrg    esac
128426f02d4e9Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
12843a73027baSmrg    ac_need_defaults=false;;
12844a73027baSmrg  --header | --heade | --head | --hea )
12845a73027baSmrg    $ac_shift
128466f02d4e9Smrg    case $ac_optarg in
128477c5adda3Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
128486f02d4e9Smrg    esac
128496f02d4e9Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12850a73027baSmrg    ac_need_defaults=false;;
12851a73027baSmrg  --he | --h)
12852a73027baSmrg    # Conflict between --help and --header
128536f02d4e9Smrg    as_fn_error $? "ambiguous option: \`$1'
128546f02d4e9SmrgTry \`$0 --help' for more information.";;
12855a73027baSmrg  --help | --hel | -h )
128567c5adda3Smrg    printf "%s\n" "$ac_cs_usage"; exit ;;
12857a73027baSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12858a73027baSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12859a73027baSmrg    ac_cs_silent=: ;;
12860a73027baSmrg
12861a73027baSmrg  # This is an error.
128626f02d4e9Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
128636f02d4e9SmrgTry \`$0 --help' for more information." ;;
12864a73027baSmrg
128656f02d4e9Smrg  *) as_fn_append ac_config_targets " $1"
12866a73027baSmrg     ac_need_defaults=false ;;
12867a73027baSmrg
12868a73027baSmrg  esac
12869a73027baSmrg  shift
12870a73027baSmrgdone
12871a73027baSmrg
12872a73027baSmrgac_configure_extra_args=
12873a73027baSmrg
12874a73027baSmrgif $ac_cs_silent; then
12875a73027baSmrg  exec 6>/dev/null
12876a73027baSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
12877a73027baSmrgfi
12878a73027baSmrg
12879a73027baSmrg_ACEOF
128806f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12881a73027baSmrgif \$ac_cs_recheck; then
128827253c0c7Smrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
128836f02d4e9Smrg  shift
128847c5adda3Smrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
128856f02d4e9Smrg  CONFIG_SHELL='$SHELL'
12886a73027baSmrg  export CONFIG_SHELL
128876f02d4e9Smrg  exec "\$@"
12888a73027baSmrgfi
12889a73027baSmrg
12890a73027baSmrg_ACEOF
128916f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12892a73027baSmrgexec 5>>config.log
12893a73027baSmrg{
12894a73027baSmrg  echo
12895a73027baSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12896a73027baSmrg## Running $as_me. ##
12897a73027baSmrg_ASBOX
128987c5adda3Smrg  printf "%s\n" "$ac_log"
12899a73027baSmrg} >&5
12900a73027baSmrg
12901a73027baSmrg_ACEOF
129026f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12903a73027baSmrg#
12904a73027baSmrg# INIT-COMMANDS
12905a73027baSmrg#
129067c5adda3SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12907a73027baSmrg
12908a73027baSmrg_ACEOF
12909a73027baSmrg
129106f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12911a73027baSmrg
12912a73027baSmrg# Handling of arguments.
12913a73027baSmrgfor ac_config_target in $ac_config_targets
12914a73027baSmrgdo
12915a73027baSmrg  case $ac_config_target in
12916bf4a254eSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12917a73027baSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12918a73027baSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12919c81d8f5eSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12920c81d8f5eSmrg    "launchd/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/Makefile" ;;
12921c81d8f5eSmrg    "launchd/privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/privileged_startx/Makefile" ;;
12922c81d8f5eSmrg    "launchd/user_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/user_startx/Makefile" ;;
12923a73027baSmrg
129246f02d4e9Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12925a73027baSmrg  esac
12926a73027baSmrgdone
12927a73027baSmrg
12928a73027baSmrg
12929a73027baSmrg# If the user did not use the arguments to specify the items to instantiate,
12930a73027baSmrg# then the envvar interface is used.  Set only those that are not.
12931a73027baSmrg# We use the long form for the default assignment because of an extremely
12932a73027baSmrg# bizarre bug on SunOS 4.1.3.
12933a73027baSmrgif $ac_need_defaults; then
129347c5adda3Smrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
129357c5adda3Smrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
129367c5adda3Smrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12937a73027baSmrgfi
12938a73027baSmrg
12939a73027baSmrg# Have a temporary directory for convenience.  Make it in the build tree
12940a73027baSmrg# simply because there is no reason against having it here, and in addition,
12941a73027baSmrg# creating and moving files from /tmp can sometimes cause problems.
12942a73027baSmrg# Hook for its removal unless debugging.
12943a73027baSmrg# Note that there is a small window in which the directory will not be cleaned:
12944a73027baSmrg# after its creation but before its name has been assigned to `$tmp'.
12945a73027baSmrg$debug ||
12946a73027baSmrg{
129476f02d4e9Smrg  tmp= ac_tmp=
12948a73027baSmrg  trap 'exit_status=$?
129496f02d4e9Smrg  : "${ac_tmp:=$tmp}"
129506f02d4e9Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12951a73027baSmrg' 0
129526f02d4e9Smrg  trap 'as_fn_exit 1' 1 2 13 15
12953a73027baSmrg}
12954a73027baSmrg# Create a (secure) tmp directory for tmp files.
12955a73027baSmrg
12956a73027baSmrg{
12957a73027baSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
129586f02d4e9Smrg  test -d "$tmp"
12959a73027baSmrg}  ||
12960a73027baSmrg{
12961a73027baSmrg  tmp=./conf$$-$RANDOM
12962a73027baSmrg  (umask 077 && mkdir "$tmp")
129636f02d4e9Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
129646f02d4e9Smrgac_tmp=$tmp
12965a73027baSmrg
129666f02d4e9Smrg# Set up the scripts for CONFIG_FILES section.
129676f02d4e9Smrg# No need to generate them if there are no CONFIG_FILES.
129686f02d4e9Smrg# This happens for instance with `./config.status config.h'.
1296921212451Smrgif test -n "$CONFIG_FILES"; then
12970a73027baSmrg
12971a73027baSmrg
129726f02d4e9Smrgac_cr=`echo X | tr X '\015'`
129736f02d4e9Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
129746f02d4e9Smrg# But we know of no other shell where ac_cr would be empty at this
129756f02d4e9Smrg# point, so we can use a bashism as a fallback.
129766f02d4e9Smrgif test "x$ac_cr" = x; then
129776f02d4e9Smrg  eval ac_cr=\$\'\\r\'
129786f02d4e9Smrgfi
129796f02d4e9Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
129806f02d4e9Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
129816f02d4e9Smrg  ac_cs_awk_cr='\\r'
129826f02d4e9Smrgelse
129836f02d4e9Smrg  ac_cs_awk_cr=$ac_cr
1298421212451Smrgfi
12985a73027baSmrg
129866f02d4e9Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12987a73027baSmrg_ACEOF
12988a73027baSmrg
12989a73027baSmrg
129906f02d4e9Smrg{
129916f02d4e9Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
129926f02d4e9Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
129936f02d4e9Smrg  echo "_ACEOF"
129946f02d4e9Smrg} >conf$$subs.sh ||
129956f02d4e9Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
129966f02d4e9Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1299721212451Smrgac_delim='%!_!# '
1299821212451Smrgfor ac_last_try in false false false false false :; do
129996f02d4e9Smrg  . ./conf$$subs.sh ||
130006f02d4e9Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
130016f02d4e9Smrg
130026f02d4e9Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
130036f02d4e9Smrg  if test $ac_delim_n = $ac_delim_num; then
13004bf4a254eSmrg    break
13005bf4a254eSmrg  elif $ac_last_try; then
130066f02d4e9Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13007bf4a254eSmrg  else
13008bf4a254eSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13009bf4a254eSmrg  fi
13010bf4a254eSmrgdone
130116f02d4e9Smrgrm -f conf$$subs.sh
130126f02d4e9Smrg
130136f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
130146f02d4e9Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
130156f02d4e9Smrg_ACEOF
130166f02d4e9Smrgsed -n '
130176f02d4e9Smrgh
130186f02d4e9Smrgs/^/S["/; s/!.*/"]=/
130196f02d4e9Smrgp
130206f02d4e9Smrgg
130216f02d4e9Smrgs/^[^!]*!//
130226f02d4e9Smrg:repl
130236f02d4e9Smrgt repl
130246f02d4e9Smrgs/'"$ac_delim"'$//
130256f02d4e9Smrgt delim
130266f02d4e9Smrg:nl
130276f02d4e9Smrgh
130286f02d4e9Smrgs/\(.\{148\}\)..*/\1/
130296f02d4e9Smrgt more1
130306f02d4e9Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
130316f02d4e9Smrgp
130326f02d4e9Smrgn
130336f02d4e9Smrgb repl
130346f02d4e9Smrg:more1
130356f02d4e9Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
130366f02d4e9Smrgp
130376f02d4e9Smrgg
130386f02d4e9Smrgs/.\{148\}//
130396f02d4e9Smrgt nl
130406f02d4e9Smrg:delim
130416f02d4e9Smrgh
130426f02d4e9Smrgs/\(.\{148\}\)..*/\1/
130436f02d4e9Smrgt more2
130446f02d4e9Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
130456f02d4e9Smrgp
130466f02d4e9Smrgb
130476f02d4e9Smrg:more2
130486f02d4e9Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
130496f02d4e9Smrgp
130506f02d4e9Smrgg
130516f02d4e9Smrgs/.\{148\}//
130526f02d4e9Smrgt delim
130536f02d4e9Smrg' <conf$$subs.awk | sed '
130546f02d4e9Smrg/^[^""]/{
130556f02d4e9Smrg  N
130566f02d4e9Smrg  s/\n//
130576f02d4e9Smrg}
130586f02d4e9Smrg' >>$CONFIG_STATUS || ac_write_fail=1
130596f02d4e9Smrgrm -f conf$$subs.awk
130606f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
130616f02d4e9Smrg_ACAWK
130626f02d4e9Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
130636f02d4e9Smrg  for (key in S) S_is_set[key] = 1
130646f02d4e9Smrg  FS = ""
13065bf4a254eSmrg
130666f02d4e9Smrg}
130676f02d4e9Smrg{
130686f02d4e9Smrg  line = $ 0
130696f02d4e9Smrg  nfields = split(line, field, "@")
130706f02d4e9Smrg  substed = 0
130716f02d4e9Smrg  len = length(field[1])
130726f02d4e9Smrg  for (i = 2; i < nfields; i++) {
130736f02d4e9Smrg    key = field[i]
130746f02d4e9Smrg    keylen = length(key)
130756f02d4e9Smrg    if (S_is_set[key]) {
130766f02d4e9Smrg      value = S[key]
130776f02d4e9Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
130786f02d4e9Smrg      len += length(value) + length(field[++i])
130796f02d4e9Smrg      substed = 1
130806f02d4e9Smrg    } else
130816f02d4e9Smrg      len += 1 + keylen
130826f02d4e9Smrg  }
130836f02d4e9Smrg
130846f02d4e9Smrg  print line
130856f02d4e9Smrg}
13086bf4a254eSmrg
130876f02d4e9Smrg_ACAWK
1308821212451Smrg_ACEOF
130896f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
130906f02d4e9Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
130916f02d4e9Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
130926f02d4e9Smrgelse
130936f02d4e9Smrg  cat
130946f02d4e9Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
130956f02d4e9Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13096bf4a254eSmrg_ACEOF
13097bf4a254eSmrg
130986f02d4e9Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
130996f02d4e9Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1310021212451Smrg# trailing colons and then remove the whole line if VPATH becomes empty
1310121212451Smrg# (actually we leave an empty line to preserve line numbers).
1310221212451Smrgif test "x$srcdir" = x.; then
131036f02d4e9Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
131046f02d4e9Smrgh
131056f02d4e9Smrgs///
131066f02d4e9Smrgs/^/:/
131076f02d4e9Smrgs/[	 ]*$/:/
131086f02d4e9Smrgs/:\$(srcdir):/:/g
131096f02d4e9Smrgs/:\${srcdir}:/:/g
131106f02d4e9Smrgs/:@srcdir@:/:/g
131116f02d4e9Smrgs/^:*//
1311221212451Smrgs/:*$//
131136f02d4e9Smrgx
131146f02d4e9Smrgs/\(=[	 ]*\).*/\1/
131156f02d4e9SmrgG
131166f02d4e9Smrgs/\n//
1311721212451Smrgs/^[^=]*=[	 ]*$//
1311821212451Smrg}'
1311921212451Smrgfi
1312021212451Smrg
131216f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1312221212451Smrgfi # test -n "$CONFIG_FILES"
1312321212451Smrg
131246f02d4e9Smrg# Set up the scripts for CONFIG_HEADERS section.
131256f02d4e9Smrg# No need to generate them if there are no CONFIG_HEADERS.
131266f02d4e9Smrg# This happens for instance with `./config.status Makefile'.
131276f02d4e9Smrgif test -n "$CONFIG_HEADERS"; then
131286f02d4e9Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
131296f02d4e9SmrgBEGIN {
131306f02d4e9Smrg_ACEOF
131316f02d4e9Smrg
131326f02d4e9Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
131336f02d4e9Smrg# here-document in config.status, that substitutes the proper values into
131346f02d4e9Smrg# config.h.in to produce config.h.
131356f02d4e9Smrg
131366f02d4e9Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
131376f02d4e9Smrg# handling of long lines.
131386f02d4e9Smrgac_delim='%!_!# '
131396f02d4e9Smrgfor ac_last_try in false false :; do
131406f02d4e9Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
131416f02d4e9Smrg  if test -z "$ac_tt"; then
131426f02d4e9Smrg    break
131436f02d4e9Smrg  elif $ac_last_try; then
131446f02d4e9Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
131456f02d4e9Smrg  else
131466f02d4e9Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
131476f02d4e9Smrg  fi
131486f02d4e9Smrgdone
131496f02d4e9Smrg
131506f02d4e9Smrg# For the awk script, D is an array of macro values keyed by name,
131516f02d4e9Smrg# likewise P contains macro parameters if any.  Preserve backslash
131526f02d4e9Smrg# newline sequences.
131536f02d4e9Smrg
131546f02d4e9Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
131556f02d4e9Smrgsed -n '
131566f02d4e9Smrgs/.\{148\}/&'"$ac_delim"'/g
131576f02d4e9Smrgt rset
131586f02d4e9Smrg:rset
131596f02d4e9Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
131606f02d4e9Smrgt def
131616f02d4e9Smrgd
131626f02d4e9Smrg:def
131636f02d4e9Smrgs/\\$//
131646f02d4e9Smrgt bsnl
131656f02d4e9Smrgs/["\\]/\\&/g
131666f02d4e9Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
131676f02d4e9SmrgD["\1"]=" \3"/p
131686f02d4e9Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
131696f02d4e9Smrgd
131706f02d4e9Smrg:bsnl
131716f02d4e9Smrgs/["\\]/\\&/g
131726f02d4e9Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
131736f02d4e9SmrgD["\1"]=" \3\\\\\\n"\\/p
131746f02d4e9Smrgt cont
131756f02d4e9Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
131766f02d4e9Smrgt cont
131776f02d4e9Smrgd
131786f02d4e9Smrg:cont
131796f02d4e9Smrgn
131806f02d4e9Smrgs/.\{148\}/&'"$ac_delim"'/g
131816f02d4e9Smrgt clear
131826f02d4e9Smrg:clear
131836f02d4e9Smrgs/\\$//
131846f02d4e9Smrgt bsnlc
131856f02d4e9Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
131866f02d4e9Smrgd
131876f02d4e9Smrg:bsnlc
131886f02d4e9Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
131896f02d4e9Smrgb cont
131906f02d4e9Smrg' <confdefs.h | sed '
131916f02d4e9Smrgs/'"$ac_delim"'/"\\\
131926f02d4e9Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
131936f02d4e9Smrg
131946f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
131956f02d4e9Smrg  for (key in D) D_is_set[key] = 1
131966f02d4e9Smrg  FS = ""
131976f02d4e9Smrg}
131986f02d4e9Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
131996f02d4e9Smrg  line = \$ 0
132006f02d4e9Smrg  split(line, arg, " ")
132016f02d4e9Smrg  if (arg[1] == "#") {
132026f02d4e9Smrg    defundef = arg[2]
132036f02d4e9Smrg    mac1 = arg[3]
132046f02d4e9Smrg  } else {
132056f02d4e9Smrg    defundef = substr(arg[1], 2)
132066f02d4e9Smrg    mac1 = arg[2]
132076f02d4e9Smrg  }
132086f02d4e9Smrg  split(mac1, mac2, "(") #)
132096f02d4e9Smrg  macro = mac2[1]
132106f02d4e9Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
132116f02d4e9Smrg  if (D_is_set[macro]) {
132126f02d4e9Smrg    # Preserve the white space surrounding the "#".
132136f02d4e9Smrg    print prefix "define", macro P[macro] D[macro]
132146f02d4e9Smrg    next
132156f02d4e9Smrg  } else {
132166f02d4e9Smrg    # Replace #undef with comments.  This is necessary, for example,
132176f02d4e9Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
132186f02d4e9Smrg    # on some systems where configure will not decide to define it.
132196f02d4e9Smrg    if (defundef == "undef") {
132206f02d4e9Smrg      print "/*", prefix defundef, macro, "*/"
132216f02d4e9Smrg      next
132226f02d4e9Smrg    }
132236f02d4e9Smrg  }
132246f02d4e9Smrg}
132256f02d4e9Smrg{ print }
132266f02d4e9Smrg_ACAWK
132276f02d4e9Smrg_ACEOF
132286f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
132296f02d4e9Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
132306f02d4e9Smrgfi # test -n "$CONFIG_HEADERS"
132316f02d4e9Smrg
1323221212451Smrg
132336f02d4e9Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
132346f02d4e9Smrgshift
132356f02d4e9Smrgfor ac_tag
13236a73027baSmrgdo
13237a73027baSmrg  case $ac_tag in
13238a73027baSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
13239a73027baSmrg  esac
13240a73027baSmrg  case $ac_mode$ac_tag in
13241a73027baSmrg  :[FHL]*:*);;
132426f02d4e9Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13243a73027baSmrg  :[FH]-) ac_tag=-:-;;
13244a73027baSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13245a73027baSmrg  esac
13246a73027baSmrg  ac_save_IFS=$IFS
13247a73027baSmrg  IFS=:
13248a73027baSmrg  set x $ac_tag
13249a73027baSmrg  IFS=$ac_save_IFS
13250a73027baSmrg  shift
13251a73027baSmrg  ac_file=$1
13252a73027baSmrg  shift
13253a73027baSmrg
13254a73027baSmrg  case $ac_mode in
13255a73027baSmrg  :L) ac_source=$1;;
13256a73027baSmrg  :[FH])
13257a73027baSmrg    ac_file_inputs=
13258a73027baSmrg    for ac_f
13259a73027baSmrg    do
13260a73027baSmrg      case $ac_f in
132616f02d4e9Smrg      -) ac_f="$ac_tmp/stdin";;
13262a73027baSmrg      *) # Look for the file first in the build tree, then in the source tree
13263a73027baSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13264a73027baSmrg	 # because $ac_f cannot contain `:'.
13265a73027baSmrg	 test -f "$ac_f" ||
13266a73027baSmrg	   case $ac_f in
13267a73027baSmrg	   [\\/$]*) false;;
13268a73027baSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13269a73027baSmrg	   esac ||
132706f02d4e9Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13271a73027baSmrg      esac
132727c5adda3Smrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
132736f02d4e9Smrg      as_fn_append ac_file_inputs " '$ac_f'"
13274a73027baSmrg    done
13275a73027baSmrg
13276a73027baSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
13277a73027baSmrg    # use $as_me), people would be surprised to read:
13278a73027baSmrg    #    /* config.h.  Generated by config.status.  */
132796f02d4e9Smrg    configure_input='Generated from '`
132807c5adda3Smrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
132816f02d4e9Smrg	`' by configure.'
13282a73027baSmrg    if test x"$ac_file" != x-; then
13283a73027baSmrg      configure_input="$ac_file.  $configure_input"
132847c5adda3Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
132857c5adda3Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
13286a73027baSmrg    fi
132876f02d4e9Smrg    # Neutralize special characters interpreted by sed in replacement strings.
132886f02d4e9Smrg    case $configure_input in #(
132896f02d4e9Smrg    *\&* | *\|* | *\\* )
132907c5adda3Smrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
132916f02d4e9Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
132926f02d4e9Smrg    *) ac_sed_conf_input=$configure_input;;
132936f02d4e9Smrg    esac
13294a73027baSmrg
13295a73027baSmrg    case $ac_tag in
132966f02d4e9Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
132976f02d4e9Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13298a73027baSmrg    esac
13299a73027baSmrg    ;;
13300a73027baSmrg  esac
13301a73027baSmrg
13302a73027baSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
13303a73027baSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13304a73027baSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
13305a73027baSmrg	 X"$ac_file" : 'X\(//\)$' \| \
13306a73027baSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
133077c5adda3Smrgprintf "%s\n" X"$ac_file" |
13308a73027baSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13309a73027baSmrg	    s//\1/
13310a73027baSmrg	    q
13311a73027baSmrg	  }
13312a73027baSmrg	  /^X\(\/\/\)[^/].*/{
13313a73027baSmrg	    s//\1/
13314a73027baSmrg	    q
13315a73027baSmrg	  }
13316a73027baSmrg	  /^X\(\/\/\)$/{
13317a73027baSmrg	    s//\1/
13318a73027baSmrg	    q
13319a73027baSmrg	  }
13320a73027baSmrg	  /^X\(\/\).*/{
13321a73027baSmrg	    s//\1/
13322a73027baSmrg	    q
13323a73027baSmrg	  }
13324a73027baSmrg	  s/.*/./; q'`
133256f02d4e9Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
13326a73027baSmrg  ac_builddir=.
13327a73027baSmrg
13328a73027baSmrgcase "$ac_dir" in
13329a73027baSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13330a73027baSmrg*)
133317c5adda3Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13332a73027baSmrg  # A ".." for each directory in $ac_dir_suffix.
133337c5adda3Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13334a73027baSmrg  case $ac_top_builddir_sub in
13335a73027baSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13336a73027baSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13337a73027baSmrg  esac ;;
13338a73027baSmrgesac
13339a73027baSmrgac_abs_top_builddir=$ac_pwd
13340a73027baSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
13341a73027baSmrg# for backward compatibility:
13342a73027baSmrgac_top_builddir=$ac_top_build_prefix
13343a73027baSmrg
13344a73027baSmrgcase $srcdir in
13345a73027baSmrg  .)  # We are building in place.
13346a73027baSmrg    ac_srcdir=.
13347a73027baSmrg    ac_top_srcdir=$ac_top_builddir_sub
13348a73027baSmrg    ac_abs_top_srcdir=$ac_pwd ;;
13349a73027baSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
13350a73027baSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
13351a73027baSmrg    ac_top_srcdir=$srcdir
13352a73027baSmrg    ac_abs_top_srcdir=$srcdir ;;
13353a73027baSmrg  *) # Relative name.
13354a73027baSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13355a73027baSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
13356a73027baSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13357a73027baSmrgesac
13358a73027baSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13359a73027baSmrg
13360a73027baSmrg
13361a73027baSmrg  case $ac_mode in
13362a73027baSmrg  :F)
13363a73027baSmrg  #
13364a73027baSmrg  # CONFIG_FILE
13365a73027baSmrg  #
13366a73027baSmrg
13367a73027baSmrg  case $INSTALL in
13368a73027baSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13369a73027baSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13370a73027baSmrg  esac
13371a73027baSmrg  ac_MKDIR_P=$MKDIR_P
13372a73027baSmrg  case $MKDIR_P in
13373a73027baSmrg  [\\/$]* | ?:[\\/]* ) ;;
13374a73027baSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13375a73027baSmrg  esac
13376a73027baSmrg_ACEOF
13377a73027baSmrg
133786f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13379a73027baSmrg# If the template does not know about datarootdir, expand it.
13380a73027baSmrg# FIXME: This hack should be removed a few years after 2.60.
13381a73027baSmrgac_datarootdir_hack=; ac_datarootdir_seen=
133826f02d4e9Smrgac_sed_dataroot='
133836f02d4e9Smrg/datarootdir/ {
13384a73027baSmrg  p
13385a73027baSmrg  q
13386a73027baSmrg}
13387a73027baSmrg/@datadir@/p
13388a73027baSmrg/@docdir@/p
13389a73027baSmrg/@infodir@/p
13390a73027baSmrg/@localedir@/p
133916f02d4e9Smrg/@mandir@/p'
133926f02d4e9Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13393a73027baSmrg*datarootdir*) ac_datarootdir_seen=yes;;
13394a73027baSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
133957c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
133967c5adda3Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13397a73027baSmrg_ACEOF
133986f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13399a73027baSmrg  ac_datarootdir_hack='
13400a73027baSmrg  s&@datadir@&$datadir&g
13401a73027baSmrg  s&@docdir@&$docdir&g
13402a73027baSmrg  s&@infodir@&$infodir&g
13403a73027baSmrg  s&@localedir@&$localedir&g
13404a73027baSmrg  s&@mandir@&$mandir&g
134056f02d4e9Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
13406a73027baSmrgesac
13407a73027baSmrg_ACEOF
13408a73027baSmrg
13409a73027baSmrg# Neutralize VPATH when `$srcdir' = `.'.
13410a73027baSmrg# Shell code in configure.ac might set extrasub.
13411a73027baSmrg# FIXME: do we really want to maintain this feature?
134126f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
134136f02d4e9Smrgac_sed_extra="$ac_vpsub
13414a73027baSmrg$extrasub
13415a73027baSmrg_ACEOF
134166f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13417a73027baSmrg:t
13418a73027baSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
134196f02d4e9Smrgs|@configure_input@|$ac_sed_conf_input|;t t
13420a73027baSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
134216f02d4e9Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
13422a73027baSmrgs&@srcdir@&$ac_srcdir&;t t
13423a73027baSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
13424a73027baSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
13425a73027baSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13426a73027baSmrgs&@builddir@&$ac_builddir&;t t
13427a73027baSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
13428a73027baSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13429a73027baSmrgs&@INSTALL@&$ac_INSTALL&;t t
13430a73027baSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
13431a73027baSmrg$ac_datarootdir_hack
134326f02d4e9Smrg"
134336f02d4e9Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
134346f02d4e9Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13435a73027baSmrg
13436a73027baSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
134376f02d4e9Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
134386f02d4e9Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
134396f02d4e9Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
134407c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
134416f02d4e9Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
134427c5adda3Smrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
134436f02d4e9Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
134446f02d4e9Smrg
134456f02d4e9Smrg  rm -f "$ac_tmp/stdin"
13446a73027baSmrg  case $ac_file in
134476f02d4e9Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
134486f02d4e9Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
134496f02d4e9Smrg  esac \
134506f02d4e9Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13451a73027baSmrg ;;
13452a73027baSmrg  :H)
13453a73027baSmrg  #
13454a73027baSmrg  # CONFIG_HEADER
13455a73027baSmrg  #
13456a73027baSmrg  if test x"$ac_file" != x-; then
134576f02d4e9Smrg    {
134587c5adda3Smrg      printf "%s\n" "/* $configure_input  */" >&1 \
134596f02d4e9Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
134606f02d4e9Smrg    } >"$ac_tmp/config.h" \
134616f02d4e9Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
134626f02d4e9Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
134637c5adda3Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
134647c5adda3Smrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13465a73027baSmrg    else
134666f02d4e9Smrg      rm -f "$ac_file"
134676f02d4e9Smrg      mv "$ac_tmp/config.h" "$ac_file" \
134686f02d4e9Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13469a73027baSmrg    fi
13470a73027baSmrg  else
134717c5adda3Smrg    printf "%s\n" "/* $configure_input  */" >&1 \
134726f02d4e9Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
134736f02d4e9Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
13474a73027baSmrg  fi
134756f02d4e9Smrg# Compute "$ac_file"'s index in $config_headers.
134766f02d4e9Smrg_am_arg="$ac_file"
13477a73027baSmrg_am_stamp_count=1
13478a73027baSmrgfor _am_header in $config_headers :; do
13479a73027baSmrg  case $_am_header in
134806f02d4e9Smrg    $_am_arg | $_am_arg:* )
13481a73027baSmrg      break ;;
13482a73027baSmrg    * )
13483a73027baSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13484a73027baSmrg  esac
13485a73027baSmrgdone
134866f02d4e9Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
134876f02d4e9Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
134886f02d4e9Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
134896f02d4e9Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
134906f02d4e9Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
134917c5adda3Smrgprintf "%s\n" X"$_am_arg" |
13492a73027baSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13493a73027baSmrg	    s//\1/
13494a73027baSmrg	    q
13495a73027baSmrg	  }
13496a73027baSmrg	  /^X\(\/\/\)[^/].*/{
13497a73027baSmrg	    s//\1/
13498a73027baSmrg	    q
13499a73027baSmrg	  }
13500a73027baSmrg	  /^X\(\/\/\)$/{
13501a73027baSmrg	    s//\1/
13502a73027baSmrg	    q
13503a73027baSmrg	  }
13504a73027baSmrg	  /^X\(\/\).*/{
13505a73027baSmrg	    s//\1/
13506a73027baSmrg	    q
13507a73027baSmrg	  }
13508a73027baSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
13509a73027baSmrg ;;
13510a73027baSmrg
135117c5adda3Smrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
135127c5adda3Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13513a73027baSmrg ;;
13514a73027baSmrg  esac
13515a73027baSmrg
13516a73027baSmrg
13517a73027baSmrg  case $ac_file$ac_mode in
135186f02d4e9Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
135196f02d4e9Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
135206f02d4e9Smrg  # are listed without --file.  Let's play safe and only enable the eval
135216f02d4e9Smrg  # if we detect the quoting.
135227c5adda3Smrg  # TODO: see whether this extra hack can be removed once we start
135237c5adda3Smrg  # requiring Autoconf 2.70 or later.
135247c5adda3Smrg  case $CONFIG_FILES in #(
135257c5adda3Smrg  *\'*) :
135267c5adda3Smrg    eval set x "$CONFIG_FILES" ;; #(
135277c5adda3Smrg  *) :
135287c5adda3Smrg    set x $CONFIG_FILES ;; #(
135297c5adda3Smrg  *) :
135307c5adda3Smrg     ;;
135317c5adda3Smrgesac
135326f02d4e9Smrg  shift
135337c5adda3Smrg  # Used to flag and report bootstrapping failures.
135347c5adda3Smrg  am_rc=0
135357c5adda3Smrg  for am_mf
135366f02d4e9Smrg  do
135376f02d4e9Smrg    # Strip MF so we end up with the name of the file.
135387c5adda3Smrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
135397c5adda3Smrg    # Check whether this is an Automake generated Makefile which includes
135407c5adda3Smrg    # dependency-tracking related rules and includes.
135417c5adda3Smrg    # Grep'ing the whole file directly is not great: AIX grep has a line
135426f02d4e9Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
135437c5adda3Smrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
135447c5adda3Smrg      || continue
135457c5adda3Smrg    am_dirpart=`$as_dirname -- "$am_mf" ||
135467c5adda3Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
135477c5adda3Smrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
135487c5adda3Smrg	 X"$am_mf" : 'X\(//\)$' \| \
135497c5adda3Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
135507c5adda3Smrgprintf "%s\n" X"$am_mf" |
13551a73027baSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13552a73027baSmrg	    s//\1/
13553a73027baSmrg	    q
13554a73027baSmrg	  }
13555a73027baSmrg	  /^X\(\/\/\)[^/].*/{
13556a73027baSmrg	    s//\1/
13557a73027baSmrg	    q
13558a73027baSmrg	  }
13559a73027baSmrg	  /^X\(\/\/\)$/{
13560a73027baSmrg	    s//\1/
13561a73027baSmrg	    q
13562a73027baSmrg	  }
13563a73027baSmrg	  /^X\(\/\).*/{
13564a73027baSmrg	    s//\1/
13565a73027baSmrg	    q
13566a73027baSmrg	  }
13567a73027baSmrg	  s/.*/./; q'`
135687c5adda3Smrg    am_filepart=`$as_basename -- "$am_mf" ||
135697c5adda3Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
135707c5adda3Smrg	 X"$am_mf" : 'X\(//\)$' \| \
135717c5adda3Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
135727c5adda3Smrgprintf "%s\n" X/"$am_mf" |
135737c5adda3Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
13574a73027baSmrg	    s//\1/
13575a73027baSmrg	    q
13576a73027baSmrg	  }
135777c5adda3Smrg	  /^X\/\(\/\/\)$/{
13578a73027baSmrg	    s//\1/
13579a73027baSmrg	    q
13580a73027baSmrg	  }
135817c5adda3Smrg	  /^X\/\(\/\).*/{
13582a73027baSmrg	    s//\1/
13583a73027baSmrg	    q
13584a73027baSmrg	  }
13585a73027baSmrg	  s/.*/./; q'`
135867c5adda3Smrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
135877c5adda3Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
135887c5adda3Smrg        | $MAKE -f - am--depfiles" >&5
135897c5adda3Smrg   (cd "$am_dirpart" \
135907c5adda3Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
135917c5adda3Smrg        | $MAKE -f - am--depfiles) >&5 2>&5
135927c5adda3Smrg   ac_status=$?
135937c5adda3Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
135947c5adda3Smrg   (exit $ac_status); } || am_rc=$?
13595a73027baSmrg  done
135967c5adda3Smrg  if test $am_rc -ne 0; then
135977c5adda3Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
135987c5adda3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
135997c5adda3Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
136007c5adda3Smrg    for automatic dependency tracking.  If GNU make was not used, consider
136017c5adda3Smrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
136027c5adda3Smrg    necessary).  You can also try re-running configure with the
136037c5adda3Smrg    '--disable-dependency-tracking' option to at least be able to build
136047c5adda3Smrg    the package (albeit without support for automatic dependency tracking).
136057c5adda3SmrgSee \`config.log' for more details" "$LINENO" 5; }
136067c5adda3Smrg  fi
136077c5adda3Smrg  { am_dirpart=; unset am_dirpart;}
136087c5adda3Smrg  { am_filepart=; unset am_filepart;}
136097c5adda3Smrg  { am_mf=; unset am_mf;}
136107c5adda3Smrg  { am_rc=; unset am_rc;}
136117c5adda3Smrg  rm -f conftest-deps.mk
136126f02d4e9Smrg}
13613a73027baSmrg ;;
13614a73027baSmrg
13615a73027baSmrg  esac
13616a73027baSmrgdone # for ac_tag
13617a73027baSmrg
13618a73027baSmrg
136196f02d4e9Smrgas_fn_exit 0
13620a73027baSmrg_ACEOF
13621a73027baSmrgac_clean_files=$ac_clean_files_save
13622a73027baSmrg
136236f02d4e9Smrgtest $ac_write_fail = 0 ||
136246f02d4e9Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
136256f02d4e9Smrg
13626a73027baSmrg
13627a73027baSmrg# configure is writing to config.log, and then calls config.status.
13628a73027baSmrg# config.status does its own redirection, appending to config.log.
13629a73027baSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
13630a73027baSmrg# by configure, so config.status won't be able to write to it; its
13631a73027baSmrg# output is simply discarded.  So we exec the FD to /dev/null,
13632a73027baSmrg# effectively closing config.log, so it can be properly (re)opened and
13633a73027baSmrg# appended to by config.status.  When coming back to configure, we
13634a73027baSmrg# need to make the FD available again.
13635a73027baSmrgif test "$no_create" != yes; then
13636a73027baSmrg  ac_cs_success=:
13637a73027baSmrg  ac_config_status_args=
13638a73027baSmrg  test "$silent" = yes &&
13639a73027baSmrg    ac_config_status_args="$ac_config_status_args --quiet"
13640a73027baSmrg  exec 5>/dev/null
13641a73027baSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13642a73027baSmrg  exec 5>>config.log
13643a73027baSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13644a73027baSmrg  # would make configure fail if this is the last instruction.
136456f02d4e9Smrg  $ac_cs_success || as_fn_exit 1
136466f02d4e9Smrgfi
136476f02d4e9Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
136487c5adda3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
136497c5adda3Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13650a73027baSmrgfi
13651a73027baSmrg
136527c5adda3Smrg
13653