13e747e6dSmrg#! /bin/sh 23e747e6dSmrg# Guess values for system-dependent variables and create Makefiles. 36d8e82c3Smrg# Generated by GNU Autoconf 2.71 for twm 1.0.13.1. 43e747e6dSmrg# 5f66df612Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/twm/issues>. 63e747e6dSmrg# 77a2631fcSmrg# 86d8e82c3Smrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 96d8e82c3Smrg# Inc. 107a2631fcSmrg# 117a2631fcSmrg# 123e747e6dSmrg# This configure script is free software; the Free Software Foundation 133e747e6dSmrg# gives unlimited permission to copy, distribute and modify it. 147a2631fcSmrg## -------------------- ## 157a2631fcSmrg## M4sh Initialization. ## 167a2631fcSmrg## -------------------- ## 173e747e6dSmrg 183e747e6dSmrg# Be more Bourne compatible 193e747e6dSmrgDUALCASE=1; export DUALCASE # for MKS sh 206d8e82c3Smrgas_nop=: 216d8e82c3Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 226d8e82c3Smrgthen : 233e747e6dSmrg emulate sh 243e747e6dSmrg NULLCMD=: 257a2631fcSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 263e747e6dSmrg # is contrary to our usage. Disable this feature. 273e747e6dSmrg alias -g '${1+"$@"}'='"$@"' 283e747e6dSmrg setopt NO_GLOB_SUBST 296d8e82c3Smrgelse $as_nop 307a2631fcSmrg case `(set -o) 2>/dev/null` in #( 317a2631fcSmrg *posix*) : 327a2631fcSmrg set -o posix ;; #( 337a2631fcSmrg *) : 347a2631fcSmrg ;; 353e747e6dSmrgesac 363e747e6dSmrgfi 373e747e6dSmrg 383e747e6dSmrg 396d8e82c3Smrg 406d8e82c3Smrg# Reset variables that may have inherited troublesome values from 416d8e82c3Smrg# the environment. 426d8e82c3Smrg 436d8e82c3Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 446d8e82c3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 456d8e82c3Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 466d8e82c3Smrg# Quoting is to prevent editors from complaining about space-tab. 477a2631fcSmrgas_nl=' 487a2631fcSmrg' 497a2631fcSmrgexport as_nl 506d8e82c3SmrgIFS=" "" $as_nl" 516d8e82c3Smrg 526d8e82c3SmrgPS1='$ ' 536d8e82c3SmrgPS2='> ' 546d8e82c3SmrgPS4='+ ' 556d8e82c3Smrg 566d8e82c3Smrg# Ensure predictable behavior from utilities with locale-dependent output. 576d8e82c3SmrgLC_ALL=C 586d8e82c3Smrgexport LC_ALL 596d8e82c3SmrgLANGUAGE=C 606d8e82c3Smrgexport LANGUAGE 616d8e82c3Smrg 626d8e82c3Smrg# We cannot yet rely on "unset" to work, but we need these variables 636d8e82c3Smrg# to be unset--not just set to an empty or harmless value--now, to 646d8e82c3Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 656d8e82c3Smrg# also avoids known problems related to "unset" and subshell syntax 666d8e82c3Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 676d8e82c3Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 686d8e82c3Smrgdo eval test \${$as_var+y} \ 696d8e82c3Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 706d8e82c3Smrgdone 716d8e82c3Smrg 726d8e82c3Smrg# Ensure that fds 0, 1, and 2 are open. 736d8e82c3Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 746d8e82c3Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 756d8e82c3Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 763e747e6dSmrg 777a2631fcSmrg# The user is always right. 786d8e82c3Smrgif ${PATH_SEPARATOR+false} :; then 797a2631fcSmrg PATH_SEPARATOR=: 807a2631fcSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 817a2631fcSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 827a2631fcSmrg PATH_SEPARATOR=';' 837a2631fcSmrg } 843e747e6dSmrgfi 853e747e6dSmrg 863e747e6dSmrg 873e747e6dSmrg# Find who we are. Look in the path if we contain no directory separator. 887a2631fcSmrgas_myself= 897a2631fcSmrgcase $0 in #(( 903e747e6dSmrg *[\\/]* ) as_myself=$0 ;; 913e747e6dSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 923e747e6dSmrgfor as_dir in $PATH 933e747e6dSmrgdo 943e747e6dSmrg IFS=$as_save_IFS 956d8e82c3Smrg case $as_dir in #((( 966d8e82c3Smrg '') as_dir=./ ;; 976d8e82c3Smrg */) ;; 986d8e82c3Smrg *) as_dir=$as_dir/ ;; 996d8e82c3Smrg esac 1006d8e82c3Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 1017a2631fcSmrg done 1023e747e6dSmrgIFS=$as_save_IFS 1033e747e6dSmrg 1043e747e6dSmrg ;; 1053e747e6dSmrgesac 1063e747e6dSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1073e747e6dSmrg# in which case we are not to be found in the path. 1083e747e6dSmrgif test "x$as_myself" = x; then 1093e747e6dSmrg as_myself=$0 1103e747e6dSmrgfi 1113e747e6dSmrgif test ! -f "$as_myself"; then 1126d8e82c3Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1137a2631fcSmrg exit 1 1143e747e6dSmrgfi 1153e747e6dSmrg 1167a2631fcSmrg 1179cd34f4bSmrg# Use a proper internal environment variable to ensure we don't fall 1189cd34f4bSmrg # into an infinite loop, continuously re-executing ourselves. 1199cd34f4bSmrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 1209cd34f4bSmrg _as_can_reexec=no; export _as_can_reexec; 1219cd34f4bSmrg # We cannot yet assume a decent shell, so we have to provide a 1229cd34f4bSmrg# neutralization value for shells without unset; and this also 1239cd34f4bSmrg# works around shells that cannot unset nonexistent variables. 1249cd34f4bSmrg# Preserve -v and -x to the replacement shell. 1259cd34f4bSmrgBASH_ENV=/dev/null 1269cd34f4bSmrgENV=/dev/null 1279cd34f4bSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 1289cd34f4bSmrgcase $- in # (((( 1299cd34f4bSmrg *v*x* | *x*v* ) as_opts=-vx ;; 1309cd34f4bSmrg *v* ) as_opts=-v ;; 1319cd34f4bSmrg *x* ) as_opts=-x ;; 1329cd34f4bSmrg * ) as_opts= ;; 1339cd34f4bSmrgesac 1349cd34f4bSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 1359cd34f4bSmrg# Admittedly, this is quite paranoid, since all the known shells bail 1369cd34f4bSmrg# out after a failed `exec'. 1376d8e82c3Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 1386d8e82c3Smrgexit 255 1399cd34f4bSmrg fi 1409cd34f4bSmrg # We don't want this to propagate to other subprocesses. 1419cd34f4bSmrg { _as_can_reexec=; unset _as_can_reexec;} 1427a2631fcSmrgif test "x$CONFIG_SHELL" = x; then 1436d8e82c3Smrg as_bourne_compatible="as_nop=: 1446d8e82c3Smrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 1456d8e82c3Smrgthen : 1467a2631fcSmrg emulate sh 1477a2631fcSmrg NULLCMD=: 1487a2631fcSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1497a2631fcSmrg # is contrary to our usage. Disable this feature. 1507a2631fcSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1517a2631fcSmrg setopt NO_GLOB_SUBST 1526d8e82c3Smrgelse \$as_nop 1537a2631fcSmrg case \`(set -o) 2>/dev/null\` in #( 1547a2631fcSmrg *posix*) : 1557a2631fcSmrg set -o posix ;; #( 1567a2631fcSmrg *) : 1577a2631fcSmrg ;; 1587a2631fcSmrgesac 1597a2631fcSmrgfi 1607a2631fcSmrg" 1617a2631fcSmrg as_required="as_fn_return () { (exit \$1); } 1627a2631fcSmrgas_fn_success () { as_fn_return 0; } 1637a2631fcSmrgas_fn_failure () { as_fn_return 1; } 1647a2631fcSmrgas_fn_ret_success () { return 0; } 1657a2631fcSmrgas_fn_ret_failure () { return 1; } 1667a2631fcSmrg 1677a2631fcSmrgexitcode=0 1687a2631fcSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1697a2631fcSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1707a2631fcSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1717a2631fcSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1726d8e82c3Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 1736d8e82c3Smrgthen : 1747a2631fcSmrg 1756d8e82c3Smrgelse \$as_nop 1767a2631fcSmrg exitcode=1; echo positional parameters were not saved. 1777a2631fcSmrgfi 1789cd34f4bSmrgtest x\$exitcode = x0 || exit 1 1796d8e82c3Smrgblah=\$(echo \$(echo blah)) 1806d8e82c3Smrgtest x\"\$blah\" = xblah || exit 1 1819cd34f4bSmrgtest -x / || exit 1" 1827a2631fcSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1837a2631fcSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1847a2631fcSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 1857a2631fcSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 1867a2631fcSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 1876d8e82c3Smrg if (eval "$as_required") 2>/dev/null 1886d8e82c3Smrgthen : 1897a2631fcSmrg as_have_required=yes 1906d8e82c3Smrgelse $as_nop 1917a2631fcSmrg as_have_required=no 1927a2631fcSmrgfi 1936d8e82c3Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 1946d8e82c3Smrgthen : 1957a2631fcSmrg 1966d8e82c3Smrgelse $as_nop 1977a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1987a2631fcSmrgas_found=false 1997a2631fcSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2003e747e6dSmrgdo 2017a2631fcSmrg IFS=$as_save_IFS 2026d8e82c3Smrg case $as_dir in #((( 2036d8e82c3Smrg '') as_dir=./ ;; 2046d8e82c3Smrg */) ;; 2056d8e82c3Smrg *) as_dir=$as_dir/ ;; 2066d8e82c3Smrg esac 2077a2631fcSmrg as_found=: 2087a2631fcSmrg case $as_dir in #( 2097a2631fcSmrg /*) 2107a2631fcSmrg for as_base in sh bash ksh sh5; do 2117a2631fcSmrg # Try only shells that exist, to save several forks. 2126d8e82c3Smrg as_shell=$as_dir$as_base 2137a2631fcSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 2146d8e82c3Smrg as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 2156d8e82c3Smrgthen : 2167a2631fcSmrg CONFIG_SHELL=$as_shell as_have_required=yes 2176d8e82c3Smrg if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 2186d8e82c3Smrgthen : 2197a2631fcSmrg break 2 2207a2631fcSmrgfi 2217a2631fcSmrgfi 2227a2631fcSmrg done;; 2237a2631fcSmrg esac 2247a2631fcSmrg as_found=false 2257a2631fcSmrgdone 2267a2631fcSmrgIFS=$as_save_IFS 2276d8e82c3Smrgif $as_found 2286d8e82c3Smrgthen : 2296d8e82c3Smrg 2306d8e82c3Smrgelse $as_nop 2316d8e82c3Smrg if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2326d8e82c3Smrg as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 2336d8e82c3Smrgthen : 2346d8e82c3Smrg CONFIG_SHELL=$SHELL as_have_required=yes 2356d8e82c3Smrgfi 2366d8e82c3Smrgfi 2377a2631fcSmrg 2387a2631fcSmrg 2396d8e82c3Smrg if test "x$CONFIG_SHELL" != x 2406d8e82c3Smrgthen : 2419cd34f4bSmrg export CONFIG_SHELL 2429cd34f4bSmrg # We cannot yet assume a decent shell, so we have to provide a 2439cd34f4bSmrg# neutralization value for shells without unset; and this also 2449cd34f4bSmrg# works around shells that cannot unset nonexistent variables. 2459cd34f4bSmrg# Preserve -v and -x to the replacement shell. 2469cd34f4bSmrgBASH_ENV=/dev/null 2479cd34f4bSmrgENV=/dev/null 2489cd34f4bSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2499cd34f4bSmrgcase $- in # (((( 2509cd34f4bSmrg *v*x* | *x*v* ) as_opts=-vx ;; 2519cd34f4bSmrg *v* ) as_opts=-v ;; 2529cd34f4bSmrg *x* ) as_opts=-x ;; 2539cd34f4bSmrg * ) as_opts= ;; 2549cd34f4bSmrgesac 2559cd34f4bSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 2569cd34f4bSmrg# Admittedly, this is quite paranoid, since all the known shells bail 2579cd34f4bSmrg# out after a failed `exec'. 2586d8e82c3Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 2599cd34f4bSmrgexit 255 2607a2631fcSmrgfi 2617a2631fcSmrg 2626d8e82c3Smrg if test x$as_have_required = xno 2636d8e82c3Smrgthen : 2646d8e82c3Smrg printf "%s\n" "$0: This script requires a shell more modern than all" 2656d8e82c3Smrg printf "%s\n" "$0: the shells that I found on your system." 2666d8e82c3Smrg if test ${ZSH_VERSION+y} ; then 2676d8e82c3Smrg printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2686d8e82c3Smrg printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 2693e747e6dSmrg else 2706d8e82c3Smrg printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271f66df612Smrg$0: https://gitlab.freedesktop.org/xorg/app/twm/issues 2727a2631fcSmrg$0: about your system, including any error possibly output 2737a2631fcSmrg$0: before this message. Then install a modern shell, or 2747a2631fcSmrg$0: manually run the script under such a shell if you do 2757a2631fcSmrg$0: have one." 2763e747e6dSmrg fi 2777a2631fcSmrg exit 1 2787a2631fcSmrgfi 2797a2631fcSmrgfi 2807a2631fcSmrgfi 2817a2631fcSmrgSHELL=${CONFIG_SHELL-/bin/sh} 2827a2631fcSmrgexport SHELL 2837a2631fcSmrg# Unset more variables known to interfere with behavior of common tools. 2847a2631fcSmrgCLICOLOR_FORCE= GREP_OPTIONS= 2857a2631fcSmrgunset CLICOLOR_FORCE GREP_OPTIONS 2867a2631fcSmrg 2877a2631fcSmrg## --------------------- ## 2887a2631fcSmrg## M4sh Shell Functions. ## 2897a2631fcSmrg## --------------------- ## 2907a2631fcSmrg# as_fn_unset VAR 2917a2631fcSmrg# --------------- 2927a2631fcSmrg# Portably unset VAR. 2937a2631fcSmrgas_fn_unset () 2947a2631fcSmrg{ 2957a2631fcSmrg { eval $1=; unset $1;} 2967a2631fcSmrg} 2977a2631fcSmrgas_unset=as_fn_unset 2987a2631fcSmrg 2996d8e82c3Smrg 3007a2631fcSmrg# as_fn_set_status STATUS 3017a2631fcSmrg# ----------------------- 3027a2631fcSmrg# Set $? to STATUS, without forking. 3037a2631fcSmrgas_fn_set_status () 3047a2631fcSmrg{ 3057a2631fcSmrg return $1 3067a2631fcSmrg} # as_fn_set_status 3077a2631fcSmrg 3087a2631fcSmrg# as_fn_exit STATUS 3097a2631fcSmrg# ----------------- 3107a2631fcSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 3117a2631fcSmrgas_fn_exit () 3127a2631fcSmrg{ 3137a2631fcSmrg set +e 3147a2631fcSmrg as_fn_set_status $1 3157a2631fcSmrg exit $1 3167a2631fcSmrg} # as_fn_exit 3176d8e82c3Smrg# as_fn_nop 3186d8e82c3Smrg# --------- 3196d8e82c3Smrg# Do nothing but, unlike ":", preserve the value of $?. 3206d8e82c3Smrgas_fn_nop () 3216d8e82c3Smrg{ 3226d8e82c3Smrg return $? 3236d8e82c3Smrg} 3246d8e82c3Smrgas_nop=as_fn_nop 3257a2631fcSmrg 3267a2631fcSmrg# as_fn_mkdir_p 3277a2631fcSmrg# ------------- 3287a2631fcSmrg# Create "$as_dir" as a directory, including parents if necessary. 3297a2631fcSmrgas_fn_mkdir_p () 3307a2631fcSmrg{ 3317a2631fcSmrg 3327a2631fcSmrg case $as_dir in #( 3337a2631fcSmrg -*) as_dir=./$as_dir;; 3347a2631fcSmrg esac 3357a2631fcSmrg test -d "$as_dir" || eval $as_mkdir_p || { 3367a2631fcSmrg as_dirs= 3377a2631fcSmrg while :; do 3387a2631fcSmrg case $as_dir in #( 3396d8e82c3Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3407a2631fcSmrg *) as_qdir=$as_dir;; 3417a2631fcSmrg esac 3427a2631fcSmrg as_dirs="'$as_qdir' $as_dirs" 3437a2631fcSmrg as_dir=`$as_dirname -- "$as_dir" || 3447a2631fcSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3457a2631fcSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3467a2631fcSmrg X"$as_dir" : 'X\(//\)$' \| \ 3477a2631fcSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3486d8e82c3Smrgprintf "%s\n" X"$as_dir" | 3497a2631fcSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3507a2631fcSmrg s//\1/ 3517a2631fcSmrg q 3527a2631fcSmrg } 3537a2631fcSmrg /^X\(\/\/\)[^/].*/{ 3547a2631fcSmrg s//\1/ 3557a2631fcSmrg q 3567a2631fcSmrg } 3577a2631fcSmrg /^X\(\/\/\)$/{ 3587a2631fcSmrg s//\1/ 3597a2631fcSmrg q 3607a2631fcSmrg } 3617a2631fcSmrg /^X\(\/\).*/{ 3627a2631fcSmrg s//\1/ 3637a2631fcSmrg q 3647a2631fcSmrg } 3657a2631fcSmrg s/.*/./; q'` 3667a2631fcSmrg test -d "$as_dir" && break 3677a2631fcSmrg done 3687a2631fcSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 3697a2631fcSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3707a2631fcSmrg 3717a2631fcSmrg 3727a2631fcSmrg} # as_fn_mkdir_p 3739cd34f4bSmrg 3749cd34f4bSmrg# as_fn_executable_p FILE 3759cd34f4bSmrg# ----------------------- 3769cd34f4bSmrg# Test if FILE is an executable regular file. 3779cd34f4bSmrgas_fn_executable_p () 3789cd34f4bSmrg{ 3799cd34f4bSmrg test -f "$1" && test -x "$1" 3809cd34f4bSmrg} # as_fn_executable_p 3817a2631fcSmrg# as_fn_append VAR VALUE 3827a2631fcSmrg# ---------------------- 3837a2631fcSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3847a2631fcSmrg# advantage of any shell optimizations that allow amortized linear growth over 3857a2631fcSmrg# repeated appends, instead of the typical quadratic growth present in naive 3867a2631fcSmrg# implementations. 3876d8e82c3Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 3886d8e82c3Smrgthen : 3897a2631fcSmrg eval 'as_fn_append () 3907a2631fcSmrg { 3917a2631fcSmrg eval $1+=\$2 3927a2631fcSmrg }' 3936d8e82c3Smrgelse $as_nop 3947a2631fcSmrg as_fn_append () 3957a2631fcSmrg { 3967a2631fcSmrg eval $1=\$$1\$2 3977a2631fcSmrg } 3987a2631fcSmrgfi # as_fn_append 3997a2631fcSmrg 4007a2631fcSmrg# as_fn_arith ARG... 4017a2631fcSmrg# ------------------ 4027a2631fcSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 4037a2631fcSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 4047a2631fcSmrg# must be portable across $(()) and expr. 4056d8e82c3Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 4066d8e82c3Smrgthen : 4077a2631fcSmrg eval 'as_fn_arith () 4087a2631fcSmrg { 4097a2631fcSmrg as_val=$(( $* )) 4107a2631fcSmrg }' 4116d8e82c3Smrgelse $as_nop 4127a2631fcSmrg as_fn_arith () 4137a2631fcSmrg { 4147a2631fcSmrg as_val=`expr "$@" || test $? -eq 1` 4157a2631fcSmrg } 4167a2631fcSmrgfi # as_fn_arith 4177a2631fcSmrg 4186d8e82c3Smrg# as_fn_nop 4196d8e82c3Smrg# --------- 4206d8e82c3Smrg# Do nothing but, unlike ":", preserve the value of $?. 4216d8e82c3Smrgas_fn_nop () 4226d8e82c3Smrg{ 4236d8e82c3Smrg return $? 4246d8e82c3Smrg} 4256d8e82c3Smrgas_nop=as_fn_nop 4267a2631fcSmrg 4277a2631fcSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 4287a2631fcSmrg# ---------------------------------------- 4297a2631fcSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4307a2631fcSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4317a2631fcSmrg# script with STATUS, using 1 if that was 0. 4327a2631fcSmrgas_fn_error () 4337a2631fcSmrg{ 4347a2631fcSmrg as_status=$1; test $as_status -eq 0 && as_status=1 4357a2631fcSmrg if test "$4"; then 4367a2631fcSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4376d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4387a2631fcSmrg fi 4396d8e82c3Smrg printf "%s\n" "$as_me: error: $2" >&2 4407a2631fcSmrg as_fn_exit $as_status 4417a2631fcSmrg} # as_fn_error 4423e747e6dSmrg 4433e747e6dSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 4443e747e6dSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 4453e747e6dSmrg as_expr=expr 4463e747e6dSmrgelse 4473e747e6dSmrg as_expr=false 4483e747e6dSmrgfi 4493e747e6dSmrg 4503e747e6dSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4513e747e6dSmrg as_basename=basename 4523e747e6dSmrgelse 4533e747e6dSmrg as_basename=false 4543e747e6dSmrgfi 4553e747e6dSmrg 4567a2631fcSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4577a2631fcSmrg as_dirname=dirname 4587a2631fcSmrgelse 4597a2631fcSmrg as_dirname=false 4607a2631fcSmrgfi 4613e747e6dSmrg 4623e747e6dSmrgas_me=`$as_basename -- "$0" || 4633e747e6dSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4643e747e6dSmrg X"$0" : 'X\(//\)$' \| \ 4653e747e6dSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 4666d8e82c3Smrgprintf "%s\n" X/"$0" | 4673e747e6dSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4683e747e6dSmrg s//\1/ 4693e747e6dSmrg q 4703e747e6dSmrg } 4713e747e6dSmrg /^X\/\(\/\/\)$/{ 4723e747e6dSmrg s//\1/ 4733e747e6dSmrg q 4743e747e6dSmrg } 4753e747e6dSmrg /^X\/\(\/\).*/{ 4763e747e6dSmrg s//\1/ 4773e747e6dSmrg q 4783e747e6dSmrg } 4793e747e6dSmrg s/.*/./; q'` 4803e747e6dSmrg 4817a2631fcSmrg# Avoid depending upon Character Ranges. 4827a2631fcSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4837a2631fcSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4847a2631fcSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4857a2631fcSmrgas_cr_digits='0123456789' 4867a2631fcSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4873e747e6dSmrg 4883e747e6dSmrg 4897a2631fcSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4907a2631fcSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4917a2631fcSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4927a2631fcSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4937a2631fcSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4947a2631fcSmrg sed -n ' 4957a2631fcSmrg p 4967a2631fcSmrg /[$]LINENO/= 4977a2631fcSmrg ' <$as_myself | 4987a2631fcSmrg sed ' 4997a2631fcSmrg s/[$]LINENO.*/&-/ 5007a2631fcSmrg t lineno 5017a2631fcSmrg b 5027a2631fcSmrg :lineno 5037a2631fcSmrg N 5047a2631fcSmrg :loop 5057a2631fcSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 5067a2631fcSmrg t loop 5077a2631fcSmrg s/-\n.*// 5087a2631fcSmrg ' >$as_me.lineno && 5097a2631fcSmrg chmod +x "$as_me.lineno" || 5106d8e82c3Smrg { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 5113e747e6dSmrg 5129cd34f4bSmrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 5139cd34f4bSmrg # already done that, so ensure we don't try to do so again and fall 5149cd34f4bSmrg # in an infinite loop. This has already happened in practice. 5159cd34f4bSmrg _as_can_reexec=no; export _as_can_reexec 5167a2631fcSmrg # Don't try to exec as it changes $[0], causing all sort of problems 5177a2631fcSmrg # (the dirname of $[0] is not the place where we might find the 5187a2631fcSmrg # original and so on. Autoconf is especially sensitive to this). 5197a2631fcSmrg . "./$as_me.lineno" 5207a2631fcSmrg # Exit status is that of the last command. 5217a2631fcSmrg exit 5223e747e6dSmrg} 5233e747e6dSmrg 5246d8e82c3Smrg 5256d8e82c3Smrg# Determine whether it's possible to make 'echo' print without a newline. 5266d8e82c3Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 5276d8e82c3Smrg# for compatibility with existing Makefiles. 5287a2631fcSmrgECHO_C= ECHO_N= ECHO_T= 5297a2631fcSmrgcase `echo -n x` in #((((( 5307a2631fcSmrg-n*) 5317a2631fcSmrg case `echo 'xy\c'` in 5327a2631fcSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5337a2631fcSmrg xy) ECHO_C='\c';; 5347a2631fcSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5357a2631fcSmrg ECHO_T=' ';; 5367a2631fcSmrg esac;; 5377a2631fcSmrg*) 5387a2631fcSmrg ECHO_N='-n';; 5397a2631fcSmrgesac 5403e747e6dSmrg 5416d8e82c3Smrg# For backward compatibility with old third-party macros, we provide 5426d8e82c3Smrg# the shell variables $as_echo and $as_echo_n. New code should use 5436d8e82c3Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 5446d8e82c3Smrgas_echo='printf %s\n' 5456d8e82c3Smrgas_echo_n='printf %s' 5466d8e82c3Smrg 5476d8e82c3Smrg 5487a2631fcSmrgrm -f conf$$ conf$$.exe conf$$.file 5497a2631fcSmrgif test -d conf$$.dir; then 5507a2631fcSmrg rm -f conf$$.dir/conf$$.file 5513e747e6dSmrgelse 5527a2631fcSmrg rm -f conf$$.dir 5537a2631fcSmrg mkdir conf$$.dir 2>/dev/null 5547a2631fcSmrgfi 5557a2631fcSmrgif (echo >conf$$.file) 2>/dev/null; then 5567a2631fcSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5577a2631fcSmrg as_ln_s='ln -s' 5587a2631fcSmrg # ... but there are two gotchas: 5597a2631fcSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5607a2631fcSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5619cd34f4bSmrg # In both cases, we have to default to `cp -pR'. 5627a2631fcSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5639cd34f4bSmrg as_ln_s='cp -pR' 5647a2631fcSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 5657a2631fcSmrg as_ln_s=ln 5667a2631fcSmrg else 5679cd34f4bSmrg as_ln_s='cp -pR' 5687a2631fcSmrg fi 5693e747e6dSmrgelse 5709cd34f4bSmrg as_ln_s='cp -pR' 5713e747e6dSmrgfi 5727a2631fcSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5737a2631fcSmrgrmdir conf$$.dir 2>/dev/null 5743e747e6dSmrg 5757a2631fcSmrgif mkdir -p . 2>/dev/null; then 5767a2631fcSmrg as_mkdir_p='mkdir -p "$as_dir"' 5773e747e6dSmrgelse 5787a2631fcSmrg test -d ./-p && rmdir ./-p 5797a2631fcSmrg as_mkdir_p=false 5807a2631fcSmrgfi 5813e747e6dSmrg 5829cd34f4bSmrgas_test_x='test -x' 5839cd34f4bSmrgas_executable_p=as_fn_executable_p 5843e747e6dSmrg 5857a2631fcSmrg# Sed expression to map a string onto a valid CPP name. 5867a2631fcSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5873e747e6dSmrg 5887a2631fcSmrg# Sed expression to map a string onto a valid variable name. 5897a2631fcSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5903e747e6dSmrg 5913e747e6dSmrg 5927a2631fcSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 5937a2631fcSmrgexec 6>&1 5943e747e6dSmrg 5953e747e6dSmrg# Name of the host. 5967a2631fcSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5973e747e6dSmrg# so uname gets run too. 5983e747e6dSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5993e747e6dSmrg 6003e747e6dSmrg# 6013e747e6dSmrg# Initializations. 6023e747e6dSmrg# 6033e747e6dSmrgac_default_prefix=/usr/local 6043e747e6dSmrgac_clean_files= 6053e747e6dSmrgac_config_libobj_dir=. 6063e747e6dSmrgLIBOBJS= 6073e747e6dSmrgcross_compiling=no 6083e747e6dSmrgsubdirs= 6093e747e6dSmrgMFLAGS= 6103e747e6dSmrgMAKEFLAGS= 6113e747e6dSmrg 6123e747e6dSmrg# Identity of this package. 6133e747e6dSmrgPACKAGE_NAME='twm' 6143e747e6dSmrgPACKAGE_TARNAME='twm' 6156d8e82c3SmrgPACKAGE_VERSION='1.0.13.1' 6166d8e82c3SmrgPACKAGE_STRING='twm 1.0.13.1' 617f66df612SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/twm/issues' 6187a2631fcSmrgPACKAGE_URL='' 6193e747e6dSmrg 6202d96a817Smrgac_unique_file="Makefile.am" 6217a2631fcSmrg# Factoring default headers for most tests. 6227a2631fcSmrgac_includes_default="\ 6236d8e82c3Smrg#include <stddef.h> 6246d8e82c3Smrg#ifdef HAVE_STDIO_H 6256d8e82c3Smrg# include <stdio.h> 6267a2631fcSmrg#endif 6276d8e82c3Smrg#ifdef HAVE_STDLIB_H 6287a2631fcSmrg# include <stdlib.h> 6297a2631fcSmrg#endif 6307a2631fcSmrg#ifdef HAVE_STRING_H 6317a2631fcSmrg# include <string.h> 6327a2631fcSmrg#endif 6337a2631fcSmrg#ifdef HAVE_INTTYPES_H 6347a2631fcSmrg# include <inttypes.h> 6357a2631fcSmrg#endif 6367a2631fcSmrg#ifdef HAVE_STDINT_H 6377a2631fcSmrg# include <stdint.h> 6387a2631fcSmrg#endif 6396d8e82c3Smrg#ifdef HAVE_STRINGS_H 6406d8e82c3Smrg# include <strings.h> 6416d8e82c3Smrg#endif 6426d8e82c3Smrg#ifdef HAVE_SYS_TYPES_H 6436d8e82c3Smrg# include <sys/types.h> 6446d8e82c3Smrg#endif 6456d8e82c3Smrg#ifdef HAVE_SYS_STAT_H 6466d8e82c3Smrg# include <sys/stat.h> 6476d8e82c3Smrg#endif 6487a2631fcSmrg#ifdef HAVE_UNISTD_H 6497a2631fcSmrg# include <unistd.h> 6507a2631fcSmrg#endif" 6517a2631fcSmrg 6526d8e82c3Smrgac_header_c_list= 6537a2631fcSmrgac_subst_vars='am__EXEEXT_FALSE 6547a2631fcSmrgam__EXEEXT_TRUE 6557a2631fcSmrgLTLIBOBJS 6563e747e6dSmrgLIBOBJS 657f66df612SmrgXRANDR_LIBS 658f66df612SmrgXRANDR_CFLAGS 6597a2631fcSmrgTWM_LIBS 6607a2631fcSmrgTWM_CFLAGS 6617a2631fcSmrgLEXLIB 6627a2631fcSmrgLEX_OUTPUT_ROOT 6637a2631fcSmrgLEX 6647a2631fcSmrgYACC_INST 6657a2631fcSmrgYFLAGS 6667a2631fcSmrgYACC 6677a2631fcSmrgMAN_SUBSTS 6687a2631fcSmrgXORG_MAN_PAGE 6697a2631fcSmrgADMIN_MAN_DIR 6707a2631fcSmrgDRIVER_MAN_DIR 6717a2631fcSmrgMISC_MAN_DIR 6727a2631fcSmrgFILE_MAN_DIR 6737a2631fcSmrgLIB_MAN_DIR 6747a2631fcSmrgAPP_MAN_DIR 6757a2631fcSmrgADMIN_MAN_SUFFIX 6767a2631fcSmrgDRIVER_MAN_SUFFIX 6777a2631fcSmrgMISC_MAN_SUFFIX 6787a2631fcSmrgFILE_MAN_SUFFIX 6797a2631fcSmrgLIB_MAN_SUFFIX 6807a2631fcSmrgAPP_MAN_SUFFIX 6817a2631fcSmrgSED 6827a2631fcSmrghost_os 6837a2631fcSmrghost_vendor 6847a2631fcSmrghost_cpu 6857a2631fcSmrghost 6867a2631fcSmrgbuild_os 6877a2631fcSmrgbuild_vendor 6887a2631fcSmrgbuild_cpu 6897a2631fcSmrgbuild 6907a2631fcSmrgINSTALL_CMD 6914a1eb5dbSmrgPKG_CONFIG_LIBDIR 6924a1eb5dbSmrgPKG_CONFIG_PATH 6937a2631fcSmrgPKG_CONFIG 6947a2631fcSmrgCHANGELOG_CMD 695ffd25bcaSmrgSTRICT_CFLAGS 6967a2631fcSmrgCWARNFLAGS 697c2535118SmrgBASE_CFLAGS 698c2535118SmrgAM_BACKSLASH 699c2535118SmrgAM_DEFAULT_VERBOSITY 700c2535118SmrgAM_DEFAULT_V 701c2535118SmrgAM_V 7026d8e82c3SmrgCSCOPE 7036d8e82c3SmrgETAGS 7046d8e82c3SmrgCTAGS 7057a2631fcSmrgam__fastdepCC_FALSE 7067a2631fcSmrgam__fastdepCC_TRUE 7077a2631fcSmrgCCDEPMODE 708c2535118Smrgam__nodep 7097a2631fcSmrgAMDEPBACKSLASH 7107a2631fcSmrgAMDEP_FALSE 7117a2631fcSmrgAMDEP_TRUE 7127a2631fcSmrgam__include 7137a2631fcSmrgDEPDIR 7147a2631fcSmrgam__untar 7157a2631fcSmrgam__tar 7167a2631fcSmrgAMTAR 7177a2631fcSmrgam__leading_dot 7187a2631fcSmrgSET_MAKE 7197a2631fcSmrgAWK 7207a2631fcSmrgmkdir_p 7217a2631fcSmrgMKDIR_P 7227a2631fcSmrgINSTALL_STRIP_PROGRAM 7237a2631fcSmrgSTRIP 7247a2631fcSmrginstall_sh 7257a2631fcSmrgMAKEINFO 7267a2631fcSmrgAUTOHEADER 7277a2631fcSmrgAUTOMAKE 7287a2631fcSmrgAUTOCONF 7297a2631fcSmrgACLOCAL 7307a2631fcSmrgVERSION 7317a2631fcSmrgPACKAGE 7327a2631fcSmrgCYGPATH_W 7337a2631fcSmrgam__isrc 7347a2631fcSmrgINSTALL_DATA 7357a2631fcSmrgINSTALL_SCRIPT 7367a2631fcSmrgINSTALL_PROGRAM 737ffd25bcaSmrgOBJEXT 738ffd25bcaSmrgEXEEXT 739ffd25bcaSmrgac_ct_CC 740ffd25bcaSmrgCPPFLAGS 741ffd25bcaSmrgLDFLAGS 742ffd25bcaSmrgCFLAGS 743ffd25bcaSmrgCC 7447a2631fcSmrgtarget_alias 7457a2631fcSmrghost_alias 7467a2631fcSmrgbuild_alias 7477a2631fcSmrgLIBS 7487a2631fcSmrgECHO_T 7497a2631fcSmrgECHO_N 7507a2631fcSmrgECHO_C 7517a2631fcSmrgDEFS 7527a2631fcSmrgmandir 7537a2631fcSmrglocaledir 7547a2631fcSmrglibdir 7557a2631fcSmrgpsdir 7567a2631fcSmrgpdfdir 7577a2631fcSmrgdvidir 7587a2631fcSmrghtmldir 7597a2631fcSmrginfodir 7607a2631fcSmrgdocdir 7617a2631fcSmrgoldincludedir 7627a2631fcSmrgincludedir 7636d8e82c3Smrgrunstatedir 7647a2631fcSmrglocalstatedir 7657a2631fcSmrgsharedstatedir 7667a2631fcSmrgsysconfdir 7677a2631fcSmrgdatadir 7687a2631fcSmrgdatarootdir 7697a2631fcSmrglibexecdir 7707a2631fcSmrgsbindir 7717a2631fcSmrgbindir 7727a2631fcSmrgprogram_transform_name 7737a2631fcSmrgprefix 7747a2631fcSmrgexec_prefix 7757a2631fcSmrgPACKAGE_URL 7767a2631fcSmrgPACKAGE_BUGREPORT 7777a2631fcSmrgPACKAGE_STRING 7787a2631fcSmrgPACKAGE_VERSION 7797a2631fcSmrgPACKAGE_TARNAME 7807a2631fcSmrgPACKAGE_NAME 7817a2631fcSmrgPATH_SEPARATOR 7826d8e82c3SmrgSHELL 7836d8e82c3Smrgam__quote' 7843e747e6dSmrgac_subst_files='' 7857a2631fcSmrgac_user_opts=' 7867a2631fcSmrgenable_option_checking 7877a2631fcSmrgenable_dependency_tracking 788c2535118Smrgenable_silent_rules 789c2535118Smrgenable_selective_werror 7907a2631fcSmrgenable_strict_compilation 7917a2631fcSmrg' 7923e747e6dSmrg ac_precious_vars='build_alias 7933e747e6dSmrghost_alias 7943e747e6dSmrgtarget_alias 7953e747e6dSmrgCC 7963e747e6dSmrgCFLAGS 7973e747e6dSmrgLDFLAGS 7983e747e6dSmrgLIBS 7993e747e6dSmrgCPPFLAGS 8007a2631fcSmrgPKG_CONFIG 8014a1eb5dbSmrgPKG_CONFIG_PATH 8024a1eb5dbSmrgPKG_CONFIG_LIBDIR 8033e747e6dSmrgYACC 8043e747e6dSmrgYFLAGS 8053e747e6dSmrgTWM_CFLAGS 806f66df612SmrgTWM_LIBS 807f66df612SmrgXRANDR_CFLAGS 808f66df612SmrgXRANDR_LIBS' 8093e747e6dSmrg 8103e747e6dSmrg 8113e747e6dSmrg# Initialize some variables set by options. 8123e747e6dSmrgac_init_help= 8133e747e6dSmrgac_init_version=false 8147a2631fcSmrgac_unrecognized_opts= 8157a2631fcSmrgac_unrecognized_sep= 8163e747e6dSmrg# The variables have the same names as the options, with 8173e747e6dSmrg# dashes changed to underlines. 8183e747e6dSmrgcache_file=/dev/null 8193e747e6dSmrgexec_prefix=NONE 8203e747e6dSmrgno_create= 8213e747e6dSmrgno_recursion= 8223e747e6dSmrgprefix=NONE 8233e747e6dSmrgprogram_prefix=NONE 8243e747e6dSmrgprogram_suffix=NONE 8253e747e6dSmrgprogram_transform_name=s,x,x, 8263e747e6dSmrgsilent= 8273e747e6dSmrgsite= 8283e747e6dSmrgsrcdir= 8293e747e6dSmrgverbose= 8303e747e6dSmrgx_includes=NONE 8313e747e6dSmrgx_libraries=NONE 8323e747e6dSmrg 8333e747e6dSmrg# Installation directory options. 8343e747e6dSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 8353e747e6dSmrg# and all the variables that are supposed to be based on exec_prefix 8363e747e6dSmrg# by default will actually change. 8373e747e6dSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 8383e747e6dSmrg# (The list follows the same order as the GNU Coding Standards.) 8393e747e6dSmrgbindir='${exec_prefix}/bin' 8403e747e6dSmrgsbindir='${exec_prefix}/sbin' 8413e747e6dSmrglibexecdir='${exec_prefix}/libexec' 8423e747e6dSmrgdatarootdir='${prefix}/share' 8433e747e6dSmrgdatadir='${datarootdir}' 8443e747e6dSmrgsysconfdir='${prefix}/etc' 8453e747e6dSmrgsharedstatedir='${prefix}/com' 8463e747e6dSmrglocalstatedir='${prefix}/var' 8476d8e82c3Smrgrunstatedir='${localstatedir}/run' 8483e747e6dSmrgincludedir='${prefix}/include' 8493e747e6dSmrgoldincludedir='/usr/include' 8503e747e6dSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 8513e747e6dSmrginfodir='${datarootdir}/info' 8523e747e6dSmrghtmldir='${docdir}' 8533e747e6dSmrgdvidir='${docdir}' 8543e747e6dSmrgpdfdir='${docdir}' 8553e747e6dSmrgpsdir='${docdir}' 8563e747e6dSmrglibdir='${exec_prefix}/lib' 8573e747e6dSmrglocaledir='${datarootdir}/locale' 8583e747e6dSmrgmandir='${datarootdir}/man' 8593e747e6dSmrg 8603e747e6dSmrgac_prev= 8613e747e6dSmrgac_dashdash= 8623e747e6dSmrgfor ac_option 8633e747e6dSmrgdo 8643e747e6dSmrg # If the previous option needs an argument, assign it. 8653e747e6dSmrg if test -n "$ac_prev"; then 8663e747e6dSmrg eval $ac_prev=\$ac_option 8673e747e6dSmrg ac_prev= 8683e747e6dSmrg continue 8693e747e6dSmrg fi 8703e747e6dSmrg 8713e747e6dSmrg case $ac_option in 8727a2631fcSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8737a2631fcSmrg *=) ac_optarg= ;; 8747a2631fcSmrg *) ac_optarg=yes ;; 8753e747e6dSmrg esac 8763e747e6dSmrg 8773e747e6dSmrg case $ac_dashdash$ac_option in 8783e747e6dSmrg --) 8793e747e6dSmrg ac_dashdash=yes ;; 8803e747e6dSmrg 8813e747e6dSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8823e747e6dSmrg ac_prev=bindir ;; 8833e747e6dSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8843e747e6dSmrg bindir=$ac_optarg ;; 8853e747e6dSmrg 8863e747e6dSmrg -build | --build | --buil | --bui | --bu) 8873e747e6dSmrg ac_prev=build_alias ;; 8883e747e6dSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8893e747e6dSmrg build_alias=$ac_optarg ;; 8903e747e6dSmrg 8913e747e6dSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8923e747e6dSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8933e747e6dSmrg ac_prev=cache_file ;; 8943e747e6dSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8953e747e6dSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8963e747e6dSmrg cache_file=$ac_optarg ;; 8973e747e6dSmrg 8983e747e6dSmrg --config-cache | -C) 8993e747e6dSmrg cache_file=config.cache ;; 9003e747e6dSmrg 9013e747e6dSmrg -datadir | --datadir | --datadi | --datad) 9023e747e6dSmrg ac_prev=datadir ;; 9033e747e6dSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 9043e747e6dSmrg datadir=$ac_optarg ;; 9053e747e6dSmrg 9063e747e6dSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 9073e747e6dSmrg | --dataroo | --dataro | --datar) 9083e747e6dSmrg ac_prev=datarootdir ;; 9093e747e6dSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 9103e747e6dSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 9113e747e6dSmrg datarootdir=$ac_optarg ;; 9123e747e6dSmrg 9133e747e6dSmrg -disable-* | --disable-*) 9147a2631fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 9153e747e6dSmrg # Reject names that are not valid shell variable names. 9167a2631fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9176d8e82c3Smrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 9187a2631fcSmrg ac_useropt_orig=$ac_useropt 9196d8e82c3Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9207a2631fcSmrg case $ac_user_opts in 9217a2631fcSmrg *" 9227a2631fcSmrg"enable_$ac_useropt" 9237a2631fcSmrg"*) ;; 9247a2631fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 9257a2631fcSmrg ac_unrecognized_sep=', ';; 9267a2631fcSmrg esac 9277a2631fcSmrg eval enable_$ac_useropt=no ;; 9283e747e6dSmrg 9293e747e6dSmrg -docdir | --docdir | --docdi | --doc | --do) 9303e747e6dSmrg ac_prev=docdir ;; 9313e747e6dSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 9323e747e6dSmrg docdir=$ac_optarg ;; 9333e747e6dSmrg 9343e747e6dSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 9353e747e6dSmrg ac_prev=dvidir ;; 9363e747e6dSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 9373e747e6dSmrg dvidir=$ac_optarg ;; 9383e747e6dSmrg 9393e747e6dSmrg -enable-* | --enable-*) 9407a2631fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 9413e747e6dSmrg # Reject names that are not valid shell variable names. 9427a2631fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9436d8e82c3Smrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 9447a2631fcSmrg ac_useropt_orig=$ac_useropt 9456d8e82c3Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9467a2631fcSmrg case $ac_user_opts in 9477a2631fcSmrg *" 9487a2631fcSmrg"enable_$ac_useropt" 9497a2631fcSmrg"*) ;; 9507a2631fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 9517a2631fcSmrg ac_unrecognized_sep=', ';; 9527a2631fcSmrg esac 9537a2631fcSmrg eval enable_$ac_useropt=\$ac_optarg ;; 9543e747e6dSmrg 9553e747e6dSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9563e747e6dSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9573e747e6dSmrg | --exec | --exe | --ex) 9583e747e6dSmrg ac_prev=exec_prefix ;; 9593e747e6dSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9603e747e6dSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9613e747e6dSmrg | --exec=* | --exe=* | --ex=*) 9623e747e6dSmrg exec_prefix=$ac_optarg ;; 9633e747e6dSmrg 9643e747e6dSmrg -gas | --gas | --ga | --g) 9653e747e6dSmrg # Obsolete; use --with-gas. 9663e747e6dSmrg with_gas=yes ;; 9673e747e6dSmrg 9683e747e6dSmrg -help | --help | --hel | --he | -h) 9693e747e6dSmrg ac_init_help=long ;; 9703e747e6dSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9713e747e6dSmrg ac_init_help=recursive ;; 9723e747e6dSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9733e747e6dSmrg ac_init_help=short ;; 9743e747e6dSmrg 9753e747e6dSmrg -host | --host | --hos | --ho) 9763e747e6dSmrg ac_prev=host_alias ;; 9773e747e6dSmrg -host=* | --host=* | --hos=* | --ho=*) 9783e747e6dSmrg host_alias=$ac_optarg ;; 9793e747e6dSmrg 9803e747e6dSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9813e747e6dSmrg ac_prev=htmldir ;; 9823e747e6dSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9833e747e6dSmrg | --ht=*) 9843e747e6dSmrg htmldir=$ac_optarg ;; 9853e747e6dSmrg 9863e747e6dSmrg -includedir | --includedir | --includedi | --included | --include \ 9873e747e6dSmrg | --includ | --inclu | --incl | --inc) 9883e747e6dSmrg ac_prev=includedir ;; 9893e747e6dSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9903e747e6dSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9913e747e6dSmrg includedir=$ac_optarg ;; 9923e747e6dSmrg 9933e747e6dSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9943e747e6dSmrg ac_prev=infodir ;; 9953e747e6dSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9963e747e6dSmrg infodir=$ac_optarg ;; 9973e747e6dSmrg 9983e747e6dSmrg -libdir | --libdir | --libdi | --libd) 9993e747e6dSmrg ac_prev=libdir ;; 10003e747e6dSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 10013e747e6dSmrg libdir=$ac_optarg ;; 10023e747e6dSmrg 10033e747e6dSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 10043e747e6dSmrg | --libexe | --libex | --libe) 10053e747e6dSmrg ac_prev=libexecdir ;; 10063e747e6dSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 10073e747e6dSmrg | --libexe=* | --libex=* | --libe=*) 10083e747e6dSmrg libexecdir=$ac_optarg ;; 10093e747e6dSmrg 10103e747e6dSmrg -localedir | --localedir | --localedi | --localed | --locale) 10113e747e6dSmrg ac_prev=localedir ;; 10123e747e6dSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 10133e747e6dSmrg localedir=$ac_optarg ;; 10143e747e6dSmrg 10153e747e6dSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 10163e747e6dSmrg | --localstate | --localstat | --localsta | --localst | --locals) 10173e747e6dSmrg ac_prev=localstatedir ;; 10183e747e6dSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 10193e747e6dSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 10203e747e6dSmrg localstatedir=$ac_optarg ;; 10213e747e6dSmrg 10223e747e6dSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 10233e747e6dSmrg ac_prev=mandir ;; 10243e747e6dSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 10253e747e6dSmrg mandir=$ac_optarg ;; 10263e747e6dSmrg 10273e747e6dSmrg -nfp | --nfp | --nf) 10283e747e6dSmrg # Obsolete; use --without-fp. 10293e747e6dSmrg with_fp=no ;; 10303e747e6dSmrg 10313e747e6dSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 10323e747e6dSmrg | --no-cr | --no-c | -n) 10333e747e6dSmrg no_create=yes ;; 10343e747e6dSmrg 10353e747e6dSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 10363e747e6dSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 10373e747e6dSmrg no_recursion=yes ;; 10383e747e6dSmrg 10393e747e6dSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 10403e747e6dSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 10413e747e6dSmrg | --oldin | --oldi | --old | --ol | --o) 10423e747e6dSmrg ac_prev=oldincludedir ;; 10433e747e6dSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 10443e747e6dSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 10453e747e6dSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 10463e747e6dSmrg oldincludedir=$ac_optarg ;; 10473e747e6dSmrg 10483e747e6dSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 10493e747e6dSmrg ac_prev=prefix ;; 10503e747e6dSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10513e747e6dSmrg prefix=$ac_optarg ;; 10523e747e6dSmrg 10533e747e6dSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10543e747e6dSmrg | --program-pre | --program-pr | --program-p) 10553e747e6dSmrg ac_prev=program_prefix ;; 10563e747e6dSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10573e747e6dSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10583e747e6dSmrg program_prefix=$ac_optarg ;; 10593e747e6dSmrg 10603e747e6dSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10613e747e6dSmrg | --program-suf | --program-su | --program-s) 10623e747e6dSmrg ac_prev=program_suffix ;; 10633e747e6dSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10643e747e6dSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10653e747e6dSmrg program_suffix=$ac_optarg ;; 10663e747e6dSmrg 10673e747e6dSmrg -program-transform-name | --program-transform-name \ 10683e747e6dSmrg | --program-transform-nam | --program-transform-na \ 10693e747e6dSmrg | --program-transform-n | --program-transform- \ 10703e747e6dSmrg | --program-transform | --program-transfor \ 10713e747e6dSmrg | --program-transfo | --program-transf \ 10723e747e6dSmrg | --program-trans | --program-tran \ 10733e747e6dSmrg | --progr-tra | --program-tr | --program-t) 10743e747e6dSmrg ac_prev=program_transform_name ;; 10753e747e6dSmrg -program-transform-name=* | --program-transform-name=* \ 10763e747e6dSmrg | --program-transform-nam=* | --program-transform-na=* \ 10773e747e6dSmrg | --program-transform-n=* | --program-transform-=* \ 10783e747e6dSmrg | --program-transform=* | --program-transfor=* \ 10793e747e6dSmrg | --program-transfo=* | --program-transf=* \ 10803e747e6dSmrg | --program-trans=* | --program-tran=* \ 10813e747e6dSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 10823e747e6dSmrg program_transform_name=$ac_optarg ;; 10833e747e6dSmrg 10843e747e6dSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10853e747e6dSmrg ac_prev=pdfdir ;; 10863e747e6dSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10873e747e6dSmrg pdfdir=$ac_optarg ;; 10883e747e6dSmrg 10893e747e6dSmrg -psdir | --psdir | --psdi | --psd | --ps) 10903e747e6dSmrg ac_prev=psdir ;; 10913e747e6dSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10923e747e6dSmrg psdir=$ac_optarg ;; 10933e747e6dSmrg 10943e747e6dSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10953e747e6dSmrg | -silent | --silent | --silen | --sile | --sil) 10963e747e6dSmrg silent=yes ;; 10973e747e6dSmrg 10986d8e82c3Smrg -runstatedir | --runstatedir | --runstatedi | --runstated \ 10996d8e82c3Smrg | --runstate | --runstat | --runsta | --runst | --runs \ 11006d8e82c3Smrg | --run | --ru | --r) 11016d8e82c3Smrg ac_prev=runstatedir ;; 11026d8e82c3Smrg -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 11036d8e82c3Smrg | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 11046d8e82c3Smrg | --run=* | --ru=* | --r=*) 11056d8e82c3Smrg runstatedir=$ac_optarg ;; 11066d8e82c3Smrg 11073e747e6dSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 11083e747e6dSmrg ac_prev=sbindir ;; 11093e747e6dSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 11103e747e6dSmrg | --sbi=* | --sb=*) 11113e747e6dSmrg sbindir=$ac_optarg ;; 11123e747e6dSmrg 11133e747e6dSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 11143e747e6dSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 11153e747e6dSmrg | --sharedst | --shareds | --shared | --share | --shar \ 11163e747e6dSmrg | --sha | --sh) 11173e747e6dSmrg ac_prev=sharedstatedir ;; 11183e747e6dSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 11193e747e6dSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 11203e747e6dSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 11213e747e6dSmrg | --sha=* | --sh=*) 11223e747e6dSmrg sharedstatedir=$ac_optarg ;; 11233e747e6dSmrg 11243e747e6dSmrg -site | --site | --sit) 11253e747e6dSmrg ac_prev=site ;; 11263e747e6dSmrg -site=* | --site=* | --sit=*) 11273e747e6dSmrg site=$ac_optarg ;; 11283e747e6dSmrg 11293e747e6dSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 11303e747e6dSmrg ac_prev=srcdir ;; 11313e747e6dSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 11323e747e6dSmrg srcdir=$ac_optarg ;; 11333e747e6dSmrg 11343e747e6dSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 11353e747e6dSmrg | --syscon | --sysco | --sysc | --sys | --sy) 11363e747e6dSmrg ac_prev=sysconfdir ;; 11373e747e6dSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 11383e747e6dSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 11393e747e6dSmrg sysconfdir=$ac_optarg ;; 11403e747e6dSmrg 11413e747e6dSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 11423e747e6dSmrg ac_prev=target_alias ;; 11433e747e6dSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 11443e747e6dSmrg target_alias=$ac_optarg ;; 11453e747e6dSmrg 11463e747e6dSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 11473e747e6dSmrg verbose=yes ;; 11483e747e6dSmrg 11493e747e6dSmrg -version | --version | --versio | --versi | --vers | -V) 11503e747e6dSmrg ac_init_version=: ;; 11513e747e6dSmrg 11523e747e6dSmrg -with-* | --with-*) 11537a2631fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 11543e747e6dSmrg # Reject names that are not valid shell variable names. 11557a2631fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11566d8e82c3Smrg as_fn_error $? "invalid package name: \`$ac_useropt'" 11577a2631fcSmrg ac_useropt_orig=$ac_useropt 11586d8e82c3Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11597a2631fcSmrg case $ac_user_opts in 11607a2631fcSmrg *" 11617a2631fcSmrg"with_$ac_useropt" 11627a2631fcSmrg"*) ;; 11637a2631fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 11647a2631fcSmrg ac_unrecognized_sep=', ';; 11657a2631fcSmrg esac 11667a2631fcSmrg eval with_$ac_useropt=\$ac_optarg ;; 11673e747e6dSmrg 11683e747e6dSmrg -without-* | --without-*) 11697a2631fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11703e747e6dSmrg # Reject names that are not valid shell variable names. 11717a2631fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11726d8e82c3Smrg as_fn_error $? "invalid package name: \`$ac_useropt'" 11737a2631fcSmrg ac_useropt_orig=$ac_useropt 11746d8e82c3Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11757a2631fcSmrg case $ac_user_opts in 11767a2631fcSmrg *" 11777a2631fcSmrg"with_$ac_useropt" 11787a2631fcSmrg"*) ;; 11797a2631fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11807a2631fcSmrg ac_unrecognized_sep=', ';; 11817a2631fcSmrg esac 11827a2631fcSmrg eval with_$ac_useropt=no ;; 11833e747e6dSmrg 11843e747e6dSmrg --x) 11853e747e6dSmrg # Obsolete; use --with-x. 11863e747e6dSmrg with_x=yes ;; 11873e747e6dSmrg 11883e747e6dSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11893e747e6dSmrg | --x-incl | --x-inc | --x-in | --x-i) 11903e747e6dSmrg ac_prev=x_includes ;; 11913e747e6dSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11923e747e6dSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11933e747e6dSmrg x_includes=$ac_optarg ;; 11943e747e6dSmrg 11953e747e6dSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11963e747e6dSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11973e747e6dSmrg ac_prev=x_libraries ;; 11983e747e6dSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11993e747e6dSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 12003e747e6dSmrg x_libraries=$ac_optarg ;; 12013e747e6dSmrg 12027a2631fcSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 12037a2631fcSmrgTry \`$0 --help' for more information" 12043e747e6dSmrg ;; 12053e747e6dSmrg 12063e747e6dSmrg *=*) 12073e747e6dSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 12083e747e6dSmrg # Reject names that are not valid shell variable names. 12097a2631fcSmrg case $ac_envvar in #( 12107a2631fcSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 12117a2631fcSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 12127a2631fcSmrg esac 12133e747e6dSmrg eval $ac_envvar=\$ac_optarg 12143e747e6dSmrg export $ac_envvar ;; 12153e747e6dSmrg 12163e747e6dSmrg *) 12173e747e6dSmrg # FIXME: should be removed in autoconf 3.0. 12186d8e82c3Smrg printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 12193e747e6dSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 12206d8e82c3Smrg printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 12217a2631fcSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 12223e747e6dSmrg ;; 12233e747e6dSmrg 12243e747e6dSmrg esac 12253e747e6dSmrgdone 12263e747e6dSmrg 12273e747e6dSmrgif test -n "$ac_prev"; then 12283e747e6dSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 12297a2631fcSmrg as_fn_error $? "missing argument to $ac_option" 12307a2631fcSmrgfi 12317a2631fcSmrg 12327a2631fcSmrgif test -n "$ac_unrecognized_opts"; then 12337a2631fcSmrg case $enable_option_checking in 12347a2631fcSmrg no) ;; 12357a2631fcSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 12366d8e82c3Smrg *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 12377a2631fcSmrg esac 12383e747e6dSmrgfi 12393e747e6dSmrg 12407a2631fcSmrg# Check all directory arguments for consistency. 12413e747e6dSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 12423e747e6dSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 12433e747e6dSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 12446d8e82c3Smrg libdir localedir mandir runstatedir 12453e747e6dSmrgdo 12463e747e6dSmrg eval ac_val=\$$ac_var 12477a2631fcSmrg # Remove trailing slashes. 12487a2631fcSmrg case $ac_val in 12497a2631fcSmrg */ ) 12507a2631fcSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 12517a2631fcSmrg eval $ac_var=\$ac_val;; 12527a2631fcSmrg esac 12537a2631fcSmrg # Be sure to have absolute directory names. 12543e747e6dSmrg case $ac_val in 12553e747e6dSmrg [\\/$]* | ?:[\\/]* ) continue;; 12563e747e6dSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 12573e747e6dSmrg esac 12587a2631fcSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 12593e747e6dSmrgdone 12603e747e6dSmrg 12613e747e6dSmrg# There might be people who depend on the old broken behavior: `$host' 12623e747e6dSmrg# used to hold the argument of --host etc. 12633e747e6dSmrg# FIXME: To remove some day. 12643e747e6dSmrgbuild=$build_alias 12653e747e6dSmrghost=$host_alias 12663e747e6dSmrgtarget=$target_alias 12673e747e6dSmrg 12683e747e6dSmrg# FIXME: To remove some day. 12693e747e6dSmrgif test "x$host_alias" != x; then 12703e747e6dSmrg if test "x$build_alias" = x; then 12713e747e6dSmrg cross_compiling=maybe 12723e747e6dSmrg elif test "x$build_alias" != "x$host_alias"; then 12733e747e6dSmrg cross_compiling=yes 12743e747e6dSmrg fi 12753e747e6dSmrgfi 12763e747e6dSmrg 12773e747e6dSmrgac_tool_prefix= 12783e747e6dSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12793e747e6dSmrg 12803e747e6dSmrgtest "$silent" = yes && exec 6>/dev/null 12813e747e6dSmrg 12823e747e6dSmrg 12833e747e6dSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 12843e747e6dSmrgac_ls_di=`ls -di .` && 12853e747e6dSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12867a2631fcSmrg as_fn_error $? "working directory cannot be determined" 12873e747e6dSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12887a2631fcSmrg as_fn_error $? "pwd does not report name of working directory" 12893e747e6dSmrg 12903e747e6dSmrg 12913e747e6dSmrg# Find the source files, if location was not specified. 12923e747e6dSmrgif test -z "$srcdir"; then 12933e747e6dSmrg ac_srcdir_defaulted=yes 12943e747e6dSmrg # Try the directory containing this script, then the parent directory. 12957a2631fcSmrg ac_confdir=`$as_dirname -- "$as_myself" || 12967a2631fcSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12977a2631fcSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 12987a2631fcSmrg X"$as_myself" : 'X\(//\)$' \| \ 12997a2631fcSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 13006d8e82c3Smrgprintf "%s\n" X"$as_myself" | 13013e747e6dSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13023e747e6dSmrg s//\1/ 13033e747e6dSmrg q 13043e747e6dSmrg } 13053e747e6dSmrg /^X\(\/\/\)[^/].*/{ 13063e747e6dSmrg s//\1/ 13073e747e6dSmrg q 13083e747e6dSmrg } 13093e747e6dSmrg /^X\(\/\/\)$/{ 13103e747e6dSmrg s//\1/ 13113e747e6dSmrg q 13123e747e6dSmrg } 13133e747e6dSmrg /^X\(\/\).*/{ 13143e747e6dSmrg s//\1/ 13153e747e6dSmrg q 13163e747e6dSmrg } 13173e747e6dSmrg s/.*/./; q'` 13183e747e6dSmrg srcdir=$ac_confdir 13193e747e6dSmrg if test ! -r "$srcdir/$ac_unique_file"; then 13203e747e6dSmrg srcdir=.. 13213e747e6dSmrg fi 13223e747e6dSmrgelse 13233e747e6dSmrg ac_srcdir_defaulted=no 13243e747e6dSmrgfi 13253e747e6dSmrgif test ! -r "$srcdir/$ac_unique_file"; then 13263e747e6dSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 13277a2631fcSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 13283e747e6dSmrgfi 13293e747e6dSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 13303e747e6dSmrgac_abs_confdir=`( 13317a2631fcSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 13323e747e6dSmrg pwd)` 13333e747e6dSmrg# When building in place, set srcdir=. 13343e747e6dSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 13353e747e6dSmrg srcdir=. 13363e747e6dSmrgfi 13373e747e6dSmrg# Remove unnecessary trailing slashes from srcdir. 13383e747e6dSmrg# Double slashes in file names in object file debugging info 13393e747e6dSmrg# mess up M-x gdb in Emacs. 13403e747e6dSmrgcase $srcdir in 13413e747e6dSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 13423e747e6dSmrgesac 13433e747e6dSmrgfor ac_var in $ac_precious_vars; do 13443e747e6dSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 13453e747e6dSmrg eval ac_env_${ac_var}_value=\$${ac_var} 13463e747e6dSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 13473e747e6dSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 13483e747e6dSmrgdone 13493e747e6dSmrg 13503e747e6dSmrg# 13513e747e6dSmrg# Report the --help message. 13523e747e6dSmrg# 13533e747e6dSmrgif test "$ac_init_help" = "long"; then 13543e747e6dSmrg # Omit some internal or obsolete options to make the list less imposing. 13553e747e6dSmrg # This message is too long to be a string in the A/UX 3.1 sh. 13563e747e6dSmrg cat <<_ACEOF 13576d8e82c3Smrg\`configure' configures twm 1.0.13.1 to adapt to many kinds of systems. 13583e747e6dSmrg 13593e747e6dSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 13603e747e6dSmrg 13613e747e6dSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13623e747e6dSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13633e747e6dSmrg 13643e747e6dSmrgDefaults for the options are specified in brackets. 13653e747e6dSmrg 13663e747e6dSmrgConfiguration: 13673e747e6dSmrg -h, --help display this help and exit 13683e747e6dSmrg --help=short display options specific to this package 13693e747e6dSmrg --help=recursive display the short help of all the included packages 13703e747e6dSmrg -V, --version display version information and exit 13717a2631fcSmrg -q, --quiet, --silent do not print \`checking ...' messages 13723e747e6dSmrg --cache-file=FILE cache test results in FILE [disabled] 13733e747e6dSmrg -C, --config-cache alias for \`--cache-file=config.cache' 13743e747e6dSmrg -n, --no-create do not create output files 13753e747e6dSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13763e747e6dSmrg 13773e747e6dSmrgInstallation directories: 13783e747e6dSmrg --prefix=PREFIX install architecture-independent files in PREFIX 13797a2631fcSmrg [$ac_default_prefix] 13803e747e6dSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13817a2631fcSmrg [PREFIX] 13823e747e6dSmrg 13833e747e6dSmrgBy default, \`make install' will install all the files in 13843e747e6dSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13853e747e6dSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13863e747e6dSmrgfor instance \`--prefix=\$HOME'. 13873e747e6dSmrg 13883e747e6dSmrgFor better control, use the options below. 13893e747e6dSmrg 13903e747e6dSmrgFine tuning of the installation directories: 13917a2631fcSmrg --bindir=DIR user executables [EPREFIX/bin] 13927a2631fcSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 13937a2631fcSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 13947a2631fcSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 13957a2631fcSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 13967a2631fcSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 13976d8e82c3Smrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 13987a2631fcSmrg --libdir=DIR object code libraries [EPREFIX/lib] 13997a2631fcSmrg --includedir=DIR C header files [PREFIX/include] 14007a2631fcSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 14017a2631fcSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 14027a2631fcSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 14037a2631fcSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 14047a2631fcSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 14057a2631fcSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 14067a2631fcSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/twm] 14077a2631fcSmrg --htmldir=DIR html documentation [DOCDIR] 14087a2631fcSmrg --dvidir=DIR dvi documentation [DOCDIR] 14097a2631fcSmrg --pdfdir=DIR pdf documentation [DOCDIR] 14107a2631fcSmrg --psdir=DIR ps documentation [DOCDIR] 14113e747e6dSmrg_ACEOF 14123e747e6dSmrg 14133e747e6dSmrg cat <<\_ACEOF 14143e747e6dSmrg 14153e747e6dSmrgProgram names: 14163e747e6dSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 14173e747e6dSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 14183e747e6dSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 14193e747e6dSmrg 14203e747e6dSmrgSystem types: 14213e747e6dSmrg --build=BUILD configure for building on BUILD [guessed] 14223e747e6dSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 14233e747e6dSmrg_ACEOF 14243e747e6dSmrgfi 14253e747e6dSmrg 14263e747e6dSmrgif test -n "$ac_init_help"; then 14273e747e6dSmrg case $ac_init_help in 14286d8e82c3Smrg short | recursive ) echo "Configuration of twm 1.0.13.1:";; 14293e747e6dSmrg esac 14303e747e6dSmrg cat <<\_ACEOF 14313e747e6dSmrg 14323e747e6dSmrgOptional Features: 14337a2631fcSmrg --disable-option-checking ignore unrecognized --enable/--with options 14343e747e6dSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 14353e747e6dSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1436c2535118Smrg --enable-dependency-tracking 1437c2535118Smrg do not reject slow dependency extractors 1438c2535118Smrg --disable-dependency-tracking 1439c2535118Smrg speeds up one-time build 1440c2535118Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 1441c2535118Smrg --disable-silent-rules verbose build output (undo: "make V=0") 1442c2535118Smrg --disable-selective-werror 1443c2535118Smrg Turn off selective compiler errors. (default: 1444c2535118Smrg enabled) 14457a2631fcSmrg --enable-strict-compilation 14467a2631fcSmrg Enable all warnings from compiler and make them 14477a2631fcSmrg errors (default: disabled) 14483e747e6dSmrg 14493e747e6dSmrgSome influential environment variables: 14503e747e6dSmrg CC C compiler command 14513e747e6dSmrg CFLAGS C compiler flags 14523e747e6dSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14533e747e6dSmrg nonstandard directory <lib dir> 14543e747e6dSmrg LIBS libraries to pass to the linker, e.g. -l<library> 14557a2631fcSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 14563e747e6dSmrg you have headers in a nonstandard directory <include dir> 14577a2631fcSmrg PKG_CONFIG path to pkg-config utility 14584a1eb5dbSmrg PKG_CONFIG_PATH 14594a1eb5dbSmrg directories to add to pkg-config's search path 14604a1eb5dbSmrg PKG_CONFIG_LIBDIR 14614a1eb5dbSmrg path overriding pkg-config's built-in search path 14627a2631fcSmrg YACC The `Yet Another Compiler Compiler' implementation to use. 14637a2631fcSmrg Defaults to the first program found out of: `bison -y', `byacc', 14647a2631fcSmrg `yacc'. 14653e747e6dSmrg YFLAGS The list of arguments that will be passed by default to $YACC. 14663e747e6dSmrg This script will default YFLAGS to the empty string to avoid a 14673e747e6dSmrg default value of `-d' given by some make applications. 14683e747e6dSmrg TWM_CFLAGS C compiler flags for TWM, overriding pkg-config 14693e747e6dSmrg TWM_LIBS linker flags for TWM, overriding pkg-config 1470f66df612Smrg XRANDR_CFLAGS 1471f66df612Smrg C compiler flags for XRANDR, overriding pkg-config 1472f66df612Smrg XRANDR_LIBS linker flags for XRANDR, overriding pkg-config 14733e747e6dSmrg 14743e747e6dSmrgUse these variables to override the choices made by `configure' or to help 14753e747e6dSmrgit to find libraries and programs with nonstandard names/locations. 14763e747e6dSmrg 1477f66df612SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/twm/issues>. 14783e747e6dSmrg_ACEOF 14793e747e6dSmrgac_status=$? 14803e747e6dSmrgfi 14813e747e6dSmrg 14823e747e6dSmrgif test "$ac_init_help" = "recursive"; then 14833e747e6dSmrg # If there are subdirs, report their specific --help. 14843e747e6dSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 14857a2631fcSmrg test -d "$ac_dir" || 14867a2631fcSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 14877a2631fcSmrg continue 14883e747e6dSmrg ac_builddir=. 14893e747e6dSmrg 14903e747e6dSmrgcase "$ac_dir" in 14913e747e6dSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14923e747e6dSmrg*) 14936d8e82c3Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 14943e747e6dSmrg # A ".." for each directory in $ac_dir_suffix. 14956d8e82c3Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14963e747e6dSmrg case $ac_top_builddir_sub in 14973e747e6dSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14983e747e6dSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14993e747e6dSmrg esac ;; 15003e747e6dSmrgesac 15013e747e6dSmrgac_abs_top_builddir=$ac_pwd 15023e747e6dSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 15033e747e6dSmrg# for backward compatibility: 15043e747e6dSmrgac_top_builddir=$ac_top_build_prefix 15053e747e6dSmrg 15063e747e6dSmrgcase $srcdir in 15073e747e6dSmrg .) # We are building in place. 15083e747e6dSmrg ac_srcdir=. 15093e747e6dSmrg ac_top_srcdir=$ac_top_builddir_sub 15103e747e6dSmrg ac_abs_top_srcdir=$ac_pwd ;; 15113e747e6dSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 15123e747e6dSmrg ac_srcdir=$srcdir$ac_dir_suffix; 15133e747e6dSmrg ac_top_srcdir=$srcdir 15143e747e6dSmrg ac_abs_top_srcdir=$srcdir ;; 15153e747e6dSmrg *) # Relative name. 15163e747e6dSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15173e747e6dSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 15183e747e6dSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15193e747e6dSmrgesac 15203e747e6dSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15213e747e6dSmrg 15223e747e6dSmrg cd "$ac_dir" || { ac_status=$?; continue; } 15236d8e82c3Smrg # Check for configure.gnu first; this name is used for a wrapper for 15246d8e82c3Smrg # Metaconfig's "Configure" on case-insensitive file systems. 15253e747e6dSmrg if test -f "$ac_srcdir/configure.gnu"; then 15263e747e6dSmrg echo && 15273e747e6dSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 15283e747e6dSmrg elif test -f "$ac_srcdir/configure"; then 15293e747e6dSmrg echo && 15303e747e6dSmrg $SHELL "$ac_srcdir/configure" --help=recursive 15313e747e6dSmrg else 15326d8e82c3Smrg printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 15333e747e6dSmrg fi || ac_status=$? 15343e747e6dSmrg cd "$ac_pwd" || { ac_status=$?; break; } 15353e747e6dSmrg done 15363e747e6dSmrgfi 15373e747e6dSmrg 15383e747e6dSmrgtest -n "$ac_init_help" && exit $ac_status 15393e747e6dSmrgif $ac_init_version; then 15403e747e6dSmrg cat <<\_ACEOF 15416d8e82c3Smrgtwm configure 1.0.13.1 15426d8e82c3Smrggenerated by GNU Autoconf 2.71 15433e747e6dSmrg 15446d8e82c3SmrgCopyright (C) 2021 Free Software Foundation, Inc. 15453e747e6dSmrgThis configure script is free software; the Free Software Foundation 15463e747e6dSmrggives unlimited permission to copy, distribute and modify it. 15473e747e6dSmrg_ACEOF 15487a2631fcSmrg exit 15497a2631fcSmrgfi 15507a2631fcSmrg 15517a2631fcSmrg## ------------------------ ## 15527a2631fcSmrg## Autoconf initialization. ## 15537a2631fcSmrg## ------------------------ ## 15547a2631fcSmrg 15557a2631fcSmrg# ac_fn_c_try_compile LINENO 15567a2631fcSmrg# -------------------------- 15577a2631fcSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 15587a2631fcSmrgac_fn_c_try_compile () 15597a2631fcSmrg{ 15607a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15616d8e82c3Smrg rm -f conftest.$ac_objext conftest.beam 15627a2631fcSmrg if { { ac_try="$ac_compile" 15637a2631fcSmrgcase "(($ac_try" in 15647a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15657a2631fcSmrg *) ac_try_echo=$ac_try;; 15667a2631fcSmrgesac 15677a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15686d8e82c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5 15697a2631fcSmrg (eval "$ac_compile") 2>conftest.err 15707a2631fcSmrg ac_status=$? 15717a2631fcSmrg if test -s conftest.err; then 15727a2631fcSmrg grep -v '^ *+' conftest.err >conftest.er1 15737a2631fcSmrg cat conftest.er1 >&5 15747a2631fcSmrg mv -f conftest.er1 conftest.err 15757a2631fcSmrg fi 15766d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15777a2631fcSmrg test $ac_status = 0; } && { 15787a2631fcSmrg test -z "$ac_c_werror_flag" || 15797a2631fcSmrg test ! -s conftest.err 15806d8e82c3Smrg } && test -s conftest.$ac_objext 15816d8e82c3Smrgthen : 15827a2631fcSmrg ac_retval=0 15836d8e82c3Smrgelse $as_nop 15846d8e82c3Smrg printf "%s\n" "$as_me: failed program was:" >&5 15857a2631fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 15867a2631fcSmrg 15877a2631fcSmrg ac_retval=1 15887a2631fcSmrgfi 15897a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15907a2631fcSmrg as_fn_set_status $ac_retval 15917a2631fcSmrg 15927a2631fcSmrg} # ac_fn_c_try_compile 15937a2631fcSmrg 15947a2631fcSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 15957a2631fcSmrg# ------------------------------------------------------- 15967a2631fcSmrg# Tests whether HEADER exists and can be compiled using the include files in 15977a2631fcSmrg# INCLUDES, setting the cache variable VAR accordingly. 15987a2631fcSmrgac_fn_c_check_header_compile () 15997a2631fcSmrg{ 16007a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16016d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16026d8e82c3Smrgprintf %s "checking for $2... " >&6; } 16036d8e82c3Smrgif eval test \${$3+y} 16046d8e82c3Smrgthen : 16056d8e82c3Smrg printf %s "(cached) " >&6 16066d8e82c3Smrgelse $as_nop 16077a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16087a2631fcSmrg/* end confdefs.h. */ 16097a2631fcSmrg$4 16107a2631fcSmrg#include <$2> 16117a2631fcSmrg_ACEOF 16126d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 16136d8e82c3Smrgthen : 16147a2631fcSmrg eval "$3=yes" 16156d8e82c3Smrgelse $as_nop 16167a2631fcSmrg eval "$3=no" 16177a2631fcSmrgfi 16186d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16197a2631fcSmrgfi 16207a2631fcSmrgeval ac_res=\$$3 16216d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16226d8e82c3Smrgprintf "%s\n" "$ac_res" >&6; } 16237a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16247a2631fcSmrg 16257a2631fcSmrg} # ac_fn_c_check_header_compile 16267a2631fcSmrg 16276d8e82c3Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 16286d8e82c3Smrg# ------------------------------------------------------------------ 1629ffd25bcaSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 16306d8e82c3Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 16316d8e82c3Smrgac_fn_check_decl () 1632ffd25bcaSmrg{ 1633ffd25bcaSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1634ffd25bcaSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 16356d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 16366d8e82c3Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; } 16376d8e82c3Smrgif eval test \${$3+y} 16386d8e82c3Smrgthen : 16396d8e82c3Smrg printf %s "(cached) " >&6 16406d8e82c3Smrgelse $as_nop 1641ffd25bcaSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 16426d8e82c3Smrg eval ac_save_FLAGS=\$$6 16436d8e82c3Smrg as_fn_append $6 " $5" 1644ffd25bcaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1645ffd25bcaSmrg/* end confdefs.h. */ 1646ffd25bcaSmrg$4 1647ffd25bcaSmrgint 16486d8e82c3Smrgmain (void) 1649ffd25bcaSmrg{ 1650ffd25bcaSmrg#ifndef $as_decl_name 1651ffd25bcaSmrg#ifdef __cplusplus 1652ffd25bcaSmrg (void) $as_decl_use; 1653ffd25bcaSmrg#else 1654ffd25bcaSmrg (void) $as_decl_name; 1655ffd25bcaSmrg#endif 1656ffd25bcaSmrg#endif 1657ffd25bcaSmrg 1658ffd25bcaSmrg ; 1659ffd25bcaSmrg return 0; 1660ffd25bcaSmrg} 1661ffd25bcaSmrg_ACEOF 16626d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 16636d8e82c3Smrgthen : 1664ffd25bcaSmrg eval "$3=yes" 16656d8e82c3Smrgelse $as_nop 1666ffd25bcaSmrg eval "$3=no" 1667ffd25bcaSmrgfi 16686d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16696d8e82c3Smrg eval $6=\$ac_save_FLAGS 16706d8e82c3Smrg 1671ffd25bcaSmrgfi 1672ffd25bcaSmrgeval ac_res=\$$3 16736d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16746d8e82c3Smrgprintf "%s\n" "$ac_res" >&6; } 1675ffd25bcaSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1676ffd25bcaSmrg 16776d8e82c3Smrg} # ac_fn_check_decl 1678ffd25bcaSmrg 16797a2631fcSmrg# ac_fn_c_try_link LINENO 16807a2631fcSmrg# ----------------------- 16817a2631fcSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 16827a2631fcSmrgac_fn_c_try_link () 16837a2631fcSmrg{ 16847a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16856d8e82c3Smrg rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 16867a2631fcSmrg if { { ac_try="$ac_link" 16877a2631fcSmrgcase "(($ac_try" in 16887a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16897a2631fcSmrg *) ac_try_echo=$ac_try;; 16907a2631fcSmrgesac 16917a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16926d8e82c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5 16937a2631fcSmrg (eval "$ac_link") 2>conftest.err 16947a2631fcSmrg ac_status=$? 16957a2631fcSmrg if test -s conftest.err; then 16967a2631fcSmrg grep -v '^ *+' conftest.err >conftest.er1 16977a2631fcSmrg cat conftest.er1 >&5 16987a2631fcSmrg mv -f conftest.er1 conftest.err 16997a2631fcSmrg fi 17006d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17017a2631fcSmrg test $ac_status = 0; } && { 17027a2631fcSmrg test -z "$ac_c_werror_flag" || 17037a2631fcSmrg test ! -s conftest.err 17047a2631fcSmrg } && test -s conftest$ac_exeext && { 17057a2631fcSmrg test "$cross_compiling" = yes || 17069cd34f4bSmrg test -x conftest$ac_exeext 17076d8e82c3Smrg } 17086d8e82c3Smrgthen : 17097a2631fcSmrg ac_retval=0 17106d8e82c3Smrgelse $as_nop 17116d8e82c3Smrg printf "%s\n" "$as_me: failed program was:" >&5 17127a2631fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 17137a2631fcSmrg 17147a2631fcSmrg ac_retval=1 17157a2631fcSmrgfi 17167a2631fcSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 17177a2631fcSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 17187a2631fcSmrg # interfere with the next link command; also delete a directory that is 17197a2631fcSmrg # left behind by Apple's compiler. We do this before executing the actions. 17207a2631fcSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 17217a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17227a2631fcSmrg as_fn_set_status $ac_retval 17237a2631fcSmrg 17247a2631fcSmrg} # ac_fn_c_try_link 17257a2631fcSmrg 17267a2631fcSmrg# ac_fn_c_check_func LINENO FUNC VAR 17277a2631fcSmrg# ---------------------------------- 17287a2631fcSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 17297a2631fcSmrgac_fn_c_check_func () 17307a2631fcSmrg{ 17317a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17326d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17336d8e82c3Smrgprintf %s "checking for $2... " >&6; } 17346d8e82c3Smrgif eval test \${$3+y} 17356d8e82c3Smrgthen : 17366d8e82c3Smrg printf %s "(cached) " >&6 17376d8e82c3Smrgelse $as_nop 17387a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17397a2631fcSmrg/* end confdefs.h. */ 17407a2631fcSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 17417a2631fcSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17427a2631fcSmrg#define $2 innocuous_$2 17437a2631fcSmrg 17447a2631fcSmrg/* System header to define __stub macros and hopefully few prototypes, 17456d8e82c3Smrg which can conflict with char $2 (); below. */ 17467a2631fcSmrg 17476d8e82c3Smrg#include <limits.h> 17487a2631fcSmrg#undef $2 17497a2631fcSmrg 17507a2631fcSmrg/* Override any GCC internal prototype to avoid an error. 17517a2631fcSmrg Use char because int might match the return type of a GCC 17527a2631fcSmrg builtin and then its argument prototype would still apply. */ 17537a2631fcSmrg#ifdef __cplusplus 17547a2631fcSmrgextern "C" 17557a2631fcSmrg#endif 17567a2631fcSmrgchar $2 (); 17577a2631fcSmrg/* The GNU C library defines this for functions which it implements 17587a2631fcSmrg to always fail with ENOSYS. Some functions are actually named 17597a2631fcSmrg something starting with __ and the normal name is an alias. */ 17607a2631fcSmrg#if defined __stub_$2 || defined __stub___$2 17617a2631fcSmrgchoke me 17627a2631fcSmrg#endif 17637a2631fcSmrg 17647a2631fcSmrgint 17656d8e82c3Smrgmain (void) 17667a2631fcSmrg{ 17677a2631fcSmrgreturn $2 (); 17687a2631fcSmrg ; 17697a2631fcSmrg return 0; 17707a2631fcSmrg} 17717a2631fcSmrg_ACEOF 17726d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 17736d8e82c3Smrgthen : 17747a2631fcSmrg eval "$3=yes" 17756d8e82c3Smrgelse $as_nop 17767a2631fcSmrg eval "$3=no" 17773e747e6dSmrgfi 17786d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 17797a2631fcSmrg conftest$ac_exeext conftest.$ac_ext 17807a2631fcSmrgfi 17817a2631fcSmrgeval ac_res=\$$3 17826d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17836d8e82c3Smrgprintf "%s\n" "$ac_res" >&6; } 17847a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17857a2631fcSmrg 17867a2631fcSmrg} # ac_fn_c_check_func 17876d8e82c3Smrgac_configure_args_raw= 17886d8e82c3Smrgfor ac_arg 17896d8e82c3Smrgdo 17906d8e82c3Smrg case $ac_arg in 17916d8e82c3Smrg *\'*) 17926d8e82c3Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 17936d8e82c3Smrg esac 17946d8e82c3Smrg as_fn_append ac_configure_args_raw " '$ac_arg'" 17956d8e82c3Smrgdone 17966d8e82c3Smrg 17976d8e82c3Smrgcase $ac_configure_args_raw in 17986d8e82c3Smrg *$as_nl*) 17996d8e82c3Smrg ac_safe_unquote= ;; 18006d8e82c3Smrg *) 18016d8e82c3Smrg ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 18026d8e82c3Smrg ac_unsafe_a="$ac_unsafe_z#~" 18036d8e82c3Smrg ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 18046d8e82c3Smrg ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 18056d8e82c3Smrgesac 18066d8e82c3Smrg 18073e747e6dSmrgcat >config.log <<_ACEOF 18083e747e6dSmrgThis file contains any messages produced by compilers while 18093e747e6dSmrgrunning configure, to aid debugging if configure makes a mistake. 18103e747e6dSmrg 18116d8e82c3SmrgIt was created by twm $as_me 1.0.13.1, which was 18126d8e82c3Smrggenerated by GNU Autoconf 2.71. Invocation command line was 18133e747e6dSmrg 18146d8e82c3Smrg $ $0$ac_configure_args_raw 18153e747e6dSmrg 18163e747e6dSmrg_ACEOF 18173e747e6dSmrgexec 5>>config.log 18183e747e6dSmrg{ 18193e747e6dSmrgcat <<_ASUNAME 18203e747e6dSmrg## --------- ## 18213e747e6dSmrg## Platform. ## 18223e747e6dSmrg## --------- ## 18233e747e6dSmrg 18243e747e6dSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 18253e747e6dSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 18263e747e6dSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 18273e747e6dSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 18283e747e6dSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 18293e747e6dSmrg 18303e747e6dSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 18313e747e6dSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 18323e747e6dSmrg 18333e747e6dSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 18343e747e6dSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 18353e747e6dSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 18363e747e6dSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 18373e747e6dSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 18383e747e6dSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 18393e747e6dSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 18403e747e6dSmrg 18413e747e6dSmrg_ASUNAME 18423e747e6dSmrg 18433e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18443e747e6dSmrgfor as_dir in $PATH 18453e747e6dSmrgdo 18463e747e6dSmrg IFS=$as_save_IFS 18476d8e82c3Smrg case $as_dir in #((( 18486d8e82c3Smrg '') as_dir=./ ;; 18496d8e82c3Smrg */) ;; 18506d8e82c3Smrg *) as_dir=$as_dir/ ;; 18516d8e82c3Smrg esac 18526d8e82c3Smrg printf "%s\n" "PATH: $as_dir" 18537a2631fcSmrg done 18543e747e6dSmrgIFS=$as_save_IFS 18553e747e6dSmrg 18563e747e6dSmrg} >&5 18573e747e6dSmrg 18583e747e6dSmrgcat >&5 <<_ACEOF 18593e747e6dSmrg 18603e747e6dSmrg 18613e747e6dSmrg## ----------- ## 18623e747e6dSmrg## Core tests. ## 18633e747e6dSmrg## ----------- ## 18643e747e6dSmrg 18653e747e6dSmrg_ACEOF 18663e747e6dSmrg 18673e747e6dSmrg 18683e747e6dSmrg# Keep a trace of the command line. 18693e747e6dSmrg# Strip out --no-create and --no-recursion so they do not pile up. 18703e747e6dSmrg# Strip out --silent because we don't want to record it for future runs. 18713e747e6dSmrg# Also quote any args containing shell meta-characters. 18723e747e6dSmrg# Make two passes to allow for proper duplicate-argument suppression. 18733e747e6dSmrgac_configure_args= 18743e747e6dSmrgac_configure_args0= 18753e747e6dSmrgac_configure_args1= 18763e747e6dSmrgac_must_keep_next=false 18773e747e6dSmrgfor ac_pass in 1 2 18783e747e6dSmrgdo 18793e747e6dSmrg for ac_arg 18803e747e6dSmrg do 18813e747e6dSmrg case $ac_arg in 18823e747e6dSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 18833e747e6dSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18843e747e6dSmrg | -silent | --silent | --silen | --sile | --sil) 18853e747e6dSmrg continue ;; 18863e747e6dSmrg *\'*) 18876d8e82c3Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18883e747e6dSmrg esac 18893e747e6dSmrg case $ac_pass in 18907a2631fcSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 18913e747e6dSmrg 2) 18927a2631fcSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 18933e747e6dSmrg if test $ac_must_keep_next = true; then 18943e747e6dSmrg ac_must_keep_next=false # Got value, back to normal. 18953e747e6dSmrg else 18963e747e6dSmrg case $ac_arg in 18973e747e6dSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 18983e747e6dSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 18993e747e6dSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 19003e747e6dSmrg | -with-* | --with-* | -without-* | --without-* | --x) 19013e747e6dSmrg case "$ac_configure_args0 " in 19023e747e6dSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 19033e747e6dSmrg esac 19043e747e6dSmrg ;; 19053e747e6dSmrg -* ) ac_must_keep_next=true ;; 19063e747e6dSmrg esac 19073e747e6dSmrg fi 19087a2631fcSmrg as_fn_append ac_configure_args " '$ac_arg'" 19093e747e6dSmrg ;; 19103e747e6dSmrg esac 19113e747e6dSmrg done 19123e747e6dSmrgdone 19137a2631fcSmrg{ ac_configure_args0=; unset ac_configure_args0;} 19147a2631fcSmrg{ ac_configure_args1=; unset ac_configure_args1;} 19153e747e6dSmrg 19163e747e6dSmrg# When interrupted or exit'd, cleanup temporary files, and complete 19173e747e6dSmrg# config.log. We remove comments because anyway the quotes in there 19183e747e6dSmrg# would cause problems or look ugly. 19193e747e6dSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 19203e747e6dSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 19213e747e6dSmrgtrap 'exit_status=$? 19226d8e82c3Smrg # Sanitize IFS. 19236d8e82c3Smrg IFS=" "" $as_nl" 19243e747e6dSmrg # Save into config.log some information that might help in debugging. 19253e747e6dSmrg { 19263e747e6dSmrg echo 19273e747e6dSmrg 19286d8e82c3Smrg printf "%s\n" "## ---------------- ## 19293e747e6dSmrg## Cache variables. ## 19307a2631fcSmrg## ---------------- ##" 19313e747e6dSmrg echo 19323e747e6dSmrg # The following way of writing the cache mishandles newlines in values, 19333e747e6dSmrg( 19343e747e6dSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 19353e747e6dSmrg eval ac_val=\$$ac_var 19363e747e6dSmrg case $ac_val in #( 19373e747e6dSmrg *${as_nl}*) 19383e747e6dSmrg case $ac_var in #( 19396d8e82c3Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19406d8e82c3Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19413e747e6dSmrg esac 19423e747e6dSmrg case $ac_var in #( 19433e747e6dSmrg _ | IFS | as_nl) ;; #( 19447a2631fcSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19457a2631fcSmrg *) { eval $ac_var=; unset $ac_var;} ;; 19463e747e6dSmrg esac ;; 19473e747e6dSmrg esac 19483e747e6dSmrg done 19493e747e6dSmrg (set) 2>&1 | 19503e747e6dSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 19513e747e6dSmrg *${as_nl}ac_space=\ *) 19523e747e6dSmrg sed -n \ 19533e747e6dSmrg "s/'\''/'\''\\\\'\'''\''/g; 19543e747e6dSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 19553e747e6dSmrg ;; #( 19563e747e6dSmrg *) 19573e747e6dSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19583e747e6dSmrg ;; 19593e747e6dSmrg esac | 19603e747e6dSmrg sort 19613e747e6dSmrg) 19623e747e6dSmrg echo 19633e747e6dSmrg 19646d8e82c3Smrg printf "%s\n" "## ----------------- ## 19653e747e6dSmrg## Output variables. ## 19667a2631fcSmrg## ----------------- ##" 19673e747e6dSmrg echo 19683e747e6dSmrg for ac_var in $ac_subst_vars 19693e747e6dSmrg do 19703e747e6dSmrg eval ac_val=\$$ac_var 19713e747e6dSmrg case $ac_val in 19726d8e82c3Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19733e747e6dSmrg esac 19746d8e82c3Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 19753e747e6dSmrg done | sort 19763e747e6dSmrg echo 19773e747e6dSmrg 19783e747e6dSmrg if test -n "$ac_subst_files"; then 19796d8e82c3Smrg printf "%s\n" "## ------------------- ## 19803e747e6dSmrg## File substitutions. ## 19817a2631fcSmrg## ------------------- ##" 19823e747e6dSmrg echo 19833e747e6dSmrg for ac_var in $ac_subst_files 19843e747e6dSmrg do 19853e747e6dSmrg eval ac_val=\$$ac_var 19863e747e6dSmrg case $ac_val in 19876d8e82c3Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19883e747e6dSmrg esac 19896d8e82c3Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 19903e747e6dSmrg done | sort 19913e747e6dSmrg echo 19923e747e6dSmrg fi 19933e747e6dSmrg 19943e747e6dSmrg if test -s confdefs.h; then 19956d8e82c3Smrg printf "%s\n" "## ----------- ## 19963e747e6dSmrg## confdefs.h. ## 19977a2631fcSmrg## ----------- ##" 19983e747e6dSmrg echo 19993e747e6dSmrg cat confdefs.h 20003e747e6dSmrg echo 20013e747e6dSmrg fi 20023e747e6dSmrg test "$ac_signal" != 0 && 20036d8e82c3Smrg printf "%s\n" "$as_me: caught signal $ac_signal" 20046d8e82c3Smrg printf "%s\n" "$as_me: exit $exit_status" 20053e747e6dSmrg } >&5 20063e747e6dSmrg rm -f core *.core core.conftest.* && 20073e747e6dSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 20083e747e6dSmrg exit $exit_status 20093e747e6dSmrg' 0 20103e747e6dSmrgfor ac_signal in 1 2 13 15; do 20117a2631fcSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 20123e747e6dSmrgdone 20133e747e6dSmrgac_signal=0 20143e747e6dSmrg 20153e747e6dSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 20163e747e6dSmrgrm -f -r conftest* confdefs.h 20173e747e6dSmrg 20186d8e82c3Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h 20197a2631fcSmrg 20203e747e6dSmrg# Predefined preprocessor variables. 20213e747e6dSmrg 20226d8e82c3Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 20233e747e6dSmrg 20246d8e82c3Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 20253e747e6dSmrg 20266d8e82c3Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 20273e747e6dSmrg 20286d8e82c3Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 20293e747e6dSmrg 20306d8e82c3Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 20313e747e6dSmrg 20326d8e82c3Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 20337a2631fcSmrg 20343e747e6dSmrg 20353e747e6dSmrg# Let the site file select an alternate cache file if it wants to. 20367a2631fcSmrg# Prefer an explicitly selected file to automatically selected ones. 20373e747e6dSmrgif test -n "$CONFIG_SITE"; then 20386d8e82c3Smrg ac_site_files="$CONFIG_SITE" 20393e747e6dSmrgelif test "x$prefix" != xNONE; then 20406d8e82c3Smrg ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 20413e747e6dSmrgelse 20426d8e82c3Smrg ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 20433e747e6dSmrgfi 20446d8e82c3Smrg 20456d8e82c3Smrgfor ac_site_file in $ac_site_files 20463e747e6dSmrgdo 20476d8e82c3Smrg case $ac_site_file in #( 20486d8e82c3Smrg */*) : 20496d8e82c3Smrg ;; #( 20506d8e82c3Smrg *) : 20516d8e82c3Smrg ac_site_file=./$ac_site_file ;; 20526d8e82c3Smrgesac 20536d8e82c3Smrg if test -f "$ac_site_file" && test -r "$ac_site_file"; then 20546d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 20556d8e82c3Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 20563e747e6dSmrg sed 's/^/| /' "$ac_site_file" >&5 20577a2631fcSmrg . "$ac_site_file" \ 20586d8e82c3Smrg || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20596d8e82c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20607a2631fcSmrgas_fn_error $? "failed to load site script $ac_site_file 20617a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 20623e747e6dSmrg fi 20633e747e6dSmrgdone 20643e747e6dSmrg 20653e747e6dSmrgif test -r "$cache_file"; then 20667a2631fcSmrg # Some versions of bash will fail to source /dev/null (special files 20677a2631fcSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 20687a2631fcSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 20696d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 20706d8e82c3Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;} 20713e747e6dSmrg case $cache_file in 20723e747e6dSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 20733e747e6dSmrg *) . "./$cache_file";; 20743e747e6dSmrg esac 20753e747e6dSmrg fi 20763e747e6dSmrgelse 20776d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 20786d8e82c3Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;} 20793e747e6dSmrg >$cache_file 20803e747e6dSmrgfi 20813e747e6dSmrg 20826d8e82c3Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 20836d8e82c3Smrg# Test code for whether the C compiler supports C89 (global declarations) 20846d8e82c3Smrgac_c_conftest_c89_globals=' 20856d8e82c3Smrg/* Does the compiler advertise C89 conformance? 20866d8e82c3Smrg Do not test the value of __STDC__, because some compilers set it to 0 20876d8e82c3Smrg while being otherwise adequately conformant. */ 20886d8e82c3Smrg#if !defined __STDC__ 20896d8e82c3Smrg# error "Compiler does not advertise C89 conformance" 20906d8e82c3Smrg#endif 20916d8e82c3Smrg 20926d8e82c3Smrg#include <stddef.h> 20936d8e82c3Smrg#include <stdarg.h> 20946d8e82c3Smrgstruct stat; 20956d8e82c3Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 20966d8e82c3Smrgstruct buf { int x; }; 20976d8e82c3Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int); 20986d8e82c3Smrgstatic char *e (p, i) 20996d8e82c3Smrg char **p; 21006d8e82c3Smrg int i; 21016d8e82c3Smrg{ 21026d8e82c3Smrg return p[i]; 21036d8e82c3Smrg} 21046d8e82c3Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 21056d8e82c3Smrg{ 21066d8e82c3Smrg char *s; 21076d8e82c3Smrg va_list v; 21086d8e82c3Smrg va_start (v,p); 21096d8e82c3Smrg s = g (p, va_arg (v,int)); 21106d8e82c3Smrg va_end (v); 21116d8e82c3Smrg return s; 21126d8e82c3Smrg} 21136d8e82c3Smrg 21146d8e82c3Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 21156d8e82c3Smrg function prototypes and stuff, but not \xHH hex character constants. 21166d8e82c3Smrg These do not provoke an error unfortunately, instead are silently treated 21176d8e82c3Smrg as an "x". The following induces an error, until -std is added to get 21186d8e82c3Smrg proper ANSI mode. Curiously \x00 != x always comes out true, for an 21196d8e82c3Smrg array size at least. It is necessary to write \x00 == 0 to get something 21206d8e82c3Smrg that is true only with -std. */ 21216d8e82c3Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 21226d8e82c3Smrg 21236d8e82c3Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 21246d8e82c3Smrg inside strings and character constants. */ 21256d8e82c3Smrg#define FOO(x) '\''x'\'' 21266d8e82c3Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 21276d8e82c3Smrg 21286d8e82c3Smrgint test (int i, double x); 21296d8e82c3Smrgstruct s1 {int (*f) (int a);}; 21306d8e82c3Smrgstruct s2 {int (*f) (double a);}; 21316d8e82c3Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 21326d8e82c3Smrg int, int);' 21336d8e82c3Smrg 21346d8e82c3Smrg# Test code for whether the C compiler supports C89 (body of main). 21356d8e82c3Smrgac_c_conftest_c89_main=' 21366d8e82c3Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 21376d8e82c3Smrg' 21386d8e82c3Smrg 21396d8e82c3Smrg# Test code for whether the C compiler supports C99 (global declarations) 21406d8e82c3Smrgac_c_conftest_c99_globals=' 21416d8e82c3Smrg// Does the compiler advertise C99 conformance? 21426d8e82c3Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 21436d8e82c3Smrg# error "Compiler does not advertise C99 conformance" 21446d8e82c3Smrg#endif 21456d8e82c3Smrg 21466d8e82c3Smrg#include <stdbool.h> 21476d8e82c3Smrgextern int puts (const char *); 21486d8e82c3Smrgextern int printf (const char *, ...); 21496d8e82c3Smrgextern int dprintf (int, const char *, ...); 21506d8e82c3Smrgextern void *malloc (size_t); 21516d8e82c3Smrg 21526d8e82c3Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 21536d8e82c3Smrg// dprintf is used instead of fprintf to avoid needing to declare 21546d8e82c3Smrg// FILE and stderr. 21556d8e82c3Smrg#define debug(...) dprintf (2, __VA_ARGS__) 21566d8e82c3Smrg#define showlist(...) puts (#__VA_ARGS__) 21576d8e82c3Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 21586d8e82c3Smrgstatic void 21596d8e82c3Smrgtest_varargs_macros (void) 21606d8e82c3Smrg{ 21616d8e82c3Smrg int x = 1234; 21626d8e82c3Smrg int y = 5678; 21636d8e82c3Smrg debug ("Flag"); 21646d8e82c3Smrg debug ("X = %d\n", x); 21656d8e82c3Smrg showlist (The first, second, and third items.); 21666d8e82c3Smrg report (x>y, "x is %d but y is %d", x, y); 21676d8e82c3Smrg} 21686d8e82c3Smrg 21696d8e82c3Smrg// Check long long types. 21706d8e82c3Smrg#define BIG64 18446744073709551615ull 21716d8e82c3Smrg#define BIG32 4294967295ul 21726d8e82c3Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 21736d8e82c3Smrg#if !BIG_OK 21746d8e82c3Smrg #error "your preprocessor is broken" 21756d8e82c3Smrg#endif 21766d8e82c3Smrg#if BIG_OK 21776d8e82c3Smrg#else 21786d8e82c3Smrg #error "your preprocessor is broken" 21796d8e82c3Smrg#endif 21806d8e82c3Smrgstatic long long int bignum = -9223372036854775807LL; 21816d8e82c3Smrgstatic unsigned long long int ubignum = BIG64; 21826d8e82c3Smrg 21836d8e82c3Smrgstruct incomplete_array 21846d8e82c3Smrg{ 21856d8e82c3Smrg int datasize; 21866d8e82c3Smrg double data[]; 21876d8e82c3Smrg}; 21886d8e82c3Smrg 21896d8e82c3Smrgstruct named_init { 21906d8e82c3Smrg int number; 21916d8e82c3Smrg const wchar_t *name; 21926d8e82c3Smrg double average; 21936d8e82c3Smrg}; 21946d8e82c3Smrg 21956d8e82c3Smrgtypedef const char *ccp; 21966d8e82c3Smrg 21976d8e82c3Smrgstatic inline int 21986d8e82c3Smrgtest_restrict (ccp restrict text) 21996d8e82c3Smrg{ 22006d8e82c3Smrg // See if C++-style comments work. 22016d8e82c3Smrg // Iterate through items via the restricted pointer. 22026d8e82c3Smrg // Also check for declarations in for loops. 22036d8e82c3Smrg for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 22046d8e82c3Smrg continue; 22056d8e82c3Smrg return 0; 22066d8e82c3Smrg} 22076d8e82c3Smrg 22086d8e82c3Smrg// Check varargs and va_copy. 22096d8e82c3Smrgstatic bool 22106d8e82c3Smrgtest_varargs (const char *format, ...) 22116d8e82c3Smrg{ 22126d8e82c3Smrg va_list args; 22136d8e82c3Smrg va_start (args, format); 22146d8e82c3Smrg va_list args_copy; 22156d8e82c3Smrg va_copy (args_copy, args); 22166d8e82c3Smrg 22176d8e82c3Smrg const char *str = ""; 22186d8e82c3Smrg int number = 0; 22196d8e82c3Smrg float fnumber = 0; 22206d8e82c3Smrg 22216d8e82c3Smrg while (*format) 22226d8e82c3Smrg { 22236d8e82c3Smrg switch (*format++) 22246d8e82c3Smrg { 22256d8e82c3Smrg case '\''s'\'': // string 22266d8e82c3Smrg str = va_arg (args_copy, const char *); 22276d8e82c3Smrg break; 22286d8e82c3Smrg case '\''d'\'': // int 22296d8e82c3Smrg number = va_arg (args_copy, int); 22306d8e82c3Smrg break; 22316d8e82c3Smrg case '\''f'\'': // float 22326d8e82c3Smrg fnumber = va_arg (args_copy, double); 22336d8e82c3Smrg break; 22346d8e82c3Smrg default: 22356d8e82c3Smrg break; 22366d8e82c3Smrg } 22376d8e82c3Smrg } 22386d8e82c3Smrg va_end (args_copy); 22396d8e82c3Smrg va_end (args); 22406d8e82c3Smrg 22416d8e82c3Smrg return *str && number && fnumber; 22426d8e82c3Smrg} 22436d8e82c3Smrg' 22446d8e82c3Smrg 22456d8e82c3Smrg# Test code for whether the C compiler supports C99 (body of main). 22466d8e82c3Smrgac_c_conftest_c99_main=' 22476d8e82c3Smrg // Check bool. 22486d8e82c3Smrg _Bool success = false; 22496d8e82c3Smrg success |= (argc != 0); 22506d8e82c3Smrg 22516d8e82c3Smrg // Check restrict. 22526d8e82c3Smrg if (test_restrict ("String literal") == 0) 22536d8e82c3Smrg success = true; 22546d8e82c3Smrg char *restrict newvar = "Another string"; 22556d8e82c3Smrg 22566d8e82c3Smrg // Check varargs. 22576d8e82c3Smrg success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 22586d8e82c3Smrg test_varargs_macros (); 22596d8e82c3Smrg 22606d8e82c3Smrg // Check flexible array members. 22616d8e82c3Smrg struct incomplete_array *ia = 22626d8e82c3Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 22636d8e82c3Smrg ia->datasize = 10; 22646d8e82c3Smrg for (int i = 0; i < ia->datasize; ++i) 22656d8e82c3Smrg ia->data[i] = i * 1.234; 22666d8e82c3Smrg 22676d8e82c3Smrg // Check named initializers. 22686d8e82c3Smrg struct named_init ni = { 22696d8e82c3Smrg .number = 34, 22706d8e82c3Smrg .name = L"Test wide string", 22716d8e82c3Smrg .average = 543.34343, 22726d8e82c3Smrg }; 22736d8e82c3Smrg 22746d8e82c3Smrg ni.number = 58; 22756d8e82c3Smrg 22766d8e82c3Smrg int dynamic_array[ni.number]; 22776d8e82c3Smrg dynamic_array[0] = argv[0][0]; 22786d8e82c3Smrg dynamic_array[ni.number - 1] = 543; 22796d8e82c3Smrg 22806d8e82c3Smrg // work around unused variable warnings 22816d8e82c3Smrg ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 22826d8e82c3Smrg || dynamic_array[ni.number - 1] != 543); 22836d8e82c3Smrg' 22846d8e82c3Smrg 22856d8e82c3Smrg# Test code for whether the C compiler supports C11 (global declarations) 22866d8e82c3Smrgac_c_conftest_c11_globals=' 22876d8e82c3Smrg// Does the compiler advertise C11 conformance? 22886d8e82c3Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 22896d8e82c3Smrg# error "Compiler does not advertise C11 conformance" 22906d8e82c3Smrg#endif 22916d8e82c3Smrg 22926d8e82c3Smrg// Check _Alignas. 22936d8e82c3Smrgchar _Alignas (double) aligned_as_double; 22946d8e82c3Smrgchar _Alignas (0) no_special_alignment; 22956d8e82c3Smrgextern char aligned_as_int; 22966d8e82c3Smrgchar _Alignas (0) _Alignas (int) aligned_as_int; 22976d8e82c3Smrg 22986d8e82c3Smrg// Check _Alignof. 22996d8e82c3Smrgenum 23006d8e82c3Smrg{ 23016d8e82c3Smrg int_alignment = _Alignof (int), 23026d8e82c3Smrg int_array_alignment = _Alignof (int[100]), 23036d8e82c3Smrg char_alignment = _Alignof (char) 23046d8e82c3Smrg}; 23056d8e82c3Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 23066d8e82c3Smrg 23076d8e82c3Smrg// Check _Noreturn. 23086d8e82c3Smrgint _Noreturn does_not_return (void) { for (;;) continue; } 23096d8e82c3Smrg 23106d8e82c3Smrg// Check _Static_assert. 23116d8e82c3Smrgstruct test_static_assert 23126d8e82c3Smrg{ 23136d8e82c3Smrg int x; 23146d8e82c3Smrg _Static_assert (sizeof (int) <= sizeof (long int), 23156d8e82c3Smrg "_Static_assert does not work in struct"); 23166d8e82c3Smrg long int y; 23176d8e82c3Smrg}; 23186d8e82c3Smrg 23196d8e82c3Smrg// Check UTF-8 literals. 23206d8e82c3Smrg#define u8 syntax error! 23216d8e82c3Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string"; 23226d8e82c3Smrg 23236d8e82c3Smrg// Check duplicate typedefs. 23246d8e82c3Smrgtypedef long *long_ptr; 23256d8e82c3Smrgtypedef long int *long_ptr; 23266d8e82c3Smrgtypedef long_ptr long_ptr; 23276d8e82c3Smrg 23286d8e82c3Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 23296d8e82c3Smrgstruct anonymous 23306d8e82c3Smrg{ 23316d8e82c3Smrg union { 23326d8e82c3Smrg struct { int i; int j; }; 23336d8e82c3Smrg struct { int k; long int l; } w; 23346d8e82c3Smrg }; 23356d8e82c3Smrg int m; 23366d8e82c3Smrg} v1; 23376d8e82c3Smrg' 23386d8e82c3Smrg 23396d8e82c3Smrg# Test code for whether the C compiler supports C11 (body of main). 23406d8e82c3Smrgac_c_conftest_c11_main=' 23416d8e82c3Smrg _Static_assert ((offsetof (struct anonymous, i) 23426d8e82c3Smrg == offsetof (struct anonymous, w.k)), 23436d8e82c3Smrg "Anonymous union alignment botch"); 23446d8e82c3Smrg v1.i = 2; 23456d8e82c3Smrg v1.w.k = 5; 23466d8e82c3Smrg ok |= v1.i != 5; 23476d8e82c3Smrg' 23486d8e82c3Smrg 23496d8e82c3Smrg# Test code for whether the C compiler supports C11 (complete). 23506d8e82c3Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 23516d8e82c3Smrg${ac_c_conftest_c99_globals} 23526d8e82c3Smrg${ac_c_conftest_c11_globals} 23536d8e82c3Smrg 23546d8e82c3Smrgint 23556d8e82c3Smrgmain (int argc, char **argv) 23566d8e82c3Smrg{ 23576d8e82c3Smrg int ok = 0; 23586d8e82c3Smrg ${ac_c_conftest_c89_main} 23596d8e82c3Smrg ${ac_c_conftest_c99_main} 23606d8e82c3Smrg ${ac_c_conftest_c11_main} 23616d8e82c3Smrg return ok; 23626d8e82c3Smrg} 23636d8e82c3Smrg" 23646d8e82c3Smrg 23656d8e82c3Smrg# Test code for whether the C compiler supports C99 (complete). 23666d8e82c3Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 23676d8e82c3Smrg${ac_c_conftest_c99_globals} 23686d8e82c3Smrg 23696d8e82c3Smrgint 23706d8e82c3Smrgmain (int argc, char **argv) 23716d8e82c3Smrg{ 23726d8e82c3Smrg int ok = 0; 23736d8e82c3Smrg ${ac_c_conftest_c89_main} 23746d8e82c3Smrg ${ac_c_conftest_c99_main} 23756d8e82c3Smrg return ok; 23766d8e82c3Smrg} 23776d8e82c3Smrg" 23786d8e82c3Smrg 23796d8e82c3Smrg# Test code for whether the C compiler supports C89 (complete). 23806d8e82c3Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 23816d8e82c3Smrg 23826d8e82c3Smrgint 23836d8e82c3Smrgmain (int argc, char **argv) 23846d8e82c3Smrg{ 23856d8e82c3Smrg int ok = 0; 23866d8e82c3Smrg ${ac_c_conftest_c89_main} 23876d8e82c3Smrg return ok; 23886d8e82c3Smrg} 23896d8e82c3Smrg" 23906d8e82c3Smrg 23916d8e82c3Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 23926d8e82c3Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 23936d8e82c3Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 23946d8e82c3Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 23956d8e82c3Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 23966d8e82c3Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 23976d8e82c3Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 23986d8e82c3Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 23996d8e82c3Smrgas_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 24006d8e82c3Smrgas_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 24016d8e82c3Smrg 24026d8e82c3Smrg# Auxiliary files required by this configure script. 24036d8e82c3Smrgac_aux_files="config.guess config.sub missing install-sh compile" 24046d8e82c3Smrg 24056d8e82c3Smrg# Locations in which to look for auxiliary files. 24066d8e82c3Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 24076d8e82c3Smrg 24086d8e82c3Smrg# Search for a directory containing all of the required auxiliary files, 24096d8e82c3Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 24106d8e82c3Smrg# If we don't find one directory that contains all the files we need, 24116d8e82c3Smrg# we report the set of missing files from the *first* directory in 24126d8e82c3Smrg# $ac_aux_dir_candidates and give up. 24136d8e82c3Smrgac_missing_aux_files="" 24146d8e82c3Smrgac_first_candidate=: 24156d8e82c3Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 24166d8e82c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24176d8e82c3Smrgas_found=false 24186d8e82c3Smrgfor as_dir in $ac_aux_dir_candidates 24196d8e82c3Smrgdo 24206d8e82c3Smrg IFS=$as_save_IFS 24216d8e82c3Smrg case $as_dir in #((( 24226d8e82c3Smrg '') as_dir=./ ;; 24236d8e82c3Smrg */) ;; 24246d8e82c3Smrg *) as_dir=$as_dir/ ;; 24256d8e82c3Smrg esac 24266d8e82c3Smrg as_found=: 24276d8e82c3Smrg 24286d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 24296d8e82c3Smrg ac_aux_dir_found=yes 24306d8e82c3Smrg ac_install_sh= 24316d8e82c3Smrg for ac_aux in $ac_aux_files 24326d8e82c3Smrg do 24336d8e82c3Smrg # As a special case, if "install-sh" is required, that requirement 24346d8e82c3Smrg # can be satisfied by any of "install-sh", "install.sh", or "shtool", 24356d8e82c3Smrg # and $ac_install_sh is set appropriately for whichever one is found. 24366d8e82c3Smrg if test x"$ac_aux" = x"install-sh" 24376d8e82c3Smrg then 24386d8e82c3Smrg if test -f "${as_dir}install-sh"; then 24396d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 24406d8e82c3Smrg ac_install_sh="${as_dir}install-sh -c" 24416d8e82c3Smrg elif test -f "${as_dir}install.sh"; then 24426d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 24436d8e82c3Smrg ac_install_sh="${as_dir}install.sh -c" 24446d8e82c3Smrg elif test -f "${as_dir}shtool"; then 24456d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 24466d8e82c3Smrg ac_install_sh="${as_dir}shtool install -c" 24476d8e82c3Smrg else 24486d8e82c3Smrg ac_aux_dir_found=no 24496d8e82c3Smrg if $ac_first_candidate; then 24506d8e82c3Smrg ac_missing_aux_files="${ac_missing_aux_files} install-sh" 24516d8e82c3Smrg else 24526d8e82c3Smrg break 24536d8e82c3Smrg fi 24546d8e82c3Smrg fi 24556d8e82c3Smrg else 24566d8e82c3Smrg if test -f "${as_dir}${ac_aux}"; then 24576d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 24586d8e82c3Smrg else 24596d8e82c3Smrg ac_aux_dir_found=no 24606d8e82c3Smrg if $ac_first_candidate; then 24616d8e82c3Smrg ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 24626d8e82c3Smrg else 24636d8e82c3Smrg break 24646d8e82c3Smrg fi 24656d8e82c3Smrg fi 24666d8e82c3Smrg fi 24676d8e82c3Smrg done 24686d8e82c3Smrg if test "$ac_aux_dir_found" = yes; then 24696d8e82c3Smrg ac_aux_dir="$as_dir" 24706d8e82c3Smrg break 24716d8e82c3Smrg fi 24726d8e82c3Smrg ac_first_candidate=false 24736d8e82c3Smrg 24746d8e82c3Smrg as_found=false 24756d8e82c3Smrgdone 24766d8e82c3SmrgIFS=$as_save_IFS 24776d8e82c3Smrgif $as_found 24786d8e82c3Smrgthen : 24796d8e82c3Smrg 24806d8e82c3Smrgelse $as_nop 24816d8e82c3Smrg as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 24826d8e82c3Smrgfi 24832d96a817Smrg 24849cd34f4bSmrg 24859cd34f4bSmrg# These three variables are undocumented and unsupported, 24869cd34f4bSmrg# and are intended to be withdrawn in a future Autoconf release. 24879cd34f4bSmrg# They can cause serious problems if a builder's source tree is in a directory 24889cd34f4bSmrg# whose full name contains unusual characters. 24896d8e82c3Smrgif test -f "${ac_aux_dir}config.guess"; then 24906d8e82c3Smrg ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 24916d8e82c3Smrgfi 24926d8e82c3Smrgif test -f "${ac_aux_dir}config.sub"; then 24936d8e82c3Smrg ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 24946d8e82c3Smrgfi 24956d8e82c3Smrgif test -f "$ac_aux_dir/configure"; then 24966d8e82c3Smrg ac_configure="$SHELL ${ac_aux_dir}configure" 24976d8e82c3Smrgfi 24986d8e82c3Smrg 24996d8e82c3Smrg# Check that the precious variables saved in the cache have kept the same 25006d8e82c3Smrg# value. 25016d8e82c3Smrgac_cache_corrupted=false 25026d8e82c3Smrgfor ac_var in $ac_precious_vars; do 25036d8e82c3Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 25046d8e82c3Smrg eval ac_new_set=\$ac_env_${ac_var}_set 25056d8e82c3Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 25066d8e82c3Smrg eval ac_new_val=\$ac_env_${ac_var}_value 25076d8e82c3Smrg case $ac_old_set,$ac_new_set in 25086d8e82c3Smrg set,) 25096d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 25106d8e82c3Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 25116d8e82c3Smrg ac_cache_corrupted=: ;; 25126d8e82c3Smrg ,set) 25136d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 25146d8e82c3Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 25156d8e82c3Smrg ac_cache_corrupted=: ;; 25166d8e82c3Smrg ,);; 25176d8e82c3Smrg *) 25186d8e82c3Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 25196d8e82c3Smrg # differences in whitespace do not lead to failure. 25206d8e82c3Smrg ac_old_val_w=`echo x $ac_old_val` 25216d8e82c3Smrg ac_new_val_w=`echo x $ac_new_val` 25226d8e82c3Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 25236d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 25246d8e82c3Smrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 25256d8e82c3Smrg ac_cache_corrupted=: 25266d8e82c3Smrg else 25276d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 25286d8e82c3Smrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 25296d8e82c3Smrg eval $ac_var=\$ac_old_val 25306d8e82c3Smrg fi 25316d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 25326d8e82c3Smrgprintf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 25336d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 25346d8e82c3Smrgprintf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 25356d8e82c3Smrg fi;; 25366d8e82c3Smrg esac 25376d8e82c3Smrg # Pass precious variables to config.status. 25386d8e82c3Smrg if test "$ac_new_set" = set; then 25396d8e82c3Smrg case $ac_new_val in 25406d8e82c3Smrg *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 25416d8e82c3Smrg *) ac_arg=$ac_var=$ac_new_val ;; 25426d8e82c3Smrg esac 25436d8e82c3Smrg case " $ac_configure_args " in 25446d8e82c3Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 25456d8e82c3Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 25466d8e82c3Smrg esac 25476d8e82c3Smrg fi 25486d8e82c3Smrgdone 25496d8e82c3Smrgif $ac_cache_corrupted; then 25506d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25516d8e82c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 25526d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 25536d8e82c3Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 25546d8e82c3Smrg as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 25556d8e82c3Smrg and start over" "$LINENO" 5 25566d8e82c3Smrgfi 25576d8e82c3Smrg## -------------------- ## 25586d8e82c3Smrg## Main body of script. ## 25596d8e82c3Smrg## -------------------- ## 25606d8e82c3Smrg 25616d8e82c3Smrgac_ext=c 25626d8e82c3Smrgac_cpp='$CPP $CPPFLAGS' 25636d8e82c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25646d8e82c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25656d8e82c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 25666d8e82c3Smrg 25676d8e82c3Smrg 25686d8e82c3Smrg 25696d8e82c3Smrgac_config_headers="$ac_config_headers config.h" 25706d8e82c3Smrg 25716d8e82c3Smrg 25726d8e82c3Smrg 25736d8e82c3Smrg 25746d8e82c3Smrg 25756d8e82c3Smrg 25766d8e82c3Smrg 25776d8e82c3Smrg 25786d8e82c3Smrg 25796d8e82c3Smrg 25809cd34f4bSmrg 25819cd34f4bSmrg 25829cd34f4bSmrg# Expand $ac_aux_dir to an absolute path. 25839cd34f4bSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 2584c2535118Smrg 2585ffd25bcaSmrgac_ext=c 2586ffd25bcaSmrgac_cpp='$CPP $CPPFLAGS' 2587ffd25bcaSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2588ffd25bcaSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2589ffd25bcaSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2590ffd25bcaSmrgif test -n "$ac_tool_prefix"; then 2591ffd25bcaSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2592ffd25bcaSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 25936d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25946d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 25956d8e82c3Smrgif test ${ac_cv_prog_CC+y} 25966d8e82c3Smrgthen : 25976d8e82c3Smrg printf %s "(cached) " >&6 25986d8e82c3Smrgelse $as_nop 2599ffd25bcaSmrg if test -n "$CC"; then 2600ffd25bcaSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2601ffd25bcaSmrgelse 2602ffd25bcaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26033e747e6dSmrgfor as_dir in $PATH 26043e747e6dSmrgdo 26053e747e6dSmrg IFS=$as_save_IFS 26066d8e82c3Smrg case $as_dir in #((( 26076d8e82c3Smrg '') as_dir=./ ;; 26086d8e82c3Smrg */) ;; 26096d8e82c3Smrg *) as_dir=$as_dir/ ;; 26106d8e82c3Smrg esac 2611ffd25bcaSmrg for ac_exec_ext in '' $ac_executable_extensions; do 26126d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2613ffd25bcaSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 26146d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2615ffd25bcaSmrg break 2 2616ffd25bcaSmrg fi 2617ffd25bcaSmrgdone 26187a2631fcSmrg done 26193e747e6dSmrgIFS=$as_save_IFS 26203e747e6dSmrg 26213e747e6dSmrgfi 26223e747e6dSmrgfi 2623ffd25bcaSmrgCC=$ac_cv_prog_CC 2624ffd25bcaSmrgif test -n "$CC"; then 26256d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 26266d8e82c3Smrgprintf "%s\n" "$CC" >&6; } 26273e747e6dSmrgelse 26286d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26296d8e82c3Smrgprintf "%s\n" "no" >&6; } 26303e747e6dSmrgfi 26313e747e6dSmrg 26327a2631fcSmrg 26337a2631fcSmrgfi 2634ffd25bcaSmrgif test -z "$ac_cv_prog_CC"; then 2635ffd25bcaSmrg ac_ct_CC=$CC 2636ffd25bcaSmrg # Extract the first word of "gcc", so it can be a program name with args. 2637ffd25bcaSmrgset dummy gcc; ac_word=$2 26386d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26396d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 26406d8e82c3Smrgif test ${ac_cv_prog_ac_ct_CC+y} 26416d8e82c3Smrgthen : 26426d8e82c3Smrg printf %s "(cached) " >&6 26436d8e82c3Smrgelse $as_nop 2644ffd25bcaSmrg if test -n "$ac_ct_CC"; then 2645ffd25bcaSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 26467a2631fcSmrgelse 26477a2631fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26487a2631fcSmrgfor as_dir in $PATH 26497a2631fcSmrgdo 26507a2631fcSmrg IFS=$as_save_IFS 26516d8e82c3Smrg case $as_dir in #((( 26526d8e82c3Smrg '') as_dir=./ ;; 26536d8e82c3Smrg */) ;; 26546d8e82c3Smrg *) as_dir=$as_dir/ ;; 26556d8e82c3Smrg esac 26567a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 26576d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2658ffd25bcaSmrg ac_cv_prog_ac_ct_CC="gcc" 26596d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26607a2631fcSmrg break 2 26617a2631fcSmrg fi 26627a2631fcSmrgdone 26637a2631fcSmrg done 26647a2631fcSmrgIFS=$as_save_IFS 26657a2631fcSmrg 26667a2631fcSmrgfi 26677a2631fcSmrgfi 2668ffd25bcaSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2669ffd25bcaSmrgif test -n "$ac_ct_CC"; then 26706d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 26716d8e82c3Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 26727a2631fcSmrgelse 26736d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26746d8e82c3Smrgprintf "%s\n" "no" >&6; } 26757a2631fcSmrgfi 26767a2631fcSmrg 2677ffd25bcaSmrg if test "x$ac_ct_CC" = x; then 2678ffd25bcaSmrg CC="" 2679ffd25bcaSmrg else 2680ffd25bcaSmrg case $cross_compiling:$ac_tool_warned in 2681ffd25bcaSmrgyes:) 26826d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26836d8e82c3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2684ffd25bcaSmrgac_tool_warned=yes ;; 2685ffd25bcaSmrgesac 2686ffd25bcaSmrg CC=$ac_ct_CC 2687ffd25bcaSmrg fi 2688ffd25bcaSmrgelse 2689ffd25bcaSmrg CC="$ac_cv_prog_CC" 26907a2631fcSmrgfi 2691ffd25bcaSmrg 2692ffd25bcaSmrgif test -z "$CC"; then 2693ffd25bcaSmrg if test -n "$ac_tool_prefix"; then 2694ffd25bcaSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2695ffd25bcaSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 26966d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26976d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 26986d8e82c3Smrgif test ${ac_cv_prog_CC+y} 26996d8e82c3Smrgthen : 27006d8e82c3Smrg printf %s "(cached) " >&6 27016d8e82c3Smrgelse $as_nop 2702ffd25bcaSmrg if test -n "$CC"; then 2703ffd25bcaSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 27047a2631fcSmrgelse 27057a2631fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27067a2631fcSmrgfor as_dir in $PATH 27077a2631fcSmrgdo 27087a2631fcSmrg IFS=$as_save_IFS 27096d8e82c3Smrg case $as_dir in #((( 27106d8e82c3Smrg '') as_dir=./ ;; 27116d8e82c3Smrg */) ;; 27126d8e82c3Smrg *) as_dir=$as_dir/ ;; 27136d8e82c3Smrg esac 27147a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 27156d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2716ffd25bcaSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 27176d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27187a2631fcSmrg break 2 27197a2631fcSmrg fi 27207a2631fcSmrgdone 27217a2631fcSmrg done 27227a2631fcSmrgIFS=$as_save_IFS 27237a2631fcSmrg 27247a2631fcSmrgfi 27257a2631fcSmrgfi 2726ffd25bcaSmrgCC=$ac_cv_prog_CC 2727ffd25bcaSmrgif test -n "$CC"; then 27286d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 27296d8e82c3Smrgprintf "%s\n" "$CC" >&6; } 27307a2631fcSmrgelse 27316d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27326d8e82c3Smrgprintf "%s\n" "no" >&6; } 27337a2631fcSmrgfi 27347a2631fcSmrg 27357a2631fcSmrg 2736ffd25bcaSmrg fi 27373e747e6dSmrgfi 2738ffd25bcaSmrgif test -z "$CC"; then 2739ffd25bcaSmrg # Extract the first word of "cc", so it can be a program name with args. 2740ffd25bcaSmrgset dummy cc; ac_word=$2 27416d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27426d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 27436d8e82c3Smrgif test ${ac_cv_prog_CC+y} 27446d8e82c3Smrgthen : 27456d8e82c3Smrg printf %s "(cached) " >&6 27466d8e82c3Smrgelse $as_nop 2747ffd25bcaSmrg if test -n "$CC"; then 2748ffd25bcaSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2749ffd25bcaSmrgelse 2750ffd25bcaSmrg ac_prog_rejected=no 2751ffd25bcaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2752ffd25bcaSmrgfor as_dir in $PATH 27533e747e6dSmrgdo 27543e747e6dSmrg IFS=$as_save_IFS 27556d8e82c3Smrg case $as_dir in #((( 27566d8e82c3Smrg '') as_dir=./ ;; 27576d8e82c3Smrg */) ;; 27586d8e82c3Smrg *) as_dir=$as_dir/ ;; 27596d8e82c3Smrg esac 2760ffd25bcaSmrg for ac_exec_ext in '' $ac_executable_extensions; do 27616d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27626d8e82c3Smrg if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2763ffd25bcaSmrg ac_prog_rejected=yes 2764ffd25bcaSmrg continue 2765ffd25bcaSmrg fi 2766ffd25bcaSmrg ac_cv_prog_CC="cc" 27676d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2768ffd25bcaSmrg break 2 2769ffd25bcaSmrg fi 2770ffd25bcaSmrgdone 27717a2631fcSmrg done 27723e747e6dSmrgIFS=$as_save_IFS 27733e747e6dSmrg 2774ffd25bcaSmrgif test $ac_prog_rejected = yes; then 2775ffd25bcaSmrg # We found a bogon in the path, so make sure we never use it. 2776ffd25bcaSmrg set dummy $ac_cv_prog_CC 2777ffd25bcaSmrg shift 2778ffd25bcaSmrg if test $# != 0; then 2779ffd25bcaSmrg # We chose a different compiler from the bogus one. 2780ffd25bcaSmrg # However, it has the same basename, so the bogon will be chosen 2781ffd25bcaSmrg # first if we set CC to just the basename; use the full file name. 2782ffd25bcaSmrg shift 27836d8e82c3Smrg ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 27843e747e6dSmrg fi 27853e747e6dSmrgfi 2786ffd25bcaSmrgfi 2787ffd25bcaSmrgfi 2788ffd25bcaSmrgCC=$ac_cv_prog_CC 2789ffd25bcaSmrgif test -n "$CC"; then 27906d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 27916d8e82c3Smrgprintf "%s\n" "$CC" >&6; } 27926d8e82c3Smrgelse 27936d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27946d8e82c3Smrgprintf "%s\n" "no" >&6; } 27956d8e82c3Smrgfi 27966d8e82c3Smrg 27976d8e82c3Smrg 27986d8e82c3Smrgfi 27996d8e82c3Smrgif test -z "$CC"; then 28006d8e82c3Smrg if test -n "$ac_tool_prefix"; then 28016d8e82c3Smrg for ac_prog in cl.exe 28026d8e82c3Smrg do 28036d8e82c3Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28046d8e82c3Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 28056d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28066d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 28076d8e82c3Smrgif test ${ac_cv_prog_CC+y} 28086d8e82c3Smrgthen : 28096d8e82c3Smrg printf %s "(cached) " >&6 28106d8e82c3Smrgelse $as_nop 28116d8e82c3Smrg if test -n "$CC"; then 28126d8e82c3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 28136d8e82c3Smrgelse 28146d8e82c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28156d8e82c3Smrgfor as_dir in $PATH 28166d8e82c3Smrgdo 28176d8e82c3Smrg IFS=$as_save_IFS 28186d8e82c3Smrg case $as_dir in #((( 28196d8e82c3Smrg '') as_dir=./ ;; 28206d8e82c3Smrg */) ;; 28216d8e82c3Smrg *) as_dir=$as_dir/ ;; 28226d8e82c3Smrg esac 28236d8e82c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 28246d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28256d8e82c3Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28266d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28276d8e82c3Smrg break 2 28286d8e82c3Smrg fi 28296d8e82c3Smrgdone 28306d8e82c3Smrg done 28316d8e82c3SmrgIFS=$as_save_IFS 28326d8e82c3Smrg 28336d8e82c3Smrgfi 28346d8e82c3Smrgfi 28356d8e82c3SmrgCC=$ac_cv_prog_CC 28366d8e82c3Smrgif test -n "$CC"; then 28376d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28386d8e82c3Smrgprintf "%s\n" "$CC" >&6; } 28396d8e82c3Smrgelse 28406d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28416d8e82c3Smrgprintf "%s\n" "no" >&6; } 28426d8e82c3Smrgfi 28436d8e82c3Smrg 28446d8e82c3Smrg 28456d8e82c3Smrg test -n "$CC" && break 28466d8e82c3Smrg done 28476d8e82c3Smrgfi 28486d8e82c3Smrgif test -z "$CC"; then 28496d8e82c3Smrg ac_ct_CC=$CC 28506d8e82c3Smrg for ac_prog in cl.exe 28516d8e82c3Smrgdo 28526d8e82c3Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 28536d8e82c3Smrgset dummy $ac_prog; ac_word=$2 28546d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28556d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 28566d8e82c3Smrgif test ${ac_cv_prog_ac_ct_CC+y} 28576d8e82c3Smrgthen : 28586d8e82c3Smrg printf %s "(cached) " >&6 28596d8e82c3Smrgelse $as_nop 28606d8e82c3Smrg if test -n "$ac_ct_CC"; then 28616d8e82c3Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28626d8e82c3Smrgelse 28636d8e82c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28646d8e82c3Smrgfor as_dir in $PATH 28656d8e82c3Smrgdo 28666d8e82c3Smrg IFS=$as_save_IFS 28676d8e82c3Smrg case $as_dir in #((( 28686d8e82c3Smrg '') as_dir=./ ;; 28696d8e82c3Smrg */) ;; 28706d8e82c3Smrg *) as_dir=$as_dir/ ;; 28716d8e82c3Smrg esac 28726d8e82c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 28736d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28746d8e82c3Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 28756d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28766d8e82c3Smrg break 2 28776d8e82c3Smrg fi 28786d8e82c3Smrgdone 28796d8e82c3Smrg done 28806d8e82c3SmrgIFS=$as_save_IFS 28816d8e82c3Smrg 28826d8e82c3Smrgfi 28836d8e82c3Smrgfi 28846d8e82c3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 28856d8e82c3Smrgif test -n "$ac_ct_CC"; then 28866d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 28876d8e82c3Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 2888ffd25bcaSmrgelse 28896d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28906d8e82c3Smrgprintf "%s\n" "no" >&6; } 2891ffd25bcaSmrgfi 28923e747e6dSmrg 28933e747e6dSmrg 28946d8e82c3Smrg test -n "$ac_ct_CC" && break 28956d8e82c3Smrgdone 28966d8e82c3Smrg 28976d8e82c3Smrg if test "x$ac_ct_CC" = x; then 28986d8e82c3Smrg CC="" 28996d8e82c3Smrg else 29006d8e82c3Smrg case $cross_compiling:$ac_tool_warned in 29016d8e82c3Smrgyes:) 29026d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29036d8e82c3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29046d8e82c3Smrgac_tool_warned=yes ;; 29056d8e82c3Smrgesac 29066d8e82c3Smrg CC=$ac_ct_CC 29076d8e82c3Smrg fi 29086d8e82c3Smrgfi 29096d8e82c3Smrg 2910ffd25bcaSmrgfi 2911ffd25bcaSmrgif test -z "$CC"; then 2912ffd25bcaSmrg if test -n "$ac_tool_prefix"; then 29136d8e82c3Smrg # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 29146d8e82c3Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2 29156d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29166d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 29176d8e82c3Smrgif test ${ac_cv_prog_CC+y} 29186d8e82c3Smrgthen : 29196d8e82c3Smrg printf %s "(cached) " >&6 29206d8e82c3Smrgelse $as_nop 2921ffd25bcaSmrg if test -n "$CC"; then 2922ffd25bcaSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 29233e747e6dSmrgelse 29243e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29253e747e6dSmrgfor as_dir in $PATH 29263e747e6dSmrgdo 29273e747e6dSmrg IFS=$as_save_IFS 29286d8e82c3Smrg case $as_dir in #((( 29296d8e82c3Smrg '') as_dir=./ ;; 29306d8e82c3Smrg */) ;; 29316d8e82c3Smrg *) as_dir=$as_dir/ ;; 29326d8e82c3Smrg esac 29337a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29346d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29356d8e82c3Smrg ac_cv_prog_CC="${ac_tool_prefix}clang" 29366d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29373e747e6dSmrg break 2 29383e747e6dSmrg fi 29393e747e6dSmrgdone 29407a2631fcSmrg done 29413e747e6dSmrgIFS=$as_save_IFS 29423e747e6dSmrg 29433e747e6dSmrgfi 29443e747e6dSmrgfi 2945ffd25bcaSmrgCC=$ac_cv_prog_CC 2946ffd25bcaSmrgif test -n "$CC"; then 29476d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 29486d8e82c3Smrgprintf "%s\n" "$CC" >&6; } 29493e747e6dSmrgelse 29506d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29516d8e82c3Smrgprintf "%s\n" "no" >&6; } 29523e747e6dSmrgfi 29533e747e6dSmrg 29543e747e6dSmrg 2955ffd25bcaSmrgfi 29566d8e82c3Smrgif test -z "$ac_cv_prog_CC"; then 2957ffd25bcaSmrg ac_ct_CC=$CC 29586d8e82c3Smrg # Extract the first word of "clang", so it can be a program name with args. 29596d8e82c3Smrgset dummy clang; ac_word=$2 29606d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29616d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 29626d8e82c3Smrgif test ${ac_cv_prog_ac_ct_CC+y} 29636d8e82c3Smrgthen : 29646d8e82c3Smrg printf %s "(cached) " >&6 29656d8e82c3Smrgelse $as_nop 2966ffd25bcaSmrg if test -n "$ac_ct_CC"; then 2967ffd25bcaSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2968ffd25bcaSmrgelse 2969ffd25bcaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2970ffd25bcaSmrgfor as_dir in $PATH 2971ffd25bcaSmrgdo 2972ffd25bcaSmrg IFS=$as_save_IFS 29736d8e82c3Smrg case $as_dir in #((( 29746d8e82c3Smrg '') as_dir=./ ;; 29756d8e82c3Smrg */) ;; 29766d8e82c3Smrg *) as_dir=$as_dir/ ;; 29776d8e82c3Smrg esac 2978ffd25bcaSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29796d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29806d8e82c3Smrg ac_cv_prog_ac_ct_CC="clang" 29816d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2982ffd25bcaSmrg break 2 2983ffd25bcaSmrg fi 2984ffd25bcaSmrgdone 2985ffd25bcaSmrg done 2986ffd25bcaSmrgIFS=$as_save_IFS 2987ffd25bcaSmrg 29883e747e6dSmrgfi 2989ffd25bcaSmrgfi 2990ffd25bcaSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2991ffd25bcaSmrgif test -n "$ac_ct_CC"; then 29926d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 29936d8e82c3Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 29943e747e6dSmrgelse 29956d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29966d8e82c3Smrgprintf "%s\n" "no" >&6; } 29973e747e6dSmrgfi 29983e747e6dSmrg 2999ffd25bcaSmrg if test "x$ac_ct_CC" = x; then 3000ffd25bcaSmrg CC="" 30013e747e6dSmrg else 3002ffd25bcaSmrg case $cross_compiling:$ac_tool_warned in 3003ffd25bcaSmrgyes:) 30046d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30056d8e82c3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3006ffd25bcaSmrgac_tool_warned=yes ;; 3007ffd25bcaSmrgesac 3008ffd25bcaSmrg CC=$ac_ct_CC 30093e747e6dSmrg fi 30106d8e82c3Smrgelse 30116d8e82c3Smrg CC="$ac_cv_prog_CC" 30123e747e6dSmrgfi 30133e747e6dSmrg 3014ffd25bcaSmrgfi 30153e747e6dSmrg 30163e747e6dSmrg 30176d8e82c3Smrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30186d8e82c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3019ffd25bcaSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 3020ffd25bcaSmrgSee \`config.log' for more details" "$LINENO" 5; } 30213e747e6dSmrg 3022ffd25bcaSmrg# Provide some information about the compiler. 30236d8e82c3Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3024ffd25bcaSmrgset X $ac_compile 3025ffd25bcaSmrgac_compiler=$2 30266d8e82c3Smrgfor ac_option in --version -v -V -qversion -version; do 3027ffd25bcaSmrg { { ac_try="$ac_compiler $ac_option >&5" 3028ffd25bcaSmrgcase "(($ac_try" in 3029ffd25bcaSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3030ffd25bcaSmrg *) ac_try_echo=$ac_try;; 3031ffd25bcaSmrgesac 3032ffd25bcaSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30336d8e82c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3034ffd25bcaSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3035ffd25bcaSmrg ac_status=$? 3036ffd25bcaSmrg if test -s conftest.err; then 3037ffd25bcaSmrg sed '10a\ 3038ffd25bcaSmrg... rest of stderr output deleted ... 3039ffd25bcaSmrg 10q' conftest.err >conftest.er1 3040ffd25bcaSmrg cat conftest.er1 >&5 3041ffd25bcaSmrg fi 3042ffd25bcaSmrg rm -f conftest.er1 conftest.err 30436d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3044ffd25bcaSmrg test $ac_status = 0; } 3045ffd25bcaSmrgdone 30463e747e6dSmrg 3047ffd25bcaSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3048ffd25bcaSmrg/* end confdefs.h. */ 30493e747e6dSmrg 3050ffd25bcaSmrgint 30516d8e82c3Smrgmain (void) 3052ffd25bcaSmrg{ 30533e747e6dSmrg 3054ffd25bcaSmrg ; 3055ffd25bcaSmrg return 0; 3056ffd25bcaSmrg} 3057ffd25bcaSmrg_ACEOF 3058ffd25bcaSmrgac_clean_files_save=$ac_clean_files 3059ffd25bcaSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3060ffd25bcaSmrg# Try to create an executable without -o first, disregard a.out. 3061ffd25bcaSmrg# It will help us diagnose broken compilers, and finding out an intuition 3062ffd25bcaSmrg# of exeext. 30636d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 30646d8e82c3Smrgprintf %s "checking whether the C compiler works... " >&6; } 30656d8e82c3Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 30663e747e6dSmrg 3067ffd25bcaSmrg# The possible output files: 3068ffd25bcaSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 30693e747e6dSmrg 3070ffd25bcaSmrgac_rmfiles= 3071ffd25bcaSmrgfor ac_file in $ac_files 3072ffd25bcaSmrgdo 3073ffd25bcaSmrg case $ac_file in 3074ffd25bcaSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3075ffd25bcaSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3076ffd25bcaSmrg esac 3077ffd25bcaSmrgdone 3078ffd25bcaSmrgrm -f $ac_rmfiles 30797a2631fcSmrg 3080ffd25bcaSmrgif { { ac_try="$ac_link_default" 3081ffd25bcaSmrgcase "(($ac_try" in 3082ffd25bcaSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083ffd25bcaSmrg *) ac_try_echo=$ac_try;; 3084ffd25bcaSmrgesac 3085ffd25bcaSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30866d8e82c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3087ffd25bcaSmrg (eval "$ac_link_default") 2>&5 3088ffd25bcaSmrg ac_status=$? 30896d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30906d8e82c3Smrg test $ac_status = 0; } 30916d8e82c3Smrgthen : 3092ffd25bcaSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3093ffd25bcaSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3094ffd25bcaSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3095ffd25bcaSmrg# so that the user can short-circuit this test for compilers unknown to 3096ffd25bcaSmrg# Autoconf. 3097ffd25bcaSmrgfor ac_file in $ac_files '' 3098ffd25bcaSmrgdo 3099ffd25bcaSmrg test -f "$ac_file" || continue 3100ffd25bcaSmrg case $ac_file in 3101ffd25bcaSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3102ffd25bcaSmrg ;; 3103ffd25bcaSmrg [ab].out ) 3104ffd25bcaSmrg # We found the default executable, but exeext='' is most 3105ffd25bcaSmrg # certainly right. 3106ffd25bcaSmrg break;; 3107ffd25bcaSmrg *.* ) 31086d8e82c3Smrg if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3109ffd25bcaSmrg then :; else 3110ffd25bcaSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3111ffd25bcaSmrg fi 3112ffd25bcaSmrg # We set ac_cv_exeext here because the later test for it is not 3113ffd25bcaSmrg # safe: cross compilers may not add the suffix if given an `-o' 3114ffd25bcaSmrg # argument, so we may need to know it at that point already. 3115ffd25bcaSmrg # Even if this section looks crufty: it has the advantage of 3116ffd25bcaSmrg # actually working. 3117ffd25bcaSmrg break;; 3118ffd25bcaSmrg * ) 3119ffd25bcaSmrg break;; 3120ffd25bcaSmrg esac 3121ffd25bcaSmrgdone 3122ffd25bcaSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3123ffd25bcaSmrg 31246d8e82c3Smrgelse $as_nop 3125ffd25bcaSmrg ac_file='' 3126ffd25bcaSmrgfi 31276d8e82c3Smrgif test -z "$ac_file" 31286d8e82c3Smrgthen : 31296d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31306d8e82c3Smrgprintf "%s\n" "no" >&6; } 31316d8e82c3Smrgprintf "%s\n" "$as_me: failed program was:" >&5 3132ffd25bcaSmrgsed 's/^/| /' conftest.$ac_ext >&5 3133ffd25bcaSmrg 31346d8e82c3Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31356d8e82c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3136ffd25bcaSmrgas_fn_error 77 "C compiler cannot create executables 3137ffd25bcaSmrgSee \`config.log' for more details" "$LINENO" 5; } 31386d8e82c3Smrgelse $as_nop 31396d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31406d8e82c3Smrgprintf "%s\n" "yes" >&6; } 31416d8e82c3Smrgfi 31426d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 31436d8e82c3Smrgprintf %s "checking for C compiler default output file name... " >&6; } 31446d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 31456d8e82c3Smrgprintf "%s\n" "$ac_file" >&6; } 3146ffd25bcaSmrgac_exeext=$ac_cv_exeext 3147ffd25bcaSmrg 3148ffd25bcaSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3149ffd25bcaSmrgac_clean_files=$ac_clean_files_save 31506d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 31516d8e82c3Smrgprintf %s "checking for suffix of executables... " >&6; } 3152ffd25bcaSmrgif { { ac_try="$ac_link" 3153ffd25bcaSmrgcase "(($ac_try" in 3154ffd25bcaSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3155ffd25bcaSmrg *) ac_try_echo=$ac_try;; 3156ffd25bcaSmrgesac 3157ffd25bcaSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31586d8e82c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3159ffd25bcaSmrg (eval "$ac_link") 2>&5 3160ffd25bcaSmrg ac_status=$? 31616d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31626d8e82c3Smrg test $ac_status = 0; } 31636d8e82c3Smrgthen : 3164ffd25bcaSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3165ffd25bcaSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3166ffd25bcaSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3167ffd25bcaSmrg# `rm'. 3168ffd25bcaSmrgfor ac_file in conftest.exe conftest conftest.*; do 3169ffd25bcaSmrg test -f "$ac_file" || continue 3170ffd25bcaSmrg case $ac_file in 3171ffd25bcaSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3172ffd25bcaSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3173ffd25bcaSmrg break;; 3174ffd25bcaSmrg * ) break;; 3175ffd25bcaSmrg esac 3176ffd25bcaSmrgdone 31776d8e82c3Smrgelse $as_nop 31786d8e82c3Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31796d8e82c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3180ffd25bcaSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3181ffd25bcaSmrgSee \`config.log' for more details" "$LINENO" 5; } 3182ffd25bcaSmrgfi 3183ffd25bcaSmrgrm -f conftest conftest$ac_cv_exeext 31846d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 31856d8e82c3Smrgprintf "%s\n" "$ac_cv_exeext" >&6; } 3186ffd25bcaSmrg 3187ffd25bcaSmrgrm -f conftest.$ac_ext 3188ffd25bcaSmrgEXEEXT=$ac_cv_exeext 3189ffd25bcaSmrgac_exeext=$EXEEXT 3190ffd25bcaSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3191ffd25bcaSmrg/* end confdefs.h. */ 3192ffd25bcaSmrg#include <stdio.h> 3193ffd25bcaSmrgint 31946d8e82c3Smrgmain (void) 3195ffd25bcaSmrg{ 3196ffd25bcaSmrgFILE *f = fopen ("conftest.out", "w"); 3197ffd25bcaSmrg return ferror (f) || fclose (f) != 0; 3198ffd25bcaSmrg 3199ffd25bcaSmrg ; 3200ffd25bcaSmrg return 0; 3201ffd25bcaSmrg} 3202ffd25bcaSmrg_ACEOF 3203ffd25bcaSmrgac_clean_files="$ac_clean_files conftest.out" 3204ffd25bcaSmrg# Check that the compiler produces executables we can run. If not, either 3205ffd25bcaSmrg# the compiler is broken, or we cross compile. 32066d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 32076d8e82c3Smrgprintf %s "checking whether we are cross compiling... " >&6; } 3208ffd25bcaSmrgif test "$cross_compiling" != yes; then 3209ffd25bcaSmrg { { ac_try="$ac_link" 3210ffd25bcaSmrgcase "(($ac_try" in 3211ffd25bcaSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3212ffd25bcaSmrg *) ac_try_echo=$ac_try;; 3213ffd25bcaSmrgesac 3214ffd25bcaSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32156d8e82c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3216ffd25bcaSmrg (eval "$ac_link") 2>&5 3217ffd25bcaSmrg ac_status=$? 32186d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3219ffd25bcaSmrg test $ac_status = 0; } 3220ffd25bcaSmrg if { ac_try='./conftest$ac_cv_exeext' 3221ffd25bcaSmrg { { case "(($ac_try" in 3222ffd25bcaSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3223ffd25bcaSmrg *) ac_try_echo=$ac_try;; 3224ffd25bcaSmrgesac 3225ffd25bcaSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32266d8e82c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3227ffd25bcaSmrg (eval "$ac_try") 2>&5 3228ffd25bcaSmrg ac_status=$? 32296d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3230ffd25bcaSmrg test $ac_status = 0; }; }; then 3231ffd25bcaSmrg cross_compiling=no 3232ffd25bcaSmrg else 3233ffd25bcaSmrg if test "$cross_compiling" = maybe; then 3234ffd25bcaSmrg cross_compiling=yes 3235ffd25bcaSmrg else 32366d8e82c3Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32376d8e82c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32386d8e82c3Smrgas_fn_error 77 "cannot run C compiled programs. 3239ffd25bcaSmrgIf you meant to cross compile, use \`--host'. 3240ffd25bcaSmrgSee \`config.log' for more details" "$LINENO" 5; } 3241ffd25bcaSmrg fi 3242ffd25bcaSmrg fi 3243ffd25bcaSmrgfi 32446d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 32456d8e82c3Smrgprintf "%s\n" "$cross_compiling" >&6; } 3246ffd25bcaSmrg 3247ffd25bcaSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3248ffd25bcaSmrgac_clean_files=$ac_clean_files_save 32496d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 32506d8e82c3Smrgprintf %s "checking for suffix of object files... " >&6; } 32516d8e82c3Smrgif test ${ac_cv_objext+y} 32526d8e82c3Smrgthen : 32536d8e82c3Smrg printf %s "(cached) " >&6 32546d8e82c3Smrgelse $as_nop 3255ffd25bcaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3256ffd25bcaSmrg/* end confdefs.h. */ 3257ffd25bcaSmrg 3258ffd25bcaSmrgint 32596d8e82c3Smrgmain (void) 3260ffd25bcaSmrg{ 3261ffd25bcaSmrg 3262ffd25bcaSmrg ; 3263ffd25bcaSmrg return 0; 3264ffd25bcaSmrg} 3265ffd25bcaSmrg_ACEOF 3266ffd25bcaSmrgrm -f conftest.o conftest.obj 3267ffd25bcaSmrgif { { ac_try="$ac_compile" 3268ffd25bcaSmrgcase "(($ac_try" in 3269ffd25bcaSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3270ffd25bcaSmrg *) ac_try_echo=$ac_try;; 3271ffd25bcaSmrgesac 3272ffd25bcaSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32736d8e82c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3274ffd25bcaSmrg (eval "$ac_compile") 2>&5 3275ffd25bcaSmrg ac_status=$? 32766d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32776d8e82c3Smrg test $ac_status = 0; } 32786d8e82c3Smrgthen : 3279ffd25bcaSmrg for ac_file in conftest.o conftest.obj conftest.*; do 3280ffd25bcaSmrg test -f "$ac_file" || continue; 3281ffd25bcaSmrg case $ac_file in 3282ffd25bcaSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3283ffd25bcaSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3284ffd25bcaSmrg break;; 3285ffd25bcaSmrg esac 3286ffd25bcaSmrgdone 32876d8e82c3Smrgelse $as_nop 32886d8e82c3Smrg printf "%s\n" "$as_me: failed program was:" >&5 3289ffd25bcaSmrgsed 's/^/| /' conftest.$ac_ext >&5 3290ffd25bcaSmrg 32916d8e82c3Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32926d8e82c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3293ffd25bcaSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 3294ffd25bcaSmrgSee \`config.log' for more details" "$LINENO" 5; } 3295ffd25bcaSmrgfi 3296ffd25bcaSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3297ffd25bcaSmrgfi 32986d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 32996d8e82c3Smrgprintf "%s\n" "$ac_cv_objext" >&6; } 3300ffd25bcaSmrgOBJEXT=$ac_cv_objext 3301ffd25bcaSmrgac_objext=$OBJEXT 33026d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 33036d8e82c3Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; } 33046d8e82c3Smrgif test ${ac_cv_c_compiler_gnu+y} 33056d8e82c3Smrgthen : 33066d8e82c3Smrg printf %s "(cached) " >&6 33076d8e82c3Smrgelse $as_nop 3308ffd25bcaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3309ffd25bcaSmrg/* end confdefs.h. */ 3310ffd25bcaSmrg 3311ffd25bcaSmrgint 33126d8e82c3Smrgmain (void) 3313ffd25bcaSmrg{ 3314ffd25bcaSmrg#ifndef __GNUC__ 3315ffd25bcaSmrg choke me 3316ffd25bcaSmrg#endif 3317ffd25bcaSmrg 3318ffd25bcaSmrg ; 3319ffd25bcaSmrg return 0; 3320ffd25bcaSmrg} 3321ffd25bcaSmrg_ACEOF 33226d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 33236d8e82c3Smrgthen : 3324ffd25bcaSmrg ac_compiler_gnu=yes 33256d8e82c3Smrgelse $as_nop 3326ffd25bcaSmrg ac_compiler_gnu=no 3327ffd25bcaSmrgfi 33286d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3329ffd25bcaSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3330ffd25bcaSmrg 3331ffd25bcaSmrgfi 33326d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 33336d8e82c3Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 33346d8e82c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 33356d8e82c3Smrg 3336ffd25bcaSmrgif test $ac_compiler_gnu = yes; then 3337ffd25bcaSmrg GCC=yes 3338ffd25bcaSmrgelse 3339ffd25bcaSmrg GCC= 3340ffd25bcaSmrgfi 33416d8e82c3Smrgac_test_CFLAGS=${CFLAGS+y} 3342ffd25bcaSmrgac_save_CFLAGS=$CFLAGS 33436d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 33446d8e82c3Smrgprintf %s "checking whether $CC accepts -g... " >&6; } 33456d8e82c3Smrgif test ${ac_cv_prog_cc_g+y} 33466d8e82c3Smrgthen : 33476d8e82c3Smrg printf %s "(cached) " >&6 33486d8e82c3Smrgelse $as_nop 3349ffd25bcaSmrg ac_save_c_werror_flag=$ac_c_werror_flag 3350ffd25bcaSmrg ac_c_werror_flag=yes 3351ffd25bcaSmrg ac_cv_prog_cc_g=no 3352ffd25bcaSmrg CFLAGS="-g" 3353ffd25bcaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3354ffd25bcaSmrg/* end confdefs.h. */ 3355ffd25bcaSmrg 3356ffd25bcaSmrgint 33576d8e82c3Smrgmain (void) 3358ffd25bcaSmrg{ 3359ffd25bcaSmrg 3360ffd25bcaSmrg ; 3361ffd25bcaSmrg return 0; 3362ffd25bcaSmrg} 3363ffd25bcaSmrg_ACEOF 33646d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 33656d8e82c3Smrgthen : 3366ffd25bcaSmrg ac_cv_prog_cc_g=yes 33676d8e82c3Smrgelse $as_nop 3368ffd25bcaSmrg CFLAGS="" 3369ffd25bcaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3370ffd25bcaSmrg/* end confdefs.h. */ 3371ffd25bcaSmrg 3372ffd25bcaSmrgint 33736d8e82c3Smrgmain (void) 3374ffd25bcaSmrg{ 3375ffd25bcaSmrg 3376ffd25bcaSmrg ; 3377ffd25bcaSmrg return 0; 3378ffd25bcaSmrg} 3379ffd25bcaSmrg_ACEOF 33806d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 33816d8e82c3Smrgthen : 3382ffd25bcaSmrg 33836d8e82c3Smrgelse $as_nop 3384ffd25bcaSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3385ffd25bcaSmrg CFLAGS="-g" 3386ffd25bcaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3387ffd25bcaSmrg/* end confdefs.h. */ 3388ffd25bcaSmrg 3389ffd25bcaSmrgint 33906d8e82c3Smrgmain (void) 3391ffd25bcaSmrg{ 3392ffd25bcaSmrg 3393ffd25bcaSmrg ; 3394ffd25bcaSmrg return 0; 3395ffd25bcaSmrg} 3396ffd25bcaSmrg_ACEOF 33976d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 33986d8e82c3Smrgthen : 3399ffd25bcaSmrg ac_cv_prog_cc_g=yes 3400ffd25bcaSmrgfi 34016d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3402ffd25bcaSmrgfi 34036d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3404ffd25bcaSmrgfi 34056d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3406ffd25bcaSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3407ffd25bcaSmrgfi 34086d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 34096d8e82c3Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 34106d8e82c3Smrgif test $ac_test_CFLAGS; then 3411ffd25bcaSmrg CFLAGS=$ac_save_CFLAGS 3412ffd25bcaSmrgelif test $ac_cv_prog_cc_g = yes; then 3413ffd25bcaSmrg if test "$GCC" = yes; then 3414ffd25bcaSmrg CFLAGS="-g -O2" 3415ffd25bcaSmrg else 3416ffd25bcaSmrg CFLAGS="-g" 3417ffd25bcaSmrg fi 3418ffd25bcaSmrgelse 3419ffd25bcaSmrg if test "$GCC" = yes; then 3420ffd25bcaSmrg CFLAGS="-O2" 3421ffd25bcaSmrg else 3422ffd25bcaSmrg CFLAGS= 3423ffd25bcaSmrg fi 3424ffd25bcaSmrgfi 34256d8e82c3Smrgac_prog_cc_stdc=no 34266d8e82c3Smrgif test x$ac_prog_cc_stdc = xno 34276d8e82c3Smrgthen : 34286d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 34296d8e82c3Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; } 34306d8e82c3Smrgif test ${ac_cv_prog_cc_c11+y} 34316d8e82c3Smrgthen : 34326d8e82c3Smrg printf %s "(cached) " >&6 34336d8e82c3Smrgelse $as_nop 34346d8e82c3Smrg ac_cv_prog_cc_c11=no 3435ffd25bcaSmrgac_save_CC=$CC 3436ffd25bcaSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3437ffd25bcaSmrg/* end confdefs.h. */ 34386d8e82c3Smrg$ac_c_conftest_c11_program 34396d8e82c3Smrg_ACEOF 34406d8e82c3Smrgfor ac_arg in '' -std=gnu11 34416d8e82c3Smrgdo 34426d8e82c3Smrg CC="$ac_save_CC $ac_arg" 34436d8e82c3Smrg if ac_fn_c_try_compile "$LINENO" 34446d8e82c3Smrgthen : 34456d8e82c3Smrg ac_cv_prog_cc_c11=$ac_arg 34466d8e82c3Smrgfi 34476d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 34486d8e82c3Smrg test "x$ac_cv_prog_cc_c11" != "xno" && break 34496d8e82c3Smrgdone 34506d8e82c3Smrgrm -f conftest.$ac_ext 34516d8e82c3SmrgCC=$ac_save_CC 34526d8e82c3Smrgfi 3453ffd25bcaSmrg 34546d8e82c3Smrgif test "x$ac_cv_prog_cc_c11" = xno 34556d8e82c3Smrgthen : 34566d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 34576d8e82c3Smrgprintf "%s\n" "unsupported" >&6; } 34586d8e82c3Smrgelse $as_nop 34596d8e82c3Smrg if test "x$ac_cv_prog_cc_c11" = x 34606d8e82c3Smrgthen : 34616d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 34626d8e82c3Smrgprintf "%s\n" "none needed" >&6; } 34636d8e82c3Smrgelse $as_nop 34646d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 34656d8e82c3Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 34666d8e82c3Smrg CC="$CC $ac_cv_prog_cc_c11" 34676d8e82c3Smrgfi 34686d8e82c3Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 34696d8e82c3Smrg ac_prog_cc_stdc=c11 34706d8e82c3Smrgfi 34716d8e82c3Smrgfi 34726d8e82c3Smrgif test x$ac_prog_cc_stdc = xno 34736d8e82c3Smrgthen : 34746d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 34756d8e82c3Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; } 34766d8e82c3Smrgif test ${ac_cv_prog_cc_c99+y} 34776d8e82c3Smrgthen : 34786d8e82c3Smrg printf %s "(cached) " >&6 34796d8e82c3Smrgelse $as_nop 34806d8e82c3Smrg ac_cv_prog_cc_c99=no 34816d8e82c3Smrgac_save_CC=$CC 34826d8e82c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 34836d8e82c3Smrg/* end confdefs.h. */ 34846d8e82c3Smrg$ac_c_conftest_c99_program 34856d8e82c3Smrg_ACEOF 34866d8e82c3Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 34876d8e82c3Smrgdo 34886d8e82c3Smrg CC="$ac_save_CC $ac_arg" 34896d8e82c3Smrg if ac_fn_c_try_compile "$LINENO" 34906d8e82c3Smrgthen : 34916d8e82c3Smrg ac_cv_prog_cc_c99=$ac_arg 34926d8e82c3Smrgfi 34936d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 34946d8e82c3Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 34956d8e82c3Smrgdone 34966d8e82c3Smrgrm -f conftest.$ac_ext 34976d8e82c3SmrgCC=$ac_save_CC 34986d8e82c3Smrgfi 3499ffd25bcaSmrg 35006d8e82c3Smrgif test "x$ac_cv_prog_cc_c99" = xno 35016d8e82c3Smrgthen : 35026d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 35036d8e82c3Smrgprintf "%s\n" "unsupported" >&6; } 35046d8e82c3Smrgelse $as_nop 35056d8e82c3Smrg if test "x$ac_cv_prog_cc_c99" = x 35066d8e82c3Smrgthen : 35076d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 35086d8e82c3Smrgprintf "%s\n" "none needed" >&6; } 35096d8e82c3Smrgelse $as_nop 35106d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 35116d8e82c3Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 35126d8e82c3Smrg CC="$CC $ac_cv_prog_cc_c99" 35136d8e82c3Smrgfi 35146d8e82c3Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 35156d8e82c3Smrg ac_prog_cc_stdc=c99 35166d8e82c3Smrgfi 35176d8e82c3Smrgfi 35186d8e82c3Smrgif test x$ac_prog_cc_stdc = xno 35196d8e82c3Smrgthen : 35206d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 35216d8e82c3Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; } 35226d8e82c3Smrgif test ${ac_cv_prog_cc_c89+y} 35236d8e82c3Smrgthen : 35246d8e82c3Smrg printf %s "(cached) " >&6 35256d8e82c3Smrgelse $as_nop 35266d8e82c3Smrg ac_cv_prog_cc_c89=no 35276d8e82c3Smrgac_save_CC=$CC 35286d8e82c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 35296d8e82c3Smrg/* end confdefs.h. */ 35306d8e82c3Smrg$ac_c_conftest_c89_program 3531ffd25bcaSmrg_ACEOF 35326d8e82c3Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3533ffd25bcaSmrgdo 3534ffd25bcaSmrg CC="$ac_save_CC $ac_arg" 35356d8e82c3Smrg if ac_fn_c_try_compile "$LINENO" 35366d8e82c3Smrgthen : 3537ffd25bcaSmrg ac_cv_prog_cc_c89=$ac_arg 3538ffd25bcaSmrgfi 35396d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 3540ffd25bcaSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3541ffd25bcaSmrgdone 3542ffd25bcaSmrgrm -f conftest.$ac_ext 3543ffd25bcaSmrgCC=$ac_save_CC 3544ffd25bcaSmrgfi 3545ffd25bcaSmrg 35466d8e82c3Smrgif test "x$ac_cv_prog_cc_c89" = xno 35476d8e82c3Smrgthen : 35486d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 35496d8e82c3Smrgprintf "%s\n" "unsupported" >&6; } 35506d8e82c3Smrgelse $as_nop 35516d8e82c3Smrg if test "x$ac_cv_prog_cc_c89" = x 35526d8e82c3Smrgthen : 35536d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 35546d8e82c3Smrgprintf "%s\n" "none needed" >&6; } 35556d8e82c3Smrgelse $as_nop 35566d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 35576d8e82c3Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 35586d8e82c3Smrg CC="$CC $ac_cv_prog_cc_c89" 35596d8e82c3Smrgfi 35606d8e82c3Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 35616d8e82c3Smrg ac_prog_cc_stdc=c89 35626d8e82c3Smrgfi 3563ffd25bcaSmrgfi 3564ffd25bcaSmrg 3565ffd25bcaSmrgac_ext=c 3566ffd25bcaSmrgac_cpp='$CPP $CPPFLAGS' 3567ffd25bcaSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3568ffd25bcaSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3569ffd25bcaSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3570ffd25bcaSmrg 35716d8e82c3Smrg 35726d8e82c3Smrg ac_ext=c 3573c2535118Smrgac_cpp='$CPP $CPPFLAGS' 3574c2535118Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3575c2535118Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3576c2535118Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 35776d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 35786d8e82c3Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; } 35796d8e82c3Smrgif test ${am_cv_prog_cc_c_o+y} 35806d8e82c3Smrgthen : 35816d8e82c3Smrg printf %s "(cached) " >&6 35826d8e82c3Smrgelse $as_nop 3583c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3584c2535118Smrg/* end confdefs.h. */ 3585c2535118Smrg 3586c2535118Smrgint 35876d8e82c3Smrgmain (void) 3588c2535118Smrg{ 3589c2535118Smrg 3590c2535118Smrg ; 3591c2535118Smrg return 0; 3592c2535118Smrg} 3593c2535118Smrg_ACEOF 3594c2535118Smrg # Make sure it works both with $CC and with simple cc. 3595c2535118Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 3596c2535118Smrg # compilers refuse to overwrite an existing .o file with -o, 3597c2535118Smrg # though they will create one. 3598c2535118Smrg am_cv_prog_cc_c_o=yes 3599c2535118Smrg for am_i in 1 2; do 3600c2535118Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3601c2535118Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3602c2535118Smrg ac_status=$? 3603c2535118Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 3604c2535118Smrg (exit $ac_status); } \ 3605c2535118Smrg && test -f conftest2.$ac_objext; then 3606c2535118Smrg : OK 3607c2535118Smrg else 3608c2535118Smrg am_cv_prog_cc_c_o=no 3609c2535118Smrg break 3610c2535118Smrg fi 3611c2535118Smrg done 3612c2535118Smrg rm -f core conftest* 3613c2535118Smrg unset am_i 3614c2535118Smrgfi 36156d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 36166d8e82c3Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3617c2535118Smrgif test "$am_cv_prog_cc_c_o" != yes; then 3618c2535118Smrg # Losing compiler, so override with the script. 3619c2535118Smrg # FIXME: It is wrong to rewrite CC. 3620c2535118Smrg # But if we don't then we get into trouble of one sort or another. 3621c2535118Smrg # A longer-term fix would be to have automake use am__CC in this case, 3622c2535118Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3623c2535118Smrg CC="$am_aux_dir/compile $CC" 3624c2535118Smrgfi 3625c2535118Smrgac_ext=c 3626c2535118Smrgac_cpp='$CPP $CPPFLAGS' 36276d8e82c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36286d8e82c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36296d8e82c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3630ffd25bcaSmrg 36316d8e82c3Smrg 36326d8e82c3Smrg 36336d8e82c3Smrgac_header= ac_cache= 36346d8e82c3Smrgfor ac_item in $ac_header_c_list 36356d8e82c3Smrgdo 36366d8e82c3Smrg if test $ac_cache; then 36376d8e82c3Smrg ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 36386d8e82c3Smrg if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 36396d8e82c3Smrg printf "%s\n" "#define $ac_item 1" >> confdefs.h 36406d8e82c3Smrg fi 36416d8e82c3Smrg ac_header= ac_cache= 36426d8e82c3Smrg elif test $ac_header; then 36436d8e82c3Smrg ac_cache=$ac_item 36446d8e82c3Smrg else 36456d8e82c3Smrg ac_header=$ac_item 3646ffd25bcaSmrg fi 36476d8e82c3Smrgdone 36486d8e82c3Smrg 36496d8e82c3Smrg 36506d8e82c3Smrg 36516d8e82c3Smrg 36526d8e82c3Smrg 36536d8e82c3Smrg 36546d8e82c3Smrg 36556d8e82c3Smrg 36566d8e82c3Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 36576d8e82c3Smrgthen : 36586d8e82c3Smrg 36596d8e82c3Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3660ffd25bcaSmrg 3661ffd25bcaSmrgfi 3662ffd25bcaSmrg 3663ffd25bcaSmrg 36646d8e82c3Smrg 36656d8e82c3Smrg 36666d8e82c3Smrg 36676d8e82c3Smrg 36686d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 36696d8e82c3Smrgprintf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 36706d8e82c3Smrgif test ${ac_cv_safe_to_define___extensions__+y} 36716d8e82c3Smrgthen : 36726d8e82c3Smrg printf %s "(cached) " >&6 36736d8e82c3Smrgelse $as_nop 3674ffd25bcaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3675ffd25bcaSmrg/* end confdefs.h. */ 3676ffd25bcaSmrg 36776d8e82c3Smrg# define __EXTENSIONS__ 1 36786d8e82c3Smrg $ac_includes_default 3679ffd25bcaSmrgint 36806d8e82c3Smrgmain (void) 3681ffd25bcaSmrg{ 3682ffd25bcaSmrg 3683ffd25bcaSmrg ; 3684ffd25bcaSmrg return 0; 3685ffd25bcaSmrg} 3686ffd25bcaSmrg_ACEOF 36876d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 36886d8e82c3Smrgthen : 36896d8e82c3Smrg ac_cv_safe_to_define___extensions__=yes 36906d8e82c3Smrgelse $as_nop 36916d8e82c3Smrg ac_cv_safe_to_define___extensions__=no 3692ffd25bcaSmrgfi 36936d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3694ffd25bcaSmrgfi 36956d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 36966d8e82c3Smrgprintf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 36977a2631fcSmrg 36986d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 36996d8e82c3Smrgprintf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 37006d8e82c3Smrgif test ${ac_cv_should_define__xopen_source+y} 37016d8e82c3Smrgthen : 37026d8e82c3Smrg printf %s "(cached) " >&6 37036d8e82c3Smrgelse $as_nop 37046d8e82c3Smrg ac_cv_should_define__xopen_source=no 37056d8e82c3Smrg if test $ac_cv_header_wchar_h = yes 37066d8e82c3Smrgthen : 3707ffd25bcaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3708ffd25bcaSmrg/* end confdefs.h. */ 37097a2631fcSmrg 37106d8e82c3Smrg #include <wchar.h> 37116d8e82c3Smrg mbstate_t x; 37126d8e82c3Smrgint 37136d8e82c3Smrgmain (void) 37146d8e82c3Smrg{ 37157a2631fcSmrg 37166d8e82c3Smrg ; 37176d8e82c3Smrg return 0; 37186d8e82c3Smrg} 37196d8e82c3Smrg_ACEOF 37206d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 37216d8e82c3Smrgthen : 37227a2631fcSmrg 37236d8e82c3Smrgelse $as_nop 3724ffd25bcaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3725ffd25bcaSmrg/* end confdefs.h. */ 37267a2631fcSmrg 37276d8e82c3Smrg #define _XOPEN_SOURCE 500 37286d8e82c3Smrg #include <wchar.h> 37296d8e82c3Smrg mbstate_t x; 3730ffd25bcaSmrgint 37316d8e82c3Smrgmain (void) 3732ffd25bcaSmrg{ 37336d8e82c3Smrg 37346d8e82c3Smrg ; 3735ffd25bcaSmrg return 0; 3736ffd25bcaSmrg} 3737ffd25bcaSmrg_ACEOF 37386d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 37396d8e82c3Smrgthen : 37406d8e82c3Smrg ac_cv_should_define__xopen_source=yes 3741ffd25bcaSmrgfi 37426d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3743ffd25bcaSmrgfi 37446d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3745ffd25bcaSmrgfi 3746ffd25bcaSmrgfi 37476d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 37486d8e82c3Smrgprintf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 37497a2631fcSmrg 37506d8e82c3Smrg printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 37517a2631fcSmrg 37526d8e82c3Smrg printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 37537a2631fcSmrg 37546d8e82c3Smrg printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 37557a2631fcSmrg 37566d8e82c3Smrg printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 37577a2631fcSmrg 37586d8e82c3Smrg printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 37597a2631fcSmrg 37606d8e82c3Smrg printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 37613e747e6dSmrg 37626d8e82c3Smrg printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 37633e747e6dSmrg 37646d8e82c3Smrg printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 37653e747e6dSmrg 37666d8e82c3Smrg printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 37673e747e6dSmrg 37686d8e82c3Smrg printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 37693e747e6dSmrg 37706d8e82c3Smrg printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 37713e747e6dSmrg 37726d8e82c3Smrg printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3773ffd25bcaSmrg 37746d8e82c3Smrg printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3775ffd25bcaSmrg 37766d8e82c3Smrg printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3777ffd25bcaSmrg 37786d8e82c3Smrg printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 37793e747e6dSmrg 37806d8e82c3Smrg if test $ac_cv_header_minix_config_h = yes 37816d8e82c3Smrgthen : 37826d8e82c3Smrg MINIX=yes 37836d8e82c3Smrg printf "%s\n" "#define _MINIX 1" >>confdefs.h 3784ffd25bcaSmrg 37856d8e82c3Smrg printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3786ffd25bcaSmrg 37876d8e82c3Smrg printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3788ffd25bcaSmrg 37896d8e82c3Smrgelse $as_nop 37906d8e82c3Smrg MINIX= 3791ffd25bcaSmrgfi 37926d8e82c3Smrg if test $ac_cv_safe_to_define___extensions__ = yes 37936d8e82c3Smrgthen : 37946d8e82c3Smrg printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3795ffd25bcaSmrg 37966d8e82c3Smrgfi 37976d8e82c3Smrg if test $ac_cv_should_define__xopen_source = yes 37986d8e82c3Smrgthen : 37996d8e82c3Smrg printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3800ffd25bcaSmrg 38016d8e82c3Smrgfi 3802ffd25bcaSmrg 3803ffd25bcaSmrg 3804ffd25bcaSmrg# Initialize Automake 38056d8e82c3Smrgam__api_version='1.16' 38066d8e82c3Smrg 3807ffd25bcaSmrg 38086d8e82c3Smrg # Find a good install program. We prefer a C program (faster), 3809ffd25bcaSmrg# so one script is as good as another. But avoid the broken or 3810ffd25bcaSmrg# incompatible versions: 3811ffd25bcaSmrg# SysV /etc/install, /usr/sbin/install 3812ffd25bcaSmrg# SunOS /usr/etc/install 3813ffd25bcaSmrg# IRIX /sbin/install 3814ffd25bcaSmrg# AIX /bin/install 3815ffd25bcaSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 3816ffd25bcaSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3817ffd25bcaSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3818ffd25bcaSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3819ffd25bcaSmrg# OS/2's system install, which has a completely different semantic 3820ffd25bcaSmrg# ./install, which can be erroneously created by make from ./install.sh. 3821ffd25bcaSmrg# Reject install programs that cannot install multiple files. 38226d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 38236d8e82c3Smrgprintf %s "checking for a BSD-compatible install... " >&6; } 3824ffd25bcaSmrgif test -z "$INSTALL"; then 38256d8e82c3Smrgif test ${ac_cv_path_install+y} 38266d8e82c3Smrgthen : 38276d8e82c3Smrg printf %s "(cached) " >&6 38286d8e82c3Smrgelse $as_nop 3829ffd25bcaSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38307a2631fcSmrgfor as_dir in $PATH 38317a2631fcSmrgdo 38327a2631fcSmrg IFS=$as_save_IFS 38336d8e82c3Smrg case $as_dir in #((( 38346d8e82c3Smrg '') as_dir=./ ;; 38356d8e82c3Smrg */) ;; 38366d8e82c3Smrg *) as_dir=$as_dir/ ;; 38376d8e82c3Smrg esac 38386d8e82c3Smrg # Account for fact that we put trailing slashes in our PATH walk. 38396d8e82c3Smrgcase $as_dir in #(( 38406d8e82c3Smrg ./ | /[cC]/* | \ 3841ffd25bcaSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3842ffd25bcaSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3843ffd25bcaSmrg /usr/ucb/* ) ;; 3844ffd25bcaSmrg *) 3845ffd25bcaSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 3846ffd25bcaSmrg # Don't use installbsd from OSF since it installs stuff as root 3847ffd25bcaSmrg # by default. 3848ffd25bcaSmrg for ac_prog in ginstall scoinst install; do 3849ffd25bcaSmrg for ac_exec_ext in '' $ac_executable_extensions; do 38506d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3851ffd25bcaSmrg if test $ac_prog = install && 38526d8e82c3Smrg grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3853ffd25bcaSmrg # AIX install. It has an incompatible calling convention. 3854ffd25bcaSmrg : 3855ffd25bcaSmrg elif test $ac_prog = install && 38566d8e82c3Smrg grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3857ffd25bcaSmrg # program-specific install script used by HP pwplus--don't use. 3858ffd25bcaSmrg : 3859ffd25bcaSmrg else 3860ffd25bcaSmrg rm -rf conftest.one conftest.two conftest.dir 3861ffd25bcaSmrg echo one > conftest.one 3862ffd25bcaSmrg echo two > conftest.two 3863ffd25bcaSmrg mkdir conftest.dir 38646d8e82c3Smrg if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3865ffd25bcaSmrg test -s conftest.one && test -s conftest.two && 3866ffd25bcaSmrg test -s conftest.dir/conftest.one && 3867ffd25bcaSmrg test -s conftest.dir/conftest.two 3868ffd25bcaSmrg then 38696d8e82c3Smrg ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3870ffd25bcaSmrg break 3 3871ffd25bcaSmrg fi 3872ffd25bcaSmrg fi 3873ffd25bcaSmrg fi 3874ffd25bcaSmrg done 3875ffd25bcaSmrg done 3876ffd25bcaSmrg ;; 3877ffd25bcaSmrgesac 3878ffd25bcaSmrg 38797a2631fcSmrg done 38807a2631fcSmrgIFS=$as_save_IFS 38813e747e6dSmrg 3882ffd25bcaSmrgrm -rf conftest.one conftest.two conftest.dir 3883ffd25bcaSmrg 3884ffd25bcaSmrgfi 38856d8e82c3Smrg if test ${ac_cv_path_install+y}; then 3886ffd25bcaSmrg INSTALL=$ac_cv_path_install 3887ffd25bcaSmrg else 3888ffd25bcaSmrg # As a last resort, use the slow shell script. Don't cache a 3889ffd25bcaSmrg # value for INSTALL within a source directory, because that will 3890ffd25bcaSmrg # break other packages using the cache if that directory is 3891ffd25bcaSmrg # removed, or if the value is a relative name. 3892ffd25bcaSmrg INSTALL=$ac_install_sh 38937a2631fcSmrg fi 38947a2631fcSmrgfi 38956d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 38966d8e82c3Smrgprintf "%s\n" "$INSTALL" >&6; } 3897ffd25bcaSmrg 3898ffd25bcaSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3899ffd25bcaSmrg# It thinks the first close brace ends the variable substitution. 3900ffd25bcaSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3901ffd25bcaSmrg 3902ffd25bcaSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3903ffd25bcaSmrg 3904ffd25bcaSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3905ffd25bcaSmrg 39066d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 39076d8e82c3Smrgprintf %s "checking whether build environment is sane... " >&6; } 3908ffd25bcaSmrg# Reject unsafe characters in $srcdir or the absolute working directory 3909ffd25bcaSmrg# name. Accept space and tab only in the latter. 3910ffd25bcaSmrgam_lf=' 3911ffd25bcaSmrg' 3912ffd25bcaSmrgcase `pwd` in 3913ffd25bcaSmrg *[\\\"\#\$\&\'\`$am_lf]*) 3914ffd25bcaSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3915ffd25bcaSmrgesac 3916ffd25bcaSmrgcase $srcdir in 3917ffd25bcaSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3918c2535118Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3919ffd25bcaSmrgesac 3920ffd25bcaSmrg 3921c2535118Smrg# Do 'set' in a subshell so we don't clobber the current shell's 3922ffd25bcaSmrg# arguments. Must try -L first in case configure is actually a 3923ffd25bcaSmrg# symlink; some systems play weird games with the mod time of symlinks 3924ffd25bcaSmrg# (eg FreeBSD returns the mod time of the symlink's containing 3925ffd25bcaSmrg# directory). 3926ffd25bcaSmrgif ( 3927c2535118Smrg am_has_slept=no 3928c2535118Smrg for am_try in 1 2; do 3929c2535118Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 3930c2535118Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3931c2535118Smrg if test "$*" = "X"; then 3932c2535118Smrg # -L didn't work. 3933c2535118Smrg set X `ls -t "$srcdir/configure" conftest.file` 3934c2535118Smrg fi 3935c2535118Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 3936c2535118Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 3937c2535118Smrg 3938c2535118Smrg # If neither matched, then we have a broken ls. This can happen 3939c2535118Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 3940c2535118Smrg # broken ls alias from the environment. This has actually 3941c2535118Smrg # happened. Such a system could not be considered "sane". 3942c2535118Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3943c2535118Smrg alias in your environment" "$LINENO" 5 3944c2535118Smrg fi 3945c2535118Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 3946c2535118Smrg break 3947c2535118Smrg fi 3948c2535118Smrg # Just in case. 3949c2535118Smrg sleep 1 3950c2535118Smrg am_has_slept=yes 3951c2535118Smrg done 3952ffd25bcaSmrg test "$2" = conftest.file 3953ffd25bcaSmrg ) 3954ffd25bcaSmrgthen 3955ffd25bcaSmrg # Ok. 3956ffd25bcaSmrg : 3957ffd25bcaSmrgelse 3958ffd25bcaSmrg as_fn_error $? "newly created file is older than distributed files! 3959ffd25bcaSmrgCheck your system clock" "$LINENO" 5 39607a2631fcSmrgfi 39616d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39626d8e82c3Smrgprintf "%s\n" "yes" >&6; } 3963c2535118Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 3964c2535118Smrg# generated files are strictly newer. 3965c2535118Smrgam_sleep_pid= 3966c2535118Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 3967c2535118Smrg ( sleep 1 ) & 3968c2535118Smrg am_sleep_pid=$! 3969c2535118Smrgfi 3970c2535118Smrg 3971c2535118Smrgrm -f conftest.file 3972c2535118Smrg 3973ffd25bcaSmrgtest "$program_prefix" != NONE && 3974ffd25bcaSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 3975ffd25bcaSmrg# Use a double $ so make ignores it. 3976ffd25bcaSmrgtest "$program_suffix" != NONE && 3977ffd25bcaSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3978ffd25bcaSmrg# Double any \ or $. 3979ffd25bcaSmrg# By default was `s,x,x', remove it if useless. 3980ffd25bcaSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 39816d8e82c3Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3982ffd25bcaSmrg 39836d8e82c3Smrg 39846d8e82c3Smrg if test x"${MISSING+set}" != xset; then 39856d8e82c3Smrg MISSING="\${SHELL} '$am_aux_dir/missing'" 39867a2631fcSmrgfi 3987ffd25bcaSmrg# Use eval to expand $SHELL 3988c2535118Smrgif eval "$MISSING --is-lightweight"; then 3989c2535118Smrg am_missing_run="$MISSING " 39907a2631fcSmrgelse 3991ffd25bcaSmrg am_missing_run= 39926d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 39936d8e82c3Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 39947a2631fcSmrgfi 39953e747e6dSmrg 39969cd34f4bSmrgif test x"${install_sh+set}" != xset; then 3997ffd25bcaSmrg case $am_aux_dir in 3998ffd25bcaSmrg *\ * | *\ *) 3999ffd25bcaSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4000ffd25bcaSmrg *) 4001ffd25bcaSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 4002ffd25bcaSmrg esac 40037a2631fcSmrgfi 4004ffd25bcaSmrg 4005c2535118Smrg# Installed binaries are usually stripped using 'strip' when the user 4006c2535118Smrg# run "make install-strip". However 'strip' might not be the right 4007ffd25bcaSmrg# tool to use in cross-compilation environments, therefore Automake 4008c2535118Smrg# will honor the 'STRIP' environment variable to overrule this program. 4009ffd25bcaSmrgif test "$cross_compiling" != no; then 40107a2631fcSmrg if test -n "$ac_tool_prefix"; then 4011ffd25bcaSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4012ffd25bcaSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 40136d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40146d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 40156d8e82c3Smrgif test ${ac_cv_prog_STRIP+y} 40166d8e82c3Smrgthen : 40176d8e82c3Smrg printf %s "(cached) " >&6 40186d8e82c3Smrgelse $as_nop 4019ffd25bcaSmrg if test -n "$STRIP"; then 4020ffd25bcaSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 40213e747e6dSmrgelse 40223e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40233e747e6dSmrgfor as_dir in $PATH 40243e747e6dSmrgdo 40253e747e6dSmrg IFS=$as_save_IFS 40266d8e82c3Smrg case $as_dir in #((( 40276d8e82c3Smrg '') as_dir=./ ;; 40286d8e82c3Smrg */) ;; 40296d8e82c3Smrg *) as_dir=$as_dir/ ;; 40306d8e82c3Smrg esac 40317a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 40326d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4033ffd25bcaSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 40346d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 40353e747e6dSmrg break 2 40363e747e6dSmrg fi 40373e747e6dSmrgdone 40387a2631fcSmrg done 40393e747e6dSmrgIFS=$as_save_IFS 40403e747e6dSmrg 40413e747e6dSmrgfi 40423e747e6dSmrgfi 4043ffd25bcaSmrgSTRIP=$ac_cv_prog_STRIP 4044ffd25bcaSmrgif test -n "$STRIP"; then 40456d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40466d8e82c3Smrgprintf "%s\n" "$STRIP" >&6; } 40473e747e6dSmrgelse 40486d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40496d8e82c3Smrgprintf "%s\n" "no" >&6; } 40503e747e6dSmrgfi 40513e747e6dSmrg 40523e747e6dSmrg 40533e747e6dSmrgfi 4054ffd25bcaSmrgif test -z "$ac_cv_prog_STRIP"; then 4055ffd25bcaSmrg ac_ct_STRIP=$STRIP 4056ffd25bcaSmrg # Extract the first word of "strip", so it can be a program name with args. 4057ffd25bcaSmrgset dummy strip; ac_word=$2 40586d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40596d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 40606d8e82c3Smrgif test ${ac_cv_prog_ac_ct_STRIP+y} 40616d8e82c3Smrgthen : 40626d8e82c3Smrg printf %s "(cached) " >&6 40636d8e82c3Smrgelse $as_nop 4064ffd25bcaSmrg if test -n "$ac_ct_STRIP"; then 4065ffd25bcaSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 40663e747e6dSmrgelse 40673e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40683e747e6dSmrgfor as_dir in $PATH 40693e747e6dSmrgdo 40703e747e6dSmrg IFS=$as_save_IFS 40716d8e82c3Smrg case $as_dir in #((( 40726d8e82c3Smrg '') as_dir=./ ;; 40736d8e82c3Smrg */) ;; 40746d8e82c3Smrg *) as_dir=$as_dir/ ;; 40756d8e82c3Smrg esac 40767a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 40776d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4078ffd25bcaSmrg ac_cv_prog_ac_ct_STRIP="strip" 40796d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4080ffd25bcaSmrg break 2 4081ffd25bcaSmrg fi 40823e747e6dSmrgdone 4083ffd25bcaSmrg done 4084ffd25bcaSmrgIFS=$as_save_IFS 4085ffd25bcaSmrg 4086ffd25bcaSmrgfi 4087ffd25bcaSmrgfi 4088ffd25bcaSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4089ffd25bcaSmrgif test -n "$ac_ct_STRIP"; then 40906d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 40916d8e82c3Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; } 40923e747e6dSmrgelse 40936d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40946d8e82c3Smrgprintf "%s\n" "no" >&6; } 40953e747e6dSmrgfi 40963e747e6dSmrg 4097ffd25bcaSmrg if test "x$ac_ct_STRIP" = x; then 4098ffd25bcaSmrg STRIP=":" 40997a2631fcSmrg else 4100ffd25bcaSmrg case $cross_compiling:$ac_tool_warned in 4101ffd25bcaSmrgyes:) 41026d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41036d8e82c3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4104ffd25bcaSmrgac_tool_warned=yes ;; 4105ffd25bcaSmrgesac 4106ffd25bcaSmrg STRIP=$ac_ct_STRIP 41073e747e6dSmrg fi 4108ffd25bcaSmrgelse 4109ffd25bcaSmrg STRIP="$ac_cv_prog_STRIP" 41103e747e6dSmrgfi 41117a2631fcSmrg 4112ffd25bcaSmrgfi 4113ffd25bcaSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4114ffd25bcaSmrg 41156d8e82c3Smrg 41166d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 41176d8e82c3Smrgprintf %s "checking for a race-free mkdir -p... " >&6; } 4118ffd25bcaSmrgif test -z "$MKDIR_P"; then 41196d8e82c3Smrg if test ${ac_cv_path_mkdir+y} 41206d8e82c3Smrgthen : 41216d8e82c3Smrg printf %s "(cached) " >&6 41226d8e82c3Smrgelse $as_nop 4123ffd25bcaSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4124ffd25bcaSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4125ffd25bcaSmrgdo 4126ffd25bcaSmrg IFS=$as_save_IFS 41276d8e82c3Smrg case $as_dir in #((( 41286d8e82c3Smrg '') as_dir=./ ;; 41296d8e82c3Smrg */) ;; 41306d8e82c3Smrg *) as_dir=$as_dir/ ;; 41316d8e82c3Smrg esac 4132ffd25bcaSmrg for ac_prog in mkdir gmkdir; do 4133ffd25bcaSmrg for ac_exec_ext in '' $ac_executable_extensions; do 41346d8e82c3Smrg as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 41356d8e82c3Smrg case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 41366d8e82c3Smrg 'mkdir ('*'coreutils) '* | \ 41376d8e82c3Smrg 'BusyBox '* | \ 4138ffd25bcaSmrg 'mkdir (fileutils) '4.1*) 41396d8e82c3Smrg ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4140ffd25bcaSmrg break 3;; 4141ffd25bcaSmrg esac 4142ffd25bcaSmrg done 4143ffd25bcaSmrg done 4144ffd25bcaSmrg done 4145ffd25bcaSmrgIFS=$as_save_IFS 41467a2631fcSmrg 4147ffd25bcaSmrgfi 41487a2631fcSmrg 4149ffd25bcaSmrg test -d ./--version && rmdir ./--version 41506d8e82c3Smrg if test ${ac_cv_path_mkdir+y}; then 4151ffd25bcaSmrg MKDIR_P="$ac_cv_path_mkdir -p" 4152ffd25bcaSmrg else 4153ffd25bcaSmrg # As a last resort, use the slow shell script. Don't cache a 4154ffd25bcaSmrg # value for MKDIR_P within a source directory, because that will 4155ffd25bcaSmrg # break other packages using the cache if that directory is 4156ffd25bcaSmrg # removed, or if the value is a relative name. 4157ffd25bcaSmrg MKDIR_P="$ac_install_sh -d" 4158ffd25bcaSmrg fi 4159ffd25bcaSmrgfi 41606d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 41616d8e82c3Smrgprintf "%s\n" "$MKDIR_P" >&6; } 4162ffd25bcaSmrg 4163ffd25bcaSmrgfor ac_prog in gawk mawk nawk awk 4164ffd25bcaSmrgdo 4165ffd25bcaSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 4166ffd25bcaSmrgset dummy $ac_prog; ac_word=$2 41676d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41686d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 41696d8e82c3Smrgif test ${ac_cv_prog_AWK+y} 41706d8e82c3Smrgthen : 41716d8e82c3Smrg printf %s "(cached) " >&6 41726d8e82c3Smrgelse $as_nop 4173ffd25bcaSmrg if test -n "$AWK"; then 4174ffd25bcaSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 4175ffd25bcaSmrgelse 4176ffd25bcaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4177ffd25bcaSmrgfor as_dir in $PATH 4178ffd25bcaSmrgdo 4179ffd25bcaSmrg IFS=$as_save_IFS 41806d8e82c3Smrg case $as_dir in #((( 41816d8e82c3Smrg '') as_dir=./ ;; 41826d8e82c3Smrg */) ;; 41836d8e82c3Smrg *) as_dir=$as_dir/ ;; 41846d8e82c3Smrg esac 4185ffd25bcaSmrg for ac_exec_ext in '' $ac_executable_extensions; do 41866d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4187ffd25bcaSmrg ac_cv_prog_AWK="$ac_prog" 41886d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4189ffd25bcaSmrg break 2 4190ffd25bcaSmrg fi 4191ffd25bcaSmrgdone 4192ffd25bcaSmrg done 4193ffd25bcaSmrgIFS=$as_save_IFS 41943e747e6dSmrg 41953e747e6dSmrgfi 41963e747e6dSmrgfi 4197ffd25bcaSmrgAWK=$ac_cv_prog_AWK 4198ffd25bcaSmrgif test -n "$AWK"; then 41996d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 42006d8e82c3Smrgprintf "%s\n" "$AWK" >&6; } 42013e747e6dSmrgelse 42026d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42036d8e82c3Smrgprintf "%s\n" "no" >&6; } 4204ffd25bcaSmrgfi 42053e747e6dSmrg 42063e747e6dSmrg 4207ffd25bcaSmrg test -n "$AWK" && break 4208ffd25bcaSmrgdone 4209ffd25bcaSmrg 42106d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 42116d8e82c3Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4212ffd25bcaSmrgset x ${MAKE-make} 42136d8e82c3Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 42146d8e82c3Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y} 42156d8e82c3Smrgthen : 42166d8e82c3Smrg printf %s "(cached) " >&6 42176d8e82c3Smrgelse $as_nop 4218ffd25bcaSmrg cat >conftest.make <<\_ACEOF 4219ffd25bcaSmrgSHELL = /bin/sh 4220ffd25bcaSmrgall: 4221ffd25bcaSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 42227a2631fcSmrg_ACEOF 4223ffd25bcaSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4224ffd25bcaSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 4225ffd25bcaSmrg *@@@%%%=?*=@@@%%%*) 4226ffd25bcaSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 4227ffd25bcaSmrg *) 4228ffd25bcaSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 4229ffd25bcaSmrgesac 4230ffd25bcaSmrgrm -f conftest.make 4231ffd25bcaSmrgfi 4232ffd25bcaSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 42336d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42346d8e82c3Smrgprintf "%s\n" "yes" >&6; } 4235ffd25bcaSmrg SET_MAKE= 42363e747e6dSmrgelse 42376d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42386d8e82c3Smrgprintf "%s\n" "no" >&6; } 4239ffd25bcaSmrg SET_MAKE="MAKE=${MAKE-make}" 42403e747e6dSmrgfi 42417a2631fcSmrg 4242ffd25bcaSmrgrm -rf .tst 2>/dev/null 4243ffd25bcaSmrgmkdir .tst 2>/dev/null 4244ffd25bcaSmrgif test -d .tst; then 4245ffd25bcaSmrg am__leading_dot=. 42463e747e6dSmrgelse 4247ffd25bcaSmrg am__leading_dot=_ 42483e747e6dSmrgfi 4249ffd25bcaSmrgrmdir .tst 2>/dev/null 42503e747e6dSmrg 4251ffd25bcaSmrgDEPDIR="${am__leading_dot}deps" 42523e747e6dSmrg 4253ffd25bcaSmrgac_config_commands="$ac_config_commands depfiles" 42547a2631fcSmrg 42556d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 42566d8e82c3Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 42576d8e82c3Smrgcat > confinc.mk << 'END' 4258ffd25bcaSmrgam__doit: 42596d8e82c3Smrg @echo this is the am__doit target >confinc.out 4260ffd25bcaSmrg.PHONY: am__doit 4261ffd25bcaSmrgEND 4262ffd25bcaSmrgam__include="#" 4263ffd25bcaSmrgam__quote= 42646d8e82c3Smrg# BSD make does it like this. 42656d8e82c3Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD 42666d8e82c3Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 42676d8e82c3Smrgecho 'include confinc.mk # ignored' > confmf.GNU 42686d8e82c3Smrg_am_result=no 42696d8e82c3Smrgfor s in GNU BSD; do 42706d8e82c3Smrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 42716d8e82c3Smrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 42726d8e82c3Smrg ac_status=$? 42736d8e82c3Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 42746d8e82c3Smrg (exit $ac_status); } 42756d8e82c3Smrg case $?:`cat confinc.out 2>/dev/null` in #( 42766d8e82c3Smrg '0:this is the am__doit target') : 42776d8e82c3Smrg case $s in #( 42786d8e82c3Smrg BSD) : 42796d8e82c3Smrg am__include='.include' am__quote='"' ;; #( 42806d8e82c3Smrg *) : 42816d8e82c3Smrg am__include='include' am__quote='' ;; 42826d8e82c3Smrgesac ;; #( 42836d8e82c3Smrg *) : 4284ffd25bcaSmrg ;; 42856d8e82c3Smrgesac 42866d8e82c3Smrg if test "$am__include" != "#"; then 42876d8e82c3Smrg _am_result="yes ($s style)" 42886d8e82c3Smrg break 42896d8e82c3Smrg fi 42906d8e82c3Smrgdone 42916d8e82c3Smrgrm -f confinc.* confmf.* 42926d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 42936d8e82c3Smrgprintf "%s\n" "${_am_result}" >&6; } 42943e747e6dSmrg 4295ffd25bcaSmrg# Check whether --enable-dependency-tracking was given. 42966d8e82c3Smrgif test ${enable_dependency_tracking+y} 42976d8e82c3Smrgthen : 4298ffd25bcaSmrg enableval=$enable_dependency_tracking; 42993e747e6dSmrgfi 4300ffd25bcaSmrg 4301ffd25bcaSmrgif test "x$enable_dependency_tracking" != xno; then 4302ffd25bcaSmrg am_depcomp="$ac_aux_dir/depcomp" 4303ffd25bcaSmrg AMDEPBACKSLASH='\' 4304c2535118Smrg am__nodep='_no' 43053e747e6dSmrgfi 4306ffd25bcaSmrg if test "x$enable_dependency_tracking" != xno; then 4307ffd25bcaSmrg AMDEP_TRUE= 4308ffd25bcaSmrg AMDEP_FALSE='#' 4309ffd25bcaSmrgelse 4310ffd25bcaSmrg AMDEP_TRUE='#' 4311ffd25bcaSmrg AMDEP_FALSE= 43127a2631fcSmrgfi 4313ffd25bcaSmrg 4314ffd25bcaSmrg 4315c2535118Smrg# Check whether --enable-silent-rules was given. 43166d8e82c3Smrgif test ${enable_silent_rules+y} 43176d8e82c3Smrgthen : 4318c2535118Smrg enableval=$enable_silent_rules; 4319c2535118Smrgfi 4320c2535118Smrg 4321c2535118Smrgcase $enable_silent_rules in # ((( 4322c2535118Smrg yes) AM_DEFAULT_VERBOSITY=0;; 4323c2535118Smrg no) AM_DEFAULT_VERBOSITY=1;; 4324c2535118Smrg *) AM_DEFAULT_VERBOSITY=1;; 4325c2535118Smrgesac 4326c2535118Smrgam_make=${MAKE-make} 43276d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 43286d8e82c3Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 43296d8e82c3Smrgif test ${am_cv_make_support_nested_variables+y} 43306d8e82c3Smrgthen : 43316d8e82c3Smrg printf %s "(cached) " >&6 43326d8e82c3Smrgelse $as_nop 43336d8e82c3Smrg if printf "%s\n" 'TRUE=$(BAR$(V)) 4334c2535118SmrgBAR0=false 4335c2535118SmrgBAR1=true 4336c2535118SmrgV=1 4337c2535118Smrgam__doit: 4338c2535118Smrg @$(TRUE) 4339c2535118Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4340c2535118Smrg am_cv_make_support_nested_variables=yes 4341c2535118Smrgelse 4342c2535118Smrg am_cv_make_support_nested_variables=no 4343c2535118Smrgfi 4344c2535118Smrgfi 43456d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 43466d8e82c3Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4347c2535118Smrgif test $am_cv_make_support_nested_variables = yes; then 4348c2535118Smrg AM_V='$(V)' 4349c2535118Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4350c2535118Smrgelse 4351c2535118Smrg AM_V=$AM_DEFAULT_VERBOSITY 4352c2535118Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4353c2535118Smrgfi 4354c2535118SmrgAM_BACKSLASH='\' 4355c2535118Smrg 4356ffd25bcaSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 4357ffd25bcaSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4358ffd25bcaSmrg # is not polluted with repeated "-I." 4359ffd25bcaSmrg am__isrc=' -I$(srcdir)' 4360ffd25bcaSmrg # test to see if srcdir already configured 4361ffd25bcaSmrg if test -f $srcdir/config.status; then 4362ffd25bcaSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 43637a2631fcSmrg fi 4364ffd25bcaSmrgfi 4365ffd25bcaSmrg 4366ffd25bcaSmrg# test whether we have cygpath 4367ffd25bcaSmrgif test -z "$CYGPATH_W"; then 4368ffd25bcaSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 4369ffd25bcaSmrg CYGPATH_W='cygpath -w' 43707a2631fcSmrg else 4371ffd25bcaSmrg CYGPATH_W=echo 43723e747e6dSmrg fi 43733e747e6dSmrgfi 43743e747e6dSmrg 43753e747e6dSmrg 4376ffd25bcaSmrg# Define the identity of the package. 4377ffd25bcaSmrg PACKAGE='twm' 43786d8e82c3Smrg VERSION='1.0.13.1' 43793e747e6dSmrg 4380ffd25bcaSmrg 43816d8e82c3Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 43823e747e6dSmrg 43833e747e6dSmrg 43846d8e82c3Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4385ffd25bcaSmrg 4386ffd25bcaSmrg# Some tools Automake needs. 4387ffd25bcaSmrg 4388ffd25bcaSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4389ffd25bcaSmrg 4390ffd25bcaSmrg 4391ffd25bcaSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4392ffd25bcaSmrg 4393ffd25bcaSmrg 4394ffd25bcaSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4395ffd25bcaSmrg 4396ffd25bcaSmrg 4397ffd25bcaSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4398ffd25bcaSmrg 4399ffd25bcaSmrg 4400ffd25bcaSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4401ffd25bcaSmrg 4402c2535118Smrg# For better backward compatibility. To be removed once Automake 1.9.x 4403c2535118Smrg# dies out for good. For more background, see: 44046d8e82c3Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 44056d8e82c3Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4406c2535118Smrgmkdir_p='$(MKDIR_P)' 4407c2535118Smrg 44089cd34f4bSmrg# We need awk for the "check" target (and possibly the TAP driver). The 44099cd34f4bSmrg# system "awk" is bad on some platforms. 4410c2535118Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 4411c2535118Smrg# in the wild :-( We should find a proper way to deprecate it ... 4412c2535118SmrgAMTAR='$${TAR-tar}' 4413c2535118Smrg 4414c2535118Smrg 4415c2535118Smrg# We'll loop over all known methods to create a tar archive until one works. 4416c2535118Smrg_am_tools='gnutar pax cpio none' 4417ffd25bcaSmrg 4418c2535118Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4419ffd25bcaSmrg 4420ffd25bcaSmrg 4421ffd25bcaSmrg 44223e747e6dSmrg 44237a2631fcSmrg 44247a2631fcSmrgdepcc="$CC" am_compiler_list= 44257a2631fcSmrg 44266d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 44276d8e82c3Smrgprintf %s "checking dependency style of $depcc... " >&6; } 44286d8e82c3Smrgif test ${am_cv_CC_dependencies_compiler_type+y} 44296d8e82c3Smrgthen : 44306d8e82c3Smrg printf %s "(cached) " >&6 44316d8e82c3Smrgelse $as_nop 44327a2631fcSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 44337a2631fcSmrg # We make a subdir and do the tests there. Otherwise we can end up 44347a2631fcSmrg # making bogus files that we don't know about and never remove. For 44357a2631fcSmrg # instance it was reported that on HP-UX the gcc test will end up 4436c2535118Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 4437c2535118Smrg # in D". 4438c2535118Smrg rm -rf conftest.dir 44397a2631fcSmrg mkdir conftest.dir 44407a2631fcSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 44417a2631fcSmrg # using a relative directory. 44427a2631fcSmrg cp "$am_depcomp" conftest.dir 44437a2631fcSmrg cd conftest.dir 44447a2631fcSmrg # We will build objects and dependencies in a subdirectory because 44457a2631fcSmrg # it helps to detect inapplicable dependency modes. For instance 44467a2631fcSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 44477a2631fcSmrg # side effect of compilation, but ICC will put the dependencies in 44487a2631fcSmrg # the current directory while Tru64 will put them in the object 44497a2631fcSmrg # directory. 44507a2631fcSmrg mkdir sub 44517a2631fcSmrg 44527a2631fcSmrg am_cv_CC_dependencies_compiler_type=none 44537a2631fcSmrg if test "$am_compiler_list" = ""; then 44547a2631fcSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 44557a2631fcSmrg fi 44567a2631fcSmrg am__universal=false 44577a2631fcSmrg case " $depcc " in #( 44587a2631fcSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 44597a2631fcSmrg esac 44607a2631fcSmrg 44617a2631fcSmrg for depmode in $am_compiler_list; do 44627a2631fcSmrg # Setup a source with many dependencies, because some compilers 44637a2631fcSmrg # like to wrap large dependency lists on column 80 (with \), and 44647a2631fcSmrg # we should not choose a depcomp mode which is confused by this. 44657a2631fcSmrg # 44667a2631fcSmrg # We need to recreate these files for each test, as the compiler may 44677a2631fcSmrg # overwrite some of them when testing with obscure command lines. 44687a2631fcSmrg # This happens at least with the AIX C compiler. 44697a2631fcSmrg : > sub/conftest.c 44707a2631fcSmrg for i in 1 2 3 4 5 6; do 44717a2631fcSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 4472c2535118Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4473c2535118Smrg # Solaris 10 /bin/sh. 4474c2535118Smrg echo '/* dummy */' > sub/conftst$i.h 44757a2631fcSmrg done 44767a2631fcSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 44777a2631fcSmrg 4478c2535118Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 44797a2631fcSmrg # mode. It turns out that the SunPro C++ compiler does not properly 4480c2535118Smrg # handle '-M -o', and we need to detect this. Also, some Intel 4481c2535118Smrg # versions had trouble with output in subdirs. 44827a2631fcSmrg am__obj=sub/conftest.${OBJEXT-o} 44837a2631fcSmrg am__minus_obj="-o $am__obj" 44847a2631fcSmrg case $depmode in 44857a2631fcSmrg gcc) 44867a2631fcSmrg # This depmode causes a compiler race in universal mode. 44877a2631fcSmrg test "$am__universal" = false || continue 44887a2631fcSmrg ;; 44897a2631fcSmrg nosideeffect) 4490c2535118Smrg # After this tag, mechanisms are not by side-effect, so they'll 4491c2535118Smrg # only be used when explicitly requested. 44927a2631fcSmrg if test "x$enable_dependency_tracking" = xyes; then 44937a2631fcSmrg continue 44947a2631fcSmrg else 44957a2631fcSmrg break 44967a2631fcSmrg fi 44977a2631fcSmrg ;; 4498c2535118Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4499c2535118Smrg # This compiler won't grok '-c -o', but also, the minuso test has 45007a2631fcSmrg # not run yet. These depmodes are late enough in the game, and 45017a2631fcSmrg # so weak that their functioning should not be impacted. 45027a2631fcSmrg am__obj=conftest.${OBJEXT-o} 45037a2631fcSmrg am__minus_obj= 45047a2631fcSmrg ;; 45057a2631fcSmrg none) break ;; 45067a2631fcSmrg esac 45077a2631fcSmrg if depmode=$depmode \ 45087a2631fcSmrg source=sub/conftest.c object=$am__obj \ 45097a2631fcSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 45107a2631fcSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 45117a2631fcSmrg >/dev/null 2>conftest.err && 45127a2631fcSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 45137a2631fcSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 45147a2631fcSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 45157a2631fcSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 45167a2631fcSmrg # icc doesn't choke on unknown options, it will just issue warnings 45177a2631fcSmrg # or remarks (even with -Werror). So we grep stderr for any message 45187a2631fcSmrg # that says an option was ignored or not supported. 45197a2631fcSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 45207a2631fcSmrg # icc: Command line warning: ignoring option '-M'; no argument required 45217a2631fcSmrg # The diagnosis changed in icc 8.0: 45227a2631fcSmrg # icc: Command line remark: option '-MP' not supported 45237a2631fcSmrg if (grep 'ignoring option' conftest.err || 45247a2631fcSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 45257a2631fcSmrg am_cv_CC_dependencies_compiler_type=$depmode 45267a2631fcSmrg break 45277a2631fcSmrg fi 45287a2631fcSmrg fi 45297a2631fcSmrg done 45303e747e6dSmrg 45317a2631fcSmrg cd .. 45327a2631fcSmrg rm -rf conftest.dir 45337a2631fcSmrgelse 45347a2631fcSmrg am_cv_CC_dependencies_compiler_type=none 45353e747e6dSmrgfi 45363e747e6dSmrg 45373e747e6dSmrgfi 45386d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 45396d8e82c3Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 45407a2631fcSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 45413e747e6dSmrg 45427a2631fcSmrg if 45437a2631fcSmrg test "x$enable_dependency_tracking" != xno \ 45447a2631fcSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 45457a2631fcSmrg am__fastdepCC_TRUE= 45467a2631fcSmrg am__fastdepCC_FALSE='#' 45473e747e6dSmrgelse 45487a2631fcSmrg am__fastdepCC_TRUE='#' 4549ffd25bcaSmrg am__fastdepCC_FALSE= 45507a2631fcSmrgfi 45513e747e6dSmrg 45527a2631fcSmrg 45536d8e82c3Smrg# Variables for tags utilities; see am/tags.am 45546d8e82c3Smrgif test -z "$CTAGS"; then 45556d8e82c3Smrg CTAGS=ctags 45566d8e82c3Smrgfi 45576d8e82c3Smrg 45586d8e82c3Smrgif test -z "$ETAGS"; then 45596d8e82c3Smrg ETAGS=etags 45606d8e82c3Smrgfi 45616d8e82c3Smrg 45626d8e82c3Smrgif test -z "$CSCOPE"; then 45636d8e82c3Smrg CSCOPE=cscope 45646d8e82c3Smrgfi 45656d8e82c3Smrg 45666d8e82c3Smrg 45677a2631fcSmrg 4568c2535118Smrg# POSIX will say in a future version that running "rm -f" with no argument 4569c2535118Smrg# is OK; and we want to be able to make that assumption in our Makefile 4570c2535118Smrg# recipes. So use an aggressive probe to check that the usage we want is 4571c2535118Smrg# actually supported "in the wild" to an acceptable degree. 4572c2535118Smrg# See automake bug#10828. 4573c2535118Smrg# To make any issue more visible, cause the running configure to be aborted 4574c2535118Smrg# by default if the 'rm' program in use doesn't match our expectations; the 4575c2535118Smrg# user can still override this though. 4576c2535118Smrgif rm -f && rm -fr && rm -rf; then : OK; else 4577c2535118Smrg cat >&2 <<'END' 4578c2535118SmrgOops! 4579c2535118Smrg 4580c2535118SmrgYour 'rm' program seems unable to run without file operands specified 4581c2535118Smrgon the command line, even when the '-f' option is present. This is contrary 4582c2535118Smrgto the behaviour of most rm programs out there, and not conforming with 4583c2535118Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4584c2535118Smrg 4585c2535118SmrgPlease tell bug-automake@gnu.org about your system, including the value 4586c2535118Smrgof your $PATH and any error possibly output before this message. This 4587c2535118Smrgcan help us improve future automake versions. 4588c2535118Smrg 4589c2535118SmrgEND 4590c2535118Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4591c2535118Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 4592c2535118Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4593c2535118Smrg echo >&2 4594c2535118Smrg else 4595c2535118Smrg cat >&2 <<'END' 4596c2535118SmrgAborting the configuration process, to ensure you take notice of the issue. 4597c2535118Smrg 4598c2535118SmrgYou can download and install GNU coreutils to get an 'rm' implementation 45996d8e82c3Smrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 4600c2535118Smrg 4601c2535118SmrgIf you want to complete the configuration process using your problematic 4602c2535118Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4603c2535118Smrgto "yes", and re-run configure. 4604c2535118Smrg 4605c2535118SmrgEND 4606c2535118Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4607c2535118Smrg fi 4608c2535118Smrgfi 46093e747e6dSmrg 46107a2631fcSmrg 4611ffd25bcaSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 46127a2631fcSmrg 46137a2631fcSmrg 46143e747e6dSmrg 46153e747e6dSmrg 46163e747e6dSmrg 4617ffd25bcaSmrg 4618ffd25bcaSmrg 4619ffd25bcaSmrg 4620ffd25bcaSmrg 4621ffd25bcaSmrg 4622ffd25bcaSmrg 46233e747e6dSmrg 46246d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 46256d8e82c3Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 46266d8e82c3Smrgif test ${ac_cv_c_undeclared_builtin_options+y} 46276d8e82c3Smrgthen : 46286d8e82c3Smrg printf %s "(cached) " >&6 46296d8e82c3Smrgelse $as_nop 46306d8e82c3Smrg ac_save_CFLAGS=$CFLAGS 46316d8e82c3Smrg ac_cv_c_undeclared_builtin_options='cannot detect' 46326d8e82c3Smrg for ac_arg in '' -fno-builtin; do 46336d8e82c3Smrg CFLAGS="$ac_save_CFLAGS $ac_arg" 46346d8e82c3Smrg # This test program should *not* compile successfully. 46356d8e82c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46366d8e82c3Smrg/* end confdefs.h. */ 46377a2631fcSmrg 46386d8e82c3Smrgint 46396d8e82c3Smrgmain (void) 46406d8e82c3Smrg{ 46416d8e82c3Smrg(void) strchr; 46426d8e82c3Smrg ; 46436d8e82c3Smrg return 0; 46446d8e82c3Smrg} 46456d8e82c3Smrg_ACEOF 46466d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 46476d8e82c3Smrgthen : 46483e747e6dSmrg 46496d8e82c3Smrgelse $as_nop 46506d8e82c3Smrg # This test program should compile successfully. 46516d8e82c3Smrg # No library function is consistently available on 46526d8e82c3Smrg # freestanding implementations, so test against a dummy 46536d8e82c3Smrg # declaration. Include always-available headers on the 46546d8e82c3Smrg # off chance that they somehow elicit warnings. 46556d8e82c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46566d8e82c3Smrg/* end confdefs.h. */ 46576d8e82c3Smrg#include <float.h> 46586d8e82c3Smrg#include <limits.h> 46596d8e82c3Smrg#include <stdarg.h> 46606d8e82c3Smrg#include <stddef.h> 46616d8e82c3Smrgextern void ac_decl (int, char *); 46627a2631fcSmrg 46636d8e82c3Smrgint 46646d8e82c3Smrgmain (void) 46656d8e82c3Smrg{ 46666d8e82c3Smrg(void) ac_decl (0, (char *) 0); 46676d8e82c3Smrg (void) ac_decl; 46683e747e6dSmrg 4669ffd25bcaSmrg ; 46703e747e6dSmrg return 0; 46713e747e6dSmrg} 46723e747e6dSmrg_ACEOF 46736d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 46746d8e82c3Smrgthen : 46756d8e82c3Smrg if test x"$ac_arg" = x 46766d8e82c3Smrgthen : 46776d8e82c3Smrg ac_cv_c_undeclared_builtin_options='none needed' 46786d8e82c3Smrgelse $as_nop 46796d8e82c3Smrg ac_cv_c_undeclared_builtin_options=$ac_arg 46807a2631fcSmrgfi 46816d8e82c3Smrg break 46827a2631fcSmrgfi 46836d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 46847a2631fcSmrgfi 46856d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 46866d8e82c3Smrg done 46876d8e82c3Smrg CFLAGS=$ac_save_CFLAGS 46886d8e82c3Smrg 46896d8e82c3Smrgfi 46906d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 46916d8e82c3Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 46926d8e82c3Smrg case $ac_cv_c_undeclared_builtin_options in #( 46936d8e82c3Smrg 'cannot detect') : 46946d8e82c3Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 46956d8e82c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 46966d8e82c3Smrgas_fn_error $? "cannot make $CC report undeclared builtins 46976d8e82c3SmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #( 46986d8e82c3Smrg 'none needed') : 46996d8e82c3Smrg ac_c_undeclared_builtin_options='' ;; #( 47006d8e82c3Smrg *) : 47016d8e82c3Smrg ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 47026d8e82c3Smrgesac 47033e747e6dSmrg 47043e747e6dSmrg 47053e747e6dSmrg 47067a2631fcSmrg 4707c2535118Smrg 47086d8e82c3Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 47096d8e82c3Smrgif test "x$ac_cv_have_decl___clang__" = xyes 47106d8e82c3Smrgthen : 4711ffd25bcaSmrg CLANGCC="yes" 47126d8e82c3Smrgelse $as_nop 4713ffd25bcaSmrg CLANGCC="no" 4714ffd25bcaSmrgfi 47156d8e82c3Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 47166d8e82c3Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 47176d8e82c3Smrgthen : 4718ffd25bcaSmrg INTELCC="yes" 47196d8e82c3Smrgelse $as_nop 4720ffd25bcaSmrg INTELCC="no" 47213e747e6dSmrgfi 47226d8e82c3Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 47236d8e82c3Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes 47246d8e82c3Smrgthen : 4725ffd25bcaSmrg SUNCC="yes" 47266d8e82c3Smrgelse $as_nop 4727ffd25bcaSmrg SUNCC="no" 4728ffd25bcaSmrgfi 47297a2631fcSmrg 47307a2631fcSmrg 47317a2631fcSmrg 47327a2631fcSmrg 47334a1eb5dbSmrg 47344a1eb5dbSmrg 47354a1eb5dbSmrg 47364a1eb5dbSmrg 47377a2631fcSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 47387a2631fcSmrg if test -n "$ac_tool_prefix"; then 47397a2631fcSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 47407a2631fcSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 47416d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47426d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 47436d8e82c3Smrgif test ${ac_cv_path_PKG_CONFIG+y} 47446d8e82c3Smrgthen : 47456d8e82c3Smrg printf %s "(cached) " >&6 47466d8e82c3Smrgelse $as_nop 47477a2631fcSmrg case $PKG_CONFIG in 47487a2631fcSmrg [\\/]* | ?:[\\/]*) 47497a2631fcSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 47507a2631fcSmrg ;; 47517a2631fcSmrg *) 47527a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47537a2631fcSmrgfor as_dir in $PATH 47547a2631fcSmrgdo 47557a2631fcSmrg IFS=$as_save_IFS 47566d8e82c3Smrg case $as_dir in #((( 47576d8e82c3Smrg '') as_dir=./ ;; 47586d8e82c3Smrg */) ;; 47596d8e82c3Smrg *) as_dir=$as_dir/ ;; 47606d8e82c3Smrg esac 47617a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 47626d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 47636d8e82c3Smrg ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 47646d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 47657a2631fcSmrg break 2 47667a2631fcSmrg fi 47677a2631fcSmrgdone 47687a2631fcSmrg done 47697a2631fcSmrgIFS=$as_save_IFS 47707a2631fcSmrg 47717a2631fcSmrg ;; 47727a2631fcSmrgesac 47737a2631fcSmrgfi 47747a2631fcSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 47757a2631fcSmrgif test -n "$PKG_CONFIG"; then 47766d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 47776d8e82c3Smrgprintf "%s\n" "$PKG_CONFIG" >&6; } 47787a2631fcSmrgelse 47796d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 47806d8e82c3Smrgprintf "%s\n" "no" >&6; } 47813e747e6dSmrgfi 47823e747e6dSmrg 47837a2631fcSmrg 47843e747e6dSmrgfi 47857a2631fcSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 47867a2631fcSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 47877a2631fcSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 47887a2631fcSmrgset dummy pkg-config; ac_word=$2 47896d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47906d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 47916d8e82c3Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 47926d8e82c3Smrgthen : 47936d8e82c3Smrg printf %s "(cached) " >&6 47946d8e82c3Smrgelse $as_nop 47957a2631fcSmrg case $ac_pt_PKG_CONFIG in 47967a2631fcSmrg [\\/]* | ?:[\\/]*) 47977a2631fcSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 47987a2631fcSmrg ;; 47997a2631fcSmrg *) 48007a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48017a2631fcSmrgfor as_dir in $PATH 48027a2631fcSmrgdo 48037a2631fcSmrg IFS=$as_save_IFS 48046d8e82c3Smrg case $as_dir in #((( 48056d8e82c3Smrg '') as_dir=./ ;; 48066d8e82c3Smrg */) ;; 48076d8e82c3Smrg *) as_dir=$as_dir/ ;; 48086d8e82c3Smrg esac 48097a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 48106d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 48116d8e82c3Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 48126d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 48137a2631fcSmrg break 2 48143e747e6dSmrg fi 48157a2631fcSmrgdone 48167a2631fcSmrg done 48177a2631fcSmrgIFS=$as_save_IFS 48187a2631fcSmrg 48197a2631fcSmrg ;; 48207a2631fcSmrgesac 48217a2631fcSmrgfi 48227a2631fcSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 48237a2631fcSmrgif test -n "$ac_pt_PKG_CONFIG"; then 48246d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 48256d8e82c3Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 48263e747e6dSmrgelse 48276d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 48286d8e82c3Smrgprintf "%s\n" "no" >&6; } 48297a2631fcSmrgfi 48307a2631fcSmrg 48317a2631fcSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 48327a2631fcSmrg PKG_CONFIG="" 48333e747e6dSmrg else 48347a2631fcSmrg case $cross_compiling:$ac_tool_warned in 48357a2631fcSmrgyes:) 48366d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 48376d8e82c3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 48387a2631fcSmrgac_tool_warned=yes ;; 48397a2631fcSmrgesac 48407a2631fcSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 48413e747e6dSmrg fi 48423e747e6dSmrgelse 48437a2631fcSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 48447a2631fcSmrgfi 48453e747e6dSmrg 48467a2631fcSmrgfi 48477a2631fcSmrgif test -n "$PKG_CONFIG"; then 48487a2631fcSmrg _pkg_min_version=0.9.0 48496d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 48506d8e82c3Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 48517a2631fcSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 48526d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48536d8e82c3Smrgprintf "%s\n" "yes" >&6; } 48547a2631fcSmrg else 48556d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 48566d8e82c3Smrgprintf "%s\n" "no" >&6; } 48577a2631fcSmrg PKG_CONFIG="" 48587a2631fcSmrg fi 48597a2631fcSmrgfi 48603e747e6dSmrg 48616d8e82c3Smrg 48626d8e82c3Smrg # Make sure we can run config.sub. 48636d8e82c3Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 48646d8e82c3Smrg as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 48656d8e82c3Smrg 48666d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 48676d8e82c3Smrgprintf %s "checking build system type... " >&6; } 48686d8e82c3Smrgif test ${ac_cv_build+y} 48696d8e82c3Smrgthen : 48706d8e82c3Smrg printf %s "(cached) " >&6 48716d8e82c3Smrgelse $as_nop 48727a2631fcSmrg ac_build_alias=$build_alias 48737a2631fcSmrgtest "x$ac_build_alias" = x && 48746d8e82c3Smrg ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 48757a2631fcSmrgtest "x$ac_build_alias" = x && 48767a2631fcSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 48776d8e82c3Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 48786d8e82c3Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 48797a2631fcSmrg 48807a2631fcSmrgfi 48816d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 48826d8e82c3Smrgprintf "%s\n" "$ac_cv_build" >&6; } 48837a2631fcSmrgcase $ac_cv_build in 48847a2631fcSmrg*-*-*) ;; 48857a2631fcSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 48863e747e6dSmrgesac 48877a2631fcSmrgbuild=$ac_cv_build 48887a2631fcSmrgac_save_IFS=$IFS; IFS='-' 48897a2631fcSmrgset x $ac_cv_build 48907a2631fcSmrgshift 48917a2631fcSmrgbuild_cpu=$1 48927a2631fcSmrgbuild_vendor=$2 48937a2631fcSmrgshift; shift 48947a2631fcSmrg# Remember, the first character of IFS is used to create $*, 48957a2631fcSmrg# except with old shells: 48967a2631fcSmrgbuild_os=$* 48977a2631fcSmrgIFS=$ac_save_IFS 48987a2631fcSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 48997a2631fcSmrg 49007a2631fcSmrg 49016d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 49026d8e82c3Smrgprintf %s "checking host system type... " >&6; } 49036d8e82c3Smrgif test ${ac_cv_host+y} 49046d8e82c3Smrgthen : 49056d8e82c3Smrg printf %s "(cached) " >&6 49066d8e82c3Smrgelse $as_nop 49077a2631fcSmrg if test "x$host_alias" = x; then 49087a2631fcSmrg ac_cv_host=$ac_cv_build 49097a2631fcSmrgelse 49106d8e82c3Smrg ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 49116d8e82c3Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 49127a2631fcSmrgfi 49137a2631fcSmrg 49147a2631fcSmrgfi 49156d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 49166d8e82c3Smrgprintf "%s\n" "$ac_cv_host" >&6; } 49177a2631fcSmrgcase $ac_cv_host in 49187a2631fcSmrg*-*-*) ;; 49197a2631fcSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 49207a2631fcSmrgesac 49217a2631fcSmrghost=$ac_cv_host 49227a2631fcSmrgac_save_IFS=$IFS; IFS='-' 49237a2631fcSmrgset x $ac_cv_host 49247a2631fcSmrgshift 49257a2631fcSmrghost_cpu=$1 49267a2631fcSmrghost_vendor=$2 49277a2631fcSmrgshift; shift 49287a2631fcSmrg# Remember, the first character of IFS is used to create $*, 49297a2631fcSmrg# except with old shells: 49307a2631fcSmrghost_os=$* 49317a2631fcSmrgIFS=$ac_save_IFS 49327a2631fcSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 49333e747e6dSmrg 49343e747e6dSmrg 49356d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 49366d8e82c3Smrgprintf %s "checking for a sed that does not truncate output... " >&6; } 49376d8e82c3Smrgif test ${ac_cv_path_SED+y} 49386d8e82c3Smrgthen : 49396d8e82c3Smrg printf %s "(cached) " >&6 49406d8e82c3Smrgelse $as_nop 49417a2631fcSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 49427a2631fcSmrg for ac_i in 1 2 3 4 5 6 7; do 49437a2631fcSmrg ac_script="$ac_script$as_nl$ac_script" 49447a2631fcSmrg done 49457a2631fcSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 49467a2631fcSmrg { ac_script=; unset ac_script;} 49477a2631fcSmrg if test -z "$SED"; then 49487a2631fcSmrg ac_path_SED_found=false 49497a2631fcSmrg # Loop through the user's path and test for each of PROGNAME-LIST 49507a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49517a2631fcSmrgfor as_dir in $PATH 49527a2631fcSmrgdo 49537a2631fcSmrg IFS=$as_save_IFS 49546d8e82c3Smrg case $as_dir in #((( 49556d8e82c3Smrg '') as_dir=./ ;; 49566d8e82c3Smrg */) ;; 49576d8e82c3Smrg *) as_dir=$as_dir/ ;; 49586d8e82c3Smrg esac 49596d8e82c3Smrg for ac_prog in sed gsed 49606d8e82c3Smrg do 49617a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 49626d8e82c3Smrg ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 49639cd34f4bSmrg as_fn_executable_p "$ac_path_SED" || continue 49647a2631fcSmrg# Check for GNU ac_path_SED and select it if it is found. 49657a2631fcSmrg # Check for GNU $ac_path_SED 49667a2631fcSmrgcase `"$ac_path_SED" --version 2>&1` in 49677a2631fcSmrg*GNU*) 49687a2631fcSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 49697a2631fcSmrg*) 49707a2631fcSmrg ac_count=0 49716d8e82c3Smrg printf %s 0123456789 >"conftest.in" 49727a2631fcSmrg while : 49737a2631fcSmrg do 49747a2631fcSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 49757a2631fcSmrg mv "conftest.tmp" "conftest.in" 49767a2631fcSmrg cp "conftest.in" "conftest.nl" 49776d8e82c3Smrg printf "%s\n" '' >> "conftest.nl" 49787a2631fcSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 49797a2631fcSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 49807a2631fcSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 49817a2631fcSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 49827a2631fcSmrg # Best one so far, save it but keep looking for a better one 49837a2631fcSmrg ac_cv_path_SED="$ac_path_SED" 49847a2631fcSmrg ac_path_SED_max=$ac_count 49857a2631fcSmrg fi 49867a2631fcSmrg # 10*(2^10) chars as input seems more than enough 49877a2631fcSmrg test $ac_count -gt 10 && break 49887a2631fcSmrg done 49897a2631fcSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 49907a2631fcSmrgesac 49913e747e6dSmrg 49927a2631fcSmrg $ac_path_SED_found && break 3 49937a2631fcSmrg done 49947a2631fcSmrg done 49957a2631fcSmrg done 49967a2631fcSmrgIFS=$as_save_IFS 49977a2631fcSmrg if test -z "$ac_cv_path_SED"; then 49987a2631fcSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 49997a2631fcSmrg fi 50007a2631fcSmrgelse 50017a2631fcSmrg ac_cv_path_SED=$SED 50027a2631fcSmrgfi 50033e747e6dSmrg 50043e747e6dSmrgfi 50056d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 50066d8e82c3Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; } 50077a2631fcSmrg SED="$ac_cv_path_SED" 50087a2631fcSmrg rm -f conftest.sed 50093e747e6dSmrg 50103e747e6dSmrg 50113e747e6dSmrg 50123e747e6dSmrg 50133e747e6dSmrg 5014ffd25bcaSmrg 5015c2535118Smrg# Check whether --enable-selective-werror was given. 50166d8e82c3Smrgif test ${enable_selective_werror+y} 50176d8e82c3Smrgthen : 5018c2535118Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 50196d8e82c3Smrgelse $as_nop 5020c2535118Smrg SELECTIVE_WERROR=yes 50213e747e6dSmrgfi 50223e747e6dSmrg 50233e747e6dSmrg 50243e747e6dSmrg 50257a2631fcSmrg 50267a2631fcSmrg 5027c2535118Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 5028c2535118Smrgif test "x$SUNCC" = "xyes"; then 5029c2535118Smrg BASE_CFLAGS="-v" 5030c2535118Smrgelse 5031c2535118Smrg BASE_CFLAGS="" 5032c2535118Smrgfi 50337a2631fcSmrg 5034c2535118Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5035ffd25bcaSmrg 5036c2535118Smrg 5037c2535118Smrg 5038c2535118Smrg 5039c2535118Smrg 5040c2535118Smrg 5041c2535118Smrg 5042c2535118Smrg 5043c2535118Smrg 5044c2535118Smrg 5045c2535118Smrg 5046c2535118Smrg 5047c2535118Smrg 5048c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5049c2535118Smrg 5050c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5051c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50526d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 50536d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 50546d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 50556d8e82c3Smrgthen : 50566d8e82c3Smrg printf %s "(cached) " >&6 50576d8e82c3Smrgelse $as_nop 5058c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5059c2535118Smrg/* end confdefs.h. */ 5060c2535118Smrgint i; 5061c2535118Smrg_ACEOF 50626d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 50636d8e82c3Smrgthen : 5064c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 50656d8e82c3Smrgelse $as_nop 5066c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 5067c2535118Smrgfi 50686d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5069c2535118Smrgfi 50706d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 50716d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5072c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5073c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 50743e747e6dSmrgfi 50753e747e6dSmrg 5076c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5077c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5078c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5079c2535118Smrg fi 5080c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50816d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 50826d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 50836d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 50846d8e82c3Smrgthen : 50856d8e82c3Smrg printf %s "(cached) " >&6 50866d8e82c3Smrgelse $as_nop 5087c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5088ffd25bcaSmrg/* end confdefs.h. */ 5089c2535118Smrgint i; 5090ffd25bcaSmrg_ACEOF 50916d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 50926d8e82c3Smrgthen : 5093c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 50946d8e82c3Smrgelse $as_nop 5095c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 50963e747e6dSmrgfi 50976d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 50983e747e6dSmrgfi 50996d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 51006d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5101c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5102c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51037a2631fcSmrgfi 5104ffd25bcaSmrg 5105c2535118Smrgfound="no" 51063e747e6dSmrg 5107c2535118Smrg if test $found = "no" ; then 5108c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5109c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5110c2535118Smrg fi 51113e747e6dSmrg 5112c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5113c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5114c2535118Smrg fi 51153e747e6dSmrg 5116c2535118Smrg CFLAGS="$CFLAGS -Wall" 51173e747e6dSmrg 51186d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 51196d8e82c3Smrgprintf %s "checking if $CC supports -Wall... " >&6; } 5120c2535118Smrg cacheid=xorg_cv_cc_flag__Wall 51216d8e82c3Smrg if eval test \${$cacheid+y} 51226d8e82c3Smrgthen : 51236d8e82c3Smrg printf %s "(cached) " >&6 51246d8e82c3Smrgelse $as_nop 5125c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5126c2535118Smrg/* end confdefs.h. */ 5127c2535118Smrgint i; 5128c2535118Smrgint 51296d8e82c3Smrgmain (void) 5130c2535118Smrg{ 5131c2535118Smrg 5132c2535118Smrg ; 5133c2535118Smrg return 0; 5134c2535118Smrg} 51357a2631fcSmrg_ACEOF 51366d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 51376d8e82c3Smrgthen : 5138c2535118Smrg eval $cacheid=yes 51396d8e82c3Smrgelse $as_nop 5140c2535118Smrg eval $cacheid=no 5141c2535118Smrgfi 51426d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5143c2535118Smrg conftest$ac_exeext conftest.$ac_ext 5144c2535118Smrgfi 51453e747e6dSmrg 51467a2631fcSmrg 5147c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51487a2631fcSmrg 5149c2535118Smrg eval supported=\$$cacheid 51506d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 51516d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 5152c2535118Smrg if test "$supported" = "yes" ; then 5153c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 5154c2535118Smrg found="yes" 5155c2535118Smrg fi 51567a2631fcSmrg fi 51577a2631fcSmrg 51587a2631fcSmrg 51597a2631fcSmrg 51607a2631fcSmrg 51617a2631fcSmrg 51627a2631fcSmrg 51637a2631fcSmrg 51647a2631fcSmrg 51657a2631fcSmrg 51667a2631fcSmrg 51677a2631fcSmrg 51687a2631fcSmrg 51697a2631fcSmrg 51707a2631fcSmrg 51717a2631fcSmrg 5172c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 51737a2631fcSmrg 5174c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5175c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51766d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 51776d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 51786d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 51796d8e82c3Smrgthen : 51806d8e82c3Smrg printf %s "(cached) " >&6 51816d8e82c3Smrgelse $as_nop 5182c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5183c2535118Smrg/* end confdefs.h. */ 5184c2535118Smrgint i; 5185c2535118Smrg_ACEOF 51866d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 51876d8e82c3Smrgthen : 5188c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 51896d8e82c3Smrgelse $as_nop 5190c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 51917a2631fcSmrgfi 51926d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 51937a2631fcSmrgfi 51946d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 51956d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5196c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5197c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51983e747e6dSmrgfi 51993e747e6dSmrg 5200c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5201c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5202c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5203c2535118Smrg fi 5204c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52056d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 52066d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 52076d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 52086d8e82c3Smrgthen : 52096d8e82c3Smrg printf %s "(cached) " >&6 52106d8e82c3Smrgelse $as_nop 5211c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5212c2535118Smrg/* end confdefs.h. */ 5213c2535118Smrgint i; 5214c2535118Smrg_ACEOF 52156d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 52166d8e82c3Smrgthen : 5217c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 52186d8e82c3Smrgelse $as_nop 5219c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 52207a2631fcSmrgfi 52216d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5222c2535118Smrgfi 52236d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 52246d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5225c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5226c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52273e747e6dSmrgfi 52283e747e6dSmrg 5229c2535118Smrgfound="no" 5230c2535118Smrg 5231c2535118Smrg if test $found = "no" ; then 5232c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5233c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5234c2535118Smrg fi 5235c2535118Smrg 5236c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5237c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5238c2535118Smrg fi 5239c2535118Smrg 5240c2535118Smrg CFLAGS="$CFLAGS -Wpointer-arith" 5241c2535118Smrg 52426d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 52436d8e82c3Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5244c2535118Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 52456d8e82c3Smrg if eval test \${$cacheid+y} 52466d8e82c3Smrgthen : 52476d8e82c3Smrg printf %s "(cached) " >&6 52486d8e82c3Smrgelse $as_nop 5249c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5250c2535118Smrg/* end confdefs.h. */ 5251c2535118Smrgint i; 5252c2535118Smrgint 52536d8e82c3Smrgmain (void) 5254c2535118Smrg{ 5255c2535118Smrg 5256c2535118Smrg ; 5257c2535118Smrg return 0; 5258c2535118Smrg} 5259c2535118Smrg_ACEOF 52606d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 52616d8e82c3Smrgthen : 5262c2535118Smrg eval $cacheid=yes 52636d8e82c3Smrgelse $as_nop 5264c2535118Smrg eval $cacheid=no 52657a2631fcSmrgfi 52666d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5267c2535118Smrg conftest$ac_exeext conftest.$ac_ext 52683e747e6dSmrgfi 52693e747e6dSmrg 52703e747e6dSmrg 5271c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52723e747e6dSmrg 5273c2535118Smrg eval supported=\$$cacheid 52746d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 52756d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 5276c2535118Smrg if test "$supported" = "yes" ; then 5277c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5278c2535118Smrg found="yes" 5279c2535118Smrg fi 5280c2535118Smrg fi 52813e747e6dSmrg 52827a2631fcSmrg 52837a2631fcSmrg 52847a2631fcSmrg 52857a2631fcSmrg 52867a2631fcSmrg 52877a2631fcSmrg 52887a2631fcSmrg 52897a2631fcSmrg 52907a2631fcSmrg 52917a2631fcSmrg 52927a2631fcSmrg 52937a2631fcSmrg 5294c2535118Smrg 5295c2535118Smrg 5296c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5297c2535118Smrg 5298c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5299c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53006d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 53016d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 53026d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 53036d8e82c3Smrgthen : 53046d8e82c3Smrg printf %s "(cached) " >&6 53056d8e82c3Smrgelse $as_nop 5306c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5307c2535118Smrg/* end confdefs.h. */ 5308c2535118Smrgint i; 5309c2535118Smrg_ACEOF 53106d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 53116d8e82c3Smrgthen : 5312c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 53136d8e82c3Smrgelse $as_nop 5314c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 5315c2535118Smrgfi 53166d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5317c2535118Smrgfi 53186d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 53196d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5320c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5321c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5322c2535118Smrgfi 5323c2535118Smrg 5324c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5325c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5326c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5327c2535118Smrg fi 5328c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53296d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 53306d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 53316d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 53326d8e82c3Smrgthen : 53336d8e82c3Smrg printf %s "(cached) " >&6 53346d8e82c3Smrgelse $as_nop 5335c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5336c2535118Smrg/* end confdefs.h. */ 5337c2535118Smrgint i; 5338c2535118Smrg_ACEOF 53396d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 53406d8e82c3Smrgthen : 5341c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 53426d8e82c3Smrgelse $as_nop 5343c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5344c2535118Smrgfi 53456d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5346c2535118Smrgfi 53476d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 53486d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5349c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5350c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5351c2535118Smrgfi 5352c2535118Smrg 5353c2535118Smrgfound="no" 5354c2535118Smrg 5355c2535118Smrg if test $found = "no" ; then 5356c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5357c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5358c2535118Smrg fi 5359c2535118Smrg 5360c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5361c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5362c2535118Smrg fi 5363c2535118Smrg 5364c2535118Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 5365c2535118Smrg 53666d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 53676d8e82c3Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5368c2535118Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 53696d8e82c3Smrg if eval test \${$cacheid+y} 53706d8e82c3Smrgthen : 53716d8e82c3Smrg printf %s "(cached) " >&6 53726d8e82c3Smrgelse $as_nop 5373c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5374c2535118Smrg/* end confdefs.h. */ 5375c2535118Smrgint i; 5376c2535118Smrgint 53776d8e82c3Smrgmain (void) 5378c2535118Smrg{ 5379c2535118Smrg 5380c2535118Smrg ; 5381c2535118Smrg return 0; 5382c2535118Smrg} 5383c2535118Smrg_ACEOF 53846d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 53856d8e82c3Smrgthen : 5386c2535118Smrg eval $cacheid=yes 53876d8e82c3Smrgelse $as_nop 5388c2535118Smrg eval $cacheid=no 5389c2535118Smrgfi 53906d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5391c2535118Smrg conftest$ac_exeext conftest.$ac_ext 5392c2535118Smrgfi 5393c2535118Smrg 5394c2535118Smrg 5395c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5396c2535118Smrg 5397c2535118Smrg eval supported=\$$cacheid 53986d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 53996d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 5400c2535118Smrg if test "$supported" = "yes" ; then 5401c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5402c2535118Smrg found="yes" 5403c2535118Smrg fi 5404c2535118Smrg fi 5405c2535118Smrg 5406c2535118Smrg 5407c2535118Smrg 5408c2535118Smrg 5409c2535118Smrg 5410c2535118Smrg 5411c2535118Smrg 5412c2535118Smrg 5413c2535118Smrg 5414c2535118Smrg 5415c2535118Smrg 5416c2535118Smrg 5417c2535118Smrg 5418c2535118Smrg 5419c2535118Smrg 5420c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5421c2535118Smrg 5422c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5423c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54246d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 54256d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 54266d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 54276d8e82c3Smrgthen : 54286d8e82c3Smrg printf %s "(cached) " >&6 54296d8e82c3Smrgelse $as_nop 5430c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5431c2535118Smrg/* end confdefs.h. */ 5432c2535118Smrgint i; 5433c2535118Smrg_ACEOF 54346d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 54356d8e82c3Smrgthen : 5436c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 54376d8e82c3Smrgelse $as_nop 5438c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 5439c2535118Smrgfi 54406d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5441c2535118Smrgfi 54426d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 54436d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5444c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5445c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5446c2535118Smrgfi 5447c2535118Smrg 5448c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5449c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5450c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5451c2535118Smrg fi 5452c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54536d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 54546d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 54556d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 54566d8e82c3Smrgthen : 54576d8e82c3Smrg printf %s "(cached) " >&6 54586d8e82c3Smrgelse $as_nop 5459c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5460c2535118Smrg/* end confdefs.h. */ 5461c2535118Smrgint i; 5462c2535118Smrg_ACEOF 54636d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 54646d8e82c3Smrgthen : 5465c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 54666d8e82c3Smrgelse $as_nop 5467c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5468c2535118Smrgfi 54696d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5470c2535118Smrgfi 54716d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 54726d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5473c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5474c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5475c2535118Smrgfi 5476c2535118Smrg 5477c2535118Smrgfound="no" 5478c2535118Smrg 5479c2535118Smrg if test $found = "no" ; then 5480c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5481c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5482c2535118Smrg fi 5483c2535118Smrg 5484c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5485c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5486c2535118Smrg fi 5487c2535118Smrg 5488c2535118Smrg CFLAGS="$CFLAGS -Wformat=2" 5489c2535118Smrg 54906d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 54916d8e82c3Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; } 54929cd34f4bSmrg cacheid=xorg_cv_cc_flag__Wformat_2 54936d8e82c3Smrg if eval test \${$cacheid+y} 54946d8e82c3Smrgthen : 54956d8e82c3Smrg printf %s "(cached) " >&6 54966d8e82c3Smrgelse $as_nop 5497c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5498c2535118Smrg/* end confdefs.h. */ 5499c2535118Smrgint i; 5500c2535118Smrgint 55016d8e82c3Smrgmain (void) 5502c2535118Smrg{ 5503c2535118Smrg 5504c2535118Smrg ; 5505c2535118Smrg return 0; 5506c2535118Smrg} 5507c2535118Smrg_ACEOF 55086d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 55096d8e82c3Smrgthen : 5510c2535118Smrg eval $cacheid=yes 55116d8e82c3Smrgelse $as_nop 5512c2535118Smrg eval $cacheid=no 5513c2535118Smrgfi 55146d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5515c2535118Smrg conftest$ac_exeext conftest.$ac_ext 5516c2535118Smrgfi 5517c2535118Smrg 5518c2535118Smrg 5519c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5520c2535118Smrg 5521c2535118Smrg eval supported=\$$cacheid 55226d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 55236d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 5524c2535118Smrg if test "$supported" = "yes" ; then 5525c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5526c2535118Smrg found="yes" 5527c2535118Smrg fi 5528c2535118Smrg fi 5529c2535118Smrg 5530c2535118Smrg if test $found = "no" ; then 5531c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5532c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5533c2535118Smrg fi 5534c2535118Smrg 5535c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5536c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5537c2535118Smrg fi 5538c2535118Smrg 5539c2535118Smrg CFLAGS="$CFLAGS -Wformat" 5540c2535118Smrg 55416d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 55426d8e82c3Smrgprintf %s "checking if $CC supports -Wformat... " >&6; } 5543c2535118Smrg cacheid=xorg_cv_cc_flag__Wformat 55446d8e82c3Smrg if eval test \${$cacheid+y} 55456d8e82c3Smrgthen : 55466d8e82c3Smrg printf %s "(cached) " >&6 55476d8e82c3Smrgelse $as_nop 5548c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5549c2535118Smrg/* end confdefs.h. */ 5550c2535118Smrgint i; 5551c2535118Smrgint 55526d8e82c3Smrgmain (void) 5553c2535118Smrg{ 5554c2535118Smrg 5555c2535118Smrg ; 5556c2535118Smrg return 0; 5557c2535118Smrg} 5558c2535118Smrg_ACEOF 55596d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 55606d8e82c3Smrgthen : 5561c2535118Smrg eval $cacheid=yes 55626d8e82c3Smrgelse $as_nop 5563c2535118Smrg eval $cacheid=no 5564c2535118Smrgfi 55656d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5566c2535118Smrg conftest$ac_exeext conftest.$ac_ext 5567c2535118Smrgfi 5568c2535118Smrg 5569c2535118Smrg 5570c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5571c2535118Smrg 5572c2535118Smrg eval supported=\$$cacheid 55736d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 55746d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 5575c2535118Smrg if test "$supported" = "yes" ; then 5576c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5577c2535118Smrg found="yes" 5578c2535118Smrg fi 5579c2535118Smrg fi 5580c2535118Smrg 5581c2535118Smrg 5582c2535118Smrg 5583c2535118Smrg 5584c2535118Smrg 5585c2535118Smrg 5586c2535118Smrg 5587c2535118Smrg 5588c2535118Smrg 5589c2535118Smrg 5590c2535118Smrg 5591c2535118Smrg 5592c2535118Smrg 5593c2535118Smrg 5594c2535118Smrg 5595c2535118Smrg 5596c2535118Smrg 5597c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5598c2535118Smrg 5599c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5600c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56016d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 56026d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 56036d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 56046d8e82c3Smrgthen : 56056d8e82c3Smrg printf %s "(cached) " >&6 56066d8e82c3Smrgelse $as_nop 5607c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5608c2535118Smrg/* end confdefs.h. */ 5609c2535118Smrgint i; 5610c2535118Smrg_ACEOF 56116d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 56126d8e82c3Smrgthen : 5613c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 56146d8e82c3Smrgelse $as_nop 5615c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 5616c2535118Smrgfi 56176d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5618c2535118Smrgfi 56196d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 56206d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5621c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5622c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5623c2535118Smrgfi 5624c2535118Smrg 5625c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5626c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5627c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5628c2535118Smrg fi 5629c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 56306d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 56316d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 56326d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 56336d8e82c3Smrgthen : 56346d8e82c3Smrg printf %s "(cached) " >&6 56356d8e82c3Smrgelse $as_nop 5636c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5637c2535118Smrg/* end confdefs.h. */ 5638c2535118Smrgint i; 5639c2535118Smrg_ACEOF 56406d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 56416d8e82c3Smrgthen : 5642c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 56436d8e82c3Smrgelse $as_nop 5644c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5645c2535118Smrgfi 56466d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5647c2535118Smrgfi 56486d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 56496d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5650c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5651c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5652c2535118Smrgfi 5653c2535118Smrg 5654c2535118Smrgfound="no" 5655c2535118Smrg 5656c2535118Smrg if test $found = "no" ; then 5657c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5658c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5659c2535118Smrg fi 5660c2535118Smrg 5661c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5662c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5663c2535118Smrg fi 5664c2535118Smrg 5665c2535118Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 5666c2535118Smrg 56676d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 56686d8e82c3Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5669c2535118Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 56706d8e82c3Smrg if eval test \${$cacheid+y} 56716d8e82c3Smrgthen : 56726d8e82c3Smrg printf %s "(cached) " >&6 56736d8e82c3Smrgelse $as_nop 5674c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5675c2535118Smrg/* end confdefs.h. */ 5676c2535118Smrgint i; 5677c2535118Smrgint 56786d8e82c3Smrgmain (void) 5679c2535118Smrg{ 5680c2535118Smrg 5681c2535118Smrg ; 5682c2535118Smrg return 0; 5683c2535118Smrg} 5684c2535118Smrg_ACEOF 56856d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 56866d8e82c3Smrgthen : 5687c2535118Smrg eval $cacheid=yes 56886d8e82c3Smrgelse $as_nop 5689c2535118Smrg eval $cacheid=no 5690c2535118Smrgfi 56916d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5692c2535118Smrg conftest$ac_exeext conftest.$ac_ext 5693c2535118Smrgfi 5694c2535118Smrg 5695c2535118Smrg 5696c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5697c2535118Smrg 5698c2535118Smrg eval supported=\$$cacheid 56996d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 57006d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 5701c2535118Smrg if test "$supported" = "yes" ; then 5702c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5703c2535118Smrg found="yes" 5704c2535118Smrg fi 5705c2535118Smrg fi 5706c2535118Smrg 5707c2535118Smrg 5708c2535118Smrg 5709c2535118Smrg 5710c2535118Smrg 5711c2535118Smrg 5712c2535118Smrg 5713c2535118Smrg 5714c2535118Smrg 5715c2535118Smrg 5716c2535118Smrg 5717c2535118Smrg 5718c2535118Smrg 5719c2535118Smrg 5720c2535118Smrg 5721c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5722c2535118Smrg 5723c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5724c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57256d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 57266d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 57276d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 57286d8e82c3Smrgthen : 57296d8e82c3Smrg printf %s "(cached) " >&6 57306d8e82c3Smrgelse $as_nop 5731c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5732c2535118Smrg/* end confdefs.h. */ 5733c2535118Smrgint i; 5734c2535118Smrg_ACEOF 57356d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 57366d8e82c3Smrgthen : 5737c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 57386d8e82c3Smrgelse $as_nop 5739c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 5740c2535118Smrgfi 57416d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5742c2535118Smrgfi 57436d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 57446d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5745c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5746c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5747c2535118Smrgfi 5748c2535118Smrg 5749c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5750c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5751c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5752c2535118Smrg fi 5753c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57546d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 57556d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 57566d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 57576d8e82c3Smrgthen : 57586d8e82c3Smrg printf %s "(cached) " >&6 57596d8e82c3Smrgelse $as_nop 5760c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5761c2535118Smrg/* end confdefs.h. */ 5762c2535118Smrgint i; 5763c2535118Smrg_ACEOF 57646d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 57656d8e82c3Smrgthen : 5766c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 57676d8e82c3Smrgelse $as_nop 5768c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5769c2535118Smrgfi 57706d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5771c2535118Smrgfi 57726d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 57736d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5774c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5775c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5776c2535118Smrgfi 5777c2535118Smrg 5778c2535118Smrgfound="no" 5779c2535118Smrg 5780c2535118Smrg if test $found = "no" ; then 5781c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5782c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5783c2535118Smrg fi 5784c2535118Smrg 5785c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5786c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5787c2535118Smrg fi 5788c2535118Smrg 5789c2535118Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 5790c2535118Smrg 57916d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 57926d8e82c3Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5793c2535118Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 57946d8e82c3Smrg if eval test \${$cacheid+y} 57956d8e82c3Smrgthen : 57966d8e82c3Smrg printf %s "(cached) " >&6 57976d8e82c3Smrgelse $as_nop 5798c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5799c2535118Smrg/* end confdefs.h. */ 5800c2535118Smrgint i; 5801c2535118Smrgint 58026d8e82c3Smrgmain (void) 5803c2535118Smrg{ 5804c2535118Smrg 5805c2535118Smrg ; 5806c2535118Smrg return 0; 5807c2535118Smrg} 5808c2535118Smrg_ACEOF 58096d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 58106d8e82c3Smrgthen : 5811c2535118Smrg eval $cacheid=yes 58126d8e82c3Smrgelse $as_nop 5813c2535118Smrg eval $cacheid=no 5814c2535118Smrgfi 58156d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5816c2535118Smrg conftest$ac_exeext conftest.$ac_ext 5817c2535118Smrgfi 5818c2535118Smrg 5819c2535118Smrg 5820c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5821c2535118Smrg 5822c2535118Smrg eval supported=\$$cacheid 58236d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 58246d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 5825c2535118Smrg if test "$supported" = "yes" ; then 5826c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5827c2535118Smrg found="yes" 5828c2535118Smrg fi 5829c2535118Smrg fi 5830c2535118Smrg 5831c2535118Smrg 5832c2535118Smrg 5833c2535118Smrg 5834c2535118Smrg 5835c2535118Smrg 5836c2535118Smrg 5837c2535118Smrg 5838c2535118Smrg 5839c2535118Smrg 5840c2535118Smrg 5841c2535118Smrg 5842c2535118Smrg 5843c2535118Smrg 5844c2535118Smrg 5845c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5846c2535118Smrg 5847c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5848c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58496d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 58506d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 58516d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 58526d8e82c3Smrgthen : 58536d8e82c3Smrg printf %s "(cached) " >&6 58546d8e82c3Smrgelse $as_nop 5855c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5856c2535118Smrg/* end confdefs.h. */ 5857c2535118Smrgint i; 5858c2535118Smrg_ACEOF 58596d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 58606d8e82c3Smrgthen : 5861c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 58626d8e82c3Smrgelse $as_nop 5863c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 5864c2535118Smrgfi 58656d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5866c2535118Smrgfi 58676d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 58686d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5869c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5870c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5871c2535118Smrgfi 5872c2535118Smrg 5873c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5874c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5875c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5876c2535118Smrg fi 5877c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 58786d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 58796d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 58806d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 58816d8e82c3Smrgthen : 58826d8e82c3Smrg printf %s "(cached) " >&6 58836d8e82c3Smrgelse $as_nop 5884c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5885c2535118Smrg/* end confdefs.h. */ 5886c2535118Smrgint i; 5887c2535118Smrg_ACEOF 58886d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 58896d8e82c3Smrgthen : 5890c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 58916d8e82c3Smrgelse $as_nop 5892c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5893c2535118Smrgfi 58946d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5895c2535118Smrgfi 58966d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 58976d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5898c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5899c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5900c2535118Smrgfi 5901c2535118Smrg 5902c2535118Smrgfound="no" 5903c2535118Smrg 5904c2535118Smrg if test $found = "no" ; then 5905c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5906c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5907c2535118Smrg fi 5908c2535118Smrg 5909c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5910c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5911c2535118Smrg fi 5912c2535118Smrg 5913c2535118Smrg CFLAGS="$CFLAGS -Wnested-externs" 5914c2535118Smrg 59156d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 59166d8e82c3Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; } 5917c2535118Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 59186d8e82c3Smrg if eval test \${$cacheid+y} 59196d8e82c3Smrgthen : 59206d8e82c3Smrg printf %s "(cached) " >&6 59216d8e82c3Smrgelse $as_nop 5922c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5923c2535118Smrg/* end confdefs.h. */ 5924c2535118Smrgint i; 5925c2535118Smrgint 59266d8e82c3Smrgmain (void) 5927c2535118Smrg{ 5928c2535118Smrg 5929c2535118Smrg ; 5930c2535118Smrg return 0; 5931c2535118Smrg} 5932c2535118Smrg_ACEOF 59336d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 59346d8e82c3Smrgthen : 5935c2535118Smrg eval $cacheid=yes 59366d8e82c3Smrgelse $as_nop 5937c2535118Smrg eval $cacheid=no 5938c2535118Smrgfi 59396d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5940c2535118Smrg conftest$ac_exeext conftest.$ac_ext 5941c2535118Smrgfi 5942c2535118Smrg 5943c2535118Smrg 5944c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5945c2535118Smrg 5946c2535118Smrg eval supported=\$$cacheid 59476d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 59486d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 5949c2535118Smrg if test "$supported" = "yes" ; then 5950c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5951c2535118Smrg found="yes" 5952c2535118Smrg fi 5953c2535118Smrg fi 5954c2535118Smrg 5955c2535118Smrg 5956c2535118Smrg 5957c2535118Smrg 5958c2535118Smrg 5959c2535118Smrg 5960c2535118Smrg 5961c2535118Smrg 5962c2535118Smrg 5963c2535118Smrg 5964c2535118Smrg 5965c2535118Smrg 5966c2535118Smrg 5967c2535118Smrg 5968c2535118Smrg 5969c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5970c2535118Smrg 5971c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5972c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59736d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 59746d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 59756d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 59766d8e82c3Smrgthen : 59776d8e82c3Smrg printf %s "(cached) " >&6 59786d8e82c3Smrgelse $as_nop 5979c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5980c2535118Smrg/* end confdefs.h. */ 5981c2535118Smrgint i; 5982c2535118Smrg_ACEOF 59836d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 59846d8e82c3Smrgthen : 5985c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 59866d8e82c3Smrgelse $as_nop 5987c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 5988c2535118Smrgfi 59896d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5990c2535118Smrgfi 59916d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 59926d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5993c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5994c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5995c2535118Smrgfi 5996c2535118Smrg 5997c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5998c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5999c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6000c2535118Smrg fi 6001c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 60026d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 60036d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 60046d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 60056d8e82c3Smrgthen : 60066d8e82c3Smrg printf %s "(cached) " >&6 60076d8e82c3Smrgelse $as_nop 6008c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6009c2535118Smrg/* end confdefs.h. */ 6010c2535118Smrgint i; 6011c2535118Smrg_ACEOF 60126d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 60136d8e82c3Smrgthen : 6014c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 60156d8e82c3Smrgelse $as_nop 6016c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6017c2535118Smrgfi 60186d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6019c2535118Smrgfi 60206d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 60216d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6022c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6023c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6024c2535118Smrgfi 6025c2535118Smrg 6026c2535118Smrgfound="no" 6027c2535118Smrg 6028c2535118Smrg if test $found = "no" ; then 6029c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6030c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6031c2535118Smrg fi 6032c2535118Smrg 6033c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6034c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6035c2535118Smrg fi 6036c2535118Smrg 6037c2535118Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 6038c2535118Smrg 60396d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 60406d8e82c3Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6041c2535118Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 60426d8e82c3Smrg if eval test \${$cacheid+y} 60436d8e82c3Smrgthen : 60446d8e82c3Smrg printf %s "(cached) " >&6 60456d8e82c3Smrgelse $as_nop 6046c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6047c2535118Smrg/* end confdefs.h. */ 6048c2535118Smrgint i; 6049c2535118Smrgint 60506d8e82c3Smrgmain (void) 6051c2535118Smrg{ 6052c2535118Smrg 6053c2535118Smrg ; 6054c2535118Smrg return 0; 6055c2535118Smrg} 6056c2535118Smrg_ACEOF 60576d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 60586d8e82c3Smrgthen : 6059c2535118Smrg eval $cacheid=yes 60606d8e82c3Smrgelse $as_nop 6061c2535118Smrg eval $cacheid=no 6062c2535118Smrgfi 60636d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6064c2535118Smrg conftest$ac_exeext conftest.$ac_ext 6065c2535118Smrgfi 6066c2535118Smrg 6067c2535118Smrg 6068c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6069c2535118Smrg 6070c2535118Smrg eval supported=\$$cacheid 60716d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 60726d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 6073c2535118Smrg if test "$supported" = "yes" ; then 6074c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6075c2535118Smrg found="yes" 6076c2535118Smrg fi 6077c2535118Smrg fi 6078c2535118Smrg 6079c2535118Smrg 6080c2535118Smrg 6081c2535118Smrg 6082c2535118Smrg 6083c2535118Smrg 6084c2535118Smrg 6085c2535118Smrg 6086c2535118Smrg 6087c2535118Smrg 6088c2535118Smrg 6089c2535118Smrg 6090c2535118Smrg 6091c2535118Smrg 6092c2535118Smrg 6093c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6094c2535118Smrg 6095c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6096c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60976d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 60986d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 60996d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 61006d8e82c3Smrgthen : 61016d8e82c3Smrg printf %s "(cached) " >&6 61026d8e82c3Smrgelse $as_nop 6103c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6104c2535118Smrg/* end confdefs.h. */ 6105c2535118Smrgint i; 6106c2535118Smrg_ACEOF 61076d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 61086d8e82c3Smrgthen : 6109c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 61106d8e82c3Smrgelse $as_nop 6111c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 6112c2535118Smrgfi 61136d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6114c2535118Smrgfi 61156d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 61166d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6117c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6118c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6119c2535118Smrgfi 6120c2535118Smrg 6121c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6122c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6123c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6124c2535118Smrg fi 6125c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61266d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 61276d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 61286d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 61296d8e82c3Smrgthen : 61306d8e82c3Smrg printf %s "(cached) " >&6 61316d8e82c3Smrgelse $as_nop 6132c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6133c2535118Smrg/* end confdefs.h. */ 6134c2535118Smrgint i; 6135c2535118Smrg_ACEOF 61366d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 61376d8e82c3Smrgthen : 6138c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 61396d8e82c3Smrgelse $as_nop 6140c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6141c2535118Smrgfi 61426d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6143c2535118Smrgfi 61446d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 61456d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6146c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6147c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6148c2535118Smrgfi 6149c2535118Smrg 6150c2535118Smrgfound="no" 6151c2535118Smrg 6152c2535118Smrg if test $found = "no" ; then 6153c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6154c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6155c2535118Smrg fi 6156c2535118Smrg 6157c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6158c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6159c2535118Smrg fi 6160c2535118Smrg 6161c2535118Smrg CFLAGS="$CFLAGS -Wold-style-definition" 6162c2535118Smrg 61636d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 61646d8e82c3Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6165c2535118Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 61666d8e82c3Smrg if eval test \${$cacheid+y} 61676d8e82c3Smrgthen : 61686d8e82c3Smrg printf %s "(cached) " >&6 61696d8e82c3Smrgelse $as_nop 6170c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6171c2535118Smrg/* end confdefs.h. */ 6172c2535118Smrgint i; 6173c2535118Smrgint 61746d8e82c3Smrgmain (void) 6175c2535118Smrg{ 6176c2535118Smrg 6177c2535118Smrg ; 6178c2535118Smrg return 0; 6179c2535118Smrg} 6180c2535118Smrg_ACEOF 61816d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 61826d8e82c3Smrgthen : 6183c2535118Smrg eval $cacheid=yes 61846d8e82c3Smrgelse $as_nop 6185c2535118Smrg eval $cacheid=no 6186c2535118Smrgfi 61876d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6188c2535118Smrg conftest$ac_exeext conftest.$ac_ext 6189c2535118Smrgfi 6190c2535118Smrg 6191c2535118Smrg 6192c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6193c2535118Smrg 6194c2535118Smrg eval supported=\$$cacheid 61956d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 61966d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 6197c2535118Smrg if test "$supported" = "yes" ; then 6198c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6199c2535118Smrg found="yes" 6200c2535118Smrg fi 6201c2535118Smrg fi 6202c2535118Smrg 62039cd34f4bSmrg if test $found = "no" ; then 62049cd34f4bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 62059cd34f4bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62069cd34f4bSmrg fi 62079cd34f4bSmrg 62089cd34f4bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 62099cd34f4bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62109cd34f4bSmrg fi 62119cd34f4bSmrg 62129cd34f4bSmrg CFLAGS="$CFLAGS -fd" 62139cd34f4bSmrg 62146d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 62156d8e82c3Smrgprintf %s "checking if $CC supports -fd... " >&6; } 62169cd34f4bSmrg cacheid=xorg_cv_cc_flag__fd 62176d8e82c3Smrg if eval test \${$cacheid+y} 62186d8e82c3Smrgthen : 62196d8e82c3Smrg printf %s "(cached) " >&6 62206d8e82c3Smrgelse $as_nop 62219cd34f4bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62229cd34f4bSmrg/* end confdefs.h. */ 62239cd34f4bSmrgint i; 62249cd34f4bSmrgint 62256d8e82c3Smrgmain (void) 62269cd34f4bSmrg{ 62279cd34f4bSmrg 62289cd34f4bSmrg ; 62299cd34f4bSmrg return 0; 62309cd34f4bSmrg} 62319cd34f4bSmrg_ACEOF 62326d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 62336d8e82c3Smrgthen : 62349cd34f4bSmrg eval $cacheid=yes 62356d8e82c3Smrgelse $as_nop 62369cd34f4bSmrg eval $cacheid=no 62379cd34f4bSmrgfi 62386d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 62399cd34f4bSmrg conftest$ac_exeext conftest.$ac_ext 62409cd34f4bSmrgfi 62419cd34f4bSmrg 62429cd34f4bSmrg 62439cd34f4bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 62449cd34f4bSmrg 62459cd34f4bSmrg eval supported=\$$cacheid 62466d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 62476d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 62489cd34f4bSmrg if test "$supported" = "yes" ; then 62499cd34f4bSmrg BASE_CFLAGS="$BASE_CFLAGS -fd" 62509cd34f4bSmrg found="yes" 62519cd34f4bSmrg fi 62529cd34f4bSmrg fi 62539cd34f4bSmrg 6254c2535118Smrg 6255c2535118Smrg 6256c2535118Smrg 6257c2535118Smrg 6258c2535118Smrg 6259c2535118Smrg 6260c2535118Smrg 6261c2535118Smrg 6262c2535118Smrg 6263c2535118Smrg 6264c2535118Smrg 6265c2535118Smrg 6266c2535118Smrg 6267c2535118Smrg 6268c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6269c2535118Smrg 6270c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6271c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62726d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 62736d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 62746d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 62756d8e82c3Smrgthen : 62766d8e82c3Smrg printf %s "(cached) " >&6 62776d8e82c3Smrgelse $as_nop 6278c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6279c2535118Smrg/* end confdefs.h. */ 6280c2535118Smrgint i; 6281c2535118Smrg_ACEOF 62826d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 62836d8e82c3Smrgthen : 6284c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 62856d8e82c3Smrgelse $as_nop 6286c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 6287c2535118Smrgfi 62886d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6289c2535118Smrgfi 62906d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 62916d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6292c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6293c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6294c2535118Smrgfi 6295c2535118Smrg 6296c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6297c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6298c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6299c2535118Smrg fi 6300c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63016d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 63026d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 63036d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 63046d8e82c3Smrgthen : 63056d8e82c3Smrg printf %s "(cached) " >&6 63066d8e82c3Smrgelse $as_nop 6307c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6308c2535118Smrg/* end confdefs.h. */ 6309c2535118Smrgint i; 6310c2535118Smrg_ACEOF 63116d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 63126d8e82c3Smrgthen : 6313c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 63146d8e82c3Smrgelse $as_nop 6315c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6316c2535118Smrgfi 63176d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6318c2535118Smrgfi 63196d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 63206d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6321c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6322c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6323c2535118Smrgfi 6324c2535118Smrg 6325c2535118Smrgfound="no" 6326c2535118Smrg 6327c2535118Smrg if test $found = "no" ; then 6328c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6329c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6330c2535118Smrg fi 6331c2535118Smrg 6332c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6333c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6334c2535118Smrg fi 6335c2535118Smrg 6336c2535118Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6337c2535118Smrg 63386d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 63396d8e82c3Smrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6340c2535118Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 63416d8e82c3Smrg if eval test \${$cacheid+y} 63426d8e82c3Smrgthen : 63436d8e82c3Smrg printf %s "(cached) " >&6 63446d8e82c3Smrgelse $as_nop 6345c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6346c2535118Smrg/* end confdefs.h. */ 6347c2535118Smrgint i; 6348c2535118Smrgint 63496d8e82c3Smrgmain (void) 6350c2535118Smrg{ 6351c2535118Smrg 6352c2535118Smrg ; 6353c2535118Smrg return 0; 6354c2535118Smrg} 6355c2535118Smrg_ACEOF 63566d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 63576d8e82c3Smrgthen : 6358c2535118Smrg eval $cacheid=yes 63596d8e82c3Smrgelse $as_nop 6360c2535118Smrg eval $cacheid=no 6361c2535118Smrgfi 63626d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6363c2535118Smrg conftest$ac_exeext conftest.$ac_ext 6364c2535118Smrgfi 6365c2535118Smrg 6366c2535118Smrg 6367c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6368c2535118Smrg 6369c2535118Smrg eval supported=\$$cacheid 63706d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 63716d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 6372c2535118Smrg if test "$supported" = "yes" ; then 6373c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6374c2535118Smrg found="yes" 6375c2535118Smrg fi 6376c2535118Smrg fi 6377c2535118Smrg 6378c2535118Smrg 6379c2535118Smrg 6380c2535118Smrg 6381c2535118Smrg 6382c2535118Smrg# This chunk adds additional warnings that could catch undesired effects. 6383c2535118Smrg 6384c2535118Smrg 6385c2535118Smrg 6386c2535118Smrg 6387c2535118Smrg 6388c2535118Smrg 6389c2535118Smrg 6390c2535118Smrg 6391c2535118Smrg 6392c2535118Smrg 6393c2535118Smrg 6394c2535118Smrg 6395c2535118Smrg 6396c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6397c2535118Smrg 6398c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6399c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64006d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 64016d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 64026d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 64036d8e82c3Smrgthen : 64046d8e82c3Smrg printf %s "(cached) " >&6 64056d8e82c3Smrgelse $as_nop 6406c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6407c2535118Smrg/* end confdefs.h. */ 6408c2535118Smrgint i; 6409c2535118Smrg_ACEOF 64106d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 64116d8e82c3Smrgthen : 6412c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 64136d8e82c3Smrgelse $as_nop 6414c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 6415c2535118Smrgfi 64166d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6417c2535118Smrgfi 64186d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 64196d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6420c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6421c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6422c2535118Smrgfi 6423c2535118Smrg 6424c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6425c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6426c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6427c2535118Smrg fi 6428c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64296d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 64306d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 64316d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 64326d8e82c3Smrgthen : 64336d8e82c3Smrg printf %s "(cached) " >&6 64346d8e82c3Smrgelse $as_nop 6435c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6436c2535118Smrg/* end confdefs.h. */ 6437c2535118Smrgint i; 6438c2535118Smrg_ACEOF 64396d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 64406d8e82c3Smrgthen : 6441c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 64426d8e82c3Smrgelse $as_nop 6443c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6444c2535118Smrgfi 64456d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6446c2535118Smrgfi 64476d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 64486d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6449c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6450c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6451c2535118Smrgfi 6452c2535118Smrg 6453c2535118Smrgfound="no" 6454c2535118Smrg 6455c2535118Smrg if test $found = "no" ; then 6456c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6457c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6458c2535118Smrg fi 6459c2535118Smrg 6460c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6461c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6462c2535118Smrg fi 6463c2535118Smrg 6464c2535118Smrg CFLAGS="$CFLAGS -Wunused" 6465c2535118Smrg 64666d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 64676d8e82c3Smrgprintf %s "checking if $CC supports -Wunused... " >&6; } 6468c2535118Smrg cacheid=xorg_cv_cc_flag__Wunused 64696d8e82c3Smrg if eval test \${$cacheid+y} 64706d8e82c3Smrgthen : 64716d8e82c3Smrg printf %s "(cached) " >&6 64726d8e82c3Smrgelse $as_nop 6473c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6474c2535118Smrg/* end confdefs.h. */ 6475c2535118Smrgint i; 6476c2535118Smrgint 64776d8e82c3Smrgmain (void) 6478c2535118Smrg{ 6479c2535118Smrg 6480c2535118Smrg ; 6481c2535118Smrg return 0; 6482c2535118Smrg} 6483c2535118Smrg_ACEOF 64846d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 64856d8e82c3Smrgthen : 6486c2535118Smrg eval $cacheid=yes 64876d8e82c3Smrgelse $as_nop 6488c2535118Smrg eval $cacheid=no 6489c2535118Smrgfi 64906d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6491c2535118Smrg conftest$ac_exeext conftest.$ac_ext 6492c2535118Smrgfi 6493c2535118Smrg 6494c2535118Smrg 6495c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6496c2535118Smrg 6497c2535118Smrg eval supported=\$$cacheid 64986d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 64996d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 6500c2535118Smrg if test "$supported" = "yes" ; then 6501c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6502c2535118Smrg found="yes" 6503c2535118Smrg fi 6504c2535118Smrg fi 6505c2535118Smrg 6506c2535118Smrg 6507c2535118Smrg 6508c2535118Smrg 6509c2535118Smrg 6510c2535118Smrg 6511c2535118Smrg 6512c2535118Smrg 6513c2535118Smrg 6514c2535118Smrg 6515c2535118Smrg 6516c2535118Smrg 6517c2535118Smrg 6518c2535118Smrg 6519c2535118Smrg 6520c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6521c2535118Smrg 6522c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6523c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65246d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 65256d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 65266d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 65276d8e82c3Smrgthen : 65286d8e82c3Smrg printf %s "(cached) " >&6 65296d8e82c3Smrgelse $as_nop 6530c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6531c2535118Smrg/* end confdefs.h. */ 6532c2535118Smrgint i; 6533c2535118Smrg_ACEOF 65346d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 65356d8e82c3Smrgthen : 6536c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 65376d8e82c3Smrgelse $as_nop 6538c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 6539c2535118Smrgfi 65406d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6541c2535118Smrgfi 65426d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 65436d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6544c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6545c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6546c2535118Smrgfi 6547c2535118Smrg 6548c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6549c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6550c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6551c2535118Smrg fi 6552c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 65536d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 65546d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 65556d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 65566d8e82c3Smrgthen : 65576d8e82c3Smrg printf %s "(cached) " >&6 65586d8e82c3Smrgelse $as_nop 6559c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6560c2535118Smrg/* end confdefs.h. */ 6561c2535118Smrgint i; 6562c2535118Smrg_ACEOF 65636d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 65646d8e82c3Smrgthen : 6565c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 65666d8e82c3Smrgelse $as_nop 6567c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6568c2535118Smrgfi 65696d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6570c2535118Smrgfi 65716d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 65726d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6573c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6574c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6575c2535118Smrgfi 6576c2535118Smrg 6577c2535118Smrgfound="no" 6578c2535118Smrg 6579c2535118Smrg if test $found = "no" ; then 6580c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6581c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6582c2535118Smrg fi 6583c2535118Smrg 6584c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6585c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6586c2535118Smrg fi 6587c2535118Smrg 6588c2535118Smrg CFLAGS="$CFLAGS -Wuninitialized" 6589c2535118Smrg 65906d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 65916d8e82c3Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; } 6592c2535118Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 65936d8e82c3Smrg if eval test \${$cacheid+y} 65946d8e82c3Smrgthen : 65956d8e82c3Smrg printf %s "(cached) " >&6 65966d8e82c3Smrgelse $as_nop 6597c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6598c2535118Smrg/* end confdefs.h. */ 6599c2535118Smrgint i; 6600c2535118Smrgint 66016d8e82c3Smrgmain (void) 6602c2535118Smrg{ 6603c2535118Smrg 6604c2535118Smrg ; 6605c2535118Smrg return 0; 6606c2535118Smrg} 6607c2535118Smrg_ACEOF 66086d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 66096d8e82c3Smrgthen : 6610c2535118Smrg eval $cacheid=yes 66116d8e82c3Smrgelse $as_nop 6612c2535118Smrg eval $cacheid=no 6613c2535118Smrgfi 66146d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6615c2535118Smrg conftest$ac_exeext conftest.$ac_ext 6616c2535118Smrgfi 6617c2535118Smrg 6618c2535118Smrg 6619c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6620c2535118Smrg 6621c2535118Smrg eval supported=\$$cacheid 66226d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 66236d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 6624c2535118Smrg if test "$supported" = "yes" ; then 6625c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6626c2535118Smrg found="yes" 6627c2535118Smrg fi 6628c2535118Smrg fi 6629c2535118Smrg 6630c2535118Smrg 6631c2535118Smrg 6632c2535118Smrg 6633c2535118Smrg 6634c2535118Smrg 6635c2535118Smrg 6636c2535118Smrg 6637c2535118Smrg 6638c2535118Smrg 6639c2535118Smrg 6640c2535118Smrg 6641c2535118Smrg 6642c2535118Smrg 6643c2535118Smrg 6644c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6645c2535118Smrg 6646c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6647c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66486d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 66496d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 66506d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 66516d8e82c3Smrgthen : 66526d8e82c3Smrg printf %s "(cached) " >&6 66536d8e82c3Smrgelse $as_nop 6654c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6655c2535118Smrg/* end confdefs.h. */ 6656c2535118Smrgint i; 6657c2535118Smrg_ACEOF 66586d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 66596d8e82c3Smrgthen : 6660c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 66616d8e82c3Smrgelse $as_nop 6662c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 6663c2535118Smrgfi 66646d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6665c2535118Smrgfi 66666d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 66676d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6668c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6669c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6670c2535118Smrgfi 6671c2535118Smrg 6672c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6673c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6674c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6675c2535118Smrg fi 6676c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66776d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 66786d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 66796d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 66806d8e82c3Smrgthen : 66816d8e82c3Smrg printf %s "(cached) " >&6 66826d8e82c3Smrgelse $as_nop 6683c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6684c2535118Smrg/* end confdefs.h. */ 6685c2535118Smrgint i; 6686c2535118Smrg_ACEOF 66876d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 66886d8e82c3Smrgthen : 6689c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 66906d8e82c3Smrgelse $as_nop 6691c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6692c2535118Smrgfi 66936d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6694c2535118Smrgfi 66956d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 66966d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6697c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6698c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6699c2535118Smrgfi 6700c2535118Smrg 6701c2535118Smrgfound="no" 6702c2535118Smrg 6703c2535118Smrg if test $found = "no" ; then 6704c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6705c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6706c2535118Smrg fi 6707c2535118Smrg 6708c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6709c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6710c2535118Smrg fi 6711c2535118Smrg 6712c2535118Smrg CFLAGS="$CFLAGS -Wshadow" 6713c2535118Smrg 67146d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 67156d8e82c3Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; } 6716c2535118Smrg cacheid=xorg_cv_cc_flag__Wshadow 67176d8e82c3Smrg if eval test \${$cacheid+y} 67186d8e82c3Smrgthen : 67196d8e82c3Smrg printf %s "(cached) " >&6 67206d8e82c3Smrgelse $as_nop 6721c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6722c2535118Smrg/* end confdefs.h. */ 6723c2535118Smrgint i; 6724c2535118Smrgint 67256d8e82c3Smrgmain (void) 6726c2535118Smrg{ 6727c2535118Smrg 6728c2535118Smrg ; 6729c2535118Smrg return 0; 6730c2535118Smrg} 6731c2535118Smrg_ACEOF 67326d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 67336d8e82c3Smrgthen : 6734c2535118Smrg eval $cacheid=yes 67356d8e82c3Smrgelse $as_nop 6736c2535118Smrg eval $cacheid=no 6737c2535118Smrgfi 67386d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6739c2535118Smrg conftest$ac_exeext conftest.$ac_ext 6740c2535118Smrgfi 6741c2535118Smrg 6742c2535118Smrg 6743c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6744c2535118Smrg 6745c2535118Smrg eval supported=\$$cacheid 67466d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 67476d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 6748c2535118Smrg if test "$supported" = "yes" ; then 6749c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6750c2535118Smrg found="yes" 6751c2535118Smrg fi 6752c2535118Smrg fi 6753c2535118Smrg 6754c2535118Smrg 6755c2535118Smrg 6756c2535118Smrg 6757c2535118Smrg 6758c2535118Smrg 6759c2535118Smrg 6760c2535118Smrg 6761c2535118Smrg 6762c2535118Smrg 6763c2535118Smrg 6764c2535118Smrg 6765c2535118Smrg 6766c2535118Smrg 6767c2535118Smrg 6768c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6769c2535118Smrg 6770c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6771c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67726d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 67736d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 67746d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 67756d8e82c3Smrgthen : 67766d8e82c3Smrg printf %s "(cached) " >&6 67776d8e82c3Smrgelse $as_nop 6778c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6779c2535118Smrg/* end confdefs.h. */ 6780c2535118Smrgint i; 6781c2535118Smrg_ACEOF 67826d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 67836d8e82c3Smrgthen : 6784c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 67856d8e82c3Smrgelse $as_nop 6786c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 6787c2535118Smrgfi 67886d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6789c2535118Smrgfi 67906d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 67916d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6792c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6793c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6794c2535118Smrgfi 6795c2535118Smrg 6796c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6797c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6798c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6799c2535118Smrg fi 6800c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68016d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 68026d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 68036d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 68046d8e82c3Smrgthen : 68056d8e82c3Smrg printf %s "(cached) " >&6 68066d8e82c3Smrgelse $as_nop 6807c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6808c2535118Smrg/* end confdefs.h. */ 6809c2535118Smrgint i; 6810c2535118Smrg_ACEOF 68116d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 68126d8e82c3Smrgthen : 6813c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 68146d8e82c3Smrgelse $as_nop 6815c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6816c2535118Smrgfi 68176d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6818c2535118Smrgfi 68196d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 68206d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6821c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6822c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6823c2535118Smrgfi 6824c2535118Smrg 6825c2535118Smrgfound="no" 6826c2535118Smrg 6827c2535118Smrg if test $found = "no" ; then 6828c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6829c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6830c2535118Smrg fi 6831c2535118Smrg 6832c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6833c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6834c2535118Smrg fi 6835c2535118Smrg 68369cd34f4bSmrg CFLAGS="$CFLAGS -Wmissing-noreturn" 6837c2535118Smrg 68386d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 68396d8e82c3Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 68409cd34f4bSmrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 68416d8e82c3Smrg if eval test \${$cacheid+y} 68426d8e82c3Smrgthen : 68436d8e82c3Smrg printf %s "(cached) " >&6 68446d8e82c3Smrgelse $as_nop 6845c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6846c2535118Smrg/* end confdefs.h. */ 6847c2535118Smrgint i; 6848c2535118Smrgint 68496d8e82c3Smrgmain (void) 6850c2535118Smrg{ 6851c2535118Smrg 6852c2535118Smrg ; 6853c2535118Smrg return 0; 6854c2535118Smrg} 6855c2535118Smrg_ACEOF 68566d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 68576d8e82c3Smrgthen : 6858c2535118Smrg eval $cacheid=yes 68596d8e82c3Smrgelse $as_nop 6860c2535118Smrg eval $cacheid=no 6861c2535118Smrgfi 68626d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6863c2535118Smrg conftest$ac_exeext conftest.$ac_ext 6864c2535118Smrgfi 6865c2535118Smrg 6866c2535118Smrg 6867c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6868c2535118Smrg 6869c2535118Smrg eval supported=\$$cacheid 68706d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 68716d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 6872c2535118Smrg if test "$supported" = "yes" ; then 68739cd34f4bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6874c2535118Smrg found="yes" 6875c2535118Smrg fi 6876c2535118Smrg fi 6877c2535118Smrg 6878c2535118Smrg 6879c2535118Smrg 6880c2535118Smrg 6881c2535118Smrg 6882c2535118Smrg 6883c2535118Smrg 6884c2535118Smrg 6885c2535118Smrg 6886c2535118Smrg 6887c2535118Smrg 6888c2535118Smrg 6889c2535118Smrg 6890c2535118Smrg 6891c2535118Smrg 6892c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6893c2535118Smrg 6894c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6895c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68966d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 68976d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 68986d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 68996d8e82c3Smrgthen : 69006d8e82c3Smrg printf %s "(cached) " >&6 69016d8e82c3Smrgelse $as_nop 6902c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6903c2535118Smrg/* end confdefs.h. */ 6904c2535118Smrgint i; 6905c2535118Smrg_ACEOF 69066d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 69076d8e82c3Smrgthen : 6908c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 69096d8e82c3Smrgelse $as_nop 6910c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 6911c2535118Smrgfi 69126d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6913c2535118Smrgfi 69146d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 69156d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6916c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6917c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6918c2535118Smrgfi 6919c2535118Smrg 6920c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6921c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6922c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6923c2535118Smrg fi 6924c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69256d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 69266d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 69276d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 69286d8e82c3Smrgthen : 69296d8e82c3Smrg printf %s "(cached) " >&6 69306d8e82c3Smrgelse $as_nop 6931c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6932c2535118Smrg/* end confdefs.h. */ 6933c2535118Smrgint i; 6934c2535118Smrg_ACEOF 69356d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 69366d8e82c3Smrgthen : 6937c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 69386d8e82c3Smrgelse $as_nop 6939c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6940c2535118Smrgfi 69416d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6942c2535118Smrgfi 69436d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 69446d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6945c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6946c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6947c2535118Smrgfi 6948c2535118Smrg 6949c2535118Smrgfound="no" 6950c2535118Smrg 6951c2535118Smrg if test $found = "no" ; then 6952c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6953c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6954c2535118Smrg fi 6955c2535118Smrg 6956c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6957c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6958c2535118Smrg fi 6959c2535118Smrg 69609cd34f4bSmrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 6961c2535118Smrg 69626d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 69636d8e82c3Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 69649cd34f4bSmrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 69656d8e82c3Smrg if eval test \${$cacheid+y} 69666d8e82c3Smrgthen : 69676d8e82c3Smrg printf %s "(cached) " >&6 69686d8e82c3Smrgelse $as_nop 6969c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6970c2535118Smrg/* end confdefs.h. */ 6971c2535118Smrgint i; 6972c2535118Smrgint 69736d8e82c3Smrgmain (void) 6974c2535118Smrg{ 6975c2535118Smrg 6976c2535118Smrg ; 6977c2535118Smrg return 0; 6978c2535118Smrg} 6979c2535118Smrg_ACEOF 69806d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 69816d8e82c3Smrgthen : 6982c2535118Smrg eval $cacheid=yes 69836d8e82c3Smrgelse $as_nop 6984c2535118Smrg eval $cacheid=no 6985c2535118Smrgfi 69866d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6987c2535118Smrg conftest$ac_exeext conftest.$ac_ext 6988c2535118Smrgfi 6989c2535118Smrg 6990c2535118Smrg 6991c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6992c2535118Smrg 6993c2535118Smrg eval supported=\$$cacheid 69946d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 69956d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 6996c2535118Smrg if test "$supported" = "yes" ; then 69979cd34f4bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6998c2535118Smrg found="yes" 6999c2535118Smrg fi 7000c2535118Smrg fi 7001c2535118Smrg 7002c2535118Smrg 7003c2535118Smrg 7004c2535118Smrg 7005c2535118Smrg 7006c2535118Smrg 7007c2535118Smrg 7008c2535118Smrg 7009c2535118Smrg 7010c2535118Smrg 7011c2535118Smrg 7012c2535118Smrg 7013c2535118Smrg 7014c2535118Smrg 7015c2535118Smrg 7016c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7017c2535118Smrg 7018c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7019c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70206d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 70216d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 70226d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 70236d8e82c3Smrgthen : 70246d8e82c3Smrg printf %s "(cached) " >&6 70256d8e82c3Smrgelse $as_nop 7026c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7027c2535118Smrg/* end confdefs.h. */ 7028c2535118Smrgint i; 7029c2535118Smrg_ACEOF 70306d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 70316d8e82c3Smrgthen : 7032c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 70336d8e82c3Smrgelse $as_nop 7034c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 7035c2535118Smrgfi 70366d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7037c2535118Smrgfi 70386d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 70396d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7040c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7041c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7042c2535118Smrgfi 7043c2535118Smrg 7044c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7045c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7046c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7047c2535118Smrg fi 7048c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70496d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 70506d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 70516d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 70526d8e82c3Smrgthen : 70536d8e82c3Smrg printf %s "(cached) " >&6 70546d8e82c3Smrgelse $as_nop 7055c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7056c2535118Smrg/* end confdefs.h. */ 7057c2535118Smrgint i; 7058c2535118Smrg_ACEOF 70596d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 70606d8e82c3Smrgthen : 7061c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 70626d8e82c3Smrgelse $as_nop 7063c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7064c2535118Smrgfi 70656d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7066c2535118Smrgfi 70676d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 70686d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7069c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7070c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7071c2535118Smrgfi 7072c2535118Smrg 7073c2535118Smrgfound="no" 7074c2535118Smrg 7075c2535118Smrg if test $found = "no" ; then 7076c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7077c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7078c2535118Smrg fi 7079c2535118Smrg 7080c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7081c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7082c2535118Smrg fi 7083c2535118Smrg 70849cd34f4bSmrg CFLAGS="$CFLAGS -Wredundant-decls" 7085c2535118Smrg 70866d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 70876d8e82c3Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; } 70889cd34f4bSmrg cacheid=xorg_cv_cc_flag__Wredundant_decls 70896d8e82c3Smrg if eval test \${$cacheid+y} 70906d8e82c3Smrgthen : 70916d8e82c3Smrg printf %s "(cached) " >&6 70926d8e82c3Smrgelse $as_nop 7093c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7094c2535118Smrg/* end confdefs.h. */ 7095c2535118Smrgint i; 7096c2535118Smrgint 70976d8e82c3Smrgmain (void) 7098c2535118Smrg{ 7099c2535118Smrg 7100c2535118Smrg ; 7101c2535118Smrg return 0; 7102c2535118Smrg} 7103c2535118Smrg_ACEOF 71046d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 71056d8e82c3Smrgthen : 7106c2535118Smrg eval $cacheid=yes 71076d8e82c3Smrgelse $as_nop 7108c2535118Smrg eval $cacheid=no 7109c2535118Smrgfi 71106d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7111c2535118Smrg conftest$ac_exeext conftest.$ac_ext 7112c2535118Smrgfi 7113c2535118Smrg 7114c2535118Smrg 7115c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7116c2535118Smrg 7117c2535118Smrg eval supported=\$$cacheid 71186d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 71196d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 7120c2535118Smrg if test "$supported" = "yes" ; then 71219cd34f4bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7122c2535118Smrg found="yes" 7123c2535118Smrg fi 7124c2535118Smrg fi 7125c2535118Smrg 7126c2535118Smrg 7127c2535118Smrg 7128c2535118Smrg 7129c2535118Smrg 7130c2535118Smrg 7131c2535118Smrg 7132c2535118Smrg 7133c2535118Smrg 7134c2535118Smrg 7135c2535118Smrg 7136c2535118Smrg 7137c2535118Smrg 7138c2535118Smrg 7139c2535118Smrg 7140c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7141c2535118Smrg 7142c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7143c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71446d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 71456d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 71466d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 71476d8e82c3Smrgthen : 71486d8e82c3Smrg printf %s "(cached) " >&6 71496d8e82c3Smrgelse $as_nop 7150c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7151c2535118Smrg/* end confdefs.h. */ 7152c2535118Smrgint i; 7153c2535118Smrg_ACEOF 71546d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 71556d8e82c3Smrgthen : 7156c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 71576d8e82c3Smrgelse $as_nop 7158c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 7159c2535118Smrgfi 71606d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7161c2535118Smrgfi 71626d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 71636d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7164c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7165c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7166c2535118Smrgfi 7167c2535118Smrg 7168c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7169c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7170c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7171c2535118Smrg fi 7172c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71736d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 71746d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 71756d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 71766d8e82c3Smrgthen : 71776d8e82c3Smrg printf %s "(cached) " >&6 71786d8e82c3Smrgelse $as_nop 7179c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7180c2535118Smrg/* end confdefs.h. */ 7181c2535118Smrgint i; 7182c2535118Smrg_ACEOF 71836d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 71846d8e82c3Smrgthen : 7185c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 71866d8e82c3Smrgelse $as_nop 7187c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7188c2535118Smrgfi 71896d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7190c2535118Smrgfi 71916d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 71926d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7193c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7194c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7195c2535118Smrgfi 7196c2535118Smrg 7197c2535118Smrgfound="no" 7198c2535118Smrg 7199c2535118Smrg if test $found = "no" ; then 7200c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7201c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7202c2535118Smrg fi 7203c2535118Smrg 7204c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7205c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7206c2535118Smrg fi 7207c2535118Smrg 72089cd34f4bSmrg CFLAGS="$CFLAGS -Wlogical-op" 7209c2535118Smrg 72106d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 72116d8e82c3Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; } 72129cd34f4bSmrg cacheid=xorg_cv_cc_flag__Wlogical_op 72136d8e82c3Smrg if eval test \${$cacheid+y} 72146d8e82c3Smrgthen : 72156d8e82c3Smrg printf %s "(cached) " >&6 72166d8e82c3Smrgelse $as_nop 7217c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7218c2535118Smrg/* end confdefs.h. */ 7219c2535118Smrgint i; 7220c2535118Smrgint 72216d8e82c3Smrgmain (void) 7222c2535118Smrg{ 7223c2535118Smrg 7224c2535118Smrg ; 7225c2535118Smrg return 0; 7226c2535118Smrg} 7227c2535118Smrg_ACEOF 72286d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 72296d8e82c3Smrgthen : 7230c2535118Smrg eval $cacheid=yes 72316d8e82c3Smrgelse $as_nop 7232c2535118Smrg eval $cacheid=no 7233c2535118Smrgfi 72346d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7235c2535118Smrg conftest$ac_exeext conftest.$ac_ext 7236c2535118Smrgfi 7237c2535118Smrg 7238c2535118Smrg 7239c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7240c2535118Smrg 7241c2535118Smrg eval supported=\$$cacheid 72426d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 72436d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 7244c2535118Smrg if test "$supported" = "yes" ; then 72459cd34f4bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7246c2535118Smrg found="yes" 7247c2535118Smrg fi 7248c2535118Smrg fi 7249c2535118Smrg 7250c2535118Smrg 7251c2535118Smrg 7252c2535118Smrg# These are currently disabled because they are noisy. They will be enabled 7253c2535118Smrg# in the future once the codebase is sufficiently modernized to silence 7254c2535118Smrg# them. For now, I don't want them to drown out the other warnings. 7255c2535118Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7256c2535118Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 72579cd34f4bSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7258c2535118Smrg 7259c2535118Smrg# Turn some warnings into errors, so we don't accidently get successful builds 7260c2535118Smrg# when there are problems that should be fixed. 7261c2535118Smrg 7262c2535118Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 7263c2535118Smrg 7264c2535118Smrg 7265c2535118Smrg 7266c2535118Smrg 7267c2535118Smrg 7268c2535118Smrg 7269c2535118Smrg 7270c2535118Smrg 7271c2535118Smrg 7272c2535118Smrg 7273c2535118Smrg 7274c2535118Smrg 7275c2535118Smrg 7276c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7277c2535118Smrg 7278c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7279c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72806d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 72816d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 72826d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 72836d8e82c3Smrgthen : 72846d8e82c3Smrg printf %s "(cached) " >&6 72856d8e82c3Smrgelse $as_nop 7286c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7287c2535118Smrg/* end confdefs.h. */ 7288c2535118Smrgint i; 7289c2535118Smrg_ACEOF 72906d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 72916d8e82c3Smrgthen : 7292c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 72936d8e82c3Smrgelse $as_nop 7294c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 7295c2535118Smrgfi 72966d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7297c2535118Smrgfi 72986d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 72996d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7300c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7301c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7302c2535118Smrgfi 7303c2535118Smrg 7304c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7305c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7306c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7307c2535118Smrg fi 7308c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73096d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 73106d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 73116d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 73126d8e82c3Smrgthen : 73136d8e82c3Smrg printf %s "(cached) " >&6 73146d8e82c3Smrgelse $as_nop 7315c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316c2535118Smrg/* end confdefs.h. */ 7317c2535118Smrgint i; 7318c2535118Smrg_ACEOF 73196d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 73206d8e82c3Smrgthen : 7321c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 73226d8e82c3Smrgelse $as_nop 7323c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7324c2535118Smrgfi 73256d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7326c2535118Smrgfi 73276d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 73286d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7329c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7330c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7331c2535118Smrgfi 7332c2535118Smrg 7333c2535118Smrgfound="no" 7334c2535118Smrg 7335c2535118Smrg if test $found = "no" ; then 7336c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7337c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7338c2535118Smrg fi 7339c2535118Smrg 7340c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7341c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7342c2535118Smrg fi 7343c2535118Smrg 7344c2535118Smrg CFLAGS="$CFLAGS -Werror=implicit" 7345c2535118Smrg 73466d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 73476d8e82c3Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; } 73489cd34f4bSmrg cacheid=xorg_cv_cc_flag__Werror_implicit 73496d8e82c3Smrg if eval test \${$cacheid+y} 73506d8e82c3Smrgthen : 73516d8e82c3Smrg printf %s "(cached) " >&6 73526d8e82c3Smrgelse $as_nop 7353c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7354c2535118Smrg/* end confdefs.h. */ 7355c2535118Smrgint i; 7356c2535118Smrgint 73576d8e82c3Smrgmain (void) 7358c2535118Smrg{ 7359c2535118Smrg 7360c2535118Smrg ; 7361c2535118Smrg return 0; 7362c2535118Smrg} 7363c2535118Smrg_ACEOF 73646d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 73656d8e82c3Smrgthen : 7366c2535118Smrg eval $cacheid=yes 73676d8e82c3Smrgelse $as_nop 7368c2535118Smrg eval $cacheid=no 7369c2535118Smrgfi 73706d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7371c2535118Smrg conftest$ac_exeext conftest.$ac_ext 7372c2535118Smrgfi 7373c2535118Smrg 7374c2535118Smrg 7375c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7376c2535118Smrg 7377c2535118Smrg eval supported=\$$cacheid 73786d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 73796d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 7380c2535118Smrg if test "$supported" = "yes" ; then 7381c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7382c2535118Smrg found="yes" 7383c2535118Smrg fi 7384c2535118Smrg fi 7385c2535118Smrg 7386c2535118Smrg if test $found = "no" ; then 7387c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7388c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7389c2535118Smrg fi 7390c2535118Smrg 7391c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7392c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7393c2535118Smrg fi 7394c2535118Smrg 7395c2535118Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7396c2535118Smrg 73976d8e82c3Smrg { 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 73986d8e82c3Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 73999cd34f4bSmrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 74006d8e82c3Smrg if eval test \${$cacheid+y} 74016d8e82c3Smrgthen : 74026d8e82c3Smrg printf %s "(cached) " >&6 74036d8e82c3Smrgelse $as_nop 7404c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7405c2535118Smrg/* end confdefs.h. */ 7406c2535118Smrgint i; 7407c2535118Smrgint 74086d8e82c3Smrgmain (void) 7409c2535118Smrg{ 7410c2535118Smrg 7411c2535118Smrg ; 7412c2535118Smrg return 0; 7413c2535118Smrg} 7414c2535118Smrg_ACEOF 74156d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 74166d8e82c3Smrgthen : 7417c2535118Smrg eval $cacheid=yes 74186d8e82c3Smrgelse $as_nop 7419c2535118Smrg eval $cacheid=no 7420c2535118Smrgfi 74216d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7422c2535118Smrg conftest$ac_exeext conftest.$ac_ext 7423c2535118Smrgfi 7424c2535118Smrg 7425c2535118Smrg 7426c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7427c2535118Smrg 7428c2535118Smrg eval supported=\$$cacheid 74296d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 74306d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 7431c2535118Smrg if test "$supported" = "yes" ; then 7432c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7433c2535118Smrg found="yes" 7434c2535118Smrg fi 7435c2535118Smrg fi 7436c2535118Smrg 7437c2535118Smrg 7438c2535118Smrg 7439c2535118Smrg 7440c2535118Smrg 7441c2535118Smrg 7442c2535118Smrg 7443c2535118Smrg 7444c2535118Smrg 7445c2535118Smrg 7446c2535118Smrg 7447c2535118Smrg 7448c2535118Smrg 7449c2535118Smrg 7450c2535118Smrg 7451c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7452c2535118Smrg 7453c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7454c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74556d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 74566d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 74576d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 74586d8e82c3Smrgthen : 74596d8e82c3Smrg printf %s "(cached) " >&6 74606d8e82c3Smrgelse $as_nop 7461c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7462c2535118Smrg/* end confdefs.h. */ 7463c2535118Smrgint i; 7464c2535118Smrg_ACEOF 74656d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 74666d8e82c3Smrgthen : 7467c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 74686d8e82c3Smrgelse $as_nop 7469c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 7470c2535118Smrgfi 74716d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7472c2535118Smrgfi 74736d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 74746d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7475c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7476c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7477c2535118Smrgfi 7478c2535118Smrg 7479c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7480c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7481c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7482c2535118Smrg fi 7483c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 74846d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 74856d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 74866d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 74876d8e82c3Smrgthen : 74886d8e82c3Smrg printf %s "(cached) " >&6 74896d8e82c3Smrgelse $as_nop 7490c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7491c2535118Smrg/* end confdefs.h. */ 7492c2535118Smrgint i; 7493c2535118Smrg_ACEOF 74946d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 74956d8e82c3Smrgthen : 7496c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 74976d8e82c3Smrgelse $as_nop 7498c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7499c2535118Smrgfi 75006d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7501c2535118Smrgfi 75026d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 75036d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7504c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7505c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7506c2535118Smrgfi 7507c2535118Smrg 7508c2535118Smrgfound="no" 7509c2535118Smrg 7510c2535118Smrg if test $found = "no" ; then 7511c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7512c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7513c2535118Smrg fi 7514c2535118Smrg 7515c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7516c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7517c2535118Smrg fi 7518c2535118Smrg 7519c2535118Smrg CFLAGS="$CFLAGS -Werror=nonnull" 7520c2535118Smrg 75216d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 75226d8e82c3Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; } 75239cd34f4bSmrg cacheid=xorg_cv_cc_flag__Werror_nonnull 75246d8e82c3Smrg if eval test \${$cacheid+y} 75256d8e82c3Smrgthen : 75266d8e82c3Smrg printf %s "(cached) " >&6 75276d8e82c3Smrgelse $as_nop 7528c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7529c2535118Smrg/* end confdefs.h. */ 7530c2535118Smrgint i; 7531c2535118Smrgint 75326d8e82c3Smrgmain (void) 7533c2535118Smrg{ 7534c2535118Smrg 7535c2535118Smrg ; 7536c2535118Smrg return 0; 7537c2535118Smrg} 7538c2535118Smrg_ACEOF 75396d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 75406d8e82c3Smrgthen : 7541c2535118Smrg eval $cacheid=yes 75426d8e82c3Smrgelse $as_nop 7543c2535118Smrg eval $cacheid=no 7544c2535118Smrgfi 75456d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7546c2535118Smrg conftest$ac_exeext conftest.$ac_ext 7547c2535118Smrgfi 7548c2535118Smrg 7549c2535118Smrg 7550c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7551c2535118Smrg 7552c2535118Smrg eval supported=\$$cacheid 75536d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 75546d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 7555c2535118Smrg if test "$supported" = "yes" ; then 7556c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7557c2535118Smrg found="yes" 7558c2535118Smrg fi 7559c2535118Smrg fi 7560c2535118Smrg 7561c2535118Smrg 7562c2535118Smrg 7563c2535118Smrg 7564c2535118Smrg 7565c2535118Smrg 7566c2535118Smrg 7567c2535118Smrg 7568c2535118Smrg 7569c2535118Smrg 7570c2535118Smrg 7571c2535118Smrg 7572c2535118Smrg 7573c2535118Smrg 7574c2535118Smrg 7575c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7576c2535118Smrg 7577c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7578c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75796d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 75806d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 75816d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 75826d8e82c3Smrgthen : 75836d8e82c3Smrg printf %s "(cached) " >&6 75846d8e82c3Smrgelse $as_nop 7585c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7586c2535118Smrg/* end confdefs.h. */ 7587c2535118Smrgint i; 7588c2535118Smrg_ACEOF 75896d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 75906d8e82c3Smrgthen : 7591c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 75926d8e82c3Smrgelse $as_nop 7593c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 7594c2535118Smrgfi 75956d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7596c2535118Smrgfi 75976d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 75986d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7599c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7600c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7601c2535118Smrgfi 7602c2535118Smrg 7603c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7604c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7605c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7606c2535118Smrg fi 7607c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 76086d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 76096d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 76106d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 76116d8e82c3Smrgthen : 76126d8e82c3Smrg printf %s "(cached) " >&6 76136d8e82c3Smrgelse $as_nop 7614c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7615c2535118Smrg/* end confdefs.h. */ 7616c2535118Smrgint i; 7617c2535118Smrg_ACEOF 76186d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 76196d8e82c3Smrgthen : 7620c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 76216d8e82c3Smrgelse $as_nop 7622c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7623c2535118Smrgfi 76246d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7625c2535118Smrgfi 76266d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 76276d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7628c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7629c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7630c2535118Smrgfi 7631c2535118Smrg 7632c2535118Smrgfound="no" 7633c2535118Smrg 7634c2535118Smrg if test $found = "no" ; then 7635c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7636c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7637c2535118Smrg fi 7638c2535118Smrg 7639c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7640c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7641c2535118Smrg fi 7642c2535118Smrg 7643c2535118Smrg CFLAGS="$CFLAGS -Werror=init-self" 7644c2535118Smrg 76456d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 76466d8e82c3Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; } 76479cd34f4bSmrg cacheid=xorg_cv_cc_flag__Werror_init_self 76486d8e82c3Smrg if eval test \${$cacheid+y} 76496d8e82c3Smrgthen : 76506d8e82c3Smrg printf %s "(cached) " >&6 76516d8e82c3Smrgelse $as_nop 7652c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7653c2535118Smrg/* end confdefs.h. */ 7654c2535118Smrgint i; 7655c2535118Smrgint 76566d8e82c3Smrgmain (void) 7657c2535118Smrg{ 7658c2535118Smrg 7659c2535118Smrg ; 7660c2535118Smrg return 0; 7661c2535118Smrg} 7662c2535118Smrg_ACEOF 76636d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 76646d8e82c3Smrgthen : 7665c2535118Smrg eval $cacheid=yes 76666d8e82c3Smrgelse $as_nop 7667c2535118Smrg eval $cacheid=no 7668c2535118Smrgfi 76696d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7670c2535118Smrg conftest$ac_exeext conftest.$ac_ext 7671c2535118Smrgfi 7672c2535118Smrg 7673c2535118Smrg 7674c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7675c2535118Smrg 7676c2535118Smrg eval supported=\$$cacheid 76776d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 76786d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 7679c2535118Smrg if test "$supported" = "yes" ; then 7680c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7681c2535118Smrg found="yes" 7682c2535118Smrg fi 7683c2535118Smrg fi 7684c2535118Smrg 7685c2535118Smrg 7686c2535118Smrg 7687c2535118Smrg 7688c2535118Smrg 7689c2535118Smrg 7690c2535118Smrg 7691c2535118Smrg 7692c2535118Smrg 7693c2535118Smrg 7694c2535118Smrg 7695c2535118Smrg 7696c2535118Smrg 7697c2535118Smrg 7698c2535118Smrg 7699c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7700c2535118Smrg 7701c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7702c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77036d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 77046d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 77056d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 77066d8e82c3Smrgthen : 77076d8e82c3Smrg printf %s "(cached) " >&6 77086d8e82c3Smrgelse $as_nop 7709c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7710c2535118Smrg/* end confdefs.h. */ 7711c2535118Smrgint i; 7712c2535118Smrg_ACEOF 77136d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 77146d8e82c3Smrgthen : 7715c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 77166d8e82c3Smrgelse $as_nop 7717c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 7718c2535118Smrgfi 77196d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7720c2535118Smrgfi 77216d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 77226d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7723c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7724c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7725c2535118Smrgfi 7726c2535118Smrg 7727c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7728c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7729c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7730c2535118Smrg fi 7731c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77326d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 77336d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 77346d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 77356d8e82c3Smrgthen : 77366d8e82c3Smrg printf %s "(cached) " >&6 77376d8e82c3Smrgelse $as_nop 7738c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7739c2535118Smrg/* end confdefs.h. */ 7740c2535118Smrgint i; 7741c2535118Smrg_ACEOF 77426d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 77436d8e82c3Smrgthen : 7744c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 77456d8e82c3Smrgelse $as_nop 7746c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7747c2535118Smrgfi 77486d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7749c2535118Smrgfi 77506d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 77516d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7752c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7753c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7754c2535118Smrgfi 7755c2535118Smrg 7756c2535118Smrgfound="no" 7757c2535118Smrg 7758c2535118Smrg if test $found = "no" ; then 7759c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7760c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7761c2535118Smrg fi 7762c2535118Smrg 7763c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7764c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7765c2535118Smrg fi 7766c2535118Smrg 7767c2535118Smrg CFLAGS="$CFLAGS -Werror=main" 7768c2535118Smrg 77696d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 77706d8e82c3Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; } 77719cd34f4bSmrg cacheid=xorg_cv_cc_flag__Werror_main 77726d8e82c3Smrg if eval test \${$cacheid+y} 77736d8e82c3Smrgthen : 77746d8e82c3Smrg printf %s "(cached) " >&6 77756d8e82c3Smrgelse $as_nop 7776c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7777c2535118Smrg/* end confdefs.h. */ 7778c2535118Smrgint i; 7779c2535118Smrgint 77806d8e82c3Smrgmain (void) 7781c2535118Smrg{ 7782c2535118Smrg 7783c2535118Smrg ; 7784c2535118Smrg return 0; 7785c2535118Smrg} 7786c2535118Smrg_ACEOF 77876d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 77886d8e82c3Smrgthen : 7789c2535118Smrg eval $cacheid=yes 77906d8e82c3Smrgelse $as_nop 7791c2535118Smrg eval $cacheid=no 7792c2535118Smrgfi 77936d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7794c2535118Smrg conftest$ac_exeext conftest.$ac_ext 7795c2535118Smrgfi 7796c2535118Smrg 7797c2535118Smrg 7798c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7799c2535118Smrg 7800c2535118Smrg eval supported=\$$cacheid 78016d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 78026d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 7803c2535118Smrg if test "$supported" = "yes" ; then 7804c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7805c2535118Smrg found="yes" 7806c2535118Smrg fi 7807c2535118Smrg fi 7808c2535118Smrg 7809c2535118Smrg 7810c2535118Smrg 7811c2535118Smrg 7812c2535118Smrg 7813c2535118Smrg 7814c2535118Smrg 7815c2535118Smrg 7816c2535118Smrg 7817c2535118Smrg 7818c2535118Smrg 7819c2535118Smrg 7820c2535118Smrg 7821c2535118Smrg 7822c2535118Smrg 7823c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7824c2535118Smrg 7825c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7826c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78276d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 78286d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 78296d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 78306d8e82c3Smrgthen : 78316d8e82c3Smrg printf %s "(cached) " >&6 78326d8e82c3Smrgelse $as_nop 7833c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7834c2535118Smrg/* end confdefs.h. */ 7835c2535118Smrgint i; 7836c2535118Smrg_ACEOF 78376d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 78386d8e82c3Smrgthen : 7839c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 78406d8e82c3Smrgelse $as_nop 7841c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 7842c2535118Smrgfi 78436d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7844c2535118Smrgfi 78456d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 78466d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7847c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7848c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7849c2535118Smrgfi 7850c2535118Smrg 7851c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7852c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7853c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7854c2535118Smrg fi 7855c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 78566d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 78576d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 78586d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 78596d8e82c3Smrgthen : 78606d8e82c3Smrg printf %s "(cached) " >&6 78616d8e82c3Smrgelse $as_nop 7862c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7863c2535118Smrg/* end confdefs.h. */ 7864c2535118Smrgint i; 7865c2535118Smrg_ACEOF 78666d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 78676d8e82c3Smrgthen : 7868c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 78696d8e82c3Smrgelse $as_nop 7870c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7871c2535118Smrgfi 78726d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7873c2535118Smrgfi 78746d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 78756d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7876c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7877c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7878c2535118Smrgfi 7879c2535118Smrg 7880c2535118Smrgfound="no" 7881c2535118Smrg 7882c2535118Smrg if test $found = "no" ; then 7883c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7884c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7885c2535118Smrg fi 7886c2535118Smrg 7887c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7888c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7889c2535118Smrg fi 7890c2535118Smrg 7891c2535118Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 7892c2535118Smrg 78936d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 78946d8e82c3Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 78959cd34f4bSmrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 78966d8e82c3Smrg if eval test \${$cacheid+y} 78976d8e82c3Smrgthen : 78986d8e82c3Smrg printf %s "(cached) " >&6 78996d8e82c3Smrgelse $as_nop 7900c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7901c2535118Smrg/* end confdefs.h. */ 7902c2535118Smrgint i; 7903c2535118Smrgint 79046d8e82c3Smrgmain (void) 7905c2535118Smrg{ 7906c2535118Smrg 7907c2535118Smrg ; 7908c2535118Smrg return 0; 7909c2535118Smrg} 7910c2535118Smrg_ACEOF 79116d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 79126d8e82c3Smrgthen : 7913c2535118Smrg eval $cacheid=yes 79146d8e82c3Smrgelse $as_nop 7915c2535118Smrg eval $cacheid=no 7916c2535118Smrgfi 79176d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7918c2535118Smrg conftest$ac_exeext conftest.$ac_ext 7919c2535118Smrgfi 7920c2535118Smrg 7921c2535118Smrg 7922c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7923c2535118Smrg 7924c2535118Smrg eval supported=\$$cacheid 79256d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 79266d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 7927c2535118Smrg if test "$supported" = "yes" ; then 7928c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7929c2535118Smrg found="yes" 7930c2535118Smrg fi 7931c2535118Smrg fi 7932c2535118Smrg 7933c2535118Smrg 7934c2535118Smrg 7935c2535118Smrg 7936c2535118Smrg 7937c2535118Smrg 7938c2535118Smrg 7939c2535118Smrg 7940c2535118Smrg 7941c2535118Smrg 7942c2535118Smrg 7943c2535118Smrg 7944c2535118Smrg 7945c2535118Smrg 7946c2535118Smrg 7947c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7948c2535118Smrg 7949c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7950c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79516d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 79526d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 79536d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 79546d8e82c3Smrgthen : 79556d8e82c3Smrg printf %s "(cached) " >&6 79566d8e82c3Smrgelse $as_nop 7957c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7958c2535118Smrg/* end confdefs.h. */ 7959c2535118Smrgint i; 7960c2535118Smrg_ACEOF 79616d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 79626d8e82c3Smrgthen : 7963c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 79646d8e82c3Smrgelse $as_nop 7965c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 7966c2535118Smrgfi 79676d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7968c2535118Smrgfi 79696d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 79706d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7971c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7972c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7973c2535118Smrgfi 7974c2535118Smrg 7975c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7976c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7977c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7978c2535118Smrg fi 7979c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79806d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 79816d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 79826d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 79836d8e82c3Smrgthen : 79846d8e82c3Smrg printf %s "(cached) " >&6 79856d8e82c3Smrgelse $as_nop 7986c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7987c2535118Smrg/* end confdefs.h. */ 7988c2535118Smrgint i; 7989c2535118Smrg_ACEOF 79906d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 79916d8e82c3Smrgthen : 7992c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 79936d8e82c3Smrgelse $as_nop 7994c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7995c2535118Smrgfi 79966d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7997c2535118Smrgfi 79986d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 79996d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8000c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8001c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8002c2535118Smrgfi 8003c2535118Smrg 8004c2535118Smrgfound="no" 8005c2535118Smrg 8006c2535118Smrg if test $found = "no" ; then 8007c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8008c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8009c2535118Smrg fi 8010c2535118Smrg 8011c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8012c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8013c2535118Smrg fi 8014c2535118Smrg 8015c2535118Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 8016c2535118Smrg 80176d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 80186d8e82c3Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 80199cd34f4bSmrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 80206d8e82c3Smrg if eval test \${$cacheid+y} 80216d8e82c3Smrgthen : 80226d8e82c3Smrg printf %s "(cached) " >&6 80236d8e82c3Smrgelse $as_nop 8024c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8025c2535118Smrg/* end confdefs.h. */ 8026c2535118Smrgint i; 8027c2535118Smrgint 80286d8e82c3Smrgmain (void) 8029c2535118Smrg{ 8030c2535118Smrg 8031c2535118Smrg ; 8032c2535118Smrg return 0; 8033c2535118Smrg} 8034c2535118Smrg_ACEOF 80356d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 80366d8e82c3Smrgthen : 8037c2535118Smrg eval $cacheid=yes 80386d8e82c3Smrgelse $as_nop 8039c2535118Smrg eval $cacheid=no 8040c2535118Smrgfi 80416d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8042c2535118Smrg conftest$ac_exeext conftest.$ac_ext 8043c2535118Smrgfi 8044c2535118Smrg 8045c2535118Smrg 8046c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8047c2535118Smrg 8048c2535118Smrg eval supported=\$$cacheid 80496d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 80506d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 8051c2535118Smrg if test "$supported" = "yes" ; then 8052c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8053c2535118Smrg found="yes" 8054c2535118Smrg fi 8055c2535118Smrg fi 8056c2535118Smrg 8057c2535118Smrg 8058c2535118Smrg 8059c2535118Smrg 8060c2535118Smrg 8061c2535118Smrg 8062c2535118Smrg 8063c2535118Smrg 8064c2535118Smrg 8065c2535118Smrg 8066c2535118Smrg 8067c2535118Smrg 8068c2535118Smrg 8069c2535118Smrg 8070c2535118Smrg 8071c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8072c2535118Smrg 8073c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8074c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80756d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 80766d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 80776d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 80786d8e82c3Smrgthen : 80796d8e82c3Smrg printf %s "(cached) " >&6 80806d8e82c3Smrgelse $as_nop 8081c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8082c2535118Smrg/* end confdefs.h. */ 8083c2535118Smrgint i; 8084c2535118Smrg_ACEOF 80856d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 80866d8e82c3Smrgthen : 8087c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 80886d8e82c3Smrgelse $as_nop 8089c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 8090c2535118Smrgfi 80916d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8092c2535118Smrgfi 80936d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 80946d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8095c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8096c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8097c2535118Smrgfi 8098c2535118Smrg 8099c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8100c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8101c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8102c2535118Smrg fi 8103c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81046d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 81056d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 81066d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 81076d8e82c3Smrgthen : 81086d8e82c3Smrg printf %s "(cached) " >&6 81096d8e82c3Smrgelse $as_nop 8110c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8111c2535118Smrg/* end confdefs.h. */ 8112c2535118Smrgint i; 8113c2535118Smrg_ACEOF 81146d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 81156d8e82c3Smrgthen : 8116c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 81176d8e82c3Smrgelse $as_nop 8118c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8119c2535118Smrgfi 81206d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8121c2535118Smrgfi 81226d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 81236d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8124c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8125c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8126c2535118Smrgfi 8127c2535118Smrg 8128c2535118Smrgfound="no" 8129c2535118Smrg 8130c2535118Smrg if test $found = "no" ; then 8131c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8132c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8133c2535118Smrg fi 8134c2535118Smrg 8135c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8136c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8137c2535118Smrg fi 8138c2535118Smrg 8139c2535118Smrg CFLAGS="$CFLAGS -Werror=return-type" 8140c2535118Smrg 81416d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 81426d8e82c3Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; } 81439cd34f4bSmrg cacheid=xorg_cv_cc_flag__Werror_return_type 81446d8e82c3Smrg if eval test \${$cacheid+y} 81456d8e82c3Smrgthen : 81466d8e82c3Smrg printf %s "(cached) " >&6 81476d8e82c3Smrgelse $as_nop 8148c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8149c2535118Smrg/* end confdefs.h. */ 8150c2535118Smrgint i; 8151c2535118Smrgint 81526d8e82c3Smrgmain (void) 8153c2535118Smrg{ 8154c2535118Smrg 8155c2535118Smrg ; 8156c2535118Smrg return 0; 8157c2535118Smrg} 8158c2535118Smrg_ACEOF 81596d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 81606d8e82c3Smrgthen : 8161c2535118Smrg eval $cacheid=yes 81626d8e82c3Smrgelse $as_nop 8163c2535118Smrg eval $cacheid=no 8164c2535118Smrgfi 81656d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8166c2535118Smrg conftest$ac_exeext conftest.$ac_ext 8167c2535118Smrgfi 8168c2535118Smrg 8169c2535118Smrg 8170c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8171c2535118Smrg 8172c2535118Smrg eval supported=\$$cacheid 81736d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 81746d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 8175c2535118Smrg if test "$supported" = "yes" ; then 8176c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8177c2535118Smrg found="yes" 8178c2535118Smrg fi 8179c2535118Smrg fi 8180c2535118Smrg 8181c2535118Smrg if test $found = "no" ; then 8182c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8183c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8184c2535118Smrg fi 8185c2535118Smrg 8186c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8187c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8188c2535118Smrg fi 8189c2535118Smrg 8190c2535118Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8191c2535118Smrg 81926d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 81936d8e82c3Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 81949cd34f4bSmrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 81956d8e82c3Smrg if eval test \${$cacheid+y} 81966d8e82c3Smrgthen : 81976d8e82c3Smrg printf %s "(cached) " >&6 81986d8e82c3Smrgelse $as_nop 8199c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8200c2535118Smrg/* end confdefs.h. */ 8201c2535118Smrgint i; 8202c2535118Smrgint 82036d8e82c3Smrgmain (void) 8204c2535118Smrg{ 8205c2535118Smrg 8206c2535118Smrg ; 8207c2535118Smrg return 0; 8208c2535118Smrg} 8209c2535118Smrg_ACEOF 82106d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 82116d8e82c3Smrgthen : 8212c2535118Smrg eval $cacheid=yes 82136d8e82c3Smrgelse $as_nop 8214c2535118Smrg eval $cacheid=no 8215c2535118Smrgfi 82166d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8217c2535118Smrg conftest$ac_exeext conftest.$ac_ext 8218c2535118Smrgfi 8219c2535118Smrg 8220c2535118Smrg 8221c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8222c2535118Smrg 8223c2535118Smrg eval supported=\$$cacheid 82246d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 82256d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 8226c2535118Smrg if test "$supported" = "yes" ; then 8227c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8228c2535118Smrg found="yes" 8229c2535118Smrg fi 8230c2535118Smrg fi 8231c2535118Smrg 8232c2535118Smrg 8233c2535118Smrg 8234c2535118Smrg 8235c2535118Smrg 8236c2535118Smrg 8237c2535118Smrg 8238c2535118Smrg 8239c2535118Smrg 8240c2535118Smrg 8241c2535118Smrg 8242c2535118Smrg 8243c2535118Smrg 8244c2535118Smrg 8245c2535118Smrg 8246c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8247c2535118Smrg 8248c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8249c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82506d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 82516d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 82526d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 82536d8e82c3Smrgthen : 82546d8e82c3Smrg printf %s "(cached) " >&6 82556d8e82c3Smrgelse $as_nop 8256c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8257c2535118Smrg/* end confdefs.h. */ 8258c2535118Smrgint i; 8259c2535118Smrg_ACEOF 82606d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 82616d8e82c3Smrgthen : 8262c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 82636d8e82c3Smrgelse $as_nop 8264c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 8265c2535118Smrgfi 82666d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8267c2535118Smrgfi 82686d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 82696d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8270c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8271c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8272c2535118Smrgfi 8273c2535118Smrg 8274c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8275c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8276c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8277c2535118Smrg fi 8278c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 82796d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 82806d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 82816d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 82826d8e82c3Smrgthen : 82836d8e82c3Smrg printf %s "(cached) " >&6 82846d8e82c3Smrgelse $as_nop 8285c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8286c2535118Smrg/* end confdefs.h. */ 8287c2535118Smrgint i; 8288c2535118Smrg_ACEOF 82896d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 82906d8e82c3Smrgthen : 8291c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 82926d8e82c3Smrgelse $as_nop 8293c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8294c2535118Smrgfi 82956d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8296c2535118Smrgfi 82976d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 82986d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8299c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8300c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8301c2535118Smrgfi 8302c2535118Smrg 8303c2535118Smrgfound="no" 8304c2535118Smrg 8305c2535118Smrg if test $found = "no" ; then 8306c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8307c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8308c2535118Smrg fi 8309c2535118Smrg 8310c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8311c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8312c2535118Smrg fi 8313c2535118Smrg 8314c2535118Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 8315c2535118Smrg 83166d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 83176d8e82c3Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 83189cd34f4bSmrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 83196d8e82c3Smrg if eval test \${$cacheid+y} 83206d8e82c3Smrgthen : 83216d8e82c3Smrg printf %s "(cached) " >&6 83226d8e82c3Smrgelse $as_nop 8323c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8324c2535118Smrg/* end confdefs.h. */ 8325c2535118Smrgint i; 8326c2535118Smrgint 83276d8e82c3Smrgmain (void) 8328c2535118Smrg{ 8329c2535118Smrg 8330c2535118Smrg ; 8331c2535118Smrg return 0; 8332c2535118Smrg} 8333c2535118Smrg_ACEOF 83346d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 83356d8e82c3Smrgthen : 8336c2535118Smrg eval $cacheid=yes 83376d8e82c3Smrgelse $as_nop 8338c2535118Smrg eval $cacheid=no 8339c2535118Smrgfi 83406d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8341c2535118Smrg conftest$ac_exeext conftest.$ac_ext 8342c2535118Smrgfi 8343c2535118Smrg 8344c2535118Smrg 8345c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8346c2535118Smrg 8347c2535118Smrg eval supported=\$$cacheid 83486d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 83496d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 8350c2535118Smrg if test "$supported" = "yes" ; then 8351c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8352c2535118Smrg found="yes" 8353c2535118Smrg fi 8354c2535118Smrg fi 8355c2535118Smrg 8356c2535118Smrg 8357c2535118Smrg 8358c2535118Smrg 8359c2535118Smrg 8360c2535118Smrg 8361c2535118Smrg 8362c2535118Smrg 8363c2535118Smrg 8364c2535118Smrg 8365c2535118Smrg 8366c2535118Smrg 8367c2535118Smrg 8368c2535118Smrg 8369c2535118Smrg 8370c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8371c2535118Smrg 8372c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8373c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83746d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 83756d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 83766d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 83776d8e82c3Smrgthen : 83786d8e82c3Smrg printf %s "(cached) " >&6 83796d8e82c3Smrgelse $as_nop 8380c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8381c2535118Smrg/* end confdefs.h. */ 8382c2535118Smrgint i; 8383c2535118Smrg_ACEOF 83846d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 83856d8e82c3Smrgthen : 8386c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 83876d8e82c3Smrgelse $as_nop 8388c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 8389c2535118Smrgfi 83906d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8391c2535118Smrgfi 83926d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 83936d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8394c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8395c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8396c2535118Smrgfi 8397c2535118Smrg 8398c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8399c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8400c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8401c2535118Smrg fi 8402c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84036d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 84046d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 84056d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 84066d8e82c3Smrgthen : 84076d8e82c3Smrg printf %s "(cached) " >&6 84086d8e82c3Smrgelse $as_nop 8409c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8410c2535118Smrg/* end confdefs.h. */ 8411c2535118Smrgint i; 8412c2535118Smrg_ACEOF 84136d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 84146d8e82c3Smrgthen : 8415c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 84166d8e82c3Smrgelse $as_nop 8417c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8418c2535118Smrgfi 84196d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8420c2535118Smrgfi 84216d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 84226d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8423c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8424c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8425c2535118Smrgfi 8426c2535118Smrg 8427c2535118Smrgfound="no" 8428c2535118Smrg 8429c2535118Smrg if test $found = "no" ; then 8430c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8431c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8432c2535118Smrg fi 8433c2535118Smrg 8434c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8435c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8436c2535118Smrg fi 8437c2535118Smrg 8438c2535118Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 8439c2535118Smrg 84406d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 84416d8e82c3Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 84429cd34f4bSmrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 84436d8e82c3Smrg if eval test \${$cacheid+y} 84446d8e82c3Smrgthen : 84456d8e82c3Smrg printf %s "(cached) " >&6 84466d8e82c3Smrgelse $as_nop 8447c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8448c2535118Smrg/* end confdefs.h. */ 8449c2535118Smrgint i; 8450c2535118Smrgint 84516d8e82c3Smrgmain (void) 8452c2535118Smrg{ 8453c2535118Smrg 8454c2535118Smrg ; 8455c2535118Smrg return 0; 8456c2535118Smrg} 8457c2535118Smrg_ACEOF 84586d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 84596d8e82c3Smrgthen : 8460c2535118Smrg eval $cacheid=yes 84616d8e82c3Smrgelse $as_nop 8462c2535118Smrg eval $cacheid=no 8463c2535118Smrgfi 84646d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8465c2535118Smrg conftest$ac_exeext conftest.$ac_ext 8466c2535118Smrgfi 8467c2535118Smrg 8468c2535118Smrg 8469c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8470c2535118Smrg 8471c2535118Smrg eval supported=\$$cacheid 84726d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 84736d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 8474c2535118Smrg if test "$supported" = "yes" ; then 8475c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8476c2535118Smrg found="yes" 8477c2535118Smrg fi 8478c2535118Smrg fi 8479c2535118Smrg 8480c2535118Smrg 8481c2535118Smrg 8482c2535118Smrg 8483c2535118Smrg 8484c2535118Smrg 8485c2535118Smrg 8486c2535118Smrg 8487c2535118Smrg 8488c2535118Smrg 8489c2535118Smrg 8490c2535118Smrg 8491c2535118Smrg 8492c2535118Smrg 8493c2535118Smrg 8494c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8495c2535118Smrg 8496c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8497c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84986d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 84996d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 85006d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 85016d8e82c3Smrgthen : 85026d8e82c3Smrg printf %s "(cached) " >&6 85036d8e82c3Smrgelse $as_nop 8504c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8505c2535118Smrg/* end confdefs.h. */ 8506c2535118Smrgint i; 8507c2535118Smrg_ACEOF 85086d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 85096d8e82c3Smrgthen : 8510c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 85116d8e82c3Smrgelse $as_nop 8512c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 8513c2535118Smrgfi 85146d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8515c2535118Smrgfi 85166d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 85176d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8518c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8519c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8520c2535118Smrgfi 8521c2535118Smrg 8522c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8523c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8524c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8525c2535118Smrg fi 8526c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85276d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 85286d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 85296d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 85306d8e82c3Smrgthen : 85316d8e82c3Smrg printf %s "(cached) " >&6 85326d8e82c3Smrgelse $as_nop 8533c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8534c2535118Smrg/* end confdefs.h. */ 8535c2535118Smrgint i; 8536c2535118Smrg_ACEOF 85376d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 85386d8e82c3Smrgthen : 8539c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 85406d8e82c3Smrgelse $as_nop 8541c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8542c2535118Smrgfi 85436d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8544c2535118Smrgfi 85456d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 85466d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8547c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8548c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8549c2535118Smrgfi 8550c2535118Smrg 8551c2535118Smrgfound="no" 8552c2535118Smrg 8553c2535118Smrg if test $found = "no" ; then 8554c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8555c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8556c2535118Smrg fi 8557c2535118Smrg 8558c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8559c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8560c2535118Smrg fi 8561c2535118Smrg 8562c2535118Smrg CFLAGS="$CFLAGS -Werror=write-strings" 8563c2535118Smrg 85646d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 85656d8e82c3Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; } 85669cd34f4bSmrg cacheid=xorg_cv_cc_flag__Werror_write_strings 85676d8e82c3Smrg if eval test \${$cacheid+y} 85686d8e82c3Smrgthen : 85696d8e82c3Smrg printf %s "(cached) " >&6 85706d8e82c3Smrgelse $as_nop 8571c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8572c2535118Smrg/* end confdefs.h. */ 8573c2535118Smrgint i; 8574c2535118Smrgint 85756d8e82c3Smrgmain (void) 8576c2535118Smrg{ 8577c2535118Smrg 8578c2535118Smrg ; 8579c2535118Smrg return 0; 8580c2535118Smrg} 8581c2535118Smrg_ACEOF 85826d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 85836d8e82c3Smrgthen : 8584c2535118Smrg eval $cacheid=yes 85856d8e82c3Smrgelse $as_nop 8586c2535118Smrg eval $cacheid=no 8587c2535118Smrgfi 85886d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8589c2535118Smrg conftest$ac_exeext conftest.$ac_ext 8590c2535118Smrgfi 8591c2535118Smrg 8592c2535118Smrg 8593c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8594c2535118Smrg 8595c2535118Smrg eval supported=\$$cacheid 85966d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 85976d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 8598c2535118Smrg if test "$supported" = "yes" ; then 8599c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8600c2535118Smrg found="yes" 8601c2535118Smrg fi 8602c2535118Smrg fi 8603c2535118Smrg 8604c2535118Smrg 8605c2535118Smrg 8606c2535118Smrg 8607c2535118Smrg 8608c2535118Smrg 8609c2535118Smrg 8610c2535118Smrg 8611c2535118Smrg 8612c2535118Smrg 8613c2535118Smrg 8614c2535118Smrg 8615c2535118Smrg 8616c2535118Smrg 8617c2535118Smrg 8618c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8619c2535118Smrg 8620c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8621c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86226d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 86236d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 86246d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 86256d8e82c3Smrgthen : 86266d8e82c3Smrg printf %s "(cached) " >&6 86276d8e82c3Smrgelse $as_nop 8628c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8629c2535118Smrg/* end confdefs.h. */ 8630c2535118Smrgint i; 8631c2535118Smrg_ACEOF 86326d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 86336d8e82c3Smrgthen : 8634c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 86356d8e82c3Smrgelse $as_nop 8636c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 8637c2535118Smrgfi 86386d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8639c2535118Smrgfi 86406d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 86416d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8642c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8643c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8644c2535118Smrgfi 8645c2535118Smrg 8646c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8647c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8648c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8649c2535118Smrg fi 8650c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86516d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 86526d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 86536d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 86546d8e82c3Smrgthen : 86556d8e82c3Smrg printf %s "(cached) " >&6 86566d8e82c3Smrgelse $as_nop 8657c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8658c2535118Smrg/* end confdefs.h. */ 8659c2535118Smrgint i; 8660c2535118Smrg_ACEOF 86616d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 86626d8e82c3Smrgthen : 8663c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 86646d8e82c3Smrgelse $as_nop 8665c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8666c2535118Smrgfi 86676d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8668c2535118Smrgfi 86696d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 86706d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8671c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8672c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8673c2535118Smrgfi 8674c2535118Smrg 8675c2535118Smrgfound="no" 8676c2535118Smrg 8677c2535118Smrg if test $found = "no" ; then 8678c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8679c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8680c2535118Smrg fi 8681c2535118Smrg 8682c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8683c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8684c2535118Smrg fi 8685c2535118Smrg 8686c2535118Smrg CFLAGS="$CFLAGS -Werror=address" 8687c2535118Smrg 86886d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 86896d8e82c3Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; } 86909cd34f4bSmrg cacheid=xorg_cv_cc_flag__Werror_address 86916d8e82c3Smrg if eval test \${$cacheid+y} 86926d8e82c3Smrgthen : 86936d8e82c3Smrg printf %s "(cached) " >&6 86946d8e82c3Smrgelse $as_nop 8695c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8696c2535118Smrg/* end confdefs.h. */ 8697c2535118Smrgint i; 8698c2535118Smrgint 86996d8e82c3Smrgmain (void) 8700c2535118Smrg{ 8701c2535118Smrg 8702c2535118Smrg ; 8703c2535118Smrg return 0; 8704c2535118Smrg} 8705c2535118Smrg_ACEOF 87066d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 87076d8e82c3Smrgthen : 8708c2535118Smrg eval $cacheid=yes 87096d8e82c3Smrgelse $as_nop 8710c2535118Smrg eval $cacheid=no 8711c2535118Smrgfi 87126d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8713c2535118Smrg conftest$ac_exeext conftest.$ac_ext 8714c2535118Smrgfi 8715c2535118Smrg 8716c2535118Smrg 8717c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8718c2535118Smrg 8719c2535118Smrg eval supported=\$$cacheid 87206d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 87216d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 8722c2535118Smrg if test "$supported" = "yes" ; then 8723c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8724c2535118Smrg found="yes" 8725c2535118Smrg fi 8726c2535118Smrg fi 8727c2535118Smrg 8728c2535118Smrg 8729c2535118Smrg 8730c2535118Smrg 8731c2535118Smrg 8732c2535118Smrg 8733c2535118Smrg 8734c2535118Smrg 8735c2535118Smrg 8736c2535118Smrg 8737c2535118Smrg 8738c2535118Smrg 8739c2535118Smrg 8740c2535118Smrg 8741c2535118Smrg 8742c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8743c2535118Smrg 8744c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8745c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87466d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 87476d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 87486d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 87496d8e82c3Smrgthen : 87506d8e82c3Smrg printf %s "(cached) " >&6 87516d8e82c3Smrgelse $as_nop 8752c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8753c2535118Smrg/* end confdefs.h. */ 8754c2535118Smrgint i; 8755c2535118Smrg_ACEOF 87566d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 87576d8e82c3Smrgthen : 8758c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 87596d8e82c3Smrgelse $as_nop 8760c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 8761c2535118Smrgfi 87626d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8763c2535118Smrgfi 87646d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 87656d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8766c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8767c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8768c2535118Smrgfi 8769c2535118Smrg 8770c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8771c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8772c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8773c2535118Smrg fi 8774c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 87756d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 87766d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 87776d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 87786d8e82c3Smrgthen : 87796d8e82c3Smrg printf %s "(cached) " >&6 87806d8e82c3Smrgelse $as_nop 8781c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8782c2535118Smrg/* end confdefs.h. */ 8783c2535118Smrgint i; 8784c2535118Smrg_ACEOF 87856d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 87866d8e82c3Smrgthen : 8787c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 87886d8e82c3Smrgelse $as_nop 8789c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8790c2535118Smrgfi 87916d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8792c2535118Smrgfi 87936d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 87946d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8795c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8796c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8797c2535118Smrgfi 8798c2535118Smrg 8799c2535118Smrgfound="no" 8800c2535118Smrg 8801c2535118Smrg if test $found = "no" ; then 8802c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8803c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8804c2535118Smrg fi 8805c2535118Smrg 8806c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8807c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8808c2535118Smrg fi 8809c2535118Smrg 8810c2535118Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8811c2535118Smrg 88126d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 88136d8e82c3Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 88149cd34f4bSmrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 88156d8e82c3Smrg if eval test \${$cacheid+y} 88166d8e82c3Smrgthen : 88176d8e82c3Smrg printf %s "(cached) " >&6 88186d8e82c3Smrgelse $as_nop 8819c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8820c2535118Smrg/* end confdefs.h. */ 8821c2535118Smrgint i; 8822c2535118Smrgint 88236d8e82c3Smrgmain (void) 8824c2535118Smrg{ 8825c2535118Smrg 8826c2535118Smrg ; 8827c2535118Smrg return 0; 8828c2535118Smrg} 8829c2535118Smrg_ACEOF 88306d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 88316d8e82c3Smrgthen : 8832c2535118Smrg eval $cacheid=yes 88336d8e82c3Smrgelse $as_nop 8834c2535118Smrg eval $cacheid=no 8835c2535118Smrgfi 88366d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8837c2535118Smrg conftest$ac_exeext conftest.$ac_ext 8838c2535118Smrgfi 8839c2535118Smrg 8840c2535118Smrg 8841c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8842c2535118Smrg 8843c2535118Smrg eval supported=\$$cacheid 88446d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 88456d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 8846c2535118Smrg if test "$supported" = "yes" ; then 8847c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8848c2535118Smrg found="yes" 8849c2535118Smrg fi 8850c2535118Smrg fi 8851c2535118Smrg 8852c2535118Smrg if test $found = "no" ; then 8853c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8854c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8855c2535118Smrg fi 8856c2535118Smrg 8857c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8858c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8859c2535118Smrg fi 8860c2535118Smrg 8861c2535118Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8862c2535118Smrg 88636d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 88646d8e82c3Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 88659cd34f4bSmrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 88666d8e82c3Smrg if eval test \${$cacheid+y} 88676d8e82c3Smrgthen : 88686d8e82c3Smrg printf %s "(cached) " >&6 88696d8e82c3Smrgelse $as_nop 8870c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8871c2535118Smrg/* end confdefs.h. */ 8872c2535118Smrgint i; 8873c2535118Smrgint 88746d8e82c3Smrgmain (void) 8875c2535118Smrg{ 8876c2535118Smrg 8877c2535118Smrg ; 8878c2535118Smrg return 0; 8879c2535118Smrg} 8880c2535118Smrg_ACEOF 88816d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 88826d8e82c3Smrgthen : 8883c2535118Smrg eval $cacheid=yes 88846d8e82c3Smrgelse $as_nop 8885c2535118Smrg eval $cacheid=no 8886c2535118Smrgfi 88876d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8888c2535118Smrg conftest$ac_exeext conftest.$ac_ext 8889c2535118Smrgfi 8890c2535118Smrg 8891c2535118Smrg 8892c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8893c2535118Smrg 8894c2535118Smrg eval supported=\$$cacheid 88956d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 88966d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 8897c2535118Smrg if test "$supported" = "yes" ; then 8898c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8899c2535118Smrg found="yes" 8900c2535118Smrg fi 8901c2535118Smrg fi 8902c2535118Smrg 8903c2535118Smrg 8904c2535118Smrg 8905c2535118Smrg 8906c2535118Smrg 8907c2535118Smrg 8908c2535118Smrg 8909c2535118Smrg 8910c2535118Smrg 8911c2535118Smrg 8912c2535118Smrg 8913c2535118Smrg 8914c2535118Smrg 8915c2535118Smrg 8916c2535118Smrg 8917c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8918c2535118Smrg 8919c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8920c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89216d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 89226d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 89236d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 89246d8e82c3Smrgthen : 89256d8e82c3Smrg printf %s "(cached) " >&6 89266d8e82c3Smrgelse $as_nop 8927c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8928c2535118Smrg/* end confdefs.h. */ 8929c2535118Smrgint i; 8930c2535118Smrg_ACEOF 89316d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 89326d8e82c3Smrgthen : 8933c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 89346d8e82c3Smrgelse $as_nop 8935c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 8936c2535118Smrgfi 89376d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8938c2535118Smrgfi 89396d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 89406d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8941c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8942c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8943c2535118Smrgfi 8944c2535118Smrg 8945c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8946c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8947c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8948c2535118Smrg fi 8949c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89506d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 89516d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 89526d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 89536d8e82c3Smrgthen : 89546d8e82c3Smrg printf %s "(cached) " >&6 89556d8e82c3Smrgelse $as_nop 8956c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8957c2535118Smrg/* end confdefs.h. */ 8958c2535118Smrgint i; 8959c2535118Smrg_ACEOF 89606d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 89616d8e82c3Smrgthen : 8962c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 89636d8e82c3Smrgelse $as_nop 8964c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8965c2535118Smrgfi 89666d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8967c2535118Smrgfi 89686d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 89696d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8970c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8971c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8972c2535118Smrgfi 8973c2535118Smrg 8974c2535118Smrgfound="no" 8975c2535118Smrg 8976c2535118Smrg if test $found = "no" ; then 8977c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8978c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8979c2535118Smrg fi 8980c2535118Smrg 8981c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8982c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8983c2535118Smrg fi 8984c2535118Smrg 8985c2535118Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8986c2535118Smrg 89876d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 89886d8e82c3Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 89899cd34f4bSmrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 89906d8e82c3Smrg if eval test \${$cacheid+y} 89916d8e82c3Smrgthen : 89926d8e82c3Smrg printf %s "(cached) " >&6 89936d8e82c3Smrgelse $as_nop 8994c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8995c2535118Smrg/* end confdefs.h. */ 8996c2535118Smrgint i; 8997c2535118Smrgint 89986d8e82c3Smrgmain (void) 8999c2535118Smrg{ 9000c2535118Smrg 9001c2535118Smrg ; 9002c2535118Smrg return 0; 9003c2535118Smrg} 9004c2535118Smrg_ACEOF 90056d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 90066d8e82c3Smrgthen : 9007c2535118Smrg eval $cacheid=yes 90086d8e82c3Smrgelse $as_nop 9009c2535118Smrg eval $cacheid=no 9010c2535118Smrgfi 90116d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9012c2535118Smrg conftest$ac_exeext conftest.$ac_ext 9013c2535118Smrgfi 9014c2535118Smrg 9015c2535118Smrg 9016c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9017c2535118Smrg 9018c2535118Smrg eval supported=\$$cacheid 90196d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 90206d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 9021c2535118Smrg if test "$supported" = "yes" ; then 9022c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9023c2535118Smrg found="yes" 9024c2535118Smrg fi 9025c2535118Smrg fi 9026c2535118Smrg 9027c2535118Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9028c2535118Smrgelse 90296d8e82c3Smrg{ 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 90306d8e82c3Smrgprintf "%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;} 9031c2535118Smrg 9032c2535118Smrg 9033c2535118Smrg 9034c2535118Smrg 9035c2535118Smrg 9036c2535118Smrg 9037c2535118Smrg 9038c2535118Smrg 9039c2535118Smrg 9040c2535118Smrg 9041c2535118Smrg 9042c2535118Smrg 9043c2535118Smrg 9044c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9045c2535118Smrg 9046c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9047c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90486d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 90496d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 90506d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 90516d8e82c3Smrgthen : 90526d8e82c3Smrg printf %s "(cached) " >&6 90536d8e82c3Smrgelse $as_nop 9054c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9055c2535118Smrg/* end confdefs.h. */ 9056c2535118Smrgint i; 9057c2535118Smrg_ACEOF 90586d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 90596d8e82c3Smrgthen : 9060c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 90616d8e82c3Smrgelse $as_nop 9062c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 9063c2535118Smrgfi 90646d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9065c2535118Smrgfi 90666d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 90676d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9068c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9069c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9070c2535118Smrgfi 9071c2535118Smrg 9072c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9073c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9074c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9075c2535118Smrg fi 9076c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 90776d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 90786d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 90796d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 90806d8e82c3Smrgthen : 90816d8e82c3Smrg printf %s "(cached) " >&6 90826d8e82c3Smrgelse $as_nop 9083c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9084c2535118Smrg/* end confdefs.h. */ 9085c2535118Smrgint i; 9086c2535118Smrg_ACEOF 90876d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 90886d8e82c3Smrgthen : 9089c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 90906d8e82c3Smrgelse $as_nop 9091c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9092c2535118Smrgfi 90936d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9094c2535118Smrgfi 90956d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 90966d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9097c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9098c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9099c2535118Smrgfi 9100c2535118Smrg 9101c2535118Smrgfound="no" 9102c2535118Smrg 9103c2535118Smrg if test $found = "no" ; then 9104c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9105c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9106c2535118Smrg fi 9107c2535118Smrg 9108c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9109c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9110c2535118Smrg fi 9111c2535118Smrg 9112c2535118Smrg CFLAGS="$CFLAGS -Wimplicit" 9113c2535118Smrg 91146d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 91156d8e82c3Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; } 9116c2535118Smrg cacheid=xorg_cv_cc_flag__Wimplicit 91176d8e82c3Smrg if eval test \${$cacheid+y} 91186d8e82c3Smrgthen : 91196d8e82c3Smrg printf %s "(cached) " >&6 91206d8e82c3Smrgelse $as_nop 9121c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9122c2535118Smrg/* end confdefs.h. */ 9123c2535118Smrgint i; 9124c2535118Smrgint 91256d8e82c3Smrgmain (void) 9126c2535118Smrg{ 9127c2535118Smrg 9128c2535118Smrg ; 9129c2535118Smrg return 0; 9130c2535118Smrg} 9131c2535118Smrg_ACEOF 91326d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 91336d8e82c3Smrgthen : 9134c2535118Smrg eval $cacheid=yes 91356d8e82c3Smrgelse $as_nop 9136c2535118Smrg eval $cacheid=no 9137c2535118Smrgfi 91386d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9139c2535118Smrg conftest$ac_exeext conftest.$ac_ext 9140c2535118Smrgfi 9141c2535118Smrg 9142c2535118Smrg 9143c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9144c2535118Smrg 9145c2535118Smrg eval supported=\$$cacheid 91466d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 91476d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 9148c2535118Smrg if test "$supported" = "yes" ; then 9149c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9150c2535118Smrg found="yes" 9151c2535118Smrg fi 9152c2535118Smrg fi 9153c2535118Smrg 9154c2535118Smrg 9155c2535118Smrg 9156c2535118Smrg 9157c2535118Smrg 9158c2535118Smrg 9159c2535118Smrg 9160c2535118Smrg 9161c2535118Smrg 9162c2535118Smrg 9163c2535118Smrg 9164c2535118Smrg 9165c2535118Smrg 9166c2535118Smrg 9167c2535118Smrg 9168c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9169c2535118Smrg 9170c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9171c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91726d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 91736d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 91746d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 91756d8e82c3Smrgthen : 91766d8e82c3Smrg printf %s "(cached) " >&6 91776d8e82c3Smrgelse $as_nop 9178c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9179c2535118Smrg/* end confdefs.h. */ 9180c2535118Smrgint i; 9181c2535118Smrg_ACEOF 91826d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 91836d8e82c3Smrgthen : 9184c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 91856d8e82c3Smrgelse $as_nop 9186c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 9187c2535118Smrgfi 91886d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9189c2535118Smrgfi 91906d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 91916d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9192c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9193c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9194c2535118Smrgfi 9195c2535118Smrg 9196c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9197c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9198c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9199c2535118Smrg fi 9200c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92016d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 92026d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 92036d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 92046d8e82c3Smrgthen : 92056d8e82c3Smrg printf %s "(cached) " >&6 92066d8e82c3Smrgelse $as_nop 9207c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9208c2535118Smrg/* end confdefs.h. */ 9209c2535118Smrgint i; 9210c2535118Smrg_ACEOF 92116d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 92126d8e82c3Smrgthen : 9213c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 92146d8e82c3Smrgelse $as_nop 9215c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9216c2535118Smrgfi 92176d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9218c2535118Smrgfi 92196d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 92206d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9221c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9222c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9223c2535118Smrgfi 9224c2535118Smrg 9225c2535118Smrgfound="no" 9226c2535118Smrg 9227c2535118Smrg if test $found = "no" ; then 9228c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9229c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9230c2535118Smrg fi 9231c2535118Smrg 9232c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9233c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9234c2535118Smrg fi 9235c2535118Smrg 9236c2535118Smrg CFLAGS="$CFLAGS -Wnonnull" 9237c2535118Smrg 92386d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 92396d8e82c3Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; } 9240c2535118Smrg cacheid=xorg_cv_cc_flag__Wnonnull 92416d8e82c3Smrg if eval test \${$cacheid+y} 92426d8e82c3Smrgthen : 92436d8e82c3Smrg printf %s "(cached) " >&6 92446d8e82c3Smrgelse $as_nop 9245c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9246c2535118Smrg/* end confdefs.h. */ 9247c2535118Smrgint i; 9248c2535118Smrgint 92496d8e82c3Smrgmain (void) 9250c2535118Smrg{ 9251c2535118Smrg 9252c2535118Smrg ; 9253c2535118Smrg return 0; 9254c2535118Smrg} 9255c2535118Smrg_ACEOF 92566d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 92576d8e82c3Smrgthen : 9258c2535118Smrg eval $cacheid=yes 92596d8e82c3Smrgelse $as_nop 9260c2535118Smrg eval $cacheid=no 9261c2535118Smrgfi 92626d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9263c2535118Smrg conftest$ac_exeext conftest.$ac_ext 9264c2535118Smrgfi 9265c2535118Smrg 9266c2535118Smrg 9267c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9268c2535118Smrg 9269c2535118Smrg eval supported=\$$cacheid 92706d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 92716d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 9272c2535118Smrg if test "$supported" = "yes" ; then 9273c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9274c2535118Smrg found="yes" 9275c2535118Smrg fi 9276c2535118Smrg fi 9277c2535118Smrg 9278c2535118Smrg 9279c2535118Smrg 9280c2535118Smrg 9281c2535118Smrg 9282c2535118Smrg 9283c2535118Smrg 9284c2535118Smrg 9285c2535118Smrg 9286c2535118Smrg 9287c2535118Smrg 9288c2535118Smrg 9289c2535118Smrg 9290c2535118Smrg 9291c2535118Smrg 9292c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9293c2535118Smrg 9294c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9295c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92966d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 92976d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 92986d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 92996d8e82c3Smrgthen : 93006d8e82c3Smrg printf %s "(cached) " >&6 93016d8e82c3Smrgelse $as_nop 9302c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9303c2535118Smrg/* end confdefs.h. */ 9304c2535118Smrgint i; 9305c2535118Smrg_ACEOF 93066d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 93076d8e82c3Smrgthen : 9308c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 93096d8e82c3Smrgelse $as_nop 9310c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 9311c2535118Smrgfi 93126d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9313c2535118Smrgfi 93146d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 93156d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9316c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9317c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9318c2535118Smrgfi 9319c2535118Smrg 9320c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9321c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9322c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9323c2535118Smrg fi 9324c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93256d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 93266d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 93276d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 93286d8e82c3Smrgthen : 93296d8e82c3Smrg printf %s "(cached) " >&6 93306d8e82c3Smrgelse $as_nop 9331c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9332c2535118Smrg/* end confdefs.h. */ 9333c2535118Smrgint i; 9334c2535118Smrg_ACEOF 93356d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 93366d8e82c3Smrgthen : 9337c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 93386d8e82c3Smrgelse $as_nop 9339c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9340c2535118Smrgfi 93416d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9342c2535118Smrgfi 93436d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 93446d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9345c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9346c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9347c2535118Smrgfi 9348c2535118Smrg 9349c2535118Smrgfound="no" 9350c2535118Smrg 9351c2535118Smrg if test $found = "no" ; then 9352c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9353c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9354c2535118Smrg fi 9355c2535118Smrg 9356c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9357c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9358c2535118Smrg fi 9359c2535118Smrg 9360c2535118Smrg CFLAGS="$CFLAGS -Winit-self" 9361c2535118Smrg 93626d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 93636d8e82c3Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; } 9364c2535118Smrg cacheid=xorg_cv_cc_flag__Winit_self 93656d8e82c3Smrg if eval test \${$cacheid+y} 93666d8e82c3Smrgthen : 93676d8e82c3Smrg printf %s "(cached) " >&6 93686d8e82c3Smrgelse $as_nop 9369c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9370c2535118Smrg/* end confdefs.h. */ 9371c2535118Smrgint i; 9372c2535118Smrgint 93736d8e82c3Smrgmain (void) 9374c2535118Smrg{ 9375c2535118Smrg 9376c2535118Smrg ; 9377c2535118Smrg return 0; 9378c2535118Smrg} 9379c2535118Smrg_ACEOF 93806d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 93816d8e82c3Smrgthen : 9382c2535118Smrg eval $cacheid=yes 93836d8e82c3Smrgelse $as_nop 9384c2535118Smrg eval $cacheid=no 9385c2535118Smrgfi 93866d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9387c2535118Smrg conftest$ac_exeext conftest.$ac_ext 9388c2535118Smrgfi 9389c2535118Smrg 9390c2535118Smrg 9391c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9392c2535118Smrg 9393c2535118Smrg eval supported=\$$cacheid 93946d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 93956d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 9396c2535118Smrg if test "$supported" = "yes" ; then 9397c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9398c2535118Smrg found="yes" 9399c2535118Smrg fi 9400c2535118Smrg fi 9401c2535118Smrg 9402c2535118Smrg 9403c2535118Smrg 9404c2535118Smrg 9405c2535118Smrg 9406c2535118Smrg 9407c2535118Smrg 9408c2535118Smrg 9409c2535118Smrg 9410c2535118Smrg 9411c2535118Smrg 9412c2535118Smrg 9413c2535118Smrg 9414c2535118Smrg 9415c2535118Smrg 9416c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9417c2535118Smrg 9418c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9419c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94206d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 94216d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 94226d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 94236d8e82c3Smrgthen : 94246d8e82c3Smrg printf %s "(cached) " >&6 94256d8e82c3Smrgelse $as_nop 9426c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9427c2535118Smrg/* end confdefs.h. */ 9428c2535118Smrgint i; 9429c2535118Smrg_ACEOF 94306d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 94316d8e82c3Smrgthen : 9432c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 94336d8e82c3Smrgelse $as_nop 9434c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 9435c2535118Smrgfi 94366d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9437c2535118Smrgfi 94386d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 94396d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9440c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9441c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9442c2535118Smrgfi 9443c2535118Smrg 9444c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9445c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9446c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9447c2535118Smrg fi 9448c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 94496d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 94506d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 94516d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 94526d8e82c3Smrgthen : 94536d8e82c3Smrg printf %s "(cached) " >&6 94546d8e82c3Smrgelse $as_nop 9455c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9456c2535118Smrg/* end confdefs.h. */ 9457c2535118Smrgint i; 9458c2535118Smrg_ACEOF 94596d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 94606d8e82c3Smrgthen : 9461c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 94626d8e82c3Smrgelse $as_nop 9463c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9464c2535118Smrgfi 94656d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9466c2535118Smrgfi 94676d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 94686d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9469c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9470c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9471c2535118Smrgfi 9472c2535118Smrg 9473c2535118Smrgfound="no" 9474c2535118Smrg 9475c2535118Smrg if test $found = "no" ; then 9476c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9477c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9478c2535118Smrg fi 9479c2535118Smrg 9480c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9481c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9482c2535118Smrg fi 9483c2535118Smrg 9484c2535118Smrg CFLAGS="$CFLAGS -Wmain" 9485c2535118Smrg 94866d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 94876d8e82c3Smrgprintf %s "checking if $CC supports -Wmain... " >&6; } 9488c2535118Smrg cacheid=xorg_cv_cc_flag__Wmain 94896d8e82c3Smrg if eval test \${$cacheid+y} 94906d8e82c3Smrgthen : 94916d8e82c3Smrg printf %s "(cached) " >&6 94926d8e82c3Smrgelse $as_nop 9493c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9494c2535118Smrg/* end confdefs.h. */ 9495c2535118Smrgint i; 9496c2535118Smrgint 94976d8e82c3Smrgmain (void) 9498c2535118Smrg{ 9499c2535118Smrg 9500c2535118Smrg ; 9501c2535118Smrg return 0; 9502c2535118Smrg} 9503c2535118Smrg_ACEOF 95046d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 95056d8e82c3Smrgthen : 9506c2535118Smrg eval $cacheid=yes 95076d8e82c3Smrgelse $as_nop 9508c2535118Smrg eval $cacheid=no 9509c2535118Smrgfi 95106d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9511c2535118Smrg conftest$ac_exeext conftest.$ac_ext 9512c2535118Smrgfi 9513c2535118Smrg 9514c2535118Smrg 9515c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9516c2535118Smrg 9517c2535118Smrg eval supported=\$$cacheid 95186d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 95196d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 9520c2535118Smrg if test "$supported" = "yes" ; then 9521c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9522c2535118Smrg found="yes" 9523c2535118Smrg fi 9524c2535118Smrg fi 9525c2535118Smrg 9526c2535118Smrg 9527c2535118Smrg 9528c2535118Smrg 9529c2535118Smrg 9530c2535118Smrg 9531c2535118Smrg 9532c2535118Smrg 9533c2535118Smrg 9534c2535118Smrg 9535c2535118Smrg 9536c2535118Smrg 9537c2535118Smrg 9538c2535118Smrg 9539c2535118Smrg 9540c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9541c2535118Smrg 9542c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9543c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95446d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 95456d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 95466d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 95476d8e82c3Smrgthen : 95486d8e82c3Smrg printf %s "(cached) " >&6 95496d8e82c3Smrgelse $as_nop 9550c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9551c2535118Smrg/* end confdefs.h. */ 9552c2535118Smrgint i; 9553c2535118Smrg_ACEOF 95546d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 95556d8e82c3Smrgthen : 9556c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 95576d8e82c3Smrgelse $as_nop 9558c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 9559c2535118Smrgfi 95606d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9561c2535118Smrgfi 95626d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 95636d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9564c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9565c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9566c2535118Smrgfi 9567c2535118Smrg 9568c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9569c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9570c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9571c2535118Smrg fi 9572c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 95736d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 95746d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 95756d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 95766d8e82c3Smrgthen : 95776d8e82c3Smrg printf %s "(cached) " >&6 95786d8e82c3Smrgelse $as_nop 9579c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9580c2535118Smrg/* end confdefs.h. */ 9581c2535118Smrgint i; 9582c2535118Smrg_ACEOF 95836d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 95846d8e82c3Smrgthen : 9585c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 95866d8e82c3Smrgelse $as_nop 9587c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9588c2535118Smrgfi 95896d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9590c2535118Smrgfi 95916d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 95926d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9593c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9594c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9595c2535118Smrgfi 9596c2535118Smrg 9597c2535118Smrgfound="no" 9598c2535118Smrg 9599c2535118Smrg if test $found = "no" ; then 9600c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9601c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9602c2535118Smrg fi 9603c2535118Smrg 9604c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9605c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9606c2535118Smrg fi 9607c2535118Smrg 9608c2535118Smrg CFLAGS="$CFLAGS -Wmissing-braces" 9609c2535118Smrg 96106d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 96116d8e82c3Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9612c2535118Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 96136d8e82c3Smrg if eval test \${$cacheid+y} 96146d8e82c3Smrgthen : 96156d8e82c3Smrg printf %s "(cached) " >&6 96166d8e82c3Smrgelse $as_nop 9617c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9618c2535118Smrg/* end confdefs.h. */ 9619c2535118Smrgint i; 9620c2535118Smrgint 96216d8e82c3Smrgmain (void) 9622c2535118Smrg{ 9623c2535118Smrg 9624c2535118Smrg ; 9625c2535118Smrg return 0; 9626c2535118Smrg} 9627c2535118Smrg_ACEOF 96286d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 96296d8e82c3Smrgthen : 9630c2535118Smrg eval $cacheid=yes 96316d8e82c3Smrgelse $as_nop 9632c2535118Smrg eval $cacheid=no 9633c2535118Smrgfi 96346d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9635c2535118Smrg conftest$ac_exeext conftest.$ac_ext 9636c2535118Smrgfi 9637c2535118Smrg 9638c2535118Smrg 9639c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9640c2535118Smrg 9641c2535118Smrg eval supported=\$$cacheid 96426d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 96436d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 9644c2535118Smrg if test "$supported" = "yes" ; then 9645c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9646c2535118Smrg found="yes" 9647c2535118Smrg fi 9648c2535118Smrg fi 9649c2535118Smrg 9650c2535118Smrg 9651c2535118Smrg 9652c2535118Smrg 9653c2535118Smrg 9654c2535118Smrg 9655c2535118Smrg 9656c2535118Smrg 9657c2535118Smrg 9658c2535118Smrg 9659c2535118Smrg 9660c2535118Smrg 9661c2535118Smrg 9662c2535118Smrg 9663c2535118Smrg 9664c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9665c2535118Smrg 9666c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9667c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96686d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 96696d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 96706d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 96716d8e82c3Smrgthen : 96726d8e82c3Smrg printf %s "(cached) " >&6 96736d8e82c3Smrgelse $as_nop 9674c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9675c2535118Smrg/* end confdefs.h. */ 9676c2535118Smrgint i; 9677c2535118Smrg_ACEOF 96786d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 96796d8e82c3Smrgthen : 9680c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 96816d8e82c3Smrgelse $as_nop 9682c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 9683c2535118Smrgfi 96846d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9685c2535118Smrgfi 96866d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 96876d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9688c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9689c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9690c2535118Smrgfi 9691c2535118Smrg 9692c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9693c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9694c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9695c2535118Smrg fi 9696c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96976d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 96986d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 96996d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 97006d8e82c3Smrgthen : 97016d8e82c3Smrg printf %s "(cached) " >&6 97026d8e82c3Smrgelse $as_nop 9703c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9704c2535118Smrg/* end confdefs.h. */ 9705c2535118Smrgint i; 9706c2535118Smrg_ACEOF 97076d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 97086d8e82c3Smrgthen : 9709c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 97106d8e82c3Smrgelse $as_nop 9711c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9712c2535118Smrgfi 97136d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9714c2535118Smrgfi 97156d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 97166d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9717c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9718c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9719c2535118Smrgfi 9720c2535118Smrg 9721c2535118Smrgfound="no" 9722c2535118Smrg 9723c2535118Smrg if test $found = "no" ; then 9724c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9725c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9726c2535118Smrg fi 9727c2535118Smrg 9728c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9729c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9730c2535118Smrg fi 9731c2535118Smrg 9732c2535118Smrg CFLAGS="$CFLAGS -Wsequence-point" 9733c2535118Smrg 97346d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 97356d8e82c3Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; } 9736c2535118Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 97376d8e82c3Smrg if eval test \${$cacheid+y} 97386d8e82c3Smrgthen : 97396d8e82c3Smrg printf %s "(cached) " >&6 97406d8e82c3Smrgelse $as_nop 9741c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9742c2535118Smrg/* end confdefs.h. */ 9743c2535118Smrgint i; 9744c2535118Smrgint 97456d8e82c3Smrgmain (void) 9746c2535118Smrg{ 9747c2535118Smrg 9748c2535118Smrg ; 9749c2535118Smrg return 0; 9750c2535118Smrg} 9751c2535118Smrg_ACEOF 97526d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 97536d8e82c3Smrgthen : 9754c2535118Smrg eval $cacheid=yes 97556d8e82c3Smrgelse $as_nop 9756c2535118Smrg eval $cacheid=no 9757c2535118Smrgfi 97586d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9759c2535118Smrg conftest$ac_exeext conftest.$ac_ext 9760c2535118Smrgfi 9761c2535118Smrg 9762c2535118Smrg 9763c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9764c2535118Smrg 9765c2535118Smrg eval supported=\$$cacheid 97666d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 97676d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 9768c2535118Smrg if test "$supported" = "yes" ; then 9769c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9770c2535118Smrg found="yes" 9771c2535118Smrg fi 9772c2535118Smrg fi 9773c2535118Smrg 9774c2535118Smrg 9775c2535118Smrg 9776c2535118Smrg 9777c2535118Smrg 9778c2535118Smrg 9779c2535118Smrg 9780c2535118Smrg 9781c2535118Smrg 9782c2535118Smrg 9783c2535118Smrg 9784c2535118Smrg 9785c2535118Smrg 9786c2535118Smrg 9787c2535118Smrg 9788c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9789c2535118Smrg 9790c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9791c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97926d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 97936d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 97946d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 97956d8e82c3Smrgthen : 97966d8e82c3Smrg printf %s "(cached) " >&6 97976d8e82c3Smrgelse $as_nop 9798c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9799c2535118Smrg/* end confdefs.h. */ 9800c2535118Smrgint i; 9801c2535118Smrg_ACEOF 98026d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 98036d8e82c3Smrgthen : 9804c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 98056d8e82c3Smrgelse $as_nop 9806c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 9807c2535118Smrgfi 98086d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9809c2535118Smrgfi 98106d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 98116d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9812c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9813c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9814c2535118Smrgfi 9815c2535118Smrg 9816c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9817c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9818c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9819c2535118Smrg fi 9820c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98216d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 98226d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 98236d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 98246d8e82c3Smrgthen : 98256d8e82c3Smrg printf %s "(cached) " >&6 98266d8e82c3Smrgelse $as_nop 9827c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9828c2535118Smrg/* end confdefs.h. */ 9829c2535118Smrgint i; 9830c2535118Smrg_ACEOF 98316d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 98326d8e82c3Smrgthen : 9833c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 98346d8e82c3Smrgelse $as_nop 9835c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9836c2535118Smrgfi 98376d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9838c2535118Smrgfi 98396d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 98406d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9841c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9842c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9843c2535118Smrgfi 9844c2535118Smrg 9845c2535118Smrgfound="no" 9846c2535118Smrg 9847c2535118Smrg if test $found = "no" ; then 9848c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9849c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9850c2535118Smrg fi 9851c2535118Smrg 9852c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9853c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9854c2535118Smrg fi 9855c2535118Smrg 9856c2535118Smrg CFLAGS="$CFLAGS -Wreturn-type" 9857c2535118Smrg 98586d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 98596d8e82c3Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; } 9860c2535118Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 98616d8e82c3Smrg if eval test \${$cacheid+y} 98626d8e82c3Smrgthen : 98636d8e82c3Smrg printf %s "(cached) " >&6 98646d8e82c3Smrgelse $as_nop 9865c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9866c2535118Smrg/* end confdefs.h. */ 9867c2535118Smrgint i; 9868c2535118Smrgint 98696d8e82c3Smrgmain (void) 9870c2535118Smrg{ 9871c2535118Smrg 9872c2535118Smrg ; 9873c2535118Smrg return 0; 9874c2535118Smrg} 9875c2535118Smrg_ACEOF 98766d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 98776d8e82c3Smrgthen : 9878c2535118Smrg eval $cacheid=yes 98796d8e82c3Smrgelse $as_nop 9880c2535118Smrg eval $cacheid=no 9881c2535118Smrgfi 98826d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9883c2535118Smrg conftest$ac_exeext conftest.$ac_ext 9884c2535118Smrgfi 9885c2535118Smrg 9886c2535118Smrg 9887c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9888c2535118Smrg 9889c2535118Smrg eval supported=\$$cacheid 98906d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 98916d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 9892c2535118Smrg if test "$supported" = "yes" ; then 9893c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9894c2535118Smrg found="yes" 9895c2535118Smrg fi 9896c2535118Smrg fi 9897c2535118Smrg 9898c2535118Smrg 9899c2535118Smrg 9900c2535118Smrg 9901c2535118Smrg 9902c2535118Smrg 9903c2535118Smrg 9904c2535118Smrg 9905c2535118Smrg 9906c2535118Smrg 9907c2535118Smrg 9908c2535118Smrg 9909c2535118Smrg 9910c2535118Smrg 9911c2535118Smrg 9912c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9913c2535118Smrg 9914c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9915c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99166d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 99176d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 99186d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 99196d8e82c3Smrgthen : 99206d8e82c3Smrg printf %s "(cached) " >&6 99216d8e82c3Smrgelse $as_nop 9922c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9923c2535118Smrg/* end confdefs.h. */ 9924c2535118Smrgint i; 9925c2535118Smrg_ACEOF 99266d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 99276d8e82c3Smrgthen : 9928c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 99296d8e82c3Smrgelse $as_nop 9930c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 9931c2535118Smrgfi 99326d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9933c2535118Smrgfi 99346d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 99356d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9936c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9937c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9938c2535118Smrgfi 9939c2535118Smrg 9940c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9941c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9942c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9943c2535118Smrg fi 9944c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 99456d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 99466d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 99476d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 99486d8e82c3Smrgthen : 99496d8e82c3Smrg printf %s "(cached) " >&6 99506d8e82c3Smrgelse $as_nop 9951c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9952c2535118Smrg/* end confdefs.h. */ 9953c2535118Smrgint i; 9954c2535118Smrg_ACEOF 99556d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 99566d8e82c3Smrgthen : 9957c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 99586d8e82c3Smrgelse $as_nop 9959c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9960c2535118Smrgfi 99616d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9962c2535118Smrgfi 99636d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 99646d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9965c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9966c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9967c2535118Smrgfi 9968c2535118Smrg 9969c2535118Smrgfound="no" 9970c2535118Smrg 9971c2535118Smrg if test $found = "no" ; then 9972c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9973c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9974c2535118Smrg fi 9975c2535118Smrg 9976c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9977c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9978c2535118Smrg fi 9979c2535118Smrg 9980c2535118Smrg CFLAGS="$CFLAGS -Wtrigraphs" 9981c2535118Smrg 99826d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 99836d8e82c3Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9984c2535118Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 99856d8e82c3Smrg if eval test \${$cacheid+y} 99866d8e82c3Smrgthen : 99876d8e82c3Smrg printf %s "(cached) " >&6 99886d8e82c3Smrgelse $as_nop 9989c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9990c2535118Smrg/* end confdefs.h. */ 9991c2535118Smrgint i; 9992c2535118Smrgint 99936d8e82c3Smrgmain (void) 9994c2535118Smrg{ 9995c2535118Smrg 9996c2535118Smrg ; 9997c2535118Smrg return 0; 9998c2535118Smrg} 9999c2535118Smrg_ACEOF 100006d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 100016d8e82c3Smrgthen : 10002c2535118Smrg eval $cacheid=yes 100036d8e82c3Smrgelse $as_nop 10004c2535118Smrg eval $cacheid=no 10005c2535118Smrgfi 100066d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10007c2535118Smrg conftest$ac_exeext conftest.$ac_ext 10008c2535118Smrgfi 10009c2535118Smrg 10010c2535118Smrg 10011c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10012c2535118Smrg 10013c2535118Smrg eval supported=\$$cacheid 100146d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 100156d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 10016c2535118Smrg if test "$supported" = "yes" ; then 10017c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10018c2535118Smrg found="yes" 10019c2535118Smrg fi 10020c2535118Smrg fi 10021c2535118Smrg 10022c2535118Smrg 10023c2535118Smrg 10024c2535118Smrg 10025c2535118Smrg 10026c2535118Smrg 10027c2535118Smrg 10028c2535118Smrg 10029c2535118Smrg 10030c2535118Smrg 10031c2535118Smrg 10032c2535118Smrg 10033c2535118Smrg 10034c2535118Smrg 10035c2535118Smrg 10036c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10037c2535118Smrg 10038c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10039c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100406d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 100416d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 100426d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 100436d8e82c3Smrgthen : 100446d8e82c3Smrg printf %s "(cached) " >&6 100456d8e82c3Smrgelse $as_nop 10046c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10047c2535118Smrg/* end confdefs.h. */ 10048c2535118Smrgint i; 10049c2535118Smrg_ACEOF 100506d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 100516d8e82c3Smrgthen : 10052c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 100536d8e82c3Smrgelse $as_nop 10054c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 10055c2535118Smrgfi 100566d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10057c2535118Smrgfi 100586d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 100596d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10060c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10061c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10062c2535118Smrgfi 10063c2535118Smrg 10064c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10065c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10066c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10067c2535118Smrg fi 10068c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100696d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 100706d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 100716d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 100726d8e82c3Smrgthen : 100736d8e82c3Smrg printf %s "(cached) " >&6 100746d8e82c3Smrgelse $as_nop 10075c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10076c2535118Smrg/* end confdefs.h. */ 10077c2535118Smrgint i; 10078c2535118Smrg_ACEOF 100796d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 100806d8e82c3Smrgthen : 10081c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 100826d8e82c3Smrgelse $as_nop 10083c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10084c2535118Smrgfi 100856d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10086c2535118Smrgfi 100876d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 100886d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10089c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10090c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10091c2535118Smrgfi 10092c2535118Smrg 10093c2535118Smrgfound="no" 10094c2535118Smrg 10095c2535118Smrg if test $found = "no" ; then 10096c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10097c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10098c2535118Smrg fi 10099c2535118Smrg 10100c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10101c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10102c2535118Smrg fi 10103c2535118Smrg 10104c2535118Smrg CFLAGS="$CFLAGS -Warray-bounds" 10105c2535118Smrg 101066d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 101076d8e82c3Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; } 10108c2535118Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 101096d8e82c3Smrg if eval test \${$cacheid+y} 101106d8e82c3Smrgthen : 101116d8e82c3Smrg printf %s "(cached) " >&6 101126d8e82c3Smrgelse $as_nop 10113c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10114c2535118Smrg/* end confdefs.h. */ 10115c2535118Smrgint i; 10116c2535118Smrgint 101176d8e82c3Smrgmain (void) 10118c2535118Smrg{ 10119c2535118Smrg 10120c2535118Smrg ; 10121c2535118Smrg return 0; 10122c2535118Smrg} 10123c2535118Smrg_ACEOF 101246d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 101256d8e82c3Smrgthen : 10126c2535118Smrg eval $cacheid=yes 101276d8e82c3Smrgelse $as_nop 10128c2535118Smrg eval $cacheid=no 10129c2535118Smrgfi 101306d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10131c2535118Smrg conftest$ac_exeext conftest.$ac_ext 10132c2535118Smrgfi 10133c2535118Smrg 10134c2535118Smrg 10135c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10136c2535118Smrg 10137c2535118Smrg eval supported=\$$cacheid 101386d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 101396d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 10140c2535118Smrg if test "$supported" = "yes" ; then 10141c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10142c2535118Smrg found="yes" 10143c2535118Smrg fi 10144c2535118Smrg fi 10145c2535118Smrg 10146c2535118Smrg 10147c2535118Smrg 10148c2535118Smrg 10149c2535118Smrg 10150c2535118Smrg 10151c2535118Smrg 10152c2535118Smrg 10153c2535118Smrg 10154c2535118Smrg 10155c2535118Smrg 10156c2535118Smrg 10157c2535118Smrg 10158c2535118Smrg 10159c2535118Smrg 10160c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10161c2535118Smrg 10162c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10163c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101646d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 101656d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 101666d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 101676d8e82c3Smrgthen : 101686d8e82c3Smrg printf %s "(cached) " >&6 101696d8e82c3Smrgelse $as_nop 10170c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10171c2535118Smrg/* end confdefs.h. */ 10172c2535118Smrgint i; 10173c2535118Smrg_ACEOF 101746d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 101756d8e82c3Smrgthen : 10176c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 101776d8e82c3Smrgelse $as_nop 10178c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 10179c2535118Smrgfi 101806d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10181c2535118Smrgfi 101826d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 101836d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10184c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10185c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10186c2535118Smrgfi 10187c2535118Smrg 10188c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10189c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10190c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10191c2535118Smrg fi 10192c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101936d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 101946d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 101956d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 101966d8e82c3Smrgthen : 101976d8e82c3Smrg printf %s "(cached) " >&6 101986d8e82c3Smrgelse $as_nop 10199c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10200c2535118Smrg/* end confdefs.h. */ 10201c2535118Smrgint i; 10202c2535118Smrg_ACEOF 102036d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 102046d8e82c3Smrgthen : 10205c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 102066d8e82c3Smrgelse $as_nop 10207c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10208c2535118Smrgfi 102096d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10210c2535118Smrgfi 102116d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 102126d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10213c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10214c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10215c2535118Smrgfi 10216c2535118Smrg 10217c2535118Smrgfound="no" 10218c2535118Smrg 10219c2535118Smrg if test $found = "no" ; then 10220c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10221c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10222c2535118Smrg fi 10223c2535118Smrg 10224c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10225c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10226c2535118Smrg fi 10227c2535118Smrg 10228c2535118Smrg CFLAGS="$CFLAGS -Wwrite-strings" 10229c2535118Smrg 102306d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 102316d8e82c3Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10232c2535118Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 102336d8e82c3Smrg if eval test \${$cacheid+y} 102346d8e82c3Smrgthen : 102356d8e82c3Smrg printf %s "(cached) " >&6 102366d8e82c3Smrgelse $as_nop 10237c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10238c2535118Smrg/* end confdefs.h. */ 10239c2535118Smrgint i; 10240c2535118Smrgint 102416d8e82c3Smrgmain (void) 10242c2535118Smrg{ 10243c2535118Smrg 10244c2535118Smrg ; 10245c2535118Smrg return 0; 10246c2535118Smrg} 10247c2535118Smrg_ACEOF 102486d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 102496d8e82c3Smrgthen : 10250c2535118Smrg eval $cacheid=yes 102516d8e82c3Smrgelse $as_nop 10252c2535118Smrg eval $cacheid=no 10253c2535118Smrgfi 102546d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10255c2535118Smrg conftest$ac_exeext conftest.$ac_ext 10256c2535118Smrgfi 10257c2535118Smrg 10258c2535118Smrg 10259c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10260c2535118Smrg 10261c2535118Smrg eval supported=\$$cacheid 102626d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 102636d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 10264c2535118Smrg if test "$supported" = "yes" ; then 10265c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10266c2535118Smrg found="yes" 10267c2535118Smrg fi 10268c2535118Smrg fi 10269c2535118Smrg 10270c2535118Smrg 10271c2535118Smrg 10272c2535118Smrg 10273c2535118Smrg 10274c2535118Smrg 10275c2535118Smrg 10276c2535118Smrg 10277c2535118Smrg 10278c2535118Smrg 10279c2535118Smrg 10280c2535118Smrg 10281c2535118Smrg 10282c2535118Smrg 10283c2535118Smrg 10284c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10285c2535118Smrg 10286c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10287c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102886d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 102896d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 102906d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 102916d8e82c3Smrgthen : 102926d8e82c3Smrg printf %s "(cached) " >&6 102936d8e82c3Smrgelse $as_nop 10294c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10295c2535118Smrg/* end confdefs.h. */ 10296c2535118Smrgint i; 10297c2535118Smrg_ACEOF 102986d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 102996d8e82c3Smrgthen : 10300c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 103016d8e82c3Smrgelse $as_nop 10302c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 10303c2535118Smrgfi 103046d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10305c2535118Smrgfi 103066d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 103076d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10308c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10309c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10310c2535118Smrgfi 10311c2535118Smrg 10312c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10313c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10314c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10315c2535118Smrg fi 10316c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 103176d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 103186d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 103196d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 103206d8e82c3Smrgthen : 103216d8e82c3Smrg printf %s "(cached) " >&6 103226d8e82c3Smrgelse $as_nop 10323c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10324c2535118Smrg/* end confdefs.h. */ 10325c2535118Smrgint i; 10326c2535118Smrg_ACEOF 103276d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 103286d8e82c3Smrgthen : 10329c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 103306d8e82c3Smrgelse $as_nop 10331c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10332c2535118Smrgfi 103336d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10334c2535118Smrgfi 103356d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 103366d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10337c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10338c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10339c2535118Smrgfi 10340c2535118Smrg 10341c2535118Smrgfound="no" 10342c2535118Smrg 10343c2535118Smrg if test $found = "no" ; then 10344c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10345c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10346c2535118Smrg fi 10347c2535118Smrg 10348c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10349c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10350c2535118Smrg fi 10351c2535118Smrg 10352c2535118Smrg CFLAGS="$CFLAGS -Waddress" 10353c2535118Smrg 103546d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 103556d8e82c3Smrgprintf %s "checking if $CC supports -Waddress... " >&6; } 10356c2535118Smrg cacheid=xorg_cv_cc_flag__Waddress 103576d8e82c3Smrg if eval test \${$cacheid+y} 103586d8e82c3Smrgthen : 103596d8e82c3Smrg printf %s "(cached) " >&6 103606d8e82c3Smrgelse $as_nop 10361c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10362c2535118Smrg/* end confdefs.h. */ 10363c2535118Smrgint i; 10364c2535118Smrgint 103656d8e82c3Smrgmain (void) 10366c2535118Smrg{ 10367c2535118Smrg 10368c2535118Smrg ; 10369c2535118Smrg return 0; 10370c2535118Smrg} 10371c2535118Smrg_ACEOF 103726d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 103736d8e82c3Smrgthen : 10374c2535118Smrg eval $cacheid=yes 103756d8e82c3Smrgelse $as_nop 10376c2535118Smrg eval $cacheid=no 10377c2535118Smrgfi 103786d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10379c2535118Smrg conftest$ac_exeext conftest.$ac_ext 10380c2535118Smrgfi 10381c2535118Smrg 10382c2535118Smrg 10383c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10384c2535118Smrg 10385c2535118Smrg eval supported=\$$cacheid 103866d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 103876d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 10388c2535118Smrg if test "$supported" = "yes" ; then 10389c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10390c2535118Smrg found="yes" 10391c2535118Smrg fi 10392c2535118Smrg fi 10393c2535118Smrg 10394c2535118Smrg 10395c2535118Smrg 10396c2535118Smrg 10397c2535118Smrg 10398c2535118Smrg 10399c2535118Smrg 10400c2535118Smrg 10401c2535118Smrg 10402c2535118Smrg 10403c2535118Smrg 10404c2535118Smrg 10405c2535118Smrg 10406c2535118Smrg 10407c2535118Smrg 10408c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10409c2535118Smrg 10410c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10411c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 104126d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 104136d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 104146d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 104156d8e82c3Smrgthen : 104166d8e82c3Smrg printf %s "(cached) " >&6 104176d8e82c3Smrgelse $as_nop 10418c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10419c2535118Smrg/* end confdefs.h. */ 10420c2535118Smrgint i; 10421c2535118Smrg_ACEOF 104226d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 104236d8e82c3Smrgthen : 10424c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 104256d8e82c3Smrgelse $as_nop 10426c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 10427c2535118Smrgfi 104286d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10429c2535118Smrgfi 104306d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 104316d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10432c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10433c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10434c2535118Smrgfi 10435c2535118Smrg 10436c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10437c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10438c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10439c2535118Smrg fi 10440c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 104416d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 104426d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 104436d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 104446d8e82c3Smrgthen : 104456d8e82c3Smrg printf %s "(cached) " >&6 104466d8e82c3Smrgelse $as_nop 10447c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10448c2535118Smrg/* end confdefs.h. */ 10449c2535118Smrgint i; 10450c2535118Smrg_ACEOF 104516d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 104526d8e82c3Smrgthen : 10453c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 104546d8e82c3Smrgelse $as_nop 10455c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10456c2535118Smrgfi 104576d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10458c2535118Smrgfi 104596d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 104606d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10461c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10462c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10463c2535118Smrgfi 10464c2535118Smrg 10465c2535118Smrgfound="no" 10466c2535118Smrg 10467c2535118Smrg if test $found = "no" ; then 10468c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10469c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10470c2535118Smrg fi 10471c2535118Smrg 10472c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10473c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10474c2535118Smrg fi 10475c2535118Smrg 10476c2535118Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10477c2535118Smrg 104786d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 104796d8e82c3Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10480c2535118Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 104816d8e82c3Smrg if eval test \${$cacheid+y} 104826d8e82c3Smrgthen : 104836d8e82c3Smrg printf %s "(cached) " >&6 104846d8e82c3Smrgelse $as_nop 10485c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10486c2535118Smrg/* end confdefs.h. */ 10487c2535118Smrgint i; 10488c2535118Smrgint 104896d8e82c3Smrgmain (void) 10490c2535118Smrg{ 10491c2535118Smrg 10492c2535118Smrg ; 10493c2535118Smrg return 0; 10494c2535118Smrg} 10495c2535118Smrg_ACEOF 104966d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 104976d8e82c3Smrgthen : 10498c2535118Smrg eval $cacheid=yes 104996d8e82c3Smrgelse $as_nop 10500c2535118Smrg eval $cacheid=no 10501c2535118Smrgfi 105026d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10503c2535118Smrg conftest$ac_exeext conftest.$ac_ext 10504c2535118Smrgfi 10505c2535118Smrg 10506c2535118Smrg 10507c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10508c2535118Smrg 10509c2535118Smrg eval supported=\$$cacheid 105106d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 105116d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 10512c2535118Smrg if test "$supported" = "yes" ; then 10513c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10514c2535118Smrg found="yes" 10515c2535118Smrg fi 10516c2535118Smrg fi 10517c2535118Smrg 10518c2535118Smrg 10519c2535118Smrg 10520c2535118Smrg 10521c2535118Smrg 10522c2535118Smrg 10523c2535118Smrg 10524c2535118Smrg 10525c2535118Smrg 10526c2535118Smrg 10527c2535118Smrg 10528c2535118Smrg 10529c2535118Smrg 10530c2535118Smrg 10531c2535118Smrg 10532c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10533c2535118Smrg 10534c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10535c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 105366d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 105376d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 105386d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 105396d8e82c3Smrgthen : 105406d8e82c3Smrg printf %s "(cached) " >&6 105416d8e82c3Smrgelse $as_nop 10542c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10543c2535118Smrg/* end confdefs.h. */ 10544c2535118Smrgint i; 10545c2535118Smrg_ACEOF 105466d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 105476d8e82c3Smrgthen : 10548c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 105496d8e82c3Smrgelse $as_nop 10550c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 10551c2535118Smrgfi 105526d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10553c2535118Smrgfi 105546d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 105556d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10556c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10557c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10558c2535118Smrgfi 10559c2535118Smrg 10560c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10561c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10562c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10563c2535118Smrg fi 10564c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 105656d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 105666d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 105676d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 105686d8e82c3Smrgthen : 105696d8e82c3Smrg printf %s "(cached) " >&6 105706d8e82c3Smrgelse $as_nop 10571c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10572c2535118Smrg/* end confdefs.h. */ 10573c2535118Smrgint i; 10574c2535118Smrg_ACEOF 105756d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 105766d8e82c3Smrgthen : 10577c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 105786d8e82c3Smrgelse $as_nop 10579c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10580c2535118Smrgfi 105816d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10582c2535118Smrgfi 105836d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 105846d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10585c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10586c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10587c2535118Smrgfi 10588c2535118Smrg 10589c2535118Smrgfound="no" 10590c2535118Smrg 10591c2535118Smrg if test $found = "no" ; then 10592c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10593c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10594c2535118Smrg fi 10595c2535118Smrg 10596c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10597c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10598c2535118Smrg fi 10599c2535118Smrg 10600c2535118Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10601c2535118Smrg 106026d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 106036d8e82c3Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10604c2535118Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 106056d8e82c3Smrg if eval test \${$cacheid+y} 106066d8e82c3Smrgthen : 106076d8e82c3Smrg printf %s "(cached) " >&6 106086d8e82c3Smrgelse $as_nop 10609c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10610c2535118Smrg/* end confdefs.h. */ 10611c2535118Smrgint i; 10612c2535118Smrgint 106136d8e82c3Smrgmain (void) 10614c2535118Smrg{ 10615c2535118Smrg 10616c2535118Smrg ; 10617c2535118Smrg return 0; 10618c2535118Smrg} 10619c2535118Smrg_ACEOF 106206d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 106216d8e82c3Smrgthen : 10622c2535118Smrg eval $cacheid=yes 106236d8e82c3Smrgelse $as_nop 10624c2535118Smrg eval $cacheid=no 10625c2535118Smrgfi 106266d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10627c2535118Smrg conftest$ac_exeext conftest.$ac_ext 10628c2535118Smrgfi 10629c2535118Smrg 10630c2535118Smrg 10631c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10632c2535118Smrg 10633c2535118Smrg eval supported=\$$cacheid 106346d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 106356d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 10636c2535118Smrg if test "$supported" = "yes" ; then 10637c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10638c2535118Smrg found="yes" 10639c2535118Smrg fi 10640c2535118Smrg fi 10641c2535118Smrg 10642c2535118Smrg 10643c2535118Smrgfi 10644c2535118Smrg 10645c2535118Smrg 10646c2535118Smrg 10647c2535118Smrg 10648c2535118Smrg 10649c2535118Smrg 10650c2535118Smrg 10651c2535118Smrg CWARNFLAGS="$BASE_CFLAGS" 10652c2535118Smrg if test "x$GCC" = xyes ; then 10653c2535118Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10654c2535118Smrg fi 10655c2535118Smrg 10656c2535118Smrg 10657c2535118Smrg 10658c2535118Smrg 10659c2535118Smrg 10660c2535118Smrg 10661c2535118Smrg 10662c2535118Smrg 10663c2535118Smrg# Check whether --enable-strict-compilation was given. 106646d8e82c3Smrgif test ${enable_strict_compilation+y} 106656d8e82c3Smrgthen : 10666c2535118Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 106676d8e82c3Smrgelse $as_nop 10668c2535118Smrg STRICT_COMPILE=no 10669c2535118Smrgfi 10670c2535118Smrg 10671c2535118Smrg 10672c2535118Smrg 10673c2535118Smrg 10674c2535118Smrg 10675c2535118Smrg 10676c2535118SmrgSTRICT_CFLAGS="" 10677c2535118Smrg 10678c2535118Smrg 10679c2535118Smrg 10680c2535118Smrg 10681c2535118Smrg 10682c2535118Smrg 10683c2535118Smrg 10684c2535118Smrg 10685c2535118Smrg 10686c2535118Smrg 10687c2535118Smrg 10688c2535118Smrg 10689c2535118Smrg 10690c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10691c2535118Smrg 10692c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10693c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 106946d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 106956d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 106966d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 106976d8e82c3Smrgthen : 106986d8e82c3Smrg printf %s "(cached) " >&6 106996d8e82c3Smrgelse $as_nop 10700c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10701c2535118Smrg/* end confdefs.h. */ 10702c2535118Smrgint i; 10703c2535118Smrg_ACEOF 107046d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 107056d8e82c3Smrgthen : 10706c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 107076d8e82c3Smrgelse $as_nop 10708c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 10709c2535118Smrgfi 107106d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10711c2535118Smrgfi 107126d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 107136d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10714c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10715c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10716c2535118Smrgfi 10717c2535118Smrg 10718c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10719c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10720c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10721c2535118Smrg fi 10722c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 107236d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 107246d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 107256d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 107266d8e82c3Smrgthen : 107276d8e82c3Smrg printf %s "(cached) " >&6 107286d8e82c3Smrgelse $as_nop 10729c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10730c2535118Smrg/* end confdefs.h. */ 10731c2535118Smrgint i; 10732c2535118Smrg_ACEOF 107336d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 107346d8e82c3Smrgthen : 10735c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 107366d8e82c3Smrgelse $as_nop 10737c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10738c2535118Smrgfi 107396d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10740c2535118Smrgfi 107416d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 107426d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10743c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10744c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10745c2535118Smrgfi 10746c2535118Smrg 10747c2535118Smrgfound="no" 10748c2535118Smrg 10749c2535118Smrg if test $found = "no" ; then 10750c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10751c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10752c2535118Smrg fi 10753c2535118Smrg 10754c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10755c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10756c2535118Smrg fi 10757c2535118Smrg 10758c2535118Smrg CFLAGS="$CFLAGS -pedantic" 10759c2535118Smrg 107606d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 107616d8e82c3Smrgprintf %s "checking if $CC supports -pedantic... " >&6; } 10762c2535118Smrg cacheid=xorg_cv_cc_flag__pedantic 107636d8e82c3Smrg if eval test \${$cacheid+y} 107646d8e82c3Smrgthen : 107656d8e82c3Smrg printf %s "(cached) " >&6 107666d8e82c3Smrgelse $as_nop 10767c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10768c2535118Smrg/* end confdefs.h. */ 10769c2535118Smrgint i; 10770c2535118Smrgint 107716d8e82c3Smrgmain (void) 10772c2535118Smrg{ 10773c2535118Smrg 10774c2535118Smrg ; 10775c2535118Smrg return 0; 10776c2535118Smrg} 10777c2535118Smrg_ACEOF 107786d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 107796d8e82c3Smrgthen : 10780c2535118Smrg eval $cacheid=yes 107816d8e82c3Smrgelse $as_nop 10782c2535118Smrg eval $cacheid=no 10783c2535118Smrgfi 107846d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10785c2535118Smrg conftest$ac_exeext conftest.$ac_ext 10786c2535118Smrgfi 10787c2535118Smrg 10788c2535118Smrg 10789c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10790c2535118Smrg 10791c2535118Smrg eval supported=\$$cacheid 107926d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 107936d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 10794c2535118Smrg if test "$supported" = "yes" ; then 10795c2535118Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10796c2535118Smrg found="yes" 10797c2535118Smrg fi 10798c2535118Smrg fi 10799c2535118Smrg 10800c2535118Smrg 10801c2535118Smrg 10802c2535118Smrg 10803c2535118Smrg 10804c2535118Smrg 10805c2535118Smrg 10806c2535118Smrg 10807c2535118Smrg 10808c2535118Smrg 10809c2535118Smrg 10810c2535118Smrg 10811c2535118Smrg 10812c2535118Smrg 10813c2535118Smrg 10814c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10815c2535118Smrg 10816c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10817c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 108186d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 108196d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 108206d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 108216d8e82c3Smrgthen : 108226d8e82c3Smrg printf %s "(cached) " >&6 108236d8e82c3Smrgelse $as_nop 10824c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10825c2535118Smrg/* end confdefs.h. */ 10826c2535118Smrgint i; 10827c2535118Smrg_ACEOF 108286d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 108296d8e82c3Smrgthen : 10830c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 108316d8e82c3Smrgelse $as_nop 10832c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 10833c2535118Smrgfi 108346d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10835c2535118Smrgfi 108366d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 108376d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10838c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10839c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10840c2535118Smrgfi 10841c2535118Smrg 10842c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10843c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10844c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10845c2535118Smrg fi 10846c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 108476d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 108486d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 108496d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 108506d8e82c3Smrgthen : 108516d8e82c3Smrg printf %s "(cached) " >&6 108526d8e82c3Smrgelse $as_nop 10853c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10854c2535118Smrg/* end confdefs.h. */ 10855c2535118Smrgint i; 10856c2535118Smrg_ACEOF 108576d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 108586d8e82c3Smrgthen : 10859c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 108606d8e82c3Smrgelse $as_nop 10861c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10862c2535118Smrgfi 108636d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10864c2535118Smrgfi 108656d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 108666d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10867c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10868c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10869c2535118Smrgfi 10870c2535118Smrg 10871c2535118Smrgfound="no" 10872c2535118Smrg 10873c2535118Smrg if test $found = "no" ; then 10874c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10875c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10876c2535118Smrg fi 10877c2535118Smrg 10878c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10879c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10880c2535118Smrg fi 10881c2535118Smrg 10882c2535118Smrg CFLAGS="$CFLAGS -Werror" 10883c2535118Smrg 108846d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 108856d8e82c3Smrgprintf %s "checking if $CC supports -Werror... " >&6; } 10886c2535118Smrg cacheid=xorg_cv_cc_flag__Werror 108876d8e82c3Smrg if eval test \${$cacheid+y} 108886d8e82c3Smrgthen : 108896d8e82c3Smrg printf %s "(cached) " >&6 108906d8e82c3Smrgelse $as_nop 10891c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10892c2535118Smrg/* end confdefs.h. */ 10893c2535118Smrgint i; 10894c2535118Smrgint 108956d8e82c3Smrgmain (void) 10896c2535118Smrg{ 10897c2535118Smrg 10898c2535118Smrg ; 10899c2535118Smrg return 0; 10900c2535118Smrg} 10901c2535118Smrg_ACEOF 109026d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 109036d8e82c3Smrgthen : 10904c2535118Smrg eval $cacheid=yes 109056d8e82c3Smrgelse $as_nop 10906c2535118Smrg eval $cacheid=no 10907c2535118Smrgfi 109086d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10909c2535118Smrg conftest$ac_exeext conftest.$ac_ext 10910c2535118Smrgfi 10911c2535118Smrg 10912c2535118Smrg 10913c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10914c2535118Smrg 10915c2535118Smrg eval supported=\$$cacheid 109166d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 109176d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 10918c2535118Smrg if test "$supported" = "yes" ; then 10919c2535118Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10920c2535118Smrg found="yes" 10921c2535118Smrg fi 10922c2535118Smrg fi 10923c2535118Smrg 10924c2535118Smrg if test $found = "no" ; then 10925c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10926c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10927c2535118Smrg fi 10928c2535118Smrg 10929c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10930c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10931c2535118Smrg fi 10932c2535118Smrg 10933c2535118Smrg CFLAGS="$CFLAGS -errwarn" 10934c2535118Smrg 109356d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 109366d8e82c3Smrgprintf %s "checking if $CC supports -errwarn... " >&6; } 10937c2535118Smrg cacheid=xorg_cv_cc_flag__errwarn 109386d8e82c3Smrg if eval test \${$cacheid+y} 109396d8e82c3Smrgthen : 109406d8e82c3Smrg printf %s "(cached) " >&6 109416d8e82c3Smrgelse $as_nop 10942c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10943c2535118Smrg/* end confdefs.h. */ 10944c2535118Smrgint i; 10945c2535118Smrgint 109466d8e82c3Smrgmain (void) 10947c2535118Smrg{ 10948c2535118Smrg 10949c2535118Smrg ; 10950c2535118Smrg return 0; 10951c2535118Smrg} 10952c2535118Smrg_ACEOF 109536d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 109546d8e82c3Smrgthen : 10955c2535118Smrg eval $cacheid=yes 109566d8e82c3Smrgelse $as_nop 10957c2535118Smrg eval $cacheid=no 10958c2535118Smrgfi 109596d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10960c2535118Smrg conftest$ac_exeext conftest.$ac_ext 10961c2535118Smrgfi 10962c2535118Smrg 10963c2535118Smrg 10964c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10965c2535118Smrg 10966c2535118Smrg eval supported=\$$cacheid 109676d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 109686d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 10969c2535118Smrg if test "$supported" = "yes" ; then 10970c2535118Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10971c2535118Smrg found="yes" 10972c2535118Smrg fi 10973c2535118Smrg fi 10974c2535118Smrg 10975c2535118Smrg 10976c2535118Smrg 10977c2535118Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10978c2535118Smrg# activate it with -Werror, so we add it here explicitly. 10979c2535118Smrg 10980c2535118Smrg 10981c2535118Smrg 10982c2535118Smrg 10983c2535118Smrg 10984c2535118Smrg 10985c2535118Smrg 10986c2535118Smrg 10987c2535118Smrg 10988c2535118Smrg 10989c2535118Smrg 10990c2535118Smrg 10991c2535118Smrg 10992c2535118Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10993c2535118Smrg 10994c2535118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10995c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 109966d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 109976d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 109986d8e82c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 109996d8e82c3Smrgthen : 110006d8e82c3Smrg printf %s "(cached) " >&6 110016d8e82c3Smrgelse $as_nop 11002c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11003c2535118Smrg/* end confdefs.h. */ 11004c2535118Smrgint i; 11005c2535118Smrg_ACEOF 110066d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 110076d8e82c3Smrgthen : 11008c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=yes 110096d8e82c3Smrgelse $as_nop 11010c2535118Smrg xorg_cv_cc_flag_unknown_warning_option=no 11011c2535118Smrgfi 110126d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11013c2535118Smrgfi 110146d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 110156d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11016c2535118Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11017c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 11018c2535118Smrgfi 11019c2535118Smrg 11020c2535118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11021c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11022c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11023c2535118Smrg fi 11024c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 110256d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 110266d8e82c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 110276d8e82c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 110286d8e82c3Smrgthen : 110296d8e82c3Smrg printf %s "(cached) " >&6 110306d8e82c3Smrgelse $as_nop 11031c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11032c2535118Smrg/* end confdefs.h. */ 11033c2535118Smrgint i; 11034c2535118Smrg_ACEOF 110356d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 110366d8e82c3Smrgthen : 11037c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 110386d8e82c3Smrgelse $as_nop 11039c2535118Smrg xorg_cv_cc_flag_unused_command_line_argument=no 11040c2535118Smrgfi 110416d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11042c2535118Smrgfi 110436d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 110446d8e82c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11045c2535118Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11046c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 11047c2535118Smrgfi 11048c2535118Smrg 11049c2535118Smrgfound="no" 11050c2535118Smrg 11051c2535118Smrg if test $found = "no" ; then 11052c2535118Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11053c2535118Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11054c2535118Smrg fi 11055c2535118Smrg 11056c2535118Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11057c2535118Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11058c2535118Smrg fi 11059c2535118Smrg 11060c2535118Smrg CFLAGS="$CFLAGS -Werror=attributes" 11061c2535118Smrg 110626d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 110636d8e82c3Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; } 110649cd34f4bSmrg cacheid=xorg_cv_cc_flag__Werror_attributes 110656d8e82c3Smrg if eval test \${$cacheid+y} 110666d8e82c3Smrgthen : 110676d8e82c3Smrg printf %s "(cached) " >&6 110686d8e82c3Smrgelse $as_nop 11069c2535118Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11070c2535118Smrg/* end confdefs.h. */ 11071c2535118Smrgint i; 11072c2535118Smrgint 110736d8e82c3Smrgmain (void) 11074c2535118Smrg{ 11075c2535118Smrg 11076c2535118Smrg ; 11077c2535118Smrg return 0; 11078c2535118Smrg} 11079c2535118Smrg_ACEOF 110806d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 110816d8e82c3Smrgthen : 11082c2535118Smrg eval $cacheid=yes 110836d8e82c3Smrgelse $as_nop 11084c2535118Smrg eval $cacheid=no 11085c2535118Smrgfi 110866d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 11087c2535118Smrg conftest$ac_exeext conftest.$ac_ext 11088c2535118Smrgfi 11089c2535118Smrg 11090c2535118Smrg 11091c2535118Smrg CFLAGS="$xorg_testset_save_CFLAGS" 11092c2535118Smrg 11093c2535118Smrg eval supported=\$$cacheid 110946d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 110956d8e82c3Smrgprintf "%s\n" "$supported" >&6; } 11096c2535118Smrg if test "$supported" = "yes" ; then 11097c2535118Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11098c2535118Smrg found="yes" 11099c2535118Smrg fi 11100c2535118Smrg fi 11101c2535118Smrg 11102c2535118Smrg 11103c2535118Smrg 11104c2535118Smrgif test "x$STRICT_COMPILE" = "xyes"; then 11105c2535118Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11106c2535118Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11107c2535118Smrgfi 11108c2535118Smrg 11109c2535118Smrg 11110c2535118Smrg 11111c2535118Smrg 11112c2535118Smrg 11113c2535118Smrg 11114c2535118Smrgcat >>confdefs.h <<_ACEOF 11115c2535118Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11116c2535118Smrg_ACEOF 11117c2535118Smrg 11118c2535118Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11119c2535118Smrg if test "x$PVM" = "x"; then 11120c2535118Smrg PVM="0" 11121c2535118Smrg fi 11122c2535118Smrg 111236d8e82c3Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11124c2535118Smrg 11125c2535118Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11126c2535118Smrg if test "x$PVP" = "x"; then 11127c2535118Smrg PVP="0" 11128c2535118Smrg fi 11129c2535118Smrg 111306d8e82c3Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11131c2535118Smrg 11132c2535118Smrg 11133c2535118Smrg 111346d8e82c3SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11135c2535118Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 111366d8e82c3Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 111376d8e82c3Smrgtouch \$(top_srcdir)/ChangeLog; \ 111386d8e82c3Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11139c2535118Smrg 11140c2535118Smrg 11141c2535118Smrg 11142c2535118Smrg 11143c2535118Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11144c2535118SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11145c2535118Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 111466d8e82c3Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 111476d8e82c3Smrgtouch \$(top_srcdir)/INSTALL; \ 111486d8e82c3Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 111496d8e82c3Smrg 11150c2535118Smrg 11151c2535118Smrg 11152c2535118Smrg 11153c2535118Smrg 11154c2535118Smrg 111556d8e82c3Smrgcase $host_os in 111566d8e82c3Smrg solaris*) 111576d8e82c3Smrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 111586d8e82c3Smrg # check for a man page file found in later versions that use 111596d8e82c3Smrg # traditional section numbers instead 111606d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 111616d8e82c3Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 111626d8e82c3Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 111636d8e82c3Smrgthen : 111646d8e82c3Smrg printf %s "(cached) " >&6 111656d8e82c3Smrgelse $as_nop 111666d8e82c3Smrg test "$cross_compiling" = yes && 111676d8e82c3Smrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 111686d8e82c3Smrgif test -r "/usr/share/man/man7/attributes.7"; then 111696d8e82c3Smrg ac_cv_file__usr_share_man_man7_attributes_7=yes 111706d8e82c3Smrgelse 111716d8e82c3Smrg ac_cv_file__usr_share_man_man7_attributes_7=no 111726d8e82c3Smrgfi 111736d8e82c3Smrgfi 111746d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 111756d8e82c3Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 111766d8e82c3Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 111776d8e82c3Smrgthen : 111786d8e82c3Smrg SYSV_MAN_SECTIONS=false 111796d8e82c3Smrgelse $as_nop 111806d8e82c3Smrg SYSV_MAN_SECTIONS=true 111816d8e82c3Smrgfi 111826d8e82c3Smrg 111836d8e82c3Smrg ;; 111846d8e82c3Smrg *) SYSV_MAN_SECTIONS=false ;; 111856d8e82c3Smrgesac 11186c2535118Smrg 11187c2535118Smrgif test x$APP_MAN_SUFFIX = x ; then 11188c2535118Smrg APP_MAN_SUFFIX=1 11189c2535118Smrgfi 11190c2535118Smrgif test x$APP_MAN_DIR = x ; then 11191c2535118Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11192c2535118Smrgfi 11193c2535118Smrg 11194c2535118Smrgif test x$LIB_MAN_SUFFIX = x ; then 11195c2535118Smrg LIB_MAN_SUFFIX=3 11196c2535118Smrgfi 11197c2535118Smrgif test x$LIB_MAN_DIR = x ; then 11198c2535118Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11199c2535118Smrgfi 11200c2535118Smrg 11201c2535118Smrgif test x$FILE_MAN_SUFFIX = x ; then 112026d8e82c3Smrg case $SYSV_MAN_SECTIONS in 112036d8e82c3Smrg true) FILE_MAN_SUFFIX=4 ;; 112044a1eb5dbSmrg *) FILE_MAN_SUFFIX=5 ;; 11205c2535118Smrg esac 11206c2535118Smrgfi 11207c2535118Smrgif test x$FILE_MAN_DIR = x ; then 11208c2535118Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11209c2535118Smrgfi 11210c2535118Smrg 11211c2535118Smrgif test x$MISC_MAN_SUFFIX = x ; then 112126d8e82c3Smrg case $SYSV_MAN_SECTIONS in 112136d8e82c3Smrg true) MISC_MAN_SUFFIX=5 ;; 112144a1eb5dbSmrg *) MISC_MAN_SUFFIX=7 ;; 11215c2535118Smrg esac 11216c2535118Smrgfi 11217c2535118Smrgif test x$MISC_MAN_DIR = x ; then 11218c2535118Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11219c2535118Smrgfi 11220c2535118Smrg 11221c2535118Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 112226d8e82c3Smrg case $SYSV_MAN_SECTIONS in 112236d8e82c3Smrg true) DRIVER_MAN_SUFFIX=7 ;; 112244a1eb5dbSmrg *) DRIVER_MAN_SUFFIX=4 ;; 11225c2535118Smrg esac 11226c2535118Smrgfi 11227c2535118Smrgif test x$DRIVER_MAN_DIR = x ; then 11228c2535118Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11229c2535118Smrgfi 11230c2535118Smrg 11231c2535118Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 112326d8e82c3Smrg case $SYSV_MAN_SECTIONS in 112336d8e82c3Smrg true) ADMIN_MAN_SUFFIX=1m ;; 112344a1eb5dbSmrg *) ADMIN_MAN_SUFFIX=8 ;; 11235c2535118Smrg esac 11236c2535118Smrgfi 11237c2535118Smrgif test x$ADMIN_MAN_DIR = x ; then 11238c2535118Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11239c2535118Smrgfi 11240c2535118Smrg 11241c2535118Smrg 11242c2535118Smrg 11243c2535118Smrg 11244c2535118Smrg 11245c2535118Smrg 11246c2535118Smrg 11247c2535118Smrg 11248c2535118Smrg 11249c2535118Smrg 11250c2535118Smrg 11251c2535118Smrg 11252c2535118Smrg 11253c2535118Smrg 11254c2535118Smrg 11255c2535118SmrgXORG_MAN_PAGE="X Version 11" 11256c2535118Smrg 11257c2535118SmrgMAN_SUBSTS="\ 11258c2535118Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11259c2535118Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11260c2535118Smrg -e 's|__xservername__|Xorg|g' \ 11261c2535118Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 11262c2535118Smrg -e 's|__projectroot__|\$(prefix)|g' \ 112637a2631fcSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 112647a2631fcSmrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 112657a2631fcSmrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 112667a2631fcSmrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 112677a2631fcSmrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 112687a2631fcSmrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 112697a2631fcSmrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 112707a2631fcSmrg 112717a2631fcSmrg 112727a2631fcSmrg 112737a2631fcSmrg# Check whether --enable-silent-rules was given. 112746d8e82c3Smrgif test ${enable_silent_rules+y} 112756d8e82c3Smrgthen : 112767a2631fcSmrg enableval=$enable_silent_rules; 112773e747e6dSmrgfi 112783e747e6dSmrg 11279c2535118Smrgcase $enable_silent_rules in # ((( 11280c2535118Smrg yes) AM_DEFAULT_VERBOSITY=0;; 11281c2535118Smrg no) AM_DEFAULT_VERBOSITY=1;; 11282c2535118Smrg *) AM_DEFAULT_VERBOSITY=0;; 112837a2631fcSmrgesac 11284c2535118Smrgam_make=${MAKE-make} 112856d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 112866d8e82c3Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 112876d8e82c3Smrgif test ${am_cv_make_support_nested_variables+y} 112886d8e82c3Smrgthen : 112896d8e82c3Smrg printf %s "(cached) " >&6 112906d8e82c3Smrgelse $as_nop 112916d8e82c3Smrg if printf "%s\n" 'TRUE=$(BAR$(V)) 11292c2535118SmrgBAR0=false 11293c2535118SmrgBAR1=true 11294c2535118SmrgV=1 11295c2535118Smrgam__doit: 11296c2535118Smrg @$(TRUE) 11297c2535118Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11298c2535118Smrg am_cv_make_support_nested_variables=yes 11299c2535118Smrgelse 11300c2535118Smrg am_cv_make_support_nested_variables=no 11301c2535118Smrgfi 11302c2535118Smrgfi 113036d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 113046d8e82c3Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11305c2535118Smrgif test $am_cv_make_support_nested_variables = yes; then 11306c2535118Smrg AM_V='$(V)' 11307c2535118Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11308c2535118Smrgelse 11309c2535118Smrg AM_V=$AM_DEFAULT_VERBOSITY 11310c2535118Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11311c2535118Smrgfi 113127a2631fcSmrgAM_BACKSLASH='\' 113133e747e6dSmrg 113143e747e6dSmrg 113153e747e6dSmrg 113163e747e6dSmrgfor ac_prog in 'bison -y' byacc 113173e747e6dSmrgdo 113183e747e6dSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 113193e747e6dSmrgset dummy $ac_prog; ac_word=$2 113206d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 113216d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 113226d8e82c3Smrgif test ${ac_cv_prog_YACC+y} 113236d8e82c3Smrgthen : 113246d8e82c3Smrg printf %s "(cached) " >&6 113256d8e82c3Smrgelse $as_nop 113263e747e6dSmrg if test -n "$YACC"; then 113273e747e6dSmrg ac_cv_prog_YACC="$YACC" # Let the user override the test. 113283e747e6dSmrgelse 113293e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 113303e747e6dSmrgfor as_dir in $PATH 113313e747e6dSmrgdo 113323e747e6dSmrg IFS=$as_save_IFS 113336d8e82c3Smrg case $as_dir in #((( 113346d8e82c3Smrg '') as_dir=./ ;; 113356d8e82c3Smrg */) ;; 113366d8e82c3Smrg *) as_dir=$as_dir/ ;; 113376d8e82c3Smrg esac 113387a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 113396d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 113403e747e6dSmrg ac_cv_prog_YACC="$ac_prog" 113416d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 113423e747e6dSmrg break 2 113433e747e6dSmrg fi 113443e747e6dSmrgdone 113457a2631fcSmrg done 113463e747e6dSmrgIFS=$as_save_IFS 113473e747e6dSmrg 113483e747e6dSmrgfi 113493e747e6dSmrgfi 113503e747e6dSmrgYACC=$ac_cv_prog_YACC 113513e747e6dSmrgif test -n "$YACC"; then 113526d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 113536d8e82c3Smrgprintf "%s\n" "$YACC" >&6; } 113543e747e6dSmrgelse 113556d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 113566d8e82c3Smrgprintf "%s\n" "no" >&6; } 113573e747e6dSmrgfi 113583e747e6dSmrg 113593e747e6dSmrg 113603e747e6dSmrg test -n "$YACC" && break 113613e747e6dSmrgdone 113623e747e6dSmrgtest -n "$YACC" || YACC="yacc" 113633e747e6dSmrg 113647a2631fcSmrg# Extract the first word of "$YACC", so it can be a program name with args. 113657a2631fcSmrgset dummy $YACC; ac_word=$2 113666d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 113676d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 113686d8e82c3Smrgif test ${ac_cv_path_YACC_INST+y} 113696d8e82c3Smrgthen : 113706d8e82c3Smrg printf %s "(cached) " >&6 113716d8e82c3Smrgelse $as_nop 113727a2631fcSmrg case $YACC_INST in 113737a2631fcSmrg [\\/]* | ?:[\\/]*) 113747a2631fcSmrg ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path. 113757a2631fcSmrg ;; 113767a2631fcSmrg *) 113777a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 113787a2631fcSmrgfor as_dir in $PATH 113797a2631fcSmrgdo 113807a2631fcSmrg IFS=$as_save_IFS 113816d8e82c3Smrg case $as_dir in #((( 113826d8e82c3Smrg '') as_dir=./ ;; 113836d8e82c3Smrg */) ;; 113846d8e82c3Smrg *) as_dir=$as_dir/ ;; 113856d8e82c3Smrg esac 113867a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 113876d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 113886d8e82c3Smrg ac_cv_path_YACC_INST="$as_dir$ac_word$ac_exec_ext" 113896d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 113907a2631fcSmrg break 2 113917a2631fcSmrg fi 113927a2631fcSmrgdone 113937a2631fcSmrg done 113947a2631fcSmrgIFS=$as_save_IFS 113957a2631fcSmrg 113967a2631fcSmrg ;; 113977a2631fcSmrgesac 113987a2631fcSmrgfi 113997a2631fcSmrgYACC_INST=$ac_cv_path_YACC_INST 114007a2631fcSmrgif test -n "$YACC_INST"; then 114016d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5 114026d8e82c3Smrgprintf "%s\n" "$YACC_INST" >&6; } 114037a2631fcSmrgelse 114046d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 114056d8e82c3Smrgprintf "%s\n" "no" >&6; } 114067a2631fcSmrgfi 114077a2631fcSmrg 114087a2631fcSmrg 114092d96a817Smrgif test ! -f "$srcdir/gram.c"; then 114102d96a817Smrg if test -z "$YACC_INST"; then 114112d96a817Smrg as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5 114122d96a817Smrg fi 114137a2631fcSmrgfi 114143e747e6dSmrgfor ac_prog in flex lex 114153e747e6dSmrgdo 114163e747e6dSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 114173e747e6dSmrgset dummy $ac_prog; ac_word=$2 114186d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 114196d8e82c3Smrgprintf %s "checking for $ac_word... " >&6; } 114206d8e82c3Smrgif test ${ac_cv_prog_LEX+y} 114216d8e82c3Smrgthen : 114226d8e82c3Smrg printf %s "(cached) " >&6 114236d8e82c3Smrgelse $as_nop 114243e747e6dSmrg if test -n "$LEX"; then 114253e747e6dSmrg ac_cv_prog_LEX="$LEX" # Let the user override the test. 114263e747e6dSmrgelse 114273e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 114283e747e6dSmrgfor as_dir in $PATH 114293e747e6dSmrgdo 114303e747e6dSmrg IFS=$as_save_IFS 114316d8e82c3Smrg case $as_dir in #((( 114326d8e82c3Smrg '') as_dir=./ ;; 114336d8e82c3Smrg */) ;; 114346d8e82c3Smrg *) as_dir=$as_dir/ ;; 114356d8e82c3Smrg esac 114367a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 114376d8e82c3Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 114383e747e6dSmrg ac_cv_prog_LEX="$ac_prog" 114396d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 114403e747e6dSmrg break 2 114413e747e6dSmrg fi 114423e747e6dSmrgdone 114437a2631fcSmrg done 114443e747e6dSmrgIFS=$as_save_IFS 114453e747e6dSmrg 114463e747e6dSmrgfi 114473e747e6dSmrgfi 114483e747e6dSmrgLEX=$ac_cv_prog_LEX 114493e747e6dSmrgif test -n "$LEX"; then 114506d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 114516d8e82c3Smrgprintf "%s\n" "$LEX" >&6; } 114523e747e6dSmrgelse 114536d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 114546d8e82c3Smrgprintf "%s\n" "no" >&6; } 114553e747e6dSmrgfi 114563e747e6dSmrg 114573e747e6dSmrg 114583e747e6dSmrg test -n "$LEX" && break 114593e747e6dSmrgdone 114603e747e6dSmrgtest -n "$LEX" || LEX=":" 114613e747e6dSmrg 114626d8e82c3Smrg if test "x$LEX" != "x:"; then 114636d8e82c3Smrg cat >conftest.l <<_ACEOF 114646d8e82c3Smrg%{ 114656d8e82c3Smrg#ifdef __cplusplus 114666d8e82c3Smrgextern "C" 114676d8e82c3Smrg#endif 114686d8e82c3Smrgint yywrap(void); 114696d8e82c3Smrg%} 114703e747e6dSmrg%% 114713e747e6dSmrga { ECHO; } 114723e747e6dSmrgb { REJECT; } 114733e747e6dSmrgc { yymore (); } 114743e747e6dSmrgd { yyless (1); } 114759cd34f4bSmrge { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 114766d8e82c3Smrg#ifdef __cplusplus 114776d8e82c3Smrg yyless ((yyinput () != 0)); 114786d8e82c3Smrg#else 114796d8e82c3Smrg yyless ((input () != 0)); 114806d8e82c3Smrg#endif 114816d8e82c3Smrg } 114823e747e6dSmrgf { unput (yytext[0]); } 114833e747e6dSmrg. { BEGIN INITIAL; } 114843e747e6dSmrg%% 114853e747e6dSmrg#ifdef YYTEXT_POINTER 114863e747e6dSmrgextern char *yytext; 114873e747e6dSmrg#endif 114883e747e6dSmrgint 114896d8e82c3Smrgyywrap (void) 114906d8e82c3Smrg{ 114916d8e82c3Smrg return 1; 114926d8e82c3Smrg} 114936d8e82c3Smrgint 114943e747e6dSmrgmain (void) 114953e747e6dSmrg{ 114966d8e82c3Smrg return ! yylex (); 114973e747e6dSmrg} 114983e747e6dSmrg_ACEOF 114996d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 115006d8e82c3Smrgprintf %s "checking for lex output file root... " >&6; } 115016d8e82c3Smrgif test ${ac_cv_prog_lex_root+y} 115026d8e82c3Smrgthen : 115036d8e82c3Smrg printf %s "(cached) " >&6 115046d8e82c3Smrgelse $as_nop 115056d8e82c3Smrg 115066d8e82c3Smrgac_cv_prog_lex_root=unknown 115077a2631fcSmrg{ { ac_try="$LEX conftest.l" 115083e747e6dSmrgcase "(($ac_try" in 115093e747e6dSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 115103e747e6dSmrg *) ac_try_echo=$ac_try;; 115113e747e6dSmrgesac 115127a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 115136d8e82c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5 115143e747e6dSmrg (eval "$LEX conftest.l") 2>&5 115153e747e6dSmrg ac_status=$? 115166d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 115176d8e82c3Smrg test $ac_status = 0; } && 115183e747e6dSmrgif test -f lex.yy.c; then 115193e747e6dSmrg ac_cv_prog_lex_root=lex.yy 115203e747e6dSmrgelif test -f lexyy.c; then 115213e747e6dSmrg ac_cv_prog_lex_root=lexyy 115223e747e6dSmrgfi 115233e747e6dSmrgfi 115246d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 115256d8e82c3Smrgprintf "%s\n" "$ac_cv_prog_lex_root" >&6; } 115266d8e82c3Smrgif test "$ac_cv_prog_lex_root" = unknown 115276d8e82c3Smrgthen : 115286d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 115296d8e82c3Smrgprintf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} 115306d8e82c3Smrg LEX=: LEXLIB= 115316d8e82c3Smrgfi 115323e747e6dSmrgLEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 115333e747e6dSmrg 115346d8e82c3Smrgif test ${LEXLIB+y} 115356d8e82c3Smrgthen : 115366d8e82c3Smrg 115376d8e82c3Smrgelse $as_nop 115386d8e82c3Smrg 115396d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 115406d8e82c3Smrgprintf %s "checking for lex library... " >&6; } 115416d8e82c3Smrgif test ${ac_cv_lib_lex+y} 115426d8e82c3Smrgthen : 115436d8e82c3Smrg printf %s "(cached) " >&6 115446d8e82c3Smrgelse $as_nop 115456d8e82c3Smrg 115466d8e82c3Smrg ac_save_LIBS="$LIBS" 115476d8e82c3Smrg ac_found=false 115486d8e82c3Smrg for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do 115496d8e82c3Smrg case $ac_cv_lib_lex in #( 115506d8e82c3Smrg 'none needed') : 115516d8e82c3Smrg ;; #( 115526d8e82c3Smrg 'not found') : 115536d8e82c3Smrg break ;; #( 115546d8e82c3Smrg *) : 115556d8e82c3Smrg LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( 115566d8e82c3Smrg *) : 115576d8e82c3Smrg ;; 115586d8e82c3Smrgesac 115593e747e6dSmrg 115607a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 115617a2631fcSmrg/* end confdefs.h. */ 115623e747e6dSmrg`cat $LEX_OUTPUT_ROOT.c` 115633e747e6dSmrg_ACEOF 115646d8e82c3Smrgif ac_fn_c_try_link "$LINENO" 115656d8e82c3Smrgthen : 115666d8e82c3Smrg ac_found=: 115673e747e6dSmrgfi 115686d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 115697a2631fcSmrg conftest$ac_exeext conftest.$ac_ext 115706d8e82c3Smrg if $ac_found; then 115716d8e82c3Smrg break 115726d8e82c3Smrg fi 115733e747e6dSmrg done 115746d8e82c3Smrg LIBS="$ac_save_LIBS" 115753e747e6dSmrg 115763e747e6dSmrgfi 115776d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 115786d8e82c3Smrgprintf "%s\n" "$ac_cv_lib_lex" >&6; } 115796d8e82c3Smrg if test "$ac_cv_lib_lex" = 'not found' 115806d8e82c3Smrgthen : 115816d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 115826d8e82c3Smrgprintf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} 115836d8e82c3Smrg LEX=: LEXLIB= 115846d8e82c3Smrgelif test "$ac_cv_lib_lex" = 'none needed' 115856d8e82c3Smrgthen : 115866d8e82c3Smrg LEXLIB='' 115876d8e82c3Smrgelse $as_nop 115886d8e82c3Smrg LEXLIB=$ac_cv_lib_lex 115893e747e6dSmrgfi 115903e747e6dSmrg 115916d8e82c3Smrgfi 115923e747e6dSmrg 115936d8e82c3Smrg 115946d8e82c3Smrgif test "$LEX" != : 115956d8e82c3Smrgthen : 115966d8e82c3Smrg 115976d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 115986d8e82c3Smrgprintf %s "checking whether yytext is a pointer... " >&6; } 115996d8e82c3Smrgif test ${ac_cv_prog_lex_yytext_pointer+y} 116006d8e82c3Smrgthen : 116016d8e82c3Smrg printf %s "(cached) " >&6 116026d8e82c3Smrgelse $as_nop 116033e747e6dSmrg # POSIX says lex can declare yytext either as a pointer or an array; the 116043e747e6dSmrg# default is implementation-dependent. Figure out which it is, since 116053e747e6dSmrg# not all implementations provide the %pointer and %array declarations. 116063e747e6dSmrgac_cv_prog_lex_yytext_pointer=no 116077a2631fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 116087a2631fcSmrg/* end confdefs.h. */ 116097a2631fcSmrg 116107a2631fcSmrg #define YYTEXT_POINTER 1 116113e747e6dSmrg`cat $LEX_OUTPUT_ROOT.c` 116123e747e6dSmrg_ACEOF 116136d8e82c3Smrgif ac_fn_c_try_compile "$LINENO" 116146d8e82c3Smrgthen : 116153e747e6dSmrg ac_cv_prog_lex_yytext_pointer=yes 116163e747e6dSmrgfi 116176d8e82c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 116183e747e6dSmrg 116193e747e6dSmrgfi 116206d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 116216d8e82c3Smrgprintf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } 116227a2631fcSmrgif test $ac_cv_prog_lex_yytext_pointer = yes; then 116237a2631fcSmrg 116246d8e82c3Smrgprintf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h 116256d8e82c3Smrg 116266d8e82c3Smrgfi 116273e747e6dSmrg 116283e747e6dSmrgfi 116297a2631fcSmrgrm -f conftest.l $LEX_OUTPUT_ROOT.c 116303e747e6dSmrg 116313e747e6dSmrgfi 116327a2631fcSmrg 116336d8e82c3Smrgac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 116346d8e82c3Smrgif test "x$ac_cv_func_mkstemp" = xyes 116356d8e82c3Smrgthen : 116366d8e82c3Smrg printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 116373e747e6dSmrg 116383e747e6dSmrgfi 116397a2631fcSmrg 116407a2631fcSmrg 116417a2631fcSmrg# Checks for pkg-config packages 116423e747e6dSmrg 116433e747e6dSmrgpkg_failed=no 116446d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11 xext xt xmu ice sm xproto >= 7.0.17" >&5 116456d8e82c3Smrgprintf %s "checking for x11 xext xt xmu ice sm xproto >= 7.0.17... " >&6; } 116463e747e6dSmrg 116473e747e6dSmrgif test -n "$TWM_CFLAGS"; then 116483e747e6dSmrg pkg_cv_TWM_CFLAGS="$TWM_CFLAGS" 116493e747e6dSmrg elif test -n "$PKG_CONFIG"; then 116503e747e6dSmrg if test -n "$PKG_CONFIG" && \ 116516d8e82c3Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5 11652ffd25bcaSmrg ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5 116533e747e6dSmrg ac_status=$? 116546d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 116557a2631fcSmrg test $ac_status = 0; }; then 11656ffd25bcaSmrg pkg_cv_TWM_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null` 116574a1eb5dbSmrg test "x$?" != "x0" && pkg_failed=yes 116583e747e6dSmrgelse 116593e747e6dSmrg pkg_failed=yes 116603e747e6dSmrgfi 116613e747e6dSmrg else 116623e747e6dSmrg pkg_failed=untried 116633e747e6dSmrgfi 116643e747e6dSmrgif test -n "$TWM_LIBS"; then 116653e747e6dSmrg pkg_cv_TWM_LIBS="$TWM_LIBS" 116663e747e6dSmrg elif test -n "$PKG_CONFIG"; then 116673e747e6dSmrg if test -n "$PKG_CONFIG" && \ 116686d8e82c3Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5 11669ffd25bcaSmrg ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5 116703e747e6dSmrg ac_status=$? 116716d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 116727a2631fcSmrg test $ac_status = 0; }; then 11673ffd25bcaSmrg pkg_cv_TWM_LIBS=`$PKG_CONFIG --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null` 116744a1eb5dbSmrg test "x$?" != "x0" && pkg_failed=yes 116753e747e6dSmrgelse 116763e747e6dSmrg pkg_failed=yes 116773e747e6dSmrgfi 116783e747e6dSmrg else 116793e747e6dSmrg pkg_failed=untried 116803e747e6dSmrgfi 116813e747e6dSmrg 116823e747e6dSmrg 116833e747e6dSmrg 116843e747e6dSmrgif test $pkg_failed = yes; then 116856d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 116866d8e82c3Smrgprintf "%s\n" "no" >&6; } 116873e747e6dSmrg 116883e747e6dSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 116893e747e6dSmrg _pkg_short_errors_supported=yes 116903e747e6dSmrgelse 116913e747e6dSmrg _pkg_short_errors_supported=no 116923e747e6dSmrgfi 116933e747e6dSmrg if test $_pkg_short_errors_supported = yes; then 116946d8e82c3Smrg TWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1` 116953e747e6dSmrg else 116966d8e82c3Smrg TWM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1` 116973e747e6dSmrg fi 116986d8e82c3Smrg # Put the nasty error message in config.log where it belongs 116996d8e82c3Smrg echo "$TWM_PKG_ERRORS" >&5 117003e747e6dSmrg 117016d8e82c3Smrg as_fn_error $? "Package requirements (x11 xext xt xmu ice sm xproto >= 7.0.17) were not met: 117023e747e6dSmrg 117033e747e6dSmrg$TWM_PKG_ERRORS 117043e747e6dSmrg 117053e747e6dSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 117063e747e6dSmrginstalled software in a non-standard prefix. 117073e747e6dSmrg 117083e747e6dSmrgAlternatively, you may set the environment variables TWM_CFLAGS 117093e747e6dSmrgand TWM_LIBS to avoid the need to call pkg-config. 117104a1eb5dbSmrgSee the pkg-config man page for more details." "$LINENO" 5 117113e747e6dSmrgelif test $pkg_failed = untried; then 117126d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 117136d8e82c3Smrgprintf "%s\n" "no" >&6; } 117146d8e82c3Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 117156d8e82c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 117167a2631fcSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 117173e747e6dSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 117183e747e6dSmrgpath to pkg-config. 117193e747e6dSmrg 117203e747e6dSmrgAlternatively, you may set the environment variables TWM_CFLAGS 117213e747e6dSmrgand TWM_LIBS to avoid the need to call pkg-config. 117223e747e6dSmrgSee the pkg-config man page for more details. 117233e747e6dSmrg 117243e747e6dSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 117257a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 117263e747e6dSmrgelse 117276d8e82c3Smrg TWM_CFLAGS=$pkg_cv_TWM_CFLAGS 117286d8e82c3Smrg TWM_LIBS=$pkg_cv_TWM_LIBS 117296d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 117306d8e82c3Smrgprintf "%s\n" "yes" >&6; } 117314a1eb5dbSmrg 117323e747e6dSmrgfi 117333e747e6dSmrg 11734f66df612Smrgpkg_failed=no 117356d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrandr" >&5 117366d8e82c3Smrgprintf %s "checking for xrandr... " >&6; } 11737f66df612Smrg 11738f66df612Smrgif test -n "$XRANDR_CFLAGS"; then 11739f66df612Smrg pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS" 11740f66df612Smrg elif test -n "$PKG_CONFIG"; then 11741f66df612Smrg if test -n "$PKG_CONFIG" && \ 117426d8e82c3Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5 11743f66df612Smrg ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5 11744f66df612Smrg ac_status=$? 117456d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11746f66df612Smrg test $ac_status = 0; }; then 11747f66df612Smrg pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr" 2>/dev/null` 11748f66df612Smrg test "x$?" != "x0" && pkg_failed=yes 11749f66df612Smrgelse 11750f66df612Smrg pkg_failed=yes 11751f66df612Smrgfi 11752f66df612Smrg else 11753f66df612Smrg pkg_failed=untried 11754f66df612Smrgfi 11755f66df612Smrgif test -n "$XRANDR_LIBS"; then 11756f66df612Smrg pkg_cv_XRANDR_LIBS="$XRANDR_LIBS" 11757f66df612Smrg elif test -n "$PKG_CONFIG"; then 11758f66df612Smrg if test -n "$PKG_CONFIG" && \ 117596d8e82c3Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5 11760f66df612Smrg ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5 11761f66df612Smrg ac_status=$? 117626d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11763f66df612Smrg test $ac_status = 0; }; then 11764f66df612Smrg pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr" 2>/dev/null` 11765f66df612Smrg test "x$?" != "x0" && pkg_failed=yes 11766f66df612Smrgelse 11767f66df612Smrg pkg_failed=yes 11768f66df612Smrgfi 11769f66df612Smrg else 11770f66df612Smrg pkg_failed=untried 11771f66df612Smrgfi 11772f66df612Smrg 11773f66df612Smrg 11774f66df612Smrg 11775f66df612Smrgif test $pkg_failed = yes; then 117766d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 117776d8e82c3Smrgprintf "%s\n" "no" >&6; } 11778f66df612Smrg 11779f66df612Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11780f66df612Smrg _pkg_short_errors_supported=yes 11781f66df612Smrgelse 11782f66df612Smrg _pkg_short_errors_supported=no 11783f66df612Smrgfi 11784f66df612Smrg if test $_pkg_short_errors_supported = yes; then 117856d8e82c3Smrg XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr" 2>&1` 11786f66df612Smrg else 117876d8e82c3Smrg XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr" 2>&1` 11788f66df612Smrg fi 117896d8e82c3Smrg # Put the nasty error message in config.log where it belongs 117906d8e82c3Smrg echo "$XRANDR_PKG_ERRORS" >&5 11791f66df612Smrg 117926d8e82c3Smrg have_xrandr=no 11793f66df612Smrgelif test $pkg_failed = untried; then 117946d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 117956d8e82c3Smrgprintf "%s\n" "no" >&6; } 117966d8e82c3Smrg have_xrandr=no 11797f66df612Smrgelse 117986d8e82c3Smrg XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS 117996d8e82c3Smrg XRANDR_LIBS=$pkg_cv_XRANDR_LIBS 118006d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 118016d8e82c3Smrgprintf "%s\n" "yes" >&6; } 118026d8e82c3Smrg have_xrandr=yes 11803f66df612Smrgfi 11804f66df612Smrgif test "$have_xrandr" = yes; then 11805f66df612Smrg 118066d8e82c3Smrgprintf "%s\n" "#define HAVE_XRANDR 1" >>confdefs.h 11807f66df612Smrg 11808f66df612Smrgfi 11809f66df612Smrg 118103e747e6dSmrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 118113e747e6dSmrg 118123e747e6dSmrgcat >confcache <<\_ACEOF 118133e747e6dSmrg# This file is a shell script that caches the results of configure 118143e747e6dSmrg# tests run on this system so they can be shared between configure 118153e747e6dSmrg# scripts and configure runs, see configure's option --config-cache. 118163e747e6dSmrg# It is not useful on other systems. If it contains results you don't 118173e747e6dSmrg# want to keep, you may remove or edit it. 118183e747e6dSmrg# 118193e747e6dSmrg# config.status only pays attention to the cache file if you give it 118203e747e6dSmrg# the --recheck option to rerun configure. 118213e747e6dSmrg# 118223e747e6dSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 118233e747e6dSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 118243e747e6dSmrg# following values. 118253e747e6dSmrg 118263e747e6dSmrg_ACEOF 118273e747e6dSmrg 118283e747e6dSmrg# The following way of writing the cache mishandles newlines in values, 118293e747e6dSmrg# but we know of no workaround that is simple, portable, and efficient. 118303e747e6dSmrg# So, we kill variables containing newlines. 118313e747e6dSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 118323e747e6dSmrg# and sets the high bit in the cache file unless we assign to the vars. 118333e747e6dSmrg( 118343e747e6dSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 118353e747e6dSmrg eval ac_val=\$$ac_var 118363e747e6dSmrg case $ac_val in #( 118373e747e6dSmrg *${as_nl}*) 118383e747e6dSmrg case $ac_var in #( 118396d8e82c3Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 118406d8e82c3Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 118413e747e6dSmrg esac 118423e747e6dSmrg case $ac_var in #( 118433e747e6dSmrg _ | IFS | as_nl) ;; #( 118447a2631fcSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 118457a2631fcSmrg *) { eval $ac_var=; unset $ac_var;} ;; 118463e747e6dSmrg esac ;; 118473e747e6dSmrg esac 118483e747e6dSmrg done 118493e747e6dSmrg 118503e747e6dSmrg (set) 2>&1 | 118513e747e6dSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 118523e747e6dSmrg *${as_nl}ac_space=\ *) 118537a2631fcSmrg # `set' does not quote correctly, so add quotes: double-quote 118547a2631fcSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 118553e747e6dSmrg sed -n \ 118563e747e6dSmrg "s/'/'\\\\''/g; 118573e747e6dSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 118583e747e6dSmrg ;; #( 118593e747e6dSmrg *) 118603e747e6dSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 118613e747e6dSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 118623e747e6dSmrg ;; 118633e747e6dSmrg esac | 118643e747e6dSmrg sort 118653e747e6dSmrg) | 118663e747e6dSmrg sed ' 118673e747e6dSmrg /^ac_cv_env_/b end 118683e747e6dSmrg t clear 118693e747e6dSmrg :clear 118706d8e82c3Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 118713e747e6dSmrg t end 118723e747e6dSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 118733e747e6dSmrg :end' >>confcache 118743e747e6dSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 118753e747e6dSmrg if test -w "$cache_file"; then 118767a2631fcSmrg if test "x$cache_file" != "x/dev/null"; then 118776d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 118786d8e82c3Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;} 118797a2631fcSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 118807a2631fcSmrg cat confcache >"$cache_file" 118817a2631fcSmrg else 118827a2631fcSmrg case $cache_file in #( 118837a2631fcSmrg */* | ?:*) 118847a2631fcSmrg mv -f confcache "$cache_file"$$ && 118857a2631fcSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 118867a2631fcSmrg *) 118877a2631fcSmrg mv -f confcache "$cache_file" ;; 118887a2631fcSmrg esac 118897a2631fcSmrg fi 118907a2631fcSmrg fi 118913e747e6dSmrg else 118926d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 118936d8e82c3Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 118943e747e6dSmrg fi 118953e747e6dSmrgfi 118963e747e6dSmrgrm -f confcache 118973e747e6dSmrg 118983e747e6dSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 118993e747e6dSmrg# Let make expand exec_prefix. 119003e747e6dSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 119013e747e6dSmrg 119023e747e6dSmrgDEFS=-DHAVE_CONFIG_H 119033e747e6dSmrg 119043e747e6dSmrgac_libobjs= 119053e747e6dSmrgac_ltlibobjs= 119067a2631fcSmrgU= 119073e747e6dSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 119083e747e6dSmrg # 1. Remove the extension, and $U if already installed. 119093e747e6dSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 119106d8e82c3Smrg ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 119113e747e6dSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 119123e747e6dSmrg # will be set to the directory where LIBOBJS objects are built. 119137a2631fcSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 119147a2631fcSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 119153e747e6dSmrgdone 119163e747e6dSmrgLIBOBJS=$ac_libobjs 119173e747e6dSmrg 119183e747e6dSmrgLTLIBOBJS=$ac_ltlibobjs 119193e747e6dSmrg 119203e747e6dSmrg 119216d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 119226d8e82c3Smrgprintf %s "checking that generated files are newer than configure... " >&6; } 11923c2535118Smrg if test -n "$am_sleep_pid"; then 11924c2535118Smrg # Hide warnings about reused PIDs. 11925c2535118Smrg wait $am_sleep_pid 2>/dev/null 11926c2535118Smrg fi 119276d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 119286d8e82c3Smrgprintf "%s\n" "done" >&6; } 11929ffd25bcaSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11930ffd25bcaSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 11931ffd25bcaSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11932ffd25bcaSmrgfi 11933ffd25bcaSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11934ffd25bcaSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11935ffd25bcaSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11936ffd25bcaSmrgfi 119377a2631fcSmrg if test -n "$EXEEXT"; then 119387a2631fcSmrg am__EXEEXT_TRUE= 119397a2631fcSmrg am__EXEEXT_FALSE='#' 119407a2631fcSmrgelse 119417a2631fcSmrg am__EXEEXT_TRUE='#' 119427a2631fcSmrg am__EXEEXT_FALSE= 119437a2631fcSmrgfi 119447a2631fcSmrg 119453e747e6dSmrg 119467a2631fcSmrg: "${CONFIG_STATUS=./config.status}" 119477a2631fcSmrgac_write_fail=0 119483e747e6dSmrgac_clean_files_save=$ac_clean_files 119493e747e6dSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 119506d8e82c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 119516d8e82c3Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 119527a2631fcSmrgas_write_fail=0 119537a2631fcSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 119543e747e6dSmrg#! $SHELL 119553e747e6dSmrg# Generated by $as_me. 119563e747e6dSmrg# Run this file to recreate the current configuration. 119573e747e6dSmrg# Compiler output produced by configure, useful for debugging 119583e747e6dSmrg# configure, is in config.log if it exists. 119593e747e6dSmrg 119603e747e6dSmrgdebug=false 119613e747e6dSmrgac_cs_recheck=false 119623e747e6dSmrgac_cs_silent=false 119633e747e6dSmrg 119647a2631fcSmrgSHELL=\${CONFIG_SHELL-$SHELL} 119657a2631fcSmrgexport SHELL 119667a2631fcSmrg_ASEOF 119677a2631fcSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 119687a2631fcSmrg## -------------------- ## 119697a2631fcSmrg## M4sh Initialization. ## 119707a2631fcSmrg## -------------------- ## 119713e747e6dSmrg 119723e747e6dSmrg# Be more Bourne compatible 119733e747e6dSmrgDUALCASE=1; export DUALCASE # for MKS sh 119746d8e82c3Smrgas_nop=: 119756d8e82c3Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 119766d8e82c3Smrgthen : 119773e747e6dSmrg emulate sh 119783e747e6dSmrg NULLCMD=: 119797a2631fcSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 119803e747e6dSmrg # is contrary to our usage. Disable this feature. 119813e747e6dSmrg alias -g '${1+"$@"}'='"$@"' 119823e747e6dSmrg setopt NO_GLOB_SUBST 119836d8e82c3Smrgelse $as_nop 119847a2631fcSmrg case `(set -o) 2>/dev/null` in #( 119857a2631fcSmrg *posix*) : 119867a2631fcSmrg set -o posix ;; #( 119877a2631fcSmrg *) : 119887a2631fcSmrg ;; 119893e747e6dSmrgesac 119903e747e6dSmrgfi 119913e747e6dSmrg 119923e747e6dSmrg 119936d8e82c3Smrg 119946d8e82c3Smrg# Reset variables that may have inherited troublesome values from 119956d8e82c3Smrg# the environment. 119966d8e82c3Smrg 119976d8e82c3Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 119986d8e82c3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 119996d8e82c3Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 120006d8e82c3Smrg# Quoting is to prevent editors from complaining about space-tab. 120017a2631fcSmrgas_nl=' 120027a2631fcSmrg' 120037a2631fcSmrgexport as_nl 120046d8e82c3SmrgIFS=" "" $as_nl" 120056d8e82c3Smrg 120066d8e82c3SmrgPS1='$ ' 120076d8e82c3SmrgPS2='> ' 120086d8e82c3SmrgPS4='+ ' 120096d8e82c3Smrg 120106d8e82c3Smrg# Ensure predictable behavior from utilities with locale-dependent output. 120116d8e82c3SmrgLC_ALL=C 120126d8e82c3Smrgexport LC_ALL 120136d8e82c3SmrgLANGUAGE=C 120146d8e82c3Smrgexport LANGUAGE 120156d8e82c3Smrg 120166d8e82c3Smrg# We cannot yet rely on "unset" to work, but we need these variables 120176d8e82c3Smrg# to be unset--not just set to an empty or harmless value--now, to 120186d8e82c3Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 120196d8e82c3Smrg# also avoids known problems related to "unset" and subshell syntax 120206d8e82c3Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 120216d8e82c3Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 120226d8e82c3Smrgdo eval test \${$as_var+y} \ 120236d8e82c3Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 120246d8e82c3Smrgdone 120256d8e82c3Smrg 120266d8e82c3Smrg# Ensure that fds 0, 1, and 2 are open. 120276d8e82c3Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 120286d8e82c3Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 120296d8e82c3Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 120303e747e6dSmrg 120317a2631fcSmrg# The user is always right. 120326d8e82c3Smrgif ${PATH_SEPARATOR+false} :; then 120337a2631fcSmrg PATH_SEPARATOR=: 120347a2631fcSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 120357a2631fcSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 120367a2631fcSmrg PATH_SEPARATOR=';' 120377a2631fcSmrg } 120383e747e6dSmrgfi 120393e747e6dSmrg 120403e747e6dSmrg 120413e747e6dSmrg# Find who we are. Look in the path if we contain no directory separator. 120427a2631fcSmrgas_myself= 120437a2631fcSmrgcase $0 in #(( 120443e747e6dSmrg *[\\/]* ) as_myself=$0 ;; 120453e747e6dSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 120463e747e6dSmrgfor as_dir in $PATH 120473e747e6dSmrgdo 120483e747e6dSmrg IFS=$as_save_IFS 120496d8e82c3Smrg case $as_dir in #((( 120506d8e82c3Smrg '') as_dir=./ ;; 120516d8e82c3Smrg */) ;; 120526d8e82c3Smrg *) as_dir=$as_dir/ ;; 120536d8e82c3Smrg esac 120546d8e82c3Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 120557a2631fcSmrg done 120563e747e6dSmrgIFS=$as_save_IFS 120573e747e6dSmrg 120583e747e6dSmrg ;; 120593e747e6dSmrgesac 120603e747e6dSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 120613e747e6dSmrg# in which case we are not to be found in the path. 120623e747e6dSmrgif test "x$as_myself" = x; then 120633e747e6dSmrg as_myself=$0 120643e747e6dSmrgfi 120653e747e6dSmrgif test ! -f "$as_myself"; then 120666d8e82c3Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 120677a2631fcSmrg exit 1 120683e747e6dSmrgfi 120693e747e6dSmrg 120707a2631fcSmrg 120717a2631fcSmrg 120727a2631fcSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 120737a2631fcSmrg# ---------------------------------------- 120747a2631fcSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 120757a2631fcSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 120767a2631fcSmrg# script with STATUS, using 1 if that was 0. 120777a2631fcSmrgas_fn_error () 120787a2631fcSmrg{ 120797a2631fcSmrg as_status=$1; test $as_status -eq 0 && as_status=1 120807a2631fcSmrg if test "$4"; then 120817a2631fcSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 120826d8e82c3Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 120833e747e6dSmrg fi 120846d8e82c3Smrg printf "%s\n" "$as_me: error: $2" >&2 120857a2631fcSmrg as_fn_exit $as_status 120867a2631fcSmrg} # as_fn_error 120877a2631fcSmrg 120887a2631fcSmrg 120896d8e82c3Smrg 120907a2631fcSmrg# as_fn_set_status STATUS 120917a2631fcSmrg# ----------------------- 120927a2631fcSmrg# Set $? to STATUS, without forking. 120937a2631fcSmrgas_fn_set_status () 120947a2631fcSmrg{ 120957a2631fcSmrg return $1 120967a2631fcSmrg} # as_fn_set_status 120977a2631fcSmrg 120987a2631fcSmrg# as_fn_exit STATUS 120997a2631fcSmrg# ----------------- 121007a2631fcSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 121017a2631fcSmrgas_fn_exit () 121027a2631fcSmrg{ 121037a2631fcSmrg set +e 121047a2631fcSmrg as_fn_set_status $1 121057a2631fcSmrg exit $1 121067a2631fcSmrg} # as_fn_exit 121077a2631fcSmrg 121087a2631fcSmrg# as_fn_unset VAR 121097a2631fcSmrg# --------------- 121107a2631fcSmrg# Portably unset VAR. 121117a2631fcSmrgas_fn_unset () 121127a2631fcSmrg{ 121137a2631fcSmrg { eval $1=; unset $1;} 121147a2631fcSmrg} 121157a2631fcSmrgas_unset=as_fn_unset 121166d8e82c3Smrg 121177a2631fcSmrg# as_fn_append VAR VALUE 121187a2631fcSmrg# ---------------------- 121197a2631fcSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 121207a2631fcSmrg# advantage of any shell optimizations that allow amortized linear growth over 121217a2631fcSmrg# repeated appends, instead of the typical quadratic growth present in naive 121227a2631fcSmrg# implementations. 121236d8e82c3Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 121246d8e82c3Smrgthen : 121257a2631fcSmrg eval 'as_fn_append () 121267a2631fcSmrg { 121277a2631fcSmrg eval $1+=\$2 121287a2631fcSmrg }' 121296d8e82c3Smrgelse $as_nop 121307a2631fcSmrg as_fn_append () 121317a2631fcSmrg { 121327a2631fcSmrg eval $1=\$$1\$2 121337a2631fcSmrg } 121347a2631fcSmrgfi # as_fn_append 121357a2631fcSmrg 121367a2631fcSmrg# as_fn_arith ARG... 121377a2631fcSmrg# ------------------ 121387a2631fcSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 121397a2631fcSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 121407a2631fcSmrg# must be portable across $(()) and expr. 121416d8e82c3Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 121426d8e82c3Smrgthen : 121437a2631fcSmrg eval 'as_fn_arith () 121447a2631fcSmrg { 121457a2631fcSmrg as_val=$(( $* )) 121467a2631fcSmrg }' 121476d8e82c3Smrgelse $as_nop 121487a2631fcSmrg as_fn_arith () 121497a2631fcSmrg { 121507a2631fcSmrg as_val=`expr "$@" || test $? -eq 1` 121517a2631fcSmrg } 121527a2631fcSmrgfi # as_fn_arith 121537a2631fcSmrg 121543e747e6dSmrg 121553e747e6dSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 121563e747e6dSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 121573e747e6dSmrg as_expr=expr 121583e747e6dSmrgelse 121593e747e6dSmrg as_expr=false 121603e747e6dSmrgfi 121613e747e6dSmrg 121623e747e6dSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 121633e747e6dSmrg as_basename=basename 121643e747e6dSmrgelse 121653e747e6dSmrg as_basename=false 121663e747e6dSmrgfi 121673e747e6dSmrg 121687a2631fcSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 121697a2631fcSmrg as_dirname=dirname 121707a2631fcSmrgelse 121717a2631fcSmrg as_dirname=false 121727a2631fcSmrgfi 121733e747e6dSmrg 121743e747e6dSmrgas_me=`$as_basename -- "$0" || 121753e747e6dSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 121763e747e6dSmrg X"$0" : 'X\(//\)$' \| \ 121773e747e6dSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 121786d8e82c3Smrgprintf "%s\n" X/"$0" | 121793e747e6dSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 121803e747e6dSmrg s//\1/ 121813e747e6dSmrg q 121823e747e6dSmrg } 121833e747e6dSmrg /^X\/\(\/\/\)$/{ 121843e747e6dSmrg s//\1/ 121853e747e6dSmrg q 121863e747e6dSmrg } 121873e747e6dSmrg /^X\/\(\/\).*/{ 121883e747e6dSmrg s//\1/ 121893e747e6dSmrg q 121903e747e6dSmrg } 121913e747e6dSmrg s/.*/./; q'` 121923e747e6dSmrg 121937a2631fcSmrg# Avoid depending upon Character Ranges. 121947a2631fcSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 121957a2631fcSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 121967a2631fcSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 121977a2631fcSmrgas_cr_digits='0123456789' 121987a2631fcSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 121993e747e6dSmrg 122006d8e82c3Smrg 122016d8e82c3Smrg# Determine whether it's possible to make 'echo' print without a newline. 122026d8e82c3Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 122036d8e82c3Smrg# for compatibility with existing Makefiles. 122043e747e6dSmrgECHO_C= ECHO_N= ECHO_T= 122057a2631fcSmrgcase `echo -n x` in #((((( 122063e747e6dSmrg-n*) 122077a2631fcSmrg case `echo 'xy\c'` in 122083e747e6dSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 122097a2631fcSmrg xy) ECHO_C='\c';; 122107a2631fcSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 122117a2631fcSmrg ECHO_T=' ';; 122123e747e6dSmrg esac;; 122133e747e6dSmrg*) 122143e747e6dSmrg ECHO_N='-n';; 122153e747e6dSmrgesac 122163e747e6dSmrg 122176d8e82c3Smrg# For backward compatibility with old third-party macros, we provide 122186d8e82c3Smrg# the shell variables $as_echo and $as_echo_n. New code should use 122196d8e82c3Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 122206d8e82c3Smrgas_echo='printf %s\n' 122216d8e82c3Smrgas_echo_n='printf %s' 122226d8e82c3Smrg 122233e747e6dSmrgrm -f conf$$ conf$$.exe conf$$.file 122243e747e6dSmrgif test -d conf$$.dir; then 122253e747e6dSmrg rm -f conf$$.dir/conf$$.file 122263e747e6dSmrgelse 122273e747e6dSmrg rm -f conf$$.dir 122287a2631fcSmrg mkdir conf$$.dir 2>/dev/null 122297a2631fcSmrgfi 122307a2631fcSmrgif (echo >conf$$.file) 2>/dev/null; then 122317a2631fcSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 122327a2631fcSmrg as_ln_s='ln -s' 122337a2631fcSmrg # ... but there are two gotchas: 122347a2631fcSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 122357a2631fcSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 122369cd34f4bSmrg # In both cases, we have to default to `cp -pR'. 122377a2631fcSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 122389cd34f4bSmrg as_ln_s='cp -pR' 122397a2631fcSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 122407a2631fcSmrg as_ln_s=ln 122417a2631fcSmrg else 122429cd34f4bSmrg as_ln_s='cp -pR' 122437a2631fcSmrg fi 122443e747e6dSmrgelse 122459cd34f4bSmrg as_ln_s='cp -pR' 122463e747e6dSmrgfi 122473e747e6dSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 122483e747e6dSmrgrmdir conf$$.dir 2>/dev/null 122493e747e6dSmrg 122507a2631fcSmrg 122517a2631fcSmrg# as_fn_mkdir_p 122527a2631fcSmrg# ------------- 122537a2631fcSmrg# Create "$as_dir" as a directory, including parents if necessary. 122547a2631fcSmrgas_fn_mkdir_p () 122557a2631fcSmrg{ 122567a2631fcSmrg 122577a2631fcSmrg case $as_dir in #( 122587a2631fcSmrg -*) as_dir=./$as_dir;; 122597a2631fcSmrg esac 122607a2631fcSmrg test -d "$as_dir" || eval $as_mkdir_p || { 122617a2631fcSmrg as_dirs= 122627a2631fcSmrg while :; do 122637a2631fcSmrg case $as_dir in #( 122646d8e82c3Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 122657a2631fcSmrg *) as_qdir=$as_dir;; 122667a2631fcSmrg esac 122677a2631fcSmrg as_dirs="'$as_qdir' $as_dirs" 122687a2631fcSmrg as_dir=`$as_dirname -- "$as_dir" || 122697a2631fcSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 122707a2631fcSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 122717a2631fcSmrg X"$as_dir" : 'X\(//\)$' \| \ 122727a2631fcSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 122736d8e82c3Smrgprintf "%s\n" X"$as_dir" | 122747a2631fcSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 122757a2631fcSmrg s//\1/ 122767a2631fcSmrg q 122777a2631fcSmrg } 122787a2631fcSmrg /^X\(\/\/\)[^/].*/{ 122797a2631fcSmrg s//\1/ 122807a2631fcSmrg q 122817a2631fcSmrg } 122827a2631fcSmrg /^X\(\/\/\)$/{ 122837a2631fcSmrg s//\1/ 122847a2631fcSmrg q 122857a2631fcSmrg } 122867a2631fcSmrg /^X\(\/\).*/{ 122877a2631fcSmrg s//\1/ 122887a2631fcSmrg q 122897a2631fcSmrg } 122907a2631fcSmrg s/.*/./; q'` 122917a2631fcSmrg test -d "$as_dir" && break 122927a2631fcSmrg done 122937a2631fcSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 122947a2631fcSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 122957a2631fcSmrg 122967a2631fcSmrg 122977a2631fcSmrg} # as_fn_mkdir_p 122983e747e6dSmrgif mkdir -p . 2>/dev/null; then 122997a2631fcSmrg as_mkdir_p='mkdir -p "$as_dir"' 123003e747e6dSmrgelse 123013e747e6dSmrg test -d ./-p && rmdir ./-p 123023e747e6dSmrg as_mkdir_p=false 123033e747e6dSmrgfi 123043e747e6dSmrg 123059cd34f4bSmrg 123069cd34f4bSmrg# as_fn_executable_p FILE 123079cd34f4bSmrg# ----------------------- 123089cd34f4bSmrg# Test if FILE is an executable regular file. 123099cd34f4bSmrgas_fn_executable_p () 123109cd34f4bSmrg{ 123119cd34f4bSmrg test -f "$1" && test -x "$1" 123129cd34f4bSmrg} # as_fn_executable_p 123139cd34f4bSmrgas_test_x='test -x' 123149cd34f4bSmrgas_executable_p=as_fn_executable_p 123153e747e6dSmrg 123163e747e6dSmrg# Sed expression to map a string onto a valid CPP name. 123173e747e6dSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 123183e747e6dSmrg 123193e747e6dSmrg# Sed expression to map a string onto a valid variable name. 123203e747e6dSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 123213e747e6dSmrg 123223e747e6dSmrg 123233e747e6dSmrgexec 6>&1 123247a2631fcSmrg## ----------------------------------- ## 123257a2631fcSmrg## Main body of $CONFIG_STATUS script. ## 123267a2631fcSmrg## ----------------------------------- ## 123277a2631fcSmrg_ASEOF 123287a2631fcSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 123293e747e6dSmrg 123307a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 123317a2631fcSmrg# Save the log message, to keep $0 and so on meaningful, and to 123323e747e6dSmrg# report actual input values of CONFIG_FILES etc. instead of their 123333e747e6dSmrg# values after options handling. 123343e747e6dSmrgac_log=" 123356d8e82c3SmrgThis file was extended by twm $as_me 1.0.13.1, which was 123366d8e82c3Smrggenerated by GNU Autoconf 2.71. Invocation command line was 123373e747e6dSmrg 123383e747e6dSmrg CONFIG_FILES = $CONFIG_FILES 123393e747e6dSmrg CONFIG_HEADERS = $CONFIG_HEADERS 123403e747e6dSmrg CONFIG_LINKS = $CONFIG_LINKS 123413e747e6dSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 123423e747e6dSmrg $ $0 $@ 123433e747e6dSmrg 123443e747e6dSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 123453e747e6dSmrg" 123463e747e6dSmrg 123473e747e6dSmrg_ACEOF 123483e747e6dSmrg 123497a2631fcSmrgcase $ac_config_files in *" 123507a2631fcSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 123517a2631fcSmrgesac 123527a2631fcSmrg 123537a2631fcSmrgcase $ac_config_headers in *" 123547a2631fcSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 123557a2631fcSmrgesac 123567a2631fcSmrg 123577a2631fcSmrg 123587a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 123593e747e6dSmrg# Files that config.status was made for. 123603e747e6dSmrgconfig_files="$ac_config_files" 123613e747e6dSmrgconfig_headers="$ac_config_headers" 123623e747e6dSmrgconfig_commands="$ac_config_commands" 123633e747e6dSmrg 123643e747e6dSmrg_ACEOF 123653e747e6dSmrg 123667a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 123673e747e6dSmrgac_cs_usage="\ 123687a2631fcSmrg\`$as_me' instantiates files and other configuration actions 123697a2631fcSmrgfrom templates according to the current configuration. Unless the files 123707a2631fcSmrgand actions are specified as TAGs, all are instantiated by default. 123713e747e6dSmrg 123727a2631fcSmrgUsage: $0 [OPTION]... [TAG]... 123733e747e6dSmrg 123743e747e6dSmrg -h, --help print this help, then exit 123753e747e6dSmrg -V, --version print version number and configuration settings, then exit 123767a2631fcSmrg --config print configuration, then exit 123777a2631fcSmrg -q, --quiet, --silent 123787a2631fcSmrg do not print progress messages 123793e747e6dSmrg -d, --debug don't remove temporary files 123803e747e6dSmrg --recheck update $as_me by reconfiguring in the same conditions 123817a2631fcSmrg --file=FILE[:TEMPLATE] 123827a2631fcSmrg instantiate the configuration file FILE 123837a2631fcSmrg --header=FILE[:TEMPLATE] 123847a2631fcSmrg instantiate the configuration header FILE 123853e747e6dSmrg 123863e747e6dSmrgConfiguration files: 123873e747e6dSmrg$config_files 123883e747e6dSmrg 123893e747e6dSmrgConfiguration headers: 123903e747e6dSmrg$config_headers 123913e747e6dSmrg 123923e747e6dSmrgConfiguration commands: 123933e747e6dSmrg$config_commands 123943e747e6dSmrg 12395f66df612SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/twm/issues>." 123963e747e6dSmrg 123973e747e6dSmrg_ACEOF 123986d8e82c3Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 123996d8e82c3Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 124007a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 124016d8e82c3Smrgac_cs_config='$ac_cs_config_escaped' 124023e747e6dSmrgac_cs_version="\\ 124036d8e82c3Smrgtwm config.status 1.0.13.1 124046d8e82c3Smrgconfigured by $0, generated by GNU Autoconf 2.71, 124057a2631fcSmrg with options \\"\$ac_cs_config\\" 124063e747e6dSmrg 124076d8e82c3SmrgCopyright (C) 2021 Free Software Foundation, Inc. 124083e747e6dSmrgThis config.status script is free software; the Free Software Foundation 124093e747e6dSmrggives unlimited permission to copy, distribute and modify it." 124103e747e6dSmrg 124113e747e6dSmrgac_pwd='$ac_pwd' 124123e747e6dSmrgsrcdir='$srcdir' 124133e747e6dSmrgINSTALL='$INSTALL' 124143e747e6dSmrgMKDIR_P='$MKDIR_P' 124157a2631fcSmrgAWK='$AWK' 124167a2631fcSmrgtest -n "\$AWK" || AWK=awk 124173e747e6dSmrg_ACEOF 124183e747e6dSmrg 124197a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 124207a2631fcSmrg# The default lists apply if the user does not specify any file. 124213e747e6dSmrgac_need_defaults=: 124223e747e6dSmrgwhile test $# != 0 124233e747e6dSmrgdo 124243e747e6dSmrg case $1 in 124257a2631fcSmrg --*=?*) 124263e747e6dSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 124273e747e6dSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 124283e747e6dSmrg ac_shift=: 124293e747e6dSmrg ;; 124307a2631fcSmrg --*=) 124317a2631fcSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 124327a2631fcSmrg ac_optarg= 124337a2631fcSmrg ac_shift=: 124347a2631fcSmrg ;; 124353e747e6dSmrg *) 124363e747e6dSmrg ac_option=$1 124373e747e6dSmrg ac_optarg=$2 124383e747e6dSmrg ac_shift=shift 124393e747e6dSmrg ;; 124403e747e6dSmrg esac 124413e747e6dSmrg 124423e747e6dSmrg case $ac_option in 124433e747e6dSmrg # Handling of the options. 124443e747e6dSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 124453e747e6dSmrg ac_cs_recheck=: ;; 124463e747e6dSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 124476d8e82c3Smrg printf "%s\n" "$ac_cs_version"; exit ;; 124487a2631fcSmrg --config | --confi | --conf | --con | --co | --c ) 124496d8e82c3Smrg printf "%s\n" "$ac_cs_config"; exit ;; 124503e747e6dSmrg --debug | --debu | --deb | --de | --d | -d ) 124513e747e6dSmrg debug=: ;; 124523e747e6dSmrg --file | --fil | --fi | --f ) 124533e747e6dSmrg $ac_shift 124547a2631fcSmrg case $ac_optarg in 124556d8e82c3Smrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 124567a2631fcSmrg '') as_fn_error $? "missing file argument" ;; 124577a2631fcSmrg esac 124587a2631fcSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 124593e747e6dSmrg ac_need_defaults=false;; 124603e747e6dSmrg --header | --heade | --head | --hea ) 124613e747e6dSmrg $ac_shift 124627a2631fcSmrg case $ac_optarg in 124636d8e82c3Smrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 124647a2631fcSmrg esac 124657a2631fcSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 124663e747e6dSmrg ac_need_defaults=false;; 124673e747e6dSmrg --he | --h) 124683e747e6dSmrg # Conflict between --help and --header 124697a2631fcSmrg as_fn_error $? "ambiguous option: \`$1' 124707a2631fcSmrgTry \`$0 --help' for more information.";; 124713e747e6dSmrg --help | --hel | -h ) 124726d8e82c3Smrg printf "%s\n" "$ac_cs_usage"; exit ;; 124733e747e6dSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 124743e747e6dSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 124753e747e6dSmrg ac_cs_silent=: ;; 124763e747e6dSmrg 124773e747e6dSmrg # This is an error. 124787a2631fcSmrg -*) as_fn_error $? "unrecognized option: \`$1' 124797a2631fcSmrgTry \`$0 --help' for more information." ;; 124803e747e6dSmrg 124817a2631fcSmrg *) as_fn_append ac_config_targets " $1" 124823e747e6dSmrg ac_need_defaults=false ;; 124833e747e6dSmrg 124843e747e6dSmrg esac 124853e747e6dSmrg shift 124863e747e6dSmrgdone 124873e747e6dSmrg 124883e747e6dSmrgac_configure_extra_args= 124893e747e6dSmrg 124903e747e6dSmrgif $ac_cs_silent; then 124913e747e6dSmrg exec 6>/dev/null 124923e747e6dSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 124933e747e6dSmrgfi 124943e747e6dSmrg 124953e747e6dSmrg_ACEOF 124967a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 124973e747e6dSmrgif \$ac_cs_recheck; then 124989cd34f4bSmrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 124997a2631fcSmrg shift 125006d8e82c3Smrg \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 125017a2631fcSmrg CONFIG_SHELL='$SHELL' 125023e747e6dSmrg export CONFIG_SHELL 125037a2631fcSmrg exec "\$@" 125043e747e6dSmrgfi 125053e747e6dSmrg 125063e747e6dSmrg_ACEOF 125077a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 125083e747e6dSmrgexec 5>>config.log 125093e747e6dSmrg{ 125103e747e6dSmrg echo 125113e747e6dSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 125123e747e6dSmrg## Running $as_me. ## 125133e747e6dSmrg_ASBOX 125146d8e82c3Smrg printf "%s\n" "$ac_log" 125153e747e6dSmrg} >&5 125163e747e6dSmrg 125173e747e6dSmrg_ACEOF 125187a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 125193e747e6dSmrg# 125203e747e6dSmrg# INIT-COMMANDS 125213e747e6dSmrg# 125226d8e82c3SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 125233e747e6dSmrg 125243e747e6dSmrg_ACEOF 125253e747e6dSmrg 125267a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 125273e747e6dSmrg 125283e747e6dSmrg# Handling of arguments. 125293e747e6dSmrgfor ac_config_target in $ac_config_targets 125303e747e6dSmrgdo 125313e747e6dSmrg case $ac_config_target in 125323e747e6dSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 125333e747e6dSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 125343e747e6dSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 125353e747e6dSmrg "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 125363e747e6dSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 125373e747e6dSmrg 125387a2631fcSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 125393e747e6dSmrg esac 125403e747e6dSmrgdone 125413e747e6dSmrg 125423e747e6dSmrg 125433e747e6dSmrg# If the user did not use the arguments to specify the items to instantiate, 125443e747e6dSmrg# then the envvar interface is used. Set only those that are not. 125453e747e6dSmrg# We use the long form for the default assignment because of an extremely 125463e747e6dSmrg# bizarre bug on SunOS 4.1.3. 125473e747e6dSmrgif $ac_need_defaults; then 125486d8e82c3Smrg test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 125496d8e82c3Smrg test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 125506d8e82c3Smrg test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 125513e747e6dSmrgfi 125523e747e6dSmrg 125533e747e6dSmrg# Have a temporary directory for convenience. Make it in the build tree 125543e747e6dSmrg# simply because there is no reason against having it here, and in addition, 125553e747e6dSmrg# creating and moving files from /tmp can sometimes cause problems. 125563e747e6dSmrg# Hook for its removal unless debugging. 125573e747e6dSmrg# Note that there is a small window in which the directory will not be cleaned: 125583e747e6dSmrg# after its creation but before its name has been assigned to `$tmp'. 125593e747e6dSmrg$debug || 125603e747e6dSmrg{ 125617a2631fcSmrg tmp= ac_tmp= 125623e747e6dSmrg trap 'exit_status=$? 125637a2631fcSmrg : "${ac_tmp:=$tmp}" 125647a2631fcSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 125653e747e6dSmrg' 0 125667a2631fcSmrg trap 'as_fn_exit 1' 1 2 13 15 125673e747e6dSmrg} 125683e747e6dSmrg# Create a (secure) tmp directory for tmp files. 125693e747e6dSmrg 125703e747e6dSmrg{ 125713e747e6dSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 125727a2631fcSmrg test -d "$tmp" 125733e747e6dSmrg} || 125743e747e6dSmrg{ 125753e747e6dSmrg tmp=./conf$$-$RANDOM 125763e747e6dSmrg (umask 077 && mkdir "$tmp") 125777a2631fcSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 125787a2631fcSmrgac_tmp=$tmp 125793e747e6dSmrg 125807a2631fcSmrg# Set up the scripts for CONFIG_FILES section. 125817a2631fcSmrg# No need to generate them if there are no CONFIG_FILES. 125827a2631fcSmrg# This happens for instance with `./config.status config.h'. 125833e747e6dSmrgif test -n "$CONFIG_FILES"; then 125843e747e6dSmrg 125853e747e6dSmrg 125867a2631fcSmrgac_cr=`echo X | tr X '\015'` 125877a2631fcSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 125887a2631fcSmrg# But we know of no other shell where ac_cr would be empty at this 125897a2631fcSmrg# point, so we can use a bashism as a fallback. 125907a2631fcSmrgif test "x$ac_cr" = x; then 125917a2631fcSmrg eval ac_cr=\$\'\\r\' 125927a2631fcSmrgfi 125937a2631fcSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 125947a2631fcSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 125957a2631fcSmrg ac_cs_awk_cr='\\r' 125967a2631fcSmrgelse 125977a2631fcSmrg ac_cs_awk_cr=$ac_cr 125983e747e6dSmrgfi 125993e747e6dSmrg 126007a2631fcSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 126013e747e6dSmrg_ACEOF 126023e747e6dSmrg 126033e747e6dSmrg 126047a2631fcSmrg{ 126057a2631fcSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 126067a2631fcSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 126077a2631fcSmrg echo "_ACEOF" 126087a2631fcSmrg} >conf$$subs.sh || 126097a2631fcSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 126107a2631fcSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 126113e747e6dSmrgac_delim='%!_!# ' 126123e747e6dSmrgfor ac_last_try in false false false false false :; do 126137a2631fcSmrg . ./conf$$subs.sh || 126147a2631fcSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 126153e747e6dSmrg 126167a2631fcSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 126177a2631fcSmrg if test $ac_delim_n = $ac_delim_num; then 126183e747e6dSmrg break 126193e747e6dSmrg elif $ac_last_try; then 126207a2631fcSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 126213e747e6dSmrg else 126223e747e6dSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 126233e747e6dSmrg fi 126243e747e6dSmrgdone 126257a2631fcSmrgrm -f conf$$subs.sh 126263e747e6dSmrg 126277a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 126287a2631fcSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 126297a2631fcSmrg_ACEOF 126307a2631fcSmrgsed -n ' 126317a2631fcSmrgh 126327a2631fcSmrgs/^/S["/; s/!.*/"]=/ 126337a2631fcSmrgp 126347a2631fcSmrgg 126357a2631fcSmrgs/^[^!]*!// 126367a2631fcSmrg:repl 126377a2631fcSmrgt repl 126387a2631fcSmrgs/'"$ac_delim"'$// 126397a2631fcSmrgt delim 126407a2631fcSmrg:nl 126417a2631fcSmrgh 126427a2631fcSmrgs/\(.\{148\}\)..*/\1/ 126437a2631fcSmrgt more1 126447a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 126457a2631fcSmrgp 126467a2631fcSmrgn 126477a2631fcSmrgb repl 126487a2631fcSmrg:more1 126497a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 126507a2631fcSmrgp 126517a2631fcSmrgg 126527a2631fcSmrgs/.\{148\}// 126537a2631fcSmrgt nl 126547a2631fcSmrg:delim 126557a2631fcSmrgh 126567a2631fcSmrgs/\(.\{148\}\)..*/\1/ 126577a2631fcSmrgt more2 126587a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 126597a2631fcSmrgp 126607a2631fcSmrgb 126617a2631fcSmrg:more2 126627a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 126637a2631fcSmrgp 126647a2631fcSmrgg 126657a2631fcSmrgs/.\{148\}// 126667a2631fcSmrgt delim 126677a2631fcSmrg' <conf$$subs.awk | sed ' 126687a2631fcSmrg/^[^""]/{ 126697a2631fcSmrg N 126707a2631fcSmrg s/\n// 126717a2631fcSmrg} 126727a2631fcSmrg' >>$CONFIG_STATUS || ac_write_fail=1 126737a2631fcSmrgrm -f conf$$subs.awk 126747a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 126757a2631fcSmrg_ACAWK 126767a2631fcSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 126777a2631fcSmrg for (key in S) S_is_set[key] = 1 126787a2631fcSmrg FS = "" 126797a2631fcSmrg 126807a2631fcSmrg} 126817a2631fcSmrg{ 126827a2631fcSmrg line = $ 0 126837a2631fcSmrg nfields = split(line, field, "@") 126847a2631fcSmrg substed = 0 126857a2631fcSmrg len = length(field[1]) 126867a2631fcSmrg for (i = 2; i < nfields; i++) { 126877a2631fcSmrg key = field[i] 126887a2631fcSmrg keylen = length(key) 126897a2631fcSmrg if (S_is_set[key]) { 126907a2631fcSmrg value = S[key] 126917a2631fcSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 126927a2631fcSmrg len += length(value) + length(field[++i]) 126937a2631fcSmrg substed = 1 126947a2631fcSmrg } else 126957a2631fcSmrg len += 1 + keylen 126967a2631fcSmrg } 126977a2631fcSmrg 126987a2631fcSmrg print line 126997a2631fcSmrg} 127003e747e6dSmrg 127017a2631fcSmrg_ACAWK 127023e747e6dSmrg_ACEOF 127037a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 127047a2631fcSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 127057a2631fcSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 127067a2631fcSmrgelse 127077a2631fcSmrg cat 127087a2631fcSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 127097a2631fcSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 127103e747e6dSmrg_ACEOF 127113e747e6dSmrg 127127a2631fcSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 127137a2631fcSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 127143e747e6dSmrg# trailing colons and then remove the whole line if VPATH becomes empty 127153e747e6dSmrg# (actually we leave an empty line to preserve line numbers). 127163e747e6dSmrgif test "x$srcdir" = x.; then 127177a2631fcSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 127187a2631fcSmrgh 127197a2631fcSmrgs/// 127207a2631fcSmrgs/^/:/ 127217a2631fcSmrgs/[ ]*$/:/ 127227a2631fcSmrgs/:\$(srcdir):/:/g 127237a2631fcSmrgs/:\${srcdir}:/:/g 127247a2631fcSmrgs/:@srcdir@:/:/g 127257a2631fcSmrgs/^:*// 127263e747e6dSmrgs/:*$// 127277a2631fcSmrgx 127287a2631fcSmrgs/\(=[ ]*\).*/\1/ 127297a2631fcSmrgG 127307a2631fcSmrgs/\n// 127313e747e6dSmrgs/^[^=]*=[ ]*$// 127323e747e6dSmrg}' 127333e747e6dSmrgfi 127343e747e6dSmrg 127357a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 127363e747e6dSmrgfi # test -n "$CONFIG_FILES" 127373e747e6dSmrg 127387a2631fcSmrg# Set up the scripts for CONFIG_HEADERS section. 127397a2631fcSmrg# No need to generate them if there are no CONFIG_HEADERS. 127407a2631fcSmrg# This happens for instance with `./config.status Makefile'. 127417a2631fcSmrgif test -n "$CONFIG_HEADERS"; then 127427a2631fcSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 127437a2631fcSmrgBEGIN { 127447a2631fcSmrg_ACEOF 127457a2631fcSmrg 127467a2631fcSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 127477a2631fcSmrg# here-document in config.status, that substitutes the proper values into 127487a2631fcSmrg# config.h.in to produce config.h. 127497a2631fcSmrg 127507a2631fcSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 127517a2631fcSmrg# handling of long lines. 127527a2631fcSmrgac_delim='%!_!# ' 127537a2631fcSmrgfor ac_last_try in false false :; do 127547a2631fcSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 127557a2631fcSmrg if test -z "$ac_tt"; then 127567a2631fcSmrg break 127577a2631fcSmrg elif $ac_last_try; then 127587a2631fcSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 127597a2631fcSmrg else 127607a2631fcSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 127617a2631fcSmrg fi 127627a2631fcSmrgdone 127637a2631fcSmrg 127647a2631fcSmrg# For the awk script, D is an array of macro values keyed by name, 127657a2631fcSmrg# likewise P contains macro parameters if any. Preserve backslash 127667a2631fcSmrg# newline sequences. 127677a2631fcSmrg 127687a2631fcSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 127697a2631fcSmrgsed -n ' 127707a2631fcSmrgs/.\{148\}/&'"$ac_delim"'/g 127717a2631fcSmrgt rset 127727a2631fcSmrg:rset 127737a2631fcSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 127747a2631fcSmrgt def 127757a2631fcSmrgd 127767a2631fcSmrg:def 127777a2631fcSmrgs/\\$// 127787a2631fcSmrgt bsnl 127797a2631fcSmrgs/["\\]/\\&/g 127807a2631fcSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 127817a2631fcSmrgD["\1"]=" \3"/p 127827a2631fcSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 127837a2631fcSmrgd 127847a2631fcSmrg:bsnl 127857a2631fcSmrgs/["\\]/\\&/g 127867a2631fcSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 127877a2631fcSmrgD["\1"]=" \3\\\\\\n"\\/p 127887a2631fcSmrgt cont 127897a2631fcSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 127907a2631fcSmrgt cont 127917a2631fcSmrgd 127927a2631fcSmrg:cont 127937a2631fcSmrgn 127947a2631fcSmrgs/.\{148\}/&'"$ac_delim"'/g 127957a2631fcSmrgt clear 127967a2631fcSmrg:clear 127977a2631fcSmrgs/\\$// 127987a2631fcSmrgt bsnlc 127997a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 128007a2631fcSmrgd 128017a2631fcSmrg:bsnlc 128027a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 128037a2631fcSmrgb cont 128047a2631fcSmrg' <confdefs.h | sed ' 128057a2631fcSmrgs/'"$ac_delim"'/"\\\ 128067a2631fcSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 128077a2631fcSmrg 128087a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 128097a2631fcSmrg for (key in D) D_is_set[key] = 1 128107a2631fcSmrg FS = "" 128117a2631fcSmrg} 128127a2631fcSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 128137a2631fcSmrg line = \$ 0 128147a2631fcSmrg split(line, arg, " ") 128157a2631fcSmrg if (arg[1] == "#") { 128167a2631fcSmrg defundef = arg[2] 128177a2631fcSmrg mac1 = arg[3] 128187a2631fcSmrg } else { 128197a2631fcSmrg defundef = substr(arg[1], 2) 128207a2631fcSmrg mac1 = arg[2] 128217a2631fcSmrg } 128227a2631fcSmrg split(mac1, mac2, "(") #) 128237a2631fcSmrg macro = mac2[1] 128247a2631fcSmrg prefix = substr(line, 1, index(line, defundef) - 1) 128257a2631fcSmrg if (D_is_set[macro]) { 128267a2631fcSmrg # Preserve the white space surrounding the "#". 128277a2631fcSmrg print prefix "define", macro P[macro] D[macro] 128287a2631fcSmrg next 128297a2631fcSmrg } else { 128307a2631fcSmrg # Replace #undef with comments. This is necessary, for example, 128317a2631fcSmrg # in the case of _POSIX_SOURCE, which is predefined and required 128327a2631fcSmrg # on some systems where configure will not decide to define it. 128337a2631fcSmrg if (defundef == "undef") { 128347a2631fcSmrg print "/*", prefix defundef, macro, "*/" 128357a2631fcSmrg next 128367a2631fcSmrg } 128377a2631fcSmrg } 128387a2631fcSmrg} 128397a2631fcSmrg{ print } 128407a2631fcSmrg_ACAWK 128417a2631fcSmrg_ACEOF 128427a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 128437a2631fcSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 128447a2631fcSmrgfi # test -n "$CONFIG_HEADERS" 128457a2631fcSmrg 128463e747e6dSmrg 128477a2631fcSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 128487a2631fcSmrgshift 128497a2631fcSmrgfor ac_tag 128503e747e6dSmrgdo 128513e747e6dSmrg case $ac_tag in 128523e747e6dSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 128533e747e6dSmrg esac 128543e747e6dSmrg case $ac_mode$ac_tag in 128553e747e6dSmrg :[FHL]*:*);; 128567a2631fcSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 128573e747e6dSmrg :[FH]-) ac_tag=-:-;; 128583e747e6dSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 128593e747e6dSmrg esac 128603e747e6dSmrg ac_save_IFS=$IFS 128613e747e6dSmrg IFS=: 128623e747e6dSmrg set x $ac_tag 128633e747e6dSmrg IFS=$ac_save_IFS 128643e747e6dSmrg shift 128653e747e6dSmrg ac_file=$1 128663e747e6dSmrg shift 128673e747e6dSmrg 128683e747e6dSmrg case $ac_mode in 128693e747e6dSmrg :L) ac_source=$1;; 128703e747e6dSmrg :[FH]) 128713e747e6dSmrg ac_file_inputs= 128723e747e6dSmrg for ac_f 128733e747e6dSmrg do 128743e747e6dSmrg case $ac_f in 128757a2631fcSmrg -) ac_f="$ac_tmp/stdin";; 128763e747e6dSmrg *) # Look for the file first in the build tree, then in the source tree 128773e747e6dSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 128783e747e6dSmrg # because $ac_f cannot contain `:'. 128793e747e6dSmrg test -f "$ac_f" || 128803e747e6dSmrg case $ac_f in 128813e747e6dSmrg [\\/$]*) false;; 128823e747e6dSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 128833e747e6dSmrg esac || 128847a2631fcSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 128853e747e6dSmrg esac 128866d8e82c3Smrg case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 128877a2631fcSmrg as_fn_append ac_file_inputs " '$ac_f'" 128883e747e6dSmrg done 128893e747e6dSmrg 128903e747e6dSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 128913e747e6dSmrg # use $as_me), people would be surprised to read: 128923e747e6dSmrg # /* config.h. Generated by config.status. */ 128937a2631fcSmrg configure_input='Generated from '` 128946d8e82c3Smrg printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 128957a2631fcSmrg `' by configure.' 128963e747e6dSmrg if test x"$ac_file" != x-; then 128973e747e6dSmrg configure_input="$ac_file. $configure_input" 128986d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 128996d8e82c3Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;} 129003e747e6dSmrg fi 129017a2631fcSmrg # Neutralize special characters interpreted by sed in replacement strings. 129027a2631fcSmrg case $configure_input in #( 129037a2631fcSmrg *\&* | *\|* | *\\* ) 129046d8e82c3Smrg ac_sed_conf_input=`printf "%s\n" "$configure_input" | 129057a2631fcSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 129067a2631fcSmrg *) ac_sed_conf_input=$configure_input;; 129077a2631fcSmrg esac 129083e747e6dSmrg 129093e747e6dSmrg case $ac_tag in 129107a2631fcSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 129117a2631fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 129123e747e6dSmrg esac 129133e747e6dSmrg ;; 129143e747e6dSmrg esac 129153e747e6dSmrg 129163e747e6dSmrg ac_dir=`$as_dirname -- "$ac_file" || 129173e747e6dSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 129183e747e6dSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 129193e747e6dSmrg X"$ac_file" : 'X\(//\)$' \| \ 129203e747e6dSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 129216d8e82c3Smrgprintf "%s\n" X"$ac_file" | 129223e747e6dSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 129233e747e6dSmrg s//\1/ 129243e747e6dSmrg q 129253e747e6dSmrg } 129263e747e6dSmrg /^X\(\/\/\)[^/].*/{ 129273e747e6dSmrg s//\1/ 129283e747e6dSmrg q 129293e747e6dSmrg } 129303e747e6dSmrg /^X\(\/\/\)$/{ 129313e747e6dSmrg s//\1/ 129323e747e6dSmrg q 129333e747e6dSmrg } 129343e747e6dSmrg /^X\(\/\).*/{ 129353e747e6dSmrg s//\1/ 129363e747e6dSmrg q 129373e747e6dSmrg } 129383e747e6dSmrg s/.*/./; q'` 129397a2631fcSmrg as_dir="$ac_dir"; as_fn_mkdir_p 129403e747e6dSmrg ac_builddir=. 129413e747e6dSmrg 129423e747e6dSmrgcase "$ac_dir" in 129433e747e6dSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 129443e747e6dSmrg*) 129456d8e82c3Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 129463e747e6dSmrg # A ".." for each directory in $ac_dir_suffix. 129476d8e82c3Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 129483e747e6dSmrg case $ac_top_builddir_sub in 129493e747e6dSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 129503e747e6dSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 129513e747e6dSmrg esac ;; 129523e747e6dSmrgesac 129533e747e6dSmrgac_abs_top_builddir=$ac_pwd 129543e747e6dSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 129553e747e6dSmrg# for backward compatibility: 129563e747e6dSmrgac_top_builddir=$ac_top_build_prefix 129573e747e6dSmrg 129583e747e6dSmrgcase $srcdir in 129593e747e6dSmrg .) # We are building in place. 129603e747e6dSmrg ac_srcdir=. 129613e747e6dSmrg ac_top_srcdir=$ac_top_builddir_sub 129623e747e6dSmrg ac_abs_top_srcdir=$ac_pwd ;; 129633e747e6dSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 129643e747e6dSmrg ac_srcdir=$srcdir$ac_dir_suffix; 129653e747e6dSmrg ac_top_srcdir=$srcdir 129663e747e6dSmrg ac_abs_top_srcdir=$srcdir ;; 129673e747e6dSmrg *) # Relative name. 129683e747e6dSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 129693e747e6dSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 129703e747e6dSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 129713e747e6dSmrgesac 129723e747e6dSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 129733e747e6dSmrg 129743e747e6dSmrg 129753e747e6dSmrg case $ac_mode in 129763e747e6dSmrg :F) 129773e747e6dSmrg # 129783e747e6dSmrg # CONFIG_FILE 129793e747e6dSmrg # 129803e747e6dSmrg 129813e747e6dSmrg case $INSTALL in 129823e747e6dSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 129833e747e6dSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 129843e747e6dSmrg esac 129853e747e6dSmrg ac_MKDIR_P=$MKDIR_P 129863e747e6dSmrg case $MKDIR_P in 129873e747e6dSmrg [\\/$]* | ?:[\\/]* ) ;; 129883e747e6dSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 129893e747e6dSmrg esac 129903e747e6dSmrg_ACEOF 129913e747e6dSmrg 129927a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 129933e747e6dSmrg# If the template does not know about datarootdir, expand it. 129943e747e6dSmrg# FIXME: This hack should be removed a few years after 2.60. 129953e747e6dSmrgac_datarootdir_hack=; ac_datarootdir_seen= 129967a2631fcSmrgac_sed_dataroot=' 129977a2631fcSmrg/datarootdir/ { 129983e747e6dSmrg p 129993e747e6dSmrg q 130003e747e6dSmrg} 130013e747e6dSmrg/@datadir@/p 130023e747e6dSmrg/@docdir@/p 130033e747e6dSmrg/@infodir@/p 130043e747e6dSmrg/@localedir@/p 130057a2631fcSmrg/@mandir@/p' 130067a2631fcSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 130073e747e6dSmrg*datarootdir*) ac_datarootdir_seen=yes;; 130083e747e6dSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 130096d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 130106d8e82c3Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 130113e747e6dSmrg_ACEOF 130127a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 130133e747e6dSmrg ac_datarootdir_hack=' 130143e747e6dSmrg s&@datadir@&$datadir&g 130153e747e6dSmrg s&@docdir@&$docdir&g 130163e747e6dSmrg s&@infodir@&$infodir&g 130173e747e6dSmrg s&@localedir@&$localedir&g 130183e747e6dSmrg s&@mandir@&$mandir&g 130197a2631fcSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 130203e747e6dSmrgesac 130213e747e6dSmrg_ACEOF 130223e747e6dSmrg 130233e747e6dSmrg# Neutralize VPATH when `$srcdir' = `.'. 130243e747e6dSmrg# Shell code in configure.ac might set extrasub. 130253e747e6dSmrg# FIXME: do we really want to maintain this feature? 130267a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 130277a2631fcSmrgac_sed_extra="$ac_vpsub 130283e747e6dSmrg$extrasub 130293e747e6dSmrg_ACEOF 130307a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 130313e747e6dSmrg:t 130323e747e6dSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 130337a2631fcSmrgs|@configure_input@|$ac_sed_conf_input|;t t 130343e747e6dSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 130357a2631fcSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 130363e747e6dSmrgs&@srcdir@&$ac_srcdir&;t t 130373e747e6dSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 130383e747e6dSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 130393e747e6dSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 130403e747e6dSmrgs&@builddir@&$ac_builddir&;t t 130413e747e6dSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 130423e747e6dSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 130433e747e6dSmrgs&@INSTALL@&$ac_INSTALL&;t t 130443e747e6dSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 130453e747e6dSmrg$ac_datarootdir_hack 130467a2631fcSmrg" 130477a2631fcSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 130487a2631fcSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 130493e747e6dSmrg 130503e747e6dSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 130517a2631fcSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 130527a2631fcSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 130537a2631fcSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 130546d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 130557a2631fcSmrgwhich seems to be undefined. Please make sure it is defined" >&5 130566d8e82c3Smrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 130577a2631fcSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 130587a2631fcSmrg 130597a2631fcSmrg rm -f "$ac_tmp/stdin" 130603e747e6dSmrg case $ac_file in 130617a2631fcSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 130627a2631fcSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 130637a2631fcSmrg esac \ 130647a2631fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 130653e747e6dSmrg ;; 130663e747e6dSmrg :H) 130673e747e6dSmrg # 130683e747e6dSmrg # CONFIG_HEADER 130693e747e6dSmrg # 130703e747e6dSmrg if test x"$ac_file" != x-; then 130717a2631fcSmrg { 130726d8e82c3Smrg printf "%s\n" "/* $configure_input */" >&1 \ 130737a2631fcSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 130747a2631fcSmrg } >"$ac_tmp/config.h" \ 130757a2631fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 130767a2631fcSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 130776d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 130786d8e82c3Smrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 130793e747e6dSmrg else 130807a2631fcSmrg rm -f "$ac_file" 130817a2631fcSmrg mv "$ac_tmp/config.h" "$ac_file" \ 130827a2631fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 130833e747e6dSmrg fi 130843e747e6dSmrg else 130856d8e82c3Smrg printf "%s\n" "/* $configure_input */" >&1 \ 130867a2631fcSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 130877a2631fcSmrg || as_fn_error $? "could not create -" "$LINENO" 5 130883e747e6dSmrg fi 130897a2631fcSmrg# Compute "$ac_file"'s index in $config_headers. 130907a2631fcSmrg_am_arg="$ac_file" 130913e747e6dSmrg_am_stamp_count=1 130923e747e6dSmrgfor _am_header in $config_headers :; do 130933e747e6dSmrg case $_am_header in 130943e747e6dSmrg $_am_arg | $_am_arg:* ) 130953e747e6dSmrg break ;; 130963e747e6dSmrg * ) 130973e747e6dSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 130983e747e6dSmrg esac 130993e747e6dSmrgdone 131003e747e6dSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 131013e747e6dSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 131023e747e6dSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 131033e747e6dSmrg X"$_am_arg" : 'X\(//\)$' \| \ 131043e747e6dSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 131056d8e82c3Smrgprintf "%s\n" X"$_am_arg" | 131063e747e6dSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 131073e747e6dSmrg s//\1/ 131083e747e6dSmrg q 131093e747e6dSmrg } 131103e747e6dSmrg /^X\(\/\/\)[^/].*/{ 131113e747e6dSmrg s//\1/ 131123e747e6dSmrg q 131133e747e6dSmrg } 131143e747e6dSmrg /^X\(\/\/\)$/{ 131153e747e6dSmrg s//\1/ 131163e747e6dSmrg q 131173e747e6dSmrg } 131183e747e6dSmrg /^X\(\/\).*/{ 131193e747e6dSmrg s//\1/ 131203e747e6dSmrg q 131213e747e6dSmrg } 131223e747e6dSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 131233e747e6dSmrg ;; 131243e747e6dSmrg 131256d8e82c3Smrg :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 131266d8e82c3Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;} 131273e747e6dSmrg ;; 131283e747e6dSmrg esac 131293e747e6dSmrg 131303e747e6dSmrg 131313e747e6dSmrg case $ac_file$ac_mode in 131327a2631fcSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13133c2535118Smrg # Older Autoconf quotes --file arguments for eval, but not when files 131347a2631fcSmrg # are listed without --file. Let's play safe and only enable the eval 131357a2631fcSmrg # if we detect the quoting. 131366d8e82c3Smrg # TODO: see whether this extra hack can be removed once we start 131376d8e82c3Smrg # requiring Autoconf 2.70 or later. 131386d8e82c3Smrg case $CONFIG_FILES in #( 131396d8e82c3Smrg *\'*) : 131406d8e82c3Smrg eval set x "$CONFIG_FILES" ;; #( 131416d8e82c3Smrg *) : 131426d8e82c3Smrg set x $CONFIG_FILES ;; #( 131436d8e82c3Smrg *) : 131446d8e82c3Smrg ;; 131456d8e82c3Smrgesac 131467a2631fcSmrg shift 131476d8e82c3Smrg # Used to flag and report bootstrapping failures. 131486d8e82c3Smrg am_rc=0 131496d8e82c3Smrg for am_mf 131507a2631fcSmrg do 131517a2631fcSmrg # Strip MF so we end up with the name of the file. 131526d8e82c3Smrg am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 131536d8e82c3Smrg # Check whether this is an Automake generated Makefile which includes 131546d8e82c3Smrg # dependency-tracking related rules and includes. 131556d8e82c3Smrg # Grep'ing the whole file directly is not great: AIX grep has a line 131567a2631fcSmrg # limit of 2048, but all sed's we know have understand at least 4000. 131576d8e82c3Smrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 131586d8e82c3Smrg || continue 131596d8e82c3Smrg am_dirpart=`$as_dirname -- "$am_mf" || 131606d8e82c3Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 131616d8e82c3Smrg X"$am_mf" : 'X\(//\)[^/]' \| \ 131626d8e82c3Smrg X"$am_mf" : 'X\(//\)$' \| \ 131636d8e82c3Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 131646d8e82c3Smrgprintf "%s\n" X"$am_mf" | 131653e747e6dSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 131663e747e6dSmrg s//\1/ 131673e747e6dSmrg q 131683e747e6dSmrg } 131693e747e6dSmrg /^X\(\/\/\)[^/].*/{ 131703e747e6dSmrg s//\1/ 131713e747e6dSmrg q 131723e747e6dSmrg } 131733e747e6dSmrg /^X\(\/\/\)$/{ 131743e747e6dSmrg s//\1/ 131753e747e6dSmrg q 131763e747e6dSmrg } 131773e747e6dSmrg /^X\(\/\).*/{ 131783e747e6dSmrg s//\1/ 131793e747e6dSmrg q 131803e747e6dSmrg } 131813e747e6dSmrg s/.*/./; q'` 131826d8e82c3Smrg am_filepart=`$as_basename -- "$am_mf" || 131836d8e82c3Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 131846d8e82c3Smrg X"$am_mf" : 'X\(//\)$' \| \ 131856d8e82c3Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 131866d8e82c3Smrgprintf "%s\n" X/"$am_mf" | 131876d8e82c3Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 131883e747e6dSmrg s//\1/ 131893e747e6dSmrg q 131903e747e6dSmrg } 131916d8e82c3Smrg /^X\/\(\/\/\)$/{ 131923e747e6dSmrg s//\1/ 131933e747e6dSmrg q 131943e747e6dSmrg } 131956d8e82c3Smrg /^X\/\(\/\).*/{ 131963e747e6dSmrg s//\1/ 131973e747e6dSmrg q 131983e747e6dSmrg } 131993e747e6dSmrg s/.*/./; q'` 132006d8e82c3Smrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 132016d8e82c3Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 132026d8e82c3Smrg | $MAKE -f - am--depfiles" >&5 132036d8e82c3Smrg (cd "$am_dirpart" \ 132046d8e82c3Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 132056d8e82c3Smrg | $MAKE -f - am--depfiles) >&5 2>&5 132066d8e82c3Smrg ac_status=$? 132076d8e82c3Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 132086d8e82c3Smrg (exit $ac_status); } || am_rc=$? 132093e747e6dSmrg done 132106d8e82c3Smrg if test $am_rc -ne 0; then 132116d8e82c3Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 132126d8e82c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 132136d8e82c3Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 132146d8e82c3Smrg for automatic dependency tracking. If GNU make was not used, consider 132156d8e82c3Smrg re-running the configure script with MAKE=\"gmake\" (or whatever is 132166d8e82c3Smrg necessary). You can also try re-running configure with the 132176d8e82c3Smrg '--disable-dependency-tracking' option to at least be able to build 132186d8e82c3Smrg the package (albeit without support for automatic dependency tracking). 132196d8e82c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 132206d8e82c3Smrg fi 132216d8e82c3Smrg { am_dirpart=; unset am_dirpart;} 132226d8e82c3Smrg { am_filepart=; unset am_filepart;} 132236d8e82c3Smrg { am_mf=; unset am_mf;} 132246d8e82c3Smrg { am_rc=; unset am_rc;} 132256d8e82c3Smrg rm -f conftest-deps.mk 132267a2631fcSmrg} 132273e747e6dSmrg ;; 132283e747e6dSmrg 132293e747e6dSmrg esac 132303e747e6dSmrgdone # for ac_tag 132313e747e6dSmrg 132323e747e6dSmrg 132337a2631fcSmrgas_fn_exit 0 132343e747e6dSmrg_ACEOF 132353e747e6dSmrgac_clean_files=$ac_clean_files_save 132363e747e6dSmrg 132377a2631fcSmrgtest $ac_write_fail = 0 || 132387a2631fcSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 132397a2631fcSmrg 132403e747e6dSmrg 132413e747e6dSmrg# configure is writing to config.log, and then calls config.status. 132423e747e6dSmrg# config.status does its own redirection, appending to config.log. 132433e747e6dSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 132443e747e6dSmrg# by configure, so config.status won't be able to write to it; its 132453e747e6dSmrg# output is simply discarded. So we exec the FD to /dev/null, 132463e747e6dSmrg# effectively closing config.log, so it can be properly (re)opened and 132473e747e6dSmrg# appended to by config.status. When coming back to configure, we 132483e747e6dSmrg# need to make the FD available again. 132493e747e6dSmrgif test "$no_create" != yes; then 132503e747e6dSmrg ac_cs_success=: 132513e747e6dSmrg ac_config_status_args= 132523e747e6dSmrg test "$silent" = yes && 132533e747e6dSmrg ac_config_status_args="$ac_config_status_args --quiet" 132543e747e6dSmrg exec 5>/dev/null 132553e747e6dSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 132563e747e6dSmrg exec 5>>config.log 132573e747e6dSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 132583e747e6dSmrg # would make configure fail if this is the last instruction. 132597a2631fcSmrg $ac_cs_success || as_fn_exit 1 132607a2631fcSmrgfi 132617a2631fcSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 132626d8e82c3Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 132636d8e82c3Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 132643e747e6dSmrgfi 132653e747e6dSmrg 132666d8e82c3Smrg 13267