configure revision 0f5b81e5
1a0195d5fSmrg#! /bin/sh 2a0195d5fSmrg# Guess values for system-dependent variables and create Makefiles. 30f5b81e5Smrg# Generated by GNU Autoconf 2.71 for xset 1.2.5. 4a0195d5fSmrg# 50f5b81e5Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xset/-/issues>. 6a0195d5fSmrg# 76f5dd5c2Smrg# 80f5b81e5Smrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 90f5b81e5Smrg# Inc. 106f5dd5c2Smrg# 116f5dd5c2Smrg# 12a0195d5fSmrg# This configure script is free software; the Free Software Foundation 13a0195d5fSmrg# gives unlimited permission to copy, distribute and modify it. 146f5dd5c2Smrg## -------------------- ## 156f5dd5c2Smrg## M4sh Initialization. ## 166f5dd5c2Smrg## -------------------- ## 17a0195d5fSmrg 18a0195d5fSmrg# Be more Bourne compatible 19a0195d5fSmrgDUALCASE=1; export DUALCASE # for MKS sh 200f5b81e5Smrgas_nop=: 210f5b81e5Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 220f5b81e5Smrgthen : 23a0195d5fSmrg emulate sh 24a0195d5fSmrg NULLCMD=: 256600fe5bSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26a0195d5fSmrg # is contrary to our usage. Disable this feature. 27a0195d5fSmrg alias -g '${1+"$@"}'='"$@"' 28a0195d5fSmrg setopt NO_GLOB_SUBST 290f5b81e5Smrgelse $as_nop 306f5dd5c2Smrg case `(set -o) 2>/dev/null` in #( 316f5dd5c2Smrg *posix*) : 326f5dd5c2Smrg set -o posix ;; #( 336f5dd5c2Smrg *) : 346f5dd5c2Smrg ;; 35a0195d5fSmrgesac 36a0195d5fSmrgfi 37a0195d5fSmrg 38a0195d5fSmrg 390f5b81e5Smrg 400f5b81e5Smrg# Reset variables that may have inherited troublesome values from 410f5b81e5Smrg# the environment. 420f5b81e5Smrg 430f5b81e5Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 440f5b81e5Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 450f5b81e5Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 460f5b81e5Smrg# Quoting is to prevent editors from complaining about space-tab. 476600fe5bSmrgas_nl=' 486600fe5bSmrg' 496600fe5bSmrgexport as_nl 500f5b81e5SmrgIFS=" "" $as_nl" 510f5b81e5Smrg 520f5b81e5SmrgPS1='$ ' 530f5b81e5SmrgPS2='> ' 540f5b81e5SmrgPS4='+ ' 550f5b81e5Smrg 560f5b81e5Smrg# Ensure predictable behavior from utilities with locale-dependent output. 570f5b81e5SmrgLC_ALL=C 580f5b81e5Smrgexport LC_ALL 590f5b81e5SmrgLANGUAGE=C 600f5b81e5Smrgexport LANGUAGE 610f5b81e5Smrg 620f5b81e5Smrg# We cannot yet rely on "unset" to work, but we need these variables 630f5b81e5Smrg# to be unset--not just set to an empty or harmless value--now, to 640f5b81e5Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 650f5b81e5Smrg# also avoids known problems related to "unset" and subshell syntax 660f5b81e5Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 670f5b81e5Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 680f5b81e5Smrgdo eval test \${$as_var+y} \ 690f5b81e5Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 700f5b81e5Smrgdone 710f5b81e5Smrg 720f5b81e5Smrg# Ensure that fds 0, 1, and 2 are open. 730f5b81e5Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 740f5b81e5Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 750f5b81e5Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 766600fe5bSmrg 776600fe5bSmrg# The user is always right. 780f5b81e5Smrgif ${PATH_SEPARATOR+false} :; then 796600fe5bSmrg PATH_SEPARATOR=: 806600fe5bSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 816600fe5bSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 826600fe5bSmrg PATH_SEPARATOR=';' 836600fe5bSmrg } 84a0195d5fSmrgfi 85a0195d5fSmrg 86a0195d5fSmrg 87a0195d5fSmrg# Find who we are. Look in the path if we contain no directory separator. 882ab73d9fSmrgas_myself= 896f5dd5c2Smrgcase $0 in #(( 90a0195d5fSmrg *[\\/]* ) as_myself=$0 ;; 91a0195d5fSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92a0195d5fSmrgfor as_dir in $PATH 93a0195d5fSmrgdo 94a0195d5fSmrg IFS=$as_save_IFS 950f5b81e5Smrg case $as_dir in #((( 960f5b81e5Smrg '') as_dir=./ ;; 970f5b81e5Smrg */) ;; 980f5b81e5Smrg *) as_dir=$as_dir/ ;; 990f5b81e5Smrg esac 1000f5b81e5Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 1016f5dd5c2Smrg done 102a0195d5fSmrgIFS=$as_save_IFS 103a0195d5fSmrg 104a0195d5fSmrg ;; 105a0195d5fSmrgesac 106a0195d5fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 107a0195d5fSmrg# in which case we are not to be found in the path. 108a0195d5fSmrgif test "x$as_myself" = x; then 109a0195d5fSmrg as_myself=$0 110a0195d5fSmrgfi 111a0195d5fSmrgif test ! -f "$as_myself"; then 1120f5b81e5Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1136f5dd5c2Smrg exit 1 114a0195d5fSmrgfi 115a0195d5fSmrg 1166f5dd5c2Smrg 117feee4651Smrg# Use a proper internal environment variable to ensure we don't fall 118feee4651Smrg # into an infinite loop, continuously re-executing ourselves. 119feee4651Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120feee4651Smrg _as_can_reexec=no; export _as_can_reexec; 121feee4651Smrg # We cannot yet assume a decent shell, so we have to provide a 122feee4651Smrg# neutralization value for shells without unset; and this also 123feee4651Smrg# works around shells that cannot unset nonexistent variables. 124feee4651Smrg# Preserve -v and -x to the replacement shell. 125feee4651SmrgBASH_ENV=/dev/null 126feee4651SmrgENV=/dev/null 127feee4651Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128feee4651Smrgcase $- in # (((( 129feee4651Smrg *v*x* | *x*v* ) as_opts=-vx ;; 130feee4651Smrg *v* ) as_opts=-v ;; 131feee4651Smrg *x* ) as_opts=-x ;; 132feee4651Smrg * ) as_opts= ;; 133feee4651Smrgesac 134feee4651Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135feee4651Smrg# Admittedly, this is quite paranoid, since all the known shells bail 136feee4651Smrg# out after a failed `exec'. 1370f5b81e5Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 1380f5b81e5Smrgexit 255 139feee4651Smrg fi 140feee4651Smrg # We don't want this to propagate to other subprocesses. 141feee4651Smrg { _as_can_reexec=; unset _as_can_reexec;} 1426f5dd5c2Smrgif test "x$CONFIG_SHELL" = x; then 1430f5b81e5Smrg as_bourne_compatible="as_nop=: 1440f5b81e5Smrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 1450f5b81e5Smrgthen : 1466f5dd5c2Smrg emulate sh 1476f5dd5c2Smrg NULLCMD=: 1486f5dd5c2Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1496f5dd5c2Smrg # is contrary to our usage. Disable this feature. 1506f5dd5c2Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1516f5dd5c2Smrg setopt NO_GLOB_SUBST 1520f5b81e5Smrgelse \$as_nop 1536f5dd5c2Smrg case \`(set -o) 2>/dev/null\` in #( 1546f5dd5c2Smrg *posix*) : 1556f5dd5c2Smrg set -o posix ;; #( 1566f5dd5c2Smrg *) : 1576f5dd5c2Smrg ;; 1586f5dd5c2Smrgesac 1596f5dd5c2Smrgfi 1606f5dd5c2Smrg" 1616f5dd5c2Smrg as_required="as_fn_return () { (exit \$1); } 1626f5dd5c2Smrgas_fn_success () { as_fn_return 0; } 1636f5dd5c2Smrgas_fn_failure () { as_fn_return 1; } 1646f5dd5c2Smrgas_fn_ret_success () { return 0; } 1656f5dd5c2Smrgas_fn_ret_failure () { return 1; } 1666f5dd5c2Smrg 1676f5dd5c2Smrgexitcode=0 1686f5dd5c2Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1696f5dd5c2Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1706f5dd5c2Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1716f5dd5c2Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1720f5b81e5Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 1730f5b81e5Smrgthen : 1746f5dd5c2Smrg 1750f5b81e5Smrgelse \$as_nop 1766f5dd5c2Smrg exitcode=1; echo positional parameters were not saved. 1776f5dd5c2Smrgfi 178feee4651Smrgtest x\$exitcode = x0 || exit 1 1790f5b81e5Smrgblah=\$(echo \$(echo blah)) 1800f5b81e5Smrgtest x\"\$blah\" = xblah || exit 1 181feee4651Smrgtest -x / || exit 1" 1826f5dd5c2Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1836f5dd5c2Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1846f5dd5c2Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 1856f5dd5c2Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 1866f5dd5c2Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 1870f5b81e5Smrg if (eval "$as_required") 2>/dev/null 1880f5b81e5Smrgthen : 1896f5dd5c2Smrg as_have_required=yes 1900f5b81e5Smrgelse $as_nop 1916f5dd5c2Smrg as_have_required=no 1926f5dd5c2Smrgfi 1930f5b81e5Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 1940f5b81e5Smrgthen : 1956f5dd5c2Smrg 1960f5b81e5Smrgelse $as_nop 1976f5dd5c2Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1986f5dd5c2Smrgas_found=false 1996f5dd5c2Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2006f5dd5c2Smrgdo 2016f5dd5c2Smrg IFS=$as_save_IFS 2020f5b81e5Smrg case $as_dir in #((( 2030f5b81e5Smrg '') as_dir=./ ;; 2040f5b81e5Smrg */) ;; 2050f5b81e5Smrg *) as_dir=$as_dir/ ;; 2060f5b81e5Smrg esac 2076f5dd5c2Smrg as_found=: 2086f5dd5c2Smrg case $as_dir in #( 2096f5dd5c2Smrg /*) 2106f5dd5c2Smrg for as_base in sh bash ksh sh5; do 2116f5dd5c2Smrg # Try only shells that exist, to save several forks. 2120f5b81e5Smrg as_shell=$as_dir$as_base 2136f5dd5c2Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 2140f5b81e5Smrg as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 2150f5b81e5Smrgthen : 2166f5dd5c2Smrg CONFIG_SHELL=$as_shell as_have_required=yes 2170f5b81e5Smrg if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 2180f5b81e5Smrgthen : 2196f5dd5c2Smrg break 2 2206f5dd5c2Smrgfi 2216f5dd5c2Smrgfi 2226f5dd5c2Smrg done;; 2236f5dd5c2Smrg esac 2246f5dd5c2Smrg as_found=false 2256f5dd5c2Smrgdone 2266f5dd5c2SmrgIFS=$as_save_IFS 2270f5b81e5Smrgif $as_found 2280f5b81e5Smrgthen : 2290f5b81e5Smrg 2300f5b81e5Smrgelse $as_nop 2310f5b81e5Smrg if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2320f5b81e5Smrg as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 2330f5b81e5Smrgthen : 2340f5b81e5Smrg CONFIG_SHELL=$SHELL as_have_required=yes 2350f5b81e5Smrgfi 2360f5b81e5Smrgfi 2376f5dd5c2Smrg 2386f5dd5c2Smrg 2390f5b81e5Smrg if test "x$CONFIG_SHELL" != x 2400f5b81e5Smrgthen : 241feee4651Smrg export CONFIG_SHELL 242feee4651Smrg # We cannot yet assume a decent shell, so we have to provide a 243feee4651Smrg# neutralization value for shells without unset; and this also 244feee4651Smrg# works around shells that cannot unset nonexistent variables. 245feee4651Smrg# Preserve -v and -x to the replacement shell. 246feee4651SmrgBASH_ENV=/dev/null 247feee4651SmrgENV=/dev/null 248feee4651Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249feee4651Smrgcase $- in # (((( 250feee4651Smrg *v*x* | *x*v* ) as_opts=-vx ;; 251feee4651Smrg *v* ) as_opts=-v ;; 252feee4651Smrg *x* ) as_opts=-x ;; 253feee4651Smrg * ) as_opts= ;; 254feee4651Smrgesac 255feee4651Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256feee4651Smrg# Admittedly, this is quite paranoid, since all the known shells bail 257feee4651Smrg# out after a failed `exec'. 2580f5b81e5Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259feee4651Smrgexit 255 2606f5dd5c2Smrgfi 2616f5dd5c2Smrg 2620f5b81e5Smrg if test x$as_have_required = xno 2630f5b81e5Smrgthen : 2640f5b81e5Smrg printf "%s\n" "$0: This script requires a shell more modern than all" 2650f5b81e5Smrg printf "%s\n" "$0: the shells that I found on your system." 2660f5b81e5Smrg if test ${ZSH_VERSION+y} ; then 2670f5b81e5Smrg printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2680f5b81e5Smrg printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 2696f5dd5c2Smrg else 2700f5b81e5Smrg printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 2710f5b81e5Smrg$0: https://gitlab.freedesktop.org/xorg/app/xset/-/issues 2726f5dd5c2Smrg$0: about your system, including any error possibly output 2736f5dd5c2Smrg$0: before this message. Then install a modern shell, or 2746f5dd5c2Smrg$0: manually run the script under such a shell if you do 2756f5dd5c2Smrg$0: have one." 2766f5dd5c2Smrg fi 2776f5dd5c2Smrg exit 1 2786f5dd5c2Smrgfi 2796f5dd5c2Smrgfi 2806f5dd5c2Smrgfi 2816f5dd5c2SmrgSHELL=${CONFIG_SHELL-/bin/sh} 2826f5dd5c2Smrgexport SHELL 2836f5dd5c2Smrg# Unset more variables known to interfere with behavior of common tools. 2846f5dd5c2SmrgCLICOLOR_FORCE= GREP_OPTIONS= 2856f5dd5c2Smrgunset CLICOLOR_FORCE GREP_OPTIONS 2866f5dd5c2Smrg 2876f5dd5c2Smrg## --------------------- ## 2886f5dd5c2Smrg## M4sh Shell Functions. ## 2896f5dd5c2Smrg## --------------------- ## 2906f5dd5c2Smrg# as_fn_unset VAR 2916f5dd5c2Smrg# --------------- 2926f5dd5c2Smrg# Portably unset VAR. 2936f5dd5c2Smrgas_fn_unset () 2946f5dd5c2Smrg{ 2956f5dd5c2Smrg { eval $1=; unset $1;} 2966f5dd5c2Smrg} 2976f5dd5c2Smrgas_unset=as_fn_unset 2986f5dd5c2Smrg 2990f5b81e5Smrg 3006f5dd5c2Smrg# as_fn_set_status STATUS 3016f5dd5c2Smrg# ----------------------- 3026f5dd5c2Smrg# Set $? to STATUS, without forking. 3036f5dd5c2Smrgas_fn_set_status () 3046f5dd5c2Smrg{ 3056f5dd5c2Smrg return $1 3066f5dd5c2Smrg} # as_fn_set_status 3076f5dd5c2Smrg 3086f5dd5c2Smrg# as_fn_exit STATUS 3096f5dd5c2Smrg# ----------------- 3106f5dd5c2Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 3116f5dd5c2Smrgas_fn_exit () 3126f5dd5c2Smrg{ 3136f5dd5c2Smrg set +e 3146f5dd5c2Smrg as_fn_set_status $1 3156f5dd5c2Smrg exit $1 3166f5dd5c2Smrg} # as_fn_exit 3170f5b81e5Smrg# as_fn_nop 3180f5b81e5Smrg# --------- 3190f5b81e5Smrg# Do nothing but, unlike ":", preserve the value of $?. 3200f5b81e5Smrgas_fn_nop () 3210f5b81e5Smrg{ 3220f5b81e5Smrg return $? 3230f5b81e5Smrg} 3240f5b81e5Smrgas_nop=as_fn_nop 3256f5dd5c2Smrg 3266f5dd5c2Smrg# as_fn_mkdir_p 3276f5dd5c2Smrg# ------------- 3286f5dd5c2Smrg# Create "$as_dir" as a directory, including parents if necessary. 3296f5dd5c2Smrgas_fn_mkdir_p () 3306f5dd5c2Smrg{ 3316f5dd5c2Smrg 3326f5dd5c2Smrg case $as_dir in #( 3336f5dd5c2Smrg -*) as_dir=./$as_dir;; 3346f5dd5c2Smrg esac 3356f5dd5c2Smrg test -d "$as_dir" || eval $as_mkdir_p || { 3366f5dd5c2Smrg as_dirs= 3376f5dd5c2Smrg while :; do 3386f5dd5c2Smrg case $as_dir in #( 3390f5b81e5Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3406f5dd5c2Smrg *) as_qdir=$as_dir;; 3416f5dd5c2Smrg esac 3426f5dd5c2Smrg as_dirs="'$as_qdir' $as_dirs" 3436f5dd5c2Smrg as_dir=`$as_dirname -- "$as_dir" || 3446f5dd5c2Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3456f5dd5c2Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3466f5dd5c2Smrg X"$as_dir" : 'X\(//\)$' \| \ 3476f5dd5c2Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3480f5b81e5Smrgprintf "%s\n" X"$as_dir" | 3496f5dd5c2Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3506f5dd5c2Smrg s//\1/ 3516f5dd5c2Smrg q 3526f5dd5c2Smrg } 3536f5dd5c2Smrg /^X\(\/\/\)[^/].*/{ 3546f5dd5c2Smrg s//\1/ 3556f5dd5c2Smrg q 3566f5dd5c2Smrg } 3576f5dd5c2Smrg /^X\(\/\/\)$/{ 3586f5dd5c2Smrg s//\1/ 3596f5dd5c2Smrg q 3606f5dd5c2Smrg } 3616f5dd5c2Smrg /^X\(\/\).*/{ 3626f5dd5c2Smrg s//\1/ 3636f5dd5c2Smrg q 3646f5dd5c2Smrg } 3656f5dd5c2Smrg s/.*/./; q'` 3666f5dd5c2Smrg test -d "$as_dir" && break 3676f5dd5c2Smrg done 3686f5dd5c2Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 3692ab73d9fSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3706f5dd5c2Smrg 3716f5dd5c2Smrg 3726f5dd5c2Smrg} # as_fn_mkdir_p 373feee4651Smrg 374feee4651Smrg# as_fn_executable_p FILE 375feee4651Smrg# ----------------------- 376feee4651Smrg# Test if FILE is an executable regular file. 377feee4651Smrgas_fn_executable_p () 378feee4651Smrg{ 379feee4651Smrg test -f "$1" && test -x "$1" 380feee4651Smrg} # as_fn_executable_p 3816f5dd5c2Smrg# as_fn_append VAR VALUE 3826f5dd5c2Smrg# ---------------------- 3836f5dd5c2Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3846f5dd5c2Smrg# advantage of any shell optimizations that allow amortized linear growth over 3856f5dd5c2Smrg# repeated appends, instead of the typical quadratic growth present in naive 3866f5dd5c2Smrg# implementations. 3870f5b81e5Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 3880f5b81e5Smrgthen : 3896f5dd5c2Smrg eval 'as_fn_append () 3906f5dd5c2Smrg { 3916f5dd5c2Smrg eval $1+=\$2 3926f5dd5c2Smrg }' 3930f5b81e5Smrgelse $as_nop 3946f5dd5c2Smrg as_fn_append () 3956f5dd5c2Smrg { 3966f5dd5c2Smrg eval $1=\$$1\$2 3976f5dd5c2Smrg } 3986f5dd5c2Smrgfi # as_fn_append 3996f5dd5c2Smrg 4006f5dd5c2Smrg# as_fn_arith ARG... 4016f5dd5c2Smrg# ------------------ 4026f5dd5c2Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 4036f5dd5c2Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 4046f5dd5c2Smrg# must be portable across $(()) and expr. 4050f5b81e5Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 4060f5b81e5Smrgthen : 4076f5dd5c2Smrg eval 'as_fn_arith () 4086f5dd5c2Smrg { 4096f5dd5c2Smrg as_val=$(( $* )) 4106f5dd5c2Smrg }' 4110f5b81e5Smrgelse $as_nop 4126f5dd5c2Smrg as_fn_arith () 4136f5dd5c2Smrg { 4146f5dd5c2Smrg as_val=`expr "$@" || test $? -eq 1` 4156f5dd5c2Smrg } 4166f5dd5c2Smrgfi # as_fn_arith 4176f5dd5c2Smrg 4180f5b81e5Smrg# as_fn_nop 4190f5b81e5Smrg# --------- 4200f5b81e5Smrg# Do nothing but, unlike ":", preserve the value of $?. 4210f5b81e5Smrgas_fn_nop () 4220f5b81e5Smrg{ 4230f5b81e5Smrg return $? 4240f5b81e5Smrg} 4250f5b81e5Smrgas_nop=as_fn_nop 4266f5dd5c2Smrg 4272ab73d9fSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 4282ab73d9fSmrg# ---------------------------------------- 4296f5dd5c2Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4306f5dd5c2Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4312ab73d9fSmrg# script with STATUS, using 1 if that was 0. 4326f5dd5c2Smrgas_fn_error () 4336f5dd5c2Smrg{ 4342ab73d9fSmrg as_status=$1; test $as_status -eq 0 && as_status=1 4352ab73d9fSmrg if test "$4"; then 4362ab73d9fSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4370f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4386f5dd5c2Smrg fi 4390f5b81e5Smrg printf "%s\n" "$as_me: error: $2" >&2 4406f5dd5c2Smrg as_fn_exit $as_status 4416f5dd5c2Smrg} # as_fn_error 4426f5dd5c2Smrg 443a0195d5fSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 444a0195d5fSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 445a0195d5fSmrg as_expr=expr 446a0195d5fSmrgelse 447a0195d5fSmrg as_expr=false 448a0195d5fSmrgfi 449a0195d5fSmrg 450a0195d5fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451a0195d5fSmrg as_basename=basename 452a0195d5fSmrgelse 453a0195d5fSmrg as_basename=false 454a0195d5fSmrgfi 455a0195d5fSmrg 4566f5dd5c2Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4576f5dd5c2Smrg as_dirname=dirname 4586f5dd5c2Smrgelse 4596f5dd5c2Smrg as_dirname=false 4606f5dd5c2Smrgfi 461a0195d5fSmrg 462a0195d5fSmrgas_me=`$as_basename -- "$0" || 463a0195d5fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464a0195d5fSmrg X"$0" : 'X\(//\)$' \| \ 465a0195d5fSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 4660f5b81e5Smrgprintf "%s\n" X/"$0" | 467a0195d5fSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 468a0195d5fSmrg s//\1/ 469a0195d5fSmrg q 470a0195d5fSmrg } 471a0195d5fSmrg /^X\/\(\/\/\)$/{ 472a0195d5fSmrg s//\1/ 473a0195d5fSmrg q 474a0195d5fSmrg } 475a0195d5fSmrg /^X\/\(\/\).*/{ 476a0195d5fSmrg s//\1/ 477a0195d5fSmrg q 478a0195d5fSmrg } 479a0195d5fSmrg s/.*/./; q'` 480a0195d5fSmrg 4816f5dd5c2Smrg# Avoid depending upon Character Ranges. 4826f5dd5c2Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4836f5dd5c2Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4846f5dd5c2Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4856f5dd5c2Smrgas_cr_digits='0123456789' 4866f5dd5c2Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 487a0195d5fSmrg 488a0195d5fSmrg 4896f5dd5c2Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4906f5dd5c2Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4916f5dd5c2Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4926f5dd5c2Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4936f5dd5c2Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4946f5dd5c2Smrg sed -n ' 4956f5dd5c2Smrg p 4966f5dd5c2Smrg /[$]LINENO/= 4976f5dd5c2Smrg ' <$as_myself | 4986f5dd5c2Smrg sed ' 4996f5dd5c2Smrg s/[$]LINENO.*/&-/ 5006f5dd5c2Smrg t lineno 5016f5dd5c2Smrg b 5026f5dd5c2Smrg :lineno 5036f5dd5c2Smrg N 5046f5dd5c2Smrg :loop 5056f5dd5c2Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 5066f5dd5c2Smrg t loop 5076f5dd5c2Smrg s/-\n.*// 5086f5dd5c2Smrg ' >$as_me.lineno && 5096f5dd5c2Smrg chmod +x "$as_me.lineno" || 5100f5b81e5Smrg { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511a0195d5fSmrg 512feee4651Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513feee4651Smrg # already done that, so ensure we don't try to do so again and fall 514feee4651Smrg # in an infinite loop. This has already happened in practice. 515feee4651Smrg _as_can_reexec=no; export _as_can_reexec 5166f5dd5c2Smrg # Don't try to exec as it changes $[0], causing all sort of problems 5176f5dd5c2Smrg # (the dirname of $[0] is not the place where we might find the 5186f5dd5c2Smrg # original and so on. Autoconf is especially sensitive to this). 5196f5dd5c2Smrg . "./$as_me.lineno" 5206f5dd5c2Smrg # Exit status is that of the last command. 5216f5dd5c2Smrg exit 522a0195d5fSmrg} 523a0195d5fSmrg 5240f5b81e5Smrg 5250f5b81e5Smrg# Determine whether it's possible to make 'echo' print without a newline. 5260f5b81e5Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 5270f5b81e5Smrg# for compatibility with existing Makefiles. 5286f5dd5c2SmrgECHO_C= ECHO_N= ECHO_T= 5296f5dd5c2Smrgcase `echo -n x` in #((((( 5306f5dd5c2Smrg-n*) 5316f5dd5c2Smrg case `echo 'xy\c'` in 5326f5dd5c2Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5336f5dd5c2Smrg xy) ECHO_C='\c';; 5346f5dd5c2Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5356f5dd5c2Smrg ECHO_T=' ';; 5366f5dd5c2Smrg esac;; 5376f5dd5c2Smrg*) 5386f5dd5c2Smrg ECHO_N='-n';; 5396f5dd5c2Smrgesac 540a0195d5fSmrg 5410f5b81e5Smrg# For backward compatibility with old third-party macros, we provide 5420f5b81e5Smrg# the shell variables $as_echo and $as_echo_n. New code should use 5430f5b81e5Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 5440f5b81e5Smrgas_echo='printf %s\n' 5450f5b81e5Smrgas_echo_n='printf %s' 5460f5b81e5Smrg 5470f5b81e5Smrg 5486f5dd5c2Smrgrm -f conf$$ conf$$.exe conf$$.file 5496f5dd5c2Smrgif test -d conf$$.dir; then 5506f5dd5c2Smrg rm -f conf$$.dir/conf$$.file 5516f5dd5c2Smrgelse 5526f5dd5c2Smrg rm -f conf$$.dir 5536f5dd5c2Smrg mkdir conf$$.dir 2>/dev/null 554a0195d5fSmrgfi 5556f5dd5c2Smrgif (echo >conf$$.file) 2>/dev/null; then 5566f5dd5c2Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5576f5dd5c2Smrg as_ln_s='ln -s' 5586f5dd5c2Smrg # ... but there are two gotchas: 5596f5dd5c2Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5606f5dd5c2Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561feee4651Smrg # In both cases, we have to default to `cp -pR'. 5626f5dd5c2Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563feee4651Smrg as_ln_s='cp -pR' 5646f5dd5c2Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 5656f5dd5c2Smrg as_ln_s=ln 5666f5dd5c2Smrg else 567feee4651Smrg as_ln_s='cp -pR' 5686f5dd5c2Smrg fi 569a0195d5fSmrgelse 570feee4651Smrg as_ln_s='cp -pR' 571a0195d5fSmrgfi 5726f5dd5c2Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5736f5dd5c2Smrgrmdir conf$$.dir 2>/dev/null 574a0195d5fSmrg 5756f5dd5c2Smrgif mkdir -p . 2>/dev/null; then 5766f5dd5c2Smrg as_mkdir_p='mkdir -p "$as_dir"' 5776f5dd5c2Smrgelse 5786f5dd5c2Smrg test -d ./-p && rmdir ./-p 5796f5dd5c2Smrg as_mkdir_p=false 580a0195d5fSmrgfi 581a0195d5fSmrg 582feee4651Smrgas_test_x='test -x' 583feee4651Smrgas_executable_p=as_fn_executable_p 584a0195d5fSmrg 5856f5dd5c2Smrg# Sed expression to map a string onto a valid CPP name. 5866f5dd5c2Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587a0195d5fSmrg 5886f5dd5c2Smrg# Sed expression to map a string onto a valid variable name. 5896f5dd5c2Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590a0195d5fSmrg 591a0195d5fSmrg 5926f5dd5c2Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 5936f5dd5c2Smrgexec 6>&1 594a0195d5fSmrg 595a0195d5fSmrg# Name of the host. 5962ab73d9fSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 597a0195d5fSmrg# so uname gets run too. 598a0195d5fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 599a0195d5fSmrg 600a0195d5fSmrg# 601a0195d5fSmrg# Initializations. 602a0195d5fSmrg# 603a0195d5fSmrgac_default_prefix=/usr/local 604a0195d5fSmrgac_clean_files= 605a0195d5fSmrgac_config_libobj_dir=. 606a0195d5fSmrgLIBOBJS= 607a0195d5fSmrgcross_compiling=no 608a0195d5fSmrgsubdirs= 609a0195d5fSmrgMFLAGS= 610a0195d5fSmrgMAKEFLAGS= 611a0195d5fSmrg 612a0195d5fSmrg# Identity of this package. 613a0195d5fSmrgPACKAGE_NAME='xset' 614a0195d5fSmrgPACKAGE_TARNAME='xset' 6150f5b81e5SmrgPACKAGE_VERSION='1.2.5' 6160f5b81e5SmrgPACKAGE_STRING='xset 1.2.5' 6170f5b81e5SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xset/-/issues' 6186f5dd5c2SmrgPACKAGE_URL='' 619a0195d5fSmrg 6202ab73d9fSmrgac_unique_file="Makefile.am" 6216600fe5bSmrg# Factoring default headers for most tests. 6226600fe5bSmrgac_includes_default="\ 6230f5b81e5Smrg#include <stddef.h> 6240f5b81e5Smrg#ifdef HAVE_STDIO_H 6250f5b81e5Smrg# include <stdio.h> 6266600fe5bSmrg#endif 6270f5b81e5Smrg#ifdef HAVE_STDLIB_H 6286600fe5bSmrg# include <stdlib.h> 6296600fe5bSmrg#endif 6306600fe5bSmrg#ifdef HAVE_STRING_H 6316600fe5bSmrg# include <string.h> 6326600fe5bSmrg#endif 6336600fe5bSmrg#ifdef HAVE_INTTYPES_H 6346600fe5bSmrg# include <inttypes.h> 6356600fe5bSmrg#endif 6366600fe5bSmrg#ifdef HAVE_STDINT_H 6376600fe5bSmrg# include <stdint.h> 6386600fe5bSmrg#endif 6390f5b81e5Smrg#ifdef HAVE_STRINGS_H 6400f5b81e5Smrg# include <strings.h> 6410f5b81e5Smrg#endif 6420f5b81e5Smrg#ifdef HAVE_SYS_TYPES_H 6430f5b81e5Smrg# include <sys/types.h> 6440f5b81e5Smrg#endif 6450f5b81e5Smrg#ifdef HAVE_SYS_STAT_H 6460f5b81e5Smrg# include <sys/stat.h> 6470f5b81e5Smrg#endif 6486600fe5bSmrg#ifdef HAVE_UNISTD_H 6496600fe5bSmrg# include <unistd.h> 6506600fe5bSmrg#endif" 6516600fe5bSmrg 6520f5b81e5Smrgac_header_c_list= 6536600fe5bSmrgac_subst_vars='am__EXEEXT_FALSE 6546600fe5bSmrgam__EXEEXT_TRUE 6556600fe5bSmrgLTLIBOBJS 6566600fe5bSmrgLIBOBJS 6576600fe5bSmrgSET_FONTCACHE_LIBS 6586600fe5bSmrgSET_FONTCACHE_CFLAGS 6596600fe5bSmrgSET_XF86MISC_LIBS 6606600fe5bSmrgSET_XF86MISC_CFLAGS 6616600fe5bSmrgSET_XKB_LIBS 6626600fe5bSmrgSET_XKB_CFLAGS 6636600fe5bSmrgSET_XEXT_LIBS 6646600fe5bSmrgSET_XEXT_CFLAGS 6656600fe5bSmrgSET_X11_LIBS 6666600fe5bSmrgSET_X11_CFLAGS 6676600fe5bSmrgXSET_LIBS 6686600fe5bSmrgXSET_CFLAGS 6696f5dd5c2SmrgMAN_SUBSTS 6706f5dd5c2SmrgXORG_MAN_PAGE 671a0195d5fSmrgADMIN_MAN_DIR 6726600fe5bSmrgDRIVER_MAN_DIR 6736600fe5bSmrgMISC_MAN_DIR 6746600fe5bSmrgFILE_MAN_DIR 6756600fe5bSmrgLIB_MAN_DIR 6766600fe5bSmrgAPP_MAN_DIR 6776600fe5bSmrgADMIN_MAN_SUFFIX 6786600fe5bSmrgDRIVER_MAN_SUFFIX 6796600fe5bSmrgMISC_MAN_SUFFIX 6806600fe5bSmrgFILE_MAN_SUFFIX 6816600fe5bSmrgLIB_MAN_SUFFIX 6826600fe5bSmrgAPP_MAN_SUFFIX 6836f5dd5c2SmrgSED 6846600fe5bSmrghost_os 6856600fe5bSmrghost_vendor 6866600fe5bSmrghost_cpu 6876600fe5bSmrghost 6886600fe5bSmrgbuild_os 6896600fe5bSmrgbuild_vendor 6906600fe5bSmrgbuild_cpu 6916600fe5bSmrgbuild 6926f5dd5c2SmrgINSTALL_CMD 693feee4651SmrgPKG_CONFIG_LIBDIR 694feee4651SmrgPKG_CONFIG_PATH 6956f5dd5c2SmrgPKG_CONFIG 6966600fe5bSmrgCHANGELOG_CMD 697ff6cf368SmrgSTRICT_CFLAGS 6986600fe5bSmrgCWARNFLAGS 69940a76396SmrgBASE_CFLAGS 70040a76396SmrgAM_BACKSLASH 70140a76396SmrgAM_DEFAULT_VERBOSITY 70240a76396SmrgAM_DEFAULT_V 70340a76396SmrgAM_V 7040f5b81e5SmrgCSCOPE 7050f5b81e5SmrgETAGS 7060f5b81e5SmrgCTAGS 7076600fe5bSmrgam__fastdepCC_FALSE 7086600fe5bSmrgam__fastdepCC_TRUE 7096600fe5bSmrgCCDEPMODE 71040a76396Smrgam__nodep 7116600fe5bSmrgAMDEPBACKSLASH 7126600fe5bSmrgAMDEP_FALSE 7136600fe5bSmrgAMDEP_TRUE 7146600fe5bSmrgam__include 7156600fe5bSmrgDEPDIR 7166600fe5bSmrgam__untar 7176600fe5bSmrgam__tar 7186600fe5bSmrgAMTAR 7196600fe5bSmrgam__leading_dot 7206600fe5bSmrgSET_MAKE 7216600fe5bSmrgAWK 7226600fe5bSmrgmkdir_p 7236600fe5bSmrgMKDIR_P 7246600fe5bSmrgINSTALL_STRIP_PROGRAM 7256600fe5bSmrgSTRIP 7266600fe5bSmrginstall_sh 7276600fe5bSmrgMAKEINFO 7286600fe5bSmrgAUTOHEADER 7296600fe5bSmrgAUTOMAKE 7306600fe5bSmrgAUTOCONF 7316600fe5bSmrgACLOCAL 7326600fe5bSmrgVERSION 7336600fe5bSmrgPACKAGE 7346600fe5bSmrgCYGPATH_W 7356600fe5bSmrgam__isrc 7366600fe5bSmrgINSTALL_DATA 7376600fe5bSmrgINSTALL_SCRIPT 7386600fe5bSmrgINSTALL_PROGRAM 73940a76396SmrgOBJEXT 74040a76396SmrgEXEEXT 74140a76396Smrgac_ct_CC 74240a76396SmrgCPPFLAGS 74340a76396SmrgLDFLAGS 74440a76396SmrgCFLAGS 74540a76396SmrgCC 7466600fe5bSmrgtarget_alias 7476600fe5bSmrghost_alias 7486600fe5bSmrgbuild_alias 7496600fe5bSmrgLIBS 7506600fe5bSmrgECHO_T 7516600fe5bSmrgECHO_N 7526600fe5bSmrgECHO_C 7536600fe5bSmrgDEFS 7546600fe5bSmrgmandir 7556600fe5bSmrglocaledir 7566600fe5bSmrglibdir 7576600fe5bSmrgpsdir 7586600fe5bSmrgpdfdir 7596600fe5bSmrgdvidir 7606600fe5bSmrghtmldir 7616600fe5bSmrginfodir 7626600fe5bSmrgdocdir 7636600fe5bSmrgoldincludedir 7646600fe5bSmrgincludedir 7650f5b81e5Smrgrunstatedir 7666600fe5bSmrglocalstatedir 7676600fe5bSmrgsharedstatedir 7686600fe5bSmrgsysconfdir 7696600fe5bSmrgdatadir 7706600fe5bSmrgdatarootdir 7716600fe5bSmrglibexecdir 7726600fe5bSmrgsbindir 7736600fe5bSmrgbindir 7746600fe5bSmrgprogram_transform_name 7756600fe5bSmrgprefix 7766600fe5bSmrgexec_prefix 7776f5dd5c2SmrgPACKAGE_URL 7786600fe5bSmrgPACKAGE_BUGREPORT 7796600fe5bSmrgPACKAGE_STRING 7806600fe5bSmrgPACKAGE_VERSION 7816600fe5bSmrgPACKAGE_TARNAME 7826600fe5bSmrgPACKAGE_NAME 7836600fe5bSmrgPATH_SEPARATOR 7840f5b81e5SmrgSHELL 7850f5b81e5Smrgam__quote' 786a0195d5fSmrgac_subst_files='' 7876600fe5bSmrgac_user_opts=' 7886600fe5bSmrgenable_option_checking 7896600fe5bSmrgenable_dependency_tracking 7906f5dd5c2Smrgenable_silent_rules 79140a76396Smrgenable_selective_werror 79240a76396Smrgenable_strict_compilation 7936f5dd5c2Smrgwith_xf86misc 7946f5dd5c2Smrgwith_fontcache 7956600fe5bSmrg' 796a0195d5fSmrg ac_precious_vars='build_alias 797a0195d5fSmrghost_alias 798a0195d5fSmrgtarget_alias 799a0195d5fSmrgCC 800a0195d5fSmrgCFLAGS 801a0195d5fSmrgLDFLAGS 802a0195d5fSmrgLIBS 803a0195d5fSmrgCPPFLAGS 804a0195d5fSmrgPKG_CONFIG 805feee4651SmrgPKG_CONFIG_PATH 806feee4651SmrgPKG_CONFIG_LIBDIR 807a0195d5fSmrgXSET_CFLAGS 808a0195d5fSmrgXSET_LIBS 809a0195d5fSmrgSET_X11_CFLAGS 810a0195d5fSmrgSET_X11_LIBS 811a0195d5fSmrgSET_XEXT_CFLAGS 812a0195d5fSmrgSET_XEXT_LIBS 813a0195d5fSmrgSET_XKB_CFLAGS 814a0195d5fSmrgSET_XKB_LIBS 815a0195d5fSmrgSET_XF86MISC_CFLAGS 816a0195d5fSmrgSET_XF86MISC_LIBS 817a0195d5fSmrgSET_FONTCACHE_CFLAGS 8186f5dd5c2SmrgSET_FONTCACHE_LIBS' 819a0195d5fSmrg 820a0195d5fSmrg 821a0195d5fSmrg# Initialize some variables set by options. 822a0195d5fSmrgac_init_help= 823a0195d5fSmrgac_init_version=false 8246600fe5bSmrgac_unrecognized_opts= 8256600fe5bSmrgac_unrecognized_sep= 826a0195d5fSmrg# The variables have the same names as the options, with 827a0195d5fSmrg# dashes changed to underlines. 828a0195d5fSmrgcache_file=/dev/null 829a0195d5fSmrgexec_prefix=NONE 830a0195d5fSmrgno_create= 831a0195d5fSmrgno_recursion= 832a0195d5fSmrgprefix=NONE 833a0195d5fSmrgprogram_prefix=NONE 834a0195d5fSmrgprogram_suffix=NONE 835a0195d5fSmrgprogram_transform_name=s,x,x, 836a0195d5fSmrgsilent= 837a0195d5fSmrgsite= 838a0195d5fSmrgsrcdir= 839a0195d5fSmrgverbose= 840a0195d5fSmrgx_includes=NONE 841a0195d5fSmrgx_libraries=NONE 842a0195d5fSmrg 843a0195d5fSmrg# Installation directory options. 844a0195d5fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 845a0195d5fSmrg# and all the variables that are supposed to be based on exec_prefix 846a0195d5fSmrg# by default will actually change. 847a0195d5fSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 848a0195d5fSmrg# (The list follows the same order as the GNU Coding Standards.) 849a0195d5fSmrgbindir='${exec_prefix}/bin' 850a0195d5fSmrgsbindir='${exec_prefix}/sbin' 851a0195d5fSmrglibexecdir='${exec_prefix}/libexec' 852a0195d5fSmrgdatarootdir='${prefix}/share' 853a0195d5fSmrgdatadir='${datarootdir}' 854a0195d5fSmrgsysconfdir='${prefix}/etc' 855a0195d5fSmrgsharedstatedir='${prefix}/com' 856a0195d5fSmrglocalstatedir='${prefix}/var' 8570f5b81e5Smrgrunstatedir='${localstatedir}/run' 858a0195d5fSmrgincludedir='${prefix}/include' 859a0195d5fSmrgoldincludedir='/usr/include' 860a0195d5fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 861a0195d5fSmrginfodir='${datarootdir}/info' 862a0195d5fSmrghtmldir='${docdir}' 863a0195d5fSmrgdvidir='${docdir}' 864a0195d5fSmrgpdfdir='${docdir}' 865a0195d5fSmrgpsdir='${docdir}' 866a0195d5fSmrglibdir='${exec_prefix}/lib' 867a0195d5fSmrglocaledir='${datarootdir}/locale' 868a0195d5fSmrgmandir='${datarootdir}/man' 869a0195d5fSmrg 870a0195d5fSmrgac_prev= 871a0195d5fSmrgac_dashdash= 872a0195d5fSmrgfor ac_option 873a0195d5fSmrgdo 874a0195d5fSmrg # If the previous option needs an argument, assign it. 875a0195d5fSmrg if test -n "$ac_prev"; then 876a0195d5fSmrg eval $ac_prev=\$ac_option 877a0195d5fSmrg ac_prev= 878a0195d5fSmrg continue 879a0195d5fSmrg fi 880a0195d5fSmrg 881a0195d5fSmrg case $ac_option in 8822ab73d9fSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8832ab73d9fSmrg *=) ac_optarg= ;; 8842ab73d9fSmrg *) ac_optarg=yes ;; 885a0195d5fSmrg esac 886a0195d5fSmrg 887a0195d5fSmrg case $ac_dashdash$ac_option in 888a0195d5fSmrg --) 889a0195d5fSmrg ac_dashdash=yes ;; 890a0195d5fSmrg 891a0195d5fSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 892a0195d5fSmrg ac_prev=bindir ;; 893a0195d5fSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 894a0195d5fSmrg bindir=$ac_optarg ;; 895a0195d5fSmrg 896a0195d5fSmrg -build | --build | --buil | --bui | --bu) 897a0195d5fSmrg ac_prev=build_alias ;; 898a0195d5fSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 899a0195d5fSmrg build_alias=$ac_optarg ;; 900a0195d5fSmrg 901a0195d5fSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 902a0195d5fSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 903a0195d5fSmrg ac_prev=cache_file ;; 904a0195d5fSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 905a0195d5fSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 906a0195d5fSmrg cache_file=$ac_optarg ;; 907a0195d5fSmrg 908a0195d5fSmrg --config-cache | -C) 909a0195d5fSmrg cache_file=config.cache ;; 910a0195d5fSmrg 911a0195d5fSmrg -datadir | --datadir | --datadi | --datad) 912a0195d5fSmrg ac_prev=datadir ;; 913a0195d5fSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 914a0195d5fSmrg datadir=$ac_optarg ;; 915a0195d5fSmrg 916a0195d5fSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 917a0195d5fSmrg | --dataroo | --dataro | --datar) 918a0195d5fSmrg ac_prev=datarootdir ;; 919a0195d5fSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 920a0195d5fSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 921a0195d5fSmrg datarootdir=$ac_optarg ;; 922a0195d5fSmrg 923a0195d5fSmrg -disable-* | --disable-*) 9246600fe5bSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 925a0195d5fSmrg # Reject names that are not valid shell variable names. 9266600fe5bSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9270f5b81e5Smrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 9286600fe5bSmrg ac_useropt_orig=$ac_useropt 9290f5b81e5Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9306600fe5bSmrg case $ac_user_opts in 9316600fe5bSmrg *" 9326600fe5bSmrg"enable_$ac_useropt" 9336600fe5bSmrg"*) ;; 9346600fe5bSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 9356600fe5bSmrg ac_unrecognized_sep=', ';; 9366600fe5bSmrg esac 9376600fe5bSmrg eval enable_$ac_useropt=no ;; 938a0195d5fSmrg 939a0195d5fSmrg -docdir | --docdir | --docdi | --doc | --do) 940a0195d5fSmrg ac_prev=docdir ;; 941a0195d5fSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 942a0195d5fSmrg docdir=$ac_optarg ;; 943a0195d5fSmrg 944a0195d5fSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 945a0195d5fSmrg ac_prev=dvidir ;; 946a0195d5fSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 947a0195d5fSmrg dvidir=$ac_optarg ;; 948a0195d5fSmrg 949a0195d5fSmrg -enable-* | --enable-*) 9506600fe5bSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 951a0195d5fSmrg # Reject names that are not valid shell variable names. 9526600fe5bSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9530f5b81e5Smrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 9546600fe5bSmrg ac_useropt_orig=$ac_useropt 9550f5b81e5Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9566600fe5bSmrg case $ac_user_opts in 9576600fe5bSmrg *" 9586600fe5bSmrg"enable_$ac_useropt" 9596600fe5bSmrg"*) ;; 9606600fe5bSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 9616600fe5bSmrg ac_unrecognized_sep=', ';; 9626600fe5bSmrg esac 9636600fe5bSmrg eval enable_$ac_useropt=\$ac_optarg ;; 964a0195d5fSmrg 965a0195d5fSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 966a0195d5fSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 967a0195d5fSmrg | --exec | --exe | --ex) 968a0195d5fSmrg ac_prev=exec_prefix ;; 969a0195d5fSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 970a0195d5fSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 971a0195d5fSmrg | --exec=* | --exe=* | --ex=*) 972a0195d5fSmrg exec_prefix=$ac_optarg ;; 973a0195d5fSmrg 974a0195d5fSmrg -gas | --gas | --ga | --g) 975a0195d5fSmrg # Obsolete; use --with-gas. 976a0195d5fSmrg with_gas=yes ;; 977a0195d5fSmrg 978a0195d5fSmrg -help | --help | --hel | --he | -h) 979a0195d5fSmrg ac_init_help=long ;; 980a0195d5fSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 981a0195d5fSmrg ac_init_help=recursive ;; 982a0195d5fSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 983a0195d5fSmrg ac_init_help=short ;; 984a0195d5fSmrg 985a0195d5fSmrg -host | --host | --hos | --ho) 986a0195d5fSmrg ac_prev=host_alias ;; 987a0195d5fSmrg -host=* | --host=* | --hos=* | --ho=*) 988a0195d5fSmrg host_alias=$ac_optarg ;; 989a0195d5fSmrg 990a0195d5fSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 991a0195d5fSmrg ac_prev=htmldir ;; 992a0195d5fSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 993a0195d5fSmrg | --ht=*) 994a0195d5fSmrg htmldir=$ac_optarg ;; 995a0195d5fSmrg 996a0195d5fSmrg -includedir | --includedir | --includedi | --included | --include \ 997a0195d5fSmrg | --includ | --inclu | --incl | --inc) 998a0195d5fSmrg ac_prev=includedir ;; 999a0195d5fSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1000a0195d5fSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 1001a0195d5fSmrg includedir=$ac_optarg ;; 1002a0195d5fSmrg 1003a0195d5fSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 1004a0195d5fSmrg ac_prev=infodir ;; 1005a0195d5fSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1006a0195d5fSmrg infodir=$ac_optarg ;; 1007a0195d5fSmrg 1008a0195d5fSmrg -libdir | --libdir | --libdi | --libd) 1009a0195d5fSmrg ac_prev=libdir ;; 1010a0195d5fSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 1011a0195d5fSmrg libdir=$ac_optarg ;; 1012a0195d5fSmrg 1013a0195d5fSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1014a0195d5fSmrg | --libexe | --libex | --libe) 1015a0195d5fSmrg ac_prev=libexecdir ;; 1016a0195d5fSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1017a0195d5fSmrg | --libexe=* | --libex=* | --libe=*) 1018a0195d5fSmrg libexecdir=$ac_optarg ;; 1019a0195d5fSmrg 1020a0195d5fSmrg -localedir | --localedir | --localedi | --localed | --locale) 1021a0195d5fSmrg ac_prev=localedir ;; 1022a0195d5fSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1023a0195d5fSmrg localedir=$ac_optarg ;; 1024a0195d5fSmrg 1025a0195d5fSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 1026a0195d5fSmrg | --localstate | --localstat | --localsta | --localst | --locals) 1027a0195d5fSmrg ac_prev=localstatedir ;; 1028a0195d5fSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1029a0195d5fSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1030a0195d5fSmrg localstatedir=$ac_optarg ;; 1031a0195d5fSmrg 1032a0195d5fSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1033a0195d5fSmrg ac_prev=mandir ;; 1034a0195d5fSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1035a0195d5fSmrg mandir=$ac_optarg ;; 1036a0195d5fSmrg 1037a0195d5fSmrg -nfp | --nfp | --nf) 1038a0195d5fSmrg # Obsolete; use --without-fp. 1039a0195d5fSmrg with_fp=no ;; 1040a0195d5fSmrg 1041a0195d5fSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1042a0195d5fSmrg | --no-cr | --no-c | -n) 1043a0195d5fSmrg no_create=yes ;; 1044a0195d5fSmrg 1045a0195d5fSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1046a0195d5fSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1047a0195d5fSmrg no_recursion=yes ;; 1048a0195d5fSmrg 1049a0195d5fSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1050a0195d5fSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1051a0195d5fSmrg | --oldin | --oldi | --old | --ol | --o) 1052a0195d5fSmrg ac_prev=oldincludedir ;; 1053a0195d5fSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1054a0195d5fSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1055a0195d5fSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1056a0195d5fSmrg oldincludedir=$ac_optarg ;; 1057a0195d5fSmrg 1058a0195d5fSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1059a0195d5fSmrg ac_prev=prefix ;; 1060a0195d5fSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1061a0195d5fSmrg prefix=$ac_optarg ;; 1062a0195d5fSmrg 1063a0195d5fSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1064a0195d5fSmrg | --program-pre | --program-pr | --program-p) 1065a0195d5fSmrg ac_prev=program_prefix ;; 1066a0195d5fSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1067a0195d5fSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1068a0195d5fSmrg program_prefix=$ac_optarg ;; 1069a0195d5fSmrg 1070a0195d5fSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1071a0195d5fSmrg | --program-suf | --program-su | --program-s) 1072a0195d5fSmrg ac_prev=program_suffix ;; 1073a0195d5fSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1074a0195d5fSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1075a0195d5fSmrg program_suffix=$ac_optarg ;; 1076a0195d5fSmrg 1077a0195d5fSmrg -program-transform-name | --program-transform-name \ 1078a0195d5fSmrg | --program-transform-nam | --program-transform-na \ 1079a0195d5fSmrg | --program-transform-n | --program-transform- \ 1080a0195d5fSmrg | --program-transform | --program-transfor \ 1081a0195d5fSmrg | --program-transfo | --program-transf \ 1082a0195d5fSmrg | --program-trans | --program-tran \ 1083a0195d5fSmrg | --progr-tra | --program-tr | --program-t) 1084a0195d5fSmrg ac_prev=program_transform_name ;; 1085a0195d5fSmrg -program-transform-name=* | --program-transform-name=* \ 1086a0195d5fSmrg | --program-transform-nam=* | --program-transform-na=* \ 1087a0195d5fSmrg | --program-transform-n=* | --program-transform-=* \ 1088a0195d5fSmrg | --program-transform=* | --program-transfor=* \ 1089a0195d5fSmrg | --program-transfo=* | --program-transf=* \ 1090a0195d5fSmrg | --program-trans=* | --program-tran=* \ 1091a0195d5fSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 1092a0195d5fSmrg program_transform_name=$ac_optarg ;; 1093a0195d5fSmrg 1094a0195d5fSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1095a0195d5fSmrg ac_prev=pdfdir ;; 1096a0195d5fSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1097a0195d5fSmrg pdfdir=$ac_optarg ;; 1098a0195d5fSmrg 1099a0195d5fSmrg -psdir | --psdir | --psdi | --psd | --ps) 1100a0195d5fSmrg ac_prev=psdir ;; 1101a0195d5fSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1102a0195d5fSmrg psdir=$ac_optarg ;; 1103a0195d5fSmrg 1104a0195d5fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1105a0195d5fSmrg | -silent | --silent | --silen | --sile | --sil) 1106a0195d5fSmrg silent=yes ;; 1107a0195d5fSmrg 11080f5b81e5Smrg -runstatedir | --runstatedir | --runstatedi | --runstated \ 11090f5b81e5Smrg | --runstate | --runstat | --runsta | --runst | --runs \ 11100f5b81e5Smrg | --run | --ru | --r) 11110f5b81e5Smrg ac_prev=runstatedir ;; 11120f5b81e5Smrg -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 11130f5b81e5Smrg | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 11140f5b81e5Smrg | --run=* | --ru=* | --r=*) 11150f5b81e5Smrg runstatedir=$ac_optarg ;; 11160f5b81e5Smrg 1117a0195d5fSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1118a0195d5fSmrg ac_prev=sbindir ;; 1119a0195d5fSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1120a0195d5fSmrg | --sbi=* | --sb=*) 1121a0195d5fSmrg sbindir=$ac_optarg ;; 1122a0195d5fSmrg 1123a0195d5fSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1124a0195d5fSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1125a0195d5fSmrg | --sharedst | --shareds | --shared | --share | --shar \ 1126a0195d5fSmrg | --sha | --sh) 1127a0195d5fSmrg ac_prev=sharedstatedir ;; 1128a0195d5fSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1129a0195d5fSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1130a0195d5fSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1131a0195d5fSmrg | --sha=* | --sh=*) 1132a0195d5fSmrg sharedstatedir=$ac_optarg ;; 1133a0195d5fSmrg 1134a0195d5fSmrg -site | --site | --sit) 1135a0195d5fSmrg ac_prev=site ;; 1136a0195d5fSmrg -site=* | --site=* | --sit=*) 1137a0195d5fSmrg site=$ac_optarg ;; 1138a0195d5fSmrg 1139a0195d5fSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1140a0195d5fSmrg ac_prev=srcdir ;; 1141a0195d5fSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1142a0195d5fSmrg srcdir=$ac_optarg ;; 1143a0195d5fSmrg 1144a0195d5fSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1145a0195d5fSmrg | --syscon | --sysco | --sysc | --sys | --sy) 1146a0195d5fSmrg ac_prev=sysconfdir ;; 1147a0195d5fSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1148a0195d5fSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1149a0195d5fSmrg sysconfdir=$ac_optarg ;; 1150a0195d5fSmrg 1151a0195d5fSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 1152a0195d5fSmrg ac_prev=target_alias ;; 1153a0195d5fSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1154a0195d5fSmrg target_alias=$ac_optarg ;; 1155a0195d5fSmrg 1156a0195d5fSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1157a0195d5fSmrg verbose=yes ;; 1158a0195d5fSmrg 1159a0195d5fSmrg -version | --version | --versio | --versi | --vers | -V) 1160a0195d5fSmrg ac_init_version=: ;; 1161a0195d5fSmrg 1162a0195d5fSmrg -with-* | --with-*) 11636600fe5bSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1164a0195d5fSmrg # Reject names that are not valid shell variable names. 11656600fe5bSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11660f5b81e5Smrg as_fn_error $? "invalid package name: \`$ac_useropt'" 11676600fe5bSmrg ac_useropt_orig=$ac_useropt 11680f5b81e5Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11696600fe5bSmrg case $ac_user_opts in 11706600fe5bSmrg *" 11716600fe5bSmrg"with_$ac_useropt" 11726600fe5bSmrg"*) ;; 11736600fe5bSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 11746600fe5bSmrg ac_unrecognized_sep=', ';; 11756600fe5bSmrg esac 11766600fe5bSmrg eval with_$ac_useropt=\$ac_optarg ;; 1177a0195d5fSmrg 1178a0195d5fSmrg -without-* | --without-*) 11796600fe5bSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1180a0195d5fSmrg # Reject names that are not valid shell variable names. 11816600fe5bSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11820f5b81e5Smrg as_fn_error $? "invalid package name: \`$ac_useropt'" 11836600fe5bSmrg ac_useropt_orig=$ac_useropt 11840f5b81e5Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11856600fe5bSmrg case $ac_user_opts in 11866600fe5bSmrg *" 11876600fe5bSmrg"with_$ac_useropt" 11886600fe5bSmrg"*) ;; 11896600fe5bSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11906600fe5bSmrg ac_unrecognized_sep=', ';; 11916600fe5bSmrg esac 11926600fe5bSmrg eval with_$ac_useropt=no ;; 1193a0195d5fSmrg 1194a0195d5fSmrg --x) 1195a0195d5fSmrg # Obsolete; use --with-x. 1196a0195d5fSmrg with_x=yes ;; 1197a0195d5fSmrg 1198a0195d5fSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1199a0195d5fSmrg | --x-incl | --x-inc | --x-in | --x-i) 1200a0195d5fSmrg ac_prev=x_includes ;; 1201a0195d5fSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1202a0195d5fSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1203a0195d5fSmrg x_includes=$ac_optarg ;; 1204a0195d5fSmrg 1205a0195d5fSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1206a0195d5fSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1207a0195d5fSmrg ac_prev=x_libraries ;; 1208a0195d5fSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1209a0195d5fSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1210a0195d5fSmrg x_libraries=$ac_optarg ;; 1211a0195d5fSmrg 12122ab73d9fSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 12132ab73d9fSmrgTry \`$0 --help' for more information" 1214a0195d5fSmrg ;; 1215a0195d5fSmrg 1216a0195d5fSmrg *=*) 1217a0195d5fSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1218a0195d5fSmrg # Reject names that are not valid shell variable names. 12196f5dd5c2Smrg case $ac_envvar in #( 12206f5dd5c2Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 12212ab73d9fSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 12226f5dd5c2Smrg esac 1223a0195d5fSmrg eval $ac_envvar=\$ac_optarg 1224a0195d5fSmrg export $ac_envvar ;; 1225a0195d5fSmrg 1226a0195d5fSmrg *) 1227a0195d5fSmrg # FIXME: should be removed in autoconf 3.0. 12280f5b81e5Smrg printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1229a0195d5fSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 12300f5b81e5Smrg printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 12312ab73d9fSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1232a0195d5fSmrg ;; 1233a0195d5fSmrg 1234a0195d5fSmrg esac 1235a0195d5fSmrgdone 1236a0195d5fSmrg 1237a0195d5fSmrgif test -n "$ac_prev"; then 1238a0195d5fSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 12392ab73d9fSmrg as_fn_error $? "missing argument to $ac_option" 1240a0195d5fSmrgfi 1241a0195d5fSmrg 12426600fe5bSmrgif test -n "$ac_unrecognized_opts"; then 12436600fe5bSmrg case $enable_option_checking in 12446600fe5bSmrg no) ;; 12452ab73d9fSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 12460f5b81e5Smrg *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 12476600fe5bSmrg esac 12486600fe5bSmrgfi 12496600fe5bSmrg 12506600fe5bSmrg# Check all directory arguments for consistency. 12516600fe5bSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 12526600fe5bSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1253a0195d5fSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 12540f5b81e5Smrg libdir localedir mandir runstatedir 1255a0195d5fSmrgdo 1256a0195d5fSmrg eval ac_val=\$$ac_var 12576600fe5bSmrg # Remove trailing slashes. 12586600fe5bSmrg case $ac_val in 12596600fe5bSmrg */ ) 12606600fe5bSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 12616600fe5bSmrg eval $ac_var=\$ac_val;; 12626600fe5bSmrg esac 12636600fe5bSmrg # Be sure to have absolute directory names. 1264a0195d5fSmrg case $ac_val in 1265a0195d5fSmrg [\\/$]* | ?:[\\/]* ) continue;; 1266a0195d5fSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1267a0195d5fSmrg esac 12682ab73d9fSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1269a0195d5fSmrgdone 1270a0195d5fSmrg 1271a0195d5fSmrg# There might be people who depend on the old broken behavior: `$host' 1272a0195d5fSmrg# used to hold the argument of --host etc. 1273a0195d5fSmrg# FIXME: To remove some day. 1274a0195d5fSmrgbuild=$build_alias 1275a0195d5fSmrghost=$host_alias 1276a0195d5fSmrgtarget=$target_alias 1277a0195d5fSmrg 1278a0195d5fSmrg# FIXME: To remove some day. 1279a0195d5fSmrgif test "x$host_alias" != x; then 1280a0195d5fSmrg if test "x$build_alias" = x; then 1281a0195d5fSmrg cross_compiling=maybe 1282a0195d5fSmrg elif test "x$build_alias" != "x$host_alias"; then 1283a0195d5fSmrg cross_compiling=yes 1284a0195d5fSmrg fi 1285a0195d5fSmrgfi 1286a0195d5fSmrg 1287a0195d5fSmrgac_tool_prefix= 1288a0195d5fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1289a0195d5fSmrg 1290a0195d5fSmrgtest "$silent" = yes && exec 6>/dev/null 1291a0195d5fSmrg 1292a0195d5fSmrg 1293a0195d5fSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 1294a0195d5fSmrgac_ls_di=`ls -di .` && 1295a0195d5fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12962ab73d9fSmrg as_fn_error $? "working directory cannot be determined" 1297a0195d5fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12982ab73d9fSmrg as_fn_error $? "pwd does not report name of working directory" 1299a0195d5fSmrg 1300a0195d5fSmrg 1301a0195d5fSmrg# Find the source files, if location was not specified. 1302a0195d5fSmrgif test -z "$srcdir"; then 1303a0195d5fSmrg ac_srcdir_defaulted=yes 1304a0195d5fSmrg # Try the directory containing this script, then the parent directory. 13056600fe5bSmrg ac_confdir=`$as_dirname -- "$as_myself" || 13066600fe5bSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13076600fe5bSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 13086600fe5bSmrg X"$as_myself" : 'X\(//\)$' \| \ 13096600fe5bSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 13100f5b81e5Smrgprintf "%s\n" X"$as_myself" | 1311a0195d5fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1312a0195d5fSmrg s//\1/ 1313a0195d5fSmrg q 1314a0195d5fSmrg } 1315a0195d5fSmrg /^X\(\/\/\)[^/].*/{ 1316a0195d5fSmrg s//\1/ 1317a0195d5fSmrg q 1318a0195d5fSmrg } 1319a0195d5fSmrg /^X\(\/\/\)$/{ 1320a0195d5fSmrg s//\1/ 1321a0195d5fSmrg q 1322a0195d5fSmrg } 1323a0195d5fSmrg /^X\(\/\).*/{ 1324a0195d5fSmrg s//\1/ 1325a0195d5fSmrg q 1326a0195d5fSmrg } 1327a0195d5fSmrg s/.*/./; q'` 1328a0195d5fSmrg srcdir=$ac_confdir 1329a0195d5fSmrg if test ! -r "$srcdir/$ac_unique_file"; then 1330a0195d5fSmrg srcdir=.. 1331a0195d5fSmrg fi 1332a0195d5fSmrgelse 1333a0195d5fSmrg ac_srcdir_defaulted=no 1334a0195d5fSmrgfi 1335a0195d5fSmrgif test ! -r "$srcdir/$ac_unique_file"; then 1336a0195d5fSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 13372ab73d9fSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1338a0195d5fSmrgfi 1339a0195d5fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1340a0195d5fSmrgac_abs_confdir=`( 13412ab73d9fSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1342a0195d5fSmrg pwd)` 1343a0195d5fSmrg# When building in place, set srcdir=. 1344a0195d5fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1345a0195d5fSmrg srcdir=. 1346a0195d5fSmrgfi 1347a0195d5fSmrg# Remove unnecessary trailing slashes from srcdir. 1348a0195d5fSmrg# Double slashes in file names in object file debugging info 1349a0195d5fSmrg# mess up M-x gdb in Emacs. 1350a0195d5fSmrgcase $srcdir in 1351a0195d5fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1352a0195d5fSmrgesac 1353a0195d5fSmrgfor ac_var in $ac_precious_vars; do 1354a0195d5fSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1355a0195d5fSmrg eval ac_env_${ac_var}_value=\$${ac_var} 1356a0195d5fSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1357a0195d5fSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1358a0195d5fSmrgdone 1359a0195d5fSmrg 1360a0195d5fSmrg# 1361a0195d5fSmrg# Report the --help message. 1362a0195d5fSmrg# 1363a0195d5fSmrgif test "$ac_init_help" = "long"; then 1364a0195d5fSmrg # Omit some internal or obsolete options to make the list less imposing. 1365a0195d5fSmrg # This message is too long to be a string in the A/UX 3.1 sh. 1366a0195d5fSmrg cat <<_ACEOF 13670f5b81e5Smrg\`configure' configures xset 1.2.5 to adapt to many kinds of systems. 1368a0195d5fSmrg 1369a0195d5fSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1370a0195d5fSmrg 1371a0195d5fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1372a0195d5fSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1373a0195d5fSmrg 1374a0195d5fSmrgDefaults for the options are specified in brackets. 1375a0195d5fSmrg 1376a0195d5fSmrgConfiguration: 1377a0195d5fSmrg -h, --help display this help and exit 1378a0195d5fSmrg --help=short display options specific to this package 1379a0195d5fSmrg --help=recursive display the short help of all the included packages 1380a0195d5fSmrg -V, --version display version information and exit 13812ab73d9fSmrg -q, --quiet, --silent do not print \`checking ...' messages 1382a0195d5fSmrg --cache-file=FILE cache test results in FILE [disabled] 1383a0195d5fSmrg -C, --config-cache alias for \`--cache-file=config.cache' 1384a0195d5fSmrg -n, --no-create do not create output files 1385a0195d5fSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1386a0195d5fSmrg 1387a0195d5fSmrgInstallation directories: 1388a0195d5fSmrg --prefix=PREFIX install architecture-independent files in PREFIX 13896600fe5bSmrg [$ac_default_prefix] 1390a0195d5fSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13916600fe5bSmrg [PREFIX] 1392a0195d5fSmrg 1393a0195d5fSmrgBy default, \`make install' will install all the files in 1394a0195d5fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1395a0195d5fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1396a0195d5fSmrgfor instance \`--prefix=\$HOME'. 1397a0195d5fSmrg 1398a0195d5fSmrgFor better control, use the options below. 1399a0195d5fSmrg 1400a0195d5fSmrgFine tuning of the installation directories: 14016600fe5bSmrg --bindir=DIR user executables [EPREFIX/bin] 14026600fe5bSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 14036600fe5bSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 14046600fe5bSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 14056600fe5bSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 14066600fe5bSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 14070f5b81e5Smrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 14086600fe5bSmrg --libdir=DIR object code libraries [EPREFIX/lib] 14096600fe5bSmrg --includedir=DIR C header files [PREFIX/include] 14106600fe5bSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 14116600fe5bSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 14126600fe5bSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 14136600fe5bSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 14146600fe5bSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 14156600fe5bSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 14166600fe5bSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/xset] 14176600fe5bSmrg --htmldir=DIR html documentation [DOCDIR] 14186600fe5bSmrg --dvidir=DIR dvi documentation [DOCDIR] 14196600fe5bSmrg --pdfdir=DIR pdf documentation [DOCDIR] 14206600fe5bSmrg --psdir=DIR ps documentation [DOCDIR] 1421a0195d5fSmrg_ACEOF 1422a0195d5fSmrg 1423a0195d5fSmrg cat <<\_ACEOF 1424a0195d5fSmrg 1425a0195d5fSmrgProgram names: 1426a0195d5fSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 1427a0195d5fSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 1428a0195d5fSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1429a0195d5fSmrg 1430a0195d5fSmrgSystem types: 1431a0195d5fSmrg --build=BUILD configure for building on BUILD [guessed] 1432a0195d5fSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1433a0195d5fSmrg_ACEOF 1434a0195d5fSmrgfi 1435a0195d5fSmrg 1436a0195d5fSmrgif test -n "$ac_init_help"; then 1437a0195d5fSmrg case $ac_init_help in 14380f5b81e5Smrg short | recursive ) echo "Configuration of xset 1.2.5:";; 1439a0195d5fSmrg esac 1440a0195d5fSmrg cat <<\_ACEOF 1441a0195d5fSmrg 1442a0195d5fSmrgOptional Features: 14436600fe5bSmrg --disable-option-checking ignore unrecognized --enable/--with options 1444a0195d5fSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1445a0195d5fSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 144640a76396Smrg --enable-dependency-tracking 144740a76396Smrg do not reject slow dependency extractors 144840a76396Smrg --disable-dependency-tracking 144940a76396Smrg speeds up one-time build 145040a76396Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 145140a76396Smrg --disable-silent-rules verbose build output (undo: "make V=0") 145240a76396Smrg --disable-selective-werror 145340a76396Smrg Turn off selective compiler errors. (default: 145440a76396Smrg enabled) 14556600fe5bSmrg --enable-strict-compilation 14566600fe5bSmrg Enable all warnings from compiler and make them 14576600fe5bSmrg errors (default: disabled) 1458a0195d5fSmrg 1459a0195d5fSmrgOptional Packages: 1460a0195d5fSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1461a0195d5fSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 14620f5b81e5Smrg --with-xf86misc Enable xf86misc support. 14636f5dd5c2Smrg --without-fontcache Disable fontcache support. 1464a0195d5fSmrg 1465a0195d5fSmrgSome influential environment variables: 1466a0195d5fSmrg CC C compiler command 1467a0195d5fSmrg CFLAGS C compiler flags 1468a0195d5fSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1469a0195d5fSmrg nonstandard directory <lib dir> 1470a0195d5fSmrg LIBS libraries to pass to the linker, e.g. -l<library> 14716f5dd5c2Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1472a0195d5fSmrg you have headers in a nonstandard directory <include dir> 1473a0195d5fSmrg PKG_CONFIG path to pkg-config utility 1474feee4651Smrg PKG_CONFIG_PATH 1475feee4651Smrg directories to add to pkg-config's search path 1476feee4651Smrg PKG_CONFIG_LIBDIR 1477feee4651Smrg path overriding pkg-config's built-in search path 1478a0195d5fSmrg XSET_CFLAGS C compiler flags for XSET, overriding pkg-config 1479a0195d5fSmrg XSET_LIBS linker flags for XSET, overriding pkg-config 1480a0195d5fSmrg SET_X11_CFLAGS 1481a0195d5fSmrg C compiler flags for SET_X11, overriding pkg-config 1482a0195d5fSmrg SET_X11_LIBS 1483a0195d5fSmrg linker flags for SET_X11, overriding pkg-config 1484a0195d5fSmrg SET_XEXT_CFLAGS 1485a0195d5fSmrg C compiler flags for SET_XEXT, overriding pkg-config 1486a0195d5fSmrg SET_XEXT_LIBS 1487a0195d5fSmrg linker flags for SET_XEXT, overriding pkg-config 1488a0195d5fSmrg SET_XKB_CFLAGS 1489a0195d5fSmrg C compiler flags for SET_XKB, overriding pkg-config 1490a0195d5fSmrg SET_XKB_LIBS 1491a0195d5fSmrg linker flags for SET_XKB, overriding pkg-config 1492a0195d5fSmrg SET_XF86MISC_CFLAGS 1493a0195d5fSmrg C compiler flags for SET_XF86MISC, overriding pkg-config 1494a0195d5fSmrg SET_XF86MISC_LIBS 1495a0195d5fSmrg linker flags for SET_XF86MISC, overriding pkg-config 1496a0195d5fSmrg SET_FONTCACHE_CFLAGS 1497a0195d5fSmrg C compiler flags for SET_FONTCACHE, overriding pkg-config 1498a0195d5fSmrg SET_FONTCACHE_LIBS 1499a0195d5fSmrg linker flags for SET_FONTCACHE, overriding pkg-config 1500a0195d5fSmrg 1501a0195d5fSmrgUse these variables to override the choices made by `configure' or to help 1502a0195d5fSmrgit to find libraries and programs with nonstandard names/locations. 1503a0195d5fSmrg 15040f5b81e5SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xset/-/issues>. 1505a0195d5fSmrg_ACEOF 1506a0195d5fSmrgac_status=$? 1507a0195d5fSmrgfi 1508a0195d5fSmrg 1509a0195d5fSmrgif test "$ac_init_help" = "recursive"; then 1510a0195d5fSmrg # If there are subdirs, report their specific --help. 1511a0195d5fSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 15126600fe5bSmrg test -d "$ac_dir" || 15136600fe5bSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 15146600fe5bSmrg continue 1515a0195d5fSmrg ac_builddir=. 1516a0195d5fSmrg 1517a0195d5fSmrgcase "$ac_dir" in 1518a0195d5fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1519a0195d5fSmrg*) 15200f5b81e5Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1521a0195d5fSmrg # A ".." for each directory in $ac_dir_suffix. 15220f5b81e5Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1523a0195d5fSmrg case $ac_top_builddir_sub in 1524a0195d5fSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525a0195d5fSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1526a0195d5fSmrg esac ;; 1527a0195d5fSmrgesac 1528a0195d5fSmrgac_abs_top_builddir=$ac_pwd 1529a0195d5fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1530a0195d5fSmrg# for backward compatibility: 1531a0195d5fSmrgac_top_builddir=$ac_top_build_prefix 1532a0195d5fSmrg 1533a0195d5fSmrgcase $srcdir in 1534a0195d5fSmrg .) # We are building in place. 1535a0195d5fSmrg ac_srcdir=. 1536a0195d5fSmrg ac_top_srcdir=$ac_top_builddir_sub 1537a0195d5fSmrg ac_abs_top_srcdir=$ac_pwd ;; 1538a0195d5fSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 1539a0195d5fSmrg ac_srcdir=$srcdir$ac_dir_suffix; 1540a0195d5fSmrg ac_top_srcdir=$srcdir 1541a0195d5fSmrg ac_abs_top_srcdir=$srcdir ;; 1542a0195d5fSmrg *) # Relative name. 1543a0195d5fSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1544a0195d5fSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1545a0195d5fSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1546a0195d5fSmrgesac 1547a0195d5fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1548a0195d5fSmrg 1549a0195d5fSmrg cd "$ac_dir" || { ac_status=$?; continue; } 15500f5b81e5Smrg # Check for configure.gnu first; this name is used for a wrapper for 15510f5b81e5Smrg # Metaconfig's "Configure" on case-insensitive file systems. 1552a0195d5fSmrg if test -f "$ac_srcdir/configure.gnu"; then 1553a0195d5fSmrg echo && 1554a0195d5fSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1555a0195d5fSmrg elif test -f "$ac_srcdir/configure"; then 1556a0195d5fSmrg echo && 1557a0195d5fSmrg $SHELL "$ac_srcdir/configure" --help=recursive 1558a0195d5fSmrg else 15590f5b81e5Smrg printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1560a0195d5fSmrg fi || ac_status=$? 1561a0195d5fSmrg cd "$ac_pwd" || { ac_status=$?; break; } 1562a0195d5fSmrg done 1563a0195d5fSmrgfi 1564a0195d5fSmrg 1565a0195d5fSmrgtest -n "$ac_init_help" && exit $ac_status 1566a0195d5fSmrgif $ac_init_version; then 1567a0195d5fSmrg cat <<\_ACEOF 15680f5b81e5Smrgxset configure 1.2.5 15690f5b81e5Smrggenerated by GNU Autoconf 2.71 1570a0195d5fSmrg 15710f5b81e5SmrgCopyright (C) 2021 Free Software Foundation, Inc. 1572a0195d5fSmrgThis configure script is free software; the Free Software Foundation 1573a0195d5fSmrggives unlimited permission to copy, distribute and modify it. 1574a0195d5fSmrg_ACEOF 1575a0195d5fSmrg exit 1576a0195d5fSmrgfi 1577a0195d5fSmrg 15786f5dd5c2Smrg## ------------------------ ## 15796f5dd5c2Smrg## Autoconf initialization. ## 15806f5dd5c2Smrg## ------------------------ ## 1581a0195d5fSmrg 15826f5dd5c2Smrg# ac_fn_c_try_compile LINENO 15836f5dd5c2Smrg# -------------------------- 15846f5dd5c2Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 15856f5dd5c2Smrgac_fn_c_try_compile () 1586a0195d5fSmrg{ 15876f5dd5c2Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15880f5b81e5Smrg rm -f conftest.$ac_objext conftest.beam 15896f5dd5c2Smrg if { { ac_try="$ac_compile" 15906f5dd5c2Smrgcase "(($ac_try" in 15916f5dd5c2Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15926f5dd5c2Smrg *) ac_try_echo=$ac_try;; 15936f5dd5c2Smrgesac 15946f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15950f5b81e5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 15966f5dd5c2Smrg (eval "$ac_compile") 2>conftest.err 15976f5dd5c2Smrg ac_status=$? 15986f5dd5c2Smrg if test -s conftest.err; then 15996f5dd5c2Smrg grep -v '^ *+' conftest.err >conftest.er1 16006f5dd5c2Smrg cat conftest.er1 >&5 16016f5dd5c2Smrg mv -f conftest.er1 conftest.err 16026f5dd5c2Smrg fi 16030f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16046f5dd5c2Smrg test $ac_status = 0; } && { 16056f5dd5c2Smrg test -z "$ac_c_werror_flag" || 16066f5dd5c2Smrg test ! -s conftest.err 16070f5b81e5Smrg } && test -s conftest.$ac_objext 16080f5b81e5Smrgthen : 16096f5dd5c2Smrg ac_retval=0 16100f5b81e5Smrgelse $as_nop 16110f5b81e5Smrg printf "%s\n" "$as_me: failed program was:" >&5 16126f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5 1613a0195d5fSmrg 16146f5dd5c2Smrg ac_retval=1 16156f5dd5c2Smrgfi 16162ab73d9fSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16176f5dd5c2Smrg as_fn_set_status $ac_retval 1618a0195d5fSmrg 16196f5dd5c2Smrg} # ac_fn_c_try_compile 16206f5dd5c2Smrg 16216f5dd5c2Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 16226f5dd5c2Smrg# ------------------------------------------------------- 16236f5dd5c2Smrg# Tests whether HEADER exists and can be compiled using the include files in 16246f5dd5c2Smrg# INCLUDES, setting the cache variable VAR accordingly. 16256f5dd5c2Smrgac_fn_c_check_header_compile () 16266f5dd5c2Smrg{ 16276f5dd5c2Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16280f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16290f5b81e5Smrgprintf %s "checking for $2... " >&6; } 16300f5b81e5Smrgif eval test \${$3+y} 16310f5b81e5Smrgthen : 16320f5b81e5Smrg printf %s "(cached) " >&6 16330f5b81e5Smrgelse $as_nop 16346f5dd5c2Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16356f5dd5c2Smrg/* end confdefs.h. */ 16366f5dd5c2Smrg$4 16376f5dd5c2Smrg#include <$2> 16386f5dd5c2Smrg_ACEOF 16390f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 16400f5b81e5Smrgthen : 16416f5dd5c2Smrg eval "$3=yes" 16420f5b81e5Smrgelse $as_nop 16436f5dd5c2Smrg eval "$3=no" 16446f5dd5c2Smrgfi 16450f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16466f5dd5c2Smrgfi 16476f5dd5c2Smrgeval ac_res=\$$3 16480f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16490f5b81e5Smrgprintf "%s\n" "$ac_res" >&6; } 16502ab73d9fSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16516f5dd5c2Smrg 16526f5dd5c2Smrg} # ac_fn_c_check_header_compile 16536f5dd5c2Smrg 16540f5b81e5Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 16550f5b81e5Smrg# ------------------------------------------------------------------ 165640a76396Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 16570f5b81e5Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 16580f5b81e5Smrgac_fn_check_decl () 165940a76396Smrg{ 166040a76396Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 166140a76396Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 16620f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 16630f5b81e5Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; } 16640f5b81e5Smrgif eval test \${$3+y} 16650f5b81e5Smrgthen : 16660f5b81e5Smrg printf %s "(cached) " >&6 16670f5b81e5Smrgelse $as_nop 166840a76396Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 16690f5b81e5Smrg eval ac_save_FLAGS=\$$6 16700f5b81e5Smrg as_fn_append $6 " $5" 167140a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 167240a76396Smrg/* end confdefs.h. */ 167340a76396Smrg$4 167440a76396Smrgint 16750f5b81e5Smrgmain (void) 167640a76396Smrg{ 167740a76396Smrg#ifndef $as_decl_name 167840a76396Smrg#ifdef __cplusplus 167940a76396Smrg (void) $as_decl_use; 168040a76396Smrg#else 168140a76396Smrg (void) $as_decl_name; 168240a76396Smrg#endif 168340a76396Smrg#endif 168440a76396Smrg 168540a76396Smrg ; 168640a76396Smrg return 0; 168740a76396Smrg} 168840a76396Smrg_ACEOF 16890f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 16900f5b81e5Smrgthen : 169140a76396Smrg eval "$3=yes" 16920f5b81e5Smrgelse $as_nop 169340a76396Smrg eval "$3=no" 169440a76396Smrgfi 16950f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16960f5b81e5Smrg eval $6=\$ac_save_FLAGS 16970f5b81e5Smrg 169840a76396Smrgfi 169940a76396Smrgeval ac_res=\$$3 17000f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17010f5b81e5Smrgprintf "%s\n" "$ac_res" >&6; } 170240a76396Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 170340a76396Smrg 17040f5b81e5Smrg} # ac_fn_check_decl 170540a76396Smrg 17066f5dd5c2Smrg# ac_fn_c_try_link LINENO 17076f5dd5c2Smrg# ----------------------- 17086f5dd5c2Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 17096f5dd5c2Smrgac_fn_c_try_link () 17106f5dd5c2Smrg{ 17116f5dd5c2Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17120f5b81e5Smrg rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 17136f5dd5c2Smrg if { { ac_try="$ac_link" 17146f5dd5c2Smrgcase "(($ac_try" in 17156f5dd5c2Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17166f5dd5c2Smrg *) ac_try_echo=$ac_try;; 17176f5dd5c2Smrgesac 17186f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17190f5b81e5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 17206f5dd5c2Smrg (eval "$ac_link") 2>conftest.err 17216f5dd5c2Smrg ac_status=$? 17226f5dd5c2Smrg if test -s conftest.err; then 17236f5dd5c2Smrg grep -v '^ *+' conftest.err >conftest.er1 17246f5dd5c2Smrg cat conftest.er1 >&5 17256f5dd5c2Smrg mv -f conftest.er1 conftest.err 17266f5dd5c2Smrg fi 17270f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17286f5dd5c2Smrg test $ac_status = 0; } && { 17296f5dd5c2Smrg test -z "$ac_c_werror_flag" || 17306f5dd5c2Smrg test ! -s conftest.err 17316f5dd5c2Smrg } && test -s conftest$ac_exeext && { 17326f5dd5c2Smrg test "$cross_compiling" = yes || 1733feee4651Smrg test -x conftest$ac_exeext 17340f5b81e5Smrg } 17350f5b81e5Smrgthen : 17366f5dd5c2Smrg ac_retval=0 17370f5b81e5Smrgelse $as_nop 17380f5b81e5Smrg printf "%s\n" "$as_me: failed program was:" >&5 17396f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5 17406f5dd5c2Smrg 17416f5dd5c2Smrg ac_retval=1 17426f5dd5c2Smrgfi 17436f5dd5c2Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 17446f5dd5c2Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 17456f5dd5c2Smrg # interfere with the next link command; also delete a directory that is 17466f5dd5c2Smrg # left behind by Apple's compiler. We do this before executing the actions. 17476f5dd5c2Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 17482ab73d9fSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17496f5dd5c2Smrg as_fn_set_status $ac_retval 17506f5dd5c2Smrg 17516f5dd5c2Smrg} # ac_fn_c_try_link 17526f5dd5c2Smrg 17536f5dd5c2Smrg# ac_fn_c_check_func LINENO FUNC VAR 17546f5dd5c2Smrg# ---------------------------------- 17556f5dd5c2Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 17566f5dd5c2Smrgac_fn_c_check_func () 17576f5dd5c2Smrg{ 17586f5dd5c2Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17590f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17600f5b81e5Smrgprintf %s "checking for $2... " >&6; } 17610f5b81e5Smrgif eval test \${$3+y} 17620f5b81e5Smrgthen : 17630f5b81e5Smrg printf %s "(cached) " >&6 17640f5b81e5Smrgelse $as_nop 17656f5dd5c2Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17666f5dd5c2Smrg/* end confdefs.h. */ 17676f5dd5c2Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 17686f5dd5c2Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17696f5dd5c2Smrg#define $2 innocuous_$2 17706f5dd5c2Smrg 17716f5dd5c2Smrg/* System header to define __stub macros and hopefully few prototypes, 17720f5b81e5Smrg which can conflict with char $2 (); below. */ 17736f5dd5c2Smrg 17740f5b81e5Smrg#include <limits.h> 17756f5dd5c2Smrg#undef $2 17766f5dd5c2Smrg 17776f5dd5c2Smrg/* Override any GCC internal prototype to avoid an error. 17786f5dd5c2Smrg Use char because int might match the return type of a GCC 17796f5dd5c2Smrg builtin and then its argument prototype would still apply. */ 17806f5dd5c2Smrg#ifdef __cplusplus 17816f5dd5c2Smrgextern "C" 17826f5dd5c2Smrg#endif 17836f5dd5c2Smrgchar $2 (); 17846f5dd5c2Smrg/* The GNU C library defines this for functions which it implements 17856f5dd5c2Smrg to always fail with ENOSYS. Some functions are actually named 17866f5dd5c2Smrg something starting with __ and the normal name is an alias. */ 17876f5dd5c2Smrg#if defined __stub_$2 || defined __stub___$2 17886f5dd5c2Smrgchoke me 17896f5dd5c2Smrg#endif 17906f5dd5c2Smrg 17916f5dd5c2Smrgint 17920f5b81e5Smrgmain (void) 17936f5dd5c2Smrg{ 17946f5dd5c2Smrgreturn $2 (); 17956f5dd5c2Smrg ; 17966f5dd5c2Smrg return 0; 17976f5dd5c2Smrg} 17986f5dd5c2Smrg_ACEOF 17990f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 18000f5b81e5Smrgthen : 18016f5dd5c2Smrg eval "$3=yes" 18020f5b81e5Smrgelse $as_nop 18036f5dd5c2Smrg eval "$3=no" 18046f5dd5c2Smrgfi 18050f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 18066f5dd5c2Smrg conftest$ac_exeext conftest.$ac_ext 18076f5dd5c2Smrgfi 18086f5dd5c2Smrgeval ac_res=\$$3 18090f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18100f5b81e5Smrgprintf "%s\n" "$ac_res" >&6; } 18112ab73d9fSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18126f5dd5c2Smrg 18136f5dd5c2Smrg} # ac_fn_c_check_func 18140f5b81e5Smrgac_configure_args_raw= 18150f5b81e5Smrgfor ac_arg 18160f5b81e5Smrgdo 18170f5b81e5Smrg case $ac_arg in 18180f5b81e5Smrg *\'*) 18190f5b81e5Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18200f5b81e5Smrg esac 18210f5b81e5Smrg as_fn_append ac_configure_args_raw " '$ac_arg'" 18220f5b81e5Smrgdone 18230f5b81e5Smrg 18240f5b81e5Smrgcase $ac_configure_args_raw in 18250f5b81e5Smrg *$as_nl*) 18260f5b81e5Smrg ac_safe_unquote= ;; 18270f5b81e5Smrg *) 18280f5b81e5Smrg ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 18290f5b81e5Smrg ac_unsafe_a="$ac_unsafe_z#~" 18300f5b81e5Smrg ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 18310f5b81e5Smrg ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 18320f5b81e5Smrgesac 18330f5b81e5Smrg 18346f5dd5c2Smrgcat >config.log <<_ACEOF 18356f5dd5c2SmrgThis file contains any messages produced by compilers while 18366f5dd5c2Smrgrunning configure, to aid debugging if configure makes a mistake. 18376f5dd5c2Smrg 18380f5b81e5SmrgIt was created by xset $as_me 1.2.5, which was 18390f5b81e5Smrggenerated by GNU Autoconf 2.71. Invocation command line was 18406f5dd5c2Smrg 18410f5b81e5Smrg $ $0$ac_configure_args_raw 18426f5dd5c2Smrg 18436f5dd5c2Smrg_ACEOF 18446f5dd5c2Smrgexec 5>>config.log 18456f5dd5c2Smrg{ 18466f5dd5c2Smrgcat <<_ASUNAME 18476f5dd5c2Smrg## --------- ## 18486f5dd5c2Smrg## Platform. ## 18496f5dd5c2Smrg## --------- ## 18506f5dd5c2Smrg 18516f5dd5c2Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 18526f5dd5c2Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 18536f5dd5c2Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 18546f5dd5c2Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 18556f5dd5c2Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 18566f5dd5c2Smrg 18576f5dd5c2Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 18586f5dd5c2Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 18596f5dd5c2Smrg 18606f5dd5c2Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 18616f5dd5c2Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 18626f5dd5c2Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 18636f5dd5c2Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 18646f5dd5c2Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 18656f5dd5c2Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 18666f5dd5c2Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 18676f5dd5c2Smrg 18686f5dd5c2Smrg_ASUNAME 1869a0195d5fSmrg 1870a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1871a0195d5fSmrgfor as_dir in $PATH 1872a0195d5fSmrgdo 1873a0195d5fSmrg IFS=$as_save_IFS 18740f5b81e5Smrg case $as_dir in #((( 18750f5b81e5Smrg '') as_dir=./ ;; 18760f5b81e5Smrg */) ;; 18770f5b81e5Smrg *) as_dir=$as_dir/ ;; 18780f5b81e5Smrg esac 18790f5b81e5Smrg printf "%s\n" "PATH: $as_dir" 18806f5dd5c2Smrg done 1881a0195d5fSmrgIFS=$as_save_IFS 1882a0195d5fSmrg 1883a0195d5fSmrg} >&5 1884a0195d5fSmrg 1885a0195d5fSmrgcat >&5 <<_ACEOF 1886a0195d5fSmrg 1887a0195d5fSmrg 1888a0195d5fSmrg## ----------- ## 1889a0195d5fSmrg## Core tests. ## 1890a0195d5fSmrg## ----------- ## 1891a0195d5fSmrg 1892a0195d5fSmrg_ACEOF 1893a0195d5fSmrg 1894a0195d5fSmrg 1895a0195d5fSmrg# Keep a trace of the command line. 1896a0195d5fSmrg# Strip out --no-create and --no-recursion so they do not pile up. 1897a0195d5fSmrg# Strip out --silent because we don't want to record it for future runs. 1898a0195d5fSmrg# Also quote any args containing shell meta-characters. 1899a0195d5fSmrg# Make two passes to allow for proper duplicate-argument suppression. 1900a0195d5fSmrgac_configure_args= 1901a0195d5fSmrgac_configure_args0= 1902a0195d5fSmrgac_configure_args1= 1903a0195d5fSmrgac_must_keep_next=false 1904a0195d5fSmrgfor ac_pass in 1 2 1905a0195d5fSmrgdo 1906a0195d5fSmrg for ac_arg 1907a0195d5fSmrg do 1908a0195d5fSmrg case $ac_arg in 1909a0195d5fSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1910a0195d5fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1911a0195d5fSmrg | -silent | --silent | --silen | --sile | --sil) 1912a0195d5fSmrg continue ;; 1913a0195d5fSmrg *\'*) 19140f5b81e5Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1915a0195d5fSmrg esac 1916a0195d5fSmrg case $ac_pass in 19176f5dd5c2Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1918a0195d5fSmrg 2) 19196f5dd5c2Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 1920a0195d5fSmrg if test $ac_must_keep_next = true; then 1921a0195d5fSmrg ac_must_keep_next=false # Got value, back to normal. 1922a0195d5fSmrg else 1923a0195d5fSmrg case $ac_arg in 1924a0195d5fSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1925a0195d5fSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1926a0195d5fSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1927a0195d5fSmrg | -with-* | --with-* | -without-* | --without-* | --x) 1928a0195d5fSmrg case "$ac_configure_args0 " in 1929a0195d5fSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1930a0195d5fSmrg esac 1931a0195d5fSmrg ;; 1932a0195d5fSmrg -* ) ac_must_keep_next=true ;; 1933a0195d5fSmrg esac 1934a0195d5fSmrg fi 19356f5dd5c2Smrg as_fn_append ac_configure_args " '$ac_arg'" 1936a0195d5fSmrg ;; 1937a0195d5fSmrg esac 1938a0195d5fSmrg done 1939a0195d5fSmrgdone 19406f5dd5c2Smrg{ ac_configure_args0=; unset ac_configure_args0;} 19416f5dd5c2Smrg{ ac_configure_args1=; unset ac_configure_args1;} 1942a0195d5fSmrg 1943a0195d5fSmrg# When interrupted or exit'd, cleanup temporary files, and complete 1944a0195d5fSmrg# config.log. We remove comments because anyway the quotes in there 1945a0195d5fSmrg# would cause problems or look ugly. 1946a0195d5fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1947a0195d5fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1948a0195d5fSmrgtrap 'exit_status=$? 19490f5b81e5Smrg # Sanitize IFS. 19500f5b81e5Smrg IFS=" "" $as_nl" 1951a0195d5fSmrg # Save into config.log some information that might help in debugging. 1952a0195d5fSmrg { 1953a0195d5fSmrg echo 1954a0195d5fSmrg 19550f5b81e5Smrg printf "%s\n" "## ---------------- ## 1956a0195d5fSmrg## Cache variables. ## 19572ab73d9fSmrg## ---------------- ##" 1958a0195d5fSmrg echo 1959a0195d5fSmrg # The following way of writing the cache mishandles newlines in values, 1960a0195d5fSmrg( 1961a0195d5fSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1962a0195d5fSmrg eval ac_val=\$$ac_var 1963a0195d5fSmrg case $ac_val in #( 1964a0195d5fSmrg *${as_nl}*) 1965a0195d5fSmrg case $ac_var in #( 19660f5b81e5Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19670f5b81e5Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1968a0195d5fSmrg esac 1969a0195d5fSmrg case $ac_var in #( 1970a0195d5fSmrg _ | IFS | as_nl) ;; #( 19716600fe5bSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19726f5dd5c2Smrg *) { eval $ac_var=; unset $ac_var;} ;; 1973a0195d5fSmrg esac ;; 1974a0195d5fSmrg esac 1975a0195d5fSmrg done 1976a0195d5fSmrg (set) 2>&1 | 1977a0195d5fSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1978a0195d5fSmrg *${as_nl}ac_space=\ *) 1979a0195d5fSmrg sed -n \ 1980a0195d5fSmrg "s/'\''/'\''\\\\'\'''\''/g; 1981a0195d5fSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1982a0195d5fSmrg ;; #( 1983a0195d5fSmrg *) 1984a0195d5fSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1985a0195d5fSmrg ;; 1986a0195d5fSmrg esac | 1987a0195d5fSmrg sort 1988a0195d5fSmrg) 1989a0195d5fSmrg echo 1990a0195d5fSmrg 19910f5b81e5Smrg printf "%s\n" "## ----------------- ## 1992a0195d5fSmrg## Output variables. ## 19932ab73d9fSmrg## ----------------- ##" 1994a0195d5fSmrg echo 1995a0195d5fSmrg for ac_var in $ac_subst_vars 1996a0195d5fSmrg do 1997a0195d5fSmrg eval ac_val=\$$ac_var 1998a0195d5fSmrg case $ac_val in 19990f5b81e5Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2000a0195d5fSmrg esac 20010f5b81e5Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 2002a0195d5fSmrg done | sort 2003a0195d5fSmrg echo 2004a0195d5fSmrg 2005a0195d5fSmrg if test -n "$ac_subst_files"; then 20060f5b81e5Smrg printf "%s\n" "## ------------------- ## 2007a0195d5fSmrg## File substitutions. ## 20082ab73d9fSmrg## ------------------- ##" 2009a0195d5fSmrg echo 2010a0195d5fSmrg for ac_var in $ac_subst_files 2011a0195d5fSmrg do 2012a0195d5fSmrg eval ac_val=\$$ac_var 2013a0195d5fSmrg case $ac_val in 20140f5b81e5Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2015a0195d5fSmrg esac 20160f5b81e5Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 2017a0195d5fSmrg done | sort 2018a0195d5fSmrg echo 2019a0195d5fSmrg fi 2020a0195d5fSmrg 2021a0195d5fSmrg if test -s confdefs.h; then 20220f5b81e5Smrg printf "%s\n" "## ----------- ## 2023a0195d5fSmrg## confdefs.h. ## 20242ab73d9fSmrg## ----------- ##" 2025a0195d5fSmrg echo 2026a0195d5fSmrg cat confdefs.h 2027a0195d5fSmrg echo 2028a0195d5fSmrg fi 2029a0195d5fSmrg test "$ac_signal" != 0 && 20300f5b81e5Smrg printf "%s\n" "$as_me: caught signal $ac_signal" 20310f5b81e5Smrg printf "%s\n" "$as_me: exit $exit_status" 2032a0195d5fSmrg } >&5 2033a0195d5fSmrg rm -f core *.core core.conftest.* && 2034a0195d5fSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2035a0195d5fSmrg exit $exit_status 2036a0195d5fSmrg' 0 2037a0195d5fSmrgfor ac_signal in 1 2 13 15; do 20386f5dd5c2Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2039a0195d5fSmrgdone 2040a0195d5fSmrgac_signal=0 2041a0195d5fSmrg 2042a0195d5fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 2043a0195d5fSmrgrm -f -r conftest* confdefs.h 2044a0195d5fSmrg 20450f5b81e5Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h 20466f5dd5c2Smrg 2047a0195d5fSmrg# Predefined preprocessor variables. 2048a0195d5fSmrg 20490f5b81e5Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2050a0195d5fSmrg 20510f5b81e5Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2052a0195d5fSmrg 20530f5b81e5Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2054a0195d5fSmrg 20550f5b81e5Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2056a0195d5fSmrg 20570f5b81e5Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2058a0195d5fSmrg 20590f5b81e5Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 20606f5dd5c2Smrg 2061a0195d5fSmrg 2062a0195d5fSmrg# Let the site file select an alternate cache file if it wants to. 20636600fe5bSmrg# Prefer an explicitly selected file to automatically selected ones. 2064a0195d5fSmrgif test -n "$CONFIG_SITE"; then 20650f5b81e5Smrg ac_site_files="$CONFIG_SITE" 2066a0195d5fSmrgelif test "x$prefix" != xNONE; then 20670f5b81e5Smrg ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2068a0195d5fSmrgelse 20690f5b81e5Smrg ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2070a0195d5fSmrgfi 20710f5b81e5Smrg 20720f5b81e5Smrgfor ac_site_file in $ac_site_files 2073a0195d5fSmrgdo 20740f5b81e5Smrg case $ac_site_file in #( 20750f5b81e5Smrg */*) : 20760f5b81e5Smrg ;; #( 20770f5b81e5Smrg *) : 20780f5b81e5Smrg ac_site_file=./$ac_site_file ;; 20790f5b81e5Smrgesac 20800f5b81e5Smrg if test -f "$ac_site_file" && test -r "$ac_site_file"; then 20810f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 20820f5b81e5Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2083a0195d5fSmrg sed 's/^/| /' "$ac_site_file" >&5 20842ab73d9fSmrg . "$ac_site_file" \ 20850f5b81e5Smrg || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20860f5b81e5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20872ab73d9fSmrgas_fn_error $? "failed to load site script $ac_site_file 20882ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; } 2089a0195d5fSmrg fi 2090a0195d5fSmrgdone 2091a0195d5fSmrg 2092a0195d5fSmrgif test -r "$cache_file"; then 20936f5dd5c2Smrg # Some versions of bash will fail to source /dev/null (special files 20946f5dd5c2Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 20956f5dd5c2Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 20960f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 20970f5b81e5Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2098a0195d5fSmrg case $cache_file in 2099a0195d5fSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2100a0195d5fSmrg *) . "./$cache_file";; 2101a0195d5fSmrg esac 2102a0195d5fSmrg fi 2103a0195d5fSmrgelse 21040f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 21050f5b81e5Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2106a0195d5fSmrg >$cache_file 2107a0195d5fSmrgfi 2108a0195d5fSmrg 21090f5b81e5Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 21100f5b81e5Smrg# Test code for whether the C compiler supports C89 (global declarations) 21110f5b81e5Smrgac_c_conftest_c89_globals=' 21120f5b81e5Smrg/* Does the compiler advertise C89 conformance? 21130f5b81e5Smrg Do not test the value of __STDC__, because some compilers set it to 0 21140f5b81e5Smrg while being otherwise adequately conformant. */ 21150f5b81e5Smrg#if !defined __STDC__ 21160f5b81e5Smrg# error "Compiler does not advertise C89 conformance" 21170f5b81e5Smrg#endif 2118feee4651Smrg 21190f5b81e5Smrg#include <stddef.h> 21200f5b81e5Smrg#include <stdarg.h> 21210f5b81e5Smrgstruct stat; 21220f5b81e5Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 21230f5b81e5Smrgstruct buf { int x; }; 21240f5b81e5Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int); 21250f5b81e5Smrgstatic char *e (p, i) 21260f5b81e5Smrg char **p; 21270f5b81e5Smrg int i; 21280f5b81e5Smrg{ 21290f5b81e5Smrg return p[i]; 21300f5b81e5Smrg} 21310f5b81e5Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 21320f5b81e5Smrg{ 21330f5b81e5Smrg char *s; 21340f5b81e5Smrg va_list v; 21350f5b81e5Smrg va_start (v,p); 21360f5b81e5Smrg s = g (p, va_arg (v,int)); 21370f5b81e5Smrg va_end (v); 21380f5b81e5Smrg return s; 21390f5b81e5Smrg} 21400f5b81e5Smrg 21410f5b81e5Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 21420f5b81e5Smrg function prototypes and stuff, but not \xHH hex character constants. 21430f5b81e5Smrg These do not provoke an error unfortunately, instead are silently treated 21440f5b81e5Smrg as an "x". The following induces an error, until -std is added to get 21450f5b81e5Smrg proper ANSI mode. Curiously \x00 != x always comes out true, for an 21460f5b81e5Smrg array size at least. It is necessary to write \x00 == 0 to get something 21470f5b81e5Smrg that is true only with -std. */ 21480f5b81e5Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 21490f5b81e5Smrg 21500f5b81e5Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 21510f5b81e5Smrg inside strings and character constants. */ 21520f5b81e5Smrg#define FOO(x) '\''x'\'' 21530f5b81e5Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 21540f5b81e5Smrg 21550f5b81e5Smrgint test (int i, double x); 21560f5b81e5Smrgstruct s1 {int (*f) (int a);}; 21570f5b81e5Smrgstruct s2 {int (*f) (double a);}; 21580f5b81e5Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 21590f5b81e5Smrg int, int);' 21600f5b81e5Smrg 21610f5b81e5Smrg# Test code for whether the C compiler supports C89 (body of main). 21620f5b81e5Smrgac_c_conftest_c89_main=' 21630f5b81e5Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 21640f5b81e5Smrg' 21650f5b81e5Smrg 21660f5b81e5Smrg# Test code for whether the C compiler supports C99 (global declarations) 21670f5b81e5Smrgac_c_conftest_c99_globals=' 21680f5b81e5Smrg// Does the compiler advertise C99 conformance? 21690f5b81e5Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 21700f5b81e5Smrg# error "Compiler does not advertise C99 conformance" 21710f5b81e5Smrg#endif 21720f5b81e5Smrg 21730f5b81e5Smrg#include <stdbool.h> 21740f5b81e5Smrgextern int puts (const char *); 21750f5b81e5Smrgextern int printf (const char *, ...); 21760f5b81e5Smrgextern int dprintf (int, const char *, ...); 21770f5b81e5Smrgextern void *malloc (size_t); 21780f5b81e5Smrg 21790f5b81e5Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 21800f5b81e5Smrg// dprintf is used instead of fprintf to avoid needing to declare 21810f5b81e5Smrg// FILE and stderr. 21820f5b81e5Smrg#define debug(...) dprintf (2, __VA_ARGS__) 21830f5b81e5Smrg#define showlist(...) puts (#__VA_ARGS__) 21840f5b81e5Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 21850f5b81e5Smrgstatic void 21860f5b81e5Smrgtest_varargs_macros (void) 21870f5b81e5Smrg{ 21880f5b81e5Smrg int x = 1234; 21890f5b81e5Smrg int y = 5678; 21900f5b81e5Smrg debug ("Flag"); 21910f5b81e5Smrg debug ("X = %d\n", x); 21920f5b81e5Smrg showlist (The first, second, and third items.); 21930f5b81e5Smrg report (x>y, "x is %d but y is %d", x, y); 21940f5b81e5Smrg} 21950f5b81e5Smrg 21960f5b81e5Smrg// Check long long types. 21970f5b81e5Smrg#define BIG64 18446744073709551615ull 21980f5b81e5Smrg#define BIG32 4294967295ul 21990f5b81e5Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 22000f5b81e5Smrg#if !BIG_OK 22010f5b81e5Smrg #error "your preprocessor is broken" 22020f5b81e5Smrg#endif 22030f5b81e5Smrg#if BIG_OK 22040f5b81e5Smrg#else 22050f5b81e5Smrg #error "your preprocessor is broken" 22060f5b81e5Smrg#endif 22070f5b81e5Smrgstatic long long int bignum = -9223372036854775807LL; 22080f5b81e5Smrgstatic unsigned long long int ubignum = BIG64; 22090f5b81e5Smrg 22100f5b81e5Smrgstruct incomplete_array 22110f5b81e5Smrg{ 22120f5b81e5Smrg int datasize; 22130f5b81e5Smrg double data[]; 22140f5b81e5Smrg}; 22150f5b81e5Smrg 22160f5b81e5Smrgstruct named_init { 22170f5b81e5Smrg int number; 22180f5b81e5Smrg const wchar_t *name; 22190f5b81e5Smrg double average; 22200f5b81e5Smrg}; 22210f5b81e5Smrg 22220f5b81e5Smrgtypedef const char *ccp; 22230f5b81e5Smrg 22240f5b81e5Smrgstatic inline int 22250f5b81e5Smrgtest_restrict (ccp restrict text) 22260f5b81e5Smrg{ 22270f5b81e5Smrg // See if C++-style comments work. 22280f5b81e5Smrg // Iterate through items via the restricted pointer. 22290f5b81e5Smrg // Also check for declarations in for loops. 22300f5b81e5Smrg for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 22310f5b81e5Smrg continue; 22320f5b81e5Smrg return 0; 22330f5b81e5Smrg} 22340f5b81e5Smrg 22350f5b81e5Smrg// Check varargs and va_copy. 22360f5b81e5Smrgstatic bool 22370f5b81e5Smrgtest_varargs (const char *format, ...) 22380f5b81e5Smrg{ 22390f5b81e5Smrg va_list args; 22400f5b81e5Smrg va_start (args, format); 22410f5b81e5Smrg va_list args_copy; 22420f5b81e5Smrg va_copy (args_copy, args); 22430f5b81e5Smrg 22440f5b81e5Smrg const char *str = ""; 22450f5b81e5Smrg int number = 0; 22460f5b81e5Smrg float fnumber = 0; 22470f5b81e5Smrg 22480f5b81e5Smrg while (*format) 22490f5b81e5Smrg { 22500f5b81e5Smrg switch (*format++) 22510f5b81e5Smrg { 22520f5b81e5Smrg case '\''s'\'': // string 22530f5b81e5Smrg str = va_arg (args_copy, const char *); 22540f5b81e5Smrg break; 22550f5b81e5Smrg case '\''d'\'': // int 22560f5b81e5Smrg number = va_arg (args_copy, int); 22570f5b81e5Smrg break; 22580f5b81e5Smrg case '\''f'\'': // float 22590f5b81e5Smrg fnumber = va_arg (args_copy, double); 22600f5b81e5Smrg break; 22610f5b81e5Smrg default: 22620f5b81e5Smrg break; 22630f5b81e5Smrg } 22640f5b81e5Smrg } 22650f5b81e5Smrg va_end (args_copy); 22660f5b81e5Smrg va_end (args); 22670f5b81e5Smrg 22680f5b81e5Smrg return *str && number && fnumber; 22690f5b81e5Smrg} 22700f5b81e5Smrg' 22710f5b81e5Smrg 22720f5b81e5Smrg# Test code for whether the C compiler supports C99 (body of main). 22730f5b81e5Smrgac_c_conftest_c99_main=' 22740f5b81e5Smrg // Check bool. 22750f5b81e5Smrg _Bool success = false; 22760f5b81e5Smrg success |= (argc != 0); 22770f5b81e5Smrg 22780f5b81e5Smrg // Check restrict. 22790f5b81e5Smrg if (test_restrict ("String literal") == 0) 22800f5b81e5Smrg success = true; 22810f5b81e5Smrg char *restrict newvar = "Another string"; 22820f5b81e5Smrg 22830f5b81e5Smrg // Check varargs. 22840f5b81e5Smrg success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 22850f5b81e5Smrg test_varargs_macros (); 22860f5b81e5Smrg 22870f5b81e5Smrg // Check flexible array members. 22880f5b81e5Smrg struct incomplete_array *ia = 22890f5b81e5Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 22900f5b81e5Smrg ia->datasize = 10; 22910f5b81e5Smrg for (int i = 0; i < ia->datasize; ++i) 22920f5b81e5Smrg ia->data[i] = i * 1.234; 22930f5b81e5Smrg 22940f5b81e5Smrg // Check named initializers. 22950f5b81e5Smrg struct named_init ni = { 22960f5b81e5Smrg .number = 34, 22970f5b81e5Smrg .name = L"Test wide string", 22980f5b81e5Smrg .average = 543.34343, 22990f5b81e5Smrg }; 23000f5b81e5Smrg 23010f5b81e5Smrg ni.number = 58; 23020f5b81e5Smrg 23030f5b81e5Smrg int dynamic_array[ni.number]; 23040f5b81e5Smrg dynamic_array[0] = argv[0][0]; 23050f5b81e5Smrg dynamic_array[ni.number - 1] = 543; 23060f5b81e5Smrg 23070f5b81e5Smrg // work around unused variable warnings 23080f5b81e5Smrg ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 23090f5b81e5Smrg || dynamic_array[ni.number - 1] != 543); 23100f5b81e5Smrg' 23110f5b81e5Smrg 23120f5b81e5Smrg# Test code for whether the C compiler supports C11 (global declarations) 23130f5b81e5Smrgac_c_conftest_c11_globals=' 23140f5b81e5Smrg// Does the compiler advertise C11 conformance? 23150f5b81e5Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 23160f5b81e5Smrg# error "Compiler does not advertise C11 conformance" 23170f5b81e5Smrg#endif 23180f5b81e5Smrg 23190f5b81e5Smrg// Check _Alignas. 23200f5b81e5Smrgchar _Alignas (double) aligned_as_double; 23210f5b81e5Smrgchar _Alignas (0) no_special_alignment; 23220f5b81e5Smrgextern char aligned_as_int; 23230f5b81e5Smrgchar _Alignas (0) _Alignas (int) aligned_as_int; 23240f5b81e5Smrg 23250f5b81e5Smrg// Check _Alignof. 23260f5b81e5Smrgenum 23270f5b81e5Smrg{ 23280f5b81e5Smrg int_alignment = _Alignof (int), 23290f5b81e5Smrg int_array_alignment = _Alignof (int[100]), 23300f5b81e5Smrg char_alignment = _Alignof (char) 23310f5b81e5Smrg}; 23320f5b81e5Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 23330f5b81e5Smrg 23340f5b81e5Smrg// Check _Noreturn. 23350f5b81e5Smrgint _Noreturn does_not_return (void) { for (;;) continue; } 23360f5b81e5Smrg 23370f5b81e5Smrg// Check _Static_assert. 23380f5b81e5Smrgstruct test_static_assert 23390f5b81e5Smrg{ 23400f5b81e5Smrg int x; 23410f5b81e5Smrg _Static_assert (sizeof (int) <= sizeof (long int), 23420f5b81e5Smrg "_Static_assert does not work in struct"); 23430f5b81e5Smrg long int y; 23440f5b81e5Smrg}; 23450f5b81e5Smrg 23460f5b81e5Smrg// Check UTF-8 literals. 23470f5b81e5Smrg#define u8 syntax error! 23480f5b81e5Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string"; 23490f5b81e5Smrg 23500f5b81e5Smrg// Check duplicate typedefs. 23510f5b81e5Smrgtypedef long *long_ptr; 23520f5b81e5Smrgtypedef long int *long_ptr; 23530f5b81e5Smrgtypedef long_ptr long_ptr; 23540f5b81e5Smrg 23550f5b81e5Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 23560f5b81e5Smrgstruct anonymous 23570f5b81e5Smrg{ 23580f5b81e5Smrg union { 23590f5b81e5Smrg struct { int i; int j; }; 23600f5b81e5Smrg struct { int k; long int l; } w; 23610f5b81e5Smrg }; 23620f5b81e5Smrg int m; 23630f5b81e5Smrg} v1; 23640f5b81e5Smrg' 23650f5b81e5Smrg 23660f5b81e5Smrg# Test code for whether the C compiler supports C11 (body of main). 23670f5b81e5Smrgac_c_conftest_c11_main=' 23680f5b81e5Smrg _Static_assert ((offsetof (struct anonymous, i) 23690f5b81e5Smrg == offsetof (struct anonymous, w.k)), 23700f5b81e5Smrg "Anonymous union alignment botch"); 23710f5b81e5Smrg v1.i = 2; 23720f5b81e5Smrg v1.w.k = 5; 23730f5b81e5Smrg ok |= v1.i != 5; 23740f5b81e5Smrg' 23750f5b81e5Smrg 23760f5b81e5Smrg# Test code for whether the C compiler supports C11 (complete). 23770f5b81e5Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 23780f5b81e5Smrg${ac_c_conftest_c99_globals} 23790f5b81e5Smrg${ac_c_conftest_c11_globals} 23800f5b81e5Smrg 23810f5b81e5Smrgint 23820f5b81e5Smrgmain (int argc, char **argv) 23830f5b81e5Smrg{ 23840f5b81e5Smrg int ok = 0; 23850f5b81e5Smrg ${ac_c_conftest_c89_main} 23860f5b81e5Smrg ${ac_c_conftest_c99_main} 23870f5b81e5Smrg ${ac_c_conftest_c11_main} 23880f5b81e5Smrg return ok; 23890f5b81e5Smrg} 23900f5b81e5Smrg" 23910f5b81e5Smrg 23920f5b81e5Smrg# Test code for whether the C compiler supports C99 (complete). 23930f5b81e5Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 23940f5b81e5Smrg${ac_c_conftest_c99_globals} 23950f5b81e5Smrg 23960f5b81e5Smrgint 23970f5b81e5Smrgmain (int argc, char **argv) 23980f5b81e5Smrg{ 23990f5b81e5Smrg int ok = 0; 24000f5b81e5Smrg ${ac_c_conftest_c89_main} 24010f5b81e5Smrg ${ac_c_conftest_c99_main} 24020f5b81e5Smrg return ok; 24030f5b81e5Smrg} 24040f5b81e5Smrg" 24050f5b81e5Smrg 24060f5b81e5Smrg# Test code for whether the C compiler supports C89 (complete). 24070f5b81e5Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 24080f5b81e5Smrg 24090f5b81e5Smrgint 24100f5b81e5Smrgmain (int argc, char **argv) 24110f5b81e5Smrg{ 24120f5b81e5Smrg int ok = 0; 24130f5b81e5Smrg ${ac_c_conftest_c89_main} 24140f5b81e5Smrg return ok; 24150f5b81e5Smrg} 24160f5b81e5Smrg" 24170f5b81e5Smrg 24180f5b81e5Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 24190f5b81e5Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 24200f5b81e5Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 24210f5b81e5Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 24220f5b81e5Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 24230f5b81e5Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 24240f5b81e5Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 24250f5b81e5Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 24260f5b81e5Smrgas_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 24270f5b81e5Smrgas_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 24280f5b81e5Smrg 24290f5b81e5Smrg# Auxiliary files required by this configure script. 24300f5b81e5Smrgac_aux_files="config.guess config.sub missing install-sh compile" 24310f5b81e5Smrg 24320f5b81e5Smrg# Locations in which to look for auxiliary files. 24330f5b81e5Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 24340f5b81e5Smrg 24350f5b81e5Smrg# Search for a directory containing all of the required auxiliary files, 24360f5b81e5Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 24370f5b81e5Smrg# If we don't find one directory that contains all the files we need, 24380f5b81e5Smrg# we report the set of missing files from the *first* directory in 24390f5b81e5Smrg# $ac_aux_dir_candidates and give up. 24400f5b81e5Smrgac_missing_aux_files="" 24410f5b81e5Smrgac_first_candidate=: 24420f5b81e5Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 24430f5b81e5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24440f5b81e5Smrgas_found=false 24450f5b81e5Smrgfor as_dir in $ac_aux_dir_candidates 24460f5b81e5Smrgdo 24470f5b81e5Smrg IFS=$as_save_IFS 24480f5b81e5Smrg case $as_dir in #((( 24490f5b81e5Smrg '') as_dir=./ ;; 24500f5b81e5Smrg */) ;; 24510f5b81e5Smrg *) as_dir=$as_dir/ ;; 24520f5b81e5Smrg esac 24530f5b81e5Smrg as_found=: 24540f5b81e5Smrg 24550f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 24560f5b81e5Smrg ac_aux_dir_found=yes 24570f5b81e5Smrg ac_install_sh= 24580f5b81e5Smrg for ac_aux in $ac_aux_files 24590f5b81e5Smrg do 24600f5b81e5Smrg # As a special case, if "install-sh" is required, that requirement 24610f5b81e5Smrg # can be satisfied by any of "install-sh", "install.sh", or "shtool", 24620f5b81e5Smrg # and $ac_install_sh is set appropriately for whichever one is found. 24630f5b81e5Smrg if test x"$ac_aux" = x"install-sh" 24640f5b81e5Smrg then 24650f5b81e5Smrg if test -f "${as_dir}install-sh"; then 24660f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 24670f5b81e5Smrg ac_install_sh="${as_dir}install-sh -c" 24680f5b81e5Smrg elif test -f "${as_dir}install.sh"; then 24690f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 24700f5b81e5Smrg ac_install_sh="${as_dir}install.sh -c" 24710f5b81e5Smrg elif test -f "${as_dir}shtool"; then 24720f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 24730f5b81e5Smrg ac_install_sh="${as_dir}shtool install -c" 24740f5b81e5Smrg else 24750f5b81e5Smrg ac_aux_dir_found=no 24760f5b81e5Smrg if $ac_first_candidate; then 24770f5b81e5Smrg ac_missing_aux_files="${ac_missing_aux_files} install-sh" 24780f5b81e5Smrg else 24790f5b81e5Smrg break 24800f5b81e5Smrg fi 24810f5b81e5Smrg fi 24820f5b81e5Smrg else 24830f5b81e5Smrg if test -f "${as_dir}${ac_aux}"; then 24840f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 24850f5b81e5Smrg else 24860f5b81e5Smrg ac_aux_dir_found=no 24870f5b81e5Smrg if $ac_first_candidate; then 24880f5b81e5Smrg ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 24890f5b81e5Smrg else 24900f5b81e5Smrg break 24910f5b81e5Smrg fi 24920f5b81e5Smrg fi 24930f5b81e5Smrg fi 24940f5b81e5Smrg done 24950f5b81e5Smrg if test "$ac_aux_dir_found" = yes; then 24960f5b81e5Smrg ac_aux_dir="$as_dir" 24970f5b81e5Smrg break 24980f5b81e5Smrg fi 24990f5b81e5Smrg ac_first_candidate=false 25000f5b81e5Smrg 25010f5b81e5Smrg as_found=false 25020f5b81e5Smrgdone 25030f5b81e5SmrgIFS=$as_save_IFS 25040f5b81e5Smrgif $as_found 25050f5b81e5Smrgthen : 25060f5b81e5Smrg 25070f5b81e5Smrgelse $as_nop 25080f5b81e5Smrg as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 25090f5b81e5Smrgfi 25100f5b81e5Smrg 25110f5b81e5Smrg 25120f5b81e5Smrg# These three variables are undocumented and unsupported, 2513feee4651Smrg# and are intended to be withdrawn in a future Autoconf release. 2514feee4651Smrg# They can cause serious problems if a builder's source tree is in a directory 2515feee4651Smrg# whose full name contains unusual characters. 25160f5b81e5Smrgif test -f "${ac_aux_dir}config.guess"; then 25170f5b81e5Smrg ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 25180f5b81e5Smrgfi 25190f5b81e5Smrgif test -f "${ac_aux_dir}config.sub"; then 25200f5b81e5Smrg ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 25210f5b81e5Smrgfi 25220f5b81e5Smrgif test -f "$ac_aux_dir/configure"; then 25230f5b81e5Smrg ac_configure="$SHELL ${ac_aux_dir}configure" 25240f5b81e5Smrgfi 25250f5b81e5Smrg 25260f5b81e5Smrg# Check that the precious variables saved in the cache have kept the same 25270f5b81e5Smrg# value. 25280f5b81e5Smrgac_cache_corrupted=false 25290f5b81e5Smrgfor ac_var in $ac_precious_vars; do 25300f5b81e5Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 25310f5b81e5Smrg eval ac_new_set=\$ac_env_${ac_var}_set 25320f5b81e5Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 25330f5b81e5Smrg eval ac_new_val=\$ac_env_${ac_var}_value 25340f5b81e5Smrg case $ac_old_set,$ac_new_set in 25350f5b81e5Smrg set,) 25360f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 25370f5b81e5Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 25380f5b81e5Smrg ac_cache_corrupted=: ;; 25390f5b81e5Smrg ,set) 25400f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 25410f5b81e5Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 25420f5b81e5Smrg ac_cache_corrupted=: ;; 25430f5b81e5Smrg ,);; 25440f5b81e5Smrg *) 25450f5b81e5Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 25460f5b81e5Smrg # differences in whitespace do not lead to failure. 25470f5b81e5Smrg ac_old_val_w=`echo x $ac_old_val` 25480f5b81e5Smrg ac_new_val_w=`echo x $ac_new_val` 25490f5b81e5Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 25500f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 25510f5b81e5Smrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 25520f5b81e5Smrg ac_cache_corrupted=: 25530f5b81e5Smrg else 25540f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 25550f5b81e5Smrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 25560f5b81e5Smrg eval $ac_var=\$ac_old_val 25570f5b81e5Smrg fi 25580f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 25590f5b81e5Smrgprintf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 25600f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 25610f5b81e5Smrgprintf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 25620f5b81e5Smrg fi;; 25630f5b81e5Smrg esac 25640f5b81e5Smrg # Pass precious variables to config.status. 25650f5b81e5Smrg if test "$ac_new_set" = set; then 25660f5b81e5Smrg case $ac_new_val in 25670f5b81e5Smrg *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 25680f5b81e5Smrg *) ac_arg=$ac_var=$ac_new_val ;; 25690f5b81e5Smrg esac 25700f5b81e5Smrg case " $ac_configure_args " in 25710f5b81e5Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 25720f5b81e5Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 25730f5b81e5Smrg esac 25740f5b81e5Smrg fi 25750f5b81e5Smrgdone 25760f5b81e5Smrgif $ac_cache_corrupted; then 25770f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25780f5b81e5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 25790f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 25800f5b81e5Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 25810f5b81e5Smrg as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 25820f5b81e5Smrg and start over" "$LINENO" 5 25830f5b81e5Smrgfi 25840f5b81e5Smrg## -------------------- ## 25850f5b81e5Smrg## Main body of script. ## 25860f5b81e5Smrg## -------------------- ## 25870f5b81e5Smrg 25880f5b81e5Smrgac_ext=c 25890f5b81e5Smrgac_cpp='$CPP $CPPFLAGS' 25900f5b81e5Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25910f5b81e5Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25920f5b81e5Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 25930f5b81e5Smrg 25940f5b81e5Smrg 25950f5b81e5Smrg 25960f5b81e5Smrgac_config_headers="$ac_config_headers config.h" 25970f5b81e5Smrg 25980f5b81e5Smrg 25990f5b81e5Smrg 26000f5b81e5Smrg 26010f5b81e5Smrg 26020f5b81e5Smrg 26030f5b81e5Smrg 26040f5b81e5Smrg 26050f5b81e5Smrg 26060f5b81e5Smrg 2607feee4651Smrg 2608feee4651Smrg 2609feee4651Smrg# Expand $ac_aux_dir to an absolute path. 2610feee4651Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 26112ab73d9fSmrg 261240a76396Smrgac_ext=c 261340a76396Smrgac_cpp='$CPP $CPPFLAGS' 261440a76396Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 261540a76396Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 261640a76396Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 261740a76396Smrgif test -n "$ac_tool_prefix"; then 261840a76396Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 261940a76396Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 26200f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26210f5b81e5Smrgprintf %s "checking for $ac_word... " >&6; } 26220f5b81e5Smrgif test ${ac_cv_prog_CC+y} 26230f5b81e5Smrgthen : 26240f5b81e5Smrg printf %s "(cached) " >&6 26250f5b81e5Smrgelse $as_nop 262640a76396Smrg if test -n "$CC"; then 262740a76396Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 262840a76396Smrgelse 262940a76396Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26306600fe5bSmrgfor as_dir in $PATH 26316600fe5bSmrgdo 26326600fe5bSmrg IFS=$as_save_IFS 26330f5b81e5Smrg case $as_dir in #((( 26340f5b81e5Smrg '') as_dir=./ ;; 26350f5b81e5Smrg */) ;; 26360f5b81e5Smrg *) as_dir=$as_dir/ ;; 26370f5b81e5Smrg esac 26386f5dd5c2Smrg for ac_exec_ext in '' $ac_executable_extensions; do 26390f5b81e5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 264040a76396Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 26410f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26426600fe5bSmrg break 2 26436600fe5bSmrg fi 26446600fe5bSmrgdone 26456f5dd5c2Smrg done 26466600fe5bSmrgIFS=$as_save_IFS 26476600fe5bSmrg 26486600fe5bSmrgfi 26496600fe5bSmrgfi 265040a76396SmrgCC=$ac_cv_prog_CC 265140a76396Smrgif test -n "$CC"; then 26520f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 26530f5b81e5Smrgprintf "%s\n" "$CC" >&6; } 26546600fe5bSmrgelse 26550f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26560f5b81e5Smrgprintf "%s\n" "no" >&6; } 26576600fe5bSmrgfi 26586600fe5bSmrg 26596600fe5bSmrg 26606600fe5bSmrgfi 266140a76396Smrgif test -z "$ac_cv_prog_CC"; then 266240a76396Smrg ac_ct_CC=$CC 266340a76396Smrg # Extract the first word of "gcc", so it can be a program name with args. 266440a76396Smrgset dummy gcc; ac_word=$2 26650f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26660f5b81e5Smrgprintf %s "checking for $ac_word... " >&6; } 26670f5b81e5Smrgif test ${ac_cv_prog_ac_ct_CC+y} 26680f5b81e5Smrgthen : 26690f5b81e5Smrg printf %s "(cached) " >&6 26700f5b81e5Smrgelse $as_nop 267140a76396Smrg if test -n "$ac_ct_CC"; then 267240a76396Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 26736600fe5bSmrgelse 26746600fe5bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26756600fe5bSmrgfor as_dir in $PATH 26766600fe5bSmrgdo 26776600fe5bSmrg IFS=$as_save_IFS 26780f5b81e5Smrg case $as_dir in #((( 26790f5b81e5Smrg '') as_dir=./ ;; 26800f5b81e5Smrg */) ;; 26810f5b81e5Smrg *) as_dir=$as_dir/ ;; 26820f5b81e5Smrg esac 26836f5dd5c2Smrg for ac_exec_ext in '' $ac_executable_extensions; do 26840f5b81e5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 268540a76396Smrg ac_cv_prog_ac_ct_CC="gcc" 26860f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26876600fe5bSmrg break 2 26886600fe5bSmrg fi 26896600fe5bSmrgdone 26906f5dd5c2Smrg done 26916600fe5bSmrgIFS=$as_save_IFS 26926600fe5bSmrg 26936600fe5bSmrgfi 26946600fe5bSmrgfi 269540a76396Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 269640a76396Smrgif test -n "$ac_ct_CC"; then 26970f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 26980f5b81e5Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 26996600fe5bSmrgelse 27000f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27010f5b81e5Smrgprintf "%s\n" "no" >&6; } 27026600fe5bSmrgfi 27036600fe5bSmrg 270440a76396Smrg if test "x$ac_ct_CC" = x; then 270540a76396Smrg CC="" 27066600fe5bSmrg else 27076600fe5bSmrg case $cross_compiling:$ac_tool_warned in 27086600fe5bSmrgyes:) 27090f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27100f5b81e5Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27116600fe5bSmrgac_tool_warned=yes ;; 27126600fe5bSmrgesac 271340a76396Smrg CC=$ac_ct_CC 27146600fe5bSmrg fi 27156600fe5bSmrgelse 271640a76396Smrg CC="$ac_cv_prog_CC" 2717a0195d5fSmrgfi 2718a0195d5fSmrg 271940a76396Smrgif test -z "$CC"; then 272040a76396Smrg if test -n "$ac_tool_prefix"; then 272140a76396Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 272240a76396Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 27230f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27240f5b81e5Smrgprintf %s "checking for $ac_word... " >&6; } 27250f5b81e5Smrgif test ${ac_cv_prog_CC+y} 27260f5b81e5Smrgthen : 27270f5b81e5Smrg printf %s "(cached) " >&6 27280f5b81e5Smrgelse $as_nop 272940a76396Smrg if test -n "$CC"; then 273040a76396Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2731a0195d5fSmrgelse 2732a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2733a0195d5fSmrgfor as_dir in $PATH 2734a0195d5fSmrgdo 2735a0195d5fSmrg IFS=$as_save_IFS 27360f5b81e5Smrg case $as_dir in #((( 27370f5b81e5Smrg '') as_dir=./ ;; 27380f5b81e5Smrg */) ;; 27390f5b81e5Smrg *) as_dir=$as_dir/ ;; 27400f5b81e5Smrg esac 27416f5dd5c2Smrg for ac_exec_ext in '' $ac_executable_extensions; do 27420f5b81e5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 274340a76396Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 27440f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2745a0195d5fSmrg break 2 2746a0195d5fSmrg fi 2747a0195d5fSmrgdone 27486f5dd5c2Smrg done 2749a0195d5fSmrgIFS=$as_save_IFS 2750a0195d5fSmrg 2751a0195d5fSmrgfi 2752a0195d5fSmrgfi 275340a76396SmrgCC=$ac_cv_prog_CC 275440a76396Smrgif test -n "$CC"; then 27550f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 27560f5b81e5Smrgprintf "%s\n" "$CC" >&6; } 2757a0195d5fSmrgelse 27580f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27590f5b81e5Smrgprintf "%s\n" "no" >&6; } 2760a0195d5fSmrgfi 2761a0195d5fSmrg 2762a0195d5fSmrg 276340a76396Smrg fi 2764a0195d5fSmrgfi 276540a76396Smrgif test -z "$CC"; then 276640a76396Smrg # Extract the first word of "cc", so it can be a program name with args. 276740a76396Smrgset dummy cc; ac_word=$2 27680f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27690f5b81e5Smrgprintf %s "checking for $ac_word... " >&6; } 27700f5b81e5Smrgif test ${ac_cv_prog_CC+y} 27710f5b81e5Smrgthen : 27720f5b81e5Smrg printf %s "(cached) " >&6 27730f5b81e5Smrgelse $as_nop 277440a76396Smrg if test -n "$CC"; then 277540a76396Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2776a0195d5fSmrgelse 277740a76396Smrg ac_prog_rejected=no 277840a76396Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 277940a76396Smrgfor as_dir in $PATH 278040a76396Smrgdo 278140a76396Smrg IFS=$as_save_IFS 27820f5b81e5Smrg case $as_dir in #((( 27830f5b81e5Smrg '') as_dir=./ ;; 27840f5b81e5Smrg */) ;; 27850f5b81e5Smrg *) as_dir=$as_dir/ ;; 27860f5b81e5Smrg esac 278740a76396Smrg for ac_exec_ext in '' $ac_executable_extensions; do 27880f5b81e5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27890f5b81e5Smrg if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 279040a76396Smrg ac_prog_rejected=yes 279140a76396Smrg continue 279240a76396Smrg fi 279340a76396Smrg ac_cv_prog_CC="cc" 27940f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 279540a76396Smrg break 2 2796a0195d5fSmrg fi 279740a76396Smrgdone 279840a76396Smrg done 279940a76396SmrgIFS=$as_save_IFS 2800a0195d5fSmrg 280140a76396Smrgif test $ac_prog_rejected = yes; then 280240a76396Smrg # We found a bogon in the path, so make sure we never use it. 280340a76396Smrg set dummy $ac_cv_prog_CC 280440a76396Smrg shift 280540a76396Smrg if test $# != 0; then 280640a76396Smrg # We chose a different compiler from the bogus one. 280740a76396Smrg # However, it has the same basename, so the bogon will be chosen 280840a76396Smrg # first if we set CC to just the basename; use the full file name. 280940a76396Smrg shift 28100f5b81e5Smrg ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2811a0195d5fSmrg fi 2812a0195d5fSmrgfi 28136f5dd5c2Smrgfi 28146f5dd5c2Smrgfi 281540a76396SmrgCC=$ac_cv_prog_CC 281640a76396Smrgif test -n "$CC"; then 28170f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28180f5b81e5Smrgprintf "%s\n" "$CC" >&6; } 28196f5dd5c2Smrgelse 28200f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28210f5b81e5Smrgprintf "%s\n" "no" >&6; } 28226f5dd5c2Smrgfi 28236f5dd5c2Smrg 28246f5dd5c2Smrg 282540a76396Smrgfi 282640a76396Smrgif test -z "$CC"; then 282740a76396Smrg if test -n "$ac_tool_prefix"; then 282840a76396Smrg for ac_prog in cl.exe 282940a76396Smrg do 283040a76396Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 283140a76396Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 28320f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28330f5b81e5Smrgprintf %s "checking for $ac_word... " >&6; } 28340f5b81e5Smrgif test ${ac_cv_prog_CC+y} 28350f5b81e5Smrgthen : 28360f5b81e5Smrg printf %s "(cached) " >&6 28370f5b81e5Smrgelse $as_nop 28386f5dd5c2Smrg if test -n "$CC"; then 28396f5dd5c2Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 28406f5dd5c2Smrgelse 28416f5dd5c2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28426f5dd5c2Smrgfor as_dir in $PATH 28436f5dd5c2Smrgdo 28446f5dd5c2Smrg IFS=$as_save_IFS 28450f5b81e5Smrg case $as_dir in #((( 28460f5b81e5Smrg '') as_dir=./ ;; 28470f5b81e5Smrg */) ;; 28480f5b81e5Smrg *) as_dir=$as_dir/ ;; 28490f5b81e5Smrg esac 28506f5dd5c2Smrg for ac_exec_ext in '' $ac_executable_extensions; do 28510f5b81e5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 285240a76396Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28530f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28546f5dd5c2Smrg break 2 28556f5dd5c2Smrg fi 28566f5dd5c2Smrgdone 28576f5dd5c2Smrg done 28586f5dd5c2SmrgIFS=$as_save_IFS 28596f5dd5c2Smrg 28606f5dd5c2Smrgfi 28616f5dd5c2Smrgfi 28626f5dd5c2SmrgCC=$ac_cv_prog_CC 28636f5dd5c2Smrgif test -n "$CC"; then 28640f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28650f5b81e5Smrgprintf "%s\n" "$CC" >&6; } 28666f5dd5c2Smrgelse 28670f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28680f5b81e5Smrgprintf "%s\n" "no" >&6; } 28696f5dd5c2Smrgfi 28706f5dd5c2Smrg 28716f5dd5c2Smrg 287240a76396Smrg test -n "$CC" && break 287340a76396Smrg done 28746f5dd5c2Smrgfi 287540a76396Smrgif test -z "$CC"; then 2876a0195d5fSmrg ac_ct_CC=$CC 287740a76396Smrg for ac_prog in cl.exe 287840a76396Smrgdo 287940a76396Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 288040a76396Smrgset dummy $ac_prog; ac_word=$2 28810f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28820f5b81e5Smrgprintf %s "checking for $ac_word... " >&6; } 28830f5b81e5Smrgif test ${ac_cv_prog_ac_ct_CC+y} 28840f5b81e5Smrgthen : 28850f5b81e5Smrg printf %s "(cached) " >&6 28860f5b81e5Smrgelse $as_nop 2887a0195d5fSmrg if test -n "$ac_ct_CC"; then 2888a0195d5fSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2889a0195d5fSmrgelse 2890a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2891a0195d5fSmrgfor as_dir in $PATH 2892a0195d5fSmrgdo 2893a0195d5fSmrg IFS=$as_save_IFS 28940f5b81e5Smrg case $as_dir in #((( 28950f5b81e5Smrg '') as_dir=./ ;; 28960f5b81e5Smrg */) ;; 28970f5b81e5Smrg *) as_dir=$as_dir/ ;; 28980f5b81e5Smrg esac 28996f5dd5c2Smrg for ac_exec_ext in '' $ac_executable_extensions; do 29000f5b81e5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 290140a76396Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 29020f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2903a0195d5fSmrg break 2 2904a0195d5fSmrg fi 2905a0195d5fSmrgdone 29066f5dd5c2Smrg done 2907a0195d5fSmrgIFS=$as_save_IFS 2908a0195d5fSmrg 2909a0195d5fSmrgfi 2910a0195d5fSmrgfi 2911a0195d5fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2912a0195d5fSmrgif test -n "$ac_ct_CC"; then 29130f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 29140f5b81e5Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 2915a0195d5fSmrgelse 29160f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29170f5b81e5Smrgprintf "%s\n" "no" >&6; } 2918a0195d5fSmrgfi 2919a0195d5fSmrg 2920a0195d5fSmrg 2921a0195d5fSmrg test -n "$ac_ct_CC" && break 2922a0195d5fSmrgdone 2923a0195d5fSmrg 2924a0195d5fSmrg if test "x$ac_ct_CC" = x; then 2925a0195d5fSmrg CC="" 2926a0195d5fSmrg else 2927a0195d5fSmrg case $cross_compiling:$ac_tool_warned in 2928a0195d5fSmrgyes:) 29290f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29300f5b81e5Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2931a0195d5fSmrgac_tool_warned=yes ;; 2932a0195d5fSmrgesac 2933a0195d5fSmrg CC=$ac_ct_CC 2934a0195d5fSmrg fi 2935a0195d5fSmrgfi 2936a0195d5fSmrg 2937a0195d5fSmrgfi 29380f5b81e5Smrgif test -z "$CC"; then 29390f5b81e5Smrg if test -n "$ac_tool_prefix"; then 29400f5b81e5Smrg # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 29410f5b81e5Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2 29420f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29430f5b81e5Smrgprintf %s "checking for $ac_word... " >&6; } 29440f5b81e5Smrgif test ${ac_cv_prog_CC+y} 29450f5b81e5Smrgthen : 29460f5b81e5Smrg printf %s "(cached) " >&6 29470f5b81e5Smrgelse $as_nop 29480f5b81e5Smrg if test -n "$CC"; then 29490f5b81e5Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 29500f5b81e5Smrgelse 29510f5b81e5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29520f5b81e5Smrgfor as_dir in $PATH 29530f5b81e5Smrgdo 29540f5b81e5Smrg IFS=$as_save_IFS 29550f5b81e5Smrg case $as_dir in #((( 29560f5b81e5Smrg '') as_dir=./ ;; 29570f5b81e5Smrg */) ;; 29580f5b81e5Smrg *) as_dir=$as_dir/ ;; 29590f5b81e5Smrg esac 29600f5b81e5Smrg for ac_exec_ext in '' $ac_executable_extensions; do 29610f5b81e5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29620f5b81e5Smrg ac_cv_prog_CC="${ac_tool_prefix}clang" 29630f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29640f5b81e5Smrg break 2 29650f5b81e5Smrg fi 29660f5b81e5Smrgdone 29670f5b81e5Smrg done 29680f5b81e5SmrgIFS=$as_save_IFS 29690f5b81e5Smrg 29700f5b81e5Smrgfi 29710f5b81e5Smrgfi 29720f5b81e5SmrgCC=$ac_cv_prog_CC 29730f5b81e5Smrgif test -n "$CC"; then 29740f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 29750f5b81e5Smrgprintf "%s\n" "$CC" >&6; } 29760f5b81e5Smrgelse 29770f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29780f5b81e5Smrgprintf "%s\n" "no" >&6; } 29790f5b81e5Smrgfi 2980a0195d5fSmrg 2981a0195d5fSmrg 29820f5b81e5Smrgfi 29830f5b81e5Smrgif test -z "$ac_cv_prog_CC"; then 29840f5b81e5Smrg ac_ct_CC=$CC 29850f5b81e5Smrg # Extract the first word of "clang", so it can be a program name with args. 29860f5b81e5Smrgset dummy clang; ac_word=$2 29870f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29880f5b81e5Smrgprintf %s "checking for $ac_word... " >&6; } 29890f5b81e5Smrgif test ${ac_cv_prog_ac_ct_CC+y} 29900f5b81e5Smrgthen : 29910f5b81e5Smrg printf %s "(cached) " >&6 29920f5b81e5Smrgelse $as_nop 29930f5b81e5Smrg if test -n "$ac_ct_CC"; then 29940f5b81e5Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 29950f5b81e5Smrgelse 29960f5b81e5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29970f5b81e5Smrgfor as_dir in $PATH 29980f5b81e5Smrgdo 29990f5b81e5Smrg IFS=$as_save_IFS 30000f5b81e5Smrg case $as_dir in #((( 30010f5b81e5Smrg '') as_dir=./ ;; 30020f5b81e5Smrg */) ;; 30030f5b81e5Smrg *) as_dir=$as_dir/ ;; 30040f5b81e5Smrg esac 30050f5b81e5Smrg for ac_exec_ext in '' $ac_executable_extensions; do 30060f5b81e5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30070f5b81e5Smrg ac_cv_prog_ac_ct_CC="clang" 30080f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30090f5b81e5Smrg break 2 30100f5b81e5Smrg fi 30110f5b81e5Smrgdone 30120f5b81e5Smrg done 30130f5b81e5SmrgIFS=$as_save_IFS 30140f5b81e5Smrg 30150f5b81e5Smrgfi 30160f5b81e5Smrgfi 30170f5b81e5Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 30180f5b81e5Smrgif test -n "$ac_ct_CC"; then 30190f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 30200f5b81e5Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 30210f5b81e5Smrgelse 30220f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30230f5b81e5Smrgprintf "%s\n" "no" >&6; } 30240f5b81e5Smrgfi 30250f5b81e5Smrg 30260f5b81e5Smrg if test "x$ac_ct_CC" = x; then 30270f5b81e5Smrg CC="" 30280f5b81e5Smrg else 30290f5b81e5Smrg case $cross_compiling:$ac_tool_warned in 30300f5b81e5Smrgyes:) 30310f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30320f5b81e5Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30330f5b81e5Smrgac_tool_warned=yes ;; 30340f5b81e5Smrgesac 30350f5b81e5Smrg CC=$ac_ct_CC 30360f5b81e5Smrg fi 30370f5b81e5Smrgelse 30380f5b81e5Smrg CC="$ac_cv_prog_CC" 30390f5b81e5Smrgfi 30400f5b81e5Smrg 30410f5b81e5Smrgfi 30420f5b81e5Smrg 30430f5b81e5Smrg 30440f5b81e5Smrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30450f5b81e5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 30462ab73d9fSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 30472ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; } 3048a0195d5fSmrg 3049a0195d5fSmrg# Provide some information about the compiler. 30500f5b81e5Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 30516600fe5bSmrgset X $ac_compile 30526600fe5bSmrgac_compiler=$2 30530f5b81e5Smrgfor ac_option in --version -v -V -qversion -version; do 30546f5dd5c2Smrg { { ac_try="$ac_compiler $ac_option >&5" 3055a0195d5fSmrgcase "(($ac_try" in 3056a0195d5fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3057a0195d5fSmrg *) ac_try_echo=$ac_try;; 3058a0195d5fSmrgesac 30596f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30600f5b81e5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 30616f5dd5c2Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3062a0195d5fSmrg ac_status=$? 30636f5dd5c2Smrg if test -s conftest.err; then 30646f5dd5c2Smrg sed '10a\ 30656f5dd5c2Smrg... rest of stderr output deleted ... 30666f5dd5c2Smrg 10q' conftest.err >conftest.er1 30676f5dd5c2Smrg cat conftest.er1 >&5 30686f5dd5c2Smrg fi 30696f5dd5c2Smrg rm -f conftest.er1 conftest.err 30700f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30716f5dd5c2Smrg test $ac_status = 0; } 30726f5dd5c2Smrgdone 3073a0195d5fSmrg 30746f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3075a0195d5fSmrg/* end confdefs.h. */ 3076a0195d5fSmrg 3077a0195d5fSmrgint 30780f5b81e5Smrgmain (void) 3079a0195d5fSmrg{ 3080a0195d5fSmrg 3081a0195d5fSmrg ; 3082a0195d5fSmrg return 0; 3083a0195d5fSmrg} 3084a0195d5fSmrg_ACEOF 3085a0195d5fSmrgac_clean_files_save=$ac_clean_files 30866600fe5bSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3087a0195d5fSmrg# Try to create an executable without -o first, disregard a.out. 3088a0195d5fSmrg# It will help us diagnose broken compilers, and finding out an intuition 3089a0195d5fSmrg# of exeext. 30900f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 30910f5b81e5Smrgprintf %s "checking whether the C compiler works... " >&6; } 30920f5b81e5Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 30936600fe5bSmrg 30946600fe5bSmrg# The possible output files: 30956600fe5bSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 30966600fe5bSmrg 3097a0195d5fSmrgac_rmfiles= 3098a0195d5fSmrgfor ac_file in $ac_files 3099a0195d5fSmrgdo 3100a0195d5fSmrg case $ac_file in 31016600fe5bSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3102a0195d5fSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3103a0195d5fSmrg esac 3104a0195d5fSmrgdone 3105a0195d5fSmrgrm -f $ac_rmfiles 3106a0195d5fSmrg 31076f5dd5c2Smrgif { { ac_try="$ac_link_default" 3108a0195d5fSmrgcase "(($ac_try" in 3109a0195d5fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3110a0195d5fSmrg *) ac_try_echo=$ac_try;; 3111a0195d5fSmrgesac 31126f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31130f5b81e5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3114a0195d5fSmrg (eval "$ac_link_default") 2>&5 3115a0195d5fSmrg ac_status=$? 31160f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31170f5b81e5Smrg test $ac_status = 0; } 31180f5b81e5Smrgthen : 3119a0195d5fSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3120a0195d5fSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3121a0195d5fSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3122a0195d5fSmrg# so that the user can short-circuit this test for compilers unknown to 3123a0195d5fSmrg# Autoconf. 3124a0195d5fSmrgfor ac_file in $ac_files '' 3125a0195d5fSmrgdo 3126a0195d5fSmrg test -f "$ac_file" || continue 3127a0195d5fSmrg case $ac_file in 31286600fe5bSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3129a0195d5fSmrg ;; 3130a0195d5fSmrg [ab].out ) 3131a0195d5fSmrg # We found the default executable, but exeext='' is most 3132a0195d5fSmrg # certainly right. 3133a0195d5fSmrg break;; 3134a0195d5fSmrg *.* ) 31350f5b81e5Smrg if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3136a0195d5fSmrg then :; else 3137a0195d5fSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3138a0195d5fSmrg fi 3139a0195d5fSmrg # We set ac_cv_exeext here because the later test for it is not 3140a0195d5fSmrg # safe: cross compilers may not add the suffix if given an `-o' 3141a0195d5fSmrg # argument, so we may need to know it at that point already. 3142a0195d5fSmrg # Even if this section looks crufty: it has the advantage of 3143a0195d5fSmrg # actually working. 3144a0195d5fSmrg break;; 3145a0195d5fSmrg * ) 3146a0195d5fSmrg break;; 3147a0195d5fSmrg esac 3148a0195d5fSmrgdone 3149a0195d5fSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3150a0195d5fSmrg 31510f5b81e5Smrgelse $as_nop 3152a0195d5fSmrg ac_file='' 3153a0195d5fSmrgfi 31540f5b81e5Smrgif test -z "$ac_file" 31550f5b81e5Smrgthen : 31560f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31570f5b81e5Smrgprintf "%s\n" "no" >&6; } 31580f5b81e5Smrgprintf "%s\n" "$as_me: failed program was:" >&5 3159a0195d5fSmrgsed 's/^/| /' conftest.$ac_ext >&5 3160a0195d5fSmrg 31610f5b81e5Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31620f5b81e5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 31632ab73d9fSmrgas_fn_error 77 "C compiler cannot create executables 31642ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; } 31650f5b81e5Smrgelse $as_nop 31660f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31670f5b81e5Smrgprintf "%s\n" "yes" >&6; } 31680f5b81e5Smrgfi 31690f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 31700f5b81e5Smrgprintf %s "checking for C compiler default output file name... " >&6; } 31710f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 31720f5b81e5Smrgprintf "%s\n" "$ac_file" >&6; } 3173a0195d5fSmrgac_exeext=$ac_cv_exeext 3174a0195d5fSmrg 31756600fe5bSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3176a0195d5fSmrgac_clean_files=$ac_clean_files_save 31770f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 31780f5b81e5Smrgprintf %s "checking for suffix of executables... " >&6; } 31796f5dd5c2Smrgif { { ac_try="$ac_link" 3180a0195d5fSmrgcase "(($ac_try" in 3181a0195d5fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3182a0195d5fSmrg *) ac_try_echo=$ac_try;; 3183a0195d5fSmrgesac 31846f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31850f5b81e5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3186a0195d5fSmrg (eval "$ac_link") 2>&5 3187a0195d5fSmrg ac_status=$? 31880f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31890f5b81e5Smrg test $ac_status = 0; } 31900f5b81e5Smrgthen : 3191a0195d5fSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3192a0195d5fSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3193a0195d5fSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3194a0195d5fSmrg# `rm'. 3195a0195d5fSmrgfor ac_file in conftest.exe conftest conftest.*; do 3196a0195d5fSmrg test -f "$ac_file" || continue 3197a0195d5fSmrg case $ac_file in 31986600fe5bSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3199a0195d5fSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3200a0195d5fSmrg break;; 3201a0195d5fSmrg * ) break;; 3202a0195d5fSmrg esac 3203a0195d5fSmrgdone 32040f5b81e5Smrgelse $as_nop 32050f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32060f5b81e5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32072ab73d9fSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 32082ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; } 3209a0195d5fSmrgfi 32106f5dd5c2Smrgrm -f conftest conftest$ac_cv_exeext 32110f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 32120f5b81e5Smrgprintf "%s\n" "$ac_cv_exeext" >&6; } 3213a0195d5fSmrg 3214a0195d5fSmrgrm -f conftest.$ac_ext 3215a0195d5fSmrgEXEEXT=$ac_cv_exeext 3216a0195d5fSmrgac_exeext=$EXEEXT 32176f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 32186f5dd5c2Smrg/* end confdefs.h. */ 32196f5dd5c2Smrg#include <stdio.h> 32206f5dd5c2Smrgint 32210f5b81e5Smrgmain (void) 32226f5dd5c2Smrg{ 32236f5dd5c2SmrgFILE *f = fopen ("conftest.out", "w"); 32246f5dd5c2Smrg return ferror (f) || fclose (f) != 0; 32256f5dd5c2Smrg 32266f5dd5c2Smrg ; 32276f5dd5c2Smrg return 0; 32286f5dd5c2Smrg} 32296f5dd5c2Smrg_ACEOF 32306f5dd5c2Smrgac_clean_files="$ac_clean_files conftest.out" 32316f5dd5c2Smrg# Check that the compiler produces executables we can run. If not, either 32326f5dd5c2Smrg# the compiler is broken, or we cross compile. 32330f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 32340f5b81e5Smrgprintf %s "checking whether we are cross compiling... " >&6; } 32356f5dd5c2Smrgif test "$cross_compiling" != yes; then 32366f5dd5c2Smrg { { ac_try="$ac_link" 32376f5dd5c2Smrgcase "(($ac_try" in 32386f5dd5c2Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32396f5dd5c2Smrg *) ac_try_echo=$ac_try;; 32406f5dd5c2Smrgesac 32416f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32420f5b81e5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 32436f5dd5c2Smrg (eval "$ac_link") 2>&5 32446f5dd5c2Smrg ac_status=$? 32450f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32466f5dd5c2Smrg test $ac_status = 0; } 32476f5dd5c2Smrg if { ac_try='./conftest$ac_cv_exeext' 32486f5dd5c2Smrg { { case "(($ac_try" in 32496f5dd5c2Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32506f5dd5c2Smrg *) ac_try_echo=$ac_try;; 32516f5dd5c2Smrgesac 32526f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32530f5b81e5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 32546f5dd5c2Smrg (eval "$ac_try") 2>&5 32556f5dd5c2Smrg ac_status=$? 32560f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32576f5dd5c2Smrg test $ac_status = 0; }; }; then 32586f5dd5c2Smrg cross_compiling=no 32596f5dd5c2Smrg else 32606f5dd5c2Smrg if test "$cross_compiling" = maybe; then 32616f5dd5c2Smrg cross_compiling=yes 32626f5dd5c2Smrg else 32630f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32640f5b81e5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32650f5b81e5Smrgas_fn_error 77 "cannot run C compiled programs. 32666f5dd5c2SmrgIf you meant to cross compile, use \`--host'. 32672ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; } 32686f5dd5c2Smrg fi 32696f5dd5c2Smrg fi 32706f5dd5c2Smrgfi 32710f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 32720f5b81e5Smrgprintf "%s\n" "$cross_compiling" >&6; } 32736f5dd5c2Smrg 32746f5dd5c2Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 32756f5dd5c2Smrgac_clean_files=$ac_clean_files_save 32760f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 32770f5b81e5Smrgprintf %s "checking for suffix of object files... " >&6; } 32780f5b81e5Smrgif test ${ac_cv_objext+y} 32790f5b81e5Smrgthen : 32800f5b81e5Smrg printf %s "(cached) " >&6 32810f5b81e5Smrgelse $as_nop 32826f5dd5c2Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3283a0195d5fSmrg/* end confdefs.h. */ 3284a0195d5fSmrg 3285a0195d5fSmrgint 32860f5b81e5Smrgmain (void) 3287a0195d5fSmrg{ 3288a0195d5fSmrg 3289a0195d5fSmrg ; 3290a0195d5fSmrg return 0; 3291a0195d5fSmrg} 3292a0195d5fSmrg_ACEOF 3293a0195d5fSmrgrm -f conftest.o conftest.obj 32946f5dd5c2Smrgif { { ac_try="$ac_compile" 3295a0195d5fSmrgcase "(($ac_try" in 3296a0195d5fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3297a0195d5fSmrg *) ac_try_echo=$ac_try;; 3298a0195d5fSmrgesac 32996f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33000f5b81e5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3301a0195d5fSmrg (eval "$ac_compile") 2>&5 3302a0195d5fSmrg ac_status=$? 33030f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33040f5b81e5Smrg test $ac_status = 0; } 33050f5b81e5Smrgthen : 3306a0195d5fSmrg for ac_file in conftest.o conftest.obj conftest.*; do 3307a0195d5fSmrg test -f "$ac_file" || continue; 3308a0195d5fSmrg case $ac_file in 33096600fe5bSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3310a0195d5fSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3311a0195d5fSmrg break;; 3312a0195d5fSmrg esac 3313a0195d5fSmrgdone 33140f5b81e5Smrgelse $as_nop 33150f5b81e5Smrg printf "%s\n" "$as_me: failed program was:" >&5 3316a0195d5fSmrgsed 's/^/| /' conftest.$ac_ext >&5 3317a0195d5fSmrg 33180f5b81e5Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33190f5b81e5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 33202ab73d9fSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 33212ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; } 3322a0195d5fSmrgfi 3323a0195d5fSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3324a0195d5fSmrgfi 33250f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 33260f5b81e5Smrgprintf "%s\n" "$ac_cv_objext" >&6; } 3327a0195d5fSmrgOBJEXT=$ac_cv_objext 3328a0195d5fSmrgac_objext=$OBJEXT 33290f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 33300f5b81e5Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; } 33310f5b81e5Smrgif test ${ac_cv_c_compiler_gnu+y} 33320f5b81e5Smrgthen : 33330f5b81e5Smrg printf %s "(cached) " >&6 33340f5b81e5Smrgelse $as_nop 33356f5dd5c2Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3336a0195d5fSmrg/* end confdefs.h. */ 3337a0195d5fSmrg 3338a0195d5fSmrgint 33390f5b81e5Smrgmain (void) 3340a0195d5fSmrg{ 3341a0195d5fSmrg#ifndef __GNUC__ 3342a0195d5fSmrg choke me 3343a0195d5fSmrg#endif 3344a0195d5fSmrg 3345a0195d5fSmrg ; 3346a0195d5fSmrg return 0; 3347a0195d5fSmrg} 3348a0195d5fSmrg_ACEOF 33490f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 33500f5b81e5Smrgthen : 3351a0195d5fSmrg ac_compiler_gnu=yes 33520f5b81e5Smrgelse $as_nop 33536f5dd5c2Smrg ac_compiler_gnu=no 3354a0195d5fSmrgfi 33550f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3356a0195d5fSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3357a0195d5fSmrg 3358a0195d5fSmrgfi 33590f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 33600f5b81e5Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 33610f5b81e5Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 33620f5b81e5Smrg 33636600fe5bSmrgif test $ac_compiler_gnu = yes; then 33646600fe5bSmrg GCC=yes 33656600fe5bSmrgelse 33666600fe5bSmrg GCC= 33676600fe5bSmrgfi 33680f5b81e5Smrgac_test_CFLAGS=${CFLAGS+y} 3369a0195d5fSmrgac_save_CFLAGS=$CFLAGS 33700f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 33710f5b81e5Smrgprintf %s "checking whether $CC accepts -g... " >&6; } 33720f5b81e5Smrgif test ${ac_cv_prog_cc_g+y} 33730f5b81e5Smrgthen : 33740f5b81e5Smrg printf %s "(cached) " >&6 33750f5b81e5Smrgelse $as_nop 3376a0195d5fSmrg ac_save_c_werror_flag=$ac_c_werror_flag 3377a0195d5fSmrg ac_c_werror_flag=yes 3378a0195d5fSmrg ac_cv_prog_cc_g=no 3379a0195d5fSmrg CFLAGS="-g" 33806f5dd5c2Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3381a0195d5fSmrg/* end confdefs.h. */ 3382a0195d5fSmrg 3383a0195d5fSmrgint 33840f5b81e5Smrgmain (void) 3385a0195d5fSmrg{ 3386a0195d5fSmrg 3387a0195d5fSmrg ; 3388a0195d5fSmrg return 0; 3389a0195d5fSmrg} 3390a0195d5fSmrg_ACEOF 33910f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 33920f5b81e5Smrgthen : 3393a0195d5fSmrg ac_cv_prog_cc_g=yes 33940f5b81e5Smrgelse $as_nop 33956f5dd5c2Smrg CFLAGS="" 33966f5dd5c2Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3397a0195d5fSmrg/* end confdefs.h. */ 3398a0195d5fSmrg 3399a0195d5fSmrgint 34000f5b81e5Smrgmain (void) 3401a0195d5fSmrg{ 3402a0195d5fSmrg 3403a0195d5fSmrg ; 3404a0195d5fSmrg return 0; 3405a0195d5fSmrg} 3406a0195d5fSmrg_ACEOF 34070f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 34080f5b81e5Smrgthen : 3409a0195d5fSmrg 34100f5b81e5Smrgelse $as_nop 34116f5dd5c2Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3412a0195d5fSmrg CFLAGS="-g" 34136f5dd5c2Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3414a0195d5fSmrg/* end confdefs.h. */ 3415a0195d5fSmrg 3416a0195d5fSmrgint 34170f5b81e5Smrgmain (void) 3418a0195d5fSmrg{ 3419a0195d5fSmrg 3420a0195d5fSmrg ; 3421a0195d5fSmrg return 0; 3422a0195d5fSmrg} 3423a0195d5fSmrg_ACEOF 34240f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 34250f5b81e5Smrgthen : 3426a0195d5fSmrg ac_cv_prog_cc_g=yes 3427a0195d5fSmrgfi 34280f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3429a0195d5fSmrgfi 34300f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3431a0195d5fSmrgfi 34320f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3433a0195d5fSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3434a0195d5fSmrgfi 34350f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 34360f5b81e5Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 34370f5b81e5Smrgif test $ac_test_CFLAGS; then 3438a0195d5fSmrg CFLAGS=$ac_save_CFLAGS 3439a0195d5fSmrgelif test $ac_cv_prog_cc_g = yes; then 3440a0195d5fSmrg if test "$GCC" = yes; then 3441a0195d5fSmrg CFLAGS="-g -O2" 3442a0195d5fSmrg else 3443a0195d5fSmrg CFLAGS="-g" 3444a0195d5fSmrg fi 3445a0195d5fSmrgelse 3446a0195d5fSmrg if test "$GCC" = yes; then 3447a0195d5fSmrg CFLAGS="-O2" 3448a0195d5fSmrg else 3449a0195d5fSmrg CFLAGS= 3450a0195d5fSmrg fi 3451a0195d5fSmrgfi 34520f5b81e5Smrgac_prog_cc_stdc=no 34530f5b81e5Smrgif test x$ac_prog_cc_stdc = xno 34540f5b81e5Smrgthen : 34550f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 34560f5b81e5Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; } 34570f5b81e5Smrgif test ${ac_cv_prog_cc_c11+y} 34580f5b81e5Smrgthen : 34590f5b81e5Smrg printf %s "(cached) " >&6 34600f5b81e5Smrgelse $as_nop 34610f5b81e5Smrg ac_cv_prog_cc_c11=no 3462a0195d5fSmrgac_save_CC=$CC 34636f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3464a0195d5fSmrg/* end confdefs.h. */ 34650f5b81e5Smrg$ac_c_conftest_c11_program 34660f5b81e5Smrg_ACEOF 34670f5b81e5Smrgfor ac_arg in '' -std=gnu11 34680f5b81e5Smrgdo 34690f5b81e5Smrg CC="$ac_save_CC $ac_arg" 34700f5b81e5Smrg if ac_fn_c_try_compile "$LINENO" 34710f5b81e5Smrgthen : 34720f5b81e5Smrg ac_cv_prog_cc_c11=$ac_arg 34730f5b81e5Smrgfi 34740f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 34750f5b81e5Smrg test "x$ac_cv_prog_cc_c11" != "xno" && break 34760f5b81e5Smrgdone 34770f5b81e5Smrgrm -f conftest.$ac_ext 34780f5b81e5SmrgCC=$ac_save_CC 34790f5b81e5Smrgfi 3480a0195d5fSmrg 34810f5b81e5Smrgif test "x$ac_cv_prog_cc_c11" = xno 34820f5b81e5Smrgthen : 34830f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 34840f5b81e5Smrgprintf "%s\n" "unsupported" >&6; } 34850f5b81e5Smrgelse $as_nop 34860f5b81e5Smrg if test "x$ac_cv_prog_cc_c11" = x 34870f5b81e5Smrgthen : 34880f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 34890f5b81e5Smrgprintf "%s\n" "none needed" >&6; } 34900f5b81e5Smrgelse $as_nop 34910f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 34920f5b81e5Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 34930f5b81e5Smrg CC="$CC $ac_cv_prog_cc_c11" 34940f5b81e5Smrgfi 34950f5b81e5Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 34960f5b81e5Smrg ac_prog_cc_stdc=c11 34970f5b81e5Smrgfi 34980f5b81e5Smrgfi 34990f5b81e5Smrgif test x$ac_prog_cc_stdc = xno 35000f5b81e5Smrgthen : 35010f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 35020f5b81e5Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; } 35030f5b81e5Smrgif test ${ac_cv_prog_cc_c99+y} 35040f5b81e5Smrgthen : 35050f5b81e5Smrg printf %s "(cached) " >&6 35060f5b81e5Smrgelse $as_nop 35070f5b81e5Smrg ac_cv_prog_cc_c99=no 35080f5b81e5Smrgac_save_CC=$CC 35090f5b81e5Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 35100f5b81e5Smrg/* end confdefs.h. */ 35110f5b81e5Smrg$ac_c_conftest_c99_program 35120f5b81e5Smrg_ACEOF 35130f5b81e5Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 35140f5b81e5Smrgdo 35150f5b81e5Smrg CC="$ac_save_CC $ac_arg" 35160f5b81e5Smrg if ac_fn_c_try_compile "$LINENO" 35170f5b81e5Smrgthen : 35180f5b81e5Smrg ac_cv_prog_cc_c99=$ac_arg 35190f5b81e5Smrgfi 35200f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 35210f5b81e5Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 35220f5b81e5Smrgdone 35230f5b81e5Smrgrm -f conftest.$ac_ext 35240f5b81e5SmrgCC=$ac_save_CC 35250f5b81e5Smrgfi 3526a0195d5fSmrg 35270f5b81e5Smrgif test "x$ac_cv_prog_cc_c99" = xno 35280f5b81e5Smrgthen : 35290f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 35300f5b81e5Smrgprintf "%s\n" "unsupported" >&6; } 35310f5b81e5Smrgelse $as_nop 35320f5b81e5Smrg if test "x$ac_cv_prog_cc_c99" = x 35330f5b81e5Smrgthen : 35340f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 35350f5b81e5Smrgprintf "%s\n" "none needed" >&6; } 35360f5b81e5Smrgelse $as_nop 35370f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 35380f5b81e5Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 35390f5b81e5Smrg CC="$CC $ac_cv_prog_cc_c99" 35400f5b81e5Smrgfi 35410f5b81e5Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 35420f5b81e5Smrg ac_prog_cc_stdc=c99 35430f5b81e5Smrgfi 35440f5b81e5Smrgfi 35450f5b81e5Smrgif test x$ac_prog_cc_stdc = xno 35460f5b81e5Smrgthen : 35470f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 35480f5b81e5Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; } 35490f5b81e5Smrgif test ${ac_cv_prog_cc_c89+y} 35500f5b81e5Smrgthen : 35510f5b81e5Smrg printf %s "(cached) " >&6 35520f5b81e5Smrgelse $as_nop 35530f5b81e5Smrg ac_cv_prog_cc_c89=no 35540f5b81e5Smrgac_save_CC=$CC 35550f5b81e5Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 35560f5b81e5Smrg/* end confdefs.h. */ 35570f5b81e5Smrg$ac_c_conftest_c89_program 3558a0195d5fSmrg_ACEOF 35590f5b81e5Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3560a0195d5fSmrgdo 3561a0195d5fSmrg CC="$ac_save_CC $ac_arg" 35620f5b81e5Smrg if ac_fn_c_try_compile "$LINENO" 35630f5b81e5Smrgthen : 3564a0195d5fSmrg ac_cv_prog_cc_c89=$ac_arg 3565a0195d5fSmrgfi 35660f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 3567a0195d5fSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3568a0195d5fSmrgdone 3569a0195d5fSmrgrm -f conftest.$ac_ext 3570a0195d5fSmrgCC=$ac_save_CC 3571a0195d5fSmrgfi 3572a0195d5fSmrg 35730f5b81e5Smrgif test "x$ac_cv_prog_cc_c89" = xno 35740f5b81e5Smrgthen : 35750f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 35760f5b81e5Smrgprintf "%s\n" "unsupported" >&6; } 35770f5b81e5Smrgelse $as_nop 35780f5b81e5Smrg if test "x$ac_cv_prog_cc_c89" = x 35790f5b81e5Smrgthen : 35800f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 35810f5b81e5Smrgprintf "%s\n" "none needed" >&6; } 35820f5b81e5Smrgelse $as_nop 35830f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 35840f5b81e5Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 35850f5b81e5Smrg CC="$CC $ac_cv_prog_cc_c89" 35860f5b81e5Smrgfi 35870f5b81e5Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 35880f5b81e5Smrg ac_prog_cc_stdc=c89 35890f5b81e5Smrgfi 35906f5dd5c2Smrgfi 3591a0195d5fSmrg 3592a0195d5fSmrgac_ext=c 3593a0195d5fSmrgac_cpp='$CPP $CPPFLAGS' 3594a0195d5fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3595a0195d5fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3596a0195d5fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3597a0195d5fSmrg 35980f5b81e5Smrg 35990f5b81e5Smrg ac_ext=c 360040a76396Smrgac_cpp='$CPP $CPPFLAGS' 360140a76396Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 360240a76396Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 360340a76396Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 36040f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 36050f5b81e5Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; } 36060f5b81e5Smrgif test ${am_cv_prog_cc_c_o+y} 36070f5b81e5Smrgthen : 36080f5b81e5Smrg printf %s "(cached) " >&6 36090f5b81e5Smrgelse $as_nop 361040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 361140a76396Smrg/* end confdefs.h. */ 36126600fe5bSmrg 361340a76396Smrgint 36140f5b81e5Smrgmain (void) 361540a76396Smrg{ 36166f5dd5c2Smrg 36176f5dd5c2Smrg ; 36186f5dd5c2Smrg return 0; 36196f5dd5c2Smrg} 36206f5dd5c2Smrg_ACEOF 362140a76396Smrg # Make sure it works both with $CC and with simple cc. 362240a76396Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 362340a76396Smrg # compilers refuse to overwrite an existing .o file with -o, 362440a76396Smrg # though they will create one. 362540a76396Smrg am_cv_prog_cc_c_o=yes 362640a76396Smrg for am_i in 1 2; do 362740a76396Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 362840a76396Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 362940a76396Smrg ac_status=$? 363040a76396Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 363140a76396Smrg (exit $ac_status); } \ 363240a76396Smrg && test -f conftest2.$ac_objext; then 363340a76396Smrg : OK 363440a76396Smrg else 363540a76396Smrg am_cv_prog_cc_c_o=no 363640a76396Smrg break 363740a76396Smrg fi 36380f5b81e5Smrg done 36390f5b81e5Smrg rm -f core conftest* 36400f5b81e5Smrg unset am_i 36410f5b81e5Smrgfi 36420f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 36430f5b81e5Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 36440f5b81e5Smrgif test "$am_cv_prog_cc_c_o" != yes; then 36450f5b81e5Smrg # Losing compiler, so override with the script. 36460f5b81e5Smrg # FIXME: It is wrong to rewrite CC. 36470f5b81e5Smrg # But if we don't then we get into trouble of one sort or another. 36480f5b81e5Smrg # A longer-term fix would be to have automake use am__CC in this case, 36490f5b81e5Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 36500f5b81e5Smrg CC="$am_aux_dir/compile $CC" 36516600fe5bSmrgfi 36526600fe5bSmrgac_ext=c 36536600fe5bSmrgac_cpp='$CPP $CPPFLAGS' 36546600fe5bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36556600fe5bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36566600fe5bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 36576600fe5bSmrg 36586600fe5bSmrg 36590f5b81e5Smrg 36600f5b81e5Smrgac_header= ac_cache= 36610f5b81e5Smrgfor ac_item in $ac_header_c_list 36626600fe5bSmrgdo 36630f5b81e5Smrg if test $ac_cache; then 36640f5b81e5Smrg ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 36650f5b81e5Smrg if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 36660f5b81e5Smrg printf "%s\n" "#define $ac_item 1" >> confdefs.h 36676600fe5bSmrg fi 36680f5b81e5Smrg ac_header= ac_cache= 36690f5b81e5Smrg elif test $ac_header; then 36700f5b81e5Smrg ac_cache=$ac_item 36710f5b81e5Smrg else 36720f5b81e5Smrg ac_header=$ac_item 36736600fe5bSmrg fi 36740f5b81e5Smrgdone 36756600fe5bSmrg 36766600fe5bSmrg 36776600fe5bSmrg 36786600fe5bSmrg 36796600fe5bSmrg 36800f5b81e5Smrg 36810f5b81e5Smrg 36820f5b81e5Smrg 36830f5b81e5Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 36840f5b81e5Smrgthen : 36850f5b81e5Smrg 36860f5b81e5Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 36870f5b81e5Smrg 36886600fe5bSmrgfi 36896600fe5bSmrg 36906600fe5bSmrg 36910f5b81e5Smrg 36920f5b81e5Smrg 36930f5b81e5Smrg 36940f5b81e5Smrg 36950f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 36960f5b81e5Smrgprintf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 36970f5b81e5Smrgif test ${ac_cv_safe_to_define___extensions__+y} 36980f5b81e5Smrgthen : 36990f5b81e5Smrg printf %s "(cached) " >&6 37000f5b81e5Smrgelse $as_nop 37016f5dd5c2Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37026600fe5bSmrg/* end confdefs.h. */ 37036600fe5bSmrg 37040f5b81e5Smrg# define __EXTENSIONS__ 1 37050f5b81e5Smrg $ac_includes_default 37066600fe5bSmrgint 37070f5b81e5Smrgmain (void) 37086600fe5bSmrg{ 37096600fe5bSmrg 37106600fe5bSmrg ; 37116600fe5bSmrg return 0; 37126600fe5bSmrg} 37136600fe5bSmrg_ACEOF 37140f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 37150f5b81e5Smrgthen : 37160f5b81e5Smrg ac_cv_safe_to_define___extensions__=yes 37170f5b81e5Smrgelse $as_nop 37180f5b81e5Smrg ac_cv_safe_to_define___extensions__=no 37196600fe5bSmrgfi 37200f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37216600fe5bSmrgfi 37220f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 37230f5b81e5Smrgprintf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 37246600fe5bSmrg 37250f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 37260f5b81e5Smrgprintf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 37270f5b81e5Smrgif test ${ac_cv_should_define__xopen_source+y} 37280f5b81e5Smrgthen : 37290f5b81e5Smrg printf %s "(cached) " >&6 37300f5b81e5Smrgelse $as_nop 37310f5b81e5Smrg ac_cv_should_define__xopen_source=no 37320f5b81e5Smrg if test $ac_cv_header_wchar_h = yes 37330f5b81e5Smrgthen : 37346f5dd5c2Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37356600fe5bSmrg/* end confdefs.h. */ 37366f5dd5c2Smrg 37370f5b81e5Smrg #include <wchar.h> 37380f5b81e5Smrg mbstate_t x; 37390f5b81e5Smrgint 37400f5b81e5Smrgmain (void) 37410f5b81e5Smrg{ 37426600fe5bSmrg 37430f5b81e5Smrg ; 37440f5b81e5Smrg return 0; 37450f5b81e5Smrg} 37460f5b81e5Smrg_ACEOF 37470f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 37480f5b81e5Smrgthen : 37496600fe5bSmrg 37500f5b81e5Smrgelse $as_nop 37516f5dd5c2Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37526600fe5bSmrg/* end confdefs.h. */ 37536600fe5bSmrg 37540f5b81e5Smrg #define _XOPEN_SOURCE 500 37550f5b81e5Smrg #include <wchar.h> 37560f5b81e5Smrg mbstate_t x; 37576600fe5bSmrgint 37580f5b81e5Smrgmain (void) 37596600fe5bSmrg{ 37600f5b81e5Smrg 37610f5b81e5Smrg ; 37626600fe5bSmrg return 0; 37636600fe5bSmrg} 37646600fe5bSmrg_ACEOF 37650f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 37660f5b81e5Smrgthen : 37670f5b81e5Smrg ac_cv_should_define__xopen_source=yes 37686600fe5bSmrgfi 37690f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37706600fe5bSmrgfi 37710f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37726600fe5bSmrgfi 37736600fe5bSmrgfi 37740f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 37750f5b81e5Smrgprintf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 37766600fe5bSmrg 37770f5b81e5Smrg printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 37786600fe5bSmrg 37790f5b81e5Smrg printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 37806600fe5bSmrg 37810f5b81e5Smrg printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 37826600fe5bSmrg 37830f5b81e5Smrg printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 37846600fe5bSmrg 37850f5b81e5Smrg printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 37866600fe5bSmrg 37870f5b81e5Smrg printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 37886f5dd5c2Smrg 37890f5b81e5Smrg printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3790ff6cf368Smrg 37910f5b81e5Smrg printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3792ff6cf368Smrg 37930f5b81e5Smrg printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3794ff6cf368Smrg 37950f5b81e5Smrg printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3796ff6cf368Smrg 37970f5b81e5Smrg printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3798ff6cf368Smrg 37990f5b81e5Smrg printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3800ff6cf368Smrg 38010f5b81e5Smrg printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 380240a76396Smrg 38030f5b81e5Smrg printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 380440a76396Smrg 38050f5b81e5Smrg printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 380640a76396Smrg 38070f5b81e5Smrg if test $ac_cv_header_minix_config_h = yes 38080f5b81e5Smrgthen : 38090f5b81e5Smrg MINIX=yes 38100f5b81e5Smrg printf "%s\n" "#define _MINIX 1" >>confdefs.h 381140a76396Smrg 38120f5b81e5Smrg printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 381340a76396Smrg 38140f5b81e5Smrg printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 381540a76396Smrg 38160f5b81e5Smrgelse $as_nop 38170f5b81e5Smrg MINIX= 381840a76396Smrgfi 38190f5b81e5Smrg if test $ac_cv_safe_to_define___extensions__ = yes 38200f5b81e5Smrgthen : 38210f5b81e5Smrg printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 382240a76396Smrg 38230f5b81e5Smrgfi 38240f5b81e5Smrg if test $ac_cv_should_define__xopen_source = yes 38250f5b81e5Smrgthen : 38260f5b81e5Smrg printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 382740a76396Smrg 38280f5b81e5Smrgfi 382940a76396Smrg 383040a76396Smrg 383140a76396Smrg# Initialize Automake 38320f5b81e5Smrgam__api_version='1.16' 38330f5b81e5Smrg 383440a76396Smrg 38350f5b81e5Smrg # Find a good install program. We prefer a C program (faster), 383640a76396Smrg# so one script is as good as another. But avoid the broken or 383740a76396Smrg# incompatible versions: 383840a76396Smrg# SysV /etc/install, /usr/sbin/install 383940a76396Smrg# SunOS /usr/etc/install 384040a76396Smrg# IRIX /sbin/install 384140a76396Smrg# AIX /bin/install 384240a76396Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 384340a76396Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 384440a76396Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 384540a76396Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 384640a76396Smrg# OS/2's system install, which has a completely different semantic 384740a76396Smrg# ./install, which can be erroneously created by make from ./install.sh. 384840a76396Smrg# Reject install programs that cannot install multiple files. 38490f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 38500f5b81e5Smrgprintf %s "checking for a BSD-compatible install... " >&6; } 385140a76396Smrgif test -z "$INSTALL"; then 38520f5b81e5Smrgif test ${ac_cv_path_install+y} 38530f5b81e5Smrgthen : 38540f5b81e5Smrg printf %s "(cached) " >&6 38550f5b81e5Smrgelse $as_nop 38566f5dd5c2Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38576f5dd5c2Smrgfor as_dir in $PATH 38586600fe5bSmrgdo 38596f5dd5c2Smrg IFS=$as_save_IFS 38600f5b81e5Smrg case $as_dir in #((( 38610f5b81e5Smrg '') as_dir=./ ;; 38620f5b81e5Smrg */) ;; 38630f5b81e5Smrg *) as_dir=$as_dir/ ;; 38640f5b81e5Smrg esac 38650f5b81e5Smrg # Account for fact that we put trailing slashes in our PATH walk. 38660f5b81e5Smrgcase $as_dir in #(( 38670f5b81e5Smrg ./ | /[cC]/* | \ 386840a76396Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 386940a76396Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 387040a76396Smrg /usr/ucb/* ) ;; 387140a76396Smrg *) 387240a76396Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 387340a76396Smrg # Don't use installbsd from OSF since it installs stuff as root 387440a76396Smrg # by default. 387540a76396Smrg for ac_prog in ginstall scoinst install; do 387640a76396Smrg for ac_exec_ext in '' $ac_executable_extensions; do 38770f5b81e5Smrg if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 387840a76396Smrg if test $ac_prog = install && 38790f5b81e5Smrg grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 388040a76396Smrg # AIX install. It has an incompatible calling convention. 388140a76396Smrg : 388240a76396Smrg elif test $ac_prog = install && 38830f5b81e5Smrg grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 388440a76396Smrg # program-specific install script used by HP pwplus--don't use. 388540a76396Smrg : 388640a76396Smrg else 388740a76396Smrg rm -rf conftest.one conftest.two conftest.dir 388840a76396Smrg echo one > conftest.one 388940a76396Smrg echo two > conftest.two 389040a76396Smrg mkdir conftest.dir 38910f5b81e5Smrg if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 389240a76396Smrg test -s conftest.one && test -s conftest.two && 389340a76396Smrg test -s conftest.dir/conftest.one && 389440a76396Smrg test -s conftest.dir/conftest.two 389540a76396Smrg then 38960f5b81e5Smrg ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 389740a76396Smrg break 3 389840a76396Smrg fi 389940a76396Smrg fi 390040a76396Smrg fi 390140a76396Smrg done 390240a76396Smrg done 390340a76396Smrg ;; 390440a76396Smrgesac 390540a76396Smrg 39066f5dd5c2Smrg done 39076f5dd5c2SmrgIFS=$as_save_IFS 39086f5dd5c2Smrg 390940a76396Smrgrm -rf conftest.one conftest.two conftest.dir 391040a76396Smrg 39116f5dd5c2Smrgfi 39120f5b81e5Smrg if test ${ac_cv_path_install+y}; then 391340a76396Smrg INSTALL=$ac_cv_path_install 391440a76396Smrg else 391540a76396Smrg # As a last resort, use the slow shell script. Don't cache a 391640a76396Smrg # value for INSTALL within a source directory, because that will 391740a76396Smrg # break other packages using the cache if that directory is 391840a76396Smrg # removed, or if the value is a relative name. 391940a76396Smrg INSTALL=$ac_install_sh 392040a76396Smrg fi 392140a76396Smrgfi 39220f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 39230f5b81e5Smrgprintf "%s\n" "$INSTALL" >&6; } 392440a76396Smrg 392540a76396Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 392640a76396Smrg# It thinks the first close brace ends the variable substitution. 392740a76396Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 392840a76396Smrg 392940a76396Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 393040a76396Smrg 393140a76396Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 393240a76396Smrg 39330f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 39340f5b81e5Smrgprintf %s "checking whether build environment is sane... " >&6; } 393540a76396Smrg# Reject unsafe characters in $srcdir or the absolute working directory 393640a76396Smrg# name. Accept space and tab only in the latter. 393740a76396Smrgam_lf=' 393840a76396Smrg' 393940a76396Smrgcase `pwd` in 394040a76396Smrg *[\\\"\#\$\&\'\`$am_lf]*) 394140a76396Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 394240a76396Smrgesac 394340a76396Smrgcase $srcdir in 394440a76396Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 394540a76396Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 394640a76396Smrgesac 394740a76396Smrg 394840a76396Smrg# Do 'set' in a subshell so we don't clobber the current shell's 394940a76396Smrg# arguments. Must try -L first in case configure is actually a 395040a76396Smrg# symlink; some systems play weird games with the mod time of symlinks 395140a76396Smrg# (eg FreeBSD returns the mod time of the symlink's containing 395240a76396Smrg# directory). 395340a76396Smrgif ( 395440a76396Smrg am_has_slept=no 395540a76396Smrg for am_try in 1 2; do 395640a76396Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 395740a76396Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 395840a76396Smrg if test "$*" = "X"; then 395940a76396Smrg # -L didn't work. 396040a76396Smrg set X `ls -t "$srcdir/configure" conftest.file` 396140a76396Smrg fi 396240a76396Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 396340a76396Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 396440a76396Smrg 396540a76396Smrg # If neither matched, then we have a broken ls. This can happen 396640a76396Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 396740a76396Smrg # broken ls alias from the environment. This has actually 396840a76396Smrg # happened. Such a system could not be considered "sane". 396940a76396Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 397040a76396Smrg alias in your environment" "$LINENO" 5 397140a76396Smrg fi 397240a76396Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 397340a76396Smrg break 397440a76396Smrg fi 397540a76396Smrg # Just in case. 397640a76396Smrg sleep 1 397740a76396Smrg am_has_slept=yes 397840a76396Smrg done 397940a76396Smrg test "$2" = conftest.file 398040a76396Smrg ) 398140a76396Smrgthen 398240a76396Smrg # Ok. 398340a76396Smrg : 39846600fe5bSmrgelse 398540a76396Smrg as_fn_error $? "newly created file is older than distributed files! 398640a76396SmrgCheck your system clock" "$LINENO" 5 39876600fe5bSmrgfi 39880f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39890f5b81e5Smrgprintf "%s\n" "yes" >&6; } 399040a76396Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 399140a76396Smrg# generated files are strictly newer. 399240a76396Smrgam_sleep_pid= 399340a76396Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 399440a76396Smrg ( sleep 1 ) & 399540a76396Smrg am_sleep_pid=$! 399640a76396Smrgfi 399740a76396Smrg 399840a76396Smrgrm -f conftest.file 39996600fe5bSmrg 400040a76396Smrgtest "$program_prefix" != NONE && 400140a76396Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 400240a76396Smrg# Use a double $ so make ignores it. 400340a76396Smrgtest "$program_suffix" != NONE && 400440a76396Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 400540a76396Smrg# Double any \ or $. 400640a76396Smrg# By default was `s,x,x', remove it if useless. 400740a76396Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 40080f5b81e5Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 40096600fe5bSmrg 40100f5b81e5Smrg 40110f5b81e5Smrg if test x"${MISSING+set}" != xset; then 40120f5b81e5Smrg MISSING="\${SHELL} '$am_aux_dir/missing'" 40136600fe5bSmrgfi 401440a76396Smrg# Use eval to expand $SHELL 401540a76396Smrgif eval "$MISSING --is-lightweight"; then 401640a76396Smrg am_missing_run="$MISSING " 401740a76396Smrgelse 401840a76396Smrg am_missing_run= 40190f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 40200f5b81e5Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 402140a76396Smrgfi 402240a76396Smrg 4023feee4651Smrgif test x"${install_sh+set}" != xset; then 402440a76396Smrg case $am_aux_dir in 402540a76396Smrg *\ * | *\ *) 402640a76396Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 402740a76396Smrg *) 402840a76396Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 402940a76396Smrg esac 403040a76396Smrgfi 403140a76396Smrg 403240a76396Smrg# Installed binaries are usually stripped using 'strip' when the user 403340a76396Smrg# run "make install-strip". However 'strip' might not be the right 403440a76396Smrg# tool to use in cross-compilation environments, therefore Automake 403540a76396Smrg# will honor the 'STRIP' environment variable to overrule this program. 403640a76396Smrgif test "$cross_compiling" != no; then 403740a76396Smrg if test -n "$ac_tool_prefix"; then 403840a76396Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 403940a76396Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 40400f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40410f5b81e5Smrgprintf %s "checking for $ac_word... " >&6; } 40420f5b81e5Smrgif test ${ac_cv_prog_STRIP+y} 40430f5b81e5Smrgthen : 40440f5b81e5Smrg printf %s "(cached) " >&6 40450f5b81e5Smrgelse $as_nop 404640a76396Smrg if test -n "$STRIP"; then 404740a76396Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 404840a76396Smrgelse 404940a76396Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40506f5dd5c2Smrgfor as_dir in $PATH 40516f5dd5c2Smrgdo 40526f5dd5c2Smrg IFS=$as_save_IFS 40530f5b81e5Smrg case $as_dir in #((( 40540f5b81e5Smrg '') as_dir=./ ;; 40550f5b81e5Smrg */) ;; 40560f5b81e5Smrg *) as_dir=$as_dir/ ;; 40570f5b81e5Smrg esac 40586f5dd5c2Smrg for ac_exec_ext in '' $ac_executable_extensions; do 40590f5b81e5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 406040a76396Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 40610f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 40626f5dd5c2Smrg break 2 40636f5dd5c2Smrg fi 40646f5dd5c2Smrgdone 40656f5dd5c2Smrg done 40666f5dd5c2SmrgIFS=$as_save_IFS 40676f5dd5c2Smrg 40686f5dd5c2Smrgfi 406940a76396Smrgfi 407040a76396SmrgSTRIP=$ac_cv_prog_STRIP 407140a76396Smrgif test -n "$STRIP"; then 40720f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40730f5b81e5Smrgprintf "%s\n" "$STRIP" >&6; } 40746f5dd5c2Smrgelse 40750f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40760f5b81e5Smrgprintf "%s\n" "no" >&6; } 40776f5dd5c2Smrgfi 40786600fe5bSmrg 407940a76396Smrg 408040a76396Smrgfi 408140a76396Smrgif test -z "$ac_cv_prog_STRIP"; then 408240a76396Smrg ac_ct_STRIP=$STRIP 408340a76396Smrg # Extract the first word of "strip", so it can be a program name with args. 408440a76396Smrgset dummy strip; ac_word=$2 40850f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40860f5b81e5Smrgprintf %s "checking for $ac_word... " >&6; } 40870f5b81e5Smrgif test ${ac_cv_prog_ac_ct_STRIP+y} 40880f5b81e5Smrgthen : 40890f5b81e5Smrg printf %s "(cached) " >&6 40900f5b81e5Smrgelse $as_nop 409140a76396Smrg if test -n "$ac_ct_STRIP"; then 409240a76396Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 409340a76396Smrgelse 409440a76396Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 409540a76396Smrgfor as_dir in $PATH 409640a76396Smrgdo 409740a76396Smrg IFS=$as_save_IFS 40980f5b81e5Smrg case $as_dir in #((( 40990f5b81e5Smrg '') as_dir=./ ;; 41000f5b81e5Smrg */) ;; 41010f5b81e5Smrg *) as_dir=$as_dir/ ;; 41020f5b81e5Smrg esac 410340a76396Smrg for ac_exec_ext in '' $ac_executable_extensions; do 41040f5b81e5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 410540a76396Smrg ac_cv_prog_ac_ct_STRIP="strip" 41060f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 410740a76396Smrg break 2 410840a76396Smrg fi 410940a76396Smrgdone 411040a76396Smrg done 411140a76396SmrgIFS=$as_save_IFS 411240a76396Smrg 411340a76396Smrgfi 411440a76396Smrgfi 411540a76396Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 411640a76396Smrgif test -n "$ac_ct_STRIP"; then 41170f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 41180f5b81e5Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; } 411940a76396Smrgelse 41200f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41210f5b81e5Smrgprintf "%s\n" "no" >&6; } 412240a76396Smrgfi 412340a76396Smrg 412440a76396Smrg if test "x$ac_ct_STRIP" = x; then 412540a76396Smrg STRIP=":" 41266f5dd5c2Smrg else 41276f5dd5c2Smrg case $cross_compiling:$ac_tool_warned in 41286f5dd5c2Smrgyes:) 41290f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41300f5b81e5Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41316f5dd5c2Smrgac_tool_warned=yes ;; 41326f5dd5c2Smrgesac 413340a76396Smrg STRIP=$ac_ct_STRIP 41346f5dd5c2Smrg fi 41356f5dd5c2Smrgelse 413640a76396Smrg STRIP="$ac_cv_prog_STRIP" 41376f5dd5c2Smrgfi 41386600fe5bSmrg 41396f5dd5c2Smrgfi 414040a76396SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 414140a76396Smrg 41420f5b81e5Smrg 41430f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 41440f5b81e5Smrgprintf %s "checking for a race-free mkdir -p... " >&6; } 414540a76396Smrgif test -z "$MKDIR_P"; then 41460f5b81e5Smrg if test ${ac_cv_path_mkdir+y} 41470f5b81e5Smrgthen : 41480f5b81e5Smrg printf %s "(cached) " >&6 41490f5b81e5Smrgelse $as_nop 415040a76396Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 415140a76396Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 415240a76396Smrgdo 415340a76396Smrg IFS=$as_save_IFS 41540f5b81e5Smrg case $as_dir in #((( 41550f5b81e5Smrg '') as_dir=./ ;; 41560f5b81e5Smrg */) ;; 41570f5b81e5Smrg *) as_dir=$as_dir/ ;; 41580f5b81e5Smrg esac 415940a76396Smrg for ac_prog in mkdir gmkdir; do 416040a76396Smrg for ac_exec_ext in '' $ac_executable_extensions; do 41610f5b81e5Smrg as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 41620f5b81e5Smrg case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 41630f5b81e5Smrg 'mkdir ('*'coreutils) '* | \ 41640f5b81e5Smrg 'BusyBox '* | \ 416540a76396Smrg 'mkdir (fileutils) '4.1*) 41660f5b81e5Smrg ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 416740a76396Smrg break 3;; 416840a76396Smrg esac 416940a76396Smrg done 417040a76396Smrg done 417140a76396Smrg done 417240a76396SmrgIFS=$as_save_IFS 417340a76396Smrg 417440a76396Smrgfi 417540a76396Smrg 417640a76396Smrg test -d ./--version && rmdir ./--version 41770f5b81e5Smrg if test ${ac_cv_path_mkdir+y}; then 417840a76396Smrg MKDIR_P="$ac_cv_path_mkdir -p" 417940a76396Smrg else 418040a76396Smrg # As a last resort, use the slow shell script. Don't cache a 418140a76396Smrg # value for MKDIR_P within a source directory, because that will 418240a76396Smrg # break other packages using the cache if that directory is 418340a76396Smrg # removed, or if the value is a relative name. 418440a76396Smrg MKDIR_P="$ac_install_sh -d" 418540a76396Smrg fi 418640a76396Smrgfi 41870f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 41880f5b81e5Smrgprintf "%s\n" "$MKDIR_P" >&6; } 418940a76396Smrg 419040a76396Smrgfor ac_prog in gawk mawk nawk awk 419140a76396Smrgdo 419240a76396Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 419340a76396Smrgset dummy $ac_prog; ac_word=$2 41940f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41950f5b81e5Smrgprintf %s "checking for $ac_word... " >&6; } 41960f5b81e5Smrgif test ${ac_cv_prog_AWK+y} 41970f5b81e5Smrgthen : 41980f5b81e5Smrg printf %s "(cached) " >&6 41990f5b81e5Smrgelse $as_nop 420040a76396Smrg if test -n "$AWK"; then 420140a76396Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 420240a76396Smrgelse 420340a76396Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 420440a76396Smrgfor as_dir in $PATH 420540a76396Smrgdo 420640a76396Smrg IFS=$as_save_IFS 42070f5b81e5Smrg case $as_dir in #((( 42080f5b81e5Smrg '') as_dir=./ ;; 42090f5b81e5Smrg */) ;; 42100f5b81e5Smrg *) as_dir=$as_dir/ ;; 42110f5b81e5Smrg esac 421240a76396Smrg for ac_exec_ext in '' $ac_executable_extensions; do 42130f5b81e5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 421440a76396Smrg ac_cv_prog_AWK="$ac_prog" 42150f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 421640a76396Smrg break 2 421740a76396Smrg fi 421840a76396Smrgdone 421940a76396Smrg done 422040a76396SmrgIFS=$as_save_IFS 422140a76396Smrg 422240a76396Smrgfi 422340a76396Smrgfi 422440a76396SmrgAWK=$ac_cv_prog_AWK 422540a76396Smrgif test -n "$AWK"; then 42260f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 42270f5b81e5Smrgprintf "%s\n" "$AWK" >&6; } 422840a76396Smrgelse 42290f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42300f5b81e5Smrgprintf "%s\n" "no" >&6; } 423140a76396Smrgfi 423240a76396Smrg 423340a76396Smrg 423440a76396Smrg test -n "$AWK" && break 423540a76396Smrgdone 423640a76396Smrg 42370f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 42380f5b81e5Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 423940a76396Smrgset x ${MAKE-make} 42400f5b81e5Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 42410f5b81e5Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y} 42420f5b81e5Smrgthen : 42430f5b81e5Smrg printf %s "(cached) " >&6 42440f5b81e5Smrgelse $as_nop 424540a76396Smrg cat >conftest.make <<\_ACEOF 424640a76396SmrgSHELL = /bin/sh 424740a76396Smrgall: 424840a76396Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 424940a76396Smrg_ACEOF 425040a76396Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 425140a76396Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 425240a76396Smrg *@@@%%%=?*=@@@%%%*) 425340a76396Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 425440a76396Smrg *) 425540a76396Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 425640a76396Smrgesac 425740a76396Smrgrm -f conftest.make 425840a76396Smrgfi 425940a76396Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 42600f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42610f5b81e5Smrgprintf "%s\n" "yes" >&6; } 426240a76396Smrg SET_MAKE= 426340a76396Smrgelse 42640f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42650f5b81e5Smrgprintf "%s\n" "no" >&6; } 426640a76396Smrg SET_MAKE="MAKE=${MAKE-make}" 426740a76396Smrgfi 426840a76396Smrg 426940a76396Smrgrm -rf .tst 2>/dev/null 427040a76396Smrgmkdir .tst 2>/dev/null 427140a76396Smrgif test -d .tst; then 427240a76396Smrg am__leading_dot=. 427340a76396Smrgelse 427440a76396Smrg am__leading_dot=_ 427540a76396Smrgfi 427640a76396Smrgrmdir .tst 2>/dev/null 427740a76396Smrg 427840a76396SmrgDEPDIR="${am__leading_dot}deps" 427940a76396Smrg 428040a76396Smrgac_config_commands="$ac_config_commands depfiles" 428140a76396Smrg 42820f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 42830f5b81e5Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 42840f5b81e5Smrgcat > confinc.mk << 'END' 428540a76396Smrgam__doit: 42860f5b81e5Smrg @echo this is the am__doit target >confinc.out 428740a76396Smrg.PHONY: am__doit 428840a76396SmrgEND 428940a76396Smrgam__include="#" 429040a76396Smrgam__quote= 42910f5b81e5Smrg# BSD make does it like this. 42920f5b81e5Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD 42930f5b81e5Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 42940f5b81e5Smrgecho 'include confinc.mk # ignored' > confmf.GNU 42950f5b81e5Smrg_am_result=no 42960f5b81e5Smrgfor s in GNU BSD; do 42970f5b81e5Smrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 42980f5b81e5Smrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 42990f5b81e5Smrg ac_status=$? 43000f5b81e5Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 43010f5b81e5Smrg (exit $ac_status); } 43020f5b81e5Smrg case $?:`cat confinc.out 2>/dev/null` in #( 43030f5b81e5Smrg '0:this is the am__doit target') : 43040f5b81e5Smrg case $s in #( 43050f5b81e5Smrg BSD) : 43060f5b81e5Smrg am__include='.include' am__quote='"' ;; #( 43070f5b81e5Smrg *) : 43080f5b81e5Smrg am__include='include' am__quote='' ;; 43090f5b81e5Smrgesac ;; #( 43100f5b81e5Smrg *) : 431140a76396Smrg ;; 43120f5b81e5Smrgesac 43130f5b81e5Smrg if test "$am__include" != "#"; then 43140f5b81e5Smrg _am_result="yes ($s style)" 43150f5b81e5Smrg break 43160f5b81e5Smrg fi 43170f5b81e5Smrgdone 43180f5b81e5Smrgrm -f confinc.* confmf.* 43190f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 43200f5b81e5Smrgprintf "%s\n" "${_am_result}" >&6; } 432140a76396Smrg 432240a76396Smrg# Check whether --enable-dependency-tracking was given. 43230f5b81e5Smrgif test ${enable_dependency_tracking+y} 43240f5b81e5Smrgthen : 432540a76396Smrg enableval=$enable_dependency_tracking; 432640a76396Smrgfi 432740a76396Smrg 432840a76396Smrgif test "x$enable_dependency_tracking" != xno; then 432940a76396Smrg am_depcomp="$ac_aux_dir/depcomp" 433040a76396Smrg AMDEPBACKSLASH='\' 433140a76396Smrg am__nodep='_no' 433240a76396Smrgfi 433340a76396Smrg if test "x$enable_dependency_tracking" != xno; then 433440a76396Smrg AMDEP_TRUE= 433540a76396Smrg AMDEP_FALSE='#' 433640a76396Smrgelse 433740a76396Smrg AMDEP_TRUE='#' 433840a76396Smrg AMDEP_FALSE= 433940a76396Smrgfi 434040a76396Smrg 434140a76396Smrg 434240a76396Smrg# Check whether --enable-silent-rules was given. 43430f5b81e5Smrgif test ${enable_silent_rules+y} 43440f5b81e5Smrgthen : 434540a76396Smrg enableval=$enable_silent_rules; 434640a76396Smrgfi 43476600fe5bSmrg 434840a76396Smrgcase $enable_silent_rules in # ((( 434940a76396Smrg yes) AM_DEFAULT_VERBOSITY=0;; 435040a76396Smrg no) AM_DEFAULT_VERBOSITY=1;; 435140a76396Smrg *) AM_DEFAULT_VERBOSITY=1;; 435240a76396Smrgesac 435340a76396Smrgam_make=${MAKE-make} 43540f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 43550f5b81e5Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 43560f5b81e5Smrgif test ${am_cv_make_support_nested_variables+y} 43570f5b81e5Smrgthen : 43580f5b81e5Smrg printf %s "(cached) " >&6 43590f5b81e5Smrgelse $as_nop 43600f5b81e5Smrg if printf "%s\n" 'TRUE=$(BAR$(V)) 436140a76396SmrgBAR0=false 436240a76396SmrgBAR1=true 436340a76396SmrgV=1 436440a76396Smrgam__doit: 436540a76396Smrg @$(TRUE) 436640a76396Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 436740a76396Smrg am_cv_make_support_nested_variables=yes 436840a76396Smrgelse 436940a76396Smrg am_cv_make_support_nested_variables=no 437040a76396Smrgfi 437140a76396Smrgfi 43720f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 43730f5b81e5Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 437440a76396Smrgif test $am_cv_make_support_nested_variables = yes; then 437540a76396Smrg AM_V='$(V)' 437640a76396Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 437740a76396Smrgelse 437840a76396Smrg AM_V=$AM_DEFAULT_VERBOSITY 437940a76396Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 438040a76396Smrgfi 438140a76396SmrgAM_BACKSLASH='\' 438240a76396Smrg 438340a76396Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 438440a76396Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 438540a76396Smrg # is not polluted with repeated "-I." 438640a76396Smrg am__isrc=' -I$(srcdir)' 438740a76396Smrg # test to see if srcdir already configured 438840a76396Smrg if test -f $srcdir/config.status; then 438940a76396Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 439040a76396Smrg fi 439140a76396Smrgfi 439240a76396Smrg 439340a76396Smrg# test whether we have cygpath 439440a76396Smrgif test -z "$CYGPATH_W"; then 439540a76396Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 439640a76396Smrg CYGPATH_W='cygpath -w' 439740a76396Smrg else 439840a76396Smrg CYGPATH_W=echo 439940a76396Smrg fi 440040a76396Smrgfi 440140a76396Smrg 440240a76396Smrg 440340a76396Smrg# Define the identity of the package. 440440a76396Smrg PACKAGE='xset' 44050f5b81e5Smrg VERSION='1.2.5' 440640a76396Smrg 440740a76396Smrg 44080f5b81e5Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 440940a76396Smrg 441040a76396Smrg 44110f5b81e5Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 441240a76396Smrg 441340a76396Smrg# Some tools Automake needs. 441440a76396Smrg 441540a76396SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 441640a76396Smrg 441740a76396Smrg 441840a76396SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 441940a76396Smrg 442040a76396Smrg 442140a76396SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 442240a76396Smrg 442340a76396Smrg 442440a76396SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 442540a76396Smrg 442640a76396Smrg 442740a76396SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 442840a76396Smrg 442940a76396Smrg# For better backward compatibility. To be removed once Automake 1.9.x 443040a76396Smrg# dies out for good. For more background, see: 44310f5b81e5Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 44320f5b81e5Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 443340a76396Smrgmkdir_p='$(MKDIR_P)' 443440a76396Smrg 4435feee4651Smrg# We need awk for the "check" target (and possibly the TAP driver). The 4436feee4651Smrg# system "awk" is bad on some platforms. 443740a76396Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 443840a76396Smrg# in the wild :-( We should find a proper way to deprecate it ... 443940a76396SmrgAMTAR='$${TAR-tar}' 444040a76396Smrg 444140a76396Smrg 444240a76396Smrg# We'll loop over all known methods to create a tar archive until one works. 444340a76396Smrg_am_tools='gnutar pax cpio none' 444440a76396Smrg 444540a76396Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 444640a76396Smrg 444740a76396Smrg 444840a76396Smrg 444940a76396Smrg 445040a76396Smrg 445140a76396Smrgdepcc="$CC" am_compiler_list= 445240a76396Smrg 44530f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 44540f5b81e5Smrgprintf %s "checking dependency style of $depcc... " >&6; } 44550f5b81e5Smrgif test ${am_cv_CC_dependencies_compiler_type+y} 44560f5b81e5Smrgthen : 44570f5b81e5Smrg printf %s "(cached) " >&6 44580f5b81e5Smrgelse $as_nop 445940a76396Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 446040a76396Smrg # We make a subdir and do the tests there. Otherwise we can end up 446140a76396Smrg # making bogus files that we don't know about and never remove. For 446240a76396Smrg # instance it was reported that on HP-UX the gcc test will end up 446340a76396Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 446440a76396Smrg # in D". 446540a76396Smrg rm -rf conftest.dir 446640a76396Smrg mkdir conftest.dir 446740a76396Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 446840a76396Smrg # using a relative directory. 446940a76396Smrg cp "$am_depcomp" conftest.dir 447040a76396Smrg cd conftest.dir 447140a76396Smrg # We will build objects and dependencies in a subdirectory because 447240a76396Smrg # it helps to detect inapplicable dependency modes. For instance 447340a76396Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 447440a76396Smrg # side effect of compilation, but ICC will put the dependencies in 447540a76396Smrg # the current directory while Tru64 will put them in the object 447640a76396Smrg # directory. 447740a76396Smrg mkdir sub 447840a76396Smrg 447940a76396Smrg am_cv_CC_dependencies_compiler_type=none 448040a76396Smrg if test "$am_compiler_list" = ""; then 448140a76396Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 448240a76396Smrg fi 448340a76396Smrg am__universal=false 448440a76396Smrg case " $depcc " in #( 448540a76396Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 448640a76396Smrg esac 448740a76396Smrg 448840a76396Smrg for depmode in $am_compiler_list; do 448940a76396Smrg # Setup a source with many dependencies, because some compilers 449040a76396Smrg # like to wrap large dependency lists on column 80 (with \), and 449140a76396Smrg # we should not choose a depcomp mode which is confused by this. 449240a76396Smrg # 449340a76396Smrg # We need to recreate these files for each test, as the compiler may 449440a76396Smrg # overwrite some of them when testing with obscure command lines. 449540a76396Smrg # This happens at least with the AIX C compiler. 449640a76396Smrg : > sub/conftest.c 449740a76396Smrg for i in 1 2 3 4 5 6; do 449840a76396Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 449940a76396Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 450040a76396Smrg # Solaris 10 /bin/sh. 450140a76396Smrg echo '/* dummy */' > sub/conftst$i.h 450240a76396Smrg done 450340a76396Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 450440a76396Smrg 450540a76396Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 450640a76396Smrg # mode. It turns out that the SunPro C++ compiler does not properly 450740a76396Smrg # handle '-M -o', and we need to detect this. Also, some Intel 450840a76396Smrg # versions had trouble with output in subdirs. 450940a76396Smrg am__obj=sub/conftest.${OBJEXT-o} 451040a76396Smrg am__minus_obj="-o $am__obj" 451140a76396Smrg case $depmode in 451240a76396Smrg gcc) 451340a76396Smrg # This depmode causes a compiler race in universal mode. 451440a76396Smrg test "$am__universal" = false || continue 451540a76396Smrg ;; 451640a76396Smrg nosideeffect) 451740a76396Smrg # After this tag, mechanisms are not by side-effect, so they'll 451840a76396Smrg # only be used when explicitly requested. 451940a76396Smrg if test "x$enable_dependency_tracking" = xyes; then 452040a76396Smrg continue 452140a76396Smrg else 452240a76396Smrg break 452340a76396Smrg fi 452440a76396Smrg ;; 452540a76396Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 452640a76396Smrg # This compiler won't grok '-c -o', but also, the minuso test has 452740a76396Smrg # not run yet. These depmodes are late enough in the game, and 452840a76396Smrg # so weak that their functioning should not be impacted. 452940a76396Smrg am__obj=conftest.${OBJEXT-o} 453040a76396Smrg am__minus_obj= 453140a76396Smrg ;; 453240a76396Smrg none) break ;; 453340a76396Smrg esac 453440a76396Smrg if depmode=$depmode \ 453540a76396Smrg source=sub/conftest.c object=$am__obj \ 453640a76396Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 453740a76396Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 453840a76396Smrg >/dev/null 2>conftest.err && 453940a76396Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 454040a76396Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 454140a76396Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 454240a76396Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 454340a76396Smrg # icc doesn't choke on unknown options, it will just issue warnings 454440a76396Smrg # or remarks (even with -Werror). So we grep stderr for any message 454540a76396Smrg # that says an option was ignored or not supported. 454640a76396Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 454740a76396Smrg # icc: Command line warning: ignoring option '-M'; no argument required 454840a76396Smrg # The diagnosis changed in icc 8.0: 454940a76396Smrg # icc: Command line remark: option '-MP' not supported 455040a76396Smrg if (grep 'ignoring option' conftest.err || 455140a76396Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 455240a76396Smrg am_cv_CC_dependencies_compiler_type=$depmode 455340a76396Smrg break 455440a76396Smrg fi 455540a76396Smrg fi 455640a76396Smrg done 455740a76396Smrg 455840a76396Smrg cd .. 455940a76396Smrg rm -rf conftest.dir 456040a76396Smrgelse 456140a76396Smrg am_cv_CC_dependencies_compiler_type=none 456240a76396Smrgfi 456340a76396Smrg 456440a76396Smrgfi 45650f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 45660f5b81e5Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 456740a76396SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 456840a76396Smrg 456940a76396Smrg if 457040a76396Smrg test "x$enable_dependency_tracking" != xno \ 457140a76396Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 457240a76396Smrg am__fastdepCC_TRUE= 457340a76396Smrg am__fastdepCC_FALSE='#' 457440a76396Smrgelse 457540a76396Smrg am__fastdepCC_TRUE='#' 457640a76396Smrg am__fastdepCC_FALSE= 457740a76396Smrgfi 457840a76396Smrg 457940a76396Smrg 45800f5b81e5Smrg# Variables for tags utilities; see am/tags.am 45810f5b81e5Smrgif test -z "$CTAGS"; then 45820f5b81e5Smrg CTAGS=ctags 45830f5b81e5Smrgfi 45840f5b81e5Smrg 45850f5b81e5Smrgif test -z "$ETAGS"; then 45860f5b81e5Smrg ETAGS=etags 45870f5b81e5Smrgfi 45880f5b81e5Smrg 45890f5b81e5Smrgif test -z "$CSCOPE"; then 45900f5b81e5Smrg CSCOPE=cscope 45910f5b81e5Smrgfi 45920f5b81e5Smrg 45930f5b81e5Smrg 459440a76396Smrg 459540a76396Smrg# POSIX will say in a future version that running "rm -f" with no argument 459640a76396Smrg# is OK; and we want to be able to make that assumption in our Makefile 459740a76396Smrg# recipes. So use an aggressive probe to check that the usage we want is 459840a76396Smrg# actually supported "in the wild" to an acceptable degree. 459940a76396Smrg# See automake bug#10828. 460040a76396Smrg# To make any issue more visible, cause the running configure to be aborted 460140a76396Smrg# by default if the 'rm' program in use doesn't match our expectations; the 460240a76396Smrg# user can still override this though. 460340a76396Smrgif rm -f && rm -fr && rm -rf; then : OK; else 460440a76396Smrg cat >&2 <<'END' 460540a76396SmrgOops! 460640a76396Smrg 460740a76396SmrgYour 'rm' program seems unable to run without file operands specified 460840a76396Smrgon the command line, even when the '-f' option is present. This is contrary 460940a76396Smrgto the behaviour of most rm programs out there, and not conforming with 461040a76396Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 461140a76396Smrg 461240a76396SmrgPlease tell bug-automake@gnu.org about your system, including the value 461340a76396Smrgof your $PATH and any error possibly output before this message. This 461440a76396Smrgcan help us improve future automake versions. 461540a76396Smrg 461640a76396SmrgEND 461740a76396Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 461840a76396Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 461940a76396Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 462040a76396Smrg echo >&2 462140a76396Smrg else 462240a76396Smrg cat >&2 <<'END' 462340a76396SmrgAborting the configuration process, to ensure you take notice of the issue. 462440a76396Smrg 462540a76396SmrgYou can download and install GNU coreutils to get an 'rm' implementation 46260f5b81e5Smrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 462740a76396Smrg 46280f5b81e5SmrgIf you want to complete the configuration process using your problematic 46290f5b81e5Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 46300f5b81e5Smrgto "yes", and re-run configure. 463140a76396Smrg 46320f5b81e5SmrgEND 46330f5b81e5Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 46340f5b81e5Smrg fi 46350f5b81e5Smrgfi 463640a76396Smrg 463740a76396Smrg 46380f5b81e5Smrg# Require xorg-macros: XORG_MANPAGE_SECTIONS 463940a76396Smrg 464040a76396Smrg 464140a76396Smrg 464240a76396Smrg 464340a76396Smrg 464440a76396Smrg 464540a76396Smrg 464640a76396Smrg 464740a76396Smrg 464840a76396Smrg 464940a76396Smrg 465040a76396Smrg 46510f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 46520f5b81e5Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 46530f5b81e5Smrgif test ${ac_cv_c_undeclared_builtin_options+y} 46540f5b81e5Smrgthen : 46550f5b81e5Smrg printf %s "(cached) " >&6 46560f5b81e5Smrgelse $as_nop 46570f5b81e5Smrg ac_save_CFLAGS=$CFLAGS 46580f5b81e5Smrg ac_cv_c_undeclared_builtin_options='cannot detect' 46590f5b81e5Smrg for ac_arg in '' -fno-builtin; do 46600f5b81e5Smrg CFLAGS="$ac_save_CFLAGS $ac_arg" 46610f5b81e5Smrg # This test program should *not* compile successfully. 46620f5b81e5Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46630f5b81e5Smrg/* end confdefs.h. */ 466440a76396Smrg 46650f5b81e5Smrgint 46660f5b81e5Smrgmain (void) 46670f5b81e5Smrg{ 46680f5b81e5Smrg(void) strchr; 46690f5b81e5Smrg ; 46700f5b81e5Smrg return 0; 46710f5b81e5Smrg} 46720f5b81e5Smrg_ACEOF 46730f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 46740f5b81e5Smrgthen : 46750f5b81e5Smrg 46760f5b81e5Smrgelse $as_nop 46770f5b81e5Smrg # This test program should compile successfully. 46780f5b81e5Smrg # No library function is consistently available on 46790f5b81e5Smrg # freestanding implementations, so test against a dummy 46800f5b81e5Smrg # declaration. Include always-available headers on the 46810f5b81e5Smrg # off chance that they somehow elicit warnings. 46820f5b81e5Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46830f5b81e5Smrg/* end confdefs.h. */ 46840f5b81e5Smrg#include <float.h> 46850f5b81e5Smrg#include <limits.h> 46860f5b81e5Smrg#include <stdarg.h> 46870f5b81e5Smrg#include <stddef.h> 46880f5b81e5Smrgextern void ac_decl (int, char *); 46890f5b81e5Smrg 46900f5b81e5Smrgint 46910f5b81e5Smrgmain (void) 46920f5b81e5Smrg{ 46930f5b81e5Smrg(void) ac_decl (0, (char *) 0); 46940f5b81e5Smrg (void) ac_decl; 469540a76396Smrg 469640a76396Smrg ; 469740a76396Smrg return 0; 469840a76396Smrg} 469940a76396Smrg_ACEOF 47000f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 47010f5b81e5Smrgthen : 47020f5b81e5Smrg if test x"$ac_arg" = x 47030f5b81e5Smrgthen : 47040f5b81e5Smrg ac_cv_c_undeclared_builtin_options='none needed' 47050f5b81e5Smrgelse $as_nop 47060f5b81e5Smrg ac_cv_c_undeclared_builtin_options=$ac_arg 470740a76396Smrgfi 47080f5b81e5Smrg break 470940a76396Smrgfi 47100f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 471140a76396Smrgfi 47120f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 47130f5b81e5Smrg done 47140f5b81e5Smrg CFLAGS=$ac_save_CFLAGS 47150f5b81e5Smrg 47160f5b81e5Smrgfi 47170f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 47180f5b81e5Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 47190f5b81e5Smrg case $ac_cv_c_undeclared_builtin_options in #( 47200f5b81e5Smrg 'cannot detect') : 47210f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 47220f5b81e5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 47230f5b81e5Smrgas_fn_error $? "cannot make $CC report undeclared builtins 47240f5b81e5SmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #( 47250f5b81e5Smrg 'none needed') : 47260f5b81e5Smrg ac_c_undeclared_builtin_options='' ;; #( 47270f5b81e5Smrg *) : 47280f5b81e5Smrg ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 47290f5b81e5Smrgesac 473040a76396Smrg 473140a76396Smrg 473240a76396Smrg 473340a76396Smrg 473440a76396Smrg 47350f5b81e5Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 47360f5b81e5Smrgif test "x$ac_cv_have_decl___clang__" = xyes 47370f5b81e5Smrgthen : 473840a76396Smrg CLANGCC="yes" 47390f5b81e5Smrgelse $as_nop 474040a76396Smrg CLANGCC="no" 474140a76396Smrgfi 47420f5b81e5Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 47430f5b81e5Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 47440f5b81e5Smrgthen : 474540a76396Smrg INTELCC="yes" 47460f5b81e5Smrgelse $as_nop 474740a76396Smrg INTELCC="no" 474840a76396Smrgfi 47490f5b81e5Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 47500f5b81e5Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes 47510f5b81e5Smrgthen : 475240a76396Smrg SUNCC="yes" 47530f5b81e5Smrgelse $as_nop 475440a76396Smrg SUNCC="no" 475540a76396Smrgfi 475640a76396Smrg 475740a76396Smrg 475840a76396Smrg 475940a76396Smrg 4760feee4651Smrg 4761feee4651Smrg 4762feee4651Smrg 4763feee4651Smrg 476440a76396Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 476540a76396Smrg if test -n "$ac_tool_prefix"; then 476640a76396Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 476740a76396Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 47680f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47690f5b81e5Smrgprintf %s "checking for $ac_word... " >&6; } 47700f5b81e5Smrgif test ${ac_cv_path_PKG_CONFIG+y} 47710f5b81e5Smrgthen : 47720f5b81e5Smrg printf %s "(cached) " >&6 47730f5b81e5Smrgelse $as_nop 477440a76396Smrg case $PKG_CONFIG in 477540a76396Smrg [\\/]* | ?:[\\/]*) 477640a76396Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 477740a76396Smrg ;; 477840a76396Smrg *) 477940a76396Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 478040a76396Smrgfor as_dir in $PATH 478140a76396Smrgdo 478240a76396Smrg IFS=$as_save_IFS 47830f5b81e5Smrg case $as_dir in #((( 47840f5b81e5Smrg '') as_dir=./ ;; 47850f5b81e5Smrg */) ;; 47860f5b81e5Smrg *) as_dir=$as_dir/ ;; 47870f5b81e5Smrg esac 478840a76396Smrg for ac_exec_ext in '' $ac_executable_extensions; do 47890f5b81e5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 47900f5b81e5Smrg ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 47910f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 479240a76396Smrg break 2 479340a76396Smrg fi 479440a76396Smrgdone 479540a76396Smrg done 479640a76396SmrgIFS=$as_save_IFS 479740a76396Smrg 479840a76396Smrg ;; 479940a76396Smrgesac 480040a76396Smrgfi 480140a76396SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 480240a76396Smrgif test -n "$PKG_CONFIG"; then 48030f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 48040f5b81e5Smrgprintf "%s\n" "$PKG_CONFIG" >&6; } 480540a76396Smrgelse 48060f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 48070f5b81e5Smrgprintf "%s\n" "no" >&6; } 480840a76396Smrgfi 480940a76396Smrg 481040a76396Smrg 481140a76396Smrgfi 481240a76396Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 481340a76396Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 481440a76396Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 481540a76396Smrgset dummy pkg-config; ac_word=$2 48160f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48170f5b81e5Smrgprintf %s "checking for $ac_word... " >&6; } 48180f5b81e5Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 48190f5b81e5Smrgthen : 48200f5b81e5Smrg printf %s "(cached) " >&6 48210f5b81e5Smrgelse $as_nop 482240a76396Smrg case $ac_pt_PKG_CONFIG in 482340a76396Smrg [\\/]* | ?:[\\/]*) 482440a76396Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 482540a76396Smrg ;; 482640a76396Smrg *) 482740a76396Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 482840a76396Smrgfor as_dir in $PATH 482940a76396Smrgdo 483040a76396Smrg IFS=$as_save_IFS 48310f5b81e5Smrg case $as_dir in #((( 48320f5b81e5Smrg '') as_dir=./ ;; 48330f5b81e5Smrg */) ;; 48340f5b81e5Smrg *) as_dir=$as_dir/ ;; 48350f5b81e5Smrg esac 483640a76396Smrg for ac_exec_ext in '' $ac_executable_extensions; do 48370f5b81e5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 48380f5b81e5Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 48390f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 484040a76396Smrg break 2 484140a76396Smrg fi 484240a76396Smrgdone 484340a76396Smrg done 484440a76396SmrgIFS=$as_save_IFS 484540a76396Smrg 484640a76396Smrg ;; 484740a76396Smrgesac 484840a76396Smrgfi 484940a76396Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 485040a76396Smrgif test -n "$ac_pt_PKG_CONFIG"; then 48510f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 48520f5b81e5Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 485340a76396Smrgelse 48540f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 48550f5b81e5Smrgprintf "%s\n" "no" >&6; } 485640a76396Smrgfi 485740a76396Smrg 485840a76396Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 485940a76396Smrg PKG_CONFIG="" 486040a76396Smrg else 486140a76396Smrg case $cross_compiling:$ac_tool_warned in 486240a76396Smrgyes:) 48630f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 48640f5b81e5Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 486540a76396Smrgac_tool_warned=yes ;; 486640a76396Smrgesac 486740a76396Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 486840a76396Smrg fi 486940a76396Smrgelse 487040a76396Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 487140a76396Smrgfi 487240a76396Smrg 487340a76396Smrgfi 487440a76396Smrgif test -n "$PKG_CONFIG"; then 487540a76396Smrg _pkg_min_version=0.9.0 48760f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 48770f5b81e5Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 487840a76396Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 48790f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48800f5b81e5Smrgprintf "%s\n" "yes" >&6; } 488140a76396Smrg else 48820f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 48830f5b81e5Smrgprintf "%s\n" "no" >&6; } 488440a76396Smrg PKG_CONFIG="" 488540a76396Smrg fi 488640a76396Smrgfi 488740a76396Smrg 48880f5b81e5Smrg 48890f5b81e5Smrg # Make sure we can run config.sub. 48900f5b81e5Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 48910f5b81e5Smrg as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 48920f5b81e5Smrg 48930f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 48940f5b81e5Smrgprintf %s "checking build system type... " >&6; } 48950f5b81e5Smrgif test ${ac_cv_build+y} 48960f5b81e5Smrgthen : 48970f5b81e5Smrg printf %s "(cached) " >&6 48980f5b81e5Smrgelse $as_nop 489940a76396Smrg ac_build_alias=$build_alias 490040a76396Smrgtest "x$ac_build_alias" = x && 49010f5b81e5Smrg ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 490240a76396Smrgtest "x$ac_build_alias" = x && 490340a76396Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 49040f5b81e5Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 49050f5b81e5Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 490640a76396Smrg 490740a76396Smrgfi 49080f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 49090f5b81e5Smrgprintf "%s\n" "$ac_cv_build" >&6; } 491040a76396Smrgcase $ac_cv_build in 491140a76396Smrg*-*-*) ;; 491240a76396Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 491340a76396Smrgesac 491440a76396Smrgbuild=$ac_cv_build 491540a76396Smrgac_save_IFS=$IFS; IFS='-' 491640a76396Smrgset x $ac_cv_build 491740a76396Smrgshift 491840a76396Smrgbuild_cpu=$1 491940a76396Smrgbuild_vendor=$2 492040a76396Smrgshift; shift 492140a76396Smrg# Remember, the first character of IFS is used to create $*, 492240a76396Smrg# except with old shells: 492340a76396Smrgbuild_os=$* 492440a76396SmrgIFS=$ac_save_IFS 492540a76396Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 492640a76396Smrg 492740a76396Smrg 49280f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 49290f5b81e5Smrgprintf %s "checking host system type... " >&6; } 49300f5b81e5Smrgif test ${ac_cv_host+y} 49310f5b81e5Smrgthen : 49320f5b81e5Smrg printf %s "(cached) " >&6 49330f5b81e5Smrgelse $as_nop 493440a76396Smrg if test "x$host_alias" = x; then 493540a76396Smrg ac_cv_host=$ac_cv_build 493640a76396Smrgelse 49370f5b81e5Smrg ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 49380f5b81e5Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 493940a76396Smrgfi 494040a76396Smrg 494140a76396Smrgfi 49420f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 49430f5b81e5Smrgprintf "%s\n" "$ac_cv_host" >&6; } 494440a76396Smrgcase $ac_cv_host in 494540a76396Smrg*-*-*) ;; 494640a76396Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 494740a76396Smrgesac 494840a76396Smrghost=$ac_cv_host 494940a76396Smrgac_save_IFS=$IFS; IFS='-' 495040a76396Smrgset x $ac_cv_host 495140a76396Smrgshift 495240a76396Smrghost_cpu=$1 495340a76396Smrghost_vendor=$2 495440a76396Smrgshift; shift 495540a76396Smrg# Remember, the first character of IFS is used to create $*, 495640a76396Smrg# except with old shells: 495740a76396Smrghost_os=$* 495840a76396SmrgIFS=$ac_save_IFS 495940a76396Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 496040a76396Smrg 496140a76396Smrg 49620f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 49630f5b81e5Smrgprintf %s "checking for a sed that does not truncate output... " >&6; } 49640f5b81e5Smrgif test ${ac_cv_path_SED+y} 49650f5b81e5Smrgthen : 49660f5b81e5Smrg printf %s "(cached) " >&6 49670f5b81e5Smrgelse $as_nop 496840a76396Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 496940a76396Smrg for ac_i in 1 2 3 4 5 6 7; do 497040a76396Smrg ac_script="$ac_script$as_nl$ac_script" 497140a76396Smrg done 497240a76396Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 497340a76396Smrg { ac_script=; unset ac_script;} 497440a76396Smrg if test -z "$SED"; then 497540a76396Smrg ac_path_SED_found=false 497640a76396Smrg # Loop through the user's path and test for each of PROGNAME-LIST 497740a76396Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 497840a76396Smrgfor as_dir in $PATH 497940a76396Smrgdo 498040a76396Smrg IFS=$as_save_IFS 49810f5b81e5Smrg case $as_dir in #((( 49820f5b81e5Smrg '') as_dir=./ ;; 49830f5b81e5Smrg */) ;; 49840f5b81e5Smrg *) as_dir=$as_dir/ ;; 49850f5b81e5Smrg esac 49860f5b81e5Smrg for ac_prog in sed gsed 49870f5b81e5Smrg do 498840a76396Smrg for ac_exec_ext in '' $ac_executable_extensions; do 49890f5b81e5Smrg ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4990feee4651Smrg as_fn_executable_p "$ac_path_SED" || continue 499140a76396Smrg# Check for GNU ac_path_SED and select it if it is found. 499240a76396Smrg # Check for GNU $ac_path_SED 499340a76396Smrgcase `"$ac_path_SED" --version 2>&1` in 499440a76396Smrg*GNU*) 499540a76396Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 499640a76396Smrg*) 499740a76396Smrg ac_count=0 49980f5b81e5Smrg printf %s 0123456789 >"conftest.in" 499940a76396Smrg while : 500040a76396Smrg do 500140a76396Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 500240a76396Smrg mv "conftest.tmp" "conftest.in" 500340a76396Smrg cp "conftest.in" "conftest.nl" 50040f5b81e5Smrg printf "%s\n" '' >> "conftest.nl" 500540a76396Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 500640a76396Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 500740a76396Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 500840a76396Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 500940a76396Smrg # Best one so far, save it but keep looking for a better one 501040a76396Smrg ac_cv_path_SED="$ac_path_SED" 501140a76396Smrg ac_path_SED_max=$ac_count 501240a76396Smrg fi 501340a76396Smrg # 10*(2^10) chars as input seems more than enough 501440a76396Smrg test $ac_count -gt 10 && break 501540a76396Smrg done 501640a76396Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 501740a76396Smrgesac 501840a76396Smrg 501940a76396Smrg $ac_path_SED_found && break 3 502040a76396Smrg done 502140a76396Smrg done 502240a76396Smrg done 502340a76396SmrgIFS=$as_save_IFS 502440a76396Smrg if test -z "$ac_cv_path_SED"; then 502540a76396Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 502640a76396Smrg fi 502740a76396Smrgelse 502840a76396Smrg ac_cv_path_SED=$SED 502940a76396Smrgfi 503040a76396Smrg 503140a76396Smrgfi 50320f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 50330f5b81e5Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; } 503440a76396Smrg SED="$ac_cv_path_SED" 503540a76396Smrg rm -f conftest.sed 503640a76396Smrg 503740a76396Smrg 503840a76396Smrg 503940a76396Smrg 504040a76396Smrg 504140a76396Smrg 504240a76396Smrg# Check whether --enable-selective-werror was given. 50430f5b81e5Smrgif test ${enable_selective_werror+y} 50440f5b81e5Smrgthen : 504540a76396Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 50460f5b81e5Smrgelse $as_nop 504740a76396Smrg SELECTIVE_WERROR=yes 504840a76396Smrgfi 504940a76396Smrg 505040a76396Smrg 505140a76396Smrg 505240a76396Smrg 505340a76396Smrg 505440a76396Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 505540a76396Smrgif test "x$SUNCC" = "xyes"; then 505640a76396Smrg BASE_CFLAGS="-v" 505740a76396Smrgelse 505840a76396Smrg BASE_CFLAGS="" 505940a76396Smrgfi 506040a76396Smrg 506140a76396Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 506240a76396Smrg 506340a76396Smrg 506440a76396Smrg 506540a76396Smrg 506640a76396Smrg 506740a76396Smrg 506840a76396Smrg 506940a76396Smrg 507040a76396Smrg 507140a76396Smrg 507240a76396Smrg 507340a76396Smrg 507440a76396Smrg 507540a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 507640a76396Smrg 507740a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 507840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50790f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 50800f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 50810f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 50820f5b81e5Smrgthen : 50830f5b81e5Smrg printf %s "(cached) " >&6 50840f5b81e5Smrgelse $as_nop 508540a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 508640a76396Smrg/* end confdefs.h. */ 508740a76396Smrgint i; 508840a76396Smrg_ACEOF 50890f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 50900f5b81e5Smrgthen : 509140a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 50920f5b81e5Smrgelse $as_nop 509340a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 509440a76396Smrgfi 50950f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 509640a76396Smrgfi 50970f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 50980f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 509940a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 510040a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 510140a76396Smrgfi 510240a76396Smrg 510340a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 510440a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 510540a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 510640a76396Smrg fi 510740a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 51080f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 51090f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 51100f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 51110f5b81e5Smrgthen : 51120f5b81e5Smrg printf %s "(cached) " >&6 51130f5b81e5Smrgelse $as_nop 511440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 511540a76396Smrg/* end confdefs.h. */ 511640a76396Smrgint i; 511740a76396Smrg_ACEOF 51180f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 51190f5b81e5Smrgthen : 512040a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 51210f5b81e5Smrgelse $as_nop 512240a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 512340a76396Smrgfi 51240f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 512540a76396Smrgfi 51260f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 51270f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 512840a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 512940a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 513040a76396Smrgfi 513140a76396Smrg 513240a76396Smrgfound="no" 513340a76396Smrg 513440a76396Smrg if test $found = "no" ; then 5135feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 513640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 513740a76396Smrg fi 513840a76396Smrg 5139feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 514040a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 514140a76396Smrg fi 514240a76396Smrg 514340a76396Smrg CFLAGS="$CFLAGS -Wall" 514440a76396Smrg 51450f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 51460f5b81e5Smrgprintf %s "checking if $CC supports -Wall... " >&6; } 514740a76396Smrg cacheid=xorg_cv_cc_flag__Wall 51480f5b81e5Smrg if eval test \${$cacheid+y} 51490f5b81e5Smrgthen : 51500f5b81e5Smrg printf %s "(cached) " >&6 51510f5b81e5Smrgelse $as_nop 515240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 515340a76396Smrg/* end confdefs.h. */ 515440a76396Smrgint i; 515540a76396Smrgint 51560f5b81e5Smrgmain (void) 515740a76396Smrg{ 515840a76396Smrg 515940a76396Smrg ; 516040a76396Smrg return 0; 516140a76396Smrg} 516240a76396Smrg_ACEOF 51630f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 51640f5b81e5Smrgthen : 516540a76396Smrg eval $cacheid=yes 51660f5b81e5Smrgelse $as_nop 516740a76396Smrg eval $cacheid=no 516840a76396Smrgfi 51690f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 517040a76396Smrg conftest$ac_exeext conftest.$ac_ext 517140a76396Smrgfi 517240a76396Smrg 517340a76396Smrg 517440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 517540a76396Smrg 517640a76396Smrg eval supported=\$$cacheid 51770f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 51780f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 517940a76396Smrg if test "$supported" = "yes" ; then 518040a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 518140a76396Smrg found="yes" 518240a76396Smrg fi 518340a76396Smrg fi 518440a76396Smrg 518540a76396Smrg 518640a76396Smrg 518740a76396Smrg 518840a76396Smrg 518940a76396Smrg 519040a76396Smrg 519140a76396Smrg 519240a76396Smrg 519340a76396Smrg 519440a76396Smrg 519540a76396Smrg 519640a76396Smrg 519740a76396Smrg 519840a76396Smrg 519940a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 520040a76396Smrg 520140a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 520240a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52030f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 52040f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 52050f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 52060f5b81e5Smrgthen : 52070f5b81e5Smrg printf %s "(cached) " >&6 52080f5b81e5Smrgelse $as_nop 520940a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 521040a76396Smrg/* end confdefs.h. */ 521140a76396Smrgint i; 521240a76396Smrg_ACEOF 52130f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 52140f5b81e5Smrgthen : 521540a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 52160f5b81e5Smrgelse $as_nop 521740a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 521840a76396Smrgfi 52190f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 522040a76396Smrgfi 52210f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 52220f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 522340a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 522440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 522540a76396Smrgfi 522640a76396Smrg 522740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 522840a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 522940a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 523040a76396Smrg fi 523140a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52320f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 52330f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 52340f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 52350f5b81e5Smrgthen : 52360f5b81e5Smrg printf %s "(cached) " >&6 52370f5b81e5Smrgelse $as_nop 523840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 523940a76396Smrg/* end confdefs.h. */ 524040a76396Smrgint i; 524140a76396Smrg_ACEOF 52420f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 52430f5b81e5Smrgthen : 524440a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 52450f5b81e5Smrgelse $as_nop 524640a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 524740a76396Smrgfi 52480f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 524940a76396Smrgfi 52500f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 52510f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 525240a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 525340a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 525440a76396Smrgfi 525540a76396Smrg 525640a76396Smrgfound="no" 525740a76396Smrg 525840a76396Smrg if test $found = "no" ; then 5259feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 526040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 526140a76396Smrg fi 526240a76396Smrg 5263feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 526440a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 526540a76396Smrg fi 526640a76396Smrg 526740a76396Smrg CFLAGS="$CFLAGS -Wpointer-arith" 526840a76396Smrg 52690f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 52700f5b81e5Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; } 527140a76396Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 52720f5b81e5Smrg if eval test \${$cacheid+y} 52730f5b81e5Smrgthen : 52740f5b81e5Smrg printf %s "(cached) " >&6 52750f5b81e5Smrgelse $as_nop 527640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 527740a76396Smrg/* end confdefs.h. */ 527840a76396Smrgint i; 527940a76396Smrgint 52800f5b81e5Smrgmain (void) 528140a76396Smrg{ 528240a76396Smrg 528340a76396Smrg ; 528440a76396Smrg return 0; 528540a76396Smrg} 528640a76396Smrg_ACEOF 52870f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 52880f5b81e5Smrgthen : 528940a76396Smrg eval $cacheid=yes 52900f5b81e5Smrgelse $as_nop 529140a76396Smrg eval $cacheid=no 529240a76396Smrgfi 52930f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 529440a76396Smrg conftest$ac_exeext conftest.$ac_ext 529540a76396Smrgfi 529640a76396Smrg 529740a76396Smrg 529840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 529940a76396Smrg 530040a76396Smrg eval supported=\$$cacheid 53010f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 53020f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 530340a76396Smrg if test "$supported" = "yes" ; then 530440a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 530540a76396Smrg found="yes" 530640a76396Smrg fi 530740a76396Smrg fi 530840a76396Smrg 530940a76396Smrg 531040a76396Smrg 531140a76396Smrg 531240a76396Smrg 531340a76396Smrg 531440a76396Smrg 531540a76396Smrg 531640a76396Smrg 531740a76396Smrg 531840a76396Smrg 531940a76396Smrg 532040a76396Smrg 532140a76396Smrg 532240a76396Smrg 532340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 532440a76396Smrg 532540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 532640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53270f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 53280f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 53290f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 53300f5b81e5Smrgthen : 53310f5b81e5Smrg printf %s "(cached) " >&6 53320f5b81e5Smrgelse $as_nop 533340a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 533440a76396Smrg/* end confdefs.h. */ 533540a76396Smrgint i; 533640a76396Smrg_ACEOF 53370f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 53380f5b81e5Smrgthen : 533940a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 53400f5b81e5Smrgelse $as_nop 534140a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 534240a76396Smrgfi 53430f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 534440a76396Smrgfi 53450f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 53460f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 534740a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 534840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 534940a76396Smrgfi 535040a76396Smrg 535140a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 535240a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 535340a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 535440a76396Smrg fi 535540a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53560f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 53570f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 53580f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 53590f5b81e5Smrgthen : 53600f5b81e5Smrg printf %s "(cached) " >&6 53610f5b81e5Smrgelse $as_nop 536240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 536340a76396Smrg/* end confdefs.h. */ 536440a76396Smrgint i; 536540a76396Smrg_ACEOF 53660f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 53670f5b81e5Smrgthen : 536840a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 53690f5b81e5Smrgelse $as_nop 537040a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 537140a76396Smrgfi 53720f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 537340a76396Smrgfi 53740f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 53750f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 537640a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 537740a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 537840a76396Smrgfi 537940a76396Smrg 538040a76396Smrgfound="no" 538140a76396Smrg 538240a76396Smrg if test $found = "no" ; then 5383feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 538440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 538540a76396Smrg fi 538640a76396Smrg 5387feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 538840a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 538940a76396Smrg fi 539040a76396Smrg 539140a76396Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 539240a76396Smrg 53930f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 53940f5b81e5Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 539540a76396Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 53960f5b81e5Smrg if eval test \${$cacheid+y} 53970f5b81e5Smrgthen : 53980f5b81e5Smrg printf %s "(cached) " >&6 53990f5b81e5Smrgelse $as_nop 540040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 540140a76396Smrg/* end confdefs.h. */ 540240a76396Smrgint i; 540340a76396Smrgint 54040f5b81e5Smrgmain (void) 540540a76396Smrg{ 540640a76396Smrg 540740a76396Smrg ; 540840a76396Smrg return 0; 540940a76396Smrg} 541040a76396Smrg_ACEOF 54110f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 54120f5b81e5Smrgthen : 541340a76396Smrg eval $cacheid=yes 54140f5b81e5Smrgelse $as_nop 541540a76396Smrg eval $cacheid=no 541640a76396Smrgfi 54170f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 541840a76396Smrg conftest$ac_exeext conftest.$ac_ext 541940a76396Smrgfi 542040a76396Smrg 542140a76396Smrg 542240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 542340a76396Smrg 542440a76396Smrg eval supported=\$$cacheid 54250f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 54260f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 542740a76396Smrg if test "$supported" = "yes" ; then 542840a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 542940a76396Smrg found="yes" 543040a76396Smrg fi 543140a76396Smrg fi 543240a76396Smrg 543340a76396Smrg 543440a76396Smrg 543540a76396Smrg 543640a76396Smrg 543740a76396Smrg 543840a76396Smrg 543940a76396Smrg 544040a76396Smrg 544140a76396Smrg 544240a76396Smrg 544340a76396Smrg 544440a76396Smrg 544540a76396Smrg 544640a76396Smrg 544740a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 544840a76396Smrg 544940a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 545040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54510f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 54520f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 54530f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 54540f5b81e5Smrgthen : 54550f5b81e5Smrg printf %s "(cached) " >&6 54560f5b81e5Smrgelse $as_nop 545740a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 545840a76396Smrg/* end confdefs.h. */ 545940a76396Smrgint i; 546040a76396Smrg_ACEOF 54610f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 54620f5b81e5Smrgthen : 546340a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 54640f5b81e5Smrgelse $as_nop 546540a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 546640a76396Smrgfi 54670f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 546840a76396Smrgfi 54690f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 54700f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 547140a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 547240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 547340a76396Smrgfi 547440a76396Smrg 547540a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 547640a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 547740a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 547840a76396Smrg fi 547940a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54800f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 54810f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 54820f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 54830f5b81e5Smrgthen : 54840f5b81e5Smrg printf %s "(cached) " >&6 54850f5b81e5Smrgelse $as_nop 548640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 548740a76396Smrg/* end confdefs.h. */ 548840a76396Smrgint i; 548940a76396Smrg_ACEOF 54900f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 54910f5b81e5Smrgthen : 549240a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 54930f5b81e5Smrgelse $as_nop 549440a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 549540a76396Smrgfi 54960f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 549740a76396Smrgfi 54980f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 54990f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 550040a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 550140a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 550240a76396Smrgfi 550340a76396Smrg 550440a76396Smrgfound="no" 550540a76396Smrg 550640a76396Smrg if test $found = "no" ; then 5507feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 550840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 550940a76396Smrg fi 551040a76396Smrg 5511feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 551240a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 551340a76396Smrg fi 551440a76396Smrg 551540a76396Smrg CFLAGS="$CFLAGS -Wformat=2" 551640a76396Smrg 55170f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 55180f5b81e5Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; } 5519feee4651Smrg cacheid=xorg_cv_cc_flag__Wformat_2 55200f5b81e5Smrg if eval test \${$cacheid+y} 55210f5b81e5Smrgthen : 55220f5b81e5Smrg printf %s "(cached) " >&6 55230f5b81e5Smrgelse $as_nop 552440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 552540a76396Smrg/* end confdefs.h. */ 552640a76396Smrgint i; 552740a76396Smrgint 55280f5b81e5Smrgmain (void) 552940a76396Smrg{ 553040a76396Smrg 553140a76396Smrg ; 553240a76396Smrg return 0; 553340a76396Smrg} 553440a76396Smrg_ACEOF 55350f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 55360f5b81e5Smrgthen : 553740a76396Smrg eval $cacheid=yes 55380f5b81e5Smrgelse $as_nop 553940a76396Smrg eval $cacheid=no 554040a76396Smrgfi 55410f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 554240a76396Smrg conftest$ac_exeext conftest.$ac_ext 554340a76396Smrgfi 554440a76396Smrg 554540a76396Smrg 554640a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 554740a76396Smrg 554840a76396Smrg eval supported=\$$cacheid 55490f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 55500f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 555140a76396Smrg if test "$supported" = "yes" ; then 555240a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 555340a76396Smrg found="yes" 555440a76396Smrg fi 555540a76396Smrg fi 555640a76396Smrg 555740a76396Smrg if test $found = "no" ; then 5558feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 555940a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 556040a76396Smrg fi 556140a76396Smrg 5562feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 556340a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 556440a76396Smrg fi 556540a76396Smrg 556640a76396Smrg CFLAGS="$CFLAGS -Wformat" 556740a76396Smrg 55680f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 55690f5b81e5Smrgprintf %s "checking if $CC supports -Wformat... " >&6; } 557040a76396Smrg cacheid=xorg_cv_cc_flag__Wformat 55710f5b81e5Smrg if eval test \${$cacheid+y} 55720f5b81e5Smrgthen : 55730f5b81e5Smrg printf %s "(cached) " >&6 55740f5b81e5Smrgelse $as_nop 557540a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 557640a76396Smrg/* end confdefs.h. */ 557740a76396Smrgint i; 557840a76396Smrgint 55790f5b81e5Smrgmain (void) 558040a76396Smrg{ 558140a76396Smrg 558240a76396Smrg ; 558340a76396Smrg return 0; 558440a76396Smrg} 558540a76396Smrg_ACEOF 55860f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 55870f5b81e5Smrgthen : 558840a76396Smrg eval $cacheid=yes 55890f5b81e5Smrgelse $as_nop 559040a76396Smrg eval $cacheid=no 559140a76396Smrgfi 55920f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 559340a76396Smrg conftest$ac_exeext conftest.$ac_ext 559440a76396Smrgfi 559540a76396Smrg 559640a76396Smrg 559740a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 559840a76396Smrg 559940a76396Smrg eval supported=\$$cacheid 56000f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 56010f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 560240a76396Smrg if test "$supported" = "yes" ; then 560340a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 560440a76396Smrg found="yes" 560540a76396Smrg fi 560640a76396Smrg fi 560740a76396Smrg 560840a76396Smrg 560940a76396Smrg 561040a76396Smrg 561140a76396Smrg 561240a76396Smrg 561340a76396Smrg 561440a76396Smrg 561540a76396Smrg 561640a76396Smrg 561740a76396Smrg 561840a76396Smrg 561940a76396Smrg 562040a76396Smrg 562140a76396Smrg 562240a76396Smrg 562340a76396Smrg 562440a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 562540a76396Smrg 562640a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 562740a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56280f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 56290f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 56300f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 56310f5b81e5Smrgthen : 56320f5b81e5Smrg printf %s "(cached) " >&6 56330f5b81e5Smrgelse $as_nop 563440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 563540a76396Smrg/* end confdefs.h. */ 563640a76396Smrgint i; 563740a76396Smrg_ACEOF 56380f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 56390f5b81e5Smrgthen : 564040a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 56410f5b81e5Smrgelse $as_nop 564240a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 564340a76396Smrgfi 56440f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 564540a76396Smrgfi 56460f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 56470f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 564840a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 564940a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 565040a76396Smrgfi 565140a76396Smrg 565240a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 565340a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 565440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 565540a76396Smrg fi 565640a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 56570f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 56580f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 56590f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 56600f5b81e5Smrgthen : 56610f5b81e5Smrg printf %s "(cached) " >&6 56620f5b81e5Smrgelse $as_nop 566340a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 566440a76396Smrg/* end confdefs.h. */ 566540a76396Smrgint i; 566640a76396Smrg_ACEOF 56670f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 56680f5b81e5Smrgthen : 566940a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 56700f5b81e5Smrgelse $as_nop 567140a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 567240a76396Smrgfi 56730f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 567440a76396Smrgfi 56750f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 56760f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 567740a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 567840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 567940a76396Smrgfi 568040a76396Smrg 568140a76396Smrgfound="no" 568240a76396Smrg 568340a76396Smrg if test $found = "no" ; then 5684feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 568540a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 568640a76396Smrg fi 568740a76396Smrg 5688feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 568940a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 569040a76396Smrg fi 569140a76396Smrg 569240a76396Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 569340a76396Smrg 56940f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 56950f5b81e5Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 569640a76396Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 56970f5b81e5Smrg if eval test \${$cacheid+y} 56980f5b81e5Smrgthen : 56990f5b81e5Smrg printf %s "(cached) " >&6 57000f5b81e5Smrgelse $as_nop 570140a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 570240a76396Smrg/* end confdefs.h. */ 570340a76396Smrgint i; 570440a76396Smrgint 57050f5b81e5Smrgmain (void) 570640a76396Smrg{ 570740a76396Smrg 570840a76396Smrg ; 570940a76396Smrg return 0; 571040a76396Smrg} 571140a76396Smrg_ACEOF 57120f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 57130f5b81e5Smrgthen : 571440a76396Smrg eval $cacheid=yes 57150f5b81e5Smrgelse $as_nop 571640a76396Smrg eval $cacheid=no 571740a76396Smrgfi 57180f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 571940a76396Smrg conftest$ac_exeext conftest.$ac_ext 572040a76396Smrgfi 572140a76396Smrg 572240a76396Smrg 572340a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 572440a76396Smrg 572540a76396Smrg eval supported=\$$cacheid 57260f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 57270f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 572840a76396Smrg if test "$supported" = "yes" ; then 572940a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 573040a76396Smrg found="yes" 573140a76396Smrg fi 573240a76396Smrg fi 573340a76396Smrg 573440a76396Smrg 573540a76396Smrg 573640a76396Smrg 573740a76396Smrg 573840a76396Smrg 573940a76396Smrg 574040a76396Smrg 574140a76396Smrg 574240a76396Smrg 574340a76396Smrg 574440a76396Smrg 574540a76396Smrg 574640a76396Smrg 574740a76396Smrg 574840a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 574940a76396Smrg 575040a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 575140a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57520f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 57530f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 57540f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 57550f5b81e5Smrgthen : 57560f5b81e5Smrg printf %s "(cached) " >&6 57570f5b81e5Smrgelse $as_nop 575840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 575940a76396Smrg/* end confdefs.h. */ 576040a76396Smrgint i; 576140a76396Smrg_ACEOF 57620f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 57630f5b81e5Smrgthen : 576440a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 57650f5b81e5Smrgelse $as_nop 576640a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 576740a76396Smrgfi 57680f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 576940a76396Smrgfi 57700f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 57710f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 577240a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 577340a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 577440a76396Smrgfi 577540a76396Smrg 577640a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 577740a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 577840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 577940a76396Smrg fi 578040a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57810f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 57820f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 57830f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 57840f5b81e5Smrgthen : 57850f5b81e5Smrg printf %s "(cached) " >&6 57860f5b81e5Smrgelse $as_nop 578740a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 578840a76396Smrg/* end confdefs.h. */ 578940a76396Smrgint i; 579040a76396Smrg_ACEOF 57910f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 57920f5b81e5Smrgthen : 579340a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 57940f5b81e5Smrgelse $as_nop 579540a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 579640a76396Smrgfi 57970f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 579840a76396Smrgfi 57990f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 58000f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 580140a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 580240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 580340a76396Smrgfi 580440a76396Smrg 580540a76396Smrgfound="no" 580640a76396Smrg 580740a76396Smrg if test $found = "no" ; then 5808feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 580940a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 581040a76396Smrg fi 581140a76396Smrg 5812feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 581340a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 581440a76396Smrg fi 581540a76396Smrg 581640a76396Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 581740a76396Smrg 58180f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 58190f5b81e5Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 582040a76396Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 58210f5b81e5Smrg if eval test \${$cacheid+y} 58220f5b81e5Smrgthen : 58230f5b81e5Smrg printf %s "(cached) " >&6 58240f5b81e5Smrgelse $as_nop 582540a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 582640a76396Smrg/* end confdefs.h. */ 582740a76396Smrgint i; 582840a76396Smrgint 58290f5b81e5Smrgmain (void) 583040a76396Smrg{ 583140a76396Smrg 583240a76396Smrg ; 583340a76396Smrg return 0; 583440a76396Smrg} 583540a76396Smrg_ACEOF 58360f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 58370f5b81e5Smrgthen : 583840a76396Smrg eval $cacheid=yes 58390f5b81e5Smrgelse $as_nop 584040a76396Smrg eval $cacheid=no 584140a76396Smrgfi 58420f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 584340a76396Smrg conftest$ac_exeext conftest.$ac_ext 584440a76396Smrgfi 584540a76396Smrg 584640a76396Smrg 584740a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 584840a76396Smrg 584940a76396Smrg eval supported=\$$cacheid 58500f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 58510f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 585240a76396Smrg if test "$supported" = "yes" ; then 585340a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 585440a76396Smrg found="yes" 585540a76396Smrg fi 585640a76396Smrg fi 585740a76396Smrg 585840a76396Smrg 585940a76396Smrg 586040a76396Smrg 586140a76396Smrg 586240a76396Smrg 586340a76396Smrg 586440a76396Smrg 586540a76396Smrg 586640a76396Smrg 586740a76396Smrg 586840a76396Smrg 586940a76396Smrg 587040a76396Smrg 587140a76396Smrg 587240a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 587340a76396Smrg 587440a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 587540a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58760f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 58770f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 58780f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 58790f5b81e5Smrgthen : 58800f5b81e5Smrg printf %s "(cached) " >&6 58810f5b81e5Smrgelse $as_nop 588240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 588340a76396Smrg/* end confdefs.h. */ 588440a76396Smrgint i; 588540a76396Smrg_ACEOF 58860f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 58870f5b81e5Smrgthen : 588840a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 58890f5b81e5Smrgelse $as_nop 589040a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 589140a76396Smrgfi 58920f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 589340a76396Smrgfi 58940f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 58950f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 589640a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 589740a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 589840a76396Smrgfi 589940a76396Smrg 590040a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 590140a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 590240a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 590340a76396Smrg fi 590440a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59050f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 59060f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 59070f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 59080f5b81e5Smrgthen : 59090f5b81e5Smrg printf %s "(cached) " >&6 59100f5b81e5Smrgelse $as_nop 591140a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 591240a76396Smrg/* end confdefs.h. */ 591340a76396Smrgint i; 591440a76396Smrg_ACEOF 59150f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 59160f5b81e5Smrgthen : 591740a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 59180f5b81e5Smrgelse $as_nop 591940a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 592040a76396Smrgfi 59210f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 592240a76396Smrgfi 59230f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 59240f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 592540a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 592640a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 592740a76396Smrgfi 592840a76396Smrg 592940a76396Smrgfound="no" 593040a76396Smrg 593140a76396Smrg if test $found = "no" ; then 5932feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 593340a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 593440a76396Smrg fi 593540a76396Smrg 5936feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 593740a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 593840a76396Smrg fi 593940a76396Smrg 594040a76396Smrg CFLAGS="$CFLAGS -Wnested-externs" 594140a76396Smrg 59420f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 59430f5b81e5Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; } 594440a76396Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 59450f5b81e5Smrg if eval test \${$cacheid+y} 59460f5b81e5Smrgthen : 59470f5b81e5Smrg printf %s "(cached) " >&6 59480f5b81e5Smrgelse $as_nop 594940a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 595040a76396Smrg/* end confdefs.h. */ 595140a76396Smrgint i; 595240a76396Smrgint 59530f5b81e5Smrgmain (void) 595440a76396Smrg{ 595540a76396Smrg 595640a76396Smrg ; 595740a76396Smrg return 0; 595840a76396Smrg} 595940a76396Smrg_ACEOF 59600f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 59610f5b81e5Smrgthen : 596240a76396Smrg eval $cacheid=yes 59630f5b81e5Smrgelse $as_nop 596440a76396Smrg eval $cacheid=no 596540a76396Smrgfi 59660f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 596740a76396Smrg conftest$ac_exeext conftest.$ac_ext 596840a76396Smrgfi 596940a76396Smrg 597040a76396Smrg 597140a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 597240a76396Smrg 597340a76396Smrg eval supported=\$$cacheid 59740f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 59750f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 597640a76396Smrg if test "$supported" = "yes" ; then 597740a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 597840a76396Smrg found="yes" 597940a76396Smrg fi 598040a76396Smrg fi 598140a76396Smrg 598240a76396Smrg 598340a76396Smrg 598440a76396Smrg 598540a76396Smrg 598640a76396Smrg 598740a76396Smrg 598840a76396Smrg 598940a76396Smrg 599040a76396Smrg 599140a76396Smrg 599240a76396Smrg 599340a76396Smrg 599440a76396Smrg 599540a76396Smrg 599640a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 599740a76396Smrg 599840a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 599940a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60000f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 60010f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 60020f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 60030f5b81e5Smrgthen : 60040f5b81e5Smrg printf %s "(cached) " >&6 60050f5b81e5Smrgelse $as_nop 600640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 600740a76396Smrg/* end confdefs.h. */ 600840a76396Smrgint i; 600940a76396Smrg_ACEOF 60100f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 60110f5b81e5Smrgthen : 601240a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 60130f5b81e5Smrgelse $as_nop 601440a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 601540a76396Smrgfi 60160f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 601740a76396Smrgfi 60180f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 60190f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 602040a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 602140a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 602240a76396Smrgfi 602340a76396Smrg 602440a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 602540a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 602640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 602740a76396Smrg fi 602840a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 60290f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 60300f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 60310f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 60320f5b81e5Smrgthen : 60330f5b81e5Smrg printf %s "(cached) " >&6 60340f5b81e5Smrgelse $as_nop 603540a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 603640a76396Smrg/* end confdefs.h. */ 603740a76396Smrgint i; 603840a76396Smrg_ACEOF 60390f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 60400f5b81e5Smrgthen : 604140a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 60420f5b81e5Smrgelse $as_nop 604340a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 604440a76396Smrgfi 60450f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 604640a76396Smrgfi 60470f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 60480f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 604940a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 605040a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 605140a76396Smrgfi 605240a76396Smrg 605340a76396Smrgfound="no" 605440a76396Smrg 605540a76396Smrg if test $found = "no" ; then 6056feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 605740a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 605840a76396Smrg fi 605940a76396Smrg 6060feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 606140a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 606240a76396Smrg fi 606340a76396Smrg 606440a76396Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 606540a76396Smrg 60660f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 60670f5b81e5Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 606840a76396Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 60690f5b81e5Smrg if eval test \${$cacheid+y} 60700f5b81e5Smrgthen : 60710f5b81e5Smrg printf %s "(cached) " >&6 60720f5b81e5Smrgelse $as_nop 607340a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 607440a76396Smrg/* end confdefs.h. */ 607540a76396Smrgint i; 607640a76396Smrgint 60770f5b81e5Smrgmain (void) 607840a76396Smrg{ 607940a76396Smrg 608040a76396Smrg ; 608140a76396Smrg return 0; 608240a76396Smrg} 608340a76396Smrg_ACEOF 60840f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 60850f5b81e5Smrgthen : 608640a76396Smrg eval $cacheid=yes 60870f5b81e5Smrgelse $as_nop 608840a76396Smrg eval $cacheid=no 608940a76396Smrgfi 60900f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 609140a76396Smrg conftest$ac_exeext conftest.$ac_ext 609240a76396Smrgfi 609340a76396Smrg 609440a76396Smrg 609540a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 609640a76396Smrg 609740a76396Smrg eval supported=\$$cacheid 60980f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 60990f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 610040a76396Smrg if test "$supported" = "yes" ; then 610140a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 610240a76396Smrg found="yes" 610340a76396Smrg fi 610440a76396Smrg fi 610540a76396Smrg 610640a76396Smrg 610740a76396Smrg 610840a76396Smrg 610940a76396Smrg 611040a76396Smrg 611140a76396Smrg 611240a76396Smrg 611340a76396Smrg 611440a76396Smrg 611540a76396Smrg 611640a76396Smrg 611740a76396Smrg 611840a76396Smrg 611940a76396Smrg 612040a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 612140a76396Smrg 612240a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 612340a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61240f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 61250f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 61260f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 61270f5b81e5Smrgthen : 61280f5b81e5Smrg printf %s "(cached) " >&6 61290f5b81e5Smrgelse $as_nop 613040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 613140a76396Smrg/* end confdefs.h. */ 613240a76396Smrgint i; 613340a76396Smrg_ACEOF 61340f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 61350f5b81e5Smrgthen : 613640a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 61370f5b81e5Smrgelse $as_nop 613840a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 613940a76396Smrgfi 61400f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 614140a76396Smrgfi 61420f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 61430f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 614440a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 614540a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 614640a76396Smrgfi 614740a76396Smrg 614840a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 614940a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 615040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 615140a76396Smrg fi 615240a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61530f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 61540f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 61550f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 61560f5b81e5Smrgthen : 61570f5b81e5Smrg printf %s "(cached) " >&6 61580f5b81e5Smrgelse $as_nop 615940a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 616040a76396Smrg/* end confdefs.h. */ 616140a76396Smrgint i; 616240a76396Smrg_ACEOF 61630f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 61640f5b81e5Smrgthen : 616540a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 61660f5b81e5Smrgelse $as_nop 616740a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 616840a76396Smrgfi 61690f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 617040a76396Smrgfi 61710f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 61720f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 617340a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 617440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 617540a76396Smrgfi 617640a76396Smrg 617740a76396Smrgfound="no" 617840a76396Smrg 617940a76396Smrg if test $found = "no" ; then 6180feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 618140a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 618240a76396Smrg fi 618340a76396Smrg 6184feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 618540a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 618640a76396Smrg fi 618740a76396Smrg 618840a76396Smrg CFLAGS="$CFLAGS -Wold-style-definition" 618940a76396Smrg 61900f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 61910f5b81e5Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; } 619240a76396Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 61930f5b81e5Smrg if eval test \${$cacheid+y} 61940f5b81e5Smrgthen : 61950f5b81e5Smrg printf %s "(cached) " >&6 61960f5b81e5Smrgelse $as_nop 619740a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 619840a76396Smrg/* end confdefs.h. */ 619940a76396Smrgint i; 620040a76396Smrgint 62010f5b81e5Smrgmain (void) 620240a76396Smrg{ 620340a76396Smrg 620440a76396Smrg ; 620540a76396Smrg return 0; 620640a76396Smrg} 620740a76396Smrg_ACEOF 62080f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 62090f5b81e5Smrgthen : 621040a76396Smrg eval $cacheid=yes 62110f5b81e5Smrgelse $as_nop 621240a76396Smrg eval $cacheid=no 621340a76396Smrgfi 62140f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 621540a76396Smrg conftest$ac_exeext conftest.$ac_ext 621640a76396Smrgfi 621740a76396Smrg 621840a76396Smrg 621940a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 622040a76396Smrg 622140a76396Smrg eval supported=\$$cacheid 62220f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 62230f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 622440a76396Smrg if test "$supported" = "yes" ; then 622540a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 622640a76396Smrg found="yes" 622740a76396Smrg fi 622840a76396Smrg fi 622940a76396Smrg 6230feee4651Smrg if test $found = "no" ; then 6231feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6232feee4651Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6233feee4651Smrg fi 6234feee4651Smrg 6235feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6236feee4651Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6237feee4651Smrg fi 6238feee4651Smrg 6239feee4651Smrg CFLAGS="$CFLAGS -fd" 6240feee4651Smrg 62410f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 62420f5b81e5Smrgprintf %s "checking if $CC supports -fd... " >&6; } 6243feee4651Smrg cacheid=xorg_cv_cc_flag__fd 62440f5b81e5Smrg if eval test \${$cacheid+y} 62450f5b81e5Smrgthen : 62460f5b81e5Smrg printf %s "(cached) " >&6 62470f5b81e5Smrgelse $as_nop 6248feee4651Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6249feee4651Smrg/* end confdefs.h. */ 6250feee4651Smrgint i; 6251feee4651Smrgint 62520f5b81e5Smrgmain (void) 6253feee4651Smrg{ 6254feee4651Smrg 6255feee4651Smrg ; 6256feee4651Smrg return 0; 6257feee4651Smrg} 6258feee4651Smrg_ACEOF 62590f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 62600f5b81e5Smrgthen : 6261feee4651Smrg eval $cacheid=yes 62620f5b81e5Smrgelse $as_nop 6263feee4651Smrg eval $cacheid=no 6264feee4651Smrgfi 62650f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6266feee4651Smrg conftest$ac_exeext conftest.$ac_ext 6267feee4651Smrgfi 6268feee4651Smrg 6269feee4651Smrg 6270feee4651Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6271feee4651Smrg 6272feee4651Smrg eval supported=\$$cacheid 62730f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 62740f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 6275feee4651Smrg if test "$supported" = "yes" ; then 6276feee4651Smrg BASE_CFLAGS="$BASE_CFLAGS -fd" 6277feee4651Smrg found="yes" 6278feee4651Smrg fi 6279feee4651Smrg fi 6280feee4651Smrg 628140a76396Smrg 628240a76396Smrg 628340a76396Smrg 628440a76396Smrg 628540a76396Smrg 628640a76396Smrg 628740a76396Smrg 628840a76396Smrg 628940a76396Smrg 629040a76396Smrg 629140a76396Smrg 629240a76396Smrg 629340a76396Smrg 629440a76396Smrg 629540a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 629640a76396Smrg 629740a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 629840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62990f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 63000f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 63010f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 63020f5b81e5Smrgthen : 63030f5b81e5Smrg printf %s "(cached) " >&6 63040f5b81e5Smrgelse $as_nop 630540a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 630640a76396Smrg/* end confdefs.h. */ 630740a76396Smrgint i; 630840a76396Smrg_ACEOF 63090f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 63100f5b81e5Smrgthen : 631140a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 63120f5b81e5Smrgelse $as_nop 631340a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 631440a76396Smrgfi 63150f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 631640a76396Smrgfi 63170f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 63180f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 631940a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 632040a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 632140a76396Smrgfi 632240a76396Smrg 632340a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 632440a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 632540a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 632640a76396Smrg fi 632740a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63280f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 63290f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 63300f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 63310f5b81e5Smrgthen : 63320f5b81e5Smrg printf %s "(cached) " >&6 63330f5b81e5Smrgelse $as_nop 633440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 633540a76396Smrg/* end confdefs.h. */ 633640a76396Smrgint i; 633740a76396Smrg_ACEOF 63380f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 63390f5b81e5Smrgthen : 634040a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 63410f5b81e5Smrgelse $as_nop 634240a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 634340a76396Smrgfi 63440f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 634540a76396Smrgfi 63460f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 63470f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 634840a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 634940a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 635040a76396Smrgfi 635140a76396Smrg 635240a76396Smrgfound="no" 635340a76396Smrg 635440a76396Smrg if test $found = "no" ; then 6355feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 635640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 635740a76396Smrg fi 635840a76396Smrg 6359feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 636040a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 636140a76396Smrg fi 636240a76396Smrg 636340a76396Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 636440a76396Smrg 63650f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 63660f5b81e5Smrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 636740a76396Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 63680f5b81e5Smrg if eval test \${$cacheid+y} 63690f5b81e5Smrgthen : 63700f5b81e5Smrg printf %s "(cached) " >&6 63710f5b81e5Smrgelse $as_nop 637240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 637340a76396Smrg/* end confdefs.h. */ 637440a76396Smrgint i; 637540a76396Smrgint 63760f5b81e5Smrgmain (void) 637740a76396Smrg{ 637840a76396Smrg 637940a76396Smrg ; 638040a76396Smrg return 0; 638140a76396Smrg} 638240a76396Smrg_ACEOF 63830f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 63840f5b81e5Smrgthen : 638540a76396Smrg eval $cacheid=yes 63860f5b81e5Smrgelse $as_nop 638740a76396Smrg eval $cacheid=no 638840a76396Smrgfi 63890f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 639040a76396Smrg conftest$ac_exeext conftest.$ac_ext 639140a76396Smrgfi 639240a76396Smrg 639340a76396Smrg 639440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 639540a76396Smrg 639640a76396Smrg eval supported=\$$cacheid 63970f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 63980f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 639940a76396Smrg if test "$supported" = "yes" ; then 640040a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 640140a76396Smrg found="yes" 640240a76396Smrg fi 640340a76396Smrg fi 640440a76396Smrg 640540a76396Smrg 640640a76396Smrg 640740a76396Smrg 640840a76396Smrg 640940a76396Smrg# This chunk adds additional warnings that could catch undesired effects. 641040a76396Smrg 641140a76396Smrg 641240a76396Smrg 641340a76396Smrg 641440a76396Smrg 641540a76396Smrg 641640a76396Smrg 641740a76396Smrg 641840a76396Smrg 641940a76396Smrg 642040a76396Smrg 642140a76396Smrg 642240a76396Smrg 642340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 642440a76396Smrg 642540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 642640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64270f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 64280f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 64290f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 64300f5b81e5Smrgthen : 64310f5b81e5Smrg printf %s "(cached) " >&6 64320f5b81e5Smrgelse $as_nop 643340a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 643440a76396Smrg/* end confdefs.h. */ 643540a76396Smrgint i; 643640a76396Smrg_ACEOF 64370f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 64380f5b81e5Smrgthen : 643940a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 64400f5b81e5Smrgelse $as_nop 644140a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 644240a76396Smrgfi 64430f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 644440a76396Smrgfi 64450f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 64460f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 644740a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 644840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 644940a76396Smrgfi 645040a76396Smrg 645140a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 645240a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 645340a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 645440a76396Smrg fi 645540a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64560f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 64570f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 64580f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 64590f5b81e5Smrgthen : 64600f5b81e5Smrg printf %s "(cached) " >&6 64610f5b81e5Smrgelse $as_nop 646240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 646340a76396Smrg/* end confdefs.h. */ 646440a76396Smrgint i; 646540a76396Smrg_ACEOF 64660f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 64670f5b81e5Smrgthen : 646840a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 64690f5b81e5Smrgelse $as_nop 647040a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 647140a76396Smrgfi 64720f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 647340a76396Smrgfi 64740f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 64750f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 647640a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 647740a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 647840a76396Smrgfi 647940a76396Smrg 648040a76396Smrgfound="no" 648140a76396Smrg 648240a76396Smrg if test $found = "no" ; then 6483feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 648440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 648540a76396Smrg fi 648640a76396Smrg 6487feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 648840a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 648940a76396Smrg fi 649040a76396Smrg 649140a76396Smrg CFLAGS="$CFLAGS -Wunused" 649240a76396Smrg 64930f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 64940f5b81e5Smrgprintf %s "checking if $CC supports -Wunused... " >&6; } 649540a76396Smrg cacheid=xorg_cv_cc_flag__Wunused 64960f5b81e5Smrg if eval test \${$cacheid+y} 64970f5b81e5Smrgthen : 64980f5b81e5Smrg printf %s "(cached) " >&6 64990f5b81e5Smrgelse $as_nop 650040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 650140a76396Smrg/* end confdefs.h. */ 650240a76396Smrgint i; 650340a76396Smrgint 65040f5b81e5Smrgmain (void) 650540a76396Smrg{ 650640a76396Smrg 650740a76396Smrg ; 650840a76396Smrg return 0; 650940a76396Smrg} 651040a76396Smrg_ACEOF 65110f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 65120f5b81e5Smrgthen : 651340a76396Smrg eval $cacheid=yes 65140f5b81e5Smrgelse $as_nop 651540a76396Smrg eval $cacheid=no 651640a76396Smrgfi 65170f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 651840a76396Smrg conftest$ac_exeext conftest.$ac_ext 651940a76396Smrgfi 652040a76396Smrg 652140a76396Smrg 652240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 652340a76396Smrg 652440a76396Smrg eval supported=\$$cacheid 65250f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 65260f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 652740a76396Smrg if test "$supported" = "yes" ; then 652840a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 652940a76396Smrg found="yes" 653040a76396Smrg fi 653140a76396Smrg fi 653240a76396Smrg 653340a76396Smrg 653440a76396Smrg 653540a76396Smrg 653640a76396Smrg 653740a76396Smrg 653840a76396Smrg 653940a76396Smrg 654040a76396Smrg 654140a76396Smrg 654240a76396Smrg 654340a76396Smrg 654440a76396Smrg 654540a76396Smrg 654640a76396Smrg 654740a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 654840a76396Smrg 654940a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 655040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65510f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 65520f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 65530f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 65540f5b81e5Smrgthen : 65550f5b81e5Smrg printf %s "(cached) " >&6 65560f5b81e5Smrgelse $as_nop 655740a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 655840a76396Smrg/* end confdefs.h. */ 655940a76396Smrgint i; 656040a76396Smrg_ACEOF 65610f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 65620f5b81e5Smrgthen : 656340a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 65640f5b81e5Smrgelse $as_nop 656540a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 656640a76396Smrgfi 65670f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 656840a76396Smrgfi 65690f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 65700f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 657140a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 657240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 657340a76396Smrgfi 657440a76396Smrg 657540a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 657640a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 657740a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 657840a76396Smrg fi 657940a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 65800f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 65810f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 65820f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 65830f5b81e5Smrgthen : 65840f5b81e5Smrg printf %s "(cached) " >&6 65850f5b81e5Smrgelse $as_nop 658640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 658740a76396Smrg/* end confdefs.h. */ 658840a76396Smrgint i; 658940a76396Smrg_ACEOF 65900f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 65910f5b81e5Smrgthen : 659240a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 65930f5b81e5Smrgelse $as_nop 659440a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 659540a76396Smrgfi 65960f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 659740a76396Smrgfi 65980f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 65990f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 660040a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 660140a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 660240a76396Smrgfi 660340a76396Smrg 660440a76396Smrgfound="no" 660540a76396Smrg 660640a76396Smrg if test $found = "no" ; then 6607feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 660840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 660940a76396Smrg fi 661040a76396Smrg 6611feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 661240a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 661340a76396Smrg fi 661440a76396Smrg 661540a76396Smrg CFLAGS="$CFLAGS -Wuninitialized" 661640a76396Smrg 66170f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 66180f5b81e5Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; } 661940a76396Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 66200f5b81e5Smrg if eval test \${$cacheid+y} 66210f5b81e5Smrgthen : 66220f5b81e5Smrg printf %s "(cached) " >&6 66230f5b81e5Smrgelse $as_nop 662440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 662540a76396Smrg/* end confdefs.h. */ 662640a76396Smrgint i; 662740a76396Smrgint 66280f5b81e5Smrgmain (void) 662940a76396Smrg{ 663040a76396Smrg 663140a76396Smrg ; 663240a76396Smrg return 0; 663340a76396Smrg} 663440a76396Smrg_ACEOF 66350f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 66360f5b81e5Smrgthen : 663740a76396Smrg eval $cacheid=yes 66380f5b81e5Smrgelse $as_nop 663940a76396Smrg eval $cacheid=no 664040a76396Smrgfi 66410f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 664240a76396Smrg conftest$ac_exeext conftest.$ac_ext 664340a76396Smrgfi 664440a76396Smrg 664540a76396Smrg 664640a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 664740a76396Smrg 664840a76396Smrg eval supported=\$$cacheid 66490f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 66500f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 665140a76396Smrg if test "$supported" = "yes" ; then 665240a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 665340a76396Smrg found="yes" 665440a76396Smrg fi 665540a76396Smrg fi 665640a76396Smrg 665740a76396Smrg 665840a76396Smrg 665940a76396Smrg 666040a76396Smrg 666140a76396Smrg 666240a76396Smrg 666340a76396Smrg 666440a76396Smrg 666540a76396Smrg 666640a76396Smrg 666740a76396Smrg 666840a76396Smrg 666940a76396Smrg 667040a76396Smrg 667140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 667240a76396Smrg 667340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 667440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66750f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 66760f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 66770f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 66780f5b81e5Smrgthen : 66790f5b81e5Smrg printf %s "(cached) " >&6 66800f5b81e5Smrgelse $as_nop 668140a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 668240a76396Smrg/* end confdefs.h. */ 668340a76396Smrgint i; 668440a76396Smrg_ACEOF 66850f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 66860f5b81e5Smrgthen : 668740a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 66880f5b81e5Smrgelse $as_nop 668940a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 669040a76396Smrgfi 66910f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 669240a76396Smrgfi 66930f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 66940f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 669540a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 669640a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 669740a76396Smrgfi 669840a76396Smrg 669940a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 670040a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 670140a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 670240a76396Smrg fi 670340a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 67040f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 67050f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 67060f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 67070f5b81e5Smrgthen : 67080f5b81e5Smrg printf %s "(cached) " >&6 67090f5b81e5Smrgelse $as_nop 671040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 671140a76396Smrg/* end confdefs.h. */ 671240a76396Smrgint i; 671340a76396Smrg_ACEOF 67140f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 67150f5b81e5Smrgthen : 671640a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 67170f5b81e5Smrgelse $as_nop 671840a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 671940a76396Smrgfi 67200f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 672140a76396Smrgfi 67220f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 67230f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 672440a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 672540a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 672640a76396Smrgfi 672740a76396Smrg 672840a76396Smrgfound="no" 672940a76396Smrg 673040a76396Smrg if test $found = "no" ; then 6731feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 673240a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 673340a76396Smrg fi 673440a76396Smrg 6735feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 673640a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 673740a76396Smrg fi 673840a76396Smrg 673940a76396Smrg CFLAGS="$CFLAGS -Wshadow" 674040a76396Smrg 67410f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 67420f5b81e5Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; } 674340a76396Smrg cacheid=xorg_cv_cc_flag__Wshadow 67440f5b81e5Smrg if eval test \${$cacheid+y} 67450f5b81e5Smrgthen : 67460f5b81e5Smrg printf %s "(cached) " >&6 67470f5b81e5Smrgelse $as_nop 674840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 674940a76396Smrg/* end confdefs.h. */ 675040a76396Smrgint i; 675140a76396Smrgint 67520f5b81e5Smrgmain (void) 675340a76396Smrg{ 675440a76396Smrg 675540a76396Smrg ; 675640a76396Smrg return 0; 675740a76396Smrg} 675840a76396Smrg_ACEOF 67590f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 67600f5b81e5Smrgthen : 676140a76396Smrg eval $cacheid=yes 67620f5b81e5Smrgelse $as_nop 676340a76396Smrg eval $cacheid=no 676440a76396Smrgfi 67650f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 676640a76396Smrg conftest$ac_exeext conftest.$ac_ext 676740a76396Smrgfi 676840a76396Smrg 676940a76396Smrg 677040a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 677140a76396Smrg 677240a76396Smrg eval supported=\$$cacheid 67730f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 67740f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 677540a76396Smrg if test "$supported" = "yes" ; then 677640a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 677740a76396Smrg found="yes" 677840a76396Smrg fi 677940a76396Smrg fi 678040a76396Smrg 678140a76396Smrg 678240a76396Smrg 678340a76396Smrg 678440a76396Smrg 678540a76396Smrg 678640a76396Smrg 678740a76396Smrg 678840a76396Smrg 678940a76396Smrg 679040a76396Smrg 679140a76396Smrg 679240a76396Smrg 679340a76396Smrg 679440a76396Smrg 679540a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 679640a76396Smrg 679740a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 679840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67990f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 68000f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 68010f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 68020f5b81e5Smrgthen : 68030f5b81e5Smrg printf %s "(cached) " >&6 68040f5b81e5Smrgelse $as_nop 680540a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 680640a76396Smrg/* end confdefs.h. */ 680740a76396Smrgint i; 680840a76396Smrg_ACEOF 68090f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 68100f5b81e5Smrgthen : 681140a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 68120f5b81e5Smrgelse $as_nop 681340a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 681440a76396Smrgfi 68150f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 681640a76396Smrgfi 68170f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 68180f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 681940a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 682040a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 682140a76396Smrgfi 682240a76396Smrg 682340a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 682440a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 682540a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 682640a76396Smrg fi 682740a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68280f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 68290f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 68300f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 68310f5b81e5Smrgthen : 68320f5b81e5Smrg printf %s "(cached) " >&6 68330f5b81e5Smrgelse $as_nop 683440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 683540a76396Smrg/* end confdefs.h. */ 683640a76396Smrgint i; 683740a76396Smrg_ACEOF 68380f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 68390f5b81e5Smrgthen : 684040a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 68410f5b81e5Smrgelse $as_nop 684240a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 684340a76396Smrgfi 68440f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 684540a76396Smrgfi 68460f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 68470f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 684840a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 684940a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 685040a76396Smrgfi 685140a76396Smrg 685240a76396Smrgfound="no" 685340a76396Smrg 685440a76396Smrg if test $found = "no" ; then 6855feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 685640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 685740a76396Smrg fi 685840a76396Smrg 6859feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 686040a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 686140a76396Smrg fi 686240a76396Smrg 6863feee4651Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 686440a76396Smrg 68650f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 68660f5b81e5Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6867feee4651Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 68680f5b81e5Smrg if eval test \${$cacheid+y} 68690f5b81e5Smrgthen : 68700f5b81e5Smrg printf %s "(cached) " >&6 68710f5b81e5Smrgelse $as_nop 687240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 687340a76396Smrg/* end confdefs.h. */ 687440a76396Smrgint i; 687540a76396Smrgint 68760f5b81e5Smrgmain (void) 687740a76396Smrg{ 687840a76396Smrg 687940a76396Smrg ; 688040a76396Smrg return 0; 688140a76396Smrg} 688240a76396Smrg_ACEOF 68830f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 68840f5b81e5Smrgthen : 688540a76396Smrg eval $cacheid=yes 68860f5b81e5Smrgelse $as_nop 688740a76396Smrg eval $cacheid=no 688840a76396Smrgfi 68890f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 689040a76396Smrg conftest$ac_exeext conftest.$ac_ext 689140a76396Smrgfi 689240a76396Smrg 689340a76396Smrg 689440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 689540a76396Smrg 689640a76396Smrg eval supported=\$$cacheid 68970f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 68980f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 689940a76396Smrg if test "$supported" = "yes" ; then 6900feee4651Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 690140a76396Smrg found="yes" 690240a76396Smrg fi 690340a76396Smrg fi 690440a76396Smrg 690540a76396Smrg 690640a76396Smrg 690740a76396Smrg 690840a76396Smrg 690940a76396Smrg 691040a76396Smrg 691140a76396Smrg 691240a76396Smrg 691340a76396Smrg 691440a76396Smrg 691540a76396Smrg 691640a76396Smrg 691740a76396Smrg 691840a76396Smrg 691940a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 692040a76396Smrg 692140a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 692240a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69230f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 69240f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 69250f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 69260f5b81e5Smrgthen : 69270f5b81e5Smrg printf %s "(cached) " >&6 69280f5b81e5Smrgelse $as_nop 692940a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 693040a76396Smrg/* end confdefs.h. */ 693140a76396Smrgint i; 693240a76396Smrg_ACEOF 69330f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 69340f5b81e5Smrgthen : 693540a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 69360f5b81e5Smrgelse $as_nop 693740a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 693840a76396Smrgfi 69390f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 694040a76396Smrgfi 69410f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 69420f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 694340a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 694440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 694540a76396Smrgfi 694640a76396Smrg 694740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 694840a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 694940a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 695040a76396Smrg fi 695140a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69520f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 69530f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 69540f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 69550f5b81e5Smrgthen : 69560f5b81e5Smrg printf %s "(cached) " >&6 69570f5b81e5Smrgelse $as_nop 695840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 695940a76396Smrg/* end confdefs.h. */ 696040a76396Smrgint i; 696140a76396Smrg_ACEOF 69620f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 69630f5b81e5Smrgthen : 696440a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 69650f5b81e5Smrgelse $as_nop 696640a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 696740a76396Smrgfi 69680f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 696940a76396Smrgfi 69700f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 69710f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 697240a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 697340a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 697440a76396Smrgfi 697540a76396Smrg 697640a76396Smrgfound="no" 697740a76396Smrg 697840a76396Smrg if test $found = "no" ; then 6979feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 698040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 698140a76396Smrg fi 698240a76396Smrg 6983feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 698440a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 698540a76396Smrg fi 698640a76396Smrg 6987feee4651Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 698840a76396Smrg 69890f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 69900f5b81e5Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6991feee4651Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 69920f5b81e5Smrg if eval test \${$cacheid+y} 69930f5b81e5Smrgthen : 69940f5b81e5Smrg printf %s "(cached) " >&6 69950f5b81e5Smrgelse $as_nop 699640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 699740a76396Smrg/* end confdefs.h. */ 699840a76396Smrgint i; 699940a76396Smrgint 70000f5b81e5Smrgmain (void) 700140a76396Smrg{ 700240a76396Smrg 700340a76396Smrg ; 700440a76396Smrg return 0; 700540a76396Smrg} 700640a76396Smrg_ACEOF 70070f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 70080f5b81e5Smrgthen : 700940a76396Smrg eval $cacheid=yes 70100f5b81e5Smrgelse $as_nop 701140a76396Smrg eval $cacheid=no 701240a76396Smrgfi 70130f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 701440a76396Smrg conftest$ac_exeext conftest.$ac_ext 701540a76396Smrgfi 701640a76396Smrg 701740a76396Smrg 701840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 701940a76396Smrg 702040a76396Smrg eval supported=\$$cacheid 70210f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 70220f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 702340a76396Smrg if test "$supported" = "yes" ; then 7024feee4651Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 702540a76396Smrg found="yes" 702640a76396Smrg fi 702740a76396Smrg fi 702840a76396Smrg 702940a76396Smrg 703040a76396Smrg 703140a76396Smrg 703240a76396Smrg 703340a76396Smrg 703440a76396Smrg 703540a76396Smrg 703640a76396Smrg 703740a76396Smrg 703840a76396Smrg 703940a76396Smrg 704040a76396Smrg 704140a76396Smrg 704240a76396Smrg 704340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 704440a76396Smrg 704540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 704640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70470f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 70480f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 70490f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 70500f5b81e5Smrgthen : 70510f5b81e5Smrg printf %s "(cached) " >&6 70520f5b81e5Smrgelse $as_nop 705340a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 705440a76396Smrg/* end confdefs.h. */ 705540a76396Smrgint i; 705640a76396Smrg_ACEOF 70570f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 70580f5b81e5Smrgthen : 705940a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 70600f5b81e5Smrgelse $as_nop 706140a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 706240a76396Smrgfi 70630f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 706440a76396Smrgfi 70650f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 70660f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 706740a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 706840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 706940a76396Smrgfi 707040a76396Smrg 707140a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 707240a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 707340a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 707440a76396Smrg fi 707540a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70760f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 70770f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 70780f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 70790f5b81e5Smrgthen : 70800f5b81e5Smrg printf %s "(cached) " >&6 70810f5b81e5Smrgelse $as_nop 708240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 708340a76396Smrg/* end confdefs.h. */ 708440a76396Smrgint i; 708540a76396Smrg_ACEOF 70860f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 70870f5b81e5Smrgthen : 708840a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 70890f5b81e5Smrgelse $as_nop 709040a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 709140a76396Smrgfi 70920f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 709340a76396Smrgfi 70940f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 70950f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 709640a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 709740a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 709840a76396Smrgfi 709940a76396Smrg 710040a76396Smrgfound="no" 710140a76396Smrg 710240a76396Smrg if test $found = "no" ; then 7103feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 710440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 710540a76396Smrg fi 710640a76396Smrg 7107feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 710840a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 710940a76396Smrg fi 711040a76396Smrg 7111feee4651Smrg CFLAGS="$CFLAGS -Wredundant-decls" 711240a76396Smrg 71130f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 71140f5b81e5Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7115feee4651Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 71160f5b81e5Smrg if eval test \${$cacheid+y} 71170f5b81e5Smrgthen : 71180f5b81e5Smrg printf %s "(cached) " >&6 71190f5b81e5Smrgelse $as_nop 712040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 712140a76396Smrg/* end confdefs.h. */ 712240a76396Smrgint i; 712340a76396Smrgint 71240f5b81e5Smrgmain (void) 712540a76396Smrg{ 712640a76396Smrg 712740a76396Smrg ; 712840a76396Smrg return 0; 712940a76396Smrg} 713040a76396Smrg_ACEOF 71310f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 71320f5b81e5Smrgthen : 713340a76396Smrg eval $cacheid=yes 71340f5b81e5Smrgelse $as_nop 713540a76396Smrg eval $cacheid=no 713640a76396Smrgfi 71370f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 713840a76396Smrg conftest$ac_exeext conftest.$ac_ext 713940a76396Smrgfi 714040a76396Smrg 714140a76396Smrg 714240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 714340a76396Smrg 714440a76396Smrg eval supported=\$$cacheid 71450f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 71460f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 714740a76396Smrg if test "$supported" = "yes" ; then 7148feee4651Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 714940a76396Smrg found="yes" 715040a76396Smrg fi 715140a76396Smrg fi 715240a76396Smrg 715340a76396Smrg 715440a76396Smrg 715540a76396Smrg 715640a76396Smrg 715740a76396Smrg 715840a76396Smrg 715940a76396Smrg 716040a76396Smrg 716140a76396Smrg 716240a76396Smrg 716340a76396Smrg 716440a76396Smrg 716540a76396Smrg 716640a76396Smrg 716740a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 716840a76396Smrg 716940a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 717040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71710f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 71720f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 71730f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 71740f5b81e5Smrgthen : 71750f5b81e5Smrg printf %s "(cached) " >&6 71760f5b81e5Smrgelse $as_nop 717740a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 717840a76396Smrg/* end confdefs.h. */ 717940a76396Smrgint i; 718040a76396Smrg_ACEOF 71810f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 71820f5b81e5Smrgthen : 718340a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 71840f5b81e5Smrgelse $as_nop 718540a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 718640a76396Smrgfi 71870f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 718840a76396Smrgfi 71890f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 71900f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 719140a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 719240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 719340a76396Smrgfi 719440a76396Smrg 719540a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 719640a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 719740a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 719840a76396Smrg fi 719940a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 72000f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 72010f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 72020f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 72030f5b81e5Smrgthen : 72040f5b81e5Smrg printf %s "(cached) " >&6 72050f5b81e5Smrgelse $as_nop 720640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 720740a76396Smrg/* end confdefs.h. */ 720840a76396Smrgint i; 720940a76396Smrg_ACEOF 72100f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 72110f5b81e5Smrgthen : 721240a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 72130f5b81e5Smrgelse $as_nop 721440a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 721540a76396Smrgfi 72160f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 721740a76396Smrgfi 72180f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 72190f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 722040a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 722140a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 722240a76396Smrgfi 722340a76396Smrg 722440a76396Smrgfound="no" 722540a76396Smrg 722640a76396Smrg if test $found = "no" ; then 7227feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 722840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 722940a76396Smrg fi 723040a76396Smrg 7231feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 723240a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 723340a76396Smrg fi 723440a76396Smrg 7235feee4651Smrg CFLAGS="$CFLAGS -Wlogical-op" 723640a76396Smrg 72370f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 72380f5b81e5Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; } 7239feee4651Smrg cacheid=xorg_cv_cc_flag__Wlogical_op 72400f5b81e5Smrg if eval test \${$cacheid+y} 72410f5b81e5Smrgthen : 72420f5b81e5Smrg printf %s "(cached) " >&6 72430f5b81e5Smrgelse $as_nop 724440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 724540a76396Smrg/* end confdefs.h. */ 724640a76396Smrgint i; 724740a76396Smrgint 72480f5b81e5Smrgmain (void) 724940a76396Smrg{ 725040a76396Smrg 725140a76396Smrg ; 725240a76396Smrg return 0; 725340a76396Smrg} 725440a76396Smrg_ACEOF 72550f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 72560f5b81e5Smrgthen : 725740a76396Smrg eval $cacheid=yes 72580f5b81e5Smrgelse $as_nop 725940a76396Smrg eval $cacheid=no 726040a76396Smrgfi 72610f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 726240a76396Smrg conftest$ac_exeext conftest.$ac_ext 726340a76396Smrgfi 726440a76396Smrg 726540a76396Smrg 726640a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 726740a76396Smrg 726840a76396Smrg eval supported=\$$cacheid 72690f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 72700f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 727140a76396Smrg if test "$supported" = "yes" ; then 7272feee4651Smrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 727340a76396Smrg found="yes" 727440a76396Smrg fi 727540a76396Smrg fi 727640a76396Smrg 727740a76396Smrg 727840a76396Smrg 727940a76396Smrg# These are currently disabled because they are noisy. They will be enabled 728040a76396Smrg# in the future once the codebase is sufficiently modernized to silence 728140a76396Smrg# them. For now, I don't want them to drown out the other warnings. 728240a76396Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 728340a76396Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7284feee4651Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 728540a76396Smrg 728640a76396Smrg# Turn some warnings into errors, so we don't accidently get successful builds 728740a76396Smrg# when there are problems that should be fixed. 728840a76396Smrg 728940a76396Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 729040a76396Smrg 729140a76396Smrg 729240a76396Smrg 729340a76396Smrg 729440a76396Smrg 729540a76396Smrg 729640a76396Smrg 729740a76396Smrg 729840a76396Smrg 729940a76396Smrg 730040a76396Smrg 730140a76396Smrg 730240a76396Smrg 730340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 730440a76396Smrg 730540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 730640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73070f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 73080f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 73090f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 73100f5b81e5Smrgthen : 73110f5b81e5Smrg printf %s "(cached) " >&6 73120f5b81e5Smrgelse $as_nop 731340a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 731440a76396Smrg/* end confdefs.h. */ 731540a76396Smrgint i; 731640a76396Smrg_ACEOF 73170f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 73180f5b81e5Smrgthen : 731940a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 73200f5b81e5Smrgelse $as_nop 732140a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 732240a76396Smrgfi 73230f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 732440a76396Smrgfi 73250f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 73260f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 732740a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 732840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 732940a76396Smrgfi 733040a76396Smrg 733140a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 733240a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 733340a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 733440a76396Smrg fi 733540a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73360f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 73370f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 73380f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 73390f5b81e5Smrgthen : 73400f5b81e5Smrg printf %s "(cached) " >&6 73410f5b81e5Smrgelse $as_nop 734240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 734340a76396Smrg/* end confdefs.h. */ 734440a76396Smrgint i; 734540a76396Smrg_ACEOF 73460f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 73470f5b81e5Smrgthen : 734840a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 73490f5b81e5Smrgelse $as_nop 735040a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 735140a76396Smrgfi 73520f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 735340a76396Smrgfi 73540f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 73550f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 735640a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 735740a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 735840a76396Smrgfi 735940a76396Smrg 736040a76396Smrgfound="no" 736140a76396Smrg 736240a76396Smrg if test $found = "no" ; then 7363feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 736440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 736540a76396Smrg fi 736640a76396Smrg 7367feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 736840a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 736940a76396Smrg fi 737040a76396Smrg 737140a76396Smrg CFLAGS="$CFLAGS -Werror=implicit" 737240a76396Smrg 73730f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 73740f5b81e5Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; } 7375feee4651Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 73760f5b81e5Smrg if eval test \${$cacheid+y} 73770f5b81e5Smrgthen : 73780f5b81e5Smrg printf %s "(cached) " >&6 73790f5b81e5Smrgelse $as_nop 738040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 738140a76396Smrg/* end confdefs.h. */ 738240a76396Smrgint i; 738340a76396Smrgint 73840f5b81e5Smrgmain (void) 738540a76396Smrg{ 738640a76396Smrg 738740a76396Smrg ; 738840a76396Smrg return 0; 738940a76396Smrg} 739040a76396Smrg_ACEOF 73910f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 73920f5b81e5Smrgthen : 739340a76396Smrg eval $cacheid=yes 73940f5b81e5Smrgelse $as_nop 739540a76396Smrg eval $cacheid=no 739640a76396Smrgfi 73970f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 739840a76396Smrg conftest$ac_exeext conftest.$ac_ext 739940a76396Smrgfi 740040a76396Smrg 740140a76396Smrg 740240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 740340a76396Smrg 740440a76396Smrg eval supported=\$$cacheid 74050f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 74060f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 740740a76396Smrg if test "$supported" = "yes" ; then 740840a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 740940a76396Smrg found="yes" 741040a76396Smrg fi 741140a76396Smrg fi 741240a76396Smrg 741340a76396Smrg if test $found = "no" ; then 7414feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 741540a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 741640a76396Smrg fi 741740a76396Smrg 7418feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 741940a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 742040a76396Smrg fi 742140a76396Smrg 742240a76396Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 742340a76396Smrg 74240f5b81e5Smrg { 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 74250f5b81e5Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7426feee4651Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 74270f5b81e5Smrg if eval test \${$cacheid+y} 74280f5b81e5Smrgthen : 74290f5b81e5Smrg printf %s "(cached) " >&6 74300f5b81e5Smrgelse $as_nop 743140a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 743240a76396Smrg/* end confdefs.h. */ 743340a76396Smrgint i; 743440a76396Smrgint 74350f5b81e5Smrgmain (void) 743640a76396Smrg{ 743740a76396Smrg 743840a76396Smrg ; 743940a76396Smrg return 0; 744040a76396Smrg} 744140a76396Smrg_ACEOF 74420f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 74430f5b81e5Smrgthen : 744440a76396Smrg eval $cacheid=yes 74450f5b81e5Smrgelse $as_nop 744640a76396Smrg eval $cacheid=no 744740a76396Smrgfi 74480f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 744940a76396Smrg conftest$ac_exeext conftest.$ac_ext 745040a76396Smrgfi 745140a76396Smrg 745240a76396Smrg 745340a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 745440a76396Smrg 745540a76396Smrg eval supported=\$$cacheid 74560f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 74570f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 745840a76396Smrg if test "$supported" = "yes" ; then 745940a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 746040a76396Smrg found="yes" 746140a76396Smrg fi 746240a76396Smrg fi 746340a76396Smrg 746440a76396Smrg 746540a76396Smrg 746640a76396Smrg 746740a76396Smrg 746840a76396Smrg 746940a76396Smrg 747040a76396Smrg 747140a76396Smrg 747240a76396Smrg 747340a76396Smrg 747440a76396Smrg 747540a76396Smrg 747640a76396Smrg 747740a76396Smrg 747840a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 747940a76396Smrg 748040a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 748140a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74820f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 74830f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 74840f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 74850f5b81e5Smrgthen : 74860f5b81e5Smrg printf %s "(cached) " >&6 74870f5b81e5Smrgelse $as_nop 748840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 748940a76396Smrg/* end confdefs.h. */ 749040a76396Smrgint i; 749140a76396Smrg_ACEOF 74920f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 74930f5b81e5Smrgthen : 749440a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 74950f5b81e5Smrgelse $as_nop 749640a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 749740a76396Smrgfi 74980f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 749940a76396Smrgfi 75000f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 75010f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 750240a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 750340a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 750440a76396Smrgfi 750540a76396Smrg 750640a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 750740a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 750840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 750940a76396Smrg fi 751040a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75110f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 75120f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 75130f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 75140f5b81e5Smrgthen : 75150f5b81e5Smrg printf %s "(cached) " >&6 75160f5b81e5Smrgelse $as_nop 751740a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 751840a76396Smrg/* end confdefs.h. */ 751940a76396Smrgint i; 752040a76396Smrg_ACEOF 75210f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 75220f5b81e5Smrgthen : 752340a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 75240f5b81e5Smrgelse $as_nop 752540a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 752640a76396Smrgfi 75270f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 752840a76396Smrgfi 75290f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 75300f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 753140a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 753240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 753340a76396Smrgfi 753440a76396Smrg 753540a76396Smrgfound="no" 753640a76396Smrg 753740a76396Smrg if test $found = "no" ; then 7538feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 753940a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 754040a76396Smrg fi 754140a76396Smrg 7542feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 754340a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 754440a76396Smrg fi 754540a76396Smrg 754640a76396Smrg CFLAGS="$CFLAGS -Werror=nonnull" 754740a76396Smrg 75480f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 75490f5b81e5Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7550feee4651Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 75510f5b81e5Smrg if eval test \${$cacheid+y} 75520f5b81e5Smrgthen : 75530f5b81e5Smrg printf %s "(cached) " >&6 75540f5b81e5Smrgelse $as_nop 755540a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 755640a76396Smrg/* end confdefs.h. */ 755740a76396Smrgint i; 755840a76396Smrgint 75590f5b81e5Smrgmain (void) 756040a76396Smrg{ 756140a76396Smrg 756240a76396Smrg ; 756340a76396Smrg return 0; 756440a76396Smrg} 756540a76396Smrg_ACEOF 75660f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 75670f5b81e5Smrgthen : 756840a76396Smrg eval $cacheid=yes 75690f5b81e5Smrgelse $as_nop 757040a76396Smrg eval $cacheid=no 757140a76396Smrgfi 75720f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 757340a76396Smrg conftest$ac_exeext conftest.$ac_ext 757440a76396Smrgfi 757540a76396Smrg 757640a76396Smrg 757740a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 757840a76396Smrg 757940a76396Smrg eval supported=\$$cacheid 75800f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 75810f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 758240a76396Smrg if test "$supported" = "yes" ; then 758340a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 758440a76396Smrg found="yes" 758540a76396Smrg fi 758640a76396Smrg fi 758740a76396Smrg 758840a76396Smrg 758940a76396Smrg 759040a76396Smrg 759140a76396Smrg 759240a76396Smrg 759340a76396Smrg 759440a76396Smrg 759540a76396Smrg 759640a76396Smrg 759740a76396Smrg 759840a76396Smrg 759940a76396Smrg 760040a76396Smrg 760140a76396Smrg 760240a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 760340a76396Smrg 760440a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 760540a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76060f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 76070f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 76080f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 76090f5b81e5Smrgthen : 76100f5b81e5Smrg printf %s "(cached) " >&6 76110f5b81e5Smrgelse $as_nop 761240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 761340a76396Smrg/* end confdefs.h. */ 761440a76396Smrgint i; 761540a76396Smrg_ACEOF 76160f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 76170f5b81e5Smrgthen : 761840a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 76190f5b81e5Smrgelse $as_nop 762040a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 762140a76396Smrgfi 76220f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 762340a76396Smrgfi 76240f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 76250f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 762640a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 762740a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 762840a76396Smrgfi 762940a76396Smrg 763040a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 763140a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 763240a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 763340a76396Smrg fi 763440a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 76350f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 76360f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 76370f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 76380f5b81e5Smrgthen : 76390f5b81e5Smrg printf %s "(cached) " >&6 76400f5b81e5Smrgelse $as_nop 764140a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 764240a76396Smrg/* end confdefs.h. */ 764340a76396Smrgint i; 764440a76396Smrg_ACEOF 76450f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 76460f5b81e5Smrgthen : 764740a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 76480f5b81e5Smrgelse $as_nop 764940a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 765040a76396Smrgfi 76510f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 765240a76396Smrgfi 76530f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 76540f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 765540a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 765640a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 765740a76396Smrgfi 765840a76396Smrg 765940a76396Smrgfound="no" 766040a76396Smrg 766140a76396Smrg if test $found = "no" ; then 7662feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 766340a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 766440a76396Smrg fi 766540a76396Smrg 7666feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 766740a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 766840a76396Smrg fi 766940a76396Smrg 767040a76396Smrg CFLAGS="$CFLAGS -Werror=init-self" 767140a76396Smrg 76720f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 76730f5b81e5Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; } 7674feee4651Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 76750f5b81e5Smrg if eval test \${$cacheid+y} 76760f5b81e5Smrgthen : 76770f5b81e5Smrg printf %s "(cached) " >&6 76780f5b81e5Smrgelse $as_nop 767940a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 768040a76396Smrg/* end confdefs.h. */ 768140a76396Smrgint i; 768240a76396Smrgint 76830f5b81e5Smrgmain (void) 768440a76396Smrg{ 768540a76396Smrg 768640a76396Smrg ; 768740a76396Smrg return 0; 768840a76396Smrg} 768940a76396Smrg_ACEOF 76900f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 76910f5b81e5Smrgthen : 769240a76396Smrg eval $cacheid=yes 76930f5b81e5Smrgelse $as_nop 769440a76396Smrg eval $cacheid=no 769540a76396Smrgfi 76960f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 769740a76396Smrg conftest$ac_exeext conftest.$ac_ext 769840a76396Smrgfi 769940a76396Smrg 770040a76396Smrg 770140a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 770240a76396Smrg 770340a76396Smrg eval supported=\$$cacheid 77040f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 77050f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 770640a76396Smrg if test "$supported" = "yes" ; then 770740a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 770840a76396Smrg found="yes" 770940a76396Smrg fi 771040a76396Smrg fi 771140a76396Smrg 771240a76396Smrg 771340a76396Smrg 771440a76396Smrg 771540a76396Smrg 771640a76396Smrg 771740a76396Smrg 771840a76396Smrg 771940a76396Smrg 772040a76396Smrg 772140a76396Smrg 772240a76396Smrg 772340a76396Smrg 772440a76396Smrg 772540a76396Smrg 772640a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 772740a76396Smrg 772840a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 772940a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77300f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 77310f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 77320f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 77330f5b81e5Smrgthen : 77340f5b81e5Smrg printf %s "(cached) " >&6 77350f5b81e5Smrgelse $as_nop 773640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 773740a76396Smrg/* end confdefs.h. */ 773840a76396Smrgint i; 773940a76396Smrg_ACEOF 77400f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 77410f5b81e5Smrgthen : 774240a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 77430f5b81e5Smrgelse $as_nop 774440a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 774540a76396Smrgfi 77460f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 774740a76396Smrgfi 77480f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 77490f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 775040a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 775140a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 775240a76396Smrgfi 775340a76396Smrg 775440a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 775540a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 775640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 775740a76396Smrg fi 775840a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77590f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 77600f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 77610f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 77620f5b81e5Smrgthen : 77630f5b81e5Smrg printf %s "(cached) " >&6 77640f5b81e5Smrgelse $as_nop 776540a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 776640a76396Smrg/* end confdefs.h. */ 776740a76396Smrgint i; 776840a76396Smrg_ACEOF 77690f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 77700f5b81e5Smrgthen : 777140a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 77720f5b81e5Smrgelse $as_nop 777340a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 777440a76396Smrgfi 77750f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 777640a76396Smrgfi 77770f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 77780f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 777940a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 778040a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 778140a76396Smrgfi 778240a76396Smrg 778340a76396Smrgfound="no" 778440a76396Smrg 778540a76396Smrg if test $found = "no" ; then 7786feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 778740a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 778840a76396Smrg fi 778940a76396Smrg 7790feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 779140a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 779240a76396Smrg fi 779340a76396Smrg 779440a76396Smrg CFLAGS="$CFLAGS -Werror=main" 779540a76396Smrg 77960f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 77970f5b81e5Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; } 7798feee4651Smrg cacheid=xorg_cv_cc_flag__Werror_main 77990f5b81e5Smrg if eval test \${$cacheid+y} 78000f5b81e5Smrgthen : 78010f5b81e5Smrg printf %s "(cached) " >&6 78020f5b81e5Smrgelse $as_nop 780340a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 780440a76396Smrg/* end confdefs.h. */ 780540a76396Smrgint i; 780640a76396Smrgint 78070f5b81e5Smrgmain (void) 780840a76396Smrg{ 780940a76396Smrg 781040a76396Smrg ; 781140a76396Smrg return 0; 781240a76396Smrg} 781340a76396Smrg_ACEOF 78140f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 78150f5b81e5Smrgthen : 781640a76396Smrg eval $cacheid=yes 78170f5b81e5Smrgelse $as_nop 781840a76396Smrg eval $cacheid=no 781940a76396Smrgfi 78200f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 782140a76396Smrg conftest$ac_exeext conftest.$ac_ext 782240a76396Smrgfi 782340a76396Smrg 782440a76396Smrg 782540a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 782640a76396Smrg 782740a76396Smrg eval supported=\$$cacheid 78280f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 78290f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 783040a76396Smrg if test "$supported" = "yes" ; then 783140a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 783240a76396Smrg found="yes" 783340a76396Smrg fi 783440a76396Smrg fi 783540a76396Smrg 783640a76396Smrg 783740a76396Smrg 783840a76396Smrg 783940a76396Smrg 784040a76396Smrg 784140a76396Smrg 784240a76396Smrg 784340a76396Smrg 784440a76396Smrg 784540a76396Smrg 784640a76396Smrg 784740a76396Smrg 784840a76396Smrg 784940a76396Smrg 785040a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 785140a76396Smrg 785240a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 785340a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78540f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 78550f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 78560f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 78570f5b81e5Smrgthen : 78580f5b81e5Smrg printf %s "(cached) " >&6 78590f5b81e5Smrgelse $as_nop 786040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 786140a76396Smrg/* end confdefs.h. */ 786240a76396Smrgint i; 786340a76396Smrg_ACEOF 78640f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 78650f5b81e5Smrgthen : 786640a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 78670f5b81e5Smrgelse $as_nop 786840a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 786940a76396Smrgfi 78700f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 787140a76396Smrgfi 78720f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 78730f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 787440a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 787540a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 787640a76396Smrgfi 787740a76396Smrg 787840a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 787940a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 788040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 788140a76396Smrg fi 788240a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 78830f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 78840f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 78850f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 78860f5b81e5Smrgthen : 78870f5b81e5Smrg printf %s "(cached) " >&6 78880f5b81e5Smrgelse $as_nop 788940a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 789040a76396Smrg/* end confdefs.h. */ 789140a76396Smrgint i; 789240a76396Smrg_ACEOF 78930f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 78940f5b81e5Smrgthen : 789540a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 78960f5b81e5Smrgelse $as_nop 789740a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 789840a76396Smrgfi 78990f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 790040a76396Smrgfi 79010f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 79020f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 790340a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 790440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 790540a76396Smrgfi 790640a76396Smrg 790740a76396Smrgfound="no" 790840a76396Smrg 790940a76396Smrg if test $found = "no" ; then 7910feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 791140a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 791240a76396Smrg fi 791340a76396Smrg 7914feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 791540a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 791640a76396Smrg fi 791740a76396Smrg 791840a76396Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 791940a76396Smrg 79200f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 79210f5b81e5Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7922feee4651Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 79230f5b81e5Smrg if eval test \${$cacheid+y} 79240f5b81e5Smrgthen : 79250f5b81e5Smrg printf %s "(cached) " >&6 79260f5b81e5Smrgelse $as_nop 792740a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 792840a76396Smrg/* end confdefs.h. */ 792940a76396Smrgint i; 793040a76396Smrgint 79310f5b81e5Smrgmain (void) 793240a76396Smrg{ 793340a76396Smrg 793440a76396Smrg ; 793540a76396Smrg return 0; 793640a76396Smrg} 793740a76396Smrg_ACEOF 79380f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 79390f5b81e5Smrgthen : 794040a76396Smrg eval $cacheid=yes 79410f5b81e5Smrgelse $as_nop 794240a76396Smrg eval $cacheid=no 794340a76396Smrgfi 79440f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 794540a76396Smrg conftest$ac_exeext conftest.$ac_ext 794640a76396Smrgfi 794740a76396Smrg 794840a76396Smrg 794940a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 795040a76396Smrg 795140a76396Smrg eval supported=\$$cacheid 79520f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 79530f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 795440a76396Smrg if test "$supported" = "yes" ; then 795540a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 795640a76396Smrg found="yes" 795740a76396Smrg fi 795840a76396Smrg fi 795940a76396Smrg 796040a76396Smrg 796140a76396Smrg 796240a76396Smrg 796340a76396Smrg 796440a76396Smrg 796540a76396Smrg 796640a76396Smrg 796740a76396Smrg 796840a76396Smrg 796940a76396Smrg 797040a76396Smrg 797140a76396Smrg 797240a76396Smrg 797340a76396Smrg 797440a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 797540a76396Smrg 797640a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 797740a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79780f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 79790f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 79800f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 79810f5b81e5Smrgthen : 79820f5b81e5Smrg printf %s "(cached) " >&6 79830f5b81e5Smrgelse $as_nop 798440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 798540a76396Smrg/* end confdefs.h. */ 798640a76396Smrgint i; 798740a76396Smrg_ACEOF 79880f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 79890f5b81e5Smrgthen : 799040a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 79910f5b81e5Smrgelse $as_nop 799240a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 799340a76396Smrgfi 79940f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 799540a76396Smrgfi 79960f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 79970f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 799840a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 799940a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 800040a76396Smrgfi 800140a76396Smrg 800240a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 800340a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 800440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 800540a76396Smrg fi 800640a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 80070f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 80080f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 80090f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 80100f5b81e5Smrgthen : 80110f5b81e5Smrg printf %s "(cached) " >&6 80120f5b81e5Smrgelse $as_nop 801340a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 801440a76396Smrg/* end confdefs.h. */ 801540a76396Smrgint i; 801640a76396Smrg_ACEOF 80170f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 80180f5b81e5Smrgthen : 801940a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 80200f5b81e5Smrgelse $as_nop 802140a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 802240a76396Smrgfi 80230f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 802440a76396Smrgfi 80250f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 80260f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 802740a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 802840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 802940a76396Smrgfi 803040a76396Smrg 803140a76396Smrgfound="no" 803240a76396Smrg 803340a76396Smrg if test $found = "no" ; then 8034feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 803540a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 803640a76396Smrg fi 803740a76396Smrg 8038feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 803940a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 804040a76396Smrg fi 804140a76396Smrg 804240a76396Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 804340a76396Smrg 80440f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 80450f5b81e5Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8046feee4651Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 80470f5b81e5Smrg if eval test \${$cacheid+y} 80480f5b81e5Smrgthen : 80490f5b81e5Smrg printf %s "(cached) " >&6 80500f5b81e5Smrgelse $as_nop 805140a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 805240a76396Smrg/* end confdefs.h. */ 805340a76396Smrgint i; 805440a76396Smrgint 80550f5b81e5Smrgmain (void) 805640a76396Smrg{ 805740a76396Smrg 805840a76396Smrg ; 805940a76396Smrg return 0; 806040a76396Smrg} 806140a76396Smrg_ACEOF 80620f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 80630f5b81e5Smrgthen : 806440a76396Smrg eval $cacheid=yes 80650f5b81e5Smrgelse $as_nop 806640a76396Smrg eval $cacheid=no 806740a76396Smrgfi 80680f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 806940a76396Smrg conftest$ac_exeext conftest.$ac_ext 807040a76396Smrgfi 807140a76396Smrg 807240a76396Smrg 807340a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 807440a76396Smrg 807540a76396Smrg eval supported=\$$cacheid 80760f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 80770f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 807840a76396Smrg if test "$supported" = "yes" ; then 807940a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 808040a76396Smrg found="yes" 808140a76396Smrg fi 808240a76396Smrg fi 808340a76396Smrg 808440a76396Smrg 808540a76396Smrg 808640a76396Smrg 808740a76396Smrg 808840a76396Smrg 808940a76396Smrg 809040a76396Smrg 809140a76396Smrg 809240a76396Smrg 809340a76396Smrg 809440a76396Smrg 809540a76396Smrg 809640a76396Smrg 809740a76396Smrg 809840a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 809940a76396Smrg 810040a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 810140a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81020f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 81030f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 81040f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 81050f5b81e5Smrgthen : 81060f5b81e5Smrg printf %s "(cached) " >&6 81070f5b81e5Smrgelse $as_nop 810840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 810940a76396Smrg/* end confdefs.h. */ 811040a76396Smrgint i; 811140a76396Smrg_ACEOF 81120f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 81130f5b81e5Smrgthen : 811440a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 81150f5b81e5Smrgelse $as_nop 811640a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 811740a76396Smrgfi 81180f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 811940a76396Smrgfi 81200f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 81210f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 812240a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 812340a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 812440a76396Smrgfi 812540a76396Smrg 812640a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 812740a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 812840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 812940a76396Smrg fi 813040a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81310f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 81320f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 81330f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 81340f5b81e5Smrgthen : 81350f5b81e5Smrg printf %s "(cached) " >&6 81360f5b81e5Smrgelse $as_nop 813740a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 813840a76396Smrg/* end confdefs.h. */ 813940a76396Smrgint i; 814040a76396Smrg_ACEOF 81410f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 81420f5b81e5Smrgthen : 814340a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 81440f5b81e5Smrgelse $as_nop 814540a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 814640a76396Smrgfi 81470f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 814840a76396Smrgfi 81490f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 81500f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 815140a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 815240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 815340a76396Smrgfi 815440a76396Smrg 815540a76396Smrgfound="no" 815640a76396Smrg 815740a76396Smrg if test $found = "no" ; then 8158feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 815940a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 816040a76396Smrg fi 816140a76396Smrg 8162feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 816340a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 816440a76396Smrg fi 816540a76396Smrg 816640a76396Smrg CFLAGS="$CFLAGS -Werror=return-type" 816740a76396Smrg 81680f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 81690f5b81e5Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; } 8170feee4651Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 81710f5b81e5Smrg if eval test \${$cacheid+y} 81720f5b81e5Smrgthen : 81730f5b81e5Smrg printf %s "(cached) " >&6 81740f5b81e5Smrgelse $as_nop 817540a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 817640a76396Smrg/* end confdefs.h. */ 817740a76396Smrgint i; 817840a76396Smrgint 81790f5b81e5Smrgmain (void) 818040a76396Smrg{ 818140a76396Smrg 818240a76396Smrg ; 818340a76396Smrg return 0; 818440a76396Smrg} 818540a76396Smrg_ACEOF 81860f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 81870f5b81e5Smrgthen : 818840a76396Smrg eval $cacheid=yes 81890f5b81e5Smrgelse $as_nop 819040a76396Smrg eval $cacheid=no 819140a76396Smrgfi 81920f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 819340a76396Smrg conftest$ac_exeext conftest.$ac_ext 819440a76396Smrgfi 819540a76396Smrg 819640a76396Smrg 819740a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 819840a76396Smrg 819940a76396Smrg eval supported=\$$cacheid 82000f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 82010f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 820240a76396Smrg if test "$supported" = "yes" ; then 820340a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 820440a76396Smrg found="yes" 820540a76396Smrg fi 820640a76396Smrg fi 820740a76396Smrg 820840a76396Smrg if test $found = "no" ; then 8209feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 821040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 821140a76396Smrg fi 821240a76396Smrg 8213feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 821440a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 821540a76396Smrg fi 821640a76396Smrg 821740a76396Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 821840a76396Smrg 82190f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 82200f5b81e5Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8221feee4651Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 82220f5b81e5Smrg if eval test \${$cacheid+y} 82230f5b81e5Smrgthen : 82240f5b81e5Smrg printf %s "(cached) " >&6 82250f5b81e5Smrgelse $as_nop 822640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 822740a76396Smrg/* end confdefs.h. */ 822840a76396Smrgint i; 822940a76396Smrgint 82300f5b81e5Smrgmain (void) 823140a76396Smrg{ 823240a76396Smrg 823340a76396Smrg ; 823440a76396Smrg return 0; 823540a76396Smrg} 823640a76396Smrg_ACEOF 82370f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 82380f5b81e5Smrgthen : 823940a76396Smrg eval $cacheid=yes 82400f5b81e5Smrgelse $as_nop 824140a76396Smrg eval $cacheid=no 824240a76396Smrgfi 82430f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 824440a76396Smrg conftest$ac_exeext conftest.$ac_ext 824540a76396Smrgfi 824640a76396Smrg 824740a76396Smrg 824840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 824940a76396Smrg 825040a76396Smrg eval supported=\$$cacheid 82510f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 82520f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 825340a76396Smrg if test "$supported" = "yes" ; then 825440a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 825540a76396Smrg found="yes" 825640a76396Smrg fi 825740a76396Smrg fi 825840a76396Smrg 825940a76396Smrg 826040a76396Smrg 826140a76396Smrg 826240a76396Smrg 826340a76396Smrg 826440a76396Smrg 826540a76396Smrg 826640a76396Smrg 826740a76396Smrg 826840a76396Smrg 826940a76396Smrg 827040a76396Smrg 827140a76396Smrg 827240a76396Smrg 827340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 827440a76396Smrg 827540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 827640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82770f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 82780f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 82790f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 82800f5b81e5Smrgthen : 82810f5b81e5Smrg printf %s "(cached) " >&6 82820f5b81e5Smrgelse $as_nop 828340a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 828440a76396Smrg/* end confdefs.h. */ 828540a76396Smrgint i; 828640a76396Smrg_ACEOF 82870f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 82880f5b81e5Smrgthen : 828940a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 82900f5b81e5Smrgelse $as_nop 829140a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 829240a76396Smrgfi 82930f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 829440a76396Smrgfi 82950f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 82960f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 829740a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 829840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 829940a76396Smrgfi 830040a76396Smrg 830140a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 830240a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 830340a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 830440a76396Smrg fi 830540a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 83060f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 83070f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 83080f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 83090f5b81e5Smrgthen : 83100f5b81e5Smrg printf %s "(cached) " >&6 83110f5b81e5Smrgelse $as_nop 831240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 831340a76396Smrg/* end confdefs.h. */ 831440a76396Smrgint i; 831540a76396Smrg_ACEOF 83160f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 83170f5b81e5Smrgthen : 831840a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 83190f5b81e5Smrgelse $as_nop 832040a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 832140a76396Smrgfi 83220f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 832340a76396Smrgfi 83240f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 83250f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 832640a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 832740a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 832840a76396Smrgfi 832940a76396Smrg 833040a76396Smrgfound="no" 833140a76396Smrg 833240a76396Smrg if test $found = "no" ; then 8333feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 833440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 833540a76396Smrg fi 833640a76396Smrg 8337feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 833840a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 833940a76396Smrg fi 834040a76396Smrg 834140a76396Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 834240a76396Smrg 83430f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 83440f5b81e5Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8345feee4651Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 83460f5b81e5Smrg if eval test \${$cacheid+y} 83470f5b81e5Smrgthen : 83480f5b81e5Smrg printf %s "(cached) " >&6 83490f5b81e5Smrgelse $as_nop 835040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 835140a76396Smrg/* end confdefs.h. */ 835240a76396Smrgint i; 835340a76396Smrgint 83540f5b81e5Smrgmain (void) 835540a76396Smrg{ 835640a76396Smrg 835740a76396Smrg ; 835840a76396Smrg return 0; 835940a76396Smrg} 836040a76396Smrg_ACEOF 83610f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 83620f5b81e5Smrgthen : 836340a76396Smrg eval $cacheid=yes 83640f5b81e5Smrgelse $as_nop 836540a76396Smrg eval $cacheid=no 836640a76396Smrgfi 83670f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 836840a76396Smrg conftest$ac_exeext conftest.$ac_ext 836940a76396Smrgfi 837040a76396Smrg 837140a76396Smrg 837240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 837340a76396Smrg 837440a76396Smrg eval supported=\$$cacheid 83750f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 83760f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 837740a76396Smrg if test "$supported" = "yes" ; then 837840a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 837940a76396Smrg found="yes" 838040a76396Smrg fi 838140a76396Smrg fi 838240a76396Smrg 838340a76396Smrg 838440a76396Smrg 838540a76396Smrg 838640a76396Smrg 838740a76396Smrg 838840a76396Smrg 838940a76396Smrg 839040a76396Smrg 839140a76396Smrg 839240a76396Smrg 839340a76396Smrg 839440a76396Smrg 839540a76396Smrg 839640a76396Smrg 839740a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 839840a76396Smrg 839940a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 840040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84010f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 84020f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 84030f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 84040f5b81e5Smrgthen : 84050f5b81e5Smrg printf %s "(cached) " >&6 84060f5b81e5Smrgelse $as_nop 840740a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 840840a76396Smrg/* end confdefs.h. */ 840940a76396Smrgint i; 841040a76396Smrg_ACEOF 84110f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 84120f5b81e5Smrgthen : 841340a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 84140f5b81e5Smrgelse $as_nop 841540a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 841640a76396Smrgfi 84170f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 841840a76396Smrgfi 84190f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 84200f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 842140a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 842240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 842340a76396Smrgfi 842440a76396Smrg 842540a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 842640a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 842740a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 842840a76396Smrg fi 842940a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84300f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 84310f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 84320f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 84330f5b81e5Smrgthen : 84340f5b81e5Smrg printf %s "(cached) " >&6 84350f5b81e5Smrgelse $as_nop 843640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 843740a76396Smrg/* end confdefs.h. */ 843840a76396Smrgint i; 843940a76396Smrg_ACEOF 84400f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 84410f5b81e5Smrgthen : 844240a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 84430f5b81e5Smrgelse $as_nop 844440a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 844540a76396Smrgfi 84460f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 844740a76396Smrgfi 84480f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 84490f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 845040a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 845140a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 845240a76396Smrgfi 845340a76396Smrg 845440a76396Smrgfound="no" 845540a76396Smrg 845640a76396Smrg if test $found = "no" ; then 8457feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 845840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 845940a76396Smrg fi 846040a76396Smrg 8461feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 846240a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 846340a76396Smrg fi 846440a76396Smrg 846540a76396Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 846640a76396Smrg 84670f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 84680f5b81e5Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8469feee4651Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 84700f5b81e5Smrg if eval test \${$cacheid+y} 84710f5b81e5Smrgthen : 84720f5b81e5Smrg printf %s "(cached) " >&6 84730f5b81e5Smrgelse $as_nop 847440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 847540a76396Smrg/* end confdefs.h. */ 847640a76396Smrgint i; 847740a76396Smrgint 84780f5b81e5Smrgmain (void) 847940a76396Smrg{ 848040a76396Smrg 848140a76396Smrg ; 848240a76396Smrg return 0; 848340a76396Smrg} 848440a76396Smrg_ACEOF 84850f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 84860f5b81e5Smrgthen : 848740a76396Smrg eval $cacheid=yes 84880f5b81e5Smrgelse $as_nop 848940a76396Smrg eval $cacheid=no 849040a76396Smrgfi 84910f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 849240a76396Smrg conftest$ac_exeext conftest.$ac_ext 849340a76396Smrgfi 849440a76396Smrg 849540a76396Smrg 849640a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 849740a76396Smrg 849840a76396Smrg eval supported=\$$cacheid 84990f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 85000f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 850140a76396Smrg if test "$supported" = "yes" ; then 850240a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 850340a76396Smrg found="yes" 850440a76396Smrg fi 850540a76396Smrg fi 850640a76396Smrg 850740a76396Smrg 850840a76396Smrg 850940a76396Smrg 851040a76396Smrg 851140a76396Smrg 851240a76396Smrg 851340a76396Smrg 851440a76396Smrg 851540a76396Smrg 851640a76396Smrg 851740a76396Smrg 851840a76396Smrg 851940a76396Smrg 852040a76396Smrg 852140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 852240a76396Smrg 852340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 852440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85250f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 85260f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 85270f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 85280f5b81e5Smrgthen : 85290f5b81e5Smrg printf %s "(cached) " >&6 85300f5b81e5Smrgelse $as_nop 853140a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 853240a76396Smrg/* end confdefs.h. */ 853340a76396Smrgint i; 853440a76396Smrg_ACEOF 85350f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 85360f5b81e5Smrgthen : 853740a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 85380f5b81e5Smrgelse $as_nop 853940a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 854040a76396Smrgfi 85410f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 854240a76396Smrgfi 85430f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 85440f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 854540a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 854640a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 854740a76396Smrgfi 854840a76396Smrg 854940a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 855040a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 855140a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 855240a76396Smrg fi 855340a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85540f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 85550f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 85560f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 85570f5b81e5Smrgthen : 85580f5b81e5Smrg printf %s "(cached) " >&6 85590f5b81e5Smrgelse $as_nop 856040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 856140a76396Smrg/* end confdefs.h. */ 856240a76396Smrgint i; 856340a76396Smrg_ACEOF 85640f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 85650f5b81e5Smrgthen : 856640a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 85670f5b81e5Smrgelse $as_nop 856840a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 856940a76396Smrgfi 85700f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 857140a76396Smrgfi 85720f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 85730f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 857440a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 857540a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 857640a76396Smrgfi 857740a76396Smrg 857840a76396Smrgfound="no" 857940a76396Smrg 858040a76396Smrg if test $found = "no" ; then 8581feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 858240a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 858340a76396Smrg fi 858440a76396Smrg 8585feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 858640a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 858740a76396Smrg fi 858840a76396Smrg 858940a76396Smrg CFLAGS="$CFLAGS -Werror=write-strings" 859040a76396Smrg 85910f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 85920f5b81e5Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8593feee4651Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 85940f5b81e5Smrg if eval test \${$cacheid+y} 85950f5b81e5Smrgthen : 85960f5b81e5Smrg printf %s "(cached) " >&6 85970f5b81e5Smrgelse $as_nop 859840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 859940a76396Smrg/* end confdefs.h. */ 860040a76396Smrgint i; 860140a76396Smrgint 86020f5b81e5Smrgmain (void) 860340a76396Smrg{ 860440a76396Smrg 860540a76396Smrg ; 860640a76396Smrg return 0; 860740a76396Smrg} 860840a76396Smrg_ACEOF 86090f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 86100f5b81e5Smrgthen : 861140a76396Smrg eval $cacheid=yes 86120f5b81e5Smrgelse $as_nop 861340a76396Smrg eval $cacheid=no 861440a76396Smrgfi 86150f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 861640a76396Smrg conftest$ac_exeext conftest.$ac_ext 861740a76396Smrgfi 861840a76396Smrg 861940a76396Smrg 862040a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 862140a76396Smrg 862240a76396Smrg eval supported=\$$cacheid 86230f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 86240f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 862540a76396Smrg if test "$supported" = "yes" ; then 862640a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 862740a76396Smrg found="yes" 862840a76396Smrg fi 862940a76396Smrg fi 863040a76396Smrg 863140a76396Smrg 863240a76396Smrg 863340a76396Smrg 863440a76396Smrg 863540a76396Smrg 863640a76396Smrg 863740a76396Smrg 863840a76396Smrg 863940a76396Smrg 864040a76396Smrg 864140a76396Smrg 864240a76396Smrg 864340a76396Smrg 864440a76396Smrg 864540a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 864640a76396Smrg 864740a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 864840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86490f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 86500f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 86510f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 86520f5b81e5Smrgthen : 86530f5b81e5Smrg printf %s "(cached) " >&6 86540f5b81e5Smrgelse $as_nop 865540a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 865640a76396Smrg/* end confdefs.h. */ 865740a76396Smrgint i; 865840a76396Smrg_ACEOF 86590f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 86600f5b81e5Smrgthen : 866140a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 86620f5b81e5Smrgelse $as_nop 866340a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 866440a76396Smrgfi 86650f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 866640a76396Smrgfi 86670f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 86680f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 866940a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 867040a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 867140a76396Smrgfi 867240a76396Smrg 867340a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 867440a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 867540a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 867640a76396Smrg fi 867740a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86780f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 86790f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 86800f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 86810f5b81e5Smrgthen : 86820f5b81e5Smrg printf %s "(cached) " >&6 86830f5b81e5Smrgelse $as_nop 868440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 868540a76396Smrg/* end confdefs.h. */ 868640a76396Smrgint i; 868740a76396Smrg_ACEOF 86880f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 86890f5b81e5Smrgthen : 869040a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 86910f5b81e5Smrgelse $as_nop 869240a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 869340a76396Smrgfi 86940f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 869540a76396Smrgfi 86960f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 86970f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 869840a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 869940a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 870040a76396Smrgfi 870140a76396Smrg 870240a76396Smrgfound="no" 870340a76396Smrg 870440a76396Smrg if test $found = "no" ; then 8705feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 870640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 870740a76396Smrg fi 870840a76396Smrg 8709feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 871040a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 871140a76396Smrg fi 871240a76396Smrg 871340a76396Smrg CFLAGS="$CFLAGS -Werror=address" 871440a76396Smrg 87150f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 87160f5b81e5Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; } 8717feee4651Smrg cacheid=xorg_cv_cc_flag__Werror_address 87180f5b81e5Smrg if eval test \${$cacheid+y} 87190f5b81e5Smrgthen : 87200f5b81e5Smrg printf %s "(cached) " >&6 87210f5b81e5Smrgelse $as_nop 872240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 872340a76396Smrg/* end confdefs.h. */ 872440a76396Smrgint i; 872540a76396Smrgint 87260f5b81e5Smrgmain (void) 872740a76396Smrg{ 872840a76396Smrg 872940a76396Smrg ; 873040a76396Smrg return 0; 873140a76396Smrg} 873240a76396Smrg_ACEOF 87330f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 87340f5b81e5Smrgthen : 873540a76396Smrg eval $cacheid=yes 87360f5b81e5Smrgelse $as_nop 873740a76396Smrg eval $cacheid=no 873840a76396Smrgfi 87390f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 874040a76396Smrg conftest$ac_exeext conftest.$ac_ext 874140a76396Smrgfi 874240a76396Smrg 874340a76396Smrg 874440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 874540a76396Smrg 874640a76396Smrg eval supported=\$$cacheid 87470f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 87480f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 874940a76396Smrg if test "$supported" = "yes" ; then 875040a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 875140a76396Smrg found="yes" 875240a76396Smrg fi 875340a76396Smrg fi 875440a76396Smrg 875540a76396Smrg 875640a76396Smrg 875740a76396Smrg 875840a76396Smrg 875940a76396Smrg 876040a76396Smrg 876140a76396Smrg 876240a76396Smrg 876340a76396Smrg 876440a76396Smrg 876540a76396Smrg 876640a76396Smrg 876740a76396Smrg 876840a76396Smrg 876940a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 877040a76396Smrg 877140a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 877240a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87730f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 87740f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 87750f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 87760f5b81e5Smrgthen : 87770f5b81e5Smrg printf %s "(cached) " >&6 87780f5b81e5Smrgelse $as_nop 877940a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 878040a76396Smrg/* end confdefs.h. */ 878140a76396Smrgint i; 878240a76396Smrg_ACEOF 87830f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 87840f5b81e5Smrgthen : 878540a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 87860f5b81e5Smrgelse $as_nop 878740a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 878840a76396Smrgfi 87890f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 879040a76396Smrgfi 87910f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 87920f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 879340a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 879440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 879540a76396Smrgfi 879640a76396Smrg 879740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 879840a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 879940a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 880040a76396Smrg fi 880140a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 88020f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 88030f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 88040f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 88050f5b81e5Smrgthen : 88060f5b81e5Smrg printf %s "(cached) " >&6 88070f5b81e5Smrgelse $as_nop 880840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 880940a76396Smrg/* end confdefs.h. */ 881040a76396Smrgint i; 881140a76396Smrg_ACEOF 88120f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 88130f5b81e5Smrgthen : 881440a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 88150f5b81e5Smrgelse $as_nop 881640a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 881740a76396Smrgfi 88180f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 881940a76396Smrgfi 88200f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 88210f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 882240a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 882340a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 882440a76396Smrgfi 882540a76396Smrg 882640a76396Smrgfound="no" 882740a76396Smrg 882840a76396Smrg if test $found = "no" ; then 8829feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 883040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 883140a76396Smrg fi 883240a76396Smrg 8833feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 883440a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 883540a76396Smrg fi 883640a76396Smrg 883740a76396Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 883840a76396Smrg 88390f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 88400f5b81e5Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8841feee4651Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 88420f5b81e5Smrg if eval test \${$cacheid+y} 88430f5b81e5Smrgthen : 88440f5b81e5Smrg printf %s "(cached) " >&6 88450f5b81e5Smrgelse $as_nop 884640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 884740a76396Smrg/* end confdefs.h. */ 884840a76396Smrgint i; 884940a76396Smrgint 88500f5b81e5Smrgmain (void) 885140a76396Smrg{ 885240a76396Smrg 885340a76396Smrg ; 885440a76396Smrg return 0; 885540a76396Smrg} 885640a76396Smrg_ACEOF 88570f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 88580f5b81e5Smrgthen : 885940a76396Smrg eval $cacheid=yes 88600f5b81e5Smrgelse $as_nop 886140a76396Smrg eval $cacheid=no 886240a76396Smrgfi 88630f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 886440a76396Smrg conftest$ac_exeext conftest.$ac_ext 886540a76396Smrgfi 886640a76396Smrg 886740a76396Smrg 886840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 886940a76396Smrg 887040a76396Smrg eval supported=\$$cacheid 88710f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 88720f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 887340a76396Smrg if test "$supported" = "yes" ; then 887440a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 887540a76396Smrg found="yes" 887640a76396Smrg fi 887740a76396Smrg fi 887840a76396Smrg 887940a76396Smrg if test $found = "no" ; then 8880feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 888140a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 888240a76396Smrg fi 888340a76396Smrg 8884feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 888540a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 888640a76396Smrg fi 888740a76396Smrg 888840a76396Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 888940a76396Smrg 88900f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 88910f5b81e5Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8892feee4651Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 88930f5b81e5Smrg if eval test \${$cacheid+y} 88940f5b81e5Smrgthen : 88950f5b81e5Smrg printf %s "(cached) " >&6 88960f5b81e5Smrgelse $as_nop 889740a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 889840a76396Smrg/* end confdefs.h. */ 889940a76396Smrgint i; 890040a76396Smrgint 89010f5b81e5Smrgmain (void) 890240a76396Smrg{ 890340a76396Smrg 890440a76396Smrg ; 890540a76396Smrg return 0; 890640a76396Smrg} 890740a76396Smrg_ACEOF 89080f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 89090f5b81e5Smrgthen : 891040a76396Smrg eval $cacheid=yes 89110f5b81e5Smrgelse $as_nop 891240a76396Smrg eval $cacheid=no 891340a76396Smrgfi 89140f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 891540a76396Smrg conftest$ac_exeext conftest.$ac_ext 891640a76396Smrgfi 891740a76396Smrg 891840a76396Smrg 891940a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 892040a76396Smrg 892140a76396Smrg eval supported=\$$cacheid 89220f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 89230f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 892440a76396Smrg if test "$supported" = "yes" ; then 892540a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 892640a76396Smrg found="yes" 892740a76396Smrg fi 892840a76396Smrg fi 892940a76396Smrg 893040a76396Smrg 893140a76396Smrg 893240a76396Smrg 893340a76396Smrg 893440a76396Smrg 893540a76396Smrg 893640a76396Smrg 893740a76396Smrg 893840a76396Smrg 893940a76396Smrg 894040a76396Smrg 894140a76396Smrg 894240a76396Smrg 894340a76396Smrg 894440a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 894540a76396Smrg 894640a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 894740a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89480f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 89490f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 89500f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 89510f5b81e5Smrgthen : 89520f5b81e5Smrg printf %s "(cached) " >&6 89530f5b81e5Smrgelse $as_nop 895440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 895540a76396Smrg/* end confdefs.h. */ 895640a76396Smrgint i; 895740a76396Smrg_ACEOF 89580f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 89590f5b81e5Smrgthen : 896040a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 89610f5b81e5Smrgelse $as_nop 896240a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 896340a76396Smrgfi 89640f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 896540a76396Smrgfi 89660f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 89670f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 896840a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 896940a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 897040a76396Smrgfi 897140a76396Smrg 897240a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 897340a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 897440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 897540a76396Smrg fi 897640a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89770f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 89780f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 89790f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 89800f5b81e5Smrgthen : 89810f5b81e5Smrg printf %s "(cached) " >&6 89820f5b81e5Smrgelse $as_nop 898340a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 898440a76396Smrg/* end confdefs.h. */ 898540a76396Smrgint i; 898640a76396Smrg_ACEOF 89870f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 89880f5b81e5Smrgthen : 898940a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 89900f5b81e5Smrgelse $as_nop 899140a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 899240a76396Smrgfi 89930f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 899440a76396Smrgfi 89950f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 89960f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 899740a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 899840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 899940a76396Smrgfi 900040a76396Smrg 900140a76396Smrgfound="no" 900240a76396Smrg 900340a76396Smrg if test $found = "no" ; then 9004feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 900540a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 900640a76396Smrg fi 900740a76396Smrg 9008feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 900940a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 901040a76396Smrg fi 901140a76396Smrg 901240a76396Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 901340a76396Smrg 90140f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 90150f5b81e5Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9016feee4651Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 90170f5b81e5Smrg if eval test \${$cacheid+y} 90180f5b81e5Smrgthen : 90190f5b81e5Smrg printf %s "(cached) " >&6 90200f5b81e5Smrgelse $as_nop 902140a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 902240a76396Smrg/* end confdefs.h. */ 902340a76396Smrgint i; 902440a76396Smrgint 90250f5b81e5Smrgmain (void) 902640a76396Smrg{ 902740a76396Smrg 902840a76396Smrg ; 902940a76396Smrg return 0; 903040a76396Smrg} 903140a76396Smrg_ACEOF 90320f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 90330f5b81e5Smrgthen : 903440a76396Smrg eval $cacheid=yes 90350f5b81e5Smrgelse $as_nop 903640a76396Smrg eval $cacheid=no 903740a76396Smrgfi 90380f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 903940a76396Smrg conftest$ac_exeext conftest.$ac_ext 904040a76396Smrgfi 904140a76396Smrg 904240a76396Smrg 904340a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 904440a76396Smrg 904540a76396Smrg eval supported=\$$cacheid 90460f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 90470f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 904840a76396Smrg if test "$supported" = "yes" ; then 904940a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 905040a76396Smrg found="yes" 905140a76396Smrg fi 905240a76396Smrg fi 905340a76396Smrg 905440a76396Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 905540a76396Smrgelse 90560f5b81e5Smrg{ 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 90570f5b81e5Smrgprintf "%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;} 905840a76396Smrg 905940a76396Smrg 906040a76396Smrg 906140a76396Smrg 906240a76396Smrg 906340a76396Smrg 906440a76396Smrg 906540a76396Smrg 906640a76396Smrg 906740a76396Smrg 906840a76396Smrg 906940a76396Smrg 907040a76396Smrg 907140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 907240a76396Smrg 907340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 907440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90750f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 90760f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 90770f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 90780f5b81e5Smrgthen : 90790f5b81e5Smrg printf %s "(cached) " >&6 90800f5b81e5Smrgelse $as_nop 908140a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 908240a76396Smrg/* end confdefs.h. */ 908340a76396Smrgint i; 908440a76396Smrg_ACEOF 90850f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 90860f5b81e5Smrgthen : 908740a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 90880f5b81e5Smrgelse $as_nop 908940a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 909040a76396Smrgfi 90910f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 909240a76396Smrgfi 90930f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 90940f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 909540a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 909640a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 909740a76396Smrgfi 909840a76396Smrg 909940a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 910040a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 910140a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 910240a76396Smrg fi 910340a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91040f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 91050f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 91060f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 91070f5b81e5Smrgthen : 91080f5b81e5Smrg printf %s "(cached) " >&6 91090f5b81e5Smrgelse $as_nop 911040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 911140a76396Smrg/* end confdefs.h. */ 911240a76396Smrgint i; 911340a76396Smrg_ACEOF 91140f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 91150f5b81e5Smrgthen : 911640a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 91170f5b81e5Smrgelse $as_nop 911840a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 911940a76396Smrgfi 91200f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 912140a76396Smrgfi 91220f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 91230f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 912440a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 912540a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 912640a76396Smrgfi 912740a76396Smrg 912840a76396Smrgfound="no" 912940a76396Smrg 913040a76396Smrg if test $found = "no" ; then 9131feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 913240a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 913340a76396Smrg fi 913440a76396Smrg 9135feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 913640a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 913740a76396Smrg fi 913840a76396Smrg 913940a76396Smrg CFLAGS="$CFLAGS -Wimplicit" 914040a76396Smrg 91410f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 91420f5b81e5Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; } 914340a76396Smrg cacheid=xorg_cv_cc_flag__Wimplicit 91440f5b81e5Smrg if eval test \${$cacheid+y} 91450f5b81e5Smrgthen : 91460f5b81e5Smrg printf %s "(cached) " >&6 91470f5b81e5Smrgelse $as_nop 914840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 914940a76396Smrg/* end confdefs.h. */ 915040a76396Smrgint i; 915140a76396Smrgint 91520f5b81e5Smrgmain (void) 915340a76396Smrg{ 915440a76396Smrg 915540a76396Smrg ; 915640a76396Smrg return 0; 915740a76396Smrg} 915840a76396Smrg_ACEOF 91590f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 91600f5b81e5Smrgthen : 916140a76396Smrg eval $cacheid=yes 91620f5b81e5Smrgelse $as_nop 916340a76396Smrg eval $cacheid=no 916440a76396Smrgfi 91650f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 916640a76396Smrg conftest$ac_exeext conftest.$ac_ext 916740a76396Smrgfi 916840a76396Smrg 916940a76396Smrg 917040a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 917140a76396Smrg 917240a76396Smrg eval supported=\$$cacheid 91730f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 91740f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 917540a76396Smrg if test "$supported" = "yes" ; then 917640a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 917740a76396Smrg found="yes" 917840a76396Smrg fi 917940a76396Smrg fi 918040a76396Smrg 918140a76396Smrg 918240a76396Smrg 918340a76396Smrg 918440a76396Smrg 918540a76396Smrg 918640a76396Smrg 918740a76396Smrg 918840a76396Smrg 918940a76396Smrg 919040a76396Smrg 919140a76396Smrg 919240a76396Smrg 919340a76396Smrg 919440a76396Smrg 919540a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 919640a76396Smrg 919740a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 919840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91990f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 92000f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 92010f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 92020f5b81e5Smrgthen : 92030f5b81e5Smrg printf %s "(cached) " >&6 92040f5b81e5Smrgelse $as_nop 920540a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 920640a76396Smrg/* end confdefs.h. */ 920740a76396Smrgint i; 920840a76396Smrg_ACEOF 92090f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 92100f5b81e5Smrgthen : 921140a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 92120f5b81e5Smrgelse $as_nop 921340a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 921440a76396Smrgfi 92150f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 921640a76396Smrgfi 92170f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 92180f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 921940a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 922040a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 922140a76396Smrgfi 922240a76396Smrg 922340a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 922440a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 922540a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 922640a76396Smrg fi 922740a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92280f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 92290f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 92300f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 92310f5b81e5Smrgthen : 92320f5b81e5Smrg printf %s "(cached) " >&6 92330f5b81e5Smrgelse $as_nop 923440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 923540a76396Smrg/* end confdefs.h. */ 923640a76396Smrgint i; 923740a76396Smrg_ACEOF 92380f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 92390f5b81e5Smrgthen : 924040a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 92410f5b81e5Smrgelse $as_nop 924240a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 924340a76396Smrgfi 92440f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 924540a76396Smrgfi 92460f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 92470f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 924840a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 924940a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 925040a76396Smrgfi 925140a76396Smrg 925240a76396Smrgfound="no" 925340a76396Smrg 925440a76396Smrg if test $found = "no" ; then 9255feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 925640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 925740a76396Smrg fi 925840a76396Smrg 9259feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 926040a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 926140a76396Smrg fi 926240a76396Smrg 926340a76396Smrg CFLAGS="$CFLAGS -Wnonnull" 926440a76396Smrg 92650f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 92660f5b81e5Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; } 926740a76396Smrg cacheid=xorg_cv_cc_flag__Wnonnull 92680f5b81e5Smrg if eval test \${$cacheid+y} 92690f5b81e5Smrgthen : 92700f5b81e5Smrg printf %s "(cached) " >&6 92710f5b81e5Smrgelse $as_nop 927240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 927340a76396Smrg/* end confdefs.h. */ 927440a76396Smrgint i; 927540a76396Smrgint 92760f5b81e5Smrgmain (void) 927740a76396Smrg{ 927840a76396Smrg 927940a76396Smrg ; 928040a76396Smrg return 0; 928140a76396Smrg} 928240a76396Smrg_ACEOF 92830f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 92840f5b81e5Smrgthen : 928540a76396Smrg eval $cacheid=yes 92860f5b81e5Smrgelse $as_nop 928740a76396Smrg eval $cacheid=no 928840a76396Smrgfi 92890f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 929040a76396Smrg conftest$ac_exeext conftest.$ac_ext 929140a76396Smrgfi 929240a76396Smrg 929340a76396Smrg 929440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 929540a76396Smrg 929640a76396Smrg eval supported=\$$cacheid 92970f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 92980f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 929940a76396Smrg if test "$supported" = "yes" ; then 930040a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 930140a76396Smrg found="yes" 930240a76396Smrg fi 930340a76396Smrg fi 930440a76396Smrg 930540a76396Smrg 930640a76396Smrg 930740a76396Smrg 930840a76396Smrg 930940a76396Smrg 931040a76396Smrg 931140a76396Smrg 931240a76396Smrg 931340a76396Smrg 931440a76396Smrg 931540a76396Smrg 931640a76396Smrg 931740a76396Smrg 931840a76396Smrg 931940a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 932040a76396Smrg 932140a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 932240a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93230f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 93240f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 93250f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 93260f5b81e5Smrgthen : 93270f5b81e5Smrg printf %s "(cached) " >&6 93280f5b81e5Smrgelse $as_nop 932940a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 933040a76396Smrg/* end confdefs.h. */ 933140a76396Smrgint i; 933240a76396Smrg_ACEOF 93330f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 93340f5b81e5Smrgthen : 933540a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 93360f5b81e5Smrgelse $as_nop 933740a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 933840a76396Smrgfi 93390f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 934040a76396Smrgfi 93410f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 93420f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 934340a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 934440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 934540a76396Smrgfi 934640a76396Smrg 934740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 934840a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 934940a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 935040a76396Smrg fi 935140a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93520f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 93530f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 93540f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 93550f5b81e5Smrgthen : 93560f5b81e5Smrg printf %s "(cached) " >&6 93570f5b81e5Smrgelse $as_nop 935840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 935940a76396Smrg/* end confdefs.h. */ 936040a76396Smrgint i; 936140a76396Smrg_ACEOF 93620f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 93630f5b81e5Smrgthen : 936440a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 93650f5b81e5Smrgelse $as_nop 936640a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 936740a76396Smrgfi 93680f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 936940a76396Smrgfi 93700f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 93710f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 937240a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 937340a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 937440a76396Smrgfi 937540a76396Smrg 937640a76396Smrgfound="no" 937740a76396Smrg 937840a76396Smrg if test $found = "no" ; then 9379feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 938040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 938140a76396Smrg fi 938240a76396Smrg 9383feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 938440a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 938540a76396Smrg fi 938640a76396Smrg 938740a76396Smrg CFLAGS="$CFLAGS -Winit-self" 938840a76396Smrg 93890f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 93900f5b81e5Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; } 939140a76396Smrg cacheid=xorg_cv_cc_flag__Winit_self 93920f5b81e5Smrg if eval test \${$cacheid+y} 93930f5b81e5Smrgthen : 93940f5b81e5Smrg printf %s "(cached) " >&6 93950f5b81e5Smrgelse $as_nop 939640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 939740a76396Smrg/* end confdefs.h. */ 939840a76396Smrgint i; 939940a76396Smrgint 94000f5b81e5Smrgmain (void) 940140a76396Smrg{ 940240a76396Smrg 940340a76396Smrg ; 940440a76396Smrg return 0; 940540a76396Smrg} 940640a76396Smrg_ACEOF 94070f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 94080f5b81e5Smrgthen : 940940a76396Smrg eval $cacheid=yes 94100f5b81e5Smrgelse $as_nop 941140a76396Smrg eval $cacheid=no 941240a76396Smrgfi 94130f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 941440a76396Smrg conftest$ac_exeext conftest.$ac_ext 941540a76396Smrgfi 941640a76396Smrg 941740a76396Smrg 941840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 941940a76396Smrg 942040a76396Smrg eval supported=\$$cacheid 94210f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 94220f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 942340a76396Smrg if test "$supported" = "yes" ; then 942440a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 942540a76396Smrg found="yes" 942640a76396Smrg fi 942740a76396Smrg fi 942840a76396Smrg 942940a76396Smrg 943040a76396Smrg 943140a76396Smrg 943240a76396Smrg 943340a76396Smrg 943440a76396Smrg 943540a76396Smrg 943640a76396Smrg 943740a76396Smrg 943840a76396Smrg 943940a76396Smrg 944040a76396Smrg 944140a76396Smrg 944240a76396Smrg 944340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 944440a76396Smrg 944540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 944640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94470f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 94480f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 94490f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 94500f5b81e5Smrgthen : 94510f5b81e5Smrg printf %s "(cached) " >&6 94520f5b81e5Smrgelse $as_nop 945340a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 945440a76396Smrg/* end confdefs.h. */ 945540a76396Smrgint i; 945640a76396Smrg_ACEOF 94570f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 94580f5b81e5Smrgthen : 945940a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 94600f5b81e5Smrgelse $as_nop 946140a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 946240a76396Smrgfi 94630f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 946440a76396Smrgfi 94650f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 94660f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 946740a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 946840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 946940a76396Smrgfi 947040a76396Smrg 947140a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 947240a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 947340a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 947440a76396Smrg fi 947540a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 94760f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 94770f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 94780f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 94790f5b81e5Smrgthen : 94800f5b81e5Smrg printf %s "(cached) " >&6 94810f5b81e5Smrgelse $as_nop 948240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 948340a76396Smrg/* end confdefs.h. */ 948440a76396Smrgint i; 948540a76396Smrg_ACEOF 94860f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 94870f5b81e5Smrgthen : 948840a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 94890f5b81e5Smrgelse $as_nop 949040a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 949140a76396Smrgfi 94920f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 949340a76396Smrgfi 94940f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 94950f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 949640a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 949740a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 949840a76396Smrgfi 949940a76396Smrg 950040a76396Smrgfound="no" 950140a76396Smrg 950240a76396Smrg if test $found = "no" ; then 9503feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 950440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 950540a76396Smrg fi 950640a76396Smrg 9507feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 950840a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 950940a76396Smrg fi 951040a76396Smrg 951140a76396Smrg CFLAGS="$CFLAGS -Wmain" 951240a76396Smrg 95130f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 95140f5b81e5Smrgprintf %s "checking if $CC supports -Wmain... " >&6; } 951540a76396Smrg cacheid=xorg_cv_cc_flag__Wmain 95160f5b81e5Smrg if eval test \${$cacheid+y} 95170f5b81e5Smrgthen : 95180f5b81e5Smrg printf %s "(cached) " >&6 95190f5b81e5Smrgelse $as_nop 952040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 952140a76396Smrg/* end confdefs.h. */ 952240a76396Smrgint i; 952340a76396Smrgint 95240f5b81e5Smrgmain (void) 952540a76396Smrg{ 952640a76396Smrg 952740a76396Smrg ; 952840a76396Smrg return 0; 952940a76396Smrg} 953040a76396Smrg_ACEOF 95310f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 95320f5b81e5Smrgthen : 953340a76396Smrg eval $cacheid=yes 95340f5b81e5Smrgelse $as_nop 953540a76396Smrg eval $cacheid=no 953640a76396Smrgfi 95370f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 953840a76396Smrg conftest$ac_exeext conftest.$ac_ext 953940a76396Smrgfi 954040a76396Smrg 954140a76396Smrg 954240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 954340a76396Smrg 954440a76396Smrg eval supported=\$$cacheid 95450f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 95460f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 954740a76396Smrg if test "$supported" = "yes" ; then 954840a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 954940a76396Smrg found="yes" 955040a76396Smrg fi 955140a76396Smrg fi 955240a76396Smrg 955340a76396Smrg 955440a76396Smrg 955540a76396Smrg 955640a76396Smrg 955740a76396Smrg 955840a76396Smrg 955940a76396Smrg 956040a76396Smrg 956140a76396Smrg 956240a76396Smrg 956340a76396Smrg 956440a76396Smrg 956540a76396Smrg 956640a76396Smrg 956740a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 956840a76396Smrg 956940a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 957040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95710f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 95720f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 95730f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 95740f5b81e5Smrgthen : 95750f5b81e5Smrg printf %s "(cached) " >&6 95760f5b81e5Smrgelse $as_nop 957740a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 957840a76396Smrg/* end confdefs.h. */ 957940a76396Smrgint i; 958040a76396Smrg_ACEOF 95810f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 95820f5b81e5Smrgthen : 958340a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 95840f5b81e5Smrgelse $as_nop 958540a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 958640a76396Smrgfi 95870f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 958840a76396Smrgfi 95890f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 95900f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 959140a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 959240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 959340a76396Smrgfi 959440a76396Smrg 959540a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 959640a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 959740a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 959840a76396Smrg fi 959940a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96000f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 96010f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 96020f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 96030f5b81e5Smrgthen : 96040f5b81e5Smrg printf %s "(cached) " >&6 96050f5b81e5Smrgelse $as_nop 960640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 960740a76396Smrg/* end confdefs.h. */ 960840a76396Smrgint i; 960940a76396Smrg_ACEOF 96100f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 96110f5b81e5Smrgthen : 961240a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 96130f5b81e5Smrgelse $as_nop 961440a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 961540a76396Smrgfi 96160f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 961740a76396Smrgfi 96180f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 96190f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 962040a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 962140a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 962240a76396Smrgfi 962340a76396Smrg 962440a76396Smrgfound="no" 962540a76396Smrg 962640a76396Smrg if test $found = "no" ; then 9627feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 962840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 962940a76396Smrg fi 963040a76396Smrg 9631feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 963240a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 963340a76396Smrg fi 963440a76396Smrg 963540a76396Smrg CFLAGS="$CFLAGS -Wmissing-braces" 963640a76396Smrg 96370f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 96380f5b81e5Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; } 963940a76396Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 96400f5b81e5Smrg if eval test \${$cacheid+y} 96410f5b81e5Smrgthen : 96420f5b81e5Smrg printf %s "(cached) " >&6 96430f5b81e5Smrgelse $as_nop 964440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 964540a76396Smrg/* end confdefs.h. */ 964640a76396Smrgint i; 964740a76396Smrgint 96480f5b81e5Smrgmain (void) 964940a76396Smrg{ 965040a76396Smrg 965140a76396Smrg ; 965240a76396Smrg return 0; 965340a76396Smrg} 965440a76396Smrg_ACEOF 96550f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 96560f5b81e5Smrgthen : 965740a76396Smrg eval $cacheid=yes 96580f5b81e5Smrgelse $as_nop 965940a76396Smrg eval $cacheid=no 966040a76396Smrgfi 96610f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 966240a76396Smrg conftest$ac_exeext conftest.$ac_ext 966340a76396Smrgfi 966440a76396Smrg 966540a76396Smrg 966640a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 966740a76396Smrg 966840a76396Smrg eval supported=\$$cacheid 96690f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 96700f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 967140a76396Smrg if test "$supported" = "yes" ; then 967240a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 967340a76396Smrg found="yes" 967440a76396Smrg fi 967540a76396Smrg fi 967640a76396Smrg 967740a76396Smrg 967840a76396Smrg 967940a76396Smrg 968040a76396Smrg 968140a76396Smrg 968240a76396Smrg 968340a76396Smrg 968440a76396Smrg 968540a76396Smrg 968640a76396Smrg 968740a76396Smrg 968840a76396Smrg 968940a76396Smrg 969040a76396Smrg 969140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 969240a76396Smrg 969340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 969440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96950f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 96960f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 96970f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 96980f5b81e5Smrgthen : 96990f5b81e5Smrg printf %s "(cached) " >&6 97000f5b81e5Smrgelse $as_nop 970140a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 970240a76396Smrg/* end confdefs.h. */ 970340a76396Smrgint i; 970440a76396Smrg_ACEOF 97050f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 97060f5b81e5Smrgthen : 970740a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 97080f5b81e5Smrgelse $as_nop 970940a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 971040a76396Smrgfi 97110f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 971240a76396Smrgfi 97130f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 97140f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 971540a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 971640a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 971740a76396Smrgfi 971840a76396Smrg 971940a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 972040a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 972140a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 972240a76396Smrg fi 972340a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 97240f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 97250f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 97260f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 97270f5b81e5Smrgthen : 97280f5b81e5Smrg printf %s "(cached) " >&6 97290f5b81e5Smrgelse $as_nop 973040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 973140a76396Smrg/* end confdefs.h. */ 973240a76396Smrgint i; 973340a76396Smrg_ACEOF 97340f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 97350f5b81e5Smrgthen : 973640a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 97370f5b81e5Smrgelse $as_nop 973840a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 973940a76396Smrgfi 97400f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 974140a76396Smrgfi 97420f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 97430f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 974440a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 974540a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 974640a76396Smrgfi 974740a76396Smrg 974840a76396Smrgfound="no" 974940a76396Smrg 975040a76396Smrg if test $found = "no" ; then 9751feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 975240a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 975340a76396Smrg fi 975440a76396Smrg 9755feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 975640a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 975740a76396Smrg fi 975840a76396Smrg 975940a76396Smrg CFLAGS="$CFLAGS -Wsequence-point" 976040a76396Smrg 97610f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 97620f5b81e5Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; } 976340a76396Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 97640f5b81e5Smrg if eval test \${$cacheid+y} 97650f5b81e5Smrgthen : 97660f5b81e5Smrg printf %s "(cached) " >&6 97670f5b81e5Smrgelse $as_nop 976840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 976940a76396Smrg/* end confdefs.h. */ 977040a76396Smrgint i; 977140a76396Smrgint 97720f5b81e5Smrgmain (void) 977340a76396Smrg{ 977440a76396Smrg 977540a76396Smrg ; 977640a76396Smrg return 0; 977740a76396Smrg} 977840a76396Smrg_ACEOF 97790f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 97800f5b81e5Smrgthen : 978140a76396Smrg eval $cacheid=yes 97820f5b81e5Smrgelse $as_nop 978340a76396Smrg eval $cacheid=no 978440a76396Smrgfi 97850f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 978640a76396Smrg conftest$ac_exeext conftest.$ac_ext 978740a76396Smrgfi 978840a76396Smrg 978940a76396Smrg 979040a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 979140a76396Smrg 979240a76396Smrg eval supported=\$$cacheid 97930f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 97940f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 979540a76396Smrg if test "$supported" = "yes" ; then 979640a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 979740a76396Smrg found="yes" 979840a76396Smrg fi 979940a76396Smrg fi 980040a76396Smrg 980140a76396Smrg 980240a76396Smrg 980340a76396Smrg 980440a76396Smrg 980540a76396Smrg 980640a76396Smrg 980740a76396Smrg 980840a76396Smrg 980940a76396Smrg 981040a76396Smrg 981140a76396Smrg 981240a76396Smrg 981340a76396Smrg 981440a76396Smrg 981540a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 981640a76396Smrg 981740a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 981840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98190f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 98200f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 98210f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 98220f5b81e5Smrgthen : 98230f5b81e5Smrg printf %s "(cached) " >&6 98240f5b81e5Smrgelse $as_nop 982540a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 982640a76396Smrg/* end confdefs.h. */ 982740a76396Smrgint i; 982840a76396Smrg_ACEOF 98290f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 98300f5b81e5Smrgthen : 983140a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 98320f5b81e5Smrgelse $as_nop 983340a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 983440a76396Smrgfi 98350f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 983640a76396Smrgfi 98370f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 98380f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 983940a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 984040a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 984140a76396Smrgfi 984240a76396Smrg 984340a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 984440a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 984540a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 984640a76396Smrg fi 984740a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98480f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 98490f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 98500f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 98510f5b81e5Smrgthen : 98520f5b81e5Smrg printf %s "(cached) " >&6 98530f5b81e5Smrgelse $as_nop 985440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 985540a76396Smrg/* end confdefs.h. */ 985640a76396Smrgint i; 985740a76396Smrg_ACEOF 98580f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 98590f5b81e5Smrgthen : 986040a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 98610f5b81e5Smrgelse $as_nop 986240a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 986340a76396Smrgfi 98640f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 986540a76396Smrgfi 98660f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 98670f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 986840a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 986940a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 987040a76396Smrgfi 987140a76396Smrg 987240a76396Smrgfound="no" 987340a76396Smrg 987440a76396Smrg if test $found = "no" ; then 9875feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 987640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 987740a76396Smrg fi 987840a76396Smrg 9879feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 988040a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 988140a76396Smrg fi 988240a76396Smrg 988340a76396Smrg CFLAGS="$CFLAGS -Wreturn-type" 988440a76396Smrg 98850f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 98860f5b81e5Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; } 988740a76396Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 98880f5b81e5Smrg if eval test \${$cacheid+y} 98890f5b81e5Smrgthen : 98900f5b81e5Smrg printf %s "(cached) " >&6 98910f5b81e5Smrgelse $as_nop 989240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 989340a76396Smrg/* end confdefs.h. */ 989440a76396Smrgint i; 989540a76396Smrgint 98960f5b81e5Smrgmain (void) 989740a76396Smrg{ 989840a76396Smrg 989940a76396Smrg ; 990040a76396Smrg return 0; 990140a76396Smrg} 990240a76396Smrg_ACEOF 99030f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 99040f5b81e5Smrgthen : 990540a76396Smrg eval $cacheid=yes 99060f5b81e5Smrgelse $as_nop 990740a76396Smrg eval $cacheid=no 990840a76396Smrgfi 99090f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 991040a76396Smrg conftest$ac_exeext conftest.$ac_ext 991140a76396Smrgfi 991240a76396Smrg 991340a76396Smrg 991440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 991540a76396Smrg 991640a76396Smrg eval supported=\$$cacheid 99170f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 99180f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 991940a76396Smrg if test "$supported" = "yes" ; then 992040a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 992140a76396Smrg found="yes" 992240a76396Smrg fi 992340a76396Smrg fi 992440a76396Smrg 992540a76396Smrg 992640a76396Smrg 992740a76396Smrg 992840a76396Smrg 992940a76396Smrg 993040a76396Smrg 993140a76396Smrg 993240a76396Smrg 993340a76396Smrg 993440a76396Smrg 993540a76396Smrg 993640a76396Smrg 993740a76396Smrg 993840a76396Smrg 993940a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 994040a76396Smrg 994140a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 994240a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99430f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 99440f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 99450f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 99460f5b81e5Smrgthen : 99470f5b81e5Smrg printf %s "(cached) " >&6 99480f5b81e5Smrgelse $as_nop 994940a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 995040a76396Smrg/* end confdefs.h. */ 995140a76396Smrgint i; 995240a76396Smrg_ACEOF 99530f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 99540f5b81e5Smrgthen : 995540a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 99560f5b81e5Smrgelse $as_nop 995740a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 995840a76396Smrgfi 99590f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 996040a76396Smrgfi 99610f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 99620f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 996340a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 996440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 996540a76396Smrgfi 996640a76396Smrg 996740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 996840a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 996940a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 997040a76396Smrg fi 997140a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 99720f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 99730f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 99740f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 99750f5b81e5Smrgthen : 99760f5b81e5Smrg printf %s "(cached) " >&6 99770f5b81e5Smrgelse $as_nop 997840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 997940a76396Smrg/* end confdefs.h. */ 998040a76396Smrgint i; 998140a76396Smrg_ACEOF 99820f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 99830f5b81e5Smrgthen : 998440a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 99850f5b81e5Smrgelse $as_nop 998640a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 998740a76396Smrgfi 99880f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 998940a76396Smrgfi 99900f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 99910f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 999240a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 999340a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 999440a76396Smrgfi 999540a76396Smrg 999640a76396Smrgfound="no" 999740a76396Smrg 999840a76396Smrg if test $found = "no" ; then 9999feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1000040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1000140a76396Smrg fi 1000240a76396Smrg 10003feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1000440a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1000540a76396Smrg fi 1000640a76396Smrg 1000740a76396Smrg CFLAGS="$CFLAGS -Wtrigraphs" 1000840a76396Smrg 100090f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 100100f5b81e5Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; } 1001140a76396Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 100120f5b81e5Smrg if eval test \${$cacheid+y} 100130f5b81e5Smrgthen : 100140f5b81e5Smrg printf %s "(cached) " >&6 100150f5b81e5Smrgelse $as_nop 1001640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1001740a76396Smrg/* end confdefs.h. */ 1001840a76396Smrgint i; 1001940a76396Smrgint 100200f5b81e5Smrgmain (void) 1002140a76396Smrg{ 1002240a76396Smrg 1002340a76396Smrg ; 1002440a76396Smrg return 0; 1002540a76396Smrg} 1002640a76396Smrg_ACEOF 100270f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 100280f5b81e5Smrgthen : 1002940a76396Smrg eval $cacheid=yes 100300f5b81e5Smrgelse $as_nop 1003140a76396Smrg eval $cacheid=no 1003240a76396Smrgfi 100330f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1003440a76396Smrg conftest$ac_exeext conftest.$ac_ext 1003540a76396Smrgfi 1003640a76396Smrg 1003740a76396Smrg 1003840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1003940a76396Smrg 1004040a76396Smrg eval supported=\$$cacheid 100410f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 100420f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 1004340a76396Smrg if test "$supported" = "yes" ; then 1004440a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 1004540a76396Smrg found="yes" 1004640a76396Smrg fi 1004740a76396Smrg fi 1004840a76396Smrg 1004940a76396Smrg 1005040a76396Smrg 1005140a76396Smrg 1005240a76396Smrg 1005340a76396Smrg 1005440a76396Smrg 1005540a76396Smrg 1005640a76396Smrg 1005740a76396Smrg 1005840a76396Smrg 1005940a76396Smrg 1006040a76396Smrg 1006140a76396Smrg 1006240a76396Smrg 1006340a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1006440a76396Smrg 1006540a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1006640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100670f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 100680f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 100690f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 100700f5b81e5Smrgthen : 100710f5b81e5Smrg printf %s "(cached) " >&6 100720f5b81e5Smrgelse $as_nop 1007340a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1007440a76396Smrg/* end confdefs.h. */ 1007540a76396Smrgint i; 1007640a76396Smrg_ACEOF 100770f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 100780f5b81e5Smrgthen : 1007940a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 100800f5b81e5Smrgelse $as_nop 1008140a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 1008240a76396Smrgfi 100830f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1008440a76396Smrgfi 100850f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 100860f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1008740a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1008840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1008940a76396Smrgfi 1009040a76396Smrg 1009140a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1009240a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1009340a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1009440a76396Smrg fi 1009540a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100960f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 100970f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 100980f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 100990f5b81e5Smrgthen : 101000f5b81e5Smrg printf %s "(cached) " >&6 101010f5b81e5Smrgelse $as_nop 1010240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1010340a76396Smrg/* end confdefs.h. */ 1010440a76396Smrgint i; 1010540a76396Smrg_ACEOF 101060f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 101070f5b81e5Smrgthen : 1010840a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 101090f5b81e5Smrgelse $as_nop 1011040a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1011140a76396Smrgfi 101120f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1011340a76396Smrgfi 101140f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 101150f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1011640a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1011740a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1011840a76396Smrgfi 1011940a76396Smrg 1012040a76396Smrgfound="no" 1012140a76396Smrg 1012240a76396Smrg if test $found = "no" ; then 10123feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1012440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1012540a76396Smrg fi 1012640a76396Smrg 10127feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1012840a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1012940a76396Smrg fi 1013040a76396Smrg 1013140a76396Smrg CFLAGS="$CFLAGS -Warray-bounds" 1013240a76396Smrg 101330f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 101340f5b81e5Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; } 1013540a76396Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 101360f5b81e5Smrg if eval test \${$cacheid+y} 101370f5b81e5Smrgthen : 101380f5b81e5Smrg printf %s "(cached) " >&6 101390f5b81e5Smrgelse $as_nop 1014040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1014140a76396Smrg/* end confdefs.h. */ 1014240a76396Smrgint i; 1014340a76396Smrgint 101440f5b81e5Smrgmain (void) 1014540a76396Smrg{ 1014640a76396Smrg 1014740a76396Smrg ; 1014840a76396Smrg return 0; 1014940a76396Smrg} 1015040a76396Smrg_ACEOF 101510f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 101520f5b81e5Smrgthen : 1015340a76396Smrg eval $cacheid=yes 101540f5b81e5Smrgelse $as_nop 1015540a76396Smrg eval $cacheid=no 1015640a76396Smrgfi 101570f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1015840a76396Smrg conftest$ac_exeext conftest.$ac_ext 1015940a76396Smrgfi 1016040a76396Smrg 1016140a76396Smrg 1016240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1016340a76396Smrg 1016440a76396Smrg eval supported=\$$cacheid 101650f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 101660f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 1016740a76396Smrg if test "$supported" = "yes" ; then 1016840a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 1016940a76396Smrg found="yes" 1017040a76396Smrg fi 1017140a76396Smrg fi 1017240a76396Smrg 1017340a76396Smrg 1017440a76396Smrg 1017540a76396Smrg 1017640a76396Smrg 1017740a76396Smrg 1017840a76396Smrg 1017940a76396Smrg 1018040a76396Smrg 1018140a76396Smrg 1018240a76396Smrg 1018340a76396Smrg 1018440a76396Smrg 1018540a76396Smrg 1018640a76396Smrg 1018740a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1018840a76396Smrg 1018940a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1019040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101910f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 101920f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 101930f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 101940f5b81e5Smrgthen : 101950f5b81e5Smrg printf %s "(cached) " >&6 101960f5b81e5Smrgelse $as_nop 1019740a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1019840a76396Smrg/* end confdefs.h. */ 1019940a76396Smrgint i; 1020040a76396Smrg_ACEOF 102010f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 102020f5b81e5Smrgthen : 1020340a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 102040f5b81e5Smrgelse $as_nop 1020540a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 1020640a76396Smrgfi 102070f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1020840a76396Smrgfi 102090f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 102100f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1021140a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1021240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1021340a76396Smrgfi 1021440a76396Smrg 1021540a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1021640a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1021740a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1021840a76396Smrg fi 1021940a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 102200f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 102210f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 102220f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 102230f5b81e5Smrgthen : 102240f5b81e5Smrg printf %s "(cached) " >&6 102250f5b81e5Smrgelse $as_nop 1022640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1022740a76396Smrg/* end confdefs.h. */ 1022840a76396Smrgint i; 1022940a76396Smrg_ACEOF 102300f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 102310f5b81e5Smrgthen : 1023240a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 102330f5b81e5Smrgelse $as_nop 1023440a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1023540a76396Smrgfi 102360f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1023740a76396Smrgfi 102380f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 102390f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1024040a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1024140a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1024240a76396Smrgfi 1024340a76396Smrg 1024440a76396Smrgfound="no" 1024540a76396Smrg 1024640a76396Smrg if test $found = "no" ; then 10247feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1024840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1024940a76396Smrg fi 1025040a76396Smrg 10251feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1025240a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1025340a76396Smrg fi 1025440a76396Smrg 1025540a76396Smrg CFLAGS="$CFLAGS -Wwrite-strings" 1025640a76396Smrg 102570f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 102580f5b81e5Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; } 1025940a76396Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 102600f5b81e5Smrg if eval test \${$cacheid+y} 102610f5b81e5Smrgthen : 102620f5b81e5Smrg printf %s "(cached) " >&6 102630f5b81e5Smrgelse $as_nop 1026440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1026540a76396Smrg/* end confdefs.h. */ 1026640a76396Smrgint i; 1026740a76396Smrgint 102680f5b81e5Smrgmain (void) 1026940a76396Smrg{ 1027040a76396Smrg 1027140a76396Smrg ; 1027240a76396Smrg return 0; 1027340a76396Smrg} 1027440a76396Smrg_ACEOF 102750f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 102760f5b81e5Smrgthen : 1027740a76396Smrg eval $cacheid=yes 102780f5b81e5Smrgelse $as_nop 1027940a76396Smrg eval $cacheid=no 1028040a76396Smrgfi 102810f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1028240a76396Smrg conftest$ac_exeext conftest.$ac_ext 1028340a76396Smrgfi 1028440a76396Smrg 1028540a76396Smrg 1028640a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1028740a76396Smrg 1028840a76396Smrg eval supported=\$$cacheid 102890f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 102900f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 1029140a76396Smrg if test "$supported" = "yes" ; then 1029240a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 1029340a76396Smrg found="yes" 1029440a76396Smrg fi 1029540a76396Smrg fi 1029640a76396Smrg 1029740a76396Smrg 1029840a76396Smrg 1029940a76396Smrg 1030040a76396Smrg 1030140a76396Smrg 1030240a76396Smrg 1030340a76396Smrg 1030440a76396Smrg 1030540a76396Smrg 1030640a76396Smrg 1030740a76396Smrg 1030840a76396Smrg 1030940a76396Smrg 1031040a76396Smrg 1031140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1031240a76396Smrg 1031340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1031440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 103150f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 103160f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 103170f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 103180f5b81e5Smrgthen : 103190f5b81e5Smrg printf %s "(cached) " >&6 103200f5b81e5Smrgelse $as_nop 1032140a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1032240a76396Smrg/* end confdefs.h. */ 1032340a76396Smrgint i; 1032440a76396Smrg_ACEOF 103250f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 103260f5b81e5Smrgthen : 1032740a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 103280f5b81e5Smrgelse $as_nop 1032940a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 1033040a76396Smrgfi 103310f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1033240a76396Smrgfi 103330f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 103340f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1033540a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1033640a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1033740a76396Smrgfi 1033840a76396Smrg 1033940a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1034040a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1034140a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1034240a76396Smrg fi 1034340a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 103440f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 103450f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 103460f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 103470f5b81e5Smrgthen : 103480f5b81e5Smrg printf %s "(cached) " >&6 103490f5b81e5Smrgelse $as_nop 1035040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1035140a76396Smrg/* end confdefs.h. */ 1035240a76396Smrgint i; 1035340a76396Smrg_ACEOF 103540f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 103550f5b81e5Smrgthen : 1035640a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 103570f5b81e5Smrgelse $as_nop 1035840a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1035940a76396Smrgfi 103600f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1036140a76396Smrgfi 103620f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 103630f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1036440a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1036540a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1036640a76396Smrgfi 1036740a76396Smrg 1036840a76396Smrgfound="no" 1036940a76396Smrg 1037040a76396Smrg if test $found = "no" ; then 10371feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1037240a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1037340a76396Smrg fi 1037440a76396Smrg 10375feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1037640a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1037740a76396Smrg fi 1037840a76396Smrg 1037940a76396Smrg CFLAGS="$CFLAGS -Waddress" 1038040a76396Smrg 103810f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 103820f5b81e5Smrgprintf %s "checking if $CC supports -Waddress... " >&6; } 1038340a76396Smrg cacheid=xorg_cv_cc_flag__Waddress 103840f5b81e5Smrg if eval test \${$cacheid+y} 103850f5b81e5Smrgthen : 103860f5b81e5Smrg printf %s "(cached) " >&6 103870f5b81e5Smrgelse $as_nop 1038840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1038940a76396Smrg/* end confdefs.h. */ 1039040a76396Smrgint i; 1039140a76396Smrgint 103920f5b81e5Smrgmain (void) 1039340a76396Smrg{ 1039440a76396Smrg 1039540a76396Smrg ; 1039640a76396Smrg return 0; 1039740a76396Smrg} 1039840a76396Smrg_ACEOF 103990f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 104000f5b81e5Smrgthen : 1040140a76396Smrg eval $cacheid=yes 104020f5b81e5Smrgelse $as_nop 1040340a76396Smrg eval $cacheid=no 1040440a76396Smrgfi 104050f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1040640a76396Smrg conftest$ac_exeext conftest.$ac_ext 1040740a76396Smrgfi 1040840a76396Smrg 1040940a76396Smrg 1041040a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1041140a76396Smrg 1041240a76396Smrg eval supported=\$$cacheid 104130f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 104140f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 1041540a76396Smrg if test "$supported" = "yes" ; then 1041640a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 1041740a76396Smrg found="yes" 1041840a76396Smrg fi 1041940a76396Smrg fi 1042040a76396Smrg 1042140a76396Smrg 1042240a76396Smrg 1042340a76396Smrg 1042440a76396Smrg 1042540a76396Smrg 1042640a76396Smrg 1042740a76396Smrg 1042840a76396Smrg 1042940a76396Smrg 1043040a76396Smrg 1043140a76396Smrg 1043240a76396Smrg 1043340a76396Smrg 1043440a76396Smrg 1043540a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1043640a76396Smrg 1043740a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1043840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 104390f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 104400f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 104410f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 104420f5b81e5Smrgthen : 104430f5b81e5Smrg printf %s "(cached) " >&6 104440f5b81e5Smrgelse $as_nop 1044540a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1044640a76396Smrg/* end confdefs.h. */ 1044740a76396Smrgint i; 1044840a76396Smrg_ACEOF 104490f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 104500f5b81e5Smrgthen : 1045140a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 104520f5b81e5Smrgelse $as_nop 1045340a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 1045440a76396Smrgfi 104550f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1045640a76396Smrgfi 104570f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 104580f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1045940a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1046040a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1046140a76396Smrgfi 1046240a76396Smrg 1046340a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1046440a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1046540a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1046640a76396Smrg fi 1046740a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 104680f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 104690f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 104700f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 104710f5b81e5Smrgthen : 104720f5b81e5Smrg printf %s "(cached) " >&6 104730f5b81e5Smrgelse $as_nop 1047440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1047540a76396Smrg/* end confdefs.h. */ 1047640a76396Smrgint i; 1047740a76396Smrg_ACEOF 104780f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 104790f5b81e5Smrgthen : 1048040a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 104810f5b81e5Smrgelse $as_nop 1048240a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1048340a76396Smrgfi 104840f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1048540a76396Smrgfi 104860f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 104870f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1048840a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1048940a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1049040a76396Smrgfi 1049140a76396Smrg 1049240a76396Smrgfound="no" 1049340a76396Smrg 1049440a76396Smrg if test $found = "no" ; then 10495feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1049640a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1049740a76396Smrg fi 1049840a76396Smrg 10499feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1050040a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1050140a76396Smrg fi 1050240a76396Smrg 1050340a76396Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 1050440a76396Smrg 105050f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 105060f5b81e5Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 1050740a76396Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 105080f5b81e5Smrg if eval test \${$cacheid+y} 105090f5b81e5Smrgthen : 105100f5b81e5Smrg printf %s "(cached) " >&6 105110f5b81e5Smrgelse $as_nop 1051240a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1051340a76396Smrg/* end confdefs.h. */ 1051440a76396Smrgint i; 1051540a76396Smrgint 105160f5b81e5Smrgmain (void) 1051740a76396Smrg{ 1051840a76396Smrg 1051940a76396Smrg ; 1052040a76396Smrg return 0; 1052140a76396Smrg} 1052240a76396Smrg_ACEOF 105230f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 105240f5b81e5Smrgthen : 1052540a76396Smrg eval $cacheid=yes 105260f5b81e5Smrgelse $as_nop 1052740a76396Smrg eval $cacheid=no 1052840a76396Smrgfi 105290f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1053040a76396Smrg conftest$ac_exeext conftest.$ac_ext 1053140a76396Smrgfi 1053240a76396Smrg 1053340a76396Smrg 1053440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1053540a76396Smrg 1053640a76396Smrg eval supported=\$$cacheid 105370f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 105380f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 1053940a76396Smrg if test "$supported" = "yes" ; then 1054040a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 1054140a76396Smrg found="yes" 1054240a76396Smrg fi 1054340a76396Smrg fi 1054440a76396Smrg 1054540a76396Smrg 1054640a76396Smrg 1054740a76396Smrg 1054840a76396Smrg 1054940a76396Smrg 1055040a76396Smrg 1055140a76396Smrg 1055240a76396Smrg 1055340a76396Smrg 1055440a76396Smrg 1055540a76396Smrg 1055640a76396Smrg 1055740a76396Smrg 1055840a76396Smrg 1055940a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1056040a76396Smrg 1056140a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1056240a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 105630f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 105640f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 105650f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 105660f5b81e5Smrgthen : 105670f5b81e5Smrg printf %s "(cached) " >&6 105680f5b81e5Smrgelse $as_nop 1056940a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1057040a76396Smrg/* end confdefs.h. */ 1057140a76396Smrgint i; 1057240a76396Smrg_ACEOF 105730f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 105740f5b81e5Smrgthen : 1057540a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 105760f5b81e5Smrgelse $as_nop 1057740a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 1057840a76396Smrgfi 105790f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1058040a76396Smrgfi 105810f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 105820f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1058340a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1058440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1058540a76396Smrgfi 1058640a76396Smrg 1058740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1058840a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1058940a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1059040a76396Smrg fi 1059140a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 105920f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 105930f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 105940f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 105950f5b81e5Smrgthen : 105960f5b81e5Smrg printf %s "(cached) " >&6 105970f5b81e5Smrgelse $as_nop 1059840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1059940a76396Smrg/* end confdefs.h. */ 1060040a76396Smrgint i; 1060140a76396Smrg_ACEOF 106020f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 106030f5b81e5Smrgthen : 1060440a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 106050f5b81e5Smrgelse $as_nop 1060640a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1060740a76396Smrgfi 106080f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1060940a76396Smrgfi 106100f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 106110f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1061240a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1061340a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1061440a76396Smrgfi 1061540a76396Smrg 1061640a76396Smrgfound="no" 1061740a76396Smrg 1061840a76396Smrg if test $found = "no" ; then 10619feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1062040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1062140a76396Smrg fi 1062240a76396Smrg 10623feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1062440a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1062540a76396Smrg fi 1062640a76396Smrg 1062740a76396Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 1062840a76396Smrg 106290f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 106300f5b81e5Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 1063140a76396Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 106320f5b81e5Smrg if eval test \${$cacheid+y} 106330f5b81e5Smrgthen : 106340f5b81e5Smrg printf %s "(cached) " >&6 106350f5b81e5Smrgelse $as_nop 1063640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1063740a76396Smrg/* end confdefs.h. */ 1063840a76396Smrgint i; 1063940a76396Smrgint 106400f5b81e5Smrgmain (void) 1064140a76396Smrg{ 1064240a76396Smrg 1064340a76396Smrg ; 1064440a76396Smrg return 0; 1064540a76396Smrg} 1064640a76396Smrg_ACEOF 106470f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 106480f5b81e5Smrgthen : 1064940a76396Smrg eval $cacheid=yes 106500f5b81e5Smrgelse $as_nop 1065140a76396Smrg eval $cacheid=no 1065240a76396Smrgfi 106530f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1065440a76396Smrg conftest$ac_exeext conftest.$ac_ext 1065540a76396Smrgfi 1065640a76396Smrg 1065740a76396Smrg 1065840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1065940a76396Smrg 1066040a76396Smrg eval supported=\$$cacheid 106610f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 106620f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 1066340a76396Smrg if test "$supported" = "yes" ; then 1066440a76396Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 1066540a76396Smrg found="yes" 1066640a76396Smrg fi 1066740a76396Smrg fi 1066840a76396Smrg 1066940a76396Smrg 1067040a76396Smrgfi 1067140a76396Smrg 1067240a76396Smrg 1067340a76396Smrg 1067440a76396Smrg 1067540a76396Smrg 1067640a76396Smrg 1067740a76396Smrg 1067840a76396Smrg CWARNFLAGS="$BASE_CFLAGS" 1067940a76396Smrg if test "x$GCC" = xyes ; then 1068040a76396Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 1068140a76396Smrg fi 1068240a76396Smrg 1068340a76396Smrg 1068440a76396Smrg 1068540a76396Smrg 1068640a76396Smrg 1068740a76396Smrg 1068840a76396Smrg 1068940a76396Smrg 1069040a76396Smrg# Check whether --enable-strict-compilation was given. 106910f5b81e5Smrgif test ${enable_strict_compilation+y} 106920f5b81e5Smrgthen : 1069340a76396Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 106940f5b81e5Smrgelse $as_nop 1069540a76396Smrg STRICT_COMPILE=no 1069640a76396Smrgfi 1069740a76396Smrg 1069840a76396Smrg 1069940a76396Smrg 1070040a76396Smrg 1070140a76396Smrg 1070240a76396Smrg 1070340a76396SmrgSTRICT_CFLAGS="" 1070440a76396Smrg 1070540a76396Smrg 1070640a76396Smrg 1070740a76396Smrg 1070840a76396Smrg 1070940a76396Smrg 1071040a76396Smrg 1071140a76396Smrg 1071240a76396Smrg 1071340a76396Smrg 1071440a76396Smrg 1071540a76396Smrg 1071640a76396Smrg 1071740a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1071840a76396Smrg 1071940a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1072040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 107210f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 107220f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 107230f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 107240f5b81e5Smrgthen : 107250f5b81e5Smrg printf %s "(cached) " >&6 107260f5b81e5Smrgelse $as_nop 1072740a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1072840a76396Smrg/* end confdefs.h. */ 1072940a76396Smrgint i; 1073040a76396Smrg_ACEOF 107310f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 107320f5b81e5Smrgthen : 1073340a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 107340f5b81e5Smrgelse $as_nop 1073540a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 1073640a76396Smrgfi 107370f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1073840a76396Smrgfi 107390f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 107400f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1074140a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1074240a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1074340a76396Smrgfi 1074440a76396Smrg 1074540a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1074640a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1074740a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1074840a76396Smrg fi 1074940a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 107500f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 107510f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 107520f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 107530f5b81e5Smrgthen : 107540f5b81e5Smrg printf %s "(cached) " >&6 107550f5b81e5Smrgelse $as_nop 1075640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1075740a76396Smrg/* end confdefs.h. */ 1075840a76396Smrgint i; 1075940a76396Smrg_ACEOF 107600f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 107610f5b81e5Smrgthen : 1076240a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 107630f5b81e5Smrgelse $as_nop 1076440a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1076540a76396Smrgfi 107660f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1076740a76396Smrgfi 107680f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 107690f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1077040a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1077140a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1077240a76396Smrgfi 1077340a76396Smrg 1077440a76396Smrgfound="no" 1077540a76396Smrg 1077640a76396Smrg if test $found = "no" ; then 10777feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1077840a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1077940a76396Smrg fi 1078040a76396Smrg 10781feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1078240a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1078340a76396Smrg fi 1078440a76396Smrg 1078540a76396Smrg CFLAGS="$CFLAGS -pedantic" 1078640a76396Smrg 107870f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 107880f5b81e5Smrgprintf %s "checking if $CC supports -pedantic... " >&6; } 1078940a76396Smrg cacheid=xorg_cv_cc_flag__pedantic 107900f5b81e5Smrg if eval test \${$cacheid+y} 107910f5b81e5Smrgthen : 107920f5b81e5Smrg printf %s "(cached) " >&6 107930f5b81e5Smrgelse $as_nop 1079440a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1079540a76396Smrg/* end confdefs.h. */ 1079640a76396Smrgint i; 1079740a76396Smrgint 107980f5b81e5Smrgmain (void) 1079940a76396Smrg{ 1080040a76396Smrg 1080140a76396Smrg ; 1080240a76396Smrg return 0; 1080340a76396Smrg} 1080440a76396Smrg_ACEOF 108050f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 108060f5b81e5Smrgthen : 1080740a76396Smrg eval $cacheid=yes 108080f5b81e5Smrgelse $as_nop 1080940a76396Smrg eval $cacheid=no 1081040a76396Smrgfi 108110f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1081240a76396Smrg conftest$ac_exeext conftest.$ac_ext 1081340a76396Smrgfi 1081440a76396Smrg 1081540a76396Smrg 1081640a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1081740a76396Smrg 1081840a76396Smrg eval supported=\$$cacheid 108190f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 108200f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 1082140a76396Smrg if test "$supported" = "yes" ; then 1082240a76396Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 1082340a76396Smrg found="yes" 1082440a76396Smrg fi 1082540a76396Smrg fi 1082640a76396Smrg 1082740a76396Smrg 1082840a76396Smrg 1082940a76396Smrg 1083040a76396Smrg 1083140a76396Smrg 1083240a76396Smrg 1083340a76396Smrg 1083440a76396Smrg 1083540a76396Smrg 1083640a76396Smrg 1083740a76396Smrg 1083840a76396Smrg 1083940a76396Smrg 1084040a76396Smrg 1084140a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1084240a76396Smrg 1084340a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1084440a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 108450f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 108460f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 108470f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 108480f5b81e5Smrgthen : 108490f5b81e5Smrg printf %s "(cached) " >&6 108500f5b81e5Smrgelse $as_nop 1085140a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1085240a76396Smrg/* end confdefs.h. */ 1085340a76396Smrgint i; 1085440a76396Smrg_ACEOF 108550f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 108560f5b81e5Smrgthen : 1085740a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 108580f5b81e5Smrgelse $as_nop 1085940a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 1086040a76396Smrgfi 108610f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1086240a76396Smrgfi 108630f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 108640f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1086540a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1086640a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 108676f5dd5c2Smrgfi 108686600fe5bSmrg 1086940a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1087040a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1087140a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1087240a76396Smrg fi 1087340a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 108740f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 108750f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 108760f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 108770f5b81e5Smrgthen : 108780f5b81e5Smrg printf %s "(cached) " >&6 108790f5b81e5Smrgelse $as_nop 1088040a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1088140a76396Smrg/* end confdefs.h. */ 1088240a76396Smrgint i; 1088340a76396Smrg_ACEOF 108840f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 108850f5b81e5Smrgthen : 1088640a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 108870f5b81e5Smrgelse $as_nop 1088840a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1088940a76396Smrgfi 108900f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1089140a76396Smrgfi 108920f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 108930f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1089440a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1089540a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 108966600fe5bSmrgfi 108976600fe5bSmrg 1089840a76396Smrgfound="no" 108996600fe5bSmrg 1090040a76396Smrg if test $found = "no" ; then 10901feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1090240a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1090340a76396Smrg fi 1090440a76396Smrg 10905feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1090640a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1090740a76396Smrg fi 1090840a76396Smrg 1090940a76396Smrg CFLAGS="$CFLAGS -Werror" 1091040a76396Smrg 109110f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 109120f5b81e5Smrgprintf %s "checking if $CC supports -Werror... " >&6; } 1091340a76396Smrg cacheid=xorg_cv_cc_flag__Werror 109140f5b81e5Smrg if eval test \${$cacheid+y} 109150f5b81e5Smrgthen : 109160f5b81e5Smrg printf %s "(cached) " >&6 109170f5b81e5Smrgelse $as_nop 1091840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1091940a76396Smrg/* end confdefs.h. */ 1092040a76396Smrgint i; 1092140a76396Smrgint 109220f5b81e5Smrgmain (void) 1092340a76396Smrg{ 1092440a76396Smrg 1092540a76396Smrg ; 1092640a76396Smrg return 0; 1092740a76396Smrg} 1092840a76396Smrg_ACEOF 109290f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 109300f5b81e5Smrgthen : 1093140a76396Smrg eval $cacheid=yes 109320f5b81e5Smrgelse $as_nop 1093340a76396Smrg eval $cacheid=no 109346600fe5bSmrgfi 109350f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1093640a76396Smrg conftest$ac_exeext conftest.$ac_ext 109376600fe5bSmrgfi 109386600fe5bSmrg 109396600fe5bSmrg 1094040a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1094140a76396Smrg 1094240a76396Smrg eval supported=\$$cacheid 109430f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 109440f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 1094540a76396Smrg if test "$supported" = "yes" ; then 1094640a76396Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 1094740a76396Smrg found="yes" 1094840a76396Smrg fi 1094940a76396Smrg fi 1095040a76396Smrg 1095140a76396Smrg if test $found = "no" ; then 10952feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1095340a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1095440a76396Smrg fi 1095540a76396Smrg 10956feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1095740a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1095840a76396Smrg fi 1095940a76396Smrg 1096040a76396Smrg CFLAGS="$CFLAGS -errwarn" 1096140a76396Smrg 109620f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 109630f5b81e5Smrgprintf %s "checking if $CC supports -errwarn... " >&6; } 1096440a76396Smrg cacheid=xorg_cv_cc_flag__errwarn 109650f5b81e5Smrg if eval test \${$cacheid+y} 109660f5b81e5Smrgthen : 109670f5b81e5Smrg printf %s "(cached) " >&6 109680f5b81e5Smrgelse $as_nop 1096940a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1097040a76396Smrg/* end confdefs.h. */ 1097140a76396Smrgint i; 1097240a76396Smrgint 109730f5b81e5Smrgmain (void) 1097440a76396Smrg{ 109756600fe5bSmrg 1097640a76396Smrg ; 1097740a76396Smrg return 0; 1097840a76396Smrg} 1097940a76396Smrg_ACEOF 109800f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 109810f5b81e5Smrgthen : 1098240a76396Smrg eval $cacheid=yes 109830f5b81e5Smrgelse $as_nop 1098440a76396Smrg eval $cacheid=no 109856600fe5bSmrgfi 109860f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1098740a76396Smrg conftest$ac_exeext conftest.$ac_ext 109886600fe5bSmrgfi 109896f5dd5c2Smrg 109906f5dd5c2Smrg 1099140a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 109926f5dd5c2Smrg 1099340a76396Smrg eval supported=\$$cacheid 109940f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 109950f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 1099640a76396Smrg if test "$supported" = "yes" ; then 1099740a76396Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 1099840a76396Smrg found="yes" 1099940a76396Smrg fi 1100040a76396Smrg fi 110016f5dd5c2Smrg 110026f5dd5c2Smrg 11003ff6cf368Smrg 1100440a76396Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 1100540a76396Smrg# activate it with -Werror, so we add it here explicitly. 110066600fe5bSmrg 110076600fe5bSmrg 110086600fe5bSmrg 110096600fe5bSmrg 110106600fe5bSmrg 110116600fe5bSmrg 11012ff6cf368Smrg 1101340a76396Smrg 1101440a76396Smrg 1101540a76396Smrg 1101640a76396Smrg 1101740a76396Smrg 1101840a76396Smrg 1101940a76396Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1102040a76396Smrg 1102140a76396Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1102240a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 110230f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 110240f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 110250f5b81e5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 110260f5b81e5Smrgthen : 110270f5b81e5Smrg printf %s "(cached) " >&6 110280f5b81e5Smrgelse $as_nop 1102940a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1103040a76396Smrg/* end confdefs.h. */ 1103140a76396Smrgint i; 1103240a76396Smrg_ACEOF 110330f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 110340f5b81e5Smrgthen : 1103540a76396Smrg xorg_cv_cc_flag_unknown_warning_option=yes 110360f5b81e5Smrgelse $as_nop 1103740a76396Smrg xorg_cv_cc_flag_unknown_warning_option=no 1103840a76396Smrgfi 110390f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1104040a76396Smrgfi 110410f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 110420f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1104340a76396Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1104440a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 110456600fe5bSmrgfi 110466600fe5bSmrg 1104740a76396Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1104840a76396Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1104940a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1105040a76396Smrg fi 1105140a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 110520f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 110530f5b81e5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 110540f5b81e5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 110550f5b81e5Smrgthen : 110560f5b81e5Smrg printf %s "(cached) " >&6 110570f5b81e5Smrgelse $as_nop 1105840a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11059ff6cf368Smrg/* end confdefs.h. */ 1106040a76396Smrgint i; 11061ff6cf368Smrg_ACEOF 110620f5b81e5Smrgif ac_fn_c_try_compile "$LINENO" 110630f5b81e5Smrgthen : 1106440a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 110650f5b81e5Smrgelse $as_nop 1106640a76396Smrg xorg_cv_cc_flag_unused_command_line_argument=no 110676600fe5bSmrgfi 110680f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 110696600fe5bSmrgfi 110700f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 110710f5b81e5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1107240a76396Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1107340a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1107440a76396Smrgfi 1107540a76396Smrg 1107640a76396Smrgfound="no" 1107740a76396Smrg 1107840a76396Smrg if test $found = "no" ; then 11079feee4651Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1108040a76396Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1108140a76396Smrg fi 1108240a76396Smrg 11083feee4651Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1108440a76396Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1108540a76396Smrg fi 1108640a76396Smrg 1108740a76396Smrg CFLAGS="$CFLAGS -Werror=attributes" 1108840a76396Smrg 110890f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 110900f5b81e5Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; } 11091feee4651Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 110920f5b81e5Smrg if eval test \${$cacheid+y} 110930f5b81e5Smrgthen : 110940f5b81e5Smrg printf %s "(cached) " >&6 110950f5b81e5Smrgelse $as_nop 1109640a76396Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1109740a76396Smrg/* end confdefs.h. */ 1109840a76396Smrgint i; 1109940a76396Smrgint 111000f5b81e5Smrgmain (void) 1110140a76396Smrg{ 1110240a76396Smrg 1110340a76396Smrg ; 1110440a76396Smrg return 0; 1110540a76396Smrg} 1110640a76396Smrg_ACEOF 111070f5b81e5Smrgif ac_fn_c_try_link "$LINENO" 111080f5b81e5Smrgthen : 1110940a76396Smrg eval $cacheid=yes 111100f5b81e5Smrgelse $as_nop 1111140a76396Smrg eval $cacheid=no 1111240a76396Smrgfi 111130f5b81e5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1111440a76396Smrg conftest$ac_exeext conftest.$ac_ext 1111540a76396Smrgfi 1111640a76396Smrg 1111740a76396Smrg 1111840a76396Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1111940a76396Smrg 1112040a76396Smrg eval supported=\$$cacheid 111210f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 111220f5b81e5Smrgprintf "%s\n" "$supported" >&6; } 1112340a76396Smrg if test "$supported" = "yes" ; then 1112440a76396Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 1112540a76396Smrg found="yes" 1112640a76396Smrg fi 1112740a76396Smrg fi 1112840a76396Smrg 1112940a76396Smrg 1113040a76396Smrg 11131ff6cf368Smrgif test "x$STRICT_COMPILE" = "xyes"; then 1113240a76396Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11133ff6cf368Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 111346600fe5bSmrgfi 11135ff6cf368Smrg 111366600fe5bSmrg 111376600fe5bSmrg 111386600fe5bSmrg 111396600fe5bSmrg 1114040a76396Smrg 111416600fe5bSmrgcat >>confdefs.h <<_ACEOF 111426600fe5bSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 111436600fe5bSmrg_ACEOF 111446600fe5bSmrg 111456600fe5bSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 111466600fe5bSmrg if test "x$PVM" = "x"; then 111476600fe5bSmrg PVM="0" 111486600fe5bSmrg fi 111496600fe5bSmrg 111500f5b81e5Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 111516600fe5bSmrg 111526600fe5bSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 111536600fe5bSmrg if test "x$PVP" = "x"; then 111546600fe5bSmrg PVP="0" 111556600fe5bSmrg fi 111566600fe5bSmrg 111570f5b81e5Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 111586600fe5bSmrg 111596600fe5bSmrg 111606600fe5bSmrg 111610f5b81e5SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 111626f5dd5c2Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 111630f5b81e5Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 111640f5b81e5Smrgtouch \$(top_srcdir)/ChangeLog; \ 111650f5b81e5Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 111666600fe5bSmrg 111676f5dd5c2Smrg 111686f5dd5c2Smrg 111696f5dd5c2Smrg 111706f5dd5c2Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 111716f5dd5c2SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 111726f5dd5c2Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 111730f5b81e5Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 111740f5b81e5Smrgtouch \$(top_srcdir)/INSTALL; \ 111750f5b81e5Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 111760f5b81e5Smrg 111776f5dd5c2Smrg 111786600fe5bSmrg 111796600fe5bSmrg 111806600fe5bSmrg 111816600fe5bSmrg 111820f5b81e5Smrgcase $host_os in 111830f5b81e5Smrg solaris*) 111840f5b81e5Smrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 111850f5b81e5Smrg # check for a man page file found in later versions that use 111860f5b81e5Smrg # traditional section numbers instead 111870f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 111880f5b81e5Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 111890f5b81e5Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 111900f5b81e5Smrgthen : 111910f5b81e5Smrg printf %s "(cached) " >&6 111920f5b81e5Smrgelse $as_nop 111930f5b81e5Smrg test "$cross_compiling" = yes && 111940f5b81e5Smrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 111950f5b81e5Smrgif test -r "/usr/share/man/man7/attributes.7"; then 111960f5b81e5Smrg ac_cv_file__usr_share_man_man7_attributes_7=yes 111970f5b81e5Smrgelse 111980f5b81e5Smrg ac_cv_file__usr_share_man_man7_attributes_7=no 111990f5b81e5Smrgfi 112000f5b81e5Smrgfi 112010f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 112020f5b81e5Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 112030f5b81e5Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 112040f5b81e5Smrgthen : 112050f5b81e5Smrg SYSV_MAN_SECTIONS=false 112060f5b81e5Smrgelse $as_nop 112070f5b81e5Smrg SYSV_MAN_SECTIONS=true 112080f5b81e5Smrgfi 112090f5b81e5Smrg 112100f5b81e5Smrg ;; 112110f5b81e5Smrg *) SYSV_MAN_SECTIONS=false ;; 112120f5b81e5Smrgesac 112136600fe5bSmrg 112146600fe5bSmrgif test x$APP_MAN_SUFFIX = x ; then 112156600fe5bSmrg APP_MAN_SUFFIX=1 112166600fe5bSmrgfi 112176600fe5bSmrgif test x$APP_MAN_DIR = x ; then 112186600fe5bSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 112196600fe5bSmrgfi 112206600fe5bSmrg 112216600fe5bSmrgif test x$LIB_MAN_SUFFIX = x ; then 112226600fe5bSmrg LIB_MAN_SUFFIX=3 112236600fe5bSmrgfi 112246600fe5bSmrgif test x$LIB_MAN_DIR = x ; then 112256600fe5bSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 112266600fe5bSmrgfi 112276600fe5bSmrg 112286600fe5bSmrgif test x$FILE_MAN_SUFFIX = x ; then 112290f5b81e5Smrg case $SYSV_MAN_SECTIONS in 112300f5b81e5Smrg true) FILE_MAN_SUFFIX=4 ;; 11231feee4651Smrg *) FILE_MAN_SUFFIX=5 ;; 112326600fe5bSmrg esac 112336600fe5bSmrgfi 112346600fe5bSmrgif test x$FILE_MAN_DIR = x ; then 112356600fe5bSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 112366600fe5bSmrgfi 112376600fe5bSmrg 112386600fe5bSmrgif test x$MISC_MAN_SUFFIX = x ; then 112390f5b81e5Smrg case $SYSV_MAN_SECTIONS in 112400f5b81e5Smrg true) MISC_MAN_SUFFIX=5 ;; 11241feee4651Smrg *) MISC_MAN_SUFFIX=7 ;; 112426600fe5bSmrg esac 112436600fe5bSmrgfi 112446600fe5bSmrgif test x$MISC_MAN_DIR = x ; then 112456600fe5bSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 112466600fe5bSmrgfi 112476600fe5bSmrg 112486600fe5bSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 112490f5b81e5Smrg case $SYSV_MAN_SECTIONS in 112500f5b81e5Smrg true) DRIVER_MAN_SUFFIX=7 ;; 11251feee4651Smrg *) DRIVER_MAN_SUFFIX=4 ;; 112526600fe5bSmrg esac 112536600fe5bSmrgfi 112546600fe5bSmrgif test x$DRIVER_MAN_DIR = x ; then 112556600fe5bSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 112566600fe5bSmrgfi 112576600fe5bSmrg 112586600fe5bSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 112590f5b81e5Smrg case $SYSV_MAN_SECTIONS in 112600f5b81e5Smrg true) ADMIN_MAN_SUFFIX=1m ;; 11261feee4651Smrg *) ADMIN_MAN_SUFFIX=8 ;; 112626600fe5bSmrg esac 112636600fe5bSmrgfi 112646600fe5bSmrgif test x$ADMIN_MAN_DIR = x ; then 112656600fe5bSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 112666600fe5bSmrgfi 112676600fe5bSmrg 112686600fe5bSmrg 112696600fe5bSmrg 112706600fe5bSmrg 112716600fe5bSmrg 112726600fe5bSmrg 112736600fe5bSmrg 112746600fe5bSmrg 112756600fe5bSmrg 112766600fe5bSmrg 112776600fe5bSmrg 112786600fe5bSmrg 112796600fe5bSmrg 112806600fe5bSmrg 112816600fe5bSmrg 112826f5dd5c2SmrgXORG_MAN_PAGE="X Version 11" 112836600fe5bSmrg 112846f5dd5c2SmrgMAN_SUBSTS="\ 112856f5dd5c2Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 112866f5dd5c2Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 112876f5dd5c2Smrg -e 's|__xservername__|Xorg|g' \ 112886f5dd5c2Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 112896f5dd5c2Smrg -e 's|__projectroot__|\$(prefix)|g' \ 112902ab73d9fSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 112916f5dd5c2Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 112926f5dd5c2Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 112936f5dd5c2Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 112946f5dd5c2Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 112956f5dd5c2Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 112966f5dd5c2Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 112976600fe5bSmrg 11298a0195d5fSmrg 11299a0195d5fSmrg 113006f5dd5c2Smrg# Check whether --enable-silent-rules was given. 113010f5b81e5Smrgif test ${enable_silent_rules+y} 113020f5b81e5Smrgthen : 113036f5dd5c2Smrg enableval=$enable_silent_rules; 11304a0195d5fSmrgfi 11305a0195d5fSmrg 1130640a76396Smrgcase $enable_silent_rules in # ((( 1130740a76396Smrg yes) AM_DEFAULT_VERBOSITY=0;; 1130840a76396Smrg no) AM_DEFAULT_VERBOSITY=1;; 1130940a76396Smrg *) AM_DEFAULT_VERBOSITY=0;; 113106f5dd5c2Smrgesac 1131140a76396Smrgam_make=${MAKE-make} 113120f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 113130f5b81e5Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 113140f5b81e5Smrgif test ${am_cv_make_support_nested_variables+y} 113150f5b81e5Smrgthen : 113160f5b81e5Smrg printf %s "(cached) " >&6 113170f5b81e5Smrgelse $as_nop 113180f5b81e5Smrg if printf "%s\n" 'TRUE=$(BAR$(V)) 1131940a76396SmrgBAR0=false 1132040a76396SmrgBAR1=true 1132140a76396SmrgV=1 1132240a76396Smrgam__doit: 1132340a76396Smrg @$(TRUE) 1132440a76396Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 1132540a76396Smrg am_cv_make_support_nested_variables=yes 1132640a76396Smrgelse 1132740a76396Smrg am_cv_make_support_nested_variables=no 1132840a76396Smrgfi 1132940a76396Smrgfi 113300f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 113310f5b81e5Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 1133240a76396Smrgif test $am_cv_make_support_nested_variables = yes; then 1133340a76396Smrg AM_V='$(V)' 1133440a76396Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1133540a76396Smrgelse 1133640a76396Smrg AM_V=$AM_DEFAULT_VERBOSITY 1133740a76396Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1133840a76396Smrgfi 113396f5dd5c2SmrgAM_BACKSLASH='\' 11340a0195d5fSmrg 11341a0195d5fSmrg 11342a0195d5fSmrg 113432ab73d9fSmrg# Checks for system functions 113440f5b81e5Smrgac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" 113450f5b81e5Smrgif test "x$ac_cv_func_usleep" = xyes 113460f5b81e5Smrgthen : 113470f5b81e5Smrg printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h 11348a0195d5fSmrg 113492ab73d9fSmrgfi 11350a0195d5fSmrg 113512ab73d9fSmrg 113522ab73d9fSmrg# Checks for pkg-config packages 113532ab73d9fSmrg 113542ab73d9fSmrgpkg_failed=no 113550f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSET" >&5 113560f5b81e5Smrgprintf %s "checking for XSET... " >&6; } 113572ab73d9fSmrg 113582ab73d9fSmrgif test -n "$XSET_CFLAGS"; then 113592ab73d9fSmrg pkg_cv_XSET_CFLAGS="$XSET_CFLAGS" 113602ab73d9fSmrg elif test -n "$PKG_CONFIG"; then 113612ab73d9fSmrg if test -n "$PKG_CONFIG" && \ 113620f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5 11363ff6cf368Smrg ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5 113642ab73d9fSmrg ac_status=$? 113650f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 113662ab73d9fSmrg test $ac_status = 0; }; then 11367ff6cf368Smrg pkg_cv_XSET_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xmuu" 2>/dev/null` 11368feee4651Smrg test "x$?" != "x0" && pkg_failed=yes 113692ab73d9fSmrgelse 113702ab73d9fSmrg pkg_failed=yes 11371a0195d5fSmrgfi 113722ab73d9fSmrg else 113732ab73d9fSmrg pkg_failed=untried 113746f5dd5c2Smrgfi 113752ab73d9fSmrgif test -n "$XSET_LIBS"; then 113762ab73d9fSmrg pkg_cv_XSET_LIBS="$XSET_LIBS" 113772ab73d9fSmrg elif test -n "$PKG_CONFIG"; then 113782ab73d9fSmrg if test -n "$PKG_CONFIG" && \ 113790f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5 11380ff6cf368Smrg ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5 113812ab73d9fSmrg ac_status=$? 113820f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 113832ab73d9fSmrg test $ac_status = 0; }; then 11384ff6cf368Smrg pkg_cv_XSET_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xmuu" 2>/dev/null` 11385feee4651Smrg test "x$?" != "x0" && pkg_failed=yes 11386a0195d5fSmrgelse 113872ab73d9fSmrg pkg_failed=yes 113882ab73d9fSmrgfi 113892ab73d9fSmrg else 113902ab73d9fSmrg pkg_failed=untried 11391a0195d5fSmrgfi 11392a0195d5fSmrg 11393a0195d5fSmrg 113946f5dd5c2Smrg 113952ab73d9fSmrgif test $pkg_failed = yes; then 113960f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 113970f5b81e5Smrgprintf "%s\n" "no" >&6; } 113982ab73d9fSmrg 113992ab73d9fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 114002ab73d9fSmrg _pkg_short_errors_supported=yes 114016f5dd5c2Smrgelse 114022ab73d9fSmrg _pkg_short_errors_supported=no 114036f5dd5c2Smrgfi 114042ab73d9fSmrg if test $_pkg_short_errors_supported = yes; then 11405feee4651Smrg XSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xmuu" 2>&1` 114062ab73d9fSmrg else 11407feee4651Smrg XSET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xmuu" 2>&1` 114082ab73d9fSmrg fi 114092ab73d9fSmrg # Put the nasty error message in config.log where it belongs 114102ab73d9fSmrg echo "$XSET_PKG_ERRORS" >&5 114116f5dd5c2Smrg 11412ff6cf368Smrg as_fn_error $? "Package requirements (xproto >= 7.0.17 xmuu) were not met: 114132ab73d9fSmrg 114142ab73d9fSmrg$XSET_PKG_ERRORS 114152ab73d9fSmrg 114162ab73d9fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 114172ab73d9fSmrginstalled software in a non-standard prefix. 114182ab73d9fSmrg 114192ab73d9fSmrgAlternatively, you may set the environment variables XSET_CFLAGS 114202ab73d9fSmrgand XSET_LIBS to avoid the need to call pkg-config. 11421feee4651SmrgSee the pkg-config man page for more details." "$LINENO" 5 114222ab73d9fSmrgelif test $pkg_failed = untried; then 114230f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 114240f5b81e5Smrgprintf "%s\n" "no" >&6; } 114250f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 114260f5b81e5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 114272ab73d9fSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 114282ab73d9fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 114292ab73d9fSmrgpath to pkg-config. 114302ab73d9fSmrg 114312ab73d9fSmrgAlternatively, you may set the environment variables XSET_CFLAGS 114322ab73d9fSmrgand XSET_LIBS to avoid the need to call pkg-config. 114332ab73d9fSmrgSee the pkg-config man page for more details. 114342ab73d9fSmrg 114352ab73d9fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 114362ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; } 114376f5dd5c2Smrgelse 114382ab73d9fSmrg XSET_CFLAGS=$pkg_cv_XSET_CFLAGS 114392ab73d9fSmrg XSET_LIBS=$pkg_cv_XSET_LIBS 114400f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 114410f5b81e5Smrgprintf "%s\n" "yes" >&6; } 11442feee4651Smrg 114436f5dd5c2Smrgfi 114446f5dd5c2Smrg 114452ab73d9fSmrg# This is used below to allow <X11/Xlib.h> to be found 114462ab73d9fSmrg 114472ab73d9fSmrgpkg_failed=no 114480f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SET_X11" >&5 114490f5b81e5Smrgprintf %s "checking for SET_X11... " >&6; } 114506f5dd5c2Smrg 114512ab73d9fSmrgif test -n "$SET_X11_CFLAGS"; then 114522ab73d9fSmrg pkg_cv_SET_X11_CFLAGS="$SET_X11_CFLAGS" 114532ab73d9fSmrg elif test -n "$PKG_CONFIG"; then 114542ab73d9fSmrg if test -n "$PKG_CONFIG" && \ 114550f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 114562ab73d9fSmrg ($PKG_CONFIG --exists --print-errors "x11") 2>&5 114572ab73d9fSmrg ac_status=$? 114580f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 114592ab73d9fSmrg test $ac_status = 0; }; then 114602ab73d9fSmrg pkg_cv_SET_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 11461feee4651Smrg test "x$?" != "x0" && pkg_failed=yes 114622ab73d9fSmrgelse 114632ab73d9fSmrg pkg_failed=yes 114646f5dd5c2Smrgfi 114652ab73d9fSmrg else 114662ab73d9fSmrg pkg_failed=untried 114676f5dd5c2Smrgfi 114682ab73d9fSmrgif test -n "$SET_X11_LIBS"; then 114692ab73d9fSmrg pkg_cv_SET_X11_LIBS="$SET_X11_LIBS" 114702ab73d9fSmrg elif test -n "$PKG_CONFIG"; then 114712ab73d9fSmrg if test -n "$PKG_CONFIG" && \ 114720f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 114732ab73d9fSmrg ($PKG_CONFIG --exists --print-errors "x11") 2>&5 114742ab73d9fSmrg ac_status=$? 114750f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 114762ab73d9fSmrg test $ac_status = 0; }; then 114772ab73d9fSmrg pkg_cv_SET_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 11478feee4651Smrg test "x$?" != "x0" && pkg_failed=yes 114796f5dd5c2Smrgelse 114802ab73d9fSmrg pkg_failed=yes 114812ab73d9fSmrgfi 114822ab73d9fSmrg else 114832ab73d9fSmrg pkg_failed=untried 114846f5dd5c2Smrgfi 114856f5dd5c2Smrg 114866f5dd5c2Smrg 114872ab73d9fSmrg 114882ab73d9fSmrgif test $pkg_failed = yes; then 114890f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 114900f5b81e5Smrgprintf "%s\n" "no" >&6; } 114912ab73d9fSmrg 114922ab73d9fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 114932ab73d9fSmrg _pkg_short_errors_supported=yes 114942ab73d9fSmrgelse 114952ab73d9fSmrg _pkg_short_errors_supported=no 11496a0195d5fSmrgfi 11497a0195d5fSmrg if test $_pkg_short_errors_supported = yes; then 11498feee4651Smrg SET_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 11499a0195d5fSmrg else 11500feee4651Smrg SET_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 11501a0195d5fSmrg fi 11502a0195d5fSmrg # Put the nasty error message in config.log where it belongs 11503a0195d5fSmrg echo "$SET_X11_PKG_ERRORS" >&5 11504a0195d5fSmrg 115052ab73d9fSmrg as_fn_error $? "Package requirements (x11) were not met: 11506a0195d5fSmrg 11507a0195d5fSmrg$SET_X11_PKG_ERRORS 11508a0195d5fSmrg 11509a0195d5fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 11510a0195d5fSmrginstalled software in a non-standard prefix. 11511a0195d5fSmrg 11512a0195d5fSmrgAlternatively, you may set the environment variables SET_X11_CFLAGS 11513a0195d5fSmrgand SET_X11_LIBS to avoid the need to call pkg-config. 11514feee4651SmrgSee the pkg-config man page for more details." "$LINENO" 5 11515a0195d5fSmrgelif test $pkg_failed = untried; then 115160f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 115170f5b81e5Smrgprintf "%s\n" "no" >&6; } 115180f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 115190f5b81e5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 115202ab73d9fSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11521a0195d5fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 11522a0195d5fSmrgpath to pkg-config. 11523a0195d5fSmrg 11524a0195d5fSmrgAlternatively, you may set the environment variables SET_X11_CFLAGS 11525a0195d5fSmrgand SET_X11_LIBS to avoid the need to call pkg-config. 11526a0195d5fSmrgSee the pkg-config man page for more details. 11527a0195d5fSmrg 11528a0195d5fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 115292ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; } 11530a0195d5fSmrgelse 11531a0195d5fSmrg SET_X11_CFLAGS=$pkg_cv_SET_X11_CFLAGS 11532a0195d5fSmrg SET_X11_LIBS=$pkg_cv_SET_X11_LIBS 115330f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 115340f5b81e5Smrgprintf "%s\n" "yes" >&6; } 11535feee4651Smrg 11536a0195d5fSmrgfi 11537a0195d5fSmrg 11538a0195d5fSmrg 11539a0195d5fSmrgpkg_failed=no 115400f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SET_XEXT" >&5 115410f5b81e5Smrgprintf %s "checking for SET_XEXT... " >&6; } 11542a0195d5fSmrg 11543a0195d5fSmrgif test -n "$SET_XEXT_CFLAGS"; then 11544a0195d5fSmrg pkg_cv_SET_XEXT_CFLAGS="$SET_XEXT_CFLAGS" 11545a0195d5fSmrg elif test -n "$PKG_CONFIG"; then 11546a0195d5fSmrg if test -n "$PKG_CONFIG" && \ 115470f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 11548a0195d5fSmrg ($PKG_CONFIG --exists --print-errors "xext") 2>&5 11549a0195d5fSmrg ac_status=$? 115500f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 115516f5dd5c2Smrg test $ac_status = 0; }; then 11552a0195d5fSmrg pkg_cv_SET_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null` 11553feee4651Smrg test "x$?" != "x0" && pkg_failed=yes 11554a0195d5fSmrgelse 11555a0195d5fSmrg pkg_failed=yes 11556a0195d5fSmrgfi 11557a0195d5fSmrg else 11558a0195d5fSmrg pkg_failed=untried 11559a0195d5fSmrgfi 11560a0195d5fSmrgif test -n "$SET_XEXT_LIBS"; then 11561a0195d5fSmrg pkg_cv_SET_XEXT_LIBS="$SET_XEXT_LIBS" 11562a0195d5fSmrg elif test -n "$PKG_CONFIG"; then 11563a0195d5fSmrg if test -n "$PKG_CONFIG" && \ 115640f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 11565a0195d5fSmrg ($PKG_CONFIG --exists --print-errors "xext") 2>&5 11566a0195d5fSmrg ac_status=$? 115670f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 115686f5dd5c2Smrg test $ac_status = 0; }; then 11569a0195d5fSmrg pkg_cv_SET_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null` 11570feee4651Smrg test "x$?" != "x0" && pkg_failed=yes 11571a0195d5fSmrgelse 11572a0195d5fSmrg pkg_failed=yes 11573a0195d5fSmrgfi 11574a0195d5fSmrg else 11575a0195d5fSmrg pkg_failed=untried 11576a0195d5fSmrgfi 11577a0195d5fSmrg 11578a0195d5fSmrg 11579a0195d5fSmrg 11580a0195d5fSmrgif test $pkg_failed = yes; then 115810f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 115820f5b81e5Smrgprintf "%s\n" "no" >&6; } 11583a0195d5fSmrg 11584a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11585a0195d5fSmrg _pkg_short_errors_supported=yes 11586a0195d5fSmrgelse 11587a0195d5fSmrg _pkg_short_errors_supported=no 11588a0195d5fSmrgfi 11589a0195d5fSmrg if test $_pkg_short_errors_supported = yes; then 11590feee4651Smrg SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1` 11591a0195d5fSmrg else 11592feee4651Smrg SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1` 11593a0195d5fSmrg fi 11594a0195d5fSmrg # Put the nasty error message in config.log where it belongs 11595a0195d5fSmrg echo "$SET_XEXT_PKG_ERRORS" >&5 11596a0195d5fSmrg 11597feee4651Smrg echo "not found" 11598a0195d5fSmrgelif test $pkg_failed = untried; then 115990f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 116000f5b81e5Smrgprintf "%s\n" "no" >&6; } 11601a0195d5fSmrg echo "not found" 11602a0195d5fSmrgelse 11603a0195d5fSmrg SET_XEXT_CFLAGS=$pkg_cv_SET_XEXT_CFLAGS 11604a0195d5fSmrg SET_XEXT_LIBS=$pkg_cv_SET_XEXT_LIBS 116050f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 116060f5b81e5Smrgprintf "%s\n" "yes" >&6; } 11607a0195d5fSmrg SAVE_CPPFLAGS="$CPPFLAGS" 11608a0195d5fSmrg CPPFLAGS="$CPPFLAGS $SET_XEXT_CFLAGS $SET_X11_CFLAGS" 116090f5b81e5Smrg ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dpms.h" "ac_cv_header_X11_extensions_dpms_h" "#include <X11/Xlib.h> 116106f5dd5c2Smrg" 116110f5b81e5Smrgif test "x$ac_cv_header_X11_extensions_dpms_h" = xyes 116120f5b81e5Smrgthen : 116130f5b81e5Smrg printf "%s\n" "#define HAVE_X11_EXTENSIONS_DPMS_H 1" >>confdefs.h 11614a0195d5fSmrg 11615a0195d5fSmrgfi 116160f5b81e5Smrgac_fn_c_check_header_compile "$LINENO" "X11/extensions/MITMisc.h" "ac_cv_header_X11_extensions_MITMisc_h" "#include <X11/Xlib.h> 116170f5b81e5Smrg" 116180f5b81e5Smrgif test "x$ac_cv_header_X11_extensions_MITMisc_h" = xyes 116190f5b81e5Smrgthen : 116200f5b81e5Smrg printf "%s\n" "#define HAVE_X11_EXTENSIONS_MITMISC_H 1" >>confdefs.h 11621a0195d5fSmrg 116220f5b81e5Smrgfi 11623a0195d5fSmrg 11624a0195d5fSmrg CPPFLAGS="$SAVE_CPPFLAGS" 11625a0195d5fSmrgfi 11626a0195d5fSmrg 11627a0195d5fSmrg 11628a0195d5fSmrgpkg_failed=no 116290f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SET_XKB" >&5 116300f5b81e5Smrgprintf %s "checking for SET_XKB... " >&6; } 11631a0195d5fSmrg 11632a0195d5fSmrgif test -n "$SET_XKB_CFLAGS"; then 11633a0195d5fSmrg pkg_cv_SET_XKB_CFLAGS="$SET_XKB_CFLAGS" 11634a0195d5fSmrg elif test -n "$PKG_CONFIG"; then 11635a0195d5fSmrg if test -n "$PKG_CONFIG" && \ 116360f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 11637a0195d5fSmrg ($PKG_CONFIG --exists --print-errors "x11") 2>&5 11638a0195d5fSmrg ac_status=$? 116390f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 116406f5dd5c2Smrg test $ac_status = 0; }; then 11641a0195d5fSmrg pkg_cv_SET_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 11642feee4651Smrg test "x$?" != "x0" && pkg_failed=yes 11643a0195d5fSmrgelse 11644a0195d5fSmrg pkg_failed=yes 11645a0195d5fSmrgfi 11646a0195d5fSmrg else 11647a0195d5fSmrg pkg_failed=untried 11648a0195d5fSmrgfi 11649a0195d5fSmrgif test -n "$SET_XKB_LIBS"; then 11650a0195d5fSmrg pkg_cv_SET_XKB_LIBS="$SET_XKB_LIBS" 11651a0195d5fSmrg elif test -n "$PKG_CONFIG"; then 11652a0195d5fSmrg if test -n "$PKG_CONFIG" && \ 116530f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 11654a0195d5fSmrg ($PKG_CONFIG --exists --print-errors "x11") 2>&5 11655a0195d5fSmrg ac_status=$? 116560f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 116576f5dd5c2Smrg test $ac_status = 0; }; then 11658a0195d5fSmrg pkg_cv_SET_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 11659feee4651Smrg test "x$?" != "x0" && pkg_failed=yes 11660a0195d5fSmrgelse 11661a0195d5fSmrg pkg_failed=yes 11662a0195d5fSmrgfi 11663a0195d5fSmrg else 11664a0195d5fSmrg pkg_failed=untried 11665a0195d5fSmrgfi 11666a0195d5fSmrg 11667a0195d5fSmrg 11668a0195d5fSmrg 11669a0195d5fSmrgif test $pkg_failed = yes; then 116700f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 116710f5b81e5Smrgprintf "%s\n" "no" >&6; } 11672a0195d5fSmrg 11673a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11674a0195d5fSmrg _pkg_short_errors_supported=yes 11675a0195d5fSmrgelse 11676a0195d5fSmrg _pkg_short_errors_supported=no 11677a0195d5fSmrgfi 11678a0195d5fSmrg if test $_pkg_short_errors_supported = yes; then 11679feee4651Smrg SET_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 11680a0195d5fSmrg else 11681feee4651Smrg SET_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 11682a0195d5fSmrg fi 11683a0195d5fSmrg # Put the nasty error message in config.log where it belongs 11684a0195d5fSmrg echo "$SET_XKB_PKG_ERRORS" >&5 11685a0195d5fSmrg 11686feee4651Smrg echo "not found" 11687a0195d5fSmrgelif test $pkg_failed = untried; then 116880f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 116890f5b81e5Smrgprintf "%s\n" "no" >&6; } 11690a0195d5fSmrg echo "not found" 11691a0195d5fSmrgelse 11692a0195d5fSmrg SET_XKB_CFLAGS=$pkg_cv_SET_XKB_CFLAGS 11693a0195d5fSmrg SET_XKB_LIBS=$pkg_cv_SET_XKB_LIBS 116940f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 116950f5b81e5Smrgprintf "%s\n" "yes" >&6; } 11696a0195d5fSmrg SAVE_CPPFLAGS="$CPPFLAGS" 11697a0195d5fSmrg CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS" 116980f5b81e5Smrg ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h> 116996f5dd5c2Smrg" 117000f5b81e5Smrgif test "x$ac_cv_header_X11_XKBlib_h" = xyes 117010f5b81e5Smrgthen : 117020f5b81e5Smrg printf "%s\n" "#define HAVE_X11_XKBLIB_H 1" >>confdefs.h 11703a0195d5fSmrg 11704a0195d5fSmrgfi 11705a0195d5fSmrg 11706a0195d5fSmrg CPPFLAGS="$SAVE_CPPFLAGS" 11707a0195d5fSmrgfi 11708a0195d5fSmrg 11709a0195d5fSmrg 117106f5dd5c2Smrg# Check whether --with-xf86misc was given. 117110f5b81e5Smrgif test ${with_xf86misc+y} 117120f5b81e5Smrgthen : 117136f5dd5c2Smrg withval=$with_xf86misc; USE_XF86MISC="$withval" 117140f5b81e5Smrgelse $as_nop 117150f5b81e5Smrg USE_XF86MISC="no" 117166f5dd5c2Smrgfi 117176f5dd5c2Smrg 117186f5dd5c2Smrgif test "x$USE_XF86MISC" != "xno" ; then 117196f5dd5c2Smrg 11720a0195d5fSmrgpkg_failed=no 117210f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SET_XF86MISC" >&5 117220f5b81e5Smrgprintf %s "checking for SET_XF86MISC... " >&6; } 11723a0195d5fSmrg 11724a0195d5fSmrgif test -n "$SET_XF86MISC_CFLAGS"; then 11725a0195d5fSmrg pkg_cv_SET_XF86MISC_CFLAGS="$SET_XF86MISC_CFLAGS" 11726a0195d5fSmrg elif test -n "$PKG_CONFIG"; then 11727a0195d5fSmrg if test -n "$PKG_CONFIG" && \ 117280f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5 11729a0195d5fSmrg ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5 11730a0195d5fSmrg ac_status=$? 117310f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 117326f5dd5c2Smrg test $ac_status = 0; }; then 11733a0195d5fSmrg pkg_cv_SET_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null` 11734feee4651Smrg test "x$?" != "x0" && pkg_failed=yes 11735a0195d5fSmrgelse 11736a0195d5fSmrg pkg_failed=yes 11737a0195d5fSmrgfi 11738a0195d5fSmrg else 11739a0195d5fSmrg pkg_failed=untried 11740a0195d5fSmrgfi 11741a0195d5fSmrgif test -n "$SET_XF86MISC_LIBS"; then 11742a0195d5fSmrg pkg_cv_SET_XF86MISC_LIBS="$SET_XF86MISC_LIBS" 11743a0195d5fSmrg elif test -n "$PKG_CONFIG"; then 11744a0195d5fSmrg if test -n "$PKG_CONFIG" && \ 117450f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5 11746a0195d5fSmrg ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5 11747a0195d5fSmrg ac_status=$? 117480f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 117496f5dd5c2Smrg test $ac_status = 0; }; then 11750a0195d5fSmrg pkg_cv_SET_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null` 11751feee4651Smrg test "x$?" != "x0" && pkg_failed=yes 11752a0195d5fSmrgelse 11753a0195d5fSmrg pkg_failed=yes 11754a0195d5fSmrgfi 11755a0195d5fSmrg else 11756a0195d5fSmrg pkg_failed=untried 11757a0195d5fSmrgfi 11758a0195d5fSmrg 11759a0195d5fSmrg 11760a0195d5fSmrg 11761a0195d5fSmrgif test $pkg_failed = yes; then 117620f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 117630f5b81e5Smrgprintf "%s\n" "no" >&6; } 11764a0195d5fSmrg 11765a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11766a0195d5fSmrg _pkg_short_errors_supported=yes 11767a0195d5fSmrgelse 11768a0195d5fSmrg _pkg_short_errors_supported=no 11769a0195d5fSmrgfi 11770a0195d5fSmrg if test $_pkg_short_errors_supported = yes; then 11771feee4651Smrg SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86misc" 2>&1` 11772a0195d5fSmrg else 11773feee4651Smrg SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86misc" 2>&1` 11774a0195d5fSmrg fi 11775a0195d5fSmrg # Put the nasty error message in config.log where it belongs 11776a0195d5fSmrg echo "$SET_XF86MISC_PKG_ERRORS" >&5 11777a0195d5fSmrg 11778feee4651Smrg echo "not found" 11779a0195d5fSmrgelif test $pkg_failed = untried; then 117800f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 117810f5b81e5Smrgprintf "%s\n" "no" >&6; } 11782a0195d5fSmrg echo "not found" 11783a0195d5fSmrgelse 11784a0195d5fSmrg SET_XF86MISC_CFLAGS=$pkg_cv_SET_XF86MISC_CFLAGS 11785a0195d5fSmrg SET_XF86MISC_LIBS=$pkg_cv_SET_XF86MISC_LIBS 117860f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 117870f5b81e5Smrgprintf "%s\n" "yes" >&6; } 11788a0195d5fSmrg SAVE_CPPFLAGS="$CPPFLAGS" 117896f5dd5c2Smrg CPPFLAGS="$CPPFLAGS $SET_XF86MISC_CFLAGS $SET_X11_CFLAGS" 117900f5b81e5Smrg ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86misc.h" "ac_cv_header_X11_extensions_xf86misc_h" "#include <X11/Xlib.h> 11791a0195d5fSmrg#include <X11/Xproto.h> 117926f5dd5c2Smrg" 117930f5b81e5Smrgif test "x$ac_cv_header_X11_extensions_xf86misc_h" = xyes 117940f5b81e5Smrgthen : 117950f5b81e5Smrg printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86MISC_H 1" >>confdefs.h 11796a0195d5fSmrg 11797a0195d5fSmrgfi 117980f5b81e5Smrgac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86mscstr.h" "ac_cv_header_X11_extensions_xf86mscstr_h" "#include <X11/Xlib.h> 117990f5b81e5Smrg#include <X11/Xproto.h> 118000f5b81e5Smrg" 118010f5b81e5Smrgif test "x$ac_cv_header_X11_extensions_xf86mscstr_h" = xyes 118020f5b81e5Smrgthen : 118030f5b81e5Smrg printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86MSCSTR_H 1" >>confdefs.h 11804a0195d5fSmrg 118050f5b81e5Smrgfi 11806a0195d5fSmrg 118076f5dd5c2Smrg CPPFLAGS="$SAVE_CPPFLAGS" 118086f5dd5c2Smrgfi 118096f5dd5c2Smrgelse 118106f5dd5c2Smrg echo "without xf86misc" 118116f5dd5c2Smrgfi 118126f5dd5c2Smrg 118136f5dd5c2Smrg 118146f5dd5c2Smrg# Check whether --with-fontcache was given. 118150f5b81e5Smrgif test ${with_fontcache+y} 118160f5b81e5Smrgthen : 118176f5dd5c2Smrg withval=$with_fontcache; USE_XFONTCACHE="$withval" 118180f5b81e5Smrgelse $as_nop 118196f5dd5c2Smrg USE_XFONTCACHE="yes" 11820a0195d5fSmrgfi 11821a0195d5fSmrg 118226f5dd5c2Smrgif test "x$USE_XFONTCACHE" != "xno" ; then 11823a0195d5fSmrg 11824a0195d5fSmrgpkg_failed=no 118250f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SET_FONTCACHE" >&5 118260f5b81e5Smrgprintf %s "checking for SET_FONTCACHE... " >&6; } 11827a0195d5fSmrg 11828a0195d5fSmrgif test -n "$SET_FONTCACHE_CFLAGS"; then 11829a0195d5fSmrg pkg_cv_SET_FONTCACHE_CFLAGS="$SET_FONTCACHE_CFLAGS" 11830a0195d5fSmrg elif test -n "$PKG_CONFIG"; then 11831a0195d5fSmrg if test -n "$PKG_CONFIG" && \ 118320f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5 11833a0195d5fSmrg ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5 11834a0195d5fSmrg ac_status=$? 118350f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 118366f5dd5c2Smrg test $ac_status = 0; }; then 11837a0195d5fSmrg pkg_cv_SET_FONTCACHE_CFLAGS=`$PKG_CONFIG --cflags "xfontcache" 2>/dev/null` 11838feee4651Smrg test "x$?" != "x0" && pkg_failed=yes 11839a0195d5fSmrgelse 11840a0195d5fSmrg pkg_failed=yes 11841a0195d5fSmrgfi 11842a0195d5fSmrg else 11843a0195d5fSmrg pkg_failed=untried 11844a0195d5fSmrgfi 11845a0195d5fSmrgif test -n "$SET_FONTCACHE_LIBS"; then 11846a0195d5fSmrg pkg_cv_SET_FONTCACHE_LIBS="$SET_FONTCACHE_LIBS" 11847a0195d5fSmrg elif test -n "$PKG_CONFIG"; then 11848a0195d5fSmrg if test -n "$PKG_CONFIG" && \ 118490f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5 11850a0195d5fSmrg ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5 11851a0195d5fSmrg ac_status=$? 118520f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 118536f5dd5c2Smrg test $ac_status = 0; }; then 118546f5dd5c2Smrg pkg_cv_SET_FONTCACHE_LIBS=`$PKG_CONFIG --libs "xfontcache" 2>/dev/null` 11855feee4651Smrg test "x$?" != "x0" && pkg_failed=yes 118566600fe5bSmrgelse 118576600fe5bSmrg pkg_failed=yes 118586600fe5bSmrgfi 118596600fe5bSmrg else 118606600fe5bSmrg pkg_failed=untried 118616600fe5bSmrgfi 11862a0195d5fSmrg 11863a0195d5fSmrg 11864a0195d5fSmrg 118656600fe5bSmrgif test $pkg_failed = yes; then 118660f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 118670f5b81e5Smrgprintf "%s\n" "no" >&6; } 11868a0195d5fSmrg 118696600fe5bSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 118706600fe5bSmrg _pkg_short_errors_supported=yes 118716600fe5bSmrgelse 118726600fe5bSmrg _pkg_short_errors_supported=no 118736600fe5bSmrgfi 118746600fe5bSmrg if test $_pkg_short_errors_supported = yes; then 11875feee4651Smrg SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfontcache" 2>&1` 118766600fe5bSmrg else 11877feee4651Smrg SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfontcache" 2>&1` 118786600fe5bSmrg fi 118796600fe5bSmrg # Put the nasty error message in config.log where it belongs 118806f5dd5c2Smrg echo "$SET_FONTCACHE_PKG_ERRORS" >&5 11881a0195d5fSmrg 11882feee4651Smrg echo "not found" 118836600fe5bSmrgelif test $pkg_failed = untried; then 118840f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 118850f5b81e5Smrgprintf "%s\n" "no" >&6; } 118866600fe5bSmrg echo "not found" 118876600fe5bSmrgelse 118886f5dd5c2Smrg SET_FONTCACHE_CFLAGS=$pkg_cv_SET_FONTCACHE_CFLAGS 118896f5dd5c2Smrg SET_FONTCACHE_LIBS=$pkg_cv_SET_FONTCACHE_LIBS 118900f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 118910f5b81e5Smrgprintf "%s\n" "yes" >&6; } 118926600fe5bSmrg SAVE_CPPFLAGS="$CPPFLAGS" 118936f5dd5c2Smrg CPPFLAGS="$CPPFLAGS $SET_FONTCACHE_CFLAGS $SET_X11_CFLAGS" 118940f5b81e5Smrg ac_fn_c_check_header_compile "$LINENO" "X11/extensions/fontcache.h" "ac_cv_header_X11_extensions_fontcache_h" "#include <X11/Xlib.h> 118956f5dd5c2Smrg" 118960f5b81e5Smrgif test "x$ac_cv_header_X11_extensions_fontcache_h" = xyes 118970f5b81e5Smrgthen : 118980f5b81e5Smrg printf "%s\n" "#define HAVE_X11_EXTENSIONS_FONTCACHE_H 1" >>confdefs.h 11899a0195d5fSmrg 119006600fe5bSmrgfi 119010f5b81e5Smrgac_fn_c_check_header_compile "$LINENO" "X11/extensions/fontcacheP.h" "ac_cv_header_X11_extensions_fontcacheP_h" "#include <X11/Xlib.h> 119020f5b81e5Smrg" 119030f5b81e5Smrgif test "x$ac_cv_header_X11_extensions_fontcacheP_h" = xyes 119040f5b81e5Smrgthen : 119050f5b81e5Smrg printf "%s\n" "#define HAVE_X11_EXTENSIONS_FONTCACHEP_H 1" >>confdefs.h 11906a0195d5fSmrg 119070f5b81e5Smrgfi 11908a0195d5fSmrg 119096f5dd5c2Smrg CPPFLAGS="$SAVE_CPPFLAGS" 119106f5dd5c2Smrgfi 119116f5dd5c2Smrgelse 119126f5dd5c2Smrg echo "without fontcache" 119136600fe5bSmrgfi 119146600fe5bSmrg 119156f5dd5c2SmrgXSET_CFLAGS="$XSET_CFLAGS $SET_XEXT_CFLAGS $SET_XKB_CFLAGS $SET_XF86MISC_CFLAGS $SET_FONTCACHE_CFLAGS" 119166f5dd5c2SmrgXSET_LIBS="$XSET_LIBS $SET_XEXT_LIBS $SET_XKB_LIBS $SET_XF86MISC_LIBS $SET_FONTCACHE_LIBS" 11917a0195d5fSmrg 11918a0195d5fSmrg 11919ff6cf368Smrgac_config_files="$ac_config_files Makefile man/Makefile" 11920a0195d5fSmrg 11921a0195d5fSmrgcat >confcache <<\_ACEOF 11922a0195d5fSmrg# This file is a shell script that caches the results of configure 11923a0195d5fSmrg# tests run on this system so they can be shared between configure 11924a0195d5fSmrg# scripts and configure runs, see configure's option --config-cache. 11925a0195d5fSmrg# It is not useful on other systems. If it contains results you don't 11926a0195d5fSmrg# want to keep, you may remove or edit it. 11927a0195d5fSmrg# 11928a0195d5fSmrg# config.status only pays attention to the cache file if you give it 11929a0195d5fSmrg# the --recheck option to rerun configure. 11930a0195d5fSmrg# 11931a0195d5fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 11932a0195d5fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 11933a0195d5fSmrg# following values. 11934a0195d5fSmrg 11935a0195d5fSmrg_ACEOF 11936a0195d5fSmrg 11937a0195d5fSmrg# The following way of writing the cache mishandles newlines in values, 11938a0195d5fSmrg# but we know of no workaround that is simple, portable, and efficient. 11939a0195d5fSmrg# So, we kill variables containing newlines. 11940a0195d5fSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 11941a0195d5fSmrg# and sets the high bit in the cache file unless we assign to the vars. 11942a0195d5fSmrg( 11943a0195d5fSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11944a0195d5fSmrg eval ac_val=\$$ac_var 11945a0195d5fSmrg case $ac_val in #( 11946a0195d5fSmrg *${as_nl}*) 11947a0195d5fSmrg case $ac_var in #( 119480f5b81e5Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 119490f5b81e5Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11950a0195d5fSmrg esac 11951a0195d5fSmrg case $ac_var in #( 11952a0195d5fSmrg _ | IFS | as_nl) ;; #( 119536600fe5bSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 119546f5dd5c2Smrg *) { eval $ac_var=; unset $ac_var;} ;; 11955a0195d5fSmrg esac ;; 11956a0195d5fSmrg esac 11957a0195d5fSmrg done 11958a0195d5fSmrg 11959a0195d5fSmrg (set) 2>&1 | 11960a0195d5fSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 11961a0195d5fSmrg *${as_nl}ac_space=\ *) 119626f5dd5c2Smrg # `set' does not quote correctly, so add quotes: double-quote 119636f5dd5c2Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 11964a0195d5fSmrg sed -n \ 11965a0195d5fSmrg "s/'/'\\\\''/g; 11966a0195d5fSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11967a0195d5fSmrg ;; #( 11968a0195d5fSmrg *) 11969a0195d5fSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 11970a0195d5fSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11971a0195d5fSmrg ;; 11972a0195d5fSmrg esac | 11973a0195d5fSmrg sort 11974a0195d5fSmrg) | 11975a0195d5fSmrg sed ' 11976a0195d5fSmrg /^ac_cv_env_/b end 11977a0195d5fSmrg t clear 11978a0195d5fSmrg :clear 119790f5b81e5Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11980a0195d5fSmrg t end 11981a0195d5fSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11982a0195d5fSmrg :end' >>confcache 11983a0195d5fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11984a0195d5fSmrg if test -w "$cache_file"; then 119852ab73d9fSmrg if test "x$cache_file" != "x/dev/null"; then 119860f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 119870f5b81e5Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;} 119882ab73d9fSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 119892ab73d9fSmrg cat confcache >"$cache_file" 119902ab73d9fSmrg else 119912ab73d9fSmrg case $cache_file in #( 119922ab73d9fSmrg */* | ?:*) 119932ab73d9fSmrg mv -f confcache "$cache_file"$$ && 119942ab73d9fSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 119952ab73d9fSmrg *) 119962ab73d9fSmrg mv -f confcache "$cache_file" ;; 119972ab73d9fSmrg esac 119982ab73d9fSmrg fi 119992ab73d9fSmrg fi 12000a0195d5fSmrg else 120010f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 120020f5b81e5Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12003a0195d5fSmrg fi 12004a0195d5fSmrgfi 12005a0195d5fSmrgrm -f confcache 12006a0195d5fSmrg 12007a0195d5fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 12008a0195d5fSmrg# Let make expand exec_prefix. 12009a0195d5fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12010a0195d5fSmrg 12011a0195d5fSmrgDEFS=-DHAVE_CONFIG_H 12012a0195d5fSmrg 12013a0195d5fSmrgac_libobjs= 12014a0195d5fSmrgac_ltlibobjs= 120152ab73d9fSmrgU= 12016a0195d5fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12017a0195d5fSmrg # 1. Remove the extension, and $U if already installed. 12018a0195d5fSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 120190f5b81e5Smrg ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12020a0195d5fSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12021a0195d5fSmrg # will be set to the directory where LIBOBJS objects are built. 120226f5dd5c2Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 120236f5dd5c2Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12024a0195d5fSmrgdone 12025a0195d5fSmrgLIBOBJS=$ac_libobjs 12026a0195d5fSmrg 12027a0195d5fSmrgLTLIBOBJS=$ac_ltlibobjs 12028a0195d5fSmrg 12029a0195d5fSmrg 120300f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 120310f5b81e5Smrgprintf %s "checking that generated files are newer than configure... " >&6; } 1203240a76396Smrg if test -n "$am_sleep_pid"; then 1203340a76396Smrg # Hide warnings about reused PIDs. 1203440a76396Smrg wait $am_sleep_pid 2>/dev/null 1203540a76396Smrg fi 120360f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 120370f5b81e5Smrgprintf "%s\n" "done" >&6; } 1203840a76396Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 1203940a76396Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 1204040a76396SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1204140a76396Smrgfi 1204240a76396Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 1204340a76396Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 1204440a76396SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1204540a76396Smrgfi 120466600fe5bSmrg if test -n "$EXEEXT"; then 120476600fe5bSmrg am__EXEEXT_TRUE= 120486600fe5bSmrg am__EXEEXT_FALSE='#' 120496600fe5bSmrgelse 120506600fe5bSmrg am__EXEEXT_TRUE='#' 120516600fe5bSmrg am__EXEEXT_FALSE= 120526600fe5bSmrgfi 120536600fe5bSmrg 12054a0195d5fSmrg 120552ab73d9fSmrg: "${CONFIG_STATUS=./config.status}" 120566600fe5bSmrgac_write_fail=0 12057a0195d5fSmrgac_clean_files_save=$ac_clean_files 12058a0195d5fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 120590f5b81e5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 120600f5b81e5Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 120616f5dd5c2Smrgas_write_fail=0 120626f5dd5c2Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12063a0195d5fSmrg#! $SHELL 12064a0195d5fSmrg# Generated by $as_me. 12065a0195d5fSmrg# Run this file to recreate the current configuration. 12066a0195d5fSmrg# Compiler output produced by configure, useful for debugging 12067a0195d5fSmrg# configure, is in config.log if it exists. 12068a0195d5fSmrg 12069a0195d5fSmrgdebug=false 12070a0195d5fSmrgac_cs_recheck=false 12071a0195d5fSmrgac_cs_silent=false 12072a0195d5fSmrg 120736f5dd5c2SmrgSHELL=\${CONFIG_SHELL-$SHELL} 120746f5dd5c2Smrgexport SHELL 120756f5dd5c2Smrg_ASEOF 120766f5dd5c2Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 120776f5dd5c2Smrg## -------------------- ## 120786f5dd5c2Smrg## M4sh Initialization. ## 120796f5dd5c2Smrg## -------------------- ## 12080a0195d5fSmrg 12081a0195d5fSmrg# Be more Bourne compatible 12082a0195d5fSmrgDUALCASE=1; export DUALCASE # for MKS sh 120830f5b81e5Smrgas_nop=: 120840f5b81e5Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 120850f5b81e5Smrgthen : 12086a0195d5fSmrg emulate sh 12087a0195d5fSmrg NULLCMD=: 120886600fe5bSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12089a0195d5fSmrg # is contrary to our usage. Disable this feature. 12090a0195d5fSmrg alias -g '${1+"$@"}'='"$@"' 12091a0195d5fSmrg setopt NO_GLOB_SUBST 120920f5b81e5Smrgelse $as_nop 120936f5dd5c2Smrg case `(set -o) 2>/dev/null` in #( 120946f5dd5c2Smrg *posix*) : 120956f5dd5c2Smrg set -o posix ;; #( 120966f5dd5c2Smrg *) : 120976f5dd5c2Smrg ;; 12098a0195d5fSmrgesac 12099a0195d5fSmrgfi 12100a0195d5fSmrg 12101a0195d5fSmrg 121020f5b81e5Smrg 121030f5b81e5Smrg# Reset variables that may have inherited troublesome values from 121040f5b81e5Smrg# the environment. 121050f5b81e5Smrg 121060f5b81e5Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 121070f5b81e5Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 121080f5b81e5Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 121090f5b81e5Smrg# Quoting is to prevent editors from complaining about space-tab. 121106600fe5bSmrgas_nl=' 121116600fe5bSmrg' 121126600fe5bSmrgexport as_nl 121130f5b81e5SmrgIFS=" "" $as_nl" 121140f5b81e5Smrg 121150f5b81e5SmrgPS1='$ ' 121160f5b81e5SmrgPS2='> ' 121170f5b81e5SmrgPS4='+ ' 121180f5b81e5Smrg 121190f5b81e5Smrg# Ensure predictable behavior from utilities with locale-dependent output. 121200f5b81e5SmrgLC_ALL=C 121210f5b81e5Smrgexport LC_ALL 121220f5b81e5SmrgLANGUAGE=C 121230f5b81e5Smrgexport LANGUAGE 121240f5b81e5Smrg 121250f5b81e5Smrg# We cannot yet rely on "unset" to work, but we need these variables 121260f5b81e5Smrg# to be unset--not just set to an empty or harmless value--now, to 121270f5b81e5Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 121280f5b81e5Smrg# also avoids known problems related to "unset" and subshell syntax 121290f5b81e5Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 121300f5b81e5Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 121310f5b81e5Smrgdo eval test \${$as_var+y} \ 121320f5b81e5Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121330f5b81e5Smrgdone 121340f5b81e5Smrg 121350f5b81e5Smrg# Ensure that fds 0, 1, and 2 are open. 121360f5b81e5Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 121370f5b81e5Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 121380f5b81e5Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 121396600fe5bSmrg 121406600fe5bSmrg# The user is always right. 121410f5b81e5Smrgif ${PATH_SEPARATOR+false} :; then 121426600fe5bSmrg PATH_SEPARATOR=: 121436600fe5bSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 121446600fe5bSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 121456600fe5bSmrg PATH_SEPARATOR=';' 121466600fe5bSmrg } 12147a0195d5fSmrgfi 12148a0195d5fSmrg 12149a0195d5fSmrg 12150a0195d5fSmrg# Find who we are. Look in the path if we contain no directory separator. 121512ab73d9fSmrgas_myself= 121526f5dd5c2Smrgcase $0 in #(( 12153a0195d5fSmrg *[\\/]* ) as_myself=$0 ;; 12154a0195d5fSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12155a0195d5fSmrgfor as_dir in $PATH 12156a0195d5fSmrgdo 12157a0195d5fSmrg IFS=$as_save_IFS 121580f5b81e5Smrg case $as_dir in #((( 121590f5b81e5Smrg '') as_dir=./ ;; 121600f5b81e5Smrg */) ;; 121610f5b81e5Smrg *) as_dir=$as_dir/ ;; 121620f5b81e5Smrg esac 121630f5b81e5Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 121646f5dd5c2Smrg done 12165a0195d5fSmrgIFS=$as_save_IFS 12166a0195d5fSmrg 12167a0195d5fSmrg ;; 12168a0195d5fSmrgesac 12169a0195d5fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 12170a0195d5fSmrg# in which case we are not to be found in the path. 12171a0195d5fSmrgif test "x$as_myself" = x; then 12172a0195d5fSmrg as_myself=$0 12173a0195d5fSmrgfi 12174a0195d5fSmrgif test ! -f "$as_myself"; then 121750f5b81e5Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 121766f5dd5c2Smrg exit 1 12177a0195d5fSmrgfi 12178a0195d5fSmrg 121796f5dd5c2Smrg 121806f5dd5c2Smrg 121812ab73d9fSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 121822ab73d9fSmrg# ---------------------------------------- 121836f5dd5c2Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 121846f5dd5c2Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 121852ab73d9fSmrg# script with STATUS, using 1 if that was 0. 121866f5dd5c2Smrgas_fn_error () 121876f5dd5c2Smrg{ 121882ab73d9fSmrg as_status=$1; test $as_status -eq 0 && as_status=1 121892ab73d9fSmrg if test "$4"; then 121902ab73d9fSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 121910f5b81e5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 121926f5dd5c2Smrg fi 121930f5b81e5Smrg printf "%s\n" "$as_me: error: $2" >&2 121946f5dd5c2Smrg as_fn_exit $as_status 121956f5dd5c2Smrg} # as_fn_error 121966f5dd5c2Smrg 121976f5dd5c2Smrg 121980f5b81e5Smrg 121996f5dd5c2Smrg# as_fn_set_status STATUS 122006f5dd5c2Smrg# ----------------------- 122016f5dd5c2Smrg# Set $? to STATUS, without forking. 122026f5dd5c2Smrgas_fn_set_status () 122036f5dd5c2Smrg{ 122046f5dd5c2Smrg return $1 122056f5dd5c2Smrg} # as_fn_set_status 122066f5dd5c2Smrg 122076f5dd5c2Smrg# as_fn_exit STATUS 122086f5dd5c2Smrg# ----------------- 122096f5dd5c2Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 122106f5dd5c2Smrgas_fn_exit () 122116f5dd5c2Smrg{ 122126f5dd5c2Smrg set +e 122136f5dd5c2Smrg as_fn_set_status $1 122146f5dd5c2Smrg exit $1 122156f5dd5c2Smrg} # as_fn_exit 122166f5dd5c2Smrg 122176f5dd5c2Smrg# as_fn_unset VAR 122186f5dd5c2Smrg# --------------- 122196f5dd5c2Smrg# Portably unset VAR. 122206f5dd5c2Smrgas_fn_unset () 122216f5dd5c2Smrg{ 122226f5dd5c2Smrg { eval $1=; unset $1;} 122236f5dd5c2Smrg} 122246f5dd5c2Smrgas_unset=as_fn_unset 122250f5b81e5Smrg 122266f5dd5c2Smrg# as_fn_append VAR VALUE 122276f5dd5c2Smrg# ---------------------- 122286f5dd5c2Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 122296f5dd5c2Smrg# advantage of any shell optimizations that allow amortized linear growth over 122306f5dd5c2Smrg# repeated appends, instead of the typical quadratic growth present in naive 122316f5dd5c2Smrg# implementations. 122320f5b81e5Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 122330f5b81e5Smrgthen : 122346f5dd5c2Smrg eval 'as_fn_append () 122356f5dd5c2Smrg { 122366f5dd5c2Smrg eval $1+=\$2 122376f5dd5c2Smrg }' 122380f5b81e5Smrgelse $as_nop 122396f5dd5c2Smrg as_fn_append () 122406f5dd5c2Smrg { 122416f5dd5c2Smrg eval $1=\$$1\$2 122426f5dd5c2Smrg } 122436f5dd5c2Smrgfi # as_fn_append 122446f5dd5c2Smrg 122456f5dd5c2Smrg# as_fn_arith ARG... 122466f5dd5c2Smrg# ------------------ 122476f5dd5c2Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 122486f5dd5c2Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 122496f5dd5c2Smrg# must be portable across $(()) and expr. 122500f5b81e5Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 122510f5b81e5Smrgthen : 122526f5dd5c2Smrg eval 'as_fn_arith () 122536f5dd5c2Smrg { 122546f5dd5c2Smrg as_val=$(( $* )) 122556f5dd5c2Smrg }' 122560f5b81e5Smrgelse $as_nop 122576f5dd5c2Smrg as_fn_arith () 122586f5dd5c2Smrg { 122596f5dd5c2Smrg as_val=`expr "$@" || test $? -eq 1` 122606f5dd5c2Smrg } 122616f5dd5c2Smrgfi # as_fn_arith 122626f5dd5c2Smrg 122636f5dd5c2Smrg 12264a0195d5fSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 12265a0195d5fSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 12266a0195d5fSmrg as_expr=expr 12267a0195d5fSmrgelse 12268a0195d5fSmrg as_expr=false 12269a0195d5fSmrgfi 12270a0195d5fSmrg 12271a0195d5fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12272a0195d5fSmrg as_basename=basename 12273a0195d5fSmrgelse 12274a0195d5fSmrg as_basename=false 12275a0195d5fSmrgfi 12276a0195d5fSmrg 122776f5dd5c2Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 122786f5dd5c2Smrg as_dirname=dirname 122796f5dd5c2Smrgelse 122806f5dd5c2Smrg as_dirname=false 122816f5dd5c2Smrgfi 12282a0195d5fSmrg 12283a0195d5fSmrgas_me=`$as_basename -- "$0" || 12284a0195d5fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12285a0195d5fSmrg X"$0" : 'X\(//\)$' \| \ 12286a0195d5fSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 122870f5b81e5Smrgprintf "%s\n" X/"$0" | 12288a0195d5fSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 12289a0195d5fSmrg s//\1/ 12290a0195d5fSmrg q 12291a0195d5fSmrg } 12292a0195d5fSmrg /^X\/\(\/\/\)$/{ 12293a0195d5fSmrg s//\1/ 12294a0195d5fSmrg q 12295a0195d5fSmrg } 12296a0195d5fSmrg /^X\/\(\/\).*/{ 12297a0195d5fSmrg s//\1/ 12298a0195d5fSmrg q 12299a0195d5fSmrg } 12300a0195d5fSmrg s/.*/./; q'` 12301a0195d5fSmrg 123026f5dd5c2Smrg# Avoid depending upon Character Ranges. 123036f5dd5c2Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 123046f5dd5c2Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 123056f5dd5c2Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 123066f5dd5c2Smrgas_cr_digits='0123456789' 123076f5dd5c2Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 12308a0195d5fSmrg 123090f5b81e5Smrg 123100f5b81e5Smrg# Determine whether it's possible to make 'echo' print without a newline. 123110f5b81e5Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 123120f5b81e5Smrg# for compatibility with existing Makefiles. 12313a0195d5fSmrgECHO_C= ECHO_N= ECHO_T= 123146f5dd5c2Smrgcase `echo -n x` in #((((( 12315a0195d5fSmrg-n*) 123166f5dd5c2Smrg case `echo 'xy\c'` in 12317a0195d5fSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 123186f5dd5c2Smrg xy) ECHO_C='\c';; 123196f5dd5c2Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 123206f5dd5c2Smrg ECHO_T=' ';; 12321a0195d5fSmrg esac;; 12322a0195d5fSmrg*) 12323a0195d5fSmrg ECHO_N='-n';; 12324a0195d5fSmrgesac 12325a0195d5fSmrg 123260f5b81e5Smrg# For backward compatibility with old third-party macros, we provide 123270f5b81e5Smrg# the shell variables $as_echo and $as_echo_n. New code should use 123280f5b81e5Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 123290f5b81e5Smrgas_echo='printf %s\n' 123300f5b81e5Smrgas_echo_n='printf %s' 123310f5b81e5Smrg 12332a0195d5fSmrgrm -f conf$$ conf$$.exe conf$$.file 12333a0195d5fSmrgif test -d conf$$.dir; then 12334a0195d5fSmrg rm -f conf$$.dir/conf$$.file 12335a0195d5fSmrgelse 12336a0195d5fSmrg rm -f conf$$.dir 123376600fe5bSmrg mkdir conf$$.dir 2>/dev/null 123386600fe5bSmrgfi 123396600fe5bSmrgif (echo >conf$$.file) 2>/dev/null; then 123406600fe5bSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 123416600fe5bSmrg as_ln_s='ln -s' 123426600fe5bSmrg # ... but there are two gotchas: 123436600fe5bSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 123446600fe5bSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12345feee4651Smrg # In both cases, we have to default to `cp -pR'. 123466600fe5bSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12347feee4651Smrg as_ln_s='cp -pR' 123486600fe5bSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 123496600fe5bSmrg as_ln_s=ln 123506600fe5bSmrg else 12351feee4651Smrg as_ln_s='cp -pR' 123526600fe5bSmrg fi 12353a0195d5fSmrgelse 12354feee4651Smrg as_ln_s='cp -pR' 12355a0195d5fSmrgfi 12356a0195d5fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12357a0195d5fSmrgrmdir conf$$.dir 2>/dev/null 12358a0195d5fSmrg 123596f5dd5c2Smrg 123606f5dd5c2Smrg# as_fn_mkdir_p 123616f5dd5c2Smrg# ------------- 123626f5dd5c2Smrg# Create "$as_dir" as a directory, including parents if necessary. 123636f5dd5c2Smrgas_fn_mkdir_p () 123646f5dd5c2Smrg{ 123656f5dd5c2Smrg 123666f5dd5c2Smrg case $as_dir in #( 123676f5dd5c2Smrg -*) as_dir=./$as_dir;; 123686f5dd5c2Smrg esac 123696f5dd5c2Smrg test -d "$as_dir" || eval $as_mkdir_p || { 123706f5dd5c2Smrg as_dirs= 123716f5dd5c2Smrg while :; do 123726f5dd5c2Smrg case $as_dir in #( 123730f5b81e5Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 123746f5dd5c2Smrg *) as_qdir=$as_dir;; 123756f5dd5c2Smrg esac 123766f5dd5c2Smrg as_dirs="'$as_qdir' $as_dirs" 123776f5dd5c2Smrg as_dir=`$as_dirname -- "$as_dir" || 123786f5dd5c2Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 123796f5dd5c2Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 123806f5dd5c2Smrg X"$as_dir" : 'X\(//\)$' \| \ 123816f5dd5c2Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 123820f5b81e5Smrgprintf "%s\n" X"$as_dir" | 123836f5dd5c2Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 123846f5dd5c2Smrg s//\1/ 123856f5dd5c2Smrg q 123866f5dd5c2Smrg } 123876f5dd5c2Smrg /^X\(\/\/\)[^/].*/{ 123886f5dd5c2Smrg s//\1/ 123896f5dd5c2Smrg q 123906f5dd5c2Smrg } 123916f5dd5c2Smrg /^X\(\/\/\)$/{ 123926f5dd5c2Smrg s//\1/ 123936f5dd5c2Smrg q 123946f5dd5c2Smrg } 123956f5dd5c2Smrg /^X\(\/\).*/{ 123966f5dd5c2Smrg s//\1/ 123976f5dd5c2Smrg q 123986f5dd5c2Smrg } 123996f5dd5c2Smrg s/.*/./; q'` 124006f5dd5c2Smrg test -d "$as_dir" && break 124016f5dd5c2Smrg done 124026f5dd5c2Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 124032ab73d9fSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 124046f5dd5c2Smrg 124056f5dd5c2Smrg 124066f5dd5c2Smrg} # as_fn_mkdir_p 12407a0195d5fSmrgif mkdir -p . 2>/dev/null; then 124086f5dd5c2Smrg as_mkdir_p='mkdir -p "$as_dir"' 12409a0195d5fSmrgelse 12410a0195d5fSmrg test -d ./-p && rmdir ./-p 12411a0195d5fSmrg as_mkdir_p=false 12412a0195d5fSmrgfi 12413a0195d5fSmrg 12414feee4651Smrg 12415feee4651Smrg# as_fn_executable_p FILE 12416feee4651Smrg# ----------------------- 12417feee4651Smrg# Test if FILE is an executable regular file. 12418feee4651Smrgas_fn_executable_p () 12419feee4651Smrg{ 12420feee4651Smrg test -f "$1" && test -x "$1" 12421feee4651Smrg} # as_fn_executable_p 12422feee4651Smrgas_test_x='test -x' 12423feee4651Smrgas_executable_p=as_fn_executable_p 12424a0195d5fSmrg 12425a0195d5fSmrg# Sed expression to map a string onto a valid CPP name. 12426a0195d5fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12427a0195d5fSmrg 12428a0195d5fSmrg# Sed expression to map a string onto a valid variable name. 12429a0195d5fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12430a0195d5fSmrg 12431a0195d5fSmrg 12432a0195d5fSmrgexec 6>&1 124336f5dd5c2Smrg## ----------------------------------- ## 124346f5dd5c2Smrg## Main body of $CONFIG_STATUS script. ## 124356f5dd5c2Smrg## ----------------------------------- ## 124366f5dd5c2Smrg_ASEOF 124376f5dd5c2Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12438a0195d5fSmrg 124396f5dd5c2Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 124406f5dd5c2Smrg# Save the log message, to keep $0 and so on meaningful, and to 12441a0195d5fSmrg# report actual input values of CONFIG_FILES etc. instead of their 12442a0195d5fSmrg# values after options handling. 12443a0195d5fSmrgac_log=" 124440f5b81e5SmrgThis file was extended by xset $as_me 1.2.5, which was 124450f5b81e5Smrggenerated by GNU Autoconf 2.71. Invocation command line was 12446a0195d5fSmrg 12447a0195d5fSmrg CONFIG_FILES = $CONFIG_FILES 12448a0195d5fSmrg CONFIG_HEADERS = $CONFIG_HEADERS 12449a0195d5fSmrg CONFIG_LINKS = $CONFIG_LINKS 12450a0195d5fSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 12451a0195d5fSmrg $ $0 $@ 12452a0195d5fSmrg 12453a0195d5fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 12454a0195d5fSmrg" 12455a0195d5fSmrg 12456a0195d5fSmrg_ACEOF 12457a0195d5fSmrg 124586600fe5bSmrgcase $ac_config_files in *" 124596600fe5bSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 124606600fe5bSmrgesac 124616600fe5bSmrg 124626600fe5bSmrgcase $ac_config_headers in *" 124636600fe5bSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 124646600fe5bSmrgesac 124656600fe5bSmrg 124666600fe5bSmrg 124676600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12468a0195d5fSmrg# Files that config.status was made for. 12469a0195d5fSmrgconfig_files="$ac_config_files" 12470a0195d5fSmrgconfig_headers="$ac_config_headers" 12471a0195d5fSmrgconfig_commands="$ac_config_commands" 12472a0195d5fSmrg 12473a0195d5fSmrg_ACEOF 12474a0195d5fSmrg 124756600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12476a0195d5fSmrgac_cs_usage="\ 124776f5dd5c2Smrg\`$as_me' instantiates files and other configuration actions 124786f5dd5c2Smrgfrom templates according to the current configuration. Unless the files 124796f5dd5c2Smrgand actions are specified as TAGs, all are instantiated by default. 12480a0195d5fSmrg 124816f5dd5c2SmrgUsage: $0 [OPTION]... [TAG]... 12482a0195d5fSmrg 12483a0195d5fSmrg -h, --help print this help, then exit 12484a0195d5fSmrg -V, --version print version number and configuration settings, then exit 124856f5dd5c2Smrg --config print configuration, then exit 124866600fe5bSmrg -q, --quiet, --silent 124876600fe5bSmrg do not print progress messages 12488a0195d5fSmrg -d, --debug don't remove temporary files 12489a0195d5fSmrg --recheck update $as_me by reconfiguring in the same conditions 124906600fe5bSmrg --file=FILE[:TEMPLATE] 124916600fe5bSmrg instantiate the configuration file FILE 124926600fe5bSmrg --header=FILE[:TEMPLATE] 124936600fe5bSmrg instantiate the configuration header FILE 12494a0195d5fSmrg 12495a0195d5fSmrgConfiguration files: 12496a0195d5fSmrg$config_files 12497a0195d5fSmrg 12498a0195d5fSmrgConfiguration headers: 12499a0195d5fSmrg$config_headers 12500a0195d5fSmrg 12501a0195d5fSmrgConfiguration commands: 12502a0195d5fSmrg$config_commands 12503a0195d5fSmrg 125040f5b81e5SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xset/-/issues>." 12505a0195d5fSmrg 12506a0195d5fSmrg_ACEOF 125070f5b81e5Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 125080f5b81e5Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 125096600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 125100f5b81e5Smrgac_cs_config='$ac_cs_config_escaped' 12511a0195d5fSmrgac_cs_version="\\ 125120f5b81e5Smrgxset config.status 1.2.5 125130f5b81e5Smrgconfigured by $0, generated by GNU Autoconf 2.71, 125146f5dd5c2Smrg with options \\"\$ac_cs_config\\" 12515a0195d5fSmrg 125160f5b81e5SmrgCopyright (C) 2021 Free Software Foundation, Inc. 12517a0195d5fSmrgThis config.status script is free software; the Free Software Foundation 12518a0195d5fSmrggives unlimited permission to copy, distribute and modify it." 12519a0195d5fSmrg 12520a0195d5fSmrgac_pwd='$ac_pwd' 12521a0195d5fSmrgsrcdir='$srcdir' 12522a0195d5fSmrgINSTALL='$INSTALL' 12523a0195d5fSmrgMKDIR_P='$MKDIR_P' 125246600fe5bSmrgAWK='$AWK' 125256600fe5bSmrgtest -n "\$AWK" || AWK=awk 12526a0195d5fSmrg_ACEOF 12527a0195d5fSmrg 125286600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 125296600fe5bSmrg# The default lists apply if the user does not specify any file. 12530a0195d5fSmrgac_need_defaults=: 12531a0195d5fSmrgwhile test $# != 0 12532a0195d5fSmrgdo 12533a0195d5fSmrg case $1 in 125342ab73d9fSmrg --*=?*) 12535a0195d5fSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 12536a0195d5fSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12537a0195d5fSmrg ac_shift=: 12538a0195d5fSmrg ;; 125392ab73d9fSmrg --*=) 125402ab73d9fSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 125412ab73d9fSmrg ac_optarg= 125422ab73d9fSmrg ac_shift=: 125432ab73d9fSmrg ;; 12544a0195d5fSmrg *) 12545a0195d5fSmrg ac_option=$1 12546a0195d5fSmrg ac_optarg=$2 12547a0195d5fSmrg ac_shift=shift 12548a0195d5fSmrg ;; 12549a0195d5fSmrg esac 12550a0195d5fSmrg 12551a0195d5fSmrg case $ac_option in 12552a0195d5fSmrg # Handling of the options. 12553a0195d5fSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12554a0195d5fSmrg ac_cs_recheck=: ;; 12555a0195d5fSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 125560f5b81e5Smrg printf "%s\n" "$ac_cs_version"; exit ;; 125576f5dd5c2Smrg --config | --confi | --conf | --con | --co | --c ) 125580f5b81e5Smrg printf "%s\n" "$ac_cs_config"; exit ;; 12559a0195d5fSmrg --debug | --debu | --deb | --de | --d | -d ) 12560a0195d5fSmrg debug=: ;; 12561a0195d5fSmrg --file | --fil | --fi | --f ) 12562a0195d5fSmrg $ac_shift 125636600fe5bSmrg case $ac_optarg in 125640f5b81e5Smrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 125652ab73d9fSmrg '') as_fn_error $? "missing file argument" ;; 125666600fe5bSmrg esac 125676f5dd5c2Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 12568a0195d5fSmrg ac_need_defaults=false;; 12569a0195d5fSmrg --header | --heade | --head | --hea ) 12570a0195d5fSmrg $ac_shift 125716600fe5bSmrg case $ac_optarg in 125720f5b81e5Smrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 125736600fe5bSmrg esac 125746f5dd5c2Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12575a0195d5fSmrg ac_need_defaults=false;; 12576a0195d5fSmrg --he | --h) 12577a0195d5fSmrg # Conflict between --help and --header 125782ab73d9fSmrg as_fn_error $? "ambiguous option: \`$1' 125796f5dd5c2SmrgTry \`$0 --help' for more information.";; 12580a0195d5fSmrg --help | --hel | -h ) 125810f5b81e5Smrg printf "%s\n" "$ac_cs_usage"; exit ;; 12582a0195d5fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12583a0195d5fSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 12584a0195d5fSmrg ac_cs_silent=: ;; 12585a0195d5fSmrg 12586a0195d5fSmrg # This is an error. 125872ab73d9fSmrg -*) as_fn_error $? "unrecognized option: \`$1' 125886f5dd5c2SmrgTry \`$0 --help' for more information." ;; 12589a0195d5fSmrg 125906f5dd5c2Smrg *) as_fn_append ac_config_targets " $1" 12591a0195d5fSmrg ac_need_defaults=false ;; 12592a0195d5fSmrg 12593a0195d5fSmrg esac 12594a0195d5fSmrg shift 12595a0195d5fSmrgdone 12596a0195d5fSmrg 12597a0195d5fSmrgac_configure_extra_args= 12598a0195d5fSmrg 12599a0195d5fSmrgif $ac_cs_silent; then 12600a0195d5fSmrg exec 6>/dev/null 12601a0195d5fSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 12602a0195d5fSmrgfi 12603a0195d5fSmrg 12604a0195d5fSmrg_ACEOF 126056600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12606a0195d5fSmrgif \$ac_cs_recheck; then 12607feee4651Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 126086600fe5bSmrg shift 126090f5b81e5Smrg \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 126106600fe5bSmrg CONFIG_SHELL='$SHELL' 12611a0195d5fSmrg export CONFIG_SHELL 126126600fe5bSmrg exec "\$@" 12613a0195d5fSmrgfi 12614a0195d5fSmrg 12615a0195d5fSmrg_ACEOF 126166600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12617a0195d5fSmrgexec 5>>config.log 12618a0195d5fSmrg{ 12619a0195d5fSmrg echo 12620a0195d5fSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12621a0195d5fSmrg## Running $as_me. ## 12622a0195d5fSmrg_ASBOX 126230f5b81e5Smrg printf "%s\n" "$ac_log" 12624a0195d5fSmrg} >&5 12625a0195d5fSmrg 12626a0195d5fSmrg_ACEOF 126276600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12628a0195d5fSmrg# 12629a0195d5fSmrg# INIT-COMMANDS 12630a0195d5fSmrg# 126310f5b81e5SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12632a0195d5fSmrg 12633a0195d5fSmrg_ACEOF 12634a0195d5fSmrg 126356600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12636a0195d5fSmrg 12637a0195d5fSmrg# Handling of arguments. 12638a0195d5fSmrgfor ac_config_target in $ac_config_targets 12639a0195d5fSmrgdo 12640a0195d5fSmrg case $ac_config_target in 126416f5dd5c2Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 126422ab73d9fSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12643a0195d5fSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12644ff6cf368Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12645a0195d5fSmrg 126462ab73d9fSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12647a0195d5fSmrg esac 12648a0195d5fSmrgdone 12649a0195d5fSmrg 12650a0195d5fSmrg 12651a0195d5fSmrg# If the user did not use the arguments to specify the items to instantiate, 12652a0195d5fSmrg# then the envvar interface is used. Set only those that are not. 12653a0195d5fSmrg# We use the long form for the default assignment because of an extremely 12654a0195d5fSmrg# bizarre bug on SunOS 4.1.3. 12655a0195d5fSmrgif $ac_need_defaults; then 126560f5b81e5Smrg test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 126570f5b81e5Smrg test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 126580f5b81e5Smrg test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12659a0195d5fSmrgfi 12660a0195d5fSmrg 12661a0195d5fSmrg# Have a temporary directory for convenience. Make it in the build tree 12662a0195d5fSmrg# simply because there is no reason against having it here, and in addition, 12663a0195d5fSmrg# creating and moving files from /tmp can sometimes cause problems. 12664a0195d5fSmrg# Hook for its removal unless debugging. 12665a0195d5fSmrg# Note that there is a small window in which the directory will not be cleaned: 12666a0195d5fSmrg# after its creation but before its name has been assigned to `$tmp'. 12667a0195d5fSmrg$debug || 12668a0195d5fSmrg{ 126692ab73d9fSmrg tmp= ac_tmp= 12670a0195d5fSmrg trap 'exit_status=$? 126712ab73d9fSmrg : "${ac_tmp:=$tmp}" 126722ab73d9fSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12673a0195d5fSmrg' 0 126746f5dd5c2Smrg trap 'as_fn_exit 1' 1 2 13 15 12675a0195d5fSmrg} 12676a0195d5fSmrg# Create a (secure) tmp directory for tmp files. 12677a0195d5fSmrg 12678a0195d5fSmrg{ 12679a0195d5fSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 126802ab73d9fSmrg test -d "$tmp" 12681a0195d5fSmrg} || 12682a0195d5fSmrg{ 12683a0195d5fSmrg tmp=./conf$$-$RANDOM 12684a0195d5fSmrg (umask 077 && mkdir "$tmp") 126852ab73d9fSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 126862ab73d9fSmrgac_tmp=$tmp 12687a0195d5fSmrg 126886600fe5bSmrg# Set up the scripts for CONFIG_FILES section. 126896600fe5bSmrg# No need to generate them if there are no CONFIG_FILES. 126906600fe5bSmrg# This happens for instance with `./config.status config.h'. 12691a0195d5fSmrgif test -n "$CONFIG_FILES"; then 12692a0195d5fSmrg 12693a0195d5fSmrg 126946f5dd5c2Smrgac_cr=`echo X | tr X '\015'` 126956f5dd5c2Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 126966f5dd5c2Smrg# But we know of no other shell where ac_cr would be empty at this 126976f5dd5c2Smrg# point, so we can use a bashism as a fallback. 126986f5dd5c2Smrgif test "x$ac_cr" = x; then 126996f5dd5c2Smrg eval ac_cr=\$\'\\r\' 127006f5dd5c2Smrgfi 127016600fe5bSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 127026600fe5bSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 127032ab73d9fSmrg ac_cs_awk_cr='\\r' 127046600fe5bSmrgelse 127056600fe5bSmrg ac_cs_awk_cr=$ac_cr 12706a0195d5fSmrgfi 12707a0195d5fSmrg 127082ab73d9fSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 12709a0195d5fSmrg_ACEOF 12710a0195d5fSmrg 12711a0195d5fSmrg 127126600fe5bSmrg{ 127136600fe5bSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 127146600fe5bSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 127156600fe5bSmrg echo "_ACEOF" 127166600fe5bSmrg} >conf$$subs.sh || 127172ab73d9fSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 127182ab73d9fSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12719a0195d5fSmrgac_delim='%!_!# ' 12720a0195d5fSmrgfor ac_last_try in false false false false false :; do 127216600fe5bSmrg . ./conf$$subs.sh || 127222ab73d9fSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12723a0195d5fSmrg 127246600fe5bSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 127256600fe5bSmrg if test $ac_delim_n = $ac_delim_num; then 12726a0195d5fSmrg break 12727a0195d5fSmrg elif $ac_last_try; then 127282ab73d9fSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12729a0195d5fSmrg else 12730a0195d5fSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12731a0195d5fSmrg fi 12732a0195d5fSmrgdone 127336600fe5bSmrgrm -f conf$$subs.sh 12734a0195d5fSmrg 127356600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 127362ab73d9fSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 127376600fe5bSmrg_ACEOF 127386600fe5bSmrgsed -n ' 127396600fe5bSmrgh 127406600fe5bSmrgs/^/S["/; s/!.*/"]=/ 127416600fe5bSmrgp 127426600fe5bSmrgg 127436600fe5bSmrgs/^[^!]*!// 127446600fe5bSmrg:repl 127456600fe5bSmrgt repl 127466600fe5bSmrgs/'"$ac_delim"'$// 127476600fe5bSmrgt delim 127486600fe5bSmrg:nl 127496600fe5bSmrgh 127506f5dd5c2Smrgs/\(.\{148\}\)..*/\1/ 127516600fe5bSmrgt more1 127526600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 127536600fe5bSmrgp 127546600fe5bSmrgn 127556600fe5bSmrgb repl 127566600fe5bSmrg:more1 127576600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 127586600fe5bSmrgp 127596600fe5bSmrgg 127606600fe5bSmrgs/.\{148\}// 127616600fe5bSmrgt nl 127626600fe5bSmrg:delim 127636600fe5bSmrgh 127646f5dd5c2Smrgs/\(.\{148\}\)..*/\1/ 127656600fe5bSmrgt more2 127666600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 127676600fe5bSmrgp 127686600fe5bSmrgb 127696600fe5bSmrg:more2 127706600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 127716600fe5bSmrgp 127726600fe5bSmrgg 127736600fe5bSmrgs/.\{148\}// 127746600fe5bSmrgt delim 127756600fe5bSmrg' <conf$$subs.awk | sed ' 127766600fe5bSmrg/^[^""]/{ 127776600fe5bSmrg N 127786600fe5bSmrg s/\n// 127796600fe5bSmrg} 127806600fe5bSmrg' >>$CONFIG_STATUS || ac_write_fail=1 127816600fe5bSmrgrm -f conf$$subs.awk 127826600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 127836600fe5bSmrg_ACAWK 127842ab73d9fSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 127856600fe5bSmrg for (key in S) S_is_set[key] = 1 127866600fe5bSmrg FS = "" 127876600fe5bSmrg 127886600fe5bSmrg} 127896600fe5bSmrg{ 127906600fe5bSmrg line = $ 0 127916600fe5bSmrg nfields = split(line, field, "@") 127926600fe5bSmrg substed = 0 127936600fe5bSmrg len = length(field[1]) 127946600fe5bSmrg for (i = 2; i < nfields; i++) { 127956600fe5bSmrg key = field[i] 127966600fe5bSmrg keylen = length(key) 127976600fe5bSmrg if (S_is_set[key]) { 127986600fe5bSmrg value = S[key] 127996600fe5bSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 128006600fe5bSmrg len += length(value) + length(field[++i]) 128016600fe5bSmrg substed = 1 128026600fe5bSmrg } else 128036600fe5bSmrg len += 1 + keylen 128046600fe5bSmrg } 128056600fe5bSmrg 128066600fe5bSmrg print line 128076600fe5bSmrg} 12808a0195d5fSmrg 128096600fe5bSmrg_ACAWK 12810a0195d5fSmrg_ACEOF 128116600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 128126600fe5bSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 128136600fe5bSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 128146600fe5bSmrgelse 128156600fe5bSmrg cat 128162ab73d9fSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 128172ab73d9fSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12818a0195d5fSmrg_ACEOF 12819a0195d5fSmrg 128202ab73d9fSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 128212ab73d9fSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12822a0195d5fSmrg# trailing colons and then remove the whole line if VPATH becomes empty 12823a0195d5fSmrg# (actually we leave an empty line to preserve line numbers). 12824a0195d5fSmrgif test "x$srcdir" = x.; then 128252ab73d9fSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 128262ab73d9fSmrgh 128272ab73d9fSmrgs/// 128282ab73d9fSmrgs/^/:/ 128292ab73d9fSmrgs/[ ]*$/:/ 128302ab73d9fSmrgs/:\$(srcdir):/:/g 128312ab73d9fSmrgs/:\${srcdir}:/:/g 128322ab73d9fSmrgs/:@srcdir@:/:/g 128332ab73d9fSmrgs/^:*// 12834a0195d5fSmrgs/:*$// 128352ab73d9fSmrgx 128362ab73d9fSmrgs/\(=[ ]*\).*/\1/ 128372ab73d9fSmrgG 128382ab73d9fSmrgs/\n// 12839a0195d5fSmrgs/^[^=]*=[ ]*$// 12840a0195d5fSmrg}' 12841a0195d5fSmrgfi 12842a0195d5fSmrg 128436600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12844a0195d5fSmrgfi # test -n "$CONFIG_FILES" 12845a0195d5fSmrg 128466600fe5bSmrg# Set up the scripts for CONFIG_HEADERS section. 128476600fe5bSmrg# No need to generate them if there are no CONFIG_HEADERS. 128486600fe5bSmrg# This happens for instance with `./config.status Makefile'. 128496600fe5bSmrgif test -n "$CONFIG_HEADERS"; then 128502ab73d9fSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 128516600fe5bSmrgBEGIN { 128526600fe5bSmrg_ACEOF 128536600fe5bSmrg 128546600fe5bSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 128556600fe5bSmrg# here-document in config.status, that substitutes the proper values into 128566600fe5bSmrg# config.h.in to produce config.h. 128576600fe5bSmrg 128586600fe5bSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 128596600fe5bSmrg# handling of long lines. 128606600fe5bSmrgac_delim='%!_!# ' 128616600fe5bSmrgfor ac_last_try in false false :; do 128622ab73d9fSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 128632ab73d9fSmrg if test -z "$ac_tt"; then 128646600fe5bSmrg break 128656600fe5bSmrg elif $ac_last_try; then 128662ab73d9fSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 128676600fe5bSmrg else 128686600fe5bSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 128696600fe5bSmrg fi 128706600fe5bSmrgdone 128716600fe5bSmrg 128726600fe5bSmrg# For the awk script, D is an array of macro values keyed by name, 128736600fe5bSmrg# likewise P contains macro parameters if any. Preserve backslash 128746600fe5bSmrg# newline sequences. 128756600fe5bSmrg 128766600fe5bSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 128776600fe5bSmrgsed -n ' 128786600fe5bSmrgs/.\{148\}/&'"$ac_delim"'/g 128796600fe5bSmrgt rset 128806600fe5bSmrg:rset 128816600fe5bSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 128826600fe5bSmrgt def 128836600fe5bSmrgd 128846600fe5bSmrg:def 128856600fe5bSmrgs/\\$// 128866600fe5bSmrgt bsnl 128876600fe5bSmrgs/["\\]/\\&/g 128886600fe5bSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 128896600fe5bSmrgD["\1"]=" \3"/p 128906600fe5bSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 128916600fe5bSmrgd 128926600fe5bSmrg:bsnl 128936600fe5bSmrgs/["\\]/\\&/g 128946600fe5bSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 128956600fe5bSmrgD["\1"]=" \3\\\\\\n"\\/p 128966600fe5bSmrgt cont 128976600fe5bSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 128986600fe5bSmrgt cont 128996600fe5bSmrgd 129006600fe5bSmrg:cont 129016600fe5bSmrgn 129026600fe5bSmrgs/.\{148\}/&'"$ac_delim"'/g 129036600fe5bSmrgt clear 129046600fe5bSmrg:clear 129056600fe5bSmrgs/\\$// 129066600fe5bSmrgt bsnlc 129076600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 129086600fe5bSmrgd 129096600fe5bSmrg:bsnlc 129106600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 129116600fe5bSmrgb cont 129126600fe5bSmrg' <confdefs.h | sed ' 129136600fe5bSmrgs/'"$ac_delim"'/"\\\ 129146600fe5bSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 129156600fe5bSmrg 129166600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 129176600fe5bSmrg for (key in D) D_is_set[key] = 1 129186600fe5bSmrg FS = "" 129196600fe5bSmrg} 129206600fe5bSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 129216600fe5bSmrg line = \$ 0 129226600fe5bSmrg split(line, arg, " ") 129236600fe5bSmrg if (arg[1] == "#") { 129246600fe5bSmrg defundef = arg[2] 129256600fe5bSmrg mac1 = arg[3] 129266600fe5bSmrg } else { 129276600fe5bSmrg defundef = substr(arg[1], 2) 129286600fe5bSmrg mac1 = arg[2] 129296600fe5bSmrg } 129306600fe5bSmrg split(mac1, mac2, "(") #) 129316600fe5bSmrg macro = mac2[1] 129326600fe5bSmrg prefix = substr(line, 1, index(line, defundef) - 1) 129336600fe5bSmrg if (D_is_set[macro]) { 129346600fe5bSmrg # Preserve the white space surrounding the "#". 129356600fe5bSmrg print prefix "define", macro P[macro] D[macro] 129366600fe5bSmrg next 129376600fe5bSmrg } else { 129386600fe5bSmrg # Replace #undef with comments. This is necessary, for example, 129396600fe5bSmrg # in the case of _POSIX_SOURCE, which is predefined and required 129406600fe5bSmrg # on some systems where configure will not decide to define it. 129416600fe5bSmrg if (defundef == "undef") { 129426600fe5bSmrg print "/*", prefix defundef, macro, "*/" 129436600fe5bSmrg next 129446600fe5bSmrg } 129456600fe5bSmrg } 129466600fe5bSmrg} 129476600fe5bSmrg{ print } 129486600fe5bSmrg_ACAWK 129496600fe5bSmrg_ACEOF 129506600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 129512ab73d9fSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 129526600fe5bSmrgfi # test -n "$CONFIG_HEADERS" 129536600fe5bSmrg 12954a0195d5fSmrg 129556600fe5bSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 129566600fe5bSmrgshift 129576600fe5bSmrgfor ac_tag 12958a0195d5fSmrgdo 12959a0195d5fSmrg case $ac_tag in 12960a0195d5fSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 12961a0195d5fSmrg esac 12962a0195d5fSmrg case $ac_mode$ac_tag in 12963a0195d5fSmrg :[FHL]*:*);; 129642ab73d9fSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12965a0195d5fSmrg :[FH]-) ac_tag=-:-;; 12966a0195d5fSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12967a0195d5fSmrg esac 12968a0195d5fSmrg ac_save_IFS=$IFS 12969a0195d5fSmrg IFS=: 12970a0195d5fSmrg set x $ac_tag 12971a0195d5fSmrg IFS=$ac_save_IFS 12972a0195d5fSmrg shift 12973a0195d5fSmrg ac_file=$1 12974a0195d5fSmrg shift 12975a0195d5fSmrg 12976a0195d5fSmrg case $ac_mode in 12977a0195d5fSmrg :L) ac_source=$1;; 12978a0195d5fSmrg :[FH]) 12979a0195d5fSmrg ac_file_inputs= 12980a0195d5fSmrg for ac_f 12981a0195d5fSmrg do 12982a0195d5fSmrg case $ac_f in 129832ab73d9fSmrg -) ac_f="$ac_tmp/stdin";; 12984a0195d5fSmrg *) # Look for the file first in the build tree, then in the source tree 12985a0195d5fSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 12986a0195d5fSmrg # because $ac_f cannot contain `:'. 12987a0195d5fSmrg test -f "$ac_f" || 12988a0195d5fSmrg case $ac_f in 12989a0195d5fSmrg [\\/$]*) false;; 12990a0195d5fSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12991a0195d5fSmrg esac || 129922ab73d9fSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12993a0195d5fSmrg esac 129940f5b81e5Smrg case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 129956f5dd5c2Smrg as_fn_append ac_file_inputs " '$ac_f'" 12996a0195d5fSmrg done 12997a0195d5fSmrg 12998a0195d5fSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 12999a0195d5fSmrg # use $as_me), people would be surprised to read: 13000a0195d5fSmrg # /* config.h. Generated by config.status. */ 130016600fe5bSmrg configure_input='Generated from '` 130020f5b81e5Smrg printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 130036600fe5bSmrg `' by configure.' 13004a0195d5fSmrg if test x"$ac_file" != x-; then 13005a0195d5fSmrg configure_input="$ac_file. $configure_input" 130060f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 130070f5b81e5Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;} 13008a0195d5fSmrg fi 130096600fe5bSmrg # Neutralize special characters interpreted by sed in replacement strings. 130106600fe5bSmrg case $configure_input in #( 130116600fe5bSmrg *\&* | *\|* | *\\* ) 130120f5b81e5Smrg ac_sed_conf_input=`printf "%s\n" "$configure_input" | 130136600fe5bSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 130146600fe5bSmrg *) ac_sed_conf_input=$configure_input;; 130156600fe5bSmrg esac 13016a0195d5fSmrg 13017a0195d5fSmrg case $ac_tag in 130182ab73d9fSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 130192ab73d9fSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13020a0195d5fSmrg esac 13021a0195d5fSmrg ;; 13022a0195d5fSmrg esac 13023a0195d5fSmrg 13024a0195d5fSmrg ac_dir=`$as_dirname -- "$ac_file" || 13025a0195d5fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13026a0195d5fSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 13027a0195d5fSmrg X"$ac_file" : 'X\(//\)$' \| \ 13028a0195d5fSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 130290f5b81e5Smrgprintf "%s\n" X"$ac_file" | 13030a0195d5fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13031a0195d5fSmrg s//\1/ 13032a0195d5fSmrg q 13033a0195d5fSmrg } 13034a0195d5fSmrg /^X\(\/\/\)[^/].*/{ 13035a0195d5fSmrg s//\1/ 13036a0195d5fSmrg q 13037a0195d5fSmrg } 13038a0195d5fSmrg /^X\(\/\/\)$/{ 13039a0195d5fSmrg s//\1/ 13040a0195d5fSmrg q 13041a0195d5fSmrg } 13042a0195d5fSmrg /^X\(\/\).*/{ 13043a0195d5fSmrg s//\1/ 13044a0195d5fSmrg q 13045a0195d5fSmrg } 13046a0195d5fSmrg s/.*/./; q'` 130476f5dd5c2Smrg as_dir="$ac_dir"; as_fn_mkdir_p 13048a0195d5fSmrg ac_builddir=. 13049a0195d5fSmrg 13050a0195d5fSmrgcase "$ac_dir" in 13051a0195d5fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13052a0195d5fSmrg*) 130530f5b81e5Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13054a0195d5fSmrg # A ".." for each directory in $ac_dir_suffix. 130550f5b81e5Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13056a0195d5fSmrg case $ac_top_builddir_sub in 13057a0195d5fSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13058a0195d5fSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13059a0195d5fSmrg esac ;; 13060a0195d5fSmrgesac 13061a0195d5fSmrgac_abs_top_builddir=$ac_pwd 13062a0195d5fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 13063a0195d5fSmrg# for backward compatibility: 13064a0195d5fSmrgac_top_builddir=$ac_top_build_prefix 13065a0195d5fSmrg 13066a0195d5fSmrgcase $srcdir in 13067a0195d5fSmrg .) # We are building in place. 13068a0195d5fSmrg ac_srcdir=. 13069a0195d5fSmrg ac_top_srcdir=$ac_top_builddir_sub 13070a0195d5fSmrg ac_abs_top_srcdir=$ac_pwd ;; 13071a0195d5fSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 13072a0195d5fSmrg ac_srcdir=$srcdir$ac_dir_suffix; 13073a0195d5fSmrg ac_top_srcdir=$srcdir 13074a0195d5fSmrg ac_abs_top_srcdir=$srcdir ;; 13075a0195d5fSmrg *) # Relative name. 13076a0195d5fSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13077a0195d5fSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 13078a0195d5fSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13079a0195d5fSmrgesac 13080a0195d5fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13081a0195d5fSmrg 13082a0195d5fSmrg 13083a0195d5fSmrg case $ac_mode in 13084a0195d5fSmrg :F) 13085a0195d5fSmrg # 13086a0195d5fSmrg # CONFIG_FILE 13087a0195d5fSmrg # 13088a0195d5fSmrg 13089a0195d5fSmrg case $INSTALL in 13090a0195d5fSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13091a0195d5fSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13092a0195d5fSmrg esac 13093a0195d5fSmrg ac_MKDIR_P=$MKDIR_P 13094a0195d5fSmrg case $MKDIR_P in 13095a0195d5fSmrg [\\/$]* | ?:[\\/]* ) ;; 13096a0195d5fSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13097a0195d5fSmrg esac 13098a0195d5fSmrg_ACEOF 13099a0195d5fSmrg 131006600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13101a0195d5fSmrg# If the template does not know about datarootdir, expand it. 13102a0195d5fSmrg# FIXME: This hack should be removed a few years after 2.60. 13103a0195d5fSmrgac_datarootdir_hack=; ac_datarootdir_seen= 131046600fe5bSmrgac_sed_dataroot=' 131056600fe5bSmrg/datarootdir/ { 13106a0195d5fSmrg p 13107a0195d5fSmrg q 13108a0195d5fSmrg} 13109a0195d5fSmrg/@datadir@/p 13110a0195d5fSmrg/@docdir@/p 13111a0195d5fSmrg/@infodir@/p 13112a0195d5fSmrg/@localedir@/p 131136f5dd5c2Smrg/@mandir@/p' 131146600fe5bSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13115a0195d5fSmrg*datarootdir*) ac_datarootdir_seen=yes;; 13116a0195d5fSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 131170f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 131180f5b81e5Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13119a0195d5fSmrg_ACEOF 131206600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13121a0195d5fSmrg ac_datarootdir_hack=' 13122a0195d5fSmrg s&@datadir@&$datadir&g 13123a0195d5fSmrg s&@docdir@&$docdir&g 13124a0195d5fSmrg s&@infodir@&$infodir&g 13125a0195d5fSmrg s&@localedir@&$localedir&g 13126a0195d5fSmrg s&@mandir@&$mandir&g 131276f5dd5c2Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 13128a0195d5fSmrgesac 13129a0195d5fSmrg_ACEOF 13130a0195d5fSmrg 13131a0195d5fSmrg# Neutralize VPATH when `$srcdir' = `.'. 13132a0195d5fSmrg# Shell code in configure.ac might set extrasub. 13133a0195d5fSmrg# FIXME: do we really want to maintain this feature? 131346600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 131356600fe5bSmrgac_sed_extra="$ac_vpsub 13136a0195d5fSmrg$extrasub 13137a0195d5fSmrg_ACEOF 131386600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13139a0195d5fSmrg:t 13140a0195d5fSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 131416600fe5bSmrgs|@configure_input@|$ac_sed_conf_input|;t t 13142a0195d5fSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 131436600fe5bSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 13144a0195d5fSmrgs&@srcdir@&$ac_srcdir&;t t 13145a0195d5fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 13146a0195d5fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 13147a0195d5fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13148a0195d5fSmrgs&@builddir@&$ac_builddir&;t t 13149a0195d5fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 13150a0195d5fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13151a0195d5fSmrgs&@INSTALL@&$ac_INSTALL&;t t 13152a0195d5fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 13153a0195d5fSmrg$ac_datarootdir_hack 131546600fe5bSmrg" 131552ab73d9fSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 131562ab73d9fSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13157a0195d5fSmrg 13158a0195d5fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 131592ab73d9fSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 131602ab73d9fSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 131612ab73d9fSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 131620f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 131632ab73d9fSmrgwhich seems to be undefined. Please make sure it is defined" >&5 131640f5b81e5Smrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 131652ab73d9fSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 13166a0195d5fSmrg 131672ab73d9fSmrg rm -f "$ac_tmp/stdin" 13168a0195d5fSmrg case $ac_file in 131692ab73d9fSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 131702ab73d9fSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 131716600fe5bSmrg esac \ 131722ab73d9fSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13173a0195d5fSmrg ;; 13174a0195d5fSmrg :H) 13175a0195d5fSmrg # 13176a0195d5fSmrg # CONFIG_HEADER 13177a0195d5fSmrg # 13178a0195d5fSmrg if test x"$ac_file" != x-; then 131796600fe5bSmrg { 131800f5b81e5Smrg printf "%s\n" "/* $configure_input */" >&1 \ 131812ab73d9fSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 131822ab73d9fSmrg } >"$ac_tmp/config.h" \ 131832ab73d9fSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 131842ab73d9fSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 131850f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 131860f5b81e5Smrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13187a0195d5fSmrg else 131886600fe5bSmrg rm -f "$ac_file" 131892ab73d9fSmrg mv "$ac_tmp/config.h" "$ac_file" \ 131902ab73d9fSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13191a0195d5fSmrg fi 13192a0195d5fSmrg else 131930f5b81e5Smrg printf "%s\n" "/* $configure_input */" >&1 \ 131942ab73d9fSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 131952ab73d9fSmrg || as_fn_error $? "could not create -" "$LINENO" 5 13196a0195d5fSmrg fi 131976600fe5bSmrg# Compute "$ac_file"'s index in $config_headers. 131986600fe5bSmrg_am_arg="$ac_file" 13199a0195d5fSmrg_am_stamp_count=1 13200a0195d5fSmrgfor _am_header in $config_headers :; do 13201a0195d5fSmrg case $_am_header in 13202a0195d5fSmrg $_am_arg | $_am_arg:* ) 13203a0195d5fSmrg break ;; 13204a0195d5fSmrg * ) 13205a0195d5fSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13206a0195d5fSmrg esac 13207a0195d5fSmrgdone 13208a0195d5fSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13209a0195d5fSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13210a0195d5fSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 13211a0195d5fSmrg X"$_am_arg" : 'X\(//\)$' \| \ 13212a0195d5fSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 132130f5b81e5Smrgprintf "%s\n" X"$_am_arg" | 13214a0195d5fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13215a0195d5fSmrg s//\1/ 13216a0195d5fSmrg q 13217a0195d5fSmrg } 13218a0195d5fSmrg /^X\(\/\/\)[^/].*/{ 13219a0195d5fSmrg s//\1/ 13220a0195d5fSmrg q 13221a0195d5fSmrg } 13222a0195d5fSmrg /^X\(\/\/\)$/{ 13223a0195d5fSmrg s//\1/ 13224a0195d5fSmrg q 13225a0195d5fSmrg } 13226a0195d5fSmrg /^X\(\/\).*/{ 13227a0195d5fSmrg s//\1/ 13228a0195d5fSmrg q 13229a0195d5fSmrg } 13230a0195d5fSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 13231a0195d5fSmrg ;; 13232a0195d5fSmrg 132330f5b81e5Smrg :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 132340f5b81e5Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13235a0195d5fSmrg ;; 13236a0195d5fSmrg esac 13237a0195d5fSmrg 13238a0195d5fSmrg 13239a0195d5fSmrg case $ac_file$ac_mode in 132406600fe5bSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 1324140a76396Smrg # Older Autoconf quotes --file arguments for eval, but not when files 132426600fe5bSmrg # are listed without --file. Let's play safe and only enable the eval 132436600fe5bSmrg # if we detect the quoting. 132440f5b81e5Smrg # TODO: see whether this extra hack can be removed once we start 132450f5b81e5Smrg # requiring Autoconf 2.70 or later. 132460f5b81e5Smrg case $CONFIG_FILES in #( 132470f5b81e5Smrg *\'*) : 132480f5b81e5Smrg eval set x "$CONFIG_FILES" ;; #( 132490f5b81e5Smrg *) : 132500f5b81e5Smrg set x $CONFIG_FILES ;; #( 132510f5b81e5Smrg *) : 132520f5b81e5Smrg ;; 132530f5b81e5Smrgesac 132546600fe5bSmrg shift 132550f5b81e5Smrg # Used to flag and report bootstrapping failures. 132560f5b81e5Smrg am_rc=0 132570f5b81e5Smrg for am_mf 132586600fe5bSmrg do 132596600fe5bSmrg # Strip MF so we end up with the name of the file. 132600f5b81e5Smrg am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 132610f5b81e5Smrg # Check whether this is an Automake generated Makefile which includes 132620f5b81e5Smrg # dependency-tracking related rules and includes. 132630f5b81e5Smrg # Grep'ing the whole file directly is not great: AIX grep has a line 132646600fe5bSmrg # limit of 2048, but all sed's we know have understand at least 4000. 132650f5b81e5Smrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 132660f5b81e5Smrg || continue 132670f5b81e5Smrg am_dirpart=`$as_dirname -- "$am_mf" || 132680f5b81e5Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 132690f5b81e5Smrg X"$am_mf" : 'X\(//\)[^/]' \| \ 132700f5b81e5Smrg X"$am_mf" : 'X\(//\)$' \| \ 132710f5b81e5Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 132720f5b81e5Smrgprintf "%s\n" X"$am_mf" | 13273a0195d5fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13274a0195d5fSmrg s//\1/ 13275a0195d5fSmrg q 13276a0195d5fSmrg } 13277a0195d5fSmrg /^X\(\/\/\)[^/].*/{ 13278a0195d5fSmrg s//\1/ 13279a0195d5fSmrg q 13280a0195d5fSmrg } 13281a0195d5fSmrg /^X\(\/\/\)$/{ 13282a0195d5fSmrg s//\1/ 13283a0195d5fSmrg q 13284a0195d5fSmrg } 13285a0195d5fSmrg /^X\(\/\).*/{ 13286a0195d5fSmrg s//\1/ 13287a0195d5fSmrg q 13288a0195d5fSmrg } 13289a0195d5fSmrg s/.*/./; q'` 132900f5b81e5Smrg am_filepart=`$as_basename -- "$am_mf" || 132910f5b81e5Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 132920f5b81e5Smrg X"$am_mf" : 'X\(//\)$' \| \ 132930f5b81e5Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 132940f5b81e5Smrgprintf "%s\n" X/"$am_mf" | 132950f5b81e5Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 13296a0195d5fSmrg s//\1/ 13297a0195d5fSmrg q 13298a0195d5fSmrg } 132990f5b81e5Smrg /^X\/\(\/\/\)$/{ 13300a0195d5fSmrg s//\1/ 13301a0195d5fSmrg q 13302a0195d5fSmrg } 133030f5b81e5Smrg /^X\/\(\/\).*/{ 13304a0195d5fSmrg s//\1/ 13305a0195d5fSmrg q 13306a0195d5fSmrg } 13307a0195d5fSmrg s/.*/./; q'` 133080f5b81e5Smrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 133090f5b81e5Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 133100f5b81e5Smrg | $MAKE -f - am--depfiles" >&5 133110f5b81e5Smrg (cd "$am_dirpart" \ 133120f5b81e5Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 133130f5b81e5Smrg | $MAKE -f - am--depfiles) >&5 2>&5 133140f5b81e5Smrg ac_status=$? 133150f5b81e5Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 133160f5b81e5Smrg (exit $ac_status); } || am_rc=$? 13317a0195d5fSmrg done 133180f5b81e5Smrg if test $am_rc -ne 0; then 133190f5b81e5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 133200f5b81e5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 133210f5b81e5Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 133220f5b81e5Smrg for automatic dependency tracking. If GNU make was not used, consider 133230f5b81e5Smrg re-running the configure script with MAKE=\"gmake\" (or whatever is 133240f5b81e5Smrg necessary). You can also try re-running configure with the 133250f5b81e5Smrg '--disable-dependency-tracking' option to at least be able to build 133260f5b81e5Smrg the package (albeit without support for automatic dependency tracking). 133270f5b81e5SmrgSee \`config.log' for more details" "$LINENO" 5; } 133280f5b81e5Smrg fi 133290f5b81e5Smrg { am_dirpart=; unset am_dirpart;} 133300f5b81e5Smrg { am_filepart=; unset am_filepart;} 133310f5b81e5Smrg { am_mf=; unset am_mf;} 133320f5b81e5Smrg { am_rc=; unset am_rc;} 133330f5b81e5Smrg rm -f conftest-deps.mk 133346600fe5bSmrg} 13335a0195d5fSmrg ;; 13336a0195d5fSmrg 13337a0195d5fSmrg esac 13338a0195d5fSmrgdone # for ac_tag 13339a0195d5fSmrg 13340a0195d5fSmrg 133416f5dd5c2Smrgas_fn_exit 0 13342a0195d5fSmrg_ACEOF 13343a0195d5fSmrgac_clean_files=$ac_clean_files_save 13344a0195d5fSmrg 133456600fe5bSmrgtest $ac_write_fail = 0 || 133462ab73d9fSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 133476600fe5bSmrg 13348a0195d5fSmrg 13349a0195d5fSmrg# configure is writing to config.log, and then calls config.status. 13350a0195d5fSmrg# config.status does its own redirection, appending to config.log. 13351a0195d5fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 13352a0195d5fSmrg# by configure, so config.status won't be able to write to it; its 13353a0195d5fSmrg# output is simply discarded. So we exec the FD to /dev/null, 13354a0195d5fSmrg# effectively closing config.log, so it can be properly (re)opened and 13355a0195d5fSmrg# appended to by config.status. When coming back to configure, we 13356a0195d5fSmrg# need to make the FD available again. 13357a0195d5fSmrgif test "$no_create" != yes; then 13358a0195d5fSmrg ac_cs_success=: 13359a0195d5fSmrg ac_config_status_args= 13360a0195d5fSmrg test "$silent" = yes && 13361a0195d5fSmrg ac_config_status_args="$ac_config_status_args --quiet" 13362a0195d5fSmrg exec 5>/dev/null 13363a0195d5fSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13364a0195d5fSmrg exec 5>>config.log 13365a0195d5fSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13366a0195d5fSmrg # would make configure fail if this is the last instruction. 133672ab73d9fSmrg $ac_cs_success || as_fn_exit 1 13368a0195d5fSmrgfi 133696600fe5bSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 133700f5b81e5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 133710f5b81e5Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 133726600fe5bSmrgfi 13373a0195d5fSmrg 133740f5b81e5Smrg 13375