configure revision 4627b59c
117ca54c3Smrg#! /bin/sh 217ca54c3Smrg# Guess values for system-dependent variables and create Makefiles. 34627b59cSmrg# Generated by GNU Autoconf 2.69 for xorgproto 2020.1. 417ca54c3Smrg# 5ea1d6981Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>. 617ca54c3Smrg# 717ca54c3Smrg# 817ca54c3Smrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 917ca54c3Smrg# 1017ca54c3Smrg# 1117ca54c3Smrg# This configure script is free software; the Free Software Foundation 1217ca54c3Smrg# gives unlimited permission to copy, distribute and modify it. 1317ca54c3Smrg## -------------------- ## 1417ca54c3Smrg## M4sh Initialization. ## 1517ca54c3Smrg## -------------------- ## 1617ca54c3Smrg 1717ca54c3Smrg# Be more Bourne compatible 1817ca54c3SmrgDUALCASE=1; export DUALCASE # for MKS sh 1917ca54c3Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 2017ca54c3Smrg emulate sh 2117ca54c3Smrg NULLCMD=: 2217ca54c3Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 2317ca54c3Smrg # is contrary to our usage. Disable this feature. 2417ca54c3Smrg alias -g '${1+"$@"}'='"$@"' 2517ca54c3Smrg setopt NO_GLOB_SUBST 2617ca54c3Smrgelse 2717ca54c3Smrg case `(set -o) 2>/dev/null` in #( 2817ca54c3Smrg *posix*) : 2917ca54c3Smrg set -o posix ;; #( 3017ca54c3Smrg *) : 3117ca54c3Smrg ;; 3217ca54c3Smrgesac 3317ca54c3Smrgfi 3417ca54c3Smrg 3517ca54c3Smrg 3617ca54c3Smrgas_nl=' 3717ca54c3Smrg' 3817ca54c3Smrgexport as_nl 3917ca54c3Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 4017ca54c3Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4117ca54c3Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4217ca54c3Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 4317ca54c3Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 4417ca54c3Smrg# but without wasting forks for bash or zsh. 4517ca54c3Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 4617ca54c3Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 4717ca54c3Smrg as_echo='print -r --' 4817ca54c3Smrg as_echo_n='print -rn --' 4917ca54c3Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5017ca54c3Smrg as_echo='printf %s\n' 5117ca54c3Smrg as_echo_n='printf %s' 5217ca54c3Smrgelse 5317ca54c3Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5417ca54c3Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5517ca54c3Smrg as_echo_n='/usr/ucb/echo -n' 5617ca54c3Smrg else 5717ca54c3Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5817ca54c3Smrg as_echo_n_body='eval 5917ca54c3Smrg arg=$1; 6017ca54c3Smrg case $arg in #( 6117ca54c3Smrg *"$as_nl"*) 6217ca54c3Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 6317ca54c3Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6417ca54c3Smrg esac; 6517ca54c3Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6617ca54c3Smrg ' 6717ca54c3Smrg export as_echo_n_body 6817ca54c3Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 6917ca54c3Smrg fi 7017ca54c3Smrg export as_echo_body 7117ca54c3Smrg as_echo='sh -c $as_echo_body as_echo' 7217ca54c3Smrgfi 7317ca54c3Smrg 7417ca54c3Smrg# The user is always right. 7517ca54c3Smrgif test "${PATH_SEPARATOR+set}" != set; then 7617ca54c3Smrg PATH_SEPARATOR=: 7717ca54c3Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7817ca54c3Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7917ca54c3Smrg PATH_SEPARATOR=';' 8017ca54c3Smrg } 8117ca54c3Smrgfi 8217ca54c3Smrg 8317ca54c3Smrg 8417ca54c3Smrg# IFS 8517ca54c3Smrg# We need space, tab and new line, in precisely that order. Quoting is 8617ca54c3Smrg# there to prevent editors from complaining about space-tab. 8717ca54c3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8817ca54c3Smrg# splitting by setting IFS to empty value.) 8917ca54c3SmrgIFS=" "" $as_nl" 9017ca54c3Smrg 9117ca54c3Smrg# Find who we are. Look in the path if we contain no directory separator. 9217ca54c3Smrgas_myself= 9317ca54c3Smrgcase $0 in #(( 9417ca54c3Smrg *[\\/]* ) as_myself=$0 ;; 9517ca54c3Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9617ca54c3Smrgfor as_dir in $PATH 9717ca54c3Smrgdo 9817ca54c3Smrg IFS=$as_save_IFS 9917ca54c3Smrg test -z "$as_dir" && as_dir=. 10017ca54c3Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10117ca54c3Smrg done 10217ca54c3SmrgIFS=$as_save_IFS 10317ca54c3Smrg 10417ca54c3Smrg ;; 10517ca54c3Smrgesac 10617ca54c3Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 10717ca54c3Smrg# in which case we are not to be found in the path. 10817ca54c3Smrgif test "x$as_myself" = x; then 10917ca54c3Smrg as_myself=$0 11017ca54c3Smrgfi 11117ca54c3Smrgif test ! -f "$as_myself"; then 11217ca54c3Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11317ca54c3Smrg exit 1 11417ca54c3Smrgfi 11517ca54c3Smrg 11617ca54c3Smrg# Unset variables that we do not need and which cause bugs (e.g. in 11717ca54c3Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11817ca54c3Smrg# suppresses any "Segmentation fault" message there. '((' could 11917ca54c3Smrg# trigger a bug in pdksh 5.2.14. 12017ca54c3Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 12117ca54c3Smrgdo eval test x\${$as_var+set} = xset \ 12217ca54c3Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12317ca54c3Smrgdone 12417ca54c3SmrgPS1='$ ' 12517ca54c3SmrgPS2='> ' 12617ca54c3SmrgPS4='+ ' 12717ca54c3Smrg 12817ca54c3Smrg# NLS nuisances. 12917ca54c3SmrgLC_ALL=C 13017ca54c3Smrgexport LC_ALL 13117ca54c3SmrgLANGUAGE=C 13217ca54c3Smrgexport LANGUAGE 13317ca54c3Smrg 13417ca54c3Smrg# CDPATH. 13517ca54c3Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13617ca54c3Smrg 13717ca54c3Smrg# Use a proper internal environment variable to ensure we don't fall 13817ca54c3Smrg # into an infinite loop, continuously re-executing ourselves. 13917ca54c3Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 14017ca54c3Smrg _as_can_reexec=no; export _as_can_reexec; 14117ca54c3Smrg # We cannot yet assume a decent shell, so we have to provide a 14217ca54c3Smrg# neutralization value for shells without unset; and this also 14317ca54c3Smrg# works around shells that cannot unset nonexistent variables. 14417ca54c3Smrg# Preserve -v and -x to the replacement shell. 14517ca54c3SmrgBASH_ENV=/dev/null 14617ca54c3SmrgENV=/dev/null 14717ca54c3Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 14817ca54c3Smrgcase $- in # (((( 14917ca54c3Smrg *v*x* | *x*v* ) as_opts=-vx ;; 15017ca54c3Smrg *v* ) as_opts=-v ;; 15117ca54c3Smrg *x* ) as_opts=-x ;; 15217ca54c3Smrg * ) as_opts= ;; 15317ca54c3Smrgesac 15417ca54c3Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 15517ca54c3Smrg# Admittedly, this is quite paranoid, since all the known shells bail 15617ca54c3Smrg# out after a failed `exec'. 15717ca54c3Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 15817ca54c3Smrgas_fn_exit 255 15917ca54c3Smrg fi 16017ca54c3Smrg # We don't want this to propagate to other subprocesses. 16117ca54c3Smrg { _as_can_reexec=; unset _as_can_reexec;} 16217ca54c3Smrgif test "x$CONFIG_SHELL" = x; then 16317ca54c3Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 16417ca54c3Smrg emulate sh 16517ca54c3Smrg NULLCMD=: 16617ca54c3Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 16717ca54c3Smrg # is contrary to our usage. Disable this feature. 16817ca54c3Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 16917ca54c3Smrg setopt NO_GLOB_SUBST 17017ca54c3Smrgelse 17117ca54c3Smrg case \`(set -o) 2>/dev/null\` in #( 17217ca54c3Smrg *posix*) : 17317ca54c3Smrg set -o posix ;; #( 17417ca54c3Smrg *) : 17517ca54c3Smrg ;; 17617ca54c3Smrgesac 17717ca54c3Smrgfi 17817ca54c3Smrg" 17917ca54c3Smrg as_required="as_fn_return () { (exit \$1); } 18017ca54c3Smrgas_fn_success () { as_fn_return 0; } 18117ca54c3Smrgas_fn_failure () { as_fn_return 1; } 18217ca54c3Smrgas_fn_ret_success () { return 0; } 18317ca54c3Smrgas_fn_ret_failure () { return 1; } 18417ca54c3Smrg 18517ca54c3Smrgexitcode=0 18617ca54c3Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 18717ca54c3Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 18817ca54c3Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 18917ca54c3Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 19017ca54c3Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 19117ca54c3Smrg 19217ca54c3Smrgelse 19317ca54c3Smrg exitcode=1; echo positional parameters were not saved. 19417ca54c3Smrgfi 19517ca54c3Smrgtest x\$exitcode = x0 || exit 1 19617ca54c3Smrgtest -x / || exit 1" 19717ca54c3Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 19817ca54c3Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 19917ca54c3Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 20017ca54c3Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 20117ca54c3Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 20217ca54c3Smrg if (eval "$as_required") 2>/dev/null; then : 20317ca54c3Smrg as_have_required=yes 20417ca54c3Smrgelse 20517ca54c3Smrg as_have_required=no 20617ca54c3Smrgfi 20717ca54c3Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 20817ca54c3Smrg 20917ca54c3Smrgelse 21017ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21117ca54c3Smrgas_found=false 21217ca54c3Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 21317ca54c3Smrgdo 21417ca54c3Smrg IFS=$as_save_IFS 21517ca54c3Smrg test -z "$as_dir" && as_dir=. 21617ca54c3Smrg as_found=: 21717ca54c3Smrg case $as_dir in #( 21817ca54c3Smrg /*) 21917ca54c3Smrg for as_base in sh bash ksh sh5; do 22017ca54c3Smrg # Try only shells that exist, to save several forks. 22117ca54c3Smrg as_shell=$as_dir/$as_base 22217ca54c3Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 22317ca54c3Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 22417ca54c3Smrg CONFIG_SHELL=$as_shell as_have_required=yes 22517ca54c3Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 22617ca54c3Smrg break 2 22717ca54c3Smrgfi 22817ca54c3Smrgfi 22917ca54c3Smrg done;; 23017ca54c3Smrg esac 23117ca54c3Smrg as_found=false 23217ca54c3Smrgdone 23317ca54c3Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 23417ca54c3Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 23517ca54c3Smrg CONFIG_SHELL=$SHELL as_have_required=yes 23617ca54c3Smrgfi; } 23717ca54c3SmrgIFS=$as_save_IFS 23817ca54c3Smrg 23917ca54c3Smrg 24017ca54c3Smrg if test "x$CONFIG_SHELL" != x; then : 24117ca54c3Smrg export CONFIG_SHELL 24217ca54c3Smrg # We cannot yet assume a decent shell, so we have to provide a 24317ca54c3Smrg# neutralization value for shells without unset; and this also 24417ca54c3Smrg# works around shells that cannot unset nonexistent variables. 24517ca54c3Smrg# Preserve -v and -x to the replacement shell. 24617ca54c3SmrgBASH_ENV=/dev/null 24717ca54c3SmrgENV=/dev/null 24817ca54c3Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 24917ca54c3Smrgcase $- in # (((( 25017ca54c3Smrg *v*x* | *x*v* ) as_opts=-vx ;; 25117ca54c3Smrg *v* ) as_opts=-v ;; 25217ca54c3Smrg *x* ) as_opts=-x ;; 25317ca54c3Smrg * ) as_opts= ;; 25417ca54c3Smrgesac 25517ca54c3Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 25617ca54c3Smrg# Admittedly, this is quite paranoid, since all the known shells bail 25717ca54c3Smrg# out after a failed `exec'. 25817ca54c3Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 25917ca54c3Smrgexit 255 26017ca54c3Smrgfi 26117ca54c3Smrg 26217ca54c3Smrg if test x$as_have_required = xno; then : 26317ca54c3Smrg $as_echo "$0: This script requires a shell more modern than all" 26417ca54c3Smrg $as_echo "$0: the shells that I found on your system." 26517ca54c3Smrg if test x${ZSH_VERSION+set} = xset ; then 26617ca54c3Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 26717ca54c3Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 26817ca54c3Smrg else 26917ca54c3Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 270ea1d6981Smrg$0: https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues 27117ca54c3Smrg$0: about your system, including any error possibly output 27217ca54c3Smrg$0: before this message. Then install a modern shell, or 27317ca54c3Smrg$0: manually run the script under such a shell if you do 27417ca54c3Smrg$0: have one." 27517ca54c3Smrg fi 27617ca54c3Smrg exit 1 27717ca54c3Smrgfi 27817ca54c3Smrgfi 27917ca54c3Smrgfi 28017ca54c3SmrgSHELL=${CONFIG_SHELL-/bin/sh} 28117ca54c3Smrgexport SHELL 28217ca54c3Smrg# Unset more variables known to interfere with behavior of common tools. 28317ca54c3SmrgCLICOLOR_FORCE= GREP_OPTIONS= 28417ca54c3Smrgunset CLICOLOR_FORCE GREP_OPTIONS 28517ca54c3Smrg 28617ca54c3Smrg## --------------------- ## 28717ca54c3Smrg## M4sh Shell Functions. ## 28817ca54c3Smrg## --------------------- ## 28917ca54c3Smrg# as_fn_unset VAR 29017ca54c3Smrg# --------------- 29117ca54c3Smrg# Portably unset VAR. 29217ca54c3Smrgas_fn_unset () 29317ca54c3Smrg{ 29417ca54c3Smrg { eval $1=; unset $1;} 29517ca54c3Smrg} 29617ca54c3Smrgas_unset=as_fn_unset 29717ca54c3Smrg 29817ca54c3Smrg# as_fn_set_status STATUS 29917ca54c3Smrg# ----------------------- 30017ca54c3Smrg# Set $? to STATUS, without forking. 30117ca54c3Smrgas_fn_set_status () 30217ca54c3Smrg{ 30317ca54c3Smrg return $1 30417ca54c3Smrg} # as_fn_set_status 30517ca54c3Smrg 30617ca54c3Smrg# as_fn_exit STATUS 30717ca54c3Smrg# ----------------- 30817ca54c3Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 30917ca54c3Smrgas_fn_exit () 31017ca54c3Smrg{ 31117ca54c3Smrg set +e 31217ca54c3Smrg as_fn_set_status $1 31317ca54c3Smrg exit $1 31417ca54c3Smrg} # as_fn_exit 31517ca54c3Smrg 31617ca54c3Smrg# as_fn_mkdir_p 31717ca54c3Smrg# ------------- 31817ca54c3Smrg# Create "$as_dir" as a directory, including parents if necessary. 31917ca54c3Smrgas_fn_mkdir_p () 32017ca54c3Smrg{ 32117ca54c3Smrg 32217ca54c3Smrg case $as_dir in #( 32317ca54c3Smrg -*) as_dir=./$as_dir;; 32417ca54c3Smrg esac 32517ca54c3Smrg test -d "$as_dir" || eval $as_mkdir_p || { 32617ca54c3Smrg as_dirs= 32717ca54c3Smrg while :; do 32817ca54c3Smrg case $as_dir in #( 32917ca54c3Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 33017ca54c3Smrg *) as_qdir=$as_dir;; 33117ca54c3Smrg esac 33217ca54c3Smrg as_dirs="'$as_qdir' $as_dirs" 33317ca54c3Smrg as_dir=`$as_dirname -- "$as_dir" || 33417ca54c3Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 33517ca54c3Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 33617ca54c3Smrg X"$as_dir" : 'X\(//\)$' \| \ 33717ca54c3Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 33817ca54c3Smrg$as_echo X"$as_dir" | 33917ca54c3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34017ca54c3Smrg s//\1/ 34117ca54c3Smrg q 34217ca54c3Smrg } 34317ca54c3Smrg /^X\(\/\/\)[^/].*/{ 34417ca54c3Smrg s//\1/ 34517ca54c3Smrg q 34617ca54c3Smrg } 34717ca54c3Smrg /^X\(\/\/\)$/{ 34817ca54c3Smrg s//\1/ 34917ca54c3Smrg q 35017ca54c3Smrg } 35117ca54c3Smrg /^X\(\/\).*/{ 35217ca54c3Smrg s//\1/ 35317ca54c3Smrg q 35417ca54c3Smrg } 35517ca54c3Smrg s/.*/./; q'` 35617ca54c3Smrg test -d "$as_dir" && break 35717ca54c3Smrg done 35817ca54c3Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 35917ca54c3Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 36017ca54c3Smrg 36117ca54c3Smrg 36217ca54c3Smrg} # as_fn_mkdir_p 36317ca54c3Smrg 36417ca54c3Smrg# as_fn_executable_p FILE 36517ca54c3Smrg# ----------------------- 36617ca54c3Smrg# Test if FILE is an executable regular file. 36717ca54c3Smrgas_fn_executable_p () 36817ca54c3Smrg{ 36917ca54c3Smrg test -f "$1" && test -x "$1" 37017ca54c3Smrg} # as_fn_executable_p 37117ca54c3Smrg# as_fn_append VAR VALUE 37217ca54c3Smrg# ---------------------- 37317ca54c3Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 37417ca54c3Smrg# advantage of any shell optimizations that allow amortized linear growth over 37517ca54c3Smrg# repeated appends, instead of the typical quadratic growth present in naive 37617ca54c3Smrg# implementations. 37717ca54c3Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 37817ca54c3Smrg eval 'as_fn_append () 37917ca54c3Smrg { 38017ca54c3Smrg eval $1+=\$2 38117ca54c3Smrg }' 38217ca54c3Smrgelse 38317ca54c3Smrg as_fn_append () 38417ca54c3Smrg { 38517ca54c3Smrg eval $1=\$$1\$2 38617ca54c3Smrg } 38717ca54c3Smrgfi # as_fn_append 38817ca54c3Smrg 38917ca54c3Smrg# as_fn_arith ARG... 39017ca54c3Smrg# ------------------ 39117ca54c3Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 39217ca54c3Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 39317ca54c3Smrg# must be portable across $(()) and expr. 39417ca54c3Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 39517ca54c3Smrg eval 'as_fn_arith () 39617ca54c3Smrg { 39717ca54c3Smrg as_val=$(( $* )) 39817ca54c3Smrg }' 39917ca54c3Smrgelse 40017ca54c3Smrg as_fn_arith () 40117ca54c3Smrg { 40217ca54c3Smrg as_val=`expr "$@" || test $? -eq 1` 40317ca54c3Smrg } 40417ca54c3Smrgfi # as_fn_arith 40517ca54c3Smrg 40617ca54c3Smrg 40717ca54c3Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 40817ca54c3Smrg# ---------------------------------------- 40917ca54c3Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 41017ca54c3Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 41117ca54c3Smrg# script with STATUS, using 1 if that was 0. 41217ca54c3Smrgas_fn_error () 41317ca54c3Smrg{ 41417ca54c3Smrg as_status=$1; test $as_status -eq 0 && as_status=1 41517ca54c3Smrg if test "$4"; then 41617ca54c3Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 41717ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 41817ca54c3Smrg fi 41917ca54c3Smrg $as_echo "$as_me: error: $2" >&2 42017ca54c3Smrg as_fn_exit $as_status 42117ca54c3Smrg} # as_fn_error 42217ca54c3Smrg 42317ca54c3Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 42417ca54c3Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 42517ca54c3Smrg as_expr=expr 42617ca54c3Smrgelse 42717ca54c3Smrg as_expr=false 42817ca54c3Smrgfi 42917ca54c3Smrg 43017ca54c3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 43117ca54c3Smrg as_basename=basename 43217ca54c3Smrgelse 43317ca54c3Smrg as_basename=false 43417ca54c3Smrgfi 43517ca54c3Smrg 43617ca54c3Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 43717ca54c3Smrg as_dirname=dirname 43817ca54c3Smrgelse 43917ca54c3Smrg as_dirname=false 44017ca54c3Smrgfi 44117ca54c3Smrg 44217ca54c3Smrgas_me=`$as_basename -- "$0" || 44317ca54c3Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 44417ca54c3Smrg X"$0" : 'X\(//\)$' \| \ 44517ca54c3Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 44617ca54c3Smrg$as_echo X/"$0" | 44717ca54c3Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 44817ca54c3Smrg s//\1/ 44917ca54c3Smrg q 45017ca54c3Smrg } 45117ca54c3Smrg /^X\/\(\/\/\)$/{ 45217ca54c3Smrg s//\1/ 45317ca54c3Smrg q 45417ca54c3Smrg } 45517ca54c3Smrg /^X\/\(\/\).*/{ 45617ca54c3Smrg s//\1/ 45717ca54c3Smrg q 45817ca54c3Smrg } 45917ca54c3Smrg s/.*/./; q'` 46017ca54c3Smrg 46117ca54c3Smrg# Avoid depending upon Character Ranges. 46217ca54c3Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 46317ca54c3Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 46417ca54c3Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 46517ca54c3Smrgas_cr_digits='0123456789' 46617ca54c3Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 46717ca54c3Smrg 46817ca54c3Smrg 46917ca54c3Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 47017ca54c3Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 47117ca54c3Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 47217ca54c3Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 47317ca54c3Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 47417ca54c3Smrg sed -n ' 47517ca54c3Smrg p 47617ca54c3Smrg /[$]LINENO/= 47717ca54c3Smrg ' <$as_myself | 47817ca54c3Smrg sed ' 47917ca54c3Smrg s/[$]LINENO.*/&-/ 48017ca54c3Smrg t lineno 48117ca54c3Smrg b 48217ca54c3Smrg :lineno 48317ca54c3Smrg N 48417ca54c3Smrg :loop 48517ca54c3Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 48617ca54c3Smrg t loop 48717ca54c3Smrg s/-\n.*// 48817ca54c3Smrg ' >$as_me.lineno && 48917ca54c3Smrg chmod +x "$as_me.lineno" || 49017ca54c3Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 49117ca54c3Smrg 49217ca54c3Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 49317ca54c3Smrg # already done that, so ensure we don't try to do so again and fall 49417ca54c3Smrg # in an infinite loop. This has already happened in practice. 49517ca54c3Smrg _as_can_reexec=no; export _as_can_reexec 49617ca54c3Smrg # Don't try to exec as it changes $[0], causing all sort of problems 49717ca54c3Smrg # (the dirname of $[0] is not the place where we might find the 49817ca54c3Smrg # original and so on. Autoconf is especially sensitive to this). 49917ca54c3Smrg . "./$as_me.lineno" 50017ca54c3Smrg # Exit status is that of the last command. 50117ca54c3Smrg exit 50217ca54c3Smrg} 50317ca54c3Smrg 50417ca54c3SmrgECHO_C= ECHO_N= ECHO_T= 50517ca54c3Smrgcase `echo -n x` in #((((( 50617ca54c3Smrg-n*) 50717ca54c3Smrg case `echo 'xy\c'` in 50817ca54c3Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 50917ca54c3Smrg xy) ECHO_C='\c';; 51017ca54c3Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 51117ca54c3Smrg ECHO_T=' ';; 51217ca54c3Smrg esac;; 51317ca54c3Smrg*) 51417ca54c3Smrg ECHO_N='-n';; 51517ca54c3Smrgesac 51617ca54c3Smrg 51717ca54c3Smrgrm -f conf$$ conf$$.exe conf$$.file 51817ca54c3Smrgif test -d conf$$.dir; then 51917ca54c3Smrg rm -f conf$$.dir/conf$$.file 52017ca54c3Smrgelse 52117ca54c3Smrg rm -f conf$$.dir 52217ca54c3Smrg mkdir conf$$.dir 2>/dev/null 52317ca54c3Smrgfi 52417ca54c3Smrgif (echo >conf$$.file) 2>/dev/null; then 52517ca54c3Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 52617ca54c3Smrg as_ln_s='ln -s' 52717ca54c3Smrg # ... but there are two gotchas: 52817ca54c3Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 52917ca54c3Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 53017ca54c3Smrg # In both cases, we have to default to `cp -pR'. 53117ca54c3Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 53217ca54c3Smrg as_ln_s='cp -pR' 53317ca54c3Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 53417ca54c3Smrg as_ln_s=ln 53517ca54c3Smrg else 53617ca54c3Smrg as_ln_s='cp -pR' 53717ca54c3Smrg fi 53817ca54c3Smrgelse 53917ca54c3Smrg as_ln_s='cp -pR' 54017ca54c3Smrgfi 54117ca54c3Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 54217ca54c3Smrgrmdir conf$$.dir 2>/dev/null 54317ca54c3Smrg 54417ca54c3Smrgif mkdir -p . 2>/dev/null; then 54517ca54c3Smrg as_mkdir_p='mkdir -p "$as_dir"' 54617ca54c3Smrgelse 54717ca54c3Smrg test -d ./-p && rmdir ./-p 54817ca54c3Smrg as_mkdir_p=false 54917ca54c3Smrgfi 55017ca54c3Smrg 55117ca54c3Smrgas_test_x='test -x' 55217ca54c3Smrgas_executable_p=as_fn_executable_p 55317ca54c3Smrg 55417ca54c3Smrg# Sed expression to map a string onto a valid CPP name. 55517ca54c3Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 55617ca54c3Smrg 55717ca54c3Smrg# Sed expression to map a string onto a valid variable name. 55817ca54c3Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 55917ca54c3Smrg 56017ca54c3Smrgas_awk_strverscmp=' 56117ca54c3Smrg # Use only awk features that work with 7th edition Unix awk (1978). 56217ca54c3Smrg # My, what an old awk you have, Mr. Solaris! 56317ca54c3Smrg END { 56417ca54c3Smrg while (length(v1) && length(v2)) { 56517ca54c3Smrg # Set d1 to be the next thing to compare from v1, and likewise for d2. 56617ca54c3Smrg # Normally this is a single character, but if v1 and v2 contain digits, 56717ca54c3Smrg # compare them as integers and fractions as strverscmp does. 56817ca54c3Smrg if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 56917ca54c3Smrg # Split v1 and v2 into their leading digit string components d1 and d2, 57017ca54c3Smrg # and advance v1 and v2 past the leading digit strings. 57117ca54c3Smrg for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 57217ca54c3Smrg for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 57317ca54c3Smrg d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 57417ca54c3Smrg d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 57517ca54c3Smrg if (d1 ~ /^0/) { 57617ca54c3Smrg if (d2 ~ /^0/) { 57717ca54c3Smrg # Compare two fractions. 57817ca54c3Smrg while (d1 ~ /^0/ && d2 ~ /^0/) { 57917ca54c3Smrg d1 = substr(d1, 2); len1-- 58017ca54c3Smrg d2 = substr(d2, 2); len2-- 58117ca54c3Smrg } 58217ca54c3Smrg if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 58317ca54c3Smrg # The two components differ in length, and the common prefix 58417ca54c3Smrg # contains only leading zeros. Consider the longer to be less. 58517ca54c3Smrg d1 = -len1 58617ca54c3Smrg d2 = -len2 58717ca54c3Smrg } else { 58817ca54c3Smrg # Otherwise, compare as strings. 58917ca54c3Smrg d1 = "x" d1 59017ca54c3Smrg d2 = "x" d2 59117ca54c3Smrg } 59217ca54c3Smrg } else { 59317ca54c3Smrg # A fraction is less than an integer. 59417ca54c3Smrg exit 1 59517ca54c3Smrg } 59617ca54c3Smrg } else { 59717ca54c3Smrg if (d2 ~ /^0/) { 59817ca54c3Smrg # An integer is greater than a fraction. 59917ca54c3Smrg exit 2 60017ca54c3Smrg } else { 60117ca54c3Smrg # Compare two integers. 60217ca54c3Smrg d1 += 0 60317ca54c3Smrg d2 += 0 60417ca54c3Smrg } 60517ca54c3Smrg } 60617ca54c3Smrg } else { 60717ca54c3Smrg # The normal case, without worrying about digits. 60817ca54c3Smrg d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 60917ca54c3Smrg d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 61017ca54c3Smrg } 61117ca54c3Smrg if (d1 < d2) exit 1 61217ca54c3Smrg if (d1 > d2) exit 2 61317ca54c3Smrg } 61417ca54c3Smrg # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 61517ca54c3Smrg # which mishandles some comparisons of empty strings to integers. 61617ca54c3Smrg if (length(v2)) exit 1 61717ca54c3Smrg if (length(v1)) exit 2 61817ca54c3Smrg } 61917ca54c3Smrg' 62017ca54c3Smrg 62117ca54c3Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 62217ca54c3Smrgexec 6>&1 62317ca54c3Smrg 62417ca54c3Smrg# Name of the host. 62517ca54c3Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 62617ca54c3Smrg# so uname gets run too. 62717ca54c3Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 62817ca54c3Smrg 62917ca54c3Smrg# 63017ca54c3Smrg# Initializations. 63117ca54c3Smrg# 63217ca54c3Smrgac_default_prefix=/usr/local 63317ca54c3Smrgac_clean_files= 63417ca54c3Smrgac_config_libobj_dir=. 63517ca54c3SmrgLIBOBJS= 63617ca54c3Smrgcross_compiling=no 63717ca54c3Smrgsubdirs= 63817ca54c3SmrgMFLAGS= 63917ca54c3SmrgMAKEFLAGS= 64017ca54c3Smrg 64117ca54c3Smrg# Identity of this package. 64217ca54c3SmrgPACKAGE_NAME='xorgproto' 64317ca54c3SmrgPACKAGE_TARNAME='xorgproto' 6444627b59cSmrgPACKAGE_VERSION='2020.1' 6454627b59cSmrgPACKAGE_STRING='xorgproto 2020.1' 646ea1d6981SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues' 64717ca54c3SmrgPACKAGE_URL='' 64817ca54c3Smrg 64917ca54c3Smrg# Factoring default headers for most tests. 65017ca54c3Smrgac_includes_default="\ 65117ca54c3Smrg#include <stdio.h> 65217ca54c3Smrg#ifdef HAVE_SYS_TYPES_H 65317ca54c3Smrg# include <sys/types.h> 65417ca54c3Smrg#endif 65517ca54c3Smrg#ifdef HAVE_SYS_STAT_H 65617ca54c3Smrg# include <sys/stat.h> 65717ca54c3Smrg#endif 65817ca54c3Smrg#ifdef STDC_HEADERS 65917ca54c3Smrg# include <stdlib.h> 66017ca54c3Smrg# include <stddef.h> 66117ca54c3Smrg#else 66217ca54c3Smrg# ifdef HAVE_STDLIB_H 66317ca54c3Smrg# include <stdlib.h> 66417ca54c3Smrg# endif 66517ca54c3Smrg#endif 66617ca54c3Smrg#ifdef HAVE_STRING_H 66717ca54c3Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 66817ca54c3Smrg# include <memory.h> 66917ca54c3Smrg# endif 67017ca54c3Smrg# include <string.h> 67117ca54c3Smrg#endif 67217ca54c3Smrg#ifdef HAVE_STRINGS_H 67317ca54c3Smrg# include <strings.h> 67417ca54c3Smrg#endif 67517ca54c3Smrg#ifdef HAVE_INTTYPES_H 67617ca54c3Smrg# include <inttypes.h> 67717ca54c3Smrg#endif 67817ca54c3Smrg#ifdef HAVE_STDINT_H 67917ca54c3Smrg# include <stdint.h> 68017ca54c3Smrg#endif 68117ca54c3Smrg#ifdef HAVE_UNISTD_H 68217ca54c3Smrg# include <unistd.h> 68317ca54c3Smrg#endif" 68417ca54c3Smrg 68517ca54c3Smrgac_subst_vars='am__EXEEXT_FALSE 68617ca54c3Smrgam__EXEEXT_TRUE 68717ca54c3SmrgLTLIBOBJS 68817ca54c3SmrgLIBOBJS 68917ca54c3SmrgUSE_FDS_BITS 69017ca54c3SmrgLEGACY_FALSE 69117ca54c3SmrgLEGACY_TRUE 69217ca54c3SmrgHAVE_STYLESHEETS_FALSE 69317ca54c3SmrgHAVE_STYLESHEETS_TRUE 69417ca54c3SmrgXSL_STYLESHEET 69517ca54c3SmrgSTYLESHEET_SRCDIR 69617ca54c3SmrgXORG_SGML_PATH 69717ca54c3SmrgHAVE_XSLTPROC_FALSE 69817ca54c3SmrgHAVE_XSLTPROC_TRUE 69917ca54c3SmrgXSLTPROC 70017ca54c3SmrgHAVE_FOP_FALSE 70117ca54c3SmrgHAVE_FOP_TRUE 70217ca54c3SmrgFOP 70317ca54c3SmrgHAVE_XMLTO_FALSE 70417ca54c3SmrgHAVE_XMLTO_TRUE 70517ca54c3SmrgHAVE_XMLTO_TEXT_FALSE 70617ca54c3SmrgHAVE_XMLTO_TEXT_TRUE 70717ca54c3SmrgXMLTO 70817ca54c3SmrgENABLE_SPECS_FALSE 70917ca54c3SmrgENABLE_SPECS_TRUE 71017ca54c3SmrgMAN_SUBSTS 71117ca54c3SmrgXORG_MAN_PAGE 71217ca54c3SmrgADMIN_MAN_DIR 71317ca54c3SmrgDRIVER_MAN_DIR 71417ca54c3SmrgMISC_MAN_DIR 71517ca54c3SmrgFILE_MAN_DIR 71617ca54c3SmrgLIB_MAN_DIR 71717ca54c3SmrgAPP_MAN_DIR 71817ca54c3SmrgADMIN_MAN_SUFFIX 71917ca54c3SmrgDRIVER_MAN_SUFFIX 72017ca54c3SmrgMISC_MAN_SUFFIX 72117ca54c3SmrgFILE_MAN_SUFFIX 72217ca54c3SmrgLIB_MAN_SUFFIX 72317ca54c3SmrgAPP_MAN_SUFFIX 72417ca54c3SmrgSED 72517ca54c3Smrghost_os 72617ca54c3Smrghost_vendor 72717ca54c3Smrghost_cpu 72817ca54c3Smrghost 72917ca54c3Smrgbuild_os 73017ca54c3Smrgbuild_vendor 73117ca54c3Smrgbuild_cpu 73217ca54c3Smrgbuild 73317ca54c3SmrgINSTALL_CMD 73417ca54c3SmrgPKG_CONFIG_LIBDIR 73517ca54c3SmrgPKG_CONFIG_PATH 73617ca54c3SmrgPKG_CONFIG 73717ca54c3SmrgCHANGELOG_CMD 73817ca54c3SmrgSTRICT_CFLAGS 73917ca54c3SmrgCWARNFLAGS 74017ca54c3SmrgBASE_CFLAGS 74117ca54c3SmrgEGREP 74217ca54c3SmrgGREP 74317ca54c3SmrgCPP 74417ca54c3Smrgam__fastdepCC_FALSE 74517ca54c3Smrgam__fastdepCC_TRUE 74617ca54c3SmrgCCDEPMODE 74717ca54c3Smrgam__nodep 74817ca54c3SmrgAMDEPBACKSLASH 74917ca54c3SmrgAMDEP_FALSE 75017ca54c3SmrgAMDEP_TRUE 75117ca54c3Smrgam__include 75217ca54c3SmrgDEPDIR 75317ca54c3SmrgOBJEXT 75417ca54c3SmrgEXEEXT 75517ca54c3Smrgac_ct_CC 75617ca54c3SmrgCPPFLAGS 75717ca54c3SmrgLDFLAGS 75817ca54c3SmrgCFLAGS 75917ca54c3SmrgCC 76017ca54c3SmrgAM_BACKSLASH 76117ca54c3SmrgAM_DEFAULT_VERBOSITY 76217ca54c3SmrgAM_DEFAULT_V 76317ca54c3SmrgAM_V 76417ca54c3Smrgam__untar 76517ca54c3Smrgam__tar 76617ca54c3SmrgAMTAR 76717ca54c3Smrgam__leading_dot 76817ca54c3SmrgSET_MAKE 76917ca54c3SmrgAWK 77017ca54c3Smrgmkdir_p 77117ca54c3SmrgMKDIR_P 77217ca54c3SmrgINSTALL_STRIP_PROGRAM 77317ca54c3SmrgSTRIP 77417ca54c3Smrginstall_sh 77517ca54c3SmrgMAKEINFO 77617ca54c3SmrgAUTOHEADER 77717ca54c3SmrgAUTOMAKE 77817ca54c3SmrgAUTOCONF 77917ca54c3SmrgACLOCAL 78017ca54c3SmrgVERSION 78117ca54c3SmrgPACKAGE 78217ca54c3SmrgCYGPATH_W 78317ca54c3Smrgam__isrc 78417ca54c3SmrgINSTALL_DATA 78517ca54c3SmrgINSTALL_SCRIPT 78617ca54c3SmrgINSTALL_PROGRAM 78717ca54c3Smrgtarget_alias 78817ca54c3Smrghost_alias 78917ca54c3Smrgbuild_alias 79017ca54c3SmrgLIBS 79117ca54c3SmrgECHO_T 79217ca54c3SmrgECHO_N 79317ca54c3SmrgECHO_C 79417ca54c3SmrgDEFS 79517ca54c3Smrgmandir 79617ca54c3Smrglocaledir 79717ca54c3Smrglibdir 79817ca54c3Smrgpsdir 79917ca54c3Smrgpdfdir 80017ca54c3Smrgdvidir 80117ca54c3Smrghtmldir 80217ca54c3Smrginfodir 80317ca54c3Smrgdocdir 80417ca54c3Smrgoldincludedir 80517ca54c3Smrgincludedir 80617ca54c3Smrglocalstatedir 80717ca54c3Smrgsharedstatedir 80817ca54c3Smrgsysconfdir 80917ca54c3Smrgdatadir 81017ca54c3Smrgdatarootdir 81117ca54c3Smrglibexecdir 81217ca54c3Smrgsbindir 81317ca54c3Smrgbindir 81417ca54c3Smrgprogram_transform_name 81517ca54c3Smrgprefix 81617ca54c3Smrgexec_prefix 81717ca54c3SmrgPACKAGE_URL 81817ca54c3SmrgPACKAGE_BUGREPORT 81917ca54c3SmrgPACKAGE_STRING 82017ca54c3SmrgPACKAGE_VERSION 82117ca54c3SmrgPACKAGE_TARNAME 82217ca54c3SmrgPACKAGE_NAME 82317ca54c3SmrgPATH_SEPARATOR 824ea1d6981SmrgSHELL 825ea1d6981Smrgam__quote' 82617ca54c3Smrgac_subst_files='' 82717ca54c3Smrgac_user_opts=' 82817ca54c3Smrgenable_option_checking 82917ca54c3Smrgenable_silent_rules 83017ca54c3Smrgenable_dependency_tracking 83117ca54c3Smrgenable_selective_werror 83217ca54c3Smrgenable_strict_compilation 83317ca54c3Smrgenable_specs 83417ca54c3Smrgwith_xmlto 83517ca54c3Smrgwith_fop 83617ca54c3Smrgwith_xsltproc 83717ca54c3Smrgenable_legacy 83817ca54c3Smrg' 83917ca54c3Smrg ac_precious_vars='build_alias 84017ca54c3Smrghost_alias 84117ca54c3Smrgtarget_alias 84217ca54c3SmrgCC 84317ca54c3SmrgCFLAGS 84417ca54c3SmrgLDFLAGS 84517ca54c3SmrgLIBS 84617ca54c3SmrgCPPFLAGS 84717ca54c3SmrgCPP 84817ca54c3SmrgPKG_CONFIG 84917ca54c3SmrgPKG_CONFIG_PATH 85017ca54c3SmrgPKG_CONFIG_LIBDIR 85117ca54c3SmrgXMLTO 85217ca54c3SmrgFOP 85317ca54c3SmrgXSLTPROC' 85417ca54c3Smrg 85517ca54c3Smrg 85617ca54c3Smrg# Initialize some variables set by options. 85717ca54c3Smrgac_init_help= 85817ca54c3Smrgac_init_version=false 85917ca54c3Smrgac_unrecognized_opts= 86017ca54c3Smrgac_unrecognized_sep= 86117ca54c3Smrg# The variables have the same names as the options, with 86217ca54c3Smrg# dashes changed to underlines. 86317ca54c3Smrgcache_file=/dev/null 86417ca54c3Smrgexec_prefix=NONE 86517ca54c3Smrgno_create= 86617ca54c3Smrgno_recursion= 86717ca54c3Smrgprefix=NONE 86817ca54c3Smrgprogram_prefix=NONE 86917ca54c3Smrgprogram_suffix=NONE 87017ca54c3Smrgprogram_transform_name=s,x,x, 87117ca54c3Smrgsilent= 87217ca54c3Smrgsite= 87317ca54c3Smrgsrcdir= 87417ca54c3Smrgverbose= 87517ca54c3Smrgx_includes=NONE 87617ca54c3Smrgx_libraries=NONE 87717ca54c3Smrg 87817ca54c3Smrg# Installation directory options. 87917ca54c3Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 88017ca54c3Smrg# and all the variables that are supposed to be based on exec_prefix 88117ca54c3Smrg# by default will actually change. 88217ca54c3Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 88317ca54c3Smrg# (The list follows the same order as the GNU Coding Standards.) 88417ca54c3Smrgbindir='${exec_prefix}/bin' 88517ca54c3Smrgsbindir='${exec_prefix}/sbin' 88617ca54c3Smrglibexecdir='${exec_prefix}/libexec' 88717ca54c3Smrgdatarootdir='${prefix}/share' 88817ca54c3Smrgdatadir='${datarootdir}' 88917ca54c3Smrgsysconfdir='${prefix}/etc' 89017ca54c3Smrgsharedstatedir='${prefix}/com' 89117ca54c3Smrglocalstatedir='${prefix}/var' 89217ca54c3Smrgincludedir='${prefix}/include' 89317ca54c3Smrgoldincludedir='/usr/include' 89417ca54c3Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 89517ca54c3Smrginfodir='${datarootdir}/info' 89617ca54c3Smrghtmldir='${docdir}' 89717ca54c3Smrgdvidir='${docdir}' 89817ca54c3Smrgpdfdir='${docdir}' 89917ca54c3Smrgpsdir='${docdir}' 90017ca54c3Smrglibdir='${exec_prefix}/lib' 90117ca54c3Smrglocaledir='${datarootdir}/locale' 90217ca54c3Smrgmandir='${datarootdir}/man' 90317ca54c3Smrg 90417ca54c3Smrgac_prev= 90517ca54c3Smrgac_dashdash= 90617ca54c3Smrgfor ac_option 90717ca54c3Smrgdo 90817ca54c3Smrg # If the previous option needs an argument, assign it. 90917ca54c3Smrg if test -n "$ac_prev"; then 91017ca54c3Smrg eval $ac_prev=\$ac_option 91117ca54c3Smrg ac_prev= 91217ca54c3Smrg continue 91317ca54c3Smrg fi 91417ca54c3Smrg 91517ca54c3Smrg case $ac_option in 91617ca54c3Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 91717ca54c3Smrg *=) ac_optarg= ;; 91817ca54c3Smrg *) ac_optarg=yes ;; 91917ca54c3Smrg esac 92017ca54c3Smrg 92117ca54c3Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 92217ca54c3Smrg 92317ca54c3Smrg case $ac_dashdash$ac_option in 92417ca54c3Smrg --) 92517ca54c3Smrg ac_dashdash=yes ;; 92617ca54c3Smrg 92717ca54c3Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 92817ca54c3Smrg ac_prev=bindir ;; 92917ca54c3Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 93017ca54c3Smrg bindir=$ac_optarg ;; 93117ca54c3Smrg 93217ca54c3Smrg -build | --build | --buil | --bui | --bu) 93317ca54c3Smrg ac_prev=build_alias ;; 93417ca54c3Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 93517ca54c3Smrg build_alias=$ac_optarg ;; 93617ca54c3Smrg 93717ca54c3Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 93817ca54c3Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 93917ca54c3Smrg ac_prev=cache_file ;; 94017ca54c3Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 94117ca54c3Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 94217ca54c3Smrg cache_file=$ac_optarg ;; 94317ca54c3Smrg 94417ca54c3Smrg --config-cache | -C) 94517ca54c3Smrg cache_file=config.cache ;; 94617ca54c3Smrg 94717ca54c3Smrg -datadir | --datadir | --datadi | --datad) 94817ca54c3Smrg ac_prev=datadir ;; 94917ca54c3Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 95017ca54c3Smrg datadir=$ac_optarg ;; 95117ca54c3Smrg 95217ca54c3Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 95317ca54c3Smrg | --dataroo | --dataro | --datar) 95417ca54c3Smrg ac_prev=datarootdir ;; 95517ca54c3Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 95617ca54c3Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 95717ca54c3Smrg datarootdir=$ac_optarg ;; 95817ca54c3Smrg 95917ca54c3Smrg -disable-* | --disable-*) 96017ca54c3Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 96117ca54c3Smrg # Reject names that are not valid shell variable names. 96217ca54c3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 96317ca54c3Smrg as_fn_error $? "invalid feature name: $ac_useropt" 96417ca54c3Smrg ac_useropt_orig=$ac_useropt 96517ca54c3Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 96617ca54c3Smrg case $ac_user_opts in 96717ca54c3Smrg *" 96817ca54c3Smrg"enable_$ac_useropt" 96917ca54c3Smrg"*) ;; 97017ca54c3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 97117ca54c3Smrg ac_unrecognized_sep=', ';; 97217ca54c3Smrg esac 97317ca54c3Smrg eval enable_$ac_useropt=no ;; 97417ca54c3Smrg 97517ca54c3Smrg -docdir | --docdir | --docdi | --doc | --do) 97617ca54c3Smrg ac_prev=docdir ;; 97717ca54c3Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 97817ca54c3Smrg docdir=$ac_optarg ;; 97917ca54c3Smrg 98017ca54c3Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 98117ca54c3Smrg ac_prev=dvidir ;; 98217ca54c3Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 98317ca54c3Smrg dvidir=$ac_optarg ;; 98417ca54c3Smrg 98517ca54c3Smrg -enable-* | --enable-*) 98617ca54c3Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 98717ca54c3Smrg # Reject names that are not valid shell variable names. 98817ca54c3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 98917ca54c3Smrg as_fn_error $? "invalid feature name: $ac_useropt" 99017ca54c3Smrg ac_useropt_orig=$ac_useropt 99117ca54c3Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 99217ca54c3Smrg case $ac_user_opts in 99317ca54c3Smrg *" 99417ca54c3Smrg"enable_$ac_useropt" 99517ca54c3Smrg"*) ;; 99617ca54c3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 99717ca54c3Smrg ac_unrecognized_sep=', ';; 99817ca54c3Smrg esac 99917ca54c3Smrg eval enable_$ac_useropt=\$ac_optarg ;; 100017ca54c3Smrg 100117ca54c3Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 100217ca54c3Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 100317ca54c3Smrg | --exec | --exe | --ex) 100417ca54c3Smrg ac_prev=exec_prefix ;; 100517ca54c3Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 100617ca54c3Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 100717ca54c3Smrg | --exec=* | --exe=* | --ex=*) 100817ca54c3Smrg exec_prefix=$ac_optarg ;; 100917ca54c3Smrg 101017ca54c3Smrg -gas | --gas | --ga | --g) 101117ca54c3Smrg # Obsolete; use --with-gas. 101217ca54c3Smrg with_gas=yes ;; 101317ca54c3Smrg 101417ca54c3Smrg -help | --help | --hel | --he | -h) 101517ca54c3Smrg ac_init_help=long ;; 101617ca54c3Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 101717ca54c3Smrg ac_init_help=recursive ;; 101817ca54c3Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 101917ca54c3Smrg ac_init_help=short ;; 102017ca54c3Smrg 102117ca54c3Smrg -host | --host | --hos | --ho) 102217ca54c3Smrg ac_prev=host_alias ;; 102317ca54c3Smrg -host=* | --host=* | --hos=* | --ho=*) 102417ca54c3Smrg host_alias=$ac_optarg ;; 102517ca54c3Smrg 102617ca54c3Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 102717ca54c3Smrg ac_prev=htmldir ;; 102817ca54c3Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 102917ca54c3Smrg | --ht=*) 103017ca54c3Smrg htmldir=$ac_optarg ;; 103117ca54c3Smrg 103217ca54c3Smrg -includedir | --includedir | --includedi | --included | --include \ 103317ca54c3Smrg | --includ | --inclu | --incl | --inc) 103417ca54c3Smrg ac_prev=includedir ;; 103517ca54c3Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 103617ca54c3Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 103717ca54c3Smrg includedir=$ac_optarg ;; 103817ca54c3Smrg 103917ca54c3Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 104017ca54c3Smrg ac_prev=infodir ;; 104117ca54c3Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 104217ca54c3Smrg infodir=$ac_optarg ;; 104317ca54c3Smrg 104417ca54c3Smrg -libdir | --libdir | --libdi | --libd) 104517ca54c3Smrg ac_prev=libdir ;; 104617ca54c3Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 104717ca54c3Smrg libdir=$ac_optarg ;; 104817ca54c3Smrg 104917ca54c3Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 105017ca54c3Smrg | --libexe | --libex | --libe) 105117ca54c3Smrg ac_prev=libexecdir ;; 105217ca54c3Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 105317ca54c3Smrg | --libexe=* | --libex=* | --libe=*) 105417ca54c3Smrg libexecdir=$ac_optarg ;; 105517ca54c3Smrg 105617ca54c3Smrg -localedir | --localedir | --localedi | --localed | --locale) 105717ca54c3Smrg ac_prev=localedir ;; 105817ca54c3Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 105917ca54c3Smrg localedir=$ac_optarg ;; 106017ca54c3Smrg 106117ca54c3Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 106217ca54c3Smrg | --localstate | --localstat | --localsta | --localst | --locals) 106317ca54c3Smrg ac_prev=localstatedir ;; 106417ca54c3Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 106517ca54c3Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 106617ca54c3Smrg localstatedir=$ac_optarg ;; 106717ca54c3Smrg 106817ca54c3Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 106917ca54c3Smrg ac_prev=mandir ;; 107017ca54c3Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 107117ca54c3Smrg mandir=$ac_optarg ;; 107217ca54c3Smrg 107317ca54c3Smrg -nfp | --nfp | --nf) 107417ca54c3Smrg # Obsolete; use --without-fp. 107517ca54c3Smrg with_fp=no ;; 107617ca54c3Smrg 107717ca54c3Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 107817ca54c3Smrg | --no-cr | --no-c | -n) 107917ca54c3Smrg no_create=yes ;; 108017ca54c3Smrg 108117ca54c3Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 108217ca54c3Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 108317ca54c3Smrg no_recursion=yes ;; 108417ca54c3Smrg 108517ca54c3Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 108617ca54c3Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 108717ca54c3Smrg | --oldin | --oldi | --old | --ol | --o) 108817ca54c3Smrg ac_prev=oldincludedir ;; 108917ca54c3Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 109017ca54c3Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 109117ca54c3Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 109217ca54c3Smrg oldincludedir=$ac_optarg ;; 109317ca54c3Smrg 109417ca54c3Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 109517ca54c3Smrg ac_prev=prefix ;; 109617ca54c3Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 109717ca54c3Smrg prefix=$ac_optarg ;; 109817ca54c3Smrg 109917ca54c3Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 110017ca54c3Smrg | --program-pre | --program-pr | --program-p) 110117ca54c3Smrg ac_prev=program_prefix ;; 110217ca54c3Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 110317ca54c3Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 110417ca54c3Smrg program_prefix=$ac_optarg ;; 110517ca54c3Smrg 110617ca54c3Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 110717ca54c3Smrg | --program-suf | --program-su | --program-s) 110817ca54c3Smrg ac_prev=program_suffix ;; 110917ca54c3Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 111017ca54c3Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 111117ca54c3Smrg program_suffix=$ac_optarg ;; 111217ca54c3Smrg 111317ca54c3Smrg -program-transform-name | --program-transform-name \ 111417ca54c3Smrg | --program-transform-nam | --program-transform-na \ 111517ca54c3Smrg | --program-transform-n | --program-transform- \ 111617ca54c3Smrg | --program-transform | --program-transfor \ 111717ca54c3Smrg | --program-transfo | --program-transf \ 111817ca54c3Smrg | --program-trans | --program-tran \ 111917ca54c3Smrg | --progr-tra | --program-tr | --program-t) 112017ca54c3Smrg ac_prev=program_transform_name ;; 112117ca54c3Smrg -program-transform-name=* | --program-transform-name=* \ 112217ca54c3Smrg | --program-transform-nam=* | --program-transform-na=* \ 112317ca54c3Smrg | --program-transform-n=* | --program-transform-=* \ 112417ca54c3Smrg | --program-transform=* | --program-transfor=* \ 112517ca54c3Smrg | --program-transfo=* | --program-transf=* \ 112617ca54c3Smrg | --program-trans=* | --program-tran=* \ 112717ca54c3Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 112817ca54c3Smrg program_transform_name=$ac_optarg ;; 112917ca54c3Smrg 113017ca54c3Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 113117ca54c3Smrg ac_prev=pdfdir ;; 113217ca54c3Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 113317ca54c3Smrg pdfdir=$ac_optarg ;; 113417ca54c3Smrg 113517ca54c3Smrg -psdir | --psdir | --psdi | --psd | --ps) 113617ca54c3Smrg ac_prev=psdir ;; 113717ca54c3Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 113817ca54c3Smrg psdir=$ac_optarg ;; 113917ca54c3Smrg 114017ca54c3Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 114117ca54c3Smrg | -silent | --silent | --silen | --sile | --sil) 114217ca54c3Smrg silent=yes ;; 114317ca54c3Smrg 114417ca54c3Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 114517ca54c3Smrg ac_prev=sbindir ;; 114617ca54c3Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 114717ca54c3Smrg | --sbi=* | --sb=*) 114817ca54c3Smrg sbindir=$ac_optarg ;; 114917ca54c3Smrg 115017ca54c3Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 115117ca54c3Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 115217ca54c3Smrg | --sharedst | --shareds | --shared | --share | --shar \ 115317ca54c3Smrg | --sha | --sh) 115417ca54c3Smrg ac_prev=sharedstatedir ;; 115517ca54c3Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 115617ca54c3Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 115717ca54c3Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 115817ca54c3Smrg | --sha=* | --sh=*) 115917ca54c3Smrg sharedstatedir=$ac_optarg ;; 116017ca54c3Smrg 116117ca54c3Smrg -site | --site | --sit) 116217ca54c3Smrg ac_prev=site ;; 116317ca54c3Smrg -site=* | --site=* | --sit=*) 116417ca54c3Smrg site=$ac_optarg ;; 116517ca54c3Smrg 116617ca54c3Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 116717ca54c3Smrg ac_prev=srcdir ;; 116817ca54c3Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 116917ca54c3Smrg srcdir=$ac_optarg ;; 117017ca54c3Smrg 117117ca54c3Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 117217ca54c3Smrg | --syscon | --sysco | --sysc | --sys | --sy) 117317ca54c3Smrg ac_prev=sysconfdir ;; 117417ca54c3Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 117517ca54c3Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 117617ca54c3Smrg sysconfdir=$ac_optarg ;; 117717ca54c3Smrg 117817ca54c3Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 117917ca54c3Smrg ac_prev=target_alias ;; 118017ca54c3Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 118117ca54c3Smrg target_alias=$ac_optarg ;; 118217ca54c3Smrg 118317ca54c3Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 118417ca54c3Smrg verbose=yes ;; 118517ca54c3Smrg 118617ca54c3Smrg -version | --version | --versio | --versi | --vers | -V) 118717ca54c3Smrg ac_init_version=: ;; 118817ca54c3Smrg 118917ca54c3Smrg -with-* | --with-*) 119017ca54c3Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 119117ca54c3Smrg # Reject names that are not valid shell variable names. 119217ca54c3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 119317ca54c3Smrg as_fn_error $? "invalid package name: $ac_useropt" 119417ca54c3Smrg ac_useropt_orig=$ac_useropt 119517ca54c3Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 119617ca54c3Smrg case $ac_user_opts in 119717ca54c3Smrg *" 119817ca54c3Smrg"with_$ac_useropt" 119917ca54c3Smrg"*) ;; 120017ca54c3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 120117ca54c3Smrg ac_unrecognized_sep=', ';; 120217ca54c3Smrg esac 120317ca54c3Smrg eval with_$ac_useropt=\$ac_optarg ;; 120417ca54c3Smrg 120517ca54c3Smrg -without-* | --without-*) 120617ca54c3Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 120717ca54c3Smrg # Reject names that are not valid shell variable names. 120817ca54c3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 120917ca54c3Smrg as_fn_error $? "invalid package name: $ac_useropt" 121017ca54c3Smrg ac_useropt_orig=$ac_useropt 121117ca54c3Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 121217ca54c3Smrg case $ac_user_opts in 121317ca54c3Smrg *" 121417ca54c3Smrg"with_$ac_useropt" 121517ca54c3Smrg"*) ;; 121617ca54c3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 121717ca54c3Smrg ac_unrecognized_sep=', ';; 121817ca54c3Smrg esac 121917ca54c3Smrg eval with_$ac_useropt=no ;; 122017ca54c3Smrg 122117ca54c3Smrg --x) 122217ca54c3Smrg # Obsolete; use --with-x. 122317ca54c3Smrg with_x=yes ;; 122417ca54c3Smrg 122517ca54c3Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 122617ca54c3Smrg | --x-incl | --x-inc | --x-in | --x-i) 122717ca54c3Smrg ac_prev=x_includes ;; 122817ca54c3Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 122917ca54c3Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 123017ca54c3Smrg x_includes=$ac_optarg ;; 123117ca54c3Smrg 123217ca54c3Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 123317ca54c3Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 123417ca54c3Smrg ac_prev=x_libraries ;; 123517ca54c3Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 123617ca54c3Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 123717ca54c3Smrg x_libraries=$ac_optarg ;; 123817ca54c3Smrg 123917ca54c3Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 124017ca54c3SmrgTry \`$0 --help' for more information" 124117ca54c3Smrg ;; 124217ca54c3Smrg 124317ca54c3Smrg *=*) 124417ca54c3Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 124517ca54c3Smrg # Reject names that are not valid shell variable names. 124617ca54c3Smrg case $ac_envvar in #( 124717ca54c3Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 124817ca54c3Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 124917ca54c3Smrg esac 125017ca54c3Smrg eval $ac_envvar=\$ac_optarg 125117ca54c3Smrg export $ac_envvar ;; 125217ca54c3Smrg 125317ca54c3Smrg *) 125417ca54c3Smrg # FIXME: should be removed in autoconf 3.0. 125517ca54c3Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 125617ca54c3Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 125717ca54c3Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 125817ca54c3Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 125917ca54c3Smrg ;; 126017ca54c3Smrg 126117ca54c3Smrg esac 126217ca54c3Smrgdone 126317ca54c3Smrg 126417ca54c3Smrgif test -n "$ac_prev"; then 126517ca54c3Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 126617ca54c3Smrg as_fn_error $? "missing argument to $ac_option" 126717ca54c3Smrgfi 126817ca54c3Smrg 126917ca54c3Smrgif test -n "$ac_unrecognized_opts"; then 127017ca54c3Smrg case $enable_option_checking in 127117ca54c3Smrg no) ;; 127217ca54c3Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 127317ca54c3Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 127417ca54c3Smrg esac 127517ca54c3Smrgfi 127617ca54c3Smrg 127717ca54c3Smrg# Check all directory arguments for consistency. 127817ca54c3Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 127917ca54c3Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 128017ca54c3Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 128117ca54c3Smrg libdir localedir mandir 128217ca54c3Smrgdo 128317ca54c3Smrg eval ac_val=\$$ac_var 128417ca54c3Smrg # Remove trailing slashes. 128517ca54c3Smrg case $ac_val in 128617ca54c3Smrg */ ) 128717ca54c3Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 128817ca54c3Smrg eval $ac_var=\$ac_val;; 128917ca54c3Smrg esac 129017ca54c3Smrg # Be sure to have absolute directory names. 129117ca54c3Smrg case $ac_val in 129217ca54c3Smrg [\\/$]* | ?:[\\/]* ) continue;; 129317ca54c3Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 129417ca54c3Smrg esac 129517ca54c3Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 129617ca54c3Smrgdone 129717ca54c3Smrg 129817ca54c3Smrg# There might be people who depend on the old broken behavior: `$host' 129917ca54c3Smrg# used to hold the argument of --host etc. 130017ca54c3Smrg# FIXME: To remove some day. 130117ca54c3Smrgbuild=$build_alias 130217ca54c3Smrghost=$host_alias 130317ca54c3Smrgtarget=$target_alias 130417ca54c3Smrg 130517ca54c3Smrg# FIXME: To remove some day. 130617ca54c3Smrgif test "x$host_alias" != x; then 130717ca54c3Smrg if test "x$build_alias" = x; then 130817ca54c3Smrg cross_compiling=maybe 130917ca54c3Smrg elif test "x$build_alias" != "x$host_alias"; then 131017ca54c3Smrg cross_compiling=yes 131117ca54c3Smrg fi 131217ca54c3Smrgfi 131317ca54c3Smrg 131417ca54c3Smrgac_tool_prefix= 131517ca54c3Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 131617ca54c3Smrg 131717ca54c3Smrgtest "$silent" = yes && exec 6>/dev/null 131817ca54c3Smrg 131917ca54c3Smrg 132017ca54c3Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 132117ca54c3Smrgac_ls_di=`ls -di .` && 132217ca54c3Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 132317ca54c3Smrg as_fn_error $? "working directory cannot be determined" 132417ca54c3Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 132517ca54c3Smrg as_fn_error $? "pwd does not report name of working directory" 132617ca54c3Smrg 132717ca54c3Smrg 132817ca54c3Smrg# Find the source files, if location was not specified. 132917ca54c3Smrgif test -z "$srcdir"; then 133017ca54c3Smrg ac_srcdir_defaulted=yes 133117ca54c3Smrg # Try the directory containing this script, then the parent directory. 133217ca54c3Smrg ac_confdir=`$as_dirname -- "$as_myself" || 133317ca54c3Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 133417ca54c3Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 133517ca54c3Smrg X"$as_myself" : 'X\(//\)$' \| \ 133617ca54c3Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 133717ca54c3Smrg$as_echo X"$as_myself" | 133817ca54c3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 133917ca54c3Smrg s//\1/ 134017ca54c3Smrg q 134117ca54c3Smrg } 134217ca54c3Smrg /^X\(\/\/\)[^/].*/{ 134317ca54c3Smrg s//\1/ 134417ca54c3Smrg q 134517ca54c3Smrg } 134617ca54c3Smrg /^X\(\/\/\)$/{ 134717ca54c3Smrg s//\1/ 134817ca54c3Smrg q 134917ca54c3Smrg } 135017ca54c3Smrg /^X\(\/\).*/{ 135117ca54c3Smrg s//\1/ 135217ca54c3Smrg q 135317ca54c3Smrg } 135417ca54c3Smrg s/.*/./; q'` 135517ca54c3Smrg srcdir=$ac_confdir 135617ca54c3Smrg if test ! -r "$srcdir/$ac_unique_file"; then 135717ca54c3Smrg srcdir=.. 135817ca54c3Smrg fi 135917ca54c3Smrgelse 136017ca54c3Smrg ac_srcdir_defaulted=no 136117ca54c3Smrgfi 136217ca54c3Smrgif test ! -r "$srcdir/$ac_unique_file"; then 136317ca54c3Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 136417ca54c3Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 136517ca54c3Smrgfi 136617ca54c3Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 136717ca54c3Smrgac_abs_confdir=`( 136817ca54c3Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 136917ca54c3Smrg pwd)` 137017ca54c3Smrg# When building in place, set srcdir=. 137117ca54c3Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 137217ca54c3Smrg srcdir=. 137317ca54c3Smrgfi 137417ca54c3Smrg# Remove unnecessary trailing slashes from srcdir. 137517ca54c3Smrg# Double slashes in file names in object file debugging info 137617ca54c3Smrg# mess up M-x gdb in Emacs. 137717ca54c3Smrgcase $srcdir in 137817ca54c3Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 137917ca54c3Smrgesac 138017ca54c3Smrgfor ac_var in $ac_precious_vars; do 138117ca54c3Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 138217ca54c3Smrg eval ac_env_${ac_var}_value=\$${ac_var} 138317ca54c3Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 138417ca54c3Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 138517ca54c3Smrgdone 138617ca54c3Smrg 138717ca54c3Smrg# 138817ca54c3Smrg# Report the --help message. 138917ca54c3Smrg# 139017ca54c3Smrgif test "$ac_init_help" = "long"; then 139117ca54c3Smrg # Omit some internal or obsolete options to make the list less imposing. 139217ca54c3Smrg # This message is too long to be a string in the A/UX 3.1 sh. 139317ca54c3Smrg cat <<_ACEOF 13944627b59cSmrg\`configure' configures xorgproto 2020.1 to adapt to many kinds of systems. 139517ca54c3Smrg 139617ca54c3SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 139717ca54c3Smrg 139817ca54c3SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 139917ca54c3SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 140017ca54c3Smrg 140117ca54c3SmrgDefaults for the options are specified in brackets. 140217ca54c3Smrg 140317ca54c3SmrgConfiguration: 140417ca54c3Smrg -h, --help display this help and exit 140517ca54c3Smrg --help=short display options specific to this package 140617ca54c3Smrg --help=recursive display the short help of all the included packages 140717ca54c3Smrg -V, --version display version information and exit 140817ca54c3Smrg -q, --quiet, --silent do not print \`checking ...' messages 140917ca54c3Smrg --cache-file=FILE cache test results in FILE [disabled] 141017ca54c3Smrg -C, --config-cache alias for \`--cache-file=config.cache' 141117ca54c3Smrg -n, --no-create do not create output files 141217ca54c3Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 141317ca54c3Smrg 141417ca54c3SmrgInstallation directories: 141517ca54c3Smrg --prefix=PREFIX install architecture-independent files in PREFIX 141617ca54c3Smrg [$ac_default_prefix] 141717ca54c3Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 141817ca54c3Smrg [PREFIX] 141917ca54c3Smrg 142017ca54c3SmrgBy default, \`make install' will install all the files in 142117ca54c3Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 142217ca54c3Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 142317ca54c3Smrgfor instance \`--prefix=\$HOME'. 142417ca54c3Smrg 142517ca54c3SmrgFor better control, use the options below. 142617ca54c3Smrg 142717ca54c3SmrgFine tuning of the installation directories: 142817ca54c3Smrg --bindir=DIR user executables [EPREFIX/bin] 142917ca54c3Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 143017ca54c3Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 143117ca54c3Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 143217ca54c3Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 143317ca54c3Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 143417ca54c3Smrg --libdir=DIR object code libraries [EPREFIX/lib] 143517ca54c3Smrg --includedir=DIR C header files [PREFIX/include] 143617ca54c3Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 143717ca54c3Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 143817ca54c3Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 143917ca54c3Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 144017ca54c3Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 144117ca54c3Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 144217ca54c3Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xorgproto] 144317ca54c3Smrg --htmldir=DIR html documentation [DOCDIR] 144417ca54c3Smrg --dvidir=DIR dvi documentation [DOCDIR] 144517ca54c3Smrg --pdfdir=DIR pdf documentation [DOCDIR] 144617ca54c3Smrg --psdir=DIR ps documentation [DOCDIR] 144717ca54c3Smrg_ACEOF 144817ca54c3Smrg 144917ca54c3Smrg cat <<\_ACEOF 145017ca54c3Smrg 145117ca54c3SmrgProgram names: 145217ca54c3Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 145317ca54c3Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 145417ca54c3Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 145517ca54c3Smrg 145617ca54c3SmrgSystem types: 145717ca54c3Smrg --build=BUILD configure for building on BUILD [guessed] 145817ca54c3Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 145917ca54c3Smrg_ACEOF 146017ca54c3Smrgfi 146117ca54c3Smrg 146217ca54c3Smrgif test -n "$ac_init_help"; then 146317ca54c3Smrg case $ac_init_help in 14644627b59cSmrg short | recursive ) echo "Configuration of xorgproto 2020.1:";; 146517ca54c3Smrg esac 146617ca54c3Smrg cat <<\_ACEOF 146717ca54c3Smrg 146817ca54c3SmrgOptional Features: 146917ca54c3Smrg --disable-option-checking ignore unrecognized --enable/--with options 147017ca54c3Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 147117ca54c3Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 147217ca54c3Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 147317ca54c3Smrg --disable-silent-rules verbose build output (undo: "make V=0") 147417ca54c3Smrg --enable-dependency-tracking 147517ca54c3Smrg do not reject slow dependency extractors 147617ca54c3Smrg --disable-dependency-tracking 147717ca54c3Smrg speeds up one-time build 147817ca54c3Smrg --disable-selective-werror 147917ca54c3Smrg Turn off selective compiler errors. (default: 148017ca54c3Smrg enabled) 148117ca54c3Smrg --enable-strict-compilation 148217ca54c3Smrg Enable all warnings from compiler and make them 148317ca54c3Smrg errors (default: disabled) 148417ca54c3Smrg --enable-specs Enable building the specs (default: yes) 148517ca54c3Smrg --enable-legacy Install legacy protocol headers (default: false) 148617ca54c3Smrg 148717ca54c3SmrgOptional Packages: 148817ca54c3Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 148917ca54c3Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 149017ca54c3Smrg --with-xmlto Use xmlto to regenerate documentation (default: 149117ca54c3Smrg auto) 149217ca54c3Smrg --with-fop Use fop to regenerate documentation (default: auto) 149317ca54c3Smrg --with-xsltproc Use xsltproc for the transformation of XML documents 149417ca54c3Smrg (default: auto) 149517ca54c3Smrg 149617ca54c3SmrgSome influential environment variables: 149717ca54c3Smrg CC C compiler command 149817ca54c3Smrg CFLAGS C compiler flags 149917ca54c3Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 150017ca54c3Smrg nonstandard directory <lib dir> 150117ca54c3Smrg LIBS libraries to pass to the linker, e.g. -l<library> 150217ca54c3Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 150317ca54c3Smrg you have headers in a nonstandard directory <include dir> 150417ca54c3Smrg CPP C preprocessor 150517ca54c3Smrg PKG_CONFIG path to pkg-config utility 150617ca54c3Smrg PKG_CONFIG_PATH 150717ca54c3Smrg directories to add to pkg-config's search path 150817ca54c3Smrg PKG_CONFIG_LIBDIR 150917ca54c3Smrg path overriding pkg-config's built-in search path 151017ca54c3Smrg XMLTO Path to xmlto command 151117ca54c3Smrg FOP Path to fop command 151217ca54c3Smrg XSLTPROC Path to xsltproc command 151317ca54c3Smrg 151417ca54c3SmrgUse these variables to override the choices made by `configure' or to help 151517ca54c3Smrgit to find libraries and programs with nonstandard names/locations. 151617ca54c3Smrg 1517ea1d6981SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>. 151817ca54c3Smrg_ACEOF 151917ca54c3Smrgac_status=$? 152017ca54c3Smrgfi 152117ca54c3Smrg 152217ca54c3Smrgif test "$ac_init_help" = "recursive"; then 152317ca54c3Smrg # If there are subdirs, report their specific --help. 152417ca54c3Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 152517ca54c3Smrg test -d "$ac_dir" || 152617ca54c3Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 152717ca54c3Smrg continue 152817ca54c3Smrg ac_builddir=. 152917ca54c3Smrg 153017ca54c3Smrgcase "$ac_dir" in 153117ca54c3Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 153217ca54c3Smrg*) 153317ca54c3Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 153417ca54c3Smrg # A ".." for each directory in $ac_dir_suffix. 153517ca54c3Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 153617ca54c3Smrg case $ac_top_builddir_sub in 153717ca54c3Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 153817ca54c3Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 153917ca54c3Smrg esac ;; 154017ca54c3Smrgesac 154117ca54c3Smrgac_abs_top_builddir=$ac_pwd 154217ca54c3Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 154317ca54c3Smrg# for backward compatibility: 154417ca54c3Smrgac_top_builddir=$ac_top_build_prefix 154517ca54c3Smrg 154617ca54c3Smrgcase $srcdir in 154717ca54c3Smrg .) # We are building in place. 154817ca54c3Smrg ac_srcdir=. 154917ca54c3Smrg ac_top_srcdir=$ac_top_builddir_sub 155017ca54c3Smrg ac_abs_top_srcdir=$ac_pwd ;; 155117ca54c3Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 155217ca54c3Smrg ac_srcdir=$srcdir$ac_dir_suffix; 155317ca54c3Smrg ac_top_srcdir=$srcdir 155417ca54c3Smrg ac_abs_top_srcdir=$srcdir ;; 155517ca54c3Smrg *) # Relative name. 155617ca54c3Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 155717ca54c3Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 155817ca54c3Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 155917ca54c3Smrgesac 156017ca54c3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 156117ca54c3Smrg 156217ca54c3Smrg cd "$ac_dir" || { ac_status=$?; continue; } 156317ca54c3Smrg # Check for guested configure. 156417ca54c3Smrg if test -f "$ac_srcdir/configure.gnu"; then 156517ca54c3Smrg echo && 156617ca54c3Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 156717ca54c3Smrg elif test -f "$ac_srcdir/configure"; then 156817ca54c3Smrg echo && 156917ca54c3Smrg $SHELL "$ac_srcdir/configure" --help=recursive 157017ca54c3Smrg else 157117ca54c3Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 157217ca54c3Smrg fi || ac_status=$? 157317ca54c3Smrg cd "$ac_pwd" || { ac_status=$?; break; } 157417ca54c3Smrg done 157517ca54c3Smrgfi 157617ca54c3Smrg 157717ca54c3Smrgtest -n "$ac_init_help" && exit $ac_status 157817ca54c3Smrgif $ac_init_version; then 157917ca54c3Smrg cat <<\_ACEOF 15804627b59cSmrgxorgproto configure 2020.1 158117ca54c3Smrggenerated by GNU Autoconf 2.69 158217ca54c3Smrg 158317ca54c3SmrgCopyright (C) 2012 Free Software Foundation, Inc. 158417ca54c3SmrgThis configure script is free software; the Free Software Foundation 158517ca54c3Smrggives unlimited permission to copy, distribute and modify it. 158617ca54c3Smrg_ACEOF 158717ca54c3Smrg exit 158817ca54c3Smrgfi 158917ca54c3Smrg 159017ca54c3Smrg## ------------------------ ## 159117ca54c3Smrg## Autoconf initialization. ## 159217ca54c3Smrg## ------------------------ ## 159317ca54c3Smrg 159417ca54c3Smrg# ac_fn_c_try_compile LINENO 159517ca54c3Smrg# -------------------------- 159617ca54c3Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 159717ca54c3Smrgac_fn_c_try_compile () 159817ca54c3Smrg{ 159917ca54c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 160017ca54c3Smrg rm -f conftest.$ac_objext 160117ca54c3Smrg if { { ac_try="$ac_compile" 160217ca54c3Smrgcase "(($ac_try" in 160317ca54c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 160417ca54c3Smrg *) ac_try_echo=$ac_try;; 160517ca54c3Smrgesac 160617ca54c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 160717ca54c3Smrg$as_echo "$ac_try_echo"; } >&5 160817ca54c3Smrg (eval "$ac_compile") 2>conftest.err 160917ca54c3Smrg ac_status=$? 161017ca54c3Smrg if test -s conftest.err; then 161117ca54c3Smrg grep -v '^ *+' conftest.err >conftest.er1 161217ca54c3Smrg cat conftest.er1 >&5 161317ca54c3Smrg mv -f conftest.er1 conftest.err 161417ca54c3Smrg fi 161517ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 161617ca54c3Smrg test $ac_status = 0; } && { 161717ca54c3Smrg test -z "$ac_c_werror_flag" || 161817ca54c3Smrg test ! -s conftest.err 161917ca54c3Smrg } && test -s conftest.$ac_objext; then : 162017ca54c3Smrg ac_retval=0 162117ca54c3Smrgelse 162217ca54c3Smrg $as_echo "$as_me: failed program was:" >&5 162317ca54c3Smrgsed 's/^/| /' conftest.$ac_ext >&5 162417ca54c3Smrg 162517ca54c3Smrg ac_retval=1 162617ca54c3Smrgfi 162717ca54c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 162817ca54c3Smrg as_fn_set_status $ac_retval 162917ca54c3Smrg 163017ca54c3Smrg} # ac_fn_c_try_compile 163117ca54c3Smrg 163217ca54c3Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 163317ca54c3Smrg# --------------------------------------------- 163417ca54c3Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 163517ca54c3Smrg# accordingly. 163617ca54c3Smrgac_fn_c_check_decl () 163717ca54c3Smrg{ 163817ca54c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 163917ca54c3Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 164017ca54c3Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 164117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 164217ca54c3Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 164317ca54c3Smrgif eval \${$3+:} false; then : 164417ca54c3Smrg $as_echo_n "(cached) " >&6 164517ca54c3Smrgelse 164617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 164717ca54c3Smrg/* end confdefs.h. */ 164817ca54c3Smrg$4 164917ca54c3Smrgint 165017ca54c3Smrgmain () 165117ca54c3Smrg{ 165217ca54c3Smrg#ifndef $as_decl_name 165317ca54c3Smrg#ifdef __cplusplus 165417ca54c3Smrg (void) $as_decl_use; 165517ca54c3Smrg#else 165617ca54c3Smrg (void) $as_decl_name; 165717ca54c3Smrg#endif 165817ca54c3Smrg#endif 165917ca54c3Smrg 166017ca54c3Smrg ; 166117ca54c3Smrg return 0; 166217ca54c3Smrg} 166317ca54c3Smrg_ACEOF 166417ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 166517ca54c3Smrg eval "$3=yes" 166617ca54c3Smrgelse 166717ca54c3Smrg eval "$3=no" 166817ca54c3Smrgfi 166917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 167017ca54c3Smrgfi 167117ca54c3Smrgeval ac_res=\$$3 167217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 167317ca54c3Smrg$as_echo "$ac_res" >&6; } 167417ca54c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 167517ca54c3Smrg 167617ca54c3Smrg} # ac_fn_c_check_decl 167717ca54c3Smrg 167817ca54c3Smrg# ac_fn_c_try_cpp LINENO 167917ca54c3Smrg# ---------------------- 168017ca54c3Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 168117ca54c3Smrgac_fn_c_try_cpp () 168217ca54c3Smrg{ 168317ca54c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 168417ca54c3Smrg if { { ac_try="$ac_cpp conftest.$ac_ext" 168517ca54c3Smrgcase "(($ac_try" in 168617ca54c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 168717ca54c3Smrg *) ac_try_echo=$ac_try;; 168817ca54c3Smrgesac 168917ca54c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 169017ca54c3Smrg$as_echo "$ac_try_echo"; } >&5 169117ca54c3Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 169217ca54c3Smrg ac_status=$? 169317ca54c3Smrg if test -s conftest.err; then 169417ca54c3Smrg grep -v '^ *+' conftest.err >conftest.er1 169517ca54c3Smrg cat conftest.er1 >&5 169617ca54c3Smrg mv -f conftest.er1 conftest.err 169717ca54c3Smrg fi 169817ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 169917ca54c3Smrg test $ac_status = 0; } > conftest.i && { 170017ca54c3Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 170117ca54c3Smrg test ! -s conftest.err 170217ca54c3Smrg }; then : 170317ca54c3Smrg ac_retval=0 170417ca54c3Smrgelse 170517ca54c3Smrg $as_echo "$as_me: failed program was:" >&5 170617ca54c3Smrgsed 's/^/| /' conftest.$ac_ext >&5 170717ca54c3Smrg 170817ca54c3Smrg ac_retval=1 170917ca54c3Smrgfi 171017ca54c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 171117ca54c3Smrg as_fn_set_status $ac_retval 171217ca54c3Smrg 171317ca54c3Smrg} # ac_fn_c_try_cpp 171417ca54c3Smrg 171517ca54c3Smrg# ac_fn_c_try_run LINENO 171617ca54c3Smrg# ---------------------- 171717ca54c3Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 171817ca54c3Smrg# that executables *can* be run. 171917ca54c3Smrgac_fn_c_try_run () 172017ca54c3Smrg{ 172117ca54c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 172217ca54c3Smrg if { { ac_try="$ac_link" 172317ca54c3Smrgcase "(($ac_try" in 172417ca54c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 172517ca54c3Smrg *) ac_try_echo=$ac_try;; 172617ca54c3Smrgesac 172717ca54c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 172817ca54c3Smrg$as_echo "$ac_try_echo"; } >&5 172917ca54c3Smrg (eval "$ac_link") 2>&5 173017ca54c3Smrg ac_status=$? 173117ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 173217ca54c3Smrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 173317ca54c3Smrg { { case "(($ac_try" in 173417ca54c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 173517ca54c3Smrg *) ac_try_echo=$ac_try;; 173617ca54c3Smrgesac 173717ca54c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 173817ca54c3Smrg$as_echo "$ac_try_echo"; } >&5 173917ca54c3Smrg (eval "$ac_try") 2>&5 174017ca54c3Smrg ac_status=$? 174117ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 174217ca54c3Smrg test $ac_status = 0; }; }; then : 174317ca54c3Smrg ac_retval=0 174417ca54c3Smrgelse 174517ca54c3Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 174617ca54c3Smrg $as_echo "$as_me: failed program was:" >&5 174717ca54c3Smrgsed 's/^/| /' conftest.$ac_ext >&5 174817ca54c3Smrg 174917ca54c3Smrg ac_retval=$ac_status 175017ca54c3Smrgfi 175117ca54c3Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 175217ca54c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 175317ca54c3Smrg as_fn_set_status $ac_retval 175417ca54c3Smrg 175517ca54c3Smrg} # ac_fn_c_try_run 175617ca54c3Smrg 175717ca54c3Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 175817ca54c3Smrg# ------------------------------------------------------- 175917ca54c3Smrg# Tests whether HEADER exists and can be compiled using the include files in 176017ca54c3Smrg# INCLUDES, setting the cache variable VAR accordingly. 176117ca54c3Smrgac_fn_c_check_header_compile () 176217ca54c3Smrg{ 176317ca54c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 176417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 176517ca54c3Smrg$as_echo_n "checking for $2... " >&6; } 176617ca54c3Smrgif eval \${$3+:} false; then : 176717ca54c3Smrg $as_echo_n "(cached) " >&6 176817ca54c3Smrgelse 176917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 177017ca54c3Smrg/* end confdefs.h. */ 177117ca54c3Smrg$4 177217ca54c3Smrg#include <$2> 177317ca54c3Smrg_ACEOF 177417ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 177517ca54c3Smrg eval "$3=yes" 177617ca54c3Smrgelse 177717ca54c3Smrg eval "$3=no" 177817ca54c3Smrgfi 177917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 178017ca54c3Smrgfi 178117ca54c3Smrgeval ac_res=\$$3 178217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 178317ca54c3Smrg$as_echo "$ac_res" >&6; } 178417ca54c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 178517ca54c3Smrg 178617ca54c3Smrg} # ac_fn_c_check_header_compile 178717ca54c3Smrg 178817ca54c3Smrg# ac_fn_c_try_link LINENO 178917ca54c3Smrg# ----------------------- 179017ca54c3Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 179117ca54c3Smrgac_fn_c_try_link () 179217ca54c3Smrg{ 179317ca54c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 179417ca54c3Smrg rm -f conftest.$ac_objext conftest$ac_exeext 179517ca54c3Smrg if { { ac_try="$ac_link" 179617ca54c3Smrgcase "(($ac_try" in 179717ca54c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 179817ca54c3Smrg *) ac_try_echo=$ac_try;; 179917ca54c3Smrgesac 180017ca54c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 180117ca54c3Smrg$as_echo "$ac_try_echo"; } >&5 180217ca54c3Smrg (eval "$ac_link") 2>conftest.err 180317ca54c3Smrg ac_status=$? 180417ca54c3Smrg if test -s conftest.err; then 180517ca54c3Smrg grep -v '^ *+' conftest.err >conftest.er1 180617ca54c3Smrg cat conftest.er1 >&5 180717ca54c3Smrg mv -f conftest.er1 conftest.err 180817ca54c3Smrg fi 180917ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 181017ca54c3Smrg test $ac_status = 0; } && { 181117ca54c3Smrg test -z "$ac_c_werror_flag" || 181217ca54c3Smrg test ! -s conftest.err 181317ca54c3Smrg } && test -s conftest$ac_exeext && { 181417ca54c3Smrg test "$cross_compiling" = yes || 181517ca54c3Smrg test -x conftest$ac_exeext 181617ca54c3Smrg }; then : 181717ca54c3Smrg ac_retval=0 181817ca54c3Smrgelse 181917ca54c3Smrg $as_echo "$as_me: failed program was:" >&5 182017ca54c3Smrgsed 's/^/| /' conftest.$ac_ext >&5 182117ca54c3Smrg 182217ca54c3Smrg ac_retval=1 182317ca54c3Smrgfi 182417ca54c3Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 182517ca54c3Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 182617ca54c3Smrg # interfere with the next link command; also delete a directory that is 182717ca54c3Smrg # left behind by Apple's compiler. We do this before executing the actions. 182817ca54c3Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 182917ca54c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 183017ca54c3Smrg as_fn_set_status $ac_retval 183117ca54c3Smrg 183217ca54c3Smrg} # ac_fn_c_try_link 183317ca54c3Smrg 183417ca54c3Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 183517ca54c3Smrg# ------------------------------------------------------- 183617ca54c3Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using 183717ca54c3Smrg# the include files in INCLUDES and setting the cache variable VAR 183817ca54c3Smrg# accordingly. 183917ca54c3Smrgac_fn_c_check_header_mongrel () 184017ca54c3Smrg{ 184117ca54c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 184217ca54c3Smrg if eval \${$3+:} false; then : 184317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 184417ca54c3Smrg$as_echo_n "checking for $2... " >&6; } 184517ca54c3Smrgif eval \${$3+:} false; then : 184617ca54c3Smrg $as_echo_n "(cached) " >&6 184717ca54c3Smrgfi 184817ca54c3Smrgeval ac_res=\$$3 184917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 185017ca54c3Smrg$as_echo "$ac_res" >&6; } 185117ca54c3Smrgelse 185217ca54c3Smrg # Is the header compilable? 185317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 185417ca54c3Smrg$as_echo_n "checking $2 usability... " >&6; } 185517ca54c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 185617ca54c3Smrg/* end confdefs.h. */ 185717ca54c3Smrg$4 185817ca54c3Smrg#include <$2> 185917ca54c3Smrg_ACEOF 186017ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 186117ca54c3Smrg ac_header_compiler=yes 186217ca54c3Smrgelse 186317ca54c3Smrg ac_header_compiler=no 186417ca54c3Smrgfi 186517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 186617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 186717ca54c3Smrg$as_echo "$ac_header_compiler" >&6; } 186817ca54c3Smrg 186917ca54c3Smrg# Is the header present? 187017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 187117ca54c3Smrg$as_echo_n "checking $2 presence... " >&6; } 187217ca54c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 187317ca54c3Smrg/* end confdefs.h. */ 187417ca54c3Smrg#include <$2> 187517ca54c3Smrg_ACEOF 187617ca54c3Smrgif ac_fn_c_try_cpp "$LINENO"; then : 187717ca54c3Smrg ac_header_preproc=yes 187817ca54c3Smrgelse 187917ca54c3Smrg ac_header_preproc=no 188017ca54c3Smrgfi 188117ca54c3Smrgrm -f conftest.err conftest.i conftest.$ac_ext 188217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 188317ca54c3Smrg$as_echo "$ac_header_preproc" >&6; } 188417ca54c3Smrg 188517ca54c3Smrg# So? What about this header? 188617ca54c3Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 188717ca54c3Smrg yes:no: ) 188817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 188917ca54c3Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 189017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 189117ca54c3Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 189217ca54c3Smrg ;; 189317ca54c3Smrg no:yes:* ) 189417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 189517ca54c3Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 189617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 189717ca54c3Smrg$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 189817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 189917ca54c3Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 190017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 190117ca54c3Smrg$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 190217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 190317ca54c3Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1904ea1d6981Smrg( $as_echo "## ------------------------------------------------------------------------- ## 1905ea1d6981Smrg## Report this to https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues ## 1906ea1d6981Smrg## ------------------------------------------------------------------------- ##" 190717ca54c3Smrg ) | sed "s/^/$as_me: WARNING: /" >&2 190817ca54c3Smrg ;; 190917ca54c3Smrgesac 191017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 191117ca54c3Smrg$as_echo_n "checking for $2... " >&6; } 191217ca54c3Smrgif eval \${$3+:} false; then : 191317ca54c3Smrg $as_echo_n "(cached) " >&6 191417ca54c3Smrgelse 191517ca54c3Smrg eval "$3=\$ac_header_compiler" 191617ca54c3Smrgfi 191717ca54c3Smrgeval ac_res=\$$3 191817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 191917ca54c3Smrg$as_echo "$ac_res" >&6; } 192017ca54c3Smrgfi 192117ca54c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 192217ca54c3Smrg 192317ca54c3Smrg} # ac_fn_c_check_header_mongrel 192417ca54c3Smrg 192517ca54c3Smrg# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 192617ca54c3Smrg# ---------------------------------------------------- 192717ca54c3Smrg# Tries to find if the field MEMBER exists in type AGGR, after including 192817ca54c3Smrg# INCLUDES, setting cache variable VAR accordingly. 192917ca54c3Smrgac_fn_c_check_member () 193017ca54c3Smrg{ 193117ca54c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 193217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 193317ca54c3Smrg$as_echo_n "checking for $2.$3... " >&6; } 193417ca54c3Smrgif eval \${$4+:} false; then : 193517ca54c3Smrg $as_echo_n "(cached) " >&6 193617ca54c3Smrgelse 193717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 193817ca54c3Smrg/* end confdefs.h. */ 193917ca54c3Smrg$5 194017ca54c3Smrgint 194117ca54c3Smrgmain () 194217ca54c3Smrg{ 194317ca54c3Smrgstatic $2 ac_aggr; 194417ca54c3Smrgif (ac_aggr.$3) 194517ca54c3Smrgreturn 0; 194617ca54c3Smrg ; 194717ca54c3Smrg return 0; 194817ca54c3Smrg} 194917ca54c3Smrg_ACEOF 195017ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 195117ca54c3Smrg eval "$4=yes" 195217ca54c3Smrgelse 195317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 195417ca54c3Smrg/* end confdefs.h. */ 195517ca54c3Smrg$5 195617ca54c3Smrgint 195717ca54c3Smrgmain () 195817ca54c3Smrg{ 195917ca54c3Smrgstatic $2 ac_aggr; 196017ca54c3Smrgif (sizeof ac_aggr.$3) 196117ca54c3Smrgreturn 0; 196217ca54c3Smrg ; 196317ca54c3Smrg return 0; 196417ca54c3Smrg} 196517ca54c3Smrg_ACEOF 196617ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 196717ca54c3Smrg eval "$4=yes" 196817ca54c3Smrgelse 196917ca54c3Smrg eval "$4=no" 197017ca54c3Smrgfi 197117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 197217ca54c3Smrgfi 197317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 197417ca54c3Smrgfi 197517ca54c3Smrgeval ac_res=\$$4 197617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 197717ca54c3Smrg$as_echo "$ac_res" >&6; } 197817ca54c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 197917ca54c3Smrg 198017ca54c3Smrg} # ac_fn_c_check_member 198117ca54c3Smrgcat >config.log <<_ACEOF 198217ca54c3SmrgThis file contains any messages produced by compilers while 198317ca54c3Smrgrunning configure, to aid debugging if configure makes a mistake. 198417ca54c3Smrg 19854627b59cSmrgIt was created by xorgproto $as_me 2020.1, which was 198617ca54c3Smrggenerated by GNU Autoconf 2.69. Invocation command line was 198717ca54c3Smrg 198817ca54c3Smrg $ $0 $@ 198917ca54c3Smrg 199017ca54c3Smrg_ACEOF 199117ca54c3Smrgexec 5>>config.log 199217ca54c3Smrg{ 199317ca54c3Smrgcat <<_ASUNAME 199417ca54c3Smrg## --------- ## 199517ca54c3Smrg## Platform. ## 199617ca54c3Smrg## --------- ## 199717ca54c3Smrg 199817ca54c3Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 199917ca54c3Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 200017ca54c3Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 200117ca54c3Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 200217ca54c3Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 200317ca54c3Smrg 200417ca54c3Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 200517ca54c3Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 200617ca54c3Smrg 200717ca54c3Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 200817ca54c3Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 200917ca54c3Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 201017ca54c3Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 201117ca54c3Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 201217ca54c3Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 201317ca54c3Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 201417ca54c3Smrg 201517ca54c3Smrg_ASUNAME 201617ca54c3Smrg 201717ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 201817ca54c3Smrgfor as_dir in $PATH 201917ca54c3Smrgdo 202017ca54c3Smrg IFS=$as_save_IFS 202117ca54c3Smrg test -z "$as_dir" && as_dir=. 202217ca54c3Smrg $as_echo "PATH: $as_dir" 202317ca54c3Smrg done 202417ca54c3SmrgIFS=$as_save_IFS 202517ca54c3Smrg 202617ca54c3Smrg} >&5 202717ca54c3Smrg 202817ca54c3Smrgcat >&5 <<_ACEOF 202917ca54c3Smrg 203017ca54c3Smrg 203117ca54c3Smrg## ----------- ## 203217ca54c3Smrg## Core tests. ## 203317ca54c3Smrg## ----------- ## 203417ca54c3Smrg 203517ca54c3Smrg_ACEOF 203617ca54c3Smrg 203717ca54c3Smrg 203817ca54c3Smrg# Keep a trace of the command line. 203917ca54c3Smrg# Strip out --no-create and --no-recursion so they do not pile up. 204017ca54c3Smrg# Strip out --silent because we don't want to record it for future runs. 204117ca54c3Smrg# Also quote any args containing shell meta-characters. 204217ca54c3Smrg# Make two passes to allow for proper duplicate-argument suppression. 204317ca54c3Smrgac_configure_args= 204417ca54c3Smrgac_configure_args0= 204517ca54c3Smrgac_configure_args1= 204617ca54c3Smrgac_must_keep_next=false 204717ca54c3Smrgfor ac_pass in 1 2 204817ca54c3Smrgdo 204917ca54c3Smrg for ac_arg 205017ca54c3Smrg do 205117ca54c3Smrg case $ac_arg in 205217ca54c3Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 205317ca54c3Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 205417ca54c3Smrg | -silent | --silent | --silen | --sile | --sil) 205517ca54c3Smrg continue ;; 205617ca54c3Smrg *\'*) 205717ca54c3Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 205817ca54c3Smrg esac 205917ca54c3Smrg case $ac_pass in 206017ca54c3Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 206117ca54c3Smrg 2) 206217ca54c3Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 206317ca54c3Smrg if test $ac_must_keep_next = true; then 206417ca54c3Smrg ac_must_keep_next=false # Got value, back to normal. 206517ca54c3Smrg else 206617ca54c3Smrg case $ac_arg in 206717ca54c3Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 206817ca54c3Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 206917ca54c3Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 207017ca54c3Smrg | -with-* | --with-* | -without-* | --without-* | --x) 207117ca54c3Smrg case "$ac_configure_args0 " in 207217ca54c3Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 207317ca54c3Smrg esac 207417ca54c3Smrg ;; 207517ca54c3Smrg -* ) ac_must_keep_next=true ;; 207617ca54c3Smrg esac 207717ca54c3Smrg fi 207817ca54c3Smrg as_fn_append ac_configure_args " '$ac_arg'" 207917ca54c3Smrg ;; 208017ca54c3Smrg esac 208117ca54c3Smrg done 208217ca54c3Smrgdone 208317ca54c3Smrg{ ac_configure_args0=; unset ac_configure_args0;} 208417ca54c3Smrg{ ac_configure_args1=; unset ac_configure_args1;} 208517ca54c3Smrg 208617ca54c3Smrg# When interrupted or exit'd, cleanup temporary files, and complete 208717ca54c3Smrg# config.log. We remove comments because anyway the quotes in there 208817ca54c3Smrg# would cause problems or look ugly. 208917ca54c3Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 209017ca54c3Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 209117ca54c3Smrgtrap 'exit_status=$? 209217ca54c3Smrg # Save into config.log some information that might help in debugging. 209317ca54c3Smrg { 209417ca54c3Smrg echo 209517ca54c3Smrg 209617ca54c3Smrg $as_echo "## ---------------- ## 209717ca54c3Smrg## Cache variables. ## 209817ca54c3Smrg## ---------------- ##" 209917ca54c3Smrg echo 210017ca54c3Smrg # The following way of writing the cache mishandles newlines in values, 210117ca54c3Smrg( 210217ca54c3Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 210317ca54c3Smrg eval ac_val=\$$ac_var 210417ca54c3Smrg case $ac_val in #( 210517ca54c3Smrg *${as_nl}*) 210617ca54c3Smrg case $ac_var in #( 210717ca54c3Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 210817ca54c3Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 210917ca54c3Smrg esac 211017ca54c3Smrg case $ac_var in #( 211117ca54c3Smrg _ | IFS | as_nl) ;; #( 211217ca54c3Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 211317ca54c3Smrg *) { eval $ac_var=; unset $ac_var;} ;; 211417ca54c3Smrg esac ;; 211517ca54c3Smrg esac 211617ca54c3Smrg done 211717ca54c3Smrg (set) 2>&1 | 211817ca54c3Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 211917ca54c3Smrg *${as_nl}ac_space=\ *) 212017ca54c3Smrg sed -n \ 212117ca54c3Smrg "s/'\''/'\''\\\\'\'''\''/g; 212217ca54c3Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 212317ca54c3Smrg ;; #( 212417ca54c3Smrg *) 212517ca54c3Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 212617ca54c3Smrg ;; 212717ca54c3Smrg esac | 212817ca54c3Smrg sort 212917ca54c3Smrg) 213017ca54c3Smrg echo 213117ca54c3Smrg 213217ca54c3Smrg $as_echo "## ----------------- ## 213317ca54c3Smrg## Output variables. ## 213417ca54c3Smrg## ----------------- ##" 213517ca54c3Smrg echo 213617ca54c3Smrg for ac_var in $ac_subst_vars 213717ca54c3Smrg do 213817ca54c3Smrg eval ac_val=\$$ac_var 213917ca54c3Smrg case $ac_val in 214017ca54c3Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 214117ca54c3Smrg esac 214217ca54c3Smrg $as_echo "$ac_var='\''$ac_val'\''" 214317ca54c3Smrg done | sort 214417ca54c3Smrg echo 214517ca54c3Smrg 214617ca54c3Smrg if test -n "$ac_subst_files"; then 214717ca54c3Smrg $as_echo "## ------------------- ## 214817ca54c3Smrg## File substitutions. ## 214917ca54c3Smrg## ------------------- ##" 215017ca54c3Smrg echo 215117ca54c3Smrg for ac_var in $ac_subst_files 215217ca54c3Smrg do 215317ca54c3Smrg eval ac_val=\$$ac_var 215417ca54c3Smrg case $ac_val in 215517ca54c3Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 215617ca54c3Smrg esac 215717ca54c3Smrg $as_echo "$ac_var='\''$ac_val'\''" 215817ca54c3Smrg done | sort 215917ca54c3Smrg echo 216017ca54c3Smrg fi 216117ca54c3Smrg 216217ca54c3Smrg if test -s confdefs.h; then 216317ca54c3Smrg $as_echo "## ----------- ## 216417ca54c3Smrg## confdefs.h. ## 216517ca54c3Smrg## ----------- ##" 216617ca54c3Smrg echo 216717ca54c3Smrg cat confdefs.h 216817ca54c3Smrg echo 216917ca54c3Smrg fi 217017ca54c3Smrg test "$ac_signal" != 0 && 217117ca54c3Smrg $as_echo "$as_me: caught signal $ac_signal" 217217ca54c3Smrg $as_echo "$as_me: exit $exit_status" 217317ca54c3Smrg } >&5 217417ca54c3Smrg rm -f core *.core core.conftest.* && 217517ca54c3Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 217617ca54c3Smrg exit $exit_status 217717ca54c3Smrg' 0 217817ca54c3Smrgfor ac_signal in 1 2 13 15; do 217917ca54c3Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 218017ca54c3Smrgdone 218117ca54c3Smrgac_signal=0 218217ca54c3Smrg 218317ca54c3Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 218417ca54c3Smrgrm -f -r conftest* confdefs.h 218517ca54c3Smrg 218617ca54c3Smrg$as_echo "/* confdefs.h */" > confdefs.h 218717ca54c3Smrg 218817ca54c3Smrg# Predefined preprocessor variables. 218917ca54c3Smrg 219017ca54c3Smrgcat >>confdefs.h <<_ACEOF 219117ca54c3Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 219217ca54c3Smrg_ACEOF 219317ca54c3Smrg 219417ca54c3Smrgcat >>confdefs.h <<_ACEOF 219517ca54c3Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 219617ca54c3Smrg_ACEOF 219717ca54c3Smrg 219817ca54c3Smrgcat >>confdefs.h <<_ACEOF 219917ca54c3Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 220017ca54c3Smrg_ACEOF 220117ca54c3Smrg 220217ca54c3Smrgcat >>confdefs.h <<_ACEOF 220317ca54c3Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 220417ca54c3Smrg_ACEOF 220517ca54c3Smrg 220617ca54c3Smrgcat >>confdefs.h <<_ACEOF 220717ca54c3Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 220817ca54c3Smrg_ACEOF 220917ca54c3Smrg 221017ca54c3Smrgcat >>confdefs.h <<_ACEOF 221117ca54c3Smrg#define PACKAGE_URL "$PACKAGE_URL" 221217ca54c3Smrg_ACEOF 221317ca54c3Smrg 221417ca54c3Smrg 221517ca54c3Smrg# Let the site file select an alternate cache file if it wants to. 221617ca54c3Smrg# Prefer an explicitly selected file to automatically selected ones. 221717ca54c3Smrgac_site_file1=NONE 221817ca54c3Smrgac_site_file2=NONE 221917ca54c3Smrgif test -n "$CONFIG_SITE"; then 222017ca54c3Smrg # We do not want a PATH search for config.site. 222117ca54c3Smrg case $CONFIG_SITE in #(( 222217ca54c3Smrg -*) ac_site_file1=./$CONFIG_SITE;; 222317ca54c3Smrg */*) ac_site_file1=$CONFIG_SITE;; 222417ca54c3Smrg *) ac_site_file1=./$CONFIG_SITE;; 222517ca54c3Smrg esac 222617ca54c3Smrgelif test "x$prefix" != xNONE; then 222717ca54c3Smrg ac_site_file1=$prefix/share/config.site 222817ca54c3Smrg ac_site_file2=$prefix/etc/config.site 222917ca54c3Smrgelse 223017ca54c3Smrg ac_site_file1=$ac_default_prefix/share/config.site 223117ca54c3Smrg ac_site_file2=$ac_default_prefix/etc/config.site 223217ca54c3Smrgfi 223317ca54c3Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 223417ca54c3Smrgdo 223517ca54c3Smrg test "x$ac_site_file" = xNONE && continue 223617ca54c3Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 223717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 223817ca54c3Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 223917ca54c3Smrg sed 's/^/| /' "$ac_site_file" >&5 224017ca54c3Smrg . "$ac_site_file" \ 224117ca54c3Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 224217ca54c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 224317ca54c3Smrgas_fn_error $? "failed to load site script $ac_site_file 224417ca54c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 224517ca54c3Smrg fi 224617ca54c3Smrgdone 224717ca54c3Smrg 224817ca54c3Smrgif test -r "$cache_file"; then 224917ca54c3Smrg # Some versions of bash will fail to source /dev/null (special files 225017ca54c3Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 225117ca54c3Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 225217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 225317ca54c3Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 225417ca54c3Smrg case $cache_file in 225517ca54c3Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 225617ca54c3Smrg *) . "./$cache_file";; 225717ca54c3Smrg esac 225817ca54c3Smrg fi 225917ca54c3Smrgelse 226017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 226117ca54c3Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 226217ca54c3Smrg >$cache_file 226317ca54c3Smrgfi 226417ca54c3Smrg 226517ca54c3Smrg# Check that the precious variables saved in the cache have kept the same 226617ca54c3Smrg# value. 226717ca54c3Smrgac_cache_corrupted=false 226817ca54c3Smrgfor ac_var in $ac_precious_vars; do 226917ca54c3Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 227017ca54c3Smrg eval ac_new_set=\$ac_env_${ac_var}_set 227117ca54c3Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 227217ca54c3Smrg eval ac_new_val=\$ac_env_${ac_var}_value 227317ca54c3Smrg case $ac_old_set,$ac_new_set in 227417ca54c3Smrg set,) 227517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 227617ca54c3Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 227717ca54c3Smrg ac_cache_corrupted=: ;; 227817ca54c3Smrg ,set) 227917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 228017ca54c3Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 228117ca54c3Smrg ac_cache_corrupted=: ;; 228217ca54c3Smrg ,);; 228317ca54c3Smrg *) 228417ca54c3Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 228517ca54c3Smrg # differences in whitespace do not lead to failure. 228617ca54c3Smrg ac_old_val_w=`echo x $ac_old_val` 228717ca54c3Smrg ac_new_val_w=`echo x $ac_new_val` 228817ca54c3Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 228917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 229017ca54c3Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 229117ca54c3Smrg ac_cache_corrupted=: 229217ca54c3Smrg else 229317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 229417ca54c3Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 229517ca54c3Smrg eval $ac_var=\$ac_old_val 229617ca54c3Smrg fi 229717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 229817ca54c3Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 229917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 230017ca54c3Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 230117ca54c3Smrg fi;; 230217ca54c3Smrg esac 230317ca54c3Smrg # Pass precious variables to config.status. 230417ca54c3Smrg if test "$ac_new_set" = set; then 230517ca54c3Smrg case $ac_new_val in 230617ca54c3Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 230717ca54c3Smrg *) ac_arg=$ac_var=$ac_new_val ;; 230817ca54c3Smrg esac 230917ca54c3Smrg case " $ac_configure_args " in 231017ca54c3Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 231117ca54c3Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 231217ca54c3Smrg esac 231317ca54c3Smrg fi 231417ca54c3Smrgdone 231517ca54c3Smrgif $ac_cache_corrupted; then 231617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 231717ca54c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 231817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 231917ca54c3Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 232017ca54c3Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 232117ca54c3Smrgfi 232217ca54c3Smrg## -------------------- ## 232317ca54c3Smrg## Main body of script. ## 232417ca54c3Smrg## -------------------- ## 232517ca54c3Smrg 232617ca54c3Smrgac_ext=c 232717ca54c3Smrgac_cpp='$CPP $CPPFLAGS' 232817ca54c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 232917ca54c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 233017ca54c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 233117ca54c3Smrg 233217ca54c3Smrg 2333ea1d6981Smrgam__api_version='1.16' 233417ca54c3Smrg 233517ca54c3Smrgac_aux_dir= 233617ca54c3Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 233717ca54c3Smrg if test -f "$ac_dir/install-sh"; then 233817ca54c3Smrg ac_aux_dir=$ac_dir 233917ca54c3Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 234017ca54c3Smrg break 234117ca54c3Smrg elif test -f "$ac_dir/install.sh"; then 234217ca54c3Smrg ac_aux_dir=$ac_dir 234317ca54c3Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 234417ca54c3Smrg break 234517ca54c3Smrg elif test -f "$ac_dir/shtool"; then 234617ca54c3Smrg ac_aux_dir=$ac_dir 234717ca54c3Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 234817ca54c3Smrg break 234917ca54c3Smrg fi 235017ca54c3Smrgdone 235117ca54c3Smrgif test -z "$ac_aux_dir"; then 235217ca54c3Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 235317ca54c3Smrgfi 235417ca54c3Smrg 235517ca54c3Smrg# These three variables are undocumented and unsupported, 235617ca54c3Smrg# and are intended to be withdrawn in a future Autoconf release. 235717ca54c3Smrg# They can cause serious problems if a builder's source tree is in a directory 235817ca54c3Smrg# whose full name contains unusual characters. 235917ca54c3Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 236017ca54c3Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 236117ca54c3Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 236217ca54c3Smrg 236317ca54c3Smrg 236417ca54c3Smrg# Find a good install program. We prefer a C program (faster), 236517ca54c3Smrg# so one script is as good as another. But avoid the broken or 236617ca54c3Smrg# incompatible versions: 236717ca54c3Smrg# SysV /etc/install, /usr/sbin/install 236817ca54c3Smrg# SunOS /usr/etc/install 236917ca54c3Smrg# IRIX /sbin/install 237017ca54c3Smrg# AIX /bin/install 237117ca54c3Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 237217ca54c3Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 237317ca54c3Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 237417ca54c3Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 237517ca54c3Smrg# OS/2's system install, which has a completely different semantic 237617ca54c3Smrg# ./install, which can be erroneously created by make from ./install.sh. 237717ca54c3Smrg# Reject install programs that cannot install multiple files. 237817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 237917ca54c3Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 238017ca54c3Smrgif test -z "$INSTALL"; then 238117ca54c3Smrgif ${ac_cv_path_install+:} false; then : 238217ca54c3Smrg $as_echo_n "(cached) " >&6 238317ca54c3Smrgelse 238417ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 238517ca54c3Smrgfor as_dir in $PATH 238617ca54c3Smrgdo 238717ca54c3Smrg IFS=$as_save_IFS 238817ca54c3Smrg test -z "$as_dir" && as_dir=. 238917ca54c3Smrg # Account for people who put trailing slashes in PATH elements. 239017ca54c3Smrgcase $as_dir/ in #(( 239117ca54c3Smrg ./ | .// | /[cC]/* | \ 239217ca54c3Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 239317ca54c3Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 239417ca54c3Smrg /usr/ucb/* ) ;; 239517ca54c3Smrg *) 239617ca54c3Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 239717ca54c3Smrg # Don't use installbsd from OSF since it installs stuff as root 239817ca54c3Smrg # by default. 239917ca54c3Smrg for ac_prog in ginstall scoinst install; do 240017ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 240117ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 240217ca54c3Smrg if test $ac_prog = install && 240317ca54c3Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 240417ca54c3Smrg # AIX install. It has an incompatible calling convention. 240517ca54c3Smrg : 240617ca54c3Smrg elif test $ac_prog = install && 240717ca54c3Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 240817ca54c3Smrg # program-specific install script used by HP pwplus--don't use. 240917ca54c3Smrg : 241017ca54c3Smrg else 241117ca54c3Smrg rm -rf conftest.one conftest.two conftest.dir 241217ca54c3Smrg echo one > conftest.one 241317ca54c3Smrg echo two > conftest.two 241417ca54c3Smrg mkdir conftest.dir 241517ca54c3Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 241617ca54c3Smrg test -s conftest.one && test -s conftest.two && 241717ca54c3Smrg test -s conftest.dir/conftest.one && 241817ca54c3Smrg test -s conftest.dir/conftest.two 241917ca54c3Smrg then 242017ca54c3Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 242117ca54c3Smrg break 3 242217ca54c3Smrg fi 242317ca54c3Smrg fi 242417ca54c3Smrg fi 242517ca54c3Smrg done 242617ca54c3Smrg done 242717ca54c3Smrg ;; 242817ca54c3Smrgesac 242917ca54c3Smrg 243017ca54c3Smrg done 243117ca54c3SmrgIFS=$as_save_IFS 243217ca54c3Smrg 243317ca54c3Smrgrm -rf conftest.one conftest.two conftest.dir 243417ca54c3Smrg 243517ca54c3Smrgfi 243617ca54c3Smrg if test "${ac_cv_path_install+set}" = set; then 243717ca54c3Smrg INSTALL=$ac_cv_path_install 243817ca54c3Smrg else 243917ca54c3Smrg # As a last resort, use the slow shell script. Don't cache a 244017ca54c3Smrg # value for INSTALL within a source directory, because that will 244117ca54c3Smrg # break other packages using the cache if that directory is 244217ca54c3Smrg # removed, or if the value is a relative name. 244317ca54c3Smrg INSTALL=$ac_install_sh 244417ca54c3Smrg fi 244517ca54c3Smrgfi 244617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 244717ca54c3Smrg$as_echo "$INSTALL" >&6; } 244817ca54c3Smrg 244917ca54c3Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 245017ca54c3Smrg# It thinks the first close brace ends the variable substitution. 245117ca54c3Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 245217ca54c3Smrg 245317ca54c3Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 245417ca54c3Smrg 245517ca54c3Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 245617ca54c3Smrg 245717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 245817ca54c3Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 245917ca54c3Smrg# Reject unsafe characters in $srcdir or the absolute working directory 246017ca54c3Smrg# name. Accept space and tab only in the latter. 246117ca54c3Smrgam_lf=' 246217ca54c3Smrg' 246317ca54c3Smrgcase `pwd` in 246417ca54c3Smrg *[\\\"\#\$\&\'\`$am_lf]*) 246517ca54c3Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 246617ca54c3Smrgesac 246717ca54c3Smrgcase $srcdir in 246817ca54c3Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 246917ca54c3Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 247017ca54c3Smrgesac 247117ca54c3Smrg 247217ca54c3Smrg# Do 'set' in a subshell so we don't clobber the current shell's 247317ca54c3Smrg# arguments. Must try -L first in case configure is actually a 247417ca54c3Smrg# symlink; some systems play weird games with the mod time of symlinks 247517ca54c3Smrg# (eg FreeBSD returns the mod time of the symlink's containing 247617ca54c3Smrg# directory). 247717ca54c3Smrgif ( 247817ca54c3Smrg am_has_slept=no 247917ca54c3Smrg for am_try in 1 2; do 248017ca54c3Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 248117ca54c3Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 248217ca54c3Smrg if test "$*" = "X"; then 248317ca54c3Smrg # -L didn't work. 248417ca54c3Smrg set X `ls -t "$srcdir/configure" conftest.file` 248517ca54c3Smrg fi 248617ca54c3Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 248717ca54c3Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 248817ca54c3Smrg 248917ca54c3Smrg # If neither matched, then we have a broken ls. This can happen 249017ca54c3Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 249117ca54c3Smrg # broken ls alias from the environment. This has actually 249217ca54c3Smrg # happened. Such a system could not be considered "sane". 249317ca54c3Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 249417ca54c3Smrg alias in your environment" "$LINENO" 5 249517ca54c3Smrg fi 249617ca54c3Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 249717ca54c3Smrg break 249817ca54c3Smrg fi 249917ca54c3Smrg # Just in case. 250017ca54c3Smrg sleep 1 250117ca54c3Smrg am_has_slept=yes 250217ca54c3Smrg done 250317ca54c3Smrg test "$2" = conftest.file 250417ca54c3Smrg ) 250517ca54c3Smrgthen 250617ca54c3Smrg # Ok. 250717ca54c3Smrg : 250817ca54c3Smrgelse 250917ca54c3Smrg as_fn_error $? "newly created file is older than distributed files! 251017ca54c3SmrgCheck your system clock" "$LINENO" 5 251117ca54c3Smrgfi 251217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 251317ca54c3Smrg$as_echo "yes" >&6; } 251417ca54c3Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 251517ca54c3Smrg# generated files are strictly newer. 251617ca54c3Smrgam_sleep_pid= 251717ca54c3Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 251817ca54c3Smrg ( sleep 1 ) & 251917ca54c3Smrg am_sleep_pid=$! 252017ca54c3Smrgfi 252117ca54c3Smrg 252217ca54c3Smrgrm -f conftest.file 252317ca54c3Smrg 252417ca54c3Smrgtest "$program_prefix" != NONE && 252517ca54c3Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 252617ca54c3Smrg# Use a double $ so make ignores it. 252717ca54c3Smrgtest "$program_suffix" != NONE && 252817ca54c3Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 252917ca54c3Smrg# Double any \ or $. 253017ca54c3Smrg# By default was `s,x,x', remove it if useless. 253117ca54c3Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 253217ca54c3Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 253317ca54c3Smrg 253417ca54c3Smrg# Expand $ac_aux_dir to an absolute path. 253517ca54c3Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 253617ca54c3Smrg 253717ca54c3Smrgif test x"${MISSING+set}" != xset; then 253817ca54c3Smrg case $am_aux_dir in 253917ca54c3Smrg *\ * | *\ *) 254017ca54c3Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 254117ca54c3Smrg *) 254217ca54c3Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 254317ca54c3Smrg esac 254417ca54c3Smrgfi 254517ca54c3Smrg# Use eval to expand $SHELL 254617ca54c3Smrgif eval "$MISSING --is-lightweight"; then 254717ca54c3Smrg am_missing_run="$MISSING " 254817ca54c3Smrgelse 254917ca54c3Smrg am_missing_run= 255017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 255117ca54c3Smrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 255217ca54c3Smrgfi 255317ca54c3Smrg 255417ca54c3Smrgif test x"${install_sh+set}" != xset; then 255517ca54c3Smrg case $am_aux_dir in 255617ca54c3Smrg *\ * | *\ *) 255717ca54c3Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 255817ca54c3Smrg *) 255917ca54c3Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 256017ca54c3Smrg esac 256117ca54c3Smrgfi 256217ca54c3Smrg 256317ca54c3Smrg# Installed binaries are usually stripped using 'strip' when the user 256417ca54c3Smrg# run "make install-strip". However 'strip' might not be the right 256517ca54c3Smrg# tool to use in cross-compilation environments, therefore Automake 256617ca54c3Smrg# will honor the 'STRIP' environment variable to overrule this program. 256717ca54c3Smrgif test "$cross_compiling" != no; then 256817ca54c3Smrg if test -n "$ac_tool_prefix"; then 256917ca54c3Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 257017ca54c3Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 257117ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 257217ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 257317ca54c3Smrgif ${ac_cv_prog_STRIP+:} false; then : 257417ca54c3Smrg $as_echo_n "(cached) " >&6 257517ca54c3Smrgelse 257617ca54c3Smrg if test -n "$STRIP"; then 257717ca54c3Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 257817ca54c3Smrgelse 257917ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 258017ca54c3Smrgfor as_dir in $PATH 258117ca54c3Smrgdo 258217ca54c3Smrg IFS=$as_save_IFS 258317ca54c3Smrg test -z "$as_dir" && as_dir=. 258417ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 258517ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 258617ca54c3Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 258717ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 258817ca54c3Smrg break 2 258917ca54c3Smrg fi 259017ca54c3Smrgdone 259117ca54c3Smrg done 259217ca54c3SmrgIFS=$as_save_IFS 259317ca54c3Smrg 259417ca54c3Smrgfi 259517ca54c3Smrgfi 259617ca54c3SmrgSTRIP=$ac_cv_prog_STRIP 259717ca54c3Smrgif test -n "$STRIP"; then 259817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 259917ca54c3Smrg$as_echo "$STRIP" >&6; } 260017ca54c3Smrgelse 260117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 260217ca54c3Smrg$as_echo "no" >&6; } 260317ca54c3Smrgfi 260417ca54c3Smrg 260517ca54c3Smrg 260617ca54c3Smrgfi 260717ca54c3Smrgif test -z "$ac_cv_prog_STRIP"; then 260817ca54c3Smrg ac_ct_STRIP=$STRIP 260917ca54c3Smrg # Extract the first word of "strip", so it can be a program name with args. 261017ca54c3Smrgset dummy strip; ac_word=$2 261117ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 261217ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 261317ca54c3Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 261417ca54c3Smrg $as_echo_n "(cached) " >&6 261517ca54c3Smrgelse 261617ca54c3Smrg if test -n "$ac_ct_STRIP"; then 261717ca54c3Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 261817ca54c3Smrgelse 261917ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 262017ca54c3Smrgfor as_dir in $PATH 262117ca54c3Smrgdo 262217ca54c3Smrg IFS=$as_save_IFS 262317ca54c3Smrg test -z "$as_dir" && as_dir=. 262417ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 262517ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 262617ca54c3Smrg ac_cv_prog_ac_ct_STRIP="strip" 262717ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 262817ca54c3Smrg break 2 262917ca54c3Smrg fi 263017ca54c3Smrgdone 263117ca54c3Smrg done 263217ca54c3SmrgIFS=$as_save_IFS 263317ca54c3Smrg 263417ca54c3Smrgfi 263517ca54c3Smrgfi 263617ca54c3Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 263717ca54c3Smrgif test -n "$ac_ct_STRIP"; then 263817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 263917ca54c3Smrg$as_echo "$ac_ct_STRIP" >&6; } 264017ca54c3Smrgelse 264117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 264217ca54c3Smrg$as_echo "no" >&6; } 264317ca54c3Smrgfi 264417ca54c3Smrg 264517ca54c3Smrg if test "x$ac_ct_STRIP" = x; then 264617ca54c3Smrg STRIP=":" 264717ca54c3Smrg else 264817ca54c3Smrg case $cross_compiling:$ac_tool_warned in 264917ca54c3Smrgyes:) 265017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 265117ca54c3Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 265217ca54c3Smrgac_tool_warned=yes ;; 265317ca54c3Smrgesac 265417ca54c3Smrg STRIP=$ac_ct_STRIP 265517ca54c3Smrg fi 265617ca54c3Smrgelse 265717ca54c3Smrg STRIP="$ac_cv_prog_STRIP" 265817ca54c3Smrgfi 265917ca54c3Smrg 266017ca54c3Smrgfi 266117ca54c3SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 266217ca54c3Smrg 266317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 266417ca54c3Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 266517ca54c3Smrgif test -z "$MKDIR_P"; then 266617ca54c3Smrg if ${ac_cv_path_mkdir+:} false; then : 266717ca54c3Smrg $as_echo_n "(cached) " >&6 266817ca54c3Smrgelse 266917ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 267017ca54c3Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 267117ca54c3Smrgdo 267217ca54c3Smrg IFS=$as_save_IFS 267317ca54c3Smrg test -z "$as_dir" && as_dir=. 267417ca54c3Smrg for ac_prog in mkdir gmkdir; do 267517ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 267617ca54c3Smrg as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 267717ca54c3Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 267817ca54c3Smrg 'mkdir (GNU coreutils) '* | \ 267917ca54c3Smrg 'mkdir (coreutils) '* | \ 268017ca54c3Smrg 'mkdir (fileutils) '4.1*) 268117ca54c3Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 268217ca54c3Smrg break 3;; 268317ca54c3Smrg esac 268417ca54c3Smrg done 268517ca54c3Smrg done 268617ca54c3Smrg done 268717ca54c3SmrgIFS=$as_save_IFS 268817ca54c3Smrg 268917ca54c3Smrgfi 269017ca54c3Smrg 269117ca54c3Smrg test -d ./--version && rmdir ./--version 269217ca54c3Smrg if test "${ac_cv_path_mkdir+set}" = set; then 269317ca54c3Smrg MKDIR_P="$ac_cv_path_mkdir -p" 269417ca54c3Smrg else 269517ca54c3Smrg # As a last resort, use the slow shell script. Don't cache a 269617ca54c3Smrg # value for MKDIR_P within a source directory, because that will 269717ca54c3Smrg # break other packages using the cache if that directory is 269817ca54c3Smrg # removed, or if the value is a relative name. 269917ca54c3Smrg MKDIR_P="$ac_install_sh -d" 270017ca54c3Smrg fi 270117ca54c3Smrgfi 270217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 270317ca54c3Smrg$as_echo "$MKDIR_P" >&6; } 270417ca54c3Smrg 270517ca54c3Smrgfor ac_prog in gawk mawk nawk awk 270617ca54c3Smrgdo 270717ca54c3Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 270817ca54c3Smrgset dummy $ac_prog; ac_word=$2 270917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 271017ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 271117ca54c3Smrgif ${ac_cv_prog_AWK+:} false; then : 271217ca54c3Smrg $as_echo_n "(cached) " >&6 271317ca54c3Smrgelse 271417ca54c3Smrg if test -n "$AWK"; then 271517ca54c3Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 271617ca54c3Smrgelse 271717ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 271817ca54c3Smrgfor as_dir in $PATH 271917ca54c3Smrgdo 272017ca54c3Smrg IFS=$as_save_IFS 272117ca54c3Smrg test -z "$as_dir" && as_dir=. 272217ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 272317ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 272417ca54c3Smrg ac_cv_prog_AWK="$ac_prog" 272517ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 272617ca54c3Smrg break 2 272717ca54c3Smrg fi 272817ca54c3Smrgdone 272917ca54c3Smrg done 273017ca54c3SmrgIFS=$as_save_IFS 273117ca54c3Smrg 273217ca54c3Smrgfi 273317ca54c3Smrgfi 273417ca54c3SmrgAWK=$ac_cv_prog_AWK 273517ca54c3Smrgif test -n "$AWK"; then 273617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 273717ca54c3Smrg$as_echo "$AWK" >&6; } 273817ca54c3Smrgelse 273917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 274017ca54c3Smrg$as_echo "no" >&6; } 274117ca54c3Smrgfi 274217ca54c3Smrg 274317ca54c3Smrg 274417ca54c3Smrg test -n "$AWK" && break 274517ca54c3Smrgdone 274617ca54c3Smrg 274717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 274817ca54c3Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 274917ca54c3Smrgset x ${MAKE-make} 275017ca54c3Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 275117ca54c3Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 275217ca54c3Smrg $as_echo_n "(cached) " >&6 275317ca54c3Smrgelse 275417ca54c3Smrg cat >conftest.make <<\_ACEOF 275517ca54c3SmrgSHELL = /bin/sh 275617ca54c3Smrgall: 275717ca54c3Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 275817ca54c3Smrg_ACEOF 275917ca54c3Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 276017ca54c3Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 276117ca54c3Smrg *@@@%%%=?*=@@@%%%*) 276217ca54c3Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 276317ca54c3Smrg *) 276417ca54c3Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 276517ca54c3Smrgesac 276617ca54c3Smrgrm -f conftest.make 276717ca54c3Smrgfi 276817ca54c3Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 276917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 277017ca54c3Smrg$as_echo "yes" >&6; } 277117ca54c3Smrg SET_MAKE= 277217ca54c3Smrgelse 277317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 277417ca54c3Smrg$as_echo "no" >&6; } 277517ca54c3Smrg SET_MAKE="MAKE=${MAKE-make}" 277617ca54c3Smrgfi 277717ca54c3Smrg 277817ca54c3Smrgrm -rf .tst 2>/dev/null 277917ca54c3Smrgmkdir .tst 2>/dev/null 278017ca54c3Smrgif test -d .tst; then 278117ca54c3Smrg am__leading_dot=. 278217ca54c3Smrgelse 278317ca54c3Smrg am__leading_dot=_ 278417ca54c3Smrgfi 278517ca54c3Smrgrmdir .tst 2>/dev/null 278617ca54c3Smrg 278717ca54c3Smrg# Check whether --enable-silent-rules was given. 278817ca54c3Smrgif test "${enable_silent_rules+set}" = set; then : 278917ca54c3Smrg enableval=$enable_silent_rules; 279017ca54c3Smrgfi 279117ca54c3Smrg 279217ca54c3Smrgcase $enable_silent_rules in # ((( 279317ca54c3Smrg yes) AM_DEFAULT_VERBOSITY=0;; 279417ca54c3Smrg no) AM_DEFAULT_VERBOSITY=1;; 279517ca54c3Smrg *) AM_DEFAULT_VERBOSITY=1;; 279617ca54c3Smrgesac 279717ca54c3Smrgam_make=${MAKE-make} 279817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 279917ca54c3Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 280017ca54c3Smrgif ${am_cv_make_support_nested_variables+:} false; then : 280117ca54c3Smrg $as_echo_n "(cached) " >&6 280217ca54c3Smrgelse 280317ca54c3Smrg if $as_echo 'TRUE=$(BAR$(V)) 280417ca54c3SmrgBAR0=false 280517ca54c3SmrgBAR1=true 280617ca54c3SmrgV=1 280717ca54c3Smrgam__doit: 280817ca54c3Smrg @$(TRUE) 280917ca54c3Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 281017ca54c3Smrg am_cv_make_support_nested_variables=yes 281117ca54c3Smrgelse 281217ca54c3Smrg am_cv_make_support_nested_variables=no 281317ca54c3Smrgfi 281417ca54c3Smrgfi 281517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 281617ca54c3Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 281717ca54c3Smrgif test $am_cv_make_support_nested_variables = yes; then 281817ca54c3Smrg AM_V='$(V)' 281917ca54c3Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 282017ca54c3Smrgelse 282117ca54c3Smrg AM_V=$AM_DEFAULT_VERBOSITY 282217ca54c3Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 282317ca54c3Smrgfi 282417ca54c3SmrgAM_BACKSLASH='\' 282517ca54c3Smrg 282617ca54c3Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 282717ca54c3Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 282817ca54c3Smrg # is not polluted with repeated "-I." 282917ca54c3Smrg am__isrc=' -I$(srcdir)' 283017ca54c3Smrg # test to see if srcdir already configured 283117ca54c3Smrg if test -f $srcdir/config.status; then 283217ca54c3Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 283317ca54c3Smrg fi 283417ca54c3Smrgfi 283517ca54c3Smrg 283617ca54c3Smrg# test whether we have cygpath 283717ca54c3Smrgif test -z "$CYGPATH_W"; then 283817ca54c3Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 283917ca54c3Smrg CYGPATH_W='cygpath -w' 284017ca54c3Smrg else 284117ca54c3Smrg CYGPATH_W=echo 284217ca54c3Smrg fi 284317ca54c3Smrgfi 284417ca54c3Smrg 284517ca54c3Smrg 284617ca54c3Smrg# Define the identity of the package. 284717ca54c3Smrg PACKAGE='xorgproto' 28484627b59cSmrg VERSION='2020.1' 284917ca54c3Smrg 285017ca54c3Smrg 285117ca54c3Smrgcat >>confdefs.h <<_ACEOF 285217ca54c3Smrg#define PACKAGE "$PACKAGE" 285317ca54c3Smrg_ACEOF 285417ca54c3Smrg 285517ca54c3Smrg 285617ca54c3Smrgcat >>confdefs.h <<_ACEOF 285717ca54c3Smrg#define VERSION "$VERSION" 285817ca54c3Smrg_ACEOF 285917ca54c3Smrg 286017ca54c3Smrg# Some tools Automake needs. 286117ca54c3Smrg 286217ca54c3SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 286317ca54c3Smrg 286417ca54c3Smrg 286517ca54c3SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 286617ca54c3Smrg 286717ca54c3Smrg 286817ca54c3SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 286917ca54c3Smrg 287017ca54c3Smrg 287117ca54c3SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 287217ca54c3Smrg 287317ca54c3Smrg 287417ca54c3SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 287517ca54c3Smrg 287617ca54c3Smrg# For better backward compatibility. To be removed once Automake 1.9.x 287717ca54c3Smrg# dies out for good. For more background, see: 2878ea1d6981Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2879ea1d6981Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 288017ca54c3Smrgmkdir_p='$(MKDIR_P)' 288117ca54c3Smrg 288217ca54c3Smrg# We need awk for the "check" target (and possibly the TAP driver). The 288317ca54c3Smrg# system "awk" is bad on some platforms. 288417ca54c3Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 288517ca54c3Smrg# in the wild :-( We should find a proper way to deprecate it ... 288617ca54c3SmrgAMTAR='$${TAR-tar}' 288717ca54c3Smrg 288817ca54c3Smrg 288917ca54c3Smrg# We'll loop over all known methods to create a tar archive until one works. 289017ca54c3Smrg_am_tools='gnutar pax cpio none' 289117ca54c3Smrg 289217ca54c3Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 289317ca54c3Smrg 289417ca54c3Smrg 289517ca54c3Smrg 289617ca54c3Smrg 289717ca54c3Smrg 289817ca54c3Smrg 289917ca54c3Smrg# POSIX will say in a future version that running "rm -f" with no argument 290017ca54c3Smrg# is OK; and we want to be able to make that assumption in our Makefile 290117ca54c3Smrg# recipes. So use an aggressive probe to check that the usage we want is 290217ca54c3Smrg# actually supported "in the wild" to an acceptable degree. 290317ca54c3Smrg# See automake bug#10828. 290417ca54c3Smrg# To make any issue more visible, cause the running configure to be aborted 290517ca54c3Smrg# by default if the 'rm' program in use doesn't match our expectations; the 290617ca54c3Smrg# user can still override this though. 290717ca54c3Smrgif rm -f && rm -fr && rm -rf; then : OK; else 290817ca54c3Smrg cat >&2 <<'END' 290917ca54c3SmrgOops! 291017ca54c3Smrg 291117ca54c3SmrgYour 'rm' program seems unable to run without file operands specified 291217ca54c3Smrgon the command line, even when the '-f' option is present. This is contrary 291317ca54c3Smrgto the behaviour of most rm programs out there, and not conforming with 291417ca54c3Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 291517ca54c3Smrg 291617ca54c3SmrgPlease tell bug-automake@gnu.org about your system, including the value 291717ca54c3Smrgof your $PATH and any error possibly output before this message. This 291817ca54c3Smrgcan help us improve future automake versions. 291917ca54c3Smrg 292017ca54c3SmrgEND 292117ca54c3Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 292217ca54c3Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 292317ca54c3Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 292417ca54c3Smrg echo >&2 292517ca54c3Smrg else 292617ca54c3Smrg cat >&2 <<'END' 292717ca54c3SmrgAborting the configuration process, to ensure you take notice of the issue. 292817ca54c3Smrg 292917ca54c3SmrgYou can download and install GNU coreutils to get an 'rm' implementation 2930ea1d6981Smrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 293117ca54c3Smrg 293217ca54c3SmrgIf you want to complete the configuration process using your problematic 293317ca54c3Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 293417ca54c3Smrgto "yes", and re-run configure. 293517ca54c3Smrg 293617ca54c3SmrgEND 293717ca54c3Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 293817ca54c3Smrg fi 293917ca54c3Smrgfi 294017ca54c3Smrg 294117ca54c3Smrg 294217ca54c3Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS 294317ca54c3Smrg 294417ca54c3Smrg 294517ca54c3Smrg 294617ca54c3Smrg 294717ca54c3Smrg 294817ca54c3Smrg 294917ca54c3Smrg 295017ca54c3Smrg 295117ca54c3Smrg 295217ca54c3Smrg 295317ca54c3Smrg 295417ca54c3SmrgDEPDIR="${am__leading_dot}deps" 295517ca54c3Smrg 295617ca54c3Smrgac_config_commands="$ac_config_commands depfiles" 295717ca54c3Smrg 2958ea1d6981Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 2959ea1d6981Smrg$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 2960ea1d6981Smrgcat > confinc.mk << 'END' 296117ca54c3Smrgam__doit: 2962ea1d6981Smrg @echo this is the am__doit target >confinc.out 296317ca54c3Smrg.PHONY: am__doit 296417ca54c3SmrgEND 296517ca54c3Smrgam__include="#" 296617ca54c3Smrgam__quote= 2967ea1d6981Smrg# BSD make does it like this. 2968ea1d6981Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD 2969ea1d6981Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 2970ea1d6981Smrgecho 'include confinc.mk # ignored' > confmf.GNU 2971ea1d6981Smrg_am_result=no 2972ea1d6981Smrgfor s in GNU BSD; do 2973ea1d6981Smrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 2974ea1d6981Smrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 2975ea1d6981Smrg ac_status=$? 2976ea1d6981Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 2977ea1d6981Smrg (exit $ac_status); } 2978ea1d6981Smrg case $?:`cat confinc.out 2>/dev/null` in #( 2979ea1d6981Smrg '0:this is the am__doit target') : 2980ea1d6981Smrg case $s in #( 2981ea1d6981Smrg BSD) : 2982ea1d6981Smrg am__include='.include' am__quote='"' ;; #( 2983ea1d6981Smrg *) : 2984ea1d6981Smrg am__include='include' am__quote='' ;; 2985ea1d6981Smrgesac ;; #( 2986ea1d6981Smrg *) : 298717ca54c3Smrg ;; 2988ea1d6981Smrgesac 2989ea1d6981Smrg if test "$am__include" != "#"; then 2990ea1d6981Smrg _am_result="yes ($s style)" 2991ea1d6981Smrg break 2992ea1d6981Smrg fi 2993ea1d6981Smrgdone 2994ea1d6981Smrgrm -f confinc.* confmf.* 2995ea1d6981Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 2996ea1d6981Smrg$as_echo "${_am_result}" >&6; } 299717ca54c3Smrg 299817ca54c3Smrg# Check whether --enable-dependency-tracking was given. 299917ca54c3Smrgif test "${enable_dependency_tracking+set}" = set; then : 300017ca54c3Smrg enableval=$enable_dependency_tracking; 300117ca54c3Smrgfi 300217ca54c3Smrg 300317ca54c3Smrgif test "x$enable_dependency_tracking" != xno; then 300417ca54c3Smrg am_depcomp="$ac_aux_dir/depcomp" 300517ca54c3Smrg AMDEPBACKSLASH='\' 300617ca54c3Smrg am__nodep='_no' 300717ca54c3Smrgfi 300817ca54c3Smrg if test "x$enable_dependency_tracking" != xno; then 300917ca54c3Smrg AMDEP_TRUE= 301017ca54c3Smrg AMDEP_FALSE='#' 301117ca54c3Smrgelse 301217ca54c3Smrg AMDEP_TRUE='#' 301317ca54c3Smrg AMDEP_FALSE= 301417ca54c3Smrgfi 301517ca54c3Smrg 301617ca54c3Smrg 301717ca54c3Smrgac_ext=c 301817ca54c3Smrgac_cpp='$CPP $CPPFLAGS' 301917ca54c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 302017ca54c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 302117ca54c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 302217ca54c3Smrgif test -n "$ac_tool_prefix"; then 302317ca54c3Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 302417ca54c3Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 302517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 302617ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 302717ca54c3Smrgif ${ac_cv_prog_CC+:} false; then : 302817ca54c3Smrg $as_echo_n "(cached) " >&6 302917ca54c3Smrgelse 303017ca54c3Smrg if test -n "$CC"; then 303117ca54c3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 303217ca54c3Smrgelse 303317ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 303417ca54c3Smrgfor as_dir in $PATH 303517ca54c3Smrgdo 303617ca54c3Smrg IFS=$as_save_IFS 303717ca54c3Smrg test -z "$as_dir" && as_dir=. 303817ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 303917ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 304017ca54c3Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 304117ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 304217ca54c3Smrg break 2 304317ca54c3Smrg fi 304417ca54c3Smrgdone 304517ca54c3Smrg done 304617ca54c3SmrgIFS=$as_save_IFS 304717ca54c3Smrg 304817ca54c3Smrgfi 304917ca54c3Smrgfi 305017ca54c3SmrgCC=$ac_cv_prog_CC 305117ca54c3Smrgif test -n "$CC"; then 305217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 305317ca54c3Smrg$as_echo "$CC" >&6; } 305417ca54c3Smrgelse 305517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 305617ca54c3Smrg$as_echo "no" >&6; } 305717ca54c3Smrgfi 305817ca54c3Smrg 305917ca54c3Smrg 306017ca54c3Smrgfi 306117ca54c3Smrgif test -z "$ac_cv_prog_CC"; then 306217ca54c3Smrg ac_ct_CC=$CC 306317ca54c3Smrg # Extract the first word of "gcc", so it can be a program name with args. 306417ca54c3Smrgset dummy gcc; ac_word=$2 306517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 306617ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 306717ca54c3Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 306817ca54c3Smrg $as_echo_n "(cached) " >&6 306917ca54c3Smrgelse 307017ca54c3Smrg if test -n "$ac_ct_CC"; then 307117ca54c3Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 307217ca54c3Smrgelse 307317ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 307417ca54c3Smrgfor as_dir in $PATH 307517ca54c3Smrgdo 307617ca54c3Smrg IFS=$as_save_IFS 307717ca54c3Smrg test -z "$as_dir" && as_dir=. 307817ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 307917ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 308017ca54c3Smrg ac_cv_prog_ac_ct_CC="gcc" 308117ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 308217ca54c3Smrg break 2 308317ca54c3Smrg fi 308417ca54c3Smrgdone 308517ca54c3Smrg done 308617ca54c3SmrgIFS=$as_save_IFS 308717ca54c3Smrg 308817ca54c3Smrgfi 308917ca54c3Smrgfi 309017ca54c3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 309117ca54c3Smrgif test -n "$ac_ct_CC"; then 309217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 309317ca54c3Smrg$as_echo "$ac_ct_CC" >&6; } 309417ca54c3Smrgelse 309517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 309617ca54c3Smrg$as_echo "no" >&6; } 309717ca54c3Smrgfi 309817ca54c3Smrg 309917ca54c3Smrg if test "x$ac_ct_CC" = x; then 310017ca54c3Smrg CC="" 310117ca54c3Smrg else 310217ca54c3Smrg case $cross_compiling:$ac_tool_warned in 310317ca54c3Smrgyes:) 310417ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 310517ca54c3Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 310617ca54c3Smrgac_tool_warned=yes ;; 310717ca54c3Smrgesac 310817ca54c3Smrg CC=$ac_ct_CC 310917ca54c3Smrg fi 311017ca54c3Smrgelse 311117ca54c3Smrg CC="$ac_cv_prog_CC" 311217ca54c3Smrgfi 311317ca54c3Smrg 311417ca54c3Smrgif test -z "$CC"; then 311517ca54c3Smrg if test -n "$ac_tool_prefix"; then 311617ca54c3Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 311717ca54c3Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 311817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 311917ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 312017ca54c3Smrgif ${ac_cv_prog_CC+:} false; then : 312117ca54c3Smrg $as_echo_n "(cached) " >&6 312217ca54c3Smrgelse 312317ca54c3Smrg if test -n "$CC"; then 312417ca54c3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 312517ca54c3Smrgelse 312617ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 312717ca54c3Smrgfor as_dir in $PATH 312817ca54c3Smrgdo 312917ca54c3Smrg IFS=$as_save_IFS 313017ca54c3Smrg test -z "$as_dir" && as_dir=. 313117ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 313217ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 313317ca54c3Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 313417ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 313517ca54c3Smrg break 2 313617ca54c3Smrg fi 313717ca54c3Smrgdone 313817ca54c3Smrg done 313917ca54c3SmrgIFS=$as_save_IFS 314017ca54c3Smrg 314117ca54c3Smrgfi 314217ca54c3Smrgfi 314317ca54c3SmrgCC=$ac_cv_prog_CC 314417ca54c3Smrgif test -n "$CC"; then 314517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 314617ca54c3Smrg$as_echo "$CC" >&6; } 314717ca54c3Smrgelse 314817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 314917ca54c3Smrg$as_echo "no" >&6; } 315017ca54c3Smrgfi 315117ca54c3Smrg 315217ca54c3Smrg 315317ca54c3Smrg fi 315417ca54c3Smrgfi 315517ca54c3Smrgif test -z "$CC"; then 315617ca54c3Smrg # Extract the first word of "cc", so it can be a program name with args. 315717ca54c3Smrgset dummy cc; ac_word=$2 315817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 315917ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 316017ca54c3Smrgif ${ac_cv_prog_CC+:} false; then : 316117ca54c3Smrg $as_echo_n "(cached) " >&6 316217ca54c3Smrgelse 316317ca54c3Smrg if test -n "$CC"; then 316417ca54c3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 316517ca54c3Smrgelse 316617ca54c3Smrg ac_prog_rejected=no 316717ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 316817ca54c3Smrgfor as_dir in $PATH 316917ca54c3Smrgdo 317017ca54c3Smrg IFS=$as_save_IFS 317117ca54c3Smrg test -z "$as_dir" && as_dir=. 317217ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 317317ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 317417ca54c3Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 317517ca54c3Smrg ac_prog_rejected=yes 317617ca54c3Smrg continue 317717ca54c3Smrg fi 317817ca54c3Smrg ac_cv_prog_CC="cc" 317917ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 318017ca54c3Smrg break 2 318117ca54c3Smrg fi 318217ca54c3Smrgdone 318317ca54c3Smrg done 318417ca54c3SmrgIFS=$as_save_IFS 318517ca54c3Smrg 318617ca54c3Smrgif test $ac_prog_rejected = yes; then 318717ca54c3Smrg # We found a bogon in the path, so make sure we never use it. 318817ca54c3Smrg set dummy $ac_cv_prog_CC 318917ca54c3Smrg shift 319017ca54c3Smrg if test $# != 0; then 319117ca54c3Smrg # We chose a different compiler from the bogus one. 319217ca54c3Smrg # However, it has the same basename, so the bogon will be chosen 319317ca54c3Smrg # first if we set CC to just the basename; use the full file name. 319417ca54c3Smrg shift 319517ca54c3Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 319617ca54c3Smrg fi 319717ca54c3Smrgfi 319817ca54c3Smrgfi 319917ca54c3Smrgfi 320017ca54c3SmrgCC=$ac_cv_prog_CC 320117ca54c3Smrgif test -n "$CC"; then 320217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 320317ca54c3Smrg$as_echo "$CC" >&6; } 320417ca54c3Smrgelse 320517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 320617ca54c3Smrg$as_echo "no" >&6; } 320717ca54c3Smrgfi 320817ca54c3Smrg 320917ca54c3Smrg 321017ca54c3Smrgfi 321117ca54c3Smrgif test -z "$CC"; then 321217ca54c3Smrg if test -n "$ac_tool_prefix"; then 321317ca54c3Smrg for ac_prog in cl.exe 321417ca54c3Smrg do 321517ca54c3Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 321617ca54c3Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 321717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 321817ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 321917ca54c3Smrgif ${ac_cv_prog_CC+:} false; then : 322017ca54c3Smrg $as_echo_n "(cached) " >&6 322117ca54c3Smrgelse 322217ca54c3Smrg if test -n "$CC"; then 322317ca54c3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 322417ca54c3Smrgelse 322517ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 322617ca54c3Smrgfor as_dir in $PATH 322717ca54c3Smrgdo 322817ca54c3Smrg IFS=$as_save_IFS 322917ca54c3Smrg test -z "$as_dir" && as_dir=. 323017ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 323117ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 323217ca54c3Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 323317ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 323417ca54c3Smrg break 2 323517ca54c3Smrg fi 323617ca54c3Smrgdone 323717ca54c3Smrg done 323817ca54c3SmrgIFS=$as_save_IFS 323917ca54c3Smrg 324017ca54c3Smrgfi 324117ca54c3Smrgfi 324217ca54c3SmrgCC=$ac_cv_prog_CC 324317ca54c3Smrgif test -n "$CC"; then 324417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 324517ca54c3Smrg$as_echo "$CC" >&6; } 324617ca54c3Smrgelse 324717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 324817ca54c3Smrg$as_echo "no" >&6; } 324917ca54c3Smrgfi 325017ca54c3Smrg 325117ca54c3Smrg 325217ca54c3Smrg test -n "$CC" && break 325317ca54c3Smrg done 325417ca54c3Smrgfi 325517ca54c3Smrgif test -z "$CC"; then 325617ca54c3Smrg ac_ct_CC=$CC 325717ca54c3Smrg for ac_prog in cl.exe 325817ca54c3Smrgdo 325917ca54c3Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 326017ca54c3Smrgset dummy $ac_prog; ac_word=$2 326117ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 326217ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 326317ca54c3Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 326417ca54c3Smrg $as_echo_n "(cached) " >&6 326517ca54c3Smrgelse 326617ca54c3Smrg if test -n "$ac_ct_CC"; then 326717ca54c3Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 326817ca54c3Smrgelse 326917ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 327017ca54c3Smrgfor as_dir in $PATH 327117ca54c3Smrgdo 327217ca54c3Smrg IFS=$as_save_IFS 327317ca54c3Smrg test -z "$as_dir" && as_dir=. 327417ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 327517ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 327617ca54c3Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 327717ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 327817ca54c3Smrg break 2 327917ca54c3Smrg fi 328017ca54c3Smrgdone 328117ca54c3Smrg done 328217ca54c3SmrgIFS=$as_save_IFS 328317ca54c3Smrg 328417ca54c3Smrgfi 328517ca54c3Smrgfi 328617ca54c3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 328717ca54c3Smrgif test -n "$ac_ct_CC"; then 328817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 328917ca54c3Smrg$as_echo "$ac_ct_CC" >&6; } 329017ca54c3Smrgelse 329117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 329217ca54c3Smrg$as_echo "no" >&6; } 329317ca54c3Smrgfi 329417ca54c3Smrg 329517ca54c3Smrg 329617ca54c3Smrg test -n "$ac_ct_CC" && break 329717ca54c3Smrgdone 329817ca54c3Smrg 329917ca54c3Smrg if test "x$ac_ct_CC" = x; then 330017ca54c3Smrg CC="" 330117ca54c3Smrg else 330217ca54c3Smrg case $cross_compiling:$ac_tool_warned in 330317ca54c3Smrgyes:) 330417ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 330517ca54c3Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 330617ca54c3Smrgac_tool_warned=yes ;; 330717ca54c3Smrgesac 330817ca54c3Smrg CC=$ac_ct_CC 330917ca54c3Smrg fi 331017ca54c3Smrgfi 331117ca54c3Smrg 331217ca54c3Smrgfi 331317ca54c3Smrg 331417ca54c3Smrg 331517ca54c3Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 331617ca54c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 331717ca54c3Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 331817ca54c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 331917ca54c3Smrg 332017ca54c3Smrg# Provide some information about the compiler. 332117ca54c3Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 332217ca54c3Smrgset X $ac_compile 332317ca54c3Smrgac_compiler=$2 332417ca54c3Smrgfor ac_option in --version -v -V -qversion; do 332517ca54c3Smrg { { ac_try="$ac_compiler $ac_option >&5" 332617ca54c3Smrgcase "(($ac_try" in 332717ca54c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 332817ca54c3Smrg *) ac_try_echo=$ac_try;; 332917ca54c3Smrgesac 333017ca54c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 333117ca54c3Smrg$as_echo "$ac_try_echo"; } >&5 333217ca54c3Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 333317ca54c3Smrg ac_status=$? 333417ca54c3Smrg if test -s conftest.err; then 333517ca54c3Smrg sed '10a\ 333617ca54c3Smrg... rest of stderr output deleted ... 333717ca54c3Smrg 10q' conftest.err >conftest.er1 333817ca54c3Smrg cat conftest.er1 >&5 333917ca54c3Smrg fi 334017ca54c3Smrg rm -f conftest.er1 conftest.err 334117ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 334217ca54c3Smrg test $ac_status = 0; } 334317ca54c3Smrgdone 334417ca54c3Smrg 334517ca54c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 334617ca54c3Smrg/* end confdefs.h. */ 334717ca54c3Smrg 334817ca54c3Smrgint 334917ca54c3Smrgmain () 335017ca54c3Smrg{ 335117ca54c3Smrg 335217ca54c3Smrg ; 335317ca54c3Smrg return 0; 335417ca54c3Smrg} 335517ca54c3Smrg_ACEOF 335617ca54c3Smrgac_clean_files_save=$ac_clean_files 335717ca54c3Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 335817ca54c3Smrg# Try to create an executable without -o first, disregard a.out. 335917ca54c3Smrg# It will help us diagnose broken compilers, and finding out an intuition 336017ca54c3Smrg# of exeext. 336117ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 336217ca54c3Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 336317ca54c3Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 336417ca54c3Smrg 336517ca54c3Smrg# The possible output files: 336617ca54c3Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 336717ca54c3Smrg 336817ca54c3Smrgac_rmfiles= 336917ca54c3Smrgfor ac_file in $ac_files 337017ca54c3Smrgdo 337117ca54c3Smrg case $ac_file in 337217ca54c3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 337317ca54c3Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 337417ca54c3Smrg esac 337517ca54c3Smrgdone 337617ca54c3Smrgrm -f $ac_rmfiles 337717ca54c3Smrg 337817ca54c3Smrgif { { ac_try="$ac_link_default" 337917ca54c3Smrgcase "(($ac_try" in 338017ca54c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 338117ca54c3Smrg *) ac_try_echo=$ac_try;; 338217ca54c3Smrgesac 338317ca54c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 338417ca54c3Smrg$as_echo "$ac_try_echo"; } >&5 338517ca54c3Smrg (eval "$ac_link_default") 2>&5 338617ca54c3Smrg ac_status=$? 338717ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 338817ca54c3Smrg test $ac_status = 0; }; then : 338917ca54c3Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 339017ca54c3Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 339117ca54c3Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 339217ca54c3Smrg# so that the user can short-circuit this test for compilers unknown to 339317ca54c3Smrg# Autoconf. 339417ca54c3Smrgfor ac_file in $ac_files '' 339517ca54c3Smrgdo 339617ca54c3Smrg test -f "$ac_file" || continue 339717ca54c3Smrg case $ac_file in 339817ca54c3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 339917ca54c3Smrg ;; 340017ca54c3Smrg [ab].out ) 340117ca54c3Smrg # We found the default executable, but exeext='' is most 340217ca54c3Smrg # certainly right. 340317ca54c3Smrg break;; 340417ca54c3Smrg *.* ) 340517ca54c3Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 340617ca54c3Smrg then :; else 340717ca54c3Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 340817ca54c3Smrg fi 340917ca54c3Smrg # We set ac_cv_exeext here because the later test for it is not 341017ca54c3Smrg # safe: cross compilers may not add the suffix if given an `-o' 341117ca54c3Smrg # argument, so we may need to know it at that point already. 341217ca54c3Smrg # Even if this section looks crufty: it has the advantage of 341317ca54c3Smrg # actually working. 341417ca54c3Smrg break;; 341517ca54c3Smrg * ) 341617ca54c3Smrg break;; 341717ca54c3Smrg esac 341817ca54c3Smrgdone 341917ca54c3Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 342017ca54c3Smrg 342117ca54c3Smrgelse 342217ca54c3Smrg ac_file='' 342317ca54c3Smrgfi 342417ca54c3Smrgif test -z "$ac_file"; then : 342517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 342617ca54c3Smrg$as_echo "no" >&6; } 342717ca54c3Smrg$as_echo "$as_me: failed program was:" >&5 342817ca54c3Smrgsed 's/^/| /' conftest.$ac_ext >&5 342917ca54c3Smrg 343017ca54c3Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 343117ca54c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 343217ca54c3Smrgas_fn_error 77 "C compiler cannot create executables 343317ca54c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 343417ca54c3Smrgelse 343517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 343617ca54c3Smrg$as_echo "yes" >&6; } 343717ca54c3Smrgfi 343817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 343917ca54c3Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 344017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 344117ca54c3Smrg$as_echo "$ac_file" >&6; } 344217ca54c3Smrgac_exeext=$ac_cv_exeext 344317ca54c3Smrg 344417ca54c3Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 344517ca54c3Smrgac_clean_files=$ac_clean_files_save 344617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 344717ca54c3Smrg$as_echo_n "checking for suffix of executables... " >&6; } 344817ca54c3Smrgif { { ac_try="$ac_link" 344917ca54c3Smrgcase "(($ac_try" in 345017ca54c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 345117ca54c3Smrg *) ac_try_echo=$ac_try;; 345217ca54c3Smrgesac 345317ca54c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 345417ca54c3Smrg$as_echo "$ac_try_echo"; } >&5 345517ca54c3Smrg (eval "$ac_link") 2>&5 345617ca54c3Smrg ac_status=$? 345717ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 345817ca54c3Smrg test $ac_status = 0; }; then : 345917ca54c3Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 346017ca54c3Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 346117ca54c3Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 346217ca54c3Smrg# `rm'. 346317ca54c3Smrgfor ac_file in conftest.exe conftest conftest.*; do 346417ca54c3Smrg test -f "$ac_file" || continue 346517ca54c3Smrg case $ac_file in 346617ca54c3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 346717ca54c3Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 346817ca54c3Smrg break;; 346917ca54c3Smrg * ) break;; 347017ca54c3Smrg esac 347117ca54c3Smrgdone 347217ca54c3Smrgelse 347317ca54c3Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 347417ca54c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 347517ca54c3Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 347617ca54c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 347717ca54c3Smrgfi 347817ca54c3Smrgrm -f conftest conftest$ac_cv_exeext 347917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 348017ca54c3Smrg$as_echo "$ac_cv_exeext" >&6; } 348117ca54c3Smrg 348217ca54c3Smrgrm -f conftest.$ac_ext 348317ca54c3SmrgEXEEXT=$ac_cv_exeext 348417ca54c3Smrgac_exeext=$EXEEXT 348517ca54c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 348617ca54c3Smrg/* end confdefs.h. */ 348717ca54c3Smrg#include <stdio.h> 348817ca54c3Smrgint 348917ca54c3Smrgmain () 349017ca54c3Smrg{ 349117ca54c3SmrgFILE *f = fopen ("conftest.out", "w"); 349217ca54c3Smrg return ferror (f) || fclose (f) != 0; 349317ca54c3Smrg 349417ca54c3Smrg ; 349517ca54c3Smrg return 0; 349617ca54c3Smrg} 349717ca54c3Smrg_ACEOF 349817ca54c3Smrgac_clean_files="$ac_clean_files conftest.out" 349917ca54c3Smrg# Check that the compiler produces executables we can run. If not, either 350017ca54c3Smrg# the compiler is broken, or we cross compile. 350117ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 350217ca54c3Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 350317ca54c3Smrgif test "$cross_compiling" != yes; then 350417ca54c3Smrg { { ac_try="$ac_link" 350517ca54c3Smrgcase "(($ac_try" in 350617ca54c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 350717ca54c3Smrg *) ac_try_echo=$ac_try;; 350817ca54c3Smrgesac 350917ca54c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 351017ca54c3Smrg$as_echo "$ac_try_echo"; } >&5 351117ca54c3Smrg (eval "$ac_link") 2>&5 351217ca54c3Smrg ac_status=$? 351317ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 351417ca54c3Smrg test $ac_status = 0; } 351517ca54c3Smrg if { ac_try='./conftest$ac_cv_exeext' 351617ca54c3Smrg { { case "(($ac_try" in 351717ca54c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 351817ca54c3Smrg *) ac_try_echo=$ac_try;; 351917ca54c3Smrgesac 352017ca54c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 352117ca54c3Smrg$as_echo "$ac_try_echo"; } >&5 352217ca54c3Smrg (eval "$ac_try") 2>&5 352317ca54c3Smrg ac_status=$? 352417ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 352517ca54c3Smrg test $ac_status = 0; }; }; then 352617ca54c3Smrg cross_compiling=no 352717ca54c3Smrg else 352817ca54c3Smrg if test "$cross_compiling" = maybe; then 352917ca54c3Smrg cross_compiling=yes 353017ca54c3Smrg else 353117ca54c3Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 353217ca54c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 353317ca54c3Smrgas_fn_error $? "cannot run C compiled programs. 353417ca54c3SmrgIf you meant to cross compile, use \`--host'. 353517ca54c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 353617ca54c3Smrg fi 353717ca54c3Smrg fi 353817ca54c3Smrgfi 353917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 354017ca54c3Smrg$as_echo "$cross_compiling" >&6; } 354117ca54c3Smrg 354217ca54c3Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 354317ca54c3Smrgac_clean_files=$ac_clean_files_save 354417ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 354517ca54c3Smrg$as_echo_n "checking for suffix of object files... " >&6; } 354617ca54c3Smrgif ${ac_cv_objext+:} false; then : 354717ca54c3Smrg $as_echo_n "(cached) " >&6 354817ca54c3Smrgelse 354917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 355017ca54c3Smrg/* end confdefs.h. */ 355117ca54c3Smrg 355217ca54c3Smrgint 355317ca54c3Smrgmain () 355417ca54c3Smrg{ 355517ca54c3Smrg 355617ca54c3Smrg ; 355717ca54c3Smrg return 0; 355817ca54c3Smrg} 355917ca54c3Smrg_ACEOF 356017ca54c3Smrgrm -f conftest.o conftest.obj 356117ca54c3Smrgif { { ac_try="$ac_compile" 356217ca54c3Smrgcase "(($ac_try" in 356317ca54c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 356417ca54c3Smrg *) ac_try_echo=$ac_try;; 356517ca54c3Smrgesac 356617ca54c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 356717ca54c3Smrg$as_echo "$ac_try_echo"; } >&5 356817ca54c3Smrg (eval "$ac_compile") 2>&5 356917ca54c3Smrg ac_status=$? 357017ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 357117ca54c3Smrg test $ac_status = 0; }; then : 357217ca54c3Smrg for ac_file in conftest.o conftest.obj conftest.*; do 357317ca54c3Smrg test -f "$ac_file" || continue; 357417ca54c3Smrg case $ac_file in 357517ca54c3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 357617ca54c3Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 357717ca54c3Smrg break;; 357817ca54c3Smrg esac 357917ca54c3Smrgdone 358017ca54c3Smrgelse 358117ca54c3Smrg $as_echo "$as_me: failed program was:" >&5 358217ca54c3Smrgsed 's/^/| /' conftest.$ac_ext >&5 358317ca54c3Smrg 358417ca54c3Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 358517ca54c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 358617ca54c3Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 358717ca54c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 358817ca54c3Smrgfi 358917ca54c3Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 359017ca54c3Smrgfi 359117ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 359217ca54c3Smrg$as_echo "$ac_cv_objext" >&6; } 359317ca54c3SmrgOBJEXT=$ac_cv_objext 359417ca54c3Smrgac_objext=$OBJEXT 359517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 359617ca54c3Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 359717ca54c3Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 359817ca54c3Smrg $as_echo_n "(cached) " >&6 359917ca54c3Smrgelse 360017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 360117ca54c3Smrg/* end confdefs.h. */ 360217ca54c3Smrg 360317ca54c3Smrgint 360417ca54c3Smrgmain () 360517ca54c3Smrg{ 360617ca54c3Smrg#ifndef __GNUC__ 360717ca54c3Smrg choke me 360817ca54c3Smrg#endif 360917ca54c3Smrg 361017ca54c3Smrg ; 361117ca54c3Smrg return 0; 361217ca54c3Smrg} 361317ca54c3Smrg_ACEOF 361417ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 361517ca54c3Smrg ac_compiler_gnu=yes 361617ca54c3Smrgelse 361717ca54c3Smrg ac_compiler_gnu=no 361817ca54c3Smrgfi 361917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 362017ca54c3Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 362117ca54c3Smrg 362217ca54c3Smrgfi 362317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 362417ca54c3Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 362517ca54c3Smrgif test $ac_compiler_gnu = yes; then 362617ca54c3Smrg GCC=yes 362717ca54c3Smrgelse 362817ca54c3Smrg GCC= 362917ca54c3Smrgfi 363017ca54c3Smrgac_test_CFLAGS=${CFLAGS+set} 363117ca54c3Smrgac_save_CFLAGS=$CFLAGS 363217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 363317ca54c3Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 363417ca54c3Smrgif ${ac_cv_prog_cc_g+:} false; then : 363517ca54c3Smrg $as_echo_n "(cached) " >&6 363617ca54c3Smrgelse 363717ca54c3Smrg ac_save_c_werror_flag=$ac_c_werror_flag 363817ca54c3Smrg ac_c_werror_flag=yes 363917ca54c3Smrg ac_cv_prog_cc_g=no 364017ca54c3Smrg CFLAGS="-g" 364117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 364217ca54c3Smrg/* end confdefs.h. */ 364317ca54c3Smrg 364417ca54c3Smrgint 364517ca54c3Smrgmain () 364617ca54c3Smrg{ 364717ca54c3Smrg 364817ca54c3Smrg ; 364917ca54c3Smrg return 0; 365017ca54c3Smrg} 365117ca54c3Smrg_ACEOF 365217ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 365317ca54c3Smrg ac_cv_prog_cc_g=yes 365417ca54c3Smrgelse 365517ca54c3Smrg CFLAGS="" 365617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 365717ca54c3Smrg/* end confdefs.h. */ 365817ca54c3Smrg 365917ca54c3Smrgint 366017ca54c3Smrgmain () 366117ca54c3Smrg{ 366217ca54c3Smrg 366317ca54c3Smrg ; 366417ca54c3Smrg return 0; 366517ca54c3Smrg} 366617ca54c3Smrg_ACEOF 366717ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 366817ca54c3Smrg 366917ca54c3Smrgelse 367017ca54c3Smrg ac_c_werror_flag=$ac_save_c_werror_flag 367117ca54c3Smrg CFLAGS="-g" 367217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 367317ca54c3Smrg/* end confdefs.h. */ 367417ca54c3Smrg 367517ca54c3Smrgint 367617ca54c3Smrgmain () 367717ca54c3Smrg{ 367817ca54c3Smrg 367917ca54c3Smrg ; 368017ca54c3Smrg return 0; 368117ca54c3Smrg} 368217ca54c3Smrg_ACEOF 368317ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 368417ca54c3Smrg ac_cv_prog_cc_g=yes 368517ca54c3Smrgfi 368617ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 368717ca54c3Smrgfi 368817ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 368917ca54c3Smrgfi 369017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 369117ca54c3Smrg ac_c_werror_flag=$ac_save_c_werror_flag 369217ca54c3Smrgfi 369317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 369417ca54c3Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 369517ca54c3Smrgif test "$ac_test_CFLAGS" = set; then 369617ca54c3Smrg CFLAGS=$ac_save_CFLAGS 369717ca54c3Smrgelif test $ac_cv_prog_cc_g = yes; then 369817ca54c3Smrg if test "$GCC" = yes; then 369917ca54c3Smrg CFLAGS="-g -O2" 370017ca54c3Smrg else 370117ca54c3Smrg CFLAGS="-g" 370217ca54c3Smrg fi 370317ca54c3Smrgelse 370417ca54c3Smrg if test "$GCC" = yes; then 370517ca54c3Smrg CFLAGS="-O2" 370617ca54c3Smrg else 370717ca54c3Smrg CFLAGS= 370817ca54c3Smrg fi 370917ca54c3Smrgfi 371017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 371117ca54c3Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 371217ca54c3Smrgif ${ac_cv_prog_cc_c89+:} false; then : 371317ca54c3Smrg $as_echo_n "(cached) " >&6 371417ca54c3Smrgelse 371517ca54c3Smrg ac_cv_prog_cc_c89=no 371617ca54c3Smrgac_save_CC=$CC 371717ca54c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 371817ca54c3Smrg/* end confdefs.h. */ 371917ca54c3Smrg#include <stdarg.h> 372017ca54c3Smrg#include <stdio.h> 372117ca54c3Smrgstruct stat; 372217ca54c3Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 372317ca54c3Smrgstruct buf { int x; }; 372417ca54c3SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 372517ca54c3Smrgstatic char *e (p, i) 372617ca54c3Smrg char **p; 372717ca54c3Smrg int i; 372817ca54c3Smrg{ 372917ca54c3Smrg return p[i]; 373017ca54c3Smrg} 373117ca54c3Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 373217ca54c3Smrg{ 373317ca54c3Smrg char *s; 373417ca54c3Smrg va_list v; 373517ca54c3Smrg va_start (v,p); 373617ca54c3Smrg s = g (p, va_arg (v,int)); 373717ca54c3Smrg va_end (v); 373817ca54c3Smrg return s; 373917ca54c3Smrg} 374017ca54c3Smrg 374117ca54c3Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 374217ca54c3Smrg function prototypes and stuff, but not '\xHH' hex character constants. 374317ca54c3Smrg These don't provoke an error unfortunately, instead are silently treated 374417ca54c3Smrg as 'x'. The following induces an error, until -std is added to get 374517ca54c3Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 374617ca54c3Smrg array size at least. It's necessary to write '\x00'==0 to get something 374717ca54c3Smrg that's true only with -std. */ 374817ca54c3Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 374917ca54c3Smrg 375017ca54c3Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 375117ca54c3Smrg inside strings and character constants. */ 375217ca54c3Smrg#define FOO(x) 'x' 375317ca54c3Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 375417ca54c3Smrg 375517ca54c3Smrgint test (int i, double x); 375617ca54c3Smrgstruct s1 {int (*f) (int a);}; 375717ca54c3Smrgstruct s2 {int (*f) (double a);}; 375817ca54c3Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 375917ca54c3Smrgint argc; 376017ca54c3Smrgchar **argv; 376117ca54c3Smrgint 376217ca54c3Smrgmain () 376317ca54c3Smrg{ 376417ca54c3Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 376517ca54c3Smrg ; 376617ca54c3Smrg return 0; 376717ca54c3Smrg} 376817ca54c3Smrg_ACEOF 376917ca54c3Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 377017ca54c3Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 377117ca54c3Smrgdo 377217ca54c3Smrg CC="$ac_save_CC $ac_arg" 377317ca54c3Smrg if ac_fn_c_try_compile "$LINENO"; then : 377417ca54c3Smrg ac_cv_prog_cc_c89=$ac_arg 377517ca54c3Smrgfi 377617ca54c3Smrgrm -f core conftest.err conftest.$ac_objext 377717ca54c3Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 377817ca54c3Smrgdone 377917ca54c3Smrgrm -f conftest.$ac_ext 378017ca54c3SmrgCC=$ac_save_CC 378117ca54c3Smrg 378217ca54c3Smrgfi 378317ca54c3Smrg# AC_CACHE_VAL 378417ca54c3Smrgcase "x$ac_cv_prog_cc_c89" in 378517ca54c3Smrg x) 378617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 378717ca54c3Smrg$as_echo "none needed" >&6; } ;; 378817ca54c3Smrg xno) 378917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 379017ca54c3Smrg$as_echo "unsupported" >&6; } ;; 379117ca54c3Smrg *) 379217ca54c3Smrg CC="$CC $ac_cv_prog_cc_c89" 379317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 379417ca54c3Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 379517ca54c3Smrgesac 379617ca54c3Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 379717ca54c3Smrg 379817ca54c3Smrgfi 379917ca54c3Smrg 380017ca54c3Smrgac_ext=c 380117ca54c3Smrgac_cpp='$CPP $CPPFLAGS' 380217ca54c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 380317ca54c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 380417ca54c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 380517ca54c3Smrg 380617ca54c3Smrgac_ext=c 380717ca54c3Smrgac_cpp='$CPP $CPPFLAGS' 380817ca54c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 380917ca54c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 381017ca54c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 381117ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 381217ca54c3Smrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 381317ca54c3Smrgif ${am_cv_prog_cc_c_o+:} false; then : 381417ca54c3Smrg $as_echo_n "(cached) " >&6 381517ca54c3Smrgelse 381617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 381717ca54c3Smrg/* end confdefs.h. */ 381817ca54c3Smrg 381917ca54c3Smrgint 382017ca54c3Smrgmain () 382117ca54c3Smrg{ 382217ca54c3Smrg 382317ca54c3Smrg ; 382417ca54c3Smrg return 0; 382517ca54c3Smrg} 382617ca54c3Smrg_ACEOF 382717ca54c3Smrg # Make sure it works both with $CC and with simple cc. 382817ca54c3Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 382917ca54c3Smrg # compilers refuse to overwrite an existing .o file with -o, 383017ca54c3Smrg # though they will create one. 383117ca54c3Smrg am_cv_prog_cc_c_o=yes 383217ca54c3Smrg for am_i in 1 2; do 383317ca54c3Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 383417ca54c3Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 383517ca54c3Smrg ac_status=$? 383617ca54c3Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 383717ca54c3Smrg (exit $ac_status); } \ 383817ca54c3Smrg && test -f conftest2.$ac_objext; then 383917ca54c3Smrg : OK 384017ca54c3Smrg else 384117ca54c3Smrg am_cv_prog_cc_c_o=no 384217ca54c3Smrg break 384317ca54c3Smrg fi 384417ca54c3Smrg done 384517ca54c3Smrg rm -f core conftest* 384617ca54c3Smrg unset am_i 384717ca54c3Smrgfi 384817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 384917ca54c3Smrg$as_echo "$am_cv_prog_cc_c_o" >&6; } 385017ca54c3Smrgif test "$am_cv_prog_cc_c_o" != yes; then 385117ca54c3Smrg # Losing compiler, so override with the script. 385217ca54c3Smrg # FIXME: It is wrong to rewrite CC. 385317ca54c3Smrg # But if we don't then we get into trouble of one sort or another. 385417ca54c3Smrg # A longer-term fix would be to have automake use am__CC in this case, 385517ca54c3Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 385617ca54c3Smrg CC="$am_aux_dir/compile $CC" 385717ca54c3Smrgfi 385817ca54c3Smrgac_ext=c 385917ca54c3Smrgac_cpp='$CPP $CPPFLAGS' 386017ca54c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 386117ca54c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 386217ca54c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 386317ca54c3Smrg 386417ca54c3Smrg 386517ca54c3Smrgdepcc="$CC" am_compiler_list= 386617ca54c3Smrg 386717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 386817ca54c3Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 386917ca54c3Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 387017ca54c3Smrg $as_echo_n "(cached) " >&6 387117ca54c3Smrgelse 387217ca54c3Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 387317ca54c3Smrg # We make a subdir and do the tests there. Otherwise we can end up 387417ca54c3Smrg # making bogus files that we don't know about and never remove. For 387517ca54c3Smrg # instance it was reported that on HP-UX the gcc test will end up 387617ca54c3Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 387717ca54c3Smrg # in D". 387817ca54c3Smrg rm -rf conftest.dir 387917ca54c3Smrg mkdir conftest.dir 388017ca54c3Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 388117ca54c3Smrg # using a relative directory. 388217ca54c3Smrg cp "$am_depcomp" conftest.dir 388317ca54c3Smrg cd conftest.dir 388417ca54c3Smrg # We will build objects and dependencies in a subdirectory because 388517ca54c3Smrg # it helps to detect inapplicable dependency modes. For instance 388617ca54c3Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 388717ca54c3Smrg # side effect of compilation, but ICC will put the dependencies in 388817ca54c3Smrg # the current directory while Tru64 will put them in the object 388917ca54c3Smrg # directory. 389017ca54c3Smrg mkdir sub 389117ca54c3Smrg 389217ca54c3Smrg am_cv_CC_dependencies_compiler_type=none 389317ca54c3Smrg if test "$am_compiler_list" = ""; then 389417ca54c3Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 389517ca54c3Smrg fi 389617ca54c3Smrg am__universal=false 389717ca54c3Smrg case " $depcc " in #( 389817ca54c3Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 389917ca54c3Smrg esac 390017ca54c3Smrg 390117ca54c3Smrg for depmode in $am_compiler_list; do 390217ca54c3Smrg # Setup a source with many dependencies, because some compilers 390317ca54c3Smrg # like to wrap large dependency lists on column 80 (with \), and 390417ca54c3Smrg # we should not choose a depcomp mode which is confused by this. 390517ca54c3Smrg # 390617ca54c3Smrg # We need to recreate these files for each test, as the compiler may 390717ca54c3Smrg # overwrite some of them when testing with obscure command lines. 390817ca54c3Smrg # This happens at least with the AIX C compiler. 390917ca54c3Smrg : > sub/conftest.c 391017ca54c3Smrg for i in 1 2 3 4 5 6; do 391117ca54c3Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 391217ca54c3Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 391317ca54c3Smrg # Solaris 10 /bin/sh. 391417ca54c3Smrg echo '/* dummy */' > sub/conftst$i.h 391517ca54c3Smrg done 391617ca54c3Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 391717ca54c3Smrg 391817ca54c3Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 391917ca54c3Smrg # mode. It turns out that the SunPro C++ compiler does not properly 392017ca54c3Smrg # handle '-M -o', and we need to detect this. Also, some Intel 392117ca54c3Smrg # versions had trouble with output in subdirs. 392217ca54c3Smrg am__obj=sub/conftest.${OBJEXT-o} 392317ca54c3Smrg am__minus_obj="-o $am__obj" 392417ca54c3Smrg case $depmode in 392517ca54c3Smrg gcc) 392617ca54c3Smrg # This depmode causes a compiler race in universal mode. 392717ca54c3Smrg test "$am__universal" = false || continue 392817ca54c3Smrg ;; 392917ca54c3Smrg nosideeffect) 393017ca54c3Smrg # After this tag, mechanisms are not by side-effect, so they'll 393117ca54c3Smrg # only be used when explicitly requested. 393217ca54c3Smrg if test "x$enable_dependency_tracking" = xyes; then 393317ca54c3Smrg continue 393417ca54c3Smrg else 393517ca54c3Smrg break 393617ca54c3Smrg fi 393717ca54c3Smrg ;; 393817ca54c3Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 393917ca54c3Smrg # This compiler won't grok '-c -o', but also, the minuso test has 394017ca54c3Smrg # not run yet. These depmodes are late enough in the game, and 394117ca54c3Smrg # so weak that their functioning should not be impacted. 394217ca54c3Smrg am__obj=conftest.${OBJEXT-o} 394317ca54c3Smrg am__minus_obj= 394417ca54c3Smrg ;; 394517ca54c3Smrg none) break ;; 394617ca54c3Smrg esac 394717ca54c3Smrg if depmode=$depmode \ 394817ca54c3Smrg source=sub/conftest.c object=$am__obj \ 394917ca54c3Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 395017ca54c3Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 395117ca54c3Smrg >/dev/null 2>conftest.err && 395217ca54c3Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 395317ca54c3Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 395417ca54c3Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 395517ca54c3Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 395617ca54c3Smrg # icc doesn't choke on unknown options, it will just issue warnings 395717ca54c3Smrg # or remarks (even with -Werror). So we grep stderr for any message 395817ca54c3Smrg # that says an option was ignored or not supported. 395917ca54c3Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 396017ca54c3Smrg # icc: Command line warning: ignoring option '-M'; no argument required 396117ca54c3Smrg # The diagnosis changed in icc 8.0: 396217ca54c3Smrg # icc: Command line remark: option '-MP' not supported 396317ca54c3Smrg if (grep 'ignoring option' conftest.err || 396417ca54c3Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 396517ca54c3Smrg am_cv_CC_dependencies_compiler_type=$depmode 396617ca54c3Smrg break 396717ca54c3Smrg fi 396817ca54c3Smrg fi 396917ca54c3Smrg done 397017ca54c3Smrg 397117ca54c3Smrg cd .. 397217ca54c3Smrg rm -rf conftest.dir 397317ca54c3Smrgelse 397417ca54c3Smrg am_cv_CC_dependencies_compiler_type=none 397517ca54c3Smrgfi 397617ca54c3Smrg 397717ca54c3Smrgfi 397817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 397917ca54c3Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 398017ca54c3SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 398117ca54c3Smrg 398217ca54c3Smrg if 398317ca54c3Smrg test "x$enable_dependency_tracking" != xno \ 398417ca54c3Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 398517ca54c3Smrg am__fastdepCC_TRUE= 398617ca54c3Smrg am__fastdepCC_FALSE='#' 398717ca54c3Smrgelse 398817ca54c3Smrg am__fastdepCC_TRUE='#' 398917ca54c3Smrg am__fastdepCC_FALSE= 399017ca54c3Smrgfi 399117ca54c3Smrg 399217ca54c3Smrg 399317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 399417ca54c3Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 399517ca54c3Smrgif ${ac_cv_prog_cc_c99+:} false; then : 399617ca54c3Smrg $as_echo_n "(cached) " >&6 399717ca54c3Smrgelse 399817ca54c3Smrg ac_cv_prog_cc_c99=no 399917ca54c3Smrgac_save_CC=$CC 400017ca54c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 400117ca54c3Smrg/* end confdefs.h. */ 400217ca54c3Smrg#include <stdarg.h> 400317ca54c3Smrg#include <stdbool.h> 400417ca54c3Smrg#include <stdlib.h> 400517ca54c3Smrg#include <wchar.h> 400617ca54c3Smrg#include <stdio.h> 400717ca54c3Smrg 400817ca54c3Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 400917ca54c3Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 401017ca54c3Smrg#define showlist(...) puts (#__VA_ARGS__) 401117ca54c3Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 401217ca54c3Smrgstatic void 401317ca54c3Smrgtest_varargs_macros (void) 401417ca54c3Smrg{ 401517ca54c3Smrg int x = 1234; 401617ca54c3Smrg int y = 5678; 401717ca54c3Smrg debug ("Flag"); 401817ca54c3Smrg debug ("X = %d\n", x); 401917ca54c3Smrg showlist (The first, second, and third items.); 402017ca54c3Smrg report (x>y, "x is %d but y is %d", x, y); 402117ca54c3Smrg} 402217ca54c3Smrg 402317ca54c3Smrg// Check long long types. 402417ca54c3Smrg#define BIG64 18446744073709551615ull 402517ca54c3Smrg#define BIG32 4294967295ul 402617ca54c3Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 402717ca54c3Smrg#if !BIG_OK 402817ca54c3Smrg your preprocessor is broken; 402917ca54c3Smrg#endif 403017ca54c3Smrg#if BIG_OK 403117ca54c3Smrg#else 403217ca54c3Smrg your preprocessor is broken; 403317ca54c3Smrg#endif 403417ca54c3Smrgstatic long long int bignum = -9223372036854775807LL; 403517ca54c3Smrgstatic unsigned long long int ubignum = BIG64; 403617ca54c3Smrg 403717ca54c3Smrgstruct incomplete_array 403817ca54c3Smrg{ 403917ca54c3Smrg int datasize; 404017ca54c3Smrg double data[]; 404117ca54c3Smrg}; 404217ca54c3Smrg 404317ca54c3Smrgstruct named_init { 404417ca54c3Smrg int number; 404517ca54c3Smrg const wchar_t *name; 404617ca54c3Smrg double average; 404717ca54c3Smrg}; 404817ca54c3Smrg 404917ca54c3Smrgtypedef const char *ccp; 405017ca54c3Smrg 405117ca54c3Smrgstatic inline int 405217ca54c3Smrgtest_restrict (ccp restrict text) 405317ca54c3Smrg{ 405417ca54c3Smrg // See if C++-style comments work. 405517ca54c3Smrg // Iterate through items via the restricted pointer. 405617ca54c3Smrg // Also check for declarations in for loops. 405717ca54c3Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 405817ca54c3Smrg continue; 405917ca54c3Smrg return 0; 406017ca54c3Smrg} 406117ca54c3Smrg 406217ca54c3Smrg// Check varargs and va_copy. 406317ca54c3Smrgstatic void 406417ca54c3Smrgtest_varargs (const char *format, ...) 406517ca54c3Smrg{ 406617ca54c3Smrg va_list args; 406717ca54c3Smrg va_start (args, format); 406817ca54c3Smrg va_list args_copy; 406917ca54c3Smrg va_copy (args_copy, args); 407017ca54c3Smrg 407117ca54c3Smrg const char *str; 407217ca54c3Smrg int number; 407317ca54c3Smrg float fnumber; 407417ca54c3Smrg 407517ca54c3Smrg while (*format) 407617ca54c3Smrg { 407717ca54c3Smrg switch (*format++) 407817ca54c3Smrg { 407917ca54c3Smrg case 's': // string 408017ca54c3Smrg str = va_arg (args_copy, const char *); 408117ca54c3Smrg break; 408217ca54c3Smrg case 'd': // int 408317ca54c3Smrg number = va_arg (args_copy, int); 408417ca54c3Smrg break; 408517ca54c3Smrg case 'f': // float 408617ca54c3Smrg fnumber = va_arg (args_copy, double); 408717ca54c3Smrg break; 408817ca54c3Smrg default: 408917ca54c3Smrg break; 409017ca54c3Smrg } 409117ca54c3Smrg } 409217ca54c3Smrg va_end (args_copy); 409317ca54c3Smrg va_end (args); 409417ca54c3Smrg} 409517ca54c3Smrg 409617ca54c3Smrgint 409717ca54c3Smrgmain () 409817ca54c3Smrg{ 409917ca54c3Smrg 410017ca54c3Smrg // Check bool. 410117ca54c3Smrg _Bool success = false; 410217ca54c3Smrg 410317ca54c3Smrg // Check restrict. 410417ca54c3Smrg if (test_restrict ("String literal") == 0) 410517ca54c3Smrg success = true; 410617ca54c3Smrg char *restrict newvar = "Another string"; 410717ca54c3Smrg 410817ca54c3Smrg // Check varargs. 410917ca54c3Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 411017ca54c3Smrg test_varargs_macros (); 411117ca54c3Smrg 411217ca54c3Smrg // Check flexible array members. 411317ca54c3Smrg struct incomplete_array *ia = 411417ca54c3Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 411517ca54c3Smrg ia->datasize = 10; 411617ca54c3Smrg for (int i = 0; i < ia->datasize; ++i) 411717ca54c3Smrg ia->data[i] = i * 1.234; 411817ca54c3Smrg 411917ca54c3Smrg // Check named initializers. 412017ca54c3Smrg struct named_init ni = { 412117ca54c3Smrg .number = 34, 412217ca54c3Smrg .name = L"Test wide string", 412317ca54c3Smrg .average = 543.34343, 412417ca54c3Smrg }; 412517ca54c3Smrg 412617ca54c3Smrg ni.number = 58; 412717ca54c3Smrg 412817ca54c3Smrg int dynamic_array[ni.number]; 412917ca54c3Smrg dynamic_array[ni.number - 1] = 543; 413017ca54c3Smrg 413117ca54c3Smrg // work around unused variable warnings 413217ca54c3Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 413317ca54c3Smrg || dynamic_array[ni.number - 1] != 543); 413417ca54c3Smrg 413517ca54c3Smrg ; 413617ca54c3Smrg return 0; 413717ca54c3Smrg} 413817ca54c3Smrg_ACEOF 413917ca54c3Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 414017ca54c3Smrgdo 414117ca54c3Smrg CC="$ac_save_CC $ac_arg" 414217ca54c3Smrg if ac_fn_c_try_compile "$LINENO"; then : 414317ca54c3Smrg ac_cv_prog_cc_c99=$ac_arg 414417ca54c3Smrgfi 414517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext 414617ca54c3Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 414717ca54c3Smrgdone 414817ca54c3Smrgrm -f conftest.$ac_ext 414917ca54c3SmrgCC=$ac_save_CC 415017ca54c3Smrg 415117ca54c3Smrgfi 415217ca54c3Smrg# AC_CACHE_VAL 415317ca54c3Smrgcase "x$ac_cv_prog_cc_c99" in 415417ca54c3Smrg x) 415517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 415617ca54c3Smrg$as_echo "none needed" >&6; } ;; 415717ca54c3Smrg xno) 415817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 415917ca54c3Smrg$as_echo "unsupported" >&6; } ;; 416017ca54c3Smrg *) 416117ca54c3Smrg CC="$CC $ac_cv_prog_cc_c99" 416217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 416317ca54c3Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 416417ca54c3Smrgesac 416517ca54c3Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 416617ca54c3Smrg 416717ca54c3Smrgfi 416817ca54c3Smrg 416917ca54c3Smrg 417017ca54c3Smrg 417117ca54c3Smrgac_ext=c 417217ca54c3Smrgac_cpp='$CPP $CPPFLAGS' 417317ca54c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 417417ca54c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 417517ca54c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 417617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 417717ca54c3Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 417817ca54c3Smrg# On Suns, sometimes $CPP names a directory. 417917ca54c3Smrgif test -n "$CPP" && test -d "$CPP"; then 418017ca54c3Smrg CPP= 418117ca54c3Smrgfi 418217ca54c3Smrgif test -z "$CPP"; then 418317ca54c3Smrg if ${ac_cv_prog_CPP+:} false; then : 418417ca54c3Smrg $as_echo_n "(cached) " >&6 418517ca54c3Smrgelse 418617ca54c3Smrg # Double quotes because CPP needs to be expanded 418717ca54c3Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 418817ca54c3Smrg do 418917ca54c3Smrg ac_preproc_ok=false 419017ca54c3Smrgfor ac_c_preproc_warn_flag in '' yes 419117ca54c3Smrgdo 419217ca54c3Smrg # Use a header file that comes with gcc, so configuring glibc 419317ca54c3Smrg # with a fresh cross-compiler works. 419417ca54c3Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 419517ca54c3Smrg # <limits.h> exists even on freestanding compilers. 419617ca54c3Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 419717ca54c3Smrg # not just through cpp. "Syntax error" is here to catch this case. 419817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 419917ca54c3Smrg/* end confdefs.h. */ 420017ca54c3Smrg#ifdef __STDC__ 420117ca54c3Smrg# include <limits.h> 420217ca54c3Smrg#else 420317ca54c3Smrg# include <assert.h> 420417ca54c3Smrg#endif 420517ca54c3Smrg Syntax error 420617ca54c3Smrg_ACEOF 420717ca54c3Smrgif ac_fn_c_try_cpp "$LINENO"; then : 420817ca54c3Smrg 420917ca54c3Smrgelse 421017ca54c3Smrg # Broken: fails on valid input. 421117ca54c3Smrgcontinue 421217ca54c3Smrgfi 421317ca54c3Smrgrm -f conftest.err conftest.i conftest.$ac_ext 421417ca54c3Smrg 421517ca54c3Smrg # OK, works on sane cases. Now check whether nonexistent headers 421617ca54c3Smrg # can be detected and how. 421717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 421817ca54c3Smrg/* end confdefs.h. */ 421917ca54c3Smrg#include <ac_nonexistent.h> 422017ca54c3Smrg_ACEOF 422117ca54c3Smrgif ac_fn_c_try_cpp "$LINENO"; then : 422217ca54c3Smrg # Broken: success on invalid input. 422317ca54c3Smrgcontinue 422417ca54c3Smrgelse 422517ca54c3Smrg # Passes both tests. 422617ca54c3Smrgac_preproc_ok=: 422717ca54c3Smrgbreak 422817ca54c3Smrgfi 422917ca54c3Smrgrm -f conftest.err conftest.i conftest.$ac_ext 423017ca54c3Smrg 423117ca54c3Smrgdone 423217ca54c3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 423317ca54c3Smrgrm -f conftest.i conftest.err conftest.$ac_ext 423417ca54c3Smrgif $ac_preproc_ok; then : 423517ca54c3Smrg break 423617ca54c3Smrgfi 423717ca54c3Smrg 423817ca54c3Smrg done 423917ca54c3Smrg ac_cv_prog_CPP=$CPP 424017ca54c3Smrg 424117ca54c3Smrgfi 424217ca54c3Smrg CPP=$ac_cv_prog_CPP 424317ca54c3Smrgelse 424417ca54c3Smrg ac_cv_prog_CPP=$CPP 424517ca54c3Smrgfi 424617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 424717ca54c3Smrg$as_echo "$CPP" >&6; } 424817ca54c3Smrgac_preproc_ok=false 424917ca54c3Smrgfor ac_c_preproc_warn_flag in '' yes 425017ca54c3Smrgdo 425117ca54c3Smrg # Use a header file that comes with gcc, so configuring glibc 425217ca54c3Smrg # with a fresh cross-compiler works. 425317ca54c3Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 425417ca54c3Smrg # <limits.h> exists even on freestanding compilers. 425517ca54c3Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 425617ca54c3Smrg # not just through cpp. "Syntax error" is here to catch this case. 425717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 425817ca54c3Smrg/* end confdefs.h. */ 425917ca54c3Smrg#ifdef __STDC__ 426017ca54c3Smrg# include <limits.h> 426117ca54c3Smrg#else 426217ca54c3Smrg# include <assert.h> 426317ca54c3Smrg#endif 426417ca54c3Smrg Syntax error 426517ca54c3Smrg_ACEOF 426617ca54c3Smrgif ac_fn_c_try_cpp "$LINENO"; then : 426717ca54c3Smrg 426817ca54c3Smrgelse 426917ca54c3Smrg # Broken: fails on valid input. 427017ca54c3Smrgcontinue 427117ca54c3Smrgfi 427217ca54c3Smrgrm -f conftest.err conftest.i conftest.$ac_ext 427317ca54c3Smrg 427417ca54c3Smrg # OK, works on sane cases. Now check whether nonexistent headers 427517ca54c3Smrg # can be detected and how. 427617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 427717ca54c3Smrg/* end confdefs.h. */ 427817ca54c3Smrg#include <ac_nonexistent.h> 427917ca54c3Smrg_ACEOF 428017ca54c3Smrgif ac_fn_c_try_cpp "$LINENO"; then : 428117ca54c3Smrg # Broken: success on invalid input. 428217ca54c3Smrgcontinue 428317ca54c3Smrgelse 428417ca54c3Smrg # Passes both tests. 428517ca54c3Smrgac_preproc_ok=: 428617ca54c3Smrgbreak 428717ca54c3Smrgfi 428817ca54c3Smrgrm -f conftest.err conftest.i conftest.$ac_ext 428917ca54c3Smrg 429017ca54c3Smrgdone 429117ca54c3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 429217ca54c3Smrgrm -f conftest.i conftest.err conftest.$ac_ext 429317ca54c3Smrgif $ac_preproc_ok; then : 429417ca54c3Smrg 429517ca54c3Smrgelse 429617ca54c3Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 429717ca54c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 429817ca54c3Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 429917ca54c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 430017ca54c3Smrgfi 430117ca54c3Smrg 430217ca54c3Smrgac_ext=c 430317ca54c3Smrgac_cpp='$CPP $CPPFLAGS' 430417ca54c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 430517ca54c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 430617ca54c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 430717ca54c3Smrg 430817ca54c3Smrg 430917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 431017ca54c3Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 431117ca54c3Smrgif ${ac_cv_path_GREP+:} false; then : 431217ca54c3Smrg $as_echo_n "(cached) " >&6 431317ca54c3Smrgelse 431417ca54c3Smrg if test -z "$GREP"; then 431517ca54c3Smrg ac_path_GREP_found=false 431617ca54c3Smrg # Loop through the user's path and test for each of PROGNAME-LIST 431717ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 431817ca54c3Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 431917ca54c3Smrgdo 432017ca54c3Smrg IFS=$as_save_IFS 432117ca54c3Smrg test -z "$as_dir" && as_dir=. 432217ca54c3Smrg for ac_prog in grep ggrep; do 432317ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 432417ca54c3Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 432517ca54c3Smrg as_fn_executable_p "$ac_path_GREP" || continue 432617ca54c3Smrg# Check for GNU ac_path_GREP and select it if it is found. 432717ca54c3Smrg # Check for GNU $ac_path_GREP 432817ca54c3Smrgcase `"$ac_path_GREP" --version 2>&1` in 432917ca54c3Smrg*GNU*) 433017ca54c3Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 433117ca54c3Smrg*) 433217ca54c3Smrg ac_count=0 433317ca54c3Smrg $as_echo_n 0123456789 >"conftest.in" 433417ca54c3Smrg while : 433517ca54c3Smrg do 433617ca54c3Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 433717ca54c3Smrg mv "conftest.tmp" "conftest.in" 433817ca54c3Smrg cp "conftest.in" "conftest.nl" 433917ca54c3Smrg $as_echo 'GREP' >> "conftest.nl" 434017ca54c3Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 434117ca54c3Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 434217ca54c3Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 434317ca54c3Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 434417ca54c3Smrg # Best one so far, save it but keep looking for a better one 434517ca54c3Smrg ac_cv_path_GREP="$ac_path_GREP" 434617ca54c3Smrg ac_path_GREP_max=$ac_count 434717ca54c3Smrg fi 434817ca54c3Smrg # 10*(2^10) chars as input seems more than enough 434917ca54c3Smrg test $ac_count -gt 10 && break 435017ca54c3Smrg done 435117ca54c3Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 435217ca54c3Smrgesac 435317ca54c3Smrg 435417ca54c3Smrg $ac_path_GREP_found && break 3 435517ca54c3Smrg done 435617ca54c3Smrg done 435717ca54c3Smrg done 435817ca54c3SmrgIFS=$as_save_IFS 435917ca54c3Smrg if test -z "$ac_cv_path_GREP"; then 436017ca54c3Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 436117ca54c3Smrg fi 436217ca54c3Smrgelse 436317ca54c3Smrg ac_cv_path_GREP=$GREP 436417ca54c3Smrgfi 436517ca54c3Smrg 436617ca54c3Smrgfi 436717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 436817ca54c3Smrg$as_echo "$ac_cv_path_GREP" >&6; } 436917ca54c3Smrg GREP="$ac_cv_path_GREP" 437017ca54c3Smrg 437117ca54c3Smrg 437217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 437317ca54c3Smrg$as_echo_n "checking for egrep... " >&6; } 437417ca54c3Smrgif ${ac_cv_path_EGREP+:} false; then : 437517ca54c3Smrg $as_echo_n "(cached) " >&6 437617ca54c3Smrgelse 437717ca54c3Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 437817ca54c3Smrg then ac_cv_path_EGREP="$GREP -E" 437917ca54c3Smrg else 438017ca54c3Smrg if test -z "$EGREP"; then 438117ca54c3Smrg ac_path_EGREP_found=false 438217ca54c3Smrg # Loop through the user's path and test for each of PROGNAME-LIST 438317ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 438417ca54c3Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 438517ca54c3Smrgdo 438617ca54c3Smrg IFS=$as_save_IFS 438717ca54c3Smrg test -z "$as_dir" && as_dir=. 438817ca54c3Smrg for ac_prog in egrep; do 438917ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 439017ca54c3Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 439117ca54c3Smrg as_fn_executable_p "$ac_path_EGREP" || continue 439217ca54c3Smrg# Check for GNU ac_path_EGREP and select it if it is found. 439317ca54c3Smrg # Check for GNU $ac_path_EGREP 439417ca54c3Smrgcase `"$ac_path_EGREP" --version 2>&1` in 439517ca54c3Smrg*GNU*) 439617ca54c3Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 439717ca54c3Smrg*) 439817ca54c3Smrg ac_count=0 439917ca54c3Smrg $as_echo_n 0123456789 >"conftest.in" 440017ca54c3Smrg while : 440117ca54c3Smrg do 440217ca54c3Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 440317ca54c3Smrg mv "conftest.tmp" "conftest.in" 440417ca54c3Smrg cp "conftest.in" "conftest.nl" 440517ca54c3Smrg $as_echo 'EGREP' >> "conftest.nl" 440617ca54c3Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 440717ca54c3Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 440817ca54c3Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 440917ca54c3Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 441017ca54c3Smrg # Best one so far, save it but keep looking for a better one 441117ca54c3Smrg ac_cv_path_EGREP="$ac_path_EGREP" 441217ca54c3Smrg ac_path_EGREP_max=$ac_count 441317ca54c3Smrg fi 441417ca54c3Smrg # 10*(2^10) chars as input seems more than enough 441517ca54c3Smrg test $ac_count -gt 10 && break 441617ca54c3Smrg done 441717ca54c3Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 441817ca54c3Smrgesac 441917ca54c3Smrg 442017ca54c3Smrg $ac_path_EGREP_found && break 3 442117ca54c3Smrg done 442217ca54c3Smrg done 442317ca54c3Smrg done 442417ca54c3SmrgIFS=$as_save_IFS 442517ca54c3Smrg if test -z "$ac_cv_path_EGREP"; then 442617ca54c3Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 442717ca54c3Smrg fi 442817ca54c3Smrgelse 442917ca54c3Smrg ac_cv_path_EGREP=$EGREP 443017ca54c3Smrgfi 443117ca54c3Smrg 443217ca54c3Smrg fi 443317ca54c3Smrgfi 443417ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 443517ca54c3Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 443617ca54c3Smrg EGREP="$ac_cv_path_EGREP" 443717ca54c3Smrg 443817ca54c3Smrg 443917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 444017ca54c3Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 444117ca54c3Smrgif ${ac_cv_header_stdc+:} false; then : 444217ca54c3Smrg $as_echo_n "(cached) " >&6 444317ca54c3Smrgelse 444417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 444517ca54c3Smrg/* end confdefs.h. */ 444617ca54c3Smrg#include <stdlib.h> 444717ca54c3Smrg#include <stdarg.h> 444817ca54c3Smrg#include <string.h> 444917ca54c3Smrg#include <float.h> 445017ca54c3Smrg 445117ca54c3Smrgint 445217ca54c3Smrgmain () 445317ca54c3Smrg{ 445417ca54c3Smrg 445517ca54c3Smrg ; 445617ca54c3Smrg return 0; 445717ca54c3Smrg} 445817ca54c3Smrg_ACEOF 445917ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 446017ca54c3Smrg ac_cv_header_stdc=yes 446117ca54c3Smrgelse 446217ca54c3Smrg ac_cv_header_stdc=no 446317ca54c3Smrgfi 446417ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 446517ca54c3Smrg 446617ca54c3Smrgif test $ac_cv_header_stdc = yes; then 446717ca54c3Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 446817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 446917ca54c3Smrg/* end confdefs.h. */ 447017ca54c3Smrg#include <string.h> 447117ca54c3Smrg 447217ca54c3Smrg_ACEOF 447317ca54c3Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 447417ca54c3Smrg $EGREP "memchr" >/dev/null 2>&1; then : 447517ca54c3Smrg 447617ca54c3Smrgelse 447717ca54c3Smrg ac_cv_header_stdc=no 447817ca54c3Smrgfi 447917ca54c3Smrgrm -f conftest* 448017ca54c3Smrg 448117ca54c3Smrgfi 448217ca54c3Smrg 448317ca54c3Smrgif test $ac_cv_header_stdc = yes; then 448417ca54c3Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 448517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 448617ca54c3Smrg/* end confdefs.h. */ 448717ca54c3Smrg#include <stdlib.h> 448817ca54c3Smrg 448917ca54c3Smrg_ACEOF 449017ca54c3Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 449117ca54c3Smrg $EGREP "free" >/dev/null 2>&1; then : 449217ca54c3Smrg 449317ca54c3Smrgelse 449417ca54c3Smrg ac_cv_header_stdc=no 449517ca54c3Smrgfi 449617ca54c3Smrgrm -f conftest* 449717ca54c3Smrg 449817ca54c3Smrgfi 449917ca54c3Smrg 450017ca54c3Smrgif test $ac_cv_header_stdc = yes; then 450117ca54c3Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 450217ca54c3Smrg if test "$cross_compiling" = yes; then : 450317ca54c3Smrg : 450417ca54c3Smrgelse 450517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 450617ca54c3Smrg/* end confdefs.h. */ 450717ca54c3Smrg#include <ctype.h> 450817ca54c3Smrg#include <stdlib.h> 450917ca54c3Smrg#if ((' ' & 0x0FF) == 0x020) 451017ca54c3Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 451117ca54c3Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 451217ca54c3Smrg#else 451317ca54c3Smrg# define ISLOWER(c) \ 451417ca54c3Smrg (('a' <= (c) && (c) <= 'i') \ 451517ca54c3Smrg || ('j' <= (c) && (c) <= 'r') \ 451617ca54c3Smrg || ('s' <= (c) && (c) <= 'z')) 451717ca54c3Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 451817ca54c3Smrg#endif 451917ca54c3Smrg 452017ca54c3Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 452117ca54c3Smrgint 452217ca54c3Smrgmain () 452317ca54c3Smrg{ 452417ca54c3Smrg int i; 452517ca54c3Smrg for (i = 0; i < 256; i++) 452617ca54c3Smrg if (XOR (islower (i), ISLOWER (i)) 452717ca54c3Smrg || toupper (i) != TOUPPER (i)) 452817ca54c3Smrg return 2; 452917ca54c3Smrg return 0; 453017ca54c3Smrg} 453117ca54c3Smrg_ACEOF 453217ca54c3Smrgif ac_fn_c_try_run "$LINENO"; then : 453317ca54c3Smrg 453417ca54c3Smrgelse 453517ca54c3Smrg ac_cv_header_stdc=no 453617ca54c3Smrgfi 453717ca54c3Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 453817ca54c3Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 453917ca54c3Smrgfi 454017ca54c3Smrg 454117ca54c3Smrgfi 454217ca54c3Smrgfi 454317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 454417ca54c3Smrg$as_echo "$ac_cv_header_stdc" >&6; } 454517ca54c3Smrgif test $ac_cv_header_stdc = yes; then 454617ca54c3Smrg 454717ca54c3Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 454817ca54c3Smrg 454917ca54c3Smrgfi 455017ca54c3Smrg 455117ca54c3Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 455217ca54c3Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 455317ca54c3Smrg inttypes.h stdint.h unistd.h 455417ca54c3Smrgdo : 455517ca54c3Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 455617ca54c3Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 455717ca54c3Smrg" 455817ca54c3Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 455917ca54c3Smrg cat >>confdefs.h <<_ACEOF 456017ca54c3Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 456117ca54c3Smrg_ACEOF 456217ca54c3Smrg 456317ca54c3Smrgfi 456417ca54c3Smrg 456517ca54c3Smrgdone 456617ca54c3Smrg 456717ca54c3Smrg 456817ca54c3Smrg 456917ca54c3Smrg 457017ca54c3Smrg 457117ca54c3Smrg 457217ca54c3Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 457317ca54c3Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 457417ca54c3Smrg CLANGCC="yes" 457517ca54c3Smrgelse 457617ca54c3Smrg CLANGCC="no" 457717ca54c3Smrgfi 457817ca54c3Smrg 457917ca54c3Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 458017ca54c3Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 458117ca54c3Smrg INTELCC="yes" 458217ca54c3Smrgelse 458317ca54c3Smrg INTELCC="no" 458417ca54c3Smrgfi 458517ca54c3Smrg 458617ca54c3Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 458717ca54c3Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 458817ca54c3Smrg SUNCC="yes" 458917ca54c3Smrgelse 459017ca54c3Smrg SUNCC="no" 459117ca54c3Smrgfi 459217ca54c3Smrg 459317ca54c3Smrg 459417ca54c3Smrg 459517ca54c3Smrg 459617ca54c3Smrg 459717ca54c3Smrg 459817ca54c3Smrg 459917ca54c3Smrg 460017ca54c3Smrg 460117ca54c3Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 460217ca54c3Smrg if test -n "$ac_tool_prefix"; then 460317ca54c3Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 460417ca54c3Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 460517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 460617ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 460717ca54c3Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 460817ca54c3Smrg $as_echo_n "(cached) " >&6 460917ca54c3Smrgelse 461017ca54c3Smrg case $PKG_CONFIG in 461117ca54c3Smrg [\\/]* | ?:[\\/]*) 461217ca54c3Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 461317ca54c3Smrg ;; 461417ca54c3Smrg *) 461517ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 461617ca54c3Smrgfor as_dir in $PATH 461717ca54c3Smrgdo 461817ca54c3Smrg IFS=$as_save_IFS 461917ca54c3Smrg test -z "$as_dir" && as_dir=. 462017ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 462117ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 462217ca54c3Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 462317ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 462417ca54c3Smrg break 2 462517ca54c3Smrg fi 462617ca54c3Smrgdone 462717ca54c3Smrg done 462817ca54c3SmrgIFS=$as_save_IFS 462917ca54c3Smrg 463017ca54c3Smrg ;; 463117ca54c3Smrgesac 463217ca54c3Smrgfi 463317ca54c3SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 463417ca54c3Smrgif test -n "$PKG_CONFIG"; then 463517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 463617ca54c3Smrg$as_echo "$PKG_CONFIG" >&6; } 463717ca54c3Smrgelse 463817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 463917ca54c3Smrg$as_echo "no" >&6; } 464017ca54c3Smrgfi 464117ca54c3Smrg 464217ca54c3Smrg 464317ca54c3Smrgfi 464417ca54c3Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 464517ca54c3Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 464617ca54c3Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 464717ca54c3Smrgset dummy pkg-config; ac_word=$2 464817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 464917ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 465017ca54c3Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 465117ca54c3Smrg $as_echo_n "(cached) " >&6 465217ca54c3Smrgelse 465317ca54c3Smrg case $ac_pt_PKG_CONFIG in 465417ca54c3Smrg [\\/]* | ?:[\\/]*) 465517ca54c3Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 465617ca54c3Smrg ;; 465717ca54c3Smrg *) 465817ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 465917ca54c3Smrgfor as_dir in $PATH 466017ca54c3Smrgdo 466117ca54c3Smrg IFS=$as_save_IFS 466217ca54c3Smrg test -z "$as_dir" && as_dir=. 466317ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 466417ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 466517ca54c3Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 466617ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 466717ca54c3Smrg break 2 466817ca54c3Smrg fi 466917ca54c3Smrgdone 467017ca54c3Smrg done 467117ca54c3SmrgIFS=$as_save_IFS 467217ca54c3Smrg 467317ca54c3Smrg ;; 467417ca54c3Smrgesac 467517ca54c3Smrgfi 467617ca54c3Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 467717ca54c3Smrgif test -n "$ac_pt_PKG_CONFIG"; then 467817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 467917ca54c3Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 468017ca54c3Smrgelse 468117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 468217ca54c3Smrg$as_echo "no" >&6; } 468317ca54c3Smrgfi 468417ca54c3Smrg 468517ca54c3Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 468617ca54c3Smrg PKG_CONFIG="" 468717ca54c3Smrg else 468817ca54c3Smrg case $cross_compiling:$ac_tool_warned in 468917ca54c3Smrgyes:) 469017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 469117ca54c3Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 469217ca54c3Smrgac_tool_warned=yes ;; 469317ca54c3Smrgesac 469417ca54c3Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 469517ca54c3Smrg fi 469617ca54c3Smrgelse 469717ca54c3Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 469817ca54c3Smrgfi 469917ca54c3Smrg 470017ca54c3Smrgfi 470117ca54c3Smrgif test -n "$PKG_CONFIG"; then 470217ca54c3Smrg _pkg_min_version=0.9.0 470317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 470417ca54c3Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 470517ca54c3Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 470617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 470717ca54c3Smrg$as_echo "yes" >&6; } 470817ca54c3Smrg else 470917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 471017ca54c3Smrg$as_echo "no" >&6; } 471117ca54c3Smrg PKG_CONFIG="" 471217ca54c3Smrg fi 471317ca54c3Smrgfi 471417ca54c3Smrg# Make sure we can run config.sub. 471517ca54c3Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 471617ca54c3Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 471717ca54c3Smrg 471817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 471917ca54c3Smrg$as_echo_n "checking build system type... " >&6; } 472017ca54c3Smrgif ${ac_cv_build+:} false; then : 472117ca54c3Smrg $as_echo_n "(cached) " >&6 472217ca54c3Smrgelse 472317ca54c3Smrg ac_build_alias=$build_alias 472417ca54c3Smrgtest "x$ac_build_alias" = x && 472517ca54c3Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 472617ca54c3Smrgtest "x$ac_build_alias" = x && 472717ca54c3Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 472817ca54c3Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 472917ca54c3Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 473017ca54c3Smrg 473117ca54c3Smrgfi 473217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 473317ca54c3Smrg$as_echo "$ac_cv_build" >&6; } 473417ca54c3Smrgcase $ac_cv_build in 473517ca54c3Smrg*-*-*) ;; 473617ca54c3Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 473717ca54c3Smrgesac 473817ca54c3Smrgbuild=$ac_cv_build 473917ca54c3Smrgac_save_IFS=$IFS; IFS='-' 474017ca54c3Smrgset x $ac_cv_build 474117ca54c3Smrgshift 474217ca54c3Smrgbuild_cpu=$1 474317ca54c3Smrgbuild_vendor=$2 474417ca54c3Smrgshift; shift 474517ca54c3Smrg# Remember, the first character of IFS is used to create $*, 474617ca54c3Smrg# except with old shells: 474717ca54c3Smrgbuild_os=$* 474817ca54c3SmrgIFS=$ac_save_IFS 474917ca54c3Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 475017ca54c3Smrg 475117ca54c3Smrg 475217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 475317ca54c3Smrg$as_echo_n "checking host system type... " >&6; } 475417ca54c3Smrgif ${ac_cv_host+:} false; then : 475517ca54c3Smrg $as_echo_n "(cached) " >&6 475617ca54c3Smrgelse 475717ca54c3Smrg if test "x$host_alias" = x; then 475817ca54c3Smrg ac_cv_host=$ac_cv_build 475917ca54c3Smrgelse 476017ca54c3Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 476117ca54c3Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 476217ca54c3Smrgfi 476317ca54c3Smrg 476417ca54c3Smrgfi 476517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 476617ca54c3Smrg$as_echo "$ac_cv_host" >&6; } 476717ca54c3Smrgcase $ac_cv_host in 476817ca54c3Smrg*-*-*) ;; 476917ca54c3Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 477017ca54c3Smrgesac 477117ca54c3Smrghost=$ac_cv_host 477217ca54c3Smrgac_save_IFS=$IFS; IFS='-' 477317ca54c3Smrgset x $ac_cv_host 477417ca54c3Smrgshift 477517ca54c3Smrghost_cpu=$1 477617ca54c3Smrghost_vendor=$2 477717ca54c3Smrgshift; shift 477817ca54c3Smrg# Remember, the first character of IFS is used to create $*, 477917ca54c3Smrg# except with old shells: 478017ca54c3Smrghost_os=$* 478117ca54c3SmrgIFS=$ac_save_IFS 478217ca54c3Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 478317ca54c3Smrg 478417ca54c3Smrg 478517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 478617ca54c3Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 478717ca54c3Smrgif ${ac_cv_path_SED+:} false; then : 478817ca54c3Smrg $as_echo_n "(cached) " >&6 478917ca54c3Smrgelse 479017ca54c3Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 479117ca54c3Smrg for ac_i in 1 2 3 4 5 6 7; do 479217ca54c3Smrg ac_script="$ac_script$as_nl$ac_script" 479317ca54c3Smrg done 479417ca54c3Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 479517ca54c3Smrg { ac_script=; unset ac_script;} 479617ca54c3Smrg if test -z "$SED"; then 479717ca54c3Smrg ac_path_SED_found=false 479817ca54c3Smrg # Loop through the user's path and test for each of PROGNAME-LIST 479917ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 480017ca54c3Smrgfor as_dir in $PATH 480117ca54c3Smrgdo 480217ca54c3Smrg IFS=$as_save_IFS 480317ca54c3Smrg test -z "$as_dir" && as_dir=. 480417ca54c3Smrg for ac_prog in sed gsed; do 480517ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 480617ca54c3Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 480717ca54c3Smrg as_fn_executable_p "$ac_path_SED" || continue 480817ca54c3Smrg# Check for GNU ac_path_SED and select it if it is found. 480917ca54c3Smrg # Check for GNU $ac_path_SED 481017ca54c3Smrgcase `"$ac_path_SED" --version 2>&1` in 481117ca54c3Smrg*GNU*) 481217ca54c3Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 481317ca54c3Smrg*) 481417ca54c3Smrg ac_count=0 481517ca54c3Smrg $as_echo_n 0123456789 >"conftest.in" 481617ca54c3Smrg while : 481717ca54c3Smrg do 481817ca54c3Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 481917ca54c3Smrg mv "conftest.tmp" "conftest.in" 482017ca54c3Smrg cp "conftest.in" "conftest.nl" 482117ca54c3Smrg $as_echo '' >> "conftest.nl" 482217ca54c3Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 482317ca54c3Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 482417ca54c3Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 482517ca54c3Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 482617ca54c3Smrg # Best one so far, save it but keep looking for a better one 482717ca54c3Smrg ac_cv_path_SED="$ac_path_SED" 482817ca54c3Smrg ac_path_SED_max=$ac_count 482917ca54c3Smrg fi 483017ca54c3Smrg # 10*(2^10) chars as input seems more than enough 483117ca54c3Smrg test $ac_count -gt 10 && break 483217ca54c3Smrg done 483317ca54c3Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 483417ca54c3Smrgesac 483517ca54c3Smrg 483617ca54c3Smrg $ac_path_SED_found && break 3 483717ca54c3Smrg done 483817ca54c3Smrg done 483917ca54c3Smrg done 484017ca54c3SmrgIFS=$as_save_IFS 484117ca54c3Smrg if test -z "$ac_cv_path_SED"; then 484217ca54c3Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 484317ca54c3Smrg fi 484417ca54c3Smrgelse 484517ca54c3Smrg ac_cv_path_SED=$SED 484617ca54c3Smrgfi 484717ca54c3Smrg 484817ca54c3Smrgfi 484917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 485017ca54c3Smrg$as_echo "$ac_cv_path_SED" >&6; } 485117ca54c3Smrg SED="$ac_cv_path_SED" 485217ca54c3Smrg rm -f conftest.sed 485317ca54c3Smrg 485417ca54c3Smrg 485517ca54c3Smrg 485617ca54c3Smrg 485717ca54c3Smrg 485817ca54c3Smrg 485917ca54c3Smrg# Check whether --enable-selective-werror was given. 486017ca54c3Smrgif test "${enable_selective_werror+set}" = set; then : 486117ca54c3Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 486217ca54c3Smrgelse 486317ca54c3Smrg SELECTIVE_WERROR=yes 486417ca54c3Smrgfi 486517ca54c3Smrg 486617ca54c3Smrg 486717ca54c3Smrg 486817ca54c3Smrg 486917ca54c3Smrg 487017ca54c3Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 487117ca54c3Smrgif test "x$SUNCC" = "xyes"; then 487217ca54c3Smrg BASE_CFLAGS="-v" 487317ca54c3Smrgelse 487417ca54c3Smrg BASE_CFLAGS="" 487517ca54c3Smrgfi 487617ca54c3Smrg 487717ca54c3Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 487817ca54c3Smrg 487917ca54c3Smrg 488017ca54c3Smrg 488117ca54c3Smrg 488217ca54c3Smrg 488317ca54c3Smrg 488417ca54c3Smrg 488517ca54c3Smrg 488617ca54c3Smrg 488717ca54c3Smrg 488817ca54c3Smrg 488917ca54c3Smrg 489017ca54c3Smrg 489117ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 489217ca54c3Smrg 489317ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 489417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 489517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 489617ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 489717ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 489817ca54c3Smrg $as_echo_n "(cached) " >&6 489917ca54c3Smrgelse 490017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 490117ca54c3Smrg/* end confdefs.h. */ 490217ca54c3Smrgint i; 490317ca54c3Smrg_ACEOF 490417ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 490517ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 490617ca54c3Smrgelse 490717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 490817ca54c3Smrgfi 490917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 491017ca54c3Smrgfi 491117ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 491217ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 491317ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 491417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 491517ca54c3Smrgfi 491617ca54c3Smrg 491717ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 491817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 491917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 492017ca54c3Smrg fi 492117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 492217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 492317ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 492417ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 492517ca54c3Smrg $as_echo_n "(cached) " >&6 492617ca54c3Smrgelse 492717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 492817ca54c3Smrg/* end confdefs.h. */ 492917ca54c3Smrgint i; 493017ca54c3Smrg_ACEOF 493117ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 493217ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 493317ca54c3Smrgelse 493417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 493517ca54c3Smrgfi 493617ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 493717ca54c3Smrgfi 493817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 493917ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 494017ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 494117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 494217ca54c3Smrgfi 494317ca54c3Smrg 494417ca54c3Smrgfound="no" 494517ca54c3Smrg 494617ca54c3Smrg if test $found = "no" ; then 494717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 494817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 494917ca54c3Smrg fi 495017ca54c3Smrg 495117ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 495217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 495317ca54c3Smrg fi 495417ca54c3Smrg 495517ca54c3Smrg CFLAGS="$CFLAGS -Wall" 495617ca54c3Smrg 495717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 495817ca54c3Smrg$as_echo_n "checking if $CC supports -Wall... " >&6; } 495917ca54c3Smrg cacheid=xorg_cv_cc_flag__Wall 496017ca54c3Smrg if eval \${$cacheid+:} false; then : 496117ca54c3Smrg $as_echo_n "(cached) " >&6 496217ca54c3Smrgelse 496317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 496417ca54c3Smrg/* end confdefs.h. */ 496517ca54c3Smrgint i; 496617ca54c3Smrgint 496717ca54c3Smrgmain () 496817ca54c3Smrg{ 496917ca54c3Smrg 497017ca54c3Smrg ; 497117ca54c3Smrg return 0; 497217ca54c3Smrg} 497317ca54c3Smrg_ACEOF 497417ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 497517ca54c3Smrg eval $cacheid=yes 497617ca54c3Smrgelse 497717ca54c3Smrg eval $cacheid=no 497817ca54c3Smrgfi 497917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 498017ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 498117ca54c3Smrgfi 498217ca54c3Smrg 498317ca54c3Smrg 498417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 498517ca54c3Smrg 498617ca54c3Smrg eval supported=\$$cacheid 498717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 498817ca54c3Smrg$as_echo "$supported" >&6; } 498917ca54c3Smrg if test "$supported" = "yes" ; then 499017ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 499117ca54c3Smrg found="yes" 499217ca54c3Smrg fi 499317ca54c3Smrg fi 499417ca54c3Smrg 499517ca54c3Smrg 499617ca54c3Smrg 499717ca54c3Smrg 499817ca54c3Smrg 499917ca54c3Smrg 500017ca54c3Smrg 500117ca54c3Smrg 500217ca54c3Smrg 500317ca54c3Smrg 500417ca54c3Smrg 500517ca54c3Smrg 500617ca54c3Smrg 500717ca54c3Smrg 500817ca54c3Smrg 500917ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 501017ca54c3Smrg 501117ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 501217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 501317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 501417ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 501517ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 501617ca54c3Smrg $as_echo_n "(cached) " >&6 501717ca54c3Smrgelse 501817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 501917ca54c3Smrg/* end confdefs.h. */ 502017ca54c3Smrgint i; 502117ca54c3Smrg_ACEOF 502217ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 502317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 502417ca54c3Smrgelse 502517ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 502617ca54c3Smrgfi 502717ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 502817ca54c3Smrgfi 502917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 503017ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 503117ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 503217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 503317ca54c3Smrgfi 503417ca54c3Smrg 503517ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 503617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 503717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 503817ca54c3Smrg fi 503917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 504017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 504117ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 504217ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 504317ca54c3Smrg $as_echo_n "(cached) " >&6 504417ca54c3Smrgelse 504517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 504617ca54c3Smrg/* end confdefs.h. */ 504717ca54c3Smrgint i; 504817ca54c3Smrg_ACEOF 504917ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 505017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 505117ca54c3Smrgelse 505217ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 505317ca54c3Smrgfi 505417ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 505517ca54c3Smrgfi 505617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 505717ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 505817ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 505917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 506017ca54c3Smrgfi 506117ca54c3Smrg 506217ca54c3Smrgfound="no" 506317ca54c3Smrg 506417ca54c3Smrg if test $found = "no" ; then 506517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 506617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 506717ca54c3Smrg fi 506817ca54c3Smrg 506917ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 507017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 507117ca54c3Smrg fi 507217ca54c3Smrg 507317ca54c3Smrg CFLAGS="$CFLAGS -Wpointer-arith" 507417ca54c3Smrg 507517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 507617ca54c3Smrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 507717ca54c3Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 507817ca54c3Smrg if eval \${$cacheid+:} false; then : 507917ca54c3Smrg $as_echo_n "(cached) " >&6 508017ca54c3Smrgelse 508117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 508217ca54c3Smrg/* end confdefs.h. */ 508317ca54c3Smrgint i; 508417ca54c3Smrgint 508517ca54c3Smrgmain () 508617ca54c3Smrg{ 508717ca54c3Smrg 508817ca54c3Smrg ; 508917ca54c3Smrg return 0; 509017ca54c3Smrg} 509117ca54c3Smrg_ACEOF 509217ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 509317ca54c3Smrg eval $cacheid=yes 509417ca54c3Smrgelse 509517ca54c3Smrg eval $cacheid=no 509617ca54c3Smrgfi 509717ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 509817ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 509917ca54c3Smrgfi 510017ca54c3Smrg 510117ca54c3Smrg 510217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 510317ca54c3Smrg 510417ca54c3Smrg eval supported=\$$cacheid 510517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 510617ca54c3Smrg$as_echo "$supported" >&6; } 510717ca54c3Smrg if test "$supported" = "yes" ; then 510817ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 510917ca54c3Smrg found="yes" 511017ca54c3Smrg fi 511117ca54c3Smrg fi 511217ca54c3Smrg 511317ca54c3Smrg 511417ca54c3Smrg 511517ca54c3Smrg 511617ca54c3Smrg 511717ca54c3Smrg 511817ca54c3Smrg 511917ca54c3Smrg 512017ca54c3Smrg 512117ca54c3Smrg 512217ca54c3Smrg 512317ca54c3Smrg 512417ca54c3Smrg 512517ca54c3Smrg 512617ca54c3Smrg 512717ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 512817ca54c3Smrg 512917ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 513017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 513117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 513217ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 513317ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 513417ca54c3Smrg $as_echo_n "(cached) " >&6 513517ca54c3Smrgelse 513617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 513717ca54c3Smrg/* end confdefs.h. */ 513817ca54c3Smrgint i; 513917ca54c3Smrg_ACEOF 514017ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 514117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 514217ca54c3Smrgelse 514317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 514417ca54c3Smrgfi 514517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 514617ca54c3Smrgfi 514717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 514817ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 514917ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 515017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 515117ca54c3Smrgfi 515217ca54c3Smrg 515317ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 515417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 515517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 515617ca54c3Smrg fi 515717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 515817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 515917ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 516017ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 516117ca54c3Smrg $as_echo_n "(cached) " >&6 516217ca54c3Smrgelse 516317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 516417ca54c3Smrg/* end confdefs.h. */ 516517ca54c3Smrgint i; 516617ca54c3Smrg_ACEOF 516717ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 516817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 516917ca54c3Smrgelse 517017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 517117ca54c3Smrgfi 517217ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 517317ca54c3Smrgfi 517417ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 517517ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 517617ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 517717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 517817ca54c3Smrgfi 517917ca54c3Smrg 518017ca54c3Smrgfound="no" 518117ca54c3Smrg 518217ca54c3Smrg if test $found = "no" ; then 518317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 518417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 518517ca54c3Smrg fi 518617ca54c3Smrg 518717ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 518817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 518917ca54c3Smrg fi 519017ca54c3Smrg 519117ca54c3Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 519217ca54c3Smrg 519317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 519417ca54c3Smrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 519517ca54c3Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 519617ca54c3Smrg if eval \${$cacheid+:} false; then : 519717ca54c3Smrg $as_echo_n "(cached) " >&6 519817ca54c3Smrgelse 519917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 520017ca54c3Smrg/* end confdefs.h. */ 520117ca54c3Smrgint i; 520217ca54c3Smrgint 520317ca54c3Smrgmain () 520417ca54c3Smrg{ 520517ca54c3Smrg 520617ca54c3Smrg ; 520717ca54c3Smrg return 0; 520817ca54c3Smrg} 520917ca54c3Smrg_ACEOF 521017ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 521117ca54c3Smrg eval $cacheid=yes 521217ca54c3Smrgelse 521317ca54c3Smrg eval $cacheid=no 521417ca54c3Smrgfi 521517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 521617ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 521717ca54c3Smrgfi 521817ca54c3Smrg 521917ca54c3Smrg 522017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 522117ca54c3Smrg 522217ca54c3Smrg eval supported=\$$cacheid 522317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 522417ca54c3Smrg$as_echo "$supported" >&6; } 522517ca54c3Smrg if test "$supported" = "yes" ; then 522617ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 522717ca54c3Smrg found="yes" 522817ca54c3Smrg fi 522917ca54c3Smrg fi 523017ca54c3Smrg 523117ca54c3Smrg 523217ca54c3Smrg 523317ca54c3Smrg 523417ca54c3Smrg 523517ca54c3Smrg 523617ca54c3Smrg 523717ca54c3Smrg 523817ca54c3Smrg 523917ca54c3Smrg 524017ca54c3Smrg 524117ca54c3Smrg 524217ca54c3Smrg 524317ca54c3Smrg 524417ca54c3Smrg 524517ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 524617ca54c3Smrg 524717ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 524817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 524917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 525017ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 525117ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 525217ca54c3Smrg $as_echo_n "(cached) " >&6 525317ca54c3Smrgelse 525417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 525517ca54c3Smrg/* end confdefs.h. */ 525617ca54c3Smrgint i; 525717ca54c3Smrg_ACEOF 525817ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 525917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 526017ca54c3Smrgelse 526117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 526217ca54c3Smrgfi 526317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 526417ca54c3Smrgfi 526517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 526617ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 526717ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 526817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 526917ca54c3Smrgfi 527017ca54c3Smrg 527117ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 527217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 527317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 527417ca54c3Smrg fi 527517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 527617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 527717ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 527817ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 527917ca54c3Smrg $as_echo_n "(cached) " >&6 528017ca54c3Smrgelse 528117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 528217ca54c3Smrg/* end confdefs.h. */ 528317ca54c3Smrgint i; 528417ca54c3Smrg_ACEOF 528517ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 528617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 528717ca54c3Smrgelse 528817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 528917ca54c3Smrgfi 529017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 529117ca54c3Smrgfi 529217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 529317ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 529417ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 529517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 529617ca54c3Smrgfi 529717ca54c3Smrg 529817ca54c3Smrgfound="no" 529917ca54c3Smrg 530017ca54c3Smrg if test $found = "no" ; then 530117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 530217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 530317ca54c3Smrg fi 530417ca54c3Smrg 530517ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 530617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 530717ca54c3Smrg fi 530817ca54c3Smrg 530917ca54c3Smrg CFLAGS="$CFLAGS -Wformat=2" 531017ca54c3Smrg 531117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 531217ca54c3Smrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 531317ca54c3Smrg cacheid=xorg_cv_cc_flag__Wformat_2 531417ca54c3Smrg if eval \${$cacheid+:} false; then : 531517ca54c3Smrg $as_echo_n "(cached) " >&6 531617ca54c3Smrgelse 531717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 531817ca54c3Smrg/* end confdefs.h. */ 531917ca54c3Smrgint i; 532017ca54c3Smrgint 532117ca54c3Smrgmain () 532217ca54c3Smrg{ 532317ca54c3Smrg 532417ca54c3Smrg ; 532517ca54c3Smrg return 0; 532617ca54c3Smrg} 532717ca54c3Smrg_ACEOF 532817ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 532917ca54c3Smrg eval $cacheid=yes 533017ca54c3Smrgelse 533117ca54c3Smrg eval $cacheid=no 533217ca54c3Smrgfi 533317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 533417ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 533517ca54c3Smrgfi 533617ca54c3Smrg 533717ca54c3Smrg 533817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 533917ca54c3Smrg 534017ca54c3Smrg eval supported=\$$cacheid 534117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 534217ca54c3Smrg$as_echo "$supported" >&6; } 534317ca54c3Smrg if test "$supported" = "yes" ; then 534417ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 534517ca54c3Smrg found="yes" 534617ca54c3Smrg fi 534717ca54c3Smrg fi 534817ca54c3Smrg 534917ca54c3Smrg if test $found = "no" ; then 535017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 535117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 535217ca54c3Smrg fi 535317ca54c3Smrg 535417ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 535517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 535617ca54c3Smrg fi 535717ca54c3Smrg 535817ca54c3Smrg CFLAGS="$CFLAGS -Wformat" 535917ca54c3Smrg 536017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 536117ca54c3Smrg$as_echo_n "checking if $CC supports -Wformat... " >&6; } 536217ca54c3Smrg cacheid=xorg_cv_cc_flag__Wformat 536317ca54c3Smrg if eval \${$cacheid+:} false; then : 536417ca54c3Smrg $as_echo_n "(cached) " >&6 536517ca54c3Smrgelse 536617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 536717ca54c3Smrg/* end confdefs.h. */ 536817ca54c3Smrgint i; 536917ca54c3Smrgint 537017ca54c3Smrgmain () 537117ca54c3Smrg{ 537217ca54c3Smrg 537317ca54c3Smrg ; 537417ca54c3Smrg return 0; 537517ca54c3Smrg} 537617ca54c3Smrg_ACEOF 537717ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 537817ca54c3Smrg eval $cacheid=yes 537917ca54c3Smrgelse 538017ca54c3Smrg eval $cacheid=no 538117ca54c3Smrgfi 538217ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 538317ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 538417ca54c3Smrgfi 538517ca54c3Smrg 538617ca54c3Smrg 538717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 538817ca54c3Smrg 538917ca54c3Smrg eval supported=\$$cacheid 539017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 539117ca54c3Smrg$as_echo "$supported" >&6; } 539217ca54c3Smrg if test "$supported" = "yes" ; then 539317ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 539417ca54c3Smrg found="yes" 539517ca54c3Smrg fi 539617ca54c3Smrg fi 539717ca54c3Smrg 539817ca54c3Smrg 539917ca54c3Smrg 540017ca54c3Smrg 540117ca54c3Smrg 540217ca54c3Smrg 540317ca54c3Smrg 540417ca54c3Smrg 540517ca54c3Smrg 540617ca54c3Smrg 540717ca54c3Smrg 540817ca54c3Smrg 540917ca54c3Smrg 541017ca54c3Smrg 541117ca54c3Smrg 541217ca54c3Smrg 541317ca54c3Smrg 541417ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 541517ca54c3Smrg 541617ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 541717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 541817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 541917ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 542017ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 542117ca54c3Smrg $as_echo_n "(cached) " >&6 542217ca54c3Smrgelse 542317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 542417ca54c3Smrg/* end confdefs.h. */ 542517ca54c3Smrgint i; 542617ca54c3Smrg_ACEOF 542717ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 542817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 542917ca54c3Smrgelse 543017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 543117ca54c3Smrgfi 543217ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 543317ca54c3Smrgfi 543417ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 543517ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 543617ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 543717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 543817ca54c3Smrgfi 543917ca54c3Smrg 544017ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 544117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 544217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 544317ca54c3Smrg fi 544417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 544517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 544617ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 544717ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 544817ca54c3Smrg $as_echo_n "(cached) " >&6 544917ca54c3Smrgelse 545017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 545117ca54c3Smrg/* end confdefs.h. */ 545217ca54c3Smrgint i; 545317ca54c3Smrg_ACEOF 545417ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 545517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 545617ca54c3Smrgelse 545717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 545817ca54c3Smrgfi 545917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 546017ca54c3Smrgfi 546117ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 546217ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 546317ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 546417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 546517ca54c3Smrgfi 546617ca54c3Smrg 546717ca54c3Smrgfound="no" 546817ca54c3Smrg 546917ca54c3Smrg if test $found = "no" ; then 547017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 547117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 547217ca54c3Smrg fi 547317ca54c3Smrg 547417ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 547517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 547617ca54c3Smrg fi 547717ca54c3Smrg 547817ca54c3Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 547917ca54c3Smrg 548017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 548117ca54c3Smrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 548217ca54c3Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 548317ca54c3Smrg if eval \${$cacheid+:} false; then : 548417ca54c3Smrg $as_echo_n "(cached) " >&6 548517ca54c3Smrgelse 548617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 548717ca54c3Smrg/* end confdefs.h. */ 548817ca54c3Smrgint i; 548917ca54c3Smrgint 549017ca54c3Smrgmain () 549117ca54c3Smrg{ 549217ca54c3Smrg 549317ca54c3Smrg ; 549417ca54c3Smrg return 0; 549517ca54c3Smrg} 549617ca54c3Smrg_ACEOF 549717ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 549817ca54c3Smrg eval $cacheid=yes 549917ca54c3Smrgelse 550017ca54c3Smrg eval $cacheid=no 550117ca54c3Smrgfi 550217ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 550317ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 550417ca54c3Smrgfi 550517ca54c3Smrg 550617ca54c3Smrg 550717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 550817ca54c3Smrg 550917ca54c3Smrg eval supported=\$$cacheid 551017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 551117ca54c3Smrg$as_echo "$supported" >&6; } 551217ca54c3Smrg if test "$supported" = "yes" ; then 551317ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 551417ca54c3Smrg found="yes" 551517ca54c3Smrg fi 551617ca54c3Smrg fi 551717ca54c3Smrg 551817ca54c3Smrg 551917ca54c3Smrg 552017ca54c3Smrg 552117ca54c3Smrg 552217ca54c3Smrg 552317ca54c3Smrg 552417ca54c3Smrg 552517ca54c3Smrg 552617ca54c3Smrg 552717ca54c3Smrg 552817ca54c3Smrg 552917ca54c3Smrg 553017ca54c3Smrg 553117ca54c3Smrg 553217ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 553317ca54c3Smrg 553417ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 553517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 553617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 553717ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 553817ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 553917ca54c3Smrg $as_echo_n "(cached) " >&6 554017ca54c3Smrgelse 554117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 554217ca54c3Smrg/* end confdefs.h. */ 554317ca54c3Smrgint i; 554417ca54c3Smrg_ACEOF 554517ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 554617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 554717ca54c3Smrgelse 554817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 554917ca54c3Smrgfi 555017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 555117ca54c3Smrgfi 555217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 555317ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 555417ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 555517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 555617ca54c3Smrgfi 555717ca54c3Smrg 555817ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 555917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 556017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 556117ca54c3Smrg fi 556217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 556317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 556417ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 556517ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 556617ca54c3Smrg $as_echo_n "(cached) " >&6 556717ca54c3Smrgelse 556817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 556917ca54c3Smrg/* end confdefs.h. */ 557017ca54c3Smrgint i; 557117ca54c3Smrg_ACEOF 557217ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 557317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 557417ca54c3Smrgelse 557517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 557617ca54c3Smrgfi 557717ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 557817ca54c3Smrgfi 557917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 558017ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 558117ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 558217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 558317ca54c3Smrgfi 558417ca54c3Smrg 558517ca54c3Smrgfound="no" 558617ca54c3Smrg 558717ca54c3Smrg if test $found = "no" ; then 558817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 558917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 559017ca54c3Smrg fi 559117ca54c3Smrg 559217ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 559317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 559417ca54c3Smrg fi 559517ca54c3Smrg 559617ca54c3Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 559717ca54c3Smrg 559817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 559917ca54c3Smrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 560017ca54c3Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 560117ca54c3Smrg if eval \${$cacheid+:} false; then : 560217ca54c3Smrg $as_echo_n "(cached) " >&6 560317ca54c3Smrgelse 560417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 560517ca54c3Smrg/* end confdefs.h. */ 560617ca54c3Smrgint i; 560717ca54c3Smrgint 560817ca54c3Smrgmain () 560917ca54c3Smrg{ 561017ca54c3Smrg 561117ca54c3Smrg ; 561217ca54c3Smrg return 0; 561317ca54c3Smrg} 561417ca54c3Smrg_ACEOF 561517ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 561617ca54c3Smrg eval $cacheid=yes 561717ca54c3Smrgelse 561817ca54c3Smrg eval $cacheid=no 561917ca54c3Smrgfi 562017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 562117ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 562217ca54c3Smrgfi 562317ca54c3Smrg 562417ca54c3Smrg 562517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 562617ca54c3Smrg 562717ca54c3Smrg eval supported=\$$cacheid 562817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 562917ca54c3Smrg$as_echo "$supported" >&6; } 563017ca54c3Smrg if test "$supported" = "yes" ; then 563117ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 563217ca54c3Smrg found="yes" 563317ca54c3Smrg fi 563417ca54c3Smrg fi 563517ca54c3Smrg 563617ca54c3Smrg 563717ca54c3Smrg 563817ca54c3Smrg 563917ca54c3Smrg 564017ca54c3Smrg 564117ca54c3Smrg 564217ca54c3Smrg 564317ca54c3Smrg 564417ca54c3Smrg 564517ca54c3Smrg 564617ca54c3Smrg 564717ca54c3Smrg 564817ca54c3Smrg 564917ca54c3Smrg 565017ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 565117ca54c3Smrg 565217ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 565317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 565417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 565517ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 565617ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 565717ca54c3Smrg $as_echo_n "(cached) " >&6 565817ca54c3Smrgelse 565917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 566017ca54c3Smrg/* end confdefs.h. */ 566117ca54c3Smrgint i; 566217ca54c3Smrg_ACEOF 566317ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 566417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 566517ca54c3Smrgelse 566617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 566717ca54c3Smrgfi 566817ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 566917ca54c3Smrgfi 567017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 567117ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 567217ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 567317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 567417ca54c3Smrgfi 567517ca54c3Smrg 567617ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 567717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 567817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 567917ca54c3Smrg fi 568017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 568117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 568217ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 568317ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 568417ca54c3Smrg $as_echo_n "(cached) " >&6 568517ca54c3Smrgelse 568617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 568717ca54c3Smrg/* end confdefs.h. */ 568817ca54c3Smrgint i; 568917ca54c3Smrg_ACEOF 569017ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 569117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 569217ca54c3Smrgelse 569317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 569417ca54c3Smrgfi 569517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 569617ca54c3Smrgfi 569717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 569817ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 569917ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 570017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 570117ca54c3Smrgfi 570217ca54c3Smrg 570317ca54c3Smrgfound="no" 570417ca54c3Smrg 570517ca54c3Smrg if test $found = "no" ; then 570617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 570717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 570817ca54c3Smrg fi 570917ca54c3Smrg 571017ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 571117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 571217ca54c3Smrg fi 571317ca54c3Smrg 571417ca54c3Smrg CFLAGS="$CFLAGS -Wnested-externs" 571517ca54c3Smrg 571617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 571717ca54c3Smrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 571817ca54c3Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 571917ca54c3Smrg if eval \${$cacheid+:} false; then : 572017ca54c3Smrg $as_echo_n "(cached) " >&6 572117ca54c3Smrgelse 572217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 572317ca54c3Smrg/* end confdefs.h. */ 572417ca54c3Smrgint i; 572517ca54c3Smrgint 572617ca54c3Smrgmain () 572717ca54c3Smrg{ 572817ca54c3Smrg 572917ca54c3Smrg ; 573017ca54c3Smrg return 0; 573117ca54c3Smrg} 573217ca54c3Smrg_ACEOF 573317ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 573417ca54c3Smrg eval $cacheid=yes 573517ca54c3Smrgelse 573617ca54c3Smrg eval $cacheid=no 573717ca54c3Smrgfi 573817ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 573917ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 574017ca54c3Smrgfi 574117ca54c3Smrg 574217ca54c3Smrg 574317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 574417ca54c3Smrg 574517ca54c3Smrg eval supported=\$$cacheid 574617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 574717ca54c3Smrg$as_echo "$supported" >&6; } 574817ca54c3Smrg if test "$supported" = "yes" ; then 574917ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 575017ca54c3Smrg found="yes" 575117ca54c3Smrg fi 575217ca54c3Smrg fi 575317ca54c3Smrg 575417ca54c3Smrg 575517ca54c3Smrg 575617ca54c3Smrg 575717ca54c3Smrg 575817ca54c3Smrg 575917ca54c3Smrg 576017ca54c3Smrg 576117ca54c3Smrg 576217ca54c3Smrg 576317ca54c3Smrg 576417ca54c3Smrg 576517ca54c3Smrg 576617ca54c3Smrg 576717ca54c3Smrg 576817ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 576917ca54c3Smrg 577017ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 577117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 577217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 577317ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 577417ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 577517ca54c3Smrg $as_echo_n "(cached) " >&6 577617ca54c3Smrgelse 577717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 577817ca54c3Smrg/* end confdefs.h. */ 577917ca54c3Smrgint i; 578017ca54c3Smrg_ACEOF 578117ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 578217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 578317ca54c3Smrgelse 578417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 578517ca54c3Smrgfi 578617ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 578717ca54c3Smrgfi 578817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 578917ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 579017ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 579117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 579217ca54c3Smrgfi 579317ca54c3Smrg 579417ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 579517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 579617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 579717ca54c3Smrg fi 579817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 579917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 580017ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 580117ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 580217ca54c3Smrg $as_echo_n "(cached) " >&6 580317ca54c3Smrgelse 580417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 580517ca54c3Smrg/* end confdefs.h. */ 580617ca54c3Smrgint i; 580717ca54c3Smrg_ACEOF 580817ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 580917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 581017ca54c3Smrgelse 581117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 581217ca54c3Smrgfi 581317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 581417ca54c3Smrgfi 581517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 581617ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 581717ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 581817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 581917ca54c3Smrgfi 582017ca54c3Smrg 582117ca54c3Smrgfound="no" 582217ca54c3Smrg 582317ca54c3Smrg if test $found = "no" ; then 582417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 582517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 582617ca54c3Smrg fi 582717ca54c3Smrg 582817ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 582917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 583017ca54c3Smrg fi 583117ca54c3Smrg 583217ca54c3Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 583317ca54c3Smrg 583417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 583517ca54c3Smrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 583617ca54c3Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 583717ca54c3Smrg if eval \${$cacheid+:} false; then : 583817ca54c3Smrg $as_echo_n "(cached) " >&6 583917ca54c3Smrgelse 584017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 584117ca54c3Smrg/* end confdefs.h. */ 584217ca54c3Smrgint i; 584317ca54c3Smrgint 584417ca54c3Smrgmain () 584517ca54c3Smrg{ 584617ca54c3Smrg 584717ca54c3Smrg ; 584817ca54c3Smrg return 0; 584917ca54c3Smrg} 585017ca54c3Smrg_ACEOF 585117ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 585217ca54c3Smrg eval $cacheid=yes 585317ca54c3Smrgelse 585417ca54c3Smrg eval $cacheid=no 585517ca54c3Smrgfi 585617ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 585717ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 585817ca54c3Smrgfi 585917ca54c3Smrg 586017ca54c3Smrg 586117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 586217ca54c3Smrg 586317ca54c3Smrg eval supported=\$$cacheid 586417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 586517ca54c3Smrg$as_echo "$supported" >&6; } 586617ca54c3Smrg if test "$supported" = "yes" ; then 586717ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 586817ca54c3Smrg found="yes" 586917ca54c3Smrg fi 587017ca54c3Smrg fi 587117ca54c3Smrg 587217ca54c3Smrg 587317ca54c3Smrg 587417ca54c3Smrg 587517ca54c3Smrg 587617ca54c3Smrg 587717ca54c3Smrg 587817ca54c3Smrg 587917ca54c3Smrg 588017ca54c3Smrg 588117ca54c3Smrg 588217ca54c3Smrg 588317ca54c3Smrg 588417ca54c3Smrg 588517ca54c3Smrg 588617ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 588717ca54c3Smrg 588817ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 588917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 589017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 589117ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 589217ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 589317ca54c3Smrg $as_echo_n "(cached) " >&6 589417ca54c3Smrgelse 589517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 589617ca54c3Smrg/* end confdefs.h. */ 589717ca54c3Smrgint i; 589817ca54c3Smrg_ACEOF 589917ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 590017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 590117ca54c3Smrgelse 590217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 590317ca54c3Smrgfi 590417ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 590517ca54c3Smrgfi 590617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 590717ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 590817ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 590917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 591017ca54c3Smrgfi 591117ca54c3Smrg 591217ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 591317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 591417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 591517ca54c3Smrg fi 591617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 591717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 591817ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 591917ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 592017ca54c3Smrg $as_echo_n "(cached) " >&6 592117ca54c3Smrgelse 592217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 592317ca54c3Smrg/* end confdefs.h. */ 592417ca54c3Smrgint i; 592517ca54c3Smrg_ACEOF 592617ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 592717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 592817ca54c3Smrgelse 592917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 593017ca54c3Smrgfi 593117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 593217ca54c3Smrgfi 593317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 593417ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 593517ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 593617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 593717ca54c3Smrgfi 593817ca54c3Smrg 593917ca54c3Smrgfound="no" 594017ca54c3Smrg 594117ca54c3Smrg if test $found = "no" ; then 594217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 594317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 594417ca54c3Smrg fi 594517ca54c3Smrg 594617ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 594717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 594817ca54c3Smrg fi 594917ca54c3Smrg 595017ca54c3Smrg CFLAGS="$CFLAGS -Wold-style-definition" 595117ca54c3Smrg 595217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 595317ca54c3Smrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 595417ca54c3Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 595517ca54c3Smrg if eval \${$cacheid+:} false; then : 595617ca54c3Smrg $as_echo_n "(cached) " >&6 595717ca54c3Smrgelse 595817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 595917ca54c3Smrg/* end confdefs.h. */ 596017ca54c3Smrgint i; 596117ca54c3Smrgint 596217ca54c3Smrgmain () 596317ca54c3Smrg{ 596417ca54c3Smrg 596517ca54c3Smrg ; 596617ca54c3Smrg return 0; 596717ca54c3Smrg} 596817ca54c3Smrg_ACEOF 596917ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 597017ca54c3Smrg eval $cacheid=yes 597117ca54c3Smrgelse 597217ca54c3Smrg eval $cacheid=no 597317ca54c3Smrgfi 597417ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 597517ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 597617ca54c3Smrgfi 597717ca54c3Smrg 597817ca54c3Smrg 597917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 598017ca54c3Smrg 598117ca54c3Smrg eval supported=\$$cacheid 598217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 598317ca54c3Smrg$as_echo "$supported" >&6; } 598417ca54c3Smrg if test "$supported" = "yes" ; then 598517ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 598617ca54c3Smrg found="yes" 598717ca54c3Smrg fi 598817ca54c3Smrg fi 598917ca54c3Smrg 599017ca54c3Smrg if test $found = "no" ; then 599117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 599217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 599317ca54c3Smrg fi 599417ca54c3Smrg 599517ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 599617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 599717ca54c3Smrg fi 599817ca54c3Smrg 599917ca54c3Smrg CFLAGS="$CFLAGS -fd" 600017ca54c3Smrg 600117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 600217ca54c3Smrg$as_echo_n "checking if $CC supports -fd... " >&6; } 600317ca54c3Smrg cacheid=xorg_cv_cc_flag__fd 600417ca54c3Smrg if eval \${$cacheid+:} false; then : 600517ca54c3Smrg $as_echo_n "(cached) " >&6 600617ca54c3Smrgelse 600717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 600817ca54c3Smrg/* end confdefs.h. */ 600917ca54c3Smrgint i; 601017ca54c3Smrgint 601117ca54c3Smrgmain () 601217ca54c3Smrg{ 601317ca54c3Smrg 601417ca54c3Smrg ; 601517ca54c3Smrg return 0; 601617ca54c3Smrg} 601717ca54c3Smrg_ACEOF 601817ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 601917ca54c3Smrg eval $cacheid=yes 602017ca54c3Smrgelse 602117ca54c3Smrg eval $cacheid=no 602217ca54c3Smrgfi 602317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 602417ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 602517ca54c3Smrgfi 602617ca54c3Smrg 602717ca54c3Smrg 602817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 602917ca54c3Smrg 603017ca54c3Smrg eval supported=\$$cacheid 603117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 603217ca54c3Smrg$as_echo "$supported" >&6; } 603317ca54c3Smrg if test "$supported" = "yes" ; then 603417ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -fd" 603517ca54c3Smrg found="yes" 603617ca54c3Smrg fi 603717ca54c3Smrg fi 603817ca54c3Smrg 603917ca54c3Smrg 604017ca54c3Smrg 604117ca54c3Smrg 604217ca54c3Smrg 604317ca54c3Smrg 604417ca54c3Smrg 604517ca54c3Smrg 604617ca54c3Smrg 604717ca54c3Smrg 604817ca54c3Smrg 604917ca54c3Smrg 605017ca54c3Smrg 605117ca54c3Smrg 605217ca54c3Smrg 605317ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 605417ca54c3Smrg 605517ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 605617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 605717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 605817ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 605917ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 606017ca54c3Smrg $as_echo_n "(cached) " >&6 606117ca54c3Smrgelse 606217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 606317ca54c3Smrg/* end confdefs.h. */ 606417ca54c3Smrgint i; 606517ca54c3Smrg_ACEOF 606617ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 606717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 606817ca54c3Smrgelse 606917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 607017ca54c3Smrgfi 607117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 607217ca54c3Smrgfi 607317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 607417ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 607517ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 607617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 607717ca54c3Smrgfi 607817ca54c3Smrg 607917ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 608017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 608117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 608217ca54c3Smrg fi 608317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 608417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 608517ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 608617ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 608717ca54c3Smrg $as_echo_n "(cached) " >&6 608817ca54c3Smrgelse 608917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 609017ca54c3Smrg/* end confdefs.h. */ 609117ca54c3Smrgint i; 609217ca54c3Smrg_ACEOF 609317ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 609417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 609517ca54c3Smrgelse 609617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 609717ca54c3Smrgfi 609817ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 609917ca54c3Smrgfi 610017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 610117ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 610217ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 610317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 610417ca54c3Smrgfi 610517ca54c3Smrg 610617ca54c3Smrgfound="no" 610717ca54c3Smrg 610817ca54c3Smrg if test $found = "no" ; then 610917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 611017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 611117ca54c3Smrg fi 611217ca54c3Smrg 611317ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 611417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 611517ca54c3Smrg fi 611617ca54c3Smrg 611717ca54c3Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 611817ca54c3Smrg 611917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 612017ca54c3Smrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 612117ca54c3Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 612217ca54c3Smrg if eval \${$cacheid+:} false; then : 612317ca54c3Smrg $as_echo_n "(cached) " >&6 612417ca54c3Smrgelse 612517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 612617ca54c3Smrg/* end confdefs.h. */ 612717ca54c3Smrgint i; 612817ca54c3Smrgint 612917ca54c3Smrgmain () 613017ca54c3Smrg{ 613117ca54c3Smrg 613217ca54c3Smrg ; 613317ca54c3Smrg return 0; 613417ca54c3Smrg} 613517ca54c3Smrg_ACEOF 613617ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 613717ca54c3Smrg eval $cacheid=yes 613817ca54c3Smrgelse 613917ca54c3Smrg eval $cacheid=no 614017ca54c3Smrgfi 614117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 614217ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 614317ca54c3Smrgfi 614417ca54c3Smrg 614517ca54c3Smrg 614617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 614717ca54c3Smrg 614817ca54c3Smrg eval supported=\$$cacheid 614917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 615017ca54c3Smrg$as_echo "$supported" >&6; } 615117ca54c3Smrg if test "$supported" = "yes" ; then 615217ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 615317ca54c3Smrg found="yes" 615417ca54c3Smrg fi 615517ca54c3Smrg fi 615617ca54c3Smrg 615717ca54c3Smrg 615817ca54c3Smrg 615917ca54c3Smrg 616017ca54c3Smrg 616117ca54c3Smrg# This chunk adds additional warnings that could catch undesired effects. 616217ca54c3Smrg 616317ca54c3Smrg 616417ca54c3Smrg 616517ca54c3Smrg 616617ca54c3Smrg 616717ca54c3Smrg 616817ca54c3Smrg 616917ca54c3Smrg 617017ca54c3Smrg 617117ca54c3Smrg 617217ca54c3Smrg 617317ca54c3Smrg 617417ca54c3Smrg 617517ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 617617ca54c3Smrg 617717ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 617817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 617917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 618017ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 618117ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 618217ca54c3Smrg $as_echo_n "(cached) " >&6 618317ca54c3Smrgelse 618417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 618517ca54c3Smrg/* end confdefs.h. */ 618617ca54c3Smrgint i; 618717ca54c3Smrg_ACEOF 618817ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 618917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 619017ca54c3Smrgelse 619117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 619217ca54c3Smrgfi 619317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 619417ca54c3Smrgfi 619517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 619617ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 619717ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 619817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 619917ca54c3Smrgfi 620017ca54c3Smrg 620117ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 620217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 620317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 620417ca54c3Smrg fi 620517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 620617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 620717ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 620817ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 620917ca54c3Smrg $as_echo_n "(cached) " >&6 621017ca54c3Smrgelse 621117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 621217ca54c3Smrg/* end confdefs.h. */ 621317ca54c3Smrgint i; 621417ca54c3Smrg_ACEOF 621517ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 621617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 621717ca54c3Smrgelse 621817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 621917ca54c3Smrgfi 622017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 622117ca54c3Smrgfi 622217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 622317ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 622417ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 622517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 622617ca54c3Smrgfi 622717ca54c3Smrg 622817ca54c3Smrgfound="no" 622917ca54c3Smrg 623017ca54c3Smrg if test $found = "no" ; then 623117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 623217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 623317ca54c3Smrg fi 623417ca54c3Smrg 623517ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 623617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 623717ca54c3Smrg fi 623817ca54c3Smrg 623917ca54c3Smrg CFLAGS="$CFLAGS -Wunused" 624017ca54c3Smrg 624117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 624217ca54c3Smrg$as_echo_n "checking if $CC supports -Wunused... " >&6; } 624317ca54c3Smrg cacheid=xorg_cv_cc_flag__Wunused 624417ca54c3Smrg if eval \${$cacheid+:} false; then : 624517ca54c3Smrg $as_echo_n "(cached) " >&6 624617ca54c3Smrgelse 624717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 624817ca54c3Smrg/* end confdefs.h. */ 624917ca54c3Smrgint i; 625017ca54c3Smrgint 625117ca54c3Smrgmain () 625217ca54c3Smrg{ 625317ca54c3Smrg 625417ca54c3Smrg ; 625517ca54c3Smrg return 0; 625617ca54c3Smrg} 625717ca54c3Smrg_ACEOF 625817ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 625917ca54c3Smrg eval $cacheid=yes 626017ca54c3Smrgelse 626117ca54c3Smrg eval $cacheid=no 626217ca54c3Smrgfi 626317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 626417ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 626517ca54c3Smrgfi 626617ca54c3Smrg 626717ca54c3Smrg 626817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 626917ca54c3Smrg 627017ca54c3Smrg eval supported=\$$cacheid 627117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 627217ca54c3Smrg$as_echo "$supported" >&6; } 627317ca54c3Smrg if test "$supported" = "yes" ; then 627417ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 627517ca54c3Smrg found="yes" 627617ca54c3Smrg fi 627717ca54c3Smrg fi 627817ca54c3Smrg 627917ca54c3Smrg 628017ca54c3Smrg 628117ca54c3Smrg 628217ca54c3Smrg 628317ca54c3Smrg 628417ca54c3Smrg 628517ca54c3Smrg 628617ca54c3Smrg 628717ca54c3Smrg 628817ca54c3Smrg 628917ca54c3Smrg 629017ca54c3Smrg 629117ca54c3Smrg 629217ca54c3Smrg 629317ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 629417ca54c3Smrg 629517ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 629617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 629717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 629817ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 629917ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 630017ca54c3Smrg $as_echo_n "(cached) " >&6 630117ca54c3Smrgelse 630217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 630317ca54c3Smrg/* end confdefs.h. */ 630417ca54c3Smrgint i; 630517ca54c3Smrg_ACEOF 630617ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 630717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 630817ca54c3Smrgelse 630917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 631017ca54c3Smrgfi 631117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 631217ca54c3Smrgfi 631317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 631417ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 631517ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 631617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 631717ca54c3Smrgfi 631817ca54c3Smrg 631917ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 632017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 632117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 632217ca54c3Smrg fi 632317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 632417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 632517ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 632617ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 632717ca54c3Smrg $as_echo_n "(cached) " >&6 632817ca54c3Smrgelse 632917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 633017ca54c3Smrg/* end confdefs.h. */ 633117ca54c3Smrgint i; 633217ca54c3Smrg_ACEOF 633317ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 633417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 633517ca54c3Smrgelse 633617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 633717ca54c3Smrgfi 633817ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 633917ca54c3Smrgfi 634017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 634117ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 634217ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 634317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 634417ca54c3Smrgfi 634517ca54c3Smrg 634617ca54c3Smrgfound="no" 634717ca54c3Smrg 634817ca54c3Smrg if test $found = "no" ; then 634917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 635017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 635117ca54c3Smrg fi 635217ca54c3Smrg 635317ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 635417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 635517ca54c3Smrg fi 635617ca54c3Smrg 635717ca54c3Smrg CFLAGS="$CFLAGS -Wuninitialized" 635817ca54c3Smrg 635917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 636017ca54c3Smrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 636117ca54c3Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 636217ca54c3Smrg if eval \${$cacheid+:} false; then : 636317ca54c3Smrg $as_echo_n "(cached) " >&6 636417ca54c3Smrgelse 636517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 636617ca54c3Smrg/* end confdefs.h. */ 636717ca54c3Smrgint i; 636817ca54c3Smrgint 636917ca54c3Smrgmain () 637017ca54c3Smrg{ 637117ca54c3Smrg 637217ca54c3Smrg ; 637317ca54c3Smrg return 0; 637417ca54c3Smrg} 637517ca54c3Smrg_ACEOF 637617ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 637717ca54c3Smrg eval $cacheid=yes 637817ca54c3Smrgelse 637917ca54c3Smrg eval $cacheid=no 638017ca54c3Smrgfi 638117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 638217ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 638317ca54c3Smrgfi 638417ca54c3Smrg 638517ca54c3Smrg 638617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 638717ca54c3Smrg 638817ca54c3Smrg eval supported=\$$cacheid 638917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 639017ca54c3Smrg$as_echo "$supported" >&6; } 639117ca54c3Smrg if test "$supported" = "yes" ; then 639217ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 639317ca54c3Smrg found="yes" 639417ca54c3Smrg fi 639517ca54c3Smrg fi 639617ca54c3Smrg 639717ca54c3Smrg 639817ca54c3Smrg 639917ca54c3Smrg 640017ca54c3Smrg 640117ca54c3Smrg 640217ca54c3Smrg 640317ca54c3Smrg 640417ca54c3Smrg 640517ca54c3Smrg 640617ca54c3Smrg 640717ca54c3Smrg 640817ca54c3Smrg 640917ca54c3Smrg 641017ca54c3Smrg 641117ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 641217ca54c3Smrg 641317ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 641417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 641517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 641617ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 641717ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 641817ca54c3Smrg $as_echo_n "(cached) " >&6 641917ca54c3Smrgelse 642017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 642117ca54c3Smrg/* end confdefs.h. */ 642217ca54c3Smrgint i; 642317ca54c3Smrg_ACEOF 642417ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 642517ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 642617ca54c3Smrgelse 642717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 642817ca54c3Smrgfi 642917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 643017ca54c3Smrgfi 643117ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 643217ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 643317ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 643417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 643517ca54c3Smrgfi 643617ca54c3Smrg 643717ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 643817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 643917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 644017ca54c3Smrg fi 644117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 644217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 644317ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 644417ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 644517ca54c3Smrg $as_echo_n "(cached) " >&6 644617ca54c3Smrgelse 644717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 644817ca54c3Smrg/* end confdefs.h. */ 644917ca54c3Smrgint i; 645017ca54c3Smrg_ACEOF 645117ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 645217ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 645317ca54c3Smrgelse 645417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 645517ca54c3Smrgfi 645617ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 645717ca54c3Smrgfi 645817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 645917ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 646017ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 646117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 646217ca54c3Smrgfi 646317ca54c3Smrg 646417ca54c3Smrgfound="no" 646517ca54c3Smrg 646617ca54c3Smrg if test $found = "no" ; then 646717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 646817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 646917ca54c3Smrg fi 647017ca54c3Smrg 647117ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 647217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 647317ca54c3Smrg fi 647417ca54c3Smrg 647517ca54c3Smrg CFLAGS="$CFLAGS -Wshadow" 647617ca54c3Smrg 647717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 647817ca54c3Smrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 647917ca54c3Smrg cacheid=xorg_cv_cc_flag__Wshadow 648017ca54c3Smrg if eval \${$cacheid+:} false; then : 648117ca54c3Smrg $as_echo_n "(cached) " >&6 648217ca54c3Smrgelse 648317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 648417ca54c3Smrg/* end confdefs.h. */ 648517ca54c3Smrgint i; 648617ca54c3Smrgint 648717ca54c3Smrgmain () 648817ca54c3Smrg{ 648917ca54c3Smrg 649017ca54c3Smrg ; 649117ca54c3Smrg return 0; 649217ca54c3Smrg} 649317ca54c3Smrg_ACEOF 649417ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 649517ca54c3Smrg eval $cacheid=yes 649617ca54c3Smrgelse 649717ca54c3Smrg eval $cacheid=no 649817ca54c3Smrgfi 649917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 650017ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 650117ca54c3Smrgfi 650217ca54c3Smrg 650317ca54c3Smrg 650417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 650517ca54c3Smrg 650617ca54c3Smrg eval supported=\$$cacheid 650717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 650817ca54c3Smrg$as_echo "$supported" >&6; } 650917ca54c3Smrg if test "$supported" = "yes" ; then 651017ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 651117ca54c3Smrg found="yes" 651217ca54c3Smrg fi 651317ca54c3Smrg fi 651417ca54c3Smrg 651517ca54c3Smrg 651617ca54c3Smrg 651717ca54c3Smrg 651817ca54c3Smrg 651917ca54c3Smrg 652017ca54c3Smrg 652117ca54c3Smrg 652217ca54c3Smrg 652317ca54c3Smrg 652417ca54c3Smrg 652517ca54c3Smrg 652617ca54c3Smrg 652717ca54c3Smrg 652817ca54c3Smrg 652917ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 653017ca54c3Smrg 653117ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 653217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 653317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 653417ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 653517ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 653617ca54c3Smrg $as_echo_n "(cached) " >&6 653717ca54c3Smrgelse 653817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 653917ca54c3Smrg/* end confdefs.h. */ 654017ca54c3Smrgint i; 654117ca54c3Smrg_ACEOF 654217ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 654317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 654417ca54c3Smrgelse 654517ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 654617ca54c3Smrgfi 654717ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 654817ca54c3Smrgfi 654917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 655017ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 655117ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 655217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 655317ca54c3Smrgfi 655417ca54c3Smrg 655517ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 655617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 655717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 655817ca54c3Smrg fi 655917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 656017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 656117ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 656217ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 656317ca54c3Smrg $as_echo_n "(cached) " >&6 656417ca54c3Smrgelse 656517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 656617ca54c3Smrg/* end confdefs.h. */ 656717ca54c3Smrgint i; 656817ca54c3Smrg_ACEOF 656917ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 657017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 657117ca54c3Smrgelse 657217ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 657317ca54c3Smrgfi 657417ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 657517ca54c3Smrgfi 657617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 657717ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 657817ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 657917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 658017ca54c3Smrgfi 658117ca54c3Smrg 658217ca54c3Smrgfound="no" 658317ca54c3Smrg 658417ca54c3Smrg if test $found = "no" ; then 658517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 658617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 658717ca54c3Smrg fi 658817ca54c3Smrg 658917ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 659017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 659117ca54c3Smrg fi 659217ca54c3Smrg 659317ca54c3Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 659417ca54c3Smrg 659517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 659617ca54c3Smrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 659717ca54c3Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 659817ca54c3Smrg if eval \${$cacheid+:} false; then : 659917ca54c3Smrg $as_echo_n "(cached) " >&6 660017ca54c3Smrgelse 660117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 660217ca54c3Smrg/* end confdefs.h. */ 660317ca54c3Smrgint i; 660417ca54c3Smrgint 660517ca54c3Smrgmain () 660617ca54c3Smrg{ 660717ca54c3Smrg 660817ca54c3Smrg ; 660917ca54c3Smrg return 0; 661017ca54c3Smrg} 661117ca54c3Smrg_ACEOF 661217ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 661317ca54c3Smrg eval $cacheid=yes 661417ca54c3Smrgelse 661517ca54c3Smrg eval $cacheid=no 661617ca54c3Smrgfi 661717ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 661817ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 661917ca54c3Smrgfi 662017ca54c3Smrg 662117ca54c3Smrg 662217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 662317ca54c3Smrg 662417ca54c3Smrg eval supported=\$$cacheid 662517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 662617ca54c3Smrg$as_echo "$supported" >&6; } 662717ca54c3Smrg if test "$supported" = "yes" ; then 662817ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 662917ca54c3Smrg found="yes" 663017ca54c3Smrg fi 663117ca54c3Smrg fi 663217ca54c3Smrg 663317ca54c3Smrg 663417ca54c3Smrg 663517ca54c3Smrg 663617ca54c3Smrg 663717ca54c3Smrg 663817ca54c3Smrg 663917ca54c3Smrg 664017ca54c3Smrg 664117ca54c3Smrg 664217ca54c3Smrg 664317ca54c3Smrg 664417ca54c3Smrg 664517ca54c3Smrg 664617ca54c3Smrg 664717ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 664817ca54c3Smrg 664917ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 665017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 665117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 665217ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 665317ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 665417ca54c3Smrg $as_echo_n "(cached) " >&6 665517ca54c3Smrgelse 665617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 665717ca54c3Smrg/* end confdefs.h. */ 665817ca54c3Smrgint i; 665917ca54c3Smrg_ACEOF 666017ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 666117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 666217ca54c3Smrgelse 666317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 666417ca54c3Smrgfi 666517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 666617ca54c3Smrgfi 666717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 666817ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 666917ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 667017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 667117ca54c3Smrgfi 667217ca54c3Smrg 667317ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 667417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 667517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 667617ca54c3Smrg fi 667717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 667817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 667917ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 668017ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 668117ca54c3Smrg $as_echo_n "(cached) " >&6 668217ca54c3Smrgelse 668317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 668417ca54c3Smrg/* end confdefs.h. */ 668517ca54c3Smrgint i; 668617ca54c3Smrg_ACEOF 668717ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 668817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 668917ca54c3Smrgelse 669017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 669117ca54c3Smrgfi 669217ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 669317ca54c3Smrgfi 669417ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 669517ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 669617ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 669717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 669817ca54c3Smrgfi 669917ca54c3Smrg 670017ca54c3Smrgfound="no" 670117ca54c3Smrg 670217ca54c3Smrg if test $found = "no" ; then 670317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 670417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 670517ca54c3Smrg fi 670617ca54c3Smrg 670717ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 670817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 670917ca54c3Smrg fi 671017ca54c3Smrg 671117ca54c3Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 671217ca54c3Smrg 671317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 671417ca54c3Smrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 671517ca54c3Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 671617ca54c3Smrg if eval \${$cacheid+:} false; then : 671717ca54c3Smrg $as_echo_n "(cached) " >&6 671817ca54c3Smrgelse 671917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 672017ca54c3Smrg/* end confdefs.h. */ 672117ca54c3Smrgint i; 672217ca54c3Smrgint 672317ca54c3Smrgmain () 672417ca54c3Smrg{ 672517ca54c3Smrg 672617ca54c3Smrg ; 672717ca54c3Smrg return 0; 672817ca54c3Smrg} 672917ca54c3Smrg_ACEOF 673017ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 673117ca54c3Smrg eval $cacheid=yes 673217ca54c3Smrgelse 673317ca54c3Smrg eval $cacheid=no 673417ca54c3Smrgfi 673517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 673617ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 673717ca54c3Smrgfi 673817ca54c3Smrg 673917ca54c3Smrg 674017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 674117ca54c3Smrg 674217ca54c3Smrg eval supported=\$$cacheid 674317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 674417ca54c3Smrg$as_echo "$supported" >&6; } 674517ca54c3Smrg if test "$supported" = "yes" ; then 674617ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 674717ca54c3Smrg found="yes" 674817ca54c3Smrg fi 674917ca54c3Smrg fi 675017ca54c3Smrg 675117ca54c3Smrg 675217ca54c3Smrg 675317ca54c3Smrg 675417ca54c3Smrg 675517ca54c3Smrg 675617ca54c3Smrg 675717ca54c3Smrg 675817ca54c3Smrg 675917ca54c3Smrg 676017ca54c3Smrg 676117ca54c3Smrg 676217ca54c3Smrg 676317ca54c3Smrg 676417ca54c3Smrg 676517ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 676617ca54c3Smrg 676717ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 676817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 676917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 677017ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 677117ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 677217ca54c3Smrg $as_echo_n "(cached) " >&6 677317ca54c3Smrgelse 677417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 677517ca54c3Smrg/* end confdefs.h. */ 677617ca54c3Smrgint i; 677717ca54c3Smrg_ACEOF 677817ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 677917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 678017ca54c3Smrgelse 678117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 678217ca54c3Smrgfi 678317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 678417ca54c3Smrgfi 678517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 678617ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 678717ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 678817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 678917ca54c3Smrgfi 679017ca54c3Smrg 679117ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 679217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 679317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 679417ca54c3Smrg fi 679517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 679617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 679717ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 679817ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 679917ca54c3Smrg $as_echo_n "(cached) " >&6 680017ca54c3Smrgelse 680117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 680217ca54c3Smrg/* end confdefs.h. */ 680317ca54c3Smrgint i; 680417ca54c3Smrg_ACEOF 680517ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 680617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 680717ca54c3Smrgelse 680817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 680917ca54c3Smrgfi 681017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 681117ca54c3Smrgfi 681217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 681317ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 681417ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 681517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 681617ca54c3Smrgfi 681717ca54c3Smrg 681817ca54c3Smrgfound="no" 681917ca54c3Smrg 682017ca54c3Smrg if test $found = "no" ; then 682117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 682217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 682317ca54c3Smrg fi 682417ca54c3Smrg 682517ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 682617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 682717ca54c3Smrg fi 682817ca54c3Smrg 682917ca54c3Smrg CFLAGS="$CFLAGS -Wredundant-decls" 683017ca54c3Smrg 683117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 683217ca54c3Smrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 683317ca54c3Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 683417ca54c3Smrg if eval \${$cacheid+:} false; then : 683517ca54c3Smrg $as_echo_n "(cached) " >&6 683617ca54c3Smrgelse 683717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 683817ca54c3Smrg/* end confdefs.h. */ 683917ca54c3Smrgint i; 684017ca54c3Smrgint 684117ca54c3Smrgmain () 684217ca54c3Smrg{ 684317ca54c3Smrg 684417ca54c3Smrg ; 684517ca54c3Smrg return 0; 684617ca54c3Smrg} 684717ca54c3Smrg_ACEOF 684817ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 684917ca54c3Smrg eval $cacheid=yes 685017ca54c3Smrgelse 685117ca54c3Smrg eval $cacheid=no 685217ca54c3Smrgfi 685317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 685417ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 685517ca54c3Smrgfi 685617ca54c3Smrg 685717ca54c3Smrg 685817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 685917ca54c3Smrg 686017ca54c3Smrg eval supported=\$$cacheid 686117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 686217ca54c3Smrg$as_echo "$supported" >&6; } 686317ca54c3Smrg if test "$supported" = "yes" ; then 686417ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 686517ca54c3Smrg found="yes" 686617ca54c3Smrg fi 686717ca54c3Smrg fi 686817ca54c3Smrg 686917ca54c3Smrg 687017ca54c3Smrg 687117ca54c3Smrg 687217ca54c3Smrg 687317ca54c3Smrg 687417ca54c3Smrg 687517ca54c3Smrg 687617ca54c3Smrg 687717ca54c3Smrg 687817ca54c3Smrg 687917ca54c3Smrg 688017ca54c3Smrg 688117ca54c3Smrg 688217ca54c3Smrg 688317ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 688417ca54c3Smrg 688517ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 688617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 688717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 688817ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 688917ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 689017ca54c3Smrg $as_echo_n "(cached) " >&6 689117ca54c3Smrgelse 689217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 689317ca54c3Smrg/* end confdefs.h. */ 689417ca54c3Smrgint i; 689517ca54c3Smrg_ACEOF 689617ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 689717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 689817ca54c3Smrgelse 689917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 690017ca54c3Smrgfi 690117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 690217ca54c3Smrgfi 690317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 690417ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 690517ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 690617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 690717ca54c3Smrgfi 690817ca54c3Smrg 690917ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 691017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 691117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 691217ca54c3Smrg fi 691317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 691417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 691517ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 691617ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 691717ca54c3Smrg $as_echo_n "(cached) " >&6 691817ca54c3Smrgelse 691917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 692017ca54c3Smrg/* end confdefs.h. */ 692117ca54c3Smrgint i; 692217ca54c3Smrg_ACEOF 692317ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 692417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 692517ca54c3Smrgelse 692617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 692717ca54c3Smrgfi 692817ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 692917ca54c3Smrgfi 693017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 693117ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 693217ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 693317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 693417ca54c3Smrgfi 693517ca54c3Smrg 693617ca54c3Smrgfound="no" 693717ca54c3Smrg 693817ca54c3Smrg if test $found = "no" ; then 693917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 694017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 694117ca54c3Smrg fi 694217ca54c3Smrg 694317ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 694417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 694517ca54c3Smrg fi 694617ca54c3Smrg 694717ca54c3Smrg CFLAGS="$CFLAGS -Wlogical-op" 694817ca54c3Smrg 694917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 695017ca54c3Smrg$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 695117ca54c3Smrg cacheid=xorg_cv_cc_flag__Wlogical_op 695217ca54c3Smrg if eval \${$cacheid+:} false; then : 695317ca54c3Smrg $as_echo_n "(cached) " >&6 695417ca54c3Smrgelse 695517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 695617ca54c3Smrg/* end confdefs.h. */ 695717ca54c3Smrgint i; 695817ca54c3Smrgint 695917ca54c3Smrgmain () 696017ca54c3Smrg{ 696117ca54c3Smrg 696217ca54c3Smrg ; 696317ca54c3Smrg return 0; 696417ca54c3Smrg} 696517ca54c3Smrg_ACEOF 696617ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 696717ca54c3Smrg eval $cacheid=yes 696817ca54c3Smrgelse 696917ca54c3Smrg eval $cacheid=no 697017ca54c3Smrgfi 697117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 697217ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 697317ca54c3Smrgfi 697417ca54c3Smrg 697517ca54c3Smrg 697617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 697717ca54c3Smrg 697817ca54c3Smrg eval supported=\$$cacheid 697917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 698017ca54c3Smrg$as_echo "$supported" >&6; } 698117ca54c3Smrg if test "$supported" = "yes" ; then 698217ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 698317ca54c3Smrg found="yes" 698417ca54c3Smrg fi 698517ca54c3Smrg fi 698617ca54c3Smrg 698717ca54c3Smrg 698817ca54c3Smrg 698917ca54c3Smrg# These are currently disabled because they are noisy. They will be enabled 699017ca54c3Smrg# in the future once the codebase is sufficiently modernized to silence 699117ca54c3Smrg# them. For now, I don't want them to drown out the other warnings. 699217ca54c3Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 699317ca54c3Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 699417ca54c3Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 699517ca54c3Smrg 699617ca54c3Smrg# Turn some warnings into errors, so we don't accidently get successful builds 699717ca54c3Smrg# when there are problems that should be fixed. 699817ca54c3Smrg 699917ca54c3Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 700017ca54c3Smrg 700117ca54c3Smrg 700217ca54c3Smrg 700317ca54c3Smrg 700417ca54c3Smrg 700517ca54c3Smrg 700617ca54c3Smrg 700717ca54c3Smrg 700817ca54c3Smrg 700917ca54c3Smrg 701017ca54c3Smrg 701117ca54c3Smrg 701217ca54c3Smrg 701317ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 701417ca54c3Smrg 701517ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 701617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 701717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 701817ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 701917ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 702017ca54c3Smrg $as_echo_n "(cached) " >&6 702117ca54c3Smrgelse 702217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 702317ca54c3Smrg/* end confdefs.h. */ 702417ca54c3Smrgint i; 702517ca54c3Smrg_ACEOF 702617ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 702717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 702817ca54c3Smrgelse 702917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 703017ca54c3Smrgfi 703117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 703217ca54c3Smrgfi 703317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 703417ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 703517ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 703617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 703717ca54c3Smrgfi 703817ca54c3Smrg 703917ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 704017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 704117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 704217ca54c3Smrg fi 704317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 704417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 704517ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 704617ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 704717ca54c3Smrg $as_echo_n "(cached) " >&6 704817ca54c3Smrgelse 704917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 705017ca54c3Smrg/* end confdefs.h. */ 705117ca54c3Smrgint i; 705217ca54c3Smrg_ACEOF 705317ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 705417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 705517ca54c3Smrgelse 705617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 705717ca54c3Smrgfi 705817ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 705917ca54c3Smrgfi 706017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 706117ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 706217ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 706317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 706417ca54c3Smrgfi 706517ca54c3Smrg 706617ca54c3Smrgfound="no" 706717ca54c3Smrg 706817ca54c3Smrg if test $found = "no" ; then 706917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 707017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 707117ca54c3Smrg fi 707217ca54c3Smrg 707317ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 707417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 707517ca54c3Smrg fi 707617ca54c3Smrg 707717ca54c3Smrg CFLAGS="$CFLAGS -Werror=implicit" 707817ca54c3Smrg 707917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 708017ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 708117ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 708217ca54c3Smrg if eval \${$cacheid+:} false; then : 708317ca54c3Smrg $as_echo_n "(cached) " >&6 708417ca54c3Smrgelse 708517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 708617ca54c3Smrg/* end confdefs.h. */ 708717ca54c3Smrgint i; 708817ca54c3Smrgint 708917ca54c3Smrgmain () 709017ca54c3Smrg{ 709117ca54c3Smrg 709217ca54c3Smrg ; 709317ca54c3Smrg return 0; 709417ca54c3Smrg} 709517ca54c3Smrg_ACEOF 709617ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 709717ca54c3Smrg eval $cacheid=yes 709817ca54c3Smrgelse 709917ca54c3Smrg eval $cacheid=no 710017ca54c3Smrgfi 710117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 710217ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 710317ca54c3Smrgfi 710417ca54c3Smrg 710517ca54c3Smrg 710617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 710717ca54c3Smrg 710817ca54c3Smrg eval supported=\$$cacheid 710917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 711017ca54c3Smrg$as_echo "$supported" >&6; } 711117ca54c3Smrg if test "$supported" = "yes" ; then 711217ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 711317ca54c3Smrg found="yes" 711417ca54c3Smrg fi 711517ca54c3Smrg fi 711617ca54c3Smrg 711717ca54c3Smrg if test $found = "no" ; then 711817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 711917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 712017ca54c3Smrg fi 712117ca54c3Smrg 712217ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 712317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 712417ca54c3Smrg fi 712517ca54c3Smrg 712617ca54c3Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 712717ca54c3Smrg 712817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 712917ca54c3Smrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 713017ca54c3Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 713117ca54c3Smrg if eval \${$cacheid+:} false; then : 713217ca54c3Smrg $as_echo_n "(cached) " >&6 713317ca54c3Smrgelse 713417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 713517ca54c3Smrg/* end confdefs.h. */ 713617ca54c3Smrgint i; 713717ca54c3Smrgint 713817ca54c3Smrgmain () 713917ca54c3Smrg{ 714017ca54c3Smrg 714117ca54c3Smrg ; 714217ca54c3Smrg return 0; 714317ca54c3Smrg} 714417ca54c3Smrg_ACEOF 714517ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 714617ca54c3Smrg eval $cacheid=yes 714717ca54c3Smrgelse 714817ca54c3Smrg eval $cacheid=no 714917ca54c3Smrgfi 715017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 715117ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 715217ca54c3Smrgfi 715317ca54c3Smrg 715417ca54c3Smrg 715517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 715617ca54c3Smrg 715717ca54c3Smrg eval supported=\$$cacheid 715817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 715917ca54c3Smrg$as_echo "$supported" >&6; } 716017ca54c3Smrg if test "$supported" = "yes" ; then 716117ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 716217ca54c3Smrg found="yes" 716317ca54c3Smrg fi 716417ca54c3Smrg fi 716517ca54c3Smrg 716617ca54c3Smrg 716717ca54c3Smrg 716817ca54c3Smrg 716917ca54c3Smrg 717017ca54c3Smrg 717117ca54c3Smrg 717217ca54c3Smrg 717317ca54c3Smrg 717417ca54c3Smrg 717517ca54c3Smrg 717617ca54c3Smrg 717717ca54c3Smrg 717817ca54c3Smrg 717917ca54c3Smrg 718017ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 718117ca54c3Smrg 718217ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 718317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 718417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 718517ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 718617ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 718717ca54c3Smrg $as_echo_n "(cached) " >&6 718817ca54c3Smrgelse 718917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 719017ca54c3Smrg/* end confdefs.h. */ 719117ca54c3Smrgint i; 719217ca54c3Smrg_ACEOF 719317ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 719417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 719517ca54c3Smrgelse 719617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 719717ca54c3Smrgfi 719817ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 719917ca54c3Smrgfi 720017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 720117ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 720217ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 720317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 720417ca54c3Smrgfi 720517ca54c3Smrg 720617ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 720717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 720817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 720917ca54c3Smrg fi 721017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 721117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 721217ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 721317ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 721417ca54c3Smrg $as_echo_n "(cached) " >&6 721517ca54c3Smrgelse 721617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 721717ca54c3Smrg/* end confdefs.h. */ 721817ca54c3Smrgint i; 721917ca54c3Smrg_ACEOF 722017ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 722117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 722217ca54c3Smrgelse 722317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 722417ca54c3Smrgfi 722517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 722617ca54c3Smrgfi 722717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 722817ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 722917ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 723017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 723117ca54c3Smrgfi 723217ca54c3Smrg 723317ca54c3Smrgfound="no" 723417ca54c3Smrg 723517ca54c3Smrg if test $found = "no" ; then 723617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 723717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 723817ca54c3Smrg fi 723917ca54c3Smrg 724017ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 724117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 724217ca54c3Smrg fi 724317ca54c3Smrg 724417ca54c3Smrg CFLAGS="$CFLAGS -Werror=nonnull" 724517ca54c3Smrg 724617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 724717ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 724817ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 724917ca54c3Smrg if eval \${$cacheid+:} false; then : 725017ca54c3Smrg $as_echo_n "(cached) " >&6 725117ca54c3Smrgelse 725217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 725317ca54c3Smrg/* end confdefs.h. */ 725417ca54c3Smrgint i; 725517ca54c3Smrgint 725617ca54c3Smrgmain () 725717ca54c3Smrg{ 725817ca54c3Smrg 725917ca54c3Smrg ; 726017ca54c3Smrg return 0; 726117ca54c3Smrg} 726217ca54c3Smrg_ACEOF 726317ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 726417ca54c3Smrg eval $cacheid=yes 726517ca54c3Smrgelse 726617ca54c3Smrg eval $cacheid=no 726717ca54c3Smrgfi 726817ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 726917ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 727017ca54c3Smrgfi 727117ca54c3Smrg 727217ca54c3Smrg 727317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 727417ca54c3Smrg 727517ca54c3Smrg eval supported=\$$cacheid 727617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 727717ca54c3Smrg$as_echo "$supported" >&6; } 727817ca54c3Smrg if test "$supported" = "yes" ; then 727917ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 728017ca54c3Smrg found="yes" 728117ca54c3Smrg fi 728217ca54c3Smrg fi 728317ca54c3Smrg 728417ca54c3Smrg 728517ca54c3Smrg 728617ca54c3Smrg 728717ca54c3Smrg 728817ca54c3Smrg 728917ca54c3Smrg 729017ca54c3Smrg 729117ca54c3Smrg 729217ca54c3Smrg 729317ca54c3Smrg 729417ca54c3Smrg 729517ca54c3Smrg 729617ca54c3Smrg 729717ca54c3Smrg 729817ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 729917ca54c3Smrg 730017ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 730117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 730217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 730317ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 730417ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 730517ca54c3Smrg $as_echo_n "(cached) " >&6 730617ca54c3Smrgelse 730717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 730817ca54c3Smrg/* end confdefs.h. */ 730917ca54c3Smrgint i; 731017ca54c3Smrg_ACEOF 731117ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 731217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 731317ca54c3Smrgelse 731417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 731517ca54c3Smrgfi 731617ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 731717ca54c3Smrgfi 731817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 731917ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 732017ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 732117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 732217ca54c3Smrgfi 732317ca54c3Smrg 732417ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 732517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 732617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 732717ca54c3Smrg fi 732817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 732917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 733017ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 733117ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 733217ca54c3Smrg $as_echo_n "(cached) " >&6 733317ca54c3Smrgelse 733417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 733517ca54c3Smrg/* end confdefs.h. */ 733617ca54c3Smrgint i; 733717ca54c3Smrg_ACEOF 733817ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 733917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 734017ca54c3Smrgelse 734117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 734217ca54c3Smrgfi 734317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 734417ca54c3Smrgfi 734517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 734617ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 734717ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 734817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 734917ca54c3Smrgfi 735017ca54c3Smrg 735117ca54c3Smrgfound="no" 735217ca54c3Smrg 735317ca54c3Smrg if test $found = "no" ; then 735417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 735517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 735617ca54c3Smrg fi 735717ca54c3Smrg 735817ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 735917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 736017ca54c3Smrg fi 736117ca54c3Smrg 736217ca54c3Smrg CFLAGS="$CFLAGS -Werror=init-self" 736317ca54c3Smrg 736417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 736517ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 736617ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 736717ca54c3Smrg if eval \${$cacheid+:} false; then : 736817ca54c3Smrg $as_echo_n "(cached) " >&6 736917ca54c3Smrgelse 737017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 737117ca54c3Smrg/* end confdefs.h. */ 737217ca54c3Smrgint i; 737317ca54c3Smrgint 737417ca54c3Smrgmain () 737517ca54c3Smrg{ 737617ca54c3Smrg 737717ca54c3Smrg ; 737817ca54c3Smrg return 0; 737917ca54c3Smrg} 738017ca54c3Smrg_ACEOF 738117ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 738217ca54c3Smrg eval $cacheid=yes 738317ca54c3Smrgelse 738417ca54c3Smrg eval $cacheid=no 738517ca54c3Smrgfi 738617ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 738717ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 738817ca54c3Smrgfi 738917ca54c3Smrg 739017ca54c3Smrg 739117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 739217ca54c3Smrg 739317ca54c3Smrg eval supported=\$$cacheid 739417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 739517ca54c3Smrg$as_echo "$supported" >&6; } 739617ca54c3Smrg if test "$supported" = "yes" ; then 739717ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 739817ca54c3Smrg found="yes" 739917ca54c3Smrg fi 740017ca54c3Smrg fi 740117ca54c3Smrg 740217ca54c3Smrg 740317ca54c3Smrg 740417ca54c3Smrg 740517ca54c3Smrg 740617ca54c3Smrg 740717ca54c3Smrg 740817ca54c3Smrg 740917ca54c3Smrg 741017ca54c3Smrg 741117ca54c3Smrg 741217ca54c3Smrg 741317ca54c3Smrg 741417ca54c3Smrg 741517ca54c3Smrg 741617ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 741717ca54c3Smrg 741817ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 741917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 742017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 742117ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 742217ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 742317ca54c3Smrg $as_echo_n "(cached) " >&6 742417ca54c3Smrgelse 742517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 742617ca54c3Smrg/* end confdefs.h. */ 742717ca54c3Smrgint i; 742817ca54c3Smrg_ACEOF 742917ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 743017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 743117ca54c3Smrgelse 743217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 743317ca54c3Smrgfi 743417ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 743517ca54c3Smrgfi 743617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 743717ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 743817ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 743917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 744017ca54c3Smrgfi 744117ca54c3Smrg 744217ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 744317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 744417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 744517ca54c3Smrg fi 744617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 744717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 744817ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 744917ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 745017ca54c3Smrg $as_echo_n "(cached) " >&6 745117ca54c3Smrgelse 745217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 745317ca54c3Smrg/* end confdefs.h. */ 745417ca54c3Smrgint i; 745517ca54c3Smrg_ACEOF 745617ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 745717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 745817ca54c3Smrgelse 745917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 746017ca54c3Smrgfi 746117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 746217ca54c3Smrgfi 746317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 746417ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 746517ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 746617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 746717ca54c3Smrgfi 746817ca54c3Smrg 746917ca54c3Smrgfound="no" 747017ca54c3Smrg 747117ca54c3Smrg if test $found = "no" ; then 747217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 747317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 747417ca54c3Smrg fi 747517ca54c3Smrg 747617ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 747717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 747817ca54c3Smrg fi 747917ca54c3Smrg 748017ca54c3Smrg CFLAGS="$CFLAGS -Werror=main" 748117ca54c3Smrg 748217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 748317ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 748417ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_main 748517ca54c3Smrg if eval \${$cacheid+:} false; then : 748617ca54c3Smrg $as_echo_n "(cached) " >&6 748717ca54c3Smrgelse 748817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 748917ca54c3Smrg/* end confdefs.h. */ 749017ca54c3Smrgint i; 749117ca54c3Smrgint 749217ca54c3Smrgmain () 749317ca54c3Smrg{ 749417ca54c3Smrg 749517ca54c3Smrg ; 749617ca54c3Smrg return 0; 749717ca54c3Smrg} 749817ca54c3Smrg_ACEOF 749917ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 750017ca54c3Smrg eval $cacheid=yes 750117ca54c3Smrgelse 750217ca54c3Smrg eval $cacheid=no 750317ca54c3Smrgfi 750417ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 750517ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 750617ca54c3Smrgfi 750717ca54c3Smrg 750817ca54c3Smrg 750917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 751017ca54c3Smrg 751117ca54c3Smrg eval supported=\$$cacheid 751217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 751317ca54c3Smrg$as_echo "$supported" >&6; } 751417ca54c3Smrg if test "$supported" = "yes" ; then 751517ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 751617ca54c3Smrg found="yes" 751717ca54c3Smrg fi 751817ca54c3Smrg fi 751917ca54c3Smrg 752017ca54c3Smrg 752117ca54c3Smrg 752217ca54c3Smrg 752317ca54c3Smrg 752417ca54c3Smrg 752517ca54c3Smrg 752617ca54c3Smrg 752717ca54c3Smrg 752817ca54c3Smrg 752917ca54c3Smrg 753017ca54c3Smrg 753117ca54c3Smrg 753217ca54c3Smrg 753317ca54c3Smrg 753417ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 753517ca54c3Smrg 753617ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 753717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 753817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 753917ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 754017ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 754117ca54c3Smrg $as_echo_n "(cached) " >&6 754217ca54c3Smrgelse 754317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 754417ca54c3Smrg/* end confdefs.h. */ 754517ca54c3Smrgint i; 754617ca54c3Smrg_ACEOF 754717ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 754817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 754917ca54c3Smrgelse 755017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 755117ca54c3Smrgfi 755217ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 755317ca54c3Smrgfi 755417ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 755517ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 755617ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 755717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 755817ca54c3Smrgfi 755917ca54c3Smrg 756017ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 756117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 756217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 756317ca54c3Smrg fi 756417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 756517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 756617ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 756717ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 756817ca54c3Smrg $as_echo_n "(cached) " >&6 756917ca54c3Smrgelse 757017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 757117ca54c3Smrg/* end confdefs.h. */ 757217ca54c3Smrgint i; 757317ca54c3Smrg_ACEOF 757417ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 757517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 757617ca54c3Smrgelse 757717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 757817ca54c3Smrgfi 757917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 758017ca54c3Smrgfi 758117ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 758217ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 758317ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 758417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 758517ca54c3Smrgfi 758617ca54c3Smrg 758717ca54c3Smrgfound="no" 758817ca54c3Smrg 758917ca54c3Smrg if test $found = "no" ; then 759017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 759117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 759217ca54c3Smrg fi 759317ca54c3Smrg 759417ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 759517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 759617ca54c3Smrg fi 759717ca54c3Smrg 759817ca54c3Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 759917ca54c3Smrg 760017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 760117ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 760217ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 760317ca54c3Smrg if eval \${$cacheid+:} false; then : 760417ca54c3Smrg $as_echo_n "(cached) " >&6 760517ca54c3Smrgelse 760617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 760717ca54c3Smrg/* end confdefs.h. */ 760817ca54c3Smrgint i; 760917ca54c3Smrgint 761017ca54c3Smrgmain () 761117ca54c3Smrg{ 761217ca54c3Smrg 761317ca54c3Smrg ; 761417ca54c3Smrg return 0; 761517ca54c3Smrg} 761617ca54c3Smrg_ACEOF 761717ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 761817ca54c3Smrg eval $cacheid=yes 761917ca54c3Smrgelse 762017ca54c3Smrg eval $cacheid=no 762117ca54c3Smrgfi 762217ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 762317ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 762417ca54c3Smrgfi 762517ca54c3Smrg 762617ca54c3Smrg 762717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 762817ca54c3Smrg 762917ca54c3Smrg eval supported=\$$cacheid 763017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 763117ca54c3Smrg$as_echo "$supported" >&6; } 763217ca54c3Smrg if test "$supported" = "yes" ; then 763317ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 763417ca54c3Smrg found="yes" 763517ca54c3Smrg fi 763617ca54c3Smrg fi 763717ca54c3Smrg 763817ca54c3Smrg 763917ca54c3Smrg 764017ca54c3Smrg 764117ca54c3Smrg 764217ca54c3Smrg 764317ca54c3Smrg 764417ca54c3Smrg 764517ca54c3Smrg 764617ca54c3Smrg 764717ca54c3Smrg 764817ca54c3Smrg 764917ca54c3Smrg 765017ca54c3Smrg 765117ca54c3Smrg 765217ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 765317ca54c3Smrg 765417ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 765517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 765617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 765717ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 765817ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 765917ca54c3Smrg $as_echo_n "(cached) " >&6 766017ca54c3Smrgelse 766117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 766217ca54c3Smrg/* end confdefs.h. */ 766317ca54c3Smrgint i; 766417ca54c3Smrg_ACEOF 766517ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 766617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 766717ca54c3Smrgelse 766817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 766917ca54c3Smrgfi 767017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 767117ca54c3Smrgfi 767217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 767317ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 767417ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 767517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 767617ca54c3Smrgfi 767717ca54c3Smrg 767817ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 767917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 768017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 768117ca54c3Smrg fi 768217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 768317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 768417ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 768517ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 768617ca54c3Smrg $as_echo_n "(cached) " >&6 768717ca54c3Smrgelse 768817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 768917ca54c3Smrg/* end confdefs.h. */ 769017ca54c3Smrgint i; 769117ca54c3Smrg_ACEOF 769217ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 769317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 769417ca54c3Smrgelse 769517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 769617ca54c3Smrgfi 769717ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 769817ca54c3Smrgfi 769917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 770017ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 770117ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 770217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 770317ca54c3Smrgfi 770417ca54c3Smrg 770517ca54c3Smrgfound="no" 770617ca54c3Smrg 770717ca54c3Smrg if test $found = "no" ; then 770817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 770917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 771017ca54c3Smrg fi 771117ca54c3Smrg 771217ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 771317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 771417ca54c3Smrg fi 771517ca54c3Smrg 771617ca54c3Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 771717ca54c3Smrg 771817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 771917ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 772017ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 772117ca54c3Smrg if eval \${$cacheid+:} false; then : 772217ca54c3Smrg $as_echo_n "(cached) " >&6 772317ca54c3Smrgelse 772417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 772517ca54c3Smrg/* end confdefs.h. */ 772617ca54c3Smrgint i; 772717ca54c3Smrgint 772817ca54c3Smrgmain () 772917ca54c3Smrg{ 773017ca54c3Smrg 773117ca54c3Smrg ; 773217ca54c3Smrg return 0; 773317ca54c3Smrg} 773417ca54c3Smrg_ACEOF 773517ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 773617ca54c3Smrg eval $cacheid=yes 773717ca54c3Smrgelse 773817ca54c3Smrg eval $cacheid=no 773917ca54c3Smrgfi 774017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 774117ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 774217ca54c3Smrgfi 774317ca54c3Smrg 774417ca54c3Smrg 774517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 774617ca54c3Smrg 774717ca54c3Smrg eval supported=\$$cacheid 774817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 774917ca54c3Smrg$as_echo "$supported" >&6; } 775017ca54c3Smrg if test "$supported" = "yes" ; then 775117ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 775217ca54c3Smrg found="yes" 775317ca54c3Smrg fi 775417ca54c3Smrg fi 775517ca54c3Smrg 775617ca54c3Smrg 775717ca54c3Smrg 775817ca54c3Smrg 775917ca54c3Smrg 776017ca54c3Smrg 776117ca54c3Smrg 776217ca54c3Smrg 776317ca54c3Smrg 776417ca54c3Smrg 776517ca54c3Smrg 776617ca54c3Smrg 776717ca54c3Smrg 776817ca54c3Smrg 776917ca54c3Smrg 777017ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 777117ca54c3Smrg 777217ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 777317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 777417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 777517ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 777617ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 777717ca54c3Smrg $as_echo_n "(cached) " >&6 777817ca54c3Smrgelse 777917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 778017ca54c3Smrg/* end confdefs.h. */ 778117ca54c3Smrgint i; 778217ca54c3Smrg_ACEOF 778317ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 778417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 778517ca54c3Smrgelse 778617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 778717ca54c3Smrgfi 778817ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 778917ca54c3Smrgfi 779017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 779117ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 779217ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 779317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 779417ca54c3Smrgfi 779517ca54c3Smrg 779617ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 779717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 779817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 779917ca54c3Smrg fi 780017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 780117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 780217ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 780317ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 780417ca54c3Smrg $as_echo_n "(cached) " >&6 780517ca54c3Smrgelse 780617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 780717ca54c3Smrg/* end confdefs.h. */ 780817ca54c3Smrgint i; 780917ca54c3Smrg_ACEOF 781017ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 781117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 781217ca54c3Smrgelse 781317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 781417ca54c3Smrgfi 781517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 781617ca54c3Smrgfi 781717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 781817ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 781917ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 782017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 782117ca54c3Smrgfi 782217ca54c3Smrg 782317ca54c3Smrgfound="no" 782417ca54c3Smrg 782517ca54c3Smrg if test $found = "no" ; then 782617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 782717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 782817ca54c3Smrg fi 782917ca54c3Smrg 783017ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 783117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 783217ca54c3Smrg fi 783317ca54c3Smrg 783417ca54c3Smrg CFLAGS="$CFLAGS -Werror=return-type" 783517ca54c3Smrg 783617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 783717ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 783817ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 783917ca54c3Smrg if eval \${$cacheid+:} false; then : 784017ca54c3Smrg $as_echo_n "(cached) " >&6 784117ca54c3Smrgelse 784217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 784317ca54c3Smrg/* end confdefs.h. */ 784417ca54c3Smrgint i; 784517ca54c3Smrgint 784617ca54c3Smrgmain () 784717ca54c3Smrg{ 784817ca54c3Smrg 784917ca54c3Smrg ; 785017ca54c3Smrg return 0; 785117ca54c3Smrg} 785217ca54c3Smrg_ACEOF 785317ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 785417ca54c3Smrg eval $cacheid=yes 785517ca54c3Smrgelse 785617ca54c3Smrg eval $cacheid=no 785717ca54c3Smrgfi 785817ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 785917ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 786017ca54c3Smrgfi 786117ca54c3Smrg 786217ca54c3Smrg 786317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 786417ca54c3Smrg 786517ca54c3Smrg eval supported=\$$cacheid 786617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 786717ca54c3Smrg$as_echo "$supported" >&6; } 786817ca54c3Smrg if test "$supported" = "yes" ; then 786917ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 787017ca54c3Smrg found="yes" 787117ca54c3Smrg fi 787217ca54c3Smrg fi 787317ca54c3Smrg 787417ca54c3Smrg if test $found = "no" ; then 787517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 787617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 787717ca54c3Smrg fi 787817ca54c3Smrg 787917ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 788017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 788117ca54c3Smrg fi 788217ca54c3Smrg 788317ca54c3Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 788417ca54c3Smrg 788517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 788617ca54c3Smrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 788717ca54c3Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 788817ca54c3Smrg if eval \${$cacheid+:} false; then : 788917ca54c3Smrg $as_echo_n "(cached) " >&6 789017ca54c3Smrgelse 789117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 789217ca54c3Smrg/* end confdefs.h. */ 789317ca54c3Smrgint i; 789417ca54c3Smrgint 789517ca54c3Smrgmain () 789617ca54c3Smrg{ 789717ca54c3Smrg 789817ca54c3Smrg ; 789917ca54c3Smrg return 0; 790017ca54c3Smrg} 790117ca54c3Smrg_ACEOF 790217ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 790317ca54c3Smrg eval $cacheid=yes 790417ca54c3Smrgelse 790517ca54c3Smrg eval $cacheid=no 790617ca54c3Smrgfi 790717ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 790817ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 790917ca54c3Smrgfi 791017ca54c3Smrg 791117ca54c3Smrg 791217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 791317ca54c3Smrg 791417ca54c3Smrg eval supported=\$$cacheid 791517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 791617ca54c3Smrg$as_echo "$supported" >&6; } 791717ca54c3Smrg if test "$supported" = "yes" ; then 791817ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 791917ca54c3Smrg found="yes" 792017ca54c3Smrg fi 792117ca54c3Smrg fi 792217ca54c3Smrg 792317ca54c3Smrg 792417ca54c3Smrg 792517ca54c3Smrg 792617ca54c3Smrg 792717ca54c3Smrg 792817ca54c3Smrg 792917ca54c3Smrg 793017ca54c3Smrg 793117ca54c3Smrg 793217ca54c3Smrg 793317ca54c3Smrg 793417ca54c3Smrg 793517ca54c3Smrg 793617ca54c3Smrg 793717ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 793817ca54c3Smrg 793917ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 794017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 794117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 794217ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 794317ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 794417ca54c3Smrg $as_echo_n "(cached) " >&6 794517ca54c3Smrgelse 794617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 794717ca54c3Smrg/* end confdefs.h. */ 794817ca54c3Smrgint i; 794917ca54c3Smrg_ACEOF 795017ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 795117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 795217ca54c3Smrgelse 795317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 795417ca54c3Smrgfi 795517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 795617ca54c3Smrgfi 795717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 795817ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 795917ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 796017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 796117ca54c3Smrgfi 796217ca54c3Smrg 796317ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 796417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 796517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 796617ca54c3Smrg fi 796717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 796817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 796917ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 797017ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 797117ca54c3Smrg $as_echo_n "(cached) " >&6 797217ca54c3Smrgelse 797317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 797417ca54c3Smrg/* end confdefs.h. */ 797517ca54c3Smrgint i; 797617ca54c3Smrg_ACEOF 797717ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 797817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 797917ca54c3Smrgelse 798017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 798117ca54c3Smrgfi 798217ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 798317ca54c3Smrgfi 798417ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 798517ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 798617ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 798717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 798817ca54c3Smrgfi 798917ca54c3Smrg 799017ca54c3Smrgfound="no" 799117ca54c3Smrg 799217ca54c3Smrg if test $found = "no" ; then 799317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 799417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 799517ca54c3Smrg fi 799617ca54c3Smrg 799717ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 799817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 799917ca54c3Smrg fi 800017ca54c3Smrg 800117ca54c3Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 800217ca54c3Smrg 800317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 800417ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 800517ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 800617ca54c3Smrg if eval \${$cacheid+:} false; then : 800717ca54c3Smrg $as_echo_n "(cached) " >&6 800817ca54c3Smrgelse 800917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 801017ca54c3Smrg/* end confdefs.h. */ 801117ca54c3Smrgint i; 801217ca54c3Smrgint 801317ca54c3Smrgmain () 801417ca54c3Smrg{ 801517ca54c3Smrg 801617ca54c3Smrg ; 801717ca54c3Smrg return 0; 801817ca54c3Smrg} 801917ca54c3Smrg_ACEOF 802017ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 802117ca54c3Smrg eval $cacheid=yes 802217ca54c3Smrgelse 802317ca54c3Smrg eval $cacheid=no 802417ca54c3Smrgfi 802517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 802617ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 802717ca54c3Smrgfi 802817ca54c3Smrg 802917ca54c3Smrg 803017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 803117ca54c3Smrg 803217ca54c3Smrg eval supported=\$$cacheid 803317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 803417ca54c3Smrg$as_echo "$supported" >&6; } 803517ca54c3Smrg if test "$supported" = "yes" ; then 803617ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 803717ca54c3Smrg found="yes" 803817ca54c3Smrg fi 803917ca54c3Smrg fi 804017ca54c3Smrg 804117ca54c3Smrg 804217ca54c3Smrg 804317ca54c3Smrg 804417ca54c3Smrg 804517ca54c3Smrg 804617ca54c3Smrg 804717ca54c3Smrg 804817ca54c3Smrg 804917ca54c3Smrg 805017ca54c3Smrg 805117ca54c3Smrg 805217ca54c3Smrg 805317ca54c3Smrg 805417ca54c3Smrg 805517ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 805617ca54c3Smrg 805717ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 805817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 805917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 806017ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 806117ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 806217ca54c3Smrg $as_echo_n "(cached) " >&6 806317ca54c3Smrgelse 806417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 806517ca54c3Smrg/* end confdefs.h. */ 806617ca54c3Smrgint i; 806717ca54c3Smrg_ACEOF 806817ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 806917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 807017ca54c3Smrgelse 807117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 807217ca54c3Smrgfi 807317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 807417ca54c3Smrgfi 807517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 807617ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 807717ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 807817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 807917ca54c3Smrgfi 808017ca54c3Smrg 808117ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 808217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 808317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 808417ca54c3Smrg fi 808517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 808617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 808717ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 808817ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 808917ca54c3Smrg $as_echo_n "(cached) " >&6 809017ca54c3Smrgelse 809117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 809217ca54c3Smrg/* end confdefs.h. */ 809317ca54c3Smrgint i; 809417ca54c3Smrg_ACEOF 809517ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 809617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 809717ca54c3Smrgelse 809817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 809917ca54c3Smrgfi 810017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 810117ca54c3Smrgfi 810217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 810317ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 810417ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 810517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 810617ca54c3Smrgfi 810717ca54c3Smrg 810817ca54c3Smrgfound="no" 810917ca54c3Smrg 811017ca54c3Smrg if test $found = "no" ; then 811117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 811217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 811317ca54c3Smrg fi 811417ca54c3Smrg 811517ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 811617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 811717ca54c3Smrg fi 811817ca54c3Smrg 811917ca54c3Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 812017ca54c3Smrg 812117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 812217ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 812317ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 812417ca54c3Smrg if eval \${$cacheid+:} false; then : 812517ca54c3Smrg $as_echo_n "(cached) " >&6 812617ca54c3Smrgelse 812717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 812817ca54c3Smrg/* end confdefs.h. */ 812917ca54c3Smrgint i; 813017ca54c3Smrgint 813117ca54c3Smrgmain () 813217ca54c3Smrg{ 813317ca54c3Smrg 813417ca54c3Smrg ; 813517ca54c3Smrg return 0; 813617ca54c3Smrg} 813717ca54c3Smrg_ACEOF 813817ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 813917ca54c3Smrg eval $cacheid=yes 814017ca54c3Smrgelse 814117ca54c3Smrg eval $cacheid=no 814217ca54c3Smrgfi 814317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 814417ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 814517ca54c3Smrgfi 814617ca54c3Smrg 814717ca54c3Smrg 814817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 814917ca54c3Smrg 815017ca54c3Smrg eval supported=\$$cacheid 815117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 815217ca54c3Smrg$as_echo "$supported" >&6; } 815317ca54c3Smrg if test "$supported" = "yes" ; then 815417ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 815517ca54c3Smrg found="yes" 815617ca54c3Smrg fi 815717ca54c3Smrg fi 815817ca54c3Smrg 815917ca54c3Smrg 816017ca54c3Smrg 816117ca54c3Smrg 816217ca54c3Smrg 816317ca54c3Smrg 816417ca54c3Smrg 816517ca54c3Smrg 816617ca54c3Smrg 816717ca54c3Smrg 816817ca54c3Smrg 816917ca54c3Smrg 817017ca54c3Smrg 817117ca54c3Smrg 817217ca54c3Smrg 817317ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 817417ca54c3Smrg 817517ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 817617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 817717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 817817ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 817917ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 818017ca54c3Smrg $as_echo_n "(cached) " >&6 818117ca54c3Smrgelse 818217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 818317ca54c3Smrg/* end confdefs.h. */ 818417ca54c3Smrgint i; 818517ca54c3Smrg_ACEOF 818617ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 818717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 818817ca54c3Smrgelse 818917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 819017ca54c3Smrgfi 819117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 819217ca54c3Smrgfi 819317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 819417ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 819517ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 819617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 819717ca54c3Smrgfi 819817ca54c3Smrg 819917ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 820017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 820117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 820217ca54c3Smrg fi 820317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 820417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 820517ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 820617ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 820717ca54c3Smrg $as_echo_n "(cached) " >&6 820817ca54c3Smrgelse 820917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 821017ca54c3Smrg/* end confdefs.h. */ 821117ca54c3Smrgint i; 821217ca54c3Smrg_ACEOF 821317ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 821417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 821517ca54c3Smrgelse 821617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 821717ca54c3Smrgfi 821817ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 821917ca54c3Smrgfi 822017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 822117ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 822217ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 822317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 822417ca54c3Smrgfi 822517ca54c3Smrg 822617ca54c3Smrgfound="no" 822717ca54c3Smrg 822817ca54c3Smrg if test $found = "no" ; then 822917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 823017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 823117ca54c3Smrg fi 823217ca54c3Smrg 823317ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 823417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 823517ca54c3Smrg fi 823617ca54c3Smrg 823717ca54c3Smrg CFLAGS="$CFLAGS -Werror=write-strings" 823817ca54c3Smrg 823917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 824017ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 824117ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 824217ca54c3Smrg if eval \${$cacheid+:} false; then : 824317ca54c3Smrg $as_echo_n "(cached) " >&6 824417ca54c3Smrgelse 824517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 824617ca54c3Smrg/* end confdefs.h. */ 824717ca54c3Smrgint i; 824817ca54c3Smrgint 824917ca54c3Smrgmain () 825017ca54c3Smrg{ 825117ca54c3Smrg 825217ca54c3Smrg ; 825317ca54c3Smrg return 0; 825417ca54c3Smrg} 825517ca54c3Smrg_ACEOF 825617ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 825717ca54c3Smrg eval $cacheid=yes 825817ca54c3Smrgelse 825917ca54c3Smrg eval $cacheid=no 826017ca54c3Smrgfi 826117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 826217ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 826317ca54c3Smrgfi 826417ca54c3Smrg 826517ca54c3Smrg 826617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 826717ca54c3Smrg 826817ca54c3Smrg eval supported=\$$cacheid 826917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 827017ca54c3Smrg$as_echo "$supported" >&6; } 827117ca54c3Smrg if test "$supported" = "yes" ; then 827217ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 827317ca54c3Smrg found="yes" 827417ca54c3Smrg fi 827517ca54c3Smrg fi 827617ca54c3Smrg 827717ca54c3Smrg 827817ca54c3Smrg 827917ca54c3Smrg 828017ca54c3Smrg 828117ca54c3Smrg 828217ca54c3Smrg 828317ca54c3Smrg 828417ca54c3Smrg 828517ca54c3Smrg 828617ca54c3Smrg 828717ca54c3Smrg 828817ca54c3Smrg 828917ca54c3Smrg 829017ca54c3Smrg 829117ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 829217ca54c3Smrg 829317ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 829417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 829517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 829617ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 829717ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 829817ca54c3Smrg $as_echo_n "(cached) " >&6 829917ca54c3Smrgelse 830017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 830117ca54c3Smrg/* end confdefs.h. */ 830217ca54c3Smrgint i; 830317ca54c3Smrg_ACEOF 830417ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 830517ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 830617ca54c3Smrgelse 830717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 830817ca54c3Smrgfi 830917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 831017ca54c3Smrgfi 831117ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 831217ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 831317ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 831417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 831517ca54c3Smrgfi 831617ca54c3Smrg 831717ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 831817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 831917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 832017ca54c3Smrg fi 832117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 832217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 832317ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 832417ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 832517ca54c3Smrg $as_echo_n "(cached) " >&6 832617ca54c3Smrgelse 832717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 832817ca54c3Smrg/* end confdefs.h. */ 832917ca54c3Smrgint i; 833017ca54c3Smrg_ACEOF 833117ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 833217ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 833317ca54c3Smrgelse 833417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 833517ca54c3Smrgfi 833617ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 833717ca54c3Smrgfi 833817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 833917ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 834017ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 834117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 834217ca54c3Smrgfi 834317ca54c3Smrg 834417ca54c3Smrgfound="no" 834517ca54c3Smrg 834617ca54c3Smrg if test $found = "no" ; then 834717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 834817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 834917ca54c3Smrg fi 835017ca54c3Smrg 835117ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 835217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 835317ca54c3Smrg fi 835417ca54c3Smrg 835517ca54c3Smrg CFLAGS="$CFLAGS -Werror=address" 835617ca54c3Smrg 835717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 835817ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 835917ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_address 836017ca54c3Smrg if eval \${$cacheid+:} false; then : 836117ca54c3Smrg $as_echo_n "(cached) " >&6 836217ca54c3Smrgelse 836317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 836417ca54c3Smrg/* end confdefs.h. */ 836517ca54c3Smrgint i; 836617ca54c3Smrgint 836717ca54c3Smrgmain () 836817ca54c3Smrg{ 836917ca54c3Smrg 837017ca54c3Smrg ; 837117ca54c3Smrg return 0; 837217ca54c3Smrg} 837317ca54c3Smrg_ACEOF 837417ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 837517ca54c3Smrg eval $cacheid=yes 837617ca54c3Smrgelse 837717ca54c3Smrg eval $cacheid=no 837817ca54c3Smrgfi 837917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 838017ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 838117ca54c3Smrgfi 838217ca54c3Smrg 838317ca54c3Smrg 838417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 838517ca54c3Smrg 838617ca54c3Smrg eval supported=\$$cacheid 838717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 838817ca54c3Smrg$as_echo "$supported" >&6; } 838917ca54c3Smrg if test "$supported" = "yes" ; then 839017ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 839117ca54c3Smrg found="yes" 839217ca54c3Smrg fi 839317ca54c3Smrg fi 839417ca54c3Smrg 839517ca54c3Smrg 839617ca54c3Smrg 839717ca54c3Smrg 839817ca54c3Smrg 839917ca54c3Smrg 840017ca54c3Smrg 840117ca54c3Smrg 840217ca54c3Smrg 840317ca54c3Smrg 840417ca54c3Smrg 840517ca54c3Smrg 840617ca54c3Smrg 840717ca54c3Smrg 840817ca54c3Smrg 840917ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 841017ca54c3Smrg 841117ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 841217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 841317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 841417ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 841517ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 841617ca54c3Smrg $as_echo_n "(cached) " >&6 841717ca54c3Smrgelse 841817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 841917ca54c3Smrg/* end confdefs.h. */ 842017ca54c3Smrgint i; 842117ca54c3Smrg_ACEOF 842217ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 842317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 842417ca54c3Smrgelse 842517ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 842617ca54c3Smrgfi 842717ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 842817ca54c3Smrgfi 842917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 843017ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 843117ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 843217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 843317ca54c3Smrgfi 843417ca54c3Smrg 843517ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 843617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 843717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 843817ca54c3Smrg fi 843917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 844017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 844117ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 844217ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 844317ca54c3Smrg $as_echo_n "(cached) " >&6 844417ca54c3Smrgelse 844517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 844617ca54c3Smrg/* end confdefs.h. */ 844717ca54c3Smrgint i; 844817ca54c3Smrg_ACEOF 844917ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 845017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 845117ca54c3Smrgelse 845217ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 845317ca54c3Smrgfi 845417ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 845517ca54c3Smrgfi 845617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 845717ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 845817ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 845917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 846017ca54c3Smrgfi 846117ca54c3Smrg 846217ca54c3Smrgfound="no" 846317ca54c3Smrg 846417ca54c3Smrg if test $found = "no" ; then 846517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 846617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 846717ca54c3Smrg fi 846817ca54c3Smrg 846917ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 847017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 847117ca54c3Smrg fi 847217ca54c3Smrg 847317ca54c3Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 847417ca54c3Smrg 847517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 847617ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 847717ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 847817ca54c3Smrg if eval \${$cacheid+:} false; then : 847917ca54c3Smrg $as_echo_n "(cached) " >&6 848017ca54c3Smrgelse 848117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 848217ca54c3Smrg/* end confdefs.h. */ 848317ca54c3Smrgint i; 848417ca54c3Smrgint 848517ca54c3Smrgmain () 848617ca54c3Smrg{ 848717ca54c3Smrg 848817ca54c3Smrg ; 848917ca54c3Smrg return 0; 849017ca54c3Smrg} 849117ca54c3Smrg_ACEOF 849217ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 849317ca54c3Smrg eval $cacheid=yes 849417ca54c3Smrgelse 849517ca54c3Smrg eval $cacheid=no 849617ca54c3Smrgfi 849717ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 849817ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 849917ca54c3Smrgfi 850017ca54c3Smrg 850117ca54c3Smrg 850217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 850317ca54c3Smrg 850417ca54c3Smrg eval supported=\$$cacheid 850517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 850617ca54c3Smrg$as_echo "$supported" >&6; } 850717ca54c3Smrg if test "$supported" = "yes" ; then 850817ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 850917ca54c3Smrg found="yes" 851017ca54c3Smrg fi 851117ca54c3Smrg fi 851217ca54c3Smrg 851317ca54c3Smrg if test $found = "no" ; then 851417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 851517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 851617ca54c3Smrg fi 851717ca54c3Smrg 851817ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 851917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 852017ca54c3Smrg fi 852117ca54c3Smrg 852217ca54c3Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 852317ca54c3Smrg 852417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 852517ca54c3Smrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 852617ca54c3Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 852717ca54c3Smrg if eval \${$cacheid+:} false; then : 852817ca54c3Smrg $as_echo_n "(cached) " >&6 852917ca54c3Smrgelse 853017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 853117ca54c3Smrg/* end confdefs.h. */ 853217ca54c3Smrgint i; 853317ca54c3Smrgint 853417ca54c3Smrgmain () 853517ca54c3Smrg{ 853617ca54c3Smrg 853717ca54c3Smrg ; 853817ca54c3Smrg return 0; 853917ca54c3Smrg} 854017ca54c3Smrg_ACEOF 854117ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 854217ca54c3Smrg eval $cacheid=yes 854317ca54c3Smrgelse 854417ca54c3Smrg eval $cacheid=no 854517ca54c3Smrgfi 854617ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 854717ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 854817ca54c3Smrgfi 854917ca54c3Smrg 855017ca54c3Smrg 855117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 855217ca54c3Smrg 855317ca54c3Smrg eval supported=\$$cacheid 855417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 855517ca54c3Smrg$as_echo "$supported" >&6; } 855617ca54c3Smrg if test "$supported" = "yes" ; then 855717ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 855817ca54c3Smrg found="yes" 855917ca54c3Smrg fi 856017ca54c3Smrg fi 856117ca54c3Smrg 856217ca54c3Smrg 856317ca54c3Smrg 856417ca54c3Smrg 856517ca54c3Smrg 856617ca54c3Smrg 856717ca54c3Smrg 856817ca54c3Smrg 856917ca54c3Smrg 857017ca54c3Smrg 857117ca54c3Smrg 857217ca54c3Smrg 857317ca54c3Smrg 857417ca54c3Smrg 857517ca54c3Smrg 857617ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 857717ca54c3Smrg 857817ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 857917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 858017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 858117ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 858217ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 858317ca54c3Smrg $as_echo_n "(cached) " >&6 858417ca54c3Smrgelse 858517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 858617ca54c3Smrg/* end confdefs.h. */ 858717ca54c3Smrgint i; 858817ca54c3Smrg_ACEOF 858917ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 859017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 859117ca54c3Smrgelse 859217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 859317ca54c3Smrgfi 859417ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 859517ca54c3Smrgfi 859617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 859717ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 859817ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 859917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 860017ca54c3Smrgfi 860117ca54c3Smrg 860217ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 860317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 860417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 860517ca54c3Smrg fi 860617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 860717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 860817ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 860917ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 861017ca54c3Smrg $as_echo_n "(cached) " >&6 861117ca54c3Smrgelse 861217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 861317ca54c3Smrg/* end confdefs.h. */ 861417ca54c3Smrgint i; 861517ca54c3Smrg_ACEOF 861617ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 861717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 861817ca54c3Smrgelse 861917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 862017ca54c3Smrgfi 862117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 862217ca54c3Smrgfi 862317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 862417ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 862517ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 862617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 862717ca54c3Smrgfi 862817ca54c3Smrg 862917ca54c3Smrgfound="no" 863017ca54c3Smrg 863117ca54c3Smrg if test $found = "no" ; then 863217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 863317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 863417ca54c3Smrg fi 863517ca54c3Smrg 863617ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 863717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 863817ca54c3Smrg fi 863917ca54c3Smrg 864017ca54c3Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 864117ca54c3Smrg 864217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 864317ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 864417ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 864517ca54c3Smrg if eval \${$cacheid+:} false; then : 864617ca54c3Smrg $as_echo_n "(cached) " >&6 864717ca54c3Smrgelse 864817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 864917ca54c3Smrg/* end confdefs.h. */ 865017ca54c3Smrgint i; 865117ca54c3Smrgint 865217ca54c3Smrgmain () 865317ca54c3Smrg{ 865417ca54c3Smrg 865517ca54c3Smrg ; 865617ca54c3Smrg return 0; 865717ca54c3Smrg} 865817ca54c3Smrg_ACEOF 865917ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 866017ca54c3Smrg eval $cacheid=yes 866117ca54c3Smrgelse 866217ca54c3Smrg eval $cacheid=no 866317ca54c3Smrgfi 866417ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 866517ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 866617ca54c3Smrgfi 866717ca54c3Smrg 866817ca54c3Smrg 866917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 867017ca54c3Smrg 867117ca54c3Smrg eval supported=\$$cacheid 867217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 867317ca54c3Smrg$as_echo "$supported" >&6; } 867417ca54c3Smrg if test "$supported" = "yes" ; then 867517ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 867617ca54c3Smrg found="yes" 867717ca54c3Smrg fi 867817ca54c3Smrg fi 867917ca54c3Smrg 868017ca54c3Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 868117ca54c3Smrgelse 868217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 868317ca54c3Smrg$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 868417ca54c3Smrg 868517ca54c3Smrg 868617ca54c3Smrg 868717ca54c3Smrg 868817ca54c3Smrg 868917ca54c3Smrg 869017ca54c3Smrg 869117ca54c3Smrg 869217ca54c3Smrg 869317ca54c3Smrg 869417ca54c3Smrg 869517ca54c3Smrg 869617ca54c3Smrg 869717ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 869817ca54c3Smrg 869917ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 870017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 870117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 870217ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 870317ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 870417ca54c3Smrg $as_echo_n "(cached) " >&6 870517ca54c3Smrgelse 870617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 870717ca54c3Smrg/* end confdefs.h. */ 870817ca54c3Smrgint i; 870917ca54c3Smrg_ACEOF 871017ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 871117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 871217ca54c3Smrgelse 871317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 871417ca54c3Smrgfi 871517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 871617ca54c3Smrgfi 871717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 871817ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 871917ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 872017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 872117ca54c3Smrgfi 872217ca54c3Smrg 872317ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 872417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 872517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 872617ca54c3Smrg fi 872717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 872817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 872917ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 873017ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 873117ca54c3Smrg $as_echo_n "(cached) " >&6 873217ca54c3Smrgelse 873317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 873417ca54c3Smrg/* end confdefs.h. */ 873517ca54c3Smrgint i; 873617ca54c3Smrg_ACEOF 873717ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 873817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 873917ca54c3Smrgelse 874017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 874117ca54c3Smrgfi 874217ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 874317ca54c3Smrgfi 874417ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 874517ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 874617ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 874717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 874817ca54c3Smrgfi 874917ca54c3Smrg 875017ca54c3Smrgfound="no" 875117ca54c3Smrg 875217ca54c3Smrg if test $found = "no" ; then 875317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 875417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 875517ca54c3Smrg fi 875617ca54c3Smrg 875717ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 875817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 875917ca54c3Smrg fi 876017ca54c3Smrg 876117ca54c3Smrg CFLAGS="$CFLAGS -Wimplicit" 876217ca54c3Smrg 876317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 876417ca54c3Smrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 876517ca54c3Smrg cacheid=xorg_cv_cc_flag__Wimplicit 876617ca54c3Smrg if eval \${$cacheid+:} false; then : 876717ca54c3Smrg $as_echo_n "(cached) " >&6 876817ca54c3Smrgelse 876917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 877017ca54c3Smrg/* end confdefs.h. */ 877117ca54c3Smrgint i; 877217ca54c3Smrgint 877317ca54c3Smrgmain () 877417ca54c3Smrg{ 877517ca54c3Smrg 877617ca54c3Smrg ; 877717ca54c3Smrg return 0; 877817ca54c3Smrg} 877917ca54c3Smrg_ACEOF 878017ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 878117ca54c3Smrg eval $cacheid=yes 878217ca54c3Smrgelse 878317ca54c3Smrg eval $cacheid=no 878417ca54c3Smrgfi 878517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 878617ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 878717ca54c3Smrgfi 878817ca54c3Smrg 878917ca54c3Smrg 879017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 879117ca54c3Smrg 879217ca54c3Smrg eval supported=\$$cacheid 879317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 879417ca54c3Smrg$as_echo "$supported" >&6; } 879517ca54c3Smrg if test "$supported" = "yes" ; then 879617ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 879717ca54c3Smrg found="yes" 879817ca54c3Smrg fi 879917ca54c3Smrg fi 880017ca54c3Smrg 880117ca54c3Smrg 880217ca54c3Smrg 880317ca54c3Smrg 880417ca54c3Smrg 880517ca54c3Smrg 880617ca54c3Smrg 880717ca54c3Smrg 880817ca54c3Smrg 880917ca54c3Smrg 881017ca54c3Smrg 881117ca54c3Smrg 881217ca54c3Smrg 881317ca54c3Smrg 881417ca54c3Smrg 881517ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 881617ca54c3Smrg 881717ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 881817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 881917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 882017ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 882117ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 882217ca54c3Smrg $as_echo_n "(cached) " >&6 882317ca54c3Smrgelse 882417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 882517ca54c3Smrg/* end confdefs.h. */ 882617ca54c3Smrgint i; 882717ca54c3Smrg_ACEOF 882817ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 882917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 883017ca54c3Smrgelse 883117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 883217ca54c3Smrgfi 883317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 883417ca54c3Smrgfi 883517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 883617ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 883717ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 883817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 883917ca54c3Smrgfi 884017ca54c3Smrg 884117ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 884217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 884317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 884417ca54c3Smrg fi 884517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 884617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 884717ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 884817ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 884917ca54c3Smrg $as_echo_n "(cached) " >&6 885017ca54c3Smrgelse 885117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 885217ca54c3Smrg/* end confdefs.h. */ 885317ca54c3Smrgint i; 885417ca54c3Smrg_ACEOF 885517ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 885617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 885717ca54c3Smrgelse 885817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 885917ca54c3Smrgfi 886017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 886117ca54c3Smrgfi 886217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 886317ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 886417ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 886517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 886617ca54c3Smrgfi 886717ca54c3Smrg 886817ca54c3Smrgfound="no" 886917ca54c3Smrg 887017ca54c3Smrg if test $found = "no" ; then 887117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 887217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 887317ca54c3Smrg fi 887417ca54c3Smrg 887517ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 887617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 887717ca54c3Smrg fi 887817ca54c3Smrg 887917ca54c3Smrg CFLAGS="$CFLAGS -Wnonnull" 888017ca54c3Smrg 888117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 888217ca54c3Smrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 888317ca54c3Smrg cacheid=xorg_cv_cc_flag__Wnonnull 888417ca54c3Smrg if eval \${$cacheid+:} false; then : 888517ca54c3Smrg $as_echo_n "(cached) " >&6 888617ca54c3Smrgelse 888717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 888817ca54c3Smrg/* end confdefs.h. */ 888917ca54c3Smrgint i; 889017ca54c3Smrgint 889117ca54c3Smrgmain () 889217ca54c3Smrg{ 889317ca54c3Smrg 889417ca54c3Smrg ; 889517ca54c3Smrg return 0; 889617ca54c3Smrg} 889717ca54c3Smrg_ACEOF 889817ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 889917ca54c3Smrg eval $cacheid=yes 890017ca54c3Smrgelse 890117ca54c3Smrg eval $cacheid=no 890217ca54c3Smrgfi 890317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 890417ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 890517ca54c3Smrgfi 890617ca54c3Smrg 890717ca54c3Smrg 890817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 890917ca54c3Smrg 891017ca54c3Smrg eval supported=\$$cacheid 891117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 891217ca54c3Smrg$as_echo "$supported" >&6; } 891317ca54c3Smrg if test "$supported" = "yes" ; then 891417ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 891517ca54c3Smrg found="yes" 891617ca54c3Smrg fi 891717ca54c3Smrg fi 891817ca54c3Smrg 891917ca54c3Smrg 892017ca54c3Smrg 892117ca54c3Smrg 892217ca54c3Smrg 892317ca54c3Smrg 892417ca54c3Smrg 892517ca54c3Smrg 892617ca54c3Smrg 892717ca54c3Smrg 892817ca54c3Smrg 892917ca54c3Smrg 893017ca54c3Smrg 893117ca54c3Smrg 893217ca54c3Smrg 893317ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 893417ca54c3Smrg 893517ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 893617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 893717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 893817ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 893917ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 894017ca54c3Smrg $as_echo_n "(cached) " >&6 894117ca54c3Smrgelse 894217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 894317ca54c3Smrg/* end confdefs.h. */ 894417ca54c3Smrgint i; 894517ca54c3Smrg_ACEOF 894617ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 894717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 894817ca54c3Smrgelse 894917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 895017ca54c3Smrgfi 895117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 895217ca54c3Smrgfi 895317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 895417ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 895517ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 895617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 895717ca54c3Smrgfi 895817ca54c3Smrg 895917ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 896017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 896117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 896217ca54c3Smrg fi 896317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 896417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 896517ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 896617ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 896717ca54c3Smrg $as_echo_n "(cached) " >&6 896817ca54c3Smrgelse 896917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 897017ca54c3Smrg/* end confdefs.h. */ 897117ca54c3Smrgint i; 897217ca54c3Smrg_ACEOF 897317ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 897417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 897517ca54c3Smrgelse 897617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 897717ca54c3Smrgfi 897817ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 897917ca54c3Smrgfi 898017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 898117ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 898217ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 898317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 898417ca54c3Smrgfi 898517ca54c3Smrg 898617ca54c3Smrgfound="no" 898717ca54c3Smrg 898817ca54c3Smrg if test $found = "no" ; then 898917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 899017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 899117ca54c3Smrg fi 899217ca54c3Smrg 899317ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 899417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 899517ca54c3Smrg fi 899617ca54c3Smrg 899717ca54c3Smrg CFLAGS="$CFLAGS -Winit-self" 899817ca54c3Smrg 899917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 900017ca54c3Smrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 900117ca54c3Smrg cacheid=xorg_cv_cc_flag__Winit_self 900217ca54c3Smrg if eval \${$cacheid+:} false; then : 900317ca54c3Smrg $as_echo_n "(cached) " >&6 900417ca54c3Smrgelse 900517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 900617ca54c3Smrg/* end confdefs.h. */ 900717ca54c3Smrgint i; 900817ca54c3Smrgint 900917ca54c3Smrgmain () 901017ca54c3Smrg{ 901117ca54c3Smrg 901217ca54c3Smrg ; 901317ca54c3Smrg return 0; 901417ca54c3Smrg} 901517ca54c3Smrg_ACEOF 901617ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 901717ca54c3Smrg eval $cacheid=yes 901817ca54c3Smrgelse 901917ca54c3Smrg eval $cacheid=no 902017ca54c3Smrgfi 902117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 902217ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 902317ca54c3Smrgfi 902417ca54c3Smrg 902517ca54c3Smrg 902617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 902717ca54c3Smrg 902817ca54c3Smrg eval supported=\$$cacheid 902917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 903017ca54c3Smrg$as_echo "$supported" >&6; } 903117ca54c3Smrg if test "$supported" = "yes" ; then 903217ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 903317ca54c3Smrg found="yes" 903417ca54c3Smrg fi 903517ca54c3Smrg fi 903617ca54c3Smrg 903717ca54c3Smrg 903817ca54c3Smrg 903917ca54c3Smrg 904017ca54c3Smrg 904117ca54c3Smrg 904217ca54c3Smrg 904317ca54c3Smrg 904417ca54c3Smrg 904517ca54c3Smrg 904617ca54c3Smrg 904717ca54c3Smrg 904817ca54c3Smrg 904917ca54c3Smrg 905017ca54c3Smrg 905117ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 905217ca54c3Smrg 905317ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 905417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 905517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 905617ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 905717ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 905817ca54c3Smrg $as_echo_n "(cached) " >&6 905917ca54c3Smrgelse 906017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 906117ca54c3Smrg/* end confdefs.h. */ 906217ca54c3Smrgint i; 906317ca54c3Smrg_ACEOF 906417ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 906517ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 906617ca54c3Smrgelse 906717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 906817ca54c3Smrgfi 906917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 907017ca54c3Smrgfi 907117ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 907217ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 907317ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 907417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 907517ca54c3Smrgfi 907617ca54c3Smrg 907717ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 907817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 907917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 908017ca54c3Smrg fi 908117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 908217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 908317ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 908417ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 908517ca54c3Smrg $as_echo_n "(cached) " >&6 908617ca54c3Smrgelse 908717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 908817ca54c3Smrg/* end confdefs.h. */ 908917ca54c3Smrgint i; 909017ca54c3Smrg_ACEOF 909117ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 909217ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 909317ca54c3Smrgelse 909417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 909517ca54c3Smrgfi 909617ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 909717ca54c3Smrgfi 909817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 909917ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 910017ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 910117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 910217ca54c3Smrgfi 910317ca54c3Smrg 910417ca54c3Smrgfound="no" 910517ca54c3Smrg 910617ca54c3Smrg if test $found = "no" ; then 910717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 910817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 910917ca54c3Smrg fi 911017ca54c3Smrg 911117ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 911217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 911317ca54c3Smrg fi 911417ca54c3Smrg 911517ca54c3Smrg CFLAGS="$CFLAGS -Wmain" 911617ca54c3Smrg 911717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 911817ca54c3Smrg$as_echo_n "checking if $CC supports -Wmain... " >&6; } 911917ca54c3Smrg cacheid=xorg_cv_cc_flag__Wmain 912017ca54c3Smrg if eval \${$cacheid+:} false; then : 912117ca54c3Smrg $as_echo_n "(cached) " >&6 912217ca54c3Smrgelse 912317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 912417ca54c3Smrg/* end confdefs.h. */ 912517ca54c3Smrgint i; 912617ca54c3Smrgint 912717ca54c3Smrgmain () 912817ca54c3Smrg{ 912917ca54c3Smrg 913017ca54c3Smrg ; 913117ca54c3Smrg return 0; 913217ca54c3Smrg} 913317ca54c3Smrg_ACEOF 913417ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 913517ca54c3Smrg eval $cacheid=yes 913617ca54c3Smrgelse 913717ca54c3Smrg eval $cacheid=no 913817ca54c3Smrgfi 913917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 914017ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 914117ca54c3Smrgfi 914217ca54c3Smrg 914317ca54c3Smrg 914417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 914517ca54c3Smrg 914617ca54c3Smrg eval supported=\$$cacheid 914717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 914817ca54c3Smrg$as_echo "$supported" >&6; } 914917ca54c3Smrg if test "$supported" = "yes" ; then 915017ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 915117ca54c3Smrg found="yes" 915217ca54c3Smrg fi 915317ca54c3Smrg fi 915417ca54c3Smrg 915517ca54c3Smrg 915617ca54c3Smrg 915717ca54c3Smrg 915817ca54c3Smrg 915917ca54c3Smrg 916017ca54c3Smrg 916117ca54c3Smrg 916217ca54c3Smrg 916317ca54c3Smrg 916417ca54c3Smrg 916517ca54c3Smrg 916617ca54c3Smrg 916717ca54c3Smrg 916817ca54c3Smrg 916917ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 917017ca54c3Smrg 917117ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 917217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 917317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 917417ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 917517ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 917617ca54c3Smrg $as_echo_n "(cached) " >&6 917717ca54c3Smrgelse 917817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 917917ca54c3Smrg/* end confdefs.h. */ 918017ca54c3Smrgint i; 918117ca54c3Smrg_ACEOF 918217ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 918317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 918417ca54c3Smrgelse 918517ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 918617ca54c3Smrgfi 918717ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 918817ca54c3Smrgfi 918917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 919017ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 919117ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 919217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 919317ca54c3Smrgfi 919417ca54c3Smrg 919517ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 919617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 919717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 919817ca54c3Smrg fi 919917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 920017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 920117ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 920217ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 920317ca54c3Smrg $as_echo_n "(cached) " >&6 920417ca54c3Smrgelse 920517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 920617ca54c3Smrg/* end confdefs.h. */ 920717ca54c3Smrgint i; 920817ca54c3Smrg_ACEOF 920917ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 921017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 921117ca54c3Smrgelse 921217ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 921317ca54c3Smrgfi 921417ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 921517ca54c3Smrgfi 921617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 921717ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 921817ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 921917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 922017ca54c3Smrgfi 922117ca54c3Smrg 922217ca54c3Smrgfound="no" 922317ca54c3Smrg 922417ca54c3Smrg if test $found = "no" ; then 922517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 922617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 922717ca54c3Smrg fi 922817ca54c3Smrg 922917ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 923017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 923117ca54c3Smrg fi 923217ca54c3Smrg 923317ca54c3Smrg CFLAGS="$CFLAGS -Wmissing-braces" 923417ca54c3Smrg 923517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 923617ca54c3Smrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 923717ca54c3Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 923817ca54c3Smrg if eval \${$cacheid+:} false; then : 923917ca54c3Smrg $as_echo_n "(cached) " >&6 924017ca54c3Smrgelse 924117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 924217ca54c3Smrg/* end confdefs.h. */ 924317ca54c3Smrgint i; 924417ca54c3Smrgint 924517ca54c3Smrgmain () 924617ca54c3Smrg{ 924717ca54c3Smrg 924817ca54c3Smrg ; 924917ca54c3Smrg return 0; 925017ca54c3Smrg} 925117ca54c3Smrg_ACEOF 925217ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 925317ca54c3Smrg eval $cacheid=yes 925417ca54c3Smrgelse 925517ca54c3Smrg eval $cacheid=no 925617ca54c3Smrgfi 925717ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 925817ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 925917ca54c3Smrgfi 926017ca54c3Smrg 926117ca54c3Smrg 926217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 926317ca54c3Smrg 926417ca54c3Smrg eval supported=\$$cacheid 926517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 926617ca54c3Smrg$as_echo "$supported" >&6; } 926717ca54c3Smrg if test "$supported" = "yes" ; then 926817ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 926917ca54c3Smrg found="yes" 927017ca54c3Smrg fi 927117ca54c3Smrg fi 927217ca54c3Smrg 927317ca54c3Smrg 927417ca54c3Smrg 927517ca54c3Smrg 927617ca54c3Smrg 927717ca54c3Smrg 927817ca54c3Smrg 927917ca54c3Smrg 928017ca54c3Smrg 928117ca54c3Smrg 928217ca54c3Smrg 928317ca54c3Smrg 928417ca54c3Smrg 928517ca54c3Smrg 928617ca54c3Smrg 928717ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 928817ca54c3Smrg 928917ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 929017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 929117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 929217ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 929317ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 929417ca54c3Smrg $as_echo_n "(cached) " >&6 929517ca54c3Smrgelse 929617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 929717ca54c3Smrg/* end confdefs.h. */ 929817ca54c3Smrgint i; 929917ca54c3Smrg_ACEOF 930017ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 930117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 930217ca54c3Smrgelse 930317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 930417ca54c3Smrgfi 930517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 930617ca54c3Smrgfi 930717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 930817ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 930917ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 931017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 931117ca54c3Smrgfi 931217ca54c3Smrg 931317ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 931417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 931517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 931617ca54c3Smrg fi 931717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 931817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 931917ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 932017ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 932117ca54c3Smrg $as_echo_n "(cached) " >&6 932217ca54c3Smrgelse 932317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 932417ca54c3Smrg/* end confdefs.h. */ 932517ca54c3Smrgint i; 932617ca54c3Smrg_ACEOF 932717ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 932817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 932917ca54c3Smrgelse 933017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 933117ca54c3Smrgfi 933217ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 933317ca54c3Smrgfi 933417ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 933517ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 933617ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 933717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 933817ca54c3Smrgfi 933917ca54c3Smrg 934017ca54c3Smrgfound="no" 934117ca54c3Smrg 934217ca54c3Smrg if test $found = "no" ; then 934317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 934417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 934517ca54c3Smrg fi 934617ca54c3Smrg 934717ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 934817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 934917ca54c3Smrg fi 935017ca54c3Smrg 935117ca54c3Smrg CFLAGS="$CFLAGS -Wsequence-point" 935217ca54c3Smrg 935317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 935417ca54c3Smrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 935517ca54c3Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 935617ca54c3Smrg if eval \${$cacheid+:} false; then : 935717ca54c3Smrg $as_echo_n "(cached) " >&6 935817ca54c3Smrgelse 935917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 936017ca54c3Smrg/* end confdefs.h. */ 936117ca54c3Smrgint i; 936217ca54c3Smrgint 936317ca54c3Smrgmain () 936417ca54c3Smrg{ 936517ca54c3Smrg 936617ca54c3Smrg ; 936717ca54c3Smrg return 0; 936817ca54c3Smrg} 936917ca54c3Smrg_ACEOF 937017ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 937117ca54c3Smrg eval $cacheid=yes 937217ca54c3Smrgelse 937317ca54c3Smrg eval $cacheid=no 937417ca54c3Smrgfi 937517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 937617ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 937717ca54c3Smrgfi 937817ca54c3Smrg 937917ca54c3Smrg 938017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 938117ca54c3Smrg 938217ca54c3Smrg eval supported=\$$cacheid 938317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 938417ca54c3Smrg$as_echo "$supported" >&6; } 938517ca54c3Smrg if test "$supported" = "yes" ; then 938617ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 938717ca54c3Smrg found="yes" 938817ca54c3Smrg fi 938917ca54c3Smrg fi 939017ca54c3Smrg 939117ca54c3Smrg 939217ca54c3Smrg 939317ca54c3Smrg 939417ca54c3Smrg 939517ca54c3Smrg 939617ca54c3Smrg 939717ca54c3Smrg 939817ca54c3Smrg 939917ca54c3Smrg 940017ca54c3Smrg 940117ca54c3Smrg 940217ca54c3Smrg 940317ca54c3Smrg 940417ca54c3Smrg 940517ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 940617ca54c3Smrg 940717ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 940817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 940917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 941017ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 941117ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 941217ca54c3Smrg $as_echo_n "(cached) " >&6 941317ca54c3Smrgelse 941417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 941517ca54c3Smrg/* end confdefs.h. */ 941617ca54c3Smrgint i; 941717ca54c3Smrg_ACEOF 941817ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 941917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 942017ca54c3Smrgelse 942117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 942217ca54c3Smrgfi 942317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 942417ca54c3Smrgfi 942517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 942617ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 942717ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 942817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 942917ca54c3Smrgfi 943017ca54c3Smrg 943117ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 943217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 943317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 943417ca54c3Smrg fi 943517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 943617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 943717ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 943817ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 943917ca54c3Smrg $as_echo_n "(cached) " >&6 944017ca54c3Smrgelse 944117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 944217ca54c3Smrg/* end confdefs.h. */ 944317ca54c3Smrgint i; 944417ca54c3Smrg_ACEOF 944517ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 944617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 944717ca54c3Smrgelse 944817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 944917ca54c3Smrgfi 945017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 945117ca54c3Smrgfi 945217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 945317ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 945417ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 945517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 945617ca54c3Smrgfi 945717ca54c3Smrg 945817ca54c3Smrgfound="no" 945917ca54c3Smrg 946017ca54c3Smrg if test $found = "no" ; then 946117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 946217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 946317ca54c3Smrg fi 946417ca54c3Smrg 946517ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 946617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 946717ca54c3Smrg fi 946817ca54c3Smrg 946917ca54c3Smrg CFLAGS="$CFLAGS -Wreturn-type" 947017ca54c3Smrg 947117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 947217ca54c3Smrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 947317ca54c3Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 947417ca54c3Smrg if eval \${$cacheid+:} false; then : 947517ca54c3Smrg $as_echo_n "(cached) " >&6 947617ca54c3Smrgelse 947717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 947817ca54c3Smrg/* end confdefs.h. */ 947917ca54c3Smrgint i; 948017ca54c3Smrgint 948117ca54c3Smrgmain () 948217ca54c3Smrg{ 948317ca54c3Smrg 948417ca54c3Smrg ; 948517ca54c3Smrg return 0; 948617ca54c3Smrg} 948717ca54c3Smrg_ACEOF 948817ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 948917ca54c3Smrg eval $cacheid=yes 949017ca54c3Smrgelse 949117ca54c3Smrg eval $cacheid=no 949217ca54c3Smrgfi 949317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 949417ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 949517ca54c3Smrgfi 949617ca54c3Smrg 949717ca54c3Smrg 949817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 949917ca54c3Smrg 950017ca54c3Smrg eval supported=\$$cacheid 950117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 950217ca54c3Smrg$as_echo "$supported" >&6; } 950317ca54c3Smrg if test "$supported" = "yes" ; then 950417ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 950517ca54c3Smrg found="yes" 950617ca54c3Smrg fi 950717ca54c3Smrg fi 950817ca54c3Smrg 950917ca54c3Smrg 951017ca54c3Smrg 951117ca54c3Smrg 951217ca54c3Smrg 951317ca54c3Smrg 951417ca54c3Smrg 951517ca54c3Smrg 951617ca54c3Smrg 951717ca54c3Smrg 951817ca54c3Smrg 951917ca54c3Smrg 952017ca54c3Smrg 952117ca54c3Smrg 952217ca54c3Smrg 952317ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 952417ca54c3Smrg 952517ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 952617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 952717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 952817ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 952917ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 953017ca54c3Smrg $as_echo_n "(cached) " >&6 953117ca54c3Smrgelse 953217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 953317ca54c3Smrg/* end confdefs.h. */ 953417ca54c3Smrgint i; 953517ca54c3Smrg_ACEOF 953617ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 953717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 953817ca54c3Smrgelse 953917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 954017ca54c3Smrgfi 954117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 954217ca54c3Smrgfi 954317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 954417ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 954517ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 954617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 954717ca54c3Smrgfi 954817ca54c3Smrg 954917ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 955017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 955117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 955217ca54c3Smrg fi 955317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 955417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 955517ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 955617ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 955717ca54c3Smrg $as_echo_n "(cached) " >&6 955817ca54c3Smrgelse 955917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 956017ca54c3Smrg/* end confdefs.h. */ 956117ca54c3Smrgint i; 956217ca54c3Smrg_ACEOF 956317ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 956417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 956517ca54c3Smrgelse 956617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 956717ca54c3Smrgfi 956817ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 956917ca54c3Smrgfi 957017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 957117ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 957217ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 957317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 957417ca54c3Smrgfi 957517ca54c3Smrg 957617ca54c3Smrgfound="no" 957717ca54c3Smrg 957817ca54c3Smrg if test $found = "no" ; then 957917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 958017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 958117ca54c3Smrg fi 958217ca54c3Smrg 958317ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 958417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 958517ca54c3Smrg fi 958617ca54c3Smrg 958717ca54c3Smrg CFLAGS="$CFLAGS -Wtrigraphs" 958817ca54c3Smrg 958917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 959017ca54c3Smrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 959117ca54c3Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 959217ca54c3Smrg if eval \${$cacheid+:} false; then : 959317ca54c3Smrg $as_echo_n "(cached) " >&6 959417ca54c3Smrgelse 959517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 959617ca54c3Smrg/* end confdefs.h. */ 959717ca54c3Smrgint i; 959817ca54c3Smrgint 959917ca54c3Smrgmain () 960017ca54c3Smrg{ 960117ca54c3Smrg 960217ca54c3Smrg ; 960317ca54c3Smrg return 0; 960417ca54c3Smrg} 960517ca54c3Smrg_ACEOF 960617ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 960717ca54c3Smrg eval $cacheid=yes 960817ca54c3Smrgelse 960917ca54c3Smrg eval $cacheid=no 961017ca54c3Smrgfi 961117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 961217ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 961317ca54c3Smrgfi 961417ca54c3Smrg 961517ca54c3Smrg 961617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 961717ca54c3Smrg 961817ca54c3Smrg eval supported=\$$cacheid 961917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 962017ca54c3Smrg$as_echo "$supported" >&6; } 962117ca54c3Smrg if test "$supported" = "yes" ; then 962217ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 962317ca54c3Smrg found="yes" 962417ca54c3Smrg fi 962517ca54c3Smrg fi 962617ca54c3Smrg 962717ca54c3Smrg 962817ca54c3Smrg 962917ca54c3Smrg 963017ca54c3Smrg 963117ca54c3Smrg 963217ca54c3Smrg 963317ca54c3Smrg 963417ca54c3Smrg 963517ca54c3Smrg 963617ca54c3Smrg 963717ca54c3Smrg 963817ca54c3Smrg 963917ca54c3Smrg 964017ca54c3Smrg 964117ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 964217ca54c3Smrg 964317ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 964417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 964517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 964617ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 964717ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 964817ca54c3Smrg $as_echo_n "(cached) " >&6 964917ca54c3Smrgelse 965017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 965117ca54c3Smrg/* end confdefs.h. */ 965217ca54c3Smrgint i; 965317ca54c3Smrg_ACEOF 965417ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 965517ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 965617ca54c3Smrgelse 965717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 965817ca54c3Smrgfi 965917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 966017ca54c3Smrgfi 966117ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 966217ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 966317ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 966417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 966517ca54c3Smrgfi 966617ca54c3Smrg 966717ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 966817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 966917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 967017ca54c3Smrg fi 967117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 967217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 967317ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 967417ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 967517ca54c3Smrg $as_echo_n "(cached) " >&6 967617ca54c3Smrgelse 967717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 967817ca54c3Smrg/* end confdefs.h. */ 967917ca54c3Smrgint i; 968017ca54c3Smrg_ACEOF 968117ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 968217ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 968317ca54c3Smrgelse 968417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 968517ca54c3Smrgfi 968617ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 968717ca54c3Smrgfi 968817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 968917ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 969017ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 969117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 969217ca54c3Smrgfi 969317ca54c3Smrg 969417ca54c3Smrgfound="no" 969517ca54c3Smrg 969617ca54c3Smrg if test $found = "no" ; then 969717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 969817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 969917ca54c3Smrg fi 970017ca54c3Smrg 970117ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 970217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 970317ca54c3Smrg fi 970417ca54c3Smrg 970517ca54c3Smrg CFLAGS="$CFLAGS -Warray-bounds" 970617ca54c3Smrg 970717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 970817ca54c3Smrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 970917ca54c3Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 971017ca54c3Smrg if eval \${$cacheid+:} false; then : 971117ca54c3Smrg $as_echo_n "(cached) " >&6 971217ca54c3Smrgelse 971317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 971417ca54c3Smrg/* end confdefs.h. */ 971517ca54c3Smrgint i; 971617ca54c3Smrgint 971717ca54c3Smrgmain () 971817ca54c3Smrg{ 971917ca54c3Smrg 972017ca54c3Smrg ; 972117ca54c3Smrg return 0; 972217ca54c3Smrg} 972317ca54c3Smrg_ACEOF 972417ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 972517ca54c3Smrg eval $cacheid=yes 972617ca54c3Smrgelse 972717ca54c3Smrg eval $cacheid=no 972817ca54c3Smrgfi 972917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 973017ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 973117ca54c3Smrgfi 973217ca54c3Smrg 973317ca54c3Smrg 973417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 973517ca54c3Smrg 973617ca54c3Smrg eval supported=\$$cacheid 973717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 973817ca54c3Smrg$as_echo "$supported" >&6; } 973917ca54c3Smrg if test "$supported" = "yes" ; then 974017ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 974117ca54c3Smrg found="yes" 974217ca54c3Smrg fi 974317ca54c3Smrg fi 974417ca54c3Smrg 974517ca54c3Smrg 974617ca54c3Smrg 974717ca54c3Smrg 974817ca54c3Smrg 974917ca54c3Smrg 975017ca54c3Smrg 975117ca54c3Smrg 975217ca54c3Smrg 975317ca54c3Smrg 975417ca54c3Smrg 975517ca54c3Smrg 975617ca54c3Smrg 975717ca54c3Smrg 975817ca54c3Smrg 975917ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 976017ca54c3Smrg 976117ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 976217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 976317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 976417ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 976517ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 976617ca54c3Smrg $as_echo_n "(cached) " >&6 976717ca54c3Smrgelse 976817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 976917ca54c3Smrg/* end confdefs.h. */ 977017ca54c3Smrgint i; 977117ca54c3Smrg_ACEOF 977217ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 977317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 977417ca54c3Smrgelse 977517ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 977617ca54c3Smrgfi 977717ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 977817ca54c3Smrgfi 977917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 978017ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 978117ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 978217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 978317ca54c3Smrgfi 978417ca54c3Smrg 978517ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 978617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 978717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 978817ca54c3Smrg fi 978917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 979017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 979117ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 979217ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 979317ca54c3Smrg $as_echo_n "(cached) " >&6 979417ca54c3Smrgelse 979517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 979617ca54c3Smrg/* end confdefs.h. */ 979717ca54c3Smrgint i; 979817ca54c3Smrg_ACEOF 979917ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 980017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 980117ca54c3Smrgelse 980217ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 980317ca54c3Smrgfi 980417ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 980517ca54c3Smrgfi 980617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 980717ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 980817ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 980917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 981017ca54c3Smrgfi 981117ca54c3Smrg 981217ca54c3Smrgfound="no" 981317ca54c3Smrg 981417ca54c3Smrg if test $found = "no" ; then 981517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 981617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 981717ca54c3Smrg fi 981817ca54c3Smrg 981917ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 982017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 982117ca54c3Smrg fi 982217ca54c3Smrg 982317ca54c3Smrg CFLAGS="$CFLAGS -Wwrite-strings" 982417ca54c3Smrg 982517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 982617ca54c3Smrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 982717ca54c3Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 982817ca54c3Smrg if eval \${$cacheid+:} false; then : 982917ca54c3Smrg $as_echo_n "(cached) " >&6 983017ca54c3Smrgelse 983117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 983217ca54c3Smrg/* end confdefs.h. */ 983317ca54c3Smrgint i; 983417ca54c3Smrgint 983517ca54c3Smrgmain () 983617ca54c3Smrg{ 983717ca54c3Smrg 983817ca54c3Smrg ; 983917ca54c3Smrg return 0; 984017ca54c3Smrg} 984117ca54c3Smrg_ACEOF 984217ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 984317ca54c3Smrg eval $cacheid=yes 984417ca54c3Smrgelse 984517ca54c3Smrg eval $cacheid=no 984617ca54c3Smrgfi 984717ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 984817ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 984917ca54c3Smrgfi 985017ca54c3Smrg 985117ca54c3Smrg 985217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 985317ca54c3Smrg 985417ca54c3Smrg eval supported=\$$cacheid 985517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 985617ca54c3Smrg$as_echo "$supported" >&6; } 985717ca54c3Smrg if test "$supported" = "yes" ; then 985817ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 985917ca54c3Smrg found="yes" 986017ca54c3Smrg fi 986117ca54c3Smrg fi 986217ca54c3Smrg 986317ca54c3Smrg 986417ca54c3Smrg 986517ca54c3Smrg 986617ca54c3Smrg 986717ca54c3Smrg 986817ca54c3Smrg 986917ca54c3Smrg 987017ca54c3Smrg 987117ca54c3Smrg 987217ca54c3Smrg 987317ca54c3Smrg 987417ca54c3Smrg 987517ca54c3Smrg 987617ca54c3Smrg 987717ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 987817ca54c3Smrg 987917ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 988017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 988117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 988217ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 988317ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 988417ca54c3Smrg $as_echo_n "(cached) " >&6 988517ca54c3Smrgelse 988617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 988717ca54c3Smrg/* end confdefs.h. */ 988817ca54c3Smrgint i; 988917ca54c3Smrg_ACEOF 989017ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 989117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 989217ca54c3Smrgelse 989317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 989417ca54c3Smrgfi 989517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 989617ca54c3Smrgfi 989717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 989817ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 989917ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 990017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 990117ca54c3Smrgfi 990217ca54c3Smrg 990317ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 990417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 990517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 990617ca54c3Smrg fi 990717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 990817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 990917ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 991017ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 991117ca54c3Smrg $as_echo_n "(cached) " >&6 991217ca54c3Smrgelse 991317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 991417ca54c3Smrg/* end confdefs.h. */ 991517ca54c3Smrgint i; 991617ca54c3Smrg_ACEOF 991717ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 991817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 991917ca54c3Smrgelse 992017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 992117ca54c3Smrgfi 992217ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 992317ca54c3Smrgfi 992417ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 992517ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 992617ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 992717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 992817ca54c3Smrgfi 992917ca54c3Smrg 993017ca54c3Smrgfound="no" 993117ca54c3Smrg 993217ca54c3Smrg if test $found = "no" ; then 993317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 993417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 993517ca54c3Smrg fi 993617ca54c3Smrg 993717ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 993817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 993917ca54c3Smrg fi 994017ca54c3Smrg 994117ca54c3Smrg CFLAGS="$CFLAGS -Waddress" 994217ca54c3Smrg 994317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 994417ca54c3Smrg$as_echo_n "checking if $CC supports -Waddress... " >&6; } 994517ca54c3Smrg cacheid=xorg_cv_cc_flag__Waddress 994617ca54c3Smrg if eval \${$cacheid+:} false; then : 994717ca54c3Smrg $as_echo_n "(cached) " >&6 994817ca54c3Smrgelse 994917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 995017ca54c3Smrg/* end confdefs.h. */ 995117ca54c3Smrgint i; 995217ca54c3Smrgint 995317ca54c3Smrgmain () 995417ca54c3Smrg{ 995517ca54c3Smrg 995617ca54c3Smrg ; 995717ca54c3Smrg return 0; 995817ca54c3Smrg} 995917ca54c3Smrg_ACEOF 996017ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 996117ca54c3Smrg eval $cacheid=yes 996217ca54c3Smrgelse 996317ca54c3Smrg eval $cacheid=no 996417ca54c3Smrgfi 996517ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 996617ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 996717ca54c3Smrgfi 996817ca54c3Smrg 996917ca54c3Smrg 997017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 997117ca54c3Smrg 997217ca54c3Smrg eval supported=\$$cacheid 997317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 997417ca54c3Smrg$as_echo "$supported" >&6; } 997517ca54c3Smrg if test "$supported" = "yes" ; then 997617ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 997717ca54c3Smrg found="yes" 997817ca54c3Smrg fi 997917ca54c3Smrg fi 998017ca54c3Smrg 998117ca54c3Smrg 998217ca54c3Smrg 998317ca54c3Smrg 998417ca54c3Smrg 998517ca54c3Smrg 998617ca54c3Smrg 998717ca54c3Smrg 998817ca54c3Smrg 998917ca54c3Smrg 999017ca54c3Smrg 999117ca54c3Smrg 999217ca54c3Smrg 999317ca54c3Smrg 999417ca54c3Smrg 999517ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 999617ca54c3Smrg 999717ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 999817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 999917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1000017ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1000117ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1000217ca54c3Smrg $as_echo_n "(cached) " >&6 1000317ca54c3Smrgelse 1000417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1000517ca54c3Smrg/* end confdefs.h. */ 1000617ca54c3Smrgint i; 1000717ca54c3Smrg_ACEOF 1000817ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 1000917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1001017ca54c3Smrgelse 1001117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 1001217ca54c3Smrgfi 1001317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1001417ca54c3Smrgfi 1001517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1001617ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1001717ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1001817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1001917ca54c3Smrgfi 1002017ca54c3Smrg 1002117ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1002217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1002317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1002417ca54c3Smrg fi 1002517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1002617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1002717ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1002817ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1002917ca54c3Smrg $as_echo_n "(cached) " >&6 1003017ca54c3Smrgelse 1003117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1003217ca54c3Smrg/* end confdefs.h. */ 1003317ca54c3Smrgint i; 1003417ca54c3Smrg_ACEOF 1003517ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 1003617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1003717ca54c3Smrgelse 1003817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1003917ca54c3Smrgfi 1004017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1004117ca54c3Smrgfi 1004217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1004317ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1004417ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1004517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1004617ca54c3Smrgfi 1004717ca54c3Smrg 1004817ca54c3Smrgfound="no" 1004917ca54c3Smrg 1005017ca54c3Smrg if test $found = "no" ; then 1005117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1005217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1005317ca54c3Smrg fi 1005417ca54c3Smrg 1005517ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1005617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1005717ca54c3Smrg fi 1005817ca54c3Smrg 1005917ca54c3Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 1006017ca54c3Smrg 1006117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 1006217ca54c3Smrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 1006317ca54c3Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 1006417ca54c3Smrg if eval \${$cacheid+:} false; then : 1006517ca54c3Smrg $as_echo_n "(cached) " >&6 1006617ca54c3Smrgelse 1006717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1006817ca54c3Smrg/* end confdefs.h. */ 1006917ca54c3Smrgint i; 1007017ca54c3Smrgint 1007117ca54c3Smrgmain () 1007217ca54c3Smrg{ 1007317ca54c3Smrg 1007417ca54c3Smrg ; 1007517ca54c3Smrg return 0; 1007617ca54c3Smrg} 1007717ca54c3Smrg_ACEOF 1007817ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 1007917ca54c3Smrg eval $cacheid=yes 1008017ca54c3Smrgelse 1008117ca54c3Smrg eval $cacheid=no 1008217ca54c3Smrgfi 1008317ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 1008417ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 1008517ca54c3Smrgfi 1008617ca54c3Smrg 1008717ca54c3Smrg 1008817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1008917ca54c3Smrg 1009017ca54c3Smrg eval supported=\$$cacheid 1009117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1009217ca54c3Smrg$as_echo "$supported" >&6; } 1009317ca54c3Smrg if test "$supported" = "yes" ; then 1009417ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 1009517ca54c3Smrg found="yes" 1009617ca54c3Smrg fi 1009717ca54c3Smrg fi 1009817ca54c3Smrg 1009917ca54c3Smrg 1010017ca54c3Smrg 1010117ca54c3Smrg 1010217ca54c3Smrg 1010317ca54c3Smrg 1010417ca54c3Smrg 1010517ca54c3Smrg 1010617ca54c3Smrg 1010717ca54c3Smrg 1010817ca54c3Smrg 1010917ca54c3Smrg 1011017ca54c3Smrg 1011117ca54c3Smrg 1011217ca54c3Smrg 1011317ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1011417ca54c3Smrg 1011517ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1011617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1011717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1011817ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1011917ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1012017ca54c3Smrg $as_echo_n "(cached) " >&6 1012117ca54c3Smrgelse 1012217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1012317ca54c3Smrg/* end confdefs.h. */ 1012417ca54c3Smrgint i; 1012517ca54c3Smrg_ACEOF 1012617ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 1012717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1012817ca54c3Smrgelse 1012917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 1013017ca54c3Smrgfi 1013117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1013217ca54c3Smrgfi 1013317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1013417ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1013517ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1013617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1013717ca54c3Smrgfi 1013817ca54c3Smrg 1013917ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1014017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1014117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1014217ca54c3Smrg fi 1014317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1014417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1014517ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1014617ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1014717ca54c3Smrg $as_echo_n "(cached) " >&6 1014817ca54c3Smrgelse 1014917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1015017ca54c3Smrg/* end confdefs.h. */ 1015117ca54c3Smrgint i; 1015217ca54c3Smrg_ACEOF 1015317ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 1015417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1015517ca54c3Smrgelse 1015617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1015717ca54c3Smrgfi 1015817ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1015917ca54c3Smrgfi 1016017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1016117ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1016217ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1016317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1016417ca54c3Smrgfi 1016517ca54c3Smrg 1016617ca54c3Smrgfound="no" 1016717ca54c3Smrg 1016817ca54c3Smrg if test $found = "no" ; then 1016917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1017017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1017117ca54c3Smrg fi 1017217ca54c3Smrg 1017317ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1017417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1017517ca54c3Smrg fi 1017617ca54c3Smrg 1017717ca54c3Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 1017817ca54c3Smrg 1017917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 1018017ca54c3Smrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 1018117ca54c3Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 1018217ca54c3Smrg if eval \${$cacheid+:} false; then : 1018317ca54c3Smrg $as_echo_n "(cached) " >&6 1018417ca54c3Smrgelse 1018517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1018617ca54c3Smrg/* end confdefs.h. */ 1018717ca54c3Smrgint i; 1018817ca54c3Smrgint 1018917ca54c3Smrgmain () 1019017ca54c3Smrg{ 1019117ca54c3Smrg 1019217ca54c3Smrg ; 1019317ca54c3Smrg return 0; 1019417ca54c3Smrg} 1019517ca54c3Smrg_ACEOF 1019617ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 1019717ca54c3Smrg eval $cacheid=yes 1019817ca54c3Smrgelse 1019917ca54c3Smrg eval $cacheid=no 1020017ca54c3Smrgfi 1020117ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 1020217ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 1020317ca54c3Smrgfi 1020417ca54c3Smrg 1020517ca54c3Smrg 1020617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1020717ca54c3Smrg 1020817ca54c3Smrg eval supported=\$$cacheid 1020917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1021017ca54c3Smrg$as_echo "$supported" >&6; } 1021117ca54c3Smrg if test "$supported" = "yes" ; then 1021217ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 1021317ca54c3Smrg found="yes" 1021417ca54c3Smrg fi 1021517ca54c3Smrg fi 1021617ca54c3Smrg 1021717ca54c3Smrg 1021817ca54c3Smrgfi 1021917ca54c3Smrg 1022017ca54c3Smrg 1022117ca54c3Smrg 1022217ca54c3Smrg 1022317ca54c3Smrg 1022417ca54c3Smrg 1022517ca54c3Smrg 1022617ca54c3Smrg CWARNFLAGS="$BASE_CFLAGS" 1022717ca54c3Smrg if test "x$GCC" = xyes ; then 1022817ca54c3Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 1022917ca54c3Smrg fi 1023017ca54c3Smrg 1023117ca54c3Smrg 1023217ca54c3Smrg 1023317ca54c3Smrg 1023417ca54c3Smrg 1023517ca54c3Smrg 1023617ca54c3Smrg 1023717ca54c3Smrg 1023817ca54c3Smrg# Check whether --enable-strict-compilation was given. 1023917ca54c3Smrgif test "${enable_strict_compilation+set}" = set; then : 1024017ca54c3Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 1024117ca54c3Smrgelse 1024217ca54c3Smrg STRICT_COMPILE=no 1024317ca54c3Smrgfi 1024417ca54c3Smrg 1024517ca54c3Smrg 1024617ca54c3Smrg 1024717ca54c3Smrg 1024817ca54c3Smrg 1024917ca54c3Smrg 1025017ca54c3SmrgSTRICT_CFLAGS="" 1025117ca54c3Smrg 1025217ca54c3Smrg 1025317ca54c3Smrg 1025417ca54c3Smrg 1025517ca54c3Smrg 1025617ca54c3Smrg 1025717ca54c3Smrg 1025817ca54c3Smrg 1025917ca54c3Smrg 1026017ca54c3Smrg 1026117ca54c3Smrg 1026217ca54c3Smrg 1026317ca54c3Smrg 1026417ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1026517ca54c3Smrg 1026617ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1026717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1026817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1026917ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1027017ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1027117ca54c3Smrg $as_echo_n "(cached) " >&6 1027217ca54c3Smrgelse 1027317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1027417ca54c3Smrg/* end confdefs.h. */ 1027517ca54c3Smrgint i; 1027617ca54c3Smrg_ACEOF 1027717ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 1027817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1027917ca54c3Smrgelse 1028017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 1028117ca54c3Smrgfi 1028217ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1028317ca54c3Smrgfi 1028417ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1028517ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1028617ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1028717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1028817ca54c3Smrgfi 1028917ca54c3Smrg 1029017ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1029117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1029217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1029317ca54c3Smrg fi 1029417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1029517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1029617ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1029717ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1029817ca54c3Smrg $as_echo_n "(cached) " >&6 1029917ca54c3Smrgelse 1030017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1030117ca54c3Smrg/* end confdefs.h. */ 1030217ca54c3Smrgint i; 1030317ca54c3Smrg_ACEOF 1030417ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 1030517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1030617ca54c3Smrgelse 1030717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1030817ca54c3Smrgfi 1030917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1031017ca54c3Smrgfi 1031117ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1031217ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1031317ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1031417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1031517ca54c3Smrgfi 1031617ca54c3Smrg 1031717ca54c3Smrgfound="no" 1031817ca54c3Smrg 1031917ca54c3Smrg if test $found = "no" ; then 1032017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1032117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1032217ca54c3Smrg fi 1032317ca54c3Smrg 1032417ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1032517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1032617ca54c3Smrg fi 1032717ca54c3Smrg 1032817ca54c3Smrg CFLAGS="$CFLAGS -pedantic" 1032917ca54c3Smrg 1033017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 1033117ca54c3Smrg$as_echo_n "checking if $CC supports -pedantic... " >&6; } 1033217ca54c3Smrg cacheid=xorg_cv_cc_flag__pedantic 1033317ca54c3Smrg if eval \${$cacheid+:} false; then : 1033417ca54c3Smrg $as_echo_n "(cached) " >&6 1033517ca54c3Smrgelse 1033617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1033717ca54c3Smrg/* end confdefs.h. */ 1033817ca54c3Smrgint i; 1033917ca54c3Smrgint 1034017ca54c3Smrgmain () 1034117ca54c3Smrg{ 1034217ca54c3Smrg 1034317ca54c3Smrg ; 1034417ca54c3Smrg return 0; 1034517ca54c3Smrg} 1034617ca54c3Smrg_ACEOF 1034717ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 1034817ca54c3Smrg eval $cacheid=yes 1034917ca54c3Smrgelse 1035017ca54c3Smrg eval $cacheid=no 1035117ca54c3Smrgfi 1035217ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 1035317ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 1035417ca54c3Smrgfi 1035517ca54c3Smrg 1035617ca54c3Smrg 1035717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1035817ca54c3Smrg 1035917ca54c3Smrg eval supported=\$$cacheid 1036017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1036117ca54c3Smrg$as_echo "$supported" >&6; } 1036217ca54c3Smrg if test "$supported" = "yes" ; then 1036317ca54c3Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 1036417ca54c3Smrg found="yes" 1036517ca54c3Smrg fi 1036617ca54c3Smrg fi 1036717ca54c3Smrg 1036817ca54c3Smrg 1036917ca54c3Smrg 1037017ca54c3Smrg 1037117ca54c3Smrg 1037217ca54c3Smrg 1037317ca54c3Smrg 1037417ca54c3Smrg 1037517ca54c3Smrg 1037617ca54c3Smrg 1037717ca54c3Smrg 1037817ca54c3Smrg 1037917ca54c3Smrg 1038017ca54c3Smrg 1038117ca54c3Smrg 1038217ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1038317ca54c3Smrg 1038417ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1038517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1038617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1038717ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1038817ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1038917ca54c3Smrg $as_echo_n "(cached) " >&6 1039017ca54c3Smrgelse 1039117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1039217ca54c3Smrg/* end confdefs.h. */ 1039317ca54c3Smrgint i; 1039417ca54c3Smrg_ACEOF 1039517ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 1039617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1039717ca54c3Smrgelse 1039817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 1039917ca54c3Smrgfi 1040017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1040117ca54c3Smrgfi 1040217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1040317ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1040417ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1040517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1040617ca54c3Smrgfi 1040717ca54c3Smrg 1040817ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1040917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1041017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1041117ca54c3Smrg fi 1041217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1041317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1041417ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1041517ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1041617ca54c3Smrg $as_echo_n "(cached) " >&6 1041717ca54c3Smrgelse 1041817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1041917ca54c3Smrg/* end confdefs.h. */ 1042017ca54c3Smrgint i; 1042117ca54c3Smrg_ACEOF 1042217ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 1042317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1042417ca54c3Smrgelse 1042517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1042617ca54c3Smrgfi 1042717ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1042817ca54c3Smrgfi 1042917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1043017ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1043117ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1043217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1043317ca54c3Smrgfi 1043417ca54c3Smrg 1043517ca54c3Smrgfound="no" 1043617ca54c3Smrg 1043717ca54c3Smrg if test $found = "no" ; then 1043817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1043917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1044017ca54c3Smrg fi 1044117ca54c3Smrg 1044217ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1044317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1044417ca54c3Smrg fi 1044517ca54c3Smrg 1044617ca54c3Smrg CFLAGS="$CFLAGS -Werror" 1044717ca54c3Smrg 1044817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 1044917ca54c3Smrg$as_echo_n "checking if $CC supports -Werror... " >&6; } 1045017ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror 1045117ca54c3Smrg if eval \${$cacheid+:} false; then : 1045217ca54c3Smrg $as_echo_n "(cached) " >&6 1045317ca54c3Smrgelse 1045417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1045517ca54c3Smrg/* end confdefs.h. */ 1045617ca54c3Smrgint i; 1045717ca54c3Smrgint 1045817ca54c3Smrgmain () 1045917ca54c3Smrg{ 1046017ca54c3Smrg 1046117ca54c3Smrg ; 1046217ca54c3Smrg return 0; 1046317ca54c3Smrg} 1046417ca54c3Smrg_ACEOF 1046517ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 1046617ca54c3Smrg eval $cacheid=yes 1046717ca54c3Smrgelse 1046817ca54c3Smrg eval $cacheid=no 1046917ca54c3Smrgfi 1047017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 1047117ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 1047217ca54c3Smrgfi 1047317ca54c3Smrg 1047417ca54c3Smrg 1047517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1047617ca54c3Smrg 1047717ca54c3Smrg eval supported=\$$cacheid 1047817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1047917ca54c3Smrg$as_echo "$supported" >&6; } 1048017ca54c3Smrg if test "$supported" = "yes" ; then 1048117ca54c3Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 1048217ca54c3Smrg found="yes" 1048317ca54c3Smrg fi 1048417ca54c3Smrg fi 1048517ca54c3Smrg 1048617ca54c3Smrg if test $found = "no" ; then 1048717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1048817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1048917ca54c3Smrg fi 1049017ca54c3Smrg 1049117ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1049217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1049317ca54c3Smrg fi 1049417ca54c3Smrg 1049517ca54c3Smrg CFLAGS="$CFLAGS -errwarn" 1049617ca54c3Smrg 1049717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 1049817ca54c3Smrg$as_echo_n "checking if $CC supports -errwarn... " >&6; } 1049917ca54c3Smrg cacheid=xorg_cv_cc_flag__errwarn 1050017ca54c3Smrg if eval \${$cacheid+:} false; then : 1050117ca54c3Smrg $as_echo_n "(cached) " >&6 1050217ca54c3Smrgelse 1050317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1050417ca54c3Smrg/* end confdefs.h. */ 1050517ca54c3Smrgint i; 1050617ca54c3Smrgint 1050717ca54c3Smrgmain () 1050817ca54c3Smrg{ 1050917ca54c3Smrg 1051017ca54c3Smrg ; 1051117ca54c3Smrg return 0; 1051217ca54c3Smrg} 1051317ca54c3Smrg_ACEOF 1051417ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 1051517ca54c3Smrg eval $cacheid=yes 1051617ca54c3Smrgelse 1051717ca54c3Smrg eval $cacheid=no 1051817ca54c3Smrgfi 1051917ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 1052017ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 1052117ca54c3Smrgfi 1052217ca54c3Smrg 1052317ca54c3Smrg 1052417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1052517ca54c3Smrg 1052617ca54c3Smrg eval supported=\$$cacheid 1052717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1052817ca54c3Smrg$as_echo "$supported" >&6; } 1052917ca54c3Smrg if test "$supported" = "yes" ; then 1053017ca54c3Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 1053117ca54c3Smrg found="yes" 1053217ca54c3Smrg fi 1053317ca54c3Smrg fi 1053417ca54c3Smrg 1053517ca54c3Smrg 1053617ca54c3Smrg 1053717ca54c3Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 1053817ca54c3Smrg# activate it with -Werror, so we add it here explicitly. 1053917ca54c3Smrg 1054017ca54c3Smrg 1054117ca54c3Smrg 1054217ca54c3Smrg 1054317ca54c3Smrg 1054417ca54c3Smrg 1054517ca54c3Smrg 1054617ca54c3Smrg 1054717ca54c3Smrg 1054817ca54c3Smrg 1054917ca54c3Smrg 1055017ca54c3Smrg 1055117ca54c3Smrg 1055217ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1055317ca54c3Smrg 1055417ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1055517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1055617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1055717ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1055817ca54c3Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1055917ca54c3Smrg $as_echo_n "(cached) " >&6 1056017ca54c3Smrgelse 1056117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1056217ca54c3Smrg/* end confdefs.h. */ 1056317ca54c3Smrgint i; 1056417ca54c3Smrg_ACEOF 1056517ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 1056617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1056717ca54c3Smrgelse 1056817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 1056917ca54c3Smrgfi 1057017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1057117ca54c3Smrgfi 1057217ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1057317ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1057417ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1057517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1057617ca54c3Smrgfi 1057717ca54c3Smrg 1057817ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1057917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1058017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1058117ca54c3Smrg fi 1058217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1058317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1058417ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1058517ca54c3Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1058617ca54c3Smrg $as_echo_n "(cached) " >&6 1058717ca54c3Smrgelse 1058817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1058917ca54c3Smrg/* end confdefs.h. */ 1059017ca54c3Smrgint i; 1059117ca54c3Smrg_ACEOF 1059217ca54c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 1059317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1059417ca54c3Smrgelse 1059517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1059617ca54c3Smrgfi 1059717ca54c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1059817ca54c3Smrgfi 1059917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1060017ca54c3Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1060117ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1060217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1060317ca54c3Smrgfi 1060417ca54c3Smrg 1060517ca54c3Smrgfound="no" 1060617ca54c3Smrg 1060717ca54c3Smrg if test $found = "no" ; then 1060817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1060917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1061017ca54c3Smrg fi 1061117ca54c3Smrg 1061217ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1061317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1061417ca54c3Smrg fi 1061517ca54c3Smrg 1061617ca54c3Smrg CFLAGS="$CFLAGS -Werror=attributes" 1061717ca54c3Smrg 1061817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 1061917ca54c3Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 1062017ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 1062117ca54c3Smrg if eval \${$cacheid+:} false; then : 1062217ca54c3Smrg $as_echo_n "(cached) " >&6 1062317ca54c3Smrgelse 1062417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1062517ca54c3Smrg/* end confdefs.h. */ 1062617ca54c3Smrgint i; 1062717ca54c3Smrgint 1062817ca54c3Smrgmain () 1062917ca54c3Smrg{ 1063017ca54c3Smrg 1063117ca54c3Smrg ; 1063217ca54c3Smrg return 0; 1063317ca54c3Smrg} 1063417ca54c3Smrg_ACEOF 1063517ca54c3Smrgif ac_fn_c_try_link "$LINENO"; then : 1063617ca54c3Smrg eval $cacheid=yes 1063717ca54c3Smrgelse 1063817ca54c3Smrg eval $cacheid=no 1063917ca54c3Smrgfi 1064017ca54c3Smrgrm -f core conftest.err conftest.$ac_objext \ 1064117ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 1064217ca54c3Smrgfi 1064317ca54c3Smrg 1064417ca54c3Smrg 1064517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1064617ca54c3Smrg 1064717ca54c3Smrg eval supported=\$$cacheid 1064817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1064917ca54c3Smrg$as_echo "$supported" >&6; } 1065017ca54c3Smrg if test "$supported" = "yes" ; then 1065117ca54c3Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 1065217ca54c3Smrg found="yes" 1065317ca54c3Smrg fi 1065417ca54c3Smrg fi 1065517ca54c3Smrg 1065617ca54c3Smrg 1065717ca54c3Smrg 1065817ca54c3Smrgif test "x$STRICT_COMPILE" = "xyes"; then 1065917ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 1066017ca54c3Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 1066117ca54c3Smrgfi 1066217ca54c3Smrg 1066317ca54c3Smrg 1066417ca54c3Smrg 1066517ca54c3Smrg 1066617ca54c3Smrg 1066717ca54c3Smrg 1066817ca54c3Smrgcat >>confdefs.h <<_ACEOF 1066917ca54c3Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 1067017ca54c3Smrg_ACEOF 1067117ca54c3Smrg 1067217ca54c3Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 1067317ca54c3Smrg if test "x$PVM" = "x"; then 1067417ca54c3Smrg PVM="0" 1067517ca54c3Smrg fi 1067617ca54c3Smrg 1067717ca54c3Smrgcat >>confdefs.h <<_ACEOF 1067817ca54c3Smrg#define PACKAGE_VERSION_MINOR $PVM 1067917ca54c3Smrg_ACEOF 1068017ca54c3Smrg 1068117ca54c3Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 1068217ca54c3Smrg if test "x$PVP" = "x"; then 1068317ca54c3Smrg PVP="0" 1068417ca54c3Smrg fi 1068517ca54c3Smrg 1068617ca54c3Smrgcat >>confdefs.h <<_ACEOF 1068717ca54c3Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 1068817ca54c3Smrg_ACEOF 1068917ca54c3Smrg 1069017ca54c3Smrg 1069117ca54c3Smrg 10692ea1d6981SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 1069317ca54c3Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10694ea1d6981Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10695ea1d6981Smrgtouch \$(top_srcdir)/ChangeLog; \ 10696ea1d6981Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 1069717ca54c3Smrg 1069817ca54c3Smrg 1069917ca54c3Smrg 1070017ca54c3Smrg 1070117ca54c3Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 1070217ca54c3SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 1070317ca54c3Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10704ea1d6981Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10705ea1d6981Smrgtouch \$(top_srcdir)/INSTALL; \ 10706ea1d6981Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10707ea1d6981Smrg 10708ea1d6981Smrg 1070917ca54c3Smrg 1071017ca54c3Smrg 1071117ca54c3Smrg 1071217ca54c3Smrg 10713ea1d6981Smrgcase $host_os in 10714ea1d6981Smrg solaris*) 10715ea1d6981Smrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10716ea1d6981Smrg # check for a man page file found in later versions that use 10717ea1d6981Smrg # traditional section numbers instead 10718ea1d6981Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10719ea1d6981Smrg$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 10720ea1d6981Smrgif ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 10721ea1d6981Smrg $as_echo_n "(cached) " >&6 10722ea1d6981Smrgelse 10723ea1d6981Smrg test "$cross_compiling" = yes && 10724ea1d6981Smrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10725ea1d6981Smrgif test -r "/usr/share/man/man7/attributes.7"; then 10726ea1d6981Smrg ac_cv_file__usr_share_man_man7_attributes_7=yes 10727ea1d6981Smrgelse 10728ea1d6981Smrg ac_cv_file__usr_share_man_man7_attributes_7=no 10729ea1d6981Smrgfi 10730ea1d6981Smrgfi 10731ea1d6981Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10732ea1d6981Smrg$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10733ea1d6981Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 10734ea1d6981Smrg SYSV_MAN_SECTIONS=false 10735ea1d6981Smrgelse 10736ea1d6981Smrg SYSV_MAN_SECTIONS=true 10737ea1d6981Smrgfi 1073817ca54c3Smrg 10739ea1d6981Smrg ;; 10740ea1d6981Smrg *) SYSV_MAN_SECTIONS=false ;; 10741ea1d6981Smrgesac 1074217ca54c3Smrg 1074317ca54c3Smrgif test x$APP_MAN_SUFFIX = x ; then 1074417ca54c3Smrg APP_MAN_SUFFIX=1 1074517ca54c3Smrgfi 1074617ca54c3Smrgif test x$APP_MAN_DIR = x ; then 1074717ca54c3Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1074817ca54c3Smrgfi 1074917ca54c3Smrg 1075017ca54c3Smrgif test x$LIB_MAN_SUFFIX = x ; then 1075117ca54c3Smrg LIB_MAN_SUFFIX=3 1075217ca54c3Smrgfi 1075317ca54c3Smrgif test x$LIB_MAN_DIR = x ; then 1075417ca54c3Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1075517ca54c3Smrgfi 1075617ca54c3Smrg 1075717ca54c3Smrgif test x$FILE_MAN_SUFFIX = x ; then 10758ea1d6981Smrg case $SYSV_MAN_SECTIONS in 10759ea1d6981Smrg true) FILE_MAN_SUFFIX=4 ;; 10760ea1d6981Smrg *) FILE_MAN_SUFFIX=5 ;; 1076117ca54c3Smrg esac 1076217ca54c3Smrgfi 1076317ca54c3Smrgif test x$FILE_MAN_DIR = x ; then 1076417ca54c3Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 1076517ca54c3Smrgfi 1076617ca54c3Smrg 1076717ca54c3Smrgif test x$MISC_MAN_SUFFIX = x ; then 10768ea1d6981Smrg case $SYSV_MAN_SECTIONS in 10769ea1d6981Smrg true) MISC_MAN_SUFFIX=5 ;; 10770ea1d6981Smrg *) MISC_MAN_SUFFIX=7 ;; 1077117ca54c3Smrg esac 1077217ca54c3Smrgfi 1077317ca54c3Smrgif test x$MISC_MAN_DIR = x ; then 1077417ca54c3Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 1077517ca54c3Smrgfi 1077617ca54c3Smrg 1077717ca54c3Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 10778ea1d6981Smrg case $SYSV_MAN_SECTIONS in 10779ea1d6981Smrg true) DRIVER_MAN_SUFFIX=7 ;; 10780ea1d6981Smrg *) DRIVER_MAN_SUFFIX=4 ;; 1078117ca54c3Smrg esac 1078217ca54c3Smrgfi 1078317ca54c3Smrgif test x$DRIVER_MAN_DIR = x ; then 1078417ca54c3Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1078517ca54c3Smrgfi 1078617ca54c3Smrg 1078717ca54c3Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 10788ea1d6981Smrg case $SYSV_MAN_SECTIONS in 10789ea1d6981Smrg true) ADMIN_MAN_SUFFIX=1m ;; 10790ea1d6981Smrg *) ADMIN_MAN_SUFFIX=8 ;; 1079117ca54c3Smrg esac 1079217ca54c3Smrgfi 1079317ca54c3Smrgif test x$ADMIN_MAN_DIR = x ; then 1079417ca54c3Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1079517ca54c3Smrgfi 1079617ca54c3Smrg 1079717ca54c3Smrg 1079817ca54c3Smrg 1079917ca54c3Smrg 1080017ca54c3Smrg 1080117ca54c3Smrg 1080217ca54c3Smrg 1080317ca54c3Smrg 1080417ca54c3Smrg 1080517ca54c3Smrg 1080617ca54c3Smrg 1080717ca54c3Smrg 1080817ca54c3Smrg 1080917ca54c3Smrg 1081017ca54c3Smrg 1081117ca54c3SmrgXORG_MAN_PAGE="X Version 11" 1081217ca54c3Smrg 1081317ca54c3SmrgMAN_SUBSTS="\ 1081417ca54c3Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1081517ca54c3Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1081617ca54c3Smrg -e 's|__xservername__|Xorg|g' \ 1081717ca54c3Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 1081817ca54c3Smrg -e 's|__projectroot__|\$(prefix)|g' \ 1081917ca54c3Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1082017ca54c3Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1082117ca54c3Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1082217ca54c3Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1082317ca54c3Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1082417ca54c3Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1082517ca54c3Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1082617ca54c3Smrg 1082717ca54c3Smrg 1082817ca54c3Smrg 1082917ca54c3Smrg# Check whether --enable-silent-rules was given. 1083017ca54c3Smrgif test "${enable_silent_rules+set}" = set; then : 1083117ca54c3Smrg enableval=$enable_silent_rules; 1083217ca54c3Smrgfi 1083317ca54c3Smrg 1083417ca54c3Smrgcase $enable_silent_rules in # ((( 1083517ca54c3Smrg yes) AM_DEFAULT_VERBOSITY=0;; 1083617ca54c3Smrg no) AM_DEFAULT_VERBOSITY=1;; 1083717ca54c3Smrg *) AM_DEFAULT_VERBOSITY=0;; 1083817ca54c3Smrgesac 1083917ca54c3Smrgam_make=${MAKE-make} 1084017ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 1084117ca54c3Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 1084217ca54c3Smrgif ${am_cv_make_support_nested_variables+:} false; then : 1084317ca54c3Smrg $as_echo_n "(cached) " >&6 1084417ca54c3Smrgelse 1084517ca54c3Smrg if $as_echo 'TRUE=$(BAR$(V)) 1084617ca54c3SmrgBAR0=false 1084717ca54c3SmrgBAR1=true 1084817ca54c3SmrgV=1 1084917ca54c3Smrgam__doit: 1085017ca54c3Smrg @$(TRUE) 1085117ca54c3Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 1085217ca54c3Smrg am_cv_make_support_nested_variables=yes 1085317ca54c3Smrgelse 1085417ca54c3Smrg am_cv_make_support_nested_variables=no 1085517ca54c3Smrgfi 1085617ca54c3Smrgfi 1085717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 1085817ca54c3Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 1085917ca54c3Smrgif test $am_cv_make_support_nested_variables = yes; then 1086017ca54c3Smrg AM_V='$(V)' 1086117ca54c3Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1086217ca54c3Smrgelse 1086317ca54c3Smrg AM_V=$AM_DEFAULT_VERBOSITY 1086417ca54c3Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1086517ca54c3Smrgfi 1086617ca54c3SmrgAM_BACKSLASH='\' 1086717ca54c3Smrg 1086817ca54c3Smrg 1086917ca54c3Smrg 1087017ca54c3Smrg 1087117ca54c3Smrg# Check whether --enable-specs was given. 1087217ca54c3Smrgif test "${enable_specs+set}" = set; then : 1087317ca54c3Smrg enableval=$enable_specs; build_specs=$enableval 1087417ca54c3Smrgelse 1087517ca54c3Smrg build_specs=yes 1087617ca54c3Smrgfi 1087717ca54c3Smrg 1087817ca54c3Smrg 1087917ca54c3Smrg if test x$build_specs = xyes; then 1088017ca54c3Smrg ENABLE_SPECS_TRUE= 1088117ca54c3Smrg ENABLE_SPECS_FALSE='#' 1088217ca54c3Smrgelse 1088317ca54c3Smrg ENABLE_SPECS_TRUE='#' 1088417ca54c3Smrg ENABLE_SPECS_FALSE= 1088517ca54c3Smrgfi 1088617ca54c3Smrg 1088717ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 1088817ca54c3Smrg$as_echo_n "checking whether to build functional specifications... " >&6; } 1088917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 1089017ca54c3Smrg$as_echo "$build_specs" >&6; } 1089117ca54c3Smrg 1089217ca54c3Smrg 1089317ca54c3Smrg 1089417ca54c3Smrg 1089517ca54c3Smrg 1089617ca54c3Smrg# Check whether --with-xmlto was given. 1089717ca54c3Smrgif test "${with_xmlto+set}" = set; then : 1089817ca54c3Smrg withval=$with_xmlto; use_xmlto=$withval 1089917ca54c3Smrgelse 1090017ca54c3Smrg use_xmlto=auto 1090117ca54c3Smrgfi 1090217ca54c3Smrg 1090317ca54c3Smrg 1090417ca54c3Smrg 1090517ca54c3Smrgif test "x$use_xmlto" = x"auto"; then 1090617ca54c3Smrg # Extract the first word of "xmlto", so it can be a program name with args. 1090717ca54c3Smrgset dummy xmlto; ac_word=$2 1090817ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1090917ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 1091017ca54c3Smrgif ${ac_cv_path_XMLTO+:} false; then : 1091117ca54c3Smrg $as_echo_n "(cached) " >&6 1091217ca54c3Smrgelse 1091317ca54c3Smrg case $XMLTO in 1091417ca54c3Smrg [\\/]* | ?:[\\/]*) 1091517ca54c3Smrg ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 1091617ca54c3Smrg ;; 1091717ca54c3Smrg *) 1091817ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1091917ca54c3Smrgfor as_dir in $PATH 1092017ca54c3Smrgdo 1092117ca54c3Smrg IFS=$as_save_IFS 1092217ca54c3Smrg test -z "$as_dir" && as_dir=. 1092317ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 1092417ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1092517ca54c3Smrg ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 1092617ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1092717ca54c3Smrg break 2 1092817ca54c3Smrg fi 1092917ca54c3Smrgdone 1093017ca54c3Smrg done 1093117ca54c3SmrgIFS=$as_save_IFS 1093217ca54c3Smrg 1093317ca54c3Smrg ;; 1093417ca54c3Smrgesac 1093517ca54c3Smrgfi 1093617ca54c3SmrgXMLTO=$ac_cv_path_XMLTO 1093717ca54c3Smrgif test -n "$XMLTO"; then 1093817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 1093917ca54c3Smrg$as_echo "$XMLTO" >&6; } 1094017ca54c3Smrgelse 1094117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1094217ca54c3Smrg$as_echo "no" >&6; } 1094317ca54c3Smrgfi 1094417ca54c3Smrg 1094517ca54c3Smrg 1094617ca54c3Smrg if test "x$XMLTO" = "x"; then 1094717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 1094817ca54c3Smrg$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 1094917ca54c3Smrg have_xmlto=no 1095017ca54c3Smrg else 1095117ca54c3Smrg have_xmlto=yes 1095217ca54c3Smrg fi 1095317ca54c3Smrgelif test "x$use_xmlto" = x"yes" ; then 1095417ca54c3Smrg # Extract the first word of "xmlto", so it can be a program name with args. 1095517ca54c3Smrgset dummy xmlto; ac_word=$2 1095617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1095717ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 1095817ca54c3Smrgif ${ac_cv_path_XMLTO+:} false; then : 1095917ca54c3Smrg $as_echo_n "(cached) " >&6 1096017ca54c3Smrgelse 1096117ca54c3Smrg case $XMLTO in 1096217ca54c3Smrg [\\/]* | ?:[\\/]*) 1096317ca54c3Smrg ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 1096417ca54c3Smrg ;; 1096517ca54c3Smrg *) 1096617ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1096717ca54c3Smrgfor as_dir in $PATH 1096817ca54c3Smrgdo 1096917ca54c3Smrg IFS=$as_save_IFS 1097017ca54c3Smrg test -z "$as_dir" && as_dir=. 1097117ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 1097217ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1097317ca54c3Smrg ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 1097417ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1097517ca54c3Smrg break 2 1097617ca54c3Smrg fi 1097717ca54c3Smrgdone 1097817ca54c3Smrg done 1097917ca54c3SmrgIFS=$as_save_IFS 1098017ca54c3Smrg 1098117ca54c3Smrg ;; 1098217ca54c3Smrgesac 1098317ca54c3Smrgfi 1098417ca54c3SmrgXMLTO=$ac_cv_path_XMLTO 1098517ca54c3Smrgif test -n "$XMLTO"; then 1098617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 1098717ca54c3Smrg$as_echo "$XMLTO" >&6; } 1098817ca54c3Smrgelse 1098917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1099017ca54c3Smrg$as_echo "no" >&6; } 1099117ca54c3Smrgfi 1099217ca54c3Smrg 1099317ca54c3Smrg 1099417ca54c3Smrg if test "x$XMLTO" = "x"; then 1099517ca54c3Smrg as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 1099617ca54c3Smrg fi 1099717ca54c3Smrg have_xmlto=yes 1099817ca54c3Smrgelif test "x$use_xmlto" = x"no" ; then 1099917ca54c3Smrg if test "x$XMLTO" != "x"; then 1100017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 1100117ca54c3Smrg$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 1100217ca54c3Smrg fi 1100317ca54c3Smrg have_xmlto=no 1100417ca54c3Smrgelse 1100517ca54c3Smrg as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 1100617ca54c3Smrgfi 1100717ca54c3Smrg 1100817ca54c3Smrg# Test for a minimum version of xmlto, if provided. 1100917ca54c3Smrgif test "$have_xmlto" = yes; then 1101017ca54c3Smrg # scrape the xmlto version 1101117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 1101217ca54c3Smrg$as_echo_n "checking the xmlto version... " >&6; } 1101317ca54c3Smrg xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 1101417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 1101517ca54c3Smrg$as_echo "$xmlto_version" >&6; } 1101617ca54c3Smrg as_arg_v1=$xmlto_version 1101717ca54c3Smrgas_arg_v2=0.0.22 1101817ca54c3Smrgawk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 1101917ca54c3Smrgcase $? in #( 1102017ca54c3Smrg 1) : 1102117ca54c3Smrg if test "x$use_xmlto" = xauto; then 1102217ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 1102317ca54c3Smrg$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 1102417ca54c3Smrg have_xmlto=no 1102517ca54c3Smrg else 1102617ca54c3Smrg as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 1102717ca54c3Smrg fi ;; #( 1102817ca54c3Smrg 0) : 1102917ca54c3Smrg ;; #( 1103017ca54c3Smrg 2) : 1103117ca54c3Smrg ;; #( 1103217ca54c3Smrg *) : 1103317ca54c3Smrg ;; 1103417ca54c3Smrgesac 1103517ca54c3Smrgfi 1103617ca54c3Smrg 1103717ca54c3Smrg# Test for the ability of xmlto to generate a text target 11038ea1d6981Smrg# 11039ea1d6981Smrg# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 11040ea1d6981Smrg# following test for empty XML docbook files. 11041ea1d6981Smrg# For compatibility reasons use the following empty XML docbook file and if 11042ea1d6981Smrg# it fails try it again with a non-empty XML file. 1104317ca54c3Smrghave_xmlto_text=no 1104417ca54c3Smrgcat > conftest.xml << "EOF" 1104517ca54c3SmrgEOF 1104617ca54c3Smrgif test "$have_xmlto" = yes; then : 1104717ca54c3Smrg if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 1104817ca54c3Smrg have_xmlto_text=yes 11049ea1d6981Smrgelse 11050ea1d6981Smrg # Try it again with a non-empty XML file. 11051ea1d6981Smrg cat > conftest.xml << "EOF" 11052ea1d6981Smrg<x></x> 11053ea1d6981SmrgEOF 11054ea1d6981Smrg if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 11055ea1d6981Smrg have_xmlto_text=yes 1105617ca54c3Smrgelse 1105717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 1105817ca54c3Smrg$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 1105917ca54c3Smrgfi 1106017ca54c3Smrgfi 11061ea1d6981Smrgfi 1106217ca54c3Smrgrm -f conftest.xml 1106317ca54c3Smrg if test $have_xmlto_text = yes; then 1106417ca54c3Smrg HAVE_XMLTO_TEXT_TRUE= 1106517ca54c3Smrg HAVE_XMLTO_TEXT_FALSE='#' 1106617ca54c3Smrgelse 1106717ca54c3Smrg HAVE_XMLTO_TEXT_TRUE='#' 1106817ca54c3Smrg HAVE_XMLTO_TEXT_FALSE= 1106917ca54c3Smrgfi 1107017ca54c3Smrg 1107117ca54c3Smrg if test "$have_xmlto" = yes; then 1107217ca54c3Smrg HAVE_XMLTO_TRUE= 1107317ca54c3Smrg HAVE_XMLTO_FALSE='#' 1107417ca54c3Smrgelse 1107517ca54c3Smrg HAVE_XMLTO_TRUE='#' 1107617ca54c3Smrg HAVE_XMLTO_FALSE= 1107717ca54c3Smrgfi 1107817ca54c3Smrg 1107917ca54c3Smrg 1108017ca54c3Smrg 1108117ca54c3Smrg 1108217ca54c3Smrg 1108317ca54c3Smrg 1108417ca54c3Smrg# Check whether --with-fop was given. 1108517ca54c3Smrgif test "${with_fop+set}" = set; then : 1108617ca54c3Smrg withval=$with_fop; use_fop=$withval 1108717ca54c3Smrgelse 1108817ca54c3Smrg use_fop=auto 1108917ca54c3Smrgfi 1109017ca54c3Smrg 1109117ca54c3Smrg 1109217ca54c3Smrg 1109317ca54c3Smrgif test "x$use_fop" = x"auto"; then 1109417ca54c3Smrg # Extract the first word of "fop", so it can be a program name with args. 1109517ca54c3Smrgset dummy fop; ac_word=$2 1109617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1109717ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 1109817ca54c3Smrgif ${ac_cv_path_FOP+:} false; then : 1109917ca54c3Smrg $as_echo_n "(cached) " >&6 1110017ca54c3Smrgelse 1110117ca54c3Smrg case $FOP in 1110217ca54c3Smrg [\\/]* | ?:[\\/]*) 1110317ca54c3Smrg ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 1110417ca54c3Smrg ;; 1110517ca54c3Smrg *) 1110617ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1110717ca54c3Smrgfor as_dir in $PATH 1110817ca54c3Smrgdo 1110917ca54c3Smrg IFS=$as_save_IFS 1111017ca54c3Smrg test -z "$as_dir" && as_dir=. 1111117ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 1111217ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1111317ca54c3Smrg ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 1111417ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1111517ca54c3Smrg break 2 1111617ca54c3Smrg fi 1111717ca54c3Smrgdone 1111817ca54c3Smrg done 1111917ca54c3SmrgIFS=$as_save_IFS 1112017ca54c3Smrg 1112117ca54c3Smrg ;; 1112217ca54c3Smrgesac 1112317ca54c3Smrgfi 1112417ca54c3SmrgFOP=$ac_cv_path_FOP 1112517ca54c3Smrgif test -n "$FOP"; then 1112617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 1112717ca54c3Smrg$as_echo "$FOP" >&6; } 1112817ca54c3Smrgelse 1112917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1113017ca54c3Smrg$as_echo "no" >&6; } 1113117ca54c3Smrgfi 1113217ca54c3Smrg 1113317ca54c3Smrg 1113417ca54c3Smrg if test "x$FOP" = "x"; then 1113517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 1113617ca54c3Smrg$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 1113717ca54c3Smrg have_fop=no 1113817ca54c3Smrg else 1113917ca54c3Smrg have_fop=yes 1114017ca54c3Smrg fi 1114117ca54c3Smrgelif test "x$use_fop" = x"yes" ; then 1114217ca54c3Smrg # Extract the first word of "fop", so it can be a program name with args. 1114317ca54c3Smrgset dummy fop; ac_word=$2 1114417ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1114517ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 1114617ca54c3Smrgif ${ac_cv_path_FOP+:} false; then : 1114717ca54c3Smrg $as_echo_n "(cached) " >&6 1114817ca54c3Smrgelse 1114917ca54c3Smrg case $FOP in 1115017ca54c3Smrg [\\/]* | ?:[\\/]*) 1115117ca54c3Smrg ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 1115217ca54c3Smrg ;; 1115317ca54c3Smrg *) 1115417ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1115517ca54c3Smrgfor as_dir in $PATH 1115617ca54c3Smrgdo 1115717ca54c3Smrg IFS=$as_save_IFS 1115817ca54c3Smrg test -z "$as_dir" && as_dir=. 1115917ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 1116017ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1116117ca54c3Smrg ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 1116217ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1116317ca54c3Smrg break 2 1116417ca54c3Smrg fi 1116517ca54c3Smrgdone 1116617ca54c3Smrg done 1116717ca54c3SmrgIFS=$as_save_IFS 1116817ca54c3Smrg 1116917ca54c3Smrg ;; 1117017ca54c3Smrgesac 1117117ca54c3Smrgfi 1117217ca54c3SmrgFOP=$ac_cv_path_FOP 1117317ca54c3Smrgif test -n "$FOP"; then 1117417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 1117517ca54c3Smrg$as_echo "$FOP" >&6; } 1117617ca54c3Smrgelse 1117717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1117817ca54c3Smrg$as_echo "no" >&6; } 1117917ca54c3Smrgfi 1118017ca54c3Smrg 1118117ca54c3Smrg 1118217ca54c3Smrg if test "x$FOP" = "x"; then 1118317ca54c3Smrg as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 1118417ca54c3Smrg fi 1118517ca54c3Smrg have_fop=yes 1118617ca54c3Smrgelif test "x$use_fop" = x"no" ; then 1118717ca54c3Smrg if test "x$FOP" != "x"; then 1118817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 1118917ca54c3Smrg$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 1119017ca54c3Smrg fi 1119117ca54c3Smrg have_fop=no 1119217ca54c3Smrgelse 1119317ca54c3Smrg as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 1119417ca54c3Smrgfi 1119517ca54c3Smrg 1119617ca54c3Smrg# Test for a minimum version of fop, if provided. 1119717ca54c3Smrg 1119817ca54c3Smrg if test "$have_fop" = yes; then 1119917ca54c3Smrg HAVE_FOP_TRUE= 1120017ca54c3Smrg HAVE_FOP_FALSE='#' 1120117ca54c3Smrgelse 1120217ca54c3Smrg HAVE_FOP_TRUE='#' 1120317ca54c3Smrg HAVE_FOP_FALSE= 1120417ca54c3Smrgfi 1120517ca54c3Smrg 1120617ca54c3Smrg 1120717ca54c3Smrg 1120817ca54c3Smrg 1120917ca54c3Smrg# Preserves the interface, should it be implemented later 1121017ca54c3Smrg 1121117ca54c3Smrg 1121217ca54c3Smrg 1121317ca54c3Smrg# Check whether --with-xsltproc was given. 1121417ca54c3Smrgif test "${with_xsltproc+set}" = set; then : 1121517ca54c3Smrg withval=$with_xsltproc; use_xsltproc=$withval 1121617ca54c3Smrgelse 1121717ca54c3Smrg use_xsltproc=auto 1121817ca54c3Smrgfi 1121917ca54c3Smrg 1122017ca54c3Smrg 1122117ca54c3Smrg 1122217ca54c3Smrgif test "x$use_xsltproc" = x"auto"; then 1122317ca54c3Smrg # Extract the first word of "xsltproc", so it can be a program name with args. 1122417ca54c3Smrgset dummy xsltproc; ac_word=$2 1122517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1122617ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 1122717ca54c3Smrgif ${ac_cv_path_XSLTPROC+:} false; then : 1122817ca54c3Smrg $as_echo_n "(cached) " >&6 1122917ca54c3Smrgelse 1123017ca54c3Smrg case $XSLTPROC in 1123117ca54c3Smrg [\\/]* | ?:[\\/]*) 1123217ca54c3Smrg ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 1123317ca54c3Smrg ;; 1123417ca54c3Smrg *) 1123517ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1123617ca54c3Smrgfor as_dir in $PATH 1123717ca54c3Smrgdo 1123817ca54c3Smrg IFS=$as_save_IFS 1123917ca54c3Smrg test -z "$as_dir" && as_dir=. 1124017ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 1124117ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1124217ca54c3Smrg ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 1124317ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1124417ca54c3Smrg break 2 1124517ca54c3Smrg fi 1124617ca54c3Smrgdone 1124717ca54c3Smrg done 1124817ca54c3SmrgIFS=$as_save_IFS 1124917ca54c3Smrg 1125017ca54c3Smrg ;; 1125117ca54c3Smrgesac 1125217ca54c3Smrgfi 1125317ca54c3SmrgXSLTPROC=$ac_cv_path_XSLTPROC 1125417ca54c3Smrgif test -n "$XSLTPROC"; then 1125517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 1125617ca54c3Smrg$as_echo "$XSLTPROC" >&6; } 1125717ca54c3Smrgelse 1125817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1125917ca54c3Smrg$as_echo "no" >&6; } 1126017ca54c3Smrgfi 1126117ca54c3Smrg 1126217ca54c3Smrg 1126317ca54c3Smrg if test "x$XSLTPROC" = "x"; then 1126417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 1126517ca54c3Smrg$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 1126617ca54c3Smrg have_xsltproc=no 1126717ca54c3Smrg else 1126817ca54c3Smrg have_xsltproc=yes 1126917ca54c3Smrg fi 1127017ca54c3Smrgelif test "x$use_xsltproc" = x"yes" ; then 1127117ca54c3Smrg # Extract the first word of "xsltproc", so it can be a program name with args. 1127217ca54c3Smrgset dummy xsltproc; ac_word=$2 1127317ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1127417ca54c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 1127517ca54c3Smrgif ${ac_cv_path_XSLTPROC+:} false; then : 1127617ca54c3Smrg $as_echo_n "(cached) " >&6 1127717ca54c3Smrgelse 1127817ca54c3Smrg case $XSLTPROC in 1127917ca54c3Smrg [\\/]* | ?:[\\/]*) 1128017ca54c3Smrg ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 1128117ca54c3Smrg ;; 1128217ca54c3Smrg *) 1128317ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1128417ca54c3Smrgfor as_dir in $PATH 1128517ca54c3Smrgdo 1128617ca54c3Smrg IFS=$as_save_IFS 1128717ca54c3Smrg test -z "$as_dir" && as_dir=. 1128817ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 1128917ca54c3Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1129017ca54c3Smrg ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 1129117ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1129217ca54c3Smrg break 2 1129317ca54c3Smrg fi 1129417ca54c3Smrgdone 1129517ca54c3Smrg done 1129617ca54c3SmrgIFS=$as_save_IFS 1129717ca54c3Smrg 1129817ca54c3Smrg ;; 1129917ca54c3Smrgesac 1130017ca54c3Smrgfi 1130117ca54c3SmrgXSLTPROC=$ac_cv_path_XSLTPROC 1130217ca54c3Smrgif test -n "$XSLTPROC"; then 1130317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 1130417ca54c3Smrg$as_echo "$XSLTPROC" >&6; } 1130517ca54c3Smrgelse 1130617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1130717ca54c3Smrg$as_echo "no" >&6; } 1130817ca54c3Smrgfi 1130917ca54c3Smrg 1131017ca54c3Smrg 1131117ca54c3Smrg if test "x$XSLTPROC" = "x"; then 1131217ca54c3Smrg as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 1131317ca54c3Smrg fi 1131417ca54c3Smrg have_xsltproc=yes 1131517ca54c3Smrgelif test "x$use_xsltproc" = x"no" ; then 1131617ca54c3Smrg if test "x$XSLTPROC" != "x"; then 1131717ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 1131817ca54c3Smrg$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 1131917ca54c3Smrg fi 1132017ca54c3Smrg have_xsltproc=no 1132117ca54c3Smrgelse 1132217ca54c3Smrg as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 1132317ca54c3Smrgfi 1132417ca54c3Smrg 1132517ca54c3Smrg if test "$have_xsltproc" = yes; then 1132617ca54c3Smrg HAVE_XSLTPROC_TRUE= 1132717ca54c3Smrg HAVE_XSLTPROC_FALSE='#' 1132817ca54c3Smrgelse 1132917ca54c3Smrg HAVE_XSLTPROC_TRUE='#' 1133017ca54c3Smrg HAVE_XSLTPROC_FALSE= 1133117ca54c3Smrgfi 1133217ca54c3Smrg 1133317ca54c3Smrg 1133417ca54c3Smrg 1133517ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 1133617ca54c3Smrg$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 1133717ca54c3SmrgXORG_SGML_PATH= 1133817ca54c3Smrgif test -n "$PKG_CONFIG" && \ 1133917ca54c3Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 1134017ca54c3Smrg ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 1134117ca54c3Smrg ac_status=$? 1134217ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1134317ca54c3Smrg test $ac_status = 0; }; then 1134417ca54c3Smrg XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 1134517ca54c3Smrgelse 1134617ca54c3Smrg : 1134717ca54c3Smrg 1134817ca54c3Smrgfi 1134917ca54c3Smrg 1135017ca54c3Smrg# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 1135117ca54c3Smrg# the path and the name of the doc stylesheet 1135217ca54c3Smrgif test "x$XORG_SGML_PATH" != "x" ; then 1135317ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 1135417ca54c3Smrg$as_echo "$XORG_SGML_PATH" >&6; } 1135517ca54c3Smrg STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 1135617ca54c3Smrg XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 1135717ca54c3Smrgelse 1135817ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1135917ca54c3Smrg$as_echo "no" >&6; } 1136017ca54c3Smrgfi 1136117ca54c3Smrg 1136217ca54c3Smrg 1136317ca54c3Smrg 1136417ca54c3Smrg 1136517ca54c3Smrg if test "x$XSL_STYLESHEET" != "x"; then 1136617ca54c3Smrg HAVE_STYLESHEETS_TRUE= 1136717ca54c3Smrg HAVE_STYLESHEETS_FALSE='#' 1136817ca54c3Smrgelse 1136917ca54c3Smrg HAVE_STYLESHEETS_TRUE='#' 1137017ca54c3Smrg HAVE_STYLESHEETS_FALSE= 1137117ca54c3Smrgfi 1137217ca54c3Smrg 1137317ca54c3Smrg 1137417ca54c3Smrg 1137517ca54c3Smrg 1137617ca54c3Smrg 1137717ca54c3Smrg# Check whether --enable-legacy was given. 1137817ca54c3Smrgif test "${enable_legacy+set}" = set; then : 1137917ca54c3Smrg enableval=$enable_legacy; LEGACY=$enableval 1138017ca54c3Smrgelse 1138117ca54c3Smrg LEGACY=no 1138217ca54c3Smrgfi 1138317ca54c3Smrg 1138417ca54c3Smrg if test "x$LEGACY" = "xyes"; then 1138517ca54c3Smrg LEGACY_TRUE= 1138617ca54c3Smrg LEGACY_FALSE='#' 1138717ca54c3Smrgelse 1138817ca54c3Smrg LEGACY_TRUE='#' 1138917ca54c3Smrg LEGACY_FALSE= 1139017ca54c3Smrgfi 1139117ca54c3Smrg 1139217ca54c3Smrg 1139317ca54c3Smrgfor ac_header in sys/select.h sys/param.h sys/types.h sys/time.h 1139417ca54c3Smrgdo : 1139517ca54c3Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 1139617ca54c3Smrgac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 1139717ca54c3Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 1139817ca54c3Smrg cat >>confdefs.h <<_ACEOF 1139917ca54c3Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 1140017ca54c3Smrg_ACEOF 1140117ca54c3Smrg 1140217ca54c3Smrgfi 1140317ca54c3Smrg 1140417ca54c3Smrgdone 1140517ca54c3Smrg 1140617ca54c3Smrg 1140717ca54c3Smrg# Handle Xpoll.h.in 1140817ca54c3Smrg# Avoid determining fds_bits on WIN32 hosts (not including cygwin) 1140917ca54c3Smrgcase $host_os in 1141017ca54c3Smrg mingw*) fds_bits_found=true;; 1141117ca54c3Smrg *) fds_bits_found=false;; 1141217ca54c3Smrgesac 1141317ca54c3Smrg 1141417ca54c3Smrgif test "x$fds_bits_found" = xfalse ; then 1141517ca54c3Smrg ac_fn_c_check_member "$LINENO" "fd_set" "fds_bits" "ac_cv_member_fd_set_fds_bits" " 1141617ca54c3Smrg #ifdef HAVE_SYS_PARAM_H 1141717ca54c3Smrg #include <sys/param.h> 1141817ca54c3Smrg #endif 1141917ca54c3Smrg #ifdef HAVE_SYS_TYPES_H 1142017ca54c3Smrg #include <sys/types.h> 1142117ca54c3Smrg #endif 1142217ca54c3Smrg #ifdef HAVE_SYS_TIME_H 1142317ca54c3Smrg #include <sys/time.h> 1142417ca54c3Smrg #endif 1142517ca54c3Smrg #ifdef HAVE_SYS_SELECT_H 1142617ca54c3Smrg #include <sys/select.h> 1142717ca54c3Smrg #endif 1142817ca54c3Smrg 1142917ca54c3Smrg" 1143017ca54c3Smrgif test "x$ac_cv_member_fd_set_fds_bits" = xyes; then : 1143117ca54c3Smrg 1143217ca54c3Smrg fds_bits_found=plain 1143317ca54c3Smrg USE_FDS_BITS="fds_bits" 1143417ca54c3Smrg 1143517ca54c3Smrgfi 1143617ca54c3Smrg 1143717ca54c3Smrgfi 1143817ca54c3Smrg 1143917ca54c3Smrgif test "x$fds_bits_found" = xfalse ; then 1144017ca54c3Smrg ac_fn_c_check_member "$LINENO" "fd_set" "__fds_bits" "ac_cv_member_fd_set___fds_bits" " 1144117ca54c3Smrg #ifdef HAVE_SYS_PARAM_H 1144217ca54c3Smrg #include <sys/param.h> 1144317ca54c3Smrg #endif 1144417ca54c3Smrg #ifdef HAVE_SYS_TYPES_H 1144517ca54c3Smrg #include <sys/types.h> 1144617ca54c3Smrg #endif 1144717ca54c3Smrg #ifdef HAVE_SYS_TIME_H 1144817ca54c3Smrg #include <sys/time.h> 1144917ca54c3Smrg #endif 1145017ca54c3Smrg #ifdef HAVE_SYS_SELECT_H 1145117ca54c3Smrg #include <sys/select.h> 1145217ca54c3Smrg #endif 1145317ca54c3Smrg 1145417ca54c3Smrg" 1145517ca54c3Smrgif test "x$ac_cv_member_fd_set___fds_bits" = xyes; then : 1145617ca54c3Smrg 1145717ca54c3Smrg fds_bits_found=underscores 1145817ca54c3Smrg USE_FDS_BITS="__fds_bits" 1145917ca54c3Smrg 1146017ca54c3Smrgfi 1146117ca54c3Smrg 1146217ca54c3Smrgfi 1146317ca54c3Smrg 1146417ca54c3Smrgif test "x$fds_bits_found" = xfalse ; then 1146517ca54c3Smrg as_fn_error $? "Could not determine how to access the fds_bits or equivalent 1146617ca54c3Smrg structure in fd_set on your platform." "$LINENO" 5 1146717ca54c3Smrgfi 1146817ca54c3Smrg 1146917ca54c3Smrg 1147017ca54c3Smrg 114714627b59cSmrgac_config_files="$ac_config_files applewmproto.pc bigreqsproto.pc compositeproto.pc damageproto.pc dmxproto.pc dpmsproto.pc dri2proto.pc dri3proto.pc evieproto.pc fixesproto.pc fontcacheproto.pc fontsproto.pc glproto.pc include/X11/Xpoll.h inputproto.pc kbproto.pc lg3dproto.pc Makefile presentproto.pc printproto.pc randrproto.pc recordproto.pc renderproto.pc resourceproto.pc scrnsaverproto.pc specs/Makefile specs/bigreqsproto/Makefile specs/fontsproto/Makefile specs/kbproto/Makefile specs/recordproto/Makefile specs/scrnsaverproto/Makefile specs/xcmiscproto/Makefile specs/xextproto/Makefile specs/xproto/Makefile trapproto.pc videoproto.pc windowswmproto.pc xcalibrateproto.pc xcmiscproto.pc xextproto.pc xf86bigfontproto.pc xf86dgaproto.pc xf86driproto.pc xf86miscproto.pc xf86rushproto.pc xf86vidmodeproto.pc xineramaproto.pc xproto.pc xproxymngproto.pc" 1147217ca54c3Smrg 1147317ca54c3Smrg 1147417ca54c3Smrgcat >confcache <<\_ACEOF 1147517ca54c3Smrg# This file is a shell script that caches the results of configure 1147617ca54c3Smrg# tests run on this system so they can be shared between configure 1147717ca54c3Smrg# scripts and configure runs, see configure's option --config-cache. 1147817ca54c3Smrg# It is not useful on other systems. If it contains results you don't 1147917ca54c3Smrg# want to keep, you may remove or edit it. 1148017ca54c3Smrg# 1148117ca54c3Smrg# config.status only pays attention to the cache file if you give it 1148217ca54c3Smrg# the --recheck option to rerun configure. 1148317ca54c3Smrg# 1148417ca54c3Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 1148517ca54c3Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 1148617ca54c3Smrg# following values. 1148717ca54c3Smrg 1148817ca54c3Smrg_ACEOF 1148917ca54c3Smrg 1149017ca54c3Smrg# The following way of writing the cache mishandles newlines in values, 1149117ca54c3Smrg# but we know of no workaround that is simple, portable, and efficient. 1149217ca54c3Smrg# So, we kill variables containing newlines. 1149317ca54c3Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 1149417ca54c3Smrg# and sets the high bit in the cache file unless we assign to the vars. 1149517ca54c3Smrg( 1149617ca54c3Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 1149717ca54c3Smrg eval ac_val=\$$ac_var 1149817ca54c3Smrg case $ac_val in #( 1149917ca54c3Smrg *${as_nl}*) 1150017ca54c3Smrg case $ac_var in #( 1150117ca54c3Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1150217ca54c3Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1150317ca54c3Smrg esac 1150417ca54c3Smrg case $ac_var in #( 1150517ca54c3Smrg _ | IFS | as_nl) ;; #( 1150617ca54c3Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1150717ca54c3Smrg *) { eval $ac_var=; unset $ac_var;} ;; 1150817ca54c3Smrg esac ;; 1150917ca54c3Smrg esac 1151017ca54c3Smrg done 1151117ca54c3Smrg 1151217ca54c3Smrg (set) 2>&1 | 1151317ca54c3Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 1151417ca54c3Smrg *${as_nl}ac_space=\ *) 1151517ca54c3Smrg # `set' does not quote correctly, so add quotes: double-quote 1151617ca54c3Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 1151717ca54c3Smrg sed -n \ 1151817ca54c3Smrg "s/'/'\\\\''/g; 1151917ca54c3Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 1152017ca54c3Smrg ;; #( 1152117ca54c3Smrg *) 1152217ca54c3Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 1152317ca54c3Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1152417ca54c3Smrg ;; 1152517ca54c3Smrg esac | 1152617ca54c3Smrg sort 1152717ca54c3Smrg) | 1152817ca54c3Smrg sed ' 1152917ca54c3Smrg /^ac_cv_env_/b end 1153017ca54c3Smrg t clear 1153117ca54c3Smrg :clear 1153217ca54c3Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 1153317ca54c3Smrg t end 1153417ca54c3Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 1153517ca54c3Smrg :end' >>confcache 1153617ca54c3Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 1153717ca54c3Smrg if test -w "$cache_file"; then 1153817ca54c3Smrg if test "x$cache_file" != "x/dev/null"; then 1153917ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 1154017ca54c3Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 1154117ca54c3Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 1154217ca54c3Smrg cat confcache >"$cache_file" 1154317ca54c3Smrg else 1154417ca54c3Smrg case $cache_file in #( 1154517ca54c3Smrg */* | ?:*) 1154617ca54c3Smrg mv -f confcache "$cache_file"$$ && 1154717ca54c3Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 1154817ca54c3Smrg *) 1154917ca54c3Smrg mv -f confcache "$cache_file" ;; 1155017ca54c3Smrg esac 1155117ca54c3Smrg fi 1155217ca54c3Smrg fi 1155317ca54c3Smrg else 1155417ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 1155517ca54c3Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 1155617ca54c3Smrg fi 1155717ca54c3Smrgfi 1155817ca54c3Smrgrm -f confcache 1155917ca54c3Smrg 1156017ca54c3Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 1156117ca54c3Smrg# Let make expand exec_prefix. 1156217ca54c3Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1156317ca54c3Smrg 1156417ca54c3Smrg# Transform confdefs.h into DEFS. 1156517ca54c3Smrg# Protect against shell expansion while executing Makefile rules. 1156617ca54c3Smrg# Protect against Makefile macro expansion. 1156717ca54c3Smrg# 1156817ca54c3Smrg# If the first sed substitution is executed (which looks for macros that 1156917ca54c3Smrg# take arguments), then branch to the quote section. Otherwise, 1157017ca54c3Smrg# look for a macro that doesn't take arguments. 1157117ca54c3Smrgac_script=' 1157217ca54c3Smrg:mline 1157317ca54c3Smrg/\\$/{ 1157417ca54c3Smrg N 1157517ca54c3Smrg s,\\\n,, 1157617ca54c3Smrg b mline 1157717ca54c3Smrg} 1157817ca54c3Smrgt clear 1157917ca54c3Smrg:clear 1158017ca54c3Smrgs/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 1158117ca54c3Smrgt quote 1158217ca54c3Smrgs/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 1158317ca54c3Smrgt quote 1158417ca54c3Smrgb any 1158517ca54c3Smrg:quote 1158617ca54c3Smrgs/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 1158717ca54c3Smrgs/\[/\\&/g 1158817ca54c3Smrgs/\]/\\&/g 1158917ca54c3Smrgs/\$/$$/g 1159017ca54c3SmrgH 1159117ca54c3Smrg:any 1159217ca54c3Smrg${ 1159317ca54c3Smrg g 1159417ca54c3Smrg s/^\n// 1159517ca54c3Smrg s/\n/ /g 1159617ca54c3Smrg p 1159717ca54c3Smrg} 1159817ca54c3Smrg' 1159917ca54c3SmrgDEFS=`sed -n "$ac_script" confdefs.h` 1160017ca54c3Smrg 1160117ca54c3Smrg 1160217ca54c3Smrgac_libobjs= 1160317ca54c3Smrgac_ltlibobjs= 1160417ca54c3SmrgU= 1160517ca54c3Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 1160617ca54c3Smrg # 1. Remove the extension, and $U if already installed. 1160717ca54c3Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 1160817ca54c3Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 1160917ca54c3Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 1161017ca54c3Smrg # will be set to the directory where LIBOBJS objects are built. 1161117ca54c3Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 1161217ca54c3Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 1161317ca54c3Smrgdone 1161417ca54c3SmrgLIBOBJS=$ac_libobjs 1161517ca54c3Smrg 1161617ca54c3SmrgLTLIBOBJS=$ac_ltlibobjs 1161717ca54c3Smrg 1161817ca54c3Smrg 1161917ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 1162017ca54c3Smrg$as_echo_n "checking that generated files are newer than configure... " >&6; } 1162117ca54c3Smrg if test -n "$am_sleep_pid"; then 1162217ca54c3Smrg # Hide warnings about reused PIDs. 1162317ca54c3Smrg wait $am_sleep_pid 2>/dev/null 1162417ca54c3Smrg fi 1162517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 1162617ca54c3Smrg$as_echo "done" >&6; } 1162717ca54c3Smrg if test -n "$EXEEXT"; then 1162817ca54c3Smrg am__EXEEXT_TRUE= 1162917ca54c3Smrg am__EXEEXT_FALSE='#' 1163017ca54c3Smrgelse 1163117ca54c3Smrg am__EXEEXT_TRUE='#' 1163217ca54c3Smrg am__EXEEXT_FALSE= 1163317ca54c3Smrgfi 1163417ca54c3Smrg 1163517ca54c3Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 1163617ca54c3Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 1163717ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1163817ca54c3Smrgfi 1163917ca54c3Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 1164017ca54c3Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 1164117ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1164217ca54c3Smrgfi 1164317ca54c3Smrgif test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 1164417ca54c3Smrg as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 1164517ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1164617ca54c3Smrgfi 1164717ca54c3Smrgif test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 1164817ca54c3Smrg as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 1164917ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1165017ca54c3Smrgfi 1165117ca54c3Smrgif test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 1165217ca54c3Smrg as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 1165317ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1165417ca54c3Smrgfi 1165517ca54c3Smrgif test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 1165617ca54c3Smrg as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 1165717ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1165817ca54c3Smrgfi 1165917ca54c3Smrgif test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 1166017ca54c3Smrg as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 1166117ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1166217ca54c3Smrgfi 1166317ca54c3Smrgif test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 1166417ca54c3Smrg as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 1166517ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1166617ca54c3Smrgfi 1166717ca54c3Smrgif test -z "${LEGACY_TRUE}" && test -z "${LEGACY_FALSE}"; then 1166817ca54c3Smrg as_fn_error $? "conditional \"LEGACY\" was never defined. 1166917ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1167017ca54c3Smrgfi 1167117ca54c3Smrg 1167217ca54c3Smrg: "${CONFIG_STATUS=./config.status}" 1167317ca54c3Smrgac_write_fail=0 1167417ca54c3Smrgac_clean_files_save=$ac_clean_files 1167517ca54c3Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 1167617ca54c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 1167717ca54c3Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 1167817ca54c3Smrgas_write_fail=0 1167917ca54c3Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 1168017ca54c3Smrg#! $SHELL 1168117ca54c3Smrg# Generated by $as_me. 1168217ca54c3Smrg# Run this file to recreate the current configuration. 1168317ca54c3Smrg# Compiler output produced by configure, useful for debugging 1168417ca54c3Smrg# configure, is in config.log if it exists. 1168517ca54c3Smrg 1168617ca54c3Smrgdebug=false 1168717ca54c3Smrgac_cs_recheck=false 1168817ca54c3Smrgac_cs_silent=false 1168917ca54c3Smrg 1169017ca54c3SmrgSHELL=\${CONFIG_SHELL-$SHELL} 1169117ca54c3Smrgexport SHELL 1169217ca54c3Smrg_ASEOF 1169317ca54c3Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 1169417ca54c3Smrg## -------------------- ## 1169517ca54c3Smrg## M4sh Initialization. ## 1169617ca54c3Smrg## -------------------- ## 1169717ca54c3Smrg 1169817ca54c3Smrg# Be more Bourne compatible 1169917ca54c3SmrgDUALCASE=1; export DUALCASE # for MKS sh 1170017ca54c3Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 1170117ca54c3Smrg emulate sh 1170217ca54c3Smrg NULLCMD=: 1170317ca54c3Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 1170417ca54c3Smrg # is contrary to our usage. Disable this feature. 1170517ca54c3Smrg alias -g '${1+"$@"}'='"$@"' 1170617ca54c3Smrg setopt NO_GLOB_SUBST 1170717ca54c3Smrgelse 1170817ca54c3Smrg case `(set -o) 2>/dev/null` in #( 1170917ca54c3Smrg *posix*) : 1171017ca54c3Smrg set -o posix ;; #( 1171117ca54c3Smrg *) : 1171217ca54c3Smrg ;; 1171317ca54c3Smrgesac 1171417ca54c3Smrgfi 1171517ca54c3Smrg 1171617ca54c3Smrg 1171717ca54c3Smrgas_nl=' 1171817ca54c3Smrg' 1171917ca54c3Smrgexport as_nl 1172017ca54c3Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 1172117ca54c3Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1172217ca54c3Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 1172317ca54c3Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 1172417ca54c3Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 1172517ca54c3Smrg# but without wasting forks for bash or zsh. 1172617ca54c3Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 1172717ca54c3Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 1172817ca54c3Smrg as_echo='print -r --' 1172917ca54c3Smrg as_echo_n='print -rn --' 1173017ca54c3Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 1173117ca54c3Smrg as_echo='printf %s\n' 1173217ca54c3Smrg as_echo_n='printf %s' 1173317ca54c3Smrgelse 1173417ca54c3Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 1173517ca54c3Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 1173617ca54c3Smrg as_echo_n='/usr/ucb/echo -n' 1173717ca54c3Smrg else 1173817ca54c3Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 1173917ca54c3Smrg as_echo_n_body='eval 1174017ca54c3Smrg arg=$1; 1174117ca54c3Smrg case $arg in #( 1174217ca54c3Smrg *"$as_nl"*) 1174317ca54c3Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 1174417ca54c3Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 1174517ca54c3Smrg esac; 1174617ca54c3Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 1174717ca54c3Smrg ' 1174817ca54c3Smrg export as_echo_n_body 1174917ca54c3Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 1175017ca54c3Smrg fi 1175117ca54c3Smrg export as_echo_body 1175217ca54c3Smrg as_echo='sh -c $as_echo_body as_echo' 1175317ca54c3Smrgfi 1175417ca54c3Smrg 1175517ca54c3Smrg# The user is always right. 1175617ca54c3Smrgif test "${PATH_SEPARATOR+set}" != set; then 1175717ca54c3Smrg PATH_SEPARATOR=: 1175817ca54c3Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 1175917ca54c3Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 1176017ca54c3Smrg PATH_SEPARATOR=';' 1176117ca54c3Smrg } 1176217ca54c3Smrgfi 1176317ca54c3Smrg 1176417ca54c3Smrg 1176517ca54c3Smrg# IFS 1176617ca54c3Smrg# We need space, tab and new line, in precisely that order. Quoting is 1176717ca54c3Smrg# there to prevent editors from complaining about space-tab. 1176817ca54c3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 1176917ca54c3Smrg# splitting by setting IFS to empty value.) 1177017ca54c3SmrgIFS=" "" $as_nl" 1177117ca54c3Smrg 1177217ca54c3Smrg# Find who we are. Look in the path if we contain no directory separator. 1177317ca54c3Smrgas_myself= 1177417ca54c3Smrgcase $0 in #(( 1177517ca54c3Smrg *[\\/]* ) as_myself=$0 ;; 1177617ca54c3Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1177717ca54c3Smrgfor as_dir in $PATH 1177817ca54c3Smrgdo 1177917ca54c3Smrg IFS=$as_save_IFS 1178017ca54c3Smrg test -z "$as_dir" && as_dir=. 1178117ca54c3Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1178217ca54c3Smrg done 1178317ca54c3SmrgIFS=$as_save_IFS 1178417ca54c3Smrg 1178517ca54c3Smrg ;; 1178617ca54c3Smrgesac 1178717ca54c3Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1178817ca54c3Smrg# in which case we are not to be found in the path. 1178917ca54c3Smrgif test "x$as_myself" = x; then 1179017ca54c3Smrg as_myself=$0 1179117ca54c3Smrgfi 1179217ca54c3Smrgif test ! -f "$as_myself"; then 1179317ca54c3Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1179417ca54c3Smrg exit 1 1179517ca54c3Smrgfi 1179617ca54c3Smrg 1179717ca54c3Smrg# Unset variables that we do not need and which cause bugs (e.g. in 1179817ca54c3Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1179917ca54c3Smrg# suppresses any "Segmentation fault" message there. '((' could 1180017ca54c3Smrg# trigger a bug in pdksh 5.2.14. 1180117ca54c3Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 1180217ca54c3Smrgdo eval test x\${$as_var+set} = xset \ 1180317ca54c3Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1180417ca54c3Smrgdone 1180517ca54c3SmrgPS1='$ ' 1180617ca54c3SmrgPS2='> ' 1180717ca54c3SmrgPS4='+ ' 1180817ca54c3Smrg 1180917ca54c3Smrg# NLS nuisances. 1181017ca54c3SmrgLC_ALL=C 1181117ca54c3Smrgexport LC_ALL 1181217ca54c3SmrgLANGUAGE=C 1181317ca54c3Smrgexport LANGUAGE 1181417ca54c3Smrg 1181517ca54c3Smrg# CDPATH. 1181617ca54c3Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1181717ca54c3Smrg 1181817ca54c3Smrg 1181917ca54c3Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 1182017ca54c3Smrg# ---------------------------------------- 1182117ca54c3Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 1182217ca54c3Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 1182317ca54c3Smrg# script with STATUS, using 1 if that was 0. 1182417ca54c3Smrgas_fn_error () 1182517ca54c3Smrg{ 1182617ca54c3Smrg as_status=$1; test $as_status -eq 0 && as_status=1 1182717ca54c3Smrg if test "$4"; then 1182817ca54c3Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1182917ca54c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 1183017ca54c3Smrg fi 1183117ca54c3Smrg $as_echo "$as_me: error: $2" >&2 1183217ca54c3Smrg as_fn_exit $as_status 1183317ca54c3Smrg} # as_fn_error 1183417ca54c3Smrg 1183517ca54c3Smrg 1183617ca54c3Smrg# as_fn_set_status STATUS 1183717ca54c3Smrg# ----------------------- 1183817ca54c3Smrg# Set $? to STATUS, without forking. 1183917ca54c3Smrgas_fn_set_status () 1184017ca54c3Smrg{ 1184117ca54c3Smrg return $1 1184217ca54c3Smrg} # as_fn_set_status 1184317ca54c3Smrg 1184417ca54c3Smrg# as_fn_exit STATUS 1184517ca54c3Smrg# ----------------- 1184617ca54c3Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 1184717ca54c3Smrgas_fn_exit () 1184817ca54c3Smrg{ 1184917ca54c3Smrg set +e 1185017ca54c3Smrg as_fn_set_status $1 1185117ca54c3Smrg exit $1 1185217ca54c3Smrg} # as_fn_exit 1185317ca54c3Smrg 1185417ca54c3Smrg# as_fn_unset VAR 1185517ca54c3Smrg# --------------- 1185617ca54c3Smrg# Portably unset VAR. 1185717ca54c3Smrgas_fn_unset () 1185817ca54c3Smrg{ 1185917ca54c3Smrg { eval $1=; unset $1;} 1186017ca54c3Smrg} 1186117ca54c3Smrgas_unset=as_fn_unset 1186217ca54c3Smrg# as_fn_append VAR VALUE 1186317ca54c3Smrg# ---------------------- 1186417ca54c3Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 1186517ca54c3Smrg# advantage of any shell optimizations that allow amortized linear growth over 1186617ca54c3Smrg# repeated appends, instead of the typical quadratic growth present in naive 1186717ca54c3Smrg# implementations. 1186817ca54c3Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 1186917ca54c3Smrg eval 'as_fn_append () 1187017ca54c3Smrg { 1187117ca54c3Smrg eval $1+=\$2 1187217ca54c3Smrg }' 1187317ca54c3Smrgelse 1187417ca54c3Smrg as_fn_append () 1187517ca54c3Smrg { 1187617ca54c3Smrg eval $1=\$$1\$2 1187717ca54c3Smrg } 1187817ca54c3Smrgfi # as_fn_append 1187917ca54c3Smrg 1188017ca54c3Smrg# as_fn_arith ARG... 1188117ca54c3Smrg# ------------------ 1188217ca54c3Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 1188317ca54c3Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 1188417ca54c3Smrg# must be portable across $(()) and expr. 1188517ca54c3Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 1188617ca54c3Smrg eval 'as_fn_arith () 1188717ca54c3Smrg { 1188817ca54c3Smrg as_val=$(( $* )) 1188917ca54c3Smrg }' 1189017ca54c3Smrgelse 1189117ca54c3Smrg as_fn_arith () 1189217ca54c3Smrg { 1189317ca54c3Smrg as_val=`expr "$@" || test $? -eq 1` 1189417ca54c3Smrg } 1189517ca54c3Smrgfi # as_fn_arith 1189617ca54c3Smrg 1189717ca54c3Smrg 1189817ca54c3Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 1189917ca54c3Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 1190017ca54c3Smrg as_expr=expr 1190117ca54c3Smrgelse 1190217ca54c3Smrg as_expr=false 1190317ca54c3Smrgfi 1190417ca54c3Smrg 1190517ca54c3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 1190617ca54c3Smrg as_basename=basename 1190717ca54c3Smrgelse 1190817ca54c3Smrg as_basename=false 1190917ca54c3Smrgfi 1191017ca54c3Smrg 1191117ca54c3Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 1191217ca54c3Smrg as_dirname=dirname 1191317ca54c3Smrgelse 1191417ca54c3Smrg as_dirname=false 1191517ca54c3Smrgfi 1191617ca54c3Smrg 1191717ca54c3Smrgas_me=`$as_basename -- "$0" || 1191817ca54c3Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 1191917ca54c3Smrg X"$0" : 'X\(//\)$' \| \ 1192017ca54c3Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 1192117ca54c3Smrg$as_echo X/"$0" | 1192217ca54c3Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 1192317ca54c3Smrg s//\1/ 1192417ca54c3Smrg q 1192517ca54c3Smrg } 1192617ca54c3Smrg /^X\/\(\/\/\)$/{ 1192717ca54c3Smrg s//\1/ 1192817ca54c3Smrg q 1192917ca54c3Smrg } 1193017ca54c3Smrg /^X\/\(\/\).*/{ 1193117ca54c3Smrg s//\1/ 1193217ca54c3Smrg q 1193317ca54c3Smrg } 1193417ca54c3Smrg s/.*/./; q'` 1193517ca54c3Smrg 1193617ca54c3Smrg# Avoid depending upon Character Ranges. 1193717ca54c3Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 1193817ca54c3Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 1193917ca54c3Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 1194017ca54c3Smrgas_cr_digits='0123456789' 1194117ca54c3Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 1194217ca54c3Smrg 1194317ca54c3SmrgECHO_C= ECHO_N= ECHO_T= 1194417ca54c3Smrgcase `echo -n x` in #((((( 1194517ca54c3Smrg-n*) 1194617ca54c3Smrg case `echo 'xy\c'` in 1194717ca54c3Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 1194817ca54c3Smrg xy) ECHO_C='\c';; 1194917ca54c3Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 1195017ca54c3Smrg ECHO_T=' ';; 1195117ca54c3Smrg esac;; 1195217ca54c3Smrg*) 1195317ca54c3Smrg ECHO_N='-n';; 1195417ca54c3Smrgesac 1195517ca54c3Smrg 1195617ca54c3Smrgrm -f conf$$ conf$$.exe conf$$.file 1195717ca54c3Smrgif test -d conf$$.dir; then 1195817ca54c3Smrg rm -f conf$$.dir/conf$$.file 1195917ca54c3Smrgelse 1196017ca54c3Smrg rm -f conf$$.dir 1196117ca54c3Smrg mkdir conf$$.dir 2>/dev/null 1196217ca54c3Smrgfi 1196317ca54c3Smrgif (echo >conf$$.file) 2>/dev/null; then 1196417ca54c3Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 1196517ca54c3Smrg as_ln_s='ln -s' 1196617ca54c3Smrg # ... but there are two gotchas: 1196717ca54c3Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 1196817ca54c3Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 1196917ca54c3Smrg # In both cases, we have to default to `cp -pR'. 1197017ca54c3Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 1197117ca54c3Smrg as_ln_s='cp -pR' 1197217ca54c3Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 1197317ca54c3Smrg as_ln_s=ln 1197417ca54c3Smrg else 1197517ca54c3Smrg as_ln_s='cp -pR' 1197617ca54c3Smrg fi 1197717ca54c3Smrgelse 1197817ca54c3Smrg as_ln_s='cp -pR' 1197917ca54c3Smrgfi 1198017ca54c3Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 1198117ca54c3Smrgrmdir conf$$.dir 2>/dev/null 1198217ca54c3Smrg 1198317ca54c3Smrg 1198417ca54c3Smrg# as_fn_mkdir_p 1198517ca54c3Smrg# ------------- 1198617ca54c3Smrg# Create "$as_dir" as a directory, including parents if necessary. 1198717ca54c3Smrgas_fn_mkdir_p () 1198817ca54c3Smrg{ 1198917ca54c3Smrg 1199017ca54c3Smrg case $as_dir in #( 1199117ca54c3Smrg -*) as_dir=./$as_dir;; 1199217ca54c3Smrg esac 1199317ca54c3Smrg test -d "$as_dir" || eval $as_mkdir_p || { 1199417ca54c3Smrg as_dirs= 1199517ca54c3Smrg while :; do 1199617ca54c3Smrg case $as_dir in #( 1199717ca54c3Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 1199817ca54c3Smrg *) as_qdir=$as_dir;; 1199917ca54c3Smrg esac 1200017ca54c3Smrg as_dirs="'$as_qdir' $as_dirs" 1200117ca54c3Smrg as_dir=`$as_dirname -- "$as_dir" || 1200217ca54c3Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1200317ca54c3Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 1200417ca54c3Smrg X"$as_dir" : 'X\(//\)$' \| \ 1200517ca54c3Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 1200617ca54c3Smrg$as_echo X"$as_dir" | 1200717ca54c3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1200817ca54c3Smrg s//\1/ 1200917ca54c3Smrg q 1201017ca54c3Smrg } 1201117ca54c3Smrg /^X\(\/\/\)[^/].*/{ 1201217ca54c3Smrg s//\1/ 1201317ca54c3Smrg q 1201417ca54c3Smrg } 1201517ca54c3Smrg /^X\(\/\/\)$/{ 1201617ca54c3Smrg s//\1/ 1201717ca54c3Smrg q 1201817ca54c3Smrg } 1201917ca54c3Smrg /^X\(\/\).*/{ 1202017ca54c3Smrg s//\1/ 1202117ca54c3Smrg q 1202217ca54c3Smrg } 1202317ca54c3Smrg s/.*/./; q'` 1202417ca54c3Smrg test -d "$as_dir" && break 1202517ca54c3Smrg done 1202617ca54c3Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 1202717ca54c3Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 1202817ca54c3Smrg 1202917ca54c3Smrg 1203017ca54c3Smrg} # as_fn_mkdir_p 1203117ca54c3Smrgif mkdir -p . 2>/dev/null; then 1203217ca54c3Smrg as_mkdir_p='mkdir -p "$as_dir"' 1203317ca54c3Smrgelse 1203417ca54c3Smrg test -d ./-p && rmdir ./-p 1203517ca54c3Smrg as_mkdir_p=false 1203617ca54c3Smrgfi 1203717ca54c3Smrg 1203817ca54c3Smrg 1203917ca54c3Smrg# as_fn_executable_p FILE 1204017ca54c3Smrg# ----------------------- 1204117ca54c3Smrg# Test if FILE is an executable regular file. 1204217ca54c3Smrgas_fn_executable_p () 1204317ca54c3Smrg{ 1204417ca54c3Smrg test -f "$1" && test -x "$1" 1204517ca54c3Smrg} # as_fn_executable_p 1204617ca54c3Smrgas_test_x='test -x' 1204717ca54c3Smrgas_executable_p=as_fn_executable_p 1204817ca54c3Smrg 1204917ca54c3Smrg# Sed expression to map a string onto a valid CPP name. 1205017ca54c3Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 1205117ca54c3Smrg 1205217ca54c3Smrg# Sed expression to map a string onto a valid variable name. 1205317ca54c3Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 1205417ca54c3Smrg 1205517ca54c3Smrg 1205617ca54c3Smrgexec 6>&1 1205717ca54c3Smrg## ----------------------------------- ## 1205817ca54c3Smrg## Main body of $CONFIG_STATUS script. ## 1205917ca54c3Smrg## ----------------------------------- ## 1206017ca54c3Smrg_ASEOF 1206117ca54c3Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 1206217ca54c3Smrg 1206317ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1206417ca54c3Smrg# Save the log message, to keep $0 and so on meaningful, and to 1206517ca54c3Smrg# report actual input values of CONFIG_FILES etc. instead of their 1206617ca54c3Smrg# values after options handling. 1206717ca54c3Smrgac_log=" 120684627b59cSmrgThis file was extended by xorgproto $as_me 2020.1, which was 1206917ca54c3Smrggenerated by GNU Autoconf 2.69. Invocation command line was 1207017ca54c3Smrg 1207117ca54c3Smrg CONFIG_FILES = $CONFIG_FILES 1207217ca54c3Smrg CONFIG_HEADERS = $CONFIG_HEADERS 1207317ca54c3Smrg CONFIG_LINKS = $CONFIG_LINKS 1207417ca54c3Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 1207517ca54c3Smrg $ $0 $@ 1207617ca54c3Smrg 1207717ca54c3Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 1207817ca54c3Smrg" 1207917ca54c3Smrg 1208017ca54c3Smrg_ACEOF 1208117ca54c3Smrg 1208217ca54c3Smrgcase $ac_config_files in *" 1208317ca54c3Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 1208417ca54c3Smrgesac 1208517ca54c3Smrg 1208617ca54c3Smrg 1208717ca54c3Smrg 1208817ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1208917ca54c3Smrg# Files that config.status was made for. 1209017ca54c3Smrgconfig_files="$ac_config_files" 1209117ca54c3Smrgconfig_commands="$ac_config_commands" 1209217ca54c3Smrg 1209317ca54c3Smrg_ACEOF 1209417ca54c3Smrg 1209517ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1209617ca54c3Smrgac_cs_usage="\ 1209717ca54c3Smrg\`$as_me' instantiates files and other configuration actions 1209817ca54c3Smrgfrom templates according to the current configuration. Unless the files 1209917ca54c3Smrgand actions are specified as TAGs, all are instantiated by default. 1210017ca54c3Smrg 1210117ca54c3SmrgUsage: $0 [OPTION]... [TAG]... 1210217ca54c3Smrg 1210317ca54c3Smrg -h, --help print this help, then exit 1210417ca54c3Smrg -V, --version print version number and configuration settings, then exit 1210517ca54c3Smrg --config print configuration, then exit 1210617ca54c3Smrg -q, --quiet, --silent 1210717ca54c3Smrg do not print progress messages 1210817ca54c3Smrg -d, --debug don't remove temporary files 1210917ca54c3Smrg --recheck update $as_me by reconfiguring in the same conditions 1211017ca54c3Smrg --file=FILE[:TEMPLATE] 1211117ca54c3Smrg instantiate the configuration file FILE 1211217ca54c3Smrg 1211317ca54c3SmrgConfiguration files: 1211417ca54c3Smrg$config_files 1211517ca54c3Smrg 1211617ca54c3SmrgConfiguration commands: 1211717ca54c3Smrg$config_commands 1211817ca54c3Smrg 12119ea1d6981SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>." 1212017ca54c3Smrg 1212117ca54c3Smrg_ACEOF 1212217ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1212317ca54c3Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 1212417ca54c3Smrgac_cs_version="\\ 121254627b59cSmrgxorgproto config.status 2020.1 1212617ca54c3Smrgconfigured by $0, generated by GNU Autoconf 2.69, 1212717ca54c3Smrg with options \\"\$ac_cs_config\\" 1212817ca54c3Smrg 1212917ca54c3SmrgCopyright (C) 2012 Free Software Foundation, Inc. 1213017ca54c3SmrgThis config.status script is free software; the Free Software Foundation 1213117ca54c3Smrggives unlimited permission to copy, distribute and modify it." 1213217ca54c3Smrg 1213317ca54c3Smrgac_pwd='$ac_pwd' 1213417ca54c3Smrgsrcdir='$srcdir' 1213517ca54c3SmrgINSTALL='$INSTALL' 1213617ca54c3SmrgMKDIR_P='$MKDIR_P' 1213717ca54c3SmrgAWK='$AWK' 1213817ca54c3Smrgtest -n "\$AWK" || AWK=awk 1213917ca54c3Smrg_ACEOF 1214017ca54c3Smrg 1214117ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1214217ca54c3Smrg# The default lists apply if the user does not specify any file. 1214317ca54c3Smrgac_need_defaults=: 1214417ca54c3Smrgwhile test $# != 0 1214517ca54c3Smrgdo 1214617ca54c3Smrg case $1 in 1214717ca54c3Smrg --*=?*) 1214817ca54c3Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 1214917ca54c3Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 1215017ca54c3Smrg ac_shift=: 1215117ca54c3Smrg ;; 1215217ca54c3Smrg --*=) 1215317ca54c3Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 1215417ca54c3Smrg ac_optarg= 1215517ca54c3Smrg ac_shift=: 1215617ca54c3Smrg ;; 1215717ca54c3Smrg *) 1215817ca54c3Smrg ac_option=$1 1215917ca54c3Smrg ac_optarg=$2 1216017ca54c3Smrg ac_shift=shift 1216117ca54c3Smrg ;; 1216217ca54c3Smrg esac 1216317ca54c3Smrg 1216417ca54c3Smrg case $ac_option in 1216517ca54c3Smrg # Handling of the options. 1216617ca54c3Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1216717ca54c3Smrg ac_cs_recheck=: ;; 1216817ca54c3Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 1216917ca54c3Smrg $as_echo "$ac_cs_version"; exit ;; 1217017ca54c3Smrg --config | --confi | --conf | --con | --co | --c ) 1217117ca54c3Smrg $as_echo "$ac_cs_config"; exit ;; 1217217ca54c3Smrg --debug | --debu | --deb | --de | --d | -d ) 1217317ca54c3Smrg debug=: ;; 1217417ca54c3Smrg --file | --fil | --fi | --f ) 1217517ca54c3Smrg $ac_shift 1217617ca54c3Smrg case $ac_optarg in 1217717ca54c3Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 1217817ca54c3Smrg '') as_fn_error $? "missing file argument" ;; 1217917ca54c3Smrg esac 1218017ca54c3Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 1218117ca54c3Smrg ac_need_defaults=false;; 1218217ca54c3Smrg --he | --h | --help | --hel | -h ) 1218317ca54c3Smrg $as_echo "$ac_cs_usage"; exit ;; 1218417ca54c3Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1218517ca54c3Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 1218617ca54c3Smrg ac_cs_silent=: ;; 1218717ca54c3Smrg 1218817ca54c3Smrg # This is an error. 1218917ca54c3Smrg -*) as_fn_error $? "unrecognized option: \`$1' 1219017ca54c3SmrgTry \`$0 --help' for more information." ;; 1219117ca54c3Smrg 1219217ca54c3Smrg *) as_fn_append ac_config_targets " $1" 1219317ca54c3Smrg ac_need_defaults=false ;; 1219417ca54c3Smrg 1219517ca54c3Smrg esac 1219617ca54c3Smrg shift 1219717ca54c3Smrgdone 1219817ca54c3Smrg 1219917ca54c3Smrgac_configure_extra_args= 1220017ca54c3Smrg 1220117ca54c3Smrgif $ac_cs_silent; then 1220217ca54c3Smrg exec 6>/dev/null 1220317ca54c3Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 1220417ca54c3Smrgfi 1220517ca54c3Smrg 1220617ca54c3Smrg_ACEOF 1220717ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1220817ca54c3Smrgif \$ac_cs_recheck; then 1220917ca54c3Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 1221017ca54c3Smrg shift 1221117ca54c3Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 1221217ca54c3Smrg CONFIG_SHELL='$SHELL' 1221317ca54c3Smrg export CONFIG_SHELL 1221417ca54c3Smrg exec "\$@" 1221517ca54c3Smrgfi 1221617ca54c3Smrg 1221717ca54c3Smrg_ACEOF 1221817ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1221917ca54c3Smrgexec 5>>config.log 1222017ca54c3Smrg{ 1222117ca54c3Smrg echo 1222217ca54c3Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 1222317ca54c3Smrg## Running $as_me. ## 1222417ca54c3Smrg_ASBOX 1222517ca54c3Smrg $as_echo "$ac_log" 1222617ca54c3Smrg} >&5 1222717ca54c3Smrg 1222817ca54c3Smrg_ACEOF 1222917ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1223017ca54c3Smrg# 1223117ca54c3Smrg# INIT-COMMANDS 1223217ca54c3Smrg# 12233ea1d6981SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 1223417ca54c3Smrg 1223517ca54c3Smrg_ACEOF 1223617ca54c3Smrg 1223717ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1223817ca54c3Smrg 1223917ca54c3Smrg# Handling of arguments. 1224017ca54c3Smrgfor ac_config_target in $ac_config_targets 1224117ca54c3Smrgdo 1224217ca54c3Smrg case $ac_config_target in 1224317ca54c3Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 1224417ca54c3Smrg "applewmproto.pc") CONFIG_FILES="$CONFIG_FILES applewmproto.pc" ;; 1224517ca54c3Smrg "bigreqsproto.pc") CONFIG_FILES="$CONFIG_FILES bigreqsproto.pc" ;; 1224617ca54c3Smrg "compositeproto.pc") CONFIG_FILES="$CONFIG_FILES compositeproto.pc" ;; 1224717ca54c3Smrg "damageproto.pc") CONFIG_FILES="$CONFIG_FILES damageproto.pc" ;; 1224817ca54c3Smrg "dmxproto.pc") CONFIG_FILES="$CONFIG_FILES dmxproto.pc" ;; 122494627b59cSmrg "dpmsproto.pc") CONFIG_FILES="$CONFIG_FILES dpmsproto.pc" ;; 1225017ca54c3Smrg "dri2proto.pc") CONFIG_FILES="$CONFIG_FILES dri2proto.pc" ;; 1225117ca54c3Smrg "dri3proto.pc") CONFIG_FILES="$CONFIG_FILES dri3proto.pc" ;; 1225217ca54c3Smrg "evieproto.pc") CONFIG_FILES="$CONFIG_FILES evieproto.pc" ;; 1225317ca54c3Smrg "fixesproto.pc") CONFIG_FILES="$CONFIG_FILES fixesproto.pc" ;; 1225417ca54c3Smrg "fontcacheproto.pc") CONFIG_FILES="$CONFIG_FILES fontcacheproto.pc" ;; 1225517ca54c3Smrg "fontsproto.pc") CONFIG_FILES="$CONFIG_FILES fontsproto.pc" ;; 1225617ca54c3Smrg "glproto.pc") CONFIG_FILES="$CONFIG_FILES glproto.pc" ;; 1225717ca54c3Smrg "include/X11/Xpoll.h") CONFIG_FILES="$CONFIG_FILES include/X11/Xpoll.h" ;; 1225817ca54c3Smrg "inputproto.pc") CONFIG_FILES="$CONFIG_FILES inputproto.pc" ;; 1225917ca54c3Smrg "kbproto.pc") CONFIG_FILES="$CONFIG_FILES kbproto.pc" ;; 1226017ca54c3Smrg "lg3dproto.pc") CONFIG_FILES="$CONFIG_FILES lg3dproto.pc" ;; 1226117ca54c3Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 1226217ca54c3Smrg "presentproto.pc") CONFIG_FILES="$CONFIG_FILES presentproto.pc" ;; 1226317ca54c3Smrg "printproto.pc") CONFIG_FILES="$CONFIG_FILES printproto.pc" ;; 1226417ca54c3Smrg "randrproto.pc") CONFIG_FILES="$CONFIG_FILES randrproto.pc" ;; 1226517ca54c3Smrg "recordproto.pc") CONFIG_FILES="$CONFIG_FILES recordproto.pc" ;; 1226617ca54c3Smrg "renderproto.pc") CONFIG_FILES="$CONFIG_FILES renderproto.pc" ;; 1226717ca54c3Smrg "resourceproto.pc") CONFIG_FILES="$CONFIG_FILES resourceproto.pc" ;; 1226817ca54c3Smrg "scrnsaverproto.pc") CONFIG_FILES="$CONFIG_FILES scrnsaverproto.pc" ;; 12269ea1d6981Smrg "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 12270ea1d6981Smrg "specs/bigreqsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/bigreqsproto/Makefile" ;; 12271ea1d6981Smrg "specs/fontsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/fontsproto/Makefile" ;; 12272ea1d6981Smrg "specs/kbproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/kbproto/Makefile" ;; 12273ea1d6981Smrg "specs/recordproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/recordproto/Makefile" ;; 12274ea1d6981Smrg "specs/scrnsaverproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/scrnsaverproto/Makefile" ;; 12275ea1d6981Smrg "specs/xcmiscproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xcmiscproto/Makefile" ;; 12276ea1d6981Smrg "specs/xextproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xextproto/Makefile" ;; 12277ea1d6981Smrg "specs/xproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xproto/Makefile" ;; 1227817ca54c3Smrg "trapproto.pc") CONFIG_FILES="$CONFIG_FILES trapproto.pc" ;; 1227917ca54c3Smrg "videoproto.pc") CONFIG_FILES="$CONFIG_FILES videoproto.pc" ;; 1228017ca54c3Smrg "windowswmproto.pc") CONFIG_FILES="$CONFIG_FILES windowswmproto.pc" ;; 1228117ca54c3Smrg "xcalibrateproto.pc") CONFIG_FILES="$CONFIG_FILES xcalibrateproto.pc" ;; 1228217ca54c3Smrg "xcmiscproto.pc") CONFIG_FILES="$CONFIG_FILES xcmiscproto.pc" ;; 1228317ca54c3Smrg "xextproto.pc") CONFIG_FILES="$CONFIG_FILES xextproto.pc" ;; 1228417ca54c3Smrg "xf86bigfontproto.pc") CONFIG_FILES="$CONFIG_FILES xf86bigfontproto.pc" ;; 1228517ca54c3Smrg "xf86dgaproto.pc") CONFIG_FILES="$CONFIG_FILES xf86dgaproto.pc" ;; 1228617ca54c3Smrg "xf86driproto.pc") CONFIG_FILES="$CONFIG_FILES xf86driproto.pc" ;; 1228717ca54c3Smrg "xf86miscproto.pc") CONFIG_FILES="$CONFIG_FILES xf86miscproto.pc" ;; 1228817ca54c3Smrg "xf86rushproto.pc") CONFIG_FILES="$CONFIG_FILES xf86rushproto.pc" ;; 1228917ca54c3Smrg "xf86vidmodeproto.pc") CONFIG_FILES="$CONFIG_FILES xf86vidmodeproto.pc" ;; 1229017ca54c3Smrg "xineramaproto.pc") CONFIG_FILES="$CONFIG_FILES xineramaproto.pc" ;; 1229117ca54c3Smrg "xproto.pc") CONFIG_FILES="$CONFIG_FILES xproto.pc" ;; 1229217ca54c3Smrg "xproxymngproto.pc") CONFIG_FILES="$CONFIG_FILES xproxymngproto.pc" ;; 1229317ca54c3Smrg 1229417ca54c3Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 1229517ca54c3Smrg esac 1229617ca54c3Smrgdone 1229717ca54c3Smrg 1229817ca54c3Smrg 1229917ca54c3Smrg# If the user did not use the arguments to specify the items to instantiate, 1230017ca54c3Smrg# then the envvar interface is used. Set only those that are not. 1230117ca54c3Smrg# We use the long form for the default assignment because of an extremely 1230217ca54c3Smrg# bizarre bug on SunOS 4.1.3. 1230317ca54c3Smrgif $ac_need_defaults; then 1230417ca54c3Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 1230517ca54c3Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 1230617ca54c3Smrgfi 1230717ca54c3Smrg 1230817ca54c3Smrg# Have a temporary directory for convenience. Make it in the build tree 1230917ca54c3Smrg# simply because there is no reason against having it here, and in addition, 1231017ca54c3Smrg# creating and moving files from /tmp can sometimes cause problems. 1231117ca54c3Smrg# Hook for its removal unless debugging. 1231217ca54c3Smrg# Note that there is a small window in which the directory will not be cleaned: 1231317ca54c3Smrg# after its creation but before its name has been assigned to `$tmp'. 1231417ca54c3Smrg$debug || 1231517ca54c3Smrg{ 1231617ca54c3Smrg tmp= ac_tmp= 1231717ca54c3Smrg trap 'exit_status=$? 1231817ca54c3Smrg : "${ac_tmp:=$tmp}" 1231917ca54c3Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 1232017ca54c3Smrg' 0 1232117ca54c3Smrg trap 'as_fn_exit 1' 1 2 13 15 1232217ca54c3Smrg} 1232317ca54c3Smrg# Create a (secure) tmp directory for tmp files. 1232417ca54c3Smrg 1232517ca54c3Smrg{ 1232617ca54c3Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 1232717ca54c3Smrg test -d "$tmp" 1232817ca54c3Smrg} || 1232917ca54c3Smrg{ 1233017ca54c3Smrg tmp=./conf$$-$RANDOM 1233117ca54c3Smrg (umask 077 && mkdir "$tmp") 1233217ca54c3Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 1233317ca54c3Smrgac_tmp=$tmp 1233417ca54c3Smrg 1233517ca54c3Smrg# Set up the scripts for CONFIG_FILES section. 1233617ca54c3Smrg# No need to generate them if there are no CONFIG_FILES. 1233717ca54c3Smrg# This happens for instance with `./config.status config.h'. 1233817ca54c3Smrgif test -n "$CONFIG_FILES"; then 1233917ca54c3Smrg 1234017ca54c3Smrg 1234117ca54c3Smrgac_cr=`echo X | tr X '\015'` 1234217ca54c3Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 1234317ca54c3Smrg# But we know of no other shell where ac_cr would be empty at this 1234417ca54c3Smrg# point, so we can use a bashism as a fallback. 1234517ca54c3Smrgif test "x$ac_cr" = x; then 1234617ca54c3Smrg eval ac_cr=\$\'\\r\' 1234717ca54c3Smrgfi 1234817ca54c3Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 1234917ca54c3Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 1235017ca54c3Smrg ac_cs_awk_cr='\\r' 1235117ca54c3Smrgelse 1235217ca54c3Smrg ac_cs_awk_cr=$ac_cr 1235317ca54c3Smrgfi 1235417ca54c3Smrg 1235517ca54c3Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 1235617ca54c3Smrg_ACEOF 1235717ca54c3Smrg 1235817ca54c3Smrg 1235917ca54c3Smrg{ 1236017ca54c3Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 1236117ca54c3Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 1236217ca54c3Smrg echo "_ACEOF" 1236317ca54c3Smrg} >conf$$subs.sh || 1236417ca54c3Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1236517ca54c3Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 1236617ca54c3Smrgac_delim='%!_!# ' 1236717ca54c3Smrgfor ac_last_try in false false false false false :; do 1236817ca54c3Smrg . ./conf$$subs.sh || 1236917ca54c3Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1237017ca54c3Smrg 1237117ca54c3Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 1237217ca54c3Smrg if test $ac_delim_n = $ac_delim_num; then 1237317ca54c3Smrg break 1237417ca54c3Smrg elif $ac_last_try; then 1237517ca54c3Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1237617ca54c3Smrg else 1237717ca54c3Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 1237817ca54c3Smrg fi 1237917ca54c3Smrgdone 1238017ca54c3Smrgrm -f conf$$subs.sh 1238117ca54c3Smrg 1238217ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1238317ca54c3Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 1238417ca54c3Smrg_ACEOF 1238517ca54c3Smrgsed -n ' 1238617ca54c3Smrgh 1238717ca54c3Smrgs/^/S["/; s/!.*/"]=/ 1238817ca54c3Smrgp 1238917ca54c3Smrgg 1239017ca54c3Smrgs/^[^!]*!// 1239117ca54c3Smrg:repl 1239217ca54c3Smrgt repl 1239317ca54c3Smrgs/'"$ac_delim"'$// 1239417ca54c3Smrgt delim 1239517ca54c3Smrg:nl 1239617ca54c3Smrgh 1239717ca54c3Smrgs/\(.\{148\}\)..*/\1/ 1239817ca54c3Smrgt more1 1239917ca54c3Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 1240017ca54c3Smrgp 1240117ca54c3Smrgn 1240217ca54c3Smrgb repl 1240317ca54c3Smrg:more1 1240417ca54c3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 1240517ca54c3Smrgp 1240617ca54c3Smrgg 1240717ca54c3Smrgs/.\{148\}// 1240817ca54c3Smrgt nl 1240917ca54c3Smrg:delim 1241017ca54c3Smrgh 1241117ca54c3Smrgs/\(.\{148\}\)..*/\1/ 1241217ca54c3Smrgt more2 1241317ca54c3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 1241417ca54c3Smrgp 1241517ca54c3Smrgb 1241617ca54c3Smrg:more2 1241717ca54c3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 1241817ca54c3Smrgp 1241917ca54c3Smrgg 1242017ca54c3Smrgs/.\{148\}// 1242117ca54c3Smrgt delim 1242217ca54c3Smrg' <conf$$subs.awk | sed ' 1242317ca54c3Smrg/^[^""]/{ 1242417ca54c3Smrg N 1242517ca54c3Smrg s/\n// 1242617ca54c3Smrg} 1242717ca54c3Smrg' >>$CONFIG_STATUS || ac_write_fail=1 1242817ca54c3Smrgrm -f conf$$subs.awk 1242917ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1243017ca54c3Smrg_ACAWK 1243117ca54c3Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 1243217ca54c3Smrg for (key in S) S_is_set[key] = 1 1243317ca54c3Smrg FS = "" 1243417ca54c3Smrg 1243517ca54c3Smrg} 1243617ca54c3Smrg{ 1243717ca54c3Smrg line = $ 0 1243817ca54c3Smrg nfields = split(line, field, "@") 1243917ca54c3Smrg substed = 0 1244017ca54c3Smrg len = length(field[1]) 1244117ca54c3Smrg for (i = 2; i < nfields; i++) { 1244217ca54c3Smrg key = field[i] 1244317ca54c3Smrg keylen = length(key) 1244417ca54c3Smrg if (S_is_set[key]) { 1244517ca54c3Smrg value = S[key] 1244617ca54c3Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 1244717ca54c3Smrg len += length(value) + length(field[++i]) 1244817ca54c3Smrg substed = 1 1244917ca54c3Smrg } else 1245017ca54c3Smrg len += 1 + keylen 1245117ca54c3Smrg } 1245217ca54c3Smrg 1245317ca54c3Smrg print line 1245417ca54c3Smrg} 1245517ca54c3Smrg 1245617ca54c3Smrg_ACAWK 1245717ca54c3Smrg_ACEOF 1245817ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1245917ca54c3Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 1246017ca54c3Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 1246117ca54c3Smrgelse 1246217ca54c3Smrg cat 1246317ca54c3Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 1246417ca54c3Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 1246517ca54c3Smrg_ACEOF 1246617ca54c3Smrg 1246717ca54c3Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 1246817ca54c3Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 1246917ca54c3Smrg# trailing colons and then remove the whole line if VPATH becomes empty 1247017ca54c3Smrg# (actually we leave an empty line to preserve line numbers). 1247117ca54c3Smrgif test "x$srcdir" = x.; then 1247217ca54c3Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 1247317ca54c3Smrgh 1247417ca54c3Smrgs/// 1247517ca54c3Smrgs/^/:/ 1247617ca54c3Smrgs/[ ]*$/:/ 1247717ca54c3Smrgs/:\$(srcdir):/:/g 1247817ca54c3Smrgs/:\${srcdir}:/:/g 1247917ca54c3Smrgs/:@srcdir@:/:/g 1248017ca54c3Smrgs/^:*// 1248117ca54c3Smrgs/:*$// 1248217ca54c3Smrgx 1248317ca54c3Smrgs/\(=[ ]*\).*/\1/ 1248417ca54c3SmrgG 1248517ca54c3Smrgs/\n// 1248617ca54c3Smrgs/^[^=]*=[ ]*$// 1248717ca54c3Smrg}' 1248817ca54c3Smrgfi 1248917ca54c3Smrg 1249017ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1249117ca54c3Smrgfi # test -n "$CONFIG_FILES" 1249217ca54c3Smrg 1249317ca54c3Smrg 1249417ca54c3Smrgeval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 1249517ca54c3Smrgshift 1249617ca54c3Smrgfor ac_tag 1249717ca54c3Smrgdo 1249817ca54c3Smrg case $ac_tag in 1249917ca54c3Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 1250017ca54c3Smrg esac 1250117ca54c3Smrg case $ac_mode$ac_tag in 1250217ca54c3Smrg :[FHL]*:*);; 1250317ca54c3Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 1250417ca54c3Smrg :[FH]-) ac_tag=-:-;; 1250517ca54c3Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 1250617ca54c3Smrg esac 1250717ca54c3Smrg ac_save_IFS=$IFS 1250817ca54c3Smrg IFS=: 1250917ca54c3Smrg set x $ac_tag 1251017ca54c3Smrg IFS=$ac_save_IFS 1251117ca54c3Smrg shift 1251217ca54c3Smrg ac_file=$1 1251317ca54c3Smrg shift 1251417ca54c3Smrg 1251517ca54c3Smrg case $ac_mode in 1251617ca54c3Smrg :L) ac_source=$1;; 1251717ca54c3Smrg :[FH]) 1251817ca54c3Smrg ac_file_inputs= 1251917ca54c3Smrg for ac_f 1252017ca54c3Smrg do 1252117ca54c3Smrg case $ac_f in 1252217ca54c3Smrg -) ac_f="$ac_tmp/stdin";; 1252317ca54c3Smrg *) # Look for the file first in the build tree, then in the source tree 1252417ca54c3Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 1252517ca54c3Smrg # because $ac_f cannot contain `:'. 1252617ca54c3Smrg test -f "$ac_f" || 1252717ca54c3Smrg case $ac_f in 1252817ca54c3Smrg [\\/$]*) false;; 1252917ca54c3Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 1253017ca54c3Smrg esac || 1253117ca54c3Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 1253217ca54c3Smrg esac 1253317ca54c3Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 1253417ca54c3Smrg as_fn_append ac_file_inputs " '$ac_f'" 1253517ca54c3Smrg done 1253617ca54c3Smrg 1253717ca54c3Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 1253817ca54c3Smrg # use $as_me), people would be surprised to read: 1253917ca54c3Smrg # /* config.h. Generated by config.status. */ 1254017ca54c3Smrg configure_input='Generated from '` 1254117ca54c3Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 1254217ca54c3Smrg `' by configure.' 1254317ca54c3Smrg if test x"$ac_file" != x-; then 1254417ca54c3Smrg configure_input="$ac_file. $configure_input" 1254517ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 1254617ca54c3Smrg$as_echo "$as_me: creating $ac_file" >&6;} 1254717ca54c3Smrg fi 1254817ca54c3Smrg # Neutralize special characters interpreted by sed in replacement strings. 1254917ca54c3Smrg case $configure_input in #( 1255017ca54c3Smrg *\&* | *\|* | *\\* ) 1255117ca54c3Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 1255217ca54c3Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 1255317ca54c3Smrg *) ac_sed_conf_input=$configure_input;; 1255417ca54c3Smrg esac 1255517ca54c3Smrg 1255617ca54c3Smrg case $ac_tag in 1255717ca54c3Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 1255817ca54c3Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 1255917ca54c3Smrg esac 1256017ca54c3Smrg ;; 1256117ca54c3Smrg esac 1256217ca54c3Smrg 1256317ca54c3Smrg ac_dir=`$as_dirname -- "$ac_file" || 1256417ca54c3Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1256517ca54c3Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 1256617ca54c3Smrg X"$ac_file" : 'X\(//\)$' \| \ 1256717ca54c3Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 1256817ca54c3Smrg$as_echo X"$ac_file" | 1256917ca54c3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1257017ca54c3Smrg s//\1/ 1257117ca54c3Smrg q 1257217ca54c3Smrg } 1257317ca54c3Smrg /^X\(\/\/\)[^/].*/{ 1257417ca54c3Smrg s//\1/ 1257517ca54c3Smrg q 1257617ca54c3Smrg } 1257717ca54c3Smrg /^X\(\/\/\)$/{ 1257817ca54c3Smrg s//\1/ 1257917ca54c3Smrg q 1258017ca54c3Smrg } 1258117ca54c3Smrg /^X\(\/\).*/{ 1258217ca54c3Smrg s//\1/ 1258317ca54c3Smrg q 1258417ca54c3Smrg } 1258517ca54c3Smrg s/.*/./; q'` 1258617ca54c3Smrg as_dir="$ac_dir"; as_fn_mkdir_p 1258717ca54c3Smrg ac_builddir=. 1258817ca54c3Smrg 1258917ca54c3Smrgcase "$ac_dir" in 1259017ca54c3Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1259117ca54c3Smrg*) 1259217ca54c3Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1259317ca54c3Smrg # A ".." for each directory in $ac_dir_suffix. 1259417ca54c3Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1259517ca54c3Smrg case $ac_top_builddir_sub in 1259617ca54c3Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1259717ca54c3Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1259817ca54c3Smrg esac ;; 1259917ca54c3Smrgesac 1260017ca54c3Smrgac_abs_top_builddir=$ac_pwd 1260117ca54c3Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1260217ca54c3Smrg# for backward compatibility: 1260317ca54c3Smrgac_top_builddir=$ac_top_build_prefix 1260417ca54c3Smrg 1260517ca54c3Smrgcase $srcdir in 1260617ca54c3Smrg .) # We are building in place. 1260717ca54c3Smrg ac_srcdir=. 1260817ca54c3Smrg ac_top_srcdir=$ac_top_builddir_sub 1260917ca54c3Smrg ac_abs_top_srcdir=$ac_pwd ;; 1261017ca54c3Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1261117ca54c3Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1261217ca54c3Smrg ac_top_srcdir=$srcdir 1261317ca54c3Smrg ac_abs_top_srcdir=$srcdir ;; 1261417ca54c3Smrg *) # Relative name. 1261517ca54c3Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1261617ca54c3Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1261717ca54c3Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1261817ca54c3Smrgesac 1261917ca54c3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1262017ca54c3Smrg 1262117ca54c3Smrg 1262217ca54c3Smrg case $ac_mode in 1262317ca54c3Smrg :F) 1262417ca54c3Smrg # 1262517ca54c3Smrg # CONFIG_FILE 1262617ca54c3Smrg # 1262717ca54c3Smrg 1262817ca54c3Smrg case $INSTALL in 1262917ca54c3Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 1263017ca54c3Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 1263117ca54c3Smrg esac 1263217ca54c3Smrg ac_MKDIR_P=$MKDIR_P 1263317ca54c3Smrg case $MKDIR_P in 1263417ca54c3Smrg [\\/$]* | ?:[\\/]* ) ;; 1263517ca54c3Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 1263617ca54c3Smrg esac 1263717ca54c3Smrg_ACEOF 1263817ca54c3Smrg 1263917ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1264017ca54c3Smrg# If the template does not know about datarootdir, expand it. 1264117ca54c3Smrg# FIXME: This hack should be removed a few years after 2.60. 1264217ca54c3Smrgac_datarootdir_hack=; ac_datarootdir_seen= 1264317ca54c3Smrgac_sed_dataroot=' 1264417ca54c3Smrg/datarootdir/ { 1264517ca54c3Smrg p 1264617ca54c3Smrg q 1264717ca54c3Smrg} 1264817ca54c3Smrg/@datadir@/p 1264917ca54c3Smrg/@docdir@/p 1265017ca54c3Smrg/@infodir@/p 1265117ca54c3Smrg/@localedir@/p 1265217ca54c3Smrg/@mandir@/p' 1265317ca54c3Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 1265417ca54c3Smrg*datarootdir*) ac_datarootdir_seen=yes;; 1265517ca54c3Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 1265617ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 1265717ca54c3Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 1265817ca54c3Smrg_ACEOF 1265917ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1266017ca54c3Smrg ac_datarootdir_hack=' 1266117ca54c3Smrg s&@datadir@&$datadir&g 1266217ca54c3Smrg s&@docdir@&$docdir&g 1266317ca54c3Smrg s&@infodir@&$infodir&g 1266417ca54c3Smrg s&@localedir@&$localedir&g 1266517ca54c3Smrg s&@mandir@&$mandir&g 1266617ca54c3Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 1266717ca54c3Smrgesac 1266817ca54c3Smrg_ACEOF 1266917ca54c3Smrg 1267017ca54c3Smrg# Neutralize VPATH when `$srcdir' = `.'. 1267117ca54c3Smrg# Shell code in configure.ac might set extrasub. 1267217ca54c3Smrg# FIXME: do we really want to maintain this feature? 1267317ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1267417ca54c3Smrgac_sed_extra="$ac_vpsub 1267517ca54c3Smrg$extrasub 1267617ca54c3Smrg_ACEOF 1267717ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1267817ca54c3Smrg:t 1267917ca54c3Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 1268017ca54c3Smrgs|@configure_input@|$ac_sed_conf_input|;t t 1268117ca54c3Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 1268217ca54c3Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 1268317ca54c3Smrgs&@srcdir@&$ac_srcdir&;t t 1268417ca54c3Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 1268517ca54c3Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 1268617ca54c3Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 1268717ca54c3Smrgs&@builddir@&$ac_builddir&;t t 1268817ca54c3Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 1268917ca54c3Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 1269017ca54c3Smrgs&@INSTALL@&$ac_INSTALL&;t t 1269117ca54c3Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 1269217ca54c3Smrg$ac_datarootdir_hack 1269317ca54c3Smrg" 1269417ca54c3Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 1269517ca54c3Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1269617ca54c3Smrg 1269717ca54c3Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 1269817ca54c3Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 1269917ca54c3Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 1270017ca54c3Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 1270117ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1270217ca54c3Smrgwhich seems to be undefined. Please make sure it is defined" >&5 1270317ca54c3Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1270417ca54c3Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 1270517ca54c3Smrg 1270617ca54c3Smrg rm -f "$ac_tmp/stdin" 1270717ca54c3Smrg case $ac_file in 1270817ca54c3Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 1270917ca54c3Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 1271017ca54c3Smrg esac \ 1271117ca54c3Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1271217ca54c3Smrg ;; 1271317ca54c3Smrg 1271417ca54c3Smrg 1271517ca54c3Smrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 1271617ca54c3Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 1271717ca54c3Smrg ;; 1271817ca54c3Smrg esac 1271917ca54c3Smrg 1272017ca54c3Smrg 1272117ca54c3Smrg case $ac_file$ac_mode in 1272217ca54c3Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 1272317ca54c3Smrg # Older Autoconf quotes --file arguments for eval, but not when files 1272417ca54c3Smrg # are listed without --file. Let's play safe and only enable the eval 1272517ca54c3Smrg # if we detect the quoting. 12726ea1d6981Smrg # TODO: see whether this extra hack can be removed once we start 12727ea1d6981Smrg # requiring Autoconf 2.70 or later. 12728ea1d6981Smrg case $CONFIG_FILES in #( 12729ea1d6981Smrg *\'*) : 12730ea1d6981Smrg eval set x "$CONFIG_FILES" ;; #( 12731ea1d6981Smrg *) : 12732ea1d6981Smrg set x $CONFIG_FILES ;; #( 12733ea1d6981Smrg *) : 12734ea1d6981Smrg ;; 12735ea1d6981Smrgesac 1273617ca54c3Smrg shift 12737ea1d6981Smrg # Used to flag and report bootstrapping failures. 12738ea1d6981Smrg am_rc=0 12739ea1d6981Smrg for am_mf 1274017ca54c3Smrg do 1274117ca54c3Smrg # Strip MF so we end up with the name of the file. 12742ea1d6981Smrg am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 12743ea1d6981Smrg # Check whether this is an Automake generated Makefile which includes 12744ea1d6981Smrg # dependency-tracking related rules and includes. 12745ea1d6981Smrg # Grep'ing the whole file directly is not great: AIX grep has a line 1274617ca54c3Smrg # limit of 2048, but all sed's we know have understand at least 4000. 12747ea1d6981Smrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12748ea1d6981Smrg || continue 12749ea1d6981Smrg am_dirpart=`$as_dirname -- "$am_mf" || 12750ea1d6981Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12751ea1d6981Smrg X"$am_mf" : 'X\(//\)[^/]' \| \ 12752ea1d6981Smrg X"$am_mf" : 'X\(//\)$' \| \ 12753ea1d6981Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12754ea1d6981Smrg$as_echo X"$am_mf" | 1275517ca54c3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1275617ca54c3Smrg s//\1/ 1275717ca54c3Smrg q 1275817ca54c3Smrg } 1275917ca54c3Smrg /^X\(\/\/\)[^/].*/{ 1276017ca54c3Smrg s//\1/ 1276117ca54c3Smrg q 1276217ca54c3Smrg } 1276317ca54c3Smrg /^X\(\/\/\)$/{ 1276417ca54c3Smrg s//\1/ 1276517ca54c3Smrg q 1276617ca54c3Smrg } 1276717ca54c3Smrg /^X\(\/\).*/{ 1276817ca54c3Smrg s//\1/ 1276917ca54c3Smrg q 1277017ca54c3Smrg } 1277117ca54c3Smrg s/.*/./; q'` 12772ea1d6981Smrg am_filepart=`$as_basename -- "$am_mf" || 12773ea1d6981Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12774ea1d6981Smrg X"$am_mf" : 'X\(//\)$' \| \ 12775ea1d6981Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12776ea1d6981Smrg$as_echo X/"$am_mf" | 12777ea1d6981Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 1277817ca54c3Smrg s//\1/ 1277917ca54c3Smrg q 1278017ca54c3Smrg } 12781ea1d6981Smrg /^X\/\(\/\/\)$/{ 1278217ca54c3Smrg s//\1/ 1278317ca54c3Smrg q 1278417ca54c3Smrg } 12785ea1d6981Smrg /^X\/\(\/\).*/{ 1278617ca54c3Smrg s//\1/ 1278717ca54c3Smrg q 1278817ca54c3Smrg } 1278917ca54c3Smrg s/.*/./; q'` 12790ea1d6981Smrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12791ea1d6981Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 12792ea1d6981Smrg | $MAKE -f - am--depfiles" >&5 12793ea1d6981Smrg (cd "$am_dirpart" \ 12794ea1d6981Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 12795ea1d6981Smrg | $MAKE -f - am--depfiles) >&5 2>&5 12796ea1d6981Smrg ac_status=$? 12797ea1d6981Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 12798ea1d6981Smrg (exit $ac_status); } || am_rc=$? 1279917ca54c3Smrg done 12800ea1d6981Smrg if test $am_rc -ne 0; then 12801ea1d6981Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12802ea1d6981Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12803ea1d6981Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 12804ea1d6981Smrg for automatic dependency tracking. Try re-running configure with the 12805ea1d6981Smrg '--disable-dependency-tracking' option to at least be able to build 12806ea1d6981Smrg the package (albeit without support for automatic dependency tracking). 12807ea1d6981SmrgSee \`config.log' for more details" "$LINENO" 5; } 12808ea1d6981Smrg fi 12809ea1d6981Smrg { am_dirpart=; unset am_dirpart;} 12810ea1d6981Smrg { am_filepart=; unset am_filepart;} 12811ea1d6981Smrg { am_mf=; unset am_mf;} 12812ea1d6981Smrg { am_rc=; unset am_rc;} 12813ea1d6981Smrg rm -f conftest-deps.mk 1281417ca54c3Smrg} 1281517ca54c3Smrg ;; 1281617ca54c3Smrg 1281717ca54c3Smrg esac 1281817ca54c3Smrgdone # for ac_tag 1281917ca54c3Smrg 1282017ca54c3Smrg 1282117ca54c3Smrgas_fn_exit 0 1282217ca54c3Smrg_ACEOF 1282317ca54c3Smrgac_clean_files=$ac_clean_files_save 1282417ca54c3Smrg 1282517ca54c3Smrgtest $ac_write_fail = 0 || 1282617ca54c3Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 1282717ca54c3Smrg 1282817ca54c3Smrg 1282917ca54c3Smrg# configure is writing to config.log, and then calls config.status. 1283017ca54c3Smrg# config.status does its own redirection, appending to config.log. 1283117ca54c3Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 1283217ca54c3Smrg# by configure, so config.status won't be able to write to it; its 1283317ca54c3Smrg# output is simply discarded. So we exec the FD to /dev/null, 1283417ca54c3Smrg# effectively closing config.log, so it can be properly (re)opened and 1283517ca54c3Smrg# appended to by config.status. When coming back to configure, we 1283617ca54c3Smrg# need to make the FD available again. 1283717ca54c3Smrgif test "$no_create" != yes; then 1283817ca54c3Smrg ac_cs_success=: 1283917ca54c3Smrg ac_config_status_args= 1284017ca54c3Smrg test "$silent" = yes && 1284117ca54c3Smrg ac_config_status_args="$ac_config_status_args --quiet" 1284217ca54c3Smrg exec 5>/dev/null 1284317ca54c3Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 1284417ca54c3Smrg exec 5>>config.log 1284517ca54c3Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 1284617ca54c3Smrg # would make configure fail if this is the last instruction. 1284717ca54c3Smrg $ac_cs_success || as_fn_exit 1 1284817ca54c3Smrgfi 1284917ca54c3Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 1285017ca54c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 1285117ca54c3Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 1285217ca54c3Smrgfi 1285317ca54c3Smrg 1285417ca54c3Smrg 12855