19aa228fdSmrg#! /bin/sh 29aa228fdSmrg# Guess values for system-dependent variables and create Makefiles. 346374b8dSmrg# Generated by GNU Autoconf 2.72 for xmag 1.0.8. 49aa228fdSmrg# 546374b8dSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmag/-/issues>. 69aa228fdSmrg# 78f65982aSmrg# 846374b8dSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9e39ce84cSmrg# Inc. 108f65982aSmrg# 118f65982aSmrg# 129aa228fdSmrg# This configure script is free software; the Free Software Foundation 139aa228fdSmrg# gives unlimited permission to copy, distribute and modify it. 148f65982aSmrg## -------------------- ## 158f65982aSmrg## M4sh Initialization. ## 168f65982aSmrg## -------------------- ## 179aa228fdSmrg 189aa228fdSmrg# Be more Bourne compatible 199aa228fdSmrgDUALCASE=1; export DUALCASE # for MKS sh 20e39ce84cSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21e39ce84cSmrgthen : 229aa228fdSmrg emulate sh 239aa228fdSmrg NULLCMD=: 248f65982aSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 259aa228fdSmrg # is contrary to our usage. Disable this feature. 269aa228fdSmrg alias -g '${1+"$@"}'='"$@"' 279aa228fdSmrg setopt NO_GLOB_SUBST 2846374b8dSmrgelse case e in #( 2946374b8dSmrg e) case `(set -o) 2>/dev/null` in #( 308f65982aSmrg *posix*) : 318f65982aSmrg set -o posix ;; #( 328f65982aSmrg *) : 338f65982aSmrg ;; 3446374b8dSmrgesac ;; 359aa228fdSmrgesac 369aa228fdSmrgfi 379aa228fdSmrg 389aa228fdSmrg 39e39ce84cSmrg 40e39ce84cSmrg# Reset variables that may have inherited troublesome values from 41e39ce84cSmrg# the environment. 42e39ce84cSmrg 43e39ce84cSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 44e39ce84cSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 45e39ce84cSmrg# side effect of setting IFS to empty, thus disabling word splitting.) 46e39ce84cSmrg# Quoting is to prevent editors from complaining about space-tab. 478f65982aSmrgas_nl=' 488f65982aSmrg' 498f65982aSmrgexport as_nl 50e39ce84cSmrgIFS=" "" $as_nl" 51e39ce84cSmrg 52e39ce84cSmrgPS1='$ ' 53e39ce84cSmrgPS2='> ' 54e39ce84cSmrgPS4='+ ' 55e39ce84cSmrg 56e39ce84cSmrg# Ensure predictable behavior from utilities with locale-dependent output. 57e39ce84cSmrgLC_ALL=C 58e39ce84cSmrgexport LC_ALL 59e39ce84cSmrgLANGUAGE=C 60e39ce84cSmrgexport LANGUAGE 61e39ce84cSmrg 62e39ce84cSmrg# We cannot yet rely on "unset" to work, but we need these variables 63e39ce84cSmrg# to be unset--not just set to an empty or harmless value--now, to 64e39ce84cSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65e39ce84cSmrg# also avoids known problems related to "unset" and subshell syntax 66e39ce84cSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67e39ce84cSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68e39ce84cSmrgdo eval test \${$as_var+y} \ 69e39ce84cSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70e39ce84cSmrgdone 71e39ce84cSmrg 72e39ce84cSmrg# Ensure that fds 0, 1, and 2 are open. 73e39ce84cSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74e39ce84cSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75e39ce84cSmrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 769aa228fdSmrg 778f65982aSmrg# The user is always right. 78e39ce84cSmrgif ${PATH_SEPARATOR+false} :; then 798f65982aSmrg PATH_SEPARATOR=: 808f65982aSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 818f65982aSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 828f65982aSmrg PATH_SEPARATOR=';' 838f65982aSmrg } 849aa228fdSmrgfi 859aa228fdSmrg 869aa228fdSmrg 879aa228fdSmrg# Find who we are. Look in the path if we contain no directory separator. 888f65982aSmrgas_myself= 898f65982aSmrgcase $0 in #(( 909aa228fdSmrg *[\\/]* ) as_myself=$0 ;; 919aa228fdSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 929aa228fdSmrgfor as_dir in $PATH 939aa228fdSmrgdo 949aa228fdSmrg IFS=$as_save_IFS 95e39ce84cSmrg case $as_dir in #((( 96e39ce84cSmrg '') as_dir=./ ;; 97e39ce84cSmrg */) ;; 98e39ce84cSmrg *) as_dir=$as_dir/ ;; 99e39ce84cSmrg esac 100e39ce84cSmrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 1018f65982aSmrg done 1029aa228fdSmrgIFS=$as_save_IFS 1039aa228fdSmrg 1049aa228fdSmrg ;; 1059aa228fdSmrgesac 10646374b8dSmrg# We did not find ourselves, most probably we were run as 'sh COMMAND' 1079aa228fdSmrg# in which case we are not to be found in the path. 1089aa228fdSmrgif test "x$as_myself" = x; then 1099aa228fdSmrg as_myself=$0 1109aa228fdSmrgfi 1119aa228fdSmrgif test ! -f "$as_myself"; then 112e39ce84cSmrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1138f65982aSmrg exit 1 1149aa228fdSmrgfi 1159aa228fdSmrg 1169aa228fdSmrg 1170c7e83b2Smrg# Use a proper internal environment variable to ensure we don't fall 1180c7e83b2Smrg # into an infinite loop, continuously re-executing ourselves. 1190c7e83b2Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 1200c7e83b2Smrg _as_can_reexec=no; export _as_can_reexec; 1210c7e83b2Smrg # We cannot yet assume a decent shell, so we have to provide a 1220c7e83b2Smrg# neutralization value for shells without unset; and this also 1230c7e83b2Smrg# works around shells that cannot unset nonexistent variables. 1240c7e83b2Smrg# Preserve -v and -x to the replacement shell. 1250c7e83b2SmrgBASH_ENV=/dev/null 1260c7e83b2SmrgENV=/dev/null 1270c7e83b2Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 1280c7e83b2Smrgcase $- in # (((( 1290c7e83b2Smrg *v*x* | *x*v* ) as_opts=-vx ;; 1300c7e83b2Smrg *v* ) as_opts=-v ;; 1310c7e83b2Smrg *x* ) as_opts=-x ;; 1320c7e83b2Smrg * ) as_opts= ;; 1330c7e83b2Smrgesac 1340c7e83b2Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 1350c7e83b2Smrg# Admittedly, this is quite paranoid, since all the known shells bail 13646374b8dSmrg# out after a failed 'exec'. 137e39ce84cSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138e39ce84cSmrgexit 255 1390c7e83b2Smrg fi 1400c7e83b2Smrg # We don't want this to propagate to other subprocesses. 1410c7e83b2Smrg { _as_can_reexec=; unset _as_can_reexec;} 1429aa228fdSmrgif test "x$CONFIG_SHELL" = x; then 14346374b8dSmrg as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144e39ce84cSmrgthen : 1458f65982aSmrg emulate sh 1468f65982aSmrg NULLCMD=: 1478f65982aSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1488f65982aSmrg # is contrary to our usage. Disable this feature. 1498f65982aSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1508f65982aSmrg setopt NO_GLOB_SUBST 15146374b8dSmrgelse case e in #( 15246374b8dSmrg e) case \`(set -o) 2>/dev/null\` in #( 1538f65982aSmrg *posix*) : 1548f65982aSmrg set -o posix ;; #( 1558f65982aSmrg *) : 1568f65982aSmrg ;; 15746374b8dSmrgesac ;; 1588f65982aSmrgesac 1599aa228fdSmrgfi 1608f65982aSmrg" 1618f65982aSmrg as_required="as_fn_return () { (exit \$1); } 1628f65982aSmrgas_fn_success () { as_fn_return 0; } 1638f65982aSmrgas_fn_failure () { as_fn_return 1; } 1648f65982aSmrgas_fn_ret_success () { return 0; } 1658f65982aSmrgas_fn_ret_failure () { return 1; } 1669aa228fdSmrg 1679aa228fdSmrgexitcode=0 1688f65982aSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1698f65982aSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1708f65982aSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1718f65982aSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172e39ce84cSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173e39ce84cSmrgthen : 1748f65982aSmrg 17546374b8dSmrgelse case e in #( 17646374b8dSmrg e) exitcode=1; echo positional parameters were not saved. ;; 17746374b8dSmrgesac 1788f65982aSmrgfi 1790c7e83b2Smrgtest x\$exitcode = x0 || exit 1 180e39ce84cSmrgblah=\$(echo \$(echo blah)) 181e39ce84cSmrgtest x\"\$blah\" = xblah || exit 1 1820c7e83b2Smrgtest -x / || exit 1" 1838f65982aSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1848f65982aSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1858f65982aSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 1868f65982aSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 1878f65982aSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 188e39ce84cSmrg if (eval "$as_required") 2>/dev/null 189e39ce84cSmrgthen : 1908f65982aSmrg as_have_required=yes 19146374b8dSmrgelse case e in #( 19246374b8dSmrg e) as_have_required=no ;; 19346374b8dSmrgesac 1949aa228fdSmrgfi 195e39ce84cSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196e39ce84cSmrgthen : 1979aa228fdSmrg 19846374b8dSmrgelse case e in #( 19946374b8dSmrg e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2008f65982aSmrgas_found=false 2019aa228fdSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2029aa228fdSmrgdo 2039aa228fdSmrg IFS=$as_save_IFS 204e39ce84cSmrg case $as_dir in #((( 205e39ce84cSmrg '') as_dir=./ ;; 206e39ce84cSmrg */) ;; 207e39ce84cSmrg *) as_dir=$as_dir/ ;; 208e39ce84cSmrg esac 2098f65982aSmrg as_found=: 2108f65982aSmrg case $as_dir in #( 2119aa228fdSmrg /*) 2129aa228fdSmrg for as_base in sh bash ksh sh5; do 2138f65982aSmrg # Try only shells that exist, to save several forks. 214e39ce84cSmrg as_shell=$as_dir$as_base 2158f65982aSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216e39ce84cSmrg as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217e39ce84cSmrgthen : 2188f65982aSmrg CONFIG_SHELL=$as_shell as_have_required=yes 219e39ce84cSmrg if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220e39ce84cSmrgthen : 2218f65982aSmrg break 2 2228f65982aSmrgfi 2238f65982aSmrgfi 2249aa228fdSmrg done;; 2259aa228fdSmrg esac 2268f65982aSmrg as_found=false 2279aa228fdSmrgdone 2289aa228fdSmrgIFS=$as_save_IFS 229e39ce84cSmrgif $as_found 230e39ce84cSmrgthen : 231e39ce84cSmrg 23246374b8dSmrgelse case e in #( 23346374b8dSmrg e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234e39ce84cSmrg as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235e39ce84cSmrgthen : 236e39ce84cSmrg CONFIG_SHELL=$SHELL as_have_required=yes 23746374b8dSmrgfi ;; 23846374b8dSmrgesac 239e39ce84cSmrgfi 2409aa228fdSmrg 2419aa228fdSmrg 242e39ce84cSmrg if test "x$CONFIG_SHELL" != x 243e39ce84cSmrgthen : 2440c7e83b2Smrg export CONFIG_SHELL 2450c7e83b2Smrg # We cannot yet assume a decent shell, so we have to provide a 2460c7e83b2Smrg# neutralization value for shells without unset; and this also 2470c7e83b2Smrg# works around shells that cannot unset nonexistent variables. 2480c7e83b2Smrg# Preserve -v and -x to the replacement shell. 2490c7e83b2SmrgBASH_ENV=/dev/null 2500c7e83b2SmrgENV=/dev/null 2510c7e83b2Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2520c7e83b2Smrgcase $- in # (((( 2530c7e83b2Smrg *v*x* | *x*v* ) as_opts=-vx ;; 2540c7e83b2Smrg *v* ) as_opts=-v ;; 2550c7e83b2Smrg *x* ) as_opts=-x ;; 2560c7e83b2Smrg * ) as_opts= ;; 2570c7e83b2Smrgesac 2580c7e83b2Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 2590c7e83b2Smrg# Admittedly, this is quite paranoid, since all the known shells bail 26046374b8dSmrg# out after a failed 'exec'. 261e39ce84cSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 2620c7e83b2Smrgexit 255 2639aa228fdSmrgfi 2649aa228fdSmrg 265e39ce84cSmrg if test x$as_have_required = xno 266e39ce84cSmrgthen : 267e39ce84cSmrg printf "%s\n" "$0: This script requires a shell more modern than all" 268e39ce84cSmrg printf "%s\n" "$0: the shells that I found on your system." 269e39ce84cSmrg if test ${ZSH_VERSION+y} ; then 270e39ce84cSmrg printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271e39ce84cSmrg printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 2728f65982aSmrg else 273e39ce84cSmrg printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 27446374b8dSmrg$0: https://gitlab.freedesktop.org/xorg/app/xmag/-/issues 2758f65982aSmrg$0: about your system, including any error possibly output 2768f65982aSmrg$0: before this message. Then install a modern shell, or 2778f65982aSmrg$0: manually run the script under such a shell if you do 2788f65982aSmrg$0: have one." 2798f65982aSmrg fi 2808f65982aSmrg exit 1 28146374b8dSmrgfi ;; 28246374b8dSmrgesac 2838f65982aSmrgfi 2848f65982aSmrgfi 2858f65982aSmrgSHELL=${CONFIG_SHELL-/bin/sh} 2868f65982aSmrgexport SHELL 2878f65982aSmrg# Unset more variables known to interfere with behavior of common tools. 2888f65982aSmrgCLICOLOR_FORCE= GREP_OPTIONS= 2898f65982aSmrgunset CLICOLOR_FORCE GREP_OPTIONS 2909aa228fdSmrg 2918f65982aSmrg## --------------------- ## 2928f65982aSmrg## M4sh Shell Functions. ## 2938f65982aSmrg## --------------------- ## 2948f65982aSmrg# as_fn_unset VAR 2958f65982aSmrg# --------------- 2968f65982aSmrg# Portably unset VAR. 2978f65982aSmrgas_fn_unset () 2988f65982aSmrg{ 2998f65982aSmrg { eval $1=; unset $1;} 3009aa228fdSmrg} 3018f65982aSmrgas_unset=as_fn_unset 3029aa228fdSmrg 303e39ce84cSmrg 3048f65982aSmrg# as_fn_set_status STATUS 3058f65982aSmrg# ----------------------- 3068f65982aSmrg# Set $? to STATUS, without forking. 3078f65982aSmrgas_fn_set_status () 3088f65982aSmrg{ 3098f65982aSmrg return $1 3108f65982aSmrg} # as_fn_set_status 3119aa228fdSmrg 3128f65982aSmrg# as_fn_exit STATUS 3138f65982aSmrg# ----------------- 3148f65982aSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 3158f65982aSmrgas_fn_exit () 3168f65982aSmrg{ 3178f65982aSmrg set +e 3188f65982aSmrg as_fn_set_status $1 3198f65982aSmrg exit $1 3208f65982aSmrg} # as_fn_exit 3218f65982aSmrg 3228f65982aSmrg# as_fn_mkdir_p 3238f65982aSmrg# ------------- 3248f65982aSmrg# Create "$as_dir" as a directory, including parents if necessary. 3258f65982aSmrgas_fn_mkdir_p () 3268f65982aSmrg{ 3279aa228fdSmrg 3288f65982aSmrg case $as_dir in #( 3298f65982aSmrg -*) as_dir=./$as_dir;; 3308f65982aSmrg esac 3318f65982aSmrg test -d "$as_dir" || eval $as_mkdir_p || { 3328f65982aSmrg as_dirs= 3338f65982aSmrg while :; do 3348f65982aSmrg case $as_dir in #( 335e39ce84cSmrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3368f65982aSmrg *) as_qdir=$as_dir;; 3378f65982aSmrg esac 3388f65982aSmrg as_dirs="'$as_qdir' $as_dirs" 3398f65982aSmrg as_dir=`$as_dirname -- "$as_dir" || 3408f65982aSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3418f65982aSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3428f65982aSmrg X"$as_dir" : 'X\(//\)$' \| \ 3438f65982aSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344e39ce84cSmrgprintf "%s\n" X"$as_dir" | 3458f65982aSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3468f65982aSmrg s//\1/ 3478f65982aSmrg q 3488f65982aSmrg } 3498f65982aSmrg /^X\(\/\/\)[^/].*/{ 3508f65982aSmrg s//\1/ 3518f65982aSmrg q 3528f65982aSmrg } 3538f65982aSmrg /^X\(\/\/\)$/{ 3548f65982aSmrg s//\1/ 3558f65982aSmrg q 3568f65982aSmrg } 3578f65982aSmrg /^X\(\/\).*/{ 3588f65982aSmrg s//\1/ 3598f65982aSmrg q 3608f65982aSmrg } 3618f65982aSmrg s/.*/./; q'` 3628f65982aSmrg test -d "$as_dir" && break 3638f65982aSmrg done 3648f65982aSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 3658f65982aSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3668f65982aSmrg 3678f65982aSmrg 3688f65982aSmrg} # as_fn_mkdir_p 3690c7e83b2Smrg 3700c7e83b2Smrg# as_fn_executable_p FILE 3710c7e83b2Smrg# ----------------------- 3720c7e83b2Smrg# Test if FILE is an executable regular file. 3730c7e83b2Smrgas_fn_executable_p () 3740c7e83b2Smrg{ 3750c7e83b2Smrg test -f "$1" && test -x "$1" 3760c7e83b2Smrg} # as_fn_executable_p 3778f65982aSmrg# as_fn_append VAR VALUE 3788f65982aSmrg# ---------------------- 3798f65982aSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3808f65982aSmrg# advantage of any shell optimizations that allow amortized linear growth over 3818f65982aSmrg# repeated appends, instead of the typical quadratic growth present in naive 3828f65982aSmrg# implementations. 383e39ce84cSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384e39ce84cSmrgthen : 3858f65982aSmrg eval 'as_fn_append () 3868f65982aSmrg { 3878f65982aSmrg eval $1+=\$2 3888f65982aSmrg }' 38946374b8dSmrgelse case e in #( 39046374b8dSmrg e) as_fn_append () 3918f65982aSmrg { 3928f65982aSmrg eval $1=\$$1\$2 39346374b8dSmrg } ;; 39446374b8dSmrgesac 3958f65982aSmrgfi # as_fn_append 3968f65982aSmrg 3978f65982aSmrg# as_fn_arith ARG... 3988f65982aSmrg# ------------------ 3998f65982aSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 4008f65982aSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 4018f65982aSmrg# must be portable across $(()) and expr. 402e39ce84cSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403e39ce84cSmrgthen : 4048f65982aSmrg eval 'as_fn_arith () 4058f65982aSmrg { 4068f65982aSmrg as_val=$(( $* )) 4078f65982aSmrg }' 40846374b8dSmrgelse case e in #( 40946374b8dSmrg e) as_fn_arith () 4108f65982aSmrg { 4118f65982aSmrg as_val=`expr "$@" || test $? -eq 1` 41246374b8dSmrg } ;; 41346374b8dSmrgesac 4148f65982aSmrgfi # as_fn_arith 4159aa228fdSmrg 4169aa228fdSmrg 4178f65982aSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 4188f65982aSmrg# ---------------------------------------- 4198f65982aSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4208f65982aSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4218f65982aSmrg# script with STATUS, using 1 if that was 0. 4228f65982aSmrgas_fn_error () 4238f65982aSmrg{ 4248f65982aSmrg as_status=$1; test $as_status -eq 0 && as_status=1 4258f65982aSmrg if test "$4"; then 4268f65982aSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4288f65982aSmrg fi 429e39ce84cSmrg printf "%s\n" "$as_me: error: $2" >&2 4308f65982aSmrg as_fn_exit $as_status 4318f65982aSmrg} # as_fn_error 4329aa228fdSmrg 4338f65982aSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 4348f65982aSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 4358f65982aSmrg as_expr=expr 4369aa228fdSmrgelse 4378f65982aSmrg as_expr=false 4389aa228fdSmrgfi 4399aa228fdSmrg 4408f65982aSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4418f65982aSmrg as_basename=basename 4429aa228fdSmrgelse 4438f65982aSmrg as_basename=false 4449aa228fdSmrgfi 4459aa228fdSmrg 4468f65982aSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4478f65982aSmrg as_dirname=dirname 4489aa228fdSmrgelse 4498f65982aSmrg as_dirname=false 4509aa228fdSmrgfi 4519aa228fdSmrg 4528f65982aSmrgas_me=`$as_basename -- "$0" || 4538f65982aSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4548f65982aSmrg X"$0" : 'X\(//\)$' \| \ 4558f65982aSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 456e39ce84cSmrgprintf "%s\n" X/"$0" | 4578f65982aSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4588f65982aSmrg s//\1/ 4598f65982aSmrg q 4608f65982aSmrg } 4618f65982aSmrg /^X\/\(\/\/\)$/{ 4628f65982aSmrg s//\1/ 4638f65982aSmrg q 4648f65982aSmrg } 4658f65982aSmrg /^X\/\(\/\).*/{ 4668f65982aSmrg s//\1/ 4678f65982aSmrg q 4688f65982aSmrg } 4698f65982aSmrg s/.*/./; q'` 4709aa228fdSmrg 4718f65982aSmrg# Avoid depending upon Character Ranges. 4728f65982aSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4738f65982aSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4748f65982aSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4758f65982aSmrgas_cr_digits='0123456789' 4768f65982aSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4779aa228fdSmrg 4789aa228fdSmrg 4798f65982aSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4808f65982aSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4818f65982aSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4828f65982aSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4838f65982aSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4849aa228fdSmrg sed -n ' 4859aa228fdSmrg p 4869aa228fdSmrg /[$]LINENO/= 4879aa228fdSmrg ' <$as_myself | 4889aa228fdSmrg sed ' 48946374b8dSmrg t clear 49046374b8dSmrg :clear 4919aa228fdSmrg s/[$]LINENO.*/&-/ 4929aa228fdSmrg t lineno 4939aa228fdSmrg b 4949aa228fdSmrg :lineno 4959aa228fdSmrg N 4969aa228fdSmrg :loop 4979aa228fdSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4989aa228fdSmrg t loop 4999aa228fdSmrg s/-\n.*// 5009aa228fdSmrg ' >$as_me.lineno && 5019aa228fdSmrg chmod +x "$as_me.lineno" || 502e39ce84cSmrg { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 5039aa228fdSmrg 5040c7e83b2Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 5050c7e83b2Smrg # already done that, so ensure we don't try to do so again and fall 5060c7e83b2Smrg # in an infinite loop. This has already happened in practice. 5070c7e83b2Smrg _as_can_reexec=no; export _as_can_reexec 5089aa228fdSmrg # Don't try to exec as it changes $[0], causing all sort of problems 5099aa228fdSmrg # (the dirname of $[0] is not the place where we might find the 5109aa228fdSmrg # original and so on. Autoconf is especially sensitive to this). 5119aa228fdSmrg . "./$as_me.lineno" 5129aa228fdSmrg # Exit status is that of the last command. 5139aa228fdSmrg exit 5149aa228fdSmrg} 5159aa228fdSmrg 516e39ce84cSmrg 517e39ce84cSmrg# Determine whether it's possible to make 'echo' print without a newline. 518e39ce84cSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519e39ce84cSmrg# for compatibility with existing Makefiles. 5209aa228fdSmrgECHO_C= ECHO_N= ECHO_T= 5218f65982aSmrgcase `echo -n x` in #((((( 5229aa228fdSmrg-n*) 5238f65982aSmrg case `echo 'xy\c'` in 5249aa228fdSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5258f65982aSmrg xy) ECHO_C='\c';; 5268f65982aSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5278f65982aSmrg ECHO_T=' ';; 5289aa228fdSmrg esac;; 5299aa228fdSmrg*) 5309aa228fdSmrg ECHO_N='-n';; 5319aa228fdSmrgesac 5329aa228fdSmrg 533e39ce84cSmrg# For backward compatibility with old third-party macros, we provide 534e39ce84cSmrg# the shell variables $as_echo and $as_echo_n. New code should use 535e39ce84cSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536e39ce84cSmrgas_echo='printf %s\n' 537e39ce84cSmrgas_echo_n='printf %s' 538e39ce84cSmrg 5399aa228fdSmrgrm -f conf$$ conf$$.exe conf$$.file 5409aa228fdSmrgif test -d conf$$.dir; then 5419aa228fdSmrg rm -f conf$$.dir/conf$$.file 5429aa228fdSmrgelse 5439aa228fdSmrg rm -f conf$$.dir 5448f65982aSmrg mkdir conf$$.dir 2>/dev/null 5458f65982aSmrgfi 5468f65982aSmrgif (echo >conf$$.file) 2>/dev/null; then 5478f65982aSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5488f65982aSmrg as_ln_s='ln -s' 5498f65982aSmrg # ... but there are two gotchas: 55046374b8dSmrg # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 55146374b8dSmrg # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 55246374b8dSmrg # In both cases, we have to default to 'cp -pR'. 5538f65982aSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5540c7e83b2Smrg as_ln_s='cp -pR' 5558f65982aSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 5568f65982aSmrg as_ln_s=ln 5578f65982aSmrg else 5580c7e83b2Smrg as_ln_s='cp -pR' 5598f65982aSmrg fi 5609aa228fdSmrgelse 5610c7e83b2Smrg as_ln_s='cp -pR' 5629aa228fdSmrgfi 5639aa228fdSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5649aa228fdSmrgrmdir conf$$.dir 2>/dev/null 5659aa228fdSmrg 5669aa228fdSmrgif mkdir -p . 2>/dev/null; then 5678f65982aSmrg as_mkdir_p='mkdir -p "$as_dir"' 5689aa228fdSmrgelse 5699aa228fdSmrg test -d ./-p && rmdir ./-p 5709aa228fdSmrg as_mkdir_p=false 5719aa228fdSmrgfi 5729aa228fdSmrg 5730c7e83b2Smrgas_test_x='test -x' 5740c7e83b2Smrgas_executable_p=as_fn_executable_p 5759aa228fdSmrg 5769aa228fdSmrg# Sed expression to map a string onto a valid CPP name. 57746374b8dSmrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 57846374b8dSmrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 5799aa228fdSmrg 5809aa228fdSmrg# Sed expression to map a string onto a valid variable name. 58146374b8dSmrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 58246374b8dSmrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated 5839aa228fdSmrg 5849aa228fdSmrg 5858f65982aSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 5868f65982aSmrgexec 6>&1 5879aa228fdSmrg 5889aa228fdSmrg# Name of the host. 5898f65982aSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5909aa228fdSmrg# so uname gets run too. 5919aa228fdSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5929aa228fdSmrg 5939aa228fdSmrg# 5949aa228fdSmrg# Initializations. 5959aa228fdSmrg# 5969aa228fdSmrgac_default_prefix=/usr/local 5979aa228fdSmrgac_clean_files= 5989aa228fdSmrgac_config_libobj_dir=. 5999aa228fdSmrgLIBOBJS= 6009aa228fdSmrgcross_compiling=no 6019aa228fdSmrgsubdirs= 6029aa228fdSmrgMFLAGS= 6039aa228fdSmrgMAKEFLAGS= 6049aa228fdSmrg 6059aa228fdSmrg# Identity of this package. 6069aa228fdSmrgPACKAGE_NAME='xmag' 6079aa228fdSmrgPACKAGE_TARNAME='xmag' 60846374b8dSmrgPACKAGE_VERSION='1.0.8' 60946374b8dSmrgPACKAGE_STRING='xmag 1.0.8' 61046374b8dSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xmag/-/issues' 6118f65982aSmrgPACKAGE_URL='' 6129aa228fdSmrg 6130c7e83b2Smrgac_unique_file="Makefile.am" 61483d7c197Smrg# Factoring default headers for most tests. 61583d7c197Smrgac_includes_default="\ 616e39ce84cSmrg#include <stddef.h> 617e39ce84cSmrg#ifdef HAVE_STDIO_H 618e39ce84cSmrg# include <stdio.h> 61983d7c197Smrg#endif 620e39ce84cSmrg#ifdef HAVE_STDLIB_H 62183d7c197Smrg# include <stdlib.h> 6228f65982aSmrg#endif 6238f65982aSmrg#ifdef HAVE_STRING_H 6248f65982aSmrg# include <string.h> 6258f65982aSmrg#endif 6268f65982aSmrg#ifdef HAVE_INTTYPES_H 6278f65982aSmrg# include <inttypes.h> 6288f65982aSmrg#endif 6298f65982aSmrg#ifdef HAVE_STDINT_H 6308f65982aSmrg# include <stdint.h> 6318f65982aSmrg#endif 632e39ce84cSmrg#ifdef HAVE_STRINGS_H 633e39ce84cSmrg# include <strings.h> 634e39ce84cSmrg#endif 635e39ce84cSmrg#ifdef HAVE_SYS_TYPES_H 636e39ce84cSmrg# include <sys/types.h> 637e39ce84cSmrg#endif 638e39ce84cSmrg#ifdef HAVE_SYS_STAT_H 639e39ce84cSmrg# include <sys/stat.h> 640e39ce84cSmrg#endif 6418f65982aSmrg#ifdef HAVE_UNISTD_H 6428f65982aSmrg# include <unistd.h> 6438f65982aSmrg#endif" 6448f65982aSmrg 645e39ce84cSmrgac_header_c_list= 6468f65982aSmrgac_subst_vars='am__EXEEXT_FALSE 6478f65982aSmrgam__EXEEXT_TRUE 6488f65982aSmrgLTLIBOBJS 6498f65982aSmrgLIBOBJS 6509aa228fdSmrgappdefaultdir 6518f65982aSmrgXMAG_LIBS 6528f65982aSmrgXMAG_CFLAGS 6538f65982aSmrgMAN_SUBSTS 6548f65982aSmrgXORG_MAN_PAGE 6559aa228fdSmrgADMIN_MAN_DIR 6568f65982aSmrgDRIVER_MAN_DIR 6578f65982aSmrgMISC_MAN_DIR 6588f65982aSmrgFILE_MAN_DIR 6598f65982aSmrgLIB_MAN_DIR 6608f65982aSmrgAPP_MAN_DIR 6618f65982aSmrgADMIN_MAN_SUFFIX 6628f65982aSmrgDRIVER_MAN_SUFFIX 6638f65982aSmrgMISC_MAN_SUFFIX 6648f65982aSmrgFILE_MAN_SUFFIX 6658f65982aSmrgLIB_MAN_SUFFIX 6668f65982aSmrgAPP_MAN_SUFFIX 6678f65982aSmrgSED 6688f65982aSmrghost_os 6698f65982aSmrghost_vendor 6708f65982aSmrghost_cpu 6718f65982aSmrghost 6728f65982aSmrgbuild_os 6738f65982aSmrgbuild_vendor 6748f65982aSmrgbuild_cpu 6758f65982aSmrgbuild 6768f65982aSmrgINSTALL_CMD 677e39ce84cSmrgPKG_CONFIG_LIBDIR 678e39ce84cSmrgPKG_CONFIG_PATH 6798f65982aSmrgPKG_CONFIG 68083d7c197SmrgCHANGELOG_CMD 68180b026c6SmrgSTRICT_CFLAGS 6828f65982aSmrgCWARNFLAGS 68380b026c6SmrgBASE_CFLAGS 6848f65982aSmrgam__fastdepCC_FALSE 6858f65982aSmrgam__fastdepCC_TRUE 6868f65982aSmrgCCDEPMODE 68780b026c6Smrgam__nodep 6888f65982aSmrgAMDEPBACKSLASH 6898f65982aSmrgAMDEP_FALSE 6908f65982aSmrgAMDEP_TRUE 6918f65982aSmrgam__include 6928f65982aSmrgDEPDIR 6938f65982aSmrgOBJEXT 6948f65982aSmrgEXEEXT 6958f65982aSmrgac_ct_CC 6968f65982aSmrgCPPFLAGS 6978f65982aSmrgLDFLAGS 6988f65982aSmrgCFLAGS 6998f65982aSmrgCC 70046374b8dSmrgam__xargs_n 70146374b8dSmrgam__rm_f_notfound 7020c7e83b2SmrgAM_BACKSLASH 7030c7e83b2SmrgAM_DEFAULT_VERBOSITY 7040c7e83b2SmrgAM_DEFAULT_V 7050c7e83b2SmrgAM_V 706e39ce84cSmrgCSCOPE 707e39ce84cSmrgETAGS 708e39ce84cSmrgCTAGS 7098f65982aSmrgam__untar 7108f65982aSmrgam__tar 7118f65982aSmrgAMTAR 7128f65982aSmrgam__leading_dot 7138f65982aSmrgSET_MAKE 7148f65982aSmrgAWK 7158f65982aSmrgmkdir_p 7168f65982aSmrgMKDIR_P 7178f65982aSmrgINSTALL_STRIP_PROGRAM 7188f65982aSmrgSTRIP 7198f65982aSmrginstall_sh 7208f65982aSmrgMAKEINFO 7218f65982aSmrgAUTOHEADER 7228f65982aSmrgAUTOMAKE 7238f65982aSmrgAUTOCONF 7248f65982aSmrgACLOCAL 7258f65982aSmrgVERSION 7268f65982aSmrgPACKAGE 7278f65982aSmrgCYGPATH_W 7288f65982aSmrgam__isrc 7298f65982aSmrgINSTALL_DATA 7308f65982aSmrgINSTALL_SCRIPT 7318f65982aSmrgINSTALL_PROGRAM 7328f65982aSmrgtarget_alias 7338f65982aSmrghost_alias 7348f65982aSmrgbuild_alias 7358f65982aSmrgLIBS 7368f65982aSmrgECHO_T 7378f65982aSmrgECHO_N 7388f65982aSmrgECHO_C 7398f65982aSmrgDEFS 7408f65982aSmrgmandir 7418f65982aSmrglocaledir 7428f65982aSmrglibdir 7438f65982aSmrgpsdir 7448f65982aSmrgpdfdir 7458f65982aSmrgdvidir 7468f65982aSmrghtmldir 7478f65982aSmrginfodir 7488f65982aSmrgdocdir 7498f65982aSmrgoldincludedir 7508f65982aSmrgincludedir 751e39ce84cSmrgrunstatedir 7528f65982aSmrglocalstatedir 7538f65982aSmrgsharedstatedir 7548f65982aSmrgsysconfdir 7558f65982aSmrgdatadir 7568f65982aSmrgdatarootdir 7578f65982aSmrglibexecdir 7588f65982aSmrgsbindir 7598f65982aSmrgbindir 7608f65982aSmrgprogram_transform_name 7618f65982aSmrgprefix 7628f65982aSmrgexec_prefix 7638f65982aSmrgPACKAGE_URL 7648f65982aSmrgPACKAGE_BUGREPORT 7658f65982aSmrgPACKAGE_STRING 7668f65982aSmrgPACKAGE_VERSION 7678f65982aSmrgPACKAGE_TARNAME 7688f65982aSmrgPACKAGE_NAME 7698f65982aSmrgPATH_SEPARATOR 770e39ce84cSmrgSHELL 771e39ce84cSmrgam__quote' 7729aa228fdSmrgac_subst_files='' 7738f65982aSmrgac_user_opts=' 7748f65982aSmrgenable_option_checking 7750c7e83b2Smrgenable_silent_rules 7768f65982aSmrgenable_dependency_tracking 77780b026c6Smrgenable_selective_werror 7788f65982aSmrgenable_strict_compilation 7798f65982aSmrgwith_appdefaultdir 7808f65982aSmrg' 7819aa228fdSmrg ac_precious_vars='build_alias 7829aa228fdSmrghost_alias 7839aa228fdSmrgtarget_alias 7849aa228fdSmrgCC 7859aa228fdSmrgCFLAGS 7869aa228fdSmrgLDFLAGS 7879aa228fdSmrgLIBS 7889aa228fdSmrgCPPFLAGS 7899aa228fdSmrgPKG_CONFIG 790e39ce84cSmrgPKG_CONFIG_PATH 791e39ce84cSmrgPKG_CONFIG_LIBDIR 79283d7c197SmrgXMAG_CFLAGS 7938f65982aSmrgXMAG_LIBS' 7949aa228fdSmrg 7959aa228fdSmrg 7969aa228fdSmrg# Initialize some variables set by options. 7979aa228fdSmrgac_init_help= 7989aa228fdSmrgac_init_version=false 7998f65982aSmrgac_unrecognized_opts= 8008f65982aSmrgac_unrecognized_sep= 8019aa228fdSmrg# The variables have the same names as the options, with 8029aa228fdSmrg# dashes changed to underlines. 8039aa228fdSmrgcache_file=/dev/null 8049aa228fdSmrgexec_prefix=NONE 8059aa228fdSmrgno_create= 8069aa228fdSmrgno_recursion= 8079aa228fdSmrgprefix=NONE 8089aa228fdSmrgprogram_prefix=NONE 8099aa228fdSmrgprogram_suffix=NONE 8109aa228fdSmrgprogram_transform_name=s,x,x, 8119aa228fdSmrgsilent= 8129aa228fdSmrgsite= 8139aa228fdSmrgsrcdir= 8149aa228fdSmrgverbose= 8159aa228fdSmrgx_includes=NONE 8169aa228fdSmrgx_libraries=NONE 8179aa228fdSmrg 8189aa228fdSmrg# Installation directory options. 8199aa228fdSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 8209aa228fdSmrg# and all the variables that are supposed to be based on exec_prefix 8219aa228fdSmrg# by default will actually change. 8229aa228fdSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 8239aa228fdSmrg# (The list follows the same order as the GNU Coding Standards.) 8249aa228fdSmrgbindir='${exec_prefix}/bin' 8259aa228fdSmrgsbindir='${exec_prefix}/sbin' 8269aa228fdSmrglibexecdir='${exec_prefix}/libexec' 8279aa228fdSmrgdatarootdir='${prefix}/share' 8289aa228fdSmrgdatadir='${datarootdir}' 8299aa228fdSmrgsysconfdir='${prefix}/etc' 8309aa228fdSmrgsharedstatedir='${prefix}/com' 8319aa228fdSmrglocalstatedir='${prefix}/var' 832e39ce84cSmrgrunstatedir='${localstatedir}/run' 8339aa228fdSmrgincludedir='${prefix}/include' 8349aa228fdSmrgoldincludedir='/usr/include' 8359aa228fdSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 8369aa228fdSmrginfodir='${datarootdir}/info' 8379aa228fdSmrghtmldir='${docdir}' 8389aa228fdSmrgdvidir='${docdir}' 8399aa228fdSmrgpdfdir='${docdir}' 8409aa228fdSmrgpsdir='${docdir}' 8419aa228fdSmrglibdir='${exec_prefix}/lib' 8429aa228fdSmrglocaledir='${datarootdir}/locale' 8439aa228fdSmrgmandir='${datarootdir}/man' 8449aa228fdSmrg 8459aa228fdSmrgac_prev= 8469aa228fdSmrgac_dashdash= 8479aa228fdSmrgfor ac_option 8489aa228fdSmrgdo 8499aa228fdSmrg # If the previous option needs an argument, assign it. 8509aa228fdSmrg if test -n "$ac_prev"; then 8519aa228fdSmrg eval $ac_prev=\$ac_option 8529aa228fdSmrg ac_prev= 8539aa228fdSmrg continue 8549aa228fdSmrg fi 8559aa228fdSmrg 8569aa228fdSmrg case $ac_option in 8578f65982aSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8588f65982aSmrg *=) ac_optarg= ;; 8598f65982aSmrg *) ac_optarg=yes ;; 8609aa228fdSmrg esac 8619aa228fdSmrg 8629aa228fdSmrg case $ac_dashdash$ac_option in 8639aa228fdSmrg --) 8649aa228fdSmrg ac_dashdash=yes ;; 8659aa228fdSmrg 8669aa228fdSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8679aa228fdSmrg ac_prev=bindir ;; 8689aa228fdSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8699aa228fdSmrg bindir=$ac_optarg ;; 8709aa228fdSmrg 8719aa228fdSmrg -build | --build | --buil | --bui | --bu) 8729aa228fdSmrg ac_prev=build_alias ;; 8739aa228fdSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8749aa228fdSmrg build_alias=$ac_optarg ;; 8759aa228fdSmrg 8769aa228fdSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8779aa228fdSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8789aa228fdSmrg ac_prev=cache_file ;; 8799aa228fdSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8809aa228fdSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8819aa228fdSmrg cache_file=$ac_optarg ;; 8829aa228fdSmrg 8839aa228fdSmrg --config-cache | -C) 8849aa228fdSmrg cache_file=config.cache ;; 8859aa228fdSmrg 8869aa228fdSmrg -datadir | --datadir | --datadi | --datad) 8879aa228fdSmrg ac_prev=datadir ;; 8889aa228fdSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8899aa228fdSmrg datadir=$ac_optarg ;; 8909aa228fdSmrg 8919aa228fdSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 8929aa228fdSmrg | --dataroo | --dataro | --datar) 8939aa228fdSmrg ac_prev=datarootdir ;; 8949aa228fdSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 8959aa228fdSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 8969aa228fdSmrg datarootdir=$ac_optarg ;; 8979aa228fdSmrg 8989aa228fdSmrg -disable-* | --disable-*) 8998f65982aSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 9009aa228fdSmrg # Reject names that are not valid shell variable names. 9018f65982aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 90246374b8dSmrg as_fn_error $? "invalid feature name: '$ac_useropt'" 9038f65982aSmrg ac_useropt_orig=$ac_useropt 904e39ce84cSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9058f65982aSmrg case $ac_user_opts in 9068f65982aSmrg *" 9078f65982aSmrg"enable_$ac_useropt" 9088f65982aSmrg"*) ;; 9098f65982aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 9108f65982aSmrg ac_unrecognized_sep=', ';; 9118f65982aSmrg esac 9128f65982aSmrg eval enable_$ac_useropt=no ;; 9139aa228fdSmrg 9149aa228fdSmrg -docdir | --docdir | --docdi | --doc | --do) 9159aa228fdSmrg ac_prev=docdir ;; 9169aa228fdSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 9179aa228fdSmrg docdir=$ac_optarg ;; 9189aa228fdSmrg 9199aa228fdSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 9209aa228fdSmrg ac_prev=dvidir ;; 9219aa228fdSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 9229aa228fdSmrg dvidir=$ac_optarg ;; 9239aa228fdSmrg 9249aa228fdSmrg -enable-* | --enable-*) 9258f65982aSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 9269aa228fdSmrg # Reject names that are not valid shell variable names. 9278f65982aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 92846374b8dSmrg as_fn_error $? "invalid feature name: '$ac_useropt'" 9298f65982aSmrg ac_useropt_orig=$ac_useropt 930e39ce84cSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9318f65982aSmrg case $ac_user_opts in 9328f65982aSmrg *" 9338f65982aSmrg"enable_$ac_useropt" 9348f65982aSmrg"*) ;; 9358f65982aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 9368f65982aSmrg ac_unrecognized_sep=', ';; 9378f65982aSmrg esac 9388f65982aSmrg eval enable_$ac_useropt=\$ac_optarg ;; 9399aa228fdSmrg 9409aa228fdSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9419aa228fdSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9429aa228fdSmrg | --exec | --exe | --ex) 9439aa228fdSmrg ac_prev=exec_prefix ;; 9449aa228fdSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9459aa228fdSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9469aa228fdSmrg | --exec=* | --exe=* | --ex=*) 9479aa228fdSmrg exec_prefix=$ac_optarg ;; 9489aa228fdSmrg 9499aa228fdSmrg -gas | --gas | --ga | --g) 9509aa228fdSmrg # Obsolete; use --with-gas. 9519aa228fdSmrg with_gas=yes ;; 9529aa228fdSmrg 9539aa228fdSmrg -help | --help | --hel | --he | -h) 9549aa228fdSmrg ac_init_help=long ;; 9559aa228fdSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9569aa228fdSmrg ac_init_help=recursive ;; 9579aa228fdSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9589aa228fdSmrg ac_init_help=short ;; 9599aa228fdSmrg 9609aa228fdSmrg -host | --host | --hos | --ho) 9619aa228fdSmrg ac_prev=host_alias ;; 9629aa228fdSmrg -host=* | --host=* | --hos=* | --ho=*) 9639aa228fdSmrg host_alias=$ac_optarg ;; 9649aa228fdSmrg 9659aa228fdSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9669aa228fdSmrg ac_prev=htmldir ;; 9679aa228fdSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9689aa228fdSmrg | --ht=*) 9699aa228fdSmrg htmldir=$ac_optarg ;; 9709aa228fdSmrg 9719aa228fdSmrg -includedir | --includedir | --includedi | --included | --include \ 9729aa228fdSmrg | --includ | --inclu | --incl | --inc) 9739aa228fdSmrg ac_prev=includedir ;; 9749aa228fdSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9759aa228fdSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9769aa228fdSmrg includedir=$ac_optarg ;; 9779aa228fdSmrg 9789aa228fdSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9799aa228fdSmrg ac_prev=infodir ;; 9809aa228fdSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9819aa228fdSmrg infodir=$ac_optarg ;; 9829aa228fdSmrg 9839aa228fdSmrg -libdir | --libdir | --libdi | --libd) 9849aa228fdSmrg ac_prev=libdir ;; 9859aa228fdSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9869aa228fdSmrg libdir=$ac_optarg ;; 9879aa228fdSmrg 9889aa228fdSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9899aa228fdSmrg | --libexe | --libex | --libe) 9909aa228fdSmrg ac_prev=libexecdir ;; 9919aa228fdSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9929aa228fdSmrg | --libexe=* | --libex=* | --libe=*) 9939aa228fdSmrg libexecdir=$ac_optarg ;; 9949aa228fdSmrg 9959aa228fdSmrg -localedir | --localedir | --localedi | --localed | --locale) 9969aa228fdSmrg ac_prev=localedir ;; 9979aa228fdSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 9989aa228fdSmrg localedir=$ac_optarg ;; 9999aa228fdSmrg 10009aa228fdSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 10019aa228fdSmrg | --localstate | --localstat | --localsta | --localst | --locals) 10029aa228fdSmrg ac_prev=localstatedir ;; 10039aa228fdSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 10049aa228fdSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 10059aa228fdSmrg localstatedir=$ac_optarg ;; 10069aa228fdSmrg 10079aa228fdSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 10089aa228fdSmrg ac_prev=mandir ;; 10099aa228fdSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 10109aa228fdSmrg mandir=$ac_optarg ;; 10119aa228fdSmrg 10129aa228fdSmrg -nfp | --nfp | --nf) 10139aa228fdSmrg # Obsolete; use --without-fp. 10149aa228fdSmrg with_fp=no ;; 10159aa228fdSmrg 10169aa228fdSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 10179aa228fdSmrg | --no-cr | --no-c | -n) 10189aa228fdSmrg no_create=yes ;; 10199aa228fdSmrg 10209aa228fdSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 10219aa228fdSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 10229aa228fdSmrg no_recursion=yes ;; 10239aa228fdSmrg 10249aa228fdSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 10259aa228fdSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 10269aa228fdSmrg | --oldin | --oldi | --old | --ol | --o) 10279aa228fdSmrg ac_prev=oldincludedir ;; 10289aa228fdSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 10299aa228fdSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 10309aa228fdSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 10319aa228fdSmrg oldincludedir=$ac_optarg ;; 10329aa228fdSmrg 10339aa228fdSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 10349aa228fdSmrg ac_prev=prefix ;; 10359aa228fdSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10369aa228fdSmrg prefix=$ac_optarg ;; 10379aa228fdSmrg 10389aa228fdSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10399aa228fdSmrg | --program-pre | --program-pr | --program-p) 10409aa228fdSmrg ac_prev=program_prefix ;; 10419aa228fdSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10429aa228fdSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10439aa228fdSmrg program_prefix=$ac_optarg ;; 10449aa228fdSmrg 10459aa228fdSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10469aa228fdSmrg | --program-suf | --program-su | --program-s) 10479aa228fdSmrg ac_prev=program_suffix ;; 10489aa228fdSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10499aa228fdSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10509aa228fdSmrg program_suffix=$ac_optarg ;; 10519aa228fdSmrg 10529aa228fdSmrg -program-transform-name | --program-transform-name \ 10539aa228fdSmrg | --program-transform-nam | --program-transform-na \ 10549aa228fdSmrg | --program-transform-n | --program-transform- \ 10559aa228fdSmrg | --program-transform | --program-transfor \ 10569aa228fdSmrg | --program-transfo | --program-transf \ 10579aa228fdSmrg | --program-trans | --program-tran \ 10589aa228fdSmrg | --progr-tra | --program-tr | --program-t) 10599aa228fdSmrg ac_prev=program_transform_name ;; 10609aa228fdSmrg -program-transform-name=* | --program-transform-name=* \ 10619aa228fdSmrg | --program-transform-nam=* | --program-transform-na=* \ 10629aa228fdSmrg | --program-transform-n=* | --program-transform-=* \ 10639aa228fdSmrg | --program-transform=* | --program-transfor=* \ 10649aa228fdSmrg | --program-transfo=* | --program-transf=* \ 10659aa228fdSmrg | --program-trans=* | --program-tran=* \ 10669aa228fdSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 10679aa228fdSmrg program_transform_name=$ac_optarg ;; 10689aa228fdSmrg 10699aa228fdSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10709aa228fdSmrg ac_prev=pdfdir ;; 10719aa228fdSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10729aa228fdSmrg pdfdir=$ac_optarg ;; 10739aa228fdSmrg 10749aa228fdSmrg -psdir | --psdir | --psdi | --psd | --ps) 10759aa228fdSmrg ac_prev=psdir ;; 10769aa228fdSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10779aa228fdSmrg psdir=$ac_optarg ;; 10789aa228fdSmrg 10799aa228fdSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10809aa228fdSmrg | -silent | --silent | --silen | --sile | --sil) 10819aa228fdSmrg silent=yes ;; 10829aa228fdSmrg 1083e39ce84cSmrg -runstatedir | --runstatedir | --runstatedi | --runstated \ 1084e39ce84cSmrg | --runstate | --runstat | --runsta | --runst | --runs \ 1085e39ce84cSmrg | --run | --ru | --r) 1086e39ce84cSmrg ac_prev=runstatedir ;; 1087e39ce84cSmrg -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1088e39ce84cSmrg | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1089e39ce84cSmrg | --run=* | --ru=* | --r=*) 1090e39ce84cSmrg runstatedir=$ac_optarg ;; 1091e39ce84cSmrg 10929aa228fdSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10939aa228fdSmrg ac_prev=sbindir ;; 10949aa228fdSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10959aa228fdSmrg | --sbi=* | --sb=*) 10969aa228fdSmrg sbindir=$ac_optarg ;; 10979aa228fdSmrg 10989aa228fdSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10999aa228fdSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 11009aa228fdSmrg | --sharedst | --shareds | --shared | --share | --shar \ 11019aa228fdSmrg | --sha | --sh) 11029aa228fdSmrg ac_prev=sharedstatedir ;; 11039aa228fdSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 11049aa228fdSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 11059aa228fdSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 11069aa228fdSmrg | --sha=* | --sh=*) 11079aa228fdSmrg sharedstatedir=$ac_optarg ;; 11089aa228fdSmrg 11099aa228fdSmrg -site | --site | --sit) 11109aa228fdSmrg ac_prev=site ;; 11119aa228fdSmrg -site=* | --site=* | --sit=*) 11129aa228fdSmrg site=$ac_optarg ;; 11139aa228fdSmrg 11149aa228fdSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 11159aa228fdSmrg ac_prev=srcdir ;; 11169aa228fdSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 11179aa228fdSmrg srcdir=$ac_optarg ;; 11189aa228fdSmrg 11199aa228fdSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 11209aa228fdSmrg | --syscon | --sysco | --sysc | --sys | --sy) 11219aa228fdSmrg ac_prev=sysconfdir ;; 11229aa228fdSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 11239aa228fdSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 11249aa228fdSmrg sysconfdir=$ac_optarg ;; 11259aa228fdSmrg 11269aa228fdSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 11279aa228fdSmrg ac_prev=target_alias ;; 11289aa228fdSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 11299aa228fdSmrg target_alias=$ac_optarg ;; 11309aa228fdSmrg 11319aa228fdSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 11329aa228fdSmrg verbose=yes ;; 11339aa228fdSmrg 11349aa228fdSmrg -version | --version | --versio | --versi | --vers | -V) 11359aa228fdSmrg ac_init_version=: ;; 11369aa228fdSmrg 11379aa228fdSmrg -with-* | --with-*) 11388f65982aSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 11399aa228fdSmrg # Reject names that are not valid shell variable names. 11408f65982aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 114146374b8dSmrg as_fn_error $? "invalid package name: '$ac_useropt'" 11428f65982aSmrg ac_useropt_orig=$ac_useropt 1143e39ce84cSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11448f65982aSmrg case $ac_user_opts in 11458f65982aSmrg *" 11468f65982aSmrg"with_$ac_useropt" 11478f65982aSmrg"*) ;; 11488f65982aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 11498f65982aSmrg ac_unrecognized_sep=', ';; 11508f65982aSmrg esac 11518f65982aSmrg eval with_$ac_useropt=\$ac_optarg ;; 11529aa228fdSmrg 11539aa228fdSmrg -without-* | --without-*) 11548f65982aSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11559aa228fdSmrg # Reject names that are not valid shell variable names. 11568f65982aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 115746374b8dSmrg as_fn_error $? "invalid package name: '$ac_useropt'" 11588f65982aSmrg ac_useropt_orig=$ac_useropt 1159e39ce84cSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11608f65982aSmrg case $ac_user_opts in 11618f65982aSmrg *" 11628f65982aSmrg"with_$ac_useropt" 11638f65982aSmrg"*) ;; 11648f65982aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11658f65982aSmrg ac_unrecognized_sep=', ';; 11668f65982aSmrg esac 11678f65982aSmrg eval with_$ac_useropt=no ;; 11689aa228fdSmrg 11699aa228fdSmrg --x) 11709aa228fdSmrg # Obsolete; use --with-x. 11719aa228fdSmrg with_x=yes ;; 11729aa228fdSmrg 11739aa228fdSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11749aa228fdSmrg | --x-incl | --x-inc | --x-in | --x-i) 11759aa228fdSmrg ac_prev=x_includes ;; 11769aa228fdSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11779aa228fdSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11789aa228fdSmrg x_includes=$ac_optarg ;; 11799aa228fdSmrg 11809aa228fdSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11819aa228fdSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11829aa228fdSmrg ac_prev=x_libraries ;; 11839aa228fdSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11849aa228fdSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11859aa228fdSmrg x_libraries=$ac_optarg ;; 11869aa228fdSmrg 118746374b8dSmrg -*) as_fn_error $? "unrecognized option: '$ac_option' 118846374b8dSmrgTry '$0 --help' for more information" 11899aa228fdSmrg ;; 11909aa228fdSmrg 11919aa228fdSmrg *=*) 11929aa228fdSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11939aa228fdSmrg # Reject names that are not valid shell variable names. 11948f65982aSmrg case $ac_envvar in #( 11958f65982aSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 119646374b8dSmrg as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 11978f65982aSmrg esac 11989aa228fdSmrg eval $ac_envvar=\$ac_optarg 11999aa228fdSmrg export $ac_envvar ;; 12009aa228fdSmrg 12019aa228fdSmrg *) 12029aa228fdSmrg # FIXME: should be removed in autoconf 3.0. 1203e39ce84cSmrg printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 12049aa228fdSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1205e39ce84cSmrg printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 12068f65982aSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 12079aa228fdSmrg ;; 12089aa228fdSmrg 12099aa228fdSmrg esac 12109aa228fdSmrgdone 12119aa228fdSmrg 12129aa228fdSmrgif test -n "$ac_prev"; then 12139aa228fdSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 12148f65982aSmrg as_fn_error $? "missing argument to $ac_option" 12158f65982aSmrgfi 12168f65982aSmrg 12178f65982aSmrgif test -n "$ac_unrecognized_opts"; then 12188f65982aSmrg case $enable_option_checking in 12198f65982aSmrg no) ;; 12208f65982aSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1221e39ce84cSmrg *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 12228f65982aSmrg esac 12239aa228fdSmrgfi 12249aa228fdSmrg 12258f65982aSmrg# Check all directory arguments for consistency. 12269aa228fdSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 12279aa228fdSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 12289aa228fdSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1229e39ce84cSmrg libdir localedir mandir runstatedir 12309aa228fdSmrgdo 12319aa228fdSmrg eval ac_val=\$$ac_var 12328f65982aSmrg # Remove trailing slashes. 12338f65982aSmrg case $ac_val in 12348f65982aSmrg */ ) 12358f65982aSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 12368f65982aSmrg eval $ac_var=\$ac_val;; 12378f65982aSmrg esac 12388f65982aSmrg # Be sure to have absolute directory names. 12399aa228fdSmrg case $ac_val in 12409aa228fdSmrg [\\/$]* | ?:[\\/]* ) continue;; 12419aa228fdSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 12429aa228fdSmrg esac 12438f65982aSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 12449aa228fdSmrgdone 12459aa228fdSmrg 124646374b8dSmrg# There might be people who depend on the old broken behavior: '$host' 12479aa228fdSmrg# used to hold the argument of --host etc. 12489aa228fdSmrg# FIXME: To remove some day. 12499aa228fdSmrgbuild=$build_alias 12509aa228fdSmrghost=$host_alias 12519aa228fdSmrgtarget=$target_alias 12529aa228fdSmrg 12539aa228fdSmrg# FIXME: To remove some day. 12549aa228fdSmrgif test "x$host_alias" != x; then 12559aa228fdSmrg if test "x$build_alias" = x; then 12569aa228fdSmrg cross_compiling=maybe 12579aa228fdSmrg elif test "x$build_alias" != "x$host_alias"; then 12589aa228fdSmrg cross_compiling=yes 12599aa228fdSmrg fi 12609aa228fdSmrgfi 12619aa228fdSmrg 12629aa228fdSmrgac_tool_prefix= 12639aa228fdSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12649aa228fdSmrg 12659aa228fdSmrgtest "$silent" = yes && exec 6>/dev/null 12669aa228fdSmrg 12679aa228fdSmrg 12689aa228fdSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 12699aa228fdSmrgac_ls_di=`ls -di .` && 12709aa228fdSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12718f65982aSmrg as_fn_error $? "working directory cannot be determined" 12729aa228fdSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12738f65982aSmrg as_fn_error $? "pwd does not report name of working directory" 12749aa228fdSmrg 12759aa228fdSmrg 12769aa228fdSmrg# Find the source files, if location was not specified. 12779aa228fdSmrgif test -z "$srcdir"; then 12789aa228fdSmrg ac_srcdir_defaulted=yes 12799aa228fdSmrg # Try the directory containing this script, then the parent directory. 12808f65982aSmrg ac_confdir=`$as_dirname -- "$as_myself" || 12818f65982aSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12828f65982aSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 12838f65982aSmrg X"$as_myself" : 'X\(//\)$' \| \ 12848f65982aSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1285e39ce84cSmrgprintf "%s\n" X"$as_myself" | 12869aa228fdSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12879aa228fdSmrg s//\1/ 12889aa228fdSmrg q 12899aa228fdSmrg } 12909aa228fdSmrg /^X\(\/\/\)[^/].*/{ 12919aa228fdSmrg s//\1/ 12929aa228fdSmrg q 12939aa228fdSmrg } 12949aa228fdSmrg /^X\(\/\/\)$/{ 12959aa228fdSmrg s//\1/ 12969aa228fdSmrg q 12979aa228fdSmrg } 12989aa228fdSmrg /^X\(\/\).*/{ 12999aa228fdSmrg s//\1/ 13009aa228fdSmrg q 13019aa228fdSmrg } 13029aa228fdSmrg s/.*/./; q'` 13039aa228fdSmrg srcdir=$ac_confdir 13049aa228fdSmrg if test ! -r "$srcdir/$ac_unique_file"; then 13059aa228fdSmrg srcdir=.. 13069aa228fdSmrg fi 13079aa228fdSmrgelse 13089aa228fdSmrg ac_srcdir_defaulted=no 13099aa228fdSmrgfi 13109aa228fdSmrgif test ! -r "$srcdir/$ac_unique_file"; then 13119aa228fdSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 13128f65982aSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 13139aa228fdSmrgfi 131446374b8dSmrgac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 13159aa228fdSmrgac_abs_confdir=`( 13168f65982aSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 13179aa228fdSmrg pwd)` 13189aa228fdSmrg# When building in place, set srcdir=. 13199aa228fdSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 13209aa228fdSmrg srcdir=. 13219aa228fdSmrgfi 13229aa228fdSmrg# Remove unnecessary trailing slashes from srcdir. 13239aa228fdSmrg# Double slashes in file names in object file debugging info 13249aa228fdSmrg# mess up M-x gdb in Emacs. 13259aa228fdSmrgcase $srcdir in 13269aa228fdSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 13279aa228fdSmrgesac 13289aa228fdSmrgfor ac_var in $ac_precious_vars; do 13299aa228fdSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 13309aa228fdSmrg eval ac_env_${ac_var}_value=\$${ac_var} 13319aa228fdSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 13329aa228fdSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 13339aa228fdSmrgdone 13349aa228fdSmrg 13359aa228fdSmrg# 13369aa228fdSmrg# Report the --help message. 13379aa228fdSmrg# 13389aa228fdSmrgif test "$ac_init_help" = "long"; then 13399aa228fdSmrg # Omit some internal or obsolete options to make the list less imposing. 13409aa228fdSmrg # This message is too long to be a string in the A/UX 3.1 sh. 13419aa228fdSmrg cat <<_ACEOF 134246374b8dSmrg'configure' configures xmag 1.0.8 to adapt to many kinds of systems. 13439aa228fdSmrg 13449aa228fdSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 13459aa228fdSmrg 13469aa228fdSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13479aa228fdSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13489aa228fdSmrg 13499aa228fdSmrgDefaults for the options are specified in brackets. 13509aa228fdSmrg 13519aa228fdSmrgConfiguration: 13529aa228fdSmrg -h, --help display this help and exit 13539aa228fdSmrg --help=short display options specific to this package 13549aa228fdSmrg --help=recursive display the short help of all the included packages 13559aa228fdSmrg -V, --version display version information and exit 135646374b8dSmrg -q, --quiet, --silent do not print 'checking ...' messages 13579aa228fdSmrg --cache-file=FILE cache test results in FILE [disabled] 135846374b8dSmrg -C, --config-cache alias for '--cache-file=config.cache' 13599aa228fdSmrg -n, --no-create do not create output files 136046374b8dSmrg --srcdir=DIR find the sources in DIR [configure dir or '..'] 13619aa228fdSmrg 13629aa228fdSmrgInstallation directories: 13639aa228fdSmrg --prefix=PREFIX install architecture-independent files in PREFIX 13648f65982aSmrg [$ac_default_prefix] 13659aa228fdSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13668f65982aSmrg [PREFIX] 13679aa228fdSmrg 136846374b8dSmrgBy default, 'make install' will install all the files in 136946374b8dSmrg'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 137046374b8dSmrgan installation prefix other than '$ac_default_prefix' using '--prefix', 137146374b8dSmrgfor instance '--prefix=\$HOME'. 13729aa228fdSmrg 13739aa228fdSmrgFor better control, use the options below. 13749aa228fdSmrg 13759aa228fdSmrgFine tuning of the installation directories: 13768f65982aSmrg --bindir=DIR user executables [EPREFIX/bin] 13778f65982aSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 13788f65982aSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 13798f65982aSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 13808f65982aSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 13818f65982aSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1382e39ce84cSmrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 13838f65982aSmrg --libdir=DIR object code libraries [EPREFIX/lib] 13848f65982aSmrg --includedir=DIR C header files [PREFIX/include] 13858f65982aSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 13868f65982aSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 13878f65982aSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 13888f65982aSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 13898f65982aSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 13908f65982aSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 13918f65982aSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/xmag] 13928f65982aSmrg --htmldir=DIR html documentation [DOCDIR] 13938f65982aSmrg --dvidir=DIR dvi documentation [DOCDIR] 13948f65982aSmrg --pdfdir=DIR pdf documentation [DOCDIR] 13958f65982aSmrg --psdir=DIR ps documentation [DOCDIR] 13969aa228fdSmrg_ACEOF 13979aa228fdSmrg 13989aa228fdSmrg cat <<\_ACEOF 13999aa228fdSmrg 14009aa228fdSmrgProgram names: 14019aa228fdSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 14029aa228fdSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 14039aa228fdSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 14049aa228fdSmrg 14059aa228fdSmrgSystem types: 14069aa228fdSmrg --build=BUILD configure for building on BUILD [guessed] 14079aa228fdSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 14089aa228fdSmrg_ACEOF 14099aa228fdSmrgfi 14109aa228fdSmrg 14119aa228fdSmrgif test -n "$ac_init_help"; then 14129aa228fdSmrg case $ac_init_help in 141346374b8dSmrg short | recursive ) echo "Configuration of xmag 1.0.8:";; 14149aa228fdSmrg esac 14159aa228fdSmrg cat <<\_ACEOF 14169aa228fdSmrg 14179aa228fdSmrgOptional Features: 14188f65982aSmrg --disable-option-checking ignore unrecognized --enable/--with options 14199aa228fdSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 14209aa228fdSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 14210c7e83b2Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 14220c7e83b2Smrg --disable-silent-rules verbose build output (undo: "make V=0") 14230c7e83b2Smrg --enable-dependency-tracking 14240c7e83b2Smrg do not reject slow dependency extractors 14250c7e83b2Smrg --disable-dependency-tracking 14260c7e83b2Smrg speeds up one-time build 142780b026c6Smrg --disable-selective-werror 142880b026c6Smrg Turn off selective compiler errors. (default: 142980b026c6Smrg enabled) 14308f65982aSmrg --enable-strict-compilation 14318f65982aSmrg Enable all warnings from compiler and make them 14328f65982aSmrg errors (default: disabled) 14339aa228fdSmrg 14349aa228fdSmrgOptional Packages: 14359aa228fdSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 14369aa228fdSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 143783d7c197Smrg --with-appdefaultdir=<pathname> 143883d7c197Smrg specify directory for app-defaults files (default is 143983d7c197Smrg autodetected) 14409aa228fdSmrg 14419aa228fdSmrgSome influential environment variables: 14429aa228fdSmrg CC C compiler command 14439aa228fdSmrg CFLAGS C compiler flags 14449aa228fdSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14459aa228fdSmrg nonstandard directory <lib dir> 14469aa228fdSmrg LIBS libraries to pass to the linker, e.g. -l<library> 14478f65982aSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 14489aa228fdSmrg you have headers in a nonstandard directory <include dir> 14499aa228fdSmrg PKG_CONFIG path to pkg-config utility 1450e39ce84cSmrg PKG_CONFIG_PATH 1451e39ce84cSmrg directories to add to pkg-config's search path 1452e39ce84cSmrg PKG_CONFIG_LIBDIR 1453e39ce84cSmrg path overriding pkg-config's built-in search path 145483d7c197Smrg XMAG_CFLAGS C compiler flags for XMAG, overriding pkg-config 145583d7c197Smrg XMAG_LIBS linker flags for XMAG, overriding pkg-config 14569aa228fdSmrg 145746374b8dSmrgUse these variables to override the choices made by 'configure' or to help 14589aa228fdSmrgit to find libraries and programs with nonstandard names/locations. 14599aa228fdSmrg 146046374b8dSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xmag/-/issues>. 14619aa228fdSmrg_ACEOF 14629aa228fdSmrgac_status=$? 14639aa228fdSmrgfi 14649aa228fdSmrg 14659aa228fdSmrgif test "$ac_init_help" = "recursive"; then 14669aa228fdSmrg # If there are subdirs, report their specific --help. 14679aa228fdSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 14688f65982aSmrg test -d "$ac_dir" || 14698f65982aSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 14708f65982aSmrg continue 14719aa228fdSmrg ac_builddir=. 14729aa228fdSmrg 14739aa228fdSmrgcase "$ac_dir" in 14749aa228fdSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14759aa228fdSmrg*) 1476e39ce84cSmrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 14779aa228fdSmrg # A ".." for each directory in $ac_dir_suffix. 1478e39ce84cSmrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14799aa228fdSmrg case $ac_top_builddir_sub in 14809aa228fdSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14819aa228fdSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14829aa228fdSmrg esac ;; 14839aa228fdSmrgesac 14849aa228fdSmrgac_abs_top_builddir=$ac_pwd 14859aa228fdSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14869aa228fdSmrg# for backward compatibility: 14879aa228fdSmrgac_top_builddir=$ac_top_build_prefix 14889aa228fdSmrg 14899aa228fdSmrgcase $srcdir in 14909aa228fdSmrg .) # We are building in place. 14919aa228fdSmrg ac_srcdir=. 14929aa228fdSmrg ac_top_srcdir=$ac_top_builddir_sub 14939aa228fdSmrg ac_abs_top_srcdir=$ac_pwd ;; 14949aa228fdSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 14959aa228fdSmrg ac_srcdir=$srcdir$ac_dir_suffix; 14969aa228fdSmrg ac_top_srcdir=$srcdir 14979aa228fdSmrg ac_abs_top_srcdir=$srcdir ;; 14989aa228fdSmrg *) # Relative name. 14999aa228fdSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15009aa228fdSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 15019aa228fdSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15029aa228fdSmrgesac 15038f65982aSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15048f65982aSmrg 15058f65982aSmrg cd "$ac_dir" || { ac_status=$?; continue; } 1506e39ce84cSmrg # Check for configure.gnu first; this name is used for a wrapper for 1507e39ce84cSmrg # Metaconfig's "Configure" on case-insensitive file systems. 15088f65982aSmrg if test -f "$ac_srcdir/configure.gnu"; then 15098f65982aSmrg echo && 15108f65982aSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 15118f65982aSmrg elif test -f "$ac_srcdir/configure"; then 15128f65982aSmrg echo && 15138f65982aSmrg $SHELL "$ac_srcdir/configure" --help=recursive 15148f65982aSmrg else 1515e39ce84cSmrg printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 15168f65982aSmrg fi || ac_status=$? 15178f65982aSmrg cd "$ac_pwd" || { ac_status=$?; break; } 15188f65982aSmrg done 15198f65982aSmrgfi 15208f65982aSmrg 15218f65982aSmrgtest -n "$ac_init_help" && exit $ac_status 15228f65982aSmrgif $ac_init_version; then 15238f65982aSmrg cat <<\_ACEOF 152446374b8dSmrgxmag configure 1.0.8 152546374b8dSmrggenerated by GNU Autoconf 2.72 15268f65982aSmrg 152746374b8dSmrgCopyright (C) 2023 Free Software Foundation, Inc. 15288f65982aSmrgThis configure script is free software; the Free Software Foundation 15298f65982aSmrggives unlimited permission to copy, distribute and modify it. 15308f65982aSmrg_ACEOF 15318f65982aSmrg exit 15328f65982aSmrgfi 15338f65982aSmrg 15348f65982aSmrg## ------------------------ ## 15358f65982aSmrg## Autoconf initialization. ## 15368f65982aSmrg## ------------------------ ## 15378f65982aSmrg 15388f65982aSmrg# ac_fn_c_try_compile LINENO 15398f65982aSmrg# -------------------------- 15408f65982aSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 15418f65982aSmrgac_fn_c_try_compile () 15428f65982aSmrg{ 15438f65982aSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1544e39ce84cSmrg rm -f conftest.$ac_objext conftest.beam 15458f65982aSmrg if { { ac_try="$ac_compile" 15468f65982aSmrgcase "(($ac_try" in 15478f65982aSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15488f65982aSmrg *) ac_try_echo=$ac_try;; 15498f65982aSmrgesac 15508f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1551e39ce84cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 15528f65982aSmrg (eval "$ac_compile") 2>conftest.err 15538f65982aSmrg ac_status=$? 15548f65982aSmrg if test -s conftest.err; then 15558f65982aSmrg grep -v '^ *+' conftest.err >conftest.er1 15568f65982aSmrg cat conftest.er1 >&5 15578f65982aSmrg mv -f conftest.er1 conftest.err 15588f65982aSmrg fi 1559e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15608f65982aSmrg test $ac_status = 0; } && { 15618f65982aSmrg test -z "$ac_c_werror_flag" || 15628f65982aSmrg test ! -s conftest.err 1563e39ce84cSmrg } && test -s conftest.$ac_objext 1564e39ce84cSmrgthen : 15658f65982aSmrg ac_retval=0 156646374b8dSmrgelse case e in #( 156746374b8dSmrg e) printf "%s\n" "$as_me: failed program was:" >&5 15688f65982aSmrgsed 's/^/| /' conftest.$ac_ext >&5 15698f65982aSmrg 157046374b8dSmrg ac_retval=1 ;; 157146374b8dSmrgesac 15728f65982aSmrgfi 15738f65982aSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15748f65982aSmrg as_fn_set_status $ac_retval 15758f65982aSmrg 15768f65982aSmrg} # ac_fn_c_try_compile 15778f65982aSmrg 1578e39ce84cSmrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1579e39ce84cSmrg# ------------------------------------------------------------------ 15808f65982aSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1581e39ce84cSmrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1582e39ce84cSmrgac_fn_check_decl () 15838f65982aSmrg{ 15848f65982aSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15858f65982aSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1586e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1587e39ce84cSmrgprintf %s "checking whether $as_decl_name is declared... " >&6; } 1588e39ce84cSmrgif eval test \${$3+y} 1589e39ce84cSmrgthen : 1590e39ce84cSmrg printf %s "(cached) " >&6 159146374b8dSmrgelse case e in #( 159246374b8dSmrg e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1593e39ce84cSmrg eval ac_save_FLAGS=\$$6 1594e39ce84cSmrg as_fn_append $6 " $5" 15958f65982aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15968f65982aSmrg/* end confdefs.h. */ 15978f65982aSmrg$4 15988f65982aSmrgint 1599e39ce84cSmrgmain (void) 16008f65982aSmrg{ 16018f65982aSmrg#ifndef $as_decl_name 16028f65982aSmrg#ifdef __cplusplus 16038f65982aSmrg (void) $as_decl_use; 16048f65982aSmrg#else 16058f65982aSmrg (void) $as_decl_name; 16068f65982aSmrg#endif 16078f65982aSmrg#endif 16088f65982aSmrg 16098f65982aSmrg ; 16108f65982aSmrg return 0; 16118f65982aSmrg} 16128f65982aSmrg_ACEOF 1613e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 1614e39ce84cSmrgthen : 16158f65982aSmrg eval "$3=yes" 161646374b8dSmrgelse case e in #( 161746374b8dSmrg e) eval "$3=no" ;; 161846374b8dSmrgesac 16198f65982aSmrgfi 1620e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1621e39ce84cSmrg eval $6=\$ac_save_FLAGS 162246374b8dSmrg ;; 162346374b8dSmrgesac 16248f65982aSmrgfi 1625e39ce84cSmrgeval ac_res=\$$3 1626e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1627e39ce84cSmrgprintf "%s\n" "$ac_res" >&6; } 16288f65982aSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16298f65982aSmrg 1630e39ce84cSmrg} # ac_fn_check_decl 16318f65982aSmrg 16328f65982aSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 16338f65982aSmrg# ------------------------------------------------------- 16348f65982aSmrg# Tests whether HEADER exists and can be compiled using the include files in 16358f65982aSmrg# INCLUDES, setting the cache variable VAR accordingly. 16368f65982aSmrgac_fn_c_check_header_compile () 16378f65982aSmrg{ 16388f65982aSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1640e39ce84cSmrgprintf %s "checking for $2... " >&6; } 1641e39ce84cSmrgif eval test \${$3+y} 1642e39ce84cSmrgthen : 1643e39ce84cSmrg printf %s "(cached) " >&6 164446374b8dSmrgelse case e in #( 164546374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16468f65982aSmrg/* end confdefs.h. */ 16478f65982aSmrg$4 16488f65982aSmrg#include <$2> 16498f65982aSmrg_ACEOF 1650e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 1651e39ce84cSmrgthen : 16528f65982aSmrg eval "$3=yes" 165346374b8dSmrgelse case e in #( 165446374b8dSmrg e) eval "$3=no" ;; 165546374b8dSmrgesac 16568f65982aSmrgfi 165746374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 165846374b8dSmrgesac 16598f65982aSmrgfi 16608f65982aSmrgeval ac_res=\$$3 1661e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1662e39ce84cSmrgprintf "%s\n" "$ac_res" >&6; } 16638f65982aSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16648f65982aSmrg 16658f65982aSmrg} # ac_fn_c_check_header_compile 16668f65982aSmrg 16678f65982aSmrg# ac_fn_c_try_link LINENO 16688f65982aSmrg# ----------------------- 16698f65982aSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 16708f65982aSmrgac_fn_c_try_link () 16718f65982aSmrg{ 16728f65982aSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1673e39ce84cSmrg rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 16748f65982aSmrg if { { ac_try="$ac_link" 16758f65982aSmrgcase "(($ac_try" in 16768f65982aSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16778f65982aSmrg *) ac_try_echo=$ac_try;; 16788f65982aSmrgesac 16798f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1680e39ce84cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 16818f65982aSmrg (eval "$ac_link") 2>conftest.err 16828f65982aSmrg ac_status=$? 16838f65982aSmrg if test -s conftest.err; then 16848f65982aSmrg grep -v '^ *+' conftest.err >conftest.er1 16858f65982aSmrg cat conftest.er1 >&5 16868f65982aSmrg mv -f conftest.er1 conftest.err 16878f65982aSmrg fi 1688e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16898f65982aSmrg test $ac_status = 0; } && { 16908f65982aSmrg test -z "$ac_c_werror_flag" || 16918f65982aSmrg test ! -s conftest.err 16928f65982aSmrg } && test -s conftest$ac_exeext && { 16938f65982aSmrg test "$cross_compiling" = yes || 16940c7e83b2Smrg test -x conftest$ac_exeext 1695e39ce84cSmrg } 1696e39ce84cSmrgthen : 16978f65982aSmrg ac_retval=0 169846374b8dSmrgelse case e in #( 169946374b8dSmrg e) printf "%s\n" "$as_me: failed program was:" >&5 17008f65982aSmrgsed 's/^/| /' conftest.$ac_ext >&5 17019aa228fdSmrg 170246374b8dSmrg ac_retval=1 ;; 170346374b8dSmrgesac 17049aa228fdSmrgfi 17058f65982aSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 17068f65982aSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 17078f65982aSmrg # interfere with the next link command; also delete a directory that is 17088f65982aSmrg # left behind by Apple's compiler. We do this before executing the actions. 17098f65982aSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 17108f65982aSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17118f65982aSmrg as_fn_set_status $ac_retval 17129aa228fdSmrg 17138f65982aSmrg} # ac_fn_c_try_link 17149aa228fdSmrg 17158f65982aSmrg# ac_fn_c_check_func LINENO FUNC VAR 17168f65982aSmrg# ---------------------------------- 17178f65982aSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 17188f65982aSmrgac_fn_c_check_func () 17198f65982aSmrg{ 17208f65982aSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1722e39ce84cSmrgprintf %s "checking for $2... " >&6; } 1723e39ce84cSmrgif eval test \${$3+y} 1724e39ce84cSmrgthen : 1725e39ce84cSmrg printf %s "(cached) " >&6 172646374b8dSmrgelse case e in #( 172746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17288f65982aSmrg/* end confdefs.h. */ 17298f65982aSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 17308f65982aSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17318f65982aSmrg#define $2 innocuous_$2 17328f65982aSmrg 17338f65982aSmrg/* System header to define __stub macros and hopefully few prototypes, 173446374b8dSmrg which can conflict with char $2 (void); below. */ 17358f65982aSmrg 1736e39ce84cSmrg#include <limits.h> 17378f65982aSmrg#undef $2 17388f65982aSmrg 17398f65982aSmrg/* Override any GCC internal prototype to avoid an error. 17408f65982aSmrg Use char because int might match the return type of a GCC 17418f65982aSmrg builtin and then its argument prototype would still apply. */ 17428f65982aSmrg#ifdef __cplusplus 17438f65982aSmrgextern "C" 17448f65982aSmrg#endif 174546374b8dSmrgchar $2 (void); 17468f65982aSmrg/* The GNU C library defines this for functions which it implements 17478f65982aSmrg to always fail with ENOSYS. Some functions are actually named 17488f65982aSmrg something starting with __ and the normal name is an alias. */ 17498f65982aSmrg#if defined __stub_$2 || defined __stub___$2 17508f65982aSmrgchoke me 17518f65982aSmrg#endif 17528f65982aSmrg 17538f65982aSmrgint 1754e39ce84cSmrgmain (void) 17558f65982aSmrg{ 17568f65982aSmrgreturn $2 (); 17578f65982aSmrg ; 17588f65982aSmrg return 0; 17598f65982aSmrg} 17609aa228fdSmrg_ACEOF 1761e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 1762e39ce84cSmrgthen : 17638f65982aSmrg eval "$3=yes" 176446374b8dSmrgelse case e in #( 176546374b8dSmrg e) eval "$3=no" ;; 176646374b8dSmrgesac 17679aa228fdSmrgfi 1768e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 176946374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 177046374b8dSmrgesac 17718f65982aSmrgfi 17728f65982aSmrgeval ac_res=\$$3 1773e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1774e39ce84cSmrgprintf "%s\n" "$ac_res" >&6; } 17758f65982aSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17768f65982aSmrg 17778f65982aSmrg} # ac_fn_c_check_func 1778e39ce84cSmrgac_configure_args_raw= 1779e39ce84cSmrgfor ac_arg 1780e39ce84cSmrgdo 1781e39ce84cSmrg case $ac_arg in 1782e39ce84cSmrg *\'*) 1783e39ce84cSmrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1784e39ce84cSmrg esac 1785e39ce84cSmrg as_fn_append ac_configure_args_raw " '$ac_arg'" 1786e39ce84cSmrgdone 1787e39ce84cSmrg 1788e39ce84cSmrgcase $ac_configure_args_raw in 1789e39ce84cSmrg *$as_nl*) 1790e39ce84cSmrg ac_safe_unquote= ;; 1791e39ce84cSmrg *) 1792e39ce84cSmrg ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1793e39ce84cSmrg ac_unsafe_a="$ac_unsafe_z#~" 1794e39ce84cSmrg ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1795e39ce84cSmrg ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1796e39ce84cSmrgesac 1797e39ce84cSmrg 17989aa228fdSmrgcat >config.log <<_ACEOF 17999aa228fdSmrgThis file contains any messages produced by compilers while 18009aa228fdSmrgrunning configure, to aid debugging if configure makes a mistake. 18019aa228fdSmrg 180246374b8dSmrgIt was created by xmag $as_me 1.0.8, which was 180346374b8dSmrggenerated by GNU Autoconf 2.72. Invocation command line was 18049aa228fdSmrg 1805e39ce84cSmrg $ $0$ac_configure_args_raw 18069aa228fdSmrg 18079aa228fdSmrg_ACEOF 18089aa228fdSmrgexec 5>>config.log 18099aa228fdSmrg{ 18109aa228fdSmrgcat <<_ASUNAME 18119aa228fdSmrg## --------- ## 18129aa228fdSmrg## Platform. ## 18139aa228fdSmrg## --------- ## 18149aa228fdSmrg 18159aa228fdSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 18169aa228fdSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 18179aa228fdSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 18189aa228fdSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 18199aa228fdSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 18209aa228fdSmrg 18219aa228fdSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 18229aa228fdSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 18239aa228fdSmrg 18249aa228fdSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 18259aa228fdSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 18269aa228fdSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 18279aa228fdSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 18289aa228fdSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 18299aa228fdSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 18309aa228fdSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 18319aa228fdSmrg 18329aa228fdSmrg_ASUNAME 18339aa228fdSmrg 18349aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18359aa228fdSmrgfor as_dir in $PATH 18369aa228fdSmrgdo 18379aa228fdSmrg IFS=$as_save_IFS 1838e39ce84cSmrg case $as_dir in #((( 1839e39ce84cSmrg '') as_dir=./ ;; 1840e39ce84cSmrg */) ;; 1841e39ce84cSmrg *) as_dir=$as_dir/ ;; 1842e39ce84cSmrg esac 1843e39ce84cSmrg printf "%s\n" "PATH: $as_dir" 18448f65982aSmrg done 18459aa228fdSmrgIFS=$as_save_IFS 18469aa228fdSmrg 18479aa228fdSmrg} >&5 18489aa228fdSmrg 18499aa228fdSmrgcat >&5 <<_ACEOF 18509aa228fdSmrg 18519aa228fdSmrg 18529aa228fdSmrg## ----------- ## 18539aa228fdSmrg## Core tests. ## 18549aa228fdSmrg## ----------- ## 18559aa228fdSmrg 18569aa228fdSmrg_ACEOF 18579aa228fdSmrg 18589aa228fdSmrg 18599aa228fdSmrg# Keep a trace of the command line. 18609aa228fdSmrg# Strip out --no-create and --no-recursion so they do not pile up. 18619aa228fdSmrg# Strip out --silent because we don't want to record it for future runs. 18629aa228fdSmrg# Also quote any args containing shell meta-characters. 18639aa228fdSmrg# Make two passes to allow for proper duplicate-argument suppression. 18649aa228fdSmrgac_configure_args= 18659aa228fdSmrgac_configure_args0= 18669aa228fdSmrgac_configure_args1= 18679aa228fdSmrgac_must_keep_next=false 18689aa228fdSmrgfor ac_pass in 1 2 18699aa228fdSmrgdo 18709aa228fdSmrg for ac_arg 18719aa228fdSmrg do 18729aa228fdSmrg case $ac_arg in 18739aa228fdSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 18749aa228fdSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18759aa228fdSmrg | -silent | --silent | --silen | --sile | --sil) 18769aa228fdSmrg continue ;; 18779aa228fdSmrg *\'*) 1878e39ce84cSmrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18799aa228fdSmrg esac 18809aa228fdSmrg case $ac_pass in 18818f65982aSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 18829aa228fdSmrg 2) 18838f65982aSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 18849aa228fdSmrg if test $ac_must_keep_next = true; then 18859aa228fdSmrg ac_must_keep_next=false # Got value, back to normal. 18869aa228fdSmrg else 18879aa228fdSmrg case $ac_arg in 18889aa228fdSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 18899aa228fdSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 18909aa228fdSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 18919aa228fdSmrg | -with-* | --with-* | -without-* | --without-* | --x) 18929aa228fdSmrg case "$ac_configure_args0 " in 18939aa228fdSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 18949aa228fdSmrg esac 18959aa228fdSmrg ;; 18969aa228fdSmrg -* ) ac_must_keep_next=true ;; 18979aa228fdSmrg esac 18989aa228fdSmrg fi 18998f65982aSmrg as_fn_append ac_configure_args " '$ac_arg'" 19009aa228fdSmrg ;; 19019aa228fdSmrg esac 19029aa228fdSmrg done 19039aa228fdSmrgdone 19048f65982aSmrg{ ac_configure_args0=; unset ac_configure_args0;} 19058f65982aSmrg{ ac_configure_args1=; unset ac_configure_args1;} 19069aa228fdSmrg 19079aa228fdSmrg# When interrupted or exit'd, cleanup temporary files, and complete 19089aa228fdSmrg# config.log. We remove comments because anyway the quotes in there 19099aa228fdSmrg# would cause problems or look ugly. 19109aa228fdSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 19119aa228fdSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 19129aa228fdSmrgtrap 'exit_status=$? 1913e39ce84cSmrg # Sanitize IFS. 1914e39ce84cSmrg IFS=" "" $as_nl" 19159aa228fdSmrg # Save into config.log some information that might help in debugging. 19169aa228fdSmrg { 19179aa228fdSmrg echo 19189aa228fdSmrg 1919e39ce84cSmrg printf "%s\n" "## ---------------- ## 19209aa228fdSmrg## Cache variables. ## 19218f65982aSmrg## ---------------- ##" 19229aa228fdSmrg echo 19239aa228fdSmrg # The following way of writing the cache mishandles newlines in values, 19249aa228fdSmrg( 19259aa228fdSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 19269aa228fdSmrg eval ac_val=\$$ac_var 19279aa228fdSmrg case $ac_val in #( 19289aa228fdSmrg *${as_nl}*) 19299aa228fdSmrg case $ac_var in #( 1930e39ce84cSmrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1931e39ce84cSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19329aa228fdSmrg esac 19339aa228fdSmrg case $ac_var in #( 19349aa228fdSmrg _ | IFS | as_nl) ;; #( 19358f65982aSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19368f65982aSmrg *) { eval $ac_var=; unset $ac_var;} ;; 19379aa228fdSmrg esac ;; 19389aa228fdSmrg esac 19399aa228fdSmrg done 19409aa228fdSmrg (set) 2>&1 | 19419aa228fdSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 19429aa228fdSmrg *${as_nl}ac_space=\ *) 19439aa228fdSmrg sed -n \ 19449aa228fdSmrg "s/'\''/'\''\\\\'\'''\''/g; 19459aa228fdSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 19469aa228fdSmrg ;; #( 19479aa228fdSmrg *) 19489aa228fdSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19499aa228fdSmrg ;; 19509aa228fdSmrg esac | 19519aa228fdSmrg sort 19529aa228fdSmrg) 19539aa228fdSmrg echo 19549aa228fdSmrg 1955e39ce84cSmrg printf "%s\n" "## ----------------- ## 19569aa228fdSmrg## Output variables. ## 19578f65982aSmrg## ----------------- ##" 19589aa228fdSmrg echo 19599aa228fdSmrg for ac_var in $ac_subst_vars 19609aa228fdSmrg do 19619aa228fdSmrg eval ac_val=\$$ac_var 19629aa228fdSmrg case $ac_val in 1963e39ce84cSmrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19649aa228fdSmrg esac 1965e39ce84cSmrg printf "%s\n" "$ac_var='\''$ac_val'\''" 19669aa228fdSmrg done | sort 19679aa228fdSmrg echo 19689aa228fdSmrg 19699aa228fdSmrg if test -n "$ac_subst_files"; then 1970e39ce84cSmrg printf "%s\n" "## ------------------- ## 19719aa228fdSmrg## File substitutions. ## 19728f65982aSmrg## ------------------- ##" 19739aa228fdSmrg echo 19749aa228fdSmrg for ac_var in $ac_subst_files 19759aa228fdSmrg do 19769aa228fdSmrg eval ac_val=\$$ac_var 19779aa228fdSmrg case $ac_val in 1978e39ce84cSmrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19799aa228fdSmrg esac 1980e39ce84cSmrg printf "%s\n" "$ac_var='\''$ac_val'\''" 19819aa228fdSmrg done | sort 19829aa228fdSmrg echo 19839aa228fdSmrg fi 19849aa228fdSmrg 19859aa228fdSmrg if test -s confdefs.h; then 1986e39ce84cSmrg printf "%s\n" "## ----------- ## 19879aa228fdSmrg## confdefs.h. ## 19888f65982aSmrg## ----------- ##" 19899aa228fdSmrg echo 19909aa228fdSmrg cat confdefs.h 19919aa228fdSmrg echo 19929aa228fdSmrg fi 19939aa228fdSmrg test "$ac_signal" != 0 && 1994e39ce84cSmrg printf "%s\n" "$as_me: caught signal $ac_signal" 1995e39ce84cSmrg printf "%s\n" "$as_me: exit $exit_status" 19969aa228fdSmrg } >&5 19979aa228fdSmrg rm -f core *.core core.conftest.* && 19989aa228fdSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 19999aa228fdSmrg exit $exit_status 20009aa228fdSmrg' 0 20019aa228fdSmrgfor ac_signal in 1 2 13 15; do 20028f65982aSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 20039aa228fdSmrgdone 20049aa228fdSmrgac_signal=0 20059aa228fdSmrg 20069aa228fdSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 20079aa228fdSmrgrm -f -r conftest* confdefs.h 20089aa228fdSmrg 2009e39ce84cSmrgprintf "%s\n" "/* confdefs.h */" > confdefs.h 20108f65982aSmrg 20119aa228fdSmrg# Predefined preprocessor variables. 20129aa228fdSmrg 2013e39ce84cSmrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 20149aa228fdSmrg 2015e39ce84cSmrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 20169aa228fdSmrg 2017e39ce84cSmrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 20189aa228fdSmrg 2019e39ce84cSmrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 20209aa228fdSmrg 2021e39ce84cSmrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 20229aa228fdSmrg 2023e39ce84cSmrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 20248f65982aSmrg 20259aa228fdSmrg 20269aa228fdSmrg# Let the site file select an alternate cache file if it wants to. 20278f65982aSmrg# Prefer an explicitly selected file to automatically selected ones. 20289aa228fdSmrgif test -n "$CONFIG_SITE"; then 2029e39ce84cSmrg ac_site_files="$CONFIG_SITE" 20309aa228fdSmrgelif test "x$prefix" != xNONE; then 2031e39ce84cSmrg ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 20329aa228fdSmrgelse 2033e39ce84cSmrg ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 20349aa228fdSmrgfi 2035e39ce84cSmrg 2036e39ce84cSmrgfor ac_site_file in $ac_site_files 20379aa228fdSmrgdo 2038e39ce84cSmrg case $ac_site_file in #( 2039e39ce84cSmrg */*) : 2040e39ce84cSmrg ;; #( 2041e39ce84cSmrg *) : 2042e39ce84cSmrg ac_site_file=./$ac_site_file ;; 2043e39ce84cSmrgesac 2044e39ce84cSmrg if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2045e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2046e39ce84cSmrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 20479aa228fdSmrg sed 's/^/| /' "$ac_site_file" >&5 20488f65982aSmrg . "$ac_site_file" \ 204946374b8dSmrg || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 205046374b8dSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20518f65982aSmrgas_fn_error $? "failed to load site script $ac_site_file 205246374b8dSmrgSee 'config.log' for more details" "$LINENO" 5; } 20539aa228fdSmrg fi 20549aa228fdSmrgdone 20559aa228fdSmrg 20569aa228fdSmrgif test -r "$cache_file"; then 20578f65982aSmrg # Some versions of bash will fail to source /dev/null (special files 20588f65982aSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 20598f65982aSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2060e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2061e39ce84cSmrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;} 20629aa228fdSmrg case $cache_file in 20639aa228fdSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 20649aa228fdSmrg *) . "./$cache_file";; 20659aa228fdSmrg esac 20669aa228fdSmrg fi 20679aa228fdSmrgelse 2068e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2069e39ce84cSmrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;} 20709aa228fdSmrg >$cache_file 20719aa228fdSmrgfi 20729aa228fdSmrg 2073e39ce84cSmrg# Test code for whether the C compiler supports C89 (global declarations) 2074e39ce84cSmrgac_c_conftest_c89_globals=' 2075e39ce84cSmrg/* Does the compiler advertise C89 conformance? 2076e39ce84cSmrg Do not test the value of __STDC__, because some compilers set it to 0 2077e39ce84cSmrg while being otherwise adequately conformant. */ 2078e39ce84cSmrg#if !defined __STDC__ 2079e39ce84cSmrg# error "Compiler does not advertise C89 conformance" 2080e39ce84cSmrg#endif 20819aa228fdSmrg 2082e39ce84cSmrg#include <stddef.h> 2083e39ce84cSmrg#include <stdarg.h> 2084e39ce84cSmrgstruct stat; 2085e39ce84cSmrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2086e39ce84cSmrgstruct buf { int x; }; 2087e39ce84cSmrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int); 208846374b8dSmrgstatic char *e (char **p, int i) 2089e39ce84cSmrg{ 2090e39ce84cSmrg return p[i]; 2091e39ce84cSmrg} 2092e39ce84cSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 2093e39ce84cSmrg{ 2094e39ce84cSmrg char *s; 2095e39ce84cSmrg va_list v; 2096e39ce84cSmrg va_start (v,p); 2097e39ce84cSmrg s = g (p, va_arg (v,int)); 2098e39ce84cSmrg va_end (v); 2099e39ce84cSmrg return s; 2100e39ce84cSmrg} 21010c7e83b2Smrg 210246374b8dSmrg/* C89 style stringification. */ 210346374b8dSmrg#define noexpand_stringify(a) #a 210446374b8dSmrgconst char *stringified = noexpand_stringify(arbitrary+token=sequence); 210546374b8dSmrg 210646374b8dSmrg/* C89 style token pasting. Exercises some of the corner cases that 210746374b8dSmrg e.g. old MSVC gets wrong, but not very hard. */ 210846374b8dSmrg#define noexpand_concat(a,b) a##b 210946374b8dSmrg#define expand_concat(a,b) noexpand_concat(a,b) 211046374b8dSmrgextern int vA; 211146374b8dSmrgextern int vbee; 211246374b8dSmrg#define aye A 211346374b8dSmrg#define bee B 211446374b8dSmrgint *pvA = &expand_concat(v,aye); 211546374b8dSmrgint *pvbee = &noexpand_concat(v,bee); 211646374b8dSmrg 2117e39ce84cSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2118e39ce84cSmrg function prototypes and stuff, but not \xHH hex character constants. 2119e39ce84cSmrg These do not provoke an error unfortunately, instead are silently treated 2120e39ce84cSmrg as an "x". The following induces an error, until -std is added to get 2121e39ce84cSmrg proper ANSI mode. Curiously \x00 != x always comes out true, for an 2122e39ce84cSmrg array size at least. It is necessary to write \x00 == 0 to get something 2123e39ce84cSmrg that is true only with -std. */ 2124e39ce84cSmrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 21250c7e83b2Smrg 2126e39ce84cSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2127e39ce84cSmrg inside strings and character constants. */ 2128e39ce84cSmrg#define FOO(x) '\''x'\'' 2129e39ce84cSmrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 21300c7e83b2Smrg 2131e39ce84cSmrgint test (int i, double x); 2132e39ce84cSmrgstruct s1 {int (*f) (int a);}; 2133e39ce84cSmrgstruct s2 {int (*f) (double a);}; 2134e39ce84cSmrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2135e39ce84cSmrg int, int);' 21369aa228fdSmrg 2137e39ce84cSmrg# Test code for whether the C compiler supports C89 (body of main). 2138e39ce84cSmrgac_c_conftest_c89_main=' 2139e39ce84cSmrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2140e39ce84cSmrg' 21419aa228fdSmrg 2142e39ce84cSmrg# Test code for whether the C compiler supports C99 (global declarations) 2143e39ce84cSmrgac_c_conftest_c99_globals=' 214446374b8dSmrg/* Does the compiler advertise C99 conformance? */ 2145e39ce84cSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2146e39ce84cSmrg# error "Compiler does not advertise C99 conformance" 2147e39ce84cSmrg#endif 21489aa228fdSmrg 214946374b8dSmrg// See if C++-style comments work. 215046374b8dSmrg 2151e39ce84cSmrg#include <stdbool.h> 2152e39ce84cSmrgextern int puts (const char *); 2153e39ce84cSmrgextern int printf (const char *, ...); 2154e39ce84cSmrgextern int dprintf (int, const char *, ...); 2155e39ce84cSmrgextern void *malloc (size_t); 215646374b8dSmrgextern void free (void *); 21579aa228fdSmrg 2158e39ce84cSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 2159e39ce84cSmrg// dprintf is used instead of fprintf to avoid needing to declare 2160e39ce84cSmrg// FILE and stderr. 2161e39ce84cSmrg#define debug(...) dprintf (2, __VA_ARGS__) 2162e39ce84cSmrg#define showlist(...) puts (#__VA_ARGS__) 2163e39ce84cSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2164e39ce84cSmrgstatic void 2165e39ce84cSmrgtest_varargs_macros (void) 2166e39ce84cSmrg{ 2167e39ce84cSmrg int x = 1234; 2168e39ce84cSmrg int y = 5678; 2169e39ce84cSmrg debug ("Flag"); 2170e39ce84cSmrg debug ("X = %d\n", x); 2171e39ce84cSmrg showlist (The first, second, and third items.); 2172e39ce84cSmrg report (x>y, "x is %d but y is %d", x, y); 2173e39ce84cSmrg} 2174e39ce84cSmrg 2175e39ce84cSmrg// Check long long types. 2176e39ce84cSmrg#define BIG64 18446744073709551615ull 2177e39ce84cSmrg#define BIG32 4294967295ul 2178e39ce84cSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2179e39ce84cSmrg#if !BIG_OK 2180e39ce84cSmrg #error "your preprocessor is broken" 2181e39ce84cSmrg#endif 2182e39ce84cSmrg#if BIG_OK 2183e39ce84cSmrg#else 2184e39ce84cSmrg #error "your preprocessor is broken" 2185e39ce84cSmrg#endif 2186e39ce84cSmrgstatic long long int bignum = -9223372036854775807LL; 2187e39ce84cSmrgstatic unsigned long long int ubignum = BIG64; 2188e39ce84cSmrg 2189e39ce84cSmrgstruct incomplete_array 2190e39ce84cSmrg{ 2191e39ce84cSmrg int datasize; 2192e39ce84cSmrg double data[]; 2193e39ce84cSmrg}; 2194e39ce84cSmrg 2195e39ce84cSmrgstruct named_init { 2196e39ce84cSmrg int number; 2197e39ce84cSmrg const wchar_t *name; 2198e39ce84cSmrg double average; 2199e39ce84cSmrg}; 2200e39ce84cSmrg 2201e39ce84cSmrgtypedef const char *ccp; 2202e39ce84cSmrg 2203e39ce84cSmrgstatic inline int 2204e39ce84cSmrgtest_restrict (ccp restrict text) 2205e39ce84cSmrg{ 2206e39ce84cSmrg // Iterate through items via the restricted pointer. 2207e39ce84cSmrg // Also check for declarations in for loops. 2208e39ce84cSmrg for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2209e39ce84cSmrg continue; 2210e39ce84cSmrg return 0; 2211e39ce84cSmrg} 2212e39ce84cSmrg 2213e39ce84cSmrg// Check varargs and va_copy. 2214e39ce84cSmrgstatic bool 2215e39ce84cSmrgtest_varargs (const char *format, ...) 2216e39ce84cSmrg{ 2217e39ce84cSmrg va_list args; 2218e39ce84cSmrg va_start (args, format); 2219e39ce84cSmrg va_list args_copy; 2220e39ce84cSmrg va_copy (args_copy, args); 2221e39ce84cSmrg 2222e39ce84cSmrg const char *str = ""; 2223e39ce84cSmrg int number = 0; 2224e39ce84cSmrg float fnumber = 0; 2225e39ce84cSmrg 2226e39ce84cSmrg while (*format) 2227e39ce84cSmrg { 2228e39ce84cSmrg switch (*format++) 2229e39ce84cSmrg { 2230e39ce84cSmrg case '\''s'\'': // string 2231e39ce84cSmrg str = va_arg (args_copy, const char *); 2232e39ce84cSmrg break; 2233e39ce84cSmrg case '\''d'\'': // int 2234e39ce84cSmrg number = va_arg (args_copy, int); 2235e39ce84cSmrg break; 2236e39ce84cSmrg case '\''f'\'': // float 2237e39ce84cSmrg fnumber = va_arg (args_copy, double); 2238e39ce84cSmrg break; 2239e39ce84cSmrg default: 2240e39ce84cSmrg break; 2241e39ce84cSmrg } 2242e39ce84cSmrg } 2243e39ce84cSmrg va_end (args_copy); 2244e39ce84cSmrg va_end (args); 2245e39ce84cSmrg 2246e39ce84cSmrg return *str && number && fnumber; 2247e39ce84cSmrg} 2248e39ce84cSmrg' 2249e39ce84cSmrg 2250e39ce84cSmrg# Test code for whether the C compiler supports C99 (body of main). 2251e39ce84cSmrgac_c_conftest_c99_main=' 2252e39ce84cSmrg // Check bool. 2253e39ce84cSmrg _Bool success = false; 2254e39ce84cSmrg success |= (argc != 0); 2255e39ce84cSmrg 2256e39ce84cSmrg // Check restrict. 2257e39ce84cSmrg if (test_restrict ("String literal") == 0) 2258e39ce84cSmrg success = true; 2259e39ce84cSmrg char *restrict newvar = "Another string"; 2260e39ce84cSmrg 2261e39ce84cSmrg // Check varargs. 2262e39ce84cSmrg success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2263e39ce84cSmrg test_varargs_macros (); 2264e39ce84cSmrg 2265e39ce84cSmrg // Check flexible array members. 2266e39ce84cSmrg struct incomplete_array *ia = 2267e39ce84cSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2268e39ce84cSmrg ia->datasize = 10; 2269e39ce84cSmrg for (int i = 0; i < ia->datasize; ++i) 2270e39ce84cSmrg ia->data[i] = i * 1.234; 227146374b8dSmrg // Work around memory leak warnings. 227246374b8dSmrg free (ia); 2273e39ce84cSmrg 2274e39ce84cSmrg // Check named initializers. 2275e39ce84cSmrg struct named_init ni = { 2276e39ce84cSmrg .number = 34, 2277e39ce84cSmrg .name = L"Test wide string", 2278e39ce84cSmrg .average = 543.34343, 2279e39ce84cSmrg }; 2280e39ce84cSmrg 2281e39ce84cSmrg ni.number = 58; 2282e39ce84cSmrg 2283e39ce84cSmrg int dynamic_array[ni.number]; 2284e39ce84cSmrg dynamic_array[0] = argv[0][0]; 2285e39ce84cSmrg dynamic_array[ni.number - 1] = 543; 2286e39ce84cSmrg 2287e39ce84cSmrg // work around unused variable warnings 2288e39ce84cSmrg ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2289e39ce84cSmrg || dynamic_array[ni.number - 1] != 543); 2290e39ce84cSmrg' 2291e39ce84cSmrg 2292e39ce84cSmrg# Test code for whether the C compiler supports C11 (global declarations) 2293e39ce84cSmrgac_c_conftest_c11_globals=' 229446374b8dSmrg/* Does the compiler advertise C11 conformance? */ 2295e39ce84cSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2296e39ce84cSmrg# error "Compiler does not advertise C11 conformance" 2297e39ce84cSmrg#endif 2298e39ce84cSmrg 2299e39ce84cSmrg// Check _Alignas. 2300e39ce84cSmrgchar _Alignas (double) aligned_as_double; 2301e39ce84cSmrgchar _Alignas (0) no_special_alignment; 2302e39ce84cSmrgextern char aligned_as_int; 2303e39ce84cSmrgchar _Alignas (0) _Alignas (int) aligned_as_int; 2304e39ce84cSmrg 2305e39ce84cSmrg// Check _Alignof. 2306e39ce84cSmrgenum 2307e39ce84cSmrg{ 2308e39ce84cSmrg int_alignment = _Alignof (int), 2309e39ce84cSmrg int_array_alignment = _Alignof (int[100]), 2310e39ce84cSmrg char_alignment = _Alignof (char) 2311e39ce84cSmrg}; 2312e39ce84cSmrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2313e39ce84cSmrg 2314e39ce84cSmrg// Check _Noreturn. 2315e39ce84cSmrgint _Noreturn does_not_return (void) { for (;;) continue; } 2316e39ce84cSmrg 2317e39ce84cSmrg// Check _Static_assert. 2318e39ce84cSmrgstruct test_static_assert 2319e39ce84cSmrg{ 2320e39ce84cSmrg int x; 2321e39ce84cSmrg _Static_assert (sizeof (int) <= sizeof (long int), 2322e39ce84cSmrg "_Static_assert does not work in struct"); 2323e39ce84cSmrg long int y; 2324e39ce84cSmrg}; 2325e39ce84cSmrg 2326e39ce84cSmrg// Check UTF-8 literals. 2327e39ce84cSmrg#define u8 syntax error! 2328e39ce84cSmrgchar const utf8_literal[] = u8"happens to be ASCII" "another string"; 2329e39ce84cSmrg 2330e39ce84cSmrg// Check duplicate typedefs. 2331e39ce84cSmrgtypedef long *long_ptr; 2332e39ce84cSmrgtypedef long int *long_ptr; 2333e39ce84cSmrgtypedef long_ptr long_ptr; 2334e39ce84cSmrg 2335e39ce84cSmrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2336e39ce84cSmrgstruct anonymous 2337e39ce84cSmrg{ 2338e39ce84cSmrg union { 2339e39ce84cSmrg struct { int i; int j; }; 2340e39ce84cSmrg struct { int k; long int l; } w; 2341e39ce84cSmrg }; 2342e39ce84cSmrg int m; 2343e39ce84cSmrg} v1; 2344e39ce84cSmrg' 2345e39ce84cSmrg 2346e39ce84cSmrg# Test code for whether the C compiler supports C11 (body of main). 2347e39ce84cSmrgac_c_conftest_c11_main=' 2348e39ce84cSmrg _Static_assert ((offsetof (struct anonymous, i) 2349e39ce84cSmrg == offsetof (struct anonymous, w.k)), 2350e39ce84cSmrg "Anonymous union alignment botch"); 2351e39ce84cSmrg v1.i = 2; 2352e39ce84cSmrg v1.w.k = 5; 2353e39ce84cSmrg ok |= v1.i != 5; 2354e39ce84cSmrg' 2355e39ce84cSmrg 2356e39ce84cSmrg# Test code for whether the C compiler supports C11 (complete). 2357e39ce84cSmrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2358e39ce84cSmrg${ac_c_conftest_c99_globals} 2359e39ce84cSmrg${ac_c_conftest_c11_globals} 2360e39ce84cSmrg 2361e39ce84cSmrgint 2362e39ce84cSmrgmain (int argc, char **argv) 2363e39ce84cSmrg{ 2364e39ce84cSmrg int ok = 0; 2365e39ce84cSmrg ${ac_c_conftest_c89_main} 2366e39ce84cSmrg ${ac_c_conftest_c99_main} 2367e39ce84cSmrg ${ac_c_conftest_c11_main} 2368e39ce84cSmrg return ok; 2369e39ce84cSmrg} 2370e39ce84cSmrg" 2371e39ce84cSmrg 2372e39ce84cSmrg# Test code for whether the C compiler supports C99 (complete). 2373e39ce84cSmrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2374e39ce84cSmrg${ac_c_conftest_c99_globals} 2375e39ce84cSmrg 2376e39ce84cSmrgint 2377e39ce84cSmrgmain (int argc, char **argv) 2378e39ce84cSmrg{ 2379e39ce84cSmrg int ok = 0; 2380e39ce84cSmrg ${ac_c_conftest_c89_main} 2381e39ce84cSmrg ${ac_c_conftest_c99_main} 2382e39ce84cSmrg return ok; 2383e39ce84cSmrg} 2384e39ce84cSmrg" 2385e39ce84cSmrg 2386e39ce84cSmrg# Test code for whether the C compiler supports C89 (complete). 2387e39ce84cSmrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2388e39ce84cSmrg 2389e39ce84cSmrgint 2390e39ce84cSmrgmain (int argc, char **argv) 2391e39ce84cSmrg{ 2392e39ce84cSmrg int ok = 0; 2393e39ce84cSmrg ${ac_c_conftest_c89_main} 2394e39ce84cSmrg return ok; 2395e39ce84cSmrg} 2396e39ce84cSmrg" 2397e39ce84cSmrg 2398e39ce84cSmrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2399e39ce84cSmrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2400e39ce84cSmrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2401e39ce84cSmrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2402e39ce84cSmrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2403e39ce84cSmrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2404e39ce84cSmrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2405e39ce84cSmrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2406e39ce84cSmrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2407e39ce84cSmrg 2408e39ce84cSmrg# Auxiliary files required by this configure script. 2409e39ce84cSmrgac_aux_files="config.guess config.sub compile missing install-sh" 2410e39ce84cSmrg 2411e39ce84cSmrg# Locations in which to look for auxiliary files. 2412e39ce84cSmrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2413e39ce84cSmrg 2414e39ce84cSmrg# Search for a directory containing all of the required auxiliary files, 2415e39ce84cSmrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2416e39ce84cSmrg# If we don't find one directory that contains all the files we need, 2417e39ce84cSmrg# we report the set of missing files from the *first* directory in 2418e39ce84cSmrg# $ac_aux_dir_candidates and give up. 2419e39ce84cSmrgac_missing_aux_files="" 2420e39ce84cSmrgac_first_candidate=: 2421e39ce84cSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2422e39ce84cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2423e39ce84cSmrgas_found=false 2424e39ce84cSmrgfor as_dir in $ac_aux_dir_candidates 2425e39ce84cSmrgdo 2426e39ce84cSmrg IFS=$as_save_IFS 2427e39ce84cSmrg case $as_dir in #((( 2428e39ce84cSmrg '') as_dir=./ ;; 2429e39ce84cSmrg */) ;; 2430e39ce84cSmrg *) as_dir=$as_dir/ ;; 2431e39ce84cSmrg esac 2432e39ce84cSmrg as_found=: 2433e39ce84cSmrg 2434e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2435e39ce84cSmrg ac_aux_dir_found=yes 2436e39ce84cSmrg ac_install_sh= 2437e39ce84cSmrg for ac_aux in $ac_aux_files 2438e39ce84cSmrg do 2439e39ce84cSmrg # As a special case, if "install-sh" is required, that requirement 2440e39ce84cSmrg # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2441e39ce84cSmrg # and $ac_install_sh is set appropriately for whichever one is found. 2442e39ce84cSmrg if test x"$ac_aux" = x"install-sh" 2443e39ce84cSmrg then 2444e39ce84cSmrg if test -f "${as_dir}install-sh"; then 2445e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2446e39ce84cSmrg ac_install_sh="${as_dir}install-sh -c" 2447e39ce84cSmrg elif test -f "${as_dir}install.sh"; then 2448e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2449e39ce84cSmrg ac_install_sh="${as_dir}install.sh -c" 2450e39ce84cSmrg elif test -f "${as_dir}shtool"; then 2451e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2452e39ce84cSmrg ac_install_sh="${as_dir}shtool install -c" 2453e39ce84cSmrg else 2454e39ce84cSmrg ac_aux_dir_found=no 2455e39ce84cSmrg if $ac_first_candidate; then 2456e39ce84cSmrg ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2457e39ce84cSmrg else 2458e39ce84cSmrg break 2459e39ce84cSmrg fi 2460e39ce84cSmrg fi 2461e39ce84cSmrg else 2462e39ce84cSmrg if test -f "${as_dir}${ac_aux}"; then 2463e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2464e39ce84cSmrg else 2465e39ce84cSmrg ac_aux_dir_found=no 2466e39ce84cSmrg if $ac_first_candidate; then 2467e39ce84cSmrg ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2468e39ce84cSmrg else 2469e39ce84cSmrg break 2470e39ce84cSmrg fi 2471e39ce84cSmrg fi 2472e39ce84cSmrg fi 2473e39ce84cSmrg done 2474e39ce84cSmrg if test "$ac_aux_dir_found" = yes; then 2475e39ce84cSmrg ac_aux_dir="$as_dir" 2476e39ce84cSmrg break 2477e39ce84cSmrg fi 2478e39ce84cSmrg ac_first_candidate=false 2479e39ce84cSmrg 2480e39ce84cSmrg as_found=false 2481e39ce84cSmrgdone 2482e39ce84cSmrgIFS=$as_save_IFS 2483e39ce84cSmrgif $as_found 2484e39ce84cSmrgthen : 2485e39ce84cSmrg 248646374b8dSmrgelse case e in #( 248746374b8dSmrg e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 248846374b8dSmrgesac 2489e39ce84cSmrgfi 2490e39ce84cSmrg 2491e39ce84cSmrg 2492e39ce84cSmrg# These three variables are undocumented and unsupported, 2493e39ce84cSmrg# and are intended to be withdrawn in a future Autoconf release. 2494e39ce84cSmrg# They can cause serious problems if a builder's source tree is in a directory 2495e39ce84cSmrg# whose full name contains unusual characters. 2496e39ce84cSmrgif test -f "${ac_aux_dir}config.guess"; then 2497e39ce84cSmrg ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2498e39ce84cSmrgfi 2499e39ce84cSmrgif test -f "${ac_aux_dir}config.sub"; then 2500e39ce84cSmrg ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2501e39ce84cSmrgfi 2502e39ce84cSmrgif test -f "$ac_aux_dir/configure"; then 2503e39ce84cSmrg ac_configure="$SHELL ${ac_aux_dir}configure" 2504e39ce84cSmrgfi 2505e39ce84cSmrg 2506e39ce84cSmrg# Check that the precious variables saved in the cache have kept the same 2507e39ce84cSmrg# value. 2508e39ce84cSmrgac_cache_corrupted=false 2509e39ce84cSmrgfor ac_var in $ac_precious_vars; do 2510e39ce84cSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2511e39ce84cSmrg eval ac_new_set=\$ac_env_${ac_var}_set 2512e39ce84cSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2513e39ce84cSmrg eval ac_new_val=\$ac_env_${ac_var}_value 2514e39ce84cSmrg case $ac_old_set,$ac_new_set in 2515e39ce84cSmrg set,) 251646374b8dSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 251746374b8dSmrgprintf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2518e39ce84cSmrg ac_cache_corrupted=: ;; 2519e39ce84cSmrg ,set) 252046374b8dSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 252146374b8dSmrgprintf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2522e39ce84cSmrg ac_cache_corrupted=: ;; 2523e39ce84cSmrg ,);; 2524e39ce84cSmrg *) 2525e39ce84cSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 2526e39ce84cSmrg # differences in whitespace do not lead to failure. 2527e39ce84cSmrg ac_old_val_w=`echo x $ac_old_val` 2528e39ce84cSmrg ac_new_val_w=`echo x $ac_new_val` 2529e39ce84cSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 253046374b8dSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 253146374b8dSmrgprintf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2532e39ce84cSmrg ac_cache_corrupted=: 2533e39ce84cSmrg else 253446374b8dSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 253546374b8dSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2536e39ce84cSmrg eval $ac_var=\$ac_old_val 2537e39ce84cSmrg fi 253846374b8dSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 253946374b8dSmrgprintf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 254046374b8dSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 254146374b8dSmrgprintf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2542e39ce84cSmrg fi;; 2543e39ce84cSmrg esac 2544e39ce84cSmrg # Pass precious variables to config.status. 2545e39ce84cSmrg if test "$ac_new_set" = set; then 2546e39ce84cSmrg case $ac_new_val in 2547e39ce84cSmrg *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2548e39ce84cSmrg *) ac_arg=$ac_var=$ac_new_val ;; 2549e39ce84cSmrg esac 2550e39ce84cSmrg case " $ac_configure_args " in 2551e39ce84cSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2552e39ce84cSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2553e39ce84cSmrg esac 2554e39ce84cSmrg fi 2555e39ce84cSmrgdone 2556e39ce84cSmrgif $ac_cache_corrupted; then 255746374b8dSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 255846374b8dSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2559e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2560e39ce84cSmrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 256146374b8dSmrg as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2562e39ce84cSmrg and start over" "$LINENO" 5 2563e39ce84cSmrgfi 2564e39ce84cSmrg## -------------------- ## 2565e39ce84cSmrg## Main body of script. ## 2566e39ce84cSmrg## -------------------- ## 2567e39ce84cSmrg 2568e39ce84cSmrgac_ext=c 2569e39ce84cSmrgac_cpp='$CPP $CPPFLAGS' 2570e39ce84cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2571e39ce84cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2572e39ce84cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2573e39ce84cSmrg 2574e39ce84cSmrg 2575e39ce84cSmrg 2576e39ce84cSmrgac_config_headers="$ac_config_headers config.h" 2577e39ce84cSmrg 2578e39ce84cSmrg 2579e39ce84cSmrg# Initialize Automake 258046374b8dSmrgam__api_version='1.17' 2581e39ce84cSmrg 2582e39ce84cSmrg 2583e39ce84cSmrg 2584e39ce84cSmrg # Find a good install program. We prefer a C program (faster), 2585e39ce84cSmrg# so one script is as good as another. But avoid the broken or 25869aa228fdSmrg# incompatible versions: 25879aa228fdSmrg# SysV /etc/install, /usr/sbin/install 25889aa228fdSmrg# SunOS /usr/etc/install 25899aa228fdSmrg# IRIX /sbin/install 25909aa228fdSmrg# AIX /bin/install 25919aa228fdSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 25929aa228fdSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 25939aa228fdSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 25949aa228fdSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 25959aa228fdSmrg# OS/2's system install, which has a completely different semantic 25969aa228fdSmrg# ./install, which can be erroneously created by make from ./install.sh. 25978f65982aSmrg# Reject install programs that cannot install multiple files. 2598e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2599e39ce84cSmrgprintf %s "checking for a BSD-compatible install... " >&6; } 26009aa228fdSmrgif test -z "$INSTALL"; then 2601e39ce84cSmrgif test ${ac_cv_path_install+y} 2602e39ce84cSmrgthen : 2603e39ce84cSmrg printf %s "(cached) " >&6 260446374b8dSmrgelse case e in #( 260546374b8dSmrg e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26069aa228fdSmrgfor as_dir in $PATH 26079aa228fdSmrgdo 26089aa228fdSmrg IFS=$as_save_IFS 2609e39ce84cSmrg case $as_dir in #((( 2610e39ce84cSmrg '') as_dir=./ ;; 2611e39ce84cSmrg */) ;; 2612e39ce84cSmrg *) as_dir=$as_dir/ ;; 2613e39ce84cSmrg esac 2614e39ce84cSmrg # Account for fact that we put trailing slashes in our PATH walk. 2615e39ce84cSmrgcase $as_dir in #(( 2616e39ce84cSmrg ./ | /[cC]/* | \ 26179aa228fdSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 26188f65982aSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 26199aa228fdSmrg /usr/ucb/* ) ;; 26209aa228fdSmrg *) 26219aa228fdSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 26229aa228fdSmrg # Don't use installbsd from OSF since it installs stuff as root 26239aa228fdSmrg # by default. 26249aa228fdSmrg for ac_prog in ginstall scoinst install; do 26259aa228fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2626e39ce84cSmrg if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 26279aa228fdSmrg if test $ac_prog = install && 2628e39ce84cSmrg grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 26299aa228fdSmrg # AIX install. It has an incompatible calling convention. 26309aa228fdSmrg : 26319aa228fdSmrg elif test $ac_prog = install && 2632e39ce84cSmrg grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 26339aa228fdSmrg # program-specific install script used by HP pwplus--don't use. 26349aa228fdSmrg : 26359aa228fdSmrg else 26368f65982aSmrg rm -rf conftest.one conftest.two conftest.dir 26378f65982aSmrg echo one > conftest.one 26388f65982aSmrg echo two > conftest.two 26398f65982aSmrg mkdir conftest.dir 2640e39ce84cSmrg if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 26418f65982aSmrg test -s conftest.one && test -s conftest.two && 26428f65982aSmrg test -s conftest.dir/conftest.one && 26438f65982aSmrg test -s conftest.dir/conftest.two 26448f65982aSmrg then 2645e39ce84cSmrg ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 26468f65982aSmrg break 3 26478f65982aSmrg fi 26489aa228fdSmrg fi 26499aa228fdSmrg fi 26509aa228fdSmrg done 26519aa228fdSmrg done 26529aa228fdSmrg ;; 26539aa228fdSmrgesac 26548f65982aSmrg 26558f65982aSmrg done 26568f65982aSmrgIFS=$as_save_IFS 26578f65982aSmrg 26588f65982aSmrgrm -rf conftest.one conftest.two conftest.dir 265946374b8dSmrg ;; 266046374b8dSmrgesac 26618f65982aSmrgfi 2662e39ce84cSmrg if test ${ac_cv_path_install+y}; then 26638f65982aSmrg INSTALL=$ac_cv_path_install 26648f65982aSmrg else 26658f65982aSmrg # As a last resort, use the slow shell script. Don't cache a 26668f65982aSmrg # value for INSTALL within a source directory, because that will 26678f65982aSmrg # break other packages using the cache if that directory is 26688f65982aSmrg # removed, or if the value is a relative name. 26698f65982aSmrg INSTALL=$ac_install_sh 26708f65982aSmrg fi 26718f65982aSmrgfi 2672e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2673e39ce84cSmrgprintf "%s\n" "$INSTALL" >&6; } 26748f65982aSmrg 26758f65982aSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 26768f65982aSmrg# It thinks the first close brace ends the variable substitution. 26778f65982aSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 26788f65982aSmrg 26798f65982aSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 26808f65982aSmrg 26818f65982aSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 26828f65982aSmrg 268346374b8dSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 268446374b8dSmrgprintf %s "checking whether sleep supports fractional seconds... " >&6; } 268546374b8dSmrgif test ${am_cv_sleep_fractional_seconds+y} 268646374b8dSmrgthen : 268746374b8dSmrg printf %s "(cached) " >&6 268846374b8dSmrgelse case e in #( 268946374b8dSmrg e) if sleep 0.001 2>/dev/null 269046374b8dSmrgthen : 269146374b8dSmrg am_cv_sleep_fractional_seconds=yes 269246374b8dSmrgelse case e in #( 269346374b8dSmrg e) am_cv_sleep_fractional_seconds=no ;; 269446374b8dSmrgesac 269546374b8dSmrgfi 269646374b8dSmrg ;; 269746374b8dSmrgesac 269846374b8dSmrgfi 269946374b8dSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 270046374b8dSmrgprintf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 270146374b8dSmrg 270246374b8dSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 270346374b8dSmrgprintf %s "checking filesystem timestamp resolution... " >&6; } 270446374b8dSmrgif test ${am_cv_filesystem_timestamp_resolution+y} 270546374b8dSmrgthen : 270646374b8dSmrg printf %s "(cached) " >&6 270746374b8dSmrgelse case e in #( 270846374b8dSmrg e) # Default to the worst case. 270946374b8dSmrgam_cv_filesystem_timestamp_resolution=2 271046374b8dSmrg 271146374b8dSmrg# Only try to go finer than 1 sec if sleep can do it. 271246374b8dSmrg# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 271346374b8dSmrg# - 1 sec is not much of a win compared to 2 sec, and 271446374b8dSmrg# - it takes 2 seconds to perform the test whether 1 sec works. 271546374b8dSmrg# 271646374b8dSmrg# Instead, just use the default 2s on platforms that have 1s resolution, 271746374b8dSmrg# accept the extra 1s delay when using $sleep in the Automake tests, in 271846374b8dSmrg# exchange for not incurring the 2s delay for running the test for all 271946374b8dSmrg# packages. 272046374b8dSmrg# 272146374b8dSmrgam_try_resolutions= 272246374b8dSmrgif test "$am_cv_sleep_fractional_seconds" = yes; then 272346374b8dSmrg # Even a millisecond often causes a bunch of false positives, 272446374b8dSmrg # so just try a hundredth of a second. The time saved between .001 and 272546374b8dSmrg # .01 is not terribly consequential. 272646374b8dSmrg am_try_resolutions="0.01 0.1 $am_try_resolutions" 272746374b8dSmrgfi 272846374b8dSmrg 272946374b8dSmrg# In order to catch current-generation FAT out, we must *modify* files 273046374b8dSmrg# that already exist; the *creation* timestamp is finer. Use names 273146374b8dSmrg# that make ls -t sort them differently when they have equal 273246374b8dSmrg# timestamps than when they have distinct timestamps, keeping 273346374b8dSmrg# in mind that ls -t prints the *newest* file first. 273446374b8dSmrgrm -f conftest.ts? 273546374b8dSmrg: > conftest.ts1 273646374b8dSmrg: > conftest.ts2 273746374b8dSmrg: > conftest.ts3 273846374b8dSmrg 273946374b8dSmrg# Make sure ls -t actually works. Do 'set' in a subshell so we don't 274046374b8dSmrg# clobber the current shell's arguments. (Outer-level square brackets 274146374b8dSmrg# are removed by m4; they're present so that m4 does not expand 274246374b8dSmrg# <dollar><star>; be careful, easy to get confused.) 274346374b8dSmrgif ( 274446374b8dSmrg set X `ls -t conftest.ts[12]` && 274546374b8dSmrg { 274646374b8dSmrg test "$*" != "X conftest.ts1 conftest.ts2" || 274746374b8dSmrg test "$*" != "X conftest.ts2 conftest.ts1"; 274846374b8dSmrg } 274946374b8dSmrg); then :; else 275046374b8dSmrg # If neither matched, then we have a broken ls. This can happen 275146374b8dSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 275246374b8dSmrg # broken ls alias from the environment. This has actually 275346374b8dSmrg # happened. Such a system could not be considered "sane". 275446374b8dSmrg printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 275546374b8dSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 275646374b8dSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 275746374b8dSmrgas_fn_error $? "ls -t produces unexpected output. 275846374b8dSmrgMake sure there is not a broken ls alias in your environment. 275946374b8dSmrgSee 'config.log' for more details" "$LINENO" 5; } 276046374b8dSmrgfi 276146374b8dSmrg 276246374b8dSmrgfor am_try_res in $am_try_resolutions; do 276346374b8dSmrg # Any one fine-grained sleep might happen to cross the boundary 276446374b8dSmrg # between two values of a coarser actual resolution, but if we do 276546374b8dSmrg # two fine-grained sleeps in a row, at least one of them will fall 276646374b8dSmrg # entirely within a coarse interval. 276746374b8dSmrg echo alpha > conftest.ts1 276846374b8dSmrg sleep $am_try_res 276946374b8dSmrg echo beta > conftest.ts2 277046374b8dSmrg sleep $am_try_res 277146374b8dSmrg echo gamma > conftest.ts3 277246374b8dSmrg 277346374b8dSmrg # We assume that 'ls -t' will make use of high-resolution 277446374b8dSmrg # timestamps if the operating system supports them at all. 277546374b8dSmrg if (set X `ls -t conftest.ts?` && 277646374b8dSmrg test "$2" = conftest.ts3 && 277746374b8dSmrg test "$3" = conftest.ts2 && 277846374b8dSmrg test "$4" = conftest.ts1); then 277946374b8dSmrg # 278046374b8dSmrg # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 278146374b8dSmrg # because we don't need to test make. 278246374b8dSmrg make_ok=true 278346374b8dSmrg if test $am_try_res != 1; then 278446374b8dSmrg # But if we've succeeded so far with a subsecond resolution, we 278546374b8dSmrg # have one more thing to check: make. It can happen that 278646374b8dSmrg # everything else supports the subsecond mtimes, but make doesn't; 278746374b8dSmrg # notably on macOS, which ships make 3.81 from 2006 (the last one 278846374b8dSmrg # released under GPLv2). https://bugs.gnu.org/68808 278946374b8dSmrg # 279046374b8dSmrg # We test $MAKE if it is defined in the environment, else "make". 279146374b8dSmrg # It might get overridden later, but our hope is that in practice 279246374b8dSmrg # it does not matter: it is the system "make" which is (by far) 279346374b8dSmrg # the most likely to be broken, whereas if the user overrides it, 279446374b8dSmrg # probably they did so with a better, or at least not worse, make. 279546374b8dSmrg # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 279646374b8dSmrg # 279746374b8dSmrg # Create a Makefile (real tab character here): 279846374b8dSmrg rm -f conftest.mk 279946374b8dSmrg echo 'conftest.ts1: conftest.ts2' >conftest.mk 280046374b8dSmrg echo ' touch conftest.ts2' >>conftest.mk 280146374b8dSmrg # 280246374b8dSmrg # Now, running 280346374b8dSmrg # touch conftest.ts1; touch conftest.ts2; make 280446374b8dSmrg # should touch ts1 because ts2 is newer. This could happen by luck, 280546374b8dSmrg # but most often, it will fail if make's support is insufficient. So 280646374b8dSmrg # test for several consecutive successes. 280746374b8dSmrg # 280846374b8dSmrg # (We reuse conftest.ts[12] because we still want to modify existing 280946374b8dSmrg # files, not create new ones, per above.) 281046374b8dSmrg n=0 281146374b8dSmrg make=${MAKE-make} 281246374b8dSmrg until test $n -eq 3; do 281346374b8dSmrg echo one > conftest.ts1 281446374b8dSmrg sleep $am_try_res 281546374b8dSmrg echo two > conftest.ts2 # ts2 should now be newer than ts1 281646374b8dSmrg if $make -f conftest.mk | grep 'up to date' >/dev/null; then 281746374b8dSmrg make_ok=false 281846374b8dSmrg break # out of $n loop 281946374b8dSmrg fi 282046374b8dSmrg n=`expr $n + 1` 282146374b8dSmrg done 282246374b8dSmrg fi 282346374b8dSmrg # 282446374b8dSmrg if $make_ok; then 282546374b8dSmrg # Everything we know to check worked out, so call this resolution good. 282646374b8dSmrg am_cv_filesystem_timestamp_resolution=$am_try_res 282746374b8dSmrg break # out of $am_try_res loop 282846374b8dSmrg fi 282946374b8dSmrg # Otherwise, we'll go on to check the next resolution. 283046374b8dSmrg fi 283146374b8dSmrgdone 283246374b8dSmrgrm -f conftest.ts? 283346374b8dSmrg# (end _am_filesystem_timestamp_resolution) 283446374b8dSmrg ;; 283546374b8dSmrgesac 283646374b8dSmrgfi 283746374b8dSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 283846374b8dSmrgprintf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 283946374b8dSmrg 284046374b8dSmrg# This check should not be cached, as it may vary across builds of 284146374b8dSmrg# different projects. 2842e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2843e39ce84cSmrgprintf %s "checking whether build environment is sane... " >&6; } 28448f65982aSmrg# Reject unsafe characters in $srcdir or the absolute working directory 28458f65982aSmrg# name. Accept space and tab only in the latter. 28468f65982aSmrgam_lf=' 28478f65982aSmrg' 28488f65982aSmrgcase `pwd` in 28498f65982aSmrg *[\\\"\#\$\&\'\`$am_lf]*) 28508f65982aSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 28518f65982aSmrgesac 28528f65982aSmrgcase $srcdir in 28538f65982aSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 28540c7e83b2Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 28558f65982aSmrgesac 28568f65982aSmrg 28570c7e83b2Smrg# Do 'set' in a subshell so we don't clobber the current shell's 28588f65982aSmrg# arguments. Must try -L first in case configure is actually a 28598f65982aSmrg# symlink; some systems play weird games with the mod time of symlinks 28608f65982aSmrg# (eg FreeBSD returns the mod time of the symlink's containing 28618f65982aSmrg# directory). 286246374b8dSmrgam_build_env_is_sane=no 286346374b8dSmrgam_has_slept=no 286446374b8dSmrgrm -f conftest.file 286546374b8dSmrgfor am_try in 1 2; do 286646374b8dSmrg echo "timestamp, slept: $am_has_slept" > conftest.file 286746374b8dSmrg if ( 286846374b8dSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 286946374b8dSmrg if test "$*" = "X"; then 287046374b8dSmrg # -L didn't work. 287146374b8dSmrg set X `ls -t "$srcdir/configure" conftest.file` 287246374b8dSmrg fi 287346374b8dSmrg test "$2" = conftest.file 287446374b8dSmrg ); then 287546374b8dSmrg am_build_env_is_sane=yes 287646374b8dSmrg break 287746374b8dSmrg fi 287846374b8dSmrg # Just in case. 287946374b8dSmrg sleep "$am_cv_filesystem_timestamp_resolution" 288046374b8dSmrg am_has_slept=yes 288146374b8dSmrgdone 288246374b8dSmrg 288346374b8dSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 288446374b8dSmrgprintf "%s\n" "$am_build_env_is_sane" >&6; } 288546374b8dSmrgif test "$am_build_env_is_sane" = no; then 288646374b8dSmrg as_fn_error $? "newly created file is older than distributed files! 28878f65982aSmrgCheck your system clock" "$LINENO" 5 28888f65982aSmrgfi 288946374b8dSmrg 28900c7e83b2Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 28910c7e83b2Smrg# generated files are strictly newer. 28920c7e83b2Smrgam_sleep_pid= 289346374b8dSmrgif test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 289446374b8dSmrgthen : 289546374b8dSmrg 289646374b8dSmrgelse case e in #( 289746374b8dSmrg e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 28980c7e83b2Smrg am_sleep_pid=$! 289946374b8dSmrg ;; 290046374b8dSmrgesac 29010c7e83b2Smrgfi 29020c7e83b2Smrg 29030c7e83b2Smrgrm -f conftest.file 29040c7e83b2Smrg 29058f65982aSmrgtest "$program_prefix" != NONE && 29068f65982aSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 29078f65982aSmrg# Use a double $ so make ignores it. 29088f65982aSmrgtest "$program_suffix" != NONE && 29098f65982aSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 29108f65982aSmrg# Double any \ or $. 291146374b8dSmrg# By default was 's,x,x', remove it if useless. 29128f65982aSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2913e39ce84cSmrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2914e39ce84cSmrg 29158f65982aSmrg 29160c7e83b2Smrg# Expand $ac_aux_dir to an absolute path. 29170c7e83b2Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 29188f65982aSmrg 2919e39ce84cSmrg 2920e39ce84cSmrg if test x"${MISSING+set}" != xset; then 2921e39ce84cSmrg MISSING="\${SHELL} '$am_aux_dir/missing'" 29228f65982aSmrgfi 29238f65982aSmrg# Use eval to expand $SHELL 29240c7e83b2Smrgif eval "$MISSING --is-lightweight"; then 29250c7e83b2Smrg am_missing_run="$MISSING " 29268f65982aSmrgelse 29278f65982aSmrg am_missing_run= 2928e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2929e39ce84cSmrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 29308f65982aSmrgfi 29318f65982aSmrg 29320c7e83b2Smrgif test x"${install_sh+set}" != xset; then 29338f65982aSmrg case $am_aux_dir in 29348f65982aSmrg *\ * | *\ *) 29358f65982aSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 29368f65982aSmrg *) 29378f65982aSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 29388f65982aSmrg esac 29398f65982aSmrgfi 29408f65982aSmrg 29410c7e83b2Smrg# Installed binaries are usually stripped using 'strip' when the user 29420c7e83b2Smrg# run "make install-strip". However 'strip' might not be the right 29438f65982aSmrg# tool to use in cross-compilation environments, therefore Automake 29440c7e83b2Smrg# will honor the 'STRIP' environment variable to overrule this program. 29458f65982aSmrgif test "$cross_compiling" != no; then 29468f65982aSmrg if test -n "$ac_tool_prefix"; then 29478f65982aSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 29488f65982aSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2949e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2950e39ce84cSmrgprintf %s "checking for $ac_word... " >&6; } 2951e39ce84cSmrgif test ${ac_cv_prog_STRIP+y} 2952e39ce84cSmrgthen : 2953e39ce84cSmrg printf %s "(cached) " >&6 295446374b8dSmrgelse case e in #( 295546374b8dSmrg e) if test -n "$STRIP"; then 29568f65982aSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 29578f65982aSmrgelse 29588f65982aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29598f65982aSmrgfor as_dir in $PATH 29608f65982aSmrgdo 29618f65982aSmrg IFS=$as_save_IFS 2962e39ce84cSmrg case $as_dir in #((( 2963e39ce84cSmrg '') as_dir=./ ;; 2964e39ce84cSmrg */) ;; 2965e39ce84cSmrg *) as_dir=$as_dir/ ;; 2966e39ce84cSmrg esac 29678f65982aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2968e39ce84cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29698f65982aSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2970e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29718f65982aSmrg break 2 29728f65982aSmrg fi 29738f65982aSmrgdone 29748f65982aSmrg done 29758f65982aSmrgIFS=$as_save_IFS 29768f65982aSmrg 297746374b8dSmrgfi ;; 297846374b8dSmrgesac 29798f65982aSmrgfi 29808f65982aSmrgSTRIP=$ac_cv_prog_STRIP 29818f65982aSmrgif test -n "$STRIP"; then 2982e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2983e39ce84cSmrgprintf "%s\n" "$STRIP" >&6; } 29848f65982aSmrgelse 2985e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2986e39ce84cSmrgprintf "%s\n" "no" >&6; } 29878f65982aSmrgfi 29888f65982aSmrg 29898f65982aSmrg 29908f65982aSmrgfi 29918f65982aSmrgif test -z "$ac_cv_prog_STRIP"; then 29928f65982aSmrg ac_ct_STRIP=$STRIP 29938f65982aSmrg # Extract the first word of "strip", so it can be a program name with args. 29948f65982aSmrgset dummy strip; ac_word=$2 2995e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2996e39ce84cSmrgprintf %s "checking for $ac_word... " >&6; } 2997e39ce84cSmrgif test ${ac_cv_prog_ac_ct_STRIP+y} 2998e39ce84cSmrgthen : 2999e39ce84cSmrg printf %s "(cached) " >&6 300046374b8dSmrgelse case e in #( 300146374b8dSmrg e) if test -n "$ac_ct_STRIP"; then 30028f65982aSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 30038f65982aSmrgelse 30048f65982aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30058f65982aSmrgfor as_dir in $PATH 30068f65982aSmrgdo 30078f65982aSmrg IFS=$as_save_IFS 3008e39ce84cSmrg case $as_dir in #((( 3009e39ce84cSmrg '') as_dir=./ ;; 3010e39ce84cSmrg */) ;; 3011e39ce84cSmrg *) as_dir=$as_dir/ ;; 3012e39ce84cSmrg esac 30138f65982aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3014e39ce84cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30158f65982aSmrg ac_cv_prog_ac_ct_STRIP="strip" 3016e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30178f65982aSmrg break 2 30188f65982aSmrg fi 30199aa228fdSmrgdone 30208f65982aSmrg done 30219aa228fdSmrgIFS=$as_save_IFS 30229aa228fdSmrg 302346374b8dSmrgfi ;; 302446374b8dSmrgesac 30259aa228fdSmrgfi 30268f65982aSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 30278f65982aSmrgif test -n "$ac_ct_STRIP"; then 3028e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3029e39ce84cSmrgprintf "%s\n" "$ac_ct_STRIP" >&6; } 30309aa228fdSmrgelse 3031e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3032e39ce84cSmrgprintf "%s\n" "no" >&6; } 30339aa228fdSmrgfi 30349aa228fdSmrg 30358f65982aSmrg if test "x$ac_ct_STRIP" = x; then 30368f65982aSmrg STRIP=":" 30378f65982aSmrg else 30388f65982aSmrg case $cross_compiling:$ac_tool_warned in 30398f65982aSmrgyes:) 3040e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3041e39ce84cSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30428f65982aSmrgac_tool_warned=yes ;; 30438f65982aSmrgesac 30448f65982aSmrg STRIP=$ac_ct_STRIP 30458f65982aSmrg fi 30469aa228fdSmrgelse 30478f65982aSmrg STRIP="$ac_cv_prog_STRIP" 30488f65982aSmrgfi 30498f65982aSmrg 30509aa228fdSmrgfi 30518f65982aSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 30529aa228fdSmrg 3053e39ce84cSmrg 3054e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3055e39ce84cSmrgprintf %s "checking for a race-free mkdir -p... " >&6; } 30569aa228fdSmrgif test -z "$MKDIR_P"; then 3057e39ce84cSmrg if test ${ac_cv_path_mkdir+y} 3058e39ce84cSmrgthen : 3059e39ce84cSmrg printf %s "(cached) " >&6 306046374b8dSmrgelse case e in #( 306146374b8dSmrg e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30629aa228fdSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 30639aa228fdSmrgdo 30649aa228fdSmrg IFS=$as_save_IFS 3065e39ce84cSmrg case $as_dir in #((( 3066e39ce84cSmrg '') as_dir=./ ;; 3067e39ce84cSmrg */) ;; 3068e39ce84cSmrg *) as_dir=$as_dir/ ;; 3069e39ce84cSmrg esac 30708f65982aSmrg for ac_prog in mkdir gmkdir; do 30719aa228fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3072e39ce84cSmrg as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3073e39ce84cSmrg case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3074e39ce84cSmrg 'mkdir ('*'coreutils) '* | \ 307546374b8dSmrg *'BusyBox '* | \ 30769aa228fdSmrg 'mkdir (fileutils) '4.1*) 3077e39ce84cSmrg ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 30789aa228fdSmrg break 3;; 30799aa228fdSmrg esac 30809aa228fdSmrg done 30819aa228fdSmrg done 30828f65982aSmrg done 30839aa228fdSmrgIFS=$as_save_IFS 308446374b8dSmrg ;; 308546374b8dSmrgesac 30869aa228fdSmrgfi 30879aa228fdSmrg 30888f65982aSmrg test -d ./--version && rmdir ./--version 3089e39ce84cSmrg if test ${ac_cv_path_mkdir+y}; then 30909aa228fdSmrg MKDIR_P="$ac_cv_path_mkdir -p" 30919aa228fdSmrg else 309246374b8dSmrg # As a last resort, use plain mkdir -p, 309346374b8dSmrg # in the hope it doesn't have the bugs of ancient mkdir. 309446374b8dSmrg MKDIR_P='mkdir -p' 30959aa228fdSmrg fi 30969aa228fdSmrgfi 3097e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3098e39ce84cSmrgprintf "%s\n" "$MKDIR_P" >&6; } 30999aa228fdSmrg 31009aa228fdSmrgfor ac_prog in gawk mawk nawk awk 31019aa228fdSmrgdo 31029aa228fdSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 31039aa228fdSmrgset dummy $ac_prog; ac_word=$2 3104e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3105e39ce84cSmrgprintf %s "checking for $ac_word... " >&6; } 3106e39ce84cSmrgif test ${ac_cv_prog_AWK+y} 3107e39ce84cSmrgthen : 3108e39ce84cSmrg printf %s "(cached) " >&6 310946374b8dSmrgelse case e in #( 311046374b8dSmrg e) if test -n "$AWK"; then 31119aa228fdSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 31129aa228fdSmrgelse 31139aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31149aa228fdSmrgfor as_dir in $PATH 31159aa228fdSmrgdo 31169aa228fdSmrg IFS=$as_save_IFS 3117e39ce84cSmrg case $as_dir in #((( 3118e39ce84cSmrg '') as_dir=./ ;; 3119e39ce84cSmrg */) ;; 3120e39ce84cSmrg *) as_dir=$as_dir/ ;; 3121e39ce84cSmrg esac 31228f65982aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3123e39ce84cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31249aa228fdSmrg ac_cv_prog_AWK="$ac_prog" 3125e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31269aa228fdSmrg break 2 31279aa228fdSmrg fi 31289aa228fdSmrgdone 31298f65982aSmrg done 31309aa228fdSmrgIFS=$as_save_IFS 31319aa228fdSmrg 313246374b8dSmrgfi ;; 313346374b8dSmrgesac 31349aa228fdSmrgfi 31359aa228fdSmrgAWK=$ac_cv_prog_AWK 31369aa228fdSmrgif test -n "$AWK"; then 3137e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3138e39ce84cSmrgprintf "%s\n" "$AWK" >&6; } 31399aa228fdSmrgelse 3140e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3141e39ce84cSmrgprintf "%s\n" "no" >&6; } 31429aa228fdSmrgfi 31439aa228fdSmrg 31449aa228fdSmrg 31459aa228fdSmrg test -n "$AWK" && break 31469aa228fdSmrgdone 31479aa228fdSmrg 3148e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3149e39ce84cSmrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 31508f65982aSmrgset x ${MAKE-make} 3151e39ce84cSmrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3152e39ce84cSmrgif eval test \${ac_cv_prog_make_${ac_make}_set+y} 3153e39ce84cSmrgthen : 3154e39ce84cSmrg printf %s "(cached) " >&6 315546374b8dSmrgelse case e in #( 315646374b8dSmrg e) cat >conftest.make <<\_ACEOF 31579aa228fdSmrgSHELL = /bin/sh 31589aa228fdSmrgall: 31599aa228fdSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 31609aa228fdSmrg_ACEOF 31618f65982aSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 31629aa228fdSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 31639aa228fdSmrg *@@@%%%=?*=@@@%%%*) 31649aa228fdSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 31659aa228fdSmrg *) 31669aa228fdSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 31679aa228fdSmrgesac 316846374b8dSmrgrm -f conftest.make ;; 316946374b8dSmrgesac 31709aa228fdSmrgfi 31719aa228fdSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3172e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3173e39ce84cSmrgprintf "%s\n" "yes" >&6; } 31749aa228fdSmrg SET_MAKE= 31759aa228fdSmrgelse 3176e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3177e39ce84cSmrgprintf "%s\n" "no" >&6; } 31789aa228fdSmrg SET_MAKE="MAKE=${MAKE-make}" 31799aa228fdSmrgfi 31809aa228fdSmrg 31819aa228fdSmrgrm -rf .tst 2>/dev/null 31829aa228fdSmrgmkdir .tst 2>/dev/null 31839aa228fdSmrgif test -d .tst; then 31849aa228fdSmrg am__leading_dot=. 31859aa228fdSmrgelse 31869aa228fdSmrg am__leading_dot=_ 31879aa228fdSmrgfi 31889aa228fdSmrgrmdir .tst 2>/dev/null 31899aa228fdSmrg 319046374b8dSmrgAM_DEFAULT_VERBOSITY=1 31910c7e83b2Smrg# Check whether --enable-silent-rules was given. 3192e39ce84cSmrgif test ${enable_silent_rules+y} 3193e39ce84cSmrgthen : 31940c7e83b2Smrg enableval=$enable_silent_rules; 31950c7e83b2Smrgfi 31960c7e83b2Smrg 31970c7e83b2Smrgam_make=${MAKE-make} 3198e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3199e39ce84cSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 3200e39ce84cSmrgif test ${am_cv_make_support_nested_variables+y} 3201e39ce84cSmrgthen : 3202e39ce84cSmrg printf %s "(cached) " >&6 320346374b8dSmrgelse case e in #( 320446374b8dSmrg e) if printf "%s\n" 'TRUE=$(BAR$(V)) 32050c7e83b2SmrgBAR0=false 32060c7e83b2SmrgBAR1=true 32070c7e83b2SmrgV=1 32080c7e83b2Smrgam__doit: 32090c7e83b2Smrg @$(TRUE) 32100c7e83b2Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 32110c7e83b2Smrg am_cv_make_support_nested_variables=yes 32120c7e83b2Smrgelse 32130c7e83b2Smrg am_cv_make_support_nested_variables=no 321446374b8dSmrgfi ;; 321546374b8dSmrgesac 32160c7e83b2Smrgfi 3217e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3218e39ce84cSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 32190c7e83b2SmrgAM_BACKSLASH='\' 32200c7e83b2Smrg 322146374b8dSmrgam__rm_f_notfound= 322246374b8dSmrgif (rm -f && rm -fr && rm -rf) 2>/dev/null 322346374b8dSmrgthen : 322446374b8dSmrg 322546374b8dSmrgelse case e in #( 322646374b8dSmrg e) am__rm_f_notfound='""' ;; 322746374b8dSmrgesac 322846374b8dSmrgfi 322946374b8dSmrg 323046374b8dSmrg 323146374b8dSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 323246374b8dSmrgprintf %s "checking xargs -n works... " >&6; } 323346374b8dSmrgif test ${am_cv_xargs_n_works+y} 323446374b8dSmrgthen : 323546374b8dSmrg printf %s "(cached) " >&6 323646374b8dSmrgelse case e in #( 323746374b8dSmrg e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 323846374b8dSmrg3" 323946374b8dSmrgthen : 324046374b8dSmrg am_cv_xargs_n_works=yes 324146374b8dSmrgelse case e in #( 324246374b8dSmrg e) am_cv_xargs_n_works=no ;; 324346374b8dSmrgesac 324446374b8dSmrgfi ;; 324546374b8dSmrgesac 324646374b8dSmrgfi 324746374b8dSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 324846374b8dSmrgprintf "%s\n" "$am_cv_xargs_n_works" >&6; } 324946374b8dSmrgif test "$am_cv_xargs_n_works" = yes 325046374b8dSmrgthen : 325146374b8dSmrg am__xargs_n='xargs -n' 325246374b8dSmrgelse case e in #( 325346374b8dSmrg e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 325446374b8dSmrg ;; 325546374b8dSmrgesac 325646374b8dSmrgfi 325746374b8dSmrg 32589aa228fdSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 32599aa228fdSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 32609aa228fdSmrg # is not polluted with repeated "-I." 32619aa228fdSmrg am__isrc=' -I$(srcdir)' 32629aa228fdSmrg # test to see if srcdir already configured 32639aa228fdSmrg if test -f $srcdir/config.status; then 32648f65982aSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 32659aa228fdSmrg fi 32669aa228fdSmrgfi 32679aa228fdSmrg 32689aa228fdSmrg# test whether we have cygpath 32699aa228fdSmrgif test -z "$CYGPATH_W"; then 32709aa228fdSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 32719aa228fdSmrg CYGPATH_W='cygpath -w' 32729aa228fdSmrg else 32739aa228fdSmrg CYGPATH_W=echo 32749aa228fdSmrg fi 32759aa228fdSmrgfi 32769aa228fdSmrg 32779aa228fdSmrg 32789aa228fdSmrg# Define the identity of the package. 32799aa228fdSmrg PACKAGE='xmag' 328046374b8dSmrg VERSION='1.0.8' 32819aa228fdSmrg 32829aa228fdSmrg 3283e39ce84cSmrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 32849aa228fdSmrg 32859aa228fdSmrg 3286e39ce84cSmrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 32879aa228fdSmrg 32889aa228fdSmrg# Some tools Automake needs. 32899aa228fdSmrg 32909aa228fdSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 32919aa228fdSmrg 32929aa228fdSmrg 32939aa228fdSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 32949aa228fdSmrg 32959aa228fdSmrg 32969aa228fdSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 32979aa228fdSmrg 32989aa228fdSmrg 32999aa228fdSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 33009aa228fdSmrg 33019aa228fdSmrg 33029aa228fdSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 33039aa228fdSmrg 33040c7e83b2Smrg# For better backward compatibility. To be removed once Automake 1.9.x 33050c7e83b2Smrg# dies out for good. For more background, see: 3306e39ce84cSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3307e39ce84cSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 33080c7e83b2Smrgmkdir_p='$(MKDIR_P)' 33099aa228fdSmrg 33100c7e83b2Smrg# We need awk for the "check" target (and possibly the TAP driver). The 33110c7e83b2Smrg# system "awk" is bad on some platforms. 33120c7e83b2Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 33130c7e83b2Smrg# in the wild :-( We should find a proper way to deprecate it ... 33140c7e83b2SmrgAMTAR='$${TAR-tar}' 33159aa228fdSmrg 33169aa228fdSmrg 33170c7e83b2Smrg# We'll loop over all known methods to create a tar archive until one works. 33180c7e83b2Smrg_am_tools='gnutar pax cpio none' 33199aa228fdSmrg 33200c7e83b2Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 33219aa228fdSmrg 33229aa228fdSmrg 33239aa228fdSmrg 33248f65982aSmrg 33259aa228fdSmrg 3326e39ce84cSmrg# Variables for tags utilities; see am/tags.am 3327e39ce84cSmrgif test -z "$CTAGS"; then 3328e39ce84cSmrg CTAGS=ctags 3329e39ce84cSmrgfi 3330e39ce84cSmrg 3331e39ce84cSmrgif test -z "$ETAGS"; then 3332e39ce84cSmrg ETAGS=etags 3333e39ce84cSmrgfi 3334e39ce84cSmrg 3335e39ce84cSmrgif test -z "$CSCOPE"; then 3336e39ce84cSmrg CSCOPE=cscope 3337e39ce84cSmrgfi 3338e39ce84cSmrg 3339e39ce84cSmrg 33409aa228fdSmrg 33410c7e83b2Smrg 33420c7e83b2Smrg 33439aa228fdSmrg 33449aa228fdSmrg 33459aa228fdSmrg 33468f65982aSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 334783d7c197Smrg 334883d7c197Smrg 334983d7c197Smrg 335083d7c197Smrg 335183d7c197Smrg 335283d7c197Smrg 335383d7c197Smrg 335483d7c197Smrg 335583d7c197Smrg 335683d7c197Smrg 335783d7c197Smrg 3358e39ce84cSmrg 3359e39ce84cSmrg 3360e39ce84cSmrg 3361e39ce84cSmrg 3362e39ce84cSmrg 3363e39ce84cSmrg 3364e39ce84cSmrg 3365e39ce84cSmrg 3366e39ce84cSmrg 33678f65982aSmrgDEPDIR="${am__leading_dot}deps" 336883d7c197Smrg 33698f65982aSmrgac_config_commands="$ac_config_commands depfiles" 33708f65982aSmrg 3371e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3372e39ce84cSmrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3373e39ce84cSmrgcat > confinc.mk << 'END' 33748f65982aSmrgam__doit: 3375e39ce84cSmrg @echo this is the am__doit target >confinc.out 33768f65982aSmrg.PHONY: am__doit 33778f65982aSmrgEND 33788f65982aSmrgam__include="#" 33798f65982aSmrgam__quote= 3380e39ce84cSmrg# BSD make does it like this. 3381e39ce84cSmrgecho '.include "confinc.mk" # ignored' > confmf.BSD 3382e39ce84cSmrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3383e39ce84cSmrgecho 'include confinc.mk # ignored' > confmf.GNU 3384e39ce84cSmrg_am_result=no 3385e39ce84cSmrgfor s in GNU BSD; do 3386e39ce84cSmrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3387e39ce84cSmrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3388e39ce84cSmrg ac_status=$? 3389e39ce84cSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 3390e39ce84cSmrg (exit $ac_status); } 3391e39ce84cSmrg case $?:`cat confinc.out 2>/dev/null` in #( 3392e39ce84cSmrg '0:this is the am__doit target') : 3393e39ce84cSmrg case $s in #( 3394e39ce84cSmrg BSD) : 3395e39ce84cSmrg am__include='.include' am__quote='"' ;; #( 3396e39ce84cSmrg *) : 3397e39ce84cSmrg am__include='include' am__quote='' ;; 3398e39ce84cSmrgesac ;; #( 3399e39ce84cSmrg *) : 34008f65982aSmrg ;; 3401e39ce84cSmrgesac 3402e39ce84cSmrg if test "$am__include" != "#"; then 3403e39ce84cSmrg _am_result="yes ($s style)" 3404e39ce84cSmrg break 3405e39ce84cSmrg fi 3406e39ce84cSmrgdone 3407e39ce84cSmrgrm -f confinc.* confmf.* 3408e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3409e39ce84cSmrgprintf "%s\n" "${_am_result}" >&6; } 34108f65982aSmrg 34118f65982aSmrg# Check whether --enable-dependency-tracking was given. 3412e39ce84cSmrgif test ${enable_dependency_tracking+y} 3413e39ce84cSmrgthen : 34148f65982aSmrg enableval=$enable_dependency_tracking; 34158f65982aSmrgfi 34168f65982aSmrg 34178f65982aSmrgif test "x$enable_dependency_tracking" != xno; then 34188f65982aSmrg am_depcomp="$ac_aux_dir/depcomp" 34198f65982aSmrg AMDEPBACKSLASH='\' 342080b026c6Smrg am__nodep='_no' 34218f65982aSmrgfi 34228f65982aSmrg if test "x$enable_dependency_tracking" != xno; then 34238f65982aSmrg AMDEP_TRUE= 34248f65982aSmrg AMDEP_FALSE='#' 34258f65982aSmrgelse 34268f65982aSmrg AMDEP_TRUE='#' 34278f65982aSmrg AMDEP_FALSE= 34288f65982aSmrgfi 34299aa228fdSmrg 34309aa228fdSmrg 34319aa228fdSmrgac_ext=c 34329aa228fdSmrgac_cpp='$CPP $CPPFLAGS' 34339aa228fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34349aa228fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34359aa228fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 34369aa228fdSmrgif test -n "$ac_tool_prefix"; then 34379aa228fdSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 34389aa228fdSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 3439e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3440e39ce84cSmrgprintf %s "checking for $ac_word... " >&6; } 3441e39ce84cSmrgif test ${ac_cv_prog_CC+y} 3442e39ce84cSmrgthen : 3443e39ce84cSmrg printf %s "(cached) " >&6 344446374b8dSmrgelse case e in #( 344546374b8dSmrg e) if test -n "$CC"; then 34469aa228fdSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 34479aa228fdSmrgelse 34489aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34499aa228fdSmrgfor as_dir in $PATH 34509aa228fdSmrgdo 34519aa228fdSmrg IFS=$as_save_IFS 3452e39ce84cSmrg case $as_dir in #((( 3453e39ce84cSmrg '') as_dir=./ ;; 3454e39ce84cSmrg */) ;; 3455e39ce84cSmrg *) as_dir=$as_dir/ ;; 3456e39ce84cSmrg esac 34578f65982aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3458e39ce84cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 34599aa228fdSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 3460e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 34619aa228fdSmrg break 2 34629aa228fdSmrg fi 34639aa228fdSmrgdone 34648f65982aSmrg done 34659aa228fdSmrgIFS=$as_save_IFS 34669aa228fdSmrg 346746374b8dSmrgfi ;; 346846374b8dSmrgesac 34699aa228fdSmrgfi 34709aa228fdSmrgCC=$ac_cv_prog_CC 34719aa228fdSmrgif test -n "$CC"; then 3472e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3473e39ce84cSmrgprintf "%s\n" "$CC" >&6; } 34749aa228fdSmrgelse 3475e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3476e39ce84cSmrgprintf "%s\n" "no" >&6; } 34779aa228fdSmrgfi 34789aa228fdSmrg 34799aa228fdSmrg 34809aa228fdSmrgfi 34819aa228fdSmrgif test -z "$ac_cv_prog_CC"; then 34829aa228fdSmrg ac_ct_CC=$CC 34839aa228fdSmrg # Extract the first word of "gcc", so it can be a program name with args. 34849aa228fdSmrgset dummy gcc; ac_word=$2 3485e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3486e39ce84cSmrgprintf %s "checking for $ac_word... " >&6; } 3487e39ce84cSmrgif test ${ac_cv_prog_ac_ct_CC+y} 3488e39ce84cSmrgthen : 3489e39ce84cSmrg printf %s "(cached) " >&6 349046374b8dSmrgelse case e in #( 349146374b8dSmrg e) if test -n "$ac_ct_CC"; then 34929aa228fdSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 34939aa228fdSmrgelse 34949aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34959aa228fdSmrgfor as_dir in $PATH 34969aa228fdSmrgdo 34979aa228fdSmrg IFS=$as_save_IFS 3498e39ce84cSmrg case $as_dir in #((( 3499e39ce84cSmrg '') as_dir=./ ;; 3500e39ce84cSmrg */) ;; 3501e39ce84cSmrg *) as_dir=$as_dir/ ;; 3502e39ce84cSmrg esac 35038f65982aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3504e39ce84cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 35059aa228fdSmrg ac_cv_prog_ac_ct_CC="gcc" 3506e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 35079aa228fdSmrg break 2 35089aa228fdSmrg fi 35099aa228fdSmrgdone 35108f65982aSmrg done 35119aa228fdSmrgIFS=$as_save_IFS 35129aa228fdSmrg 351346374b8dSmrgfi ;; 351446374b8dSmrgesac 35159aa228fdSmrgfi 35169aa228fdSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 35179aa228fdSmrgif test -n "$ac_ct_CC"; then 3518e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3519e39ce84cSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 35209aa228fdSmrgelse 3521e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3522e39ce84cSmrgprintf "%s\n" "no" >&6; } 35239aa228fdSmrgfi 35249aa228fdSmrg 35259aa228fdSmrg if test "x$ac_ct_CC" = x; then 35269aa228fdSmrg CC="" 35279aa228fdSmrg else 35289aa228fdSmrg case $cross_compiling:$ac_tool_warned in 35299aa228fdSmrgyes:) 3530e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3531e39ce84cSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35329aa228fdSmrgac_tool_warned=yes ;; 35339aa228fdSmrgesac 35349aa228fdSmrg CC=$ac_ct_CC 35359aa228fdSmrg fi 35369aa228fdSmrgelse 35379aa228fdSmrg CC="$ac_cv_prog_CC" 35389aa228fdSmrgfi 35399aa228fdSmrg 35409aa228fdSmrgif test -z "$CC"; then 35419aa228fdSmrg if test -n "$ac_tool_prefix"; then 35429aa228fdSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 35439aa228fdSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 3544e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3545e39ce84cSmrgprintf %s "checking for $ac_word... " >&6; } 3546e39ce84cSmrgif test ${ac_cv_prog_CC+y} 3547e39ce84cSmrgthen : 3548e39ce84cSmrg printf %s "(cached) " >&6 354946374b8dSmrgelse case e in #( 355046374b8dSmrg e) if test -n "$CC"; then 35519aa228fdSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 35529aa228fdSmrgelse 35539aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35549aa228fdSmrgfor as_dir in $PATH 35559aa228fdSmrgdo 35569aa228fdSmrg IFS=$as_save_IFS 3557e39ce84cSmrg case $as_dir in #((( 3558e39ce84cSmrg '') as_dir=./ ;; 3559e39ce84cSmrg */) ;; 3560e39ce84cSmrg *) as_dir=$as_dir/ ;; 3561e39ce84cSmrg esac 35628f65982aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3563e39ce84cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 35649aa228fdSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 3565e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 35669aa228fdSmrg break 2 35679aa228fdSmrg fi 35689aa228fdSmrgdone 35698f65982aSmrg done 35709aa228fdSmrgIFS=$as_save_IFS 35719aa228fdSmrg 357246374b8dSmrgfi ;; 357346374b8dSmrgesac 35749aa228fdSmrgfi 35759aa228fdSmrgCC=$ac_cv_prog_CC 35769aa228fdSmrgif test -n "$CC"; then 3577e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3578e39ce84cSmrgprintf "%s\n" "$CC" >&6; } 35799aa228fdSmrgelse 3580e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3581e39ce84cSmrgprintf "%s\n" "no" >&6; } 35829aa228fdSmrgfi 35839aa228fdSmrg 35849aa228fdSmrg 35859aa228fdSmrg fi 35869aa228fdSmrgfi 35879aa228fdSmrgif test -z "$CC"; then 35889aa228fdSmrg # Extract the first word of "cc", so it can be a program name with args. 35899aa228fdSmrgset dummy cc; ac_word=$2 3590e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3591e39ce84cSmrgprintf %s "checking for $ac_word... " >&6; } 3592e39ce84cSmrgif test ${ac_cv_prog_CC+y} 3593e39ce84cSmrgthen : 3594e39ce84cSmrg printf %s "(cached) " >&6 359546374b8dSmrgelse case e in #( 359646374b8dSmrg e) if test -n "$CC"; then 35979aa228fdSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 35989aa228fdSmrgelse 35999aa228fdSmrg ac_prog_rejected=no 36009aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36019aa228fdSmrgfor as_dir in $PATH 36029aa228fdSmrgdo 36039aa228fdSmrg IFS=$as_save_IFS 3604e39ce84cSmrg case $as_dir in #((( 3605e39ce84cSmrg '') as_dir=./ ;; 3606e39ce84cSmrg */) ;; 3607e39ce84cSmrg *) as_dir=$as_dir/ ;; 3608e39ce84cSmrg esac 36098f65982aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3610e39ce84cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3611e39ce84cSmrg if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 36129aa228fdSmrg ac_prog_rejected=yes 36139aa228fdSmrg continue 36149aa228fdSmrg fi 36159aa228fdSmrg ac_cv_prog_CC="cc" 3616e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 36179aa228fdSmrg break 2 36189aa228fdSmrg fi 36199aa228fdSmrgdone 36208f65982aSmrg done 36219aa228fdSmrgIFS=$as_save_IFS 36229aa228fdSmrg 36239aa228fdSmrgif test $ac_prog_rejected = yes; then 36249aa228fdSmrg # We found a bogon in the path, so make sure we never use it. 36259aa228fdSmrg set dummy $ac_cv_prog_CC 36269aa228fdSmrg shift 36279aa228fdSmrg if test $# != 0; then 36289aa228fdSmrg # We chose a different compiler from the bogus one. 36299aa228fdSmrg # However, it has the same basename, so the bogon will be chosen 36309aa228fdSmrg # first if we set CC to just the basename; use the full file name. 36319aa228fdSmrg shift 3632e39ce84cSmrg ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 36339aa228fdSmrg fi 36349aa228fdSmrgfi 363546374b8dSmrgfi ;; 363646374b8dSmrgesac 36379aa228fdSmrgfi 36389aa228fdSmrgCC=$ac_cv_prog_CC 36399aa228fdSmrgif test -n "$CC"; then 3640e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3641e39ce84cSmrgprintf "%s\n" "$CC" >&6; } 36429aa228fdSmrgelse 3643e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3644e39ce84cSmrgprintf "%s\n" "no" >&6; } 36459aa228fdSmrgfi 36469aa228fdSmrg 36479aa228fdSmrg 36489aa228fdSmrgfi 36499aa228fdSmrgif test -z "$CC"; then 36509aa228fdSmrg if test -n "$ac_tool_prefix"; then 36519aa228fdSmrg for ac_prog in cl.exe 36529aa228fdSmrg do 36539aa228fdSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36549aa228fdSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3655e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3656e39ce84cSmrgprintf %s "checking for $ac_word... " >&6; } 3657e39ce84cSmrgif test ${ac_cv_prog_CC+y} 3658e39ce84cSmrgthen : 3659e39ce84cSmrg printf %s "(cached) " >&6 366046374b8dSmrgelse case e in #( 366146374b8dSmrg e) if test -n "$CC"; then 36629aa228fdSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 36639aa228fdSmrgelse 36649aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36659aa228fdSmrgfor as_dir in $PATH 36669aa228fdSmrgdo 36679aa228fdSmrg IFS=$as_save_IFS 3668e39ce84cSmrg case $as_dir in #((( 3669e39ce84cSmrg '') as_dir=./ ;; 3670e39ce84cSmrg */) ;; 3671e39ce84cSmrg *) as_dir=$as_dir/ ;; 3672e39ce84cSmrg esac 36738f65982aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3674e39ce84cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 36759aa228fdSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3676e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 36779aa228fdSmrg break 2 36789aa228fdSmrg fi 36799aa228fdSmrgdone 36808f65982aSmrg done 36819aa228fdSmrgIFS=$as_save_IFS 36829aa228fdSmrg 368346374b8dSmrgfi ;; 368446374b8dSmrgesac 36859aa228fdSmrgfi 36869aa228fdSmrgCC=$ac_cv_prog_CC 36879aa228fdSmrgif test -n "$CC"; then 3688e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3689e39ce84cSmrgprintf "%s\n" "$CC" >&6; } 36909aa228fdSmrgelse 3691e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3692e39ce84cSmrgprintf "%s\n" "no" >&6; } 36939aa228fdSmrgfi 36949aa228fdSmrg 36959aa228fdSmrg 36969aa228fdSmrg test -n "$CC" && break 36979aa228fdSmrg done 36989aa228fdSmrgfi 36999aa228fdSmrgif test -z "$CC"; then 37009aa228fdSmrg ac_ct_CC=$CC 37019aa228fdSmrg for ac_prog in cl.exe 37029aa228fdSmrgdo 37039aa228fdSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 37049aa228fdSmrgset dummy $ac_prog; ac_word=$2 3705e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3706e39ce84cSmrgprintf %s "checking for $ac_word... " >&6; } 3707e39ce84cSmrgif test ${ac_cv_prog_ac_ct_CC+y} 3708e39ce84cSmrgthen : 3709e39ce84cSmrg printf %s "(cached) " >&6 371046374b8dSmrgelse case e in #( 371146374b8dSmrg e) if test -n "$ac_ct_CC"; then 37129aa228fdSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 37139aa228fdSmrgelse 37149aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37159aa228fdSmrgfor as_dir in $PATH 37169aa228fdSmrgdo 37179aa228fdSmrg IFS=$as_save_IFS 3718e39ce84cSmrg case $as_dir in #((( 3719e39ce84cSmrg '') as_dir=./ ;; 3720e39ce84cSmrg */) ;; 3721e39ce84cSmrg *) as_dir=$as_dir/ ;; 3722e39ce84cSmrg esac 37238f65982aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3724e39ce84cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 37259aa228fdSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 3726e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 37279aa228fdSmrg break 2 37289aa228fdSmrg fi 37299aa228fdSmrgdone 37308f65982aSmrg done 37319aa228fdSmrgIFS=$as_save_IFS 37329aa228fdSmrg 373346374b8dSmrgfi ;; 373446374b8dSmrgesac 37359aa228fdSmrgfi 37369aa228fdSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 37379aa228fdSmrgif test -n "$ac_ct_CC"; then 3738e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3739e39ce84cSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 37409aa228fdSmrgelse 3741e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3742e39ce84cSmrgprintf "%s\n" "no" >&6; } 37439aa228fdSmrgfi 37449aa228fdSmrg 37459aa228fdSmrg 37469aa228fdSmrg test -n "$ac_ct_CC" && break 37479aa228fdSmrgdone 37489aa228fdSmrg 37499aa228fdSmrg if test "x$ac_ct_CC" = x; then 37509aa228fdSmrg CC="" 37519aa228fdSmrg else 37529aa228fdSmrg case $cross_compiling:$ac_tool_warned in 37539aa228fdSmrgyes:) 3754e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3755e39ce84cSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37569aa228fdSmrgac_tool_warned=yes ;; 37579aa228fdSmrgesac 37589aa228fdSmrg CC=$ac_ct_CC 37599aa228fdSmrg fi 37609aa228fdSmrgfi 37619aa228fdSmrg 37629aa228fdSmrgfi 3763e39ce84cSmrgif test -z "$CC"; then 3764e39ce84cSmrg if test -n "$ac_tool_prefix"; then 3765e39ce84cSmrg # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3766e39ce84cSmrgset dummy ${ac_tool_prefix}clang; ac_word=$2 3767e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3768e39ce84cSmrgprintf %s "checking for $ac_word... " >&6; } 3769e39ce84cSmrgif test ${ac_cv_prog_CC+y} 3770e39ce84cSmrgthen : 3771e39ce84cSmrg printf %s "(cached) " >&6 377246374b8dSmrgelse case e in #( 377346374b8dSmrg e) if test -n "$CC"; then 3774e39ce84cSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3775e39ce84cSmrgelse 3776e39ce84cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3777e39ce84cSmrgfor as_dir in $PATH 3778e39ce84cSmrgdo 3779e39ce84cSmrg IFS=$as_save_IFS 3780e39ce84cSmrg case $as_dir in #((( 3781e39ce84cSmrg '') as_dir=./ ;; 3782e39ce84cSmrg */) ;; 3783e39ce84cSmrg *) as_dir=$as_dir/ ;; 3784e39ce84cSmrg esac 3785e39ce84cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3786e39ce84cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3787e39ce84cSmrg ac_cv_prog_CC="${ac_tool_prefix}clang" 3788e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3789e39ce84cSmrg break 2 3790e39ce84cSmrg fi 3791e39ce84cSmrgdone 3792e39ce84cSmrg done 3793e39ce84cSmrgIFS=$as_save_IFS 37949aa228fdSmrg 379546374b8dSmrgfi ;; 379646374b8dSmrgesac 3797e39ce84cSmrgfi 3798e39ce84cSmrgCC=$ac_cv_prog_CC 3799e39ce84cSmrgif test -n "$CC"; then 3800e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3801e39ce84cSmrgprintf "%s\n" "$CC" >&6; } 3802e39ce84cSmrgelse 3803e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3804e39ce84cSmrgprintf "%s\n" "no" >&6; } 3805e39ce84cSmrgfi 38069aa228fdSmrg 3807e39ce84cSmrg 3808e39ce84cSmrgfi 3809e39ce84cSmrgif test -z "$ac_cv_prog_CC"; then 3810e39ce84cSmrg ac_ct_CC=$CC 3811e39ce84cSmrg # Extract the first word of "clang", so it can be a program name with args. 3812e39ce84cSmrgset dummy clang; ac_word=$2 3813e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3814e39ce84cSmrgprintf %s "checking for $ac_word... " >&6; } 3815e39ce84cSmrgif test ${ac_cv_prog_ac_ct_CC+y} 3816e39ce84cSmrgthen : 3817e39ce84cSmrg printf %s "(cached) " >&6 381846374b8dSmrgelse case e in #( 381946374b8dSmrg e) if test -n "$ac_ct_CC"; then 3820e39ce84cSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3821e39ce84cSmrgelse 3822e39ce84cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3823e39ce84cSmrgfor as_dir in $PATH 3824e39ce84cSmrgdo 3825e39ce84cSmrg IFS=$as_save_IFS 3826e39ce84cSmrg case $as_dir in #((( 3827e39ce84cSmrg '') as_dir=./ ;; 3828e39ce84cSmrg */) ;; 3829e39ce84cSmrg *) as_dir=$as_dir/ ;; 3830e39ce84cSmrg esac 3831e39ce84cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3832e39ce84cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3833e39ce84cSmrg ac_cv_prog_ac_ct_CC="clang" 3834e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3835e39ce84cSmrg break 2 3836e39ce84cSmrg fi 3837e39ce84cSmrgdone 3838e39ce84cSmrg done 3839e39ce84cSmrgIFS=$as_save_IFS 3840e39ce84cSmrg 384146374b8dSmrgfi ;; 384246374b8dSmrgesac 3843e39ce84cSmrgfi 3844e39ce84cSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3845e39ce84cSmrgif test -n "$ac_ct_CC"; then 3846e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3847e39ce84cSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 3848e39ce84cSmrgelse 3849e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3850e39ce84cSmrgprintf "%s\n" "no" >&6; } 3851e39ce84cSmrgfi 3852e39ce84cSmrg 3853e39ce84cSmrg if test "x$ac_ct_CC" = x; then 3854e39ce84cSmrg CC="" 3855e39ce84cSmrg else 3856e39ce84cSmrg case $cross_compiling:$ac_tool_warned in 3857e39ce84cSmrgyes:) 3858e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3859e39ce84cSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3860e39ce84cSmrgac_tool_warned=yes ;; 3861e39ce84cSmrgesac 3862e39ce84cSmrg CC=$ac_ct_CC 3863e39ce84cSmrg fi 3864e39ce84cSmrgelse 3865e39ce84cSmrg CC="$ac_cv_prog_CC" 3866e39ce84cSmrgfi 3867e39ce84cSmrg 3868e39ce84cSmrgfi 3869e39ce84cSmrg 3870e39ce84cSmrg 387146374b8dSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 387246374b8dSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 38738f65982aSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 387446374b8dSmrgSee 'config.log' for more details" "$LINENO" 5; } 38759aa228fdSmrg 38769aa228fdSmrg# Provide some information about the compiler. 3877e39ce84cSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 38788f65982aSmrgset X $ac_compile 38798f65982aSmrgac_compiler=$2 3880e39ce84cSmrgfor ac_option in --version -v -V -qversion -version; do 38818f65982aSmrg { { ac_try="$ac_compiler $ac_option >&5" 38829aa228fdSmrgcase "(($ac_try" in 38839aa228fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38849aa228fdSmrg *) ac_try_echo=$ac_try;; 38859aa228fdSmrgesac 38868f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3887e39ce84cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 38888f65982aSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 38899aa228fdSmrg ac_status=$? 38908f65982aSmrg if test -s conftest.err; then 38918f65982aSmrg sed '10a\ 38928f65982aSmrg... rest of stderr output deleted ... 38938f65982aSmrg 10q' conftest.err >conftest.er1 38948f65982aSmrg cat conftest.er1 >&5 38958f65982aSmrg fi 38968f65982aSmrg rm -f conftest.er1 conftest.err 3897e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38988f65982aSmrg test $ac_status = 0; } 38998f65982aSmrgdone 39009aa228fdSmrg 39018f65982aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 39029aa228fdSmrg/* end confdefs.h. */ 39039aa228fdSmrg 39049aa228fdSmrgint 3905e39ce84cSmrgmain (void) 39069aa228fdSmrg{ 39079aa228fdSmrg 39089aa228fdSmrg ; 39099aa228fdSmrg return 0; 39109aa228fdSmrg} 39119aa228fdSmrg_ACEOF 39129aa228fdSmrgac_clean_files_save=$ac_clean_files 39138f65982aSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 39149aa228fdSmrg# Try to create an executable without -o first, disregard a.out. 39159aa228fdSmrg# It will help us diagnose broken compilers, and finding out an intuition 39169aa228fdSmrg# of exeext. 3917e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3918e39ce84cSmrgprintf %s "checking whether the C compiler works... " >&6; } 3919e39ce84cSmrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 39208f65982aSmrg 39218f65982aSmrg# The possible output files: 39228f65982aSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 39238f65982aSmrg 39249aa228fdSmrgac_rmfiles= 39259aa228fdSmrgfor ac_file in $ac_files 39269aa228fdSmrgdo 39279aa228fdSmrg case $ac_file in 39288f65982aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 39299aa228fdSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 39309aa228fdSmrg esac 39319aa228fdSmrgdone 39329aa228fdSmrgrm -f $ac_rmfiles 39339aa228fdSmrg 39348f65982aSmrgif { { ac_try="$ac_link_default" 39359aa228fdSmrgcase "(($ac_try" in 39369aa228fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39379aa228fdSmrg *) ac_try_echo=$ac_try;; 39389aa228fdSmrgesac 39398f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3940e39ce84cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 39419aa228fdSmrg (eval "$ac_link_default") 2>&5 39429aa228fdSmrg ac_status=$? 3943e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3944e39ce84cSmrg test $ac_status = 0; } 3945e39ce84cSmrgthen : 394646374b8dSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 394746374b8dSmrg# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 39489aa228fdSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 39499aa228fdSmrg# so that the user can short-circuit this test for compilers unknown to 39509aa228fdSmrg# Autoconf. 39519aa228fdSmrgfor ac_file in $ac_files '' 39529aa228fdSmrgdo 39539aa228fdSmrg test -f "$ac_file" || continue 39549aa228fdSmrg case $ac_file in 39558f65982aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 39569aa228fdSmrg ;; 39579aa228fdSmrg [ab].out ) 39589aa228fdSmrg # We found the default executable, but exeext='' is most 39599aa228fdSmrg # certainly right. 39609aa228fdSmrg break;; 39619aa228fdSmrg *.* ) 3962e39ce84cSmrg if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 39639aa228fdSmrg then :; else 39649aa228fdSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 39659aa228fdSmrg fi 39669aa228fdSmrg # We set ac_cv_exeext here because the later test for it is not 396746374b8dSmrg # safe: cross compilers may not add the suffix if given an '-o' 39689aa228fdSmrg # argument, so we may need to know it at that point already. 39699aa228fdSmrg # Even if this section looks crufty: it has the advantage of 39709aa228fdSmrg # actually working. 39719aa228fdSmrg break;; 39729aa228fdSmrg * ) 39739aa228fdSmrg break;; 39749aa228fdSmrg esac 39759aa228fdSmrgdone 39769aa228fdSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 39779aa228fdSmrg 397846374b8dSmrgelse case e in #( 397946374b8dSmrg e) ac_file='' ;; 398046374b8dSmrgesac 39819aa228fdSmrgfi 3982e39ce84cSmrgif test -z "$ac_file" 3983e39ce84cSmrgthen : 3984e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3985e39ce84cSmrgprintf "%s\n" "no" >&6; } 3986e39ce84cSmrgprintf "%s\n" "$as_me: failed program was:" >&5 39879aa228fdSmrgsed 's/^/| /' conftest.$ac_ext >&5 39888f65982aSmrg 398946374b8dSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 399046374b8dSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 39918f65982aSmrgas_fn_error 77 "C compiler cannot create executables 399246374b8dSmrgSee 'config.log' for more details" "$LINENO" 5; } 399346374b8dSmrgelse case e in #( 399446374b8dSmrg e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 399546374b8dSmrgprintf "%s\n" "yes" >&6; } ;; 399646374b8dSmrgesac 3997e39ce84cSmrgfi 3998e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3999e39ce84cSmrgprintf %s "checking for C compiler default output file name... " >&6; } 4000e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4001e39ce84cSmrgprintf "%s\n" "$ac_file" >&6; } 40028f65982aSmrgac_exeext=$ac_cv_exeext 40039aa228fdSmrg 40048f65982aSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 40059aa228fdSmrgac_clean_files=$ac_clean_files_save 4006e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4007e39ce84cSmrgprintf %s "checking for suffix of executables... " >&6; } 40088f65982aSmrgif { { ac_try="$ac_link" 40099aa228fdSmrgcase "(($ac_try" in 40109aa228fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40119aa228fdSmrg *) ac_try_echo=$ac_try;; 40129aa228fdSmrgesac 40138f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4014e39ce84cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 40159aa228fdSmrg (eval "$ac_link") 2>&5 40169aa228fdSmrg ac_status=$? 4017e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4018e39ce84cSmrg test $ac_status = 0; } 4019e39ce84cSmrgthen : 402046374b8dSmrg # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 402146374b8dSmrg# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 402246374b8dSmrg# work properly (i.e., refer to 'conftest.exe'), while it won't with 402346374b8dSmrg# 'rm'. 40249aa228fdSmrgfor ac_file in conftest.exe conftest conftest.*; do 40259aa228fdSmrg test -f "$ac_file" || continue 40269aa228fdSmrg case $ac_file in 40278f65982aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 40289aa228fdSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 40299aa228fdSmrg break;; 40309aa228fdSmrg * ) break;; 40319aa228fdSmrg esac 40329aa228fdSmrgdone 403346374b8dSmrgelse case e in #( 403446374b8dSmrg e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 403546374b8dSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 40368f65982aSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 403746374b8dSmrgSee 'config.log' for more details" "$LINENO" 5; } ;; 403846374b8dSmrgesac 40399aa228fdSmrgfi 40408f65982aSmrgrm -f conftest conftest$ac_cv_exeext 4041e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4042e39ce84cSmrgprintf "%s\n" "$ac_cv_exeext" >&6; } 40439aa228fdSmrg 40449aa228fdSmrgrm -f conftest.$ac_ext 40459aa228fdSmrgEXEEXT=$ac_cv_exeext 40469aa228fdSmrgac_exeext=$EXEEXT 40478f65982aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 40488f65982aSmrg/* end confdefs.h. */ 40498f65982aSmrg#include <stdio.h> 40508f65982aSmrgint 4051e39ce84cSmrgmain (void) 40528f65982aSmrg{ 40538f65982aSmrgFILE *f = fopen ("conftest.out", "w"); 405446374b8dSmrg if (!f) 405546374b8dSmrg return 1; 40568f65982aSmrg return ferror (f) || fclose (f) != 0; 40578f65982aSmrg 40588f65982aSmrg ; 40598f65982aSmrg return 0; 40608f65982aSmrg} 40619aa228fdSmrg_ACEOF 40628f65982aSmrgac_clean_files="$ac_clean_files conftest.out" 40638f65982aSmrg# Check that the compiler produces executables we can run. If not, either 40648f65982aSmrg# the compiler is broken, or we cross compile. 4065e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4066e39ce84cSmrgprintf %s "checking whether we are cross compiling... " >&6; } 40678f65982aSmrgif test "$cross_compiling" != yes; then 40688f65982aSmrg { { ac_try="$ac_link" 40698f65982aSmrgcase "(($ac_try" in 40708f65982aSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40718f65982aSmrg *) ac_try_echo=$ac_try;; 40728f65982aSmrgesac 40738f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4074e39ce84cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 40758f65982aSmrg (eval "$ac_link") 2>&5 40768f65982aSmrg ac_status=$? 4077e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 40788f65982aSmrg test $ac_status = 0; } 40798f65982aSmrg if { ac_try='./conftest$ac_cv_exeext' 40808f65982aSmrg { { case "(($ac_try" in 40818f65982aSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40828f65982aSmrg *) ac_try_echo=$ac_try;; 40838f65982aSmrgesac 40848f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4085e39ce84cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 40868f65982aSmrg (eval "$ac_try") 2>&5 40878f65982aSmrg ac_status=$? 4088e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 40898f65982aSmrg test $ac_status = 0; }; }; then 40908f65982aSmrg cross_compiling=no 40918f65982aSmrg else 40928f65982aSmrg if test "$cross_compiling" = maybe; then 40938f65982aSmrg cross_compiling=yes 40948f65982aSmrg else 409546374b8dSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 409646374b8dSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4097e39ce84cSmrgas_fn_error 77 "cannot run C compiled programs. 409846374b8dSmrgIf you meant to cross compile, use '--host'. 409946374b8dSmrgSee 'config.log' for more details" "$LINENO" 5; } 41008f65982aSmrg fi 41018f65982aSmrg fi 41028f65982aSmrgfi 4103e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4104e39ce84cSmrgprintf "%s\n" "$cross_compiling" >&6; } 41058f65982aSmrg 410646374b8dSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext \ 410746374b8dSmrg conftest.o conftest.obj conftest.out 41088f65982aSmrgac_clean_files=$ac_clean_files_save 4109e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4110e39ce84cSmrgprintf %s "checking for suffix of object files... " >&6; } 4111e39ce84cSmrgif test ${ac_cv_objext+y} 4112e39ce84cSmrgthen : 4113e39ce84cSmrg printf %s "(cached) " >&6 411446374b8dSmrgelse case e in #( 411546374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41169aa228fdSmrg/* end confdefs.h. */ 41179aa228fdSmrg 41189aa228fdSmrgint 4119e39ce84cSmrgmain (void) 41209aa228fdSmrg{ 41219aa228fdSmrg 41229aa228fdSmrg ; 41239aa228fdSmrg return 0; 41249aa228fdSmrg} 41259aa228fdSmrg_ACEOF 41269aa228fdSmrgrm -f conftest.o conftest.obj 41278f65982aSmrgif { { ac_try="$ac_compile" 41289aa228fdSmrgcase "(($ac_try" in 41299aa228fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41309aa228fdSmrg *) ac_try_echo=$ac_try;; 41319aa228fdSmrgesac 41328f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4133e39ce84cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 41349aa228fdSmrg (eval "$ac_compile") 2>&5 41359aa228fdSmrg ac_status=$? 4136e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4137e39ce84cSmrg test $ac_status = 0; } 4138e39ce84cSmrgthen : 41399aa228fdSmrg for ac_file in conftest.o conftest.obj conftest.*; do 41409aa228fdSmrg test -f "$ac_file" || continue; 41419aa228fdSmrg case $ac_file in 41428f65982aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 41439aa228fdSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 41449aa228fdSmrg break;; 41459aa228fdSmrg esac 41469aa228fdSmrgdone 414746374b8dSmrgelse case e in #( 414846374b8dSmrg e) printf "%s\n" "$as_me: failed program was:" >&5 41499aa228fdSmrgsed 's/^/| /' conftest.$ac_ext >&5 41509aa228fdSmrg 415146374b8dSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 415246374b8dSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 41538f65982aSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 415446374b8dSmrgSee 'config.log' for more details" "$LINENO" 5; } ;; 415546374b8dSmrgesac 41569aa228fdSmrgfi 415746374b8dSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 415846374b8dSmrgesac 41599aa228fdSmrgfi 4160e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4161e39ce84cSmrgprintf "%s\n" "$ac_cv_objext" >&6; } 41629aa228fdSmrgOBJEXT=$ac_cv_objext 41639aa228fdSmrgac_objext=$OBJEXT 4164e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4165e39ce84cSmrgprintf %s "checking whether the compiler supports GNU C... " >&6; } 4166e39ce84cSmrgif test ${ac_cv_c_compiler_gnu+y} 4167e39ce84cSmrgthen : 4168e39ce84cSmrg printf %s "(cached) " >&6 416946374b8dSmrgelse case e in #( 417046374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41719aa228fdSmrg/* end confdefs.h. */ 41729aa228fdSmrg 41739aa228fdSmrgint 4174e39ce84cSmrgmain (void) 41759aa228fdSmrg{ 41769aa228fdSmrg#ifndef __GNUC__ 41779aa228fdSmrg choke me 41789aa228fdSmrg#endif 41799aa228fdSmrg 41809aa228fdSmrg ; 41819aa228fdSmrg return 0; 41829aa228fdSmrg} 41839aa228fdSmrg_ACEOF 4184e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 4185e39ce84cSmrgthen : 41869aa228fdSmrg ac_compiler_gnu=yes 418746374b8dSmrgelse case e in #( 418846374b8dSmrg e) ac_compiler_gnu=no ;; 418946374b8dSmrgesac 41909aa228fdSmrgfi 4191e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41929aa228fdSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 419346374b8dSmrg ;; 419446374b8dSmrgesac 41959aa228fdSmrgfi 4196e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4197e39ce84cSmrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4198e39ce84cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4199e39ce84cSmrg 42008f65982aSmrgif test $ac_compiler_gnu = yes; then 42018f65982aSmrg GCC=yes 42028f65982aSmrgelse 42038f65982aSmrg GCC= 42048f65982aSmrgfi 4205e39ce84cSmrgac_test_CFLAGS=${CFLAGS+y} 42069aa228fdSmrgac_save_CFLAGS=$CFLAGS 4207e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4208e39ce84cSmrgprintf %s "checking whether $CC accepts -g... " >&6; } 4209e39ce84cSmrgif test ${ac_cv_prog_cc_g+y} 4210e39ce84cSmrgthen : 4211e39ce84cSmrg printf %s "(cached) " >&6 421246374b8dSmrgelse case e in #( 421346374b8dSmrg e) ac_save_c_werror_flag=$ac_c_werror_flag 42149aa228fdSmrg ac_c_werror_flag=yes 42159aa228fdSmrg ac_cv_prog_cc_g=no 42169aa228fdSmrg CFLAGS="-g" 42178f65982aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42189aa228fdSmrg/* end confdefs.h. */ 42199aa228fdSmrg 42209aa228fdSmrgint 4221e39ce84cSmrgmain (void) 42229aa228fdSmrg{ 42239aa228fdSmrg 42249aa228fdSmrg ; 42259aa228fdSmrg return 0; 42269aa228fdSmrg} 42279aa228fdSmrg_ACEOF 4228e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 4229e39ce84cSmrgthen : 42309aa228fdSmrg ac_cv_prog_cc_g=yes 423146374b8dSmrgelse case e in #( 423246374b8dSmrg e) CFLAGS="" 42338f65982aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42349aa228fdSmrg/* end confdefs.h. */ 42359aa228fdSmrg 42369aa228fdSmrgint 4237e39ce84cSmrgmain (void) 42389aa228fdSmrg{ 42399aa228fdSmrg 42409aa228fdSmrg ; 42419aa228fdSmrg return 0; 42429aa228fdSmrg} 42439aa228fdSmrg_ACEOF 4244e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 4245e39ce84cSmrgthen : 42469aa228fdSmrg 424746374b8dSmrgelse case e in #( 424846374b8dSmrg e) ac_c_werror_flag=$ac_save_c_werror_flag 42499aa228fdSmrg CFLAGS="-g" 42508f65982aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42519aa228fdSmrg/* end confdefs.h. */ 42529aa228fdSmrg 42539aa228fdSmrgint 4254e39ce84cSmrgmain (void) 42559aa228fdSmrg{ 42569aa228fdSmrg 42579aa228fdSmrg ; 42589aa228fdSmrg return 0; 42599aa228fdSmrg} 42609aa228fdSmrg_ACEOF 4261e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 4262e39ce84cSmrgthen : 42639aa228fdSmrg ac_cv_prog_cc_g=yes 42649aa228fdSmrgfi 426546374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 426646374b8dSmrgesac 42679aa228fdSmrgfi 426846374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 426946374b8dSmrgesac 42709aa228fdSmrgfi 4271e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 427246374b8dSmrg ac_c_werror_flag=$ac_save_c_werror_flag ;; 427346374b8dSmrgesac 42749aa228fdSmrgfi 4275e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4276e39ce84cSmrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4277e39ce84cSmrgif test $ac_test_CFLAGS; then 42789aa228fdSmrg CFLAGS=$ac_save_CFLAGS 42799aa228fdSmrgelif test $ac_cv_prog_cc_g = yes; then 42809aa228fdSmrg if test "$GCC" = yes; then 42819aa228fdSmrg CFLAGS="-g -O2" 42829aa228fdSmrg else 42839aa228fdSmrg CFLAGS="-g" 42849aa228fdSmrg fi 42859aa228fdSmrgelse 42869aa228fdSmrg if test "$GCC" = yes; then 42879aa228fdSmrg CFLAGS="-O2" 42889aa228fdSmrg else 42899aa228fdSmrg CFLAGS= 42909aa228fdSmrg fi 42919aa228fdSmrgfi 4292e39ce84cSmrgac_prog_cc_stdc=no 4293e39ce84cSmrgif test x$ac_prog_cc_stdc = xno 4294e39ce84cSmrgthen : 4295e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4296e39ce84cSmrgprintf %s "checking for $CC option to enable C11 features... " >&6; } 4297e39ce84cSmrgif test ${ac_cv_prog_cc_c11+y} 4298e39ce84cSmrgthen : 4299e39ce84cSmrg printf %s "(cached) " >&6 430046374b8dSmrgelse case e in #( 430146374b8dSmrg e) ac_cv_prog_cc_c11=no 43029aa228fdSmrgac_save_CC=$CC 43038f65982aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 43049aa228fdSmrg/* end confdefs.h. */ 4305e39ce84cSmrg$ac_c_conftest_c11_program 4306e39ce84cSmrg_ACEOF 4307e39ce84cSmrgfor ac_arg in '' -std=gnu11 4308e39ce84cSmrgdo 4309e39ce84cSmrg CC="$ac_save_CC $ac_arg" 4310e39ce84cSmrg if ac_fn_c_try_compile "$LINENO" 4311e39ce84cSmrgthen : 4312e39ce84cSmrg ac_cv_prog_cc_c11=$ac_arg 4313e39ce84cSmrgfi 4314e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 4315e39ce84cSmrg test "x$ac_cv_prog_cc_c11" != "xno" && break 4316e39ce84cSmrgdone 4317e39ce84cSmrgrm -f conftest.$ac_ext 431846374b8dSmrgCC=$ac_save_CC ;; 431946374b8dSmrgesac 4320e39ce84cSmrgfi 43219aa228fdSmrg 4322e39ce84cSmrgif test "x$ac_cv_prog_cc_c11" = xno 4323e39ce84cSmrgthen : 4324e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4325e39ce84cSmrgprintf "%s\n" "unsupported" >&6; } 432646374b8dSmrgelse case e in #( 432746374b8dSmrg e) if test "x$ac_cv_prog_cc_c11" = x 4328e39ce84cSmrgthen : 4329e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4330e39ce84cSmrgprintf "%s\n" "none needed" >&6; } 433146374b8dSmrgelse case e in #( 433246374b8dSmrg e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4333e39ce84cSmrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 433446374b8dSmrg CC="$CC $ac_cv_prog_cc_c11" ;; 433546374b8dSmrgesac 4336e39ce84cSmrgfi 4337e39ce84cSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 433846374b8dSmrg ac_prog_cc_stdc=c11 ;; 433946374b8dSmrgesac 4340e39ce84cSmrgfi 4341e39ce84cSmrgfi 4342e39ce84cSmrgif test x$ac_prog_cc_stdc = xno 4343e39ce84cSmrgthen : 4344e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4345e39ce84cSmrgprintf %s "checking for $CC option to enable C99 features... " >&6; } 4346e39ce84cSmrgif test ${ac_cv_prog_cc_c99+y} 4347e39ce84cSmrgthen : 4348e39ce84cSmrg printf %s "(cached) " >&6 434946374b8dSmrgelse case e in #( 435046374b8dSmrg e) ac_cv_prog_cc_c99=no 4351e39ce84cSmrgac_save_CC=$CC 4352e39ce84cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4353e39ce84cSmrg/* end confdefs.h. */ 4354e39ce84cSmrg$ac_c_conftest_c99_program 4355e39ce84cSmrg_ACEOF 4356e39ce84cSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4357e39ce84cSmrgdo 4358e39ce84cSmrg CC="$ac_save_CC $ac_arg" 4359e39ce84cSmrg if ac_fn_c_try_compile "$LINENO" 4360e39ce84cSmrgthen : 4361e39ce84cSmrg ac_cv_prog_cc_c99=$ac_arg 4362e39ce84cSmrgfi 4363e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 4364e39ce84cSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 4365e39ce84cSmrgdone 4366e39ce84cSmrgrm -f conftest.$ac_ext 436746374b8dSmrgCC=$ac_save_CC ;; 436846374b8dSmrgesac 4369e39ce84cSmrgfi 43709aa228fdSmrg 4371e39ce84cSmrgif test "x$ac_cv_prog_cc_c99" = xno 4372e39ce84cSmrgthen : 4373e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4374e39ce84cSmrgprintf "%s\n" "unsupported" >&6; } 437546374b8dSmrgelse case e in #( 437646374b8dSmrg e) if test "x$ac_cv_prog_cc_c99" = x 4377e39ce84cSmrgthen : 4378e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4379e39ce84cSmrgprintf "%s\n" "none needed" >&6; } 438046374b8dSmrgelse case e in #( 438146374b8dSmrg e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4382e39ce84cSmrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 438346374b8dSmrg CC="$CC $ac_cv_prog_cc_c99" ;; 438446374b8dSmrgesac 4385e39ce84cSmrgfi 4386e39ce84cSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 438746374b8dSmrg ac_prog_cc_stdc=c99 ;; 438846374b8dSmrgesac 4389e39ce84cSmrgfi 4390e39ce84cSmrgfi 4391e39ce84cSmrgif test x$ac_prog_cc_stdc = xno 4392e39ce84cSmrgthen : 4393e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4394e39ce84cSmrgprintf %s "checking for $CC option to enable C89 features... " >&6; } 4395e39ce84cSmrgif test ${ac_cv_prog_cc_c89+y} 4396e39ce84cSmrgthen : 4397e39ce84cSmrg printf %s "(cached) " >&6 439846374b8dSmrgelse case e in #( 439946374b8dSmrg e) ac_cv_prog_cc_c89=no 4400e39ce84cSmrgac_save_CC=$CC 4401e39ce84cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4402e39ce84cSmrg/* end confdefs.h. */ 4403e39ce84cSmrg$ac_c_conftest_c89_program 44049aa228fdSmrg_ACEOF 4405e39ce84cSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 44069aa228fdSmrgdo 44079aa228fdSmrg CC="$ac_save_CC $ac_arg" 4408e39ce84cSmrg if ac_fn_c_try_compile "$LINENO" 4409e39ce84cSmrgthen : 44109aa228fdSmrg ac_cv_prog_cc_c89=$ac_arg 44119aa228fdSmrgfi 4412e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 44139aa228fdSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 44149aa228fdSmrgdone 44159aa228fdSmrgrm -f conftest.$ac_ext 441646374b8dSmrgCC=$ac_save_CC ;; 441746374b8dSmrgesac 44189aa228fdSmrgfi 44199aa228fdSmrg 4420e39ce84cSmrgif test "x$ac_cv_prog_cc_c89" = xno 4421e39ce84cSmrgthen : 4422e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4423e39ce84cSmrgprintf "%s\n" "unsupported" >&6; } 442446374b8dSmrgelse case e in #( 442546374b8dSmrg e) if test "x$ac_cv_prog_cc_c89" = x 4426e39ce84cSmrgthen : 4427e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4428e39ce84cSmrgprintf "%s\n" "none needed" >&6; } 442946374b8dSmrgelse case e in #( 443046374b8dSmrg e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4431e39ce84cSmrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 443246374b8dSmrg CC="$CC $ac_cv_prog_cc_c89" ;; 443346374b8dSmrgesac 4434e39ce84cSmrgfi 4435e39ce84cSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 443646374b8dSmrg ac_prog_cc_stdc=c89 ;; 443746374b8dSmrgesac 4438e39ce84cSmrgfi 44398f65982aSmrgfi 44409aa228fdSmrg 44419aa228fdSmrgac_ext=c 44429aa228fdSmrgac_cpp='$CPP $CPPFLAGS' 44439aa228fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44449aa228fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44459aa228fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 44469aa228fdSmrg 4447e39ce84cSmrg 4448e39ce84cSmrg ac_ext=c 44490c7e83b2Smrgac_cpp='$CPP $CPPFLAGS' 44500c7e83b2Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44510c7e83b2Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44520c7e83b2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4453e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4454e39ce84cSmrgprintf %s "checking whether $CC understands -c and -o together... " >&6; } 4455e39ce84cSmrgif test ${am_cv_prog_cc_c_o+y} 4456e39ce84cSmrgthen : 4457e39ce84cSmrg printf %s "(cached) " >&6 445846374b8dSmrgelse case e in #( 445946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44600c7e83b2Smrg/* end confdefs.h. */ 44610c7e83b2Smrg 44620c7e83b2Smrgint 4463e39ce84cSmrgmain (void) 44640c7e83b2Smrg{ 44650c7e83b2Smrg 44660c7e83b2Smrg ; 44670c7e83b2Smrg return 0; 44680c7e83b2Smrg} 44690c7e83b2Smrg_ACEOF 44700c7e83b2Smrg # Make sure it works both with $CC and with simple cc. 44710c7e83b2Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 44720c7e83b2Smrg # compilers refuse to overwrite an existing .o file with -o, 44730c7e83b2Smrg # though they will create one. 44740c7e83b2Smrg am_cv_prog_cc_c_o=yes 44750c7e83b2Smrg for am_i in 1 2; do 44760c7e83b2Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 44770c7e83b2Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 44780c7e83b2Smrg ac_status=$? 44790c7e83b2Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 44800c7e83b2Smrg (exit $ac_status); } \ 44810c7e83b2Smrg && test -f conftest2.$ac_objext; then 44820c7e83b2Smrg : OK 44830c7e83b2Smrg else 44840c7e83b2Smrg am_cv_prog_cc_c_o=no 44850c7e83b2Smrg break 44860c7e83b2Smrg fi 44870c7e83b2Smrg done 44880c7e83b2Smrg rm -f core conftest* 448946374b8dSmrg unset am_i ;; 449046374b8dSmrgesac 44910c7e83b2Smrgfi 4492e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4493e39ce84cSmrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 44940c7e83b2Smrgif test "$am_cv_prog_cc_c_o" != yes; then 44950c7e83b2Smrg # Losing compiler, so override with the script. 44960c7e83b2Smrg # FIXME: It is wrong to rewrite CC. 44970c7e83b2Smrg # But if we don't then we get into trouble of one sort or another. 44980c7e83b2Smrg # A longer-term fix would be to have automake use am__CC in this case, 44990c7e83b2Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 45000c7e83b2Smrg CC="$am_aux_dir/compile $CC" 45010c7e83b2Smrgfi 45020c7e83b2Smrgac_ext=c 45030c7e83b2Smrgac_cpp='$CPP $CPPFLAGS' 45040c7e83b2Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45050c7e83b2Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45060c7e83b2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 45070c7e83b2Smrg 45080c7e83b2Smrg 45099aa228fdSmrgdepcc="$CC" am_compiler_list= 45109aa228fdSmrg 4511e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4512e39ce84cSmrgprintf %s "checking dependency style of $depcc... " >&6; } 4513e39ce84cSmrgif test ${am_cv_CC_dependencies_compiler_type+y} 4514e39ce84cSmrgthen : 4515e39ce84cSmrg printf %s "(cached) " >&6 451646374b8dSmrgelse case e in #( 451746374b8dSmrg e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 45189aa228fdSmrg # We make a subdir and do the tests there. Otherwise we can end up 45199aa228fdSmrg # making bogus files that we don't know about and never remove. For 45209aa228fdSmrg # instance it was reported that on HP-UX the gcc test will end up 45210c7e83b2Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 45220c7e83b2Smrg # in D". 452380b026c6Smrg rm -rf conftest.dir 45249aa228fdSmrg mkdir conftest.dir 45259aa228fdSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 45269aa228fdSmrg # using a relative directory. 45279aa228fdSmrg cp "$am_depcomp" conftest.dir 45289aa228fdSmrg cd conftest.dir 45299aa228fdSmrg # We will build objects and dependencies in a subdirectory because 45309aa228fdSmrg # it helps to detect inapplicable dependency modes. For instance 45319aa228fdSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 45329aa228fdSmrg # side effect of compilation, but ICC will put the dependencies in 45339aa228fdSmrg # the current directory while Tru64 will put them in the object 45349aa228fdSmrg # directory. 45359aa228fdSmrg mkdir sub 45369aa228fdSmrg 45379aa228fdSmrg am_cv_CC_dependencies_compiler_type=none 45389aa228fdSmrg if test "$am_compiler_list" = ""; then 45399aa228fdSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 45409aa228fdSmrg fi 45418f65982aSmrg am__universal=false 45428f65982aSmrg case " $depcc " in #( 45438f65982aSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 45448f65982aSmrg esac 45458f65982aSmrg 45469aa228fdSmrg for depmode in $am_compiler_list; do 45479aa228fdSmrg # Setup a source with many dependencies, because some compilers 45489aa228fdSmrg # like to wrap large dependency lists on column 80 (with \), and 45499aa228fdSmrg # we should not choose a depcomp mode which is confused by this. 45509aa228fdSmrg # 45519aa228fdSmrg # We need to recreate these files for each test, as the compiler may 45529aa228fdSmrg # overwrite some of them when testing with obscure command lines. 45539aa228fdSmrg # This happens at least with the AIX C compiler. 45549aa228fdSmrg : > sub/conftest.c 45559aa228fdSmrg for i in 1 2 3 4 5 6; do 45569aa228fdSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 45570c7e83b2Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 45580c7e83b2Smrg # Solaris 10 /bin/sh. 45590c7e83b2Smrg echo '/* dummy */' > sub/conftst$i.h 45609aa228fdSmrg done 45619aa228fdSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 45629aa228fdSmrg 45630c7e83b2Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 45648f65982aSmrg # mode. It turns out that the SunPro C++ compiler does not properly 45650c7e83b2Smrg # handle '-M -o', and we need to detect this. Also, some Intel 45660c7e83b2Smrg # versions had trouble with output in subdirs. 45678f65982aSmrg am__obj=sub/conftest.${OBJEXT-o} 45688f65982aSmrg am__minus_obj="-o $am__obj" 45699aa228fdSmrg case $depmode in 45708f65982aSmrg gcc) 45718f65982aSmrg # This depmode causes a compiler race in universal mode. 45728f65982aSmrg test "$am__universal" = false || continue 45738f65982aSmrg ;; 45749aa228fdSmrg nosideeffect) 45750c7e83b2Smrg # After this tag, mechanisms are not by side-effect, so they'll 45760c7e83b2Smrg # only be used when explicitly requested. 45779aa228fdSmrg if test "x$enable_dependency_tracking" = xyes; then 45789aa228fdSmrg continue 45799aa228fdSmrg else 45809aa228fdSmrg break 45819aa228fdSmrg fi 45829aa228fdSmrg ;; 458380b026c6Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 45840c7e83b2Smrg # This compiler won't grok '-c -o', but also, the minuso test has 45858f65982aSmrg # not run yet. These depmodes are late enough in the game, and 45868f65982aSmrg # so weak that their functioning should not be impacted. 45878f65982aSmrg am__obj=conftest.${OBJEXT-o} 45888f65982aSmrg am__minus_obj= 45898f65982aSmrg ;; 45909aa228fdSmrg none) break ;; 45919aa228fdSmrg esac 45929aa228fdSmrg if depmode=$depmode \ 45938f65982aSmrg source=sub/conftest.c object=$am__obj \ 45949aa228fdSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 45958f65982aSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 45969aa228fdSmrg >/dev/null 2>conftest.err && 45979aa228fdSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 45989aa228fdSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 45998f65982aSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 46009aa228fdSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 46019aa228fdSmrg # icc doesn't choke on unknown options, it will just issue warnings 46029aa228fdSmrg # or remarks (even with -Werror). So we grep stderr for any message 46039aa228fdSmrg # that says an option was ignored or not supported. 460446374b8dSmrg # When given -MP, icc 7.0 and 7.1 complain thus: 46059aa228fdSmrg # icc: Command line warning: ignoring option '-M'; no argument required 46069aa228fdSmrg # The diagnosis changed in icc 8.0: 46079aa228fdSmrg # icc: Command line remark: option '-MP' not supported 46089aa228fdSmrg if (grep 'ignoring option' conftest.err || 46099aa228fdSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 46109aa228fdSmrg am_cv_CC_dependencies_compiler_type=$depmode 46119aa228fdSmrg break 46129aa228fdSmrg fi 46139aa228fdSmrg fi 46149aa228fdSmrg done 4615e39ce84cSmrg 4616e39ce84cSmrg cd .. 4617e39ce84cSmrg rm -rf conftest.dir 46189aa228fdSmrgelse 4619e39ce84cSmrg am_cv_CC_dependencies_compiler_type=none 46209aa228fdSmrgfi 462146374b8dSmrg ;; 462246374b8dSmrgesac 46239aa228fdSmrgfi 4624e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4625e39ce84cSmrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4626e39ce84cSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 462783d7c197Smrg 4628e39ce84cSmrg if 4629e39ce84cSmrg test "x$enable_dependency_tracking" != xno \ 4630e39ce84cSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4631e39ce84cSmrg am__fastdepCC_TRUE= 4632e39ce84cSmrg am__fastdepCC_FALSE='#' 46338f65982aSmrgelse 4634e39ce84cSmrg am__fastdepCC_TRUE='#' 4635e39ce84cSmrg am__fastdepCC_FALSE= 463683d7c197Smrgfi 463783d7c197Smrg 463883d7c197Smrg 463983d7c197Smrg 4640e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4641e39ce84cSmrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4642e39ce84cSmrgif test ${ac_cv_c_undeclared_builtin_options+y} 4643e39ce84cSmrgthen : 4644e39ce84cSmrg printf %s "(cached) " >&6 464546374b8dSmrgelse case e in #( 464646374b8dSmrg e) ac_save_CFLAGS=$CFLAGS 4647e39ce84cSmrg ac_cv_c_undeclared_builtin_options='cannot detect' 4648e39ce84cSmrg for ac_arg in '' -fno-builtin; do 4649e39ce84cSmrg CFLAGS="$ac_save_CFLAGS $ac_arg" 4650e39ce84cSmrg # This test program should *not* compile successfully. 4651e39ce84cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 465283d7c197Smrg/* end confdefs.h. */ 46538f65982aSmrg 465483d7c197Smrgint 4655e39ce84cSmrgmain (void) 465683d7c197Smrg{ 4657e39ce84cSmrg(void) strchr; 465883d7c197Smrg ; 465983d7c197Smrg return 0; 466083d7c197Smrg} 466183d7c197Smrg_ACEOF 4662e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 4663e39ce84cSmrgthen : 466483d7c197Smrg 466546374b8dSmrgelse case e in #( 466646374b8dSmrg e) # This test program should compile successfully. 4667e39ce84cSmrg # No library function is consistently available on 4668e39ce84cSmrg # freestanding implementations, so test against a dummy 4669e39ce84cSmrg # declaration. Include always-available headers on the 4670e39ce84cSmrg # off chance that they somehow elicit warnings. 4671e39ce84cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 467283d7c197Smrg/* end confdefs.h. */ 4673e39ce84cSmrg#include <float.h> 4674e39ce84cSmrg#include <limits.h> 4675e39ce84cSmrg#include <stdarg.h> 4676e39ce84cSmrg#include <stddef.h> 4677e39ce84cSmrgextern void ac_decl (int, char *); 467883d7c197Smrg 467983d7c197Smrgint 4680e39ce84cSmrgmain (void) 468183d7c197Smrg{ 4682e39ce84cSmrg(void) ac_decl (0, (char *) 0); 4683e39ce84cSmrg (void) ac_decl; 4684e39ce84cSmrg 4685e39ce84cSmrg ; 468683d7c197Smrg return 0; 468783d7c197Smrg} 468883d7c197Smrg_ACEOF 4689e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 4690e39ce84cSmrgthen : 4691e39ce84cSmrg if test x"$ac_arg" = x 4692e39ce84cSmrgthen : 4693e39ce84cSmrg ac_cv_c_undeclared_builtin_options='none needed' 469446374b8dSmrgelse case e in #( 469546374b8dSmrg e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 469646374b8dSmrgesac 46978f65982aSmrgfi 4698e39ce84cSmrg break 469983d7c197Smrgfi 470046374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 470146374b8dSmrgesac 47028f65982aSmrgfi 4703e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4704e39ce84cSmrg done 4705e39ce84cSmrg CFLAGS=$ac_save_CFLAGS 470646374b8dSmrg ;; 470746374b8dSmrgesac 4708e39ce84cSmrgfi 4709e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4710e39ce84cSmrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4711e39ce84cSmrg case $ac_cv_c_undeclared_builtin_options in #( 4712e39ce84cSmrg 'cannot detect') : 471346374b8dSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 471446374b8dSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4715e39ce84cSmrgas_fn_error $? "cannot make $CC report undeclared builtins 471646374b8dSmrgSee 'config.log' for more details" "$LINENO" 5; } ;; #( 4717e39ce84cSmrg 'none needed') : 4718e39ce84cSmrg ac_c_undeclared_builtin_options='' ;; #( 4719e39ce84cSmrg *) : 4720e39ce84cSmrg ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4721e39ce84cSmrgesac 4722e39ce84cSmrg 4723e39ce84cSmrgac_header= ac_cache= 4724e39ce84cSmrgfor ac_item in $ac_header_c_list 4725e39ce84cSmrgdo 4726e39ce84cSmrg if test $ac_cache; then 4727e39ce84cSmrg ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4728e39ce84cSmrg if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4729e39ce84cSmrg printf "%s\n" "#define $ac_item 1" >> confdefs.h 4730e39ce84cSmrg fi 4731e39ce84cSmrg ac_header= ac_cache= 4732e39ce84cSmrg elif test $ac_header; then 4733e39ce84cSmrg ac_cache=$ac_item 4734e39ce84cSmrg else 4735e39ce84cSmrg ac_header=$ac_item 4736e39ce84cSmrg fi 4737e39ce84cSmrgdone 4738e39ce84cSmrg 4739e39ce84cSmrg 47408f65982aSmrg 474183d7c197Smrg 47428f65982aSmrg 474383d7c197Smrg 47448f65982aSmrg 474583d7c197Smrg 4746e39ce84cSmrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4747e39ce84cSmrgthen : 474883d7c197Smrg 4749e39ce84cSmrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4750e39ce84cSmrg 4751e39ce84cSmrgfi 475283d7c197Smrg 475383d7c197Smrg 475480b026c6Smrg 475580b026c6Smrg 4756e39ce84cSmrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4757e39ce84cSmrgif test "x$ac_cv_have_decl___clang__" = xyes 4758e39ce84cSmrgthen : 475980b026c6Smrg CLANGCC="yes" 476046374b8dSmrgelse case e in #( 476146374b8dSmrg e) CLANGCC="no" ;; 476246374b8dSmrgesac 476380b026c6Smrgfi 4764e39ce84cSmrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4765e39ce84cSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4766e39ce84cSmrgthen : 476780b026c6Smrg INTELCC="yes" 476846374b8dSmrgelse case e in #( 476946374b8dSmrg e) INTELCC="no" ;; 477046374b8dSmrgesac 477180b026c6Smrgfi 4772e39ce84cSmrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4773e39ce84cSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4774e39ce84cSmrgthen : 477580b026c6Smrg SUNCC="yes" 477646374b8dSmrgelse case e in #( 477746374b8dSmrg e) SUNCC="no" ;; 477846374b8dSmrgesac 477980b026c6Smrgfi 478080b026c6Smrg 478180b026c6Smrg 478280b026c6Smrg 478380b026c6Smrg 4784e39ce84cSmrg 4785e39ce84cSmrg 4786e39ce84cSmrg 4787e39ce84cSmrg 478883d7c197Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 478983d7c197Smrg if test -n "$ac_tool_prefix"; then 479083d7c197Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 479183d7c197Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4792e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4793e39ce84cSmrgprintf %s "checking for $ac_word... " >&6; } 4794e39ce84cSmrgif test ${ac_cv_path_PKG_CONFIG+y} 4795e39ce84cSmrgthen : 4796e39ce84cSmrg printf %s "(cached) " >&6 479746374b8dSmrgelse case e in #( 479846374b8dSmrg e) case $PKG_CONFIG in 479983d7c197Smrg [\\/]* | ?:[\\/]*) 480083d7c197Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 480183d7c197Smrg ;; 480283d7c197Smrg *) 480383d7c197Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 480483d7c197Smrgfor as_dir in $PATH 480583d7c197Smrgdo 480683d7c197Smrg IFS=$as_save_IFS 4807e39ce84cSmrg case $as_dir in #((( 4808e39ce84cSmrg '') as_dir=./ ;; 4809e39ce84cSmrg */) ;; 4810e39ce84cSmrg *) as_dir=$as_dir/ ;; 4811e39ce84cSmrg esac 48128f65982aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4813e39ce84cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4814e39ce84cSmrg ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4815e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 481683d7c197Smrg break 2 481783d7c197Smrg fi 481883d7c197Smrgdone 48198f65982aSmrg done 482083d7c197SmrgIFS=$as_save_IFS 482183d7c197Smrg 482283d7c197Smrg ;; 482346374b8dSmrgesac ;; 482483d7c197Smrgesac 482583d7c197Smrgfi 482683d7c197SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 482783d7c197Smrgif test -n "$PKG_CONFIG"; then 4828e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4829e39ce84cSmrgprintf "%s\n" "$PKG_CONFIG" >&6; } 483083d7c197Smrgelse 4831e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4832e39ce84cSmrgprintf "%s\n" "no" >&6; } 483383d7c197Smrgfi 483483d7c197Smrg 483583d7c197Smrg 483683d7c197Smrgfi 483783d7c197Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 483883d7c197Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 483983d7c197Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 484083d7c197Smrgset dummy pkg-config; ac_word=$2 4841e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4842e39ce84cSmrgprintf %s "checking for $ac_word... " >&6; } 4843e39ce84cSmrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4844e39ce84cSmrgthen : 4845e39ce84cSmrg printf %s "(cached) " >&6 484646374b8dSmrgelse case e in #( 484746374b8dSmrg e) case $ac_pt_PKG_CONFIG in 484883d7c197Smrg [\\/]* | ?:[\\/]*) 484983d7c197Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 485083d7c197Smrg ;; 485183d7c197Smrg *) 485283d7c197Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 485383d7c197Smrgfor as_dir in $PATH 485483d7c197Smrgdo 485583d7c197Smrg IFS=$as_save_IFS 4856e39ce84cSmrg case $as_dir in #((( 4857e39ce84cSmrg '') as_dir=./ ;; 4858e39ce84cSmrg */) ;; 4859e39ce84cSmrg *) as_dir=$as_dir/ ;; 4860e39ce84cSmrg esac 48618f65982aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4862e39ce84cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4863e39ce84cSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4864e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 486583d7c197Smrg break 2 486683d7c197Smrg fi 486783d7c197Smrgdone 48688f65982aSmrg done 48699aa228fdSmrgIFS=$as_save_IFS 48709aa228fdSmrg 48719aa228fdSmrg ;; 487246374b8dSmrgesac ;; 48739aa228fdSmrgesac 48749aa228fdSmrgfi 48759aa228fdSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 48769aa228fdSmrgif test -n "$ac_pt_PKG_CONFIG"; then 4877e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4878e39ce84cSmrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 48799aa228fdSmrgelse 4880e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4881e39ce84cSmrgprintf "%s\n" "no" >&6; } 48829aa228fdSmrgfi 48839aa228fdSmrg 48849aa228fdSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 48859aa228fdSmrg PKG_CONFIG="" 48869aa228fdSmrg else 48879aa228fdSmrg case $cross_compiling:$ac_tool_warned in 48889aa228fdSmrgyes:) 4889e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4890e39ce84cSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 48918f65982aSmrgac_tool_warned=yes ;; 48928f65982aSmrgesac 48938f65982aSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 48948f65982aSmrg fi 48959aa228fdSmrgelse 48968f65982aSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 48979aa228fdSmrgfi 489883d7c197Smrg 489983d7c197Smrgfi 49008f65982aSmrgif test -n "$PKG_CONFIG"; then 49018f65982aSmrg _pkg_min_version=0.9.0 4902e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4903e39ce84cSmrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 49048f65982aSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4905e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4906e39ce84cSmrgprintf "%s\n" "yes" >&6; } 49078f65982aSmrg else 4908e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4909e39ce84cSmrgprintf "%s\n" "no" >&6; } 49108f65982aSmrg PKG_CONFIG="" 49118f65982aSmrg fi 49128f65982aSmrgfi 49139aa228fdSmrg 4914e39ce84cSmrg 4915e39ce84cSmrg # Make sure we can run config.sub. 4916e39ce84cSmrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4917e39ce84cSmrg as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4918e39ce84cSmrg 4919e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4920e39ce84cSmrgprintf %s "checking build system type... " >&6; } 4921e39ce84cSmrgif test ${ac_cv_build+y} 4922e39ce84cSmrgthen : 4923e39ce84cSmrg printf %s "(cached) " >&6 492446374b8dSmrgelse case e in #( 492546374b8dSmrg e) ac_build_alias=$build_alias 49269aa228fdSmrgtest "x$ac_build_alias" = x && 4927e39ce84cSmrg ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 49289aa228fdSmrgtest "x$ac_build_alias" = x && 49298f65982aSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4930e39ce84cSmrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4931e39ce84cSmrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 493246374b8dSmrg ;; 493346374b8dSmrgesac 49349aa228fdSmrgfi 4935e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4936e39ce84cSmrgprintf "%s\n" "$ac_cv_build" >&6; } 49379aa228fdSmrgcase $ac_cv_build in 49389aa228fdSmrg*-*-*) ;; 49398f65982aSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 49409aa228fdSmrgesac 49419aa228fdSmrgbuild=$ac_cv_build 49429aa228fdSmrgac_save_IFS=$IFS; IFS='-' 49439aa228fdSmrgset x $ac_cv_build 49449aa228fdSmrgshift 49459aa228fdSmrgbuild_cpu=$1 49469aa228fdSmrgbuild_vendor=$2 49479aa228fdSmrgshift; shift 49489aa228fdSmrg# Remember, the first character of IFS is used to create $*, 49499aa228fdSmrg# except with old shells: 49509aa228fdSmrgbuild_os=$* 49519aa228fdSmrgIFS=$ac_save_IFS 49529aa228fdSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 49539aa228fdSmrg 49549aa228fdSmrg 4955e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4956e39ce84cSmrgprintf %s "checking host system type... " >&6; } 4957e39ce84cSmrgif test ${ac_cv_host+y} 4958e39ce84cSmrgthen : 4959e39ce84cSmrg printf %s "(cached) " >&6 496046374b8dSmrgelse case e in #( 496146374b8dSmrg e) if test "x$host_alias" = x; then 49629aa228fdSmrg ac_cv_host=$ac_cv_build 49639aa228fdSmrgelse 4964e39ce84cSmrg ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4965e39ce84cSmrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 49669aa228fdSmrgfi 496746374b8dSmrg ;; 496846374b8dSmrgesac 49699aa228fdSmrgfi 4970e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4971e39ce84cSmrgprintf "%s\n" "$ac_cv_host" >&6; } 49729aa228fdSmrgcase $ac_cv_host in 49739aa228fdSmrg*-*-*) ;; 49748f65982aSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 49759aa228fdSmrgesac 49769aa228fdSmrghost=$ac_cv_host 49779aa228fdSmrgac_save_IFS=$IFS; IFS='-' 49789aa228fdSmrgset x $ac_cv_host 49799aa228fdSmrgshift 49809aa228fdSmrghost_cpu=$1 49819aa228fdSmrghost_vendor=$2 49829aa228fdSmrgshift; shift 49839aa228fdSmrg# Remember, the first character of IFS is used to create $*, 49849aa228fdSmrg# except with old shells: 49859aa228fdSmrghost_os=$* 49869aa228fdSmrgIFS=$ac_save_IFS 49879aa228fdSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 49889aa228fdSmrg 49899aa228fdSmrg 4990e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4991e39ce84cSmrgprintf %s "checking for a sed that does not truncate output... " >&6; } 4992e39ce84cSmrgif test ${ac_cv_path_SED+y} 4993e39ce84cSmrgthen : 4994e39ce84cSmrg printf %s "(cached) " >&6 499546374b8dSmrgelse case e in #( 499646374b8dSmrg e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 49978f65982aSmrg for ac_i in 1 2 3 4 5 6 7; do 49988f65982aSmrg ac_script="$ac_script$as_nl$ac_script" 49998f65982aSmrg done 50008f65982aSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 50018f65982aSmrg { ac_script=; unset ac_script;} 50028f65982aSmrg if test -z "$SED"; then 50038f65982aSmrg ac_path_SED_found=false 50048f65982aSmrg # Loop through the user's path and test for each of PROGNAME-LIST 50058f65982aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50068f65982aSmrgfor as_dir in $PATH 50078f65982aSmrgdo 50088f65982aSmrg IFS=$as_save_IFS 5009e39ce84cSmrg case $as_dir in #((( 5010e39ce84cSmrg '') as_dir=./ ;; 5011e39ce84cSmrg */) ;; 5012e39ce84cSmrg *) as_dir=$as_dir/ ;; 5013e39ce84cSmrg esac 5014e39ce84cSmrg for ac_prog in sed gsed 5015e39ce84cSmrg do 50168f65982aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5017e39ce84cSmrg ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 50180c7e83b2Smrg as_fn_executable_p "$ac_path_SED" || continue 50198f65982aSmrg# Check for GNU ac_path_SED and select it if it is found. 50208f65982aSmrg # Check for GNU $ac_path_SED 502146374b8dSmrgcase `"$ac_path_SED" --version 2>&1` in #( 50228f65982aSmrg*GNU*) 50238f65982aSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 502446374b8dSmrg#( 50258f65982aSmrg*) 50268f65982aSmrg ac_count=0 5027e39ce84cSmrg printf %s 0123456789 >"conftest.in" 50288f65982aSmrg while : 50298f65982aSmrg do 50308f65982aSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 50318f65982aSmrg mv "conftest.tmp" "conftest.in" 50328f65982aSmrg cp "conftest.in" "conftest.nl" 5033e39ce84cSmrg printf "%s\n" '' >> "conftest.nl" 50348f65982aSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 50358f65982aSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 50368f65982aSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 50378f65982aSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 50388f65982aSmrg # Best one so far, save it but keep looking for a better one 50398f65982aSmrg ac_cv_path_SED="$ac_path_SED" 50408f65982aSmrg ac_path_SED_max=$ac_count 50418f65982aSmrg fi 50428f65982aSmrg # 10*(2^10) chars as input seems more than enough 50438f65982aSmrg test $ac_count -gt 10 && break 50448f65982aSmrg done 50458f65982aSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 50468f65982aSmrgesac 50478f65982aSmrg 50488f65982aSmrg $ac_path_SED_found && break 3 50498f65982aSmrg done 50508f65982aSmrg done 50518f65982aSmrg done 50528f65982aSmrgIFS=$as_save_IFS 50538f65982aSmrg if test -z "$ac_cv_path_SED"; then 50548f65982aSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 50558f65982aSmrg fi 50568f65982aSmrgelse 50578f65982aSmrg ac_cv_path_SED=$SED 50588f65982aSmrgfi 505946374b8dSmrg ;; 506046374b8dSmrgesac 50618f65982aSmrgfi 5062e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5063e39ce84cSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; } 50648f65982aSmrg SED="$ac_cv_path_SED" 50658f65982aSmrg rm -f conftest.sed 50668f65982aSmrg 50678f65982aSmrg 50688f65982aSmrg 50698f65982aSmrg 50708f65982aSmrg 507180b026c6Smrg 507280b026c6Smrg# Check whether --enable-selective-werror was given. 5073e39ce84cSmrgif test ${enable_selective_werror+y} 5074e39ce84cSmrgthen : 507580b026c6Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 507646374b8dSmrgelse case e in #( 507746374b8dSmrg e) SELECTIVE_WERROR=yes ;; 507846374b8dSmrgesac 50798f65982aSmrgfi 50808f65982aSmrg 508180b026c6Smrg 508280b026c6Smrg 508380b026c6Smrg 508480b026c6Smrg 508580b026c6Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 508680b026c6Smrgif test "x$SUNCC" = "xyes"; then 508780b026c6Smrg BASE_CFLAGS="-v" 508880b026c6Smrgelse 508980b026c6Smrg BASE_CFLAGS="" 50908f65982aSmrgfi 50918f65982aSmrg 509280b026c6Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 50938f65982aSmrg 50948f65982aSmrg 50958f65982aSmrg 50968f65982aSmrg 50978f65982aSmrg 50988f65982aSmrg 50998f65982aSmrg 510080b026c6Smrg 510180b026c6Smrg 510280b026c6Smrg 510380b026c6Smrg 510480b026c6Smrg 510580b026c6Smrg 510680b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 510780b026c6Smrg 510880b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 510980b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5110e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5111e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5112e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5113e39ce84cSmrgthen : 5114e39ce84cSmrg printf %s "(cached) " >&6 511546374b8dSmrgelse case e in #( 511646374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 511780b026c6Smrg/* end confdefs.h. */ 511880b026c6Smrgint i; 511980b026c6Smrg_ACEOF 5120e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 5121e39ce84cSmrgthen : 512280b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 512346374b8dSmrgelse case e in #( 512446374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 512546374b8dSmrgesac 512680b026c6Smrgfi 512746374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 512846374b8dSmrgesac 512980b026c6Smrgfi 5130e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5131e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 513280b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 513380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51348f65982aSmrgfi 51358f65982aSmrg 513680b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 513780b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 513880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51398f65982aSmrg fi 514080b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5141e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5142e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5143e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5144e39ce84cSmrgthen : 5145e39ce84cSmrg printf %s "(cached) " >&6 514646374b8dSmrgelse case e in #( 514746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 514880b026c6Smrg/* end confdefs.h. */ 514980b026c6Smrgint i; 515080b026c6Smrg_ACEOF 5151e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 5152e39ce84cSmrgthen : 515380b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 515446374b8dSmrgelse case e in #( 515546374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 515646374b8dSmrgesac 515780b026c6Smrgfi 515846374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 515946374b8dSmrgesac 516080b026c6Smrgfi 5161e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5162e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 516380b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 516480b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51658f65982aSmrgfi 51668f65982aSmrg 516780b026c6Smrgfound="no" 51688f65982aSmrg 516980b026c6Smrg if test $found = "no" ; then 51700c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 517180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 517280b026c6Smrg fi 51738f65982aSmrg 51740c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 517580b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 517680b026c6Smrg fi 51778f65982aSmrg 517880b026c6Smrg CFLAGS="$CFLAGS -Wall" 51798f65982aSmrg 5180e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5181e39ce84cSmrgprintf %s "checking if $CC supports -Wall... " >&6; } 518280b026c6Smrg cacheid=xorg_cv_cc_flag__Wall 5183e39ce84cSmrg if eval test \${$cacheid+y} 5184e39ce84cSmrgthen : 5185e39ce84cSmrg printf %s "(cached) " >&6 518646374b8dSmrgelse case e in #( 518746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 518880b026c6Smrg/* end confdefs.h. */ 518980b026c6Smrgint i; 519080b026c6Smrgint 5191e39ce84cSmrgmain (void) 519280b026c6Smrg{ 51938f65982aSmrg 519480b026c6Smrg ; 519580b026c6Smrg return 0; 519680b026c6Smrg} 51978f65982aSmrg_ACEOF 5198e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 5199e39ce84cSmrgthen : 520080b026c6Smrg eval $cacheid=yes 520146374b8dSmrgelse case e in #( 520246374b8dSmrg e) eval $cacheid=no ;; 520346374b8dSmrgesac 520480b026c6Smrgfi 5205e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 520646374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 520746374b8dSmrgesac 520880b026c6Smrgfi 52098f65982aSmrg 521080b026c6Smrg 521180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 521280b026c6Smrg 521380b026c6Smrg eval supported=\$$cacheid 5214e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5215e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 521680b026c6Smrg if test "$supported" = "yes" ; then 521780b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 521880b026c6Smrg found="yes" 521980b026c6Smrg fi 52208f65982aSmrg fi 52218f65982aSmrg 52228f65982aSmrg 52238f65982aSmrg 52248f65982aSmrg 52258f65982aSmrg 52268f65982aSmrg 52278f65982aSmrg 52288f65982aSmrg 52298f65982aSmrg 52308f65982aSmrg 52318f65982aSmrg 52329aa228fdSmrg 52339aa228fdSmrg 52349aa228fdSmrg 52359aa228fdSmrg 523680b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 52379aa228fdSmrg 523880b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 523980b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5240e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5241e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5242e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5243e39ce84cSmrgthen : 5244e39ce84cSmrg printf %s "(cached) " >&6 524546374b8dSmrgelse case e in #( 524646374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 524780b026c6Smrg/* end confdefs.h. */ 524880b026c6Smrgint i; 524980b026c6Smrg_ACEOF 5250e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 5251e39ce84cSmrgthen : 525280b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 525346374b8dSmrgelse case e in #( 525446374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 525546374b8dSmrgesac 52569aa228fdSmrgfi 525746374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 525846374b8dSmrgesac 52599aa228fdSmrgfi 5260e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5261e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 526280b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 526380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52649aa228fdSmrgfi 52659aa228fdSmrg 526680b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 526780b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 526880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 526980b026c6Smrg fi 527080b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5271e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5272e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5273e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5274e39ce84cSmrgthen : 5275e39ce84cSmrg printf %s "(cached) " >&6 527646374b8dSmrgelse case e in #( 527746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 527880b026c6Smrg/* end confdefs.h. */ 527980b026c6Smrgint i; 528080b026c6Smrg_ACEOF 5281e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 5282e39ce84cSmrgthen : 528380b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 528446374b8dSmrgelse case e in #( 528546374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 528646374b8dSmrgesac 52879aa228fdSmrgfi 528846374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 528946374b8dSmrgesac 529080b026c6Smrgfi 5291e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5292e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 529380b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 529480b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52959aa228fdSmrgfi 52969aa228fdSmrg 529780b026c6Smrgfound="no" 529880b026c6Smrg 529980b026c6Smrg if test $found = "no" ; then 53000c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 530180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 530280b026c6Smrg fi 530380b026c6Smrg 53040c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 530580b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 530680b026c6Smrg fi 530780b026c6Smrg 530880b026c6Smrg CFLAGS="$CFLAGS -Wpointer-arith" 530980b026c6Smrg 5310e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5311e39ce84cSmrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; } 531280b026c6Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 5313e39ce84cSmrg if eval test \${$cacheid+y} 5314e39ce84cSmrgthen : 5315e39ce84cSmrg printf %s "(cached) " >&6 531646374b8dSmrgelse case e in #( 531746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 531880b026c6Smrg/* end confdefs.h. */ 531980b026c6Smrgint i; 532080b026c6Smrgint 5321e39ce84cSmrgmain (void) 532280b026c6Smrg{ 532380b026c6Smrg 532480b026c6Smrg ; 532580b026c6Smrg return 0; 532680b026c6Smrg} 532780b026c6Smrg_ACEOF 5328e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 5329e39ce84cSmrgthen : 533080b026c6Smrg eval $cacheid=yes 533146374b8dSmrgelse case e in #( 533246374b8dSmrg e) eval $cacheid=no ;; 533346374b8dSmrgesac 53349aa228fdSmrgfi 5335e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 533646374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 533746374b8dSmrgesac 53389aa228fdSmrgfi 53399aa228fdSmrg 53409aa228fdSmrg 534180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53429aa228fdSmrg 534380b026c6Smrg eval supported=\$$cacheid 5344e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5345e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 534680b026c6Smrg if test "$supported" = "yes" ; then 534780b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 534880b026c6Smrg found="yes" 534980b026c6Smrg fi 535080b026c6Smrg fi 53519aa228fdSmrg 53529aa228fdSmrg 53539aa228fdSmrg 53549aa228fdSmrg 53559aa228fdSmrg 53569aa228fdSmrg 53579aa228fdSmrg 53589aa228fdSmrg 53599aa228fdSmrg 53609aa228fdSmrg 53619aa228fdSmrg 53629aa228fdSmrg 53639aa228fdSmrg 53649aa228fdSmrg 53658f65982aSmrg 536680b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 53678f65982aSmrg 536880b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 536980b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5370e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5371e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5372e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5373e39ce84cSmrgthen : 5374e39ce84cSmrg printf %s "(cached) " >&6 537546374b8dSmrgelse case e in #( 537646374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 537780b026c6Smrg/* end confdefs.h. */ 537880b026c6Smrgint i; 537980b026c6Smrg_ACEOF 5380e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 5381e39ce84cSmrgthen : 538280b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 538346374b8dSmrgelse case e in #( 538446374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 538546374b8dSmrgesac 538680b026c6Smrgfi 538746374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 538846374b8dSmrgesac 538980b026c6Smrgfi 5390e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5391e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 539280b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 539380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53949aa228fdSmrgfi 53959aa228fdSmrg 539680b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 539780b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 539880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 539980b026c6Smrg fi 540080b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5401e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5402e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5403e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5404e39ce84cSmrgthen : 5405e39ce84cSmrg printf %s "(cached) " >&6 540646374b8dSmrgelse case e in #( 540746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 540880b026c6Smrg/* end confdefs.h. */ 540980b026c6Smrgint i; 541080b026c6Smrg_ACEOF 5411e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 5412e39ce84cSmrgthen : 541380b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 541446374b8dSmrgelse case e in #( 541546374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 541646374b8dSmrgesac 541780b026c6Smrgfi 541846374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 541946374b8dSmrgesac 542080b026c6Smrgfi 5421e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5422e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 542380b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 542480b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 542580b026c6Smrgfi 54269aa228fdSmrg 542780b026c6Smrgfound="no" 54289aa228fdSmrg 542980b026c6Smrg if test $found = "no" ; then 54300c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 543180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 543280b026c6Smrg fi 54339aa228fdSmrg 54340c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 543580b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 543680b026c6Smrg fi 54379aa228fdSmrg 543880b026c6Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 54399aa228fdSmrg 5440e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5441e39ce84cSmrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 544280b026c6Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 5443e39ce84cSmrg if eval test \${$cacheid+y} 5444e39ce84cSmrgthen : 5445e39ce84cSmrg printf %s "(cached) " >&6 544646374b8dSmrgelse case e in #( 544746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 544880b026c6Smrg/* end confdefs.h. */ 544980b026c6Smrgint i; 545080b026c6Smrgint 5451e39ce84cSmrgmain (void) 545280b026c6Smrg{ 545380b026c6Smrg 545480b026c6Smrg ; 545580b026c6Smrg return 0; 545680b026c6Smrg} 545780b026c6Smrg_ACEOF 5458e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 5459e39ce84cSmrgthen : 546080b026c6Smrg eval $cacheid=yes 546146374b8dSmrgelse case e in #( 546246374b8dSmrg e) eval $cacheid=no ;; 546346374b8dSmrgesac 546480b026c6Smrgfi 5465e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 546646374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 546746374b8dSmrgesac 546880b026c6Smrgfi 546980b026c6Smrg 547080b026c6Smrg 547180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 547280b026c6Smrg 547380b026c6Smrg eval supported=\$$cacheid 5474e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5475e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 547680b026c6Smrg if test "$supported" = "yes" ; then 547780b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 547880b026c6Smrg found="yes" 547980b026c6Smrg fi 548080b026c6Smrg fi 548180b026c6Smrg 548280b026c6Smrg 548380b026c6Smrg 548480b026c6Smrg 548580b026c6Smrg 548680b026c6Smrg 548780b026c6Smrg 548880b026c6Smrg 548980b026c6Smrg 549080b026c6Smrg 549180b026c6Smrg 549280b026c6Smrg 549380b026c6Smrg 549480b026c6Smrg 549580b026c6Smrg 549680b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 549780b026c6Smrg 549880b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 549980b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5500e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5501e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5502e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5503e39ce84cSmrgthen : 5504e39ce84cSmrg printf %s "(cached) " >&6 550546374b8dSmrgelse case e in #( 550646374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 550780b026c6Smrg/* end confdefs.h. */ 550880b026c6Smrgint i; 550980b026c6Smrg_ACEOF 5510e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 5511e39ce84cSmrgthen : 551280b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 551346374b8dSmrgelse case e in #( 551446374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 551546374b8dSmrgesac 551680b026c6Smrgfi 551746374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 551846374b8dSmrgesac 551980b026c6Smrgfi 5520e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5521e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 552280b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 552380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 552480b026c6Smrgfi 552580b026c6Smrg 552680b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 552780b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 552880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 552980b026c6Smrg fi 553080b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5531e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5532e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5533e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5534e39ce84cSmrgthen : 5535e39ce84cSmrg printf %s "(cached) " >&6 553646374b8dSmrgelse case e in #( 553746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 553880b026c6Smrg/* end confdefs.h. */ 553980b026c6Smrgint i; 554080b026c6Smrg_ACEOF 5541e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 5542e39ce84cSmrgthen : 554380b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 554446374b8dSmrgelse case e in #( 554546374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 554646374b8dSmrgesac 554780b026c6Smrgfi 554846374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 554946374b8dSmrgesac 555080b026c6Smrgfi 5551e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5552e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 555380b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 555480b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 555580b026c6Smrgfi 555680b026c6Smrg 555780b026c6Smrgfound="no" 555880b026c6Smrg 555980b026c6Smrg if test $found = "no" ; then 55600c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 556180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 556280b026c6Smrg fi 556380b026c6Smrg 55640c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 556580b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 556680b026c6Smrg fi 556780b026c6Smrg 556880b026c6Smrg CFLAGS="$CFLAGS -Wformat=2" 556980b026c6Smrg 5570e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5571e39ce84cSmrgprintf %s "checking if $CC supports -Wformat=2... " >&6; } 55720c7e83b2Smrg cacheid=xorg_cv_cc_flag__Wformat_2 5573e39ce84cSmrg if eval test \${$cacheid+y} 5574e39ce84cSmrgthen : 5575e39ce84cSmrg printf %s "(cached) " >&6 557646374b8dSmrgelse case e in #( 557746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 557880b026c6Smrg/* end confdefs.h. */ 557980b026c6Smrgint i; 558080b026c6Smrgint 5581e39ce84cSmrgmain (void) 558280b026c6Smrg{ 558380b026c6Smrg 558480b026c6Smrg ; 558580b026c6Smrg return 0; 558680b026c6Smrg} 558780b026c6Smrg_ACEOF 5588e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 5589e39ce84cSmrgthen : 559080b026c6Smrg eval $cacheid=yes 559146374b8dSmrgelse case e in #( 559246374b8dSmrg e) eval $cacheid=no ;; 559346374b8dSmrgesac 559480b026c6Smrgfi 5595e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 559646374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 559746374b8dSmrgesac 559880b026c6Smrgfi 559980b026c6Smrg 560080b026c6Smrg 560180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 560280b026c6Smrg 560380b026c6Smrg eval supported=\$$cacheid 5604e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5605e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 560680b026c6Smrg if test "$supported" = "yes" ; then 560780b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 560880b026c6Smrg found="yes" 560980b026c6Smrg fi 561080b026c6Smrg fi 561180b026c6Smrg 561280b026c6Smrg if test $found = "no" ; then 56130c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 561480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 561580b026c6Smrg fi 561680b026c6Smrg 56170c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 561880b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 561980b026c6Smrg fi 562080b026c6Smrg 562180b026c6Smrg CFLAGS="$CFLAGS -Wformat" 562280b026c6Smrg 5623e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5624e39ce84cSmrgprintf %s "checking if $CC supports -Wformat... " >&6; } 562580b026c6Smrg cacheid=xorg_cv_cc_flag__Wformat 5626e39ce84cSmrg if eval test \${$cacheid+y} 5627e39ce84cSmrgthen : 5628e39ce84cSmrg printf %s "(cached) " >&6 562946374b8dSmrgelse case e in #( 563046374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 563180b026c6Smrg/* end confdefs.h. */ 563280b026c6Smrgint i; 563380b026c6Smrgint 5634e39ce84cSmrgmain (void) 563580b026c6Smrg{ 563680b026c6Smrg 563780b026c6Smrg ; 563880b026c6Smrg return 0; 563980b026c6Smrg} 564080b026c6Smrg_ACEOF 5641e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 5642e39ce84cSmrgthen : 564380b026c6Smrg eval $cacheid=yes 564446374b8dSmrgelse case e in #( 564546374b8dSmrg e) eval $cacheid=no ;; 564646374b8dSmrgesac 564780b026c6Smrgfi 5648e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 564946374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 565046374b8dSmrgesac 565180b026c6Smrgfi 565280b026c6Smrg 565380b026c6Smrg 565480b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 565580b026c6Smrg 565680b026c6Smrg eval supported=\$$cacheid 5657e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5658e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 565980b026c6Smrg if test "$supported" = "yes" ; then 566080b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 566180b026c6Smrg found="yes" 566280b026c6Smrg fi 566380b026c6Smrg fi 566480b026c6Smrg 566580b026c6Smrg 566680b026c6Smrg 566780b026c6Smrg 566880b026c6Smrg 566980b026c6Smrg 567080b026c6Smrg 567180b026c6Smrg 567280b026c6Smrg 567380b026c6Smrg 567480b026c6Smrg 567580b026c6Smrg 567680b026c6Smrg 567780b026c6Smrg 567880b026c6Smrg 567980b026c6Smrg 568080b026c6Smrg 568180b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 568280b026c6Smrg 568380b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 568480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5685e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5686e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5687e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5688e39ce84cSmrgthen : 5689e39ce84cSmrg printf %s "(cached) " >&6 569046374b8dSmrgelse case e in #( 569146374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 569280b026c6Smrg/* end confdefs.h. */ 569380b026c6Smrgint i; 569480b026c6Smrg_ACEOF 5695e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 5696e39ce84cSmrgthen : 569780b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 569846374b8dSmrgelse case e in #( 569946374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 570046374b8dSmrgesac 570180b026c6Smrgfi 570246374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 570346374b8dSmrgesac 570480b026c6Smrgfi 5705e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5706e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 570780b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 570880b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 570980b026c6Smrgfi 571080b026c6Smrg 571180b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 571280b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 571380b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 571480b026c6Smrg fi 571580b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5716e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5717e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5718e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5719e39ce84cSmrgthen : 5720e39ce84cSmrg printf %s "(cached) " >&6 572146374b8dSmrgelse case e in #( 572246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 572380b026c6Smrg/* end confdefs.h. */ 572480b026c6Smrgint i; 572580b026c6Smrg_ACEOF 5726e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 5727e39ce84cSmrgthen : 572880b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 572946374b8dSmrgelse case e in #( 573046374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 573146374b8dSmrgesac 573280b026c6Smrgfi 573346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 573446374b8dSmrgesac 573580b026c6Smrgfi 5736e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5737e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 573880b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 573980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 574080b026c6Smrgfi 574180b026c6Smrg 574280b026c6Smrgfound="no" 574380b026c6Smrg 574480b026c6Smrg if test $found = "no" ; then 57450c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 574680b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 574780b026c6Smrg fi 574880b026c6Smrg 57490c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 575080b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 575180b026c6Smrg fi 575280b026c6Smrg 575380b026c6Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 575480b026c6Smrg 5755e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5756e39ce84cSmrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 575780b026c6Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5758e39ce84cSmrg if eval test \${$cacheid+y} 5759e39ce84cSmrgthen : 5760e39ce84cSmrg printf %s "(cached) " >&6 576146374b8dSmrgelse case e in #( 576246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 576380b026c6Smrg/* end confdefs.h. */ 576480b026c6Smrgint i; 576580b026c6Smrgint 5766e39ce84cSmrgmain (void) 576780b026c6Smrg{ 576880b026c6Smrg 576980b026c6Smrg ; 577080b026c6Smrg return 0; 577180b026c6Smrg} 577280b026c6Smrg_ACEOF 5773e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 5774e39ce84cSmrgthen : 577580b026c6Smrg eval $cacheid=yes 577646374b8dSmrgelse case e in #( 577746374b8dSmrg e) eval $cacheid=no ;; 577846374b8dSmrgesac 577980b026c6Smrgfi 5780e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 578146374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 578246374b8dSmrgesac 578380b026c6Smrgfi 578480b026c6Smrg 578580b026c6Smrg 578680b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 578780b026c6Smrg 578880b026c6Smrg eval supported=\$$cacheid 5789e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5790e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 579180b026c6Smrg if test "$supported" = "yes" ; then 579280b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 579380b026c6Smrg found="yes" 579480b026c6Smrg fi 579580b026c6Smrg fi 579680b026c6Smrg 579780b026c6Smrg 579880b026c6Smrg 579980b026c6Smrg 580080b026c6Smrg 580180b026c6Smrg 580280b026c6Smrg 580380b026c6Smrg 580480b026c6Smrg 580580b026c6Smrg 580680b026c6Smrg 580780b026c6Smrg 580880b026c6Smrg 580980b026c6Smrg 581080b026c6Smrg 581180b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 581280b026c6Smrg 581380b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 581480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5815e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5816e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5817e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5818e39ce84cSmrgthen : 5819e39ce84cSmrg printf %s "(cached) " >&6 582046374b8dSmrgelse case e in #( 582146374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 582280b026c6Smrg/* end confdefs.h. */ 582380b026c6Smrgint i; 582480b026c6Smrg_ACEOF 5825e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 5826e39ce84cSmrgthen : 582780b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 582846374b8dSmrgelse case e in #( 582946374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 583046374b8dSmrgesac 583180b026c6Smrgfi 583246374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 583346374b8dSmrgesac 583480b026c6Smrgfi 5835e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5836e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 583780b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 583880b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 583980b026c6Smrgfi 584080b026c6Smrg 584180b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 584280b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 584380b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 584480b026c6Smrg fi 584580b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5846e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5847e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5848e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5849e39ce84cSmrgthen : 5850e39ce84cSmrg printf %s "(cached) " >&6 585146374b8dSmrgelse case e in #( 585246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 585380b026c6Smrg/* end confdefs.h. */ 585480b026c6Smrgint i; 585580b026c6Smrg_ACEOF 5856e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 5857e39ce84cSmrgthen : 585880b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 585946374b8dSmrgelse case e in #( 586046374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 586146374b8dSmrgesac 586280b026c6Smrgfi 586346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 586446374b8dSmrgesac 586580b026c6Smrgfi 5866e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5867e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 586880b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 586980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 587080b026c6Smrgfi 587180b026c6Smrg 587280b026c6Smrgfound="no" 587380b026c6Smrg 587480b026c6Smrg if test $found = "no" ; then 58750c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 587680b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 587780b026c6Smrg fi 587880b026c6Smrg 58790c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 588080b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 588180b026c6Smrg fi 588280b026c6Smrg 588380b026c6Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 588480b026c6Smrg 5885e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5886e39ce84cSmrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 588780b026c6Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5888e39ce84cSmrg if eval test \${$cacheid+y} 5889e39ce84cSmrgthen : 5890e39ce84cSmrg printf %s "(cached) " >&6 589146374b8dSmrgelse case e in #( 589246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 589380b026c6Smrg/* end confdefs.h. */ 589480b026c6Smrgint i; 589580b026c6Smrgint 5896e39ce84cSmrgmain (void) 589780b026c6Smrg{ 589880b026c6Smrg 589980b026c6Smrg ; 590080b026c6Smrg return 0; 590180b026c6Smrg} 590280b026c6Smrg_ACEOF 5903e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 5904e39ce84cSmrgthen : 590580b026c6Smrg eval $cacheid=yes 590646374b8dSmrgelse case e in #( 590746374b8dSmrg e) eval $cacheid=no ;; 590846374b8dSmrgesac 590980b026c6Smrgfi 5910e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 591146374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 591246374b8dSmrgesac 591380b026c6Smrgfi 591480b026c6Smrg 591580b026c6Smrg 591680b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 591780b026c6Smrg 591880b026c6Smrg eval supported=\$$cacheid 5919e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5920e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 592180b026c6Smrg if test "$supported" = "yes" ; then 592280b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 592380b026c6Smrg found="yes" 592480b026c6Smrg fi 592580b026c6Smrg fi 592680b026c6Smrg 592780b026c6Smrg 592880b026c6Smrg 592980b026c6Smrg 593080b026c6Smrg 593180b026c6Smrg 593280b026c6Smrg 593380b026c6Smrg 593480b026c6Smrg 593580b026c6Smrg 593680b026c6Smrg 593780b026c6Smrg 593880b026c6Smrg 593980b026c6Smrg 594080b026c6Smrg 594180b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 594280b026c6Smrg 594380b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 594480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5945e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5946e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5947e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5948e39ce84cSmrgthen : 5949e39ce84cSmrg printf %s "(cached) " >&6 595046374b8dSmrgelse case e in #( 595146374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 595280b026c6Smrg/* end confdefs.h. */ 595380b026c6Smrgint i; 595480b026c6Smrg_ACEOF 5955e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 5956e39ce84cSmrgthen : 595780b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 595846374b8dSmrgelse case e in #( 595946374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 596046374b8dSmrgesac 596180b026c6Smrgfi 596246374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 596346374b8dSmrgesac 596480b026c6Smrgfi 5965e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5966e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 596780b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 596880b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 596980b026c6Smrgfi 597080b026c6Smrg 597180b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 597280b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 597380b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 597480b026c6Smrg fi 597580b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5976e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5977e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5978e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5979e39ce84cSmrgthen : 5980e39ce84cSmrg printf %s "(cached) " >&6 598146374b8dSmrgelse case e in #( 598246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 598380b026c6Smrg/* end confdefs.h. */ 598480b026c6Smrgint i; 598580b026c6Smrg_ACEOF 5986e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 5987e39ce84cSmrgthen : 598880b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 598946374b8dSmrgelse case e in #( 599046374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 599146374b8dSmrgesac 599280b026c6Smrgfi 599346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 599446374b8dSmrgesac 599580b026c6Smrgfi 5996e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5997e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 599880b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 599980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 600080b026c6Smrgfi 600180b026c6Smrg 600280b026c6Smrgfound="no" 600380b026c6Smrg 600480b026c6Smrg if test $found = "no" ; then 60050c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 600680b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 600780b026c6Smrg fi 600880b026c6Smrg 60090c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 601080b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 601180b026c6Smrg fi 601280b026c6Smrg 601380b026c6Smrg CFLAGS="$CFLAGS -Wnested-externs" 601480b026c6Smrg 6015e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6016e39ce84cSmrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; } 601780b026c6Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 6018e39ce84cSmrg if eval test \${$cacheid+y} 6019e39ce84cSmrgthen : 6020e39ce84cSmrg printf %s "(cached) " >&6 602146374b8dSmrgelse case e in #( 602246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 602380b026c6Smrg/* end confdefs.h. */ 602480b026c6Smrgint i; 602580b026c6Smrgint 6026e39ce84cSmrgmain (void) 602780b026c6Smrg{ 602880b026c6Smrg 602980b026c6Smrg ; 603080b026c6Smrg return 0; 603180b026c6Smrg} 603280b026c6Smrg_ACEOF 6033e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 6034e39ce84cSmrgthen : 603580b026c6Smrg eval $cacheid=yes 603646374b8dSmrgelse case e in #( 603746374b8dSmrg e) eval $cacheid=no ;; 603846374b8dSmrgesac 603980b026c6Smrgfi 6040e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 604146374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 604246374b8dSmrgesac 604380b026c6Smrgfi 604480b026c6Smrg 604580b026c6Smrg 604680b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 604780b026c6Smrg 604880b026c6Smrg eval supported=\$$cacheid 6049e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6050e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 605180b026c6Smrg if test "$supported" = "yes" ; then 605280b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 605380b026c6Smrg found="yes" 605480b026c6Smrg fi 605580b026c6Smrg fi 605680b026c6Smrg 605780b026c6Smrg 605880b026c6Smrg 605980b026c6Smrg 606080b026c6Smrg 606180b026c6Smrg 606280b026c6Smrg 606380b026c6Smrg 606480b026c6Smrg 606580b026c6Smrg 606680b026c6Smrg 606780b026c6Smrg 606880b026c6Smrg 606980b026c6Smrg 607080b026c6Smrg 607180b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 607280b026c6Smrg 607380b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 607480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6075e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6076e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6077e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6078e39ce84cSmrgthen : 6079e39ce84cSmrg printf %s "(cached) " >&6 608046374b8dSmrgelse case e in #( 608146374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 608280b026c6Smrg/* end confdefs.h. */ 608380b026c6Smrgint i; 608480b026c6Smrg_ACEOF 6085e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 6086e39ce84cSmrgthen : 608780b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 608846374b8dSmrgelse case e in #( 608946374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 609046374b8dSmrgesac 609180b026c6Smrgfi 609246374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 609346374b8dSmrgesac 609480b026c6Smrgfi 6095e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6096e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 609780b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 609880b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 609980b026c6Smrgfi 610080b026c6Smrg 610180b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 610280b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 610380b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 610480b026c6Smrg fi 610580b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6106e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6107e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6108e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6109e39ce84cSmrgthen : 6110e39ce84cSmrg printf %s "(cached) " >&6 611146374b8dSmrgelse case e in #( 611246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 611380b026c6Smrg/* end confdefs.h. */ 611480b026c6Smrgint i; 611580b026c6Smrg_ACEOF 6116e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 6117e39ce84cSmrgthen : 611880b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 611946374b8dSmrgelse case e in #( 612046374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 612146374b8dSmrgesac 612280b026c6Smrgfi 612346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 612446374b8dSmrgesac 612580b026c6Smrgfi 6126e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6127e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 612880b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 612980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 613080b026c6Smrgfi 613180b026c6Smrg 613280b026c6Smrgfound="no" 613380b026c6Smrg 613480b026c6Smrg if test $found = "no" ; then 61350c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 613680b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 613780b026c6Smrg fi 613880b026c6Smrg 61390c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 614080b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 614180b026c6Smrg fi 614280b026c6Smrg 614380b026c6Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 614480b026c6Smrg 6145e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6146e39ce84cSmrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 614780b026c6Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 6148e39ce84cSmrg if eval test \${$cacheid+y} 6149e39ce84cSmrgthen : 6150e39ce84cSmrg printf %s "(cached) " >&6 615146374b8dSmrgelse case e in #( 615246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 615380b026c6Smrg/* end confdefs.h. */ 615480b026c6Smrgint i; 615580b026c6Smrgint 6156e39ce84cSmrgmain (void) 615780b026c6Smrg{ 615880b026c6Smrg 615980b026c6Smrg ; 616080b026c6Smrg return 0; 616180b026c6Smrg} 616280b026c6Smrg_ACEOF 6163e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 6164e39ce84cSmrgthen : 616580b026c6Smrg eval $cacheid=yes 616646374b8dSmrgelse case e in #( 616746374b8dSmrg e) eval $cacheid=no ;; 616846374b8dSmrgesac 616980b026c6Smrgfi 6170e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 617146374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 617246374b8dSmrgesac 617380b026c6Smrgfi 617480b026c6Smrg 617580b026c6Smrg 617680b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 617780b026c6Smrg 617880b026c6Smrg eval supported=\$$cacheid 6179e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6180e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 618180b026c6Smrg if test "$supported" = "yes" ; then 618280b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 618380b026c6Smrg found="yes" 618480b026c6Smrg fi 618580b026c6Smrg fi 618680b026c6Smrg 618780b026c6Smrg 618880b026c6Smrg 618980b026c6Smrg 619080b026c6Smrg 619180b026c6Smrg 619280b026c6Smrg 619380b026c6Smrg 619480b026c6Smrg 619580b026c6Smrg 619680b026c6Smrg 619780b026c6Smrg 619880b026c6Smrg 619980b026c6Smrg 620080b026c6Smrg 620180b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 620280b026c6Smrg 620380b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 620480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6205e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6206e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6207e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6208e39ce84cSmrgthen : 6209e39ce84cSmrg printf %s "(cached) " >&6 621046374b8dSmrgelse case e in #( 621146374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 621280b026c6Smrg/* end confdefs.h. */ 621380b026c6Smrgint i; 621480b026c6Smrg_ACEOF 6215e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 6216e39ce84cSmrgthen : 621780b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 621846374b8dSmrgelse case e in #( 621946374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 622046374b8dSmrgesac 622180b026c6Smrgfi 622246374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 622346374b8dSmrgesac 622480b026c6Smrgfi 6225e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6226e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 622780b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 622880b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 622980b026c6Smrgfi 623080b026c6Smrg 623180b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 623280b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 623380b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 623480b026c6Smrg fi 623580b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6236e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6237e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6238e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6239e39ce84cSmrgthen : 6240e39ce84cSmrg printf %s "(cached) " >&6 624146374b8dSmrgelse case e in #( 624246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 624380b026c6Smrg/* end confdefs.h. */ 624480b026c6Smrgint i; 624580b026c6Smrg_ACEOF 6246e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 6247e39ce84cSmrgthen : 624880b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 624946374b8dSmrgelse case e in #( 625046374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 625146374b8dSmrgesac 625280b026c6Smrgfi 625346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 625446374b8dSmrgesac 625580b026c6Smrgfi 6256e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6257e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 625880b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 625980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 626080b026c6Smrgfi 626180b026c6Smrg 626280b026c6Smrgfound="no" 626380b026c6Smrg 626480b026c6Smrg if test $found = "no" ; then 62650c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 626680b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 626780b026c6Smrg fi 626880b026c6Smrg 62690c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 627080b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 627180b026c6Smrg fi 627280b026c6Smrg 627380b026c6Smrg CFLAGS="$CFLAGS -Wold-style-definition" 627480b026c6Smrg 6275e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6276e39ce84cSmrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; } 627780b026c6Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 6278e39ce84cSmrg if eval test \${$cacheid+y} 6279e39ce84cSmrgthen : 6280e39ce84cSmrg printf %s "(cached) " >&6 628146374b8dSmrgelse case e in #( 628246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 628380b026c6Smrg/* end confdefs.h. */ 628480b026c6Smrgint i; 628580b026c6Smrgint 6286e39ce84cSmrgmain (void) 628780b026c6Smrg{ 628880b026c6Smrg 628980b026c6Smrg ; 629080b026c6Smrg return 0; 629180b026c6Smrg} 629280b026c6Smrg_ACEOF 6293e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 6294e39ce84cSmrgthen : 629580b026c6Smrg eval $cacheid=yes 629646374b8dSmrgelse case e in #( 629746374b8dSmrg e) eval $cacheid=no ;; 629846374b8dSmrgesac 629980b026c6Smrgfi 6300e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 630146374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 630246374b8dSmrgesac 630380b026c6Smrgfi 630480b026c6Smrg 630580b026c6Smrg 630680b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 630780b026c6Smrg 630880b026c6Smrg eval supported=\$$cacheid 6309e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6310e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 631180b026c6Smrg if test "$supported" = "yes" ; then 631280b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 631380b026c6Smrg found="yes" 631480b026c6Smrg fi 631580b026c6Smrg fi 631680b026c6Smrg 63170c7e83b2Smrg if test $found = "no" ; then 63180c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 63190c7e83b2Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63200c7e83b2Smrg fi 63210c7e83b2Smrg 63220c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 63230c7e83b2Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63240c7e83b2Smrg fi 63250c7e83b2Smrg 63260c7e83b2Smrg CFLAGS="$CFLAGS -fd" 63270c7e83b2Smrg 6328e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6329e39ce84cSmrgprintf %s "checking if $CC supports -fd... " >&6; } 63300c7e83b2Smrg cacheid=xorg_cv_cc_flag__fd 6331e39ce84cSmrg if eval test \${$cacheid+y} 6332e39ce84cSmrgthen : 6333e39ce84cSmrg printf %s "(cached) " >&6 633446374b8dSmrgelse case e in #( 633546374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63360c7e83b2Smrg/* end confdefs.h. */ 63370c7e83b2Smrgint i; 63380c7e83b2Smrgint 6339e39ce84cSmrgmain (void) 63400c7e83b2Smrg{ 63410c7e83b2Smrg 63420c7e83b2Smrg ; 63430c7e83b2Smrg return 0; 63440c7e83b2Smrg} 63450c7e83b2Smrg_ACEOF 6346e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 6347e39ce84cSmrgthen : 63480c7e83b2Smrg eval $cacheid=yes 634946374b8dSmrgelse case e in #( 635046374b8dSmrg e) eval $cacheid=no ;; 635146374b8dSmrgesac 63520c7e83b2Smrgfi 6353e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 635446374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 635546374b8dSmrgesac 63560c7e83b2Smrgfi 63570c7e83b2Smrg 63580c7e83b2Smrg 63590c7e83b2Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63600c7e83b2Smrg 63610c7e83b2Smrg eval supported=\$$cacheid 6362e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6363e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 63640c7e83b2Smrg if test "$supported" = "yes" ; then 63650c7e83b2Smrg BASE_CFLAGS="$BASE_CFLAGS -fd" 63660c7e83b2Smrg found="yes" 63670c7e83b2Smrg fi 63680c7e83b2Smrg fi 63690c7e83b2Smrg 637080b026c6Smrg 637180b026c6Smrg 637280b026c6Smrg 637380b026c6Smrg 637480b026c6Smrg# This chunk adds additional warnings that could catch undesired effects. 637580b026c6Smrg 637680b026c6Smrg 637780b026c6Smrg 637880b026c6Smrg 637980b026c6Smrg 638080b026c6Smrg 638180b026c6Smrg 638280b026c6Smrg 638380b026c6Smrg 638480b026c6Smrg 638580b026c6Smrg 638680b026c6Smrg 638780b026c6Smrg 638880b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 638980b026c6Smrg 639080b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 639180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6392e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6393e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6394e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6395e39ce84cSmrgthen : 6396e39ce84cSmrg printf %s "(cached) " >&6 639746374b8dSmrgelse case e in #( 639846374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 639980b026c6Smrg/* end confdefs.h. */ 640080b026c6Smrgint i; 640180b026c6Smrg_ACEOF 6402e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 6403e39ce84cSmrgthen : 640480b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 640546374b8dSmrgelse case e in #( 640646374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 640746374b8dSmrgesac 640880b026c6Smrgfi 640946374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 641046374b8dSmrgesac 641180b026c6Smrgfi 6412e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6413e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 641480b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 641580b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 641680b026c6Smrgfi 641780b026c6Smrg 641880b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 641980b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 642080b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 642180b026c6Smrg fi 642280b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6423e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6424e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6425e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6426e39ce84cSmrgthen : 6427e39ce84cSmrg printf %s "(cached) " >&6 642846374b8dSmrgelse case e in #( 642946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 643080b026c6Smrg/* end confdefs.h. */ 643180b026c6Smrgint i; 643280b026c6Smrg_ACEOF 6433e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 6434e39ce84cSmrgthen : 643580b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 643646374b8dSmrgelse case e in #( 643746374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 643846374b8dSmrgesac 643980b026c6Smrgfi 644046374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 644146374b8dSmrgesac 644280b026c6Smrgfi 6443e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6444e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 644580b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 644680b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 644780b026c6Smrgfi 644880b026c6Smrg 644980b026c6Smrgfound="no" 645080b026c6Smrg 645180b026c6Smrg if test $found = "no" ; then 64520c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 645380b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 645480b026c6Smrg fi 645580b026c6Smrg 64560c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 645780b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 645880b026c6Smrg fi 645980b026c6Smrg 646080b026c6Smrg CFLAGS="$CFLAGS -Wunused" 646180b026c6Smrg 6462e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6463e39ce84cSmrgprintf %s "checking if $CC supports -Wunused... " >&6; } 646480b026c6Smrg cacheid=xorg_cv_cc_flag__Wunused 6465e39ce84cSmrg if eval test \${$cacheid+y} 6466e39ce84cSmrgthen : 6467e39ce84cSmrg printf %s "(cached) " >&6 646846374b8dSmrgelse case e in #( 646946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 647080b026c6Smrg/* end confdefs.h. */ 647180b026c6Smrgint i; 647280b026c6Smrgint 6473e39ce84cSmrgmain (void) 647480b026c6Smrg{ 647580b026c6Smrg 647680b026c6Smrg ; 647780b026c6Smrg return 0; 647880b026c6Smrg} 647980b026c6Smrg_ACEOF 6480e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 6481e39ce84cSmrgthen : 648280b026c6Smrg eval $cacheid=yes 648346374b8dSmrgelse case e in #( 648446374b8dSmrg e) eval $cacheid=no ;; 648546374b8dSmrgesac 648680b026c6Smrgfi 6487e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 648846374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 648946374b8dSmrgesac 649080b026c6Smrgfi 649180b026c6Smrg 649280b026c6Smrg 649380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 649480b026c6Smrg 649580b026c6Smrg eval supported=\$$cacheid 6496e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6497e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 649880b026c6Smrg if test "$supported" = "yes" ; then 649980b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 650080b026c6Smrg found="yes" 650180b026c6Smrg fi 650280b026c6Smrg fi 650380b026c6Smrg 650480b026c6Smrg 650580b026c6Smrg 650680b026c6Smrg 650780b026c6Smrg 650880b026c6Smrg 650980b026c6Smrg 651080b026c6Smrg 651180b026c6Smrg 651280b026c6Smrg 651380b026c6Smrg 651480b026c6Smrg 651580b026c6Smrg 651680b026c6Smrg 651780b026c6Smrg 651880b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 651980b026c6Smrg 652080b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 652180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6522e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6523e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6524e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6525e39ce84cSmrgthen : 6526e39ce84cSmrg printf %s "(cached) " >&6 652746374b8dSmrgelse case e in #( 652846374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 652980b026c6Smrg/* end confdefs.h. */ 653080b026c6Smrgint i; 653180b026c6Smrg_ACEOF 6532e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 6533e39ce84cSmrgthen : 653480b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 653546374b8dSmrgelse case e in #( 653646374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 653746374b8dSmrgesac 653880b026c6Smrgfi 653946374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 654046374b8dSmrgesac 654180b026c6Smrgfi 6542e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6543e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 654480b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 654580b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 654680b026c6Smrgfi 654780b026c6Smrg 654880b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 654980b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 655080b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 655180b026c6Smrg fi 655280b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6553e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6554e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6555e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6556e39ce84cSmrgthen : 6557e39ce84cSmrg printf %s "(cached) " >&6 655846374b8dSmrgelse case e in #( 655946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 656080b026c6Smrg/* end confdefs.h. */ 656180b026c6Smrgint i; 656280b026c6Smrg_ACEOF 6563e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 6564e39ce84cSmrgthen : 656580b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 656646374b8dSmrgelse case e in #( 656746374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 656846374b8dSmrgesac 656980b026c6Smrgfi 657046374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 657146374b8dSmrgesac 657280b026c6Smrgfi 6573e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6574e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 657580b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 657680b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 657780b026c6Smrgfi 657880b026c6Smrg 657980b026c6Smrgfound="no" 658080b026c6Smrg 658180b026c6Smrg if test $found = "no" ; then 65820c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 658380b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 658480b026c6Smrg fi 658580b026c6Smrg 65860c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 658780b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 658880b026c6Smrg fi 658980b026c6Smrg 659080b026c6Smrg CFLAGS="$CFLAGS -Wuninitialized" 659180b026c6Smrg 6592e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6593e39ce84cSmrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; } 659480b026c6Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 6595e39ce84cSmrg if eval test \${$cacheid+y} 6596e39ce84cSmrgthen : 6597e39ce84cSmrg printf %s "(cached) " >&6 659846374b8dSmrgelse case e in #( 659946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 660080b026c6Smrg/* end confdefs.h. */ 660180b026c6Smrgint i; 660280b026c6Smrgint 6603e39ce84cSmrgmain (void) 660480b026c6Smrg{ 660580b026c6Smrg 660680b026c6Smrg ; 660780b026c6Smrg return 0; 660880b026c6Smrg} 660980b026c6Smrg_ACEOF 6610e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 6611e39ce84cSmrgthen : 661280b026c6Smrg eval $cacheid=yes 661346374b8dSmrgelse case e in #( 661446374b8dSmrg e) eval $cacheid=no ;; 661546374b8dSmrgesac 661680b026c6Smrgfi 6617e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 661846374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 661946374b8dSmrgesac 662080b026c6Smrgfi 662180b026c6Smrg 662280b026c6Smrg 662380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 662480b026c6Smrg 662580b026c6Smrg eval supported=\$$cacheid 6626e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6627e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 662880b026c6Smrg if test "$supported" = "yes" ; then 662980b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 663080b026c6Smrg found="yes" 663180b026c6Smrg fi 663280b026c6Smrg fi 663380b026c6Smrg 663480b026c6Smrg 663580b026c6Smrg 663680b026c6Smrg 663780b026c6Smrg 663880b026c6Smrg 663980b026c6Smrg 664080b026c6Smrg 664180b026c6Smrg 664280b026c6Smrg 664380b026c6Smrg 664480b026c6Smrg 664580b026c6Smrg 664680b026c6Smrg 664780b026c6Smrg 664880b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 664980b026c6Smrg 665080b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 665180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6652e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6653e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6654e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6655e39ce84cSmrgthen : 6656e39ce84cSmrg printf %s "(cached) " >&6 665746374b8dSmrgelse case e in #( 665846374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 665980b026c6Smrg/* end confdefs.h. */ 666080b026c6Smrgint i; 666180b026c6Smrg_ACEOF 6662e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 6663e39ce84cSmrgthen : 666480b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 666546374b8dSmrgelse case e in #( 666646374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 666746374b8dSmrgesac 666880b026c6Smrgfi 666946374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 667046374b8dSmrgesac 667180b026c6Smrgfi 6672e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6673e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 667480b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 667580b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 667680b026c6Smrgfi 667780b026c6Smrg 667880b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 667980b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 668080b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 668180b026c6Smrg fi 668280b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6683e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6684e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6685e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6686e39ce84cSmrgthen : 6687e39ce84cSmrg printf %s "(cached) " >&6 668846374b8dSmrgelse case e in #( 668946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 669080b026c6Smrg/* end confdefs.h. */ 669180b026c6Smrgint i; 669280b026c6Smrg_ACEOF 6693e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 6694e39ce84cSmrgthen : 669580b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 669646374b8dSmrgelse case e in #( 669746374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 669846374b8dSmrgesac 669980b026c6Smrgfi 670046374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 670146374b8dSmrgesac 670280b026c6Smrgfi 6703e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6704e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 670580b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 670680b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 670780b026c6Smrgfi 670880b026c6Smrg 670980b026c6Smrgfound="no" 671080b026c6Smrg 671180b026c6Smrg if test $found = "no" ; then 67120c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 671380b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 671480b026c6Smrg fi 671580b026c6Smrg 67160c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 671780b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 671880b026c6Smrg fi 671980b026c6Smrg 672080b026c6Smrg CFLAGS="$CFLAGS -Wshadow" 672180b026c6Smrg 6722e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6723e39ce84cSmrgprintf %s "checking if $CC supports -Wshadow... " >&6; } 672480b026c6Smrg cacheid=xorg_cv_cc_flag__Wshadow 6725e39ce84cSmrg if eval test \${$cacheid+y} 6726e39ce84cSmrgthen : 6727e39ce84cSmrg printf %s "(cached) " >&6 672846374b8dSmrgelse case e in #( 672946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 673080b026c6Smrg/* end confdefs.h. */ 673180b026c6Smrgint i; 673280b026c6Smrgint 6733e39ce84cSmrgmain (void) 673480b026c6Smrg{ 673580b026c6Smrg 673680b026c6Smrg ; 673780b026c6Smrg return 0; 673880b026c6Smrg} 673980b026c6Smrg_ACEOF 6740e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 6741e39ce84cSmrgthen : 674280b026c6Smrg eval $cacheid=yes 674346374b8dSmrgelse case e in #( 674446374b8dSmrg e) eval $cacheid=no ;; 674546374b8dSmrgesac 674680b026c6Smrgfi 6747e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 674846374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 674946374b8dSmrgesac 675080b026c6Smrgfi 675180b026c6Smrg 675280b026c6Smrg 675380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 675480b026c6Smrg 675580b026c6Smrg eval supported=\$$cacheid 6756e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6757e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 675880b026c6Smrg if test "$supported" = "yes" ; then 675980b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 676080b026c6Smrg found="yes" 676180b026c6Smrg fi 676280b026c6Smrg fi 676380b026c6Smrg 676480b026c6Smrg 676580b026c6Smrg 676680b026c6Smrg 676780b026c6Smrg 676880b026c6Smrg 676980b026c6Smrg 677080b026c6Smrg 677180b026c6Smrg 677280b026c6Smrg 677380b026c6Smrg 677480b026c6Smrg 677580b026c6Smrg 677680b026c6Smrg 677780b026c6Smrg 677880b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 677980b026c6Smrg 678080b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 678180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6782e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6783e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6784e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6785e39ce84cSmrgthen : 6786e39ce84cSmrg printf %s "(cached) " >&6 678746374b8dSmrgelse case e in #( 678846374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 678980b026c6Smrg/* end confdefs.h. */ 679080b026c6Smrgint i; 679180b026c6Smrg_ACEOF 6792e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 6793e39ce84cSmrgthen : 679480b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 679546374b8dSmrgelse case e in #( 679646374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 679746374b8dSmrgesac 679880b026c6Smrgfi 679946374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 680046374b8dSmrgesac 680180b026c6Smrgfi 6802e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6803e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 680480b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 680580b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 680680b026c6Smrgfi 680780b026c6Smrg 680880b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 680980b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 681080b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 681180b026c6Smrg fi 681280b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6813e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6814e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6815e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6816e39ce84cSmrgthen : 6817e39ce84cSmrg printf %s "(cached) " >&6 681846374b8dSmrgelse case e in #( 681946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 682080b026c6Smrg/* end confdefs.h. */ 682180b026c6Smrgint i; 682280b026c6Smrg_ACEOF 6823e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 6824e39ce84cSmrgthen : 682580b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 682646374b8dSmrgelse case e in #( 682746374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 682846374b8dSmrgesac 682980b026c6Smrgfi 683046374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 683146374b8dSmrgesac 683280b026c6Smrgfi 6833e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6834e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 683580b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 683680b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 683780b026c6Smrgfi 683880b026c6Smrg 683980b026c6Smrgfound="no" 684080b026c6Smrg 684180b026c6Smrg if test $found = "no" ; then 68420c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 684380b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 684480b026c6Smrg fi 684580b026c6Smrg 68460c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 684780b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 684880b026c6Smrg fi 684980b026c6Smrg 68500c7e83b2Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 685180b026c6Smrg 6852e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6853e39ce84cSmrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 68540c7e83b2Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6855e39ce84cSmrg if eval test \${$cacheid+y} 6856e39ce84cSmrgthen : 6857e39ce84cSmrg printf %s "(cached) " >&6 685846374b8dSmrgelse case e in #( 685946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 686080b026c6Smrg/* end confdefs.h. */ 686180b026c6Smrgint i; 686280b026c6Smrgint 6863e39ce84cSmrgmain (void) 686480b026c6Smrg{ 686580b026c6Smrg 686680b026c6Smrg ; 686780b026c6Smrg return 0; 686880b026c6Smrg} 686980b026c6Smrg_ACEOF 6870e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 6871e39ce84cSmrgthen : 687280b026c6Smrg eval $cacheid=yes 687346374b8dSmrgelse case e in #( 687446374b8dSmrg e) eval $cacheid=no ;; 687546374b8dSmrgesac 687680b026c6Smrgfi 6877e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 687846374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 687946374b8dSmrgesac 688080b026c6Smrgfi 688180b026c6Smrg 688280b026c6Smrg 688380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 688480b026c6Smrg 688580b026c6Smrg eval supported=\$$cacheid 6886e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6887e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 688880b026c6Smrg if test "$supported" = "yes" ; then 68890c7e83b2Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 689080b026c6Smrg found="yes" 689180b026c6Smrg fi 689280b026c6Smrg fi 689380b026c6Smrg 689480b026c6Smrg 689580b026c6Smrg 689680b026c6Smrg 689780b026c6Smrg 689880b026c6Smrg 689980b026c6Smrg 690080b026c6Smrg 690180b026c6Smrg 690280b026c6Smrg 690380b026c6Smrg 690480b026c6Smrg 690580b026c6Smrg 690680b026c6Smrg 690780b026c6Smrg 690880b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 690980b026c6Smrg 691080b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 691180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6912e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6913e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6914e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6915e39ce84cSmrgthen : 6916e39ce84cSmrg printf %s "(cached) " >&6 691746374b8dSmrgelse case e in #( 691846374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 691980b026c6Smrg/* end confdefs.h. */ 692080b026c6Smrgint i; 692180b026c6Smrg_ACEOF 6922e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 6923e39ce84cSmrgthen : 692480b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 692546374b8dSmrgelse case e in #( 692646374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 692746374b8dSmrgesac 692880b026c6Smrgfi 692946374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 693046374b8dSmrgesac 693180b026c6Smrgfi 6932e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6933e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 693480b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 693580b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 693680b026c6Smrgfi 693780b026c6Smrg 693880b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 693980b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 694080b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 694180b026c6Smrg fi 694280b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6943e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6944e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6945e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6946e39ce84cSmrgthen : 6947e39ce84cSmrg printf %s "(cached) " >&6 694846374b8dSmrgelse case e in #( 694946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 695080b026c6Smrg/* end confdefs.h. */ 695180b026c6Smrgint i; 695280b026c6Smrg_ACEOF 6953e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 6954e39ce84cSmrgthen : 695580b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 695646374b8dSmrgelse case e in #( 695746374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 695846374b8dSmrgesac 695980b026c6Smrgfi 696046374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 696146374b8dSmrgesac 696280b026c6Smrgfi 6963e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6964e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 696580b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 696680b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 696780b026c6Smrgfi 696880b026c6Smrg 696980b026c6Smrgfound="no" 697080b026c6Smrg 697180b026c6Smrg if test $found = "no" ; then 69720c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 697380b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 697480b026c6Smrg fi 697580b026c6Smrg 69760c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 697780b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 697880b026c6Smrg fi 697980b026c6Smrg 69800c7e83b2Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 698180b026c6Smrg 6982e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6983e39ce84cSmrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 69840c7e83b2Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6985e39ce84cSmrg if eval test \${$cacheid+y} 6986e39ce84cSmrgthen : 6987e39ce84cSmrg printf %s "(cached) " >&6 698846374b8dSmrgelse case e in #( 698946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 699080b026c6Smrg/* end confdefs.h. */ 699180b026c6Smrgint i; 699280b026c6Smrgint 6993e39ce84cSmrgmain (void) 699480b026c6Smrg{ 699580b026c6Smrg 699680b026c6Smrg ; 699780b026c6Smrg return 0; 699880b026c6Smrg} 699980b026c6Smrg_ACEOF 7000e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 7001e39ce84cSmrgthen : 700280b026c6Smrg eval $cacheid=yes 700346374b8dSmrgelse case e in #( 700446374b8dSmrg e) eval $cacheid=no ;; 700546374b8dSmrgesac 700680b026c6Smrgfi 7007e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 700846374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 700946374b8dSmrgesac 701080b026c6Smrgfi 701180b026c6Smrg 701280b026c6Smrg 701380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 701480b026c6Smrg 701580b026c6Smrg eval supported=\$$cacheid 7016e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7017e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 701880b026c6Smrg if test "$supported" = "yes" ; then 70190c7e83b2Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 702080b026c6Smrg found="yes" 702180b026c6Smrg fi 702280b026c6Smrg fi 702380b026c6Smrg 702480b026c6Smrg 702580b026c6Smrg 702680b026c6Smrg 702780b026c6Smrg 702880b026c6Smrg 702980b026c6Smrg 703080b026c6Smrg 703180b026c6Smrg 703280b026c6Smrg 703380b026c6Smrg 703480b026c6Smrg 703580b026c6Smrg 703680b026c6Smrg 703780b026c6Smrg 703880b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 703980b026c6Smrg 704080b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 704180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7042e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7043e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7044e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7045e39ce84cSmrgthen : 7046e39ce84cSmrg printf %s "(cached) " >&6 704746374b8dSmrgelse case e in #( 704846374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 704980b026c6Smrg/* end confdefs.h. */ 705080b026c6Smrgint i; 705180b026c6Smrg_ACEOF 7052e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 7053e39ce84cSmrgthen : 705480b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 705546374b8dSmrgelse case e in #( 705646374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 705746374b8dSmrgesac 705880b026c6Smrgfi 705946374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 706046374b8dSmrgesac 706180b026c6Smrgfi 7062e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7063e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 706480b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 706580b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 706680b026c6Smrgfi 706780b026c6Smrg 706880b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 706980b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 707080b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 707180b026c6Smrg fi 707280b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7073e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7074e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7075e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7076e39ce84cSmrgthen : 7077e39ce84cSmrg printf %s "(cached) " >&6 707846374b8dSmrgelse case e in #( 707946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 708080b026c6Smrg/* end confdefs.h. */ 708180b026c6Smrgint i; 708280b026c6Smrg_ACEOF 7083e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 7084e39ce84cSmrgthen : 708580b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 708646374b8dSmrgelse case e in #( 708746374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 708846374b8dSmrgesac 708980b026c6Smrgfi 709046374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 709146374b8dSmrgesac 709280b026c6Smrgfi 7093e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7094e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 709580b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 709680b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 709780b026c6Smrgfi 709880b026c6Smrg 709980b026c6Smrgfound="no" 710080b026c6Smrg 710180b026c6Smrg if test $found = "no" ; then 71020c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 710380b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 710480b026c6Smrg fi 710580b026c6Smrg 71060c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 710780b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 710880b026c6Smrg fi 710980b026c6Smrg 71100c7e83b2Smrg CFLAGS="$CFLAGS -Wredundant-decls" 711180b026c6Smrg 7112e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7113e39ce84cSmrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; } 71140c7e83b2Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 7115e39ce84cSmrg if eval test \${$cacheid+y} 7116e39ce84cSmrgthen : 7117e39ce84cSmrg printf %s "(cached) " >&6 711846374b8dSmrgelse case e in #( 711946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 712080b026c6Smrg/* end confdefs.h. */ 712180b026c6Smrgint i; 712280b026c6Smrgint 7123e39ce84cSmrgmain (void) 712480b026c6Smrg{ 712580b026c6Smrg 712680b026c6Smrg ; 712780b026c6Smrg return 0; 712880b026c6Smrg} 712980b026c6Smrg_ACEOF 7130e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 7131e39ce84cSmrgthen : 713280b026c6Smrg eval $cacheid=yes 713346374b8dSmrgelse case e in #( 713446374b8dSmrg e) eval $cacheid=no ;; 713546374b8dSmrgesac 713680b026c6Smrgfi 7137e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 713846374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 713946374b8dSmrgesac 714080b026c6Smrgfi 714180b026c6Smrg 714280b026c6Smrg 714380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 714480b026c6Smrg 714580b026c6Smrg eval supported=\$$cacheid 7146e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7147e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 714880b026c6Smrg if test "$supported" = "yes" ; then 71490c7e83b2Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 715080b026c6Smrg found="yes" 715180b026c6Smrg fi 715280b026c6Smrg fi 715380b026c6Smrg 715480b026c6Smrg 715580b026c6Smrg 715680b026c6Smrg 715780b026c6Smrg 715880b026c6Smrg 715980b026c6Smrg 716080b026c6Smrg 716180b026c6Smrg 716280b026c6Smrg 716380b026c6Smrg 716480b026c6Smrg 716580b026c6Smrg 716680b026c6Smrg 716780b026c6Smrg 716880b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 716980b026c6Smrg 717080b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 717180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7172e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7173e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7174e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7175e39ce84cSmrgthen : 7176e39ce84cSmrg printf %s "(cached) " >&6 717746374b8dSmrgelse case e in #( 717846374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 717980b026c6Smrg/* end confdefs.h. */ 718080b026c6Smrgint i; 718180b026c6Smrg_ACEOF 7182e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 7183e39ce84cSmrgthen : 718480b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 718546374b8dSmrgelse case e in #( 718646374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 718746374b8dSmrgesac 718880b026c6Smrgfi 718946374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 719046374b8dSmrgesac 719180b026c6Smrgfi 7192e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7193e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 719480b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 719580b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 719680b026c6Smrgfi 719780b026c6Smrg 719880b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 719980b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 720080b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 720180b026c6Smrg fi 720280b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7203e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7204e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7205e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7206e39ce84cSmrgthen : 7207e39ce84cSmrg printf %s "(cached) " >&6 720846374b8dSmrgelse case e in #( 720946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 721080b026c6Smrg/* end confdefs.h. */ 721180b026c6Smrgint i; 721280b026c6Smrg_ACEOF 7213e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 7214e39ce84cSmrgthen : 721580b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 721646374b8dSmrgelse case e in #( 721746374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 721846374b8dSmrgesac 721980b026c6Smrgfi 722046374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 722146374b8dSmrgesac 722280b026c6Smrgfi 7223e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7224e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 722580b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 722680b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 722780b026c6Smrgfi 722880b026c6Smrg 722980b026c6Smrgfound="no" 723080b026c6Smrg 723180b026c6Smrg if test $found = "no" ; then 72320c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 723380b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 723480b026c6Smrg fi 723580b026c6Smrg 72360c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 723780b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 723880b026c6Smrg fi 723980b026c6Smrg 72400c7e83b2Smrg CFLAGS="$CFLAGS -Wlogical-op" 724180b026c6Smrg 7242e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7243e39ce84cSmrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; } 72440c7e83b2Smrg cacheid=xorg_cv_cc_flag__Wlogical_op 7245e39ce84cSmrg if eval test \${$cacheid+y} 7246e39ce84cSmrgthen : 7247e39ce84cSmrg printf %s "(cached) " >&6 724846374b8dSmrgelse case e in #( 724946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 725080b026c6Smrg/* end confdefs.h. */ 725180b026c6Smrgint i; 725280b026c6Smrgint 7253e39ce84cSmrgmain (void) 725480b026c6Smrg{ 725580b026c6Smrg 725680b026c6Smrg ; 725780b026c6Smrg return 0; 725880b026c6Smrg} 725980b026c6Smrg_ACEOF 7260e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 7261e39ce84cSmrgthen : 726280b026c6Smrg eval $cacheid=yes 726346374b8dSmrgelse case e in #( 726446374b8dSmrg e) eval $cacheid=no ;; 726546374b8dSmrgesac 726680b026c6Smrgfi 7267e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 726846374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 726946374b8dSmrgesac 727080b026c6Smrgfi 727180b026c6Smrg 727280b026c6Smrg 727380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 727480b026c6Smrg 727580b026c6Smrg eval supported=\$$cacheid 7276e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7277e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 727880b026c6Smrg if test "$supported" = "yes" ; then 72790c7e83b2Smrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 728080b026c6Smrg found="yes" 728180b026c6Smrg fi 728280b026c6Smrg fi 728380b026c6Smrg 728480b026c6Smrg 728580b026c6Smrg 728680b026c6Smrg# These are currently disabled because they are noisy. They will be enabled 728780b026c6Smrg# in the future once the codebase is sufficiently modernized to silence 728880b026c6Smrg# them. For now, I don't want them to drown out the other warnings. 728980b026c6Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 729080b026c6Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 72910c7e83b2Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 729280b026c6Smrg 729346374b8dSmrg# Turn some warnings into errors, so we don't accidentally get successful builds 729480b026c6Smrg# when there are problems that should be fixed. 729580b026c6Smrg 729680b026c6Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 729780b026c6Smrg 729880b026c6Smrg 729980b026c6Smrg 730080b026c6Smrg 730180b026c6Smrg 730280b026c6Smrg 730380b026c6Smrg 730480b026c6Smrg 730580b026c6Smrg 730680b026c6Smrg 730780b026c6Smrg 730880b026c6Smrg 730980b026c6Smrg 731080b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 731180b026c6Smrg 731280b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 731380b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7314e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7315e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7316e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7317e39ce84cSmrgthen : 7318e39ce84cSmrg printf %s "(cached) " >&6 731946374b8dSmrgelse case e in #( 732046374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 732180b026c6Smrg/* end confdefs.h. */ 732280b026c6Smrgint i; 732380b026c6Smrg_ACEOF 7324e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 7325e39ce84cSmrgthen : 732680b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 732746374b8dSmrgelse case e in #( 732846374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 732946374b8dSmrgesac 733080b026c6Smrgfi 733146374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 733246374b8dSmrgesac 733380b026c6Smrgfi 7334e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7335e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 733680b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 733780b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 733880b026c6Smrgfi 733980b026c6Smrg 734080b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 734180b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 734280b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 734380b026c6Smrg fi 734480b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7345e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7346e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7347e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7348e39ce84cSmrgthen : 7349e39ce84cSmrg printf %s "(cached) " >&6 735046374b8dSmrgelse case e in #( 735146374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 735280b026c6Smrg/* end confdefs.h. */ 735380b026c6Smrgint i; 735480b026c6Smrg_ACEOF 7355e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 7356e39ce84cSmrgthen : 735780b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 735846374b8dSmrgelse case e in #( 735946374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 736046374b8dSmrgesac 736180b026c6Smrgfi 736246374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 736346374b8dSmrgesac 736480b026c6Smrgfi 7365e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7366e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 736780b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 736880b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 736980b026c6Smrgfi 737080b026c6Smrg 737180b026c6Smrgfound="no" 737280b026c6Smrg 737380b026c6Smrg if test $found = "no" ; then 73740c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 737580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 737680b026c6Smrg fi 737780b026c6Smrg 73780c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 737980b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 738080b026c6Smrg fi 738180b026c6Smrg 738280b026c6Smrg CFLAGS="$CFLAGS -Werror=implicit" 738380b026c6Smrg 7384e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7385e39ce84cSmrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; } 73860c7e83b2Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 7387e39ce84cSmrg if eval test \${$cacheid+y} 7388e39ce84cSmrgthen : 7389e39ce84cSmrg printf %s "(cached) " >&6 739046374b8dSmrgelse case e in #( 739146374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 739280b026c6Smrg/* end confdefs.h. */ 739380b026c6Smrgint i; 739480b026c6Smrgint 7395e39ce84cSmrgmain (void) 739680b026c6Smrg{ 739780b026c6Smrg 739880b026c6Smrg ; 739980b026c6Smrg return 0; 740080b026c6Smrg} 740180b026c6Smrg_ACEOF 7402e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 7403e39ce84cSmrgthen : 740480b026c6Smrg eval $cacheid=yes 740546374b8dSmrgelse case e in #( 740646374b8dSmrg e) eval $cacheid=no ;; 740746374b8dSmrgesac 740880b026c6Smrgfi 7409e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 741046374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 741146374b8dSmrgesac 741280b026c6Smrgfi 741380b026c6Smrg 741480b026c6Smrg 741580b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 741680b026c6Smrg 741780b026c6Smrg eval supported=\$$cacheid 7418e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7419e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 742080b026c6Smrg if test "$supported" = "yes" ; then 742180b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 742280b026c6Smrg found="yes" 742380b026c6Smrg fi 742480b026c6Smrg fi 742580b026c6Smrg 742680b026c6Smrg if test $found = "no" ; then 74270c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 742880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 742980b026c6Smrg fi 743080b026c6Smrg 74310c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 743280b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 743380b026c6Smrg fi 743480b026c6Smrg 743580b026c6Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 743680b026c6Smrg 7437e39ce84cSmrg { 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 7438e39ce84cSmrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 74390c7e83b2Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7440e39ce84cSmrg if eval test \${$cacheid+y} 7441e39ce84cSmrgthen : 7442e39ce84cSmrg printf %s "(cached) " >&6 744346374b8dSmrgelse case e in #( 744446374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 744580b026c6Smrg/* end confdefs.h. */ 744680b026c6Smrgint i; 744780b026c6Smrgint 7448e39ce84cSmrgmain (void) 744980b026c6Smrg{ 745080b026c6Smrg 745180b026c6Smrg ; 745280b026c6Smrg return 0; 745380b026c6Smrg} 745480b026c6Smrg_ACEOF 7455e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 7456e39ce84cSmrgthen : 745780b026c6Smrg eval $cacheid=yes 745846374b8dSmrgelse case e in #( 745946374b8dSmrg e) eval $cacheid=no ;; 746046374b8dSmrgesac 746180b026c6Smrgfi 7462e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 746346374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 746446374b8dSmrgesac 746580b026c6Smrgfi 746680b026c6Smrg 746780b026c6Smrg 746880b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 746980b026c6Smrg 747080b026c6Smrg eval supported=\$$cacheid 7471e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7472e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 747380b026c6Smrg if test "$supported" = "yes" ; then 747480b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 747580b026c6Smrg found="yes" 747680b026c6Smrg fi 747780b026c6Smrg fi 747880b026c6Smrg 747980b026c6Smrg 748080b026c6Smrg 748180b026c6Smrg 748280b026c6Smrg 748380b026c6Smrg 748480b026c6Smrg 748580b026c6Smrg 748680b026c6Smrg 748780b026c6Smrg 748880b026c6Smrg 748980b026c6Smrg 749080b026c6Smrg 749180b026c6Smrg 749280b026c6Smrg 749380b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 749480b026c6Smrg 749580b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 749680b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7497e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7498e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7499e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7500e39ce84cSmrgthen : 7501e39ce84cSmrg printf %s "(cached) " >&6 750246374b8dSmrgelse case e in #( 750346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 750480b026c6Smrg/* end confdefs.h. */ 750580b026c6Smrgint i; 750680b026c6Smrg_ACEOF 7507e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 7508e39ce84cSmrgthen : 750980b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 751046374b8dSmrgelse case e in #( 751146374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 751246374b8dSmrgesac 751380b026c6Smrgfi 751446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 751546374b8dSmrgesac 751680b026c6Smrgfi 7517e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7518e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 751980b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 752080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 752180b026c6Smrgfi 752280b026c6Smrg 752380b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 752480b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 752580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 752680b026c6Smrg fi 752780b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7528e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7529e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7530e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7531e39ce84cSmrgthen : 7532e39ce84cSmrg printf %s "(cached) " >&6 753346374b8dSmrgelse case e in #( 753446374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 753580b026c6Smrg/* end confdefs.h. */ 753680b026c6Smrgint i; 753780b026c6Smrg_ACEOF 7538e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 7539e39ce84cSmrgthen : 754080b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 754146374b8dSmrgelse case e in #( 754246374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 754346374b8dSmrgesac 754480b026c6Smrgfi 754546374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 754646374b8dSmrgesac 754780b026c6Smrgfi 7548e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7549e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 755080b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 755180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 755280b026c6Smrgfi 755380b026c6Smrg 755480b026c6Smrgfound="no" 755580b026c6Smrg 755680b026c6Smrg if test $found = "no" ; then 75570c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 755880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 755980b026c6Smrg fi 756080b026c6Smrg 75610c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 756280b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 756380b026c6Smrg fi 756480b026c6Smrg 756580b026c6Smrg CFLAGS="$CFLAGS -Werror=nonnull" 756680b026c6Smrg 7567e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7568e39ce84cSmrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; } 75690c7e83b2Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 7570e39ce84cSmrg if eval test \${$cacheid+y} 7571e39ce84cSmrgthen : 7572e39ce84cSmrg printf %s "(cached) " >&6 757346374b8dSmrgelse case e in #( 757446374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 757580b026c6Smrg/* end confdefs.h. */ 757680b026c6Smrgint i; 757780b026c6Smrgint 7578e39ce84cSmrgmain (void) 757980b026c6Smrg{ 758080b026c6Smrg 758180b026c6Smrg ; 758280b026c6Smrg return 0; 758380b026c6Smrg} 758480b026c6Smrg_ACEOF 7585e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 7586e39ce84cSmrgthen : 758780b026c6Smrg eval $cacheid=yes 758846374b8dSmrgelse case e in #( 758946374b8dSmrg e) eval $cacheid=no ;; 759046374b8dSmrgesac 759180b026c6Smrgfi 7592e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 759346374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 759446374b8dSmrgesac 759580b026c6Smrgfi 759680b026c6Smrg 759780b026c6Smrg 759880b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 759980b026c6Smrg 760080b026c6Smrg eval supported=\$$cacheid 7601e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7602e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 760380b026c6Smrg if test "$supported" = "yes" ; then 760480b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 760580b026c6Smrg found="yes" 760680b026c6Smrg fi 760780b026c6Smrg fi 760880b026c6Smrg 760980b026c6Smrg 761080b026c6Smrg 761180b026c6Smrg 761280b026c6Smrg 761380b026c6Smrg 761480b026c6Smrg 761580b026c6Smrg 761680b026c6Smrg 761780b026c6Smrg 761880b026c6Smrg 761980b026c6Smrg 762080b026c6Smrg 762180b026c6Smrg 762280b026c6Smrg 762380b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 762480b026c6Smrg 762580b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 762680b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7627e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7628e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7629e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7630e39ce84cSmrgthen : 7631e39ce84cSmrg printf %s "(cached) " >&6 763246374b8dSmrgelse case e in #( 763346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 763480b026c6Smrg/* end confdefs.h. */ 763580b026c6Smrgint i; 763680b026c6Smrg_ACEOF 7637e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 7638e39ce84cSmrgthen : 763980b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 764046374b8dSmrgelse case e in #( 764146374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 764246374b8dSmrgesac 764380b026c6Smrgfi 764446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 764546374b8dSmrgesac 764680b026c6Smrgfi 7647e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7648e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 764980b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 765080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 765180b026c6Smrgfi 765280b026c6Smrg 765380b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 765480b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 765580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 765680b026c6Smrg fi 765780b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7658e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7659e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7660e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7661e39ce84cSmrgthen : 7662e39ce84cSmrg printf %s "(cached) " >&6 766346374b8dSmrgelse case e in #( 766446374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 766580b026c6Smrg/* end confdefs.h. */ 766680b026c6Smrgint i; 766780b026c6Smrg_ACEOF 7668e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 7669e39ce84cSmrgthen : 767080b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 767146374b8dSmrgelse case e in #( 767246374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 767346374b8dSmrgesac 767480b026c6Smrgfi 767546374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 767646374b8dSmrgesac 767780b026c6Smrgfi 7678e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7679e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 768080b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 768180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 768280b026c6Smrgfi 768380b026c6Smrg 768480b026c6Smrgfound="no" 768580b026c6Smrg 768680b026c6Smrg if test $found = "no" ; then 76870c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 768880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 768980b026c6Smrg fi 769080b026c6Smrg 76910c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 769280b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 769380b026c6Smrg fi 769480b026c6Smrg 769580b026c6Smrg CFLAGS="$CFLAGS -Werror=init-self" 769680b026c6Smrg 7697e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7698e39ce84cSmrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; } 76990c7e83b2Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 7700e39ce84cSmrg if eval test \${$cacheid+y} 7701e39ce84cSmrgthen : 7702e39ce84cSmrg printf %s "(cached) " >&6 770346374b8dSmrgelse case e in #( 770446374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 770580b026c6Smrg/* end confdefs.h. */ 770680b026c6Smrgint i; 770780b026c6Smrgint 7708e39ce84cSmrgmain (void) 770980b026c6Smrg{ 771080b026c6Smrg 771180b026c6Smrg ; 771280b026c6Smrg return 0; 771380b026c6Smrg} 771480b026c6Smrg_ACEOF 7715e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 7716e39ce84cSmrgthen : 771780b026c6Smrg eval $cacheid=yes 771846374b8dSmrgelse case e in #( 771946374b8dSmrg e) eval $cacheid=no ;; 772046374b8dSmrgesac 772180b026c6Smrgfi 7722e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 772346374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 772446374b8dSmrgesac 772580b026c6Smrgfi 772680b026c6Smrg 772780b026c6Smrg 772880b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 772980b026c6Smrg 773080b026c6Smrg eval supported=\$$cacheid 7731e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7732e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 773380b026c6Smrg if test "$supported" = "yes" ; then 773480b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 773580b026c6Smrg found="yes" 773680b026c6Smrg fi 773780b026c6Smrg fi 773880b026c6Smrg 773980b026c6Smrg 774080b026c6Smrg 774180b026c6Smrg 774280b026c6Smrg 774380b026c6Smrg 774480b026c6Smrg 774580b026c6Smrg 774680b026c6Smrg 774780b026c6Smrg 774880b026c6Smrg 774980b026c6Smrg 775080b026c6Smrg 775180b026c6Smrg 775280b026c6Smrg 775380b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 775480b026c6Smrg 775580b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 775680b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7757e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7758e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7759e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7760e39ce84cSmrgthen : 7761e39ce84cSmrg printf %s "(cached) " >&6 776246374b8dSmrgelse case e in #( 776346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 776480b026c6Smrg/* end confdefs.h. */ 776580b026c6Smrgint i; 776680b026c6Smrg_ACEOF 7767e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 7768e39ce84cSmrgthen : 776980b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 777046374b8dSmrgelse case e in #( 777146374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 777246374b8dSmrgesac 777380b026c6Smrgfi 777446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 777546374b8dSmrgesac 777680b026c6Smrgfi 7777e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7778e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 777980b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 778080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 778180b026c6Smrgfi 778280b026c6Smrg 778380b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 778480b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 778580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 778680b026c6Smrg fi 778780b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7788e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7789e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7790e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7791e39ce84cSmrgthen : 7792e39ce84cSmrg printf %s "(cached) " >&6 779346374b8dSmrgelse case e in #( 779446374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 779580b026c6Smrg/* end confdefs.h. */ 779680b026c6Smrgint i; 779780b026c6Smrg_ACEOF 7798e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 7799e39ce84cSmrgthen : 780080b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 780146374b8dSmrgelse case e in #( 780246374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 780346374b8dSmrgesac 780480b026c6Smrgfi 780546374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 780646374b8dSmrgesac 780780b026c6Smrgfi 7808e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7809e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 781080b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 781180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 781280b026c6Smrgfi 781380b026c6Smrg 781480b026c6Smrgfound="no" 781580b026c6Smrg 781680b026c6Smrg if test $found = "no" ; then 78170c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 781880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 781980b026c6Smrg fi 782080b026c6Smrg 78210c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 782280b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 782380b026c6Smrg fi 782480b026c6Smrg 782580b026c6Smrg CFLAGS="$CFLAGS -Werror=main" 782680b026c6Smrg 7827e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7828e39ce84cSmrgprintf %s "checking if $CC supports -Werror=main... " >&6; } 78290c7e83b2Smrg cacheid=xorg_cv_cc_flag__Werror_main 7830e39ce84cSmrg if eval test \${$cacheid+y} 7831e39ce84cSmrgthen : 7832e39ce84cSmrg printf %s "(cached) " >&6 783346374b8dSmrgelse case e in #( 783446374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 783580b026c6Smrg/* end confdefs.h. */ 783680b026c6Smrgint i; 783780b026c6Smrgint 7838e39ce84cSmrgmain (void) 783980b026c6Smrg{ 784080b026c6Smrg 784180b026c6Smrg ; 784280b026c6Smrg return 0; 784380b026c6Smrg} 784480b026c6Smrg_ACEOF 7845e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 7846e39ce84cSmrgthen : 784780b026c6Smrg eval $cacheid=yes 784846374b8dSmrgelse case e in #( 784946374b8dSmrg e) eval $cacheid=no ;; 785046374b8dSmrgesac 785180b026c6Smrgfi 7852e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 785346374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 785446374b8dSmrgesac 785580b026c6Smrgfi 785680b026c6Smrg 785780b026c6Smrg 785880b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 785980b026c6Smrg 786080b026c6Smrg eval supported=\$$cacheid 7861e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7862e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 786380b026c6Smrg if test "$supported" = "yes" ; then 786480b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 786580b026c6Smrg found="yes" 786680b026c6Smrg fi 786780b026c6Smrg fi 786880b026c6Smrg 786980b026c6Smrg 787080b026c6Smrg 787180b026c6Smrg 787280b026c6Smrg 787380b026c6Smrg 787480b026c6Smrg 787580b026c6Smrg 787680b026c6Smrg 787780b026c6Smrg 787880b026c6Smrg 787980b026c6Smrg 788080b026c6Smrg 788180b026c6Smrg 788280b026c6Smrg 788380b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 788480b026c6Smrg 788580b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 788680b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7887e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7888e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7889e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7890e39ce84cSmrgthen : 7891e39ce84cSmrg printf %s "(cached) " >&6 789246374b8dSmrgelse case e in #( 789346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 789480b026c6Smrg/* end confdefs.h. */ 789580b026c6Smrgint i; 789680b026c6Smrg_ACEOF 7897e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 7898e39ce84cSmrgthen : 789980b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 790046374b8dSmrgelse case e in #( 790146374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 790246374b8dSmrgesac 790380b026c6Smrgfi 790446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 790546374b8dSmrgesac 790680b026c6Smrgfi 7907e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7908e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 790980b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 791080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 791180b026c6Smrgfi 791280b026c6Smrg 791380b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 791480b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 791580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 791680b026c6Smrg fi 791780b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7918e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7919e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7920e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7921e39ce84cSmrgthen : 7922e39ce84cSmrg printf %s "(cached) " >&6 792346374b8dSmrgelse case e in #( 792446374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 792580b026c6Smrg/* end confdefs.h. */ 792680b026c6Smrgint i; 792780b026c6Smrg_ACEOF 7928e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 7929e39ce84cSmrgthen : 793080b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 793146374b8dSmrgelse case e in #( 793246374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 793346374b8dSmrgesac 793480b026c6Smrgfi 793546374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 793646374b8dSmrgesac 793780b026c6Smrgfi 7938e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7939e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 794080b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 794180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 794280b026c6Smrgfi 794380b026c6Smrg 794480b026c6Smrgfound="no" 794580b026c6Smrg 794680b026c6Smrg if test $found = "no" ; then 79470c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 794880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 794980b026c6Smrg fi 795080b026c6Smrg 79510c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 795280b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 795380b026c6Smrg fi 795480b026c6Smrg 795580b026c6Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 795680b026c6Smrg 7957e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7958e39ce84cSmrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 79590c7e83b2Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 7960e39ce84cSmrg if eval test \${$cacheid+y} 7961e39ce84cSmrgthen : 7962e39ce84cSmrg printf %s "(cached) " >&6 796346374b8dSmrgelse case e in #( 796446374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 796580b026c6Smrg/* end confdefs.h. */ 796680b026c6Smrgint i; 796780b026c6Smrgint 7968e39ce84cSmrgmain (void) 796980b026c6Smrg{ 797080b026c6Smrg 797180b026c6Smrg ; 797280b026c6Smrg return 0; 797380b026c6Smrg} 797480b026c6Smrg_ACEOF 7975e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 7976e39ce84cSmrgthen : 797780b026c6Smrg eval $cacheid=yes 797846374b8dSmrgelse case e in #( 797946374b8dSmrg e) eval $cacheid=no ;; 798046374b8dSmrgesac 798180b026c6Smrgfi 7982e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 798346374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 798446374b8dSmrgesac 798580b026c6Smrgfi 798680b026c6Smrg 798780b026c6Smrg 798880b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 798980b026c6Smrg 799080b026c6Smrg eval supported=\$$cacheid 7991e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7992e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 799380b026c6Smrg if test "$supported" = "yes" ; then 799480b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 799580b026c6Smrg found="yes" 799680b026c6Smrg fi 799780b026c6Smrg fi 799880b026c6Smrg 799980b026c6Smrg 800080b026c6Smrg 800180b026c6Smrg 800280b026c6Smrg 800380b026c6Smrg 800480b026c6Smrg 800580b026c6Smrg 800680b026c6Smrg 800780b026c6Smrg 800880b026c6Smrg 800980b026c6Smrg 801080b026c6Smrg 801180b026c6Smrg 801280b026c6Smrg 801380b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 801480b026c6Smrg 801580b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 801680b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8017e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8018e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8019e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8020e39ce84cSmrgthen : 8021e39ce84cSmrg printf %s "(cached) " >&6 802246374b8dSmrgelse case e in #( 802346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 802480b026c6Smrg/* end confdefs.h. */ 802580b026c6Smrgint i; 802680b026c6Smrg_ACEOF 8027e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 8028e39ce84cSmrgthen : 802980b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 803046374b8dSmrgelse case e in #( 803146374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 803246374b8dSmrgesac 803380b026c6Smrgfi 803446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 803546374b8dSmrgesac 803680b026c6Smrgfi 8037e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8038e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 803980b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 804080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 804180b026c6Smrgfi 804280b026c6Smrg 804380b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 804480b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 804580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 804680b026c6Smrg fi 804780b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8048e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8049e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8050e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8051e39ce84cSmrgthen : 8052e39ce84cSmrg printf %s "(cached) " >&6 805346374b8dSmrgelse case e in #( 805446374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 805580b026c6Smrg/* end confdefs.h. */ 805680b026c6Smrgint i; 805780b026c6Smrg_ACEOF 8058e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 8059e39ce84cSmrgthen : 806080b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 806146374b8dSmrgelse case e in #( 806246374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 806346374b8dSmrgesac 806480b026c6Smrgfi 806546374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 806646374b8dSmrgesac 806780b026c6Smrgfi 8068e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8069e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 807080b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 807180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 807280b026c6Smrgfi 807380b026c6Smrg 807480b026c6Smrgfound="no" 807580b026c6Smrg 807680b026c6Smrg if test $found = "no" ; then 80770c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 807880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 807980b026c6Smrg fi 808080b026c6Smrg 80810c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 808280b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 808380b026c6Smrg fi 808480b026c6Smrg 808580b026c6Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 808680b026c6Smrg 8087e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8088e39ce84cSmrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 80890c7e83b2Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 8090e39ce84cSmrg if eval test \${$cacheid+y} 8091e39ce84cSmrgthen : 8092e39ce84cSmrg printf %s "(cached) " >&6 809346374b8dSmrgelse case e in #( 809446374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 809580b026c6Smrg/* end confdefs.h. */ 809680b026c6Smrgint i; 809780b026c6Smrgint 8098e39ce84cSmrgmain (void) 809980b026c6Smrg{ 810080b026c6Smrg 810180b026c6Smrg ; 810280b026c6Smrg return 0; 810380b026c6Smrg} 810480b026c6Smrg_ACEOF 8105e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 8106e39ce84cSmrgthen : 810780b026c6Smrg eval $cacheid=yes 810846374b8dSmrgelse case e in #( 810946374b8dSmrg e) eval $cacheid=no ;; 811046374b8dSmrgesac 811180b026c6Smrgfi 8112e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 811346374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 811446374b8dSmrgesac 811580b026c6Smrgfi 811680b026c6Smrg 811780b026c6Smrg 811880b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 811980b026c6Smrg 812080b026c6Smrg eval supported=\$$cacheid 8121e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8122e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 812380b026c6Smrg if test "$supported" = "yes" ; then 812480b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 812580b026c6Smrg found="yes" 812680b026c6Smrg fi 812780b026c6Smrg fi 812880b026c6Smrg 812980b026c6Smrg 813080b026c6Smrg 813180b026c6Smrg 813280b026c6Smrg 813380b026c6Smrg 813480b026c6Smrg 813580b026c6Smrg 813680b026c6Smrg 813780b026c6Smrg 813880b026c6Smrg 813980b026c6Smrg 814080b026c6Smrg 814180b026c6Smrg 814280b026c6Smrg 814380b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 814480b026c6Smrg 814580b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 814680b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8147e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8148e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8149e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8150e39ce84cSmrgthen : 8151e39ce84cSmrg printf %s "(cached) " >&6 815246374b8dSmrgelse case e in #( 815346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 815480b026c6Smrg/* end confdefs.h. */ 815580b026c6Smrgint i; 815680b026c6Smrg_ACEOF 8157e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 8158e39ce84cSmrgthen : 815980b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 816046374b8dSmrgelse case e in #( 816146374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 816246374b8dSmrgesac 816380b026c6Smrgfi 816446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 816546374b8dSmrgesac 816680b026c6Smrgfi 8167e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8168e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 816980b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 817080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 817180b026c6Smrgfi 817280b026c6Smrg 817380b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 817480b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 817580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 817680b026c6Smrg fi 817780b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8178e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8179e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8180e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8181e39ce84cSmrgthen : 8182e39ce84cSmrg printf %s "(cached) " >&6 818346374b8dSmrgelse case e in #( 818446374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 818580b026c6Smrg/* end confdefs.h. */ 818680b026c6Smrgint i; 818780b026c6Smrg_ACEOF 8188e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 8189e39ce84cSmrgthen : 819080b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 819146374b8dSmrgelse case e in #( 819246374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 819346374b8dSmrgesac 819480b026c6Smrgfi 819546374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 819646374b8dSmrgesac 819780b026c6Smrgfi 8198e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8199e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 820080b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 820180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 820280b026c6Smrgfi 820380b026c6Smrg 820480b026c6Smrgfound="no" 820580b026c6Smrg 820680b026c6Smrg if test $found = "no" ; then 82070c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 820880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 820980b026c6Smrg fi 821080b026c6Smrg 82110c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 821280b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 821380b026c6Smrg fi 821480b026c6Smrg 821580b026c6Smrg CFLAGS="$CFLAGS -Werror=return-type" 821680b026c6Smrg 8217e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8218e39ce84cSmrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; } 82190c7e83b2Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 8220e39ce84cSmrg if eval test \${$cacheid+y} 8221e39ce84cSmrgthen : 8222e39ce84cSmrg printf %s "(cached) " >&6 822346374b8dSmrgelse case e in #( 822446374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 822580b026c6Smrg/* end confdefs.h. */ 822680b026c6Smrgint i; 822780b026c6Smrgint 8228e39ce84cSmrgmain (void) 822980b026c6Smrg{ 823080b026c6Smrg 823180b026c6Smrg ; 823280b026c6Smrg return 0; 823380b026c6Smrg} 823480b026c6Smrg_ACEOF 8235e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 8236e39ce84cSmrgthen : 823780b026c6Smrg eval $cacheid=yes 823846374b8dSmrgelse case e in #( 823946374b8dSmrg e) eval $cacheid=no ;; 824046374b8dSmrgesac 824180b026c6Smrgfi 8242e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 824346374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 824446374b8dSmrgesac 824580b026c6Smrgfi 824680b026c6Smrg 824780b026c6Smrg 824880b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 824980b026c6Smrg 825080b026c6Smrg eval supported=\$$cacheid 8251e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8252e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 825380b026c6Smrg if test "$supported" = "yes" ; then 825480b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 825580b026c6Smrg found="yes" 825680b026c6Smrg fi 825780b026c6Smrg fi 825880b026c6Smrg 825980b026c6Smrg if test $found = "no" ; then 82600c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 826180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 826280b026c6Smrg fi 826380b026c6Smrg 82640c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 826580b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 826680b026c6Smrg fi 826780b026c6Smrg 826880b026c6Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 826980b026c6Smrg 8270e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8271e39ce84cSmrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 82720c7e83b2Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8273e39ce84cSmrg if eval test \${$cacheid+y} 8274e39ce84cSmrgthen : 8275e39ce84cSmrg printf %s "(cached) " >&6 827646374b8dSmrgelse case e in #( 827746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 827880b026c6Smrg/* end confdefs.h. */ 827980b026c6Smrgint i; 828080b026c6Smrgint 8281e39ce84cSmrgmain (void) 828280b026c6Smrg{ 828380b026c6Smrg 828480b026c6Smrg ; 828580b026c6Smrg return 0; 828680b026c6Smrg} 828780b026c6Smrg_ACEOF 8288e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 8289e39ce84cSmrgthen : 829080b026c6Smrg eval $cacheid=yes 829146374b8dSmrgelse case e in #( 829246374b8dSmrg e) eval $cacheid=no ;; 829346374b8dSmrgesac 829480b026c6Smrgfi 8295e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 829646374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 829746374b8dSmrgesac 829880b026c6Smrgfi 829980b026c6Smrg 830080b026c6Smrg 830180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 830280b026c6Smrg 830380b026c6Smrg eval supported=\$$cacheid 8304e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8305e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 830680b026c6Smrg if test "$supported" = "yes" ; then 830780b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 830880b026c6Smrg found="yes" 830980b026c6Smrg fi 831080b026c6Smrg fi 831180b026c6Smrg 831280b026c6Smrg 831380b026c6Smrg 831480b026c6Smrg 831580b026c6Smrg 831680b026c6Smrg 831780b026c6Smrg 831880b026c6Smrg 831980b026c6Smrg 832080b026c6Smrg 832180b026c6Smrg 832280b026c6Smrg 832380b026c6Smrg 832480b026c6Smrg 832580b026c6Smrg 832680b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 832780b026c6Smrg 832880b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 832980b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8330e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8331e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8332e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8333e39ce84cSmrgthen : 8334e39ce84cSmrg printf %s "(cached) " >&6 833546374b8dSmrgelse case e in #( 833646374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 833780b026c6Smrg/* end confdefs.h. */ 833880b026c6Smrgint i; 833980b026c6Smrg_ACEOF 8340e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 8341e39ce84cSmrgthen : 834280b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 834346374b8dSmrgelse case e in #( 834446374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 834546374b8dSmrgesac 834680b026c6Smrgfi 834746374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 834846374b8dSmrgesac 834980b026c6Smrgfi 8350e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8351e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 835280b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 835380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 835480b026c6Smrgfi 835580b026c6Smrg 835680b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 835780b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 835880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 835980b026c6Smrg fi 836080b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8361e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8362e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8363e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8364e39ce84cSmrgthen : 8365e39ce84cSmrg printf %s "(cached) " >&6 836646374b8dSmrgelse case e in #( 836746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 836880b026c6Smrg/* end confdefs.h. */ 836980b026c6Smrgint i; 837080b026c6Smrg_ACEOF 8371e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 8372e39ce84cSmrgthen : 837380b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 837446374b8dSmrgelse case e in #( 837546374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 837646374b8dSmrgesac 837780b026c6Smrgfi 837846374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 837946374b8dSmrgesac 838080b026c6Smrgfi 8381e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8382e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 838380b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 838480b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 838580b026c6Smrgfi 838680b026c6Smrg 838780b026c6Smrgfound="no" 838880b026c6Smrg 838980b026c6Smrg if test $found = "no" ; then 83900c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 839180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 839280b026c6Smrg fi 839380b026c6Smrg 83940c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 839580b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 839680b026c6Smrg fi 839780b026c6Smrg 839880b026c6Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 839980b026c6Smrg 8400e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8401e39ce84cSmrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 84020c7e83b2Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 8403e39ce84cSmrg if eval test \${$cacheid+y} 8404e39ce84cSmrgthen : 8405e39ce84cSmrg printf %s "(cached) " >&6 840646374b8dSmrgelse case e in #( 840746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 840880b026c6Smrg/* end confdefs.h. */ 840980b026c6Smrgint i; 841080b026c6Smrgint 8411e39ce84cSmrgmain (void) 841280b026c6Smrg{ 841380b026c6Smrg 841480b026c6Smrg ; 841580b026c6Smrg return 0; 841680b026c6Smrg} 841780b026c6Smrg_ACEOF 8418e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 8419e39ce84cSmrgthen : 842080b026c6Smrg eval $cacheid=yes 842146374b8dSmrgelse case e in #( 842246374b8dSmrg e) eval $cacheid=no ;; 842346374b8dSmrgesac 842480b026c6Smrgfi 8425e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 842646374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 842746374b8dSmrgesac 842880b026c6Smrgfi 842980b026c6Smrg 843080b026c6Smrg 843180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 843280b026c6Smrg 843380b026c6Smrg eval supported=\$$cacheid 8434e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8435e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 843680b026c6Smrg if test "$supported" = "yes" ; then 843780b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 843880b026c6Smrg found="yes" 843980b026c6Smrg fi 844080b026c6Smrg fi 844180b026c6Smrg 844280b026c6Smrg 844380b026c6Smrg 844480b026c6Smrg 844580b026c6Smrg 844680b026c6Smrg 844780b026c6Smrg 844880b026c6Smrg 844980b026c6Smrg 845080b026c6Smrg 845180b026c6Smrg 845280b026c6Smrg 845380b026c6Smrg 845480b026c6Smrg 845580b026c6Smrg 845680b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 845780b026c6Smrg 845880b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 845980b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8460e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8461e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8462e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8463e39ce84cSmrgthen : 8464e39ce84cSmrg printf %s "(cached) " >&6 846546374b8dSmrgelse case e in #( 846646374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 846780b026c6Smrg/* end confdefs.h. */ 846880b026c6Smrgint i; 846980b026c6Smrg_ACEOF 8470e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 8471e39ce84cSmrgthen : 847280b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 847346374b8dSmrgelse case e in #( 847446374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 847546374b8dSmrgesac 847680b026c6Smrgfi 847746374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 847846374b8dSmrgesac 847980b026c6Smrgfi 8480e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8481e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 848280b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 848380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 848480b026c6Smrgfi 848580b026c6Smrg 848680b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 848780b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 848880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 848980b026c6Smrg fi 849080b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8491e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8492e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8493e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8494e39ce84cSmrgthen : 8495e39ce84cSmrg printf %s "(cached) " >&6 849646374b8dSmrgelse case e in #( 849746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 849880b026c6Smrg/* end confdefs.h. */ 849980b026c6Smrgint i; 850080b026c6Smrg_ACEOF 8501e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 8502e39ce84cSmrgthen : 850380b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 850446374b8dSmrgelse case e in #( 850546374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 850646374b8dSmrgesac 850780b026c6Smrgfi 850846374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 850946374b8dSmrgesac 851080b026c6Smrgfi 8511e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8512e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 851380b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 851480b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 851580b026c6Smrgfi 851680b026c6Smrg 851780b026c6Smrgfound="no" 851880b026c6Smrg 851980b026c6Smrg if test $found = "no" ; then 85200c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 852180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 852280b026c6Smrg fi 852380b026c6Smrg 85240c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 852580b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 852680b026c6Smrg fi 852780b026c6Smrg 852880b026c6Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 852980b026c6Smrg 8530e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8531e39ce84cSmrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 85320c7e83b2Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 8533e39ce84cSmrg if eval test \${$cacheid+y} 8534e39ce84cSmrgthen : 8535e39ce84cSmrg printf %s "(cached) " >&6 853646374b8dSmrgelse case e in #( 853746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 853880b026c6Smrg/* end confdefs.h. */ 853980b026c6Smrgint i; 854080b026c6Smrgint 8541e39ce84cSmrgmain (void) 854280b026c6Smrg{ 854380b026c6Smrg 854480b026c6Smrg ; 854580b026c6Smrg return 0; 854680b026c6Smrg} 854780b026c6Smrg_ACEOF 8548e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 8549e39ce84cSmrgthen : 855080b026c6Smrg eval $cacheid=yes 855146374b8dSmrgelse case e in #( 855246374b8dSmrg e) eval $cacheid=no ;; 855346374b8dSmrgesac 855480b026c6Smrgfi 8555e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 855646374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 855746374b8dSmrgesac 855880b026c6Smrgfi 855980b026c6Smrg 856080b026c6Smrg 856180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 856280b026c6Smrg 856380b026c6Smrg eval supported=\$$cacheid 8564e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8565e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 856680b026c6Smrg if test "$supported" = "yes" ; then 856780b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 856880b026c6Smrg found="yes" 856980b026c6Smrg fi 857080b026c6Smrg fi 857180b026c6Smrg 857280b026c6Smrg 857380b026c6Smrg 857480b026c6Smrg 857580b026c6Smrg 857680b026c6Smrg 857780b026c6Smrg 857880b026c6Smrg 857980b026c6Smrg 858080b026c6Smrg 858180b026c6Smrg 858280b026c6Smrg 858380b026c6Smrg 858480b026c6Smrg 858580b026c6Smrg 858680b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 858780b026c6Smrg 858880b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 858980b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8590e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8591e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8592e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8593e39ce84cSmrgthen : 8594e39ce84cSmrg printf %s "(cached) " >&6 859546374b8dSmrgelse case e in #( 859646374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 859780b026c6Smrg/* end confdefs.h. */ 859880b026c6Smrgint i; 859980b026c6Smrg_ACEOF 8600e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 8601e39ce84cSmrgthen : 860280b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 860346374b8dSmrgelse case e in #( 860446374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 860546374b8dSmrgesac 860680b026c6Smrgfi 860746374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 860846374b8dSmrgesac 860980b026c6Smrgfi 8610e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8611e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 861280b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 861380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 861480b026c6Smrgfi 861580b026c6Smrg 861680b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 861780b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 861880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 861980b026c6Smrg fi 862080b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8621e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8622e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8623e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8624e39ce84cSmrgthen : 8625e39ce84cSmrg printf %s "(cached) " >&6 862646374b8dSmrgelse case e in #( 862746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 862880b026c6Smrg/* end confdefs.h. */ 862980b026c6Smrgint i; 863080b026c6Smrg_ACEOF 8631e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 8632e39ce84cSmrgthen : 863380b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 863446374b8dSmrgelse case e in #( 863546374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 863646374b8dSmrgesac 863780b026c6Smrgfi 863846374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 863946374b8dSmrgesac 864080b026c6Smrgfi 8641e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8642e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 864380b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 864480b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 864580b026c6Smrgfi 864680b026c6Smrg 864780b026c6Smrgfound="no" 864880b026c6Smrg 864980b026c6Smrg if test $found = "no" ; then 86500c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 865180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 865280b026c6Smrg fi 865380b026c6Smrg 86540c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 865580b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 865680b026c6Smrg fi 865780b026c6Smrg 865880b026c6Smrg CFLAGS="$CFLAGS -Werror=write-strings" 865980b026c6Smrg 8660e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8661e39ce84cSmrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; } 86620c7e83b2Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 8663e39ce84cSmrg if eval test \${$cacheid+y} 8664e39ce84cSmrgthen : 8665e39ce84cSmrg printf %s "(cached) " >&6 866646374b8dSmrgelse case e in #( 866746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 866880b026c6Smrg/* end confdefs.h. */ 866980b026c6Smrgint i; 867080b026c6Smrgint 8671e39ce84cSmrgmain (void) 867280b026c6Smrg{ 867380b026c6Smrg 867480b026c6Smrg ; 867580b026c6Smrg return 0; 867680b026c6Smrg} 867780b026c6Smrg_ACEOF 8678e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 8679e39ce84cSmrgthen : 868080b026c6Smrg eval $cacheid=yes 868146374b8dSmrgelse case e in #( 868246374b8dSmrg e) eval $cacheid=no ;; 868346374b8dSmrgesac 868480b026c6Smrgfi 8685e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 868646374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 868746374b8dSmrgesac 868880b026c6Smrgfi 868980b026c6Smrg 869080b026c6Smrg 869180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 869280b026c6Smrg 869380b026c6Smrg eval supported=\$$cacheid 8694e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8695e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 869680b026c6Smrg if test "$supported" = "yes" ; then 869780b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 869880b026c6Smrg found="yes" 869980b026c6Smrg fi 870080b026c6Smrg fi 870180b026c6Smrg 870280b026c6Smrg 870380b026c6Smrg 870480b026c6Smrg 870580b026c6Smrg 870680b026c6Smrg 870780b026c6Smrg 870880b026c6Smrg 870980b026c6Smrg 871080b026c6Smrg 871180b026c6Smrg 871280b026c6Smrg 871380b026c6Smrg 871480b026c6Smrg 871580b026c6Smrg 871680b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 871780b026c6Smrg 871880b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 871980b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8720e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8721e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8722e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8723e39ce84cSmrgthen : 8724e39ce84cSmrg printf %s "(cached) " >&6 872546374b8dSmrgelse case e in #( 872646374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 872780b026c6Smrg/* end confdefs.h. */ 872880b026c6Smrgint i; 872980b026c6Smrg_ACEOF 8730e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 8731e39ce84cSmrgthen : 873280b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 873346374b8dSmrgelse case e in #( 873446374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 873546374b8dSmrgesac 873680b026c6Smrgfi 873746374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 873846374b8dSmrgesac 873980b026c6Smrgfi 8740e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8741e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 874280b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 874380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 874480b026c6Smrgfi 874580b026c6Smrg 874680b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 874780b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 874880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 874980b026c6Smrg fi 875080b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8751e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8752e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8753e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8754e39ce84cSmrgthen : 8755e39ce84cSmrg printf %s "(cached) " >&6 875646374b8dSmrgelse case e in #( 875746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 875880b026c6Smrg/* end confdefs.h. */ 875980b026c6Smrgint i; 876080b026c6Smrg_ACEOF 8761e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 8762e39ce84cSmrgthen : 876380b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 876446374b8dSmrgelse case e in #( 876546374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 876646374b8dSmrgesac 876780b026c6Smrgfi 876846374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 876946374b8dSmrgesac 877080b026c6Smrgfi 8771e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8772e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 877380b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 877480b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 877580b026c6Smrgfi 877680b026c6Smrg 877780b026c6Smrgfound="no" 877880b026c6Smrg 877980b026c6Smrg if test $found = "no" ; then 87800c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 878180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 878280b026c6Smrg fi 878380b026c6Smrg 87840c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 878580b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 878680b026c6Smrg fi 878780b026c6Smrg 878880b026c6Smrg CFLAGS="$CFLAGS -Werror=address" 878980b026c6Smrg 8790e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8791e39ce84cSmrgprintf %s "checking if $CC supports -Werror=address... " >&6; } 87920c7e83b2Smrg cacheid=xorg_cv_cc_flag__Werror_address 8793e39ce84cSmrg if eval test \${$cacheid+y} 8794e39ce84cSmrgthen : 8795e39ce84cSmrg printf %s "(cached) " >&6 879646374b8dSmrgelse case e in #( 879746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 879880b026c6Smrg/* end confdefs.h. */ 879980b026c6Smrgint i; 880080b026c6Smrgint 8801e39ce84cSmrgmain (void) 880280b026c6Smrg{ 880380b026c6Smrg 880480b026c6Smrg ; 880580b026c6Smrg return 0; 880680b026c6Smrg} 880780b026c6Smrg_ACEOF 8808e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 8809e39ce84cSmrgthen : 881080b026c6Smrg eval $cacheid=yes 881146374b8dSmrgelse case e in #( 881246374b8dSmrg e) eval $cacheid=no ;; 881346374b8dSmrgesac 881480b026c6Smrgfi 8815e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 881646374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 881746374b8dSmrgesac 881880b026c6Smrgfi 881980b026c6Smrg 882080b026c6Smrg 882180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 882280b026c6Smrg 882380b026c6Smrg eval supported=\$$cacheid 8824e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8825e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 882680b026c6Smrg if test "$supported" = "yes" ; then 882780b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 882880b026c6Smrg found="yes" 882980b026c6Smrg fi 883080b026c6Smrg fi 883180b026c6Smrg 883280b026c6Smrg 883380b026c6Smrg 883480b026c6Smrg 883580b026c6Smrg 883680b026c6Smrg 883780b026c6Smrg 883880b026c6Smrg 883980b026c6Smrg 884080b026c6Smrg 884180b026c6Smrg 884280b026c6Smrg 884380b026c6Smrg 884480b026c6Smrg 884580b026c6Smrg 884680b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 884780b026c6Smrg 884880b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 884980b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8850e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8851e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8852e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8853e39ce84cSmrgthen : 8854e39ce84cSmrg printf %s "(cached) " >&6 885546374b8dSmrgelse case e in #( 885646374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 885780b026c6Smrg/* end confdefs.h. */ 885880b026c6Smrgint i; 885980b026c6Smrg_ACEOF 8860e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 8861e39ce84cSmrgthen : 886280b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 886346374b8dSmrgelse case e in #( 886446374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 886546374b8dSmrgesac 886680b026c6Smrgfi 886746374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 886846374b8dSmrgesac 886980b026c6Smrgfi 8870e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8871e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 887280b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 887380b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 887480b026c6Smrgfi 887580b026c6Smrg 887680b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 887780b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 887880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 887980b026c6Smrg fi 888080b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8881e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8882e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8883e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8884e39ce84cSmrgthen : 8885e39ce84cSmrg printf %s "(cached) " >&6 888646374b8dSmrgelse case e in #( 888746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 888880b026c6Smrg/* end confdefs.h. */ 888980b026c6Smrgint i; 889080b026c6Smrg_ACEOF 8891e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 8892e39ce84cSmrgthen : 889380b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 889446374b8dSmrgelse case e in #( 889546374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 889646374b8dSmrgesac 889780b026c6Smrgfi 889846374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 889946374b8dSmrgesac 890080b026c6Smrgfi 8901e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8902e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 890380b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 890480b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 890580b026c6Smrgfi 890680b026c6Smrg 890780b026c6Smrgfound="no" 890880b026c6Smrg 890980b026c6Smrg if test $found = "no" ; then 89100c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 891180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 891280b026c6Smrg fi 891380b026c6Smrg 89140c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 891580b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 891680b026c6Smrg fi 891780b026c6Smrg 891880b026c6Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 891980b026c6Smrg 8920e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8921e39ce84cSmrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 89220c7e83b2Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8923e39ce84cSmrg if eval test \${$cacheid+y} 8924e39ce84cSmrgthen : 8925e39ce84cSmrg printf %s "(cached) " >&6 892646374b8dSmrgelse case e in #( 892746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 892880b026c6Smrg/* end confdefs.h. */ 892980b026c6Smrgint i; 893080b026c6Smrgint 8931e39ce84cSmrgmain (void) 893280b026c6Smrg{ 893380b026c6Smrg 893480b026c6Smrg ; 893580b026c6Smrg return 0; 893680b026c6Smrg} 893780b026c6Smrg_ACEOF 8938e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 8939e39ce84cSmrgthen : 894080b026c6Smrg eval $cacheid=yes 894146374b8dSmrgelse case e in #( 894246374b8dSmrg e) eval $cacheid=no ;; 894346374b8dSmrgesac 894480b026c6Smrgfi 8945e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 894646374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 894746374b8dSmrgesac 894880b026c6Smrgfi 894980b026c6Smrg 895080b026c6Smrg 895180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 895280b026c6Smrg 895380b026c6Smrg eval supported=\$$cacheid 8954e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8955e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 895680b026c6Smrg if test "$supported" = "yes" ; then 895780b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 895880b026c6Smrg found="yes" 895980b026c6Smrg fi 896080b026c6Smrg fi 896180b026c6Smrg 896280b026c6Smrg if test $found = "no" ; then 89630c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 896480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 896580b026c6Smrg fi 896680b026c6Smrg 89670c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 896880b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 896980b026c6Smrg fi 897080b026c6Smrg 897180b026c6Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 897280b026c6Smrg 8973e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8974e39ce84cSmrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 89750c7e83b2Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8976e39ce84cSmrg if eval test \${$cacheid+y} 8977e39ce84cSmrgthen : 8978e39ce84cSmrg printf %s "(cached) " >&6 897946374b8dSmrgelse case e in #( 898046374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 898180b026c6Smrg/* end confdefs.h. */ 898280b026c6Smrgint i; 898380b026c6Smrgint 8984e39ce84cSmrgmain (void) 898580b026c6Smrg{ 898680b026c6Smrg 898780b026c6Smrg ; 898880b026c6Smrg return 0; 898980b026c6Smrg} 899080b026c6Smrg_ACEOF 8991e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 8992e39ce84cSmrgthen : 899380b026c6Smrg eval $cacheid=yes 899446374b8dSmrgelse case e in #( 899546374b8dSmrg e) eval $cacheid=no ;; 899646374b8dSmrgesac 899780b026c6Smrgfi 8998e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 899946374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 900046374b8dSmrgesac 900180b026c6Smrgfi 900280b026c6Smrg 900380b026c6Smrg 900480b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 900580b026c6Smrg 900680b026c6Smrg eval supported=\$$cacheid 9007e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9008e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 900980b026c6Smrg if test "$supported" = "yes" ; then 901080b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 901180b026c6Smrg found="yes" 901280b026c6Smrg fi 901380b026c6Smrg fi 901480b026c6Smrg 901580b026c6Smrg 901680b026c6Smrg 901780b026c6Smrg 901880b026c6Smrg 901980b026c6Smrg 902080b026c6Smrg 902180b026c6Smrg 902280b026c6Smrg 902380b026c6Smrg 902480b026c6Smrg 902580b026c6Smrg 902680b026c6Smrg 902780b026c6Smrg 902880b026c6Smrg 902980b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 903080b026c6Smrg 903180b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 903280b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9033e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9034e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9035e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9036e39ce84cSmrgthen : 9037e39ce84cSmrg printf %s "(cached) " >&6 903846374b8dSmrgelse case e in #( 903946374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 904080b026c6Smrg/* end confdefs.h. */ 904180b026c6Smrgint i; 904280b026c6Smrg_ACEOF 9043e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9044e39ce84cSmrgthen : 904580b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 904646374b8dSmrgelse case e in #( 904746374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 904846374b8dSmrgesac 904980b026c6Smrgfi 905046374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 905146374b8dSmrgesac 905280b026c6Smrgfi 9053e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9054e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 905580b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 905680b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 905780b026c6Smrgfi 905880b026c6Smrg 905980b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 906080b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 906180b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 906280b026c6Smrg fi 906380b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9064e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9065e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9066e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9067e39ce84cSmrgthen : 9068e39ce84cSmrg printf %s "(cached) " >&6 906946374b8dSmrgelse case e in #( 907046374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 907180b026c6Smrg/* end confdefs.h. */ 907280b026c6Smrgint i; 907380b026c6Smrg_ACEOF 9074e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9075e39ce84cSmrgthen : 907680b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 907746374b8dSmrgelse case e in #( 907846374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 907946374b8dSmrgesac 908080b026c6Smrgfi 908146374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 908246374b8dSmrgesac 908380b026c6Smrgfi 9084e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9085e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 908680b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 908780b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 908880b026c6Smrgfi 908980b026c6Smrg 909080b026c6Smrgfound="no" 909180b026c6Smrg 909280b026c6Smrg if test $found = "no" ; then 90930c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 909480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 909580b026c6Smrg fi 909680b026c6Smrg 90970c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 909880b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 909980b026c6Smrg fi 910080b026c6Smrg 910180b026c6Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 910280b026c6Smrg 9103e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9104e39ce84cSmrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 91050c7e83b2Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9106e39ce84cSmrg if eval test \${$cacheid+y} 9107e39ce84cSmrgthen : 9108e39ce84cSmrg printf %s "(cached) " >&6 910946374b8dSmrgelse case e in #( 911046374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 911180b026c6Smrg/* end confdefs.h. */ 911280b026c6Smrgint i; 911380b026c6Smrgint 9114e39ce84cSmrgmain (void) 911580b026c6Smrg{ 911680b026c6Smrg 911780b026c6Smrg ; 911880b026c6Smrg return 0; 911980b026c6Smrg} 912080b026c6Smrg_ACEOF 9121e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 9122e39ce84cSmrgthen : 912380b026c6Smrg eval $cacheid=yes 912446374b8dSmrgelse case e in #( 912546374b8dSmrg e) eval $cacheid=no ;; 912646374b8dSmrgesac 912780b026c6Smrgfi 9128e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 912946374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 913046374b8dSmrgesac 913180b026c6Smrgfi 913280b026c6Smrg 913380b026c6Smrg 913480b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 913580b026c6Smrg 913680b026c6Smrg eval supported=\$$cacheid 9137e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9138e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 913980b026c6Smrg if test "$supported" = "yes" ; then 914080b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 914180b026c6Smrg found="yes" 914280b026c6Smrg fi 914380b026c6Smrg fi 914480b026c6Smrg 914580b026c6Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 914680b026c6Smrgelse 9147e39ce84cSmrg{ 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 9148e39ce84cSmrgprintf "%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;} 914980b026c6Smrg 915080b026c6Smrg 915180b026c6Smrg 915280b026c6Smrg 915380b026c6Smrg 915480b026c6Smrg 915580b026c6Smrg 915680b026c6Smrg 915780b026c6Smrg 915880b026c6Smrg 915980b026c6Smrg 916080b026c6Smrg 916180b026c6Smrg 916280b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 916380b026c6Smrg 916480b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 916580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9166e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9167e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9168e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9169e39ce84cSmrgthen : 9170e39ce84cSmrg printf %s "(cached) " >&6 917146374b8dSmrgelse case e in #( 917246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 917380b026c6Smrg/* end confdefs.h. */ 917480b026c6Smrgint i; 917580b026c6Smrg_ACEOF 9176e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9177e39ce84cSmrgthen : 917880b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 917946374b8dSmrgelse case e in #( 918046374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 918146374b8dSmrgesac 918280b026c6Smrgfi 918346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 918446374b8dSmrgesac 918580b026c6Smrgfi 9186e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9187e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 918880b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 918980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 919080b026c6Smrgfi 919180b026c6Smrg 919280b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 919380b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 919480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 919580b026c6Smrg fi 919680b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9197e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9198e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9199e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9200e39ce84cSmrgthen : 9201e39ce84cSmrg printf %s "(cached) " >&6 920246374b8dSmrgelse case e in #( 920346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 920480b026c6Smrg/* end confdefs.h. */ 920580b026c6Smrgint i; 920680b026c6Smrg_ACEOF 9207e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9208e39ce84cSmrgthen : 920980b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 921046374b8dSmrgelse case e in #( 921146374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 921246374b8dSmrgesac 921380b026c6Smrgfi 921446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 921546374b8dSmrgesac 921680b026c6Smrgfi 9217e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9218e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 921980b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 922080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 922180b026c6Smrgfi 922280b026c6Smrg 922380b026c6Smrgfound="no" 922480b026c6Smrg 922580b026c6Smrg if test $found = "no" ; then 92260c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 922780b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 922880b026c6Smrg fi 922980b026c6Smrg 92300c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 923180b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 923280b026c6Smrg fi 923380b026c6Smrg 923480b026c6Smrg CFLAGS="$CFLAGS -Wimplicit" 923580b026c6Smrg 9236e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9237e39ce84cSmrgprintf %s "checking if $CC supports -Wimplicit... " >&6; } 923880b026c6Smrg cacheid=xorg_cv_cc_flag__Wimplicit 9239e39ce84cSmrg if eval test \${$cacheid+y} 9240e39ce84cSmrgthen : 9241e39ce84cSmrg printf %s "(cached) " >&6 924246374b8dSmrgelse case e in #( 924346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 924480b026c6Smrg/* end confdefs.h. */ 924580b026c6Smrgint i; 924680b026c6Smrgint 9247e39ce84cSmrgmain (void) 924880b026c6Smrg{ 924980b026c6Smrg 925080b026c6Smrg ; 925180b026c6Smrg return 0; 925280b026c6Smrg} 925380b026c6Smrg_ACEOF 9254e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 9255e39ce84cSmrgthen : 925680b026c6Smrg eval $cacheid=yes 925746374b8dSmrgelse case e in #( 925846374b8dSmrg e) eval $cacheid=no ;; 925946374b8dSmrgesac 926080b026c6Smrgfi 9261e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 926246374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 926346374b8dSmrgesac 926480b026c6Smrgfi 926580b026c6Smrg 926680b026c6Smrg 926780b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 926880b026c6Smrg 926980b026c6Smrg eval supported=\$$cacheid 9270e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9271e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 927280b026c6Smrg if test "$supported" = "yes" ; then 927380b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 927480b026c6Smrg found="yes" 927580b026c6Smrg fi 927680b026c6Smrg fi 927780b026c6Smrg 927880b026c6Smrg 927980b026c6Smrg 928080b026c6Smrg 928180b026c6Smrg 928280b026c6Smrg 928380b026c6Smrg 928480b026c6Smrg 928580b026c6Smrg 928680b026c6Smrg 928780b026c6Smrg 928880b026c6Smrg 928980b026c6Smrg 929080b026c6Smrg 929180b026c6Smrg 929280b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 929380b026c6Smrg 929480b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 929580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9296e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9297e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9298e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9299e39ce84cSmrgthen : 9300e39ce84cSmrg printf %s "(cached) " >&6 930146374b8dSmrgelse case e in #( 930246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 930380b026c6Smrg/* end confdefs.h. */ 930480b026c6Smrgint i; 930580b026c6Smrg_ACEOF 9306e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9307e39ce84cSmrgthen : 930880b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 930946374b8dSmrgelse case e in #( 931046374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 931146374b8dSmrgesac 931280b026c6Smrgfi 931346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 931446374b8dSmrgesac 931580b026c6Smrgfi 9316e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9317e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 931880b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 931980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 932080b026c6Smrgfi 932180b026c6Smrg 932280b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 932380b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 932480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 932580b026c6Smrg fi 932680b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9327e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9328e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9329e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9330e39ce84cSmrgthen : 9331e39ce84cSmrg printf %s "(cached) " >&6 933246374b8dSmrgelse case e in #( 933346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 933480b026c6Smrg/* end confdefs.h. */ 933580b026c6Smrgint i; 933680b026c6Smrg_ACEOF 9337e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9338e39ce84cSmrgthen : 933980b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 934046374b8dSmrgelse case e in #( 934146374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 934246374b8dSmrgesac 934380b026c6Smrgfi 934446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 934546374b8dSmrgesac 934680b026c6Smrgfi 9347e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9348e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 934980b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 935080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 935180b026c6Smrgfi 935280b026c6Smrg 935380b026c6Smrgfound="no" 935480b026c6Smrg 935580b026c6Smrg if test $found = "no" ; then 93560c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 935780b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 935880b026c6Smrg fi 935980b026c6Smrg 93600c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 936180b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 936280b026c6Smrg fi 936380b026c6Smrg 936480b026c6Smrg CFLAGS="$CFLAGS -Wnonnull" 936580b026c6Smrg 9366e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9367e39ce84cSmrgprintf %s "checking if $CC supports -Wnonnull... " >&6; } 936880b026c6Smrg cacheid=xorg_cv_cc_flag__Wnonnull 9369e39ce84cSmrg if eval test \${$cacheid+y} 9370e39ce84cSmrgthen : 9371e39ce84cSmrg printf %s "(cached) " >&6 937246374b8dSmrgelse case e in #( 937346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 937480b026c6Smrg/* end confdefs.h. */ 937580b026c6Smrgint i; 937680b026c6Smrgint 9377e39ce84cSmrgmain (void) 937880b026c6Smrg{ 937980b026c6Smrg 938080b026c6Smrg ; 938180b026c6Smrg return 0; 938280b026c6Smrg} 938380b026c6Smrg_ACEOF 9384e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 9385e39ce84cSmrgthen : 938680b026c6Smrg eval $cacheid=yes 938746374b8dSmrgelse case e in #( 938846374b8dSmrg e) eval $cacheid=no ;; 938946374b8dSmrgesac 939080b026c6Smrgfi 9391e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 939246374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 939346374b8dSmrgesac 939480b026c6Smrgfi 939580b026c6Smrg 939680b026c6Smrg 939780b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 939880b026c6Smrg 939980b026c6Smrg eval supported=\$$cacheid 9400e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9401e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 940280b026c6Smrg if test "$supported" = "yes" ; then 940380b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 940480b026c6Smrg found="yes" 940580b026c6Smrg fi 940680b026c6Smrg fi 940780b026c6Smrg 940880b026c6Smrg 940980b026c6Smrg 941080b026c6Smrg 941180b026c6Smrg 941280b026c6Smrg 941380b026c6Smrg 941480b026c6Smrg 941580b026c6Smrg 941680b026c6Smrg 941780b026c6Smrg 941880b026c6Smrg 941980b026c6Smrg 942080b026c6Smrg 942180b026c6Smrg 942280b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 942380b026c6Smrg 942480b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 942580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9426e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9427e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9428e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9429e39ce84cSmrgthen : 9430e39ce84cSmrg printf %s "(cached) " >&6 943146374b8dSmrgelse case e in #( 943246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 943380b026c6Smrg/* end confdefs.h. */ 943480b026c6Smrgint i; 943580b026c6Smrg_ACEOF 9436e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9437e39ce84cSmrgthen : 943880b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 943946374b8dSmrgelse case e in #( 944046374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 944146374b8dSmrgesac 944280b026c6Smrgfi 944346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 944446374b8dSmrgesac 944580b026c6Smrgfi 9446e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9447e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 944880b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 944980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 945080b026c6Smrgfi 945180b026c6Smrg 945280b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 945380b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 945480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 945580b026c6Smrg fi 945680b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9457e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9458e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9459e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9460e39ce84cSmrgthen : 9461e39ce84cSmrg printf %s "(cached) " >&6 946246374b8dSmrgelse case e in #( 946346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 946480b026c6Smrg/* end confdefs.h. */ 946580b026c6Smrgint i; 946680b026c6Smrg_ACEOF 9467e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9468e39ce84cSmrgthen : 946980b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 947046374b8dSmrgelse case e in #( 947146374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 947246374b8dSmrgesac 947380b026c6Smrgfi 947446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 947546374b8dSmrgesac 947680b026c6Smrgfi 9477e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9478e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 947980b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 948080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 948180b026c6Smrgfi 948280b026c6Smrg 948380b026c6Smrgfound="no" 948480b026c6Smrg 948580b026c6Smrg if test $found = "no" ; then 94860c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 948780b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 948880b026c6Smrg fi 948980b026c6Smrg 94900c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 949180b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 949280b026c6Smrg fi 949380b026c6Smrg 949480b026c6Smrg CFLAGS="$CFLAGS -Winit-self" 949580b026c6Smrg 9496e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9497e39ce84cSmrgprintf %s "checking if $CC supports -Winit-self... " >&6; } 949880b026c6Smrg cacheid=xorg_cv_cc_flag__Winit_self 9499e39ce84cSmrg if eval test \${$cacheid+y} 9500e39ce84cSmrgthen : 9501e39ce84cSmrg printf %s "(cached) " >&6 950246374b8dSmrgelse case e in #( 950346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 950480b026c6Smrg/* end confdefs.h. */ 950580b026c6Smrgint i; 950680b026c6Smrgint 9507e39ce84cSmrgmain (void) 950880b026c6Smrg{ 950980b026c6Smrg 951080b026c6Smrg ; 951180b026c6Smrg return 0; 951280b026c6Smrg} 951380b026c6Smrg_ACEOF 9514e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 9515e39ce84cSmrgthen : 951680b026c6Smrg eval $cacheid=yes 951746374b8dSmrgelse case e in #( 951846374b8dSmrg e) eval $cacheid=no ;; 951946374b8dSmrgesac 952080b026c6Smrgfi 9521e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 952246374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 952346374b8dSmrgesac 952480b026c6Smrgfi 952580b026c6Smrg 952680b026c6Smrg 952780b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 952880b026c6Smrg 952980b026c6Smrg eval supported=\$$cacheid 9530e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9531e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 953280b026c6Smrg if test "$supported" = "yes" ; then 953380b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 953480b026c6Smrg found="yes" 953580b026c6Smrg fi 953680b026c6Smrg fi 953780b026c6Smrg 953880b026c6Smrg 953980b026c6Smrg 954080b026c6Smrg 954180b026c6Smrg 954280b026c6Smrg 954380b026c6Smrg 954480b026c6Smrg 954580b026c6Smrg 954680b026c6Smrg 954780b026c6Smrg 954880b026c6Smrg 954980b026c6Smrg 955080b026c6Smrg 955180b026c6Smrg 955280b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 955380b026c6Smrg 955480b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 955580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9556e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9557e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9558e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9559e39ce84cSmrgthen : 9560e39ce84cSmrg printf %s "(cached) " >&6 956146374b8dSmrgelse case e in #( 956246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 956380b026c6Smrg/* end confdefs.h. */ 956480b026c6Smrgint i; 956580b026c6Smrg_ACEOF 9566e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9567e39ce84cSmrgthen : 956880b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 956946374b8dSmrgelse case e in #( 957046374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 957146374b8dSmrgesac 957280b026c6Smrgfi 957346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 957446374b8dSmrgesac 957580b026c6Smrgfi 9576e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9577e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 957880b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 957980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 958080b026c6Smrgfi 958180b026c6Smrg 958280b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 958380b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 958480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 958580b026c6Smrg fi 958680b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9587e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9588e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9589e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9590e39ce84cSmrgthen : 9591e39ce84cSmrg printf %s "(cached) " >&6 959246374b8dSmrgelse case e in #( 959346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 959480b026c6Smrg/* end confdefs.h. */ 959580b026c6Smrgint i; 959680b026c6Smrg_ACEOF 9597e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9598e39ce84cSmrgthen : 959980b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 960046374b8dSmrgelse case e in #( 960146374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 960246374b8dSmrgesac 960380b026c6Smrgfi 960446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 960546374b8dSmrgesac 960680b026c6Smrgfi 9607e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9608e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 960980b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 961080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 961180b026c6Smrgfi 961280b026c6Smrg 961380b026c6Smrgfound="no" 961480b026c6Smrg 961580b026c6Smrg if test $found = "no" ; then 96160c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 961780b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 961880b026c6Smrg fi 961980b026c6Smrg 96200c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 962180b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 962280b026c6Smrg fi 962380b026c6Smrg 962480b026c6Smrg CFLAGS="$CFLAGS -Wmain" 962580b026c6Smrg 9626e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9627e39ce84cSmrgprintf %s "checking if $CC supports -Wmain... " >&6; } 962880b026c6Smrg cacheid=xorg_cv_cc_flag__Wmain 9629e39ce84cSmrg if eval test \${$cacheid+y} 9630e39ce84cSmrgthen : 9631e39ce84cSmrg printf %s "(cached) " >&6 963246374b8dSmrgelse case e in #( 963346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 963480b026c6Smrg/* end confdefs.h. */ 963580b026c6Smrgint i; 963680b026c6Smrgint 9637e39ce84cSmrgmain (void) 963880b026c6Smrg{ 963980b026c6Smrg 964080b026c6Smrg ; 964180b026c6Smrg return 0; 964280b026c6Smrg} 964380b026c6Smrg_ACEOF 9644e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 9645e39ce84cSmrgthen : 964680b026c6Smrg eval $cacheid=yes 964746374b8dSmrgelse case e in #( 964846374b8dSmrg e) eval $cacheid=no ;; 964946374b8dSmrgesac 965080b026c6Smrgfi 9651e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 965246374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 965346374b8dSmrgesac 965480b026c6Smrgfi 965580b026c6Smrg 965680b026c6Smrg 965780b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 965880b026c6Smrg 965980b026c6Smrg eval supported=\$$cacheid 9660e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9661e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 966280b026c6Smrg if test "$supported" = "yes" ; then 966380b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 966480b026c6Smrg found="yes" 966580b026c6Smrg fi 966680b026c6Smrg fi 966780b026c6Smrg 966880b026c6Smrg 966980b026c6Smrg 967080b026c6Smrg 967180b026c6Smrg 967280b026c6Smrg 967380b026c6Smrg 967480b026c6Smrg 967580b026c6Smrg 967680b026c6Smrg 967780b026c6Smrg 967880b026c6Smrg 967980b026c6Smrg 968080b026c6Smrg 968180b026c6Smrg 968280b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 968380b026c6Smrg 968480b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 968580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9686e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9687e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9688e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9689e39ce84cSmrgthen : 9690e39ce84cSmrg printf %s "(cached) " >&6 969146374b8dSmrgelse case e in #( 969246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 969380b026c6Smrg/* end confdefs.h. */ 969480b026c6Smrgint i; 969580b026c6Smrg_ACEOF 9696e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9697e39ce84cSmrgthen : 969880b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 969946374b8dSmrgelse case e in #( 970046374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 970146374b8dSmrgesac 970280b026c6Smrgfi 970346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 970446374b8dSmrgesac 970580b026c6Smrgfi 9706e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9707e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 970880b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 970980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 971080b026c6Smrgfi 971180b026c6Smrg 971280b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 971380b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 971480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 971580b026c6Smrg fi 971680b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9717e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9718e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9719e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9720e39ce84cSmrgthen : 9721e39ce84cSmrg printf %s "(cached) " >&6 972246374b8dSmrgelse case e in #( 972346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 972480b026c6Smrg/* end confdefs.h. */ 972580b026c6Smrgint i; 972680b026c6Smrg_ACEOF 9727e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9728e39ce84cSmrgthen : 972980b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 973046374b8dSmrgelse case e in #( 973146374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 973246374b8dSmrgesac 973380b026c6Smrgfi 973446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 973546374b8dSmrgesac 973680b026c6Smrgfi 9737e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9738e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 973980b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 974080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 974180b026c6Smrgfi 974280b026c6Smrg 974380b026c6Smrgfound="no" 974480b026c6Smrg 974580b026c6Smrg if test $found = "no" ; then 97460c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 974780b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 974880b026c6Smrg fi 974980b026c6Smrg 97500c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 975180b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 975280b026c6Smrg fi 975380b026c6Smrg 975480b026c6Smrg CFLAGS="$CFLAGS -Wmissing-braces" 975580b026c6Smrg 9756e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9757e39ce84cSmrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; } 975880b026c6Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 9759e39ce84cSmrg if eval test \${$cacheid+y} 9760e39ce84cSmrgthen : 9761e39ce84cSmrg printf %s "(cached) " >&6 976246374b8dSmrgelse case e in #( 976346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 976480b026c6Smrg/* end confdefs.h. */ 976580b026c6Smrgint i; 976680b026c6Smrgint 9767e39ce84cSmrgmain (void) 976880b026c6Smrg{ 976980b026c6Smrg 977080b026c6Smrg ; 977180b026c6Smrg return 0; 977280b026c6Smrg} 977380b026c6Smrg_ACEOF 9774e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 9775e39ce84cSmrgthen : 977680b026c6Smrg eval $cacheid=yes 977746374b8dSmrgelse case e in #( 977846374b8dSmrg e) eval $cacheid=no ;; 977946374b8dSmrgesac 978080b026c6Smrgfi 9781e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 978246374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 978346374b8dSmrgesac 978480b026c6Smrgfi 978580b026c6Smrg 978680b026c6Smrg 978780b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 978880b026c6Smrg 978980b026c6Smrg eval supported=\$$cacheid 9790e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9791e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 979280b026c6Smrg if test "$supported" = "yes" ; then 979380b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 979480b026c6Smrg found="yes" 979580b026c6Smrg fi 979680b026c6Smrg fi 979780b026c6Smrg 979880b026c6Smrg 979980b026c6Smrg 980080b026c6Smrg 980180b026c6Smrg 980280b026c6Smrg 980380b026c6Smrg 980480b026c6Smrg 980580b026c6Smrg 980680b026c6Smrg 980780b026c6Smrg 980880b026c6Smrg 980980b026c6Smrg 981080b026c6Smrg 981180b026c6Smrg 981280b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 981380b026c6Smrg 981480b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 981580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9816e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9817e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9818e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9819e39ce84cSmrgthen : 9820e39ce84cSmrg printf %s "(cached) " >&6 982146374b8dSmrgelse case e in #( 982246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 982380b026c6Smrg/* end confdefs.h. */ 982480b026c6Smrgint i; 982580b026c6Smrg_ACEOF 9826e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9827e39ce84cSmrgthen : 982880b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 982946374b8dSmrgelse case e in #( 983046374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 983146374b8dSmrgesac 983280b026c6Smrgfi 983346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 983446374b8dSmrgesac 983580b026c6Smrgfi 9836e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9837e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 983880b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 983980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 984080b026c6Smrgfi 984180b026c6Smrg 984280b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 984380b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 984480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 984580b026c6Smrg fi 984680b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9847e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9848e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9849e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9850e39ce84cSmrgthen : 9851e39ce84cSmrg printf %s "(cached) " >&6 985246374b8dSmrgelse case e in #( 985346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 985480b026c6Smrg/* end confdefs.h. */ 985580b026c6Smrgint i; 985680b026c6Smrg_ACEOF 9857e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9858e39ce84cSmrgthen : 985980b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 986046374b8dSmrgelse case e in #( 986146374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 986246374b8dSmrgesac 986380b026c6Smrgfi 986446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 986546374b8dSmrgesac 986680b026c6Smrgfi 9867e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9868e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 986980b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 987080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 987180b026c6Smrgfi 987280b026c6Smrg 987380b026c6Smrgfound="no" 987480b026c6Smrg 987580b026c6Smrg if test $found = "no" ; then 98760c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 987780b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 987880b026c6Smrg fi 987980b026c6Smrg 98800c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 988180b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 988280b026c6Smrg fi 988380b026c6Smrg 988480b026c6Smrg CFLAGS="$CFLAGS -Wsequence-point" 988580b026c6Smrg 9886e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9887e39ce84cSmrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; } 988880b026c6Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 9889e39ce84cSmrg if eval test \${$cacheid+y} 9890e39ce84cSmrgthen : 9891e39ce84cSmrg printf %s "(cached) " >&6 989246374b8dSmrgelse case e in #( 989346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 989480b026c6Smrg/* end confdefs.h. */ 989580b026c6Smrgint i; 989680b026c6Smrgint 9897e39ce84cSmrgmain (void) 989880b026c6Smrg{ 989980b026c6Smrg 990080b026c6Smrg ; 990180b026c6Smrg return 0; 990280b026c6Smrg} 990380b026c6Smrg_ACEOF 9904e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 9905e39ce84cSmrgthen : 990680b026c6Smrg eval $cacheid=yes 990746374b8dSmrgelse case e in #( 990846374b8dSmrg e) eval $cacheid=no ;; 990946374b8dSmrgesac 991080b026c6Smrgfi 9911e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 991246374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 991346374b8dSmrgesac 991480b026c6Smrgfi 991580b026c6Smrg 991680b026c6Smrg 991780b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 991880b026c6Smrg 991980b026c6Smrg eval supported=\$$cacheid 9920e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9921e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 992280b026c6Smrg if test "$supported" = "yes" ; then 992380b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 992480b026c6Smrg found="yes" 992580b026c6Smrg fi 992680b026c6Smrg fi 992780b026c6Smrg 992880b026c6Smrg 992980b026c6Smrg 993080b026c6Smrg 993180b026c6Smrg 993280b026c6Smrg 993380b026c6Smrg 993480b026c6Smrg 993580b026c6Smrg 993680b026c6Smrg 993780b026c6Smrg 993880b026c6Smrg 993980b026c6Smrg 994080b026c6Smrg 994180b026c6Smrg 994280b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 994380b026c6Smrg 994480b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 994580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9946e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9947e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9948e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9949e39ce84cSmrgthen : 9950e39ce84cSmrg printf %s "(cached) " >&6 995146374b8dSmrgelse case e in #( 995246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 995380b026c6Smrg/* end confdefs.h. */ 995480b026c6Smrgint i; 995580b026c6Smrg_ACEOF 9956e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9957e39ce84cSmrgthen : 995880b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 995946374b8dSmrgelse case e in #( 996046374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 996146374b8dSmrgesac 996280b026c6Smrgfi 996346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 996446374b8dSmrgesac 996580b026c6Smrgfi 9966e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9967e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 996880b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 996980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 997080b026c6Smrgfi 997180b026c6Smrg 997280b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 997380b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 997480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 997580b026c6Smrg fi 997680b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9977e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9978e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9979e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9980e39ce84cSmrgthen : 9981e39ce84cSmrg printf %s "(cached) " >&6 998246374b8dSmrgelse case e in #( 998346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 998480b026c6Smrg/* end confdefs.h. */ 998580b026c6Smrgint i; 998680b026c6Smrg_ACEOF 9987e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 9988e39ce84cSmrgthen : 998980b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 999046374b8dSmrgelse case e in #( 999146374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 999246374b8dSmrgesac 999380b026c6Smrgfi 999446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 999546374b8dSmrgesac 999680b026c6Smrgfi 9997e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9998e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 999980b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1000080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1000180b026c6Smrgfi 1000280b026c6Smrg 1000380b026c6Smrgfound="no" 1000480b026c6Smrg 1000580b026c6Smrg if test $found = "no" ; then 100060c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1000780b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1000880b026c6Smrg fi 1000980b026c6Smrg 100100c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1001180b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1001280b026c6Smrg fi 1001380b026c6Smrg 1001480b026c6Smrg CFLAGS="$CFLAGS -Wreturn-type" 1001580b026c6Smrg 10016e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10017e39ce84cSmrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; } 1001880b026c6Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 10019e39ce84cSmrg if eval test \${$cacheid+y} 10020e39ce84cSmrgthen : 10021e39ce84cSmrg printf %s "(cached) " >&6 1002246374b8dSmrgelse case e in #( 1002346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1002480b026c6Smrg/* end confdefs.h. */ 1002580b026c6Smrgint i; 1002680b026c6Smrgint 10027e39ce84cSmrgmain (void) 1002880b026c6Smrg{ 1002980b026c6Smrg 1003080b026c6Smrg ; 1003180b026c6Smrg return 0; 1003280b026c6Smrg} 1003380b026c6Smrg_ACEOF 10034e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 10035e39ce84cSmrgthen : 1003680b026c6Smrg eval $cacheid=yes 1003746374b8dSmrgelse case e in #( 1003846374b8dSmrg e) eval $cacheid=no ;; 1003946374b8dSmrgesac 1004080b026c6Smrgfi 10041e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1004246374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 1004346374b8dSmrgesac 1004480b026c6Smrgfi 1004580b026c6Smrg 1004680b026c6Smrg 1004780b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1004880b026c6Smrg 1004980b026c6Smrg eval supported=\$$cacheid 10050e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10051e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 1005280b026c6Smrg if test "$supported" = "yes" ; then 1005380b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 1005480b026c6Smrg found="yes" 1005580b026c6Smrg fi 1005680b026c6Smrg fi 1005780b026c6Smrg 1005880b026c6Smrg 1005980b026c6Smrg 1006080b026c6Smrg 1006180b026c6Smrg 1006280b026c6Smrg 1006380b026c6Smrg 1006480b026c6Smrg 1006580b026c6Smrg 1006680b026c6Smrg 1006780b026c6Smrg 1006880b026c6Smrg 1006980b026c6Smrg 1007080b026c6Smrg 1007180b026c6Smrg 1007280b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1007380b026c6Smrg 1007480b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1007580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10076e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10077e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10078e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10079e39ce84cSmrgthen : 10080e39ce84cSmrg printf %s "(cached) " >&6 1008146374b8dSmrgelse case e in #( 1008246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1008380b026c6Smrg/* end confdefs.h. */ 1008480b026c6Smrgint i; 1008580b026c6Smrg_ACEOF 10086e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 10087e39ce84cSmrgthen : 1008880b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1008946374b8dSmrgelse case e in #( 1009046374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 1009146374b8dSmrgesac 1009280b026c6Smrgfi 1009346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1009446374b8dSmrgesac 1009580b026c6Smrgfi 10096e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10097e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1009880b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1009980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1010080b026c6Smrgfi 1010180b026c6Smrg 1010280b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1010380b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1010480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1010580b026c6Smrg fi 1010680b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10107e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10108e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10109e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10110e39ce84cSmrgthen : 10111e39ce84cSmrg printf %s "(cached) " >&6 1011246374b8dSmrgelse case e in #( 1011346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1011480b026c6Smrg/* end confdefs.h. */ 1011580b026c6Smrgint i; 1011680b026c6Smrg_ACEOF 10117e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 10118e39ce84cSmrgthen : 1011980b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1012046374b8dSmrgelse case e in #( 1012146374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 1012246374b8dSmrgesac 1012380b026c6Smrgfi 1012446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1012546374b8dSmrgesac 1012680b026c6Smrgfi 10127e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10128e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1012980b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1013080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1013180b026c6Smrgfi 1013280b026c6Smrg 1013380b026c6Smrgfound="no" 1013480b026c6Smrg 1013580b026c6Smrg if test $found = "no" ; then 101360c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1013780b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1013880b026c6Smrg fi 1013980b026c6Smrg 101400c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1014180b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1014280b026c6Smrg fi 1014380b026c6Smrg 1014480b026c6Smrg CFLAGS="$CFLAGS -Wtrigraphs" 1014580b026c6Smrg 10146e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10147e39ce84cSmrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; } 1014880b026c6Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 10149e39ce84cSmrg if eval test \${$cacheid+y} 10150e39ce84cSmrgthen : 10151e39ce84cSmrg printf %s "(cached) " >&6 1015246374b8dSmrgelse case e in #( 1015346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1015480b026c6Smrg/* end confdefs.h. */ 1015580b026c6Smrgint i; 1015680b026c6Smrgint 10157e39ce84cSmrgmain (void) 1015880b026c6Smrg{ 1015980b026c6Smrg 1016080b026c6Smrg ; 1016180b026c6Smrg return 0; 1016280b026c6Smrg} 1016380b026c6Smrg_ACEOF 10164e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 10165e39ce84cSmrgthen : 1016680b026c6Smrg eval $cacheid=yes 1016746374b8dSmrgelse case e in #( 1016846374b8dSmrg e) eval $cacheid=no ;; 1016946374b8dSmrgesac 1017080b026c6Smrgfi 10171e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1017246374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 1017346374b8dSmrgesac 1017480b026c6Smrgfi 1017580b026c6Smrg 1017680b026c6Smrg 1017780b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1017880b026c6Smrg 1017980b026c6Smrg eval supported=\$$cacheid 10180e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10181e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 1018280b026c6Smrg if test "$supported" = "yes" ; then 1018380b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 1018480b026c6Smrg found="yes" 1018580b026c6Smrg fi 1018680b026c6Smrg fi 1018780b026c6Smrg 1018880b026c6Smrg 1018980b026c6Smrg 1019080b026c6Smrg 1019180b026c6Smrg 1019280b026c6Smrg 1019380b026c6Smrg 1019480b026c6Smrg 1019580b026c6Smrg 1019680b026c6Smrg 1019780b026c6Smrg 1019880b026c6Smrg 1019980b026c6Smrg 1020080b026c6Smrg 1020180b026c6Smrg 1020280b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1020380b026c6Smrg 1020480b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1020580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10206e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10207e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10208e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10209e39ce84cSmrgthen : 10210e39ce84cSmrg printf %s "(cached) " >&6 1021146374b8dSmrgelse case e in #( 1021246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1021380b026c6Smrg/* end confdefs.h. */ 1021480b026c6Smrgint i; 1021580b026c6Smrg_ACEOF 10216e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 10217e39ce84cSmrgthen : 1021880b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1021946374b8dSmrgelse case e in #( 1022046374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 1022146374b8dSmrgesac 1022280b026c6Smrgfi 1022346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1022446374b8dSmrgesac 1022580b026c6Smrgfi 10226e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10227e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1022880b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1022980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1023080b026c6Smrgfi 1023180b026c6Smrg 1023280b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1023380b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1023480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1023580b026c6Smrg fi 1023680b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10237e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10238e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10239e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10240e39ce84cSmrgthen : 10241e39ce84cSmrg printf %s "(cached) " >&6 1024246374b8dSmrgelse case e in #( 1024346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1024480b026c6Smrg/* end confdefs.h. */ 1024580b026c6Smrgint i; 1024680b026c6Smrg_ACEOF 10247e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 10248e39ce84cSmrgthen : 1024980b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1025046374b8dSmrgelse case e in #( 1025146374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 1025246374b8dSmrgesac 1025380b026c6Smrgfi 1025446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1025546374b8dSmrgesac 1025680b026c6Smrgfi 10257e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10258e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1025980b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1026080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1026180b026c6Smrgfi 1026280b026c6Smrg 1026380b026c6Smrgfound="no" 1026480b026c6Smrg 1026580b026c6Smrg if test $found = "no" ; then 102660c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1026780b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1026880b026c6Smrg fi 1026980b026c6Smrg 102700c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1027180b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1027280b026c6Smrg fi 1027380b026c6Smrg 1027480b026c6Smrg CFLAGS="$CFLAGS -Warray-bounds" 1027580b026c6Smrg 10276e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10277e39ce84cSmrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; } 1027880b026c6Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 10279e39ce84cSmrg if eval test \${$cacheid+y} 10280e39ce84cSmrgthen : 10281e39ce84cSmrg printf %s "(cached) " >&6 1028246374b8dSmrgelse case e in #( 1028346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1028480b026c6Smrg/* end confdefs.h. */ 1028580b026c6Smrgint i; 1028680b026c6Smrgint 10287e39ce84cSmrgmain (void) 1028880b026c6Smrg{ 1028980b026c6Smrg 1029080b026c6Smrg ; 1029180b026c6Smrg return 0; 1029280b026c6Smrg} 1029380b026c6Smrg_ACEOF 10294e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 10295e39ce84cSmrgthen : 1029680b026c6Smrg eval $cacheid=yes 1029746374b8dSmrgelse case e in #( 1029846374b8dSmrg e) eval $cacheid=no ;; 1029946374b8dSmrgesac 1030080b026c6Smrgfi 10301e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1030246374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 1030346374b8dSmrgesac 1030480b026c6Smrgfi 1030580b026c6Smrg 1030680b026c6Smrg 1030780b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1030880b026c6Smrg 1030980b026c6Smrg eval supported=\$$cacheid 10310e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10311e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 1031280b026c6Smrg if test "$supported" = "yes" ; then 1031380b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 1031480b026c6Smrg found="yes" 1031580b026c6Smrg fi 1031680b026c6Smrg fi 1031780b026c6Smrg 1031880b026c6Smrg 1031980b026c6Smrg 1032080b026c6Smrg 1032180b026c6Smrg 1032280b026c6Smrg 1032380b026c6Smrg 1032480b026c6Smrg 1032580b026c6Smrg 1032680b026c6Smrg 1032780b026c6Smrg 1032880b026c6Smrg 1032980b026c6Smrg 1033080b026c6Smrg 1033180b026c6Smrg 1033280b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1033380b026c6Smrg 1033480b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1033580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10336e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10337e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10338e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10339e39ce84cSmrgthen : 10340e39ce84cSmrg printf %s "(cached) " >&6 1034146374b8dSmrgelse case e in #( 1034246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1034380b026c6Smrg/* end confdefs.h. */ 1034480b026c6Smrgint i; 1034580b026c6Smrg_ACEOF 10346e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 10347e39ce84cSmrgthen : 1034880b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1034946374b8dSmrgelse case e in #( 1035046374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 1035146374b8dSmrgesac 1035280b026c6Smrgfi 1035346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1035446374b8dSmrgesac 1035580b026c6Smrgfi 10356e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10357e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1035880b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1035980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1036080b026c6Smrgfi 1036180b026c6Smrg 1036280b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1036380b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1036480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1036580b026c6Smrg fi 1036680b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10367e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10368e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10369e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10370e39ce84cSmrgthen : 10371e39ce84cSmrg printf %s "(cached) " >&6 1037246374b8dSmrgelse case e in #( 1037346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1037480b026c6Smrg/* end confdefs.h. */ 1037580b026c6Smrgint i; 1037680b026c6Smrg_ACEOF 10377e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 10378e39ce84cSmrgthen : 1037980b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1038046374b8dSmrgelse case e in #( 1038146374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 1038246374b8dSmrgesac 1038380b026c6Smrgfi 1038446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1038546374b8dSmrgesac 1038680b026c6Smrgfi 10387e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10388e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1038980b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1039080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1039180b026c6Smrgfi 1039280b026c6Smrg 1039380b026c6Smrgfound="no" 1039480b026c6Smrg 1039580b026c6Smrg if test $found = "no" ; then 103960c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1039780b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1039880b026c6Smrg fi 1039980b026c6Smrg 104000c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1040180b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1040280b026c6Smrg fi 1040380b026c6Smrg 1040480b026c6Smrg CFLAGS="$CFLAGS -Wwrite-strings" 1040580b026c6Smrg 10406e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10407e39ce84cSmrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; } 1040880b026c6Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 10409e39ce84cSmrg if eval test \${$cacheid+y} 10410e39ce84cSmrgthen : 10411e39ce84cSmrg printf %s "(cached) " >&6 1041246374b8dSmrgelse case e in #( 1041346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1041480b026c6Smrg/* end confdefs.h. */ 1041580b026c6Smrgint i; 1041680b026c6Smrgint 10417e39ce84cSmrgmain (void) 1041880b026c6Smrg{ 1041980b026c6Smrg 1042080b026c6Smrg ; 1042180b026c6Smrg return 0; 1042280b026c6Smrg} 1042380b026c6Smrg_ACEOF 10424e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 10425e39ce84cSmrgthen : 1042680b026c6Smrg eval $cacheid=yes 1042746374b8dSmrgelse case e in #( 1042846374b8dSmrg e) eval $cacheid=no ;; 1042946374b8dSmrgesac 1043080b026c6Smrgfi 10431e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1043246374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 1043346374b8dSmrgesac 1043480b026c6Smrgfi 1043580b026c6Smrg 1043680b026c6Smrg 1043780b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1043880b026c6Smrg 1043980b026c6Smrg eval supported=\$$cacheid 10440e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10441e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 1044280b026c6Smrg if test "$supported" = "yes" ; then 1044380b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 1044480b026c6Smrg found="yes" 1044580b026c6Smrg fi 1044680b026c6Smrg fi 1044780b026c6Smrg 1044880b026c6Smrg 1044980b026c6Smrg 1045080b026c6Smrg 1045180b026c6Smrg 1045280b026c6Smrg 1045380b026c6Smrg 1045480b026c6Smrg 1045580b026c6Smrg 1045680b026c6Smrg 1045780b026c6Smrg 1045880b026c6Smrg 1045980b026c6Smrg 1046080b026c6Smrg 1046180b026c6Smrg 1046280b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1046380b026c6Smrg 1046480b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1046580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10466e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10467e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10468e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10469e39ce84cSmrgthen : 10470e39ce84cSmrg printf %s "(cached) " >&6 1047146374b8dSmrgelse case e in #( 1047246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1047380b026c6Smrg/* end confdefs.h. */ 1047480b026c6Smrgint i; 1047580b026c6Smrg_ACEOF 10476e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 10477e39ce84cSmrgthen : 1047880b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1047946374b8dSmrgelse case e in #( 1048046374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 1048146374b8dSmrgesac 1048280b026c6Smrgfi 1048346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1048446374b8dSmrgesac 1048580b026c6Smrgfi 10486e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10487e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1048880b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1048980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1049080b026c6Smrgfi 1049180b026c6Smrg 1049280b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1049380b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1049480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1049580b026c6Smrg fi 1049680b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10497e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10498e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10499e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10500e39ce84cSmrgthen : 10501e39ce84cSmrg printf %s "(cached) " >&6 1050246374b8dSmrgelse case e in #( 1050346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1050480b026c6Smrg/* end confdefs.h. */ 1050580b026c6Smrgint i; 1050680b026c6Smrg_ACEOF 10507e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 10508e39ce84cSmrgthen : 1050980b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1051046374b8dSmrgelse case e in #( 1051146374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 1051246374b8dSmrgesac 1051380b026c6Smrgfi 1051446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1051546374b8dSmrgesac 1051680b026c6Smrgfi 10517e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10518e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1051980b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1052080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1052180b026c6Smrgfi 1052280b026c6Smrg 1052380b026c6Smrgfound="no" 1052480b026c6Smrg 1052580b026c6Smrg if test $found = "no" ; then 105260c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1052780b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1052880b026c6Smrg fi 1052980b026c6Smrg 105300c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1053180b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1053280b026c6Smrg fi 1053380b026c6Smrg 1053480b026c6Smrg CFLAGS="$CFLAGS -Waddress" 1053580b026c6Smrg 10536e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10537e39ce84cSmrgprintf %s "checking if $CC supports -Waddress... " >&6; } 1053880b026c6Smrg cacheid=xorg_cv_cc_flag__Waddress 10539e39ce84cSmrg if eval test \${$cacheid+y} 10540e39ce84cSmrgthen : 10541e39ce84cSmrg printf %s "(cached) " >&6 1054246374b8dSmrgelse case e in #( 1054346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1054480b026c6Smrg/* end confdefs.h. */ 1054580b026c6Smrgint i; 1054680b026c6Smrgint 10547e39ce84cSmrgmain (void) 1054880b026c6Smrg{ 1054980b026c6Smrg 1055080b026c6Smrg ; 1055180b026c6Smrg return 0; 1055280b026c6Smrg} 1055380b026c6Smrg_ACEOF 10554e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 10555e39ce84cSmrgthen : 1055680b026c6Smrg eval $cacheid=yes 1055746374b8dSmrgelse case e in #( 1055846374b8dSmrg e) eval $cacheid=no ;; 1055946374b8dSmrgesac 1056080b026c6Smrgfi 10561e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1056246374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 1056346374b8dSmrgesac 1056480b026c6Smrgfi 1056580b026c6Smrg 1056680b026c6Smrg 1056780b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1056880b026c6Smrg 1056980b026c6Smrg eval supported=\$$cacheid 10570e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10571e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 1057280b026c6Smrg if test "$supported" = "yes" ; then 1057380b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 1057480b026c6Smrg found="yes" 1057580b026c6Smrg fi 1057680b026c6Smrg fi 1057780b026c6Smrg 1057880b026c6Smrg 1057980b026c6Smrg 1058080b026c6Smrg 1058180b026c6Smrg 1058280b026c6Smrg 1058380b026c6Smrg 1058480b026c6Smrg 1058580b026c6Smrg 1058680b026c6Smrg 1058780b026c6Smrg 1058880b026c6Smrg 1058980b026c6Smrg 1059080b026c6Smrg 1059180b026c6Smrg 1059280b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1059380b026c6Smrg 1059480b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1059580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10596e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10597e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10598e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10599e39ce84cSmrgthen : 10600e39ce84cSmrg printf %s "(cached) " >&6 1060146374b8dSmrgelse case e in #( 1060246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1060380b026c6Smrg/* end confdefs.h. */ 1060480b026c6Smrgint i; 1060580b026c6Smrg_ACEOF 10606e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 10607e39ce84cSmrgthen : 1060880b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1060946374b8dSmrgelse case e in #( 1061046374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 1061146374b8dSmrgesac 1061280b026c6Smrgfi 1061346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1061446374b8dSmrgesac 1061580b026c6Smrgfi 10616e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10617e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1061880b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1061980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1062080b026c6Smrgfi 1062180b026c6Smrg 1062280b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1062380b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1062480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1062580b026c6Smrg fi 1062680b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10627e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10628e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10629e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10630e39ce84cSmrgthen : 10631e39ce84cSmrg printf %s "(cached) " >&6 1063246374b8dSmrgelse case e in #( 1063346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1063480b026c6Smrg/* end confdefs.h. */ 1063580b026c6Smrgint i; 1063680b026c6Smrg_ACEOF 10637e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 10638e39ce84cSmrgthen : 1063980b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1064046374b8dSmrgelse case e in #( 1064146374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 1064246374b8dSmrgesac 1064380b026c6Smrgfi 1064446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1064546374b8dSmrgesac 1064680b026c6Smrgfi 10647e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10648e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1064980b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1065080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1065180b026c6Smrgfi 1065280b026c6Smrg 1065380b026c6Smrgfound="no" 1065480b026c6Smrg 1065580b026c6Smrg if test $found = "no" ; then 106560c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1065780b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1065880b026c6Smrg fi 1065980b026c6Smrg 106600c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1066180b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1066280b026c6Smrg fi 1066380b026c6Smrg 1066480b026c6Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 1066580b026c6Smrg 10666e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10667e39ce84cSmrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 1066880b026c6Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10669e39ce84cSmrg if eval test \${$cacheid+y} 10670e39ce84cSmrgthen : 10671e39ce84cSmrg printf %s "(cached) " >&6 1067246374b8dSmrgelse case e in #( 1067346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1067480b026c6Smrg/* end confdefs.h. */ 1067580b026c6Smrgint i; 1067680b026c6Smrgint 10677e39ce84cSmrgmain (void) 1067880b026c6Smrg{ 1067980b026c6Smrg 1068080b026c6Smrg ; 1068180b026c6Smrg return 0; 1068280b026c6Smrg} 1068380b026c6Smrg_ACEOF 10684e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 10685e39ce84cSmrgthen : 1068680b026c6Smrg eval $cacheid=yes 1068746374b8dSmrgelse case e in #( 1068846374b8dSmrg e) eval $cacheid=no ;; 1068946374b8dSmrgesac 1069080b026c6Smrgfi 10691e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1069246374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 1069346374b8dSmrgesac 1069480b026c6Smrgfi 1069580b026c6Smrg 1069680b026c6Smrg 1069780b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1069880b026c6Smrg 1069980b026c6Smrg eval supported=\$$cacheid 10700e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10701e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 1070280b026c6Smrg if test "$supported" = "yes" ; then 1070380b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 1070480b026c6Smrg found="yes" 1070580b026c6Smrg fi 1070680b026c6Smrg fi 1070780b026c6Smrg 1070880b026c6Smrg 1070980b026c6Smrg 1071080b026c6Smrg 1071180b026c6Smrg 1071280b026c6Smrg 1071380b026c6Smrg 1071480b026c6Smrg 1071580b026c6Smrg 1071680b026c6Smrg 1071780b026c6Smrg 1071880b026c6Smrg 1071980b026c6Smrg 1072080b026c6Smrg 1072180b026c6Smrg 1072280b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1072380b026c6Smrg 1072480b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1072580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10726e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10727e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10728e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10729e39ce84cSmrgthen : 10730e39ce84cSmrg printf %s "(cached) " >&6 1073146374b8dSmrgelse case e in #( 1073246374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1073380b026c6Smrg/* end confdefs.h. */ 1073480b026c6Smrgint i; 1073580b026c6Smrg_ACEOF 10736e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 10737e39ce84cSmrgthen : 1073880b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1073946374b8dSmrgelse case e in #( 1074046374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 1074146374b8dSmrgesac 1074280b026c6Smrgfi 1074346374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1074446374b8dSmrgesac 1074580b026c6Smrgfi 10746e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10747e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1074880b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1074980b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1075080b026c6Smrgfi 1075180b026c6Smrg 1075280b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1075380b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1075480b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1075580b026c6Smrg fi 1075680b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10757e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10758e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10759e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10760e39ce84cSmrgthen : 10761e39ce84cSmrg printf %s "(cached) " >&6 1076246374b8dSmrgelse case e in #( 1076346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1076480b026c6Smrg/* end confdefs.h. */ 1076580b026c6Smrgint i; 1076680b026c6Smrg_ACEOF 10767e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 10768e39ce84cSmrgthen : 1076980b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1077046374b8dSmrgelse case e in #( 1077146374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 1077246374b8dSmrgesac 1077380b026c6Smrgfi 1077446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1077546374b8dSmrgesac 1077680b026c6Smrgfi 10777e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10778e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1077980b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1078080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1078180b026c6Smrgfi 1078280b026c6Smrg 1078380b026c6Smrgfound="no" 1078480b026c6Smrg 1078580b026c6Smrg if test $found = "no" ; then 107860c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1078780b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1078880b026c6Smrg fi 1078980b026c6Smrg 107900c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1079180b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1079280b026c6Smrg fi 1079380b026c6Smrg 1079480b026c6Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 1079580b026c6Smrg 10796e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10797e39ce84cSmrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 1079880b026c6Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10799e39ce84cSmrg if eval test \${$cacheid+y} 10800e39ce84cSmrgthen : 10801e39ce84cSmrg printf %s "(cached) " >&6 1080246374b8dSmrgelse case e in #( 1080346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1080480b026c6Smrg/* end confdefs.h. */ 1080580b026c6Smrgint i; 1080680b026c6Smrgint 10807e39ce84cSmrgmain (void) 1080880b026c6Smrg{ 1080980b026c6Smrg 1081080b026c6Smrg ; 1081180b026c6Smrg return 0; 1081280b026c6Smrg} 1081380b026c6Smrg_ACEOF 10814e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 10815e39ce84cSmrgthen : 1081680b026c6Smrg eval $cacheid=yes 1081746374b8dSmrgelse case e in #( 1081846374b8dSmrg e) eval $cacheid=no ;; 1081946374b8dSmrgesac 1082080b026c6Smrgfi 10821e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1082246374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 1082346374b8dSmrgesac 1082480b026c6Smrgfi 1082580b026c6Smrg 1082680b026c6Smrg 1082780b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1082880b026c6Smrg 1082980b026c6Smrg eval supported=\$$cacheid 10830e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10831e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 1083280b026c6Smrg if test "$supported" = "yes" ; then 1083380b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 1083480b026c6Smrg found="yes" 1083580b026c6Smrg fi 1083680b026c6Smrg fi 1083780b026c6Smrg 1083880b026c6Smrg 1083980b026c6Smrgfi 1084080b026c6Smrg 1084180b026c6Smrg 1084280b026c6Smrg 1084380b026c6Smrg 1084480b026c6Smrg 1084580b026c6Smrg 1084680b026c6Smrg 1084780b026c6Smrg CWARNFLAGS="$BASE_CFLAGS" 1084880b026c6Smrg if test "x$GCC" = xyes ; then 1084980b026c6Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 1085080b026c6Smrg fi 1085180b026c6Smrg 1085280b026c6Smrg 1085380b026c6Smrg 1085480b026c6Smrg 1085580b026c6Smrg 1085680b026c6Smrg 1085780b026c6Smrg 1085880b026c6Smrg 1085980b026c6Smrg# Check whether --enable-strict-compilation was given. 10860e39ce84cSmrgif test ${enable_strict_compilation+y} 10861e39ce84cSmrgthen : 1086280b026c6Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 1086346374b8dSmrgelse case e in #( 1086446374b8dSmrg e) STRICT_COMPILE=no ;; 1086546374b8dSmrgesac 1086680b026c6Smrgfi 1086780b026c6Smrg 1086880b026c6Smrg 1086980b026c6Smrg 1087080b026c6Smrg 1087180b026c6Smrg 1087280b026c6Smrg 1087380b026c6SmrgSTRICT_CFLAGS="" 1087480b026c6Smrg 1087580b026c6Smrg 1087680b026c6Smrg 1087780b026c6Smrg 1087880b026c6Smrg 1087980b026c6Smrg 1088080b026c6Smrg 1088180b026c6Smrg 1088280b026c6Smrg 1088380b026c6Smrg 1088480b026c6Smrg 1088580b026c6Smrg 1088680b026c6Smrg 1088780b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1088880b026c6Smrg 1088980b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1089080b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10891e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10892e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10893e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10894e39ce84cSmrgthen : 10895e39ce84cSmrg printf %s "(cached) " >&6 1089646374b8dSmrgelse case e in #( 1089746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1089880b026c6Smrg/* end confdefs.h. */ 1089980b026c6Smrgint i; 1090080b026c6Smrg_ACEOF 10901e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 10902e39ce84cSmrgthen : 1090380b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1090446374b8dSmrgelse case e in #( 1090546374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 1090646374b8dSmrgesac 1090780b026c6Smrgfi 1090846374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1090946374b8dSmrgesac 1091080b026c6Smrgfi 10911e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10912e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1091380b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1091480b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1091580b026c6Smrgfi 1091680b026c6Smrg 1091780b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1091880b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1091980b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1092080b026c6Smrg fi 1092180b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10922e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10923e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10924e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10925e39ce84cSmrgthen : 10926e39ce84cSmrg printf %s "(cached) " >&6 1092746374b8dSmrgelse case e in #( 1092846374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1092980b026c6Smrg/* end confdefs.h. */ 1093080b026c6Smrgint i; 1093180b026c6Smrg_ACEOF 10932e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 10933e39ce84cSmrgthen : 1093480b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1093546374b8dSmrgelse case e in #( 1093646374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 1093746374b8dSmrgesac 1093880b026c6Smrgfi 1093946374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1094046374b8dSmrgesac 1094180b026c6Smrgfi 10942e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10943e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1094480b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1094580b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1094680b026c6Smrgfi 1094780b026c6Smrg 1094880b026c6Smrgfound="no" 1094980b026c6Smrg 1095080b026c6Smrg if test $found = "no" ; then 109510c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1095280b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1095380b026c6Smrg fi 1095480b026c6Smrg 109550c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1095680b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1095780b026c6Smrg fi 1095880b026c6Smrg 1095980b026c6Smrg CFLAGS="$CFLAGS -pedantic" 1096080b026c6Smrg 10961e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10962e39ce84cSmrgprintf %s "checking if $CC supports -pedantic... " >&6; } 1096380b026c6Smrg cacheid=xorg_cv_cc_flag__pedantic 10964e39ce84cSmrg if eval test \${$cacheid+y} 10965e39ce84cSmrgthen : 10966e39ce84cSmrg printf %s "(cached) " >&6 1096746374b8dSmrgelse case e in #( 1096846374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1096980b026c6Smrg/* end confdefs.h. */ 1097080b026c6Smrgint i; 1097180b026c6Smrgint 10972e39ce84cSmrgmain (void) 1097380b026c6Smrg{ 1097480b026c6Smrg 1097580b026c6Smrg ; 1097680b026c6Smrg return 0; 1097780b026c6Smrg} 1097880b026c6Smrg_ACEOF 10979e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 10980e39ce84cSmrgthen : 1098180b026c6Smrg eval $cacheid=yes 1098246374b8dSmrgelse case e in #( 1098346374b8dSmrg e) eval $cacheid=no ;; 1098446374b8dSmrgesac 1098580b026c6Smrgfi 10986e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1098746374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 1098846374b8dSmrgesac 1098980b026c6Smrgfi 1099080b026c6Smrg 1099180b026c6Smrg 1099280b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1099380b026c6Smrg 1099480b026c6Smrg eval supported=\$$cacheid 10995e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10996e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 1099780b026c6Smrg if test "$supported" = "yes" ; then 1099880b026c6Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 1099980b026c6Smrg found="yes" 1100080b026c6Smrg fi 1100180b026c6Smrg fi 1100280b026c6Smrg 1100380b026c6Smrg 1100480b026c6Smrg 1100580b026c6Smrg 1100680b026c6Smrg 1100780b026c6Smrg 1100880b026c6Smrg 1100980b026c6Smrg 1101080b026c6Smrg 1101180b026c6Smrg 1101280b026c6Smrg 1101380b026c6Smrg 1101480b026c6Smrg 1101580b026c6Smrg 1101680b026c6Smrg 1101780b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1101880b026c6Smrg 1101980b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1102080b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11021e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11022e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11023e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 11024e39ce84cSmrgthen : 11025e39ce84cSmrg printf %s "(cached) " >&6 1102646374b8dSmrgelse case e in #( 1102746374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1102880b026c6Smrg/* end confdefs.h. */ 1102980b026c6Smrgint i; 1103080b026c6Smrg_ACEOF 11031e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 11032e39ce84cSmrgthen : 1103380b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1103446374b8dSmrgelse case e in #( 1103546374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 1103646374b8dSmrgesac 1103780b026c6Smrgfi 1103846374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1103946374b8dSmrgesac 1104080b026c6Smrgfi 11041e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11042e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1104380b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1104480b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1104580b026c6Smrgfi 1104680b026c6Smrg 1104780b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1104880b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1104980b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1105080b026c6Smrg fi 1105180b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11052e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11053e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11054e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11055e39ce84cSmrgthen : 11056e39ce84cSmrg printf %s "(cached) " >&6 1105746374b8dSmrgelse case e in #( 1105846374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1105980b026c6Smrg/* end confdefs.h. */ 1106080b026c6Smrgint i; 1106180b026c6Smrg_ACEOF 11062e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 11063e39ce84cSmrgthen : 1106480b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1106546374b8dSmrgelse case e in #( 1106646374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 1106746374b8dSmrgesac 1106880b026c6Smrgfi 1106946374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1107046374b8dSmrgesac 1107180b026c6Smrgfi 11072e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11073e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1107480b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1107580b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1107680b026c6Smrgfi 1107780b026c6Smrg 1107880b026c6Smrgfound="no" 1107980b026c6Smrg 1108080b026c6Smrg if test $found = "no" ; then 110810c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1108280b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1108380b026c6Smrg fi 1108480b026c6Smrg 110850c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1108680b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1108780b026c6Smrg fi 1108880b026c6Smrg 1108980b026c6Smrg CFLAGS="$CFLAGS -Werror" 1109080b026c6Smrg 11091e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11092e39ce84cSmrgprintf %s "checking if $CC supports -Werror... " >&6; } 1109380b026c6Smrg cacheid=xorg_cv_cc_flag__Werror 11094e39ce84cSmrg if eval test \${$cacheid+y} 11095e39ce84cSmrgthen : 11096e39ce84cSmrg printf %s "(cached) " >&6 1109746374b8dSmrgelse case e in #( 1109846374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1109980b026c6Smrg/* end confdefs.h. */ 1110080b026c6Smrgint i; 1110180b026c6Smrgint 11102e39ce84cSmrgmain (void) 1110380b026c6Smrg{ 1110480b026c6Smrg 1110580b026c6Smrg ; 1110680b026c6Smrg return 0; 1110780b026c6Smrg} 1110880b026c6Smrg_ACEOF 11109e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 11110e39ce84cSmrgthen : 1111180b026c6Smrg eval $cacheid=yes 1111246374b8dSmrgelse case e in #( 1111346374b8dSmrg e) eval $cacheid=no ;; 1111446374b8dSmrgesac 1111580b026c6Smrgfi 11116e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1111746374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 1111846374b8dSmrgesac 1111980b026c6Smrgfi 1112080b026c6Smrg 1112180b026c6Smrg 1112280b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1112380b026c6Smrg 1112480b026c6Smrg eval supported=\$$cacheid 11125e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11126e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 1112780b026c6Smrg if test "$supported" = "yes" ; then 1112880b026c6Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 1112980b026c6Smrg found="yes" 1113080b026c6Smrg fi 1113180b026c6Smrg fi 1113280b026c6Smrg 1113380b026c6Smrg if test $found = "no" ; then 111340c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1113580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1113680b026c6Smrg fi 1113780b026c6Smrg 111380c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1113980b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1114080b026c6Smrg fi 1114180b026c6Smrg 1114280b026c6Smrg CFLAGS="$CFLAGS -errwarn" 1114380b026c6Smrg 11144e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11145e39ce84cSmrgprintf %s "checking if $CC supports -errwarn... " >&6; } 1114680b026c6Smrg cacheid=xorg_cv_cc_flag__errwarn 11147e39ce84cSmrg if eval test \${$cacheid+y} 11148e39ce84cSmrgthen : 11149e39ce84cSmrg printf %s "(cached) " >&6 1115046374b8dSmrgelse case e in #( 1115146374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1115280b026c6Smrg/* end confdefs.h. */ 1115380b026c6Smrgint i; 1115480b026c6Smrgint 11155e39ce84cSmrgmain (void) 1115680b026c6Smrg{ 1115780b026c6Smrg 1115880b026c6Smrg ; 1115980b026c6Smrg return 0; 1116080b026c6Smrg} 1116180b026c6Smrg_ACEOF 11162e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 11163e39ce84cSmrgthen : 1116480b026c6Smrg eval $cacheid=yes 1116546374b8dSmrgelse case e in #( 1116646374b8dSmrg e) eval $cacheid=no ;; 1116746374b8dSmrgesac 1116880b026c6Smrgfi 11169e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1117046374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 1117146374b8dSmrgesac 1117280b026c6Smrgfi 1117380b026c6Smrg 1117480b026c6Smrg 1117580b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1117680b026c6Smrg 1117780b026c6Smrg eval supported=\$$cacheid 11178e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11179e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 1118080b026c6Smrg if test "$supported" = "yes" ; then 1118180b026c6Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 1118280b026c6Smrg found="yes" 1118380b026c6Smrg fi 1118480b026c6Smrg fi 1118580b026c6Smrg 1118680b026c6Smrg 1118780b026c6Smrg 1118880b026c6Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 1118980b026c6Smrg# activate it with -Werror, so we add it here explicitly. 1119080b026c6Smrg 1119180b026c6Smrg 1119280b026c6Smrg 1119380b026c6Smrg 1119480b026c6Smrg 1119580b026c6Smrg 1119680b026c6Smrg 1119780b026c6Smrg 1119880b026c6Smrg 1119980b026c6Smrg 1120080b026c6Smrg 1120180b026c6Smrg 1120280b026c6Smrg 1120380b026c6Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1120480b026c6Smrg 1120580b026c6Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1120680b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11207e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11208e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11209e39ce84cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 11210e39ce84cSmrgthen : 11211e39ce84cSmrg printf %s "(cached) " >&6 1121246374b8dSmrgelse case e in #( 1121346374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1121480b026c6Smrg/* end confdefs.h. */ 1121580b026c6Smrgint i; 1121680b026c6Smrg_ACEOF 11217e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 11218e39ce84cSmrgthen : 1121980b026c6Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1122046374b8dSmrgelse case e in #( 1122146374b8dSmrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 1122246374b8dSmrgesac 1122380b026c6Smrgfi 1122446374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1122546374b8dSmrgesac 1122680b026c6Smrgfi 11227e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11228e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1122980b026c6Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1123080b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1123180b026c6Smrgfi 1123280b026c6Smrg 1123380b026c6Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1123480b026c6Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1123580b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1123680b026c6Smrg fi 1123780b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11238e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11239e39ce84cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11240e39ce84cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11241e39ce84cSmrgthen : 11242e39ce84cSmrg printf %s "(cached) " >&6 1124346374b8dSmrgelse case e in #( 1124446374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1124580b026c6Smrg/* end confdefs.h. */ 1124680b026c6Smrgint i; 1124780b026c6Smrg_ACEOF 11248e39ce84cSmrgif ac_fn_c_try_compile "$LINENO" 11249e39ce84cSmrgthen : 1125080b026c6Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1125146374b8dSmrgelse case e in #( 1125246374b8dSmrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 1125346374b8dSmrgesac 1125480b026c6Smrgfi 1125546374b8dSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1125646374b8dSmrgesac 1125780b026c6Smrgfi 11258e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11259e39ce84cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1126080b026c6Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1126180b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1126280b026c6Smrgfi 1126380b026c6Smrg 1126480b026c6Smrgfound="no" 1126580b026c6Smrg 1126680b026c6Smrg if test $found = "no" ; then 112670c7e83b2Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1126880b026c6Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1126980b026c6Smrg fi 1127080b026c6Smrg 112710c7e83b2Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1127280b026c6Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1127380b026c6Smrg fi 1127480b026c6Smrg 1127580b026c6Smrg CFLAGS="$CFLAGS -Werror=attributes" 1127680b026c6Smrg 11277e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11278e39ce84cSmrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; } 112790c7e83b2Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 11280e39ce84cSmrg if eval test \${$cacheid+y} 11281e39ce84cSmrgthen : 11282e39ce84cSmrg printf %s "(cached) " >&6 1128346374b8dSmrgelse case e in #( 1128446374b8dSmrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1128580b026c6Smrg/* end confdefs.h. */ 1128680b026c6Smrgint i; 1128780b026c6Smrgint 11288e39ce84cSmrgmain (void) 1128980b026c6Smrg{ 1129080b026c6Smrg 1129180b026c6Smrg ; 1129280b026c6Smrg return 0; 1129380b026c6Smrg} 1129480b026c6Smrg_ACEOF 11295e39ce84cSmrgif ac_fn_c_try_link "$LINENO" 11296e39ce84cSmrgthen : 1129780b026c6Smrg eval $cacheid=yes 1129846374b8dSmrgelse case e in #( 1129946374b8dSmrg e) eval $cacheid=no ;; 1130046374b8dSmrgesac 1130180b026c6Smrgfi 11302e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1130346374b8dSmrg conftest$ac_exeext conftest.$ac_ext ;; 1130446374b8dSmrgesac 1130580b026c6Smrgfi 1130680b026c6Smrg 1130780b026c6Smrg 1130880b026c6Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1130980b026c6Smrg 1131080b026c6Smrg eval supported=\$$cacheid 11311e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11312e39ce84cSmrgprintf "%s\n" "$supported" >&6; } 1131380b026c6Smrg if test "$supported" = "yes" ; then 1131480b026c6Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 1131580b026c6Smrg found="yes" 1131680b026c6Smrg fi 1131780b026c6Smrg fi 1131880b026c6Smrg 1131980b026c6Smrg 1132080b026c6Smrg 1132180b026c6Smrgif test "x$STRICT_COMPILE" = "xyes"; then 1132280b026c6Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 1132380b026c6Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 1132480b026c6Smrgfi 1132580b026c6Smrg 1132680b026c6Smrg 1132780b026c6Smrg 1132880b026c6Smrg 1132980b026c6Smrg 1133080b026c6Smrg 1133146374b8dSmrg 1133246374b8dSmrg 1133380b026c6Smrgcat >>confdefs.h <<_ACEOF 1133480b026c6Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 1133580b026c6Smrg_ACEOF 1133680b026c6Smrg 1133780b026c6Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 1133880b026c6Smrg if test "x$PVM" = "x"; then 1133980b026c6Smrg PVM="0" 1134080b026c6Smrg fi 1134180b026c6Smrg 11342e39ce84cSmrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 1134380b026c6Smrg 1134480b026c6Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 1134580b026c6Smrg if test "x$PVP" = "x"; then 1134680b026c6Smrg PVP="0" 1134780b026c6Smrg fi 1134880b026c6Smrg 11349e39ce84cSmrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 1135080b026c6Smrg 1135180b026c6Smrg 1135280b026c6Smrg 11353e39ce84cSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 1135480b026c6Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11355e39ce84cSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11356e39ce84cSmrgtouch \$(top_srcdir)/ChangeLog; \ 11357e39ce84cSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 1135880b026c6Smrg 1135980b026c6Smrg 1136080b026c6Smrg 1136180b026c6Smrg 1136280b026c6Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 1136380b026c6SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 1136480b026c6Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11365e39ce84cSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11366e39ce84cSmrgtouch \$(top_srcdir)/INSTALL; \ 11367e39ce84cSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 1136880b026c6Smrg 1136980b026c6Smrg 1137080b026c6Smrg 1137180b026c6Smrg 1137280b026c6Smrg 1137380b026c6Smrg 11374e39ce84cSmrgcase $host_os in 11375e39ce84cSmrg solaris*) 11376e39ce84cSmrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11377e39ce84cSmrg # check for a man page file found in later versions that use 11378e39ce84cSmrg # traditional section numbers instead 11379e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11380e39ce84cSmrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11381e39ce84cSmrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11382e39ce84cSmrgthen : 11383e39ce84cSmrg printf %s "(cached) " >&6 1138446374b8dSmrgelse case e in #( 1138546374b8dSmrg e) test "$cross_compiling" = yes && 11386e39ce84cSmrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11387e39ce84cSmrgif test -r "/usr/share/man/man7/attributes.7"; then 11388e39ce84cSmrg ac_cv_file__usr_share_man_man7_attributes_7=yes 11389e39ce84cSmrgelse 11390e39ce84cSmrg ac_cv_file__usr_share_man_man7_attributes_7=no 1139146374b8dSmrgfi ;; 1139246374b8dSmrgesac 11393e39ce84cSmrgfi 11394e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11395e39ce84cSmrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11396e39ce84cSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11397e39ce84cSmrgthen : 11398e39ce84cSmrg SYSV_MAN_SECTIONS=false 1139946374b8dSmrgelse case e in #( 1140046374b8dSmrg e) SYSV_MAN_SECTIONS=true ;; 1140146374b8dSmrgesac 11402e39ce84cSmrgfi 11403e39ce84cSmrg 11404e39ce84cSmrg ;; 11405e39ce84cSmrg *) SYSV_MAN_SECTIONS=false ;; 11406e39ce84cSmrgesac 11407e39ce84cSmrg 1140880b026c6Smrgif test x$APP_MAN_SUFFIX = x ; then 1140980b026c6Smrg APP_MAN_SUFFIX=1 1141080b026c6Smrgfi 1141180b026c6Smrgif test x$APP_MAN_DIR = x ; then 1141280b026c6Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1141380b026c6Smrgfi 1141480b026c6Smrg 1141580b026c6Smrgif test x$LIB_MAN_SUFFIX = x ; then 1141680b026c6Smrg LIB_MAN_SUFFIX=3 1141780b026c6Smrgfi 1141880b026c6Smrgif test x$LIB_MAN_DIR = x ; then 1141980b026c6Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1142080b026c6Smrgfi 1142180b026c6Smrg 1142280b026c6Smrgif test x$FILE_MAN_SUFFIX = x ; then 11423e39ce84cSmrg case $SYSV_MAN_SECTIONS in 11424e39ce84cSmrg true) FILE_MAN_SUFFIX=4 ;; 11425e39ce84cSmrg *) FILE_MAN_SUFFIX=5 ;; 1142680b026c6Smrg esac 1142780b026c6Smrgfi 1142880b026c6Smrgif test x$FILE_MAN_DIR = x ; then 1142980b026c6Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 1143080b026c6Smrgfi 1143180b026c6Smrg 1143280b026c6Smrgif test x$MISC_MAN_SUFFIX = x ; then 11433e39ce84cSmrg case $SYSV_MAN_SECTIONS in 11434e39ce84cSmrg true) MISC_MAN_SUFFIX=5 ;; 11435e39ce84cSmrg *) MISC_MAN_SUFFIX=7 ;; 1143680b026c6Smrg esac 1143780b026c6Smrgfi 1143880b026c6Smrgif test x$MISC_MAN_DIR = x ; then 1143980b026c6Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 1144080b026c6Smrgfi 1144180b026c6Smrg 1144280b026c6Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 11443e39ce84cSmrg case $SYSV_MAN_SECTIONS in 11444e39ce84cSmrg true) DRIVER_MAN_SUFFIX=7 ;; 11445e39ce84cSmrg *) DRIVER_MAN_SUFFIX=4 ;; 1144680b026c6Smrg esac 1144780b026c6Smrgfi 1144880b026c6Smrgif test x$DRIVER_MAN_DIR = x ; then 1144980b026c6Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1145080b026c6Smrgfi 1145180b026c6Smrg 1145280b026c6Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 11453e39ce84cSmrg case $SYSV_MAN_SECTIONS in 11454e39ce84cSmrg true) ADMIN_MAN_SUFFIX=1m ;; 11455e39ce84cSmrg *) ADMIN_MAN_SUFFIX=8 ;; 1145680b026c6Smrg esac 1145780b026c6Smrgfi 1145880b026c6Smrgif test x$ADMIN_MAN_DIR = x ; then 1145980b026c6Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1146080b026c6Smrgfi 1146180b026c6Smrg 1146280b026c6Smrg 1146380b026c6Smrg 1146480b026c6Smrg 1146580b026c6Smrg 1146680b026c6Smrg 1146780b026c6Smrg 1146880b026c6Smrg 1146980b026c6Smrg 1147080b026c6Smrg 1147180b026c6Smrg 1147280b026c6Smrg 1147380b026c6Smrg 1147480b026c6Smrg 1147580b026c6Smrg 1147680b026c6SmrgXORG_MAN_PAGE="X Version 11" 1147780b026c6Smrg 1147880b026c6SmrgMAN_SUBSTS="\ 1147980b026c6Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1148080b026c6Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1148180b026c6Smrg -e 's|__xservername__|Xorg|g' \ 1148280b026c6Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 1148380b026c6Smrg -e 's|__projectroot__|\$(prefix)|g' \ 1148480b026c6Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1148580b026c6Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1148680b026c6Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1148780b026c6Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1148880b026c6Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1148980b026c6Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1149080b026c6Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1149180b026c6Smrg 1149280b026c6Smrg 1149380b026c6Smrg 1149480b026c6Smrg 1149546374b8dSmrgAM_DEFAULT_VERBOSITY=0 1149680b026c6Smrg 1149780b026c6Smrg 1149880b026c6Smrg 11499e39ce84cSmrgac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 11500e39ce84cSmrgif test "x$ac_cv_func_nanosleep" = xyes 11501e39ce84cSmrgthen : 11502e39ce84cSmrg printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h 11503e39ce84cSmrg 11504e39ce84cSmrgfi 11505e39ce84cSmrgac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 11506e39ce84cSmrgif test "x$ac_cv_func_poll" = xyes 11507e39ce84cSmrgthen : 11508e39ce84cSmrg printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 11509e39ce84cSmrg 11510e39ce84cSmrgfi 11511e39ce84cSmrgac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 11512e39ce84cSmrgif test "x$ac_cv_func_select" = xyes 11513e39ce84cSmrgthen : 11514e39ce84cSmrg printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h 1151580b026c6Smrg 1151680b026c6Smrgfi 1151780b026c6Smrg 1151880b026c6Smrg 1151980b026c6Smrg# Math libraries & functions 1152080b026c6Smrg# - some compilers use builtin inlines for floor 1152180b026c6Smrg# - lrint() is a C99 addition not found on some older systems 1152280b026c6Smrg# - must do the libm check first so that the lrint check will have it in $LIBS 11523e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 11524e39ce84cSmrgprintf %s "checking for library containing floor... " >&6; } 11525e39ce84cSmrgif test ${ac_cv_search_floor+y} 11526e39ce84cSmrgthen : 11527e39ce84cSmrg printf %s "(cached) " >&6 1152846374b8dSmrgelse case e in #( 1152946374b8dSmrg e) ac_func_search_save_LIBS=$LIBS 1153080b026c6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1153180b026c6Smrg/* end confdefs.h. */ 1153280b026c6Smrg 1153380b026c6Smrg/* Override any GCC internal prototype to avoid an error. 1153480b026c6Smrg Use char because int might match the return type of a GCC 1153546374b8dSmrg builtin and then its argument prototype would still apply. 1153646374b8dSmrg The 'extern "C"' is for builds by C++ compilers; 1153746374b8dSmrg although this is not generally supported in C code supporting it here 1153846374b8dSmrg has little cost and some practical benefit (sr 110532). */ 1153946374b8dSmrg#ifdef __cplusplus 1154046374b8dSmrgextern "C" 1154146374b8dSmrg#endif 1154246374b8dSmrgchar floor (void); 1154380b026c6Smrgint 11544e39ce84cSmrgmain (void) 1154580b026c6Smrg{ 1154680b026c6Smrgreturn floor (); 1154780b026c6Smrg ; 1154880b026c6Smrg return 0; 1154980b026c6Smrg} 1155080b026c6Smrg_ACEOF 11551e39ce84cSmrgfor ac_lib in '' m 11552e39ce84cSmrgdo 1155380b026c6Smrg if test -z "$ac_lib"; then 1155480b026c6Smrg ac_res="none required" 1155580b026c6Smrg else 1155680b026c6Smrg ac_res=-l$ac_lib 1155780b026c6Smrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 1155880b026c6Smrg fi 11559e39ce84cSmrg if ac_fn_c_try_link "$LINENO" 11560e39ce84cSmrgthen : 1156180b026c6Smrg ac_cv_search_floor=$ac_res 1156280b026c6Smrgfi 11563e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1156480b026c6Smrg conftest$ac_exeext 11565e39ce84cSmrg if test ${ac_cv_search_floor+y} 11566e39ce84cSmrgthen : 1156780b026c6Smrg break 1156880b026c6Smrgfi 1156980b026c6Smrgdone 11570e39ce84cSmrgif test ${ac_cv_search_floor+y} 11571e39ce84cSmrgthen : 1157280b026c6Smrg 1157346374b8dSmrgelse case e in #( 1157446374b8dSmrg e) ac_cv_search_floor=no ;; 1157546374b8dSmrgesac 1157680b026c6Smrgfi 1157780b026c6Smrgrm conftest.$ac_ext 1157846374b8dSmrgLIBS=$ac_func_search_save_LIBS ;; 1157946374b8dSmrgesac 1158080b026c6Smrgfi 11581e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 11582e39ce84cSmrgprintf "%s\n" "$ac_cv_search_floor" >&6; } 1158380b026c6Smrgac_res=$ac_cv_search_floor 11584e39ce84cSmrgif test "$ac_res" != no 11585e39ce84cSmrgthen : 1158680b026c6Smrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 1158780b026c6Smrg 1158880b026c6Smrgfi 1158980b026c6Smrg 11590e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5 11591e39ce84cSmrgprintf %s "checking for library containing lrint... " >&6; } 11592e39ce84cSmrgif test ${ac_cv_search_lrint+y} 11593e39ce84cSmrgthen : 11594e39ce84cSmrg printf %s "(cached) " >&6 1159546374b8dSmrgelse case e in #( 1159646374b8dSmrg e) ac_func_search_save_LIBS=$LIBS 1159780b026c6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1159880b026c6Smrg/* end confdefs.h. */ 1159980b026c6Smrg 1160080b026c6Smrg/* Override any GCC internal prototype to avoid an error. 1160180b026c6Smrg Use char because int might match the return type of a GCC 1160246374b8dSmrg builtin and then its argument prototype would still apply. 1160346374b8dSmrg The 'extern "C"' is for builds by C++ compilers; 1160446374b8dSmrg although this is not generally supported in C code supporting it here 1160546374b8dSmrg has little cost and some practical benefit (sr 110532). */ 1160646374b8dSmrg#ifdef __cplusplus 1160746374b8dSmrgextern "C" 1160846374b8dSmrg#endif 1160946374b8dSmrgchar lrint (void); 1161080b026c6Smrgint 11611e39ce84cSmrgmain (void) 1161280b026c6Smrg{ 1161380b026c6Smrgreturn lrint (); 1161480b026c6Smrg ; 1161580b026c6Smrg return 0; 1161680b026c6Smrg} 1161780b026c6Smrg_ACEOF 11618e39ce84cSmrgfor ac_lib in '' m 11619e39ce84cSmrgdo 1162080b026c6Smrg if test -z "$ac_lib"; then 1162180b026c6Smrg ac_res="none required" 1162280b026c6Smrg else 1162380b026c6Smrg ac_res=-l$ac_lib 1162480b026c6Smrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 1162580b026c6Smrg fi 11626e39ce84cSmrg if ac_fn_c_try_link "$LINENO" 11627e39ce84cSmrgthen : 1162880b026c6Smrg ac_cv_search_lrint=$ac_res 1162980b026c6Smrgfi 11630e39ce84cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1163180b026c6Smrg conftest$ac_exeext 11632e39ce84cSmrg if test ${ac_cv_search_lrint+y} 11633e39ce84cSmrgthen : 1163480b026c6Smrg break 1163580b026c6Smrgfi 1163680b026c6Smrgdone 11637e39ce84cSmrgif test ${ac_cv_search_lrint+y} 11638e39ce84cSmrgthen : 1163980b026c6Smrg 1164046374b8dSmrgelse case e in #( 1164146374b8dSmrg e) ac_cv_search_lrint=no ;; 1164246374b8dSmrgesac 1164380b026c6Smrgfi 1164480b026c6Smrgrm conftest.$ac_ext 1164546374b8dSmrgLIBS=$ac_func_search_save_LIBS ;; 1164646374b8dSmrgesac 1164780b026c6Smrgfi 11648e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5 11649e39ce84cSmrgprintf "%s\n" "$ac_cv_search_lrint" >&6; } 1165080b026c6Smrgac_res=$ac_cv_search_lrint 11651e39ce84cSmrgif test "$ac_res" != no 11652e39ce84cSmrgthen : 1165380b026c6Smrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 1165480b026c6Smrg 1165580b026c6Smrgfi 1165680b026c6Smrg 11657e39ce84cSmrgac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint" 11658e39ce84cSmrgif test "x$ac_cv_func_lrint" = xyes 11659e39ce84cSmrgthen : 11660e39ce84cSmrg printf "%s\n" "#define HAVE_LRINT 1" >>confdefs.h 116619aa228fdSmrg 116628f65982aSmrgfi 116639aa228fdSmrg 116649aa228fdSmrg 116658f65982aSmrg# Checks for pkg-config packages 116668f65982aSmrg 116678f65982aSmrgpkg_failed=no 11668e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMAG" >&5 11669e39ce84cSmrgprintf %s "checking for XMAG... " >&6; } 116708f65982aSmrg 116718f65982aSmrgif test -n "$XMAG_CFLAGS"; then 116728f65982aSmrg pkg_cv_XMAG_CFLAGS="$XMAG_CFLAGS" 116738f65982aSmrg elif test -n "$PKG_CONFIG"; then 116748f65982aSmrg if test -n "$PKG_CONFIG" && \ 1167546374b8dSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.22\""; } >&5 1167646374b8dSmrg ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.22") 2>&5 116778f65982aSmrg ac_status=$? 11678e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 116798f65982aSmrg test $ac_status = 0; }; then 1168046374b8dSmrg pkg_cv_XMAG_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11 xproto >= 7.0.22" 2>/dev/null` 11681e39ce84cSmrg test "x$?" != "x0" && pkg_failed=yes 116828f65982aSmrgelse 116838f65982aSmrg pkg_failed=yes 116848f65982aSmrgfi 116858f65982aSmrg else 116868f65982aSmrg pkg_failed=untried 116878f65982aSmrgfi 116888f65982aSmrgif test -n "$XMAG_LIBS"; then 116898f65982aSmrg pkg_cv_XMAG_LIBS="$XMAG_LIBS" 116908f65982aSmrg elif test -n "$PKG_CONFIG"; then 116918f65982aSmrg if test -n "$PKG_CONFIG" && \ 1169246374b8dSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.22\""; } >&5 1169346374b8dSmrg ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.22") 2>&5 116948f65982aSmrg ac_status=$? 11695e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 116968f65982aSmrg test $ac_status = 0; }; then 1169746374b8dSmrg pkg_cv_XMAG_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11 xproto >= 7.0.22" 2>/dev/null` 11698e39ce84cSmrg test "x$?" != "x0" && pkg_failed=yes 116998f65982aSmrgelse 117008f65982aSmrg pkg_failed=yes 117018f65982aSmrgfi 117028f65982aSmrg else 117038f65982aSmrg pkg_failed=untried 117048f65982aSmrgfi 117058f65982aSmrg 117068f65982aSmrg 117078f65982aSmrg 117088f65982aSmrgif test $pkg_failed = yes; then 11709e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11710e39ce84cSmrgprintf "%s\n" "no" >&6; } 117118f65982aSmrg 117128f65982aSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 117138f65982aSmrg _pkg_short_errors_supported=yes 117148f65982aSmrgelse 117158f65982aSmrg _pkg_short_errors_supported=no 117168f65982aSmrgfi 117178f65982aSmrg if test $_pkg_short_errors_supported = yes; then 1171846374b8dSmrg XMAG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.22" 2>&1` 117198f65982aSmrg else 1172046374b8dSmrg XMAG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.22" 2>&1` 117218f65982aSmrg fi 117228f65982aSmrg # Put the nasty error message in config.log where it belongs 117238f65982aSmrg echo "$XMAG_PKG_ERRORS" >&5 117248f65982aSmrg 1172546374b8dSmrg as_fn_error $? "Package requirements (xaw7 xmu xt x11 xproto >= 7.0.22) were not met: 117268f65982aSmrg 117278f65982aSmrg$XMAG_PKG_ERRORS 117288f65982aSmrg 117298f65982aSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 117308f65982aSmrginstalled software in a non-standard prefix. 117318f65982aSmrg 117328f65982aSmrgAlternatively, you may set the environment variables XMAG_CFLAGS 117338f65982aSmrgand XMAG_LIBS to avoid the need to call pkg-config. 11734e39ce84cSmrgSee the pkg-config man page for more details." "$LINENO" 5 117358f65982aSmrgelif test $pkg_failed = untried; then 11736e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11737e39ce84cSmrgprintf "%s\n" "no" >&6; } 1173846374b8dSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1173946374b8dSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 117408f65982aSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 117418f65982aSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 117428f65982aSmrgpath to pkg-config. 117438f65982aSmrg 117448f65982aSmrgAlternatively, you may set the environment variables XMAG_CFLAGS 117458f65982aSmrgand XMAG_LIBS to avoid the need to call pkg-config. 117468f65982aSmrgSee the pkg-config man page for more details. 117478f65982aSmrg 117488f65982aSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 1174946374b8dSmrgSee 'config.log' for more details" "$LINENO" 5; } 117508f65982aSmrgelse 117518f65982aSmrg XMAG_CFLAGS=$pkg_cv_XMAG_CFLAGS 117528f65982aSmrg XMAG_LIBS=$pkg_cv_XMAG_LIBS 11753e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11754e39ce84cSmrgprintf "%s\n" "yes" >&6; } 11755e39ce84cSmrg 117568f65982aSmrgfi 117578f65982aSmrg 117588f65982aSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 117598f65982aSmrg 117608f65982aSmrg# Check whether --with-appdefaultdir was given. 11761e39ce84cSmrgif test ${with_appdefaultdir+y} 11762e39ce84cSmrgthen : 117638f65982aSmrg withval=$with_appdefaultdir; appdefaultdir="$withval" 1176446374b8dSmrgelse case e in #( 1176546374b8dSmrg e) appdefaultdir="${xt_appdefaultdir}" ;; 1176646374b8dSmrgesac 117678f65982aSmrgfi 1176883d7c197Smrg 1176983d7c197Smrg 1177083d7c197Smrg 1177183d7c197Smrg 1177280b026c6Smrgac_config_files="$ac_config_files Makefile man/Makefile" 117739aa228fdSmrg 117749aa228fdSmrgcat >confcache <<\_ACEOF 117759aa228fdSmrg# This file is a shell script that caches the results of configure 117769aa228fdSmrg# tests run on this system so they can be shared between configure 117779aa228fdSmrg# scripts and configure runs, see configure's option --config-cache. 117789aa228fdSmrg# It is not useful on other systems. If it contains results you don't 117799aa228fdSmrg# want to keep, you may remove or edit it. 117809aa228fdSmrg# 117819aa228fdSmrg# config.status only pays attention to the cache file if you give it 117829aa228fdSmrg# the --recheck option to rerun configure. 117839aa228fdSmrg# 1178446374b8dSmrg# 'ac_cv_env_foo' variables (set or unset) will be overridden when 1178546374b8dSmrg# loading this file, other *unset* 'ac_cv_foo' will be assigned the 117869aa228fdSmrg# following values. 117879aa228fdSmrg 117889aa228fdSmrg_ACEOF 117899aa228fdSmrg 117909aa228fdSmrg# The following way of writing the cache mishandles newlines in values, 117919aa228fdSmrg# but we know of no workaround that is simple, portable, and efficient. 117929aa228fdSmrg# So, we kill variables containing newlines. 117939aa228fdSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 117949aa228fdSmrg# and sets the high bit in the cache file unless we assign to the vars. 117959aa228fdSmrg( 117969aa228fdSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 117979aa228fdSmrg eval ac_val=\$$ac_var 117989aa228fdSmrg case $ac_val in #( 117999aa228fdSmrg *${as_nl}*) 118009aa228fdSmrg case $ac_var in #( 11801e39ce84cSmrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11802e39ce84cSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 118039aa228fdSmrg esac 118049aa228fdSmrg case $ac_var in #( 118059aa228fdSmrg _ | IFS | as_nl) ;; #( 118068f65982aSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 118078f65982aSmrg *) { eval $ac_var=; unset $ac_var;} ;; 118089aa228fdSmrg esac ;; 118099aa228fdSmrg esac 118109aa228fdSmrg done 118119aa228fdSmrg 118129aa228fdSmrg (set) 2>&1 | 118139aa228fdSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 118149aa228fdSmrg *${as_nl}ac_space=\ *) 1181546374b8dSmrg # 'set' does not quote correctly, so add quotes: double-quote 118168f65982aSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 118179aa228fdSmrg sed -n \ 118189aa228fdSmrg "s/'/'\\\\''/g; 118199aa228fdSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 118209aa228fdSmrg ;; #( 118219aa228fdSmrg *) 1182246374b8dSmrg # 'set' quotes correctly as required by POSIX, so do not add quotes. 118239aa228fdSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 118249aa228fdSmrg ;; 118259aa228fdSmrg esac | 118269aa228fdSmrg sort 118279aa228fdSmrg) | 118289aa228fdSmrg sed ' 118299aa228fdSmrg /^ac_cv_env_/b end 118309aa228fdSmrg t clear 118319aa228fdSmrg :clear 11832e39ce84cSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 118339aa228fdSmrg t end 118349aa228fdSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 118359aa228fdSmrg :end' >>confcache 118369aa228fdSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 118379aa228fdSmrg if test -w "$cache_file"; then 118388f65982aSmrg if test "x$cache_file" != "x/dev/null"; then 11839e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11840e39ce84cSmrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;} 118418f65982aSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 118428f65982aSmrg cat confcache >"$cache_file" 118438f65982aSmrg else 118448f65982aSmrg case $cache_file in #( 118458f65982aSmrg */* | ?:*) 118468f65982aSmrg mv -f confcache "$cache_file"$$ && 118478f65982aSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 118488f65982aSmrg *) 118498f65982aSmrg mv -f confcache "$cache_file" ;; 118508f65982aSmrg esac 118518f65982aSmrg fi 118528f65982aSmrg fi 118539aa228fdSmrg else 11854e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11855e39ce84cSmrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 118569aa228fdSmrg fi 118579aa228fdSmrgfi 118589aa228fdSmrgrm -f confcache 118599aa228fdSmrg 118609aa228fdSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 118619aa228fdSmrg# Let make expand exec_prefix. 118629aa228fdSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 118639aa228fdSmrg 118649aa228fdSmrgDEFS=-DHAVE_CONFIG_H 118659aa228fdSmrg 118669aa228fdSmrgac_libobjs= 118679aa228fdSmrgac_ltlibobjs= 118688f65982aSmrgU= 118699aa228fdSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 118709aa228fdSmrg # 1. Remove the extension, and $U if already installed. 118719aa228fdSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11872e39ce84cSmrg ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 118739aa228fdSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 118749aa228fdSmrg # will be set to the directory where LIBOBJS objects are built. 118758f65982aSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 118768f65982aSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 118779aa228fdSmrgdone 118789aa228fdSmrgLIBOBJS=$ac_libobjs 118799aa228fdSmrg 118809aa228fdSmrgLTLIBOBJS=$ac_ltlibobjs 118819aa228fdSmrg 118829aa228fdSmrg 11883e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11884e39ce84cSmrgprintf %s "checking that generated files are newer than configure... " >&6; } 118850c7e83b2Smrg if test -n "$am_sleep_pid"; then 118860c7e83b2Smrg # Hide warnings about reused PIDs. 118870c7e83b2Smrg wait $am_sleep_pid 2>/dev/null 118880c7e83b2Smrg fi 11889e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11890e39ce84cSmrgprintf "%s\n" "done" >&6; } 1189146374b8dSmrgcase $enable_silent_rules in # ((( 1189246374b8dSmrg yes) AM_DEFAULT_VERBOSITY=0;; 1189346374b8dSmrg no) AM_DEFAULT_VERBOSITY=1;; 1189446374b8dSmrgesac 1189546374b8dSmrgif test $am_cv_make_support_nested_variables = yes; then 1189646374b8dSmrg AM_V='$(V)' 1189746374b8dSmrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1189846374b8dSmrgelse 1189946374b8dSmrg AM_V=$AM_DEFAULT_VERBOSITY 1190046374b8dSmrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1190146374b8dSmrgfi 1190246374b8dSmrg 119038f65982aSmrg if test -n "$EXEEXT"; then 119048f65982aSmrg am__EXEEXT_TRUE= 119058f65982aSmrg am__EXEEXT_FALSE='#' 119068f65982aSmrgelse 119078f65982aSmrg am__EXEEXT_TRUE='#' 119088f65982aSmrg am__EXEEXT_FALSE= 119098f65982aSmrgfi 119108f65982aSmrg 119119aa228fdSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 119128f65982aSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 119138f65982aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 119149aa228fdSmrgfi 119159aa228fdSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 119168f65982aSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 119178f65982aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 119189aa228fdSmrgfi 119199aa228fdSmrg 119208f65982aSmrg: "${CONFIG_STATUS=./config.status}" 119218f65982aSmrgac_write_fail=0 119229aa228fdSmrgac_clean_files_save=$ac_clean_files 119239aa228fdSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 11924e39ce84cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11925e39ce84cSmrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 119268f65982aSmrgas_write_fail=0 119278f65982aSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 119289aa228fdSmrg#! $SHELL 119299aa228fdSmrg# Generated by $as_me. 119309aa228fdSmrg# Run this file to recreate the current configuration. 119319aa228fdSmrg# Compiler output produced by configure, useful for debugging 119329aa228fdSmrg# configure, is in config.log if it exists. 119339aa228fdSmrg 119349aa228fdSmrgdebug=false 119359aa228fdSmrgac_cs_recheck=false 119369aa228fdSmrgac_cs_silent=false 119379aa228fdSmrg 119388f65982aSmrgSHELL=\${CONFIG_SHELL-$SHELL} 119398f65982aSmrgexport SHELL 119408f65982aSmrg_ASEOF 119418f65982aSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 119428f65982aSmrg## -------------------- ## 119438f65982aSmrg## M4sh Initialization. ## 119448f65982aSmrg## -------------------- ## 119459aa228fdSmrg 119469aa228fdSmrg# Be more Bourne compatible 119479aa228fdSmrgDUALCASE=1; export DUALCASE # for MKS sh 11948e39ce84cSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11949e39ce84cSmrgthen : 119509aa228fdSmrg emulate sh 119519aa228fdSmrg NULLCMD=: 119528f65982aSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 119539aa228fdSmrg # is contrary to our usage. Disable this feature. 119549aa228fdSmrg alias -g '${1+"$@"}'='"$@"' 119559aa228fdSmrg setopt NO_GLOB_SUBST 1195646374b8dSmrgelse case e in #( 1195746374b8dSmrg e) case `(set -o) 2>/dev/null` in #( 119588f65982aSmrg *posix*) : 119598f65982aSmrg set -o posix ;; #( 119608f65982aSmrg *) : 119618f65982aSmrg ;; 1196246374b8dSmrgesac ;; 119639aa228fdSmrgesac 119649aa228fdSmrgfi 119659aa228fdSmrg 119669aa228fdSmrg 11967e39ce84cSmrg 11968e39ce84cSmrg# Reset variables that may have inherited troublesome values from 11969e39ce84cSmrg# the environment. 11970e39ce84cSmrg 11971e39ce84cSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 11972e39ce84cSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 11973e39ce84cSmrg# side effect of setting IFS to empty, thus disabling word splitting.) 11974e39ce84cSmrg# Quoting is to prevent editors from complaining about space-tab. 119758f65982aSmrgas_nl=' 119768f65982aSmrg' 119778f65982aSmrgexport as_nl 11978e39ce84cSmrgIFS=" "" $as_nl" 11979e39ce84cSmrg 11980e39ce84cSmrgPS1='$ ' 11981e39ce84cSmrgPS2='> ' 11982e39ce84cSmrgPS4='+ ' 11983e39ce84cSmrg 11984e39ce84cSmrg# Ensure predictable behavior from utilities with locale-dependent output. 11985e39ce84cSmrgLC_ALL=C 11986e39ce84cSmrgexport LC_ALL 11987e39ce84cSmrgLANGUAGE=C 11988e39ce84cSmrgexport LANGUAGE 11989e39ce84cSmrg 11990e39ce84cSmrg# We cannot yet rely on "unset" to work, but we need these variables 11991e39ce84cSmrg# to be unset--not just set to an empty or harmless value--now, to 11992e39ce84cSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11993e39ce84cSmrg# also avoids known problems related to "unset" and subshell syntax 11994e39ce84cSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11995e39ce84cSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11996e39ce84cSmrgdo eval test \${$as_var+y} \ 11997e39ce84cSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11998e39ce84cSmrgdone 11999e39ce84cSmrg 12000e39ce84cSmrg# Ensure that fds 0, 1, and 2 are open. 12001e39ce84cSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12002e39ce84cSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12003e39ce84cSmrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 120049aa228fdSmrg 120058f65982aSmrg# The user is always right. 12006e39ce84cSmrgif ${PATH_SEPARATOR+false} :; then 120078f65982aSmrg PATH_SEPARATOR=: 120088f65982aSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 120098f65982aSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 120108f65982aSmrg PATH_SEPARATOR=';' 120118f65982aSmrg } 120129aa228fdSmrgfi 120139aa228fdSmrg 120149aa228fdSmrg 120159aa228fdSmrg# Find who we are. Look in the path if we contain no directory separator. 120168f65982aSmrgas_myself= 120178f65982aSmrgcase $0 in #(( 120189aa228fdSmrg *[\\/]* ) as_myself=$0 ;; 120199aa228fdSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 120209aa228fdSmrgfor as_dir in $PATH 120219aa228fdSmrgdo 120229aa228fdSmrg IFS=$as_save_IFS 12023e39ce84cSmrg case $as_dir in #((( 12024e39ce84cSmrg '') as_dir=./ ;; 12025e39ce84cSmrg */) ;; 12026e39ce84cSmrg *) as_dir=$as_dir/ ;; 12027e39ce84cSmrg esac 12028e39ce84cSmrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 120298f65982aSmrg done 120309aa228fdSmrgIFS=$as_save_IFS 120319aa228fdSmrg 120329aa228fdSmrg ;; 120339aa228fdSmrgesac 1203446374b8dSmrg# We did not find ourselves, most probably we were run as 'sh COMMAND' 120359aa228fdSmrg# in which case we are not to be found in the path. 120369aa228fdSmrgif test "x$as_myself" = x; then 120379aa228fdSmrg as_myself=$0 120389aa228fdSmrgfi 120399aa228fdSmrgif test ! -f "$as_myself"; then 12040e39ce84cSmrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 120418f65982aSmrg exit 1 120429aa228fdSmrgfi 120439aa228fdSmrg 120448f65982aSmrg 120458f65982aSmrg 120468f65982aSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 120478f65982aSmrg# ---------------------------------------- 120488f65982aSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 120498f65982aSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 120508f65982aSmrg# script with STATUS, using 1 if that was 0. 120518f65982aSmrgas_fn_error () 120528f65982aSmrg{ 120538f65982aSmrg as_status=$1; test $as_status -eq 0 && as_status=1 120548f65982aSmrg if test "$4"; then 120558f65982aSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12056e39ce84cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 120579aa228fdSmrg fi 12058e39ce84cSmrg printf "%s\n" "$as_me: error: $2" >&2 120598f65982aSmrg as_fn_exit $as_status 120608f65982aSmrg} # as_fn_error 120618f65982aSmrg 120628f65982aSmrg 120638f65982aSmrg# as_fn_set_status STATUS 120648f65982aSmrg# ----------------------- 120658f65982aSmrg# Set $? to STATUS, without forking. 120668f65982aSmrgas_fn_set_status () 120678f65982aSmrg{ 120688f65982aSmrg return $1 120698f65982aSmrg} # as_fn_set_status 120708f65982aSmrg 120718f65982aSmrg# as_fn_exit STATUS 120728f65982aSmrg# ----------------- 120738f65982aSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 120748f65982aSmrgas_fn_exit () 120758f65982aSmrg{ 120768f65982aSmrg set +e 120778f65982aSmrg as_fn_set_status $1 120788f65982aSmrg exit $1 120798f65982aSmrg} # as_fn_exit 120808f65982aSmrg 120818f65982aSmrg# as_fn_unset VAR 120828f65982aSmrg# --------------- 120838f65982aSmrg# Portably unset VAR. 120848f65982aSmrgas_fn_unset () 120858f65982aSmrg{ 120868f65982aSmrg { eval $1=; unset $1;} 120878f65982aSmrg} 120888f65982aSmrgas_unset=as_fn_unset 12089e39ce84cSmrg 120908f65982aSmrg# as_fn_append VAR VALUE 120918f65982aSmrg# ---------------------- 120928f65982aSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 120938f65982aSmrg# advantage of any shell optimizations that allow amortized linear growth over 120948f65982aSmrg# repeated appends, instead of the typical quadratic growth present in naive 120958f65982aSmrg# implementations. 12096e39ce84cSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12097e39ce84cSmrgthen : 120988f65982aSmrg eval 'as_fn_append () 120998f65982aSmrg { 121008f65982aSmrg eval $1+=\$2 121018f65982aSmrg }' 1210246374b8dSmrgelse case e in #( 1210346374b8dSmrg e) as_fn_append () 121048f65982aSmrg { 121058f65982aSmrg eval $1=\$$1\$2 1210646374b8dSmrg } ;; 1210746374b8dSmrgesac 121088f65982aSmrgfi # as_fn_append 121098f65982aSmrg 121108f65982aSmrg# as_fn_arith ARG... 121118f65982aSmrg# ------------------ 121128f65982aSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 121138f65982aSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 121148f65982aSmrg# must be portable across $(()) and expr. 12115e39ce84cSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12116e39ce84cSmrgthen : 121178f65982aSmrg eval 'as_fn_arith () 121188f65982aSmrg { 121198f65982aSmrg as_val=$(( $* )) 121208f65982aSmrg }' 1212146374b8dSmrgelse case e in #( 1212246374b8dSmrg e) as_fn_arith () 121238f65982aSmrg { 121248f65982aSmrg as_val=`expr "$@" || test $? -eq 1` 1212546374b8dSmrg } ;; 1212646374b8dSmrgesac 121278f65982aSmrgfi # as_fn_arith 121288f65982aSmrg 121299aa228fdSmrg 121309aa228fdSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 121319aa228fdSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 121329aa228fdSmrg as_expr=expr 121339aa228fdSmrgelse 121349aa228fdSmrg as_expr=false 121359aa228fdSmrgfi 121369aa228fdSmrg 121379aa228fdSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 121389aa228fdSmrg as_basename=basename 121399aa228fdSmrgelse 121409aa228fdSmrg as_basename=false 121419aa228fdSmrgfi 121429aa228fdSmrg 121438f65982aSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 121448f65982aSmrg as_dirname=dirname 121458f65982aSmrgelse 121468f65982aSmrg as_dirname=false 121478f65982aSmrgfi 121489aa228fdSmrg 121499aa228fdSmrgas_me=`$as_basename -- "$0" || 121509aa228fdSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 121519aa228fdSmrg X"$0" : 'X\(//\)$' \| \ 121529aa228fdSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 12153e39ce84cSmrgprintf "%s\n" X/"$0" | 121549aa228fdSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 121559aa228fdSmrg s//\1/ 121569aa228fdSmrg q 121579aa228fdSmrg } 121589aa228fdSmrg /^X\/\(\/\/\)$/{ 121599aa228fdSmrg s//\1/ 121609aa228fdSmrg q 121619aa228fdSmrg } 121629aa228fdSmrg /^X\/\(\/\).*/{ 121639aa228fdSmrg s//\1/ 121649aa228fdSmrg q 121659aa228fdSmrg } 121669aa228fdSmrg s/.*/./; q'` 121679aa228fdSmrg 121688f65982aSmrg# Avoid depending upon Character Ranges. 121698f65982aSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 121708f65982aSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 121718f65982aSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 121728f65982aSmrgas_cr_digits='0123456789' 121738f65982aSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 121749aa228fdSmrg 12175e39ce84cSmrg 12176e39ce84cSmrg# Determine whether it's possible to make 'echo' print without a newline. 12177e39ce84cSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12178e39ce84cSmrg# for compatibility with existing Makefiles. 121799aa228fdSmrgECHO_C= ECHO_N= ECHO_T= 121808f65982aSmrgcase `echo -n x` in #((((( 121819aa228fdSmrg-n*) 121828f65982aSmrg case `echo 'xy\c'` in 121839aa228fdSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 121848f65982aSmrg xy) ECHO_C='\c';; 121858f65982aSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 121868f65982aSmrg ECHO_T=' ';; 121879aa228fdSmrg esac;; 121889aa228fdSmrg*) 121899aa228fdSmrg ECHO_N='-n';; 121909aa228fdSmrgesac 121919aa228fdSmrg 12192e39ce84cSmrg# For backward compatibility with old third-party macros, we provide 12193e39ce84cSmrg# the shell variables $as_echo and $as_echo_n. New code should use 12194e39ce84cSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12195e39ce84cSmrgas_echo='printf %s\n' 12196e39ce84cSmrgas_echo_n='printf %s' 12197e39ce84cSmrg 121989aa228fdSmrgrm -f conf$$ conf$$.exe conf$$.file 121999aa228fdSmrgif test -d conf$$.dir; then 122009aa228fdSmrg rm -f conf$$.dir/conf$$.file 122019aa228fdSmrgelse 122029aa228fdSmrg rm -f conf$$.dir 122038f65982aSmrg mkdir conf$$.dir 2>/dev/null 122048f65982aSmrgfi 122058f65982aSmrgif (echo >conf$$.file) 2>/dev/null; then 122068f65982aSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 122078f65982aSmrg as_ln_s='ln -s' 122088f65982aSmrg # ... but there are two gotchas: 1220946374b8dSmrg # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 1221046374b8dSmrg # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 1221146374b8dSmrg # In both cases, we have to default to 'cp -pR'. 122128f65982aSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 122130c7e83b2Smrg as_ln_s='cp -pR' 122148f65982aSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 122158f65982aSmrg as_ln_s=ln 122168f65982aSmrg else 122170c7e83b2Smrg as_ln_s='cp -pR' 122188f65982aSmrg fi 122199aa228fdSmrgelse 122200c7e83b2Smrg as_ln_s='cp -pR' 122219aa228fdSmrgfi 122229aa228fdSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 122239aa228fdSmrgrmdir conf$$.dir 2>/dev/null 122249aa228fdSmrg 122258f65982aSmrg 122268f65982aSmrg# as_fn_mkdir_p 122278f65982aSmrg# ------------- 122288f65982aSmrg# Create "$as_dir" as a directory, including parents if necessary. 122298f65982aSmrgas_fn_mkdir_p () 122308f65982aSmrg{ 122318f65982aSmrg 122328f65982aSmrg case $as_dir in #( 122338f65982aSmrg -*) as_dir=./$as_dir;; 122348f65982aSmrg esac 122358f65982aSmrg test -d "$as_dir" || eval $as_mkdir_p || { 122368f65982aSmrg as_dirs= 122378f65982aSmrg while :; do 122388f65982aSmrg case $as_dir in #( 12239e39ce84cSmrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 122408f65982aSmrg *) as_qdir=$as_dir;; 122418f65982aSmrg esac 122428f65982aSmrg as_dirs="'$as_qdir' $as_dirs" 122438f65982aSmrg as_dir=`$as_dirname -- "$as_dir" || 122448f65982aSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 122458f65982aSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 122468f65982aSmrg X"$as_dir" : 'X\(//\)$' \| \ 122478f65982aSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12248e39ce84cSmrgprintf "%s\n" X"$as_dir" | 122498f65982aSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 122508f65982aSmrg s//\1/ 122518f65982aSmrg q 122528f65982aSmrg } 122538f65982aSmrg /^X\(\/\/\)[^/].*/{ 122548f65982aSmrg s//\1/ 122558f65982aSmrg q 122568f65982aSmrg } 122578f65982aSmrg /^X\(\/\/\)$/{ 122588f65982aSmrg s//\1/ 122598f65982aSmrg q 122608f65982aSmrg } 122618f65982aSmrg /^X\(\/\).*/{ 122628f65982aSmrg s//\1/ 122638f65982aSmrg q 122648f65982aSmrg } 122658f65982aSmrg s/.*/./; q'` 122668f65982aSmrg test -d "$as_dir" && break 122678f65982aSmrg done 122688f65982aSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 122698f65982aSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 122708f65982aSmrg 122718f65982aSmrg 122728f65982aSmrg} # as_fn_mkdir_p 122739aa228fdSmrgif mkdir -p . 2>/dev/null; then 122748f65982aSmrg as_mkdir_p='mkdir -p "$as_dir"' 122759aa228fdSmrgelse 122769aa228fdSmrg test -d ./-p && rmdir ./-p 122779aa228fdSmrg as_mkdir_p=false 122789aa228fdSmrgfi 122799aa228fdSmrg 122800c7e83b2Smrg 122810c7e83b2Smrg# as_fn_executable_p FILE 122820c7e83b2Smrg# ----------------------- 122830c7e83b2Smrg# Test if FILE is an executable regular file. 122840c7e83b2Smrgas_fn_executable_p () 122850c7e83b2Smrg{ 122860c7e83b2Smrg test -f "$1" && test -x "$1" 122870c7e83b2Smrg} # as_fn_executable_p 122880c7e83b2Smrgas_test_x='test -x' 122890c7e83b2Smrgas_executable_p=as_fn_executable_p 122909aa228fdSmrg 122919aa228fdSmrg# Sed expression to map a string onto a valid CPP name. 1229246374b8dSmrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 1229346374b8dSmrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 122949aa228fdSmrg 122959aa228fdSmrg# Sed expression to map a string onto a valid variable name. 1229646374b8dSmrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 1229746374b8dSmrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated 122989aa228fdSmrg 122999aa228fdSmrg 123009aa228fdSmrgexec 6>&1 123018f65982aSmrg## ----------------------------------- ## 123028f65982aSmrg## Main body of $CONFIG_STATUS script. ## 123038f65982aSmrg## ----------------------------------- ## 123048f65982aSmrg_ASEOF 123058f65982aSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 123069aa228fdSmrg 123078f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 123088f65982aSmrg# Save the log message, to keep $0 and so on meaningful, and to 123099aa228fdSmrg# report actual input values of CONFIG_FILES etc. instead of their 123109aa228fdSmrg# values after options handling. 123119aa228fdSmrgac_log=" 1231246374b8dSmrgThis file was extended by xmag $as_me 1.0.8, which was 1231346374b8dSmrggenerated by GNU Autoconf 2.72. Invocation command line was 123149aa228fdSmrg 123159aa228fdSmrg CONFIG_FILES = $CONFIG_FILES 123169aa228fdSmrg CONFIG_HEADERS = $CONFIG_HEADERS 123179aa228fdSmrg CONFIG_LINKS = $CONFIG_LINKS 123189aa228fdSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 123199aa228fdSmrg $ $0 $@ 123209aa228fdSmrg 123219aa228fdSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 123229aa228fdSmrg" 123239aa228fdSmrg 123249aa228fdSmrg_ACEOF 123259aa228fdSmrg 123268f65982aSmrgcase $ac_config_files in *" 123278f65982aSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 123288f65982aSmrgesac 123298f65982aSmrg 123308f65982aSmrgcase $ac_config_headers in *" 123318f65982aSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 123328f65982aSmrgesac 123338f65982aSmrg 123348f65982aSmrg 123358f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 123369aa228fdSmrg# Files that config.status was made for. 123379aa228fdSmrgconfig_files="$ac_config_files" 123389aa228fdSmrgconfig_headers="$ac_config_headers" 123399aa228fdSmrgconfig_commands="$ac_config_commands" 123409aa228fdSmrg 123419aa228fdSmrg_ACEOF 123429aa228fdSmrg 123438f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 123449aa228fdSmrgac_cs_usage="\ 1234546374b8dSmrg'$as_me' instantiates files and other configuration actions 123468f65982aSmrgfrom templates according to the current configuration. Unless the files 123478f65982aSmrgand actions are specified as TAGs, all are instantiated by default. 123489aa228fdSmrg 123498f65982aSmrgUsage: $0 [OPTION]... [TAG]... 123509aa228fdSmrg 123519aa228fdSmrg -h, --help print this help, then exit 123529aa228fdSmrg -V, --version print version number and configuration settings, then exit 123538f65982aSmrg --config print configuration, then exit 123548f65982aSmrg -q, --quiet, --silent 123558f65982aSmrg do not print progress messages 123569aa228fdSmrg -d, --debug don't remove temporary files 123579aa228fdSmrg --recheck update $as_me by reconfiguring in the same conditions 123588f65982aSmrg --file=FILE[:TEMPLATE] 123598f65982aSmrg instantiate the configuration file FILE 123608f65982aSmrg --header=FILE[:TEMPLATE] 123618f65982aSmrg instantiate the configuration header FILE 123629aa228fdSmrg 123639aa228fdSmrgConfiguration files: 123649aa228fdSmrg$config_files 123659aa228fdSmrg 123669aa228fdSmrgConfiguration headers: 123679aa228fdSmrg$config_headers 123689aa228fdSmrg 123699aa228fdSmrgConfiguration commands: 123709aa228fdSmrg$config_commands 123719aa228fdSmrg 1237246374b8dSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xmag/-/issues>." 123739aa228fdSmrg 123749aa228fdSmrg_ACEOF 12375e39ce84cSmrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12376e39ce84cSmrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 123778f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12378e39ce84cSmrgac_cs_config='$ac_cs_config_escaped' 123799aa228fdSmrgac_cs_version="\\ 1238046374b8dSmrgxmag config.status 1.0.8 1238146374b8dSmrgconfigured by $0, generated by GNU Autoconf 2.72, 123828f65982aSmrg with options \\"\$ac_cs_config\\" 123839aa228fdSmrg 1238446374b8dSmrgCopyright (C) 2023 Free Software Foundation, Inc. 123859aa228fdSmrgThis config.status script is free software; the Free Software Foundation 123869aa228fdSmrggives unlimited permission to copy, distribute and modify it." 123879aa228fdSmrg 123889aa228fdSmrgac_pwd='$ac_pwd' 123899aa228fdSmrgsrcdir='$srcdir' 123909aa228fdSmrgINSTALL='$INSTALL' 123919aa228fdSmrgMKDIR_P='$MKDIR_P' 123928f65982aSmrgAWK='$AWK' 123938f65982aSmrgtest -n "\$AWK" || AWK=awk 123949aa228fdSmrg_ACEOF 123959aa228fdSmrg 123968f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 123978f65982aSmrg# The default lists apply if the user does not specify any file. 123989aa228fdSmrgac_need_defaults=: 123999aa228fdSmrgwhile test $# != 0 124009aa228fdSmrgdo 124019aa228fdSmrg case $1 in 124028f65982aSmrg --*=?*) 124039aa228fdSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 124049aa228fdSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 124059aa228fdSmrg ac_shift=: 124069aa228fdSmrg ;; 124078f65982aSmrg --*=) 124088f65982aSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 124098f65982aSmrg ac_optarg= 124108f65982aSmrg ac_shift=: 124118f65982aSmrg ;; 124129aa228fdSmrg *) 124139aa228fdSmrg ac_option=$1 124149aa228fdSmrg ac_optarg=$2 124159aa228fdSmrg ac_shift=shift 124169aa228fdSmrg ;; 124179aa228fdSmrg esac 124189aa228fdSmrg 124199aa228fdSmrg case $ac_option in 124209aa228fdSmrg # Handling of the options. 124219aa228fdSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 124229aa228fdSmrg ac_cs_recheck=: ;; 124239aa228fdSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12424e39ce84cSmrg printf "%s\n" "$ac_cs_version"; exit ;; 124258f65982aSmrg --config | --confi | --conf | --con | --co | --c ) 12426e39ce84cSmrg printf "%s\n" "$ac_cs_config"; exit ;; 124279aa228fdSmrg --debug | --debu | --deb | --de | --d | -d ) 124289aa228fdSmrg debug=: ;; 124299aa228fdSmrg --file | --fil | --fi | --f ) 124309aa228fdSmrg $ac_shift 124318f65982aSmrg case $ac_optarg in 12432e39ce84cSmrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 124338f65982aSmrg '') as_fn_error $? "missing file argument" ;; 124348f65982aSmrg esac 124358f65982aSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 124369aa228fdSmrg ac_need_defaults=false;; 124379aa228fdSmrg --header | --heade | --head | --hea ) 124389aa228fdSmrg $ac_shift 124398f65982aSmrg case $ac_optarg in 12440e39ce84cSmrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 124418f65982aSmrg esac 124428f65982aSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 124439aa228fdSmrg ac_need_defaults=false;; 124449aa228fdSmrg --he | --h) 124459aa228fdSmrg # Conflict between --help and --header 1244646374b8dSmrg as_fn_error $? "ambiguous option: '$1' 1244746374b8dSmrgTry '$0 --help' for more information.";; 124489aa228fdSmrg --help | --hel | -h ) 12449e39ce84cSmrg printf "%s\n" "$ac_cs_usage"; exit ;; 124509aa228fdSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 124519aa228fdSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 124529aa228fdSmrg ac_cs_silent=: ;; 124539aa228fdSmrg 124549aa228fdSmrg # This is an error. 1245546374b8dSmrg -*) as_fn_error $? "unrecognized option: '$1' 1245646374b8dSmrgTry '$0 --help' for more information." ;; 124579aa228fdSmrg 124588f65982aSmrg *) as_fn_append ac_config_targets " $1" 124599aa228fdSmrg ac_need_defaults=false ;; 124609aa228fdSmrg 124619aa228fdSmrg esac 124629aa228fdSmrg shift 124639aa228fdSmrgdone 124649aa228fdSmrg 124659aa228fdSmrgac_configure_extra_args= 124669aa228fdSmrg 124679aa228fdSmrgif $ac_cs_silent; then 124689aa228fdSmrg exec 6>/dev/null 124699aa228fdSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 124709aa228fdSmrgfi 124719aa228fdSmrg 124729aa228fdSmrg_ACEOF 124738f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 124749aa228fdSmrgif \$ac_cs_recheck; then 124750c7e83b2Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 124768f65982aSmrg shift 12477e39ce84cSmrg \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 124788f65982aSmrg CONFIG_SHELL='$SHELL' 124799aa228fdSmrg export CONFIG_SHELL 124808f65982aSmrg exec "\$@" 124819aa228fdSmrgfi 124829aa228fdSmrg 124839aa228fdSmrg_ACEOF 124848f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 124859aa228fdSmrgexec 5>>config.log 124869aa228fdSmrg{ 124879aa228fdSmrg echo 124889aa228fdSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 124899aa228fdSmrg## Running $as_me. ## 124909aa228fdSmrg_ASBOX 12491e39ce84cSmrg printf "%s\n" "$ac_log" 124929aa228fdSmrg} >&5 124939aa228fdSmrg 124949aa228fdSmrg_ACEOF 124958f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 124969aa228fdSmrg# 124979aa228fdSmrg# INIT-COMMANDS 124989aa228fdSmrg# 12499e39ce84cSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 125009aa228fdSmrg 125019aa228fdSmrg_ACEOF 125029aa228fdSmrg 125038f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 125049aa228fdSmrg 125059aa228fdSmrg# Handling of arguments. 125069aa228fdSmrgfor ac_config_target in $ac_config_targets 125079aa228fdSmrgdo 125089aa228fdSmrg case $ac_config_target in 125098f65982aSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 125100c7e83b2Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 125119aa228fdSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 1251280b026c6Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 125139aa228fdSmrg 1251446374b8dSmrg *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 125159aa228fdSmrg esac 125169aa228fdSmrgdone 125179aa228fdSmrg 125189aa228fdSmrg 125199aa228fdSmrg# If the user did not use the arguments to specify the items to instantiate, 125209aa228fdSmrg# then the envvar interface is used. Set only those that are not. 125219aa228fdSmrg# We use the long form for the default assignment because of an extremely 125229aa228fdSmrg# bizarre bug on SunOS 4.1.3. 125239aa228fdSmrgif $ac_need_defaults; then 12524e39ce84cSmrg test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12525e39ce84cSmrg test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12526e39ce84cSmrg test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 125279aa228fdSmrgfi 125289aa228fdSmrg 125299aa228fdSmrg# Have a temporary directory for convenience. Make it in the build tree 125309aa228fdSmrg# simply because there is no reason against having it here, and in addition, 125319aa228fdSmrg# creating and moving files from /tmp can sometimes cause problems. 125329aa228fdSmrg# Hook for its removal unless debugging. 125339aa228fdSmrg# Note that there is a small window in which the directory will not be cleaned: 1253446374b8dSmrg# after its creation but before its name has been assigned to '$tmp'. 125359aa228fdSmrg$debug || 125369aa228fdSmrg{ 125378f65982aSmrg tmp= ac_tmp= 125389aa228fdSmrg trap 'exit_status=$? 125398f65982aSmrg : "${ac_tmp:=$tmp}" 125408f65982aSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 125419aa228fdSmrg' 0 125428f65982aSmrg trap 'as_fn_exit 1' 1 2 13 15 125439aa228fdSmrg} 125449aa228fdSmrg# Create a (secure) tmp directory for tmp files. 125459aa228fdSmrg 125469aa228fdSmrg{ 125479aa228fdSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 125488f65982aSmrg test -d "$tmp" 125499aa228fdSmrg} || 125509aa228fdSmrg{ 125519aa228fdSmrg tmp=./conf$$-$RANDOM 125529aa228fdSmrg (umask 077 && mkdir "$tmp") 125538f65982aSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 125548f65982aSmrgac_tmp=$tmp 125559aa228fdSmrg 125568f65982aSmrg# Set up the scripts for CONFIG_FILES section. 125578f65982aSmrg# No need to generate them if there are no CONFIG_FILES. 1255846374b8dSmrg# This happens for instance with './config.status config.h'. 125599aa228fdSmrgif test -n "$CONFIG_FILES"; then 125609aa228fdSmrg 125619aa228fdSmrg 125628f65982aSmrgac_cr=`echo X | tr X '\015'` 125638f65982aSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 125648f65982aSmrg# But we know of no other shell where ac_cr would be empty at this 125658f65982aSmrg# point, so we can use a bashism as a fallback. 125668f65982aSmrgif test "x$ac_cr" = x; then 125678f65982aSmrg eval ac_cr=\$\'\\r\' 125688f65982aSmrgfi 125698f65982aSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 125708f65982aSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 125718f65982aSmrg ac_cs_awk_cr='\\r' 125728f65982aSmrgelse 125738f65982aSmrg ac_cs_awk_cr=$ac_cr 125749aa228fdSmrgfi 125759aa228fdSmrg 125768f65982aSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 125779aa228fdSmrg_ACEOF 125789aa228fdSmrg 125799aa228fdSmrg 125808f65982aSmrg{ 125818f65982aSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 125828f65982aSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 125838f65982aSmrg echo "_ACEOF" 125848f65982aSmrg} >conf$$subs.sh || 125858f65982aSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 125868f65982aSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 125879aa228fdSmrgac_delim='%!_!# ' 125889aa228fdSmrgfor ac_last_try in false false false false false :; do 125898f65982aSmrg . ./conf$$subs.sh || 125908f65982aSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 125919aa228fdSmrg 125928f65982aSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 125938f65982aSmrg if test $ac_delim_n = $ac_delim_num; then 125949aa228fdSmrg break 125959aa228fdSmrg elif $ac_last_try; then 125968f65982aSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 125979aa228fdSmrg else 125989aa228fdSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 125999aa228fdSmrg fi 126009aa228fdSmrgdone 126018f65982aSmrgrm -f conf$$subs.sh 126029aa228fdSmrg 126038f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 126048f65982aSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 126058f65982aSmrg_ACEOF 126068f65982aSmrgsed -n ' 126078f65982aSmrgh 126088f65982aSmrgs/^/S["/; s/!.*/"]=/ 126098f65982aSmrgp 126108f65982aSmrgg 126118f65982aSmrgs/^[^!]*!// 126128f65982aSmrg:repl 126138f65982aSmrgt repl 126148f65982aSmrgs/'"$ac_delim"'$// 126158f65982aSmrgt delim 126168f65982aSmrg:nl 126178f65982aSmrgh 126188f65982aSmrgs/\(.\{148\}\)..*/\1/ 126198f65982aSmrgt more1 126208f65982aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 126218f65982aSmrgp 126228f65982aSmrgn 126238f65982aSmrgb repl 126248f65982aSmrg:more1 126258f65982aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 126268f65982aSmrgp 126278f65982aSmrgg 126288f65982aSmrgs/.\{148\}// 126298f65982aSmrgt nl 126308f65982aSmrg:delim 126318f65982aSmrgh 126328f65982aSmrgs/\(.\{148\}\)..*/\1/ 126338f65982aSmrgt more2 126348f65982aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 126358f65982aSmrgp 126368f65982aSmrgb 126378f65982aSmrg:more2 126388f65982aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 126398f65982aSmrgp 126408f65982aSmrgg 126418f65982aSmrgs/.\{148\}// 126428f65982aSmrgt delim 126438f65982aSmrg' <conf$$subs.awk | sed ' 126448f65982aSmrg/^[^""]/{ 126458f65982aSmrg N 126468f65982aSmrg s/\n// 126478f65982aSmrg} 126488f65982aSmrg' >>$CONFIG_STATUS || ac_write_fail=1 126498f65982aSmrgrm -f conf$$subs.awk 126508f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 126518f65982aSmrg_ACAWK 126528f65982aSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 126538f65982aSmrg for (key in S) S_is_set[key] = 1 126548f65982aSmrg FS = "" 126558f65982aSmrg 126568f65982aSmrg} 126578f65982aSmrg{ 126588f65982aSmrg line = $ 0 126598f65982aSmrg nfields = split(line, field, "@") 126608f65982aSmrg substed = 0 126618f65982aSmrg len = length(field[1]) 126628f65982aSmrg for (i = 2; i < nfields; i++) { 126638f65982aSmrg key = field[i] 126648f65982aSmrg keylen = length(key) 126658f65982aSmrg if (S_is_set[key]) { 126668f65982aSmrg value = S[key] 126678f65982aSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 126688f65982aSmrg len += length(value) + length(field[++i]) 126698f65982aSmrg substed = 1 126708f65982aSmrg } else 126718f65982aSmrg len += 1 + keylen 126728f65982aSmrg } 126738f65982aSmrg 126748f65982aSmrg print line 126758f65982aSmrg} 126769aa228fdSmrg 126778f65982aSmrg_ACAWK 126789aa228fdSmrg_ACEOF 126798f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 126808f65982aSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 126818f65982aSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 126828f65982aSmrgelse 126838f65982aSmrg cat 126848f65982aSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 126858f65982aSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 126869aa228fdSmrg_ACEOF 126879aa228fdSmrg 126888f65982aSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 126898f65982aSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 126909aa228fdSmrg# trailing colons and then remove the whole line if VPATH becomes empty 126919aa228fdSmrg# (actually we leave an empty line to preserve line numbers). 126929aa228fdSmrgif test "x$srcdir" = x.; then 126938f65982aSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 126948f65982aSmrgh 126958f65982aSmrgs/// 126968f65982aSmrgs/^/:/ 126978f65982aSmrgs/[ ]*$/:/ 126988f65982aSmrgs/:\$(srcdir):/:/g 126998f65982aSmrgs/:\${srcdir}:/:/g 127008f65982aSmrgs/:@srcdir@:/:/g 127018f65982aSmrgs/^:*// 127029aa228fdSmrgs/:*$// 127038f65982aSmrgx 127048f65982aSmrgs/\(=[ ]*\).*/\1/ 127058f65982aSmrgG 127068f65982aSmrgs/\n// 127079aa228fdSmrgs/^[^=]*=[ ]*$// 127089aa228fdSmrg}' 127099aa228fdSmrgfi 127109aa228fdSmrg 127118f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 127129aa228fdSmrgfi # test -n "$CONFIG_FILES" 127139aa228fdSmrg 127148f65982aSmrg# Set up the scripts for CONFIG_HEADERS section. 127158f65982aSmrg# No need to generate them if there are no CONFIG_HEADERS. 1271646374b8dSmrg# This happens for instance with './config.status Makefile'. 127178f65982aSmrgif test -n "$CONFIG_HEADERS"; then 127188f65982aSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 127198f65982aSmrgBEGIN { 127208f65982aSmrg_ACEOF 127218f65982aSmrg 1272246374b8dSmrg# Transform confdefs.h into an awk script 'defines.awk', embedded as 127238f65982aSmrg# here-document in config.status, that substitutes the proper values into 127248f65982aSmrg# config.h.in to produce config.h. 127258f65982aSmrg 127268f65982aSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 127278f65982aSmrg# handling of long lines. 127288f65982aSmrgac_delim='%!_!# ' 127298f65982aSmrgfor ac_last_try in false false :; do 127308f65982aSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 127318f65982aSmrg if test -z "$ac_tt"; then 127328f65982aSmrg break 127338f65982aSmrg elif $ac_last_try; then 127348f65982aSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 127358f65982aSmrg else 127368f65982aSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 127378f65982aSmrg fi 127388f65982aSmrgdone 127398f65982aSmrg 127408f65982aSmrg# For the awk script, D is an array of macro values keyed by name, 127418f65982aSmrg# likewise P contains macro parameters if any. Preserve backslash 127428f65982aSmrg# newline sequences. 127438f65982aSmrg 127448f65982aSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 127458f65982aSmrgsed -n ' 127468f65982aSmrgs/.\{148\}/&'"$ac_delim"'/g 127478f65982aSmrgt rset 127488f65982aSmrg:rset 127498f65982aSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 127508f65982aSmrgt def 127518f65982aSmrgd 127528f65982aSmrg:def 127538f65982aSmrgs/\\$// 127548f65982aSmrgt bsnl 127558f65982aSmrgs/["\\]/\\&/g 127568f65982aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 127578f65982aSmrgD["\1"]=" \3"/p 127588f65982aSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 127598f65982aSmrgd 127608f65982aSmrg:bsnl 127618f65982aSmrgs/["\\]/\\&/g 127628f65982aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 127638f65982aSmrgD["\1"]=" \3\\\\\\n"\\/p 127648f65982aSmrgt cont 127658f65982aSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 127668f65982aSmrgt cont 127678f65982aSmrgd 127688f65982aSmrg:cont 127698f65982aSmrgn 127708f65982aSmrgs/.\{148\}/&'"$ac_delim"'/g 127718f65982aSmrgt clear 127728f65982aSmrg:clear 127738f65982aSmrgs/\\$// 127748f65982aSmrgt bsnlc 127758f65982aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 127768f65982aSmrgd 127778f65982aSmrg:bsnlc 127788f65982aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 127798f65982aSmrgb cont 127808f65982aSmrg' <confdefs.h | sed ' 127818f65982aSmrgs/'"$ac_delim"'/"\\\ 127828f65982aSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 127838f65982aSmrg 127848f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 127858f65982aSmrg for (key in D) D_is_set[key] = 1 127868f65982aSmrg FS = "" 127878f65982aSmrg} 127888f65982aSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 127898f65982aSmrg line = \$ 0 127908f65982aSmrg split(line, arg, " ") 127918f65982aSmrg if (arg[1] == "#") { 127928f65982aSmrg defundef = arg[2] 127938f65982aSmrg mac1 = arg[3] 127948f65982aSmrg } else { 127958f65982aSmrg defundef = substr(arg[1], 2) 127968f65982aSmrg mac1 = arg[2] 127978f65982aSmrg } 127988f65982aSmrg split(mac1, mac2, "(") #) 127998f65982aSmrg macro = mac2[1] 128008f65982aSmrg prefix = substr(line, 1, index(line, defundef) - 1) 128018f65982aSmrg if (D_is_set[macro]) { 128028f65982aSmrg # Preserve the white space surrounding the "#". 128038f65982aSmrg print prefix "define", macro P[macro] D[macro] 128048f65982aSmrg next 128058f65982aSmrg } else { 128068f65982aSmrg # Replace #undef with comments. This is necessary, for example, 128078f65982aSmrg # in the case of _POSIX_SOURCE, which is predefined and required 128088f65982aSmrg # on some systems where configure will not decide to define it. 128098f65982aSmrg if (defundef == "undef") { 128108f65982aSmrg print "/*", prefix defundef, macro, "*/" 128118f65982aSmrg next 128128f65982aSmrg } 128138f65982aSmrg } 128148f65982aSmrg} 128158f65982aSmrg{ print } 128168f65982aSmrg_ACAWK 128178f65982aSmrg_ACEOF 128188f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 128198f65982aSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 128208f65982aSmrgfi # test -n "$CONFIG_HEADERS" 128218f65982aSmrg 128229aa228fdSmrg 128238f65982aSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 128248f65982aSmrgshift 128258f65982aSmrgfor ac_tag 128269aa228fdSmrgdo 128279aa228fdSmrg case $ac_tag in 128289aa228fdSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 128299aa228fdSmrg esac 128309aa228fdSmrg case $ac_mode$ac_tag in 128319aa228fdSmrg :[FHL]*:*);; 1283246374b8dSmrg :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 128339aa228fdSmrg :[FH]-) ac_tag=-:-;; 128349aa228fdSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 128359aa228fdSmrg esac 128369aa228fdSmrg ac_save_IFS=$IFS 128379aa228fdSmrg IFS=: 128389aa228fdSmrg set x $ac_tag 128399aa228fdSmrg IFS=$ac_save_IFS 128409aa228fdSmrg shift 128419aa228fdSmrg ac_file=$1 128429aa228fdSmrg shift 128439aa228fdSmrg 128449aa228fdSmrg case $ac_mode in 128459aa228fdSmrg :L) ac_source=$1;; 128469aa228fdSmrg :[FH]) 128479aa228fdSmrg ac_file_inputs= 128489aa228fdSmrg for ac_f 128499aa228fdSmrg do 128509aa228fdSmrg case $ac_f in 128518f65982aSmrg -) ac_f="$ac_tmp/stdin";; 128529aa228fdSmrg *) # Look for the file first in the build tree, then in the source tree 128539aa228fdSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 1285446374b8dSmrg # because $ac_f cannot contain ':'. 128559aa228fdSmrg test -f "$ac_f" || 128569aa228fdSmrg case $ac_f in 128579aa228fdSmrg [\\/$]*) false;; 128589aa228fdSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 128599aa228fdSmrg esac || 1286046374b8dSmrg as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 128619aa228fdSmrg esac 12862e39ce84cSmrg case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 128638f65982aSmrg as_fn_append ac_file_inputs " '$ac_f'" 128649aa228fdSmrg done 128659aa228fdSmrg 1286646374b8dSmrg # Let's still pretend it is 'configure' which instantiates (i.e., don't 128679aa228fdSmrg # use $as_me), people would be surprised to read: 128689aa228fdSmrg # /* config.h. Generated by config.status. */ 128698f65982aSmrg configure_input='Generated from '` 12870e39ce84cSmrg printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 128718f65982aSmrg `' by configure.' 128729aa228fdSmrg if test x"$ac_file" != x-; then 128739aa228fdSmrg configure_input="$ac_file. $configure_input" 12874e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12875e39ce84cSmrgprintf "%s\n" "$as_me: creating $ac_file" >&6;} 128769aa228fdSmrg fi 128778f65982aSmrg # Neutralize special characters interpreted by sed in replacement strings. 128788f65982aSmrg case $configure_input in #( 128798f65982aSmrg *\&* | *\|* | *\\* ) 12880e39ce84cSmrg ac_sed_conf_input=`printf "%s\n" "$configure_input" | 128818f65982aSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 128828f65982aSmrg *) ac_sed_conf_input=$configure_input;; 128838f65982aSmrg esac 128849aa228fdSmrg 128859aa228fdSmrg case $ac_tag in 128868f65982aSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 128878f65982aSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 128889aa228fdSmrg esac 128899aa228fdSmrg ;; 128909aa228fdSmrg esac 128919aa228fdSmrg 128929aa228fdSmrg ac_dir=`$as_dirname -- "$ac_file" || 128939aa228fdSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 128949aa228fdSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 128959aa228fdSmrg X"$ac_file" : 'X\(//\)$' \| \ 128969aa228fdSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12897e39ce84cSmrgprintf "%s\n" X"$ac_file" | 128989aa228fdSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 128999aa228fdSmrg s//\1/ 129009aa228fdSmrg q 129019aa228fdSmrg } 129029aa228fdSmrg /^X\(\/\/\)[^/].*/{ 129039aa228fdSmrg s//\1/ 129049aa228fdSmrg q 129059aa228fdSmrg } 129069aa228fdSmrg /^X\(\/\/\)$/{ 129079aa228fdSmrg s//\1/ 129089aa228fdSmrg q 129099aa228fdSmrg } 129109aa228fdSmrg /^X\(\/\).*/{ 129119aa228fdSmrg s//\1/ 129129aa228fdSmrg q 129139aa228fdSmrg } 129149aa228fdSmrg s/.*/./; q'` 129158f65982aSmrg as_dir="$ac_dir"; as_fn_mkdir_p 129169aa228fdSmrg ac_builddir=. 129179aa228fdSmrg 129189aa228fdSmrgcase "$ac_dir" in 129199aa228fdSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 129209aa228fdSmrg*) 12921e39ce84cSmrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 129229aa228fdSmrg # A ".." for each directory in $ac_dir_suffix. 12923e39ce84cSmrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 129249aa228fdSmrg case $ac_top_builddir_sub in 129259aa228fdSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 129269aa228fdSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 129279aa228fdSmrg esac ;; 129289aa228fdSmrgesac 129299aa228fdSmrgac_abs_top_builddir=$ac_pwd 129309aa228fdSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 129319aa228fdSmrg# for backward compatibility: 129329aa228fdSmrgac_top_builddir=$ac_top_build_prefix 129339aa228fdSmrg 129349aa228fdSmrgcase $srcdir in 129359aa228fdSmrg .) # We are building in place. 129369aa228fdSmrg ac_srcdir=. 129379aa228fdSmrg ac_top_srcdir=$ac_top_builddir_sub 129389aa228fdSmrg ac_abs_top_srcdir=$ac_pwd ;; 129399aa228fdSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 129409aa228fdSmrg ac_srcdir=$srcdir$ac_dir_suffix; 129419aa228fdSmrg ac_top_srcdir=$srcdir 129429aa228fdSmrg ac_abs_top_srcdir=$srcdir ;; 129439aa228fdSmrg *) # Relative name. 129449aa228fdSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 129459aa228fdSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 129469aa228fdSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 129479aa228fdSmrgesac 129489aa228fdSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 129499aa228fdSmrg 129509aa228fdSmrg 129519aa228fdSmrg case $ac_mode in 129529aa228fdSmrg :F) 129539aa228fdSmrg # 129549aa228fdSmrg # CONFIG_FILE 129559aa228fdSmrg # 129569aa228fdSmrg 129579aa228fdSmrg case $INSTALL in 129589aa228fdSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 129599aa228fdSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 129609aa228fdSmrg esac 129619aa228fdSmrg ac_MKDIR_P=$MKDIR_P 129629aa228fdSmrg case $MKDIR_P in 129639aa228fdSmrg [\\/$]* | ?:[\\/]* ) ;; 129649aa228fdSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 129659aa228fdSmrg esac 129669aa228fdSmrg_ACEOF 129679aa228fdSmrg 129688f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 129699aa228fdSmrg# If the template does not know about datarootdir, expand it. 129709aa228fdSmrg# FIXME: This hack should be removed a few years after 2.60. 129719aa228fdSmrgac_datarootdir_hack=; ac_datarootdir_seen= 129728f65982aSmrgac_sed_dataroot=' 129738f65982aSmrg/datarootdir/ { 129749aa228fdSmrg p 129759aa228fdSmrg q 129769aa228fdSmrg} 129779aa228fdSmrg/@datadir@/p 129789aa228fdSmrg/@docdir@/p 129799aa228fdSmrg/@infodir@/p 129809aa228fdSmrg/@localedir@/p 129818f65982aSmrg/@mandir@/p' 129828f65982aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 129839aa228fdSmrg*datarootdir*) ac_datarootdir_seen=yes;; 129849aa228fdSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12985e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12986e39ce84cSmrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 129879aa228fdSmrg_ACEOF 129888f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 129899aa228fdSmrg ac_datarootdir_hack=' 129909aa228fdSmrg s&@datadir@&$datadir&g 129919aa228fdSmrg s&@docdir@&$docdir&g 129929aa228fdSmrg s&@infodir@&$infodir&g 129939aa228fdSmrg s&@localedir@&$localedir&g 129949aa228fdSmrg s&@mandir@&$mandir&g 129958f65982aSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 129969aa228fdSmrgesac 129979aa228fdSmrg_ACEOF 129989aa228fdSmrg 1299946374b8dSmrg# Neutralize VPATH when '$srcdir' = '.'. 130009aa228fdSmrg# Shell code in configure.ac might set extrasub. 130019aa228fdSmrg# FIXME: do we really want to maintain this feature? 130028f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 130038f65982aSmrgac_sed_extra="$ac_vpsub 130049aa228fdSmrg$extrasub 130059aa228fdSmrg_ACEOF 130068f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 130079aa228fdSmrg:t 130089aa228fdSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 130098f65982aSmrgs|@configure_input@|$ac_sed_conf_input|;t t 130109aa228fdSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 130118f65982aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 130129aa228fdSmrgs&@srcdir@&$ac_srcdir&;t t 130139aa228fdSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 130149aa228fdSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 130159aa228fdSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 130169aa228fdSmrgs&@builddir@&$ac_builddir&;t t 130179aa228fdSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 130189aa228fdSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 130199aa228fdSmrgs&@INSTALL@&$ac_INSTALL&;t t 130209aa228fdSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 130219aa228fdSmrg$ac_datarootdir_hack 130228f65982aSmrg" 130238f65982aSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 130248f65982aSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 130259aa228fdSmrg 130269aa228fdSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 130278f65982aSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 130288f65982aSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 130298f65982aSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 1303046374b8dSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 130318f65982aSmrgwhich seems to be undefined. Please make sure it is defined" >&5 1303246374b8dSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 130338f65982aSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 130348f65982aSmrg 130358f65982aSmrg rm -f "$ac_tmp/stdin" 130369aa228fdSmrg case $ac_file in 130378f65982aSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 130388f65982aSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 130398f65982aSmrg esac \ 130408f65982aSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 130419aa228fdSmrg ;; 130429aa228fdSmrg :H) 130439aa228fdSmrg # 130449aa228fdSmrg # CONFIG_HEADER 130459aa228fdSmrg # 130469aa228fdSmrg if test x"$ac_file" != x-; then 130478f65982aSmrg { 13048e39ce84cSmrg printf "%s\n" "/* $configure_input */" >&1 \ 130498f65982aSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 130508f65982aSmrg } >"$ac_tmp/config.h" \ 130518f65982aSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 130528f65982aSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13053e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13054e39ce84cSmrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 130559aa228fdSmrg else 130568f65982aSmrg rm -f "$ac_file" 130578f65982aSmrg mv "$ac_tmp/config.h" "$ac_file" \ 130588f65982aSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 130599aa228fdSmrg fi 130609aa228fdSmrg else 13061e39ce84cSmrg printf "%s\n" "/* $configure_input */" >&1 \ 130628f65982aSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 130638f65982aSmrg || as_fn_error $? "could not create -" "$LINENO" 5 130649aa228fdSmrg fi 130658f65982aSmrg# Compute "$ac_file"'s index in $config_headers. 130668f65982aSmrg_am_arg="$ac_file" 130679aa228fdSmrg_am_stamp_count=1 130689aa228fdSmrgfor _am_header in $config_headers :; do 130699aa228fdSmrg case $_am_header in 130708f65982aSmrg $_am_arg | $_am_arg:* ) 130719aa228fdSmrg break ;; 130729aa228fdSmrg * ) 130739aa228fdSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 130749aa228fdSmrg esac 130759aa228fdSmrgdone 130768f65982aSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 130778f65982aSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 130788f65982aSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 130798f65982aSmrg X"$_am_arg" : 'X\(//\)$' \| \ 130808f65982aSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13081e39ce84cSmrgprintf "%s\n" X"$_am_arg" | 130829aa228fdSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 130839aa228fdSmrg s//\1/ 130849aa228fdSmrg q 130859aa228fdSmrg } 130869aa228fdSmrg /^X\(\/\/\)[^/].*/{ 130879aa228fdSmrg s//\1/ 130889aa228fdSmrg q 130899aa228fdSmrg } 130909aa228fdSmrg /^X\(\/\/\)$/{ 130919aa228fdSmrg s//\1/ 130929aa228fdSmrg q 130939aa228fdSmrg } 130949aa228fdSmrg /^X\(\/\).*/{ 130959aa228fdSmrg s//\1/ 130969aa228fdSmrg q 130979aa228fdSmrg } 130989aa228fdSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 130999aa228fdSmrg ;; 131009aa228fdSmrg 13101e39ce84cSmrg :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13102e39ce84cSmrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;} 131039aa228fdSmrg ;; 131049aa228fdSmrg esac 131059aa228fdSmrg 131069aa228fdSmrg 131079aa228fdSmrg case $ac_file$ac_mode in 131088f65982aSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 131090c7e83b2Smrg # Older Autoconf quotes --file arguments for eval, but not when files 131108f65982aSmrg # are listed without --file. Let's play safe and only enable the eval 131118f65982aSmrg # if we detect the quoting. 13112e39ce84cSmrg # TODO: see whether this extra hack can be removed once we start 13113e39ce84cSmrg # requiring Autoconf 2.70 or later. 13114e39ce84cSmrg case $CONFIG_FILES in #( 13115e39ce84cSmrg *\'*) : 13116e39ce84cSmrg eval set x "$CONFIG_FILES" ;; #( 13117e39ce84cSmrg *) : 13118e39ce84cSmrg set x $CONFIG_FILES ;; #( 13119e39ce84cSmrg *) : 13120e39ce84cSmrg ;; 13121e39ce84cSmrgesac 131228f65982aSmrg shift 13123e39ce84cSmrg # Used to flag and report bootstrapping failures. 13124e39ce84cSmrg am_rc=0 13125e39ce84cSmrg for am_mf 131268f65982aSmrg do 131278f65982aSmrg # Strip MF so we end up with the name of the file. 13128e39ce84cSmrg am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13129e39ce84cSmrg # Check whether this is an Automake generated Makefile which includes 13130e39ce84cSmrg # dependency-tracking related rules and includes. 13131e39ce84cSmrg # Grep'ing the whole file directly is not great: AIX grep has a line 131328f65982aSmrg # limit of 2048, but all sed's we know have understand at least 4000. 13133e39ce84cSmrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13134e39ce84cSmrg || continue 13135e39ce84cSmrg am_dirpart=`$as_dirname -- "$am_mf" || 13136e39ce84cSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13137e39ce84cSmrg X"$am_mf" : 'X\(//\)[^/]' \| \ 13138e39ce84cSmrg X"$am_mf" : 'X\(//\)$' \| \ 13139e39ce84cSmrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13140e39ce84cSmrgprintf "%s\n" X"$am_mf" | 131419aa228fdSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 131429aa228fdSmrg s//\1/ 131439aa228fdSmrg q 131449aa228fdSmrg } 131459aa228fdSmrg /^X\(\/\/\)[^/].*/{ 131469aa228fdSmrg s//\1/ 131479aa228fdSmrg q 131489aa228fdSmrg } 131499aa228fdSmrg /^X\(\/\/\)$/{ 131509aa228fdSmrg s//\1/ 131519aa228fdSmrg q 131529aa228fdSmrg } 131539aa228fdSmrg /^X\(\/\).*/{ 131549aa228fdSmrg s//\1/ 131559aa228fdSmrg q 131569aa228fdSmrg } 131579aa228fdSmrg s/.*/./; q'` 13158e39ce84cSmrg am_filepart=`$as_basename -- "$am_mf" || 13159e39ce84cSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13160e39ce84cSmrg X"$am_mf" : 'X\(//\)$' \| \ 13161e39ce84cSmrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13162e39ce84cSmrgprintf "%s\n" X/"$am_mf" | 13163e39ce84cSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 131649aa228fdSmrg s//\1/ 131659aa228fdSmrg q 131669aa228fdSmrg } 13167e39ce84cSmrg /^X\/\(\/\/\)$/{ 131689aa228fdSmrg s//\1/ 131699aa228fdSmrg q 131709aa228fdSmrg } 13171e39ce84cSmrg /^X\/\(\/\).*/{ 131729aa228fdSmrg s//\1/ 131739aa228fdSmrg q 131749aa228fdSmrg } 131759aa228fdSmrg s/.*/./; q'` 13176e39ce84cSmrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13177e39ce84cSmrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 13178e39ce84cSmrg | $MAKE -f - am--depfiles" >&5 13179e39ce84cSmrg (cd "$am_dirpart" \ 13180e39ce84cSmrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 13181e39ce84cSmrg | $MAKE -f - am--depfiles) >&5 2>&5 13182e39ce84cSmrg ac_status=$? 13183e39ce84cSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 13184e39ce84cSmrg (exit $ac_status); } || am_rc=$? 131859aa228fdSmrg done 13186e39ce84cSmrg if test $am_rc -ne 0; then 1318746374b8dSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1318846374b8dSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13189e39ce84cSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 13190e39ce84cSmrg for automatic dependency tracking. If GNU make was not used, consider 13191e39ce84cSmrg re-running the configure script with MAKE=\"gmake\" (or whatever is 13192e39ce84cSmrg necessary). You can also try re-running configure with the 13193e39ce84cSmrg '--disable-dependency-tracking' option to at least be able to build 13194e39ce84cSmrg the package (albeit without support for automatic dependency tracking). 1319546374b8dSmrgSee 'config.log' for more details" "$LINENO" 5; } 13196e39ce84cSmrg fi 13197e39ce84cSmrg { am_dirpart=; unset am_dirpart;} 13198e39ce84cSmrg { am_filepart=; unset am_filepart;} 13199e39ce84cSmrg { am_mf=; unset am_mf;} 13200e39ce84cSmrg { am_rc=; unset am_rc;} 13201e39ce84cSmrg rm -f conftest-deps.mk 132028f65982aSmrg} 132039aa228fdSmrg ;; 132049aa228fdSmrg 132059aa228fdSmrg esac 132069aa228fdSmrgdone # for ac_tag 132079aa228fdSmrg 132089aa228fdSmrg 132098f65982aSmrgas_fn_exit 0 132109aa228fdSmrg_ACEOF 132119aa228fdSmrgac_clean_files=$ac_clean_files_save 132129aa228fdSmrg 132138f65982aSmrgtest $ac_write_fail = 0 || 132148f65982aSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 132158f65982aSmrg 132169aa228fdSmrg 132179aa228fdSmrg# configure is writing to config.log, and then calls config.status. 132189aa228fdSmrg# config.status does its own redirection, appending to config.log. 132199aa228fdSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 132209aa228fdSmrg# by configure, so config.status won't be able to write to it; its 132219aa228fdSmrg# output is simply discarded. So we exec the FD to /dev/null, 132229aa228fdSmrg# effectively closing config.log, so it can be properly (re)opened and 132239aa228fdSmrg# appended to by config.status. When coming back to configure, we 132249aa228fdSmrg# need to make the FD available again. 132259aa228fdSmrgif test "$no_create" != yes; then 132269aa228fdSmrg ac_cs_success=: 132279aa228fdSmrg ac_config_status_args= 132289aa228fdSmrg test "$silent" = yes && 132299aa228fdSmrg ac_config_status_args="$ac_config_status_args --quiet" 132309aa228fdSmrg exec 5>/dev/null 132319aa228fdSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 132329aa228fdSmrg exec 5>>config.log 132339aa228fdSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 132349aa228fdSmrg # would make configure fail if this is the last instruction. 132358f65982aSmrg $ac_cs_success || as_fn_exit 1 132368f65982aSmrgfi 132378f65982aSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13238e39ce84cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13239e39ce84cSmrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 132409aa228fdSmrgfi 132419aa228fdSmrg 13242e39ce84cSmrg 13243