configure revision 6d1874b2
1e6232409Smrg#! /bin/sh 2e6232409Smrg# Guess values for system-dependent variables and create Makefiles. 36d1874b2Smrg# Generated by GNU Autoconf 2.71 for xlsfonts 1.0.7. 4e6232409Smrg# 56d1874b2Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlsfonts/issues>. 6e6232409Smrg# 78fff3f40Smrg# 86d1874b2Smrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 96d1874b2Smrg# Inc. 108fff3f40Smrg# 118fff3f40Smrg# 12e6232409Smrg# This configure script is free software; the Free Software Foundation 13e6232409Smrg# gives unlimited permission to copy, distribute and modify it. 148fff3f40Smrg## -------------------- ## 158fff3f40Smrg## M4sh Initialization. ## 168fff3f40Smrg## -------------------- ## 17e6232409Smrg 188fff3f40Smrg# Be more Bourne compatible 198fff3f40SmrgDUALCASE=1; export DUALCASE # for MKS sh 206d1874b2Smrgas_nop=: 216d1874b2Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 226d1874b2Smrgthen : 23e6232409Smrg emulate sh 24e6232409Smrg NULLCMD=: 258fff3f40Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26e6232409Smrg # is contrary to our usage. Disable this feature. 27e6232409Smrg alias -g '${1+"$@"}'='"$@"' 28e6232409Smrg setopt NO_GLOB_SUBST 296d1874b2Smrgelse $as_nop 308fff3f40Smrg case `(set -o) 2>/dev/null` in #( 318fff3f40Smrg *posix*) : 328fff3f40Smrg set -o posix ;; #( 338fff3f40Smrg *) : 348fff3f40Smrg ;; 358fff3f40Smrgesac 36e6232409Smrgfi 37e6232409Smrg 38e6232409Smrg 396d1874b2Smrg 406d1874b2Smrg# Reset variables that may have inherited troublesome values from 416d1874b2Smrg# the environment. 426d1874b2Smrg 436d1874b2Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 446d1874b2Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 456d1874b2Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 466d1874b2Smrg# Quoting is to prevent editors from complaining about space-tab. 478fff3f40Smrgas_nl=' 488fff3f40Smrg' 498fff3f40Smrgexport as_nl 506d1874b2SmrgIFS=" "" $as_nl" 516d1874b2Smrg 526d1874b2SmrgPS1='$ ' 536d1874b2SmrgPS2='> ' 546d1874b2SmrgPS4='+ ' 556d1874b2Smrg 566d1874b2Smrg# Ensure predictable behavior from utilities with locale-dependent output. 576d1874b2SmrgLC_ALL=C 586d1874b2Smrgexport LC_ALL 596d1874b2SmrgLANGUAGE=C 606d1874b2Smrgexport LANGUAGE 616d1874b2Smrg 626d1874b2Smrg# We cannot yet rely on "unset" to work, but we need these variables 636d1874b2Smrg# to be unset--not just set to an empty or harmless value--now, to 646d1874b2Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 656d1874b2Smrg# also avoids known problems related to "unset" and subshell syntax 666d1874b2Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 676d1874b2Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 686d1874b2Smrgdo eval test \${$as_var+y} \ 696d1874b2Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 706d1874b2Smrgdone 716d1874b2Smrg 726d1874b2Smrg# Ensure that fds 0, 1, and 2 are open. 736d1874b2Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 746d1874b2Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 756d1874b2Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76e6232409Smrg 778fff3f40Smrg# The user is always right. 786d1874b2Smrgif ${PATH_SEPARATOR+false} :; then 798fff3f40Smrg PATH_SEPARATOR=: 808fff3f40Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 818fff3f40Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 828fff3f40Smrg PATH_SEPARATOR=';' 838fff3f40Smrg } 84e6232409Smrgfi 85e6232409Smrg 86e6232409Smrg 87e6232409Smrg# Find who we are. Look in the path if we contain no directory separator. 8894a251fdSmrgas_myself= 898fff3f40Smrgcase $0 in #(( 90e6232409Smrg *[\\/]* ) as_myself=$0 ;; 91e6232409Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92e6232409Smrgfor as_dir in $PATH 93e6232409Smrgdo 94e6232409Smrg IFS=$as_save_IFS 956d1874b2Smrg case $as_dir in #((( 966d1874b2Smrg '') as_dir=./ ;; 976d1874b2Smrg */) ;; 986d1874b2Smrg *) as_dir=$as_dir/ ;; 996d1874b2Smrg esac 1006d1874b2Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 1018fff3f40Smrg done 102e6232409SmrgIFS=$as_save_IFS 103e6232409Smrg 104e6232409Smrg ;; 105e6232409Smrgesac 106e6232409Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 107e6232409Smrg# in which case we are not to be found in the path. 108e6232409Smrgif test "x$as_myself" = x; then 109e6232409Smrg as_myself=$0 110e6232409Smrgfi 111e6232409Smrgif test ! -f "$as_myself"; then 1126d1874b2Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1138fff3f40Smrg exit 1 114e6232409Smrgfi 115e6232409Smrg 116e6232409Smrg 1176a45684fSmrg# Use a proper internal environment variable to ensure we don't fall 1186a45684fSmrg # into an infinite loop, continuously re-executing ourselves. 1196a45684fSmrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 1206a45684fSmrg _as_can_reexec=no; export _as_can_reexec; 1216a45684fSmrg # We cannot yet assume a decent shell, so we have to provide a 1226a45684fSmrg# neutralization value for shells without unset; and this also 1236a45684fSmrg# works around shells that cannot unset nonexistent variables. 1246a45684fSmrg# Preserve -v and -x to the replacement shell. 1256a45684fSmrgBASH_ENV=/dev/null 1266a45684fSmrgENV=/dev/null 1276a45684fSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 1286a45684fSmrgcase $- in # (((( 1296a45684fSmrg *v*x* | *x*v* ) as_opts=-vx ;; 1306a45684fSmrg *v* ) as_opts=-v ;; 1316a45684fSmrg *x* ) as_opts=-x ;; 1326a45684fSmrg * ) as_opts= ;; 1336a45684fSmrgesac 1346a45684fSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 1356a45684fSmrg# Admittedly, this is quite paranoid, since all the known shells bail 1366a45684fSmrg# out after a failed `exec'. 1376d1874b2Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 1386d1874b2Smrgexit 255 1396a45684fSmrg fi 1406a45684fSmrg # We don't want this to propagate to other subprocesses. 1416a45684fSmrg { _as_can_reexec=; unset _as_can_reexec;} 142e6232409Smrgif test "x$CONFIG_SHELL" = x; then 1436d1874b2Smrg as_bourne_compatible="as_nop=: 1446d1874b2Smrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 1456d1874b2Smrgthen : 1468fff3f40Smrg emulate sh 1478fff3f40Smrg NULLCMD=: 1488fff3f40Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1498fff3f40Smrg # is contrary to our usage. Disable this feature. 1508fff3f40Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1518fff3f40Smrg setopt NO_GLOB_SUBST 1526d1874b2Smrgelse \$as_nop 1538fff3f40Smrg case \`(set -o) 2>/dev/null\` in #( 1548fff3f40Smrg *posix*) : 1558fff3f40Smrg set -o posix ;; #( 1568fff3f40Smrg *) : 1578fff3f40Smrg ;; 1588fff3f40Smrgesac 159e6232409Smrgfi 1608fff3f40Smrg" 1618fff3f40Smrg as_required="as_fn_return () { (exit \$1); } 1628fff3f40Smrgas_fn_success () { as_fn_return 0; } 1638fff3f40Smrgas_fn_failure () { as_fn_return 1; } 1648fff3f40Smrgas_fn_ret_success () { return 0; } 1658fff3f40Smrgas_fn_ret_failure () { return 1; } 166e6232409Smrg 167e6232409Smrgexitcode=0 1688fff3f40Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1698fff3f40Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1708fff3f40Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1718fff3f40Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1726d1874b2Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 1736d1874b2Smrgthen : 174e6232409Smrg 1756d1874b2Smrgelse \$as_nop 1768fff3f40Smrg exitcode=1; echo positional parameters were not saved. 1778fff3f40Smrgfi 1786a45684fSmrgtest x\$exitcode = x0 || exit 1 1796d1874b2Smrgblah=\$(echo \$(echo blah)) 1806d1874b2Smrgtest x\"\$blah\" = xblah || exit 1 1816a45684fSmrgtest -x / || exit 1" 1828fff3f40Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1838fff3f40Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1848fff3f40Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 1858fff3f40Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 1868fff3f40Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 1876d1874b2Smrg if (eval "$as_required") 2>/dev/null 1886d1874b2Smrgthen : 1898fff3f40Smrg as_have_required=yes 1906d1874b2Smrgelse $as_nop 1918fff3f40Smrg as_have_required=no 192e6232409Smrgfi 1936d1874b2Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 1946d1874b2Smrgthen : 195e6232409Smrg 1966d1874b2Smrgelse $as_nop 1978fff3f40Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1988fff3f40Smrgas_found=false 1998fff3f40Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200e6232409Smrgdo 201e6232409Smrg IFS=$as_save_IFS 2026d1874b2Smrg case $as_dir in #((( 2036d1874b2Smrg '') as_dir=./ ;; 2046d1874b2Smrg */) ;; 2056d1874b2Smrg *) as_dir=$as_dir/ ;; 2066d1874b2Smrg esac 2078fff3f40Smrg as_found=: 2088fff3f40Smrg case $as_dir in #( 209e6232409Smrg /*) 210e6232409Smrg for as_base in sh bash ksh sh5; do 2118fff3f40Smrg # Try only shells that exist, to save several forks. 2126d1874b2Smrg as_shell=$as_dir$as_base 2138fff3f40Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 2146d1874b2Smrg as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 2156d1874b2Smrgthen : 2168fff3f40Smrg CONFIG_SHELL=$as_shell as_have_required=yes 2176d1874b2Smrg if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 2186d1874b2Smrgthen : 2198fff3f40Smrg break 2 2208fff3f40Smrgfi 2218fff3f40Smrgfi 222e6232409Smrg done;; 223e6232409Smrg esac 2248fff3f40Smrg as_found=false 225e6232409Smrgdone 226e6232409SmrgIFS=$as_save_IFS 2276d1874b2Smrgif $as_found 2286d1874b2Smrgthen : 2296d1874b2Smrg 2306d1874b2Smrgelse $as_nop 2316d1874b2Smrg if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2326d1874b2Smrg as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 2336d1874b2Smrgthen : 2346d1874b2Smrg CONFIG_SHELL=$SHELL as_have_required=yes 2356d1874b2Smrgfi 2366d1874b2Smrgfi 237e6232409Smrg 238e6232409Smrg 2396d1874b2Smrg if test "x$CONFIG_SHELL" != x 2406d1874b2Smrgthen : 2416a45684fSmrg export CONFIG_SHELL 2426a45684fSmrg # We cannot yet assume a decent shell, so we have to provide a 2436a45684fSmrg# neutralization value for shells without unset; and this also 2446a45684fSmrg# works around shells that cannot unset nonexistent variables. 2456a45684fSmrg# Preserve -v and -x to the replacement shell. 2466a45684fSmrgBASH_ENV=/dev/null 2476a45684fSmrgENV=/dev/null 2486a45684fSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2496a45684fSmrgcase $- in # (((( 2506a45684fSmrg *v*x* | *x*v* ) as_opts=-vx ;; 2516a45684fSmrg *v* ) as_opts=-v ;; 2526a45684fSmrg *x* ) as_opts=-x ;; 2536a45684fSmrg * ) as_opts= ;; 2546a45684fSmrgesac 2556a45684fSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 2566a45684fSmrg# Admittedly, this is quite paranoid, since all the known shells bail 2576a45684fSmrg# out after a failed `exec'. 2586d1874b2Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 2596a45684fSmrgexit 255 260e6232409Smrgfi 261e6232409Smrg 2626d1874b2Smrg if test x$as_have_required = xno 2636d1874b2Smrgthen : 2646d1874b2Smrg printf "%s\n" "$0: This script requires a shell more modern than all" 2656d1874b2Smrg printf "%s\n" "$0: the shells that I found on your system." 2666d1874b2Smrg if test ${ZSH_VERSION+y} ; then 2676d1874b2Smrg printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2686d1874b2Smrg printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 2698fff3f40Smrg else 2706d1874b2Smrg printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 2716d1874b2Smrg$0: https://gitlab.freedesktop.org/xorg/app/xlsfonts/issues 2728fff3f40Smrg$0: about your system, including any error possibly output 2738fff3f40Smrg$0: before this message. Then install a modern shell, or 2748fff3f40Smrg$0: manually run the script under such a shell if you do 2758fff3f40Smrg$0: have one." 2768fff3f40Smrg fi 2778fff3f40Smrg exit 1 278e6232409Smrgfi 2798fff3f40Smrgfi 2808fff3f40Smrgfi 2818fff3f40SmrgSHELL=${CONFIG_SHELL-/bin/sh} 2828fff3f40Smrgexport SHELL 2838fff3f40Smrg# Unset more variables known to interfere with behavior of common tools. 2848fff3f40SmrgCLICOLOR_FORCE= GREP_OPTIONS= 2858fff3f40Smrgunset CLICOLOR_FORCE GREP_OPTIONS 286e6232409Smrg 2878fff3f40Smrg## --------------------- ## 2888fff3f40Smrg## M4sh Shell Functions. ## 2898fff3f40Smrg## --------------------- ## 2908fff3f40Smrg# as_fn_unset VAR 2918fff3f40Smrg# --------------- 2928fff3f40Smrg# Portably unset VAR. 2938fff3f40Smrgas_fn_unset () 2948fff3f40Smrg{ 2958fff3f40Smrg { eval $1=; unset $1;} 296e6232409Smrg} 2978fff3f40Smrgas_unset=as_fn_unset 298e6232409Smrg 2996d1874b2Smrg 3008fff3f40Smrg# as_fn_set_status STATUS 3018fff3f40Smrg# ----------------------- 3028fff3f40Smrg# Set $? to STATUS, without forking. 3038fff3f40Smrgas_fn_set_status () 3048fff3f40Smrg{ 3058fff3f40Smrg return $1 3068fff3f40Smrg} # as_fn_set_status 307e6232409Smrg 3088fff3f40Smrg# as_fn_exit STATUS 3098fff3f40Smrg# ----------------- 3108fff3f40Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 3118fff3f40Smrgas_fn_exit () 3128fff3f40Smrg{ 3138fff3f40Smrg set +e 3148fff3f40Smrg as_fn_set_status $1 3158fff3f40Smrg exit $1 3168fff3f40Smrg} # as_fn_exit 3176d1874b2Smrg# as_fn_nop 3186d1874b2Smrg# --------- 3196d1874b2Smrg# Do nothing but, unlike ":", preserve the value of $?. 3206d1874b2Smrgas_fn_nop () 3216d1874b2Smrg{ 3226d1874b2Smrg return $? 3236d1874b2Smrg} 3246d1874b2Smrgas_nop=as_fn_nop 3258fff3f40Smrg 3268fff3f40Smrg# as_fn_mkdir_p 3278fff3f40Smrg# ------------- 3288fff3f40Smrg# Create "$as_dir" as a directory, including parents if necessary. 3298fff3f40Smrgas_fn_mkdir_p () 3308fff3f40Smrg{ 331e6232409Smrg 3328fff3f40Smrg case $as_dir in #( 3338fff3f40Smrg -*) as_dir=./$as_dir;; 3348fff3f40Smrg esac 3358fff3f40Smrg test -d "$as_dir" || eval $as_mkdir_p || { 3368fff3f40Smrg as_dirs= 3378fff3f40Smrg while :; do 3388fff3f40Smrg case $as_dir in #( 3396d1874b2Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3408fff3f40Smrg *) as_qdir=$as_dir;; 3418fff3f40Smrg esac 3428fff3f40Smrg as_dirs="'$as_qdir' $as_dirs" 3438fff3f40Smrg as_dir=`$as_dirname -- "$as_dir" || 3448fff3f40Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3458fff3f40Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3468fff3f40Smrg X"$as_dir" : 'X\(//\)$' \| \ 3478fff3f40Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3486d1874b2Smrgprintf "%s\n" X"$as_dir" | 3498fff3f40Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3508fff3f40Smrg s//\1/ 3518fff3f40Smrg q 3528fff3f40Smrg } 3538fff3f40Smrg /^X\(\/\/\)[^/].*/{ 3548fff3f40Smrg s//\1/ 3558fff3f40Smrg q 3568fff3f40Smrg } 3578fff3f40Smrg /^X\(\/\/\)$/{ 3588fff3f40Smrg s//\1/ 3598fff3f40Smrg q 3608fff3f40Smrg } 3618fff3f40Smrg /^X\(\/\).*/{ 3628fff3f40Smrg s//\1/ 3638fff3f40Smrg q 3648fff3f40Smrg } 3658fff3f40Smrg s/.*/./; q'` 3668fff3f40Smrg test -d "$as_dir" && break 3678fff3f40Smrg done 3688fff3f40Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 36994a251fdSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3708fff3f40Smrg 3718fff3f40Smrg 3728fff3f40Smrg} # as_fn_mkdir_p 3736a45684fSmrg 3746a45684fSmrg# as_fn_executable_p FILE 3756a45684fSmrg# ----------------------- 3766a45684fSmrg# Test if FILE is an executable regular file. 3776a45684fSmrgas_fn_executable_p () 3786a45684fSmrg{ 3796a45684fSmrg test -f "$1" && test -x "$1" 3806a45684fSmrg} # as_fn_executable_p 3818fff3f40Smrg# as_fn_append VAR VALUE 3828fff3f40Smrg# ---------------------- 3838fff3f40Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3848fff3f40Smrg# advantage of any shell optimizations that allow amortized linear growth over 3858fff3f40Smrg# repeated appends, instead of the typical quadratic growth present in naive 3868fff3f40Smrg# implementations. 3876d1874b2Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 3886d1874b2Smrgthen : 3898fff3f40Smrg eval 'as_fn_append () 3908fff3f40Smrg { 3918fff3f40Smrg eval $1+=\$2 3928fff3f40Smrg }' 3936d1874b2Smrgelse $as_nop 3948fff3f40Smrg as_fn_append () 3958fff3f40Smrg { 3968fff3f40Smrg eval $1=\$$1\$2 3978fff3f40Smrg } 3988fff3f40Smrgfi # as_fn_append 3998fff3f40Smrg 4008fff3f40Smrg# as_fn_arith ARG... 4018fff3f40Smrg# ------------------ 4028fff3f40Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 4038fff3f40Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 4048fff3f40Smrg# must be portable across $(()) and expr. 4056d1874b2Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 4066d1874b2Smrgthen : 4078fff3f40Smrg eval 'as_fn_arith () 4088fff3f40Smrg { 4098fff3f40Smrg as_val=$(( $* )) 4108fff3f40Smrg }' 4116d1874b2Smrgelse $as_nop 4128fff3f40Smrg as_fn_arith () 4138fff3f40Smrg { 4148fff3f40Smrg as_val=`expr "$@" || test $? -eq 1` 4158fff3f40Smrg } 4168fff3f40Smrgfi # as_fn_arith 417e6232409Smrg 4186d1874b2Smrg# as_fn_nop 4196d1874b2Smrg# --------- 4206d1874b2Smrg# Do nothing but, unlike ":", preserve the value of $?. 4216d1874b2Smrgas_fn_nop () 4226d1874b2Smrg{ 4236d1874b2Smrg return $? 4246d1874b2Smrg} 4256d1874b2Smrgas_nop=as_fn_nop 426e6232409Smrg 42794a251fdSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 42894a251fdSmrg# ---------------------------------------- 4298fff3f40Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4308fff3f40Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 43194a251fdSmrg# script with STATUS, using 1 if that was 0. 4328fff3f40Smrgas_fn_error () 4338fff3f40Smrg{ 43494a251fdSmrg as_status=$1; test $as_status -eq 0 && as_status=1 43594a251fdSmrg if test "$4"; then 43694a251fdSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4376d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4388fff3f40Smrg fi 4396d1874b2Smrg printf "%s\n" "$as_me: error: $2" >&2 4408fff3f40Smrg as_fn_exit $as_status 4418fff3f40Smrg} # as_fn_error 442e6232409Smrg 4438fff3f40Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 4448fff3f40Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 4458fff3f40Smrg as_expr=expr 446e6232409Smrgelse 4478fff3f40Smrg as_expr=false 448e6232409Smrgfi 449e6232409Smrg 4508fff3f40Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4518fff3f40Smrg as_basename=basename 452e6232409Smrgelse 4538fff3f40Smrg as_basename=false 454e6232409Smrgfi 455e6232409Smrg 4568fff3f40Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4578fff3f40Smrg as_dirname=dirname 458e6232409Smrgelse 4598fff3f40Smrg as_dirname=false 460e6232409Smrgfi 461e6232409Smrg 4628fff3f40Smrgas_me=`$as_basename -- "$0" || 4638fff3f40Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4648fff3f40Smrg X"$0" : 'X\(//\)$' \| \ 4658fff3f40Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 4666d1874b2Smrgprintf "%s\n" X/"$0" | 4678fff3f40Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4688fff3f40Smrg s//\1/ 4698fff3f40Smrg q 4708fff3f40Smrg } 4718fff3f40Smrg /^X\/\(\/\/\)$/{ 4728fff3f40Smrg s//\1/ 4738fff3f40Smrg q 4748fff3f40Smrg } 4758fff3f40Smrg /^X\/\(\/\).*/{ 4768fff3f40Smrg s//\1/ 4778fff3f40Smrg q 4788fff3f40Smrg } 4798fff3f40Smrg s/.*/./; q'` 480e6232409Smrg 4818fff3f40Smrg# Avoid depending upon Character Ranges. 4828fff3f40Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4838fff3f40Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4848fff3f40Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4858fff3f40Smrgas_cr_digits='0123456789' 4868fff3f40Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 487e6232409Smrg 488e6232409Smrg 4898fff3f40Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4908fff3f40Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4918fff3f40Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4928fff3f40Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4938fff3f40Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494e6232409Smrg sed -n ' 495e6232409Smrg p 496e6232409Smrg /[$]LINENO/= 497e6232409Smrg ' <$as_myself | 498e6232409Smrg sed ' 499e6232409Smrg s/[$]LINENO.*/&-/ 500e6232409Smrg t lineno 501e6232409Smrg b 502e6232409Smrg :lineno 503e6232409Smrg N 504e6232409Smrg :loop 505e6232409Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506e6232409Smrg t loop 507e6232409Smrg s/-\n.*// 508e6232409Smrg ' >$as_me.lineno && 509e6232409Smrg chmod +x "$as_me.lineno" || 5106d1874b2Smrg { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511e6232409Smrg 5126a45684fSmrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 5136a45684fSmrg # already done that, so ensure we don't try to do so again and fall 5146a45684fSmrg # in an infinite loop. This has already happened in practice. 5156a45684fSmrg _as_can_reexec=no; export _as_can_reexec 516e6232409Smrg # Don't try to exec as it changes $[0], causing all sort of problems 517e6232409Smrg # (the dirname of $[0] is not the place where we might find the 518e6232409Smrg # original and so on. Autoconf is especially sensitive to this). 519e6232409Smrg . "./$as_me.lineno" 520e6232409Smrg # Exit status is that of the last command. 521e6232409Smrg exit 522e6232409Smrg} 523e6232409Smrg 5246d1874b2Smrg 5256d1874b2Smrg# Determine whether it's possible to make 'echo' print without a newline. 5266d1874b2Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 5276d1874b2Smrg# for compatibility with existing Makefiles. 528e6232409SmrgECHO_C= ECHO_N= ECHO_T= 5298fff3f40Smrgcase `echo -n x` in #((((( 530e6232409Smrg-n*) 5318fff3f40Smrg case `echo 'xy\c'` in 532e6232409Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5338fff3f40Smrg xy) ECHO_C='\c';; 5348fff3f40Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5358fff3f40Smrg ECHO_T=' ';; 536e6232409Smrg esac;; 537e6232409Smrg*) 538e6232409Smrg ECHO_N='-n';; 539e6232409Smrgesac 540e6232409Smrg 5416d1874b2Smrg# For backward compatibility with old third-party macros, we provide 5426d1874b2Smrg# the shell variables $as_echo and $as_echo_n. New code should use 5436d1874b2Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 5446d1874b2Smrgas_echo='printf %s\n' 5456d1874b2Smrgas_echo_n='printf %s' 5466d1874b2Smrg 5476d1874b2Smrg 548e6232409Smrgrm -f conf$$ conf$$.exe conf$$.file 549e6232409Smrgif test -d conf$$.dir; then 550e6232409Smrg rm -f conf$$.dir/conf$$.file 551e6232409Smrgelse 552e6232409Smrg rm -f conf$$.dir 5538fff3f40Smrg mkdir conf$$.dir 2>/dev/null 5548fff3f40Smrgfi 5558fff3f40Smrgif (echo >conf$$.file) 2>/dev/null; then 5568fff3f40Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5578fff3f40Smrg as_ln_s='ln -s' 5588fff3f40Smrg # ... but there are two gotchas: 5598fff3f40Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5608fff3f40Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5616a45684fSmrg # In both cases, we have to default to `cp -pR'. 5628fff3f40Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5636a45684fSmrg as_ln_s='cp -pR' 5648fff3f40Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 5658fff3f40Smrg as_ln_s=ln 5668fff3f40Smrg else 5676a45684fSmrg as_ln_s='cp -pR' 5688fff3f40Smrg fi 569e6232409Smrgelse 5706a45684fSmrg as_ln_s='cp -pR' 571e6232409Smrgfi 572e6232409Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573e6232409Smrgrmdir conf$$.dir 2>/dev/null 574e6232409Smrg 575e6232409Smrgif mkdir -p . 2>/dev/null; then 5768fff3f40Smrg as_mkdir_p='mkdir -p "$as_dir"' 577e6232409Smrgelse 578e6232409Smrg test -d ./-p && rmdir ./-p 579e6232409Smrg as_mkdir_p=false 580e6232409Smrgfi 581e6232409Smrg 5826a45684fSmrgas_test_x='test -x' 5836a45684fSmrgas_executable_p=as_fn_executable_p 584e6232409Smrg 585e6232409Smrg# Sed expression to map a string onto a valid CPP name. 586e6232409Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587e6232409Smrg 588e6232409Smrg# Sed expression to map a string onto a valid variable name. 589e6232409Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590e6232409Smrg 591e6232409Smrg 5928fff3f40Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 5938fff3f40Smrgexec 6>&1 594e6232409Smrg 595e6232409Smrg# Name of the host. 59694a251fdSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 597e6232409Smrg# so uname gets run too. 598e6232409Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 599e6232409Smrg 600e6232409Smrg# 601e6232409Smrg# Initializations. 602e6232409Smrg# 603e6232409Smrgac_default_prefix=/usr/local 604e6232409Smrgac_clean_files= 605e6232409Smrgac_config_libobj_dir=. 606e6232409SmrgLIBOBJS= 607e6232409Smrgcross_compiling=no 608e6232409Smrgsubdirs= 609e6232409SmrgMFLAGS= 610e6232409SmrgMAKEFLAGS= 611e6232409Smrg 612e6232409Smrg# Identity of this package. 613e6232409SmrgPACKAGE_NAME='xlsfonts' 614e6232409SmrgPACKAGE_TARNAME='xlsfonts' 6156d1874b2SmrgPACKAGE_VERSION='1.0.7' 6166d1874b2SmrgPACKAGE_STRING='xlsfonts 1.0.7' 6176d1874b2SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xlsfonts/issues' 6188fff3f40SmrgPACKAGE_URL='' 619e6232409Smrg 6206a45684fSmrgac_unique_file="Makefile.am" 6218fff3f40Smrg# Factoring default headers for most tests. 6228fff3f40Smrgac_includes_default="\ 6236d1874b2Smrg#include <stddef.h> 6246d1874b2Smrg#ifdef HAVE_STDIO_H 6256d1874b2Smrg# include <stdio.h> 6268fff3f40Smrg#endif 6276d1874b2Smrg#ifdef HAVE_STDLIB_H 6288fff3f40Smrg# include <stdlib.h> 6298fff3f40Smrg#endif 6308fff3f40Smrg#ifdef HAVE_STRING_H 6318fff3f40Smrg# include <string.h> 6328fff3f40Smrg#endif 6338fff3f40Smrg#ifdef HAVE_INTTYPES_H 6348fff3f40Smrg# include <inttypes.h> 6358fff3f40Smrg#endif 6368fff3f40Smrg#ifdef HAVE_STDINT_H 6378fff3f40Smrg# include <stdint.h> 6388fff3f40Smrg#endif 6396d1874b2Smrg#ifdef HAVE_STRINGS_H 6406d1874b2Smrg# include <strings.h> 6416d1874b2Smrg#endif 6426d1874b2Smrg#ifdef HAVE_SYS_TYPES_H 6436d1874b2Smrg# include <sys/types.h> 6446d1874b2Smrg#endif 6456d1874b2Smrg#ifdef HAVE_SYS_STAT_H 6466d1874b2Smrg# include <sys/stat.h> 6476d1874b2Smrg#endif 6488fff3f40Smrg#ifdef HAVE_UNISTD_H 6498fff3f40Smrg# include <unistd.h> 6508fff3f40Smrg#endif" 6518fff3f40Smrg 6526d1874b2Smrgac_header_c_list= 6538fff3f40Smrgac_subst_vars='am__EXEEXT_FALSE 6548fff3f40Smrgam__EXEEXT_TRUE 6558fff3f40SmrgLTLIBOBJS 6568fff3f40SmrgLIBOBJS 657e6232409SmrgXLSFONTS_LIBS 6588fff3f40SmrgXLSFONTS_CFLAGS 65994a251fdSmrgMAN_SUBSTS 66094a251fdSmrgXORG_MAN_PAGE 661e6232409SmrgADMIN_MAN_DIR 6628fff3f40SmrgDRIVER_MAN_DIR 6638fff3f40SmrgMISC_MAN_DIR 6648fff3f40SmrgFILE_MAN_DIR 6658fff3f40SmrgLIB_MAN_DIR 6668fff3f40SmrgAPP_MAN_DIR 6678fff3f40SmrgADMIN_MAN_SUFFIX 6688fff3f40SmrgDRIVER_MAN_SUFFIX 6698fff3f40SmrgMISC_MAN_SUFFIX 6708fff3f40SmrgFILE_MAN_SUFFIX 6718fff3f40SmrgLIB_MAN_SUFFIX 6728fff3f40SmrgAPP_MAN_SUFFIX 67394a251fdSmrgSED 6748fff3f40Smrghost_os 6758fff3f40Smrghost_vendor 6768fff3f40Smrghost_cpu 6778fff3f40Smrghost 6788fff3f40Smrgbuild_os 6798fff3f40Smrgbuild_vendor 6808fff3f40Smrgbuild_cpu 6818fff3f40Smrgbuild 6828fff3f40SmrgINSTALL_CMD 683c05e7a3eSmrgPKG_CONFIG_LIBDIR 684c05e7a3eSmrgPKG_CONFIG_PATH 6858fff3f40SmrgPKG_CONFIG 6868fff3f40SmrgCHANGELOG_CMD 68794a251fdSmrgSTRICT_CFLAGS 6888fff3f40SmrgCWARNFLAGS 68994a251fdSmrgBASE_CFLAGS 6908fff3f40Smrgam__fastdepCC_FALSE 6918fff3f40Smrgam__fastdepCC_TRUE 6928fff3f40SmrgCCDEPMODE 69394a251fdSmrgam__nodep 6948fff3f40SmrgAMDEPBACKSLASH 6958fff3f40SmrgAMDEP_FALSE 6968fff3f40SmrgAMDEP_TRUE 6978fff3f40Smrgam__include 6988fff3f40SmrgDEPDIR 6998fff3f40SmrgOBJEXT 7008fff3f40SmrgEXEEXT 7018fff3f40Smrgac_ct_CC 7028fff3f40SmrgCPPFLAGS 7038fff3f40SmrgLDFLAGS 7048fff3f40SmrgCFLAGS 7058fff3f40SmrgCC 7066a45684fSmrgAM_BACKSLASH 7076a45684fSmrgAM_DEFAULT_VERBOSITY 7086a45684fSmrgAM_DEFAULT_V 7096a45684fSmrgAM_V 7106d1874b2SmrgCSCOPE 7116d1874b2SmrgETAGS 7126d1874b2SmrgCTAGS 7138fff3f40Smrgam__untar 7148fff3f40Smrgam__tar 7158fff3f40SmrgAMTAR 7168fff3f40Smrgam__leading_dot 7178fff3f40SmrgSET_MAKE 7188fff3f40SmrgAWK 7198fff3f40Smrgmkdir_p 7208fff3f40SmrgMKDIR_P 7218fff3f40SmrgINSTALL_STRIP_PROGRAM 7228fff3f40SmrgSTRIP 7238fff3f40Smrginstall_sh 7248fff3f40SmrgMAKEINFO 7258fff3f40SmrgAUTOHEADER 7268fff3f40SmrgAUTOMAKE 7278fff3f40SmrgAUTOCONF 7288fff3f40SmrgACLOCAL 7298fff3f40SmrgVERSION 7308fff3f40SmrgPACKAGE 7318fff3f40SmrgCYGPATH_W 7328fff3f40Smrgam__isrc 7338fff3f40SmrgINSTALL_DATA 7348fff3f40SmrgINSTALL_SCRIPT 7358fff3f40SmrgINSTALL_PROGRAM 7368fff3f40Smrgtarget_alias 7378fff3f40Smrghost_alias 7388fff3f40Smrgbuild_alias 7398fff3f40SmrgLIBS 7408fff3f40SmrgECHO_T 7418fff3f40SmrgECHO_N 7428fff3f40SmrgECHO_C 7438fff3f40SmrgDEFS 7448fff3f40Smrgmandir 7458fff3f40Smrglocaledir 7468fff3f40Smrglibdir 7478fff3f40Smrgpsdir 7488fff3f40Smrgpdfdir 7498fff3f40Smrgdvidir 7508fff3f40Smrghtmldir 7518fff3f40Smrginfodir 7528fff3f40Smrgdocdir 7538fff3f40Smrgoldincludedir 7548fff3f40Smrgincludedir 7556d1874b2Smrgrunstatedir 7568fff3f40Smrglocalstatedir 7578fff3f40Smrgsharedstatedir 7588fff3f40Smrgsysconfdir 7598fff3f40Smrgdatadir 7608fff3f40Smrgdatarootdir 7618fff3f40Smrglibexecdir 7628fff3f40Smrgsbindir 7638fff3f40Smrgbindir 7648fff3f40Smrgprogram_transform_name 7658fff3f40Smrgprefix 7668fff3f40Smrgexec_prefix 7678fff3f40SmrgPACKAGE_URL 7688fff3f40SmrgPACKAGE_BUGREPORT 7698fff3f40SmrgPACKAGE_STRING 7708fff3f40SmrgPACKAGE_VERSION 7718fff3f40SmrgPACKAGE_TARNAME 7728fff3f40SmrgPACKAGE_NAME 7738fff3f40SmrgPATH_SEPARATOR 7746d1874b2SmrgSHELL 7756d1874b2Smrgam__quote' 776e6232409Smrgac_subst_files='' 7778fff3f40Smrgac_user_opts=' 7788fff3f40Smrgenable_option_checking 7796a45684fSmrgenable_silent_rules 7808fff3f40Smrgenable_dependency_tracking 78194a251fdSmrgenable_selective_werror 7828fff3f40Smrgenable_strict_compilation 7838fff3f40Smrg' 784e6232409Smrg ac_precious_vars='build_alias 785e6232409Smrghost_alias 786e6232409Smrgtarget_alias 787e6232409SmrgCC 788e6232409SmrgCFLAGS 789e6232409SmrgLDFLAGS 7908fff3f40SmrgLIBS 791e6232409SmrgCPPFLAGS 792e6232409SmrgPKG_CONFIG 793c05e7a3eSmrgPKG_CONFIG_PATH 794c05e7a3eSmrgPKG_CONFIG_LIBDIR 795e6232409SmrgXLSFONTS_CFLAGS 796e6232409SmrgXLSFONTS_LIBS' 797e6232409Smrg 798e6232409Smrg 799e6232409Smrg# Initialize some variables set by options. 800e6232409Smrgac_init_help= 801e6232409Smrgac_init_version=false 8028fff3f40Smrgac_unrecognized_opts= 8038fff3f40Smrgac_unrecognized_sep= 804e6232409Smrg# The variables have the same names as the options, with 805e6232409Smrg# dashes changed to underlines. 806e6232409Smrgcache_file=/dev/null 807e6232409Smrgexec_prefix=NONE 808e6232409Smrgno_create= 809e6232409Smrgno_recursion= 810e6232409Smrgprefix=NONE 811e6232409Smrgprogram_prefix=NONE 812e6232409Smrgprogram_suffix=NONE 813e6232409Smrgprogram_transform_name=s,x,x, 814e6232409Smrgsilent= 815e6232409Smrgsite= 816e6232409Smrgsrcdir= 817e6232409Smrgverbose= 818e6232409Smrgx_includes=NONE 819e6232409Smrgx_libraries=NONE 820e6232409Smrg 821e6232409Smrg# Installation directory options. 822e6232409Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 823e6232409Smrg# and all the variables that are supposed to be based on exec_prefix 824e6232409Smrg# by default will actually change. 825e6232409Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 826e6232409Smrg# (The list follows the same order as the GNU Coding Standards.) 827e6232409Smrgbindir='${exec_prefix}/bin' 828e6232409Smrgsbindir='${exec_prefix}/sbin' 829e6232409Smrglibexecdir='${exec_prefix}/libexec' 830e6232409Smrgdatarootdir='${prefix}/share' 831e6232409Smrgdatadir='${datarootdir}' 832e6232409Smrgsysconfdir='${prefix}/etc' 833e6232409Smrgsharedstatedir='${prefix}/com' 834e6232409Smrglocalstatedir='${prefix}/var' 8356d1874b2Smrgrunstatedir='${localstatedir}/run' 836e6232409Smrgincludedir='${prefix}/include' 837e6232409Smrgoldincludedir='/usr/include' 838e6232409Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 839e6232409Smrginfodir='${datarootdir}/info' 840e6232409Smrghtmldir='${docdir}' 841e6232409Smrgdvidir='${docdir}' 842e6232409Smrgpdfdir='${docdir}' 843e6232409Smrgpsdir='${docdir}' 844e6232409Smrglibdir='${exec_prefix}/lib' 845e6232409Smrglocaledir='${datarootdir}/locale' 846e6232409Smrgmandir='${datarootdir}/man' 847e6232409Smrg 848e6232409Smrgac_prev= 849e6232409Smrgac_dashdash= 850e6232409Smrgfor ac_option 851e6232409Smrgdo 852e6232409Smrg # If the previous option needs an argument, assign it. 853e6232409Smrg if test -n "$ac_prev"; then 854e6232409Smrg eval $ac_prev=\$ac_option 855e6232409Smrg ac_prev= 856e6232409Smrg continue 857e6232409Smrg fi 858e6232409Smrg 859e6232409Smrg case $ac_option in 86094a251fdSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 86194a251fdSmrg *=) ac_optarg= ;; 86294a251fdSmrg *) ac_optarg=yes ;; 863e6232409Smrg esac 864e6232409Smrg 865e6232409Smrg case $ac_dashdash$ac_option in 866e6232409Smrg --) 867e6232409Smrg ac_dashdash=yes ;; 868e6232409Smrg 869e6232409Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 870e6232409Smrg ac_prev=bindir ;; 871e6232409Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 872e6232409Smrg bindir=$ac_optarg ;; 873e6232409Smrg 874e6232409Smrg -build | --build | --buil | --bui | --bu) 875e6232409Smrg ac_prev=build_alias ;; 876e6232409Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 877e6232409Smrg build_alias=$ac_optarg ;; 878e6232409Smrg 879e6232409Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 880e6232409Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 881e6232409Smrg ac_prev=cache_file ;; 882e6232409Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 883e6232409Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 884e6232409Smrg cache_file=$ac_optarg ;; 885e6232409Smrg 886e6232409Smrg --config-cache | -C) 887e6232409Smrg cache_file=config.cache ;; 888e6232409Smrg 889e6232409Smrg -datadir | --datadir | --datadi | --datad) 890e6232409Smrg ac_prev=datadir ;; 891e6232409Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 892e6232409Smrg datadir=$ac_optarg ;; 893e6232409Smrg 894e6232409Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 895e6232409Smrg | --dataroo | --dataro | --datar) 896e6232409Smrg ac_prev=datarootdir ;; 897e6232409Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 898e6232409Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 899e6232409Smrg datarootdir=$ac_optarg ;; 900e6232409Smrg 901e6232409Smrg -disable-* | --disable-*) 9028fff3f40Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 903e6232409Smrg # Reject names that are not valid shell variable names. 9048fff3f40Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9056d1874b2Smrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 9068fff3f40Smrg ac_useropt_orig=$ac_useropt 9076d1874b2Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9088fff3f40Smrg case $ac_user_opts in 9098fff3f40Smrg *" 9108fff3f40Smrg"enable_$ac_useropt" 9118fff3f40Smrg"*) ;; 9128fff3f40Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 9138fff3f40Smrg ac_unrecognized_sep=', ';; 9148fff3f40Smrg esac 9158fff3f40Smrg eval enable_$ac_useropt=no ;; 916e6232409Smrg 917e6232409Smrg -docdir | --docdir | --docdi | --doc | --do) 918e6232409Smrg ac_prev=docdir ;; 919e6232409Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 920e6232409Smrg docdir=$ac_optarg ;; 921e6232409Smrg 922e6232409Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 923e6232409Smrg ac_prev=dvidir ;; 924e6232409Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 925e6232409Smrg dvidir=$ac_optarg ;; 926e6232409Smrg 927e6232409Smrg -enable-* | --enable-*) 9288fff3f40Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 929e6232409Smrg # Reject names that are not valid shell variable names. 9308fff3f40Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9316d1874b2Smrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 9328fff3f40Smrg ac_useropt_orig=$ac_useropt 9336d1874b2Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9348fff3f40Smrg case $ac_user_opts in 9358fff3f40Smrg *" 9368fff3f40Smrg"enable_$ac_useropt" 9378fff3f40Smrg"*) ;; 9388fff3f40Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 9398fff3f40Smrg ac_unrecognized_sep=', ';; 9408fff3f40Smrg esac 9418fff3f40Smrg eval enable_$ac_useropt=\$ac_optarg ;; 942e6232409Smrg 943e6232409Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 944e6232409Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 945e6232409Smrg | --exec | --exe | --ex) 946e6232409Smrg ac_prev=exec_prefix ;; 947e6232409Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 948e6232409Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 949e6232409Smrg | --exec=* | --exe=* | --ex=*) 950e6232409Smrg exec_prefix=$ac_optarg ;; 951e6232409Smrg 952e6232409Smrg -gas | --gas | --ga | --g) 953e6232409Smrg # Obsolete; use --with-gas. 954e6232409Smrg with_gas=yes ;; 955e6232409Smrg 956e6232409Smrg -help | --help | --hel | --he | -h) 957e6232409Smrg ac_init_help=long ;; 958e6232409Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 959e6232409Smrg ac_init_help=recursive ;; 960e6232409Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 961e6232409Smrg ac_init_help=short ;; 962e6232409Smrg 963e6232409Smrg -host | --host | --hos | --ho) 964e6232409Smrg ac_prev=host_alias ;; 965e6232409Smrg -host=* | --host=* | --hos=* | --ho=*) 966e6232409Smrg host_alias=$ac_optarg ;; 967e6232409Smrg 968e6232409Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 969e6232409Smrg ac_prev=htmldir ;; 970e6232409Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 971e6232409Smrg | --ht=*) 972e6232409Smrg htmldir=$ac_optarg ;; 973e6232409Smrg 974e6232409Smrg -includedir | --includedir | --includedi | --included | --include \ 975e6232409Smrg | --includ | --inclu | --incl | --inc) 976e6232409Smrg ac_prev=includedir ;; 977e6232409Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 978e6232409Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 979e6232409Smrg includedir=$ac_optarg ;; 980e6232409Smrg 981e6232409Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 982e6232409Smrg ac_prev=infodir ;; 983e6232409Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 984e6232409Smrg infodir=$ac_optarg ;; 985e6232409Smrg 986e6232409Smrg -libdir | --libdir | --libdi | --libd) 987e6232409Smrg ac_prev=libdir ;; 988e6232409Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 989e6232409Smrg libdir=$ac_optarg ;; 990e6232409Smrg 991e6232409Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 992e6232409Smrg | --libexe | --libex | --libe) 993e6232409Smrg ac_prev=libexecdir ;; 994e6232409Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 995e6232409Smrg | --libexe=* | --libex=* | --libe=*) 996e6232409Smrg libexecdir=$ac_optarg ;; 997e6232409Smrg 998e6232409Smrg -localedir | --localedir | --localedi | --localed | --locale) 999e6232409Smrg ac_prev=localedir ;; 1000e6232409Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1001e6232409Smrg localedir=$ac_optarg ;; 1002e6232409Smrg 1003e6232409Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 1004e6232409Smrg | --localstate | --localstat | --localsta | --localst | --locals) 1005e6232409Smrg ac_prev=localstatedir ;; 1006e6232409Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1007e6232409Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1008e6232409Smrg localstatedir=$ac_optarg ;; 1009e6232409Smrg 1010e6232409Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1011e6232409Smrg ac_prev=mandir ;; 1012e6232409Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1013e6232409Smrg mandir=$ac_optarg ;; 1014e6232409Smrg 1015e6232409Smrg -nfp | --nfp | --nf) 1016e6232409Smrg # Obsolete; use --without-fp. 1017e6232409Smrg with_fp=no ;; 1018e6232409Smrg 1019e6232409Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1020e6232409Smrg | --no-cr | --no-c | -n) 1021e6232409Smrg no_create=yes ;; 1022e6232409Smrg 1023e6232409Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1024e6232409Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1025e6232409Smrg no_recursion=yes ;; 1026e6232409Smrg 1027e6232409Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1028e6232409Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1029e6232409Smrg | --oldin | --oldi | --old | --ol | --o) 1030e6232409Smrg ac_prev=oldincludedir ;; 1031e6232409Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1032e6232409Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1033e6232409Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1034e6232409Smrg oldincludedir=$ac_optarg ;; 1035e6232409Smrg 1036e6232409Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1037e6232409Smrg ac_prev=prefix ;; 1038e6232409Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1039e6232409Smrg prefix=$ac_optarg ;; 1040e6232409Smrg 1041e6232409Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1042e6232409Smrg | --program-pre | --program-pr | --program-p) 1043e6232409Smrg ac_prev=program_prefix ;; 1044e6232409Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1045e6232409Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1046e6232409Smrg program_prefix=$ac_optarg ;; 1047e6232409Smrg 1048e6232409Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1049e6232409Smrg | --program-suf | --program-su | --program-s) 1050e6232409Smrg ac_prev=program_suffix ;; 1051e6232409Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1052e6232409Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1053e6232409Smrg program_suffix=$ac_optarg ;; 1054e6232409Smrg 1055e6232409Smrg -program-transform-name | --program-transform-name \ 1056e6232409Smrg | --program-transform-nam | --program-transform-na \ 1057e6232409Smrg | --program-transform-n | --program-transform- \ 1058e6232409Smrg | --program-transform | --program-transfor \ 1059e6232409Smrg | --program-transfo | --program-transf \ 1060e6232409Smrg | --program-trans | --program-tran \ 1061e6232409Smrg | --progr-tra | --program-tr | --program-t) 1062e6232409Smrg ac_prev=program_transform_name ;; 1063e6232409Smrg -program-transform-name=* | --program-transform-name=* \ 1064e6232409Smrg | --program-transform-nam=* | --program-transform-na=* \ 1065e6232409Smrg | --program-transform-n=* | --program-transform-=* \ 1066e6232409Smrg | --program-transform=* | --program-transfor=* \ 1067e6232409Smrg | --program-transfo=* | --program-transf=* \ 1068e6232409Smrg | --program-trans=* | --program-tran=* \ 1069e6232409Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 1070e6232409Smrg program_transform_name=$ac_optarg ;; 1071e6232409Smrg 1072e6232409Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1073e6232409Smrg ac_prev=pdfdir ;; 1074e6232409Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1075e6232409Smrg pdfdir=$ac_optarg ;; 1076e6232409Smrg 1077e6232409Smrg -psdir | --psdir | --psdi | --psd | --ps) 1078e6232409Smrg ac_prev=psdir ;; 1079e6232409Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1080e6232409Smrg psdir=$ac_optarg ;; 1081e6232409Smrg 1082e6232409Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1083e6232409Smrg | -silent | --silent | --silen | --sile | --sil) 1084e6232409Smrg silent=yes ;; 1085e6232409Smrg 10866d1874b2Smrg -runstatedir | --runstatedir | --runstatedi | --runstated \ 10876d1874b2Smrg | --runstate | --runstat | --runsta | --runst | --runs \ 10886d1874b2Smrg | --run | --ru | --r) 10896d1874b2Smrg ac_prev=runstatedir ;; 10906d1874b2Smrg -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 10916d1874b2Smrg | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 10926d1874b2Smrg | --run=* | --ru=* | --r=*) 10936d1874b2Smrg runstatedir=$ac_optarg ;; 10946d1874b2Smrg 1095e6232409Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1096e6232409Smrg ac_prev=sbindir ;; 1097e6232409Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1098e6232409Smrg | --sbi=* | --sb=*) 1099e6232409Smrg sbindir=$ac_optarg ;; 1100e6232409Smrg 1101e6232409Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1102e6232409Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1103e6232409Smrg | --sharedst | --shareds | --shared | --share | --shar \ 1104e6232409Smrg | --sha | --sh) 1105e6232409Smrg ac_prev=sharedstatedir ;; 1106e6232409Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1107e6232409Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1108e6232409Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1109e6232409Smrg | --sha=* | --sh=*) 1110e6232409Smrg sharedstatedir=$ac_optarg ;; 1111e6232409Smrg 1112e6232409Smrg -site | --site | --sit) 1113e6232409Smrg ac_prev=site ;; 1114e6232409Smrg -site=* | --site=* | --sit=*) 1115e6232409Smrg site=$ac_optarg ;; 1116e6232409Smrg 1117e6232409Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1118e6232409Smrg ac_prev=srcdir ;; 1119e6232409Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1120e6232409Smrg srcdir=$ac_optarg ;; 1121e6232409Smrg 1122e6232409Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1123e6232409Smrg | --syscon | --sysco | --sysc | --sys | --sy) 1124e6232409Smrg ac_prev=sysconfdir ;; 1125e6232409Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1126e6232409Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1127e6232409Smrg sysconfdir=$ac_optarg ;; 1128e6232409Smrg 1129e6232409Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 1130e6232409Smrg ac_prev=target_alias ;; 1131e6232409Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1132e6232409Smrg target_alias=$ac_optarg ;; 1133e6232409Smrg 1134e6232409Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1135e6232409Smrg verbose=yes ;; 1136e6232409Smrg 1137e6232409Smrg -version | --version | --versio | --versi | --vers | -V) 1138e6232409Smrg ac_init_version=: ;; 1139e6232409Smrg 1140e6232409Smrg -with-* | --with-*) 11418fff3f40Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1142e6232409Smrg # Reject names that are not valid shell variable names. 11438fff3f40Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11446d1874b2Smrg as_fn_error $? "invalid package name: \`$ac_useropt'" 11458fff3f40Smrg ac_useropt_orig=$ac_useropt 11466d1874b2Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11478fff3f40Smrg case $ac_user_opts in 11488fff3f40Smrg *" 11498fff3f40Smrg"with_$ac_useropt" 11508fff3f40Smrg"*) ;; 11518fff3f40Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 11528fff3f40Smrg ac_unrecognized_sep=', ';; 11538fff3f40Smrg esac 11548fff3f40Smrg eval with_$ac_useropt=\$ac_optarg ;; 1155e6232409Smrg 1156e6232409Smrg -without-* | --without-*) 11578fff3f40Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1158e6232409Smrg # Reject names that are not valid shell variable names. 11598fff3f40Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11606d1874b2Smrg as_fn_error $? "invalid package name: \`$ac_useropt'" 11618fff3f40Smrg ac_useropt_orig=$ac_useropt 11626d1874b2Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11638fff3f40Smrg case $ac_user_opts in 11648fff3f40Smrg *" 11658fff3f40Smrg"with_$ac_useropt" 11668fff3f40Smrg"*) ;; 11678fff3f40Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11688fff3f40Smrg ac_unrecognized_sep=', ';; 11698fff3f40Smrg esac 11708fff3f40Smrg eval with_$ac_useropt=no ;; 1171e6232409Smrg 1172e6232409Smrg --x) 1173e6232409Smrg # Obsolete; use --with-x. 1174e6232409Smrg with_x=yes ;; 1175e6232409Smrg 1176e6232409Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1177e6232409Smrg | --x-incl | --x-inc | --x-in | --x-i) 1178e6232409Smrg ac_prev=x_includes ;; 1179e6232409Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1180e6232409Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1181e6232409Smrg x_includes=$ac_optarg ;; 1182e6232409Smrg 1183e6232409Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1184e6232409Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1185e6232409Smrg ac_prev=x_libraries ;; 1186e6232409Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1187e6232409Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1188e6232409Smrg x_libraries=$ac_optarg ;; 1189e6232409Smrg 119094a251fdSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 119194a251fdSmrgTry \`$0 --help' for more information" 1192e6232409Smrg ;; 1193e6232409Smrg 1194e6232409Smrg *=*) 1195e6232409Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1196e6232409Smrg # Reject names that are not valid shell variable names. 11978fff3f40Smrg case $ac_envvar in #( 11988fff3f40Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 119994a251fdSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 12008fff3f40Smrg esac 1201e6232409Smrg eval $ac_envvar=\$ac_optarg 1202e6232409Smrg export $ac_envvar ;; 1203e6232409Smrg 1204e6232409Smrg *) 1205e6232409Smrg # FIXME: should be removed in autoconf 3.0. 12066d1874b2Smrg printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1207e6232409Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 12086d1874b2Smrg printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 120994a251fdSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1210e6232409Smrg ;; 1211e6232409Smrg 1212e6232409Smrg esac 1213e6232409Smrgdone 1214e6232409Smrg 1215e6232409Smrgif test -n "$ac_prev"; then 1216e6232409Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 121794a251fdSmrg as_fn_error $? "missing argument to $ac_option" 1218e6232409Smrgfi 1219e6232409Smrg 12208fff3f40Smrgif test -n "$ac_unrecognized_opts"; then 12218fff3f40Smrg case $enable_option_checking in 12228fff3f40Smrg no) ;; 122394a251fdSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 12246d1874b2Smrg *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 12258fff3f40Smrg esac 12268fff3f40Smrgfi 12278fff3f40Smrg 12288fff3f40Smrg# Check all directory arguments for consistency. 1229e6232409Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1230e6232409Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1231e6232409Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 12326d1874b2Smrg libdir localedir mandir runstatedir 1233e6232409Smrgdo 1234e6232409Smrg eval ac_val=\$$ac_var 12358fff3f40Smrg # Remove trailing slashes. 12368fff3f40Smrg case $ac_val in 12378fff3f40Smrg */ ) 12388fff3f40Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 12398fff3f40Smrg eval $ac_var=\$ac_val;; 12408fff3f40Smrg esac 12418fff3f40Smrg # Be sure to have absolute directory names. 1242e6232409Smrg case $ac_val in 1243e6232409Smrg [\\/$]* | ?:[\\/]* ) continue;; 1244e6232409Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1245e6232409Smrg esac 124694a251fdSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1247e6232409Smrgdone 1248e6232409Smrg 1249e6232409Smrg# There might be people who depend on the old broken behavior: `$host' 1250e6232409Smrg# used to hold the argument of --host etc. 1251e6232409Smrg# FIXME: To remove some day. 1252e6232409Smrgbuild=$build_alias 1253e6232409Smrghost=$host_alias 1254e6232409Smrgtarget=$target_alias 1255e6232409Smrg 1256e6232409Smrg# FIXME: To remove some day. 1257e6232409Smrgif test "x$host_alias" != x; then 1258e6232409Smrg if test "x$build_alias" = x; then 1259e6232409Smrg cross_compiling=maybe 1260e6232409Smrg elif test "x$build_alias" != "x$host_alias"; then 1261e6232409Smrg cross_compiling=yes 1262e6232409Smrg fi 1263e6232409Smrgfi 1264e6232409Smrg 1265e6232409Smrgac_tool_prefix= 1266e6232409Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1267e6232409Smrg 1268e6232409Smrgtest "$silent" = yes && exec 6>/dev/null 1269e6232409Smrg 1270e6232409Smrg 1271e6232409Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 1272e6232409Smrgac_ls_di=`ls -di .` && 1273e6232409Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 127494a251fdSmrg as_fn_error $? "working directory cannot be determined" 1275e6232409Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 127694a251fdSmrg as_fn_error $? "pwd does not report name of working directory" 1277e6232409Smrg 1278e6232409Smrg 1279e6232409Smrg# Find the source files, if location was not specified. 1280e6232409Smrgif test -z "$srcdir"; then 1281e6232409Smrg ac_srcdir_defaulted=yes 1282e6232409Smrg # Try the directory containing this script, then the parent directory. 12838fff3f40Smrg ac_confdir=`$as_dirname -- "$as_myself" || 12848fff3f40Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12858fff3f40Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 12868fff3f40Smrg X"$as_myself" : 'X\(//\)$' \| \ 12878fff3f40Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 12886d1874b2Smrgprintf "%s\n" X"$as_myself" | 1289e6232409Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1290e6232409Smrg s//\1/ 1291e6232409Smrg q 1292e6232409Smrg } 1293e6232409Smrg /^X\(\/\/\)[^/].*/{ 1294e6232409Smrg s//\1/ 1295e6232409Smrg q 1296e6232409Smrg } 1297e6232409Smrg /^X\(\/\/\)$/{ 1298e6232409Smrg s//\1/ 1299e6232409Smrg q 1300e6232409Smrg } 1301e6232409Smrg /^X\(\/\).*/{ 1302e6232409Smrg s//\1/ 1303e6232409Smrg q 1304e6232409Smrg } 1305e6232409Smrg s/.*/./; q'` 1306e6232409Smrg srcdir=$ac_confdir 1307e6232409Smrg if test ! -r "$srcdir/$ac_unique_file"; then 1308e6232409Smrg srcdir=.. 1309e6232409Smrg fi 1310e6232409Smrgelse 1311e6232409Smrg ac_srcdir_defaulted=no 1312e6232409Smrgfi 1313e6232409Smrgif test ! -r "$srcdir/$ac_unique_file"; then 1314e6232409Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 131594a251fdSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1316e6232409Smrgfi 1317e6232409Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1318e6232409Smrgac_abs_confdir=`( 131994a251fdSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1320e6232409Smrg pwd)` 1321e6232409Smrg# When building in place, set srcdir=. 1322e6232409Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1323e6232409Smrg srcdir=. 1324e6232409Smrgfi 1325e6232409Smrg# Remove unnecessary trailing slashes from srcdir. 1326e6232409Smrg# Double slashes in file names in object file debugging info 1327e6232409Smrg# mess up M-x gdb in Emacs. 1328e6232409Smrgcase $srcdir in 1329e6232409Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1330e6232409Smrgesac 1331e6232409Smrgfor ac_var in $ac_precious_vars; do 1332e6232409Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1333e6232409Smrg eval ac_env_${ac_var}_value=\$${ac_var} 1334e6232409Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1335e6232409Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1336e6232409Smrgdone 1337e6232409Smrg 1338e6232409Smrg# 1339e6232409Smrg# Report the --help message. 1340e6232409Smrg# 1341e6232409Smrgif test "$ac_init_help" = "long"; then 1342e6232409Smrg # Omit some internal or obsolete options to make the list less imposing. 1343e6232409Smrg # This message is too long to be a string in the A/UX 3.1 sh. 1344e6232409Smrg cat <<_ACEOF 13456d1874b2Smrg\`configure' configures xlsfonts 1.0.7 to adapt to many kinds of systems. 1346e6232409Smrg 1347e6232409SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1348e6232409Smrg 1349e6232409SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1350e6232409SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1351e6232409Smrg 1352e6232409SmrgDefaults for the options are specified in brackets. 1353e6232409Smrg 1354e6232409SmrgConfiguration: 1355e6232409Smrg -h, --help display this help and exit 1356e6232409Smrg --help=short display options specific to this package 1357e6232409Smrg --help=recursive display the short help of all the included packages 1358e6232409Smrg -V, --version display version information and exit 135994a251fdSmrg -q, --quiet, --silent do not print \`checking ...' messages 1360e6232409Smrg --cache-file=FILE cache test results in FILE [disabled] 1361e6232409Smrg -C, --config-cache alias for \`--cache-file=config.cache' 1362e6232409Smrg -n, --no-create do not create output files 1363e6232409Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1364e6232409Smrg 1365e6232409SmrgInstallation directories: 1366e6232409Smrg --prefix=PREFIX install architecture-independent files in PREFIX 13678fff3f40Smrg [$ac_default_prefix] 1368e6232409Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13698fff3f40Smrg [PREFIX] 1370e6232409Smrg 1371e6232409SmrgBy default, \`make install' will install all the files in 1372e6232409Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1373e6232409Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1374e6232409Smrgfor instance \`--prefix=\$HOME'. 1375e6232409Smrg 1376e6232409SmrgFor better control, use the options below. 1377e6232409Smrg 1378e6232409SmrgFine tuning of the installation directories: 13798fff3f40Smrg --bindir=DIR user executables [EPREFIX/bin] 13808fff3f40Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 13818fff3f40Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 13828fff3f40Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 13838fff3f40Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 13848fff3f40Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 13856d1874b2Smrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 13868fff3f40Smrg --libdir=DIR object code libraries [EPREFIX/lib] 13878fff3f40Smrg --includedir=DIR C header files [PREFIX/include] 13888fff3f40Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 13898fff3f40Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 13908fff3f40Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 13918fff3f40Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 13928fff3f40Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 13938fff3f40Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 13948fff3f40Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xlsfonts] 13958fff3f40Smrg --htmldir=DIR html documentation [DOCDIR] 13968fff3f40Smrg --dvidir=DIR dvi documentation [DOCDIR] 13978fff3f40Smrg --pdfdir=DIR pdf documentation [DOCDIR] 13988fff3f40Smrg --psdir=DIR ps documentation [DOCDIR] 1399e6232409Smrg_ACEOF 1400e6232409Smrg 1401e6232409Smrg cat <<\_ACEOF 1402e6232409Smrg 1403e6232409SmrgProgram names: 1404e6232409Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 1405e6232409Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 1406e6232409Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1407e6232409Smrg 1408e6232409SmrgSystem types: 1409e6232409Smrg --build=BUILD configure for building on BUILD [guessed] 1410e6232409Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1411e6232409Smrg_ACEOF 1412e6232409Smrgfi 1413e6232409Smrg 1414e6232409Smrgif test -n "$ac_init_help"; then 1415e6232409Smrg case $ac_init_help in 14166d1874b2Smrg short | recursive ) echo "Configuration of xlsfonts 1.0.7:";; 1417e6232409Smrg esac 1418e6232409Smrg cat <<\_ACEOF 1419e6232409Smrg 1420e6232409SmrgOptional Features: 14218fff3f40Smrg --disable-option-checking ignore unrecognized --enable/--with options 1422e6232409Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1423e6232409Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 14246a45684fSmrg --enable-silent-rules less verbose build output (undo: "make V=1") 14256a45684fSmrg --disable-silent-rules verbose build output (undo: "make V=0") 14266a45684fSmrg --enable-dependency-tracking 14276a45684fSmrg do not reject slow dependency extractors 14286a45684fSmrg --disable-dependency-tracking 14296a45684fSmrg speeds up one-time build 143094a251fdSmrg --disable-selective-werror 143194a251fdSmrg Turn off selective compiler errors. (default: 143294a251fdSmrg enabled) 14338fff3f40Smrg --enable-strict-compilation 14348fff3f40Smrg Enable all warnings from compiler and make them 14358fff3f40Smrg errors (default: disabled) 1436e6232409Smrg 1437e6232409SmrgSome influential environment variables: 1438e6232409Smrg CC C compiler command 1439e6232409Smrg CFLAGS C compiler flags 1440e6232409Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1441e6232409Smrg nonstandard directory <lib dir> 14428fff3f40Smrg LIBS libraries to pass to the linker, e.g. -l<library> 14438fff3f40Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1444e6232409Smrg you have headers in a nonstandard directory <include dir> 1445e6232409Smrg PKG_CONFIG path to pkg-config utility 1446c05e7a3eSmrg PKG_CONFIG_PATH 1447c05e7a3eSmrg directories to add to pkg-config's search path 1448c05e7a3eSmrg PKG_CONFIG_LIBDIR 1449c05e7a3eSmrg path overriding pkg-config's built-in search path 1450e6232409Smrg XLSFONTS_CFLAGS 1451e6232409Smrg C compiler flags for XLSFONTS, overriding pkg-config 1452e6232409Smrg XLSFONTS_LIBS 1453e6232409Smrg linker flags for XLSFONTS, overriding pkg-config 1454e6232409Smrg 1455e6232409SmrgUse these variables to override the choices made by `configure' or to help 1456e6232409Smrgit to find libraries and programs with nonstandard names/locations. 1457e6232409Smrg 14586d1874b2SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xlsfonts/issues>. 1459e6232409Smrg_ACEOF 1460e6232409Smrgac_status=$? 1461e6232409Smrgfi 1462e6232409Smrg 1463e6232409Smrgif test "$ac_init_help" = "recursive"; then 1464e6232409Smrg # If there are subdirs, report their specific --help. 1465e6232409Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 14668fff3f40Smrg test -d "$ac_dir" || 14678fff3f40Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 14688fff3f40Smrg continue 1469e6232409Smrg ac_builddir=. 1470e6232409Smrg 1471e6232409Smrgcase "$ac_dir" in 1472e6232409Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1473e6232409Smrg*) 14746d1874b2Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1475e6232409Smrg # A ".." for each directory in $ac_dir_suffix. 14766d1874b2Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1477e6232409Smrg case $ac_top_builddir_sub in 1478e6232409Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479e6232409Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1480e6232409Smrg esac ;; 1481e6232409Smrgesac 1482e6232409Smrgac_abs_top_builddir=$ac_pwd 1483e6232409Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1484e6232409Smrg# for backward compatibility: 1485e6232409Smrgac_top_builddir=$ac_top_build_prefix 1486e6232409Smrg 1487e6232409Smrgcase $srcdir in 1488e6232409Smrg .) # We are building in place. 1489e6232409Smrg ac_srcdir=. 1490e6232409Smrg ac_top_srcdir=$ac_top_builddir_sub 1491e6232409Smrg ac_abs_top_srcdir=$ac_pwd ;; 1492e6232409Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1493e6232409Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1494e6232409Smrg ac_top_srcdir=$srcdir 1495e6232409Smrg ac_abs_top_srcdir=$srcdir ;; 1496e6232409Smrg *) # Relative name. 1497e6232409Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1498e6232409Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1499e6232409Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1500e6232409Smrgesac 1501e6232409Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1502e6232409Smrg 1503e6232409Smrg cd "$ac_dir" || { ac_status=$?; continue; } 15046d1874b2Smrg # Check for configure.gnu first; this name is used for a wrapper for 15056d1874b2Smrg # Metaconfig's "Configure" on case-insensitive file systems. 1506e6232409Smrg if test -f "$ac_srcdir/configure.gnu"; then 1507e6232409Smrg echo && 1508e6232409Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1509e6232409Smrg elif test -f "$ac_srcdir/configure"; then 1510e6232409Smrg echo && 1511e6232409Smrg $SHELL "$ac_srcdir/configure" --help=recursive 1512e6232409Smrg else 15136d1874b2Smrg printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1514e6232409Smrg fi || ac_status=$? 1515e6232409Smrg cd "$ac_pwd" || { ac_status=$?; break; } 1516e6232409Smrg done 1517e6232409Smrgfi 1518e6232409Smrg 1519e6232409Smrgtest -n "$ac_init_help" && exit $ac_status 1520e6232409Smrgif $ac_init_version; then 1521e6232409Smrg cat <<\_ACEOF 15226d1874b2Smrgxlsfonts configure 1.0.7 15236d1874b2Smrggenerated by GNU Autoconf 2.71 1524e6232409Smrg 15256d1874b2SmrgCopyright (C) 2021 Free Software Foundation, Inc. 1526e6232409SmrgThis configure script is free software; the Free Software Foundation 1527e6232409Smrggives unlimited permission to copy, distribute and modify it. 1528e6232409Smrg_ACEOF 1529e6232409Smrg exit 1530e6232409Smrgfi 1531e6232409Smrg 15328fff3f40Smrg## ------------------------ ## 15338fff3f40Smrg## Autoconf initialization. ## 15348fff3f40Smrg## ------------------------ ## 1535e6232409Smrg 15368fff3f40Smrg# ac_fn_c_try_compile LINENO 15378fff3f40Smrg# -------------------------- 15388fff3f40Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 15398fff3f40Smrgac_fn_c_try_compile () 1540e6232409Smrg{ 15418fff3f40Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15426d1874b2Smrg rm -f conftest.$ac_objext conftest.beam 15438fff3f40Smrg if { { ac_try="$ac_compile" 15448fff3f40Smrgcase "(($ac_try" in 15458fff3f40Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15468fff3f40Smrg *) ac_try_echo=$ac_try;; 15478fff3f40Smrgesac 15488fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15496d1874b2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 15508fff3f40Smrg (eval "$ac_compile") 2>conftest.err 15518fff3f40Smrg ac_status=$? 15528fff3f40Smrg if test -s conftest.err; then 15538fff3f40Smrg grep -v '^ *+' conftest.err >conftest.er1 15548fff3f40Smrg cat conftest.er1 >&5 15558fff3f40Smrg mv -f conftest.er1 conftest.err 15568fff3f40Smrg fi 15576d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15588fff3f40Smrg test $ac_status = 0; } && { 15598fff3f40Smrg test -z "$ac_c_werror_flag" || 15608fff3f40Smrg test ! -s conftest.err 15616d1874b2Smrg } && test -s conftest.$ac_objext 15626d1874b2Smrgthen : 15638fff3f40Smrg ac_retval=0 15646d1874b2Smrgelse $as_nop 15656d1874b2Smrg printf "%s\n" "$as_me: failed program was:" >&5 15668fff3f40Smrgsed 's/^/| /' conftest.$ac_ext >&5 15678fff3f40Smrg 15688fff3f40Smrg ac_retval=1 15698fff3f40Smrgfi 157094a251fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15718fff3f40Smrg as_fn_set_status $ac_retval 15728fff3f40Smrg 15738fff3f40Smrg} # ac_fn_c_try_compile 15748fff3f40Smrg 15756d1874b2Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 15766d1874b2Smrg# ------------------------------------------------------------------ 157794a251fdSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 15786d1874b2Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 15796d1874b2Smrgac_fn_check_decl () 15808fff3f40Smrg{ 15818fff3f40Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 158294a251fdSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 15836d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 15846d1874b2Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; } 15856d1874b2Smrgif eval test \${$3+y} 15866d1874b2Smrgthen : 15876d1874b2Smrg printf %s "(cached) " >&6 15886d1874b2Smrgelse $as_nop 158994a251fdSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 15906d1874b2Smrg eval ac_save_FLAGS=\$$6 15916d1874b2Smrg as_fn_append $6 " $5" 15928fff3f40Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15938fff3f40Smrg/* end confdefs.h. */ 15948fff3f40Smrg$4 15958fff3f40Smrgint 15966d1874b2Smrgmain (void) 15978fff3f40Smrg{ 159894a251fdSmrg#ifndef $as_decl_name 159994a251fdSmrg#ifdef __cplusplus 160094a251fdSmrg (void) $as_decl_use; 160194a251fdSmrg#else 160294a251fdSmrg (void) $as_decl_name; 160394a251fdSmrg#endif 16048fff3f40Smrg#endif 16058fff3f40Smrg 16068fff3f40Smrg ; 16078fff3f40Smrg return 0; 16088fff3f40Smrg} 16098fff3f40Smrg_ACEOF 16106d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 16116d1874b2Smrgthen : 16128fff3f40Smrg eval "$3=yes" 16136d1874b2Smrgelse $as_nop 16148fff3f40Smrg eval "$3=no" 16158fff3f40Smrgfi 16166d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16176d1874b2Smrg eval $6=\$ac_save_FLAGS 16188fff3f40Smrg 16198fff3f40Smrgfi 16206d1874b2Smrgeval ac_res=\$$3 16216d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16226d1874b2Smrgprintf "%s\n" "$ac_res" >&6; } 162394a251fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16248fff3f40Smrg 16256d1874b2Smrg} # ac_fn_check_decl 16268fff3f40Smrg 16278fff3f40Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 16288fff3f40Smrg# ------------------------------------------------------- 16298fff3f40Smrg# Tests whether HEADER exists and can be compiled using the include files in 16308fff3f40Smrg# INCLUDES, setting the cache variable VAR accordingly. 16318fff3f40Smrgac_fn_c_check_header_compile () 16328fff3f40Smrg{ 16338fff3f40Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16346d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16356d1874b2Smrgprintf %s "checking for $2... " >&6; } 16366d1874b2Smrgif eval test \${$3+y} 16376d1874b2Smrgthen : 16386d1874b2Smrg printf %s "(cached) " >&6 16396d1874b2Smrgelse $as_nop 16408fff3f40Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16418fff3f40Smrg/* end confdefs.h. */ 16428fff3f40Smrg$4 16438fff3f40Smrg#include <$2> 16448fff3f40Smrg_ACEOF 16456d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 16466d1874b2Smrgthen : 16478fff3f40Smrg eval "$3=yes" 16486d1874b2Smrgelse $as_nop 16498fff3f40Smrg eval "$3=no" 16508fff3f40Smrgfi 16516d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16528fff3f40Smrgfi 16538fff3f40Smrgeval ac_res=\$$3 16546d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16556d1874b2Smrgprintf "%s\n" "$ac_res" >&6; } 165694a251fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16578fff3f40Smrg 16588fff3f40Smrg} # ac_fn_c_check_header_compile 165994a251fdSmrg 166094a251fdSmrg# ac_fn_c_try_link LINENO 166194a251fdSmrg# ----------------------- 166294a251fdSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 166394a251fdSmrgac_fn_c_try_link () 166494a251fdSmrg{ 166594a251fdSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16666d1874b2Smrg rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 166794a251fdSmrg if { { ac_try="$ac_link" 166894a251fdSmrgcase "(($ac_try" in 166994a251fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 167094a251fdSmrg *) ac_try_echo=$ac_try;; 167194a251fdSmrgesac 167294a251fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16736d1874b2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 167494a251fdSmrg (eval "$ac_link") 2>conftest.err 167594a251fdSmrg ac_status=$? 167694a251fdSmrg if test -s conftest.err; then 167794a251fdSmrg grep -v '^ *+' conftest.err >conftest.er1 167894a251fdSmrg cat conftest.er1 >&5 167994a251fdSmrg mv -f conftest.er1 conftest.err 168094a251fdSmrg fi 16816d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 168294a251fdSmrg test $ac_status = 0; } && { 168394a251fdSmrg test -z "$ac_c_werror_flag" || 168494a251fdSmrg test ! -s conftest.err 168594a251fdSmrg } && test -s conftest$ac_exeext && { 168694a251fdSmrg test "$cross_compiling" = yes || 16876a45684fSmrg test -x conftest$ac_exeext 16886d1874b2Smrg } 16896d1874b2Smrgthen : 169094a251fdSmrg ac_retval=0 16916d1874b2Smrgelse $as_nop 16926d1874b2Smrg printf "%s\n" "$as_me: failed program was:" >&5 169394a251fdSmrgsed 's/^/| /' conftest.$ac_ext >&5 169494a251fdSmrg 169594a251fdSmrg ac_retval=1 169694a251fdSmrgfi 169794a251fdSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 169894a251fdSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 169994a251fdSmrg # interfere with the next link command; also delete a directory that is 170094a251fdSmrg # left behind by Apple's compiler. We do this before executing the actions. 170194a251fdSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 170294a251fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 170394a251fdSmrg as_fn_set_status $ac_retval 170494a251fdSmrg 170594a251fdSmrg} # ac_fn_c_try_link 17066d1874b2Smrgac_configure_args_raw= 17076d1874b2Smrgfor ac_arg 17086d1874b2Smrgdo 17096d1874b2Smrg case $ac_arg in 17106d1874b2Smrg *\'*) 17116d1874b2Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 17126d1874b2Smrg esac 17136d1874b2Smrg as_fn_append ac_configure_args_raw " '$ac_arg'" 17146d1874b2Smrgdone 17156d1874b2Smrg 17166d1874b2Smrgcase $ac_configure_args_raw in 17176d1874b2Smrg *$as_nl*) 17186d1874b2Smrg ac_safe_unquote= ;; 17196d1874b2Smrg *) 17206d1874b2Smrg ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 17216d1874b2Smrg ac_unsafe_a="$ac_unsafe_z#~" 17226d1874b2Smrg ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 17236d1874b2Smrg ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 17246d1874b2Smrgesac 17256d1874b2Smrg 17268fff3f40Smrgcat >config.log <<_ACEOF 17278fff3f40SmrgThis file contains any messages produced by compilers while 17288fff3f40Smrgrunning configure, to aid debugging if configure makes a mistake. 17298fff3f40Smrg 17306d1874b2SmrgIt was created by xlsfonts $as_me 1.0.7, which was 17316d1874b2Smrggenerated by GNU Autoconf 2.71. Invocation command line was 17328fff3f40Smrg 17336d1874b2Smrg $ $0$ac_configure_args_raw 17348fff3f40Smrg 17358fff3f40Smrg_ACEOF 17368fff3f40Smrgexec 5>>config.log 17378fff3f40Smrg{ 17388fff3f40Smrgcat <<_ASUNAME 17398fff3f40Smrg## --------- ## 17408fff3f40Smrg## Platform. ## 17418fff3f40Smrg## --------- ## 17428fff3f40Smrg 17438fff3f40Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 17448fff3f40Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 17458fff3f40Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 17468fff3f40Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 17478fff3f40Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1748e6232409Smrg 1749e6232409Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1750e6232409Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1751e6232409Smrg 1752e6232409Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1753e6232409Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1754e6232409Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1755e6232409Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1756e6232409Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1757e6232409Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1758e6232409Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1759e6232409Smrg 1760e6232409Smrg_ASUNAME 1761e6232409Smrg 1762e6232409Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1763e6232409Smrgfor as_dir in $PATH 1764e6232409Smrgdo 1765e6232409Smrg IFS=$as_save_IFS 17666d1874b2Smrg case $as_dir in #((( 17676d1874b2Smrg '') as_dir=./ ;; 17686d1874b2Smrg */) ;; 17696d1874b2Smrg *) as_dir=$as_dir/ ;; 17706d1874b2Smrg esac 17716d1874b2Smrg printf "%s\n" "PATH: $as_dir" 17728fff3f40Smrg done 1773e6232409SmrgIFS=$as_save_IFS 1774e6232409Smrg 1775e6232409Smrg} >&5 1776e6232409Smrg 1777e6232409Smrgcat >&5 <<_ACEOF 1778e6232409Smrg 1779e6232409Smrg 1780e6232409Smrg## ----------- ## 1781e6232409Smrg## Core tests. ## 1782e6232409Smrg## ----------- ## 1783e6232409Smrg 1784e6232409Smrg_ACEOF 1785e6232409Smrg 1786e6232409Smrg 1787e6232409Smrg# Keep a trace of the command line. 1788e6232409Smrg# Strip out --no-create and --no-recursion so they do not pile up. 1789e6232409Smrg# Strip out --silent because we don't want to record it for future runs. 1790e6232409Smrg# Also quote any args containing shell meta-characters. 1791e6232409Smrg# Make two passes to allow for proper duplicate-argument suppression. 1792e6232409Smrgac_configure_args= 1793e6232409Smrgac_configure_args0= 1794e6232409Smrgac_configure_args1= 1795e6232409Smrgac_must_keep_next=false 1796e6232409Smrgfor ac_pass in 1 2 1797e6232409Smrgdo 1798e6232409Smrg for ac_arg 1799e6232409Smrg do 1800e6232409Smrg case $ac_arg in 1801e6232409Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1802e6232409Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1803e6232409Smrg | -silent | --silent | --silen | --sile | --sil) 1804e6232409Smrg continue ;; 1805e6232409Smrg *\'*) 18066d1874b2Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1807e6232409Smrg esac 1808e6232409Smrg case $ac_pass in 18098fff3f40Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1810e6232409Smrg 2) 18118fff3f40Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 1812e6232409Smrg if test $ac_must_keep_next = true; then 1813e6232409Smrg ac_must_keep_next=false # Got value, back to normal. 1814e6232409Smrg else 1815e6232409Smrg case $ac_arg in 1816e6232409Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1817e6232409Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1818e6232409Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1819e6232409Smrg | -with-* | --with-* | -without-* | --without-* | --x) 1820e6232409Smrg case "$ac_configure_args0 " in 1821e6232409Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1822e6232409Smrg esac 1823e6232409Smrg ;; 1824e6232409Smrg -* ) ac_must_keep_next=true ;; 1825e6232409Smrg esac 1826e6232409Smrg fi 18278fff3f40Smrg as_fn_append ac_configure_args " '$ac_arg'" 1828e6232409Smrg ;; 1829e6232409Smrg esac 1830e6232409Smrg done 1831e6232409Smrgdone 18328fff3f40Smrg{ ac_configure_args0=; unset ac_configure_args0;} 18338fff3f40Smrg{ ac_configure_args1=; unset ac_configure_args1;} 1834e6232409Smrg 1835e6232409Smrg# When interrupted or exit'd, cleanup temporary files, and complete 1836e6232409Smrg# config.log. We remove comments because anyway the quotes in there 1837e6232409Smrg# would cause problems or look ugly. 1838e6232409Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1839e6232409Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1840e6232409Smrgtrap 'exit_status=$? 18416d1874b2Smrg # Sanitize IFS. 18426d1874b2Smrg IFS=" "" $as_nl" 1843e6232409Smrg # Save into config.log some information that might help in debugging. 1844e6232409Smrg { 1845e6232409Smrg echo 1846e6232409Smrg 18476d1874b2Smrg printf "%s\n" "## ---------------- ## 1848e6232409Smrg## Cache variables. ## 184994a251fdSmrg## ---------------- ##" 1850e6232409Smrg echo 1851e6232409Smrg # The following way of writing the cache mishandles newlines in values, 1852e6232409Smrg( 1853e6232409Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1854e6232409Smrg eval ac_val=\$$ac_var 1855e6232409Smrg case $ac_val in #( 1856e6232409Smrg *${as_nl}*) 1857e6232409Smrg case $ac_var in #( 18586d1874b2Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18596d1874b2Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1860e6232409Smrg esac 1861e6232409Smrg case $ac_var in #( 1862e6232409Smrg _ | IFS | as_nl) ;; #( 18638fff3f40Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18648fff3f40Smrg *) { eval $ac_var=; unset $ac_var;} ;; 1865e6232409Smrg esac ;; 1866e6232409Smrg esac 1867e6232409Smrg done 1868e6232409Smrg (set) 2>&1 | 1869e6232409Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1870e6232409Smrg *${as_nl}ac_space=\ *) 1871e6232409Smrg sed -n \ 1872e6232409Smrg "s/'\''/'\''\\\\'\'''\''/g; 1873e6232409Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1874e6232409Smrg ;; #( 1875e6232409Smrg *) 1876e6232409Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1877e6232409Smrg ;; 1878e6232409Smrg esac | 1879e6232409Smrg sort 1880e6232409Smrg) 1881e6232409Smrg echo 1882e6232409Smrg 18836d1874b2Smrg printf "%s\n" "## ----------------- ## 1884e6232409Smrg## Output variables. ## 188594a251fdSmrg## ----------------- ##" 1886e6232409Smrg echo 1887e6232409Smrg for ac_var in $ac_subst_vars 1888e6232409Smrg do 1889e6232409Smrg eval ac_val=\$$ac_var 1890e6232409Smrg case $ac_val in 18916d1874b2Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1892e6232409Smrg esac 18936d1874b2Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 1894e6232409Smrg done | sort 1895e6232409Smrg echo 1896e6232409Smrg 1897e6232409Smrg if test -n "$ac_subst_files"; then 18986d1874b2Smrg printf "%s\n" "## ------------------- ## 1899e6232409Smrg## File substitutions. ## 190094a251fdSmrg## ------------------- ##" 1901e6232409Smrg echo 1902e6232409Smrg for ac_var in $ac_subst_files 1903e6232409Smrg do 1904e6232409Smrg eval ac_val=\$$ac_var 1905e6232409Smrg case $ac_val in 19066d1874b2Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1907e6232409Smrg esac 19086d1874b2Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 1909e6232409Smrg done | sort 1910e6232409Smrg echo 1911e6232409Smrg fi 1912e6232409Smrg 1913e6232409Smrg if test -s confdefs.h; then 19146d1874b2Smrg printf "%s\n" "## ----------- ## 1915e6232409Smrg## confdefs.h. ## 191694a251fdSmrg## ----------- ##" 1917e6232409Smrg echo 1918e6232409Smrg cat confdefs.h 1919e6232409Smrg echo 1920e6232409Smrg fi 1921e6232409Smrg test "$ac_signal" != 0 && 19226d1874b2Smrg printf "%s\n" "$as_me: caught signal $ac_signal" 19236d1874b2Smrg printf "%s\n" "$as_me: exit $exit_status" 1924e6232409Smrg } >&5 1925e6232409Smrg rm -f core *.core core.conftest.* && 1926e6232409Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1927e6232409Smrg exit $exit_status 1928e6232409Smrg' 0 1929e6232409Smrgfor ac_signal in 1 2 13 15; do 19308fff3f40Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1931e6232409Smrgdone 1932e6232409Smrgac_signal=0 1933e6232409Smrg 1934e6232409Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 1935e6232409Smrgrm -f -r conftest* confdefs.h 1936e6232409Smrg 19376d1874b2Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h 19388fff3f40Smrg 1939e6232409Smrg# Predefined preprocessor variables. 1940e6232409Smrg 19416d1874b2Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1942e6232409Smrg 19436d1874b2Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1944e6232409Smrg 19456d1874b2Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1946e6232409Smrg 19476d1874b2Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1948e6232409Smrg 19496d1874b2Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1950e6232409Smrg 19516d1874b2Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 19528fff3f40Smrg 1953e6232409Smrg 1954e6232409Smrg# Let the site file select an alternate cache file if it wants to. 19558fff3f40Smrg# Prefer an explicitly selected file to automatically selected ones. 1956e6232409Smrgif test -n "$CONFIG_SITE"; then 19576d1874b2Smrg ac_site_files="$CONFIG_SITE" 1958e6232409Smrgelif test "x$prefix" != xNONE; then 19596d1874b2Smrg ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1960e6232409Smrgelse 19616d1874b2Smrg ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1962e6232409Smrgfi 19636d1874b2Smrg 19646d1874b2Smrgfor ac_site_file in $ac_site_files 1965e6232409Smrgdo 19666d1874b2Smrg case $ac_site_file in #( 19676d1874b2Smrg */*) : 19686d1874b2Smrg ;; #( 19696d1874b2Smrg *) : 19706d1874b2Smrg ac_site_file=./$ac_site_file ;; 19716d1874b2Smrgesac 19726d1874b2Smrg if test -f "$ac_site_file" && test -r "$ac_site_file"; then 19736d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 19746d1874b2Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1975e6232409Smrg sed 's/^/| /' "$ac_site_file" >&5 197694a251fdSmrg . "$ac_site_file" \ 19776d1874b2Smrg || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19786d1874b2Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 197994a251fdSmrgas_fn_error $? "failed to load site script $ac_site_file 198094a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 1981e6232409Smrg fi 1982e6232409Smrgdone 1983e6232409Smrg 1984e6232409Smrgif test -r "$cache_file"; then 19858fff3f40Smrg # Some versions of bash will fail to source /dev/null (special files 19868fff3f40Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 19878fff3f40Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 19886d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 19896d1874b2Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;} 1990e6232409Smrg case $cache_file in 1991e6232409Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 1992e6232409Smrg *) . "./$cache_file";; 1993e6232409Smrg esac 1994e6232409Smrg fi 1995e6232409Smrgelse 19966d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 19976d1874b2Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;} 1998e6232409Smrg >$cache_file 1999e6232409Smrgfi 2000e6232409Smrg 20016d1874b2Smrg# Test code for whether the C compiler supports C89 (global declarations) 20026d1874b2Smrgac_c_conftest_c89_globals=' 20036d1874b2Smrg/* Does the compiler advertise C89 conformance? 20046d1874b2Smrg Do not test the value of __STDC__, because some compilers set it to 0 20056d1874b2Smrg while being otherwise adequately conformant. */ 20066d1874b2Smrg#if !defined __STDC__ 20076d1874b2Smrg# error "Compiler does not advertise C89 conformance" 20086d1874b2Smrg#endif 2009e6232409Smrg 20106d1874b2Smrg#include <stddef.h> 20116d1874b2Smrg#include <stdarg.h> 20126d1874b2Smrgstruct stat; 20136d1874b2Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 20146d1874b2Smrgstruct buf { int x; }; 20156d1874b2Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int); 20166d1874b2Smrgstatic char *e (p, i) 20176d1874b2Smrg char **p; 20186d1874b2Smrg int i; 20196d1874b2Smrg{ 20206d1874b2Smrg return p[i]; 20216d1874b2Smrg} 20226d1874b2Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 20236d1874b2Smrg{ 20246d1874b2Smrg char *s; 20256d1874b2Smrg va_list v; 20266d1874b2Smrg va_start (v,p); 20276d1874b2Smrg s = g (p, va_arg (v,int)); 20286d1874b2Smrg va_end (v); 20296d1874b2Smrg return s; 20306d1874b2Smrg} 20316a45684fSmrg 20326d1874b2Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20336d1874b2Smrg function prototypes and stuff, but not \xHH hex character constants. 20346d1874b2Smrg These do not provoke an error unfortunately, instead are silently treated 20356d1874b2Smrg as an "x". The following induces an error, until -std is added to get 20366d1874b2Smrg proper ANSI mode. Curiously \x00 != x always comes out true, for an 20376d1874b2Smrg array size at least. It is necessary to write \x00 == 0 to get something 20386d1874b2Smrg that is true only with -std. */ 20396d1874b2Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 20406a45684fSmrg 20416d1874b2Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20426d1874b2Smrg inside strings and character constants. */ 20436d1874b2Smrg#define FOO(x) '\''x'\'' 20446d1874b2Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 20456a45684fSmrg 20466d1874b2Smrgint test (int i, double x); 20476d1874b2Smrgstruct s1 {int (*f) (int a);}; 20486d1874b2Smrgstruct s2 {int (*f) (double a);}; 20496d1874b2Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 20506d1874b2Smrg int, int);' 20518fff3f40Smrg 20526d1874b2Smrg# Test code for whether the C compiler supports C89 (body of main). 20536d1874b2Smrgac_c_conftest_c89_main=' 20546d1874b2Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 20556d1874b2Smrg' 2056e6232409Smrg 20576d1874b2Smrg# Test code for whether the C compiler supports C99 (global declarations) 20586d1874b2Smrgac_c_conftest_c99_globals=' 20596d1874b2Smrg// Does the compiler advertise C99 conformance? 20606d1874b2Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 20616d1874b2Smrg# error "Compiler does not advertise C99 conformance" 20626d1874b2Smrg#endif 2063e6232409Smrg 20646d1874b2Smrg#include <stdbool.h> 20656d1874b2Smrgextern int puts (const char *); 20666d1874b2Smrgextern int printf (const char *, ...); 20676d1874b2Smrgextern int dprintf (int, const char *, ...); 20686d1874b2Smrgextern void *malloc (size_t); 2069e6232409Smrg 20706d1874b2Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 20716d1874b2Smrg// dprintf is used instead of fprintf to avoid needing to declare 20726d1874b2Smrg// FILE and stderr. 20736d1874b2Smrg#define debug(...) dprintf (2, __VA_ARGS__) 20746d1874b2Smrg#define showlist(...) puts (#__VA_ARGS__) 20756d1874b2Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 20766d1874b2Smrgstatic void 20776d1874b2Smrgtest_varargs_macros (void) 20786d1874b2Smrg{ 20796d1874b2Smrg int x = 1234; 20806d1874b2Smrg int y = 5678; 20816d1874b2Smrg debug ("Flag"); 20826d1874b2Smrg debug ("X = %d\n", x); 20836d1874b2Smrg showlist (The first, second, and third items.); 20846d1874b2Smrg report (x>y, "x is %d but y is %d", x, y); 20856d1874b2Smrg} 20866d1874b2Smrg 20876d1874b2Smrg// Check long long types. 20886d1874b2Smrg#define BIG64 18446744073709551615ull 20896d1874b2Smrg#define BIG32 4294967295ul 20906d1874b2Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 20916d1874b2Smrg#if !BIG_OK 20926d1874b2Smrg #error "your preprocessor is broken" 20936d1874b2Smrg#endif 20946d1874b2Smrg#if BIG_OK 20956d1874b2Smrg#else 20966d1874b2Smrg #error "your preprocessor is broken" 20976d1874b2Smrg#endif 20986d1874b2Smrgstatic long long int bignum = -9223372036854775807LL; 20996d1874b2Smrgstatic unsigned long long int ubignum = BIG64; 21006d1874b2Smrg 21016d1874b2Smrgstruct incomplete_array 21026d1874b2Smrg{ 21036d1874b2Smrg int datasize; 21046d1874b2Smrg double data[]; 21056d1874b2Smrg}; 21066d1874b2Smrg 21076d1874b2Smrgstruct named_init { 21086d1874b2Smrg int number; 21096d1874b2Smrg const wchar_t *name; 21106d1874b2Smrg double average; 21116d1874b2Smrg}; 21126d1874b2Smrg 21136d1874b2Smrgtypedef const char *ccp; 21146d1874b2Smrg 21156d1874b2Smrgstatic inline int 21166d1874b2Smrgtest_restrict (ccp restrict text) 21176d1874b2Smrg{ 21186d1874b2Smrg // See if C++-style comments work. 21196d1874b2Smrg // Iterate through items via the restricted pointer. 21206d1874b2Smrg // Also check for declarations in for loops. 21216d1874b2Smrg for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 21226d1874b2Smrg continue; 21236d1874b2Smrg return 0; 21246d1874b2Smrg} 21256d1874b2Smrg 21266d1874b2Smrg// Check varargs and va_copy. 21276d1874b2Smrgstatic bool 21286d1874b2Smrgtest_varargs (const char *format, ...) 21296d1874b2Smrg{ 21306d1874b2Smrg va_list args; 21316d1874b2Smrg va_start (args, format); 21326d1874b2Smrg va_list args_copy; 21336d1874b2Smrg va_copy (args_copy, args); 21346d1874b2Smrg 21356d1874b2Smrg const char *str = ""; 21366d1874b2Smrg int number = 0; 21376d1874b2Smrg float fnumber = 0; 21386d1874b2Smrg 21396d1874b2Smrg while (*format) 21406d1874b2Smrg { 21416d1874b2Smrg switch (*format++) 21426d1874b2Smrg { 21436d1874b2Smrg case '\''s'\'': // string 21446d1874b2Smrg str = va_arg (args_copy, const char *); 21456d1874b2Smrg break; 21466d1874b2Smrg case '\''d'\'': // int 21476d1874b2Smrg number = va_arg (args_copy, int); 21486d1874b2Smrg break; 21496d1874b2Smrg case '\''f'\'': // float 21506d1874b2Smrg fnumber = va_arg (args_copy, double); 21516d1874b2Smrg break; 21526d1874b2Smrg default: 21536d1874b2Smrg break; 21546d1874b2Smrg } 21556d1874b2Smrg } 21566d1874b2Smrg va_end (args_copy); 21576d1874b2Smrg va_end (args); 21586d1874b2Smrg 21596d1874b2Smrg return *str && number && fnumber; 21606d1874b2Smrg} 21616d1874b2Smrg' 21626d1874b2Smrg 21636d1874b2Smrg# Test code for whether the C compiler supports C99 (body of main). 21646d1874b2Smrgac_c_conftest_c99_main=' 21656d1874b2Smrg // Check bool. 21666d1874b2Smrg _Bool success = false; 21676d1874b2Smrg success |= (argc != 0); 21686d1874b2Smrg 21696d1874b2Smrg // Check restrict. 21706d1874b2Smrg if (test_restrict ("String literal") == 0) 21716d1874b2Smrg success = true; 21726d1874b2Smrg char *restrict newvar = "Another string"; 21736d1874b2Smrg 21746d1874b2Smrg // Check varargs. 21756d1874b2Smrg success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 21766d1874b2Smrg test_varargs_macros (); 21776d1874b2Smrg 21786d1874b2Smrg // Check flexible array members. 21796d1874b2Smrg struct incomplete_array *ia = 21806d1874b2Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 21816d1874b2Smrg ia->datasize = 10; 21826d1874b2Smrg for (int i = 0; i < ia->datasize; ++i) 21836d1874b2Smrg ia->data[i] = i * 1.234; 21846d1874b2Smrg 21856d1874b2Smrg // Check named initializers. 21866d1874b2Smrg struct named_init ni = { 21876d1874b2Smrg .number = 34, 21886d1874b2Smrg .name = L"Test wide string", 21896d1874b2Smrg .average = 543.34343, 21906d1874b2Smrg }; 21916d1874b2Smrg 21926d1874b2Smrg ni.number = 58; 21936d1874b2Smrg 21946d1874b2Smrg int dynamic_array[ni.number]; 21956d1874b2Smrg dynamic_array[0] = argv[0][0]; 21966d1874b2Smrg dynamic_array[ni.number - 1] = 543; 21976d1874b2Smrg 21986d1874b2Smrg // work around unused variable warnings 21996d1874b2Smrg ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 22006d1874b2Smrg || dynamic_array[ni.number - 1] != 543); 22016d1874b2Smrg' 22026d1874b2Smrg 22036d1874b2Smrg# Test code for whether the C compiler supports C11 (global declarations) 22046d1874b2Smrgac_c_conftest_c11_globals=' 22056d1874b2Smrg// Does the compiler advertise C11 conformance? 22066d1874b2Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 22076d1874b2Smrg# error "Compiler does not advertise C11 conformance" 22086d1874b2Smrg#endif 22096d1874b2Smrg 22106d1874b2Smrg// Check _Alignas. 22116d1874b2Smrgchar _Alignas (double) aligned_as_double; 22126d1874b2Smrgchar _Alignas (0) no_special_alignment; 22136d1874b2Smrgextern char aligned_as_int; 22146d1874b2Smrgchar _Alignas (0) _Alignas (int) aligned_as_int; 22156d1874b2Smrg 22166d1874b2Smrg// Check _Alignof. 22176d1874b2Smrgenum 22186d1874b2Smrg{ 22196d1874b2Smrg int_alignment = _Alignof (int), 22206d1874b2Smrg int_array_alignment = _Alignof (int[100]), 22216d1874b2Smrg char_alignment = _Alignof (char) 22226d1874b2Smrg}; 22236d1874b2Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 22246d1874b2Smrg 22256d1874b2Smrg// Check _Noreturn. 22266d1874b2Smrgint _Noreturn does_not_return (void) { for (;;) continue; } 22276d1874b2Smrg 22286d1874b2Smrg// Check _Static_assert. 22296d1874b2Smrgstruct test_static_assert 22306d1874b2Smrg{ 22316d1874b2Smrg int x; 22326d1874b2Smrg _Static_assert (sizeof (int) <= sizeof (long int), 22336d1874b2Smrg "_Static_assert does not work in struct"); 22346d1874b2Smrg long int y; 22356d1874b2Smrg}; 22366d1874b2Smrg 22376d1874b2Smrg// Check UTF-8 literals. 22386d1874b2Smrg#define u8 syntax error! 22396d1874b2Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string"; 22406d1874b2Smrg 22416d1874b2Smrg// Check duplicate typedefs. 22426d1874b2Smrgtypedef long *long_ptr; 22436d1874b2Smrgtypedef long int *long_ptr; 22446d1874b2Smrgtypedef long_ptr long_ptr; 22456d1874b2Smrg 22466d1874b2Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 22476d1874b2Smrgstruct anonymous 22486d1874b2Smrg{ 22496d1874b2Smrg union { 22506d1874b2Smrg struct { int i; int j; }; 22516d1874b2Smrg struct { int k; long int l; } w; 22526d1874b2Smrg }; 22536d1874b2Smrg int m; 22546d1874b2Smrg} v1; 22556d1874b2Smrg' 22566d1874b2Smrg 22576d1874b2Smrg# Test code for whether the C compiler supports C11 (body of main). 22586d1874b2Smrgac_c_conftest_c11_main=' 22596d1874b2Smrg _Static_assert ((offsetof (struct anonymous, i) 22606d1874b2Smrg == offsetof (struct anonymous, w.k)), 22616d1874b2Smrg "Anonymous union alignment botch"); 22626d1874b2Smrg v1.i = 2; 22636d1874b2Smrg v1.w.k = 5; 22646d1874b2Smrg ok |= v1.i != 5; 22656d1874b2Smrg' 22666d1874b2Smrg 22676d1874b2Smrg# Test code for whether the C compiler supports C11 (complete). 22686d1874b2Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 22696d1874b2Smrg${ac_c_conftest_c99_globals} 22706d1874b2Smrg${ac_c_conftest_c11_globals} 22716d1874b2Smrg 22726d1874b2Smrgint 22736d1874b2Smrgmain (int argc, char **argv) 22746d1874b2Smrg{ 22756d1874b2Smrg int ok = 0; 22766d1874b2Smrg ${ac_c_conftest_c89_main} 22776d1874b2Smrg ${ac_c_conftest_c99_main} 22786d1874b2Smrg ${ac_c_conftest_c11_main} 22796d1874b2Smrg return ok; 22806d1874b2Smrg} 22816d1874b2Smrg" 22826d1874b2Smrg 22836d1874b2Smrg# Test code for whether the C compiler supports C99 (complete). 22846d1874b2Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 22856d1874b2Smrg${ac_c_conftest_c99_globals} 22866d1874b2Smrg 22876d1874b2Smrgint 22886d1874b2Smrgmain (int argc, char **argv) 22896d1874b2Smrg{ 22906d1874b2Smrg int ok = 0; 22916d1874b2Smrg ${ac_c_conftest_c89_main} 22926d1874b2Smrg ${ac_c_conftest_c99_main} 22936d1874b2Smrg return ok; 22946d1874b2Smrg} 22956d1874b2Smrg" 22966d1874b2Smrg 22976d1874b2Smrg# Test code for whether the C compiler supports C89 (complete). 22986d1874b2Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 22996d1874b2Smrg 23006d1874b2Smrgint 23016d1874b2Smrgmain (int argc, char **argv) 23026d1874b2Smrg{ 23036d1874b2Smrg int ok = 0; 23046d1874b2Smrg ${ac_c_conftest_c89_main} 23056d1874b2Smrg return ok; 23066d1874b2Smrg} 23076d1874b2Smrg" 23086d1874b2Smrg 23096d1874b2Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 23106d1874b2Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 23116d1874b2Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 23126d1874b2Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 23136d1874b2Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 23146d1874b2Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 23156d1874b2Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 23166d1874b2Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 23176d1874b2Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 23186d1874b2Smrg 23196d1874b2Smrg# Auxiliary files required by this configure script. 23206d1874b2Smrgac_aux_files="config.guess config.sub compile missing install-sh" 23216d1874b2Smrg 23226d1874b2Smrg# Locations in which to look for auxiliary files. 23236d1874b2Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 23246d1874b2Smrg 23256d1874b2Smrg# Search for a directory containing all of the required auxiliary files, 23266d1874b2Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 23276d1874b2Smrg# If we don't find one directory that contains all the files we need, 23286d1874b2Smrg# we report the set of missing files from the *first* directory in 23296d1874b2Smrg# $ac_aux_dir_candidates and give up. 23306d1874b2Smrgac_missing_aux_files="" 23316d1874b2Smrgac_first_candidate=: 23326d1874b2Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 23336d1874b2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23346d1874b2Smrgas_found=false 23356d1874b2Smrgfor as_dir in $ac_aux_dir_candidates 23366d1874b2Smrgdo 23376d1874b2Smrg IFS=$as_save_IFS 23386d1874b2Smrg case $as_dir in #((( 23396d1874b2Smrg '') as_dir=./ ;; 23406d1874b2Smrg */) ;; 23416d1874b2Smrg *) as_dir=$as_dir/ ;; 23426d1874b2Smrg esac 23436d1874b2Smrg as_found=: 23446d1874b2Smrg 23456d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 23466d1874b2Smrg ac_aux_dir_found=yes 23476d1874b2Smrg ac_install_sh= 23486d1874b2Smrg for ac_aux in $ac_aux_files 23496d1874b2Smrg do 23506d1874b2Smrg # As a special case, if "install-sh" is required, that requirement 23516d1874b2Smrg # can be satisfied by any of "install-sh", "install.sh", or "shtool", 23526d1874b2Smrg # and $ac_install_sh is set appropriately for whichever one is found. 23536d1874b2Smrg if test x"$ac_aux" = x"install-sh" 23546d1874b2Smrg then 23556d1874b2Smrg if test -f "${as_dir}install-sh"; then 23566d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 23576d1874b2Smrg ac_install_sh="${as_dir}install-sh -c" 23586d1874b2Smrg elif test -f "${as_dir}install.sh"; then 23596d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 23606d1874b2Smrg ac_install_sh="${as_dir}install.sh -c" 23616d1874b2Smrg elif test -f "${as_dir}shtool"; then 23626d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 23636d1874b2Smrg ac_install_sh="${as_dir}shtool install -c" 23646d1874b2Smrg else 23656d1874b2Smrg ac_aux_dir_found=no 23666d1874b2Smrg if $ac_first_candidate; then 23676d1874b2Smrg ac_missing_aux_files="${ac_missing_aux_files} install-sh" 23686d1874b2Smrg else 23696d1874b2Smrg break 23706d1874b2Smrg fi 23716d1874b2Smrg fi 23726d1874b2Smrg else 23736d1874b2Smrg if test -f "${as_dir}${ac_aux}"; then 23746d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 23756d1874b2Smrg else 23766d1874b2Smrg ac_aux_dir_found=no 23776d1874b2Smrg if $ac_first_candidate; then 23786d1874b2Smrg ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 23796d1874b2Smrg else 23806d1874b2Smrg break 23816d1874b2Smrg fi 23826d1874b2Smrg fi 23836d1874b2Smrg fi 23846d1874b2Smrg done 23856d1874b2Smrg if test "$ac_aux_dir_found" = yes; then 23866d1874b2Smrg ac_aux_dir="$as_dir" 23876d1874b2Smrg break 23886d1874b2Smrg fi 23896d1874b2Smrg ac_first_candidate=false 23906d1874b2Smrg 23916d1874b2Smrg as_found=false 23926d1874b2Smrgdone 23936d1874b2SmrgIFS=$as_save_IFS 23946d1874b2Smrgif $as_found 23956d1874b2Smrgthen : 23966d1874b2Smrg 23976d1874b2Smrgelse $as_nop 23986d1874b2Smrg as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 23996d1874b2Smrgfi 24006d1874b2Smrg 24016d1874b2Smrg 24026d1874b2Smrg# These three variables are undocumented and unsupported, 24036d1874b2Smrg# and are intended to be withdrawn in a future Autoconf release. 24046d1874b2Smrg# They can cause serious problems if a builder's source tree is in a directory 24056d1874b2Smrg# whose full name contains unusual characters. 24066d1874b2Smrgif test -f "${ac_aux_dir}config.guess"; then 24076d1874b2Smrg ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 24086d1874b2Smrgfi 24096d1874b2Smrgif test -f "${ac_aux_dir}config.sub"; then 24106d1874b2Smrg ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 24116d1874b2Smrgfi 24126d1874b2Smrgif test -f "$ac_aux_dir/configure"; then 24136d1874b2Smrg ac_configure="$SHELL ${ac_aux_dir}configure" 24146d1874b2Smrgfi 24156d1874b2Smrg 24166d1874b2Smrg# Check that the precious variables saved in the cache have kept the same 24176d1874b2Smrg# value. 24186d1874b2Smrgac_cache_corrupted=false 24196d1874b2Smrgfor ac_var in $ac_precious_vars; do 24206d1874b2Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 24216d1874b2Smrg eval ac_new_set=\$ac_env_${ac_var}_set 24226d1874b2Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 24236d1874b2Smrg eval ac_new_val=\$ac_env_${ac_var}_value 24246d1874b2Smrg case $ac_old_set,$ac_new_set in 24256d1874b2Smrg set,) 24266d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 24276d1874b2Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 24286d1874b2Smrg ac_cache_corrupted=: ;; 24296d1874b2Smrg ,set) 24306d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 24316d1874b2Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 24326d1874b2Smrg ac_cache_corrupted=: ;; 24336d1874b2Smrg ,);; 24346d1874b2Smrg *) 24356d1874b2Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 24366d1874b2Smrg # differences in whitespace do not lead to failure. 24376d1874b2Smrg ac_old_val_w=`echo x $ac_old_val` 24386d1874b2Smrg ac_new_val_w=`echo x $ac_new_val` 24396d1874b2Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 24406d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 24416d1874b2Smrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 24426d1874b2Smrg ac_cache_corrupted=: 24436d1874b2Smrg else 24446d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 24456d1874b2Smrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 24466d1874b2Smrg eval $ac_var=\$ac_old_val 24476d1874b2Smrg fi 24486d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 24496d1874b2Smrgprintf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 24506d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 24516d1874b2Smrgprintf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 24526d1874b2Smrg fi;; 24536d1874b2Smrg esac 24546d1874b2Smrg # Pass precious variables to config.status. 24556d1874b2Smrg if test "$ac_new_set" = set; then 24566d1874b2Smrg case $ac_new_val in 24576d1874b2Smrg *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 24586d1874b2Smrg *) ac_arg=$ac_var=$ac_new_val ;; 24596d1874b2Smrg esac 24606d1874b2Smrg case " $ac_configure_args " in 24616d1874b2Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 24626d1874b2Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 24636d1874b2Smrg esac 24646d1874b2Smrg fi 24656d1874b2Smrgdone 24666d1874b2Smrgif $ac_cache_corrupted; then 24676d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24686d1874b2Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 24696d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 24706d1874b2Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 24716d1874b2Smrg as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 24726d1874b2Smrg and start over" "$LINENO" 5 24736d1874b2Smrgfi 24746d1874b2Smrg## -------------------- ## 24756d1874b2Smrg## Main body of script. ## 24766d1874b2Smrg## -------------------- ## 24776d1874b2Smrg 24786d1874b2Smrgac_ext=c 24796d1874b2Smrgac_cpp='$CPP $CPPFLAGS' 24806d1874b2Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24816d1874b2Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24826d1874b2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 24836d1874b2Smrg 24846d1874b2Smrg 24856d1874b2Smrg 24866d1874b2Smrgac_config_headers="$ac_config_headers config.h" 24876d1874b2Smrg 24886d1874b2Smrg 24896d1874b2Smrg# Initialize Automake 24906d1874b2Smrgam__api_version='1.16' 24916d1874b2Smrg 24926d1874b2Smrg 24936d1874b2Smrg 24946d1874b2Smrg # Find a good install program. We prefer a C program (faster), 24956d1874b2Smrg# so one script is as good as another. But avoid the broken or 24966d1874b2Smrg# incompatible versions: 24976d1874b2Smrg# SysV /etc/install, /usr/sbin/install 24986d1874b2Smrg# SunOS /usr/etc/install 24996d1874b2Smrg# IRIX /sbin/install 25006d1874b2Smrg# AIX /bin/install 2501e6232409Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2502e6232409Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2503e6232409Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2504e6232409Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2505e6232409Smrg# OS/2's system install, which has a completely different semantic 2506e6232409Smrg# ./install, which can be erroneously created by make from ./install.sh. 25078fff3f40Smrg# Reject install programs that cannot install multiple files. 25086d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 25096d1874b2Smrgprintf %s "checking for a BSD-compatible install... " >&6; } 2510e6232409Smrgif test -z "$INSTALL"; then 25116d1874b2Smrgif test ${ac_cv_path_install+y} 25126d1874b2Smrgthen : 25136d1874b2Smrg printf %s "(cached) " >&6 25146d1874b2Smrgelse $as_nop 2515e6232409Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2516e6232409Smrgfor as_dir in $PATH 2517e6232409Smrgdo 2518e6232409Smrg IFS=$as_save_IFS 25196d1874b2Smrg case $as_dir in #((( 25206d1874b2Smrg '') as_dir=./ ;; 25216d1874b2Smrg */) ;; 25226d1874b2Smrg *) as_dir=$as_dir/ ;; 25236d1874b2Smrg esac 25246d1874b2Smrg # Account for fact that we put trailing slashes in our PATH walk. 25256d1874b2Smrgcase $as_dir in #(( 25266d1874b2Smrg ./ | /[cC]/* | \ 2527e6232409Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 25288fff3f40Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2529e6232409Smrg /usr/ucb/* ) ;; 2530e6232409Smrg *) 2531e6232409Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 2532e6232409Smrg # Don't use installbsd from OSF since it installs stuff as root 2533e6232409Smrg # by default. 2534e6232409Smrg for ac_prog in ginstall scoinst install; do 2535e6232409Smrg for ac_exec_ext in '' $ac_executable_extensions; do 25366d1874b2Smrg if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2537e6232409Smrg if test $ac_prog = install && 25386d1874b2Smrg grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2539e6232409Smrg # AIX install. It has an incompatible calling convention. 2540e6232409Smrg : 2541e6232409Smrg elif test $ac_prog = install && 25426d1874b2Smrg grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2543e6232409Smrg # program-specific install script used by HP pwplus--don't use. 2544e6232409Smrg : 2545e6232409Smrg else 25468fff3f40Smrg rm -rf conftest.one conftest.two conftest.dir 25478fff3f40Smrg echo one > conftest.one 25488fff3f40Smrg echo two > conftest.two 25498fff3f40Smrg mkdir conftest.dir 25506d1874b2Smrg if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 25518fff3f40Smrg test -s conftest.one && test -s conftest.two && 25528fff3f40Smrg test -s conftest.dir/conftest.one && 25538fff3f40Smrg test -s conftest.dir/conftest.two 25548fff3f40Smrg then 25556d1874b2Smrg ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 25568fff3f40Smrg break 3 25578fff3f40Smrg fi 2558e6232409Smrg fi 2559e6232409Smrg fi 2560e6232409Smrg done 2561e6232409Smrg done 2562e6232409Smrg ;; 2563e6232409Smrgesac 25648fff3f40Smrg 25658fff3f40Smrg done 2566e6232409SmrgIFS=$as_save_IFS 2567e6232409Smrg 25688fff3f40Smrgrm -rf conftest.one conftest.two conftest.dir 2569e6232409Smrg 2570e6232409Smrgfi 25716d1874b2Smrg if test ${ac_cv_path_install+y}; then 2572e6232409Smrg INSTALL=$ac_cv_path_install 2573e6232409Smrg else 2574e6232409Smrg # As a last resort, use the slow shell script. Don't cache a 2575e6232409Smrg # value for INSTALL within a source directory, because that will 2576e6232409Smrg # break other packages using the cache if that directory is 2577e6232409Smrg # removed, or if the value is a relative name. 2578e6232409Smrg INSTALL=$ac_install_sh 2579e6232409Smrg fi 2580e6232409Smrgfi 25816d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 25826d1874b2Smrgprintf "%s\n" "$INSTALL" >&6; } 2583e6232409Smrg 2584e6232409Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2585e6232409Smrg# It thinks the first close brace ends the variable substitution. 2586e6232409Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2587e6232409Smrg 2588e6232409Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2589e6232409Smrg 2590e6232409Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2591e6232409Smrg 25926d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 25936d1874b2Smrgprintf %s "checking whether build environment is sane... " >&6; } 25948fff3f40Smrg# Reject unsafe characters in $srcdir or the absolute working directory 25958fff3f40Smrg# name. Accept space and tab only in the latter. 25968fff3f40Smrgam_lf=' 25978fff3f40Smrg' 25988fff3f40Smrgcase `pwd` in 25998fff3f40Smrg *[\\\"\#\$\&\'\`$am_lf]*) 260094a251fdSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 26018fff3f40Smrgesac 26028fff3f40Smrgcase $srcdir in 26038fff3f40Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 26046a45684fSmrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 26058fff3f40Smrgesac 26068fff3f40Smrg 26076a45684fSmrg# Do 'set' in a subshell so we don't clobber the current shell's 2608e6232409Smrg# arguments. Must try -L first in case configure is actually a 2609e6232409Smrg# symlink; some systems play weird games with the mod time of symlinks 2610e6232409Smrg# (eg FreeBSD returns the mod time of the symlink's containing 2611e6232409Smrg# directory). 2612e6232409Smrgif ( 26136a45684fSmrg am_has_slept=no 26146a45684fSmrg for am_try in 1 2; do 26156a45684fSmrg echo "timestamp, slept: $am_has_slept" > conftest.file 26166a45684fSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 26176a45684fSmrg if test "$*" = "X"; then 26186a45684fSmrg # -L didn't work. 26196a45684fSmrg set X `ls -t "$srcdir/configure" conftest.file` 26206a45684fSmrg fi 26216a45684fSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 26226a45684fSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 26236a45684fSmrg 26246a45684fSmrg # If neither matched, then we have a broken ls. This can happen 26256a45684fSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 26266a45684fSmrg # broken ls alias from the environment. This has actually 26276a45684fSmrg # happened. Such a system could not be considered "sane". 26286a45684fSmrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 26296a45684fSmrg alias in your environment" "$LINENO" 5 26306a45684fSmrg fi 26316a45684fSmrg if test "$2" = conftest.file || test $am_try -eq 2; then 26326a45684fSmrg break 26336a45684fSmrg fi 26346a45684fSmrg # Just in case. 26356a45684fSmrg sleep 1 26366a45684fSmrg am_has_slept=yes 26376a45684fSmrg done 26388fff3f40Smrg test "$2" = conftest.file 26398fff3f40Smrg ) 26408fff3f40Smrgthen 26418fff3f40Smrg # Ok. 26428fff3f40Smrg : 26438fff3f40Smrgelse 264494a251fdSmrg as_fn_error $? "newly created file is older than distributed files! 26458fff3f40SmrgCheck your system clock" "$LINENO" 5 26468fff3f40Smrgfi 26476d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26486d1874b2Smrgprintf "%s\n" "yes" >&6; } 26496a45684fSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and 26506a45684fSmrg# generated files are strictly newer. 26516a45684fSmrgam_sleep_pid= 26526a45684fSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 26536a45684fSmrg ( sleep 1 ) & 26546a45684fSmrg am_sleep_pid=$! 26556a45684fSmrgfi 26566a45684fSmrg 26576a45684fSmrgrm -f conftest.file 26586a45684fSmrg 26598fff3f40Smrgtest "$program_prefix" != NONE && 26608fff3f40Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 26618fff3f40Smrg# Use a double $ so make ignores it. 26628fff3f40Smrgtest "$program_suffix" != NONE && 26638fff3f40Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 26648fff3f40Smrg# Double any \ or $. 26658fff3f40Smrg# By default was `s,x,x', remove it if useless. 26668fff3f40Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 26676d1874b2Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 26686d1874b2Smrg 26698fff3f40Smrg 26706a45684fSmrg# Expand $ac_aux_dir to an absolute path. 26716a45684fSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 26728fff3f40Smrg 26736d1874b2Smrg 26746d1874b2Smrg if test x"${MISSING+set}" != xset; then 26756d1874b2Smrg MISSING="\${SHELL} '$am_aux_dir/missing'" 26768fff3f40Smrgfi 26778fff3f40Smrg# Use eval to expand $SHELL 26786a45684fSmrgif eval "$MISSING --is-lightweight"; then 26796a45684fSmrg am_missing_run="$MISSING " 26808fff3f40Smrgelse 26818fff3f40Smrg am_missing_run= 26826d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 26836d1874b2Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 26848fff3f40Smrgfi 26858fff3f40Smrg 26866a45684fSmrgif test x"${install_sh+set}" != xset; then 26878fff3f40Smrg case $am_aux_dir in 26888fff3f40Smrg *\ * | *\ *) 26898fff3f40Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 26908fff3f40Smrg *) 26918fff3f40Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 26928fff3f40Smrg esac 26938fff3f40Smrgfi 26948fff3f40Smrg 26956a45684fSmrg# Installed binaries are usually stripped using 'strip' when the user 26966a45684fSmrg# run "make install-strip". However 'strip' might not be the right 26978fff3f40Smrg# tool to use in cross-compilation environments, therefore Automake 26986a45684fSmrg# will honor the 'STRIP' environment variable to overrule this program. 26998fff3f40Smrgif test "$cross_compiling" != no; then 27008fff3f40Smrg if test -n "$ac_tool_prefix"; then 27018fff3f40Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 27028fff3f40Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 27036d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27046d1874b2Smrgprintf %s "checking for $ac_word... " >&6; } 27056d1874b2Smrgif test ${ac_cv_prog_STRIP+y} 27066d1874b2Smrgthen : 27076d1874b2Smrg printf %s "(cached) " >&6 27086d1874b2Smrgelse $as_nop 27098fff3f40Smrg if test -n "$STRIP"; then 27108fff3f40Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 27118fff3f40Smrgelse 27128fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27138fff3f40Smrgfor as_dir in $PATH 27148fff3f40Smrgdo 27158fff3f40Smrg IFS=$as_save_IFS 27166d1874b2Smrg case $as_dir in #((( 27176d1874b2Smrg '') as_dir=./ ;; 27186d1874b2Smrg */) ;; 27196d1874b2Smrg *) as_dir=$as_dir/ ;; 27206d1874b2Smrg esac 27218fff3f40Smrg for ac_exec_ext in '' $ac_executable_extensions; do 27226d1874b2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27238fff3f40Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 27246d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27258fff3f40Smrg break 2 27268fff3f40Smrg fi 27278fff3f40Smrgdone 27288fff3f40Smrg done 27298fff3f40SmrgIFS=$as_save_IFS 27308fff3f40Smrg 27318fff3f40Smrgfi 27328fff3f40Smrgfi 27338fff3f40SmrgSTRIP=$ac_cv_prog_STRIP 27348fff3f40Smrgif test -n "$STRIP"; then 27356d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 27366d1874b2Smrgprintf "%s\n" "$STRIP" >&6; } 27378fff3f40Smrgelse 27386d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27396d1874b2Smrgprintf "%s\n" "no" >&6; } 27408fff3f40Smrgfi 27418fff3f40Smrg 27428fff3f40Smrg 27438fff3f40Smrgfi 27448fff3f40Smrgif test -z "$ac_cv_prog_STRIP"; then 27458fff3f40Smrg ac_ct_STRIP=$STRIP 27468fff3f40Smrg # Extract the first word of "strip", so it can be a program name with args. 27478fff3f40Smrgset dummy strip; ac_word=$2 27486d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27496d1874b2Smrgprintf %s "checking for $ac_word... " >&6; } 27506d1874b2Smrgif test ${ac_cv_prog_ac_ct_STRIP+y} 27516d1874b2Smrgthen : 27526d1874b2Smrg printf %s "(cached) " >&6 27536d1874b2Smrgelse $as_nop 27548fff3f40Smrg if test -n "$ac_ct_STRIP"; then 27558fff3f40Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 27568fff3f40Smrgelse 27578fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27588fff3f40Smrgfor as_dir in $PATH 27598fff3f40Smrgdo 27608fff3f40Smrg IFS=$as_save_IFS 27616d1874b2Smrg case $as_dir in #((( 27626d1874b2Smrg '') as_dir=./ ;; 27636d1874b2Smrg */) ;; 27646d1874b2Smrg *) as_dir=$as_dir/ ;; 27656d1874b2Smrg esac 27668fff3f40Smrg for ac_exec_ext in '' $ac_executable_extensions; do 27676d1874b2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27688fff3f40Smrg ac_cv_prog_ac_ct_STRIP="strip" 27696d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27708fff3f40Smrg break 2 27718fff3f40Smrg fi 27728fff3f40Smrgdone 27738fff3f40Smrg done 27748fff3f40SmrgIFS=$as_save_IFS 27758fff3f40Smrg 27768fff3f40Smrgfi 27778fff3f40Smrgfi 27788fff3f40Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 27798fff3f40Smrgif test -n "$ac_ct_STRIP"; then 27806d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 27816d1874b2Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; } 27828fff3f40Smrgelse 27836d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27846d1874b2Smrgprintf "%s\n" "no" >&6; } 27858fff3f40Smrgfi 27868fff3f40Smrg 27878fff3f40Smrg if test "x$ac_ct_STRIP" = x; then 27888fff3f40Smrg STRIP=":" 27898fff3f40Smrg else 27908fff3f40Smrg case $cross_compiling:$ac_tool_warned in 27918fff3f40Smrgyes:) 27926d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27936d1874b2Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27948fff3f40Smrgac_tool_warned=yes ;; 27958fff3f40Smrgesac 27968fff3f40Smrg STRIP=$ac_ct_STRIP 27978fff3f40Smrg fi 27988fff3f40Smrgelse 27998fff3f40Smrg STRIP="$ac_cv_prog_STRIP" 28008fff3f40Smrgfi 28018fff3f40Smrg 28028fff3f40Smrgfi 28038fff3f40SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 28048fff3f40Smrg 28056d1874b2Smrg 28066d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 28076d1874b2Smrgprintf %s "checking for a race-free mkdir -p... " >&6; } 28088fff3f40Smrgif test -z "$MKDIR_P"; then 28096d1874b2Smrg if test ${ac_cv_path_mkdir+y} 28106d1874b2Smrgthen : 28116d1874b2Smrg printf %s "(cached) " >&6 28126d1874b2Smrgelse $as_nop 28138fff3f40Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28148fff3f40Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 28158fff3f40Smrgdo 28168fff3f40Smrg IFS=$as_save_IFS 28176d1874b2Smrg case $as_dir in #((( 28186d1874b2Smrg '') as_dir=./ ;; 28196d1874b2Smrg */) ;; 28206d1874b2Smrg *) as_dir=$as_dir/ ;; 28216d1874b2Smrg esac 28228fff3f40Smrg for ac_prog in mkdir gmkdir; do 28238fff3f40Smrg for ac_exec_ext in '' $ac_executable_extensions; do 28246d1874b2Smrg as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 28256d1874b2Smrg case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 28266d1874b2Smrg 'mkdir ('*'coreutils) '* | \ 28276d1874b2Smrg 'BusyBox '* | \ 28288fff3f40Smrg 'mkdir (fileutils) '4.1*) 28296d1874b2Smrg ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 28308fff3f40Smrg break 3;; 28318fff3f40Smrg esac 28328fff3f40Smrg done 28338fff3f40Smrg done 28348fff3f40Smrg done 28358fff3f40SmrgIFS=$as_save_IFS 28368fff3f40Smrg 28378fff3f40Smrgfi 28388fff3f40Smrg 28398fff3f40Smrg test -d ./--version && rmdir ./--version 28406d1874b2Smrg if test ${ac_cv_path_mkdir+y}; then 28418fff3f40Smrg MKDIR_P="$ac_cv_path_mkdir -p" 28428fff3f40Smrg else 28438fff3f40Smrg # As a last resort, use the slow shell script. Don't cache a 28448fff3f40Smrg # value for MKDIR_P within a source directory, because that will 28458fff3f40Smrg # break other packages using the cache if that directory is 28468fff3f40Smrg # removed, or if the value is a relative name. 28478fff3f40Smrg MKDIR_P="$ac_install_sh -d" 28488fff3f40Smrg fi 28498fff3f40Smrgfi 28506d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 28516d1874b2Smrgprintf "%s\n" "$MKDIR_P" >&6; } 28528fff3f40Smrg 28538fff3f40Smrgfor ac_prog in gawk mawk nawk awk 28548fff3f40Smrgdo 28558fff3f40Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 28568fff3f40Smrgset dummy $ac_prog; ac_word=$2 28576d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28586d1874b2Smrgprintf %s "checking for $ac_word... " >&6; } 28596d1874b2Smrgif test ${ac_cv_prog_AWK+y} 28606d1874b2Smrgthen : 28616d1874b2Smrg printf %s "(cached) " >&6 28626d1874b2Smrgelse $as_nop 28638fff3f40Smrg if test -n "$AWK"; then 28648fff3f40Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 28658fff3f40Smrgelse 28668fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28678fff3f40Smrgfor as_dir in $PATH 28688fff3f40Smrgdo 28698fff3f40Smrg IFS=$as_save_IFS 28706d1874b2Smrg case $as_dir in #((( 28716d1874b2Smrg '') as_dir=./ ;; 28726d1874b2Smrg */) ;; 28736d1874b2Smrg *) as_dir=$as_dir/ ;; 28746d1874b2Smrg esac 28758fff3f40Smrg for ac_exec_ext in '' $ac_executable_extensions; do 28766d1874b2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28778fff3f40Smrg ac_cv_prog_AWK="$ac_prog" 28786d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28798fff3f40Smrg break 2 28808fff3f40Smrg fi 28818fff3f40Smrgdone 28828fff3f40Smrg done 28838fff3f40SmrgIFS=$as_save_IFS 28848fff3f40Smrg 28858fff3f40Smrgfi 28868fff3f40Smrgfi 28878fff3f40SmrgAWK=$ac_cv_prog_AWK 28888fff3f40Smrgif test -n "$AWK"; then 28896d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 28906d1874b2Smrgprintf "%s\n" "$AWK" >&6; } 28918fff3f40Smrgelse 28926d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28936d1874b2Smrgprintf "%s\n" "no" >&6; } 28948fff3f40Smrgfi 28958fff3f40Smrg 28968fff3f40Smrg 28978fff3f40Smrg test -n "$AWK" && break 28988fff3f40Smrgdone 28998fff3f40Smrg 29006d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 29016d1874b2Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 29028fff3f40Smrgset x ${MAKE-make} 29036d1874b2Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 29046d1874b2Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y} 29056d1874b2Smrgthen : 29066d1874b2Smrg printf %s "(cached) " >&6 29076d1874b2Smrgelse $as_nop 29088fff3f40Smrg cat >conftest.make <<\_ACEOF 29098fff3f40SmrgSHELL = /bin/sh 29108fff3f40Smrgall: 29118fff3f40Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 29128fff3f40Smrg_ACEOF 291394a251fdSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 29148fff3f40Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 29158fff3f40Smrg *@@@%%%=?*=@@@%%%*) 29168fff3f40Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 29178fff3f40Smrg *) 29188fff3f40Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 29198fff3f40Smrgesac 29208fff3f40Smrgrm -f conftest.make 29218fff3f40Smrgfi 29228fff3f40Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 29236d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29246d1874b2Smrgprintf "%s\n" "yes" >&6; } 29258fff3f40Smrg SET_MAKE= 29268fff3f40Smrgelse 29276d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29286d1874b2Smrgprintf "%s\n" "no" >&6; } 29298fff3f40Smrg SET_MAKE="MAKE=${MAKE-make}" 29308fff3f40Smrgfi 29318fff3f40Smrg 29328fff3f40Smrgrm -rf .tst 2>/dev/null 29338fff3f40Smrgmkdir .tst 2>/dev/null 29348fff3f40Smrgif test -d .tst; then 29358fff3f40Smrg am__leading_dot=. 29368fff3f40Smrgelse 29378fff3f40Smrg am__leading_dot=_ 29388fff3f40Smrgfi 29398fff3f40Smrgrmdir .tst 2>/dev/null 29408fff3f40Smrg 29416a45684fSmrg# Check whether --enable-silent-rules was given. 29426d1874b2Smrgif test ${enable_silent_rules+y} 29436d1874b2Smrgthen : 29446a45684fSmrg enableval=$enable_silent_rules; 29456a45684fSmrgfi 29466a45684fSmrg 29476a45684fSmrgcase $enable_silent_rules in # ((( 29486a45684fSmrg yes) AM_DEFAULT_VERBOSITY=0;; 29496a45684fSmrg no) AM_DEFAULT_VERBOSITY=1;; 29506a45684fSmrg *) AM_DEFAULT_VERBOSITY=1;; 29516a45684fSmrgesac 29526a45684fSmrgam_make=${MAKE-make} 29536d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 29546d1874b2Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 29556d1874b2Smrgif test ${am_cv_make_support_nested_variables+y} 29566d1874b2Smrgthen : 29576d1874b2Smrg printf %s "(cached) " >&6 29586d1874b2Smrgelse $as_nop 29596d1874b2Smrg if printf "%s\n" 'TRUE=$(BAR$(V)) 29606a45684fSmrgBAR0=false 29616a45684fSmrgBAR1=true 29626a45684fSmrgV=1 29636a45684fSmrgam__doit: 29646a45684fSmrg @$(TRUE) 29656a45684fSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 29666a45684fSmrg am_cv_make_support_nested_variables=yes 29676a45684fSmrgelse 29686a45684fSmrg am_cv_make_support_nested_variables=no 29696a45684fSmrgfi 29706a45684fSmrgfi 29716d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 29726d1874b2Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 29736a45684fSmrgif test $am_cv_make_support_nested_variables = yes; then 29746a45684fSmrg AM_V='$(V)' 29756a45684fSmrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 29766a45684fSmrgelse 29776a45684fSmrg AM_V=$AM_DEFAULT_VERBOSITY 29786a45684fSmrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 29796a45684fSmrgfi 29806a45684fSmrgAM_BACKSLASH='\' 29816a45684fSmrg 29828fff3f40Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 29838fff3f40Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 29848fff3f40Smrg # is not polluted with repeated "-I." 29858fff3f40Smrg am__isrc=' -I$(srcdir)' 29868fff3f40Smrg # test to see if srcdir already configured 29878fff3f40Smrg if test -f $srcdir/config.status; then 298894a251fdSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 29898fff3f40Smrg fi 29908fff3f40Smrgfi 29918fff3f40Smrg 29928fff3f40Smrg# test whether we have cygpath 29938fff3f40Smrgif test -z "$CYGPATH_W"; then 29948fff3f40Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 29958fff3f40Smrg CYGPATH_W='cygpath -w' 29968fff3f40Smrg else 29978fff3f40Smrg CYGPATH_W=echo 29988fff3f40Smrg fi 29998fff3f40Smrgfi 30008fff3f40Smrg 30018fff3f40Smrg 30028fff3f40Smrg# Define the identity of the package. 30038fff3f40Smrg PACKAGE='xlsfonts' 30046d1874b2Smrg VERSION='1.0.7' 30058fff3f40Smrg 30068fff3f40Smrg 30076d1874b2Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 30088fff3f40Smrg 30098fff3f40Smrg 30106d1874b2Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 30118fff3f40Smrg 30128fff3f40Smrg# Some tools Automake needs. 30138fff3f40Smrg 30148fff3f40SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 30158fff3f40Smrg 30168fff3f40Smrg 30178fff3f40SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 30188fff3f40Smrg 30198fff3f40Smrg 30208fff3f40SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 30218fff3f40Smrg 30228fff3f40Smrg 30238fff3f40SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 30248fff3f40Smrg 30258fff3f40Smrg 30268fff3f40SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 30278fff3f40Smrg 30286a45684fSmrg# For better backward compatibility. To be removed once Automake 1.9.x 30296a45684fSmrg# dies out for good. For more background, see: 30306d1874b2Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 30316d1874b2Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 30326a45684fSmrgmkdir_p='$(MKDIR_P)' 30338fff3f40Smrg 30346a45684fSmrg# We need awk for the "check" target (and possibly the TAP driver). The 30356a45684fSmrg# system "awk" is bad on some platforms. 30366a45684fSmrg# Always define AMTAR for backward compatibility. Yes, it's still used 30376a45684fSmrg# in the wild :-( We should find a proper way to deprecate it ... 30386a45684fSmrgAMTAR='$${TAR-tar}' 30398fff3f40Smrg 30408fff3f40Smrg 30416a45684fSmrg# We'll loop over all known methods to create a tar archive until one works. 30426a45684fSmrg_am_tools='gnutar pax cpio none' 30438fff3f40Smrg 30446a45684fSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 30458fff3f40Smrg 30468fff3f40Smrg 30478fff3f40Smrg 30488fff3f40Smrg 30498fff3f40Smrg 30506d1874b2Smrg# Variables for tags utilities; see am/tags.am 30516d1874b2Smrgif test -z "$CTAGS"; then 30526d1874b2Smrg CTAGS=ctags 30536d1874b2Smrgfi 30546d1874b2Smrg 30556d1874b2Smrgif test -z "$ETAGS"; then 30566d1874b2Smrg ETAGS=etags 30576d1874b2Smrgfi 30586d1874b2Smrg 30596d1874b2Smrgif test -z "$CSCOPE"; then 30606d1874b2Smrg CSCOPE=cscope 30616d1874b2Smrgfi 30626d1874b2Smrg 30636d1874b2Smrg 30648fff3f40Smrg 30656a45684fSmrg# POSIX will say in a future version that running "rm -f" with no argument 30666a45684fSmrg# is OK; and we want to be able to make that assumption in our Makefile 30676a45684fSmrg# recipes. So use an aggressive probe to check that the usage we want is 30686a45684fSmrg# actually supported "in the wild" to an acceptable degree. 30696a45684fSmrg# See automake bug#10828. 30706a45684fSmrg# To make any issue more visible, cause the running configure to be aborted 30716a45684fSmrg# by default if the 'rm' program in use doesn't match our expectations; the 30726a45684fSmrg# user can still override this though. 30736a45684fSmrgif rm -f && rm -fr && rm -rf; then : OK; else 30746a45684fSmrg cat >&2 <<'END' 30756a45684fSmrgOops! 30766a45684fSmrg 30776a45684fSmrgYour 'rm' program seems unable to run without file operands specified 30786a45684fSmrgon the command line, even when the '-f' option is present. This is contrary 30796a45684fSmrgto the behaviour of most rm programs out there, and not conforming with 30806a45684fSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 30816a45684fSmrg 30826a45684fSmrgPlease tell bug-automake@gnu.org about your system, including the value 30836a45684fSmrgof your $PATH and any error possibly output before this message. This 30846a45684fSmrgcan help us improve future automake versions. 30856a45684fSmrg 30866a45684fSmrgEND 30876a45684fSmrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 30886a45684fSmrg echo 'Configuration will proceed anyway, since you have set the' >&2 30896a45684fSmrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 30906a45684fSmrg echo >&2 30916a45684fSmrg else 30926a45684fSmrg cat >&2 <<'END' 30936a45684fSmrgAborting the configuration process, to ensure you take notice of the issue. 30946a45684fSmrg 30956a45684fSmrgYou can download and install GNU coreutils to get an 'rm' implementation 30966d1874b2Smrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 30976a45684fSmrg 30986a45684fSmrgIf you want to complete the configuration process using your problematic 30996a45684fSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 31006a45684fSmrgto "yes", and re-run configure. 31018fff3f40Smrg 31026a45684fSmrgEND 31036a45684fSmrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 31046a45684fSmrg fi 31056a45684fSmrgfi 31068fff3f40Smrg 31078fff3f40Smrg 310894a251fdSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 31098fff3f40Smrg 31108fff3f40Smrg 31118fff3f40Smrg 31128fff3f40Smrg 31138fff3f40Smrg 31148fff3f40Smrg 31158fff3f40Smrg 31168fff3f40Smrg 31178fff3f40Smrg 31188fff3f40Smrg 31198fff3f40Smrg 31206d1874b2Smrg 31216d1874b2Smrg 31226d1874b2Smrg 31236d1874b2Smrg 31246d1874b2Smrg 31256d1874b2Smrg 31266d1874b2Smrg 31276d1874b2Smrg 31286d1874b2Smrg 31298fff3f40SmrgDEPDIR="${am__leading_dot}deps" 31308fff3f40Smrg 31318fff3f40Smrgac_config_commands="$ac_config_commands depfiles" 31328fff3f40Smrg 31336d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 31346d1874b2Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 31356d1874b2Smrgcat > confinc.mk << 'END' 31368fff3f40Smrgam__doit: 31376d1874b2Smrg @echo this is the am__doit target >confinc.out 31388fff3f40Smrg.PHONY: am__doit 31398fff3f40SmrgEND 31408fff3f40Smrgam__include="#" 31418fff3f40Smrgam__quote= 31426d1874b2Smrg# BSD make does it like this. 31436d1874b2Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD 31446d1874b2Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 31456d1874b2Smrgecho 'include confinc.mk # ignored' > confmf.GNU 31466d1874b2Smrg_am_result=no 31476d1874b2Smrgfor s in GNU BSD; do 31486d1874b2Smrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 31496d1874b2Smrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 31506d1874b2Smrg ac_status=$? 31516d1874b2Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 31526d1874b2Smrg (exit $ac_status); } 31536d1874b2Smrg case $?:`cat confinc.out 2>/dev/null` in #( 31546d1874b2Smrg '0:this is the am__doit target') : 31556d1874b2Smrg case $s in #( 31566d1874b2Smrg BSD) : 31576d1874b2Smrg am__include='.include' am__quote='"' ;; #( 31586d1874b2Smrg *) : 31596d1874b2Smrg am__include='include' am__quote='' ;; 31606d1874b2Smrgesac ;; #( 31616d1874b2Smrg *) : 31628fff3f40Smrg ;; 31636d1874b2Smrgesac 31646d1874b2Smrg if test "$am__include" != "#"; then 31656d1874b2Smrg _am_result="yes ($s style)" 31666d1874b2Smrg break 31676d1874b2Smrg fi 31686d1874b2Smrgdone 31696d1874b2Smrgrm -f confinc.* confmf.* 31706d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 31716d1874b2Smrgprintf "%s\n" "${_am_result}" >&6; } 31728fff3f40Smrg 31738fff3f40Smrg# Check whether --enable-dependency-tracking was given. 31746d1874b2Smrgif test ${enable_dependency_tracking+y} 31756d1874b2Smrgthen : 31768fff3f40Smrg enableval=$enable_dependency_tracking; 31778fff3f40Smrgfi 31788fff3f40Smrg 31798fff3f40Smrgif test "x$enable_dependency_tracking" != xno; then 31808fff3f40Smrg am_depcomp="$ac_aux_dir/depcomp" 31818fff3f40Smrg AMDEPBACKSLASH='\' 318294a251fdSmrg am__nodep='_no' 31838fff3f40Smrgfi 31848fff3f40Smrg if test "x$enable_dependency_tracking" != xno; then 31858fff3f40Smrg AMDEP_TRUE= 31868fff3f40Smrg AMDEP_FALSE='#' 31878fff3f40Smrgelse 31888fff3f40Smrg AMDEP_TRUE='#' 31898fff3f40Smrg AMDEP_FALSE= 31908fff3f40Smrgfi 31918fff3f40Smrg 31928fff3f40Smrg 31938fff3f40Smrgac_ext=c 31948fff3f40Smrgac_cpp='$CPP $CPPFLAGS' 31958fff3f40Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31968fff3f40Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31978fff3f40Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 31988fff3f40Smrgif test -n "$ac_tool_prefix"; then 31998fff3f40Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 32008fff3f40Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 32016d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32026d1874b2Smrgprintf %s "checking for $ac_word... " >&6; } 32036d1874b2Smrgif test ${ac_cv_prog_CC+y} 32046d1874b2Smrgthen : 32056d1874b2Smrg printf %s "(cached) " >&6 32066d1874b2Smrgelse $as_nop 32078fff3f40Smrg if test -n "$CC"; then 32088fff3f40Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 32098fff3f40Smrgelse 32108fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32118fff3f40Smrgfor as_dir in $PATH 32128fff3f40Smrgdo 32138fff3f40Smrg IFS=$as_save_IFS 32146d1874b2Smrg case $as_dir in #((( 32156d1874b2Smrg '') as_dir=./ ;; 32166d1874b2Smrg */) ;; 32176d1874b2Smrg *) as_dir=$as_dir/ ;; 32186d1874b2Smrg esac 32198fff3f40Smrg for ac_exec_ext in '' $ac_executable_extensions; do 32206d1874b2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32218fff3f40Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 32226d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32238fff3f40Smrg break 2 32248fff3f40Smrg fi 32258fff3f40Smrgdone 32268fff3f40Smrg done 32278fff3f40SmrgIFS=$as_save_IFS 32288fff3f40Smrg 32298fff3f40Smrgfi 32308fff3f40Smrgfi 32318fff3f40SmrgCC=$ac_cv_prog_CC 32328fff3f40Smrgif test -n "$CC"; then 32336d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 32346d1874b2Smrgprintf "%s\n" "$CC" >&6; } 32358fff3f40Smrgelse 32366d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32376d1874b2Smrgprintf "%s\n" "no" >&6; } 32388fff3f40Smrgfi 32398fff3f40Smrg 32408fff3f40Smrg 32418fff3f40Smrgfi 32428fff3f40Smrgif test -z "$ac_cv_prog_CC"; then 32438fff3f40Smrg ac_ct_CC=$CC 32448fff3f40Smrg # Extract the first word of "gcc", so it can be a program name with args. 32458fff3f40Smrgset dummy gcc; ac_word=$2 32466d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32476d1874b2Smrgprintf %s "checking for $ac_word... " >&6; } 32486d1874b2Smrgif test ${ac_cv_prog_ac_ct_CC+y} 32496d1874b2Smrgthen : 32506d1874b2Smrg printf %s "(cached) " >&6 32516d1874b2Smrgelse $as_nop 32528fff3f40Smrg if test -n "$ac_ct_CC"; then 32538fff3f40Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 32548fff3f40Smrgelse 32558fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32568fff3f40Smrgfor as_dir in $PATH 32578fff3f40Smrgdo 32588fff3f40Smrg IFS=$as_save_IFS 32596d1874b2Smrg case $as_dir in #((( 32606d1874b2Smrg '') as_dir=./ ;; 32616d1874b2Smrg */) ;; 32626d1874b2Smrg *) as_dir=$as_dir/ ;; 32636d1874b2Smrg esac 32648fff3f40Smrg for ac_exec_ext in '' $ac_executable_extensions; do 32656d1874b2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32668fff3f40Smrg ac_cv_prog_ac_ct_CC="gcc" 32676d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32688fff3f40Smrg break 2 32698fff3f40Smrg fi 32708fff3f40Smrgdone 32718fff3f40Smrg done 32728fff3f40SmrgIFS=$as_save_IFS 32738fff3f40Smrg 32748fff3f40Smrgfi 32758fff3f40Smrgfi 32768fff3f40Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 32778fff3f40Smrgif test -n "$ac_ct_CC"; then 32786d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 32796d1874b2Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 32808fff3f40Smrgelse 32816d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32826d1874b2Smrgprintf "%s\n" "no" >&6; } 32838fff3f40Smrgfi 32848fff3f40Smrg 32858fff3f40Smrg if test "x$ac_ct_CC" = x; then 32868fff3f40Smrg CC="" 32878fff3f40Smrg else 32888fff3f40Smrg case $cross_compiling:$ac_tool_warned in 32898fff3f40Smrgyes:) 32906d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32916d1874b2Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32928fff3f40Smrgac_tool_warned=yes ;; 32938fff3f40Smrgesac 32948fff3f40Smrg CC=$ac_ct_CC 32958fff3f40Smrg fi 32968fff3f40Smrgelse 32978fff3f40Smrg CC="$ac_cv_prog_CC" 32988fff3f40Smrgfi 32998fff3f40Smrg 33008fff3f40Smrgif test -z "$CC"; then 33018fff3f40Smrg if test -n "$ac_tool_prefix"; then 33028fff3f40Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 33038fff3f40Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 33046d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33056d1874b2Smrgprintf %s "checking for $ac_word... " >&6; } 33066d1874b2Smrgif test ${ac_cv_prog_CC+y} 33076d1874b2Smrgthen : 33086d1874b2Smrg printf %s "(cached) " >&6 33096d1874b2Smrgelse $as_nop 33108fff3f40Smrg if test -n "$CC"; then 33118fff3f40Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 33128fff3f40Smrgelse 33138fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33148fff3f40Smrgfor as_dir in $PATH 33158fff3f40Smrgdo 33168fff3f40Smrg IFS=$as_save_IFS 33176d1874b2Smrg case $as_dir in #((( 33186d1874b2Smrg '') as_dir=./ ;; 33196d1874b2Smrg */) ;; 33206d1874b2Smrg *) as_dir=$as_dir/ ;; 33216d1874b2Smrg esac 33228fff3f40Smrg for ac_exec_ext in '' $ac_executable_extensions; do 33236d1874b2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33248fff3f40Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 33256d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33268fff3f40Smrg break 2 33278fff3f40Smrg fi 33288fff3f40Smrgdone 33298fff3f40Smrg done 33308fff3f40SmrgIFS=$as_save_IFS 33318fff3f40Smrg 33328fff3f40Smrgfi 33338fff3f40Smrgfi 33348fff3f40SmrgCC=$ac_cv_prog_CC 33358fff3f40Smrgif test -n "$CC"; then 33366d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 33376d1874b2Smrgprintf "%s\n" "$CC" >&6; } 33388fff3f40Smrgelse 33396d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33406d1874b2Smrgprintf "%s\n" "no" >&6; } 33418fff3f40Smrgfi 33428fff3f40Smrg 33438fff3f40Smrg 33448fff3f40Smrg fi 33458fff3f40Smrgfi 33468fff3f40Smrgif test -z "$CC"; then 33478fff3f40Smrg # Extract the first word of "cc", so it can be a program name with args. 33488fff3f40Smrgset dummy cc; ac_word=$2 33496d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33506d1874b2Smrgprintf %s "checking for $ac_word... " >&6; } 33516d1874b2Smrgif test ${ac_cv_prog_CC+y} 33526d1874b2Smrgthen : 33536d1874b2Smrg printf %s "(cached) " >&6 33546d1874b2Smrgelse $as_nop 33558fff3f40Smrg if test -n "$CC"; then 33568fff3f40Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 33578fff3f40Smrgelse 33588fff3f40Smrg ac_prog_rejected=no 33598fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33608fff3f40Smrgfor as_dir in $PATH 33618fff3f40Smrgdo 33628fff3f40Smrg IFS=$as_save_IFS 33636d1874b2Smrg case $as_dir in #((( 33646d1874b2Smrg '') as_dir=./ ;; 33656d1874b2Smrg */) ;; 33666d1874b2Smrg *) as_dir=$as_dir/ ;; 33676d1874b2Smrg esac 33688fff3f40Smrg for ac_exec_ext in '' $ac_executable_extensions; do 33696d1874b2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33706d1874b2Smrg if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 33718fff3f40Smrg ac_prog_rejected=yes 33728fff3f40Smrg continue 33738fff3f40Smrg fi 33748fff3f40Smrg ac_cv_prog_CC="cc" 33756d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33768fff3f40Smrg break 2 33778fff3f40Smrg fi 33788fff3f40Smrgdone 33798fff3f40Smrg done 33808fff3f40SmrgIFS=$as_save_IFS 33818fff3f40Smrg 33828fff3f40Smrgif test $ac_prog_rejected = yes; then 33838fff3f40Smrg # We found a bogon in the path, so make sure we never use it. 33848fff3f40Smrg set dummy $ac_cv_prog_CC 33858fff3f40Smrg shift 33868fff3f40Smrg if test $# != 0; then 33878fff3f40Smrg # We chose a different compiler from the bogus one. 33888fff3f40Smrg # However, it has the same basename, so the bogon will be chosen 33898fff3f40Smrg # first if we set CC to just the basename; use the full file name. 33908fff3f40Smrg shift 33916d1874b2Smrg ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 33928fff3f40Smrg fi 33938fff3f40Smrgfi 33948fff3f40Smrgfi 33958fff3f40Smrgfi 33968fff3f40SmrgCC=$ac_cv_prog_CC 33978fff3f40Smrgif test -n "$CC"; then 33986d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 33996d1874b2Smrgprintf "%s\n" "$CC" >&6; } 34008fff3f40Smrgelse 34016d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 34026d1874b2Smrgprintf "%s\n" "no" >&6; } 34038fff3f40Smrgfi 34048fff3f40Smrg 34058fff3f40Smrg 34068fff3f40Smrgfi 34078fff3f40Smrgif test -z "$CC"; then 34088fff3f40Smrg if test -n "$ac_tool_prefix"; then 34098fff3f40Smrg for ac_prog in cl.exe 34108fff3f40Smrg do 34118fff3f40Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 34128fff3f40Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 34136d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34146d1874b2Smrgprintf %s "checking for $ac_word... " >&6; } 34156d1874b2Smrgif test ${ac_cv_prog_CC+y} 34166d1874b2Smrgthen : 34176d1874b2Smrg printf %s "(cached) " >&6 34186d1874b2Smrgelse $as_nop 34198fff3f40Smrg if test -n "$CC"; then 34208fff3f40Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 34218fff3f40Smrgelse 34228fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34238fff3f40Smrgfor as_dir in $PATH 34248fff3f40Smrgdo 34258fff3f40Smrg IFS=$as_save_IFS 34266d1874b2Smrg case $as_dir in #((( 34276d1874b2Smrg '') as_dir=./ ;; 34286d1874b2Smrg */) ;; 34296d1874b2Smrg *) as_dir=$as_dir/ ;; 34306d1874b2Smrg esac 34318fff3f40Smrg for ac_exec_ext in '' $ac_executable_extensions; do 34326d1874b2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 34338fff3f40Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 34346d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 34358fff3f40Smrg break 2 34368fff3f40Smrg fi 34378fff3f40Smrgdone 34388fff3f40Smrg done 34398fff3f40SmrgIFS=$as_save_IFS 34408fff3f40Smrg 34418fff3f40Smrgfi 34428fff3f40Smrgfi 34438fff3f40SmrgCC=$ac_cv_prog_CC 34448fff3f40Smrgif test -n "$CC"; then 34456d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 34466d1874b2Smrgprintf "%s\n" "$CC" >&6; } 34478fff3f40Smrgelse 34486d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 34496d1874b2Smrgprintf "%s\n" "no" >&6; } 34508fff3f40Smrgfi 34518fff3f40Smrg 34528fff3f40Smrg 34538fff3f40Smrg test -n "$CC" && break 34548fff3f40Smrg done 34558fff3f40Smrgfi 34568fff3f40Smrgif test -z "$CC"; then 34578fff3f40Smrg ac_ct_CC=$CC 34588fff3f40Smrg for ac_prog in cl.exe 34598fff3f40Smrgdo 34608fff3f40Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 34618fff3f40Smrgset dummy $ac_prog; ac_word=$2 34626d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34636d1874b2Smrgprintf %s "checking for $ac_word... " >&6; } 34646d1874b2Smrgif test ${ac_cv_prog_ac_ct_CC+y} 34656d1874b2Smrgthen : 34666d1874b2Smrg printf %s "(cached) " >&6 34676d1874b2Smrgelse $as_nop 34688fff3f40Smrg if test -n "$ac_ct_CC"; then 34698fff3f40Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 34708fff3f40Smrgelse 34718fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34728fff3f40Smrgfor as_dir in $PATH 34738fff3f40Smrgdo 34748fff3f40Smrg IFS=$as_save_IFS 34756d1874b2Smrg case $as_dir in #((( 34766d1874b2Smrg '') as_dir=./ ;; 34776d1874b2Smrg */) ;; 34786d1874b2Smrg *) as_dir=$as_dir/ ;; 34796d1874b2Smrg esac 34808fff3f40Smrg for ac_exec_ext in '' $ac_executable_extensions; do 34816d1874b2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 34828fff3f40Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 34836d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 34848fff3f40Smrg break 2 34858fff3f40Smrg fi 34868fff3f40Smrgdone 34878fff3f40Smrg done 34888fff3f40SmrgIFS=$as_save_IFS 34898fff3f40Smrg 34908fff3f40Smrgfi 34918fff3f40Smrgfi 34928fff3f40Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 34938fff3f40Smrgif test -n "$ac_ct_CC"; then 34946d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 34956d1874b2Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 34968fff3f40Smrgelse 34976d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 34986d1874b2Smrgprintf "%s\n" "no" >&6; } 34998fff3f40Smrgfi 35008fff3f40Smrg 35018fff3f40Smrg 35028fff3f40Smrg test -n "$ac_ct_CC" && break 35038fff3f40Smrgdone 35048fff3f40Smrg 35058fff3f40Smrg if test "x$ac_ct_CC" = x; then 35068fff3f40Smrg CC="" 35078fff3f40Smrg else 35088fff3f40Smrg case $cross_compiling:$ac_tool_warned in 35098fff3f40Smrgyes:) 35106d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35116d1874b2Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35126d1874b2Smrgac_tool_warned=yes ;; 35136d1874b2Smrgesac 35146d1874b2Smrg CC=$ac_ct_CC 35156d1874b2Smrg fi 35166d1874b2Smrgfi 35176d1874b2Smrg 35186d1874b2Smrgfi 35196d1874b2Smrgif test -z "$CC"; then 35206d1874b2Smrg if test -n "$ac_tool_prefix"; then 35216d1874b2Smrg # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 35226d1874b2Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2 35236d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35246d1874b2Smrgprintf %s "checking for $ac_word... " >&6; } 35256d1874b2Smrgif test ${ac_cv_prog_CC+y} 35266d1874b2Smrgthen : 35276d1874b2Smrg printf %s "(cached) " >&6 35286d1874b2Smrgelse $as_nop 35296d1874b2Smrg if test -n "$CC"; then 35306d1874b2Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 35316d1874b2Smrgelse 35326d1874b2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35336d1874b2Smrgfor as_dir in $PATH 35346d1874b2Smrgdo 35356d1874b2Smrg IFS=$as_save_IFS 35366d1874b2Smrg case $as_dir in #((( 35376d1874b2Smrg '') as_dir=./ ;; 35386d1874b2Smrg */) ;; 35396d1874b2Smrg *) as_dir=$as_dir/ ;; 35406d1874b2Smrg esac 35416d1874b2Smrg for ac_exec_ext in '' $ac_executable_extensions; do 35426d1874b2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 35436d1874b2Smrg ac_cv_prog_CC="${ac_tool_prefix}clang" 35446d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 35456d1874b2Smrg break 2 35466d1874b2Smrg fi 35476d1874b2Smrgdone 35486d1874b2Smrg done 35496d1874b2SmrgIFS=$as_save_IFS 35506d1874b2Smrg 35516d1874b2Smrgfi 35526d1874b2Smrgfi 35536d1874b2SmrgCC=$ac_cv_prog_CC 35546d1874b2Smrgif test -n "$CC"; then 35556d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 35566d1874b2Smrgprintf "%s\n" "$CC" >&6; } 35576d1874b2Smrgelse 35586d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35596d1874b2Smrgprintf "%s\n" "no" >&6; } 35606d1874b2Smrgfi 35616d1874b2Smrg 35626d1874b2Smrg 35636d1874b2Smrgfi 35646d1874b2Smrgif test -z "$ac_cv_prog_CC"; then 35656d1874b2Smrg ac_ct_CC=$CC 35666d1874b2Smrg # Extract the first word of "clang", so it can be a program name with args. 35676d1874b2Smrgset dummy clang; ac_word=$2 35686d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35696d1874b2Smrgprintf %s "checking for $ac_word... " >&6; } 35706d1874b2Smrgif test ${ac_cv_prog_ac_ct_CC+y} 35716d1874b2Smrgthen : 35726d1874b2Smrg printf %s "(cached) " >&6 35736d1874b2Smrgelse $as_nop 35746d1874b2Smrg if test -n "$ac_ct_CC"; then 35756d1874b2Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 35766d1874b2Smrgelse 35776d1874b2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35786d1874b2Smrgfor as_dir in $PATH 35796d1874b2Smrgdo 35806d1874b2Smrg IFS=$as_save_IFS 35816d1874b2Smrg case $as_dir in #((( 35826d1874b2Smrg '') as_dir=./ ;; 35836d1874b2Smrg */) ;; 35846d1874b2Smrg *) as_dir=$as_dir/ ;; 35856d1874b2Smrg esac 35866d1874b2Smrg for ac_exec_ext in '' $ac_executable_extensions; do 35876d1874b2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 35886d1874b2Smrg ac_cv_prog_ac_ct_CC="clang" 35896d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 35906d1874b2Smrg break 2 35916d1874b2Smrg fi 35926d1874b2Smrgdone 35936d1874b2Smrg done 35946d1874b2SmrgIFS=$as_save_IFS 35956d1874b2Smrg 35966d1874b2Smrgfi 35976d1874b2Smrgfi 35986d1874b2Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 35996d1874b2Smrgif test -n "$ac_ct_CC"; then 36006d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 36016d1874b2Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 36026d1874b2Smrgelse 36036d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36046d1874b2Smrgprintf "%s\n" "no" >&6; } 36056d1874b2Smrgfi 36066d1874b2Smrg 36076d1874b2Smrg if test "x$ac_ct_CC" = x; then 36086d1874b2Smrg CC="" 36096d1874b2Smrg else 36106d1874b2Smrg case $cross_compiling:$ac_tool_warned in 36116d1874b2Smrgyes:) 36126d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36136d1874b2Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36148fff3f40Smrgac_tool_warned=yes ;; 36158fff3f40Smrgesac 36168fff3f40Smrg CC=$ac_ct_CC 36178fff3f40Smrg fi 36186d1874b2Smrgelse 36196d1874b2Smrg CC="$ac_cv_prog_CC" 36208fff3f40Smrgfi 36218fff3f40Smrg 36228fff3f40Smrgfi 36238fff3f40Smrg 36248fff3f40Smrg 36256d1874b2Smrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36266d1874b2Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 362794a251fdSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 362894a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 36298fff3f40Smrg 36308fff3f40Smrg# Provide some information about the compiler. 36316d1874b2Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 36328fff3f40Smrgset X $ac_compile 36338fff3f40Smrgac_compiler=$2 36346d1874b2Smrgfor ac_option in --version -v -V -qversion -version; do 36358fff3f40Smrg { { ac_try="$ac_compiler $ac_option >&5" 36368fff3f40Smrgcase "(($ac_try" in 36378fff3f40Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36388fff3f40Smrg *) ac_try_echo=$ac_try;; 36398fff3f40Smrgesac 36408fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 36416d1874b2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 36428fff3f40Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 36438fff3f40Smrg ac_status=$? 36448fff3f40Smrg if test -s conftest.err; then 36458fff3f40Smrg sed '10a\ 36468fff3f40Smrg... rest of stderr output deleted ... 36478fff3f40Smrg 10q' conftest.err >conftest.er1 36488fff3f40Smrg cat conftest.er1 >&5 36498fff3f40Smrg fi 36508fff3f40Smrg rm -f conftest.er1 conftest.err 36516d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 36528fff3f40Smrg test $ac_status = 0; } 36538fff3f40Smrgdone 36548fff3f40Smrg 36558fff3f40Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 36568fff3f40Smrg/* end confdefs.h. */ 36578fff3f40Smrg 36588fff3f40Smrgint 36596d1874b2Smrgmain (void) 36608fff3f40Smrg{ 36618fff3f40Smrg 36628fff3f40Smrg ; 36638fff3f40Smrg return 0; 36648fff3f40Smrg} 36658fff3f40Smrg_ACEOF 36668fff3f40Smrgac_clean_files_save=$ac_clean_files 36678fff3f40Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 36688fff3f40Smrg# Try to create an executable without -o first, disregard a.out. 36698fff3f40Smrg# It will help us diagnose broken compilers, and finding out an intuition 36708fff3f40Smrg# of exeext. 36716d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 36726d1874b2Smrgprintf %s "checking whether the C compiler works... " >&6; } 36736d1874b2Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 36748fff3f40Smrg 36758fff3f40Smrg# The possible output files: 36768fff3f40Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 36778fff3f40Smrg 36788fff3f40Smrgac_rmfiles= 36798fff3f40Smrgfor ac_file in $ac_files 36808fff3f40Smrgdo 36818fff3f40Smrg case $ac_file in 36828fff3f40Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 36838fff3f40Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 36848fff3f40Smrg esac 36858fff3f40Smrgdone 36868fff3f40Smrgrm -f $ac_rmfiles 36878fff3f40Smrg 36888fff3f40Smrgif { { ac_try="$ac_link_default" 36898fff3f40Smrgcase "(($ac_try" in 36908fff3f40Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36918fff3f40Smrg *) ac_try_echo=$ac_try;; 36928fff3f40Smrgesac 36938fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 36946d1874b2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 36958fff3f40Smrg (eval "$ac_link_default") 2>&5 36968fff3f40Smrg ac_status=$? 36976d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 36986d1874b2Smrg test $ac_status = 0; } 36996d1874b2Smrgthen : 37008fff3f40Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 37018fff3f40Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 37028fff3f40Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 37038fff3f40Smrg# so that the user can short-circuit this test for compilers unknown to 37048fff3f40Smrg# Autoconf. 37058fff3f40Smrgfor ac_file in $ac_files '' 37068fff3f40Smrgdo 37078fff3f40Smrg test -f "$ac_file" || continue 37088fff3f40Smrg case $ac_file in 37098fff3f40Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 37108fff3f40Smrg ;; 37118fff3f40Smrg [ab].out ) 37128fff3f40Smrg # We found the default executable, but exeext='' is most 37138fff3f40Smrg # certainly right. 37148fff3f40Smrg break;; 37158fff3f40Smrg *.* ) 37166d1874b2Smrg if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 37178fff3f40Smrg then :; else 37188fff3f40Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 37198fff3f40Smrg fi 37208fff3f40Smrg # We set ac_cv_exeext here because the later test for it is not 37218fff3f40Smrg # safe: cross compilers may not add the suffix if given an `-o' 37228fff3f40Smrg # argument, so we may need to know it at that point already. 37238fff3f40Smrg # Even if this section looks crufty: it has the advantage of 37248fff3f40Smrg # actually working. 37258fff3f40Smrg break;; 37268fff3f40Smrg * ) 37278fff3f40Smrg break;; 37288fff3f40Smrg esac 37298fff3f40Smrgdone 37308fff3f40Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 37318fff3f40Smrg 37326d1874b2Smrgelse $as_nop 37338fff3f40Smrg ac_file='' 37348fff3f40Smrgfi 37356d1874b2Smrgif test -z "$ac_file" 37366d1874b2Smrgthen : 37376d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37386d1874b2Smrgprintf "%s\n" "no" >&6; } 37396d1874b2Smrgprintf "%s\n" "$as_me: failed program was:" >&5 37408fff3f40Smrgsed 's/^/| /' conftest.$ac_ext >&5 37418fff3f40Smrg 37426d1874b2Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 37436d1874b2Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 374494a251fdSmrgas_fn_error 77 "C compiler cannot create executables 374594a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 37466d1874b2Smrgelse $as_nop 37476d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37486d1874b2Smrgprintf "%s\n" "yes" >&6; } 37496d1874b2Smrgfi 37506d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 37516d1874b2Smrgprintf %s "checking for C compiler default output file name... " >&6; } 37526d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 37536d1874b2Smrgprintf "%s\n" "$ac_file" >&6; } 37548fff3f40Smrgac_exeext=$ac_cv_exeext 37558fff3f40Smrg 37568fff3f40Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 37578fff3f40Smrgac_clean_files=$ac_clean_files_save 37586d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 37596d1874b2Smrgprintf %s "checking for suffix of executables... " >&6; } 37608fff3f40Smrgif { { ac_try="$ac_link" 37618fff3f40Smrgcase "(($ac_try" in 37628fff3f40Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37638fff3f40Smrg *) ac_try_echo=$ac_try;; 37648fff3f40Smrgesac 37658fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 37666d1874b2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 37678fff3f40Smrg (eval "$ac_link") 2>&5 37688fff3f40Smrg ac_status=$? 37696d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 37706d1874b2Smrg test $ac_status = 0; } 37716d1874b2Smrgthen : 37728fff3f40Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 37738fff3f40Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 37748fff3f40Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 37758fff3f40Smrg# `rm'. 37768fff3f40Smrgfor ac_file in conftest.exe conftest conftest.*; do 37778fff3f40Smrg test -f "$ac_file" || continue 37788fff3f40Smrg case $ac_file in 37798fff3f40Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 37808fff3f40Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 37818fff3f40Smrg break;; 37828fff3f40Smrg * ) break;; 37838fff3f40Smrg esac 37848fff3f40Smrgdone 37856d1874b2Smrgelse $as_nop 37866d1874b2Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 37876d1874b2Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 378894a251fdSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 378994a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 37908fff3f40Smrgfi 37918fff3f40Smrgrm -f conftest conftest$ac_cv_exeext 37926d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 37936d1874b2Smrgprintf "%s\n" "$ac_cv_exeext" >&6; } 37948fff3f40Smrg 37958fff3f40Smrgrm -f conftest.$ac_ext 37968fff3f40SmrgEXEEXT=$ac_cv_exeext 37978fff3f40Smrgac_exeext=$EXEEXT 37988fff3f40Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 37998fff3f40Smrg/* end confdefs.h. */ 38008fff3f40Smrg#include <stdio.h> 38018fff3f40Smrgint 38026d1874b2Smrgmain (void) 38038fff3f40Smrg{ 38048fff3f40SmrgFILE *f = fopen ("conftest.out", "w"); 38058fff3f40Smrg return ferror (f) || fclose (f) != 0; 38068fff3f40Smrg 38078fff3f40Smrg ; 38088fff3f40Smrg return 0; 38098fff3f40Smrg} 38108fff3f40Smrg_ACEOF 38118fff3f40Smrgac_clean_files="$ac_clean_files conftest.out" 38128fff3f40Smrg# Check that the compiler produces executables we can run. If not, either 38138fff3f40Smrg# the compiler is broken, or we cross compile. 38146d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 38156d1874b2Smrgprintf %s "checking whether we are cross compiling... " >&6; } 38168fff3f40Smrgif test "$cross_compiling" != yes; then 38178fff3f40Smrg { { ac_try="$ac_link" 38188fff3f40Smrgcase "(($ac_try" in 38198fff3f40Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38208fff3f40Smrg *) ac_try_echo=$ac_try;; 38218fff3f40Smrgesac 38228fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 38236d1874b2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 38248fff3f40Smrg (eval "$ac_link") 2>&5 38258fff3f40Smrg ac_status=$? 38266d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38278fff3f40Smrg test $ac_status = 0; } 38288fff3f40Smrg if { ac_try='./conftest$ac_cv_exeext' 38298fff3f40Smrg { { case "(($ac_try" in 38308fff3f40Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38318fff3f40Smrg *) ac_try_echo=$ac_try;; 38328fff3f40Smrgesac 38338fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 38346d1874b2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 38358fff3f40Smrg (eval "$ac_try") 2>&5 38368fff3f40Smrg ac_status=$? 38376d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38388fff3f40Smrg test $ac_status = 0; }; }; then 38398fff3f40Smrg cross_compiling=no 38408fff3f40Smrg else 38418fff3f40Smrg if test "$cross_compiling" = maybe; then 38428fff3f40Smrg cross_compiling=yes 38438fff3f40Smrg else 38446d1874b2Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 38456d1874b2Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 38466d1874b2Smrgas_fn_error 77 "cannot run C compiled programs. 38478fff3f40SmrgIf you meant to cross compile, use \`--host'. 384894a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 38498fff3f40Smrg fi 38508fff3f40Smrg fi 38518fff3f40Smrgfi 38526d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 38536d1874b2Smrgprintf "%s\n" "$cross_compiling" >&6; } 38548fff3f40Smrg 38558fff3f40Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 38568fff3f40Smrgac_clean_files=$ac_clean_files_save 38576d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 38586d1874b2Smrgprintf %s "checking for suffix of object files... " >&6; } 38596d1874b2Smrgif test ${ac_cv_objext+y} 38606d1874b2Smrgthen : 38616d1874b2Smrg printf %s "(cached) " >&6 38626d1874b2Smrgelse $as_nop 38638fff3f40Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38648fff3f40Smrg/* end confdefs.h. */ 38658fff3f40Smrg 38668fff3f40Smrgint 38676d1874b2Smrgmain (void) 38688fff3f40Smrg{ 38698fff3f40Smrg 38708fff3f40Smrg ; 38718fff3f40Smrg return 0; 38728fff3f40Smrg} 38738fff3f40Smrg_ACEOF 38748fff3f40Smrgrm -f conftest.o conftest.obj 38758fff3f40Smrgif { { ac_try="$ac_compile" 38768fff3f40Smrgcase "(($ac_try" in 38778fff3f40Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38788fff3f40Smrg *) ac_try_echo=$ac_try;; 38798fff3f40Smrgesac 38808fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 38816d1874b2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 38828fff3f40Smrg (eval "$ac_compile") 2>&5 38838fff3f40Smrg ac_status=$? 38846d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38856d1874b2Smrg test $ac_status = 0; } 38866d1874b2Smrgthen : 38878fff3f40Smrg for ac_file in conftest.o conftest.obj conftest.*; do 38888fff3f40Smrg test -f "$ac_file" || continue; 38898fff3f40Smrg case $ac_file in 38908fff3f40Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 38918fff3f40Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 38928fff3f40Smrg break;; 38938fff3f40Smrg esac 38948fff3f40Smrgdone 38956d1874b2Smrgelse $as_nop 38966d1874b2Smrg printf "%s\n" "$as_me: failed program was:" >&5 38978fff3f40Smrgsed 's/^/| /' conftest.$ac_ext >&5 38988fff3f40Smrg 38996d1874b2Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39006d1874b2Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 390194a251fdSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 390294a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 39038fff3f40Smrgfi 39048fff3f40Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 39058fff3f40Smrgfi 39066d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 39076d1874b2Smrgprintf "%s\n" "$ac_cv_objext" >&6; } 39088fff3f40SmrgOBJEXT=$ac_cv_objext 39098fff3f40Smrgac_objext=$OBJEXT 39106d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 39116d1874b2Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; } 39126d1874b2Smrgif test ${ac_cv_c_compiler_gnu+y} 39136d1874b2Smrgthen : 39146d1874b2Smrg printf %s "(cached) " >&6 39156d1874b2Smrgelse $as_nop 39168fff3f40Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39178fff3f40Smrg/* end confdefs.h. */ 39188fff3f40Smrg 39198fff3f40Smrgint 39206d1874b2Smrgmain (void) 39218fff3f40Smrg{ 39228fff3f40Smrg#ifndef __GNUC__ 39238fff3f40Smrg choke me 39248fff3f40Smrg#endif 39258fff3f40Smrg 39268fff3f40Smrg ; 39278fff3f40Smrg return 0; 39288fff3f40Smrg} 39298fff3f40Smrg_ACEOF 39306d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 39316d1874b2Smrgthen : 39328fff3f40Smrg ac_compiler_gnu=yes 39336d1874b2Smrgelse $as_nop 39348fff3f40Smrg ac_compiler_gnu=no 39358fff3f40Smrgfi 39366d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39378fff3f40Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 39388fff3f40Smrg 39398fff3f40Smrgfi 39406d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 39416d1874b2Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 39426d1874b2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 39436d1874b2Smrg 39448fff3f40Smrgif test $ac_compiler_gnu = yes; then 39458fff3f40Smrg GCC=yes 39468fff3f40Smrgelse 39478fff3f40Smrg GCC= 39488fff3f40Smrgfi 39496d1874b2Smrgac_test_CFLAGS=${CFLAGS+y} 39508fff3f40Smrgac_save_CFLAGS=$CFLAGS 39516d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 39526d1874b2Smrgprintf %s "checking whether $CC accepts -g... " >&6; } 39536d1874b2Smrgif test ${ac_cv_prog_cc_g+y} 39546d1874b2Smrgthen : 39556d1874b2Smrg printf %s "(cached) " >&6 39566d1874b2Smrgelse $as_nop 39578fff3f40Smrg ac_save_c_werror_flag=$ac_c_werror_flag 39588fff3f40Smrg ac_c_werror_flag=yes 39598fff3f40Smrg ac_cv_prog_cc_g=no 39608fff3f40Smrg CFLAGS="-g" 39618fff3f40Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39628fff3f40Smrg/* end confdefs.h. */ 39638fff3f40Smrg 39648fff3f40Smrgint 39656d1874b2Smrgmain (void) 39668fff3f40Smrg{ 39678fff3f40Smrg 39688fff3f40Smrg ; 39698fff3f40Smrg return 0; 39708fff3f40Smrg} 39718fff3f40Smrg_ACEOF 39726d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 39736d1874b2Smrgthen : 39748fff3f40Smrg ac_cv_prog_cc_g=yes 39756d1874b2Smrgelse $as_nop 39768fff3f40Smrg CFLAGS="" 39778fff3f40Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39788fff3f40Smrg/* end confdefs.h. */ 39798fff3f40Smrg 39808fff3f40Smrgint 39816d1874b2Smrgmain (void) 39828fff3f40Smrg{ 39838fff3f40Smrg 39848fff3f40Smrg ; 39858fff3f40Smrg return 0; 39868fff3f40Smrg} 39878fff3f40Smrg_ACEOF 39886d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 39896d1874b2Smrgthen : 39908fff3f40Smrg 39916d1874b2Smrgelse $as_nop 39928fff3f40Smrg ac_c_werror_flag=$ac_save_c_werror_flag 39938fff3f40Smrg CFLAGS="-g" 39948fff3f40Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39958fff3f40Smrg/* end confdefs.h. */ 39968fff3f40Smrg 39978fff3f40Smrgint 39986d1874b2Smrgmain (void) 39998fff3f40Smrg{ 40008fff3f40Smrg 40018fff3f40Smrg ; 40028fff3f40Smrg return 0; 40038fff3f40Smrg} 40048fff3f40Smrg_ACEOF 40056d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 40066d1874b2Smrgthen : 40078fff3f40Smrg ac_cv_prog_cc_g=yes 40088fff3f40Smrgfi 40096d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40108fff3f40Smrgfi 40116d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40128fff3f40Smrgfi 40136d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40148fff3f40Smrg ac_c_werror_flag=$ac_save_c_werror_flag 40158fff3f40Smrgfi 40166d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 40176d1874b2Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 40186d1874b2Smrgif test $ac_test_CFLAGS; then 40198fff3f40Smrg CFLAGS=$ac_save_CFLAGS 40208fff3f40Smrgelif test $ac_cv_prog_cc_g = yes; then 40218fff3f40Smrg if test "$GCC" = yes; then 40228fff3f40Smrg CFLAGS="-g -O2" 40238fff3f40Smrg else 40248fff3f40Smrg CFLAGS="-g" 40258fff3f40Smrg fi 40268fff3f40Smrgelse 40278fff3f40Smrg if test "$GCC" = yes; then 40288fff3f40Smrg CFLAGS="-O2" 40298fff3f40Smrg else 40308fff3f40Smrg CFLAGS= 40318fff3f40Smrg fi 40328fff3f40Smrgfi 40336d1874b2Smrgac_prog_cc_stdc=no 40346d1874b2Smrgif test x$ac_prog_cc_stdc = xno 40356d1874b2Smrgthen : 40366d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 40376d1874b2Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; } 40386d1874b2Smrgif test ${ac_cv_prog_cc_c11+y} 40396d1874b2Smrgthen : 40406d1874b2Smrg printf %s "(cached) " >&6 40416d1874b2Smrgelse $as_nop 40426d1874b2Smrg ac_cv_prog_cc_c11=no 40438fff3f40Smrgac_save_CC=$CC 40448fff3f40Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 40458fff3f40Smrg/* end confdefs.h. */ 40466d1874b2Smrg$ac_c_conftest_c11_program 40476d1874b2Smrg_ACEOF 40486d1874b2Smrgfor ac_arg in '' -std=gnu11 40496d1874b2Smrgdo 40506d1874b2Smrg CC="$ac_save_CC $ac_arg" 40516d1874b2Smrg if ac_fn_c_try_compile "$LINENO" 40526d1874b2Smrgthen : 40536d1874b2Smrg ac_cv_prog_cc_c11=$ac_arg 40546d1874b2Smrgfi 40556d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 40566d1874b2Smrg test "x$ac_cv_prog_cc_c11" != "xno" && break 40576d1874b2Smrgdone 40586d1874b2Smrgrm -f conftest.$ac_ext 40596d1874b2SmrgCC=$ac_save_CC 40606d1874b2Smrgfi 40618fff3f40Smrg 40626d1874b2Smrgif test "x$ac_cv_prog_cc_c11" = xno 40636d1874b2Smrgthen : 40646d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 40656d1874b2Smrgprintf "%s\n" "unsupported" >&6; } 40666d1874b2Smrgelse $as_nop 40676d1874b2Smrg if test "x$ac_cv_prog_cc_c11" = x 40686d1874b2Smrgthen : 40696d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 40706d1874b2Smrgprintf "%s\n" "none needed" >&6; } 40716d1874b2Smrgelse $as_nop 40726d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 40736d1874b2Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 40746d1874b2Smrg CC="$CC $ac_cv_prog_cc_c11" 40756d1874b2Smrgfi 40766d1874b2Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 40776d1874b2Smrg ac_prog_cc_stdc=c11 40786d1874b2Smrgfi 40796d1874b2Smrgfi 40806d1874b2Smrgif test x$ac_prog_cc_stdc = xno 40816d1874b2Smrgthen : 40826d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 40836d1874b2Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; } 40846d1874b2Smrgif test ${ac_cv_prog_cc_c99+y} 40856d1874b2Smrgthen : 40866d1874b2Smrg printf %s "(cached) " >&6 40876d1874b2Smrgelse $as_nop 40886d1874b2Smrg ac_cv_prog_cc_c99=no 40896d1874b2Smrgac_save_CC=$CC 40906d1874b2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 40916d1874b2Smrg/* end confdefs.h. */ 40926d1874b2Smrg$ac_c_conftest_c99_program 40936d1874b2Smrg_ACEOF 40946d1874b2Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 40956d1874b2Smrgdo 40966d1874b2Smrg CC="$ac_save_CC $ac_arg" 40976d1874b2Smrg if ac_fn_c_try_compile "$LINENO" 40986d1874b2Smrgthen : 40996d1874b2Smrg ac_cv_prog_cc_c99=$ac_arg 41006d1874b2Smrgfi 41016d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 41026d1874b2Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 41036d1874b2Smrgdone 41046d1874b2Smrgrm -f conftest.$ac_ext 41056d1874b2SmrgCC=$ac_save_CC 41066d1874b2Smrgfi 41078fff3f40Smrg 41086d1874b2Smrgif test "x$ac_cv_prog_cc_c99" = xno 41096d1874b2Smrgthen : 41106d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 41116d1874b2Smrgprintf "%s\n" "unsupported" >&6; } 41126d1874b2Smrgelse $as_nop 41136d1874b2Smrg if test "x$ac_cv_prog_cc_c99" = x 41146d1874b2Smrgthen : 41156d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 41166d1874b2Smrgprintf "%s\n" "none needed" >&6; } 41176d1874b2Smrgelse $as_nop 41186d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 41196d1874b2Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 41206d1874b2Smrg CC="$CC $ac_cv_prog_cc_c99" 41216d1874b2Smrgfi 41226d1874b2Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 41236d1874b2Smrg ac_prog_cc_stdc=c99 41246d1874b2Smrgfi 41256d1874b2Smrgfi 41266d1874b2Smrgif test x$ac_prog_cc_stdc = xno 41276d1874b2Smrgthen : 41286d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 41296d1874b2Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; } 41306d1874b2Smrgif test ${ac_cv_prog_cc_c89+y} 41316d1874b2Smrgthen : 41326d1874b2Smrg printf %s "(cached) " >&6 41336d1874b2Smrgelse $as_nop 41346d1874b2Smrg ac_cv_prog_cc_c89=no 41356d1874b2Smrgac_save_CC=$CC 41366d1874b2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 41376d1874b2Smrg/* end confdefs.h. */ 41386d1874b2Smrg$ac_c_conftest_c89_program 41398fff3f40Smrg_ACEOF 41406d1874b2Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 41418fff3f40Smrgdo 41428fff3f40Smrg CC="$ac_save_CC $ac_arg" 41436d1874b2Smrg if ac_fn_c_try_compile "$LINENO" 41446d1874b2Smrgthen : 41458fff3f40Smrg ac_cv_prog_cc_c89=$ac_arg 41468fff3f40Smrgfi 41476d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 41488fff3f40Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 41498fff3f40Smrgdone 41508fff3f40Smrgrm -f conftest.$ac_ext 41518fff3f40SmrgCC=$ac_save_CC 41528fff3f40Smrgfi 41538fff3f40Smrg 41546d1874b2Smrgif test "x$ac_cv_prog_cc_c89" = xno 41556d1874b2Smrgthen : 41566d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 41576d1874b2Smrgprintf "%s\n" "unsupported" >&6; } 41586d1874b2Smrgelse $as_nop 41596d1874b2Smrg if test "x$ac_cv_prog_cc_c89" = x 41606d1874b2Smrgthen : 41616d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 41626d1874b2Smrgprintf "%s\n" "none needed" >&6; } 41636d1874b2Smrgelse $as_nop 41646d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 41656d1874b2Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 41666d1874b2Smrg CC="$CC $ac_cv_prog_cc_c89" 41676d1874b2Smrgfi 41686d1874b2Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 41696d1874b2Smrg ac_prog_cc_stdc=c89 41706d1874b2Smrgfi 41718fff3f40Smrgfi 41728fff3f40Smrg 41738fff3f40Smrgac_ext=c 41748fff3f40Smrgac_cpp='$CPP $CPPFLAGS' 41758fff3f40Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41768fff3f40Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41778fff3f40Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 41788fff3f40Smrg 41796d1874b2Smrg 41806d1874b2Smrg ac_ext=c 41816a45684fSmrgac_cpp='$CPP $CPPFLAGS' 41826a45684fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41836a45684fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41846a45684fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 41856d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 41866d1874b2Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; } 41876d1874b2Smrgif test ${am_cv_prog_cc_c_o+y} 41886d1874b2Smrgthen : 41896d1874b2Smrg printf %s "(cached) " >&6 41906d1874b2Smrgelse $as_nop 41916a45684fSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41926a45684fSmrg/* end confdefs.h. */ 41936a45684fSmrg 41946a45684fSmrgint 41956d1874b2Smrgmain (void) 41966a45684fSmrg{ 41976a45684fSmrg 41986a45684fSmrg ; 41996a45684fSmrg return 0; 42006a45684fSmrg} 42016a45684fSmrg_ACEOF 42026a45684fSmrg # Make sure it works both with $CC and with simple cc. 42036a45684fSmrg # Following AC_PROG_CC_C_O, we do the test twice because some 42046a45684fSmrg # compilers refuse to overwrite an existing .o file with -o, 42056a45684fSmrg # though they will create one. 42066a45684fSmrg am_cv_prog_cc_c_o=yes 42076a45684fSmrg for am_i in 1 2; do 42086a45684fSmrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 42096a45684fSmrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 42106a45684fSmrg ac_status=$? 42116a45684fSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 42126a45684fSmrg (exit $ac_status); } \ 42136a45684fSmrg && test -f conftest2.$ac_objext; then 42146a45684fSmrg : OK 42156a45684fSmrg else 42166a45684fSmrg am_cv_prog_cc_c_o=no 42176a45684fSmrg break 42186a45684fSmrg fi 42196a45684fSmrg done 42206a45684fSmrg rm -f core conftest* 42216a45684fSmrg unset am_i 42226a45684fSmrgfi 42236d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 42246d1874b2Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 42256a45684fSmrgif test "$am_cv_prog_cc_c_o" != yes; then 42266a45684fSmrg # Losing compiler, so override with the script. 42276a45684fSmrg # FIXME: It is wrong to rewrite CC. 42286a45684fSmrg # But if we don't then we get into trouble of one sort or another. 42296a45684fSmrg # A longer-term fix would be to have automake use am__CC in this case, 42306a45684fSmrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 42316a45684fSmrg CC="$am_aux_dir/compile $CC" 42326a45684fSmrgfi 42336a45684fSmrgac_ext=c 42346a45684fSmrgac_cpp='$CPP $CPPFLAGS' 42356a45684fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42366a45684fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42376a45684fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 42386a45684fSmrg 42396a45684fSmrg 42408fff3f40Smrgdepcc="$CC" am_compiler_list= 42418fff3f40Smrg 42426d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 42436d1874b2Smrgprintf %s "checking dependency style of $depcc... " >&6; } 42446d1874b2Smrgif test ${am_cv_CC_dependencies_compiler_type+y} 42456d1874b2Smrgthen : 42466d1874b2Smrg printf %s "(cached) " >&6 42476d1874b2Smrgelse $as_nop 42488fff3f40Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 42498fff3f40Smrg # We make a subdir and do the tests there. Otherwise we can end up 42508fff3f40Smrg # making bogus files that we don't know about and never remove. For 42518fff3f40Smrg # instance it was reported that on HP-UX the gcc test will end up 42526a45684fSmrg # making a dummy file named 'D' -- because '-MD' means "put the output 42536a45684fSmrg # in D". 425494a251fdSmrg rm -rf conftest.dir 42558fff3f40Smrg mkdir conftest.dir 42568fff3f40Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 42578fff3f40Smrg # using a relative directory. 42588fff3f40Smrg cp "$am_depcomp" conftest.dir 42598fff3f40Smrg cd conftest.dir 42608fff3f40Smrg # We will build objects and dependencies in a subdirectory because 42618fff3f40Smrg # it helps to detect inapplicable dependency modes. For instance 42628fff3f40Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 42638fff3f40Smrg # side effect of compilation, but ICC will put the dependencies in 42648fff3f40Smrg # the current directory while Tru64 will put them in the object 42658fff3f40Smrg # directory. 42668fff3f40Smrg mkdir sub 42678fff3f40Smrg 42688fff3f40Smrg am_cv_CC_dependencies_compiler_type=none 42698fff3f40Smrg if test "$am_compiler_list" = ""; then 42708fff3f40Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 42718fff3f40Smrg fi 42728fff3f40Smrg am__universal=false 42738fff3f40Smrg case " $depcc " in #( 42748fff3f40Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 42758fff3f40Smrg esac 42768fff3f40Smrg 42778fff3f40Smrg for depmode in $am_compiler_list; do 42788fff3f40Smrg # Setup a source with many dependencies, because some compilers 42798fff3f40Smrg # like to wrap large dependency lists on column 80 (with \), and 42808fff3f40Smrg # we should not choose a depcomp mode which is confused by this. 42818fff3f40Smrg # 42828fff3f40Smrg # We need to recreate these files for each test, as the compiler may 42838fff3f40Smrg # overwrite some of them when testing with obscure command lines. 42848fff3f40Smrg # This happens at least with the AIX C compiler. 42858fff3f40Smrg : > sub/conftest.c 42868fff3f40Smrg for i in 1 2 3 4 5 6; do 42878fff3f40Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 42886a45684fSmrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 42896a45684fSmrg # Solaris 10 /bin/sh. 42906a45684fSmrg echo '/* dummy */' > sub/conftst$i.h 42918fff3f40Smrg done 42928fff3f40Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 42938fff3f40Smrg 42946a45684fSmrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 42958fff3f40Smrg # mode. It turns out that the SunPro C++ compiler does not properly 42966a45684fSmrg # handle '-M -o', and we need to detect this. Also, some Intel 42976a45684fSmrg # versions had trouble with output in subdirs. 42988fff3f40Smrg am__obj=sub/conftest.${OBJEXT-o} 42998fff3f40Smrg am__minus_obj="-o $am__obj" 43008fff3f40Smrg case $depmode in 43018fff3f40Smrg gcc) 43028fff3f40Smrg # This depmode causes a compiler race in universal mode. 43038fff3f40Smrg test "$am__universal" = false || continue 43048fff3f40Smrg ;; 43058fff3f40Smrg nosideeffect) 43066a45684fSmrg # After this tag, mechanisms are not by side-effect, so they'll 43076a45684fSmrg # only be used when explicitly requested. 43088fff3f40Smrg if test "x$enable_dependency_tracking" = xyes; then 43098fff3f40Smrg continue 43108fff3f40Smrg else 43118fff3f40Smrg break 43128fff3f40Smrg fi 43138fff3f40Smrg ;; 431494a251fdSmrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 43156a45684fSmrg # This compiler won't grok '-c -o', but also, the minuso test has 43168fff3f40Smrg # not run yet. These depmodes are late enough in the game, and 43178fff3f40Smrg # so weak that their functioning should not be impacted. 43188fff3f40Smrg am__obj=conftest.${OBJEXT-o} 43198fff3f40Smrg am__minus_obj= 43208fff3f40Smrg ;; 43218fff3f40Smrg none) break ;; 43228fff3f40Smrg esac 43238fff3f40Smrg if depmode=$depmode \ 43248fff3f40Smrg source=sub/conftest.c object=$am__obj \ 43256d1874b2Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 43266d1874b2Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 43276d1874b2Smrg >/dev/null 2>conftest.err && 43286d1874b2Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 43296d1874b2Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 43306d1874b2Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 43316d1874b2Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 43326d1874b2Smrg # icc doesn't choke on unknown options, it will just issue warnings 43336d1874b2Smrg # or remarks (even with -Werror). So we grep stderr for any message 43346d1874b2Smrg # that says an option was ignored or not supported. 43356d1874b2Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 43366d1874b2Smrg # icc: Command line warning: ignoring option '-M'; no argument required 43376d1874b2Smrg # The diagnosis changed in icc 8.0: 43386d1874b2Smrg # icc: Command line remark: option '-MP' not supported 43396d1874b2Smrg if (grep 'ignoring option' conftest.err || 43406d1874b2Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 43416d1874b2Smrg am_cv_CC_dependencies_compiler_type=$depmode 43426d1874b2Smrg break 43436d1874b2Smrg fi 43448fff3f40Smrg fi 43458fff3f40Smrg done 43468fff3f40Smrg 43476d1874b2Smrg cd .. 43486d1874b2Smrg rm -rf conftest.dir 43498fff3f40Smrgelse 43506d1874b2Smrg am_cv_CC_dependencies_compiler_type=none 43518fff3f40Smrgfi 43528fff3f40Smrg 43538fff3f40Smrgfi 43546d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 43556d1874b2Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 43566d1874b2SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 43578fff3f40Smrg 43586d1874b2Smrg if 43596d1874b2Smrg test "x$enable_dependency_tracking" != xno \ 43606d1874b2Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 43616d1874b2Smrg am__fastdepCC_TRUE= 43626d1874b2Smrg am__fastdepCC_FALSE='#' 43638fff3f40Smrgelse 43646d1874b2Smrg am__fastdepCC_TRUE='#' 43656d1874b2Smrg am__fastdepCC_FALSE= 43668fff3f40Smrgfi 43678fff3f40Smrg 43688fff3f40Smrg 43698fff3f40Smrg 43706d1874b2Smrg 43716d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 43726d1874b2Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 43736d1874b2Smrgif test ${ac_cv_c_undeclared_builtin_options+y} 43746d1874b2Smrgthen : 43756d1874b2Smrg printf %s "(cached) " >&6 43766d1874b2Smrgelse $as_nop 43776d1874b2Smrg ac_save_CFLAGS=$CFLAGS 43786d1874b2Smrg ac_cv_c_undeclared_builtin_options='cannot detect' 43796d1874b2Smrg for ac_arg in '' -fno-builtin; do 43806d1874b2Smrg CFLAGS="$ac_save_CFLAGS $ac_arg" 43816d1874b2Smrg # This test program should *not* compile successfully. 43826d1874b2Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43838fff3f40Smrg/* end confdefs.h. */ 43848fff3f40Smrg 43858fff3f40Smrgint 43866d1874b2Smrgmain (void) 43878fff3f40Smrg{ 43886d1874b2Smrg(void) strchr; 43898fff3f40Smrg ; 43908fff3f40Smrg return 0; 43918fff3f40Smrg} 43928fff3f40Smrg_ACEOF 43936d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 43946d1874b2Smrgthen : 43958fff3f40Smrg 43966d1874b2Smrgelse $as_nop 43976d1874b2Smrg # This test program should compile successfully. 43986d1874b2Smrg # No library function is consistently available on 43996d1874b2Smrg # freestanding implementations, so test against a dummy 44006d1874b2Smrg # declaration. Include always-available headers on the 44016d1874b2Smrg # off chance that they somehow elicit warnings. 44026d1874b2Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44038fff3f40Smrg/* end confdefs.h. */ 44046d1874b2Smrg#include <float.h> 44056d1874b2Smrg#include <limits.h> 44066d1874b2Smrg#include <stdarg.h> 44076d1874b2Smrg#include <stddef.h> 44086d1874b2Smrgextern void ac_decl (int, char *); 44098fff3f40Smrg 44108fff3f40Smrgint 44116d1874b2Smrgmain (void) 44128fff3f40Smrg{ 44136d1874b2Smrg(void) ac_decl (0, (char *) 0); 44146d1874b2Smrg (void) ac_decl; 44156d1874b2Smrg 44166d1874b2Smrg ; 44178fff3f40Smrg return 0; 44188fff3f40Smrg} 44198fff3f40Smrg_ACEOF 44206d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 44216d1874b2Smrgthen : 44226d1874b2Smrg if test x"$ac_arg" = x 44236d1874b2Smrgthen : 44246d1874b2Smrg ac_cv_c_undeclared_builtin_options='none needed' 44256d1874b2Smrgelse $as_nop 44266d1874b2Smrg ac_cv_c_undeclared_builtin_options=$ac_arg 44278fff3f40Smrgfi 44286d1874b2Smrg break 44298fff3f40Smrgfi 44306d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 44318fff3f40Smrgfi 44326d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 44336d1874b2Smrg done 44346d1874b2Smrg CFLAGS=$ac_save_CFLAGS 44356d1874b2Smrg 44366d1874b2Smrgfi 44376d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 44386d1874b2Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 44396d1874b2Smrg case $ac_cv_c_undeclared_builtin_options in #( 44406d1874b2Smrg 'cannot detect') : 44416d1874b2Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 44426d1874b2Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 44436d1874b2Smrgas_fn_error $? "cannot make $CC report undeclared builtins 44446d1874b2SmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #( 44456d1874b2Smrg 'none needed') : 44466d1874b2Smrg ac_c_undeclared_builtin_options='' ;; #( 44476d1874b2Smrg *) : 44486d1874b2Smrg ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 44496d1874b2Smrgesac 44508fff3f40Smrg 44516d1874b2Smrgac_header= ac_cache= 44526d1874b2Smrgfor ac_item in $ac_header_c_list 44536d1874b2Smrgdo 44546d1874b2Smrg if test $ac_cache; then 44556d1874b2Smrg ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 44566d1874b2Smrg if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 44576d1874b2Smrg printf "%s\n" "#define $ac_item 1" >> confdefs.h 44586d1874b2Smrg fi 44596d1874b2Smrg ac_header= ac_cache= 44606d1874b2Smrg elif test $ac_header; then 44616d1874b2Smrg ac_cache=$ac_item 44626d1874b2Smrg else 44636d1874b2Smrg ac_header=$ac_item 44646d1874b2Smrg fi 44656d1874b2Smrgdone 44668fff3f40Smrg 44678fff3f40Smrg 44688fff3f40Smrg 44698fff3f40Smrg 44708fff3f40Smrg 44718fff3f40Smrg 44728fff3f40Smrg 44738fff3f40Smrg 44746d1874b2Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 44756d1874b2Smrgthen : 44766d1874b2Smrg 44776d1874b2Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 44786d1874b2Smrg 44796d1874b2Smrgfi 44806d1874b2Smrg 44816d1874b2Smrg 44828fff3f40Smrg 44838fff3f40Smrg 44846d1874b2Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 44856d1874b2Smrgif test "x$ac_cv_have_decl___clang__" = xyes 44866d1874b2Smrgthen : 448794a251fdSmrg CLANGCC="yes" 44886d1874b2Smrgelse $as_nop 448994a251fdSmrg CLANGCC="no" 44908fff3f40Smrgfi 44916d1874b2Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 44926d1874b2Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 44936d1874b2Smrgthen : 449494a251fdSmrg INTELCC="yes" 44956d1874b2Smrgelse $as_nop 449694a251fdSmrg INTELCC="no" 44978fff3f40Smrgfi 44986d1874b2Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 44996d1874b2Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes 45006d1874b2Smrgthen : 450194a251fdSmrg SUNCC="yes" 45026d1874b2Smrgelse $as_nop 450394a251fdSmrg SUNCC="no" 45048fff3f40Smrgfi 45058fff3f40Smrg 45068fff3f40Smrg 45078fff3f40Smrg 45088fff3f40Smrg 4509c05e7a3eSmrg 4510c05e7a3eSmrg 4511c05e7a3eSmrg 4512c05e7a3eSmrg 45138fff3f40Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 45148fff3f40Smrg if test -n "$ac_tool_prefix"; then 45158fff3f40Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 45168fff3f40Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 45176d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45186d1874b2Smrgprintf %s "checking for $ac_word... " >&6; } 45196d1874b2Smrgif test ${ac_cv_path_PKG_CONFIG+y} 45206d1874b2Smrgthen : 45216d1874b2Smrg printf %s "(cached) " >&6 45226d1874b2Smrgelse $as_nop 45238fff3f40Smrg case $PKG_CONFIG in 45248fff3f40Smrg [\\/]* | ?:[\\/]*) 45258fff3f40Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 45268fff3f40Smrg ;; 45278fff3f40Smrg *) 45288fff3f40Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45298fff3f40Smrgfor as_dir in $PATH 45308fff3f40Smrgdo 45318fff3f40Smrg IFS=$as_save_IFS 45326d1874b2Smrg case $as_dir in #((( 45336d1874b2Smrg '') as_dir=./ ;; 45346d1874b2Smrg */) ;; 45356d1874b2Smrg *) as_dir=$as_dir/ ;; 45366d1874b2Smrg esac 45378fff3f40Smrg for ac_exec_ext in '' $ac_executable_extensions; do 45386d1874b2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 45396d1874b2Smrg ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 45406d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 45418fff3f40Smrg break 2 45428fff3f40Smrg fi 45438fff3f40Smrgdone 45448fff3f40Smrg done 45458fff3f40SmrgIFS=$as_save_IFS 45468fff3f40Smrg 45478fff3f40Smrg ;; 45488fff3f40Smrgesac 45498fff3f40Smrgfi 45508fff3f40SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 45518fff3f40Smrgif test -n "$PKG_CONFIG"; then 45526d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 45536d1874b2Smrgprintf "%s\n" "$PKG_CONFIG" >&6; } 45548fff3f40Smrgelse 45556d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45566d1874b2Smrgprintf "%s\n" "no" >&6; } 45578fff3f40Smrgfi 45588fff3f40Smrg 45598fff3f40Smrg 45608fff3f40Smrgfi 45618fff3f40Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 45628fff3f40Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 45638fff3f40Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 45648fff3f40Smrgset dummy pkg-config; ac_word=$2 45656d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45666d1874b2Smrgprintf %s "checking for $ac_word... " >&6; } 45676d1874b2Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 45686d1874b2Smrgthen : 45696d1874b2Smrg printf %s "(cached) " >&6 45706d1874b2Smrgelse $as_nop 45718fff3f40Smrg case $ac_pt_PKG_CONFIG in 45728fff3f40Smrg [\\/]* | ?:[\\/]*) 45738fff3f40Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 45748fff3f40Smrg ;; 45758fff3f40Smrg *) 45768fff3f40Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45778fff3f40Smrgfor as_dir in $PATH 45788fff3f40Smrgdo 45798fff3f40Smrg IFS=$as_save_IFS 45806d1874b2Smrg case $as_dir in #((( 45816d1874b2Smrg '') as_dir=./ ;; 45826d1874b2Smrg */) ;; 45836d1874b2Smrg *) as_dir=$as_dir/ ;; 45846d1874b2Smrg esac 45858fff3f40Smrg for ac_exec_ext in '' $ac_executable_extensions; do 45866d1874b2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 45876d1874b2Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 45886d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 45898fff3f40Smrg break 2 45908fff3f40Smrg fi 45918fff3f40Smrgdone 45928fff3f40Smrg done 45938fff3f40SmrgIFS=$as_save_IFS 45948fff3f40Smrg 45958fff3f40Smrg ;; 45968fff3f40Smrgesac 45978fff3f40Smrgfi 45988fff3f40Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 45998fff3f40Smrgif test -n "$ac_pt_PKG_CONFIG"; then 46006d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 46016d1874b2Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 46028fff3f40Smrgelse 46036d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 46046d1874b2Smrgprintf "%s\n" "no" >&6; } 46058fff3f40Smrgfi 46068fff3f40Smrg 46078fff3f40Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 46088fff3f40Smrg PKG_CONFIG="" 46098fff3f40Smrg else 46108fff3f40Smrg case $cross_compiling:$ac_tool_warned in 46118fff3f40Smrgyes:) 46126d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 46136d1874b2Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 46148fff3f40Smrgac_tool_warned=yes ;; 46158fff3f40Smrgesac 46168fff3f40Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 46178fff3f40Smrg fi 46188fff3f40Smrgelse 46198fff3f40Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 46208fff3f40Smrgfi 46218fff3f40Smrg 46228fff3f40Smrgfi 46238fff3f40Smrgif test -n "$PKG_CONFIG"; then 46248fff3f40Smrg _pkg_min_version=0.9.0 46256d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 46266d1874b2Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 46278fff3f40Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 46286d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46296d1874b2Smrgprintf "%s\n" "yes" >&6; } 46308fff3f40Smrg else 46316d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 46326d1874b2Smrgprintf "%s\n" "no" >&6; } 46338fff3f40Smrg PKG_CONFIG="" 46348fff3f40Smrg fi 46358fff3f40Smrgfi 46368fff3f40Smrg 46376d1874b2Smrg 46386d1874b2Smrg # Make sure we can run config.sub. 46396d1874b2Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 46406d1874b2Smrg as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 46416d1874b2Smrg 46426d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 46436d1874b2Smrgprintf %s "checking build system type... " >&6; } 46446d1874b2Smrgif test ${ac_cv_build+y} 46456d1874b2Smrgthen : 46466d1874b2Smrg printf %s "(cached) " >&6 46476d1874b2Smrgelse $as_nop 46488fff3f40Smrg ac_build_alias=$build_alias 46498fff3f40Smrgtest "x$ac_build_alias" = x && 46506d1874b2Smrg ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 46518fff3f40Smrgtest "x$ac_build_alias" = x && 465294a251fdSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 46536d1874b2Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 46546d1874b2Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 46558fff3f40Smrg 46568fff3f40Smrgfi 46576d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 46586d1874b2Smrgprintf "%s\n" "$ac_cv_build" >&6; } 46598fff3f40Smrgcase $ac_cv_build in 46608fff3f40Smrg*-*-*) ;; 466194a251fdSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 46628fff3f40Smrgesac 46638fff3f40Smrgbuild=$ac_cv_build 46648fff3f40Smrgac_save_IFS=$IFS; IFS='-' 46658fff3f40Smrgset x $ac_cv_build 46668fff3f40Smrgshift 46678fff3f40Smrgbuild_cpu=$1 46688fff3f40Smrgbuild_vendor=$2 46698fff3f40Smrgshift; shift 46708fff3f40Smrg# Remember, the first character of IFS is used to create $*, 46718fff3f40Smrg# except with old shells: 46728fff3f40Smrgbuild_os=$* 46738fff3f40SmrgIFS=$ac_save_IFS 46748fff3f40Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 46758fff3f40Smrg 46768fff3f40Smrg 46776d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 46786d1874b2Smrgprintf %s "checking host system type... " >&6; } 46796d1874b2Smrgif test ${ac_cv_host+y} 46806d1874b2Smrgthen : 46816d1874b2Smrg printf %s "(cached) " >&6 46826d1874b2Smrgelse $as_nop 46838fff3f40Smrg if test "x$host_alias" = x; then 46848fff3f40Smrg ac_cv_host=$ac_cv_build 46858fff3f40Smrgelse 46866d1874b2Smrg ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 46876d1874b2Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 46888fff3f40Smrgfi 46898fff3f40Smrg 46908fff3f40Smrgfi 46916d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 46926d1874b2Smrgprintf "%s\n" "$ac_cv_host" >&6; } 46938fff3f40Smrgcase $ac_cv_host in 46948fff3f40Smrg*-*-*) ;; 469594a251fdSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 46968fff3f40Smrgesac 46978fff3f40Smrghost=$ac_cv_host 46988fff3f40Smrgac_save_IFS=$IFS; IFS='-' 46998fff3f40Smrgset x $ac_cv_host 47008fff3f40Smrgshift 47018fff3f40Smrghost_cpu=$1 47028fff3f40Smrghost_vendor=$2 47038fff3f40Smrgshift; shift 47048fff3f40Smrg# Remember, the first character of IFS is used to create $*, 47058fff3f40Smrg# except with old shells: 47068fff3f40Smrghost_os=$* 47078fff3f40SmrgIFS=$ac_save_IFS 47088fff3f40Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 47098fff3f40Smrg 4710e6232409Smrg 47116d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 47126d1874b2Smrgprintf %s "checking for a sed that does not truncate output... " >&6; } 47136d1874b2Smrgif test ${ac_cv_path_SED+y} 47146d1874b2Smrgthen : 47156d1874b2Smrg printf %s "(cached) " >&6 47166d1874b2Smrgelse $as_nop 471794a251fdSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 471894a251fdSmrg for ac_i in 1 2 3 4 5 6 7; do 471994a251fdSmrg ac_script="$ac_script$as_nl$ac_script" 472094a251fdSmrg done 472194a251fdSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 472294a251fdSmrg { ac_script=; unset ac_script;} 472394a251fdSmrg if test -z "$SED"; then 472494a251fdSmrg ac_path_SED_found=false 472594a251fdSmrg # Loop through the user's path and test for each of PROGNAME-LIST 472694a251fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 472794a251fdSmrgfor as_dir in $PATH 472894a251fdSmrgdo 472994a251fdSmrg IFS=$as_save_IFS 47306d1874b2Smrg case $as_dir in #((( 47316d1874b2Smrg '') as_dir=./ ;; 47326d1874b2Smrg */) ;; 47336d1874b2Smrg *) as_dir=$as_dir/ ;; 47346d1874b2Smrg esac 47356d1874b2Smrg for ac_prog in sed gsed 47366d1874b2Smrg do 473794a251fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 47386d1874b2Smrg ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 47396a45684fSmrg as_fn_executable_p "$ac_path_SED" || continue 474094a251fdSmrg# Check for GNU ac_path_SED and select it if it is found. 474194a251fdSmrg # Check for GNU $ac_path_SED 474294a251fdSmrgcase `"$ac_path_SED" --version 2>&1` in 474394a251fdSmrg*GNU*) 474494a251fdSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 474594a251fdSmrg*) 474694a251fdSmrg ac_count=0 47476d1874b2Smrg printf %s 0123456789 >"conftest.in" 474894a251fdSmrg while : 474994a251fdSmrg do 475094a251fdSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 475194a251fdSmrg mv "conftest.tmp" "conftest.in" 475294a251fdSmrg cp "conftest.in" "conftest.nl" 47536d1874b2Smrg printf "%s\n" '' >> "conftest.nl" 475494a251fdSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 475594a251fdSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 475694a251fdSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 475794a251fdSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 475894a251fdSmrg # Best one so far, save it but keep looking for a better one 475994a251fdSmrg ac_cv_path_SED="$ac_path_SED" 476094a251fdSmrg ac_path_SED_max=$ac_count 476194a251fdSmrg fi 476294a251fdSmrg # 10*(2^10) chars as input seems more than enough 476394a251fdSmrg test $ac_count -gt 10 && break 476494a251fdSmrg done 476594a251fdSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 476694a251fdSmrgesac 476794a251fdSmrg 476894a251fdSmrg $ac_path_SED_found && break 3 476994a251fdSmrg done 477094a251fdSmrg done 477194a251fdSmrg done 477294a251fdSmrgIFS=$as_save_IFS 477394a251fdSmrg if test -z "$ac_cv_path_SED"; then 477494a251fdSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 477594a251fdSmrg fi 4776e6232409Smrgelse 477794a251fdSmrg ac_cv_path_SED=$SED 4778e6232409Smrgfi 47798fff3f40Smrg 4780e6232409Smrgfi 47816d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 47826d1874b2Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; } 478394a251fdSmrg SED="$ac_cv_path_SED" 478494a251fdSmrg rm -f conftest.sed 4785e6232409Smrg 4786e6232409Smrg 4787e6232409Smrg 47888fff3f40Smrg 47898fff3f40Smrg 47908fff3f40Smrg 479194a251fdSmrg# Check whether --enable-selective-werror was given. 47926d1874b2Smrgif test ${enable_selective_werror+y} 47936d1874b2Smrgthen : 479494a251fdSmrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 47956d1874b2Smrgelse $as_nop 479694a251fdSmrg SELECTIVE_WERROR=yes 4797e6232409Smrgfi 4798e6232409Smrg 4799e6232409Smrg 4800e6232409Smrg 4801e6232409Smrg 4802e6232409Smrg 480394a251fdSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 480494a251fdSmrgif test "x$SUNCC" = "xyes"; then 480594a251fdSmrg BASE_CFLAGS="-v" 48068fff3f40Smrgelse 480794a251fdSmrg BASE_CFLAGS="" 48088fff3f40Smrgfi 48098fff3f40Smrg 481094a251fdSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4811e6232409Smrg 4812e6232409Smrg 4813e6232409Smrg 4814e6232409Smrg 4815e6232409Smrg 4816e6232409Smrg 4817e6232409Smrg 4818e6232409Smrg 4819e6232409Smrg 4820e6232409Smrg 4821e6232409Smrg 4822e6232409Smrg 4823e6232409Smrg 482494a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 48258fff3f40Smrg 482694a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 482794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 48286d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 48296d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 48306d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 48316d1874b2Smrgthen : 48326d1874b2Smrg printf %s "(cached) " >&6 48336d1874b2Smrgelse $as_nop 483494a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 483594a251fdSmrg/* end confdefs.h. */ 483694a251fdSmrgint i; 483794a251fdSmrg_ACEOF 48386d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 48396d1874b2Smrgthen : 484094a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 48416d1874b2Smrgelse $as_nop 484294a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 4843e6232409Smrgfi 48446d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 48458fff3f40Smrgfi 48466d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 48476d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 484894a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 484994a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 4850e6232409Smrgfi 4851e6232409Smrg 485294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 485394a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 485494a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 485594a251fdSmrg fi 485694a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 48576d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 48586d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 48596d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 48606d1874b2Smrgthen : 48616d1874b2Smrg printf %s "(cached) " >&6 48626d1874b2Smrgelse $as_nop 486394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 486494a251fdSmrg/* end confdefs.h. */ 486594a251fdSmrgint i; 486694a251fdSmrg_ACEOF 48676d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 48686d1874b2Smrgthen : 486994a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 48706d1874b2Smrgelse $as_nop 487194a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 4872e6232409Smrgfi 48736d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 48748fff3f40Smrgfi 48756d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 48766d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 487794a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 487894a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 4879e6232409Smrgfi 4880e6232409Smrg 488194a251fdSmrgfound="no" 4882e6232409Smrg 488394a251fdSmrg if test $found = "no" ; then 48846a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 488594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 488694a251fdSmrg fi 4887e6232409Smrg 48886a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 488994a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 489094a251fdSmrg fi 4891e6232409Smrg 489294a251fdSmrg CFLAGS="$CFLAGS -Wall" 4893e6232409Smrg 48946d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 48956d1874b2Smrgprintf %s "checking if $CC supports -Wall... " >&6; } 489694a251fdSmrg cacheid=xorg_cv_cc_flag__Wall 48976d1874b2Smrg if eval test \${$cacheid+y} 48986d1874b2Smrgthen : 48996d1874b2Smrg printf %s "(cached) " >&6 49006d1874b2Smrgelse $as_nop 490194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 490294a251fdSmrg/* end confdefs.h. */ 490394a251fdSmrgint i; 490494a251fdSmrgint 49056d1874b2Smrgmain (void) 490694a251fdSmrg{ 4907e6232409Smrg 490894a251fdSmrg ; 490994a251fdSmrg return 0; 491094a251fdSmrg} 491194a251fdSmrg_ACEOF 49126d1874b2Smrgif ac_fn_c_try_link "$LINENO" 49136d1874b2Smrgthen : 491494a251fdSmrg eval $cacheid=yes 49156d1874b2Smrgelse $as_nop 491694a251fdSmrg eval $cacheid=no 491794a251fdSmrgfi 49186d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 491994a251fdSmrg conftest$ac_exeext conftest.$ac_ext 492094a251fdSmrgfi 4921e6232409Smrg 4922e6232409Smrg 492394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 4924e6232409Smrg 492594a251fdSmrg eval supported=\$$cacheid 49266d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 49276d1874b2Smrgprintf "%s\n" "$supported" >&6; } 492894a251fdSmrg if test "$supported" = "yes" ; then 492994a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 493094a251fdSmrg found="yes" 493194a251fdSmrg fi 493294a251fdSmrg fi 4933e6232409Smrg 4934e6232409Smrg 4935e6232409Smrg 4936e6232409Smrg 49378fff3f40Smrg 49388fff3f40Smrg 49398fff3f40Smrg 49408fff3f40Smrg 4941e6232409Smrg 4942e6232409Smrg 4943e6232409Smrg 4944e6232409Smrg 4945e6232409Smrg 4946e6232409Smrg 494794a251fdSmrg 494894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 494994a251fdSmrg 495094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 495194a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49526d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 49536d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 49546d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 49556d1874b2Smrgthen : 49566d1874b2Smrg printf %s "(cached) " >&6 49576d1874b2Smrgelse $as_nop 495894a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 495994a251fdSmrg/* end confdefs.h. */ 496094a251fdSmrgint i; 496194a251fdSmrg_ACEOF 49626d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 49636d1874b2Smrgthen : 496494a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 49656d1874b2Smrgelse $as_nop 496694a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 4967e6232409Smrgfi 49686d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4969e6232409Smrgfi 49706d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 49716d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 497294a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 497394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 4974e6232409Smrgfi 4975e6232409Smrg 497694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 497794a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 497894a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 497994a251fdSmrg fi 498094a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 49816d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 49826d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 49836d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 49846d1874b2Smrgthen : 49856d1874b2Smrg printf %s "(cached) " >&6 49866d1874b2Smrgelse $as_nop 498794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 498894a251fdSmrg/* end confdefs.h. */ 498994a251fdSmrgint i; 499094a251fdSmrg_ACEOF 49916d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 49926d1874b2Smrgthen : 499394a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 49946d1874b2Smrgelse $as_nop 499594a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 4996e6232409Smrgfi 49976d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4998e6232409Smrgfi 49996d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 50006d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 500194a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 500294a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5003e6232409Smrgfi 5004e6232409Smrg 500594a251fdSmrgfound="no" 500694a251fdSmrg 500794a251fdSmrg if test $found = "no" ; then 50086a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 500994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 501094a251fdSmrg fi 501194a251fdSmrg 50126a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 501394a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 501494a251fdSmrg fi 501594a251fdSmrg 501694a251fdSmrg CFLAGS="$CFLAGS -Wpointer-arith" 501794a251fdSmrg 50186d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 50196d1874b2Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; } 502094a251fdSmrg cacheid=xorg_cv_cc_flag__Wpointer_arith 50216d1874b2Smrg if eval test \${$cacheid+y} 50226d1874b2Smrgthen : 50236d1874b2Smrg printf %s "(cached) " >&6 50246d1874b2Smrgelse $as_nop 502594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 502694a251fdSmrg/* end confdefs.h. */ 502794a251fdSmrgint i; 502894a251fdSmrgint 50296d1874b2Smrgmain (void) 503094a251fdSmrg{ 503194a251fdSmrg 503294a251fdSmrg ; 503394a251fdSmrg return 0; 503494a251fdSmrg} 503594a251fdSmrg_ACEOF 50366d1874b2Smrgif ac_fn_c_try_link "$LINENO" 50376d1874b2Smrgthen : 503894a251fdSmrg eval $cacheid=yes 50396d1874b2Smrgelse $as_nop 504094a251fdSmrg eval $cacheid=no 504194a251fdSmrgfi 50426d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 504394a251fdSmrg conftest$ac_exeext conftest.$ac_ext 5044e6232409Smrgfi 5045e6232409Smrg 504694a251fdSmrg 504794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 504894a251fdSmrg 504994a251fdSmrg eval supported=\$$cacheid 50506d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 50516d1874b2Smrgprintf "%s\n" "$supported" >&6; } 505294a251fdSmrg if test "$supported" = "yes" ; then 505394a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 505494a251fdSmrg found="yes" 505594a251fdSmrg fi 505694a251fdSmrg fi 505794a251fdSmrg 505894a251fdSmrg 505994a251fdSmrg 506094a251fdSmrg 506194a251fdSmrg 506294a251fdSmrg 506394a251fdSmrg 506494a251fdSmrg 506594a251fdSmrg 506694a251fdSmrg 506794a251fdSmrg 506894a251fdSmrg 506994a251fdSmrg 507094a251fdSmrg 507194a251fdSmrg 507294a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 507394a251fdSmrg 507494a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 507594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50766d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 50776d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 50786d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 50796d1874b2Smrgthen : 50806d1874b2Smrg printf %s "(cached) " >&6 50816d1874b2Smrgelse $as_nop 508294a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 508394a251fdSmrg/* end confdefs.h. */ 508494a251fdSmrgint i; 508594a251fdSmrg_ACEOF 50866d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 50876d1874b2Smrgthen : 508894a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 50896d1874b2Smrgelse $as_nop 509094a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 5091e6232409Smrgfi 50926d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5093e6232409Smrgfi 50946d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 50956d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 509694a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 509794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 509894a251fdSmrgfi 509994a251fdSmrg 510094a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 510194a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 510294a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 510394a251fdSmrg fi 510494a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 51056d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 51066d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 51076d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 51086d1874b2Smrgthen : 51096d1874b2Smrg printf %s "(cached) " >&6 51106d1874b2Smrgelse $as_nop 511194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 511294a251fdSmrg/* end confdefs.h. */ 511394a251fdSmrgint i; 511494a251fdSmrg_ACEOF 51156d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 51166d1874b2Smrgthen : 511794a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 51186d1874b2Smrgelse $as_nop 511994a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 512094a251fdSmrgfi 51216d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 512294a251fdSmrgfi 51236d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 51246d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 512594a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 512694a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5127e6232409Smrgfi 5128e6232409Smrg 512994a251fdSmrgfound="no" 5130e6232409Smrg 513194a251fdSmrg if test $found = "no" ; then 51326a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 513394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 513494a251fdSmrg fi 513594a251fdSmrg 51366a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 513794a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 513894a251fdSmrg fi 513994a251fdSmrg 514094a251fdSmrg CFLAGS="$CFLAGS -Wmissing-declarations" 514194a251fdSmrg 51426d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 51436d1874b2Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 514494a251fdSmrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 51456d1874b2Smrg if eval test \${$cacheid+y} 51466d1874b2Smrgthen : 51476d1874b2Smrg printf %s "(cached) " >&6 51486d1874b2Smrgelse $as_nop 514994a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 515094a251fdSmrg/* end confdefs.h. */ 515194a251fdSmrgint i; 515294a251fdSmrgint 51536d1874b2Smrgmain (void) 515494a251fdSmrg{ 5155e6232409Smrg 515694a251fdSmrg ; 515794a251fdSmrg return 0; 515894a251fdSmrg} 515994a251fdSmrg_ACEOF 51606d1874b2Smrgif ac_fn_c_try_link "$LINENO" 51616d1874b2Smrgthen : 516294a251fdSmrg eval $cacheid=yes 51636d1874b2Smrgelse $as_nop 516494a251fdSmrg eval $cacheid=no 516594a251fdSmrgfi 51666d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 516794a251fdSmrg conftest$ac_exeext conftest.$ac_ext 516894a251fdSmrgfi 516994a251fdSmrg 517094a251fdSmrg 517194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 517294a251fdSmrg 517394a251fdSmrg eval supported=\$$cacheid 51746d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 51756d1874b2Smrgprintf "%s\n" "$supported" >&6; } 517694a251fdSmrg if test "$supported" = "yes" ; then 517794a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 517894a251fdSmrg found="yes" 517994a251fdSmrg fi 518094a251fdSmrg fi 518194a251fdSmrg 518294a251fdSmrg 518394a251fdSmrg 518494a251fdSmrg 518594a251fdSmrg 518694a251fdSmrg 518794a251fdSmrg 518894a251fdSmrg 518994a251fdSmrg 519094a251fdSmrg 519194a251fdSmrg 519294a251fdSmrg 519394a251fdSmrg 519494a251fdSmrg 519594a251fdSmrg 519694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 519794a251fdSmrg 519894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 519994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52006d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 52016d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 52026d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 52036d1874b2Smrgthen : 52046d1874b2Smrg printf %s "(cached) " >&6 52056d1874b2Smrgelse $as_nop 520694a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 520794a251fdSmrg/* end confdefs.h. */ 520894a251fdSmrgint i; 520994a251fdSmrg_ACEOF 52106d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 52116d1874b2Smrgthen : 521294a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 52136d1874b2Smrgelse $as_nop 521494a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 5215e6232409Smrgfi 52166d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5217e6232409Smrgfi 52186d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 52196d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 522094a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 522194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5222e6232409Smrgfi 522394a251fdSmrg 522494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 522594a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 522694a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 522794a251fdSmrg fi 522894a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52296d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 52306d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 52316d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 52326d1874b2Smrgthen : 52336d1874b2Smrg printf %s "(cached) " >&6 52346d1874b2Smrgelse $as_nop 523594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 523694a251fdSmrg/* end confdefs.h. */ 523794a251fdSmrgint i; 523894a251fdSmrg_ACEOF 52396d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 52406d1874b2Smrgthen : 524194a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 52426d1874b2Smrgelse $as_nop 524394a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 524494a251fdSmrgfi 52456d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 524694a251fdSmrgfi 52476d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 52486d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 524994a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 525094a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5251e6232409Smrgfi 5252e6232409Smrg 525394a251fdSmrgfound="no" 5254e6232409Smrg 525594a251fdSmrg if test $found = "no" ; then 52566a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 525794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 525894a251fdSmrg fi 525994a251fdSmrg 52606a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 526194a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 526294a251fdSmrg fi 526394a251fdSmrg 526494a251fdSmrg CFLAGS="$CFLAGS -Wformat=2" 526594a251fdSmrg 52666d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 52676d1874b2Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; } 52686a45684fSmrg cacheid=xorg_cv_cc_flag__Wformat_2 52696d1874b2Smrg if eval test \${$cacheid+y} 52706d1874b2Smrgthen : 52716d1874b2Smrg printf %s "(cached) " >&6 52726d1874b2Smrgelse $as_nop 527394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 527494a251fdSmrg/* end confdefs.h. */ 527594a251fdSmrgint i; 527694a251fdSmrgint 52776d1874b2Smrgmain (void) 527894a251fdSmrg{ 5279e6232409Smrg 528094a251fdSmrg ; 528194a251fdSmrg return 0; 528294a251fdSmrg} 528394a251fdSmrg_ACEOF 52846d1874b2Smrgif ac_fn_c_try_link "$LINENO" 52856d1874b2Smrgthen : 528694a251fdSmrg eval $cacheid=yes 52876d1874b2Smrgelse $as_nop 528894a251fdSmrg eval $cacheid=no 5289e6232409Smrgfi 52906d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 529194a251fdSmrg conftest$ac_exeext conftest.$ac_ext 5292e6232409Smrgfi 529394a251fdSmrg 529494a251fdSmrg 529594a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 529694a251fdSmrg 529794a251fdSmrg eval supported=\$$cacheid 52986d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 52996d1874b2Smrgprintf "%s\n" "$supported" >&6; } 530094a251fdSmrg if test "$supported" = "yes" ; then 530194a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 530294a251fdSmrg found="yes" 530394a251fdSmrg fi 530494a251fdSmrg fi 530594a251fdSmrg 530694a251fdSmrg if test $found = "no" ; then 53076a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 530894a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 530994a251fdSmrg fi 531094a251fdSmrg 53116a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 531294a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 531394a251fdSmrg fi 531494a251fdSmrg 531594a251fdSmrg CFLAGS="$CFLAGS -Wformat" 531694a251fdSmrg 53176d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 53186d1874b2Smrgprintf %s "checking if $CC supports -Wformat... " >&6; } 531994a251fdSmrg cacheid=xorg_cv_cc_flag__Wformat 53206d1874b2Smrg if eval test \${$cacheid+y} 53216d1874b2Smrgthen : 53226d1874b2Smrg printf %s "(cached) " >&6 53236d1874b2Smrgelse $as_nop 532494a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 532594a251fdSmrg/* end confdefs.h. */ 532694a251fdSmrgint i; 532794a251fdSmrgint 53286d1874b2Smrgmain (void) 532994a251fdSmrg{ 533094a251fdSmrg 533194a251fdSmrg ; 533294a251fdSmrg return 0; 533394a251fdSmrg} 533494a251fdSmrg_ACEOF 53356d1874b2Smrgif ac_fn_c_try_link "$LINENO" 53366d1874b2Smrgthen : 533794a251fdSmrg eval $cacheid=yes 53386d1874b2Smrgelse $as_nop 533994a251fdSmrg eval $cacheid=no 534094a251fdSmrgfi 53416d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 534294a251fdSmrg conftest$ac_exeext conftest.$ac_ext 5343e6232409Smrgfi 5344e6232409Smrg 5345e6232409Smrg 534694a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 534794a251fdSmrg 534894a251fdSmrg eval supported=\$$cacheid 53496d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 53506d1874b2Smrgprintf "%s\n" "$supported" >&6; } 535194a251fdSmrg if test "$supported" = "yes" ; then 535294a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 535394a251fdSmrg found="yes" 535494a251fdSmrg fi 535594a251fdSmrg fi 535694a251fdSmrg 535794a251fdSmrg 535894a251fdSmrg 535994a251fdSmrg 536094a251fdSmrg 536194a251fdSmrg 536294a251fdSmrg 536394a251fdSmrg 536494a251fdSmrg 536594a251fdSmrg 536694a251fdSmrg 536794a251fdSmrg 536894a251fdSmrg 536994a251fdSmrg 537094a251fdSmrg 537194a251fdSmrg 537294a251fdSmrg 537394a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 537494a251fdSmrg 537594a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 537694a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53776d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 53786d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 53796d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 53806d1874b2Smrgthen : 53816d1874b2Smrg printf %s "(cached) " >&6 53826d1874b2Smrgelse $as_nop 538394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 538494a251fdSmrg/* end confdefs.h. */ 538594a251fdSmrgint i; 538694a251fdSmrg_ACEOF 53876d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 53886d1874b2Smrgthen : 538994a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 53906d1874b2Smrgelse $as_nop 539194a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 5392e6232409Smrgfi 53936d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5394e6232409Smrgfi 53956d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 53966d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 539794a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 539894a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 539994a251fdSmrgfi 540094a251fdSmrg 540194a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 540294a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 540394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 540494a251fdSmrg fi 540594a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54066d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 54076d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 54086d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 54096d1874b2Smrgthen : 54106d1874b2Smrg printf %s "(cached) " >&6 54116d1874b2Smrgelse $as_nop 541294a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 541394a251fdSmrg/* end confdefs.h. */ 541494a251fdSmrgint i; 541594a251fdSmrg_ACEOF 54166d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 54176d1874b2Smrgthen : 541894a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 54196d1874b2Smrgelse $as_nop 542094a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 542194a251fdSmrgfi 54226d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 542394a251fdSmrgfi 54246d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 54256d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 542694a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 542794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5428e6232409Smrgfi 5429e6232409Smrg 543094a251fdSmrgfound="no" 5431e6232409Smrg 543294a251fdSmrg if test $found = "no" ; then 54336a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 543494a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 543594a251fdSmrg fi 5436e6232409Smrg 54376a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 543894a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 543994a251fdSmrg fi 544094a251fdSmrg 544194a251fdSmrg CFLAGS="$CFLAGS -Wstrict-prototypes" 544294a251fdSmrg 54436d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 54446d1874b2Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 544594a251fdSmrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 54466d1874b2Smrg if eval test \${$cacheid+y} 54476d1874b2Smrgthen : 54486d1874b2Smrg printf %s "(cached) " >&6 54496d1874b2Smrgelse $as_nop 545094a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 545194a251fdSmrg/* end confdefs.h. */ 545294a251fdSmrgint i; 545394a251fdSmrgint 54546d1874b2Smrgmain (void) 545594a251fdSmrg{ 5456e6232409Smrg 545794a251fdSmrg ; 545894a251fdSmrg return 0; 545994a251fdSmrg} 546094a251fdSmrg_ACEOF 54616d1874b2Smrgif ac_fn_c_try_link "$LINENO" 54626d1874b2Smrgthen : 546394a251fdSmrg eval $cacheid=yes 54646d1874b2Smrgelse $as_nop 546594a251fdSmrg eval $cacheid=no 546694a251fdSmrgfi 54676d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 546894a251fdSmrg conftest$ac_exeext conftest.$ac_ext 5469e6232409Smrgfi 5470e6232409Smrg 5471e6232409Smrg 547294a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5473e6232409Smrg 547494a251fdSmrg eval supported=\$$cacheid 54756d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 54766d1874b2Smrgprintf "%s\n" "$supported" >&6; } 547794a251fdSmrg if test "$supported" = "yes" ; then 547894a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 547994a251fdSmrg found="yes" 548094a251fdSmrg fi 548194a251fdSmrg fi 548294a251fdSmrg 548394a251fdSmrg 548494a251fdSmrg 548594a251fdSmrg 548694a251fdSmrg 548794a251fdSmrg 548894a251fdSmrg 548994a251fdSmrg 549094a251fdSmrg 549194a251fdSmrg 549294a251fdSmrg 549394a251fdSmrg 549494a251fdSmrg 549594a251fdSmrg 549694a251fdSmrg 549794a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 549894a251fdSmrg 549994a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 550094a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55016d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 55026d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 55036d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 55046d1874b2Smrgthen : 55056d1874b2Smrg printf %s "(cached) " >&6 55066d1874b2Smrgelse $as_nop 550794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 550894a251fdSmrg/* end confdefs.h. */ 550994a251fdSmrgint i; 551094a251fdSmrg_ACEOF 55116d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 55126d1874b2Smrgthen : 551394a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 55146d1874b2Smrgelse $as_nop 551594a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 551694a251fdSmrgfi 55176d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 551894a251fdSmrgfi 55196d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 55206d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 552194a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 552294a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 552394a251fdSmrgfi 552494a251fdSmrg 552594a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 552694a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 552794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 552894a251fdSmrg fi 552994a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 55306d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 55316d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 55326d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 55336d1874b2Smrgthen : 55346d1874b2Smrg printf %s "(cached) " >&6 55356d1874b2Smrgelse $as_nop 553694a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 553794a251fdSmrg/* end confdefs.h. */ 553894a251fdSmrgint i; 553994a251fdSmrg_ACEOF 55406d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 55416d1874b2Smrgthen : 554294a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 55436d1874b2Smrgelse $as_nop 554494a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 554594a251fdSmrgfi 55466d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 554794a251fdSmrgfi 55486d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 55496d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 555094a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 555194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 555294a251fdSmrgfi 555394a251fdSmrg 555494a251fdSmrgfound="no" 555594a251fdSmrg 555694a251fdSmrg if test $found = "no" ; then 55576a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 555894a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 555994a251fdSmrg fi 556094a251fdSmrg 55616a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 556294a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 556394a251fdSmrg fi 556494a251fdSmrg 556594a251fdSmrg CFLAGS="$CFLAGS -Wmissing-prototypes" 556694a251fdSmrg 55676d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 55686d1874b2Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 556994a251fdSmrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 55706d1874b2Smrg if eval test \${$cacheid+y} 55716d1874b2Smrgthen : 55726d1874b2Smrg printf %s "(cached) " >&6 55736d1874b2Smrgelse $as_nop 557494a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 557594a251fdSmrg/* end confdefs.h. */ 557694a251fdSmrgint i; 557794a251fdSmrgint 55786d1874b2Smrgmain (void) 557994a251fdSmrg{ 558094a251fdSmrg 558194a251fdSmrg ; 558294a251fdSmrg return 0; 558394a251fdSmrg} 558494a251fdSmrg_ACEOF 55856d1874b2Smrgif ac_fn_c_try_link "$LINENO" 55866d1874b2Smrgthen : 558794a251fdSmrg eval $cacheid=yes 55886d1874b2Smrgelse $as_nop 558994a251fdSmrg eval $cacheid=no 559094a251fdSmrgfi 55916d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 559294a251fdSmrg conftest$ac_exeext conftest.$ac_ext 559394a251fdSmrgfi 559494a251fdSmrg 559594a251fdSmrg 559694a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 559794a251fdSmrg 559894a251fdSmrg eval supported=\$$cacheid 55996d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 56006d1874b2Smrgprintf "%s\n" "$supported" >&6; } 560194a251fdSmrg if test "$supported" = "yes" ; then 560294a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 560394a251fdSmrg found="yes" 560494a251fdSmrg fi 560594a251fdSmrg fi 560694a251fdSmrg 560794a251fdSmrg 560894a251fdSmrg 560994a251fdSmrg 561094a251fdSmrg 561194a251fdSmrg 561294a251fdSmrg 561394a251fdSmrg 561494a251fdSmrg 561594a251fdSmrg 561694a251fdSmrg 561794a251fdSmrg 561894a251fdSmrg 561994a251fdSmrg 562094a251fdSmrg 562194a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 562294a251fdSmrg 562394a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 562494a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56256d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 56266d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 56276d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 56286d1874b2Smrgthen : 56296d1874b2Smrg printf %s "(cached) " >&6 56306d1874b2Smrgelse $as_nop 563194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 563294a251fdSmrg/* end confdefs.h. */ 563394a251fdSmrgint i; 563494a251fdSmrg_ACEOF 56356d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 56366d1874b2Smrgthen : 563794a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 56386d1874b2Smrgelse $as_nop 563994a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 564094a251fdSmrgfi 56416d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 564294a251fdSmrgfi 56436d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 56446d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 564594a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 564694a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 564794a251fdSmrgfi 564894a251fdSmrg 564994a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 565094a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 565194a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 565294a251fdSmrg fi 565394a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 56546d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 56556d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 56566d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 56576d1874b2Smrgthen : 56586d1874b2Smrg printf %s "(cached) " >&6 56596d1874b2Smrgelse $as_nop 566094a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 566194a251fdSmrg/* end confdefs.h. */ 566294a251fdSmrgint i; 566394a251fdSmrg_ACEOF 56646d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 56656d1874b2Smrgthen : 566694a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 56676d1874b2Smrgelse $as_nop 566894a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 566994a251fdSmrgfi 56706d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 567194a251fdSmrgfi 56726d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 56736d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 567494a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 567594a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 567694a251fdSmrgfi 567794a251fdSmrg 567894a251fdSmrgfound="no" 567994a251fdSmrg 568094a251fdSmrg if test $found = "no" ; then 56816a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 568294a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 568394a251fdSmrg fi 568494a251fdSmrg 56856a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 568694a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 568794a251fdSmrg fi 568894a251fdSmrg 568994a251fdSmrg CFLAGS="$CFLAGS -Wnested-externs" 569094a251fdSmrg 56916d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 56926d1874b2Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; } 569394a251fdSmrg cacheid=xorg_cv_cc_flag__Wnested_externs 56946d1874b2Smrg if eval test \${$cacheid+y} 56956d1874b2Smrgthen : 56966d1874b2Smrg printf %s "(cached) " >&6 56976d1874b2Smrgelse $as_nop 569894a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 569994a251fdSmrg/* end confdefs.h. */ 570094a251fdSmrgint i; 570194a251fdSmrgint 57026d1874b2Smrgmain (void) 570394a251fdSmrg{ 570494a251fdSmrg 570594a251fdSmrg ; 570694a251fdSmrg return 0; 570794a251fdSmrg} 570894a251fdSmrg_ACEOF 57096d1874b2Smrgif ac_fn_c_try_link "$LINENO" 57106d1874b2Smrgthen : 571194a251fdSmrg eval $cacheid=yes 57126d1874b2Smrgelse $as_nop 571394a251fdSmrg eval $cacheid=no 571494a251fdSmrgfi 57156d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 571694a251fdSmrg conftest$ac_exeext conftest.$ac_ext 571794a251fdSmrgfi 571894a251fdSmrg 571994a251fdSmrg 572094a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 572194a251fdSmrg 572294a251fdSmrg eval supported=\$$cacheid 57236d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 57246d1874b2Smrgprintf "%s\n" "$supported" >&6; } 572594a251fdSmrg if test "$supported" = "yes" ; then 572694a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 572794a251fdSmrg found="yes" 572894a251fdSmrg fi 572994a251fdSmrg fi 573094a251fdSmrg 573194a251fdSmrg 573294a251fdSmrg 573394a251fdSmrg 573494a251fdSmrg 573594a251fdSmrg 573694a251fdSmrg 573794a251fdSmrg 573894a251fdSmrg 573994a251fdSmrg 574094a251fdSmrg 574194a251fdSmrg 574294a251fdSmrg 574394a251fdSmrg 574494a251fdSmrg 574594a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 574694a251fdSmrg 574794a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 574894a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57496d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 57506d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 57516d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 57526d1874b2Smrgthen : 57536d1874b2Smrg printf %s "(cached) " >&6 57546d1874b2Smrgelse $as_nop 575594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 575694a251fdSmrg/* end confdefs.h. */ 575794a251fdSmrgint i; 575894a251fdSmrg_ACEOF 57596d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 57606d1874b2Smrgthen : 576194a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 57626d1874b2Smrgelse $as_nop 576394a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 576494a251fdSmrgfi 57656d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 576694a251fdSmrgfi 57676d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 57686d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 576994a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 577094a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 577194a251fdSmrgfi 577294a251fdSmrg 577394a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 577494a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 577594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 577694a251fdSmrg fi 577794a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57786d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 57796d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 57806d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 57816d1874b2Smrgthen : 57826d1874b2Smrg printf %s "(cached) " >&6 57836d1874b2Smrgelse $as_nop 578494a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 578594a251fdSmrg/* end confdefs.h. */ 578694a251fdSmrgint i; 578794a251fdSmrg_ACEOF 57886d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 57896d1874b2Smrgthen : 579094a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 57916d1874b2Smrgelse $as_nop 579294a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 579394a251fdSmrgfi 57946d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 579594a251fdSmrgfi 57966d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 57976d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 579894a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 579994a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 580094a251fdSmrgfi 580194a251fdSmrg 580294a251fdSmrgfound="no" 580394a251fdSmrg 580494a251fdSmrg if test $found = "no" ; then 58056a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 580694a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 580794a251fdSmrg fi 580894a251fdSmrg 58096a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 581094a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 581194a251fdSmrg fi 581294a251fdSmrg 581394a251fdSmrg CFLAGS="$CFLAGS -Wbad-function-cast" 581494a251fdSmrg 58156d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 58166d1874b2Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 581794a251fdSmrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 58186d1874b2Smrg if eval test \${$cacheid+y} 58196d1874b2Smrgthen : 58206d1874b2Smrg printf %s "(cached) " >&6 58216d1874b2Smrgelse $as_nop 582294a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 582394a251fdSmrg/* end confdefs.h. */ 582494a251fdSmrgint i; 582594a251fdSmrgint 58266d1874b2Smrgmain (void) 582794a251fdSmrg{ 582894a251fdSmrg 582994a251fdSmrg ; 583094a251fdSmrg return 0; 583194a251fdSmrg} 583294a251fdSmrg_ACEOF 58336d1874b2Smrgif ac_fn_c_try_link "$LINENO" 58346d1874b2Smrgthen : 583594a251fdSmrg eval $cacheid=yes 58366d1874b2Smrgelse $as_nop 583794a251fdSmrg eval $cacheid=no 583894a251fdSmrgfi 58396d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 584094a251fdSmrg conftest$ac_exeext conftest.$ac_ext 584194a251fdSmrgfi 584294a251fdSmrg 584394a251fdSmrg 584494a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 584594a251fdSmrg 584694a251fdSmrg eval supported=\$$cacheid 58476d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 58486d1874b2Smrgprintf "%s\n" "$supported" >&6; } 584994a251fdSmrg if test "$supported" = "yes" ; then 585094a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 585194a251fdSmrg found="yes" 585294a251fdSmrg fi 585394a251fdSmrg fi 585494a251fdSmrg 585594a251fdSmrg 585694a251fdSmrg 585794a251fdSmrg 585894a251fdSmrg 585994a251fdSmrg 586094a251fdSmrg 586194a251fdSmrg 586294a251fdSmrg 586394a251fdSmrg 586494a251fdSmrg 586594a251fdSmrg 586694a251fdSmrg 586794a251fdSmrg 586894a251fdSmrg 586994a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 587094a251fdSmrg 587194a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 587294a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58736d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 58746d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 58756d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 58766d1874b2Smrgthen : 58776d1874b2Smrg printf %s "(cached) " >&6 58786d1874b2Smrgelse $as_nop 587994a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 588094a251fdSmrg/* end confdefs.h. */ 588194a251fdSmrgint i; 588294a251fdSmrg_ACEOF 58836d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 58846d1874b2Smrgthen : 588594a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 58866d1874b2Smrgelse $as_nop 588794a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 588894a251fdSmrgfi 58896d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 589094a251fdSmrgfi 58916d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 58926d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 589394a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 589494a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 589594a251fdSmrgfi 589694a251fdSmrg 589794a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 589894a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 589994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 590094a251fdSmrg fi 590194a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59026d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 59036d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 59046d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 59056d1874b2Smrgthen : 59066d1874b2Smrg printf %s "(cached) " >&6 59076d1874b2Smrgelse $as_nop 590894a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 590994a251fdSmrg/* end confdefs.h. */ 591094a251fdSmrgint i; 591194a251fdSmrg_ACEOF 59126d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 59136d1874b2Smrgthen : 591494a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 59156d1874b2Smrgelse $as_nop 591694a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 591794a251fdSmrgfi 59186d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 591994a251fdSmrgfi 59206d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 59216d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 592294a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 592394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 592494a251fdSmrgfi 592594a251fdSmrg 592694a251fdSmrgfound="no" 592794a251fdSmrg 592894a251fdSmrg if test $found = "no" ; then 59296a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 593094a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 593194a251fdSmrg fi 593294a251fdSmrg 59336a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 593494a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 593594a251fdSmrg fi 593694a251fdSmrg 593794a251fdSmrg CFLAGS="$CFLAGS -Wold-style-definition" 593894a251fdSmrg 59396d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 59406d1874b2Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; } 594194a251fdSmrg cacheid=xorg_cv_cc_flag__Wold_style_definition 59426d1874b2Smrg if eval test \${$cacheid+y} 59436d1874b2Smrgthen : 59446d1874b2Smrg printf %s "(cached) " >&6 59456d1874b2Smrgelse $as_nop 594694a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 594794a251fdSmrg/* end confdefs.h. */ 594894a251fdSmrgint i; 594994a251fdSmrgint 59506d1874b2Smrgmain (void) 595194a251fdSmrg{ 595294a251fdSmrg 595394a251fdSmrg ; 595494a251fdSmrg return 0; 595594a251fdSmrg} 595694a251fdSmrg_ACEOF 59576d1874b2Smrgif ac_fn_c_try_link "$LINENO" 59586d1874b2Smrgthen : 595994a251fdSmrg eval $cacheid=yes 59606d1874b2Smrgelse $as_nop 596194a251fdSmrg eval $cacheid=no 596294a251fdSmrgfi 59636d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 596494a251fdSmrg conftest$ac_exeext conftest.$ac_ext 596594a251fdSmrgfi 596694a251fdSmrg 596794a251fdSmrg 596894a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 596994a251fdSmrg 597094a251fdSmrg eval supported=\$$cacheid 59716d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 59726d1874b2Smrgprintf "%s\n" "$supported" >&6; } 597394a251fdSmrg if test "$supported" = "yes" ; then 597494a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 597594a251fdSmrg found="yes" 597694a251fdSmrg fi 597794a251fdSmrg fi 597894a251fdSmrg 59796a45684fSmrg if test $found = "no" ; then 59806a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 59816a45684fSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59826a45684fSmrg fi 59836a45684fSmrg 59846a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 59856a45684fSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59866a45684fSmrg fi 59876a45684fSmrg 59886a45684fSmrg CFLAGS="$CFLAGS -fd" 59896a45684fSmrg 59906d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 59916d1874b2Smrgprintf %s "checking if $CC supports -fd... " >&6; } 59926a45684fSmrg cacheid=xorg_cv_cc_flag__fd 59936d1874b2Smrg if eval test \${$cacheid+y} 59946d1874b2Smrgthen : 59956d1874b2Smrg printf %s "(cached) " >&6 59966d1874b2Smrgelse $as_nop 59976a45684fSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59986a45684fSmrg/* end confdefs.h. */ 59996a45684fSmrgint i; 60006a45684fSmrgint 60016d1874b2Smrgmain (void) 60026a45684fSmrg{ 60036a45684fSmrg 60046a45684fSmrg ; 60056a45684fSmrg return 0; 60066a45684fSmrg} 60076a45684fSmrg_ACEOF 60086d1874b2Smrgif ac_fn_c_try_link "$LINENO" 60096d1874b2Smrgthen : 60106a45684fSmrg eval $cacheid=yes 60116d1874b2Smrgelse $as_nop 60126a45684fSmrg eval $cacheid=no 60136a45684fSmrgfi 60146d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 60156a45684fSmrg conftest$ac_exeext conftest.$ac_ext 60166a45684fSmrgfi 60176a45684fSmrg 60186a45684fSmrg 60196a45684fSmrg CFLAGS="$xorg_testset_save_CFLAGS" 60206a45684fSmrg 60216a45684fSmrg eval supported=\$$cacheid 60226d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 60236d1874b2Smrgprintf "%s\n" "$supported" >&6; } 60246a45684fSmrg if test "$supported" = "yes" ; then 60256a45684fSmrg BASE_CFLAGS="$BASE_CFLAGS -fd" 60266a45684fSmrg found="yes" 60276a45684fSmrg fi 60286a45684fSmrg fi 60296a45684fSmrg 603094a251fdSmrg 603194a251fdSmrg 603294a251fdSmrg 603394a251fdSmrg 603494a251fdSmrg 603594a251fdSmrg 603694a251fdSmrg 603794a251fdSmrg 603894a251fdSmrg 603994a251fdSmrg 604094a251fdSmrg 604194a251fdSmrg 604294a251fdSmrg 604394a251fdSmrg 604494a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 604594a251fdSmrg 604694a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 604794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60486d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 60496d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 60506d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 60516d1874b2Smrgthen : 60526d1874b2Smrg printf %s "(cached) " >&6 60536d1874b2Smrgelse $as_nop 605494a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 605594a251fdSmrg/* end confdefs.h. */ 605694a251fdSmrgint i; 605794a251fdSmrg_ACEOF 60586d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 60596d1874b2Smrgthen : 606094a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 60616d1874b2Smrgelse $as_nop 606294a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 606394a251fdSmrgfi 60646d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 606594a251fdSmrgfi 60666d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 60676d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 606894a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 606994a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 607094a251fdSmrgfi 607194a251fdSmrg 607294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 607394a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 607494a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 607594a251fdSmrg fi 607694a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 60776d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 60786d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 60796d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 60806d1874b2Smrgthen : 60816d1874b2Smrg printf %s "(cached) " >&6 60826d1874b2Smrgelse $as_nop 608394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 608494a251fdSmrg/* end confdefs.h. */ 608594a251fdSmrgint i; 608694a251fdSmrg_ACEOF 60876d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 60886d1874b2Smrgthen : 608994a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 60906d1874b2Smrgelse $as_nop 609194a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 609294a251fdSmrgfi 60936d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 609494a251fdSmrgfi 60956d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 60966d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 609794a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 609894a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 609994a251fdSmrgfi 610094a251fdSmrg 610194a251fdSmrgfound="no" 610294a251fdSmrg 610394a251fdSmrg if test $found = "no" ; then 61046a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 610594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 610694a251fdSmrg fi 610794a251fdSmrg 61086a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 610994a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 611094a251fdSmrg fi 611194a251fdSmrg 611294a251fdSmrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 611394a251fdSmrg 61146d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 61156d1874b2Smrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 611694a251fdSmrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 61176d1874b2Smrg if eval test \${$cacheid+y} 61186d1874b2Smrgthen : 61196d1874b2Smrg printf %s "(cached) " >&6 61206d1874b2Smrgelse $as_nop 612194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 612294a251fdSmrg/* end confdefs.h. */ 612394a251fdSmrgint i; 612494a251fdSmrgint 61256d1874b2Smrgmain (void) 612694a251fdSmrg{ 612794a251fdSmrg 612894a251fdSmrg ; 612994a251fdSmrg return 0; 613094a251fdSmrg} 613194a251fdSmrg_ACEOF 61326d1874b2Smrgif ac_fn_c_try_link "$LINENO" 61336d1874b2Smrgthen : 613494a251fdSmrg eval $cacheid=yes 61356d1874b2Smrgelse $as_nop 613694a251fdSmrg eval $cacheid=no 613794a251fdSmrgfi 61386d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 613994a251fdSmrg conftest$ac_exeext conftest.$ac_ext 614094a251fdSmrgfi 614194a251fdSmrg 614294a251fdSmrg 614394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 614494a251fdSmrg 614594a251fdSmrg eval supported=\$$cacheid 61466d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 61476d1874b2Smrgprintf "%s\n" "$supported" >&6; } 614894a251fdSmrg if test "$supported" = "yes" ; then 614994a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 615094a251fdSmrg found="yes" 615194a251fdSmrg fi 615294a251fdSmrg fi 615394a251fdSmrg 615494a251fdSmrg 615594a251fdSmrg 615694a251fdSmrg 615794a251fdSmrg 615894a251fdSmrg# This chunk adds additional warnings that could catch undesired effects. 615994a251fdSmrg 616094a251fdSmrg 616194a251fdSmrg 616294a251fdSmrg 616394a251fdSmrg 616494a251fdSmrg 616594a251fdSmrg 616694a251fdSmrg 616794a251fdSmrg 616894a251fdSmrg 616994a251fdSmrg 617094a251fdSmrg 617194a251fdSmrg 617294a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 617394a251fdSmrg 617494a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 617594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61766d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 61776d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 61786d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 61796d1874b2Smrgthen : 61806d1874b2Smrg printf %s "(cached) " >&6 61816d1874b2Smrgelse $as_nop 618294a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 618394a251fdSmrg/* end confdefs.h. */ 618494a251fdSmrgint i; 618594a251fdSmrg_ACEOF 61866d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 61876d1874b2Smrgthen : 618894a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 61896d1874b2Smrgelse $as_nop 619094a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 619194a251fdSmrgfi 61926d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 619394a251fdSmrgfi 61946d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 61956d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 619694a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 619794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 619894a251fdSmrgfi 619994a251fdSmrg 620094a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 620194a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 620294a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 620394a251fdSmrg fi 620494a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62056d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 62066d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 62076d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 62086d1874b2Smrgthen : 62096d1874b2Smrg printf %s "(cached) " >&6 62106d1874b2Smrgelse $as_nop 621194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 621294a251fdSmrg/* end confdefs.h. */ 621394a251fdSmrgint i; 621494a251fdSmrg_ACEOF 62156d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 62166d1874b2Smrgthen : 621794a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 62186d1874b2Smrgelse $as_nop 621994a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 622094a251fdSmrgfi 62216d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 622294a251fdSmrgfi 62236d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 62246d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 622594a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 622694a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 622794a251fdSmrgfi 622894a251fdSmrg 622994a251fdSmrgfound="no" 623094a251fdSmrg 623194a251fdSmrg if test $found = "no" ; then 62326a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 623394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 623494a251fdSmrg fi 623594a251fdSmrg 62366a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 623794a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 623894a251fdSmrg fi 623994a251fdSmrg 624094a251fdSmrg CFLAGS="$CFLAGS -Wunused" 624194a251fdSmrg 62426d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 62436d1874b2Smrgprintf %s "checking if $CC supports -Wunused... " >&6; } 624494a251fdSmrg cacheid=xorg_cv_cc_flag__Wunused 62456d1874b2Smrg if eval test \${$cacheid+y} 62466d1874b2Smrgthen : 62476d1874b2Smrg printf %s "(cached) " >&6 62486d1874b2Smrgelse $as_nop 624994a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 625094a251fdSmrg/* end confdefs.h. */ 625194a251fdSmrgint i; 625294a251fdSmrgint 62536d1874b2Smrgmain (void) 625494a251fdSmrg{ 625594a251fdSmrg 625694a251fdSmrg ; 625794a251fdSmrg return 0; 625894a251fdSmrg} 625994a251fdSmrg_ACEOF 62606d1874b2Smrgif ac_fn_c_try_link "$LINENO" 62616d1874b2Smrgthen : 626294a251fdSmrg eval $cacheid=yes 62636d1874b2Smrgelse $as_nop 626494a251fdSmrg eval $cacheid=no 626594a251fdSmrgfi 62666d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 626794a251fdSmrg conftest$ac_exeext conftest.$ac_ext 626894a251fdSmrgfi 626994a251fdSmrg 627094a251fdSmrg 627194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 627294a251fdSmrg 627394a251fdSmrg eval supported=\$$cacheid 62746d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 62756d1874b2Smrgprintf "%s\n" "$supported" >&6; } 627694a251fdSmrg if test "$supported" = "yes" ; then 627794a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 627894a251fdSmrg found="yes" 627994a251fdSmrg fi 628094a251fdSmrg fi 628194a251fdSmrg 628294a251fdSmrg 628394a251fdSmrg 628494a251fdSmrg 628594a251fdSmrg 628694a251fdSmrg 628794a251fdSmrg 628894a251fdSmrg 628994a251fdSmrg 629094a251fdSmrg 629194a251fdSmrg 629294a251fdSmrg 629394a251fdSmrg 629494a251fdSmrg 629594a251fdSmrg 629694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 629794a251fdSmrg 629894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 629994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63006d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 63016d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 63026d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 63036d1874b2Smrgthen : 63046d1874b2Smrg printf %s "(cached) " >&6 63056d1874b2Smrgelse $as_nop 630694a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 630794a251fdSmrg/* end confdefs.h. */ 630894a251fdSmrgint i; 630994a251fdSmrg_ACEOF 63106d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 63116d1874b2Smrgthen : 631294a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 63136d1874b2Smrgelse $as_nop 631494a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 631594a251fdSmrgfi 63166d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 631794a251fdSmrgfi 63186d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 63196d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 632094a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 632194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 632294a251fdSmrgfi 632394a251fdSmrg 632494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 632594a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 632694a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 632794a251fdSmrg fi 632894a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63296d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 63306d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 63316d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 63326d1874b2Smrgthen : 63336d1874b2Smrg printf %s "(cached) " >&6 63346d1874b2Smrgelse $as_nop 633594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 633694a251fdSmrg/* end confdefs.h. */ 633794a251fdSmrgint i; 633894a251fdSmrg_ACEOF 63396d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 63406d1874b2Smrgthen : 634194a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 63426d1874b2Smrgelse $as_nop 634394a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 634494a251fdSmrgfi 63456d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 634694a251fdSmrgfi 63476d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 63486d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 634994a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 635094a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 635194a251fdSmrgfi 635294a251fdSmrg 635394a251fdSmrgfound="no" 635494a251fdSmrg 635594a251fdSmrg if test $found = "no" ; then 63566a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 635794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 635894a251fdSmrg fi 635994a251fdSmrg 63606a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 636194a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 636294a251fdSmrg fi 636394a251fdSmrg 636494a251fdSmrg CFLAGS="$CFLAGS -Wuninitialized" 636594a251fdSmrg 63666d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 63676d1874b2Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; } 636894a251fdSmrg cacheid=xorg_cv_cc_flag__Wuninitialized 63696d1874b2Smrg if eval test \${$cacheid+y} 63706d1874b2Smrgthen : 63716d1874b2Smrg printf %s "(cached) " >&6 63726d1874b2Smrgelse $as_nop 637394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 637494a251fdSmrg/* end confdefs.h. */ 637594a251fdSmrgint i; 637694a251fdSmrgint 63776d1874b2Smrgmain (void) 637894a251fdSmrg{ 637994a251fdSmrg 638094a251fdSmrg ; 638194a251fdSmrg return 0; 638294a251fdSmrg} 638394a251fdSmrg_ACEOF 63846d1874b2Smrgif ac_fn_c_try_link "$LINENO" 63856d1874b2Smrgthen : 638694a251fdSmrg eval $cacheid=yes 63876d1874b2Smrgelse $as_nop 638894a251fdSmrg eval $cacheid=no 638994a251fdSmrgfi 63906d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 639194a251fdSmrg conftest$ac_exeext conftest.$ac_ext 639294a251fdSmrgfi 639394a251fdSmrg 639494a251fdSmrg 639594a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 639694a251fdSmrg 639794a251fdSmrg eval supported=\$$cacheid 63986d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 63996d1874b2Smrgprintf "%s\n" "$supported" >&6; } 640094a251fdSmrg if test "$supported" = "yes" ; then 640194a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 640294a251fdSmrg found="yes" 640394a251fdSmrg fi 640494a251fdSmrg fi 640594a251fdSmrg 640694a251fdSmrg 640794a251fdSmrg 640894a251fdSmrg 640994a251fdSmrg 641094a251fdSmrg 641194a251fdSmrg 641294a251fdSmrg 641394a251fdSmrg 641494a251fdSmrg 641594a251fdSmrg 641694a251fdSmrg 641794a251fdSmrg 641894a251fdSmrg 641994a251fdSmrg 642094a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 642194a251fdSmrg 642294a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 642394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64246d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 64256d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 64266d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 64276d1874b2Smrgthen : 64286d1874b2Smrg printf %s "(cached) " >&6 64296d1874b2Smrgelse $as_nop 643094a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 643194a251fdSmrg/* end confdefs.h. */ 643294a251fdSmrgint i; 643394a251fdSmrg_ACEOF 64346d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 64356d1874b2Smrgthen : 643694a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 64376d1874b2Smrgelse $as_nop 643894a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 643994a251fdSmrgfi 64406d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 644194a251fdSmrgfi 64426d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 64436d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 644494a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 644594a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 644694a251fdSmrgfi 644794a251fdSmrg 644894a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 644994a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 645094a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 645194a251fdSmrg fi 645294a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64536d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 64546d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 64556d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 64566d1874b2Smrgthen : 64576d1874b2Smrg printf %s "(cached) " >&6 64586d1874b2Smrgelse $as_nop 645994a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 646094a251fdSmrg/* end confdefs.h. */ 646194a251fdSmrgint i; 646294a251fdSmrg_ACEOF 64636d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 64646d1874b2Smrgthen : 646594a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 64666d1874b2Smrgelse $as_nop 646794a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 646894a251fdSmrgfi 64696d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 647094a251fdSmrgfi 64716d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 64726d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 647394a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 647494a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 647594a251fdSmrgfi 647694a251fdSmrg 647794a251fdSmrgfound="no" 647894a251fdSmrg 647994a251fdSmrg if test $found = "no" ; then 64806a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 648194a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 648294a251fdSmrg fi 648394a251fdSmrg 64846a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 648594a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 648694a251fdSmrg fi 648794a251fdSmrg 648894a251fdSmrg CFLAGS="$CFLAGS -Wshadow" 648994a251fdSmrg 64906d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 64916d1874b2Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; } 649294a251fdSmrg cacheid=xorg_cv_cc_flag__Wshadow 64936d1874b2Smrg if eval test \${$cacheid+y} 64946d1874b2Smrgthen : 64956d1874b2Smrg printf %s "(cached) " >&6 64966d1874b2Smrgelse $as_nop 649794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 649894a251fdSmrg/* end confdefs.h. */ 649994a251fdSmrgint i; 650094a251fdSmrgint 65016d1874b2Smrgmain (void) 650294a251fdSmrg{ 650394a251fdSmrg 650494a251fdSmrg ; 650594a251fdSmrg return 0; 650694a251fdSmrg} 650794a251fdSmrg_ACEOF 65086d1874b2Smrgif ac_fn_c_try_link "$LINENO" 65096d1874b2Smrgthen : 651094a251fdSmrg eval $cacheid=yes 65116d1874b2Smrgelse $as_nop 651294a251fdSmrg eval $cacheid=no 651394a251fdSmrgfi 65146d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 651594a251fdSmrg conftest$ac_exeext conftest.$ac_ext 651694a251fdSmrgfi 651794a251fdSmrg 651894a251fdSmrg 651994a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 652094a251fdSmrg 652194a251fdSmrg eval supported=\$$cacheid 65226d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 65236d1874b2Smrgprintf "%s\n" "$supported" >&6; } 652494a251fdSmrg if test "$supported" = "yes" ; then 652594a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 652694a251fdSmrg found="yes" 652794a251fdSmrg fi 652894a251fdSmrg fi 652994a251fdSmrg 653094a251fdSmrg 653194a251fdSmrg 653294a251fdSmrg 653394a251fdSmrg 653494a251fdSmrg 653594a251fdSmrg 653694a251fdSmrg 653794a251fdSmrg 653894a251fdSmrg 653994a251fdSmrg 654094a251fdSmrg 654194a251fdSmrg 654294a251fdSmrg 654394a251fdSmrg 654494a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 654594a251fdSmrg 654694a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 654794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65486d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 65496d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 65506d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 65516d1874b2Smrgthen : 65526d1874b2Smrg printf %s "(cached) " >&6 65536d1874b2Smrgelse $as_nop 655494a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 655594a251fdSmrg/* end confdefs.h. */ 655694a251fdSmrgint i; 655794a251fdSmrg_ACEOF 65586d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 65596d1874b2Smrgthen : 656094a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 65616d1874b2Smrgelse $as_nop 656294a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 656394a251fdSmrgfi 65646d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 656594a251fdSmrgfi 65666d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 65676d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 656894a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 656994a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 657094a251fdSmrgfi 657194a251fdSmrg 657294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 657394a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 657494a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 657594a251fdSmrg fi 657694a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 65776d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 65786d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 65796d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 65806d1874b2Smrgthen : 65816d1874b2Smrg printf %s "(cached) " >&6 65826d1874b2Smrgelse $as_nop 658394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 658494a251fdSmrg/* end confdefs.h. */ 658594a251fdSmrgint i; 658694a251fdSmrg_ACEOF 65876d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 65886d1874b2Smrgthen : 658994a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 65906d1874b2Smrgelse $as_nop 659194a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 659294a251fdSmrgfi 65936d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 659494a251fdSmrgfi 65956d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 65966d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 659794a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 659894a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 659994a251fdSmrgfi 660094a251fdSmrg 660194a251fdSmrgfound="no" 660294a251fdSmrg 660394a251fdSmrg if test $found = "no" ; then 66046a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 660594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 660694a251fdSmrg fi 660794a251fdSmrg 66086a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 660994a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 661094a251fdSmrg fi 661194a251fdSmrg 66126a45684fSmrg CFLAGS="$CFLAGS -Wmissing-noreturn" 661394a251fdSmrg 66146d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 66156d1874b2Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 66166a45684fSmrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 66176d1874b2Smrg if eval test \${$cacheid+y} 66186d1874b2Smrgthen : 66196d1874b2Smrg printf %s "(cached) " >&6 66206d1874b2Smrgelse $as_nop 662194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 662294a251fdSmrg/* end confdefs.h. */ 662394a251fdSmrgint i; 662494a251fdSmrgint 66256d1874b2Smrgmain (void) 662694a251fdSmrg{ 662794a251fdSmrg 662894a251fdSmrg ; 662994a251fdSmrg return 0; 663094a251fdSmrg} 663194a251fdSmrg_ACEOF 66326d1874b2Smrgif ac_fn_c_try_link "$LINENO" 66336d1874b2Smrgthen : 663494a251fdSmrg eval $cacheid=yes 66356d1874b2Smrgelse $as_nop 663694a251fdSmrg eval $cacheid=no 663794a251fdSmrgfi 66386d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 663994a251fdSmrg conftest$ac_exeext conftest.$ac_ext 664094a251fdSmrgfi 664194a251fdSmrg 664294a251fdSmrg 664394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 664494a251fdSmrg 664594a251fdSmrg eval supported=\$$cacheid 66466d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 66476d1874b2Smrgprintf "%s\n" "$supported" >&6; } 664894a251fdSmrg if test "$supported" = "yes" ; then 66496a45684fSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 665094a251fdSmrg found="yes" 665194a251fdSmrg fi 665294a251fdSmrg fi 665394a251fdSmrg 665494a251fdSmrg 665594a251fdSmrg 665694a251fdSmrg 665794a251fdSmrg 665894a251fdSmrg 665994a251fdSmrg 666094a251fdSmrg 666194a251fdSmrg 666294a251fdSmrg 666394a251fdSmrg 666494a251fdSmrg 666594a251fdSmrg 666694a251fdSmrg 666794a251fdSmrg 666894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 666994a251fdSmrg 667094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 667194a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66726d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 66736d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 66746d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 66756d1874b2Smrgthen : 66766d1874b2Smrg printf %s "(cached) " >&6 66776d1874b2Smrgelse $as_nop 667894a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 667994a251fdSmrg/* end confdefs.h. */ 668094a251fdSmrgint i; 668194a251fdSmrg_ACEOF 66826d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 66836d1874b2Smrgthen : 668494a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 66856d1874b2Smrgelse $as_nop 668694a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 668794a251fdSmrgfi 66886d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 668994a251fdSmrgfi 66906d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 66916d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 669294a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 669394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 669494a251fdSmrgfi 669594a251fdSmrg 669694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 669794a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 669894a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 669994a251fdSmrg fi 670094a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 67016d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 67026d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 67036d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 67046d1874b2Smrgthen : 67056d1874b2Smrg printf %s "(cached) " >&6 67066d1874b2Smrgelse $as_nop 670794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 670894a251fdSmrg/* end confdefs.h. */ 670994a251fdSmrgint i; 671094a251fdSmrg_ACEOF 67116d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 67126d1874b2Smrgthen : 671394a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 67146d1874b2Smrgelse $as_nop 671594a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 671694a251fdSmrgfi 67176d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 671894a251fdSmrgfi 67196d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 67206d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 672194a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 672294a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 672394a251fdSmrgfi 672494a251fdSmrg 672594a251fdSmrgfound="no" 672694a251fdSmrg 672794a251fdSmrg if test $found = "no" ; then 67286a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 672994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 673094a251fdSmrg fi 673194a251fdSmrg 67326a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 673394a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 673494a251fdSmrg fi 673594a251fdSmrg 67366a45684fSmrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 673794a251fdSmrg 67386d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 67396d1874b2Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 67406a45684fSmrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 67416d1874b2Smrg if eval test \${$cacheid+y} 67426d1874b2Smrgthen : 67436d1874b2Smrg printf %s "(cached) " >&6 67446d1874b2Smrgelse $as_nop 674594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 674694a251fdSmrg/* end confdefs.h. */ 674794a251fdSmrgint i; 674894a251fdSmrgint 67496d1874b2Smrgmain (void) 675094a251fdSmrg{ 675194a251fdSmrg 675294a251fdSmrg ; 675394a251fdSmrg return 0; 675494a251fdSmrg} 675594a251fdSmrg_ACEOF 67566d1874b2Smrgif ac_fn_c_try_link "$LINENO" 67576d1874b2Smrgthen : 675894a251fdSmrg eval $cacheid=yes 67596d1874b2Smrgelse $as_nop 676094a251fdSmrg eval $cacheid=no 676194a251fdSmrgfi 67626d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 676394a251fdSmrg conftest$ac_exeext conftest.$ac_ext 676494a251fdSmrgfi 676594a251fdSmrg 676694a251fdSmrg 676794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 676894a251fdSmrg 676994a251fdSmrg eval supported=\$$cacheid 67706d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 67716d1874b2Smrgprintf "%s\n" "$supported" >&6; } 677294a251fdSmrg if test "$supported" = "yes" ; then 67736a45684fSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 677494a251fdSmrg found="yes" 677594a251fdSmrg fi 677694a251fdSmrg fi 677794a251fdSmrg 677894a251fdSmrg 677994a251fdSmrg 678094a251fdSmrg 678194a251fdSmrg 678294a251fdSmrg 678394a251fdSmrg 678494a251fdSmrg 678594a251fdSmrg 678694a251fdSmrg 678794a251fdSmrg 678894a251fdSmrg 678994a251fdSmrg 679094a251fdSmrg 679194a251fdSmrg 679294a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 679394a251fdSmrg 679494a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 679594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67966d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 67976d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 67986d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 67996d1874b2Smrgthen : 68006d1874b2Smrg printf %s "(cached) " >&6 68016d1874b2Smrgelse $as_nop 680294a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 680394a251fdSmrg/* end confdefs.h. */ 680494a251fdSmrgint i; 680594a251fdSmrg_ACEOF 68066d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 68076d1874b2Smrgthen : 680894a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 68096d1874b2Smrgelse $as_nop 681094a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 681194a251fdSmrgfi 68126d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 681394a251fdSmrgfi 68146d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 68156d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 681694a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 681794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 681894a251fdSmrgfi 681994a251fdSmrg 682094a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 682194a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 682294a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 682394a251fdSmrg fi 682494a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68256d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 68266d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 68276d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 68286d1874b2Smrgthen : 68296d1874b2Smrg printf %s "(cached) " >&6 68306d1874b2Smrgelse $as_nop 683194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 683294a251fdSmrg/* end confdefs.h. */ 683394a251fdSmrgint i; 683494a251fdSmrg_ACEOF 68356d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 68366d1874b2Smrgthen : 683794a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 68386d1874b2Smrgelse $as_nop 683994a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 684094a251fdSmrgfi 68416d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 684294a251fdSmrgfi 68436d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 68446d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 684594a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 684694a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 684794a251fdSmrgfi 684894a251fdSmrg 684994a251fdSmrgfound="no" 685094a251fdSmrg 685194a251fdSmrg if test $found = "no" ; then 68526a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 685394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 685494a251fdSmrg fi 685594a251fdSmrg 68566a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 685794a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 685894a251fdSmrg fi 685994a251fdSmrg 68606a45684fSmrg CFLAGS="$CFLAGS -Wredundant-decls" 686194a251fdSmrg 68626d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 68636d1874b2Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; } 68646a45684fSmrg cacheid=xorg_cv_cc_flag__Wredundant_decls 68656d1874b2Smrg if eval test \${$cacheid+y} 68666d1874b2Smrgthen : 68676d1874b2Smrg printf %s "(cached) " >&6 68686d1874b2Smrgelse $as_nop 686994a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 687094a251fdSmrg/* end confdefs.h. */ 687194a251fdSmrgint i; 687294a251fdSmrgint 68736d1874b2Smrgmain (void) 687494a251fdSmrg{ 687594a251fdSmrg 687694a251fdSmrg ; 687794a251fdSmrg return 0; 687894a251fdSmrg} 687994a251fdSmrg_ACEOF 68806d1874b2Smrgif ac_fn_c_try_link "$LINENO" 68816d1874b2Smrgthen : 688294a251fdSmrg eval $cacheid=yes 68836d1874b2Smrgelse $as_nop 688494a251fdSmrg eval $cacheid=no 688594a251fdSmrgfi 68866d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 688794a251fdSmrg conftest$ac_exeext conftest.$ac_ext 688894a251fdSmrgfi 688994a251fdSmrg 689094a251fdSmrg 689194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 689294a251fdSmrg 689394a251fdSmrg eval supported=\$$cacheid 68946d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 68956d1874b2Smrgprintf "%s\n" "$supported" >&6; } 689694a251fdSmrg if test "$supported" = "yes" ; then 68976a45684fSmrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 689894a251fdSmrg found="yes" 689994a251fdSmrg fi 690094a251fdSmrg fi 690194a251fdSmrg 690294a251fdSmrg 690394a251fdSmrg 690494a251fdSmrg 690594a251fdSmrg 690694a251fdSmrg 690794a251fdSmrg 690894a251fdSmrg 690994a251fdSmrg 691094a251fdSmrg 691194a251fdSmrg 691294a251fdSmrg 691394a251fdSmrg 691494a251fdSmrg 691594a251fdSmrg 691694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 691794a251fdSmrg 691894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 691994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69206d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 69216d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 69226d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 69236d1874b2Smrgthen : 69246d1874b2Smrg printf %s "(cached) " >&6 69256d1874b2Smrgelse $as_nop 692694a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 692794a251fdSmrg/* end confdefs.h. */ 692894a251fdSmrgint i; 692994a251fdSmrg_ACEOF 69306d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 69316d1874b2Smrgthen : 693294a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 69336d1874b2Smrgelse $as_nop 693494a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 693594a251fdSmrgfi 69366d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 693794a251fdSmrgfi 69386d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 69396d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 694094a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 694194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 694294a251fdSmrgfi 694394a251fdSmrg 694494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 694594a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 694694a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 694794a251fdSmrg fi 694894a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69496d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 69506d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 69516d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 69526d1874b2Smrgthen : 69536d1874b2Smrg printf %s "(cached) " >&6 69546d1874b2Smrgelse $as_nop 695594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 695694a251fdSmrg/* end confdefs.h. */ 695794a251fdSmrgint i; 695894a251fdSmrg_ACEOF 69596d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 69606d1874b2Smrgthen : 696194a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 69626d1874b2Smrgelse $as_nop 696394a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 696494a251fdSmrgfi 69656d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 696694a251fdSmrgfi 69676d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 69686d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 696994a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 697094a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 697194a251fdSmrgfi 697294a251fdSmrg 697394a251fdSmrgfound="no" 697494a251fdSmrg 697594a251fdSmrg if test $found = "no" ; then 69766a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 697794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 697894a251fdSmrg fi 697994a251fdSmrg 69806a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 698194a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 698294a251fdSmrg fi 698394a251fdSmrg 69846a45684fSmrg CFLAGS="$CFLAGS -Wlogical-op" 698594a251fdSmrg 69866d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 69876d1874b2Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; } 69886a45684fSmrg cacheid=xorg_cv_cc_flag__Wlogical_op 69896d1874b2Smrg if eval test \${$cacheid+y} 69906d1874b2Smrgthen : 69916d1874b2Smrg printf %s "(cached) " >&6 69926d1874b2Smrgelse $as_nop 699394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 699494a251fdSmrg/* end confdefs.h. */ 699594a251fdSmrgint i; 699694a251fdSmrgint 69976d1874b2Smrgmain (void) 699894a251fdSmrg{ 699994a251fdSmrg 700094a251fdSmrg ; 700194a251fdSmrg return 0; 700294a251fdSmrg} 700394a251fdSmrg_ACEOF 70046d1874b2Smrgif ac_fn_c_try_link "$LINENO" 70056d1874b2Smrgthen : 700694a251fdSmrg eval $cacheid=yes 70076d1874b2Smrgelse $as_nop 700894a251fdSmrg eval $cacheid=no 700994a251fdSmrgfi 70106d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 701194a251fdSmrg conftest$ac_exeext conftest.$ac_ext 701294a251fdSmrgfi 701394a251fdSmrg 701494a251fdSmrg 701594a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 701694a251fdSmrg 701794a251fdSmrg eval supported=\$$cacheid 70186d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 70196d1874b2Smrgprintf "%s\n" "$supported" >&6; } 702094a251fdSmrg if test "$supported" = "yes" ; then 70216a45684fSmrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 702294a251fdSmrg found="yes" 702394a251fdSmrg fi 702494a251fdSmrg fi 702594a251fdSmrg 702694a251fdSmrg 702794a251fdSmrg 702894a251fdSmrg# These are currently disabled because they are noisy. They will be enabled 702994a251fdSmrg# in the future once the codebase is sufficiently modernized to silence 703094a251fdSmrg# them. For now, I don't want them to drown out the other warnings. 703194a251fdSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 703294a251fdSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 70336a45684fSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 703494a251fdSmrg 703594a251fdSmrg# Turn some warnings into errors, so we don't accidently get successful builds 703694a251fdSmrg# when there are problems that should be fixed. 703794a251fdSmrg 703894a251fdSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 703994a251fdSmrg 704094a251fdSmrg 704194a251fdSmrg 704294a251fdSmrg 704394a251fdSmrg 704494a251fdSmrg 704594a251fdSmrg 704694a251fdSmrg 704794a251fdSmrg 704894a251fdSmrg 704994a251fdSmrg 705094a251fdSmrg 705194a251fdSmrg 705294a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 705394a251fdSmrg 705494a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 705594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70566d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 70576d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 70586d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 70596d1874b2Smrgthen : 70606d1874b2Smrg printf %s "(cached) " >&6 70616d1874b2Smrgelse $as_nop 706294a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 706394a251fdSmrg/* end confdefs.h. */ 706494a251fdSmrgint i; 706594a251fdSmrg_ACEOF 70666d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 70676d1874b2Smrgthen : 706894a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 70696d1874b2Smrgelse $as_nop 707094a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 707194a251fdSmrgfi 70726d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 707394a251fdSmrgfi 70746d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 70756d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 707694a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 707794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 707894a251fdSmrgfi 707994a251fdSmrg 708094a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 708194a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 708294a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 708394a251fdSmrg fi 708494a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70856d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 70866d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 70876d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 70886d1874b2Smrgthen : 70896d1874b2Smrg printf %s "(cached) " >&6 70906d1874b2Smrgelse $as_nop 709194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 709294a251fdSmrg/* end confdefs.h. */ 709394a251fdSmrgint i; 709494a251fdSmrg_ACEOF 70956d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 70966d1874b2Smrgthen : 709794a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 70986d1874b2Smrgelse $as_nop 709994a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 710094a251fdSmrgfi 71016d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 710294a251fdSmrgfi 71036d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 71046d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 710594a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 710694a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 710794a251fdSmrgfi 710894a251fdSmrg 710994a251fdSmrgfound="no" 711094a251fdSmrg 711194a251fdSmrg if test $found = "no" ; then 71126a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 711394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 711494a251fdSmrg fi 711594a251fdSmrg 71166a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 711794a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 711894a251fdSmrg fi 711994a251fdSmrg 712094a251fdSmrg CFLAGS="$CFLAGS -Werror=implicit" 712194a251fdSmrg 71226d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 71236d1874b2Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; } 71246a45684fSmrg cacheid=xorg_cv_cc_flag__Werror_implicit 71256d1874b2Smrg if eval test \${$cacheid+y} 71266d1874b2Smrgthen : 71276d1874b2Smrg printf %s "(cached) " >&6 71286d1874b2Smrgelse $as_nop 712994a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 713094a251fdSmrg/* end confdefs.h. */ 713194a251fdSmrgint i; 713294a251fdSmrgint 71336d1874b2Smrgmain (void) 713494a251fdSmrg{ 713594a251fdSmrg 713694a251fdSmrg ; 713794a251fdSmrg return 0; 713894a251fdSmrg} 713994a251fdSmrg_ACEOF 71406d1874b2Smrgif ac_fn_c_try_link "$LINENO" 71416d1874b2Smrgthen : 714294a251fdSmrg eval $cacheid=yes 71436d1874b2Smrgelse $as_nop 714494a251fdSmrg eval $cacheid=no 714594a251fdSmrgfi 71466d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 714794a251fdSmrg conftest$ac_exeext conftest.$ac_ext 714894a251fdSmrgfi 714994a251fdSmrg 715094a251fdSmrg 715194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 715294a251fdSmrg 715394a251fdSmrg eval supported=\$$cacheid 71546d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 71556d1874b2Smrgprintf "%s\n" "$supported" >&6; } 715694a251fdSmrg if test "$supported" = "yes" ; then 715794a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 715894a251fdSmrg found="yes" 715994a251fdSmrg fi 716094a251fdSmrg fi 716194a251fdSmrg 716294a251fdSmrg if test $found = "no" ; then 71636a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 716494a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 716594a251fdSmrg fi 716694a251fdSmrg 71676a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 716894a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 716994a251fdSmrg fi 717094a251fdSmrg 717194a251fdSmrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 717294a251fdSmrg 71736d1874b2Smrg { 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 71746d1874b2Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 71756a45684fSmrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 71766d1874b2Smrg if eval test \${$cacheid+y} 71776d1874b2Smrgthen : 71786d1874b2Smrg printf %s "(cached) " >&6 71796d1874b2Smrgelse $as_nop 718094a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 718194a251fdSmrg/* end confdefs.h. */ 718294a251fdSmrgint i; 718394a251fdSmrgint 71846d1874b2Smrgmain (void) 718594a251fdSmrg{ 718694a251fdSmrg 718794a251fdSmrg ; 718894a251fdSmrg return 0; 718994a251fdSmrg} 719094a251fdSmrg_ACEOF 71916d1874b2Smrgif ac_fn_c_try_link "$LINENO" 71926d1874b2Smrgthen : 719394a251fdSmrg eval $cacheid=yes 71946d1874b2Smrgelse $as_nop 719594a251fdSmrg eval $cacheid=no 719694a251fdSmrgfi 71976d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 719894a251fdSmrg conftest$ac_exeext conftest.$ac_ext 719994a251fdSmrgfi 720094a251fdSmrg 720194a251fdSmrg 720294a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 720394a251fdSmrg 720494a251fdSmrg eval supported=\$$cacheid 72056d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 72066d1874b2Smrgprintf "%s\n" "$supported" >&6; } 720794a251fdSmrg if test "$supported" = "yes" ; then 720894a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 720994a251fdSmrg found="yes" 721094a251fdSmrg fi 721194a251fdSmrg fi 721294a251fdSmrg 721394a251fdSmrg 721494a251fdSmrg 721594a251fdSmrg 721694a251fdSmrg 721794a251fdSmrg 721894a251fdSmrg 721994a251fdSmrg 722094a251fdSmrg 722194a251fdSmrg 722294a251fdSmrg 722394a251fdSmrg 722494a251fdSmrg 722594a251fdSmrg 722694a251fdSmrg 722794a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 722894a251fdSmrg 722994a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 723094a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72316d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 72326d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 72336d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 72346d1874b2Smrgthen : 72356d1874b2Smrg printf %s "(cached) " >&6 72366d1874b2Smrgelse $as_nop 723794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 723894a251fdSmrg/* end confdefs.h. */ 723994a251fdSmrgint i; 724094a251fdSmrg_ACEOF 72416d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 72426d1874b2Smrgthen : 724394a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 72446d1874b2Smrgelse $as_nop 724594a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 724694a251fdSmrgfi 72476d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 724894a251fdSmrgfi 72496d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 72506d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 725194a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 725294a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 725394a251fdSmrgfi 725494a251fdSmrg 725594a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 725694a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 725794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 725894a251fdSmrg fi 725994a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 72606d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 72616d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 72626d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 72636d1874b2Smrgthen : 72646d1874b2Smrg printf %s "(cached) " >&6 72656d1874b2Smrgelse $as_nop 726694a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 726794a251fdSmrg/* end confdefs.h. */ 726894a251fdSmrgint i; 726994a251fdSmrg_ACEOF 72706d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 72716d1874b2Smrgthen : 727294a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 72736d1874b2Smrgelse $as_nop 727494a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 727594a251fdSmrgfi 72766d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 727794a251fdSmrgfi 72786d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 72796d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 728094a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 728194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 728294a251fdSmrgfi 728394a251fdSmrg 728494a251fdSmrgfound="no" 728594a251fdSmrg 728694a251fdSmrg if test $found = "no" ; then 72876a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 728894a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 728994a251fdSmrg fi 729094a251fdSmrg 72916a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 729294a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 729394a251fdSmrg fi 729494a251fdSmrg 729594a251fdSmrg CFLAGS="$CFLAGS -Werror=nonnull" 729694a251fdSmrg 72976d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 72986d1874b2Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; } 72996a45684fSmrg cacheid=xorg_cv_cc_flag__Werror_nonnull 73006d1874b2Smrg if eval test \${$cacheid+y} 73016d1874b2Smrgthen : 73026d1874b2Smrg printf %s "(cached) " >&6 73036d1874b2Smrgelse $as_nop 730494a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 730594a251fdSmrg/* end confdefs.h. */ 730694a251fdSmrgint i; 730794a251fdSmrgint 73086d1874b2Smrgmain (void) 730994a251fdSmrg{ 731094a251fdSmrg 731194a251fdSmrg ; 731294a251fdSmrg return 0; 731394a251fdSmrg} 731494a251fdSmrg_ACEOF 73156d1874b2Smrgif ac_fn_c_try_link "$LINENO" 73166d1874b2Smrgthen : 731794a251fdSmrg eval $cacheid=yes 73186d1874b2Smrgelse $as_nop 731994a251fdSmrg eval $cacheid=no 732094a251fdSmrgfi 73216d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 732294a251fdSmrg conftest$ac_exeext conftest.$ac_ext 732394a251fdSmrgfi 732494a251fdSmrg 732594a251fdSmrg 732694a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 732794a251fdSmrg 732894a251fdSmrg eval supported=\$$cacheid 73296d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 73306d1874b2Smrgprintf "%s\n" "$supported" >&6; } 733194a251fdSmrg if test "$supported" = "yes" ; then 733294a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 733394a251fdSmrg found="yes" 733494a251fdSmrg fi 733594a251fdSmrg fi 733694a251fdSmrg 733794a251fdSmrg 733894a251fdSmrg 733994a251fdSmrg 734094a251fdSmrg 734194a251fdSmrg 734294a251fdSmrg 734394a251fdSmrg 734494a251fdSmrg 734594a251fdSmrg 734694a251fdSmrg 734794a251fdSmrg 734894a251fdSmrg 734994a251fdSmrg 735094a251fdSmrg 735194a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 735294a251fdSmrg 735394a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 735494a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73556d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 73566d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 73576d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 73586d1874b2Smrgthen : 73596d1874b2Smrg printf %s "(cached) " >&6 73606d1874b2Smrgelse $as_nop 736194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 736294a251fdSmrg/* end confdefs.h. */ 736394a251fdSmrgint i; 736494a251fdSmrg_ACEOF 73656d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 73666d1874b2Smrgthen : 736794a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 73686d1874b2Smrgelse $as_nop 736994a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 737094a251fdSmrgfi 73716d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 737294a251fdSmrgfi 73736d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 73746d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 737594a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 737694a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 737794a251fdSmrgfi 737894a251fdSmrg 737994a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 738094a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 738194a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 738294a251fdSmrg fi 738394a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73846d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 73856d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 73866d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 73876d1874b2Smrgthen : 73886d1874b2Smrg printf %s "(cached) " >&6 73896d1874b2Smrgelse $as_nop 739094a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 739194a251fdSmrg/* end confdefs.h. */ 739294a251fdSmrgint i; 739394a251fdSmrg_ACEOF 73946d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 73956d1874b2Smrgthen : 739694a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 73976d1874b2Smrgelse $as_nop 739894a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 739994a251fdSmrgfi 74006d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 740194a251fdSmrgfi 74026d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 74036d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 740494a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 740594a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 740694a251fdSmrgfi 740794a251fdSmrg 740894a251fdSmrgfound="no" 740994a251fdSmrg 741094a251fdSmrg if test $found = "no" ; then 74116a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 741294a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 741394a251fdSmrg fi 741494a251fdSmrg 74156a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 741694a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 741794a251fdSmrg fi 741894a251fdSmrg 741994a251fdSmrg CFLAGS="$CFLAGS -Werror=init-self" 742094a251fdSmrg 74216d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 74226d1874b2Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; } 74236a45684fSmrg cacheid=xorg_cv_cc_flag__Werror_init_self 74246d1874b2Smrg if eval test \${$cacheid+y} 74256d1874b2Smrgthen : 74266d1874b2Smrg printf %s "(cached) " >&6 74276d1874b2Smrgelse $as_nop 742894a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 742994a251fdSmrg/* end confdefs.h. */ 743094a251fdSmrgint i; 743194a251fdSmrgint 74326d1874b2Smrgmain (void) 743394a251fdSmrg{ 743494a251fdSmrg 743594a251fdSmrg ; 743694a251fdSmrg return 0; 743794a251fdSmrg} 743894a251fdSmrg_ACEOF 74396d1874b2Smrgif ac_fn_c_try_link "$LINENO" 74406d1874b2Smrgthen : 744194a251fdSmrg eval $cacheid=yes 74426d1874b2Smrgelse $as_nop 744394a251fdSmrg eval $cacheid=no 744494a251fdSmrgfi 74456d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 744694a251fdSmrg conftest$ac_exeext conftest.$ac_ext 744794a251fdSmrgfi 744894a251fdSmrg 744994a251fdSmrg 745094a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 745194a251fdSmrg 745294a251fdSmrg eval supported=\$$cacheid 74536d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 74546d1874b2Smrgprintf "%s\n" "$supported" >&6; } 745594a251fdSmrg if test "$supported" = "yes" ; then 745694a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 745794a251fdSmrg found="yes" 745894a251fdSmrg fi 745994a251fdSmrg fi 746094a251fdSmrg 746194a251fdSmrg 746294a251fdSmrg 746394a251fdSmrg 746494a251fdSmrg 746594a251fdSmrg 746694a251fdSmrg 746794a251fdSmrg 746894a251fdSmrg 746994a251fdSmrg 747094a251fdSmrg 747194a251fdSmrg 747294a251fdSmrg 747394a251fdSmrg 747494a251fdSmrg 747594a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 747694a251fdSmrg 747794a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 747894a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74796d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 74806d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 74816d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 74826d1874b2Smrgthen : 74836d1874b2Smrg printf %s "(cached) " >&6 74846d1874b2Smrgelse $as_nop 748594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 748694a251fdSmrg/* end confdefs.h. */ 748794a251fdSmrgint i; 748894a251fdSmrg_ACEOF 74896d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 74906d1874b2Smrgthen : 749194a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 74926d1874b2Smrgelse $as_nop 749394a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 749494a251fdSmrgfi 74956d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 749694a251fdSmrgfi 74976d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 74986d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 749994a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 750094a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 750194a251fdSmrgfi 750294a251fdSmrg 750394a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 750494a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 750594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 750694a251fdSmrg fi 750794a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75086d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 75096d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 75106d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 75116d1874b2Smrgthen : 75126d1874b2Smrg printf %s "(cached) " >&6 75136d1874b2Smrgelse $as_nop 751494a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 751594a251fdSmrg/* end confdefs.h. */ 751694a251fdSmrgint i; 751794a251fdSmrg_ACEOF 75186d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 75196d1874b2Smrgthen : 752094a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 75216d1874b2Smrgelse $as_nop 752294a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 752394a251fdSmrgfi 75246d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 752594a251fdSmrgfi 75266d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 75276d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 752894a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 752994a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 753094a251fdSmrgfi 753194a251fdSmrg 753294a251fdSmrgfound="no" 753394a251fdSmrg 753494a251fdSmrg if test $found = "no" ; then 75356a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 753694a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 753794a251fdSmrg fi 753894a251fdSmrg 75396a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 754094a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 754194a251fdSmrg fi 754294a251fdSmrg 754394a251fdSmrg CFLAGS="$CFLAGS -Werror=main" 754494a251fdSmrg 75456d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 75466d1874b2Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; } 75476a45684fSmrg cacheid=xorg_cv_cc_flag__Werror_main 75486d1874b2Smrg if eval test \${$cacheid+y} 75496d1874b2Smrgthen : 75506d1874b2Smrg printf %s "(cached) " >&6 75516d1874b2Smrgelse $as_nop 755294a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 755394a251fdSmrg/* end confdefs.h. */ 755494a251fdSmrgint i; 755594a251fdSmrgint 75566d1874b2Smrgmain (void) 755794a251fdSmrg{ 755894a251fdSmrg 755994a251fdSmrg ; 756094a251fdSmrg return 0; 756194a251fdSmrg} 756294a251fdSmrg_ACEOF 75636d1874b2Smrgif ac_fn_c_try_link "$LINENO" 75646d1874b2Smrgthen : 756594a251fdSmrg eval $cacheid=yes 75666d1874b2Smrgelse $as_nop 756794a251fdSmrg eval $cacheid=no 756894a251fdSmrgfi 75696d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 757094a251fdSmrg conftest$ac_exeext conftest.$ac_ext 757194a251fdSmrgfi 757294a251fdSmrg 757394a251fdSmrg 757494a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 757594a251fdSmrg 757694a251fdSmrg eval supported=\$$cacheid 75776d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 75786d1874b2Smrgprintf "%s\n" "$supported" >&6; } 757994a251fdSmrg if test "$supported" = "yes" ; then 758094a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 758194a251fdSmrg found="yes" 758294a251fdSmrg fi 758394a251fdSmrg fi 758494a251fdSmrg 758594a251fdSmrg 758694a251fdSmrg 758794a251fdSmrg 758894a251fdSmrg 758994a251fdSmrg 759094a251fdSmrg 759194a251fdSmrg 759294a251fdSmrg 759394a251fdSmrg 759494a251fdSmrg 759594a251fdSmrg 759694a251fdSmrg 759794a251fdSmrg 759894a251fdSmrg 759994a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 760094a251fdSmrg 760194a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 760294a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76036d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 76046d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 76056d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 76066d1874b2Smrgthen : 76076d1874b2Smrg printf %s "(cached) " >&6 76086d1874b2Smrgelse $as_nop 760994a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 761094a251fdSmrg/* end confdefs.h. */ 761194a251fdSmrgint i; 761294a251fdSmrg_ACEOF 76136d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 76146d1874b2Smrgthen : 761594a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 76166d1874b2Smrgelse $as_nop 761794a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 761894a251fdSmrgfi 76196d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 762094a251fdSmrgfi 76216d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 76226d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 762394a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 762494a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 762594a251fdSmrgfi 762694a251fdSmrg 762794a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 762894a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 762994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 763094a251fdSmrg fi 763194a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 76326d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 76336d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 76346d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 76356d1874b2Smrgthen : 76366d1874b2Smrg printf %s "(cached) " >&6 76376d1874b2Smrgelse $as_nop 763894a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 763994a251fdSmrg/* end confdefs.h. */ 764094a251fdSmrgint i; 764194a251fdSmrg_ACEOF 76426d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 76436d1874b2Smrgthen : 764494a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 76456d1874b2Smrgelse $as_nop 764694a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 764794a251fdSmrgfi 76486d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 764994a251fdSmrgfi 76506d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 76516d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 765294a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 765394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 765494a251fdSmrgfi 765594a251fdSmrg 765694a251fdSmrgfound="no" 765794a251fdSmrg 765894a251fdSmrg if test $found = "no" ; then 76596a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 766094a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 766194a251fdSmrg fi 766294a251fdSmrg 76636a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 766494a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 766594a251fdSmrg fi 766694a251fdSmrg 766794a251fdSmrg CFLAGS="$CFLAGS -Werror=missing-braces" 766894a251fdSmrg 76696d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 76706d1874b2Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 76716a45684fSmrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 76726d1874b2Smrg if eval test \${$cacheid+y} 76736d1874b2Smrgthen : 76746d1874b2Smrg printf %s "(cached) " >&6 76756d1874b2Smrgelse $as_nop 767694a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 767794a251fdSmrg/* end confdefs.h. */ 767894a251fdSmrgint i; 767994a251fdSmrgint 76806d1874b2Smrgmain (void) 768194a251fdSmrg{ 768294a251fdSmrg 768394a251fdSmrg ; 768494a251fdSmrg return 0; 768594a251fdSmrg} 768694a251fdSmrg_ACEOF 76876d1874b2Smrgif ac_fn_c_try_link "$LINENO" 76886d1874b2Smrgthen : 768994a251fdSmrg eval $cacheid=yes 76906d1874b2Smrgelse $as_nop 769194a251fdSmrg eval $cacheid=no 769294a251fdSmrgfi 76936d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 769494a251fdSmrg conftest$ac_exeext conftest.$ac_ext 769594a251fdSmrgfi 769694a251fdSmrg 769794a251fdSmrg 769894a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 769994a251fdSmrg 770094a251fdSmrg eval supported=\$$cacheid 77016d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 77026d1874b2Smrgprintf "%s\n" "$supported" >&6; } 770394a251fdSmrg if test "$supported" = "yes" ; then 770494a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 770594a251fdSmrg found="yes" 770694a251fdSmrg fi 770794a251fdSmrg fi 770894a251fdSmrg 770994a251fdSmrg 771094a251fdSmrg 771194a251fdSmrg 771294a251fdSmrg 771394a251fdSmrg 771494a251fdSmrg 771594a251fdSmrg 771694a251fdSmrg 771794a251fdSmrg 771894a251fdSmrg 771994a251fdSmrg 772094a251fdSmrg 772194a251fdSmrg 772294a251fdSmrg 772394a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 772494a251fdSmrg 772594a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 772694a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77276d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 77286d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 77296d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 77306d1874b2Smrgthen : 77316d1874b2Smrg printf %s "(cached) " >&6 77326d1874b2Smrgelse $as_nop 773394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 773494a251fdSmrg/* end confdefs.h. */ 773594a251fdSmrgint i; 773694a251fdSmrg_ACEOF 77376d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 77386d1874b2Smrgthen : 773994a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 77406d1874b2Smrgelse $as_nop 774194a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 774294a251fdSmrgfi 77436d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 774494a251fdSmrgfi 77456d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 77466d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 774794a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 774894a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 774994a251fdSmrgfi 775094a251fdSmrg 775194a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 775294a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 775394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 775494a251fdSmrg fi 775594a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77566d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 77576d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 77586d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 77596d1874b2Smrgthen : 77606d1874b2Smrg printf %s "(cached) " >&6 77616d1874b2Smrgelse $as_nop 776294a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 776394a251fdSmrg/* end confdefs.h. */ 776494a251fdSmrgint i; 776594a251fdSmrg_ACEOF 77666d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 77676d1874b2Smrgthen : 776894a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 77696d1874b2Smrgelse $as_nop 777094a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 777194a251fdSmrgfi 77726d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 777394a251fdSmrgfi 77746d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 77756d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 777694a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 777794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 777894a251fdSmrgfi 777994a251fdSmrg 778094a251fdSmrgfound="no" 778194a251fdSmrg 778294a251fdSmrg if test $found = "no" ; then 77836a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 778494a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 778594a251fdSmrg fi 778694a251fdSmrg 77876a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 778894a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 778994a251fdSmrg fi 779094a251fdSmrg 779194a251fdSmrg CFLAGS="$CFLAGS -Werror=sequence-point" 779294a251fdSmrg 77936d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 77946d1874b2Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 77956a45684fSmrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 77966d1874b2Smrg if eval test \${$cacheid+y} 77976d1874b2Smrgthen : 77986d1874b2Smrg printf %s "(cached) " >&6 77996d1874b2Smrgelse $as_nop 780094a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 780194a251fdSmrg/* end confdefs.h. */ 780294a251fdSmrgint i; 780394a251fdSmrgint 78046d1874b2Smrgmain (void) 780594a251fdSmrg{ 780694a251fdSmrg 780794a251fdSmrg ; 780894a251fdSmrg return 0; 780994a251fdSmrg} 781094a251fdSmrg_ACEOF 78116d1874b2Smrgif ac_fn_c_try_link "$LINENO" 78126d1874b2Smrgthen : 781394a251fdSmrg eval $cacheid=yes 78146d1874b2Smrgelse $as_nop 781594a251fdSmrg eval $cacheid=no 781694a251fdSmrgfi 78176d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 781894a251fdSmrg conftest$ac_exeext conftest.$ac_ext 781994a251fdSmrgfi 782094a251fdSmrg 782194a251fdSmrg 782294a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 782394a251fdSmrg 782494a251fdSmrg eval supported=\$$cacheid 78256d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 78266d1874b2Smrgprintf "%s\n" "$supported" >&6; } 782794a251fdSmrg if test "$supported" = "yes" ; then 782894a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 782994a251fdSmrg found="yes" 783094a251fdSmrg fi 783194a251fdSmrg fi 783294a251fdSmrg 783394a251fdSmrg 783494a251fdSmrg 783594a251fdSmrg 783694a251fdSmrg 783794a251fdSmrg 783894a251fdSmrg 783994a251fdSmrg 784094a251fdSmrg 784194a251fdSmrg 784294a251fdSmrg 784394a251fdSmrg 784494a251fdSmrg 784594a251fdSmrg 784694a251fdSmrg 784794a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 784894a251fdSmrg 784994a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 785094a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78516d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 78526d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 78536d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 78546d1874b2Smrgthen : 78556d1874b2Smrg printf %s "(cached) " >&6 78566d1874b2Smrgelse $as_nop 785794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 785894a251fdSmrg/* end confdefs.h. */ 785994a251fdSmrgint i; 786094a251fdSmrg_ACEOF 78616d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 78626d1874b2Smrgthen : 786394a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 78646d1874b2Smrgelse $as_nop 786594a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 786694a251fdSmrgfi 78676d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 786894a251fdSmrgfi 78696d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 78706d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 787194a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 787294a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 787394a251fdSmrgfi 787494a251fdSmrg 787594a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 787694a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 787794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 787894a251fdSmrg fi 787994a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 78806d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 78816d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 78826d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 78836d1874b2Smrgthen : 78846d1874b2Smrg printf %s "(cached) " >&6 78856d1874b2Smrgelse $as_nop 788694a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 788794a251fdSmrg/* end confdefs.h. */ 788894a251fdSmrgint i; 788994a251fdSmrg_ACEOF 78906d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 78916d1874b2Smrgthen : 789294a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 78936d1874b2Smrgelse $as_nop 789494a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 789594a251fdSmrgfi 78966d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 789794a251fdSmrgfi 78986d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 78996d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 790094a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 790194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 790294a251fdSmrgfi 790394a251fdSmrg 790494a251fdSmrgfound="no" 790594a251fdSmrg 790694a251fdSmrg if test $found = "no" ; then 79076a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 790894a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 790994a251fdSmrg fi 791094a251fdSmrg 79116a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 791294a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 791394a251fdSmrg fi 791494a251fdSmrg 791594a251fdSmrg CFLAGS="$CFLAGS -Werror=return-type" 791694a251fdSmrg 79176d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 79186d1874b2Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; } 79196a45684fSmrg cacheid=xorg_cv_cc_flag__Werror_return_type 79206d1874b2Smrg if eval test \${$cacheid+y} 79216d1874b2Smrgthen : 79226d1874b2Smrg printf %s "(cached) " >&6 79236d1874b2Smrgelse $as_nop 792494a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 792594a251fdSmrg/* end confdefs.h. */ 792694a251fdSmrgint i; 792794a251fdSmrgint 79286d1874b2Smrgmain (void) 792994a251fdSmrg{ 793094a251fdSmrg 793194a251fdSmrg ; 793294a251fdSmrg return 0; 793394a251fdSmrg} 793494a251fdSmrg_ACEOF 79356d1874b2Smrgif ac_fn_c_try_link "$LINENO" 79366d1874b2Smrgthen : 793794a251fdSmrg eval $cacheid=yes 79386d1874b2Smrgelse $as_nop 793994a251fdSmrg eval $cacheid=no 794094a251fdSmrgfi 79416d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 794294a251fdSmrg conftest$ac_exeext conftest.$ac_ext 794394a251fdSmrgfi 794494a251fdSmrg 794594a251fdSmrg 794694a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 794794a251fdSmrg 794894a251fdSmrg eval supported=\$$cacheid 79496d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 79506d1874b2Smrgprintf "%s\n" "$supported" >&6; } 795194a251fdSmrg if test "$supported" = "yes" ; then 795294a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 795394a251fdSmrg found="yes" 795494a251fdSmrg fi 795594a251fdSmrg fi 795694a251fdSmrg 795794a251fdSmrg if test $found = "no" ; then 79586a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 795994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 796094a251fdSmrg fi 796194a251fdSmrg 79626a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 796394a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 796494a251fdSmrg fi 796594a251fdSmrg 796694a251fdSmrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 796794a251fdSmrg 79686d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 79696d1874b2Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 79706a45684fSmrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 79716d1874b2Smrg if eval test \${$cacheid+y} 79726d1874b2Smrgthen : 79736d1874b2Smrg printf %s "(cached) " >&6 79746d1874b2Smrgelse $as_nop 797594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 797694a251fdSmrg/* end confdefs.h. */ 797794a251fdSmrgint i; 797894a251fdSmrgint 79796d1874b2Smrgmain (void) 798094a251fdSmrg{ 798194a251fdSmrg 798294a251fdSmrg ; 798394a251fdSmrg return 0; 798494a251fdSmrg} 798594a251fdSmrg_ACEOF 79866d1874b2Smrgif ac_fn_c_try_link "$LINENO" 79876d1874b2Smrgthen : 798894a251fdSmrg eval $cacheid=yes 79896d1874b2Smrgelse $as_nop 799094a251fdSmrg eval $cacheid=no 799194a251fdSmrgfi 79926d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 799394a251fdSmrg conftest$ac_exeext conftest.$ac_ext 799494a251fdSmrgfi 799594a251fdSmrg 799694a251fdSmrg 799794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 799894a251fdSmrg 799994a251fdSmrg eval supported=\$$cacheid 80006d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 80016d1874b2Smrgprintf "%s\n" "$supported" >&6; } 800294a251fdSmrg if test "$supported" = "yes" ; then 800394a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 800494a251fdSmrg found="yes" 800594a251fdSmrg fi 800694a251fdSmrg fi 800794a251fdSmrg 800894a251fdSmrg 800994a251fdSmrg 801094a251fdSmrg 801194a251fdSmrg 801294a251fdSmrg 801394a251fdSmrg 801494a251fdSmrg 801594a251fdSmrg 801694a251fdSmrg 801794a251fdSmrg 801894a251fdSmrg 801994a251fdSmrg 802094a251fdSmrg 802194a251fdSmrg 802294a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 802394a251fdSmrg 802494a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 802594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80266d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 80276d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 80286d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 80296d1874b2Smrgthen : 80306d1874b2Smrg printf %s "(cached) " >&6 80316d1874b2Smrgelse $as_nop 803294a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 803394a251fdSmrg/* end confdefs.h. */ 803494a251fdSmrgint i; 803594a251fdSmrg_ACEOF 80366d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 80376d1874b2Smrgthen : 803894a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 80396d1874b2Smrgelse $as_nop 804094a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 804194a251fdSmrgfi 80426d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 804394a251fdSmrgfi 80446d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 80456d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 804694a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 804794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 804894a251fdSmrgfi 804994a251fdSmrg 805094a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 805194a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 805294a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 805394a251fdSmrg fi 805494a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 80556d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 80566d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 80576d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 80586d1874b2Smrgthen : 80596d1874b2Smrg printf %s "(cached) " >&6 80606d1874b2Smrgelse $as_nop 806194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 806294a251fdSmrg/* end confdefs.h. */ 806394a251fdSmrgint i; 806494a251fdSmrg_ACEOF 80656d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 80666d1874b2Smrgthen : 806794a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 80686d1874b2Smrgelse $as_nop 806994a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 807094a251fdSmrgfi 80716d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 807294a251fdSmrgfi 80736d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 80746d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 807594a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 807694a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 807794a251fdSmrgfi 807894a251fdSmrg 807994a251fdSmrgfound="no" 808094a251fdSmrg 808194a251fdSmrg if test $found = "no" ; then 80826a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 808394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 808494a251fdSmrg fi 808594a251fdSmrg 80866a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 808794a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 808894a251fdSmrg fi 808994a251fdSmrg 809094a251fdSmrg CFLAGS="$CFLAGS -Werror=trigraphs" 809194a251fdSmrg 80926d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 80936d1874b2Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 80946a45684fSmrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 80956d1874b2Smrg if eval test \${$cacheid+y} 80966d1874b2Smrgthen : 80976d1874b2Smrg printf %s "(cached) " >&6 80986d1874b2Smrgelse $as_nop 809994a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 810094a251fdSmrg/* end confdefs.h. */ 810194a251fdSmrgint i; 810294a251fdSmrgint 81036d1874b2Smrgmain (void) 810494a251fdSmrg{ 810594a251fdSmrg 810694a251fdSmrg ; 810794a251fdSmrg return 0; 810894a251fdSmrg} 810994a251fdSmrg_ACEOF 81106d1874b2Smrgif ac_fn_c_try_link "$LINENO" 81116d1874b2Smrgthen : 811294a251fdSmrg eval $cacheid=yes 81136d1874b2Smrgelse $as_nop 811494a251fdSmrg eval $cacheid=no 811594a251fdSmrgfi 81166d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 811794a251fdSmrg conftest$ac_exeext conftest.$ac_ext 811894a251fdSmrgfi 811994a251fdSmrg 812094a251fdSmrg 812194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 812294a251fdSmrg 812394a251fdSmrg eval supported=\$$cacheid 81246d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 81256d1874b2Smrgprintf "%s\n" "$supported" >&6; } 812694a251fdSmrg if test "$supported" = "yes" ; then 812794a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 812894a251fdSmrg found="yes" 812994a251fdSmrg fi 813094a251fdSmrg fi 813194a251fdSmrg 813294a251fdSmrg 813394a251fdSmrg 813494a251fdSmrg 813594a251fdSmrg 813694a251fdSmrg 813794a251fdSmrg 813894a251fdSmrg 813994a251fdSmrg 814094a251fdSmrg 814194a251fdSmrg 814294a251fdSmrg 814394a251fdSmrg 814494a251fdSmrg 814594a251fdSmrg 814694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 814794a251fdSmrg 814894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 814994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81506d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 81516d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 81526d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 81536d1874b2Smrgthen : 81546d1874b2Smrg printf %s "(cached) " >&6 81556d1874b2Smrgelse $as_nop 815694a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 815794a251fdSmrg/* end confdefs.h. */ 815894a251fdSmrgint i; 815994a251fdSmrg_ACEOF 81606d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 81616d1874b2Smrgthen : 816294a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 81636d1874b2Smrgelse $as_nop 816494a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 816594a251fdSmrgfi 81666d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 816794a251fdSmrgfi 81686d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 81696d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 817094a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 817194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 817294a251fdSmrgfi 817394a251fdSmrg 817494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 817594a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 817694a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 817794a251fdSmrg fi 817894a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81796d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 81806d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 81816d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 81826d1874b2Smrgthen : 81836d1874b2Smrg printf %s "(cached) " >&6 81846d1874b2Smrgelse $as_nop 818594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 818694a251fdSmrg/* end confdefs.h. */ 818794a251fdSmrgint i; 818894a251fdSmrg_ACEOF 81896d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 81906d1874b2Smrgthen : 819194a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 81926d1874b2Smrgelse $as_nop 819394a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 819494a251fdSmrgfi 81956d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 819694a251fdSmrgfi 81976d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 81986d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 819994a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 820094a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 820194a251fdSmrgfi 820294a251fdSmrg 820394a251fdSmrgfound="no" 820494a251fdSmrg 820594a251fdSmrg if test $found = "no" ; then 82066a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 820794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 820894a251fdSmrg fi 820994a251fdSmrg 82106a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 821194a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 821294a251fdSmrg fi 821394a251fdSmrg 821494a251fdSmrg CFLAGS="$CFLAGS -Werror=array-bounds" 821594a251fdSmrg 82166d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 82176d1874b2Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 82186a45684fSmrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 82196d1874b2Smrg if eval test \${$cacheid+y} 82206d1874b2Smrgthen : 82216d1874b2Smrg printf %s "(cached) " >&6 82226d1874b2Smrgelse $as_nop 822394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 822494a251fdSmrg/* end confdefs.h. */ 822594a251fdSmrgint i; 822694a251fdSmrgint 82276d1874b2Smrgmain (void) 822894a251fdSmrg{ 822994a251fdSmrg 823094a251fdSmrg ; 823194a251fdSmrg return 0; 823294a251fdSmrg} 823394a251fdSmrg_ACEOF 82346d1874b2Smrgif ac_fn_c_try_link "$LINENO" 82356d1874b2Smrgthen : 823694a251fdSmrg eval $cacheid=yes 82376d1874b2Smrgelse $as_nop 823894a251fdSmrg eval $cacheid=no 823994a251fdSmrgfi 82406d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 824194a251fdSmrg conftest$ac_exeext conftest.$ac_ext 824294a251fdSmrgfi 824394a251fdSmrg 824494a251fdSmrg 824594a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 824694a251fdSmrg 824794a251fdSmrg eval supported=\$$cacheid 82486d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 82496d1874b2Smrgprintf "%s\n" "$supported" >&6; } 825094a251fdSmrg if test "$supported" = "yes" ; then 825194a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 825294a251fdSmrg found="yes" 825394a251fdSmrg fi 825494a251fdSmrg fi 825594a251fdSmrg 825694a251fdSmrg 825794a251fdSmrg 825894a251fdSmrg 825994a251fdSmrg 826094a251fdSmrg 826194a251fdSmrg 826294a251fdSmrg 826394a251fdSmrg 826494a251fdSmrg 826594a251fdSmrg 826694a251fdSmrg 826794a251fdSmrg 826894a251fdSmrg 826994a251fdSmrg 827094a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 827194a251fdSmrg 827294a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 827394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82746d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 82756d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 82766d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 82776d1874b2Smrgthen : 82786d1874b2Smrg printf %s "(cached) " >&6 82796d1874b2Smrgelse $as_nop 828094a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 828194a251fdSmrg/* end confdefs.h. */ 828294a251fdSmrgint i; 828394a251fdSmrg_ACEOF 82846d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 82856d1874b2Smrgthen : 828694a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 82876d1874b2Smrgelse $as_nop 828894a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 828994a251fdSmrgfi 82906d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 829194a251fdSmrgfi 82926d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 82936d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 829494a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 829594a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 829694a251fdSmrgfi 829794a251fdSmrg 829894a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 829994a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 830094a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 830194a251fdSmrg fi 830294a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 83036d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 83046d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 83056d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 83066d1874b2Smrgthen : 83076d1874b2Smrg printf %s "(cached) " >&6 83086d1874b2Smrgelse $as_nop 830994a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 831094a251fdSmrg/* end confdefs.h. */ 831194a251fdSmrgint i; 831294a251fdSmrg_ACEOF 83136d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 83146d1874b2Smrgthen : 831594a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 83166d1874b2Smrgelse $as_nop 831794a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 831894a251fdSmrgfi 83196d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 832094a251fdSmrgfi 83216d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 83226d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 832394a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 832494a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 832594a251fdSmrgfi 832694a251fdSmrg 832794a251fdSmrgfound="no" 832894a251fdSmrg 832994a251fdSmrg if test $found = "no" ; then 83306a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 833194a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 833294a251fdSmrg fi 833394a251fdSmrg 83346a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 833594a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 833694a251fdSmrg fi 833794a251fdSmrg 833894a251fdSmrg CFLAGS="$CFLAGS -Werror=write-strings" 833994a251fdSmrg 83406d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 83416d1874b2Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; } 83426a45684fSmrg cacheid=xorg_cv_cc_flag__Werror_write_strings 83436d1874b2Smrg if eval test \${$cacheid+y} 83446d1874b2Smrgthen : 83456d1874b2Smrg printf %s "(cached) " >&6 83466d1874b2Smrgelse $as_nop 834794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 834894a251fdSmrg/* end confdefs.h. */ 834994a251fdSmrgint i; 835094a251fdSmrgint 83516d1874b2Smrgmain (void) 835294a251fdSmrg{ 835394a251fdSmrg 835494a251fdSmrg ; 835594a251fdSmrg return 0; 835694a251fdSmrg} 835794a251fdSmrg_ACEOF 83586d1874b2Smrgif ac_fn_c_try_link "$LINENO" 83596d1874b2Smrgthen : 836094a251fdSmrg eval $cacheid=yes 83616d1874b2Smrgelse $as_nop 836294a251fdSmrg eval $cacheid=no 836394a251fdSmrgfi 83646d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 836594a251fdSmrg conftest$ac_exeext conftest.$ac_ext 836694a251fdSmrgfi 836794a251fdSmrg 836894a251fdSmrg 836994a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 837094a251fdSmrg 837194a251fdSmrg eval supported=\$$cacheid 83726d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 83736d1874b2Smrgprintf "%s\n" "$supported" >&6; } 837494a251fdSmrg if test "$supported" = "yes" ; then 837594a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 837694a251fdSmrg found="yes" 837794a251fdSmrg fi 837894a251fdSmrg fi 837994a251fdSmrg 838094a251fdSmrg 838194a251fdSmrg 838294a251fdSmrg 838394a251fdSmrg 838494a251fdSmrg 838594a251fdSmrg 838694a251fdSmrg 838794a251fdSmrg 838894a251fdSmrg 838994a251fdSmrg 839094a251fdSmrg 839194a251fdSmrg 839294a251fdSmrg 839394a251fdSmrg 839494a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 839594a251fdSmrg 839694a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 839794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83986d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 83996d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 84006d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 84016d1874b2Smrgthen : 84026d1874b2Smrg printf %s "(cached) " >&6 84036d1874b2Smrgelse $as_nop 840494a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 840594a251fdSmrg/* end confdefs.h. */ 840694a251fdSmrgint i; 840794a251fdSmrg_ACEOF 84086d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 84096d1874b2Smrgthen : 841094a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 84116d1874b2Smrgelse $as_nop 841294a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 841394a251fdSmrgfi 84146d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 841594a251fdSmrgfi 84166d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 84176d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 841894a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 841994a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 842094a251fdSmrgfi 842194a251fdSmrg 842294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 842394a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 842494a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 842594a251fdSmrg fi 842694a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84276d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 84286d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 84296d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 84306d1874b2Smrgthen : 84316d1874b2Smrg printf %s "(cached) " >&6 84326d1874b2Smrgelse $as_nop 843394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 843494a251fdSmrg/* end confdefs.h. */ 843594a251fdSmrgint i; 843694a251fdSmrg_ACEOF 84376d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 84386d1874b2Smrgthen : 843994a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 84406d1874b2Smrgelse $as_nop 844194a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 844294a251fdSmrgfi 84436d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 844494a251fdSmrgfi 84456d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 84466d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 844794a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 844894a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 844994a251fdSmrgfi 845094a251fdSmrg 845194a251fdSmrgfound="no" 845294a251fdSmrg 845394a251fdSmrg if test $found = "no" ; then 84546a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 845594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 845694a251fdSmrg fi 845794a251fdSmrg 84586a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 845994a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 846094a251fdSmrg fi 846194a251fdSmrg 846294a251fdSmrg CFLAGS="$CFLAGS -Werror=address" 846394a251fdSmrg 84646d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 84656d1874b2Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; } 84666a45684fSmrg cacheid=xorg_cv_cc_flag__Werror_address 84676d1874b2Smrg if eval test \${$cacheid+y} 84686d1874b2Smrgthen : 84696d1874b2Smrg printf %s "(cached) " >&6 84706d1874b2Smrgelse $as_nop 847194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 847294a251fdSmrg/* end confdefs.h. */ 847394a251fdSmrgint i; 847494a251fdSmrgint 84756d1874b2Smrgmain (void) 847694a251fdSmrg{ 847794a251fdSmrg 847894a251fdSmrg ; 847994a251fdSmrg return 0; 848094a251fdSmrg} 848194a251fdSmrg_ACEOF 84826d1874b2Smrgif ac_fn_c_try_link "$LINENO" 84836d1874b2Smrgthen : 848494a251fdSmrg eval $cacheid=yes 84856d1874b2Smrgelse $as_nop 848694a251fdSmrg eval $cacheid=no 848794a251fdSmrgfi 84886d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 848994a251fdSmrg conftest$ac_exeext conftest.$ac_ext 849094a251fdSmrgfi 849194a251fdSmrg 849294a251fdSmrg 849394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 849494a251fdSmrg 849594a251fdSmrg eval supported=\$$cacheid 84966d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 84976d1874b2Smrgprintf "%s\n" "$supported" >&6; } 849894a251fdSmrg if test "$supported" = "yes" ; then 849994a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 850094a251fdSmrg found="yes" 850194a251fdSmrg fi 850294a251fdSmrg fi 850394a251fdSmrg 850494a251fdSmrg 850594a251fdSmrg 850694a251fdSmrg 850794a251fdSmrg 850894a251fdSmrg 850994a251fdSmrg 851094a251fdSmrg 851194a251fdSmrg 851294a251fdSmrg 851394a251fdSmrg 851494a251fdSmrg 851594a251fdSmrg 851694a251fdSmrg 851794a251fdSmrg 851894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 851994a251fdSmrg 852094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 852194a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85226d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 85236d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 85246d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 85256d1874b2Smrgthen : 85266d1874b2Smrg printf %s "(cached) " >&6 85276d1874b2Smrgelse $as_nop 852894a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 852994a251fdSmrg/* end confdefs.h. */ 853094a251fdSmrgint i; 853194a251fdSmrg_ACEOF 85326d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 85336d1874b2Smrgthen : 853494a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 85356d1874b2Smrgelse $as_nop 853694a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 853794a251fdSmrgfi 85386d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 853994a251fdSmrgfi 85406d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 85416d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 854294a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 854394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 854494a251fdSmrgfi 854594a251fdSmrg 854694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 854794a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 854894a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 854994a251fdSmrg fi 855094a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85516d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 85526d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 85536d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 85546d1874b2Smrgthen : 85556d1874b2Smrg printf %s "(cached) " >&6 85566d1874b2Smrgelse $as_nop 855794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 855894a251fdSmrg/* end confdefs.h. */ 855994a251fdSmrgint i; 856094a251fdSmrg_ACEOF 85616d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 85626d1874b2Smrgthen : 856394a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 85646d1874b2Smrgelse $as_nop 856594a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 856694a251fdSmrgfi 85676d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 856894a251fdSmrgfi 85696d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 85706d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 857194a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 857294a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 857394a251fdSmrgfi 857494a251fdSmrg 857594a251fdSmrgfound="no" 857694a251fdSmrg 857794a251fdSmrg if test $found = "no" ; then 85786a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 857994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 858094a251fdSmrg fi 858194a251fdSmrg 85826a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 858394a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 858494a251fdSmrg fi 858594a251fdSmrg 858694a251fdSmrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 858794a251fdSmrg 85886d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 85896d1874b2Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 85906a45684fSmrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 85916d1874b2Smrg if eval test \${$cacheid+y} 85926d1874b2Smrgthen : 85936d1874b2Smrg printf %s "(cached) " >&6 85946d1874b2Smrgelse $as_nop 859594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 859694a251fdSmrg/* end confdefs.h. */ 859794a251fdSmrgint i; 859894a251fdSmrgint 85996d1874b2Smrgmain (void) 860094a251fdSmrg{ 860194a251fdSmrg 860294a251fdSmrg ; 860394a251fdSmrg return 0; 860494a251fdSmrg} 860594a251fdSmrg_ACEOF 86066d1874b2Smrgif ac_fn_c_try_link "$LINENO" 86076d1874b2Smrgthen : 860894a251fdSmrg eval $cacheid=yes 86096d1874b2Smrgelse $as_nop 861094a251fdSmrg eval $cacheid=no 861194a251fdSmrgfi 86126d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 861394a251fdSmrg conftest$ac_exeext conftest.$ac_ext 861494a251fdSmrgfi 861594a251fdSmrg 861694a251fdSmrg 861794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 861894a251fdSmrg 861994a251fdSmrg eval supported=\$$cacheid 86206d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 86216d1874b2Smrgprintf "%s\n" "$supported" >&6; } 862294a251fdSmrg if test "$supported" = "yes" ; then 862394a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 862494a251fdSmrg found="yes" 862594a251fdSmrg fi 862694a251fdSmrg fi 862794a251fdSmrg 862894a251fdSmrg if test $found = "no" ; then 86296a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 863094a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 863194a251fdSmrg fi 863294a251fdSmrg 86336a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 863494a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 863594a251fdSmrg fi 863694a251fdSmrg 863794a251fdSmrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 863894a251fdSmrg 86396d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 86406d1874b2Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 86416a45684fSmrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 86426d1874b2Smrg if eval test \${$cacheid+y} 86436d1874b2Smrgthen : 86446d1874b2Smrg printf %s "(cached) " >&6 86456d1874b2Smrgelse $as_nop 864694a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 864794a251fdSmrg/* end confdefs.h. */ 864894a251fdSmrgint i; 864994a251fdSmrgint 86506d1874b2Smrgmain (void) 865194a251fdSmrg{ 865294a251fdSmrg 865394a251fdSmrg ; 865494a251fdSmrg return 0; 865594a251fdSmrg} 865694a251fdSmrg_ACEOF 86576d1874b2Smrgif ac_fn_c_try_link "$LINENO" 86586d1874b2Smrgthen : 865994a251fdSmrg eval $cacheid=yes 86606d1874b2Smrgelse $as_nop 866194a251fdSmrg eval $cacheid=no 866294a251fdSmrgfi 86636d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 866494a251fdSmrg conftest$ac_exeext conftest.$ac_ext 866594a251fdSmrgfi 866694a251fdSmrg 866794a251fdSmrg 866894a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 866994a251fdSmrg 867094a251fdSmrg eval supported=\$$cacheid 86716d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 86726d1874b2Smrgprintf "%s\n" "$supported" >&6; } 867394a251fdSmrg if test "$supported" = "yes" ; then 867494a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 867594a251fdSmrg found="yes" 867694a251fdSmrg fi 867794a251fdSmrg fi 867894a251fdSmrg 867994a251fdSmrg 868094a251fdSmrg 868194a251fdSmrg 868294a251fdSmrg 868394a251fdSmrg 868494a251fdSmrg 868594a251fdSmrg 868694a251fdSmrg 868794a251fdSmrg 868894a251fdSmrg 868994a251fdSmrg 869094a251fdSmrg 869194a251fdSmrg 869294a251fdSmrg 869394a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 869494a251fdSmrg 869594a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 869694a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86976d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 86986d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 86996d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 87006d1874b2Smrgthen : 87016d1874b2Smrg printf %s "(cached) " >&6 87026d1874b2Smrgelse $as_nop 870394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 870494a251fdSmrg/* end confdefs.h. */ 870594a251fdSmrgint i; 870694a251fdSmrg_ACEOF 87076d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 87086d1874b2Smrgthen : 870994a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 87106d1874b2Smrgelse $as_nop 871194a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 871294a251fdSmrgfi 87136d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 871494a251fdSmrgfi 87156d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 87166d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 871794a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 871894a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 871994a251fdSmrgfi 872094a251fdSmrg 872194a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 872294a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 872394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 872494a251fdSmrg fi 872594a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 87266d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 87276d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 87286d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 87296d1874b2Smrgthen : 87306d1874b2Smrg printf %s "(cached) " >&6 87316d1874b2Smrgelse $as_nop 873294a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 873394a251fdSmrg/* end confdefs.h. */ 873494a251fdSmrgint i; 873594a251fdSmrg_ACEOF 87366d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 87376d1874b2Smrgthen : 873894a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 87396d1874b2Smrgelse $as_nop 874094a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 874194a251fdSmrgfi 87426d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 874394a251fdSmrgfi 87446d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 87456d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 874694a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 874794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 874894a251fdSmrgfi 874994a251fdSmrg 875094a251fdSmrgfound="no" 875194a251fdSmrg 875294a251fdSmrg if test $found = "no" ; then 87536a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 875494a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 875594a251fdSmrg fi 875694a251fdSmrg 87576a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 875894a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 875994a251fdSmrg fi 876094a251fdSmrg 876194a251fdSmrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 876294a251fdSmrg 87636d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 87646d1874b2Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 87656a45684fSmrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 87666d1874b2Smrg if eval test \${$cacheid+y} 87676d1874b2Smrgthen : 87686d1874b2Smrg printf %s "(cached) " >&6 87696d1874b2Smrgelse $as_nop 877094a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 877194a251fdSmrg/* end confdefs.h. */ 877294a251fdSmrgint i; 877394a251fdSmrgint 87746d1874b2Smrgmain (void) 877594a251fdSmrg{ 877694a251fdSmrg 877794a251fdSmrg ; 877894a251fdSmrg return 0; 877994a251fdSmrg} 878094a251fdSmrg_ACEOF 87816d1874b2Smrgif ac_fn_c_try_link "$LINENO" 87826d1874b2Smrgthen : 878394a251fdSmrg eval $cacheid=yes 87846d1874b2Smrgelse $as_nop 878594a251fdSmrg eval $cacheid=no 878694a251fdSmrgfi 87876d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 878894a251fdSmrg conftest$ac_exeext conftest.$ac_ext 878994a251fdSmrgfi 879094a251fdSmrg 879194a251fdSmrg 879294a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 879394a251fdSmrg 879494a251fdSmrg eval supported=\$$cacheid 87956d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 87966d1874b2Smrgprintf "%s\n" "$supported" >&6; } 879794a251fdSmrg if test "$supported" = "yes" ; then 879894a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 879994a251fdSmrg found="yes" 880094a251fdSmrg fi 880194a251fdSmrg fi 880294a251fdSmrg 880394a251fdSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 880494a251fdSmrgelse 88056d1874b2Smrg{ 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 88066d1874b2Smrgprintf "%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;} 880794a251fdSmrg 880894a251fdSmrg 880994a251fdSmrg 881094a251fdSmrg 881194a251fdSmrg 881294a251fdSmrg 881394a251fdSmrg 881494a251fdSmrg 881594a251fdSmrg 881694a251fdSmrg 881794a251fdSmrg 881894a251fdSmrg 881994a251fdSmrg 882094a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 882194a251fdSmrg 882294a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 882394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88246d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 88256d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 88266d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 88276d1874b2Smrgthen : 88286d1874b2Smrg printf %s "(cached) " >&6 88296d1874b2Smrgelse $as_nop 883094a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 883194a251fdSmrg/* end confdefs.h. */ 883294a251fdSmrgint i; 883394a251fdSmrg_ACEOF 88346d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 88356d1874b2Smrgthen : 883694a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 88376d1874b2Smrgelse $as_nop 883894a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 883994a251fdSmrgfi 88406d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 884194a251fdSmrgfi 88426d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 88436d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 884494a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 884594a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 884694a251fdSmrgfi 884794a251fdSmrg 884894a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 884994a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 885094a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 885194a251fdSmrg fi 885294a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 88536d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 88546d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 88556d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 88566d1874b2Smrgthen : 88576d1874b2Smrg printf %s "(cached) " >&6 88586d1874b2Smrgelse $as_nop 885994a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 886094a251fdSmrg/* end confdefs.h. */ 886194a251fdSmrgint i; 886294a251fdSmrg_ACEOF 88636d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 88646d1874b2Smrgthen : 886594a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 88666d1874b2Smrgelse $as_nop 886794a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 886894a251fdSmrgfi 88696d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 887094a251fdSmrgfi 88716d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 88726d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 887394a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 887494a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 887594a251fdSmrgfi 887694a251fdSmrg 887794a251fdSmrgfound="no" 887894a251fdSmrg 887994a251fdSmrg if test $found = "no" ; then 88806a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 888194a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 888294a251fdSmrg fi 888394a251fdSmrg 88846a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 888594a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 888694a251fdSmrg fi 888794a251fdSmrg 888894a251fdSmrg CFLAGS="$CFLAGS -Wimplicit" 888994a251fdSmrg 88906d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 88916d1874b2Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; } 889294a251fdSmrg cacheid=xorg_cv_cc_flag__Wimplicit 88936d1874b2Smrg if eval test \${$cacheid+y} 88946d1874b2Smrgthen : 88956d1874b2Smrg printf %s "(cached) " >&6 88966d1874b2Smrgelse $as_nop 889794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 889894a251fdSmrg/* end confdefs.h. */ 889994a251fdSmrgint i; 890094a251fdSmrgint 89016d1874b2Smrgmain (void) 890294a251fdSmrg{ 890394a251fdSmrg 890494a251fdSmrg ; 890594a251fdSmrg return 0; 890694a251fdSmrg} 890794a251fdSmrg_ACEOF 89086d1874b2Smrgif ac_fn_c_try_link "$LINENO" 89096d1874b2Smrgthen : 891094a251fdSmrg eval $cacheid=yes 89116d1874b2Smrgelse $as_nop 891294a251fdSmrg eval $cacheid=no 891394a251fdSmrgfi 89146d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 891594a251fdSmrg conftest$ac_exeext conftest.$ac_ext 891694a251fdSmrgfi 891794a251fdSmrg 891894a251fdSmrg 891994a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 892094a251fdSmrg 892194a251fdSmrg eval supported=\$$cacheid 89226d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 89236d1874b2Smrgprintf "%s\n" "$supported" >&6; } 892494a251fdSmrg if test "$supported" = "yes" ; then 892594a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 892694a251fdSmrg found="yes" 892794a251fdSmrg fi 892894a251fdSmrg fi 892994a251fdSmrg 893094a251fdSmrg 893194a251fdSmrg 893294a251fdSmrg 893394a251fdSmrg 893494a251fdSmrg 893594a251fdSmrg 893694a251fdSmrg 893794a251fdSmrg 893894a251fdSmrg 893994a251fdSmrg 894094a251fdSmrg 894194a251fdSmrg 894294a251fdSmrg 894394a251fdSmrg 894494a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 894594a251fdSmrg 894694a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 894794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89486d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 89496d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 89506d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 89516d1874b2Smrgthen : 89526d1874b2Smrg printf %s "(cached) " >&6 89536d1874b2Smrgelse $as_nop 895494a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 895594a251fdSmrg/* end confdefs.h. */ 895694a251fdSmrgint i; 895794a251fdSmrg_ACEOF 89586d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 89596d1874b2Smrgthen : 896094a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 89616d1874b2Smrgelse $as_nop 896294a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 896394a251fdSmrgfi 89646d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 896594a251fdSmrgfi 89666d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 89676d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 896894a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 896994a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 897094a251fdSmrgfi 897194a251fdSmrg 897294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 897394a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 897494a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 897594a251fdSmrg fi 897694a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89776d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 89786d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 89796d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 89806d1874b2Smrgthen : 89816d1874b2Smrg printf %s "(cached) " >&6 89826d1874b2Smrgelse $as_nop 898394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 898494a251fdSmrg/* end confdefs.h. */ 898594a251fdSmrgint i; 898694a251fdSmrg_ACEOF 89876d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 89886d1874b2Smrgthen : 898994a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 89906d1874b2Smrgelse $as_nop 899194a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 899294a251fdSmrgfi 89936d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 899494a251fdSmrgfi 89956d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 89966d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 899794a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 899894a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 899994a251fdSmrgfi 900094a251fdSmrg 900194a251fdSmrgfound="no" 900294a251fdSmrg 900394a251fdSmrg if test $found = "no" ; then 90046a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 900594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 900694a251fdSmrg fi 900794a251fdSmrg 90086a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 900994a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 901094a251fdSmrg fi 901194a251fdSmrg 901294a251fdSmrg CFLAGS="$CFLAGS -Wnonnull" 901394a251fdSmrg 90146d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 90156d1874b2Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; } 901694a251fdSmrg cacheid=xorg_cv_cc_flag__Wnonnull 90176d1874b2Smrg if eval test \${$cacheid+y} 90186d1874b2Smrgthen : 90196d1874b2Smrg printf %s "(cached) " >&6 90206d1874b2Smrgelse $as_nop 902194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 902294a251fdSmrg/* end confdefs.h. */ 902394a251fdSmrgint i; 902494a251fdSmrgint 90256d1874b2Smrgmain (void) 902694a251fdSmrg{ 902794a251fdSmrg 902894a251fdSmrg ; 902994a251fdSmrg return 0; 903094a251fdSmrg} 903194a251fdSmrg_ACEOF 90326d1874b2Smrgif ac_fn_c_try_link "$LINENO" 90336d1874b2Smrgthen : 903494a251fdSmrg eval $cacheid=yes 90356d1874b2Smrgelse $as_nop 903694a251fdSmrg eval $cacheid=no 903794a251fdSmrgfi 90386d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 903994a251fdSmrg conftest$ac_exeext conftest.$ac_ext 904094a251fdSmrgfi 904194a251fdSmrg 904294a251fdSmrg 904394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 904494a251fdSmrg 904594a251fdSmrg eval supported=\$$cacheid 90466d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 90476d1874b2Smrgprintf "%s\n" "$supported" >&6; } 904894a251fdSmrg if test "$supported" = "yes" ; then 904994a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 905094a251fdSmrg found="yes" 905194a251fdSmrg fi 905294a251fdSmrg fi 905394a251fdSmrg 905494a251fdSmrg 905594a251fdSmrg 905694a251fdSmrg 905794a251fdSmrg 905894a251fdSmrg 905994a251fdSmrg 906094a251fdSmrg 906194a251fdSmrg 906294a251fdSmrg 906394a251fdSmrg 906494a251fdSmrg 906594a251fdSmrg 906694a251fdSmrg 906794a251fdSmrg 906894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 906994a251fdSmrg 907094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 907194a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90726d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 90736d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 90746d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 90756d1874b2Smrgthen : 90766d1874b2Smrg printf %s "(cached) " >&6 90776d1874b2Smrgelse $as_nop 907894a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 907994a251fdSmrg/* end confdefs.h. */ 908094a251fdSmrgint i; 908194a251fdSmrg_ACEOF 90826d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 90836d1874b2Smrgthen : 908494a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 90856d1874b2Smrgelse $as_nop 908694a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 908794a251fdSmrgfi 90886d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 908994a251fdSmrgfi 90906d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 90916d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 909294a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 909394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 909494a251fdSmrgfi 909594a251fdSmrg 909694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 909794a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 909894a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 909994a251fdSmrg fi 910094a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91016d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 91026d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 91036d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 91046d1874b2Smrgthen : 91056d1874b2Smrg printf %s "(cached) " >&6 91066d1874b2Smrgelse $as_nop 910794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 910894a251fdSmrg/* end confdefs.h. */ 910994a251fdSmrgint i; 911094a251fdSmrg_ACEOF 91116d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 91126d1874b2Smrgthen : 911394a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 91146d1874b2Smrgelse $as_nop 911594a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 911694a251fdSmrgfi 91176d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 911894a251fdSmrgfi 91196d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 91206d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 912194a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 912294a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 912394a251fdSmrgfi 912494a251fdSmrg 912594a251fdSmrgfound="no" 912694a251fdSmrg 912794a251fdSmrg if test $found = "no" ; then 91286a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 912994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 913094a251fdSmrg fi 913194a251fdSmrg 91326a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 913394a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 913494a251fdSmrg fi 913594a251fdSmrg 913694a251fdSmrg CFLAGS="$CFLAGS -Winit-self" 913794a251fdSmrg 91386d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 91396d1874b2Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; } 914094a251fdSmrg cacheid=xorg_cv_cc_flag__Winit_self 91416d1874b2Smrg if eval test \${$cacheid+y} 91426d1874b2Smrgthen : 91436d1874b2Smrg printf %s "(cached) " >&6 91446d1874b2Smrgelse $as_nop 914594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 914694a251fdSmrg/* end confdefs.h. */ 914794a251fdSmrgint i; 914894a251fdSmrgint 91496d1874b2Smrgmain (void) 915094a251fdSmrg{ 915194a251fdSmrg 915294a251fdSmrg ; 915394a251fdSmrg return 0; 915494a251fdSmrg} 915594a251fdSmrg_ACEOF 91566d1874b2Smrgif ac_fn_c_try_link "$LINENO" 91576d1874b2Smrgthen : 915894a251fdSmrg eval $cacheid=yes 91596d1874b2Smrgelse $as_nop 916094a251fdSmrg eval $cacheid=no 916194a251fdSmrgfi 91626d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 916394a251fdSmrg conftest$ac_exeext conftest.$ac_ext 916494a251fdSmrgfi 916594a251fdSmrg 916694a251fdSmrg 916794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 916894a251fdSmrg 916994a251fdSmrg eval supported=\$$cacheid 91706d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 91716d1874b2Smrgprintf "%s\n" "$supported" >&6; } 917294a251fdSmrg if test "$supported" = "yes" ; then 917394a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 917494a251fdSmrg found="yes" 917594a251fdSmrg fi 917694a251fdSmrg fi 917794a251fdSmrg 917894a251fdSmrg 917994a251fdSmrg 918094a251fdSmrg 918194a251fdSmrg 918294a251fdSmrg 918394a251fdSmrg 918494a251fdSmrg 918594a251fdSmrg 918694a251fdSmrg 918794a251fdSmrg 918894a251fdSmrg 918994a251fdSmrg 919094a251fdSmrg 919194a251fdSmrg 919294a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 919394a251fdSmrg 919494a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 919594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91966d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 91976d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 91986d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 91996d1874b2Smrgthen : 92006d1874b2Smrg printf %s "(cached) " >&6 92016d1874b2Smrgelse $as_nop 920294a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 920394a251fdSmrg/* end confdefs.h. */ 920494a251fdSmrgint i; 920594a251fdSmrg_ACEOF 92066d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 92076d1874b2Smrgthen : 920894a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 92096d1874b2Smrgelse $as_nop 921094a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 921194a251fdSmrgfi 92126d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 921394a251fdSmrgfi 92146d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 92156d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 921694a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 921794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 921894a251fdSmrgfi 921994a251fdSmrg 922094a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 922194a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 922294a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 922394a251fdSmrg fi 922494a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92256d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 92266d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 92276d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 92286d1874b2Smrgthen : 92296d1874b2Smrg printf %s "(cached) " >&6 92306d1874b2Smrgelse $as_nop 923194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 923294a251fdSmrg/* end confdefs.h. */ 923394a251fdSmrgint i; 923494a251fdSmrg_ACEOF 92356d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 92366d1874b2Smrgthen : 923794a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 92386d1874b2Smrgelse $as_nop 923994a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 924094a251fdSmrgfi 92416d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 924294a251fdSmrgfi 92436d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 92446d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 924594a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 924694a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 924794a251fdSmrgfi 924894a251fdSmrg 924994a251fdSmrgfound="no" 925094a251fdSmrg 925194a251fdSmrg if test $found = "no" ; then 92526a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 925394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 925494a251fdSmrg fi 925594a251fdSmrg 92566a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 925794a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 925894a251fdSmrg fi 925994a251fdSmrg 926094a251fdSmrg CFLAGS="$CFLAGS -Wmain" 926194a251fdSmrg 92626d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 92636d1874b2Smrgprintf %s "checking if $CC supports -Wmain... " >&6; } 926494a251fdSmrg cacheid=xorg_cv_cc_flag__Wmain 92656d1874b2Smrg if eval test \${$cacheid+y} 92666d1874b2Smrgthen : 92676d1874b2Smrg printf %s "(cached) " >&6 92686d1874b2Smrgelse $as_nop 926994a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 927094a251fdSmrg/* end confdefs.h. */ 927194a251fdSmrgint i; 927294a251fdSmrgint 92736d1874b2Smrgmain (void) 927494a251fdSmrg{ 927594a251fdSmrg 927694a251fdSmrg ; 927794a251fdSmrg return 0; 927894a251fdSmrg} 927994a251fdSmrg_ACEOF 92806d1874b2Smrgif ac_fn_c_try_link "$LINENO" 92816d1874b2Smrgthen : 928294a251fdSmrg eval $cacheid=yes 92836d1874b2Smrgelse $as_nop 928494a251fdSmrg eval $cacheid=no 928594a251fdSmrgfi 92866d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 928794a251fdSmrg conftest$ac_exeext conftest.$ac_ext 928894a251fdSmrgfi 928994a251fdSmrg 929094a251fdSmrg 929194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 929294a251fdSmrg 929394a251fdSmrg eval supported=\$$cacheid 92946d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 92956d1874b2Smrgprintf "%s\n" "$supported" >&6; } 929694a251fdSmrg if test "$supported" = "yes" ; then 929794a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 929894a251fdSmrg found="yes" 929994a251fdSmrg fi 930094a251fdSmrg fi 930194a251fdSmrg 930294a251fdSmrg 930394a251fdSmrg 930494a251fdSmrg 930594a251fdSmrg 930694a251fdSmrg 930794a251fdSmrg 930894a251fdSmrg 930994a251fdSmrg 931094a251fdSmrg 931194a251fdSmrg 931294a251fdSmrg 931394a251fdSmrg 931494a251fdSmrg 931594a251fdSmrg 931694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 931794a251fdSmrg 931894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 931994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93206d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 93216d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 93226d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 93236d1874b2Smrgthen : 93246d1874b2Smrg printf %s "(cached) " >&6 93256d1874b2Smrgelse $as_nop 932694a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 932794a251fdSmrg/* end confdefs.h. */ 932894a251fdSmrgint i; 932994a251fdSmrg_ACEOF 93306d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 93316d1874b2Smrgthen : 933294a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 93336d1874b2Smrgelse $as_nop 933494a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 933594a251fdSmrgfi 93366d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 933794a251fdSmrgfi 93386d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 93396d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 934094a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 934194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 934294a251fdSmrgfi 934394a251fdSmrg 934494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 934594a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 934694a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 934794a251fdSmrg fi 934894a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93496d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 93506d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 93516d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 93526d1874b2Smrgthen : 93536d1874b2Smrg printf %s "(cached) " >&6 93546d1874b2Smrgelse $as_nop 935594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 935694a251fdSmrg/* end confdefs.h. */ 935794a251fdSmrgint i; 935894a251fdSmrg_ACEOF 93596d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 93606d1874b2Smrgthen : 936194a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 93626d1874b2Smrgelse $as_nop 936394a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 936494a251fdSmrgfi 93656d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 936694a251fdSmrgfi 93676d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 93686d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 936994a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 937094a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 937194a251fdSmrgfi 937294a251fdSmrg 937394a251fdSmrgfound="no" 937494a251fdSmrg 937594a251fdSmrg if test $found = "no" ; then 93766a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 937794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 937894a251fdSmrg fi 937994a251fdSmrg 93806a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 938194a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 938294a251fdSmrg fi 938394a251fdSmrg 938494a251fdSmrg CFLAGS="$CFLAGS -Wmissing-braces" 938594a251fdSmrg 93866d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 93876d1874b2Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; } 938894a251fdSmrg cacheid=xorg_cv_cc_flag__Wmissing_braces 93896d1874b2Smrg if eval test \${$cacheid+y} 93906d1874b2Smrgthen : 93916d1874b2Smrg printf %s "(cached) " >&6 93926d1874b2Smrgelse $as_nop 939394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 939494a251fdSmrg/* end confdefs.h. */ 939594a251fdSmrgint i; 939694a251fdSmrgint 93976d1874b2Smrgmain (void) 939894a251fdSmrg{ 939994a251fdSmrg 940094a251fdSmrg ; 940194a251fdSmrg return 0; 940294a251fdSmrg} 940394a251fdSmrg_ACEOF 94046d1874b2Smrgif ac_fn_c_try_link "$LINENO" 94056d1874b2Smrgthen : 940694a251fdSmrg eval $cacheid=yes 94076d1874b2Smrgelse $as_nop 940894a251fdSmrg eval $cacheid=no 940994a251fdSmrgfi 94106d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 941194a251fdSmrg conftest$ac_exeext conftest.$ac_ext 941294a251fdSmrgfi 941394a251fdSmrg 941494a251fdSmrg 941594a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 941694a251fdSmrg 941794a251fdSmrg eval supported=\$$cacheid 94186d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 94196d1874b2Smrgprintf "%s\n" "$supported" >&6; } 942094a251fdSmrg if test "$supported" = "yes" ; then 942194a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 942294a251fdSmrg found="yes" 942394a251fdSmrg fi 942494a251fdSmrg fi 942594a251fdSmrg 942694a251fdSmrg 942794a251fdSmrg 942894a251fdSmrg 942994a251fdSmrg 943094a251fdSmrg 943194a251fdSmrg 943294a251fdSmrg 943394a251fdSmrg 943494a251fdSmrg 943594a251fdSmrg 943694a251fdSmrg 943794a251fdSmrg 943894a251fdSmrg 943994a251fdSmrg 944094a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 944194a251fdSmrg 944294a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 944394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94446d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 94456d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 94466d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 94476d1874b2Smrgthen : 94486d1874b2Smrg printf %s "(cached) " >&6 94496d1874b2Smrgelse $as_nop 945094a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 945194a251fdSmrg/* end confdefs.h. */ 945294a251fdSmrgint i; 945394a251fdSmrg_ACEOF 94546d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 94556d1874b2Smrgthen : 945694a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 94576d1874b2Smrgelse $as_nop 945894a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 945994a251fdSmrgfi 94606d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 946194a251fdSmrgfi 94626d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 94636d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 946494a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 946594a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 946694a251fdSmrgfi 946794a251fdSmrg 946894a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 946994a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 947094a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 947194a251fdSmrg fi 947294a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 94736d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 94746d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 94756d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 94766d1874b2Smrgthen : 94776d1874b2Smrg printf %s "(cached) " >&6 94786d1874b2Smrgelse $as_nop 947994a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 948094a251fdSmrg/* end confdefs.h. */ 948194a251fdSmrgint i; 948294a251fdSmrg_ACEOF 94836d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 94846d1874b2Smrgthen : 948594a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 94866d1874b2Smrgelse $as_nop 948794a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 948894a251fdSmrgfi 94896d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 949094a251fdSmrgfi 94916d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 94926d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 949394a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 949494a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 949594a251fdSmrgfi 949694a251fdSmrg 949794a251fdSmrgfound="no" 949894a251fdSmrg 949994a251fdSmrg if test $found = "no" ; then 95006a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 950194a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 950294a251fdSmrg fi 950394a251fdSmrg 95046a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 950594a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 950694a251fdSmrg fi 950794a251fdSmrg 950894a251fdSmrg CFLAGS="$CFLAGS -Wsequence-point" 950994a251fdSmrg 95106d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 95116d1874b2Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; } 951294a251fdSmrg cacheid=xorg_cv_cc_flag__Wsequence_point 95136d1874b2Smrg if eval test \${$cacheid+y} 95146d1874b2Smrgthen : 95156d1874b2Smrg printf %s "(cached) " >&6 95166d1874b2Smrgelse $as_nop 951794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 951894a251fdSmrg/* end confdefs.h. */ 951994a251fdSmrgint i; 952094a251fdSmrgint 95216d1874b2Smrgmain (void) 952294a251fdSmrg{ 952394a251fdSmrg 952494a251fdSmrg ; 952594a251fdSmrg return 0; 952694a251fdSmrg} 952794a251fdSmrg_ACEOF 95286d1874b2Smrgif ac_fn_c_try_link "$LINENO" 95296d1874b2Smrgthen : 953094a251fdSmrg eval $cacheid=yes 95316d1874b2Smrgelse $as_nop 953294a251fdSmrg eval $cacheid=no 953394a251fdSmrgfi 95346d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 953594a251fdSmrg conftest$ac_exeext conftest.$ac_ext 953694a251fdSmrgfi 953794a251fdSmrg 953894a251fdSmrg 953994a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 954094a251fdSmrg 954194a251fdSmrg eval supported=\$$cacheid 95426d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 95436d1874b2Smrgprintf "%s\n" "$supported" >&6; } 954494a251fdSmrg if test "$supported" = "yes" ; then 954594a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 954694a251fdSmrg found="yes" 954794a251fdSmrg fi 954894a251fdSmrg fi 954994a251fdSmrg 955094a251fdSmrg 955194a251fdSmrg 955294a251fdSmrg 955394a251fdSmrg 955494a251fdSmrg 955594a251fdSmrg 955694a251fdSmrg 955794a251fdSmrg 955894a251fdSmrg 955994a251fdSmrg 956094a251fdSmrg 956194a251fdSmrg 956294a251fdSmrg 956394a251fdSmrg 956494a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 956594a251fdSmrg 956694a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 956794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95686d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 95696d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 95706d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 95716d1874b2Smrgthen : 95726d1874b2Smrg printf %s "(cached) " >&6 95736d1874b2Smrgelse $as_nop 957494a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 957594a251fdSmrg/* end confdefs.h. */ 957694a251fdSmrgint i; 957794a251fdSmrg_ACEOF 95786d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 95796d1874b2Smrgthen : 958094a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 95816d1874b2Smrgelse $as_nop 958294a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 958394a251fdSmrgfi 95846d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 958594a251fdSmrgfi 95866d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 95876d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 958894a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 958994a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 959094a251fdSmrgfi 959194a251fdSmrg 959294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 959394a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 959494a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 959594a251fdSmrg fi 959694a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 95976d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 95986d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 95996d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 96006d1874b2Smrgthen : 96016d1874b2Smrg printf %s "(cached) " >&6 96026d1874b2Smrgelse $as_nop 960394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 960494a251fdSmrg/* end confdefs.h. */ 960594a251fdSmrgint i; 960694a251fdSmrg_ACEOF 96076d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 96086d1874b2Smrgthen : 960994a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 96106d1874b2Smrgelse $as_nop 961194a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 961294a251fdSmrgfi 96136d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 961494a251fdSmrgfi 96156d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 96166d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 961794a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 961894a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 961994a251fdSmrgfi 962094a251fdSmrg 962194a251fdSmrgfound="no" 962294a251fdSmrg 962394a251fdSmrg if test $found = "no" ; then 96246a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 962594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 962694a251fdSmrg fi 962794a251fdSmrg 96286a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 962994a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 963094a251fdSmrg fi 963194a251fdSmrg 963294a251fdSmrg CFLAGS="$CFLAGS -Wreturn-type" 963394a251fdSmrg 96346d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 96356d1874b2Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; } 963694a251fdSmrg cacheid=xorg_cv_cc_flag__Wreturn_type 96376d1874b2Smrg if eval test \${$cacheid+y} 96386d1874b2Smrgthen : 96396d1874b2Smrg printf %s "(cached) " >&6 96406d1874b2Smrgelse $as_nop 964194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 964294a251fdSmrg/* end confdefs.h. */ 964394a251fdSmrgint i; 964494a251fdSmrgint 96456d1874b2Smrgmain (void) 964694a251fdSmrg{ 964794a251fdSmrg 964894a251fdSmrg ; 964994a251fdSmrg return 0; 965094a251fdSmrg} 965194a251fdSmrg_ACEOF 96526d1874b2Smrgif ac_fn_c_try_link "$LINENO" 96536d1874b2Smrgthen : 965494a251fdSmrg eval $cacheid=yes 96556d1874b2Smrgelse $as_nop 965694a251fdSmrg eval $cacheid=no 965794a251fdSmrgfi 96586d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 965994a251fdSmrg conftest$ac_exeext conftest.$ac_ext 966094a251fdSmrgfi 966194a251fdSmrg 966294a251fdSmrg 966394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 966494a251fdSmrg 966594a251fdSmrg eval supported=\$$cacheid 96666d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 96676d1874b2Smrgprintf "%s\n" "$supported" >&6; } 966894a251fdSmrg if test "$supported" = "yes" ; then 966994a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 967094a251fdSmrg found="yes" 967194a251fdSmrg fi 967294a251fdSmrg fi 967394a251fdSmrg 967494a251fdSmrg 967594a251fdSmrg 967694a251fdSmrg 967794a251fdSmrg 967894a251fdSmrg 967994a251fdSmrg 968094a251fdSmrg 968194a251fdSmrg 968294a251fdSmrg 968394a251fdSmrg 968494a251fdSmrg 968594a251fdSmrg 968694a251fdSmrg 968794a251fdSmrg 968894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 968994a251fdSmrg 969094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 969194a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96926d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 96936d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 96946d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 96956d1874b2Smrgthen : 96966d1874b2Smrg printf %s "(cached) " >&6 96976d1874b2Smrgelse $as_nop 969894a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 969994a251fdSmrg/* end confdefs.h. */ 970094a251fdSmrgint i; 970194a251fdSmrg_ACEOF 97026d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 97036d1874b2Smrgthen : 970494a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 97056d1874b2Smrgelse $as_nop 970694a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 970794a251fdSmrgfi 97086d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 970994a251fdSmrgfi 97106d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 97116d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 971294a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 971394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 971494a251fdSmrgfi 971594a251fdSmrg 971694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 971794a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 971894a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 971994a251fdSmrg fi 972094a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 97216d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 97226d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 97236d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 97246d1874b2Smrgthen : 97256d1874b2Smrg printf %s "(cached) " >&6 97266d1874b2Smrgelse $as_nop 972794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 972894a251fdSmrg/* end confdefs.h. */ 972994a251fdSmrgint i; 973094a251fdSmrg_ACEOF 97316d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 97326d1874b2Smrgthen : 973394a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 97346d1874b2Smrgelse $as_nop 973594a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 973694a251fdSmrgfi 97376d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 973894a251fdSmrgfi 97396d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 97406d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 974194a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 974294a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 974394a251fdSmrgfi 974494a251fdSmrg 974594a251fdSmrgfound="no" 974694a251fdSmrg 974794a251fdSmrg if test $found = "no" ; then 97486a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 974994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 975094a251fdSmrg fi 975194a251fdSmrg 97526a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 975394a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 975494a251fdSmrg fi 975594a251fdSmrg 975694a251fdSmrg CFLAGS="$CFLAGS -Wtrigraphs" 975794a251fdSmrg 97586d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 97596d1874b2Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; } 976094a251fdSmrg cacheid=xorg_cv_cc_flag__Wtrigraphs 97616d1874b2Smrg if eval test \${$cacheid+y} 97626d1874b2Smrgthen : 97636d1874b2Smrg printf %s "(cached) " >&6 97646d1874b2Smrgelse $as_nop 976594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 976694a251fdSmrg/* end confdefs.h. */ 976794a251fdSmrgint i; 976894a251fdSmrgint 97696d1874b2Smrgmain (void) 977094a251fdSmrg{ 977194a251fdSmrg 977294a251fdSmrg ; 977394a251fdSmrg return 0; 977494a251fdSmrg} 977594a251fdSmrg_ACEOF 97766d1874b2Smrgif ac_fn_c_try_link "$LINENO" 97776d1874b2Smrgthen : 977894a251fdSmrg eval $cacheid=yes 97796d1874b2Smrgelse $as_nop 978094a251fdSmrg eval $cacheid=no 978194a251fdSmrgfi 97826d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 978394a251fdSmrg conftest$ac_exeext conftest.$ac_ext 978494a251fdSmrgfi 978594a251fdSmrg 978694a251fdSmrg 978794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 978894a251fdSmrg 978994a251fdSmrg eval supported=\$$cacheid 97906d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 97916d1874b2Smrgprintf "%s\n" "$supported" >&6; } 979294a251fdSmrg if test "$supported" = "yes" ; then 979394a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 979494a251fdSmrg found="yes" 979594a251fdSmrg fi 979694a251fdSmrg fi 979794a251fdSmrg 979894a251fdSmrg 979994a251fdSmrg 980094a251fdSmrg 980194a251fdSmrg 980294a251fdSmrg 980394a251fdSmrg 980494a251fdSmrg 980594a251fdSmrg 980694a251fdSmrg 980794a251fdSmrg 980894a251fdSmrg 980994a251fdSmrg 981094a251fdSmrg 981194a251fdSmrg 981294a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 981394a251fdSmrg 981494a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 981594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98166d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 98176d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 98186d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 98196d1874b2Smrgthen : 98206d1874b2Smrg printf %s "(cached) " >&6 98216d1874b2Smrgelse $as_nop 982294a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 982394a251fdSmrg/* end confdefs.h. */ 982494a251fdSmrgint i; 982594a251fdSmrg_ACEOF 98266d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 98276d1874b2Smrgthen : 982894a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 98296d1874b2Smrgelse $as_nop 983094a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 983194a251fdSmrgfi 98326d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 983394a251fdSmrgfi 98346d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 98356d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 983694a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 983794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 983894a251fdSmrgfi 983994a251fdSmrg 984094a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 984194a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 984294a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 984394a251fdSmrg fi 984494a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98456d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 98466d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 98476d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 98486d1874b2Smrgthen : 98496d1874b2Smrg printf %s "(cached) " >&6 98506d1874b2Smrgelse $as_nop 985194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 985294a251fdSmrg/* end confdefs.h. */ 985394a251fdSmrgint i; 985494a251fdSmrg_ACEOF 98556d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 98566d1874b2Smrgthen : 985794a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 98586d1874b2Smrgelse $as_nop 985994a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 986094a251fdSmrgfi 98616d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 986294a251fdSmrgfi 98636d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 98646d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 986594a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 986694a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 986794a251fdSmrgfi 986894a251fdSmrg 986994a251fdSmrgfound="no" 987094a251fdSmrg 987194a251fdSmrg if test $found = "no" ; then 98726a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 987394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 987494a251fdSmrg fi 987594a251fdSmrg 98766a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 987794a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 987894a251fdSmrg fi 987994a251fdSmrg 988094a251fdSmrg CFLAGS="$CFLAGS -Warray-bounds" 988194a251fdSmrg 98826d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 98836d1874b2Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; } 988494a251fdSmrg cacheid=xorg_cv_cc_flag__Warray_bounds 98856d1874b2Smrg if eval test \${$cacheid+y} 98866d1874b2Smrgthen : 98876d1874b2Smrg printf %s "(cached) " >&6 98886d1874b2Smrgelse $as_nop 988994a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 989094a251fdSmrg/* end confdefs.h. */ 989194a251fdSmrgint i; 989294a251fdSmrgint 98936d1874b2Smrgmain (void) 989494a251fdSmrg{ 989594a251fdSmrg 989694a251fdSmrg ; 989794a251fdSmrg return 0; 989894a251fdSmrg} 989994a251fdSmrg_ACEOF 99006d1874b2Smrgif ac_fn_c_try_link "$LINENO" 99016d1874b2Smrgthen : 990294a251fdSmrg eval $cacheid=yes 99036d1874b2Smrgelse $as_nop 990494a251fdSmrg eval $cacheid=no 990594a251fdSmrgfi 99066d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 990794a251fdSmrg conftest$ac_exeext conftest.$ac_ext 990894a251fdSmrgfi 990994a251fdSmrg 991094a251fdSmrg 991194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 991294a251fdSmrg 991394a251fdSmrg eval supported=\$$cacheid 99146d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 99156d1874b2Smrgprintf "%s\n" "$supported" >&6; } 991694a251fdSmrg if test "$supported" = "yes" ; then 991794a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 991894a251fdSmrg found="yes" 991994a251fdSmrg fi 992094a251fdSmrg fi 992194a251fdSmrg 992294a251fdSmrg 992394a251fdSmrg 992494a251fdSmrg 992594a251fdSmrg 992694a251fdSmrg 992794a251fdSmrg 992894a251fdSmrg 992994a251fdSmrg 993094a251fdSmrg 993194a251fdSmrg 993294a251fdSmrg 993394a251fdSmrg 993494a251fdSmrg 993594a251fdSmrg 993694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 993794a251fdSmrg 993894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 993994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99406d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 99416d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 99426d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 99436d1874b2Smrgthen : 99446d1874b2Smrg printf %s "(cached) " >&6 99456d1874b2Smrgelse $as_nop 994694a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 994794a251fdSmrg/* end confdefs.h. */ 994894a251fdSmrgint i; 994994a251fdSmrg_ACEOF 99506d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 99516d1874b2Smrgthen : 995294a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 99536d1874b2Smrgelse $as_nop 995494a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 995594a251fdSmrgfi 99566d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 995794a251fdSmrgfi 99586d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 99596d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 996094a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 996194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 996294a251fdSmrgfi 996394a251fdSmrg 996494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 996594a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 996694a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 996794a251fdSmrg fi 996894a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 99696d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 99706d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 99716d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 99726d1874b2Smrgthen : 99736d1874b2Smrg printf %s "(cached) " >&6 99746d1874b2Smrgelse $as_nop 997594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 997694a251fdSmrg/* end confdefs.h. */ 997794a251fdSmrgint i; 997894a251fdSmrg_ACEOF 99796d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 99806d1874b2Smrgthen : 998194a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 99826d1874b2Smrgelse $as_nop 998394a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 998494a251fdSmrgfi 99856d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 998694a251fdSmrgfi 99876d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 99886d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 998994a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 999094a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 999194a251fdSmrgfi 999294a251fdSmrg 999394a251fdSmrgfound="no" 999494a251fdSmrg 999594a251fdSmrg if test $found = "no" ; then 99966a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 999794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 999894a251fdSmrg fi 999994a251fdSmrg 100006a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1000194a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1000294a251fdSmrg fi 1000394a251fdSmrg 1000494a251fdSmrg CFLAGS="$CFLAGS -Wwrite-strings" 1000594a251fdSmrg 100066d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 100076d1874b2Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; } 1000894a251fdSmrg cacheid=xorg_cv_cc_flag__Wwrite_strings 100096d1874b2Smrg if eval test \${$cacheid+y} 100106d1874b2Smrgthen : 100116d1874b2Smrg printf %s "(cached) " >&6 100126d1874b2Smrgelse $as_nop 1001394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1001494a251fdSmrg/* end confdefs.h. */ 1001594a251fdSmrgint i; 1001694a251fdSmrgint 100176d1874b2Smrgmain (void) 1001894a251fdSmrg{ 1001994a251fdSmrg 1002094a251fdSmrg ; 1002194a251fdSmrg return 0; 1002294a251fdSmrg} 1002394a251fdSmrg_ACEOF 100246d1874b2Smrgif ac_fn_c_try_link "$LINENO" 100256d1874b2Smrgthen : 1002694a251fdSmrg eval $cacheid=yes 100276d1874b2Smrgelse $as_nop 1002894a251fdSmrg eval $cacheid=no 1002994a251fdSmrgfi 100306d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1003194a251fdSmrg conftest$ac_exeext conftest.$ac_ext 1003294a251fdSmrgfi 1003394a251fdSmrg 1003494a251fdSmrg 1003594a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1003694a251fdSmrg 1003794a251fdSmrg eval supported=\$$cacheid 100386d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 100396d1874b2Smrgprintf "%s\n" "$supported" >&6; } 1004094a251fdSmrg if test "$supported" = "yes" ; then 1004194a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 1004294a251fdSmrg found="yes" 1004394a251fdSmrg fi 1004494a251fdSmrg fi 1004594a251fdSmrg 1004694a251fdSmrg 1004794a251fdSmrg 1004894a251fdSmrg 1004994a251fdSmrg 1005094a251fdSmrg 1005194a251fdSmrg 1005294a251fdSmrg 1005394a251fdSmrg 1005494a251fdSmrg 1005594a251fdSmrg 1005694a251fdSmrg 1005794a251fdSmrg 1005894a251fdSmrg 1005994a251fdSmrg 1006094a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 1006194a251fdSmrg 1006294a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1006394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100646d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 100656d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 100666d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 100676d1874b2Smrgthen : 100686d1874b2Smrg printf %s "(cached) " >&6 100696d1874b2Smrgelse $as_nop 1007094a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1007194a251fdSmrg/* end confdefs.h. */ 1007294a251fdSmrgint i; 1007394a251fdSmrg_ACEOF 100746d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 100756d1874b2Smrgthen : 1007694a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 100776d1874b2Smrgelse $as_nop 1007894a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 1007994a251fdSmrgfi 100806d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1008194a251fdSmrgfi 100826d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 100836d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1008494a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1008594a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1008694a251fdSmrgfi 1008794a251fdSmrg 1008894a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1008994a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1009094a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1009194a251fdSmrg fi 1009294a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100936d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 100946d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 100956d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 100966d1874b2Smrgthen : 100976d1874b2Smrg printf %s "(cached) " >&6 100986d1874b2Smrgelse $as_nop 1009994a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1010094a251fdSmrg/* end confdefs.h. */ 1010194a251fdSmrgint i; 1010294a251fdSmrg_ACEOF 101036d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 101046d1874b2Smrgthen : 1010594a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 101066d1874b2Smrgelse $as_nop 1010794a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 1010894a251fdSmrgfi 101096d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1011094a251fdSmrgfi 101116d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 101126d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1011394a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1011494a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1011594a251fdSmrgfi 1011694a251fdSmrg 1011794a251fdSmrgfound="no" 1011894a251fdSmrg 1011994a251fdSmrg if test $found = "no" ; then 101206a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1012194a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1012294a251fdSmrg fi 1012394a251fdSmrg 101246a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1012594a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1012694a251fdSmrg fi 1012794a251fdSmrg 1012894a251fdSmrg CFLAGS="$CFLAGS -Waddress" 1012994a251fdSmrg 101306d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 101316d1874b2Smrgprintf %s "checking if $CC supports -Waddress... " >&6; } 1013294a251fdSmrg cacheid=xorg_cv_cc_flag__Waddress 101336d1874b2Smrg if eval test \${$cacheid+y} 101346d1874b2Smrgthen : 101356d1874b2Smrg printf %s "(cached) " >&6 101366d1874b2Smrgelse $as_nop 1013794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1013894a251fdSmrg/* end confdefs.h. */ 1013994a251fdSmrgint i; 1014094a251fdSmrgint 101416d1874b2Smrgmain (void) 1014294a251fdSmrg{ 1014394a251fdSmrg 1014494a251fdSmrg ; 1014594a251fdSmrg return 0; 1014694a251fdSmrg} 1014794a251fdSmrg_ACEOF 101486d1874b2Smrgif ac_fn_c_try_link "$LINENO" 101496d1874b2Smrgthen : 1015094a251fdSmrg eval $cacheid=yes 101516d1874b2Smrgelse $as_nop 1015294a251fdSmrg eval $cacheid=no 1015394a251fdSmrgfi 101546d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1015594a251fdSmrg conftest$ac_exeext conftest.$ac_ext 1015694a251fdSmrgfi 1015794a251fdSmrg 1015894a251fdSmrg 1015994a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1016094a251fdSmrg 1016194a251fdSmrg eval supported=\$$cacheid 101626d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 101636d1874b2Smrgprintf "%s\n" "$supported" >&6; } 1016494a251fdSmrg if test "$supported" = "yes" ; then 1016594a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 1016694a251fdSmrg found="yes" 1016794a251fdSmrg fi 1016894a251fdSmrg fi 1016994a251fdSmrg 1017094a251fdSmrg 1017194a251fdSmrg 1017294a251fdSmrg 1017394a251fdSmrg 1017494a251fdSmrg 1017594a251fdSmrg 1017694a251fdSmrg 1017794a251fdSmrg 1017894a251fdSmrg 1017994a251fdSmrg 1018094a251fdSmrg 1018194a251fdSmrg 1018294a251fdSmrg 1018394a251fdSmrg 1018494a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 1018594a251fdSmrg 1018694a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1018794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101886d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 101896d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 101906d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 101916d1874b2Smrgthen : 101926d1874b2Smrg printf %s "(cached) " >&6 101936d1874b2Smrgelse $as_nop 1019494a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1019594a251fdSmrg/* end confdefs.h. */ 1019694a251fdSmrgint i; 1019794a251fdSmrg_ACEOF 101986d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 101996d1874b2Smrgthen : 1020094a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 102016d1874b2Smrgelse $as_nop 1020294a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 1020394a251fdSmrgfi 102046d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1020594a251fdSmrgfi 102066d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 102076d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1020894a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1020994a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1021094a251fdSmrgfi 1021194a251fdSmrg 1021294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1021394a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1021494a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1021594a251fdSmrg fi 1021694a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 102176d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 102186d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 102196d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 102206d1874b2Smrgthen : 102216d1874b2Smrg printf %s "(cached) " >&6 102226d1874b2Smrgelse $as_nop 1022394a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1022494a251fdSmrg/* end confdefs.h. */ 1022594a251fdSmrgint i; 1022694a251fdSmrg_ACEOF 102276d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 102286d1874b2Smrgthen : 1022994a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 102306d1874b2Smrgelse $as_nop 1023194a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 1023294a251fdSmrgfi 102336d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1023494a251fdSmrgfi 102356d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 102366d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1023794a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1023894a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1023994a251fdSmrgfi 1024094a251fdSmrg 1024194a251fdSmrgfound="no" 1024294a251fdSmrg 1024394a251fdSmrg if test $found = "no" ; then 102446a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1024594a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1024694a251fdSmrg fi 1024794a251fdSmrg 102486a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1024994a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1025094a251fdSmrg fi 1025194a251fdSmrg 1025294a251fdSmrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 1025394a251fdSmrg 102546d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 102556d1874b2Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 1025694a251fdSmrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 102576d1874b2Smrg if eval test \${$cacheid+y} 102586d1874b2Smrgthen : 102596d1874b2Smrg printf %s "(cached) " >&6 102606d1874b2Smrgelse $as_nop 1026194a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1026294a251fdSmrg/* end confdefs.h. */ 1026394a251fdSmrgint i; 1026494a251fdSmrgint 102656d1874b2Smrgmain (void) 1026694a251fdSmrg{ 1026794a251fdSmrg 1026894a251fdSmrg ; 1026994a251fdSmrg return 0; 1027094a251fdSmrg} 1027194a251fdSmrg_ACEOF 102726d1874b2Smrgif ac_fn_c_try_link "$LINENO" 102736d1874b2Smrgthen : 1027494a251fdSmrg eval $cacheid=yes 102756d1874b2Smrgelse $as_nop 1027694a251fdSmrg eval $cacheid=no 1027794a251fdSmrgfi 102786d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1027994a251fdSmrg conftest$ac_exeext conftest.$ac_ext 1028094a251fdSmrgfi 1028194a251fdSmrg 1028294a251fdSmrg 1028394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1028494a251fdSmrg 1028594a251fdSmrg eval supported=\$$cacheid 102866d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 102876d1874b2Smrgprintf "%s\n" "$supported" >&6; } 1028894a251fdSmrg if test "$supported" = "yes" ; then 1028994a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 1029094a251fdSmrg found="yes" 1029194a251fdSmrg fi 1029294a251fdSmrg fi 1029394a251fdSmrg 1029494a251fdSmrg 1029594a251fdSmrg 1029694a251fdSmrg 1029794a251fdSmrg 1029894a251fdSmrg 1029994a251fdSmrg 1030094a251fdSmrg 1030194a251fdSmrg 1030294a251fdSmrg 1030394a251fdSmrg 1030494a251fdSmrg 1030594a251fdSmrg 1030694a251fdSmrg 1030794a251fdSmrg 1030894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 1030994a251fdSmrg 1031094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1031194a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 103126d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 103136d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 103146d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 103156d1874b2Smrgthen : 103166d1874b2Smrg printf %s "(cached) " >&6 103176d1874b2Smrgelse $as_nop 1031894a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1031994a251fdSmrg/* end confdefs.h. */ 1032094a251fdSmrgint i; 1032194a251fdSmrg_ACEOF 103226d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 103236d1874b2Smrgthen : 1032494a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 103256d1874b2Smrgelse $as_nop 1032694a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 1032794a251fdSmrgfi 103286d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1032994a251fdSmrgfi 103306d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 103316d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1033294a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1033394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1033494a251fdSmrgfi 1033594a251fdSmrg 1033694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1033794a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1033894a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1033994a251fdSmrg fi 1034094a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 103416d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 103426d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 103436d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 103446d1874b2Smrgthen : 103456d1874b2Smrg printf %s "(cached) " >&6 103466d1874b2Smrgelse $as_nop 1034794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1034894a251fdSmrg/* end confdefs.h. */ 1034994a251fdSmrgint i; 1035094a251fdSmrg_ACEOF 103516d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 103526d1874b2Smrgthen : 1035394a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 103546d1874b2Smrgelse $as_nop 1035594a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 1035694a251fdSmrgfi 103576d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1035894a251fdSmrgfi 103596d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 103606d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1036194a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1036294a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1036394a251fdSmrgfi 1036494a251fdSmrg 1036594a251fdSmrgfound="no" 1036694a251fdSmrg 1036794a251fdSmrg if test $found = "no" ; then 103686a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1036994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1037094a251fdSmrg fi 1037194a251fdSmrg 103726a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1037394a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1037494a251fdSmrg fi 1037594a251fdSmrg 1037694a251fdSmrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 1037794a251fdSmrg 103786d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 103796d1874b2Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 1038094a251fdSmrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 103816d1874b2Smrg if eval test \${$cacheid+y} 103826d1874b2Smrgthen : 103836d1874b2Smrg printf %s "(cached) " >&6 103846d1874b2Smrgelse $as_nop 1038594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1038694a251fdSmrg/* end confdefs.h. */ 1038794a251fdSmrgint i; 1038894a251fdSmrgint 103896d1874b2Smrgmain (void) 1039094a251fdSmrg{ 1039194a251fdSmrg 1039294a251fdSmrg ; 1039394a251fdSmrg return 0; 1039494a251fdSmrg} 1039594a251fdSmrg_ACEOF 103966d1874b2Smrgif ac_fn_c_try_link "$LINENO" 103976d1874b2Smrgthen : 1039894a251fdSmrg eval $cacheid=yes 103996d1874b2Smrgelse $as_nop 1040094a251fdSmrg eval $cacheid=no 1040194a251fdSmrgfi 104026d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1040394a251fdSmrg conftest$ac_exeext conftest.$ac_ext 1040494a251fdSmrgfi 1040594a251fdSmrg 1040694a251fdSmrg 1040794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1040894a251fdSmrg 1040994a251fdSmrg eval supported=\$$cacheid 104106d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 104116d1874b2Smrgprintf "%s\n" "$supported" >&6; } 1041294a251fdSmrg if test "$supported" = "yes" ; then 1041394a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 1041494a251fdSmrg found="yes" 1041594a251fdSmrg fi 1041694a251fdSmrg fi 1041794a251fdSmrg 1041894a251fdSmrg 1041994a251fdSmrgfi 1042094a251fdSmrg 1042194a251fdSmrg 1042294a251fdSmrg 1042394a251fdSmrg 1042494a251fdSmrg 1042594a251fdSmrg 1042694a251fdSmrg 1042794a251fdSmrg CWARNFLAGS="$BASE_CFLAGS" 1042894a251fdSmrg if test "x$GCC" = xyes ; then 1042994a251fdSmrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 1043094a251fdSmrg fi 1043194a251fdSmrg 1043294a251fdSmrg 1043394a251fdSmrg 1043494a251fdSmrg 1043594a251fdSmrg 1043694a251fdSmrg 1043794a251fdSmrg 1043894a251fdSmrg 1043994a251fdSmrg# Check whether --enable-strict-compilation was given. 104406d1874b2Smrgif test ${enable_strict_compilation+y} 104416d1874b2Smrgthen : 1044294a251fdSmrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 104436d1874b2Smrgelse $as_nop 1044494a251fdSmrg STRICT_COMPILE=no 1044594a251fdSmrgfi 1044694a251fdSmrg 1044794a251fdSmrg 1044894a251fdSmrg 1044994a251fdSmrg 1045094a251fdSmrg 1045194a251fdSmrg 1045294a251fdSmrgSTRICT_CFLAGS="" 1045394a251fdSmrg 1045494a251fdSmrg 1045594a251fdSmrg 1045694a251fdSmrg 1045794a251fdSmrg 1045894a251fdSmrg 1045994a251fdSmrg 1046094a251fdSmrg 1046194a251fdSmrg 1046294a251fdSmrg 1046394a251fdSmrg 1046494a251fdSmrg 1046594a251fdSmrg 1046694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 1046794a251fdSmrg 1046894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1046994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 104706d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 104716d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 104726d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 104736d1874b2Smrgthen : 104746d1874b2Smrg printf %s "(cached) " >&6 104756d1874b2Smrgelse $as_nop 1047694a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1047794a251fdSmrg/* end confdefs.h. */ 1047894a251fdSmrgint i; 1047994a251fdSmrg_ACEOF 104806d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 104816d1874b2Smrgthen : 1048294a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 104836d1874b2Smrgelse $as_nop 1048494a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 1048594a251fdSmrgfi 104866d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1048794a251fdSmrgfi 104886d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 104896d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1049094a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1049194a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1049294a251fdSmrgfi 1049394a251fdSmrg 1049494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1049594a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1049694a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1049794a251fdSmrg fi 1049894a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 104996d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 105006d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 105016d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 105026d1874b2Smrgthen : 105036d1874b2Smrg printf %s "(cached) " >&6 105046d1874b2Smrgelse $as_nop 1050594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1050694a251fdSmrg/* end confdefs.h. */ 1050794a251fdSmrgint i; 1050894a251fdSmrg_ACEOF 105096d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 105106d1874b2Smrgthen : 1051194a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 105126d1874b2Smrgelse $as_nop 1051394a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 1051494a251fdSmrgfi 105156d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1051694a251fdSmrgfi 105176d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 105186d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1051994a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1052094a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1052194a251fdSmrgfi 1052294a251fdSmrg 1052394a251fdSmrgfound="no" 10524e6232409Smrg 1052594a251fdSmrg if test $found = "no" ; then 105266a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1052794a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1052894a251fdSmrg fi 1052994a251fdSmrg 105306a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1053194a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1053294a251fdSmrg fi 1053394a251fdSmrg 1053494a251fdSmrg CFLAGS="$CFLAGS -pedantic" 1053594a251fdSmrg 105366d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 105376d1874b2Smrgprintf %s "checking if $CC supports -pedantic... " >&6; } 1053894a251fdSmrg cacheid=xorg_cv_cc_flag__pedantic 105396d1874b2Smrg if eval test \${$cacheid+y} 105406d1874b2Smrgthen : 105416d1874b2Smrg printf %s "(cached) " >&6 105426d1874b2Smrgelse $as_nop 105438fff3f40Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10544e6232409Smrg/* end confdefs.h. */ 1054594a251fdSmrgint i; 10546e6232409Smrgint 105476d1874b2Smrgmain (void) 10548e6232409Smrg{ 10549e6232409Smrg 10550e6232409Smrg ; 10551e6232409Smrg return 0; 10552e6232409Smrg} 10553e6232409Smrg_ACEOF 105546d1874b2Smrgif ac_fn_c_try_link "$LINENO" 105556d1874b2Smrgthen : 1055694a251fdSmrg eval $cacheid=yes 105576d1874b2Smrgelse $as_nop 1055894a251fdSmrg eval $cacheid=no 1055994a251fdSmrgfi 105606d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1056194a251fdSmrg conftest$ac_exeext conftest.$ac_ext 1056294a251fdSmrgfi 1056394a251fdSmrg 1056494a251fdSmrg 1056594a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1056694a251fdSmrg 1056794a251fdSmrg eval supported=\$$cacheid 105686d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 105696d1874b2Smrgprintf "%s\n" "$supported" >&6; } 1057094a251fdSmrg if test "$supported" = "yes" ; then 1057194a251fdSmrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 1057294a251fdSmrg found="yes" 1057394a251fdSmrg fi 1057494a251fdSmrg fi 1057594a251fdSmrg 1057694a251fdSmrg 1057794a251fdSmrg 1057894a251fdSmrg 1057994a251fdSmrg 1058094a251fdSmrg 1058194a251fdSmrg 1058294a251fdSmrg 1058394a251fdSmrg 1058494a251fdSmrg 1058594a251fdSmrg 1058694a251fdSmrg 1058794a251fdSmrg 1058894a251fdSmrg 1058994a251fdSmrg 1059094a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 1059194a251fdSmrg 1059294a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1059394a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 105946d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 105956d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 105966d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 105976d1874b2Smrgthen : 105986d1874b2Smrg printf %s "(cached) " >&6 105996d1874b2Smrgelse $as_nop 1060094a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1060194a251fdSmrg/* end confdefs.h. */ 1060294a251fdSmrgint i; 1060394a251fdSmrg_ACEOF 106046d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 106056d1874b2Smrgthen : 1060694a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 106076d1874b2Smrgelse $as_nop 1060894a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 10609e6232409Smrgfi 106106d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10611e6232409Smrgfi 106126d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 106136d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1061494a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1061594a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 106168fff3f40Smrgfi 1061794a251fdSmrg 1061894a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1061994a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1062094a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1062194a251fdSmrg fi 1062294a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 106236d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 106246d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 106256d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 106266d1874b2Smrgthen : 106276d1874b2Smrg printf %s "(cached) " >&6 106286d1874b2Smrgelse $as_nop 1062994a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10630e6232409Smrg/* end confdefs.h. */ 1063194a251fdSmrgint i; 10632e6232409Smrg_ACEOF 106336d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 106346d1874b2Smrgthen : 1063594a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 106366d1874b2Smrgelse $as_nop 1063794a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 1063894a251fdSmrgfi 106396d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1064094a251fdSmrgfi 106416d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 106426d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1064394a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1064494a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1064594a251fdSmrgfi 1064694a251fdSmrg 1064794a251fdSmrgfound="no" 10648e6232409Smrg 1064994a251fdSmrg if test $found = "no" ; then 106506a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1065194a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1065294a251fdSmrg fi 1065394a251fdSmrg 106546a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1065594a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1065694a251fdSmrg fi 1065794a251fdSmrg 1065894a251fdSmrg CFLAGS="$CFLAGS -Werror" 1065994a251fdSmrg 106606d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 106616d1874b2Smrgprintf %s "checking if $CC supports -Werror... " >&6; } 1066294a251fdSmrg cacheid=xorg_cv_cc_flag__Werror 106636d1874b2Smrg if eval test \${$cacheid+y} 106646d1874b2Smrgthen : 106656d1874b2Smrg printf %s "(cached) " >&6 106666d1874b2Smrgelse $as_nop 1066794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1066894a251fdSmrg/* end confdefs.h. */ 1066994a251fdSmrgint i; 10670e6232409Smrgint 106716d1874b2Smrgmain (void) 10672e6232409Smrg{ 10673e6232409Smrg 10674e6232409Smrg ; 106758fff3f40Smrg return 0; 106768fff3f40Smrg} 106778fff3f40Smrg_ACEOF 106786d1874b2Smrgif ac_fn_c_try_link "$LINENO" 106796d1874b2Smrgthen : 1068094a251fdSmrg eval $cacheid=yes 106816d1874b2Smrgelse $as_nop 1068294a251fdSmrg eval $cacheid=no 1068394a251fdSmrgfi 106846d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1068594a251fdSmrg conftest$ac_exeext conftest.$ac_ext 1068694a251fdSmrgfi 1068794a251fdSmrg 106888fff3f40Smrg 1068994a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1069094a251fdSmrg 1069194a251fdSmrg eval supported=\$$cacheid 106926d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 106936d1874b2Smrgprintf "%s\n" "$supported" >&6; } 1069494a251fdSmrg if test "$supported" = "yes" ; then 1069594a251fdSmrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 1069694a251fdSmrg found="yes" 1069794a251fdSmrg fi 1069894a251fdSmrg fi 1069994a251fdSmrg 1070094a251fdSmrg if test $found = "no" ; then 107016a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1070294a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1070394a251fdSmrg fi 1070494a251fdSmrg 107056a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1070694a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1070794a251fdSmrg fi 1070894a251fdSmrg 1070994a251fdSmrg CFLAGS="$CFLAGS -errwarn" 1071094a251fdSmrg 107116d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 107126d1874b2Smrgprintf %s "checking if $CC supports -errwarn... " >&6; } 1071394a251fdSmrg cacheid=xorg_cv_cc_flag__errwarn 107146d1874b2Smrg if eval test \${$cacheid+y} 107156d1874b2Smrgthen : 107166d1874b2Smrg printf %s "(cached) " >&6 107176d1874b2Smrgelse $as_nop 1071894a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 107198fff3f40Smrg/* end confdefs.h. */ 1072094a251fdSmrgint i; 107218fff3f40Smrgint 107226d1874b2Smrgmain (void) 107238fff3f40Smrg{ 10724e6232409Smrg 107258fff3f40Smrg ; 107268fff3f40Smrg return 0; 107278fff3f40Smrg} 107288fff3f40Smrg_ACEOF 107296d1874b2Smrgif ac_fn_c_try_link "$LINENO" 107306d1874b2Smrgthen : 1073194a251fdSmrg eval $cacheid=yes 107326d1874b2Smrgelse $as_nop 1073394a251fdSmrg eval $cacheid=no 1073494a251fdSmrgfi 107356d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1073694a251fdSmrg conftest$ac_exeext conftest.$ac_ext 1073794a251fdSmrgfi 1073894a251fdSmrg 1073994a251fdSmrg 1074094a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1074194a251fdSmrg 1074294a251fdSmrg eval supported=\$$cacheid 107436d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 107446d1874b2Smrgprintf "%s\n" "$supported" >&6; } 1074594a251fdSmrg if test "$supported" = "yes" ; then 1074694a251fdSmrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 1074794a251fdSmrg found="yes" 1074894a251fdSmrg fi 1074994a251fdSmrg fi 1075094a251fdSmrg 1075194a251fdSmrg 1075294a251fdSmrg 1075394a251fdSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 1075494a251fdSmrg# activate it with -Werror, so we add it here explicitly. 1075594a251fdSmrg 1075694a251fdSmrg 1075794a251fdSmrg 1075894a251fdSmrg 1075994a251fdSmrg 1076094a251fdSmrg 1076194a251fdSmrg 1076294a251fdSmrg 1076394a251fdSmrg 1076494a251fdSmrg 1076594a251fdSmrg 1076694a251fdSmrg 1076794a251fdSmrg 1076894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS" 1076994a251fdSmrg 1077094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1077194a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 107726d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 107736d1874b2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 107746d1874b2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 107756d1874b2Smrgthen : 107766d1874b2Smrg printf %s "(cached) " >&6 107776d1874b2Smrgelse $as_nop 1077894a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1077994a251fdSmrg/* end confdefs.h. */ 1078094a251fdSmrgint i; 1078194a251fdSmrg_ACEOF 107826d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 107836d1874b2Smrgthen : 1078494a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=yes 107856d1874b2Smrgelse $as_nop 1078694a251fdSmrg xorg_cv_cc_flag_unknown_warning_option=no 10787e6232409Smrgfi 107886d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10789e6232409Smrgfi 107906d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 107916d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1079294a251fdSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1079394a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1079494a251fdSmrgfi 1079594a251fdSmrg 1079694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1079794a251fdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1079894a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1079994a251fdSmrg fi 1080094a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 108016d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 108026d1874b2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 108036d1874b2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 108046d1874b2Smrgthen : 108056d1874b2Smrg printf %s "(cached) " >&6 108066d1874b2Smrgelse $as_nop 1080794a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1080894a251fdSmrg/* end confdefs.h. */ 1080994a251fdSmrgint i; 1081094a251fdSmrg_ACEOF 108116d1874b2Smrgif ac_fn_c_try_compile "$LINENO" 108126d1874b2Smrgthen : 1081394a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 108146d1874b2Smrgelse $as_nop 1081594a251fdSmrg xorg_cv_cc_flag_unused_command_line_argument=no 10816e6232409Smrgfi 108176d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10818e6232409Smrgfi 108196d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 108206d1874b2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1082194a251fdSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1082294a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10823e6232409Smrgfi 1082494a251fdSmrg 1082594a251fdSmrgfound="no" 1082694a251fdSmrg 1082794a251fdSmrg if test $found = "no" ; then 108286a45684fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1082994a251fdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1083094a251fdSmrg fi 1083194a251fdSmrg 108326a45684fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1083394a251fdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1083494a251fdSmrg fi 1083594a251fdSmrg 1083694a251fdSmrg CFLAGS="$CFLAGS -Werror=attributes" 1083794a251fdSmrg 108386d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 108396d1874b2Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; } 108406a45684fSmrg cacheid=xorg_cv_cc_flag__Werror_attributes 108416d1874b2Smrg if eval test \${$cacheid+y} 108426d1874b2Smrgthen : 108436d1874b2Smrg printf %s "(cached) " >&6 108446d1874b2Smrgelse $as_nop 1084594a251fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10846e6232409Smrg/* end confdefs.h. */ 1084794a251fdSmrgint i; 1084894a251fdSmrgint 108496d1874b2Smrgmain (void) 10850e6232409Smrg{ 1085194a251fdSmrg 1085294a251fdSmrg ; 1085394a251fdSmrg return 0; 10854e6232409Smrg} 1085594a251fdSmrg_ACEOF 108566d1874b2Smrgif ac_fn_c_try_link "$LINENO" 108576d1874b2Smrgthen : 1085894a251fdSmrg eval $cacheid=yes 108596d1874b2Smrgelse $as_nop 1086094a251fdSmrg eval $cacheid=no 1086194a251fdSmrgfi 108626d1874b2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1086394a251fdSmrg conftest$ac_exeext conftest.$ac_ext 1086494a251fdSmrgfi 1086594a251fdSmrg 1086694a251fdSmrg 1086794a251fdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1086894a251fdSmrg 1086994a251fdSmrg eval supported=\$$cacheid 108706d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 108716d1874b2Smrgprintf "%s\n" "$supported" >&6; } 1087294a251fdSmrg if test "$supported" = "yes" ; then 1087394a251fdSmrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 1087494a251fdSmrg found="yes" 1087594a251fdSmrg fi 1087694a251fdSmrg fi 1087794a251fdSmrg 1087894a251fdSmrg 1087994a251fdSmrg 1088094a251fdSmrgif test "x$STRICT_COMPILE" = "xyes"; then 1088194a251fdSmrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 1088294a251fdSmrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 1088394a251fdSmrgfi 1088494a251fdSmrg 1088594a251fdSmrg 1088694a251fdSmrg 1088794a251fdSmrg 1088894a251fdSmrg 1088994a251fdSmrg 1089094a251fdSmrgcat >>confdefs.h <<_ACEOF 1089194a251fdSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 1089294a251fdSmrg_ACEOF 1089394a251fdSmrg 1089494a251fdSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 1089594a251fdSmrg if test "x$PVM" = "x"; then 1089694a251fdSmrg PVM="0" 1089794a251fdSmrg fi 1089894a251fdSmrg 108996d1874b2Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 1090094a251fdSmrg 1090194a251fdSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 1090294a251fdSmrg if test "x$PVP" = "x"; then 1090394a251fdSmrg PVP="0" 1090494a251fdSmrg fi 1090594a251fdSmrg 109066d1874b2Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 1090794a251fdSmrg 1090894a251fdSmrg 1090994a251fdSmrg 109106d1874b2SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 1091194a251fdSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 109126d1874b2Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 109136d1874b2Smrgtouch \$(top_srcdir)/ChangeLog; \ 109146d1874b2Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 1091594a251fdSmrg 1091694a251fdSmrg 1091794a251fdSmrg 1091894a251fdSmrg 1091994a251fdSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 1092094a251fdSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 1092194a251fdSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 109226d1874b2Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 109236d1874b2Smrgtouch \$(top_srcdir)/INSTALL; \ 109246d1874b2Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 109256d1874b2Smrg 1092694a251fdSmrg 1092794a251fdSmrg 1092894a251fdSmrg 1092994a251fdSmrg 1093094a251fdSmrg 109316d1874b2Smrgcase $host_os in 109326d1874b2Smrg solaris*) 109336d1874b2Smrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 109346d1874b2Smrg # check for a man page file found in later versions that use 109356d1874b2Smrg # traditional section numbers instead 109366d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 109376d1874b2Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 109386d1874b2Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 109396d1874b2Smrgthen : 109406d1874b2Smrg printf %s "(cached) " >&6 109416d1874b2Smrgelse $as_nop 109426d1874b2Smrg test "$cross_compiling" = yes && 109436d1874b2Smrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 109446d1874b2Smrgif test -r "/usr/share/man/man7/attributes.7"; then 109456d1874b2Smrg ac_cv_file__usr_share_man_man7_attributes_7=yes 109466d1874b2Smrgelse 109476d1874b2Smrg ac_cv_file__usr_share_man_man7_attributes_7=no 109486d1874b2Smrgfi 109496d1874b2Smrgfi 109506d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 109516d1874b2Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 109526d1874b2Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 109536d1874b2Smrgthen : 109546d1874b2Smrg SYSV_MAN_SECTIONS=false 109556d1874b2Smrgelse $as_nop 109566d1874b2Smrg SYSV_MAN_SECTIONS=true 109576d1874b2Smrgfi 109586d1874b2Smrg 109596d1874b2Smrg ;; 109606d1874b2Smrg *) SYSV_MAN_SECTIONS=false ;; 109616d1874b2Smrgesac 10962e6232409Smrg 1096394a251fdSmrgif test x$APP_MAN_SUFFIX = x ; then 1096494a251fdSmrg APP_MAN_SUFFIX=1 1096594a251fdSmrgfi 1096694a251fdSmrgif test x$APP_MAN_DIR = x ; then 1096794a251fdSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1096894a251fdSmrgfi 10969e6232409Smrg 1097094a251fdSmrgif test x$LIB_MAN_SUFFIX = x ; then 1097194a251fdSmrg LIB_MAN_SUFFIX=3 1097294a251fdSmrgfi 1097394a251fdSmrgif test x$LIB_MAN_DIR = x ; then 1097494a251fdSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1097594a251fdSmrgfi 10976e6232409Smrg 1097794a251fdSmrgif test x$FILE_MAN_SUFFIX = x ; then 109786d1874b2Smrg case $SYSV_MAN_SECTIONS in 109796d1874b2Smrg true) FILE_MAN_SUFFIX=4 ;; 10980c05e7a3eSmrg *) FILE_MAN_SUFFIX=5 ;; 1098194a251fdSmrg esac 1098294a251fdSmrgfi 1098394a251fdSmrgif test x$FILE_MAN_DIR = x ; then 1098494a251fdSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10985e6232409Smrgfi 10986e6232409Smrg 1098794a251fdSmrgif test x$MISC_MAN_SUFFIX = x ; then 109886d1874b2Smrg case $SYSV_MAN_SECTIONS in 109896d1874b2Smrg true) MISC_MAN_SUFFIX=5 ;; 10990c05e7a3eSmrg *) MISC_MAN_SUFFIX=7 ;; 1099194a251fdSmrg esac 1099294a251fdSmrgfi 1099394a251fdSmrgif test x$MISC_MAN_DIR = x ; then 1099494a251fdSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10995e6232409Smrgfi 10996e6232409Smrg 1099794a251fdSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 109986d1874b2Smrg case $SYSV_MAN_SECTIONS in 109996d1874b2Smrg true) DRIVER_MAN_SUFFIX=7 ;; 11000c05e7a3eSmrg *) DRIVER_MAN_SUFFIX=4 ;; 1100194a251fdSmrg esac 1100294a251fdSmrgfi 1100394a251fdSmrgif test x$DRIVER_MAN_DIR = x ; then 1100494a251fdSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 110058fff3f40Smrgfi 11006e6232409Smrg 1100794a251fdSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 110086d1874b2Smrg case $SYSV_MAN_SECTIONS in 110096d1874b2Smrg true) ADMIN_MAN_SUFFIX=1m ;; 11010c05e7a3eSmrg *) ADMIN_MAN_SUFFIX=8 ;; 1101194a251fdSmrg esac 1101294a251fdSmrgfi 1101394a251fdSmrgif test x$ADMIN_MAN_DIR = x ; then 1101494a251fdSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1101594a251fdSmrgfi 11016e6232409Smrg 11017e6232409Smrg 11018e6232409Smrg 110198fff3f40Smrg 11020e6232409Smrg 11021e6232409Smrg 11022e6232409Smrg 11023e6232409Smrg 1102494a251fdSmrg 1102594a251fdSmrg 1102694a251fdSmrg 1102794a251fdSmrg 1102894a251fdSmrg 1102994a251fdSmrg 1103094a251fdSmrg 1103194a251fdSmrgXORG_MAN_PAGE="X Version 11" 1103294a251fdSmrg 1103394a251fdSmrgMAN_SUBSTS="\ 1103494a251fdSmrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1103594a251fdSmrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1103694a251fdSmrg -e 's|__xservername__|Xorg|g' \ 1103794a251fdSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 1103894a251fdSmrg -e 's|__projectroot__|\$(prefix)|g' \ 1103994a251fdSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1104094a251fdSmrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1104194a251fdSmrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1104294a251fdSmrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1104394a251fdSmrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1104494a251fdSmrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1104594a251fdSmrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1104694a251fdSmrg 1104794a251fdSmrg 1104894a251fdSmrg 1104994a251fdSmrg# Check whether --enable-silent-rules was given. 110506d1874b2Smrgif test ${enable_silent_rules+y} 110516d1874b2Smrgthen : 1105294a251fdSmrg enableval=$enable_silent_rules; 11053e6232409Smrgfi 11054e6232409Smrg 110556a45684fSmrgcase $enable_silent_rules in # ((( 110566a45684fSmrg yes) AM_DEFAULT_VERBOSITY=0;; 110576a45684fSmrg no) AM_DEFAULT_VERBOSITY=1;; 110586a45684fSmrg *) AM_DEFAULT_VERBOSITY=0;; 1105994a251fdSmrgesac 110606a45684fSmrgam_make=${MAKE-make} 110616d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 110626d1874b2Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 110636d1874b2Smrgif test ${am_cv_make_support_nested_variables+y} 110646d1874b2Smrgthen : 110656d1874b2Smrg printf %s "(cached) " >&6 110666d1874b2Smrgelse $as_nop 110676d1874b2Smrg if printf "%s\n" 'TRUE=$(BAR$(V)) 110686a45684fSmrgBAR0=false 110696a45684fSmrgBAR1=true 110706a45684fSmrgV=1 110716a45684fSmrgam__doit: 110726a45684fSmrg @$(TRUE) 110736a45684fSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 110746a45684fSmrg am_cv_make_support_nested_variables=yes 110756a45684fSmrgelse 110766a45684fSmrg am_cv_make_support_nested_variables=no 110776a45684fSmrgfi 110786a45684fSmrgfi 110796d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 110806d1874b2Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 110816a45684fSmrgif test $am_cv_make_support_nested_variables = yes; then 110826a45684fSmrg AM_V='$(V)' 110836a45684fSmrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 110846a45684fSmrgelse 110856a45684fSmrg AM_V=$AM_DEFAULT_VERBOSITY 110866a45684fSmrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 110876a45684fSmrgfi 1108894a251fdSmrgAM_BACKSLASH='\' 1108994a251fdSmrg 11090e6232409Smrg 110918fff3f40Smrg 110928fff3f40Smrg# Checks for pkg-config packages 110938fff3f40Smrg 110948fff3f40Smrgpkg_failed=no 110956d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLSFONTS" >&5 110966d1874b2Smrgprintf %s "checking for XLSFONTS... " >&6; } 110978fff3f40Smrg 110988fff3f40Smrgif test -n "$XLSFONTS_CFLAGS"; then 110998fff3f40Smrg pkg_cv_XLSFONTS_CFLAGS="$XLSFONTS_CFLAGS" 111008fff3f40Smrg elif test -n "$PKG_CONFIG"; then 111018fff3f40Smrg if test -n "$PKG_CONFIG" && \ 111026d1874b2Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 1110394a251fdSmrg ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 11104e6232409Smrg ac_status=$? 111056d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 111068fff3f40Smrg test $ac_status = 0; }; then 1110794a251fdSmrg pkg_cv_XLSFONTS_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null` 11108c05e7a3eSmrg test "x$?" != "x0" && pkg_failed=yes 11109e6232409Smrgelse 11110e6232409Smrg pkg_failed=yes 11111e6232409Smrgfi 111128fff3f40Smrg else 111138fff3f40Smrg pkg_failed=untried 11114e6232409Smrgfi 111158fff3f40Smrgif test -n "$XLSFONTS_LIBS"; then 111168fff3f40Smrg pkg_cv_XLSFONTS_LIBS="$XLSFONTS_LIBS" 111178fff3f40Smrg elif test -n "$PKG_CONFIG"; then 111188fff3f40Smrg if test -n "$PKG_CONFIG" && \ 111196d1874b2Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 1112094a251fdSmrg ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 11121e6232409Smrg ac_status=$? 111226d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 111238fff3f40Smrg test $ac_status = 0; }; then 1112494a251fdSmrg pkg_cv_XLSFONTS_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null` 11125c05e7a3eSmrg test "x$?" != "x0" && pkg_failed=yes 11126e6232409Smrgelse 11127e6232409Smrg pkg_failed=yes 11128e6232409Smrgfi 111298fff3f40Smrg else 111308fff3f40Smrg pkg_failed=untried 11131e6232409Smrgfi 11132e6232409Smrg 111338fff3f40Smrg 111348fff3f40Smrg 11135e6232409Smrgif test $pkg_failed = yes; then 111366d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 111376d1874b2Smrgprintf "%s\n" "no" >&6; } 111388fff3f40Smrg 111398fff3f40Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 111408fff3f40Smrg _pkg_short_errors_supported=yes 111418fff3f40Smrgelse 111428fff3f40Smrg _pkg_short_errors_supported=no 111438fff3f40Smrgfi 111448fff3f40Smrg if test $_pkg_short_errors_supported = yes; then 11145c05e7a3eSmrg XLSFONTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1` 111468fff3f40Smrg else 11147c05e7a3eSmrg XLSFONTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1` 111488fff3f40Smrg fi 11149e6232409Smrg # Put the nasty error message in config.log where it belongs 111508fff3f40Smrg echo "$XLSFONTS_PKG_ERRORS" >&5 11151e6232409Smrg 1115294a251fdSmrg as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met: 111538fff3f40Smrg 111548fff3f40Smrg$XLSFONTS_PKG_ERRORS 11155e6232409Smrg 11156e6232409SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 11157e6232409Smrginstalled software in a non-standard prefix. 11158e6232409Smrg 111598fff3f40SmrgAlternatively, you may set the environment variables XLSFONTS_CFLAGS 111608fff3f40Smrgand XLSFONTS_LIBS to avoid the need to call pkg-config. 11161c05e7a3eSmrgSee the pkg-config man page for more details." "$LINENO" 5 11162e6232409Smrgelif test $pkg_failed = untried; then 111636d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 111646d1874b2Smrgprintf "%s\n" "no" >&6; } 111656d1874b2Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 111666d1874b2Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1116794a251fdSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11168e6232409Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 11169e6232409Smrgpath to pkg-config. 11170e6232409Smrg 111718fff3f40SmrgAlternatively, you may set the environment variables XLSFONTS_CFLAGS 111728fff3f40Smrgand XLSFONTS_LIBS to avoid the need to call pkg-config. 111738fff3f40SmrgSee the pkg-config man page for more details. 11174e6232409Smrg 111758fff3f40SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 1117694a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 11177e6232409Smrgelse 11178e6232409Smrg XLSFONTS_CFLAGS=$pkg_cv_XLSFONTS_CFLAGS 11179e6232409Smrg XLSFONTS_LIBS=$pkg_cv_XLSFONTS_LIBS 111806d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 111816d1874b2Smrgprintf "%s\n" "yes" >&6; } 11182c05e7a3eSmrg 11183e6232409Smrgfi 11184e6232409Smrg 1118594a251fdSmrgac_config_files="$ac_config_files Makefile man/Makefile" 11186e6232409Smrg 11187e6232409Smrgcat >confcache <<\_ACEOF 11188e6232409Smrg# This file is a shell script that caches the results of configure 11189e6232409Smrg# tests run on this system so they can be shared between configure 11190e6232409Smrg# scripts and configure runs, see configure's option --config-cache. 11191e6232409Smrg# It is not useful on other systems. If it contains results you don't 11192e6232409Smrg# want to keep, you may remove or edit it. 11193e6232409Smrg# 11194e6232409Smrg# config.status only pays attention to the cache file if you give it 11195e6232409Smrg# the --recheck option to rerun configure. 11196e6232409Smrg# 11197e6232409Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 11198e6232409Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 11199e6232409Smrg# following values. 11200e6232409Smrg 11201e6232409Smrg_ACEOF 11202e6232409Smrg 11203e6232409Smrg# The following way of writing the cache mishandles newlines in values, 11204e6232409Smrg# but we know of no workaround that is simple, portable, and efficient. 11205e6232409Smrg# So, we kill variables containing newlines. 11206e6232409Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 11207e6232409Smrg# and sets the high bit in the cache file unless we assign to the vars. 11208e6232409Smrg( 11209e6232409Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11210e6232409Smrg eval ac_val=\$$ac_var 11211e6232409Smrg case $ac_val in #( 11212e6232409Smrg *${as_nl}*) 11213e6232409Smrg case $ac_var in #( 112146d1874b2Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 112156d1874b2Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11216e6232409Smrg esac 11217e6232409Smrg case $ac_var in #( 11218e6232409Smrg _ | IFS | as_nl) ;; #( 112198fff3f40Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 112208fff3f40Smrg *) { eval $ac_var=; unset $ac_var;} ;; 11221e6232409Smrg esac ;; 11222e6232409Smrg esac 11223e6232409Smrg done 11224e6232409Smrg 11225e6232409Smrg (set) 2>&1 | 11226e6232409Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 11227e6232409Smrg *${as_nl}ac_space=\ *) 112288fff3f40Smrg # `set' does not quote correctly, so add quotes: double-quote 112298fff3f40Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 11230e6232409Smrg sed -n \ 11231e6232409Smrg "s/'/'\\\\''/g; 11232e6232409Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11233e6232409Smrg ;; #( 11234e6232409Smrg *) 11235e6232409Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 11236e6232409Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11237e6232409Smrg ;; 11238e6232409Smrg esac | 11239e6232409Smrg sort 11240e6232409Smrg) | 11241e6232409Smrg sed ' 11242e6232409Smrg /^ac_cv_env_/b end 11243e6232409Smrg t clear 11244e6232409Smrg :clear 112456d1874b2Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11246e6232409Smrg t end 11247e6232409Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11248e6232409Smrg :end' >>confcache 11249e6232409Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11250e6232409Smrg if test -w "$cache_file"; then 1125194a251fdSmrg if test "x$cache_file" != "x/dev/null"; then 112526d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 112536d1874b2Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;} 1125494a251fdSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 1125594a251fdSmrg cat confcache >"$cache_file" 1125694a251fdSmrg else 1125794a251fdSmrg case $cache_file in #( 1125894a251fdSmrg */* | ?:*) 1125994a251fdSmrg mv -f confcache "$cache_file"$$ && 1126094a251fdSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 1126194a251fdSmrg *) 1126294a251fdSmrg mv -f confcache "$cache_file" ;; 1126394a251fdSmrg esac 1126494a251fdSmrg fi 1126594a251fdSmrg fi 11266e6232409Smrg else 112676d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 112686d1874b2Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11269e6232409Smrg fi 11270e6232409Smrgfi 11271e6232409Smrgrm -f confcache 11272e6232409Smrg 11273e6232409Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 11274e6232409Smrg# Let make expand exec_prefix. 11275e6232409Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11276e6232409Smrg 11277e6232409SmrgDEFS=-DHAVE_CONFIG_H 11278e6232409Smrg 11279e6232409Smrgac_libobjs= 11280e6232409Smrgac_ltlibobjs= 1128194a251fdSmrgU= 11282e6232409Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11283e6232409Smrg # 1. Remove the extension, and $U if already installed. 11284e6232409Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 112856d1874b2Smrg ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11286e6232409Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11287e6232409Smrg # will be set to the directory where LIBOBJS objects are built. 112888fff3f40Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 112898fff3f40Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11290e6232409Smrgdone 11291e6232409SmrgLIBOBJS=$ac_libobjs 11292e6232409Smrg 11293e6232409SmrgLTLIBOBJS=$ac_ltlibobjs 11294e6232409Smrg 11295e6232409Smrg 112966d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 112976d1874b2Smrgprintf %s "checking that generated files are newer than configure... " >&6; } 112986a45684fSmrg if test -n "$am_sleep_pid"; then 112996a45684fSmrg # Hide warnings about reused PIDs. 113006a45684fSmrg wait $am_sleep_pid 2>/dev/null 113016a45684fSmrg fi 113026d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 113036d1874b2Smrgprintf "%s\n" "done" >&6; } 113048fff3f40Smrg if test -n "$EXEEXT"; then 113058fff3f40Smrg am__EXEEXT_TRUE= 113068fff3f40Smrg am__EXEEXT_FALSE='#' 113078fff3f40Smrgelse 113088fff3f40Smrg am__EXEEXT_TRUE='#' 113098fff3f40Smrg am__EXEEXT_FALSE= 113108fff3f40Smrgfi 113118fff3f40Smrg 11312e6232409Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 1131394a251fdSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 113148fff3f40SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11315e6232409Smrgfi 11316e6232409Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 1131794a251fdSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 113188fff3f40SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11319e6232409Smrgfi 11320e6232409Smrg 1132194a251fdSmrg: "${CONFIG_STATUS=./config.status}" 113228fff3f40Smrgac_write_fail=0 11323e6232409Smrgac_clean_files_save=$ac_clean_files 11324e6232409Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 113256d1874b2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 113266d1874b2Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 113278fff3f40Smrgas_write_fail=0 113288fff3f40Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11329e6232409Smrg#! $SHELL 11330e6232409Smrg# Generated by $as_me. 11331e6232409Smrg# Run this file to recreate the current configuration. 11332e6232409Smrg# Compiler output produced by configure, useful for debugging 11333e6232409Smrg# configure, is in config.log if it exists. 11334e6232409Smrg 11335e6232409Smrgdebug=false 11336e6232409Smrgac_cs_recheck=false 11337e6232409Smrgac_cs_silent=false 11338e6232409Smrg 113398fff3f40SmrgSHELL=\${CONFIG_SHELL-$SHELL} 113408fff3f40Smrgexport SHELL 113418fff3f40Smrg_ASEOF 113428fff3f40Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 113438fff3f40Smrg## -------------------- ## 113448fff3f40Smrg## M4sh Initialization. ## 113458fff3f40Smrg## -------------------- ## 11346e6232409Smrg 113478fff3f40Smrg# Be more Bourne compatible 113488fff3f40SmrgDUALCASE=1; export DUALCASE # for MKS sh 113496d1874b2Smrgas_nop=: 113506d1874b2Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 113516d1874b2Smrgthen : 11352e6232409Smrg emulate sh 11353e6232409Smrg NULLCMD=: 113548fff3f40Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11355e6232409Smrg # is contrary to our usage. Disable this feature. 11356e6232409Smrg alias -g '${1+"$@"}'='"$@"' 11357e6232409Smrg setopt NO_GLOB_SUBST 113586d1874b2Smrgelse $as_nop 113598fff3f40Smrg case `(set -o) 2>/dev/null` in #( 113608fff3f40Smrg *posix*) : 113618fff3f40Smrg set -o posix ;; #( 113628fff3f40Smrg *) : 113638fff3f40Smrg ;; 113648fff3f40Smrgesac 11365e6232409Smrgfi 11366e6232409Smrg 11367e6232409Smrg 113686d1874b2Smrg 113696d1874b2Smrg# Reset variables that may have inherited troublesome values from 113706d1874b2Smrg# the environment. 113716d1874b2Smrg 113726d1874b2Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 113736d1874b2Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 113746d1874b2Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 113756d1874b2Smrg# Quoting is to prevent editors from complaining about space-tab. 113768fff3f40Smrgas_nl=' 113778fff3f40Smrg' 113788fff3f40Smrgexport as_nl 113796d1874b2SmrgIFS=" "" $as_nl" 113806d1874b2Smrg 113816d1874b2SmrgPS1='$ ' 113826d1874b2SmrgPS2='> ' 113836d1874b2SmrgPS4='+ ' 113846d1874b2Smrg 113856d1874b2Smrg# Ensure predictable behavior from utilities with locale-dependent output. 113866d1874b2SmrgLC_ALL=C 113876d1874b2Smrgexport LC_ALL 113886d1874b2SmrgLANGUAGE=C 113896d1874b2Smrgexport LANGUAGE 113906d1874b2Smrg 113916d1874b2Smrg# We cannot yet rely on "unset" to work, but we need these variables 113926d1874b2Smrg# to be unset--not just set to an empty or harmless value--now, to 113936d1874b2Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 113946d1874b2Smrg# also avoids known problems related to "unset" and subshell syntax 113956d1874b2Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 113966d1874b2Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 113976d1874b2Smrgdo eval test \${$as_var+y} \ 113986d1874b2Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 113996d1874b2Smrgdone 114006d1874b2Smrg 114016d1874b2Smrg# Ensure that fds 0, 1, and 2 are open. 114026d1874b2Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 114036d1874b2Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 114046d1874b2Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11405e6232409Smrg 114068fff3f40Smrg# The user is always right. 114076d1874b2Smrgif ${PATH_SEPARATOR+false} :; then 114088fff3f40Smrg PATH_SEPARATOR=: 114098fff3f40Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 114108fff3f40Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 114118fff3f40Smrg PATH_SEPARATOR=';' 114128fff3f40Smrg } 11413e6232409Smrgfi 11414e6232409Smrg 11415e6232409Smrg 11416e6232409Smrg# Find who we are. Look in the path if we contain no directory separator. 1141794a251fdSmrgas_myself= 114188fff3f40Smrgcase $0 in #(( 11419e6232409Smrg *[\\/]* ) as_myself=$0 ;; 11420e6232409Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11421e6232409Smrgfor as_dir in $PATH 11422e6232409Smrgdo 11423e6232409Smrg IFS=$as_save_IFS 114246d1874b2Smrg case $as_dir in #((( 114256d1874b2Smrg '') as_dir=./ ;; 114266d1874b2Smrg */) ;; 114276d1874b2Smrg *) as_dir=$as_dir/ ;; 114286d1874b2Smrg esac 114296d1874b2Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 114308fff3f40Smrg done 11431e6232409SmrgIFS=$as_save_IFS 11432e6232409Smrg 11433e6232409Smrg ;; 11434e6232409Smrgesac 11435e6232409Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 11436e6232409Smrg# in which case we are not to be found in the path. 11437e6232409Smrgif test "x$as_myself" = x; then 11438e6232409Smrg as_myself=$0 11439e6232409Smrgfi 11440e6232409Smrgif test ! -f "$as_myself"; then 114416d1874b2Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114428fff3f40Smrg exit 1 11443e6232409Smrgfi 11444e6232409Smrg 114458fff3f40Smrg 114468fff3f40Smrg 1144794a251fdSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 1144894a251fdSmrg# ---------------------------------------- 114498fff3f40Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 114508fff3f40Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 1145194a251fdSmrg# script with STATUS, using 1 if that was 0. 114528fff3f40Smrgas_fn_error () 114538fff3f40Smrg{ 1145494a251fdSmrg as_status=$1; test $as_status -eq 0 && as_status=1 1145594a251fdSmrg if test "$4"; then 1145694a251fdSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 114576d1874b2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11458e6232409Smrg fi 114596d1874b2Smrg printf "%s\n" "$as_me: error: $2" >&2 114608fff3f40Smrg as_fn_exit $as_status 114618fff3f40Smrg} # as_fn_error 114628fff3f40Smrg 114638fff3f40Smrg 114646d1874b2Smrg 114658fff3f40Smrg# as_fn_set_status STATUS 114668fff3f40Smrg# ----------------------- 114678fff3f40Smrg# Set $? to STATUS, without forking. 114688fff3f40Smrgas_fn_set_status () 114698fff3f40Smrg{ 114708fff3f40Smrg return $1 114718fff3f40Smrg} # as_fn_set_status 114728fff3f40Smrg 114738fff3f40Smrg# as_fn_exit STATUS 114748fff3f40Smrg# ----------------- 114758fff3f40Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 114768fff3f40Smrgas_fn_exit () 114778fff3f40Smrg{ 114788fff3f40Smrg set +e 114798fff3f40Smrg as_fn_set_status $1 114808fff3f40Smrg exit $1 114818fff3f40Smrg} # as_fn_exit 114828fff3f40Smrg 114838fff3f40Smrg# as_fn_unset VAR 114848fff3f40Smrg# --------------- 114858fff3f40Smrg# Portably unset VAR. 114868fff3f40Smrgas_fn_unset () 114878fff3f40Smrg{ 114888fff3f40Smrg { eval $1=; unset $1;} 114898fff3f40Smrg} 114908fff3f40Smrgas_unset=as_fn_unset 114916d1874b2Smrg 114928fff3f40Smrg# as_fn_append VAR VALUE 114938fff3f40Smrg# ---------------------- 114948fff3f40Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 114958fff3f40Smrg# advantage of any shell optimizations that allow amortized linear growth over 114968fff3f40Smrg# repeated appends, instead of the typical quadratic growth present in naive 114978fff3f40Smrg# implementations. 114986d1874b2Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 114996d1874b2Smrgthen : 115008fff3f40Smrg eval 'as_fn_append () 115018fff3f40Smrg { 115028fff3f40Smrg eval $1+=\$2 115038fff3f40Smrg }' 115046d1874b2Smrgelse $as_nop 115058fff3f40Smrg as_fn_append () 115068fff3f40Smrg { 115078fff3f40Smrg eval $1=\$$1\$2 115088fff3f40Smrg } 115098fff3f40Smrgfi # as_fn_append 115108fff3f40Smrg 115118fff3f40Smrg# as_fn_arith ARG... 115128fff3f40Smrg# ------------------ 115138fff3f40Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 115148fff3f40Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 115158fff3f40Smrg# must be portable across $(()) and expr. 115166d1874b2Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 115176d1874b2Smrgthen : 115188fff3f40Smrg eval 'as_fn_arith () 115198fff3f40Smrg { 115208fff3f40Smrg as_val=$(( $* )) 115218fff3f40Smrg }' 115226d1874b2Smrgelse $as_nop 115238fff3f40Smrg as_fn_arith () 115248fff3f40Smrg { 115258fff3f40Smrg as_val=`expr "$@" || test $? -eq 1` 115268fff3f40Smrg } 115278fff3f40Smrgfi # as_fn_arith 115288fff3f40Smrg 11529e6232409Smrg 11530e6232409Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 11531e6232409Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 11532e6232409Smrg as_expr=expr 11533e6232409Smrgelse 11534e6232409Smrg as_expr=false 11535e6232409Smrgfi 11536e6232409Smrg 11537e6232409Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11538e6232409Smrg as_basename=basename 11539e6232409Smrgelse 11540e6232409Smrg as_basename=false 11541e6232409Smrgfi 11542e6232409Smrg 115438fff3f40Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 115448fff3f40Smrg as_dirname=dirname 115458fff3f40Smrgelse 115468fff3f40Smrg as_dirname=false 115478fff3f40Smrgfi 115488fff3f40Smrg 11549e6232409Smrgas_me=`$as_basename -- "$0" || 11550e6232409Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11551e6232409Smrg X"$0" : 'X\(//\)$' \| \ 11552e6232409Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 115536d1874b2Smrgprintf "%s\n" X/"$0" | 11554e6232409Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 11555e6232409Smrg s//\1/ 11556e6232409Smrg q 11557e6232409Smrg } 11558e6232409Smrg /^X\/\(\/\/\)$/{ 11559e6232409Smrg s//\1/ 11560e6232409Smrg q 11561e6232409Smrg } 11562e6232409Smrg /^X\/\(\/\).*/{ 11563e6232409Smrg s//\1/ 11564e6232409Smrg q 11565e6232409Smrg } 11566e6232409Smrg s/.*/./; q'` 11567e6232409Smrg 115688fff3f40Smrg# Avoid depending upon Character Ranges. 115698fff3f40Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 115708fff3f40Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 115718fff3f40Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 115728fff3f40Smrgas_cr_digits='0123456789' 115738fff3f40Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 11574e6232409Smrg 115756d1874b2Smrg 115766d1874b2Smrg# Determine whether it's possible to make 'echo' print without a newline. 115776d1874b2Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 115786d1874b2Smrg# for compatibility with existing Makefiles. 11579e6232409SmrgECHO_C= ECHO_N= ECHO_T= 115808fff3f40Smrgcase `echo -n x` in #((((( 11581e6232409Smrg-n*) 115828fff3f40Smrg case `echo 'xy\c'` in 11583e6232409Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 115848fff3f40Smrg xy) ECHO_C='\c';; 115858fff3f40Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 115868fff3f40Smrg ECHO_T=' ';; 11587e6232409Smrg esac;; 11588e6232409Smrg*) 11589e6232409Smrg ECHO_N='-n';; 11590e6232409Smrgesac 11591e6232409Smrg 115926d1874b2Smrg# For backward compatibility with old third-party macros, we provide 115936d1874b2Smrg# the shell variables $as_echo and $as_echo_n. New code should use 115946d1874b2Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 115956d1874b2Smrgas_echo='printf %s\n' 115966d1874b2Smrgas_echo_n='printf %s' 115976d1874b2Smrg 11598e6232409Smrgrm -f conf$$ conf$$.exe conf$$.file 11599e6232409Smrgif test -d conf$$.dir; then 11600e6232409Smrg rm -f conf$$.dir/conf$$.file 11601e6232409Smrgelse 11602e6232409Smrg rm -f conf$$.dir 116038fff3f40Smrg mkdir conf$$.dir 2>/dev/null 116048fff3f40Smrgfi 116058fff3f40Smrgif (echo >conf$$.file) 2>/dev/null; then 116068fff3f40Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 116078fff3f40Smrg as_ln_s='ln -s' 116088fff3f40Smrg # ... but there are two gotchas: 116098fff3f40Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 116108fff3f40Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 116116a45684fSmrg # In both cases, we have to default to `cp -pR'. 116128fff3f40Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 116136a45684fSmrg as_ln_s='cp -pR' 116148fff3f40Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 116158fff3f40Smrg as_ln_s=ln 116168fff3f40Smrg else 116176a45684fSmrg as_ln_s='cp -pR' 116188fff3f40Smrg fi 11619e6232409Smrgelse 116206a45684fSmrg as_ln_s='cp -pR' 11621e6232409Smrgfi 11622e6232409Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11623e6232409Smrgrmdir conf$$.dir 2>/dev/null 11624e6232409Smrg 116258fff3f40Smrg 116268fff3f40Smrg# as_fn_mkdir_p 116278fff3f40Smrg# ------------- 116288fff3f40Smrg# Create "$as_dir" as a directory, including parents if necessary. 116298fff3f40Smrgas_fn_mkdir_p () 116308fff3f40Smrg{ 116318fff3f40Smrg 116328fff3f40Smrg case $as_dir in #( 116338fff3f40Smrg -*) as_dir=./$as_dir;; 116348fff3f40Smrg esac 116358fff3f40Smrg test -d "$as_dir" || eval $as_mkdir_p || { 116368fff3f40Smrg as_dirs= 116378fff3f40Smrg while :; do 116388fff3f40Smrg case $as_dir in #( 116396d1874b2Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 116408fff3f40Smrg *) as_qdir=$as_dir;; 116418fff3f40Smrg esac 116428fff3f40Smrg as_dirs="'$as_qdir' $as_dirs" 116438fff3f40Smrg as_dir=`$as_dirname -- "$as_dir" || 116448fff3f40Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 116458fff3f40Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 116468fff3f40Smrg X"$as_dir" : 'X\(//\)$' \| \ 116478fff3f40Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 116486d1874b2Smrgprintf "%s\n" X"$as_dir" | 116498fff3f40Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 116508fff3f40Smrg s//\1/ 116518fff3f40Smrg q 116528fff3f40Smrg } 116538fff3f40Smrg /^X\(\/\/\)[^/].*/{ 116548fff3f40Smrg s//\1/ 116558fff3f40Smrg q 116568fff3f40Smrg } 116578fff3f40Smrg /^X\(\/\/\)$/{ 116588fff3f40Smrg s//\1/ 116598fff3f40Smrg q 116608fff3f40Smrg } 116618fff3f40Smrg /^X\(\/\).*/{ 116628fff3f40Smrg s//\1/ 116638fff3f40Smrg q 116648fff3f40Smrg } 116658fff3f40Smrg s/.*/./; q'` 116668fff3f40Smrg test -d "$as_dir" && break 116678fff3f40Smrg done 116688fff3f40Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 1166994a251fdSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 116708fff3f40Smrg 116718fff3f40Smrg 116728fff3f40Smrg} # as_fn_mkdir_p 11673e6232409Smrgif mkdir -p . 2>/dev/null; then 116748fff3f40Smrg as_mkdir_p='mkdir -p "$as_dir"' 11675e6232409Smrgelse 11676e6232409Smrg test -d ./-p && rmdir ./-p 11677e6232409Smrg as_mkdir_p=false 11678e6232409Smrgfi 11679e6232409Smrg 116806a45684fSmrg 116816a45684fSmrg# as_fn_executable_p FILE 116826a45684fSmrg# ----------------------- 116836a45684fSmrg# Test if FILE is an executable regular file. 116846a45684fSmrgas_fn_executable_p () 116856a45684fSmrg{ 116866a45684fSmrg test -f "$1" && test -x "$1" 116876a45684fSmrg} # as_fn_executable_p 116886a45684fSmrgas_test_x='test -x' 116896a45684fSmrgas_executable_p=as_fn_executable_p 11690e6232409Smrg 11691e6232409Smrg# Sed expression to map a string onto a valid CPP name. 11692e6232409Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11693e6232409Smrg 11694e6232409Smrg# Sed expression to map a string onto a valid variable name. 11695e6232409Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11696e6232409Smrg 11697e6232409Smrg 11698e6232409Smrgexec 6>&1 116998fff3f40Smrg## ----------------------------------- ## 117008fff3f40Smrg## Main body of $CONFIG_STATUS script. ## 117018fff3f40Smrg## ----------------------------------- ## 117028fff3f40Smrg_ASEOF 117038fff3f40Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11704e6232409Smrg 117058fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 117068fff3f40Smrg# Save the log message, to keep $0 and so on meaningful, and to 11707e6232409Smrg# report actual input values of CONFIG_FILES etc. instead of their 11708e6232409Smrg# values after options handling. 11709e6232409Smrgac_log=" 117106d1874b2SmrgThis file was extended by xlsfonts $as_me 1.0.7, which was 117116d1874b2Smrggenerated by GNU Autoconf 2.71. Invocation command line was 11712e6232409Smrg 11713e6232409Smrg CONFIG_FILES = $CONFIG_FILES 11714e6232409Smrg CONFIG_HEADERS = $CONFIG_HEADERS 11715e6232409Smrg CONFIG_LINKS = $CONFIG_LINKS 11716e6232409Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 11717e6232409Smrg $ $0 $@ 11718e6232409Smrg 11719e6232409Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 11720e6232409Smrg" 11721e6232409Smrg 11722e6232409Smrg_ACEOF 11723e6232409Smrg 117248fff3f40Smrgcase $ac_config_files in *" 117258fff3f40Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 117268fff3f40Smrgesac 117278fff3f40Smrg 117288fff3f40Smrgcase $ac_config_headers in *" 117298fff3f40Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 117308fff3f40Smrgesac 117318fff3f40Smrg 117328fff3f40Smrg 117338fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11734e6232409Smrg# Files that config.status was made for. 11735e6232409Smrgconfig_files="$ac_config_files" 11736e6232409Smrgconfig_headers="$ac_config_headers" 11737e6232409Smrgconfig_commands="$ac_config_commands" 11738e6232409Smrg 11739e6232409Smrg_ACEOF 11740e6232409Smrg 117418fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11742e6232409Smrgac_cs_usage="\ 117438fff3f40Smrg\`$as_me' instantiates files and other configuration actions 117448fff3f40Smrgfrom templates according to the current configuration. Unless the files 117458fff3f40Smrgand actions are specified as TAGs, all are instantiated by default. 11746e6232409Smrg 117478fff3f40SmrgUsage: $0 [OPTION]... [TAG]... 11748e6232409Smrg 11749e6232409Smrg -h, --help print this help, then exit 117508fff3f40Smrg -V, --version print version number and configuration settings, then exit 117518fff3f40Smrg --config print configuration, then exit 117528fff3f40Smrg -q, --quiet, --silent 117538fff3f40Smrg do not print progress messages 11754e6232409Smrg -d, --debug don't remove temporary files 11755e6232409Smrg --recheck update $as_me by reconfiguring in the same conditions 117568fff3f40Smrg --file=FILE[:TEMPLATE] 117578fff3f40Smrg instantiate the configuration file FILE 117588fff3f40Smrg --header=FILE[:TEMPLATE] 117598fff3f40Smrg instantiate the configuration header FILE 11760e6232409Smrg 11761e6232409SmrgConfiguration files: 11762e6232409Smrg$config_files 11763e6232409Smrg 11764e6232409SmrgConfiguration headers: 11765e6232409Smrg$config_headers 11766e6232409Smrg 11767e6232409SmrgConfiguration commands: 11768e6232409Smrg$config_commands 11769e6232409Smrg 117706d1874b2SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xlsfonts/issues>." 11771e6232409Smrg 11772e6232409Smrg_ACEOF 117736d1874b2Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 117746d1874b2Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 117758fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 117766d1874b2Smrgac_cs_config='$ac_cs_config_escaped' 11777e6232409Smrgac_cs_version="\\ 117786d1874b2Smrgxlsfonts config.status 1.0.7 117796d1874b2Smrgconfigured by $0, generated by GNU Autoconf 2.71, 117808fff3f40Smrg with options \\"\$ac_cs_config\\" 11781e6232409Smrg 117826d1874b2SmrgCopyright (C) 2021 Free Software Foundation, Inc. 11783e6232409SmrgThis config.status script is free software; the Free Software Foundation 11784e6232409Smrggives unlimited permission to copy, distribute and modify it." 11785e6232409Smrg 11786e6232409Smrgac_pwd='$ac_pwd' 11787e6232409Smrgsrcdir='$srcdir' 11788e6232409SmrgINSTALL='$INSTALL' 117898fff3f40SmrgMKDIR_P='$MKDIR_P' 117908fff3f40SmrgAWK='$AWK' 117918fff3f40Smrgtest -n "\$AWK" || AWK=awk 11792e6232409Smrg_ACEOF 11793e6232409Smrg 117948fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 117958fff3f40Smrg# The default lists apply if the user does not specify any file. 11796e6232409Smrgac_need_defaults=: 11797e6232409Smrgwhile test $# != 0 11798e6232409Smrgdo 11799e6232409Smrg case $1 in 1180094a251fdSmrg --*=?*) 11801e6232409Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 11802e6232409Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11803e6232409Smrg ac_shift=: 11804e6232409Smrg ;; 1180594a251fdSmrg --*=) 1180694a251fdSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 1180794a251fdSmrg ac_optarg= 1180894a251fdSmrg ac_shift=: 1180994a251fdSmrg ;; 11810e6232409Smrg *) 11811e6232409Smrg ac_option=$1 11812e6232409Smrg ac_optarg=$2 11813e6232409Smrg ac_shift=shift 11814e6232409Smrg ;; 11815e6232409Smrg esac 11816e6232409Smrg 11817e6232409Smrg case $ac_option in 11818e6232409Smrg # Handling of the options. 11819e6232409Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11820e6232409Smrg ac_cs_recheck=: ;; 11821e6232409Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 118226d1874b2Smrg printf "%s\n" "$ac_cs_version"; exit ;; 118238fff3f40Smrg --config | --confi | --conf | --con | --co | --c ) 118246d1874b2Smrg printf "%s\n" "$ac_cs_config"; exit ;; 11825e6232409Smrg --debug | --debu | --deb | --de | --d | -d ) 11826e6232409Smrg debug=: ;; 11827e6232409Smrg --file | --fil | --fi | --f ) 11828e6232409Smrg $ac_shift 118298fff3f40Smrg case $ac_optarg in 118306d1874b2Smrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 1183194a251fdSmrg '') as_fn_error $? "missing file argument" ;; 118328fff3f40Smrg esac 118338fff3f40Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 11834e6232409Smrg ac_need_defaults=false;; 11835e6232409Smrg --header | --heade | --head | --hea ) 11836e6232409Smrg $ac_shift 118378fff3f40Smrg case $ac_optarg in 118386d1874b2Smrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 118398fff3f40Smrg esac 118408fff3f40Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11841e6232409Smrg ac_need_defaults=false;; 11842e6232409Smrg --he | --h) 11843e6232409Smrg # Conflict between --help and --header 1184494a251fdSmrg as_fn_error $? "ambiguous option: \`$1' 118458fff3f40SmrgTry \`$0 --help' for more information.";; 11846e6232409Smrg --help | --hel | -h ) 118476d1874b2Smrg printf "%s\n" "$ac_cs_usage"; exit ;; 11848e6232409Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11849e6232409Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 11850e6232409Smrg ac_cs_silent=: ;; 11851e6232409Smrg 11852e6232409Smrg # This is an error. 1185394a251fdSmrg -*) as_fn_error $? "unrecognized option: \`$1' 118548fff3f40SmrgTry \`$0 --help' for more information." ;; 11855e6232409Smrg 118568fff3f40Smrg *) as_fn_append ac_config_targets " $1" 11857e6232409Smrg ac_need_defaults=false ;; 11858e6232409Smrg 11859e6232409Smrg esac 11860e6232409Smrg shift 11861e6232409Smrgdone 11862e6232409Smrg 11863e6232409Smrgac_configure_extra_args= 11864e6232409Smrg 11865e6232409Smrgif $ac_cs_silent; then 11866e6232409Smrg exec 6>/dev/null 11867e6232409Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 11868e6232409Smrgfi 11869e6232409Smrg 11870e6232409Smrg_ACEOF 118718fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11872e6232409Smrgif \$ac_cs_recheck; then 118736a45684fSmrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 118748fff3f40Smrg shift 118756d1874b2Smrg \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 118768fff3f40Smrg CONFIG_SHELL='$SHELL' 11877e6232409Smrg export CONFIG_SHELL 118788fff3f40Smrg exec "\$@" 11879e6232409Smrgfi 11880e6232409Smrg 11881e6232409Smrg_ACEOF 118828fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11883e6232409Smrgexec 5>>config.log 11884e6232409Smrg{ 11885e6232409Smrg echo 11886e6232409Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11887e6232409Smrg## Running $as_me. ## 11888e6232409Smrg_ASBOX 118896d1874b2Smrg printf "%s\n" "$ac_log" 11890e6232409Smrg} >&5 11891e6232409Smrg 11892e6232409Smrg_ACEOF 118938fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11894e6232409Smrg# 11895e6232409Smrg# INIT-COMMANDS 11896e6232409Smrg# 118976d1874b2SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 11898e6232409Smrg 11899e6232409Smrg_ACEOF 11900e6232409Smrg 119018fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11902e6232409Smrg 11903e6232409Smrg# Handling of arguments. 11904e6232409Smrgfor ac_config_target in $ac_config_targets 11905e6232409Smrgdo 11906e6232409Smrg case $ac_config_target in 119078fff3f40Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 119086a45684fSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11909e6232409Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 1191094a251fdSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11911e6232409Smrg 1191294a251fdSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11913e6232409Smrg esac 11914e6232409Smrgdone 11915e6232409Smrg 11916e6232409Smrg 11917e6232409Smrg# If the user did not use the arguments to specify the items to instantiate, 11918e6232409Smrg# then the envvar interface is used. Set only those that are not. 11919e6232409Smrg# We use the long form for the default assignment because of an extremely 11920e6232409Smrg# bizarre bug on SunOS 4.1.3. 11921e6232409Smrgif $ac_need_defaults; then 119226d1874b2Smrg test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 119236d1874b2Smrg test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 119246d1874b2Smrg test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 11925e6232409Smrgfi 11926e6232409Smrg 11927e6232409Smrg# Have a temporary directory for convenience. Make it in the build tree 11928e6232409Smrg# simply because there is no reason against having it here, and in addition, 11929e6232409Smrg# creating and moving files from /tmp can sometimes cause problems. 11930e6232409Smrg# Hook for its removal unless debugging. 11931e6232409Smrg# Note that there is a small window in which the directory will not be cleaned: 11932e6232409Smrg# after its creation but before its name has been assigned to `$tmp'. 11933e6232409Smrg$debug || 11934e6232409Smrg{ 1193594a251fdSmrg tmp= ac_tmp= 11936e6232409Smrg trap 'exit_status=$? 1193794a251fdSmrg : "${ac_tmp:=$tmp}" 1193894a251fdSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11939e6232409Smrg' 0 119408fff3f40Smrg trap 'as_fn_exit 1' 1 2 13 15 11941e6232409Smrg} 11942e6232409Smrg# Create a (secure) tmp directory for tmp files. 11943e6232409Smrg 11944e6232409Smrg{ 11945e6232409Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 1194694a251fdSmrg test -d "$tmp" 11947e6232409Smrg} || 11948e6232409Smrg{ 11949e6232409Smrg tmp=./conf$$-$RANDOM 11950e6232409Smrg (umask 077 && mkdir "$tmp") 1195194a251fdSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 1195294a251fdSmrgac_tmp=$tmp 11953e6232409Smrg 119548fff3f40Smrg# Set up the scripts for CONFIG_FILES section. 119558fff3f40Smrg# No need to generate them if there are no CONFIG_FILES. 119568fff3f40Smrg# This happens for instance with `./config.status config.h'. 11957e6232409Smrgif test -n "$CONFIG_FILES"; then 11958e6232409Smrg 11959e6232409Smrg 119608fff3f40Smrgac_cr=`echo X | tr X '\015'` 119618fff3f40Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 119628fff3f40Smrg# But we know of no other shell where ac_cr would be empty at this 119638fff3f40Smrg# point, so we can use a bashism as a fallback. 119648fff3f40Smrgif test "x$ac_cr" = x; then 119658fff3f40Smrg eval ac_cr=\$\'\\r\' 119668fff3f40Smrgfi 119678fff3f40Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 119688fff3f40Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 1196994a251fdSmrg ac_cs_awk_cr='\\r' 119708fff3f40Smrgelse 119718fff3f40Smrg ac_cs_awk_cr=$ac_cr 11972e6232409Smrgfi 11973e6232409Smrg 1197494a251fdSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 11975e6232409Smrg_ACEOF 11976e6232409Smrg 11977e6232409Smrg 119788fff3f40Smrg{ 119798fff3f40Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 119808fff3f40Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 119818fff3f40Smrg echo "_ACEOF" 119828fff3f40Smrg} >conf$$subs.sh || 1198394a251fdSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1198494a251fdSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11985e6232409Smrgac_delim='%!_!# ' 11986e6232409Smrgfor ac_last_try in false false false false false :; do 119878fff3f40Smrg . ./conf$$subs.sh || 1198894a251fdSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11989e6232409Smrg 119908fff3f40Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 119918fff3f40Smrg if test $ac_delim_n = $ac_delim_num; then 11992e6232409Smrg break 11993e6232409Smrg elif $ac_last_try; then 1199494a251fdSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11995e6232409Smrg else 11996e6232409Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11997e6232409Smrg fi 11998e6232409Smrgdone 119998fff3f40Smrgrm -f conf$$subs.sh 12000e6232409Smrg 120018fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1200294a251fdSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 120038fff3f40Smrg_ACEOF 120048fff3f40Smrgsed -n ' 120058fff3f40Smrgh 120068fff3f40Smrgs/^/S["/; s/!.*/"]=/ 120078fff3f40Smrgp 120088fff3f40Smrgg 120098fff3f40Smrgs/^[^!]*!// 120108fff3f40Smrg:repl 120118fff3f40Smrgt repl 120128fff3f40Smrgs/'"$ac_delim"'$// 120138fff3f40Smrgt delim 120148fff3f40Smrg:nl 120158fff3f40Smrgh 120168fff3f40Smrgs/\(.\{148\}\)..*/\1/ 120178fff3f40Smrgt more1 120188fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 120198fff3f40Smrgp 120208fff3f40Smrgn 120218fff3f40Smrgb repl 120228fff3f40Smrg:more1 120238fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 120248fff3f40Smrgp 120258fff3f40Smrgg 120268fff3f40Smrgs/.\{148\}// 120278fff3f40Smrgt nl 120288fff3f40Smrg:delim 120298fff3f40Smrgh 120308fff3f40Smrgs/\(.\{148\}\)..*/\1/ 120318fff3f40Smrgt more2 120328fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 120338fff3f40Smrgp 120348fff3f40Smrgb 120358fff3f40Smrg:more2 120368fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 120378fff3f40Smrgp 120388fff3f40Smrgg 120398fff3f40Smrgs/.\{148\}// 120408fff3f40Smrgt delim 120418fff3f40Smrg' <conf$$subs.awk | sed ' 120428fff3f40Smrg/^[^""]/{ 120438fff3f40Smrg N 120448fff3f40Smrg s/\n// 120458fff3f40Smrg} 120468fff3f40Smrg' >>$CONFIG_STATUS || ac_write_fail=1 120478fff3f40Smrgrm -f conf$$subs.awk 120488fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 120498fff3f40Smrg_ACAWK 1205094a251fdSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 120518fff3f40Smrg for (key in S) S_is_set[key] = 1 120528fff3f40Smrg FS = "" 120538fff3f40Smrg 120548fff3f40Smrg} 120558fff3f40Smrg{ 120568fff3f40Smrg line = $ 0 120578fff3f40Smrg nfields = split(line, field, "@") 120588fff3f40Smrg substed = 0 120598fff3f40Smrg len = length(field[1]) 120608fff3f40Smrg for (i = 2; i < nfields; i++) { 120618fff3f40Smrg key = field[i] 120628fff3f40Smrg keylen = length(key) 120638fff3f40Smrg if (S_is_set[key]) { 120648fff3f40Smrg value = S[key] 120658fff3f40Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 120668fff3f40Smrg len += length(value) + length(field[++i]) 120678fff3f40Smrg substed = 1 120688fff3f40Smrg } else 120698fff3f40Smrg len += 1 + keylen 120708fff3f40Smrg } 120718fff3f40Smrg 120728fff3f40Smrg print line 120738fff3f40Smrg} 12074e6232409Smrg 120758fff3f40Smrg_ACAWK 12076e6232409Smrg_ACEOF 120778fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 120788fff3f40Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 120798fff3f40Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 120808fff3f40Smrgelse 120818fff3f40Smrg cat 1208294a251fdSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 1208394a251fdSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12084e6232409Smrg_ACEOF 12085e6232409Smrg 1208694a251fdSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 1208794a251fdSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12088e6232409Smrg# trailing colons and then remove the whole line if VPATH becomes empty 12089e6232409Smrg# (actually we leave an empty line to preserve line numbers). 12090e6232409Smrgif test "x$srcdir" = x.; then 1209194a251fdSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 1209294a251fdSmrgh 1209394a251fdSmrgs/// 1209494a251fdSmrgs/^/:/ 1209594a251fdSmrgs/[ ]*$/:/ 1209694a251fdSmrgs/:\$(srcdir):/:/g 1209794a251fdSmrgs/:\${srcdir}:/:/g 1209894a251fdSmrgs/:@srcdir@:/:/g 1209994a251fdSmrgs/^:*// 12100e6232409Smrgs/:*$// 1210194a251fdSmrgx 1210294a251fdSmrgs/\(=[ ]*\).*/\1/ 1210394a251fdSmrgG 1210494a251fdSmrgs/\n// 12105e6232409Smrgs/^[^=]*=[ ]*$// 12106e6232409Smrg}' 12107e6232409Smrgfi 12108e6232409Smrg 121098fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12110e6232409Smrgfi # test -n "$CONFIG_FILES" 12111e6232409Smrg 121128fff3f40Smrg# Set up the scripts for CONFIG_HEADERS section. 121138fff3f40Smrg# No need to generate them if there are no CONFIG_HEADERS. 121148fff3f40Smrg# This happens for instance with `./config.status Makefile'. 121158fff3f40Smrgif test -n "$CONFIG_HEADERS"; then 1211694a251fdSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 121178fff3f40SmrgBEGIN { 121188fff3f40Smrg_ACEOF 121198fff3f40Smrg 121208fff3f40Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 121218fff3f40Smrg# here-document in config.status, that substitutes the proper values into 121228fff3f40Smrg# config.h.in to produce config.h. 121238fff3f40Smrg 121248fff3f40Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 121258fff3f40Smrg# handling of long lines. 121268fff3f40Smrgac_delim='%!_!# ' 121278fff3f40Smrgfor ac_last_try in false false :; do 1212894a251fdSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 1212994a251fdSmrg if test -z "$ac_tt"; then 121308fff3f40Smrg break 121318fff3f40Smrg elif $ac_last_try; then 1213294a251fdSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 121338fff3f40Smrg else 121348fff3f40Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 121358fff3f40Smrg fi 121368fff3f40Smrgdone 121378fff3f40Smrg 121388fff3f40Smrg# For the awk script, D is an array of macro values keyed by name, 121398fff3f40Smrg# likewise P contains macro parameters if any. Preserve backslash 121408fff3f40Smrg# newline sequences. 121418fff3f40Smrg 121428fff3f40Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 121438fff3f40Smrgsed -n ' 121448fff3f40Smrgs/.\{148\}/&'"$ac_delim"'/g 121458fff3f40Smrgt rset 121468fff3f40Smrg:rset 121478fff3f40Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 121488fff3f40Smrgt def 121498fff3f40Smrgd 121508fff3f40Smrg:def 121518fff3f40Smrgs/\\$// 121528fff3f40Smrgt bsnl 121538fff3f40Smrgs/["\\]/\\&/g 121548fff3f40Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 121558fff3f40SmrgD["\1"]=" \3"/p 121568fff3f40Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 121578fff3f40Smrgd 121588fff3f40Smrg:bsnl 121598fff3f40Smrgs/["\\]/\\&/g 121608fff3f40Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 121618fff3f40SmrgD["\1"]=" \3\\\\\\n"\\/p 121628fff3f40Smrgt cont 121638fff3f40Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 121648fff3f40Smrgt cont 121658fff3f40Smrgd 121668fff3f40Smrg:cont 121678fff3f40Smrgn 121688fff3f40Smrgs/.\{148\}/&'"$ac_delim"'/g 121698fff3f40Smrgt clear 121708fff3f40Smrg:clear 121718fff3f40Smrgs/\\$// 121728fff3f40Smrgt bsnlc 121738fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 121748fff3f40Smrgd 121758fff3f40Smrg:bsnlc 121768fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 121778fff3f40Smrgb cont 121788fff3f40Smrg' <confdefs.h | sed ' 121798fff3f40Smrgs/'"$ac_delim"'/"\\\ 121808fff3f40Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 121818fff3f40Smrg 121828fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 121838fff3f40Smrg for (key in D) D_is_set[key] = 1 121848fff3f40Smrg FS = "" 121858fff3f40Smrg} 121868fff3f40Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 121878fff3f40Smrg line = \$ 0 121888fff3f40Smrg split(line, arg, " ") 121898fff3f40Smrg if (arg[1] == "#") { 121908fff3f40Smrg defundef = arg[2] 121918fff3f40Smrg mac1 = arg[3] 121928fff3f40Smrg } else { 121938fff3f40Smrg defundef = substr(arg[1], 2) 121948fff3f40Smrg mac1 = arg[2] 121958fff3f40Smrg } 121968fff3f40Smrg split(mac1, mac2, "(") #) 121978fff3f40Smrg macro = mac2[1] 121988fff3f40Smrg prefix = substr(line, 1, index(line, defundef) - 1) 121998fff3f40Smrg if (D_is_set[macro]) { 122008fff3f40Smrg # Preserve the white space surrounding the "#". 122018fff3f40Smrg print prefix "define", macro P[macro] D[macro] 122028fff3f40Smrg next 122038fff3f40Smrg } else { 122048fff3f40Smrg # Replace #undef with comments. This is necessary, for example, 122058fff3f40Smrg # in the case of _POSIX_SOURCE, which is predefined and required 122068fff3f40Smrg # on some systems where configure will not decide to define it. 122078fff3f40Smrg if (defundef == "undef") { 122088fff3f40Smrg print "/*", prefix defundef, macro, "*/" 122098fff3f40Smrg next 122108fff3f40Smrg } 122118fff3f40Smrg } 122128fff3f40Smrg} 122138fff3f40Smrg{ print } 122148fff3f40Smrg_ACAWK 122158fff3f40Smrg_ACEOF 122168fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1221794a251fdSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 122188fff3f40Smrgfi # test -n "$CONFIG_HEADERS" 122198fff3f40Smrg 12220e6232409Smrg 122218fff3f40Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 122228fff3f40Smrgshift 122238fff3f40Smrgfor ac_tag 12224e6232409Smrgdo 12225e6232409Smrg case $ac_tag in 12226e6232409Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 12227e6232409Smrg esac 12228e6232409Smrg case $ac_mode$ac_tag in 12229e6232409Smrg :[FHL]*:*);; 1223094a251fdSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12231e6232409Smrg :[FH]-) ac_tag=-:-;; 12232e6232409Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12233e6232409Smrg esac 12234e6232409Smrg ac_save_IFS=$IFS 12235e6232409Smrg IFS=: 12236e6232409Smrg set x $ac_tag 12237e6232409Smrg IFS=$ac_save_IFS 12238e6232409Smrg shift 12239e6232409Smrg ac_file=$1 12240e6232409Smrg shift 12241e6232409Smrg 12242e6232409Smrg case $ac_mode in 12243e6232409Smrg :L) ac_source=$1;; 12244e6232409Smrg :[FH]) 12245e6232409Smrg ac_file_inputs= 12246e6232409Smrg for ac_f 12247e6232409Smrg do 12248e6232409Smrg case $ac_f in 1224994a251fdSmrg -) ac_f="$ac_tmp/stdin";; 12250e6232409Smrg *) # Look for the file first in the build tree, then in the source tree 12251e6232409Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 12252e6232409Smrg # because $ac_f cannot contain `:'. 12253e6232409Smrg test -f "$ac_f" || 12254e6232409Smrg case $ac_f in 12255e6232409Smrg [\\/$]*) false;; 12256e6232409Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12257e6232409Smrg esac || 1225894a251fdSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12259e6232409Smrg esac 122606d1874b2Smrg case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 122618fff3f40Smrg as_fn_append ac_file_inputs " '$ac_f'" 12262e6232409Smrg done 12263e6232409Smrg 12264e6232409Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 12265e6232409Smrg # use $as_me), people would be surprised to read: 12266e6232409Smrg # /* config.h. Generated by config.status. */ 122678fff3f40Smrg configure_input='Generated from '` 122686d1874b2Smrg printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 122698fff3f40Smrg `' by configure.' 12270e6232409Smrg if test x"$ac_file" != x-; then 12271e6232409Smrg configure_input="$ac_file. $configure_input" 122726d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 122736d1874b2Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;} 12274e6232409Smrg fi 122758fff3f40Smrg # Neutralize special characters interpreted by sed in replacement strings. 122768fff3f40Smrg case $configure_input in #( 122778fff3f40Smrg *\&* | *\|* | *\\* ) 122786d1874b2Smrg ac_sed_conf_input=`printf "%s\n" "$configure_input" | 122798fff3f40Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 122808fff3f40Smrg *) ac_sed_conf_input=$configure_input;; 122818fff3f40Smrg esac 12282e6232409Smrg 12283e6232409Smrg case $ac_tag in 1228494a251fdSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 1228594a251fdSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12286e6232409Smrg esac 12287e6232409Smrg ;; 12288e6232409Smrg esac 12289e6232409Smrg 12290e6232409Smrg ac_dir=`$as_dirname -- "$ac_file" || 12291e6232409Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12292e6232409Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 12293e6232409Smrg X"$ac_file" : 'X\(//\)$' \| \ 12294e6232409Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 122956d1874b2Smrgprintf "%s\n" X"$ac_file" | 12296e6232409Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12297e6232409Smrg s//\1/ 12298e6232409Smrg q 12299e6232409Smrg } 12300e6232409Smrg /^X\(\/\/\)[^/].*/{ 12301e6232409Smrg s//\1/ 12302e6232409Smrg q 12303e6232409Smrg } 12304e6232409Smrg /^X\(\/\/\)$/{ 12305e6232409Smrg s//\1/ 12306e6232409Smrg q 12307e6232409Smrg } 12308e6232409Smrg /^X\(\/\).*/{ 12309e6232409Smrg s//\1/ 12310e6232409Smrg q 12311e6232409Smrg } 12312e6232409Smrg s/.*/./; q'` 123138fff3f40Smrg as_dir="$ac_dir"; as_fn_mkdir_p 12314e6232409Smrg ac_builddir=. 12315e6232409Smrg 12316e6232409Smrgcase "$ac_dir" in 12317e6232409Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12318e6232409Smrg*) 123196d1874b2Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12320e6232409Smrg # A ".." for each directory in $ac_dir_suffix. 123216d1874b2Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12322e6232409Smrg case $ac_top_builddir_sub in 12323e6232409Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12324e6232409Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12325e6232409Smrg esac ;; 12326e6232409Smrgesac 12327e6232409Smrgac_abs_top_builddir=$ac_pwd 12328e6232409Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 12329e6232409Smrg# for backward compatibility: 12330e6232409Smrgac_top_builddir=$ac_top_build_prefix 12331e6232409Smrg 12332e6232409Smrgcase $srcdir in 12333e6232409Smrg .) # We are building in place. 12334e6232409Smrg ac_srcdir=. 12335e6232409Smrg ac_top_srcdir=$ac_top_builddir_sub 12336e6232409Smrg ac_abs_top_srcdir=$ac_pwd ;; 12337e6232409Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 12338e6232409Smrg ac_srcdir=$srcdir$ac_dir_suffix; 12339e6232409Smrg ac_top_srcdir=$srcdir 12340e6232409Smrg ac_abs_top_srcdir=$srcdir ;; 12341e6232409Smrg *) # Relative name. 12342e6232409Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12343e6232409Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 12344e6232409Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12345e6232409Smrgesac 12346e6232409Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12347e6232409Smrg 12348e6232409Smrg 12349e6232409Smrg case $ac_mode in 12350e6232409Smrg :F) 12351e6232409Smrg # 12352e6232409Smrg # CONFIG_FILE 12353e6232409Smrg # 12354e6232409Smrg 12355e6232409Smrg case $INSTALL in 12356e6232409Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12357e6232409Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12358e6232409Smrg esac 123598fff3f40Smrg ac_MKDIR_P=$MKDIR_P 123608fff3f40Smrg case $MKDIR_P in 123618fff3f40Smrg [\\/$]* | ?:[\\/]* ) ;; 123628fff3f40Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 123638fff3f40Smrg esac 12364e6232409Smrg_ACEOF 12365e6232409Smrg 123668fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12367e6232409Smrg# If the template does not know about datarootdir, expand it. 12368e6232409Smrg# FIXME: This hack should be removed a few years after 2.60. 12369e6232409Smrgac_datarootdir_hack=; ac_datarootdir_seen= 123708fff3f40Smrgac_sed_dataroot=' 123718fff3f40Smrg/datarootdir/ { 12372e6232409Smrg p 12373e6232409Smrg q 12374e6232409Smrg} 12375e6232409Smrg/@datadir@/p 12376e6232409Smrg/@docdir@/p 12377e6232409Smrg/@infodir@/p 12378e6232409Smrg/@localedir@/p 123798fff3f40Smrg/@mandir@/p' 123808fff3f40Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12381e6232409Smrg*datarootdir*) ac_datarootdir_seen=yes;; 12382e6232409Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 123836d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 123846d1874b2Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12385e6232409Smrg_ACEOF 123868fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12387e6232409Smrg ac_datarootdir_hack=' 12388e6232409Smrg s&@datadir@&$datadir&g 12389e6232409Smrg s&@docdir@&$docdir&g 12390e6232409Smrg s&@infodir@&$infodir&g 12391e6232409Smrg s&@localedir@&$localedir&g 12392e6232409Smrg s&@mandir@&$mandir&g 123938fff3f40Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 12394e6232409Smrgesac 12395e6232409Smrg_ACEOF 12396e6232409Smrg 12397e6232409Smrg# Neutralize VPATH when `$srcdir' = `.'. 12398e6232409Smrg# Shell code in configure.ac might set extrasub. 12399e6232409Smrg# FIXME: do we really want to maintain this feature? 124008fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 124018fff3f40Smrgac_sed_extra="$ac_vpsub 12402e6232409Smrg$extrasub 12403e6232409Smrg_ACEOF 124048fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12405e6232409Smrg:t 12406e6232409Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 124078fff3f40Smrgs|@configure_input@|$ac_sed_conf_input|;t t 12408e6232409Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 124098fff3f40Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 12410e6232409Smrgs&@srcdir@&$ac_srcdir&;t t 12411e6232409Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 12412e6232409Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 12413e6232409Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12414e6232409Smrgs&@builddir@&$ac_builddir&;t t 12415e6232409Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 12416e6232409Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12417e6232409Smrgs&@INSTALL@&$ac_INSTALL&;t t 124188fff3f40Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 12419e6232409Smrg$ac_datarootdir_hack 124208fff3f40Smrg" 1242194a251fdSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 1242294a251fdSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12423e6232409Smrg 12424e6232409Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 1242594a251fdSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 1242694a251fdSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 1242794a251fdSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 124286d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1242994a251fdSmrgwhich seems to be undefined. Please make sure it is defined" >&5 124306d1874b2Smrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1243194a251fdSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 12432e6232409Smrg 1243394a251fdSmrg rm -f "$ac_tmp/stdin" 12434e6232409Smrg case $ac_file in 1243594a251fdSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 1243694a251fdSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 124378fff3f40Smrg esac \ 1243894a251fdSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12439e6232409Smrg ;; 12440e6232409Smrg :H) 12441e6232409Smrg # 12442e6232409Smrg # CONFIG_HEADER 12443e6232409Smrg # 12444e6232409Smrg if test x"$ac_file" != x-; then 124458fff3f40Smrg { 124466d1874b2Smrg printf "%s\n" "/* $configure_input */" >&1 \ 1244794a251fdSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 1244894a251fdSmrg } >"$ac_tmp/config.h" \ 1244994a251fdSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1245094a251fdSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 124516d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 124526d1874b2Smrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12453e6232409Smrg else 124548fff3f40Smrg rm -f "$ac_file" 1245594a251fdSmrg mv "$ac_tmp/config.h" "$ac_file" \ 1245694a251fdSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12457e6232409Smrg fi 12458e6232409Smrg else 124596d1874b2Smrg printf "%s\n" "/* $configure_input */" >&1 \ 1246094a251fdSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 1246194a251fdSmrg || as_fn_error $? "could not create -" "$LINENO" 5 12462e6232409Smrg fi 124638fff3f40Smrg# Compute "$ac_file"'s index in $config_headers. 124648fff3f40Smrg_am_arg="$ac_file" 12465e6232409Smrg_am_stamp_count=1 12466e6232409Smrgfor _am_header in $config_headers :; do 12467e6232409Smrg case $_am_header in 124688fff3f40Smrg $_am_arg | $_am_arg:* ) 12469e6232409Smrg break ;; 12470e6232409Smrg * ) 12471e6232409Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12472e6232409Smrg esac 12473e6232409Smrgdone 124748fff3f40Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 124758fff3f40Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 124768fff3f40Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 124778fff3f40Smrg X"$_am_arg" : 'X\(//\)$' \| \ 124788fff3f40Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 124796d1874b2Smrgprintf "%s\n" X"$_am_arg" | 12480e6232409Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12481e6232409Smrg s//\1/ 12482e6232409Smrg q 12483e6232409Smrg } 12484e6232409Smrg /^X\(\/\/\)[^/].*/{ 12485e6232409Smrg s//\1/ 12486e6232409Smrg q 12487e6232409Smrg } 12488e6232409Smrg /^X\(\/\/\)$/{ 12489e6232409Smrg s//\1/ 12490e6232409Smrg q 12491e6232409Smrg } 12492e6232409Smrg /^X\(\/\).*/{ 12493e6232409Smrg s//\1/ 12494e6232409Smrg q 12495e6232409Smrg } 12496e6232409Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 12497e6232409Smrg ;; 12498e6232409Smrg 124996d1874b2Smrg :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 125006d1874b2Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12501e6232409Smrg ;; 12502e6232409Smrg esac 12503e6232409Smrg 12504e6232409Smrg 12505e6232409Smrg case $ac_file$ac_mode in 125068fff3f40Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 125076a45684fSmrg # Older Autoconf quotes --file arguments for eval, but not when files 125088fff3f40Smrg # are listed without --file. Let's play safe and only enable the eval 125098fff3f40Smrg # if we detect the quoting. 125106d1874b2Smrg # TODO: see whether this extra hack can be removed once we start 125116d1874b2Smrg # requiring Autoconf 2.70 or later. 125126d1874b2Smrg case $CONFIG_FILES in #( 125136d1874b2Smrg *\'*) : 125146d1874b2Smrg eval set x "$CONFIG_FILES" ;; #( 125156d1874b2Smrg *) : 125166d1874b2Smrg set x $CONFIG_FILES ;; #( 125176d1874b2Smrg *) : 125186d1874b2Smrg ;; 125196d1874b2Smrgesac 125208fff3f40Smrg shift 125216d1874b2Smrg # Used to flag and report bootstrapping failures. 125226d1874b2Smrg am_rc=0 125236d1874b2Smrg for am_mf 125248fff3f40Smrg do 125258fff3f40Smrg # Strip MF so we end up with the name of the file. 125266d1874b2Smrg am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 125276d1874b2Smrg # Check whether this is an Automake generated Makefile which includes 125286d1874b2Smrg # dependency-tracking related rules and includes. 125296d1874b2Smrg # Grep'ing the whole file directly is not great: AIX grep has a line 125308fff3f40Smrg # limit of 2048, but all sed's we know have understand at least 4000. 125316d1874b2Smrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 125326d1874b2Smrg || continue 125336d1874b2Smrg am_dirpart=`$as_dirname -- "$am_mf" || 125346d1874b2Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 125356d1874b2Smrg X"$am_mf" : 'X\(//\)[^/]' \| \ 125366d1874b2Smrg X"$am_mf" : 'X\(//\)$' \| \ 125376d1874b2Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 125386d1874b2Smrgprintf "%s\n" X"$am_mf" | 12539e6232409Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12540e6232409Smrg s//\1/ 12541e6232409Smrg q 12542e6232409Smrg } 12543e6232409Smrg /^X\(\/\/\)[^/].*/{ 12544e6232409Smrg s//\1/ 12545e6232409Smrg q 12546e6232409Smrg } 12547e6232409Smrg /^X\(\/\/\)$/{ 12548e6232409Smrg s//\1/ 12549e6232409Smrg q 12550e6232409Smrg } 12551e6232409Smrg /^X\(\/\).*/{ 12552e6232409Smrg s//\1/ 12553e6232409Smrg q 12554e6232409Smrg } 12555e6232409Smrg s/.*/./; q'` 125566d1874b2Smrg am_filepart=`$as_basename -- "$am_mf" || 125576d1874b2Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 125586d1874b2Smrg X"$am_mf" : 'X\(//\)$' \| \ 125596d1874b2Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 125606d1874b2Smrgprintf "%s\n" X/"$am_mf" | 125616d1874b2Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 12562e6232409Smrg s//\1/ 12563e6232409Smrg q 12564e6232409Smrg } 125656d1874b2Smrg /^X\/\(\/\/\)$/{ 12566e6232409Smrg s//\1/ 12567e6232409Smrg q 12568e6232409Smrg } 125696d1874b2Smrg /^X\/\(\/\).*/{ 12570e6232409Smrg s//\1/ 12571e6232409Smrg q 12572e6232409Smrg } 12573e6232409Smrg s/.*/./; q'` 125746d1874b2Smrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 125756d1874b2Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 125766d1874b2Smrg | $MAKE -f - am--depfiles" >&5 125776d1874b2Smrg (cd "$am_dirpart" \ 125786d1874b2Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 125796d1874b2Smrg | $MAKE -f - am--depfiles) >&5 2>&5 125806d1874b2Smrg ac_status=$? 125816d1874b2Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 125826d1874b2Smrg (exit $ac_status); } || am_rc=$? 12583e6232409Smrg done 125846d1874b2Smrg if test $am_rc -ne 0; then 125856d1874b2Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 125866d1874b2Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 125876d1874b2Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 125886d1874b2Smrg for automatic dependency tracking. If GNU make was not used, consider 125896d1874b2Smrg re-running the configure script with MAKE=\"gmake\" (or whatever is 125906d1874b2Smrg necessary). You can also try re-running configure with the 125916d1874b2Smrg '--disable-dependency-tracking' option to at least be able to build 125926d1874b2Smrg the package (albeit without support for automatic dependency tracking). 125936d1874b2SmrgSee \`config.log' for more details" "$LINENO" 5; } 125946d1874b2Smrg fi 125956d1874b2Smrg { am_dirpart=; unset am_dirpart;} 125966d1874b2Smrg { am_filepart=; unset am_filepart;} 125976d1874b2Smrg { am_mf=; unset am_mf;} 125986d1874b2Smrg { am_rc=; unset am_rc;} 125996d1874b2Smrg rm -f conftest-deps.mk 126008fff3f40Smrg} 12601e6232409Smrg ;; 12602e6232409Smrg 12603e6232409Smrg esac 12604e6232409Smrgdone # for ac_tag 12605e6232409Smrg 12606e6232409Smrg 126078fff3f40Smrgas_fn_exit 0 12608e6232409Smrg_ACEOF 12609e6232409Smrgac_clean_files=$ac_clean_files_save 12610e6232409Smrg 126118fff3f40Smrgtest $ac_write_fail = 0 || 1261294a251fdSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 126138fff3f40Smrg 12614e6232409Smrg 12615e6232409Smrg# configure is writing to config.log, and then calls config.status. 12616e6232409Smrg# config.status does its own redirection, appending to config.log. 12617e6232409Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 12618e6232409Smrg# by configure, so config.status won't be able to write to it; its 12619e6232409Smrg# output is simply discarded. So we exec the FD to /dev/null, 12620e6232409Smrg# effectively closing config.log, so it can be properly (re)opened and 12621e6232409Smrg# appended to by config.status. When coming back to configure, we 12622e6232409Smrg# need to make the FD available again. 12623e6232409Smrgif test "$no_create" != yes; then 12624e6232409Smrg ac_cs_success=: 12625e6232409Smrg ac_config_status_args= 12626e6232409Smrg test "$silent" = yes && 12627e6232409Smrg ac_config_status_args="$ac_config_status_args --quiet" 12628e6232409Smrg exec 5>/dev/null 12629e6232409Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12630e6232409Smrg exec 5>>config.log 12631e6232409Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12632e6232409Smrg # would make configure fail if this is the last instruction. 1263394a251fdSmrg $ac_cs_success || as_fn_exit 1 126348fff3f40Smrgfi 126358fff3f40Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 126366d1874b2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 126376d1874b2Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12638e6232409Smrgfi 12639e6232409Smrg 126406d1874b2Smrg 12641