configure revision 6728f30e
1b3307321Smrg#! /bin/sh 2b3307321Smrg# Guess values for system-dependent variables and create Makefiles. 36728f30eSmrg# Generated by GNU Autoconf 2.71 for xwd 1.0.9. 4b3307321Smrg# 574b97a6cSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwd/issues>. 6b3307321Smrg# 729cb5710Smrg# 874b97a6cSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 974b97a6cSmrg# Inc. 1029cb5710Smrg# 1129cb5710Smrg# 12b3307321Smrg# This configure script is free software; the Free Software Foundation 13b3307321Smrg# gives unlimited permission to copy, distribute and modify it. 1429cb5710Smrg## -------------------- ## 1529cb5710Smrg## M4sh Initialization. ## 1629cb5710Smrg## -------------------- ## 17b3307321Smrg 18afe13c8eSmrg# Be more Bourne compatible 19afe13c8eSmrgDUALCASE=1; export DUALCASE # for MKS sh 2074b97a6cSmrgas_nop=: 2174b97a6cSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 2274b97a6cSmrgthen : 23b3307321Smrg emulate sh 24b3307321Smrg NULLCMD=: 25afe13c8eSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26b3307321Smrg # is contrary to our usage. Disable this feature. 27b3307321Smrg alias -g '${1+"$@"}'='"$@"' 28afe13c8eSmrg setopt NO_GLOB_SUBST 2974b97a6cSmrgelse $as_nop 3029cb5710Smrg case `(set -o) 2>/dev/null` in #( 3129cb5710Smrg *posix*) : 3229cb5710Smrg set -o posix ;; #( 3329cb5710Smrg *) : 3429cb5710Smrg ;; 35afe13c8eSmrgesac 36afe13c8eSmrgfi 37afe13c8eSmrg 38afe13c8eSmrg 3974b97a6cSmrg 4074b97a6cSmrg# Reset variables that may have inherited troublesome values from 4174b97a6cSmrg# the environment. 4274b97a6cSmrg 4374b97a6cSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 4474b97a6cSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 4574b97a6cSmrg# side effect of setting IFS to empty, thus disabling word splitting.) 4674b97a6cSmrg# Quoting is to prevent editors from complaining about space-tab. 47afe13c8eSmrgas_nl=' 48afe13c8eSmrg' 49afe13c8eSmrgexport as_nl 5074b97a6cSmrgIFS=" "" $as_nl" 5174b97a6cSmrg 5274b97a6cSmrgPS1='$ ' 5374b97a6cSmrgPS2='> ' 5474b97a6cSmrgPS4='+ ' 5574b97a6cSmrg 5674b97a6cSmrg# Ensure predictable behavior from utilities with locale-dependent output. 5774b97a6cSmrgLC_ALL=C 5874b97a6cSmrgexport LC_ALL 5974b97a6cSmrgLANGUAGE=C 6074b97a6cSmrgexport LANGUAGE 6174b97a6cSmrg 6274b97a6cSmrg# We cannot yet rely on "unset" to work, but we need these variables 6374b97a6cSmrg# to be unset--not just set to an empty or harmless value--now, to 6474b97a6cSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 6574b97a6cSmrg# also avoids known problems related to "unset" and subshell syntax 6674b97a6cSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 6774b97a6cSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 6874b97a6cSmrgdo eval test \${$as_var+y} \ 6974b97a6cSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 7074b97a6cSmrgdone 7174b97a6cSmrg 7274b97a6cSmrg# Ensure that fds 0, 1, and 2 are open. 7374b97a6cSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 7474b97a6cSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 7574b97a6cSmrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76afe13c8eSmrg 77afe13c8eSmrg# The user is always right. 7874b97a6cSmrgif ${PATH_SEPARATOR+false} :; then 79afe13c8eSmrg PATH_SEPARATOR=: 80afe13c8eSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81afe13c8eSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82afe13c8eSmrg PATH_SEPARATOR=';' 83afe13c8eSmrg } 84b3307321Smrgfi 85b3307321Smrg 86b3307321Smrg 87afe13c8eSmrg# Find who we are. Look in the path if we contain no directory separator. 8829cb5710Smrgas_myself= 8929cb5710Smrgcase $0 in #(( 90afe13c8eSmrg *[\\/]* ) as_myself=$0 ;; 91afe13c8eSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92afe13c8eSmrgfor as_dir in $PATH 93afe13c8eSmrgdo 94afe13c8eSmrg IFS=$as_save_IFS 9574b97a6cSmrg case $as_dir in #((( 9674b97a6cSmrg '') as_dir=./ ;; 9774b97a6cSmrg */) ;; 9874b97a6cSmrg *) as_dir=$as_dir/ ;; 9974b97a6cSmrg esac 10074b97a6cSmrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 10129cb5710Smrg done 102afe13c8eSmrgIFS=$as_save_IFS 103afe13c8eSmrg 104afe13c8eSmrg ;; 105afe13c8eSmrgesac 106afe13c8eSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 107afe13c8eSmrg# in which case we are not to be found in the path. 108afe13c8eSmrgif test "x$as_myself" = x; then 109afe13c8eSmrg as_myself=$0 110afe13c8eSmrgfi 111afe13c8eSmrgif test ! -f "$as_myself"; then 11274b97a6cSmrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11329cb5710Smrg exit 1 114afe13c8eSmrgfi 115afe13c8eSmrg 11629cb5710Smrg 11706ef0fecSmrg# Use a proper internal environment variable to ensure we don't fall 11806ef0fecSmrg # into an infinite loop, continuously re-executing ourselves. 11906ef0fecSmrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 12006ef0fecSmrg _as_can_reexec=no; export _as_can_reexec; 12106ef0fecSmrg # We cannot yet assume a decent shell, so we have to provide a 12206ef0fecSmrg# neutralization value for shells without unset; and this also 12306ef0fecSmrg# works around shells that cannot unset nonexistent variables. 12406ef0fecSmrg# Preserve -v and -x to the replacement shell. 12506ef0fecSmrgBASH_ENV=/dev/null 12606ef0fecSmrgENV=/dev/null 12706ef0fecSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 12806ef0fecSmrgcase $- in # (((( 12906ef0fecSmrg *v*x* | *x*v* ) as_opts=-vx ;; 13006ef0fecSmrg *v* ) as_opts=-v ;; 13106ef0fecSmrg *x* ) as_opts=-x ;; 13206ef0fecSmrg * ) as_opts= ;; 13306ef0fecSmrgesac 13406ef0fecSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 13506ef0fecSmrg# Admittedly, this is quite paranoid, since all the known shells bail 13606ef0fecSmrg# out after a failed `exec'. 13774b97a6cSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 13874b97a6cSmrgexit 255 13906ef0fecSmrg fi 14006ef0fecSmrg # We don't want this to propagate to other subprocesses. 14106ef0fecSmrg { _as_can_reexec=; unset _as_can_reexec;} 14229cb5710Smrgif test "x$CONFIG_SHELL" = x; then 14374b97a6cSmrg as_bourne_compatible="as_nop=: 14474b97a6cSmrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 14574b97a6cSmrgthen : 14629cb5710Smrg emulate sh 14729cb5710Smrg NULLCMD=: 14829cb5710Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 14929cb5710Smrg # is contrary to our usage. Disable this feature. 15029cb5710Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 15129cb5710Smrg setopt NO_GLOB_SUBST 15274b97a6cSmrgelse \$as_nop 15329cb5710Smrg case \`(set -o) 2>/dev/null\` in #( 15429cb5710Smrg *posix*) : 15529cb5710Smrg set -o posix ;; #( 15629cb5710Smrg *) : 15729cb5710Smrg ;; 15829cb5710Smrgesac 15929cb5710Smrgfi 16029cb5710Smrg" 16129cb5710Smrg as_required="as_fn_return () { (exit \$1); } 16229cb5710Smrgas_fn_success () { as_fn_return 0; } 16329cb5710Smrgas_fn_failure () { as_fn_return 1; } 16429cb5710Smrgas_fn_ret_success () { return 0; } 16529cb5710Smrgas_fn_ret_failure () { return 1; } 16629cb5710Smrg 16729cb5710Smrgexitcode=0 16829cb5710Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 16929cb5710Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 17029cb5710Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 17129cb5710Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 17274b97a6cSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 17374b97a6cSmrgthen : 17429cb5710Smrg 17574b97a6cSmrgelse \$as_nop 17629cb5710Smrg exitcode=1; echo positional parameters were not saved. 17729cb5710Smrgfi 17806ef0fecSmrgtest x\$exitcode = x0 || exit 1 17974b97a6cSmrgblah=\$(echo \$(echo blah)) 18074b97a6cSmrgtest x\"\$blah\" = xblah || exit 1 18106ef0fecSmrgtest -x / || exit 1" 18229cb5710Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 18329cb5710Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 18429cb5710Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 18529cb5710Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 18629cb5710Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 18774b97a6cSmrg if (eval "$as_required") 2>/dev/null 18874b97a6cSmrgthen : 18929cb5710Smrg as_have_required=yes 19074b97a6cSmrgelse $as_nop 19129cb5710Smrg as_have_required=no 19229cb5710Smrgfi 19374b97a6cSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 19474b97a6cSmrgthen : 19529cb5710Smrg 19674b97a6cSmrgelse $as_nop 19729cb5710Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19829cb5710Smrgas_found=false 19929cb5710Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20029cb5710Smrgdo 20129cb5710Smrg IFS=$as_save_IFS 20274b97a6cSmrg case $as_dir in #((( 20374b97a6cSmrg '') as_dir=./ ;; 20474b97a6cSmrg */) ;; 20574b97a6cSmrg *) as_dir=$as_dir/ ;; 20674b97a6cSmrg esac 20729cb5710Smrg as_found=: 20829cb5710Smrg case $as_dir in #( 20929cb5710Smrg /*) 21029cb5710Smrg for as_base in sh bash ksh sh5; do 21129cb5710Smrg # Try only shells that exist, to save several forks. 21274b97a6cSmrg as_shell=$as_dir$as_base 21329cb5710Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 21474b97a6cSmrg as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 21574b97a6cSmrgthen : 21629cb5710Smrg CONFIG_SHELL=$as_shell as_have_required=yes 21774b97a6cSmrg if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 21874b97a6cSmrgthen : 21929cb5710Smrg break 2 22029cb5710Smrgfi 22129cb5710Smrgfi 22229cb5710Smrg done;; 22329cb5710Smrg esac 22429cb5710Smrg as_found=false 22529cb5710Smrgdone 22629cb5710SmrgIFS=$as_save_IFS 22774b97a6cSmrgif $as_found 22874b97a6cSmrgthen : 22974b97a6cSmrg 23074b97a6cSmrgelse $as_nop 23174b97a6cSmrg if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 23274b97a6cSmrg as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 23374b97a6cSmrgthen : 23474b97a6cSmrg CONFIG_SHELL=$SHELL as_have_required=yes 23574b97a6cSmrgfi 23674b97a6cSmrgfi 23729cb5710Smrg 23829cb5710Smrg 23974b97a6cSmrg if test "x$CONFIG_SHELL" != x 24074b97a6cSmrgthen : 24106ef0fecSmrg export CONFIG_SHELL 24206ef0fecSmrg # We cannot yet assume a decent shell, so we have to provide a 24306ef0fecSmrg# neutralization value for shells without unset; and this also 24406ef0fecSmrg# works around shells that cannot unset nonexistent variables. 24506ef0fecSmrg# Preserve -v and -x to the replacement shell. 24606ef0fecSmrgBASH_ENV=/dev/null 24706ef0fecSmrgENV=/dev/null 24806ef0fecSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 24906ef0fecSmrgcase $- in # (((( 25006ef0fecSmrg *v*x* | *x*v* ) as_opts=-vx ;; 25106ef0fecSmrg *v* ) as_opts=-v ;; 25206ef0fecSmrg *x* ) as_opts=-x ;; 25306ef0fecSmrg * ) as_opts= ;; 25406ef0fecSmrgesac 25506ef0fecSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 25606ef0fecSmrg# Admittedly, this is quite paranoid, since all the known shells bail 25706ef0fecSmrg# out after a failed `exec'. 25874b97a6cSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 25906ef0fecSmrgexit 255 26029cb5710Smrgfi 26129cb5710Smrg 26274b97a6cSmrg if test x$as_have_required = xno 26374b97a6cSmrgthen : 26474b97a6cSmrg printf "%s\n" "$0: This script requires a shell more modern than all" 26574b97a6cSmrg printf "%s\n" "$0: the shells that I found on your system." 26674b97a6cSmrg if test ${ZSH_VERSION+y} ; then 26774b97a6cSmrg printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 26874b97a6cSmrg printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 26929cb5710Smrg else 27074b97a6cSmrg printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 27174b97a6cSmrg$0: https://gitlab.freedesktop.org/xorg/app/xwd/issues 27229cb5710Smrg$0: about your system, including any error possibly output 27329cb5710Smrg$0: before this message. Then install a modern shell, or 27429cb5710Smrg$0: manually run the script under such a shell if you do 27529cb5710Smrg$0: have one." 27629cb5710Smrg fi 27729cb5710Smrg exit 1 27829cb5710Smrgfi 27929cb5710Smrgfi 28029cb5710Smrgfi 28129cb5710SmrgSHELL=${CONFIG_SHELL-/bin/sh} 28229cb5710Smrgexport SHELL 28329cb5710Smrg# Unset more variables known to interfere with behavior of common tools. 28429cb5710SmrgCLICOLOR_FORCE= GREP_OPTIONS= 28529cb5710Smrgunset CLICOLOR_FORCE GREP_OPTIONS 28629cb5710Smrg 28729cb5710Smrg## --------------------- ## 28829cb5710Smrg## M4sh Shell Functions. ## 28929cb5710Smrg## --------------------- ## 29029cb5710Smrg# as_fn_unset VAR 29129cb5710Smrg# --------------- 29229cb5710Smrg# Portably unset VAR. 29329cb5710Smrgas_fn_unset () 29429cb5710Smrg{ 29529cb5710Smrg { eval $1=; unset $1;} 29629cb5710Smrg} 29729cb5710Smrgas_unset=as_fn_unset 29829cb5710Smrg 29974b97a6cSmrg 30029cb5710Smrg# as_fn_set_status STATUS 30129cb5710Smrg# ----------------------- 30229cb5710Smrg# Set $? to STATUS, without forking. 30329cb5710Smrgas_fn_set_status () 30429cb5710Smrg{ 30529cb5710Smrg return $1 30629cb5710Smrg} # as_fn_set_status 30729cb5710Smrg 30829cb5710Smrg# as_fn_exit STATUS 30929cb5710Smrg# ----------------- 31029cb5710Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 31129cb5710Smrgas_fn_exit () 31229cb5710Smrg{ 31329cb5710Smrg set +e 31429cb5710Smrg as_fn_set_status $1 31529cb5710Smrg exit $1 31629cb5710Smrg} # as_fn_exit 31774b97a6cSmrg# as_fn_nop 31874b97a6cSmrg# --------- 31974b97a6cSmrg# Do nothing but, unlike ":", preserve the value of $?. 32074b97a6cSmrgas_fn_nop () 32174b97a6cSmrg{ 32274b97a6cSmrg return $? 32374b97a6cSmrg} 32474b97a6cSmrgas_nop=as_fn_nop 32529cb5710Smrg 32629cb5710Smrg# as_fn_mkdir_p 32729cb5710Smrg# ------------- 32829cb5710Smrg# Create "$as_dir" as a directory, including parents if necessary. 32929cb5710Smrgas_fn_mkdir_p () 33029cb5710Smrg{ 33129cb5710Smrg 33229cb5710Smrg case $as_dir in #( 33329cb5710Smrg -*) as_dir=./$as_dir;; 33429cb5710Smrg esac 33529cb5710Smrg test -d "$as_dir" || eval $as_mkdir_p || { 33629cb5710Smrg as_dirs= 33729cb5710Smrg while :; do 33829cb5710Smrg case $as_dir in #( 33974b97a6cSmrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 34029cb5710Smrg *) as_qdir=$as_dir;; 34129cb5710Smrg esac 34229cb5710Smrg as_dirs="'$as_qdir' $as_dirs" 34329cb5710Smrg as_dir=`$as_dirname -- "$as_dir" || 34429cb5710Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34529cb5710Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 34629cb5710Smrg X"$as_dir" : 'X\(//\)$' \| \ 34729cb5710Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 34874b97a6cSmrgprintf "%s\n" X"$as_dir" | 34929cb5710Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35029cb5710Smrg s//\1/ 35129cb5710Smrg q 35229cb5710Smrg } 35329cb5710Smrg /^X\(\/\/\)[^/].*/{ 35429cb5710Smrg s//\1/ 35529cb5710Smrg q 35629cb5710Smrg } 35729cb5710Smrg /^X\(\/\/\)$/{ 35829cb5710Smrg s//\1/ 35929cb5710Smrg q 36029cb5710Smrg } 36129cb5710Smrg /^X\(\/\).*/{ 36229cb5710Smrg s//\1/ 36329cb5710Smrg q 36429cb5710Smrg } 36529cb5710Smrg s/.*/./; q'` 36629cb5710Smrg test -d "$as_dir" && break 36729cb5710Smrg done 36829cb5710Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 36929cb5710Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 37029cb5710Smrg 37129cb5710Smrg 37229cb5710Smrg} # as_fn_mkdir_p 37306ef0fecSmrg 37406ef0fecSmrg# as_fn_executable_p FILE 37506ef0fecSmrg# ----------------------- 37606ef0fecSmrg# Test if FILE is an executable regular file. 37706ef0fecSmrgas_fn_executable_p () 37806ef0fecSmrg{ 37906ef0fecSmrg test -f "$1" && test -x "$1" 38006ef0fecSmrg} # as_fn_executable_p 38129cb5710Smrg# as_fn_append VAR VALUE 38229cb5710Smrg# ---------------------- 38329cb5710Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 38429cb5710Smrg# advantage of any shell optimizations that allow amortized linear growth over 38529cb5710Smrg# repeated appends, instead of the typical quadratic growth present in naive 38629cb5710Smrg# implementations. 38774b97a6cSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 38874b97a6cSmrgthen : 38929cb5710Smrg eval 'as_fn_append () 39029cb5710Smrg { 39129cb5710Smrg eval $1+=\$2 39229cb5710Smrg }' 39374b97a6cSmrgelse $as_nop 39429cb5710Smrg as_fn_append () 39529cb5710Smrg { 39629cb5710Smrg eval $1=\$$1\$2 39729cb5710Smrg } 39829cb5710Smrgfi # as_fn_append 39929cb5710Smrg 40029cb5710Smrg# as_fn_arith ARG... 40129cb5710Smrg# ------------------ 40229cb5710Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 40329cb5710Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 40429cb5710Smrg# must be portable across $(()) and expr. 40574b97a6cSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 40674b97a6cSmrgthen : 40729cb5710Smrg eval 'as_fn_arith () 40829cb5710Smrg { 40929cb5710Smrg as_val=$(( $* )) 41029cb5710Smrg }' 41174b97a6cSmrgelse $as_nop 41229cb5710Smrg as_fn_arith () 41329cb5710Smrg { 41429cb5710Smrg as_val=`expr "$@" || test $? -eq 1` 41529cb5710Smrg } 41629cb5710Smrgfi # as_fn_arith 41729cb5710Smrg 41874b97a6cSmrg# as_fn_nop 41974b97a6cSmrg# --------- 42074b97a6cSmrg# Do nothing but, unlike ":", preserve the value of $?. 42174b97a6cSmrgas_fn_nop () 42274b97a6cSmrg{ 42374b97a6cSmrg return $? 42474b97a6cSmrg} 42574b97a6cSmrgas_nop=as_fn_nop 42629cb5710Smrg 42729cb5710Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 42829cb5710Smrg# ---------------------------------------- 42929cb5710Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 43029cb5710Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 43129cb5710Smrg# script with STATUS, using 1 if that was 0. 43229cb5710Smrgas_fn_error () 43329cb5710Smrg{ 43429cb5710Smrg as_status=$1; test $as_status -eq 0 && as_status=1 43529cb5710Smrg if test "$4"; then 43629cb5710Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 43774b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 43829cb5710Smrg fi 43974b97a6cSmrg printf "%s\n" "$as_me: error: $2" >&2 44029cb5710Smrg as_fn_exit $as_status 44129cb5710Smrg} # as_fn_error 44229cb5710Smrg 443afe13c8eSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 444afe13c8eSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 445b3307321Smrg as_expr=expr 446b3307321Smrgelse 447b3307321Smrg as_expr=false 448b3307321Smrgfi 449b3307321Smrg 450afe13c8eSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451b3307321Smrg as_basename=basename 452b3307321Smrgelse 453b3307321Smrg as_basename=false 454b3307321Smrgfi 455b3307321Smrg 45629cb5710Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 45729cb5710Smrg as_dirname=dirname 45829cb5710Smrgelse 45929cb5710Smrg as_dirname=false 46029cb5710Smrgfi 461b3307321Smrg 462afe13c8eSmrgas_me=`$as_basename -- "$0" || 463b3307321Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464b3307321Smrg X"$0" : 'X\(//\)$' \| \ 465afe13c8eSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 46674b97a6cSmrgprintf "%s\n" X/"$0" | 467afe13c8eSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 468afe13c8eSmrg s//\1/ 469afe13c8eSmrg q 470afe13c8eSmrg } 471afe13c8eSmrg /^X\/\(\/\/\)$/{ 472afe13c8eSmrg s//\1/ 473afe13c8eSmrg q 474afe13c8eSmrg } 475afe13c8eSmrg /^X\/\(\/\).*/{ 476afe13c8eSmrg s//\1/ 477afe13c8eSmrg q 478afe13c8eSmrg } 479afe13c8eSmrg s/.*/./; q'` 480b3307321Smrg 48129cb5710Smrg# Avoid depending upon Character Ranges. 48229cb5710Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 48329cb5710Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 48429cb5710Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 48529cb5710Smrgas_cr_digits='0123456789' 48629cb5710Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 487b3307321Smrg 488b3307321Smrg 48929cb5710Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 49029cb5710Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 49129cb5710Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 49229cb5710Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 49329cb5710Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 49429cb5710Smrg sed -n ' 49529cb5710Smrg p 49629cb5710Smrg /[$]LINENO/= 49729cb5710Smrg ' <$as_myself | 49829cb5710Smrg sed ' 49929cb5710Smrg s/[$]LINENO.*/&-/ 50029cb5710Smrg t lineno 50129cb5710Smrg b 50229cb5710Smrg :lineno 50329cb5710Smrg N 50429cb5710Smrg :loop 50529cb5710Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 50629cb5710Smrg t loop 50729cb5710Smrg s/-\n.*// 50829cb5710Smrg ' >$as_me.lineno && 50929cb5710Smrg chmod +x "$as_me.lineno" || 51074b97a6cSmrg { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511b3307321Smrg 51206ef0fecSmrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 51306ef0fecSmrg # already done that, so ensure we don't try to do so again and fall 51406ef0fecSmrg # in an infinite loop. This has already happened in practice. 51506ef0fecSmrg _as_can_reexec=no; export _as_can_reexec 51629cb5710Smrg # Don't try to exec as it changes $[0], causing all sort of problems 51729cb5710Smrg # (the dirname of $[0] is not the place where we might find the 51829cb5710Smrg # original and so on. Autoconf is especially sensitive to this). 51929cb5710Smrg . "./$as_me.lineno" 52029cb5710Smrg # Exit status is that of the last command. 52129cb5710Smrg exit 522afe13c8eSmrg} 523b3307321Smrg 52474b97a6cSmrg 52574b97a6cSmrg# Determine whether it's possible to make 'echo' print without a newline. 52674b97a6cSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 52774b97a6cSmrg# for compatibility with existing Makefiles. 52829cb5710SmrgECHO_C= ECHO_N= ECHO_T= 52929cb5710Smrgcase `echo -n x` in #((((( 53029cb5710Smrg-n*) 53129cb5710Smrg case `echo 'xy\c'` in 53229cb5710Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 53329cb5710Smrg xy) ECHO_C='\c';; 53429cb5710Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 53529cb5710Smrg ECHO_T=' ';; 53629cb5710Smrg esac;; 53729cb5710Smrg*) 53829cb5710Smrg ECHO_N='-n';; 53929cb5710Smrgesac 540b3307321Smrg 54174b97a6cSmrg# For backward compatibility with old third-party macros, we provide 54274b97a6cSmrg# the shell variables $as_echo and $as_echo_n. New code should use 54374b97a6cSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 54474b97a6cSmrgas_echo='printf %s\n' 54574b97a6cSmrgas_echo_n='printf %s' 54674b97a6cSmrg 54774b97a6cSmrg 54829cb5710Smrgrm -f conf$$ conf$$.exe conf$$.file 54929cb5710Smrgif test -d conf$$.dir; then 55029cb5710Smrg rm -f conf$$.dir/conf$$.file 55129cb5710Smrgelse 55229cb5710Smrg rm -f conf$$.dir 55329cb5710Smrg mkdir conf$$.dir 2>/dev/null 554afe13c8eSmrgfi 55529cb5710Smrgif (echo >conf$$.file) 2>/dev/null; then 55629cb5710Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 55729cb5710Smrg as_ln_s='ln -s' 55829cb5710Smrg # ... but there are two gotchas: 55929cb5710Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 56029cb5710Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 56106ef0fecSmrg # In both cases, we have to default to `cp -pR'. 56229cb5710Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 56306ef0fecSmrg as_ln_s='cp -pR' 56429cb5710Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 56529cb5710Smrg as_ln_s=ln 56629cb5710Smrg else 56706ef0fecSmrg as_ln_s='cp -pR' 56829cb5710Smrg fi 569afe13c8eSmrgelse 57006ef0fecSmrg as_ln_s='cp -pR' 571afe13c8eSmrgfi 57229cb5710Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 57329cb5710Smrgrmdir conf$$.dir 2>/dev/null 574afe13c8eSmrg 57529cb5710Smrgif mkdir -p . 2>/dev/null; then 57629cb5710Smrg as_mkdir_p='mkdir -p "$as_dir"' 57729cb5710Smrgelse 57829cb5710Smrg test -d ./-p && rmdir ./-p 57929cb5710Smrg as_mkdir_p=false 580afe13c8eSmrgfi 581afe13c8eSmrg 58206ef0fecSmrgas_test_x='test -x' 58306ef0fecSmrgas_executable_p=as_fn_executable_p 584afe13c8eSmrg 58529cb5710Smrg# Sed expression to map a string onto a valid CPP name. 58629cb5710Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587afe13c8eSmrg 58829cb5710Smrg# Sed expression to map a string onto a valid variable name. 58929cb5710Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590afe13c8eSmrg 591afe13c8eSmrg 59229cb5710Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 59329cb5710Smrgexec 6>&1 594b3307321Smrg 595b3307321Smrg# Name of the host. 59629cb5710Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 597b3307321Smrg# so uname gets run too. 598b3307321Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 599b3307321Smrg 600b3307321Smrg# 601b3307321Smrg# Initializations. 602b3307321Smrg# 603b3307321Smrgac_default_prefix=/usr/local 604afe13c8eSmrgac_clean_files= 605b3307321Smrgac_config_libobj_dir=. 606afe13c8eSmrgLIBOBJS= 607b3307321Smrgcross_compiling=no 608b3307321Smrgsubdirs= 609b3307321SmrgMFLAGS= 610b3307321SmrgMAKEFLAGS= 611b3307321Smrg 612b3307321Smrg# Identity of this package. 613b3307321SmrgPACKAGE_NAME='xwd' 614b3307321SmrgPACKAGE_TARNAME='xwd' 6156728f30eSmrgPACKAGE_VERSION='1.0.9' 6166728f30eSmrgPACKAGE_STRING='xwd 1.0.9' 61774b97a6cSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xwd/issues' 61829cb5710SmrgPACKAGE_URL='' 619b3307321Smrg 62029cb5710Smrgac_unique_file="Makefile.am" 6215e358ecaSmrg# Factoring default headers for most tests. 6225e358ecaSmrgac_includes_default="\ 62374b97a6cSmrg#include <stddef.h> 62474b97a6cSmrg#ifdef HAVE_STDIO_H 62574b97a6cSmrg# include <stdio.h> 6265e358ecaSmrg#endif 62774b97a6cSmrg#ifdef HAVE_STDLIB_H 6285e358ecaSmrg# include <stdlib.h> 6295e358ecaSmrg#endif 6305e358ecaSmrg#ifdef HAVE_STRING_H 6315e358ecaSmrg# include <string.h> 6325e358ecaSmrg#endif 6335e358ecaSmrg#ifdef HAVE_INTTYPES_H 6345e358ecaSmrg# include <inttypes.h> 6355e358ecaSmrg#endif 6365e358ecaSmrg#ifdef HAVE_STDINT_H 6375e358ecaSmrg# include <stdint.h> 6385e358ecaSmrg#endif 63974b97a6cSmrg#ifdef HAVE_STRINGS_H 64074b97a6cSmrg# include <strings.h> 64174b97a6cSmrg#endif 64274b97a6cSmrg#ifdef HAVE_SYS_TYPES_H 64374b97a6cSmrg# include <sys/types.h> 64474b97a6cSmrg#endif 64574b97a6cSmrg#ifdef HAVE_SYS_STAT_H 64674b97a6cSmrg# include <sys/stat.h> 64774b97a6cSmrg#endif 6485e358ecaSmrg#ifdef HAVE_UNISTD_H 6495e358ecaSmrg# include <unistd.h> 6505e358ecaSmrg#endif" 6515e358ecaSmrg 65274b97a6cSmrgac_header_c_list= 6535e358ecaSmrgac_subst_vars='am__EXEEXT_FALSE 6545e358ecaSmrgam__EXEEXT_TRUE 6555e358ecaSmrgLTLIBOBJS 6565e358ecaSmrgLIBOBJS 657afe13c8eSmrgXWD_LIBS 6585e358ecaSmrgXWD_CFLAGS 65929cb5710SmrgMAN_SUBSTS 66029cb5710SmrgXORG_MAN_PAGE 661afe13c8eSmrgADMIN_MAN_DIR 6625e358ecaSmrgDRIVER_MAN_DIR 6635e358ecaSmrgMISC_MAN_DIR 6645e358ecaSmrgFILE_MAN_DIR 6655e358ecaSmrgLIB_MAN_DIR 6665e358ecaSmrgAPP_MAN_DIR 6675e358ecaSmrgADMIN_MAN_SUFFIX 6685e358ecaSmrgDRIVER_MAN_SUFFIX 6695e358ecaSmrgMISC_MAN_SUFFIX 6705e358ecaSmrgFILE_MAN_SUFFIX 6715e358ecaSmrgLIB_MAN_SUFFIX 6725e358ecaSmrgAPP_MAN_SUFFIX 67329cb5710SmrgSED 6745e358ecaSmrghost_os 6755e358ecaSmrghost_vendor 6765e358ecaSmrghost_cpu 6775e358ecaSmrghost 6785e358ecaSmrgbuild_os 6795e358ecaSmrgbuild_vendor 6805e358ecaSmrgbuild_cpu 6815e358ecaSmrgbuild 68229cb5710SmrgINSTALL_CMD 68306ef0fecSmrgPKG_CONFIG_LIBDIR 68406ef0fecSmrgPKG_CONFIG_PATH 68529cb5710SmrgPKG_CONFIG 6865e358ecaSmrgCHANGELOG_CMD 687320e696bSmrgSTRICT_CFLAGS 6885e358ecaSmrgCWARNFLAGS 689320e696bSmrgBASE_CFLAGS 6905e358ecaSmrgam__fastdepCC_FALSE 6915e358ecaSmrgam__fastdepCC_TRUE 6925e358ecaSmrgCCDEPMODE 69374a3f230Smrgam__nodep 6945e358ecaSmrgAMDEPBACKSLASH 6955e358ecaSmrgAMDEP_FALSE 6965e358ecaSmrgAMDEP_TRUE 6975e358ecaSmrgam__include 6985e358ecaSmrgDEPDIR 6995e358ecaSmrgOBJEXT 7005e358ecaSmrgEXEEXT 7015e358ecaSmrgac_ct_CC 7025e358ecaSmrgCPPFLAGS 7035e358ecaSmrgLDFLAGS 7045e358ecaSmrgCFLAGS 7055e358ecaSmrgCC 70674a3f230SmrgAM_BACKSLASH 70774a3f230SmrgAM_DEFAULT_VERBOSITY 70874a3f230SmrgAM_DEFAULT_V 70974a3f230SmrgAM_V 71074b97a6cSmrgCSCOPE 71174b97a6cSmrgETAGS 71274b97a6cSmrgCTAGS 7135e358ecaSmrgam__untar 7145e358ecaSmrgam__tar 7155e358ecaSmrgAMTAR 7165e358ecaSmrgam__leading_dot 7175e358ecaSmrgSET_MAKE 7185e358ecaSmrgAWK 7195e358ecaSmrgmkdir_p 7205e358ecaSmrgMKDIR_P 7215e358ecaSmrgINSTALL_STRIP_PROGRAM 7225e358ecaSmrgSTRIP 7235e358ecaSmrginstall_sh 7245e358ecaSmrgMAKEINFO 7255e358ecaSmrgAUTOHEADER 7265e358ecaSmrgAUTOMAKE 7275e358ecaSmrgAUTOCONF 7285e358ecaSmrgACLOCAL 7295e358ecaSmrgVERSION 7305e358ecaSmrgPACKAGE 7315e358ecaSmrgCYGPATH_W 7325e358ecaSmrgam__isrc 7335e358ecaSmrgINSTALL_DATA 7345e358ecaSmrgINSTALL_SCRIPT 7355e358ecaSmrgINSTALL_PROGRAM 7365e358ecaSmrgtarget_alias 7375e358ecaSmrghost_alias 7385e358ecaSmrgbuild_alias 7395e358ecaSmrgLIBS 7405e358ecaSmrgECHO_T 7415e358ecaSmrgECHO_N 7425e358ecaSmrgECHO_C 7435e358ecaSmrgDEFS 7445e358ecaSmrgmandir 7455e358ecaSmrglocaledir 7465e358ecaSmrglibdir 7475e358ecaSmrgpsdir 7485e358ecaSmrgpdfdir 7495e358ecaSmrgdvidir 7505e358ecaSmrghtmldir 7515e358ecaSmrginfodir 7525e358ecaSmrgdocdir 7535e358ecaSmrgoldincludedir 7545e358ecaSmrgincludedir 75574b97a6cSmrgrunstatedir 7565e358ecaSmrglocalstatedir 7575e358ecaSmrgsharedstatedir 7585e358ecaSmrgsysconfdir 7595e358ecaSmrgdatadir 7605e358ecaSmrgdatarootdir 7615e358ecaSmrglibexecdir 7625e358ecaSmrgsbindir 7635e358ecaSmrgbindir 7645e358ecaSmrgprogram_transform_name 7655e358ecaSmrgprefix 7665e358ecaSmrgexec_prefix 76729cb5710SmrgPACKAGE_URL 7685e358ecaSmrgPACKAGE_BUGREPORT 7695e358ecaSmrgPACKAGE_STRING 7705e358ecaSmrgPACKAGE_VERSION 7715e358ecaSmrgPACKAGE_TARNAME 7725e358ecaSmrgPACKAGE_NAME 7735e358ecaSmrgPATH_SEPARATOR 77474b97a6cSmrgSHELL 77574b97a6cSmrgam__quote' 776b3307321Smrgac_subst_files='' 777afe13c8eSmrgac_user_opts=' 778afe13c8eSmrgenable_option_checking 77974a3f230Smrgenable_silent_rules 780afe13c8eSmrgenable_dependency_tracking 781320e696bSmrgenable_selective_werror 7825e358ecaSmrgenable_strict_compilation 78374a3f230Smrgwith_xkb 784afe13c8eSmrg' 785afe13c8eSmrg ac_precious_vars='build_alias 786afe13c8eSmrghost_alias 787afe13c8eSmrgtarget_alias 788afe13c8eSmrgCC 789afe13c8eSmrgCFLAGS 790afe13c8eSmrgLDFLAGS 791afe13c8eSmrgLIBS 792afe13c8eSmrgCPPFLAGS 793afe13c8eSmrgPKG_CONFIG 79406ef0fecSmrgPKG_CONFIG_PATH 79506ef0fecSmrgPKG_CONFIG_LIBDIR 796afe13c8eSmrgXWD_CFLAGS 797afe13c8eSmrgXWD_LIBS' 798afe13c8eSmrg 799b3307321Smrg 800b3307321Smrg# Initialize some variables set by options. 801b3307321Smrgac_init_help= 802b3307321Smrgac_init_version=false 803afe13c8eSmrgac_unrecognized_opts= 804afe13c8eSmrgac_unrecognized_sep= 805b3307321Smrg# The variables have the same names as the options, with 806b3307321Smrg# dashes changed to underlines. 807b3307321Smrgcache_file=/dev/null 808b3307321Smrgexec_prefix=NONE 809b3307321Smrgno_create= 810b3307321Smrgno_recursion= 811b3307321Smrgprefix=NONE 812b3307321Smrgprogram_prefix=NONE 813b3307321Smrgprogram_suffix=NONE 814b3307321Smrgprogram_transform_name=s,x,x, 815b3307321Smrgsilent= 816b3307321Smrgsite= 817b3307321Smrgsrcdir= 818b3307321Smrgverbose= 819b3307321Smrgx_includes=NONE 820b3307321Smrgx_libraries=NONE 821b3307321Smrg 822b3307321Smrg# Installation directory options. 823b3307321Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 824b3307321Smrg# and all the variables that are supposed to be based on exec_prefix 825b3307321Smrg# by default will actually change. 826b3307321Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 827afe13c8eSmrg# (The list follows the same order as the GNU Coding Standards.) 828b3307321Smrgbindir='${exec_prefix}/bin' 829b3307321Smrgsbindir='${exec_prefix}/sbin' 830b3307321Smrglibexecdir='${exec_prefix}/libexec' 831afe13c8eSmrgdatarootdir='${prefix}/share' 832afe13c8eSmrgdatadir='${datarootdir}' 833b3307321Smrgsysconfdir='${prefix}/etc' 834b3307321Smrgsharedstatedir='${prefix}/com' 835b3307321Smrglocalstatedir='${prefix}/var' 83674b97a6cSmrgrunstatedir='${localstatedir}/run' 837b3307321Smrgincludedir='${prefix}/include' 838b3307321Smrgoldincludedir='/usr/include' 839afe13c8eSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 840afe13c8eSmrginfodir='${datarootdir}/info' 841afe13c8eSmrghtmldir='${docdir}' 842afe13c8eSmrgdvidir='${docdir}' 843afe13c8eSmrgpdfdir='${docdir}' 844afe13c8eSmrgpsdir='${docdir}' 845afe13c8eSmrglibdir='${exec_prefix}/lib' 846afe13c8eSmrglocaledir='${datarootdir}/locale' 847afe13c8eSmrgmandir='${datarootdir}/man' 848b3307321Smrg 849b3307321Smrgac_prev= 850afe13c8eSmrgac_dashdash= 851b3307321Smrgfor ac_option 852b3307321Smrgdo 853b3307321Smrg # If the previous option needs an argument, assign it. 854b3307321Smrg if test -n "$ac_prev"; then 855afe13c8eSmrg eval $ac_prev=\$ac_option 856b3307321Smrg ac_prev= 857b3307321Smrg continue 858b3307321Smrg fi 859b3307321Smrg 860afe13c8eSmrg case $ac_option in 86129cb5710Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 86229cb5710Smrg *=) ac_optarg= ;; 86329cb5710Smrg *) ac_optarg=yes ;; 864afe13c8eSmrg esac 865b3307321Smrg 866afe13c8eSmrg case $ac_dashdash$ac_option in 867afe13c8eSmrg --) 868afe13c8eSmrg ac_dashdash=yes ;; 869b3307321Smrg 870b3307321Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 871b3307321Smrg ac_prev=bindir ;; 872b3307321Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 873b3307321Smrg bindir=$ac_optarg ;; 874b3307321Smrg 875b3307321Smrg -build | --build | --buil | --bui | --bu) 876b3307321Smrg ac_prev=build_alias ;; 877b3307321Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 878b3307321Smrg build_alias=$ac_optarg ;; 879b3307321Smrg 880b3307321Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 881b3307321Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 882b3307321Smrg ac_prev=cache_file ;; 883b3307321Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 884b3307321Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 885b3307321Smrg cache_file=$ac_optarg ;; 886b3307321Smrg 887b3307321Smrg --config-cache | -C) 888b3307321Smrg cache_file=config.cache ;; 889b3307321Smrg 890afe13c8eSmrg -datadir | --datadir | --datadi | --datad) 891b3307321Smrg ac_prev=datadir ;; 892afe13c8eSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 893b3307321Smrg datadir=$ac_optarg ;; 894b3307321Smrg 895afe13c8eSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 896afe13c8eSmrg | --dataroo | --dataro | --datar) 897afe13c8eSmrg ac_prev=datarootdir ;; 898afe13c8eSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 899afe13c8eSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 900afe13c8eSmrg datarootdir=$ac_optarg ;; 901afe13c8eSmrg 902b3307321Smrg -disable-* | --disable-*) 903afe13c8eSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 904b3307321Smrg # Reject names that are not valid shell variable names. 905afe13c8eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 90674b97a6cSmrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 907afe13c8eSmrg ac_useropt_orig=$ac_useropt 90874b97a6cSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 909afe13c8eSmrg case $ac_user_opts in 910afe13c8eSmrg *" 911afe13c8eSmrg"enable_$ac_useropt" 912afe13c8eSmrg"*) ;; 913afe13c8eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 914afe13c8eSmrg ac_unrecognized_sep=', ';; 915afe13c8eSmrg esac 916afe13c8eSmrg eval enable_$ac_useropt=no ;; 917afe13c8eSmrg 918afe13c8eSmrg -docdir | --docdir | --docdi | --doc | --do) 919afe13c8eSmrg ac_prev=docdir ;; 920afe13c8eSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 921afe13c8eSmrg docdir=$ac_optarg ;; 922afe13c8eSmrg 923afe13c8eSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 924afe13c8eSmrg ac_prev=dvidir ;; 925afe13c8eSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 926afe13c8eSmrg dvidir=$ac_optarg ;; 927b3307321Smrg 928b3307321Smrg -enable-* | --enable-*) 929afe13c8eSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 930b3307321Smrg # Reject names that are not valid shell variable names. 931afe13c8eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 93274b97a6cSmrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 933afe13c8eSmrg ac_useropt_orig=$ac_useropt 93474b97a6cSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 935afe13c8eSmrg case $ac_user_opts in 936afe13c8eSmrg *" 937afe13c8eSmrg"enable_$ac_useropt" 938afe13c8eSmrg"*) ;; 939afe13c8eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 940afe13c8eSmrg ac_unrecognized_sep=', ';; 941b3307321Smrg esac 942afe13c8eSmrg eval enable_$ac_useropt=\$ac_optarg ;; 943b3307321Smrg 944b3307321Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 945b3307321Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 946b3307321Smrg | --exec | --exe | --ex) 947b3307321Smrg ac_prev=exec_prefix ;; 948b3307321Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 949b3307321Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 950b3307321Smrg | --exec=* | --exe=* | --ex=*) 951b3307321Smrg exec_prefix=$ac_optarg ;; 952b3307321Smrg 953b3307321Smrg -gas | --gas | --ga | --g) 954b3307321Smrg # Obsolete; use --with-gas. 955b3307321Smrg with_gas=yes ;; 956b3307321Smrg 957b3307321Smrg -help | --help | --hel | --he | -h) 958b3307321Smrg ac_init_help=long ;; 959b3307321Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 960b3307321Smrg ac_init_help=recursive ;; 961b3307321Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 962b3307321Smrg ac_init_help=short ;; 963b3307321Smrg 964b3307321Smrg -host | --host | --hos | --ho) 965b3307321Smrg ac_prev=host_alias ;; 966b3307321Smrg -host=* | --host=* | --hos=* | --ho=*) 967b3307321Smrg host_alias=$ac_optarg ;; 968b3307321Smrg 969afe13c8eSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 970afe13c8eSmrg ac_prev=htmldir ;; 971afe13c8eSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 972afe13c8eSmrg | --ht=*) 973afe13c8eSmrg htmldir=$ac_optarg ;; 974afe13c8eSmrg 975b3307321Smrg -includedir | --includedir | --includedi | --included | --include \ 976b3307321Smrg | --includ | --inclu | --incl | --inc) 977b3307321Smrg ac_prev=includedir ;; 978b3307321Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 979b3307321Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 980b3307321Smrg includedir=$ac_optarg ;; 981b3307321Smrg 982b3307321Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 983b3307321Smrg ac_prev=infodir ;; 984b3307321Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 985b3307321Smrg infodir=$ac_optarg ;; 986b3307321Smrg 987b3307321Smrg -libdir | --libdir | --libdi | --libd) 988b3307321Smrg ac_prev=libdir ;; 989b3307321Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 990b3307321Smrg libdir=$ac_optarg ;; 991b3307321Smrg 992b3307321Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 993b3307321Smrg | --libexe | --libex | --libe) 994b3307321Smrg ac_prev=libexecdir ;; 995b3307321Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 996b3307321Smrg | --libexe=* | --libex=* | --libe=*) 997b3307321Smrg libexecdir=$ac_optarg ;; 998b3307321Smrg 999afe13c8eSmrg -localedir | --localedir | --localedi | --localed | --locale) 1000afe13c8eSmrg ac_prev=localedir ;; 1001afe13c8eSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1002afe13c8eSmrg localedir=$ac_optarg ;; 1003afe13c8eSmrg 1004b3307321Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 1005afe13c8eSmrg | --localstate | --localstat | --localsta | --localst | --locals) 1006b3307321Smrg ac_prev=localstatedir ;; 1007b3307321Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1008afe13c8eSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1009b3307321Smrg localstatedir=$ac_optarg ;; 1010b3307321Smrg 1011b3307321Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1012b3307321Smrg ac_prev=mandir ;; 1013b3307321Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1014b3307321Smrg mandir=$ac_optarg ;; 1015b3307321Smrg 1016b3307321Smrg -nfp | --nfp | --nf) 1017b3307321Smrg # Obsolete; use --without-fp. 1018b3307321Smrg with_fp=no ;; 1019b3307321Smrg 1020b3307321Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1021b3307321Smrg | --no-cr | --no-c | -n) 1022b3307321Smrg no_create=yes ;; 1023b3307321Smrg 1024b3307321Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1025b3307321Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1026b3307321Smrg no_recursion=yes ;; 1027b3307321Smrg 1028b3307321Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1029b3307321Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1030b3307321Smrg | --oldin | --oldi | --old | --ol | --o) 1031b3307321Smrg ac_prev=oldincludedir ;; 1032b3307321Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1033b3307321Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1034b3307321Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1035b3307321Smrg oldincludedir=$ac_optarg ;; 1036b3307321Smrg 1037b3307321Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1038b3307321Smrg ac_prev=prefix ;; 1039b3307321Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1040b3307321Smrg prefix=$ac_optarg ;; 1041b3307321Smrg 1042b3307321Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1043b3307321Smrg | --program-pre | --program-pr | --program-p) 1044b3307321Smrg ac_prev=program_prefix ;; 1045b3307321Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1046b3307321Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1047b3307321Smrg program_prefix=$ac_optarg ;; 1048b3307321Smrg 1049b3307321Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1050b3307321Smrg | --program-suf | --program-su | --program-s) 1051b3307321Smrg ac_prev=program_suffix ;; 1052b3307321Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1053b3307321Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1054b3307321Smrg program_suffix=$ac_optarg ;; 1055b3307321Smrg 1056b3307321Smrg -program-transform-name | --program-transform-name \ 1057b3307321Smrg | --program-transform-nam | --program-transform-na \ 1058b3307321Smrg | --program-transform-n | --program-transform- \ 1059b3307321Smrg | --program-transform | --program-transfor \ 1060b3307321Smrg | --program-transfo | --program-transf \ 1061b3307321Smrg | --program-trans | --program-tran \ 1062b3307321Smrg | --progr-tra | --program-tr | --program-t) 1063b3307321Smrg ac_prev=program_transform_name ;; 1064b3307321Smrg -program-transform-name=* | --program-transform-name=* \ 1065b3307321Smrg | --program-transform-nam=* | --program-transform-na=* \ 1066b3307321Smrg | --program-transform-n=* | --program-transform-=* \ 1067b3307321Smrg | --program-transform=* | --program-transfor=* \ 1068b3307321Smrg | --program-transfo=* | --program-transf=* \ 1069b3307321Smrg | --program-trans=* | --program-tran=* \ 1070b3307321Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 1071b3307321Smrg program_transform_name=$ac_optarg ;; 1072b3307321Smrg 1073afe13c8eSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1074afe13c8eSmrg ac_prev=pdfdir ;; 1075afe13c8eSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1076afe13c8eSmrg pdfdir=$ac_optarg ;; 1077afe13c8eSmrg 1078afe13c8eSmrg -psdir | --psdir | --psdi | --psd | --ps) 1079afe13c8eSmrg ac_prev=psdir ;; 1080afe13c8eSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1081afe13c8eSmrg psdir=$ac_optarg ;; 1082afe13c8eSmrg 1083b3307321Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1084b3307321Smrg | -silent | --silent | --silen | --sile | --sil) 1085b3307321Smrg silent=yes ;; 1086b3307321Smrg 108774b97a6cSmrg -runstatedir | --runstatedir | --runstatedi | --runstated \ 108874b97a6cSmrg | --runstate | --runstat | --runsta | --runst | --runs \ 108974b97a6cSmrg | --run | --ru | --r) 109074b97a6cSmrg ac_prev=runstatedir ;; 109174b97a6cSmrg -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 109274b97a6cSmrg | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 109374b97a6cSmrg | --run=* | --ru=* | --r=*) 109474b97a6cSmrg runstatedir=$ac_optarg ;; 109574b97a6cSmrg 1096b3307321Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1097b3307321Smrg ac_prev=sbindir ;; 1098b3307321Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1099b3307321Smrg | --sbi=* | --sb=*) 1100b3307321Smrg sbindir=$ac_optarg ;; 1101b3307321Smrg 1102b3307321Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1103b3307321Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1104b3307321Smrg | --sharedst | --shareds | --shared | --share | --shar \ 1105b3307321Smrg | --sha | --sh) 1106b3307321Smrg ac_prev=sharedstatedir ;; 1107b3307321Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1108b3307321Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1109b3307321Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1110b3307321Smrg | --sha=* | --sh=*) 1111b3307321Smrg sharedstatedir=$ac_optarg ;; 1112b3307321Smrg 1113b3307321Smrg -site | --site | --sit) 1114b3307321Smrg ac_prev=site ;; 1115b3307321Smrg -site=* | --site=* | --sit=*) 1116b3307321Smrg site=$ac_optarg ;; 1117b3307321Smrg 1118b3307321Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1119b3307321Smrg ac_prev=srcdir ;; 1120b3307321Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1121b3307321Smrg srcdir=$ac_optarg ;; 1122b3307321Smrg 1123b3307321Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1124b3307321Smrg | --syscon | --sysco | --sysc | --sys | --sy) 1125b3307321Smrg ac_prev=sysconfdir ;; 1126b3307321Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1127b3307321Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1128b3307321Smrg sysconfdir=$ac_optarg ;; 1129b3307321Smrg 1130b3307321Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 1131b3307321Smrg ac_prev=target_alias ;; 1132b3307321Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1133b3307321Smrg target_alias=$ac_optarg ;; 1134b3307321Smrg 1135b3307321Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1136b3307321Smrg verbose=yes ;; 1137b3307321Smrg 1138b3307321Smrg -version | --version | --versio | --versi | --vers | -V) 1139b3307321Smrg ac_init_version=: ;; 1140b3307321Smrg 1141b3307321Smrg -with-* | --with-*) 1142afe13c8eSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1143b3307321Smrg # Reject names that are not valid shell variable names. 1144afe13c8eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 114574b97a6cSmrg as_fn_error $? "invalid package name: \`$ac_useropt'" 1146afe13c8eSmrg ac_useropt_orig=$ac_useropt 114774b97a6cSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1148afe13c8eSmrg case $ac_user_opts in 1149afe13c8eSmrg *" 1150afe13c8eSmrg"with_$ac_useropt" 1151afe13c8eSmrg"*) ;; 1152afe13c8eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1153afe13c8eSmrg ac_unrecognized_sep=', ';; 1154b3307321Smrg esac 1155afe13c8eSmrg eval with_$ac_useropt=\$ac_optarg ;; 1156b3307321Smrg 1157b3307321Smrg -without-* | --without-*) 1158afe13c8eSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1159b3307321Smrg # Reject names that are not valid shell variable names. 1160afe13c8eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 116174b97a6cSmrg as_fn_error $? "invalid package name: \`$ac_useropt'" 1162afe13c8eSmrg ac_useropt_orig=$ac_useropt 116374b97a6cSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1164afe13c8eSmrg case $ac_user_opts in 1165afe13c8eSmrg *" 1166afe13c8eSmrg"with_$ac_useropt" 1167afe13c8eSmrg"*) ;; 1168afe13c8eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1169afe13c8eSmrg ac_unrecognized_sep=', ';; 1170afe13c8eSmrg esac 1171afe13c8eSmrg eval with_$ac_useropt=no ;; 1172b3307321Smrg 1173b3307321Smrg --x) 1174b3307321Smrg # Obsolete; use --with-x. 1175b3307321Smrg with_x=yes ;; 1176b3307321Smrg 1177b3307321Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1178b3307321Smrg | --x-incl | --x-inc | --x-in | --x-i) 1179b3307321Smrg ac_prev=x_includes ;; 1180b3307321Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1181b3307321Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1182b3307321Smrg x_includes=$ac_optarg ;; 1183b3307321Smrg 1184b3307321Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1185b3307321Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1186b3307321Smrg ac_prev=x_libraries ;; 1187b3307321Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1188b3307321Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1189b3307321Smrg x_libraries=$ac_optarg ;; 1190b3307321Smrg 119129cb5710Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 119229cb5710SmrgTry \`$0 --help' for more information" 1193b3307321Smrg ;; 1194b3307321Smrg 1195b3307321Smrg *=*) 1196b3307321Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1197b3307321Smrg # Reject names that are not valid shell variable names. 119829cb5710Smrg case $ac_envvar in #( 119929cb5710Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 120029cb5710Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 120129cb5710Smrg esac 1202afe13c8eSmrg eval $ac_envvar=\$ac_optarg 1203b3307321Smrg export $ac_envvar ;; 1204b3307321Smrg 1205b3307321Smrg *) 1206b3307321Smrg # FIXME: should be removed in autoconf 3.0. 120774b97a6cSmrg printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1208b3307321Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 120974b97a6cSmrg printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 121029cb5710Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1211b3307321Smrg ;; 1212b3307321Smrg 1213b3307321Smrg esac 1214b3307321Smrgdone 1215b3307321Smrg 1216b3307321Smrgif test -n "$ac_prev"; then 1217b3307321Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 121829cb5710Smrg as_fn_error $? "missing argument to $ac_option" 1219b3307321Smrgfi 1220b3307321Smrg 1221afe13c8eSmrgif test -n "$ac_unrecognized_opts"; then 1222afe13c8eSmrg case $enable_option_checking in 1223afe13c8eSmrg no) ;; 122429cb5710Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 122574b97a6cSmrg *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1226b3307321Smrg esac 1227afe13c8eSmrgfi 1228b3307321Smrg 1229afe13c8eSmrg# Check all directory arguments for consistency. 1230afe13c8eSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1231afe13c8eSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1232afe13c8eSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 123374b97a6cSmrg libdir localedir mandir runstatedir 1234b3307321Smrgdo 1235afe13c8eSmrg eval ac_val=\$$ac_var 1236afe13c8eSmrg # Remove trailing slashes. 1237b3307321Smrg case $ac_val in 1238afe13c8eSmrg */ ) 1239afe13c8eSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1240afe13c8eSmrg eval $ac_var=\$ac_val;; 1241afe13c8eSmrg esac 1242afe13c8eSmrg # Be sure to have absolute directory names. 1243afe13c8eSmrg case $ac_val in 1244afe13c8eSmrg [\\/$]* | ?:[\\/]* ) continue;; 1245afe13c8eSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1246b3307321Smrg esac 124729cb5710Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1248b3307321Smrgdone 1249b3307321Smrg 1250b3307321Smrg# There might be people who depend on the old broken behavior: `$host' 1251b3307321Smrg# used to hold the argument of --host etc. 1252b3307321Smrg# FIXME: To remove some day. 1253b3307321Smrgbuild=$build_alias 1254b3307321Smrghost=$host_alias 1255b3307321Smrgtarget=$target_alias 1256b3307321Smrg 1257b3307321Smrg# FIXME: To remove some day. 1258b3307321Smrgif test "x$host_alias" != x; then 1259b3307321Smrg if test "x$build_alias" = x; then 1260b3307321Smrg cross_compiling=maybe 1261b3307321Smrg elif test "x$build_alias" != "x$host_alias"; then 1262b3307321Smrg cross_compiling=yes 1263b3307321Smrg fi 1264b3307321Smrgfi 1265b3307321Smrg 1266b3307321Smrgac_tool_prefix= 1267b3307321Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1268b3307321Smrg 1269b3307321Smrgtest "$silent" = yes && exec 6>/dev/null 1270b3307321Smrg 1271b3307321Smrg 1272afe13c8eSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 1273afe13c8eSmrgac_ls_di=`ls -di .` && 1274afe13c8eSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 127529cb5710Smrg as_fn_error $? "working directory cannot be determined" 1276afe13c8eSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 127729cb5710Smrg as_fn_error $? "pwd does not report name of working directory" 1278afe13c8eSmrg 1279afe13c8eSmrg 1280b3307321Smrg# Find the source files, if location was not specified. 1281b3307321Smrgif test -z "$srcdir"; then 1282b3307321Smrg ac_srcdir_defaulted=yes 1283afe13c8eSmrg # Try the directory containing this script, then the parent directory. 1284afe13c8eSmrg ac_confdir=`$as_dirname -- "$as_myself" || 1285afe13c8eSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1286afe13c8eSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1287afe13c8eSmrg X"$as_myself" : 'X\(//\)$' \| \ 1288afe13c8eSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 128974b97a6cSmrgprintf "%s\n" X"$as_myself" | 1290afe13c8eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1291afe13c8eSmrg s//\1/ 1292afe13c8eSmrg q 1293afe13c8eSmrg } 1294afe13c8eSmrg /^X\(\/\/\)[^/].*/{ 1295afe13c8eSmrg s//\1/ 1296afe13c8eSmrg q 1297afe13c8eSmrg } 1298afe13c8eSmrg /^X\(\/\/\)$/{ 1299afe13c8eSmrg s//\1/ 1300afe13c8eSmrg q 1301afe13c8eSmrg } 1302afe13c8eSmrg /^X\(\/\).*/{ 1303afe13c8eSmrg s//\1/ 1304afe13c8eSmrg q 1305afe13c8eSmrg } 1306afe13c8eSmrg s/.*/./; q'` 1307b3307321Smrg srcdir=$ac_confdir 1308afe13c8eSmrg if test ! -r "$srcdir/$ac_unique_file"; then 1309b3307321Smrg srcdir=.. 1310b3307321Smrg fi 1311b3307321Smrgelse 1312b3307321Smrg ac_srcdir_defaulted=no 1313b3307321Smrgfi 1314afe13c8eSmrgif test ! -r "$srcdir/$ac_unique_file"; then 1315afe13c8eSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 131629cb5710Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1317b3307321Smrgfi 1318afe13c8eSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1319afe13c8eSmrgac_abs_confdir=`( 132029cb5710Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1321afe13c8eSmrg pwd)` 1322afe13c8eSmrg# When building in place, set srcdir=. 1323afe13c8eSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1324afe13c8eSmrg srcdir=. 1325afe13c8eSmrgfi 1326afe13c8eSmrg# Remove unnecessary trailing slashes from srcdir. 1327afe13c8eSmrg# Double slashes in file names in object file debugging info 1328afe13c8eSmrg# mess up M-x gdb in Emacs. 1329afe13c8eSmrgcase $srcdir in 1330afe13c8eSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1331afe13c8eSmrgesac 1332afe13c8eSmrgfor ac_var in $ac_precious_vars; do 1333afe13c8eSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1334afe13c8eSmrg eval ac_env_${ac_var}_value=\$${ac_var} 1335afe13c8eSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1336afe13c8eSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1337afe13c8eSmrgdone 1338afe13c8eSmrg 1339afe13c8eSmrg# 1340b3307321Smrg# Report the --help message. 1341b3307321Smrg# 1342b3307321Smrgif test "$ac_init_help" = "long"; then 1343b3307321Smrg # Omit some internal or obsolete options to make the list less imposing. 1344b3307321Smrg # This message is too long to be a string in the A/UX 3.1 sh. 1345b3307321Smrg cat <<_ACEOF 13466728f30eSmrg\`configure' configures xwd 1.0.9 to adapt to many kinds of systems. 1347b3307321Smrg 1348b3307321SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1349b3307321Smrg 1350b3307321SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1351b3307321SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1352b3307321Smrg 1353b3307321SmrgDefaults for the options are specified in brackets. 1354b3307321Smrg 1355b3307321SmrgConfiguration: 1356b3307321Smrg -h, --help display this help and exit 1357b3307321Smrg --help=short display options specific to this package 1358b3307321Smrg --help=recursive display the short help of all the included packages 1359b3307321Smrg -V, --version display version information and exit 136029cb5710Smrg -q, --quiet, --silent do not print \`checking ...' messages 1361b3307321Smrg --cache-file=FILE cache test results in FILE [disabled] 1362b3307321Smrg -C, --config-cache alias for \`--cache-file=config.cache' 1363b3307321Smrg -n, --no-create do not create output files 1364b3307321Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1365b3307321Smrg 1366b3307321SmrgInstallation directories: 1367b3307321Smrg --prefix=PREFIX install architecture-independent files in PREFIX 1368afe13c8eSmrg [$ac_default_prefix] 1369b3307321Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1370afe13c8eSmrg [PREFIX] 1371b3307321Smrg 1372b3307321SmrgBy default, \`make install' will install all the files in 1373b3307321Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1374b3307321Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1375b3307321Smrgfor instance \`--prefix=\$HOME'. 1376b3307321Smrg 1377b3307321SmrgFor better control, use the options below. 1378b3307321Smrg 1379b3307321SmrgFine tuning of the installation directories: 1380afe13c8eSmrg --bindir=DIR user executables [EPREFIX/bin] 1381afe13c8eSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1382afe13c8eSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 1383afe13c8eSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1384afe13c8eSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1385afe13c8eSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 138674b97a6cSmrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1387afe13c8eSmrg --libdir=DIR object code libraries [EPREFIX/lib] 1388afe13c8eSmrg --includedir=DIR C header files [PREFIX/include] 1389afe13c8eSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1390afe13c8eSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1391afe13c8eSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1392afe13c8eSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 1393afe13c8eSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1394afe13c8eSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 1395afe13c8eSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/xwd] 1396afe13c8eSmrg --htmldir=DIR html documentation [DOCDIR] 1397afe13c8eSmrg --dvidir=DIR dvi documentation [DOCDIR] 1398afe13c8eSmrg --pdfdir=DIR pdf documentation [DOCDIR] 1399afe13c8eSmrg --psdir=DIR ps documentation [DOCDIR] 1400b3307321Smrg_ACEOF 1401b3307321Smrg 1402b3307321Smrg cat <<\_ACEOF 1403b3307321Smrg 1404b3307321SmrgProgram names: 1405b3307321Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 1406b3307321Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 1407b3307321Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1408b3307321Smrg 1409b3307321SmrgSystem types: 1410b3307321Smrg --build=BUILD configure for building on BUILD [guessed] 1411b3307321Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1412b3307321Smrg_ACEOF 1413b3307321Smrgfi 1414b3307321Smrg 1415b3307321Smrgif test -n "$ac_init_help"; then 1416b3307321Smrg case $ac_init_help in 14176728f30eSmrg short | recursive ) echo "Configuration of xwd 1.0.9:";; 1418b3307321Smrg esac 1419b3307321Smrg cat <<\_ACEOF 1420b3307321Smrg 1421b3307321SmrgOptional Features: 1422afe13c8eSmrg --disable-option-checking ignore unrecognized --enable/--with options 1423b3307321Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1424b3307321Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 142574a3f230Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 142674a3f230Smrg --disable-silent-rules verbose build output (undo: "make V=0") 142774a3f230Smrg --enable-dependency-tracking 142874a3f230Smrg do not reject slow dependency extractors 142974a3f230Smrg --disable-dependency-tracking 143074a3f230Smrg speeds up one-time build 1431320e696bSmrg --disable-selective-werror 1432320e696bSmrg Turn off selective compiler errors. (default: 1433320e696bSmrg enabled) 14345e358ecaSmrg --enable-strict-compilation 14355e358ecaSmrg Enable all warnings from compiler and make them 14365e358ecaSmrg errors (default: disabled) 143774a3f230Smrg 143874a3f230SmrgOptional Packages: 143974a3f230Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 144074a3f230Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 144174a3f230Smrg --without-xkb Disable use of XKB to sound bells (Default is 144274a3f230Smrg with-xkb) 1443b3307321Smrg 1444b3307321SmrgSome influential environment variables: 1445b3307321Smrg CC C compiler command 1446b3307321Smrg CFLAGS C compiler flags 1447b3307321Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1448b3307321Smrg nonstandard directory <lib dir> 1449afe13c8eSmrg LIBS libraries to pass to the linker, e.g. -l<library> 145029cb5710Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1451afe13c8eSmrg you have headers in a nonstandard directory <include dir> 1452b3307321Smrg PKG_CONFIG path to pkg-config utility 145306ef0fecSmrg PKG_CONFIG_PATH 145406ef0fecSmrg directories to add to pkg-config's search path 145506ef0fecSmrg PKG_CONFIG_LIBDIR 145606ef0fecSmrg path overriding pkg-config's built-in search path 1457b3307321Smrg XWD_CFLAGS C compiler flags for XWD, overriding pkg-config 1458b3307321Smrg XWD_LIBS linker flags for XWD, overriding pkg-config 1459b3307321Smrg 1460b3307321SmrgUse these variables to override the choices made by `configure' or to help 1461b3307321Smrgit to find libraries and programs with nonstandard names/locations. 1462b3307321Smrg 146374b97a6cSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xwd/issues>. 1464b3307321Smrg_ACEOF 1465afe13c8eSmrgac_status=$? 1466b3307321Smrgfi 1467b3307321Smrg 1468b3307321Smrgif test "$ac_init_help" = "recursive"; then 1469b3307321Smrg # If there are subdirs, report their specific --help. 1470b3307321Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1471afe13c8eSmrg test -d "$ac_dir" || 1472afe13c8eSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1473afe13c8eSmrg continue 1474b3307321Smrg ac_builddir=. 1475b3307321Smrg 1476afe13c8eSmrgcase "$ac_dir" in 1477afe13c8eSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1478afe13c8eSmrg*) 147974b97a6cSmrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1480afe13c8eSmrg # A ".." for each directory in $ac_dir_suffix. 148174b97a6cSmrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1482afe13c8eSmrg case $ac_top_builddir_sub in 1483afe13c8eSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1484afe13c8eSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1485afe13c8eSmrg esac ;; 1486afe13c8eSmrgesac 1487afe13c8eSmrgac_abs_top_builddir=$ac_pwd 1488afe13c8eSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1489afe13c8eSmrg# for backward compatibility: 1490afe13c8eSmrgac_top_builddir=$ac_top_build_prefix 1491b3307321Smrg 1492b3307321Smrgcase $srcdir in 1493afe13c8eSmrg .) # We are building in place. 1494b3307321Smrg ac_srcdir=. 1495afe13c8eSmrg ac_top_srcdir=$ac_top_builddir_sub 1496afe13c8eSmrg ac_abs_top_srcdir=$ac_pwd ;; 1497afe13c8eSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 1498b3307321Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1499afe13c8eSmrg ac_top_srcdir=$srcdir 1500afe13c8eSmrg ac_abs_top_srcdir=$srcdir ;; 1501afe13c8eSmrg *) # Relative name. 1502afe13c8eSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1503afe13c8eSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1504afe13c8eSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1505b3307321Smrgesac 1506afe13c8eSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1507afe13c8eSmrg 1508afe13c8eSmrg cd "$ac_dir" || { ac_status=$?; continue; } 150974b97a6cSmrg # Check for configure.gnu first; this name is used for a wrapper for 151074b97a6cSmrg # Metaconfig's "Configure" on case-insensitive file systems. 1511afe13c8eSmrg if test -f "$ac_srcdir/configure.gnu"; then 1512afe13c8eSmrg echo && 1513afe13c8eSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1514afe13c8eSmrg elif test -f "$ac_srcdir/configure"; then 1515afe13c8eSmrg echo && 1516afe13c8eSmrg $SHELL "$ac_srcdir/configure" --help=recursive 1517b3307321Smrg else 151874b97a6cSmrg printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1519afe13c8eSmrg fi || ac_status=$? 1520afe13c8eSmrg cd "$ac_pwd" || { ac_status=$?; break; } 1521b3307321Smrg done 1522b3307321Smrgfi 1523b3307321Smrg 1524afe13c8eSmrgtest -n "$ac_init_help" && exit $ac_status 1525b3307321Smrgif $ac_init_version; then 1526b3307321Smrg cat <<\_ACEOF 15276728f30eSmrgxwd configure 1.0.9 152874b97a6cSmrggenerated by GNU Autoconf 2.71 1529b3307321Smrg 153074b97a6cSmrgCopyright (C) 2021 Free Software Foundation, Inc. 1531b3307321SmrgThis configure script is free software; the Free Software Foundation 1532b3307321Smrggives unlimited permission to copy, distribute and modify it. 1533b3307321Smrg_ACEOF 1534afe13c8eSmrg exit 1535b3307321Smrgfi 1536b3307321Smrg 153729cb5710Smrg## ------------------------ ## 153829cb5710Smrg## Autoconf initialization. ## 153929cb5710Smrg## ------------------------ ## 1540b3307321Smrg 154129cb5710Smrg# ac_fn_c_try_compile LINENO 154229cb5710Smrg# -------------------------- 154329cb5710Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 154429cb5710Smrgac_fn_c_try_compile () 1545b3307321Smrg{ 154629cb5710Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 154774b97a6cSmrg rm -f conftest.$ac_objext conftest.beam 154829cb5710Smrg if { { ac_try="$ac_compile" 154929cb5710Smrgcase "(($ac_try" in 155029cb5710Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 155129cb5710Smrg *) ac_try_echo=$ac_try;; 155229cb5710Smrgesac 155329cb5710Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 155474b97a6cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 155529cb5710Smrg (eval "$ac_compile") 2>conftest.err 155629cb5710Smrg ac_status=$? 155729cb5710Smrg if test -s conftest.err; then 155829cb5710Smrg grep -v '^ *+' conftest.err >conftest.er1 155929cb5710Smrg cat conftest.er1 >&5 156029cb5710Smrg mv -f conftest.er1 conftest.err 156129cb5710Smrg fi 156274b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 156329cb5710Smrg test $ac_status = 0; } && { 156429cb5710Smrg test -z "$ac_c_werror_flag" || 156529cb5710Smrg test ! -s conftest.err 156674b97a6cSmrg } && test -s conftest.$ac_objext 156774b97a6cSmrgthen : 156829cb5710Smrg ac_retval=0 156974b97a6cSmrgelse $as_nop 157074b97a6cSmrg printf "%s\n" "$as_me: failed program was:" >&5 157129cb5710Smrgsed 's/^/| /' conftest.$ac_ext >&5 1572b3307321Smrg 157329cb5710Smrg ac_retval=1 157429cb5710Smrgfi 157529cb5710Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 157629cb5710Smrg as_fn_set_status $ac_retval 1577b3307321Smrg 157829cb5710Smrg} # ac_fn_c_try_compile 1579b3307321Smrg 158074b97a6cSmrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 158174b97a6cSmrg# ------------------------------------------------------------------ 158229cb5710Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 158374b97a6cSmrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 158474b97a6cSmrgac_fn_check_decl () 158529cb5710Smrg{ 158629cb5710Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 158729cb5710Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 158874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 158974b97a6cSmrgprintf %s "checking whether $as_decl_name is declared... " >&6; } 159074b97a6cSmrgif eval test \${$3+y} 159174b97a6cSmrgthen : 159274b97a6cSmrg printf %s "(cached) " >&6 159374b97a6cSmrgelse $as_nop 159429cb5710Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 159574b97a6cSmrg eval ac_save_FLAGS=\$$6 159674b97a6cSmrg as_fn_append $6 " $5" 159729cb5710Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 159829cb5710Smrg/* end confdefs.h. */ 159929cb5710Smrg$4 160029cb5710Smrgint 160174b97a6cSmrgmain (void) 160229cb5710Smrg{ 160329cb5710Smrg#ifndef $as_decl_name 160429cb5710Smrg#ifdef __cplusplus 160529cb5710Smrg (void) $as_decl_use; 160629cb5710Smrg#else 160729cb5710Smrg (void) $as_decl_name; 160829cb5710Smrg#endif 160929cb5710Smrg#endif 161029cb5710Smrg 161129cb5710Smrg ; 161229cb5710Smrg return 0; 161329cb5710Smrg} 161429cb5710Smrg_ACEOF 161574b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 161674b97a6cSmrgthen : 161729cb5710Smrg eval "$3=yes" 161874b97a6cSmrgelse $as_nop 161929cb5710Smrg eval "$3=no" 162029cb5710Smrgfi 162174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 162274b97a6cSmrg eval $6=\$ac_save_FLAGS 162329cb5710Smrg 162429cb5710Smrgfi 162574b97a6cSmrgeval ac_res=\$$3 162674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 162774b97a6cSmrgprintf "%s\n" "$ac_res" >&6; } 162829cb5710Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 162929cb5710Smrg 163074b97a6cSmrg} # ac_fn_check_decl 163129cb5710Smrg 163229cb5710Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 163329cb5710Smrg# ------------------------------------------------------- 163429cb5710Smrg# Tests whether HEADER exists and can be compiled using the include files in 163529cb5710Smrg# INCLUDES, setting the cache variable VAR accordingly. 163629cb5710Smrgac_fn_c_check_header_compile () 163729cb5710Smrg{ 163829cb5710Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 163974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 164074b97a6cSmrgprintf %s "checking for $2... " >&6; } 164174b97a6cSmrgif eval test \${$3+y} 164274b97a6cSmrgthen : 164374b97a6cSmrg printf %s "(cached) " >&6 164474b97a6cSmrgelse $as_nop 164529cb5710Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 164629cb5710Smrg/* end confdefs.h. */ 164729cb5710Smrg$4 164829cb5710Smrg#include <$2> 164929cb5710Smrg_ACEOF 165074b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 165174b97a6cSmrgthen : 165229cb5710Smrg eval "$3=yes" 165374b97a6cSmrgelse $as_nop 165429cb5710Smrg eval "$3=no" 165529cb5710Smrgfi 165674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 165729cb5710Smrgfi 165829cb5710Smrgeval ac_res=\$$3 165974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 166074b97a6cSmrgprintf "%s\n" "$ac_res" >&6; } 166129cb5710Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 166229cb5710Smrg 166329cb5710Smrg} # ac_fn_c_check_header_compile 1664320e696bSmrg 1665320e696bSmrg# ac_fn_c_try_link LINENO 1666320e696bSmrg# ----------------------- 1667320e696bSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1668320e696bSmrgac_fn_c_try_link () 1669320e696bSmrg{ 1670320e696bSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 167174b97a6cSmrg rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1672320e696bSmrg if { { ac_try="$ac_link" 1673320e696bSmrgcase "(($ac_try" in 1674320e696bSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1675320e696bSmrg *) ac_try_echo=$ac_try;; 1676320e696bSmrgesac 1677320e696bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 167874b97a6cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 1679320e696bSmrg (eval "$ac_link") 2>conftest.err 1680320e696bSmrg ac_status=$? 1681320e696bSmrg if test -s conftest.err; then 1682320e696bSmrg grep -v '^ *+' conftest.err >conftest.er1 1683320e696bSmrg cat conftest.er1 >&5 1684320e696bSmrg mv -f conftest.er1 conftest.err 1685320e696bSmrg fi 168674b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1687320e696bSmrg test $ac_status = 0; } && { 1688320e696bSmrg test -z "$ac_c_werror_flag" || 1689320e696bSmrg test ! -s conftest.err 1690320e696bSmrg } && test -s conftest$ac_exeext && { 1691320e696bSmrg test "$cross_compiling" = yes || 169206ef0fecSmrg test -x conftest$ac_exeext 169374b97a6cSmrg } 169474b97a6cSmrgthen : 1695320e696bSmrg ac_retval=0 169674b97a6cSmrgelse $as_nop 169774b97a6cSmrg printf "%s\n" "$as_me: failed program was:" >&5 1698320e696bSmrgsed 's/^/| /' conftest.$ac_ext >&5 1699320e696bSmrg 1700320e696bSmrg ac_retval=1 1701320e696bSmrgfi 1702320e696bSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1703320e696bSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1704320e696bSmrg # interfere with the next link command; also delete a directory that is 1705320e696bSmrg # left behind by Apple's compiler. We do this before executing the actions. 1706320e696bSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1707320e696bSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708320e696bSmrg as_fn_set_status $ac_retval 1709320e696bSmrg 1710320e696bSmrg} # ac_fn_c_try_link 171174b97a6cSmrgac_configure_args_raw= 171274b97a6cSmrgfor ac_arg 171374b97a6cSmrgdo 171474b97a6cSmrg case $ac_arg in 171574b97a6cSmrg *\'*) 171674b97a6cSmrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 171774b97a6cSmrg esac 171874b97a6cSmrg as_fn_append ac_configure_args_raw " '$ac_arg'" 171974b97a6cSmrgdone 172074b97a6cSmrg 172174b97a6cSmrgcase $ac_configure_args_raw in 172274b97a6cSmrg *$as_nl*) 172374b97a6cSmrg ac_safe_unquote= ;; 172474b97a6cSmrg *) 172574b97a6cSmrg ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 172674b97a6cSmrg ac_unsafe_a="$ac_unsafe_z#~" 172774b97a6cSmrg ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 172874b97a6cSmrg ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 172974b97a6cSmrgesac 173074b97a6cSmrg 173129cb5710Smrgcat >config.log <<_ACEOF 173229cb5710SmrgThis file contains any messages produced by compilers while 173329cb5710Smrgrunning configure, to aid debugging if configure makes a mistake. 173429cb5710Smrg 17356728f30eSmrgIt was created by xwd $as_me 1.0.9, which was 173674b97a6cSmrggenerated by GNU Autoconf 2.71. Invocation command line was 173729cb5710Smrg 173874b97a6cSmrg $ $0$ac_configure_args_raw 173929cb5710Smrg 174029cb5710Smrg_ACEOF 174129cb5710Smrgexec 5>>config.log 174229cb5710Smrg{ 174329cb5710Smrgcat <<_ASUNAME 174429cb5710Smrg## --------- ## 174529cb5710Smrg## Platform. ## 174629cb5710Smrg## --------- ## 174729cb5710Smrg 174829cb5710Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 174929cb5710Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 175029cb5710Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 175129cb5710Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 175229cb5710Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 175329cb5710Smrg 175429cb5710Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 175529cb5710Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 175629cb5710Smrg 175729cb5710Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 175829cb5710Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 175929cb5710Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 176029cb5710Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 176129cb5710Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 176229cb5710Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 176329cb5710Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 176429cb5710Smrg 176529cb5710Smrg_ASUNAME 176629cb5710Smrg 176729cb5710Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1768b3307321Smrgfor as_dir in $PATH 1769b3307321Smrgdo 1770b3307321Smrg IFS=$as_save_IFS 177174b97a6cSmrg case $as_dir in #((( 177274b97a6cSmrg '') as_dir=./ ;; 177374b97a6cSmrg */) ;; 177474b97a6cSmrg *) as_dir=$as_dir/ ;; 177574b97a6cSmrg esac 177674b97a6cSmrg printf "%s\n" "PATH: $as_dir" 177729cb5710Smrg done 1778afe13c8eSmrgIFS=$as_save_IFS 1779b3307321Smrg 1780b3307321Smrg} >&5 1781b3307321Smrg 1782b3307321Smrgcat >&5 <<_ACEOF 1783b3307321Smrg 1784b3307321Smrg 1785b3307321Smrg## ----------- ## 1786b3307321Smrg## Core tests. ## 1787b3307321Smrg## ----------- ## 1788b3307321Smrg 1789b3307321Smrg_ACEOF 1790b3307321Smrg 1791b3307321Smrg 1792b3307321Smrg# Keep a trace of the command line. 1793b3307321Smrg# Strip out --no-create and --no-recursion so they do not pile up. 1794b3307321Smrg# Strip out --silent because we don't want to record it for future runs. 1795b3307321Smrg# Also quote any args containing shell meta-characters. 1796b3307321Smrg# Make two passes to allow for proper duplicate-argument suppression. 1797b3307321Smrgac_configure_args= 1798b3307321Smrgac_configure_args0= 1799b3307321Smrgac_configure_args1= 1800b3307321Smrgac_must_keep_next=false 1801b3307321Smrgfor ac_pass in 1 2 1802b3307321Smrgdo 1803b3307321Smrg for ac_arg 1804b3307321Smrg do 1805b3307321Smrg case $ac_arg in 1806b3307321Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1807b3307321Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1808b3307321Smrg | -silent | --silent | --silen | --sile | --sil) 1809b3307321Smrg continue ;; 1810afe13c8eSmrg *\'*) 181174b97a6cSmrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1812b3307321Smrg esac 1813b3307321Smrg case $ac_pass in 181429cb5710Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1815b3307321Smrg 2) 181629cb5710Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 1817b3307321Smrg if test $ac_must_keep_next = true; then 1818b3307321Smrg ac_must_keep_next=false # Got value, back to normal. 1819b3307321Smrg else 1820b3307321Smrg case $ac_arg in 1821b3307321Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1822b3307321Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1823b3307321Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1824b3307321Smrg | -with-* | --with-* | -without-* | --without-* | --x) 1825b3307321Smrg case "$ac_configure_args0 " in 1826b3307321Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1827b3307321Smrg esac 1828b3307321Smrg ;; 1829b3307321Smrg -* ) ac_must_keep_next=true ;; 1830b3307321Smrg esac 1831b3307321Smrg fi 183229cb5710Smrg as_fn_append ac_configure_args " '$ac_arg'" 1833b3307321Smrg ;; 1834b3307321Smrg esac 1835b3307321Smrg done 1836b3307321Smrgdone 183729cb5710Smrg{ ac_configure_args0=; unset ac_configure_args0;} 183829cb5710Smrg{ ac_configure_args1=; unset ac_configure_args1;} 1839b3307321Smrg 1840b3307321Smrg# When interrupted or exit'd, cleanup temporary files, and complete 1841b3307321Smrg# config.log. We remove comments because anyway the quotes in there 1842b3307321Smrg# would cause problems or look ugly. 1843afe13c8eSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1844afe13c8eSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1845b3307321Smrgtrap 'exit_status=$? 184674b97a6cSmrg # Sanitize IFS. 184774b97a6cSmrg IFS=" "" $as_nl" 1848b3307321Smrg # Save into config.log some information that might help in debugging. 1849b3307321Smrg { 1850b3307321Smrg echo 1851b3307321Smrg 185274b97a6cSmrg printf "%s\n" "## ---------------- ## 1853b3307321Smrg## Cache variables. ## 185429cb5710Smrg## ---------------- ##" 1855b3307321Smrg echo 1856b3307321Smrg # The following way of writing the cache mishandles newlines in values, 1857afe13c8eSmrg( 1858afe13c8eSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1859afe13c8eSmrg eval ac_val=\$$ac_var 1860afe13c8eSmrg case $ac_val in #( 1861afe13c8eSmrg *${as_nl}*) 1862afe13c8eSmrg case $ac_var in #( 186374b97a6cSmrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 186474b97a6cSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1865afe13c8eSmrg esac 1866afe13c8eSmrg case $ac_var in #( 1867afe13c8eSmrg _ | IFS | as_nl) ;; #( 1868afe13c8eSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 186929cb5710Smrg *) { eval $ac_var=; unset $ac_var;} ;; 1870afe13c8eSmrg esac ;; 1871afe13c8eSmrg esac 1872afe13c8eSmrg done 1873b3307321Smrg (set) 2>&1 | 1874afe13c8eSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1875afe13c8eSmrg *${as_nl}ac_space=\ *) 1876b3307321Smrg sed -n \ 1877afe13c8eSmrg "s/'\''/'\''\\\\'\'''\''/g; 1878afe13c8eSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1879afe13c8eSmrg ;; #( 1880b3307321Smrg *) 1881afe13c8eSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1882b3307321Smrg ;; 1883afe13c8eSmrg esac | 1884afe13c8eSmrg sort 1885afe13c8eSmrg) 1886b3307321Smrg echo 1887b3307321Smrg 188874b97a6cSmrg printf "%s\n" "## ----------------- ## 1889b3307321Smrg## Output variables. ## 189029cb5710Smrg## ----------------- ##" 1891b3307321Smrg echo 1892b3307321Smrg for ac_var in $ac_subst_vars 1893b3307321Smrg do 1894afe13c8eSmrg eval ac_val=\$$ac_var 1895afe13c8eSmrg case $ac_val in 189674b97a6cSmrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1897afe13c8eSmrg esac 189874b97a6cSmrg printf "%s\n" "$ac_var='\''$ac_val'\''" 1899b3307321Smrg done | sort 1900b3307321Smrg echo 1901b3307321Smrg 1902b3307321Smrg if test -n "$ac_subst_files"; then 190374b97a6cSmrg printf "%s\n" "## ------------------- ## 1904afe13c8eSmrg## File substitutions. ## 190529cb5710Smrg## ------------------- ##" 1906b3307321Smrg echo 1907b3307321Smrg for ac_var in $ac_subst_files 1908b3307321Smrg do 1909afe13c8eSmrg eval ac_val=\$$ac_var 1910afe13c8eSmrg case $ac_val in 191174b97a6cSmrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1912afe13c8eSmrg esac 191374b97a6cSmrg printf "%s\n" "$ac_var='\''$ac_val'\''" 1914b3307321Smrg done | sort 1915b3307321Smrg echo 1916b3307321Smrg fi 1917b3307321Smrg 1918b3307321Smrg if test -s confdefs.h; then 191974b97a6cSmrg printf "%s\n" "## ----------- ## 1920b3307321Smrg## confdefs.h. ## 192129cb5710Smrg## ----------- ##" 1922b3307321Smrg echo 1923afe13c8eSmrg cat confdefs.h 1924b3307321Smrg echo 1925b3307321Smrg fi 1926b3307321Smrg test "$ac_signal" != 0 && 192774b97a6cSmrg printf "%s\n" "$as_me: caught signal $ac_signal" 192874b97a6cSmrg printf "%s\n" "$as_me: exit $exit_status" 1929b3307321Smrg } >&5 1930afe13c8eSmrg rm -f core *.core core.conftest.* && 1931afe13c8eSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1932b3307321Smrg exit $exit_status 1933afe13c8eSmrg' 0 1934b3307321Smrgfor ac_signal in 1 2 13 15; do 193529cb5710Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1936b3307321Smrgdone 1937b3307321Smrgac_signal=0 1938b3307321Smrg 1939b3307321Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 1940afe13c8eSmrgrm -f -r conftest* confdefs.h 1941b3307321Smrg 194274b97a6cSmrgprintf "%s\n" "/* confdefs.h */" > confdefs.h 194329cb5710Smrg 1944b3307321Smrg# Predefined preprocessor variables. 1945b3307321Smrg 194674b97a6cSmrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1947b3307321Smrg 194874b97a6cSmrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1949b3307321Smrg 195074b97a6cSmrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1951b3307321Smrg 195274b97a6cSmrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1953b3307321Smrg 195474b97a6cSmrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1955b3307321Smrg 195674b97a6cSmrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 195729cb5710Smrg 1958b3307321Smrg 1959b3307321Smrg# Let the site file select an alternate cache file if it wants to. 1960afe13c8eSmrg# Prefer an explicitly selected file to automatically selected ones. 1961afe13c8eSmrgif test -n "$CONFIG_SITE"; then 196274b97a6cSmrg ac_site_files="$CONFIG_SITE" 1963afe13c8eSmrgelif test "x$prefix" != xNONE; then 196474b97a6cSmrg ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1965afe13c8eSmrgelse 196674b97a6cSmrg ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1967b3307321Smrgfi 196874b97a6cSmrg 196974b97a6cSmrgfor ac_site_file in $ac_site_files 1970afe13c8eSmrgdo 197174b97a6cSmrg case $ac_site_file in #( 197274b97a6cSmrg */*) : 197374b97a6cSmrg ;; #( 197474b97a6cSmrg *) : 197574b97a6cSmrg ac_site_file=./$ac_site_file ;; 197674b97a6cSmrgesac 197774b97a6cSmrg if test -f "$ac_site_file" && test -r "$ac_site_file"; then 197874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 197974b97a6cSmrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1980b3307321Smrg sed 's/^/| /' "$ac_site_file" >&5 198129cb5710Smrg . "$ac_site_file" \ 198274b97a6cSmrg || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 198374b97a6cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 198429cb5710Smrgas_fn_error $? "failed to load site script $ac_site_file 198529cb5710SmrgSee \`config.log' for more details" "$LINENO" 5; } 1986b3307321Smrg fi 1987b3307321Smrgdone 1988b3307321Smrg 1989b3307321Smrgif test -r "$cache_file"; then 199029cb5710Smrg # Some versions of bash will fail to source /dev/null (special files 199129cb5710Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 199229cb5710Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 199374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 199474b97a6cSmrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;} 1995b3307321Smrg case $cache_file in 1996afe13c8eSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 1997afe13c8eSmrg *) . "./$cache_file";; 1998b3307321Smrg esac 1999b3307321Smrg fi 2000b3307321Smrgelse 200174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 200274b97a6cSmrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2003b3307321Smrg >$cache_file 2004b3307321Smrgfi 2005b3307321Smrg 200674b97a6cSmrg# Test code for whether the C compiler supports C89 (global declarations) 200774b97a6cSmrgac_c_conftest_c89_globals=' 200874b97a6cSmrg/* Does the compiler advertise C89 conformance? 200974b97a6cSmrg Do not test the value of __STDC__, because some compilers set it to 0 201074b97a6cSmrg while being otherwise adequately conformant. */ 201174b97a6cSmrg#if !defined __STDC__ 201274b97a6cSmrg# error "Compiler does not advertise C89 conformance" 201374b97a6cSmrg#endif 2014b3307321Smrg 201574b97a6cSmrg#include <stddef.h> 201674b97a6cSmrg#include <stdarg.h> 201774b97a6cSmrgstruct stat; 201874b97a6cSmrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 201974b97a6cSmrgstruct buf { int x; }; 202074b97a6cSmrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int); 202174b97a6cSmrgstatic char *e (p, i) 202274b97a6cSmrg char **p; 202374b97a6cSmrg int i; 202474b97a6cSmrg{ 202574b97a6cSmrg return p[i]; 202674b97a6cSmrg} 202774b97a6cSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 202874b97a6cSmrg{ 202974b97a6cSmrg char *s; 203074b97a6cSmrg va_list v; 203174b97a6cSmrg va_start (v,p); 203274b97a6cSmrg s = g (p, va_arg (v,int)); 203374b97a6cSmrg va_end (v); 203474b97a6cSmrg return s; 203574b97a6cSmrg} 203629cb5710Smrg 203774b97a6cSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 203874b97a6cSmrg function prototypes and stuff, but not \xHH hex character constants. 203974b97a6cSmrg These do not provoke an error unfortunately, instead are silently treated 204074b97a6cSmrg as an "x". The following induces an error, until -std is added to get 204174b97a6cSmrg proper ANSI mode. Curiously \x00 != x always comes out true, for an 204274b97a6cSmrg array size at least. It is necessary to write \x00 == 0 to get something 204374b97a6cSmrg that is true only with -std. */ 204474b97a6cSmrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 204529cb5710Smrg 204674b97a6cSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 204774b97a6cSmrg inside strings and character constants. */ 204874b97a6cSmrg#define FOO(x) '\''x'\'' 204974b97a6cSmrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 205029cb5710Smrg 205174b97a6cSmrgint test (int i, double x); 205274b97a6cSmrgstruct s1 {int (*f) (int a);}; 205374b97a6cSmrgstruct s2 {int (*f) (double a);}; 205474b97a6cSmrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 205574b97a6cSmrg int, int);' 2056b3307321Smrg 205774b97a6cSmrg# Test code for whether the C compiler supports C89 (body of main). 205874b97a6cSmrgac_c_conftest_c89_main=' 205974b97a6cSmrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 206074b97a6cSmrg' 2061afe13c8eSmrg 206274b97a6cSmrg# Test code for whether the C compiler supports C99 (global declarations) 206374b97a6cSmrgac_c_conftest_c99_globals=' 206474b97a6cSmrg// Does the compiler advertise C99 conformance? 206574b97a6cSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 206674b97a6cSmrg# error "Compiler does not advertise C99 conformance" 206774b97a6cSmrg#endif 2068afe13c8eSmrg 206974b97a6cSmrg#include <stdbool.h> 207074b97a6cSmrgextern int puts (const char *); 207174b97a6cSmrgextern int printf (const char *, ...); 207274b97a6cSmrgextern int dprintf (int, const char *, ...); 207374b97a6cSmrgextern void *malloc (size_t); 2074b3307321Smrg 207574b97a6cSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 207674b97a6cSmrg// dprintf is used instead of fprintf to avoid needing to declare 207774b97a6cSmrg// FILE and stderr. 207874b97a6cSmrg#define debug(...) dprintf (2, __VA_ARGS__) 207974b97a6cSmrg#define showlist(...) puts (#__VA_ARGS__) 208074b97a6cSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 208174b97a6cSmrgstatic void 208274b97a6cSmrgtest_varargs_macros (void) 208374b97a6cSmrg{ 208474b97a6cSmrg int x = 1234; 208574b97a6cSmrg int y = 5678; 208674b97a6cSmrg debug ("Flag"); 208774b97a6cSmrg debug ("X = %d\n", x); 208874b97a6cSmrg showlist (The first, second, and third items.); 208974b97a6cSmrg report (x>y, "x is %d but y is %d", x, y); 209074b97a6cSmrg} 209174b97a6cSmrg 209274b97a6cSmrg// Check long long types. 209374b97a6cSmrg#define BIG64 18446744073709551615ull 209474b97a6cSmrg#define BIG32 4294967295ul 209574b97a6cSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 209674b97a6cSmrg#if !BIG_OK 209774b97a6cSmrg #error "your preprocessor is broken" 209874b97a6cSmrg#endif 209974b97a6cSmrg#if BIG_OK 210074b97a6cSmrg#else 210174b97a6cSmrg #error "your preprocessor is broken" 210274b97a6cSmrg#endif 210374b97a6cSmrgstatic long long int bignum = -9223372036854775807LL; 210474b97a6cSmrgstatic unsigned long long int ubignum = BIG64; 210574b97a6cSmrg 210674b97a6cSmrgstruct incomplete_array 210774b97a6cSmrg{ 210874b97a6cSmrg int datasize; 210974b97a6cSmrg double data[]; 211074b97a6cSmrg}; 211174b97a6cSmrg 211274b97a6cSmrgstruct named_init { 211374b97a6cSmrg int number; 211474b97a6cSmrg const wchar_t *name; 211574b97a6cSmrg double average; 211674b97a6cSmrg}; 211774b97a6cSmrg 211874b97a6cSmrgtypedef const char *ccp; 211974b97a6cSmrg 212074b97a6cSmrgstatic inline int 212174b97a6cSmrgtest_restrict (ccp restrict text) 212274b97a6cSmrg{ 212374b97a6cSmrg // See if C++-style comments work. 212474b97a6cSmrg // Iterate through items via the restricted pointer. 212574b97a6cSmrg // Also check for declarations in for loops. 212674b97a6cSmrg for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 212774b97a6cSmrg continue; 212874b97a6cSmrg return 0; 212974b97a6cSmrg} 213074b97a6cSmrg 213174b97a6cSmrg// Check varargs and va_copy. 213274b97a6cSmrgstatic bool 213374b97a6cSmrgtest_varargs (const char *format, ...) 213474b97a6cSmrg{ 213574b97a6cSmrg va_list args; 213674b97a6cSmrg va_start (args, format); 213774b97a6cSmrg va_list args_copy; 213874b97a6cSmrg va_copy (args_copy, args); 213974b97a6cSmrg 214074b97a6cSmrg const char *str = ""; 214174b97a6cSmrg int number = 0; 214274b97a6cSmrg float fnumber = 0; 214374b97a6cSmrg 214474b97a6cSmrg while (*format) 214574b97a6cSmrg { 214674b97a6cSmrg switch (*format++) 214774b97a6cSmrg { 214874b97a6cSmrg case '\''s'\'': // string 214974b97a6cSmrg str = va_arg (args_copy, const char *); 215074b97a6cSmrg break; 215174b97a6cSmrg case '\''d'\'': // int 215274b97a6cSmrg number = va_arg (args_copy, int); 215374b97a6cSmrg break; 215474b97a6cSmrg case '\''f'\'': // float 215574b97a6cSmrg fnumber = va_arg (args_copy, double); 215674b97a6cSmrg break; 215774b97a6cSmrg default: 215874b97a6cSmrg break; 215974b97a6cSmrg } 216074b97a6cSmrg } 216174b97a6cSmrg va_end (args_copy); 216274b97a6cSmrg va_end (args); 216374b97a6cSmrg 216474b97a6cSmrg return *str && number && fnumber; 216574b97a6cSmrg} 216674b97a6cSmrg' 216774b97a6cSmrg 216874b97a6cSmrg# Test code for whether the C compiler supports C99 (body of main). 216974b97a6cSmrgac_c_conftest_c99_main=' 217074b97a6cSmrg // Check bool. 217174b97a6cSmrg _Bool success = false; 217274b97a6cSmrg success |= (argc != 0); 217374b97a6cSmrg 217474b97a6cSmrg // Check restrict. 217574b97a6cSmrg if (test_restrict ("String literal") == 0) 217674b97a6cSmrg success = true; 217774b97a6cSmrg char *restrict newvar = "Another string"; 217874b97a6cSmrg 217974b97a6cSmrg // Check varargs. 218074b97a6cSmrg success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 218174b97a6cSmrg test_varargs_macros (); 218274b97a6cSmrg 218374b97a6cSmrg // Check flexible array members. 218474b97a6cSmrg struct incomplete_array *ia = 218574b97a6cSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 218674b97a6cSmrg ia->datasize = 10; 218774b97a6cSmrg for (int i = 0; i < ia->datasize; ++i) 218874b97a6cSmrg ia->data[i] = i * 1.234; 218974b97a6cSmrg 219074b97a6cSmrg // Check named initializers. 219174b97a6cSmrg struct named_init ni = { 219274b97a6cSmrg .number = 34, 219374b97a6cSmrg .name = L"Test wide string", 219474b97a6cSmrg .average = 543.34343, 219574b97a6cSmrg }; 219674b97a6cSmrg 219774b97a6cSmrg ni.number = 58; 219874b97a6cSmrg 219974b97a6cSmrg int dynamic_array[ni.number]; 220074b97a6cSmrg dynamic_array[0] = argv[0][0]; 220174b97a6cSmrg dynamic_array[ni.number - 1] = 543; 220274b97a6cSmrg 220374b97a6cSmrg // work around unused variable warnings 220474b97a6cSmrg ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 220574b97a6cSmrg || dynamic_array[ni.number - 1] != 543); 220674b97a6cSmrg' 220774b97a6cSmrg 220874b97a6cSmrg# Test code for whether the C compiler supports C11 (global declarations) 220974b97a6cSmrgac_c_conftest_c11_globals=' 221074b97a6cSmrg// Does the compiler advertise C11 conformance? 221174b97a6cSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 221274b97a6cSmrg# error "Compiler does not advertise C11 conformance" 221374b97a6cSmrg#endif 221474b97a6cSmrg 221574b97a6cSmrg// Check _Alignas. 221674b97a6cSmrgchar _Alignas (double) aligned_as_double; 221774b97a6cSmrgchar _Alignas (0) no_special_alignment; 221874b97a6cSmrgextern char aligned_as_int; 221974b97a6cSmrgchar _Alignas (0) _Alignas (int) aligned_as_int; 222074b97a6cSmrg 222174b97a6cSmrg// Check _Alignof. 222274b97a6cSmrgenum 222374b97a6cSmrg{ 222474b97a6cSmrg int_alignment = _Alignof (int), 222574b97a6cSmrg int_array_alignment = _Alignof (int[100]), 222674b97a6cSmrg char_alignment = _Alignof (char) 222774b97a6cSmrg}; 222874b97a6cSmrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 222974b97a6cSmrg 223074b97a6cSmrg// Check _Noreturn. 223174b97a6cSmrgint _Noreturn does_not_return (void) { for (;;) continue; } 223274b97a6cSmrg 223374b97a6cSmrg// Check _Static_assert. 223474b97a6cSmrgstruct test_static_assert 223574b97a6cSmrg{ 223674b97a6cSmrg int x; 223774b97a6cSmrg _Static_assert (sizeof (int) <= sizeof (long int), 223874b97a6cSmrg "_Static_assert does not work in struct"); 223974b97a6cSmrg long int y; 224074b97a6cSmrg}; 224174b97a6cSmrg 224274b97a6cSmrg// Check UTF-8 literals. 224374b97a6cSmrg#define u8 syntax error! 224474b97a6cSmrgchar const utf8_literal[] = u8"happens to be ASCII" "another string"; 224574b97a6cSmrg 224674b97a6cSmrg// Check duplicate typedefs. 224774b97a6cSmrgtypedef long *long_ptr; 224874b97a6cSmrgtypedef long int *long_ptr; 224974b97a6cSmrgtypedef long_ptr long_ptr; 225074b97a6cSmrg 225174b97a6cSmrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 225274b97a6cSmrgstruct anonymous 225374b97a6cSmrg{ 225474b97a6cSmrg union { 225574b97a6cSmrg struct { int i; int j; }; 225674b97a6cSmrg struct { int k; long int l; } w; 225774b97a6cSmrg }; 225874b97a6cSmrg int m; 225974b97a6cSmrg} v1; 226074b97a6cSmrg' 226174b97a6cSmrg 226274b97a6cSmrg# Test code for whether the C compiler supports C11 (body of main). 226374b97a6cSmrgac_c_conftest_c11_main=' 226474b97a6cSmrg _Static_assert ((offsetof (struct anonymous, i) 226574b97a6cSmrg == offsetof (struct anonymous, w.k)), 226674b97a6cSmrg "Anonymous union alignment botch"); 226774b97a6cSmrg v1.i = 2; 226874b97a6cSmrg v1.w.k = 5; 226974b97a6cSmrg ok |= v1.i != 5; 227074b97a6cSmrg' 227174b97a6cSmrg 227274b97a6cSmrg# Test code for whether the C compiler supports C11 (complete). 227374b97a6cSmrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 227474b97a6cSmrg${ac_c_conftest_c99_globals} 227574b97a6cSmrg${ac_c_conftest_c11_globals} 227674b97a6cSmrg 227774b97a6cSmrgint 227874b97a6cSmrgmain (int argc, char **argv) 227974b97a6cSmrg{ 228074b97a6cSmrg int ok = 0; 228174b97a6cSmrg ${ac_c_conftest_c89_main} 228274b97a6cSmrg ${ac_c_conftest_c99_main} 228374b97a6cSmrg ${ac_c_conftest_c11_main} 228474b97a6cSmrg return ok; 228574b97a6cSmrg} 228674b97a6cSmrg" 228774b97a6cSmrg 228874b97a6cSmrg# Test code for whether the C compiler supports C99 (complete). 228974b97a6cSmrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 229074b97a6cSmrg${ac_c_conftest_c99_globals} 229174b97a6cSmrg 229274b97a6cSmrgint 229374b97a6cSmrgmain (int argc, char **argv) 229474b97a6cSmrg{ 229574b97a6cSmrg int ok = 0; 229674b97a6cSmrg ${ac_c_conftest_c89_main} 229774b97a6cSmrg ${ac_c_conftest_c99_main} 229874b97a6cSmrg return ok; 229974b97a6cSmrg} 230074b97a6cSmrg" 230174b97a6cSmrg 230274b97a6cSmrg# Test code for whether the C compiler supports C89 (complete). 230374b97a6cSmrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 230474b97a6cSmrg 230574b97a6cSmrgint 230674b97a6cSmrgmain (int argc, char **argv) 230774b97a6cSmrg{ 230874b97a6cSmrg int ok = 0; 230974b97a6cSmrg ${ac_c_conftest_c89_main} 231074b97a6cSmrg return ok; 231174b97a6cSmrg} 231274b97a6cSmrg" 231374b97a6cSmrg 231474b97a6cSmrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 231574b97a6cSmrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 231674b97a6cSmrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 231774b97a6cSmrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 231874b97a6cSmrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 231974b97a6cSmrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 232074b97a6cSmrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 232174b97a6cSmrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 232274b97a6cSmrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 232374b97a6cSmrg 232474b97a6cSmrg# Auxiliary files required by this configure script. 232574b97a6cSmrgac_aux_files="config.guess config.sub compile missing install-sh" 232674b97a6cSmrg 232774b97a6cSmrg# Locations in which to look for auxiliary files. 232874b97a6cSmrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 232974b97a6cSmrg 233074b97a6cSmrg# Search for a directory containing all of the required auxiliary files, 233174b97a6cSmrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 233274b97a6cSmrg# If we don't find one directory that contains all the files we need, 233374b97a6cSmrg# we report the set of missing files from the *first* directory in 233474b97a6cSmrg# $ac_aux_dir_candidates and give up. 233574b97a6cSmrgac_missing_aux_files="" 233674b97a6cSmrgac_first_candidate=: 233774b97a6cSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 233874b97a6cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 233974b97a6cSmrgas_found=false 234074b97a6cSmrgfor as_dir in $ac_aux_dir_candidates 234174b97a6cSmrgdo 234274b97a6cSmrg IFS=$as_save_IFS 234374b97a6cSmrg case $as_dir in #((( 234474b97a6cSmrg '') as_dir=./ ;; 234574b97a6cSmrg */) ;; 234674b97a6cSmrg *) as_dir=$as_dir/ ;; 234774b97a6cSmrg esac 234874b97a6cSmrg as_found=: 234974b97a6cSmrg 235074b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 235174b97a6cSmrg ac_aux_dir_found=yes 235274b97a6cSmrg ac_install_sh= 235374b97a6cSmrg for ac_aux in $ac_aux_files 235474b97a6cSmrg do 235574b97a6cSmrg # As a special case, if "install-sh" is required, that requirement 235674b97a6cSmrg # can be satisfied by any of "install-sh", "install.sh", or "shtool", 235774b97a6cSmrg # and $ac_install_sh is set appropriately for whichever one is found. 235874b97a6cSmrg if test x"$ac_aux" = x"install-sh" 235974b97a6cSmrg then 236074b97a6cSmrg if test -f "${as_dir}install-sh"; then 236174b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 236274b97a6cSmrg ac_install_sh="${as_dir}install-sh -c" 236374b97a6cSmrg elif test -f "${as_dir}install.sh"; then 236474b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 236574b97a6cSmrg ac_install_sh="${as_dir}install.sh -c" 236674b97a6cSmrg elif test -f "${as_dir}shtool"; then 236774b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 236874b97a6cSmrg ac_install_sh="${as_dir}shtool install -c" 236974b97a6cSmrg else 237074b97a6cSmrg ac_aux_dir_found=no 237174b97a6cSmrg if $ac_first_candidate; then 237274b97a6cSmrg ac_missing_aux_files="${ac_missing_aux_files} install-sh" 237374b97a6cSmrg else 237474b97a6cSmrg break 237574b97a6cSmrg fi 237674b97a6cSmrg fi 237774b97a6cSmrg else 237874b97a6cSmrg if test -f "${as_dir}${ac_aux}"; then 237974b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 238074b97a6cSmrg else 238174b97a6cSmrg ac_aux_dir_found=no 238274b97a6cSmrg if $ac_first_candidate; then 238374b97a6cSmrg ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 238474b97a6cSmrg else 238574b97a6cSmrg break 238674b97a6cSmrg fi 238774b97a6cSmrg fi 238874b97a6cSmrg fi 238974b97a6cSmrg done 239074b97a6cSmrg if test "$ac_aux_dir_found" = yes; then 239174b97a6cSmrg ac_aux_dir="$as_dir" 239274b97a6cSmrg break 239374b97a6cSmrg fi 239474b97a6cSmrg ac_first_candidate=false 239574b97a6cSmrg 239674b97a6cSmrg as_found=false 239774b97a6cSmrgdone 239874b97a6cSmrgIFS=$as_save_IFS 239974b97a6cSmrgif $as_found 240074b97a6cSmrgthen : 240174b97a6cSmrg 240274b97a6cSmrgelse $as_nop 240374b97a6cSmrg as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 240474b97a6cSmrgfi 240574b97a6cSmrg 240674b97a6cSmrg 240774b97a6cSmrg# These three variables are undocumented and unsupported, 240874b97a6cSmrg# and are intended to be withdrawn in a future Autoconf release. 240974b97a6cSmrg# They can cause serious problems if a builder's source tree is in a directory 241074b97a6cSmrg# whose full name contains unusual characters. 241174b97a6cSmrgif test -f "${ac_aux_dir}config.guess"; then 241274b97a6cSmrg ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 241374b97a6cSmrgfi 241474b97a6cSmrgif test -f "${ac_aux_dir}config.sub"; then 241574b97a6cSmrg ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 241674b97a6cSmrgfi 241774b97a6cSmrgif test -f "$ac_aux_dir/configure"; then 241874b97a6cSmrg ac_configure="$SHELL ${ac_aux_dir}configure" 241974b97a6cSmrgfi 242074b97a6cSmrg 242174b97a6cSmrg# Check that the precious variables saved in the cache have kept the same 242274b97a6cSmrg# value. 242374b97a6cSmrgac_cache_corrupted=false 242474b97a6cSmrgfor ac_var in $ac_precious_vars; do 242574b97a6cSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 242674b97a6cSmrg eval ac_new_set=\$ac_env_${ac_var}_set 242774b97a6cSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 242874b97a6cSmrg eval ac_new_val=\$ac_env_${ac_var}_value 242974b97a6cSmrg case $ac_old_set,$ac_new_set in 243074b97a6cSmrg set,) 243174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 243274b97a6cSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 243374b97a6cSmrg ac_cache_corrupted=: ;; 243474b97a6cSmrg ,set) 243574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 243674b97a6cSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 243774b97a6cSmrg ac_cache_corrupted=: ;; 243874b97a6cSmrg ,);; 243974b97a6cSmrg *) 244074b97a6cSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 244174b97a6cSmrg # differences in whitespace do not lead to failure. 244274b97a6cSmrg ac_old_val_w=`echo x $ac_old_val` 244374b97a6cSmrg ac_new_val_w=`echo x $ac_new_val` 244474b97a6cSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 244574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 244674b97a6cSmrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 244774b97a6cSmrg ac_cache_corrupted=: 244874b97a6cSmrg else 244974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 245074b97a6cSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 245174b97a6cSmrg eval $ac_var=\$ac_old_val 245274b97a6cSmrg fi 245374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 245474b97a6cSmrgprintf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 245574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 245674b97a6cSmrgprintf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 245774b97a6cSmrg fi;; 245874b97a6cSmrg esac 245974b97a6cSmrg # Pass precious variables to config.status. 246074b97a6cSmrg if test "$ac_new_set" = set; then 246174b97a6cSmrg case $ac_new_val in 246274b97a6cSmrg *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 246374b97a6cSmrg *) ac_arg=$ac_var=$ac_new_val ;; 246474b97a6cSmrg esac 246574b97a6cSmrg case " $ac_configure_args " in 246674b97a6cSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 246774b97a6cSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 246874b97a6cSmrg esac 246974b97a6cSmrg fi 247074b97a6cSmrgdone 247174b97a6cSmrgif $ac_cache_corrupted; then 247274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 247374b97a6cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 247474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 247574b97a6cSmrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 247674b97a6cSmrg as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 247774b97a6cSmrg and start over" "$LINENO" 5 247874b97a6cSmrgfi 247974b97a6cSmrg## -------------------- ## 248074b97a6cSmrg## Main body of script. ## 248174b97a6cSmrg## -------------------- ## 248274b97a6cSmrg 248374b97a6cSmrgac_ext=c 248474b97a6cSmrgac_cpp='$CPP $CPPFLAGS' 248574b97a6cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 248674b97a6cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 248774b97a6cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 248874b97a6cSmrg 248974b97a6cSmrg 249074b97a6cSmrg 249174b97a6cSmrgac_config_headers="$ac_config_headers config.h" 249274b97a6cSmrg 249374b97a6cSmrg 249474b97a6cSmrg# Initialize Automake 249574b97a6cSmrgam__api_version='1.16' 249674b97a6cSmrg 249774b97a6cSmrg 249874b97a6cSmrg 249974b97a6cSmrg # Find a good install program. We prefer a C program (faster), 250074b97a6cSmrg# so one script is as good as another. But avoid the broken or 250174b97a6cSmrg# incompatible versions: 250274b97a6cSmrg# SysV /etc/install, /usr/sbin/install 250374b97a6cSmrg# SunOS /usr/etc/install 250474b97a6cSmrg# IRIX /sbin/install 250574b97a6cSmrg# AIX /bin/install 2506b3307321Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2507b3307321Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2508b3307321Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2509b3307321Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2510b3307321Smrg# OS/2's system install, which has a completely different semantic 2511b3307321Smrg# ./install, which can be erroneously created by make from ./install.sh. 2512afe13c8eSmrg# Reject install programs that cannot install multiple files. 251374b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 251474b97a6cSmrgprintf %s "checking for a BSD-compatible install... " >&6; } 2515b3307321Smrgif test -z "$INSTALL"; then 251674b97a6cSmrgif test ${ac_cv_path_install+y} 251774b97a6cSmrgthen : 251874b97a6cSmrg printf %s "(cached) " >&6 251974b97a6cSmrgelse $as_nop 2520b3307321Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2521b3307321Smrgfor as_dir in $PATH 2522b3307321Smrgdo 2523b3307321Smrg IFS=$as_save_IFS 252474b97a6cSmrg case $as_dir in #((( 252574b97a6cSmrg '') as_dir=./ ;; 252674b97a6cSmrg */) ;; 252774b97a6cSmrg *) as_dir=$as_dir/ ;; 252874b97a6cSmrg esac 252974b97a6cSmrg # Account for fact that we put trailing slashes in our PATH walk. 253074b97a6cSmrgcase $as_dir in #(( 253174b97a6cSmrg ./ | /[cC]/* | \ 2532b3307321Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 253329cb5710Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2534b3307321Smrg /usr/ucb/* ) ;; 2535b3307321Smrg *) 2536b3307321Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 2537b3307321Smrg # Don't use installbsd from OSF since it installs stuff as root 2538b3307321Smrg # by default. 2539b3307321Smrg for ac_prog in ginstall scoinst install; do 2540b3307321Smrg for ac_exec_ext in '' $ac_executable_extensions; do 254174b97a6cSmrg if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2542b3307321Smrg if test $ac_prog = install && 254374b97a6cSmrg grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2544b3307321Smrg # AIX install. It has an incompatible calling convention. 2545b3307321Smrg : 2546b3307321Smrg elif test $ac_prog = install && 254774b97a6cSmrg grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2548b3307321Smrg # program-specific install script used by HP pwplus--don't use. 2549b3307321Smrg : 2550b3307321Smrg else 2551afe13c8eSmrg rm -rf conftest.one conftest.two conftest.dir 2552afe13c8eSmrg echo one > conftest.one 2553afe13c8eSmrg echo two > conftest.two 2554afe13c8eSmrg mkdir conftest.dir 255574b97a6cSmrg if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2556afe13c8eSmrg test -s conftest.one && test -s conftest.two && 2557afe13c8eSmrg test -s conftest.dir/conftest.one && 2558afe13c8eSmrg test -s conftest.dir/conftest.two 2559afe13c8eSmrg then 256074b97a6cSmrg ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2561afe13c8eSmrg break 3 2562afe13c8eSmrg fi 2563b3307321Smrg fi 2564b3307321Smrg fi 2565b3307321Smrg done 2566b3307321Smrg done 2567b3307321Smrg ;; 2568b3307321Smrgesac 2569afe13c8eSmrg 257029cb5710Smrg done 2571afe13c8eSmrgIFS=$as_save_IFS 2572b3307321Smrg 2573afe13c8eSmrgrm -rf conftest.one conftest.two conftest.dir 2574b3307321Smrg 2575b3307321Smrgfi 257674b97a6cSmrg if test ${ac_cv_path_install+y}; then 2577b3307321Smrg INSTALL=$ac_cv_path_install 2578b3307321Smrg else 2579afe13c8eSmrg # As a last resort, use the slow shell script. Don't cache a 2580afe13c8eSmrg # value for INSTALL within a source directory, because that will 2581b3307321Smrg # break other packages using the cache if that directory is 2582afe13c8eSmrg # removed, or if the value is a relative name. 2583b3307321Smrg INSTALL=$ac_install_sh 2584b3307321Smrg fi 2585b3307321Smrgfi 258674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 258774b97a6cSmrgprintf "%s\n" "$INSTALL" >&6; } 2588b3307321Smrg 2589b3307321Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2590b3307321Smrg# It thinks the first close brace ends the variable substitution. 2591b3307321Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2592b3307321Smrg 2593b3307321Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2594b3307321Smrg 2595b3307321Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2596b3307321Smrg 259774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 259874b97a6cSmrgprintf %s "checking whether build environment is sane... " >&6; } 25995e358ecaSmrg# Reject unsafe characters in $srcdir or the absolute working directory 26005e358ecaSmrg# name. Accept space and tab only in the latter. 26015e358ecaSmrgam_lf=' 26025e358ecaSmrg' 26035e358ecaSmrgcase `pwd` in 26045e358ecaSmrg *[\\\"\#\$\&\'\`$am_lf]*) 260529cb5710Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 26065e358ecaSmrgesac 26075e358ecaSmrgcase $srcdir in 26085e358ecaSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 260974a3f230Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 26105e358ecaSmrgesac 26115e358ecaSmrg 261274a3f230Smrg# Do 'set' in a subshell so we don't clobber the current shell's 2613b3307321Smrg# arguments. Must try -L first in case configure is actually a 2614b3307321Smrg# symlink; some systems play weird games with the mod time of symlinks 2615b3307321Smrg# (eg FreeBSD returns the mod time of the symlink's containing 2616b3307321Smrg# directory). 2617b3307321Smrgif ( 261874a3f230Smrg am_has_slept=no 261974a3f230Smrg for am_try in 1 2; do 262074a3f230Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 262174a3f230Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 262274a3f230Smrg if test "$*" = "X"; then 262374a3f230Smrg # -L didn't work. 262474a3f230Smrg set X `ls -t "$srcdir/configure" conftest.file` 262574a3f230Smrg fi 262674a3f230Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 262774a3f230Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 262874a3f230Smrg 262974a3f230Smrg # If neither matched, then we have a broken ls. This can happen 263074a3f230Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 263174a3f230Smrg # broken ls alias from the environment. This has actually 263274a3f230Smrg # happened. Such a system could not be considered "sane". 263374a3f230Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 263474a3f230Smrg alias in your environment" "$LINENO" 5 263574a3f230Smrg fi 263674a3f230Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 263774a3f230Smrg break 263874a3f230Smrg fi 263974a3f230Smrg # Just in case. 264074a3f230Smrg sleep 1 264174a3f230Smrg am_has_slept=yes 264274a3f230Smrg done 2643b3307321Smrg test "$2" = conftest.file 2644b3307321Smrg ) 2645b3307321Smrgthen 2646b3307321Smrg # Ok. 2647b3307321Smrg : 2648b3307321Smrgelse 264929cb5710Smrg as_fn_error $? "newly created file is older than distributed files! 265029cb5710SmrgCheck your system clock" "$LINENO" 5 2651b3307321Smrgfi 265274b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 265374b97a6cSmrgprintf "%s\n" "yes" >&6; } 265474a3f230Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 265574a3f230Smrg# generated files are strictly newer. 265674a3f230Smrgam_sleep_pid= 265774a3f230Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 265874a3f230Smrg ( sleep 1 ) & 265974a3f230Smrg am_sleep_pid=$! 266074a3f230Smrgfi 266174a3f230Smrg 266274a3f230Smrgrm -f conftest.file 266374a3f230Smrg 2664b3307321Smrgtest "$program_prefix" != NONE && 2665afe13c8eSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2666b3307321Smrg# Use a double $ so make ignores it. 2667b3307321Smrgtest "$program_suffix" != NONE && 2668afe13c8eSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2669afe13c8eSmrg# Double any \ or $. 2670b3307321Smrg# By default was `s,x,x', remove it if useless. 2671afe13c8eSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 267274b97a6cSmrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 267374b97a6cSmrg 2674b3307321Smrg 267506ef0fecSmrg# Expand $ac_aux_dir to an absolute path. 267606ef0fecSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 2677b3307321Smrg 267874b97a6cSmrg 267974b97a6cSmrg if test x"${MISSING+set}" != xset; then 268074b97a6cSmrg MISSING="\${SHELL} '$am_aux_dir/missing'" 26815e358ecaSmrgfi 2682b3307321Smrg# Use eval to expand $SHELL 268374a3f230Smrgif eval "$MISSING --is-lightweight"; then 268474a3f230Smrg am_missing_run="$MISSING " 2685b3307321Smrgelse 2686b3307321Smrg am_missing_run= 268774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 268874b97a6cSmrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2689b3307321Smrgfi 2690b3307321Smrg 269106ef0fecSmrgif test x"${install_sh+set}" != xset; then 26925e358ecaSmrg case $am_aux_dir in 26935e358ecaSmrg *\ * | *\ *) 26945e358ecaSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 26955e358ecaSmrg *) 26965e358ecaSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 26975e358ecaSmrg esac 26985e358ecaSmrgfi 26995e358ecaSmrg 270074a3f230Smrg# Installed binaries are usually stripped using 'strip' when the user 270174a3f230Smrg# run "make install-strip". However 'strip' might not be the right 27025e358ecaSmrg# tool to use in cross-compilation environments, therefore Automake 270374a3f230Smrg# will honor the 'STRIP' environment variable to overrule this program. 27045e358ecaSmrgif test "$cross_compiling" != no; then 27055e358ecaSmrg if test -n "$ac_tool_prefix"; then 27065e358ecaSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 27075e358ecaSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 270874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 270974b97a6cSmrgprintf %s "checking for $ac_word... " >&6; } 271074b97a6cSmrgif test ${ac_cv_prog_STRIP+y} 271174b97a6cSmrgthen : 271274b97a6cSmrg printf %s "(cached) " >&6 271374b97a6cSmrgelse $as_nop 27145e358ecaSmrg if test -n "$STRIP"; then 27155e358ecaSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 27165e358ecaSmrgelse 27175e358ecaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27185e358ecaSmrgfor as_dir in $PATH 2719afe13c8eSmrgdo 2720afe13c8eSmrg IFS=$as_save_IFS 272174b97a6cSmrg case $as_dir in #((( 272274b97a6cSmrg '') as_dir=./ ;; 272374b97a6cSmrg */) ;; 272474b97a6cSmrg *) as_dir=$as_dir/ ;; 272574b97a6cSmrg esac 272629cb5710Smrg for ac_exec_ext in '' $ac_executable_extensions; do 272774b97a6cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27285e358ecaSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 272974b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27305e358ecaSmrg break 2 27315e358ecaSmrg fi 27325e358ecaSmrgdone 273329cb5710Smrg done 27345e358ecaSmrgIFS=$as_save_IFS 27355e358ecaSmrg 27365e358ecaSmrgfi 27375e358ecaSmrgfi 27385e358ecaSmrgSTRIP=$ac_cv_prog_STRIP 27395e358ecaSmrgif test -n "$STRIP"; then 274074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 274174b97a6cSmrgprintf "%s\n" "$STRIP" >&6; } 27425e358ecaSmrgelse 274374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 274474b97a6cSmrgprintf "%s\n" "no" >&6; } 27455e358ecaSmrgfi 27465e358ecaSmrg 27475e358ecaSmrg 27485e358ecaSmrgfi 27495e358ecaSmrgif test -z "$ac_cv_prog_STRIP"; then 27505e358ecaSmrg ac_ct_STRIP=$STRIP 27515e358ecaSmrg # Extract the first word of "strip", so it can be a program name with args. 27525e358ecaSmrgset dummy strip; ac_word=$2 275374b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 275474b97a6cSmrgprintf %s "checking for $ac_word... " >&6; } 275574b97a6cSmrgif test ${ac_cv_prog_ac_ct_STRIP+y} 275674b97a6cSmrgthen : 275774b97a6cSmrg printf %s "(cached) " >&6 275874b97a6cSmrgelse $as_nop 27595e358ecaSmrg if test -n "$ac_ct_STRIP"; then 27605e358ecaSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 27615e358ecaSmrgelse 27625e358ecaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27635e358ecaSmrgfor as_dir in $PATH 27645e358ecaSmrgdo 27655e358ecaSmrg IFS=$as_save_IFS 276674b97a6cSmrg case $as_dir in #((( 276774b97a6cSmrg '') as_dir=./ ;; 276874b97a6cSmrg */) ;; 276974b97a6cSmrg *) as_dir=$as_dir/ ;; 277074b97a6cSmrg esac 277129cb5710Smrg for ac_exec_ext in '' $ac_executable_extensions; do 277274b97a6cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27735e358ecaSmrg ac_cv_prog_ac_ct_STRIP="strip" 277474b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27755e358ecaSmrg break 2 27765e358ecaSmrg fi 27775e358ecaSmrgdone 277829cb5710Smrg done 27795e358ecaSmrgIFS=$as_save_IFS 27805e358ecaSmrg 27815e358ecaSmrgfi 27825e358ecaSmrgfi 27835e358ecaSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 27845e358ecaSmrgif test -n "$ac_ct_STRIP"; then 278574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 278674b97a6cSmrgprintf "%s\n" "$ac_ct_STRIP" >&6; } 27875e358ecaSmrgelse 278874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 278974b97a6cSmrgprintf "%s\n" "no" >&6; } 27905e358ecaSmrgfi 27915e358ecaSmrg 27925e358ecaSmrg if test "x$ac_ct_STRIP" = x; then 27935e358ecaSmrg STRIP=":" 27945e358ecaSmrg else 27955e358ecaSmrg case $cross_compiling:$ac_tool_warned in 27965e358ecaSmrgyes:) 279774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 279874b97a6cSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27995e358ecaSmrgac_tool_warned=yes ;; 28005e358ecaSmrgesac 28015e358ecaSmrg STRIP=$ac_ct_STRIP 28025e358ecaSmrg fi 28035e358ecaSmrgelse 28045e358ecaSmrg STRIP="$ac_cv_prog_STRIP" 28055e358ecaSmrgfi 28065e358ecaSmrg 28075e358ecaSmrgfi 28085e358ecaSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 28095e358ecaSmrg 281074b97a6cSmrg 281174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 281274b97a6cSmrgprintf %s "checking for a race-free mkdir -p... " >&6; } 28135e358ecaSmrgif test -z "$MKDIR_P"; then 281474b97a6cSmrg if test ${ac_cv_path_mkdir+y} 281574b97a6cSmrgthen : 281674b97a6cSmrg printf %s "(cached) " >&6 281774b97a6cSmrgelse $as_nop 28185e358ecaSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28195e358ecaSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 28205e358ecaSmrgdo 28215e358ecaSmrg IFS=$as_save_IFS 282274b97a6cSmrg case $as_dir in #((( 282374b97a6cSmrg '') as_dir=./ ;; 282474b97a6cSmrg */) ;; 282574b97a6cSmrg *) as_dir=$as_dir/ ;; 282674b97a6cSmrg esac 282729cb5710Smrg for ac_prog in mkdir gmkdir; do 28285e358ecaSmrg for ac_exec_ext in '' $ac_executable_extensions; do 282974b97a6cSmrg as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 283074b97a6cSmrg case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 283174b97a6cSmrg 'mkdir ('*'coreutils) '* | \ 283274b97a6cSmrg 'BusyBox '* | \ 28335e358ecaSmrg 'mkdir (fileutils) '4.1*) 283474b97a6cSmrg ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 28355e358ecaSmrg break 3;; 28365e358ecaSmrg esac 28375e358ecaSmrg done 2838afe13c8eSmrg done 283929cb5710Smrg done 2840afe13c8eSmrgIFS=$as_save_IFS 2841afe13c8eSmrg 2842afe13c8eSmrgfi 2843afe13c8eSmrg 284429cb5710Smrg test -d ./--version && rmdir ./--version 284574b97a6cSmrg if test ${ac_cv_path_mkdir+y}; then 2846afe13c8eSmrg MKDIR_P="$ac_cv_path_mkdir -p" 2847afe13c8eSmrg else 2848afe13c8eSmrg # As a last resort, use the slow shell script. Don't cache a 2849afe13c8eSmrg # value for MKDIR_P within a source directory, because that will 2850afe13c8eSmrg # break other packages using the cache if that directory is 2851afe13c8eSmrg # removed, or if the value is a relative name. 2852afe13c8eSmrg MKDIR_P="$ac_install_sh -d" 2853afe13c8eSmrg fi 2854afe13c8eSmrgfi 285574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 285674b97a6cSmrgprintf "%s\n" "$MKDIR_P" >&6; } 2857afe13c8eSmrg 2858b3307321Smrgfor ac_prog in gawk mawk nawk awk 2859b3307321Smrgdo 2860b3307321Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2861b3307321Smrgset dummy $ac_prog; ac_word=$2 286274b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 286374b97a6cSmrgprintf %s "checking for $ac_word... " >&6; } 286474b97a6cSmrgif test ${ac_cv_prog_AWK+y} 286574b97a6cSmrgthen : 286674b97a6cSmrg printf %s "(cached) " >&6 286774b97a6cSmrgelse $as_nop 2868b3307321Smrg if test -n "$AWK"; then 2869b3307321Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2870b3307321Smrgelse 2871b3307321Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2872b3307321Smrgfor as_dir in $PATH 2873b3307321Smrgdo 2874b3307321Smrg IFS=$as_save_IFS 287574b97a6cSmrg case $as_dir in #((( 287674b97a6cSmrg '') as_dir=./ ;; 287774b97a6cSmrg */) ;; 287874b97a6cSmrg *) as_dir=$as_dir/ ;; 287974b97a6cSmrg esac 288029cb5710Smrg for ac_exec_ext in '' $ac_executable_extensions; do 288174b97a6cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2882b3307321Smrg ac_cv_prog_AWK="$ac_prog" 288374b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2884b3307321Smrg break 2 2885b3307321Smrg fi 2886b3307321Smrgdone 288729cb5710Smrg done 2888afe13c8eSmrgIFS=$as_save_IFS 2889b3307321Smrg 2890b3307321Smrgfi 2891b3307321Smrgfi 2892b3307321SmrgAWK=$ac_cv_prog_AWK 2893b3307321Smrgif test -n "$AWK"; then 289474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 289574b97a6cSmrgprintf "%s\n" "$AWK" >&6; } 2896b3307321Smrgelse 289774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 289874b97a6cSmrgprintf "%s\n" "no" >&6; } 2899b3307321Smrgfi 2900b3307321Smrg 2901afe13c8eSmrg 2902b3307321Smrg test -n "$AWK" && break 2903b3307321Smrgdone 2904b3307321Smrg 290574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 290674b97a6cSmrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2907afe13c8eSmrgset x ${MAKE-make} 290874b97a6cSmrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 290974b97a6cSmrgif eval test \${ac_cv_prog_make_${ac_make}_set+y} 291074b97a6cSmrgthen : 291174b97a6cSmrg printf %s "(cached) " >&6 291274b97a6cSmrgelse $as_nop 2913b3307321Smrg cat >conftest.make <<\_ACEOF 2914afe13c8eSmrgSHELL = /bin/sh 2915b3307321Smrgall: 2916afe13c8eSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2917b3307321Smrg_ACEOF 291829cb5710Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2919afe13c8eSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2920afe13c8eSmrg *@@@%%%=?*=@@@%%%*) 2921afe13c8eSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2922afe13c8eSmrg *) 2923afe13c8eSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 2924afe13c8eSmrgesac 2925b3307321Smrgrm -f conftest.make 2926b3307321Smrgfi 2927afe13c8eSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 292874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 292974b97a6cSmrgprintf "%s\n" "yes" >&6; } 2930b3307321Smrg SET_MAKE= 2931b3307321Smrgelse 293274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 293374b97a6cSmrgprintf "%s\n" "no" >&6; } 2934b3307321Smrg SET_MAKE="MAKE=${MAKE-make}" 2935b3307321Smrgfi 2936b3307321Smrg 2937b3307321Smrgrm -rf .tst 2>/dev/null 2938b3307321Smrgmkdir .tst 2>/dev/null 2939b3307321Smrgif test -d .tst; then 2940b3307321Smrg am__leading_dot=. 2941b3307321Smrgelse 2942b3307321Smrg am__leading_dot=_ 2943b3307321Smrgfi 2944b3307321Smrgrmdir .tst 2>/dev/null 2945b3307321Smrg 294674a3f230Smrg# Check whether --enable-silent-rules was given. 294774b97a6cSmrgif test ${enable_silent_rules+y} 294874b97a6cSmrgthen : 294974a3f230Smrg enableval=$enable_silent_rules; 295074a3f230Smrgfi 295174a3f230Smrg 295274a3f230Smrgcase $enable_silent_rules in # ((( 295374a3f230Smrg yes) AM_DEFAULT_VERBOSITY=0;; 295474a3f230Smrg no) AM_DEFAULT_VERBOSITY=1;; 295574a3f230Smrg *) AM_DEFAULT_VERBOSITY=1;; 295674a3f230Smrgesac 295774a3f230Smrgam_make=${MAKE-make} 295874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 295974b97a6cSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 296074b97a6cSmrgif test ${am_cv_make_support_nested_variables+y} 296174b97a6cSmrgthen : 296274b97a6cSmrg printf %s "(cached) " >&6 296374b97a6cSmrgelse $as_nop 296474b97a6cSmrg if printf "%s\n" 'TRUE=$(BAR$(V)) 296574a3f230SmrgBAR0=false 296674a3f230SmrgBAR1=true 296774a3f230SmrgV=1 296874a3f230Smrgam__doit: 296974a3f230Smrg @$(TRUE) 297074a3f230Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 297174a3f230Smrg am_cv_make_support_nested_variables=yes 297274a3f230Smrgelse 297374a3f230Smrg am_cv_make_support_nested_variables=no 297474a3f230Smrgfi 297574a3f230Smrgfi 297674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 297774b97a6cSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 297874a3f230Smrgif test $am_cv_make_support_nested_variables = yes; then 297974a3f230Smrg AM_V='$(V)' 298074a3f230Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 298174a3f230Smrgelse 298274a3f230Smrg AM_V=$AM_DEFAULT_VERBOSITY 298374a3f230Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 298474a3f230Smrgfi 298574a3f230SmrgAM_BACKSLASH='\' 298674a3f230Smrg 2987afe13c8eSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2988afe13c8eSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2989afe13c8eSmrg # is not polluted with repeated "-I." 2990afe13c8eSmrg am__isrc=' -I$(srcdir)' 2991afe13c8eSmrg # test to see if srcdir already configured 2992afe13c8eSmrg if test -f $srcdir/config.status; then 299329cb5710Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2994afe13c8eSmrg fi 2995b3307321Smrgfi 2996b3307321Smrg 2997b3307321Smrg# test whether we have cygpath 2998b3307321Smrgif test -z "$CYGPATH_W"; then 2999b3307321Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 3000b3307321Smrg CYGPATH_W='cygpath -w' 3001b3307321Smrg else 3002b3307321Smrg CYGPATH_W=echo 3003b3307321Smrg fi 3004b3307321Smrgfi 3005b3307321Smrg 3006b3307321Smrg 3007b3307321Smrg# Define the identity of the package. 3008b3307321Smrg PACKAGE='xwd' 30096728f30eSmrg VERSION='1.0.9' 3010b3307321Smrg 3011b3307321Smrg 301274b97a6cSmrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3013b3307321Smrg 3014b3307321Smrg 301574b97a6cSmrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3016b3307321Smrg 3017b3307321Smrg# Some tools Automake needs. 3018b3307321Smrg 3019b3307321SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3020b3307321Smrg 3021b3307321Smrg 3022b3307321SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3023b3307321Smrg 3024b3307321Smrg 3025b3307321SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3026b3307321Smrg 3027b3307321Smrg 3028b3307321SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3029b3307321Smrg 3030b3307321Smrg 3031b3307321SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3032b3307321Smrg 303374a3f230Smrg# For better backward compatibility. To be removed once Automake 1.9.x 303474a3f230Smrg# dies out for good. For more background, see: 303574b97a6cSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 303674b97a6cSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 303774a3f230Smrgmkdir_p='$(MKDIR_P)' 303874a3f230Smrg 303906ef0fecSmrg# We need awk for the "check" target (and possibly the TAP driver). The 304006ef0fecSmrg# system "awk" is bad on some platforms. 304174a3f230Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 304274a3f230Smrg# in the wild :-( We should find a proper way to deprecate it ... 304374a3f230SmrgAMTAR='$${TAR-tar}' 304474a3f230Smrg 304574a3f230Smrg 304674a3f230Smrg# We'll loop over all known methods to create a tar archive until one works. 304774a3f230Smrg_am_tools='gnutar pax cpio none' 304874a3f230Smrg 304974a3f230Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 305074a3f230Smrg 3051afe13c8eSmrg 3052b3307321Smrg 3053b3307321Smrg 3054b3307321Smrg 305574b97a6cSmrg# Variables for tags utilities; see am/tags.am 305674b97a6cSmrgif test -z "$CTAGS"; then 305774b97a6cSmrg CTAGS=ctags 305874b97a6cSmrgfi 305974b97a6cSmrg 306074b97a6cSmrgif test -z "$ETAGS"; then 306174b97a6cSmrg ETAGS=etags 306274b97a6cSmrgfi 306374b97a6cSmrg 306474b97a6cSmrgif test -z "$CSCOPE"; then 306574b97a6cSmrg CSCOPE=cscope 306674b97a6cSmrgfi 306774b97a6cSmrg 306874b97a6cSmrg 3069afe13c8eSmrg 307074a3f230Smrg# POSIX will say in a future version that running "rm -f" with no argument 307174a3f230Smrg# is OK; and we want to be able to make that assumption in our Makefile 307274a3f230Smrg# recipes. So use an aggressive probe to check that the usage we want is 307374a3f230Smrg# actually supported "in the wild" to an acceptable degree. 307474a3f230Smrg# See automake bug#10828. 307574a3f230Smrg# To make any issue more visible, cause the running configure to be aborted 307674a3f230Smrg# by default if the 'rm' program in use doesn't match our expectations; the 307774a3f230Smrg# user can still override this though. 307874a3f230Smrgif rm -f && rm -fr && rm -rf; then : OK; else 307974a3f230Smrg cat >&2 <<'END' 308074a3f230SmrgOops! 3081afe13c8eSmrg 308274a3f230SmrgYour 'rm' program seems unable to run without file operands specified 308374a3f230Smrgon the command line, even when the '-f' option is present. This is contrary 308474a3f230Smrgto the behaviour of most rm programs out there, and not conforming with 308574a3f230Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3086afe13c8eSmrg 308774a3f230SmrgPlease tell bug-automake@gnu.org about your system, including the value 308874a3f230Smrgof your $PATH and any error possibly output before this message. This 308974a3f230Smrgcan help us improve future automake versions. 309074a3f230Smrg 309174a3f230SmrgEND 309274a3f230Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 309374a3f230Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 309474a3f230Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 309574a3f230Smrg echo >&2 309674a3f230Smrg else 309774a3f230Smrg cat >&2 <<'END' 309874a3f230SmrgAborting the configuration process, to ensure you take notice of the issue. 309974a3f230Smrg 310074a3f230SmrgYou can download and install GNU coreutils to get an 'rm' implementation 310174b97a6cSmrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 310274a3f230Smrg 310374a3f230SmrgIf you want to complete the configuration process using your problematic 310474a3f230Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 310574a3f230Smrgto "yes", and re-run configure. 310674a3f230Smrg 310774a3f230SmrgEND 310874a3f230Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 310974a3f230Smrg fi 311074a3f230Smrgfi 31115e358ecaSmrg 3112b3307321Smrg 311329cb5710Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 311429cb5710Smrg 31155e358ecaSmrg 31165e358ecaSmrg 31175e358ecaSmrg 31185e358ecaSmrg 31195e358ecaSmrg 31205e358ecaSmrg 31215e358ecaSmrg 31225e358ecaSmrg 31235e358ecaSmrg 31245e358ecaSmrg 312574b97a6cSmrg 312674b97a6cSmrg 312774b97a6cSmrg 312874b97a6cSmrg 312974b97a6cSmrg 313074b97a6cSmrg 313174b97a6cSmrg 313274b97a6cSmrg 313374b97a6cSmrg 313429cb5710SmrgDEPDIR="${am__leading_dot}deps" 313529cb5710Smrg 313629cb5710Smrgac_config_commands="$ac_config_commands depfiles" 31375e358ecaSmrg 313874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 313974b97a6cSmrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 314074b97a6cSmrgcat > confinc.mk << 'END' 314129cb5710Smrgam__doit: 314274b97a6cSmrg @echo this is the am__doit target >confinc.out 314329cb5710Smrg.PHONY: am__doit 314429cb5710SmrgEND 314529cb5710Smrgam__include="#" 314629cb5710Smrgam__quote= 314774b97a6cSmrg# BSD make does it like this. 314874b97a6cSmrgecho '.include "confinc.mk" # ignored' > confmf.BSD 314974b97a6cSmrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 315074b97a6cSmrgecho 'include confinc.mk # ignored' > confmf.GNU 315174b97a6cSmrg_am_result=no 315274b97a6cSmrgfor s in GNU BSD; do 315374b97a6cSmrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 315474b97a6cSmrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 315574b97a6cSmrg ac_status=$? 315674b97a6cSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 315774b97a6cSmrg (exit $ac_status); } 315874b97a6cSmrg case $?:`cat confinc.out 2>/dev/null` in #( 315974b97a6cSmrg '0:this is the am__doit target') : 316074b97a6cSmrg case $s in #( 316174b97a6cSmrg BSD) : 316274b97a6cSmrg am__include='.include' am__quote='"' ;; #( 316374b97a6cSmrg *) : 316474b97a6cSmrg am__include='include' am__quote='' ;; 316574b97a6cSmrgesac ;; #( 316674b97a6cSmrg *) : 316729cb5710Smrg ;; 316874b97a6cSmrgesac 316974b97a6cSmrg if test "$am__include" != "#"; then 317074b97a6cSmrg _am_result="yes ($s style)" 317174b97a6cSmrg break 317274b97a6cSmrg fi 317374b97a6cSmrgdone 317474b97a6cSmrgrm -f confinc.* confmf.* 317574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 317674b97a6cSmrgprintf "%s\n" "${_am_result}" >&6; } 317729cb5710Smrg 317829cb5710Smrg# Check whether --enable-dependency-tracking was given. 317974b97a6cSmrgif test ${enable_dependency_tracking+y} 318074b97a6cSmrgthen : 318129cb5710Smrg enableval=$enable_dependency_tracking; 318229cb5710Smrgfi 318329cb5710Smrg 318429cb5710Smrgif test "x$enable_dependency_tracking" != xno; then 318529cb5710Smrg am_depcomp="$ac_aux_dir/depcomp" 318629cb5710Smrg AMDEPBACKSLASH='\' 318774a3f230Smrg am__nodep='_no' 318829cb5710Smrgfi 318929cb5710Smrg if test "x$enable_dependency_tracking" != xno; then 319029cb5710Smrg AMDEP_TRUE= 319129cb5710Smrg AMDEP_FALSE='#' 319229cb5710Smrgelse 319329cb5710Smrg AMDEP_TRUE='#' 319429cb5710Smrg AMDEP_FALSE= 319529cb5710Smrgfi 3196b3307321Smrg 3197b3307321Smrg 3198b3307321Smrgac_ext=c 3199b3307321Smrgac_cpp='$CPP $CPPFLAGS' 3200b3307321Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3201b3307321Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3202b3307321Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3203b3307321Smrgif test -n "$ac_tool_prefix"; then 3204b3307321Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3205b3307321Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 320674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 320774b97a6cSmrgprintf %s "checking for $ac_word... " >&6; } 320874b97a6cSmrgif test ${ac_cv_prog_CC+y} 320974b97a6cSmrgthen : 321074b97a6cSmrg printf %s "(cached) " >&6 321174b97a6cSmrgelse $as_nop 3212b3307321Smrg if test -n "$CC"; then 3213b3307321Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3214b3307321Smrgelse 3215b3307321Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3216b3307321Smrgfor as_dir in $PATH 3217b3307321Smrgdo 3218b3307321Smrg IFS=$as_save_IFS 321974b97a6cSmrg case $as_dir in #((( 322074b97a6cSmrg '') as_dir=./ ;; 322174b97a6cSmrg */) ;; 322274b97a6cSmrg *) as_dir=$as_dir/ ;; 322374b97a6cSmrg esac 322429cb5710Smrg for ac_exec_ext in '' $ac_executable_extensions; do 322574b97a6cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3226b3307321Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 322774b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3228b3307321Smrg break 2 3229b3307321Smrg fi 3230b3307321Smrgdone 323129cb5710Smrg done 3232afe13c8eSmrgIFS=$as_save_IFS 3233b3307321Smrg 3234b3307321Smrgfi 3235b3307321Smrgfi 3236b3307321SmrgCC=$ac_cv_prog_CC 3237b3307321Smrgif test -n "$CC"; then 323874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 323974b97a6cSmrgprintf "%s\n" "$CC" >&6; } 3240b3307321Smrgelse 324174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 324274b97a6cSmrgprintf "%s\n" "no" >&6; } 3243b3307321Smrgfi 3244b3307321Smrg 3245afe13c8eSmrg 3246b3307321Smrgfi 3247b3307321Smrgif test -z "$ac_cv_prog_CC"; then 3248b3307321Smrg ac_ct_CC=$CC 3249b3307321Smrg # Extract the first word of "gcc", so it can be a program name with args. 3250b3307321Smrgset dummy gcc; ac_word=$2 325174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 325274b97a6cSmrgprintf %s "checking for $ac_word... " >&6; } 325374b97a6cSmrgif test ${ac_cv_prog_ac_ct_CC+y} 325474b97a6cSmrgthen : 325574b97a6cSmrg printf %s "(cached) " >&6 325674b97a6cSmrgelse $as_nop 3257b3307321Smrg if test -n "$ac_ct_CC"; then 3258b3307321Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3259b3307321Smrgelse 3260b3307321Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3261b3307321Smrgfor as_dir in $PATH 3262b3307321Smrgdo 3263b3307321Smrg IFS=$as_save_IFS 326474b97a6cSmrg case $as_dir in #((( 326574b97a6cSmrg '') as_dir=./ ;; 326674b97a6cSmrg */) ;; 326774b97a6cSmrg *) as_dir=$as_dir/ ;; 326874b97a6cSmrg esac 326929cb5710Smrg for ac_exec_ext in '' $ac_executable_extensions; do 327074b97a6cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3271b3307321Smrg ac_cv_prog_ac_ct_CC="gcc" 327274b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3273b3307321Smrg break 2 3274b3307321Smrg fi 3275b3307321Smrgdone 327629cb5710Smrg done 3277afe13c8eSmrgIFS=$as_save_IFS 3278b3307321Smrg 3279b3307321Smrgfi 3280b3307321Smrgfi 3281b3307321Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3282b3307321Smrgif test -n "$ac_ct_CC"; then 328374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 328474b97a6cSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 3285b3307321Smrgelse 328674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 328774b97a6cSmrgprintf "%s\n" "no" >&6; } 3288b3307321Smrgfi 3289b3307321Smrg 3290afe13c8eSmrg if test "x$ac_ct_CC" = x; then 3291afe13c8eSmrg CC="" 3292afe13c8eSmrg else 3293afe13c8eSmrg case $cross_compiling:$ac_tool_warned in 3294afe13c8eSmrgyes:) 329574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 329674b97a6cSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3297afe13c8eSmrgac_tool_warned=yes ;; 3298afe13c8eSmrgesac 3299afe13c8eSmrg CC=$ac_ct_CC 3300afe13c8eSmrg fi 3301b3307321Smrgelse 3302b3307321Smrg CC="$ac_cv_prog_CC" 3303b3307321Smrgfi 3304b3307321Smrg 3305b3307321Smrgif test -z "$CC"; then 3306afe13c8eSmrg if test -n "$ac_tool_prefix"; then 3307afe13c8eSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3308b3307321Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 330974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 331074b97a6cSmrgprintf %s "checking for $ac_word... " >&6; } 331174b97a6cSmrgif test ${ac_cv_prog_CC+y} 331274b97a6cSmrgthen : 331374b97a6cSmrg printf %s "(cached) " >&6 331474b97a6cSmrgelse $as_nop 3315b3307321Smrg if test -n "$CC"; then 3316b3307321Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3317b3307321Smrgelse 3318b3307321Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3319b3307321Smrgfor as_dir in $PATH 3320b3307321Smrgdo 3321b3307321Smrg IFS=$as_save_IFS 332274b97a6cSmrg case $as_dir in #((( 332374b97a6cSmrg '') as_dir=./ ;; 332474b97a6cSmrg */) ;; 332574b97a6cSmrg *) as_dir=$as_dir/ ;; 332674b97a6cSmrg esac 332729cb5710Smrg for ac_exec_ext in '' $ac_executable_extensions; do 332874b97a6cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3329b3307321Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 333074b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3331b3307321Smrg break 2 3332b3307321Smrg fi 3333b3307321Smrgdone 333429cb5710Smrg done 3335afe13c8eSmrgIFS=$as_save_IFS 3336b3307321Smrg 3337b3307321Smrgfi 3338b3307321Smrgfi 3339b3307321SmrgCC=$ac_cv_prog_CC 3340b3307321Smrgif test -n "$CC"; then 334174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 334274b97a6cSmrgprintf "%s\n" "$CC" >&6; } 3343b3307321Smrgelse 334474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 334574b97a6cSmrgprintf "%s\n" "no" >&6; } 3346b3307321Smrgfi 3347b3307321Smrg 3348b3307321Smrg 3349afe13c8eSmrg fi 3350b3307321Smrgfi 3351b3307321Smrgif test -z "$CC"; then 3352b3307321Smrg # Extract the first word of "cc", so it can be a program name with args. 3353b3307321Smrgset dummy cc; ac_word=$2 335474b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 335574b97a6cSmrgprintf %s "checking for $ac_word... " >&6; } 335674b97a6cSmrgif test ${ac_cv_prog_CC+y} 335774b97a6cSmrgthen : 335874b97a6cSmrg printf %s "(cached) " >&6 335974b97a6cSmrgelse $as_nop 3360b3307321Smrg if test -n "$CC"; then 3361b3307321Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3362b3307321Smrgelse 3363b3307321Smrg ac_prog_rejected=no 3364b3307321Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3365b3307321Smrgfor as_dir in $PATH 3366b3307321Smrgdo 3367b3307321Smrg IFS=$as_save_IFS 336874b97a6cSmrg case $as_dir in #((( 336974b97a6cSmrg '') as_dir=./ ;; 337074b97a6cSmrg */) ;; 337174b97a6cSmrg *) as_dir=$as_dir/ ;; 337274b97a6cSmrg esac 337329cb5710Smrg for ac_exec_ext in '' $ac_executable_extensions; do 337474b97a6cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 337574b97a6cSmrg if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3376b3307321Smrg ac_prog_rejected=yes 3377b3307321Smrg continue 3378b3307321Smrg fi 3379b3307321Smrg ac_cv_prog_CC="cc" 338074b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3381b3307321Smrg break 2 3382b3307321Smrg fi 3383b3307321Smrgdone 338429cb5710Smrg done 3385afe13c8eSmrgIFS=$as_save_IFS 3386b3307321Smrg 3387b3307321Smrgif test $ac_prog_rejected = yes; then 3388b3307321Smrg # We found a bogon in the path, so make sure we never use it. 3389b3307321Smrg set dummy $ac_cv_prog_CC 3390b3307321Smrg shift 3391b3307321Smrg if test $# != 0; then 3392b3307321Smrg # We chose a different compiler from the bogus one. 3393b3307321Smrg # However, it has the same basename, so the bogon will be chosen 3394b3307321Smrg # first if we set CC to just the basename; use the full file name. 3395b3307321Smrg shift 339674b97a6cSmrg ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3397b3307321Smrg fi 3398b3307321Smrgfi 3399b3307321Smrgfi 3400b3307321Smrgfi 3401b3307321SmrgCC=$ac_cv_prog_CC 3402b3307321Smrgif test -n "$CC"; then 340374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 340474b97a6cSmrgprintf "%s\n" "$CC" >&6; } 3405b3307321Smrgelse 340674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 340774b97a6cSmrgprintf "%s\n" "no" >&6; } 3408b3307321Smrgfi 3409b3307321Smrg 3410afe13c8eSmrg 3411b3307321Smrgfi 3412b3307321Smrgif test -z "$CC"; then 3413b3307321Smrg if test -n "$ac_tool_prefix"; then 3414afe13c8eSmrg for ac_prog in cl.exe 3415b3307321Smrg do 3416b3307321Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3417b3307321Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 341874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 341974b97a6cSmrgprintf %s "checking for $ac_word... " >&6; } 342074b97a6cSmrgif test ${ac_cv_prog_CC+y} 342174b97a6cSmrgthen : 342274b97a6cSmrg printf %s "(cached) " >&6 342374b97a6cSmrgelse $as_nop 3424b3307321Smrg if test -n "$CC"; then 3425b3307321Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3426b3307321Smrgelse 3427b3307321Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3428b3307321Smrgfor as_dir in $PATH 3429b3307321Smrgdo 3430b3307321Smrg IFS=$as_save_IFS 343174b97a6cSmrg case $as_dir in #((( 343274b97a6cSmrg '') as_dir=./ ;; 343374b97a6cSmrg */) ;; 343474b97a6cSmrg *) as_dir=$as_dir/ ;; 343574b97a6cSmrg esac 343629cb5710Smrg for ac_exec_ext in '' $ac_executable_extensions; do 343774b97a6cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3438b3307321Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 343974b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3440b3307321Smrg break 2 3441b3307321Smrg fi 3442b3307321Smrgdone 344329cb5710Smrg done 3444afe13c8eSmrgIFS=$as_save_IFS 3445b3307321Smrg 3446b3307321Smrgfi 3447b3307321Smrgfi 3448b3307321SmrgCC=$ac_cv_prog_CC 3449b3307321Smrgif test -n "$CC"; then 345074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 345174b97a6cSmrgprintf "%s\n" "$CC" >&6; } 3452b3307321Smrgelse 345374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 345474b97a6cSmrgprintf "%s\n" "no" >&6; } 3455b3307321Smrgfi 3456b3307321Smrg 3457afe13c8eSmrg 3458b3307321Smrg test -n "$CC" && break 3459b3307321Smrg done 3460b3307321Smrgfi 3461b3307321Smrgif test -z "$CC"; then 3462b3307321Smrg ac_ct_CC=$CC 3463afe13c8eSmrg for ac_prog in cl.exe 3464b3307321Smrgdo 3465b3307321Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3466b3307321Smrgset dummy $ac_prog; ac_word=$2 346774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 346874b97a6cSmrgprintf %s "checking for $ac_word... " >&6; } 346974b97a6cSmrgif test ${ac_cv_prog_ac_ct_CC+y} 347074b97a6cSmrgthen : 347174b97a6cSmrg printf %s "(cached) " >&6 347274b97a6cSmrgelse $as_nop 3473b3307321Smrg if test -n "$ac_ct_CC"; then 3474b3307321Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3475b3307321Smrgelse 3476b3307321Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3477b3307321Smrgfor as_dir in $PATH 3478b3307321Smrgdo 3479b3307321Smrg IFS=$as_save_IFS 348074b97a6cSmrg case $as_dir in #((( 348174b97a6cSmrg '') as_dir=./ ;; 348274b97a6cSmrg */) ;; 348374b97a6cSmrg *) as_dir=$as_dir/ ;; 348474b97a6cSmrg esac 348529cb5710Smrg for ac_exec_ext in '' $ac_executable_extensions; do 348674b97a6cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3487b3307321Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 348874b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3489b3307321Smrg break 2 3490b3307321Smrg fi 3491b3307321Smrgdone 349229cb5710Smrg done 3493afe13c8eSmrgIFS=$as_save_IFS 3494b3307321Smrg 3495b3307321Smrgfi 3496b3307321Smrgfi 3497b3307321Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3498b3307321Smrgif test -n "$ac_ct_CC"; then 349974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 350074b97a6cSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 3501b3307321Smrgelse 350274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 350374b97a6cSmrgprintf "%s\n" "no" >&6; } 3504b3307321Smrgfi 3505b3307321Smrg 3506afe13c8eSmrg 3507b3307321Smrg test -n "$ac_ct_CC" && break 3508b3307321Smrgdone 3509b3307321Smrg 3510afe13c8eSmrg if test "x$ac_ct_CC" = x; then 3511afe13c8eSmrg CC="" 3512afe13c8eSmrg else 3513afe13c8eSmrg case $cross_compiling:$ac_tool_warned in 3514afe13c8eSmrgyes:) 351574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 351674b97a6cSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3517afe13c8eSmrgac_tool_warned=yes ;; 3518afe13c8eSmrgesac 3519afe13c8eSmrg CC=$ac_ct_CC 3520afe13c8eSmrg fi 3521b3307321Smrgfi 3522b3307321Smrg 3523b3307321Smrgfi 352474b97a6cSmrgif test -z "$CC"; then 352574b97a6cSmrg if test -n "$ac_tool_prefix"; then 352674b97a6cSmrg # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 352774b97a6cSmrgset dummy ${ac_tool_prefix}clang; ac_word=$2 352874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 352974b97a6cSmrgprintf %s "checking for $ac_word... " >&6; } 353074b97a6cSmrgif test ${ac_cv_prog_CC+y} 353174b97a6cSmrgthen : 353274b97a6cSmrg printf %s "(cached) " >&6 353374b97a6cSmrgelse $as_nop 353474b97a6cSmrg if test -n "$CC"; then 353574b97a6cSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 353674b97a6cSmrgelse 353774b97a6cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 353874b97a6cSmrgfor as_dir in $PATH 353974b97a6cSmrgdo 354074b97a6cSmrg IFS=$as_save_IFS 354174b97a6cSmrg case $as_dir in #((( 354274b97a6cSmrg '') as_dir=./ ;; 354374b97a6cSmrg */) ;; 354474b97a6cSmrg *) as_dir=$as_dir/ ;; 354574b97a6cSmrg esac 354674b97a6cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 354774b97a6cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 354874b97a6cSmrg ac_cv_prog_CC="${ac_tool_prefix}clang" 354974b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 355074b97a6cSmrg break 2 355174b97a6cSmrg fi 355274b97a6cSmrgdone 355374b97a6cSmrg done 355474b97a6cSmrgIFS=$as_save_IFS 355574b97a6cSmrg 355674b97a6cSmrgfi 355774b97a6cSmrgfi 355874b97a6cSmrgCC=$ac_cv_prog_CC 355974b97a6cSmrgif test -n "$CC"; then 356074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 356174b97a6cSmrgprintf "%s\n" "$CC" >&6; } 356274b97a6cSmrgelse 356374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 356474b97a6cSmrgprintf "%s\n" "no" >&6; } 356574b97a6cSmrgfi 3566b3307321Smrg 3567b3307321Smrg 356874b97a6cSmrgfi 356974b97a6cSmrgif test -z "$ac_cv_prog_CC"; then 357074b97a6cSmrg ac_ct_CC=$CC 357174b97a6cSmrg # Extract the first word of "clang", so it can be a program name with args. 357274b97a6cSmrgset dummy clang; ac_word=$2 357374b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 357474b97a6cSmrgprintf %s "checking for $ac_word... " >&6; } 357574b97a6cSmrgif test ${ac_cv_prog_ac_ct_CC+y} 357674b97a6cSmrgthen : 357774b97a6cSmrg printf %s "(cached) " >&6 357874b97a6cSmrgelse $as_nop 357974b97a6cSmrg if test -n "$ac_ct_CC"; then 358074b97a6cSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 358174b97a6cSmrgelse 358274b97a6cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 358374b97a6cSmrgfor as_dir in $PATH 358474b97a6cSmrgdo 358574b97a6cSmrg IFS=$as_save_IFS 358674b97a6cSmrg case $as_dir in #((( 358774b97a6cSmrg '') as_dir=./ ;; 358874b97a6cSmrg */) ;; 358974b97a6cSmrg *) as_dir=$as_dir/ ;; 359074b97a6cSmrg esac 359174b97a6cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 359274b97a6cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 359374b97a6cSmrg ac_cv_prog_ac_ct_CC="clang" 359474b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 359574b97a6cSmrg break 2 359674b97a6cSmrg fi 359774b97a6cSmrgdone 359874b97a6cSmrg done 359974b97a6cSmrgIFS=$as_save_IFS 360074b97a6cSmrg 360174b97a6cSmrgfi 360274b97a6cSmrgfi 360374b97a6cSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 360474b97a6cSmrgif test -n "$ac_ct_CC"; then 360574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 360674b97a6cSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 360774b97a6cSmrgelse 360874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 360974b97a6cSmrgprintf "%s\n" "no" >&6; } 361074b97a6cSmrgfi 361174b97a6cSmrg 361274b97a6cSmrg if test "x$ac_ct_CC" = x; then 361374b97a6cSmrg CC="" 361474b97a6cSmrg else 361574b97a6cSmrg case $cross_compiling:$ac_tool_warned in 361674b97a6cSmrgyes:) 361774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 361874b97a6cSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 361974b97a6cSmrgac_tool_warned=yes ;; 362074b97a6cSmrgesac 362174b97a6cSmrg CC=$ac_ct_CC 362274b97a6cSmrg fi 362374b97a6cSmrgelse 362474b97a6cSmrg CC="$ac_cv_prog_CC" 362574b97a6cSmrgfi 362674b97a6cSmrg 362774b97a6cSmrgfi 362874b97a6cSmrg 362974b97a6cSmrg 363074b97a6cSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 363174b97a6cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 363229cb5710Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 363329cb5710SmrgSee \`config.log' for more details" "$LINENO" 5; } 3634b3307321Smrg 3635b3307321Smrg# Provide some information about the compiler. 363674b97a6cSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3637afe13c8eSmrgset X $ac_compile 3638afe13c8eSmrgac_compiler=$2 363974b97a6cSmrgfor ac_option in --version -v -V -qversion -version; do 364029cb5710Smrg { { ac_try="$ac_compiler $ac_option >&5" 3641afe13c8eSmrgcase "(($ac_try" in 3642afe13c8eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3643afe13c8eSmrg *) ac_try_echo=$ac_try;; 3644afe13c8eSmrgesac 364529cb5710Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 364674b97a6cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 364729cb5710Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3648b3307321Smrg ac_status=$? 364929cb5710Smrg if test -s conftest.err; then 365029cb5710Smrg sed '10a\ 365129cb5710Smrg... rest of stderr output deleted ... 365229cb5710Smrg 10q' conftest.err >conftest.er1 365329cb5710Smrg cat conftest.er1 >&5 365429cb5710Smrg fi 365529cb5710Smrg rm -f conftest.er1 conftest.err 365674b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 365729cb5710Smrg test $ac_status = 0; } 365829cb5710Smrgdone 3659b3307321Smrg 366029cb5710Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661b3307321Smrg/* end confdefs.h. */ 3662b3307321Smrg 3663b3307321Smrgint 366474b97a6cSmrgmain (void) 3665b3307321Smrg{ 3666b3307321Smrg 3667b3307321Smrg ; 3668b3307321Smrg return 0; 3669b3307321Smrg} 3670b3307321Smrg_ACEOF 3671b3307321Smrgac_clean_files_save=$ac_clean_files 3672afe13c8eSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3673b3307321Smrg# Try to create an executable without -o first, disregard a.out. 3674b3307321Smrg# It will help us diagnose broken compilers, and finding out an intuition 3675b3307321Smrg# of exeext. 367674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 367774b97a6cSmrgprintf %s "checking whether the C compiler works... " >&6; } 367874b97a6cSmrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3679afe13c8eSmrg 3680afe13c8eSmrg# The possible output files: 3681afe13c8eSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3682afe13c8eSmrg 3683afe13c8eSmrgac_rmfiles= 3684afe13c8eSmrgfor ac_file in $ac_files 3685afe13c8eSmrgdo 3686afe13c8eSmrg case $ac_file in 3687afe13c8eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3688afe13c8eSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3689afe13c8eSmrg esac 3690afe13c8eSmrgdone 3691afe13c8eSmrgrm -f $ac_rmfiles 3692afe13c8eSmrg 369329cb5710Smrgif { { ac_try="$ac_link_default" 3694afe13c8eSmrgcase "(($ac_try" in 3695afe13c8eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3696afe13c8eSmrg *) ac_try_echo=$ac_try;; 3697afe13c8eSmrgesac 369829cb5710Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 369974b97a6cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 3700afe13c8eSmrg (eval "$ac_link_default") 2>&5 3701b3307321Smrg ac_status=$? 370274b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 370374b97a6cSmrg test $ac_status = 0; } 370474b97a6cSmrgthen : 3705afe13c8eSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3706afe13c8eSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3707afe13c8eSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3708afe13c8eSmrg# so that the user can short-circuit this test for compilers unknown to 3709afe13c8eSmrg# Autoconf. 3710afe13c8eSmrgfor ac_file in $ac_files '' 3711b3307321Smrgdo 3712b3307321Smrg test -f "$ac_file" || continue 3713b3307321Smrg case $ac_file in 3714afe13c8eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3715b3307321Smrg ;; 3716b3307321Smrg [ab].out ) 3717b3307321Smrg # We found the default executable, but exeext='' is most 3718b3307321Smrg # certainly right. 3719b3307321Smrg break;; 3720b3307321Smrg *.* ) 372174b97a6cSmrg if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3722afe13c8eSmrg then :; else 3723afe13c8eSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3724afe13c8eSmrg fi 3725afe13c8eSmrg # We set ac_cv_exeext here because the later test for it is not 3726afe13c8eSmrg # safe: cross compilers may not add the suffix if given an `-o' 3727afe13c8eSmrg # argument, so we may need to know it at that point already. 3728afe13c8eSmrg # Even if this section looks crufty: it has the advantage of 3729afe13c8eSmrg # actually working. 3730b3307321Smrg break;; 3731b3307321Smrg * ) 3732b3307321Smrg break;; 3733b3307321Smrg esac 3734b3307321Smrgdone 3735afe13c8eSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3736afe13c8eSmrg 373774b97a6cSmrgelse $as_nop 3738afe13c8eSmrg ac_file='' 3739afe13c8eSmrgfi 374074b97a6cSmrgif test -z "$ac_file" 374174b97a6cSmrgthen : 374274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 374374b97a6cSmrgprintf "%s\n" "no" >&6; } 374474b97a6cSmrgprintf "%s\n" "$as_me: failed program was:" >&5 374529cb5710Smrgsed 's/^/| /' conftest.$ac_ext >&5 3746afe13c8eSmrg 374774b97a6cSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 374874b97a6cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 374929cb5710Smrgas_fn_error 77 "C compiler cannot create executables 375029cb5710SmrgSee \`config.log' for more details" "$LINENO" 5; } 375174b97a6cSmrgelse $as_nop 375274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 375374b97a6cSmrgprintf "%s\n" "yes" >&6; } 375474b97a6cSmrgfi 375574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 375674b97a6cSmrgprintf %s "checking for C compiler default output file name... " >&6; } 375774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 375874b97a6cSmrgprintf "%s\n" "$ac_file" >&6; } 3759b3307321Smrgac_exeext=$ac_cv_exeext 3760b3307321Smrg 3761afe13c8eSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3762b3307321Smrgac_clean_files=$ac_clean_files_save 376374b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 376474b97a6cSmrgprintf %s "checking for suffix of executables... " >&6; } 376529cb5710Smrgif { { ac_try="$ac_link" 3766afe13c8eSmrgcase "(($ac_try" in 3767afe13c8eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3768afe13c8eSmrg *) ac_try_echo=$ac_try;; 3769afe13c8eSmrgesac 377029cb5710Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 377174b97a6cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 3772afe13c8eSmrg (eval "$ac_link") 2>&5 3773b3307321Smrg ac_status=$? 377474b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 377574b97a6cSmrg test $ac_status = 0; } 377674b97a6cSmrgthen : 3777b3307321Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3778b3307321Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3779b3307321Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3780b3307321Smrg# `rm'. 3781b3307321Smrgfor ac_file in conftest.exe conftest conftest.*; do 3782b3307321Smrg test -f "$ac_file" || continue 3783b3307321Smrg case $ac_file in 3784afe13c8eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3785b3307321Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3786b3307321Smrg break;; 3787b3307321Smrg * ) break;; 3788b3307321Smrg esac 3789b3307321Smrgdone 379074b97a6cSmrgelse $as_nop 379174b97a6cSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 379274b97a6cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 379329cb5710Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 379429cb5710SmrgSee \`config.log' for more details" "$LINENO" 5; } 3795b3307321Smrgfi 379629cb5710Smrgrm -f conftest conftest$ac_cv_exeext 379774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 379874b97a6cSmrgprintf "%s\n" "$ac_cv_exeext" >&6; } 3799b3307321Smrg 3800b3307321Smrgrm -f conftest.$ac_ext 3801b3307321SmrgEXEEXT=$ac_cv_exeext 3802b3307321Smrgac_exeext=$EXEEXT 380329cb5710Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 380429cb5710Smrg/* end confdefs.h. */ 380529cb5710Smrg#include <stdio.h> 380629cb5710Smrgint 380774b97a6cSmrgmain (void) 380829cb5710Smrg{ 380929cb5710SmrgFILE *f = fopen ("conftest.out", "w"); 381029cb5710Smrg return ferror (f) || fclose (f) != 0; 381129cb5710Smrg 381229cb5710Smrg ; 381329cb5710Smrg return 0; 381429cb5710Smrg} 381529cb5710Smrg_ACEOF 381629cb5710Smrgac_clean_files="$ac_clean_files conftest.out" 381729cb5710Smrg# Check that the compiler produces executables we can run. If not, either 381829cb5710Smrg# the compiler is broken, or we cross compile. 381974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 382074b97a6cSmrgprintf %s "checking whether we are cross compiling... " >&6; } 382129cb5710Smrgif test "$cross_compiling" != yes; then 382229cb5710Smrg { { ac_try="$ac_link" 382329cb5710Smrgcase "(($ac_try" in 382429cb5710Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 382529cb5710Smrg *) ac_try_echo=$ac_try;; 382629cb5710Smrgesac 382729cb5710Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 382874b97a6cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 382929cb5710Smrg (eval "$ac_link") 2>&5 383029cb5710Smrg ac_status=$? 383174b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 383229cb5710Smrg test $ac_status = 0; } 383329cb5710Smrg if { ac_try='./conftest$ac_cv_exeext' 383429cb5710Smrg { { case "(($ac_try" in 383529cb5710Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 383629cb5710Smrg *) ac_try_echo=$ac_try;; 383729cb5710Smrgesac 383829cb5710Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 383974b97a6cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 384029cb5710Smrg (eval "$ac_try") 2>&5 384129cb5710Smrg ac_status=$? 384274b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 384329cb5710Smrg test $ac_status = 0; }; }; then 384429cb5710Smrg cross_compiling=no 384529cb5710Smrg else 384629cb5710Smrg if test "$cross_compiling" = maybe; then 384729cb5710Smrg cross_compiling=yes 384829cb5710Smrg else 384974b97a6cSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 385074b97a6cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 385174b97a6cSmrgas_fn_error 77 "cannot run C compiled programs. 385229cb5710SmrgIf you meant to cross compile, use \`--host'. 385329cb5710SmrgSee \`config.log' for more details" "$LINENO" 5; } 385429cb5710Smrg fi 385529cb5710Smrg fi 385629cb5710Smrgfi 385774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 385874b97a6cSmrgprintf "%s\n" "$cross_compiling" >&6; } 385929cb5710Smrg 386029cb5710Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 386129cb5710Smrgac_clean_files=$ac_clean_files_save 386274b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 386374b97a6cSmrgprintf %s "checking for suffix of object files... " >&6; } 386474b97a6cSmrgif test ${ac_cv_objext+y} 386574b97a6cSmrgthen : 386674b97a6cSmrg printf %s "(cached) " >&6 386774b97a6cSmrgelse $as_nop 386829cb5710Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3869b3307321Smrg/* end confdefs.h. */ 3870b3307321Smrg 3871b3307321Smrgint 387274b97a6cSmrgmain (void) 3873b3307321Smrg{ 3874b3307321Smrg 3875b3307321Smrg ; 3876b3307321Smrg return 0; 3877b3307321Smrg} 3878b3307321Smrg_ACEOF 3879b3307321Smrgrm -f conftest.o conftest.obj 388029cb5710Smrgif { { ac_try="$ac_compile" 3881afe13c8eSmrgcase "(($ac_try" in 3882afe13c8eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3883afe13c8eSmrg *) ac_try_echo=$ac_try;; 3884afe13c8eSmrgesac 388529cb5710Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 388674b97a6cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 3887afe13c8eSmrg (eval "$ac_compile") 2>&5 3888b3307321Smrg ac_status=$? 388974b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 389074b97a6cSmrg test $ac_status = 0; } 389174b97a6cSmrgthen : 3892afe13c8eSmrg for ac_file in conftest.o conftest.obj conftest.*; do 3893afe13c8eSmrg test -f "$ac_file" || continue; 3894b3307321Smrg case $ac_file in 3895afe13c8eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3896b3307321Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3897b3307321Smrg break;; 3898b3307321Smrg esac 3899b3307321Smrgdone 390074b97a6cSmrgelse $as_nop 390174b97a6cSmrg printf "%s\n" "$as_me: failed program was:" >&5 3902b3307321Smrgsed 's/^/| /' conftest.$ac_ext >&5 3903b3307321Smrg 390474b97a6cSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 390574b97a6cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 390629cb5710Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 390729cb5710SmrgSee \`config.log' for more details" "$LINENO" 5; } 3908b3307321Smrgfi 3909b3307321Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3910b3307321Smrgfi 391174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 391274b97a6cSmrgprintf "%s\n" "$ac_cv_objext" >&6; } 3913b3307321SmrgOBJEXT=$ac_cv_objext 3914b3307321Smrgac_objext=$OBJEXT 391574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 391674b97a6cSmrgprintf %s "checking whether the compiler supports GNU C... " >&6; } 391774b97a6cSmrgif test ${ac_cv_c_compiler_gnu+y} 391874b97a6cSmrgthen : 391974b97a6cSmrg printf %s "(cached) " >&6 392074b97a6cSmrgelse $as_nop 392129cb5710Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3922b3307321Smrg/* end confdefs.h. */ 3923b3307321Smrg 3924b3307321Smrgint 392574b97a6cSmrgmain (void) 3926b3307321Smrg{ 3927b3307321Smrg#ifndef __GNUC__ 3928b3307321Smrg choke me 3929b3307321Smrg#endif 3930b3307321Smrg 3931b3307321Smrg ; 3932b3307321Smrg return 0; 3933b3307321Smrg} 3934b3307321Smrg_ACEOF 393574b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 393674b97a6cSmrgthen : 3937b3307321Smrg ac_compiler_gnu=yes 393874b97a6cSmrgelse $as_nop 393929cb5710Smrg ac_compiler_gnu=no 3940b3307321Smrgfi 394174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3942b3307321Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3943b3307321Smrg 3944b3307321Smrgfi 394574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 394674b97a6cSmrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 394774b97a6cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 394874b97a6cSmrg 3949afe13c8eSmrgif test $ac_compiler_gnu = yes; then 3950afe13c8eSmrg GCC=yes 3951afe13c8eSmrgelse 3952afe13c8eSmrg GCC= 3953afe13c8eSmrgfi 395474b97a6cSmrgac_test_CFLAGS=${CFLAGS+y} 3955b3307321Smrgac_save_CFLAGS=$CFLAGS 395674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 395774b97a6cSmrgprintf %s "checking whether $CC accepts -g... " >&6; } 395874b97a6cSmrgif test ${ac_cv_prog_cc_g+y} 395974b97a6cSmrgthen : 396074b97a6cSmrg printf %s "(cached) " >&6 396174b97a6cSmrgelse $as_nop 3962afe13c8eSmrg ac_save_c_werror_flag=$ac_c_werror_flag 3963afe13c8eSmrg ac_c_werror_flag=yes 3964afe13c8eSmrg ac_cv_prog_cc_g=no 3965afe13c8eSmrg CFLAGS="-g" 396629cb5710Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3967b3307321Smrg/* end confdefs.h. */ 3968b3307321Smrg 3969b3307321Smrgint 397074b97a6cSmrgmain (void) 3971b3307321Smrg{ 3972b3307321Smrg 3973b3307321Smrg ; 3974b3307321Smrg return 0; 3975b3307321Smrg} 3976b3307321Smrg_ACEOF 397774b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 397874b97a6cSmrgthen : 3979afe13c8eSmrg ac_cv_prog_cc_g=yes 398074b97a6cSmrgelse $as_nop 398129cb5710Smrg CFLAGS="" 398229cb5710Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3983afe13c8eSmrg/* end confdefs.h. */ 3984afe13c8eSmrg 3985afe13c8eSmrgint 398674b97a6cSmrgmain (void) 3987afe13c8eSmrg{ 3988afe13c8eSmrg 3989afe13c8eSmrg ; 3990afe13c8eSmrg return 0; 3991afe13c8eSmrg} 3992afe13c8eSmrg_ACEOF 399374b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 399474b97a6cSmrgthen : 3995afe13c8eSmrg 399674b97a6cSmrgelse $as_nop 399729cb5710Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3998afe13c8eSmrg CFLAGS="-g" 399929cb5710Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4000afe13c8eSmrg/* end confdefs.h. */ 4001afe13c8eSmrg 4002afe13c8eSmrgint 400374b97a6cSmrgmain (void) 4004afe13c8eSmrg{ 4005afe13c8eSmrg 4006afe13c8eSmrg ; 4007afe13c8eSmrg return 0; 4008afe13c8eSmrg} 4009afe13c8eSmrg_ACEOF 401074b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 401174b97a6cSmrgthen : 4012b3307321Smrg ac_cv_prog_cc_g=yes 4013afe13c8eSmrgfi 401474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4015b3307321Smrgfi 401674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4017afe13c8eSmrgfi 401874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4019afe13c8eSmrg ac_c_werror_flag=$ac_save_c_werror_flag 4020b3307321Smrgfi 402174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 402274b97a6cSmrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 402374b97a6cSmrgif test $ac_test_CFLAGS; then 4024b3307321Smrg CFLAGS=$ac_save_CFLAGS 4025b3307321Smrgelif test $ac_cv_prog_cc_g = yes; then 4026b3307321Smrg if test "$GCC" = yes; then 4027b3307321Smrg CFLAGS="-g -O2" 4028b3307321Smrg else 4029b3307321Smrg CFLAGS="-g" 4030b3307321Smrg fi 4031b3307321Smrgelse 4032b3307321Smrg if test "$GCC" = yes; then 4033b3307321Smrg CFLAGS="-O2" 4034b3307321Smrg else 4035b3307321Smrg CFLAGS= 4036b3307321Smrg fi 4037b3307321Smrgfi 403874b97a6cSmrgac_prog_cc_stdc=no 403974b97a6cSmrgif test x$ac_prog_cc_stdc = xno 404074b97a6cSmrgthen : 404174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 404274b97a6cSmrgprintf %s "checking for $CC option to enable C11 features... " >&6; } 404374b97a6cSmrgif test ${ac_cv_prog_cc_c11+y} 404474b97a6cSmrgthen : 404574b97a6cSmrg printf %s "(cached) " >&6 404674b97a6cSmrgelse $as_nop 404774b97a6cSmrg ac_cv_prog_cc_c11=no 4048b3307321Smrgac_save_CC=$CC 404929cb5710Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4050b3307321Smrg/* end confdefs.h. */ 405174b97a6cSmrg$ac_c_conftest_c11_program 405274b97a6cSmrg_ACEOF 405374b97a6cSmrgfor ac_arg in '' -std=gnu11 405474b97a6cSmrgdo 405574b97a6cSmrg CC="$ac_save_CC $ac_arg" 405674b97a6cSmrg if ac_fn_c_try_compile "$LINENO" 405774b97a6cSmrgthen : 405874b97a6cSmrg ac_cv_prog_cc_c11=$ac_arg 405974b97a6cSmrgfi 406074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 406174b97a6cSmrg test "x$ac_cv_prog_cc_c11" != "xno" && break 406274b97a6cSmrgdone 406374b97a6cSmrgrm -f conftest.$ac_ext 406474b97a6cSmrgCC=$ac_save_CC 406574b97a6cSmrgfi 4066b3307321Smrg 406774b97a6cSmrgif test "x$ac_cv_prog_cc_c11" = xno 406874b97a6cSmrgthen : 406974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 407074b97a6cSmrgprintf "%s\n" "unsupported" >&6; } 407174b97a6cSmrgelse $as_nop 407274b97a6cSmrg if test "x$ac_cv_prog_cc_c11" = x 407374b97a6cSmrgthen : 407474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 407574b97a6cSmrgprintf "%s\n" "none needed" >&6; } 407674b97a6cSmrgelse $as_nop 407774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 407874b97a6cSmrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 407974b97a6cSmrg CC="$CC $ac_cv_prog_cc_c11" 408074b97a6cSmrgfi 408174b97a6cSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 408274b97a6cSmrg ac_prog_cc_stdc=c11 408374b97a6cSmrgfi 408474b97a6cSmrgfi 408574b97a6cSmrgif test x$ac_prog_cc_stdc = xno 408674b97a6cSmrgthen : 408774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 408874b97a6cSmrgprintf %s "checking for $CC option to enable C99 features... " >&6; } 408974b97a6cSmrgif test ${ac_cv_prog_cc_c99+y} 409074b97a6cSmrgthen : 409174b97a6cSmrg printf %s "(cached) " >&6 409274b97a6cSmrgelse $as_nop 409374b97a6cSmrg ac_cv_prog_cc_c99=no 409474b97a6cSmrgac_save_CC=$CC 409574b97a6cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 409674b97a6cSmrg/* end confdefs.h. */ 409774b97a6cSmrg$ac_c_conftest_c99_program 409874b97a6cSmrg_ACEOF 409974b97a6cSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 410074b97a6cSmrgdo 410174b97a6cSmrg CC="$ac_save_CC $ac_arg" 410274b97a6cSmrg if ac_fn_c_try_compile "$LINENO" 410374b97a6cSmrgthen : 410474b97a6cSmrg ac_cv_prog_cc_c99=$ac_arg 410574b97a6cSmrgfi 410674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 410774b97a6cSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 410874b97a6cSmrgdone 410974b97a6cSmrgrm -f conftest.$ac_ext 411074b97a6cSmrgCC=$ac_save_CC 411174b97a6cSmrgfi 4112afe13c8eSmrg 411374b97a6cSmrgif test "x$ac_cv_prog_cc_c99" = xno 411474b97a6cSmrgthen : 411574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 411674b97a6cSmrgprintf "%s\n" "unsupported" >&6; } 411774b97a6cSmrgelse $as_nop 411874b97a6cSmrg if test "x$ac_cv_prog_cc_c99" = x 411974b97a6cSmrgthen : 412074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 412174b97a6cSmrgprintf "%s\n" "none needed" >&6; } 412274b97a6cSmrgelse $as_nop 412374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 412474b97a6cSmrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 412574b97a6cSmrg CC="$CC $ac_cv_prog_cc_c99" 412674b97a6cSmrgfi 412774b97a6cSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 412874b97a6cSmrg ac_prog_cc_stdc=c99 412974b97a6cSmrgfi 413074b97a6cSmrgfi 413174b97a6cSmrgif test x$ac_prog_cc_stdc = xno 413274b97a6cSmrgthen : 413374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 413474b97a6cSmrgprintf %s "checking for $CC option to enable C89 features... " >&6; } 413574b97a6cSmrgif test ${ac_cv_prog_cc_c89+y} 413674b97a6cSmrgthen : 413774b97a6cSmrg printf %s "(cached) " >&6 413874b97a6cSmrgelse $as_nop 413974b97a6cSmrg ac_cv_prog_cc_c89=no 414074b97a6cSmrgac_save_CC=$CC 414174b97a6cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 414274b97a6cSmrg/* end confdefs.h. */ 414374b97a6cSmrg$ac_c_conftest_c89_program 4144b3307321Smrg_ACEOF 414574b97a6cSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4146b3307321Smrgdo 4147b3307321Smrg CC="$ac_save_CC $ac_arg" 414874b97a6cSmrg if ac_fn_c_try_compile "$LINENO" 414974b97a6cSmrgthen : 4150afe13c8eSmrg ac_cv_prog_cc_c89=$ac_arg 4151b3307321Smrgfi 415274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 4153afe13c8eSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 4154b3307321Smrgdone 4155afe13c8eSmrgrm -f conftest.$ac_ext 4156b3307321SmrgCC=$ac_save_CC 4157b3307321Smrgfi 4158b3307321Smrg 415974b97a6cSmrgif test "x$ac_cv_prog_cc_c89" = xno 416074b97a6cSmrgthen : 416174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 416274b97a6cSmrgprintf "%s\n" "unsupported" >&6; } 416374b97a6cSmrgelse $as_nop 416474b97a6cSmrg if test "x$ac_cv_prog_cc_c89" = x 416574b97a6cSmrgthen : 416674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 416774b97a6cSmrgprintf "%s\n" "none needed" >&6; } 416874b97a6cSmrgelse $as_nop 416974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 417074b97a6cSmrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 417174b97a6cSmrg CC="$CC $ac_cv_prog_cc_c89" 417274b97a6cSmrgfi 417374b97a6cSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 417474b97a6cSmrg ac_prog_cc_stdc=c89 417574b97a6cSmrgfi 417629cb5710Smrgfi 4177b3307321Smrg 4178b3307321Smrgac_ext=c 4179b3307321Smrgac_cpp='$CPP $CPPFLAGS' 4180b3307321Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4181b3307321Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4182b3307321Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4183b3307321Smrg 418474b97a6cSmrg 418574b97a6cSmrg ac_ext=c 418674a3f230Smrgac_cpp='$CPP $CPPFLAGS' 418774a3f230Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 418874a3f230Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 418974a3f230Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 419074b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 419174b97a6cSmrgprintf %s "checking whether $CC understands -c and -o together... " >&6; } 419274b97a6cSmrgif test ${am_cv_prog_cc_c_o+y} 419374b97a6cSmrgthen : 419474b97a6cSmrg printf %s "(cached) " >&6 419574b97a6cSmrgelse $as_nop 419674a3f230Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 419774a3f230Smrg/* end confdefs.h. */ 419874a3f230Smrg 419974a3f230Smrgint 420074b97a6cSmrgmain (void) 420174a3f230Smrg{ 420274a3f230Smrg 420374a3f230Smrg ; 420474a3f230Smrg return 0; 420574a3f230Smrg} 420674a3f230Smrg_ACEOF 420774a3f230Smrg # Make sure it works both with $CC and with simple cc. 420874a3f230Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 420974a3f230Smrg # compilers refuse to overwrite an existing .o file with -o, 421074a3f230Smrg # though they will create one. 421174a3f230Smrg am_cv_prog_cc_c_o=yes 421274a3f230Smrg for am_i in 1 2; do 421374a3f230Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 421474a3f230Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 421574a3f230Smrg ac_status=$? 421674a3f230Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 421774a3f230Smrg (exit $ac_status); } \ 421874a3f230Smrg && test -f conftest2.$ac_objext; then 421974a3f230Smrg : OK 422074a3f230Smrg else 422174a3f230Smrg am_cv_prog_cc_c_o=no 422274a3f230Smrg break 422374a3f230Smrg fi 422474a3f230Smrg done 422574a3f230Smrg rm -f core conftest* 422674a3f230Smrg unset am_i 422774a3f230Smrgfi 422874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 422974b97a6cSmrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 423074a3f230Smrgif test "$am_cv_prog_cc_c_o" != yes; then 423174a3f230Smrg # Losing compiler, so override with the script. 423274a3f230Smrg # FIXME: It is wrong to rewrite CC. 423374a3f230Smrg # But if we don't then we get into trouble of one sort or another. 423474a3f230Smrg # A longer-term fix would be to have automake use am__CC in this case, 423574a3f230Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 423674a3f230Smrg CC="$am_aux_dir/compile $CC" 423774a3f230Smrgfi 423874a3f230Smrgac_ext=c 423974a3f230Smrgac_cpp='$CPP $CPPFLAGS' 424074a3f230Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 424174a3f230Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 424274a3f230Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 424374a3f230Smrg 424474a3f230Smrg 4245b3307321Smrgdepcc="$CC" am_compiler_list= 4246b3307321Smrg 424774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 424874b97a6cSmrgprintf %s "checking dependency style of $depcc... " >&6; } 424974b97a6cSmrgif test ${am_cv_CC_dependencies_compiler_type+y} 425074b97a6cSmrgthen : 425174b97a6cSmrg printf %s "(cached) " >&6 425274b97a6cSmrgelse $as_nop 4253b3307321Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4254b3307321Smrg # We make a subdir and do the tests there. Otherwise we can end up 4255b3307321Smrg # making bogus files that we don't know about and never remove. For 4256b3307321Smrg # instance it was reported that on HP-UX the gcc test will end up 425774a3f230Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 425874a3f230Smrg # in D". 425974a3f230Smrg rm -rf conftest.dir 4260b3307321Smrg mkdir conftest.dir 4261b3307321Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 4262b3307321Smrg # using a relative directory. 4263b3307321Smrg cp "$am_depcomp" conftest.dir 4264b3307321Smrg cd conftest.dir 4265b3307321Smrg # We will build objects and dependencies in a subdirectory because 4266b3307321Smrg # it helps to detect inapplicable dependency modes. For instance 4267b3307321Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 4268b3307321Smrg # side effect of compilation, but ICC will put the dependencies in 4269b3307321Smrg # the current directory while Tru64 will put them in the object 4270b3307321Smrg # directory. 4271b3307321Smrg mkdir sub 4272b3307321Smrg 4273b3307321Smrg am_cv_CC_dependencies_compiler_type=none 4274b3307321Smrg if test "$am_compiler_list" = ""; then 4275b3307321Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4276b3307321Smrg fi 42775e358ecaSmrg am__universal=false 42785e358ecaSmrg case " $depcc " in #( 42795e358ecaSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 42805e358ecaSmrg esac 42815e358ecaSmrg 4282b3307321Smrg for depmode in $am_compiler_list; do 4283b3307321Smrg # Setup a source with many dependencies, because some compilers 4284b3307321Smrg # like to wrap large dependency lists on column 80 (with \), and 4285b3307321Smrg # we should not choose a depcomp mode which is confused by this. 4286b3307321Smrg # 4287b3307321Smrg # We need to recreate these files for each test, as the compiler may 4288b3307321Smrg # overwrite some of them when testing with obscure command lines. 4289b3307321Smrg # This happens at least with the AIX C compiler. 4290b3307321Smrg : > sub/conftest.c 4291b3307321Smrg for i in 1 2 3 4 5 6; do 4292b3307321Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 429374a3f230Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 429474a3f230Smrg # Solaris 10 /bin/sh. 429574a3f230Smrg echo '/* dummy */' > sub/conftst$i.h 4296b3307321Smrg done 4297b3307321Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4298b3307321Smrg 429974a3f230Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 43005e358ecaSmrg # mode. It turns out that the SunPro C++ compiler does not properly 430174a3f230Smrg # handle '-M -o', and we need to detect this. Also, some Intel 430274a3f230Smrg # versions had trouble with output in subdirs. 43035e358ecaSmrg am__obj=sub/conftest.${OBJEXT-o} 43045e358ecaSmrg am__minus_obj="-o $am__obj" 4305b3307321Smrg case $depmode in 43065e358ecaSmrg gcc) 43075e358ecaSmrg # This depmode causes a compiler race in universal mode. 43085e358ecaSmrg test "$am__universal" = false || continue 43095e358ecaSmrg ;; 4310b3307321Smrg nosideeffect) 431174a3f230Smrg # After this tag, mechanisms are not by side-effect, so they'll 431274a3f230Smrg # only be used when explicitly requested. 4313b3307321Smrg if test "x$enable_dependency_tracking" = xyes; then 4314b3307321Smrg continue 4315b3307321Smrg else 4316b3307321Smrg break 4317b3307321Smrg fi 4318b3307321Smrg ;; 431974a3f230Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 432074a3f230Smrg # This compiler won't grok '-c -o', but also, the minuso test has 43215e358ecaSmrg # not run yet. These depmodes are late enough in the game, and 43225e358ecaSmrg # so weak that their functioning should not be impacted. 43235e358ecaSmrg am__obj=conftest.${OBJEXT-o} 43245e358ecaSmrg am__minus_obj= 43255e358ecaSmrg ;; 4326b3307321Smrg none) break ;; 4327b3307321Smrg esac 4328b3307321Smrg if depmode=$depmode \ 43295e358ecaSmrg source=sub/conftest.c object=$am__obj \ 4330b3307321Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 433174b97a6cSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 433274b97a6cSmrg >/dev/null 2>conftest.err && 433374b97a6cSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 433474b97a6cSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 433574b97a6cSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 433674b97a6cSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 433774b97a6cSmrg # icc doesn't choke on unknown options, it will just issue warnings 433874b97a6cSmrg # or remarks (even with -Werror). So we grep stderr for any message 433974b97a6cSmrg # that says an option was ignored or not supported. 434074b97a6cSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 434174b97a6cSmrg # icc: Command line warning: ignoring option '-M'; no argument required 434274b97a6cSmrg # The diagnosis changed in icc 8.0: 434374b97a6cSmrg # icc: Command line remark: option '-MP' not supported 434474b97a6cSmrg if (grep 'ignoring option' conftest.err || 434574b97a6cSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 434674b97a6cSmrg am_cv_CC_dependencies_compiler_type=$depmode 434774b97a6cSmrg break 434874b97a6cSmrg fi 43495e358ecaSmrg fi 43505e358ecaSmrg done 43515e358ecaSmrg 435274b97a6cSmrg cd .. 435374b97a6cSmrg rm -rf conftest.dir 43545e358ecaSmrgelse 435574b97a6cSmrg am_cv_CC_dependencies_compiler_type=none 43565e358ecaSmrgfi 43575e358ecaSmrg 43585e358ecaSmrgfi 435974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 436074b97a6cSmrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 436174b97a6cSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 43625e358ecaSmrg 436374b97a6cSmrg if 436474b97a6cSmrg test "x$enable_dependency_tracking" != xno \ 436574b97a6cSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 436674b97a6cSmrg am__fastdepCC_TRUE= 436774b97a6cSmrg am__fastdepCC_FALSE='#' 43685e358ecaSmrgelse 436974b97a6cSmrg am__fastdepCC_TRUE='#' 437074b97a6cSmrg am__fastdepCC_FALSE= 43715e358ecaSmrgfi 43725e358ecaSmrg 43735e358ecaSmrg 43745e358ecaSmrg 437574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 437674b97a6cSmrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 437774b97a6cSmrgif test ${ac_cv_c_undeclared_builtin_options+y} 437874b97a6cSmrgthen : 437974b97a6cSmrg printf %s "(cached) " >&6 438074b97a6cSmrgelse $as_nop 438174b97a6cSmrg ac_save_CFLAGS=$CFLAGS 438274b97a6cSmrg ac_cv_c_undeclared_builtin_options='cannot detect' 438374b97a6cSmrg for ac_arg in '' -fno-builtin; do 438474b97a6cSmrg CFLAGS="$ac_save_CFLAGS $ac_arg" 438574b97a6cSmrg # This test program should *not* compile successfully. 438674b97a6cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43875e358ecaSmrg/* end confdefs.h. */ 43885e358ecaSmrg 43895e358ecaSmrgint 439074b97a6cSmrgmain (void) 43915e358ecaSmrg{ 439274b97a6cSmrg(void) strchr; 43935e358ecaSmrg ; 43945e358ecaSmrg return 0; 43955e358ecaSmrg} 43965e358ecaSmrg_ACEOF 439774b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 439874b97a6cSmrgthen : 43995e358ecaSmrg 440074b97a6cSmrgelse $as_nop 440174b97a6cSmrg # This test program should compile successfully. 440274b97a6cSmrg # No library function is consistently available on 440374b97a6cSmrg # freestanding implementations, so test against a dummy 440474b97a6cSmrg # declaration. Include always-available headers on the 440574b97a6cSmrg # off chance that they somehow elicit warnings. 440674b97a6cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44075e358ecaSmrg/* end confdefs.h. */ 440874b97a6cSmrg#include <float.h> 440974b97a6cSmrg#include <limits.h> 441074b97a6cSmrg#include <stdarg.h> 441174b97a6cSmrg#include <stddef.h> 441274b97a6cSmrgextern void ac_decl (int, char *); 44135e358ecaSmrg 44145e358ecaSmrgint 441574b97a6cSmrgmain (void) 44165e358ecaSmrg{ 441774b97a6cSmrg(void) ac_decl (0, (char *) 0); 441874b97a6cSmrg (void) ac_decl; 441974b97a6cSmrg 442074b97a6cSmrg ; 44215e358ecaSmrg return 0; 44225e358ecaSmrg} 44235e358ecaSmrg_ACEOF 442474b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 442574b97a6cSmrgthen : 442674b97a6cSmrg if test x"$ac_arg" = x 442774b97a6cSmrgthen : 442874b97a6cSmrg ac_cv_c_undeclared_builtin_options='none needed' 442974b97a6cSmrgelse $as_nop 443074b97a6cSmrg ac_cv_c_undeclared_builtin_options=$ac_arg 44315e358ecaSmrgfi 443274b97a6cSmrg break 44335e358ecaSmrgfi 443474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 44355e358ecaSmrgfi 443674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 443774b97a6cSmrg done 443874b97a6cSmrg CFLAGS=$ac_save_CFLAGS 443974b97a6cSmrg 444074b97a6cSmrgfi 444174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 444274b97a6cSmrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 444374b97a6cSmrg case $ac_cv_c_undeclared_builtin_options in #( 444474b97a6cSmrg 'cannot detect') : 444574b97a6cSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 444674b97a6cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 444774b97a6cSmrgas_fn_error $? "cannot make $CC report undeclared builtins 444874b97a6cSmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #( 444974b97a6cSmrg 'none needed') : 445074b97a6cSmrg ac_c_undeclared_builtin_options='' ;; #( 445174b97a6cSmrg *) : 445274b97a6cSmrg ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 445374b97a6cSmrgesac 445474b97a6cSmrg 445574b97a6cSmrgac_header= ac_cache= 445674b97a6cSmrgfor ac_item in $ac_header_c_list 445774b97a6cSmrgdo 445874b97a6cSmrg if test $ac_cache; then 445974b97a6cSmrg ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 446074b97a6cSmrg if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 446174b97a6cSmrg printf "%s\n" "#define $ac_item 1" >> confdefs.h 446274b97a6cSmrg fi 446374b97a6cSmrg ac_header= ac_cache= 446474b97a6cSmrg elif test $ac_header; then 446574b97a6cSmrg ac_cache=$ac_item 446674b97a6cSmrg else 446774b97a6cSmrg ac_header=$ac_item 446874b97a6cSmrg fi 446974b97a6cSmrgdone 44705e358ecaSmrg 44715e358ecaSmrg 44725e358ecaSmrg 44735e358ecaSmrg 44745e358ecaSmrg 44755e358ecaSmrg 44765e358ecaSmrg 44775e358ecaSmrg 447874b97a6cSmrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 447974b97a6cSmrgthen : 448074b97a6cSmrg 448174b97a6cSmrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 448274b97a6cSmrg 448374b97a6cSmrgfi 448474b97a6cSmrg 44855e358ecaSmrg 448674a3f230Smrg 448774a3f230Smrg 448874b97a6cSmrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 448974b97a6cSmrgif test "x$ac_cv_have_decl___clang__" = xyes 449074b97a6cSmrgthen : 4491320e696bSmrg CLANGCC="yes" 449274b97a6cSmrgelse $as_nop 4493320e696bSmrg CLANGCC="no" 4494320e696bSmrgfi 449574b97a6cSmrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 449674b97a6cSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 449774b97a6cSmrgthen : 4498320e696bSmrg INTELCC="yes" 449974b97a6cSmrgelse $as_nop 4500320e696bSmrg INTELCC="no" 4501320e696bSmrgfi 450274b97a6cSmrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 450374b97a6cSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes 450474b97a6cSmrgthen : 4505320e696bSmrg SUNCC="yes" 450674b97a6cSmrgelse $as_nop 4507320e696bSmrg SUNCC="no" 4508320e696bSmrgfi 4509320e696bSmrg 4510320e696bSmrg 4511320e696bSmrg 4512320e696bSmrg 451306ef0fecSmrg 451406ef0fecSmrg 451506ef0fecSmrg 451606ef0fecSmrg 451729cb5710Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 451829cb5710Smrg if test -n "$ac_tool_prefix"; then 451929cb5710Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 452029cb5710Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 452174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 452274b97a6cSmrgprintf %s "checking for $ac_word... " >&6; } 452374b97a6cSmrgif test ${ac_cv_path_PKG_CONFIG+y} 452474b97a6cSmrgthen : 452574b97a6cSmrg printf %s "(cached) " >&6 452674b97a6cSmrgelse $as_nop 452729cb5710Smrg case $PKG_CONFIG in 452829cb5710Smrg [\\/]* | ?:[\\/]*) 452929cb5710Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 453029cb5710Smrg ;; 453129cb5710Smrg *) 453229cb5710Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 453329cb5710Smrgfor as_dir in $PATH 45345e358ecaSmrgdo 453529cb5710Smrg IFS=$as_save_IFS 453674b97a6cSmrg case $as_dir in #((( 453774b97a6cSmrg '') as_dir=./ ;; 453874b97a6cSmrg */) ;; 453974b97a6cSmrg *) as_dir=$as_dir/ ;; 454074b97a6cSmrg esac 454129cb5710Smrg for ac_exec_ext in '' $ac_executable_extensions; do 454274b97a6cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 454374b97a6cSmrg ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 454474b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 454529cb5710Smrg break 2 454629cb5710Smrg fi 454729cb5710Smrgdone 454829cb5710Smrg done 454929cb5710SmrgIFS=$as_save_IFS 455029cb5710Smrg 455129cb5710Smrg ;; 45525e358ecaSmrgesac 455329cb5710Smrgfi 455429cb5710SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 455529cb5710Smrgif test -n "$PKG_CONFIG"; then 455674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 455774b97a6cSmrgprintf "%s\n" "$PKG_CONFIG" >&6; } 45585e358ecaSmrgelse 455974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 456074b97a6cSmrgprintf "%s\n" "no" >&6; } 45615e358ecaSmrgfi 45625e358ecaSmrg 45635e358ecaSmrg 45645e358ecaSmrgfi 456529cb5710Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 456629cb5710Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 456729cb5710Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 456829cb5710Smrgset dummy pkg-config; ac_word=$2 456974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 457074b97a6cSmrgprintf %s "checking for $ac_word... " >&6; } 457174b97a6cSmrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 457274b97a6cSmrgthen : 457374b97a6cSmrg printf %s "(cached) " >&6 457474b97a6cSmrgelse $as_nop 457529cb5710Smrg case $ac_pt_PKG_CONFIG in 457629cb5710Smrg [\\/]* | ?:[\\/]*) 457729cb5710Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 457829cb5710Smrg ;; 45795e358ecaSmrg *) 458029cb5710Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 458129cb5710Smrgfor as_dir in $PATH 458229cb5710Smrgdo 458329cb5710Smrg IFS=$as_save_IFS 458474b97a6cSmrg case $as_dir in #((( 458574b97a6cSmrg '') as_dir=./ ;; 458674b97a6cSmrg */) ;; 458774b97a6cSmrg *) as_dir=$as_dir/ ;; 458874b97a6cSmrg esac 458929cb5710Smrg for ac_exec_ext in '' $ac_executable_extensions; do 459074b97a6cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 459174b97a6cSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 459274b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 459329cb5710Smrg break 2 459429cb5710Smrg fi 459529cb5710Smrgdone 459629cb5710Smrg done 459729cb5710SmrgIFS=$as_save_IFS 459829cb5710Smrg 459929cb5710Smrg ;; 46005e358ecaSmrgesac 460129cb5710Smrgfi 460229cb5710Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 460329cb5710Smrgif test -n "$ac_pt_PKG_CONFIG"; then 460474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 460574b97a6cSmrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 460629cb5710Smrgelse 460774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 460874b97a6cSmrgprintf "%s\n" "no" >&6; } 460929cb5710Smrgfi 46105e358ecaSmrg 461129cb5710Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 461229cb5710Smrg PKG_CONFIG="" 461329cb5710Smrg else 461429cb5710Smrg case $cross_compiling:$ac_tool_warned in 461529cb5710Smrgyes:) 461674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 461774b97a6cSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 461829cb5710Smrgac_tool_warned=yes ;; 461929cb5710Smrgesac 462029cb5710Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 462129cb5710Smrg fi 462229cb5710Smrgelse 462329cb5710Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 462429cb5710Smrgfi 46255e358ecaSmrg 462629cb5710Smrgfi 462729cb5710Smrgif test -n "$PKG_CONFIG"; then 462829cb5710Smrg _pkg_min_version=0.9.0 462974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 463074b97a6cSmrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 463129cb5710Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 463274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 463374b97a6cSmrgprintf "%s\n" "yes" >&6; } 463429cb5710Smrg else 463574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 463674b97a6cSmrgprintf "%s\n" "no" >&6; } 463729cb5710Smrg PKG_CONFIG="" 463829cb5710Smrg fi 463929cb5710Smrgfi 46405e358ecaSmrg 464174b97a6cSmrg 464274b97a6cSmrg # Make sure we can run config.sub. 464374b97a6cSmrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 464474b97a6cSmrg as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 464574b97a6cSmrg 464674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 464774b97a6cSmrgprintf %s "checking build system type... " >&6; } 464874b97a6cSmrgif test ${ac_cv_build+y} 464974b97a6cSmrgthen : 465074b97a6cSmrg printf %s "(cached) " >&6 465174b97a6cSmrgelse $as_nop 46525e358ecaSmrg ac_build_alias=$build_alias 46535e358ecaSmrgtest "x$ac_build_alias" = x && 465474b97a6cSmrg ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 46555e358ecaSmrgtest "x$ac_build_alias" = x && 465629cb5710Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 465774b97a6cSmrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 465874b97a6cSmrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 46595e358ecaSmrg 46605e358ecaSmrgfi 466174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 466274b97a6cSmrgprintf "%s\n" "$ac_cv_build" >&6; } 46635e358ecaSmrgcase $ac_cv_build in 46645e358ecaSmrg*-*-*) ;; 466529cb5710Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 46665e358ecaSmrgesac 46675e358ecaSmrgbuild=$ac_cv_build 46685e358ecaSmrgac_save_IFS=$IFS; IFS='-' 46695e358ecaSmrgset x $ac_cv_build 46705e358ecaSmrgshift 46715e358ecaSmrgbuild_cpu=$1 46725e358ecaSmrgbuild_vendor=$2 46735e358ecaSmrgshift; shift 46745e358ecaSmrg# Remember, the first character of IFS is used to create $*, 46755e358ecaSmrg# except with old shells: 46765e358ecaSmrgbuild_os=$* 46775e358ecaSmrgIFS=$ac_save_IFS 46785e358ecaSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 46795e358ecaSmrg 46805e358ecaSmrg 468174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 468274b97a6cSmrgprintf %s "checking host system type... " >&6; } 468374b97a6cSmrgif test ${ac_cv_host+y} 468474b97a6cSmrgthen : 468574b97a6cSmrg printf %s "(cached) " >&6 468674b97a6cSmrgelse $as_nop 46875e358ecaSmrg if test "x$host_alias" = x; then 46885e358ecaSmrg ac_cv_host=$ac_cv_build 46895e358ecaSmrgelse 469074b97a6cSmrg ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 469174b97a6cSmrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 46925e358ecaSmrgfi 46935e358ecaSmrg 46945e358ecaSmrgfi 469574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 469674b97a6cSmrgprintf "%s\n" "$ac_cv_host" >&6; } 46975e358ecaSmrgcase $ac_cv_host in 46985e358ecaSmrg*-*-*) ;; 469929cb5710Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 47005e358ecaSmrgesac 47015e358ecaSmrghost=$ac_cv_host 47025e358ecaSmrgac_save_IFS=$IFS; IFS='-' 47035e358ecaSmrgset x $ac_cv_host 47045e358ecaSmrgshift 47055e358ecaSmrghost_cpu=$1 47065e358ecaSmrghost_vendor=$2 47075e358ecaSmrgshift; shift 47085e358ecaSmrg# Remember, the first character of IFS is used to create $*, 47095e358ecaSmrg# except with old shells: 47105e358ecaSmrghost_os=$* 47115e358ecaSmrgIFS=$ac_save_IFS 47125e358ecaSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 47135e358ecaSmrg 47145e358ecaSmrg 471574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 471674b97a6cSmrgprintf %s "checking for a sed that does not truncate output... " >&6; } 471774b97a6cSmrgif test ${ac_cv_path_SED+y} 471874b97a6cSmrgthen : 471974b97a6cSmrg printf %s "(cached) " >&6 472074b97a6cSmrgelse $as_nop 472129cb5710Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 472229cb5710Smrg for ac_i in 1 2 3 4 5 6 7; do 472329cb5710Smrg ac_script="$ac_script$as_nl$ac_script" 472429cb5710Smrg done 472529cb5710Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 472629cb5710Smrg { ac_script=; unset ac_script;} 472729cb5710Smrg if test -z "$SED"; then 472829cb5710Smrg ac_path_SED_found=false 472929cb5710Smrg # Loop through the user's path and test for each of PROGNAME-LIST 473029cb5710Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 473129cb5710Smrgfor as_dir in $PATH 473229cb5710Smrgdo 473329cb5710Smrg IFS=$as_save_IFS 473474b97a6cSmrg case $as_dir in #((( 473574b97a6cSmrg '') as_dir=./ ;; 473674b97a6cSmrg */) ;; 473774b97a6cSmrg *) as_dir=$as_dir/ ;; 473874b97a6cSmrg esac 473974b97a6cSmrg for ac_prog in sed gsed 474074b97a6cSmrg do 474129cb5710Smrg for ac_exec_ext in '' $ac_executable_extensions; do 474274b97a6cSmrg ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 474306ef0fecSmrg as_fn_executable_p "$ac_path_SED" || continue 474429cb5710Smrg# Check for GNU ac_path_SED and select it if it is found. 474529cb5710Smrg # Check for GNU $ac_path_SED 474629cb5710Smrgcase `"$ac_path_SED" --version 2>&1` in 474729cb5710Smrg*GNU*) 474829cb5710Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 474929cb5710Smrg*) 475029cb5710Smrg ac_count=0 475174b97a6cSmrg printf %s 0123456789 >"conftest.in" 475229cb5710Smrg while : 475329cb5710Smrg do 475429cb5710Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 475529cb5710Smrg mv "conftest.tmp" "conftest.in" 475629cb5710Smrg cp "conftest.in" "conftest.nl" 475774b97a6cSmrg printf "%s\n" '' >> "conftest.nl" 475829cb5710Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 475929cb5710Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 476029cb5710Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 476129cb5710Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 476229cb5710Smrg # Best one so far, save it but keep looking for a better one 476329cb5710Smrg ac_cv_path_SED="$ac_path_SED" 476429cb5710Smrg ac_path_SED_max=$ac_count 476529cb5710Smrg fi 476629cb5710Smrg # 10*(2^10) chars as input seems more than enough 476729cb5710Smrg test $ac_count -gt 10 && break 476829cb5710Smrg done 476929cb5710Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 477029cb5710Smrgesac 477129cb5710Smrg 477229cb5710Smrg $ac_path_SED_found && break 3 477329cb5710Smrg done 477429cb5710Smrg done 477529cb5710Smrg done 477629cb5710SmrgIFS=$as_save_IFS 477729cb5710Smrg if test -z "$ac_cv_path_SED"; then 477829cb5710Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 477929cb5710Smrg fi 478029cb5710Smrgelse 478129cb5710Smrg ac_cv_path_SED=$SED 478229cb5710Smrgfi 478329cb5710Smrg 478429cb5710Smrgfi 478574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 478674b97a6cSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; } 478729cb5710Smrg SED="$ac_cv_path_SED" 478829cb5710Smrg rm -f conftest.sed 478929cb5710Smrg 479029cb5710Smrg 47915e358ecaSmrg 47925e358ecaSmrg 47935e358ecaSmrg 4794320e696bSmrg 4795320e696bSmrg# Check whether --enable-selective-werror was given. 479674b97a6cSmrgif test ${enable_selective_werror+y} 479774b97a6cSmrgthen : 4798320e696bSmrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 479974b97a6cSmrgelse $as_nop 4800320e696bSmrg SELECTIVE_WERROR=yes 4801320e696bSmrgfi 4802320e696bSmrg 4803320e696bSmrg 480474a3f230Smrg 480574a3f230Smrg 480674a3f230Smrg 4807320e696bSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 4808320e696bSmrgif test "x$SUNCC" = "xyes"; then 4809320e696bSmrg BASE_CFLAGS="-v" 48105e358ecaSmrgelse 4811320e696bSmrg BASE_CFLAGS="" 48125e358ecaSmrgfi 48135e358ecaSmrg 4814320e696bSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4815320e696bSmrg 4816320e696bSmrg 4817320e696bSmrg 4818320e696bSmrg 4819320e696bSmrg 482074a3f230Smrg 482174a3f230Smrg 482274a3f230Smrg 482374a3f230Smrg 482474a3f230Smrg 482574a3f230Smrg 482674a3f230Smrg 482774a3f230Smrg 4828320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 4829320e696bSmrg 483074a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4831320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 483274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 483374b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 483474b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 483574b97a6cSmrgthen : 483674b97a6cSmrg printf %s "(cached) " >&6 483774b97a6cSmrgelse $as_nop 4838320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4839320e696bSmrg/* end confdefs.h. */ 4840320e696bSmrgint i; 4841320e696bSmrg_ACEOF 484274b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 484374b97a6cSmrgthen : 4844320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 484574b97a6cSmrgelse $as_nop 4846320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 4847320e696bSmrgfi 484874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4849320e696bSmrgfi 485074b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 485174b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 485274a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4853320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 48545e358ecaSmrgfi 48555e358ecaSmrg 485674a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 485774a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4858320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4859320e696bSmrg fi 4860320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 486174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 486274b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 486374b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 486474b97a6cSmrgthen : 486574b97a6cSmrg printf %s "(cached) " >&6 486674b97a6cSmrgelse $as_nop 4867320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4868320e696bSmrg/* end confdefs.h. */ 4869320e696bSmrgint i; 4870320e696bSmrg_ACEOF 487174b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 487274b97a6cSmrgthen : 4873320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 487474b97a6cSmrgelse $as_nop 4875320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 4876320e696bSmrgfi 487774b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4878320e696bSmrgfi 487974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 488074b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 488174a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4882320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 4883320e696bSmrgfi 48845e358ecaSmrg 4885320e696bSmrgfound="no" 48865e358ecaSmrg 4887320e696bSmrg if test $found = "no" ; then 488806ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4889320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4890320e696bSmrg fi 48915e358ecaSmrg 489206ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4893320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4894320e696bSmrg fi 48955e358ecaSmrg 4896320e696bSmrg CFLAGS="$CFLAGS -Wall" 48975e358ecaSmrg 489874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 489974b97a6cSmrgprintf %s "checking if $CC supports -Wall... " >&6; } 490074a3f230Smrg cacheid=xorg_cv_cc_flag__Wall 490174b97a6cSmrg if eval test \${$cacheid+y} 490274b97a6cSmrgthen : 490374b97a6cSmrg printf %s "(cached) " >&6 490474b97a6cSmrgelse $as_nop 4905320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4906320e696bSmrg/* end confdefs.h. */ 4907320e696bSmrgint i; 4908320e696bSmrgint 490974b97a6cSmrgmain (void) 4910320e696bSmrg{ 4911320e696bSmrg 4912320e696bSmrg ; 4913320e696bSmrg return 0; 4914320e696bSmrg} 4915320e696bSmrg_ACEOF 491674b97a6cSmrgif ac_fn_c_try_link "$LINENO" 491774b97a6cSmrgthen : 491874a3f230Smrg eval $cacheid=yes 491974b97a6cSmrgelse $as_nop 492074a3f230Smrg eval $cacheid=no 4921320e696bSmrgfi 492274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 4923320e696bSmrg conftest$ac_exeext conftest.$ac_ext 49245e358ecaSmrgfi 49255e358ecaSmrg 4926320e696bSmrg 4927320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 4928320e696bSmrg 492974a3f230Smrg eval supported=\$$cacheid 493074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 493174b97a6cSmrgprintf "%s\n" "$supported" >&6; } 4932320e696bSmrg if test "$supported" = "yes" ; then 4933320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 4934320e696bSmrg found="yes" 4935320e696bSmrg fi 4936320e696bSmrg fi 4937320e696bSmrg 4938320e696bSmrg 4939320e696bSmrg 4940320e696bSmrg 4941320e696bSmrg 4942320e696bSmrg 4943320e696bSmrg 494474a3f230Smrg 494574a3f230Smrg 494674a3f230Smrg 494774a3f230Smrg 494874a3f230Smrg 494974a3f230Smrg 495074a3f230Smrg 495174a3f230Smrg 4952320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 4953320e696bSmrg 495474a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4955320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 495674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 495774b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 495874b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 495974b97a6cSmrgthen : 496074b97a6cSmrg printf %s "(cached) " >&6 496174b97a6cSmrgelse $as_nop 4962320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4963320e696bSmrg/* end confdefs.h. */ 4964320e696bSmrgint i; 4965320e696bSmrg_ACEOF 496674b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 496774b97a6cSmrgthen : 4968320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 496974b97a6cSmrgelse $as_nop 4970320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 4971320e696bSmrgfi 497274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4973320e696bSmrgfi 497474b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 497574b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 497674a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4977320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 49785e358ecaSmrgfi 49795e358ecaSmrg 498074a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 498174a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4982320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4983320e696bSmrg fi 4984320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 498574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 498674b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 498774b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 498874b97a6cSmrgthen : 498974b97a6cSmrg printf %s "(cached) " >&6 499074b97a6cSmrgelse $as_nop 4991320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4992320e696bSmrg/* end confdefs.h. */ 4993320e696bSmrgint i; 4994320e696bSmrg_ACEOF 499574b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 499674b97a6cSmrgthen : 4997320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 499874b97a6cSmrgelse $as_nop 4999320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 5000320e696bSmrgfi 500174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5002320e696bSmrgfi 500374b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 500474b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 500574a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5006320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5007320e696bSmrgfi 5008320e696bSmrg 5009320e696bSmrgfound="no" 5010320e696bSmrg 5011320e696bSmrg if test $found = "no" ; then 501206ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5013320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5014320e696bSmrg fi 5015320e696bSmrg 501606ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5017320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5018320e696bSmrg fi 5019320e696bSmrg 5020320e696bSmrg CFLAGS="$CFLAGS -Wpointer-arith" 5021320e696bSmrg 502274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 502374b97a6cSmrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; } 502474a3f230Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 502574b97a6cSmrg if eval test \${$cacheid+y} 502674b97a6cSmrgthen : 502774b97a6cSmrg printf %s "(cached) " >&6 502874b97a6cSmrgelse $as_nop 5029320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5030320e696bSmrg/* end confdefs.h. */ 5031320e696bSmrgint i; 5032320e696bSmrgint 503374b97a6cSmrgmain (void) 5034320e696bSmrg{ 5035320e696bSmrg 5036320e696bSmrg ; 5037320e696bSmrg return 0; 5038320e696bSmrg} 5039320e696bSmrg_ACEOF 504074b97a6cSmrgif ac_fn_c_try_link "$LINENO" 504174b97a6cSmrgthen : 504274a3f230Smrg eval $cacheid=yes 504374b97a6cSmrgelse $as_nop 504474a3f230Smrg eval $cacheid=no 5045320e696bSmrgfi 504674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5047320e696bSmrg conftest$ac_exeext conftest.$ac_ext 5048320e696bSmrgfi 5049320e696bSmrg 5050320e696bSmrg 5051320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5052320e696bSmrg 505374a3f230Smrg eval supported=\$$cacheid 505474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 505574b97a6cSmrgprintf "%s\n" "$supported" >&6; } 5056320e696bSmrg if test "$supported" = "yes" ; then 5057320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5058320e696bSmrg found="yes" 5059320e696bSmrg fi 5060320e696bSmrg fi 5061320e696bSmrg 5062320e696bSmrg 5063320e696bSmrg 5064320e696bSmrg 5065320e696bSmrg 5066320e696bSmrg 5067320e696bSmrg 506874a3f230Smrg 506974a3f230Smrg 507074a3f230Smrg 507174a3f230Smrg 507274a3f230Smrg 507374a3f230Smrg 507474a3f230Smrg 507574a3f230Smrg 5076320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5077320e696bSmrg 507874a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5079320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 508074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 508174b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 508274b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 508374b97a6cSmrgthen : 508474b97a6cSmrg printf %s "(cached) " >&6 508574b97a6cSmrgelse $as_nop 5086320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5087320e696bSmrg/* end confdefs.h. */ 5088320e696bSmrgint i; 5089320e696bSmrg_ACEOF 509074b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 509174b97a6cSmrgthen : 5092320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 509374b97a6cSmrgelse $as_nop 5094320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 5095320e696bSmrgfi 509674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5097320e696bSmrgfi 509874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 509974b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 510074a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5101320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5102320e696bSmrgfi 5103320e696bSmrg 510474a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 510574a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5106320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5107320e696bSmrg fi 5108320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 510974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 511074b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 511174b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 511274b97a6cSmrgthen : 511374b97a6cSmrg printf %s "(cached) " >&6 511474b97a6cSmrgelse $as_nop 5115320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5116320e696bSmrg/* end confdefs.h. */ 5117320e696bSmrgint i; 5118320e696bSmrg_ACEOF 511974b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 512074b97a6cSmrgthen : 5121320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 512274b97a6cSmrgelse $as_nop 5123320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 5124320e696bSmrgfi 512574b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5126320e696bSmrgfi 512774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 512874b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 512974a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5130320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5131320e696bSmrgfi 5132320e696bSmrg 5133320e696bSmrgfound="no" 5134320e696bSmrg 5135320e696bSmrg if test $found = "no" ; then 513606ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5137320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5138320e696bSmrg fi 5139320e696bSmrg 514006ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5141320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5142320e696bSmrg fi 5143320e696bSmrg 514474a3f230Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 5145320e696bSmrg 514674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 514774b97a6cSmrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 514874a3f230Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 514974b97a6cSmrg if eval test \${$cacheid+y} 515074b97a6cSmrgthen : 515174b97a6cSmrg printf %s "(cached) " >&6 515274b97a6cSmrgelse $as_nop 5153320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5154320e696bSmrg/* end confdefs.h. */ 5155320e696bSmrgint i; 5156320e696bSmrgint 515774b97a6cSmrgmain (void) 5158320e696bSmrg{ 5159320e696bSmrg 5160320e696bSmrg ; 5161320e696bSmrg return 0; 5162320e696bSmrg} 5163320e696bSmrg_ACEOF 516474b97a6cSmrgif ac_fn_c_try_link "$LINENO" 516574b97a6cSmrgthen : 516674a3f230Smrg eval $cacheid=yes 516774b97a6cSmrgelse $as_nop 516874a3f230Smrg eval $cacheid=no 5169320e696bSmrgfi 517074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5171320e696bSmrg conftest$ac_exeext conftest.$ac_ext 5172320e696bSmrgfi 5173320e696bSmrg 5174320e696bSmrg 5175320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5176320e696bSmrg 517774a3f230Smrg eval supported=\$$cacheid 517874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 517974b97a6cSmrgprintf "%s\n" "$supported" >&6; } 5180320e696bSmrg if test "$supported" = "yes" ; then 518174a3f230Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5182320e696bSmrg found="yes" 5183320e696bSmrg fi 5184320e696bSmrg fi 5185320e696bSmrg 5186320e696bSmrg 5187320e696bSmrg 5188320e696bSmrg 5189320e696bSmrg 5190320e696bSmrg 5191320e696bSmrg 519274a3f230Smrg 519374a3f230Smrg 519474a3f230Smrg 519574a3f230Smrg 519674a3f230Smrg 519774a3f230Smrg 519874a3f230Smrg 519974a3f230Smrg 5200320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5201320e696bSmrg 520274a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5203320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 520474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 520574b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 520674b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 520774b97a6cSmrgthen : 520874b97a6cSmrg printf %s "(cached) " >&6 520974b97a6cSmrgelse $as_nop 5210320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5211320e696bSmrg/* end confdefs.h. */ 5212320e696bSmrgint i; 5213320e696bSmrg_ACEOF 521474b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 521574b97a6cSmrgthen : 5216320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 521774b97a6cSmrgelse $as_nop 5218320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 5219320e696bSmrgfi 522074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5221320e696bSmrgfi 522274b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 522374b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 522474a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5225320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 52265e358ecaSmrgfi 52275e358ecaSmrg 522874a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 522974a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5230320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52315e358ecaSmrg fi 5232320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 523374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 523474b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 523574b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 523674b97a6cSmrgthen : 523774b97a6cSmrg printf %s "(cached) " >&6 523874b97a6cSmrgelse $as_nop 5239320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5240320e696bSmrg/* end confdefs.h. */ 5241320e696bSmrgint i; 5242320e696bSmrg_ACEOF 524374b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 524474b97a6cSmrgthen : 5245320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 524674b97a6cSmrgelse $as_nop 5247320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 5248320e696bSmrgfi 524974b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 52505e358ecaSmrgfi 525174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 525274b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 525374a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5254320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5255320e696bSmrgfi 5256320e696bSmrg 5257320e696bSmrgfound="no" 5258320e696bSmrg 5259320e696bSmrg if test $found = "no" ; then 526006ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5261320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5262320e696bSmrg fi 5263320e696bSmrg 526406ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5265320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5266320e696bSmrg fi 5267320e696bSmrg 526874a3f230Smrg CFLAGS="$CFLAGS -Wformat=2" 5269320e696bSmrg 527074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 527174b97a6cSmrgprintf %s "checking if $CC supports -Wformat=2... " >&6; } 527206ef0fecSmrg cacheid=xorg_cv_cc_flag__Wformat_2 527374b97a6cSmrg if eval test \${$cacheid+y} 527474b97a6cSmrgthen : 527574b97a6cSmrg printf %s "(cached) " >&6 527674b97a6cSmrgelse $as_nop 5277320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5278320e696bSmrg/* end confdefs.h. */ 5279320e696bSmrgint i; 5280320e696bSmrgint 528174b97a6cSmrgmain (void) 5282320e696bSmrg{ 5283320e696bSmrg 5284320e696bSmrg ; 5285320e696bSmrg return 0; 5286320e696bSmrg} 5287320e696bSmrg_ACEOF 528874b97a6cSmrgif ac_fn_c_try_link "$LINENO" 528974b97a6cSmrgthen : 529074a3f230Smrg eval $cacheid=yes 529174b97a6cSmrgelse $as_nop 529274a3f230Smrg eval $cacheid=no 5293320e696bSmrgfi 529474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5295320e696bSmrg conftest$ac_exeext conftest.$ac_ext 5296320e696bSmrgfi 5297320e696bSmrg 5298320e696bSmrg 5299320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5300320e696bSmrg 530174a3f230Smrg eval supported=\$$cacheid 530274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 530374b97a6cSmrgprintf "%s\n" "$supported" >&6; } 5304320e696bSmrg if test "$supported" = "yes" ; then 530574a3f230Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 530674a3f230Smrg found="yes" 530774a3f230Smrg fi 530874a3f230Smrg fi 530974a3f230Smrg 531074a3f230Smrg if test $found = "no" ; then 531106ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 531274a3f230Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 531374a3f230Smrg fi 531474a3f230Smrg 531506ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 531674a3f230Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 531774a3f230Smrg fi 531874a3f230Smrg 531974a3f230Smrg CFLAGS="$CFLAGS -Wformat" 532074a3f230Smrg 532174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 532274b97a6cSmrgprintf %s "checking if $CC supports -Wformat... " >&6; } 532374a3f230Smrg cacheid=xorg_cv_cc_flag__Wformat 532474b97a6cSmrg if eval test \${$cacheid+y} 532574b97a6cSmrgthen : 532674b97a6cSmrg printf %s "(cached) " >&6 532774b97a6cSmrgelse $as_nop 532874a3f230Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 532974a3f230Smrg/* end confdefs.h. */ 533074a3f230Smrgint i; 533174a3f230Smrgint 533274b97a6cSmrgmain (void) 533374a3f230Smrg{ 533474a3f230Smrg 533574a3f230Smrg ; 533674a3f230Smrg return 0; 533774a3f230Smrg} 533874a3f230Smrg_ACEOF 533974b97a6cSmrgif ac_fn_c_try_link "$LINENO" 534074b97a6cSmrgthen : 534174a3f230Smrg eval $cacheid=yes 534274b97a6cSmrgelse $as_nop 534374a3f230Smrg eval $cacheid=no 534474a3f230Smrgfi 534574b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 534674a3f230Smrg conftest$ac_exeext conftest.$ac_ext 534774a3f230Smrgfi 534874a3f230Smrg 534974a3f230Smrg 535074a3f230Smrg CFLAGS="$xorg_testset_save_CFLAGS" 535174a3f230Smrg 535274a3f230Smrg eval supported=\$$cacheid 535374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 535474b97a6cSmrgprintf "%s\n" "$supported" >&6; } 535574a3f230Smrg if test "$supported" = "yes" ; then 535674a3f230Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5357320e696bSmrg found="yes" 5358320e696bSmrg fi 5359320e696bSmrg fi 5360320e696bSmrg 5361320e696bSmrg 5362320e696bSmrg 5363320e696bSmrg 5364320e696bSmrg 5365320e696bSmrg 5366320e696bSmrg 536774a3f230Smrg 536874a3f230Smrg 536974a3f230Smrg 537074a3f230Smrg 537174a3f230Smrg 537274a3f230Smrg 537374a3f230Smrg 537474a3f230Smrg 537574a3f230Smrg 537674a3f230Smrg 5377320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5378320e696bSmrg 537974a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5380320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 538174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 538274b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 538374b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 538474b97a6cSmrgthen : 538574b97a6cSmrg printf %s "(cached) " >&6 538674b97a6cSmrgelse $as_nop 5387320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5388320e696bSmrg/* end confdefs.h. */ 5389320e696bSmrgint i; 5390320e696bSmrg_ACEOF 539174b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 539274b97a6cSmrgthen : 5393320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 539474b97a6cSmrgelse $as_nop 5395320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 5396320e696bSmrgfi 539774b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5398320e696bSmrgfi 539974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 540074b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 540174a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5402320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5403320e696bSmrgfi 5404320e696bSmrg 540574a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 540674a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5407320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5408320e696bSmrg fi 5409320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 541074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 541174b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 541274b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 541374b97a6cSmrgthen : 541474b97a6cSmrg printf %s "(cached) " >&6 541574b97a6cSmrgelse $as_nop 5416320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5417320e696bSmrg/* end confdefs.h. */ 5418320e696bSmrgint i; 5419320e696bSmrg_ACEOF 542074b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 542174b97a6cSmrgthen : 5422320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 542374b97a6cSmrgelse $as_nop 5424320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 5425320e696bSmrgfi 542674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5427320e696bSmrgfi 542874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 542974b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 543074a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5431320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5432320e696bSmrgfi 5433320e696bSmrg 5434320e696bSmrgfound="no" 5435320e696bSmrg 5436320e696bSmrg if test $found = "no" ; then 543706ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5438320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5439320e696bSmrg fi 5440320e696bSmrg 544106ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5442320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5443320e696bSmrg fi 5444320e696bSmrg 544574a3f230Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 5446320e696bSmrg 544774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 544874b97a6cSmrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 544974a3f230Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 545074b97a6cSmrg if eval test \${$cacheid+y} 545174b97a6cSmrgthen : 545274b97a6cSmrg printf %s "(cached) " >&6 545374b97a6cSmrgelse $as_nop 5454320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5455320e696bSmrg/* end confdefs.h. */ 5456320e696bSmrgint i; 5457320e696bSmrgint 545874b97a6cSmrgmain (void) 5459320e696bSmrg{ 5460320e696bSmrg 5461320e696bSmrg ; 5462320e696bSmrg return 0; 5463320e696bSmrg} 5464320e696bSmrg_ACEOF 546574b97a6cSmrgif ac_fn_c_try_link "$LINENO" 546674b97a6cSmrgthen : 546774a3f230Smrg eval $cacheid=yes 546874b97a6cSmrgelse $as_nop 546974a3f230Smrg eval $cacheid=no 5470320e696bSmrgfi 547174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5472320e696bSmrg conftest$ac_exeext conftest.$ac_ext 5473320e696bSmrgfi 5474320e696bSmrg 5475320e696bSmrg 5476320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5477320e696bSmrg 547874a3f230Smrg eval supported=\$$cacheid 547974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 548074b97a6cSmrgprintf "%s\n" "$supported" >&6; } 5481320e696bSmrg if test "$supported" = "yes" ; then 548274a3f230Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5483320e696bSmrg found="yes" 5484320e696bSmrg fi 5485320e696bSmrg fi 5486320e696bSmrg 5487320e696bSmrg 5488320e696bSmrg 5489320e696bSmrg 5490320e696bSmrg 5491320e696bSmrg 5492320e696bSmrg 549374a3f230Smrg 549474a3f230Smrg 549574a3f230Smrg 549674a3f230Smrg 549774a3f230Smrg 549874a3f230Smrg 549974a3f230Smrg 550074a3f230Smrg 5501320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5502320e696bSmrg 550374a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5504320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 550574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 550674b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 550774b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 550874b97a6cSmrgthen : 550974b97a6cSmrg printf %s "(cached) " >&6 551074b97a6cSmrgelse $as_nop 5511320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5512320e696bSmrg/* end confdefs.h. */ 5513320e696bSmrgint i; 5514320e696bSmrg_ACEOF 551574b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 551674b97a6cSmrgthen : 5517320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 551874b97a6cSmrgelse $as_nop 5519320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 5520320e696bSmrgfi 552174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5522320e696bSmrgfi 552374b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 552474b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 552574a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5526320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5527320e696bSmrgfi 5528320e696bSmrg 552974a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 553074a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5531320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5532320e696bSmrg fi 5533320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 553474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 553574b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 553674b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 553774b97a6cSmrgthen : 553874b97a6cSmrg printf %s "(cached) " >&6 553974b97a6cSmrgelse $as_nop 5540320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5541320e696bSmrg/* end confdefs.h. */ 5542320e696bSmrgint i; 5543320e696bSmrg_ACEOF 554474b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 554574b97a6cSmrgthen : 5546320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 554774b97a6cSmrgelse $as_nop 5548320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 5549320e696bSmrgfi 555074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5551320e696bSmrgfi 555274b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 555374b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 555474a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5555320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5556320e696bSmrgfi 5557320e696bSmrg 5558320e696bSmrgfound="no" 5559320e696bSmrg 5560320e696bSmrg if test $found = "no" ; then 556106ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5562320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5563320e696bSmrg fi 5564320e696bSmrg 556506ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5566320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5567320e696bSmrg fi 5568320e696bSmrg 556974a3f230Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 5570320e696bSmrg 557174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 557274b97a6cSmrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 557374a3f230Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 557474b97a6cSmrg if eval test \${$cacheid+y} 557574b97a6cSmrgthen : 557674b97a6cSmrg printf %s "(cached) " >&6 557774b97a6cSmrgelse $as_nop 5578320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5579320e696bSmrg/* end confdefs.h. */ 5580320e696bSmrgint i; 5581320e696bSmrgint 558274b97a6cSmrgmain (void) 5583320e696bSmrg{ 5584320e696bSmrg 5585320e696bSmrg ; 5586320e696bSmrg return 0; 5587320e696bSmrg} 5588320e696bSmrg_ACEOF 558974b97a6cSmrgif ac_fn_c_try_link "$LINENO" 559074b97a6cSmrgthen : 559174a3f230Smrg eval $cacheid=yes 559274b97a6cSmrgelse $as_nop 559374a3f230Smrg eval $cacheid=no 5594320e696bSmrgfi 559574b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5596320e696bSmrg conftest$ac_exeext conftest.$ac_ext 5597320e696bSmrgfi 5598320e696bSmrg 5599320e696bSmrg 5600320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5601320e696bSmrg 560274a3f230Smrg eval supported=\$$cacheid 560374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 560474b97a6cSmrgprintf "%s\n" "$supported" >&6; } 5605320e696bSmrg if test "$supported" = "yes" ; then 560674a3f230Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5607320e696bSmrg found="yes" 5608320e696bSmrg fi 5609320e696bSmrg fi 5610320e696bSmrg 5611320e696bSmrg 5612320e696bSmrg 5613320e696bSmrg 5614320e696bSmrg 5615320e696bSmrg 5616320e696bSmrg 561774a3f230Smrg 561874a3f230Smrg 561974a3f230Smrg 562074a3f230Smrg 562174a3f230Smrg 562274a3f230Smrg 562374a3f230Smrg 562474a3f230Smrg 5625320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5626320e696bSmrg 562774a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5628320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 562974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 563074b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 563174b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 563274b97a6cSmrgthen : 563374b97a6cSmrg printf %s "(cached) " >&6 563474b97a6cSmrgelse $as_nop 5635320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636320e696bSmrg/* end confdefs.h. */ 5637320e696bSmrgint i; 5638320e696bSmrg_ACEOF 563974b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 564074b97a6cSmrgthen : 5641320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 564274b97a6cSmrgelse $as_nop 5643320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 5644320e696bSmrgfi 564574b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5646320e696bSmrgfi 564774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 564874b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 564974a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5650320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5651320e696bSmrgfi 5652320e696bSmrg 565374a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 565474a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5655320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5656320e696bSmrg fi 5657320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 565874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 565974b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 566074b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 566174b97a6cSmrgthen : 566274b97a6cSmrg printf %s "(cached) " >&6 566374b97a6cSmrgelse $as_nop 5664320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5665320e696bSmrg/* end confdefs.h. */ 5666320e696bSmrgint i; 5667320e696bSmrg_ACEOF 566874b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 566974b97a6cSmrgthen : 5670320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 567174b97a6cSmrgelse $as_nop 5672320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 5673320e696bSmrgfi 567474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5675320e696bSmrgfi 567674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 567774b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 567874a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5679320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5680320e696bSmrgfi 5681320e696bSmrg 5682320e696bSmrgfound="no" 5683320e696bSmrg 5684320e696bSmrg if test $found = "no" ; then 568506ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5686320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5687320e696bSmrg fi 5688320e696bSmrg 568906ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5690320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5691320e696bSmrg fi 5692320e696bSmrg 569374a3f230Smrg CFLAGS="$CFLAGS -Wnested-externs" 5694320e696bSmrg 569574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 569674b97a6cSmrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; } 569774a3f230Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 569874b97a6cSmrg if eval test \${$cacheid+y} 569974b97a6cSmrgthen : 570074b97a6cSmrg printf %s "(cached) " >&6 570174b97a6cSmrgelse $as_nop 5702320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5703320e696bSmrg/* end confdefs.h. */ 5704320e696bSmrgint i; 5705320e696bSmrgint 570674b97a6cSmrgmain (void) 5707320e696bSmrg{ 5708320e696bSmrg 5709320e696bSmrg ; 5710320e696bSmrg return 0; 5711320e696bSmrg} 5712320e696bSmrg_ACEOF 571374b97a6cSmrgif ac_fn_c_try_link "$LINENO" 571474b97a6cSmrgthen : 571574a3f230Smrg eval $cacheid=yes 571674b97a6cSmrgelse $as_nop 571774a3f230Smrg eval $cacheid=no 5718320e696bSmrgfi 571974b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5720320e696bSmrg conftest$ac_exeext conftest.$ac_ext 5721320e696bSmrgfi 5722320e696bSmrg 5723320e696bSmrg 5724320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5725320e696bSmrg 572674a3f230Smrg eval supported=\$$cacheid 572774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 572874b97a6cSmrgprintf "%s\n" "$supported" >&6; } 5729320e696bSmrg if test "$supported" = "yes" ; then 573074a3f230Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5731320e696bSmrg found="yes" 5732320e696bSmrg fi 5733320e696bSmrg fi 5734320e696bSmrg 5735320e696bSmrg 5736320e696bSmrg 5737320e696bSmrg 5738320e696bSmrg 5739320e696bSmrg 5740320e696bSmrg 574174a3f230Smrg 574274a3f230Smrg 574374a3f230Smrg 574474a3f230Smrg 574574a3f230Smrg 574674a3f230Smrg 574774a3f230Smrg 574874a3f230Smrg 5749320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5750320e696bSmrg 575174a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5752320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 575374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 575474b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 575574b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 575674b97a6cSmrgthen : 575774b97a6cSmrg printf %s "(cached) " >&6 575874b97a6cSmrgelse $as_nop 5759320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5760320e696bSmrg/* end confdefs.h. */ 5761320e696bSmrgint i; 5762320e696bSmrg_ACEOF 576374b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 576474b97a6cSmrgthen : 5765320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 576674b97a6cSmrgelse $as_nop 5767320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 5768320e696bSmrgfi 576974b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5770320e696bSmrgfi 577174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 577274b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 577374a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5774320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5775320e696bSmrgfi 5776320e696bSmrg 577774a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 577874a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5779320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5780320e696bSmrg fi 5781320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 578274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 578374b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 578474b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 578574b97a6cSmrgthen : 578674b97a6cSmrg printf %s "(cached) " >&6 578774b97a6cSmrgelse $as_nop 5788320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5789320e696bSmrg/* end confdefs.h. */ 5790320e696bSmrgint i; 5791320e696bSmrg_ACEOF 579274b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 579374b97a6cSmrgthen : 5794320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 579574b97a6cSmrgelse $as_nop 5796320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 5797320e696bSmrgfi 579874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5799320e696bSmrgfi 580074b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 580174b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 580274a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5803320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5804320e696bSmrgfi 5805320e696bSmrg 5806320e696bSmrgfound="no" 5807320e696bSmrg 5808320e696bSmrg if test $found = "no" ; then 580906ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5810320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5811320e696bSmrg fi 5812320e696bSmrg 581306ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5814320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5815320e696bSmrg fi 5816320e696bSmrg 581774a3f230Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 5818320e696bSmrg 581974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 582074b97a6cSmrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 582174a3f230Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 582274b97a6cSmrg if eval test \${$cacheid+y} 582374b97a6cSmrgthen : 582474b97a6cSmrg printf %s "(cached) " >&6 582574b97a6cSmrgelse $as_nop 5826320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5827320e696bSmrg/* end confdefs.h. */ 5828320e696bSmrgint i; 5829320e696bSmrgint 583074b97a6cSmrgmain (void) 5831320e696bSmrg{ 5832320e696bSmrg 5833320e696bSmrg ; 5834320e696bSmrg return 0; 5835320e696bSmrg} 5836320e696bSmrg_ACEOF 583774b97a6cSmrgif ac_fn_c_try_link "$LINENO" 583874b97a6cSmrgthen : 583974a3f230Smrg eval $cacheid=yes 584074b97a6cSmrgelse $as_nop 584174a3f230Smrg eval $cacheid=no 5842320e696bSmrgfi 584374b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5844320e696bSmrg conftest$ac_exeext conftest.$ac_ext 5845320e696bSmrgfi 5846320e696bSmrg 5847320e696bSmrg 5848320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5849320e696bSmrg 585074a3f230Smrg eval supported=\$$cacheid 585174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 585274b97a6cSmrgprintf "%s\n" "$supported" >&6; } 5853320e696bSmrg if test "$supported" = "yes" ; then 585474a3f230Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5855320e696bSmrg found="yes" 5856320e696bSmrg fi 5857320e696bSmrg fi 5858320e696bSmrg 5859320e696bSmrg 5860320e696bSmrg 5861320e696bSmrg 5862320e696bSmrg 5863320e696bSmrg 5864320e696bSmrg 5865320e696bSmrg 5866320e696bSmrg 5867320e696bSmrg 5868320e696bSmrg 5869320e696bSmrg 5870320e696bSmrg 5871320e696bSmrg 5872320e696bSmrg 5873320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5874320e696bSmrg 587574a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5876320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 587774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 587874b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 587974b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 588074b97a6cSmrgthen : 588174b97a6cSmrg printf %s "(cached) " >&6 588274b97a6cSmrgelse $as_nop 5883320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5884320e696bSmrg/* end confdefs.h. */ 5885320e696bSmrgint i; 5886320e696bSmrg_ACEOF 588774b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 588874b97a6cSmrgthen : 5889320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 589074b97a6cSmrgelse $as_nop 5891320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 5892320e696bSmrgfi 589374b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5894320e696bSmrgfi 589574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 589674b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 589774a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5898320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5899320e696bSmrgfi 5900320e696bSmrg 590174a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 590274a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5903320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5904320e696bSmrg fi 5905320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 590674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 590774b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 590874b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 590974b97a6cSmrgthen : 591074b97a6cSmrg printf %s "(cached) " >&6 591174b97a6cSmrgelse $as_nop 5912320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5913320e696bSmrg/* end confdefs.h. */ 5914320e696bSmrgint i; 5915320e696bSmrg_ACEOF 591674b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 591774b97a6cSmrgthen : 5918320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 591974b97a6cSmrgelse $as_nop 5920320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 5921320e696bSmrgfi 592274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5923320e696bSmrgfi 592474b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 592574b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 592674a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5927320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5928320e696bSmrgfi 5929320e696bSmrg 5930320e696bSmrgfound="no" 5931320e696bSmrg 5932320e696bSmrg if test $found = "no" ; then 593306ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5934320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5935320e696bSmrg fi 5936320e696bSmrg 593706ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5938320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5939320e696bSmrg fi 5940320e696bSmrg 5941320e696bSmrg CFLAGS="$CFLAGS -Wold-style-definition" 5942320e696bSmrg 594374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 594474b97a6cSmrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; } 594574a3f230Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 594674b97a6cSmrg if eval test \${$cacheid+y} 594774b97a6cSmrgthen : 594874b97a6cSmrg printf %s "(cached) " >&6 594974b97a6cSmrgelse $as_nop 5950320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5951320e696bSmrg/* end confdefs.h. */ 5952320e696bSmrgint i; 5953320e696bSmrgint 595474b97a6cSmrgmain (void) 5955320e696bSmrg{ 5956320e696bSmrg 5957320e696bSmrg ; 5958320e696bSmrg return 0; 5959320e696bSmrg} 5960320e696bSmrg_ACEOF 596174b97a6cSmrgif ac_fn_c_try_link "$LINENO" 596274b97a6cSmrgthen : 596374a3f230Smrg eval $cacheid=yes 596474b97a6cSmrgelse $as_nop 596574a3f230Smrg eval $cacheid=no 5966320e696bSmrgfi 596774b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5968320e696bSmrg conftest$ac_exeext conftest.$ac_ext 5969320e696bSmrgfi 5970320e696bSmrg 5971320e696bSmrg 5972320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5973320e696bSmrg 597474a3f230Smrg eval supported=\$$cacheid 597574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 597674b97a6cSmrgprintf "%s\n" "$supported" >&6; } 5977320e696bSmrg if test "$supported" = "yes" ; then 5978320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5979320e696bSmrg found="yes" 5980320e696bSmrg fi 5981320e696bSmrg fi 5982320e696bSmrg 598306ef0fecSmrg if test $found = "no" ; then 598406ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 598506ef0fecSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 598606ef0fecSmrg fi 598706ef0fecSmrg 598806ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 598906ef0fecSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 599006ef0fecSmrg fi 599106ef0fecSmrg 599206ef0fecSmrg CFLAGS="$CFLAGS -fd" 599306ef0fecSmrg 599474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 599574b97a6cSmrgprintf %s "checking if $CC supports -fd... " >&6; } 599606ef0fecSmrg cacheid=xorg_cv_cc_flag__fd 599774b97a6cSmrg if eval test \${$cacheid+y} 599874b97a6cSmrgthen : 599974b97a6cSmrg printf %s "(cached) " >&6 600074b97a6cSmrgelse $as_nop 600106ef0fecSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 600206ef0fecSmrg/* end confdefs.h. */ 600306ef0fecSmrgint i; 600406ef0fecSmrgint 600574b97a6cSmrgmain (void) 600606ef0fecSmrg{ 600706ef0fecSmrg 600806ef0fecSmrg ; 600906ef0fecSmrg return 0; 601006ef0fecSmrg} 601106ef0fecSmrg_ACEOF 601274b97a6cSmrgif ac_fn_c_try_link "$LINENO" 601374b97a6cSmrgthen : 601406ef0fecSmrg eval $cacheid=yes 601574b97a6cSmrgelse $as_nop 601606ef0fecSmrg eval $cacheid=no 601706ef0fecSmrgfi 601874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 601906ef0fecSmrg conftest$ac_exeext conftest.$ac_ext 602006ef0fecSmrgfi 602106ef0fecSmrg 602206ef0fecSmrg 602306ef0fecSmrg CFLAGS="$xorg_testset_save_CFLAGS" 602406ef0fecSmrg 602506ef0fecSmrg eval supported=\$$cacheid 602674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 602774b97a6cSmrgprintf "%s\n" "$supported" >&6; } 602806ef0fecSmrg if test "$supported" = "yes" ; then 602906ef0fecSmrg BASE_CFLAGS="$BASE_CFLAGS -fd" 603006ef0fecSmrg found="yes" 603106ef0fecSmrg fi 603206ef0fecSmrg fi 603306ef0fecSmrg 6034320e696bSmrg 6035320e696bSmrg 6036320e696bSmrg 6037320e696bSmrg 6038320e696bSmrg 6039320e696bSmrg 604074a3f230Smrg 604174a3f230Smrg 604274a3f230Smrg 604374a3f230Smrg 604474a3f230Smrg 604574a3f230Smrg 604674a3f230Smrg 604774a3f230Smrg 6048320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6049320e696bSmrg 605074a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6051320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 605274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 605374b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 605474b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 605574b97a6cSmrgthen : 605674b97a6cSmrg printf %s "(cached) " >&6 605774b97a6cSmrgelse $as_nop 6058320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6059320e696bSmrg/* end confdefs.h. */ 6060320e696bSmrgint i; 6061320e696bSmrg_ACEOF 606274b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 606374b97a6cSmrgthen : 6064320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 606574b97a6cSmrgelse $as_nop 6066320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 6067320e696bSmrgfi 606874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6069320e696bSmrgfi 607074b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 607174b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 607274a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6073320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6074320e696bSmrgfi 6075320e696bSmrg 607674a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 607774a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6078320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6079320e696bSmrg fi 6080320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 608174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 608274b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 608374b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 608474b97a6cSmrgthen : 608574b97a6cSmrg printf %s "(cached) " >&6 608674b97a6cSmrgelse $as_nop 6087320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6088320e696bSmrg/* end confdefs.h. */ 6089320e696bSmrgint i; 6090320e696bSmrg_ACEOF 609174b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 609274b97a6cSmrgthen : 6093320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 609474b97a6cSmrgelse $as_nop 6095320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6096320e696bSmrgfi 609774b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6098320e696bSmrgfi 609974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 610074b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 610174a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6102320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6103320e696bSmrgfi 6104320e696bSmrg 6105320e696bSmrgfound="no" 6106320e696bSmrg 6107320e696bSmrg if test $found = "no" ; then 610806ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6109320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6110320e696bSmrg fi 6111320e696bSmrg 611206ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6113320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6114320e696bSmrg fi 6115320e696bSmrg 6116320e696bSmrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6117320e696bSmrg 611874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 611974b97a6cSmrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 612074a3f230Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 612174b97a6cSmrg if eval test \${$cacheid+y} 612274b97a6cSmrgthen : 612374b97a6cSmrg printf %s "(cached) " >&6 612474b97a6cSmrgelse $as_nop 6125320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6126320e696bSmrg/* end confdefs.h. */ 6127320e696bSmrgint i; 6128320e696bSmrgint 612974b97a6cSmrgmain (void) 6130320e696bSmrg{ 6131320e696bSmrg 6132320e696bSmrg ; 6133320e696bSmrg return 0; 6134320e696bSmrg} 6135320e696bSmrg_ACEOF 613674b97a6cSmrgif ac_fn_c_try_link "$LINENO" 613774b97a6cSmrgthen : 613874a3f230Smrg eval $cacheid=yes 613974b97a6cSmrgelse $as_nop 614074a3f230Smrg eval $cacheid=no 6141320e696bSmrgfi 614274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6143320e696bSmrg conftest$ac_exeext conftest.$ac_ext 6144320e696bSmrgfi 6145320e696bSmrg 6146320e696bSmrg 6147320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6148320e696bSmrg 614974a3f230Smrg eval supported=\$$cacheid 615074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 615174b97a6cSmrgprintf "%s\n" "$supported" >&6; } 6152320e696bSmrg if test "$supported" = "yes" ; then 6153320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6154320e696bSmrg found="yes" 6155320e696bSmrg fi 6156320e696bSmrg fi 6157320e696bSmrg 6158320e696bSmrg 6159320e696bSmrg 616074a3f230Smrg 616174a3f230Smrg 6162320e696bSmrg# This chunk adds additional warnings that could catch undesired effects. 6163320e696bSmrg 6164320e696bSmrg 6165320e696bSmrg 6166320e696bSmrg 6167320e696bSmrg 616874a3f230Smrg 616974a3f230Smrg 617074a3f230Smrg 617174a3f230Smrg 617274a3f230Smrg 617374a3f230Smrg 617474a3f230Smrg 617574a3f230Smrg 6176320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6177320e696bSmrg 617874a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6179320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 618074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 618174b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 618274b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 618374b97a6cSmrgthen : 618474b97a6cSmrg printf %s "(cached) " >&6 618574b97a6cSmrgelse $as_nop 6186320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187320e696bSmrg/* end confdefs.h. */ 6188320e696bSmrgint i; 6189320e696bSmrg_ACEOF 619074b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 619174b97a6cSmrgthen : 6192320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 619374b97a6cSmrgelse $as_nop 6194320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 6195320e696bSmrgfi 619674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6197320e696bSmrgfi 619874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 619974b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 620074a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6201320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6202320e696bSmrgfi 6203320e696bSmrg 620474a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 620574a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6206320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6207320e696bSmrg fi 6208320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 620974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 621074b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 621174b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 621274b97a6cSmrgthen : 621374b97a6cSmrg printf %s "(cached) " >&6 621474b97a6cSmrgelse $as_nop 6215320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6216320e696bSmrg/* end confdefs.h. */ 6217320e696bSmrgint i; 6218320e696bSmrg_ACEOF 621974b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 622074b97a6cSmrgthen : 6221320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 622274b97a6cSmrgelse $as_nop 6223320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6224320e696bSmrgfi 622574b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6226320e696bSmrgfi 622774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 622874b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 622974a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6230320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6231320e696bSmrgfi 6232320e696bSmrg 6233320e696bSmrgfound="no" 6234320e696bSmrg 6235320e696bSmrg if test $found = "no" ; then 623606ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6237320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6238320e696bSmrg fi 6239320e696bSmrg 624006ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6241320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6242320e696bSmrg fi 6243320e696bSmrg 6244320e696bSmrg CFLAGS="$CFLAGS -Wunused" 6245320e696bSmrg 624674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 624774b97a6cSmrgprintf %s "checking if $CC supports -Wunused... " >&6; } 624874a3f230Smrg cacheid=xorg_cv_cc_flag__Wunused 624974b97a6cSmrg if eval test \${$cacheid+y} 625074b97a6cSmrgthen : 625174b97a6cSmrg printf %s "(cached) " >&6 625274b97a6cSmrgelse $as_nop 6253320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6254320e696bSmrg/* end confdefs.h. */ 6255320e696bSmrgint i; 6256320e696bSmrgint 625774b97a6cSmrgmain (void) 6258320e696bSmrg{ 6259320e696bSmrg 6260320e696bSmrg ; 6261320e696bSmrg return 0; 6262320e696bSmrg} 6263320e696bSmrg_ACEOF 626474b97a6cSmrgif ac_fn_c_try_link "$LINENO" 626574b97a6cSmrgthen : 626674a3f230Smrg eval $cacheid=yes 626774b97a6cSmrgelse $as_nop 626874a3f230Smrg eval $cacheid=no 6269320e696bSmrgfi 627074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6271320e696bSmrg conftest$ac_exeext conftest.$ac_ext 6272320e696bSmrgfi 6273320e696bSmrg 6274320e696bSmrg 6275320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6276320e696bSmrg 627774a3f230Smrg eval supported=\$$cacheid 627874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 627974b97a6cSmrgprintf "%s\n" "$supported" >&6; } 6280320e696bSmrg if test "$supported" = "yes" ; then 6281320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6282320e696bSmrg found="yes" 6283320e696bSmrg fi 6284320e696bSmrg fi 6285320e696bSmrg 6286320e696bSmrg 6287320e696bSmrg 6288320e696bSmrg 6289320e696bSmrg 6290320e696bSmrg 6291320e696bSmrg 629274a3f230Smrg 629374a3f230Smrg 629474a3f230Smrg 629574a3f230Smrg 629674a3f230Smrg 629774a3f230Smrg 629874a3f230Smrg 629974a3f230Smrg 6300320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6301320e696bSmrg 630274a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6303320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 630474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 630574b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 630674b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 630774b97a6cSmrgthen : 630874b97a6cSmrg printf %s "(cached) " >&6 630974b97a6cSmrgelse $as_nop 6310320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6311320e696bSmrg/* end confdefs.h. */ 6312320e696bSmrgint i; 6313320e696bSmrg_ACEOF 631474b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 631574b97a6cSmrgthen : 6316320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 631774b97a6cSmrgelse $as_nop 6318320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 6319320e696bSmrgfi 632074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6321320e696bSmrgfi 632274b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 632374b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 632474a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6325320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6326320e696bSmrgfi 6327320e696bSmrg 632874a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 632974a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6330320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6331320e696bSmrg fi 6332320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 633374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 633474b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 633574b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 633674b97a6cSmrgthen : 633774b97a6cSmrg printf %s "(cached) " >&6 633874b97a6cSmrgelse $as_nop 6339320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6340320e696bSmrg/* end confdefs.h. */ 6341320e696bSmrgint i; 6342320e696bSmrg_ACEOF 634374b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 634474b97a6cSmrgthen : 6345320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 634674b97a6cSmrgelse $as_nop 6347320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6348320e696bSmrgfi 634974b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6350320e696bSmrgfi 635174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 635274b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 635374a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6354320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6355320e696bSmrgfi 6356320e696bSmrg 6357320e696bSmrgfound="no" 6358320e696bSmrg 6359320e696bSmrg if test $found = "no" ; then 636006ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6361320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6362320e696bSmrg fi 6363320e696bSmrg 636406ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6365320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6366320e696bSmrg fi 6367320e696bSmrg 6368320e696bSmrg CFLAGS="$CFLAGS -Wuninitialized" 6369320e696bSmrg 637074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 637174b97a6cSmrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; } 637274a3f230Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 637374b97a6cSmrg if eval test \${$cacheid+y} 637474b97a6cSmrgthen : 637574b97a6cSmrg printf %s "(cached) " >&6 637674b97a6cSmrgelse $as_nop 6377320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6378320e696bSmrg/* end confdefs.h. */ 6379320e696bSmrgint i; 6380320e696bSmrgint 638174b97a6cSmrgmain (void) 6382320e696bSmrg{ 6383320e696bSmrg 6384320e696bSmrg ; 6385320e696bSmrg return 0; 6386320e696bSmrg} 6387320e696bSmrg_ACEOF 638874b97a6cSmrgif ac_fn_c_try_link "$LINENO" 638974b97a6cSmrgthen : 639074a3f230Smrg eval $cacheid=yes 639174b97a6cSmrgelse $as_nop 639274a3f230Smrg eval $cacheid=no 6393320e696bSmrgfi 639474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6395320e696bSmrg conftest$ac_exeext conftest.$ac_ext 6396320e696bSmrgfi 6397320e696bSmrg 6398320e696bSmrg 6399320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6400320e696bSmrg 640174a3f230Smrg eval supported=\$$cacheid 640274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 640374b97a6cSmrgprintf "%s\n" "$supported" >&6; } 6404320e696bSmrg if test "$supported" = "yes" ; then 6405320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6406320e696bSmrg found="yes" 6407320e696bSmrg fi 6408320e696bSmrg fi 6409320e696bSmrg 6410320e696bSmrg 6411320e696bSmrg 6412320e696bSmrg 6413320e696bSmrg 6414320e696bSmrg 6415320e696bSmrg 641674a3f230Smrg 641774a3f230Smrg 641874a3f230Smrg 641974a3f230Smrg 642074a3f230Smrg 642174a3f230Smrg 642274a3f230Smrg 642374a3f230Smrg 6424320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6425320e696bSmrg 642674a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6427320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 642874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 642974b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 643074b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 643174b97a6cSmrgthen : 643274b97a6cSmrg printf %s "(cached) " >&6 643374b97a6cSmrgelse $as_nop 6434320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6435320e696bSmrg/* end confdefs.h. */ 6436320e696bSmrgint i; 6437320e696bSmrg_ACEOF 643874b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 643974b97a6cSmrgthen : 6440320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 644174b97a6cSmrgelse $as_nop 6442320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 6443320e696bSmrgfi 644474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6445320e696bSmrgfi 644674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 644774b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 644874a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6449320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6450320e696bSmrgfi 6451320e696bSmrg 645274a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 645374a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6454320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6455320e696bSmrg fi 6456320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 645774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 645874b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 645974b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 646074b97a6cSmrgthen : 646174b97a6cSmrg printf %s "(cached) " >&6 646274b97a6cSmrgelse $as_nop 6463320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6464320e696bSmrg/* end confdefs.h. */ 6465320e696bSmrgint i; 6466320e696bSmrg_ACEOF 646774b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 646874b97a6cSmrgthen : 6469320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 647074b97a6cSmrgelse $as_nop 6471320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6472320e696bSmrgfi 647374b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6474320e696bSmrgfi 647574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 647674b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 647774a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6478320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6479320e696bSmrgfi 6480320e696bSmrg 6481320e696bSmrgfound="no" 6482320e696bSmrg 6483320e696bSmrg if test $found = "no" ; then 648406ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6485320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6486320e696bSmrg fi 6487320e696bSmrg 648806ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6489320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6490320e696bSmrg fi 6491320e696bSmrg 6492320e696bSmrg CFLAGS="$CFLAGS -Wshadow" 6493320e696bSmrg 649474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 649574b97a6cSmrgprintf %s "checking if $CC supports -Wshadow... " >&6; } 649674a3f230Smrg cacheid=xorg_cv_cc_flag__Wshadow 649774b97a6cSmrg if eval test \${$cacheid+y} 649874b97a6cSmrgthen : 649974b97a6cSmrg printf %s "(cached) " >&6 650074b97a6cSmrgelse $as_nop 6501320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6502320e696bSmrg/* end confdefs.h. */ 6503320e696bSmrgint i; 6504320e696bSmrgint 650574b97a6cSmrgmain (void) 6506320e696bSmrg{ 6507320e696bSmrg 6508320e696bSmrg ; 6509320e696bSmrg return 0; 6510320e696bSmrg} 6511320e696bSmrg_ACEOF 651274b97a6cSmrgif ac_fn_c_try_link "$LINENO" 651374b97a6cSmrgthen : 651474a3f230Smrg eval $cacheid=yes 651574b97a6cSmrgelse $as_nop 651674a3f230Smrg eval $cacheid=no 6517320e696bSmrgfi 651874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6519320e696bSmrg conftest$ac_exeext conftest.$ac_ext 6520320e696bSmrgfi 6521320e696bSmrg 6522320e696bSmrg 6523320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6524320e696bSmrg 652574a3f230Smrg eval supported=\$$cacheid 652674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 652774b97a6cSmrgprintf "%s\n" "$supported" >&6; } 6528320e696bSmrg if test "$supported" = "yes" ; then 6529320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6530320e696bSmrg found="yes" 6531320e696bSmrg fi 6532320e696bSmrg fi 6533320e696bSmrg 6534320e696bSmrg 6535320e696bSmrg 6536320e696bSmrg 6537320e696bSmrg 6538320e696bSmrg 6539320e696bSmrg 654074a3f230Smrg 654174a3f230Smrg 654274a3f230Smrg 654374a3f230Smrg 654474a3f230Smrg 654574a3f230Smrg 654674a3f230Smrg 654774a3f230Smrg 6548320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6549320e696bSmrg 655074a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6551320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 655274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 655374b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 655474b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 655574b97a6cSmrgthen : 655674b97a6cSmrg printf %s "(cached) " >&6 655774b97a6cSmrgelse $as_nop 6558320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559320e696bSmrg/* end confdefs.h. */ 6560320e696bSmrgint i; 6561320e696bSmrg_ACEOF 656274b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 656374b97a6cSmrgthen : 6564320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 656574b97a6cSmrgelse $as_nop 6566320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 6567320e696bSmrgfi 656874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6569320e696bSmrgfi 657074b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 657174b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 657274a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6573320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6574320e696bSmrgfi 6575320e696bSmrg 657674a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 657774a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6578320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6579320e696bSmrg fi 6580320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 658174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 658274b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 658374b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 658474b97a6cSmrgthen : 658574b97a6cSmrg printf %s "(cached) " >&6 658674b97a6cSmrgelse $as_nop 6587320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6588320e696bSmrg/* end confdefs.h. */ 6589320e696bSmrgint i; 6590320e696bSmrg_ACEOF 659174b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 659274b97a6cSmrgthen : 6593320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 659474b97a6cSmrgelse $as_nop 6595320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6596320e696bSmrgfi 659774b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6598320e696bSmrgfi 659974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 660074b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 660174a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6602320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6603320e696bSmrgfi 6604320e696bSmrg 6605320e696bSmrgfound="no" 6606320e696bSmrg 6607320e696bSmrg if test $found = "no" ; then 660806ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6609320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6610320e696bSmrg fi 6611320e696bSmrg 661206ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6613320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6614320e696bSmrg fi 6615320e696bSmrg 661606ef0fecSmrg CFLAGS="$CFLAGS -Wmissing-noreturn" 6617320e696bSmrg 661874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 661974b97a6cSmrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 662006ef0fecSmrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 662174b97a6cSmrg if eval test \${$cacheid+y} 662274b97a6cSmrgthen : 662374b97a6cSmrg printf %s "(cached) " >&6 662474b97a6cSmrgelse $as_nop 6625320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6626320e696bSmrg/* end confdefs.h. */ 6627320e696bSmrgint i; 6628320e696bSmrgint 662974b97a6cSmrgmain (void) 6630320e696bSmrg{ 6631320e696bSmrg 6632320e696bSmrg ; 6633320e696bSmrg return 0; 6634320e696bSmrg} 6635320e696bSmrg_ACEOF 663674b97a6cSmrgif ac_fn_c_try_link "$LINENO" 663774b97a6cSmrgthen : 663874a3f230Smrg eval $cacheid=yes 663974b97a6cSmrgelse $as_nop 664074a3f230Smrg eval $cacheid=no 6641320e696bSmrgfi 664274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6643320e696bSmrg conftest$ac_exeext conftest.$ac_ext 6644320e696bSmrgfi 6645320e696bSmrg 6646320e696bSmrg 6647320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6648320e696bSmrg 664974a3f230Smrg eval supported=\$$cacheid 665074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 665174b97a6cSmrgprintf "%s\n" "$supported" >&6; } 6652320e696bSmrg if test "$supported" = "yes" ; then 665306ef0fecSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6654320e696bSmrg found="yes" 6655320e696bSmrg fi 6656320e696bSmrg fi 6657320e696bSmrg 6658320e696bSmrg 6659320e696bSmrg 6660320e696bSmrg 6661320e696bSmrg 6662320e696bSmrg 6663320e696bSmrg 666474a3f230Smrg 666574a3f230Smrg 666674a3f230Smrg 666774a3f230Smrg 666874a3f230Smrg 666974a3f230Smrg 667074a3f230Smrg 667174a3f230Smrg 6672320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6673320e696bSmrg 667474a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6675320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 667674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 667774b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 667874b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 667974b97a6cSmrgthen : 668074b97a6cSmrg printf %s "(cached) " >&6 668174b97a6cSmrgelse $as_nop 6682320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6683320e696bSmrg/* end confdefs.h. */ 6684320e696bSmrgint i; 6685320e696bSmrg_ACEOF 668674b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 668774b97a6cSmrgthen : 6688320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 668974b97a6cSmrgelse $as_nop 6690320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 6691320e696bSmrgfi 669274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6693320e696bSmrgfi 669474b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 669574b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 669674a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6697320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6698320e696bSmrgfi 6699320e696bSmrg 670074a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 670174a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6702320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6703320e696bSmrg fi 6704320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 670574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 670674b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 670774b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 670874b97a6cSmrgthen : 670974b97a6cSmrg printf %s "(cached) " >&6 671074b97a6cSmrgelse $as_nop 6711320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6712320e696bSmrg/* end confdefs.h. */ 6713320e696bSmrgint i; 6714320e696bSmrg_ACEOF 671574b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 671674b97a6cSmrgthen : 6717320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 671874b97a6cSmrgelse $as_nop 6719320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6720320e696bSmrgfi 672174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6722320e696bSmrgfi 672374b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 672474b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 672574a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6726320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6727320e696bSmrgfi 6728320e696bSmrg 6729320e696bSmrgfound="no" 6730320e696bSmrg 6731320e696bSmrg if test $found = "no" ; then 673206ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6733320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6734320e696bSmrg fi 6735320e696bSmrg 673606ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6737320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6738320e696bSmrg fi 6739320e696bSmrg 674006ef0fecSmrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 6741320e696bSmrg 674274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 674374b97a6cSmrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 674406ef0fecSmrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 674574b97a6cSmrg if eval test \${$cacheid+y} 674674b97a6cSmrgthen : 674774b97a6cSmrg printf %s "(cached) " >&6 674874b97a6cSmrgelse $as_nop 6749320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6750320e696bSmrg/* end confdefs.h. */ 6751320e696bSmrgint i; 6752320e696bSmrgint 675374b97a6cSmrgmain (void) 6754320e696bSmrg{ 6755320e696bSmrg 6756320e696bSmrg ; 6757320e696bSmrg return 0; 6758320e696bSmrg} 6759320e696bSmrg_ACEOF 676074b97a6cSmrgif ac_fn_c_try_link "$LINENO" 676174b97a6cSmrgthen : 676274a3f230Smrg eval $cacheid=yes 676374b97a6cSmrgelse $as_nop 676474a3f230Smrg eval $cacheid=no 6765320e696bSmrgfi 676674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6767320e696bSmrg conftest$ac_exeext conftest.$ac_ext 6768320e696bSmrgfi 6769320e696bSmrg 6770320e696bSmrg 6771320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6772320e696bSmrg 677374a3f230Smrg eval supported=\$$cacheid 677474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 677574b97a6cSmrgprintf "%s\n" "$supported" >&6; } 6776320e696bSmrg if test "$supported" = "yes" ; then 677706ef0fecSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6778320e696bSmrg found="yes" 6779320e696bSmrg fi 6780320e696bSmrg fi 6781320e696bSmrg 6782320e696bSmrg 6783320e696bSmrg 6784320e696bSmrg 6785320e696bSmrg 6786320e696bSmrg 6787320e696bSmrg 678874a3f230Smrg 678974a3f230Smrg 679074a3f230Smrg 679174a3f230Smrg 679274a3f230Smrg 679374a3f230Smrg 679474a3f230Smrg 679574a3f230Smrg 6796320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6797320e696bSmrg 679874a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6799320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 680074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 680174b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 680274b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 680374b97a6cSmrgthen : 680474b97a6cSmrg printf %s "(cached) " >&6 680574b97a6cSmrgelse $as_nop 6806320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6807320e696bSmrg/* end confdefs.h. */ 6808320e696bSmrgint i; 6809320e696bSmrg_ACEOF 681074b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 681174b97a6cSmrgthen : 6812320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 681374b97a6cSmrgelse $as_nop 6814320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 6815320e696bSmrgfi 681674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6817320e696bSmrgfi 681874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 681974b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 682074a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6821320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6822320e696bSmrgfi 6823320e696bSmrg 682474a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 682574a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6826320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6827320e696bSmrg fi 6828320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 682974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 683074b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 683174b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 683274b97a6cSmrgthen : 683374b97a6cSmrg printf %s "(cached) " >&6 683474b97a6cSmrgelse $as_nop 6835320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6836320e696bSmrg/* end confdefs.h. */ 6837320e696bSmrgint i; 6838320e696bSmrg_ACEOF 683974b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 684074b97a6cSmrgthen : 6841320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 684274b97a6cSmrgelse $as_nop 6843320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6844320e696bSmrgfi 684574b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6846320e696bSmrgfi 684774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 684874b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 684974a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6850320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6851320e696bSmrgfi 6852320e696bSmrg 6853320e696bSmrgfound="no" 6854320e696bSmrg 6855320e696bSmrg if test $found = "no" ; then 685606ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6857320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6858320e696bSmrg fi 6859320e696bSmrg 686006ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6861320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6862320e696bSmrg fi 6863320e696bSmrg 686406ef0fecSmrg CFLAGS="$CFLAGS -Wredundant-decls" 6865320e696bSmrg 686674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 686774b97a6cSmrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; } 686806ef0fecSmrg cacheid=xorg_cv_cc_flag__Wredundant_decls 686974b97a6cSmrg if eval test \${$cacheid+y} 687074b97a6cSmrgthen : 687174b97a6cSmrg printf %s "(cached) " >&6 687274b97a6cSmrgelse $as_nop 6873320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6874320e696bSmrg/* end confdefs.h. */ 6875320e696bSmrgint i; 6876320e696bSmrgint 687774b97a6cSmrgmain (void) 6878320e696bSmrg{ 6879320e696bSmrg 6880320e696bSmrg ; 6881320e696bSmrg return 0; 6882320e696bSmrg} 6883320e696bSmrg_ACEOF 688474b97a6cSmrgif ac_fn_c_try_link "$LINENO" 688574b97a6cSmrgthen : 688674a3f230Smrg eval $cacheid=yes 688774b97a6cSmrgelse $as_nop 688874a3f230Smrg eval $cacheid=no 6889320e696bSmrgfi 689074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6891320e696bSmrg conftest$ac_exeext conftest.$ac_ext 6892320e696bSmrgfi 6893320e696bSmrg 6894320e696bSmrg 6895320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6896320e696bSmrg 689774a3f230Smrg eval supported=\$$cacheid 689874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 689974b97a6cSmrgprintf "%s\n" "$supported" >&6; } 6900320e696bSmrg if test "$supported" = "yes" ; then 690106ef0fecSmrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6902320e696bSmrg found="yes" 6903320e696bSmrg fi 6904320e696bSmrg fi 6905320e696bSmrg 6906320e696bSmrg 6907320e696bSmrg 6908320e696bSmrg 6909320e696bSmrg 6910320e696bSmrg 6911320e696bSmrg 691274a3f230Smrg 691374a3f230Smrg 691474a3f230Smrg 691574a3f230Smrg 691674a3f230Smrg 691774a3f230Smrg 691874a3f230Smrg 691974a3f230Smrg 6920320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6921320e696bSmrg 692274a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6923320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 692474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 692574b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 692674b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 692774b97a6cSmrgthen : 692874b97a6cSmrg printf %s "(cached) " >&6 692974b97a6cSmrgelse $as_nop 6930320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6931320e696bSmrg/* end confdefs.h. */ 6932320e696bSmrgint i; 6933320e696bSmrg_ACEOF 693474b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 693574b97a6cSmrgthen : 6936320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 693774b97a6cSmrgelse $as_nop 6938320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 6939320e696bSmrgfi 694074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6941320e696bSmrgfi 694274b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 694374b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 694474a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6945320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6946320e696bSmrgfi 6947320e696bSmrg 694874a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 694974a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6950320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6951320e696bSmrg fi 6952320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 695374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 695474b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 695574b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 695674b97a6cSmrgthen : 695774b97a6cSmrg printf %s "(cached) " >&6 695874b97a6cSmrgelse $as_nop 6959320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6960320e696bSmrg/* end confdefs.h. */ 6961320e696bSmrgint i; 6962320e696bSmrg_ACEOF 696374b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 696474b97a6cSmrgthen : 6965320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 696674b97a6cSmrgelse $as_nop 6967320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6968320e696bSmrgfi 696974b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6970320e696bSmrgfi 697174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 697274b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 697374a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6974320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6975320e696bSmrgfi 6976320e696bSmrg 6977320e696bSmrgfound="no" 6978320e696bSmrg 6979320e696bSmrg if test $found = "no" ; then 698006ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6981320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6982320e696bSmrg fi 6983320e696bSmrg 698406ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6985320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6986320e696bSmrg fi 6987320e696bSmrg 698806ef0fecSmrg CFLAGS="$CFLAGS -Wlogical-op" 6989320e696bSmrg 699074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 699174b97a6cSmrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; } 699206ef0fecSmrg cacheid=xorg_cv_cc_flag__Wlogical_op 699374b97a6cSmrg if eval test \${$cacheid+y} 699474b97a6cSmrgthen : 699574b97a6cSmrg printf %s "(cached) " >&6 699674b97a6cSmrgelse $as_nop 6997320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6998320e696bSmrg/* end confdefs.h. */ 6999320e696bSmrgint i; 7000320e696bSmrgint 700174b97a6cSmrgmain (void) 7002320e696bSmrg{ 7003320e696bSmrg 7004320e696bSmrg ; 7005320e696bSmrg return 0; 7006320e696bSmrg} 7007320e696bSmrg_ACEOF 700874b97a6cSmrgif ac_fn_c_try_link "$LINENO" 700974b97a6cSmrgthen : 701074a3f230Smrg eval $cacheid=yes 701174b97a6cSmrgelse $as_nop 701274a3f230Smrg eval $cacheid=no 7013320e696bSmrgfi 701474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7015320e696bSmrg conftest$ac_exeext conftest.$ac_ext 7016320e696bSmrgfi 7017320e696bSmrg 7018320e696bSmrg 7019320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7020320e696bSmrg 702174a3f230Smrg eval supported=\$$cacheid 702274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 702374b97a6cSmrgprintf "%s\n" "$supported" >&6; } 7024320e696bSmrg if test "$supported" = "yes" ; then 702506ef0fecSmrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7026320e696bSmrg found="yes" 7027320e696bSmrg fi 7028320e696bSmrg fi 7029320e696bSmrg 7030320e696bSmrg 7031320e696bSmrg 7032320e696bSmrg# These are currently disabled because they are noisy. They will be enabled 7033320e696bSmrg# in the future once the codebase is sufficiently modernized to silence 7034320e696bSmrg# them. For now, I don't want them to drown out the other warnings. 703574a3f230Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 703674a3f230Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 703706ef0fecSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7038320e696bSmrg 70396728f30eSmrg# Turn some warnings into errors, so we don't accidentally get successful builds 7040320e696bSmrg# when there are problems that should be fixed. 7041320e696bSmrg 7042320e696bSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 7043320e696bSmrg 7044320e696bSmrg 7045320e696bSmrg 7046320e696bSmrg 7047320e696bSmrg 704874a3f230Smrg 704974a3f230Smrg 705074a3f230Smrg 705174a3f230Smrg 705274a3f230Smrg 705374a3f230Smrg 705474a3f230Smrg 705574a3f230Smrg 7056320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7057320e696bSmrg 705874a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7059320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 706074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 706174b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 706274b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 706374b97a6cSmrgthen : 706474b97a6cSmrg printf %s "(cached) " >&6 706574b97a6cSmrgelse $as_nop 7066320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7067320e696bSmrg/* end confdefs.h. */ 7068320e696bSmrgint i; 7069320e696bSmrg_ACEOF 707074b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 707174b97a6cSmrgthen : 7072320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 707374b97a6cSmrgelse $as_nop 7074320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 7075320e696bSmrgfi 707674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7077320e696bSmrgfi 707874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 707974b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 708074a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7081320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7082320e696bSmrgfi 7083320e696bSmrg 708474a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 708574a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7086320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7087320e696bSmrg fi 7088320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 708974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 709074b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 709174b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 709274b97a6cSmrgthen : 709374b97a6cSmrg printf %s "(cached) " >&6 709474b97a6cSmrgelse $as_nop 7095320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7096320e696bSmrg/* end confdefs.h. */ 7097320e696bSmrgint i; 7098320e696bSmrg_ACEOF 709974b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 710074b97a6cSmrgthen : 7101320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 710274b97a6cSmrgelse $as_nop 7103320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 7104320e696bSmrgfi 710574b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7106320e696bSmrgfi 710774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 710874b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 710974a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7110320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7111320e696bSmrgfi 7112320e696bSmrg 7113320e696bSmrgfound="no" 7114320e696bSmrg 7115320e696bSmrg if test $found = "no" ; then 711606ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7117320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7118320e696bSmrg fi 7119320e696bSmrg 712006ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7121320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7122320e696bSmrg fi 7123320e696bSmrg 7124320e696bSmrg CFLAGS="$CFLAGS -Werror=implicit" 7125320e696bSmrg 712674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 712774b97a6cSmrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; } 712806ef0fecSmrg cacheid=xorg_cv_cc_flag__Werror_implicit 712974b97a6cSmrg if eval test \${$cacheid+y} 713074b97a6cSmrgthen : 713174b97a6cSmrg printf %s "(cached) " >&6 713274b97a6cSmrgelse $as_nop 7133320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7134320e696bSmrg/* end confdefs.h. */ 7135320e696bSmrgint i; 7136320e696bSmrgint 713774b97a6cSmrgmain (void) 7138320e696bSmrg{ 7139320e696bSmrg 7140320e696bSmrg ; 7141320e696bSmrg return 0; 7142320e696bSmrg} 7143320e696bSmrg_ACEOF 714474b97a6cSmrgif ac_fn_c_try_link "$LINENO" 714574b97a6cSmrgthen : 714674a3f230Smrg eval $cacheid=yes 714774b97a6cSmrgelse $as_nop 714874a3f230Smrg eval $cacheid=no 7149320e696bSmrgfi 715074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7151320e696bSmrg conftest$ac_exeext conftest.$ac_ext 7152320e696bSmrgfi 7153320e696bSmrg 7154320e696bSmrg 7155320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7156320e696bSmrg 715774a3f230Smrg eval supported=\$$cacheid 715874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 715974b97a6cSmrgprintf "%s\n" "$supported" >&6; } 7160320e696bSmrg if test "$supported" = "yes" ; then 7161320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7162320e696bSmrg found="yes" 7163320e696bSmrg fi 7164320e696bSmrg fi 7165320e696bSmrg 7166320e696bSmrg if test $found = "no" ; then 716706ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7168320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7169320e696bSmrg fi 7170320e696bSmrg 717106ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7172320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7173320e696bSmrg fi 7174320e696bSmrg 7175320e696bSmrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7176320e696bSmrg 717774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 717874b97a6cSmrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 717906ef0fecSmrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 718074b97a6cSmrg if eval test \${$cacheid+y} 718174b97a6cSmrgthen : 718274b97a6cSmrg printf %s "(cached) " >&6 718374b97a6cSmrgelse $as_nop 7184320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7185320e696bSmrg/* end confdefs.h. */ 7186320e696bSmrgint i; 7187320e696bSmrgint 718874b97a6cSmrgmain (void) 7189320e696bSmrg{ 7190320e696bSmrg 7191320e696bSmrg ; 7192320e696bSmrg return 0; 7193320e696bSmrg} 7194320e696bSmrg_ACEOF 719574b97a6cSmrgif ac_fn_c_try_link "$LINENO" 719674b97a6cSmrgthen : 719774a3f230Smrg eval $cacheid=yes 719874b97a6cSmrgelse $as_nop 719974a3f230Smrg eval $cacheid=no 7200320e696bSmrgfi 720174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7202320e696bSmrg conftest$ac_exeext conftest.$ac_ext 7203320e696bSmrgfi 7204320e696bSmrg 7205320e696bSmrg 7206320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7207320e696bSmrg 720874a3f230Smrg eval supported=\$$cacheid 720974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 721074b97a6cSmrgprintf "%s\n" "$supported" >&6; } 7211320e696bSmrg if test "$supported" = "yes" ; then 7212320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7213320e696bSmrg found="yes" 7214320e696bSmrg fi 7215320e696bSmrg fi 7216320e696bSmrg 7217320e696bSmrg 7218320e696bSmrg 7219320e696bSmrg 7220320e696bSmrg 7221320e696bSmrg 7222320e696bSmrg 722374a3f230Smrg 722474a3f230Smrg 722574a3f230Smrg 722674a3f230Smrg 722774a3f230Smrg 722874a3f230Smrg 722974a3f230Smrg 723074a3f230Smrg 7231320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7232320e696bSmrg 723374a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7234320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 723574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 723674b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 723774b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 723874b97a6cSmrgthen : 723974b97a6cSmrg printf %s "(cached) " >&6 724074b97a6cSmrgelse $as_nop 7241320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7242320e696bSmrg/* end confdefs.h. */ 7243320e696bSmrgint i; 7244320e696bSmrg_ACEOF 724574b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 724674b97a6cSmrgthen : 7247320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 724874b97a6cSmrgelse $as_nop 7249320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 7250320e696bSmrgfi 725174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7252320e696bSmrgfi 725374b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 725474b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 725574a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7256320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7257320e696bSmrgfi 7258320e696bSmrg 725974a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 726074a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7261320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7262320e696bSmrg fi 7263320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 726474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 726574b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 726674b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 726774b97a6cSmrgthen : 726874b97a6cSmrg printf %s "(cached) " >&6 726974b97a6cSmrgelse $as_nop 7270320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7271320e696bSmrg/* end confdefs.h. */ 7272320e696bSmrgint i; 7273320e696bSmrg_ACEOF 727474b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 727574b97a6cSmrgthen : 7276320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 727774b97a6cSmrgelse $as_nop 7278320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 7279320e696bSmrgfi 728074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7281320e696bSmrgfi 728274b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 728374b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 728474a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7285320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7286320e696bSmrgfi 7287320e696bSmrg 7288320e696bSmrgfound="no" 7289320e696bSmrg 7290320e696bSmrg if test $found = "no" ; then 729106ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7292320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7293320e696bSmrg fi 7294320e696bSmrg 729506ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7296320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7297320e696bSmrg fi 7298320e696bSmrg 7299320e696bSmrg CFLAGS="$CFLAGS -Werror=nonnull" 7300320e696bSmrg 730174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 730274b97a6cSmrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; } 730306ef0fecSmrg cacheid=xorg_cv_cc_flag__Werror_nonnull 730474b97a6cSmrg if eval test \${$cacheid+y} 730574b97a6cSmrgthen : 730674b97a6cSmrg printf %s "(cached) " >&6 730774b97a6cSmrgelse $as_nop 7308320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7309320e696bSmrg/* end confdefs.h. */ 7310320e696bSmrgint i; 7311320e696bSmrgint 731274b97a6cSmrgmain (void) 7313320e696bSmrg{ 7314320e696bSmrg 7315320e696bSmrg ; 7316320e696bSmrg return 0; 7317320e696bSmrg} 7318320e696bSmrg_ACEOF 731974b97a6cSmrgif ac_fn_c_try_link "$LINENO" 732074b97a6cSmrgthen : 732174a3f230Smrg eval $cacheid=yes 732274b97a6cSmrgelse $as_nop 732374a3f230Smrg eval $cacheid=no 7324320e696bSmrgfi 732574b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7326320e696bSmrg conftest$ac_exeext conftest.$ac_ext 7327320e696bSmrgfi 7328320e696bSmrg 7329320e696bSmrg 7330320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7331320e696bSmrg 733274a3f230Smrg eval supported=\$$cacheid 733374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 733474b97a6cSmrgprintf "%s\n" "$supported" >&6; } 7335320e696bSmrg if test "$supported" = "yes" ; then 7336320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7337320e696bSmrg found="yes" 7338320e696bSmrg fi 7339320e696bSmrg fi 7340320e696bSmrg 7341320e696bSmrg 7342320e696bSmrg 7343320e696bSmrg 7344320e696bSmrg 7345320e696bSmrg 7346320e696bSmrg 734774a3f230Smrg 734874a3f230Smrg 734974a3f230Smrg 735074a3f230Smrg 735174a3f230Smrg 735274a3f230Smrg 735374a3f230Smrg 735474a3f230Smrg 7355320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7356320e696bSmrg 735774a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7358320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 735974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 736074b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 736174b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 736274b97a6cSmrgthen : 736374b97a6cSmrg printf %s "(cached) " >&6 736474b97a6cSmrgelse $as_nop 7365320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366320e696bSmrg/* end confdefs.h. */ 7367320e696bSmrgint i; 7368320e696bSmrg_ACEOF 736974b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 737074b97a6cSmrgthen : 7371320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 737274b97a6cSmrgelse $as_nop 7373320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 7374320e696bSmrgfi 737574b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7376320e696bSmrgfi 737774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 737874b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 737974a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7380320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7381320e696bSmrgfi 7382320e696bSmrg 738374a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 738474a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7385320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7386320e696bSmrg fi 7387320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 738874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 738974b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 739074b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 739174b97a6cSmrgthen : 739274b97a6cSmrg printf %s "(cached) " >&6 739374b97a6cSmrgelse $as_nop 7394320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7395320e696bSmrg/* end confdefs.h. */ 7396320e696bSmrgint i; 7397320e696bSmrg_ACEOF 739874b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 739974b97a6cSmrgthen : 7400320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 740174b97a6cSmrgelse $as_nop 7402320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 7403320e696bSmrgfi 740474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7405320e696bSmrgfi 740674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 740774b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 740874a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7409320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7410320e696bSmrgfi 7411320e696bSmrg 7412320e696bSmrgfound="no" 7413320e696bSmrg 7414320e696bSmrg if test $found = "no" ; then 741506ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7416320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7417320e696bSmrg fi 7418320e696bSmrg 741906ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7420320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7421320e696bSmrg fi 7422320e696bSmrg 7423320e696bSmrg CFLAGS="$CFLAGS -Werror=init-self" 7424320e696bSmrg 742574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 742674b97a6cSmrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; } 742706ef0fecSmrg cacheid=xorg_cv_cc_flag__Werror_init_self 742874b97a6cSmrg if eval test \${$cacheid+y} 742974b97a6cSmrgthen : 743074b97a6cSmrg printf %s "(cached) " >&6 743174b97a6cSmrgelse $as_nop 7432320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7433320e696bSmrg/* end confdefs.h. */ 7434320e696bSmrgint i; 7435320e696bSmrgint 743674b97a6cSmrgmain (void) 7437320e696bSmrg{ 7438320e696bSmrg 7439320e696bSmrg ; 7440320e696bSmrg return 0; 7441320e696bSmrg} 7442320e696bSmrg_ACEOF 744374b97a6cSmrgif ac_fn_c_try_link "$LINENO" 744474b97a6cSmrgthen : 744574a3f230Smrg eval $cacheid=yes 744674b97a6cSmrgelse $as_nop 744774a3f230Smrg eval $cacheid=no 7448320e696bSmrgfi 744974b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7450320e696bSmrg conftest$ac_exeext conftest.$ac_ext 7451320e696bSmrgfi 7452320e696bSmrg 7453320e696bSmrg 7454320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7455320e696bSmrg 745674a3f230Smrg eval supported=\$$cacheid 745774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 745874b97a6cSmrgprintf "%s\n" "$supported" >&6; } 7459320e696bSmrg if test "$supported" = "yes" ; then 7460320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7461320e696bSmrg found="yes" 7462320e696bSmrg fi 7463320e696bSmrg fi 7464320e696bSmrg 7465320e696bSmrg 7466320e696bSmrg 7467320e696bSmrg 7468320e696bSmrg 7469320e696bSmrg 7470320e696bSmrg 747174a3f230Smrg 747274a3f230Smrg 747374a3f230Smrg 747474a3f230Smrg 747574a3f230Smrg 747674a3f230Smrg 747774a3f230Smrg 747874a3f230Smrg 7479320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7480320e696bSmrg 748174a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7482320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 748374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 748474b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 748574b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 748674b97a6cSmrgthen : 748774b97a6cSmrg printf %s "(cached) " >&6 748874b97a6cSmrgelse $as_nop 7489320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7490320e696bSmrg/* end confdefs.h. */ 7491320e696bSmrgint i; 7492320e696bSmrg_ACEOF 749374b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 749474b97a6cSmrgthen : 7495320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 749674b97a6cSmrgelse $as_nop 7497320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 7498320e696bSmrgfi 749974b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7500320e696bSmrgfi 750174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 750274b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 750374a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7504320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7505320e696bSmrgfi 7506320e696bSmrg 750774a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 750874a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7509320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7510320e696bSmrg fi 7511320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 751274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 751374b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 751474b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 751574b97a6cSmrgthen : 751674b97a6cSmrg printf %s "(cached) " >&6 751774b97a6cSmrgelse $as_nop 7518320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7519320e696bSmrg/* end confdefs.h. */ 7520320e696bSmrgint i; 7521320e696bSmrg_ACEOF 752274b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 752374b97a6cSmrgthen : 7524320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 752574b97a6cSmrgelse $as_nop 7526320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 7527320e696bSmrgfi 752874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7529320e696bSmrgfi 753074b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 753174b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 753274a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7533320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7534320e696bSmrgfi 7535320e696bSmrg 7536320e696bSmrgfound="no" 7537320e696bSmrg 7538320e696bSmrg if test $found = "no" ; then 753906ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7540320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7541320e696bSmrg fi 7542320e696bSmrg 754306ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7544320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7545320e696bSmrg fi 7546320e696bSmrg 7547320e696bSmrg CFLAGS="$CFLAGS -Werror=main" 7548320e696bSmrg 754974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 755074b97a6cSmrgprintf %s "checking if $CC supports -Werror=main... " >&6; } 755106ef0fecSmrg cacheid=xorg_cv_cc_flag__Werror_main 755274b97a6cSmrg if eval test \${$cacheid+y} 755374b97a6cSmrgthen : 755474b97a6cSmrg printf %s "(cached) " >&6 755574b97a6cSmrgelse $as_nop 7556320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7557320e696bSmrg/* end confdefs.h. */ 7558320e696bSmrgint i; 7559320e696bSmrgint 756074b97a6cSmrgmain (void) 7561320e696bSmrg{ 7562320e696bSmrg 7563320e696bSmrg ; 7564320e696bSmrg return 0; 7565320e696bSmrg} 7566320e696bSmrg_ACEOF 756774b97a6cSmrgif ac_fn_c_try_link "$LINENO" 756874b97a6cSmrgthen : 756974a3f230Smrg eval $cacheid=yes 757074b97a6cSmrgelse $as_nop 757174a3f230Smrg eval $cacheid=no 7572320e696bSmrgfi 757374b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7574320e696bSmrg conftest$ac_exeext conftest.$ac_ext 7575320e696bSmrgfi 7576320e696bSmrg 7577320e696bSmrg 7578320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7579320e696bSmrg 758074a3f230Smrg eval supported=\$$cacheid 758174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 758274b97a6cSmrgprintf "%s\n" "$supported" >&6; } 7583320e696bSmrg if test "$supported" = "yes" ; then 7584320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7585320e696bSmrg found="yes" 7586320e696bSmrg fi 7587320e696bSmrg fi 7588320e696bSmrg 7589320e696bSmrg 7590320e696bSmrg 7591320e696bSmrg 7592320e696bSmrg 7593320e696bSmrg 7594320e696bSmrg 759574a3f230Smrg 759674a3f230Smrg 759774a3f230Smrg 759874a3f230Smrg 759974a3f230Smrg 760074a3f230Smrg 760174a3f230Smrg 760274a3f230Smrg 7603320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7604320e696bSmrg 760574a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7606320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 760774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 760874b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 760974b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 761074b97a6cSmrgthen : 761174b97a6cSmrg printf %s "(cached) " >&6 761274b97a6cSmrgelse $as_nop 7613320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7614320e696bSmrg/* end confdefs.h. */ 7615320e696bSmrgint i; 7616320e696bSmrg_ACEOF 761774b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 761874b97a6cSmrgthen : 7619320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 762074b97a6cSmrgelse $as_nop 7621320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 7622320e696bSmrgfi 762374b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7624320e696bSmrgfi 762574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 762674b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 762774a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7628320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7629320e696bSmrgfi 7630320e696bSmrg 763174a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 763274a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7633320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7634320e696bSmrg fi 7635320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 763674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 763774b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 763874b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 763974b97a6cSmrgthen : 764074b97a6cSmrg printf %s "(cached) " >&6 764174b97a6cSmrgelse $as_nop 7642320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7643320e696bSmrg/* end confdefs.h. */ 7644320e696bSmrgint i; 7645320e696bSmrg_ACEOF 764674b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 764774b97a6cSmrgthen : 7648320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 764974b97a6cSmrgelse $as_nop 7650320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 7651320e696bSmrgfi 765274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7653320e696bSmrgfi 765474b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 765574b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 765674a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7657320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7658320e696bSmrgfi 7659320e696bSmrg 7660320e696bSmrgfound="no" 7661320e696bSmrg 7662320e696bSmrg if test $found = "no" ; then 766306ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7664320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7665320e696bSmrg fi 7666320e696bSmrg 766706ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7668320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7669320e696bSmrg fi 7670320e696bSmrg 7671320e696bSmrg CFLAGS="$CFLAGS -Werror=missing-braces" 7672320e696bSmrg 767374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 767474b97a6cSmrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 767506ef0fecSmrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 767674b97a6cSmrg if eval test \${$cacheid+y} 767774b97a6cSmrgthen : 767874b97a6cSmrg printf %s "(cached) " >&6 767974b97a6cSmrgelse $as_nop 7680320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7681320e696bSmrg/* end confdefs.h. */ 7682320e696bSmrgint i; 7683320e696bSmrgint 768474b97a6cSmrgmain (void) 7685320e696bSmrg{ 7686320e696bSmrg 7687320e696bSmrg ; 7688320e696bSmrg return 0; 7689320e696bSmrg} 7690320e696bSmrg_ACEOF 769174b97a6cSmrgif ac_fn_c_try_link "$LINENO" 769274b97a6cSmrgthen : 769374a3f230Smrg eval $cacheid=yes 769474b97a6cSmrgelse $as_nop 769574a3f230Smrg eval $cacheid=no 7696320e696bSmrgfi 769774b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7698320e696bSmrg conftest$ac_exeext conftest.$ac_ext 7699320e696bSmrgfi 7700320e696bSmrg 7701320e696bSmrg 7702320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7703320e696bSmrg 770474a3f230Smrg eval supported=\$$cacheid 770574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 770674b97a6cSmrgprintf "%s\n" "$supported" >&6; } 7707320e696bSmrg if test "$supported" = "yes" ; then 7708320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7709320e696bSmrg found="yes" 7710320e696bSmrg fi 7711320e696bSmrg fi 7712320e696bSmrg 7713320e696bSmrg 7714320e696bSmrg 7715320e696bSmrg 7716320e696bSmrg 7717320e696bSmrg 7718320e696bSmrg 771974a3f230Smrg 772074a3f230Smrg 772174a3f230Smrg 772274a3f230Smrg 772374a3f230Smrg 772474a3f230Smrg 772574a3f230Smrg 772674a3f230Smrg 7727320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7728320e696bSmrg 772974a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7730320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 773174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 773274b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 773374b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 773474b97a6cSmrgthen : 773574b97a6cSmrg printf %s "(cached) " >&6 773674b97a6cSmrgelse $as_nop 7737320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7738320e696bSmrg/* end confdefs.h. */ 7739320e696bSmrgint i; 7740320e696bSmrg_ACEOF 774174b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 774274b97a6cSmrgthen : 7743320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 774474b97a6cSmrgelse $as_nop 7745320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 7746320e696bSmrgfi 774774b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7748320e696bSmrgfi 774974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 775074b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 775174a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7752320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7753320e696bSmrgfi 7754320e696bSmrg 775574a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 775674a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7757320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7758320e696bSmrg fi 7759320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 776074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 776174b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 776274b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 776374b97a6cSmrgthen : 776474b97a6cSmrg printf %s "(cached) " >&6 776574b97a6cSmrgelse $as_nop 7766320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7767320e696bSmrg/* end confdefs.h. */ 7768320e696bSmrgint i; 7769320e696bSmrg_ACEOF 777074b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 777174b97a6cSmrgthen : 7772320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 777374b97a6cSmrgelse $as_nop 7774320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 7775320e696bSmrgfi 777674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7777320e696bSmrgfi 777874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 777974b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 778074a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7781320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7782320e696bSmrgfi 7783320e696bSmrg 7784320e696bSmrgfound="no" 7785320e696bSmrg 7786320e696bSmrg if test $found = "no" ; then 778706ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7788320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7789320e696bSmrg fi 7790320e696bSmrg 779106ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7792320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7793320e696bSmrg fi 7794320e696bSmrg 7795320e696bSmrg CFLAGS="$CFLAGS -Werror=sequence-point" 7796320e696bSmrg 779774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 779874b97a6cSmrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 779906ef0fecSmrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 780074b97a6cSmrg if eval test \${$cacheid+y} 780174b97a6cSmrgthen : 780274b97a6cSmrg printf %s "(cached) " >&6 780374b97a6cSmrgelse $as_nop 7804320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7805320e696bSmrg/* end confdefs.h. */ 7806320e696bSmrgint i; 7807320e696bSmrgint 780874b97a6cSmrgmain (void) 7809320e696bSmrg{ 7810320e696bSmrg 7811320e696bSmrg ; 7812320e696bSmrg return 0; 7813320e696bSmrg} 7814320e696bSmrg_ACEOF 781574b97a6cSmrgif ac_fn_c_try_link "$LINENO" 781674b97a6cSmrgthen : 781774a3f230Smrg eval $cacheid=yes 781874b97a6cSmrgelse $as_nop 781974a3f230Smrg eval $cacheid=no 7820320e696bSmrgfi 782174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7822320e696bSmrg conftest$ac_exeext conftest.$ac_ext 7823320e696bSmrgfi 7824320e696bSmrg 7825320e696bSmrg 7826320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7827320e696bSmrg 782874a3f230Smrg eval supported=\$$cacheid 782974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 783074b97a6cSmrgprintf "%s\n" "$supported" >&6; } 7831320e696bSmrg if test "$supported" = "yes" ; then 7832320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7833320e696bSmrg found="yes" 7834320e696bSmrg fi 7835320e696bSmrg fi 7836320e696bSmrg 7837320e696bSmrg 7838320e696bSmrg 7839320e696bSmrg 7840320e696bSmrg 7841320e696bSmrg 7842320e696bSmrg 784374a3f230Smrg 784474a3f230Smrg 784574a3f230Smrg 784674a3f230Smrg 784774a3f230Smrg 784874a3f230Smrg 784974a3f230Smrg 785074a3f230Smrg 7851320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7852320e696bSmrg 785374a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7854320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 785574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 785674b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 785774b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 785874b97a6cSmrgthen : 785974b97a6cSmrg printf %s "(cached) " >&6 786074b97a6cSmrgelse $as_nop 7861320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7862320e696bSmrg/* end confdefs.h. */ 7863320e696bSmrgint i; 7864320e696bSmrg_ACEOF 786574b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 786674b97a6cSmrgthen : 7867320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 786874b97a6cSmrgelse $as_nop 7869320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 7870320e696bSmrgfi 787174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7872320e696bSmrgfi 787374b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 787474b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 787574a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7876320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7877320e696bSmrgfi 7878320e696bSmrg 787974a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 788074a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7881320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7882320e696bSmrg fi 7883320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 788474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 788574b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 788674b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 788774b97a6cSmrgthen : 788874b97a6cSmrg printf %s "(cached) " >&6 788974b97a6cSmrgelse $as_nop 7890320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7891320e696bSmrg/* end confdefs.h. */ 7892320e696bSmrgint i; 7893320e696bSmrg_ACEOF 789474b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 789574b97a6cSmrgthen : 7896320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 789774b97a6cSmrgelse $as_nop 7898320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 7899320e696bSmrgfi 790074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7901320e696bSmrgfi 790274b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 790374b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 790474a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7905320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7906320e696bSmrgfi 7907320e696bSmrg 7908320e696bSmrgfound="no" 7909320e696bSmrg 7910320e696bSmrg if test $found = "no" ; then 791106ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7912320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7913320e696bSmrg fi 7914320e696bSmrg 791506ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7916320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7917320e696bSmrg fi 7918320e696bSmrg 7919320e696bSmrg CFLAGS="$CFLAGS -Werror=return-type" 7920320e696bSmrg 792174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 792274b97a6cSmrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; } 792306ef0fecSmrg cacheid=xorg_cv_cc_flag__Werror_return_type 792474b97a6cSmrg if eval test \${$cacheid+y} 792574b97a6cSmrgthen : 792674b97a6cSmrg printf %s "(cached) " >&6 792774b97a6cSmrgelse $as_nop 7928320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7929320e696bSmrg/* end confdefs.h. */ 7930320e696bSmrgint i; 7931320e696bSmrgint 793274b97a6cSmrgmain (void) 7933320e696bSmrg{ 7934320e696bSmrg 7935320e696bSmrg ; 7936320e696bSmrg return 0; 7937320e696bSmrg} 7938320e696bSmrg_ACEOF 793974b97a6cSmrgif ac_fn_c_try_link "$LINENO" 794074b97a6cSmrgthen : 794174a3f230Smrg eval $cacheid=yes 794274b97a6cSmrgelse $as_nop 794374a3f230Smrg eval $cacheid=no 7944320e696bSmrgfi 794574b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7946320e696bSmrg conftest$ac_exeext conftest.$ac_ext 7947320e696bSmrgfi 7948320e696bSmrg 7949320e696bSmrg 7950320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7951320e696bSmrg 795274a3f230Smrg eval supported=\$$cacheid 795374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 795474b97a6cSmrgprintf "%s\n" "$supported" >&6; } 7955320e696bSmrg if test "$supported" = "yes" ; then 7956320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7957320e696bSmrg found="yes" 7958320e696bSmrg fi 7959320e696bSmrg fi 7960320e696bSmrg 7961320e696bSmrg if test $found = "no" ; then 796206ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7963320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7964320e696bSmrg fi 7965320e696bSmrg 796606ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7967320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7968320e696bSmrg fi 7969320e696bSmrg 7970320e696bSmrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7971320e696bSmrg 797274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 797374b97a6cSmrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 797406ef0fecSmrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 797574b97a6cSmrg if eval test \${$cacheid+y} 797674b97a6cSmrgthen : 797774b97a6cSmrg printf %s "(cached) " >&6 797874b97a6cSmrgelse $as_nop 7979320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7980320e696bSmrg/* end confdefs.h. */ 7981320e696bSmrgint i; 7982320e696bSmrgint 798374b97a6cSmrgmain (void) 7984320e696bSmrg{ 7985320e696bSmrg 7986320e696bSmrg ; 7987320e696bSmrg return 0; 7988320e696bSmrg} 7989320e696bSmrg_ACEOF 799074b97a6cSmrgif ac_fn_c_try_link "$LINENO" 799174b97a6cSmrgthen : 799274a3f230Smrg eval $cacheid=yes 799374b97a6cSmrgelse $as_nop 799474a3f230Smrg eval $cacheid=no 7995320e696bSmrgfi 799674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7997320e696bSmrg conftest$ac_exeext conftest.$ac_ext 7998320e696bSmrgfi 7999320e696bSmrg 8000320e696bSmrg 8001320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8002320e696bSmrg 800374a3f230Smrg eval supported=\$$cacheid 800474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 800574b97a6cSmrgprintf "%s\n" "$supported" >&6; } 8006320e696bSmrg if test "$supported" = "yes" ; then 8007320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8008320e696bSmrg found="yes" 8009320e696bSmrg fi 8010320e696bSmrg fi 8011320e696bSmrg 8012320e696bSmrg 8013320e696bSmrg 8014320e696bSmrg 8015320e696bSmrg 8016320e696bSmrg 8017320e696bSmrg 801874a3f230Smrg 801974a3f230Smrg 802074a3f230Smrg 802174a3f230Smrg 802274a3f230Smrg 802374a3f230Smrg 802474a3f230Smrg 802574a3f230Smrg 8026320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8027320e696bSmrg 802874a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8029320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 803074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 803174b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 803274b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 803374b97a6cSmrgthen : 803474b97a6cSmrg printf %s "(cached) " >&6 803574b97a6cSmrgelse $as_nop 8036320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8037320e696bSmrg/* end confdefs.h. */ 8038320e696bSmrgint i; 8039320e696bSmrg_ACEOF 804074b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 804174b97a6cSmrgthen : 8042320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 804374b97a6cSmrgelse $as_nop 8044320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 8045320e696bSmrgfi 804674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8047320e696bSmrgfi 804874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 804974b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 805074a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8051320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8052320e696bSmrgfi 8053320e696bSmrg 805474a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 805574a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8056320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8057320e696bSmrg fi 8058320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 805974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 806074b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 806174b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 806274b97a6cSmrgthen : 806374b97a6cSmrg printf %s "(cached) " >&6 806474b97a6cSmrgelse $as_nop 8065320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8066320e696bSmrg/* end confdefs.h. */ 8067320e696bSmrgint i; 8068320e696bSmrg_ACEOF 806974b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 807074b97a6cSmrgthen : 8071320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 807274b97a6cSmrgelse $as_nop 8073320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 8074320e696bSmrgfi 807574b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8076320e696bSmrgfi 807774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 807874b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 807974a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8080320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8081320e696bSmrgfi 8082320e696bSmrg 8083320e696bSmrgfound="no" 8084320e696bSmrg 8085320e696bSmrg if test $found = "no" ; then 808606ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8087320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8088320e696bSmrg fi 8089320e696bSmrg 809006ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8091320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8092320e696bSmrg fi 8093320e696bSmrg 8094320e696bSmrg CFLAGS="$CFLAGS -Werror=trigraphs" 8095320e696bSmrg 809674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 809774b97a6cSmrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 809806ef0fecSmrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 809974b97a6cSmrg if eval test \${$cacheid+y} 810074b97a6cSmrgthen : 810174b97a6cSmrg printf %s "(cached) " >&6 810274b97a6cSmrgelse $as_nop 8103320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8104320e696bSmrg/* end confdefs.h. */ 8105320e696bSmrgint i; 8106320e696bSmrgint 810774b97a6cSmrgmain (void) 8108320e696bSmrg{ 8109320e696bSmrg 8110320e696bSmrg ; 8111320e696bSmrg return 0; 8112320e696bSmrg} 8113320e696bSmrg_ACEOF 811474b97a6cSmrgif ac_fn_c_try_link "$LINENO" 811574b97a6cSmrgthen : 811674a3f230Smrg eval $cacheid=yes 811774b97a6cSmrgelse $as_nop 811874a3f230Smrg eval $cacheid=no 8119320e696bSmrgfi 812074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8121320e696bSmrg conftest$ac_exeext conftest.$ac_ext 8122320e696bSmrgfi 8123320e696bSmrg 8124320e696bSmrg 8125320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8126320e696bSmrg 812774a3f230Smrg eval supported=\$$cacheid 812874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 812974b97a6cSmrgprintf "%s\n" "$supported" >&6; } 8130320e696bSmrg if test "$supported" = "yes" ; then 8131320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8132320e696bSmrg found="yes" 8133320e696bSmrg fi 8134320e696bSmrg fi 8135320e696bSmrg 8136320e696bSmrg 8137320e696bSmrg 8138320e696bSmrg 8139320e696bSmrg 8140320e696bSmrg 8141320e696bSmrg 814274a3f230Smrg 814374a3f230Smrg 814474a3f230Smrg 814574a3f230Smrg 814674a3f230Smrg 814774a3f230Smrg 814874a3f230Smrg 814974a3f230Smrg 8150320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8151320e696bSmrg 815274a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8153320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 815474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 815574b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 815674b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 815774b97a6cSmrgthen : 815874b97a6cSmrg printf %s "(cached) " >&6 815974b97a6cSmrgelse $as_nop 8160320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8161320e696bSmrg/* end confdefs.h. */ 8162320e696bSmrgint i; 8163320e696bSmrg_ACEOF 816474b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 816574b97a6cSmrgthen : 8166320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 816774b97a6cSmrgelse $as_nop 8168320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 8169320e696bSmrgfi 817074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8171320e696bSmrgfi 817274b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 817374b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 817474a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8175320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8176320e696bSmrgfi 8177320e696bSmrg 817874a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 817974a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8180320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8181320e696bSmrg fi 8182320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 818374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 818474b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 818574b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 818674b97a6cSmrgthen : 818774b97a6cSmrg printf %s "(cached) " >&6 818874b97a6cSmrgelse $as_nop 8189320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8190320e696bSmrg/* end confdefs.h. */ 8191320e696bSmrgint i; 8192320e696bSmrg_ACEOF 819374b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 819474b97a6cSmrgthen : 8195320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 819674b97a6cSmrgelse $as_nop 8197320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 8198320e696bSmrgfi 819974b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8200320e696bSmrgfi 820174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 820274b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 820374a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8204320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8205320e696bSmrgfi 8206320e696bSmrg 8207320e696bSmrgfound="no" 8208320e696bSmrg 8209320e696bSmrg if test $found = "no" ; then 821006ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8211320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8212320e696bSmrg fi 8213320e696bSmrg 821406ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8215320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8216320e696bSmrg fi 8217320e696bSmrg 8218320e696bSmrg CFLAGS="$CFLAGS -Werror=array-bounds" 8219320e696bSmrg 822074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 822174b97a6cSmrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 822206ef0fecSmrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 822374b97a6cSmrg if eval test \${$cacheid+y} 822474b97a6cSmrgthen : 822574b97a6cSmrg printf %s "(cached) " >&6 822674b97a6cSmrgelse $as_nop 8227320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8228320e696bSmrg/* end confdefs.h. */ 8229320e696bSmrgint i; 8230320e696bSmrgint 823174b97a6cSmrgmain (void) 8232320e696bSmrg{ 8233320e696bSmrg 8234320e696bSmrg ; 8235320e696bSmrg return 0; 8236320e696bSmrg} 8237320e696bSmrg_ACEOF 823874b97a6cSmrgif ac_fn_c_try_link "$LINENO" 823974b97a6cSmrgthen : 824074a3f230Smrg eval $cacheid=yes 824174b97a6cSmrgelse $as_nop 824274a3f230Smrg eval $cacheid=no 8243320e696bSmrgfi 824474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8245320e696bSmrg conftest$ac_exeext conftest.$ac_ext 8246320e696bSmrgfi 8247320e696bSmrg 8248320e696bSmrg 8249320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8250320e696bSmrg 825174a3f230Smrg eval supported=\$$cacheid 825274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 825374b97a6cSmrgprintf "%s\n" "$supported" >&6; } 8254320e696bSmrg if test "$supported" = "yes" ; then 8255320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8256320e696bSmrg found="yes" 8257320e696bSmrg fi 8258320e696bSmrg fi 8259320e696bSmrg 8260320e696bSmrg 8261320e696bSmrg 8262320e696bSmrg 8263320e696bSmrg 8264320e696bSmrg 8265320e696bSmrg 826674a3f230Smrg 826774a3f230Smrg 826874a3f230Smrg 826974a3f230Smrg 827074a3f230Smrg 827174a3f230Smrg 827274a3f230Smrg 827374a3f230Smrg 8274320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8275320e696bSmrg 827674a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8277320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 827874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 827974b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 828074b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 828174b97a6cSmrgthen : 828274b97a6cSmrg printf %s "(cached) " >&6 828374b97a6cSmrgelse $as_nop 8284320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8285320e696bSmrg/* end confdefs.h. */ 8286320e696bSmrgint i; 8287320e696bSmrg_ACEOF 828874b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 828974b97a6cSmrgthen : 8290320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 829174b97a6cSmrgelse $as_nop 8292320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 8293320e696bSmrgfi 829474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8295320e696bSmrgfi 829674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 829774b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 829874a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8299320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8300320e696bSmrgfi 8301320e696bSmrg 830274a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 830374a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8304320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8305320e696bSmrg fi 8306320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 830774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 830874b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 830974b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 831074b97a6cSmrgthen : 831174b97a6cSmrg printf %s "(cached) " >&6 831274b97a6cSmrgelse $as_nop 8313320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8314320e696bSmrg/* end confdefs.h. */ 8315320e696bSmrgint i; 8316320e696bSmrg_ACEOF 831774b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 831874b97a6cSmrgthen : 8319320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 832074b97a6cSmrgelse $as_nop 8321320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 8322320e696bSmrgfi 832374b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8324320e696bSmrgfi 832574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 832674b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 832774a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8328320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8329320e696bSmrgfi 8330320e696bSmrg 8331320e696bSmrgfound="no" 8332320e696bSmrg 8333320e696bSmrg if test $found = "no" ; then 833406ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8335320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8336320e696bSmrg fi 8337320e696bSmrg 833806ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8339320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8340320e696bSmrg fi 8341320e696bSmrg 8342320e696bSmrg CFLAGS="$CFLAGS -Werror=write-strings" 8343320e696bSmrg 834474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 834574b97a6cSmrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; } 834606ef0fecSmrg cacheid=xorg_cv_cc_flag__Werror_write_strings 834774b97a6cSmrg if eval test \${$cacheid+y} 834874b97a6cSmrgthen : 834974b97a6cSmrg printf %s "(cached) " >&6 835074b97a6cSmrgelse $as_nop 8351320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8352320e696bSmrg/* end confdefs.h. */ 8353320e696bSmrgint i; 8354320e696bSmrgint 835574b97a6cSmrgmain (void) 8356320e696bSmrg{ 8357320e696bSmrg 8358320e696bSmrg ; 8359320e696bSmrg return 0; 8360320e696bSmrg} 8361320e696bSmrg_ACEOF 836274b97a6cSmrgif ac_fn_c_try_link "$LINENO" 836374b97a6cSmrgthen : 836474a3f230Smrg eval $cacheid=yes 836574b97a6cSmrgelse $as_nop 836674a3f230Smrg eval $cacheid=no 8367320e696bSmrgfi 836874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8369320e696bSmrg conftest$ac_exeext conftest.$ac_ext 8370320e696bSmrgfi 8371320e696bSmrg 8372320e696bSmrg 8373320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8374320e696bSmrg 837574a3f230Smrg eval supported=\$$cacheid 837674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 837774b97a6cSmrgprintf "%s\n" "$supported" >&6; } 8378320e696bSmrg if test "$supported" = "yes" ; then 8379320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8380320e696bSmrg found="yes" 8381320e696bSmrg fi 8382320e696bSmrg fi 8383320e696bSmrg 8384320e696bSmrg 8385320e696bSmrg 8386320e696bSmrg 8387320e696bSmrg 8388320e696bSmrg 8389320e696bSmrg 839074a3f230Smrg 839174a3f230Smrg 839274a3f230Smrg 839374a3f230Smrg 839474a3f230Smrg 839574a3f230Smrg 839674a3f230Smrg 839774a3f230Smrg 8398320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8399320e696bSmrg 840074a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8401320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 840274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 840374b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 840474b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 840574b97a6cSmrgthen : 840674b97a6cSmrg printf %s "(cached) " >&6 840774b97a6cSmrgelse $as_nop 8408320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8409320e696bSmrg/* end confdefs.h. */ 8410320e696bSmrgint i; 8411320e696bSmrg_ACEOF 841274b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 841374b97a6cSmrgthen : 8414320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 841574b97a6cSmrgelse $as_nop 8416320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 8417320e696bSmrgfi 841874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8419320e696bSmrgfi 842074b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 842174b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 842274a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8423320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8424320e696bSmrgfi 8425320e696bSmrg 842674a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 842774a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8428320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8429320e696bSmrg fi 8430320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 843174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 843274b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 843374b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 843474b97a6cSmrgthen : 843574b97a6cSmrg printf %s "(cached) " >&6 843674b97a6cSmrgelse $as_nop 8437320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8438320e696bSmrg/* end confdefs.h. */ 8439320e696bSmrgint i; 8440320e696bSmrg_ACEOF 844174b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 844274b97a6cSmrgthen : 8443320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 844474b97a6cSmrgelse $as_nop 8445320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 8446320e696bSmrgfi 844774b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8448320e696bSmrgfi 844974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 845074b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 845174a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8452320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8453320e696bSmrgfi 8454320e696bSmrg 8455320e696bSmrgfound="no" 8456320e696bSmrg 8457320e696bSmrg if test $found = "no" ; then 845806ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8459320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8460320e696bSmrg fi 8461320e696bSmrg 846206ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8463320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8464320e696bSmrg fi 8465320e696bSmrg 8466320e696bSmrg CFLAGS="$CFLAGS -Werror=address" 8467320e696bSmrg 846874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 846974b97a6cSmrgprintf %s "checking if $CC supports -Werror=address... " >&6; } 847006ef0fecSmrg cacheid=xorg_cv_cc_flag__Werror_address 847174b97a6cSmrg if eval test \${$cacheid+y} 847274b97a6cSmrgthen : 847374b97a6cSmrg printf %s "(cached) " >&6 847474b97a6cSmrgelse $as_nop 8475320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8476320e696bSmrg/* end confdefs.h. */ 8477320e696bSmrgint i; 8478320e696bSmrgint 847974b97a6cSmrgmain (void) 8480320e696bSmrg{ 8481320e696bSmrg 8482320e696bSmrg ; 8483320e696bSmrg return 0; 8484320e696bSmrg} 8485320e696bSmrg_ACEOF 848674b97a6cSmrgif ac_fn_c_try_link "$LINENO" 848774b97a6cSmrgthen : 848874a3f230Smrg eval $cacheid=yes 848974b97a6cSmrgelse $as_nop 849074a3f230Smrg eval $cacheid=no 8491320e696bSmrgfi 849274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8493320e696bSmrg conftest$ac_exeext conftest.$ac_ext 8494320e696bSmrgfi 8495320e696bSmrg 8496320e696bSmrg 8497320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8498320e696bSmrg 849974a3f230Smrg eval supported=\$$cacheid 850074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 850174b97a6cSmrgprintf "%s\n" "$supported" >&6; } 8502320e696bSmrg if test "$supported" = "yes" ; then 8503320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8504320e696bSmrg found="yes" 8505320e696bSmrg fi 8506320e696bSmrg fi 8507320e696bSmrg 8508320e696bSmrg 8509320e696bSmrg 8510320e696bSmrg 8511320e696bSmrg 8512320e696bSmrg 8513320e696bSmrg 851474a3f230Smrg 851574a3f230Smrg 851674a3f230Smrg 851774a3f230Smrg 851874a3f230Smrg 851974a3f230Smrg 852074a3f230Smrg 852174a3f230Smrg 8522320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8523320e696bSmrg 852474a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8525320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 852674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 852774b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 852874b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 852974b97a6cSmrgthen : 853074b97a6cSmrg printf %s "(cached) " >&6 853174b97a6cSmrgelse $as_nop 8532320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8533320e696bSmrg/* end confdefs.h. */ 8534320e696bSmrgint i; 8535320e696bSmrg_ACEOF 853674b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 853774b97a6cSmrgthen : 8538320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 853974b97a6cSmrgelse $as_nop 8540320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 8541320e696bSmrgfi 854274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8543320e696bSmrgfi 854474b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 854574b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 854674a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8547320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8548320e696bSmrgfi 8549320e696bSmrg 855074a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 855174a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8552320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8553320e696bSmrg fi 8554320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 855574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 855674b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 855774b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 855874b97a6cSmrgthen : 855974b97a6cSmrg printf %s "(cached) " >&6 856074b97a6cSmrgelse $as_nop 8561320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8562320e696bSmrg/* end confdefs.h. */ 8563320e696bSmrgint i; 8564320e696bSmrg_ACEOF 856574b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 856674b97a6cSmrgthen : 8567320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 856874b97a6cSmrgelse $as_nop 8569320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 8570320e696bSmrgfi 857174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8572320e696bSmrgfi 857374b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 857474b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 857574a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8576320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8577320e696bSmrgfi 8578320e696bSmrg 8579320e696bSmrgfound="no" 8580320e696bSmrg 8581320e696bSmrg if test $found = "no" ; then 858206ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8583320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8584320e696bSmrg fi 8585320e696bSmrg 858606ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8587320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8588320e696bSmrg fi 8589320e696bSmrg 8590320e696bSmrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8591320e696bSmrg 859274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 859374b97a6cSmrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 859406ef0fecSmrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 859574b97a6cSmrg if eval test \${$cacheid+y} 859674b97a6cSmrgthen : 859774b97a6cSmrg printf %s "(cached) " >&6 859874b97a6cSmrgelse $as_nop 8599320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8600320e696bSmrg/* end confdefs.h. */ 8601320e696bSmrgint i; 8602320e696bSmrgint 860374b97a6cSmrgmain (void) 8604320e696bSmrg{ 8605320e696bSmrg 8606320e696bSmrg ; 8607320e696bSmrg return 0; 8608320e696bSmrg} 8609320e696bSmrg_ACEOF 861074b97a6cSmrgif ac_fn_c_try_link "$LINENO" 861174b97a6cSmrgthen : 861274a3f230Smrg eval $cacheid=yes 861374b97a6cSmrgelse $as_nop 861474a3f230Smrg eval $cacheid=no 8615320e696bSmrgfi 861674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8617320e696bSmrg conftest$ac_exeext conftest.$ac_ext 8618320e696bSmrgfi 8619320e696bSmrg 8620320e696bSmrg 8621320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8622320e696bSmrg 862374a3f230Smrg eval supported=\$$cacheid 862474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 862574b97a6cSmrgprintf "%s\n" "$supported" >&6; } 8626320e696bSmrg if test "$supported" = "yes" ; then 8627320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8628320e696bSmrg found="yes" 8629320e696bSmrg fi 8630320e696bSmrg fi 8631320e696bSmrg 8632320e696bSmrg if test $found = "no" ; then 863306ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8634320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8635320e696bSmrg fi 8636320e696bSmrg 863706ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8638320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8639320e696bSmrg fi 8640320e696bSmrg 8641320e696bSmrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8642320e696bSmrg 864374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 864474b97a6cSmrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 864506ef0fecSmrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 864674b97a6cSmrg if eval test \${$cacheid+y} 864774b97a6cSmrgthen : 864874b97a6cSmrg printf %s "(cached) " >&6 864974b97a6cSmrgelse $as_nop 8650320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8651320e696bSmrg/* end confdefs.h. */ 8652320e696bSmrgint i; 8653320e696bSmrgint 865474b97a6cSmrgmain (void) 8655320e696bSmrg{ 8656320e696bSmrg 8657320e696bSmrg ; 8658320e696bSmrg return 0; 8659320e696bSmrg} 8660320e696bSmrg_ACEOF 866174b97a6cSmrgif ac_fn_c_try_link "$LINENO" 866274b97a6cSmrgthen : 866374a3f230Smrg eval $cacheid=yes 866474b97a6cSmrgelse $as_nop 866574a3f230Smrg eval $cacheid=no 8666320e696bSmrgfi 866774b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8668320e696bSmrg conftest$ac_exeext conftest.$ac_ext 8669320e696bSmrgfi 8670320e696bSmrg 8671320e696bSmrg 8672320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8673320e696bSmrg 867474a3f230Smrg eval supported=\$$cacheid 867574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 867674b97a6cSmrgprintf "%s\n" "$supported" >&6; } 8677320e696bSmrg if test "$supported" = "yes" ; then 8678320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8679320e696bSmrg found="yes" 8680320e696bSmrg fi 8681320e696bSmrg fi 8682320e696bSmrg 8683320e696bSmrg 8684320e696bSmrg 8685320e696bSmrg 8686320e696bSmrg 8687320e696bSmrg 8688320e696bSmrg 868974a3f230Smrg 869074a3f230Smrg 869174a3f230Smrg 869274a3f230Smrg 869374a3f230Smrg 869474a3f230Smrg 869574a3f230Smrg 869674a3f230Smrg 8697320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8698320e696bSmrg 869974a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8700320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 870174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 870274b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 870374b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 870474b97a6cSmrgthen : 870574b97a6cSmrg printf %s "(cached) " >&6 870674b97a6cSmrgelse $as_nop 8707320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8708320e696bSmrg/* end confdefs.h. */ 8709320e696bSmrgint i; 8710320e696bSmrg_ACEOF 871174b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 871274b97a6cSmrgthen : 8713320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 871474b97a6cSmrgelse $as_nop 8715320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 8716320e696bSmrgfi 871774b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8718320e696bSmrgfi 871974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 872074b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 872174a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8722320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8723320e696bSmrgfi 8724320e696bSmrg 872574a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 872674a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8727320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8728320e696bSmrg fi 8729320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 873074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 873174b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 873274b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 873374b97a6cSmrgthen : 873474b97a6cSmrg printf %s "(cached) " >&6 873574b97a6cSmrgelse $as_nop 8736320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8737320e696bSmrg/* end confdefs.h. */ 8738320e696bSmrgint i; 8739320e696bSmrg_ACEOF 874074b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 874174b97a6cSmrgthen : 8742320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 874374b97a6cSmrgelse $as_nop 8744320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 8745320e696bSmrgfi 874674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8747320e696bSmrgfi 874874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 874974b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 875074a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8751320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8752320e696bSmrgfi 8753320e696bSmrg 8754320e696bSmrgfound="no" 8755320e696bSmrg 8756320e696bSmrg if test $found = "no" ; then 875706ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8758320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8759320e696bSmrg fi 8760320e696bSmrg 876106ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8762320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8763320e696bSmrg fi 8764320e696bSmrg 8765320e696bSmrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8766320e696bSmrg 876774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 876874b97a6cSmrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 876906ef0fecSmrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 877074b97a6cSmrg if eval test \${$cacheid+y} 877174b97a6cSmrgthen : 877274b97a6cSmrg printf %s "(cached) " >&6 877374b97a6cSmrgelse $as_nop 8774320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8775320e696bSmrg/* end confdefs.h. */ 8776320e696bSmrgint i; 8777320e696bSmrgint 877874b97a6cSmrgmain (void) 8779320e696bSmrg{ 8780320e696bSmrg 8781320e696bSmrg ; 8782320e696bSmrg return 0; 8783320e696bSmrg} 8784320e696bSmrg_ACEOF 878574b97a6cSmrgif ac_fn_c_try_link "$LINENO" 878674b97a6cSmrgthen : 878774a3f230Smrg eval $cacheid=yes 878874b97a6cSmrgelse $as_nop 878974a3f230Smrg eval $cacheid=no 8790320e696bSmrgfi 879174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8792320e696bSmrg conftest$ac_exeext conftest.$ac_ext 8793320e696bSmrgfi 8794320e696bSmrg 8795320e696bSmrg 8796320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8797320e696bSmrg 879874a3f230Smrg eval supported=\$$cacheid 879974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 880074b97a6cSmrgprintf "%s\n" "$supported" >&6; } 8801320e696bSmrg if test "$supported" = "yes" ; then 8802320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8803320e696bSmrg found="yes" 8804320e696bSmrg fi 8805320e696bSmrg fi 8806320e696bSmrg 8807320e696bSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8808320e696bSmrgelse 880974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 881074b97a6cSmrgprintf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 8811320e696bSmrg 8812320e696bSmrg 8813320e696bSmrg 8814320e696bSmrg 8815320e696bSmrg 881674a3f230Smrg 881774a3f230Smrg 881874a3f230Smrg 881974a3f230Smrg 882074a3f230Smrg 882174a3f230Smrg 882274a3f230Smrg 882374a3f230Smrg 8824320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8825320e696bSmrg 882674a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8827320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 882874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 882974b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 883074b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 883174b97a6cSmrgthen : 883274b97a6cSmrg printf %s "(cached) " >&6 883374b97a6cSmrgelse $as_nop 8834320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8835320e696bSmrg/* end confdefs.h. */ 8836320e696bSmrgint i; 8837320e696bSmrg_ACEOF 883874b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 883974b97a6cSmrgthen : 8840320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 884174b97a6cSmrgelse $as_nop 8842320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 8843320e696bSmrgfi 884474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8845320e696bSmrgfi 884674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 884774b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 884874a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8849320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8850320e696bSmrgfi 8851320e696bSmrg 885274a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 885374a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8854320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8855320e696bSmrg fi 8856320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 885774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 885874b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 885974b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 886074b97a6cSmrgthen : 886174b97a6cSmrg printf %s "(cached) " >&6 886274b97a6cSmrgelse $as_nop 8863320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8864320e696bSmrg/* end confdefs.h. */ 8865320e696bSmrgint i; 8866320e696bSmrg_ACEOF 886774b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 886874b97a6cSmrgthen : 8869320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 887074b97a6cSmrgelse $as_nop 8871320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 8872320e696bSmrgfi 887374b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8874320e696bSmrgfi 887574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 887674b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 887774a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8878320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8879320e696bSmrgfi 8880320e696bSmrg 8881320e696bSmrgfound="no" 8882320e696bSmrg 8883320e696bSmrg if test $found = "no" ; then 888406ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8885320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8886320e696bSmrg fi 8887320e696bSmrg 888806ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8889320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8890320e696bSmrg fi 8891320e696bSmrg 8892320e696bSmrg CFLAGS="$CFLAGS -Wimplicit" 8893320e696bSmrg 889474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 889574b97a6cSmrgprintf %s "checking if $CC supports -Wimplicit... " >&6; } 889674a3f230Smrg cacheid=xorg_cv_cc_flag__Wimplicit 889774b97a6cSmrg if eval test \${$cacheid+y} 889874b97a6cSmrgthen : 889974b97a6cSmrg printf %s "(cached) " >&6 890074b97a6cSmrgelse $as_nop 8901320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8902320e696bSmrg/* end confdefs.h. */ 8903320e696bSmrgint i; 8904320e696bSmrgint 890574b97a6cSmrgmain (void) 8906320e696bSmrg{ 8907320e696bSmrg 8908320e696bSmrg ; 8909320e696bSmrg return 0; 8910320e696bSmrg} 8911320e696bSmrg_ACEOF 891274b97a6cSmrgif ac_fn_c_try_link "$LINENO" 891374b97a6cSmrgthen : 891474a3f230Smrg eval $cacheid=yes 891574b97a6cSmrgelse $as_nop 891674a3f230Smrg eval $cacheid=no 8917320e696bSmrgfi 891874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8919320e696bSmrg conftest$ac_exeext conftest.$ac_ext 8920320e696bSmrgfi 8921320e696bSmrg 8922320e696bSmrg 8923320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8924320e696bSmrg 892574a3f230Smrg eval supported=\$$cacheid 892674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 892774b97a6cSmrgprintf "%s\n" "$supported" >&6; } 8928320e696bSmrg if test "$supported" = "yes" ; then 8929320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8930320e696bSmrg found="yes" 8931320e696bSmrg fi 8932320e696bSmrg fi 8933320e696bSmrg 8934320e696bSmrg 8935320e696bSmrg 8936320e696bSmrg 8937320e696bSmrg 8938320e696bSmrg 8939320e696bSmrg 894074a3f230Smrg 894174a3f230Smrg 894274a3f230Smrg 894374a3f230Smrg 894474a3f230Smrg 894574a3f230Smrg 894674a3f230Smrg 894774a3f230Smrg 8948320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8949320e696bSmrg 895074a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8951320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 895274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 895374b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 895474b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 895574b97a6cSmrgthen : 895674b97a6cSmrg printf %s "(cached) " >&6 895774b97a6cSmrgelse $as_nop 8958320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8959320e696bSmrg/* end confdefs.h. */ 8960320e696bSmrgint i; 8961320e696bSmrg_ACEOF 896274b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 896374b97a6cSmrgthen : 8964320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 896574b97a6cSmrgelse $as_nop 8966320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 8967320e696bSmrgfi 896874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8969320e696bSmrgfi 897074b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 897174b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 897274a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8973320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8974320e696bSmrgfi 8975320e696bSmrg 897674a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 897774a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8978320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8979320e696bSmrg fi 8980320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 898174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 898274b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 898374b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 898474b97a6cSmrgthen : 898574b97a6cSmrg printf %s "(cached) " >&6 898674b97a6cSmrgelse $as_nop 8987320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8988320e696bSmrg/* end confdefs.h. */ 8989320e696bSmrgint i; 8990320e696bSmrg_ACEOF 899174b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 899274b97a6cSmrgthen : 8993320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 899474b97a6cSmrgelse $as_nop 8995320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 8996320e696bSmrgfi 899774b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8998320e696bSmrgfi 899974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 900074b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 900174a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9002320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9003320e696bSmrgfi 9004320e696bSmrg 9005320e696bSmrgfound="no" 9006320e696bSmrg 9007320e696bSmrg if test $found = "no" ; then 900806ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9009320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9010320e696bSmrg fi 9011320e696bSmrg 901206ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9013320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9014320e696bSmrg fi 9015320e696bSmrg 9016320e696bSmrg CFLAGS="$CFLAGS -Wnonnull" 9017320e696bSmrg 901874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 901974b97a6cSmrgprintf %s "checking if $CC supports -Wnonnull... " >&6; } 902074a3f230Smrg cacheid=xorg_cv_cc_flag__Wnonnull 902174b97a6cSmrg if eval test \${$cacheid+y} 902274b97a6cSmrgthen : 902374b97a6cSmrg printf %s "(cached) " >&6 902474b97a6cSmrgelse $as_nop 9025320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9026320e696bSmrg/* end confdefs.h. */ 9027320e696bSmrgint i; 9028320e696bSmrgint 902974b97a6cSmrgmain (void) 9030320e696bSmrg{ 9031320e696bSmrg 9032320e696bSmrg ; 9033320e696bSmrg return 0; 9034320e696bSmrg} 9035320e696bSmrg_ACEOF 903674b97a6cSmrgif ac_fn_c_try_link "$LINENO" 903774b97a6cSmrgthen : 903874a3f230Smrg eval $cacheid=yes 903974b97a6cSmrgelse $as_nop 904074a3f230Smrg eval $cacheid=no 9041320e696bSmrgfi 904274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9043320e696bSmrg conftest$ac_exeext conftest.$ac_ext 9044320e696bSmrgfi 9045320e696bSmrg 9046320e696bSmrg 9047320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9048320e696bSmrg 904974a3f230Smrg eval supported=\$$cacheid 905074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 905174b97a6cSmrgprintf "%s\n" "$supported" >&6; } 9052320e696bSmrg if test "$supported" = "yes" ; then 9053320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9054320e696bSmrg found="yes" 9055320e696bSmrg fi 9056320e696bSmrg fi 9057320e696bSmrg 9058320e696bSmrg 9059320e696bSmrg 9060320e696bSmrg 9061320e696bSmrg 9062320e696bSmrg 9063320e696bSmrg 906474a3f230Smrg 906574a3f230Smrg 906674a3f230Smrg 906774a3f230Smrg 906874a3f230Smrg 906974a3f230Smrg 907074a3f230Smrg 907174a3f230Smrg 9072320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9073320e696bSmrg 907474a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9075320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 907674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 907774b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 907874b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 907974b97a6cSmrgthen : 908074b97a6cSmrg printf %s "(cached) " >&6 908174b97a6cSmrgelse $as_nop 9082320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9083320e696bSmrg/* end confdefs.h. */ 9084320e696bSmrgint i; 9085320e696bSmrg_ACEOF 908674b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 908774b97a6cSmrgthen : 9088320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 908974b97a6cSmrgelse $as_nop 9090320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 9091320e696bSmrgfi 909274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9093320e696bSmrgfi 909474b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 909574b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 909674a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9097320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9098320e696bSmrgfi 9099320e696bSmrg 910074a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 910174a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9102320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9103320e696bSmrg fi 9104320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 910574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 910674b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 910774b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 910874b97a6cSmrgthen : 910974b97a6cSmrg printf %s "(cached) " >&6 911074b97a6cSmrgelse $as_nop 9111320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9112320e696bSmrg/* end confdefs.h. */ 9113320e696bSmrgint i; 9114320e696bSmrg_ACEOF 911574b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 911674b97a6cSmrgthen : 9117320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 911874b97a6cSmrgelse $as_nop 9119320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9120320e696bSmrgfi 912174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9122320e696bSmrgfi 912374b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 912474b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 912574a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9126320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9127320e696bSmrgfi 9128320e696bSmrg 9129320e696bSmrgfound="no" 9130320e696bSmrg 9131320e696bSmrg if test $found = "no" ; then 913206ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9133320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9134320e696bSmrg fi 9135320e696bSmrg 913606ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9137320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9138320e696bSmrg fi 9139320e696bSmrg 9140320e696bSmrg CFLAGS="$CFLAGS -Winit-self" 9141320e696bSmrg 914274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 914374b97a6cSmrgprintf %s "checking if $CC supports -Winit-self... " >&6; } 914474a3f230Smrg cacheid=xorg_cv_cc_flag__Winit_self 914574b97a6cSmrg if eval test \${$cacheid+y} 914674b97a6cSmrgthen : 914774b97a6cSmrg printf %s "(cached) " >&6 914874b97a6cSmrgelse $as_nop 9149320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9150320e696bSmrg/* end confdefs.h. */ 9151320e696bSmrgint i; 9152320e696bSmrgint 915374b97a6cSmrgmain (void) 9154320e696bSmrg{ 9155320e696bSmrg 9156320e696bSmrg ; 9157320e696bSmrg return 0; 9158320e696bSmrg} 9159320e696bSmrg_ACEOF 916074b97a6cSmrgif ac_fn_c_try_link "$LINENO" 916174b97a6cSmrgthen : 916274a3f230Smrg eval $cacheid=yes 916374b97a6cSmrgelse $as_nop 916474a3f230Smrg eval $cacheid=no 9165320e696bSmrgfi 916674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9167320e696bSmrg conftest$ac_exeext conftest.$ac_ext 9168320e696bSmrgfi 9169320e696bSmrg 9170320e696bSmrg 9171320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9172320e696bSmrg 917374a3f230Smrg eval supported=\$$cacheid 917474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 917574b97a6cSmrgprintf "%s\n" "$supported" >&6; } 9176320e696bSmrg if test "$supported" = "yes" ; then 9177320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9178320e696bSmrg found="yes" 9179320e696bSmrg fi 9180320e696bSmrg fi 9181320e696bSmrg 9182320e696bSmrg 9183320e696bSmrg 9184320e696bSmrg 9185320e696bSmrg 9186320e696bSmrg 9187320e696bSmrg 918874a3f230Smrg 918974a3f230Smrg 919074a3f230Smrg 919174a3f230Smrg 919274a3f230Smrg 919374a3f230Smrg 919474a3f230Smrg 919574a3f230Smrg 9196320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9197320e696bSmrg 919874a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9199320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 920074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 920174b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 920274b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 920374b97a6cSmrgthen : 920474b97a6cSmrg printf %s "(cached) " >&6 920574b97a6cSmrgelse $as_nop 9206320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9207320e696bSmrg/* end confdefs.h. */ 9208320e696bSmrgint i; 9209320e696bSmrg_ACEOF 921074b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 921174b97a6cSmrgthen : 9212320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 921374b97a6cSmrgelse $as_nop 9214320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 9215320e696bSmrgfi 921674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9217320e696bSmrgfi 921874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 921974b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 922074a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9221320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9222320e696bSmrgfi 9223320e696bSmrg 922474a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 922574a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9226320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9227320e696bSmrg fi 9228320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 922974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 923074b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 923174b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 923274b97a6cSmrgthen : 923374b97a6cSmrg printf %s "(cached) " >&6 923474b97a6cSmrgelse $as_nop 9235320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9236320e696bSmrg/* end confdefs.h. */ 9237320e696bSmrgint i; 9238320e696bSmrg_ACEOF 923974b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 924074b97a6cSmrgthen : 9241320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 924274b97a6cSmrgelse $as_nop 9243320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9244320e696bSmrgfi 924574b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9246320e696bSmrgfi 924774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 924874b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 924974a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9250320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9251320e696bSmrgfi 9252320e696bSmrg 9253320e696bSmrgfound="no" 9254320e696bSmrg 9255320e696bSmrg if test $found = "no" ; then 925606ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9257320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9258320e696bSmrg fi 9259320e696bSmrg 926006ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9261320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9262320e696bSmrg fi 9263320e696bSmrg 9264320e696bSmrg CFLAGS="$CFLAGS -Wmain" 9265320e696bSmrg 926674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 926774b97a6cSmrgprintf %s "checking if $CC supports -Wmain... " >&6; } 926874a3f230Smrg cacheid=xorg_cv_cc_flag__Wmain 926974b97a6cSmrg if eval test \${$cacheid+y} 927074b97a6cSmrgthen : 927174b97a6cSmrg printf %s "(cached) " >&6 927274b97a6cSmrgelse $as_nop 9273320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9274320e696bSmrg/* end confdefs.h. */ 9275320e696bSmrgint i; 9276320e696bSmrgint 927774b97a6cSmrgmain (void) 9278320e696bSmrg{ 9279320e696bSmrg 9280320e696bSmrg ; 9281320e696bSmrg return 0; 9282320e696bSmrg} 9283320e696bSmrg_ACEOF 928474b97a6cSmrgif ac_fn_c_try_link "$LINENO" 928574b97a6cSmrgthen : 928674a3f230Smrg eval $cacheid=yes 928774b97a6cSmrgelse $as_nop 928874a3f230Smrg eval $cacheid=no 9289320e696bSmrgfi 929074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9291320e696bSmrg conftest$ac_exeext conftest.$ac_ext 9292320e696bSmrgfi 9293320e696bSmrg 9294320e696bSmrg 9295320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9296320e696bSmrg 929774a3f230Smrg eval supported=\$$cacheid 929874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 929974b97a6cSmrgprintf "%s\n" "$supported" >&6; } 9300320e696bSmrg if test "$supported" = "yes" ; then 9301320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9302320e696bSmrg found="yes" 9303320e696bSmrg fi 9304320e696bSmrg fi 9305320e696bSmrg 9306320e696bSmrg 9307320e696bSmrg 9308320e696bSmrg 9309320e696bSmrg 9310320e696bSmrg 9311320e696bSmrg 931274a3f230Smrg 931374a3f230Smrg 931474a3f230Smrg 931574a3f230Smrg 931674a3f230Smrg 931774a3f230Smrg 931874a3f230Smrg 931974a3f230Smrg 9320320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9321320e696bSmrg 932274a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9323320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 932474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 932574b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 932674b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 932774b97a6cSmrgthen : 932874b97a6cSmrg printf %s "(cached) " >&6 932974b97a6cSmrgelse $as_nop 9330320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9331320e696bSmrg/* end confdefs.h. */ 9332320e696bSmrgint i; 9333320e696bSmrg_ACEOF 933474b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 933574b97a6cSmrgthen : 9336320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 933774b97a6cSmrgelse $as_nop 9338320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 9339320e696bSmrgfi 934074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9341320e696bSmrgfi 934274b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 934374b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 934474a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9345320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9346320e696bSmrgfi 9347320e696bSmrg 934874a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 934974a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9350320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9351320e696bSmrg fi 9352320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 935374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 935474b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 935574b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 935674b97a6cSmrgthen : 935774b97a6cSmrg printf %s "(cached) " >&6 935874b97a6cSmrgelse $as_nop 9359320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9360320e696bSmrg/* end confdefs.h. */ 9361320e696bSmrgint i; 9362320e696bSmrg_ACEOF 936374b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 936474b97a6cSmrgthen : 9365320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 936674b97a6cSmrgelse $as_nop 9367320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9368320e696bSmrgfi 936974b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9370320e696bSmrgfi 937174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 937274b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 937374a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9374320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9375320e696bSmrgfi 9376320e696bSmrg 9377320e696bSmrgfound="no" 9378320e696bSmrg 9379320e696bSmrg if test $found = "no" ; then 938006ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9381320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9382320e696bSmrg fi 9383320e696bSmrg 938406ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9385320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9386320e696bSmrg fi 9387320e696bSmrg 9388320e696bSmrg CFLAGS="$CFLAGS -Wmissing-braces" 9389320e696bSmrg 939074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 939174b97a6cSmrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; } 939274a3f230Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 939374b97a6cSmrg if eval test \${$cacheid+y} 939474b97a6cSmrgthen : 939574b97a6cSmrg printf %s "(cached) " >&6 939674b97a6cSmrgelse $as_nop 9397320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9398320e696bSmrg/* end confdefs.h. */ 9399320e696bSmrgint i; 9400320e696bSmrgint 940174b97a6cSmrgmain (void) 9402320e696bSmrg{ 9403320e696bSmrg 9404320e696bSmrg ; 9405320e696bSmrg return 0; 9406320e696bSmrg} 9407320e696bSmrg_ACEOF 940874b97a6cSmrgif ac_fn_c_try_link "$LINENO" 940974b97a6cSmrgthen : 941074a3f230Smrg eval $cacheid=yes 941174b97a6cSmrgelse $as_nop 941274a3f230Smrg eval $cacheid=no 9413320e696bSmrgfi 941474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9415320e696bSmrg conftest$ac_exeext conftest.$ac_ext 9416320e696bSmrgfi 9417320e696bSmrg 9418320e696bSmrg 9419320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9420320e696bSmrg 942174a3f230Smrg eval supported=\$$cacheid 942274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 942374b97a6cSmrgprintf "%s\n" "$supported" >&6; } 9424320e696bSmrg if test "$supported" = "yes" ; then 9425320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9426320e696bSmrg found="yes" 9427320e696bSmrg fi 9428320e696bSmrg fi 9429320e696bSmrg 9430320e696bSmrg 9431320e696bSmrg 9432320e696bSmrg 9433320e696bSmrg 9434320e696bSmrg 9435320e696bSmrg 943674a3f230Smrg 943774a3f230Smrg 943874a3f230Smrg 943974a3f230Smrg 944074a3f230Smrg 944174a3f230Smrg 944274a3f230Smrg 944374a3f230Smrg 9444320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9445320e696bSmrg 944674a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9447320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 944874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 944974b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 945074b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 945174b97a6cSmrgthen : 945274b97a6cSmrg printf %s "(cached) " >&6 945374b97a6cSmrgelse $as_nop 9454320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9455320e696bSmrg/* end confdefs.h. */ 9456320e696bSmrgint i; 9457320e696bSmrg_ACEOF 945874b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 945974b97a6cSmrgthen : 9460320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 946174b97a6cSmrgelse $as_nop 9462320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 9463320e696bSmrgfi 946474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9465320e696bSmrgfi 946674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 946774b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 946874a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9469320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9470320e696bSmrgfi 9471320e696bSmrg 947274a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 947374a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9474320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9475320e696bSmrg fi 9476320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 947774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 947874b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 947974b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 948074b97a6cSmrgthen : 948174b97a6cSmrg printf %s "(cached) " >&6 948274b97a6cSmrgelse $as_nop 9483320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9484320e696bSmrg/* end confdefs.h. */ 9485320e696bSmrgint i; 9486320e696bSmrg_ACEOF 948774b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 948874b97a6cSmrgthen : 9489320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 949074b97a6cSmrgelse $as_nop 9491320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9492320e696bSmrgfi 949374b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9494320e696bSmrgfi 949574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 949674b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 949774a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9498320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9499320e696bSmrgfi 9500320e696bSmrg 9501320e696bSmrgfound="no" 9502320e696bSmrg 9503320e696bSmrg if test $found = "no" ; then 950406ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9505320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9506320e696bSmrg fi 9507320e696bSmrg 950806ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9509320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9510320e696bSmrg fi 9511320e696bSmrg 9512320e696bSmrg CFLAGS="$CFLAGS -Wsequence-point" 9513320e696bSmrg 951474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 951574b97a6cSmrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; } 951674a3f230Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 951774b97a6cSmrg if eval test \${$cacheid+y} 951874b97a6cSmrgthen : 951974b97a6cSmrg printf %s "(cached) " >&6 952074b97a6cSmrgelse $as_nop 9521320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9522320e696bSmrg/* end confdefs.h. */ 9523320e696bSmrgint i; 9524320e696bSmrgint 952574b97a6cSmrgmain (void) 9526320e696bSmrg{ 9527320e696bSmrg 9528320e696bSmrg ; 9529320e696bSmrg return 0; 9530320e696bSmrg} 9531320e696bSmrg_ACEOF 953274b97a6cSmrgif ac_fn_c_try_link "$LINENO" 953374b97a6cSmrgthen : 953474a3f230Smrg eval $cacheid=yes 953574b97a6cSmrgelse $as_nop 953674a3f230Smrg eval $cacheid=no 9537320e696bSmrgfi 953874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9539320e696bSmrg conftest$ac_exeext conftest.$ac_ext 9540320e696bSmrgfi 9541320e696bSmrg 9542320e696bSmrg 9543320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9544320e696bSmrg 954574a3f230Smrg eval supported=\$$cacheid 954674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 954774b97a6cSmrgprintf "%s\n" "$supported" >&6; } 9548320e696bSmrg if test "$supported" = "yes" ; then 9549320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9550320e696bSmrg found="yes" 9551320e696bSmrg fi 9552320e696bSmrg fi 9553320e696bSmrg 9554320e696bSmrg 9555320e696bSmrg 9556320e696bSmrg 9557320e696bSmrg 9558320e696bSmrg 9559320e696bSmrg 956074a3f230Smrg 956174a3f230Smrg 956274a3f230Smrg 956374a3f230Smrg 956474a3f230Smrg 956574a3f230Smrg 956674a3f230Smrg 956774a3f230Smrg 9568320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9569320e696bSmrg 957074a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9571320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 957274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 957374b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 957474b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 957574b97a6cSmrgthen : 957674b97a6cSmrg printf %s "(cached) " >&6 957774b97a6cSmrgelse $as_nop 9578320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9579320e696bSmrg/* end confdefs.h. */ 9580320e696bSmrgint i; 9581320e696bSmrg_ACEOF 958274b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 958374b97a6cSmrgthen : 9584320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 958574b97a6cSmrgelse $as_nop 9586320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 9587320e696bSmrgfi 958874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9589320e696bSmrgfi 959074b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 959174b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 959274a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9593320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9594320e696bSmrgfi 9595320e696bSmrg 959674a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 959774a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9598320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9599320e696bSmrg fi 9600320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 960174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 960274b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 960374b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 960474b97a6cSmrgthen : 960574b97a6cSmrg printf %s "(cached) " >&6 960674b97a6cSmrgelse $as_nop 9607320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9608320e696bSmrg/* end confdefs.h. */ 9609320e696bSmrgint i; 9610320e696bSmrg_ACEOF 961174b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 961274b97a6cSmrgthen : 9613320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 961474b97a6cSmrgelse $as_nop 9615320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9616320e696bSmrgfi 961774b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9618320e696bSmrgfi 961974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 962074b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 962174a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9622320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9623320e696bSmrgfi 9624320e696bSmrg 9625320e696bSmrgfound="no" 9626320e696bSmrg 9627320e696bSmrg if test $found = "no" ; then 962806ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9629320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9630320e696bSmrg fi 9631320e696bSmrg 963206ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9633320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9634320e696bSmrg fi 9635320e696bSmrg 9636320e696bSmrg CFLAGS="$CFLAGS -Wreturn-type" 9637320e696bSmrg 963874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 963974b97a6cSmrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; } 964074a3f230Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 964174b97a6cSmrg if eval test \${$cacheid+y} 964274b97a6cSmrgthen : 964374b97a6cSmrg printf %s "(cached) " >&6 964474b97a6cSmrgelse $as_nop 9645320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9646320e696bSmrg/* end confdefs.h. */ 9647320e696bSmrgint i; 9648320e696bSmrgint 964974b97a6cSmrgmain (void) 9650320e696bSmrg{ 9651320e696bSmrg 9652320e696bSmrg ; 9653320e696bSmrg return 0; 9654320e696bSmrg} 9655320e696bSmrg_ACEOF 965674b97a6cSmrgif ac_fn_c_try_link "$LINENO" 965774b97a6cSmrgthen : 965874a3f230Smrg eval $cacheid=yes 965974b97a6cSmrgelse $as_nop 966074a3f230Smrg eval $cacheid=no 9661320e696bSmrgfi 966274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9663320e696bSmrg conftest$ac_exeext conftest.$ac_ext 9664320e696bSmrgfi 9665320e696bSmrg 9666320e696bSmrg 9667320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9668320e696bSmrg 966974a3f230Smrg eval supported=\$$cacheid 967074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 967174b97a6cSmrgprintf "%s\n" "$supported" >&6; } 9672320e696bSmrg if test "$supported" = "yes" ; then 9673320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9674320e696bSmrg found="yes" 9675320e696bSmrg fi 9676320e696bSmrg fi 9677320e696bSmrg 9678320e696bSmrg 9679320e696bSmrg 9680320e696bSmrg 9681320e696bSmrg 9682320e696bSmrg 9683320e696bSmrg 968474a3f230Smrg 968574a3f230Smrg 968674a3f230Smrg 968774a3f230Smrg 968874a3f230Smrg 968974a3f230Smrg 969074a3f230Smrg 969174a3f230Smrg 9692320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9693320e696bSmrg 969474a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9695320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 969674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 969774b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 969874b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 969974b97a6cSmrgthen : 970074b97a6cSmrg printf %s "(cached) " >&6 970174b97a6cSmrgelse $as_nop 9702320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9703320e696bSmrg/* end confdefs.h. */ 9704320e696bSmrgint i; 9705320e696bSmrg_ACEOF 970674b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 970774b97a6cSmrgthen : 9708320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 970974b97a6cSmrgelse $as_nop 9710320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 9711320e696bSmrgfi 971274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9713320e696bSmrgfi 971474b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 971574b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 971674a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9717320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9718320e696bSmrgfi 9719320e696bSmrg 972074a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 972174a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9722320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9723320e696bSmrg fi 9724320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 972574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 972674b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 972774b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 972874b97a6cSmrgthen : 972974b97a6cSmrg printf %s "(cached) " >&6 973074b97a6cSmrgelse $as_nop 9731320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9732320e696bSmrg/* end confdefs.h. */ 9733320e696bSmrgint i; 9734320e696bSmrg_ACEOF 973574b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 973674b97a6cSmrgthen : 9737320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 973874b97a6cSmrgelse $as_nop 9739320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9740320e696bSmrgfi 974174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9742320e696bSmrgfi 974374b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 974474b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 974574a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9746320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9747320e696bSmrgfi 9748320e696bSmrg 9749320e696bSmrgfound="no" 9750320e696bSmrg 9751320e696bSmrg if test $found = "no" ; then 975206ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9753320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9754320e696bSmrg fi 9755320e696bSmrg 975606ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9757320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9758320e696bSmrg fi 9759320e696bSmrg 9760320e696bSmrg CFLAGS="$CFLAGS -Wtrigraphs" 9761320e696bSmrg 976274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 976374b97a6cSmrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; } 976474a3f230Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 976574b97a6cSmrg if eval test \${$cacheid+y} 976674b97a6cSmrgthen : 976774b97a6cSmrg printf %s "(cached) " >&6 976874b97a6cSmrgelse $as_nop 9769320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9770320e696bSmrg/* end confdefs.h. */ 9771320e696bSmrgint i; 9772320e696bSmrgint 977374b97a6cSmrgmain (void) 9774320e696bSmrg{ 9775320e696bSmrg 9776320e696bSmrg ; 9777320e696bSmrg return 0; 9778320e696bSmrg} 9779320e696bSmrg_ACEOF 978074b97a6cSmrgif ac_fn_c_try_link "$LINENO" 978174b97a6cSmrgthen : 978274a3f230Smrg eval $cacheid=yes 978374b97a6cSmrgelse $as_nop 978474a3f230Smrg eval $cacheid=no 9785320e696bSmrgfi 978674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9787320e696bSmrg conftest$ac_exeext conftest.$ac_ext 9788320e696bSmrgfi 9789320e696bSmrg 9790320e696bSmrg 9791320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9792320e696bSmrg 979374a3f230Smrg eval supported=\$$cacheid 979474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 979574b97a6cSmrgprintf "%s\n" "$supported" >&6; } 9796320e696bSmrg if test "$supported" = "yes" ; then 9797320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9798320e696bSmrg found="yes" 9799320e696bSmrg fi 9800320e696bSmrg fi 9801320e696bSmrg 9802320e696bSmrg 9803320e696bSmrg 9804320e696bSmrg 9805320e696bSmrg 9806320e696bSmrg 9807320e696bSmrg 980874a3f230Smrg 980974a3f230Smrg 981074a3f230Smrg 981174a3f230Smrg 981274a3f230Smrg 981374a3f230Smrg 981474a3f230Smrg 981574a3f230Smrg 9816320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9817320e696bSmrg 981874a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9819320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 982074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 982174b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 982274b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 982374b97a6cSmrgthen : 982474b97a6cSmrg printf %s "(cached) " >&6 982574b97a6cSmrgelse $as_nop 9826320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9827320e696bSmrg/* end confdefs.h. */ 9828320e696bSmrgint i; 9829320e696bSmrg_ACEOF 983074b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 983174b97a6cSmrgthen : 9832320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 983374b97a6cSmrgelse $as_nop 9834320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 9835320e696bSmrgfi 983674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9837320e696bSmrgfi 983874b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 983974b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 984074a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9841320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9842320e696bSmrgfi 9843320e696bSmrg 984474a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 984574a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9846320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9847320e696bSmrg fi 9848320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 984974b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 985074b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 985174b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 985274b97a6cSmrgthen : 985374b97a6cSmrg printf %s "(cached) " >&6 985474b97a6cSmrgelse $as_nop 9855320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9856320e696bSmrg/* end confdefs.h. */ 9857320e696bSmrgint i; 9858320e696bSmrg_ACEOF 985974b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 986074b97a6cSmrgthen : 9861320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 986274b97a6cSmrgelse $as_nop 9863320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9864320e696bSmrgfi 986574b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9866320e696bSmrgfi 986774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 986874b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 986974a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9870320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9871320e696bSmrgfi 9872320e696bSmrg 9873320e696bSmrgfound="no" 9874320e696bSmrg 9875320e696bSmrg if test $found = "no" ; then 987606ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9877320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9878320e696bSmrg fi 9879320e696bSmrg 988006ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9881320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9882320e696bSmrg fi 9883320e696bSmrg 9884320e696bSmrg CFLAGS="$CFLAGS -Warray-bounds" 9885320e696bSmrg 988674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 988774b97a6cSmrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; } 988874a3f230Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 988974b97a6cSmrg if eval test \${$cacheid+y} 989074b97a6cSmrgthen : 989174b97a6cSmrg printf %s "(cached) " >&6 989274b97a6cSmrgelse $as_nop 9893320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9894320e696bSmrg/* end confdefs.h. */ 9895320e696bSmrgint i; 9896320e696bSmrgint 989774b97a6cSmrgmain (void) 9898320e696bSmrg{ 9899320e696bSmrg 9900320e696bSmrg ; 9901320e696bSmrg return 0; 9902320e696bSmrg} 9903320e696bSmrg_ACEOF 990474b97a6cSmrgif ac_fn_c_try_link "$LINENO" 990574b97a6cSmrgthen : 990674a3f230Smrg eval $cacheid=yes 990774b97a6cSmrgelse $as_nop 990874a3f230Smrg eval $cacheid=no 9909320e696bSmrgfi 991074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9911320e696bSmrg conftest$ac_exeext conftest.$ac_ext 9912320e696bSmrgfi 9913320e696bSmrg 9914320e696bSmrg 9915320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9916320e696bSmrg 991774a3f230Smrg eval supported=\$$cacheid 991874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 991974b97a6cSmrgprintf "%s\n" "$supported" >&6; } 9920320e696bSmrg if test "$supported" = "yes" ; then 9921320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9922320e696bSmrg found="yes" 9923320e696bSmrg fi 9924320e696bSmrg fi 9925320e696bSmrg 9926320e696bSmrg 9927320e696bSmrg 9928320e696bSmrg 9929320e696bSmrg 9930320e696bSmrg 9931320e696bSmrg 993274a3f230Smrg 993374a3f230Smrg 993474a3f230Smrg 993574a3f230Smrg 993674a3f230Smrg 993774a3f230Smrg 993874a3f230Smrg 993974a3f230Smrg 9940320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9941320e696bSmrg 994274a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9943320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 994474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 994574b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 994674b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 994774b97a6cSmrgthen : 994874b97a6cSmrg printf %s "(cached) " >&6 994974b97a6cSmrgelse $as_nop 9950320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9951320e696bSmrg/* end confdefs.h. */ 9952320e696bSmrgint i; 9953320e696bSmrg_ACEOF 995474b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 995574b97a6cSmrgthen : 9956320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 995774b97a6cSmrgelse $as_nop 9958320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 9959320e696bSmrgfi 996074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9961320e696bSmrgfi 996274b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 996374b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 996474a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9965320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9966320e696bSmrgfi 9967320e696bSmrg 996874a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 996974a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9970320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9971320e696bSmrg fi 9972320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 997374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 997474b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 997574b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 997674b97a6cSmrgthen : 997774b97a6cSmrg printf %s "(cached) " >&6 997874b97a6cSmrgelse $as_nop 9979320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9980320e696bSmrg/* end confdefs.h. */ 9981320e696bSmrgint i; 9982320e696bSmrg_ACEOF 998374b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 998474b97a6cSmrgthen : 9985320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 998674b97a6cSmrgelse $as_nop 9987320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9988320e696bSmrgfi 998974b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9990320e696bSmrgfi 999174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 999274b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 999374a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9994320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9995320e696bSmrgfi 9996320e696bSmrg 9997320e696bSmrgfound="no" 9998320e696bSmrg 9999320e696bSmrg if test $found = "no" ; then 1000006ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10001320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10002320e696bSmrg fi 10003320e696bSmrg 1000406ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10005320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10006320e696bSmrg fi 10007320e696bSmrg 10008320e696bSmrg CFLAGS="$CFLAGS -Wwrite-strings" 10009320e696bSmrg 1001074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 1001174b97a6cSmrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; } 1001274a3f230Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 1001374b97a6cSmrg if eval test \${$cacheid+y} 1001474b97a6cSmrgthen : 1001574b97a6cSmrg printf %s "(cached) " >&6 1001674b97a6cSmrgelse $as_nop 10017320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10018320e696bSmrg/* end confdefs.h. */ 10019320e696bSmrgint i; 10020320e696bSmrgint 1002174b97a6cSmrgmain (void) 10022320e696bSmrg{ 10023320e696bSmrg 10024320e696bSmrg ; 10025320e696bSmrg return 0; 10026320e696bSmrg} 10027320e696bSmrg_ACEOF 1002874b97a6cSmrgif ac_fn_c_try_link "$LINENO" 1002974b97a6cSmrgthen : 1003074a3f230Smrg eval $cacheid=yes 1003174b97a6cSmrgelse $as_nop 1003274a3f230Smrg eval $cacheid=no 10033320e696bSmrgfi 1003474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10035320e696bSmrg conftest$ac_exeext conftest.$ac_ext 10036320e696bSmrgfi 10037320e696bSmrg 10038320e696bSmrg 10039320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10040320e696bSmrg 1004174a3f230Smrg eval supported=\$$cacheid 1004274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1004374b97a6cSmrgprintf "%s\n" "$supported" >&6; } 10044320e696bSmrg if test "$supported" = "yes" ; then 10045320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10046320e696bSmrg found="yes" 10047320e696bSmrg fi 10048320e696bSmrg fi 10049320e696bSmrg 10050320e696bSmrg 10051320e696bSmrg 10052320e696bSmrg 10053320e696bSmrg 10054320e696bSmrg 10055320e696bSmrg 1005674a3f230Smrg 1005774a3f230Smrg 1005874a3f230Smrg 1005974a3f230Smrg 1006074a3f230Smrg 1006174a3f230Smrg 1006274a3f230Smrg 1006374a3f230Smrg 10064320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10065320e696bSmrg 1006674a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10067320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1006874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1006974b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1007074b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 1007174b97a6cSmrgthen : 1007274b97a6cSmrg printf %s "(cached) " >&6 1007374b97a6cSmrgelse $as_nop 10074320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10075320e696bSmrg/* end confdefs.h. */ 10076320e696bSmrgint i; 10077320e696bSmrg_ACEOF 1007874b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 1007974b97a6cSmrgthen : 10080320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 1008174b97a6cSmrgelse $as_nop 10082320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 10083320e696bSmrgfi 1008474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10085320e696bSmrgfi 1008674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1008774b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1008874a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10089320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10090320e696bSmrgfi 10091320e696bSmrg 1009274a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1009374a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10094320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10095320e696bSmrg fi 10096320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1009774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1009874b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1009974b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 1010074b97a6cSmrgthen : 1010174b97a6cSmrg printf %s "(cached) " >&6 1010274b97a6cSmrgelse $as_nop 10103320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10104320e696bSmrg/* end confdefs.h. */ 10105320e696bSmrgint i; 10106320e696bSmrg_ACEOF 1010774b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 1010874b97a6cSmrgthen : 10109320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 1011074b97a6cSmrgelse $as_nop 10111320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 10112320e696bSmrgfi 1011374b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10114320e696bSmrgfi 1011574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1011674b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1011774a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10118320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10119320e696bSmrgfi 10120320e696bSmrg 10121320e696bSmrgfound="no" 10122320e696bSmrg 10123320e696bSmrg if test $found = "no" ; then 1012406ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10125320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10126320e696bSmrg fi 10127320e696bSmrg 1012806ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10129320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10130320e696bSmrg fi 10131320e696bSmrg 10132320e696bSmrg CFLAGS="$CFLAGS -Waddress" 10133320e696bSmrg 1013474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 1013574b97a6cSmrgprintf %s "checking if $CC supports -Waddress... " >&6; } 1013674a3f230Smrg cacheid=xorg_cv_cc_flag__Waddress 1013774b97a6cSmrg if eval test \${$cacheid+y} 1013874b97a6cSmrgthen : 1013974b97a6cSmrg printf %s "(cached) " >&6 1014074b97a6cSmrgelse $as_nop 10141320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10142320e696bSmrg/* end confdefs.h. */ 10143320e696bSmrgint i; 10144320e696bSmrgint 1014574b97a6cSmrgmain (void) 10146320e696bSmrg{ 10147320e696bSmrg 10148320e696bSmrg ; 10149320e696bSmrg return 0; 10150320e696bSmrg} 10151320e696bSmrg_ACEOF 1015274b97a6cSmrgif ac_fn_c_try_link "$LINENO" 1015374b97a6cSmrgthen : 1015474a3f230Smrg eval $cacheid=yes 1015574b97a6cSmrgelse $as_nop 1015674a3f230Smrg eval $cacheid=no 10157320e696bSmrgfi 1015874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10159320e696bSmrg conftest$ac_exeext conftest.$ac_ext 10160320e696bSmrgfi 10161320e696bSmrg 10162320e696bSmrg 10163320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10164320e696bSmrg 1016574a3f230Smrg eval supported=\$$cacheid 1016674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1016774b97a6cSmrgprintf "%s\n" "$supported" >&6; } 10168320e696bSmrg if test "$supported" = "yes" ; then 10169320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10170320e696bSmrg found="yes" 10171320e696bSmrg fi 10172320e696bSmrg fi 10173320e696bSmrg 10174320e696bSmrg 10175320e696bSmrg 10176320e696bSmrg 10177320e696bSmrg 10178320e696bSmrg 10179320e696bSmrg 1018074a3f230Smrg 1018174a3f230Smrg 1018274a3f230Smrg 1018374a3f230Smrg 1018474a3f230Smrg 1018574a3f230Smrg 1018674a3f230Smrg 1018774a3f230Smrg 10188320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10189320e696bSmrg 1019074a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10191320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1019274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1019374b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1019474b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 1019574b97a6cSmrgthen : 1019674b97a6cSmrg printf %s "(cached) " >&6 1019774b97a6cSmrgelse $as_nop 10198320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10199320e696bSmrg/* end confdefs.h. */ 10200320e696bSmrgint i; 10201320e696bSmrg_ACEOF 1020274b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 1020374b97a6cSmrgthen : 10204320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 1020574b97a6cSmrgelse $as_nop 10206320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 10207320e696bSmrgfi 1020874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10209320e696bSmrgfi 1021074b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1021174b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1021274a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10213320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10214320e696bSmrgfi 10215320e696bSmrg 1021674a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1021774a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10218320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10219320e696bSmrg fi 10220320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1022174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1022274b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1022374b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 1022474b97a6cSmrgthen : 1022574b97a6cSmrg printf %s "(cached) " >&6 1022674b97a6cSmrgelse $as_nop 10227320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10228320e696bSmrg/* end confdefs.h. */ 10229320e696bSmrgint i; 10230320e696bSmrg_ACEOF 1023174b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 1023274b97a6cSmrgthen : 10233320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 1023474b97a6cSmrgelse $as_nop 10235320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 10236320e696bSmrgfi 1023774b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10238320e696bSmrgfi 1023974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1024074b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1024174a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10242320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10243320e696bSmrgfi 10244320e696bSmrg 10245320e696bSmrgfound="no" 10246320e696bSmrg 10247320e696bSmrg if test $found = "no" ; then 1024806ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10249320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10250320e696bSmrg fi 10251320e696bSmrg 1025206ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10253320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10254320e696bSmrg fi 10255320e696bSmrg 10256320e696bSmrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10257320e696bSmrg 1025874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 1025974b97a6cSmrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 1026074a3f230Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 1026174b97a6cSmrg if eval test \${$cacheid+y} 1026274b97a6cSmrgthen : 1026374b97a6cSmrg printf %s "(cached) " >&6 1026474b97a6cSmrgelse $as_nop 10265320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10266320e696bSmrg/* end confdefs.h. */ 10267320e696bSmrgint i; 10268320e696bSmrgint 1026974b97a6cSmrgmain (void) 10270320e696bSmrg{ 10271320e696bSmrg 10272320e696bSmrg ; 10273320e696bSmrg return 0; 10274320e696bSmrg} 10275320e696bSmrg_ACEOF 1027674b97a6cSmrgif ac_fn_c_try_link "$LINENO" 1027774b97a6cSmrgthen : 1027874a3f230Smrg eval $cacheid=yes 1027974b97a6cSmrgelse $as_nop 1028074a3f230Smrg eval $cacheid=no 10281320e696bSmrgfi 1028274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10283320e696bSmrg conftest$ac_exeext conftest.$ac_ext 10284320e696bSmrgfi 10285320e696bSmrg 10286320e696bSmrg 10287320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10288320e696bSmrg 1028974a3f230Smrg eval supported=\$$cacheid 1029074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1029174b97a6cSmrgprintf "%s\n" "$supported" >&6; } 10292320e696bSmrg if test "$supported" = "yes" ; then 10293320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10294320e696bSmrg found="yes" 10295320e696bSmrg fi 10296320e696bSmrg fi 10297320e696bSmrg 10298320e696bSmrg 10299320e696bSmrg 10300320e696bSmrg 10301320e696bSmrg 10302320e696bSmrg 10303320e696bSmrg 1030474a3f230Smrg 1030574a3f230Smrg 1030674a3f230Smrg 1030774a3f230Smrg 1030874a3f230Smrg 1030974a3f230Smrg 1031074a3f230Smrg 1031174a3f230Smrg 10312320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10313320e696bSmrg 1031474a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10315320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1031674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1031774b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1031874b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 1031974b97a6cSmrgthen : 1032074b97a6cSmrg printf %s "(cached) " >&6 1032174b97a6cSmrgelse $as_nop 10322320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10323320e696bSmrg/* end confdefs.h. */ 10324320e696bSmrgint i; 10325320e696bSmrg_ACEOF 1032674b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 1032774b97a6cSmrgthen : 10328320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 1032974b97a6cSmrgelse $as_nop 10330320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 10331320e696bSmrgfi 1033274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10333320e696bSmrgfi 1033474b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1033574b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1033674a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10337320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10338320e696bSmrgfi 10339320e696bSmrg 1034074a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1034174a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10342320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10343320e696bSmrg fi 10344320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1034574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1034674b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1034774b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 1034874b97a6cSmrgthen : 1034974b97a6cSmrg printf %s "(cached) " >&6 1035074b97a6cSmrgelse $as_nop 10351320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10352320e696bSmrg/* end confdefs.h. */ 10353320e696bSmrgint i; 10354320e696bSmrg_ACEOF 1035574b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 1035674b97a6cSmrgthen : 10357320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 1035874b97a6cSmrgelse $as_nop 10359320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 10360320e696bSmrgfi 1036174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10362320e696bSmrgfi 1036374b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1036474b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1036574a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10366320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10367320e696bSmrgfi 10368320e696bSmrg 10369320e696bSmrgfound="no" 10370320e696bSmrg 10371320e696bSmrg if test $found = "no" ; then 1037206ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10373320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10374320e696bSmrg fi 10375320e696bSmrg 1037606ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10377320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10378320e696bSmrg fi 10379320e696bSmrg 10380320e696bSmrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10381320e696bSmrg 1038274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 1038374b97a6cSmrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 1038474a3f230Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 1038574b97a6cSmrg if eval test \${$cacheid+y} 1038674b97a6cSmrgthen : 1038774b97a6cSmrg printf %s "(cached) " >&6 1038874b97a6cSmrgelse $as_nop 10389320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10390320e696bSmrg/* end confdefs.h. */ 10391320e696bSmrgint i; 10392320e696bSmrgint 1039374b97a6cSmrgmain (void) 10394320e696bSmrg{ 10395320e696bSmrg 10396320e696bSmrg ; 10397320e696bSmrg return 0; 10398320e696bSmrg} 10399320e696bSmrg_ACEOF 1040074b97a6cSmrgif ac_fn_c_try_link "$LINENO" 1040174b97a6cSmrgthen : 1040274a3f230Smrg eval $cacheid=yes 1040374b97a6cSmrgelse $as_nop 1040474a3f230Smrg eval $cacheid=no 10405320e696bSmrgfi 1040674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10407320e696bSmrg conftest$ac_exeext conftest.$ac_ext 10408320e696bSmrgfi 10409320e696bSmrg 10410320e696bSmrg 10411320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10412320e696bSmrg 1041374a3f230Smrg eval supported=\$$cacheid 1041474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1041574b97a6cSmrgprintf "%s\n" "$supported" >&6; } 10416320e696bSmrg if test "$supported" = "yes" ; then 10417320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10418320e696bSmrg found="yes" 10419320e696bSmrg fi 10420320e696bSmrg fi 10421320e696bSmrg 10422320e696bSmrg 10423320e696bSmrgfi 10424320e696bSmrg 10425320e696bSmrg 10426320e696bSmrg 10427320e696bSmrg 10428320e696bSmrg 10429320e696bSmrg 1043074a3f230Smrg 1043174a3f230Smrg CWARNFLAGS="$BASE_CFLAGS" 1043274a3f230Smrg if test "x$GCC" = xyes ; then 1043374a3f230Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 1043474a3f230Smrg fi 1043574a3f230Smrg 1043674a3f230Smrg 10437320e696bSmrg 10438320e696bSmrg 10439320e696bSmrg 10440320e696bSmrg 10441320e696bSmrg 10442320e696bSmrg 10443320e696bSmrg# Check whether --enable-strict-compilation was given. 1044474b97a6cSmrgif test ${enable_strict_compilation+y} 1044574b97a6cSmrgthen : 10446320e696bSmrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 1044774b97a6cSmrgelse $as_nop 10448320e696bSmrg STRICT_COMPILE=no 10449320e696bSmrgfi 10450320e696bSmrg 10451320e696bSmrg 1045274a3f230Smrg 1045374a3f230Smrg 1045474a3f230Smrg 1045574a3f230Smrg 10456320e696bSmrgSTRICT_CFLAGS="" 10457320e696bSmrg 10458320e696bSmrg 10459320e696bSmrg 10460320e696bSmrg 10461320e696bSmrg 1046274a3f230Smrg 1046374a3f230Smrg 1046474a3f230Smrg 1046574a3f230Smrg 1046674a3f230Smrg 1046774a3f230Smrg 1046874a3f230Smrg 1046974a3f230Smrg 10470320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10471320e696bSmrg 1047274a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10473320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1047474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1047574b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1047674b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 1047774b97a6cSmrgthen : 1047874b97a6cSmrg printf %s "(cached) " >&6 1047974b97a6cSmrgelse $as_nop 10480320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10481320e696bSmrg/* end confdefs.h. */ 10482320e696bSmrgint i; 10483320e696bSmrg_ACEOF 1048474b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 1048574b97a6cSmrgthen : 10486320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 1048774b97a6cSmrgelse $as_nop 10488320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 10489320e696bSmrgfi 1049074b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10491320e696bSmrgfi 1049274b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1049374b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1049474a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10495320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10496320e696bSmrgfi 10497320e696bSmrg 1049874a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1049974a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10500320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10501320e696bSmrg fi 10502320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1050374b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1050474b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1050574b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 1050674b97a6cSmrgthen : 1050774b97a6cSmrg printf %s "(cached) " >&6 1050874b97a6cSmrgelse $as_nop 10509320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10510320e696bSmrg/* end confdefs.h. */ 10511320e696bSmrgint i; 10512320e696bSmrg_ACEOF 1051374b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 1051474b97a6cSmrgthen : 10515320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 1051674b97a6cSmrgelse $as_nop 10517320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 10518320e696bSmrgfi 1051974b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10520320e696bSmrgfi 1052174b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1052274b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1052374a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10524320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10525320e696bSmrgfi 10526320e696bSmrg 10527320e696bSmrgfound="no" 10528320e696bSmrg 10529320e696bSmrg if test $found = "no" ; then 1053006ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10531320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10532320e696bSmrg fi 10533320e696bSmrg 1053406ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10535320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10536320e696bSmrg fi 10537320e696bSmrg 10538320e696bSmrg CFLAGS="$CFLAGS -pedantic" 10539320e696bSmrg 1054074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 1054174b97a6cSmrgprintf %s "checking if $CC supports -pedantic... " >&6; } 1054274a3f230Smrg cacheid=xorg_cv_cc_flag__pedantic 1054374b97a6cSmrg if eval test \${$cacheid+y} 1054474b97a6cSmrgthen : 1054574b97a6cSmrg printf %s "(cached) " >&6 1054674b97a6cSmrgelse $as_nop 10547320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10548320e696bSmrg/* end confdefs.h. */ 10549320e696bSmrgint i; 10550320e696bSmrgint 1055174b97a6cSmrgmain (void) 10552320e696bSmrg{ 10553320e696bSmrg 10554320e696bSmrg ; 10555320e696bSmrg return 0; 10556320e696bSmrg} 10557320e696bSmrg_ACEOF 1055874b97a6cSmrgif ac_fn_c_try_link "$LINENO" 1055974b97a6cSmrgthen : 1056074a3f230Smrg eval $cacheid=yes 1056174b97a6cSmrgelse $as_nop 1056274a3f230Smrg eval $cacheid=no 10563320e696bSmrgfi 1056474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10565320e696bSmrg conftest$ac_exeext conftest.$ac_ext 10566320e696bSmrgfi 10567320e696bSmrg 10568320e696bSmrg 10569320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10570320e696bSmrg 1057174a3f230Smrg eval supported=\$$cacheid 1057274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1057374b97a6cSmrgprintf "%s\n" "$supported" >&6; } 10574320e696bSmrg if test "$supported" = "yes" ; then 10575320e696bSmrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10576320e696bSmrg found="yes" 10577320e696bSmrg fi 10578320e696bSmrg fi 10579320e696bSmrg 10580320e696bSmrg 10581320e696bSmrg 10582320e696bSmrg 10583320e696bSmrg 10584320e696bSmrg 10585320e696bSmrg 1058674a3f230Smrg 1058774a3f230Smrg 1058874a3f230Smrg 1058974a3f230Smrg 1059074a3f230Smrg 1059174a3f230Smrg 1059274a3f230Smrg 1059374a3f230Smrg 10594320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10595320e696bSmrg 1059674a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10597320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1059874b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1059974b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1060074b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 1060174b97a6cSmrgthen : 1060274b97a6cSmrg printf %s "(cached) " >&6 1060374b97a6cSmrgelse $as_nop 10604320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10605320e696bSmrg/* end confdefs.h. */ 10606320e696bSmrgint i; 10607320e696bSmrg_ACEOF 1060874b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 1060974b97a6cSmrgthen : 10610320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 1061174b97a6cSmrgelse $as_nop 10612320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 10613320e696bSmrgfi 1061474b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10615320e696bSmrgfi 1061674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1061774b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1061874a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10619320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10620320e696bSmrgfi 10621320e696bSmrg 1062274a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1062374a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10624320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10625320e696bSmrg fi 10626320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1062774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1062874b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1062974b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 1063074b97a6cSmrgthen : 1063174b97a6cSmrg printf %s "(cached) " >&6 1063274b97a6cSmrgelse $as_nop 10633320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10634320e696bSmrg/* end confdefs.h. */ 10635320e696bSmrgint i; 10636320e696bSmrg_ACEOF 1063774b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 1063874b97a6cSmrgthen : 10639320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 1064074b97a6cSmrgelse $as_nop 10641320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 10642320e696bSmrgfi 1064374b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10644320e696bSmrgfi 1064574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1064674b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1064774a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10648320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10649320e696bSmrgfi 10650320e696bSmrg 10651320e696bSmrgfound="no" 10652320e696bSmrg 10653320e696bSmrg if test $found = "no" ; then 1065406ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10655320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10656320e696bSmrg fi 10657320e696bSmrg 1065806ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10659320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10660320e696bSmrg fi 10661320e696bSmrg 10662320e696bSmrg CFLAGS="$CFLAGS -Werror" 10663320e696bSmrg 1066474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 1066574b97a6cSmrgprintf %s "checking if $CC supports -Werror... " >&6; } 1066674a3f230Smrg cacheid=xorg_cv_cc_flag__Werror 1066774b97a6cSmrg if eval test \${$cacheid+y} 1066874b97a6cSmrgthen : 1066974b97a6cSmrg printf %s "(cached) " >&6 1067074b97a6cSmrgelse $as_nop 10671320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10672320e696bSmrg/* end confdefs.h. */ 10673320e696bSmrgint i; 10674320e696bSmrgint 1067574b97a6cSmrgmain (void) 10676320e696bSmrg{ 10677320e696bSmrg 10678320e696bSmrg ; 10679320e696bSmrg return 0; 10680320e696bSmrg} 10681320e696bSmrg_ACEOF 1068274b97a6cSmrgif ac_fn_c_try_link "$LINENO" 1068374b97a6cSmrgthen : 1068474a3f230Smrg eval $cacheid=yes 1068574b97a6cSmrgelse $as_nop 1068674a3f230Smrg eval $cacheid=no 10687320e696bSmrgfi 1068874b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10689320e696bSmrg conftest$ac_exeext conftest.$ac_ext 10690320e696bSmrgfi 10691320e696bSmrg 10692320e696bSmrg 10693320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10694320e696bSmrg 1069574a3f230Smrg eval supported=\$$cacheid 1069674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1069774b97a6cSmrgprintf "%s\n" "$supported" >&6; } 10698320e696bSmrg if test "$supported" = "yes" ; then 10699320e696bSmrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10700320e696bSmrg found="yes" 10701320e696bSmrg fi 10702320e696bSmrg fi 10703320e696bSmrg 10704320e696bSmrg if test $found = "no" ; then 1070506ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10706320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10707320e696bSmrg fi 10708320e696bSmrg 1070906ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10710320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10711320e696bSmrg fi 10712320e696bSmrg 10713320e696bSmrg CFLAGS="$CFLAGS -errwarn" 10714320e696bSmrg 1071574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 1071674b97a6cSmrgprintf %s "checking if $CC supports -errwarn... " >&6; } 1071774a3f230Smrg cacheid=xorg_cv_cc_flag__errwarn 1071874b97a6cSmrg if eval test \${$cacheid+y} 1071974b97a6cSmrgthen : 1072074b97a6cSmrg printf %s "(cached) " >&6 1072174b97a6cSmrgelse $as_nop 10722320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10723320e696bSmrg/* end confdefs.h. */ 10724320e696bSmrgint i; 10725320e696bSmrgint 1072674b97a6cSmrgmain (void) 10727320e696bSmrg{ 10728320e696bSmrg 10729320e696bSmrg ; 10730320e696bSmrg return 0; 10731320e696bSmrg} 10732320e696bSmrg_ACEOF 1073374b97a6cSmrgif ac_fn_c_try_link "$LINENO" 1073474b97a6cSmrgthen : 1073574a3f230Smrg eval $cacheid=yes 1073674b97a6cSmrgelse $as_nop 1073774a3f230Smrg eval $cacheid=no 10738320e696bSmrgfi 1073974b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10740320e696bSmrg conftest$ac_exeext conftest.$ac_ext 10741320e696bSmrgfi 10742320e696bSmrg 10743320e696bSmrg 10744320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10745320e696bSmrg 1074674a3f230Smrg eval supported=\$$cacheid 1074774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1074874b97a6cSmrgprintf "%s\n" "$supported" >&6; } 10749320e696bSmrg if test "$supported" = "yes" ; then 10750320e696bSmrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10751320e696bSmrg found="yes" 10752320e696bSmrg fi 10753320e696bSmrg fi 10754320e696bSmrg 10755320e696bSmrg 10756320e696bSmrg 10757320e696bSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10758320e696bSmrg# activate it with -Werror, so we add it here explicitly. 10759320e696bSmrg 10760320e696bSmrg 10761320e696bSmrg 10762320e696bSmrg 10763320e696bSmrg 1076474a3f230Smrg 1076574a3f230Smrg 1076674a3f230Smrg 1076774a3f230Smrg 1076874a3f230Smrg 1076974a3f230Smrg 1077074a3f230Smrg 1077174a3f230Smrg 10772320e696bSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10773320e696bSmrg 1077474a3f230Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10775320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1077674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1077774b97a6cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1077874b97a6cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 1077974b97a6cSmrgthen : 1078074b97a6cSmrg printf %s "(cached) " >&6 1078174b97a6cSmrgelse $as_nop 10782320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10783320e696bSmrg/* end confdefs.h. */ 10784320e696bSmrgint i; 10785320e696bSmrg_ACEOF 1078674b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 1078774b97a6cSmrgthen : 10788320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=yes 1078974b97a6cSmrgelse $as_nop 10790320e696bSmrg xorg_cv_cc_flag_unknown_warning_option=no 10791320e696bSmrgfi 1079274b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10793320e696bSmrgfi 1079474b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1079574b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1079674a3f230Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10797320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10798320e696bSmrgfi 10799320e696bSmrg 1080074a3f230Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1080174a3f230Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10802320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10803320e696bSmrg fi 10804320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1080574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1080674b97a6cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1080774b97a6cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 1080874b97a6cSmrgthen : 1080974b97a6cSmrg printf %s "(cached) " >&6 1081074b97a6cSmrgelse $as_nop 10811320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10812320e696bSmrg/* end confdefs.h. */ 10813320e696bSmrgint i; 10814320e696bSmrg_ACEOF 1081574b97a6cSmrgif ac_fn_c_try_compile "$LINENO" 1081674b97a6cSmrgthen : 10817320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 1081874b97a6cSmrgelse $as_nop 10819320e696bSmrg xorg_cv_cc_flag_unused_command_line_argument=no 10820320e696bSmrgfi 1082174b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10822320e696bSmrgfi 1082374b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1082474b97a6cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1082574a3f230Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10826320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10827320e696bSmrgfi 10828320e696bSmrg 10829320e696bSmrgfound="no" 10830320e696bSmrg 10831320e696bSmrg if test $found = "no" ; then 1083206ef0fecSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10833320e696bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10834320e696bSmrg fi 10835320e696bSmrg 1083606ef0fecSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10837320e696bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10838320e696bSmrg fi 10839320e696bSmrg 10840320e696bSmrg CFLAGS="$CFLAGS -Werror=attributes" 10841320e696bSmrg 1084274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 1084374b97a6cSmrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; } 1084406ef0fecSmrg cacheid=xorg_cv_cc_flag__Werror_attributes 1084574b97a6cSmrg if eval test \${$cacheid+y} 1084674b97a6cSmrgthen : 1084774b97a6cSmrg printf %s "(cached) " >&6 1084874b97a6cSmrgelse $as_nop 10849320e696bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10850320e696bSmrg/* end confdefs.h. */ 10851320e696bSmrgint i; 10852320e696bSmrgint 1085374b97a6cSmrgmain (void) 10854320e696bSmrg{ 10855320e696bSmrg 10856320e696bSmrg ; 10857320e696bSmrg return 0; 10858320e696bSmrg} 10859320e696bSmrg_ACEOF 1086074b97a6cSmrgif ac_fn_c_try_link "$LINENO" 1086174b97a6cSmrgthen : 1086274a3f230Smrg eval $cacheid=yes 1086374b97a6cSmrgelse $as_nop 1086474a3f230Smrg eval $cacheid=no 10865320e696bSmrgfi 1086674b97a6cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10867320e696bSmrg conftest$ac_exeext conftest.$ac_ext 10868320e696bSmrgfi 10869320e696bSmrg 10870320e696bSmrg 10871320e696bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10872320e696bSmrg 1087374a3f230Smrg eval supported=\$$cacheid 1087474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1087574b97a6cSmrgprintf "%s\n" "$supported" >&6; } 10876320e696bSmrg if test "$supported" = "yes" ; then 10877320e696bSmrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10878320e696bSmrg found="yes" 10879320e696bSmrg fi 10880320e696bSmrg fi 10881320e696bSmrg 10882320e696bSmrg 10883320e696bSmrg 10884320e696bSmrgif test "x$STRICT_COMPILE" = "xyes"; then 10885320e696bSmrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10886320e696bSmrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10887320e696bSmrgfi 10888320e696bSmrg 10889320e696bSmrg 108905e358ecaSmrg 108915e358ecaSmrg 108925e358ecaSmrg 108935e358ecaSmrg 108946728f30eSmrg 108956728f30eSmrg 108965e358ecaSmrgcat >>confdefs.h <<_ACEOF 108975e358ecaSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 108985e358ecaSmrg_ACEOF 108995e358ecaSmrg 109005e358ecaSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 109015e358ecaSmrg if test "x$PVM" = "x"; then 109025e358ecaSmrg PVM="0" 109035e358ecaSmrg fi 109045e358ecaSmrg 1090574b97a6cSmrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 109065e358ecaSmrg 109075e358ecaSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 109085e358ecaSmrg if test "x$PVP" = "x"; then 109095e358ecaSmrg PVP="0" 109105e358ecaSmrg fi 109115e358ecaSmrg 1091274b97a6cSmrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 109135e358ecaSmrg 109145e358ecaSmrg 109155e358ecaSmrg 1091674b97a6cSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 1091729cb5710Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 1091874b97a6cSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 1091974b97a6cSmrgtouch \$(top_srcdir)/ChangeLog; \ 1092074b97a6cSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 109215e358ecaSmrg 1092229cb5710Smrg 1092329cb5710Smrg 1092429cb5710Smrg 1092529cb5710Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 1092629cb5710SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 1092729cb5710Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 1092874b97a6cSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 1092974b97a6cSmrgtouch \$(top_srcdir)/INSTALL; \ 1093074b97a6cSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 1093174b97a6cSmrg 1093274b97a6cSmrg 1093329cb5710Smrg 109345e358ecaSmrg 109355e358ecaSmrg 109365e358ecaSmrg 1093774b97a6cSmrgcase $host_os in 1093874b97a6cSmrg solaris*) 1093974b97a6cSmrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 1094074b97a6cSmrg # check for a man page file found in later versions that use 1094174b97a6cSmrg # traditional section numbers instead 1094274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 1094374b97a6cSmrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 1094474b97a6cSmrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 1094574b97a6cSmrgthen : 1094674b97a6cSmrg printf %s "(cached) " >&6 1094774b97a6cSmrgelse $as_nop 1094874b97a6cSmrg test "$cross_compiling" = yes && 1094974b97a6cSmrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 1095074b97a6cSmrgif test -r "/usr/share/man/man7/attributes.7"; then 1095174b97a6cSmrg ac_cv_file__usr_share_man_man7_attributes_7=yes 1095274b97a6cSmrgelse 1095374b97a6cSmrg ac_cv_file__usr_share_man_man7_attributes_7=no 1095474b97a6cSmrgfi 1095574b97a6cSmrgfi 1095674b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 1095774b97a6cSmrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 1095874b97a6cSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 1095974b97a6cSmrgthen : 1096074b97a6cSmrg SYSV_MAN_SECTIONS=false 1096174b97a6cSmrgelse $as_nop 1096274b97a6cSmrg SYSV_MAN_SECTIONS=true 1096374b97a6cSmrgfi 109645e358ecaSmrg 1096574b97a6cSmrg ;; 1096674b97a6cSmrg *) SYSV_MAN_SECTIONS=false ;; 1096774b97a6cSmrgesac 109685e358ecaSmrg 109695e358ecaSmrgif test x$APP_MAN_SUFFIX = x ; then 109705e358ecaSmrg APP_MAN_SUFFIX=1 109715e358ecaSmrgfi 109725e358ecaSmrgif test x$APP_MAN_DIR = x ; then 109735e358ecaSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 109745e358ecaSmrgfi 109755e358ecaSmrg 109765e358ecaSmrgif test x$LIB_MAN_SUFFIX = x ; then 109775e358ecaSmrg LIB_MAN_SUFFIX=3 109785e358ecaSmrgfi 109795e358ecaSmrgif test x$LIB_MAN_DIR = x ; then 109805e358ecaSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 109815e358ecaSmrgfi 109825e358ecaSmrg 109835e358ecaSmrgif test x$FILE_MAN_SUFFIX = x ; then 1098474b97a6cSmrg case $SYSV_MAN_SECTIONS in 1098574b97a6cSmrg true) FILE_MAN_SUFFIX=4 ;; 1098606ef0fecSmrg *) FILE_MAN_SUFFIX=5 ;; 109875e358ecaSmrg esac 109885e358ecaSmrgfi 109895e358ecaSmrgif test x$FILE_MAN_DIR = x ; then 109905e358ecaSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 109915e358ecaSmrgfi 109925e358ecaSmrg 109935e358ecaSmrgif test x$MISC_MAN_SUFFIX = x ; then 1099474b97a6cSmrg case $SYSV_MAN_SECTIONS in 1099574b97a6cSmrg true) MISC_MAN_SUFFIX=5 ;; 1099606ef0fecSmrg *) MISC_MAN_SUFFIX=7 ;; 109975e358ecaSmrg esac 109985e358ecaSmrgfi 109995e358ecaSmrgif test x$MISC_MAN_DIR = x ; then 110005e358ecaSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 110015e358ecaSmrgfi 110025e358ecaSmrg 110035e358ecaSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 1100474b97a6cSmrg case $SYSV_MAN_SECTIONS in 1100574b97a6cSmrg true) DRIVER_MAN_SUFFIX=7 ;; 1100606ef0fecSmrg *) DRIVER_MAN_SUFFIX=4 ;; 110075e358ecaSmrg esac 110085e358ecaSmrgfi 110095e358ecaSmrgif test x$DRIVER_MAN_DIR = x ; then 110105e358ecaSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 110115e358ecaSmrgfi 110125e358ecaSmrg 110135e358ecaSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 1101474b97a6cSmrg case $SYSV_MAN_SECTIONS in 1101574b97a6cSmrg true) ADMIN_MAN_SUFFIX=1m ;; 1101606ef0fecSmrg *) ADMIN_MAN_SUFFIX=8 ;; 110175e358ecaSmrg esac 110185e358ecaSmrgfi 110195e358ecaSmrgif test x$ADMIN_MAN_DIR = x ; then 110205e358ecaSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11021b3307321Smrgfi 11022b3307321Smrg 11023b3307321Smrg 11024b3307321Smrg 110255e358ecaSmrg 110265e358ecaSmrg 110275e358ecaSmrg 110285e358ecaSmrg 110295e358ecaSmrg 110305e358ecaSmrg 110315e358ecaSmrg 110325e358ecaSmrg 110335e358ecaSmrg 110345e358ecaSmrg 110355e358ecaSmrg 110365e358ecaSmrg 1103729cb5710SmrgXORG_MAN_PAGE="X Version 11" 11038b3307321Smrg 1103929cb5710SmrgMAN_SUBSTS="\ 1104029cb5710Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1104129cb5710Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1104229cb5710Smrg -e 's|__xservername__|Xorg|g' \ 1104329cb5710Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 1104429cb5710Smrg -e 's|__projectroot__|\$(prefix)|g' \ 1104529cb5710Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1104629cb5710Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1104729cb5710Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1104829cb5710Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1104929cb5710Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1105029cb5710Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1105129cb5710Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11052b3307321Smrg 11053b3307321Smrg 11054b3307321Smrg 1105529cb5710Smrg# Check whether --enable-silent-rules was given. 1105674b97a6cSmrgif test ${enable_silent_rules+y} 1105774b97a6cSmrgthen : 1105829cb5710Smrg enableval=$enable_silent_rules; 11059b3307321Smrgfi 11060b3307321Smrg 1106174a3f230Smrgcase $enable_silent_rules in # ((( 1106274a3f230Smrg yes) AM_DEFAULT_VERBOSITY=0;; 1106374a3f230Smrg no) AM_DEFAULT_VERBOSITY=1;; 1106474a3f230Smrg *) AM_DEFAULT_VERBOSITY=0;; 1106529cb5710Smrgesac 1106674a3f230Smrgam_make=${MAKE-make} 1106774b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 1106874b97a6cSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 1106974b97a6cSmrgif test ${am_cv_make_support_nested_variables+y} 1107074b97a6cSmrgthen : 1107174b97a6cSmrg printf %s "(cached) " >&6 1107274b97a6cSmrgelse $as_nop 1107374b97a6cSmrg if printf "%s\n" 'TRUE=$(BAR$(V)) 1107474a3f230SmrgBAR0=false 1107574a3f230SmrgBAR1=true 1107674a3f230SmrgV=1 1107774a3f230Smrgam__doit: 1107874a3f230Smrg @$(TRUE) 1107974a3f230Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 1108074a3f230Smrg am_cv_make_support_nested_variables=yes 1108174a3f230Smrgelse 1108274a3f230Smrg am_cv_make_support_nested_variables=no 1108374a3f230Smrgfi 1108474a3f230Smrgfi 1108574b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 1108674b97a6cSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 1108774a3f230Smrgif test $am_cv_make_support_nested_variables = yes; then 1108874a3f230Smrg AM_V='$(V)' 1108974a3f230Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1109074a3f230Smrgelse 1109174a3f230Smrg AM_V=$AM_DEFAULT_VERBOSITY 1109274a3f230Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1109374a3f230Smrgfi 1109429cb5710SmrgAM_BACKSLASH='\' 1109529cb5710Smrg 1109629cb5710Smrg 1109729cb5710Smrg 110986728f30eSmrg 1109974a3f230Smrg# Optional dependencies 1110074a3f230Smrg 1110174a3f230Smrg# Check whether --with-xkb was given. 1110274b97a6cSmrgif test ${with_xkb+y} 1110374b97a6cSmrgthen : 1110474a3f230Smrg withval=$with_xkb; use_xkb="$withval" 1110574b97a6cSmrgelse $as_nop 1110674a3f230Smrg use_xkb="yes" 1110774a3f230Smrgfi 1110874a3f230Smrg 1110974a3f230Smrgif test x$use_xkb != xno ; then 1111074a3f230Smrg XKBMODULE="xkbfile" 1111174a3f230Smrg 1111274b97a6cSmrgprintf "%s\n" "#define XKB 1" >>confdefs.h 1111374a3f230Smrg 1111474a3f230Smrgfi 1111574a3f230Smrg 1111629cb5710Smrg# Checks for pkg-config packages 1111729cb5710Smrg 11118b3307321Smrgpkg_failed=no 1111974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XWD" >&5 1112074b97a6cSmrgprintf %s "checking for XWD... " >&6; } 11121afe13c8eSmrg 11122afe13c8eSmrgif test -n "$XWD_CFLAGS"; then 11123afe13c8eSmrg pkg_cv_XWD_CFLAGS="$XWD_CFLAGS" 11124afe13c8eSmrg elif test -n "$PKG_CONFIG"; then 11125afe13c8eSmrg if test -n "$PKG_CONFIG" && \ 1112674b97a6cSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25 \${XKBMODULE}\""; } >&5 1112706ef0fecSmrg ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25 ${XKBMODULE}") 2>&5 11128b3307321Smrg ac_status=$? 1112974b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1113029cb5710Smrg test $ac_status = 0; }; then 1113106ef0fecSmrg pkg_cv_XWD_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>/dev/null` 1113206ef0fecSmrg test "x$?" != "x0" && pkg_failed=yes 11133b3307321Smrgelse 11134b3307321Smrg pkg_failed=yes 11135b3307321Smrgfi 11136afe13c8eSmrg else 11137afe13c8eSmrg pkg_failed=untried 11138b3307321Smrgfi 11139afe13c8eSmrgif test -n "$XWD_LIBS"; then 11140afe13c8eSmrg pkg_cv_XWD_LIBS="$XWD_LIBS" 11141afe13c8eSmrg elif test -n "$PKG_CONFIG"; then 11142afe13c8eSmrg if test -n "$PKG_CONFIG" && \ 1114374b97a6cSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25 \${XKBMODULE}\""; } >&5 1114406ef0fecSmrg ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25 ${XKBMODULE}") 2>&5 11145b3307321Smrg ac_status=$? 1114674b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1114729cb5710Smrg test $ac_status = 0; }; then 1114806ef0fecSmrg pkg_cv_XWD_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>/dev/null` 1114906ef0fecSmrg test "x$?" != "x0" && pkg_failed=yes 11150b3307321Smrgelse 11151b3307321Smrg pkg_failed=yes 11152b3307321Smrgfi 11153afe13c8eSmrg else 11154afe13c8eSmrg pkg_failed=untried 11155b3307321Smrgfi 11156b3307321Smrg 11157b3307321Smrg 11158b3307321Smrg 11159b3307321Smrgif test $pkg_failed = yes; then 1116074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 1116174b97a6cSmrgprintf "%s\n" "no" >&6; } 11162b3307321Smrg 11163b3307321Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11164b3307321Smrg _pkg_short_errors_supported=yes 11165b3307321Smrgelse 11166b3307321Smrg _pkg_short_errors_supported=no 11167b3307321Smrgfi 11168b3307321Smrg if test $_pkg_short_errors_supported = yes; then 1116906ef0fecSmrg XWD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>&1` 11170b3307321Smrg else 1117106ef0fecSmrg XWD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>&1` 11172b3307321Smrg fi 11173b3307321Smrg # Put the nasty error message in config.log where it belongs 11174b3307321Smrg echo "$XWD_PKG_ERRORS" >&5 11175b3307321Smrg 1117606ef0fecSmrg as_fn_error $? "Package requirements (x11 xproto >= 7.0.25 ${XKBMODULE}) were not met: 11177b3307321Smrg 11178b3307321Smrg$XWD_PKG_ERRORS 11179b3307321Smrg 11180b3307321SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 11181b3307321Smrginstalled software in a non-standard prefix. 11182b3307321Smrg 11183b3307321SmrgAlternatively, you may set the environment variables XWD_CFLAGS 11184b3307321Smrgand XWD_LIBS to avoid the need to call pkg-config. 1118506ef0fecSmrgSee the pkg-config man page for more details." "$LINENO" 5 11186b3307321Smrgelif test $pkg_failed = untried; then 1118774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 1118874b97a6cSmrgprintf "%s\n" "no" >&6; } 1118974b97a6cSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1119074b97a6cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1119129cb5710Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11192b3307321Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 11193b3307321Smrgpath to pkg-config. 11194b3307321Smrg 11195b3307321SmrgAlternatively, you may set the environment variables XWD_CFLAGS 11196b3307321Smrgand XWD_LIBS to avoid the need to call pkg-config. 11197b3307321SmrgSee the pkg-config man page for more details. 11198b3307321Smrg 11199afe13c8eSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 1120029cb5710SmrgSee \`config.log' for more details" "$LINENO" 5; } 11201b3307321Smrgelse 11202b3307321Smrg XWD_CFLAGS=$pkg_cv_XWD_CFLAGS 11203b3307321Smrg XWD_LIBS=$pkg_cv_XWD_LIBS 1120474b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 1120574b97a6cSmrgprintf "%s\n" "yes" >&6; } 1120606ef0fecSmrg 11207b3307321Smrgfi 11208b3307321Smrg 11209320e696bSmrgac_config_files="$ac_config_files Makefile man/Makefile" 11210b3307321Smrg 11211b3307321Smrgcat >confcache <<\_ACEOF 11212b3307321Smrg# This file is a shell script that caches the results of configure 11213b3307321Smrg# tests run on this system so they can be shared between configure 11214b3307321Smrg# scripts and configure runs, see configure's option --config-cache. 11215b3307321Smrg# It is not useful on other systems. If it contains results you don't 11216b3307321Smrg# want to keep, you may remove or edit it. 11217b3307321Smrg# 11218b3307321Smrg# config.status only pays attention to the cache file if you give it 11219b3307321Smrg# the --recheck option to rerun configure. 11220b3307321Smrg# 11221b3307321Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 11222b3307321Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 11223b3307321Smrg# following values. 11224b3307321Smrg 11225b3307321Smrg_ACEOF 11226b3307321Smrg 11227b3307321Smrg# The following way of writing the cache mishandles newlines in values, 11228b3307321Smrg# but we know of no workaround that is simple, portable, and efficient. 11229afe13c8eSmrg# So, we kill variables containing newlines. 11230b3307321Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 11231b3307321Smrg# and sets the high bit in the cache file unless we assign to the vars. 11232afe13c8eSmrg( 11233afe13c8eSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11234afe13c8eSmrg eval ac_val=\$$ac_var 11235afe13c8eSmrg case $ac_val in #( 11236afe13c8eSmrg *${as_nl}*) 11237afe13c8eSmrg case $ac_var in #( 1123874b97a6cSmrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1123974b97a6cSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11240afe13c8eSmrg esac 11241afe13c8eSmrg case $ac_var in #( 11242afe13c8eSmrg _ | IFS | as_nl) ;; #( 11243afe13c8eSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1124429cb5710Smrg *) { eval $ac_var=; unset $ac_var;} ;; 11245afe13c8eSmrg esac ;; 11246afe13c8eSmrg esac 11247afe13c8eSmrg done 11248afe13c8eSmrg 11249b3307321Smrg (set) 2>&1 | 11250afe13c8eSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 11251afe13c8eSmrg *${as_nl}ac_space=\ *) 1125229cb5710Smrg # `set' does not quote correctly, so add quotes: double-quote 1125329cb5710Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 11254b3307321Smrg sed -n \ 11255b3307321Smrg "s/'/'\\\\''/g; 11256b3307321Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11257afe13c8eSmrg ;; #( 11258b3307321Smrg *) 11259b3307321Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 11260afe13c8eSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11261b3307321Smrg ;; 11262afe13c8eSmrg esac | 11263afe13c8eSmrg sort 11264afe13c8eSmrg) | 11265b3307321Smrg sed ' 11266afe13c8eSmrg /^ac_cv_env_/b end 11267b3307321Smrg t clear 11268afe13c8eSmrg :clear 1126974b97a6cSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11270b3307321Smrg t end 11271afe13c8eSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11272afe13c8eSmrg :end' >>confcache 11273afe13c8eSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11274afe13c8eSmrg if test -w "$cache_file"; then 1127529cb5710Smrg if test "x$cache_file" != "x/dev/null"; then 1127674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 1127774b97a6cSmrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;} 1127829cb5710Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 1127929cb5710Smrg cat confcache >"$cache_file" 1128029cb5710Smrg else 1128129cb5710Smrg case $cache_file in #( 1128229cb5710Smrg */* | ?:*) 1128329cb5710Smrg mv -f confcache "$cache_file"$$ && 1128429cb5710Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 1128529cb5710Smrg *) 1128629cb5710Smrg mv -f confcache "$cache_file" ;; 1128729cb5710Smrg esac 1128829cb5710Smrg fi 1128929cb5710Smrg fi 11290b3307321Smrg else 1129174b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 1129274b97a6cSmrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11293b3307321Smrg fi 11294b3307321Smrgfi 11295b3307321Smrgrm -f confcache 11296b3307321Smrg 11297b3307321Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 11298b3307321Smrg# Let make expand exec_prefix. 11299b3307321Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11300b3307321Smrg 11301b3307321SmrgDEFS=-DHAVE_CONFIG_H 11302b3307321Smrg 11303b3307321Smrgac_libobjs= 11304b3307321Smrgac_ltlibobjs= 1130529cb5710SmrgU= 11306b3307321Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11307b3307321Smrg # 1. Remove the extension, and $U if already installed. 11308afe13c8eSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 1130974b97a6cSmrg ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11310afe13c8eSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11311afe13c8eSmrg # will be set to the directory where LIBOBJS objects are built. 1131229cb5710Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 1131329cb5710Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11314b3307321Smrgdone 11315b3307321SmrgLIBOBJS=$ac_libobjs 11316b3307321Smrg 11317b3307321SmrgLTLIBOBJS=$ac_ltlibobjs 11318b3307321Smrg 11319b3307321Smrg 1132074b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 1132174b97a6cSmrgprintf %s "checking that generated files are newer than configure... " >&6; } 1132274a3f230Smrg if test -n "$am_sleep_pid"; then 1132374a3f230Smrg # Hide warnings about reused PIDs. 1132474a3f230Smrg wait $am_sleep_pid 2>/dev/null 1132574a3f230Smrg fi 1132674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 1132774b97a6cSmrgprintf "%s\n" "done" >&6; } 113285e358ecaSmrg if test -n "$EXEEXT"; then 113295e358ecaSmrg am__EXEEXT_TRUE= 113305e358ecaSmrg am__EXEEXT_FALSE='#' 113315e358ecaSmrgelse 113325e358ecaSmrg am__EXEEXT_TRUE='#' 113335e358ecaSmrg am__EXEEXT_FALSE= 113345e358ecaSmrgfi 113355e358ecaSmrg 11336b3307321Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 1133729cb5710Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 1133829cb5710SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11339b3307321Smrgfi 11340b3307321Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 1134129cb5710Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 1134229cb5710SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11343b3307321Smrgfi 11344b3307321Smrg 1134529cb5710Smrg: "${CONFIG_STATUS=./config.status}" 11346afe13c8eSmrgac_write_fail=0 11347b3307321Smrgac_clean_files_save=$ac_clean_files 11348b3307321Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 1134974b97a6cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 1135074b97a6cSmrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 1135129cb5710Smrgas_write_fail=0 1135229cb5710Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11353b3307321Smrg#! $SHELL 11354b3307321Smrg# Generated by $as_me. 11355b3307321Smrg# Run this file to recreate the current configuration. 11356b3307321Smrg# Compiler output produced by configure, useful for debugging 11357b3307321Smrg# configure, is in config.log if it exists. 11358b3307321Smrg 11359b3307321Smrgdebug=false 11360b3307321Smrgac_cs_recheck=false 11361b3307321Smrgac_cs_silent=false 11362b3307321Smrg 1136329cb5710SmrgSHELL=\${CONFIG_SHELL-$SHELL} 1136429cb5710Smrgexport SHELL 1136529cb5710Smrg_ASEOF 1136629cb5710Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 1136729cb5710Smrg## -------------------- ## 1136829cb5710Smrg## M4sh Initialization. ## 1136929cb5710Smrg## -------------------- ## 11370b3307321Smrg 11371afe13c8eSmrg# Be more Bourne compatible 11372afe13c8eSmrgDUALCASE=1; export DUALCASE # for MKS sh 1137374b97a6cSmrgas_nop=: 1137474b97a6cSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 1137574b97a6cSmrgthen : 11376b3307321Smrg emulate sh 11377b3307321Smrg NULLCMD=: 11378afe13c8eSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11379b3307321Smrg # is contrary to our usage. Disable this feature. 11380b3307321Smrg alias -g '${1+"$@"}'='"$@"' 11381afe13c8eSmrg setopt NO_GLOB_SUBST 1138274b97a6cSmrgelse $as_nop 1138329cb5710Smrg case `(set -o) 2>/dev/null` in #( 1138429cb5710Smrg *posix*) : 1138529cb5710Smrg set -o posix ;; #( 1138629cb5710Smrg *) : 1138729cb5710Smrg ;; 11388afe13c8eSmrgesac 11389afe13c8eSmrgfi 11390afe13c8eSmrg 11391afe13c8eSmrg 1139274b97a6cSmrg 1139374b97a6cSmrg# Reset variables that may have inherited troublesome values from 1139474b97a6cSmrg# the environment. 1139574b97a6cSmrg 1139674b97a6cSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 1139774b97a6cSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 1139874b97a6cSmrg# side effect of setting IFS to empty, thus disabling word splitting.) 1139974b97a6cSmrg# Quoting is to prevent editors from complaining about space-tab. 11400afe13c8eSmrgas_nl=' 11401afe13c8eSmrg' 11402afe13c8eSmrgexport as_nl 1140374b97a6cSmrgIFS=" "" $as_nl" 1140474b97a6cSmrg 1140574b97a6cSmrgPS1='$ ' 1140674b97a6cSmrgPS2='> ' 1140774b97a6cSmrgPS4='+ ' 1140874b97a6cSmrg 1140974b97a6cSmrg# Ensure predictable behavior from utilities with locale-dependent output. 1141074b97a6cSmrgLC_ALL=C 1141174b97a6cSmrgexport LC_ALL 1141274b97a6cSmrgLANGUAGE=C 1141374b97a6cSmrgexport LANGUAGE 1141474b97a6cSmrg 1141574b97a6cSmrg# We cannot yet rely on "unset" to work, but we need these variables 1141674b97a6cSmrg# to be unset--not just set to an empty or harmless value--now, to 1141774b97a6cSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 1141874b97a6cSmrg# also avoids known problems related to "unset" and subshell syntax 1141974b97a6cSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 1142074b97a6cSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 1142174b97a6cSmrgdo eval test \${$as_var+y} \ 1142274b97a6cSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1142374b97a6cSmrgdone 1142474b97a6cSmrg 1142574b97a6cSmrg# Ensure that fds 0, 1, and 2 are open. 1142674b97a6cSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 1142774b97a6cSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 1142874b97a6cSmrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11429afe13c8eSmrg 11430afe13c8eSmrg# The user is always right. 1143174b97a6cSmrgif ${PATH_SEPARATOR+false} :; then 11432afe13c8eSmrg PATH_SEPARATOR=: 11433afe13c8eSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11434afe13c8eSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11435afe13c8eSmrg PATH_SEPARATOR=';' 11436afe13c8eSmrg } 11437b3307321Smrgfi 11438b3307321Smrg 11439b3307321Smrg 11440afe13c8eSmrg# Find who we are. Look in the path if we contain no directory separator. 1144129cb5710Smrgas_myself= 1144229cb5710Smrgcase $0 in #(( 11443afe13c8eSmrg *[\\/]* ) as_myself=$0 ;; 11444afe13c8eSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11445afe13c8eSmrgfor as_dir in $PATH 11446afe13c8eSmrgdo 11447afe13c8eSmrg IFS=$as_save_IFS 1144874b97a6cSmrg case $as_dir in #((( 1144974b97a6cSmrg '') as_dir=./ ;; 1145074b97a6cSmrg */) ;; 1145174b97a6cSmrg *) as_dir=$as_dir/ ;; 1145274b97a6cSmrg esac 1145374b97a6cSmrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 1145429cb5710Smrg done 11455afe13c8eSmrgIFS=$as_save_IFS 11456afe13c8eSmrg 11457afe13c8eSmrg ;; 11458afe13c8eSmrgesac 11459afe13c8eSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 11460afe13c8eSmrg# in which case we are not to be found in the path. 11461afe13c8eSmrgif test "x$as_myself" = x; then 11462afe13c8eSmrg as_myself=$0 11463afe13c8eSmrgfi 11464afe13c8eSmrgif test ! -f "$as_myself"; then 1146574b97a6cSmrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1146629cb5710Smrg exit 1 11467afe13c8eSmrgfi 11468afe13c8eSmrg 1146929cb5710Smrg 1147029cb5710Smrg 1147129cb5710Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 1147229cb5710Smrg# ---------------------------------------- 1147329cb5710Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 1147429cb5710Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 1147529cb5710Smrg# script with STATUS, using 1 if that was 0. 1147629cb5710Smrgas_fn_error () 1147729cb5710Smrg{ 1147829cb5710Smrg as_status=$1; test $as_status -eq 0 && as_status=1 1147929cb5710Smrg if test "$4"; then 1148029cb5710Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1148174b97a6cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 1148229cb5710Smrg fi 1148374b97a6cSmrg printf "%s\n" "$as_me: error: $2" >&2 1148429cb5710Smrg as_fn_exit $as_status 1148529cb5710Smrg} # as_fn_error 1148629cb5710Smrg 1148729cb5710Smrg 1148874b97a6cSmrg 1148929cb5710Smrg# as_fn_set_status STATUS 1149029cb5710Smrg# ----------------------- 1149129cb5710Smrg# Set $? to STATUS, without forking. 1149229cb5710Smrgas_fn_set_status () 1149329cb5710Smrg{ 1149429cb5710Smrg return $1 1149529cb5710Smrg} # as_fn_set_status 1149629cb5710Smrg 1149729cb5710Smrg# as_fn_exit STATUS 1149829cb5710Smrg# ----------------- 1149929cb5710Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 1150029cb5710Smrgas_fn_exit () 1150129cb5710Smrg{ 1150229cb5710Smrg set +e 1150329cb5710Smrg as_fn_set_status $1 1150429cb5710Smrg exit $1 1150529cb5710Smrg} # as_fn_exit 1150629cb5710Smrg 1150729cb5710Smrg# as_fn_unset VAR 1150829cb5710Smrg# --------------- 1150929cb5710Smrg# Portably unset VAR. 1151029cb5710Smrgas_fn_unset () 1151129cb5710Smrg{ 1151229cb5710Smrg { eval $1=; unset $1;} 1151329cb5710Smrg} 1151429cb5710Smrgas_unset=as_fn_unset 1151574b97a6cSmrg 1151629cb5710Smrg# as_fn_append VAR VALUE 1151729cb5710Smrg# ---------------------- 1151829cb5710Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 1151929cb5710Smrg# advantage of any shell optimizations that allow amortized linear growth over 1152029cb5710Smrg# repeated appends, instead of the typical quadratic growth present in naive 1152129cb5710Smrg# implementations. 1152274b97a6cSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 1152374b97a6cSmrgthen : 1152429cb5710Smrg eval 'as_fn_append () 1152529cb5710Smrg { 1152629cb5710Smrg eval $1+=\$2 1152729cb5710Smrg }' 1152874b97a6cSmrgelse $as_nop 1152929cb5710Smrg as_fn_append () 1153029cb5710Smrg { 1153129cb5710Smrg eval $1=\$$1\$2 1153229cb5710Smrg } 1153329cb5710Smrgfi # as_fn_append 1153429cb5710Smrg 1153529cb5710Smrg# as_fn_arith ARG... 1153629cb5710Smrg# ------------------ 1153729cb5710Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 1153829cb5710Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 1153929cb5710Smrg# must be portable across $(()) and expr. 1154074b97a6cSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 1154174b97a6cSmrgthen : 1154229cb5710Smrg eval 'as_fn_arith () 1154329cb5710Smrg { 1154429cb5710Smrg as_val=$(( $* )) 1154529cb5710Smrg }' 1154674b97a6cSmrgelse $as_nop 1154729cb5710Smrg as_fn_arith () 1154829cb5710Smrg { 1154929cb5710Smrg as_val=`expr "$@" || test $? -eq 1` 1155029cb5710Smrg } 1155129cb5710Smrgfi # as_fn_arith 1155229cb5710Smrg 1155329cb5710Smrg 11554afe13c8eSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 11555afe13c8eSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 11556b3307321Smrg as_expr=expr 11557b3307321Smrgelse 11558b3307321Smrg as_expr=false 11559b3307321Smrgfi 11560b3307321Smrg 11561afe13c8eSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11562b3307321Smrg as_basename=basename 11563b3307321Smrgelse 11564b3307321Smrg as_basename=false 11565b3307321Smrgfi 11566b3307321Smrg 1156729cb5710Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 1156829cb5710Smrg as_dirname=dirname 1156929cb5710Smrgelse 1157029cb5710Smrg as_dirname=false 1157129cb5710Smrgfi 11572b3307321Smrg 11573afe13c8eSmrgas_me=`$as_basename -- "$0" || 11574b3307321Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11575b3307321Smrg X"$0" : 'X\(//\)$' \| \ 11576afe13c8eSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 1157774b97a6cSmrgprintf "%s\n" X/"$0" | 11578afe13c8eSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 11579afe13c8eSmrg s//\1/ 11580afe13c8eSmrg q 11581afe13c8eSmrg } 11582afe13c8eSmrg /^X\/\(\/\/\)$/{ 11583afe13c8eSmrg s//\1/ 11584afe13c8eSmrg q 11585afe13c8eSmrg } 11586afe13c8eSmrg /^X\/\(\/\).*/{ 11587afe13c8eSmrg s//\1/ 11588afe13c8eSmrg q 11589afe13c8eSmrg } 11590afe13c8eSmrg s/.*/./; q'` 11591b3307321Smrg 1159229cb5710Smrg# Avoid depending upon Character Ranges. 1159329cb5710Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 1159429cb5710Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 1159529cb5710Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 1159629cb5710Smrgas_cr_digits='0123456789' 1159729cb5710Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 11598b3307321Smrg 1159974b97a6cSmrg 1160074b97a6cSmrg# Determine whether it's possible to make 'echo' print without a newline. 1160174b97a6cSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 1160274b97a6cSmrg# for compatibility with existing Makefiles. 11603afe13c8eSmrgECHO_C= ECHO_N= ECHO_T= 1160429cb5710Smrgcase `echo -n x` in #((((( 11605afe13c8eSmrg-n*) 1160629cb5710Smrg case `echo 'xy\c'` in 11607afe13c8eSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 1160829cb5710Smrg xy) ECHO_C='\c';; 1160929cb5710Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 1161029cb5710Smrg ECHO_T=' ';; 11611afe13c8eSmrg esac;; 11612afe13c8eSmrg*) 11613afe13c8eSmrg ECHO_N='-n';; 11614afe13c8eSmrgesac 11615b3307321Smrg 1161674b97a6cSmrg# For backward compatibility with old third-party macros, we provide 1161774b97a6cSmrg# the shell variables $as_echo and $as_echo_n. New code should use 1161874b97a6cSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 1161974b97a6cSmrgas_echo='printf %s\n' 1162074b97a6cSmrgas_echo_n='printf %s' 1162174b97a6cSmrg 11622b3307321Smrgrm -f conf$$ conf$$.exe conf$$.file 11623afe13c8eSmrgif test -d conf$$.dir; then 11624afe13c8eSmrg rm -f conf$$.dir/conf$$.file 11625afe13c8eSmrgelse 11626afe13c8eSmrg rm -f conf$$.dir 11627afe13c8eSmrg mkdir conf$$.dir 2>/dev/null 11628afe13c8eSmrgfi 11629afe13c8eSmrgif (echo >conf$$.file) 2>/dev/null; then 11630afe13c8eSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 11631b3307321Smrg as_ln_s='ln -s' 11632afe13c8eSmrg # ... but there are two gotchas: 11633afe13c8eSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11634afe13c8eSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 1163506ef0fecSmrg # In both cases, we have to default to `cp -pR'. 11636afe13c8eSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 1163706ef0fecSmrg as_ln_s='cp -pR' 11638afe13c8eSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 11639afe13c8eSmrg as_ln_s=ln 11640afe13c8eSmrg else 1164106ef0fecSmrg as_ln_s='cp -pR' 11642b3307321Smrg fi 11643b3307321Smrgelse 1164406ef0fecSmrg as_ln_s='cp -pR' 11645b3307321Smrgfi 11646afe13c8eSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11647afe13c8eSmrgrmdir conf$$.dir 2>/dev/null 11648b3307321Smrg 1164929cb5710Smrg 1165029cb5710Smrg# as_fn_mkdir_p 1165129cb5710Smrg# ------------- 1165229cb5710Smrg# Create "$as_dir" as a directory, including parents if necessary. 1165329cb5710Smrgas_fn_mkdir_p () 1165429cb5710Smrg{ 1165529cb5710Smrg 1165629cb5710Smrg case $as_dir in #( 1165729cb5710Smrg -*) as_dir=./$as_dir;; 1165829cb5710Smrg esac 1165929cb5710Smrg test -d "$as_dir" || eval $as_mkdir_p || { 1166029cb5710Smrg as_dirs= 1166129cb5710Smrg while :; do 1166229cb5710Smrg case $as_dir in #( 1166374b97a6cSmrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 1166429cb5710Smrg *) as_qdir=$as_dir;; 1166529cb5710Smrg esac 1166629cb5710Smrg as_dirs="'$as_qdir' $as_dirs" 1166729cb5710Smrg as_dir=`$as_dirname -- "$as_dir" || 1166829cb5710Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1166929cb5710Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 1167029cb5710Smrg X"$as_dir" : 'X\(//\)$' \| \ 1167129cb5710Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 1167274b97a6cSmrgprintf "%s\n" X"$as_dir" | 1167329cb5710Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1167429cb5710Smrg s//\1/ 1167529cb5710Smrg q 1167629cb5710Smrg } 1167729cb5710Smrg /^X\(\/\/\)[^/].*/{ 1167829cb5710Smrg s//\1/ 1167929cb5710Smrg q 1168029cb5710Smrg } 1168129cb5710Smrg /^X\(\/\/\)$/{ 1168229cb5710Smrg s//\1/ 1168329cb5710Smrg q 1168429cb5710Smrg } 1168529cb5710Smrg /^X\(\/\).*/{ 1168629cb5710Smrg s//\1/ 1168729cb5710Smrg q 1168829cb5710Smrg } 1168929cb5710Smrg s/.*/./; q'` 1169029cb5710Smrg test -d "$as_dir" && break 1169129cb5710Smrg done 1169229cb5710Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 1169329cb5710Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 1169429cb5710Smrg 1169529cb5710Smrg 1169629cb5710Smrg} # as_fn_mkdir_p 11697b3307321Smrgif mkdir -p . 2>/dev/null; then 1169829cb5710Smrg as_mkdir_p='mkdir -p "$as_dir"' 11699b3307321Smrgelse 11700b3307321Smrg test -d ./-p && rmdir ./-p 11701b3307321Smrg as_mkdir_p=false 11702b3307321Smrgfi 11703b3307321Smrg 1170406ef0fecSmrg 1170506ef0fecSmrg# as_fn_executable_p FILE 1170606ef0fecSmrg# ----------------------- 1170706ef0fecSmrg# Test if FILE is an executable regular file. 1170806ef0fecSmrgas_fn_executable_p () 1170906ef0fecSmrg{ 1171006ef0fecSmrg test -f "$1" && test -x "$1" 1171106ef0fecSmrg} # as_fn_executable_p 1171206ef0fecSmrgas_test_x='test -x' 1171306ef0fecSmrgas_executable_p=as_fn_executable_p 11714b3307321Smrg 11715b3307321Smrg# Sed expression to map a string onto a valid CPP name. 11716b3307321Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11717b3307321Smrg 11718b3307321Smrg# Sed expression to map a string onto a valid variable name. 11719b3307321Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11720b3307321Smrg 11721b3307321Smrg 11722b3307321Smrgexec 6>&1 1172329cb5710Smrg## ----------------------------------- ## 1172429cb5710Smrg## Main body of $CONFIG_STATUS script. ## 1172529cb5710Smrg## ----------------------------------- ## 1172629cb5710Smrg_ASEOF 1172729cb5710Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11728b3307321Smrg 1172929cb5710Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1173029cb5710Smrg# Save the log message, to keep $0 and so on meaningful, and to 11731b3307321Smrg# report actual input values of CONFIG_FILES etc. instead of their 11732afe13c8eSmrg# values after options handling. 11733afe13c8eSmrgac_log=" 117346728f30eSmrgThis file was extended by xwd $as_me 1.0.9, which was 1173574b97a6cSmrggenerated by GNU Autoconf 2.71. Invocation command line was 11736b3307321Smrg 11737b3307321Smrg CONFIG_FILES = $CONFIG_FILES 11738b3307321Smrg CONFIG_HEADERS = $CONFIG_HEADERS 11739b3307321Smrg CONFIG_LINKS = $CONFIG_LINKS 11740b3307321Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 11741b3307321Smrg $ $0 $@ 11742b3307321Smrg 11743afe13c8eSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 11744afe13c8eSmrg" 11745afe13c8eSmrg 11746b3307321Smrg_ACEOF 11747b3307321Smrg 117485e358ecaSmrgcase $ac_config_files in *" 117495e358ecaSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 117505e358ecaSmrgesac 117515e358ecaSmrg 117525e358ecaSmrgcase $ac_config_headers in *" 117535e358ecaSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 117545e358ecaSmrgesac 117555e358ecaSmrg 117565e358ecaSmrg 11757afe13c8eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11758b3307321Smrg# Files that config.status was made for. 11759afe13c8eSmrgconfig_files="$ac_config_files" 11760afe13c8eSmrgconfig_headers="$ac_config_headers" 11761afe13c8eSmrgconfig_commands="$ac_config_commands" 11762b3307321Smrg 11763afe13c8eSmrg_ACEOF 11764b3307321Smrg 11765afe13c8eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11766b3307321Smrgac_cs_usage="\ 1176729cb5710Smrg\`$as_me' instantiates files and other configuration actions 1176829cb5710Smrgfrom templates according to the current configuration. Unless the files 1176929cb5710Smrgand actions are specified as TAGs, all are instantiated by default. 11770b3307321Smrg 1177129cb5710SmrgUsage: $0 [OPTION]... [TAG]... 11772b3307321Smrg 11773b3307321Smrg -h, --help print this help, then exit 11774afe13c8eSmrg -V, --version print version number and configuration settings, then exit 1177529cb5710Smrg --config print configuration, then exit 117765e358ecaSmrg -q, --quiet, --silent 117775e358ecaSmrg do not print progress messages 11778b3307321Smrg -d, --debug don't remove temporary files 11779b3307321Smrg --recheck update $as_me by reconfiguring in the same conditions 117805e358ecaSmrg --file=FILE[:TEMPLATE] 11781afe13c8eSmrg instantiate the configuration file FILE 117825e358ecaSmrg --header=FILE[:TEMPLATE] 11783afe13c8eSmrg instantiate the configuration header FILE 11784b3307321Smrg 11785b3307321SmrgConfiguration files: 11786b3307321Smrg$config_files 11787b3307321Smrg 11788b3307321SmrgConfiguration headers: 11789b3307321Smrg$config_headers 11790b3307321Smrg 11791b3307321SmrgConfiguration commands: 11792b3307321Smrg$config_commands 11793b3307321Smrg 1179474b97a6cSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xwd/issues>." 11795b3307321Smrg 11796afe13c8eSmrg_ACEOF 1179774b97a6cSmrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 1179874b97a6cSmrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11799afe13c8eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1180074b97a6cSmrgac_cs_config='$ac_cs_config_escaped' 11801b3307321Smrgac_cs_version="\\ 118026728f30eSmrgxwd config.status 1.0.9 1180374b97a6cSmrgconfigured by $0, generated by GNU Autoconf 2.71, 1180429cb5710Smrg with options \\"\$ac_cs_config\\" 11805b3307321Smrg 1180674b97a6cSmrgCopyright (C) 2021 Free Software Foundation, Inc. 11807b3307321SmrgThis config.status script is free software; the Free Software Foundation 11808b3307321Smrggives unlimited permission to copy, distribute and modify it." 11809afe13c8eSmrg 11810afe13c8eSmrgac_pwd='$ac_pwd' 11811afe13c8eSmrgsrcdir='$srcdir' 11812afe13c8eSmrgINSTALL='$INSTALL' 11813afe13c8eSmrgMKDIR_P='$MKDIR_P' 11814afe13c8eSmrgAWK='$AWK' 11815afe13c8eSmrgtest -n "\$AWK" || AWK=awk 11816b3307321Smrg_ACEOF 11817b3307321Smrg 11818afe13c8eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11819afe13c8eSmrg# The default lists apply if the user does not specify any file. 11820b3307321Smrgac_need_defaults=: 11821b3307321Smrgwhile test $# != 0 11822b3307321Smrgdo 11823b3307321Smrg case $1 in 1182429cb5710Smrg --*=?*) 11825afe13c8eSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 11826afe13c8eSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11827b3307321Smrg ac_shift=: 11828b3307321Smrg ;; 1182929cb5710Smrg --*=) 1183029cb5710Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 1183129cb5710Smrg ac_optarg= 1183229cb5710Smrg ac_shift=: 1183329cb5710Smrg ;; 11834afe13c8eSmrg *) 11835b3307321Smrg ac_option=$1 11836b3307321Smrg ac_optarg=$2 11837b3307321Smrg ac_shift=shift 11838b3307321Smrg ;; 11839b3307321Smrg esac 11840b3307321Smrg 11841b3307321Smrg case $ac_option in 11842b3307321Smrg # Handling of the options. 11843b3307321Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11844b3307321Smrg ac_cs_recheck=: ;; 11845afe13c8eSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 1184674b97a6cSmrg printf "%s\n" "$ac_cs_version"; exit ;; 1184729cb5710Smrg --config | --confi | --conf | --con | --co | --c ) 1184874b97a6cSmrg printf "%s\n" "$ac_cs_config"; exit ;; 11849afe13c8eSmrg --debug | --debu | --deb | --de | --d | -d ) 11850b3307321Smrg debug=: ;; 11851b3307321Smrg --file | --fil | --fi | --f ) 11852b3307321Smrg $ac_shift 11853afe13c8eSmrg case $ac_optarg in 1185474b97a6cSmrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 1185529cb5710Smrg '') as_fn_error $? "missing file argument" ;; 11856afe13c8eSmrg esac 1185729cb5710Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 11858b3307321Smrg ac_need_defaults=false;; 11859b3307321Smrg --header | --heade | --head | --hea ) 11860b3307321Smrg $ac_shift 11861afe13c8eSmrg case $ac_optarg in 1186274b97a6cSmrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11863afe13c8eSmrg esac 1186429cb5710Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11865b3307321Smrg ac_need_defaults=false;; 11866afe13c8eSmrg --he | --h) 11867afe13c8eSmrg # Conflict between --help and --header 1186829cb5710Smrg as_fn_error $? "ambiguous option: \`$1' 1186929cb5710SmrgTry \`$0 --help' for more information.";; 11870afe13c8eSmrg --help | --hel | -h ) 1187174b97a6cSmrg printf "%s\n" "$ac_cs_usage"; exit ;; 11872b3307321Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11873b3307321Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 11874b3307321Smrg ac_cs_silent=: ;; 11875b3307321Smrg 11876b3307321Smrg # This is an error. 1187729cb5710Smrg -*) as_fn_error $? "unrecognized option: \`$1' 1187829cb5710SmrgTry \`$0 --help' for more information." ;; 11879b3307321Smrg 1188029cb5710Smrg *) as_fn_append ac_config_targets " $1" 11881afe13c8eSmrg ac_need_defaults=false ;; 11882b3307321Smrg 11883b3307321Smrg esac 11884b3307321Smrg shift 11885b3307321Smrgdone 11886b3307321Smrg 11887b3307321Smrgac_configure_extra_args= 11888b3307321Smrg 11889b3307321Smrgif $ac_cs_silent; then 11890b3307321Smrg exec 6>/dev/null 11891b3307321Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 11892b3307321Smrgfi 11893b3307321Smrg 11894b3307321Smrg_ACEOF 11895afe13c8eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11896b3307321Smrgif \$ac_cs_recheck; then 1189706ef0fecSmrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11898afe13c8eSmrg shift 1189974b97a6cSmrg \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 11900afe13c8eSmrg CONFIG_SHELL='$SHELL' 11901afe13c8eSmrg export CONFIG_SHELL 11902afe13c8eSmrg exec "\$@" 11903b3307321Smrgfi 11904b3307321Smrg 11905b3307321Smrg_ACEOF 11906afe13c8eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11907afe13c8eSmrgexec 5>>config.log 11908afe13c8eSmrg{ 11909afe13c8eSmrg echo 11910afe13c8eSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11911afe13c8eSmrg## Running $as_me. ## 11912afe13c8eSmrg_ASBOX 1191374b97a6cSmrg printf "%s\n" "$ac_log" 11914afe13c8eSmrg} >&5 11915b3307321Smrg 11916afe13c8eSmrg_ACEOF 11917afe13c8eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11918b3307321Smrg# 11919afe13c8eSmrg# INIT-COMMANDS 11920b3307321Smrg# 1192174b97a6cSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 11922b3307321Smrg 11923b3307321Smrg_ACEOF 11924b3307321Smrg 11925afe13c8eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11926b3307321Smrg 11927afe13c8eSmrg# Handling of arguments. 11928b3307321Smrgfor ac_config_target in $ac_config_targets 11929b3307321Smrgdo 11930afe13c8eSmrg case $ac_config_target in 11931afe13c8eSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11932afe13c8eSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11933afe13c8eSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11934320e696bSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11935afe13c8eSmrg 1193629cb5710Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11937b3307321Smrg esac 11938b3307321Smrgdone 11939b3307321Smrg 11940afe13c8eSmrg 11941b3307321Smrg# If the user did not use the arguments to specify the items to instantiate, 11942b3307321Smrg# then the envvar interface is used. Set only those that are not. 11943b3307321Smrg# We use the long form for the default assignment because of an extremely 11944b3307321Smrg# bizarre bug on SunOS 4.1.3. 11945b3307321Smrgif $ac_need_defaults; then 1194674b97a6cSmrg test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 1194774b97a6cSmrg test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 1194874b97a6cSmrg test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 11949b3307321Smrgfi 11950b3307321Smrg 11951b3307321Smrg# Have a temporary directory for convenience. Make it in the build tree 11952afe13c8eSmrg# simply because there is no reason against having it here, and in addition, 11953b3307321Smrg# creating and moving files from /tmp can sometimes cause problems. 11954afe13c8eSmrg# Hook for its removal unless debugging. 11955afe13c8eSmrg# Note that there is a small window in which the directory will not be cleaned: 11956afe13c8eSmrg# after its creation but before its name has been assigned to `$tmp'. 11957b3307321Smrg$debug || 11958b3307321Smrg{ 1195929cb5710Smrg tmp= ac_tmp= 11960afe13c8eSmrg trap 'exit_status=$? 1196129cb5710Smrg : "${ac_tmp:=$tmp}" 1196229cb5710Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11963afe13c8eSmrg' 0 1196429cb5710Smrg trap 'as_fn_exit 1' 1 2 13 15 11965b3307321Smrg} 11966b3307321Smrg# Create a (secure) tmp directory for tmp files. 11967b3307321Smrg 11968b3307321Smrg{ 11969afe13c8eSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 1197029cb5710Smrg test -d "$tmp" 11971b3307321Smrg} || 11972b3307321Smrg{ 11973afe13c8eSmrg tmp=./conf$$-$RANDOM 11974afe13c8eSmrg (umask 077 && mkdir "$tmp") 1197529cb5710Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 1197629cb5710Smrgac_tmp=$tmp 11977b3307321Smrg 11978afe13c8eSmrg# Set up the scripts for CONFIG_FILES section. 11979afe13c8eSmrg# No need to generate them if there are no CONFIG_FILES. 11980afe13c8eSmrg# This happens for instance with `./config.status config.h'. 11981afe13c8eSmrgif test -n "$CONFIG_FILES"; then 11982afe13c8eSmrg 11983afe13c8eSmrg 1198429cb5710Smrgac_cr=`echo X | tr X '\015'` 1198529cb5710Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 1198629cb5710Smrg# But we know of no other shell where ac_cr would be empty at this 1198729cb5710Smrg# point, so we can use a bashism as a fallback. 1198829cb5710Smrgif test "x$ac_cr" = x; then 1198929cb5710Smrg eval ac_cr=\$\'\\r\' 1199029cb5710Smrgfi 11991afe13c8eSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11992afe13c8eSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11993afe13c8eSmrg ac_cs_awk_cr='\\r' 11994afe13c8eSmrgelse 11995afe13c8eSmrg ac_cs_awk_cr=$ac_cr 11996afe13c8eSmrgfi 11997afe13c8eSmrg 1199829cb5710Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 11999b3307321Smrg_ACEOF 12000b3307321Smrg 12001b3307321Smrg 12002afe13c8eSmrg{ 12003afe13c8eSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 12004afe13c8eSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12005afe13c8eSmrg echo "_ACEOF" 12006afe13c8eSmrg} >conf$$subs.sh || 1200729cb5710Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1200829cb5710Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12009afe13c8eSmrgac_delim='%!_!# ' 12010afe13c8eSmrgfor ac_last_try in false false false false false :; do 12011afe13c8eSmrg . ./conf$$subs.sh || 1201229cb5710Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12013b3307321Smrg 120145e358ecaSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 120155e358ecaSmrg if test $ac_delim_n = $ac_delim_num; then 12016afe13c8eSmrg break 12017afe13c8eSmrg elif $ac_last_try; then 1201829cb5710Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12019afe13c8eSmrg else 12020afe13c8eSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12021afe13c8eSmrg fi 12022afe13c8eSmrgdone 12023afe13c8eSmrgrm -f conf$$subs.sh 12024b3307321Smrg 12025afe13c8eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1202629cb5710Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12027b3307321Smrg_ACEOF 12028afe13c8eSmrgsed -n ' 12029afe13c8eSmrgh 12030afe13c8eSmrgs/^/S["/; s/!.*/"]=/ 12031afe13c8eSmrgp 12032afe13c8eSmrgg 12033afe13c8eSmrgs/^[^!]*!// 12034afe13c8eSmrg:repl 12035afe13c8eSmrgt repl 12036afe13c8eSmrgs/'"$ac_delim"'$// 12037afe13c8eSmrgt delim 12038afe13c8eSmrg:nl 12039afe13c8eSmrgh 1204029cb5710Smrgs/\(.\{148\}\)..*/\1/ 12041afe13c8eSmrgt more1 12042afe13c8eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12043afe13c8eSmrgp 12044afe13c8eSmrgn 12045afe13c8eSmrgb repl 12046afe13c8eSmrg:more1 12047afe13c8eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12048afe13c8eSmrgp 12049afe13c8eSmrgg 12050afe13c8eSmrgs/.\{148\}// 12051afe13c8eSmrgt nl 12052afe13c8eSmrg:delim 12053afe13c8eSmrgh 1205429cb5710Smrgs/\(.\{148\}\)..*/\1/ 12055afe13c8eSmrgt more2 12056afe13c8eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 12057afe13c8eSmrgp 12058afe13c8eSmrgb 12059afe13c8eSmrg:more2 12060afe13c8eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12061afe13c8eSmrgp 12062afe13c8eSmrgg 12063afe13c8eSmrgs/.\{148\}// 12064afe13c8eSmrgt delim 12065afe13c8eSmrg' <conf$$subs.awk | sed ' 12066afe13c8eSmrg/^[^""]/{ 12067afe13c8eSmrg N 12068afe13c8eSmrg s/\n// 12069afe13c8eSmrg} 12070afe13c8eSmrg' >>$CONFIG_STATUS || ac_write_fail=1 12071afe13c8eSmrgrm -f conf$$subs.awk 12072afe13c8eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12073afe13c8eSmrg_ACAWK 1207429cb5710Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12075afe13c8eSmrg for (key in S) S_is_set[key] = 1 12076afe13c8eSmrg FS = "" 12077b3307321Smrg 12078afe13c8eSmrg} 12079afe13c8eSmrg{ 12080afe13c8eSmrg line = $ 0 12081afe13c8eSmrg nfields = split(line, field, "@") 12082afe13c8eSmrg substed = 0 12083afe13c8eSmrg len = length(field[1]) 12084afe13c8eSmrg for (i = 2; i < nfields; i++) { 12085afe13c8eSmrg key = field[i] 12086afe13c8eSmrg keylen = length(key) 12087afe13c8eSmrg if (S_is_set[key]) { 12088afe13c8eSmrg value = S[key] 12089afe13c8eSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12090afe13c8eSmrg len += length(value) + length(field[++i]) 12091afe13c8eSmrg substed = 1 12092afe13c8eSmrg } else 12093afe13c8eSmrg len += 1 + keylen 12094afe13c8eSmrg } 12095afe13c8eSmrg 12096afe13c8eSmrg print line 12097afe13c8eSmrg} 12098afe13c8eSmrg 12099afe13c8eSmrg_ACAWK 12100afe13c8eSmrg_ACEOF 12101afe13c8eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12102afe13c8eSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12103afe13c8eSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12104afe13c8eSmrgelse 12105afe13c8eSmrg cat 1210629cb5710Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 1210729cb5710Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12108afe13c8eSmrg_ACEOF 12109afe13c8eSmrg 1211029cb5710Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 1211129cb5710Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12112afe13c8eSmrg# trailing colons and then remove the whole line if VPATH becomes empty 12113afe13c8eSmrg# (actually we leave an empty line to preserve line numbers). 12114afe13c8eSmrgif test "x$srcdir" = x.; then 1211529cb5710Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 1211629cb5710Smrgh 1211729cb5710Smrgs/// 1211829cb5710Smrgs/^/:/ 1211929cb5710Smrgs/[ ]*$/:/ 1212029cb5710Smrgs/:\$(srcdir):/:/g 1212129cb5710Smrgs/:\${srcdir}:/:/g 1212229cb5710Smrgs/:@srcdir@:/:/g 1212329cb5710Smrgs/^:*// 12124afe13c8eSmrgs/:*$// 1212529cb5710Smrgx 1212629cb5710Smrgs/\(=[ ]*\).*/\1/ 1212729cb5710SmrgG 1212829cb5710Smrgs/\n// 12129afe13c8eSmrgs/^[^=]*=[ ]*$// 12130afe13c8eSmrg}' 12131afe13c8eSmrgfi 12132afe13c8eSmrg 12133afe13c8eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12134b3307321Smrgfi # test -n "$CONFIG_FILES" 12135b3307321Smrg 12136afe13c8eSmrg# Set up the scripts for CONFIG_HEADERS section. 12137afe13c8eSmrg# No need to generate them if there are no CONFIG_HEADERS. 12138afe13c8eSmrg# This happens for instance with `./config.status Makefile'. 12139afe13c8eSmrgif test -n "$CONFIG_HEADERS"; then 1214029cb5710Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 12141afe13c8eSmrgBEGIN { 12142b3307321Smrg_ACEOF 12143afe13c8eSmrg 12144afe13c8eSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 12145afe13c8eSmrg# here-document in config.status, that substitutes the proper values into 12146afe13c8eSmrg# config.h.in to produce config.h. 12147afe13c8eSmrg 12148afe13c8eSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 12149afe13c8eSmrg# handling of long lines. 12150afe13c8eSmrgac_delim='%!_!# ' 12151afe13c8eSmrgfor ac_last_try in false false :; do 1215229cb5710Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 1215329cb5710Smrg if test -z "$ac_tt"; then 12154afe13c8eSmrg break 12155afe13c8eSmrg elif $ac_last_try; then 1215629cb5710Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12157afe13c8eSmrg else 12158afe13c8eSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12159afe13c8eSmrg fi 12160afe13c8eSmrgdone 12161afe13c8eSmrg 12162afe13c8eSmrg# For the awk script, D is an array of macro values keyed by name, 12163afe13c8eSmrg# likewise P contains macro parameters if any. Preserve backslash 12164afe13c8eSmrg# newline sequences. 12165afe13c8eSmrg 12166afe13c8eSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12167afe13c8eSmrgsed -n ' 12168afe13c8eSmrgs/.\{148\}/&'"$ac_delim"'/g 12169afe13c8eSmrgt rset 12170afe13c8eSmrg:rset 12171afe13c8eSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 12172afe13c8eSmrgt def 12173afe13c8eSmrgd 12174afe13c8eSmrg:def 12175afe13c8eSmrgs/\\$// 12176afe13c8eSmrgt bsnl 12177afe13c8eSmrgs/["\\]/\\&/g 12178afe13c8eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12179afe13c8eSmrgD["\1"]=" \3"/p 12180afe13c8eSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12181afe13c8eSmrgd 12182afe13c8eSmrg:bsnl 12183afe13c8eSmrgs/["\\]/\\&/g 12184afe13c8eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12185afe13c8eSmrgD["\1"]=" \3\\\\\\n"\\/p 12186afe13c8eSmrgt cont 12187afe13c8eSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12188afe13c8eSmrgt cont 12189afe13c8eSmrgd 12190afe13c8eSmrg:cont 12191afe13c8eSmrgn 12192afe13c8eSmrgs/.\{148\}/&'"$ac_delim"'/g 12193afe13c8eSmrgt clear 12194afe13c8eSmrg:clear 12195afe13c8eSmrgs/\\$// 12196afe13c8eSmrgt bsnlc 12197afe13c8eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 12198afe13c8eSmrgd 12199afe13c8eSmrg:bsnlc 12200afe13c8eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12201afe13c8eSmrgb cont 12202afe13c8eSmrg' <confdefs.h | sed ' 12203afe13c8eSmrgs/'"$ac_delim"'/"\\\ 12204afe13c8eSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 12205afe13c8eSmrg 12206afe13c8eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12207afe13c8eSmrg for (key in D) D_is_set[key] = 1 12208afe13c8eSmrg FS = "" 12209afe13c8eSmrg} 12210afe13c8eSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12211afe13c8eSmrg line = \$ 0 12212afe13c8eSmrg split(line, arg, " ") 12213afe13c8eSmrg if (arg[1] == "#") { 12214afe13c8eSmrg defundef = arg[2] 12215afe13c8eSmrg mac1 = arg[3] 12216afe13c8eSmrg } else { 12217afe13c8eSmrg defundef = substr(arg[1], 2) 12218afe13c8eSmrg mac1 = arg[2] 12219afe13c8eSmrg } 12220afe13c8eSmrg split(mac1, mac2, "(") #) 12221afe13c8eSmrg macro = mac2[1] 122225e358ecaSmrg prefix = substr(line, 1, index(line, defundef) - 1) 12223afe13c8eSmrg if (D_is_set[macro]) { 12224afe13c8eSmrg # Preserve the white space surrounding the "#". 12225afe13c8eSmrg print prefix "define", macro P[macro] D[macro] 12226afe13c8eSmrg next 12227afe13c8eSmrg } else { 12228afe13c8eSmrg # Replace #undef with comments. This is necessary, for example, 12229afe13c8eSmrg # in the case of _POSIX_SOURCE, which is predefined and required 12230afe13c8eSmrg # on some systems where configure will not decide to define it. 12231afe13c8eSmrg if (defundef == "undef") { 122325e358ecaSmrg print "/*", prefix defundef, macro, "*/" 12233afe13c8eSmrg next 12234afe13c8eSmrg } 12235afe13c8eSmrg } 12236afe13c8eSmrg} 12237afe13c8eSmrg{ print } 12238afe13c8eSmrg_ACAWK 12239afe13c8eSmrg_ACEOF 12240afe13c8eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1224129cb5710Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12242afe13c8eSmrgfi # test -n "$CONFIG_HEADERS" 12243afe13c8eSmrg 12244afe13c8eSmrg 12245afe13c8eSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12246afe13c8eSmrgshift 12247afe13c8eSmrgfor ac_tag 12248afe13c8eSmrgdo 12249afe13c8eSmrg case $ac_tag in 12250afe13c8eSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 12251afe13c8eSmrg esac 12252afe13c8eSmrg case $ac_mode$ac_tag in 12253afe13c8eSmrg :[FHL]*:*);; 1225429cb5710Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12255afe13c8eSmrg :[FH]-) ac_tag=-:-;; 12256afe13c8eSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12257afe13c8eSmrg esac 12258afe13c8eSmrg ac_save_IFS=$IFS 12259afe13c8eSmrg IFS=: 12260afe13c8eSmrg set x $ac_tag 12261afe13c8eSmrg IFS=$ac_save_IFS 12262afe13c8eSmrg shift 12263afe13c8eSmrg ac_file=$1 12264afe13c8eSmrg shift 12265afe13c8eSmrg 12266afe13c8eSmrg case $ac_mode in 12267afe13c8eSmrg :L) ac_source=$1;; 12268afe13c8eSmrg :[FH]) 12269afe13c8eSmrg ac_file_inputs= 12270afe13c8eSmrg for ac_f 12271afe13c8eSmrg do 12272afe13c8eSmrg case $ac_f in 1227329cb5710Smrg -) ac_f="$ac_tmp/stdin";; 12274afe13c8eSmrg *) # Look for the file first in the build tree, then in the source tree 12275afe13c8eSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 12276afe13c8eSmrg # because $ac_f cannot contain `:'. 12277afe13c8eSmrg test -f "$ac_f" || 12278afe13c8eSmrg case $ac_f in 12279afe13c8eSmrg [\\/$]*) false;; 12280afe13c8eSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12281afe13c8eSmrg esac || 1228229cb5710Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12283afe13c8eSmrg esac 1228474b97a6cSmrg case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 1228529cb5710Smrg as_fn_append ac_file_inputs " '$ac_f'" 12286afe13c8eSmrg done 12287afe13c8eSmrg 12288afe13c8eSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 12289afe13c8eSmrg # use $as_me), people would be surprised to read: 12290afe13c8eSmrg # /* config.h. Generated by config.status. */ 12291afe13c8eSmrg configure_input='Generated from '` 1229274b97a6cSmrg printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12293afe13c8eSmrg `' by configure.' 12294afe13c8eSmrg if test x"$ac_file" != x-; then 12295afe13c8eSmrg configure_input="$ac_file. $configure_input" 1229674b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 1229774b97a6cSmrgprintf "%s\n" "$as_me: creating $ac_file" >&6;} 12298afe13c8eSmrg fi 12299afe13c8eSmrg # Neutralize special characters interpreted by sed in replacement strings. 12300afe13c8eSmrg case $configure_input in #( 12301afe13c8eSmrg *\&* | *\|* | *\\* ) 1230274b97a6cSmrg ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12303afe13c8eSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 12304afe13c8eSmrg *) ac_sed_conf_input=$configure_input;; 12305afe13c8eSmrg esac 12306afe13c8eSmrg 12307afe13c8eSmrg case $ac_tag in 1230829cb5710Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 1230929cb5710Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12310afe13c8eSmrg esac 12311afe13c8eSmrg ;; 12312b3307321Smrg esac 12313b3307321Smrg 12314afe13c8eSmrg ac_dir=`$as_dirname -- "$ac_file" || 12315b3307321Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12316b3307321Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 12317b3307321Smrg X"$ac_file" : 'X\(//\)$' \| \ 12318afe13c8eSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 1231974b97a6cSmrgprintf "%s\n" X"$ac_file" | 12320afe13c8eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12321afe13c8eSmrg s//\1/ 12322afe13c8eSmrg q 12323afe13c8eSmrg } 12324afe13c8eSmrg /^X\(\/\/\)[^/].*/{ 12325afe13c8eSmrg s//\1/ 12326afe13c8eSmrg q 12327afe13c8eSmrg } 12328afe13c8eSmrg /^X\(\/\/\)$/{ 12329afe13c8eSmrg s//\1/ 12330afe13c8eSmrg q 12331afe13c8eSmrg } 12332afe13c8eSmrg /^X\(\/\).*/{ 12333afe13c8eSmrg s//\1/ 12334afe13c8eSmrg q 12335afe13c8eSmrg } 12336afe13c8eSmrg s/.*/./; q'` 1233729cb5710Smrg as_dir="$ac_dir"; as_fn_mkdir_p 12338b3307321Smrg ac_builddir=. 12339b3307321Smrg 12340afe13c8eSmrgcase "$ac_dir" in 12341afe13c8eSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12342afe13c8eSmrg*) 1234374b97a6cSmrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12344afe13c8eSmrg # A ".." for each directory in $ac_dir_suffix. 1234574b97a6cSmrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12346afe13c8eSmrg case $ac_top_builddir_sub in 12347afe13c8eSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12348afe13c8eSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12349afe13c8eSmrg esac ;; 12350afe13c8eSmrgesac 12351afe13c8eSmrgac_abs_top_builddir=$ac_pwd 12352afe13c8eSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 12353afe13c8eSmrg# for backward compatibility: 12354afe13c8eSmrgac_top_builddir=$ac_top_build_prefix 12355b3307321Smrg 12356b3307321Smrgcase $srcdir in 12357afe13c8eSmrg .) # We are building in place. 12358b3307321Smrg ac_srcdir=. 12359afe13c8eSmrg ac_top_srcdir=$ac_top_builddir_sub 12360afe13c8eSmrg ac_abs_top_srcdir=$ac_pwd ;; 12361afe13c8eSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 12362b3307321Smrg ac_srcdir=$srcdir$ac_dir_suffix; 12363afe13c8eSmrg ac_top_srcdir=$srcdir 12364afe13c8eSmrg ac_abs_top_srcdir=$srcdir ;; 12365afe13c8eSmrg *) # Relative name. 12366afe13c8eSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12367afe13c8eSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 12368afe13c8eSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12369b3307321Smrgesac 12370afe13c8eSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12371b3307321Smrg 12372b3307321Smrg 12373afe13c8eSmrg case $ac_mode in 12374afe13c8eSmrg :F) 12375afe13c8eSmrg # 12376afe13c8eSmrg # CONFIG_FILE 12377afe13c8eSmrg # 12378b3307321Smrg 12379b3307321Smrg case $INSTALL in 12380b3307321Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12381afe13c8eSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12382afe13c8eSmrg esac 12383afe13c8eSmrg ac_MKDIR_P=$MKDIR_P 12384afe13c8eSmrg case $MKDIR_P in 12385afe13c8eSmrg [\\/$]* | ?:[\\/]* ) ;; 12386afe13c8eSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12387b3307321Smrg esac 12388afe13c8eSmrg_ACEOF 12389b3307321Smrg 12390afe13c8eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12391afe13c8eSmrg# If the template does not know about datarootdir, expand it. 12392afe13c8eSmrg# FIXME: This hack should be removed a few years after 2.60. 12393afe13c8eSmrgac_datarootdir_hack=; ac_datarootdir_seen= 12394afe13c8eSmrgac_sed_dataroot=' 12395afe13c8eSmrg/datarootdir/ { 12396afe13c8eSmrg p 12397afe13c8eSmrg q 12398afe13c8eSmrg} 12399afe13c8eSmrg/@datadir@/p 12400afe13c8eSmrg/@docdir@/p 12401afe13c8eSmrg/@infodir@/p 12402afe13c8eSmrg/@localedir@/p 1240329cb5710Smrg/@mandir@/p' 12404afe13c8eSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12405afe13c8eSmrg*datarootdir*) ac_datarootdir_seen=yes;; 12406afe13c8eSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 1240774b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 1240874b97a6cSmrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12409afe13c8eSmrg_ACEOF 12410afe13c8eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12411afe13c8eSmrg ac_datarootdir_hack=' 12412afe13c8eSmrg s&@datadir@&$datadir&g 12413afe13c8eSmrg s&@docdir@&$docdir&g 12414afe13c8eSmrg s&@infodir@&$infodir&g 12415afe13c8eSmrg s&@localedir@&$localedir&g 12416afe13c8eSmrg s&@mandir@&$mandir&g 1241729cb5710Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 12418afe13c8eSmrgesac 12419b3307321Smrg_ACEOF 12420afe13c8eSmrg 12421afe13c8eSmrg# Neutralize VPATH when `$srcdir' = `.'. 12422afe13c8eSmrg# Shell code in configure.ac might set extrasub. 12423afe13c8eSmrg# FIXME: do we really want to maintain this feature? 12424afe13c8eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12425afe13c8eSmrgac_sed_extra="$ac_vpsub 12426b3307321Smrg$extrasub 12427b3307321Smrg_ACEOF 12428afe13c8eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12429b3307321Smrg:t 12430b3307321Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12431afe13c8eSmrgs|@configure_input@|$ac_sed_conf_input|;t t 12432afe13c8eSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 12433afe13c8eSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 12434afe13c8eSmrgs&@srcdir@&$ac_srcdir&;t t 12435afe13c8eSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 12436afe13c8eSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 12437afe13c8eSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12438afe13c8eSmrgs&@builddir@&$ac_builddir&;t t 12439afe13c8eSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 12440afe13c8eSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12441afe13c8eSmrgs&@INSTALL@&$ac_INSTALL&;t t 12442afe13c8eSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 12443afe13c8eSmrg$ac_datarootdir_hack 12444afe13c8eSmrg" 1244529cb5710Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 1244629cb5710Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12447b3307321Smrg 12448afe13c8eSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 1244929cb5710Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 1245029cb5710Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 1245129cb5710Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 1245274b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1245329cb5710Smrgwhich seems to be undefined. Please make sure it is defined" >&5 1245474b97a6cSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1245529cb5710Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 12456b3307321Smrg 1245729cb5710Smrg rm -f "$ac_tmp/stdin" 12458b3307321Smrg case $ac_file in 1245929cb5710Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 1246029cb5710Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12461afe13c8eSmrg esac \ 1246229cb5710Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12463afe13c8eSmrg ;; 12464afe13c8eSmrg :H) 12465afe13c8eSmrg # 12466afe13c8eSmrg # CONFIG_HEADER 12467afe13c8eSmrg # 12468b3307321Smrg if test x"$ac_file" != x-; then 12469afe13c8eSmrg { 1247074b97a6cSmrg printf "%s\n" "/* $configure_input */" >&1 \ 1247129cb5710Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 1247229cb5710Smrg } >"$ac_tmp/config.h" \ 1247329cb5710Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1247429cb5710Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 1247574b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 1247674b97a6cSmrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12477b3307321Smrg else 12478afe13c8eSmrg rm -f "$ac_file" 1247929cb5710Smrg mv "$ac_tmp/config.h" "$ac_file" \ 1248029cb5710Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12481b3307321Smrg fi 12482b3307321Smrg else 1248374b97a6cSmrg printf "%s\n" "/* $configure_input */" >&1 \ 1248429cb5710Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 1248529cb5710Smrg || as_fn_error $? "could not create -" "$LINENO" 5 12486b3307321Smrg fi 12487afe13c8eSmrg# Compute "$ac_file"'s index in $config_headers. 12488afe13c8eSmrg_am_arg="$ac_file" 12489b3307321Smrg_am_stamp_count=1 12490b3307321Smrgfor _am_header in $config_headers :; do 12491b3307321Smrg case $_am_header in 12492afe13c8eSmrg $_am_arg | $_am_arg:* ) 12493b3307321Smrg break ;; 12494b3307321Smrg * ) 12495b3307321Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12496b3307321Smrg esac 12497b3307321Smrgdone 12498afe13c8eSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12499afe13c8eSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12500afe13c8eSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 12501afe13c8eSmrg X"$_am_arg" : 'X\(//\)$' \| \ 12502afe13c8eSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 1250374b97a6cSmrgprintf "%s\n" X"$_am_arg" | 12504afe13c8eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12505afe13c8eSmrg s//\1/ 12506afe13c8eSmrg q 12507afe13c8eSmrg } 12508afe13c8eSmrg /^X\(\/\/\)[^/].*/{ 12509afe13c8eSmrg s//\1/ 12510afe13c8eSmrg q 12511afe13c8eSmrg } 12512afe13c8eSmrg /^X\(\/\/\)$/{ 12513afe13c8eSmrg s//\1/ 12514afe13c8eSmrg q 12515afe13c8eSmrg } 12516afe13c8eSmrg /^X\(\/\).*/{ 12517afe13c8eSmrg s//\1/ 12518afe13c8eSmrg q 12519afe13c8eSmrg } 12520afe13c8eSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 12521afe13c8eSmrg ;; 12522b3307321Smrg 1252374b97a6cSmrg :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 1252474b97a6cSmrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12525afe13c8eSmrg ;; 12526afe13c8eSmrg esac 12527b3307321Smrg 12528b3307321Smrg 12529afe13c8eSmrg case $ac_file$ac_mode in 125305e358ecaSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 1253174a3f230Smrg # Older Autoconf quotes --file arguments for eval, but not when files 125325e358ecaSmrg # are listed without --file. Let's play safe and only enable the eval 125335e358ecaSmrg # if we detect the quoting. 1253474b97a6cSmrg # TODO: see whether this extra hack can be removed once we start 1253574b97a6cSmrg # requiring Autoconf 2.70 or later. 1253674b97a6cSmrg case $CONFIG_FILES in #( 1253774b97a6cSmrg *\'*) : 1253874b97a6cSmrg eval set x "$CONFIG_FILES" ;; #( 1253974b97a6cSmrg *) : 1254074b97a6cSmrg set x $CONFIG_FILES ;; #( 1254174b97a6cSmrg *) : 1254274b97a6cSmrg ;; 1254374b97a6cSmrgesac 125445e358ecaSmrg shift 1254574b97a6cSmrg # Used to flag and report bootstrapping failures. 1254674b97a6cSmrg am_rc=0 1254774b97a6cSmrg for am_mf 125485e358ecaSmrg do 125495e358ecaSmrg # Strip MF so we end up with the name of the file. 1255074b97a6cSmrg am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 1255174b97a6cSmrg # Check whether this is an Automake generated Makefile which includes 1255274b97a6cSmrg # dependency-tracking related rules and includes. 1255374b97a6cSmrg # Grep'ing the whole file directly is not great: AIX grep has a line 125545e358ecaSmrg # limit of 2048, but all sed's we know have understand at least 4000. 1255574b97a6cSmrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 1255674b97a6cSmrg || continue 1255774b97a6cSmrg am_dirpart=`$as_dirname -- "$am_mf" || 1255874b97a6cSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1255974b97a6cSmrg X"$am_mf" : 'X\(//\)[^/]' \| \ 1256074b97a6cSmrg X"$am_mf" : 'X\(//\)$' \| \ 1256174b97a6cSmrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 1256274b97a6cSmrgprintf "%s\n" X"$am_mf" | 12563afe13c8eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12564afe13c8eSmrg s//\1/ 12565afe13c8eSmrg q 12566afe13c8eSmrg } 12567afe13c8eSmrg /^X\(\/\/\)[^/].*/{ 12568afe13c8eSmrg s//\1/ 12569afe13c8eSmrg q 12570afe13c8eSmrg } 12571afe13c8eSmrg /^X\(\/\/\)$/{ 12572afe13c8eSmrg s//\1/ 12573afe13c8eSmrg q 12574afe13c8eSmrg } 12575afe13c8eSmrg /^X\(\/\).*/{ 12576afe13c8eSmrg s//\1/ 12577afe13c8eSmrg q 12578afe13c8eSmrg } 12579afe13c8eSmrg s/.*/./; q'` 1258074b97a6cSmrg am_filepart=`$as_basename -- "$am_mf" || 1258174b97a6cSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 1258274b97a6cSmrg X"$am_mf" : 'X\(//\)$' \| \ 1258374b97a6cSmrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 1258474b97a6cSmrgprintf "%s\n" X/"$am_mf" | 1258574b97a6cSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 12586afe13c8eSmrg s//\1/ 12587afe13c8eSmrg q 12588afe13c8eSmrg } 1258974b97a6cSmrg /^X\/\(\/\/\)$/{ 12590afe13c8eSmrg s//\1/ 12591afe13c8eSmrg q 12592afe13c8eSmrg } 1259374b97a6cSmrg /^X\/\(\/\).*/{ 12594afe13c8eSmrg s//\1/ 12595afe13c8eSmrg q 12596afe13c8eSmrg } 12597afe13c8eSmrg s/.*/./; q'` 1259874b97a6cSmrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 1259974b97a6cSmrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 1260074b97a6cSmrg | $MAKE -f - am--depfiles" >&5 1260174b97a6cSmrg (cd "$am_dirpart" \ 1260274b97a6cSmrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 1260374b97a6cSmrg | $MAKE -f - am--depfiles) >&5 2>&5 1260474b97a6cSmrg ac_status=$? 1260574b97a6cSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 1260674b97a6cSmrg (exit $ac_status); } || am_rc=$? 12607b3307321Smrg done 1260874b97a6cSmrg if test $am_rc -ne 0; then 1260974b97a6cSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1261074b97a6cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1261174b97a6cSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 1261274b97a6cSmrg for automatic dependency tracking. If GNU make was not used, consider 1261374b97a6cSmrg re-running the configure script with MAKE=\"gmake\" (or whatever is 1261474b97a6cSmrg necessary). You can also try re-running configure with the 1261574b97a6cSmrg '--disable-dependency-tracking' option to at least be able to build 1261674b97a6cSmrg the package (albeit without support for automatic dependency tracking). 1261774b97a6cSmrgSee \`config.log' for more details" "$LINENO" 5; } 1261874b97a6cSmrg fi 1261974b97a6cSmrg { am_dirpart=; unset am_dirpart;} 1262074b97a6cSmrg { am_filepart=; unset am_filepart;} 1262174b97a6cSmrg { am_mf=; unset am_mf;} 1262274b97a6cSmrg { am_rc=; unset am_rc;} 1262374b97a6cSmrg rm -f conftest-deps.mk 126245e358ecaSmrg} 12625b3307321Smrg ;; 12626afe13c8eSmrg 12627b3307321Smrg esac 12628afe13c8eSmrgdone # for ac_tag 12629b3307321Smrg 12630b3307321Smrg 1263129cb5710Smrgas_fn_exit 0 12632b3307321Smrg_ACEOF 12633b3307321Smrgac_clean_files=$ac_clean_files_save 12634b3307321Smrg 12635afe13c8eSmrgtest $ac_write_fail = 0 || 1263629cb5710Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12637afe13c8eSmrg 12638b3307321Smrg 12639b3307321Smrg# configure is writing to config.log, and then calls config.status. 12640b3307321Smrg# config.status does its own redirection, appending to config.log. 12641b3307321Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 12642b3307321Smrg# by configure, so config.status won't be able to write to it; its 12643b3307321Smrg# output is simply discarded. So we exec the FD to /dev/null, 12644b3307321Smrg# effectively closing config.log, so it can be properly (re)opened and 12645b3307321Smrg# appended to by config.status. When coming back to configure, we 12646b3307321Smrg# need to make the FD available again. 12647b3307321Smrgif test "$no_create" != yes; then 12648b3307321Smrg ac_cs_success=: 12649b3307321Smrg ac_config_status_args= 12650b3307321Smrg test "$silent" = yes && 12651b3307321Smrg ac_config_status_args="$ac_config_status_args --quiet" 12652b3307321Smrg exec 5>/dev/null 12653b3307321Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12654b3307321Smrg exec 5>>config.log 12655b3307321Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12656b3307321Smrg # would make configure fail if this is the last instruction. 1265729cb5710Smrg $ac_cs_success || as_fn_exit 1 12658b3307321Smrgfi 12659afe13c8eSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 1266074b97a6cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 1266174b97a6cSmrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12662afe13c8eSmrgfi 12663b3307321Smrg 1266474b97a6cSmrg 12665